Documentation
¶
Overview ¶
Package serverless provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- func NewCreateEndpointRequest(server string, body CreateEndpointJSONRequestBody) (*http.Request, error)
- func NewCreateEndpointRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteEndpointRequest(server string, id string) (*http.Request, error)
- func NewGetEndpointBuildRequest(server string, id string, buildId string) (*http.Request, error)
- func NewGetEndpointColdStartMetricsRequest(server string, id string, params *GetEndpointColdStartMetricsParams) (*http.Request, error)
- func NewGetEndpointRequest(server string, id string) (*http.Request, error)
- func NewGetEndpointRequestMetricsRequest(server string, id string, params *GetEndpointRequestMetricsParams) (*http.Request, error)
- func NewGetEndpointWorkerMetricsRequest(server string, id string, params *GetEndpointWorkerMetricsParams) (*http.Request, error)
- func NewGetWorkerLogsRequest(server string, id string, workerId string, params *GetWorkerLogsParams) (*http.Request, error)
- func NewListEndpointBuildsRequest(server string, id string, params *ListEndpointBuildsParams) (*http.Request, error)
- func NewListEndpointReleasesRequest(server string, id string, params *ListEndpointReleasesParams) (*http.Request, error)
- func NewListEndpointWorkersRequest(server string, id string) (*http.Request, error)
- func NewListEndpointsRequest(server string, params *ListEndpointsParams) (*http.Request, error)
- func NewUpdateEndpointRequest(server string, id string, body UpdateEndpointJSONRequestBody) (*http.Request, error)
- func NewUpdateEndpointRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- type Client
- func (c *Client) CreateEndpoint(ctx context.Context, body CreateEndpointJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateEndpointWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteEndpoint(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetEndpoint(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetEndpointBuild(ctx context.Context, id string, buildId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetEndpointColdStartMetrics(ctx context.Context, id string, params *GetEndpointColdStartMetricsParams, ...) (*http.Response, error)
- func (c *Client) GetEndpointRequestMetrics(ctx context.Context, id string, params *GetEndpointRequestMetricsParams, ...) (*http.Response, error)
- func (c *Client) GetEndpointWorkerMetrics(ctx context.Context, id string, params *GetEndpointWorkerMetricsParams, ...) (*http.Response, error)
- func (c *Client) GetWorkerLogs(ctx context.Context, id string, workerId string, params *GetWorkerLogsParams, ...) (*http.Response, error)
- func (c *Client) ListEndpointBuilds(ctx context.Context, id string, params *ListEndpointBuildsParams, ...) (*http.Response, error)
- func (c *Client) ListEndpointReleases(ctx context.Context, id string, params *ListEndpointReleasesParams, ...) (*http.Response, error)
- func (c *Client) ListEndpointWorkers(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListEndpoints(ctx context.Context, params *ListEndpointsParams, ...) (*http.Response, error)
- func (c *Client) UpdateEndpoint(ctx context.Context, id string, body UpdateEndpointJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateEndpointWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateEndpointWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateEndpointResult, error)
- func (c *ClientWithResponses) CreateEndpointWithResponse(ctx context.Context, body CreateEndpointJSONRequestBody, ...) (*CreateEndpointResult, error)
- func (c *ClientWithResponses) DeleteEndpointWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteEndpointResult, error)
- func (c *ClientWithResponses) GetEndpointBuildWithResponse(ctx context.Context, id string, buildId string, reqEditors ...RequestEditorFn) (*GetEndpointBuildResult, error)
- func (c *ClientWithResponses) GetEndpointColdStartMetricsWithResponse(ctx context.Context, id string, params *GetEndpointColdStartMetricsParams, ...) (*GetEndpointColdStartMetricsResult, error)
- func (c *ClientWithResponses) GetEndpointRequestMetricsWithResponse(ctx context.Context, id string, params *GetEndpointRequestMetricsParams, ...) (*GetEndpointRequestMetricsResult, error)
- func (c *ClientWithResponses) GetEndpointWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetEndpointResult, error)
- func (c *ClientWithResponses) GetEndpointWorkerMetricsWithResponse(ctx context.Context, id string, params *GetEndpointWorkerMetricsParams, ...) (*GetEndpointWorkerMetricsResult, error)
- func (c *ClientWithResponses) GetWorkerLogsWithResponse(ctx context.Context, id string, workerId string, params *GetWorkerLogsParams, ...) (*GetWorkerLogsResult, error)
- func (c *ClientWithResponses) ListEndpointBuildsWithResponse(ctx context.Context, id string, params *ListEndpointBuildsParams, ...) (*ListEndpointBuildsResult, error)
- func (c *ClientWithResponses) ListEndpointReleasesWithResponse(ctx context.Context, id string, params *ListEndpointReleasesParams, ...) (*ListEndpointReleasesResult, error)
- func (c *ClientWithResponses) ListEndpointWorkersWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ListEndpointWorkersResult, error)
- func (c *ClientWithResponses) ListEndpointsWithResponse(ctx context.Context, params *ListEndpointsParams, ...) (*ListEndpointsResult, error)
- func (c *ClientWithResponses) UpdateEndpointWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*UpdateEndpointResult, error)
- func (c *ClientWithResponses) UpdateEndpointWithResponse(ctx context.Context, id string, body UpdateEndpointJSONRequestBody, ...) (*UpdateEndpointResult, error)
- type ClientWithResponsesInterface
- type CreateEndpointJSONRequestBody
- type CreateEndpointResult
- func (r CreateEndpointResult) ContentType() string
- func (r CreateEndpointResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse
- func (r CreateEndpointResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r CreateEndpointResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r CreateEndpointResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
- func (r CreateEndpointResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse
- func (r CreateEndpointResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse
- func (r CreateEndpointResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r CreateEndpointResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r CreateEndpointResult) GetBody() []byte
- func (r CreateEndpointResult) GetJSON201() *externalRef0.Endpoint
- func (r CreateEndpointResult) Status() string
- func (r CreateEndpointResult) StatusCode() int
- type CreateEndpointResult201Headers
- type CreateEndpointResult400Headers
- type CreateEndpointResult403Headers
- type CreateEndpointResult404Headers
- type CreateEndpointResult413Headers
- type CreateEndpointResult422Headers
- type CreateEndpointResult429Headers
- type CreateEndpointResultDefaultHeaders
- type DeleteEndpointResult
- func (r DeleteEndpointResult) ContentType() string
- func (r DeleteEndpointResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r DeleteEndpointResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r DeleteEndpointResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
- func (r DeleteEndpointResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r DeleteEndpointResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r DeleteEndpointResult) GetBody() []byte
- func (r DeleteEndpointResult) Status() string
- func (r DeleteEndpointResult) StatusCode() int
- type DeleteEndpointResult204Headers
- type DeleteEndpointResult403Headers
- type DeleteEndpointResult404Headers
- type DeleteEndpointResult429Headers
- type DeleteEndpointResultDefaultHeaders
- type GetEndpointBuildResult
- func (r GetEndpointBuildResult) ContentType() string
- func (r GetEndpointBuildResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r GetEndpointBuildResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r GetEndpointBuildResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
- func (r GetEndpointBuildResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r GetEndpointBuildResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r GetEndpointBuildResult) GetBody() []byte
- func (r GetEndpointBuildResult) GetJSON200() *externalRef0.Build
- func (r GetEndpointBuildResult) Status() string
- func (r GetEndpointBuildResult) StatusCode() int
- type GetEndpointBuildResult200Headers
- type GetEndpointBuildResult403Headers
- type GetEndpointBuildResult404Headers
- type GetEndpointBuildResult429Headers
- type GetEndpointBuildResultDefaultHeaders
- type GetEndpointColdStartMetricsParams
- type GetEndpointColdStartMetricsResult
- func (r GetEndpointColdStartMetricsResult) ContentType() string
- func (r GetEndpointColdStartMetricsResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse
- func (r GetEndpointColdStartMetricsResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r GetEndpointColdStartMetricsResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r GetEndpointColdStartMetricsResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
- func (r GetEndpointColdStartMetricsResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse
- func (r GetEndpointColdStartMetricsResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse
- func (r GetEndpointColdStartMetricsResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r GetEndpointColdStartMetricsResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r GetEndpointColdStartMetricsResult) GetBody() []byte
- func (r GetEndpointColdStartMetricsResult) GetJSON200() *externalRef0.EndpointColdStartMetricsResponse
- func (r GetEndpointColdStartMetricsResult) Status() string
- func (r GetEndpointColdStartMetricsResult) StatusCode() int
- type GetEndpointColdStartMetricsResult200Headers
- type GetEndpointColdStartMetricsResult400Headers
- type GetEndpointColdStartMetricsResult403Headers
- type GetEndpointColdStartMetricsResult404Headers
- type GetEndpointColdStartMetricsResult413Headers
- type GetEndpointColdStartMetricsResult422Headers
- type GetEndpointColdStartMetricsResult429Headers
- type GetEndpointColdStartMetricsResultDefaultHeaders
- type GetEndpointRequestMetricsParams
- type GetEndpointRequestMetricsResult
- func (r GetEndpointRequestMetricsResult) ContentType() string
- func (r GetEndpointRequestMetricsResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse
- func (r GetEndpointRequestMetricsResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r GetEndpointRequestMetricsResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r GetEndpointRequestMetricsResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
- func (r GetEndpointRequestMetricsResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse
- func (r GetEndpointRequestMetricsResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse
- func (r GetEndpointRequestMetricsResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r GetEndpointRequestMetricsResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r GetEndpointRequestMetricsResult) GetBody() []byte
- func (r GetEndpointRequestMetricsResult) GetJSON200() *externalRef0.EndpointRequestMetricsResponse
- func (r GetEndpointRequestMetricsResult) Status() string
- func (r GetEndpointRequestMetricsResult) StatusCode() int
- type GetEndpointRequestMetricsResult200Headers
- type GetEndpointRequestMetricsResult400Headers
- type GetEndpointRequestMetricsResult403Headers
- type GetEndpointRequestMetricsResult404Headers
- type GetEndpointRequestMetricsResult413Headers
- type GetEndpointRequestMetricsResult422Headers
- type GetEndpointRequestMetricsResult429Headers
- type GetEndpointRequestMetricsResultDefaultHeaders
- type GetEndpointResult
- func (r GetEndpointResult) ContentType() string
- func (r GetEndpointResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r GetEndpointResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r GetEndpointResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
- func (r GetEndpointResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r GetEndpointResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r GetEndpointResult) GetBody() []byte
- func (r GetEndpointResult) GetJSON200() *externalRef0.Endpoint
- func (r GetEndpointResult) Status() string
- func (r GetEndpointResult) StatusCode() int
- type GetEndpointResult200Headers
- type GetEndpointResult403Headers
- type GetEndpointResult404Headers
- type GetEndpointResult429Headers
- type GetEndpointResultDefaultHeaders
- type GetEndpointWorkerMetricsParams
- type GetEndpointWorkerMetricsResult
- func (r GetEndpointWorkerMetricsResult) ContentType() string
- func (r GetEndpointWorkerMetricsResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse
- func (r GetEndpointWorkerMetricsResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r GetEndpointWorkerMetricsResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r GetEndpointWorkerMetricsResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
- func (r GetEndpointWorkerMetricsResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse
- func (r GetEndpointWorkerMetricsResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse
- func (r GetEndpointWorkerMetricsResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r GetEndpointWorkerMetricsResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r GetEndpointWorkerMetricsResult) GetBody() []byte
- func (r GetEndpointWorkerMetricsResult) GetJSON200() *externalRef0.EndpointWorkerMetricsResponse
- func (r GetEndpointWorkerMetricsResult) Status() string
- func (r GetEndpointWorkerMetricsResult) StatusCode() int
- type GetEndpointWorkerMetricsResult200Headers
- type GetEndpointWorkerMetricsResult400Headers
- type GetEndpointWorkerMetricsResult403Headers
- type GetEndpointWorkerMetricsResult404Headers
- type GetEndpointWorkerMetricsResult413Headers
- type GetEndpointWorkerMetricsResult422Headers
- type GetEndpointWorkerMetricsResult429Headers
- type GetEndpointWorkerMetricsResultDefaultHeaders
- type GetWorkerLogsParams
- type GetWorkerLogsResult
- func (r GetWorkerLogsResult) ContentType() string
- func (r GetWorkerLogsResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r GetWorkerLogsResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r GetWorkerLogsResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
- func (r GetWorkerLogsResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r GetWorkerLogsResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r GetWorkerLogsResult) GetBody() []byte
- func (r GetWorkerLogsResult) Status() string
- func (r GetWorkerLogsResult) StatusCode() int
- type GetWorkerLogsResult200Headers
- type GetWorkerLogsResult403Headers
- type GetWorkerLogsResult404Headers
- type GetWorkerLogsResult429Headers
- type GetWorkerLogsResultDefaultHeaders
- type HttpRequestDoer
- type ListEndpointBuildsParams
- type ListEndpointBuildsResult
- func (r ListEndpointBuildsResult) ContentType() string
- func (r ListEndpointBuildsResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r ListEndpointBuildsResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r ListEndpointBuildsResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
- func (r ListEndpointBuildsResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse
- func (r ListEndpointBuildsResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r ListEndpointBuildsResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r ListEndpointBuildsResult) GetBody() []byte
- func (r ListEndpointBuildsResult) GetJSON200() *externalRef0.ListEndpointBuildsResponse
- func (r ListEndpointBuildsResult) Status() string
- func (r ListEndpointBuildsResult) StatusCode() int
- type ListEndpointBuildsResult200Headers
- type ListEndpointBuildsResult403Headers
- type ListEndpointBuildsResult404Headers
- type ListEndpointBuildsResult413Headers
- type ListEndpointBuildsResult429Headers
- type ListEndpointBuildsResultDefaultHeaders
- type ListEndpointReleasesParams
- type ListEndpointReleasesResult
- func (r ListEndpointReleasesResult) ContentType() string
- func (r ListEndpointReleasesResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r ListEndpointReleasesResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r ListEndpointReleasesResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
- func (r ListEndpointReleasesResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse
- func (r ListEndpointReleasesResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r ListEndpointReleasesResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r ListEndpointReleasesResult) GetBody() []byte
- func (r ListEndpointReleasesResult) GetJSON200() *externalRef0.ListEndpointReleasesResponse
- func (r ListEndpointReleasesResult) Status() string
- func (r ListEndpointReleasesResult) StatusCode() int
- type ListEndpointReleasesResult200Headers
- type ListEndpointReleasesResult403Headers
- type ListEndpointReleasesResult404Headers
- type ListEndpointReleasesResult413Headers
- type ListEndpointReleasesResult429Headers
- type ListEndpointReleasesResultDefaultHeaders
- type ListEndpointWorkersResult
- func (r ListEndpointWorkersResult) ContentType() string
- func (r ListEndpointWorkersResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r ListEndpointWorkersResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r ListEndpointWorkersResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
- func (r ListEndpointWorkersResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r ListEndpointWorkersResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r ListEndpointWorkersResult) GetBody() []byte
- func (r ListEndpointWorkersResult) GetJSON200() *externalRef0.ListEndpointWorkersResponse
- func (r ListEndpointWorkersResult) Status() string
- func (r ListEndpointWorkersResult) StatusCode() int
- type ListEndpointWorkersResult200Headers
- type ListEndpointWorkersResult403Headers
- type ListEndpointWorkersResult404Headers
- type ListEndpointWorkersResult429Headers
- type ListEndpointWorkersResultDefaultHeaders
- type ListEndpointsParams
- type ListEndpointsResult
- func (r ListEndpointsResult) ContentType() string
- func (r ListEndpointsResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r ListEndpointsResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r ListEndpointsResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse
- func (r ListEndpointsResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse
- func (r ListEndpointsResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r ListEndpointsResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r ListEndpointsResult) GetBody() []byte
- func (r ListEndpointsResult) GetJSON200() *externalRef0.ListEndpointsResponse
- func (r ListEndpointsResult) Status() string
- func (r ListEndpointsResult) StatusCode() int
- type ListEndpointsResult200Headers
- type ListEndpointsResult403Headers
- type ListEndpointsResult413Headers
- type ListEndpointsResult422Headers
- type ListEndpointsResult429Headers
- type ListEndpointsResultDefaultHeaders
- type RequestEditorFn
- type UpdateEndpointJSONRequestBody
- type UpdateEndpointResult
- func (r UpdateEndpointResult) ContentType() string
- func (r UpdateEndpointResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse
- func (r UpdateEndpointResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r UpdateEndpointResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r UpdateEndpointResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
- func (r UpdateEndpointResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse
- func (r UpdateEndpointResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse
- func (r UpdateEndpointResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r UpdateEndpointResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r UpdateEndpointResult) GetBody() []byte
- func (r UpdateEndpointResult) GetJSON200() *externalRef0.Endpoint
- func (r UpdateEndpointResult) Status() string
- func (r UpdateEndpointResult) StatusCode() int
- type UpdateEndpointResult200Headers
- type UpdateEndpointResult400Headers
- type UpdateEndpointResult403Headers
- type UpdateEndpointResult404Headers
- type UpdateEndpointResult413Headers
- type UpdateEndpointResult422Headers
- type UpdateEndpointResult429Headers
- type UpdateEndpointResultDefaultHeaders
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreateEndpointRequest ¶
func NewCreateEndpointRequest(server string, body CreateEndpointJSONRequestBody) (*http.Request, error)
NewCreateEndpointRequest calls the generic CreateEndpoint builder with application/json body
func NewCreateEndpointRequestWithBody ¶
func NewCreateEndpointRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateEndpointRequestWithBody constructs an http.Request for the CreateEndpoint method, with any body, and a specified content type
func NewDeleteEndpointRequest ¶
NewDeleteEndpointRequest constructs an http.Request for the DeleteEndpoint method
func NewGetEndpointBuildRequest ¶
NewGetEndpointBuildRequest constructs an http.Request for the GetEndpointBuild method
func NewGetEndpointColdStartMetricsRequest ¶ added in v2.2.0
func NewGetEndpointColdStartMetricsRequest(server string, id string, params *GetEndpointColdStartMetricsParams) (*http.Request, error)
NewGetEndpointColdStartMetricsRequest constructs an http.Request for the GetEndpointColdStartMetrics method
func NewGetEndpointRequest ¶
NewGetEndpointRequest constructs an http.Request for the GetEndpoint method
func NewGetEndpointRequestMetricsRequest ¶ added in v2.2.0
func NewGetEndpointRequestMetricsRequest(server string, id string, params *GetEndpointRequestMetricsParams) (*http.Request, error)
NewGetEndpointRequestMetricsRequest constructs an http.Request for the GetEndpointRequestMetrics method
func NewGetEndpointWorkerMetricsRequest ¶ added in v2.2.0
func NewGetEndpointWorkerMetricsRequest(server string, id string, params *GetEndpointWorkerMetricsParams) (*http.Request, error)
NewGetEndpointWorkerMetricsRequest constructs an http.Request for the GetEndpointWorkerMetrics method
func NewGetWorkerLogsRequest ¶
func NewGetWorkerLogsRequest(server string, id string, workerId string, params *GetWorkerLogsParams) (*http.Request, error)
NewGetWorkerLogsRequest constructs an http.Request for the GetWorkerLogs method
func NewListEndpointBuildsRequest ¶
func NewListEndpointBuildsRequest(server string, id string, params *ListEndpointBuildsParams) (*http.Request, error)
NewListEndpointBuildsRequest constructs an http.Request for the ListEndpointBuilds method
func NewListEndpointReleasesRequest ¶
func NewListEndpointReleasesRequest(server string, id string, params *ListEndpointReleasesParams) (*http.Request, error)
NewListEndpointReleasesRequest constructs an http.Request for the ListEndpointReleases method
func NewListEndpointWorkersRequest ¶
NewListEndpointWorkersRequest constructs an http.Request for the ListEndpointWorkers method
func NewListEndpointsRequest ¶
func NewListEndpointsRequest(server string, params *ListEndpointsParams) (*http.Request, error)
NewListEndpointsRequest constructs an http.Request for the ListEndpoints method
func NewUpdateEndpointRequest ¶
func NewUpdateEndpointRequest(server string, id string, body UpdateEndpointJSONRequestBody) (*http.Request, error)
NewUpdateEndpointRequest calls the generic UpdateEndpoint builder with application/json body
Types ¶
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) CreateEndpoint ¶
func (c *Client) CreateEndpoint(ctx context.Context, body CreateEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateEndpoint Create a serverless endpoint
Creates a serverless endpoint. Callers specify exactly one of `gpu` or `cpu`; neither or both returns 400. Container settings come from the body, from a serverless template referenced by `templateId` (body fields override the template's), or both; `image` is required unless `templateId` is set. See `CreateEndpointRequest` for the full body. An image in a private Amazon ECR registry with no `registry` credential must be covered by one of your ECR delegations (see `registry`); otherwise the create returns 400 here rather than workers failing their image pull. A caller whose organization role cannot use ECR delegations gets 403.
The CUDA constraints live on `gpu` — `gpu.allowedCudaVersions` and `gpu.minCudaVersion` — so a CPU create cannot express them and the schema rejects the attempt with a 422. A non-empty set and a floor are mutually exclusive (400 if both are sent); an explicit empty set states no constraint and may accompany a floor.
Returns `201` with the created endpoint. The endpoint can accept jobs immediately, but starts with no active workers unless `workers.min` is greater than 0. Workers are provisioned on demand and autoscaled between `workers.min` and `workers.max` according to the `scaling` policy, so the first request to an idle endpoint may incur cold-start latency while a worker pulls its image and boots.
## Checking what you can deploy
`gpu.pools` takes serverless GPU **pool** IDs, not the GPU type IDs used for pods. `gpu.excludedTypes` takes the type IDs — it subtracts specific cards from the pools you picked. Read both from the catalog before you create:
- [List GPU types](https://docs.runpod.io/api-reference-v2/catalog/list-gpu-types) — the `pool` field carries the pool ID for each GPU type (`null` means that type is not in a serverless pool). Add `include=AVAILABILITY&product=SERVERLESS` for current serverless stock.
- [List data centers](https://docs.runpod.io/api-reference-v2/catalog/list-data-centers) — locations to constrain with `dataCenterIds`, with `include=GPU_AVAILABILITY` for stock per data center.
Unlike pod creation, you do not need to retry across GPUs yourself: list every pool you are willing to run on and workers are placed on whichever one has capacity. Listing more pools — and leaving `dataCenterIds` unset — gives the scheduler more room and reduces the chance of workers failing to start when a single pool is exhausted.
If your workload needs a specific card, pick the pool that holds it and exclude the rest of that pool with `gpu.excludedTypes`. Keep at least one type in the selection — a selection that leaves none is rejected.
Takes a body of the `application/json` content type.
Corresponds with POST /v2/serverless (the `CreateEndpoint` operationId).
func (*Client) CreateEndpointWithBody ¶
func (c *Client) CreateEndpointWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateEndpointWithBody Create a serverless endpoint
Creates a serverless endpoint. Callers specify exactly one of `gpu` or `cpu`; neither or both returns 400. Container settings come from the body, from a serverless template referenced by `templateId` (body fields override the template's), or both; `image` is required unless `templateId` is set. See `CreateEndpointRequest` for the full body. An image in a private Amazon ECR registry with no `registry` credential must be covered by one of your ECR delegations (see `registry`); otherwise the create returns 400 here rather than workers failing their image pull. A caller whose organization role cannot use ECR delegations gets 403.
The CUDA constraints live on `gpu` — `gpu.allowedCudaVersions` and `gpu.minCudaVersion` — so a CPU create cannot express them and the schema rejects the attempt with a 422. A non-empty set and a floor are mutually exclusive (400 if both are sent); an explicit empty set states no constraint and may accompany a floor.
Returns `201` with the created endpoint. The endpoint can accept jobs immediately, but starts with no active workers unless `workers.min` is greater than 0. Workers are provisioned on demand and autoscaled between `workers.min` and `workers.max` according to the `scaling` policy, so the first request to an idle endpoint may incur cold-start latency while a worker pulls its image and boots.
## Checking what you can deploy
`gpu.pools` takes serverless GPU **pool** IDs, not the GPU type IDs used for pods. `gpu.excludedTypes` takes the type IDs — it subtracts specific cards from the pools you picked. Read both from the catalog before you create:
- [List GPU types](https://docs.runpod.io/api-reference-v2/catalog/list-gpu-types) — the `pool` field carries the pool ID for each GPU type (`null` means that type is not in a serverless pool). Add `include=AVAILABILITY&product=SERVERLESS` for current serverless stock.
- [List data centers](https://docs.runpod.io/api-reference-v2/catalog/list-data-centers) — locations to constrain with `dataCenterIds`, with `include=GPU_AVAILABILITY` for stock per data center.
Unlike pod creation, you do not need to retry across GPUs yourself: list every pool you are willing to run on and workers are placed on whichever one has capacity. Listing more pools — and leaving `dataCenterIds` unset — gives the scheduler more room and reduces the chance of workers failing to start when a single pool is exhausted.
If your workload needs a specific card, pick the pool that holds it and exclude the rest of that pool with `gpu.excludedTypes`. Keep at least one type in the selection — a selection that leaves none is rejected.
Takes any type of body and a specified content type.
Corresponds with POST /v2/serverless (the `CreateEndpoint` operationId).
func (*Client) DeleteEndpoint ¶
func (c *Client) DeleteEndpoint(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteEndpoint Delete a serverless endpoint
Permanently deletes a serverless endpoint and its bound template. This is irreversible: all workers are terminated and any queued or in-progress jobs are cancelled.
Corresponds with DELETE /v2/serverless/{id} (the `DeleteEndpoint` operationId).
func (*Client) GetEndpoint ¶
func (c *Client) GetEndpoint(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetEndpoint Get a serverless endpoint
Returns a single serverless endpoint by ID.
Corresponds with GET /v2/serverless/{id} (the `GetEndpoint` operationId).
func (*Client) GetEndpointBuild ¶
func (c *Client) GetEndpointBuild(ctx context.Context, id string, buildId string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetEndpointBuild Get a serverless endpoint build
Returns one of the endpoint's GitHub builds by id, regardless of age — no need to page through `GET /v2/serverless/{id}/builds` to reach it.
Corresponds with GET /v2/serverless/{id}/builds/{buildId} (the `GetEndpointBuild` operationId).
func (*Client) GetEndpointColdStartMetrics ¶ added in v2.2.0
func (c *Client) GetEndpointColdStartMetrics(ctx context.Context, id string, params *GetEndpointColdStartMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetEndpointColdStartMetrics Get serverless endpoint cold start metrics
Returns the cold start series shown on the endpoint's Metrics tab in the console.
**Window.** `startTime` is inclusive and `endTime` is exclusive. Both are optional: `endTime` defaults to now and `startTime` to 24 hours before `endTime`, rounded down to the start of an `interval` bucket. An `endTime` in the future is treated as now. Metrics are kept for 90 days, so `startTime` must be within the last 90 days.
**Interval.** Each record covers one `interval`-sized bucket, aligned to UTC.
**Paging.** Records are oldest first, at most `limit` (default 1000) per page. Follow `pagination.nextCursor` while `pagination.hasNextPage` is true. The cursor keeps the first page's window, so `startTime`, `endTime`, and `interval` can be left out on later pages; if sent, they must match the first page or the cursor is rejected with 422.
**Sparse series.** Buckets with no activity are omitted, not zero-filled, so `records` can be shorter than the number of buckets in the window, or empty.
**Units.** `durationMs` is how long each cold start took, in milliseconds.
Corresponds with GET /v2/serverless/{id}/metrics/cold-starts (the `GetEndpointColdStartMetrics` operationId).
func (*Client) GetEndpointRequestMetrics ¶ added in v2.2.0
func (c *Client) GetEndpointRequestMetrics(ctx context.Context, id string, params *GetEndpointRequestMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetEndpointRequestMetrics Get serverless endpoint request metrics
Returns the request series shown on the endpoint's Metrics tab in the console.
**Window.** `startTime` is inclusive and `endTime` is exclusive. Both are optional: `endTime` defaults to now and `startTime` to 24 hours before `endTime`, rounded down to the start of an `interval` bucket. An `endTime` in the future is treated as now. Metrics are kept for 90 days, so `startTime` must be within the last 90 days.
**Interval.** Each record covers one `interval`-sized bucket, aligned to UTC.
**Paging.** Records are oldest first, at most `limit` (default 1000) per page. Follow `pagination.nextCursor` while `pagination.hasNextPage` is true. The cursor keeps the first page's window, so `startTime`, `endTime`, and `interval` can be left out on later pages; if sent, they must match the first page or the cursor is rejected with 422.
**Sparse series.** Buckets with no activity are omitted, not zero-filled, so `records` can be shorter than the number of buckets in the window, or empty.
**Units.** Durations are milliseconds. `executionTimeMs` is the time a worker spent running a request; `delayTimeMs` is the time a request waited in the queue before a worker picked it up.
Corresponds with GET /v2/serverless/{id}/metrics/requests (the `GetEndpointRequestMetrics` operationId).
func (*Client) GetEndpointWorkerMetrics ¶ added in v2.2.0
func (c *Client) GetEndpointWorkerMetrics(ctx context.Context, id string, params *GetEndpointWorkerMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetEndpointWorkerMetrics Get serverless endpoint worker metrics
Returns the worker state series shown on the endpoint's Metrics tab in the console. For the current worker list, use `GET /v2/serverless/{id}/workers`.
**Window.** `startTime` is inclusive and `endTime` is exclusive. Both are optional: `endTime` defaults to now and `startTime` to 24 hours before `endTime`, rounded down to the start of an `interval` bucket. An `endTime` in the future is treated as now. Metrics are kept for 90 days, so `startTime` must be within the last 90 days.
**Interval.** Each record covers one `interval`-sized bucket, aligned to UTC.
**Paging.** Records are oldest first, at most `limit` (default 1000) per page. Follow `pagination.nextCursor` while `pagination.hasNextPage` is true. The cursor keeps the first page's window, so `startTime`, `endTime`, and `interval` can be left out on later pages; if sent, they must match the first page or the cursor is rejected with 422.
**Sparse series.** Buckets with no activity are omitted, not zero-filled, so `records` can be shorter than the number of buckets in the window, or empty.
**Snapshots.** Each record holds the last worker-count snapshot in its bucket, as point-in-time counts.
Corresponds with GET /v2/serverless/{id}/metrics/workers (the `GetEndpointWorkerMetrics` operationId).
func (*Client) GetWorkerLogs ¶
func (c *Client) GetWorkerLogs(ctx context.Context, id string, workerId string, params *GetWorkerLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetWorkerLogs Stream serverless worker logs
Streams a serverless worker's logs as Server-Sent Events. The `source` query parameter selects which log source to include.
The SSE `data` payload shape is: `{ "source": "container", "line": "...", "ts": "..." }`. Log-event `id` values are the event `ts` timestamp so browser/EventSource reconnects can resume with `Last-Event-ID`.
Corresponds with GET /v2/serverless/{id}/workers/{workerId}/logs (the `GetWorkerLogs` operationId).
func (*Client) ListEndpointBuilds ¶
func (c *Client) ListEndpointBuilds(ctx context.Context, id string, params *ListEndpointBuildsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListEndpointBuilds List serverless endpoint builds
Returns the endpoint's GitHub build history, newest first (Runpod GitHub-build integration), cursor-paginated; an omitted `limit` defaults to 100, so a bare request returns at most the 100 most recent builds. Any build can also be fetched by id via `GET /v2/serverless/{id}/builds/{buildId}`. Stream a build's logs via `/v2/serverless/{id}/builds/{buildId}/logs`.
Corresponds with GET /v2/serverless/{id}/builds (the `ListEndpointBuilds` operationId).
func (*Client) ListEndpointReleases ¶
func (c *Client) ListEndpointReleases(ctx context.Context, id string, params *ListEndpointReleasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListEndpointReleases List serverless endpoint releases
Returns the endpoint's release history (newest first) plus a rollout summary of how many workers are running the current version. Each release is a versioned configuration snapshot with a `diff` of what changed; build-driven releases carry a `buildId` (fetch build detail via the builds sub-routes).
Releases are cursor-paginated newest-first; an omitted `limit` defaults to 1000. The rollout summary always describes the endpoint's current state, independent of the page requested.
Corresponds with GET /v2/serverless/{id}/releases (the `ListEndpointReleases` operationId).
func (*Client) ListEndpointWorkers ¶
func (c *Client) ListEndpointWorkers(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
ListEndpointWorkers List serverless endpoint workers
Lists the active workers for a serverless endpoint.
**Returns.** A `200` with a `ListEndpointWorkersResponse`: a `workers` array (one entry per active worker, each carrying its `id`, `status`, and runtime details) plus a `summary` of worker counts grouped by status. Only currently active workers are included; scaled-down workers are not returned.
**How `status` is determined.** Each worker's `status` is derived by reconciling the worker pod's lifecycle status with the endpoint's live job-queue view (which workers are actively serving requests). When the job-queue view is unavailable, the response degrades gracefully: the shape is unchanged, but each `status` and the summary counts fall back to pod lifecycle alone.
Corresponds with GET /v2/serverless/{id}/workers (the `ListEndpointWorkers` operationId).
func (*Client) ListEndpoints ¶
func (c *Client) ListEndpoints(ctx context.Context, params *ListEndpointsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListEndpoints List serverless endpoints
Returns serverless endpoints owned by the authenticated user, cursor-paginated newest-first; an omitted `limit` defaults to 1000. Follow `pagination.nextCursor` until `hasNextPage` is false.
Corresponds with GET /v2/serverless (the `ListEndpoints` operationId).
func (*Client) UpdateEndpoint ¶
func (c *Client) UpdateEndpoint(ctx context.Context, id string, body UpdateEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateEndpoint Update a serverless endpoint
Partially updates a serverless endpoint. This is a PATCH: only the fields present in the body are changed; omitted fields are left untouched. See `UpdateEndpointRequest` for the full body.
Mutable fields: `name`, `gpu`, `cpu`, `workers` (`min`/`max`), `scaling` (`type`/`value`/`idleTimeout`), `dataCenterIds`, `networkVolumes`, `timeout`, `flashboot`, and the container settings (`image`, `args`, `disk`, `ports`, `env`, `registry`). A patch that leaves the endpoint pulling a private Amazon ECR image with no `registry` credential is checked against your ECR delegations as on create (400 when none covers the repository, 403 when the caller's organization role cannot use delegations); a patch that changes neither `image` nor `registry` is not.
Omitted compute preserves the current selection. `cpu` completely replaces a CPU endpoint's selection; compute family is immutable. `gpu` on CPU, `cpu` on GPU, or both fields returns 400.
Returns `200` with the full updated endpoint. Effect timing differs by field: scaling and worker-bound settings (`workers`, `scaling`, `timeout`) are applied to the autoscaler promptly, while container-affecting changes (e.g. `image`, `env`) create a new endpoint release that rolls out as workers cycle — in-flight workers keep the previous version until they are replaced. Track rollout via `listEndpointReleases`.
Takes a body of the `application/json` content type.
Corresponds with PATCH /v2/serverless/{id} (the `UpdateEndpoint` operationId).
func (*Client) UpdateEndpointWithBody ¶
func (c *Client) UpdateEndpointWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateEndpointWithBody Update a serverless endpoint
Partially updates a serverless endpoint. This is a PATCH: only the fields present in the body are changed; omitted fields are left untouched. See `UpdateEndpointRequest` for the full body.
Mutable fields: `name`, `gpu`, `cpu`, `workers` (`min`/`max`), `scaling` (`type`/`value`/`idleTimeout`), `dataCenterIds`, `networkVolumes`, `timeout`, `flashboot`, and the container settings (`image`, `args`, `disk`, `ports`, `env`, `registry`). A patch that leaves the endpoint pulling a private Amazon ECR image with no `registry` credential is checked against your ECR delegations as on create (400 when none covers the repository, 403 when the caller's organization role cannot use delegations); a patch that changes neither `image` nor `registry` is not.
Omitted compute preserves the current selection. `cpu` completely replaces a CPU endpoint's selection; compute family is immutable. `gpu` on CPU, `cpu` on GPU, or both fields returns 400.
Returns `200` with the full updated endpoint. Effect timing differs by field: scaling and worker-bound settings (`workers`, `scaling`, `timeout`) are applied to the autoscaler promptly, while container-affecting changes (e.g. `image`, `env`) create a new endpoint release that rolls out as workers cycle — in-flight workers keep the previous version until they are replaced. Track rollout via `listEndpointReleases`.
Takes any type of body and a specified content type.
Corresponds with PATCH /v2/serverless/{id} (the `UpdateEndpoint` operationId).
type ClientInterface ¶
type ClientInterface interface {
// ListEndpoints List serverless endpoints
//
// Returns serverless endpoints owned by the authenticated user,
// cursor-paginated newest-first; an omitted `limit` defaults to 1000.
// Follow `pagination.nextCursor` until `hasNextPage` is false.
//
// Corresponds with GET /v2/serverless (the `ListEndpoints` operationId).
ListEndpoints(ctx context.Context, params *ListEndpointsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateEndpointWithBody Create a serverless endpoint
//
// Creates a serverless endpoint. Callers specify exactly one of `gpu` or
// `cpu`; neither or both returns 400. Container settings come from the
// body, from a serverless template referenced by `templateId` (body
// fields override the template's), or both; `image` is required unless
// `templateId` is set. See `CreateEndpointRequest` for the full body.
// An image in a private Amazon ECR registry with no `registry`
// credential must be covered by one of your ECR delegations (see
// `registry`); otherwise the create returns 400 here rather than
// workers failing their image pull. A caller whose organization role
// cannot use ECR delegations gets 403.
//
// The CUDA constraints live on `gpu` — `gpu.allowedCudaVersions` and
// `gpu.minCudaVersion` — so a CPU create cannot express them and the
// schema rejects the attempt with a 422. A non-empty set and a floor are
// mutually exclusive (400 if both are sent); an explicit empty set states
// no constraint and may accompany a floor.
//
// Returns `201` with the created endpoint. The endpoint can accept jobs
// immediately, but starts with no active workers unless `workers.min`
// is greater than 0. Workers are provisioned on demand and autoscaled
// between `workers.min` and `workers.max` according to the `scaling`
// policy, so the first request to an idle endpoint may incur cold-start
// latency while a worker pulls its image and boots.
//
// ## Checking what you can deploy
//
// `gpu.pools` takes serverless GPU **pool** IDs, not the GPU type IDs
// used for pods. `gpu.excludedTypes` takes the type IDs — it subtracts
// specific cards from the pools you picked. Read both from the catalog
// before you create:
//
// - [List GPU types](https://docs.runpod.io/api-reference-v2/catalog/list-gpu-types)
// — the `pool` field carries the pool ID for each GPU type (`null`
// means that type is not in a serverless pool). Add
// `include=AVAILABILITY&product=SERVERLESS` for current serverless
// stock.
// - [List data centers](https://docs.runpod.io/api-reference-v2/catalog/list-data-centers)
// — locations to constrain with `dataCenterIds`, with
// `include=GPU_AVAILABILITY` for stock per data center.
//
// Unlike pod creation, you do not need to retry across GPUs yourself:
// list every pool you are willing to run on and workers are placed on
// whichever one has capacity. Listing more pools — and leaving
// `dataCenterIds` unset — gives the scheduler more room and reduces the
// chance of workers failing to start when a single pool is exhausted.
//
// If your workload needs a specific card, pick the pool that holds it and
// exclude the rest of that pool with `gpu.excludedTypes`. Keep at least
// one type in the selection — a selection that leaves none is
// rejected.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v2/serverless (the `CreateEndpoint` operationId).
CreateEndpointWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateEndpoint Create a serverless endpoint
//
// Creates a serverless endpoint. Callers specify exactly one of `gpu` or
// `cpu`; neither or both returns 400. Container settings come from the
// body, from a serverless template referenced by `templateId` (body
// fields override the template's), or both; `image` is required unless
// `templateId` is set. See `CreateEndpointRequest` for the full body.
// An image in a private Amazon ECR registry with no `registry`
// credential must be covered by one of your ECR delegations (see
// `registry`); otherwise the create returns 400 here rather than
// workers failing their image pull. A caller whose organization role
// cannot use ECR delegations gets 403.
//
// The CUDA constraints live on `gpu` — `gpu.allowedCudaVersions` and
// `gpu.minCudaVersion` — so a CPU create cannot express them and the
// schema rejects the attempt with a 422. A non-empty set and a floor are
// mutually exclusive (400 if both are sent); an explicit empty set states
// no constraint and may accompany a floor.
//
// Returns `201` with the created endpoint. The endpoint can accept jobs
// immediately, but starts with no active workers unless `workers.min`
// is greater than 0. Workers are provisioned on demand and autoscaled
// between `workers.min` and `workers.max` according to the `scaling`
// policy, so the first request to an idle endpoint may incur cold-start
// latency while a worker pulls its image and boots.
//
// ## Checking what you can deploy
//
// `gpu.pools` takes serverless GPU **pool** IDs, not the GPU type IDs
// used for pods. `gpu.excludedTypes` takes the type IDs — it subtracts
// specific cards from the pools you picked. Read both from the catalog
// before you create:
//
// - [List GPU types](https://docs.runpod.io/api-reference-v2/catalog/list-gpu-types)
// — the `pool` field carries the pool ID for each GPU type (`null`
// means that type is not in a serverless pool). Add
// `include=AVAILABILITY&product=SERVERLESS` for current serverless
// stock.
// - [List data centers](https://docs.runpod.io/api-reference-v2/catalog/list-data-centers)
// — locations to constrain with `dataCenterIds`, with
// `include=GPU_AVAILABILITY` for stock per data center.
//
// Unlike pod creation, you do not need to retry across GPUs yourself:
// list every pool you are willing to run on and workers are placed on
// whichever one has capacity. Listing more pools — and leaving
// `dataCenterIds` unset — gives the scheduler more room and reduces the
// chance of workers failing to start when a single pool is exhausted.
//
// If your workload needs a specific card, pick the pool that holds it and
// exclude the rest of that pool with `gpu.excludedTypes`. Keep at least
// one type in the selection — a selection that leaves none is
// rejected.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v2/serverless (the `CreateEndpoint` operationId).
CreateEndpoint(ctx context.Context, body CreateEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteEndpoint Delete a serverless endpoint
//
// Permanently deletes a serverless endpoint and its bound template.
// This is irreversible: all workers are terminated and any queued or
// in-progress jobs are cancelled.
//
// Corresponds with DELETE /v2/serverless/{id} (the `DeleteEndpoint` operationId).
DeleteEndpoint(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEndpoint Get a serverless endpoint
//
// Returns a single serverless endpoint by ID.
//
// Corresponds with GET /v2/serverless/{id} (the `GetEndpoint` operationId).
GetEndpoint(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateEndpointWithBody Update a serverless endpoint
//
// Partially updates a serverless endpoint. This is a PATCH: only the
// fields present in the body are changed; omitted fields are left
// untouched. See `UpdateEndpointRequest` for the full body.
//
// Mutable fields: `name`, `gpu`, `cpu`, `workers` (`min`/`max`),
// `scaling` (`type`/`value`/`idleTimeout`), `dataCenterIds`,
// `networkVolumes`, `timeout`, `flashboot`, and the
// container settings (`image`, `args`, `disk`, `ports`, `env`,
// `registry`). A patch that leaves the endpoint pulling a private
// Amazon ECR image with no `registry` credential is checked against
// your ECR delegations as on create (400 when none covers the
// repository, 403 when the caller's organization role cannot use
// delegations); a patch that changes neither `image` nor `registry`
// is not.
//
// Omitted compute preserves the current selection. `cpu` completely
// replaces a CPU endpoint's selection; compute family is immutable.
// `gpu` on CPU, `cpu` on GPU, or both fields returns 400.
//
// Returns `200` with the full updated endpoint. Effect timing differs
// by field: scaling and worker-bound settings (`workers`, `scaling`,
// `timeout`) are applied to the autoscaler promptly, while
// container-affecting changes (e.g. `image`, `env`) create a new
// endpoint release that rolls out as workers cycle — in-flight workers
// keep the previous version until they are replaced. Track rollout via
// `listEndpointReleases`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /v2/serverless/{id} (the `UpdateEndpoint` operationId).
UpdateEndpointWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateEndpoint Update a serverless endpoint
//
// Partially updates a serverless endpoint. This is a PATCH: only the
// fields present in the body are changed; omitted fields are left
// untouched. See `UpdateEndpointRequest` for the full body.
//
// Mutable fields: `name`, `gpu`, `cpu`, `workers` (`min`/`max`),
// `scaling` (`type`/`value`/`idleTimeout`), `dataCenterIds`,
// `networkVolumes`, `timeout`, `flashboot`, and the
// container settings (`image`, `args`, `disk`, `ports`, `env`,
// `registry`). A patch that leaves the endpoint pulling a private
// Amazon ECR image with no `registry` credential is checked against
// your ECR delegations as on create (400 when none covers the
// repository, 403 when the caller's organization role cannot use
// delegations); a patch that changes neither `image` nor `registry`
// is not.
//
// Omitted compute preserves the current selection. `cpu` completely
// replaces a CPU endpoint's selection; compute family is immutable.
// `gpu` on CPU, `cpu` on GPU, or both fields returns 400.
//
// Returns `200` with the full updated endpoint. Effect timing differs
// by field: scaling and worker-bound settings (`workers`, `scaling`,
// `timeout`) are applied to the autoscaler promptly, while
// container-affecting changes (e.g. `image`, `env`) create a new
// endpoint release that rolls out as workers cycle — in-flight workers
// keep the previous version until they are replaced. Track rollout via
// `listEndpointReleases`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /v2/serverless/{id} (the `UpdateEndpoint` operationId).
UpdateEndpoint(ctx context.Context, id string, body UpdateEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListEndpointBuilds List serverless endpoint builds
//
// Returns the endpoint's GitHub build history, newest first (Runpod
// GitHub-build integration), cursor-paginated; an omitted `limit`
// defaults to 100, so a bare request returns at most the 100 most
// recent builds. Any build can also be fetched by id via
// `GET /v2/serverless/{id}/builds/{buildId}`. Stream a build's logs via
// `/v2/serverless/{id}/builds/{buildId}/logs`.
//
// Corresponds with GET /v2/serverless/{id}/builds (the `ListEndpointBuilds` operationId).
ListEndpointBuilds(ctx context.Context, id string, params *ListEndpointBuildsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEndpointBuild Get a serverless endpoint build
//
// Returns one of the endpoint's GitHub builds by id, regardless of age —
// no need to page through `GET /v2/serverless/{id}/builds` to reach it.
//
// Corresponds with GET /v2/serverless/{id}/builds/{buildId} (the `GetEndpointBuild` operationId).
GetEndpointBuild(ctx context.Context, id string, buildId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEndpointColdStartMetrics Get serverless endpoint cold start metrics
//
// Returns the cold start series shown on the endpoint's Metrics tab in the console.
//
// **Window.** `startTime` is inclusive and `endTime` is exclusive. Both are
// optional: `endTime` defaults to now and `startTime` to 24 hours before
// `endTime`, rounded down to the start of an `interval` bucket. An
// `endTime` in the future is treated as now. Metrics are kept for 90 days,
// so `startTime` must be within the last 90 days.
//
// **Interval.** Each record covers one `interval`-sized bucket, aligned to
// UTC.
//
// **Paging.** Records are oldest first, at most `limit` (default 1000) per
// page. Follow `pagination.nextCursor` while `pagination.hasNextPage` is
// true. The cursor keeps the first page's window, so `startTime`,
// `endTime`, and `interval` can be left out on later pages; if sent, they
// must match the first page or the cursor is rejected with 422.
//
// **Sparse series.** Buckets with no activity are omitted, not zero-filled,
// so `records` can be shorter than the number of buckets in the window, or
// empty.
//
// **Units.** `durationMs` is how long each cold start took, in milliseconds.
//
// Corresponds with GET /v2/serverless/{id}/metrics/cold-starts (the `GetEndpointColdStartMetrics` operationId).
GetEndpointColdStartMetrics(ctx context.Context, id string, params *GetEndpointColdStartMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEndpointRequestMetrics Get serverless endpoint request metrics
//
// Returns the request series shown on the endpoint's Metrics tab in the console.
//
// **Window.** `startTime` is inclusive and `endTime` is exclusive. Both are
// optional: `endTime` defaults to now and `startTime` to 24 hours before
// `endTime`, rounded down to the start of an `interval` bucket. An
// `endTime` in the future is treated as now. Metrics are kept for 90 days,
// so `startTime` must be within the last 90 days.
//
// **Interval.** Each record covers one `interval`-sized bucket, aligned to
// UTC.
//
// **Paging.** Records are oldest first, at most `limit` (default 1000) per
// page. Follow `pagination.nextCursor` while `pagination.hasNextPage` is
// true. The cursor keeps the first page's window, so `startTime`,
// `endTime`, and `interval` can be left out on later pages; if sent, they
// must match the first page or the cursor is rejected with 422.
//
// **Sparse series.** Buckets with no activity are omitted, not zero-filled,
// so `records` can be shorter than the number of buckets in the window, or
// empty.
//
// **Units.** Durations are milliseconds. `executionTimeMs` is the time a
// worker spent running a request; `delayTimeMs` is the time a request
// waited in the queue before a worker picked it up.
//
// Corresponds with GET /v2/serverless/{id}/metrics/requests (the `GetEndpointRequestMetrics` operationId).
GetEndpointRequestMetrics(ctx context.Context, id string, params *GetEndpointRequestMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEndpointWorkerMetrics Get serverless endpoint worker metrics
//
// Returns the worker state series shown on the endpoint's Metrics tab in the console.
// For the current worker list, use `GET /v2/serverless/{id}/workers`.
//
// **Window.** `startTime` is inclusive and `endTime` is exclusive. Both are
// optional: `endTime` defaults to now and `startTime` to 24 hours before
// `endTime`, rounded down to the start of an `interval` bucket. An
// `endTime` in the future is treated as now. Metrics are kept for 90 days,
// so `startTime` must be within the last 90 days.
//
// **Interval.** Each record covers one `interval`-sized bucket, aligned to
// UTC.
//
// **Paging.** Records are oldest first, at most `limit` (default 1000) per
// page. Follow `pagination.nextCursor` while `pagination.hasNextPage` is
// true. The cursor keeps the first page's window, so `startTime`,
// `endTime`, and `interval` can be left out on later pages; if sent, they
// must match the first page or the cursor is rejected with 422.
//
// **Sparse series.** Buckets with no activity are omitted, not zero-filled,
// so `records` can be shorter than the number of buckets in the window, or
// empty.
//
// **Snapshots.** Each record holds the last worker-count snapshot in its
// bucket, as point-in-time counts.
//
// Corresponds with GET /v2/serverless/{id}/metrics/workers (the `GetEndpointWorkerMetrics` operationId).
GetEndpointWorkerMetrics(ctx context.Context, id string, params *GetEndpointWorkerMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListEndpointReleases List serverless endpoint releases
//
// Returns the endpoint's release history (newest first) plus a rollout
// summary of how many workers are running the current version. Each
// release is a versioned configuration snapshot with a `diff` of what
// changed; build-driven releases carry a `buildId` (fetch build detail via
// the builds sub-routes).
//
// Releases are cursor-paginated newest-first; an omitted `limit`
// defaults to 1000. The rollout summary always describes the endpoint's
// current state, independent of the page requested.
//
// Corresponds with GET /v2/serverless/{id}/releases (the `ListEndpointReleases` operationId).
ListEndpointReleases(ctx context.Context, id string, params *ListEndpointReleasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListEndpointWorkers List serverless endpoint workers
//
// Lists the active workers for a serverless endpoint.
//
// **Returns.** A `200` with a `ListEndpointWorkersResponse`: a
// `workers` array (one entry per active worker, each carrying its `id`,
// `status`, and runtime details) plus a `summary` of worker counts
// grouped by status. Only currently active workers are included;
// scaled-down workers are not returned.
//
// **How `status` is determined.** Each worker's `status` is derived by
// reconciling the worker pod's lifecycle status with the endpoint's
// live job-queue view (which workers are actively serving requests).
// When the job-queue view is unavailable, the response degrades
// gracefully: the shape is unchanged, but each `status` and the summary
// counts fall back to pod lifecycle alone.
//
// Corresponds with GET /v2/serverless/{id}/workers (the `ListEndpointWorkers` operationId).
ListEndpointWorkers(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetWorkerLogs Stream serverless worker logs
//
// Streams a serverless worker's logs as Server-Sent Events. The `source`
// query parameter selects which log source to include.
//
// The SSE `data` payload shape is:
// `{ "source": "container", "line": "...", "ts": "..." }`.
// Log-event `id` values are the event `ts` timestamp so browser/EventSource
// reconnects can resume with `Last-Event-ID`.
//
// Corresponds with GET /v2/serverless/{id}/workers/{workerId}/logs (the `GetWorkerLogs` operationId).
GetWorkerLogs(ctx context.Context, id string, workerId string, params *GetWorkerLogsParams, 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 (*ClientWithResponses) CreateEndpointWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateEndpointWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEndpointResult, error)
CreateEndpointWithBodyWithResponse Create a serverless endpoint
Creates a serverless endpoint. Callers specify exactly one of `gpu` or `cpu`; neither or both returns 400. Container settings come from the body, from a serverless template referenced by `templateId` (body fields override the template's), or both; `image` is required unless `templateId` is set. See `CreateEndpointRequest` for the full body. An image in a private Amazon ECR registry with no `registry` credential must be covered by one of your ECR delegations (see `registry`); otherwise the create returns 400 here rather than workers failing their image pull. A caller whose organization role cannot use ECR delegations gets 403.
The CUDA constraints live on `gpu` — `gpu.allowedCudaVersions` and `gpu.minCudaVersion` — so a CPU create cannot express them and the schema rejects the attempt with a 422. A non-empty set and a floor are mutually exclusive (400 if both are sent); an explicit empty set states no constraint and may accompany a floor.
Returns `201` with the created endpoint. The endpoint can accept jobs immediately, but starts with no active workers unless `workers.min` is greater than 0. Workers are provisioned on demand and autoscaled between `workers.min` and `workers.max` according to the `scaling` policy, so the first request to an idle endpoint may incur cold-start latency while a worker pulls its image and boots.
## Checking what you can deploy
`gpu.pools` takes serverless GPU **pool** IDs, not the GPU type IDs used for pods. `gpu.excludedTypes` takes the type IDs — it subtracts specific cards from the pools you picked. Read both from the catalog before you create:
- [List GPU types](https://docs.runpod.io/api-reference-v2/catalog/list-gpu-types) — the `pool` field carries the pool ID for each GPU type (`null` means that type is not in a serverless pool). Add `include=AVAILABILITY&product=SERVERLESS` for current serverless stock.
- [List data centers](https://docs.runpod.io/api-reference-v2/catalog/list-data-centers) — locations to constrain with `dataCenterIds`, with `include=GPU_AVAILABILITY` for stock per data center.
Unlike pod creation, you do not need to retry across GPUs yourself: list every pool you are willing to run on and workers are placed on whichever one has capacity. Listing more pools — and leaving `dataCenterIds` unset — gives the scheduler more room and reduces the chance of workers failing to start when a single pool is exhausted.
If your workload needs a specific card, pick the pool that holds it and exclude the rest of that pool with `gpu.excludedTypes`. Keep at least one type in the selection — a selection that leaves none is rejected.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v2/serverless (the `CreateEndpoint` operationId).
func (*ClientWithResponses) CreateEndpointWithResponse ¶
func (c *ClientWithResponses) CreateEndpointWithResponse(ctx context.Context, body CreateEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEndpointResult, error)
CreateEndpointWithResponse Create a serverless endpoint
Creates a serverless endpoint. Callers specify exactly one of `gpu` or `cpu`; neither or both returns 400. Container settings come from the body, from a serverless template referenced by `templateId` (body fields override the template's), or both; `image` is required unless `templateId` is set. See `CreateEndpointRequest` for the full body. An image in a private Amazon ECR registry with no `registry` credential must be covered by one of your ECR delegations (see `registry`); otherwise the create returns 400 here rather than workers failing their image pull. A caller whose organization role cannot use ECR delegations gets 403.
The CUDA constraints live on `gpu` — `gpu.allowedCudaVersions` and `gpu.minCudaVersion` — so a CPU create cannot express them and the schema rejects the attempt with a 422. A non-empty set and a floor are mutually exclusive (400 if both are sent); an explicit empty set states no constraint and may accompany a floor.
Returns `201` with the created endpoint. The endpoint can accept jobs immediately, but starts with no active workers unless `workers.min` is greater than 0. Workers are provisioned on demand and autoscaled between `workers.min` and `workers.max` according to the `scaling` policy, so the first request to an idle endpoint may incur cold-start latency while a worker pulls its image and boots.
## Checking what you can deploy
`gpu.pools` takes serverless GPU **pool** IDs, not the GPU type IDs used for pods. `gpu.excludedTypes` takes the type IDs — it subtracts specific cards from the pools you picked. Read both from the catalog before you create:
- [List GPU types](https://docs.runpod.io/api-reference-v2/catalog/list-gpu-types) — the `pool` field carries the pool ID for each GPU type (`null` means that type is not in a serverless pool). Add `include=AVAILABILITY&product=SERVERLESS` for current serverless stock.
- [List data centers](https://docs.runpod.io/api-reference-v2/catalog/list-data-centers) — locations to constrain with `dataCenterIds`, with `include=GPU_AVAILABILITY` for stock per data center.
Unlike pod creation, you do not need to retry across GPUs yourself: list every pool you are willing to run on and workers are placed on whichever one has capacity. Listing more pools — and leaving `dataCenterIds` unset — gives the scheduler more room and reduces the chance of workers failing to start when a single pool is exhausted.
If your workload needs a specific card, pick the pool that holds it and exclude the rest of that pool with `gpu.excludedTypes`. Keep at least one type in the selection — a selection that leaves none is rejected.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v2/serverless (the `CreateEndpoint` operationId).
func (*ClientWithResponses) DeleteEndpointWithResponse ¶
func (c *ClientWithResponses) DeleteEndpointWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteEndpointResult, error)
DeleteEndpointWithResponse Delete a serverless endpoint
Permanently deletes a serverless endpoint and its bound template. This is irreversible: all workers are terminated and any queued or in-progress jobs are cancelled.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /v2/serverless/{id} (the `DeleteEndpoint` operationId).
func (*ClientWithResponses) GetEndpointBuildWithResponse ¶
func (c *ClientWithResponses) GetEndpointBuildWithResponse(ctx context.Context, id string, buildId string, reqEditors ...RequestEditorFn) (*GetEndpointBuildResult, error)
GetEndpointBuildWithResponse Get a serverless endpoint build
Returns one of the endpoint's GitHub builds by id, regardless of age — no need to page through `GET /v2/serverless/{id}/builds` to reach it.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v2/serverless/{id}/builds/{buildId} (the `GetEndpointBuild` operationId).
func (*ClientWithResponses) GetEndpointColdStartMetricsWithResponse ¶ added in v2.2.0
func (c *ClientWithResponses) GetEndpointColdStartMetricsWithResponse(ctx context.Context, id string, params *GetEndpointColdStartMetricsParams, reqEditors ...RequestEditorFn) (*GetEndpointColdStartMetricsResult, error)
GetEndpointColdStartMetricsWithResponse Get serverless endpoint cold start metrics
Returns the cold start series shown on the endpoint's Metrics tab in the console.
**Window.** `startTime` is inclusive and `endTime` is exclusive. Both are optional: `endTime` defaults to now and `startTime` to 24 hours before `endTime`, rounded down to the start of an `interval` bucket. An `endTime` in the future is treated as now. Metrics are kept for 90 days, so `startTime` must be within the last 90 days.
**Interval.** Each record covers one `interval`-sized bucket, aligned to UTC.
**Paging.** Records are oldest first, at most `limit` (default 1000) per page. Follow `pagination.nextCursor` while `pagination.hasNextPage` is true. The cursor keeps the first page's window, so `startTime`, `endTime`, and `interval` can be left out on later pages; if sent, they must match the first page or the cursor is rejected with 422.
**Sparse series.** Buckets with no activity are omitted, not zero-filled, so `records` can be shorter than the number of buckets in the window, or empty.
**Units.** `durationMs` is how long each cold start took, in milliseconds.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v2/serverless/{id}/metrics/cold-starts (the `GetEndpointColdStartMetrics` operationId).
func (*ClientWithResponses) GetEndpointRequestMetricsWithResponse ¶ added in v2.2.0
func (c *ClientWithResponses) GetEndpointRequestMetricsWithResponse(ctx context.Context, id string, params *GetEndpointRequestMetricsParams, reqEditors ...RequestEditorFn) (*GetEndpointRequestMetricsResult, error)
GetEndpointRequestMetricsWithResponse Get serverless endpoint request metrics
Returns the request series shown on the endpoint's Metrics tab in the console.
**Window.** `startTime` is inclusive and `endTime` is exclusive. Both are optional: `endTime` defaults to now and `startTime` to 24 hours before `endTime`, rounded down to the start of an `interval` bucket. An `endTime` in the future is treated as now. Metrics are kept for 90 days, so `startTime` must be within the last 90 days.
**Interval.** Each record covers one `interval`-sized bucket, aligned to UTC.
**Paging.** Records are oldest first, at most `limit` (default 1000) per page. Follow `pagination.nextCursor` while `pagination.hasNextPage` is true. The cursor keeps the first page's window, so `startTime`, `endTime`, and `interval` can be left out on later pages; if sent, they must match the first page or the cursor is rejected with 422.
**Sparse series.** Buckets with no activity are omitted, not zero-filled, so `records` can be shorter than the number of buckets in the window, or empty.
**Units.** Durations are milliseconds. `executionTimeMs` is the time a worker spent running a request; `delayTimeMs` is the time a request waited in the queue before a worker picked it up.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v2/serverless/{id}/metrics/requests (the `GetEndpointRequestMetrics` operationId).
func (*ClientWithResponses) GetEndpointWithResponse ¶
func (c *ClientWithResponses) GetEndpointWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetEndpointResult, error)
GetEndpointWithResponse Get a serverless endpoint
Returns a single serverless endpoint by ID.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v2/serverless/{id} (the `GetEndpoint` operationId).
func (*ClientWithResponses) GetEndpointWorkerMetricsWithResponse ¶ added in v2.2.0
func (c *ClientWithResponses) GetEndpointWorkerMetricsWithResponse(ctx context.Context, id string, params *GetEndpointWorkerMetricsParams, reqEditors ...RequestEditorFn) (*GetEndpointWorkerMetricsResult, error)
GetEndpointWorkerMetricsWithResponse Get serverless endpoint worker metrics
Returns the worker state series shown on the endpoint's Metrics tab in the console. For the current worker list, use `GET /v2/serverless/{id}/workers`.
**Window.** `startTime` is inclusive and `endTime` is exclusive. Both are optional: `endTime` defaults to now and `startTime` to 24 hours before `endTime`, rounded down to the start of an `interval` bucket. An `endTime` in the future is treated as now. Metrics are kept for 90 days, so `startTime` must be within the last 90 days.
**Interval.** Each record covers one `interval`-sized bucket, aligned to UTC.
**Paging.** Records are oldest first, at most `limit` (default 1000) per page. Follow `pagination.nextCursor` while `pagination.hasNextPage` is true. The cursor keeps the first page's window, so `startTime`, `endTime`, and `interval` can be left out on later pages; if sent, they must match the first page or the cursor is rejected with 422.
**Sparse series.** Buckets with no activity are omitted, not zero-filled, so `records` can be shorter than the number of buckets in the window, or empty.
**Snapshots.** Each record holds the last worker-count snapshot in its bucket, as point-in-time counts.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v2/serverless/{id}/metrics/workers (the `GetEndpointWorkerMetrics` operationId).
func (*ClientWithResponses) GetWorkerLogsWithResponse ¶
func (c *ClientWithResponses) GetWorkerLogsWithResponse(ctx context.Context, id string, workerId string, params *GetWorkerLogsParams, reqEditors ...RequestEditorFn) (*GetWorkerLogsResult, error)
GetWorkerLogsWithResponse Stream serverless worker logs
Streams a serverless worker's logs as Server-Sent Events. The `source` query parameter selects which log source to include.
The SSE `data` payload shape is: `{ "source": "container", "line": "...", "ts": "..." }`. Log-event `id` values are the event `ts` timestamp so browser/EventSource reconnects can resume with `Last-Event-ID`.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v2/serverless/{id}/workers/{workerId}/logs (the `GetWorkerLogs` operationId).
func (*ClientWithResponses) ListEndpointBuildsWithResponse ¶
func (c *ClientWithResponses) ListEndpointBuildsWithResponse(ctx context.Context, id string, params *ListEndpointBuildsParams, reqEditors ...RequestEditorFn) (*ListEndpointBuildsResult, error)
ListEndpointBuildsWithResponse List serverless endpoint builds
Returns the endpoint's GitHub build history, newest first (Runpod GitHub-build integration), cursor-paginated; an omitted `limit` defaults to 100, so a bare request returns at most the 100 most recent builds. Any build can also be fetched by id via `GET /v2/serverless/{id}/builds/{buildId}`. Stream a build's logs via `/v2/serverless/{id}/builds/{buildId}/logs`.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v2/serverless/{id}/builds (the `ListEndpointBuilds` operationId).
func (*ClientWithResponses) ListEndpointReleasesWithResponse ¶
func (c *ClientWithResponses) ListEndpointReleasesWithResponse(ctx context.Context, id string, params *ListEndpointReleasesParams, reqEditors ...RequestEditorFn) (*ListEndpointReleasesResult, error)
ListEndpointReleasesWithResponse List serverless endpoint releases
Returns the endpoint's release history (newest first) plus a rollout summary of how many workers are running the current version. Each release is a versioned configuration snapshot with a `diff` of what changed; build-driven releases carry a `buildId` (fetch build detail via the builds sub-routes).
Releases are cursor-paginated newest-first; an omitted `limit` defaults to 1000. The rollout summary always describes the endpoint's current state, independent of the page requested.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v2/serverless/{id}/releases (the `ListEndpointReleases` operationId).
func (*ClientWithResponses) ListEndpointWorkersWithResponse ¶
func (c *ClientWithResponses) ListEndpointWorkersWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ListEndpointWorkersResult, error)
ListEndpointWorkersWithResponse List serverless endpoint workers
Lists the active workers for a serverless endpoint.
**Returns.** A `200` with a `ListEndpointWorkersResponse`: a `workers` array (one entry per active worker, each carrying its `id`, `status`, and runtime details) plus a `summary` of worker counts grouped by status. Only currently active workers are included; scaled-down workers are not returned.
**How `status` is determined.** Each worker's `status` is derived by reconciling the worker pod's lifecycle status with the endpoint's live job-queue view (which workers are actively serving requests). When the job-queue view is unavailable, the response degrades gracefully: the shape is unchanged, but each `status` and the summary counts fall back to pod lifecycle alone.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v2/serverless/{id}/workers (the `ListEndpointWorkers` operationId).
func (*ClientWithResponses) ListEndpointsWithResponse ¶
func (c *ClientWithResponses) ListEndpointsWithResponse(ctx context.Context, params *ListEndpointsParams, reqEditors ...RequestEditorFn) (*ListEndpointsResult, error)
ListEndpointsWithResponse List serverless endpoints
Returns serverless endpoints owned by the authenticated user, cursor-paginated newest-first; an omitted `limit` defaults to 1000. Follow `pagination.nextCursor` until `hasNextPage` is false.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v2/serverless (the `ListEndpoints` operationId).
func (*ClientWithResponses) UpdateEndpointWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateEndpointWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEndpointResult, error)
UpdateEndpointWithBodyWithResponse Update a serverless endpoint
Partially updates a serverless endpoint. This is a PATCH: only the fields present in the body are changed; omitted fields are left untouched. See `UpdateEndpointRequest` for the full body.
Mutable fields: `name`, `gpu`, `cpu`, `workers` (`min`/`max`), `scaling` (`type`/`value`/`idleTimeout`), `dataCenterIds`, `networkVolumes`, `timeout`, `flashboot`, and the container settings (`image`, `args`, `disk`, `ports`, `env`, `registry`). A patch that leaves the endpoint pulling a private Amazon ECR image with no `registry` credential is checked against your ECR delegations as on create (400 when none covers the repository, 403 when the caller's organization role cannot use delegations); a patch that changes neither `image` nor `registry` is not.
Omitted compute preserves the current selection. `cpu` completely replaces a CPU endpoint's selection; compute family is immutable. `gpu` on CPU, `cpu` on GPU, or both fields returns 400.
Returns `200` with the full updated endpoint. Effect timing differs by field: scaling and worker-bound settings (`workers`, `scaling`, `timeout`) are applied to the autoscaler promptly, while container-affecting changes (e.g. `image`, `env`) create a new endpoint release that rolls out as workers cycle — in-flight workers keep the previous version until they are replaced. Track rollout via `listEndpointReleases`.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /v2/serverless/{id} (the `UpdateEndpoint` operationId).
func (*ClientWithResponses) UpdateEndpointWithResponse ¶
func (c *ClientWithResponses) UpdateEndpointWithResponse(ctx context.Context, id string, body UpdateEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEndpointResult, error)
UpdateEndpointWithResponse Update a serverless endpoint
Partially updates a serverless endpoint. This is a PATCH: only the fields present in the body are changed; omitted fields are left untouched. See `UpdateEndpointRequest` for the full body.
Mutable fields: `name`, `gpu`, `cpu`, `workers` (`min`/`max`), `scaling` (`type`/`value`/`idleTimeout`), `dataCenterIds`, `networkVolumes`, `timeout`, `flashboot`, and the container settings (`image`, `args`, `disk`, `ports`, `env`, `registry`). A patch that leaves the endpoint pulling a private Amazon ECR image with no `registry` credential is checked against your ECR delegations as on create (400 when none covers the repository, 403 when the caller's organization role cannot use delegations); a patch that changes neither `image` nor `registry` is not.
Omitted compute preserves the current selection. `cpu` completely replaces a CPU endpoint's selection; compute family is immutable. `gpu` on CPU, `cpu` on GPU, or both fields returns 400.
Returns `200` with the full updated endpoint. Effect timing differs by field: scaling and worker-bound settings (`workers`, `scaling`, `timeout`) are applied to the autoscaler promptly, while container-affecting changes (e.g. `image`, `env`) create a new endpoint release that rolls out as workers cycle — in-flight workers keep the previous version until they are replaced. Track rollout via `listEndpointReleases`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /v2/serverless/{id} (the `UpdateEndpoint` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListEndpointsWithResponse List serverless endpoints
//
// Returns serverless endpoints owned by the authenticated user,
// cursor-paginated newest-first; an omitted `limit` defaults to 1000.
// Follow `pagination.nextCursor` until `hasNextPage` is false.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v2/serverless (the `ListEndpoints` operationId).
ListEndpointsWithResponse(ctx context.Context, params *ListEndpointsParams, reqEditors ...RequestEditorFn) (*ListEndpointsResult, error)
// CreateEndpointWithBodyWithResponse Create a serverless endpoint
//
// Creates a serverless endpoint. Callers specify exactly one of `gpu` or
// `cpu`; neither or both returns 400. Container settings come from the
// body, from a serverless template referenced by `templateId` (body
// fields override the template's), or both; `image` is required unless
// `templateId` is set. See `CreateEndpointRequest` for the full body.
// An image in a private Amazon ECR registry with no `registry`
// credential must be covered by one of your ECR delegations (see
// `registry`); otherwise the create returns 400 here rather than
// workers failing their image pull. A caller whose organization role
// cannot use ECR delegations gets 403.
//
// The CUDA constraints live on `gpu` — `gpu.allowedCudaVersions` and
// `gpu.minCudaVersion` — so a CPU create cannot express them and the
// schema rejects the attempt with a 422. A non-empty set and a floor are
// mutually exclusive (400 if both are sent); an explicit empty set states
// no constraint and may accompany a floor.
//
// Returns `201` with the created endpoint. The endpoint can accept jobs
// immediately, but starts with no active workers unless `workers.min`
// is greater than 0. Workers are provisioned on demand and autoscaled
// between `workers.min` and `workers.max` according to the `scaling`
// policy, so the first request to an idle endpoint may incur cold-start
// latency while a worker pulls its image and boots.
//
// ## Checking what you can deploy
//
// `gpu.pools` takes serverless GPU **pool** IDs, not the GPU type IDs
// used for pods. `gpu.excludedTypes` takes the type IDs — it subtracts
// specific cards from the pools you picked. Read both from the catalog
// before you create:
//
// - [List GPU types](https://docs.runpod.io/api-reference-v2/catalog/list-gpu-types)
// — the `pool` field carries the pool ID for each GPU type (`null`
// means that type is not in a serverless pool). Add
// `include=AVAILABILITY&product=SERVERLESS` for current serverless
// stock.
// - [List data centers](https://docs.runpod.io/api-reference-v2/catalog/list-data-centers)
// — locations to constrain with `dataCenterIds`, with
// `include=GPU_AVAILABILITY` for stock per data center.
//
// Unlike pod creation, you do not need to retry across GPUs yourself:
// list every pool you are willing to run on and workers are placed on
// whichever one has capacity. Listing more pools — and leaving
// `dataCenterIds` unset — gives the scheduler more room and reduces the
// chance of workers failing to start when a single pool is exhausted.
//
// If your workload needs a specific card, pick the pool that holds it and
// exclude the rest of that pool with `gpu.excludedTypes`. Keep at least
// one type in the selection — a selection that leaves none is
// rejected.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v2/serverless (the `CreateEndpoint` operationId).
CreateEndpointWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEndpointResult, error)
// CreateEndpointWithResponse Create a serverless endpoint
//
// Creates a serverless endpoint. Callers specify exactly one of `gpu` or
// `cpu`; neither or both returns 400. Container settings come from the
// body, from a serverless template referenced by `templateId` (body
// fields override the template's), or both; `image` is required unless
// `templateId` is set. See `CreateEndpointRequest` for the full body.
// An image in a private Amazon ECR registry with no `registry`
// credential must be covered by one of your ECR delegations (see
// `registry`); otherwise the create returns 400 here rather than
// workers failing their image pull. A caller whose organization role
// cannot use ECR delegations gets 403.
//
// The CUDA constraints live on `gpu` — `gpu.allowedCudaVersions` and
// `gpu.minCudaVersion` — so a CPU create cannot express them and the
// schema rejects the attempt with a 422. A non-empty set and a floor are
// mutually exclusive (400 if both are sent); an explicit empty set states
// no constraint and may accompany a floor.
//
// Returns `201` with the created endpoint. The endpoint can accept jobs
// immediately, but starts with no active workers unless `workers.min`
// is greater than 0. Workers are provisioned on demand and autoscaled
// between `workers.min` and `workers.max` according to the `scaling`
// policy, so the first request to an idle endpoint may incur cold-start
// latency while a worker pulls its image and boots.
//
// ## Checking what you can deploy
//
// `gpu.pools` takes serverless GPU **pool** IDs, not the GPU type IDs
// used for pods. `gpu.excludedTypes` takes the type IDs — it subtracts
// specific cards from the pools you picked. Read both from the catalog
// before you create:
//
// - [List GPU types](https://docs.runpod.io/api-reference-v2/catalog/list-gpu-types)
// — the `pool` field carries the pool ID for each GPU type (`null`
// means that type is not in a serverless pool). Add
// `include=AVAILABILITY&product=SERVERLESS` for current serverless
// stock.
// - [List data centers](https://docs.runpod.io/api-reference-v2/catalog/list-data-centers)
// — locations to constrain with `dataCenterIds`, with
// `include=GPU_AVAILABILITY` for stock per data center.
//
// Unlike pod creation, you do not need to retry across GPUs yourself:
// list every pool you are willing to run on and workers are placed on
// whichever one has capacity. Listing more pools — and leaving
// `dataCenterIds` unset — gives the scheduler more room and reduces the
// chance of workers failing to start when a single pool is exhausted.
//
// If your workload needs a specific card, pick the pool that holds it and
// exclude the rest of that pool with `gpu.excludedTypes`. Keep at least
// one type in the selection — a selection that leaves none is
// rejected.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v2/serverless (the `CreateEndpoint` operationId).
CreateEndpointWithResponse(ctx context.Context, body CreateEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEndpointResult, error)
// DeleteEndpointWithResponse Delete a serverless endpoint
//
// Permanently deletes a serverless endpoint and its bound template.
// This is irreversible: all workers are terminated and any queued or
// in-progress jobs are cancelled.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v2/serverless/{id} (the `DeleteEndpoint` operationId).
DeleteEndpointWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteEndpointResult, error)
// GetEndpointWithResponse Get a serverless endpoint
//
// Returns a single serverless endpoint by ID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v2/serverless/{id} (the `GetEndpoint` operationId).
GetEndpointWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetEndpointResult, error)
// UpdateEndpointWithBodyWithResponse Update a serverless endpoint
//
// Partially updates a serverless endpoint. This is a PATCH: only the
// fields present in the body are changed; omitted fields are left
// untouched. See `UpdateEndpointRequest` for the full body.
//
// Mutable fields: `name`, `gpu`, `cpu`, `workers` (`min`/`max`),
// `scaling` (`type`/`value`/`idleTimeout`), `dataCenterIds`,
// `networkVolumes`, `timeout`, `flashboot`, and the
// container settings (`image`, `args`, `disk`, `ports`, `env`,
// `registry`). A patch that leaves the endpoint pulling a private
// Amazon ECR image with no `registry` credential is checked against
// your ECR delegations as on create (400 when none covers the
// repository, 403 when the caller's organization role cannot use
// delegations); a patch that changes neither `image` nor `registry`
// is not.
//
// Omitted compute preserves the current selection. `cpu` completely
// replaces a CPU endpoint's selection; compute family is immutable.
// `gpu` on CPU, `cpu` on GPU, or both fields returns 400.
//
// Returns `200` with the full updated endpoint. Effect timing differs
// by field: scaling and worker-bound settings (`workers`, `scaling`,
// `timeout`) are applied to the autoscaler promptly, while
// container-affecting changes (e.g. `image`, `env`) create a new
// endpoint release that rolls out as workers cycle — in-flight workers
// keep the previous version until they are replaced. Track rollout via
// `listEndpointReleases`.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v2/serverless/{id} (the `UpdateEndpoint` operationId).
UpdateEndpointWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEndpointResult, error)
// UpdateEndpointWithResponse Update a serverless endpoint
//
// Partially updates a serverless endpoint. This is a PATCH: only the
// fields present in the body are changed; omitted fields are left
// untouched. See `UpdateEndpointRequest` for the full body.
//
// Mutable fields: `name`, `gpu`, `cpu`, `workers` (`min`/`max`),
// `scaling` (`type`/`value`/`idleTimeout`), `dataCenterIds`,
// `networkVolumes`, `timeout`, `flashboot`, and the
// container settings (`image`, `args`, `disk`, `ports`, `env`,
// `registry`). A patch that leaves the endpoint pulling a private
// Amazon ECR image with no `registry` credential is checked against
// your ECR delegations as on create (400 when none covers the
// repository, 403 when the caller's organization role cannot use
// delegations); a patch that changes neither `image` nor `registry`
// is not.
//
// Omitted compute preserves the current selection. `cpu` completely
// replaces a CPU endpoint's selection; compute family is immutable.
// `gpu` on CPU, `cpu` on GPU, or both fields returns 400.
//
// Returns `200` with the full updated endpoint. Effect timing differs
// by field: scaling and worker-bound settings (`workers`, `scaling`,
// `timeout`) are applied to the autoscaler promptly, while
// container-affecting changes (e.g. `image`, `env`) create a new
// endpoint release that rolls out as workers cycle — in-flight workers
// keep the previous version until they are replaced. Track rollout via
// `listEndpointReleases`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v2/serverless/{id} (the `UpdateEndpoint` operationId).
UpdateEndpointWithResponse(ctx context.Context, id string, body UpdateEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEndpointResult, error)
// ListEndpointBuildsWithResponse List serverless endpoint builds
//
// Returns the endpoint's GitHub build history, newest first (Runpod
// GitHub-build integration), cursor-paginated; an omitted `limit`
// defaults to 100, so a bare request returns at most the 100 most
// recent builds. Any build can also be fetched by id via
// `GET /v2/serverless/{id}/builds/{buildId}`. Stream a build's logs via
// `/v2/serverless/{id}/builds/{buildId}/logs`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v2/serverless/{id}/builds (the `ListEndpointBuilds` operationId).
ListEndpointBuildsWithResponse(ctx context.Context, id string, params *ListEndpointBuildsParams, reqEditors ...RequestEditorFn) (*ListEndpointBuildsResult, error)
// GetEndpointBuildWithResponse Get a serverless endpoint build
//
// Returns one of the endpoint's GitHub builds by id, regardless of age —
// no need to page through `GET /v2/serverless/{id}/builds` to reach it.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v2/serverless/{id}/builds/{buildId} (the `GetEndpointBuild` operationId).
GetEndpointBuildWithResponse(ctx context.Context, id string, buildId string, reqEditors ...RequestEditorFn) (*GetEndpointBuildResult, error)
// GetEndpointColdStartMetricsWithResponse Get serverless endpoint cold start metrics
//
// Returns the cold start series shown on the endpoint's Metrics tab in the console.
//
// **Window.** `startTime` is inclusive and `endTime` is exclusive. Both are
// optional: `endTime` defaults to now and `startTime` to 24 hours before
// `endTime`, rounded down to the start of an `interval` bucket. An
// `endTime` in the future is treated as now. Metrics are kept for 90 days,
// so `startTime` must be within the last 90 days.
//
// **Interval.** Each record covers one `interval`-sized bucket, aligned to
// UTC.
//
// **Paging.** Records are oldest first, at most `limit` (default 1000) per
// page. Follow `pagination.nextCursor` while `pagination.hasNextPage` is
// true. The cursor keeps the first page's window, so `startTime`,
// `endTime`, and `interval` can be left out on later pages; if sent, they
// must match the first page or the cursor is rejected with 422.
//
// **Sparse series.** Buckets with no activity are omitted, not zero-filled,
// so `records` can be shorter than the number of buckets in the window, or
// empty.
//
// **Units.** `durationMs` is how long each cold start took, in milliseconds.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v2/serverless/{id}/metrics/cold-starts (the `GetEndpointColdStartMetrics` operationId).
GetEndpointColdStartMetricsWithResponse(ctx context.Context, id string, params *GetEndpointColdStartMetricsParams, reqEditors ...RequestEditorFn) (*GetEndpointColdStartMetricsResult, error)
// GetEndpointRequestMetricsWithResponse Get serverless endpoint request metrics
//
// Returns the request series shown on the endpoint's Metrics tab in the console.
//
// **Window.** `startTime` is inclusive and `endTime` is exclusive. Both are
// optional: `endTime` defaults to now and `startTime` to 24 hours before
// `endTime`, rounded down to the start of an `interval` bucket. An
// `endTime` in the future is treated as now. Metrics are kept for 90 days,
// so `startTime` must be within the last 90 days.
//
// **Interval.** Each record covers one `interval`-sized bucket, aligned to
// UTC.
//
// **Paging.** Records are oldest first, at most `limit` (default 1000) per
// page. Follow `pagination.nextCursor` while `pagination.hasNextPage` is
// true. The cursor keeps the first page's window, so `startTime`,
// `endTime`, and `interval` can be left out on later pages; if sent, they
// must match the first page or the cursor is rejected with 422.
//
// **Sparse series.** Buckets with no activity are omitted, not zero-filled,
// so `records` can be shorter than the number of buckets in the window, or
// empty.
//
// **Units.** Durations are milliseconds. `executionTimeMs` is the time a
// worker spent running a request; `delayTimeMs` is the time a request
// waited in the queue before a worker picked it up.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v2/serverless/{id}/metrics/requests (the `GetEndpointRequestMetrics` operationId).
GetEndpointRequestMetricsWithResponse(ctx context.Context, id string, params *GetEndpointRequestMetricsParams, reqEditors ...RequestEditorFn) (*GetEndpointRequestMetricsResult, error)
// GetEndpointWorkerMetricsWithResponse Get serverless endpoint worker metrics
//
// Returns the worker state series shown on the endpoint's Metrics tab in the console.
// For the current worker list, use `GET /v2/serverless/{id}/workers`.
//
// **Window.** `startTime` is inclusive and `endTime` is exclusive. Both are
// optional: `endTime` defaults to now and `startTime` to 24 hours before
// `endTime`, rounded down to the start of an `interval` bucket. An
// `endTime` in the future is treated as now. Metrics are kept for 90 days,
// so `startTime` must be within the last 90 days.
//
// **Interval.** Each record covers one `interval`-sized bucket, aligned to
// UTC.
//
// **Paging.** Records are oldest first, at most `limit` (default 1000) per
// page. Follow `pagination.nextCursor` while `pagination.hasNextPage` is
// true. The cursor keeps the first page's window, so `startTime`,
// `endTime`, and `interval` can be left out on later pages; if sent, they
// must match the first page or the cursor is rejected with 422.
//
// **Sparse series.** Buckets with no activity are omitted, not zero-filled,
// so `records` can be shorter than the number of buckets in the window, or
// empty.
//
// **Snapshots.** Each record holds the last worker-count snapshot in its
// bucket, as point-in-time counts.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v2/serverless/{id}/metrics/workers (the `GetEndpointWorkerMetrics` operationId).
GetEndpointWorkerMetricsWithResponse(ctx context.Context, id string, params *GetEndpointWorkerMetricsParams, reqEditors ...RequestEditorFn) (*GetEndpointWorkerMetricsResult, error)
// ListEndpointReleasesWithResponse List serverless endpoint releases
//
// Returns the endpoint's release history (newest first) plus a rollout
// summary of how many workers are running the current version. Each
// release is a versioned configuration snapshot with a `diff` of what
// changed; build-driven releases carry a `buildId` (fetch build detail via
// the builds sub-routes).
//
// Releases are cursor-paginated newest-first; an omitted `limit`
// defaults to 1000. The rollout summary always describes the endpoint's
// current state, independent of the page requested.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v2/serverless/{id}/releases (the `ListEndpointReleases` operationId).
ListEndpointReleasesWithResponse(ctx context.Context, id string, params *ListEndpointReleasesParams, reqEditors ...RequestEditorFn) (*ListEndpointReleasesResult, error)
// ListEndpointWorkersWithResponse List serverless endpoint workers
//
// Lists the active workers for a serverless endpoint.
//
// **Returns.** A `200` with a `ListEndpointWorkersResponse`: a
// `workers` array (one entry per active worker, each carrying its `id`,
// `status`, and runtime details) plus a `summary` of worker counts
// grouped by status. Only currently active workers are included;
// scaled-down workers are not returned.
//
// **How `status` is determined.** Each worker's `status` is derived by
// reconciling the worker pod's lifecycle status with the endpoint's
// live job-queue view (which workers are actively serving requests).
// When the job-queue view is unavailable, the response degrades
// gracefully: the shape is unchanged, but each `status` and the summary
// counts fall back to pod lifecycle alone.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v2/serverless/{id}/workers (the `ListEndpointWorkers` operationId).
ListEndpointWorkersWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ListEndpointWorkersResult, error)
// GetWorkerLogsWithResponse Stream serverless worker logs
//
// Streams a serverless worker's logs as Server-Sent Events. The `source`
// query parameter selects which log source to include.
//
// The SSE `data` payload shape is:
// `{ "source": "container", "line": "...", "ts": "..." }`.
// Log-event `id` values are the event `ts` timestamp so browser/EventSource
// reconnects can resume with `Last-Event-ID`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v2/serverless/{id}/workers/{workerId}/logs (the `GetWorkerLogs` operationId).
GetWorkerLogsWithResponse(ctx context.Context, id string, workerId string, params *GetWorkerLogsParams, reqEditors ...RequestEditorFn) (*GetWorkerLogsResult, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateEndpointJSONRequestBody ¶
type CreateEndpointJSONRequestBody = externalRef0.CreateEndpointRequest
CreateEndpointJSONRequestBody defines body for CreateEndpoint for application/json ContentType.
type CreateEndpointResult ¶
type CreateEndpointResult struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *externalRef0.Endpoint
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *externalRef0.ErrorResponse
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *externalRef0.ErrorResponse
// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
ApplicationproblemJSON413 *externalRef0.ErrorResponse
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers201 the parsed response headers for an HTTP 201 response
Headers201 *CreateEndpointResult201Headers
// Headers400 the parsed response headers for an HTTP 400 response
Headers400 *CreateEndpointResult400Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *CreateEndpointResult403Headers
// Headers404 the parsed response headers for an HTTP 404 response
Headers404 *CreateEndpointResult404Headers
// Headers413 the parsed response headers for an HTTP 413 response
Headers413 *CreateEndpointResult413Headers
// Headers422 the parsed response headers for an HTTP 422 response
Headers422 *CreateEndpointResult422Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CreateEndpointResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *CreateEndpointResultDefaultHeaders
}
func ParseCreateEndpointResult ¶
func ParseCreateEndpointResult(rsp *http.Response) (*CreateEndpointResult, error)
ParseCreateEndpointResult parses an HTTP response from a CreateEndpointWithResponse call
func (CreateEndpointResult) ContentType ¶
func (r CreateEndpointResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateEndpointResult) GetApplicationproblemJSON400 ¶
func (r CreateEndpointResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CreateEndpointResult) GetApplicationproblemJSON401 ¶
func (r CreateEndpointResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CreateEndpointResult) GetApplicationproblemJSON403 ¶
func (r CreateEndpointResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CreateEndpointResult) GetApplicationproblemJSON404 ¶
func (r CreateEndpointResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (CreateEndpointResult) GetApplicationproblemJSON413 ¶ added in v2.1.0
func (r CreateEndpointResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse
GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response
func (CreateEndpointResult) GetApplicationproblemJSON422 ¶
func (r CreateEndpointResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (CreateEndpointResult) GetApplicationproblemJSON429 ¶
func (r CreateEndpointResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CreateEndpointResult) GetApplicationproblemJSONDefault ¶
func (r CreateEndpointResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (CreateEndpointResult) GetBody ¶
func (r CreateEndpointResult) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateEndpointResult) GetJSON201 ¶
func (r CreateEndpointResult) GetJSON201() *externalRef0.Endpoint
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateEndpointResult) Status ¶
func (r CreateEndpointResult) Status() string
Status returns HTTPResponse.Status
func (CreateEndpointResult) StatusCode ¶
func (r CreateEndpointResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateEndpointResult201Headers ¶
type CreateEndpointResult201Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
CreateEndpointResult201Headers the declared response headers of an HTTP 201 response for CreateEndpoint
type CreateEndpointResult400Headers ¶
type CreateEndpointResult400Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
CreateEndpointResult400Headers the declared response headers of an HTTP 400 response for CreateEndpoint
type CreateEndpointResult403Headers ¶
type CreateEndpointResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
CreateEndpointResult403Headers the declared response headers of an HTTP 403 response for CreateEndpoint
type CreateEndpointResult404Headers ¶
type CreateEndpointResult404Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
CreateEndpointResult404Headers the declared response headers of an HTTP 404 response for CreateEndpoint
type CreateEndpointResult413Headers ¶ added in v2.1.0
type CreateEndpointResult413Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
CreateEndpointResult413Headers the declared response headers of an HTTP 413 response for CreateEndpoint
type CreateEndpointResult422Headers ¶
type CreateEndpointResult422Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
CreateEndpointResult422Headers the declared response headers of an HTTP 422 response for CreateEndpoint
type CreateEndpointResult429Headers ¶
type CreateEndpointResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
CreateEndpointResult429Headers the declared response headers of an HTTP 429 response for CreateEndpoint
type CreateEndpointResultDefaultHeaders ¶
type CreateEndpointResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
CreateEndpointResultDefaultHeaders the declared response headers of an HTTP default response for CreateEndpoint
type DeleteEndpointResult ¶
type DeleteEndpointResult struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers204 the parsed response headers for an HTTP 204 response
Headers204 *DeleteEndpointResult204Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *DeleteEndpointResult403Headers
// Headers404 the parsed response headers for an HTTP 404 response
Headers404 *DeleteEndpointResult404Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *DeleteEndpointResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *DeleteEndpointResultDefaultHeaders
}
func ParseDeleteEndpointResult ¶
func ParseDeleteEndpointResult(rsp *http.Response) (*DeleteEndpointResult, error)
ParseDeleteEndpointResult parses an HTTP response from a DeleteEndpointWithResponse call
func (DeleteEndpointResult) ContentType ¶
func (r DeleteEndpointResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteEndpointResult) GetApplicationproblemJSON401 ¶
func (r DeleteEndpointResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteEndpointResult) GetApplicationproblemJSON403 ¶
func (r DeleteEndpointResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteEndpointResult) GetApplicationproblemJSON404 ¶
func (r DeleteEndpointResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DeleteEndpointResult) GetApplicationproblemJSON429 ¶
func (r DeleteEndpointResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (DeleteEndpointResult) GetApplicationproblemJSONDefault ¶
func (r DeleteEndpointResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (DeleteEndpointResult) GetBody ¶
func (r DeleteEndpointResult) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteEndpointResult) Status ¶
func (r DeleteEndpointResult) Status() string
Status returns HTTPResponse.Status
func (DeleteEndpointResult) StatusCode ¶
func (r DeleteEndpointResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteEndpointResult204Headers ¶
type DeleteEndpointResult204Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
DeleteEndpointResult204Headers the declared response headers of an HTTP 204 response for DeleteEndpoint
type DeleteEndpointResult403Headers ¶
type DeleteEndpointResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
DeleteEndpointResult403Headers the declared response headers of an HTTP 403 response for DeleteEndpoint
type DeleteEndpointResult404Headers ¶
type DeleteEndpointResult404Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
DeleteEndpointResult404Headers the declared response headers of an HTTP 404 response for DeleteEndpoint
type DeleteEndpointResult429Headers ¶
type DeleteEndpointResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
DeleteEndpointResult429Headers the declared response headers of an HTTP 429 response for DeleteEndpoint
type DeleteEndpointResultDefaultHeaders ¶
type DeleteEndpointResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
DeleteEndpointResultDefaultHeaders the declared response headers of an HTTP default response for DeleteEndpoint
type GetEndpointBuildResult ¶
type GetEndpointBuildResult struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *externalRef0.Build
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetEndpointBuildResult200Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *GetEndpointBuildResult403Headers
// Headers404 the parsed response headers for an HTTP 404 response
Headers404 *GetEndpointBuildResult404Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetEndpointBuildResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *GetEndpointBuildResultDefaultHeaders
}
func ParseGetEndpointBuildResult ¶
func ParseGetEndpointBuildResult(rsp *http.Response) (*GetEndpointBuildResult, error)
ParseGetEndpointBuildResult parses an HTTP response from a GetEndpointBuildWithResponse call
func (GetEndpointBuildResult) ContentType ¶
func (r GetEndpointBuildResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetEndpointBuildResult) GetApplicationproblemJSON401 ¶
func (r GetEndpointBuildResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetEndpointBuildResult) GetApplicationproblemJSON403 ¶
func (r GetEndpointBuildResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetEndpointBuildResult) GetApplicationproblemJSON404 ¶
func (r GetEndpointBuildResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetEndpointBuildResult) GetApplicationproblemJSON429 ¶
func (r GetEndpointBuildResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetEndpointBuildResult) GetApplicationproblemJSONDefault ¶
func (r GetEndpointBuildResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (GetEndpointBuildResult) GetBody ¶
func (r GetEndpointBuildResult) GetBody() []byte
GetBody returns the raw response body bytes
func (GetEndpointBuildResult) GetJSON200 ¶
func (r GetEndpointBuildResult) GetJSON200() *externalRef0.Build
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetEndpointBuildResult) Status ¶
func (r GetEndpointBuildResult) Status() string
Status returns HTTPResponse.Status
func (GetEndpointBuildResult) StatusCode ¶
func (r GetEndpointBuildResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEndpointBuildResult200Headers ¶
type GetEndpointBuildResult200Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointBuildResult200Headers the declared response headers of an HTTP 200 response for GetEndpointBuild
type GetEndpointBuildResult403Headers ¶
type GetEndpointBuildResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointBuildResult403Headers the declared response headers of an HTTP 403 response for GetEndpointBuild
type GetEndpointBuildResult404Headers ¶
type GetEndpointBuildResult404Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointBuildResult404Headers the declared response headers of an HTTP 404 response for GetEndpointBuild
type GetEndpointBuildResult429Headers ¶
type GetEndpointBuildResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
GetEndpointBuildResult429Headers the declared response headers of an HTTP 429 response for GetEndpointBuild
type GetEndpointBuildResultDefaultHeaders ¶
type GetEndpointBuildResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointBuildResultDefaultHeaders the declared response headers of an HTTP default response for GetEndpointBuild
type GetEndpointColdStartMetricsParams ¶ added in v2.2.0
type GetEndpointColdStartMetricsParams struct {
// StartTime Start of the window (RFC 3339), inclusive. Defaults to 24 hours before endTime, rounded down to the start of an interval bucket. Must be within the last 90 days.
StartTime *externalRef0.MetricsStartTime `form:"startTime,omitempty" json:"startTime,omitempty"`
// EndTime End of the window (RFC 3339), exclusive. Defaults to now; a future value is treated as now.
EndTime *externalRef0.MetricsEndTime `form:"endTime,omitempty" json:"endTime,omitempty"`
// Interval Bucket size. Defaults to 1h.
Interval *externalRef0.MetricsInterval `form:"interval,omitempty" json:"interval,omitempty"`
// Cursor Opaque resume cursor — pass the previous response's `pagination.nextCursor` through verbatim; omit for the first page. A cursor is only valid for the operation and parameters that issued it; a malformed or foreign cursor is rejected with 422.
Cursor *externalRef0.PaginationCursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size, 1–1000. Defaults to 1000 when omitted.
Limit *externalRef0.PaginationLimit `form:"limit,omitempty" json:"limit,omitempty"`
}
GetEndpointColdStartMetricsParams defines parameters for GetEndpointColdStartMetrics.
type GetEndpointColdStartMetricsResult ¶ added in v2.2.0
type GetEndpointColdStartMetricsResult struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *externalRef0.EndpointColdStartMetricsResponse
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *externalRef0.ErrorResponse
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *externalRef0.ErrorResponse
// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
ApplicationproblemJSON413 *externalRef0.ErrorResponse
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetEndpointColdStartMetricsResult200Headers
// Headers400 the parsed response headers for an HTTP 400 response
Headers400 *GetEndpointColdStartMetricsResult400Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *GetEndpointColdStartMetricsResult403Headers
// Headers404 the parsed response headers for an HTTP 404 response
Headers404 *GetEndpointColdStartMetricsResult404Headers
// Headers413 the parsed response headers for an HTTP 413 response
Headers413 *GetEndpointColdStartMetricsResult413Headers
// Headers422 the parsed response headers for an HTTP 422 response
Headers422 *GetEndpointColdStartMetricsResult422Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetEndpointColdStartMetricsResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *GetEndpointColdStartMetricsResultDefaultHeaders
}
func ParseGetEndpointColdStartMetricsResult ¶ added in v2.2.0
func ParseGetEndpointColdStartMetricsResult(rsp *http.Response) (*GetEndpointColdStartMetricsResult, error)
ParseGetEndpointColdStartMetricsResult parses an HTTP response from a GetEndpointColdStartMetricsWithResponse call
func (GetEndpointColdStartMetricsResult) ContentType ¶ added in v2.2.0
func (r GetEndpointColdStartMetricsResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetEndpointColdStartMetricsResult) GetApplicationproblemJSON400 ¶ added in v2.2.0
func (r GetEndpointColdStartMetricsResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (GetEndpointColdStartMetricsResult) GetApplicationproblemJSON401 ¶ added in v2.2.0
func (r GetEndpointColdStartMetricsResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetEndpointColdStartMetricsResult) GetApplicationproblemJSON403 ¶ added in v2.2.0
func (r GetEndpointColdStartMetricsResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetEndpointColdStartMetricsResult) GetApplicationproblemJSON404 ¶ added in v2.2.0
func (r GetEndpointColdStartMetricsResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetEndpointColdStartMetricsResult) GetApplicationproblemJSON413 ¶ added in v2.2.0
func (r GetEndpointColdStartMetricsResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse
GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response
func (GetEndpointColdStartMetricsResult) GetApplicationproblemJSON422 ¶ added in v2.2.0
func (r GetEndpointColdStartMetricsResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (GetEndpointColdStartMetricsResult) GetApplicationproblemJSON429 ¶ added in v2.2.0
func (r GetEndpointColdStartMetricsResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetEndpointColdStartMetricsResult) GetApplicationproblemJSONDefault ¶ added in v2.2.0
func (r GetEndpointColdStartMetricsResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (GetEndpointColdStartMetricsResult) GetBody ¶ added in v2.2.0
func (r GetEndpointColdStartMetricsResult) GetBody() []byte
GetBody returns the raw response body bytes
func (GetEndpointColdStartMetricsResult) GetJSON200 ¶ added in v2.2.0
func (r GetEndpointColdStartMetricsResult) GetJSON200() *externalRef0.EndpointColdStartMetricsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetEndpointColdStartMetricsResult) Status ¶ added in v2.2.0
func (r GetEndpointColdStartMetricsResult) Status() string
Status returns HTTPResponse.Status
func (GetEndpointColdStartMetricsResult) StatusCode ¶ added in v2.2.0
func (r GetEndpointColdStartMetricsResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEndpointColdStartMetricsResult200Headers ¶ added in v2.2.0
type GetEndpointColdStartMetricsResult200Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointColdStartMetricsResult200Headers the declared response headers of an HTTP 200 response for GetEndpointColdStartMetrics
type GetEndpointColdStartMetricsResult400Headers ¶ added in v2.2.0
type GetEndpointColdStartMetricsResult400Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointColdStartMetricsResult400Headers the declared response headers of an HTTP 400 response for GetEndpointColdStartMetrics
type GetEndpointColdStartMetricsResult403Headers ¶ added in v2.2.0
type GetEndpointColdStartMetricsResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointColdStartMetricsResult403Headers the declared response headers of an HTTP 403 response for GetEndpointColdStartMetrics
type GetEndpointColdStartMetricsResult404Headers ¶ added in v2.2.0
type GetEndpointColdStartMetricsResult404Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointColdStartMetricsResult404Headers the declared response headers of an HTTP 404 response for GetEndpointColdStartMetrics
type GetEndpointColdStartMetricsResult413Headers ¶ added in v2.2.0
type GetEndpointColdStartMetricsResult413Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointColdStartMetricsResult413Headers the declared response headers of an HTTP 413 response for GetEndpointColdStartMetrics
type GetEndpointColdStartMetricsResult422Headers ¶ added in v2.2.0
type GetEndpointColdStartMetricsResult422Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointColdStartMetricsResult422Headers the declared response headers of an HTTP 422 response for GetEndpointColdStartMetrics
type GetEndpointColdStartMetricsResult429Headers ¶ added in v2.2.0
type GetEndpointColdStartMetricsResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
GetEndpointColdStartMetricsResult429Headers the declared response headers of an HTTP 429 response for GetEndpointColdStartMetrics
type GetEndpointColdStartMetricsResultDefaultHeaders ¶ added in v2.2.0
type GetEndpointColdStartMetricsResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointColdStartMetricsResultDefaultHeaders the declared response headers of an HTTP default response for GetEndpointColdStartMetrics
type GetEndpointRequestMetricsParams ¶ added in v2.2.0
type GetEndpointRequestMetricsParams struct {
// StartTime Start of the window (RFC 3339), inclusive. Defaults to 24 hours before endTime, rounded down to the start of an interval bucket. Must be within the last 90 days.
StartTime *externalRef0.MetricsStartTime `form:"startTime,omitempty" json:"startTime,omitempty"`
// EndTime End of the window (RFC 3339), exclusive. Defaults to now; a future value is treated as now.
EndTime *externalRef0.MetricsEndTime `form:"endTime,omitempty" json:"endTime,omitempty"`
// Interval Bucket size. Defaults to 1h.
Interval *externalRef0.MetricsInterval `form:"interval,omitempty" json:"interval,omitempty"`
// Cursor Opaque resume cursor — pass the previous response's `pagination.nextCursor` through verbatim; omit for the first page. A cursor is only valid for the operation and parameters that issued it; a malformed or foreign cursor is rejected with 422.
Cursor *externalRef0.PaginationCursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size, 1–1000. Defaults to 1000 when omitted.
Limit *externalRef0.PaginationLimit `form:"limit,omitempty" json:"limit,omitempty"`
}
GetEndpointRequestMetricsParams defines parameters for GetEndpointRequestMetrics.
type GetEndpointRequestMetricsResult ¶ added in v2.2.0
type GetEndpointRequestMetricsResult struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *externalRef0.EndpointRequestMetricsResponse
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *externalRef0.ErrorResponse
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *externalRef0.ErrorResponse
// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
ApplicationproblemJSON413 *externalRef0.ErrorResponse
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetEndpointRequestMetricsResult200Headers
// Headers400 the parsed response headers for an HTTP 400 response
Headers400 *GetEndpointRequestMetricsResult400Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *GetEndpointRequestMetricsResult403Headers
// Headers404 the parsed response headers for an HTTP 404 response
Headers404 *GetEndpointRequestMetricsResult404Headers
// Headers413 the parsed response headers for an HTTP 413 response
Headers413 *GetEndpointRequestMetricsResult413Headers
// Headers422 the parsed response headers for an HTTP 422 response
Headers422 *GetEndpointRequestMetricsResult422Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetEndpointRequestMetricsResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *GetEndpointRequestMetricsResultDefaultHeaders
}
func ParseGetEndpointRequestMetricsResult ¶ added in v2.2.0
func ParseGetEndpointRequestMetricsResult(rsp *http.Response) (*GetEndpointRequestMetricsResult, error)
ParseGetEndpointRequestMetricsResult parses an HTTP response from a GetEndpointRequestMetricsWithResponse call
func (GetEndpointRequestMetricsResult) ContentType ¶ added in v2.2.0
func (r GetEndpointRequestMetricsResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetEndpointRequestMetricsResult) GetApplicationproblemJSON400 ¶ added in v2.2.0
func (r GetEndpointRequestMetricsResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (GetEndpointRequestMetricsResult) GetApplicationproblemJSON401 ¶ added in v2.2.0
func (r GetEndpointRequestMetricsResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetEndpointRequestMetricsResult) GetApplicationproblemJSON403 ¶ added in v2.2.0
func (r GetEndpointRequestMetricsResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetEndpointRequestMetricsResult) GetApplicationproblemJSON404 ¶ added in v2.2.0
func (r GetEndpointRequestMetricsResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetEndpointRequestMetricsResult) GetApplicationproblemJSON413 ¶ added in v2.2.0
func (r GetEndpointRequestMetricsResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse
GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response
func (GetEndpointRequestMetricsResult) GetApplicationproblemJSON422 ¶ added in v2.2.0
func (r GetEndpointRequestMetricsResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (GetEndpointRequestMetricsResult) GetApplicationproblemJSON429 ¶ added in v2.2.0
func (r GetEndpointRequestMetricsResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetEndpointRequestMetricsResult) GetApplicationproblemJSONDefault ¶ added in v2.2.0
func (r GetEndpointRequestMetricsResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (GetEndpointRequestMetricsResult) GetBody ¶ added in v2.2.0
func (r GetEndpointRequestMetricsResult) GetBody() []byte
GetBody returns the raw response body bytes
func (GetEndpointRequestMetricsResult) GetJSON200 ¶ added in v2.2.0
func (r GetEndpointRequestMetricsResult) GetJSON200() *externalRef0.EndpointRequestMetricsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetEndpointRequestMetricsResult) Status ¶ added in v2.2.0
func (r GetEndpointRequestMetricsResult) Status() string
Status returns HTTPResponse.Status
func (GetEndpointRequestMetricsResult) StatusCode ¶ added in v2.2.0
func (r GetEndpointRequestMetricsResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEndpointRequestMetricsResult200Headers ¶ added in v2.2.0
type GetEndpointRequestMetricsResult200Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointRequestMetricsResult200Headers the declared response headers of an HTTP 200 response for GetEndpointRequestMetrics
type GetEndpointRequestMetricsResult400Headers ¶ added in v2.2.0
type GetEndpointRequestMetricsResult400Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointRequestMetricsResult400Headers the declared response headers of an HTTP 400 response for GetEndpointRequestMetrics
type GetEndpointRequestMetricsResult403Headers ¶ added in v2.2.0
type GetEndpointRequestMetricsResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointRequestMetricsResult403Headers the declared response headers of an HTTP 403 response for GetEndpointRequestMetrics
type GetEndpointRequestMetricsResult404Headers ¶ added in v2.2.0
type GetEndpointRequestMetricsResult404Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointRequestMetricsResult404Headers the declared response headers of an HTTP 404 response for GetEndpointRequestMetrics
type GetEndpointRequestMetricsResult413Headers ¶ added in v2.2.0
type GetEndpointRequestMetricsResult413Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointRequestMetricsResult413Headers the declared response headers of an HTTP 413 response for GetEndpointRequestMetrics
type GetEndpointRequestMetricsResult422Headers ¶ added in v2.2.0
type GetEndpointRequestMetricsResult422Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointRequestMetricsResult422Headers the declared response headers of an HTTP 422 response for GetEndpointRequestMetrics
type GetEndpointRequestMetricsResult429Headers ¶ added in v2.2.0
type GetEndpointRequestMetricsResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
GetEndpointRequestMetricsResult429Headers the declared response headers of an HTTP 429 response for GetEndpointRequestMetrics
type GetEndpointRequestMetricsResultDefaultHeaders ¶ added in v2.2.0
type GetEndpointRequestMetricsResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointRequestMetricsResultDefaultHeaders the declared response headers of an HTTP default response for GetEndpointRequestMetrics
type GetEndpointResult ¶
type GetEndpointResult struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *externalRef0.Endpoint
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetEndpointResult200Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *GetEndpointResult403Headers
// Headers404 the parsed response headers for an HTTP 404 response
Headers404 *GetEndpointResult404Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetEndpointResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *GetEndpointResultDefaultHeaders
}
func ParseGetEndpointResult ¶
func ParseGetEndpointResult(rsp *http.Response) (*GetEndpointResult, error)
ParseGetEndpointResult parses an HTTP response from a GetEndpointWithResponse call
func (GetEndpointResult) ContentType ¶
func (r GetEndpointResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetEndpointResult) GetApplicationproblemJSON401 ¶
func (r GetEndpointResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetEndpointResult) GetApplicationproblemJSON403 ¶
func (r GetEndpointResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetEndpointResult) GetApplicationproblemJSON404 ¶
func (r GetEndpointResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetEndpointResult) GetApplicationproblemJSON429 ¶
func (r GetEndpointResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetEndpointResult) GetApplicationproblemJSONDefault ¶
func (r GetEndpointResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (GetEndpointResult) GetBody ¶
func (r GetEndpointResult) GetBody() []byte
GetBody returns the raw response body bytes
func (GetEndpointResult) GetJSON200 ¶
func (r GetEndpointResult) GetJSON200() *externalRef0.Endpoint
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetEndpointResult) Status ¶
func (r GetEndpointResult) Status() string
Status returns HTTPResponse.Status
func (GetEndpointResult) StatusCode ¶
func (r GetEndpointResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEndpointResult200Headers ¶
type GetEndpointResult200Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointResult200Headers the declared response headers of an HTTP 200 response for GetEndpoint
type GetEndpointResult403Headers ¶
type GetEndpointResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointResult403Headers the declared response headers of an HTTP 403 response for GetEndpoint
type GetEndpointResult404Headers ¶
type GetEndpointResult404Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointResult404Headers the declared response headers of an HTTP 404 response for GetEndpoint
type GetEndpointResult429Headers ¶
type GetEndpointResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
GetEndpointResult429Headers the declared response headers of an HTTP 429 response for GetEndpoint
type GetEndpointResultDefaultHeaders ¶
type GetEndpointResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointResultDefaultHeaders the declared response headers of an HTTP default response for GetEndpoint
type GetEndpointWorkerMetricsParams ¶ added in v2.2.0
type GetEndpointWorkerMetricsParams struct {
// StartTime Start of the window (RFC 3339), inclusive. Defaults to 24 hours before endTime, rounded down to the start of an interval bucket. Must be within the last 90 days.
StartTime *externalRef0.MetricsStartTime `form:"startTime,omitempty" json:"startTime,omitempty"`
// EndTime End of the window (RFC 3339), exclusive. Defaults to now; a future value is treated as now.
EndTime *externalRef0.MetricsEndTime `form:"endTime,omitempty" json:"endTime,omitempty"`
// Interval Bucket size. Defaults to 1h.
Interval *externalRef0.MetricsInterval `form:"interval,omitempty" json:"interval,omitempty"`
// Cursor Opaque resume cursor — pass the previous response's `pagination.nextCursor` through verbatim; omit for the first page. A cursor is only valid for the operation and parameters that issued it; a malformed or foreign cursor is rejected with 422.
Cursor *externalRef0.PaginationCursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size, 1–1000. Defaults to 1000 when omitted.
Limit *externalRef0.PaginationLimit `form:"limit,omitempty" json:"limit,omitempty"`
}
GetEndpointWorkerMetricsParams defines parameters for GetEndpointWorkerMetrics.
type GetEndpointWorkerMetricsResult ¶ added in v2.2.0
type GetEndpointWorkerMetricsResult struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *externalRef0.EndpointWorkerMetricsResponse
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *externalRef0.ErrorResponse
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *externalRef0.ErrorResponse
// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
ApplicationproblemJSON413 *externalRef0.ErrorResponse
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetEndpointWorkerMetricsResult200Headers
// Headers400 the parsed response headers for an HTTP 400 response
Headers400 *GetEndpointWorkerMetricsResult400Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *GetEndpointWorkerMetricsResult403Headers
// Headers404 the parsed response headers for an HTTP 404 response
Headers404 *GetEndpointWorkerMetricsResult404Headers
// Headers413 the parsed response headers for an HTTP 413 response
Headers413 *GetEndpointWorkerMetricsResult413Headers
// Headers422 the parsed response headers for an HTTP 422 response
Headers422 *GetEndpointWorkerMetricsResult422Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetEndpointWorkerMetricsResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *GetEndpointWorkerMetricsResultDefaultHeaders
}
func ParseGetEndpointWorkerMetricsResult ¶ added in v2.2.0
func ParseGetEndpointWorkerMetricsResult(rsp *http.Response) (*GetEndpointWorkerMetricsResult, error)
ParseGetEndpointWorkerMetricsResult parses an HTTP response from a GetEndpointWorkerMetricsWithResponse call
func (GetEndpointWorkerMetricsResult) ContentType ¶ added in v2.2.0
func (r GetEndpointWorkerMetricsResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetEndpointWorkerMetricsResult) GetApplicationproblemJSON400 ¶ added in v2.2.0
func (r GetEndpointWorkerMetricsResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (GetEndpointWorkerMetricsResult) GetApplicationproblemJSON401 ¶ added in v2.2.0
func (r GetEndpointWorkerMetricsResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetEndpointWorkerMetricsResult) GetApplicationproblemJSON403 ¶ added in v2.2.0
func (r GetEndpointWorkerMetricsResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetEndpointWorkerMetricsResult) GetApplicationproblemJSON404 ¶ added in v2.2.0
func (r GetEndpointWorkerMetricsResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetEndpointWorkerMetricsResult) GetApplicationproblemJSON413 ¶ added in v2.2.0
func (r GetEndpointWorkerMetricsResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse
GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response
func (GetEndpointWorkerMetricsResult) GetApplicationproblemJSON422 ¶ added in v2.2.0
func (r GetEndpointWorkerMetricsResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (GetEndpointWorkerMetricsResult) GetApplicationproblemJSON429 ¶ added in v2.2.0
func (r GetEndpointWorkerMetricsResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetEndpointWorkerMetricsResult) GetApplicationproblemJSONDefault ¶ added in v2.2.0
func (r GetEndpointWorkerMetricsResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (GetEndpointWorkerMetricsResult) GetBody ¶ added in v2.2.0
func (r GetEndpointWorkerMetricsResult) GetBody() []byte
GetBody returns the raw response body bytes
func (GetEndpointWorkerMetricsResult) GetJSON200 ¶ added in v2.2.0
func (r GetEndpointWorkerMetricsResult) GetJSON200() *externalRef0.EndpointWorkerMetricsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetEndpointWorkerMetricsResult) Status ¶ added in v2.2.0
func (r GetEndpointWorkerMetricsResult) Status() string
Status returns HTTPResponse.Status
func (GetEndpointWorkerMetricsResult) StatusCode ¶ added in v2.2.0
func (r GetEndpointWorkerMetricsResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEndpointWorkerMetricsResult200Headers ¶ added in v2.2.0
type GetEndpointWorkerMetricsResult200Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointWorkerMetricsResult200Headers the declared response headers of an HTTP 200 response for GetEndpointWorkerMetrics
type GetEndpointWorkerMetricsResult400Headers ¶ added in v2.2.0
type GetEndpointWorkerMetricsResult400Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointWorkerMetricsResult400Headers the declared response headers of an HTTP 400 response for GetEndpointWorkerMetrics
type GetEndpointWorkerMetricsResult403Headers ¶ added in v2.2.0
type GetEndpointWorkerMetricsResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointWorkerMetricsResult403Headers the declared response headers of an HTTP 403 response for GetEndpointWorkerMetrics
type GetEndpointWorkerMetricsResult404Headers ¶ added in v2.2.0
type GetEndpointWorkerMetricsResult404Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointWorkerMetricsResult404Headers the declared response headers of an HTTP 404 response for GetEndpointWorkerMetrics
type GetEndpointWorkerMetricsResult413Headers ¶ added in v2.2.0
type GetEndpointWorkerMetricsResult413Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointWorkerMetricsResult413Headers the declared response headers of an HTTP 413 response for GetEndpointWorkerMetrics
type GetEndpointWorkerMetricsResult422Headers ¶ added in v2.2.0
type GetEndpointWorkerMetricsResult422Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointWorkerMetricsResult422Headers the declared response headers of an HTTP 422 response for GetEndpointWorkerMetrics
type GetEndpointWorkerMetricsResult429Headers ¶ added in v2.2.0
type GetEndpointWorkerMetricsResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
GetEndpointWorkerMetricsResult429Headers the declared response headers of an HTTP 429 response for GetEndpointWorkerMetrics
type GetEndpointWorkerMetricsResultDefaultHeaders ¶ added in v2.2.0
type GetEndpointWorkerMetricsResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetEndpointWorkerMetricsResultDefaultHeaders the declared response headers of an HTTP default response for GetEndpointWorkerMetrics
type GetWorkerLogsParams ¶
type GetWorkerLogsParams struct {
// Source Log source to stream. Omit to include both container and system logs.
Source *externalRef0.LogSourceParam `form:"source,omitempty" json:"source,omitempty"`
// Tail Number of historical lines to backfill before streaming. Defaults to
// 100 when omitted; set `0` to stream live with no backfill. Maximum 5000.
// Ignored when `since` or `Last-Event-ID` is provided — the resume cursor
// drives the backfill instead.
Tail *externalRef0.LogTail `form:"tail,omitempty" json:"tail,omitempty"`
// Since RFC3339 timestamp to resume from. Ignored when `Last-Event-ID` is
// provided. When set, the stream resumes from this point and `tail` is
// ignored.
Since *externalRef0.LogSince `form:"since,omitempty" json:"since,omitempty"`
// LastEventID SSE reconnect cursor — a timestamp emitted by this endpoint. Takes
// precedence over `since` and `tail`: when present, the stream resumes
// from this point. Sent automatically by EventSource on reconnect.
LastEventID *externalRef0.LogLastEventID `json:"Last-Event-ID,omitempty"`
}
GetWorkerLogsParams defines parameters for GetWorkerLogs.
type GetWorkerLogsResult ¶
type GetWorkerLogsResult struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetWorkerLogsResult200Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *GetWorkerLogsResult403Headers
// Headers404 the parsed response headers for an HTTP 404 response
Headers404 *GetWorkerLogsResult404Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetWorkerLogsResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *GetWorkerLogsResultDefaultHeaders
}
func ParseGetWorkerLogsResult ¶
func ParseGetWorkerLogsResult(rsp *http.Response) (*GetWorkerLogsResult, error)
ParseGetWorkerLogsResult parses an HTTP response from a GetWorkerLogsWithResponse call
func (GetWorkerLogsResult) ContentType ¶
func (r GetWorkerLogsResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetWorkerLogsResult) GetApplicationproblemJSON401 ¶
func (r GetWorkerLogsResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetWorkerLogsResult) GetApplicationproblemJSON403 ¶
func (r GetWorkerLogsResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetWorkerLogsResult) GetApplicationproblemJSON404 ¶
func (r GetWorkerLogsResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetWorkerLogsResult) GetApplicationproblemJSON429 ¶
func (r GetWorkerLogsResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetWorkerLogsResult) GetApplicationproblemJSONDefault ¶
func (r GetWorkerLogsResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (GetWorkerLogsResult) GetBody ¶
func (r GetWorkerLogsResult) GetBody() []byte
GetBody returns the raw response body bytes
func (GetWorkerLogsResult) Status ¶
func (r GetWorkerLogsResult) Status() string
Status returns HTTPResponse.Status
func (GetWorkerLogsResult) StatusCode ¶
func (r GetWorkerLogsResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetWorkerLogsResult200Headers ¶
type GetWorkerLogsResult200Headers struct {
CacheControl *string
Connection *string
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
XAccelBuffering *string
}
GetWorkerLogsResult200Headers the declared response headers of an HTTP 200 response for GetWorkerLogs
type GetWorkerLogsResult403Headers ¶
type GetWorkerLogsResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetWorkerLogsResult403Headers the declared response headers of an HTTP 403 response for GetWorkerLogs
type GetWorkerLogsResult404Headers ¶
type GetWorkerLogsResult404Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetWorkerLogsResult404Headers the declared response headers of an HTTP 404 response for GetWorkerLogs
type GetWorkerLogsResult429Headers ¶
type GetWorkerLogsResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
GetWorkerLogsResult429Headers the declared response headers of an HTTP 429 response for GetWorkerLogs
type GetWorkerLogsResultDefaultHeaders ¶
type GetWorkerLogsResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetWorkerLogsResultDefaultHeaders the declared response headers of an HTTP default response for GetWorkerLogs
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ListEndpointBuildsParams ¶
type ListEndpointBuildsParams struct {
// Cursor Opaque resume cursor — pass the previous response's `pagination.nextCursor` through verbatim; omit for the first page. A cursor is only valid for the operation and parameters that issued it; a malformed or foreign cursor is rejected with 422.
Cursor *externalRef0.PaginationCursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size, 1–100. Defaults to 100 when omitted.
Limit *externalRef0.PaginationLimitBuilds `form:"limit,omitempty" json:"limit,omitempty"`
}
ListEndpointBuildsParams defines parameters for ListEndpointBuilds.
type ListEndpointBuildsResult ¶
type ListEndpointBuildsResult struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *externalRef0.ListEndpointBuildsResponse
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *externalRef0.ErrorResponse
// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
ApplicationproblemJSON413 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListEndpointBuildsResult200Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *ListEndpointBuildsResult403Headers
// Headers404 the parsed response headers for an HTTP 404 response
Headers404 *ListEndpointBuildsResult404Headers
// Headers413 the parsed response headers for an HTTP 413 response
Headers413 *ListEndpointBuildsResult413Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListEndpointBuildsResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *ListEndpointBuildsResultDefaultHeaders
}
func ParseListEndpointBuildsResult ¶
func ParseListEndpointBuildsResult(rsp *http.Response) (*ListEndpointBuildsResult, error)
ParseListEndpointBuildsResult parses an HTTP response from a ListEndpointBuildsWithResponse call
func (ListEndpointBuildsResult) ContentType ¶
func (r ListEndpointBuildsResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListEndpointBuildsResult) GetApplicationproblemJSON401 ¶
func (r ListEndpointBuildsResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListEndpointBuildsResult) GetApplicationproblemJSON403 ¶
func (r ListEndpointBuildsResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListEndpointBuildsResult) GetApplicationproblemJSON404 ¶
func (r ListEndpointBuildsResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListEndpointBuildsResult) GetApplicationproblemJSON413 ¶ added in v2.1.0
func (r ListEndpointBuildsResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse
GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response
func (ListEndpointBuildsResult) GetApplicationproblemJSON429 ¶
func (r ListEndpointBuildsResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListEndpointBuildsResult) GetApplicationproblemJSONDefault ¶
func (r ListEndpointBuildsResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (ListEndpointBuildsResult) GetBody ¶
func (r ListEndpointBuildsResult) GetBody() []byte
GetBody returns the raw response body bytes
func (ListEndpointBuildsResult) GetJSON200 ¶
func (r ListEndpointBuildsResult) GetJSON200() *externalRef0.ListEndpointBuildsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListEndpointBuildsResult) Status ¶
func (r ListEndpointBuildsResult) Status() string
Status returns HTTPResponse.Status
func (ListEndpointBuildsResult) StatusCode ¶
func (r ListEndpointBuildsResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEndpointBuildsResult200Headers ¶
type ListEndpointBuildsResult200Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointBuildsResult200Headers the declared response headers of an HTTP 200 response for ListEndpointBuilds
type ListEndpointBuildsResult403Headers ¶
type ListEndpointBuildsResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointBuildsResult403Headers the declared response headers of an HTTP 403 response for ListEndpointBuilds
type ListEndpointBuildsResult404Headers ¶
type ListEndpointBuildsResult404Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointBuildsResult404Headers the declared response headers of an HTTP 404 response for ListEndpointBuilds
type ListEndpointBuildsResult413Headers ¶ added in v2.1.0
type ListEndpointBuildsResult413Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointBuildsResult413Headers the declared response headers of an HTTP 413 response for ListEndpointBuilds
type ListEndpointBuildsResult429Headers ¶
type ListEndpointBuildsResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
ListEndpointBuildsResult429Headers the declared response headers of an HTTP 429 response for ListEndpointBuilds
type ListEndpointBuildsResultDefaultHeaders ¶
type ListEndpointBuildsResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointBuildsResultDefaultHeaders the declared response headers of an HTTP default response for ListEndpointBuilds
type ListEndpointReleasesParams ¶
type ListEndpointReleasesParams struct {
// Cursor Opaque resume cursor — pass the previous response's `pagination.nextCursor` through verbatim; omit for the first page. A cursor is only valid for the operation and parameters that issued it; a malformed or foreign cursor is rejected with 422.
Cursor *externalRef0.PaginationCursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size, 1–1000. Defaults to 1000 when omitted.
Limit *externalRef0.PaginationLimit `form:"limit,omitempty" json:"limit,omitempty"`
}
ListEndpointReleasesParams defines parameters for ListEndpointReleases.
type ListEndpointReleasesResult ¶
type ListEndpointReleasesResult struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *externalRef0.ListEndpointReleasesResponse
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *externalRef0.ErrorResponse
// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
ApplicationproblemJSON413 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListEndpointReleasesResult200Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *ListEndpointReleasesResult403Headers
// Headers404 the parsed response headers for an HTTP 404 response
Headers404 *ListEndpointReleasesResult404Headers
// Headers413 the parsed response headers for an HTTP 413 response
Headers413 *ListEndpointReleasesResult413Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListEndpointReleasesResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *ListEndpointReleasesResultDefaultHeaders
}
func ParseListEndpointReleasesResult ¶
func ParseListEndpointReleasesResult(rsp *http.Response) (*ListEndpointReleasesResult, error)
ParseListEndpointReleasesResult parses an HTTP response from a ListEndpointReleasesWithResponse call
func (ListEndpointReleasesResult) ContentType ¶
func (r ListEndpointReleasesResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListEndpointReleasesResult) GetApplicationproblemJSON401 ¶
func (r ListEndpointReleasesResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListEndpointReleasesResult) GetApplicationproblemJSON403 ¶
func (r ListEndpointReleasesResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListEndpointReleasesResult) GetApplicationproblemJSON404 ¶
func (r ListEndpointReleasesResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListEndpointReleasesResult) GetApplicationproblemJSON413 ¶ added in v2.1.0
func (r ListEndpointReleasesResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse
GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response
func (ListEndpointReleasesResult) GetApplicationproblemJSON429 ¶
func (r ListEndpointReleasesResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListEndpointReleasesResult) GetApplicationproblemJSONDefault ¶
func (r ListEndpointReleasesResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (ListEndpointReleasesResult) GetBody ¶
func (r ListEndpointReleasesResult) GetBody() []byte
GetBody returns the raw response body bytes
func (ListEndpointReleasesResult) GetJSON200 ¶
func (r ListEndpointReleasesResult) GetJSON200() *externalRef0.ListEndpointReleasesResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListEndpointReleasesResult) Status ¶
func (r ListEndpointReleasesResult) Status() string
Status returns HTTPResponse.Status
func (ListEndpointReleasesResult) StatusCode ¶
func (r ListEndpointReleasesResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEndpointReleasesResult200Headers ¶
type ListEndpointReleasesResult200Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointReleasesResult200Headers the declared response headers of an HTTP 200 response for ListEndpointReleases
type ListEndpointReleasesResult403Headers ¶
type ListEndpointReleasesResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointReleasesResult403Headers the declared response headers of an HTTP 403 response for ListEndpointReleases
type ListEndpointReleasesResult404Headers ¶
type ListEndpointReleasesResult404Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointReleasesResult404Headers the declared response headers of an HTTP 404 response for ListEndpointReleases
type ListEndpointReleasesResult413Headers ¶ added in v2.1.0
type ListEndpointReleasesResult413Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointReleasesResult413Headers the declared response headers of an HTTP 413 response for ListEndpointReleases
type ListEndpointReleasesResult429Headers ¶
type ListEndpointReleasesResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
ListEndpointReleasesResult429Headers the declared response headers of an HTTP 429 response for ListEndpointReleases
type ListEndpointReleasesResultDefaultHeaders ¶
type ListEndpointReleasesResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointReleasesResultDefaultHeaders the declared response headers of an HTTP default response for ListEndpointReleases
type ListEndpointWorkersResult ¶
type ListEndpointWorkersResult struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *externalRef0.ListEndpointWorkersResponse
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListEndpointWorkersResult200Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *ListEndpointWorkersResult403Headers
// Headers404 the parsed response headers for an HTTP 404 response
Headers404 *ListEndpointWorkersResult404Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListEndpointWorkersResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *ListEndpointWorkersResultDefaultHeaders
}
func ParseListEndpointWorkersResult ¶
func ParseListEndpointWorkersResult(rsp *http.Response) (*ListEndpointWorkersResult, error)
ParseListEndpointWorkersResult parses an HTTP response from a ListEndpointWorkersWithResponse call
func (ListEndpointWorkersResult) ContentType ¶
func (r ListEndpointWorkersResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListEndpointWorkersResult) GetApplicationproblemJSON401 ¶
func (r ListEndpointWorkersResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListEndpointWorkersResult) GetApplicationproblemJSON403 ¶
func (r ListEndpointWorkersResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListEndpointWorkersResult) GetApplicationproblemJSON404 ¶
func (r ListEndpointWorkersResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListEndpointWorkersResult) GetApplicationproblemJSON429 ¶
func (r ListEndpointWorkersResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListEndpointWorkersResult) GetApplicationproblemJSONDefault ¶
func (r ListEndpointWorkersResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (ListEndpointWorkersResult) GetBody ¶
func (r ListEndpointWorkersResult) GetBody() []byte
GetBody returns the raw response body bytes
func (ListEndpointWorkersResult) GetJSON200 ¶
func (r ListEndpointWorkersResult) GetJSON200() *externalRef0.ListEndpointWorkersResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListEndpointWorkersResult) Status ¶
func (r ListEndpointWorkersResult) Status() string
Status returns HTTPResponse.Status
func (ListEndpointWorkersResult) StatusCode ¶
func (r ListEndpointWorkersResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEndpointWorkersResult200Headers ¶
type ListEndpointWorkersResult200Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointWorkersResult200Headers the declared response headers of an HTTP 200 response for ListEndpointWorkers
type ListEndpointWorkersResult403Headers ¶
type ListEndpointWorkersResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointWorkersResult403Headers the declared response headers of an HTTP 403 response for ListEndpointWorkers
type ListEndpointWorkersResult404Headers ¶
type ListEndpointWorkersResult404Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointWorkersResult404Headers the declared response headers of an HTTP 404 response for ListEndpointWorkers
type ListEndpointWorkersResult429Headers ¶
type ListEndpointWorkersResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
ListEndpointWorkersResult429Headers the declared response headers of an HTTP 429 response for ListEndpointWorkers
type ListEndpointWorkersResultDefaultHeaders ¶
type ListEndpointWorkersResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointWorkersResultDefaultHeaders the declared response headers of an HTTP default response for ListEndpointWorkers
type ListEndpointsParams ¶
type ListEndpointsParams struct {
// Filters Only return resources matching these filters, as URL-encoded JSON. The filters apply before the page is cut, so send the same value with each `cursor` to keep walking the filtered list.
Filters *externalRef0.ResourceFilters `form:"filters,omitempty" json:"filters,omitempty"`
// Cursor Opaque resume cursor — pass the previous response's `pagination.nextCursor` through verbatim; omit for the first page. A cursor is only valid for the operation and parameters that issued it; a malformed or foreign cursor is rejected with 422.
Cursor *externalRef0.PaginationCursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Page size, 1–1000. Defaults to 1000 when omitted.
Limit *externalRef0.PaginationLimit `form:"limit,omitempty" json:"limit,omitempty"`
}
ListEndpointsParams defines parameters for ListEndpoints.
type ListEndpointsResult ¶
type ListEndpointsResult struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *externalRef0.ListEndpointsResponse
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
ApplicationproblemJSON413 *externalRef0.ErrorResponse
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListEndpointsResult200Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *ListEndpointsResult403Headers
// Headers413 the parsed response headers for an HTTP 413 response
Headers413 *ListEndpointsResult413Headers
// Headers422 the parsed response headers for an HTTP 422 response
Headers422 *ListEndpointsResult422Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListEndpointsResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *ListEndpointsResultDefaultHeaders
}
func ParseListEndpointsResult ¶
func ParseListEndpointsResult(rsp *http.Response) (*ListEndpointsResult, error)
ParseListEndpointsResult parses an HTTP response from a ListEndpointsWithResponse call
func (ListEndpointsResult) ContentType ¶
func (r ListEndpointsResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListEndpointsResult) GetApplicationproblemJSON401 ¶
func (r ListEndpointsResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListEndpointsResult) GetApplicationproblemJSON403 ¶
func (r ListEndpointsResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListEndpointsResult) GetApplicationproblemJSON413 ¶ added in v2.1.0
func (r ListEndpointsResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse
GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response
func (ListEndpointsResult) GetApplicationproblemJSON422 ¶ added in v2.2.0
func (r ListEndpointsResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (ListEndpointsResult) GetApplicationproblemJSON429 ¶
func (r ListEndpointsResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListEndpointsResult) GetApplicationproblemJSONDefault ¶
func (r ListEndpointsResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (ListEndpointsResult) GetBody ¶
func (r ListEndpointsResult) GetBody() []byte
GetBody returns the raw response body bytes
func (ListEndpointsResult) GetJSON200 ¶
func (r ListEndpointsResult) GetJSON200() *externalRef0.ListEndpointsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListEndpointsResult) Status ¶
func (r ListEndpointsResult) Status() string
Status returns HTTPResponse.Status
func (ListEndpointsResult) StatusCode ¶
func (r ListEndpointsResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEndpointsResult200Headers ¶
type ListEndpointsResult200Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointsResult200Headers the declared response headers of an HTTP 200 response for ListEndpoints
type ListEndpointsResult403Headers ¶
type ListEndpointsResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointsResult403Headers the declared response headers of an HTTP 403 response for ListEndpoints
type ListEndpointsResult413Headers ¶ added in v2.1.0
type ListEndpointsResult413Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointsResult413Headers the declared response headers of an HTTP 413 response for ListEndpoints
type ListEndpointsResult422Headers ¶ added in v2.2.0
type ListEndpointsResult422Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointsResult422Headers the declared response headers of an HTTP 422 response for ListEndpoints
type ListEndpointsResult429Headers ¶
type ListEndpointsResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
ListEndpointsResult429Headers the declared response headers of an HTTP 429 response for ListEndpoints
type ListEndpointsResultDefaultHeaders ¶
type ListEndpointsResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointsResultDefaultHeaders the declared response headers of an HTTP default response for ListEndpoints
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type UpdateEndpointJSONRequestBody ¶
type UpdateEndpointJSONRequestBody = externalRef0.UpdateEndpointRequest
UpdateEndpointJSONRequestBody defines body for UpdateEndpoint for application/json ContentType.
type UpdateEndpointResult ¶
type UpdateEndpointResult struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *externalRef0.Endpoint
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *externalRef0.ErrorResponse
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *externalRef0.ErrorResponse
// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
ApplicationproblemJSON413 *externalRef0.ErrorResponse
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *UpdateEndpointResult200Headers
// Headers400 the parsed response headers for an HTTP 400 response
Headers400 *UpdateEndpointResult400Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *UpdateEndpointResult403Headers
// Headers404 the parsed response headers for an HTTP 404 response
Headers404 *UpdateEndpointResult404Headers
// Headers413 the parsed response headers for an HTTP 413 response
Headers413 *UpdateEndpointResult413Headers
// Headers422 the parsed response headers for an HTTP 422 response
Headers422 *UpdateEndpointResult422Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *UpdateEndpointResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *UpdateEndpointResultDefaultHeaders
}
func ParseUpdateEndpointResult ¶
func ParseUpdateEndpointResult(rsp *http.Response) (*UpdateEndpointResult, error)
ParseUpdateEndpointResult parses an HTTP response from a UpdateEndpointWithResponse call
func (UpdateEndpointResult) ContentType ¶
func (r UpdateEndpointResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateEndpointResult) GetApplicationproblemJSON400 ¶
func (r UpdateEndpointResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (UpdateEndpointResult) GetApplicationproblemJSON401 ¶
func (r UpdateEndpointResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UpdateEndpointResult) GetApplicationproblemJSON403 ¶
func (r UpdateEndpointResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (UpdateEndpointResult) GetApplicationproblemJSON404 ¶
func (r UpdateEndpointResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (UpdateEndpointResult) GetApplicationproblemJSON413 ¶ added in v2.1.0
func (r UpdateEndpointResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse
GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response
func (UpdateEndpointResult) GetApplicationproblemJSON422 ¶
func (r UpdateEndpointResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (UpdateEndpointResult) GetApplicationproblemJSON429 ¶
func (r UpdateEndpointResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (UpdateEndpointResult) GetApplicationproblemJSONDefault ¶
func (r UpdateEndpointResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (UpdateEndpointResult) GetBody ¶
func (r UpdateEndpointResult) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateEndpointResult) GetJSON200 ¶
func (r UpdateEndpointResult) GetJSON200() *externalRef0.Endpoint
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateEndpointResult) Status ¶
func (r UpdateEndpointResult) Status() string
Status returns HTTPResponse.Status
func (UpdateEndpointResult) StatusCode ¶
func (r UpdateEndpointResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateEndpointResult200Headers ¶
type UpdateEndpointResult200Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
UpdateEndpointResult200Headers the declared response headers of an HTTP 200 response for UpdateEndpoint
type UpdateEndpointResult400Headers ¶
type UpdateEndpointResult400Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
UpdateEndpointResult400Headers the declared response headers of an HTTP 400 response for UpdateEndpoint
type UpdateEndpointResult403Headers ¶
type UpdateEndpointResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
UpdateEndpointResult403Headers the declared response headers of an HTTP 403 response for UpdateEndpoint
type UpdateEndpointResult404Headers ¶
type UpdateEndpointResult404Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
UpdateEndpointResult404Headers the declared response headers of an HTTP 404 response for UpdateEndpoint
type UpdateEndpointResult413Headers ¶ added in v2.1.0
type UpdateEndpointResult413Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
UpdateEndpointResult413Headers the declared response headers of an HTTP 413 response for UpdateEndpoint
type UpdateEndpointResult422Headers ¶
type UpdateEndpointResult422Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
UpdateEndpointResult422Headers the declared response headers of an HTTP 422 response for UpdateEndpoint
type UpdateEndpointResult429Headers ¶
type UpdateEndpointResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
UpdateEndpointResult429Headers the declared response headers of an HTTP 429 response for UpdateEndpoint
type UpdateEndpointResultDefaultHeaders ¶
type UpdateEndpointResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
UpdateEndpointResultDefaultHeaders the declared response headers of an HTTP default response for UpdateEndpoint