api

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

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

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.

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

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var HTTPClient = &http.Client{
	Timeout:   30 * time.Second,
	Transport: userAgentTransport{},
}

HTTPClient is the shared HTTP client all outgoing requests should use, giving every request a 30-second timeout and the CLI's User-Agent by default. A call that needs a shorter bound should layer a context.WithTimeout over the call rather than build a separate client; a call that needs a longer one (e.g. downloading a large release archive) is a legitimate reason to use a dedicated client instead.

Functions

func NewAttachServiceToAllowListRequest added in v0.25.0

func NewAttachServiceToAllowListRequest(server string, projectID ProjectID, serviceID ServiceID, body AttachServiceToAllowListJSONRequestBody) (*http.Request, error)

NewAttachServiceToAllowListRequest calls the generic AttachServiceToAllowList builder with application/json body

func NewAttachServiceToAllowListRequestWithBody added in v0.25.0

func NewAttachServiceToAllowListRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader) (*http.Request, error)

NewAttachServiceToAllowListRequestWithBody constructs an http.Request for the AttachServiceToAllowList method, with any body, and a specified content type

func NewAttachServiceToExporterRequest added in v0.25.0

func NewAttachServiceToExporterRequest(server string, projectID ProjectID, serviceID ServiceID, body AttachServiceToExporterJSONRequestBody) (*http.Request, error)

NewAttachServiceToExporterRequest calls the generic AttachServiceToExporter builder with application/json body

func NewAttachServiceToExporterRequestWithBody added in v0.25.0

func NewAttachServiceToExporterRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader) (*http.Request, error)

NewAttachServiceToExporterRequestWithBody constructs an http.Request for the AttachServiceToExporter method, with any body, and a specified content type

func NewAttachServiceToVPCRequest

func NewAttachServiceToVPCRequest(server string, projectID ProjectID, serviceID ServiceID, body AttachServiceToVPCJSONRequestBody) (*http.Request, error)

NewAttachServiceToVPCRequest calls the generic AttachServiceToVPC builder with application/json body

func NewAttachServiceToVPCRequestWithBody

func NewAttachServiceToVPCRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader) (*http.Request, error)

NewAttachServiceToVPCRequestWithBody constructs an http.Request for the AttachServiceToVPC method, with any body, and a specified content type

func NewCreateAllowListRequest added in v0.25.0

func NewCreateAllowListRequest(server string, projectID ProjectID, body CreateAllowListJSONRequestBody) (*http.Request, error)

NewCreateAllowListRequest calls the generic CreateAllowList builder with application/json body

func NewCreateAllowListRequestWithBody added in v0.25.0

func NewCreateAllowListRequestWithBody(server string, projectID ProjectID, contentType string, body io.Reader) (*http.Request, error)

NewCreateAllowListRequestWithBody constructs an http.Request for the CreateAllowList method, with any body, and a specified content type

func NewCreateBackupRegionRequest added in v0.25.0

func NewCreateBackupRegionRequest(server string, projectID ProjectID, serviceID ServiceID, body CreateBackupRegionJSONRequestBody) (*http.Request, error)

NewCreateBackupRegionRequest calls the generic CreateBackupRegion builder with application/json body

func NewCreateBackupRegionRequestWithBody added in v0.25.0

func NewCreateBackupRegionRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader) (*http.Request, error)

NewCreateBackupRegionRequestWithBody constructs an http.Request for the CreateBackupRegion method, with any body, and a specified content type

func NewCreateExporterRequest added in v0.25.0

func NewCreateExporterRequest(server string, projectID ProjectID, body CreateExporterJSONRequestBody) (*http.Request, error)

NewCreateExporterRequest calls the generic CreateExporter builder with application/json body

func NewCreateExporterRequestWithBody added in v0.25.0

func NewCreateExporterRequestWithBody(server string, projectID ProjectID, contentType string, body io.Reader) (*http.Request, error)

NewCreateExporterRequestWithBody constructs an http.Request for the CreateExporter method, with any body, and a specified content type

func NewCreateReplicaSetRequest

func NewCreateReplicaSetRequest(server string, projectID ProjectID, serviceID ServiceID, body CreateReplicaSetJSONRequestBody) (*http.Request, error)

NewCreateReplicaSetRequest calls the generic CreateReplicaSet builder with application/json body

func NewCreateReplicaSetRequestWithBody

func NewCreateReplicaSetRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader) (*http.Request, error)

NewCreateReplicaSetRequestWithBody constructs an http.Request for the CreateReplicaSet method, with any body, and a specified content type

func NewCreateServiceRequest

func NewCreateServiceRequest(server string, projectID ProjectID, body CreateServiceJSONRequestBody) (*http.Request, error)

NewCreateServiceRequest calls the generic CreateService builder with application/json body

func NewCreateServiceRequestWithBody

func NewCreateServiceRequestWithBody(server string, projectID ProjectID, contentType string, body io.Reader) (*http.Request, error)

NewCreateServiceRequestWithBody constructs an http.Request for the CreateService method, with any body, and a specified content type

func NewCreateVPCPeeringRequest

func NewCreateVPCPeeringRequest(server string, projectID ProjectID, vpcID VPCId, body CreateVPCPeeringJSONRequestBody) (*http.Request, error)

NewCreateVPCPeeringRequest calls the generic CreateVPCPeering builder with application/json body

func NewCreateVPCPeeringRequestWithBody

func NewCreateVPCPeeringRequestWithBody(server string, projectID ProjectID, vpcID VPCId, contentType string, body io.Reader) (*http.Request, error)

NewCreateVPCPeeringRequestWithBody constructs an http.Request for the CreateVPCPeering method, with any body, and a specified content type

func NewCreateVPCRequest

func NewCreateVPCRequest(server string, projectID ProjectID, body CreateVPCJSONRequestBody) (*http.Request, error)

NewCreateVPCRequest calls the generic CreateVPC builder with application/json body

func NewCreateVPCRequestWithBody

func NewCreateVPCRequestWithBody(server string, projectID ProjectID, contentType string, body io.Reader) (*http.Request, error)

NewCreateVPCRequestWithBody constructs an http.Request for the CreateVPC method, with any body, and a specified content type

func NewDeleteAllowListRequest added in v0.25.0

func NewDeleteAllowListRequest(server string, projectID ProjectID, allowListID AllowListID) (*http.Request, error)

NewDeleteAllowListRequest constructs an http.Request for the DeleteAllowList method

func NewDeleteBackupRegionRequest added in v0.25.0

func NewDeleteBackupRegionRequest(server string, projectID ProjectID, serviceID ServiceID, regionCode BackupRegionCode) (*http.Request, error)

NewDeleteBackupRegionRequest constructs an http.Request for the DeleteBackupRegion method

func NewDeleteExporterRequest added in v0.25.0

func NewDeleteExporterRequest(server string, projectID ProjectID, exporterID ExporterID) (*http.Request, error)

NewDeleteExporterRequest constructs an http.Request for the DeleteExporter method

func NewDeleteReplicaSetRequest

func NewDeleteReplicaSetRequest(server string, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID) (*http.Request, error)

NewDeleteReplicaSetRequest constructs an http.Request for the DeleteReplicaSet method

func NewDeleteServiceRequest

func NewDeleteServiceRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)

NewDeleteServiceRequest constructs an http.Request for the DeleteService method

func NewDeleteVPCPeeringRequest

func NewDeleteVPCPeeringRequest(server string, projectID ProjectID, vpcID VPCId, peeringID PeeringID) (*http.Request, error)

NewDeleteVPCPeeringRequest constructs an http.Request for the DeleteVPCPeering method

func NewDeleteVPCRequest

func NewDeleteVPCRequest(server string, projectID ProjectID, vpcID VPCId) (*http.Request, error)

NewDeleteVPCRequest constructs an http.Request for the DeleteVPC method

func NewDetachServiceFromAllowListRequest added in v0.25.0

func NewDetachServiceFromAllowListRequest(server string, projectID ProjectID, serviceID ServiceID, body DetachServiceFromAllowListJSONRequestBody) (*http.Request, error)

NewDetachServiceFromAllowListRequest calls the generic DetachServiceFromAllowList builder with application/json body

func NewDetachServiceFromAllowListRequestWithBody added in v0.25.0

func NewDetachServiceFromAllowListRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader) (*http.Request, error)

NewDetachServiceFromAllowListRequestWithBody constructs an http.Request for the DetachServiceFromAllowList method, with any body, and a specified content type

func NewDetachServiceFromExporterRequest added in v0.25.0

func NewDetachServiceFromExporterRequest(server string, projectID ProjectID, serviceID ServiceID, body DetachServiceFromExporterJSONRequestBody) (*http.Request, error)

NewDetachServiceFromExporterRequest calls the generic DetachServiceFromExporter builder with application/json body

func NewDetachServiceFromExporterRequestWithBody added in v0.25.0

func NewDetachServiceFromExporterRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader) (*http.Request, error)

NewDetachServiceFromExporterRequestWithBody constructs an http.Request for the DetachServiceFromExporter method, with any body, and a specified content type

func NewDetachServiceFromVPCRequest

func NewDetachServiceFromVPCRequest(server string, projectID ProjectID, serviceID ServiceID, body DetachServiceFromVPCJSONRequestBody) (*http.Request, error)

NewDetachServiceFromVPCRequest calls the generic DetachServiceFromVPC builder with application/json body

func NewDetachServiceFromVPCRequestWithBody

func NewDetachServiceFromVPCRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader) (*http.Request, error)

NewDetachServiceFromVPCRequestWithBody constructs an http.Request for the DetachServiceFromVPC method, with any body, and a specified content type

func NewDisablePoolerRequest

func NewDisablePoolerRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)

NewDisablePoolerRequest constructs an http.Request for the DisablePooler method

func NewDisableReplicaPoolerRequest

func NewDisableReplicaPoolerRequest(server string, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID) (*http.Request, error)

NewDisableReplicaPoolerRequest constructs an http.Request for the DisableReplicaPooler method

func NewEnableDataTieringRequest added in v0.25.0

func NewEnableDataTieringRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)

NewEnableDataTieringRequest constructs an http.Request for the EnableDataTiering method

func NewEnablePoolerRequest

func NewEnablePoolerRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)

NewEnablePoolerRequest constructs an http.Request for the EnablePooler method

func NewEnableReplicaPoolerRequest

func NewEnableReplicaPoolerRequest(server string, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID) (*http.Request, error)

NewEnableReplicaPoolerRequest constructs an http.Request for the EnableReplicaPooler method

func NewForkServiceRequest

func NewForkServiceRequest(server string, projectID ProjectID, serviceID ServiceID, body ForkServiceJSONRequestBody) (*http.Request, error)

NewForkServiceRequest calls the generic ForkService builder with application/json body

func NewForkServiceRequestWithBody

func NewForkServiceRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader) (*http.Request, error)

NewForkServiceRequestWithBody constructs an http.Request for the ForkService method, with any body, and a specified content type

func NewGetAllowListRequest added in v0.25.0

func NewGetAllowListRequest(server string, projectID ProjectID, allowListID AllowListID) (*http.Request, error)

NewGetAllowListRequest constructs an http.Request for the GetAllowList method

func NewGetAllowListsRequest added in v0.25.0

func NewGetAllowListsRequest(server string, projectID ProjectID) (*http.Request, error)

NewGetAllowListsRequest constructs an http.Request for the GetAllowLists method

func NewGetAuthInfoRequest

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

NewGetAuthInfoRequest constructs an http.Request for the GetAuthInfo method

func NewGetBackupRegionsRequest added in v0.25.0

func NewGetBackupRegionsRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)

NewGetBackupRegionsRequest constructs an http.Request for the GetBackupRegions method

func NewGetBackupRetentionRequest added in v0.25.0

func NewGetBackupRetentionRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)

NewGetBackupRetentionRequest constructs an http.Request for the GetBackupRetention method

func NewGetBackupsRequest added in v0.23.0

func NewGetBackupsRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)

NewGetBackupsRequest constructs an http.Request for the GetBackups method

func NewGetExporterRequest added in v0.25.0

func NewGetExporterRequest(server string, projectID ProjectID, exporterID ExporterID) (*http.Request, error)

NewGetExporterRequest constructs an http.Request for the GetExporter method

func NewGetExportersRequest added in v0.25.0

func NewGetExportersRequest(server string, projectID ProjectID) (*http.Request, error)

NewGetExportersRequest constructs an http.Request for the GetExporters method

func NewGetProjectsRequest

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

NewGetProjectsRequest constructs an http.Request for the GetProjects method

func NewGetReplicaSetsRequest

func NewGetReplicaSetsRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)

NewGetReplicaSetsRequest constructs an http.Request for the GetReplicaSets method

func NewGetServiceLogsRequest

func NewGetServiceLogsRequest(server string, projectID ProjectID, serviceID ServiceID, params *GetServiceLogsParams) (*http.Request, error)

NewGetServiceLogsRequest constructs an http.Request for the GetServiceLogs method

func NewGetServiceMetricDetailsRequest added in v0.25.0

func NewGetServiceMetricDetailsRequest(server string, projectID ProjectID, serviceID ServiceID, metricName string) (*http.Request, error)

NewGetServiceMetricDetailsRequest constructs an http.Request for the GetServiceMetricDetails method

func NewGetServiceMetricsAvailableSeriesRequest

func NewGetServiceMetricsAvailableSeriesRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)

NewGetServiceMetricsAvailableSeriesRequest constructs an http.Request for the GetServiceMetricsAvailableSeries method

func NewGetServiceMetricsSeriesRequest

func NewGetServiceMetricsSeriesRequest(server string, projectID ProjectID, serviceID ServiceID, body GetServiceMetricsSeriesJSONRequestBody) (*http.Request, error)

NewGetServiceMetricsSeriesRequest calls the generic GetServiceMetricsSeries builder with application/json body

func NewGetServiceMetricsSeriesRequestWithBody

func NewGetServiceMetricsSeriesRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader) (*http.Request, error)

NewGetServiceMetricsSeriesRequestWithBody constructs an http.Request for the GetServiceMetricsSeries method, with any body, and a specified content type

func NewGetServiceRequest

func NewGetServiceRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)

NewGetServiceRequest constructs an http.Request for the GetService method

func NewGetServicesRequest

func NewGetServicesRequest(server string, projectID ProjectID, params *GetServicesParams) (*http.Request, error)

NewGetServicesRequest constructs an http.Request for the GetServices method

func NewGetVPCPeeringRequest

func NewGetVPCPeeringRequest(server string, projectID ProjectID, vpcID VPCId, peeringID PeeringID) (*http.Request, error)

NewGetVPCPeeringRequest constructs an http.Request for the GetVPCPeering method

func NewGetVPCPeeringsRequest

func NewGetVPCPeeringsRequest(server string, projectID ProjectID, vpcID VPCId) (*http.Request, error)

NewGetVPCPeeringsRequest constructs an http.Request for the GetVPCPeerings method

func NewGetVPCRequest

func NewGetVPCRequest(server string, projectID ProjectID, vpcID VPCId) (*http.Request, error)

NewGetVPCRequest constructs an http.Request for the GetVPC method

func NewGetVPCsRequest

func NewGetVPCsRequest(server string, projectID ProjectID) (*http.Request, error)

NewGetVPCsRequest constructs an http.Request for the GetVPCs method

func NewIdentifyUserRequest

func NewIdentifyUserRequest(server string, body IdentifyUserJSONRequestBody) (*http.Request, error)

NewIdentifyUserRequest calls the generic IdentifyUser builder with application/json body

func NewIdentifyUserRequestWithBody

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

NewIdentifyUserRequestWithBody constructs an http.Request for the IdentifyUser method, with any body, and a specified content type

func NewLogoutRequest

func NewLogoutRequest(server string, body LogoutJSONRequestBody) (*http.Request, error)

NewLogoutRequest calls the generic Logout builder with application/json body

func NewLogoutRequestWithBody

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

NewLogoutRequestWithBody constructs an http.Request for the Logout method, with any body, and a specified content type

func NewRenameServiceRequest

func NewRenameServiceRequest(server string, projectID ProjectID, serviceID ServiceID, body RenameServiceJSONRequestBody) (*http.Request, error)

NewRenameServiceRequest calls the generic RenameService builder with application/json body

func NewRenameServiceRequestWithBody

func NewRenameServiceRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader) (*http.Request, error)

NewRenameServiceRequestWithBody constructs an http.Request for the RenameService method, with any body, and a specified content type

func NewRenameVPCRequest

func NewRenameVPCRequest(server string, projectID ProjectID, vpcID VPCId, body RenameVPCJSONRequestBody) (*http.Request, error)

NewRenameVPCRequest calls the generic RenameVPC builder with application/json body

func NewRenameVPCRequestWithBody

func NewRenameVPCRequestWithBody(server string, projectID ProjectID, vpcID VPCId, contentType string, body io.Reader) (*http.Request, error)

NewRenameVPCRequestWithBody constructs an http.Request for the RenameVPC method, with any body, and a specified content type

func NewResizeReplicaSetRequest

func NewResizeReplicaSetRequest(server string, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, body ResizeReplicaSetJSONRequestBody) (*http.Request, error)

NewResizeReplicaSetRequest calls the generic ResizeReplicaSet builder with application/json body

func NewResizeReplicaSetRequestWithBody

func NewResizeReplicaSetRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, contentType string, body io.Reader) (*http.Request, error)

NewResizeReplicaSetRequestWithBody constructs an http.Request for the ResizeReplicaSet method, with any body, and a specified content type

func NewResizeServiceRequest

func NewResizeServiceRequest(server string, projectID ProjectID, serviceID ServiceID, body ResizeServiceJSONRequestBody) (*http.Request, error)

NewResizeServiceRequest calls the generic ResizeService builder with application/json body

func NewResizeServiceRequestWithBody

func NewResizeServiceRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader) (*http.Request, error)

NewResizeServiceRequestWithBody constructs an http.Request for the ResizeService method, with any body, and a specified content type

func NewSetBackupRetentionRequest added in v0.25.0

func NewSetBackupRetentionRequest(server string, projectID ProjectID, serviceID ServiceID, body SetBackupRetentionJSONRequestBody) (*http.Request, error)

NewSetBackupRetentionRequest calls the generic SetBackupRetention builder with application/json body

func NewSetBackupRetentionRequestWithBody added in v0.25.0

func NewSetBackupRetentionRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader) (*http.Request, error)

NewSetBackupRetentionRequestWithBody constructs an http.Request for the SetBackupRetention method, with any body, and a specified content type

func NewSetEnvironmentRequest

func NewSetEnvironmentRequest(server string, projectID ProjectID, serviceID ServiceID, body SetEnvironmentJSONRequestBody) (*http.Request, error)

NewSetEnvironmentRequest calls the generic SetEnvironment builder with application/json body

func NewSetEnvironmentRequestWithBody

func NewSetEnvironmentRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader) (*http.Request, error)

NewSetEnvironmentRequestWithBody constructs an http.Request for the SetEnvironment method, with any body, and a specified content type

func NewSetHAReplicaRequest

func NewSetHAReplicaRequest(server string, projectID ProjectID, serviceID ServiceID, body SetHAReplicaJSONRequestBody) (*http.Request, error)

NewSetHAReplicaRequest calls the generic SetHAReplica builder with application/json body

func NewSetHAReplicaRequestWithBody

func NewSetHAReplicaRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader) (*http.Request, error)

NewSetHAReplicaRequestWithBody constructs an http.Request for the SetHAReplica method, with any body, and a specified content type

func NewSetReplicaEnvironmentRequest

func NewSetReplicaEnvironmentRequest(server string, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, body SetReplicaEnvironmentJSONRequestBody) (*http.Request, error)

NewSetReplicaEnvironmentRequest calls the generic SetReplicaEnvironment builder with application/json body

func NewSetReplicaEnvironmentRequestWithBody

func NewSetReplicaEnvironmentRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, contentType string, body io.Reader) (*http.Request, error)

NewSetReplicaEnvironmentRequestWithBody constructs an http.Request for the SetReplicaEnvironment method, with any body, and a specified content type

func NewStartServiceRequest

func NewStartServiceRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)

NewStartServiceRequest constructs an http.Request for the StartService method

func NewStopServiceRequest

func NewStopServiceRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)

NewStopServiceRequest constructs an http.Request for the StopService method

func NewSubmitFeedbackRequest added in v0.25.0

func NewSubmitFeedbackRequest(server string, body SubmitFeedbackJSONRequestBody) (*http.Request, error)

NewSubmitFeedbackRequest calls the generic SubmitFeedback builder with application/json body

func NewSubmitFeedbackRequestWithBody added in v0.25.0

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

NewSubmitFeedbackRequestWithBody constructs an http.Request for the SubmitFeedback method, with any body, and a specified content type

func NewTrackEventRequest

func NewTrackEventRequest(server string, body TrackEventJSONRequestBody) (*http.Request, error)

NewTrackEventRequest calls the generic TrackEvent builder with application/json body

func NewTrackEventRequestWithBody

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

NewTrackEventRequestWithBody constructs an http.Request for the TrackEvent method, with any body, and a specified content type

func NewUpdateAllowListRequest added in v0.25.0

func NewUpdateAllowListRequest(server string, projectID ProjectID, allowListID AllowListID, body UpdateAllowListJSONRequestBody) (*http.Request, error)

NewUpdateAllowListRequest calls the generic UpdateAllowList builder with application/json body

func NewUpdateAllowListRequestWithBody added in v0.25.0

func NewUpdateAllowListRequestWithBody(server string, projectID ProjectID, allowListID AllowListID, contentType string, body io.Reader) (*http.Request, error)

NewUpdateAllowListRequestWithBody constructs an http.Request for the UpdateAllowList method, with any body, and a specified content type

func NewUpdateExporterRequest added in v0.25.0

func NewUpdateExporterRequest(server string, projectID ProjectID, exporterID ExporterID, body UpdateExporterJSONRequestBody) (*http.Request, error)

NewUpdateExporterRequest calls the generic UpdateExporter builder with application/json body

func NewUpdateExporterRequestWithBody added in v0.25.0

func NewUpdateExporterRequestWithBody(server string, projectID ProjectID, exporterID ExporterID, contentType string, body io.Reader) (*http.Request, error)

NewUpdateExporterRequestWithBody constructs an http.Request for the UpdateExporter method, with any body, and a specified content type

func NewUpdatePasswordRequest

func NewUpdatePasswordRequest(server string, projectID ProjectID, serviceID ServiceID, body UpdatePasswordJSONRequestBody) (*http.Request, error)

NewUpdatePasswordRequest calls the generic UpdatePassword builder with application/json body

func NewUpdatePasswordRequestWithBody

func NewUpdatePasswordRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader) (*http.Request, error)

NewUpdatePasswordRequestWithBody constructs an http.Request for the UpdatePassword method, with any body, and a specified content type

Types

type AWSAccessKeyCredentials added in v0.25.0

type AWSAccessKeyCredentials struct {
	// AwsAccessKey The AWS access key ID.
	//
	// Example: AKIAIOSFODNN7EXAMPLE
	AwsAccessKey string `json:"aws_access_key"`

	// AwsSecretKey The AWS secret access key.
	//
	// Example: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
	AwsSecretKey *string `json:"aws_secret_key,omitempty"`

	// Type Always `ACCESS_KEY`.
	Type AWSAccessKeyCredentialsType `json:"type"`
}

AWSAccessKeyCredentials An access key pair belonging to an IAM user in your account.

type AWSAccessKeyCredentialsType added in v0.25.0

type AWSAccessKeyCredentialsType string

AWSAccessKeyCredentialsType Always `ACCESS_KEY`.

const (
	AWSAccessKeyCredentialsTypeACCESSKEY AWSAccessKeyCredentialsType = "ACCESS_KEY"
)

Defines values for AWSAccessKeyCredentialsType.

func (AWSAccessKeyCredentialsType) Valid added in v0.25.0

Valid indicates whether the value is a known member of the AWSAccessKeyCredentialsType enum.

type AWSAccessKeyCredentialsUpdate added in v0.25.0

type AWSAccessKeyCredentialsUpdate struct {
	// AwsAccessKey A replacement AWS access key ID.
	//
	// Example: AKIAIOSFODNN7EXAMPLE
	AwsAccessKey *string `json:"aws_access_key,omitempty"`

	// AwsSecretKey The AWS secret access key that pairs with the access key ID.
	//
	// Example: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
	AwsSecretKey *string `json:"aws_secret_key,omitempty"`

	// Type Always `ACCESS_KEY`.
	Type AWSAccessKeyCredentialsUpdateType `json:"type"`
}

AWSAccessKeyCredentialsUpdate A replacement AWS access key pair. The two parts move together: send both to rotate the key, or omit both to keep the stored one.

type AWSAccessKeyCredentialsUpdateType added in v0.25.0

type AWSAccessKeyCredentialsUpdateType string

AWSAccessKeyCredentialsUpdateType Always `ACCESS_KEY`.

const (
	AWSAccessKeyCredentialsUpdateTypeACCESSKEY AWSAccessKeyCredentialsUpdateType = "ACCESS_KEY"
)

Defines values for AWSAccessKeyCredentialsUpdateType.

func (AWSAccessKeyCredentialsUpdateType) Valid added in v0.25.0

Valid indicates whether the value is a known member of the AWSAccessKeyCredentialsUpdateType enum.

type AWSCredentials added in v0.25.0

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

AWSCredentials How Tiger Cloud authenticates to AWS.

func (AWSCredentials) AsAWSAccessKeyCredentials added in v0.25.0

func (t AWSCredentials) AsAWSAccessKeyCredentials() (AWSAccessKeyCredentials, error)

AsAWSAccessKeyCredentials returns the union data inside the AWSCredentials as a AWSAccessKeyCredentials

func (AWSCredentials) AsAWSIAMRoleCredentials added in v0.25.0

func (t AWSCredentials) AsAWSIAMRoleCredentials() (AWSIAMRoleCredentials, error)

AsAWSIAMRoleCredentials returns the union data inside the AWSCredentials as a AWSIAMRoleCredentials

func (AWSCredentials) Discriminator added in v0.25.0

func (t AWSCredentials) Discriminator() (string, error)

func (*AWSCredentials) FromAWSAccessKeyCredentials added in v0.25.0

func (t *AWSCredentials) FromAWSAccessKeyCredentials(v AWSAccessKeyCredentials) error

FromAWSAccessKeyCredentials overwrites any union data inside the AWSCredentials as the provided AWSAccessKeyCredentials

func (*AWSCredentials) FromAWSIAMRoleCredentials added in v0.25.0

func (t *AWSCredentials) FromAWSIAMRoleCredentials(v AWSIAMRoleCredentials) error

FromAWSIAMRoleCredentials overwrites any union data inside the AWSCredentials as the provided AWSIAMRoleCredentials

func (AWSCredentials) MarshalJSON added in v0.25.0

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

func (*AWSCredentials) MergeAWSAccessKeyCredentials added in v0.25.0

func (t *AWSCredentials) MergeAWSAccessKeyCredentials(v AWSAccessKeyCredentials) error

MergeAWSAccessKeyCredentials performs a merge with any union data inside the AWSCredentials, using the provided AWSAccessKeyCredentials

func (*AWSCredentials) MergeAWSIAMRoleCredentials added in v0.25.0

func (t *AWSCredentials) MergeAWSIAMRoleCredentials(v AWSIAMRoleCredentials) error

MergeAWSIAMRoleCredentials performs a merge with any union data inside the AWSCredentials, using the provided AWSIAMRoleCredentials

func (*AWSCredentials) UnmarshalJSON added in v0.25.0

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

func (AWSCredentials) ValueByDiscriminator added in v0.25.0

func (t AWSCredentials) ValueByDiscriminator() (interface{}, error)

type AWSCredentialsUpdate added in v0.25.0

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

AWSCredentialsUpdate Replacement AWS credentials. Switching between the two kinds is allowed: sending `IAM_ROLE` discards any stored access key pair, and sending `ACCESS_KEY` discards any stored role.

func (AWSCredentialsUpdate) AsAWSAccessKeyCredentialsUpdate added in v0.25.0

func (t AWSCredentialsUpdate) AsAWSAccessKeyCredentialsUpdate() (AWSAccessKeyCredentialsUpdate, error)

AsAWSAccessKeyCredentialsUpdate returns the union data inside the AWSCredentialsUpdate as a AWSAccessKeyCredentialsUpdate

func (AWSCredentialsUpdate) AsAWSIAMRoleCredentials added in v0.25.0

func (t AWSCredentialsUpdate) AsAWSIAMRoleCredentials() (AWSIAMRoleCredentials, error)

AsAWSIAMRoleCredentials returns the union data inside the AWSCredentialsUpdate as a AWSIAMRoleCredentials

func (AWSCredentialsUpdate) Discriminator added in v0.25.0

func (t AWSCredentialsUpdate) Discriminator() (string, error)

func (*AWSCredentialsUpdate) FromAWSAccessKeyCredentialsUpdate added in v0.25.0

func (t *AWSCredentialsUpdate) FromAWSAccessKeyCredentialsUpdate(v AWSAccessKeyCredentialsUpdate) error

FromAWSAccessKeyCredentialsUpdate overwrites any union data inside the AWSCredentialsUpdate as the provided AWSAccessKeyCredentialsUpdate

func (*AWSCredentialsUpdate) FromAWSIAMRoleCredentials added in v0.25.0

func (t *AWSCredentialsUpdate) FromAWSIAMRoleCredentials(v AWSIAMRoleCredentials) error

FromAWSIAMRoleCredentials overwrites any union data inside the AWSCredentialsUpdate as the provided AWSIAMRoleCredentials

func (AWSCredentialsUpdate) MarshalJSON added in v0.25.0

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

func (*AWSCredentialsUpdate) MergeAWSAccessKeyCredentialsUpdate added in v0.25.0

func (t *AWSCredentialsUpdate) MergeAWSAccessKeyCredentialsUpdate(v AWSAccessKeyCredentialsUpdate) error

MergeAWSAccessKeyCredentialsUpdate performs a merge with any union data inside the AWSCredentialsUpdate, using the provided AWSAccessKeyCredentialsUpdate

func (*AWSCredentialsUpdate) MergeAWSIAMRoleCredentials added in v0.25.0

func (t *AWSCredentialsUpdate) MergeAWSIAMRoleCredentials(v AWSIAMRoleCredentials) error

MergeAWSIAMRoleCredentials performs a merge with any union data inside the AWSCredentialsUpdate, using the provided AWSIAMRoleCredentials

func (*AWSCredentialsUpdate) UnmarshalJSON added in v0.25.0

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

func (AWSCredentialsUpdate) ValueByDiscriminator added in v0.25.0

func (t AWSCredentialsUpdate) ValueByDiscriminator() (interface{}, error)

type AWSIAMRoleCredentials added in v0.25.0

type AWSIAMRoleCredentials struct {
	// AwsRoleArn The IAM role to assume, either as a full ARN or as the bare 12-digit
	// AWS account ID.
	//
	//
	// Example: arn:aws:iam::123456789012:role/tiger-cloud-cloudwatch
	AwsRoleArn string `json:"aws_role_arn"`

	// Type Always `IAM_ROLE`.
	Type AWSIAMRoleCredentialsType `json:"type"`
}

AWSIAMRoleCredentials An IAM role in your account that Tiger Cloud assumes.

type AWSIAMRoleCredentialsType added in v0.25.0

type AWSIAMRoleCredentialsType string

AWSIAMRoleCredentialsType Always `IAM_ROLE`.

const (
	AWSIAMRoleCredentialsTypeIAMROLE AWSIAMRoleCredentialsType = "IAM_ROLE"
)

Defines values for AWSIAMRoleCredentialsType.

func (AWSIAMRoleCredentialsType) Valid added in v0.25.0

func (e AWSIAMRoleCredentialsType) Valid() bool

Valid indicates whether the value is a known member of the AWSIAMRoleCredentialsType enum.

type AllowList added in v0.25.0

type AllowList struct {
	// AllowListID The unique identifier of the IP allow list.
	//
	// Example: 1234567890
	AllowListID string `json:"allow_list_id"`

	// CidrBlocks The IP ranges this IP allow list permits. Each block must be a
	// public range no smaller than a /17.
	CidrBlocks []string `json:"cidr_blocks"`

	// CreatedAt When the IP allow list was created.
	//
	// Example: 2025-01-15T09:30:00Z
	CreatedAt time.Time `json:"created_at"`

	// Description A human-readable label for the IP allow list.
	//
	// Example: Office network
	Description string `json:"description"`

	// ProjectID The project the IP allow list belongs to.
	//
	// Example: rp1pz7uyae
	ProjectID string `json:"project_id"`
}

AllowList An IP allow list, restricting which IP ranges can reach a service.

type AllowListCreate added in v0.25.0

type AllowListCreate struct {
	// CidrBlocks The IP ranges to permit. Each block must be a public range no
	// smaller than a /17; the count is capped by your plan.
	CidrBlocks []string `json:"cidr_blocks"`

	// Description A human-readable label for the IP allow list.
	//
	// Example: Office network
	Description string `json:"description"`
}

AllowListCreate Parameters for creating an IP allow list.

type AllowListID added in v0.25.0

type AllowListID = string

AllowListID Example: 1234567890

type AllowListUpdate added in v0.25.0

type AllowListUpdate struct {
	// CidrBlocks The IP ranges to permit, replacing the current set. Each block
	// must be a public range no smaller than a /17.
	CidrBlocks *[]string `json:"cidr_blocks,omitempty"`

	// Description A human-readable label for the IP allow list.
	//
	// Example: Office network
	Description *string `json:"description,omitempty"`
}

AllowListUpdate Parameters for updating an IP allow list. Send `description` and/or `cidr_blocks` to change them; omit either one to leave it unchanged. At least one is required.

type AnalyticsResponse

type AnalyticsResponse struct {
	// Status Status of the analytics operation.
	//
	// Example: success
	Status *string `json:"status,omitempty"`
}

AnalyticsResponse defines model for AnalyticsResponse.

type AttachServiceToAllowListJSONRequestBody added in v0.25.0

type AttachServiceToAllowListJSONRequestBody = ServiceAllowListInput

AttachServiceToAllowListJSONRequestBody defines body for AttachServiceToAllowList for application/json ContentType.

type AttachServiceToAllowListResponse added in v0.25.0

type AttachServiceToAllowListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *Service
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseAttachServiceToAllowListResponse added in v0.25.0

func ParseAttachServiceToAllowListResponse(rsp *http.Response) (*AttachServiceToAllowListResponse, error)

ParseAttachServiceToAllowListResponse parses an HTTP response from a AttachServiceToAllowListWithResponse call

func (AttachServiceToAllowListResponse) ContentType added in v0.25.0

func (r AttachServiceToAllowListResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AttachServiceToAllowListResponse) GetBody added in v0.25.0

func (r AttachServiceToAllowListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (AttachServiceToAllowListResponse) GetJSON4XX added in v0.25.0

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (AttachServiceToAllowListResponse) GetJSON202 added in v0.25.0

func (r AttachServiceToAllowListResponse) GetJSON202() *Service

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (AttachServiceToAllowListResponse) Status added in v0.25.0

Status returns HTTPResponse.Status

func (AttachServiceToAllowListResponse) StatusCode added in v0.25.0

func (r AttachServiceToAllowListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AttachServiceToExporterJSONRequestBody added in v0.25.0

type AttachServiceToExporterJSONRequestBody = ServiceExporterInput

AttachServiceToExporterJSONRequestBody defines body for AttachServiceToExporter for application/json ContentType.

type AttachServiceToExporterResponse added in v0.25.0

type AttachServiceToExporterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *Service
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseAttachServiceToExporterResponse added in v0.25.0

func ParseAttachServiceToExporterResponse(rsp *http.Response) (*AttachServiceToExporterResponse, error)

ParseAttachServiceToExporterResponse parses an HTTP response from a AttachServiceToExporterWithResponse call

func (AttachServiceToExporterResponse) ContentType added in v0.25.0

func (r AttachServiceToExporterResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AttachServiceToExporterResponse) GetBody added in v0.25.0

func (r AttachServiceToExporterResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (AttachServiceToExporterResponse) GetJSON4XX added in v0.25.0

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (AttachServiceToExporterResponse) GetJSON202 added in v0.25.0

func (r AttachServiceToExporterResponse) GetJSON202() *Service

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (AttachServiceToExporterResponse) Status added in v0.25.0

Status returns HTTPResponse.Status

func (AttachServiceToExporterResponse) StatusCode added in v0.25.0

func (r AttachServiceToExporterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AttachServiceToVPCJSONRequestBody

type AttachServiceToVPCJSONRequestBody = ServiceVPCInput

AttachServiceToVPCJSONRequestBody defines body for AttachServiceToVPC for application/json ContentType.

type AttachServiceToVPCResponse

type AttachServiceToVPCResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *SuccessMessage
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseAttachServiceToVPCResponse

func ParseAttachServiceToVPCResponse(rsp *http.Response) (*AttachServiceToVPCResponse, error)

ParseAttachServiceToVPCResponse parses an HTTP response from a AttachServiceToVPCWithResponse call

func (AttachServiceToVPCResponse) ContentType added in v0.24.0

func (r AttachServiceToVPCResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AttachServiceToVPCResponse) GetBody added in v0.24.0

func (r AttachServiceToVPCResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (AttachServiceToVPCResponse) GetJSON4XX added in v0.24.0

func (r AttachServiceToVPCResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (AttachServiceToVPCResponse) GetJSON202 added in v0.24.0

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (AttachServiceToVPCResponse) Status

Status returns HTTPResponse.Status

func (AttachServiceToVPCResponse) StatusCode

func (r AttachServiceToVPCResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AuthInfo

type AuthInfo struct {
	// APIKeyDeprecated Deprecated. Use `api_key` instead.
	// Deprecated: Use `api_key` instead.
	APIKeyDeprecated *AuthInfoAPIKey `json:"apiKey,omitempty"`

	// APIKey Information about the API key credentials (PAT).
	APIKey *AuthInfoAPIKey `json:"api_key,omitempty"`

	// Oauth OAuth user details. Present for OAuth user callers.
	Oauth *AuthInfoOAuth `json:"oauth,omitempty"`

	// Type Discriminator for the credential shape. `apiKey` for PAT callers; `oauth` for OAuth
	// user callers.
	//
	//
	// Example: apiKey
	Type AuthInfoType `json:"type"`
}

AuthInfo Information about the authentication credentials being used. Exactly one of `api_key` or `oauth` is populated; the `type` field discriminates.

type AuthInfoAPIKey

type AuthInfoAPIKey struct {
	// Created When the client credentials were created.
	//
	// Example: 2024-01-15T10:30:00Z
	Created time.Time `json:"created"`

	// IssuingUser Information about the user who created the credentials.
	IssuingUser AuthInfoIssuingUser `json:"issuing_user"`

	// Name The name of the credential.
	//
	// Example: my-production-token
	Name string `json:"name"`

	// Project Information about the project.
	Project AuthInfoProject `json:"project"`

	// PublicKey The public key of the client credentials.
	//
	// Example: tskey_abc123
	PublicKey string `json:"public_key"`
}

AuthInfoAPIKey Information about the API key credentials (PAT).

type AuthInfoIssuingUser

type AuthInfoIssuingUser struct {
	// Email The user's email.
	//
	// Example: john.doe@example.com
	Email openapi_types.Email `json:"email"`

	// ID The user ID.
	//
	// Example: user123
	ID string `json:"id"`

	// Name The user's name.
	//
	// Example: John Doe
	Name string `json:"name"`
}

AuthInfoIssuingUser Information about the user who created the credentials.

type AuthInfoOAuth

type AuthInfoOAuth struct {
	// User The authenticated OAuth user.
	User AuthInfoUser `json:"user"`
}

AuthInfoOAuth OAuth user details. Present for OAuth user callers.

type AuthInfoProject

type AuthInfoProject struct {
	// ID The project ID.
	//
	// Example: rp1pz7uyae
	ID string `json:"id"`

	// Name The name of the project.
	//
	// Example: My Production Project
	Name string `json:"name"`

	// PlanType The plan type for the project.
	//
	// Example: FREE
	PlanType string `json:"plan_type"`
}

AuthInfoProject Information about the project.

type AuthInfoType

type AuthInfoType string

AuthInfoType Discriminator for the credential shape. `apiKey` for PAT callers; `oauth` for OAuth user callers.

Example: apiKey

const (
	AuthInfoTypeAPIKey AuthInfoType = "apiKey"
	AuthInfoTypeOauth  AuthInfoType = "oauth"
)

Defines values for AuthInfoType.

func (AuthInfoType) Valid added in v0.24.0

func (e AuthInfoType) Valid() bool

Valid indicates whether the value is a known member of the AuthInfoType enum.

type AuthInfoUser

type AuthInfoUser struct {
	// Email The user's email.
	//
	// Example: john.doe@example.com
	Email openapi_types.Email `json:"email"`

	// ID The numeric user ID.
	//
	// Example: 1234567
	ID string `json:"id"`

	// Name The user's name.
	//
	// Example: John Doe
	Name string `json:"name"`
}

AuthInfoUser The authenticated OAuth user.

type AzureMonitorMetricsConfig added in v0.25.0

type AzureMonitorMetricsConfig struct {
	// ConnectionString The Azure Monitor connection string for the workspace to send
	// metrics to.
	//
	//
	// Example: InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://eastus-1.in.applicationinsights.azure.com/
	ConnectionString *string `json:"connection_string,omitempty"`

	// IncludePgMetrics Include PostgreSQL database metrics, such as per-table and
	// per-index statistics, alongside the service's operational metrics.
	// This increases the volume of metrics sent, which may cost more at
	// the destination.
	//
	//
	// Example: true
	IncludePgMetrics *bool `json:"include_pg_metrics,omitempty"`
}

AzureMonitorMetricsConfig Which Azure Monitor workspace a service's metrics are sent to.

type AzureMonitorMetricsConfigUpdate added in v0.25.0

type AzureMonitorMetricsConfigUpdate struct {
	// ConnectionString A replacement Azure Monitor connection string.
	//
	// Example: InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://eastus-1.in.applicationinsights.azure.com/
	ConnectionString *string `json:"connection_string,omitempty"`

	// IncludePgMetrics Whether to include PostgreSQL database metrics, such as
	// per-table and per-index statistics, alongside the service's
	// operational metrics. Send the value you want the exporter to
	// have, not only the value you are changing.
	//
	//
	// Example: true
	IncludePgMetrics bool `json:"include_pg_metrics"`
}

AzureMonitorMetricsConfigUpdate A replacement configuration for an Azure Monitor metrics exporter. Omitting `connection_string` keeps the stored one.

type AzureMonitorMetricsExporter added in v0.25.0

type AzureMonitorMetricsExporter struct {
	// Config Which Azure Monitor workspace a service's metrics are sent to.
	Config AzureMonitorMetricsConfig `json:"config"`

	// Created When the exporter was created.
	//
	// Example: 2026-01-15T10:30:00Z
	Created time.Time `json:"created"`

	// ExporterID The unique identifier for the exporter.
	//
	// Example: 3f7c1c9a-0d2e-4d76-9a1b-5c8e0f2a7b31
	ExporterID openapi_types.UUID `json:"exporter_id"`

	// Name A human-readable name for the exporter. Not used to identify it.
	//
	// Example: prod-metrics-to-datadog
	Name string `json:"name"`

	// ProjectID The project the exporter belongs to.
	//
	// Example: rp1pz7uyae
	ProjectID string `json:"project_id"`

	// RegionCode The cloud region the exporter runs in. Only services in this region
	// can be attached to it, and it cannot be changed afterwards.
	//
	//
	// Example: us-east-1
	RegionCode string `json:"region_code"`

	// Type Always `AZURE_MONITOR_METRICS`.
	Type AzureMonitorMetricsExporterType `json:"type"`
}

AzureMonitorMetricsExporter An exporter that sends service metrics to Azure Monitor.

type AzureMonitorMetricsExporterCreate added in v0.25.0

type AzureMonitorMetricsExporterCreate struct {
	// Config Which Azure Monitor workspace a service's metrics are sent to.
	Config AzureMonitorMetricsConfig `json:"config"`

	// Name A human-readable name for the exporter.
	//
	// Example: prod-metrics-to-datadog
	Name string `json:"name"`

	// RegionCode The cloud region to create the exporter in. Only services in this
	// region can be attached to it, and it cannot be changed afterwards.
	//
	//
	// Example: us-east-1
	RegionCode string `json:"region_code"`

	// Type Always `AZURE_MONITOR_METRICS`.
	Type AzureMonitorMetricsExporterCreateType `json:"type"`
}

AzureMonitorMetricsExporterCreate Parameters for creating an Azure Monitor metrics exporter.

type AzureMonitorMetricsExporterCreateType added in v0.25.0

type AzureMonitorMetricsExporterCreateType string

AzureMonitorMetricsExporterCreateType Always `AZURE_MONITOR_METRICS`.

const (
	AzureMonitorMetricsExporterCreateTypeAZUREMONITORMETRICS AzureMonitorMetricsExporterCreateType = "AZURE_MONITOR_METRICS"
)

Defines values for AzureMonitorMetricsExporterCreateType.

func (AzureMonitorMetricsExporterCreateType) Valid added in v0.25.0

Valid indicates whether the value is a known member of the AzureMonitorMetricsExporterCreateType enum.

type AzureMonitorMetricsExporterType added in v0.25.0

type AzureMonitorMetricsExporterType string

AzureMonitorMetricsExporterType Always `AZURE_MONITOR_METRICS`.

const (
	AzureMonitorMetricsExporterTypeAZUREMONITORMETRICS AzureMonitorMetricsExporterType = "AZURE_MONITOR_METRICS"
)

Defines values for AzureMonitorMetricsExporterType.

func (AzureMonitorMetricsExporterType) Valid added in v0.25.0

Valid indicates whether the value is a known member of the AzureMonitorMetricsExporterType enum.

type AzureMonitorMetricsExporterUpdate added in v0.25.0

type AzureMonitorMetricsExporterUpdate struct {
	// Config A replacement configuration for an Azure Monitor metrics exporter.
	// Omitting `connection_string` keeps the stored one.
	Config *AzureMonitorMetricsConfigUpdate `json:"config,omitempty"`

	// Name A new human-readable name for the exporter.
	//
	// Example: prod-metrics-to-datadog
	Name *string `json:"name,omitempty"`

	// Type Always `AZURE_MONITOR_METRICS`.
	Type AzureMonitorMetricsExporterUpdateType `json:"type"`
}

AzureMonitorMetricsExporterUpdate Parameters for updating an Azure Monitor metrics exporter.

type AzureMonitorMetricsExporterUpdateType added in v0.25.0

type AzureMonitorMetricsExporterUpdateType string

AzureMonitorMetricsExporterUpdateType Always `AZURE_MONITOR_METRICS`.

const (
	AzureMonitorMetricsExporterUpdateTypeAZUREMONITORMETRICS AzureMonitorMetricsExporterUpdateType = "AZURE_MONITOR_METRICS"
)

Defines values for AzureMonitorMetricsExporterUpdateType.

func (AzureMonitorMetricsExporterUpdateType) Valid added in v0.25.0

Valid indicates whether the value is a known member of the AzureMonitorMetricsExporterUpdateType enum.

type Backup added in v0.23.0

type Backup struct {
	// DurationSeconds How long the backup took, in seconds. Absent while the backup is still running.
	//
	// Example: 672
	DurationSeconds *int64 `json:"duration_seconds,omitempty"`

	// FinishedAt When the backup finished. Absent while the backup is still running.
	//
	// Example: 2026-01-15T09:41:12Z
	FinishedAt *time.Time `json:"finished_at,omitempty"`

	// Label The label the backup system assigns to this backup.
	//
	// Example: 20260115-093000F
	Label string `json:"label"`

	// Regions Every region storing a copy of this backup: the region the service
	// runs in, plus any region enabled for cross-region backups.
	Regions []BackupRegionState `json:"regions"`

	// SizeBytes The size of the backup in bytes. Absent while the backup is still running.
	//
	// Example: 4831838208
	SizeBytes *int64 `json:"size_bytes,omitempty"`

	// StartedAt When the backup started.
	//
	// Example: 2026-01-15T09:30:00Z
	StartedAt time.Time `json:"started_at"`

	// Type The type of the backup.
	Type BackupType `json:"type"`
}

Backup A single backup of a service, taken automatically by Tiger Cloud.

type BackupCopyStatus added in v0.23.0

type BackupCopyStatus string

BackupCopyStatus The state of a copy of a backup in one region.

- `SCHEDULED`: the copy has not started yet. - `RUNNING`: the copy is in progress. - `RETRYING`: the copy failed and is being retried. - `FINISHED`: the copy completed successfully. - `FAILED`: the copy did not complete. - `UNKNOWN`: an unrecognized state.

const (
	BackupCopyStatusFAILED    BackupCopyStatus = "FAILED"
	BackupCopyStatusFINISHED  BackupCopyStatus = "FINISHED"
	BackupCopyStatusRETRYING  BackupCopyStatus = "RETRYING"
	BackupCopyStatusRUNNING   BackupCopyStatus = "RUNNING"
	BackupCopyStatusSCHEDULED BackupCopyStatus = "SCHEDULED"
	BackupCopyStatusUNKNOWN   BackupCopyStatus = "UNKNOWN"
)

Defines values for BackupCopyStatus.

func (BackupCopyStatus) Valid added in v0.24.0

func (e BackupCopyStatus) Valid() bool

Valid indicates whether the value is a known member of the BackupCopyStatus enum.

type BackupRegion added in v0.25.0

type BackupRegion struct {
	// Created When the region was added.
	//
	// Example: 2026-01-15T09:30:00Z
	Created *time.Time `json:"created,omitempty"`

	// RegionCode The region backups are copied to.
	//
	// Example: eu-central-1
	RegionCode string `json:"region_code"`
}

BackupRegion A region that receives copies of a service's backups.

type BackupRegionCode added in v0.25.0

type BackupRegionCode = string

BackupRegionCode Example: eu-central-1

type BackupRegionCreate added in v0.25.0

type BackupRegionCreate struct {
	// RegionCode The region to copy backups to. It cannot be the region the service runs in.
	//
	// Example: eu-central-1
	RegionCode string `json:"region_code"`
}

BackupRegionCreate The region to start copying a service's backups to.

type BackupRegionState added in v0.23.0

type BackupRegionState struct {
	// RegionCode The region storing the copy.
	//
	// Example: eu-central-1
	RegionCode string `json:"region_code"`

	// Status The state of this copy.
	Status *BackupCopyStatus `json:"status,omitempty"`
}

BackupRegionState A region storing a copy of a backup.

type BackupRetentionByTime added in v0.25.0

type BackupRetentionByTime struct {
	// RetentionDays How many days of backups to keep. The current plan-based limit is 180 days.
	//
	// Example: 21
	RetentionDays int `json:"retention_days"`

	// Type Always `TIME`.
	Type BackupRetentionByTimeType `json:"type"`
}

BackupRetentionByTime Keep the backups taken within a number of days, and discard older ones.

type BackupRetentionByTimeType added in v0.25.0

type BackupRetentionByTimeType string

BackupRetentionByTimeType Always `TIME`.

const (
	BackupRetentionByTimeTypeTIME BackupRetentionByTimeType = "TIME"
)

Defines values for BackupRetentionByTimeType.

func (BackupRetentionByTimeType) Valid added in v0.25.0

func (e BackupRetentionByTimeType) Valid() bool

Valid indicates whether the value is a known member of the BackupRetentionByTimeType enum.

type BackupType added in v0.23.0

type BackupType string

BackupType The type of a backup.

- `FULL`: a complete copy of the service's data. - `INCREMENTAL`: only the data that changed since the previous backup. - `UNKNOWN`: a type this version of the API does not name.

const (
	BackupTypeFULL        BackupType = "FULL"
	BackupTypeINCREMENTAL BackupType = "INCREMENTAL"
	BackupTypeUNKNOWN     BackupType = "UNKNOWN"
)

Defines values for BackupType.

func (BackupType) Valid added in v0.24.0

func (e BackupType) Valid() bool

Valid indicates whether the value is a known member of the BackupType enum.

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) AttachServiceToAllowList added in v0.25.0

func (c *Client) AttachServiceToAllowList(ctx context.Context, projectID ProjectID, serviceID ServiceID, body AttachServiceToAllowListJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

AttachServiceToAllowList Attach Service to IP Allow List

**Preview - this endpoint is experimental and may change without notice.**

Restricts a service's connections to the IP ranges in an IP allow list. A service has at most one IP allow list; attaching a second one without detaching the first is refused.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/attachToAllowList (the `AttachServiceToAllowList` operationId).

func (*Client) AttachServiceToAllowListWithBody added in v0.25.0

func (c *Client) AttachServiceToAllowListWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

AttachServiceToAllowListWithBody Attach Service to IP Allow List

**Preview - this endpoint is experimental and may change without notice.**

Restricts a service's connections to the IP ranges in an IP allow list. A service has at most one IP allow list; attaching a second one without detaching the first is refused.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/attachToAllowList (the `AttachServiceToAllowList` operationId).

func (*Client) AttachServiceToExporter added in v0.25.0

func (c *Client) AttachServiceToExporter(ctx context.Context, projectID ProjectID, serviceID ServiceID, body AttachServiceToExporterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

AttachServiceToExporter Attach Service to Exporter

**Preview - this endpoint is experimental and may change without notice.**

Starts sending a service's logs or metrics to an exporter.

A service sends to at most one log exporter and one metric exporter at a time. Attaching a second exporter of the same kind is refused; detach the current one first.

The first time a log exporter is attached to a service, the service restarts once. Attaching a different log exporter later does not restart anything, and neither does attaching a metric exporter.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/attachToExporter (the `AttachServiceToExporter` operationId).

func (*Client) AttachServiceToExporterWithBody added in v0.25.0

func (c *Client) AttachServiceToExporterWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

AttachServiceToExporterWithBody Attach Service to Exporter

**Preview - this endpoint is experimental and may change without notice.**

Starts sending a service's logs or metrics to an exporter.

A service sends to at most one log exporter and one metric exporter at a time. Attaching a second exporter of the same kind is refused; detach the current one first.

The first time a log exporter is attached to a service, the service restarts once. Attaching a different log exporter later does not restart anything, and neither does attaching a metric exporter.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/attachToExporter (the `AttachServiceToExporter` operationId).

func (*Client) AttachServiceToVPC

func (c *Client) AttachServiceToVPC(ctx context.Context, projectID ProjectID, serviceID ServiceID, body AttachServiceToVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

AttachServiceToVPC Attach Service to VPC

Associates a service with a VPC.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/attachToVPC (the `AttachServiceToVPC` operationId).

func (*Client) AttachServiceToVPCWithBody

func (c *Client) AttachServiceToVPCWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

AttachServiceToVPCWithBody Attach Service to VPC

Associates a service with a VPC.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/attachToVPC (the `AttachServiceToVPC` operationId).

func (*Client) CreateAllowList added in v0.25.0

func (c *Client) CreateAllowList(ctx context.Context, projectID ProjectID, body CreateAllowListJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateAllowList Create an IP Allow List

**Preview - this endpoint is experimental and may change without notice.**

Creates an IP allow list in a project. An IP allow list carries no effect until it is attached to a service.

The number of CIDR blocks per list and the number of lists per project are plan-dependent.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/allow-lists (the `CreateAllowList` operationId).

func (*Client) CreateAllowListWithBody added in v0.25.0

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

CreateAllowListWithBody Create an IP Allow List

**Preview - this endpoint is experimental and may change without notice.**

Creates an IP allow list in a project. An IP allow list carries no effect until it is attached to a service.

The number of CIDR blocks per list and the number of lists per project are plan-dependent.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/allow-lists (the `CreateAllowList` operationId).

func (*Client) CreateBackupRegion added in v0.25.0

func (c *Client) CreateBackupRegion(ctx context.Context, projectID ProjectID, serviceID ServiceID, body CreateBackupRegionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateBackupRegion Add a Backup Region

**Preview - this endpoint is experimental and may change without notice.**

Starts copying this service's backups to another region. The region is added immediately; existing backups are copied to it in the background.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/backup-regions (the `CreateBackupRegion` operationId).

func (*Client) CreateBackupRegionWithBody added in v0.25.0

func (c *Client) CreateBackupRegionWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateBackupRegionWithBody Add a Backup Region

**Preview - this endpoint is experimental and may change without notice.**

Starts copying this service's backups to another region. The region is added immediately; existing backups are copied to it in the background.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/backup-regions (the `CreateBackupRegion` operationId).

func (*Client) CreateExporter added in v0.25.0

func (c *Client) CreateExporter(ctx context.Context, projectID ProjectID, body CreateExporterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateExporter Create an Exporter

**Preview - this endpoint is experimental and may change without notice.**

Creates an exporter in a project and region.

An exporter carries no data until it is attached to a service.

Exporters aren't available on every plan. If your project's plan doesn't include them, this request is refused here rather than later, when you try to attach one.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/exporters (the `CreateExporter` operationId).

func (*Client) CreateExporterWithBody added in v0.25.0

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

CreateExporterWithBody Create an Exporter

**Preview - this endpoint is experimental and may change without notice.**

Creates an exporter in a project and region.

An exporter carries no data until it is attached to a service.

Exporters aren't available on every plan. If your project's plan doesn't include them, this request is refused here rather than later, when you try to attach one.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/exporters (the `CreateExporter` operationId).

func (*Client) CreateReplicaSet

func (c *Client) CreateReplicaSet(ctx context.Context, projectID ProjectID, serviceID ServiceID, body CreateReplicaSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateReplicaSet Create a Read Replica Set

Creates a new read replica set for a service. This is an asynchronous operation.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets (the `CreateReplicaSet` operationId).

func (*Client) CreateReplicaSetWithBody

func (c *Client) CreateReplicaSetWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateReplicaSetWithBody Create a Read Replica Set

Creates a new read replica set for a service. This is an asynchronous operation.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets (the `CreateReplicaSet` operationId).

func (*Client) CreateService

func (c *Client) CreateService(ctx context.Context, projectID ProjectID, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateService Create a Service

Creates a new database service within a project. This is an asynchronous operation.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/services (the `CreateService` operationId).

func (*Client) CreateServiceWithBody

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

CreateServiceWithBody Create a Service

Creates a new database service within a project. This is an asynchronous operation.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/services (the `CreateService` operationId).

func (*Client) CreateVPC

func (c *Client) CreateVPC(ctx context.Context, projectID ProjectID, body CreateVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateVPC Create a VPC

Creates a new Virtual Private Cloud (VPC).

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/vpcs (the `CreateVPC` operationId).

func (*Client) CreateVPCPeering

func (c *Client) CreateVPCPeering(ctx context.Context, projectID ProjectID, vpcID VPCId, body CreateVPCPeeringJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateVPCPeering Create a VPC Peering

Creates a new VPC peering connection.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/vpcs/{vpc_id}/peerings (the `CreateVPCPeering` operationId).

func (*Client) CreateVPCPeeringWithBody

func (c *Client) CreateVPCPeeringWithBody(ctx context.Context, projectID ProjectID, vpcID VPCId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateVPCPeeringWithBody Create a VPC Peering

Creates a new VPC peering connection.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/vpcs/{vpc_id}/peerings (the `CreateVPCPeering` operationId).

func (*Client) CreateVPCWithBody

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

CreateVPCWithBody Create a VPC

Creates a new Virtual Private Cloud (VPC).

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/vpcs (the `CreateVPC` operationId).

func (*Client) DeleteAllowList added in v0.25.0

func (c *Client) DeleteAllowList(ctx context.Context, projectID ProjectID, allowListID AllowListID, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteAllowList Delete an IP Allow List

**Preview - this endpoint is experimental and may change without notice.**

Deletes an IP allow list. Refused if the list is still attached to any service. Detach it first.

Corresponds with DELETE /projects/{project_id}/allow-lists/{allow_list_id} (the `DeleteAllowList` operationId).

func (*Client) DeleteBackupRegion added in v0.25.0

func (c *Client) DeleteBackupRegion(ctx context.Context, projectID ProjectID, serviceID ServiceID, regionCode BackupRegionCode, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteBackupRegion Remove a Backup Region

**Preview - this endpoint is experimental and may change without notice.**

Stops copying this service's backups to a region. Copies already stored there are deleted in the background and cannot be recovered.

Corresponds with DELETE /projects/{project_id}/services/{service_id}/backup-regions/{region_code} (the `DeleteBackupRegion` operationId).

func (*Client) DeleteExporter added in v0.25.0

func (c *Client) DeleteExporter(ctx context.Context, projectID ProjectID, exporterID ExporterID, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteExporter Delete an Exporter

**Preview - this endpoint is experimental and may change without notice.**

Deletes an exporter and stops the data it was sending. Any service still attached is detached automatically. You don't need to detach it first, and nothing errors if you don't.

Data already delivered to the destination is untouched, and nothing on the services themselves changes.

Corresponds with DELETE /projects/{project_id}/exporters/{exporter_id} (the `DeleteExporter` operationId).

func (*Client) DeleteReplicaSet

func (c *Client) DeleteReplicaSet(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteReplicaSet Delete a Read Replica Set

Deletes a specific read replica set. This is an asynchronous operation.

Corresponds with DELETE /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id} (the `DeleteReplicaSet` operationId).

func (*Client) DeleteService

func (c *Client) DeleteService(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteService Delete a Service

Deletes a specific service. This is an asynchronous operation.

Corresponds with DELETE /projects/{project_id}/services/{service_id} (the `DeleteService` operationId).

func (*Client) DeleteVPC

func (c *Client) DeleteVPC(ctx context.Context, projectID ProjectID, vpcID VPCId, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteVPC Delete a VPC

Deletes a specific VPC.

Corresponds with DELETE /projects/{project_id}/vpcs/{vpc_id} (the `DeleteVPC` operationId).

func (*Client) DeleteVPCPeering

func (c *Client) DeleteVPCPeering(ctx context.Context, projectID ProjectID, vpcID VPCId, peeringID PeeringID, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteVPCPeering Delete a VPC Peering

Deletes a specific VPC peering connection.

Corresponds with DELETE /projects/{project_id}/vpcs/{vpc_id}/peerings/{peering_id} (the `DeleteVPCPeering` operationId).

func (*Client) DetachServiceFromAllowList added in v0.25.0

func (c *Client) DetachServiceFromAllowList(ctx context.Context, projectID ProjectID, serviceID ServiceID, body DetachServiceFromAllowListJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

DetachServiceFromAllowList Detach Service from IP Allow List

**Preview - this endpoint is experimental and may change without notice.**

Removes the IP restriction an IP allow list placed on a service. The IP allow list itself is not deleted.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromAllowList (the `DetachServiceFromAllowList` operationId).

func (*Client) DetachServiceFromAllowListWithBody added in v0.25.0

func (c *Client) DetachServiceFromAllowListWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

DetachServiceFromAllowListWithBody Detach Service from IP Allow List

**Preview - this endpoint is experimental and may change without notice.**

Removes the IP restriction an IP allow list placed on a service. The IP allow list itself is not deleted.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromAllowList (the `DetachServiceFromAllowList` operationId).

func (*Client) DetachServiceFromExporter added in v0.25.0

func (c *Client) DetachServiceFromExporter(ctx context.Context, projectID ProjectID, serviceID ServiceID, body DetachServiceFromExporterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

DetachServiceFromExporter Detach Service from Exporter

**Preview - this endpoint is experimental and may change without notice.**

Stops sending a service's logs or metrics to an exporter. The exporter is not deleted and keeps serving any other service attached to it.

Data already delivered to the destination is untouched.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromExporter (the `DetachServiceFromExporter` operationId).

func (*Client) DetachServiceFromExporterWithBody added in v0.25.0

func (c *Client) DetachServiceFromExporterWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

DetachServiceFromExporterWithBody Detach Service from Exporter

**Preview - this endpoint is experimental and may change without notice.**

Stops sending a service's logs or metrics to an exporter. The exporter is not deleted and keeps serving any other service attached to it.

Data already delivered to the destination is untouched.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromExporter (the `DetachServiceFromExporter` operationId).

func (*Client) DetachServiceFromVPC

func (c *Client) DetachServiceFromVPC(ctx context.Context, projectID ProjectID, serviceID ServiceID, body DetachServiceFromVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

DetachServiceFromVPC Detach Service from VPC

Disassociates a service from its VPC.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromVPC (the `DetachServiceFromVPC` operationId).

func (*Client) DetachServiceFromVPCWithBody

func (c *Client) DetachServiceFromVPCWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

DetachServiceFromVPCWithBody Detach Service from VPC

Disassociates a service from its VPC.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromVPC (the `DetachServiceFromVPC` operationId).

func (*Client) DisablePooler

func (c *Client) DisablePooler(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

DisablePooler Disable Connection Pooler for a Service

Deactivates the connection pooler for a specific service within a project.

Corresponds with POST /projects/{project_id}/services/{service_id}/disablePooler (the `DisablePooler` operationId).

func (*Client) DisableReplicaPooler

func (c *Client) DisableReplicaPooler(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*http.Response, error)

DisableReplicaPooler Disable Connection Pooler for a Read Replica

Deactivates the connection pooler for a specific read replica set.

Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/disablePooler (the `DisableReplicaPooler` operationId).

func (*Client) EnableDataTiering added in v0.25.0

func (c *Client) EnableDataTiering(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

EnableDataTiering Enable Data Tiering for a Service

Enables tiered storage on the service. Tiering policies move older, rarely-accessed data from the high-performance storage tier to a low-cost object storage tier. Tiered data stays queryable but becomes read-only.

There is no way to disable tiering through this API. Contact Tiger Data support if you need to turn it off.

Corresponds with POST /projects/{project_id}/services/{service_id}/enableDataTiering (the `EnableDataTiering` operationId).

func (*Client) EnablePooler

func (c *Client) EnablePooler(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

EnablePooler Enable Connection Pooler for a Service

Activates the connection pooler for a specific service within a project.

Corresponds with POST /projects/{project_id}/services/{service_id}/enablePooler (the `EnablePooler` operationId).

func (*Client) EnableReplicaPooler

func (c *Client) EnableReplicaPooler(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*http.Response, error)

EnableReplicaPooler Enable Connection Pooler for a Read Replica

Activates the connection pooler for a specific read replica set.

Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/enablePooler (the `EnableReplicaPooler` operationId).

func (*Client) ForkService

func (c *Client) ForkService(ctx context.Context, projectID ProjectID, serviceID ServiceID, body ForkServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ForkService Fork a Service

Creates a new, independent service within a project by taking a snapshot of an existing one.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/forkService (the `ForkService` operationId).

func (*Client) ForkServiceWithBody

func (c *Client) ForkServiceWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ForkServiceWithBody Fork a Service

Creates a new, independent service within a project by taking a snapshot of an existing one.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/forkService (the `ForkService` operationId).

func (*Client) GetAllowList added in v0.25.0

func (c *Client) GetAllowList(ctx context.Context, projectID ProjectID, allowListID AllowListID, reqEditors ...RequestEditorFn) (*http.Response, error)

GetAllowList Get an IP Allow List

**Preview - this endpoint is experimental and may change without notice.**

Retrieves a single IP allow list.

Corresponds with GET /projects/{project_id}/allow-lists/{allow_list_id} (the `GetAllowList` operationId).

func (*Client) GetAllowLists added in v0.25.0

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

GetAllowLists List All IP Allow Lists

**Preview - this endpoint is experimental and may change without notice.**

Retrieves every IP allow list in a project.

Corresponds with GET /projects/{project_id}/allow-lists (the `GetAllowLists` operationId).

func (*Client) GetAuthInfo

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

GetAuthInfo Get Authentication Info

Returns the authenticated caller's identity. The response shape depends on the credential type: `apiKey` for PAT callers, `oauth` for OAuth user callers. Exactly one of `api_key` or `oauth` is populated; `type` discriminates.

Corresponds with GET /auth/info (the `GetAuthInfo` operationId).

func (*Client) GetBackupRegions added in v0.25.0

func (c *Client) GetBackupRegions(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

GetBackupRegions List All Backup Regions

**Preview - this endpoint is experimental and may change without notice.**

Retrieves the additional regions this service's backups are copied to (cross-region backups). The region the service runs in is not listed.

Corresponds with GET /projects/{project_id}/services/{service_id}/backup-regions (the `GetBackupRegions` operationId).

func (*Client) GetBackupRetention added in v0.25.0

func (c *Client) GetBackupRetention(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

GetBackupRetention Get the Backup Retention Policy

**Preview - this endpoint is experimental and may change without notice.**

Retrieves how long this service keeps its backups.

Corresponds with GET /projects/{project_id}/services/{service_id}/backup-retention (the `GetBackupRetention` operationId).

func (*Client) GetBackups added in v0.23.0

func (c *Client) GetBackups(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

GetBackups List All Backups

**Preview - this endpoint is experimental and may change without notice.**

Retrieves a list of the full and incremental backups taken for a service. Backups run automatically on a schedule; there is no operation to create or delete one. To restore data, create a recovery fork with `fork_strategy: PITR`.

Corresponds with GET /projects/{project_id}/services/{service_id}/backups (the `GetBackups` operationId).

func (*Client) GetExporter added in v0.25.0

func (c *Client) GetExporter(ctx context.Context, projectID ProjectID, exporterID ExporterID, reqEditors ...RequestEditorFn) (*http.Response, error)

GetExporter Get an Exporter

**Preview - this endpoint is experimental and may change without notice.**

Retrieves a single exporter.

Corresponds with GET /projects/{project_id}/exporters/{exporter_id} (the `GetExporter` operationId).

func (*Client) GetExporters added in v0.25.0

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

GetExporters List All Exporters

**Preview - this endpoint is experimental and may change without notice.**

Retrieves every exporter in a project, across every region.

Corresponds with GET /projects/{project_id}/exporters (the `GetExporters` operationId).

func (*Client) GetProjects

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

GetProjects List projects accessible to the authenticated caller

Returns the projects the caller can access. PAT callers see only the project their PAT is scoped to; OAuth user callers see all projects they belong to.

Corresponds with GET /projects (the `GetProjects` operationId).

func (*Client) GetReplicaSets

func (c *Client) GetReplicaSets(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

GetReplicaSets Get Read Replica Sets

Retrieves a list of all read replica sets associated with a primary service within a project.

Corresponds with GET /projects/{project_id}/services/{service_id}/replicaSets (the `GetReplicaSets` operationId).

func (*Client) GetService

func (c *Client) GetService(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

GetService Get a Service

Retrieves the details of a specific service by its ID.

Corresponds with GET /projects/{project_id}/services/{service_id} (the `GetService` operationId).

func (*Client) GetServiceLogs

func (c *Client) GetServiceLogs(ctx context.Context, projectID ProjectID, serviceID ServiceID, params *GetServiceLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetServiceLogs Get service logs

Fetch logs for a specific service. Returns up to 500 log entries in reverse chronological order. Supports cursor-based pagination via the `cursor` parameter and the `last_cursor` field in the response.

Use the returned `last_cursor` value as the `cursor` parameter on subsequent requests to page through all available logs.

Corresponds with GET /projects/{project_id}/services/{service_id}/logs (the `GetServiceLogs` operationId).

func (*Client) GetServiceMetricDetails added in v0.25.0

func (c *Client) GetServiceMetricDetails(ctx context.Context, projectID ProjectID, serviceID ServiceID, metricName string, reqEditors ...RequestEditorFn) (*http.Response, error)

GetServiceMetricDetails Get details about a metric

Returns descriptive metadata for a named metric: what it measures, its type, default aggregation, and every label it can be filtered or grouped by — its own labels plus the region/role/ordinal labels most metrics also carry. Use getServiceMetricsAvailableSeries to discover valid metric names.

Corresponds with GET /projects/{project_id}/services/{service_id}/metrics/details/{metric_name} (the `GetServiceMetricDetails` operationId).

func (*Client) GetServiceMetricsAvailableSeries

func (c *Client) GetServiceMetricsAvailableSeries(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

GetServiceMetricsAvailableSeries List available metric series

Returns the names of all metric series available for a service.

Corresponds with GET /projects/{project_id}/services/{service_id}/metrics/available-series (the `GetServiceMetricsAvailableSeries` operationId).

func (*Client) GetServiceMetricsSeries

func (c *Client) GetServiceMetricsSeries(ctx context.Context, projectID ProjectID, serviceID ServiceID, body GetServiceMetricsSeriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GetServiceMetricsSeries Get a metric series

Returns time-series data points for a named metric within a time window. Use getServiceMetricsAvailableSeries to discover valid metric names.

Parameters are sent as a JSON body so callers can pass an unbounded filter set without query-string length pressure. The response is a list of MetricSeries, each carrying its label set as a structured map alongside its per-bucket data points.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/metrics/series (the `GetServiceMetricsSeries` operationId).

func (*Client) GetServiceMetricsSeriesWithBody

func (c *Client) GetServiceMetricsSeriesWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GetServiceMetricsSeriesWithBody Get a metric series

Returns time-series data points for a named metric within a time window. Use getServiceMetricsAvailableSeries to discover valid metric names.

Parameters are sent as a JSON body so callers can pass an unbounded filter set without query-string length pressure. The response is a list of MetricSeries, each carrying its label set as a structured map alongside its per-bucket data points.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/metrics/series (the `GetServiceMetricsSeries` operationId).

func (*Client) GetServices

func (c *Client) GetServices(ctx context.Context, projectID ProjectID, params *GetServicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetServices List All Services

Retrieves a list of all services within a specific project.

Corresponds with GET /projects/{project_id}/services (the `GetServices` operationId).

func (*Client) GetVPC

func (c *Client) GetVPC(ctx context.Context, projectID ProjectID, vpcID VPCId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetVPC Get a VPC

Retrieves the details of a specific VPC by its ID.

Corresponds with GET /projects/{project_id}/vpcs/{vpc_id} (the `GetVPC` operationId).

func (*Client) GetVPCPeering

func (c *Client) GetVPCPeering(ctx context.Context, projectID ProjectID, vpcID VPCId, peeringID PeeringID, reqEditors ...RequestEditorFn) (*http.Response, error)

GetVPCPeering Get a VPC Peering

Retrieves the details of a specific VPC peering connection.

Corresponds with GET /projects/{project_id}/vpcs/{vpc_id}/peerings/{peering_id} (the `GetVPCPeering` operationId).

func (*Client) GetVPCPeerings

func (c *Client) GetVPCPeerings(ctx context.Context, projectID ProjectID, vpcID VPCId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetVPCPeerings List VPC Peerings

Retrieves a list of all VPC peering connections for a given VPC.

Corresponds with GET /projects/{project_id}/vpcs/{vpc_id}/peerings (the `GetVPCPeerings` operationId).

func (*Client) GetVPCs

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

GetVPCs List All VPCs

Retrieves a list of all Virtual Private Clouds (VPCs).

Corresponds with GET /projects/{project_id}/vpcs (the `GetVPCs` operationId).

func (*Client) IdentifyUser

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

IdentifyUser Identify a user

Identifies a user with optional properties for analytics tracking.

Takes a body of the `application/json` content type.

Corresponds with POST /analytics/identify (the `IdentifyUser` operationId).

func (*Client) IdentifyUserWithBody

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

IdentifyUserWithBody Identify a user

Identifies a user with optional properties for analytics tracking.

Takes any type of body and a specified content type.

Corresponds with POST /analytics/identify (the `IdentifyUser` operationId).

func (*Client) Logout

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

Logout Log out and revoke refresh token

Revokes the caller's refresh token server-side. For OAuth Bearer callers, include the refresh token in the request body — it is held client-side and cannot be derived from the access token. Callers without a refresh token to revoke may post an empty body to clear server-side session state best-effort.

Returns 204 No Content on success. The caller is still responsible for dropping any locally-cached credentials.

Takes a body of the `application/json` content type.

Corresponds with POST /auth/logout (the `Logout` operationId).

func (*Client) LogoutWithBody

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

LogoutWithBody Log out and revoke refresh token

Revokes the caller's refresh token server-side. For OAuth Bearer callers, include the refresh token in the request body — it is held client-side and cannot be derived from the access token. Callers without a refresh token to revoke may post an empty body to clear server-side session state best-effort.

Returns 204 No Content on success. The caller is still responsible for dropping any locally-cached credentials.

Takes any type of body and a specified content type.

Corresponds with POST /auth/logout (the `Logout` operationId).

func (*Client) RenameService

func (c *Client) RenameService(ctx context.Context, projectID ProjectID, serviceID ServiceID, body RenameServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

RenameService Rename a Service

Updates the name of a specific service.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/rename (the `RenameService` operationId).

func (*Client) RenameServiceWithBody

func (c *Client) RenameServiceWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

RenameServiceWithBody Rename a Service

Updates the name of a specific service.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/rename (the `RenameService` operationId).

func (*Client) RenameVPC

func (c *Client) RenameVPC(ctx context.Context, projectID ProjectID, vpcID VPCId, body RenameVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

RenameVPC Rename a VPC

Updates the name of a specific VPC.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/vpcs/{vpc_id}/rename (the `RenameVPC` operationId).

func (*Client) RenameVPCWithBody

func (c *Client) RenameVPCWithBody(ctx context.Context, projectID ProjectID, vpcID VPCId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

RenameVPCWithBody Rename a VPC

Updates the name of a specific VPC.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/vpcs/{vpc_id}/rename (the `RenameVPC` operationId).

func (*Client) ResizeReplicaSet

func (c *Client) ResizeReplicaSet(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, body ResizeReplicaSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ResizeReplicaSet Resize a Read Replica Set

Changes the resource allocation for a specific read replica set.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/resize (the `ResizeReplicaSet` operationId).

func (*Client) ResizeReplicaSetWithBody

func (c *Client) ResizeReplicaSetWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ResizeReplicaSetWithBody Resize a Read Replica Set

Changes the resource allocation for a specific read replica set.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/resize (the `ResizeReplicaSet` operationId).

func (*Client) ResizeService

func (c *Client) ResizeService(ctx context.Context, projectID ProjectID, serviceID ServiceID, body ResizeServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ResizeService Resize a Service

Changes the CPU and memory allocation for a specific service within a project. This is an asynchronous operation.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/resize (the `ResizeService` operationId).

func (*Client) ResizeServiceWithBody

func (c *Client) ResizeServiceWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ResizeServiceWithBody Resize a Service

Changes the CPU and memory allocation for a specific service within a project. This is an asynchronous operation.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/resize (the `ResizeService` operationId).

func (*Client) SetBackupRetention added in v0.25.0

func (c *Client) SetBackupRetention(ctx context.Context, projectID ProjectID, serviceID ServiceID, body SetBackupRetentionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SetBackupRetention Set the Backup Retention Policy

**Preview - this endpoint is experimental and may change without notice.**

Sets how long this service keeps its backups. Shortening retention deletes the backups that no longer fit.

Takes a body of the `application/json` content type.

Corresponds with PUT /projects/{project_id}/services/{service_id}/backup-retention (the `SetBackupRetention` operationId).

func (*Client) SetBackupRetentionWithBody added in v0.25.0

func (c *Client) SetBackupRetentionWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SetBackupRetentionWithBody Set the Backup Retention Policy

**Preview - this endpoint is experimental and may change without notice.**

Sets how long this service keeps its backups. Shortening retention deletes the backups that no longer fit.

Takes any type of body and a specified content type.

Corresponds with PUT /projects/{project_id}/services/{service_id}/backup-retention (the `SetBackupRetention` operationId).

func (*Client) SetEnvironment

func (c *Client) SetEnvironment(ctx context.Context, projectID ProjectID, serviceID ServiceID, body SetEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SetEnvironment Set Environment for a Service

Sets the environment type for the service.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/setEnvironment (the `SetEnvironment` operationId).

func (*Client) SetEnvironmentWithBody

func (c *Client) SetEnvironmentWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SetEnvironmentWithBody Set Environment for a Service

Sets the environment type for the service.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/setEnvironment (the `SetEnvironment` operationId).

func (*Client) SetHAReplica

func (c *Client) SetHAReplica(ctx context.Context, projectID ProjectID, serviceID ServiceID, body SetHAReplicaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SetHAReplica Change HA configuration for a Service

Changes the HA configuration for a specific service. This is an asynchronous operation.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/setHA (the `SetHAReplica` operationId).

func (*Client) SetHAReplicaWithBody

func (c *Client) SetHAReplicaWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SetHAReplicaWithBody Change HA configuration for a Service

Changes the HA configuration for a specific service. This is an asynchronous operation.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/setHA (the `SetHAReplica` operationId).

func (*Client) SetReplicaEnvironment

func (c *Client) SetReplicaEnvironment(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, body SetReplicaEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SetReplicaEnvironment Set Environment for a Read Replica

Sets the environment type for the read replica set.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/setEnvironment (the `SetReplicaEnvironment` operationId).

func (*Client) SetReplicaEnvironmentWithBody

func (c *Client) SetReplicaEnvironmentWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SetReplicaEnvironmentWithBody Set Environment for a Read Replica

Sets the environment type for the read replica set.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/setEnvironment (the `SetReplicaEnvironment` operationId).

func (*Client) StartService

func (c *Client) StartService(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

StartService Start a Service

Starts a stopped service within a project. This is an asynchronous operation.

Corresponds with POST /projects/{project_id}/services/{service_id}/start (the `StartService` operationId).

func (*Client) StopService

func (c *Client) StopService(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

StopService Stop a Service

Stops a running service within a project. This is an asynchronous operation.

Corresponds with POST /projects/{project_id}/services/{service_id}/stop (the `StopService` operationId).

func (*Client) SubmitFeedback added in v0.25.0

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

SubmitFeedback Submit feedback

Sends feedback, a bug report, or a support request to Tiger Data.

The submitter's email address is resolved from the caller's credentials, and the client version and operating system from the `User-Agent` header, so neither is supplied in the body.

Returns 204 No Content on success. This endpoint opens no support case and returns no ticket to track: use it for unsolicited feedback, and raise anything needing a tracked response through support.

Takes a body of the `application/json` content type.

Corresponds with POST /feedback (the `SubmitFeedback` operationId).

func (*Client) SubmitFeedbackWithBody added in v0.25.0

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

SubmitFeedbackWithBody Submit feedback

Sends feedback, a bug report, or a support request to Tiger Data.

The submitter's email address is resolved from the caller's credentials, and the client version and operating system from the `User-Agent` header, so neither is supplied in the body.

Returns 204 No Content on success. This endpoint opens no support case and returns no ticket to track: use it for unsolicited feedback, and raise anything needing a tracked response through support.

Takes any type of body and a specified content type.

Corresponds with POST /feedback (the `SubmitFeedback` operationId).

func (*Client) TrackEvent

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

TrackEvent Track an analytics event

Tracks an analytics event with optional properties.

Takes a body of the `application/json` content type.

Corresponds with POST /analytics/track (the `TrackEvent` operationId).

func (*Client) TrackEventWithBody

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

TrackEventWithBody Track an analytics event

Tracks an analytics event with optional properties.

Takes any type of body and a specified content type.

Corresponds with POST /analytics/track (the `TrackEvent` operationId).

func (*Client) UpdateAllowList added in v0.25.0

func (c *Client) UpdateAllowList(ctx context.Context, projectID ProjectID, allowListID AllowListID, body UpdateAllowListJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateAllowList Update an IP Allow List

**Preview - this endpoint is experimental and may change without notice.**

Updates an IP allow list in place. Send `description` and/or `cidr_blocks` to change them; omit either one to leave it unchanged.

Every service the IP allow list is attached to is updated with the new CIDR blocks. To remove every CIDR block, delete the IP allow list instead of sending an empty `cidr_blocks`.

Takes a body of the `application/json` content type.

Corresponds with PATCH /projects/{project_id}/allow-lists/{allow_list_id} (the `UpdateAllowList` operationId).

func (*Client) UpdateAllowListWithBody added in v0.25.0

func (c *Client) UpdateAllowListWithBody(ctx context.Context, projectID ProjectID, allowListID AllowListID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateAllowListWithBody Update an IP Allow List

**Preview - this endpoint is experimental and may change without notice.**

Updates an IP allow list in place. Send `description` and/or `cidr_blocks` to change them; omit either one to leave it unchanged.

Every service the IP allow list is attached to is updated with the new CIDR blocks. To remove every CIDR block, delete the IP allow list instead of sending an empty `cidr_blocks`.

Takes any type of body and a specified content type.

Corresponds with PATCH /projects/{project_id}/allow-lists/{allow_list_id} (the `UpdateAllowList` operationId).

func (*Client) UpdateExporter added in v0.25.0

func (c *Client) UpdateExporter(ctx context.Context, projectID ProjectID, exporterID ExporterID, body UpdateExporterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateExporter Update an Exporter

**Preview - this endpoint is experimental and may change without notice.**

Updates an exporter in place. Send `config` to replace the whole configuration; omit it to leave the configuration unchanged.

Every service the exporter is attached to picks up the change; there is no need to detach and reattach.

`type` must be included and must match the exporter's existing type; it cannot be changed. To send data somewhere else, create a new exporter and move the services over.

Takes a body of the `application/json` content type.

Corresponds with PATCH /projects/{project_id}/exporters/{exporter_id} (the `UpdateExporter` operationId).

func (*Client) UpdateExporterWithBody added in v0.25.0

func (c *Client) UpdateExporterWithBody(ctx context.Context, projectID ProjectID, exporterID ExporterID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateExporterWithBody Update an Exporter

**Preview - this endpoint is experimental and may change without notice.**

Updates an exporter in place. Send `config` to replace the whole configuration; omit it to leave the configuration unchanged.

Every service the exporter is attached to picks up the change; there is no need to detach and reattach.

`type` must be included and must match the exporter's existing type; it cannot be changed. To send data somewhere else, create a new exporter and move the services over.

Takes any type of body and a specified content type.

Corresponds with PATCH /projects/{project_id}/exporters/{exporter_id} (the `UpdateExporter` operationId).

func (*Client) UpdatePassword

func (c *Client) UpdatePassword(ctx context.Context, projectID ProjectID, serviceID ServiceID, body UpdatePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdatePassword Update Service Password

Sets a new master password for the service within a project.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/updatePassword (the `UpdatePassword` operationId).

func (*Client) UpdatePasswordWithBody

func (c *Client) UpdatePasswordWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdatePasswordWithBody Update Service Password

Sets a new master password for the service within a project.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/services/{service_id}/updatePassword (the `UpdatePassword` operationId).

type ClientError

type ClientError = Error

ClientError An error returned when a request cannot be completed.

type ClientInterface

type ClientInterface interface {

	// IdentifyUserWithBody Identify a user
	//
	// Identifies a user with optional properties for analytics tracking.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /analytics/identify (the `IdentifyUser` operationId).
	IdentifyUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IdentifyUser Identify a user
	//
	// Identifies a user with optional properties for analytics tracking.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /analytics/identify (the `IdentifyUser` operationId).
	IdentifyUser(ctx context.Context, body IdentifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TrackEventWithBody Track an analytics event
	//
	// Tracks an analytics event with optional properties.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /analytics/track (the `TrackEvent` operationId).
	TrackEventWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TrackEvent Track an analytics event
	//
	// Tracks an analytics event with optional properties.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /analytics/track (the `TrackEvent` operationId).
	TrackEvent(ctx context.Context, body TrackEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAuthInfo Get Authentication Info
	//
	// Returns the authenticated caller's identity. The response shape depends on the credential type: `apiKey` for PAT
	// callers, `oauth` for OAuth user callers. Exactly one of `api_key` or `oauth` is populated;
	// `type` discriminates.
	//
	// Corresponds with GET /auth/info (the `GetAuthInfo` operationId).
	GetAuthInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LogoutWithBody Log out and revoke refresh token
	//
	// Revokes the caller's refresh token server-side. For OAuth Bearer
	// callers, include the refresh token in the request body — it is held
	// client-side and cannot be derived from the access token. Callers
	// without a refresh token to revoke may post an
	// empty body to clear server-side session state best-effort.
	//
	// Returns 204 No Content on success. The caller is still responsible
	// for dropping any locally-cached credentials.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /auth/logout (the `Logout` operationId).
	LogoutWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Logout Log out and revoke refresh token
	//
	// Revokes the caller's refresh token server-side. For OAuth Bearer
	// callers, include the refresh token in the request body — it is held
	// client-side and cannot be derived from the access token. Callers
	// without a refresh token to revoke may post an
	// empty body to clear server-side session state best-effort.
	//
	// Returns 204 No Content on success. The caller is still responsible
	// for dropping any locally-cached credentials.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /auth/logout (the `Logout` operationId).
	Logout(ctx context.Context, body LogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SubmitFeedbackWithBody Submit feedback
	//
	// Sends feedback, a bug report, or a support request to Tiger Data.
	//
	// The submitter's email address is resolved from the caller's
	// credentials, and the client version and operating system from the
	// `User-Agent` header, so neither is supplied in the body.
	//
	// Returns 204 No Content on success. This endpoint opens no support
	// case and returns no ticket to track: use it for unsolicited feedback,
	// and raise anything needing a tracked response through support.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /feedback (the `SubmitFeedback` operationId).
	SubmitFeedbackWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SubmitFeedback Submit feedback
	//
	// Sends feedback, a bug report, or a support request to Tiger Data.
	//
	// The submitter's email address is resolved from the caller's
	// credentials, and the client version and operating system from the
	// `User-Agent` header, so neither is supplied in the body.
	//
	// Returns 204 No Content on success. This endpoint opens no support
	// case and returns no ticket to track: use it for unsolicited feedback,
	// and raise anything needing a tracked response through support.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /feedback (the `SubmitFeedback` operationId).
	SubmitFeedback(ctx context.Context, body SubmitFeedbackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProjects List projects accessible to the authenticated caller
	//
	// Returns the projects the caller can access. PAT callers see only the
	// project their PAT is scoped to; OAuth user callers see all projects
	// they belong to.
	//
	// Corresponds with GET /projects (the `GetProjects` operationId).
	GetProjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAllowLists List All IP Allow Lists
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Retrieves every IP allow list in a project.
	//
	// Corresponds with GET /projects/{project_id}/allow-lists (the `GetAllowLists` operationId).
	GetAllowLists(ctx context.Context, projectID ProjectID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateAllowListWithBody Create an IP Allow List
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Creates an IP allow list in a project. An IP allow list carries no
	// effect until it is attached to a service.
	//
	// The number of CIDR blocks per list and the number of lists per
	// project are plan-dependent.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/allow-lists (the `CreateAllowList` operationId).
	CreateAllowListWithBody(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateAllowList Create an IP Allow List
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Creates an IP allow list in a project. An IP allow list carries no
	// effect until it is attached to a service.
	//
	// The number of CIDR blocks per list and the number of lists per
	// project are plan-dependent.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/allow-lists (the `CreateAllowList` operationId).
	CreateAllowList(ctx context.Context, projectID ProjectID, body CreateAllowListJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteAllowList Delete an IP Allow List
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Deletes an IP allow list. Refused if the list is still attached to
	// any service. Detach it first.
	//
	// Corresponds with DELETE /projects/{project_id}/allow-lists/{allow_list_id} (the `DeleteAllowList` operationId).
	DeleteAllowList(ctx context.Context, projectID ProjectID, allowListID AllowListID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAllowList Get an IP Allow List
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Retrieves a single IP allow list.
	//
	// Corresponds with GET /projects/{project_id}/allow-lists/{allow_list_id} (the `GetAllowList` operationId).
	GetAllowList(ctx context.Context, projectID ProjectID, allowListID AllowListID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateAllowListWithBody Update an IP Allow List
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Updates an IP allow list in place. Send `description` and/or
	// `cidr_blocks` to change them; omit either one to leave it
	// unchanged.
	//
	// Every service the IP allow list is attached to is updated with the
	// new CIDR blocks. To remove every CIDR block, delete the IP allow
	// list instead of sending an empty `cidr_blocks`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /projects/{project_id}/allow-lists/{allow_list_id} (the `UpdateAllowList` operationId).
	UpdateAllowListWithBody(ctx context.Context, projectID ProjectID, allowListID AllowListID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateAllowList Update an IP Allow List
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Updates an IP allow list in place. Send `description` and/or
	// `cidr_blocks` to change them; omit either one to leave it
	// unchanged.
	//
	// Every service the IP allow list is attached to is updated with the
	// new CIDR blocks. To remove every CIDR block, delete the IP allow
	// list instead of sending an empty `cidr_blocks`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /projects/{project_id}/allow-lists/{allow_list_id} (the `UpdateAllowList` operationId).
	UpdateAllowList(ctx context.Context, projectID ProjectID, allowListID AllowListID, body UpdateAllowListJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetExporters List All Exporters
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Retrieves every exporter in a project, across every region.
	//
	// Corresponds with GET /projects/{project_id}/exporters (the `GetExporters` operationId).
	GetExporters(ctx context.Context, projectID ProjectID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateExporterWithBody Create an Exporter
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Creates an exporter in a project and region.
	//
	// An exporter carries no data until it is attached to a service.
	//
	// Exporters aren't available on every plan. If your project's plan
	// doesn't include them, this request is refused here rather than later,
	// when you try to attach one.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/exporters (the `CreateExporter` operationId).
	CreateExporterWithBody(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateExporter Create an Exporter
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Creates an exporter in a project and region.
	//
	// An exporter carries no data until it is attached to a service.
	//
	// Exporters aren't available on every plan. If your project's plan
	// doesn't include them, this request is refused here rather than later,
	// when you try to attach one.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/exporters (the `CreateExporter` operationId).
	CreateExporter(ctx context.Context, projectID ProjectID, body CreateExporterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteExporter Delete an Exporter
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Deletes an exporter and stops the data it was sending. Any service
	// still attached is detached automatically. You don't need to detach it
	// first, and nothing errors if you don't.
	//
	// Data already delivered to the destination is untouched, and nothing on
	// the services themselves changes.
	//
	// Corresponds with DELETE /projects/{project_id}/exporters/{exporter_id} (the `DeleteExporter` operationId).
	DeleteExporter(ctx context.Context, projectID ProjectID, exporterID ExporterID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetExporter Get an Exporter
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Retrieves a single exporter.
	//
	// Corresponds with GET /projects/{project_id}/exporters/{exporter_id} (the `GetExporter` operationId).
	GetExporter(ctx context.Context, projectID ProjectID, exporterID ExporterID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateExporterWithBody Update an Exporter
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Updates an exporter in place. Send `config` to replace the whole
	// configuration; omit it to leave the configuration unchanged.
	//
	// Every service the exporter is attached to picks up the change; there
	// is no need to detach and reattach.
	//
	// `type` must be included and must match the exporter's existing type;
	// it cannot be changed. To send data somewhere else, create a new
	// exporter and move the services over.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /projects/{project_id}/exporters/{exporter_id} (the `UpdateExporter` operationId).
	UpdateExporterWithBody(ctx context.Context, projectID ProjectID, exporterID ExporterID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateExporter Update an Exporter
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Updates an exporter in place. Send `config` to replace the whole
	// configuration; omit it to leave the configuration unchanged.
	//
	// Every service the exporter is attached to picks up the change; there
	// is no need to detach and reattach.
	//
	// `type` must be included and must match the exporter's existing type;
	// it cannot be changed. To send data somewhere else, create a new
	// exporter and move the services over.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /projects/{project_id}/exporters/{exporter_id} (the `UpdateExporter` operationId).
	UpdateExporter(ctx context.Context, projectID ProjectID, exporterID ExporterID, body UpdateExporterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetServices List All Services
	//
	// Retrieves a list of all services within a specific project.
	//
	// Corresponds with GET /projects/{project_id}/services (the `GetServices` operationId).
	GetServices(ctx context.Context, projectID ProjectID, params *GetServicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateServiceWithBody Create a Service
	//
	// Creates a new database service within a project. This is an asynchronous operation.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/services (the `CreateService` operationId).
	CreateServiceWithBody(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateService Create a Service
	//
	// Creates a new database service within a project. This is an asynchronous operation.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/services (the `CreateService` operationId).
	CreateService(ctx context.Context, projectID ProjectID, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteService Delete a Service
	//
	// Deletes a specific service. This is an asynchronous operation.
	//
	// Corresponds with DELETE /projects/{project_id}/services/{service_id} (the `DeleteService` operationId).
	DeleteService(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetService Get a Service
	//
	// Retrieves the details of a specific service by its ID.
	//
	// Corresponds with GET /projects/{project_id}/services/{service_id} (the `GetService` operationId).
	GetService(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AttachServiceToAllowListWithBody Attach Service to IP Allow List
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Restricts a service's connections to the IP ranges in an IP allow list.
	// A service has at most one IP allow list; attaching a second one
	// without detaching the first is refused.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/attachToAllowList (the `AttachServiceToAllowList` operationId).
	AttachServiceToAllowListWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AttachServiceToAllowList Attach Service to IP Allow List
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Restricts a service's connections to the IP ranges in an IP allow list.
	// A service has at most one IP allow list; attaching a second one
	// without detaching the first is refused.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/attachToAllowList (the `AttachServiceToAllowList` operationId).
	AttachServiceToAllowList(ctx context.Context, projectID ProjectID, serviceID ServiceID, body AttachServiceToAllowListJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AttachServiceToExporterWithBody Attach Service to Exporter
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Starts sending a service's logs or metrics to an exporter.
	//
	// A service sends to at most one log exporter and one metric exporter at
	// a time. Attaching a second exporter of the same kind is refused;
	// detach the current one first.
	//
	// The first time a log exporter is attached to a service, the service
	// restarts once. Attaching a different log exporter later does not
	// restart anything, and neither does attaching a metric exporter.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/attachToExporter (the `AttachServiceToExporter` operationId).
	AttachServiceToExporterWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AttachServiceToExporter Attach Service to Exporter
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Starts sending a service's logs or metrics to an exporter.
	//
	// A service sends to at most one log exporter and one metric exporter at
	// a time. Attaching a second exporter of the same kind is refused;
	// detach the current one first.
	//
	// The first time a log exporter is attached to a service, the service
	// restarts once. Attaching a different log exporter later does not
	// restart anything, and neither does attaching a metric exporter.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/attachToExporter (the `AttachServiceToExporter` operationId).
	AttachServiceToExporter(ctx context.Context, projectID ProjectID, serviceID ServiceID, body AttachServiceToExporterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AttachServiceToVPCWithBody Attach Service to VPC
	//
	// Associates a service with a VPC.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/attachToVPC (the `AttachServiceToVPC` operationId).
	AttachServiceToVPCWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AttachServiceToVPC Attach Service to VPC
	//
	// Associates a service with a VPC.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/attachToVPC (the `AttachServiceToVPC` operationId).
	AttachServiceToVPC(ctx context.Context, projectID ProjectID, serviceID ServiceID, body AttachServiceToVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBackupRegions List All Backup Regions
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Retrieves the additional regions this service's backups are copied to
	// (cross-region backups). The region the service runs in is not listed.
	//
	// Corresponds with GET /projects/{project_id}/services/{service_id}/backup-regions (the `GetBackupRegions` operationId).
	GetBackupRegions(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateBackupRegionWithBody Add a Backup Region
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Starts copying this service's backups to another region. The region is
	// added immediately; existing backups are copied to it in the background.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/backup-regions (the `CreateBackupRegion` operationId).
	CreateBackupRegionWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateBackupRegion Add a Backup Region
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Starts copying this service's backups to another region. The region is
	// added immediately; existing backups are copied to it in the background.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/backup-regions (the `CreateBackupRegion` operationId).
	CreateBackupRegion(ctx context.Context, projectID ProjectID, serviceID ServiceID, body CreateBackupRegionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteBackupRegion Remove a Backup Region
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Stops copying this service's backups to a region. Copies already stored
	// there are deleted in the background and cannot be recovered.
	//
	// Corresponds with DELETE /projects/{project_id}/services/{service_id}/backup-regions/{region_code} (the `DeleteBackupRegion` operationId).
	DeleteBackupRegion(ctx context.Context, projectID ProjectID, serviceID ServiceID, regionCode BackupRegionCode, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBackupRetention Get the Backup Retention Policy
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Retrieves how long this service keeps its backups.
	//
	// Corresponds with GET /projects/{project_id}/services/{service_id}/backup-retention (the `GetBackupRetention` operationId).
	GetBackupRetention(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetBackupRetentionWithBody Set the Backup Retention Policy
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Sets how long this service keeps its backups. Shortening retention
	// deletes the backups that no longer fit.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /projects/{project_id}/services/{service_id}/backup-retention (the `SetBackupRetention` operationId).
	SetBackupRetentionWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetBackupRetention Set the Backup Retention Policy
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Sets how long this service keeps its backups. Shortening retention
	// deletes the backups that no longer fit.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /projects/{project_id}/services/{service_id}/backup-retention (the `SetBackupRetention` operationId).
	SetBackupRetention(ctx context.Context, projectID ProjectID, serviceID ServiceID, body SetBackupRetentionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBackups List All Backups
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Retrieves a list of the full and incremental backups taken for a
	// service. Backups run automatically on a schedule; there is no operation
	// to create or delete one. To restore data, create a recovery fork with
	// `fork_strategy: PITR`.
	//
	// Corresponds with GET /projects/{project_id}/services/{service_id}/backups (the `GetBackups` operationId).
	GetBackups(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DetachServiceFromAllowListWithBody Detach Service from IP Allow List
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Removes the IP restriction an IP allow list placed on a service. The
	// IP allow list itself is not deleted.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromAllowList (the `DetachServiceFromAllowList` operationId).
	DetachServiceFromAllowListWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DetachServiceFromAllowList Detach Service from IP Allow List
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Removes the IP restriction an IP allow list placed on a service. The
	// IP allow list itself is not deleted.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromAllowList (the `DetachServiceFromAllowList` operationId).
	DetachServiceFromAllowList(ctx context.Context, projectID ProjectID, serviceID ServiceID, body DetachServiceFromAllowListJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DetachServiceFromExporterWithBody Detach Service from Exporter
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Stops sending a service's logs or metrics to an exporter. The exporter
	// is not deleted and keeps serving any other service attached to it.
	//
	// Data already delivered to the destination is untouched.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromExporter (the `DetachServiceFromExporter` operationId).
	DetachServiceFromExporterWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DetachServiceFromExporter Detach Service from Exporter
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Stops sending a service's logs or metrics to an exporter. The exporter
	// is not deleted and keeps serving any other service attached to it.
	//
	// Data already delivered to the destination is untouched.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromExporter (the `DetachServiceFromExporter` operationId).
	DetachServiceFromExporter(ctx context.Context, projectID ProjectID, serviceID ServiceID, body DetachServiceFromExporterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DetachServiceFromVPCWithBody Detach Service from VPC
	//
	// Disassociates a service from its VPC.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromVPC (the `DetachServiceFromVPC` operationId).
	DetachServiceFromVPCWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DetachServiceFromVPC Detach Service from VPC
	//
	// Disassociates a service from its VPC.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromVPC (the `DetachServiceFromVPC` operationId).
	DetachServiceFromVPC(ctx context.Context, projectID ProjectID, serviceID ServiceID, body DetachServiceFromVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DisablePooler Disable Connection Pooler for a Service
	//
	// Deactivates the connection pooler for a specific service within a project.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/disablePooler (the `DisablePooler` operationId).
	DisablePooler(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// EnableDataTiering Enable Data Tiering for a Service
	//
	// Enables tiered storage on the service. Tiering policies move older,
	// rarely-accessed data from the high-performance storage tier to a
	// low-cost object storage tier. Tiered data stays queryable but becomes
	// read-only.
	//
	// There is no way to disable tiering through this API. Contact Tiger
	// Data support if you need to turn it off.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/enableDataTiering (the `EnableDataTiering` operationId).
	EnableDataTiering(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// EnablePooler Enable Connection Pooler for a Service
	//
	// Activates the connection pooler for a specific service within a project.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/enablePooler (the `EnablePooler` operationId).
	EnablePooler(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ForkServiceWithBody Fork a Service
	//
	// Creates a new, independent service within a project by taking a snapshot of an existing one.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/forkService (the `ForkService` operationId).
	ForkServiceWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ForkService Fork a Service
	//
	// Creates a new, independent service within a project by taking a snapshot of an existing one.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/forkService (the `ForkService` operationId).
	ForkService(ctx context.Context, projectID ProjectID, serviceID ServiceID, body ForkServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetServiceLogs Get service logs
	//
	// Fetch logs for a specific service. Returns up to 500 log entries in reverse
	// chronological order. Supports cursor-based pagination via the `cursor` parameter
	// and the `last_cursor` field in the response.
	//
	// Use the returned `last_cursor` value as the `cursor` parameter on subsequent
	// requests to page through all available logs.
	//
	// Corresponds with GET /projects/{project_id}/services/{service_id}/logs (the `GetServiceLogs` operationId).
	GetServiceLogs(ctx context.Context, projectID ProjectID, serviceID ServiceID, params *GetServiceLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetServiceMetricsAvailableSeries List available metric series
	//
	// Returns the names of all metric series available for a service.
	//
	// Corresponds with GET /projects/{project_id}/services/{service_id}/metrics/available-series (the `GetServiceMetricsAvailableSeries` operationId).
	GetServiceMetricsAvailableSeries(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetServiceMetricDetails Get details about a metric
	//
	// Returns descriptive metadata for a named metric: what it measures,
	// its type, default aggregation, and every label it can be filtered or
	// grouped by — its own labels plus the region/role/ordinal labels most
	// metrics also carry. Use getServiceMetricsAvailableSeries to discover
	// valid metric names.
	//
	// Corresponds with GET /projects/{project_id}/services/{service_id}/metrics/details/{metric_name} (the `GetServiceMetricDetails` operationId).
	GetServiceMetricDetails(ctx context.Context, projectID ProjectID, serviceID ServiceID, metricName string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetServiceMetricsSeriesWithBody Get a metric series
	//
	// Returns time-series data points for a named metric within a time window.
	// Use getServiceMetricsAvailableSeries to discover valid metric names.
	//
	// Parameters are sent as a JSON body so callers can pass an unbounded
	// filter set without query-string length pressure. The response is a list
	// of MetricSeries, each carrying its label set as a structured map
	// alongside its per-bucket data points.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/metrics/series (the `GetServiceMetricsSeries` operationId).
	GetServiceMetricsSeriesWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetServiceMetricsSeries Get a metric series
	//
	// Returns time-series data points for a named metric within a time window.
	// Use getServiceMetricsAvailableSeries to discover valid metric names.
	//
	// Parameters are sent as a JSON body so callers can pass an unbounded
	// filter set without query-string length pressure. The response is a list
	// of MetricSeries, each carrying its label set as a structured map
	// alongside its per-bucket data points.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/metrics/series (the `GetServiceMetricsSeries` operationId).
	GetServiceMetricsSeries(ctx context.Context, projectID ProjectID, serviceID ServiceID, body GetServiceMetricsSeriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RenameServiceWithBody Rename a Service
	//
	// Updates the name of a specific service.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/rename (the `RenameService` operationId).
	RenameServiceWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RenameService Rename a Service
	//
	// Updates the name of a specific service.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/rename (the `RenameService` operationId).
	RenameService(ctx context.Context, projectID ProjectID, serviceID ServiceID, body RenameServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetReplicaSets Get Read Replica Sets
	//
	// Retrieves a list of all read replica sets associated with a primary service within a project.
	//
	// Corresponds with GET /projects/{project_id}/services/{service_id}/replicaSets (the `GetReplicaSets` operationId).
	GetReplicaSets(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateReplicaSetWithBody Create a Read Replica Set
	//
	// Creates a new read replica set for a service. This is an asynchronous operation.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets (the `CreateReplicaSet` operationId).
	CreateReplicaSetWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateReplicaSet Create a Read Replica Set
	//
	// Creates a new read replica set for a service. This is an asynchronous operation.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets (the `CreateReplicaSet` operationId).
	CreateReplicaSet(ctx context.Context, projectID ProjectID, serviceID ServiceID, body CreateReplicaSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteReplicaSet Delete a Read Replica Set
	//
	// Deletes a specific read replica set. This is an asynchronous operation.
	//
	// Corresponds with DELETE /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id} (the `DeleteReplicaSet` operationId).
	DeleteReplicaSet(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DisableReplicaPooler Disable Connection Pooler for a Read Replica
	//
	// Deactivates the connection pooler for a specific read replica set.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/disablePooler (the `DisableReplicaPooler` operationId).
	DisableReplicaPooler(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// EnableReplicaPooler Enable Connection Pooler for a Read Replica
	//
	// Activates the connection pooler for a specific read replica set.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/enablePooler (the `EnableReplicaPooler` operationId).
	EnableReplicaPooler(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResizeReplicaSetWithBody Resize a Read Replica Set
	//
	// Changes the resource allocation for a specific read replica set.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/resize (the `ResizeReplicaSet` operationId).
	ResizeReplicaSetWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResizeReplicaSet Resize a Read Replica Set
	//
	// Changes the resource allocation for a specific read replica set.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/resize (the `ResizeReplicaSet` operationId).
	ResizeReplicaSet(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, body ResizeReplicaSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetReplicaEnvironmentWithBody Set Environment for a Read Replica
	//
	// Sets the environment type for the read replica set.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/setEnvironment (the `SetReplicaEnvironment` operationId).
	SetReplicaEnvironmentWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetReplicaEnvironment Set Environment for a Read Replica
	//
	// Sets the environment type for the read replica set.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/setEnvironment (the `SetReplicaEnvironment` operationId).
	SetReplicaEnvironment(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, body SetReplicaEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResizeServiceWithBody Resize a Service
	//
	// Changes the CPU and memory allocation for a specific service within a project. This is an asynchronous operation.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/resize (the `ResizeService` operationId).
	ResizeServiceWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResizeService Resize a Service
	//
	// Changes the CPU and memory allocation for a specific service within a project. This is an asynchronous operation.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/resize (the `ResizeService` operationId).
	ResizeService(ctx context.Context, projectID ProjectID, serviceID ServiceID, body ResizeServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetEnvironmentWithBody Set Environment for a Service
	//
	// Sets the environment type for the service.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/setEnvironment (the `SetEnvironment` operationId).
	SetEnvironmentWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetEnvironment Set Environment for a Service
	//
	// Sets the environment type for the service.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/setEnvironment (the `SetEnvironment` operationId).
	SetEnvironment(ctx context.Context, projectID ProjectID, serviceID ServiceID, body SetEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetHAReplicaWithBody Change HA configuration for a Service
	//
	// Changes the HA configuration for a specific service. This is an asynchronous operation.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/setHA (the `SetHAReplica` operationId).
	SetHAReplicaWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetHAReplica Change HA configuration for a Service
	//
	// Changes the HA configuration for a specific service. This is an asynchronous operation.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/setHA (the `SetHAReplica` operationId).
	SetHAReplica(ctx context.Context, projectID ProjectID, serviceID ServiceID, body SetHAReplicaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StartService Start a Service
	//
	// Starts a stopped service within a project. This is an asynchronous operation.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/start (the `StartService` operationId).
	StartService(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StopService Stop a Service
	//
	// Stops a running service within a project. This is an asynchronous operation.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/stop (the `StopService` operationId).
	StopService(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdatePasswordWithBody Update Service Password
	//
	// Sets a new master password for the service within a project.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/updatePassword (the `UpdatePassword` operationId).
	UpdatePasswordWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdatePassword Update Service Password
	//
	// Sets a new master password for the service within a project.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/updatePassword (the `UpdatePassword` operationId).
	UpdatePassword(ctx context.Context, projectID ProjectID, serviceID ServiceID, body UpdatePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVPCs List All VPCs
	//
	// Retrieves a list of all Virtual Private Clouds (VPCs).
	//
	// Corresponds with GET /projects/{project_id}/vpcs (the `GetVPCs` operationId).
	GetVPCs(ctx context.Context, projectID ProjectID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateVPCWithBody Create a VPC
	//
	// Creates a new Virtual Private Cloud (VPC).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/vpcs (the `CreateVPC` operationId).
	CreateVPCWithBody(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateVPC Create a VPC
	//
	// Creates a new Virtual Private Cloud (VPC).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/vpcs (the `CreateVPC` operationId).
	CreateVPC(ctx context.Context, projectID ProjectID, body CreateVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteVPC Delete a VPC
	//
	// Deletes a specific VPC.
	//
	// Corresponds with DELETE /projects/{project_id}/vpcs/{vpc_id} (the `DeleteVPC` operationId).
	DeleteVPC(ctx context.Context, projectID ProjectID, vpcID VPCId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVPC Get a VPC
	//
	// Retrieves the details of a specific VPC by its ID.
	//
	// Corresponds with GET /projects/{project_id}/vpcs/{vpc_id} (the `GetVPC` operationId).
	GetVPC(ctx context.Context, projectID ProjectID, vpcID VPCId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVPCPeerings List VPC Peerings
	//
	// Retrieves a list of all VPC peering connections for a given VPC.
	//
	// Corresponds with GET /projects/{project_id}/vpcs/{vpc_id}/peerings (the `GetVPCPeerings` operationId).
	GetVPCPeerings(ctx context.Context, projectID ProjectID, vpcID VPCId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateVPCPeeringWithBody Create a VPC Peering
	//
	// Creates a new VPC peering connection.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/vpcs/{vpc_id}/peerings (the `CreateVPCPeering` operationId).
	CreateVPCPeeringWithBody(ctx context.Context, projectID ProjectID, vpcID VPCId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateVPCPeering Create a VPC Peering
	//
	// Creates a new VPC peering connection.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/vpcs/{vpc_id}/peerings (the `CreateVPCPeering` operationId).
	CreateVPCPeering(ctx context.Context, projectID ProjectID, vpcID VPCId, body CreateVPCPeeringJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteVPCPeering Delete a VPC Peering
	//
	// Deletes a specific VPC peering connection.
	//
	// Corresponds with DELETE /projects/{project_id}/vpcs/{vpc_id}/peerings/{peering_id} (the `DeleteVPCPeering` operationId).
	DeleteVPCPeering(ctx context.Context, projectID ProjectID, vpcID VPCId, peeringID PeeringID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVPCPeering Get a VPC Peering
	//
	// Retrieves the details of a specific VPC peering connection.
	//
	// Corresponds with GET /projects/{project_id}/vpcs/{vpc_id}/peerings/{peering_id} (the `GetVPCPeering` operationId).
	GetVPCPeering(ctx context.Context, projectID ProjectID, vpcID VPCId, peeringID PeeringID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RenameVPCWithBody Rename a VPC
	//
	// Updates the name of a specific VPC.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/vpcs/{vpc_id}/rename (the `RenameVPC` operationId).
	RenameVPCWithBody(ctx context.Context, projectID ProjectID, vpcID VPCId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RenameVPC Rename a VPC
	//
	// Updates the name of a specific VPC.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/vpcs/{vpc_id}/rename (the `RenameVPC` operationId).
	RenameVPC(ctx context.Context, projectID ProjectID, vpcID VPCId, body RenameVPCJSONRequestBody, 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 NewTigerClient

func NewTigerClient(cfg *config.Config, apiKey string) (*ClientWithResponses, error)

apiKey must be in "publicKey:secretKey" format.

func NewTigerClientForCredentials

func NewTigerClientForCredentials(cfg *config.Config, creds *config.Credentials) (*ClientWithResponses, error)

NewTigerClientForCredentials dispatches on credential shape. For OAuth, rotated tokens are persisted back to storage automatically.

func NewTigerClientWithToken

func NewTigerClientWithToken(cfg *config.Config, token *oauth2.Token, persist func(*oauth2.Token) error) (*ClientWithResponses, error)

NewTigerClientWithToken builds a Bearer-authenticated client that auto-refreshes via the gateway's /idp/external/cli/token endpoint. Rotated tokens are handed to persist (typically a keyring write); pass nil for short-lived callers that don't need to update storage (e.g. logout).

func (*ClientWithResponses) AttachServiceToAllowListWithBodyWithResponse added in v0.25.0

func (c *ClientWithResponses) AttachServiceToAllowListWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachServiceToAllowListResponse, error)

AttachServiceToAllowListWithBodyWithResponse Attach Service to IP Allow List

**Preview - this endpoint is experimental and may change without notice.**

Restricts a service's connections to the IP ranges in an IP allow list. A service has at most one IP allow list; attaching a second one without detaching the first is refused.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/attachToAllowList (the `AttachServiceToAllowList` operationId).

func (*ClientWithResponses) AttachServiceToAllowListWithResponse added in v0.25.0

func (c *ClientWithResponses) AttachServiceToAllowListWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body AttachServiceToAllowListJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachServiceToAllowListResponse, error)

AttachServiceToAllowListWithResponse Attach Service to IP Allow List

**Preview - this endpoint is experimental and may change without notice.**

Restricts a service's connections to the IP ranges in an IP allow list. A service has at most one IP allow list; attaching a second one without detaching the first is refused.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/attachToAllowList (the `AttachServiceToAllowList` operationId).

func (*ClientWithResponses) AttachServiceToExporterWithBodyWithResponse added in v0.25.0

func (c *ClientWithResponses) AttachServiceToExporterWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachServiceToExporterResponse, error)

AttachServiceToExporterWithBodyWithResponse Attach Service to Exporter

**Preview - this endpoint is experimental and may change without notice.**

Starts sending a service's logs or metrics to an exporter.

A service sends to at most one log exporter and one metric exporter at a time. Attaching a second exporter of the same kind is refused; detach the current one first.

The first time a log exporter is attached to a service, the service restarts once. Attaching a different log exporter later does not restart anything, and neither does attaching a metric exporter.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/attachToExporter (the `AttachServiceToExporter` operationId).

func (*ClientWithResponses) AttachServiceToExporterWithResponse added in v0.25.0

func (c *ClientWithResponses) AttachServiceToExporterWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body AttachServiceToExporterJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachServiceToExporterResponse, error)

AttachServiceToExporterWithResponse Attach Service to Exporter

**Preview - this endpoint is experimental and may change without notice.**

Starts sending a service's logs or metrics to an exporter.

A service sends to at most one log exporter and one metric exporter at a time. Attaching a second exporter of the same kind is refused; detach the current one first.

The first time a log exporter is attached to a service, the service restarts once. Attaching a different log exporter later does not restart anything, and neither does attaching a metric exporter.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/attachToExporter (the `AttachServiceToExporter` operationId).

func (*ClientWithResponses) AttachServiceToVPCWithBodyWithResponse

func (c *ClientWithResponses) AttachServiceToVPCWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachServiceToVPCResponse, error)

AttachServiceToVPCWithBodyWithResponse Attach Service to VPC

Associates a service with a VPC.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/attachToVPC (the `AttachServiceToVPC` operationId).

func (*ClientWithResponses) AttachServiceToVPCWithResponse

func (c *ClientWithResponses) AttachServiceToVPCWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body AttachServiceToVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachServiceToVPCResponse, error)

AttachServiceToVPCWithResponse Attach Service to VPC

Associates a service with a VPC.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/attachToVPC (the `AttachServiceToVPC` operationId).

func (*ClientWithResponses) CreateAllowListWithBodyWithResponse added in v0.25.0

func (c *ClientWithResponses) CreateAllowListWithBodyWithResponse(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAllowListResponse, error)

CreateAllowListWithBodyWithResponse Create an IP Allow List

**Preview - this endpoint is experimental and may change without notice.**

Creates an IP allow list in a project. An IP allow list carries no effect until it is attached to a service.

The number of CIDR blocks per list and the number of lists per project are plan-dependent.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/allow-lists (the `CreateAllowList` operationId).

func (*ClientWithResponses) CreateAllowListWithResponse added in v0.25.0

func (c *ClientWithResponses) CreateAllowListWithResponse(ctx context.Context, projectID ProjectID, body CreateAllowListJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAllowListResponse, error)

CreateAllowListWithResponse Create an IP Allow List

**Preview - this endpoint is experimental and may change without notice.**

Creates an IP allow list in a project. An IP allow list carries no effect until it is attached to a service.

The number of CIDR blocks per list and the number of lists per project are plan-dependent.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/allow-lists (the `CreateAllowList` operationId).

func (*ClientWithResponses) CreateBackupRegionWithBodyWithResponse added in v0.25.0

func (c *ClientWithResponses) CreateBackupRegionWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBackupRegionResponse, error)

CreateBackupRegionWithBodyWithResponse Add a Backup Region

**Preview - this endpoint is experimental and may change without notice.**

Starts copying this service's backups to another region. The region is added immediately; existing backups are copied to it in the background.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/backup-regions (the `CreateBackupRegion` operationId).

func (*ClientWithResponses) CreateBackupRegionWithResponse added in v0.25.0

func (c *ClientWithResponses) CreateBackupRegionWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body CreateBackupRegionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBackupRegionResponse, error)

CreateBackupRegionWithResponse Add a Backup Region

**Preview - this endpoint is experimental and may change without notice.**

Starts copying this service's backups to another region. The region is added immediately; existing backups are copied to it in the background.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/backup-regions (the `CreateBackupRegion` operationId).

func (*ClientWithResponses) CreateExporterWithBodyWithResponse added in v0.25.0

func (c *ClientWithResponses) CreateExporterWithBodyWithResponse(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateExporterResponse, error)

CreateExporterWithBodyWithResponse Create an Exporter

**Preview - this endpoint is experimental and may change without notice.**

Creates an exporter in a project and region.

An exporter carries no data until it is attached to a service.

Exporters aren't available on every plan. If your project's plan doesn't include them, this request is refused here rather than later, when you try to attach one.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/exporters (the `CreateExporter` operationId).

func (*ClientWithResponses) CreateExporterWithResponse added in v0.25.0

func (c *ClientWithResponses) CreateExporterWithResponse(ctx context.Context, projectID ProjectID, body CreateExporterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateExporterResponse, error)

CreateExporterWithResponse Create an Exporter

**Preview - this endpoint is experimental and may change without notice.**

Creates an exporter in a project and region.

An exporter carries no data until it is attached to a service.

Exporters aren't available on every plan. If your project's plan doesn't include them, this request is refused here rather than later, when you try to attach one.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/exporters (the `CreateExporter` operationId).

func (*ClientWithResponses) CreateReplicaSetWithBodyWithResponse

func (c *ClientWithResponses) CreateReplicaSetWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReplicaSetResponse, error)

CreateReplicaSetWithBodyWithResponse Create a Read Replica Set

Creates a new read replica set for a service. This is an asynchronous operation.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets (the `CreateReplicaSet` operationId).

func (*ClientWithResponses) CreateReplicaSetWithResponse

func (c *ClientWithResponses) CreateReplicaSetWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body CreateReplicaSetJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReplicaSetResponse, error)

CreateReplicaSetWithResponse Create a Read Replica Set

Creates a new read replica set for a service. This is an asynchronous operation.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets (the `CreateReplicaSet` operationId).

func (*ClientWithResponses) CreateServiceWithBodyWithResponse

func (c *ClientWithResponses) CreateServiceWithBodyWithResponse(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error)

CreateServiceWithBodyWithResponse Create a Service

Creates a new database service within a project. This is an asynchronous operation.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services (the `CreateService` operationId).

func (*ClientWithResponses) CreateServiceWithResponse

func (c *ClientWithResponses) CreateServiceWithResponse(ctx context.Context, projectID ProjectID, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error)

CreateServiceWithResponse Create a Service

Creates a new database service within a project. This is an asynchronous operation.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services (the `CreateService` operationId).

func (*ClientWithResponses) CreateVPCPeeringWithBodyWithResponse

func (c *ClientWithResponses) CreateVPCPeeringWithBodyWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVPCPeeringResponse, error)

CreateVPCPeeringWithBodyWithResponse Create a VPC Peering

Creates a new VPC peering connection.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/vpcs/{vpc_id}/peerings (the `CreateVPCPeering` operationId).

func (*ClientWithResponses) CreateVPCPeeringWithResponse

func (c *ClientWithResponses) CreateVPCPeeringWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, body CreateVPCPeeringJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVPCPeeringResponse, error)

CreateVPCPeeringWithResponse Create a VPC Peering

Creates a new VPC peering connection.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/vpcs/{vpc_id}/peerings (the `CreateVPCPeering` operationId).

func (*ClientWithResponses) CreateVPCWithBodyWithResponse

func (c *ClientWithResponses) CreateVPCWithBodyWithResponse(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVPCResponse, error)

CreateVPCWithBodyWithResponse Create a VPC

Creates a new Virtual Private Cloud (VPC).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/vpcs (the `CreateVPC` operationId).

func (*ClientWithResponses) CreateVPCWithResponse

func (c *ClientWithResponses) CreateVPCWithResponse(ctx context.Context, projectID ProjectID, body CreateVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVPCResponse, error)

CreateVPCWithResponse Create a VPC

Creates a new Virtual Private Cloud (VPC).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/vpcs (the `CreateVPC` operationId).

func (*ClientWithResponses) DeleteAllowListWithResponse added in v0.25.0

func (c *ClientWithResponses) DeleteAllowListWithResponse(ctx context.Context, projectID ProjectID, allowListID AllowListID, reqEditors ...RequestEditorFn) (*DeleteAllowListResponse, error)

DeleteAllowListWithResponse Delete an IP Allow List

**Preview - this endpoint is experimental and may change without notice.**

Deletes an IP allow list. Refused if the list is still attached to any service. Detach it first.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /projects/{project_id}/allow-lists/{allow_list_id} (the `DeleteAllowList` operationId).

func (*ClientWithResponses) DeleteBackupRegionWithResponse added in v0.25.0

func (c *ClientWithResponses) DeleteBackupRegionWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, regionCode BackupRegionCode, reqEditors ...RequestEditorFn) (*DeleteBackupRegionResponse, error)

DeleteBackupRegionWithResponse Remove a Backup Region

**Preview - this endpoint is experimental and may change without notice.**

Stops copying this service's backups to a region. Copies already stored there are deleted in the background and cannot be recovered.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /projects/{project_id}/services/{service_id}/backup-regions/{region_code} (the `DeleteBackupRegion` operationId).

func (*ClientWithResponses) DeleteExporterWithResponse added in v0.25.0

func (c *ClientWithResponses) DeleteExporterWithResponse(ctx context.Context, projectID ProjectID, exporterID ExporterID, reqEditors ...RequestEditorFn) (*DeleteExporterResponse, error)

DeleteExporterWithResponse Delete an Exporter

**Preview - this endpoint is experimental and may change without notice.**

Deletes an exporter and stops the data it was sending. Any service still attached is detached automatically. You don't need to detach it first, and nothing errors if you don't.

Data already delivered to the destination is untouched, and nothing on the services themselves changes.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /projects/{project_id}/exporters/{exporter_id} (the `DeleteExporter` operationId).

func (*ClientWithResponses) DeleteReplicaSetWithResponse

func (c *ClientWithResponses) DeleteReplicaSetWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*DeleteReplicaSetResponse, error)

DeleteReplicaSetWithResponse Delete a Read Replica Set

Deletes a specific read replica set. This is an asynchronous operation.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id} (the `DeleteReplicaSet` operationId).

func (*ClientWithResponses) DeleteServiceWithResponse

func (c *ClientWithResponses) DeleteServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*DeleteServiceResponse, error)

DeleteServiceWithResponse Delete a Service

Deletes a specific service. This is an asynchronous operation.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /projects/{project_id}/services/{service_id} (the `DeleteService` operationId).

func (*ClientWithResponses) DeleteVPCPeeringWithResponse

func (c *ClientWithResponses) DeleteVPCPeeringWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, peeringID PeeringID, reqEditors ...RequestEditorFn) (*DeleteVPCPeeringResponse, error)

DeleteVPCPeeringWithResponse Delete a VPC Peering

Deletes a specific VPC peering connection.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /projects/{project_id}/vpcs/{vpc_id}/peerings/{peering_id} (the `DeleteVPCPeering` operationId).

func (*ClientWithResponses) DeleteVPCWithResponse

func (c *ClientWithResponses) DeleteVPCWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, reqEditors ...RequestEditorFn) (*DeleteVPCResponse, error)

DeleteVPCWithResponse Delete a VPC

Deletes a specific VPC.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /projects/{project_id}/vpcs/{vpc_id} (the `DeleteVPC` operationId).

func (*ClientWithResponses) DetachServiceFromAllowListWithBodyWithResponse added in v0.25.0

func (c *ClientWithResponses) DetachServiceFromAllowListWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DetachServiceFromAllowListResponse, error)

DetachServiceFromAllowListWithBodyWithResponse Detach Service from IP Allow List

**Preview - this endpoint is experimental and may change without notice.**

Removes the IP restriction an IP allow list placed on a service. The IP allow list itself is not deleted.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromAllowList (the `DetachServiceFromAllowList` operationId).

func (*ClientWithResponses) DetachServiceFromAllowListWithResponse added in v0.25.0

func (c *ClientWithResponses) DetachServiceFromAllowListWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body DetachServiceFromAllowListJSONRequestBody, reqEditors ...RequestEditorFn) (*DetachServiceFromAllowListResponse, error)

DetachServiceFromAllowListWithResponse Detach Service from IP Allow List

**Preview - this endpoint is experimental and may change without notice.**

Removes the IP restriction an IP allow list placed on a service. The IP allow list itself is not deleted.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromAllowList (the `DetachServiceFromAllowList` operationId).

func (*ClientWithResponses) DetachServiceFromExporterWithBodyWithResponse added in v0.25.0

func (c *ClientWithResponses) DetachServiceFromExporterWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DetachServiceFromExporterResponse, error)

DetachServiceFromExporterWithBodyWithResponse Detach Service from Exporter

**Preview - this endpoint is experimental and may change without notice.**

Stops sending a service's logs or metrics to an exporter. The exporter is not deleted and keeps serving any other service attached to it.

Data already delivered to the destination is untouched.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromExporter (the `DetachServiceFromExporter` operationId).

func (*ClientWithResponses) DetachServiceFromExporterWithResponse added in v0.25.0

func (c *ClientWithResponses) DetachServiceFromExporterWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body DetachServiceFromExporterJSONRequestBody, reqEditors ...RequestEditorFn) (*DetachServiceFromExporterResponse, error)

DetachServiceFromExporterWithResponse Detach Service from Exporter

**Preview - this endpoint is experimental and may change without notice.**

Stops sending a service's logs or metrics to an exporter. The exporter is not deleted and keeps serving any other service attached to it.

Data already delivered to the destination is untouched.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromExporter (the `DetachServiceFromExporter` operationId).

func (*ClientWithResponses) DetachServiceFromVPCWithBodyWithResponse

func (c *ClientWithResponses) DetachServiceFromVPCWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DetachServiceFromVPCResponse, error)

DetachServiceFromVPCWithBodyWithResponse Detach Service from VPC

Disassociates a service from its VPC.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromVPC (the `DetachServiceFromVPC` operationId).

func (*ClientWithResponses) DetachServiceFromVPCWithResponse

func (c *ClientWithResponses) DetachServiceFromVPCWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body DetachServiceFromVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*DetachServiceFromVPCResponse, error)

DetachServiceFromVPCWithResponse Detach Service from VPC

Disassociates a service from its VPC.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromVPC (the `DetachServiceFromVPC` operationId).

func (*ClientWithResponses) DisablePoolerWithResponse

func (c *ClientWithResponses) DisablePoolerWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*DisablePoolerResponse, error)

DisablePoolerWithResponse Disable Connection Pooler for a Service

Deactivates the connection pooler for a specific service within a project.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/disablePooler (the `DisablePooler` operationId).

func (*ClientWithResponses) DisableReplicaPoolerWithResponse

func (c *ClientWithResponses) DisableReplicaPoolerWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*DisableReplicaPoolerResponse, error)

DisableReplicaPoolerWithResponse Disable Connection Pooler for a Read Replica

Deactivates the connection pooler for a specific read replica set.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/disablePooler (the `DisableReplicaPooler` operationId).

func (*ClientWithResponses) EnableDataTieringWithResponse added in v0.25.0

func (c *ClientWithResponses) EnableDataTieringWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*EnableDataTieringResponse, error)

EnableDataTieringWithResponse Enable Data Tiering for a Service

Enables tiered storage on the service. Tiering policies move older, rarely-accessed data from the high-performance storage tier to a low-cost object storage tier. Tiered data stays queryable but becomes read-only.

There is no way to disable tiering through this API. Contact Tiger Data support if you need to turn it off.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/enableDataTiering (the `EnableDataTiering` operationId).

func (*ClientWithResponses) EnablePoolerWithResponse

func (c *ClientWithResponses) EnablePoolerWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*EnablePoolerResponse, error)

EnablePoolerWithResponse Enable Connection Pooler for a Service

Activates the connection pooler for a specific service within a project.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/enablePooler (the `EnablePooler` operationId).

func (*ClientWithResponses) EnableReplicaPoolerWithResponse

func (c *ClientWithResponses) EnableReplicaPoolerWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*EnableReplicaPoolerResponse, error)

EnableReplicaPoolerWithResponse Enable Connection Pooler for a Read Replica

Activates the connection pooler for a specific read replica set.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/enablePooler (the `EnableReplicaPooler` operationId).

func (*ClientWithResponses) ForkServiceWithBodyWithResponse

func (c *ClientWithResponses) ForkServiceWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ForkServiceResponse, error)

ForkServiceWithBodyWithResponse Fork a Service

Creates a new, independent service within a project by taking a snapshot of an existing one.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/forkService (the `ForkService` operationId).

func (*ClientWithResponses) ForkServiceWithResponse

func (c *ClientWithResponses) ForkServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body ForkServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*ForkServiceResponse, error)

ForkServiceWithResponse Fork a Service

Creates a new, independent service within a project by taking a snapshot of an existing one.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/forkService (the `ForkService` operationId).

func (*ClientWithResponses) GetAllowListWithResponse added in v0.25.0

func (c *ClientWithResponses) GetAllowListWithResponse(ctx context.Context, projectID ProjectID, allowListID AllowListID, reqEditors ...RequestEditorFn) (*GetAllowListResponse, error)

GetAllowListWithResponse Get an IP Allow List

**Preview - this endpoint is experimental and may change without notice.**

Retrieves a single IP allow list.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/allow-lists/{allow_list_id} (the `GetAllowList` operationId).

func (*ClientWithResponses) GetAllowListsWithResponse added in v0.25.0

func (c *ClientWithResponses) GetAllowListsWithResponse(ctx context.Context, projectID ProjectID, reqEditors ...RequestEditorFn) (*GetAllowListsResponse, error)

GetAllowListsWithResponse List All IP Allow Lists

**Preview - this endpoint is experimental and may change without notice.**

Retrieves every IP allow list in a project.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/allow-lists (the `GetAllowLists` operationId).

func (*ClientWithResponses) GetAuthInfoWithResponse

func (c *ClientWithResponses) GetAuthInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAuthInfoResponse, error)

GetAuthInfoWithResponse Get Authentication Info

Returns the authenticated caller's identity. The response shape depends on the credential type: `apiKey` for PAT callers, `oauth` for OAuth user callers. Exactly one of `api_key` or `oauth` is populated; `type` discriminates.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /auth/info (the `GetAuthInfo` operationId).

func (*ClientWithResponses) GetBackupRegionsWithResponse added in v0.25.0

func (c *ClientWithResponses) GetBackupRegionsWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*GetBackupRegionsResponse, error)

GetBackupRegionsWithResponse List All Backup Regions

**Preview - this endpoint is experimental and may change without notice.**

Retrieves the additional regions this service's backups are copied to (cross-region backups). The region the service runs in is not listed.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/services/{service_id}/backup-regions (the `GetBackupRegions` operationId).

func (*ClientWithResponses) GetBackupRetentionWithResponse added in v0.25.0

func (c *ClientWithResponses) GetBackupRetentionWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*GetBackupRetentionResponse, error)

GetBackupRetentionWithResponse Get the Backup Retention Policy

**Preview - this endpoint is experimental and may change without notice.**

Retrieves how long this service keeps its backups.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/services/{service_id}/backup-retention (the `GetBackupRetention` operationId).

func (*ClientWithResponses) GetBackupsWithResponse added in v0.23.0

func (c *ClientWithResponses) GetBackupsWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*GetBackupsResponse, error)

GetBackupsWithResponse List All Backups

**Preview - this endpoint is experimental and may change without notice.**

Retrieves a list of the full and incremental backups taken for a service. Backups run automatically on a schedule; there is no operation to create or delete one. To restore data, create a recovery fork with `fork_strategy: PITR`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/services/{service_id}/backups (the `GetBackups` operationId).

func (*ClientWithResponses) GetExporterWithResponse added in v0.25.0

func (c *ClientWithResponses) GetExporterWithResponse(ctx context.Context, projectID ProjectID, exporterID ExporterID, reqEditors ...RequestEditorFn) (*GetExporterResponse, error)

GetExporterWithResponse Get an Exporter

**Preview - this endpoint is experimental and may change without notice.**

Retrieves a single exporter.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/exporters/{exporter_id} (the `GetExporter` operationId).

func (*ClientWithResponses) GetExportersWithResponse added in v0.25.0

func (c *ClientWithResponses) GetExportersWithResponse(ctx context.Context, projectID ProjectID, reqEditors ...RequestEditorFn) (*GetExportersResponse, error)

GetExportersWithResponse List All Exporters

**Preview - this endpoint is experimental and may change without notice.**

Retrieves every exporter in a project, across every region.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/exporters (the `GetExporters` operationId).

func (*ClientWithResponses) GetProjectsWithResponse

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

GetProjectsWithResponse List projects accessible to the authenticated caller

Returns the projects the caller can access. PAT callers see only the project their PAT is scoped to; OAuth user callers see all projects they belong to.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects (the `GetProjects` operationId).

func (*ClientWithResponses) GetReplicaSetsWithResponse

func (c *ClientWithResponses) GetReplicaSetsWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*GetReplicaSetsResponse, error)

GetReplicaSetsWithResponse Get Read Replica Sets

Retrieves a list of all read replica sets associated with a primary service within a project.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/services/{service_id}/replicaSets (the `GetReplicaSets` operationId).

func (*ClientWithResponses) GetServiceLogsWithResponse

func (c *ClientWithResponses) GetServiceLogsWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, params *GetServiceLogsParams, reqEditors ...RequestEditorFn) (*GetServiceLogsResponse, error)

GetServiceLogsWithResponse Get service logs

Fetch logs for a specific service. Returns up to 500 log entries in reverse chronological order. Supports cursor-based pagination via the `cursor` parameter and the `last_cursor` field in the response.

Use the returned `last_cursor` value as the `cursor` parameter on subsequent requests to page through all available logs.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/services/{service_id}/logs (the `GetServiceLogs` operationId).

func (*ClientWithResponses) GetServiceMetricDetailsWithResponse added in v0.25.0

func (c *ClientWithResponses) GetServiceMetricDetailsWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, metricName string, reqEditors ...RequestEditorFn) (*GetServiceMetricDetailsResponse, error)

GetServiceMetricDetailsWithResponse Get details about a metric

Returns descriptive metadata for a named metric: what it measures, its type, default aggregation, and every label it can be filtered or grouped by — its own labels plus the region/role/ordinal labels most metrics also carry. Use getServiceMetricsAvailableSeries to discover valid metric names.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/services/{service_id}/metrics/details/{metric_name} (the `GetServiceMetricDetails` operationId).

func (*ClientWithResponses) GetServiceMetricsAvailableSeriesWithResponse

func (c *ClientWithResponses) GetServiceMetricsAvailableSeriesWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*GetServiceMetricsAvailableSeriesResponse, error)

GetServiceMetricsAvailableSeriesWithResponse List available metric series

Returns the names of all metric series available for a service.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/services/{service_id}/metrics/available-series (the `GetServiceMetricsAvailableSeries` operationId).

func (*ClientWithResponses) GetServiceMetricsSeriesWithBodyWithResponse

func (c *ClientWithResponses) GetServiceMetricsSeriesWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetServiceMetricsSeriesResponse, error)

GetServiceMetricsSeriesWithBodyWithResponse Get a metric series

Returns time-series data points for a named metric within a time window. Use getServiceMetricsAvailableSeries to discover valid metric names.

Parameters are sent as a JSON body so callers can pass an unbounded filter set without query-string length pressure. The response is a list of MetricSeries, each carrying its label set as a structured map alongside its per-bucket data points.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/metrics/series (the `GetServiceMetricsSeries` operationId).

func (*ClientWithResponses) GetServiceMetricsSeriesWithResponse

func (c *ClientWithResponses) GetServiceMetricsSeriesWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body GetServiceMetricsSeriesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetServiceMetricsSeriesResponse, error)

GetServiceMetricsSeriesWithResponse Get a metric series

Returns time-series data points for a named metric within a time window. Use getServiceMetricsAvailableSeries to discover valid metric names.

Parameters are sent as a JSON body so callers can pass an unbounded filter set without query-string length pressure. The response is a list of MetricSeries, each carrying its label set as a structured map alongside its per-bucket data points.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/metrics/series (the `GetServiceMetricsSeries` operationId).

func (*ClientWithResponses) GetServiceWithResponse

func (c *ClientWithResponses) GetServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*GetServiceResponse, error)

GetServiceWithResponse Get a Service

Retrieves the details of a specific service by its ID.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/services/{service_id} (the `GetService` operationId).

func (*ClientWithResponses) GetServicesWithResponse

func (c *ClientWithResponses) GetServicesWithResponse(ctx context.Context, projectID ProjectID, params *GetServicesParams, reqEditors ...RequestEditorFn) (*GetServicesResponse, error)

GetServicesWithResponse List All Services

Retrieves a list of all services within a specific project.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/services (the `GetServices` operationId).

func (*ClientWithResponses) GetVPCPeeringWithResponse

func (c *ClientWithResponses) GetVPCPeeringWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, peeringID PeeringID, reqEditors ...RequestEditorFn) (*GetVPCPeeringResponse, error)

GetVPCPeeringWithResponse Get a VPC Peering

Retrieves the details of a specific VPC peering connection.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/vpcs/{vpc_id}/peerings/{peering_id} (the `GetVPCPeering` operationId).

func (*ClientWithResponses) GetVPCPeeringsWithResponse

func (c *ClientWithResponses) GetVPCPeeringsWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, reqEditors ...RequestEditorFn) (*GetVPCPeeringsResponse, error)

GetVPCPeeringsWithResponse List VPC Peerings

Retrieves a list of all VPC peering connections for a given VPC.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/vpcs/{vpc_id}/peerings (the `GetVPCPeerings` operationId).

func (*ClientWithResponses) GetVPCWithResponse

func (c *ClientWithResponses) GetVPCWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, reqEditors ...RequestEditorFn) (*GetVPCResponse, error)

GetVPCWithResponse Get a VPC

Retrieves the details of a specific VPC by its ID.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/vpcs/{vpc_id} (the `GetVPC` operationId).

func (*ClientWithResponses) GetVPCsWithResponse

func (c *ClientWithResponses) GetVPCsWithResponse(ctx context.Context, projectID ProjectID, reqEditors ...RequestEditorFn) (*GetVPCsResponse, error)

GetVPCsWithResponse List All VPCs

Retrieves a list of all Virtual Private Clouds (VPCs).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/vpcs (the `GetVPCs` operationId).

func (*ClientWithResponses) IdentifyUserWithBodyWithResponse

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

IdentifyUserWithBodyWithResponse Identify a user

Identifies a user with optional properties for analytics tracking.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /analytics/identify (the `IdentifyUser` operationId).

func (*ClientWithResponses) IdentifyUserWithResponse

func (c *ClientWithResponses) IdentifyUserWithResponse(ctx context.Context, body IdentifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error)

IdentifyUserWithResponse Identify a user

Identifies a user with optional properties for analytics tracking.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /analytics/identify (the `IdentifyUser` operationId).

func (*ClientWithResponses) LogoutWithBodyWithResponse

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

LogoutWithBodyWithResponse Log out and revoke refresh token

Revokes the caller's refresh token server-side. For OAuth Bearer callers, include the refresh token in the request body — it is held client-side and cannot be derived from the access token. Callers without a refresh token to revoke may post an empty body to clear server-side session state best-effort.

Returns 204 No Content on success. The caller is still responsible for dropping any locally-cached credentials.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /auth/logout (the `Logout` operationId).

func (*ClientWithResponses) LogoutWithResponse

func (c *ClientWithResponses) LogoutWithResponse(ctx context.Context, body LogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*LogoutResponse, error)

LogoutWithResponse Log out and revoke refresh token

Revokes the caller's refresh token server-side. For OAuth Bearer callers, include the refresh token in the request body — it is held client-side and cannot be derived from the access token. Callers without a refresh token to revoke may post an empty body to clear server-side session state best-effort.

Returns 204 No Content on success. The caller is still responsible for dropping any locally-cached credentials.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /auth/logout (the `Logout` operationId).

func (*ClientWithResponses) RenameServiceWithBodyWithResponse

func (c *ClientWithResponses) RenameServiceWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenameServiceResponse, error)

RenameServiceWithBodyWithResponse Rename a Service

Updates the name of a specific service.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/rename (the `RenameService` operationId).

func (*ClientWithResponses) RenameServiceWithResponse

func (c *ClientWithResponses) RenameServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body RenameServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*RenameServiceResponse, error)

RenameServiceWithResponse Rename a Service

Updates the name of a specific service.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/rename (the `RenameService` operationId).

func (*ClientWithResponses) RenameVPCWithBodyWithResponse

func (c *ClientWithResponses) RenameVPCWithBodyWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenameVPCResponse, error)

RenameVPCWithBodyWithResponse Rename a VPC

Updates the name of a specific VPC.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/vpcs/{vpc_id}/rename (the `RenameVPC` operationId).

func (*ClientWithResponses) RenameVPCWithResponse

func (c *ClientWithResponses) RenameVPCWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, body RenameVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*RenameVPCResponse, error)

RenameVPCWithResponse Rename a VPC

Updates the name of a specific VPC.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/vpcs/{vpc_id}/rename (the `RenameVPC` operationId).

func (*ClientWithResponses) ResizeReplicaSetWithBodyWithResponse

func (c *ClientWithResponses) ResizeReplicaSetWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResizeReplicaSetResponse, error)

ResizeReplicaSetWithBodyWithResponse Resize a Read Replica Set

Changes the resource allocation for a specific read replica set.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/resize (the `ResizeReplicaSet` operationId).

func (*ClientWithResponses) ResizeReplicaSetWithResponse

func (c *ClientWithResponses) ResizeReplicaSetWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, body ResizeReplicaSetJSONRequestBody, reqEditors ...RequestEditorFn) (*ResizeReplicaSetResponse, error)

ResizeReplicaSetWithResponse Resize a Read Replica Set

Changes the resource allocation for a specific read replica set.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/resize (the `ResizeReplicaSet` operationId).

func (*ClientWithResponses) ResizeServiceWithBodyWithResponse

func (c *ClientWithResponses) ResizeServiceWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResizeServiceResponse, error)

ResizeServiceWithBodyWithResponse Resize a Service

Changes the CPU and memory allocation for a specific service within a project. This is an asynchronous operation.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/resize (the `ResizeService` operationId).

func (*ClientWithResponses) ResizeServiceWithResponse

func (c *ClientWithResponses) ResizeServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body ResizeServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*ResizeServiceResponse, error)

ResizeServiceWithResponse Resize a Service

Changes the CPU and memory allocation for a specific service within a project. This is an asynchronous operation.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/resize (the `ResizeService` operationId).

func (*ClientWithResponses) SetBackupRetentionWithBodyWithResponse added in v0.25.0

func (c *ClientWithResponses) SetBackupRetentionWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetBackupRetentionResponse, error)

SetBackupRetentionWithBodyWithResponse Set the Backup Retention Policy

**Preview - this endpoint is experimental and may change without notice.**

Sets how long this service keeps its backups. Shortening retention deletes the backups that no longer fit.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /projects/{project_id}/services/{service_id}/backup-retention (the `SetBackupRetention` operationId).

func (*ClientWithResponses) SetBackupRetentionWithResponse added in v0.25.0

func (c *ClientWithResponses) SetBackupRetentionWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body SetBackupRetentionJSONRequestBody, reqEditors ...RequestEditorFn) (*SetBackupRetentionResponse, error)

SetBackupRetentionWithResponse Set the Backup Retention Policy

**Preview - this endpoint is experimental and may change without notice.**

Sets how long this service keeps its backups. Shortening retention deletes the backups that no longer fit.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /projects/{project_id}/services/{service_id}/backup-retention (the `SetBackupRetention` operationId).

func (*ClientWithResponses) SetEnvironmentWithBodyWithResponse

func (c *ClientWithResponses) SetEnvironmentWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetEnvironmentResponse, error)

SetEnvironmentWithBodyWithResponse Set Environment for a Service

Sets the environment type for the service.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/setEnvironment (the `SetEnvironment` operationId).

func (*ClientWithResponses) SetEnvironmentWithResponse

func (c *ClientWithResponses) SetEnvironmentWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body SetEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*SetEnvironmentResponse, error)

SetEnvironmentWithResponse Set Environment for a Service

Sets the environment type for the service.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/setEnvironment (the `SetEnvironment` operationId).

func (*ClientWithResponses) SetHAReplicaWithBodyWithResponse

func (c *ClientWithResponses) SetHAReplicaWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetHAReplicaResponse, error)

SetHAReplicaWithBodyWithResponse Change HA configuration for a Service

Changes the HA configuration for a specific service. This is an asynchronous operation.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/setHA (the `SetHAReplica` operationId).

func (*ClientWithResponses) SetHAReplicaWithResponse

func (c *ClientWithResponses) SetHAReplicaWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body SetHAReplicaJSONRequestBody, reqEditors ...RequestEditorFn) (*SetHAReplicaResponse, error)

SetHAReplicaWithResponse Change HA configuration for a Service

Changes the HA configuration for a specific service. This is an asynchronous operation.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/setHA (the `SetHAReplica` operationId).

func (*ClientWithResponses) SetReplicaEnvironmentWithBodyWithResponse

func (c *ClientWithResponses) SetReplicaEnvironmentWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetReplicaEnvironmentResponse, error)

SetReplicaEnvironmentWithBodyWithResponse Set Environment for a Read Replica

Sets the environment type for the read replica set.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/setEnvironment (the `SetReplicaEnvironment` operationId).

func (*ClientWithResponses) SetReplicaEnvironmentWithResponse

func (c *ClientWithResponses) SetReplicaEnvironmentWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, body SetReplicaEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*SetReplicaEnvironmentResponse, error)

SetReplicaEnvironmentWithResponse Set Environment for a Read Replica

Sets the environment type for the read replica set.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/setEnvironment (the `SetReplicaEnvironment` operationId).

func (*ClientWithResponses) StartServiceWithResponse

func (c *ClientWithResponses) StartServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*StartServiceResponse, error)

StartServiceWithResponse Start a Service

Starts a stopped service within a project. This is an asynchronous operation.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/start (the `StartService` operationId).

func (*ClientWithResponses) StopServiceWithResponse

func (c *ClientWithResponses) StopServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*StopServiceResponse, error)

StopServiceWithResponse Stop a Service

Stops a running service within a project. This is an asynchronous operation.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/stop (the `StopService` operationId).

func (*ClientWithResponses) SubmitFeedbackWithBodyWithResponse added in v0.25.0

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

SubmitFeedbackWithBodyWithResponse Submit feedback

Sends feedback, a bug report, or a support request to Tiger Data.

The submitter's email address is resolved from the caller's credentials, and the client version and operating system from the `User-Agent` header, so neither is supplied in the body.

Returns 204 No Content on success. This endpoint opens no support case and returns no ticket to track: use it for unsolicited feedback, and raise anything needing a tracked response through support.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /feedback (the `SubmitFeedback` operationId).

func (*ClientWithResponses) SubmitFeedbackWithResponse added in v0.25.0

func (c *ClientWithResponses) SubmitFeedbackWithResponse(ctx context.Context, body SubmitFeedbackJSONRequestBody, reqEditors ...RequestEditorFn) (*SubmitFeedbackResponse, error)

SubmitFeedbackWithResponse Submit feedback

Sends feedback, a bug report, or a support request to Tiger Data.

The submitter's email address is resolved from the caller's credentials, and the client version and operating system from the `User-Agent` header, so neither is supplied in the body.

Returns 204 No Content on success. This endpoint opens no support case and returns no ticket to track: use it for unsolicited feedback, and raise anything needing a tracked response through support.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /feedback (the `SubmitFeedback` operationId).

func (*ClientWithResponses) TrackEventWithBodyWithResponse

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

TrackEventWithBodyWithResponse Track an analytics event

Tracks an analytics event with optional properties.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /analytics/track (the `TrackEvent` operationId).

func (*ClientWithResponses) TrackEventWithResponse

func (c *ClientWithResponses) TrackEventWithResponse(ctx context.Context, body TrackEventJSONRequestBody, reqEditors ...RequestEditorFn) (*TrackEventResponse, error)

TrackEventWithResponse Track an analytics event

Tracks an analytics event with optional properties.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /analytics/track (the `TrackEvent` operationId).

func (*ClientWithResponses) UpdateAllowListWithBodyWithResponse added in v0.25.0

func (c *ClientWithResponses) UpdateAllowListWithBodyWithResponse(ctx context.Context, projectID ProjectID, allowListID AllowListID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAllowListResponse, error)

UpdateAllowListWithBodyWithResponse Update an IP Allow List

**Preview - this endpoint is experimental and may change without notice.**

Updates an IP allow list in place. Send `description` and/or `cidr_blocks` to change them; omit either one to leave it unchanged.

Every service the IP allow list is attached to is updated with the new CIDR blocks. To remove every CIDR block, delete the IP allow list instead of sending an empty `cidr_blocks`.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /projects/{project_id}/allow-lists/{allow_list_id} (the `UpdateAllowList` operationId).

func (*ClientWithResponses) UpdateAllowListWithResponse added in v0.25.0

func (c *ClientWithResponses) UpdateAllowListWithResponse(ctx context.Context, projectID ProjectID, allowListID AllowListID, body UpdateAllowListJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAllowListResponse, error)

UpdateAllowListWithResponse Update an IP Allow List

**Preview - this endpoint is experimental and may change without notice.**

Updates an IP allow list in place. Send `description` and/or `cidr_blocks` to change them; omit either one to leave it unchanged.

Every service the IP allow list is attached to is updated with the new CIDR blocks. To remove every CIDR block, delete the IP allow list instead of sending an empty `cidr_blocks`.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /projects/{project_id}/allow-lists/{allow_list_id} (the `UpdateAllowList` operationId).

func (*ClientWithResponses) UpdateExporterWithBodyWithResponse added in v0.25.0

func (c *ClientWithResponses) UpdateExporterWithBodyWithResponse(ctx context.Context, projectID ProjectID, exporterID ExporterID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateExporterResponse, error)

UpdateExporterWithBodyWithResponse Update an Exporter

**Preview - this endpoint is experimental and may change without notice.**

Updates an exporter in place. Send `config` to replace the whole configuration; omit it to leave the configuration unchanged.

Every service the exporter is attached to picks up the change; there is no need to detach and reattach.

`type` must be included and must match the exporter's existing type; it cannot be changed. To send data somewhere else, create a new exporter and move the services over.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /projects/{project_id}/exporters/{exporter_id} (the `UpdateExporter` operationId).

func (*ClientWithResponses) UpdateExporterWithResponse added in v0.25.0

func (c *ClientWithResponses) UpdateExporterWithResponse(ctx context.Context, projectID ProjectID, exporterID ExporterID, body UpdateExporterJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateExporterResponse, error)

UpdateExporterWithResponse Update an Exporter

**Preview - this endpoint is experimental and may change without notice.**

Updates an exporter in place. Send `config` to replace the whole configuration; omit it to leave the configuration unchanged.

Every service the exporter is attached to picks up the change; there is no need to detach and reattach.

`type` must be included and must match the exporter's existing type; it cannot be changed. To send data somewhere else, create a new exporter and move the services over.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /projects/{project_id}/exporters/{exporter_id} (the `UpdateExporter` operationId).

func (*ClientWithResponses) UpdatePasswordWithBodyWithResponse

func (c *ClientWithResponses) UpdatePasswordWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePasswordResponse, error)

UpdatePasswordWithBodyWithResponse Update Service Password

Sets a new master password for the service within a project.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/updatePassword (the `UpdatePassword` operationId).

func (*ClientWithResponses) UpdatePasswordWithResponse

func (c *ClientWithResponses) UpdatePasswordWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body UpdatePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePasswordResponse, error)

UpdatePasswordWithResponse Update Service Password

Sets a new master password for the service within a project.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/services/{service_id}/updatePassword (the `UpdatePassword` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// IdentifyUserWithBodyWithResponse Identify a user
	//
	// Identifies a user with optional properties for analytics tracking.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /analytics/identify (the `IdentifyUser` operationId).
	IdentifyUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error)

	// IdentifyUserWithResponse Identify a user
	//
	// Identifies a user with optional properties for analytics tracking.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /analytics/identify (the `IdentifyUser` operationId).
	IdentifyUserWithResponse(ctx context.Context, body IdentifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error)

	// TrackEventWithBodyWithResponse Track an analytics event
	//
	// Tracks an analytics event with optional properties.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /analytics/track (the `TrackEvent` operationId).
	TrackEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TrackEventResponse, error)

	// TrackEventWithResponse Track an analytics event
	//
	// Tracks an analytics event with optional properties.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /analytics/track (the `TrackEvent` operationId).
	TrackEventWithResponse(ctx context.Context, body TrackEventJSONRequestBody, reqEditors ...RequestEditorFn) (*TrackEventResponse, error)

	// GetAuthInfoWithResponse Get Authentication Info
	//
	// Returns the authenticated caller's identity. The response shape depends on the credential type: `apiKey` for PAT
	// callers, `oauth` for OAuth user callers. Exactly one of `api_key` or `oauth` is populated;
	// `type` discriminates.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /auth/info (the `GetAuthInfo` operationId).
	GetAuthInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAuthInfoResponse, error)

	// LogoutWithBodyWithResponse Log out and revoke refresh token
	//
	// Revokes the caller's refresh token server-side. For OAuth Bearer
	// callers, include the refresh token in the request body — it is held
	// client-side and cannot be derived from the access token. Callers
	// without a refresh token to revoke may post an
	// empty body to clear server-side session state best-effort.
	//
	// Returns 204 No Content on success. The caller is still responsible
	// for dropping any locally-cached credentials.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /auth/logout (the `Logout` operationId).
	LogoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LogoutResponse, error)

	// LogoutWithResponse Log out and revoke refresh token
	//
	// Revokes the caller's refresh token server-side. For OAuth Bearer
	// callers, include the refresh token in the request body — it is held
	// client-side and cannot be derived from the access token. Callers
	// without a refresh token to revoke may post an
	// empty body to clear server-side session state best-effort.
	//
	// Returns 204 No Content on success. The caller is still responsible
	// for dropping any locally-cached credentials.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /auth/logout (the `Logout` operationId).
	LogoutWithResponse(ctx context.Context, body LogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*LogoutResponse, error)

	// SubmitFeedbackWithBodyWithResponse Submit feedback
	//
	// Sends feedback, a bug report, or a support request to Tiger Data.
	//
	// The submitter's email address is resolved from the caller's
	// credentials, and the client version and operating system from the
	// `User-Agent` header, so neither is supplied in the body.
	//
	// Returns 204 No Content on success. This endpoint opens no support
	// case and returns no ticket to track: use it for unsolicited feedback,
	// and raise anything needing a tracked response through support.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /feedback (the `SubmitFeedback` operationId).
	SubmitFeedbackWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitFeedbackResponse, error)

	// SubmitFeedbackWithResponse Submit feedback
	//
	// Sends feedback, a bug report, or a support request to Tiger Data.
	//
	// The submitter's email address is resolved from the caller's
	// credentials, and the client version and operating system from the
	// `User-Agent` header, so neither is supplied in the body.
	//
	// Returns 204 No Content on success. This endpoint opens no support
	// case and returns no ticket to track: use it for unsolicited feedback,
	// and raise anything needing a tracked response through support.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /feedback (the `SubmitFeedback` operationId).
	SubmitFeedbackWithResponse(ctx context.Context, body SubmitFeedbackJSONRequestBody, reqEditors ...RequestEditorFn) (*SubmitFeedbackResponse, error)

	// GetProjectsWithResponse List projects accessible to the authenticated caller
	//
	// Returns the projects the caller can access. PAT callers see only the
	// project their PAT is scoped to; OAuth user callers see all projects
	// they belong to.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects (the `GetProjects` operationId).
	GetProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)

	// GetAllowListsWithResponse List All IP Allow Lists
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Retrieves every IP allow list in a project.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/allow-lists (the `GetAllowLists` operationId).
	GetAllowListsWithResponse(ctx context.Context, projectID ProjectID, reqEditors ...RequestEditorFn) (*GetAllowListsResponse, error)

	// CreateAllowListWithBodyWithResponse Create an IP Allow List
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Creates an IP allow list in a project. An IP allow list carries no
	// effect until it is attached to a service.
	//
	// The number of CIDR blocks per list and the number of lists per
	// project are plan-dependent.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/allow-lists (the `CreateAllowList` operationId).
	CreateAllowListWithBodyWithResponse(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAllowListResponse, error)

	// CreateAllowListWithResponse Create an IP Allow List
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Creates an IP allow list in a project. An IP allow list carries no
	// effect until it is attached to a service.
	//
	// The number of CIDR blocks per list and the number of lists per
	// project are plan-dependent.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/allow-lists (the `CreateAllowList` operationId).
	CreateAllowListWithResponse(ctx context.Context, projectID ProjectID, body CreateAllowListJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAllowListResponse, error)

	// DeleteAllowListWithResponse Delete an IP Allow List
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Deletes an IP allow list. Refused if the list is still attached to
	// any service. Detach it first.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /projects/{project_id}/allow-lists/{allow_list_id} (the `DeleteAllowList` operationId).
	DeleteAllowListWithResponse(ctx context.Context, projectID ProjectID, allowListID AllowListID, reqEditors ...RequestEditorFn) (*DeleteAllowListResponse, error)

	// GetAllowListWithResponse Get an IP Allow List
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Retrieves a single IP allow list.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/allow-lists/{allow_list_id} (the `GetAllowList` operationId).
	GetAllowListWithResponse(ctx context.Context, projectID ProjectID, allowListID AllowListID, reqEditors ...RequestEditorFn) (*GetAllowListResponse, error)

	// UpdateAllowListWithBodyWithResponse Update an IP Allow List
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Updates an IP allow list in place. Send `description` and/or
	// `cidr_blocks` to change them; omit either one to leave it
	// unchanged.
	//
	// Every service the IP allow list is attached to is updated with the
	// new CIDR blocks. To remove every CIDR block, delete the IP allow
	// list instead of sending an empty `cidr_blocks`.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /projects/{project_id}/allow-lists/{allow_list_id} (the `UpdateAllowList` operationId).
	UpdateAllowListWithBodyWithResponse(ctx context.Context, projectID ProjectID, allowListID AllowListID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAllowListResponse, error)

	// UpdateAllowListWithResponse Update an IP Allow List
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Updates an IP allow list in place. Send `description` and/or
	// `cidr_blocks` to change them; omit either one to leave it
	// unchanged.
	//
	// Every service the IP allow list is attached to is updated with the
	// new CIDR blocks. To remove every CIDR block, delete the IP allow
	// list instead of sending an empty `cidr_blocks`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /projects/{project_id}/allow-lists/{allow_list_id} (the `UpdateAllowList` operationId).
	UpdateAllowListWithResponse(ctx context.Context, projectID ProjectID, allowListID AllowListID, body UpdateAllowListJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAllowListResponse, error)

	// GetExportersWithResponse List All Exporters
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Retrieves every exporter in a project, across every region.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/exporters (the `GetExporters` operationId).
	GetExportersWithResponse(ctx context.Context, projectID ProjectID, reqEditors ...RequestEditorFn) (*GetExportersResponse, error)

	// CreateExporterWithBodyWithResponse Create an Exporter
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Creates an exporter in a project and region.
	//
	// An exporter carries no data until it is attached to a service.
	//
	// Exporters aren't available on every plan. If your project's plan
	// doesn't include them, this request is refused here rather than later,
	// when you try to attach one.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/exporters (the `CreateExporter` operationId).
	CreateExporterWithBodyWithResponse(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateExporterResponse, error)

	// CreateExporterWithResponse Create an Exporter
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Creates an exporter in a project and region.
	//
	// An exporter carries no data until it is attached to a service.
	//
	// Exporters aren't available on every plan. If your project's plan
	// doesn't include them, this request is refused here rather than later,
	// when you try to attach one.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/exporters (the `CreateExporter` operationId).
	CreateExporterWithResponse(ctx context.Context, projectID ProjectID, body CreateExporterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateExporterResponse, error)

	// DeleteExporterWithResponse Delete an Exporter
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Deletes an exporter and stops the data it was sending. Any service
	// still attached is detached automatically. You don't need to detach it
	// first, and nothing errors if you don't.
	//
	// Data already delivered to the destination is untouched, and nothing on
	// the services themselves changes.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /projects/{project_id}/exporters/{exporter_id} (the `DeleteExporter` operationId).
	DeleteExporterWithResponse(ctx context.Context, projectID ProjectID, exporterID ExporterID, reqEditors ...RequestEditorFn) (*DeleteExporterResponse, error)

	// GetExporterWithResponse Get an Exporter
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Retrieves a single exporter.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/exporters/{exporter_id} (the `GetExporter` operationId).
	GetExporterWithResponse(ctx context.Context, projectID ProjectID, exporterID ExporterID, reqEditors ...RequestEditorFn) (*GetExporterResponse, error)

	// UpdateExporterWithBodyWithResponse Update an Exporter
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Updates an exporter in place. Send `config` to replace the whole
	// configuration; omit it to leave the configuration unchanged.
	//
	// Every service the exporter is attached to picks up the change; there
	// is no need to detach and reattach.
	//
	// `type` must be included and must match the exporter's existing type;
	// it cannot be changed. To send data somewhere else, create a new
	// exporter and move the services over.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /projects/{project_id}/exporters/{exporter_id} (the `UpdateExporter` operationId).
	UpdateExporterWithBodyWithResponse(ctx context.Context, projectID ProjectID, exporterID ExporterID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateExporterResponse, error)

	// UpdateExporterWithResponse Update an Exporter
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Updates an exporter in place. Send `config` to replace the whole
	// configuration; omit it to leave the configuration unchanged.
	//
	// Every service the exporter is attached to picks up the change; there
	// is no need to detach and reattach.
	//
	// `type` must be included and must match the exporter's existing type;
	// it cannot be changed. To send data somewhere else, create a new
	// exporter and move the services over.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /projects/{project_id}/exporters/{exporter_id} (the `UpdateExporter` operationId).
	UpdateExporterWithResponse(ctx context.Context, projectID ProjectID, exporterID ExporterID, body UpdateExporterJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateExporterResponse, error)

	// GetServicesWithResponse List All Services
	//
	// Retrieves a list of all services within a specific project.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/services (the `GetServices` operationId).
	GetServicesWithResponse(ctx context.Context, projectID ProjectID, params *GetServicesParams, reqEditors ...RequestEditorFn) (*GetServicesResponse, error)

	// CreateServiceWithBodyWithResponse Create a Service
	//
	// Creates a new database service within a project. This is an asynchronous operation.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services (the `CreateService` operationId).
	CreateServiceWithBodyWithResponse(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error)

	// CreateServiceWithResponse Create a Service
	//
	// Creates a new database service within a project. This is an asynchronous operation.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services (the `CreateService` operationId).
	CreateServiceWithResponse(ctx context.Context, projectID ProjectID, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error)

	// DeleteServiceWithResponse Delete a Service
	//
	// Deletes a specific service. This is an asynchronous operation.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /projects/{project_id}/services/{service_id} (the `DeleteService` operationId).
	DeleteServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*DeleteServiceResponse, error)

	// GetServiceWithResponse Get a Service
	//
	// Retrieves the details of a specific service by its ID.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/services/{service_id} (the `GetService` operationId).
	GetServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*GetServiceResponse, error)

	// AttachServiceToAllowListWithBodyWithResponse Attach Service to IP Allow List
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Restricts a service's connections to the IP ranges in an IP allow list.
	// A service has at most one IP allow list; attaching a second one
	// without detaching the first is refused.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/attachToAllowList (the `AttachServiceToAllowList` operationId).
	AttachServiceToAllowListWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachServiceToAllowListResponse, error)

	// AttachServiceToAllowListWithResponse Attach Service to IP Allow List
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Restricts a service's connections to the IP ranges in an IP allow list.
	// A service has at most one IP allow list; attaching a second one
	// without detaching the first is refused.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/attachToAllowList (the `AttachServiceToAllowList` operationId).
	AttachServiceToAllowListWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body AttachServiceToAllowListJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachServiceToAllowListResponse, error)

	// AttachServiceToExporterWithBodyWithResponse Attach Service to Exporter
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Starts sending a service's logs or metrics to an exporter.
	//
	// A service sends to at most one log exporter and one metric exporter at
	// a time. Attaching a second exporter of the same kind is refused;
	// detach the current one first.
	//
	// The first time a log exporter is attached to a service, the service
	// restarts once. Attaching a different log exporter later does not
	// restart anything, and neither does attaching a metric exporter.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/attachToExporter (the `AttachServiceToExporter` operationId).
	AttachServiceToExporterWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachServiceToExporterResponse, error)

	// AttachServiceToExporterWithResponse Attach Service to Exporter
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Starts sending a service's logs or metrics to an exporter.
	//
	// A service sends to at most one log exporter and one metric exporter at
	// a time. Attaching a second exporter of the same kind is refused;
	// detach the current one first.
	//
	// The first time a log exporter is attached to a service, the service
	// restarts once. Attaching a different log exporter later does not
	// restart anything, and neither does attaching a metric exporter.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/attachToExporter (the `AttachServiceToExporter` operationId).
	AttachServiceToExporterWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body AttachServiceToExporterJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachServiceToExporterResponse, error)

	// AttachServiceToVPCWithBodyWithResponse Attach Service to VPC
	//
	// Associates a service with a VPC.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/attachToVPC (the `AttachServiceToVPC` operationId).
	AttachServiceToVPCWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachServiceToVPCResponse, error)

	// AttachServiceToVPCWithResponse Attach Service to VPC
	//
	// Associates a service with a VPC.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/attachToVPC (the `AttachServiceToVPC` operationId).
	AttachServiceToVPCWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body AttachServiceToVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachServiceToVPCResponse, error)

	// GetBackupRegionsWithResponse List All Backup Regions
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Retrieves the additional regions this service's backups are copied to
	// (cross-region backups). The region the service runs in is not listed.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/services/{service_id}/backup-regions (the `GetBackupRegions` operationId).
	GetBackupRegionsWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*GetBackupRegionsResponse, error)

	// CreateBackupRegionWithBodyWithResponse Add a Backup Region
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Starts copying this service's backups to another region. The region is
	// added immediately; existing backups are copied to it in the background.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/backup-regions (the `CreateBackupRegion` operationId).
	CreateBackupRegionWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBackupRegionResponse, error)

	// CreateBackupRegionWithResponse Add a Backup Region
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Starts copying this service's backups to another region. The region is
	// added immediately; existing backups are copied to it in the background.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/backup-regions (the `CreateBackupRegion` operationId).
	CreateBackupRegionWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body CreateBackupRegionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBackupRegionResponse, error)

	// DeleteBackupRegionWithResponse Remove a Backup Region
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Stops copying this service's backups to a region. Copies already stored
	// there are deleted in the background and cannot be recovered.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /projects/{project_id}/services/{service_id}/backup-regions/{region_code} (the `DeleteBackupRegion` operationId).
	DeleteBackupRegionWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, regionCode BackupRegionCode, reqEditors ...RequestEditorFn) (*DeleteBackupRegionResponse, error)

	// GetBackupRetentionWithResponse Get the Backup Retention Policy
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Retrieves how long this service keeps its backups.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/services/{service_id}/backup-retention (the `GetBackupRetention` operationId).
	GetBackupRetentionWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*GetBackupRetentionResponse, error)

	// SetBackupRetentionWithBodyWithResponse Set the Backup Retention Policy
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Sets how long this service keeps its backups. Shortening retention
	// deletes the backups that no longer fit.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /projects/{project_id}/services/{service_id}/backup-retention (the `SetBackupRetention` operationId).
	SetBackupRetentionWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetBackupRetentionResponse, error)

	// SetBackupRetentionWithResponse Set the Backup Retention Policy
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Sets how long this service keeps its backups. Shortening retention
	// deletes the backups that no longer fit.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /projects/{project_id}/services/{service_id}/backup-retention (the `SetBackupRetention` operationId).
	SetBackupRetentionWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body SetBackupRetentionJSONRequestBody, reqEditors ...RequestEditorFn) (*SetBackupRetentionResponse, error)

	// GetBackupsWithResponse List All Backups
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Retrieves a list of the full and incremental backups taken for a
	// service. Backups run automatically on a schedule; there is no operation
	// to create or delete one. To restore data, create a recovery fork with
	// `fork_strategy: PITR`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/services/{service_id}/backups (the `GetBackups` operationId).
	GetBackupsWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*GetBackupsResponse, error)

	// DetachServiceFromAllowListWithBodyWithResponse Detach Service from IP Allow List
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Removes the IP restriction an IP allow list placed on a service. The
	// IP allow list itself is not deleted.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromAllowList (the `DetachServiceFromAllowList` operationId).
	DetachServiceFromAllowListWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DetachServiceFromAllowListResponse, error)

	// DetachServiceFromAllowListWithResponse Detach Service from IP Allow List
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Removes the IP restriction an IP allow list placed on a service. The
	// IP allow list itself is not deleted.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromAllowList (the `DetachServiceFromAllowList` operationId).
	DetachServiceFromAllowListWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body DetachServiceFromAllowListJSONRequestBody, reqEditors ...RequestEditorFn) (*DetachServiceFromAllowListResponse, error)

	// DetachServiceFromExporterWithBodyWithResponse Detach Service from Exporter
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Stops sending a service's logs or metrics to an exporter. The exporter
	// is not deleted and keeps serving any other service attached to it.
	//
	// Data already delivered to the destination is untouched.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromExporter (the `DetachServiceFromExporter` operationId).
	DetachServiceFromExporterWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DetachServiceFromExporterResponse, error)

	// DetachServiceFromExporterWithResponse Detach Service from Exporter
	//
	// **Preview - this endpoint is experimental and may change without notice.**
	//
	// Stops sending a service's logs or metrics to an exporter. The exporter
	// is not deleted and keeps serving any other service attached to it.
	//
	// Data already delivered to the destination is untouched.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromExporter (the `DetachServiceFromExporter` operationId).
	DetachServiceFromExporterWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body DetachServiceFromExporterJSONRequestBody, reqEditors ...RequestEditorFn) (*DetachServiceFromExporterResponse, error)

	// DetachServiceFromVPCWithBodyWithResponse Detach Service from VPC
	//
	// Disassociates a service from its VPC.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromVPC (the `DetachServiceFromVPC` operationId).
	DetachServiceFromVPCWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DetachServiceFromVPCResponse, error)

	// DetachServiceFromVPCWithResponse Detach Service from VPC
	//
	// Disassociates a service from its VPC.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/detachFromVPC (the `DetachServiceFromVPC` operationId).
	DetachServiceFromVPCWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body DetachServiceFromVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*DetachServiceFromVPCResponse, error)

	// DisablePoolerWithResponse Disable Connection Pooler for a Service
	//
	// Deactivates the connection pooler for a specific service within a project.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/disablePooler (the `DisablePooler` operationId).
	DisablePoolerWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*DisablePoolerResponse, error)

	// EnableDataTieringWithResponse Enable Data Tiering for a Service
	//
	// Enables tiered storage on the service. Tiering policies move older,
	// rarely-accessed data from the high-performance storage tier to a
	// low-cost object storage tier. Tiered data stays queryable but becomes
	// read-only.
	//
	// There is no way to disable tiering through this API. Contact Tiger
	// Data support if you need to turn it off.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/enableDataTiering (the `EnableDataTiering` operationId).
	EnableDataTieringWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*EnableDataTieringResponse, error)

	// EnablePoolerWithResponse Enable Connection Pooler for a Service
	//
	// Activates the connection pooler for a specific service within a project.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/enablePooler (the `EnablePooler` operationId).
	EnablePoolerWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*EnablePoolerResponse, error)

	// ForkServiceWithBodyWithResponse Fork a Service
	//
	// Creates a new, independent service within a project by taking a snapshot of an existing one.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/forkService (the `ForkService` operationId).
	ForkServiceWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ForkServiceResponse, error)

	// ForkServiceWithResponse Fork a Service
	//
	// Creates a new, independent service within a project by taking a snapshot of an existing one.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/forkService (the `ForkService` operationId).
	ForkServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body ForkServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*ForkServiceResponse, error)

	// GetServiceLogsWithResponse Get service logs
	//
	// Fetch logs for a specific service. Returns up to 500 log entries in reverse
	// chronological order. Supports cursor-based pagination via the `cursor` parameter
	// and the `last_cursor` field in the response.
	//
	// Use the returned `last_cursor` value as the `cursor` parameter on subsequent
	// requests to page through all available logs.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/services/{service_id}/logs (the `GetServiceLogs` operationId).
	GetServiceLogsWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, params *GetServiceLogsParams, reqEditors ...RequestEditorFn) (*GetServiceLogsResponse, error)

	// GetServiceMetricsAvailableSeriesWithResponse List available metric series
	//
	// Returns the names of all metric series available for a service.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/services/{service_id}/metrics/available-series (the `GetServiceMetricsAvailableSeries` operationId).
	GetServiceMetricsAvailableSeriesWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*GetServiceMetricsAvailableSeriesResponse, error)

	// GetServiceMetricDetailsWithResponse Get details about a metric
	//
	// Returns descriptive metadata for a named metric: what it measures,
	// its type, default aggregation, and every label it can be filtered or
	// grouped by — its own labels plus the region/role/ordinal labels most
	// metrics also carry. Use getServiceMetricsAvailableSeries to discover
	// valid metric names.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/services/{service_id}/metrics/details/{metric_name} (the `GetServiceMetricDetails` operationId).
	GetServiceMetricDetailsWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, metricName string, reqEditors ...RequestEditorFn) (*GetServiceMetricDetailsResponse, error)

	// GetServiceMetricsSeriesWithBodyWithResponse Get a metric series
	//
	// Returns time-series data points for a named metric within a time window.
	// Use getServiceMetricsAvailableSeries to discover valid metric names.
	//
	// Parameters are sent as a JSON body so callers can pass an unbounded
	// filter set without query-string length pressure. The response is a list
	// of MetricSeries, each carrying its label set as a structured map
	// alongside its per-bucket data points.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/metrics/series (the `GetServiceMetricsSeries` operationId).
	GetServiceMetricsSeriesWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetServiceMetricsSeriesResponse, error)

	// GetServiceMetricsSeriesWithResponse Get a metric series
	//
	// Returns time-series data points for a named metric within a time window.
	// Use getServiceMetricsAvailableSeries to discover valid metric names.
	//
	// Parameters are sent as a JSON body so callers can pass an unbounded
	// filter set without query-string length pressure. The response is a list
	// of MetricSeries, each carrying its label set as a structured map
	// alongside its per-bucket data points.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/metrics/series (the `GetServiceMetricsSeries` operationId).
	GetServiceMetricsSeriesWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body GetServiceMetricsSeriesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetServiceMetricsSeriesResponse, error)

	// RenameServiceWithBodyWithResponse Rename a Service
	//
	// Updates the name of a specific service.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/rename (the `RenameService` operationId).
	RenameServiceWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenameServiceResponse, error)

	// RenameServiceWithResponse Rename a Service
	//
	// Updates the name of a specific service.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/rename (the `RenameService` operationId).
	RenameServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body RenameServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*RenameServiceResponse, error)

	// GetReplicaSetsWithResponse Get Read Replica Sets
	//
	// Retrieves a list of all read replica sets associated with a primary service within a project.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/services/{service_id}/replicaSets (the `GetReplicaSets` operationId).
	GetReplicaSetsWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*GetReplicaSetsResponse, error)

	// CreateReplicaSetWithBodyWithResponse Create a Read Replica Set
	//
	// Creates a new read replica set for a service. This is an asynchronous operation.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets (the `CreateReplicaSet` operationId).
	CreateReplicaSetWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReplicaSetResponse, error)

	// CreateReplicaSetWithResponse Create a Read Replica Set
	//
	// Creates a new read replica set for a service. This is an asynchronous operation.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets (the `CreateReplicaSet` operationId).
	CreateReplicaSetWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body CreateReplicaSetJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReplicaSetResponse, error)

	// DeleteReplicaSetWithResponse Delete a Read Replica Set
	//
	// Deletes a specific read replica set. This is an asynchronous operation.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id} (the `DeleteReplicaSet` operationId).
	DeleteReplicaSetWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*DeleteReplicaSetResponse, error)

	// DisableReplicaPoolerWithResponse Disable Connection Pooler for a Read Replica
	//
	// Deactivates the connection pooler for a specific read replica set.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/disablePooler (the `DisableReplicaPooler` operationId).
	DisableReplicaPoolerWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*DisableReplicaPoolerResponse, error)

	// EnableReplicaPoolerWithResponse Enable Connection Pooler for a Read Replica
	//
	// Activates the connection pooler for a specific read replica set.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/enablePooler (the `EnableReplicaPooler` operationId).
	EnableReplicaPoolerWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*EnableReplicaPoolerResponse, error)

	// ResizeReplicaSetWithBodyWithResponse Resize a Read Replica Set
	//
	// Changes the resource allocation for a specific read replica set.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/resize (the `ResizeReplicaSet` operationId).
	ResizeReplicaSetWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResizeReplicaSetResponse, error)

	// ResizeReplicaSetWithResponse Resize a Read Replica Set
	//
	// Changes the resource allocation for a specific read replica set.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/resize (the `ResizeReplicaSet` operationId).
	ResizeReplicaSetWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, body ResizeReplicaSetJSONRequestBody, reqEditors ...RequestEditorFn) (*ResizeReplicaSetResponse, error)

	// SetReplicaEnvironmentWithBodyWithResponse Set Environment for a Read Replica
	//
	// Sets the environment type for the read replica set.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/setEnvironment (the `SetReplicaEnvironment` operationId).
	SetReplicaEnvironmentWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetReplicaEnvironmentResponse, error)

	// SetReplicaEnvironmentWithResponse Set Environment for a Read Replica
	//
	// Sets the environment type for the read replica set.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/replicaSets/{replica_set_id}/setEnvironment (the `SetReplicaEnvironment` operationId).
	SetReplicaEnvironmentWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, body SetReplicaEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*SetReplicaEnvironmentResponse, error)

	// ResizeServiceWithBodyWithResponse Resize a Service
	//
	// Changes the CPU and memory allocation for a specific service within a project. This is an asynchronous operation.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/resize (the `ResizeService` operationId).
	ResizeServiceWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResizeServiceResponse, error)

	// ResizeServiceWithResponse Resize a Service
	//
	// Changes the CPU and memory allocation for a specific service within a project. This is an asynchronous operation.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/resize (the `ResizeService` operationId).
	ResizeServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body ResizeServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*ResizeServiceResponse, error)

	// SetEnvironmentWithBodyWithResponse Set Environment for a Service
	//
	// Sets the environment type for the service.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/setEnvironment (the `SetEnvironment` operationId).
	SetEnvironmentWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetEnvironmentResponse, error)

	// SetEnvironmentWithResponse Set Environment for a Service
	//
	// Sets the environment type for the service.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/setEnvironment (the `SetEnvironment` operationId).
	SetEnvironmentWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body SetEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*SetEnvironmentResponse, error)

	// SetHAReplicaWithBodyWithResponse Change HA configuration for a Service
	//
	// Changes the HA configuration for a specific service. This is an asynchronous operation.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/setHA (the `SetHAReplica` operationId).
	SetHAReplicaWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetHAReplicaResponse, error)

	// SetHAReplicaWithResponse Change HA configuration for a Service
	//
	// Changes the HA configuration for a specific service. This is an asynchronous operation.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/setHA (the `SetHAReplica` operationId).
	SetHAReplicaWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body SetHAReplicaJSONRequestBody, reqEditors ...RequestEditorFn) (*SetHAReplicaResponse, error)

	// StartServiceWithResponse Start a Service
	//
	// Starts a stopped service within a project. This is an asynchronous operation.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/start (the `StartService` operationId).
	StartServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*StartServiceResponse, error)

	// StopServiceWithResponse Stop a Service
	//
	// Stops a running service within a project. This is an asynchronous operation.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/stop (the `StopService` operationId).
	StopServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*StopServiceResponse, error)

	// UpdatePasswordWithBodyWithResponse Update Service Password
	//
	// Sets a new master password for the service within a project.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/updatePassword (the `UpdatePassword` operationId).
	UpdatePasswordWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePasswordResponse, error)

	// UpdatePasswordWithResponse Update Service Password
	//
	// Sets a new master password for the service within a project.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/services/{service_id}/updatePassword (the `UpdatePassword` operationId).
	UpdatePasswordWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body UpdatePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePasswordResponse, error)

	// GetVPCsWithResponse List All VPCs
	//
	// Retrieves a list of all Virtual Private Clouds (VPCs).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/vpcs (the `GetVPCs` operationId).
	GetVPCsWithResponse(ctx context.Context, projectID ProjectID, reqEditors ...RequestEditorFn) (*GetVPCsResponse, error)

	// CreateVPCWithBodyWithResponse Create a VPC
	//
	// Creates a new Virtual Private Cloud (VPC).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/vpcs (the `CreateVPC` operationId).
	CreateVPCWithBodyWithResponse(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVPCResponse, error)

	// CreateVPCWithResponse Create a VPC
	//
	// Creates a new Virtual Private Cloud (VPC).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/vpcs (the `CreateVPC` operationId).
	CreateVPCWithResponse(ctx context.Context, projectID ProjectID, body CreateVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVPCResponse, error)

	// DeleteVPCWithResponse Delete a VPC
	//
	// Deletes a specific VPC.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /projects/{project_id}/vpcs/{vpc_id} (the `DeleteVPC` operationId).
	DeleteVPCWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, reqEditors ...RequestEditorFn) (*DeleteVPCResponse, error)

	// GetVPCWithResponse Get a VPC
	//
	// Retrieves the details of a specific VPC by its ID.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/vpcs/{vpc_id} (the `GetVPC` operationId).
	GetVPCWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, reqEditors ...RequestEditorFn) (*GetVPCResponse, error)

	// GetVPCPeeringsWithResponse List VPC Peerings
	//
	// Retrieves a list of all VPC peering connections for a given VPC.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/vpcs/{vpc_id}/peerings (the `GetVPCPeerings` operationId).
	GetVPCPeeringsWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, reqEditors ...RequestEditorFn) (*GetVPCPeeringsResponse, error)

	// CreateVPCPeeringWithBodyWithResponse Create a VPC Peering
	//
	// Creates a new VPC peering connection.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/vpcs/{vpc_id}/peerings (the `CreateVPCPeering` operationId).
	CreateVPCPeeringWithBodyWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVPCPeeringResponse, error)

	// CreateVPCPeeringWithResponse Create a VPC Peering
	//
	// Creates a new VPC peering connection.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/vpcs/{vpc_id}/peerings (the `CreateVPCPeering` operationId).
	CreateVPCPeeringWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, body CreateVPCPeeringJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVPCPeeringResponse, error)

	// DeleteVPCPeeringWithResponse Delete a VPC Peering
	//
	// Deletes a specific VPC peering connection.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /projects/{project_id}/vpcs/{vpc_id}/peerings/{peering_id} (the `DeleteVPCPeering` operationId).
	DeleteVPCPeeringWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, peeringID PeeringID, reqEditors ...RequestEditorFn) (*DeleteVPCPeeringResponse, error)

	// GetVPCPeeringWithResponse Get a VPC Peering
	//
	// Retrieves the details of a specific VPC peering connection.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/vpcs/{vpc_id}/peerings/{peering_id} (the `GetVPCPeering` operationId).
	GetVPCPeeringWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, peeringID PeeringID, reqEditors ...RequestEditorFn) (*GetVPCPeeringResponse, error)

	// RenameVPCWithBodyWithResponse Rename a VPC
	//
	// Updates the name of a specific VPC.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/vpcs/{vpc_id}/rename (the `RenameVPC` operationId).
	RenameVPCWithBodyWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenameVPCResponse, error)

	// RenameVPCWithResponse Rename a VPC
	//
	// Updates the name of a specific VPC.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/vpcs/{vpc_id}/rename (the `RenameVPC` operationId).
	RenameVPCWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, body RenameVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*RenameVPCResponse, error)
}

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

type CloudWatchLogsConfig added in v0.25.0

type CloudWatchLogsConfig struct {
	// AwsRegion The AWS region the log group is in. Independent of the exporter's own
	// `region_code`.
	//
	//
	// Example: us-east-1
	AwsRegion string `json:"aws_region"`

	// Credentials How Tiger Cloud authenticates to AWS.
	Credentials AWSCredentials `json:"credentials"`

	// LogGroupName The CloudWatch log group to write to. It must already exist in your
	// AWS account.
	//
	//
	// Example: /tigerdata/prod
	LogGroupName string `json:"log_group_name"`

	// LogStreamName The log stream within the log group to write to.
	//
	// Example: orders-db
	LogStreamName string `json:"log_stream_name"`
}

CloudWatchLogsConfig Where a CloudWatch logs exporter writes, and how it authenticates.

type CloudWatchLogsConfigUpdate added in v0.25.0

type CloudWatchLogsConfigUpdate struct {
	// AwsRegion The AWS region the log group is in.
	//
	// Example: us-east-1
	AwsRegion string `json:"aws_region"`

	// Credentials Replacement AWS credentials. Switching between the two kinds is
	// allowed: sending `IAM_ROLE` discards any stored access key pair, and
	// sending `ACCESS_KEY` discards any stored role.
	Credentials AWSCredentialsUpdate `json:"credentials"`

	// LogGroupName The CloudWatch log group to write to.
	//
	// Example: /tigerdata/prod
	LogGroupName string `json:"log_group_name"`

	// LogStreamName The log stream within the log group to write to.
	//
	// Example: orders-db
	LogStreamName string `json:"log_stream_name"`
}

CloudWatchLogsConfigUpdate A replacement configuration for a CloudWatch logs exporter. Omitting a credential keeps the stored one.

type CloudWatchLogsExporter added in v0.25.0

type CloudWatchLogsExporter struct {
	// Config Where a CloudWatch logs exporter writes, and how it authenticates.
	Config CloudWatchLogsConfig `json:"config"`

	// Created When the exporter was created.
	//
	// Example: 2026-01-15T10:30:00Z
	Created time.Time `json:"created"`

	// ExporterID The unique identifier for the exporter.
	//
	// Example: 3f7c1c9a-0d2e-4d76-9a1b-5c8e0f2a7b31
	ExporterID openapi_types.UUID `json:"exporter_id"`

	// Name A human-readable name for the exporter. Not used to identify it.
	//
	// Example: prod-metrics-to-datadog
	Name string `json:"name"`

	// ProjectID The project the exporter belongs to.
	//
	// Example: rp1pz7uyae
	ProjectID string `json:"project_id"`

	// RegionCode The cloud region the exporter runs in. Only services in this region
	// can be attached to it, and it cannot be changed afterwards.
	//
	//
	// Example: us-east-1
	RegionCode string `json:"region_code"`

	// Type Always `CLOUDWATCH_LOGS`.
	Type CloudWatchLogsExporterType `json:"type"`
}

CloudWatchLogsExporter An exporter that sends service logs to Amazon CloudWatch.

type CloudWatchLogsExporterCreate added in v0.25.0

type CloudWatchLogsExporterCreate struct {
	// Config Where a CloudWatch logs exporter writes, and how it authenticates.
	Config CloudWatchLogsConfig `json:"config"`

	// Name A human-readable name for the exporter.
	//
	// Example: prod-metrics-to-datadog
	Name string `json:"name"`

	// RegionCode The cloud region to create the exporter in. Only services in this
	// region can be attached to it, and it cannot be changed afterwards.
	//
	//
	// Example: us-east-1
	RegionCode string `json:"region_code"`

	// Type Always `CLOUDWATCH_LOGS`.
	Type CloudWatchLogsExporterCreateType `json:"type"`
}

CloudWatchLogsExporterCreate Parameters for creating a CloudWatch logs exporter.

type CloudWatchLogsExporterCreateType added in v0.25.0

type CloudWatchLogsExporterCreateType string

CloudWatchLogsExporterCreateType Always `CLOUDWATCH_LOGS`.

const (
	CloudWatchLogsExporterCreateTypeCLOUDWATCHLOGS CloudWatchLogsExporterCreateType = "CLOUDWATCH_LOGS"
)

Defines values for CloudWatchLogsExporterCreateType.

func (CloudWatchLogsExporterCreateType) Valid added in v0.25.0

Valid indicates whether the value is a known member of the CloudWatchLogsExporterCreateType enum.

type CloudWatchLogsExporterType added in v0.25.0

type CloudWatchLogsExporterType string

CloudWatchLogsExporterType Always `CLOUDWATCH_LOGS`.

const (
	CloudWatchLogsExporterTypeCLOUDWATCHLOGS CloudWatchLogsExporterType = "CLOUDWATCH_LOGS"
)

Defines values for CloudWatchLogsExporterType.

func (CloudWatchLogsExporterType) Valid added in v0.25.0

func (e CloudWatchLogsExporterType) Valid() bool

Valid indicates whether the value is a known member of the CloudWatchLogsExporterType enum.

type CloudWatchLogsExporterUpdate added in v0.25.0

type CloudWatchLogsExporterUpdate struct {
	// Config A replacement configuration for a CloudWatch logs exporter. Omitting
	// a credential keeps the stored one.
	Config *CloudWatchLogsConfigUpdate `json:"config,omitempty"`

	// Name A new human-readable name for the exporter.
	//
	// Example: prod-metrics-to-datadog
	Name *string `json:"name,omitempty"`

	// Type Always `CLOUDWATCH_LOGS`.
	Type CloudWatchLogsExporterUpdateType `json:"type"`
}

CloudWatchLogsExporterUpdate Parameters for updating a CloudWatch logs exporter.

type CloudWatchLogsExporterUpdateType added in v0.25.0

type CloudWatchLogsExporterUpdateType string

CloudWatchLogsExporterUpdateType Always `CLOUDWATCH_LOGS`.

const (
	CloudWatchLogsExporterUpdateTypeCLOUDWATCHLOGS CloudWatchLogsExporterUpdateType = "CLOUDWATCH_LOGS"
)

Defines values for CloudWatchLogsExporterUpdateType.

func (CloudWatchLogsExporterUpdateType) Valid added in v0.25.0

Valid indicates whether the value is a known member of the CloudWatchLogsExporterUpdateType enum.

type CloudWatchMetricsConfig added in v0.25.0

type CloudWatchMetricsConfig struct {
	// AwsRegion The AWS region to publish metrics to. Independent of the
	// exporter's own `region_code`.
	//
	//
	// Example: us-east-1
	AwsRegion string `json:"aws_region"`

	// Credentials How Tiger Cloud authenticates to AWS.
	Credentials AWSCredentials `json:"credentials"`

	// IncludePgMetrics Include PostgreSQL database metrics, such as per-table and
	// per-index statistics, alongside the service's operational metrics.
	// This increases the volume of metrics sent, which may cost more at
	// the destination.
	//
	//
	// Example: true
	IncludePgMetrics *bool `json:"include_pg_metrics,omitempty"`

	// LogGroupName The CloudWatch log group the Embedded Metric Format events are
	// written to. It must already exist in your AWS account.
	//
	//
	// Example: /tigerdata/prod
	LogGroupName string `json:"log_group_name"`

	// LogStreamName The log stream within the log group to write to.
	//
	// Example: orders-db
	LogStreamName string `json:"log_stream_name"`

	// Namespace The CloudWatch metric namespace to publish under.
	//
	// Example: TigerData/Prod
	Namespace string `json:"namespace"`
}

CloudWatchMetricsConfig Where a CloudWatch metrics exporter publishes, and how it authenticates.

Metrics are published in AWS Embedded Metric Format, which delivers them as log events that CloudWatch extracts metrics from. The log group is how the data arrives; the namespace is where the extracted metrics land.

type CloudWatchMetricsConfigUpdate added in v0.25.0

type CloudWatchMetricsConfigUpdate struct {
	// AwsRegion The AWS region to publish metrics to.
	//
	// Example: us-east-1
	AwsRegion string `json:"aws_region"`

	// Credentials Replacement AWS credentials. Switching between the two kinds is
	// allowed: sending `IAM_ROLE` discards any stored access key pair, and
	// sending `ACCESS_KEY` discards any stored role.
	Credentials AWSCredentialsUpdate `json:"credentials"`

	// IncludePgMetrics Whether to include PostgreSQL database metrics, such as
	// per-table and per-index statistics, alongside the service's
	// operational metrics. Send the value you want the exporter to
	// have, not only the value you are changing.
	//
	//
	// Example: true
	IncludePgMetrics bool `json:"include_pg_metrics"`

	// LogGroupName The CloudWatch log group used alongside the metric namespace.
	//
	// Example: /tigerdata/prod
	LogGroupName string `json:"log_group_name"`

	// LogStreamName The log stream within the log group.
	//
	// Example: orders-db
	LogStreamName string `json:"log_stream_name"`

	// Namespace The CloudWatch metric namespace to publish under.
	//
	// Example: TigerData/Prod
	Namespace string `json:"namespace"`
}

CloudWatchMetricsConfigUpdate A replacement configuration for a CloudWatch metrics exporter. Omitting a credential keeps the stored one.

type CloudWatchMetricsExporter added in v0.25.0

type CloudWatchMetricsExporter struct {
	// Config Where a CloudWatch metrics exporter publishes, and how it authenticates.
	//
	// Metrics are published in AWS Embedded Metric Format, which delivers them
	// as log events that CloudWatch extracts metrics from. The log group is how
	// the data arrives; the namespace is where the extracted metrics land.
	Config CloudWatchMetricsConfig `json:"config"`

	// Created When the exporter was created.
	//
	// Example: 2026-01-15T10:30:00Z
	Created time.Time `json:"created"`

	// ExporterID The unique identifier for the exporter.
	//
	// Example: 3f7c1c9a-0d2e-4d76-9a1b-5c8e0f2a7b31
	ExporterID openapi_types.UUID `json:"exporter_id"`

	// Name A human-readable name for the exporter. Not used to identify it.
	//
	// Example: prod-metrics-to-datadog
	Name string `json:"name"`

	// ProjectID The project the exporter belongs to.
	//
	// Example: rp1pz7uyae
	ProjectID string `json:"project_id"`

	// RegionCode The cloud region the exporter runs in. Only services in this region
	// can be attached to it, and it cannot be changed afterwards.
	//
	//
	// Example: us-east-1
	RegionCode string `json:"region_code"`

	// Type Always `CLOUDWATCH_METRICS`.
	Type CloudWatchMetricsExporterType `json:"type"`
}

CloudWatchMetricsExporter An exporter that sends service metrics to Amazon CloudWatch.

type CloudWatchMetricsExporterCreate added in v0.25.0

type CloudWatchMetricsExporterCreate struct {
	// Config Where a CloudWatch metrics exporter publishes, and how it authenticates.
	//
	// Metrics are published in AWS Embedded Metric Format, which delivers them
	// as log events that CloudWatch extracts metrics from. The log group is how
	// the data arrives; the namespace is where the extracted metrics land.
	Config CloudWatchMetricsConfig `json:"config"`

	// Name A human-readable name for the exporter.
	//
	// Example: prod-metrics-to-datadog
	Name string `json:"name"`

	// RegionCode The cloud region to create the exporter in. Only services in this
	// region can be attached to it, and it cannot be changed afterwards.
	//
	//
	// Example: us-east-1
	RegionCode string `json:"region_code"`

	// Type Always `CLOUDWATCH_METRICS`.
	Type CloudWatchMetricsExporterCreateType `json:"type"`
}

CloudWatchMetricsExporterCreate Parameters for creating a CloudWatch metrics exporter.

type CloudWatchMetricsExporterCreateType added in v0.25.0

type CloudWatchMetricsExporterCreateType string

CloudWatchMetricsExporterCreateType Always `CLOUDWATCH_METRICS`.

const (
	CloudWatchMetricsExporterCreateTypeCLOUDWATCHMETRICS CloudWatchMetricsExporterCreateType = "CLOUDWATCH_METRICS"
)

Defines values for CloudWatchMetricsExporterCreateType.

func (CloudWatchMetricsExporterCreateType) Valid added in v0.25.0

Valid indicates whether the value is a known member of the CloudWatchMetricsExporterCreateType enum.

type CloudWatchMetricsExporterType added in v0.25.0

type CloudWatchMetricsExporterType string

CloudWatchMetricsExporterType Always `CLOUDWATCH_METRICS`.

const (
	CloudWatchMetricsExporterTypeCLOUDWATCHMETRICS CloudWatchMetricsExporterType = "CLOUDWATCH_METRICS"
)

Defines values for CloudWatchMetricsExporterType.

func (CloudWatchMetricsExporterType) Valid added in v0.25.0

Valid indicates whether the value is a known member of the CloudWatchMetricsExporterType enum.

type CloudWatchMetricsExporterUpdate added in v0.25.0

type CloudWatchMetricsExporterUpdate struct {
	// Config A replacement configuration for a CloudWatch metrics exporter.
	// Omitting a credential keeps the stored one.
	Config *CloudWatchMetricsConfigUpdate `json:"config,omitempty"`

	// Name A new human-readable name for the exporter.
	//
	// Example: prod-metrics-to-datadog
	Name *string `json:"name,omitempty"`

	// Type Always `CLOUDWATCH_METRICS`.
	Type CloudWatchMetricsExporterUpdateType `json:"type"`
}

CloudWatchMetricsExporterUpdate Parameters for updating a CloudWatch metrics exporter.

type CloudWatchMetricsExporterUpdateType added in v0.25.0

type CloudWatchMetricsExporterUpdateType string

CloudWatchMetricsExporterUpdateType Always `CLOUDWATCH_METRICS`.

const (
	CloudWatchMetricsExporterUpdateTypeCLOUDWATCHMETRICS CloudWatchMetricsExporterUpdateType = "CLOUDWATCH_METRICS"
)

Defines values for CloudWatchMetricsExporterUpdateType.

func (CloudWatchMetricsExporterUpdateType) Valid added in v0.25.0

Valid indicates whether the value is a known member of the CloudWatchMetricsExporterUpdateType enum.

type ConnectionPooler

type ConnectionPooler struct {
	// Endpoint A network endpoint for connecting to a service.
	Endpoint *Endpoint `json:"endpoint,omitempty"`
}

ConnectionPooler Connection pooler configuration for a service.

type CreateAllowListJSONRequestBody added in v0.25.0

type CreateAllowListJSONRequestBody = AllowListCreate

CreateAllowListJSONRequestBody defines body for CreateAllowList for application/json ContentType.

type CreateAllowListResponse added in v0.25.0

type CreateAllowListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *AllowList
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseCreateAllowListResponse added in v0.25.0

func ParseCreateAllowListResponse(rsp *http.Response) (*CreateAllowListResponse, error)

ParseCreateAllowListResponse parses an HTTP response from a CreateAllowListWithResponse call

func (CreateAllowListResponse) ContentType added in v0.25.0

func (r CreateAllowListResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateAllowListResponse) GetBody added in v0.25.0

func (r CreateAllowListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateAllowListResponse) GetJSON4XX added in v0.25.0

func (r CreateAllowListResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (CreateAllowListResponse) GetJSON201 added in v0.25.0

func (r CreateAllowListResponse) GetJSON201() *AllowList

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateAllowListResponse) Status added in v0.25.0

func (r CreateAllowListResponse) Status() string

Status returns HTTPResponse.Status

func (CreateAllowListResponse) StatusCode added in v0.25.0

func (r CreateAllowListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateBackupRegionJSONRequestBody added in v0.25.0

type CreateBackupRegionJSONRequestBody = BackupRegionCreate

CreateBackupRegionJSONRequestBody defines body for CreateBackupRegion for application/json ContentType.

type CreateBackupRegionResponse added in v0.25.0

type CreateBackupRegionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *BackupRegion
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseCreateBackupRegionResponse added in v0.25.0

func ParseCreateBackupRegionResponse(rsp *http.Response) (*CreateBackupRegionResponse, error)

ParseCreateBackupRegionResponse parses an HTTP response from a CreateBackupRegionWithResponse call

func (CreateBackupRegionResponse) ContentType added in v0.25.0

func (r CreateBackupRegionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateBackupRegionResponse) GetBody added in v0.25.0

func (r CreateBackupRegionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateBackupRegionResponse) GetJSON4XX added in v0.25.0

func (r CreateBackupRegionResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (CreateBackupRegionResponse) GetJSON201 added in v0.25.0

func (r CreateBackupRegionResponse) GetJSON201() *BackupRegion

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateBackupRegionResponse) Status added in v0.25.0

Status returns HTTPResponse.Status

func (CreateBackupRegionResponse) StatusCode added in v0.25.0

func (r CreateBackupRegionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateExporterJSONRequestBody added in v0.25.0

type CreateExporterJSONRequestBody = ExporterCreate

CreateExporterJSONRequestBody defines body for CreateExporter for application/json ContentType.

type CreateExporterResponse added in v0.25.0

type CreateExporterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Exporter
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseCreateExporterResponse added in v0.25.0

func ParseCreateExporterResponse(rsp *http.Response) (*CreateExporterResponse, error)

ParseCreateExporterResponse parses an HTTP response from a CreateExporterWithResponse call

func (CreateExporterResponse) ContentType added in v0.25.0

func (r CreateExporterResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateExporterResponse) GetBody added in v0.25.0

func (r CreateExporterResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateExporterResponse) GetJSON4XX added in v0.25.0

func (r CreateExporterResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (CreateExporterResponse) GetJSON201 added in v0.25.0

func (r CreateExporterResponse) GetJSON201() *Exporter

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateExporterResponse) Status added in v0.25.0

func (r CreateExporterResponse) Status() string

Status returns HTTPResponse.Status

func (CreateExporterResponse) StatusCode added in v0.25.0

func (r CreateExporterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateReplicaSetJSONRequestBody

type CreateReplicaSetJSONRequestBody = ReadReplicaSetCreate

CreateReplicaSetJSONRequestBody defines body for CreateReplicaSet for application/json ContentType.

type CreateReplicaSetResponse

type CreateReplicaSetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *ReadReplicaSet
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseCreateReplicaSetResponse

func ParseCreateReplicaSetResponse(rsp *http.Response) (*CreateReplicaSetResponse, error)

ParseCreateReplicaSetResponse parses an HTTP response from a CreateReplicaSetWithResponse call

func (CreateReplicaSetResponse) ContentType added in v0.24.0

func (r CreateReplicaSetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateReplicaSetResponse) GetBody added in v0.24.0

func (r CreateReplicaSetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateReplicaSetResponse) GetJSON4XX added in v0.24.0

func (r CreateReplicaSetResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (CreateReplicaSetResponse) GetJSON202 added in v0.24.0

func (r CreateReplicaSetResponse) GetJSON202() *ReadReplicaSet

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (CreateReplicaSetResponse) Status

func (r CreateReplicaSetResponse) Status() string

Status returns HTTPResponse.Status

func (CreateReplicaSetResponse) StatusCode

func (r CreateReplicaSetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateServiceJSONRequestBody

type CreateServiceJSONRequestBody = ServiceCreate

CreateServiceJSONRequestBody defines body for CreateService for application/json ContentType.

type CreateServiceResponse

type CreateServiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *Service
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseCreateServiceResponse

func ParseCreateServiceResponse(rsp *http.Response) (*CreateServiceResponse, error)

ParseCreateServiceResponse parses an HTTP response from a CreateServiceWithResponse call

func (CreateServiceResponse) ContentType added in v0.24.0

func (r CreateServiceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateServiceResponse) GetBody added in v0.24.0

func (r CreateServiceResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateServiceResponse) GetJSON4XX added in v0.24.0

func (r CreateServiceResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (CreateServiceResponse) GetJSON202 added in v0.24.0

func (r CreateServiceResponse) GetJSON202() *Service

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (CreateServiceResponse) Status

func (r CreateServiceResponse) Status() string

Status returns HTTPResponse.Status

func (CreateServiceResponse) StatusCode

func (r CreateServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateVPCJSONRequestBody

type CreateVPCJSONRequestBody = VPCCreate

CreateVPCJSONRequestBody defines body for CreateVPC for application/json ContentType.

type CreateVPCPeeringJSONRequestBody

type CreateVPCPeeringJSONRequestBody = PeeringCreate

CreateVPCPeeringJSONRequestBody defines body for CreateVPCPeering for application/json ContentType.

type CreateVPCPeeringResponse

type CreateVPCPeeringResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Peering
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseCreateVPCPeeringResponse

func ParseCreateVPCPeeringResponse(rsp *http.Response) (*CreateVPCPeeringResponse, error)

ParseCreateVPCPeeringResponse parses an HTTP response from a CreateVPCPeeringWithResponse call

func (CreateVPCPeeringResponse) ContentType added in v0.24.0

func (r CreateVPCPeeringResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateVPCPeeringResponse) GetBody added in v0.24.0

func (r CreateVPCPeeringResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateVPCPeeringResponse) GetJSON4XX added in v0.24.0

func (r CreateVPCPeeringResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (CreateVPCPeeringResponse) GetJSON201 added in v0.24.0

func (r CreateVPCPeeringResponse) GetJSON201() *Peering

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateVPCPeeringResponse) Status

func (r CreateVPCPeeringResponse) Status() string

Status returns HTTPResponse.Status

func (CreateVPCPeeringResponse) StatusCode

func (r CreateVPCPeeringResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateVPCResponse

type CreateVPCResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *VPC
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseCreateVPCResponse

func ParseCreateVPCResponse(rsp *http.Response) (*CreateVPCResponse, error)

ParseCreateVPCResponse parses an HTTP response from a CreateVPCWithResponse call

func (CreateVPCResponse) ContentType added in v0.24.0

func (r CreateVPCResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateVPCResponse) GetBody added in v0.24.0

func (r CreateVPCResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateVPCResponse) GetJSON4XX added in v0.24.0

func (r CreateVPCResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (CreateVPCResponse) GetJSON201 added in v0.24.0

func (r CreateVPCResponse) GetJSON201() *VPC

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateVPCResponse) Status

func (r CreateVPCResponse) Status() string

Status returns HTTPResponse.Status

func (CreateVPCResponse) StatusCode

func (r CreateVPCResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DataTiering added in v0.25.0

type DataTiering struct {
	// Enabled Whether tiered storage is enabled for this service.
	//
	// Example: false
	Enabled *bool `json:"enabled,omitempty"`
}

DataTiering Data tiering configuration for a service.

type DatadogMetricsConfig added in v0.25.0

type DatadogMetricsConfig struct {
	// APIKey A Datadog API key with permission to submit metrics.
	//
	// Example: 0123456789abcdef0123456789abcdef
	APIKey *string `json:"api_key,omitempty"`

	// IncludePgMetrics Include PostgreSQL database metrics, such as per-table and
	// per-index statistics, alongside the service's operational metrics.
	// This increases the volume of metrics sent, which may cost more at
	// the destination.
	//
	//
	// Example: true
	IncludePgMetrics *bool `json:"include_pg_metrics,omitempty"`

	// Site The Datadog site to send to. It must match the site your API key
	// belongs to.
	//
	//
	// Example: datadoghq.eu
	Site *string `json:"site,omitempty"`
}

DatadogMetricsConfig Which Datadog account a service's metrics are sent to.

type DatadogMetricsConfigUpdate added in v0.25.0

type DatadogMetricsConfigUpdate struct {
	// APIKey A replacement Datadog API key.
	//
	// Example: 0123456789abcdef0123456789abcdef
	APIKey *string `json:"api_key,omitempty"`

	// IncludePgMetrics Whether to include PostgreSQL database metrics, such as
	// per-table and per-index statistics, alongside the service's
	// operational metrics. Send the value you want the exporter to
	// have, not only the value you are changing.
	//
	//
	// Example: true
	IncludePgMetrics bool `json:"include_pg_metrics"`

	// Site The Datadog site to send to. It must match the site your API
	// key belongs to.
	//
	//
	// Example: datadoghq.eu
	Site string `json:"site"`
}

DatadogMetricsConfigUpdate A replacement configuration for a Datadog metrics exporter. Omitting `api_key` keeps the stored one.

type DatadogMetricsExporter added in v0.25.0

type DatadogMetricsExporter struct {
	// Config Which Datadog account a service's metrics are sent to.
	Config DatadogMetricsConfig `json:"config"`

	// Created When the exporter was created.
	//
	// Example: 2026-01-15T10:30:00Z
	Created time.Time `json:"created"`

	// ExporterID The unique identifier for the exporter.
	//
	// Example: 3f7c1c9a-0d2e-4d76-9a1b-5c8e0f2a7b31
	ExporterID openapi_types.UUID `json:"exporter_id"`

	// Name A human-readable name for the exporter. Not used to identify it.
	//
	// Example: prod-metrics-to-datadog
	Name string `json:"name"`

	// ProjectID The project the exporter belongs to.
	//
	// Example: rp1pz7uyae
	ProjectID string `json:"project_id"`

	// RegionCode The cloud region the exporter runs in. Only services in this region
	// can be attached to it, and it cannot be changed afterwards.
	//
	//
	// Example: us-east-1
	RegionCode string `json:"region_code"`

	// Type Always `DATADOG_METRICS`.
	Type DatadogMetricsExporterType `json:"type"`
}

DatadogMetricsExporter An exporter that sends service metrics to Datadog.

type DatadogMetricsExporterCreate added in v0.25.0

type DatadogMetricsExporterCreate struct {
	// Config Which Datadog account a service's metrics are sent to.
	Config DatadogMetricsConfig `json:"config"`

	// Name A human-readable name for the exporter.
	//
	// Example: prod-metrics-to-datadog
	Name string `json:"name"`

	// RegionCode The cloud region to create the exporter in. Only services in this
	// region can be attached to it, and it cannot be changed afterwards.
	//
	//
	// Example: us-east-1
	RegionCode string `json:"region_code"`

	// Type Always `DATADOG_METRICS`.
	Type DatadogMetricsExporterCreateType `json:"type"`
}

DatadogMetricsExporterCreate Parameters for creating a Datadog metrics exporter.

type DatadogMetricsExporterCreateType added in v0.25.0

type DatadogMetricsExporterCreateType string

DatadogMetricsExporterCreateType Always `DATADOG_METRICS`.

const (
	DatadogMetricsExporterCreateTypeDATADOGMETRICS DatadogMetricsExporterCreateType = "DATADOG_METRICS"
)

Defines values for DatadogMetricsExporterCreateType.

func (DatadogMetricsExporterCreateType) Valid added in v0.25.0

Valid indicates whether the value is a known member of the DatadogMetricsExporterCreateType enum.

type DatadogMetricsExporterType added in v0.25.0

type DatadogMetricsExporterType string

DatadogMetricsExporterType Always `DATADOG_METRICS`.

const (
	DatadogMetricsExporterTypeDATADOGMETRICS DatadogMetricsExporterType = "DATADOG_METRICS"
)

Defines values for DatadogMetricsExporterType.

func (DatadogMetricsExporterType) Valid added in v0.25.0

func (e DatadogMetricsExporterType) Valid() bool

Valid indicates whether the value is a known member of the DatadogMetricsExporterType enum.

type DatadogMetricsExporterUpdate added in v0.25.0

type DatadogMetricsExporterUpdate struct {
	// Config A replacement configuration for a Datadog metrics exporter. Omitting
	// `api_key` keeps the stored one.
	Config *DatadogMetricsConfigUpdate `json:"config,omitempty"`

	// Name A new human-readable name for the exporter.
	//
	// Example: prod-metrics-to-datadog
	Name *string `json:"name,omitempty"`

	// Type Always `DATADOG_METRICS`.
	Type DatadogMetricsExporterUpdateType `json:"type"`
}

DatadogMetricsExporterUpdate Parameters for updating a Datadog metrics exporter.

type DatadogMetricsExporterUpdateType added in v0.25.0

type DatadogMetricsExporterUpdateType string

DatadogMetricsExporterUpdateType Always `DATADOG_METRICS`.

const (
	DatadogMetricsExporterUpdateTypeDATADOGMETRICS DatadogMetricsExporterUpdateType = "DATADOG_METRICS"
)

Defines values for DatadogMetricsExporterUpdateType.

func (DatadogMetricsExporterUpdateType) Valid added in v0.25.0

Valid indicates whether the value is a known member of the DatadogMetricsExporterUpdateType enum.

type DeleteAllowListResponse added in v0.25.0

type DeleteAllowListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseDeleteAllowListResponse added in v0.25.0

func ParseDeleteAllowListResponse(rsp *http.Response) (*DeleteAllowListResponse, error)

ParseDeleteAllowListResponse parses an HTTP response from a DeleteAllowListWithResponse call

func (DeleteAllowListResponse) ContentType added in v0.25.0

func (r DeleteAllowListResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteAllowListResponse) GetBody added in v0.25.0

func (r DeleteAllowListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteAllowListResponse) GetJSON4XX added in v0.25.0

func (r DeleteAllowListResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (DeleteAllowListResponse) Status added in v0.25.0

func (r DeleteAllowListResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteAllowListResponse) StatusCode added in v0.25.0

func (r DeleteAllowListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteBackupRegionResponse added in v0.25.0

type DeleteBackupRegionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseDeleteBackupRegionResponse added in v0.25.0

func ParseDeleteBackupRegionResponse(rsp *http.Response) (*DeleteBackupRegionResponse, error)

ParseDeleteBackupRegionResponse parses an HTTP response from a DeleteBackupRegionWithResponse call

func (DeleteBackupRegionResponse) ContentType added in v0.25.0

func (r DeleteBackupRegionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteBackupRegionResponse) GetBody added in v0.25.0

func (r DeleteBackupRegionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteBackupRegionResponse) GetJSON4XX added in v0.25.0

func (r DeleteBackupRegionResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (DeleteBackupRegionResponse) Status added in v0.25.0

Status returns HTTPResponse.Status

func (DeleteBackupRegionResponse) StatusCode added in v0.25.0

func (r DeleteBackupRegionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteExporterResponse added in v0.25.0

type DeleteExporterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseDeleteExporterResponse added in v0.25.0

func ParseDeleteExporterResponse(rsp *http.Response) (*DeleteExporterResponse, error)

ParseDeleteExporterResponse parses an HTTP response from a DeleteExporterWithResponse call

func (DeleteExporterResponse) ContentType added in v0.25.0

func (r DeleteExporterResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteExporterResponse) GetBody added in v0.25.0

func (r DeleteExporterResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteExporterResponse) GetJSON4XX added in v0.25.0

func (r DeleteExporterResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (DeleteExporterResponse) Status added in v0.25.0

func (r DeleteExporterResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteExporterResponse) StatusCode added in v0.25.0

func (r DeleteExporterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteReplicaSetResponse

type DeleteReplicaSetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseDeleteReplicaSetResponse

func ParseDeleteReplicaSetResponse(rsp *http.Response) (*DeleteReplicaSetResponse, error)

ParseDeleteReplicaSetResponse parses an HTTP response from a DeleteReplicaSetWithResponse call

func (DeleteReplicaSetResponse) ContentType added in v0.24.0

func (r DeleteReplicaSetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteReplicaSetResponse) GetBody added in v0.24.0

func (r DeleteReplicaSetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteReplicaSetResponse) GetJSON4XX added in v0.24.0

func (r DeleteReplicaSetResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (DeleteReplicaSetResponse) Status

func (r DeleteReplicaSetResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteReplicaSetResponse) StatusCode

func (r DeleteReplicaSetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteServiceResponse

type DeleteServiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseDeleteServiceResponse

func ParseDeleteServiceResponse(rsp *http.Response) (*DeleteServiceResponse, error)

ParseDeleteServiceResponse parses an HTTP response from a DeleteServiceWithResponse call

func (DeleteServiceResponse) ContentType added in v0.24.0

func (r DeleteServiceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteServiceResponse) GetBody added in v0.24.0

func (r DeleteServiceResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteServiceResponse) GetJSON4XX added in v0.24.0

func (r DeleteServiceResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (DeleteServiceResponse) Status

func (r DeleteServiceResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteServiceResponse) StatusCode

func (r DeleteServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteVPCPeeringResponse

type DeleteVPCPeeringResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseDeleteVPCPeeringResponse

func ParseDeleteVPCPeeringResponse(rsp *http.Response) (*DeleteVPCPeeringResponse, error)

ParseDeleteVPCPeeringResponse parses an HTTP response from a DeleteVPCPeeringWithResponse call

func (DeleteVPCPeeringResponse) ContentType added in v0.24.0

func (r DeleteVPCPeeringResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteVPCPeeringResponse) GetBody added in v0.24.0

func (r DeleteVPCPeeringResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteVPCPeeringResponse) GetJSON4XX added in v0.24.0

func (r DeleteVPCPeeringResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (DeleteVPCPeeringResponse) Status

func (r DeleteVPCPeeringResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteVPCPeeringResponse) StatusCode

func (r DeleteVPCPeeringResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteVPCResponse

type DeleteVPCResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseDeleteVPCResponse

func ParseDeleteVPCResponse(rsp *http.Response) (*DeleteVPCResponse, error)

ParseDeleteVPCResponse parses an HTTP response from a DeleteVPCWithResponse call

func (DeleteVPCResponse) ContentType added in v0.24.0

func (r DeleteVPCResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteVPCResponse) GetBody added in v0.24.0

func (r DeleteVPCResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteVPCResponse) GetJSON4XX added in v0.24.0

func (r DeleteVPCResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (DeleteVPCResponse) Status

func (r DeleteVPCResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteVPCResponse) StatusCode

func (r DeleteVPCResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeployStatus

type DeployStatus string

DeployStatus The current deployment status of the service: - QUEUED: the create request has been submitted and is queued - DELETING: the service is being deleted - CONFIGURING: the service is up but still completing configuration - READY: fully configured and serving traffic - DELETED: the service has been deleted - UNSTABLE: the service was ready but is not currently reachable - PAUSING: the service is being paused - PAUSED: the service is paused (temporarily shut down) - RESUMING: the service is resuming after being paused - UPGRADING: the service is being updated

OPTIMIZING is deprecated and should not be used.

const (
	DeployStatusCONFIGURING DeployStatus = "CONFIGURING"
	DeployStatusDELETED     DeployStatus = "DELETED"
	DeployStatusDELETING    DeployStatus = "DELETING"
	DeployStatusOPTIMIZING  DeployStatus = "OPTIMIZING"
	DeployStatusPAUSED      DeployStatus = "PAUSED"
	DeployStatusPAUSING     DeployStatus = "PAUSING"
	DeployStatusQUEUED      DeployStatus = "QUEUED"
	DeployStatusREADY       DeployStatus = "READY"
	DeployStatusRESUMING    DeployStatus = "RESUMING"
	DeployStatusUNSTABLE    DeployStatus = "UNSTABLE"
	DeployStatusUPGRADING   DeployStatus = "UPGRADING"
)

Defines values for DeployStatus.

func (DeployStatus) Valid added in v0.24.0

func (e DeployStatus) Valid() bool

Valid indicates whether the value is a known member of the DeployStatus enum.

type DetachServiceFromAllowListJSONRequestBody added in v0.25.0

type DetachServiceFromAllowListJSONRequestBody = ServiceAllowListInput

DetachServiceFromAllowListJSONRequestBody defines body for DetachServiceFromAllowList for application/json ContentType.

type DetachServiceFromAllowListResponse added in v0.25.0

type DetachServiceFromAllowListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *Service
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseDetachServiceFromAllowListResponse added in v0.25.0

func ParseDetachServiceFromAllowListResponse(rsp *http.Response) (*DetachServiceFromAllowListResponse, error)

ParseDetachServiceFromAllowListResponse parses an HTTP response from a DetachServiceFromAllowListWithResponse call

func (DetachServiceFromAllowListResponse) ContentType added in v0.25.0

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DetachServiceFromAllowListResponse) GetBody added in v0.25.0

GetBody returns the raw response body bytes

func (DetachServiceFromAllowListResponse) GetJSON4XX added in v0.25.0

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (DetachServiceFromAllowListResponse) GetJSON202 added in v0.25.0

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (DetachServiceFromAllowListResponse) Status added in v0.25.0

Status returns HTTPResponse.Status

func (DetachServiceFromAllowListResponse) StatusCode added in v0.25.0

func (r DetachServiceFromAllowListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DetachServiceFromExporterJSONRequestBody added in v0.25.0

type DetachServiceFromExporterJSONRequestBody = ServiceExporterInput

DetachServiceFromExporterJSONRequestBody defines body for DetachServiceFromExporter for application/json ContentType.

type DetachServiceFromExporterResponse added in v0.25.0

type DetachServiceFromExporterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *Service
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseDetachServiceFromExporterResponse added in v0.25.0

func ParseDetachServiceFromExporterResponse(rsp *http.Response) (*DetachServiceFromExporterResponse, error)

ParseDetachServiceFromExporterResponse parses an HTTP response from a DetachServiceFromExporterWithResponse call

func (DetachServiceFromExporterResponse) ContentType added in v0.25.0

func (r DetachServiceFromExporterResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DetachServiceFromExporterResponse) GetBody added in v0.25.0

GetBody returns the raw response body bytes

func (DetachServiceFromExporterResponse) GetJSON4XX added in v0.25.0

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (DetachServiceFromExporterResponse) GetJSON202 added in v0.25.0

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (DetachServiceFromExporterResponse) Status added in v0.25.0

Status returns HTTPResponse.Status

func (DetachServiceFromExporterResponse) StatusCode added in v0.25.0

func (r DetachServiceFromExporterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DetachServiceFromVPCJSONRequestBody

type DetachServiceFromVPCJSONRequestBody = ServiceVPCInput

DetachServiceFromVPCJSONRequestBody defines body for DetachServiceFromVPC for application/json ContentType.

type DetachServiceFromVPCResponse

type DetachServiceFromVPCResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *SuccessMessage
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseDetachServiceFromVPCResponse

func ParseDetachServiceFromVPCResponse(rsp *http.Response) (*DetachServiceFromVPCResponse, error)

ParseDetachServiceFromVPCResponse parses an HTTP response from a DetachServiceFromVPCWithResponse call

func (DetachServiceFromVPCResponse) ContentType added in v0.24.0

func (r DetachServiceFromVPCResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DetachServiceFromVPCResponse) GetBody added in v0.24.0

func (r DetachServiceFromVPCResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DetachServiceFromVPCResponse) GetJSON4XX added in v0.24.0

func (r DetachServiceFromVPCResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (DetachServiceFromVPCResponse) GetJSON202 added in v0.24.0

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (DetachServiceFromVPCResponse) Status

Status returns HTTPResponse.Status

func (DetachServiceFromVPCResponse) StatusCode

func (r DetachServiceFromVPCResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DisablePoolerResponse

type DisablePoolerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SuccessMessage
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseDisablePoolerResponse

func ParseDisablePoolerResponse(rsp *http.Response) (*DisablePoolerResponse, error)

ParseDisablePoolerResponse parses an HTTP response from a DisablePoolerWithResponse call

func (DisablePoolerResponse) ContentType added in v0.24.0

func (r DisablePoolerResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DisablePoolerResponse) GetBody added in v0.24.0

func (r DisablePoolerResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DisablePoolerResponse) GetJSON4XX added in v0.24.0

func (r DisablePoolerResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (DisablePoolerResponse) GetJSON200 added in v0.24.0

func (r DisablePoolerResponse) GetJSON200() *SuccessMessage

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DisablePoolerResponse) Status

func (r DisablePoolerResponse) Status() string

Status returns HTTPResponse.Status

func (DisablePoolerResponse) StatusCode

func (r DisablePoolerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DisableReplicaPoolerResponse

type DisableReplicaPoolerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SuccessMessage
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseDisableReplicaPoolerResponse

func ParseDisableReplicaPoolerResponse(rsp *http.Response) (*DisableReplicaPoolerResponse, error)

ParseDisableReplicaPoolerResponse parses an HTTP response from a DisableReplicaPoolerWithResponse call

func (DisableReplicaPoolerResponse) ContentType added in v0.24.0

func (r DisableReplicaPoolerResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DisableReplicaPoolerResponse) GetBody added in v0.24.0

func (r DisableReplicaPoolerResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DisableReplicaPoolerResponse) GetJSON4XX added in v0.24.0

func (r DisableReplicaPoolerResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (DisableReplicaPoolerResponse) GetJSON200 added in v0.24.0

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DisableReplicaPoolerResponse) Status

Status returns HTTPResponse.Status

func (DisableReplicaPoolerResponse) StatusCode

func (r DisableReplicaPoolerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EnableDataTieringResponse added in v0.25.0

type EnableDataTieringResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Service
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseEnableDataTieringResponse added in v0.25.0

func ParseEnableDataTieringResponse(rsp *http.Response) (*EnableDataTieringResponse, error)

ParseEnableDataTieringResponse parses an HTTP response from a EnableDataTieringWithResponse call

func (EnableDataTieringResponse) ContentType added in v0.25.0

func (r EnableDataTieringResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (EnableDataTieringResponse) GetBody added in v0.25.0

func (r EnableDataTieringResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (EnableDataTieringResponse) GetJSON4XX added in v0.25.0

func (r EnableDataTieringResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (EnableDataTieringResponse) GetJSON200 added in v0.25.0

func (r EnableDataTieringResponse) GetJSON200() *Service

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (EnableDataTieringResponse) Status added in v0.25.0

func (r EnableDataTieringResponse) Status() string

Status returns HTTPResponse.Status

func (EnableDataTieringResponse) StatusCode added in v0.25.0

func (r EnableDataTieringResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EnablePoolerResponse

type EnablePoolerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SuccessMessage
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseEnablePoolerResponse

func ParseEnablePoolerResponse(rsp *http.Response) (*EnablePoolerResponse, error)

ParseEnablePoolerResponse parses an HTTP response from a EnablePoolerWithResponse call

func (EnablePoolerResponse) ContentType added in v0.24.0

func (r EnablePoolerResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (EnablePoolerResponse) GetBody added in v0.24.0

func (r EnablePoolerResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (EnablePoolerResponse) GetJSON4XX added in v0.24.0

func (r EnablePoolerResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (EnablePoolerResponse) GetJSON200 added in v0.24.0

func (r EnablePoolerResponse) GetJSON200() *SuccessMessage

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (EnablePoolerResponse) Status

func (r EnablePoolerResponse) Status() string

Status returns HTTPResponse.Status

func (EnablePoolerResponse) StatusCode

func (r EnablePoolerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EnableReplicaPoolerResponse

type EnableReplicaPoolerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SuccessMessage
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseEnableReplicaPoolerResponse

func ParseEnableReplicaPoolerResponse(rsp *http.Response) (*EnableReplicaPoolerResponse, error)

ParseEnableReplicaPoolerResponse parses an HTTP response from a EnableReplicaPoolerWithResponse call

func (EnableReplicaPoolerResponse) ContentType added in v0.24.0

func (r EnableReplicaPoolerResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (EnableReplicaPoolerResponse) GetBody added in v0.24.0

func (r EnableReplicaPoolerResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (EnableReplicaPoolerResponse) GetJSON4XX added in v0.24.0

func (r EnableReplicaPoolerResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (EnableReplicaPoolerResponse) GetJSON200 added in v0.24.0

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (EnableReplicaPoolerResponse) Status

Status returns HTTPResponse.Status

func (EnableReplicaPoolerResponse) StatusCode

func (r EnableReplicaPoolerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Endpoint

type Endpoint struct {
	// Host The hostname of the endpoint.
	//
	// Example: i4wmp4crev.oec7sxsza2.tsdb.cloud.timescale.com
	Host *string `json:"host,omitempty"`

	// Port The port of the endpoint.
	//
	// Example: 32625
	Port *int `json:"port,omitempty"`
}

Endpoint A network endpoint for connecting to a service.

type EnvironmentTag

type EnvironmentTag string

EnvironmentTag The environment tag for the service: - DEV: a development environment - PROD: a production environment

const (
	EnvironmentTagDEV  EnvironmentTag = "DEV"
	EnvironmentTagPROD EnvironmentTag = "PROD"
)

Defines values for EnvironmentTag.

func (EnvironmentTag) Valid added in v0.24.0

func (e EnvironmentTag) Valid() bool

Valid indicates whether the value is a known member of the EnvironmentTag enum.

type Error

type Error struct {
	// Code A machine-readable error code.
	//
	// Example: NOT_FOUND
	Code *string `json:"code,omitempty"`

	// Message A human-readable error message.
	//
	// Example: The requested service could not be found.
	Message *string `json:"message,omitempty"`
}

Error An error returned when a request cannot be completed.

func (*Error) Error

func (e *Error) Error() string

type Exporter added in v0.25.0

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

Exporter An exporter that sends a service's logs or metrics to an external monitoring system. `type` determines the shape of `config`.

func (Exporter) AsAzureMonitorMetricsExporter added in v0.25.0

func (t Exporter) AsAzureMonitorMetricsExporter() (AzureMonitorMetricsExporter, error)

AsAzureMonitorMetricsExporter returns the union data inside the Exporter as a AzureMonitorMetricsExporter

func (Exporter) AsCloudWatchLogsExporter added in v0.25.0

func (t Exporter) AsCloudWatchLogsExporter() (CloudWatchLogsExporter, error)

AsCloudWatchLogsExporter returns the union data inside the Exporter as a CloudWatchLogsExporter

func (Exporter) AsCloudWatchMetricsExporter added in v0.25.0

func (t Exporter) AsCloudWatchMetricsExporter() (CloudWatchMetricsExporter, error)

AsCloudWatchMetricsExporter returns the union data inside the Exporter as a CloudWatchMetricsExporter

func (Exporter) AsDatadogMetricsExporter added in v0.25.0

func (t Exporter) AsDatadogMetricsExporter() (DatadogMetricsExporter, error)

AsDatadogMetricsExporter returns the union data inside the Exporter as a DatadogMetricsExporter

func (Exporter) AsPrometheusMetricsExporter added in v0.25.0

func (t Exporter) AsPrometheusMetricsExporter() (PrometheusMetricsExporter, error)

AsPrometheusMetricsExporter returns the union data inside the Exporter as a PrometheusMetricsExporter

func (Exporter) Discriminator added in v0.25.0

func (t Exporter) Discriminator() (string, error)

func (*Exporter) FromAzureMonitorMetricsExporter added in v0.25.0

func (t *Exporter) FromAzureMonitorMetricsExporter(v AzureMonitorMetricsExporter) error

FromAzureMonitorMetricsExporter overwrites any union data inside the Exporter as the provided AzureMonitorMetricsExporter

func (*Exporter) FromCloudWatchLogsExporter added in v0.25.0

func (t *Exporter) FromCloudWatchLogsExporter(v CloudWatchLogsExporter) error

FromCloudWatchLogsExporter overwrites any union data inside the Exporter as the provided CloudWatchLogsExporter

func (*Exporter) FromCloudWatchMetricsExporter added in v0.25.0

func (t *Exporter) FromCloudWatchMetricsExporter(v CloudWatchMetricsExporter) error

FromCloudWatchMetricsExporter overwrites any union data inside the Exporter as the provided CloudWatchMetricsExporter

func (*Exporter) FromDatadogMetricsExporter added in v0.25.0

func (t *Exporter) FromDatadogMetricsExporter(v DatadogMetricsExporter) error

FromDatadogMetricsExporter overwrites any union data inside the Exporter as the provided DatadogMetricsExporter

func (*Exporter) FromPrometheusMetricsExporter added in v0.25.0

func (t *Exporter) FromPrometheusMetricsExporter(v PrometheusMetricsExporter) error

FromPrometheusMetricsExporter overwrites any union data inside the Exporter as the provided PrometheusMetricsExporter

func (Exporter) MarshalJSON added in v0.25.0

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

func (*Exporter) MergeAzureMonitorMetricsExporter added in v0.25.0

func (t *Exporter) MergeAzureMonitorMetricsExporter(v AzureMonitorMetricsExporter) error

MergeAzureMonitorMetricsExporter performs a merge with any union data inside the Exporter, using the provided AzureMonitorMetricsExporter

func (*Exporter) MergeCloudWatchLogsExporter added in v0.25.0

func (t *Exporter) MergeCloudWatchLogsExporter(v CloudWatchLogsExporter) error

MergeCloudWatchLogsExporter performs a merge with any union data inside the Exporter, using the provided CloudWatchLogsExporter

func (*Exporter) MergeCloudWatchMetricsExporter added in v0.25.0

func (t *Exporter) MergeCloudWatchMetricsExporter(v CloudWatchMetricsExporter) error

MergeCloudWatchMetricsExporter performs a merge with any union data inside the Exporter, using the provided CloudWatchMetricsExporter

func (*Exporter) MergeDatadogMetricsExporter added in v0.25.0

func (t *Exporter) MergeDatadogMetricsExporter(v DatadogMetricsExporter) error

MergeDatadogMetricsExporter performs a merge with any union data inside the Exporter, using the provided DatadogMetricsExporter

func (*Exporter) MergePrometheusMetricsExporter added in v0.25.0

func (t *Exporter) MergePrometheusMetricsExporter(v PrometheusMetricsExporter) error

MergePrometheusMetricsExporter performs a merge with any union data inside the Exporter, using the provided PrometheusMetricsExporter

func (*Exporter) UnmarshalJSON added in v0.25.0

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

func (Exporter) ValueByDiscriminator added in v0.25.0

func (t Exporter) ValueByDiscriminator() (interface{}, error)

type ExporterBase added in v0.25.0

type ExporterBase struct {
	// Created When the exporter was created.
	//
	// Example: 2026-01-15T10:30:00Z
	Created time.Time `json:"created"`

	// ExporterID The unique identifier for the exporter.
	//
	// Example: 3f7c1c9a-0d2e-4d76-9a1b-5c8e0f2a7b31
	ExporterID openapi_types.UUID `json:"exporter_id"`

	// Name A human-readable name for the exporter. Not used to identify it.
	//
	// Example: prod-metrics-to-datadog
	Name string `json:"name"`

	// ProjectID The project the exporter belongs to.
	//
	// Example: rp1pz7uyae
	ProjectID string `json:"project_id"`

	// RegionCode The cloud region the exporter runs in. Only services in this region
	// can be attached to it, and it cannot be changed afterwards.
	//
	//
	// Example: us-east-1
	RegionCode string `json:"region_code"`

	// Type Where an exporter sends data and what kind of data it sends. Which
	// fields `config` needs depends on the destination and data kind you
	// pick here.
	//
	// `PROMETHEUS_METRICS` is pull rather than push: Tiger Cloud serves an
	// endpoint your Prometheus scrapes, and sends nothing anywhere.
	Type ExporterType `json:"type"`
}

ExporterBase The fields every exporter carries, whatever it sends where.

type ExporterCreate added in v0.25.0

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

ExporterCreate Parameters for creating an exporter. `type` selects the destination and the kind of data sent.

func (ExporterCreate) AsAzureMonitorMetricsExporterCreate added in v0.25.0

func (t ExporterCreate) AsAzureMonitorMetricsExporterCreate() (AzureMonitorMetricsExporterCreate, error)

AsAzureMonitorMetricsExporterCreate returns the union data inside the ExporterCreate as a AzureMonitorMetricsExporterCreate

func (ExporterCreate) AsCloudWatchLogsExporterCreate added in v0.25.0

func (t ExporterCreate) AsCloudWatchLogsExporterCreate() (CloudWatchLogsExporterCreate, error)

AsCloudWatchLogsExporterCreate returns the union data inside the ExporterCreate as a CloudWatchLogsExporterCreate

func (ExporterCreate) AsCloudWatchMetricsExporterCreate added in v0.25.0

func (t ExporterCreate) AsCloudWatchMetricsExporterCreate() (CloudWatchMetricsExporterCreate, error)

AsCloudWatchMetricsExporterCreate returns the union data inside the ExporterCreate as a CloudWatchMetricsExporterCreate

func (ExporterCreate) AsDatadogMetricsExporterCreate added in v0.25.0

func (t ExporterCreate) AsDatadogMetricsExporterCreate() (DatadogMetricsExporterCreate, error)

AsDatadogMetricsExporterCreate returns the union data inside the ExporterCreate as a DatadogMetricsExporterCreate

func (ExporterCreate) AsPrometheusMetricsExporterCreate added in v0.25.0

func (t ExporterCreate) AsPrometheusMetricsExporterCreate() (PrometheusMetricsExporterCreate, error)

AsPrometheusMetricsExporterCreate returns the union data inside the ExporterCreate as a PrometheusMetricsExporterCreate

func (ExporterCreate) Discriminator added in v0.25.0

func (t ExporterCreate) Discriminator() (string, error)

func (*ExporterCreate) FromAzureMonitorMetricsExporterCreate added in v0.25.0

func (t *ExporterCreate) FromAzureMonitorMetricsExporterCreate(v AzureMonitorMetricsExporterCreate) error

FromAzureMonitorMetricsExporterCreate overwrites any union data inside the ExporterCreate as the provided AzureMonitorMetricsExporterCreate

func (*ExporterCreate) FromCloudWatchLogsExporterCreate added in v0.25.0

func (t *ExporterCreate) FromCloudWatchLogsExporterCreate(v CloudWatchLogsExporterCreate) error

FromCloudWatchLogsExporterCreate overwrites any union data inside the ExporterCreate as the provided CloudWatchLogsExporterCreate

func (*ExporterCreate) FromCloudWatchMetricsExporterCreate added in v0.25.0

func (t *ExporterCreate) FromCloudWatchMetricsExporterCreate(v CloudWatchMetricsExporterCreate) error

FromCloudWatchMetricsExporterCreate overwrites any union data inside the ExporterCreate as the provided CloudWatchMetricsExporterCreate

func (*ExporterCreate) FromDatadogMetricsExporterCreate added in v0.25.0

func (t *ExporterCreate) FromDatadogMetricsExporterCreate(v DatadogMetricsExporterCreate) error

FromDatadogMetricsExporterCreate overwrites any union data inside the ExporterCreate as the provided DatadogMetricsExporterCreate

func (*ExporterCreate) FromPrometheusMetricsExporterCreate added in v0.25.0

func (t *ExporterCreate) FromPrometheusMetricsExporterCreate(v PrometheusMetricsExporterCreate) error

FromPrometheusMetricsExporterCreate overwrites any union data inside the ExporterCreate as the provided PrometheusMetricsExporterCreate

func (ExporterCreate) MarshalJSON added in v0.25.0

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

func (*ExporterCreate) MergeAzureMonitorMetricsExporterCreate added in v0.25.0

func (t *ExporterCreate) MergeAzureMonitorMetricsExporterCreate(v AzureMonitorMetricsExporterCreate) error

MergeAzureMonitorMetricsExporterCreate performs a merge with any union data inside the ExporterCreate, using the provided AzureMonitorMetricsExporterCreate

func (*ExporterCreate) MergeCloudWatchLogsExporterCreate added in v0.25.0

func (t *ExporterCreate) MergeCloudWatchLogsExporterCreate(v CloudWatchLogsExporterCreate) error

MergeCloudWatchLogsExporterCreate performs a merge with any union data inside the ExporterCreate, using the provided CloudWatchLogsExporterCreate

func (*ExporterCreate) MergeCloudWatchMetricsExporterCreate added in v0.25.0

func (t *ExporterCreate) MergeCloudWatchMetricsExporterCreate(v CloudWatchMetricsExporterCreate) error

MergeCloudWatchMetricsExporterCreate performs a merge with any union data inside the ExporterCreate, using the provided CloudWatchMetricsExporterCreate

func (*ExporterCreate) MergeDatadogMetricsExporterCreate added in v0.25.0

func (t *ExporterCreate) MergeDatadogMetricsExporterCreate(v DatadogMetricsExporterCreate) error

MergeDatadogMetricsExporterCreate performs a merge with any union data inside the ExporterCreate, using the provided DatadogMetricsExporterCreate

func (*ExporterCreate) MergePrometheusMetricsExporterCreate added in v0.25.0

func (t *ExporterCreate) MergePrometheusMetricsExporterCreate(v PrometheusMetricsExporterCreate) error

MergePrometheusMetricsExporterCreate performs a merge with any union data inside the ExporterCreate, using the provided PrometheusMetricsExporterCreate

func (*ExporterCreate) UnmarshalJSON added in v0.25.0

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

func (ExporterCreate) ValueByDiscriminator added in v0.25.0

func (t ExporterCreate) ValueByDiscriminator() (interface{}, error)

type ExporterCreateBase added in v0.25.0

type ExporterCreateBase struct {
	// Name A human-readable name for the exporter.
	//
	// Example: prod-metrics-to-datadog
	Name string `json:"name"`

	// RegionCode The cloud region to create the exporter in. Only services in this
	// region can be attached to it, and it cannot be changed afterwards.
	//
	//
	// Example: us-east-1
	RegionCode string `json:"region_code"`

	// Type Where an exporter sends data and what kind of data it sends. Which
	// fields `config` needs depends on the destination and data kind you
	// pick here.
	//
	// `PROMETHEUS_METRICS` is pull rather than push: Tiger Cloud serves an
	// endpoint your Prometheus scrapes, and sends nothing anywhere.
	Type ExporterType `json:"type"`
}

ExporterCreateBase The creation parameters common to every exporter type.

type ExporterID added in v0.25.0

type ExporterID = openapi_types.UUID

ExporterID Example: 3f7c1c9a-0d2e-4d76-9a1b-5c8e0f2a7b31

type ExporterType added in v0.25.0

type ExporterType string

ExporterType Where an exporter sends data and what kind of data it sends. Which fields `config` needs depends on the destination and data kind you pick here.

`PROMETHEUS_METRICS` is pull rather than push: Tiger Cloud serves an endpoint your Prometheus scrapes, and sends nothing anywhere.

const (
	ExporterTypeAZUREMONITORMETRICS ExporterType = "AZURE_MONITOR_METRICS"
	ExporterTypeCLOUDWATCHLOGS      ExporterType = "CLOUDWATCH_LOGS"
	ExporterTypeCLOUDWATCHMETRICS   ExporterType = "CLOUDWATCH_METRICS"
	ExporterTypeDATADOGMETRICS      ExporterType = "DATADOG_METRICS"
	ExporterTypePROMETHEUSMETRICS   ExporterType = "PROMETHEUS_METRICS"
)

Defines values for ExporterType.

func (ExporterType) Valid added in v0.25.0

func (e ExporterType) Valid() bool

Valid indicates whether the value is a known member of the ExporterType enum.

type ExporterUpdate added in v0.25.0

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

ExporterUpdate Parameters for updating an exporter. `type` is required and must match the exporter's current type. Send `config` to replace the whole configuration; omit it to leave the configuration unchanged.

func (ExporterUpdate) AsAzureMonitorMetricsExporterUpdate added in v0.25.0

func (t ExporterUpdate) AsAzureMonitorMetricsExporterUpdate() (AzureMonitorMetricsExporterUpdate, error)

AsAzureMonitorMetricsExporterUpdate returns the union data inside the ExporterUpdate as a AzureMonitorMetricsExporterUpdate

func (ExporterUpdate) AsCloudWatchLogsExporterUpdate added in v0.25.0

func (t ExporterUpdate) AsCloudWatchLogsExporterUpdate() (CloudWatchLogsExporterUpdate, error)

AsCloudWatchLogsExporterUpdate returns the union data inside the ExporterUpdate as a CloudWatchLogsExporterUpdate

func (ExporterUpdate) AsCloudWatchMetricsExporterUpdate added in v0.25.0

func (t ExporterUpdate) AsCloudWatchMetricsExporterUpdate() (CloudWatchMetricsExporterUpdate, error)

AsCloudWatchMetricsExporterUpdate returns the union data inside the ExporterUpdate as a CloudWatchMetricsExporterUpdate

func (ExporterUpdate) AsDatadogMetricsExporterUpdate added in v0.25.0

func (t ExporterUpdate) AsDatadogMetricsExporterUpdate() (DatadogMetricsExporterUpdate, error)

AsDatadogMetricsExporterUpdate returns the union data inside the ExporterUpdate as a DatadogMetricsExporterUpdate

func (ExporterUpdate) AsPrometheusMetricsExporterUpdate added in v0.25.0

func (t ExporterUpdate) AsPrometheusMetricsExporterUpdate() (PrometheusMetricsExporterUpdate, error)

AsPrometheusMetricsExporterUpdate returns the union data inside the ExporterUpdate as a PrometheusMetricsExporterUpdate

func (ExporterUpdate) Discriminator added in v0.25.0

func (t ExporterUpdate) Discriminator() (string, error)

func (*ExporterUpdate) FromAzureMonitorMetricsExporterUpdate added in v0.25.0

func (t *ExporterUpdate) FromAzureMonitorMetricsExporterUpdate(v AzureMonitorMetricsExporterUpdate) error

FromAzureMonitorMetricsExporterUpdate overwrites any union data inside the ExporterUpdate as the provided AzureMonitorMetricsExporterUpdate

func (*ExporterUpdate) FromCloudWatchLogsExporterUpdate added in v0.25.0

func (t *ExporterUpdate) FromCloudWatchLogsExporterUpdate(v CloudWatchLogsExporterUpdate) error

FromCloudWatchLogsExporterUpdate overwrites any union data inside the ExporterUpdate as the provided CloudWatchLogsExporterUpdate

func (*ExporterUpdate) FromCloudWatchMetricsExporterUpdate added in v0.25.0

func (t *ExporterUpdate) FromCloudWatchMetricsExporterUpdate(v CloudWatchMetricsExporterUpdate) error

FromCloudWatchMetricsExporterUpdate overwrites any union data inside the ExporterUpdate as the provided CloudWatchMetricsExporterUpdate

func (*ExporterUpdate) FromDatadogMetricsExporterUpdate added in v0.25.0

func (t *ExporterUpdate) FromDatadogMetricsExporterUpdate(v DatadogMetricsExporterUpdate) error

FromDatadogMetricsExporterUpdate overwrites any union data inside the ExporterUpdate as the provided DatadogMetricsExporterUpdate

func (*ExporterUpdate) FromPrometheusMetricsExporterUpdate added in v0.25.0

func (t *ExporterUpdate) FromPrometheusMetricsExporterUpdate(v PrometheusMetricsExporterUpdate) error

FromPrometheusMetricsExporterUpdate overwrites any union data inside the ExporterUpdate as the provided PrometheusMetricsExporterUpdate

func (ExporterUpdate) MarshalJSON added in v0.25.0

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

func (*ExporterUpdate) MergeAzureMonitorMetricsExporterUpdate added in v0.25.0

func (t *ExporterUpdate) MergeAzureMonitorMetricsExporterUpdate(v AzureMonitorMetricsExporterUpdate) error

MergeAzureMonitorMetricsExporterUpdate performs a merge with any union data inside the ExporterUpdate, using the provided AzureMonitorMetricsExporterUpdate

func (*ExporterUpdate) MergeCloudWatchLogsExporterUpdate added in v0.25.0

func (t *ExporterUpdate) MergeCloudWatchLogsExporterUpdate(v CloudWatchLogsExporterUpdate) error

MergeCloudWatchLogsExporterUpdate performs a merge with any union data inside the ExporterUpdate, using the provided CloudWatchLogsExporterUpdate

func (*ExporterUpdate) MergeCloudWatchMetricsExporterUpdate added in v0.25.0

func (t *ExporterUpdate) MergeCloudWatchMetricsExporterUpdate(v CloudWatchMetricsExporterUpdate) error

MergeCloudWatchMetricsExporterUpdate performs a merge with any union data inside the ExporterUpdate, using the provided CloudWatchMetricsExporterUpdate

func (*ExporterUpdate) MergeDatadogMetricsExporterUpdate added in v0.25.0

func (t *ExporterUpdate) MergeDatadogMetricsExporterUpdate(v DatadogMetricsExporterUpdate) error

MergeDatadogMetricsExporterUpdate performs a merge with any union data inside the ExporterUpdate, using the provided DatadogMetricsExporterUpdate

func (*ExporterUpdate) MergePrometheusMetricsExporterUpdate added in v0.25.0

func (t *ExporterUpdate) MergePrometheusMetricsExporterUpdate(v PrometheusMetricsExporterUpdate) error

MergePrometheusMetricsExporterUpdate performs a merge with any union data inside the ExporterUpdate, using the provided PrometheusMetricsExporterUpdate

func (*ExporterUpdate) UnmarshalJSON added in v0.25.0

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

func (ExporterUpdate) ValueByDiscriminator added in v0.25.0

func (t ExporterUpdate) ValueByDiscriminator() (interface{}, error)

type ExporterUpdateBase added in v0.25.0

type ExporterUpdateBase struct {
	// Name A new human-readable name for the exporter.
	//
	// Example: prod-metrics-to-datadog
	Name *string `json:"name,omitempty"`

	// Type Where an exporter sends data and what kind of data it sends. Which
	// fields `config` needs depends on the destination and data kind you
	// pick here.
	//
	// `PROMETHEUS_METRICS` is pull rather than push: Tiger Cloud serves an
	// endpoint your Prometheus scrapes, and sends nothing anywhere.
	Type ExporterType `json:"type"`
}

ExporterUpdateBase The update parameters common to every exporter type.

type ForkServiceCreate

type ForkServiceCreate struct {
	// CPUMillis The initial CPU allocation in milli-cores, or 'shared' for a shared-resource service. If not provided, will inherit from parent service.
	//
	// Example: 1000
	CPUMillis *string `json:"cpu_millis,omitempty"`

	// EnvironmentTag The environment tag for the forked service.
	EnvironmentTag *EnvironmentTag `json:"environment_tag,omitempty"`

	// ForkStrategy Strategy for creating the fork:
	// - LAST_SNAPSHOT: Use existing snapshot for fast fork
	// - NOW: Create new snapshot for up-to-date fork
	// - PITR: Point-in-time recovery using target_time
	ForkStrategy ForkStrategy `json:"fork_strategy"`

	// MemoryGbs The initial memory allocation in gigabytes, or 'shared' for a shared-resource service. If not provided, will inherit from parent service.
	//
	// Example: 4
	MemoryGbs *string `json:"memory_gbs,omitempty"`

	// Name A human-readable name for the forked service. If not provided, defaults to "standard-fork-<parent name>" (or "recovery-fork-<parent name>" for PITR forks), with "-1", "-2", ... appended if that name is already in use in the project.
	//
	// Example: my-production-db-fork
	Name *string `json:"name,omitempty"`

	// TargetTime Target time for point-in-time recovery. Required when fork_strategy is PITR.
	//
	// Example: 2024-01-01T00:00:00Z
	TargetTime *time.Time `json:"target_time,omitempty"`
}

ForkServiceCreate Create a fork of an existing service. Service type, region code, and storage are always inherited from the parent service. HA replica count is always set to 0 for forked services.

type ForkServiceJSONRequestBody

type ForkServiceJSONRequestBody = ForkServiceCreate

ForkServiceJSONRequestBody defines body for ForkService for application/json ContentType.

type ForkServiceResponse

type ForkServiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *Service
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseForkServiceResponse

func ParseForkServiceResponse(rsp *http.Response) (*ForkServiceResponse, error)

ParseForkServiceResponse parses an HTTP response from a ForkServiceWithResponse call

func (ForkServiceResponse) ContentType added in v0.24.0

func (r ForkServiceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ForkServiceResponse) GetBody added in v0.24.0

func (r ForkServiceResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ForkServiceResponse) GetJSON4XX added in v0.24.0

func (r ForkServiceResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (ForkServiceResponse) GetJSON202 added in v0.24.0

func (r ForkServiceResponse) GetJSON202() *Service

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (ForkServiceResponse) Status

func (r ForkServiceResponse) Status() string

Status returns HTTPResponse.Status

func (ForkServiceResponse) StatusCode

func (r ForkServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ForkSpec

type ForkSpec struct {
	// IsStandby Whether this service is a standby of the parent service.
	//
	// Example: false
	IsStandby *bool `json:"is_standby,omitempty"`

	// ProjectID The project of the parent service.
	//
	// Example: rp1pz7uyae
	ProjectID *string `json:"project_id,omitempty"`

	// ServiceID The ID of the parent service.
	//
	// Example: kd9w2xp4mz
	ServiceID *string `json:"service_id,omitempty"`
}

ForkSpec The service this service was forked from.

type ForkStrategy

type ForkStrategy string

ForkStrategy Strategy for creating the fork: - LAST_SNAPSHOT: Use existing snapshot for fast fork - NOW: Create new snapshot for up-to-date fork - PITR: Point-in-time recovery using target_time

const (
	ForkStrategyLASTSNAPSHOT ForkStrategy = "LAST_SNAPSHOT"
	ForkStrategyNOW          ForkStrategy = "NOW"
	ForkStrategyPITR         ForkStrategy = "PITR"
)

Defines values for ForkStrategy.

func (ForkStrategy) Valid added in v0.24.0

func (e ForkStrategy) Valid() bool

Valid indicates whether the value is a known member of the ForkStrategy enum.

type GetAllowListResponse added in v0.25.0

type GetAllowListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AllowList
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseGetAllowListResponse added in v0.25.0

func ParseGetAllowListResponse(rsp *http.Response) (*GetAllowListResponse, error)

ParseGetAllowListResponse parses an HTTP response from a GetAllowListWithResponse call

func (GetAllowListResponse) ContentType added in v0.25.0

func (r GetAllowListResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetAllowListResponse) GetBody added in v0.25.0

func (r GetAllowListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetAllowListResponse) GetJSON4XX added in v0.25.0

func (r GetAllowListResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (GetAllowListResponse) GetJSON200 added in v0.25.0

func (r GetAllowListResponse) GetJSON200() *AllowList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetAllowListResponse) Status added in v0.25.0

func (r GetAllowListResponse) Status() string

Status returns HTTPResponse.Status

func (GetAllowListResponse) StatusCode added in v0.25.0

func (r GetAllowListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAllowListsResponse added in v0.25.0

type GetAllowListsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]AllowList
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseGetAllowListsResponse added in v0.25.0

func ParseGetAllowListsResponse(rsp *http.Response) (*GetAllowListsResponse, error)

ParseGetAllowListsResponse parses an HTTP response from a GetAllowListsWithResponse call

func (GetAllowListsResponse) ContentType added in v0.25.0

func (r GetAllowListsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetAllowListsResponse) GetBody added in v0.25.0

func (r GetAllowListsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetAllowListsResponse) GetJSON4XX added in v0.25.0

func (r GetAllowListsResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (GetAllowListsResponse) GetJSON200 added in v0.25.0

func (r GetAllowListsResponse) GetJSON200() *[]AllowList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetAllowListsResponse) Status added in v0.25.0

func (r GetAllowListsResponse) Status() string

Status returns HTTPResponse.Status

func (GetAllowListsResponse) StatusCode added in v0.25.0

func (r GetAllowListsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAuthInfoResponse

type GetAuthInfoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AuthInfo
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseGetAuthInfoResponse

func ParseGetAuthInfoResponse(rsp *http.Response) (*GetAuthInfoResponse, error)

ParseGetAuthInfoResponse parses an HTTP response from a GetAuthInfoWithResponse call

func (GetAuthInfoResponse) ContentType added in v0.24.0

func (r GetAuthInfoResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetAuthInfoResponse) GetBody added in v0.24.0

func (r GetAuthInfoResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetAuthInfoResponse) GetJSON4XX added in v0.24.0

func (r GetAuthInfoResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (GetAuthInfoResponse) GetJSON200 added in v0.24.0

func (r GetAuthInfoResponse) GetJSON200() *AuthInfo

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetAuthInfoResponse) Status

func (r GetAuthInfoResponse) Status() string

Status returns HTTPResponse.Status

func (GetAuthInfoResponse) StatusCode

func (r GetAuthInfoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBackupRegionsResponse added in v0.25.0

type GetBackupRegionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]BackupRegion
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseGetBackupRegionsResponse added in v0.25.0

func ParseGetBackupRegionsResponse(rsp *http.Response) (*GetBackupRegionsResponse, error)

ParseGetBackupRegionsResponse parses an HTTP response from a GetBackupRegionsWithResponse call

func (GetBackupRegionsResponse) ContentType added in v0.25.0

func (r GetBackupRegionsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetBackupRegionsResponse) GetBody added in v0.25.0

func (r GetBackupRegionsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetBackupRegionsResponse) GetJSON4XX added in v0.25.0

func (r GetBackupRegionsResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (GetBackupRegionsResponse) GetJSON200 added in v0.25.0

func (r GetBackupRegionsResponse) GetJSON200() *[]BackupRegion

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetBackupRegionsResponse) Status added in v0.25.0

func (r GetBackupRegionsResponse) Status() string

Status returns HTTPResponse.Status

func (GetBackupRegionsResponse) StatusCode added in v0.25.0

func (r GetBackupRegionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBackupRetentionResponse added in v0.25.0

type GetBackupRetentionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *BackupRetentionByTime
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseGetBackupRetentionResponse added in v0.25.0

func ParseGetBackupRetentionResponse(rsp *http.Response) (*GetBackupRetentionResponse, error)

ParseGetBackupRetentionResponse parses an HTTP response from a GetBackupRetentionWithResponse call

func (GetBackupRetentionResponse) ContentType added in v0.25.0

func (r GetBackupRetentionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetBackupRetentionResponse) GetBody added in v0.25.0

func (r GetBackupRetentionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetBackupRetentionResponse) GetJSON4XX added in v0.25.0

func (r GetBackupRetentionResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (GetBackupRetentionResponse) GetJSON200 added in v0.25.0

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetBackupRetentionResponse) Status added in v0.25.0

Status returns HTTPResponse.Status

func (GetBackupRetentionResponse) StatusCode added in v0.25.0

func (r GetBackupRetentionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBackupsResponse added in v0.23.0

type GetBackupsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]Backup
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseGetBackupsResponse added in v0.23.0

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

ParseGetBackupsResponse parses an HTTP response from a GetBackupsWithResponse call

func (GetBackupsResponse) ContentType added in v0.24.0

func (r GetBackupsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetBackupsResponse) GetBody added in v0.24.0

func (r GetBackupsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetBackupsResponse) GetJSON4XX added in v0.24.0

func (r GetBackupsResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (GetBackupsResponse) GetJSON200 added in v0.24.0

func (r GetBackupsResponse) GetJSON200() *[]Backup

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetBackupsResponse) Status added in v0.23.0

func (r GetBackupsResponse) Status() string

Status returns HTTPResponse.Status

func (GetBackupsResponse) StatusCode added in v0.23.0

func (r GetBackupsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetExporterResponse added in v0.25.0

type GetExporterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Exporter
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseGetExporterResponse added in v0.25.0

func ParseGetExporterResponse(rsp *http.Response) (*GetExporterResponse, error)

ParseGetExporterResponse parses an HTTP response from a GetExporterWithResponse call

func (GetExporterResponse) ContentType added in v0.25.0

func (r GetExporterResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetExporterResponse) GetBody added in v0.25.0

func (r GetExporterResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetExporterResponse) GetJSON4XX added in v0.25.0

func (r GetExporterResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (GetExporterResponse) GetJSON200 added in v0.25.0

func (r GetExporterResponse) GetJSON200() *Exporter

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetExporterResponse) Status added in v0.25.0

func (r GetExporterResponse) Status() string

Status returns HTTPResponse.Status

func (GetExporterResponse) StatusCode added in v0.25.0

func (r GetExporterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetExportersResponse added in v0.25.0

type GetExportersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]Exporter
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseGetExportersResponse added in v0.25.0

func ParseGetExportersResponse(rsp *http.Response) (*GetExportersResponse, error)

ParseGetExportersResponse parses an HTTP response from a GetExportersWithResponse call

func (GetExportersResponse) ContentType added in v0.25.0

func (r GetExportersResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetExportersResponse) GetBody added in v0.25.0

func (r GetExportersResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetExportersResponse) GetJSON4XX added in v0.25.0

func (r GetExportersResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (GetExportersResponse) GetJSON200 added in v0.25.0

func (r GetExportersResponse) GetJSON200() *[]Exporter

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetExportersResponse) Status added in v0.25.0

func (r GetExportersResponse) Status() string

Status returns HTTPResponse.Status

func (GetExportersResponse) StatusCode added in v0.25.0

func (r GetExportersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetProjectsResponse

type GetProjectsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]Project
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseGetProjectsResponse

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

ParseGetProjectsResponse parses an HTTP response from a GetProjectsWithResponse call

func (GetProjectsResponse) ContentType added in v0.24.0

func (r GetProjectsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetProjectsResponse) GetBody added in v0.24.0

func (r GetProjectsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetProjectsResponse) GetJSON4XX added in v0.24.0

func (r GetProjectsResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (GetProjectsResponse) GetJSON200 added in v0.24.0

func (r GetProjectsResponse) GetJSON200() *[]Project

GetJSON200 returns the response for an HTTP 200 `application/json` response

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 GetReplicaSetsResponse

type GetReplicaSetsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]ReadReplicaSet
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseGetReplicaSetsResponse

func ParseGetReplicaSetsResponse(rsp *http.Response) (*GetReplicaSetsResponse, error)

ParseGetReplicaSetsResponse parses an HTTP response from a GetReplicaSetsWithResponse call

func (GetReplicaSetsResponse) ContentType added in v0.24.0

func (r GetReplicaSetsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetReplicaSetsResponse) GetBody added in v0.24.0

func (r GetReplicaSetsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetReplicaSetsResponse) GetJSON4XX added in v0.24.0

func (r GetReplicaSetsResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (GetReplicaSetsResponse) GetJSON200 added in v0.24.0

func (r GetReplicaSetsResponse) GetJSON200() *[]ReadReplicaSet

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetReplicaSetsResponse) Status

func (r GetReplicaSetsResponse) Status() string

Status returns HTTPResponse.Status

func (GetReplicaSetsResponse) StatusCode

func (r GetReplicaSetsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetServiceLogsParams

type GetServiceLogsParams struct {
	// Node Specific service node to fetch logs from (for multi-node services).
	Node *int `form:"node,omitempty" json:"node,omitempty"`

	// Cursor Opaque pagination cursor returned as `last_cursor` in a previous response.
	// When provided, returns the next page of logs older than the cursor position.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Until Upper bound timestamp — fetch logs before this time (RFC3339 format, e.g., 2024-01-15T10:00:00Z).
	Until *time.Time `form:"until,omitempty" json:"until,omitempty"`

	// Since Lower bound timestamp — fetch logs after this time (RFC3339 format).
	Since *time.Time `form:"since,omitempty" json:"since,omitempty"`

	// Search Full-text search terms to filter log lines. Repeat the parameter for multiple values
	// (e.g. `?search=slow+query&search=ERROR`).
	Search *[]string `form:"search,omitempty" json:"search,omitempty"`

	// Severities Severity levels to filter results. Repeat the parameter for multiple values
	// (e.g. `?severities=ERROR&severities=WARNING`).
	Severities *[]string `form:"severities,omitempty" json:"severities,omitempty"`
}

GetServiceLogsParams defines parameters for GetServiceLogs.

type GetServiceLogsResponse

type GetServiceLogsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ServiceLogs
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseGetServiceLogsResponse

func ParseGetServiceLogsResponse(rsp *http.Response) (*GetServiceLogsResponse, error)

ParseGetServiceLogsResponse parses an HTTP response from a GetServiceLogsWithResponse call

func (GetServiceLogsResponse) ContentType added in v0.24.0

func (r GetServiceLogsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetServiceLogsResponse) GetBody added in v0.24.0

func (r GetServiceLogsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetServiceLogsResponse) GetJSON4XX added in v0.24.0

func (r GetServiceLogsResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (GetServiceLogsResponse) GetJSON200 added in v0.24.0

func (r GetServiceLogsResponse) GetJSON200() *ServiceLogs

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetServiceLogsResponse) Status

func (r GetServiceLogsResponse) Status() string

Status returns HTTPResponse.Status

func (GetServiceLogsResponse) StatusCode

func (r GetServiceLogsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetServiceMetricDetailsResponse added in v0.25.0

type GetServiceMetricDetailsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *MetricDetails
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseGetServiceMetricDetailsResponse added in v0.25.0

func ParseGetServiceMetricDetailsResponse(rsp *http.Response) (*GetServiceMetricDetailsResponse, error)

ParseGetServiceMetricDetailsResponse parses an HTTP response from a GetServiceMetricDetailsWithResponse call

func (GetServiceMetricDetailsResponse) ContentType added in v0.25.0

func (r GetServiceMetricDetailsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetServiceMetricDetailsResponse) GetBody added in v0.25.0

func (r GetServiceMetricDetailsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetServiceMetricDetailsResponse) GetJSON4XX added in v0.25.0

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (GetServiceMetricDetailsResponse) GetJSON200 added in v0.25.0

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetServiceMetricDetailsResponse) Status added in v0.25.0

Status returns HTTPResponse.Status

func (GetServiceMetricDetailsResponse) StatusCode added in v0.25.0

func (r GetServiceMetricDetailsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetServiceMetricsAvailableSeriesResponse

type GetServiceMetricsAvailableSeriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]string
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseGetServiceMetricsAvailableSeriesResponse

func ParseGetServiceMetricsAvailableSeriesResponse(rsp *http.Response) (*GetServiceMetricsAvailableSeriesResponse, error)

ParseGetServiceMetricsAvailableSeriesResponse parses an HTTP response from a GetServiceMetricsAvailableSeriesWithResponse call

func (GetServiceMetricsAvailableSeriesResponse) ContentType added in v0.24.0

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetServiceMetricsAvailableSeriesResponse) GetBody added in v0.24.0

GetBody returns the raw response body bytes

func (GetServiceMetricsAvailableSeriesResponse) GetJSON4XX added in v0.24.0

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (GetServiceMetricsAvailableSeriesResponse) GetJSON200 added in v0.24.0

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetServiceMetricsAvailableSeriesResponse) Status

Status returns HTTPResponse.Status

func (GetServiceMetricsAvailableSeriesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetServiceMetricsSeriesJSONRequestBody

type GetServiceMetricsSeriesJSONRequestBody = MetricsSeriesRequest

GetServiceMetricsSeriesJSONRequestBody defines body for GetServiceMetricsSeries for application/json ContentType.

type GetServiceMetricsSeriesResponse

type GetServiceMetricsSeriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]MetricSeries
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseGetServiceMetricsSeriesResponse

func ParseGetServiceMetricsSeriesResponse(rsp *http.Response) (*GetServiceMetricsSeriesResponse, error)

ParseGetServiceMetricsSeriesResponse parses an HTTP response from a GetServiceMetricsSeriesWithResponse call

func (GetServiceMetricsSeriesResponse) ContentType added in v0.24.0

func (r GetServiceMetricsSeriesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetServiceMetricsSeriesResponse) GetBody added in v0.24.0

func (r GetServiceMetricsSeriesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetServiceMetricsSeriesResponse) GetJSON4XX added in v0.24.0

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (GetServiceMetricsSeriesResponse) GetJSON200 added in v0.24.0

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetServiceMetricsSeriesResponse) Status

Status returns HTTPResponse.Status

func (GetServiceMetricsSeriesResponse) StatusCode

func (r GetServiceMetricsSeriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetServiceResponse

type GetServiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Service
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseGetServiceResponse

func ParseGetServiceResponse(rsp *http.Response) (*GetServiceResponse, error)

ParseGetServiceResponse parses an HTTP response from a GetServiceWithResponse call

func (GetServiceResponse) ContentType added in v0.24.0

func (r GetServiceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetServiceResponse) GetBody added in v0.24.0

func (r GetServiceResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetServiceResponse) GetJSON4XX added in v0.24.0

func (r GetServiceResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (GetServiceResponse) GetJSON200 added in v0.24.0

func (r GetServiceResponse) GetJSON200() *Service

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetServiceResponse) Status

func (r GetServiceResponse) Status() string

Status returns HTTPResponse.Status

func (GetServiceResponse) StatusCode

func (r GetServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetServicesParams added in v0.26.0

type GetServicesParams struct {
	// Ref Returns only the service this reference matches: one whose ID
	// equals it, or whose name equals it — exactly and case-sensitively,
	// with no precedence between the two. A service ID, a read replica set
	// ID, or an exact service name. Read replica sets match on either and
	// are returned at the top level. A reference matching nothing returns
	// an empty list; one matching more than one service is refused rather
	// than resolved.
	Ref *string `form:"ref,omitempty" json:"ref,omitempty"`
}

GetServicesParams defines parameters for GetServices.

type GetServicesResponse

type GetServicesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]Service
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseGetServicesResponse

func ParseGetServicesResponse(rsp *http.Response) (*GetServicesResponse, error)

ParseGetServicesResponse parses an HTTP response from a GetServicesWithResponse call

func (GetServicesResponse) ContentType added in v0.24.0

func (r GetServicesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetServicesResponse) GetBody added in v0.24.0

func (r GetServicesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetServicesResponse) GetJSON4XX added in v0.24.0

func (r GetServicesResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (GetServicesResponse) GetJSON200 added in v0.24.0

func (r GetServicesResponse) GetJSON200() *[]Service

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetServicesResponse) Status

func (r GetServicesResponse) Status() string

Status returns HTTPResponse.Status

func (GetServicesResponse) StatusCode

func (r GetServicesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetVPCPeeringResponse

type GetVPCPeeringResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Peering
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseGetVPCPeeringResponse

func ParseGetVPCPeeringResponse(rsp *http.Response) (*GetVPCPeeringResponse, error)

ParseGetVPCPeeringResponse parses an HTTP response from a GetVPCPeeringWithResponse call

func (GetVPCPeeringResponse) ContentType added in v0.24.0

func (r GetVPCPeeringResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetVPCPeeringResponse) GetBody added in v0.24.0

func (r GetVPCPeeringResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetVPCPeeringResponse) GetJSON4XX added in v0.24.0

func (r GetVPCPeeringResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (GetVPCPeeringResponse) GetJSON200 added in v0.24.0

func (r GetVPCPeeringResponse) GetJSON200() *Peering

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetVPCPeeringResponse) Status

func (r GetVPCPeeringResponse) Status() string

Status returns HTTPResponse.Status

func (GetVPCPeeringResponse) StatusCode

func (r GetVPCPeeringResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetVPCPeeringsResponse

type GetVPCPeeringsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]Peering
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseGetVPCPeeringsResponse

func ParseGetVPCPeeringsResponse(rsp *http.Response) (*GetVPCPeeringsResponse, error)

ParseGetVPCPeeringsResponse parses an HTTP response from a GetVPCPeeringsWithResponse call

func (GetVPCPeeringsResponse) ContentType added in v0.24.0

func (r GetVPCPeeringsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetVPCPeeringsResponse) GetBody added in v0.24.0

func (r GetVPCPeeringsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetVPCPeeringsResponse) GetJSON4XX added in v0.24.0

func (r GetVPCPeeringsResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (GetVPCPeeringsResponse) GetJSON200 added in v0.24.0

func (r GetVPCPeeringsResponse) GetJSON200() *[]Peering

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetVPCPeeringsResponse) Status

func (r GetVPCPeeringsResponse) Status() string

Status returns HTTPResponse.Status

func (GetVPCPeeringsResponse) StatusCode

func (r GetVPCPeeringsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetVPCResponse

type GetVPCResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *VPC
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseGetVPCResponse

func ParseGetVPCResponse(rsp *http.Response) (*GetVPCResponse, error)

ParseGetVPCResponse parses an HTTP response from a GetVPCWithResponse call

func (GetVPCResponse) ContentType added in v0.24.0

func (r GetVPCResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetVPCResponse) GetBody added in v0.24.0

func (r GetVPCResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetVPCResponse) GetJSON4XX added in v0.24.0

func (r GetVPCResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (GetVPCResponse) GetJSON200 added in v0.24.0

func (r GetVPCResponse) GetJSON200() *VPC

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetVPCResponse) Status

func (r GetVPCResponse) Status() string

Status returns HTTPResponse.Status

func (GetVPCResponse) StatusCode

func (r GetVPCResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetVPCsResponse

type GetVPCsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]VPC
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseGetVPCsResponse

func ParseGetVPCsResponse(rsp *http.Response) (*GetVPCsResponse, error)

ParseGetVPCsResponse parses an HTTP response from a GetVPCsWithResponse call

func (GetVPCsResponse) ContentType added in v0.24.0

func (r GetVPCsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetVPCsResponse) GetBody added in v0.24.0

func (r GetVPCsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetVPCsResponse) GetJSON4XX added in v0.24.0

func (r GetVPCsResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (GetVPCsResponse) GetJSON200 added in v0.24.0

func (r GetVPCsResponse) GetJSON200() *[]VPC

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetVPCsResponse) Status

func (r GetVPCsResponse) Status() string

Status returns HTTPResponse.Status

func (GetVPCsResponse) StatusCode

func (r GetVPCsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HAReplica

type HAReplica struct {
	// ReplicaCount Number of high-availability replicas (all replicas are asynchronous by default).
	//
	// Example: 1
	ReplicaCount *int `json:"replica_count,omitempty"`

	// SyncReplicaCount Number of synchronous high-availability replicas.
	//
	// Example: 1
	SyncReplicaCount *int `json:"sync_replica_count,omitempty"`
}

HAReplica High-availability replica configuration for a service.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type IdentifyUserJSONBody

type IdentifyUserJSONBody struct {
	// Properties Optional map of arbitrary properties associated with the user.
	//
	// Example: {"email":"user@example.com","name":"John Doe"}
	Properties *map[string]interface{} `json:"properties,omitempty"`
}

IdentifyUserJSONBody defines parameters for IdentifyUser.

type IdentifyUserJSONRequestBody

type IdentifyUserJSONRequestBody IdentifyUserJSONBody

IdentifyUserJSONRequestBody defines body for IdentifyUser for application/json ContentType.

type IdentifyUserResponse

type IdentifyUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AnalyticsResponse
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseIdentifyUserResponse

func ParseIdentifyUserResponse(rsp *http.Response) (*IdentifyUserResponse, error)

ParseIdentifyUserResponse parses an HTTP response from a IdentifyUserWithResponse call

func (IdentifyUserResponse) ContentType added in v0.24.0

func (r IdentifyUserResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (IdentifyUserResponse) GetBody added in v0.24.0

func (r IdentifyUserResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (IdentifyUserResponse) GetJSON4XX added in v0.24.0

func (r IdentifyUserResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (IdentifyUserResponse) GetJSON200 added in v0.24.0

func (r IdentifyUserResponse) GetJSON200() *AnalyticsResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (IdentifyUserResponse) Status

func (r IdentifyUserResponse) Status() string

Status returns HTTPResponse.Status

func (IdentifyUserResponse) StatusCode

func (r IdentifyUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LogoutJSONBody

type LogoutJSONBody struct {
	// RefreshToken The OAuth refresh token to revoke. Omit for sessions without a refresh token.
	RefreshToken *string `json:"refresh_token,omitempty"`
}

LogoutJSONBody defines parameters for Logout.

type LogoutJSONRequestBody

type LogoutJSONRequestBody LogoutJSONBody

LogoutJSONRequestBody defines body for Logout for application/json ContentType.

type LogoutResponse

type LogoutResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseLogoutResponse

func ParseLogoutResponse(rsp *http.Response) (*LogoutResponse, error)

ParseLogoutResponse parses an HTTP response from a LogoutWithResponse call

func (LogoutResponse) ContentType added in v0.24.0

func (r LogoutResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (LogoutResponse) GetBody added in v0.24.0

func (r LogoutResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (LogoutResponse) GetJSON4XX added in v0.24.0

func (r LogoutResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (LogoutResponse) Status

func (r LogoutResponse) Status() string

Status returns HTTPResponse.Status

func (LogoutResponse) StatusCode

func (r LogoutResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MetricDataPoint

type MetricDataPoint struct {
	// Time The bucket start timestamp.
	//
	// Example: 2026-06-25T10:00:00Z
	Time time.Time `json:"time"`

	// Value The aggregated value at this bucket, or null for a gap bucket with
	// no collected data. Gap buckets are still emitted (one entry per
	// bucket in the window), so this is null rather than omitted.
	//
	//
	// Example: 247.5
	Value *float64 `json:"value"`
}

MetricDataPoint A single time/value pair within a MetricSeries.

type MetricDetails added in v0.25.0

type MetricDetails struct {
	// DefaultAgg The aggregation function used by default when fn is omitted from a series query, or null if undocumented.
	//
	// Example: AVG
	DefaultAgg *MetricsAggFn `json:"default_agg"`

	// Description What this metric measures, or empty if undocumented.
	//
	// Example: Number of locks currently held, grouped by relation and lock mode.
	Description string `json:"description"`

	// Labels All labels this metric can be filtered or grouped by: its own
	// labels (e.g. datname on pg_stat_database_*) plus the
	// region/role/ordinal labels most metrics also carry. Some
	// metrics only attach a subset of those — e.g.
	// pgbouncer-sourced metrics only get region, not role/ordinal.
	Labels []MetricLabelDetails `json:"labels"`

	// MetricName Metric series name.
	//
	// Example: pg_locks_count
	MetricName string `json:"metric_name"`

	// Type The shape of this metric's data, or null if undocumented.
	//
	// Example: GAUGE
	Type *MetricType `json:"type"`
}

MetricDetails Descriptive metadata for a metric series — what it is, not its data. Some series don't have full metadata yet: type and default_agg may be null and description/labels may be empty, but every field below is always present in the response.

type MetricExporterConfigBase added in v0.25.0

type MetricExporterConfigBase struct {
	// IncludePgMetrics Include PostgreSQL database metrics, such as per-table and
	// per-index statistics, alongside the service's operational metrics.
	// This increases the volume of metrics sent, which may cost more at
	// the destination.
	//
	//
	// Example: true
	IncludePgMetrics *bool `json:"include_pg_metrics,omitempty"`
}

MetricExporterConfigBase The settings every metric exporter has.

type MetricExporterConfigUpdateBase added in v0.25.0

type MetricExporterConfigUpdateBase struct {
	// IncludePgMetrics Whether to include PostgreSQL database metrics, such as
	// per-table and per-index statistics, alongside the service's
	// operational metrics. Send the value you want the exporter to
	// have, not only the value you are changing.
	//
	//
	// Example: true
	IncludePgMetrics bool `json:"include_pg_metrics"`
}

MetricExporterConfigUpdateBase The settings shared by every metric exporter, as sent on an update.

type MetricLabelDetails added in v0.25.0

type MetricLabelDetails struct {
	// Description What this label identifies, or empty if undocumented.
	//
	// Example: The database this row's values belong to.
	Description string `json:"description"`

	// Name The label's key.
	//
	// Example: datname
	Name string `json:"name"`
}

MetricLabelDetails One label specific to a metric.

type MetricLabelFilter

type MetricLabelFilter struct {
	// Key Label key to match against, e.g. `role`.
	//
	// Example: role
	Key string `json:"key"`

	// MatchType How to compare the label's value. Optional; defaults to `EQUAL`.
	MatchType *MetricMatchType `json:"match_type,omitempty"`

	// Value Label value to match. Case sensitivity follows the underlying metric's storage convention.
	//
	// Example: primary
	Value string `json:"value"`
}

MetricLabelFilter A single key/value label match applied to a metric series query.

type MetricMatchType added in v0.25.0

type MetricMatchType string

MetricMatchType - `EQUAL`: the series must have the label equal to `value`.

  • `NOT_EQUAL`: the series must not have the label equal to `value`. A series missing the label entirely also matches. To exclude multiple values of the same label, pass multiple filters with that key.
const (
	MetricMatchTypeEQUAL    MetricMatchType = "EQUAL"
	MetricMatchTypeNOTEQUAL MetricMatchType = "NOT_EQUAL"
)

Defines values for MetricMatchType.

func (MetricMatchType) Valid added in v0.25.0

func (e MetricMatchType) Valid() bool

Valid indicates whether the value is a known member of the MetricMatchType enum.

type MetricSeries

type MetricSeries struct {
	// Data Per-bucket data points for this label set.
	Data []MetricDataPoint `json:"data"`

	// Labels Label set identifying this series. The key set depends on the
	// metric (e.g. `role`, `ordinal`).
	Labels map[string]string `json:"labels"`
}

MetricSeries One labeled time series — the label set plus its per-bucket data points.

type MetricType added in v0.25.0

type MetricType string

MetricType The shape of a metric's underlying data.

- `GAUGE`: a value that can go up or down (e.g. a current connection count). - `COUNTER`: a value that only increases until it resets (e.g. total queries run). - `HISTOGRAM`: a distribution of observed values grouped into ranges. - `SUMMARY`: a distribution of observed values summarized by quantile.

const (
	MetricTypeCOUNTER   MetricType = "COUNTER"
	MetricTypeGAUGE     MetricType = "GAUGE"
	MetricTypeHISTOGRAM MetricType = "HISTOGRAM"
	MetricTypeSUMMARY   MetricType = "SUMMARY"
)

Defines values for MetricType.

func (MetricType) Valid added in v0.25.0

func (e MetricType) Valid() bool

Valid indicates whether the value is a known member of the MetricType enum.

type MetricsAggFn added in v0.25.0

type MetricsAggFn string

MetricsAggFn Aggregation function applied to raw/pre-aggregated samples when collapsing them into one value per output bucket.

  • `RATE`: counter-reset-aware per-second rate of change.
  • `INCREASE`: counter-reset-aware total increase over the bucket.
  • `SUM`: sum of samples in the bucket.
  • `AVG`: mean of samples in the bucket.
  • `MIN`: minimum sample in the bucket.
  • `MAX`: maximum sample in the bucket.
  • `MIN_TOTAL` / `MAX_TOTAL`: minimum/maximum of the bucket's samples added together across every series first — for a metric with labels (e.g. one series per database) where the combined total, not any single series' own extremum, is the meaningful quantity (e.g. peak of total connections across all databases). `MIN`/`MAX` give the single most extreme individual series instead, which is the right answer when the metric is itself an extremum or a timestamp (e.g. longest-running transaction).
  • `COUNT`: number of samples in the bucket.
  • `P50` / `P90` / `P99`: approximate percentiles.
  • `LAST`: the most recent sample in the bucket.
const (
	MetricsAggFnAVG      MetricsAggFn = "AVG"
	MetricsAggFnCOUNT    MetricsAggFn = "COUNT"
	MetricsAggFnINCREASE MetricsAggFn = "INCREASE"
	MetricsAggFnLAST     MetricsAggFn = "LAST"
	MetricsAggFnMAX      MetricsAggFn = "MAX"
	MetricsAggFnMAXTOTAL MetricsAggFn = "MAX_TOTAL"
	MetricsAggFnMIN      MetricsAggFn = "MIN"
	MetricsAggFnMINTOTAL MetricsAggFn = "MIN_TOTAL"
	MetricsAggFnP50      MetricsAggFn = "P50"
	MetricsAggFnP90      MetricsAggFn = "P90"
	MetricsAggFnP99      MetricsAggFn = "P99"
	MetricsAggFnRATE     MetricsAggFn = "RATE"
	MetricsAggFnSUM      MetricsAggFn = "SUM"
)

Defines values for MetricsAggFn.

func (MetricsAggFn) Valid added in v0.25.0

func (e MetricsAggFn) Valid() bool

Valid indicates whether the value is a known member of the MetricsAggFn enum.

type MetricsSeriesRequest

type MetricsSeriesRequest struct {
	// BucketSeconds Aggregation bucket size in seconds. Optional: when omitted the
	// server picks a default that matches the window (roughly 1m for
	// windows up to 1h, 1h for up to 30d, 1d beyond that). Minimum is
	// 60s (finer buckets don't add resolution given scrape intervals).
	// Must be coarse enough for the window's tier; requests that ask
	// for a finer bucket than the tier can produce are rejected.
	//
	//
	// Example: 3600
	BucketSeconds *int `json:"bucket_seconds,omitempty"`

	// Filters Label filters applied to the series query. Recognized label names
	// depend on the metric. The most common is `role` (value `primary` or
	// `replica`). When `role` is omitted, some metrics default to primary
	// and others return data for all roles (one series per role); pass an
	// explicit role for deterministic results. Role label values in the
	// response are lowercased.
	Filters *[]MetricLabelFilter `json:"filters,omitempty"`

	// Fn Aggregation function applied to raw/pre-aggregated samples when
	// collapsing them into one value per output bucket. Optional: when
	// omitted the server picks the default for the metric (currently
	// `LAST`).
	//
	// Not accepted on the following metrics — requests are rejected
	// with `INVALID_REQUEST`:
	//   - `timescale_cloud_system_cpu_total_millicores`
	//   - `timescale_cloud_system_cpu_usage_millicores`
	//   - `timescale_cloud_system_disk_io_read_bytes`
	//   - `timescale_cloud_system_disk_io_read_ops`
	//   - `timescale_cloud_system_disk_io_total_bytes`
	//   - `timescale_cloud_system_disk_io_total_ops`
	//   - `timescale_cloud_system_disk_io_write_bytes`
	//   - `timescale_cloud_system_disk_io_write_ops`
	//   - `timescale_cloud_system_disk_usage_bytes`
	//   - `timescale_cloud_system_memory_total_bytes`
	//   - `timescale_cloud_system_memory_usage_bytes`
	//
	//
	// Example: RATE
	Fn *MetricsAggFn `json:"fn,omitempty"`

	// From Start of the time window (RFC3339; nanosecond precision accepted).
	//
	// Example: 2026-06-25T10:00:00Z
	From time.Time `json:"from"`

	// GroupBy Label keys to break the result into one series per distinct value
	// combination. Optional: when omitted (or empty), all matching
	// label sets collapse into a single series.
	//
	// Not accepted on the following metrics — requests are rejected
	// with `INVALID_REQUEST`:
	//   - `timescale_cloud_system_cpu_total_millicores`
	//   - `timescale_cloud_system_cpu_usage_millicores`
	//   - `timescale_cloud_system_disk_io_read_bytes`
	//   - `timescale_cloud_system_disk_io_read_ops`
	//   - `timescale_cloud_system_disk_io_total_bytes`
	//   - `timescale_cloud_system_disk_io_total_ops`
	//   - `timescale_cloud_system_disk_io_write_bytes`
	//   - `timescale_cloud_system_disk_io_write_ops`
	//   - `timescale_cloud_system_disk_usage_bytes`
	//   - `timescale_cloud_system_memory_total_bytes`
	//   - `timescale_cloud_system_memory_usage_bytes`
	//
	//
	// Example: ["role"]
	GroupBy *[]string `json:"group_by,omitempty"`

	// MetricName Metric series name. Use getServiceMetricsAvailableSeries to discover valid values.
	//
	// Example: timescale_cloud_system_cpu_usage_millicores
	MetricName string `json:"metric_name"`

	// To End of the time window (RFC3339; nanosecond precision accepted).
	//
	// Example: 2026-06-25T11:00:00Z
	To time.Time `json:"to"`
}

MetricsSeriesRequest Parameters for a single getServiceMetricsSeries query. Sent as a JSON body so callers can pass an unbounded filter set without query-string length pressure.

type Peering

type Peering struct {
	// ErrorMessage A human-readable error message when the peering connection failed.
	//
	// Example: VPC not found
	ErrorMessage *string `json:"error_message,omitempty"`

	// ID The unique identifier for the peering connection.
	//
	// Example: 1234567890
	ID *string `json:"id,omitempty"`

	// PeerAccountID The cloud account ID of the peer VPC.
	//
	// Example: acc-12345
	PeerAccountID string `json:"peer_account_id"`

	// PeerRegionCode The cloud region of the peer VPC.
	//
	// Example: us-east-1
	PeerRegionCode string `json:"peer_region_code"`

	// PeerVpcID The ID of the peer VPC.
	//
	// Example: 1234567890
	PeerVpcID string `json:"peer_vpc_id"`

	// ProvisionedID The provider-assigned identifier for the provisioned peering.
	//
	// Example: 1234567890
	ProvisionedID *string `json:"provisioned_id,omitempty"`

	// Status The current status of the peering connection.
	//
	// Example: active
	Status *string `json:"status,omitempty"`
}

Peering A VPC peering connection to an external cloud account.

type PeeringCreate

type PeeringCreate struct {
	// PeerAccountID The cloud account ID of the peer VPC.
	//
	// Example: acc-12345
	PeerAccountID string `json:"peer_account_id"`

	// PeerRegionCode The cloud region of the peer VPC.
	//
	// Example: us-east-1
	PeerRegionCode string `json:"peer_region_code"`

	// PeerVpcID The ID of the peer VPC.
	//
	// Example: 1234567890
	PeerVpcID string `json:"peer_vpc_id"`
}

PeeringCreate Parameters for creating a VPC peering connection.

type PeeringID

type PeeringID = string

PeeringID Example: 1234567890

type Project

type Project struct {
	// ID The unique identifier for the project.
	//
	// Example: rp1pz7uyae
	ID string `json:"id"`

	// Name The name of the project.
	//
	// Example: My Production Project
	Name string `json:"name"`
}

Project A project that organizes your Tiger Cloud resources, such as services and VPCs.

type ProjectID

type ProjectID = string

ProjectID Example: rp1pz7uyae

type PrometheusMetricsConfig added in v0.25.0

type PrometheusMetricsConfig struct {
	// Endpoint The URL Prometheus scrapes to collect these metrics.
	//
	// Example: https://<project_id>.<region>.exporter.tsdb.cloud.timescale.com/metrics
	Endpoint *string `json:"endpoint,omitempty"`

	// IncludePgMetrics Include PostgreSQL database metrics, such as per-table and
	// per-index statistics, alongside the service's operational metrics.
	// This increases the volume of metrics sent, which may cost more at
	// the destination.
	//
	//
	// Example: true
	IncludePgMetrics *bool `json:"include_pg_metrics,omitempty"`

	// Password The password Prometheus authenticates with.
	//
	// Example: a-very-secure-password
	Password *string `json:"password,omitempty"`

	// Username The username Prometheus authenticates with.
	//
	// Example: tiger-metrics
	Username string `json:"username"`
}

PrometheusMetricsConfig The endpoint Prometheus scrapes, and the basic authentication credentials that guard it.

A project can hold one `PROMETHEUS_METRICS` exporter per region; creating a second in the same region fails with a 409.

type PrometheusMetricsConfigUpdate added in v0.25.0

type PrometheusMetricsConfigUpdate struct {
	// IncludePgMetrics Whether to include PostgreSQL database metrics, such as
	// per-table and per-index statistics, alongside the service's
	// operational metrics. Send the value you want the exporter to
	// have, not only the value you are changing.
	//
	//
	// Example: true
	IncludePgMetrics bool `json:"include_pg_metrics"`

	// Password A replacement password.
	//
	// Example: a-very-secure-password
	Password *string `json:"password,omitempty"`

	// Username The username Prometheus authenticates with.
	//
	// Example: tiger-metrics
	Username string `json:"username"`
}

PrometheusMetricsConfigUpdate A replacement configuration for a Prometheus metrics exporter. Omitting `password` keeps the stored one.

type PrometheusMetricsExporter added in v0.25.0

type PrometheusMetricsExporter struct {
	// Config The endpoint Prometheus scrapes, and the basic authentication
	// credentials that guard it.
	//
	// A project can hold one `PROMETHEUS_METRICS` exporter per region;
	// creating a second in the same region fails with a 409.
	Config PrometheusMetricsConfig `json:"config"`

	// Created When the exporter was created.
	//
	// Example: 2026-01-15T10:30:00Z
	Created time.Time `json:"created"`

	// ExporterID The unique identifier for the exporter.
	//
	// Example: 3f7c1c9a-0d2e-4d76-9a1b-5c8e0f2a7b31
	ExporterID openapi_types.UUID `json:"exporter_id"`

	// Name A human-readable name for the exporter. Not used to identify it.
	//
	// Example: prod-metrics-to-datadog
	Name string `json:"name"`

	// ProjectID The project the exporter belongs to.
	//
	// Example: rp1pz7uyae
	ProjectID string `json:"project_id"`

	// RegionCode The cloud region the exporter runs in. Only services in this region
	// can be attached to it, and it cannot be changed afterwards.
	//
	//
	// Example: us-east-1
	RegionCode string `json:"region_code"`

	// Type Always `PROMETHEUS_METRICS`.
	Type PrometheusMetricsExporterType `json:"type"`
}

PrometheusMetricsExporter An exporter that serves a service's metrics on an endpoint for your Prometheus to scrape.

type PrometheusMetricsExporterCreate added in v0.25.0

type PrometheusMetricsExporterCreate struct {
	// Config The endpoint Prometheus scrapes, and the basic authentication
	// credentials that guard it.
	//
	// A project can hold one `PROMETHEUS_METRICS` exporter per region;
	// creating a second in the same region fails with a 409.
	Config PrometheusMetricsConfig `json:"config"`

	// Name A human-readable name for the exporter.
	//
	// Example: prod-metrics-to-datadog
	Name string `json:"name"`

	// RegionCode The cloud region to create the exporter in. Only services in this
	// region can be attached to it, and it cannot be changed afterwards.
	//
	//
	// Example: us-east-1
	RegionCode string `json:"region_code"`

	// Type Always `PROMETHEUS_METRICS`.
	Type PrometheusMetricsExporterCreateType `json:"type"`
}

PrometheusMetricsExporterCreate Parameters for creating a Prometheus metrics exporter.

type PrometheusMetricsExporterCreateType added in v0.25.0

type PrometheusMetricsExporterCreateType string

PrometheusMetricsExporterCreateType Always `PROMETHEUS_METRICS`.

const (
	PrometheusMetricsExporterCreateTypePROMETHEUSMETRICS PrometheusMetricsExporterCreateType = "PROMETHEUS_METRICS"
)

Defines values for PrometheusMetricsExporterCreateType.

func (PrometheusMetricsExporterCreateType) Valid added in v0.25.0

Valid indicates whether the value is a known member of the PrometheusMetricsExporterCreateType enum.

type PrometheusMetricsExporterType added in v0.25.0

type PrometheusMetricsExporterType string

PrometheusMetricsExporterType Always `PROMETHEUS_METRICS`.

const (
	PrometheusMetricsExporterTypePROMETHEUSMETRICS PrometheusMetricsExporterType = "PROMETHEUS_METRICS"
)

Defines values for PrometheusMetricsExporterType.

func (PrometheusMetricsExporterType) Valid added in v0.25.0

Valid indicates whether the value is a known member of the PrometheusMetricsExporterType enum.

type PrometheusMetricsExporterUpdate added in v0.25.0

type PrometheusMetricsExporterUpdate struct {
	// Config A replacement configuration for a Prometheus metrics exporter.
	// Omitting `password` keeps the stored one.
	Config *PrometheusMetricsConfigUpdate `json:"config,omitempty"`

	// Name A new human-readable name for the exporter.
	//
	// Example: prod-metrics-to-datadog
	Name *string `json:"name,omitempty"`

	// Type Always `PROMETHEUS_METRICS`.
	Type PrometheusMetricsExporterUpdateType `json:"type"`
}

PrometheusMetricsExporterUpdate Parameters for updating a Prometheus metrics exporter.

type PrometheusMetricsExporterUpdateType added in v0.25.0

type PrometheusMetricsExporterUpdateType string

PrometheusMetricsExporterUpdateType Always `PROMETHEUS_METRICS`.

const (
	PrometheusMetricsExporterUpdateTypePROMETHEUSMETRICS PrometheusMetricsExporterUpdateType = "PROMETHEUS_METRICS"
)

Defines values for PrometheusMetricsExporterUpdateType.

func (PrometheusMetricsExporterUpdateType) Valid added in v0.25.0

Valid indicates whether the value is a known member of the PrometheusMetricsExporterUpdateType enum.

type ReadReplicaSet

type ReadReplicaSet struct {
	// ConnectionPooler Connection pooler configuration for a service.
	ConnectionPooler *ConnectionPooler `json:"connection_pooler,omitempty"`

	// CPUMillis CPU allocation in milli-cores.
	//
	// Example: 250
	CPUMillis int `json:"cpu_millis"`

	// Endpoint A network endpoint for connecting to a service.
	Endpoint *Endpoint `json:"endpoint,omitempty"`

	// ID The unique identifier for the read replica set.
	//
	// Example: alb8jicdpr
	ID string `json:"id"`

	// MemoryGbs Memory allocation in gigabytes.
	//
	// Example: 1
	MemoryGbs int `json:"memory_gbs"`

	// Metadata Additional metadata for the read replica set.
	Metadata *ReplicaSetMetadata `json:"metadata,omitempty"`

	// Name The name of the read replica set.
	//
	// Example: reporting-replica-1
	Name string `json:"name"`

	// Nodes Number of nodes in the replica set.
	//
	// Example: 2
	Nodes int `json:"nodes"`

	// Status The current status of the read replica set:
	// - creating: the replica set is being provisioned
	// - active: the replica set is provisioned and serving traffic
	// - resizing: the replica set is being resized
	// - deleting: the replica set is being deleted
	// - error: the replica set is in an error state
	//
	//
	// Example: active
	Status ReadReplicaSetStatus `json:"status"`
}

ReadReplicaSet A set of read replicas for a service.

type ReadReplicaSetCreate

type ReadReplicaSetCreate struct {
	// CPUMillis The initial CPU allocation in milli-cores.
	//
	// Example: 250
	CPUMillis int `json:"cpu_millis"`

	// MemoryGbs The initial memory allocation in gigabytes.
	//
	// Example: 1
	MemoryGbs int `json:"memory_gbs"`

	// Name A human-readable name for the read replica.
	//
	// Example: my-reporting-replica
	Name string `json:"name"`

	// Nodes Number of nodes to create in the replica set.
	//
	// Example: 2
	Nodes int `json:"nodes"`
}

ReadReplicaSetCreate Parameters for creating a read replica set.

type ReadReplicaSetStatus

type ReadReplicaSetStatus string

ReadReplicaSetStatus The current status of the read replica set: - creating: the replica set is being provisioned - active: the replica set is provisioned and serving traffic - resizing: the replica set is being resized - deleting: the replica set is being deleted - error: the replica set is in an error state

Example: active

const (
	ReadReplicaSetStatusActive   ReadReplicaSetStatus = "active"
	ReadReplicaSetStatusCreating ReadReplicaSetStatus = "creating"
	ReadReplicaSetStatusDeleting ReadReplicaSetStatus = "deleting"
	ReadReplicaSetStatusError    ReadReplicaSetStatus = "error"
	ReadReplicaSetStatusResizing ReadReplicaSetStatus = "resizing"
)

Defines values for ReadReplicaSetStatus.

func (ReadReplicaSetStatus) Valid added in v0.24.0

func (e ReadReplicaSetStatus) Valid() bool

Valid indicates whether the value is a known member of the ReadReplicaSetStatus enum.

type RenameServiceJSONRequestBody

type RenameServiceJSONRequestBody = ServiceRename

RenameServiceJSONRequestBody defines body for RenameService for application/json ContentType.

type RenameServiceResponse

type RenameServiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Service
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseRenameServiceResponse

func ParseRenameServiceResponse(rsp *http.Response) (*RenameServiceResponse, error)

ParseRenameServiceResponse parses an HTTP response from a RenameServiceWithResponse call

func (RenameServiceResponse) ContentType added in v0.24.0

func (r RenameServiceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RenameServiceResponse) GetBody added in v0.24.0

func (r RenameServiceResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RenameServiceResponse) GetJSON4XX added in v0.24.0

func (r RenameServiceResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (RenameServiceResponse) GetJSON200 added in v0.24.0

func (r RenameServiceResponse) GetJSON200() *Service

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (RenameServiceResponse) Status

func (r RenameServiceResponse) Status() string

Status returns HTTPResponse.Status

func (RenameServiceResponse) StatusCode

func (r RenameServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RenameVPCJSONRequestBody

type RenameVPCJSONRequestBody = VPCRename

RenameVPCJSONRequestBody defines body for RenameVPC for application/json ContentType.

type RenameVPCResponse

type RenameVPCResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SuccessMessage
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseRenameVPCResponse

func ParseRenameVPCResponse(rsp *http.Response) (*RenameVPCResponse, error)

ParseRenameVPCResponse parses an HTTP response from a RenameVPCWithResponse call

func (RenameVPCResponse) ContentType added in v0.24.0

func (r RenameVPCResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RenameVPCResponse) GetBody added in v0.24.0

func (r RenameVPCResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RenameVPCResponse) GetJSON4XX added in v0.24.0

func (r RenameVPCResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (RenameVPCResponse) GetJSON200 added in v0.24.0

func (r RenameVPCResponse) GetJSON200() *SuccessMessage

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (RenameVPCResponse) Status

func (r RenameVPCResponse) Status() string

Status returns HTTPResponse.Status

func (RenameVPCResponse) StatusCode

func (r RenameVPCResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReplicaSetID

type ReplicaSetID = string

ReplicaSetID Example: alb8jicdpr

type ReplicaSetMetadata

type ReplicaSetMetadata struct {
	// Environment Environment tag for the read replica set.
	//
	// Example: PROD
	Environment *string `json:"environment,omitempty"`
}

ReplicaSetMetadata Additional metadata for the read replica set.

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type ResizeInput

type ResizeInput struct {
	// CPUMillis The new CPU allocation in milli-cores.
	//
	// Example: 1000
	CPUMillis string `json:"cpu_millis"`

	// MemoryGbs The new memory allocation in gigabytes.
	//
	// Example: 4
	MemoryGbs string `json:"memory_gbs"`
}

ResizeInput Parameters for resizing a service.

type ResizeReplicaSetJSONRequestBody

type ResizeReplicaSetJSONRequestBody = ResizeInput

ResizeReplicaSetJSONRequestBody defines body for ResizeReplicaSet for application/json ContentType.

type ResizeReplicaSetResponse

type ResizeReplicaSetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *SuccessMessage
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseResizeReplicaSetResponse

func ParseResizeReplicaSetResponse(rsp *http.Response) (*ResizeReplicaSetResponse, error)

ParseResizeReplicaSetResponse parses an HTTP response from a ResizeReplicaSetWithResponse call

func (ResizeReplicaSetResponse) ContentType added in v0.24.0

func (r ResizeReplicaSetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ResizeReplicaSetResponse) GetBody added in v0.24.0

func (r ResizeReplicaSetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ResizeReplicaSetResponse) GetJSON4XX added in v0.24.0

func (r ResizeReplicaSetResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (ResizeReplicaSetResponse) GetJSON202 added in v0.24.0

func (r ResizeReplicaSetResponse) GetJSON202() *SuccessMessage

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (ResizeReplicaSetResponse) Status

func (r ResizeReplicaSetResponse) Status() string

Status returns HTTPResponse.Status

func (ResizeReplicaSetResponse) StatusCode

func (r ResizeReplicaSetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ResizeServiceJSONRequestBody

type ResizeServiceJSONRequestBody = ResizeInput

ResizeServiceJSONRequestBody defines body for ResizeService for application/json ContentType.

type ResizeServiceResponse

type ResizeServiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *Service
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseResizeServiceResponse

func ParseResizeServiceResponse(rsp *http.Response) (*ResizeServiceResponse, error)

ParseResizeServiceResponse parses an HTTP response from a ResizeServiceWithResponse call

func (ResizeServiceResponse) ContentType added in v0.24.0

func (r ResizeServiceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ResizeServiceResponse) GetBody added in v0.24.0

func (r ResizeServiceResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ResizeServiceResponse) GetJSON4XX added in v0.24.0

func (r ResizeServiceResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (ResizeServiceResponse) GetJSON202 added in v0.24.0

func (r ResizeServiceResponse) GetJSON202() *Service

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (ResizeServiceResponse) Status

func (r ResizeServiceResponse) Status() string

Status returns HTTPResponse.Status

func (ResizeServiceResponse) StatusCode

func (r ResizeServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Resource

type Resource struct {
	// ID Resource identifier.
	//
	// Example: n4ph2tqz8r
	ID *string `json:"id,omitempty"`

	// Spec Resource specification.
	Spec *ResourceSpec `json:"spec,omitempty"`
}

Resource A resource allocated to the service.

type ResourceSpec

type ResourceSpec struct {
	// CPUMillis CPU allocation in millicores.
	//
	// Example: 1000
	CPUMillis *int `json:"cpu_millis,omitempty"`

	// MemoryGbs Memory allocation in gigabytes.
	//
	// Example: 4
	MemoryGbs *int `json:"memory_gbs,omitempty"`

	// VolumeType Type of storage volume.
	//
	// Example: gp3
	VolumeType *string `json:"volume_type,omitempty"`
}

ResourceSpec Resource specification.

type Service

type Service struct {
	// ConnectionPooler Connection pooler configuration for a service.
	ConnectionPooler *ConnectionPooler `json:"connection_pooler,omitempty"`

	// Created Creation timestamp.
	//
	// Example: 2025-01-15T09:30:00Z
	Created time.Time `json:"created"`

	// DataTiering Data tiering configuration for a service.
	DataTiering *DataTiering `json:"data_tiering,omitempty"`

	// Endpoint A network endpoint for connecting to a service.
	Endpoint *Endpoint `json:"endpoint,omitempty"`

	// ForkedFrom The service this service was forked from.
	ForkedFrom *ForkSpec `json:"forked_from,omitempty"`

	// HaReplicas High-availability replica configuration for a service.
	HaReplicas *HAReplica `json:"ha_replicas,omitempty"`

	// InitialPassword The initial password for the service.
	//
	// Example: a-very-secure-initial-password
	InitialPassword *string `json:"initial_password,omitempty"`

	// LogExporterID The exporter this service sends its logs to. Absent when the
	// service is not attached to a log exporter. Change it with the
	// attach and detach operations.
	//
	// A newly attached log exporter only starts carrying logs once the
	// service has restarted.
	//
	//
	// Example: 9b2e4d61-7a30-4c58-8f0d-6e1a3c9b4d27
	LogExporterID *openapi_types.UUID `json:"log_exporter_id,omitempty"`

	// Metadata Additional metadata for the service.
	Metadata *ServiceMetadata `json:"metadata,omitempty"`

	// MetricExporterID The exporter this service sends its metrics to. Absent when the
	// service is not attached to a metric exporter. Change it with the
	// attach and detach operations.
	//
	//
	// Example: 3f7c1c9a-0d2e-4d76-9a1b-5c8e0f2a7b31
	MetricExporterID *openapi_types.UUID `json:"metric_exporter_id,omitempty"`

	// Metrics Resource usage metrics for the service.
	Metrics *ServiceMetrics `json:"metrics,omitempty"`

	// Name The name of the service.
	//
	// Example: my-production-db
	Name string `json:"name"`

	// ProjectID The project this service belongs to.
	//
	// Example: rp1pz7uyae
	ProjectID string `json:"project_id"`

	// ReadReplicaSets The read replica sets attached to the service.
	ReadReplicaSets *[]ReadReplicaSet `json:"read_replica_sets,omitempty"`

	// RegionCode The cloud region where the service is hosted.
	//
	// Example: us-east-1
	RegionCode string `json:"region_code"`

	// Resources List of resources allocated to the service.
	Resources []Resource `json:"resources"`

	// ServiceID The unique identifier for the service.
	//
	// Example: kd9w2xp4mz
	ServiceID string `json:"service_id"`

	// ServiceType The type of the service.
	ServiceType ServiceType `json:"service_type"`

	// Status Current status of the service.
	Status DeployStatus `json:"status"`

	// VpcEndpointDeprecated Deprecated. Use `vpc_endpoint` instead.
	// Deprecated: Use `vpc_endpoint` instead.
	VpcEndpointDeprecated *VPCEndpoint `json:"vpcEndpoint,omitempty"`

	// VpcEndpoint VPC endpoint configuration if available.
	VpcEndpoint *VPCEndpoint `json:"vpc_endpoint,omitempty"`
}

Service A database service and its current configuration.

type ServiceAllowListInput added in v0.25.0

type ServiceAllowListInput struct {
	// AllowListID The unique identifier of the IP allow list.
	//
	// Example: 1234567890
	AllowListID string `json:"allow_list_id"`
}

ServiceAllowListInput Identifies which IP allow list to attach to or detach from a service.

type ServiceCreate

type ServiceCreate struct {
	// Addons List of addons to enable for the service. 'time-series' enables TimescaleDB.
	//
	// 'ai' is deprecated and has no effect. To use pgvector, run `CREATE EXTENSION vector` on the service.
	//
	//
	// Example: ["time-series"]
	Addons *[]ServiceCreateAddons `json:"addons,omitempty"`

	// CPUMillis The initial CPU allocation in milli-cores, or 'shared' for a shared-resource service.
	//
	// Example: 1000
	CPUMillis *string `json:"cpu_millis,omitempty"`

	// EnvironmentTag The environment tag for the service.
	EnvironmentTag *EnvironmentTag `json:"environment_tag,omitempty"`

	// MemoryGbs The initial memory allocation in gigabytes, or 'shared' for a shared-resource service.
	//
	// Example: 4
	MemoryGbs *string `json:"memory_gbs,omitempty"`

	// Name A human-readable name for the service.
	//
	// Example: my-production-db
	Name string `json:"name"`

	// RegionCode The region where the service will be created. If not provided, we'll choose the best region for you.
	//
	// Example: us-east-1
	RegionCode *string `json:"region_code,omitempty"`

	// ReplicaCount Number of high-availability replicas to create (all replicas are asynchronous by default).
	//
	// Example: 2
	ReplicaCount *int `json:"replica_count,omitempty"`
}

ServiceCreate Parameters for creating a service.

type ServiceCreateAddons

type ServiceCreateAddons string

ServiceCreateAddons defines model for ServiceCreate.Addons.

const (
	ServiceCreateAddonsAi         ServiceCreateAddons = "ai"
	ServiceCreateAddonsTimeSeries ServiceCreateAddons = "time-series"
)

Defines values for ServiceCreateAddons.

func (ServiceCreateAddons) Valid added in v0.24.0

func (e ServiceCreateAddons) Valid() bool

Valid indicates whether the value is a known member of the ServiceCreateAddons enum.

type ServiceExporterInput added in v0.25.0

type ServiceExporterInput struct {
	// ExporterID The exporter to attach the service to, or detach it from. It must
	// be in the same region as the service.
	//
	//
	// Example: 3f7c1c9a-0d2e-4d76-9a1b-5c8e0f2a7b31
	ExporterID openapi_types.UUID `json:"exporter_id"`
}

ServiceExporterInput Parameters for attaching a service to an exporter, or detaching it from one.

type ServiceID

type ServiceID = string

ServiceID Example: d1k5vk7hf2

type ServiceLogEntry

type ServiceLogEntry struct {
	// Message Log message text.
	//
	// Example: database system is ready to accept connections
	Message string `json:"message"`

	// Severity PostgreSQL severity level (e.g. LOG, WARNING, ERROR, FATAL).
	//
	// Example: LOG
	Severity string `json:"severity"`

	// Timestamp Timestamp of the log entry (RFC3339 format).
	//
	// Example: 2025-01-15T09:30:00Z
	Timestamp time.Time `json:"timestamp"`
}

ServiceLogEntry A single structured log entry from a service.

type ServiceLogs

type ServiceLogs struct {
	// Entries Structured log entries with timestamp and severity metadata.
	// Entries are in the same order as logs and can be used in place of it
	// by callers that need structured data.
	Entries *[]ServiceLogEntry `json:"entries,omitempty"`

	// LastCursorDeprecated Deprecated. Use `last_cursor` instead.
	//
	// Example: eyJ0cyI6IjIwMjUtMDEtMTVUMDk6MzA6MDBaIn0=
	// Deprecated: Use `last_cursor` instead.
	LastCursorDeprecated *string `json:"lastCursor,omitempty"`

	// LastCursor Opaque cursor for the next page of results. Present when more log entries
	// exist older than the last entry in this response. Pass this value as the
	// `cursor` query parameter to retrieve the next page. Absent when there are
	// no further results.
	//
	//
	// Example: eyJ0cyI6IjIwMjUtMDEtMTVUMDk6MzA6MDBaIn0=
	LastCursor *string `json:"last_cursor,omitempty"`

	// Logs Array of log message strings. Preserved for backwards compatibility.
	// Deprecated: Use `entries` instead.
	Logs []string `json:"logs"`
}

ServiceLogs The logs for a service.

type ServiceMetadata

type ServiceMetadata struct {
	// Environment Environment tag for the service.
	//
	// Example: PROD
	Environment *string `json:"environment,omitempty"`
}

ServiceMetadata Additional metadata for the service.

type ServiceMetrics

type ServiceMetrics struct {
	// MemoryMb Memory usage in megabytes.
	//
	// Example: 512
	MemoryMb *int `json:"memory_mb,omitempty"`

	// MilliCPU CPU usage in millicores.
	//
	// Example: 250
	MilliCPU *int `json:"milli_cpu,omitempty"`

	// StorageMb Storage usage in megabytes.
	//
	// Example: 1024
	StorageMb *int `json:"storage_mb,omitempty"`
}

ServiceMetrics Resource usage metrics for the service.

type ServiceRename

type ServiceRename struct {
	// Name The new name for the service.
	//
	// Example: my-renamed-service
	Name string `json:"name"`
}

ServiceRename Parameters for renaming a service.

type ServiceType

type ServiceType string

ServiceType The type of the service: - TIMESCALEDB: a TimescaleDB service (PostgreSQL with the TimescaleDB extension) - POSTGRES: a standard PostgreSQL service

VECTOR is deprecated and should not be used.

const (
	ServiceTypePOSTGRES    ServiceType = "POSTGRES"
	ServiceTypeTIMESCALEDB ServiceType = "TIMESCALEDB"
	ServiceTypeVECTOR      ServiceType = "VECTOR"
)

Defines values for ServiceType.

func (ServiceType) Valid added in v0.24.0

func (e ServiceType) Valid() bool

Valid indicates whether the value is a known member of the ServiceType enum.

type ServiceVPCInput

type ServiceVPCInput struct {
	// VpcID The ID of the VPC to attach the service to.
	//
	// Example: 1234567890
	VpcID string `json:"vpc_id"`
}

ServiceVPCInput Parameters for attaching a service to a VPC.

type SetBackupRetentionJSONRequestBody added in v0.25.0

type SetBackupRetentionJSONRequestBody = BackupRetentionByTime

SetBackupRetentionJSONRequestBody defines body for SetBackupRetention for application/json ContentType.

type SetBackupRetentionResponse added in v0.25.0

type SetBackupRetentionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *BackupRetentionByTime
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseSetBackupRetentionResponse added in v0.25.0

func ParseSetBackupRetentionResponse(rsp *http.Response) (*SetBackupRetentionResponse, error)

ParseSetBackupRetentionResponse parses an HTTP response from a SetBackupRetentionWithResponse call

func (SetBackupRetentionResponse) ContentType added in v0.25.0

func (r SetBackupRetentionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SetBackupRetentionResponse) GetBody added in v0.25.0

func (r SetBackupRetentionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SetBackupRetentionResponse) GetJSON4XX added in v0.25.0

func (r SetBackupRetentionResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (SetBackupRetentionResponse) GetJSON200 added in v0.25.0

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SetBackupRetentionResponse) Status added in v0.25.0

Status returns HTTPResponse.Status

func (SetBackupRetentionResponse) StatusCode added in v0.25.0

func (r SetBackupRetentionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetEnvironmentInput

type SetEnvironmentInput struct {
	// Environment The target environment for the service:
	// - PROD: a production environment
	// - DEV: a development environment
	Environment SetEnvironmentInputEnvironment `json:"environment"`
}

SetEnvironmentInput Parameters for setting a service's environment.

Example: {"environment":"PROD"}

type SetEnvironmentInputEnvironment

type SetEnvironmentInputEnvironment string

SetEnvironmentInputEnvironment The target environment for the service: - PROD: a production environment - DEV: a development environment

const (
	SetEnvironmentInputEnvironmentDEV  SetEnvironmentInputEnvironment = "DEV"
	SetEnvironmentInputEnvironmentPROD SetEnvironmentInputEnvironment = "PROD"
)

Defines values for SetEnvironmentInputEnvironment.

func (SetEnvironmentInputEnvironment) Valid added in v0.24.0

Valid indicates whether the value is a known member of the SetEnvironmentInputEnvironment enum.

type SetEnvironmentJSONRequestBody

type SetEnvironmentJSONRequestBody = SetEnvironmentInput

SetEnvironmentJSONRequestBody defines body for SetEnvironment for application/json ContentType.

type SetEnvironmentResponse

type SetEnvironmentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SuccessMessage
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseSetEnvironmentResponse

func ParseSetEnvironmentResponse(rsp *http.Response) (*SetEnvironmentResponse, error)

ParseSetEnvironmentResponse parses an HTTP response from a SetEnvironmentWithResponse call

func (SetEnvironmentResponse) ContentType added in v0.24.0

func (r SetEnvironmentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SetEnvironmentResponse) GetBody added in v0.24.0

func (r SetEnvironmentResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SetEnvironmentResponse) GetJSON4XX added in v0.24.0

func (r SetEnvironmentResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (SetEnvironmentResponse) GetJSON200 added in v0.24.0

func (r SetEnvironmentResponse) GetJSON200() *SuccessMessage

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SetEnvironmentResponse) Status

func (r SetEnvironmentResponse) Status() string

Status returns HTTPResponse.Status

func (SetEnvironmentResponse) StatusCode

func (r SetEnvironmentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetHAReplicaInput

type SetHAReplicaInput struct {
	// ReplicaCount Number of high-availability replicas (all replicas are asynchronous by default).
	//
	// Example: 1
	ReplicaCount *int `json:"replica_count,omitempty"`

	// SyncReplicaCount Number of synchronous high-availability replicas.
	//
	// Example: 1
	SyncReplicaCount *int `json:"sync_replica_count,omitempty"`
}

SetHAReplicaInput At least one of sync_replica_count or replica_count must be provided.

type SetHAReplicaJSONRequestBody

type SetHAReplicaJSONRequestBody = SetHAReplicaInput

SetHAReplicaJSONRequestBody defines body for SetHAReplica for application/json ContentType.

type SetHAReplicaResponse

type SetHAReplicaResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *Service
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseSetHAReplicaResponse

func ParseSetHAReplicaResponse(rsp *http.Response) (*SetHAReplicaResponse, error)

ParseSetHAReplicaResponse parses an HTTP response from a SetHAReplicaWithResponse call

func (SetHAReplicaResponse) ContentType added in v0.24.0

func (r SetHAReplicaResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SetHAReplicaResponse) GetBody added in v0.24.0

func (r SetHAReplicaResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SetHAReplicaResponse) GetJSON4XX added in v0.24.0

func (r SetHAReplicaResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (SetHAReplicaResponse) GetJSON202 added in v0.24.0

func (r SetHAReplicaResponse) GetJSON202() *Service

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (SetHAReplicaResponse) Status

func (r SetHAReplicaResponse) Status() string

Status returns HTTPResponse.Status

func (SetHAReplicaResponse) StatusCode

func (r SetHAReplicaResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetReplicaEnvironmentJSONRequestBody

type SetReplicaEnvironmentJSONRequestBody = SetEnvironmentInput

SetReplicaEnvironmentJSONRequestBody defines body for SetReplicaEnvironment for application/json ContentType.

type SetReplicaEnvironmentResponse

type SetReplicaEnvironmentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SuccessMessage
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseSetReplicaEnvironmentResponse

func ParseSetReplicaEnvironmentResponse(rsp *http.Response) (*SetReplicaEnvironmentResponse, error)

ParseSetReplicaEnvironmentResponse parses an HTTP response from a SetReplicaEnvironmentWithResponse call

func (SetReplicaEnvironmentResponse) ContentType added in v0.24.0

func (r SetReplicaEnvironmentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SetReplicaEnvironmentResponse) GetBody added in v0.24.0

func (r SetReplicaEnvironmentResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SetReplicaEnvironmentResponse) GetJSON4XX added in v0.24.0

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (SetReplicaEnvironmentResponse) GetJSON200 added in v0.24.0

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SetReplicaEnvironmentResponse) Status

Status returns HTTPResponse.Status

func (SetReplicaEnvironmentResponse) StatusCode

func (r SetReplicaEnvironmentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StartServiceResponse

type StartServiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *Service
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseStartServiceResponse

func ParseStartServiceResponse(rsp *http.Response) (*StartServiceResponse, error)

ParseStartServiceResponse parses an HTTP response from a StartServiceWithResponse call

func (StartServiceResponse) ContentType added in v0.24.0

func (r StartServiceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (StartServiceResponse) GetBody added in v0.24.0

func (r StartServiceResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (StartServiceResponse) GetJSON4XX added in v0.24.0

func (r StartServiceResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (StartServiceResponse) GetJSON202 added in v0.24.0

func (r StartServiceResponse) GetJSON202() *Service

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (StartServiceResponse) Status

func (r StartServiceResponse) Status() string

Status returns HTTPResponse.Status

func (StartServiceResponse) StatusCode

func (r StartServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StopServiceResponse

type StopServiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *Service
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseStopServiceResponse

func ParseStopServiceResponse(rsp *http.Response) (*StopServiceResponse, error)

ParseStopServiceResponse parses an HTTP response from a StopServiceWithResponse call

func (StopServiceResponse) ContentType added in v0.24.0

func (r StopServiceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (StopServiceResponse) GetBody added in v0.24.0

func (r StopServiceResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (StopServiceResponse) GetJSON4XX added in v0.24.0

func (r StopServiceResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (StopServiceResponse) GetJSON202 added in v0.24.0

func (r StopServiceResponse) GetJSON202() *Service

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (StopServiceResponse) Status

func (r StopServiceResponse) Status() string

Status returns HTTPResponse.Status

func (StopServiceResponse) StatusCode

func (r StopServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SubmitFeedbackJSONBody added in v0.25.0

type SubmitFeedbackJSONBody struct {
	// Message The feedback, bug report, or support request to send.
	//
	// Example: I can't connect to my service after resuming it.
	Message string `json:"message"`

	// Source The client surface the feedback came from: `CLI` for a command run by a person, `MCP` for a call made by an AI assistant. Omit it from other clients; the `User-Agent` header still identifies them.
	//
	// Example: CLI
	Source *SubmitFeedbackJSONBodySource `json:"source,omitempty"`
}

SubmitFeedbackJSONBody defines parameters for SubmitFeedback.

type SubmitFeedbackJSONBodySource added in v0.25.0

type SubmitFeedbackJSONBodySource string

SubmitFeedbackJSONBodySource defines parameters for SubmitFeedback.

const (
	SubmitFeedbackJSONBodySourceCLI SubmitFeedbackJSONBodySource = "CLI"
	SubmitFeedbackJSONBodySourceMCP SubmitFeedbackJSONBodySource = "MCP"
)

Defines values for SubmitFeedbackJSONBodySource.

func (SubmitFeedbackJSONBodySource) Valid added in v0.25.0

Valid indicates whether the value is a known member of the SubmitFeedbackJSONBodySource enum.

type SubmitFeedbackJSONRequestBody added in v0.25.0

type SubmitFeedbackJSONRequestBody SubmitFeedbackJSONBody

SubmitFeedbackJSONRequestBody defines body for SubmitFeedback for application/json ContentType.

type SubmitFeedbackResponse added in v0.25.0

type SubmitFeedbackResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseSubmitFeedbackResponse added in v0.25.0

func ParseSubmitFeedbackResponse(rsp *http.Response) (*SubmitFeedbackResponse, error)

ParseSubmitFeedbackResponse parses an HTTP response from a SubmitFeedbackWithResponse call

func (SubmitFeedbackResponse) ContentType added in v0.25.0

func (r SubmitFeedbackResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SubmitFeedbackResponse) GetBody added in v0.25.0

func (r SubmitFeedbackResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SubmitFeedbackResponse) GetJSON4XX added in v0.25.0

func (r SubmitFeedbackResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (SubmitFeedbackResponse) Status added in v0.25.0

func (r SubmitFeedbackResponse) Status() string

Status returns HTTPResponse.Status

func (SubmitFeedbackResponse) StatusCode added in v0.25.0

func (r SubmitFeedbackResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SuccessMessage

type SuccessMessage struct {
	// Message Example: Action completed successfully.
	Message *string `json:"message,omitempty"`
}

SuccessMessage defines model for SuccessMessage.

type TrackEventJSONBody

type TrackEventJSONBody struct {
	// Event The name of the event to track.
	//
	// Example: service_created
	Event string `json:"event"`

	// Properties Optional map of arbitrary properties associated with the event.
	//
	// Example: {"region":"us-east-1"}
	Properties *map[string]interface{} `json:"properties,omitempty"`
}

TrackEventJSONBody defines parameters for TrackEvent.

type TrackEventJSONRequestBody

type TrackEventJSONRequestBody TrackEventJSONBody

TrackEventJSONRequestBody defines body for TrackEvent for application/json ContentType.

type TrackEventResponse

type TrackEventResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AnalyticsResponse
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseTrackEventResponse

func ParseTrackEventResponse(rsp *http.Response) (*TrackEventResponse, error)

ParseTrackEventResponse parses an HTTP response from a TrackEventWithResponse call

func (TrackEventResponse) ContentType added in v0.24.0

func (r TrackEventResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TrackEventResponse) GetBody added in v0.24.0

func (r TrackEventResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (TrackEventResponse) GetJSON4XX added in v0.24.0

func (r TrackEventResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (TrackEventResponse) GetJSON200 added in v0.24.0

func (r TrackEventResponse) GetJSON200() *AnalyticsResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (TrackEventResponse) Status

func (r TrackEventResponse) Status() string

Status returns HTTPResponse.Status

func (TrackEventResponse) StatusCode

func (r TrackEventResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateAllowListJSONRequestBody added in v0.25.0

type UpdateAllowListJSONRequestBody = AllowListUpdate

UpdateAllowListJSONRequestBody defines body for UpdateAllowList for application/json ContentType.

type UpdateAllowListResponse added in v0.25.0

type UpdateAllowListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AllowList
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseUpdateAllowListResponse added in v0.25.0

func ParseUpdateAllowListResponse(rsp *http.Response) (*UpdateAllowListResponse, error)

ParseUpdateAllowListResponse parses an HTTP response from a UpdateAllowListWithResponse call

func (UpdateAllowListResponse) ContentType added in v0.25.0

func (r UpdateAllowListResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateAllowListResponse) GetBody added in v0.25.0

func (r UpdateAllowListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateAllowListResponse) GetJSON4XX added in v0.25.0

func (r UpdateAllowListResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (UpdateAllowListResponse) GetJSON200 added in v0.25.0

func (r UpdateAllowListResponse) GetJSON200() *AllowList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateAllowListResponse) Status added in v0.25.0

func (r UpdateAllowListResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateAllowListResponse) StatusCode added in v0.25.0

func (r UpdateAllowListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateExporterJSONRequestBody added in v0.25.0

type UpdateExporterJSONRequestBody = ExporterUpdate

UpdateExporterJSONRequestBody defines body for UpdateExporter for application/json ContentType.

type UpdateExporterResponse added in v0.25.0

type UpdateExporterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Exporter
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseUpdateExporterResponse added in v0.25.0

func ParseUpdateExporterResponse(rsp *http.Response) (*UpdateExporterResponse, error)

ParseUpdateExporterResponse parses an HTTP response from a UpdateExporterWithResponse call

func (UpdateExporterResponse) ContentType added in v0.25.0

func (r UpdateExporterResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateExporterResponse) GetBody added in v0.25.0

func (r UpdateExporterResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateExporterResponse) GetJSON4XX added in v0.25.0

func (r UpdateExporterResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (UpdateExporterResponse) GetJSON200 added in v0.25.0

func (r UpdateExporterResponse) GetJSON200() *Exporter

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateExporterResponse) Status added in v0.25.0

func (r UpdateExporterResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateExporterResponse) StatusCode added in v0.25.0

func (r UpdateExporterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdatePasswordInput

type UpdatePasswordInput struct {
	// Password The new password.
	//
	// Example: a-very-secure-new-password
	Password string `json:"password"`
}

UpdatePasswordInput Parameters for updating a service's password.

type UpdatePasswordJSONRequestBody

type UpdatePasswordJSONRequestBody = UpdatePasswordInput

UpdatePasswordJSONRequestBody defines body for UpdatePassword for application/json ContentType.

type UpdatePasswordResponse

type UpdatePasswordResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON4XX the response for an HTTP 4XX `application/json` response
	JSON4XX *ClientError
}

func ParseUpdatePasswordResponse

func ParseUpdatePasswordResponse(rsp *http.Response) (*UpdatePasswordResponse, error)

ParseUpdatePasswordResponse parses an HTTP response from a UpdatePasswordWithResponse call

func (UpdatePasswordResponse) ContentType added in v0.24.0

func (r UpdatePasswordResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdatePasswordResponse) GetBody added in v0.24.0

func (r UpdatePasswordResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdatePasswordResponse) GetJSON4XX added in v0.24.0

func (r UpdatePasswordResponse) GetJSON4XX() *ClientError

GetJSON4XX returns the response for an HTTP 4XX `application/json` response

func (UpdatePasswordResponse) Status

func (r UpdatePasswordResponse) Status() string

Status returns HTTPResponse.Status

func (UpdatePasswordResponse) StatusCode

func (r UpdatePasswordResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type VPC

type VPC struct {
	// Cidr The IPv4 CIDR block for the VPC, in address/prefix notation (e.g. 10.0.0.0/16).
	//
	// Example: 10.0.0.0/16
	Cidr string `json:"cidr"`

	// ID The unique identifier for the VPC.
	//
	// Example: 1234567890
	ID *string `json:"id,omitempty"`

	// Name The name of the VPC.
	//
	// Example: my-production-vpc
	Name string `json:"name"`

	// RegionCode The cloud region where the VPC is hosted.
	//
	// Example: us-east-1
	RegionCode string `json:"region_code"`
}

VPC A virtual private cloud that services can be attached to.

type VPCCreate

type VPCCreate struct {
	// Cidr The IPv4 CIDR block for the VPC, in address/prefix notation (e.g. 10.0.0.0/16).
	//
	// Example: 10.0.0.0/16
	Cidr string `json:"cidr"`

	// Name The name of the VPC.
	//
	// Example: my-production-vpc
	Name string `json:"name"`

	// RegionCode The cloud region where the VPC will be created.
	//
	// Example: us-east-1
	RegionCode string `json:"region_code"`
}

VPCCreate Parameters for creating a VPC.

type VPCEndpoint

type VPCEndpoint struct {
	// Host The hostname for connecting to the service over VPC peering.
	//
	// Example: i4wmp4crev.oec7sxsza2.tsdb.cloud.timescale.com
	Host *string `json:"host,omitempty"`

	// Port The port for connecting to the service over VPC peering.
	//
	// Example: 5432
	Port *int `json:"port,omitempty"`

	// VpcID The ID of the VPC the endpoint is associated with.
	//
	// Example: 1337
	VpcID *string `json:"vpc_id,omitempty"`
}

VPCEndpoint VPC endpoint configuration for connecting to a service over VPC peering.

type VPCId

type VPCId = string

VPCId Example: 1234567890

type VPCRename

type VPCRename struct {
	// Name The new name for the VPC.
	//
	// Example: my-renamed-vpc
	Name string `json:"name"`
}

VPCRename Parameters for renaming a VPC.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL