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.5.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.5.0 DO NOT EDIT.
Index ¶
- Constants
- Variables
- func NewAttachServiceToVPCRequest(server string, projectID ProjectID, serviceID ServiceID, ...) (*http.Request, error)
- func NewAttachServiceToVPCRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, ...) (*http.Request, error)
- func NewCreateReplicaSetRequest(server string, projectID ProjectID, serviceID ServiceID, ...) (*http.Request, error)
- func NewCreateReplicaSetRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, ...) (*http.Request, error)
- func NewCreateServiceRequest(server string, projectID ProjectID, body CreateServiceJSONRequestBody) (*http.Request, error)
- func NewCreateServiceRequestWithBody(server string, projectID ProjectID, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateVPCPeeringRequest(server string, projectID ProjectID, vpcID VPCId, ...) (*http.Request, error)
- func NewCreateVPCPeeringRequestWithBody(server string, projectID ProjectID, vpcID VPCId, contentType string, ...) (*http.Request, error)
- func NewCreateVPCRequest(server string, projectID ProjectID, body CreateVPCJSONRequestBody) (*http.Request, error)
- func NewCreateVPCRequestWithBody(server string, projectID ProjectID, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteReplicaSetRequest(server string, projectID ProjectID, serviceID ServiceID, ...) (*http.Request, error)
- func NewDeleteServiceRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)
- func NewDeleteVPCPeeringRequest(server string, projectID ProjectID, vpcID VPCId, peeringID PeeringID) (*http.Request, error)
- func NewDeleteVPCRequest(server string, projectID ProjectID, vpcID VPCId) (*http.Request, error)
- func NewDetachServiceFromVPCRequest(server string, projectID ProjectID, serviceID ServiceID, ...) (*http.Request, error)
- func NewDetachServiceFromVPCRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, ...) (*http.Request, error)
- func NewDisablePoolerRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)
- func NewDisableReplicaPoolerRequest(server string, projectID ProjectID, serviceID ServiceID, ...) (*http.Request, error)
- func NewEnablePoolerRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)
- func NewEnableReplicaPoolerRequest(server string, projectID ProjectID, serviceID ServiceID, ...) (*http.Request, error)
- func NewForkServiceRequest(server string, projectID ProjectID, serviceID ServiceID, ...) (*http.Request, error)
- func NewForkServiceRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, ...) (*http.Request, error)
- func NewGetAuthInfoRequest(server string) (*http.Request, error)
- func NewGetProjectsRequest(server string) (*http.Request, error)
- func NewGetReplicaSetsRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)
- func NewGetServiceLogsRequest(server string, projectID ProjectID, serviceID ServiceID, ...) (*http.Request, error)
- func NewGetServiceMetricsAvailableSeriesRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)
- func NewGetServiceMetricsSeriesRequest(server string, projectID ProjectID, serviceID ServiceID, ...) (*http.Request, error)
- func NewGetServiceMetricsSeriesRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, ...) (*http.Request, error)
- func NewGetServiceRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)
- func NewGetServicesRequest(server string, projectID ProjectID) (*http.Request, error)
- func NewGetVPCPeeringRequest(server string, projectID ProjectID, vpcID VPCId, peeringID PeeringID) (*http.Request, error)
- func NewGetVPCPeeringsRequest(server string, projectID ProjectID, vpcID VPCId) (*http.Request, error)
- func NewGetVPCRequest(server string, projectID ProjectID, vpcID VPCId) (*http.Request, error)
- func NewGetVPCsRequest(server string, projectID ProjectID) (*http.Request, error)
- func NewIdentifyUserRequest(server string, body IdentifyUserJSONRequestBody) (*http.Request, error)
- func NewIdentifyUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewLogoutRequest(server string, body LogoutJSONRequestBody) (*http.Request, error)
- func NewLogoutRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRenameServiceRequest(server string, projectID ProjectID, serviceID ServiceID, ...) (*http.Request, error)
- func NewRenameServiceRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, ...) (*http.Request, error)
- func NewRenameVPCRequest(server string, projectID ProjectID, vpcID VPCId, body RenameVPCJSONRequestBody) (*http.Request, error)
- func NewRenameVPCRequestWithBody(server string, projectID ProjectID, vpcID VPCId, contentType string, ...) (*http.Request, error)
- func NewResizeReplicaSetRequest(server string, projectID ProjectID, serviceID ServiceID, ...) (*http.Request, error)
- func NewResizeReplicaSetRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, ...) (*http.Request, error)
- func NewResizeServiceRequest(server string, projectID ProjectID, serviceID ServiceID, ...) (*http.Request, error)
- func NewResizeServiceRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, ...) (*http.Request, error)
- func NewSetEnvironmentRequest(server string, projectID ProjectID, serviceID ServiceID, ...) (*http.Request, error)
- func NewSetEnvironmentRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, ...) (*http.Request, error)
- func NewSetHAReplicaRequest(server string, projectID ProjectID, serviceID ServiceID, ...) (*http.Request, error)
- func NewSetHAReplicaRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, ...) (*http.Request, error)
- func NewSetReplicaEnvironmentRequest(server string, projectID ProjectID, serviceID ServiceID, ...) (*http.Request, error)
- func NewSetReplicaEnvironmentRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, ...) (*http.Request, error)
- func NewStartServiceRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)
- func NewStopServiceRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)
- func NewTrackEventRequest(server string, body TrackEventJSONRequestBody) (*http.Request, error)
- func NewTrackEventRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdatePasswordRequest(server string, projectID ProjectID, serviceID ServiceID, ...) (*http.Request, error)
- func NewUpdatePasswordRequestWithBody(server string, projectID ProjectID, serviceID ServiceID, contentType string, ...) (*http.Request, error)
- type AnalyticsResponse
- type AttachServiceToVPCJSONRequestBody
- type AttachServiceToVPCResponse
- type AuthInfo
- type AuthInfoAPIKey
- type AuthInfoIssuingUser
- type AuthInfoOAuth
- type AuthInfoProject
- type AuthInfoType
- type AuthInfoUser
- type Client
- func (c *Client) AttachServiceToVPC(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) AttachServiceToVPCWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) CreateReplicaSet(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) CreateReplicaSetWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) CreateService(ctx context.Context, projectID ProjectID, body CreateServiceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateServiceWithBody(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateVPC(ctx context.Context, projectID ProjectID, body CreateVPCJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateVPCPeering(ctx context.Context, projectID ProjectID, vpcID VPCId, ...) (*http.Response, error)
- func (c *Client) CreateVPCPeeringWithBody(ctx context.Context, projectID ProjectID, vpcID VPCId, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateVPCWithBody(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteReplicaSet(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) DeleteService(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) DeleteVPC(ctx context.Context, projectID ProjectID, vpcID VPCId, ...) (*http.Response, error)
- func (c *Client) DeleteVPCPeering(ctx context.Context, projectID ProjectID, vpcID VPCId, peeringID PeeringID, ...) (*http.Response, error)
- func (c *Client) DetachServiceFromVPC(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) DetachServiceFromVPCWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) DisablePooler(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) DisableReplicaPooler(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) EnablePooler(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) EnableReplicaPooler(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) ForkService(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) ForkServiceWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) GetAuthInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetReplicaSets(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) GetService(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) GetServiceLogs(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) GetServiceMetricsAvailableSeries(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) GetServiceMetricsSeries(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) GetServiceMetricsSeriesWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) GetServices(ctx context.Context, projectID ProjectID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetVPC(ctx context.Context, projectID ProjectID, vpcID VPCId, ...) (*http.Response, error)
- func (c *Client) GetVPCPeering(ctx context.Context, projectID ProjectID, vpcID VPCId, peeringID PeeringID, ...) (*http.Response, error)
- func (c *Client) GetVPCPeerings(ctx context.Context, projectID ProjectID, vpcID VPCId, ...) (*http.Response, error)
- func (c *Client) GetVPCs(ctx context.Context, projectID ProjectID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) IdentifyUser(ctx context.Context, body IdentifyUserJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) IdentifyUserWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Logout(ctx context.Context, body LogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) LogoutWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RenameService(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) RenameServiceWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) RenameVPC(ctx context.Context, projectID ProjectID, vpcID VPCId, ...) (*http.Response, error)
- func (c *Client) RenameVPCWithBody(ctx context.Context, projectID ProjectID, vpcID VPCId, contentType string, ...) (*http.Response, error)
- func (c *Client) ResizeReplicaSet(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) ResizeReplicaSetWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) ResizeService(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) ResizeServiceWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) SetEnvironment(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) SetEnvironmentWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) SetHAReplica(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) SetHAReplicaWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) SetReplicaEnvironment(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) SetReplicaEnvironmentWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) StartService(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) StopService(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) TrackEvent(ctx context.Context, body TrackEventJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) TrackEventWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdatePassword(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- func (c *Client) UpdatePasswordWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*http.Response, error)
- type ClientError
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
- func NewTigerClient(cfg *config.Config, apiKey string) (*ClientWithResponses, error)
- func NewTigerClientForCredentials(cfg *config.Config, creds *config.Credentials) (*ClientWithResponses, error)
- func NewTigerClientWithToken(cfg *config.Config, token *oauth2.Token, persist func(*oauth2.Token) error) (*ClientWithResponses, error)
- func (c *ClientWithResponses) AttachServiceToVPCWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*AttachServiceToVPCResponse, error)
- func (c *ClientWithResponses) AttachServiceToVPCWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*AttachServiceToVPCResponse, error)
- func (c *ClientWithResponses) CreateReplicaSetWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*CreateReplicaSetResponse, error)
- func (c *ClientWithResponses) CreateReplicaSetWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*CreateReplicaSetResponse, error)
- func (c *ClientWithResponses) CreateServiceWithBodyWithResponse(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, ...) (*CreateServiceResponse, error)
- func (c *ClientWithResponses) CreateServiceWithResponse(ctx context.Context, projectID ProjectID, body CreateServiceJSONRequestBody, ...) (*CreateServiceResponse, error)
- func (c *ClientWithResponses) CreateVPCPeeringWithBodyWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, contentType string, ...) (*CreateVPCPeeringResponse, error)
- func (c *ClientWithResponses) CreateVPCPeeringWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, ...) (*CreateVPCPeeringResponse, error)
- func (c *ClientWithResponses) CreateVPCWithBodyWithResponse(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, ...) (*CreateVPCResponse, error)
- func (c *ClientWithResponses) CreateVPCWithResponse(ctx context.Context, projectID ProjectID, body CreateVPCJSONRequestBody, ...) (*CreateVPCResponse, error)
- func (c *ClientWithResponses) DeleteReplicaSetWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*DeleteReplicaSetResponse, error)
- func (c *ClientWithResponses) DeleteServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*DeleteServiceResponse, error)
- func (c *ClientWithResponses) DeleteVPCPeeringWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, peeringID PeeringID, ...) (*DeleteVPCPeeringResponse, error)
- func (c *ClientWithResponses) DeleteVPCWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, ...) (*DeleteVPCResponse, error)
- func (c *ClientWithResponses) DetachServiceFromVPCWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*DetachServiceFromVPCResponse, error)
- func (c *ClientWithResponses) DetachServiceFromVPCWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*DetachServiceFromVPCResponse, error)
- func (c *ClientWithResponses) DisablePoolerWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*DisablePoolerResponse, error)
- func (c *ClientWithResponses) DisableReplicaPoolerWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*DisableReplicaPoolerResponse, error)
- func (c *ClientWithResponses) EnablePoolerWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*EnablePoolerResponse, error)
- func (c *ClientWithResponses) EnableReplicaPoolerWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*EnableReplicaPoolerResponse, error)
- func (c *ClientWithResponses) ForkServiceWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*ForkServiceResponse, error)
- func (c *ClientWithResponses) ForkServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*ForkServiceResponse, error)
- func (c *ClientWithResponses) GetAuthInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAuthInfoResponse, error)
- func (c *ClientWithResponses) GetProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)
- func (c *ClientWithResponses) GetReplicaSetsWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*GetReplicaSetsResponse, error)
- func (c *ClientWithResponses) GetServiceLogsWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*GetServiceLogsResponse, error)
- func (c *ClientWithResponses) GetServiceMetricsAvailableSeriesWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*GetServiceMetricsAvailableSeriesResponse, error)
- func (c *ClientWithResponses) GetServiceMetricsSeriesWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*GetServiceMetricsSeriesResponse, error)
- func (c *ClientWithResponses) GetServiceMetricsSeriesWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*GetServiceMetricsSeriesResponse, error)
- func (c *ClientWithResponses) GetServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*GetServiceResponse, error)
- func (c *ClientWithResponses) GetServicesWithResponse(ctx context.Context, projectID ProjectID, reqEditors ...RequestEditorFn) (*GetServicesResponse, error)
- func (c *ClientWithResponses) GetVPCPeeringWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, peeringID PeeringID, ...) (*GetVPCPeeringResponse, error)
- func (c *ClientWithResponses) GetVPCPeeringsWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, ...) (*GetVPCPeeringsResponse, error)
- func (c *ClientWithResponses) GetVPCWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, ...) (*GetVPCResponse, error)
- func (c *ClientWithResponses) GetVPCsWithResponse(ctx context.Context, projectID ProjectID, reqEditors ...RequestEditorFn) (*GetVPCsResponse, error)
- func (c *ClientWithResponses) IdentifyUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*IdentifyUserResponse, error)
- func (c *ClientWithResponses) IdentifyUserWithResponse(ctx context.Context, body IdentifyUserJSONRequestBody, ...) (*IdentifyUserResponse, error)
- func (c *ClientWithResponses) LogoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*LogoutResponse, error)
- func (c *ClientWithResponses) LogoutWithResponse(ctx context.Context, body LogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*LogoutResponse, error)
- func (c *ClientWithResponses) RenameServiceWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*RenameServiceResponse, error)
- func (c *ClientWithResponses) RenameServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*RenameServiceResponse, error)
- func (c *ClientWithResponses) RenameVPCWithBodyWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, contentType string, ...) (*RenameVPCResponse, error)
- func (c *ClientWithResponses) RenameVPCWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, ...) (*RenameVPCResponse, error)
- func (c *ClientWithResponses) ResizeReplicaSetWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*ResizeReplicaSetResponse, error)
- func (c *ClientWithResponses) ResizeReplicaSetWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*ResizeReplicaSetResponse, error)
- func (c *ClientWithResponses) ResizeServiceWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*ResizeServiceResponse, error)
- func (c *ClientWithResponses) ResizeServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*ResizeServiceResponse, error)
- func (c *ClientWithResponses) SetEnvironmentWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*SetEnvironmentResponse, error)
- func (c *ClientWithResponses) SetEnvironmentWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*SetEnvironmentResponse, error)
- func (c *ClientWithResponses) SetHAReplicaWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*SetHAReplicaResponse, error)
- func (c *ClientWithResponses) SetHAReplicaWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*SetHAReplicaResponse, error)
- func (c *ClientWithResponses) SetReplicaEnvironmentWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*SetReplicaEnvironmentResponse, error)
- func (c *ClientWithResponses) SetReplicaEnvironmentWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*SetReplicaEnvironmentResponse, error)
- func (c *ClientWithResponses) StartServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*StartServiceResponse, error)
- func (c *ClientWithResponses) StopServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*StopServiceResponse, error)
- func (c *ClientWithResponses) TrackEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*TrackEventResponse, error)
- func (c *ClientWithResponses) TrackEventWithResponse(ctx context.Context, body TrackEventJSONRequestBody, ...) (*TrackEventResponse, error)
- func (c *ClientWithResponses) UpdatePasswordWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*UpdatePasswordResponse, error)
- func (c *ClientWithResponses) UpdatePasswordWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, ...) (*UpdatePasswordResponse, error)
- type ClientWithResponsesInterface
- type ConnectionPooler
- type CreateReplicaSetJSONRequestBody
- type CreateReplicaSetResponse
- type CreateServiceJSONRequestBody
- type CreateServiceResponse
- type CreateVPCJSONRequestBody
- type CreateVPCPeeringJSONRequestBody
- type CreateVPCPeeringResponse
- type CreateVPCResponse
- type DeleteReplicaSetResponse
- type DeleteServiceResponse
- type DeleteVPCPeeringResponse
- type DeleteVPCResponse
- type DeployStatus
- type DetachServiceFromVPCJSONRequestBody
- type DetachServiceFromVPCResponse
- type DisablePoolerResponse
- type DisableReplicaPoolerResponse
- type EnablePoolerResponse
- type EnableReplicaPoolerResponse
- type Endpoint
- type EnvironmentTag
- type Error
- type ForkServiceCreate
- type ForkServiceJSONRequestBody
- type ForkServiceResponse
- type ForkSpec
- type ForkStrategy
- type GetAuthInfoResponse
- type GetProjectsResponse
- type GetReplicaSetsResponse
- type GetServiceLogsParams
- type GetServiceLogsResponse
- type GetServiceMetricsAvailableSeriesResponse
- type GetServiceMetricsSeriesJSONRequestBody
- type GetServiceMetricsSeriesResponse
- type GetServiceResponse
- type GetServicesResponse
- type GetVPCPeeringResponse
- type GetVPCPeeringsResponse
- type GetVPCResponse
- type GetVPCsResponse
- type HAReplica
- type HttpRequestDoer
- type IdentifyUserJSONBody
- type IdentifyUserJSONRequestBody
- type IdentifyUserResponse
- type LogoutJSONBody
- type LogoutJSONRequestBody
- type LogoutResponse
- type MetricDataPoint
- type MetricLabelFilter
- type MetricSeries
- type MetricsSeriesRequest
- type MetricsSeriesRequestFn
- type Peering
- type PeeringCreate
- type PeeringID
- type Project
- type ProjectID
- type ReadReplicaSet
- type ReadReplicaSetCreate
- type ReadReplicaSetStatus
- type RenameServiceJSONRequestBody
- type RenameServiceResponse
- type RenameVPCJSONRequestBody
- type RenameVPCResponse
- type ReplicaSetID
- type ReplicaSetMetadata
- type RequestEditorFn
- type ResizeInput
- type ResizeReplicaSetJSONRequestBody
- type ResizeReplicaSetResponse
- type ResizeServiceJSONRequestBody
- type ResizeServiceResponse
- type Resource
- type ResourceSpec
- type Service
- type ServiceCreate
- type ServiceCreateAddons
- type ServiceID
- type ServiceLogEntry
- type ServiceLogs
- type ServiceMetadata
- type ServiceMetrics
- type ServiceRename
- type ServiceType
- type ServiceVPCInput
- type SetEnvironmentInput
- type SetEnvironmentInputEnvironment
- type SetEnvironmentJSONRequestBody
- type SetEnvironmentResponse
- type SetHAReplicaInput
- type SetHAReplicaJSONRequestBody
- type SetHAReplicaResponse
- type SetReplicaEnvironmentJSONRequestBody
- type SetReplicaEnvironmentResponse
- type StartServiceResponse
- type StopServiceResponse
- type SuccessMessage
- type TrackEventJSONBody
- type TrackEventJSONRequestBody
- type TrackEventResponse
- type UpdatePasswordInput
- type UpdatePasswordJSONRequestBody
- type UpdatePasswordResponse
- type VPC
- type VPCCreate
- type VPCEndpoint
- type VPCId
- type VPCRename
Constants ¶
const ( BasicAuthScopes = "basicAuth.Scopes" BearerAuthScopes = "bearerAuth.Scopes" )
Variables ¶
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 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 generates requests for AttachServiceToVPC with any type of body
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 generates requests for CreateReplicaSet with any type of body
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 generates requests for CreateService with any type of body
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 generates requests for CreateVPCPeering with any type of body
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 generates requests for CreateVPC with any type of body
func NewDeleteReplicaSetRequest ¶
func NewDeleteReplicaSetRequest(server string, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID) (*http.Request, error)
NewDeleteReplicaSetRequest generates requests for DeleteReplicaSet
func NewDeleteServiceRequest ¶
func NewDeleteServiceRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)
NewDeleteServiceRequest generates requests for DeleteService
func NewDeleteVPCPeeringRequest ¶
func NewDeleteVPCPeeringRequest(server string, projectID ProjectID, vpcID VPCId, peeringID PeeringID) (*http.Request, error)
NewDeleteVPCPeeringRequest generates requests for DeleteVPCPeering
func NewDeleteVPCRequest ¶
NewDeleteVPCRequest generates requests for DeleteVPC
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 generates requests for DetachServiceFromVPC with any type of body
func NewDisablePoolerRequest ¶
func NewDisablePoolerRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)
NewDisablePoolerRequest generates requests for DisablePooler
func NewDisableReplicaPoolerRequest ¶
func NewDisableReplicaPoolerRequest(server string, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID) (*http.Request, error)
NewDisableReplicaPoolerRequest generates requests for DisableReplicaPooler
func NewEnablePoolerRequest ¶
func NewEnablePoolerRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)
NewEnablePoolerRequest generates requests for EnablePooler
func NewEnableReplicaPoolerRequest ¶
func NewEnableReplicaPoolerRequest(server string, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID) (*http.Request, error)
NewEnableReplicaPoolerRequest generates requests for EnableReplicaPooler
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 generates requests for ForkService with any type of body
func NewGetAuthInfoRequest ¶
NewGetAuthInfoRequest generates requests for GetAuthInfo
func NewGetProjectsRequest ¶
NewGetProjectsRequest generates requests for GetProjects
func NewGetReplicaSetsRequest ¶
func NewGetReplicaSetsRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)
NewGetReplicaSetsRequest generates requests for GetReplicaSets
func NewGetServiceLogsRequest ¶
func NewGetServiceLogsRequest(server string, projectID ProjectID, serviceID ServiceID, params *GetServiceLogsParams) (*http.Request, error)
NewGetServiceLogsRequest generates requests for GetServiceLogs
func NewGetServiceMetricsAvailableSeriesRequest ¶
func NewGetServiceMetricsAvailableSeriesRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)
NewGetServiceMetricsAvailableSeriesRequest generates requests for GetServiceMetricsAvailableSeries
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 generates requests for GetServiceMetricsSeries with any type of body
func NewGetServiceRequest ¶
func NewGetServiceRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)
NewGetServiceRequest generates requests for GetService
func NewGetServicesRequest ¶
NewGetServicesRequest generates requests for GetServices
func NewGetVPCPeeringRequest ¶
func NewGetVPCPeeringRequest(server string, projectID ProjectID, vpcID VPCId, peeringID PeeringID) (*http.Request, error)
NewGetVPCPeeringRequest generates requests for GetVPCPeering
func NewGetVPCPeeringsRequest ¶
func NewGetVPCPeeringsRequest(server string, projectID ProjectID, vpcID VPCId) (*http.Request, error)
NewGetVPCPeeringsRequest generates requests for GetVPCPeerings
func NewGetVPCRequest ¶
NewGetVPCRequest generates requests for GetVPC
func NewGetVPCsRequest ¶
NewGetVPCsRequest generates requests for GetVPCs
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 generates requests for IdentifyUser with any type of body
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 generates requests for Logout with any type of body
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 generates requests for RenameService with any type of body
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 generates requests for RenameVPC with any type of body
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 generates requests for ResizeReplicaSet with any type of body
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 generates requests for ResizeService with any type of body
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 generates requests for SetEnvironment with any type of body
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 generates requests for SetHAReplica with any type of body
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 generates requests for SetReplicaEnvironment with any type of body
func NewStartServiceRequest ¶
func NewStartServiceRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)
NewStartServiceRequest generates requests for StartService
func NewStopServiceRequest ¶
func NewStopServiceRequest(server string, projectID ProjectID, serviceID ServiceID) (*http.Request, error)
NewStopServiceRequest generates requests for StopService
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 generates requests for TrackEvent with any type of body
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
Types ¶
type AnalyticsResponse ¶
type AnalyticsResponse struct {
// Status Status of the analytics operation.
Status *string `json:"status,omitempty"`
}
AnalyticsResponse defines model for AnalyticsResponse.
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 *SuccessMessage
JSON4XX *ClientError
}
func ParseAttachServiceToVPCResponse ¶
func ParseAttachServiceToVPCResponse(rsp *http.Response) (*AttachServiceToVPCResponse, error)
ParseAttachServiceToVPCResponse parses an HTTP response from a AttachServiceToVPCWithResponse call
func (AttachServiceToVPCResponse) Status ¶
func (r AttachServiceToVPCResponse) Status() string
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.
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.
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.
Name string `json:"name"`
// Project Information about the project.
Project AuthInfoProject `json:"project"`
// PublicKey The public key of the client credentials.
PublicKey string `json:"public_key"`
}
AuthInfoAPIKey Information about the API key credentials (PAT).
type AuthInfoIssuingUser ¶
type AuthInfoIssuingUser struct {
// Email The user's email.
Email openapi_types.Email `json:"email"`
// ID The user ID.
ID string `json:"id"`
// Name The user's name.
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.
ID string `json:"id"`
// Name The name of the project.
Name string `json:"name"`
// PlanType The plan type for the project.
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.
const ( AuthInfoTypeAPIKey AuthInfoType = "apiKey" AuthInfoTypeOauth AuthInfoType = "oauth" )
Defines values for AuthInfoType.
type AuthInfoUser ¶
type AuthInfoUser struct {
// Email The user's email.
Email openapi_types.Email `json:"email"`
// ID The numeric user ID.
ID string `json:"id"`
// Name The user's name.
Name string `json:"name"`
}
AuthInfoUser The authenticated OAuth user.
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) AttachServiceToVPC ¶
func (c *Client) AttachServiceToVPC(ctx context.Context, projectID ProjectID, serviceID ServiceID, body AttachServiceToVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AttachServiceToVPCWithBody ¶
func (*Client) CreateReplicaSet ¶
func (c *Client) CreateReplicaSet(ctx context.Context, projectID ProjectID, serviceID ServiceID, body CreateReplicaSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateReplicaSetWithBody ¶
func (*Client) CreateService ¶
func (c *Client) CreateService(ctx context.Context, projectID ProjectID, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateServiceWithBody ¶
func (*Client) CreateVPC ¶
func (c *Client) CreateVPC(ctx context.Context, projectID ProjectID, body CreateVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateVPCPeering ¶
func (c *Client) CreateVPCPeering(ctx context.Context, projectID ProjectID, vpcID VPCId, body CreateVPCPeeringJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateVPCPeeringWithBody ¶
func (*Client) CreateVPCWithBody ¶
func (*Client) DeleteReplicaSet ¶
func (c *Client) DeleteReplicaSet(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteService ¶
func (*Client) DeleteVPCPeering ¶
func (*Client) DetachServiceFromVPC ¶
func (c *Client) DetachServiceFromVPC(ctx context.Context, projectID ProjectID, serviceID ServiceID, body DetachServiceFromVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DetachServiceFromVPCWithBody ¶
func (*Client) DisablePooler ¶
func (*Client) DisableReplicaPooler ¶
func (c *Client) DisableReplicaPooler(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EnablePooler ¶
func (*Client) EnableReplicaPooler ¶
func (c *Client) EnableReplicaPooler(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ForkService ¶
func (c *Client) ForkService(ctx context.Context, projectID ProjectID, serviceID ServiceID, body ForkServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ForkServiceWithBody ¶
func (*Client) GetAuthInfo ¶
func (*Client) GetProjects ¶
func (*Client) GetReplicaSets ¶
func (*Client) GetService ¶
func (*Client) GetServiceLogs ¶
func (c *Client) GetServiceLogs(ctx context.Context, projectID ProjectID, serviceID ServiceID, params *GetServiceLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetServiceMetricsAvailableSeries ¶
func (*Client) GetServiceMetricsSeries ¶
func (c *Client) GetServiceMetricsSeries(ctx context.Context, projectID ProjectID, serviceID ServiceID, body GetServiceMetricsSeriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetServiceMetricsSeriesWithBody ¶
func (*Client) GetServices ¶
func (*Client) GetVPCPeering ¶
func (*Client) GetVPCPeerings ¶
func (*Client) IdentifyUser ¶
func (c *Client) IdentifyUser(ctx context.Context, body IdentifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) IdentifyUserWithBody ¶
func (*Client) Logout ¶
func (c *Client) Logout(ctx context.Context, body LogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LogoutWithBody ¶
func (*Client) RenameService ¶
func (c *Client) RenameService(ctx context.Context, projectID ProjectID, serviceID ServiceID, body RenameServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RenameServiceWithBody ¶
func (*Client) RenameVPC ¶
func (c *Client) RenameVPC(ctx context.Context, projectID ProjectID, vpcID VPCId, body RenameVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RenameVPCWithBody ¶
func (*Client) ResizeReplicaSet ¶
func (c *Client) ResizeReplicaSet(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, body ResizeReplicaSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ResizeReplicaSetWithBody ¶
func (*Client) ResizeService ¶
func (c *Client) ResizeService(ctx context.Context, projectID ProjectID, serviceID ServiceID, body ResizeServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ResizeServiceWithBody ¶
func (*Client) SetEnvironment ¶
func (c *Client) SetEnvironment(ctx context.Context, projectID ProjectID, serviceID ServiceID, body SetEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetEnvironmentWithBody ¶
func (*Client) SetHAReplica ¶
func (c *Client) SetHAReplica(ctx context.Context, projectID ProjectID, serviceID ServiceID, body SetHAReplicaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetHAReplicaWithBody ¶
func (*Client) SetReplicaEnvironment ¶
func (c *Client) SetReplicaEnvironment(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, body SetReplicaEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetReplicaEnvironmentWithBody ¶
func (*Client) StartService ¶
func (*Client) StopService ¶
func (*Client) TrackEvent ¶
func (c *Client) TrackEvent(ctx context.Context, body TrackEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TrackEventWithBody ¶
func (*Client) UpdatePassword ¶
func (c *Client) UpdatePassword(ctx context.Context, projectID ProjectID, serviceID ServiceID, body UpdatePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientError ¶
type ClientError = Error
ClientError An error returned when a request cannot be completed.
type ClientInterface ¶
type ClientInterface interface {
// IdentifyUserWithBody request with any body
IdentifyUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
IdentifyUser(ctx context.Context, body IdentifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// TrackEventWithBody request with any body
TrackEventWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
TrackEvent(ctx context.Context, body TrackEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAuthInfo request
GetAuthInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// LogoutWithBody request with any body
LogoutWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
Logout(ctx context.Context, body LogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetProjects request
GetProjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetServices request
GetServices(ctx context.Context, projectID ProjectID, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateServiceWithBody request with any body
CreateServiceWithBody(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateService(ctx context.Context, projectID ProjectID, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteService request
DeleteService(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetService request
GetService(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)
// AttachServiceToVPCWithBody request with any body
AttachServiceToVPCWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AttachServiceToVPC(ctx context.Context, projectID ProjectID, serviceID ServiceID, body AttachServiceToVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DetachServiceFromVPCWithBody request with any body
DetachServiceFromVPCWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DetachServiceFromVPC(ctx context.Context, projectID ProjectID, serviceID ServiceID, body DetachServiceFromVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DisablePooler request
DisablePooler(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)
// EnablePooler request
EnablePooler(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)
// ForkServiceWithBody request with any body
ForkServiceWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ForkService(ctx context.Context, projectID ProjectID, serviceID ServiceID, body ForkServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetServiceLogs request
GetServiceLogs(ctx context.Context, projectID ProjectID, serviceID ServiceID, params *GetServiceLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetServiceMetricsAvailableSeries request
GetServiceMetricsAvailableSeries(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetServiceMetricsSeriesWithBody request with any body
GetServiceMetricsSeriesWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetServiceMetricsSeries(ctx context.Context, projectID ProjectID, serviceID ServiceID, body GetServiceMetricsSeriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RenameServiceWithBody request with any body
RenameServiceWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RenameService(ctx context.Context, projectID ProjectID, serviceID ServiceID, body RenameServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetReplicaSets request
GetReplicaSets(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateReplicaSetWithBody request with any body
CreateReplicaSetWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateReplicaSet(ctx context.Context, projectID ProjectID, serviceID ServiceID, body CreateReplicaSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteReplicaSet request
DeleteReplicaSet(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*http.Response, error)
// DisableReplicaPooler request
DisableReplicaPooler(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*http.Response, error)
// EnableReplicaPooler request
EnableReplicaPooler(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResizeReplicaSetWithBody request with any body
ResizeReplicaSetWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ResizeReplicaSet(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, body ResizeReplicaSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetReplicaEnvironmentWithBody request with any body
SetReplicaEnvironmentWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetReplicaEnvironment(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, body SetReplicaEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResizeServiceWithBody request with any body
ResizeServiceWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ResizeService(ctx context.Context, projectID ProjectID, serviceID ServiceID, body ResizeServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetEnvironmentWithBody request with any body
SetEnvironmentWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetEnvironment(ctx context.Context, projectID ProjectID, serviceID ServiceID, body SetEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetHAReplicaWithBody request with any body
SetHAReplicaWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetHAReplica(ctx context.Context, projectID ProjectID, serviceID ServiceID, body SetHAReplicaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartService request
StartService(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)
// StopService request
StopService(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdatePasswordWithBody request with any body
UpdatePasswordWithBody(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdatePassword(ctx context.Context, projectID ProjectID, serviceID ServiceID, body UpdatePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetVPCs request
GetVPCs(ctx context.Context, projectID ProjectID, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateVPCWithBody request with any body
CreateVPCWithBody(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateVPC(ctx context.Context, projectID ProjectID, body CreateVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteVPC request
DeleteVPC(ctx context.Context, projectID ProjectID, vpcID VPCId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetVPC request
GetVPC(ctx context.Context, projectID ProjectID, vpcID VPCId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetVPCPeerings request
GetVPCPeerings(ctx context.Context, projectID ProjectID, vpcID VPCId, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateVPCPeeringWithBody request with any body
CreateVPCPeeringWithBody(ctx context.Context, projectID ProjectID, vpcID VPCId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateVPCPeering(ctx context.Context, projectID ProjectID, vpcID VPCId, body CreateVPCPeeringJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteVPCPeering request
DeleteVPCPeering(ctx context.Context, projectID ProjectID, vpcID VPCId, peeringID PeeringID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetVPCPeering request
GetVPCPeering(ctx context.Context, projectID ProjectID, vpcID VPCId, peeringID PeeringID, reqEditors ...RequestEditorFn) (*http.Response, error)
// RenameVPCWithBody request with any body
RenameVPCWithBody(ctx context.Context, projectID ProjectID, vpcID VPCId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RenameVPC(ctx context.Context, projectID ProjectID, vpcID VPCId, body RenameVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
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) AttachServiceToVPCWithBodyWithResponse ¶
func (c *ClientWithResponses) AttachServiceToVPCWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachServiceToVPCResponse, error)
AttachServiceToVPCWithBodyWithResponse request with arbitrary body returning *AttachServiceToVPCResponse
func (*ClientWithResponses) AttachServiceToVPCWithResponse ¶
func (c *ClientWithResponses) AttachServiceToVPCWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body AttachServiceToVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachServiceToVPCResponse, error)
func (*ClientWithResponses) CreateReplicaSetWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateReplicaSetWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReplicaSetResponse, error)
CreateReplicaSetWithBodyWithResponse request with arbitrary body returning *CreateReplicaSetResponse
func (*ClientWithResponses) CreateReplicaSetWithResponse ¶
func (c *ClientWithResponses) CreateReplicaSetWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body CreateReplicaSetJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReplicaSetResponse, error)
func (*ClientWithResponses) CreateServiceWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateServiceWithBodyWithResponse(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error)
CreateServiceWithBodyWithResponse request with arbitrary body returning *CreateServiceResponse
func (*ClientWithResponses) CreateServiceWithResponse ¶
func (c *ClientWithResponses) CreateServiceWithResponse(ctx context.Context, projectID ProjectID, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error)
func (*ClientWithResponses) CreateVPCPeeringWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateVPCPeeringWithBodyWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVPCPeeringResponse, error)
CreateVPCPeeringWithBodyWithResponse request with arbitrary body returning *CreateVPCPeeringResponse
func (*ClientWithResponses) CreateVPCPeeringWithResponse ¶
func (c *ClientWithResponses) CreateVPCPeeringWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, body CreateVPCPeeringJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVPCPeeringResponse, error)
func (*ClientWithResponses) CreateVPCWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateVPCWithBodyWithResponse(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVPCResponse, error)
CreateVPCWithBodyWithResponse request with arbitrary body returning *CreateVPCResponse
func (*ClientWithResponses) CreateVPCWithResponse ¶
func (c *ClientWithResponses) CreateVPCWithResponse(ctx context.Context, projectID ProjectID, body CreateVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVPCResponse, error)
func (*ClientWithResponses) DeleteReplicaSetWithResponse ¶
func (c *ClientWithResponses) DeleteReplicaSetWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*DeleteReplicaSetResponse, error)
DeleteReplicaSetWithResponse request returning *DeleteReplicaSetResponse
func (*ClientWithResponses) DeleteServiceWithResponse ¶
func (c *ClientWithResponses) DeleteServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*DeleteServiceResponse, error)
DeleteServiceWithResponse request returning *DeleteServiceResponse
func (*ClientWithResponses) DeleteVPCPeeringWithResponse ¶
func (c *ClientWithResponses) DeleteVPCPeeringWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, peeringID PeeringID, reqEditors ...RequestEditorFn) (*DeleteVPCPeeringResponse, error)
DeleteVPCPeeringWithResponse request returning *DeleteVPCPeeringResponse
func (*ClientWithResponses) DeleteVPCWithResponse ¶
func (c *ClientWithResponses) DeleteVPCWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, reqEditors ...RequestEditorFn) (*DeleteVPCResponse, error)
DeleteVPCWithResponse request returning *DeleteVPCResponse
func (*ClientWithResponses) DetachServiceFromVPCWithBodyWithResponse ¶
func (c *ClientWithResponses) DetachServiceFromVPCWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DetachServiceFromVPCResponse, error)
DetachServiceFromVPCWithBodyWithResponse request with arbitrary body returning *DetachServiceFromVPCResponse
func (*ClientWithResponses) DetachServiceFromVPCWithResponse ¶
func (c *ClientWithResponses) DetachServiceFromVPCWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body DetachServiceFromVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*DetachServiceFromVPCResponse, error)
func (*ClientWithResponses) DisablePoolerWithResponse ¶
func (c *ClientWithResponses) DisablePoolerWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*DisablePoolerResponse, error)
DisablePoolerWithResponse request returning *DisablePoolerResponse
func (*ClientWithResponses) DisableReplicaPoolerWithResponse ¶
func (c *ClientWithResponses) DisableReplicaPoolerWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*DisableReplicaPoolerResponse, error)
DisableReplicaPoolerWithResponse request returning *DisableReplicaPoolerResponse
func (*ClientWithResponses) EnablePoolerWithResponse ¶
func (c *ClientWithResponses) EnablePoolerWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*EnablePoolerResponse, error)
EnablePoolerWithResponse request returning *EnablePoolerResponse
func (*ClientWithResponses) EnableReplicaPoolerWithResponse ¶
func (c *ClientWithResponses) EnableReplicaPoolerWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*EnableReplicaPoolerResponse, error)
EnableReplicaPoolerWithResponse request returning *EnableReplicaPoolerResponse
func (*ClientWithResponses) ForkServiceWithBodyWithResponse ¶
func (c *ClientWithResponses) ForkServiceWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ForkServiceResponse, error)
ForkServiceWithBodyWithResponse request with arbitrary body returning *ForkServiceResponse
func (*ClientWithResponses) ForkServiceWithResponse ¶
func (c *ClientWithResponses) ForkServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body ForkServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*ForkServiceResponse, error)
func (*ClientWithResponses) GetAuthInfoWithResponse ¶
func (c *ClientWithResponses) GetAuthInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAuthInfoResponse, error)
GetAuthInfoWithResponse request returning *GetAuthInfoResponse
func (*ClientWithResponses) GetProjectsWithResponse ¶
func (c *ClientWithResponses) GetProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)
GetProjectsWithResponse request returning *GetProjectsResponse
func (*ClientWithResponses) GetReplicaSetsWithResponse ¶
func (c *ClientWithResponses) GetReplicaSetsWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*GetReplicaSetsResponse, error)
GetReplicaSetsWithResponse request returning *GetReplicaSetsResponse
func (*ClientWithResponses) GetServiceLogsWithResponse ¶
func (c *ClientWithResponses) GetServiceLogsWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, params *GetServiceLogsParams, reqEditors ...RequestEditorFn) (*GetServiceLogsResponse, error)
GetServiceLogsWithResponse request returning *GetServiceLogsResponse
func (*ClientWithResponses) GetServiceMetricsAvailableSeriesWithResponse ¶
func (c *ClientWithResponses) GetServiceMetricsAvailableSeriesWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*GetServiceMetricsAvailableSeriesResponse, error)
GetServiceMetricsAvailableSeriesWithResponse request returning *GetServiceMetricsAvailableSeriesResponse
func (*ClientWithResponses) GetServiceMetricsSeriesWithBodyWithResponse ¶
func (c *ClientWithResponses) GetServiceMetricsSeriesWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetServiceMetricsSeriesResponse, error)
GetServiceMetricsSeriesWithBodyWithResponse request with arbitrary body returning *GetServiceMetricsSeriesResponse
func (*ClientWithResponses) GetServiceMetricsSeriesWithResponse ¶
func (c *ClientWithResponses) GetServiceMetricsSeriesWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body GetServiceMetricsSeriesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetServiceMetricsSeriesResponse, error)
func (*ClientWithResponses) GetServiceWithResponse ¶
func (c *ClientWithResponses) GetServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*GetServiceResponse, error)
GetServiceWithResponse request returning *GetServiceResponse
func (*ClientWithResponses) GetServicesWithResponse ¶
func (c *ClientWithResponses) GetServicesWithResponse(ctx context.Context, projectID ProjectID, reqEditors ...RequestEditorFn) (*GetServicesResponse, error)
GetServicesWithResponse request returning *GetServicesResponse
func (*ClientWithResponses) GetVPCPeeringWithResponse ¶
func (c *ClientWithResponses) GetVPCPeeringWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, peeringID PeeringID, reqEditors ...RequestEditorFn) (*GetVPCPeeringResponse, error)
GetVPCPeeringWithResponse request returning *GetVPCPeeringResponse
func (*ClientWithResponses) GetVPCPeeringsWithResponse ¶
func (c *ClientWithResponses) GetVPCPeeringsWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, reqEditors ...RequestEditorFn) (*GetVPCPeeringsResponse, error)
GetVPCPeeringsWithResponse request returning *GetVPCPeeringsResponse
func (*ClientWithResponses) GetVPCWithResponse ¶
func (c *ClientWithResponses) GetVPCWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, reqEditors ...RequestEditorFn) (*GetVPCResponse, error)
GetVPCWithResponse request returning *GetVPCResponse
func (*ClientWithResponses) GetVPCsWithResponse ¶
func (c *ClientWithResponses) GetVPCsWithResponse(ctx context.Context, projectID ProjectID, reqEditors ...RequestEditorFn) (*GetVPCsResponse, error)
GetVPCsWithResponse request returning *GetVPCsResponse
func (*ClientWithResponses) IdentifyUserWithBodyWithResponse ¶
func (c *ClientWithResponses) IdentifyUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error)
IdentifyUserWithBodyWithResponse request with arbitrary body returning *IdentifyUserResponse
func (*ClientWithResponses) IdentifyUserWithResponse ¶
func (c *ClientWithResponses) IdentifyUserWithResponse(ctx context.Context, body IdentifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error)
func (*ClientWithResponses) LogoutWithBodyWithResponse ¶
func (c *ClientWithResponses) LogoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LogoutResponse, error)
LogoutWithBodyWithResponse request with arbitrary body returning *LogoutResponse
func (*ClientWithResponses) LogoutWithResponse ¶
func (c *ClientWithResponses) LogoutWithResponse(ctx context.Context, body LogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*LogoutResponse, error)
func (*ClientWithResponses) RenameServiceWithBodyWithResponse ¶
func (c *ClientWithResponses) RenameServiceWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenameServiceResponse, error)
RenameServiceWithBodyWithResponse request with arbitrary body returning *RenameServiceResponse
func (*ClientWithResponses) RenameServiceWithResponse ¶
func (c *ClientWithResponses) RenameServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body RenameServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*RenameServiceResponse, error)
func (*ClientWithResponses) RenameVPCWithBodyWithResponse ¶
func (c *ClientWithResponses) RenameVPCWithBodyWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenameVPCResponse, error)
RenameVPCWithBodyWithResponse request with arbitrary body returning *RenameVPCResponse
func (*ClientWithResponses) RenameVPCWithResponse ¶
func (c *ClientWithResponses) RenameVPCWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, body RenameVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*RenameVPCResponse, error)
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 request with arbitrary body returning *ResizeReplicaSetResponse
func (*ClientWithResponses) ResizeReplicaSetWithResponse ¶
func (c *ClientWithResponses) ResizeReplicaSetWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, body ResizeReplicaSetJSONRequestBody, reqEditors ...RequestEditorFn) (*ResizeReplicaSetResponse, error)
func (*ClientWithResponses) ResizeServiceWithBodyWithResponse ¶
func (c *ClientWithResponses) ResizeServiceWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResizeServiceResponse, error)
ResizeServiceWithBodyWithResponse request with arbitrary body returning *ResizeServiceResponse
func (*ClientWithResponses) ResizeServiceWithResponse ¶
func (c *ClientWithResponses) ResizeServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body ResizeServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*ResizeServiceResponse, error)
func (*ClientWithResponses) SetEnvironmentWithBodyWithResponse ¶
func (c *ClientWithResponses) SetEnvironmentWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetEnvironmentResponse, error)
SetEnvironmentWithBodyWithResponse request with arbitrary body returning *SetEnvironmentResponse
func (*ClientWithResponses) SetEnvironmentWithResponse ¶
func (c *ClientWithResponses) SetEnvironmentWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body SetEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*SetEnvironmentResponse, error)
func (*ClientWithResponses) SetHAReplicaWithBodyWithResponse ¶
func (c *ClientWithResponses) SetHAReplicaWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetHAReplicaResponse, error)
SetHAReplicaWithBodyWithResponse request with arbitrary body returning *SetHAReplicaResponse
func (*ClientWithResponses) SetHAReplicaWithResponse ¶
func (c *ClientWithResponses) SetHAReplicaWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body SetHAReplicaJSONRequestBody, reqEditors ...RequestEditorFn) (*SetHAReplicaResponse, error)
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 request with arbitrary body returning *SetReplicaEnvironmentResponse
func (*ClientWithResponses) SetReplicaEnvironmentWithResponse ¶
func (c *ClientWithResponses) SetReplicaEnvironmentWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, body SetReplicaEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*SetReplicaEnvironmentResponse, error)
func (*ClientWithResponses) StartServiceWithResponse ¶
func (c *ClientWithResponses) StartServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*StartServiceResponse, error)
StartServiceWithResponse request returning *StartServiceResponse
func (*ClientWithResponses) StopServiceWithResponse ¶
func (c *ClientWithResponses) StopServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*StopServiceResponse, error)
StopServiceWithResponse request returning *StopServiceResponse
func (*ClientWithResponses) TrackEventWithBodyWithResponse ¶
func (c *ClientWithResponses) TrackEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TrackEventResponse, error)
TrackEventWithBodyWithResponse request with arbitrary body returning *TrackEventResponse
func (*ClientWithResponses) TrackEventWithResponse ¶
func (c *ClientWithResponses) TrackEventWithResponse(ctx context.Context, body TrackEventJSONRequestBody, reqEditors ...RequestEditorFn) (*TrackEventResponse, error)
func (*ClientWithResponses) UpdatePasswordWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdatePasswordWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePasswordResponse, error)
UpdatePasswordWithBodyWithResponse request with arbitrary body returning *UpdatePasswordResponse
func (*ClientWithResponses) UpdatePasswordWithResponse ¶
func (c *ClientWithResponses) UpdatePasswordWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body UpdatePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePasswordResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// IdentifyUserWithBodyWithResponse request with any body
IdentifyUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error)
IdentifyUserWithResponse(ctx context.Context, body IdentifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error)
// TrackEventWithBodyWithResponse request with any body
TrackEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TrackEventResponse, error)
TrackEventWithResponse(ctx context.Context, body TrackEventJSONRequestBody, reqEditors ...RequestEditorFn) (*TrackEventResponse, error)
// GetAuthInfoWithResponse request
GetAuthInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAuthInfoResponse, error)
// LogoutWithBodyWithResponse request with any body
LogoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LogoutResponse, error)
LogoutWithResponse(ctx context.Context, body LogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*LogoutResponse, error)
// GetProjectsWithResponse request
GetProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)
// GetServicesWithResponse request
GetServicesWithResponse(ctx context.Context, projectID ProjectID, reqEditors ...RequestEditorFn) (*GetServicesResponse, error)
// CreateServiceWithBodyWithResponse request with any body
CreateServiceWithBodyWithResponse(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error)
CreateServiceWithResponse(ctx context.Context, projectID ProjectID, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error)
// DeleteServiceWithResponse request
DeleteServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*DeleteServiceResponse, error)
// GetServiceWithResponse request
GetServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*GetServiceResponse, error)
// AttachServiceToVPCWithBodyWithResponse request with any body
AttachServiceToVPCWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachServiceToVPCResponse, error)
AttachServiceToVPCWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body AttachServiceToVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachServiceToVPCResponse, error)
// DetachServiceFromVPCWithBodyWithResponse request with any body
DetachServiceFromVPCWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DetachServiceFromVPCResponse, error)
DetachServiceFromVPCWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body DetachServiceFromVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*DetachServiceFromVPCResponse, error)
// DisablePoolerWithResponse request
DisablePoolerWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*DisablePoolerResponse, error)
// EnablePoolerWithResponse request
EnablePoolerWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*EnablePoolerResponse, error)
// ForkServiceWithBodyWithResponse request with any body
ForkServiceWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ForkServiceResponse, error)
ForkServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body ForkServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*ForkServiceResponse, error)
// GetServiceLogsWithResponse request
GetServiceLogsWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, params *GetServiceLogsParams, reqEditors ...RequestEditorFn) (*GetServiceLogsResponse, error)
// GetServiceMetricsAvailableSeriesWithResponse request
GetServiceMetricsAvailableSeriesWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*GetServiceMetricsAvailableSeriesResponse, error)
// GetServiceMetricsSeriesWithBodyWithResponse request with any body
GetServiceMetricsSeriesWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetServiceMetricsSeriesResponse, error)
GetServiceMetricsSeriesWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body GetServiceMetricsSeriesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetServiceMetricsSeriesResponse, error)
// RenameServiceWithBodyWithResponse request with any body
RenameServiceWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenameServiceResponse, error)
RenameServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body RenameServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*RenameServiceResponse, error)
// GetReplicaSetsWithResponse request
GetReplicaSetsWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*GetReplicaSetsResponse, error)
// CreateReplicaSetWithBodyWithResponse request with any body
CreateReplicaSetWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReplicaSetResponse, error)
CreateReplicaSetWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body CreateReplicaSetJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReplicaSetResponse, error)
// DeleteReplicaSetWithResponse request
DeleteReplicaSetWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*DeleteReplicaSetResponse, error)
// DisableReplicaPoolerWithResponse request
DisableReplicaPoolerWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*DisableReplicaPoolerResponse, error)
// EnableReplicaPoolerWithResponse request
EnableReplicaPoolerWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, reqEditors ...RequestEditorFn) (*EnableReplicaPoolerResponse, error)
// ResizeReplicaSetWithBodyWithResponse request with any body
ResizeReplicaSetWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResizeReplicaSetResponse, error)
ResizeReplicaSetWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, body ResizeReplicaSetJSONRequestBody, reqEditors ...RequestEditorFn) (*ResizeReplicaSetResponse, error)
// SetReplicaEnvironmentWithBodyWithResponse request with any body
SetReplicaEnvironmentWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetReplicaEnvironmentResponse, error)
SetReplicaEnvironmentWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, replicaSetID ReplicaSetID, body SetReplicaEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*SetReplicaEnvironmentResponse, error)
// ResizeServiceWithBodyWithResponse request with any body
ResizeServiceWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResizeServiceResponse, error)
ResizeServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body ResizeServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*ResizeServiceResponse, error)
// SetEnvironmentWithBodyWithResponse request with any body
SetEnvironmentWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetEnvironmentResponse, error)
SetEnvironmentWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body SetEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*SetEnvironmentResponse, error)
// SetHAReplicaWithBodyWithResponse request with any body
SetHAReplicaWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetHAReplicaResponse, error)
SetHAReplicaWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body SetHAReplicaJSONRequestBody, reqEditors ...RequestEditorFn) (*SetHAReplicaResponse, error)
// StartServiceWithResponse request
StartServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*StartServiceResponse, error)
// StopServiceWithResponse request
StopServiceWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, reqEditors ...RequestEditorFn) (*StopServiceResponse, error)
// UpdatePasswordWithBodyWithResponse request with any body
UpdatePasswordWithBodyWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePasswordResponse, error)
UpdatePasswordWithResponse(ctx context.Context, projectID ProjectID, serviceID ServiceID, body UpdatePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePasswordResponse, error)
// GetVPCsWithResponse request
GetVPCsWithResponse(ctx context.Context, projectID ProjectID, reqEditors ...RequestEditorFn) (*GetVPCsResponse, error)
// CreateVPCWithBodyWithResponse request with any body
CreateVPCWithBodyWithResponse(ctx context.Context, projectID ProjectID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVPCResponse, error)
CreateVPCWithResponse(ctx context.Context, projectID ProjectID, body CreateVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVPCResponse, error)
// DeleteVPCWithResponse request
DeleteVPCWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, reqEditors ...RequestEditorFn) (*DeleteVPCResponse, error)
// GetVPCWithResponse request
GetVPCWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, reqEditors ...RequestEditorFn) (*GetVPCResponse, error)
// GetVPCPeeringsWithResponse request
GetVPCPeeringsWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, reqEditors ...RequestEditorFn) (*GetVPCPeeringsResponse, error)
// CreateVPCPeeringWithBodyWithResponse request with any body
CreateVPCPeeringWithBodyWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVPCPeeringResponse, error)
CreateVPCPeeringWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, body CreateVPCPeeringJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVPCPeeringResponse, error)
// DeleteVPCPeeringWithResponse request
DeleteVPCPeeringWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, peeringID PeeringID, reqEditors ...RequestEditorFn) (*DeleteVPCPeeringResponse, error)
// GetVPCPeeringWithResponse request
GetVPCPeeringWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, peeringID PeeringID, reqEditors ...RequestEditorFn) (*GetVPCPeeringResponse, error)
// RenameVPCWithBodyWithResponse request with any body
RenameVPCWithBodyWithResponse(ctx context.Context, projectID ProjectID, vpcID VPCId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenameVPCResponse, error)
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 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 CreateReplicaSetJSONRequestBody ¶
type CreateReplicaSetJSONRequestBody = ReadReplicaSetCreate
CreateReplicaSetJSONRequestBody defines body for CreateReplicaSet for application/json ContentType.
type CreateReplicaSetResponse ¶
type CreateReplicaSetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *ReadReplicaSet
JSON4XX *ClientError
}
func ParseCreateReplicaSetResponse ¶
func ParseCreateReplicaSetResponse(rsp *http.Response) (*CreateReplicaSetResponse, error)
ParseCreateReplicaSetResponse parses an HTTP response from a CreateReplicaSetWithResponse call
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 *Service
JSON4XX *ClientError
}
func ParseCreateServiceResponse ¶
func ParseCreateServiceResponse(rsp *http.Response) (*CreateServiceResponse, error)
ParseCreateServiceResponse parses an HTTP response from a CreateServiceWithResponse call
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 *Peering
JSON4XX *ClientError
}
func ParseCreateVPCPeeringResponse ¶
func ParseCreateVPCPeeringResponse(rsp *http.Response) (*CreateVPCPeeringResponse, error)
ParseCreateVPCPeeringResponse parses an HTTP response from a CreateVPCPeeringWithResponse call
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 *VPC
JSON4XX *ClientError
}
func ParseCreateVPCResponse ¶
func ParseCreateVPCResponse(rsp *http.Response) (*CreateVPCResponse, error)
ParseCreateVPCResponse parses an HTTP response from a CreateVPCWithResponse call
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 DeleteReplicaSetResponse ¶
type DeleteReplicaSetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON4XX *ClientError
}
func ParseDeleteReplicaSetResponse ¶
func ParseDeleteReplicaSetResponse(rsp *http.Response) (*DeleteReplicaSetResponse, error)
ParseDeleteReplicaSetResponse parses an HTTP response from a DeleteReplicaSetWithResponse call
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 *ClientError
}
func ParseDeleteServiceResponse ¶
func ParseDeleteServiceResponse(rsp *http.Response) (*DeleteServiceResponse, error)
ParseDeleteServiceResponse parses an HTTP response from a DeleteServiceWithResponse call
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 *ClientError
}
func ParseDeleteVPCPeeringResponse ¶
func ParseDeleteVPCPeeringResponse(rsp *http.Response) (*DeleteVPCPeeringResponse, error)
ParseDeleteVPCPeeringResponse parses an HTTP response from a DeleteVPCPeeringWithResponse call
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 *ClientError
}
func ParseDeleteVPCResponse ¶
func ParseDeleteVPCResponse(rsp *http.Response) (*DeleteVPCResponse, error)
ParseDeleteVPCResponse parses an HTTP response from a DeleteVPCWithResponse call
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.
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 *SuccessMessage
JSON4XX *ClientError
}
func ParseDetachServiceFromVPCResponse ¶
func ParseDetachServiceFromVPCResponse(rsp *http.Response) (*DetachServiceFromVPCResponse, error)
ParseDetachServiceFromVPCResponse parses an HTTP response from a DetachServiceFromVPCWithResponse call
func (DetachServiceFromVPCResponse) Status ¶
func (r DetachServiceFromVPCResponse) Status() string
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 *SuccessMessage
JSON4XX *ClientError
}
func ParseDisablePoolerResponse ¶
func ParseDisablePoolerResponse(rsp *http.Response) (*DisablePoolerResponse, error)
ParseDisablePoolerResponse parses an HTTP response from a DisablePoolerWithResponse call
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 *SuccessMessage
JSON4XX *ClientError
}
func ParseDisableReplicaPoolerResponse ¶
func ParseDisableReplicaPoolerResponse(rsp *http.Response) (*DisableReplicaPoolerResponse, error)
ParseDisableReplicaPoolerResponse parses an HTTP response from a DisableReplicaPoolerWithResponse call
func (DisableReplicaPoolerResponse) Status ¶
func (r DisableReplicaPoolerResponse) Status() string
Status returns HTTPResponse.Status
func (DisableReplicaPoolerResponse) StatusCode ¶
func (r DisableReplicaPoolerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EnablePoolerResponse ¶
type EnablePoolerResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessMessage
JSON4XX *ClientError
}
func ParseEnablePoolerResponse ¶
func ParseEnablePoolerResponse(rsp *http.Response) (*EnablePoolerResponse, error)
ParseEnablePoolerResponse parses an HTTP response from a EnablePoolerWithResponse call
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 *SuccessMessage
JSON4XX *ClientError
}
func ParseEnableReplicaPoolerResponse ¶
func ParseEnableReplicaPoolerResponse(rsp *http.Response) (*EnableReplicaPoolerResponse, error)
ParseEnableReplicaPoolerResponse parses an HTTP response from a EnableReplicaPoolerWithResponse call
func (EnableReplicaPoolerResponse) Status ¶
func (r EnableReplicaPoolerResponse) Status() string
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.
Host *string `json:"host,omitempty"`
// Port The port of the endpoint.
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.
type Error ¶
type Error struct {
// Code A machine-readable error code.
Code *string `json:"code,omitempty"`
// Details additional context, sent by the API but not yet in its spec. Hand-added, not regenerated from openapi.yaml.
Details *string `json:"details,omitempty"`
// Message A human-readable error message.
Message *string `json:"message,omitempty"`
}
Error An error returned when a request cannot be completed.
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.
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.
MemoryGbs *string `json:"memory_gbs,omitempty"`
// Name A human-readable name for the forked service. If not provided, will use parent service name with "-fork" suffix.
Name *string `json:"name,omitempty"`
// TargetTime Target time for point-in-time recovery. Required when fork_strategy is PITR.
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 *Service
JSON4XX *ClientError
}
func ParseForkServiceResponse ¶
func ParseForkServiceResponse(rsp *http.Response) (*ForkServiceResponse, error)
ParseForkServiceResponse parses an HTTP response from a ForkServiceWithResponse call
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.
IsStandby *bool `json:"is_standby,omitempty"`
// ProjectID The project of the parent service.
ProjectID *string `json:"project_id,omitempty"`
// ServiceID The ID of the parent service.
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.
type GetAuthInfoResponse ¶
type GetAuthInfoResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AuthInfo
JSON4XX *ClientError
}
func ParseGetAuthInfoResponse ¶
func ParseGetAuthInfoResponse(rsp *http.Response) (*GetAuthInfoResponse, error)
ParseGetAuthInfoResponse parses an HTTP response from a GetAuthInfoWithResponse call
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 GetProjectsResponse ¶
type GetProjectsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Project
JSON4XX *ClientError
}
func ParseGetProjectsResponse ¶
func ParseGetProjectsResponse(rsp *http.Response) (*GetProjectsResponse, error)
ParseGetProjectsResponse parses an HTTP response from a GetProjectsWithResponse call
func (GetProjectsResponse) Status ¶
func (r GetProjectsResponse) Status() string
Status returns HTTPResponse.Status
func (GetProjectsResponse) StatusCode ¶
func (r GetProjectsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetReplicaSetsResponse ¶
type GetReplicaSetsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]ReadReplicaSet
JSON4XX *ClientError
}
func ParseGetReplicaSetsResponse ¶
func ParseGetReplicaSetsResponse(rsp *http.Response) (*GetReplicaSetsResponse, error)
ParseGetReplicaSetsResponse parses an HTTP response from a GetReplicaSetsWithResponse call
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 *ServiceLogs
JSON4XX *ClientError
}
func ParseGetServiceLogsResponse ¶
func ParseGetServiceLogsResponse(rsp *http.Response) (*GetServiceLogsResponse, error)
ParseGetServiceLogsResponse parses an HTTP response from a GetServiceLogsWithResponse call
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 GetServiceMetricsAvailableSeriesResponse ¶
type GetServiceMetricsAvailableSeriesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]string
JSON4XX *ClientError
}
func ParseGetServiceMetricsAvailableSeriesResponse ¶
func ParseGetServiceMetricsAvailableSeriesResponse(rsp *http.Response) (*GetServiceMetricsAvailableSeriesResponse, error)
ParseGetServiceMetricsAvailableSeriesResponse parses an HTTP response from a GetServiceMetricsAvailableSeriesWithResponse call
func (GetServiceMetricsAvailableSeriesResponse) Status ¶
func (r GetServiceMetricsAvailableSeriesResponse) Status() string
Status returns HTTPResponse.Status
func (GetServiceMetricsAvailableSeriesResponse) StatusCode ¶
func (r GetServiceMetricsAvailableSeriesResponse) StatusCode() int
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 *[]MetricSeries
JSON4XX *ClientError
}
func ParseGetServiceMetricsSeriesResponse ¶
func ParseGetServiceMetricsSeriesResponse(rsp *http.Response) (*GetServiceMetricsSeriesResponse, error)
ParseGetServiceMetricsSeriesResponse parses an HTTP response from a GetServiceMetricsSeriesWithResponse call
func (GetServiceMetricsSeriesResponse) Status ¶
func (r GetServiceMetricsSeriesResponse) Status() string
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 *Service
JSON4XX *ClientError
}
func ParseGetServiceResponse ¶
func ParseGetServiceResponse(rsp *http.Response) (*GetServiceResponse, error)
ParseGetServiceResponse parses an HTTP response from a GetServiceWithResponse call
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 GetServicesResponse ¶
type GetServicesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Service
JSON4XX *ClientError
}
func ParseGetServicesResponse ¶
func ParseGetServicesResponse(rsp *http.Response) (*GetServicesResponse, error)
ParseGetServicesResponse parses an HTTP response from a GetServicesWithResponse call
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 *Peering
JSON4XX *ClientError
}
func ParseGetVPCPeeringResponse ¶
func ParseGetVPCPeeringResponse(rsp *http.Response) (*GetVPCPeeringResponse, error)
ParseGetVPCPeeringResponse parses an HTTP response from a GetVPCPeeringWithResponse call
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 *[]Peering
JSON4XX *ClientError
}
func ParseGetVPCPeeringsResponse ¶
func ParseGetVPCPeeringsResponse(rsp *http.Response) (*GetVPCPeeringsResponse, error)
ParseGetVPCPeeringsResponse parses an HTTP response from a GetVPCPeeringsWithResponse call
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 *VPC
JSON4XX *ClientError
}
func ParseGetVPCResponse ¶
func ParseGetVPCResponse(rsp *http.Response) (*GetVPCResponse, error)
ParseGetVPCResponse parses an HTTP response from a GetVPCWithResponse call
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 *[]VPC
JSON4XX *ClientError
}
func ParseGetVPCsResponse ¶
func ParseGetVPCsResponse(rsp *http.Response) (*GetVPCsResponse, error)
ParseGetVPCsResponse parses an HTTP response from a GetVPCsWithResponse call
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).
ReplicaCount *int `json:"replica_count,omitempty"`
// SyncReplicaCount Number of synchronous high-availability replicas.
SyncReplicaCount *int `json:"sync_replica_count,omitempty"`
}
HAReplica High-availability replica configuration for a service.
type HttpRequestDoer ¶
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.
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 *AnalyticsResponse
JSON4XX *ClientError
}
func ParseIdentifyUserResponse ¶
func ParseIdentifyUserResponse(rsp *http.Response) (*IdentifyUserResponse, error)
ParseIdentifyUserResponse parses an HTTP response from a IdentifyUserWithResponse call
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 *ClientError
}
func ParseLogoutResponse ¶
func ParseLogoutResponse(rsp *http.Response) (*LogoutResponse, error)
ParseLogoutResponse parses an HTTP response from a LogoutWithResponse call
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.
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.
Value *float64 `json:"value"`
}
MetricDataPoint A single time/value pair within a MetricSeries.
type MetricLabelFilter ¶
type MetricLabelFilter struct {
// Key Label key to match against, e.g. `role` or `job_id`.
Key string `json:"key"`
// Value Label value to match. Case sensitivity follows the underlying metric's storage convention.
Value string `json:"value"`
}
MetricLabelFilter A single key/value label match applied to a metric series query.
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 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.
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`
// - `timescale_cloud_database_qps`
// - `timescale_cloud_database_num_connections`
// - `timescale_cloud_database_job_duration_usecs`
// - `timescale_cloud_database_job_success`
//
// Values:
// - `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.
// - `COUNT`: number of samples in the bucket.
// - `P50` / `P90` / `P99`: percentile approximations (only valid
// for metrics stored as sketches).
// - `LAST`: the most recent sample in the bucket (default).
Fn *MetricsSeriesRequestFn `json:"fn,omitempty"`
// From Start of the time window (RFC3339; nanosecond precision accepted).
From time.Time `json:"from"`
// Name Metric series name. Use getServiceMetricsAvailableSeries to discover valid values.
Name string `json:"name"`
// To End of the time window (RFC3339; nanosecond precision accepted).
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 MetricsSeriesRequestFn ¶
type MetricsSeriesRequestFn string
MetricsSeriesRequestFn 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`
- `timescale_cloud_database_qps`
- `timescale_cloud_database_num_connections`
- `timescale_cloud_database_job_duration_usecs`
- `timescale_cloud_database_job_success`
Values:
- `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.
- `COUNT`: number of samples in the bucket.
- `P50` / `P90` / `P99`: percentile approximations (only valid for metrics stored as sketches).
- `LAST`: the most recent sample in the bucket (default).
const ( MetricsSeriesRequestFnAVG MetricsSeriesRequestFn = "AVG" MetricsSeriesRequestFnCOUNT MetricsSeriesRequestFn = "COUNT" MetricsSeriesRequestFnINCREASE MetricsSeriesRequestFn = "INCREASE" MetricsSeriesRequestFnLAST MetricsSeriesRequestFn = "LAST" MetricsSeriesRequestFnMAX MetricsSeriesRequestFn = "MAX" MetricsSeriesRequestFnMIN MetricsSeriesRequestFn = "MIN" MetricsSeriesRequestFnP50 MetricsSeriesRequestFn = "P50" MetricsSeriesRequestFnP90 MetricsSeriesRequestFn = "P90" MetricsSeriesRequestFnP99 MetricsSeriesRequestFn = "P99" MetricsSeriesRequestFnRATE MetricsSeriesRequestFn = "RATE" MetricsSeriesRequestFnSUM MetricsSeriesRequestFn = "SUM" )
Defines values for MetricsSeriesRequestFn.
type Peering ¶
type Peering struct {
// ErrorMessage A human-readable error message when the peering connection failed.
ErrorMessage *string `json:"error_message,omitempty"`
// ID The unique identifier for the peering connection.
ID *string `json:"id,omitempty"`
// PeerAccountID The cloud account ID of the peer VPC.
PeerAccountID string `json:"peer_account_id"`
// PeerRegionCode The cloud region of the peer VPC.
PeerRegionCode string `json:"peer_region_code"`
// PeerVpcID The ID of the peer VPC.
PeerVpcID string `json:"peer_vpc_id"`
// ProvisionedID The provider-assigned identifier for the provisioned peering.
ProvisionedID *string `json:"provisioned_id,omitempty"`
// Status The current status of the peering connection.
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.
PeerAccountID string `json:"peer_account_id"`
// PeerRegionCode The cloud region of the peer VPC.
PeerRegionCode string `json:"peer_region_code"`
// PeerVpcID The ID of the peer VPC.
PeerVpcID string `json:"peer_vpc_id"`
}
PeeringCreate Parameters for creating a VPC peering connection.
type Project ¶
type Project struct {
// ID The unique identifier for the project.
ID string `json:"id"`
// Name The name of the project.
Name string `json:"name"`
}
Project A project that organizes your Tiger Cloud resources, such as services and VPCs.
type ReadReplicaSet ¶
type ReadReplicaSet struct {
// ConnectionPooler Connection pooler configuration for a service.
ConnectionPooler *ConnectionPooler `json:"connection_pooler,omitempty"`
// CPUMillis CPU allocation in milli-cores.
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.
ID string `json:"id"`
// MemoryGbs Memory allocation in gigabytes.
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.
Name string `json:"name"`
// Nodes Number of nodes in the replica set.
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
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.
CPUMillis int `json:"cpu_millis"`
// MemoryGbs The initial memory allocation in gigabytes.
MemoryGbs int `json:"memory_gbs"`
// Name A human-readable name for the read replica.
Name string `json:"name"`
// Nodes Number of nodes to create in the replica set.
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
const ( ReadReplicaSetStatusActive ReadReplicaSetStatus = "active" ReadReplicaSetStatusCreating ReadReplicaSetStatus = "creating" ReadReplicaSetStatusDeleting ReadReplicaSetStatus = "deleting" ReadReplicaSetStatusError ReadReplicaSetStatus = "error" ReadReplicaSetStatusResizing ReadReplicaSetStatus = "resizing" )
Defines values for ReadReplicaSetStatus.
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 *Service
JSON4XX *ClientError
}
func ParseRenameServiceResponse ¶
func ParseRenameServiceResponse(rsp *http.Response) (*RenameServiceResponse, error)
ParseRenameServiceResponse parses an HTTP response from a RenameServiceWithResponse call
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 *SuccessMessage
JSON4XX *ClientError
}
func ParseRenameVPCResponse ¶
func ParseRenameVPCResponse(rsp *http.Response) (*RenameVPCResponse, error)
ParseRenameVPCResponse parses an HTTP response from a RenameVPCWithResponse call
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 ReplicaSetMetadata ¶
type ReplicaSetMetadata struct {
// Environment Environment tag for the read replica set.
Environment *string `json:"environment,omitempty"`
}
ReplicaSetMetadata Additional metadata for the read replica set.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ResizeInput ¶
type ResizeInput struct {
// CPUMillis The new CPU allocation in milli-cores.
CPUMillis string `json:"cpu_millis"`
// MemoryGbs The new memory allocation in gigabytes.
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 *SuccessMessage
JSON4XX *ClientError
}
func ParseResizeReplicaSetResponse ¶
func ParseResizeReplicaSetResponse(rsp *http.Response) (*ResizeReplicaSetResponse, error)
ParseResizeReplicaSetResponse parses an HTTP response from a ResizeReplicaSetWithResponse call
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 *Service
JSON4XX *ClientError
}
func ParseResizeServiceResponse ¶
func ParseResizeServiceResponse(rsp *http.Response) (*ResizeServiceResponse, error)
ParseResizeServiceResponse parses an HTTP response from a ResizeServiceWithResponse call
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.
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.
CPUMillis *int `json:"cpu_millis,omitempty"`
// MemoryGbs Memory allocation in gigabytes.
MemoryGbs *int `json:"memory_gbs,omitempty"`
// VolumeType Type of storage volume.
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.
Created time.Time `json:"created"`
// 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.
InitialPassword *string `json:"initial_password,omitempty"`
// Metadata Additional metadata for the service.
Metadata *ServiceMetadata `json:"metadata,omitempty"`
// Metrics Resource usage metrics for the service.
Metrics *ServiceMetrics `json:"metrics"`
// Name The name of the service.
Name string `json:"name"`
// ProjectID The project this service belongs to.
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.
RegionCode string `json:"region_code"`
// Resources List of resources allocated to the service.
Resources []Resource `json:"resources"`
// ServiceID The unique identifier for the service.
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 ServiceCreate ¶
type ServiceCreate struct {
// Addons List of addons to enable for the service. 'time-series' enables TimescaleDB, 'ai' enables AI/vector extensions.
Addons *[]ServiceCreateAddons `json:"addons,omitempty"`
// CPUMillis The initial CPU allocation in milli-cores, or 'shared' for a shared-resource service.
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.
MemoryGbs *string `json:"memory_gbs,omitempty"`
// Name A human-readable name for the service.
Name string `json:"name"`
// RegionCode The region where the service will be created. If not provided, we'll choose the best region for you.
RegionCode *string `json:"region_code,omitempty"`
// ReplicaCount Number of high-availability replicas to create (all replicas are asynchronous by default).
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.
type ServiceLogEntry ¶
type ServiceLogEntry struct {
// Message Log message text.
Message string `json:"message"`
// Severity PostgreSQL severity level (e.g. LOG, WARNING, ERROR, FATAL).
Severity string `json:"severity"`
// Timestamp Timestamp of the log entry (RFC3339 format).
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.
// 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.
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.
Environment *string `json:"environment,omitempty"`
}
ServiceMetadata Additional metadata for the service.
type ServiceMetrics ¶
type ServiceMetrics struct {
// MemoryMb Memory usage in megabytes.
MemoryMb *int `json:"memory_mb"`
// MilliCPU CPU usage in millicores.
MilliCPU *int `json:"milli_cpu"`
// StorageMb Storage usage in megabytes.
StorageMb *int `json:"storage_mb"`
}
ServiceMetrics Resource usage metrics for the service.
type ServiceRename ¶
type ServiceRename struct {
// Name The new name for the 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.
type ServiceVPCInput ¶
type ServiceVPCInput struct {
// VpcID The ID of the VPC to attach the service to.
VpcID string `json:"vpc_id"`
}
ServiceVPCInput Parameters for attaching a service to a VPC.
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.
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.
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 *SuccessMessage
JSON4XX *ClientError
}
func ParseSetEnvironmentResponse ¶
func ParseSetEnvironmentResponse(rsp *http.Response) (*SetEnvironmentResponse, error)
ParseSetEnvironmentResponse parses an HTTP response from a SetEnvironmentWithResponse call
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).
ReplicaCount *int `json:"replica_count,omitempty"`
// SyncReplicaCount Number of synchronous high-availability replicas.
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 *Service
JSON4XX *ClientError
}
func ParseSetHAReplicaResponse ¶
func ParseSetHAReplicaResponse(rsp *http.Response) (*SetHAReplicaResponse, error)
ParseSetHAReplicaResponse parses an HTTP response from a SetHAReplicaWithResponse call
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 *SuccessMessage
JSON4XX *ClientError
}
func ParseSetReplicaEnvironmentResponse ¶
func ParseSetReplicaEnvironmentResponse(rsp *http.Response) (*SetReplicaEnvironmentResponse, error)
ParseSetReplicaEnvironmentResponse parses an HTTP response from a SetReplicaEnvironmentWithResponse call
func (SetReplicaEnvironmentResponse) Status ¶
func (r SetReplicaEnvironmentResponse) Status() string
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 *Service
JSON4XX *ClientError
}
func ParseStartServiceResponse ¶
func ParseStartServiceResponse(rsp *http.Response) (*StartServiceResponse, error)
ParseStartServiceResponse parses an HTTP response from a StartServiceWithResponse call
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 *Service
JSON4XX *ClientError
}
func ParseStopServiceResponse ¶
func ParseStopServiceResponse(rsp *http.Response) (*StopServiceResponse, error)
ParseStopServiceResponse parses an HTTP response from a StopServiceWithResponse call
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 SuccessMessage ¶
type SuccessMessage struct {
Message *string `json:"message,omitempty"`
}
SuccessMessage defines model for SuccessMessage.
type TrackEventJSONBody ¶
type TrackEventJSONBody struct {
// Event The name of the event to track.
Event string `json:"event"`
// Properties Optional map of arbitrary properties associated with the event.
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 *AnalyticsResponse
JSON4XX *ClientError
}
func ParseTrackEventResponse ¶
func ParseTrackEventResponse(rsp *http.Response) (*TrackEventResponse, error)
ParseTrackEventResponse parses an HTTP response from a TrackEventWithResponse call
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 UpdatePasswordInput ¶
type UpdatePasswordInput struct {
// Password The 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 *ClientError
}
func ParseUpdatePasswordResponse ¶
func ParseUpdatePasswordResponse(rsp *http.Response) (*UpdatePasswordResponse, error)
ParseUpdatePasswordResponse parses an HTTP response from a UpdatePasswordWithResponse call
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).
Cidr string `json:"cidr"`
// ID The unique identifier for the VPC.
ID *string `json:"id,omitempty"`
// Name The name of the VPC.
Name string `json:"name"`
// RegionCode The cloud region where the VPC is hosted.
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).
Cidr string `json:"cidr"`
// Name The name of the VPC.
Name string `json:"name"`
// RegionCode The cloud region where the VPC will be created.
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.
Host *string `json:"host,omitempty"`
// Port The port for connecting to the service over VPC peering.
Port *int `json:"port,omitempty"`
// VpcID The ID of the VPC the endpoint is associated with.
VpcID *string `json:"vpc_id,omitempty"`
}
VPCEndpoint VPC endpoint configuration for connecting to a service over VPC peering.