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 ¶
- 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 NewGetReplicaSetsRequest(server string, projectId ProjectId, serviceId ServiceId) (*http.Request, error)
- func NewGetServiceLogsRequest(server string, projectId ProjectId, serviceId ServiceId, ...) (*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 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 AuthInfoType
- 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) 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) 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) 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 (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) 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) 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) 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 GetReplicaSetsResponse
- type GetServiceLogsParams
- type GetServiceLogsResponse
- type GetServiceResponse
- type GetServicesResponse
- type GetVPCPeeringResponse
- type GetVPCPeeringsResponse
- type GetVPCResponse
- type GetVPCsResponse
- type HAReplica
- type HttpRequestDoer
- type IdentifyUserJSONBody
- type IdentifyUserJSONRequestBody
- type IdentifyUserResponse
- type Peering
- type PeeringCreate
- type PeeringId
- type ProjectId
- type ReadReplicaSet
- type ReadReplicaSetCreate
- type ReadReplicaSetStatus
- type RenameVPCJSONRequestBody
- type RenameVPCResponse
- type ReplicaSetId
- type RequestEditorFn
- type ResizeInput
- type ResizeReplicaSetJSONRequestBody
- type ResizeReplicaSetResponse
- type ResizeServiceJSONRequestBody
- type ResizeServiceResponse
- type Service
- type ServiceCreate
- type ServiceCreateAddons
- type ServiceId
- type ServiceLogs
- 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 VPCId
- type VPCRename
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAttachServiceToVPCRequest ¶ added in v0.20.0
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 ¶ added in v0.20.0
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 ¶ added in v0.20.0
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 ¶ added in v0.20.0
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 ¶ added in v0.20.0
func NewCreateServiceRequest(server string, projectId ProjectId, body CreateServiceJSONRequestBody) (*http.Request, error)
NewCreateServiceRequest calls the generic CreateService builder with application/json body
func NewCreateServiceRequestWithBody ¶ added in v0.20.0
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 ¶ added in v0.20.0
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 ¶ added in v0.20.0
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 ¶ added in v0.20.0
func NewCreateVPCRequest(server string, projectId ProjectId, body CreateVPCJSONRequestBody) (*http.Request, error)
NewCreateVPCRequest calls the generic CreateVPC builder with application/json body
func NewCreateVPCRequestWithBody ¶ added in v0.20.0
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 ¶ added in v0.20.0
func NewDeleteReplicaSetRequest(server string, projectId ProjectId, serviceId ServiceId, replicaSetId ReplicaSetId) (*http.Request, error)
NewDeleteReplicaSetRequest generates requests for DeleteReplicaSet
func NewDeleteServiceRequest ¶ added in v0.20.0
func NewDeleteServiceRequest(server string, projectId ProjectId, serviceId ServiceId) (*http.Request, error)
NewDeleteServiceRequest generates requests for DeleteService
func NewDeleteVPCPeeringRequest ¶ added in v0.20.0
func NewDeleteVPCPeeringRequest(server string, projectId ProjectId, vpcId VPCId, peeringId PeeringId) (*http.Request, error)
NewDeleteVPCPeeringRequest generates requests for DeleteVPCPeering
func NewDeleteVPCRequest ¶ added in v0.20.0
NewDeleteVPCRequest generates requests for DeleteVPC
func NewDetachServiceFromVPCRequest ¶ added in v0.20.0
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 ¶ added in v0.20.0
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 ¶ added in v0.20.0
func NewDisablePoolerRequest(server string, projectId ProjectId, serviceId ServiceId) (*http.Request, error)
NewDisablePoolerRequest generates requests for DisablePooler
func NewDisableReplicaPoolerRequest ¶ added in v0.20.0
func NewDisableReplicaPoolerRequest(server string, projectId ProjectId, serviceId ServiceId, replicaSetId ReplicaSetId) (*http.Request, error)
NewDisableReplicaPoolerRequest generates requests for DisableReplicaPooler
func NewEnablePoolerRequest ¶ added in v0.20.0
func NewEnablePoolerRequest(server string, projectId ProjectId, serviceId ServiceId) (*http.Request, error)
NewEnablePoolerRequest generates requests for EnablePooler
func NewEnableReplicaPoolerRequest ¶ added in v0.20.0
func NewEnableReplicaPoolerRequest(server string, projectId ProjectId, serviceId ServiceId, replicaSetId ReplicaSetId) (*http.Request, error)
NewEnableReplicaPoolerRequest generates requests for EnableReplicaPooler
func NewForkServiceRequest ¶ added in v0.20.0
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 ¶ added in v0.20.0
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 ¶ added in v0.18.0
NewGetAuthInfoRequest generates requests for GetAuthInfo
func NewGetReplicaSetsRequest ¶ added in v0.20.0
func NewGetReplicaSetsRequest(server string, projectId ProjectId, serviceId ServiceId) (*http.Request, error)
NewGetReplicaSetsRequest generates requests for GetReplicaSets
func NewGetServiceLogsRequest ¶ added in v0.20.0
func NewGetServiceLogsRequest(server string, projectId ProjectId, serviceId ServiceId, params *GetServiceLogsParams) (*http.Request, error)
NewGetServiceLogsRequest generates requests for GetServiceLogs
func NewGetServiceRequest ¶ added in v0.20.0
func NewGetServiceRequest(server string, projectId ProjectId, serviceId ServiceId) (*http.Request, error)
NewGetServiceRequest generates requests for GetService
func NewGetServicesRequest ¶ added in v0.20.0
NewGetServicesRequest generates requests for GetServices
func NewGetVPCPeeringRequest ¶ added in v0.20.0
func NewGetVPCPeeringRequest(server string, projectId ProjectId, vpcId VPCId, peeringId PeeringId) (*http.Request, error)
NewGetVPCPeeringRequest generates requests for GetVPCPeering
func NewGetVPCPeeringsRequest ¶ added in v0.20.0
func NewGetVPCPeeringsRequest(server string, projectId ProjectId, vpcId VPCId) (*http.Request, error)
NewGetVPCPeeringsRequest generates requests for GetVPCPeerings
func NewGetVPCRequest ¶ added in v0.20.0
NewGetVPCRequest generates requests for GetVPC
func NewGetVPCsRequest ¶ added in v0.20.0
NewGetVPCsRequest generates requests for GetVPCs
func NewIdentifyUserRequest ¶ added in v0.20.0
func NewIdentifyUserRequest(server string, body IdentifyUserJSONRequestBody) (*http.Request, error)
NewIdentifyUserRequest calls the generic IdentifyUser builder with application/json body
func NewIdentifyUserRequestWithBody ¶ added in v0.20.0
func NewIdentifyUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewIdentifyUserRequestWithBody generates requests for IdentifyUser with any type of body
func NewRenameVPCRequest ¶ added in v0.20.0
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 ¶ added in v0.20.0
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 ¶ added in v0.20.0
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 ¶ added in v0.20.0
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 ¶ added in v0.20.0
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 ¶ added in v0.20.0
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 ¶ added in v0.20.0
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 ¶ added in v0.20.0
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 ¶ added in v0.20.0
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 ¶ added in v0.20.0
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 ¶ added in v0.20.0
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 ¶ added in v0.20.0
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 ¶ added in v0.20.0
func NewStartServiceRequest(server string, projectId ProjectId, serviceId ServiceId) (*http.Request, error)
NewStartServiceRequest generates requests for StartService
func NewStopServiceRequest ¶ added in v0.20.0
func NewStopServiceRequest(server string, projectId ProjectId, serviceId ServiceId) (*http.Request, error)
NewStopServiceRequest generates requests for StopService
func NewTrackEventRequest ¶ added in v0.20.0
func NewTrackEventRequest(server string, body TrackEventJSONRequestBody) (*http.Request, error)
NewTrackEventRequest calls the generic TrackEvent builder with application/json body
func NewTrackEventRequestWithBody ¶ added in v0.20.0
func NewTrackEventRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewTrackEventRequestWithBody generates requests for TrackEvent with any type of body
func NewUpdatePasswordRequest ¶ added in v0.20.0
func NewUpdatePasswordRequest(server string, projectId ProjectId, serviceId ServiceId, body UpdatePasswordJSONRequestBody) (*http.Request, error)
NewUpdatePasswordRequest calls the generic UpdatePassword builder with application/json body
func NewUpdatePasswordRequestWithBody ¶ added in v0.20.0
func NewUpdatePasswordRequestWithBody(server string, projectId ProjectId, serviceId ServiceId, contentType string, body io.Reader) (*http.Request, error)
NewUpdatePasswordRequestWithBody generates requests for UpdatePassword with any type of body
Types ¶
type AnalyticsResponse ¶ added in v0.15.1
type AnalyticsResponse struct {
// Status Status of the analytics operation
Status *string `json:"status,omitempty"`
}
AnalyticsResponse defines model for AnalyticsResponse.
type AttachServiceToVPCJSONRequestBody ¶ added in v0.20.0
type AttachServiceToVPCJSONRequestBody = ServiceVPCInput
AttachServiceToVPCJSONRequestBody defines body for AttachServiceToVPC for application/json ContentType.
type AttachServiceToVPCResponse ¶ added in v0.20.0
type AttachServiceToVPCResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *SuccessMessage
JSON4XX *ClientError
}
func ParseAttachServiceToVPCResponse ¶ added in v0.20.0
func ParseAttachServiceToVPCResponse(rsp *http.Response) (*AttachServiceToVPCResponse, error)
ParseAttachServiceToVPCResponse parses an HTTP response from a AttachServiceToVPCWithResponse call
func (AttachServiceToVPCResponse) Status ¶ added in v0.20.0
func (r AttachServiceToVPCResponse) Status() string
Status returns HTTPResponse.Status
func (AttachServiceToVPCResponse) StatusCode ¶ added in v0.20.0
func (r AttachServiceToVPCResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuthInfo ¶ added in v0.18.0
type AuthInfo struct {
// ApiKey Information about the API key credentials
ApiKey struct {
// Created When the client credentials were created
Created time.Time `json:"created"`
// IssuingUser Information about the user who created the credentials
IssuingUser 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"`
} `json:"issuing_user"`
// Name The name of the credential
Name string `json:"name"`
// Project Information about the project
Project 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"`
} `json:"project"`
// PublicKey The public key of the client credentials
PublicKey string `json:"public_key"`
} `json:"apiKey"`
// Type The type of authentication being used
Type AuthInfoType `json:"type"`
}
AuthInfo defines model for AuthInfo.
type AuthInfoType ¶ added in v0.18.0
type AuthInfoType string
AuthInfoType The type of authentication being used
const (
ApiKey AuthInfoType = "apiKey"
)
Defines values for AuthInfoType.
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 ¶ added in v0.20.0
func (c *Client) AttachServiceToVPC(ctx context.Context, projectId ProjectId, serviceId ServiceId, body AttachServiceToVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AttachServiceToVPCWithBody ¶ added in v0.20.0
func (*Client) CreateReplicaSet ¶ added in v0.20.0
func (c *Client) CreateReplicaSet(ctx context.Context, projectId ProjectId, serviceId ServiceId, body CreateReplicaSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateReplicaSetWithBody ¶ added in v0.20.0
func (*Client) CreateService ¶ added in v0.20.0
func (c *Client) CreateService(ctx context.Context, projectId ProjectId, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateServiceWithBody ¶ added in v0.20.0
func (*Client) CreateVPC ¶ added in v0.20.0
func (c *Client) CreateVPC(ctx context.Context, projectId ProjectId, body CreateVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateVPCPeering ¶ added in v0.20.0
func (c *Client) CreateVPCPeering(ctx context.Context, projectId ProjectId, vpcId VPCId, body CreateVPCPeeringJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateVPCPeeringWithBody ¶ added in v0.20.0
func (*Client) CreateVPCWithBody ¶ added in v0.20.0
func (*Client) DeleteReplicaSet ¶ added in v0.20.0
func (c *Client) DeleteReplicaSet(ctx context.Context, projectId ProjectId, serviceId ServiceId, replicaSetId ReplicaSetId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteService ¶ added in v0.20.0
func (*Client) DeleteVPCPeering ¶ added in v0.20.0
func (*Client) DetachServiceFromVPC ¶ added in v0.20.0
func (c *Client) DetachServiceFromVPC(ctx context.Context, projectId ProjectId, serviceId ServiceId, body DetachServiceFromVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DetachServiceFromVPCWithBody ¶ added in v0.20.0
func (*Client) DisablePooler ¶ added in v0.20.0
func (*Client) DisableReplicaPooler ¶ added in v0.20.0
func (c *Client) DisableReplicaPooler(ctx context.Context, projectId ProjectId, serviceId ServiceId, replicaSetId ReplicaSetId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EnablePooler ¶ added in v0.20.0
func (*Client) EnableReplicaPooler ¶ added in v0.20.0
func (c *Client) EnableReplicaPooler(ctx context.Context, projectId ProjectId, serviceId ServiceId, replicaSetId ReplicaSetId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ForkService ¶ added in v0.20.0
func (c *Client) ForkService(ctx context.Context, projectId ProjectId, serviceId ServiceId, body ForkServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ForkServiceWithBody ¶ added in v0.20.0
func (*Client) GetAuthInfo ¶ added in v0.18.0
func (*Client) GetReplicaSets ¶ added in v0.20.0
func (*Client) GetService ¶ added in v0.20.0
func (*Client) GetServiceLogs ¶ added in v0.20.0
func (c *Client) GetServiceLogs(ctx context.Context, projectId ProjectId, serviceId ServiceId, params *GetServiceLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetServices ¶ added in v0.20.0
func (*Client) GetVPCPeering ¶ added in v0.20.0
func (*Client) GetVPCPeerings ¶ added in v0.20.0
func (*Client) IdentifyUser ¶ added in v0.20.0
func (c *Client) IdentifyUser(ctx context.Context, body IdentifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) IdentifyUserWithBody ¶ added in v0.20.0
func (*Client) RenameVPC ¶ added in v0.20.0
func (c *Client) RenameVPC(ctx context.Context, projectId ProjectId, vpcId VPCId, body RenameVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RenameVPCWithBody ¶ added in v0.20.0
func (*Client) ResizeReplicaSet ¶ added in v0.20.0
func (c *Client) ResizeReplicaSet(ctx context.Context, projectId ProjectId, serviceId ServiceId, replicaSetId ReplicaSetId, body ResizeReplicaSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ResizeReplicaSetWithBody ¶ added in v0.20.0
func (*Client) ResizeService ¶ added in v0.20.0
func (c *Client) ResizeService(ctx context.Context, projectId ProjectId, serviceId ServiceId, body ResizeServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ResizeServiceWithBody ¶ added in v0.20.0
func (*Client) SetEnvironment ¶ added in v0.20.0
func (c *Client) SetEnvironment(ctx context.Context, projectId ProjectId, serviceId ServiceId, body SetEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetEnvironmentWithBody ¶ added in v0.20.0
func (*Client) SetHAReplica ¶ added in v0.20.0
func (c *Client) SetHAReplica(ctx context.Context, projectId ProjectId, serviceId ServiceId, body SetHAReplicaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetHAReplicaWithBody ¶ added in v0.20.0
func (*Client) SetReplicaEnvironment ¶ added in v0.20.0
func (c *Client) SetReplicaEnvironment(ctx context.Context, projectId ProjectId, serviceId ServiceId, replicaSetId ReplicaSetId, body SetReplicaEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetReplicaEnvironmentWithBody ¶ added in v0.20.0
func (*Client) StartService ¶ added in v0.20.0
func (*Client) StopService ¶ added in v0.20.0
func (*Client) TrackEvent ¶ added in v0.20.0
func (c *Client) TrackEvent(ctx context.Context, body TrackEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TrackEventWithBody ¶ added in v0.20.0
func (*Client) UpdatePassword ¶ added in v0.20.0
func (c *Client) UpdatePassword(ctx context.Context, projectId ProjectId, serviceId ServiceId, body UpdatePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientError ¶ added in v0.7.1
type ClientError = Error
ClientError defines model for ClientError.
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)
// 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)
// 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)
NewTigerClient creates a new API client with the given config, API key, and project ID
func (*ClientWithResponses) AttachServiceToVPCWithBodyWithResponse ¶ added in v0.20.0
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 ¶ added in v0.20.0
func (c *ClientWithResponses) AttachServiceToVPCWithResponse(ctx context.Context, projectId ProjectId, serviceId ServiceId, body AttachServiceToVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachServiceToVPCResponse, error)
func (*ClientWithResponses) CreateReplicaSetWithBodyWithResponse ¶ added in v0.20.0
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 ¶ added in v0.20.0
func (c *ClientWithResponses) CreateReplicaSetWithResponse(ctx context.Context, projectId ProjectId, serviceId ServiceId, body CreateReplicaSetJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReplicaSetResponse, error)
func (*ClientWithResponses) CreateServiceWithBodyWithResponse ¶ added in v0.20.0
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 ¶ added in v0.20.0
func (c *ClientWithResponses) CreateServiceWithResponse(ctx context.Context, projectId ProjectId, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error)
func (*ClientWithResponses) CreateVPCPeeringWithBodyWithResponse ¶ added in v0.20.0
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 ¶ added in v0.20.0
func (c *ClientWithResponses) CreateVPCPeeringWithResponse(ctx context.Context, projectId ProjectId, vpcId VPCId, body CreateVPCPeeringJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVPCPeeringResponse, error)
func (*ClientWithResponses) CreateVPCWithBodyWithResponse ¶ added in v0.20.0
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 ¶ added in v0.20.0
func (c *ClientWithResponses) CreateVPCWithResponse(ctx context.Context, projectId ProjectId, body CreateVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVPCResponse, error)
func (*ClientWithResponses) DeleteReplicaSetWithResponse ¶ added in v0.20.0
func (c *ClientWithResponses) DeleteReplicaSetWithResponse(ctx context.Context, projectId ProjectId, serviceId ServiceId, replicaSetId ReplicaSetId, reqEditors ...RequestEditorFn) (*DeleteReplicaSetResponse, error)
DeleteReplicaSetWithResponse request returning *DeleteReplicaSetResponse
func (*ClientWithResponses) DeleteServiceWithResponse ¶ added in v0.20.0
func (c *ClientWithResponses) DeleteServiceWithResponse(ctx context.Context, projectId ProjectId, serviceId ServiceId, reqEditors ...RequestEditorFn) (*DeleteServiceResponse, error)
DeleteServiceWithResponse request returning *DeleteServiceResponse
func (*ClientWithResponses) DeleteVPCPeeringWithResponse ¶ added in v0.20.0
func (c *ClientWithResponses) DeleteVPCPeeringWithResponse(ctx context.Context, projectId ProjectId, vpcId VPCId, peeringId PeeringId, reqEditors ...RequestEditorFn) (*DeleteVPCPeeringResponse, error)
DeleteVPCPeeringWithResponse request returning *DeleteVPCPeeringResponse
func (*ClientWithResponses) DeleteVPCWithResponse ¶ added in v0.20.0
func (c *ClientWithResponses) DeleteVPCWithResponse(ctx context.Context, projectId ProjectId, vpcId VPCId, reqEditors ...RequestEditorFn) (*DeleteVPCResponse, error)
DeleteVPCWithResponse request returning *DeleteVPCResponse
func (*ClientWithResponses) DetachServiceFromVPCWithBodyWithResponse ¶ added in v0.20.0
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 ¶ added in v0.20.0
func (c *ClientWithResponses) DetachServiceFromVPCWithResponse(ctx context.Context, projectId ProjectId, serviceId ServiceId, body DetachServiceFromVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*DetachServiceFromVPCResponse, error)
func (*ClientWithResponses) DisablePoolerWithResponse ¶ added in v0.20.0
func (c *ClientWithResponses) DisablePoolerWithResponse(ctx context.Context, projectId ProjectId, serviceId ServiceId, reqEditors ...RequestEditorFn) (*DisablePoolerResponse, error)
DisablePoolerWithResponse request returning *DisablePoolerResponse
func (*ClientWithResponses) DisableReplicaPoolerWithResponse ¶ added in v0.20.0
func (c *ClientWithResponses) DisableReplicaPoolerWithResponse(ctx context.Context, projectId ProjectId, serviceId ServiceId, replicaSetId ReplicaSetId, reqEditors ...RequestEditorFn) (*DisableReplicaPoolerResponse, error)
DisableReplicaPoolerWithResponse request returning *DisableReplicaPoolerResponse
func (*ClientWithResponses) EnablePoolerWithResponse ¶ added in v0.20.0
func (c *ClientWithResponses) EnablePoolerWithResponse(ctx context.Context, projectId ProjectId, serviceId ServiceId, reqEditors ...RequestEditorFn) (*EnablePoolerResponse, error)
EnablePoolerWithResponse request returning *EnablePoolerResponse
func (*ClientWithResponses) EnableReplicaPoolerWithResponse ¶ added in v0.20.0
func (c *ClientWithResponses) EnableReplicaPoolerWithResponse(ctx context.Context, projectId ProjectId, serviceId ServiceId, replicaSetId ReplicaSetId, reqEditors ...RequestEditorFn) (*EnableReplicaPoolerResponse, error)
EnableReplicaPoolerWithResponse request returning *EnableReplicaPoolerResponse
func (*ClientWithResponses) ForkServiceWithBodyWithResponse ¶ added in v0.20.0
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 ¶ added in v0.20.0
func (c *ClientWithResponses) ForkServiceWithResponse(ctx context.Context, projectId ProjectId, serviceId ServiceId, body ForkServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*ForkServiceResponse, error)
func (*ClientWithResponses) GetAuthInfoWithResponse ¶ added in v0.18.0
func (c *ClientWithResponses) GetAuthInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAuthInfoResponse, error)
GetAuthInfoWithResponse request returning *GetAuthInfoResponse
func (*ClientWithResponses) GetReplicaSetsWithResponse ¶ added in v0.20.0
func (c *ClientWithResponses) GetReplicaSetsWithResponse(ctx context.Context, projectId ProjectId, serviceId ServiceId, reqEditors ...RequestEditorFn) (*GetReplicaSetsResponse, error)
GetReplicaSetsWithResponse request returning *GetReplicaSetsResponse
func (*ClientWithResponses) GetServiceLogsWithResponse ¶ added in v0.20.0
func (c *ClientWithResponses) GetServiceLogsWithResponse(ctx context.Context, projectId ProjectId, serviceId ServiceId, params *GetServiceLogsParams, reqEditors ...RequestEditorFn) (*GetServiceLogsResponse, error)
GetServiceLogsWithResponse request returning *GetServiceLogsResponse
func (*ClientWithResponses) GetServiceWithResponse ¶ added in v0.20.0
func (c *ClientWithResponses) GetServiceWithResponse(ctx context.Context, projectId ProjectId, serviceId ServiceId, reqEditors ...RequestEditorFn) (*GetServiceResponse, error)
GetServiceWithResponse request returning *GetServiceResponse
func (*ClientWithResponses) GetServicesWithResponse ¶ added in v0.20.0
func (c *ClientWithResponses) GetServicesWithResponse(ctx context.Context, projectId ProjectId, reqEditors ...RequestEditorFn) (*GetServicesResponse, error)
GetServicesWithResponse request returning *GetServicesResponse
func (*ClientWithResponses) GetVPCPeeringWithResponse ¶ added in v0.20.0
func (c *ClientWithResponses) GetVPCPeeringWithResponse(ctx context.Context, projectId ProjectId, vpcId VPCId, peeringId PeeringId, reqEditors ...RequestEditorFn) (*GetVPCPeeringResponse, error)
GetVPCPeeringWithResponse request returning *GetVPCPeeringResponse
func (*ClientWithResponses) GetVPCPeeringsWithResponse ¶ added in v0.20.0
func (c *ClientWithResponses) GetVPCPeeringsWithResponse(ctx context.Context, projectId ProjectId, vpcId VPCId, reqEditors ...RequestEditorFn) (*GetVPCPeeringsResponse, error)
GetVPCPeeringsWithResponse request returning *GetVPCPeeringsResponse
func (*ClientWithResponses) GetVPCWithResponse ¶ added in v0.20.0
func (c *ClientWithResponses) GetVPCWithResponse(ctx context.Context, projectId ProjectId, vpcId VPCId, reqEditors ...RequestEditorFn) (*GetVPCResponse, error)
GetVPCWithResponse request returning *GetVPCResponse
func (*ClientWithResponses) GetVPCsWithResponse ¶ added in v0.20.0
func (c *ClientWithResponses) GetVPCsWithResponse(ctx context.Context, projectId ProjectId, reqEditors ...RequestEditorFn) (*GetVPCsResponse, error)
GetVPCsWithResponse request returning *GetVPCsResponse
func (*ClientWithResponses) IdentifyUserWithBodyWithResponse ¶ added in v0.20.0
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 ¶ added in v0.20.0
func (c *ClientWithResponses) IdentifyUserWithResponse(ctx context.Context, body IdentifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*IdentifyUserResponse, error)
func (*ClientWithResponses) RenameVPCWithBodyWithResponse ¶ added in v0.20.0
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 ¶ added in v0.20.0
func (c *ClientWithResponses) RenameVPCWithResponse(ctx context.Context, projectId ProjectId, vpcId VPCId, body RenameVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*RenameVPCResponse, error)
func (*ClientWithResponses) ResizeReplicaSetWithBodyWithResponse ¶ added in v0.20.0
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 ¶ added in v0.20.0
func (c *ClientWithResponses) ResizeReplicaSetWithResponse(ctx context.Context, projectId ProjectId, serviceId ServiceId, replicaSetId ReplicaSetId, body ResizeReplicaSetJSONRequestBody, reqEditors ...RequestEditorFn) (*ResizeReplicaSetResponse, error)
func (*ClientWithResponses) ResizeServiceWithBodyWithResponse ¶ added in v0.20.0
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 ¶ added in v0.20.0
func (c *ClientWithResponses) ResizeServiceWithResponse(ctx context.Context, projectId ProjectId, serviceId ServiceId, body ResizeServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*ResizeServiceResponse, error)
func (*ClientWithResponses) SetEnvironmentWithBodyWithResponse ¶ added in v0.20.0
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 ¶ added in v0.20.0
func (c *ClientWithResponses) SetEnvironmentWithResponse(ctx context.Context, projectId ProjectId, serviceId ServiceId, body SetEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*SetEnvironmentResponse, error)
func (*ClientWithResponses) SetHAReplicaWithBodyWithResponse ¶ added in v0.20.0
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 ¶ added in v0.20.0
func (c *ClientWithResponses) SetHAReplicaWithResponse(ctx context.Context, projectId ProjectId, serviceId ServiceId, body SetHAReplicaJSONRequestBody, reqEditors ...RequestEditorFn) (*SetHAReplicaResponse, error)
func (*ClientWithResponses) SetReplicaEnvironmentWithBodyWithResponse ¶ added in v0.20.0
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 ¶ added in v0.20.0
func (c *ClientWithResponses) SetReplicaEnvironmentWithResponse(ctx context.Context, projectId ProjectId, serviceId ServiceId, replicaSetId ReplicaSetId, body SetReplicaEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*SetReplicaEnvironmentResponse, error)
func (*ClientWithResponses) StartServiceWithResponse ¶ added in v0.20.0
func (c *ClientWithResponses) StartServiceWithResponse(ctx context.Context, projectId ProjectId, serviceId ServiceId, reqEditors ...RequestEditorFn) (*StartServiceResponse, error)
StartServiceWithResponse request returning *StartServiceResponse
func (*ClientWithResponses) StopServiceWithResponse ¶ added in v0.20.0
func (c *ClientWithResponses) StopServiceWithResponse(ctx context.Context, projectId ProjectId, serviceId ServiceId, reqEditors ...RequestEditorFn) (*StopServiceResponse, error)
StopServiceWithResponse request returning *StopServiceResponse
func (*ClientWithResponses) TrackEventWithBodyWithResponse ¶ added in v0.20.0
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 ¶ added in v0.20.0
func (c *ClientWithResponses) TrackEventWithResponse(ctx context.Context, body TrackEventJSONRequestBody, reqEditors ...RequestEditorFn) (*TrackEventResponse, error)
func (*ClientWithResponses) UpdatePasswordWithBodyWithResponse ¶ added in v0.20.0
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 ¶ added in v0.20.0
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)
// 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)
// 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 *Endpoint `json:"endpoint,omitempty"`
}
ConnectionPooler defines model for ConnectionPooler.
type CreateReplicaSetJSONRequestBody ¶ added in v0.20.0
type CreateReplicaSetJSONRequestBody = ReadReplicaSetCreate
CreateReplicaSetJSONRequestBody defines body for CreateReplicaSet for application/json ContentType.
type CreateReplicaSetResponse ¶ added in v0.20.0
type CreateReplicaSetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *ReadReplicaSet
JSON4XX *ClientError
}
func ParseCreateReplicaSetResponse ¶ added in v0.20.0
func ParseCreateReplicaSetResponse(rsp *http.Response) (*CreateReplicaSetResponse, error)
ParseCreateReplicaSetResponse parses an HTTP response from a CreateReplicaSetWithResponse call
func (CreateReplicaSetResponse) Status ¶ added in v0.20.0
func (r CreateReplicaSetResponse) Status() string
Status returns HTTPResponse.Status
func (CreateReplicaSetResponse) StatusCode ¶ added in v0.20.0
func (r CreateReplicaSetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateServiceJSONRequestBody ¶ added in v0.20.0
type CreateServiceJSONRequestBody = ServiceCreate
CreateServiceJSONRequestBody defines body for CreateService for application/json ContentType.
type CreateServiceResponse ¶ added in v0.20.0
type CreateServiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *Service
JSON4XX *ClientError
}
func ParseCreateServiceResponse ¶ added in v0.20.0
func ParseCreateServiceResponse(rsp *http.Response) (*CreateServiceResponse, error)
ParseCreateServiceResponse parses an HTTP response from a CreateServiceWithResponse call
func (CreateServiceResponse) Status ¶ added in v0.20.0
func (r CreateServiceResponse) Status() string
Status returns HTTPResponse.Status
func (CreateServiceResponse) StatusCode ¶ added in v0.20.0
func (r CreateServiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateVPCJSONRequestBody ¶ added in v0.20.0
type CreateVPCJSONRequestBody = VPCCreate
CreateVPCJSONRequestBody defines body for CreateVPC for application/json ContentType.
type CreateVPCPeeringJSONRequestBody ¶ added in v0.20.0
type CreateVPCPeeringJSONRequestBody = PeeringCreate
CreateVPCPeeringJSONRequestBody defines body for CreateVPCPeering for application/json ContentType.
type CreateVPCPeeringResponse ¶ added in v0.20.0
type CreateVPCPeeringResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Peering
JSON4XX *ClientError
}
func ParseCreateVPCPeeringResponse ¶ added in v0.20.0
func ParseCreateVPCPeeringResponse(rsp *http.Response) (*CreateVPCPeeringResponse, error)
ParseCreateVPCPeeringResponse parses an HTTP response from a CreateVPCPeeringWithResponse call
func (CreateVPCPeeringResponse) Status ¶ added in v0.20.0
func (r CreateVPCPeeringResponse) Status() string
Status returns HTTPResponse.Status
func (CreateVPCPeeringResponse) StatusCode ¶ added in v0.20.0
func (r CreateVPCPeeringResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateVPCResponse ¶ added in v0.20.0
type CreateVPCResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *VPC
JSON4XX *ClientError
}
func ParseCreateVPCResponse ¶ added in v0.20.0
func ParseCreateVPCResponse(rsp *http.Response) (*CreateVPCResponse, error)
ParseCreateVPCResponse parses an HTTP response from a CreateVPCWithResponse call
func (CreateVPCResponse) Status ¶ added in v0.20.0
func (r CreateVPCResponse) Status() string
Status returns HTTPResponse.Status
func (CreateVPCResponse) StatusCode ¶ added in v0.20.0
func (r CreateVPCResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteReplicaSetResponse ¶ added in v0.20.0
type DeleteReplicaSetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON4XX *ClientError
}
func ParseDeleteReplicaSetResponse ¶ added in v0.20.0
func ParseDeleteReplicaSetResponse(rsp *http.Response) (*DeleteReplicaSetResponse, error)
ParseDeleteReplicaSetResponse parses an HTTP response from a DeleteReplicaSetWithResponse call
func (DeleteReplicaSetResponse) Status ¶ added in v0.20.0
func (r DeleteReplicaSetResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteReplicaSetResponse) StatusCode ¶ added in v0.20.0
func (r DeleteReplicaSetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteServiceResponse ¶ added in v0.20.0
type DeleteServiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON4XX *ClientError
}
func ParseDeleteServiceResponse ¶ added in v0.20.0
func ParseDeleteServiceResponse(rsp *http.Response) (*DeleteServiceResponse, error)
ParseDeleteServiceResponse parses an HTTP response from a DeleteServiceWithResponse call
func (DeleteServiceResponse) Status ¶ added in v0.20.0
func (r DeleteServiceResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteServiceResponse) StatusCode ¶ added in v0.20.0
func (r DeleteServiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteVPCPeeringResponse ¶ added in v0.20.0
type DeleteVPCPeeringResponse struct {
Body []byte
HTTPResponse *http.Response
JSON4XX *ClientError
}
func ParseDeleteVPCPeeringResponse ¶ added in v0.20.0
func ParseDeleteVPCPeeringResponse(rsp *http.Response) (*DeleteVPCPeeringResponse, error)
ParseDeleteVPCPeeringResponse parses an HTTP response from a DeleteVPCPeeringWithResponse call
func (DeleteVPCPeeringResponse) Status ¶ added in v0.20.0
func (r DeleteVPCPeeringResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteVPCPeeringResponse) StatusCode ¶ added in v0.20.0
func (r DeleteVPCPeeringResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteVPCResponse ¶ added in v0.20.0
type DeleteVPCResponse struct {
Body []byte
HTTPResponse *http.Response
JSON4XX *ClientError
}
func ParseDeleteVPCResponse ¶ added in v0.20.0
func ParseDeleteVPCResponse(rsp *http.Response) (*DeleteVPCResponse, error)
ParseDeleteVPCResponse parses an HTTP response from a DeleteVPCWithResponse call
func (DeleteVPCResponse) Status ¶ added in v0.20.0
func (r DeleteVPCResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteVPCResponse) StatusCode ¶ added in v0.20.0
func (r DeleteVPCResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeployStatus ¶
type DeployStatus string
DeployStatus defines model for DeployStatus.
const ( CONFIGURING DeployStatus = "CONFIGURING" DELETED DeployStatus = "DELETED" DELETING DeployStatus = "DELETING" OPTIMIZING DeployStatus = "OPTIMIZING" PAUSED DeployStatus = "PAUSED" PAUSING DeployStatus = "PAUSING" QUEUED DeployStatus = "QUEUED" READY DeployStatus = "READY" RESUMING DeployStatus = "RESUMING" UNSTABLE DeployStatus = "UNSTABLE" UPGRADING DeployStatus = "UPGRADING" )
Defines values for DeployStatus.
type DetachServiceFromVPCJSONRequestBody ¶ added in v0.20.0
type DetachServiceFromVPCJSONRequestBody = ServiceVPCInput
DetachServiceFromVPCJSONRequestBody defines body for DetachServiceFromVPC for application/json ContentType.
type DetachServiceFromVPCResponse ¶ added in v0.20.0
type DetachServiceFromVPCResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *SuccessMessage
JSON4XX *ClientError
}
func ParseDetachServiceFromVPCResponse ¶ added in v0.20.0
func ParseDetachServiceFromVPCResponse(rsp *http.Response) (*DetachServiceFromVPCResponse, error)
ParseDetachServiceFromVPCResponse parses an HTTP response from a DetachServiceFromVPCWithResponse call
func (DetachServiceFromVPCResponse) Status ¶ added in v0.20.0
func (r DetachServiceFromVPCResponse) Status() string
Status returns HTTPResponse.Status
func (DetachServiceFromVPCResponse) StatusCode ¶ added in v0.20.0
func (r DetachServiceFromVPCResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DisablePoolerResponse ¶ added in v0.20.0
type DisablePoolerResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessMessage
JSON4XX *ClientError
}
func ParseDisablePoolerResponse ¶ added in v0.20.0
func ParseDisablePoolerResponse(rsp *http.Response) (*DisablePoolerResponse, error)
ParseDisablePoolerResponse parses an HTTP response from a DisablePoolerWithResponse call
func (DisablePoolerResponse) Status ¶ added in v0.20.0
func (r DisablePoolerResponse) Status() string
Status returns HTTPResponse.Status
func (DisablePoolerResponse) StatusCode ¶ added in v0.20.0
func (r DisablePoolerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DisableReplicaPoolerResponse ¶ added in v0.20.0
type DisableReplicaPoolerResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessMessage
JSON4XX *ClientError
}
func ParseDisableReplicaPoolerResponse ¶ added in v0.20.0
func ParseDisableReplicaPoolerResponse(rsp *http.Response) (*DisableReplicaPoolerResponse, error)
ParseDisableReplicaPoolerResponse parses an HTTP response from a DisableReplicaPoolerWithResponse call
func (DisableReplicaPoolerResponse) Status ¶ added in v0.20.0
func (r DisableReplicaPoolerResponse) Status() string
Status returns HTTPResponse.Status
func (DisableReplicaPoolerResponse) StatusCode ¶ added in v0.20.0
func (r DisableReplicaPoolerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EnablePoolerResponse ¶ added in v0.20.0
type EnablePoolerResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessMessage
JSON4XX *ClientError
}
func ParseEnablePoolerResponse ¶ added in v0.20.0
func ParseEnablePoolerResponse(rsp *http.Response) (*EnablePoolerResponse, error)
ParseEnablePoolerResponse parses an HTTP response from a EnablePoolerWithResponse call
func (EnablePoolerResponse) Status ¶ added in v0.20.0
func (r EnablePoolerResponse) Status() string
Status returns HTTPResponse.Status
func (EnablePoolerResponse) StatusCode ¶ added in v0.20.0
func (r EnablePoolerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EnableReplicaPoolerResponse ¶ added in v0.20.0
type EnableReplicaPoolerResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessMessage
JSON4XX *ClientError
}
func ParseEnableReplicaPoolerResponse ¶ added in v0.20.0
func ParseEnableReplicaPoolerResponse(rsp *http.Response) (*EnableReplicaPoolerResponse, error)
ParseEnableReplicaPoolerResponse parses an HTTP response from a EnableReplicaPoolerWithResponse call
func (EnableReplicaPoolerResponse) Status ¶ added in v0.20.0
func (r EnableReplicaPoolerResponse) Status() string
Status returns HTTPResponse.Status
func (EnableReplicaPoolerResponse) StatusCode ¶ added in v0.20.0
func (r EnableReplicaPoolerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EnvironmentTag ¶ added in v0.13.0
type EnvironmentTag string
EnvironmentTag The environment tag for the service.
const ( EnvironmentTagDEV EnvironmentTag = "DEV" EnvironmentTagPROD EnvironmentTag = "PROD" )
Defines values for EnvironmentTag.
type Error ¶
type Error struct {
Code *string `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
}
Error defines model for Error.
type ForkServiceCreate ¶ added in v0.3.0
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 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 ¶ added in v0.20.0
type ForkServiceJSONRequestBody = ForkServiceCreate
ForkServiceJSONRequestBody defines body for ForkService for application/json ContentType.
type ForkServiceResponse ¶ added in v0.20.0
type ForkServiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *Service
JSON4XX *ClientError
}
func ParseForkServiceResponse ¶ added in v0.20.0
func ParseForkServiceResponse(rsp *http.Response) (*ForkServiceResponse, error)
ParseForkServiceResponse parses an HTTP response from a ForkServiceWithResponse call
func (ForkServiceResponse) Status ¶ added in v0.20.0
func (r ForkServiceResponse) Status() string
Status returns HTTPResponse.Status
func (ForkServiceResponse) StatusCode ¶ added in v0.20.0
func (r ForkServiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ForkSpec ¶
type ForkSpec struct {
IsStandby *bool `json:"is_standby,omitempty"`
ProjectId *string `json:"project_id,omitempty"`
ServiceId *string `json:"service_id,omitempty"`
}
ForkSpec defines model for ForkSpec.
type ForkStrategy ¶ added in v0.3.0
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 ( LASTSNAPSHOT ForkStrategy = "LAST_SNAPSHOT" NOW ForkStrategy = "NOW" PITR ForkStrategy = "PITR" )
Defines values for ForkStrategy.
type GetAuthInfoResponse ¶ added in v0.18.0
type GetAuthInfoResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AuthInfo
JSON4XX *ClientError
}
func ParseGetAuthInfoResponse ¶ added in v0.18.0
func ParseGetAuthInfoResponse(rsp *http.Response) (*GetAuthInfoResponse, error)
ParseGetAuthInfoResponse parses an HTTP response from a GetAuthInfoWithResponse call
func (GetAuthInfoResponse) Status ¶ added in v0.18.0
func (r GetAuthInfoResponse) Status() string
Status returns HTTPResponse.Status
func (GetAuthInfoResponse) StatusCode ¶ added in v0.18.0
func (r GetAuthInfoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetReplicaSetsResponse ¶ added in v0.20.0
type GetReplicaSetsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]ReadReplicaSet
JSON4XX *ClientError
}
func ParseGetReplicaSetsResponse ¶ added in v0.20.0
func ParseGetReplicaSetsResponse(rsp *http.Response) (*GetReplicaSetsResponse, error)
ParseGetReplicaSetsResponse parses an HTTP response from a GetReplicaSetsWithResponse call
func (GetReplicaSetsResponse) Status ¶ added in v0.20.0
func (r GetReplicaSetsResponse) Status() string
Status returns HTTPResponse.Status
func (GetReplicaSetsResponse) StatusCode ¶ added in v0.20.0
func (r GetReplicaSetsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetServiceLogsParams ¶ added in v0.20.0
type GetServiceLogsParams struct {
// Node Specific service node to fetch logs from (for multi-node services)
Node *int `form:"node,omitempty" json:"node,omitempty"`
// Page Page number for pagination (0-based)
Page *int `form:"page,omitempty" json:"page,omitempty"`
// Until Fetch logs before this timestamp (RFC3339 format, e.g., 2024-01-15T10:00:00Z)
Until *time.Time `form:"until,omitempty" json:"until,omitempty"`
}
GetServiceLogsParams defines parameters for GetServiceLogs.
type GetServiceLogsResponse ¶ added in v0.20.0
type GetServiceLogsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ServiceLogs
JSON4XX *ClientError
}
func ParseGetServiceLogsResponse ¶ added in v0.20.0
func ParseGetServiceLogsResponse(rsp *http.Response) (*GetServiceLogsResponse, error)
ParseGetServiceLogsResponse parses an HTTP response from a GetServiceLogsWithResponse call
func (GetServiceLogsResponse) Status ¶ added in v0.20.0
func (r GetServiceLogsResponse) Status() string
Status returns HTTPResponse.Status
func (GetServiceLogsResponse) StatusCode ¶ added in v0.20.0
func (r GetServiceLogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetServiceResponse ¶ added in v0.20.0
type GetServiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Service
JSON4XX *ClientError
}
func ParseGetServiceResponse ¶ added in v0.20.0
func ParseGetServiceResponse(rsp *http.Response) (*GetServiceResponse, error)
ParseGetServiceResponse parses an HTTP response from a GetServiceWithResponse call
func (GetServiceResponse) Status ¶ added in v0.20.0
func (r GetServiceResponse) Status() string
Status returns HTTPResponse.Status
func (GetServiceResponse) StatusCode ¶ added in v0.20.0
func (r GetServiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetServicesResponse ¶ added in v0.20.0
type GetServicesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Service
JSON4XX *ClientError
}
func ParseGetServicesResponse ¶ added in v0.20.0
func ParseGetServicesResponse(rsp *http.Response) (*GetServicesResponse, error)
ParseGetServicesResponse parses an HTTP response from a GetServicesWithResponse call
func (GetServicesResponse) Status ¶ added in v0.20.0
func (r GetServicesResponse) Status() string
Status returns HTTPResponse.Status
func (GetServicesResponse) StatusCode ¶ added in v0.20.0
func (r GetServicesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetVPCPeeringResponse ¶ added in v0.20.0
type GetVPCPeeringResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Peering
JSON4XX *ClientError
}
func ParseGetVPCPeeringResponse ¶ added in v0.20.0
func ParseGetVPCPeeringResponse(rsp *http.Response) (*GetVPCPeeringResponse, error)
ParseGetVPCPeeringResponse parses an HTTP response from a GetVPCPeeringWithResponse call
func (GetVPCPeeringResponse) Status ¶ added in v0.20.0
func (r GetVPCPeeringResponse) Status() string
Status returns HTTPResponse.Status
func (GetVPCPeeringResponse) StatusCode ¶ added in v0.20.0
func (r GetVPCPeeringResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetVPCPeeringsResponse ¶ added in v0.20.0
type GetVPCPeeringsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Peering
JSON4XX *ClientError
}
func ParseGetVPCPeeringsResponse ¶ added in v0.20.0
func ParseGetVPCPeeringsResponse(rsp *http.Response) (*GetVPCPeeringsResponse, error)
ParseGetVPCPeeringsResponse parses an HTTP response from a GetVPCPeeringsWithResponse call
func (GetVPCPeeringsResponse) Status ¶ added in v0.20.0
func (r GetVPCPeeringsResponse) Status() string
Status returns HTTPResponse.Status
func (GetVPCPeeringsResponse) StatusCode ¶ added in v0.20.0
func (r GetVPCPeeringsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetVPCResponse ¶ added in v0.20.0
type GetVPCResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *VPC
JSON4XX *ClientError
}
func ParseGetVPCResponse ¶ added in v0.20.0
func ParseGetVPCResponse(rsp *http.Response) (*GetVPCResponse, error)
ParseGetVPCResponse parses an HTTP response from a GetVPCWithResponse call
func (GetVPCResponse) Status ¶ added in v0.20.0
func (r GetVPCResponse) Status() string
Status returns HTTPResponse.Status
func (GetVPCResponse) StatusCode ¶ added in v0.20.0
func (r GetVPCResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetVPCsResponse ¶ added in v0.20.0
type GetVPCsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]VPC
JSON4XX *ClientError
}
func ParseGetVPCsResponse ¶ added in v0.20.0
func ParseGetVPCsResponse(rsp *http.Response) (*GetVPCsResponse, error)
ParseGetVPCsResponse parses an HTTP response from a GetVPCsWithResponse call
func (GetVPCsResponse) Status ¶ added in v0.20.0
func (r GetVPCsResponse) Status() string
Status returns HTTPResponse.Status
func (GetVPCsResponse) StatusCode ¶ added in v0.20.0
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 defines model for HAReplica.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type IdentifyUserJSONBody ¶ added in v0.20.0
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 ¶ added in v0.20.0
type IdentifyUserJSONRequestBody IdentifyUserJSONBody
IdentifyUserJSONRequestBody defines body for IdentifyUser for application/json ContentType.
type IdentifyUserResponse ¶ added in v0.20.0
type IdentifyUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AnalyticsResponse
JSON4XX *ClientError
}
func ParseIdentifyUserResponse ¶ added in v0.20.0
func ParseIdentifyUserResponse(rsp *http.Response) (*IdentifyUserResponse, error)
ParseIdentifyUserResponse parses an HTTP response from a IdentifyUserWithResponse call
func (IdentifyUserResponse) Status ¶ added in v0.20.0
func (r IdentifyUserResponse) Status() string
Status returns HTTPResponse.Status
func (IdentifyUserResponse) StatusCode ¶ added in v0.20.0
func (r IdentifyUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Peering ¶
type Peering struct {
ErrorMessage *string `json:"error_message,omitempty"`
Id *string `json:"id,omitempty"`
PeerAccountId *string `json:"peer_account_id,omitempty"`
PeerRegionCode *string `json:"peer_region_code,omitempty"`
PeerVpcId *string `json:"peer_vpc_id,omitempty"`
ProvisionedId *string `json:"provisioned_id,omitempty"`
Status *string `json:"status,omitempty"`
}
Peering defines model for Peering.
type PeeringCreate ¶
type PeeringCreate struct {
PeerAccountId string `json:"peer_account_id"`
PeerRegionCode string `json:"peer_region_code"`
PeerVpcId string `json:"peer_vpc_id"`
}
PeeringCreate defines model for PeeringCreate.
type ReadReplicaSet ¶
type ReadReplicaSet struct {
ConnectionPooler *ConnectionPooler `json:"connection_pooler,omitempty"`
// CpuMillis CPU allocation in milli-cores.
CpuMillis *int `json:"cpu_millis,omitempty"`
Endpoint *Endpoint `json:"endpoint,omitempty"`
Id *string `json:"id,omitempty"`
// MemoryGbs Memory allocation in gigabytes.
MemoryGbs *int `json:"memory_gbs,omitempty"`
// Metadata Additional metadata for the read replica set
Metadata *struct {
// Environment Environment tag for the read replica set
Environment *string `json:"environment,omitempty"`
} `json:"metadata,omitempty"`
Name *string `json:"name,omitempty"`
// Nodes Number of nodes in the replica set.
Nodes *int `json:"nodes,omitempty"`
Status *ReadReplicaSetStatus `json:"status,omitempty"`
}
ReadReplicaSet defines model for ReadReplicaSet.
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 defines model for ReadReplicaSetCreate.
type ReadReplicaSetStatus ¶
type ReadReplicaSetStatus string
ReadReplicaSetStatus defines model for ReadReplicaSet.Status.
const ( ReadReplicaSetStatusActive ReadReplicaSetStatus = "active" ReadReplicaSetStatusCreating ReadReplicaSetStatus = "creating" ReadReplicaSetStatusDeleting ReadReplicaSetStatus = "deleting" ReadReplicaSetStatusError ReadReplicaSetStatus = "error" ReadReplicaSetStatusResizing ReadReplicaSetStatus = "resizing" )
Defines values for ReadReplicaSetStatus.
type RenameVPCJSONRequestBody ¶ added in v0.20.0
type RenameVPCJSONRequestBody = VPCRename
RenameVPCJSONRequestBody defines body for RenameVPC for application/json ContentType.
type RenameVPCResponse ¶ added in v0.20.0
type RenameVPCResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *VPC
JSON4XX *ClientError
}
func ParseRenameVPCResponse ¶ added in v0.20.0
func ParseRenameVPCResponse(rsp *http.Response) (*RenameVPCResponse, error)
ParseRenameVPCResponse parses an HTTP response from a RenameVPCWithResponse call
func (RenameVPCResponse) Status ¶ added in v0.20.0
func (r RenameVPCResponse) Status() string
Status returns HTTPResponse.Status
func (RenameVPCResponse) StatusCode ¶ added in v0.20.0
func (r RenameVPCResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 defines model for ResizeInput.
type ResizeReplicaSetJSONRequestBody ¶ added in v0.20.0
type ResizeReplicaSetJSONRequestBody = ResizeInput
ResizeReplicaSetJSONRequestBody defines body for ResizeReplicaSet for application/json ContentType.
type ResizeReplicaSetResponse ¶ added in v0.20.0
type ResizeReplicaSetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON4XX *ClientError
}
func ParseResizeReplicaSetResponse ¶ added in v0.20.0
func ParseResizeReplicaSetResponse(rsp *http.Response) (*ResizeReplicaSetResponse, error)
ParseResizeReplicaSetResponse parses an HTTP response from a ResizeReplicaSetWithResponse call
func (ResizeReplicaSetResponse) Status ¶ added in v0.20.0
func (r ResizeReplicaSetResponse) Status() string
Status returns HTTPResponse.Status
func (ResizeReplicaSetResponse) StatusCode ¶ added in v0.20.0
func (r ResizeReplicaSetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ResizeServiceJSONRequestBody ¶ added in v0.20.0
type ResizeServiceJSONRequestBody = ResizeInput
ResizeServiceJSONRequestBody defines body for ResizeService for application/json ContentType.
type ResizeServiceResponse ¶ added in v0.20.0
type ResizeServiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *Service
JSON4XX *ClientError
}
func ParseResizeServiceResponse ¶ added in v0.20.0
func ParseResizeServiceResponse(rsp *http.Response) (*ResizeServiceResponse, error)
ParseResizeServiceResponse parses an HTTP response from a ResizeServiceWithResponse call
func (ResizeServiceResponse) Status ¶ added in v0.20.0
func (r ResizeServiceResponse) Status() string
Status returns HTTPResponse.Status
func (ResizeServiceResponse) StatusCode ¶ added in v0.20.0
func (r ResizeServiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Service ¶
type Service struct {
ConnectionPooler *ConnectionPooler `json:"connection_pooler,omitempty"`
// Created Creation timestamp
Created *time.Time `json:"created,omitempty"`
Endpoint *Endpoint `json:"endpoint,omitempty"`
ForkedFrom *ForkSpec `json:"forked_from,omitempty"`
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 *struct {
// Environment Environment tag for the service
Environment *string `json:"environment,omitempty"`
} `json:"metadata,omitempty"`
// Name The name of the service.
Name *string `json:"name,omitempty"`
// ProjectId The project this service belongs to.
ProjectId *string `json:"project_id,omitempty"`
ReadReplicaSets *[]ReadReplicaSet `json:"read_replica_sets,omitempty"`
// RegionCode The cloud region where the service is hosted.
RegionCode *string `json:"region_code,omitempty"`
// Resources List of resources allocated to the service
Resources *[]struct {
// Id Resource identifier
Id *string `json:"id,omitempty"`
// Spec Resource specification
Spec *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"`
} `json:"spec,omitempty"`
} `json:"resources,omitempty"`
// ServiceId The unique identifier for the service.
ServiceId *string `json:"service_id,omitempty"`
ServiceType *ServiceType `json:"service_type,omitempty"`
Status *DeployStatus `json:"status,omitempty"`
// VpcEndpoint VPC endpoint configuration if available
VpcEndpoint *map[string]interface{} `json:"vpcEndpoint"`
}
Service defines model for Service.
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 defines model for ServiceCreate.
type ServiceCreateAddons ¶ added in v0.1.2
type ServiceCreateAddons string
ServiceCreateAddons defines model for ServiceCreate.Addons.
const ( Ai ServiceCreateAddons = "ai" TimeSeries ServiceCreateAddons = "time-series" )
Defines values for ServiceCreateAddons.
type ServiceLogs ¶ added in v0.20.0
type ServiceLogs struct {
// Logs Array of log entries (up to 500 entries per page, may be empty)
Logs []string `json:"logs"`
}
ServiceLogs defines model for ServiceLogs.
type ServiceType ¶
type ServiceType string
ServiceType defines model for ServiceType.
const ( POSTGRES ServiceType = "POSTGRES" TIMESCALEDB ServiceType = "TIMESCALEDB" VECTOR 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 defines model for ServiceVPCInput.
type SetEnvironmentInput ¶
type SetEnvironmentInput struct {
// Environment The target environment for the service.
Environment SetEnvironmentInputEnvironment `json:"environment"`
}
SetEnvironmentInput defines model for SetEnvironmentInput.
type SetEnvironmentInputEnvironment ¶
type SetEnvironmentInputEnvironment string
SetEnvironmentInputEnvironment The target environment for the service.
const ( SetEnvironmentInputEnvironmentDEV SetEnvironmentInputEnvironment = "DEV" SetEnvironmentInputEnvironmentPROD SetEnvironmentInputEnvironment = "PROD" )
Defines values for SetEnvironmentInputEnvironment.
type SetEnvironmentJSONRequestBody ¶ added in v0.20.0
type SetEnvironmentJSONRequestBody = SetEnvironmentInput
SetEnvironmentJSONRequestBody defines body for SetEnvironment for application/json ContentType.
type SetEnvironmentResponse ¶ added in v0.20.0
type SetEnvironmentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessMessage
JSON4XX *ClientError
}
func ParseSetEnvironmentResponse ¶ added in v0.20.0
func ParseSetEnvironmentResponse(rsp *http.Response) (*SetEnvironmentResponse, error)
ParseSetEnvironmentResponse parses an HTTP response from a SetEnvironmentWithResponse call
func (SetEnvironmentResponse) Status ¶ added in v0.20.0
func (r SetEnvironmentResponse) Status() string
Status returns HTTPResponse.Status
func (SetEnvironmentResponse) StatusCode ¶ added in v0.20.0
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 ¶ added in v0.20.0
type SetHAReplicaJSONRequestBody = SetHAReplicaInput
SetHAReplicaJSONRequestBody defines body for SetHAReplica for application/json ContentType.
type SetHAReplicaResponse ¶ added in v0.20.0
type SetHAReplicaResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *Service
JSON4XX *ClientError
}
func ParseSetHAReplicaResponse ¶ added in v0.20.0
func ParseSetHAReplicaResponse(rsp *http.Response) (*SetHAReplicaResponse, error)
ParseSetHAReplicaResponse parses an HTTP response from a SetHAReplicaWithResponse call
func (SetHAReplicaResponse) Status ¶ added in v0.20.0
func (r SetHAReplicaResponse) Status() string
Status returns HTTPResponse.Status
func (SetHAReplicaResponse) StatusCode ¶ added in v0.20.0
func (r SetHAReplicaResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetReplicaEnvironmentJSONRequestBody ¶ added in v0.20.0
type SetReplicaEnvironmentJSONRequestBody = SetEnvironmentInput
SetReplicaEnvironmentJSONRequestBody defines body for SetReplicaEnvironment for application/json ContentType.
type SetReplicaEnvironmentResponse ¶ added in v0.20.0
type SetReplicaEnvironmentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessMessage
JSON4XX *ClientError
}
func ParseSetReplicaEnvironmentResponse ¶ added in v0.20.0
func ParseSetReplicaEnvironmentResponse(rsp *http.Response) (*SetReplicaEnvironmentResponse, error)
ParseSetReplicaEnvironmentResponse parses an HTTP response from a SetReplicaEnvironmentWithResponse call
func (SetReplicaEnvironmentResponse) Status ¶ added in v0.20.0
func (r SetReplicaEnvironmentResponse) Status() string
Status returns HTTPResponse.Status
func (SetReplicaEnvironmentResponse) StatusCode ¶ added in v0.20.0
func (r SetReplicaEnvironmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StartServiceResponse ¶ added in v0.20.0
type StartServiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *Service
JSON4XX *ClientError
}
func ParseStartServiceResponse ¶ added in v0.20.0
func ParseStartServiceResponse(rsp *http.Response) (*StartServiceResponse, error)
ParseStartServiceResponse parses an HTTP response from a StartServiceWithResponse call
func (StartServiceResponse) Status ¶ added in v0.20.0
func (r StartServiceResponse) Status() string
Status returns HTTPResponse.Status
func (StartServiceResponse) StatusCode ¶ added in v0.20.0
func (r StartServiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StopServiceResponse ¶ added in v0.20.0
type StopServiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *Service
JSON4XX *ClientError
}
func ParseStopServiceResponse ¶ added in v0.20.0
func ParseStopServiceResponse(rsp *http.Response) (*StopServiceResponse, error)
ParseStopServiceResponse parses an HTTP response from a StopServiceWithResponse call
func (StopServiceResponse) Status ¶ added in v0.20.0
func (r StopServiceResponse) Status() string
Status returns HTTPResponse.Status
func (StopServiceResponse) StatusCode ¶ added in v0.20.0
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 ¶ added in v0.20.0
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 ¶ added in v0.20.0
type TrackEventJSONRequestBody TrackEventJSONBody
TrackEventJSONRequestBody defines body for TrackEvent for application/json ContentType.
type TrackEventResponse ¶ added in v0.20.0
type TrackEventResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AnalyticsResponse
JSON4XX *ClientError
}
func ParseTrackEventResponse ¶ added in v0.20.0
func ParseTrackEventResponse(rsp *http.Response) (*TrackEventResponse, error)
ParseTrackEventResponse parses an HTTP response from a TrackEventWithResponse call
func (TrackEventResponse) Status ¶ added in v0.20.0
func (r TrackEventResponse) Status() string
Status returns HTTPResponse.Status
func (TrackEventResponse) StatusCode ¶ added in v0.20.0
func (r TrackEventResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdatePasswordInput ¶
type UpdatePasswordInput struct {
// Password The new password.
Password string `json:"password"`
}
UpdatePasswordInput defines model for UpdatePasswordInput.
type UpdatePasswordJSONRequestBody ¶ added in v0.20.0
type UpdatePasswordJSONRequestBody = UpdatePasswordInput
UpdatePasswordJSONRequestBody defines body for UpdatePassword for application/json ContentType.
type UpdatePasswordResponse ¶ added in v0.20.0
type UpdatePasswordResponse struct {
Body []byte
HTTPResponse *http.Response
JSON4XX *ClientError
}
func ParseUpdatePasswordResponse ¶ added in v0.20.0
func ParseUpdatePasswordResponse(rsp *http.Response) (*UpdatePasswordResponse, error)
ParseUpdatePasswordResponse parses an HTTP response from a UpdatePasswordWithResponse call
func (UpdatePasswordResponse) Status ¶ added in v0.20.0
func (r UpdatePasswordResponse) Status() string
Status returns HTTPResponse.Status
func (UpdatePasswordResponse) StatusCode ¶ added in v0.20.0
func (r UpdatePasswordResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VPC ¶
type VPC struct {
Cidr *string `json:"cidr,omitempty"`
Id *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
RegionCode *string `json:"region_code,omitempty"`
}
VPC defines model for VPC.