Documentation
¶
Overview ¶
Package gen provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Package gen contains the OpenAPI-generated Serverless API client.
Code is produced by oapi-codegen from api/serverless/openapi.yaml. Do not edit by hand — regenerate with `make generate-serverless`.
Index ¶
- func NewAttachAppSecretRequest(server string, appId AppId, body AttachAppSecretJSONRequestBody) (*http.Request, error)
- func NewAttachAppSecretRequestWithBody(server string, appId AppId, contentType string, body io.Reader) (*http.Request, error)
- func NewCompleteSourceUploadRequest(server string, uploadId SourceUploadId) (*http.Request, error)
- func NewCreateAppRequest(server string, body CreateAppJSONRequestBody) (*http.Request, error)
- func NewCreateAppRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateSecretRequest(server string, body CreateSecretJSONRequestBody) (*http.Request, error)
- func NewCreateSecretRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateSourceUploadRequest(server string, body CreateSourceUploadJSONRequestBody) (*http.Request, error)
- func NewCreateSourceUploadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteAppEnvironmentVariableRequest(server string, appId AppId, variableName EnvironmentVariableName) (*http.Request, error)
- func NewDeleteAppRequest(server string, appId AppId) (*http.Request, error)
- func NewDeleteBuildRequest(server string, appId AppId, buildId openapi_types.UUID) (*http.Request, error)
- func NewDeleteSecretRequest(server string, secretName SecretName) (*http.Request, error)
- func NewDeleteSourceUploadRequest(server string, uploadId SourceUploadId) (*http.Request, error)
- func NewDeleteVersionRequest(server string, appId AppId, versionNumber int32) (*http.Request, error)
- func NewDeployVersionRequest(server string, appId AppId, body DeployVersionJSONRequestBody) (*http.Request, error)
- func NewDeployVersionRequestWithBody(server string, appId AppId, contentType string, body io.Reader) (*http.Request, error)
- func NewDetachAppSecretRequest(server string, appId AppId, secretName SecretName) (*http.Request, error)
- func NewFavoriteAppRequest(server string, appId AppId) (*http.Request, error)
- func NewGetAppRequest(server string, appId AppId) (*http.Request, error)
- func NewGetAppSummaryRequest(server string) (*http.Request, error)
- func NewGetBuildRequest(server string, appId AppId, buildId openapi_types.UUID) (*http.Request, error)
- func NewGetEndpointRequest(server string, appId AppId, endpointId openapi_types.UUID) (*http.Request, error)
- func NewGetGpuTypeRequest(server string, gpuTypeId GpuTypeId) (*http.Request, error)
- func NewGetLogEntriesRequest(server string, queryId QueryId, params *GetLogEntriesParams) (*http.Request, error)
- func NewGetMetricSeriesRequest(server string, queryId QueryId, params *GetMetricSeriesParams) (*http.Request, error)
- func NewGetSourceRequest(server string, sourceId SourceId) (*http.Request, error)
- func NewGetSourceUploadRequest(server string, uploadId SourceUploadId) (*http.Request, error)
- func NewGetTaskRequest(server string, appId AppId, taskId TaskId) (*http.Request, error)
- func NewGetUsageSummaryRequest(server string, params *GetUsageSummaryParams) (*http.Request, error)
- func NewGetVersionRequest(server string, appId AppId, versionNumber int32) (*http.Request, error)
- func NewGetWorkerRequest(server string, appId AppId, workerId WorkerId) (*http.Request, error)
- func NewListAppEnvironmentVariablesRequest(server string, appId AppId, params *ListAppEnvironmentVariablesParams) (*http.Request, error)
- func NewListAppErrorsRequest(server string, appId AppId, params *ListAppErrorsParams) (*http.Request, error)
- func NewListAppEventsRequest(server string, appId AppId, params *ListAppEventsParams) (*http.Request, error)
- func NewListAppSecretsRequest(server string, appId AppId, params *ListAppSecretsParams) (*http.Request, error)
- func NewListAppsRequest(server string, params *ListAppsParams) (*http.Request, error)
- func NewListBuildsRequest(server string, appId AppId, params *ListBuildsParams) (*http.Request, error)
- func NewListEndpointsRequest(server string, appId AppId, params *ListEndpointsParams) (*http.Request, error)
- func NewListGpuTypesRequest(server string) (*http.Request, error)
- func NewListInsightsQueriesRequest(server string) (*http.Request, error)
- func NewListReservedCapacityRequest(server string, params *ListReservedCapacityParams) (*http.Request, error)
- func NewListSecretsRequest(server string, params *ListSecretsParams) (*http.Request, error)
- func NewListTasksRequest(server string, appId AppId, params *ListTasksParams) (*http.Request, error)
- func NewListUsageEventsRequest(server string, params *ListUsageEventsParams) (*http.Request, error)
- func NewListVersionsRequest(server string, appId AppId, params *ListVersionsParams) (*http.Request, error)
- func NewListWorkersRequest(server string, appId AppId, params *ListWorkersParams) (*http.Request, error)
- func NewResumeAppRequest(server string, appId AppId) (*http.Request, error)
- func NewStartAsyncTaskRequest(server string, appId AppId, endpointPath EndpointPath, ...) (*http.Request, error)
- func NewStartAsyncTaskRequestWithBody(server string, appId AppId, endpointPath EndpointPath, contentType string, ...) (*http.Request, error)
- func NewStartSyncTaskRequest(server string, appId AppId, endpointPath EndpointPath, ...) (*http.Request, error)
- func NewStartSyncTaskRequestWithBody(server string, appId AppId, endpointPath EndpointPath, contentType string, ...) (*http.Request, error)
- func NewStopAppRequest(server string, appId AppId) (*http.Request, error)
- func NewTailLogEntriesRequest(server string, queryId QueryId, params *TailLogEntriesParams) (*http.Request, error)
- func NewUnfavoriteAppRequest(server string, appId AppId) (*http.Request, error)
- func NewUpdateAppEnvironmentVariableRequest(server string, appId AppId, variableName EnvironmentVariableName, ...) (*http.Request, error)
- func NewUpdateAppEnvironmentVariableRequestWithBody(server string, appId AppId, variableName EnvironmentVariableName, ...) (*http.Request, error)
- func NewUpdateAppRequest(server string, appId AppId, body UpdateAppJSONRequestBody) (*http.Request, error)
- func NewUpdateAppRequestWithBody(server string, appId AppId, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateSecretRequest(server string, secretName SecretName, body UpdateSecretJSONRequestBody) (*http.Request, error)
- func NewUpdateSecretRequestWithBody(server string, secretName SecretName, contentType string, body io.Reader) (*http.Request, error)
- type App
- type AppCreate
- type AppErrorStatusClass
- type AppErrorWindow
- type AppEvent
- type AppEventType
- type AppId
- type AppName
- type AppRuntime
- type AppSort
- type AppSourceType
- type AppSourceUpsert
- type AppSourceUpsert_Source
- func (t AppSourceUpsert_Source) AsCodeSourceUpsert() (CodeSourceUpsert, error)
- func (t AppSourceUpsert_Source) AsContainerSource() (ContainerSource, error)
- func (t *AppSourceUpsert_Source) FromCodeSourceUpsert(v CodeSourceUpsert) error
- func (t *AppSourceUpsert_Source) FromContainerSource(v ContainerSource) error
- func (t AppSourceUpsert_Source) MarshalJSON() ([]byte, error)
- func (t *AppSourceUpsert_Source) MergeCodeSourceUpsert(v CodeSourceUpsert) error
- func (t *AppSourceUpsert_Source) MergeContainerSource(v ContainerSource) error
- func (t *AppSourceUpsert_Source) UnmarshalJSON(b []byte) error
- type AppStatus
- type AppSummary
- type AppUpdate
- type AppVolume
- type AttachAppSecretJSONRequestBody
- type AttachAppSecretResponse
- func (r AttachAppSecretResponse) ContentType() string
- func (r AttachAppSecretResponse) GetApplicationproblemJSON400() *BadRequest
- func (r AttachAppSecretResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r AttachAppSecretResponse) GetApplicationproblemJSON403() *Forbidden
- func (r AttachAppSecretResponse) GetApplicationproblemJSON404() *NotFound
- func (r AttachAppSecretResponse) GetApplicationproblemJSON409() *Conflict
- func (r AttachAppSecretResponse) GetApplicationproblemJSON422() *ValidationError
- func (r AttachAppSecretResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r AttachAppSecretResponse) GetBody() []byte
- func (r AttachAppSecretResponse) Status() string
- func (r AttachAppSecretResponse) StatusCode() int
- type BadGateway
- type BadRequest
- type Build
- type BuildListSummary
- type BuildPhase
- type BuildPhaseOutcome
- type BuildSource
- type BuildStatus
- type CatalogEntry
- type Client
- func (c *Client) AttachAppSecret(ctx context.Context, appId AppId, body AttachAppSecretJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AttachAppSecretWithBody(ctx context.Context, appId AppId, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CompleteSourceUpload(ctx context.Context, uploadId SourceUploadId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CreateApp(ctx context.Context, body CreateAppJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateAppWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateSecret(ctx context.Context, body CreateSecretJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateSecretWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateSourceUpload(ctx context.Context, body CreateSourceUploadJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateSourceUploadWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteApp(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteAppEnvironmentVariable(ctx context.Context, appId AppId, variableName EnvironmentVariableName, ...) (*http.Response, error)
- func (c *Client) DeleteBuild(ctx context.Context, appId AppId, buildId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) DeleteSecret(ctx context.Context, secretName SecretName, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteSourceUpload(ctx context.Context, uploadId SourceUploadId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteVersion(ctx context.Context, appId AppId, versionNumber int32, ...) (*http.Response, error)
- func (c *Client) DeployVersion(ctx context.Context, appId AppId, body DeployVersionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeployVersionWithBody(ctx context.Context, appId AppId, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DetachAppSecret(ctx context.Context, appId AppId, secretName SecretName, ...) (*http.Response, error)
- func (c *Client) FavoriteApp(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApp(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAppSummary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBuild(ctx context.Context, appId AppId, buildId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetEndpoint(ctx context.Context, appId AppId, endpointId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetGpuType(ctx context.Context, gpuTypeId GpuTypeId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLogEntries(ctx context.Context, queryId QueryId, params *GetLogEntriesParams, ...) (*http.Response, error)
- func (c *Client) GetMetricSeries(ctx context.Context, queryId QueryId, params *GetMetricSeriesParams, ...) (*http.Response, error)
- func (c *Client) GetSource(ctx context.Context, sourceId SourceId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSourceUpload(ctx context.Context, uploadId SourceUploadId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTask(ctx context.Context, appId AppId, taskId TaskId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetUsageSummary(ctx context.Context, params *GetUsageSummaryParams, ...) (*http.Response, error)
- func (c *Client) GetVersion(ctx context.Context, appId AppId, versionNumber int32, ...) (*http.Response, error)
- func (c *Client) GetWorker(ctx context.Context, appId AppId, workerId WorkerId, ...) (*http.Response, error)
- func (c *Client) ListAppEnvironmentVariables(ctx context.Context, appId AppId, params *ListAppEnvironmentVariablesParams, ...) (*http.Response, error)
- func (c *Client) ListAppErrors(ctx context.Context, appId AppId, params *ListAppErrorsParams, ...) (*http.Response, error)
- func (c *Client) ListAppEvents(ctx context.Context, appId AppId, params *ListAppEventsParams, ...) (*http.Response, error)
- func (c *Client) ListAppSecrets(ctx context.Context, appId AppId, params *ListAppSecretsParams, ...) (*http.Response, error)
- func (c *Client) ListApps(ctx context.Context, params *ListAppsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListBuilds(ctx context.Context, appId AppId, params *ListBuildsParams, ...) (*http.Response, error)
- func (c *Client) ListEndpoints(ctx context.Context, appId AppId, params *ListEndpointsParams, ...) (*http.Response, error)
- func (c *Client) ListGpuTypes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListInsightsQueries(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListReservedCapacity(ctx context.Context, params *ListReservedCapacityParams, ...) (*http.Response, error)
- func (c *Client) ListSecrets(ctx context.Context, params *ListSecretsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListTasks(ctx context.Context, appId AppId, params *ListTasksParams, ...) (*http.Response, error)
- func (c *Client) ListUsageEvents(ctx context.Context, params *ListUsageEventsParams, ...) (*http.Response, error)
- func (c *Client) ListVersions(ctx context.Context, appId AppId, params *ListVersionsParams, ...) (*http.Response, error)
- func (c *Client) ListWorkers(ctx context.Context, appId AppId, params *ListWorkersParams, ...) (*http.Response, error)
- func (c *Client) ResumeApp(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) StartAsyncTask(ctx context.Context, appId AppId, endpointPath EndpointPath, ...) (*http.Response, error)
- func (c *Client) StartAsyncTaskWithBody(ctx context.Context, appId AppId, endpointPath EndpointPath, ...) (*http.Response, error)
- func (c *Client) StartSyncTask(ctx context.Context, appId AppId, endpointPath EndpointPath, ...) (*http.Response, error)
- func (c *Client) StartSyncTaskWithBody(ctx context.Context, appId AppId, endpointPath EndpointPath, ...) (*http.Response, error)
- func (c *Client) StopApp(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) TailLogEntries(ctx context.Context, queryId QueryId, params *TailLogEntriesParams, ...) (*http.Response, error)
- func (c *Client) UnfavoriteApp(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateApp(ctx context.Context, appId AppId, body UpdateAppJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateAppEnvironmentVariable(ctx context.Context, appId AppId, variableName EnvironmentVariableName, ...) (*http.Response, error)
- func (c *Client) UpdateAppEnvironmentVariableWithBody(ctx context.Context, appId AppId, variableName EnvironmentVariableName, ...) (*http.Response, error)
- func (c *Client) UpdateAppWithBody(ctx context.Context, appId AppId, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateSecret(ctx context.Context, secretName SecretName, body UpdateSecretJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateSecretWithBody(ctx context.Context, secretName SecretName, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AttachAppSecretWithBodyWithResponse(ctx context.Context, appId AppId, contentType string, body io.Reader, ...) (*AttachAppSecretResponse, error)
- func (c *ClientWithResponses) AttachAppSecretWithResponse(ctx context.Context, appId AppId, body AttachAppSecretJSONRequestBody, ...) (*AttachAppSecretResponse, error)
- func (c *ClientWithResponses) CompleteSourceUploadWithResponse(ctx context.Context, uploadId SourceUploadId, reqEditors ...RequestEditorFn) (*CompleteSourceUploadResponse, error)
- func (c *ClientWithResponses) CreateAppWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAppResponse, error)
- func (c *ClientWithResponses) CreateAppWithResponse(ctx context.Context, body CreateAppJSONRequestBody, ...) (*CreateAppResponse, error)
- func (c *ClientWithResponses) CreateSecretWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSecretResponse, error)
- func (c *ClientWithResponses) CreateSecretWithResponse(ctx context.Context, body CreateSecretJSONRequestBody, ...) (*CreateSecretResponse, error)
- func (c *ClientWithResponses) CreateSourceUploadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSourceUploadResponse, error)
- func (c *ClientWithResponses) CreateSourceUploadWithResponse(ctx context.Context, body CreateSourceUploadJSONRequestBody, ...) (*CreateSourceUploadResponse, error)
- func (c *ClientWithResponses) DeleteAppEnvironmentVariableWithResponse(ctx context.Context, appId AppId, variableName EnvironmentVariableName, ...) (*DeleteAppEnvironmentVariableResponse, error)
- func (c *ClientWithResponses) DeleteAppWithResponse(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*DeleteAppResponse, error)
- func (c *ClientWithResponses) DeleteBuildWithResponse(ctx context.Context, appId AppId, buildId openapi_types.UUID, ...) (*DeleteBuildResponse, error)
- func (c *ClientWithResponses) DeleteSecretWithResponse(ctx context.Context, secretName SecretName, reqEditors ...RequestEditorFn) (*DeleteSecretResponse, error)
- func (c *ClientWithResponses) DeleteSourceUploadWithResponse(ctx context.Context, uploadId SourceUploadId, reqEditors ...RequestEditorFn) (*DeleteSourceUploadResponse, error)
- func (c *ClientWithResponses) DeleteVersionWithResponse(ctx context.Context, appId AppId, versionNumber int32, ...) (*DeleteVersionResponse, error)
- func (c *ClientWithResponses) DeployVersionWithBodyWithResponse(ctx context.Context, appId AppId, contentType string, body io.Reader, ...) (*DeployVersionResponse, error)
- func (c *ClientWithResponses) DeployVersionWithResponse(ctx context.Context, appId AppId, body DeployVersionJSONRequestBody, ...) (*DeployVersionResponse, error)
- func (c *ClientWithResponses) DetachAppSecretWithResponse(ctx context.Context, appId AppId, secretName SecretName, ...) (*DetachAppSecretResponse, error)
- func (c *ClientWithResponses) FavoriteAppWithResponse(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*FavoriteAppResponse, error)
- func (c *ClientWithResponses) GetAppSummaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAppSummaryResponse, error)
- func (c *ClientWithResponses) GetAppWithResponse(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*GetAppResponse, error)
- func (c *ClientWithResponses) GetBuildWithResponse(ctx context.Context, appId AppId, buildId openapi_types.UUID, ...) (*GetBuildResponse, error)
- func (c *ClientWithResponses) GetEndpointWithResponse(ctx context.Context, appId AppId, endpointId openapi_types.UUID, ...) (*GetEndpointResponse, error)
- func (c *ClientWithResponses) GetGpuTypeWithResponse(ctx context.Context, gpuTypeId GpuTypeId, reqEditors ...RequestEditorFn) (*GetGpuTypeResponse, error)
- func (c *ClientWithResponses) GetLogEntriesWithResponse(ctx context.Context, queryId QueryId, params *GetLogEntriesParams, ...) (*GetLogEntriesResponse, error)
- func (c *ClientWithResponses) GetMetricSeriesWithResponse(ctx context.Context, queryId QueryId, params *GetMetricSeriesParams, ...) (*GetMetricSeriesResponse, error)
- func (c *ClientWithResponses) GetSourceUploadWithResponse(ctx context.Context, uploadId SourceUploadId, reqEditors ...RequestEditorFn) (*GetSourceUploadResponse, error)
- func (c *ClientWithResponses) GetSourceWithResponse(ctx context.Context, sourceId SourceId, reqEditors ...RequestEditorFn) (*GetSourceResponse, error)
- func (c *ClientWithResponses) GetTaskWithResponse(ctx context.Context, appId AppId, taskId TaskId, reqEditors ...RequestEditorFn) (*GetTaskResponse, error)
- func (c *ClientWithResponses) GetUsageSummaryWithResponse(ctx context.Context, params *GetUsageSummaryParams, ...) (*GetUsageSummaryResponse, error)
- func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, appId AppId, versionNumber int32, ...) (*GetVersionResponse, error)
- func (c *ClientWithResponses) GetWorkerWithResponse(ctx context.Context, appId AppId, workerId WorkerId, ...) (*GetWorkerResponse, error)
- func (c *ClientWithResponses) ListAppEnvironmentVariablesWithResponse(ctx context.Context, appId AppId, params *ListAppEnvironmentVariablesParams, ...) (*ListAppEnvironmentVariablesResponse, error)
- func (c *ClientWithResponses) ListAppErrorsWithResponse(ctx context.Context, appId AppId, params *ListAppErrorsParams, ...) (*ListAppErrorsResponse, error)
- func (c *ClientWithResponses) ListAppEventsWithResponse(ctx context.Context, appId AppId, params *ListAppEventsParams, ...) (*ListAppEventsResponse, error)
- func (c *ClientWithResponses) ListAppSecretsWithResponse(ctx context.Context, appId AppId, params *ListAppSecretsParams, ...) (*ListAppSecretsResponse, error)
- func (c *ClientWithResponses) ListAppsWithResponse(ctx context.Context, params *ListAppsParams, reqEditors ...RequestEditorFn) (*ListAppsResponse, error)
- func (c *ClientWithResponses) ListBuildsWithResponse(ctx context.Context, appId AppId, params *ListBuildsParams, ...) (*ListBuildsResponse, error)
- func (c *ClientWithResponses) ListEndpointsWithResponse(ctx context.Context, appId AppId, params *ListEndpointsParams, ...) (*ListEndpointsResponse, error)
- func (c *ClientWithResponses) ListGpuTypesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListGpuTypesResponse, error)
- func (c *ClientWithResponses) ListInsightsQueriesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListInsightsQueriesResponse, error)
- func (c *ClientWithResponses) ListReservedCapacityWithResponse(ctx context.Context, params *ListReservedCapacityParams, ...) (*ListReservedCapacityResponse, error)
- func (c *ClientWithResponses) ListSecretsWithResponse(ctx context.Context, params *ListSecretsParams, reqEditors ...RequestEditorFn) (*ListSecretsResponse, error)
- func (c *ClientWithResponses) ListTasksWithResponse(ctx context.Context, appId AppId, params *ListTasksParams, ...) (*ListTasksResponse, error)
- func (c *ClientWithResponses) ListUsageEventsWithResponse(ctx context.Context, params *ListUsageEventsParams, ...) (*ListUsageEventsResponse, error)
- func (c *ClientWithResponses) ListVersionsWithResponse(ctx context.Context, appId AppId, params *ListVersionsParams, ...) (*ListVersionsResponse, error)
- func (c *ClientWithResponses) ListWorkersWithResponse(ctx context.Context, appId AppId, params *ListWorkersParams, ...) (*ListWorkersResponse, error)
- func (c *ClientWithResponses) ResumeAppWithResponse(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*ResumeAppResponse, error)
- func (c *ClientWithResponses) StartAsyncTaskWithBodyWithResponse(ctx context.Context, appId AppId, endpointPath EndpointPath, ...) (*StartAsyncTaskResponse, error)
- func (c *ClientWithResponses) StartAsyncTaskWithResponse(ctx context.Context, appId AppId, endpointPath EndpointPath, ...) (*StartAsyncTaskResponse, error)
- func (c *ClientWithResponses) StartSyncTaskWithBodyWithResponse(ctx context.Context, appId AppId, endpointPath EndpointPath, ...) (*StartSyncTaskResponse, error)
- func (c *ClientWithResponses) StartSyncTaskWithResponse(ctx context.Context, appId AppId, endpointPath EndpointPath, ...) (*StartSyncTaskResponse, error)
- func (c *ClientWithResponses) StopAppWithResponse(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*StopAppResponse, error)
- func (c *ClientWithResponses) TailLogEntriesWithResponse(ctx context.Context, queryId QueryId, params *TailLogEntriesParams, ...) (*TailLogEntriesResponse, error)
- func (c *ClientWithResponses) UnfavoriteAppWithResponse(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*UnfavoriteAppResponse, error)
- func (c *ClientWithResponses) UpdateAppEnvironmentVariableWithBodyWithResponse(ctx context.Context, appId AppId, variableName EnvironmentVariableName, ...) (*UpdateAppEnvironmentVariableResponse, error)
- func (c *ClientWithResponses) UpdateAppEnvironmentVariableWithResponse(ctx context.Context, appId AppId, variableName EnvironmentVariableName, ...) (*UpdateAppEnvironmentVariableResponse, error)
- func (c *ClientWithResponses) UpdateAppWithBodyWithResponse(ctx context.Context, appId AppId, contentType string, body io.Reader, ...) (*UpdateAppResponse, error)
- func (c *ClientWithResponses) UpdateAppWithResponse(ctx context.Context, appId AppId, body UpdateAppJSONRequestBody, ...) (*UpdateAppResponse, error)
- func (c *ClientWithResponses) UpdateSecretWithBodyWithResponse(ctx context.Context, secretName SecretName, contentType string, body io.Reader, ...) (*UpdateSecretResponse, error)
- func (c *ClientWithResponses) UpdateSecretWithResponse(ctx context.Context, secretName SecretName, body UpdateSecretJSONRequestBody, ...) (*UpdateSecretResponse, error)
- type ClientWithResponsesInterface
- type CodeSourceUpsert
- type CodebaseSource
- type CommitmentTerm
- type CompleteSourceUploadResponse
- func (r CompleteSourceUploadResponse) ContentType() string
- func (r CompleteSourceUploadResponse) GetApplicationproblemJSON400() *BadRequest
- func (r CompleteSourceUploadResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CompleteSourceUploadResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CompleteSourceUploadResponse) GetApplicationproblemJSON404() *NotFound
- func (r CompleteSourceUploadResponse) GetApplicationproblemJSON409() *Conflict
- func (r CompleteSourceUploadResponse) GetApplicationproblemJSON422() *ValidationError
- func (r CompleteSourceUploadResponse) GetApplicationproblemJSON502() *BadGateway
- func (r CompleteSourceUploadResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r CompleteSourceUploadResponse) GetBody() []byte
- func (r CompleteSourceUploadResponse) GetJSON200() *SourceUpload
- func (r CompleteSourceUploadResponse) Status() string
- func (r CompleteSourceUploadResponse) StatusCode() int
- type ComputeType
- type Conflict
- type ContainerSource
- type CreateAppJSONRequestBody
- type CreateAppResponse
- func (r CreateAppResponse) ContentType() string
- func (r CreateAppResponse) GetApplicationproblemJSON400() *BadRequest
- func (r CreateAppResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CreateAppResponse) GetApplicationproblemJSON402() *PaymentRequired
- func (r CreateAppResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CreateAppResponse) GetApplicationproblemJSON404() *NotFound
- func (r CreateAppResponse) GetApplicationproblemJSON409() *Conflict
- func (r CreateAppResponse) GetApplicationproblemJSON422() *ValidationError
- func (r CreateAppResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r CreateAppResponse) GetBody() []byte
- func (r CreateAppResponse) GetJSON201() *App
- func (r CreateAppResponse) Status() string
- func (r CreateAppResponse) StatusCode() int
- type CreateSecretJSONRequestBody
- type CreateSecretResponse
- func (r CreateSecretResponse) ContentType() string
- func (r CreateSecretResponse) GetApplicationproblemJSON400() *BadRequest
- func (r CreateSecretResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CreateSecretResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CreateSecretResponse) GetApplicationproblemJSON409() *Conflict
- func (r CreateSecretResponse) GetApplicationproblemJSON422() *ValidationError
- func (r CreateSecretResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r CreateSecretResponse) GetBody() []byte
- func (r CreateSecretResponse) GetJSON201() *Secret
- func (r CreateSecretResponse) Status() string
- func (r CreateSecretResponse) StatusCode() int
- type CreateSourceUploadJSONRequestBody
- type CreateSourceUploadResponse
- func (r CreateSourceUploadResponse) ContentType() string
- func (r CreateSourceUploadResponse) GetApplicationproblemJSON400() *BadRequest
- func (r CreateSourceUploadResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CreateSourceUploadResponse) GetApplicationproblemJSON403() *Forbidden
- func (r CreateSourceUploadResponse) GetApplicationproblemJSON409() *Conflict
- func (r CreateSourceUploadResponse) GetApplicationproblemJSON422() *ValidationError
- func (r CreateSourceUploadResponse) GetApplicationproblemJSON502() *BadGateway
- func (r CreateSourceUploadResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r CreateSourceUploadResponse) GetBody() []byte
- func (r CreateSourceUploadResponse) GetJSON201() *SourceUploadCreation
- func (r CreateSourceUploadResponse) Status() string
- func (r CreateSourceUploadResponse) StatusCode() int
- type Currency
- type Cursor
- type DeleteAppEnvironmentVariableResponse
- func (r DeleteAppEnvironmentVariableResponse) ContentType() string
- func (r DeleteAppEnvironmentVariableResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DeleteAppEnvironmentVariableResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DeleteAppEnvironmentVariableResponse) GetApplicationproblemJSON404() *NotFound
- func (r DeleteAppEnvironmentVariableResponse) GetApplicationproblemJSON409() *Conflict
- func (r DeleteAppEnvironmentVariableResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r DeleteAppEnvironmentVariableResponse) GetBody() []byte
- func (r DeleteAppEnvironmentVariableResponse) Status() string
- func (r DeleteAppEnvironmentVariableResponse) StatusCode() int
- type DeleteAppResponse
- func (r DeleteAppResponse) ContentType() string
- func (r DeleteAppResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DeleteAppResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DeleteAppResponse) GetApplicationproblemJSON404() *NotFound
- func (r DeleteAppResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r DeleteAppResponse) GetBody() []byte
- func (r DeleteAppResponse) GetJSON202() *App
- func (r DeleteAppResponse) Status() string
- func (r DeleteAppResponse) StatusCode() int
- type DeleteBuildResponse
- func (r DeleteBuildResponse) ContentType() string
- func (r DeleteBuildResponse) GetApplicationproblemJSON400() *BadRequest
- func (r DeleteBuildResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DeleteBuildResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DeleteBuildResponse) GetApplicationproblemJSON404() *NotFound
- func (r DeleteBuildResponse) GetApplicationproblemJSON409() *Conflict
- func (r DeleteBuildResponse) GetApplicationproblemJSON422() *ValidationError
- func (r DeleteBuildResponse) GetApplicationproblemJSON502() *BadGateway
- func (r DeleteBuildResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r DeleteBuildResponse) GetBody() []byte
- func (r DeleteBuildResponse) Status() string
- func (r DeleteBuildResponse) StatusCode() int
- type DeleteSecretResponse
- func (r DeleteSecretResponse) ContentType() string
- func (r DeleteSecretResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DeleteSecretResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DeleteSecretResponse) GetApplicationproblemJSON404() *NotFound
- func (r DeleteSecretResponse) GetApplicationproblemJSON409() *Conflict
- func (r DeleteSecretResponse) GetApplicationproblemJSON422() *ValidationError
- func (r DeleteSecretResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r DeleteSecretResponse) GetBody() []byte
- func (r DeleteSecretResponse) Status() string
- func (r DeleteSecretResponse) StatusCode() int
- type DeleteSourceUploadResponse
- func (r DeleteSourceUploadResponse) ContentType() string
- func (r DeleteSourceUploadResponse) GetApplicationproblemJSON400() *BadRequest
- func (r DeleteSourceUploadResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DeleteSourceUploadResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DeleteSourceUploadResponse) GetApplicationproblemJSON404() *NotFound
- func (r DeleteSourceUploadResponse) GetApplicationproblemJSON409() *Conflict
- func (r DeleteSourceUploadResponse) GetApplicationproblemJSON422() *ValidationError
- func (r DeleteSourceUploadResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r DeleteSourceUploadResponse) GetBody() []byte
- func (r DeleteSourceUploadResponse) Status() string
- func (r DeleteSourceUploadResponse) StatusCode() int
- type DeleteVersionResponse
- func (r DeleteVersionResponse) ContentType() string
- func (r DeleteVersionResponse) GetApplicationproblemJSON400() *BadRequest
- func (r DeleteVersionResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DeleteVersionResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DeleteVersionResponse) GetApplicationproblemJSON404() *NotFound
- func (r DeleteVersionResponse) GetApplicationproblemJSON409() *Conflict
- func (r DeleteVersionResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r DeleteVersionResponse) GetBody() []byte
- func (r DeleteVersionResponse) Status() string
- func (r DeleteVersionResponse) StatusCode() int
- type DeployRequest
- type DeployVersionJSONRequestBody
- type DeployVersionResponse
- func (r DeployVersionResponse) ContentType() string
- func (r DeployVersionResponse) GetApplicationproblemJSON400() *BadRequest
- func (r DeployVersionResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DeployVersionResponse) GetApplicationproblemJSON402() *PaymentRequired
- func (r DeployVersionResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DeployVersionResponse) GetApplicationproblemJSON404() *NotFound
- func (r DeployVersionResponse) GetApplicationproblemJSON409() *Conflict
- func (r DeployVersionResponse) GetApplicationproblemJSON422() *ValidationError
- func (r DeployVersionResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r DeployVersionResponse) GetBody() []byte
- func (r DeployVersionResponse) GetJSON202() *App
- func (r DeployVersionResponse) Status() string
- func (r DeployVersionResponse) StatusCode() int
- type DetachAppSecretResponse
- func (r DetachAppSecretResponse) ContentType() string
- func (r DetachAppSecretResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DetachAppSecretResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DetachAppSecretResponse) GetApplicationproblemJSON404() *NotFound
- func (r DetachAppSecretResponse) GetApplicationproblemJSON422() *ValidationError
- func (r DetachAppSecretResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r DetachAppSecretResponse) GetBody() []byte
- func (r DetachAppSecretResponse) Status() string
- func (r DetachAppSecretResponse) StatusCode() int
- type Endpoint
- type EndpointPath
- type EndpointRuntime
- type EndpointTrafficStatus
- type EnvironmentVariable
- type EnvironmentVariableName
- type EnvironmentVariableUpdate
- type FavoriteAppResponse
- func (r FavoriteAppResponse) ContentType() string
- func (r FavoriteAppResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r FavoriteAppResponse) GetApplicationproblemJSON403() *Forbidden
- func (r FavoriteAppResponse) GetApplicationproblemJSON404() *NotFound
- func (r FavoriteAppResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r FavoriteAppResponse) GetBody() []byte
- func (r FavoriteAppResponse) GetJSON200() *App
- func (r FavoriteAppResponse) Status() string
- func (r FavoriteAppResponse) StatusCode() int
- type Forbidden
- type GatewayTimeout
- type GetAppResponse
- func (r GetAppResponse) ContentType() string
- func (r GetAppResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetAppResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetAppResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetAppResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r GetAppResponse) GetBody() []byte
- func (r GetAppResponse) GetJSON200() *App
- func (r GetAppResponse) Status() string
- func (r GetAppResponse) StatusCode() int
- type GetAppSummaryResponse
- func (r GetAppSummaryResponse) ContentType() string
- func (r GetAppSummaryResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetAppSummaryResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetAppSummaryResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r GetAppSummaryResponse) GetBody() []byte
- func (r GetAppSummaryResponse) GetJSON200() *AppSummary
- func (r GetAppSummaryResponse) Status() string
- func (r GetAppSummaryResponse) StatusCode() int
- type GetBuildResponse
- func (r GetBuildResponse) ContentType() string
- func (r GetBuildResponse) GetApplicationproblemJSON400() *BadRequest
- func (r GetBuildResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetBuildResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetBuildResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetBuildResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r GetBuildResponse) GetBody() []byte
- func (r GetBuildResponse) GetJSON200() *Build
- func (r GetBuildResponse) Status() string
- func (r GetBuildResponse) StatusCode() int
- type GetEndpointResponse
- func (r GetEndpointResponse) ContentType() string
- func (r GetEndpointResponse) GetApplicationproblemJSON400() *BadRequest
- func (r GetEndpointResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetEndpointResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetEndpointResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetEndpointResponse) GetApplicationproblemJSON422() *ValidationError
- func (r GetEndpointResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r GetEndpointResponse) GetBody() []byte
- func (r GetEndpointResponse) GetJSON200() *Endpoint
- func (r GetEndpointResponse) Status() string
- func (r GetEndpointResponse) StatusCode() int
- type GetGpuTypeResponse
- func (r GetGpuTypeResponse) ContentType() string
- func (r GetGpuTypeResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetGpuTypeResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetGpuTypeResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetGpuTypeResponse) GetApplicationproblemJSON422() *ValidationError
- func (r GetGpuTypeResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r GetGpuTypeResponse) GetBody() []byte
- func (r GetGpuTypeResponse) GetJSON200() *GpuType
- func (r GetGpuTypeResponse) Status() string
- func (r GetGpuTypeResponse) StatusCode() int
- type GetLogEntriesParams
- type GetLogEntriesParamsWindow
- type GetLogEntriesResponse
- func (r GetLogEntriesResponse) ContentType() string
- func (r GetLogEntriesResponse) GetApplicationproblemJSON400() *BadRequest
- func (r GetLogEntriesResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetLogEntriesResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetLogEntriesResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetLogEntriesResponse) GetApplicationproblemJSON422() *ValidationError
- func (r GetLogEntriesResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetLogEntriesResponse) GetApplicationproblemJSON502() *BadGateway
- func (r GetLogEntriesResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r GetLogEntriesResponse) GetApplicationproblemJSON504() *GatewayTimeout
- func (r GetLogEntriesResponse) GetBody() []byte
- func (r GetLogEntriesResponse) GetJSON200() *LogEntryPage
- func (r GetLogEntriesResponse) Status() string
- func (r GetLogEntriesResponse) StatusCode() int
- type GetLogEntriesResponse429Headers
- type GetMetricSeriesParams
- type GetMetricSeriesParamsStatusClass
- type GetMetricSeriesParamsWindow
- type GetMetricSeriesResponse
- func (r GetMetricSeriesResponse) ContentType() string
- func (r GetMetricSeriesResponse) GetApplicationproblemJSON400() *BadRequest
- func (r GetMetricSeriesResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetMetricSeriesResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetMetricSeriesResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetMetricSeriesResponse) GetApplicationproblemJSON422() *ValidationError
- func (r GetMetricSeriesResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r GetMetricSeriesResponse) GetApplicationproblemJSON502() *BadGateway
- func (r GetMetricSeriesResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r GetMetricSeriesResponse) GetApplicationproblemJSON504() *GatewayTimeout
- func (r GetMetricSeriesResponse) GetBody() []byte
- func (r GetMetricSeriesResponse) GetJSON200() *MetricSeries
- func (r GetMetricSeriesResponse) Status() string
- func (r GetMetricSeriesResponse) StatusCode() int
- type GetMetricSeriesResponse429Headers
- type GetSourceResponse
- func (r GetSourceResponse) ContentType() string
- func (r GetSourceResponse) GetApplicationproblemJSON400() *BadRequest
- func (r GetSourceResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetSourceResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetSourceResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetSourceResponse) GetApplicationproblemJSON422() *ValidationError
- func (r GetSourceResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r GetSourceResponse) GetBody() []byte
- func (r GetSourceResponse) GetJSON200() *Source
- func (r GetSourceResponse) Status() string
- func (r GetSourceResponse) StatusCode() int
- type GetSourceUploadResponse
- func (r GetSourceUploadResponse) ContentType() string
- func (r GetSourceUploadResponse) GetApplicationproblemJSON400() *BadRequest
- func (r GetSourceUploadResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetSourceUploadResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetSourceUploadResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetSourceUploadResponse) GetApplicationproblemJSON422() *ValidationError
- func (r GetSourceUploadResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r GetSourceUploadResponse) GetBody() []byte
- func (r GetSourceUploadResponse) GetJSON200() *SourceUpload
- func (r GetSourceUploadResponse) Status() string
- func (r GetSourceUploadResponse) StatusCode() int
- type GetTaskResponse
- func (r GetTaskResponse) ContentType() string
- func (r GetTaskResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetTaskResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetTaskResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetTaskResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r GetTaskResponse) GetBody() []byte
- func (r GetTaskResponse) GetJSON200() *Task
- func (r GetTaskResponse) Status() string
- func (r GetTaskResponse) StatusCode() int
- type GetUsageSummaryParams
- type GetUsageSummaryResponse
- func (r GetUsageSummaryResponse) ContentType() string
- func (r GetUsageSummaryResponse) GetApplicationproblemJSON400() *BadRequest
- func (r GetUsageSummaryResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetUsageSummaryResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetUsageSummaryResponse) GetApplicationproblemJSON422() *ValidationError
- func (r GetUsageSummaryResponse) GetApplicationproblemJSON500() *InternalServerError
- func (r GetUsageSummaryResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r GetUsageSummaryResponse) GetBody() []byte
- func (r GetUsageSummaryResponse) GetJSON200() *UsageSummary
- func (r GetUsageSummaryResponse) Status() string
- func (r GetUsageSummaryResponse) StatusCode() int
- type GetVersionResponse
- func (r GetVersionResponse) ContentType() string
- func (r GetVersionResponse) GetApplicationproblemJSON400() *BadRequest
- func (r GetVersionResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetVersionResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetVersionResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetVersionResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r GetVersionResponse) GetBody() []byte
- func (r GetVersionResponse) GetJSON200() *Version
- func (r GetVersionResponse) Status() string
- func (r GetVersionResponse) StatusCode() int
- type GetWorkerResponse
- func (r GetWorkerResponse) ContentType() string
- func (r GetWorkerResponse) GetApplicationproblemJSON400() *BadRequest
- func (r GetWorkerResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetWorkerResponse) GetApplicationproblemJSON403() *Forbidden
- func (r GetWorkerResponse) GetApplicationproblemJSON404() *NotFound
- func (r GetWorkerResponse) GetApplicationproblemJSON422() *ValidationError
- func (r GetWorkerResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r GetWorkerResponse) GetBody() []byte
- func (r GetWorkerResponse) GetJSON200() *Worker
- func (r GetWorkerResponse) Status() string
- func (r GetWorkerResponse) StatusCode() int
- type GpuAvailability
- type GpuPricing
- type GpuType
- type GpuTypeId
- type GpuTypeIdOrEmpty
- type GpuTypeList
- type HttpRequestDoer
- type InternalServerError
- type Limit
- type ListAppEnvironmentVariablesParams
- type ListAppEnvironmentVariablesResponse
- func (r ListAppEnvironmentVariablesResponse) ContentType() string
- func (r ListAppEnvironmentVariablesResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListAppEnvironmentVariablesResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListAppEnvironmentVariablesResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListAppEnvironmentVariablesResponse) GetApplicationproblemJSON404() *NotFound
- func (r ListAppEnvironmentVariablesResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r ListAppEnvironmentVariablesResponse) GetBody() []byte
- func (r ListAppEnvironmentVariablesResponse) GetJSON200() ...
- func (r ListAppEnvironmentVariablesResponse) Status() string
- func (r ListAppEnvironmentVariablesResponse) StatusCode() int
- type ListAppErrorsParams
- type ListAppErrorsParamsStatusClass
- type ListAppErrorsParamsWindow
- type ListAppErrorsResponse
- func (r ListAppErrorsResponse) ContentType() string
- func (r ListAppErrorsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListAppErrorsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListAppErrorsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListAppErrorsResponse) GetApplicationproblemJSON404() *NotFound
- func (r ListAppErrorsResponse) GetApplicationproblemJSON422() *ValidationError
- func (r ListAppErrorsResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r ListAppErrorsResponse) GetApplicationproblemJSON502() *BadGateway
- func (r ListAppErrorsResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r ListAppErrorsResponse) GetApplicationproblemJSON504() *GatewayTimeout
- func (r ListAppErrorsResponse) GetBody() []byte
- func (r ListAppErrorsResponse) GetJSON200() ...
- func (r ListAppErrorsResponse) Status() string
- func (r ListAppErrorsResponse) StatusCode() int
- type ListAppErrorsResponse429Headers
- type ListAppEventsParams
- type ListAppEventsResponse
- func (r ListAppEventsResponse) ContentType() string
- func (r ListAppEventsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListAppEventsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListAppEventsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListAppEventsResponse) GetApplicationproblemJSON404() *NotFound
- func (r ListAppEventsResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r ListAppEventsResponse) GetBody() []byte
- func (r ListAppEventsResponse) GetJSON200() ...
- func (r ListAppEventsResponse) Status() string
- func (r ListAppEventsResponse) StatusCode() int
- type ListAppSecretsParams
- type ListAppSecretsResponse
- func (r ListAppSecretsResponse) ContentType() string
- func (r ListAppSecretsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListAppSecretsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListAppSecretsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListAppSecretsResponse) GetApplicationproblemJSON404() *NotFound
- func (r ListAppSecretsResponse) GetApplicationproblemJSON422() *ValidationError
- func (r ListAppSecretsResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r ListAppSecretsResponse) GetBody() []byte
- func (r ListAppSecretsResponse) GetJSON200() ...
- func (r ListAppSecretsResponse) Status() string
- func (r ListAppSecretsResponse) StatusCode() int
- type ListAppsParams
- type ListAppsResponse
- func (r ListAppsResponse) ContentType() string
- func (r ListAppsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListAppsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListAppsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListAppsResponse) GetApplicationproblemJSON422() *ValidationError
- func (r ListAppsResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r ListAppsResponse) GetBody() []byte
- func (r ListAppsResponse) GetJSON200() ...
- func (r ListAppsResponse) Status() string
- func (r ListAppsResponse) StatusCode() int
- type ListBuildsParams
- type ListBuildsResponse
- func (r ListBuildsResponse) ContentType() string
- func (r ListBuildsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListBuildsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListBuildsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListBuildsResponse) GetApplicationproblemJSON404() *NotFound
- func (r ListBuildsResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r ListBuildsResponse) GetBody() []byte
- func (r ListBuildsResponse) GetJSON200() ...
- func (r ListBuildsResponse) Status() string
- func (r ListBuildsResponse) StatusCode() int
- type ListEndpointsParams
- type ListEndpointsResponse
- func (r ListEndpointsResponse) ContentType() string
- func (r ListEndpointsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListEndpointsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListEndpointsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListEndpointsResponse) GetApplicationproblemJSON404() *NotFound
- func (r ListEndpointsResponse) GetApplicationproblemJSON422() *ValidationError
- func (r ListEndpointsResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r ListEndpointsResponse) GetBody() []byte
- func (r ListEndpointsResponse) GetJSON200() ...
- func (r ListEndpointsResponse) Status() string
- func (r ListEndpointsResponse) StatusCode() int
- type ListGpuTypesResponse
- func (r ListGpuTypesResponse) ContentType() string
- func (r ListGpuTypesResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListGpuTypesResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListGpuTypesResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r ListGpuTypesResponse) GetBody() []byte
- func (r ListGpuTypesResponse) GetJSON200() *GpuTypeList
- func (r ListGpuTypesResponse) Status() string
- func (r ListGpuTypesResponse) StatusCode() int
- type ListInsightsQueriesResponse
- func (r ListInsightsQueriesResponse) ContentType() string
- func (r ListInsightsQueriesResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListInsightsQueriesResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListInsightsQueriesResponse) GetApplicationproblemJSON502() *BadGateway
- func (r ListInsightsQueriesResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r ListInsightsQueriesResponse) GetApplicationproblemJSON504() *GatewayTimeout
- func (r ListInsightsQueriesResponse) GetBody() []byte
- func (r ListInsightsQueriesResponse) GetJSON200() *QueryCatalog
- func (r ListInsightsQueriesResponse) Status() string
- func (r ListInsightsQueriesResponse) StatusCode() int
- type ListReservedCapacityParams
- type ListReservedCapacityResponse
- func (r ListReservedCapacityResponse) ContentType() string
- func (r ListReservedCapacityResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListReservedCapacityResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListReservedCapacityResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListReservedCapacityResponse) GetApplicationproblemJSON422() *ValidationError
- func (r ListReservedCapacityResponse) GetApplicationproblemJSON500() *InternalServerError
- func (r ListReservedCapacityResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r ListReservedCapacityResponse) GetBody() []byte
- func (r ListReservedCapacityResponse) GetJSON200() ...
- func (r ListReservedCapacityResponse) Status() string
- func (r ListReservedCapacityResponse) StatusCode() int
- type ListSecretsParams
- type ListSecretsResponse
- func (r ListSecretsResponse) ContentType() string
- func (r ListSecretsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListSecretsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListSecretsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListSecretsResponse) GetApplicationproblemJSON422() *ValidationError
- func (r ListSecretsResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r ListSecretsResponse) GetBody() []byte
- func (r ListSecretsResponse) GetJSON200() ...
- func (r ListSecretsResponse) Status() string
- func (r ListSecretsResponse) StatusCode() int
- type ListSummary
- type ListTasksParams
- type ListTasksResponse
- func (r ListTasksResponse) ContentType() string
- func (r ListTasksResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListTasksResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListTasksResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListTasksResponse) GetApplicationproblemJSON404() *NotFound
- func (r ListTasksResponse) GetApplicationproblemJSON422() *ValidationError
- func (r ListTasksResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r ListTasksResponse) GetBody() []byte
- func (r ListTasksResponse) GetJSON200() ...
- func (r ListTasksResponse) Status() string
- func (r ListTasksResponse) StatusCode() int
- type ListUsageEventsParams
- type ListUsageEventsResponse
- func (r ListUsageEventsResponse) ContentType() string
- func (r ListUsageEventsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListUsageEventsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListUsageEventsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListUsageEventsResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r ListUsageEventsResponse) GetBody() []byte
- func (r ListUsageEventsResponse) GetJSON200() ...
- func (r ListUsageEventsResponse) Status() string
- func (r ListUsageEventsResponse) StatusCode() int
- type ListVersionsParams
- type ListVersionsResponse
- func (r ListVersionsResponse) ContentType() string
- func (r ListVersionsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListVersionsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListVersionsResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListVersionsResponse) GetApplicationproblemJSON404() *NotFound
- func (r ListVersionsResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r ListVersionsResponse) GetBody() []byte
- func (r ListVersionsResponse) GetJSON200() ...
- func (r ListVersionsResponse) Status() string
- func (r ListVersionsResponse) StatusCode() int
- type ListWorkersParams
- type ListWorkersResponse
- func (r ListWorkersResponse) ContentType() string
- func (r ListWorkersResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListWorkersResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListWorkersResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ListWorkersResponse) GetApplicationproblemJSON404() *NotFound
- func (r ListWorkersResponse) GetApplicationproblemJSON422() *ValidationError
- func (r ListWorkersResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r ListWorkersResponse) GetBody() []byte
- func (r ListWorkersResponse) GetJSON200() ...
- func (r ListWorkersResponse) Status() string
- func (r ListWorkersResponse) StatusCode() int
- type LogEntry
- type LogEntryPage
- type LogSort
- type MetricSeries
- type MetricSeriesEntry
- type MetricWindow
- type MetricWindowRange
- type MoneyAmount
- type NotFound
- type Page
- type PaymentRequired
- type PinnedTo
- type ProblemDetails
- type ProblemError
- type QueryCatalog
- type QueryId
- type RequestEditorFn
- type RequiredLogDeployment
- type ReservedCapacity
- type ResumeAppResponse
- func (r ResumeAppResponse) ContentType() string
- func (r ResumeAppResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ResumeAppResponse) GetApplicationproblemJSON402() *PaymentRequired
- func (r ResumeAppResponse) GetApplicationproblemJSON403() *Forbidden
- func (r ResumeAppResponse) GetApplicationproblemJSON404() *NotFound
- func (r ResumeAppResponse) GetApplicationproblemJSON409() *Conflict
- func (r ResumeAppResponse) GetApplicationproblemJSON422() *ValidationError
- func (r ResumeAppResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r ResumeAppResponse) GetBody() []byte
- func (r ResumeAppResponse) GetJSON202() *App
- func (r ResumeAppResponse) Status() string
- func (r ResumeAppResponse) StatusCode() int
- type Secret
- type SecretAttach
- type SecretAttachment
- type SecretCreate
- type SecretName
- type SecretType
- type SecretUpdate
- type SelectorDeployment
- type SelectorEndpoint
- type SelectorRegion
- type SelectorStatusClass
- type SeriesAppId
- type SeriesEndpointId
- type ServiceUnavailable
- type Source
- type SourceId
- type SourceUpload
- type SourceUploadCreate
- type SourceUploadCreation
- type SourceUploadId
- type SourceUploadSinglePutTransfer
- type SourceUploadSinglePutTransferMethod
- type SourceUploadSinglePutTransferMode
- type SourceUploadState
- type SourceUploadTransfer
- func (t SourceUploadTransfer) AsSourceUploadSinglePutTransfer() (SourceUploadSinglePutTransfer, error)
- func (t SourceUploadTransfer) Discriminator() (string, error)
- func (t *SourceUploadTransfer) FromSourceUploadSinglePutTransfer(v SourceUploadSinglePutTransfer) error
- func (t SourceUploadTransfer) MarshalJSON() ([]byte, error)
- func (t *SourceUploadTransfer) MergeSourceUploadSinglePutTransfer(v SourceUploadSinglePutTransfer) error
- func (t *SourceUploadTransfer) UnmarshalJSON(b []byte) error
- func (t SourceUploadTransfer) ValueByDiscriminator() (interface{}, error)
- type StartAsyncTaskJSONRequestBody
- type StartAsyncTaskResponse
- func (r StartAsyncTaskResponse) ContentType() string
- func (r StartAsyncTaskResponse) GetApplicationproblemJSON400() *BadRequest
- func (r StartAsyncTaskResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r StartAsyncTaskResponse) GetApplicationproblemJSON403() *Forbidden
- func (r StartAsyncTaskResponse) GetApplicationproblemJSON404() *NotFound
- func (r StartAsyncTaskResponse) GetApplicationproblemJSON409() *Conflict
- func (r StartAsyncTaskResponse) GetApplicationproblemJSON422() *ValidationError
- func (r StartAsyncTaskResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r StartAsyncTaskResponse) GetBody() []byte
- func (r StartAsyncTaskResponse) GetJSON202() *TaskAccepted
- func (r StartAsyncTaskResponse) Status() string
- func (r StartAsyncTaskResponse) StatusCode() int
- type StartSyncTaskJSONRequestBody
- type StartSyncTaskResponse
- func (r StartSyncTaskResponse) ContentType() string
- func (r StartSyncTaskResponse) GetApplicationproblemJSON400() *BadRequest
- func (r StartSyncTaskResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r StartSyncTaskResponse) GetApplicationproblemJSON403() *Forbidden
- func (r StartSyncTaskResponse) GetApplicationproblemJSON404() *NotFound
- func (r StartSyncTaskResponse) GetApplicationproblemJSON409() *Conflict
- func (r StartSyncTaskResponse) GetApplicationproblemJSON422() *ValidationError
- func (r StartSyncTaskResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r StartSyncTaskResponse) GetBody() []byte
- func (r StartSyncTaskResponse) GetJSON200() *Task
- func (r StartSyncTaskResponse) GetJSON202() *TaskAccepted
- func (r StartSyncTaskResponse) Status() string
- func (r StartSyncTaskResponse) StatusCode() int
- type StopAppResponse
- func (r StopAppResponse) ContentType() string
- func (r StopAppResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r StopAppResponse) GetApplicationproblemJSON403() *Forbidden
- func (r StopAppResponse) GetApplicationproblemJSON404() *NotFound
- func (r StopAppResponse) GetApplicationproblemJSON409() *Conflict
- func (r StopAppResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r StopAppResponse) GetBody() []byte
- func (r StopAppResponse) GetJSON202() *App
- func (r StopAppResponse) Status() string
- func (r StopAppResponse) StatusCode() int
- type TailLogEntriesParams
- type TailLogEntriesResponse
- func (r TailLogEntriesResponse) ContentType() string
- func (r TailLogEntriesResponse) GetApplicationproblemJSON400() *BadRequest
- func (r TailLogEntriesResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r TailLogEntriesResponse) GetApplicationproblemJSON403() *Forbidden
- func (r TailLogEntriesResponse) GetApplicationproblemJSON404() *NotFound
- func (r TailLogEntriesResponse) GetApplicationproblemJSON422() *ValidationError
- func (r TailLogEntriesResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r TailLogEntriesResponse) GetApplicationproblemJSON500() *InternalServerError
- func (r TailLogEntriesResponse) GetApplicationproblemJSON502() *BadGateway
- func (r TailLogEntriesResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r TailLogEntriesResponse) GetApplicationproblemJSON504() *GatewayTimeout
- func (r TailLogEntriesResponse) GetBody() []byte
- func (r TailLogEntriesResponse) Status() string
- func (r TailLogEntriesResponse) StatusCode() int
- type TailLogEntriesResponse429Headers
- type Task
- type TaskAccepted
- type TaskId
- type TaskInvocation
- type TaskStatus
- type TooManyRequests
- type TriggeredBy
- type TriggeredByKind
- type Unauthorized
- type UnfavoriteAppResponse
- func (r UnfavoriteAppResponse) ContentType() string
- func (r UnfavoriteAppResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r UnfavoriteAppResponse) GetApplicationproblemJSON403() *Forbidden
- func (r UnfavoriteAppResponse) GetApplicationproblemJSON404() *NotFound
- func (r UnfavoriteAppResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r UnfavoriteAppResponse) GetBody() []byte
- func (r UnfavoriteAppResponse) GetJSON200() *App
- func (r UnfavoriteAppResponse) Status() string
- func (r UnfavoriteAppResponse) StatusCode() int
- type UpdateAppEnvironmentVariableJSONRequestBody
- type UpdateAppEnvironmentVariableResponse
- func (r UpdateAppEnvironmentVariableResponse) ContentType() string
- func (r UpdateAppEnvironmentVariableResponse) GetApplicationproblemJSON400() *BadRequest
- func (r UpdateAppEnvironmentVariableResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r UpdateAppEnvironmentVariableResponse) GetApplicationproblemJSON403() *Forbidden
- func (r UpdateAppEnvironmentVariableResponse) GetApplicationproblemJSON404() *NotFound
- func (r UpdateAppEnvironmentVariableResponse) GetApplicationproblemJSON409() *Conflict
- func (r UpdateAppEnvironmentVariableResponse) GetApplicationproblemJSON422() *ValidationError
- func (r UpdateAppEnvironmentVariableResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r UpdateAppEnvironmentVariableResponse) GetBody() []byte
- func (r UpdateAppEnvironmentVariableResponse) GetJSON200() *EnvironmentVariable
- func (r UpdateAppEnvironmentVariableResponse) Status() string
- func (r UpdateAppEnvironmentVariableResponse) StatusCode() int
- type UpdateAppJSONRequestBody
- type UpdateAppResponse
- func (r UpdateAppResponse) ContentType() string
- func (r UpdateAppResponse) GetApplicationproblemJSON400() *BadRequest
- func (r UpdateAppResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r UpdateAppResponse) GetApplicationproblemJSON402() *PaymentRequired
- func (r UpdateAppResponse) GetApplicationproblemJSON403() *Forbidden
- func (r UpdateAppResponse) GetApplicationproblemJSON404() *NotFound
- func (r UpdateAppResponse) GetApplicationproblemJSON409() *Conflict
- func (r UpdateAppResponse) GetApplicationproblemJSON422() *ValidationError
- func (r UpdateAppResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r UpdateAppResponse) GetBody() []byte
- func (r UpdateAppResponse) GetJSON200() *App
- func (r UpdateAppResponse) Status() string
- func (r UpdateAppResponse) StatusCode() int
- type UpdateSecretJSONRequestBody
- type UpdateSecretResponse
- func (r UpdateSecretResponse) ContentType() string
- func (r UpdateSecretResponse) GetApplicationproblemJSON400() *BadRequest
- func (r UpdateSecretResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r UpdateSecretResponse) GetApplicationproblemJSON403() *Forbidden
- func (r UpdateSecretResponse) GetApplicationproblemJSON404() *NotFound
- func (r UpdateSecretResponse) GetApplicationproblemJSON422() *ValidationError
- func (r UpdateSecretResponse) GetApplicationproblemJSON503() *ServiceUnavailable
- func (r UpdateSecretResponse) GetBody() []byte
- func (r UpdateSecretResponse) GetJSON200() *Secret
- func (r UpdateSecretResponse) Status() string
- func (r UpdateSecretResponse) StatusCode() int
- type UsageBucket
- type UsageCoverage
- type UsageDimension
- type UsageEvent
- type UsageRegion
- type UsageSummary
- type ValidationError
- type Version
- type VersionChanges
- type VersionConfigChange
- type VersionKeySetDiff
- type Worker
- type WorkerConfig
- type WorkerConfigCreate
- type WorkerConfigPatch
- type WorkerId
- type WorkerStateFilter
- type WorkerStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAttachAppSecretRequest ¶
func NewAttachAppSecretRequest(server string, appId AppId, body AttachAppSecretJSONRequestBody) (*http.Request, error)
NewAttachAppSecretRequest calls the generic AttachAppSecret builder with application/json body
func NewAttachAppSecretRequestWithBody ¶
func NewAttachAppSecretRequestWithBody(server string, appId AppId, contentType string, body io.Reader) (*http.Request, error)
NewAttachAppSecretRequestWithBody constructs an http.Request for the AttachAppSecret method, with any body, and a specified content type
func NewCompleteSourceUploadRequest ¶
func NewCompleteSourceUploadRequest(server string, uploadId SourceUploadId) (*http.Request, error)
NewCompleteSourceUploadRequest constructs an http.Request for the CompleteSourceUpload method
func NewCreateAppRequest ¶
func NewCreateAppRequest(server string, body CreateAppJSONRequestBody) (*http.Request, error)
NewCreateAppRequest calls the generic CreateApp builder with application/json body
func NewCreateAppRequestWithBody ¶
func NewCreateAppRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateAppRequestWithBody constructs an http.Request for the CreateApp method, with any body, and a specified content type
func NewCreateSecretRequest ¶
func NewCreateSecretRequest(server string, body CreateSecretJSONRequestBody) (*http.Request, error)
NewCreateSecretRequest calls the generic CreateSecret builder with application/json body
func NewCreateSecretRequestWithBody ¶
func NewCreateSecretRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateSecretRequestWithBody constructs an http.Request for the CreateSecret method, with any body, and a specified content type
func NewCreateSourceUploadRequest ¶
func NewCreateSourceUploadRequest(server string, body CreateSourceUploadJSONRequestBody) (*http.Request, error)
NewCreateSourceUploadRequest calls the generic CreateSourceUpload builder with application/json body
func NewCreateSourceUploadRequestWithBody ¶
func NewCreateSourceUploadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateSourceUploadRequestWithBody constructs an http.Request for the CreateSourceUpload method, with any body, and a specified content type
func NewDeleteAppEnvironmentVariableRequest ¶
func NewDeleteAppEnvironmentVariableRequest(server string, appId AppId, variableName EnvironmentVariableName) (*http.Request, error)
NewDeleteAppEnvironmentVariableRequest constructs an http.Request for the DeleteAppEnvironmentVariable method
func NewDeleteAppRequest ¶
NewDeleteAppRequest constructs an http.Request for the DeleteApp method
func NewDeleteBuildRequest ¶
func NewDeleteBuildRequest(server string, appId AppId, buildId openapi_types.UUID) (*http.Request, error)
NewDeleteBuildRequest constructs an http.Request for the DeleteBuild method
func NewDeleteSecretRequest ¶
func NewDeleteSecretRequest(server string, secretName SecretName) (*http.Request, error)
NewDeleteSecretRequest constructs an http.Request for the DeleteSecret method
func NewDeleteSourceUploadRequest ¶
func NewDeleteSourceUploadRequest(server string, uploadId SourceUploadId) (*http.Request, error)
NewDeleteSourceUploadRequest constructs an http.Request for the DeleteSourceUpload method
func NewDeleteVersionRequest ¶
func NewDeleteVersionRequest(server string, appId AppId, versionNumber int32) (*http.Request, error)
NewDeleteVersionRequest constructs an http.Request for the DeleteVersion method
func NewDeployVersionRequest ¶
func NewDeployVersionRequest(server string, appId AppId, body DeployVersionJSONRequestBody) (*http.Request, error)
NewDeployVersionRequest calls the generic DeployVersion builder with application/json body
func NewDeployVersionRequestWithBody ¶
func NewDeployVersionRequestWithBody(server string, appId AppId, contentType string, body io.Reader) (*http.Request, error)
NewDeployVersionRequestWithBody constructs an http.Request for the DeployVersion method, with any body, and a specified content type
func NewDetachAppSecretRequest ¶
func NewDetachAppSecretRequest(server string, appId AppId, secretName SecretName) (*http.Request, error)
NewDetachAppSecretRequest constructs an http.Request for the DetachAppSecret method
func NewFavoriteAppRequest ¶
NewFavoriteAppRequest constructs an http.Request for the FavoriteApp method
func NewGetAppRequest ¶
NewGetAppRequest constructs an http.Request for the GetApp method
func NewGetAppSummaryRequest ¶
NewGetAppSummaryRequest constructs an http.Request for the GetAppSummary method
func NewGetBuildRequest ¶
func NewGetBuildRequest(server string, appId AppId, buildId openapi_types.UUID) (*http.Request, error)
NewGetBuildRequest constructs an http.Request for the GetBuild method
func NewGetEndpointRequest ¶
func NewGetEndpointRequest(server string, appId AppId, endpointId openapi_types.UUID) (*http.Request, error)
NewGetEndpointRequest constructs an http.Request for the GetEndpoint method
func NewGetGpuTypeRequest ¶
NewGetGpuTypeRequest constructs an http.Request for the GetGpuType method
func NewGetLogEntriesRequest ¶
func NewGetLogEntriesRequest(server string, queryId QueryId, params *GetLogEntriesParams) (*http.Request, error)
NewGetLogEntriesRequest constructs an http.Request for the GetLogEntries method
func NewGetMetricSeriesRequest ¶
func NewGetMetricSeriesRequest(server string, queryId QueryId, params *GetMetricSeriesParams) (*http.Request, error)
NewGetMetricSeriesRequest constructs an http.Request for the GetMetricSeries method
func NewGetSourceRequest ¶
NewGetSourceRequest constructs an http.Request for the GetSource method
func NewGetSourceUploadRequest ¶
func NewGetSourceUploadRequest(server string, uploadId SourceUploadId) (*http.Request, error)
NewGetSourceUploadRequest constructs an http.Request for the GetSourceUpload method
func NewGetTaskRequest ¶
NewGetTaskRequest constructs an http.Request for the GetTask method
func NewGetUsageSummaryRequest ¶
func NewGetUsageSummaryRequest(server string, params *GetUsageSummaryParams) (*http.Request, error)
NewGetUsageSummaryRequest constructs an http.Request for the GetUsageSummary method
func NewGetVersionRequest ¶
NewGetVersionRequest constructs an http.Request for the GetVersion method
func NewGetWorkerRequest ¶
NewGetWorkerRequest constructs an http.Request for the GetWorker method
func NewListAppEnvironmentVariablesRequest ¶
func NewListAppEnvironmentVariablesRequest(server string, appId AppId, params *ListAppEnvironmentVariablesParams) (*http.Request, error)
NewListAppEnvironmentVariablesRequest constructs an http.Request for the ListAppEnvironmentVariables method
func NewListAppErrorsRequest ¶
func NewListAppErrorsRequest(server string, appId AppId, params *ListAppErrorsParams) (*http.Request, error)
NewListAppErrorsRequest constructs an http.Request for the ListAppErrors method
func NewListAppEventsRequest ¶
func NewListAppEventsRequest(server string, appId AppId, params *ListAppEventsParams) (*http.Request, error)
NewListAppEventsRequest constructs an http.Request for the ListAppEvents method
func NewListAppSecretsRequest ¶
func NewListAppSecretsRequest(server string, appId AppId, params *ListAppSecretsParams) (*http.Request, error)
NewListAppSecretsRequest constructs an http.Request for the ListAppSecrets method
func NewListAppsRequest ¶
func NewListAppsRequest(server string, params *ListAppsParams) (*http.Request, error)
NewListAppsRequest constructs an http.Request for the ListApps method
func NewListBuildsRequest ¶
func NewListBuildsRequest(server string, appId AppId, params *ListBuildsParams) (*http.Request, error)
NewListBuildsRequest constructs an http.Request for the ListBuilds method
func NewListEndpointsRequest ¶
func NewListEndpointsRequest(server string, appId AppId, params *ListEndpointsParams) (*http.Request, error)
NewListEndpointsRequest constructs an http.Request for the ListEndpoints method
func NewListGpuTypesRequest ¶
NewListGpuTypesRequest constructs an http.Request for the ListGpuTypes method
func NewListInsightsQueriesRequest ¶
NewListInsightsQueriesRequest constructs an http.Request for the ListInsightsQueries method
func NewListReservedCapacityRequest ¶
func NewListReservedCapacityRequest(server string, params *ListReservedCapacityParams) (*http.Request, error)
NewListReservedCapacityRequest constructs an http.Request for the ListReservedCapacity method
func NewListSecretsRequest ¶
func NewListSecretsRequest(server string, params *ListSecretsParams) (*http.Request, error)
NewListSecretsRequest constructs an http.Request for the ListSecrets method
func NewListTasksRequest ¶
func NewListTasksRequest(server string, appId AppId, params *ListTasksParams) (*http.Request, error)
NewListTasksRequest constructs an http.Request for the ListTasks method
func NewListUsageEventsRequest ¶
func NewListUsageEventsRequest(server string, params *ListUsageEventsParams) (*http.Request, error)
NewListUsageEventsRequest constructs an http.Request for the ListUsageEvents method
func NewListVersionsRequest ¶
func NewListVersionsRequest(server string, appId AppId, params *ListVersionsParams) (*http.Request, error)
NewListVersionsRequest constructs an http.Request for the ListVersions method
func NewListWorkersRequest ¶
func NewListWorkersRequest(server string, appId AppId, params *ListWorkersParams) (*http.Request, error)
NewListWorkersRequest constructs an http.Request for the ListWorkers method
func NewResumeAppRequest ¶
NewResumeAppRequest constructs an http.Request for the ResumeApp method
func NewStartAsyncTaskRequest ¶
func NewStartAsyncTaskRequest(server string, appId AppId, endpointPath EndpointPath, body StartAsyncTaskJSONRequestBody) (*http.Request, error)
NewStartAsyncTaskRequest calls the generic StartAsyncTask builder with application/json body
func NewStartAsyncTaskRequestWithBody ¶
func NewStartAsyncTaskRequestWithBody(server string, appId AppId, endpointPath EndpointPath, contentType string, body io.Reader) (*http.Request, error)
NewStartAsyncTaskRequestWithBody constructs an http.Request for the StartAsyncTask method, with any body, and a specified content type
func NewStartSyncTaskRequest ¶
func NewStartSyncTaskRequest(server string, appId AppId, endpointPath EndpointPath, body StartSyncTaskJSONRequestBody) (*http.Request, error)
NewStartSyncTaskRequest calls the generic StartSyncTask builder with application/json body
func NewStartSyncTaskRequestWithBody ¶
func NewStartSyncTaskRequestWithBody(server string, appId AppId, endpointPath EndpointPath, contentType string, body io.Reader) (*http.Request, error)
NewStartSyncTaskRequestWithBody constructs an http.Request for the StartSyncTask method, with any body, and a specified content type
func NewStopAppRequest ¶
NewStopAppRequest constructs an http.Request for the StopApp method
func NewTailLogEntriesRequest ¶
func NewTailLogEntriesRequest(server string, queryId QueryId, params *TailLogEntriesParams) (*http.Request, error)
NewTailLogEntriesRequest constructs an http.Request for the TailLogEntries method
func NewUnfavoriteAppRequest ¶
NewUnfavoriteAppRequest constructs an http.Request for the UnfavoriteApp method
func NewUpdateAppEnvironmentVariableRequest ¶
func NewUpdateAppEnvironmentVariableRequest(server string, appId AppId, variableName EnvironmentVariableName, body UpdateAppEnvironmentVariableJSONRequestBody) (*http.Request, error)
NewUpdateAppEnvironmentVariableRequest calls the generic UpdateAppEnvironmentVariable builder with application/json body
func NewUpdateAppEnvironmentVariableRequestWithBody ¶
func NewUpdateAppEnvironmentVariableRequestWithBody(server string, appId AppId, variableName EnvironmentVariableName, contentType string, body io.Reader) (*http.Request, error)
NewUpdateAppEnvironmentVariableRequestWithBody constructs an http.Request for the UpdateAppEnvironmentVariable method, with any body, and a specified content type
func NewUpdateAppRequest ¶
func NewUpdateAppRequest(server string, appId AppId, body UpdateAppJSONRequestBody) (*http.Request, error)
NewUpdateAppRequest calls the generic UpdateApp builder with application/json body
func NewUpdateAppRequestWithBody ¶
func NewUpdateAppRequestWithBody(server string, appId AppId, contentType string, body io.Reader) (*http.Request, error)
NewUpdateAppRequestWithBody constructs an http.Request for the UpdateApp method, with any body, and a specified content type
func NewUpdateSecretRequest ¶
func NewUpdateSecretRequest(server string, secretName SecretName, body UpdateSecretJSONRequestBody) (*http.Request, error)
NewUpdateSecretRequest calls the generic UpdateSecret builder with application/json body
func NewUpdateSecretRequestWithBody ¶
func NewUpdateSecretRequestWithBody(server string, secretName SecretName, contentType string, body io.Reader) (*http.Request, error)
NewUpdateSecretRequestWithBody constructs an http.Request for the UpdateSecret method, with any body, and a specified content type
Types ¶
type App ¶
type App struct {
// ActiveVersionId Current deployed version; null until the first version is successfully deployed.
ActiveVersionId *openapi_types.UUID `json:"activeVersionId,omitempty"`
// AppId Immutable app identifier. Unique among the authenticated organization's live apps: it cannot be changed after creation, and it becomes available again once the app it named reaches `deleted`.
AppId AppId `json:"appId"`
// AppName Mutable display name. Must start and end with a non-whitespace character: it is what the console renders and what `sort=name` orders on, and it is not required to be unique. Interior spaces are allowed ("Sentiment Analysis"); leading or trailing whitespace is rejected, because a padded name is indistinguishable from its trimmed form in the console and breaks a name-confirm delete.
AppName AppName `json:"appName"`
// Configuration Live worker configuration. Updated via `PATCH /apps/{appId}`.
Configuration WorkerConfig `json:"configuration"`
CreatedAt time.Time `json:"createdAt"`
// EffectiveMaxWorkers The worker ceiling the last deploy actually applied, reduced where the organization's credit balance did not back the whole range. The autoscaler cannot grow past it.
//
// It describes what was applied, not what is configured now, and the two can differ. It is taken from the `maxWorkers` of the version that was deployed, so deploying an older version applies that version's ceiling; and a later `PATCH` of `configuration.maxWorkers` does not change it until the next deploy. Read it beside `configuration.maxWorkers` rather than as a bound on it.
//
// `null` means nothing has been applied yet. It is recalculated on every deploy. A committed credit top-up also recalculates a reduced ceiling and restores the funded range automatically; KEDA then grows the workload from queue demand without a customer redeploy.
EffectiveMaxWorkers *int32 `json:"effectiveMaxWorkers,omitempty"`
// EnvironmentVariables Plain-text environment variables for this app. Populated on single-app responses (get, update, stop, resume, delete, deploy, favorite). List of apps returns an empty array to avoid an N+1 per page row — use the `/environment-variables` endpoints to page the set.
EnvironmentVariables []EnvironmentVariable `json:"environmentVariables"`
// IsFavorite Whether the authenticated organization has favorited this app. Favorited apps sort ahead of non-favorited apps; toggled via `PUT`/`DELETE` `/v1/apps/{appId}/favorite`.
IsFavorite bool `json:"isFavorite"`
// Runtime Observed state for one app at `calculatedAt`. Desired worker scale remains in `configuration`. Worker and GPU counts are always present; traffic, duration, and queue fields are omitted when their backing data is unavailable.
Runtime AppRuntime `json:"runtime"`
// Secrets Secrets attached to this app, including any env-var name override. Populated on single-app responses; list of apps returns an empty array to avoid an N+1 — use `/apps/{appId}/secrets` to page the set.
Secrets []SecretAttachment `json:"secrets"`
Status AppStatus `json:"status"`
UpdatedAt time.Time `json:"updatedAt"`
}
App defines model for App.
type AppCreate ¶
type AppCreate struct {
// AppId Immutable app identifier. Unique among the authenticated organization's live apps: it cannot be changed after creation, and it becomes available again once the app it named reaches `deleted`.
AppId AppId `json:"appId"`
// AppName Mutable display name. Must start and end with a non-whitespace character: it is what the console renders and what `sort=name` orders on, and it is not required to be unique. Interior spaces are allowed ("Sentiment Analysis"); leading or trailing whitespace is rejected, because a padded name is indistinguishable from its trimmed form in the console and breaks a name-confirm delete.
AppName AppName `json:"appName"`
// AppSource Write-only. Source for the app's first version; not returned in the App response. Use the `/builds` endpoints to inspect build status.
// - `code`: the codebase is submitted to the build pipeline; a new image is built and
// deployed once ready.
//
// - `container`: the submitted zip is built into a wrapper image by the same
// pipeline and deployed once ready; the version records the built image, not a
// customer-supplied reference.
//
// Either way the version is recorded with the app, and the app transitions to `active` once its first version is ready, or to `failed` if the build, validation, or rollout fails.
AppSource AppSourceUpsert `json:"appSource"`
Configuration WorkerConfigCreate `json:"configuration"`
// EnvironmentVariables Map with environment variables. Keys are the environment variable names, values are the environment variable values. Use the dedicated `/environment-variables` endpoints to change them after the app exists.
// Each key must satisfy `EnvironmentVariableName` — POSIX-style, at most 128 characters. OpenAPI 3.0 cannot constrain map keys, so a bad one is rejected by the server rather than by the schema. Keys must also not collide with a secret's injected env var name on the same app (see `attachAppSecret`).
EnvironmentVariables *map[string]string `json:"environmentVariables,omitempty"`
// Secrets Existing organization secrets to attach to this app, with an optional env-var name override per entry. This is the app's initial attachment set, so the first rollout carries the values into the worker. The secret must already exist and be `active`; this route does not create one, and an unknown or inactive name returns `404`. Shape matches `POST /apps/{appId}/secrets` so create and attach share one contract. Each injected name must not collide with a key in `environmentVariables` — see `SecretAttach`. Each secret can also be attached to at most 25 deployments total, shared with every other route that attaches it; an entry that would push a secret past that returns `422`.
Secrets *[]SecretAttach `json:"secrets,omitempty"`
// Volumes Persistent node-local directories bind-mounted through the checkpointer into the sandboxed application. Use these for downloaded weights and caches that must stay outside the checkpointed root filesystem. Paths must be unique and non-overlapping. The set is frozen into each immutable app version.
Volumes *[]AppVolume `json:"volumes,omitempty"`
}
AppCreate defines model for AppCreate.
type AppErrorStatusClass ¶
type AppErrorStatusClass string
AppErrorStatusClass defines model for AppErrorStatusClass.
const ( AppErrorStatusClassN4xx AppErrorStatusClass = "4xx" AppErrorStatusClassN5xx AppErrorStatusClass = "5xx" )
Defines values for AppErrorStatusClass.
func (AppErrorStatusClass) Valid ¶
func (e AppErrorStatusClass) Valid() bool
Valid indicates whether the value is a known member of the AppErrorStatusClass enum.
type AppErrorWindow ¶
type AppErrorWindow string
AppErrorWindow defines model for AppErrorWindow.
const ( AppErrorWindowN1h AppErrorWindow = "1h" AppErrorWindowN24h AppErrorWindow = "24h" AppErrorWindowN30d AppErrorWindow = "30d" AppErrorWindowN6h AppErrorWindow = "6h" AppErrorWindowN7d AppErrorWindow = "7d" )
Defines values for AppErrorWindow.
func (AppErrorWindow) Valid ¶
func (e AppErrorWindow) Valid() bool
Valid indicates whether the value is a known member of the AppErrorWindow enum.
type AppEvent ¶
type AppEvent struct {
// AppId Immutable app identifier. Unique among the authenticated organization's live apps: it cannot be changed after creation, and it becomes available again once the app it named reaches `deleted`.
AppId AppId `json:"appId"`
CreatedAt *time.Time `json:"createdAt,omitempty"`
EndpointId *openapi_types.UUID `json:"endpointId,omitempty"`
Id openapi_types.UUID `json:"id"`
// Message Human-readable description of what happened. Never blank.
Message string `json:"message"`
Type AppEventType `json:"type"`
WorkerId *openapi_types.UUID `json:"workerId,omitempty"`
}
AppEvent defines model for AppEvent.
type AppEventType ¶
type AppEventType string
AppEventType defines model for AppEventType.
const ( Audit AppEventType = "audit" Deploy AppEventType = "deploy" Error AppEventType = "error" Scaling AppEventType = "scaling" )
Defines values for AppEventType.
func (AppEventType) Valid ¶
func (e AppEventType) Valid() bool
Valid indicates whether the value is a known member of the AppEventType enum.
type AppId ¶
type AppId = string
AppId Immutable app identifier. Unique among the authenticated organization's live apps: it cannot be changed after creation, and it becomes available again once the app it named reaches `deleted`.
type AppName ¶
type AppName = string
AppName Mutable display name. Must start and end with a non-whitespace character: it is what the console renders and what `sort=name` orders on, and it is not required to be unique. Interior spaces are allowed ("Sentiment Analysis"); leading or trailing whitespace is rejected, because a padded name is indistinguishable from its trimmed form in the console and breaks a name-confirm delete.
type AppRuntime ¶
type AppRuntime struct {
// ActiveWorkers Non-terminal workers (`status` other than `stopped`) on this app. Pending workers count because they still hold capacity.
ActiveWorkers int64 `json:"activeWorkers"`
// AverageRequestDuration24h Mean inference request duration in seconds over the last 24 hours (all requests; the duration histogram has no status class). Omitted when metrics cannot be read, when the app had no requests, or when the duration series has no samples for the app in the window.
AverageRequestDuration24h *float64 `json:"averageRequestDuration24h,omitempty"`
// CalculatedAt When this runtime snapshot was read from the database.
CalculatedAt time.Time `json:"calculatedAt"`
// ErrorRate24h Error ratio (4xx + 5xx over requests) for this app in the last 24 hours, in 0–1. Omitted when metrics cannot be read or when the app had no requests in the window.
ErrorRate24h *float64 `json:"errorRate24h,omitempty"`
// ProvisionedGpuCount Sum of `gpuCount` across those workers. A pending worker contributes zero until Kubernetes schedules it onto a node.
ProvisionedGpuCount int64 `json:"provisionedGpuCount"`
// QueueDepth Ready plus unacknowledged messages on this app's live inference queue. Omitted when the app is not live or the gauge cannot be read. Zero when the queue is live and empty.
QueueDepth *int64 `json:"queueDepth,omitempty"`
// Requests24h Requests served by this app in the last 24 hours. Omitted until available.
Requests24h *int64 `json:"requests24h,omitempty"`
}
AppRuntime Observed state for one app at `calculatedAt`. Desired worker scale remains in `configuration`. Worker and GPU counts are always present; traffic, duration, and queue fields are omitted when their backing data is unavailable.
type AppSort ¶
type AppSort string
AppSort Ordering for `listApps`. Favorited apps appear before non-favorited apps, and the selected ordering applies within each group. Every ordering is total (ties broken by `appId`), so a page is reproducible and its cursor stable.
- `createdAt`: newest first. The default. - `name`: `appName` A–Z, case-insensitive. - `activity`: most recently active first. - `errorRate`: highest error rate first.
`activity` and `errorRate` rank on per-app traffic metrics, which are not collected yet; requesting either returns `422` until they are.
type AppSourceType ¶
type AppSourceType string
AppSourceType defines model for AppSourceType.
const ( Code AppSourceType = "code" Container AppSourceType = "container" )
Defines values for AppSourceType.
func (AppSourceType) Valid ¶
func (e AppSourceType) Valid() bool
Valid indicates whether the value is a known member of the AppSourceType enum.
type AppSourceUpsert ¶
type AppSourceUpsert struct {
Source AppSourceUpsert_Source `json:"source"`
// Type Selects the version creation path. `code` submits customer source code to the Image Build Service; `container` submits a wrapper `Dockerfile` and `container.yaml` for Runware to build into a hosted image.
Type AppSourceType `json:"type"`
}
AppSourceUpsert defines model for AppSourceUpsert.
type AppSourceUpsert_Source ¶
type AppSourceUpsert_Source struct {
// contains filtered or unexported fields
}
AppSourceUpsert_Source defines model for AppSourceUpsert.Source.
func (AppSourceUpsert_Source) AsCodeSourceUpsert ¶
func (t AppSourceUpsert_Source) AsCodeSourceUpsert() (CodeSourceUpsert, error)
AsCodeSourceUpsert returns the union data inside the AppSourceUpsert_Source as a CodeSourceUpsert
func (AppSourceUpsert_Source) AsContainerSource ¶
func (t AppSourceUpsert_Source) AsContainerSource() (ContainerSource, error)
AsContainerSource returns the union data inside the AppSourceUpsert_Source as a ContainerSource
func (*AppSourceUpsert_Source) FromCodeSourceUpsert ¶
func (t *AppSourceUpsert_Source) FromCodeSourceUpsert(v CodeSourceUpsert) error
FromCodeSourceUpsert overwrites any union data inside the AppSourceUpsert_Source as the provided CodeSourceUpsert
func (*AppSourceUpsert_Source) FromContainerSource ¶
func (t *AppSourceUpsert_Source) FromContainerSource(v ContainerSource) error
FromContainerSource overwrites any union data inside the AppSourceUpsert_Source as the provided ContainerSource
func (AppSourceUpsert_Source) MarshalJSON ¶
func (t AppSourceUpsert_Source) MarshalJSON() ([]byte, error)
func (*AppSourceUpsert_Source) MergeCodeSourceUpsert ¶
func (t *AppSourceUpsert_Source) MergeCodeSourceUpsert(v CodeSourceUpsert) error
MergeCodeSourceUpsert performs a merge with any union data inside the AppSourceUpsert_Source, using the provided CodeSourceUpsert
func (*AppSourceUpsert_Source) MergeContainerSource ¶
func (t *AppSourceUpsert_Source) MergeContainerSource(v ContainerSource) error
MergeContainerSource performs a merge with any union data inside the AppSourceUpsert_Source, using the provided ContainerSource
func (*AppSourceUpsert_Source) UnmarshalJSON ¶
func (t *AppSourceUpsert_Source) UnmarshalJSON(b []byte) error
type AppStatus ¶
type AppStatus string
AppStatus defines model for AppStatus.
const ( AppStatusActive AppStatus = "active" AppStatusDeleted AppStatus = "deleted" AppStatusDeleting AppStatus = "deleting" AppStatusFailed AppStatus = "failed" AppStatusInitializing AppStatus = "initializing" AppStatusStopped AppStatus = "stopped" AppStatusStopping AppStatus = "stopping" )
Defines values for AppStatus.
type AppSummary ¶
type AppSummary struct {
// ActiveApps Apps currently in the `active` status.
ActiveApps int64 `json:"activeApps"`
// ActiveWorkers Non-terminal workers (`status` other than `stopped`) across every app in the organization.
ActiveWorkers int64 `json:"activeWorkers"`
// CalculatedAt When these metrics were computed.
CalculatedAt time.Time `json:"calculatedAt"`
// ErrorRate24h Error ratio (4xx + 5xx over requests) for the last 24 hours, in 0–1. Omitted when metrics cannot be read or when `requests24h` is zero.
ErrorRate24h *float64 `json:"errorRate24h,omitempty"`
// ProvisionedGpuCount Sum of `gpuCount` across those same non-terminal workers.
ProvisionedGpuCount int64 `json:"provisionedGpuCount"`
// Requests24h Requests served in the last 24 hours across every app. Omitted when metrics cannot be read. Zero when the organization had no traffic.
Requests24h *int64 `json:"requests24h,omitempty"`
// SpendToday Provisional pay-as-you-go accrual over the last 24 hours, across every app. Excludes finalization rounding and ledger adjustments. A rolling window rather than a calendar day, so the figure does not reset at a boundary the customer did not choose.
//
// What has accrued, not a projection: an app that has just started shows what it has run so far. Time a capacity commitment covered is excluded, because it collects nothing. Omitted when the usage cannot be priced, which a zero would misreport as having run for free.
SpendToday *MoneyAmount `json:"spendToday,omitempty"`
// TotalApps All apps in the organization excluding soft-deleted ones.
TotalApps int64 `json:"totalApps"`
}
AppSummary Aggregate dashboard metrics for every app in the authenticated organization. App and worker tallies are always present (zero when empty). Request and error-rate totals are omitted when the metrics store cannot be read, rather than reported as zero. Spend covers a rolling 24 hours and is omitted when the usage cannot be priced.
type AppUpdate ¶
type AppUpdate struct {
// AppName Mutable display name; does not affect app identity or routing. Omit to leave unchanged — an explicit blank or padded value is rejected, not treated as a clear.
AppName *AppName `json:"appName,omitempty"`
// AppSource Write-only. New source to build and deploy; not returned in the App response. Use the `/builds` endpoints to inspect build status. Triggers a build (for `code` sources) or validates `container.yaml` then builds (for `container` sources). On accept the resulting version is recorded with a new image tag and rolled through the deploy queue. A builder rejection leaves the app on the previous version and writes no version or build row. After accept, a concurrent secret deactivation or env/secret collision leaves version N+1 recorded and the previous attachment set in place. `activeVersionId` moves only when that rollout completes. Not valid on a `stopped` or `stopping` app — there is nothing to roll the new version onto, and `resume` rolls the pinned one — so supplying it in those statuses returns `409 Conflict`.
AppSource *AppSourceUpsert `json:"appSource,omitempty"`
// Configuration Partial worker configuration. Any field present overwrites the live value; omitted fields are left unchanged. Clearing a nullable live field (setting it to null) is not supported — omit the field to leave it unchanged. `fallbackGpuType` is the exception: send an empty string to clear it. `computeType` is create-time only and cannot be patched. Changing `gpuType` affects only newly created workers.
Configuration *WorkerConfigPatch `json:"configuration,omitempty"`
// EnvironmentVariables Replaces the app's environment variables. Keys are the variable names, values are the values. A key absent from the map is deleted. A null value omits that key from the new set. The resolved map is snapshotted onto the version this update records, so a deploy applies it. When the copied image is deployable the update pins and rolls, the same as a configuration change.
EnvironmentVariables *map[string]*string `json:"environmentVariables,omitempty"`
// Secrets Replaces the app's secret attachments. Same `SecretAttach` shape as create and `POST /apps/{appId}/secrets`. An attachment absent from the array is detached. Injected names must not collide with a plain environment variable on the app. Control-plane record only — secret values do not reach a pod, and the version snapshot carries no secrets — so this field does not roll the workload. An app holds at most 100 environment bindings in total; this array cannot exceed that ceiling on its own. Each individual secret can also be attached to at most 25 deployments total, shared with every other route that attaches it.
Secrets *[]SecretAttach `json:"secrets,omitempty"`
}
AppUpdate Updates one or more aspects of an app in place. All fields are optional; omitted fields are left unchanged. Lifecycle transitions (stop/resume/delete/deploy) use their dedicated operations. A successful configuration or `environmentVariables` update records a new version carrying the updated values and the same image. If that image is deployable, the update pins it as `activeVersionId` and rolls the workload when the app can take one (`active`, `initializing`, or `failed` which becomes `initializing`). If the image is not deployable, the version is recorded and `activeVersionId` is left unchanged. A name-only update records a version and does not pin. If the roll of a live app fails, `activeVersionId` is restored so the field keeps naming the running configuration. `appSource` starts a build and records version N+1 with a new image. The deploy queue rolls that version once the build is ready; `activeVersionId` moves only then. A builder rejection leaves the app on its current version. After accept, a late overlay race leaves the new version recorded and the previous attachments in place. `secrets` replaces the attachment set and does not roll the workload. Endpoints are not a field of this contract at all: the set belongs to the app source, so it changes only when a new version with a new source builds and deploys, and an unknown `endpoints` field is rejected like any other.
type AppVolume ¶
type AppVolume struct {
// MountPath Absolute path exposed inside the sandboxed application. The path is the volume's stable identity and is mirrored below the app's node-local data directory. Root, duplicate, and overlapping paths are rejected.
MountPath string `json:"mountPath"`
}
AppVolume defines model for AppVolume.
type AttachAppSecretJSONRequestBody ¶
type AttachAppSecretJSONRequestBody = SecretAttach
AttachAppSecretJSONRequestBody defines body for AttachAppSecret for application/json ContentType.
type AttachAppSecretResponse ¶
type AttachAppSecretResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseAttachAppSecretResponse ¶
func ParseAttachAppSecretResponse(rsp *http.Response) (*AttachAppSecretResponse, error)
ParseAttachAppSecretResponse parses an HTTP response from a AttachAppSecretWithResponse call
func (AttachAppSecretResponse) ContentType ¶
func (r AttachAppSecretResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AttachAppSecretResponse) GetApplicationproblemJSON400 ¶
func (r AttachAppSecretResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (AttachAppSecretResponse) GetApplicationproblemJSON401 ¶
func (r AttachAppSecretResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (AttachAppSecretResponse) GetApplicationproblemJSON403 ¶
func (r AttachAppSecretResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (AttachAppSecretResponse) GetApplicationproblemJSON404 ¶
func (r AttachAppSecretResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (AttachAppSecretResponse) GetApplicationproblemJSON409 ¶
func (r AttachAppSecretResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (AttachAppSecretResponse) GetApplicationproblemJSON422 ¶
func (r AttachAppSecretResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (AttachAppSecretResponse) GetApplicationproblemJSON503 ¶
func (r AttachAppSecretResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (AttachAppSecretResponse) GetBody ¶
func (r AttachAppSecretResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (AttachAppSecretResponse) Status ¶
func (r AttachAppSecretResponse) Status() string
Status returns HTTPResponse.Status
func (AttachAppSecretResponse) StatusCode ¶
func (r AttachAppSecretResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BadGateway ¶
type BadGateway = ProblemDetails
BadGateway RFC 9457 problem details. Every error response from this API uses this schema with media type `application/problem+json`. `type` is a URI that identifies the problem class and dereferences to its documentation; clients should switch on `type` (not `status` or `detail`, which are not stable identifiers). Additional members beyond those below may appear.
type BadRequest ¶
type BadRequest = ProblemDetails
BadRequest RFC 9457 problem details. Every error response from this API uses this schema with media type `application/problem+json`. `type` is a URI that identifies the problem class and dereferences to its documentation; clients should switch on `type` (not `status` or `detail`, which are not stable identifiers). Additional members beyond those below may appear.
type Build ¶
type Build struct {
// AppId Immutable app identifier. Unique among the authenticated organization's live apps: it cannot be changed after creation, and it becomes available again once the app it named reaches `deleted`.
AppId *AppId `json:"appId,omitempty"`
// CompletedAt When the build reached a terminal status (`ready`/`failed`/`superseded`); null while running or for terminal builds recorded before this was tracked.
CompletedAt *time.Time `json:"completedAt,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty"`
// DurationMs Wall-clock milliseconds from `createdAt` to `completedAt`; null while the build is still running or when no completion time was recorded.
DurationMs *int64 `json:"durationMs,omitempty"`
// Error Error message or failure reason; null when the build is still running or succeeded.
Error *string `json:"error,omitempty"`
// ExitCode Exit code of the build container: 0 on success, its non-zero code on a build failure. Null while running, on a terminal build whose exit code the builder could no longer report, and when the build container never ran (e.g. an init container such as dockerfile generation failed first).
ExitCode *int32 `json:"exitCode,omitempty"`
Id openapi_types.UUID `json:"id"`
// LogTail Trailing build log output.
LogTail *string `json:"logTail,omitempty"`
// Phases Observed build phases with their timings, recorded once the build is terminal; empty until then. Phase lists differ by `source.type`; never assume a fixed list.
Phases []BuildPhase `json:"phases"`
// Source Where a build's source came from: `code` for a customer code submission, `container` for a customer wrapper Dockerfile. `repository` and `revision` are not yet recorded (both sources are zip uploads) and will be added when the platform stores that provenance.
Source BuildSource `json:"source"`
// Status Build/validation lifecycle status.
Status BuildStatus `json:"status"`
// TriggeredBy Who performed an action — the authenticated user (JWT) or the API key. `kind` says which, so `id` (that actor's UUID) is resolvable to the right thing; `displayName` is its name captured at write time, so it renders as it was even if the user or key is later renamed. Used as `Build.triggeredBy` and `Version.author`.
TriggeredBy *TriggeredBy `json:"triggeredBy,omitempty"`
// VersionId The version this build produced. A code build's version is created together with the build, so this is populated in every status; it is null only when no version references the build. A code update carries an image — and so its build — forward onto a new version, so a build may be named by several versions; this is the earliest, the one the build actually produced.
VersionId *openapi_types.UUID `json:"versionId,omitempty"`
// VersionNumber Version number of `versionId`; null when `versionId` is null.
VersionNumber *int32 `json:"versionNumber,omitempty"`
}
Build Details of a build. Both source types build, and `kind` says which pipeline ran: a `code` submission or a customer's own wrapper Dockerfile. Phase lists differ by kind, so never assume a fixed one. `listBuilds` and `getBuild` return this same shape.
Nullability:
`error` is null while the build is running (`queued`, `building`), on success (`ready`), and on `superseded` (a newer version took over — the `status` conveys that, and it is not a failure); it is present only on `failed`.
`completedAt` and `durationMs` are null while the build is running and set once it reaches a terminal status (`ready`/`failed`/`superseded`). They are also null for terminal builds that finished before completion timestamps were tracked.
`exitCode` is null while running. On a terminal build it carries the build Job's exit code when the builder still had it to report; it can remain null on a terminal build whose Job aged out before the code was read.
`versionId` / `versionNumber` name the version this build produced. A code build's version is created together with the build, so these are populated from the moment the build exists, in every status; they are null only when no version references the build. When later config updates carry the build forward onto new versions, this is the earliest — the one the build actually produced.
`triggeredBy` names the user or API key that submitted the build; it is null only for builds created before the actor was recorded.
type BuildListSummary ¶
type BuildListSummary struct {
// Total Number of builds recorded for this app.
Total int64 `json:"total"`
// Versions Number of versions recorded for this app. Same value as `listVersions` `summary.total`. A config-only update increments this without incrementing `total`.
Versions int64 `json:"versions"`
}
BuildListSummary Collection totals for this app's builds list. Independent of the page: the same values on every cursor, including a seek past the last row. `total` counts builds. `versions` counts versions on the same app — the same predicate as `listVersions` `summary.total`, excluding soft-deleted versions.
type BuildPhase ¶
type BuildPhase struct {
// CompletedAt Null while the phase is still running.
CompletedAt *time.Time `json:"completedAt,omitempty"`
// Name Phase identifier, e.g. `prepare`, `build`, `index`. Deliberately not an enum — new build kinds report new phases without a contract change.
Name string `json:"name"`
Outcome BuildPhaseOutcome `json:"outcome"`
StartedAt time.Time `json:"startedAt"`
}
BuildPhase One observed step of a build, in execution order. The phase list is open: which phases a build reports depends on its kind and on how it ran, so clients must not assume a fixed set of names or a fixed count.
type BuildPhaseOutcome ¶
type BuildPhaseOutcome string
BuildPhaseOutcome defines model for BuildPhase.Outcome.
const ( BuildPhaseOutcomeFailed BuildPhaseOutcome = "failed" BuildPhaseOutcomeRunning BuildPhaseOutcome = "running" BuildPhaseOutcomeSucceeded BuildPhaseOutcome = "succeeded" )
Defines values for BuildPhaseOutcome.
func (BuildPhaseOutcome) Valid ¶
func (e BuildPhaseOutcome) Valid() bool
Valid indicates whether the value is a known member of the BuildPhaseOutcome enum.
type BuildSource ¶
type BuildSource struct {
// Type The kind of source that produced this build — `code` or `container`, straight from the build record. Build phases differ by kind, so clients must not assume a fixed phase list. Not modeled as an enum so adding a kind later does not churn the existing source-type constants this API shares.
Type string `json:"type"`
}
BuildSource Where a build's source came from: `code` for a customer code submission, `container` for a customer wrapper Dockerfile. `repository` and `revision` are not yet recorded (both sources are zip uploads) and will be added when the platform stores that provenance.
type BuildStatus ¶
type BuildStatus string
BuildStatus Build/validation lifecycle status.
const ( BuildStatusBuilding BuildStatus = "building" BuildStatusFailed BuildStatus = "failed" BuildStatusQueued BuildStatus = "queued" BuildStatusReady BuildStatus = "ready" BuildStatusSuperseded BuildStatus = "superseded" )
Defines values for BuildStatus.
func (BuildStatus) Valid ¶
func (e BuildStatus) Valid() bool
Valid indicates whether the value is a known member of the BuildStatus enum.
type CatalogEntry ¶
type CatalogEntry struct {
// Aggregation How each bucket was reduced, e.g. `avg` or `p50`. Carried so a tooltip can say what a point means rather than presenting a bucket reduction as an instant reading.
Aggregation string `json:"aggregation"`
// Id The value to pass as `queryId`.
Id string `json:"id"`
// Selectors The narrowings this query accepts. Anything else is rejected.
Selectors []string `json:"selectors"`
// Series The stable series ids this query returns. Empty when those ids are not known until the request (`apps_request_volume` keys each line on an app id).
Series []string `json:"series"`
// Unit The unit of every value in this query's series, e.g. `req/min`.
Unit string `json:"unit"`
// Windows The windows this query can answer. A window absent here has no stored series behind it, so a client should not offer it.
Windows []string `json:"windows"`
}
CatalogEntry defines model for CatalogEntry.
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) AttachAppSecret ¶
func (c *Client) AttachAppSecret(ctx context.Context, appId AppId, body AttachAppSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
AttachAppSecret Attach a secret to an app
Records that an organization secret is attached to an app under a resolved env-var name, and rolls the app's live deployment in place so a running worker picks up the value without waiting for an unrelated deploy. If a rollout is already in progress when this commits, this attach is not guaranteed to land on it — it reaches the worker on a later redeploy instead. A deployment that is not live records the attachment only — the next resume reads the attach set fresh. Returns `409` if the secret is already attached, or if another attach would use the same env-var name. The resolved name (`envVarName`, or `secretName` when omitted) must not already exist as a plain environment variable on this app (`deployment_configs.key`). Both sources use the same pod env namespace, so the server rejects the collision with `422` instead of allowing a last-wins override later. The reverse check applies when setting a plain environment variable. An app holds at most 100 environment bindings in total — plain environment variables plus attached secrets — the same combined ceiling as create and the single-key env-var route. Attaching when the app is already at that limit returns `422`. A secret can be attached to at most 25 deployments — rolling every attached deployment is what an update or detach costs, so the ceiling bounds that cost rather than the app side of the binding. Attaching past it returns `422`.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/apps/{appId}/secrets (the `AttachAppSecret` operationId).
func (*Client) AttachAppSecretWithBody ¶
func (c *Client) AttachAppSecretWithBody(ctx context.Context, appId AppId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AttachAppSecretWithBody Attach a secret to an app
Records that an organization secret is attached to an app under a resolved env-var name, and rolls the app's live deployment in place so a running worker picks up the value without waiting for an unrelated deploy. If a rollout is already in progress when this commits, this attach is not guaranteed to land on it — it reaches the worker on a later redeploy instead. A deployment that is not live records the attachment only — the next resume reads the attach set fresh. Returns `409` if the secret is already attached, or if another attach would use the same env-var name. The resolved name (`envVarName`, or `secretName` when omitted) must not already exist as a plain environment variable on this app (`deployment_configs.key`). Both sources use the same pod env namespace, so the server rejects the collision with `422` instead of allowing a last-wins override later. The reverse check applies when setting a plain environment variable. An app holds at most 100 environment bindings in total — plain environment variables plus attached secrets — the same combined ceiling as create and the single-key env-var route. Attaching when the app is already at that limit returns `422`. A secret can be attached to at most 25 deployments — rolling every attached deployment is what an update or detach costs, so the ceiling bounds that cost rather than the app side of the binding. Attaching past it returns `422`.
Takes any type of body and a specified content type.
Corresponds with POST /v1/apps/{appId}/secrets (the `AttachAppSecret` operationId).
func (*Client) CompleteSourceUpload ¶
func (c *Client) CompleteSourceUpload(ctx context.Context, uploadId SourceUploadId, reqEditors ...RequestEditorFn) (*http.Response, error)
CompleteSourceUpload Complete a source upload
Verifies the staging object's length, content type, and SHA-256 digest against the session declaration, applies the archive rules for the source type, and publishes the verified bytes as an immutable source artifact. The first success creates the source and returns the ready session carrying its `sourceId`; a retry returns the same session and the same `sourceId`. A rejected upload keeps its rejection so later retries return the same result.
Corresponds with POST /v1/source-uploads/{uploadId}/complete (the `CompleteSourceUpload` operationId).
func (*Client) CreateApp ¶
func (c *Client) CreateApp(ctx context.Context, body CreateAppJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateApp Create an app
Creates an app together with its worker configuration, environment variables and endpoints, and records version `1` — the immutable description of what to deploy. The app starts in `initializing`, and what happens next depends on the app source type:
`code` source: the codebase is submitted to the build pipeline; once the image is built and workers become healthy the app transitions to `active` and `activeVersionId` points at that version. If the build, validation, or rollout fails the app is marked `failed`.
`container` source: the submitted zip (wrapper `Dockerfile` + `container.yaml`) goes through the same build pipeline — the wrapper image is built, published and deployed, so the version carries a `buildId` and the app follows the same lifecycle as a code source. An invalid `container.yaml` rejects the create before any build capacity is spent — `400` where the document could not be parsed at all, `422` where it parsed and broke a rule.
`activeVersionId` is null until a rollout completes: a version records what should run, and only a finished deploy says what does.
`secrets` attaches organization secrets that already exist. It is the app's initial attachment set, so the first rollout carries their values into the worker. This route does not create a secret — use `POST /v1/secrets` first. A name that is unknown to the organization, or that is not `active`, returns `404`. A name that collides with a key in `environmentVariables`, a repeated name and a set that goes past the binding limit each return `422`. The whole set is checked before any build capacity is spent.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/apps (the `CreateApp` operationId).
func (*Client) CreateAppWithBody ¶
func (c *Client) CreateAppWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAppWithBody Create an app
Creates an app together with its worker configuration, environment variables and endpoints, and records version `1` — the immutable description of what to deploy. The app starts in `initializing`, and what happens next depends on the app source type:
`code` source: the codebase is submitted to the build pipeline; once the image is built and workers become healthy the app transitions to `active` and `activeVersionId` points at that version. If the build, validation, or rollout fails the app is marked `failed`.
`container` source: the submitted zip (wrapper `Dockerfile` + `container.yaml`) goes through the same build pipeline — the wrapper image is built, published and deployed, so the version carries a `buildId` and the app follows the same lifecycle as a code source. An invalid `container.yaml` rejects the create before any build capacity is spent — `400` where the document could not be parsed at all, `422` where it parsed and broke a rule.
`activeVersionId` is null until a rollout completes: a version records what should run, and only a finished deploy says what does.
`secrets` attaches organization secrets that already exist. It is the app's initial attachment set, so the first rollout carries their values into the worker. This route does not create a secret — use `POST /v1/secrets` first. A name that is unknown to the organization, or that is not `active`, returns `404`. A name that collides with a key in `environmentVariables`, a repeated name and a set that goes past the binding limit each return `422`. The whole set is checked before any build capacity is spent.
Takes any type of body and a specified content type.
Corresponds with POST /v1/apps (the `CreateApp` operationId).
func (*Client) CreateSecret ¶
func (c *Client) CreateSecret(ctx context.Context, body CreateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSecret Create a secret
Creates an organization-scoped secret. Returns `409` if the name is already in use — including when a secret of that name is `pending_destroy`. List only shows active secrets, so a name can appear free while create still conflicts for as long as that row remains. A `pending_destroy` row is removed, and its name released, by a background sweep once no running worker can still hold the value — there is no deadline on that wait, so a continuously busy app can hold a name for as long as it runs. Recreate-while-deleting may later reuse the pending row with the new value (same name, new ciphertext). An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden` — the per-organization CryptoKey that seals the value is only minted when the tenancy is active. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/secrets (the `CreateSecret` operationId).
func (*Client) CreateSecretWithBody ¶
func (c *Client) CreateSecretWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSecretWithBody Create a secret
Creates an organization-scoped secret. Returns `409` if the name is already in use — including when a secret of that name is `pending_destroy`. List only shows active secrets, so a name can appear free while create still conflicts for as long as that row remains. A `pending_destroy` row is removed, and its name released, by a background sweep once no running worker can still hold the value — there is no deadline on that wait, so a continuously busy app can hold a name for as long as it runs. Recreate-while-deleting may later reuse the pending row with the new value (same name, new ciphertext). An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden` — the per-organization CryptoKey that seals the value is only minted when the tenancy is active. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes.
Takes any type of body and a specified content type.
Corresponds with POST /v1/secrets (the `CreateSecret` operationId).
func (*Client) CreateSourceUpload ¶
func (c *Client) CreateSourceUpload(ctx context.Context, body CreateSourceUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSourceUpload Create a source upload
Creates an upload session for a source archive. The session belongs to the authenticated organization and names no app: an upload precedes any app, and the source it publishes may back several. The response contains a short-lived transfer instruction for one exact staging object. Repeating the request with the same idempotency key and declaration while the session is pending and unexpired returns the same upload resource with a refreshed transfer instruction. Replays with a different declaration, or after the session becomes ready, rejected, expired, or deleted, return `409`.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/source-uploads (the `CreateSourceUpload` operationId).
func (*Client) CreateSourceUploadWithBody ¶
func (c *Client) CreateSourceUploadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSourceUploadWithBody Create a source upload
Creates an upload session for a source archive. The session belongs to the authenticated organization and names no app: an upload precedes any app, and the source it publishes may back several. The response contains a short-lived transfer instruction for one exact staging object. Repeating the request with the same idempotency key and declaration while the session is pending and unexpired returns the same upload resource with a refreshed transfer instruction. Replays with a different declaration, or after the session becomes ready, rejected, expired, or deleted, return `409`.
Takes any type of body and a specified content type.
Corresponds with POST /v1/source-uploads (the `CreateSourceUpload` operationId).
func (*Client) DeleteApp ¶
func (c *Client) DeleteApp(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteApp Delete an app
Soft delete. Sets `status = deleting` and returns `202` once that intent is persisted. Router removal, canceling in-progress builds, and worker drain (`draining → stopping → stopped`) are performed asynchronously by the deployer/Scaler; `status` becomes `deleted` once all workers stop. All rows are retained for billing finalization, audit, and usage history. Idempotent if the app is already `deleting`.
The `appId` is released once `status` reaches `deleted`, and not before: while the app is `deleting` its workload is still being torn down and the name stays taken. A new app created under a released name is a new app and inherits nothing — no version, no build, no event history, and no workers.
Corresponds with DELETE /v1/apps/{appId} (the `DeleteApp` operationId).
func (*Client) DeleteAppEnvironmentVariable ¶
func (c *Client) DeleteAppEnvironmentVariable(ctx context.Context, appId AppId, variableName EnvironmentVariableName, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteAppEnvironmentVariable Delete an app environment variable
Removes one environment variable. A successful delete records a new version carrying the remaining environment set and the same image. If that image is deployable, the delete pins it as `activeVersionId` and rolls the workload when the app can take one (`active`, `initializing`, or `failed` which becomes `initializing`). A `stopped` or `stopping` app pins the version and rolls it on `resume`. A delete of a key that is present while a rollout of this app is still in flight returns `409 Conflict` and does not remove the value. A name that is not present returns `404` even during that window.
Corresponds with DELETE /v1/apps/{appId}/environment-variables/{variableName} (the `DeleteAppEnvironmentVariable` operationId).
func (*Client) DeleteBuild ¶
func (c *Client) DeleteBuild(ctx context.Context, appId AppId, buildId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteBuild Delete or cancel a build
Cancels a queued or running build and records it as `superseded`. Deleting a queued or running build ends its current rollout without activating the canceled build, so any previous version keeps serving. A terminal build can be deleted once no live rollout still needs it. Ready builds remain while a version references them.
Corresponds with DELETE /v1/apps/{appId}/builds/{buildId} (the `DeleteBuild` operationId).
func (*Client) DeleteSecret ¶
func (c *Client) DeleteSecret(ctx context.Context, secretName SecretName, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteSecret Delete a secret
Soft-deletes a secret: marks the row `pending_destroy` and bumps revision. This API does not hard-delete the row. Returns `409` while any app still attaches it — cascade-detach is not performed here; detach each holder with `DELETE .../apps/{id}/secrets/{name}` first, which rolls the deployments it names in place. A background sweep removes the row and releases the name once no running worker can still hold the value, rather than assuming every roll a detach started actually landed — a deployment that was not live when detached has nothing to roll until it resumes, so the sweep is the actual backstop, not the detach. While the row remains `pending_destroy` the name stays reserved, so create may return `409` even though list no longer shows the secret. Retries on an already-pending name are safe when no attachments remain (`204`); they still return `409` while attached.
Corresponds with DELETE /v1/secrets/{secretName} (the `DeleteSecret` operationId).
func (*Client) DeleteSourceUpload ¶
func (c *Client) DeleteSourceUpload(ctx context.Context, uploadId SourceUploadId, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteSourceUpload Abort a source upload
Aborts an upload that has not published its source and removes its staging object. The session remains as a deleted tombstone so its staging key cannot be reused. Repeating a successful abort is idempotent. A `ready` upload cannot be aborted: the source it published is a resource in its own right, and the request answers `409` with type `source-upload-completed`.
Corresponds with DELETE /v1/source-uploads/{uploadId} (the `DeleteSourceUpload` operationId).
func (*Client) DeleteVersion ¶
func (c *Client) DeleteVersion(ctx context.Context, appId AppId, versionNumber int32, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteVersion Delete a version
Deletes an unused version while retaining its immutable history. Deleted versions are omitted from version lists, return `404` from version reads, and cannot be deployed. Returns `409` while the app is deleting, or when the version is active, is the app's only remaining version, has a non-stopped worker, or is targeted by a live rollout. Deleting an already deleted version returns `404`. This operation does not remove the version's OCI image.
Corresponds with DELETE /v1/apps/{appId}/versions/{versionNumber} (the `DeleteVersion` operationId).
func (*Client) DeployVersion ¶
func (c *Client) DeployVersion(ctx context.Context, appId AppId, body DeployVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
DeployVersion Deploy a version
Activates a `ready` version by number, setting `activeVersionId` and returning `202` once that intent is persisted. Worker rollout, routing switch, and canceling in-progress builds (`superseded`) are performed asynchronously by the deployer/Scaler. Permitted in any addressable status, including `initializing` and `failed`. To roll back, supply an older `versionNumber` — the operation is identical to a forward deploy. No new version is created and no rebuild happens: the version's existing image is re-applied. Re-deploying the currently active version is permitted and re-applies it. A deploy to a `stopped` or `stopping` app records the version and rolls no workload, because no workers are running: the `202` does not imply a rollout there. The recorded version is the one applied when the app resumes. If the roll of a live app fails, `activeVersionId` is restored to the version that kept serving, so the field keeps naming the running image. **Rollout** (deployer/Scaler): the platform starts workers on the target version, waits for at least one to become healthy, switches task routing to the new version, then drains old-version workers gracefully. Old workers are given a fixed, platform-managed grace period to finish in-flight tasks before being force-terminated. If new workers fail to become healthy, old workers are not drained and the app continues on the previous version. Errors: - Deploy to a `deleting` app returns `409 Conflict` - `versionNumber` not found or not `ready` returns `409 Conflict` - A deploy while a rollout of this app is still in flight returns `409 Conflict`;
one app rolls to one version at a time. Retry once it completes.
- Deploy to a non-existent or `deleted` app returns `404 Not Found`
Takes a body of the `application/json` content type.
Corresponds with POST /v1/apps/{appId}/deploy (the `DeployVersion` operationId).
func (*Client) DeployVersionWithBody ¶
func (c *Client) DeployVersionWithBody(ctx context.Context, appId AppId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeployVersionWithBody Deploy a version
Activates a `ready` version by number, setting `activeVersionId` and returning `202` once that intent is persisted. Worker rollout, routing switch, and canceling in-progress builds (`superseded`) are performed asynchronously by the deployer/Scaler. Permitted in any addressable status, including `initializing` and `failed`. To roll back, supply an older `versionNumber` — the operation is identical to a forward deploy. No new version is created and no rebuild happens: the version's existing image is re-applied. Re-deploying the currently active version is permitted and re-applies it. A deploy to a `stopped` or `stopping` app records the version and rolls no workload, because no workers are running: the `202` does not imply a rollout there. The recorded version is the one applied when the app resumes. If the roll of a live app fails, `activeVersionId` is restored to the version that kept serving, so the field keeps naming the running image. **Rollout** (deployer/Scaler): the platform starts workers on the target version, waits for at least one to become healthy, switches task routing to the new version, then drains old-version workers gracefully. Old workers are given a fixed, platform-managed grace period to finish in-flight tasks before being force-terminated. If new workers fail to become healthy, old workers are not drained and the app continues on the previous version. Errors: - Deploy to a `deleting` app returns `409 Conflict` - `versionNumber` not found or not `ready` returns `409 Conflict` - A deploy while a rollout of this app is still in flight returns `409 Conflict`;
one app rolls to one version at a time. Retry once it completes.
- Deploy to a non-existent or `deleted` app returns `404 Not Found`
Takes any type of body and a specified content type.
Corresponds with POST /v1/apps/{appId}/deploy (the `DeployVersion` operationId).
func (*Client) DetachAppSecret ¶
func (c *Client) DetachAppSecret(ctx context.Context, appId AppId, secretName SecretName, reqEditors ...RequestEditorFn) (*http.Response, error)
DetachAppSecret Detach a secret from an app
Removes the attachment and rolls the app's live deployment in place so a running worker stops receiving the value. If a rollout is already in progress when this commits, this detach is not guaranteed to land on it — the worker stops receiving the value on a later redeploy instead. A deployment that is not live has the removal recorded only — there is nothing to roll until it resumes.
Corresponds with DELETE /v1/apps/{appId}/secrets/{secretName} (the `DetachAppSecret` operationId).
func (*Client) FavoriteApp ¶
func (c *Client) FavoriteApp(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*http.Response, error)
FavoriteApp Favorite an app
Pins the app as a favorite for the authenticated organization so the console can surface it in a Favorites section. Idempotent: favoriting an already-favorited app succeeds and returns the app with `isFavorite: true`. Apps in `deleting` or `deleted` status cannot be favorited (`404`). Soft-delete clears any existing pin when status becomes `deleting`.
Corresponds with PUT /v1/apps/{appId}/favorite (the `FavoriteApp` operationId).
func (*Client) GetApp ¶
func (c *Client) GetApp(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApp Get an app
Returns the app the authenticated organization owns under this `appId`. An unknown app and a soft-deleted one both return `404 Not Found`: a deleted app is gone to its owner, and its rows are retained only for billing and audit. To read deleted apps, list them with `status=deleted`.
Corresponds with GET /v1/apps/{appId} (the `GetApp` operationId).
func (*Client) GetAppSummary ¶
func (c *Client) GetAppSummary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAppSummary App summary metrics for the authenticated organization
Aggregate dashboard metrics across all apps owned by the authenticated organization. App and worker tallies are always present. Request and error-rate totals come from the metrics store and are omitted when that hop cannot answer rather than reported as zero. Spend covers a rolling 24 hours and is omitted when the usage cannot be priced.
Corresponds with GET /v1/app-summary (the `GetAppSummary` operationId).
func (*Client) GetBuild ¶
func (c *Client) GetBuild(ctx context.Context, appId AppId, buildId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetBuild Get a build
Corresponds with GET /v1/apps/{appId}/builds/{buildId} (the `GetBuild` operationId).
func (*Client) GetEndpoint ¶
func (c *Client) GetEndpoint(ctx context.Context, appId AppId, endpointId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetEndpoint Get an endpoint
Returns one live endpoint on the app. `runtime` is the same optional latest-window traffic as `listEndpoints` and is omitted when metrics cannot be read or the endpoint has no samples.
Corresponds with GET /v1/apps/{appId}/endpoints/{endpointId} (the `GetEndpoint` operationId).
func (*Client) GetGpuType ¶
func (c *Client) GetGpuType(ctx context.Context, gpuTypeId GpuTypeId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetGpuType Get a GPU type from the catalog
Returns an active entry from the global GPU type catalog. Retired entries return `404`. The result is not organization-specific, but the request still requires authentication.
Corresponds with GET /v1/gpu-types/{gpuTypeId} (the `GetGpuType` operationId).
func (*Client) GetLogEntries ¶
func (c *Client) GetLogEntries(ctx context.Context, queryId QueryId, params *GetLogEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetLogEntries Read one page of a named log query
Returns one page of log entries in the requested `sort` order, newest first by default, with opaque cursors for the neighboring pages when they exist. `nextCursor` continues in the `sort` order and `prevCursor` goes back against it, so a client can walk a window in either direction from either end. A cursor is only valid for the `sort` it was issued under; reusing one under the other ordering returns `400`. Query ids and their supported selectors are listed by the insights catalog.
Corresponds with GET /v1/logs/queries/{queryId}/entries (the `GetLogEntries` operationId).
func (*Client) GetMetricSeries ¶
func (c *Client) GetMetricSeries(ctx context.Context, queryId QueryId, params *GetMetricSeriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetMetricSeries Read one named metric query
Returns one chart's data: a single timestamp axis shared by every series, and one dense value array per series aligned to it.
Values are dense and positionally aligned to `t`, with an explicit `null` wherever there was no sample. Each timestamp is the END of its bucket, so `window.to` is inclusive and equals the last timestamp in `t`, while `window.from` is exclusive and is one `step_s` before the first.
An organization with no metrics yet is answered with the full axis and all-null series rather than an error.
`apps_request_volume` returns one series per app: 96 quarter-hour request counts over `window=24h` (`step_s` 900, unit `requests`). Repeat `appId` once per id on the current list page to pad idle apps with all-null series, in request order. A series is named for the live app behind it, so a reused app id reports its own generation's traffic and not the one before it. The same `appId` pad applies to the list-scoped `apps_error_volume` and `apps_request_duration` queries. Other queries reject `appId`. Other windows are not available for these queries.
`endpoints_request_volume` is the endpoints-list counterpart: 96 quarter-hour request counts per endpoint over `window=24h` (`step_s` 900, unit `requests`). It requires the public app id. Repeat `endpointId` once per id on the current `listEndpoints` page to pad idle endpoints with all-null series, in request order. Buckets that started before that endpoint row's `createdAt` are null, so a removed-then-readded path does not inherit the previous row's traffic.
The same app + `endpointId` pad and `createdAt` clip apply to the list-scoped `endpoints_request_rate`, `endpoints_latency_p95`, `endpoints_latency_p99`, `endpoints_error_volume` and `endpoints_request_count` queries (`window=1h` only, 5-minute step). Those feed `listEndpoints` / `getEndpoint` `runtime` and are omitted from the catalog. Other queries reject `endpointId`. Other windows are not available for these queries.
Three queries serve one app's overview, all over `window=24h` at `step_s` 900 and all requiring the public app id: `app_traffic_24h` returns `requests`, `client_errors` (4xx) and `server_errors` (5xx) as request counts; `app_worker_seconds_24h` returns `startup`, `execution` and `idle` as worker-seconds, whose three values in a bucket sum to that bucket's worker time; and `app_cold_starts_24h` returns `cold_starts` as a count. They report counts and totals rather than rates or ratios, so a per-minute figure is a bucket value divided by `step_s / 60` and a 24h ratio is one summed axis over another — summing first and dividing once, because averaging a per-bucket ratio across the axis does not give the 24h ratio. These queries are absent from `listInsightsQueries`: they back the overview rather than the Metrics tab. Other windows are not available for them.
Corresponds with GET /v1/metrics/queries/{queryId}/series (the `GetMetricSeries` operationId).
func (*Client) GetSource ¶
func (c *Client) GetSource(ctx context.Context, sourceId SourceId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetSource Get a source
Returns the immutable source artifact a completed upload published: its type and the length and digest upload completion verified. A source is organization-scoped and may be named by any number of apps and versions in that organization; one belonging to another organization returns `404`. There is no list and no delete.
Corresponds with GET /v1/sources/{sourceId} (the `GetSource` operationId).
func (*Client) GetSourceUpload ¶
func (c *Client) GetSourceUpload(ctx context.Context, uploadId SourceUploadId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetSourceUpload Get a source upload
Returns the upload session belonging to the authenticated organization. Once the upload is `ready` the session carries the `sourceId` it published. An upload belonging to another organization returns `404`.
Corresponds with GET /v1/source-uploads/{uploadId} (the `GetSourceUpload` operationId).
func (*Client) GetTask ¶
func (c *Client) GetTask(ctx context.Context, appId AppId, taskId TaskId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetTask Get a task
Returns the task's current status, read through the inference transport layer from the shared result store. When `completed`, includes the result `output` and `completedAt`; when `failed`, includes `error`; when `pending`, neither is set. If the app is `stopped`, `deleting`, or `failed`, accepted task results stay readable. A `404 Not Found` means the task cannot currently be verified for this app. Because enqueue-time ownership tracking is best effort, a recently returned task ID can temporarily return `404`; retry it within the normal polling window. Unknown or deleted apps also return `404 Not Found`.
Corresponds with GET /v1/apps/{appId}/tasks/{taskId} (the `GetTask` operationId).
func (*Client) GetUsageSummary ¶
func (c *Client) GetUsageSummary(ctx context.Context, params *GetUsageSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetUsageSummary Summarize usage over a time range
GPU time and spend for the authenticated organization, aggregated over a half-open window and grouped by the dimensions asked for.
Every figure is derived on read from the immutable usage ledger, the effective-dated price catalog and the organization's capacity commitments. Two consequences follow. The window is bounded, because the read folds every event of every worker in it. And a worker whose recorded life cannot be priced fails the request rather than being left out of the totals, because a total that silently omits usage is a wrong number a caller cannot see is wrong. These failures return `500`, with no partial totals.
`paygSpend` is provisional pay-as-you-go accrual, not a settled charge. It excludes whole-second finalization rounding and ledger adjustments. `paygEquivalentValue` prices the same time at the catalog rate whatever covered it, so the difference between them is what a capacity commitment saved. While commitment coverage is not yet applied by settlement, an organization holding a commitment sees a split here that the credit ledger has not yet applied.
Corresponds with GET /v1/usage/summary (the `GetUsageSummary` operationId).
func (*Client) GetVersion ¶
func (c *Client) GetVersion(ctx context.Context, appId AppId, versionNumber int32, reqEditors ...RequestEditorFn) (*http.Response, error)
GetVersion Get a version
Corresponds with GET /v1/apps/{appId}/versions/{versionNumber} (the `GetVersion` operationId).
func (*Client) GetWorker ¶
func (c *Client) GetWorker(ctx context.Context, appId AppId, workerId WorkerId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetWorker Get a worker
Returns one worker by id within the app. The id is the Kubernetes pod UID recorded by the reconciler. A worker that belongs to another app (or tenant) is not found.
Corresponds with GET /v1/apps/{appId}/workers/{workerId} (the `GetWorker` operationId).
func (*Client) ListAppEnvironmentVariables ¶
func (c *Client) ListAppEnvironmentVariables(ctx context.Context, appId AppId, params *ListAppEnvironmentVariablesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAppEnvironmentVariables List app environment variables
Corresponds with GET /v1/apps/{appId}/environment-variables (the `ListAppEnvironmentVariables` operationId).
func (*Client) ListAppErrors ¶
func (c *Client) ListAppErrors(ctx context.Context, appId AppId, params *ListAppErrorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAppErrors List request errors for an app
One page of failed inference requests for this app, newest first. Omit `statusClass` for both 4xx and 5xx. The cursor is opaque and is only valid with the same `window` and `statusClass` it was issued under.
Corresponds with GET /v1/apps/{appId}/errors (the `ListAppErrors` operationId).
func (*Client) ListAppEvents ¶
func (c *Client) ListAppEvents(ctx context.Context, appId AppId, params *ListAppEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAppEvents List app events
Corresponds with GET /v1/apps/{appId}/events (the `ListAppEvents` operationId).
func (*Client) ListAppSecrets ¶
func (c *Client) ListAppSecrets(ctx context.Context, appId AppId, params *ListAppSecretsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAppSecrets List secrets attached to an app
Corresponds with GET /v1/apps/{appId}/secrets (the `ListAppSecrets` operationId).
func (*Client) ListApps ¶
func (c *Client) ListApps(ctx context.Context, params *ListAppsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListApps List apps
Returns a page of the organization's apps. Filters combine with AND; soft-deleted apps are excluded unless `status=deleted` is requested explicitly. Favorited apps appear before non-favorited apps, with the selected ordering applied within each group.
A `cursor` is only valid for the `sort` and filters it was issued under — reusing one across a different ordering or filter set returns `400`.
Corresponds with GET /v1/apps (the `ListApps` operationId).
func (*Client) ListBuilds ¶
func (c *Client) ListBuilds(ctx context.Context, appId AppId, params *ListBuildsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListBuilds List builds
Corresponds with GET /v1/apps/{appId}/builds (the `ListBuilds` operationId).
func (*Client) ListEndpoints ¶
func (c *Client) ListEndpoints(ctx context.Context, appId AppId, params *ListEndpointsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListEndpoints List endpoints
Lists the endpoints of the app's active version. The set is written by the source itself — a code build's introspection, or a container's config document — and is replaced atomically whenever a version activates, so a deploy of a newer version or a rollback to an older one is immediately reflected here. Empty while the app is `initializing`: nothing is routable until its first build is ready and deployed.
Each row may include `runtime` (status, req/min, p95, p99) from the latest 5-minute Insights window. Those fields are omitted when metrics cannot be read or the endpoint has no samples; identity always comes from Postgres.
Corresponds with GET /v1/apps/{appId}/endpoints (the `ListEndpoints` operationId).
func (*Client) ListGpuTypes ¶
func (c *Client) ListGpuTypes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListGpuTypes List supported GPU types and their pricing
Returns the global GPU type catalog and pricing. The request requires authentication. Customer principals receive only GPU types with capacity currently offered to customers; a type whose hardware is not yet cleared for customer workloads is omitted. The Runware principal receives the full catalog, including retired types and types not yet offered. Retired entries carry `deletedAt`. Each entry's `pricing` is the price currently in effect.
Corresponds with GET /v1/gpu-types (the `ListGpuTypes` operationId).
func (*Client) ListInsightsQueries ¶
func (c *Client) ListInsightsQueries(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListInsightsQueries List the metric and log queries this build can answer
The catalog: every named query, its unit and aggregation, the selectors it accepts, the series it returns, and the windows actually backed by stored series.
This is the source of query ids. Clients discover ids here rather than carrying a list of their own, and render window tabs from `windows` rather than from the full ladder, so a window whose storage tier has no backing series stays invisible instead of rendering a tab with nothing behind it.
Corresponds with GET /v1/metrics/queries (the `ListInsightsQueries` operationId).
func (*Client) ListReservedCapacity ¶
func (c *Client) ListReservedCapacity(ctx context.Context, params *ListReservedCapacityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListReservedCapacity Report reserved capacity and its use
What the authenticated organization has reserved, what it is using of it now, and what overflowed to pay-as-you-go.
One entry per commitment scope — one GPU type in one region — because compatible terms add together and cover an allocation between them. The terms that make up the scope are listed with their own dates and quantities.
Counts describe recorded billable state at the window end, so a report of a past period describes that period rather than mixing it with the present. A scope with an effective commitment appears even when nothing is using it: an idle reservation is still charged for, and is what the customer most needs to see. Scopes whose terms expired during the period remain with their historical usage and zero committed capacity at the window end.
The fixed commitment charge is not here. Serverless meters usage and does not own that charge; the commerce system invoices it from the contract schedule. Usage that cannot be priced returns `500`, with no partial report.
Corresponds with GET /v1/reserved-capacity (the `ListReservedCapacity` operationId).
func (*Client) ListSecrets ¶
func (c *Client) ListSecrets(ctx context.Context, params *ListSecretsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSecrets List secrets
Returns secret metadata only; encrypted values are never returned.
Corresponds with GET /v1/secrets (the `ListSecrets` operationId).
func (*Client) ListTasks ¶
func (c *Client) ListTasks(ctx context.Context, appId AppId, params *ListTasksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListTasks List tasks for an app
Lists TTL-bounded asynchronous task metadata for this app so a client can recover task ids after an interrupted long-poll or CLI session. Pending includes queued, running and retrying work. Tasks appear only within the configured recovery window. A page can be empty and still have `nextCursor`; continue until it is null. Pending entries are best effort and may disappear if the recovery store restarts; tracked tasks reappear on completion. This is not persisted task history. A task id names one task, so resubmitting one does not add a second entry here. If the app is `stopped`, `deleting`, or `failed`, recovery stays available. Unknown or deleted apps return `404 Not Found`.
Corresponds with GET /v1/apps/{appId}/tasks (the `ListTasks` operationId).
func (*Client) ListUsageEvents ¶
func (c *Client) ListUsageEvents(ctx context.Context, params *ListUsageEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListUsageEvents List usage events
Append-only billing telemetry; one row per worker state transition.
Corresponds with GET /v1/usage (the `ListUsageEvents` operationId).
func (*Client) ListVersions ¶
func (c *Client) ListVersions(ctx context.Context, appId AppId, params *ListVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListVersions List versions
Corresponds with GET /v1/apps/{appId}/versions (the `ListVersions` operationId).
func (*Client) ListWorkers ¶
func (c *Client) ListWorkers(ctx context.Context, appId AppId, params *ListWorkersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListWorkers List workers
Returns a newest-first page of workers observed for the app (including terminal `stopped` rows until purged). Omitted `versionId` scopes the page to the app's `activeVersionId`. An app with no active version therefore answers an empty default page — not that it has no workers, only that none are pinned. Optional `state`, `status` and `q` narrow the page further; a cursor must be replayed under the same filters it was issued with.
Corresponds with GET /v1/apps/{appId}/workers (the `ListWorkers` operationId).
func (*Client) ResumeApp ¶
func (c *Client) ResumeApp(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*http.Response, error)
ResumeApp Resume an app
Moves the app to `initializing` and returns `202` once that intent is persisted. The Scaler then starts workers and sets the app to `active`; tasks that remained queued when the app stopped are consumed as workers come online. Precondition: `status = stopped`.
Corresponds with POST /v1/apps/{appId}/resume (the `ResumeApp` operationId).
func (*Client) StartAsyncTask ¶
func (c *Client) StartAsyncTask(ctx context.Context, appId AppId, endpointPath EndpointPath, body StartAsyncTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
StartAsyncTask Start a new async task
Starts a new async task on `appId`, routing the request body payload to an available worker. The task runs asynchronously and the response is `202`; poll `GET /v1/apps/{appId}/tasks/{taskId}` for completion. Resubmitting a task id is answered with the task it already names rather than starting a second one, so the `202` can carry a task that has already finished: read its `status` instead of assuming `pending`, and note it may name a different `appId`. Apps in `initializing`, `active`, or `stopping` accept invocation, with two exceptions: an `initializing` app whose first rollout has not produced a version returns `409 Conflict`, and an `active` app the platform has observed to have no workload able to serve returns `503 Service Unavailable` with no task minted. `stopped`, `deleting`, and `failed` return `409 Conflict`; unknown or deleted apps return `404 Not Found`. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden`, distinguishing that from an app that does not exist. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes. Endpoint membership is checked against the active version's endpoint set before the task is accepted: an endpoint the app does not declare returns `404` whose `endpointPath` extension member carries the rejected path, distinguishing it from an unknown app, and the task never enters the queue.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/apps/{appId}/invoke-async/{endpointPath} (the `StartAsyncTask` operationId).
func (*Client) StartAsyncTaskWithBody ¶
func (c *Client) StartAsyncTaskWithBody(ctx context.Context, appId AppId, endpointPath EndpointPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
StartAsyncTaskWithBody Start a new async task
Starts a new async task on `appId`, routing the request body payload to an available worker. The task runs asynchronously and the response is `202`; poll `GET /v1/apps/{appId}/tasks/{taskId}` for completion. Resubmitting a task id is answered with the task it already names rather than starting a second one, so the `202` can carry a task that has already finished: read its `status` instead of assuming `pending`, and note it may name a different `appId`. Apps in `initializing`, `active`, or `stopping` accept invocation, with two exceptions: an `initializing` app whose first rollout has not produced a version returns `409 Conflict`, and an `active` app the platform has observed to have no workload able to serve returns `503 Service Unavailable` with no task minted. `stopped`, `deleting`, and `failed` return `409 Conflict`; unknown or deleted apps return `404 Not Found`. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden`, distinguishing that from an app that does not exist. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes. Endpoint membership is checked against the active version's endpoint set before the task is accepted: an endpoint the app does not declare returns `404` whose `endpointPath` extension member carries the rejected path, distinguishing it from an unknown app, and the task never enters the queue.
Takes any type of body and a specified content type.
Corresponds with POST /v1/apps/{appId}/invoke-async/{endpointPath} (the `StartAsyncTask` operationId).
func (*Client) StartSyncTask ¶
func (c *Client) StartSyncTask(ctx context.Context, appId AppId, endpointPath EndpointPath, body StartSyncTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
StartSyncTask Start a new sync task
Starts a new sync task on `appId`, routing the request body payload to an available worker. The request blocks until the task is terminal and returns the result inline (`200`). Resubmitting a task id waits on the task it already names rather than starting a second one, so the `200` carries that task's result and may name a different `appId` — poll it under the one returned. A task that outlives the wait window is **not** a failure: the task is still queued or running, and the response is `202` carrying that task with `status: pending` — the same shape `invoke-async` returns, and it names the owning `appId` on a resubmission just as the `200` does. Poll `GET /v1/apps/{appId}/tasks/{taskId}` for its result. A request the platform cannot attribute to an accepted task fails instead, with no task to poll. Apps in `initializing`, `active`, or `stopping` accept invocation, with two exceptions: an `initializing` app whose first rollout has not produced a version returns `409 Conflict`, and an `active` app the platform has observed to have no workload able to serve returns `503 Service Unavailable` with no task minted. `stopped`, `deleting`, and `failed` return `409 Conflict`; unknown or deleted apps return `404 Not Found`. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden`, distinguishing that from an app that does not exist. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes. Endpoint membership is checked against the active version's endpoint set before the task is accepted: an endpoint the app does not declare returns `404` whose `endpointPath` extension member carries the rejected path, distinguishing it from an unknown app, and the task never enters the queue.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/apps/{appId}/invoke-sync/{endpointPath} (the `StartSyncTask` operationId).
func (*Client) StartSyncTaskWithBody ¶
func (c *Client) StartSyncTaskWithBody(ctx context.Context, appId AppId, endpointPath EndpointPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
StartSyncTaskWithBody Start a new sync task
Starts a new sync task on `appId`, routing the request body payload to an available worker. The request blocks until the task is terminal and returns the result inline (`200`). Resubmitting a task id waits on the task it already names rather than starting a second one, so the `200` carries that task's result and may name a different `appId` — poll it under the one returned. A task that outlives the wait window is **not** a failure: the task is still queued or running, and the response is `202` carrying that task with `status: pending` — the same shape `invoke-async` returns, and it names the owning `appId` on a resubmission just as the `200` does. Poll `GET /v1/apps/{appId}/tasks/{taskId}` for its result. A request the platform cannot attribute to an accepted task fails instead, with no task to poll. Apps in `initializing`, `active`, or `stopping` accept invocation, with two exceptions: an `initializing` app whose first rollout has not produced a version returns `409 Conflict`, and an `active` app the platform has observed to have no workload able to serve returns `503 Service Unavailable` with no task minted. `stopped`, `deleting`, and `failed` return `409 Conflict`; unknown or deleted apps return `404 Not Found`. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden`, distinguishing that from an app that does not exist. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes. Endpoint membership is checked against the active version's endpoint set before the task is accepted: an endpoint the app does not declare returns `404` whose `endpointPath` extension member carries the rejected path, distinguishing it from an unknown app, and the task never enters the queue.
Takes any type of body and a specified content type.
Corresponds with POST /v1/apps/{appId}/invoke-sync/{endpointPath} (the `StartSyncTask` operationId).
func (*Client) StopApp ¶
func (c *Client) StopApp(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*http.Response, error)
StopApp Stop an app
Moves the app to `stopping` and returns `202` once that intent is persisted. Scale-to-zero and worker drain are performed asynchronously by the Scaler; `status` becomes `stopped` once all workers drain. In-flight tasks have a fixed, platform-managed grace period to complete; workers that exceed it are force-terminated and their tasks return to the queue per delivery guarantees. New task submissions remain accepted while `stopping`; after the app reaches `stopped`, submissions return `409 Conflict`. Precondition: `status` is `active` or `failed` — a rollout that failed can leave a workload running, and a stop is what takes it away without deleting the app.
Corresponds with POST /v1/apps/{appId}/stop (the `StopApp` operationId).
func (*Client) TailLogEntries ¶
func (c *Client) TailLogEntries(ctx context.Context, queryId QueryId, params *TailLogEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
TailLogEntries Follow a named application log query
Streams new application log entries as Server-Sent Events. The stream sends keepalive comments while quiet and ends with an `end` event when its connection lifetime expires or the service shuts down. Clients should reconnect after an `end` event. Use the `runtime_tail` query id; queries that sort or aggregate are rejected because they cannot be followed live.
Corresponds with GET /v1/logs/queries/{queryId}/tail (the `TailLogEntries` operationId).
func (*Client) UnfavoriteApp ¶
func (c *Client) UnfavoriteApp(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*http.Response, error)
UnfavoriteApp Unfavorite an app
Removes the organization favorite pin from the app. Idempotent: unfavoriting an app that is not favorited succeeds and returns the app with `isFavorite: false`. Valid in any status including `deleting` and `deleted` — unpinning is not an app lifecycle mutation. Missing apps return `404`.
Corresponds with DELETE /v1/apps/{appId}/favorite (the `UnfavoriteApp` operationId).
func (*Client) UpdateApp ¶
func (c *Client) UpdateApp(ctx context.Context, appId AppId, body UpdateAppJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateApp Update an app
Patches one or more aspects of an app in place. All fields are optional; omitted fields are left unchanged. Valid in any non-`deleted` status, including `stopped` (changes apply on `resume`). Lifecycle transitions use the dedicated `deploy`, `stop`, `resume`, and `delete` operations. A configuration or `environmentVariables` change records a new version with the same image. If that image is deployable, the update pins it as `activeVersionId` and rolls the workload when the app is `active` or `initializing`. A `failed` app is moved to `initializing` and rolled, the same as `POST /deploy`. If the image is not deployable, the version is recorded and `activeVersionId` is left unchanged. If the roll fails, `activeVersionId` is restored and the previous configuration keeps serving. A name-only change records a version and does not pin. A `stopped` or `stopping` app pins the version and rolls it on `resume`. A configuration, `environmentVariables`, or `appSource` change while a create or resume rollout is already in progress returns `409 Conflict`. A name-only or `secrets`-only change does not. `appSource` starts a build and records version N+1 with a new image tag. The deploy queue carries the build-then-deploy tail; `activeVersionId` moves only when that rollout completes. A builder rejection (400 where a container document's parser refused it, 422 where it parsed and broke a rule) leaves the app on its current version and writes no version row and no build row. After the builder accepts, version N+1 is recorded even if a concurrent secret deactivation, an env/secret collision, or the 25-deployment attachment ceiling below prevents this request's env/secrets overlay; in that case the previous environmentVariables and attachment set stay in place and are what the new version snapshots, and the `422` the standalone case below returns does not apply here — the request still succeeds. `environmentVariables` replaces the whole set: a key absent from the map is deleted, and a null value omits that key from the new set. The resolved map is snapshotted onto the new version. `secrets` replaces the whole attachment set. An attachment absent from the array is detached. Injected names must not collide with a plain environment variable on the app; the combined set of plain variables and attachments is capped at 100, and each individual secret can be attached to at most 25 deployments total — an entry that would push a secret past that returns `422`. This is a control-plane record only — secret values do not reach a pod, and the version snapshot carries no secrets — so a secrets-only change does not roll the workload. Endpoints are not a field of this contract: the set belongs to the app source, so it changes only when a new version with a new source builds and deploys.
Takes a body of the `application/json` content type.
Corresponds with PATCH /v1/apps/{appId} (the `UpdateApp` operationId).
func (*Client) UpdateAppEnvironmentVariable ¶
func (c *Client) UpdateAppEnvironmentVariable(ctx context.Context, appId AppId, variableName EnvironmentVariableName, body UpdateAppEnvironmentVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateAppEnvironmentVariable Update an app environment variable
Sets one environment variable, creating it if absent. Names the platform sets on the serving container itself are rejected with `422`, as they are on create.
A write that changes the stored value records a new version carrying the live environment set and the same image. If that image is deployable, the write pins it as `activeVersionId` and rolls the workload when the app can take one (`active`, `initializing`, or `failed` which becomes `initializing`). A `stopped` or `stopping` app pins the version and rolls it on `resume`. A write that leaves the stored value unchanged records no version and does not roll.
A write while a rollout of this app is still in flight returns `409 Conflict` and does not store the value. Each changing write is serialized behind that rollout, so setting several variables one at a time is that many sequential rolls with `409`s between them. Replace the whole set in one request with `PATCH /v1/apps/{appId}` `environmentVariables`.
An app holds at most 100 environment bindings in total — plain variables plus attached secrets — the same combined ceiling `AppCreate.environmentVariables` declares (create rejects secrets in-request; attach grows the set later). Overwriting an existing variable is always allowed; adding one past the ceiling returns `422`.
The name must not collide with a secret already attached to this app (the secret's injected env var name). Secrets and plain env vars share the pod environment; a duplicate would be resolved last-wins by kubelet with no error, so the server rejects it with `422`. The reverse check applies on attach.
Takes a body of the `application/json` content type.
Corresponds with PUT /v1/apps/{appId}/environment-variables/{variableName} (the `UpdateAppEnvironmentVariable` operationId).
func (*Client) UpdateAppEnvironmentVariableWithBody ¶
func (c *Client) UpdateAppEnvironmentVariableWithBody(ctx context.Context, appId AppId, variableName EnvironmentVariableName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateAppEnvironmentVariableWithBody Update an app environment variable
Sets one environment variable, creating it if absent. Names the platform sets on the serving container itself are rejected with `422`, as they are on create.
A write that changes the stored value records a new version carrying the live environment set and the same image. If that image is deployable, the write pins it as `activeVersionId` and rolls the workload when the app can take one (`active`, `initializing`, or `failed` which becomes `initializing`). A `stopped` or `stopping` app pins the version and rolls it on `resume`. A write that leaves the stored value unchanged records no version and does not roll.
A write while a rollout of this app is still in flight returns `409 Conflict` and does not store the value. Each changing write is serialized behind that rollout, so setting several variables one at a time is that many sequential rolls with `409`s between them. Replace the whole set in one request with `PATCH /v1/apps/{appId}` `environmentVariables`.
An app holds at most 100 environment bindings in total — plain variables plus attached secrets — the same combined ceiling `AppCreate.environmentVariables` declares (create rejects secrets in-request; attach grows the set later). Overwriting an existing variable is always allowed; adding one past the ceiling returns `422`.
The name must not collide with a secret already attached to this app (the secret's injected env var name). Secrets and plain env vars share the pod environment; a duplicate would be resolved last-wins by kubelet with no error, so the server rejects it with `422`. The reverse check applies on attach.
Takes any type of body and a specified content type.
Corresponds with PUT /v1/apps/{appId}/environment-variables/{variableName} (the `UpdateAppEnvironmentVariable` operationId).
func (*Client) UpdateAppWithBody ¶
func (c *Client) UpdateAppWithBody(ctx context.Context, appId AppId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateAppWithBody Update an app
Patches one or more aspects of an app in place. All fields are optional; omitted fields are left unchanged. Valid in any non-`deleted` status, including `stopped` (changes apply on `resume`). Lifecycle transitions use the dedicated `deploy`, `stop`, `resume`, and `delete` operations. A configuration or `environmentVariables` change records a new version with the same image. If that image is deployable, the update pins it as `activeVersionId` and rolls the workload when the app is `active` or `initializing`. A `failed` app is moved to `initializing` and rolled, the same as `POST /deploy`. If the image is not deployable, the version is recorded and `activeVersionId` is left unchanged. If the roll fails, `activeVersionId` is restored and the previous configuration keeps serving. A name-only change records a version and does not pin. A `stopped` or `stopping` app pins the version and rolls it on `resume`. A configuration, `environmentVariables`, or `appSource` change while a create or resume rollout is already in progress returns `409 Conflict`. A name-only or `secrets`-only change does not. `appSource` starts a build and records version N+1 with a new image tag. The deploy queue carries the build-then-deploy tail; `activeVersionId` moves only when that rollout completes. A builder rejection (400 where a container document's parser refused it, 422 where it parsed and broke a rule) leaves the app on its current version and writes no version row and no build row. After the builder accepts, version N+1 is recorded even if a concurrent secret deactivation, an env/secret collision, or the 25-deployment attachment ceiling below prevents this request's env/secrets overlay; in that case the previous environmentVariables and attachment set stay in place and are what the new version snapshots, and the `422` the standalone case below returns does not apply here — the request still succeeds. `environmentVariables` replaces the whole set: a key absent from the map is deleted, and a null value omits that key from the new set. The resolved map is snapshotted onto the new version. `secrets` replaces the whole attachment set. An attachment absent from the array is detached. Injected names must not collide with a plain environment variable on the app; the combined set of plain variables and attachments is capped at 100, and each individual secret can be attached to at most 25 deployments total — an entry that would push a secret past that returns `422`. This is a control-plane record only — secret values do not reach a pod, and the version snapshot carries no secrets — so a secrets-only change does not roll the workload. Endpoints are not a field of this contract: the set belongs to the app source, so it changes only when a new version with a new source builds and deploys.
Takes any type of body and a specified content type.
Corresponds with PATCH /v1/apps/{appId} (the `UpdateApp` operationId).
func (*Client) UpdateSecret ¶
func (c *Client) UpdateSecret(ctx context.Context, secretName SecretName, body UpdateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateSecret Update a secret
Re-encrypts the value under the same name (no rename). Rolls every live deployment that attaches this secret in place so a running worker picks up the new value. If a rollout is already in progress when this commits, this change is not guaranteed to land on it — it reaches the worker on a later redeploy instead. A deployment that is not live picks it up on its next deploy for another reason. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden` — the per-organization CryptoKey that seals the value is only minted when the tenancy is active. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes.
Takes a body of the `application/json` content type.
Corresponds with PUT /v1/secrets/{secretName} (the `UpdateSecret` operationId).
func (*Client) UpdateSecretWithBody ¶
func (c *Client) UpdateSecretWithBody(ctx context.Context, secretName SecretName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateSecretWithBody Update a secret
Re-encrypts the value under the same name (no rename). Rolls every live deployment that attaches this secret in place so a running worker picks up the new value. If a rollout is already in progress when this commits, this change is not guaranteed to land on it — it reaches the worker on a later redeploy instead. A deployment that is not live picks it up on its next deploy for another reason. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden` — the per-organization CryptoKey that seals the value is only minted when the tenancy is active. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes.
Takes any type of body and a specified content type.
Corresponds with PUT /v1/secrets/{secretName} (the `UpdateSecret` operationId).
type ClientInterface ¶
type ClientInterface interface {
// GetAppSummary App summary metrics for the authenticated organization
//
// Aggregate dashboard metrics across all apps owned by the authenticated organization. App and worker tallies are always present. Request and error-rate totals come from the metrics store and are omitted when that hop cannot answer rather than reported as zero. Spend covers a rolling 24 hours and is omitted when the usage cannot be priced.
//
// Corresponds with GET /v1/app-summary (the `GetAppSummary` operationId).
GetAppSummary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListApps List apps
//
// Returns a page of the organization's apps. Filters combine with AND; soft-deleted apps are excluded unless `status=deleted` is requested explicitly. Favorited apps appear before non-favorited apps, with the selected ordering applied within each group.
//
// A `cursor` is only valid for the `sort` and filters it was issued under — reusing one across a different ordering or filter set returns `400`.
//
// Corresponds with GET /v1/apps (the `ListApps` operationId).
ListApps(ctx context.Context, params *ListAppsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAppWithBody Create an app
//
// Creates an app together with its worker configuration, environment variables and endpoints, and records version `1` — the immutable description of what to deploy. The app starts in `initializing`, and what happens next depends on the app source type:
//
// - `code` source: the codebase is submitted to the build pipeline; once the image is built
// and workers become healthy the app transitions to `active` and `activeVersionId`
// points at that version. If the build, validation, or rollout fails the app is
// marked `failed`.
//
// - `container` source: the submitted zip (wrapper `Dockerfile` + `container.yaml`)
// goes through the same build pipeline — the wrapper image is built, published and
// deployed, so the version carries a `buildId` and the app follows the same
// lifecycle as a code source. An invalid `container.yaml` rejects the create
// before any build capacity is spent — `400` where the document could not be
// parsed at all, `422` where it parsed and broke a rule.
//
//
// `activeVersionId` is null until a rollout completes: a version records what should run, and only a finished deploy says what does.
//
// `secrets` attaches organization secrets that already exist. It is the app's initial attachment set, so the first rollout carries their values into the worker. This route does not create a secret — use `POST /v1/secrets` first. A name that is unknown to the organization, or that is not `active`, returns `404`. A name that collides with a key in `environmentVariables`, a repeated name and a set that goes past the binding limit each return `422`. The whole set is checked before any build capacity is spent.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/apps (the `CreateApp` operationId).
CreateAppWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateApp Create an app
//
// Creates an app together with its worker configuration, environment variables and endpoints, and records version `1` — the immutable description of what to deploy. The app starts in `initializing`, and what happens next depends on the app source type:
//
// - `code` source: the codebase is submitted to the build pipeline; once the image is built
// and workers become healthy the app transitions to `active` and `activeVersionId`
// points at that version. If the build, validation, or rollout fails the app is
// marked `failed`.
//
// - `container` source: the submitted zip (wrapper `Dockerfile` + `container.yaml`)
// goes through the same build pipeline — the wrapper image is built, published and
// deployed, so the version carries a `buildId` and the app follows the same
// lifecycle as a code source. An invalid `container.yaml` rejects the create
// before any build capacity is spent — `400` where the document could not be
// parsed at all, `422` where it parsed and broke a rule.
//
//
// `activeVersionId` is null until a rollout completes: a version records what should run, and only a finished deploy says what does.
//
// `secrets` attaches organization secrets that already exist. It is the app's initial attachment set, so the first rollout carries their values into the worker. This route does not create a secret — use `POST /v1/secrets` first. A name that is unknown to the organization, or that is not `active`, returns `404`. A name that collides with a key in `environmentVariables`, a repeated name and a set that goes past the binding limit each return `422`. The whole set is checked before any build capacity is spent.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/apps (the `CreateApp` operationId).
CreateApp(ctx context.Context, body CreateAppJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApp Delete an app
//
// Soft delete. Sets `status = deleting` and returns `202` once that intent is persisted. Router removal, canceling in-progress builds, and worker drain (`draining → stopping → stopped`) are performed asynchronously by the deployer/Scaler; `status` becomes `deleted` once all workers stop. All rows are retained for billing finalization, audit, and usage history. Idempotent if the app is already `deleting`.
//
// The `appId` is released once `status` reaches `deleted`, and not before: while the app is `deleting` its workload is still being torn down and the name stays taken. A new app created under a released name is a new app and inherits nothing — no version, no build, no event history, and no workers.
//
// Corresponds with DELETE /v1/apps/{appId} (the `DeleteApp` operationId).
DeleteApp(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApp Get an app
//
// Returns the app the authenticated organization owns under this `appId`. An unknown app and a soft-deleted one both return `404 Not Found`: a deleted app is gone to its owner, and its rows are retained only for billing and audit. To read deleted apps, list them with `status=deleted`.
//
// Corresponds with GET /v1/apps/{appId} (the `GetApp` operationId).
GetApp(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateAppWithBody Update an app
//
// Patches one or more aspects of an app in place. All fields are optional; omitted fields are left unchanged. Valid in any non-`deleted` status, including `stopped` (changes apply on `resume`). Lifecycle transitions use the dedicated `deploy`, `stop`, `resume`, and `delete` operations.
// A configuration or `environmentVariables` change records a new version with the same image. If that image is deployable, the update pins it as `activeVersionId` and rolls the workload when the app is `active` or `initializing`. A `failed` app is moved to `initializing` and rolled, the same as `POST /deploy`. If the image is not deployable, the version is recorded and `activeVersionId` is left unchanged. If the roll fails, `activeVersionId` is restored and the previous configuration keeps serving. A name-only change records a version and does not pin. A `stopped` or `stopping` app pins the version and rolls it on `resume`. A configuration, `environmentVariables`, or `appSource` change while a create or resume rollout is already in progress returns `409 Conflict`. A name-only or `secrets`-only change does not.
// `appSource` starts a build and records version N+1 with a new image tag. The deploy queue carries the build-then-deploy tail; `activeVersionId` moves only when that rollout completes. A builder rejection (400 where a container document's parser refused it, 422 where it parsed and broke a rule) leaves the app on its current version and writes no version row and no build row. After the builder accepts, version N+1 is recorded even if a concurrent secret deactivation, an env/secret collision, or the 25-deployment attachment ceiling below prevents this request's env/secrets overlay; in that case the previous environmentVariables and attachment set stay in place and are what the new version snapshots, and the `422` the standalone case below returns does not apply here — the request still succeeds.
// `environmentVariables` replaces the whole set: a key absent from the map is deleted, and a null value omits that key from the new set. The resolved map is snapshotted onto the new version.
// `secrets` replaces the whole attachment set. An attachment absent from the array is detached. Injected names must not collide with a plain environment variable on the app; the combined set of plain variables and attachments is capped at 100, and each individual secret can be attached to at most 25 deployments total — an entry that would push a secret past that returns `422`. This is a control-plane record only — secret values do not reach a pod, and the version snapshot carries no secrets — so a secrets-only change does not roll the workload.
// Endpoints are not a field of this contract: the set belongs to the app source, so it changes only when a new version with a new source builds and deploys.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /v1/apps/{appId} (the `UpdateApp` operationId).
UpdateAppWithBody(ctx context.Context, appId AppId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateApp Update an app
//
// Patches one or more aspects of an app in place. All fields are optional; omitted fields are left unchanged. Valid in any non-`deleted` status, including `stopped` (changes apply on `resume`). Lifecycle transitions use the dedicated `deploy`, `stop`, `resume`, and `delete` operations.
// A configuration or `environmentVariables` change records a new version with the same image. If that image is deployable, the update pins it as `activeVersionId` and rolls the workload when the app is `active` or `initializing`. A `failed` app is moved to `initializing` and rolled, the same as `POST /deploy`. If the image is not deployable, the version is recorded and `activeVersionId` is left unchanged. If the roll fails, `activeVersionId` is restored and the previous configuration keeps serving. A name-only change records a version and does not pin. A `stopped` or `stopping` app pins the version and rolls it on `resume`. A configuration, `environmentVariables`, or `appSource` change while a create or resume rollout is already in progress returns `409 Conflict`. A name-only or `secrets`-only change does not.
// `appSource` starts a build and records version N+1 with a new image tag. The deploy queue carries the build-then-deploy tail; `activeVersionId` moves only when that rollout completes. A builder rejection (400 where a container document's parser refused it, 422 where it parsed and broke a rule) leaves the app on its current version and writes no version row and no build row. After the builder accepts, version N+1 is recorded even if a concurrent secret deactivation, an env/secret collision, or the 25-deployment attachment ceiling below prevents this request's env/secrets overlay; in that case the previous environmentVariables and attachment set stay in place and are what the new version snapshots, and the `422` the standalone case below returns does not apply here — the request still succeeds.
// `environmentVariables` replaces the whole set: a key absent from the map is deleted, and a null value omits that key from the new set. The resolved map is snapshotted onto the new version.
// `secrets` replaces the whole attachment set. An attachment absent from the array is detached. Injected names must not collide with a plain environment variable on the app; the combined set of plain variables and attachments is capped at 100, and each individual secret can be attached to at most 25 deployments total — an entry that would push a secret past that returns `422`. This is a control-plane record only — secret values do not reach a pod, and the version snapshot carries no secrets — so a secrets-only change does not roll the workload.
// Endpoints are not a field of this contract: the set belongs to the app source, so it changes only when a new version with a new source builds and deploys.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /v1/apps/{appId} (the `UpdateApp` operationId).
UpdateApp(ctx context.Context, appId AppId, body UpdateAppJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListBuilds List builds
//
// Corresponds with GET /v1/apps/{appId}/builds (the `ListBuilds` operationId).
ListBuilds(ctx context.Context, appId AppId, params *ListBuildsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteBuild Delete or cancel a build
//
// Cancels a queued or running build and records it as `superseded`. Deleting a queued or running build ends its current rollout without activating the canceled build, so any previous version keeps serving. A terminal build can be deleted once no live rollout still needs it. Ready builds remain while a version references them.
//
// Corresponds with DELETE /v1/apps/{appId}/builds/{buildId} (the `DeleteBuild` operationId).
DeleteBuild(ctx context.Context, appId AppId, buildId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetBuild Get a build
//
// Corresponds with GET /v1/apps/{appId}/builds/{buildId} (the `GetBuild` operationId).
GetBuild(ctx context.Context, appId AppId, buildId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeployVersionWithBody Deploy a version
//
// Activates a `ready` version by number, setting `activeVersionId` and returning `202` once that intent is persisted. Worker rollout, routing switch, and canceling in-progress builds (`superseded`) are performed asynchronously by the deployer/Scaler. Permitted in any addressable status, including `initializing` and `failed`.
// To roll back, supply an older `versionNumber` — the operation is identical to a forward deploy. No new version is created and no rebuild happens: the version's existing image is re-applied. Re-deploying the currently active version is permitted and re-applies it.
// A deploy to a `stopped` or `stopping` app records the version and rolls no workload, because no workers are running: the `202` does not imply a rollout there. The recorded version is the one applied when the app resumes.
// If the roll of a live app fails, `activeVersionId` is restored to the version that kept serving, so the field keeps naming the running image.
// **Rollout** (deployer/Scaler): the platform starts workers on the target version, waits for at least one to become healthy, switches task routing to the new version, then drains old-version workers gracefully. Old workers are given a fixed, platform-managed grace period to finish in-flight tasks before being force-terminated. If new workers fail to become healthy, old workers are not drained and the app continues on the previous version.
// Errors: - Deploy to a `deleting` app returns `409 Conflict` - `versionNumber` not found or not `ready` returns `409 Conflict` - A deploy while a rollout of this app is still in flight returns `409 Conflict`;
// one app rolls to one version at a time. Retry once it completes.
// - Deploy to a non-existent or `deleted` app returns `404 Not Found`
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/apps/{appId}/deploy (the `DeployVersion` operationId).
DeployVersionWithBody(ctx context.Context, appId AppId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeployVersion Deploy a version
//
// Activates a `ready` version by number, setting `activeVersionId` and returning `202` once that intent is persisted. Worker rollout, routing switch, and canceling in-progress builds (`superseded`) are performed asynchronously by the deployer/Scaler. Permitted in any addressable status, including `initializing` and `failed`.
// To roll back, supply an older `versionNumber` — the operation is identical to a forward deploy. No new version is created and no rebuild happens: the version's existing image is re-applied. Re-deploying the currently active version is permitted and re-applies it.
// A deploy to a `stopped` or `stopping` app records the version and rolls no workload, because no workers are running: the `202` does not imply a rollout there. The recorded version is the one applied when the app resumes.
// If the roll of a live app fails, `activeVersionId` is restored to the version that kept serving, so the field keeps naming the running image.
// **Rollout** (deployer/Scaler): the platform starts workers on the target version, waits for at least one to become healthy, switches task routing to the new version, then drains old-version workers gracefully. Old workers are given a fixed, platform-managed grace period to finish in-flight tasks before being force-terminated. If new workers fail to become healthy, old workers are not drained and the app continues on the previous version.
// Errors: - Deploy to a `deleting` app returns `409 Conflict` - `versionNumber` not found or not `ready` returns `409 Conflict` - A deploy while a rollout of this app is still in flight returns `409 Conflict`;
// one app rolls to one version at a time. Retry once it completes.
// - Deploy to a non-existent or `deleted` app returns `404 Not Found`
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/apps/{appId}/deploy (the `DeployVersion` operationId).
DeployVersion(ctx context.Context, appId AppId, body DeployVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListEndpoints List endpoints
//
// Lists the endpoints of the app's active version. The set is written by the source itself — a code build's introspection, or a container's config document — and is replaced atomically whenever a version activates, so a deploy of a newer version or a rollback to an older one is immediately reflected here. Empty while the app is `initializing`: nothing is routable until its first build is ready and deployed.
//
// Each row may include `runtime` (status, req/min, p95, p99) from the latest 5-minute Insights window. Those fields are omitted when metrics cannot be read or the endpoint has no samples; identity always comes from Postgres.
//
// Corresponds with GET /v1/apps/{appId}/endpoints (the `ListEndpoints` operationId).
ListEndpoints(ctx context.Context, appId AppId, params *ListEndpointsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEndpoint Get an endpoint
//
// Returns one live endpoint on the app. `runtime` is the same optional latest-window traffic as `listEndpoints` and is omitted when metrics cannot be read or the endpoint has no samples.
//
// Corresponds with GET /v1/apps/{appId}/endpoints/{endpointId} (the `GetEndpoint` operationId).
GetEndpoint(ctx context.Context, appId AppId, endpointId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAppEnvironmentVariables List app environment variables
//
// Corresponds with GET /v1/apps/{appId}/environment-variables (the `ListAppEnvironmentVariables` operationId).
ListAppEnvironmentVariables(ctx context.Context, appId AppId, params *ListAppEnvironmentVariablesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteAppEnvironmentVariable Delete an app environment variable
//
// Removes one environment variable. A successful delete records a new version carrying the remaining environment set and the same image. If that image is deployable, the delete pins it as `activeVersionId` and rolls the workload when the app can take one (`active`, `initializing`, or `failed` which becomes `initializing`). A `stopped` or `stopping` app pins the version and rolls it on `resume`. A delete of a key that is present while a rollout of this app is still in flight returns `409 Conflict` and does not remove the value. A name that is not present returns `404` even during that window.
//
// Corresponds with DELETE /v1/apps/{appId}/environment-variables/{variableName} (the `DeleteAppEnvironmentVariable` operationId).
DeleteAppEnvironmentVariable(ctx context.Context, appId AppId, variableName EnvironmentVariableName, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateAppEnvironmentVariableWithBody Update an app environment variable
//
// Sets one environment variable, creating it if absent. Names the platform sets on the serving container itself are rejected with `422`, as they are on create.
//
// A write that changes the stored value records a new version carrying the live environment set and the same image. If that image is deployable, the write pins it as `activeVersionId` and rolls the workload when the app can take one (`active`, `initializing`, or `failed` which becomes `initializing`). A `stopped` or `stopping` app pins the version and rolls it on `resume`. A write that leaves the stored value unchanged records no version and does not roll.
//
// A write while a rollout of this app is still in flight returns `409 Conflict` and does not store the value. Each changing write is serialized behind that rollout, so setting several variables one at a time is that many sequential rolls with `409`s between them. Replace the whole set in one request with `PATCH /v1/apps/{appId}` `environmentVariables`.
//
// An app holds at most 100 environment bindings in total — plain variables plus attached secrets — the same combined ceiling `AppCreate.environmentVariables` declares (create rejects secrets in-request; attach grows the set later). Overwriting an existing variable is always allowed; adding one past the ceiling returns `422`.
//
// The name must not collide with a secret already attached to this app (the secret's injected env var name). Secrets and plain env vars share the pod environment; a duplicate would be resolved last-wins by kubelet with no error, so the server rejects it with `422`. The reverse check applies on attach.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /v1/apps/{appId}/environment-variables/{variableName} (the `UpdateAppEnvironmentVariable` operationId).
UpdateAppEnvironmentVariableWithBody(ctx context.Context, appId AppId, variableName EnvironmentVariableName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateAppEnvironmentVariable Update an app environment variable
//
// Sets one environment variable, creating it if absent. Names the platform sets on the serving container itself are rejected with `422`, as they are on create.
//
// A write that changes the stored value records a new version carrying the live environment set and the same image. If that image is deployable, the write pins it as `activeVersionId` and rolls the workload when the app can take one (`active`, `initializing`, or `failed` which becomes `initializing`). A `stopped` or `stopping` app pins the version and rolls it on `resume`. A write that leaves the stored value unchanged records no version and does not roll.
//
// A write while a rollout of this app is still in flight returns `409 Conflict` and does not store the value. Each changing write is serialized behind that rollout, so setting several variables one at a time is that many sequential rolls with `409`s between them. Replace the whole set in one request with `PATCH /v1/apps/{appId}` `environmentVariables`.
//
// An app holds at most 100 environment bindings in total — plain variables plus attached secrets — the same combined ceiling `AppCreate.environmentVariables` declares (create rejects secrets in-request; attach grows the set later). Overwriting an existing variable is always allowed; adding one past the ceiling returns `422`.
//
// The name must not collide with a secret already attached to this app (the secret's injected env var name). Secrets and plain env vars share the pod environment; a duplicate would be resolved last-wins by kubelet with no error, so the server rejects it with `422`. The reverse check applies on attach.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /v1/apps/{appId}/environment-variables/{variableName} (the `UpdateAppEnvironmentVariable` operationId).
UpdateAppEnvironmentVariable(ctx context.Context, appId AppId, variableName EnvironmentVariableName, body UpdateAppEnvironmentVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAppErrors List request errors for an app
//
// One page of failed inference requests for this app, newest first. Omit `statusClass` for both 4xx and 5xx. The cursor is opaque and is only valid with the same `window` and `statusClass` it was issued under.
//
// Corresponds with GET /v1/apps/{appId}/errors (the `ListAppErrors` operationId).
ListAppErrors(ctx context.Context, appId AppId, params *ListAppErrorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAppEvents List app events
//
// Corresponds with GET /v1/apps/{appId}/events (the `ListAppEvents` operationId).
ListAppEvents(ctx context.Context, appId AppId, params *ListAppEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// UnfavoriteApp Unfavorite an app
//
// Removes the organization favorite pin from the app. Idempotent: unfavoriting an app that is not favorited succeeds and returns the app with `isFavorite: false`. Valid in any status including `deleting` and `deleted` — unpinning is not an app lifecycle mutation. Missing apps return `404`.
//
// Corresponds with DELETE /v1/apps/{appId}/favorite (the `UnfavoriteApp` operationId).
UnfavoriteApp(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*http.Response, error)
// FavoriteApp Favorite an app
//
// Pins the app as a favorite for the authenticated organization so the console can surface it in a Favorites section. Idempotent: favoriting an already-favorited app succeeds and returns the app with `isFavorite: true`. Apps in `deleting` or `deleted` status cannot be favorited (`404`). Soft-delete clears any existing pin when status becomes `deleting`.
//
// Corresponds with PUT /v1/apps/{appId}/favorite (the `FavoriteApp` operationId).
FavoriteApp(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartAsyncTaskWithBody Start a new async task
//
// Starts a new async task on `appId`, routing the request body payload to an available worker. The task runs asynchronously and the response is `202`; poll `GET /v1/apps/{appId}/tasks/{taskId}` for completion. Resubmitting a task id is answered with the task it already names rather than starting a second one, so the `202` can carry a task that has already finished: read its `status` instead of assuming `pending`, and note it may name a different `appId`. Apps in `initializing`, `active`, or `stopping` accept invocation, with two exceptions: an `initializing` app whose first rollout has not produced a version returns `409 Conflict`, and an `active` app the platform has observed to have no workload able to serve returns `503 Service Unavailable` with no task minted. `stopped`, `deleting`, and `failed` return `409 Conflict`; unknown or deleted apps return `404 Not Found`. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden`, distinguishing that from an app that does not exist. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes. Endpoint membership is checked against the active version's endpoint set before the task is accepted: an endpoint the app does not declare returns `404` whose `endpointPath` extension member carries the rejected path, distinguishing it from an unknown app, and the task never enters the queue.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/apps/{appId}/invoke-async/{endpointPath} (the `StartAsyncTask` operationId).
StartAsyncTaskWithBody(ctx context.Context, appId AppId, endpointPath EndpointPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartAsyncTask Start a new async task
//
// Starts a new async task on `appId`, routing the request body payload to an available worker. The task runs asynchronously and the response is `202`; poll `GET /v1/apps/{appId}/tasks/{taskId}` for completion. Resubmitting a task id is answered with the task it already names rather than starting a second one, so the `202` can carry a task that has already finished: read its `status` instead of assuming `pending`, and note it may name a different `appId`. Apps in `initializing`, `active`, or `stopping` accept invocation, with two exceptions: an `initializing` app whose first rollout has not produced a version returns `409 Conflict`, and an `active` app the platform has observed to have no workload able to serve returns `503 Service Unavailable` with no task minted. `stopped`, `deleting`, and `failed` return `409 Conflict`; unknown or deleted apps return `404 Not Found`. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden`, distinguishing that from an app that does not exist. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes. Endpoint membership is checked against the active version's endpoint set before the task is accepted: an endpoint the app does not declare returns `404` whose `endpointPath` extension member carries the rejected path, distinguishing it from an unknown app, and the task never enters the queue.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/apps/{appId}/invoke-async/{endpointPath} (the `StartAsyncTask` operationId).
StartAsyncTask(ctx context.Context, appId AppId, endpointPath EndpointPath, body StartAsyncTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartSyncTaskWithBody Start a new sync task
//
// Starts a new sync task on `appId`, routing the request body payload to an available worker. The request blocks until the task is terminal and returns the result inline (`200`). Resubmitting a task id waits on the task it already names rather than starting a second one, so the `200` carries that task's result and may name a different `appId` — poll it under the one returned. A task that outlives the wait window is **not** a failure: the task is still queued or running, and the response is `202` carrying that task with `status: pending` — the same shape `invoke-async` returns, and it names the owning `appId` on a resubmission just as the `200` does. Poll `GET /v1/apps/{appId}/tasks/{taskId}` for its result. A request the platform cannot attribute to an accepted task fails instead, with no task to poll. Apps in `initializing`, `active`, or `stopping` accept invocation, with two exceptions: an `initializing` app whose first rollout has not produced a version returns `409 Conflict`, and an `active` app the platform has observed to have no workload able to serve returns `503 Service Unavailable` with no task minted. `stopped`, `deleting`, and `failed` return `409 Conflict`; unknown or deleted apps return `404 Not Found`. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden`, distinguishing that from an app that does not exist. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes. Endpoint membership is checked against the active version's endpoint set before the task is accepted: an endpoint the app does not declare returns `404` whose `endpointPath` extension member carries the rejected path, distinguishing it from an unknown app, and the task never enters the queue.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/apps/{appId}/invoke-sync/{endpointPath} (the `StartSyncTask` operationId).
StartSyncTaskWithBody(ctx context.Context, appId AppId, endpointPath EndpointPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartSyncTask Start a new sync task
//
// Starts a new sync task on `appId`, routing the request body payload to an available worker. The request blocks until the task is terminal and returns the result inline (`200`). Resubmitting a task id waits on the task it already names rather than starting a second one, so the `200` carries that task's result and may name a different `appId` — poll it under the one returned. A task that outlives the wait window is **not** a failure: the task is still queued or running, and the response is `202` carrying that task with `status: pending` — the same shape `invoke-async` returns, and it names the owning `appId` on a resubmission just as the `200` does. Poll `GET /v1/apps/{appId}/tasks/{taskId}` for its result. A request the platform cannot attribute to an accepted task fails instead, with no task to poll. Apps in `initializing`, `active`, or `stopping` accept invocation, with two exceptions: an `initializing` app whose first rollout has not produced a version returns `409 Conflict`, and an `active` app the platform has observed to have no workload able to serve returns `503 Service Unavailable` with no task minted. `stopped`, `deleting`, and `failed` return `409 Conflict`; unknown or deleted apps return `404 Not Found`. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden`, distinguishing that from an app that does not exist. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes. Endpoint membership is checked against the active version's endpoint set before the task is accepted: an endpoint the app does not declare returns `404` whose `endpointPath` extension member carries the rejected path, distinguishing it from an unknown app, and the task never enters the queue.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/apps/{appId}/invoke-sync/{endpointPath} (the `StartSyncTask` operationId).
StartSyncTask(ctx context.Context, appId AppId, endpointPath EndpointPath, body StartSyncTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResumeApp Resume an app
//
// Moves the app to `initializing` and returns `202` once that intent is persisted. The Scaler then starts workers and sets the app to `active`; tasks that remained queued when the app stopped are consumed as workers come online. Precondition: `status = stopped`.
//
// Corresponds with POST /v1/apps/{appId}/resume (the `ResumeApp` operationId).
ResumeApp(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAppSecrets List secrets attached to an app
//
// Corresponds with GET /v1/apps/{appId}/secrets (the `ListAppSecrets` operationId).
ListAppSecrets(ctx context.Context, appId AppId, params *ListAppSecretsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AttachAppSecretWithBody Attach a secret to an app
//
// Records that an organization secret is attached to an app under a resolved env-var name, and rolls the app's live deployment in place so a running worker picks up the value without waiting for an unrelated deploy. If a rollout is already in progress when this commits, this attach is not guaranteed to land on it — it reaches the worker on a later redeploy instead. A deployment that is not live records the attachment only — the next resume reads the attach set fresh. Returns `409` if the secret is already attached, or if another attach would use the same env-var name.
// The resolved name (`envVarName`, or `secretName` when omitted) must not already exist as a plain environment variable on this app (`deployment_configs.key`). Both sources use the same pod env namespace, so the server rejects the collision with `422` instead of allowing a last-wins override later. The reverse check applies when setting a plain environment variable.
// An app holds at most 100 environment bindings in total — plain environment variables plus attached secrets — the same combined ceiling as create and the single-key env-var route. Attaching when the app is already at that limit returns `422`.
// A secret can be attached to at most 25 deployments — rolling every attached deployment is what an update or detach costs, so the ceiling bounds that cost rather than the app side of the binding. Attaching past it returns `422`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/apps/{appId}/secrets (the `AttachAppSecret` operationId).
AttachAppSecretWithBody(ctx context.Context, appId AppId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// AttachAppSecret Attach a secret to an app
//
// Records that an organization secret is attached to an app under a resolved env-var name, and rolls the app's live deployment in place so a running worker picks up the value without waiting for an unrelated deploy. If a rollout is already in progress when this commits, this attach is not guaranteed to land on it — it reaches the worker on a later redeploy instead. A deployment that is not live records the attachment only — the next resume reads the attach set fresh. Returns `409` if the secret is already attached, or if another attach would use the same env-var name.
// The resolved name (`envVarName`, or `secretName` when omitted) must not already exist as a plain environment variable on this app (`deployment_configs.key`). Both sources use the same pod env namespace, so the server rejects the collision with `422` instead of allowing a last-wins override later. The reverse check applies when setting a plain environment variable.
// An app holds at most 100 environment bindings in total — plain environment variables plus attached secrets — the same combined ceiling as create and the single-key env-var route. Attaching when the app is already at that limit returns `422`.
// A secret can be attached to at most 25 deployments — rolling every attached deployment is what an update or detach costs, so the ceiling bounds that cost rather than the app side of the binding. Attaching past it returns `422`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/apps/{appId}/secrets (the `AttachAppSecret` operationId).
AttachAppSecret(ctx context.Context, appId AppId, body AttachAppSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DetachAppSecret Detach a secret from an app
//
// Removes the attachment and rolls the app's live deployment in place so a running worker stops receiving the value. If a rollout is already in progress when this commits, this detach is not guaranteed to land on it — the worker stops receiving the value on a later redeploy instead. A deployment that is not live has the removal recorded only — there is nothing to roll until it resumes.
//
// Corresponds with DELETE /v1/apps/{appId}/secrets/{secretName} (the `DetachAppSecret` operationId).
DetachAppSecret(ctx context.Context, appId AppId, secretName SecretName, reqEditors ...RequestEditorFn) (*http.Response, error)
// StopApp Stop an app
//
// Moves the app to `stopping` and returns `202` once that intent is persisted. Scale-to-zero and worker drain are performed asynchronously by the Scaler; `status` becomes `stopped` once all workers drain. In-flight tasks have a fixed, platform-managed grace period to complete; workers that exceed it are force-terminated and their tasks return to the queue per delivery guarantees. New task submissions remain accepted while `stopping`; after the app reaches `stopped`, submissions return `409 Conflict`. Precondition: `status` is `active` or `failed` — a rollout that failed can leave a workload running, and a stop is what takes it away without deleting the app.
//
// Corresponds with POST /v1/apps/{appId}/stop (the `StopApp` operationId).
StopApp(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListTasks List tasks for an app
//
// Lists TTL-bounded asynchronous task metadata for this app so a client can recover task ids after an interrupted long-poll or CLI session. Pending includes queued, running and retrying work. Tasks appear only within the configured recovery window. A page can be empty and still have `nextCursor`; continue until it is null. Pending entries are best effort and may disappear if the recovery store restarts; tracked tasks reappear on completion. This is not persisted task history. A task id names one task, so resubmitting one does not add a second entry here. If the app is `stopped`, `deleting`, or `failed`, recovery stays available. Unknown or deleted apps return `404 Not Found`.
//
// Corresponds with GET /v1/apps/{appId}/tasks (the `ListTasks` operationId).
ListTasks(ctx context.Context, appId AppId, params *ListTasksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTask Get a task
//
// Returns the task's current status, read through the inference transport layer from the shared result store. When `completed`, includes the result `output` and `completedAt`; when `failed`, includes `error`; when `pending`, neither is set. If the app is `stopped`, `deleting`, or `failed`, accepted task results stay readable. A `404 Not Found` means the task cannot currently be verified for this app. Because enqueue-time ownership tracking is best effort, a recently returned task ID can temporarily return `404`; retry it within the normal polling window. Unknown or deleted apps also return `404 Not Found`.
//
// Corresponds with GET /v1/apps/{appId}/tasks/{taskId} (the `GetTask` operationId).
GetTask(ctx context.Context, appId AppId, taskId TaskId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListVersions List versions
//
// Corresponds with GET /v1/apps/{appId}/versions (the `ListVersions` operationId).
ListVersions(ctx context.Context, appId AppId, params *ListVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteVersion Delete a version
//
// Deletes an unused version while retaining its immutable history. Deleted versions are omitted from version lists, return `404` from version reads, and cannot be deployed. Returns `409` while the app is deleting, or when the version is active, is the app's only remaining version, has a non-stopped worker, or is targeted by a live rollout. Deleting an already deleted version returns `404`. This operation does not remove the version's OCI image.
//
// Corresponds with DELETE /v1/apps/{appId}/versions/{versionNumber} (the `DeleteVersion` operationId).
DeleteVersion(ctx context.Context, appId AppId, versionNumber int32, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetVersion Get a version
//
// Corresponds with GET /v1/apps/{appId}/versions/{versionNumber} (the `GetVersion` operationId).
GetVersion(ctx context.Context, appId AppId, versionNumber int32, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListWorkers List workers
//
// Returns a newest-first page of workers observed for the app (including terminal `stopped` rows until purged). Omitted `versionId` scopes the page to the app's `activeVersionId`. An app with no active version therefore answers an empty default page — not that it has no workers, only that none are pinned. Optional `state`, `status` and `q` narrow the page further; a cursor must be replayed under the same filters it was issued with.
//
// Corresponds with GET /v1/apps/{appId}/workers (the `ListWorkers` operationId).
ListWorkers(ctx context.Context, appId AppId, params *ListWorkersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetWorker Get a worker
//
// Returns one worker by id within the app. The id is the Kubernetes pod UID recorded by the reconciler. A worker that belongs to another app (or tenant) is not found.
//
// Corresponds with GET /v1/apps/{appId}/workers/{workerId} (the `GetWorker` operationId).
GetWorker(ctx context.Context, appId AppId, workerId WorkerId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListGpuTypes List supported GPU types and their pricing
//
// Returns the global GPU type catalog and pricing. The request requires authentication. Customer principals receive only GPU types with capacity currently offered to customers; a type whose hardware is not yet cleared for customer workloads is omitted. The Runware principal receives the full catalog, including retired types and types not yet offered. Retired entries carry `deletedAt`. Each entry's `pricing` is the price currently in effect.
//
// Corresponds with GET /v1/gpu-types (the `ListGpuTypes` operationId).
ListGpuTypes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetGpuType Get a GPU type from the catalog
//
// Returns an active entry from the global GPU type catalog. Retired entries return `404`. The result is not organization-specific, but the request still requires authentication.
//
// Corresponds with GET /v1/gpu-types/{gpuTypeId} (the `GetGpuType` operationId).
GetGpuType(ctx context.Context, gpuTypeId GpuTypeId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLogEntries Read one page of a named log query
//
// Returns one page of log entries in the requested `sort` order, newest first by default, with opaque cursors for the neighboring pages when they exist. `nextCursor` continues in the `sort` order and `prevCursor` goes back against it, so a client can walk a window in either direction from either end. A cursor is only valid for the `sort` it was issued under; reusing one under the other ordering returns `400`. Query ids and their supported selectors are listed by the insights catalog.
//
// Corresponds with GET /v1/logs/queries/{queryId}/entries (the `GetLogEntries` operationId).
GetLogEntries(ctx context.Context, queryId QueryId, params *GetLogEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// TailLogEntries Follow a named application log query
//
// Streams new application log entries as Server-Sent Events. The stream sends keepalive comments while quiet and ends with an `end` event when its connection lifetime expires or the service shuts down. Clients should reconnect after an `end` event. Use the `runtime_tail` query id; queries that sort or aggregate are rejected because they cannot be followed live.
//
// Corresponds with GET /v1/logs/queries/{queryId}/tail (the `TailLogEntries` operationId).
TailLogEntries(ctx context.Context, queryId QueryId, params *TailLogEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListInsightsQueries List the metric and log queries this build can answer
//
// The catalog: every named query, its unit and aggregation, the selectors it accepts, the series it returns, and the windows actually backed by stored series.
//
// This is the source of query ids. Clients discover ids here rather than carrying a list of their own, and render window tabs from `windows` rather than from the full ladder, so a window whose storage tier has no backing series stays invisible instead of rendering a tab with nothing behind it.
//
// Corresponds with GET /v1/metrics/queries (the `ListInsightsQueries` operationId).
ListInsightsQueries(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMetricSeries Read one named metric query
//
// Returns one chart's data: a single timestamp axis shared by every series, and one dense value array per series aligned to it.
//
// Values are dense and positionally aligned to `t`, with an explicit `null` wherever there was no sample. Each timestamp is the END of its bucket, so `window.to` is inclusive and equals the last timestamp in `t`, while `window.from` is exclusive and is one `step_s` before the first.
//
// An organization with no metrics yet is answered with the full axis and all-null series rather than an error.
//
// `apps_request_volume` returns one series per app: 96 quarter-hour request counts over `window=24h` (`step_s` 900, unit `requests`). Repeat `appId` once per id on the current list page to pad idle apps with all-null series, in request order. A series is named for the live app behind it, so a reused app id reports its own generation's traffic and not the one before it. The same `appId` pad applies to the list-scoped `apps_error_volume` and `apps_request_duration` queries. Other queries reject `appId`. Other windows are not available for these queries.
//
// `endpoints_request_volume` is the endpoints-list counterpart: 96 quarter-hour request counts per endpoint over `window=24h` (`step_s` 900, unit `requests`). It requires the public app id. Repeat `endpointId` once per id on the current `listEndpoints` page to pad idle endpoints with all-null series, in request order. Buckets that started before that endpoint row's `createdAt` are null, so a removed-then-readded path does not inherit the previous row's traffic.
//
// The same app + `endpointId` pad and `createdAt` clip apply to the list-scoped `endpoints_request_rate`, `endpoints_latency_p95`, `endpoints_latency_p99`, `endpoints_error_volume` and `endpoints_request_count` queries (`window=1h` only, 5-minute step). Those feed `listEndpoints` / `getEndpoint` `runtime` and are omitted from the catalog. Other queries reject `endpointId`. Other windows are not available for these queries.
//
// Three queries serve one app's overview, all over `window=24h` at `step_s` 900 and all requiring the public app id: `app_traffic_24h` returns `requests`, `client_errors` (4xx) and `server_errors` (5xx) as request counts; `app_worker_seconds_24h` returns `startup`, `execution` and `idle` as worker-seconds, whose three values in a bucket sum to that bucket's worker time; and `app_cold_starts_24h` returns `cold_starts` as a count. They report counts and totals rather than rates or ratios, so a per-minute figure is a bucket value divided by `step_s / 60` and a 24h ratio is one summed axis over another — summing first and dividing once, because averaging a per-bucket ratio across the axis does not give the 24h ratio. These queries are absent from `listInsightsQueries`: they back the overview rather than the Metrics tab. Other windows are not available for them.
//
// Corresponds with GET /v1/metrics/queries/{queryId}/series (the `GetMetricSeries` operationId).
GetMetricSeries(ctx context.Context, queryId QueryId, params *GetMetricSeriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListReservedCapacity Report reserved capacity and its use
//
// What the authenticated organization has reserved, what it is using of it now, and what overflowed to pay-as-you-go.
//
// One entry per commitment scope — one GPU type in one region — because compatible terms add together and cover an allocation between them. The terms that make up the scope are listed with their own dates and quantities.
//
// Counts describe recorded billable state at the window end, so a report of a past period describes that period rather than mixing it with the present. A scope with an effective commitment appears even when nothing is using it: an idle reservation is still charged for, and is what the customer most needs to see. Scopes whose terms expired during the period remain with their historical usage and zero committed capacity at the window end.
//
// The fixed commitment charge is not here. Serverless meters usage and does not own that charge; the commerce system invoices it from the contract schedule. Usage that cannot be priced returns `500`, with no partial report.
//
// Corresponds with GET /v1/reserved-capacity (the `ListReservedCapacity` operationId).
ListReservedCapacity(ctx context.Context, params *ListReservedCapacityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSecrets List secrets
//
// Returns secret metadata only; encrypted values are never returned.
//
// Corresponds with GET /v1/secrets (the `ListSecrets` operationId).
ListSecrets(ctx context.Context, params *ListSecretsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSecretWithBody Create a secret
//
// Creates an organization-scoped secret. Returns `409` if the name is already in use — including when a secret of that name is `pending_destroy`. List only shows active secrets, so a name can appear free while create still conflicts for as long as that row remains. A `pending_destroy` row is removed, and its name released, by a background sweep once no running worker can still hold the value — there is no deadline on that wait, so a continuously busy app can hold a name for as long as it runs. Recreate-while-deleting may later reuse the pending row with the new value (same name, new ciphertext). An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden` — the per-organization CryptoKey that seals the value is only minted when the tenancy is active. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/secrets (the `CreateSecret` operationId).
CreateSecretWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSecret Create a secret
//
// Creates an organization-scoped secret. Returns `409` if the name is already in use — including when a secret of that name is `pending_destroy`. List only shows active secrets, so a name can appear free while create still conflicts for as long as that row remains. A `pending_destroy` row is removed, and its name released, by a background sweep once no running worker can still hold the value — there is no deadline on that wait, so a continuously busy app can hold a name for as long as it runs. Recreate-while-deleting may later reuse the pending row with the new value (same name, new ciphertext). An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden` — the per-organization CryptoKey that seals the value is only minted when the tenancy is active. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/secrets (the `CreateSecret` operationId).
CreateSecret(ctx context.Context, body CreateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSecret Delete a secret
//
// Soft-deletes a secret: marks the row `pending_destroy` and bumps revision. This API does not hard-delete the row. Returns `409` while any app still attaches it — cascade-detach is not performed here; detach each holder with `DELETE .../apps/{id}/secrets/{name}` first, which rolls the deployments it names in place. A background sweep removes the row and releases the name once no running worker can still hold the value, rather than assuming every roll a detach started actually landed — a deployment that was not live when detached has nothing to roll until it resumes, so the sweep is the actual backstop, not the detach. While the row remains `pending_destroy` the name stays reserved, so create may return `409` even though list no longer shows the secret. Retries on an already-pending name are safe when no attachments remain (`204`); they still return `409` while attached.
//
// Corresponds with DELETE /v1/secrets/{secretName} (the `DeleteSecret` operationId).
DeleteSecret(ctx context.Context, secretName SecretName, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateSecretWithBody Update a secret
//
// Re-encrypts the value under the same name (no rename). Rolls every live deployment that attaches this secret in place so a running worker picks up the new value. If a rollout is already in progress when this commits, this change is not guaranteed to land on it — it reaches the worker on a later redeploy instead. A deployment that is not live picks it up on its next deploy for another reason. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden` — the per-organization CryptoKey that seals the value is only minted when the tenancy is active. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /v1/secrets/{secretName} (the `UpdateSecret` operationId).
UpdateSecretWithBody(ctx context.Context, secretName SecretName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateSecret Update a secret
//
// Re-encrypts the value under the same name (no rename). Rolls every live deployment that attaches this secret in place so a running worker picks up the new value. If a rollout is already in progress when this commits, this change is not guaranteed to land on it — it reaches the worker on a later redeploy instead. A deployment that is not live picks it up on its next deploy for another reason. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden` — the per-organization CryptoKey that seals the value is only minted when the tenancy is active. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /v1/secrets/{secretName} (the `UpdateSecret` operationId).
UpdateSecret(ctx context.Context, secretName SecretName, body UpdateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSourceUploadWithBody Create a source upload
//
// Creates an upload session for a source archive. The session belongs to the authenticated organization and names no app: an upload precedes any app, and the source it publishes may back several. The response contains a short-lived transfer instruction for one exact staging object. Repeating the request with the same idempotency key and declaration while the session is pending and unexpired returns the same upload resource with a refreshed transfer instruction. Replays with a different declaration, or after the session becomes ready, rejected, expired, or deleted, return `409`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/source-uploads (the `CreateSourceUpload` operationId).
CreateSourceUploadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSourceUpload Create a source upload
//
// Creates an upload session for a source archive. The session belongs to the authenticated organization and names no app: an upload precedes any app, and the source it publishes may back several. The response contains a short-lived transfer instruction for one exact staging object. Repeating the request with the same idempotency key and declaration while the session is pending and unexpired returns the same upload resource with a refreshed transfer instruction. Replays with a different declaration, or after the session becomes ready, rejected, expired, or deleted, return `409`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/source-uploads (the `CreateSourceUpload` operationId).
CreateSourceUpload(ctx context.Context, body CreateSourceUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSourceUpload Abort a source upload
//
// Aborts an upload that has not published its source and removes its staging object. The session remains as a deleted tombstone so its staging key cannot be reused. Repeating a successful abort is idempotent. A `ready` upload cannot be aborted: the source it published is a resource in its own right, and the request answers `409` with type `source-upload-completed`.
//
// Corresponds with DELETE /v1/source-uploads/{uploadId} (the `DeleteSourceUpload` operationId).
DeleteSourceUpload(ctx context.Context, uploadId SourceUploadId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSourceUpload Get a source upload
//
// Returns the upload session belonging to the authenticated organization. Once the upload is `ready` the session carries the `sourceId` it published. An upload belonging to another organization returns `404`.
//
// Corresponds with GET /v1/source-uploads/{uploadId} (the `GetSourceUpload` operationId).
GetSourceUpload(ctx context.Context, uploadId SourceUploadId, reqEditors ...RequestEditorFn) (*http.Response, error)
// CompleteSourceUpload Complete a source upload
//
// Verifies the staging object's length, content type, and SHA-256 digest against the session declaration, applies the archive rules for the source type, and publishes the verified bytes as an immutable source artifact. The first success creates the source and returns the ready session carrying its `sourceId`; a retry returns the same session and the same `sourceId`. A rejected upload keeps its rejection so later retries return the same result.
//
// Corresponds with POST /v1/source-uploads/{uploadId}/complete (the `CompleteSourceUpload` operationId).
CompleteSourceUpload(ctx context.Context, uploadId SourceUploadId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSource Get a source
//
// Returns the immutable source artifact a completed upload published: its type and the length and digest upload completion verified. A source is organization-scoped and may be named by any number of apps and versions in that organization; one belonging to another organization returns `404`. There is no list and no delete.
//
// Corresponds with GET /v1/sources/{sourceId} (the `GetSource` operationId).
GetSource(ctx context.Context, sourceId SourceId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListUsageEvents List usage events
//
// Append-only billing telemetry; one row per worker state transition.
//
// Corresponds with GET /v1/usage (the `ListUsageEvents` operationId).
ListUsageEvents(ctx context.Context, params *ListUsageEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUsageSummary Summarize usage over a time range
//
// GPU time and spend for the authenticated organization, aggregated over a half-open window and grouped by the dimensions asked for.
//
// Every figure is derived on read from the immutable usage ledger, the effective-dated price catalog and the organization's capacity commitments. Two consequences follow. The window is bounded, because the read folds every event of every worker in it. And a worker whose recorded life cannot be priced fails the request rather than being left out of the totals, because a total that silently omits usage is a wrong number a caller cannot see is wrong. These failures return `500`, with no partial totals.
//
// `paygSpend` is provisional pay-as-you-go accrual, not a settled charge. It excludes whole-second finalization rounding and ledger adjustments. `paygEquivalentValue` prices the same time at the catalog rate whatever covered it, so the difference between them is what a capacity commitment saved. While commitment coverage is not yet applied by settlement, an organization holding a commitment sees a split here that the credit ledger has not yet applied.
//
// Corresponds with GET /v1/usage/summary (the `GetUsageSummary` operationId).
GetUsageSummary(ctx context.Context, params *GetUsageSummaryParams, 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) AttachAppSecretWithBodyWithResponse ¶
func (c *ClientWithResponses) AttachAppSecretWithBodyWithResponse(ctx context.Context, appId AppId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachAppSecretResponse, error)
AttachAppSecretWithBodyWithResponse Attach a secret to an app
Records that an organization secret is attached to an app under a resolved env-var name, and rolls the app's live deployment in place so a running worker picks up the value without waiting for an unrelated deploy. If a rollout is already in progress when this commits, this attach is not guaranteed to land on it — it reaches the worker on a later redeploy instead. A deployment that is not live records the attachment only — the next resume reads the attach set fresh. Returns `409` if the secret is already attached, or if another attach would use the same env-var name. The resolved name (`envVarName`, or `secretName` when omitted) must not already exist as a plain environment variable on this app (`deployment_configs.key`). Both sources use the same pod env namespace, so the server rejects the collision with `422` instead of allowing a last-wins override later. The reverse check applies when setting a plain environment variable. An app holds at most 100 environment bindings in total — plain environment variables plus attached secrets — the same combined ceiling as create and the single-key env-var route. Attaching when the app is already at that limit returns `422`. A secret can be attached to at most 25 deployments — rolling every attached deployment is what an update or detach costs, so the ceiling bounds that cost rather than the app side of the binding. Attaching past it returns `422`.
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 /v1/apps/{appId}/secrets (the `AttachAppSecret` operationId).
func (*ClientWithResponses) AttachAppSecretWithResponse ¶
func (c *ClientWithResponses) AttachAppSecretWithResponse(ctx context.Context, appId AppId, body AttachAppSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachAppSecretResponse, error)
AttachAppSecretWithResponse Attach a secret to an app
Records that an organization secret is attached to an app under a resolved env-var name, and rolls the app's live deployment in place so a running worker picks up the value without waiting for an unrelated deploy. If a rollout is already in progress when this commits, this attach is not guaranteed to land on it — it reaches the worker on a later redeploy instead. A deployment that is not live records the attachment only — the next resume reads the attach set fresh. Returns `409` if the secret is already attached, or if another attach would use the same env-var name. The resolved name (`envVarName`, or `secretName` when omitted) must not already exist as a plain environment variable on this app (`deployment_configs.key`). Both sources use the same pod env namespace, so the server rejects the collision with `422` instead of allowing a last-wins override later. The reverse check applies when setting a plain environment variable. An app holds at most 100 environment bindings in total — plain environment variables plus attached secrets — the same combined ceiling as create and the single-key env-var route. Attaching when the app is already at that limit returns `422`. A secret can be attached to at most 25 deployments — rolling every attached deployment is what an update or detach costs, so the ceiling bounds that cost rather than the app side of the binding. Attaching past it returns `422`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/apps/{appId}/secrets (the `AttachAppSecret` operationId).
func (*ClientWithResponses) CompleteSourceUploadWithResponse ¶
func (c *ClientWithResponses) CompleteSourceUploadWithResponse(ctx context.Context, uploadId SourceUploadId, reqEditors ...RequestEditorFn) (*CompleteSourceUploadResponse, error)
CompleteSourceUploadWithResponse Complete a source upload
Verifies the staging object's length, content type, and SHA-256 digest against the session declaration, applies the archive rules for the source type, and publishes the verified bytes as an immutable source artifact. The first success creates the source and returns the ready session carrying its `sourceId`; a retry returns the same session and the same `sourceId`. A rejected upload keeps its rejection so later retries return the same result.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/source-uploads/{uploadId}/complete (the `CompleteSourceUpload` operationId).
func (*ClientWithResponses) CreateAppWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateAppWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAppResponse, error)
CreateAppWithBodyWithResponse Create an app
Creates an app together with its worker configuration, environment variables and endpoints, and records version `1` — the immutable description of what to deploy. The app starts in `initializing`, and what happens next depends on the app source type:
`code` source: the codebase is submitted to the build pipeline; once the image is built and workers become healthy the app transitions to `active` and `activeVersionId` points at that version. If the build, validation, or rollout fails the app is marked `failed`.
`container` source: the submitted zip (wrapper `Dockerfile` + `container.yaml`) goes through the same build pipeline — the wrapper image is built, published and deployed, so the version carries a `buildId` and the app follows the same lifecycle as a code source. An invalid `container.yaml` rejects the create before any build capacity is spent — `400` where the document could not be parsed at all, `422` where it parsed and broke a rule.
`activeVersionId` is null until a rollout completes: a version records what should run, and only a finished deploy says what does.
`secrets` attaches organization secrets that already exist. It is the app's initial attachment set, so the first rollout carries their values into the worker. This route does not create a secret — use `POST /v1/secrets` first. A name that is unknown to the organization, or that is not `active`, returns `404`. A name that collides with a key in `environmentVariables`, a repeated name and a set that goes past the binding limit each return `422`. The whole set is checked before any build capacity is spent.
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 /v1/apps (the `CreateApp` operationId).
func (*ClientWithResponses) CreateAppWithResponse ¶
func (c *ClientWithResponses) CreateAppWithResponse(ctx context.Context, body CreateAppJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAppResponse, error)
CreateAppWithResponse Create an app
Creates an app together with its worker configuration, environment variables and endpoints, and records version `1` — the immutable description of what to deploy. The app starts in `initializing`, and what happens next depends on the app source type:
`code` source: the codebase is submitted to the build pipeline; once the image is built and workers become healthy the app transitions to `active` and `activeVersionId` points at that version. If the build, validation, or rollout fails the app is marked `failed`.
`container` source: the submitted zip (wrapper `Dockerfile` + `container.yaml`) goes through the same build pipeline — the wrapper image is built, published and deployed, so the version carries a `buildId` and the app follows the same lifecycle as a code source. An invalid `container.yaml` rejects the create before any build capacity is spent — `400` where the document could not be parsed at all, `422` where it parsed and broke a rule.
`activeVersionId` is null until a rollout completes: a version records what should run, and only a finished deploy says what does.
`secrets` attaches organization secrets that already exist. It is the app's initial attachment set, so the first rollout carries their values into the worker. This route does not create a secret — use `POST /v1/secrets` first. A name that is unknown to the organization, or that is not `active`, returns `404`. A name that collides with a key in `environmentVariables`, a repeated name and a set that goes past the binding limit each return `422`. The whole set is checked before any build capacity is spent.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/apps (the `CreateApp` operationId).
func (*ClientWithResponses) CreateSecretWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSecretWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretResponse, error)
CreateSecretWithBodyWithResponse Create a secret
Creates an organization-scoped secret. Returns `409` if the name is already in use — including when a secret of that name is `pending_destroy`. List only shows active secrets, so a name can appear free while create still conflicts for as long as that row remains. A `pending_destroy` row is removed, and its name released, by a background sweep once no running worker can still hold the value — there is no deadline on that wait, so a continuously busy app can hold a name for as long as it runs. Recreate-while-deleting may later reuse the pending row with the new value (same name, new ciphertext). An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden` — the per-organization CryptoKey that seals the value is only minted when the tenancy is active. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes.
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 /v1/secrets (the `CreateSecret` operationId).
func (*ClientWithResponses) CreateSecretWithResponse ¶
func (c *ClientWithResponses) CreateSecretWithResponse(ctx context.Context, body CreateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretResponse, error)
CreateSecretWithResponse Create a secret
Creates an organization-scoped secret. Returns `409` if the name is already in use — including when a secret of that name is `pending_destroy`. List only shows active secrets, so a name can appear free while create still conflicts for as long as that row remains. A `pending_destroy` row is removed, and its name released, by a background sweep once no running worker can still hold the value — there is no deadline on that wait, so a continuously busy app can hold a name for as long as it runs. Recreate-while-deleting may later reuse the pending row with the new value (same name, new ciphertext). An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden` — the per-organization CryptoKey that seals the value is only minted when the tenancy is active. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/secrets (the `CreateSecret` operationId).
func (*ClientWithResponses) CreateSourceUploadWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSourceUploadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSourceUploadResponse, error)
CreateSourceUploadWithBodyWithResponse Create a source upload
Creates an upload session for a source archive. The session belongs to the authenticated organization and names no app: an upload precedes any app, and the source it publishes may back several. The response contains a short-lived transfer instruction for one exact staging object. Repeating the request with the same idempotency key and declaration while the session is pending and unexpired returns the same upload resource with a refreshed transfer instruction. Replays with a different declaration, or after the session becomes ready, rejected, expired, or deleted, return `409`.
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 /v1/source-uploads (the `CreateSourceUpload` operationId).
func (*ClientWithResponses) CreateSourceUploadWithResponse ¶
func (c *ClientWithResponses) CreateSourceUploadWithResponse(ctx context.Context, body CreateSourceUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSourceUploadResponse, error)
CreateSourceUploadWithResponse Create a source upload
Creates an upload session for a source archive. The session belongs to the authenticated organization and names no app: an upload precedes any app, and the source it publishes may back several. The response contains a short-lived transfer instruction for one exact staging object. Repeating the request with the same idempotency key and declaration while the session is pending and unexpired returns the same upload resource with a refreshed transfer instruction. Replays with a different declaration, or after the session becomes ready, rejected, expired, or deleted, return `409`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/source-uploads (the `CreateSourceUpload` operationId).
func (*ClientWithResponses) DeleteAppEnvironmentVariableWithResponse ¶
func (c *ClientWithResponses) DeleteAppEnvironmentVariableWithResponse(ctx context.Context, appId AppId, variableName EnvironmentVariableName, reqEditors ...RequestEditorFn) (*DeleteAppEnvironmentVariableResponse, error)
DeleteAppEnvironmentVariableWithResponse Delete an app environment variable
Removes one environment variable. A successful delete records a new version carrying the remaining environment set and the same image. If that image is deployable, the delete pins it as `activeVersionId` and rolls the workload when the app can take one (`active`, `initializing`, or `failed` which becomes `initializing`). A `stopped` or `stopping` app pins the version and rolls it on `resume`. A delete of a key that is present while a rollout of this app is still in flight returns `409 Conflict` and does not remove the value. A name that is not present returns `404` even during that window.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /v1/apps/{appId}/environment-variables/{variableName} (the `DeleteAppEnvironmentVariable` operationId).
func (*ClientWithResponses) DeleteAppWithResponse ¶
func (c *ClientWithResponses) DeleteAppWithResponse(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*DeleteAppResponse, error)
DeleteAppWithResponse Delete an app
Soft delete. Sets `status = deleting` and returns `202` once that intent is persisted. Router removal, canceling in-progress builds, and worker drain (`draining → stopping → stopped`) are performed asynchronously by the deployer/Scaler; `status` becomes `deleted` once all workers stop. All rows are retained for billing finalization, audit, and usage history. Idempotent if the app is already `deleting`.
The `appId` is released once `status` reaches `deleted`, and not before: while the app is `deleting` its workload is still being torn down and the name stays taken. A new app created under a released name is a new app and inherits nothing — no version, no build, no event history, and no workers.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /v1/apps/{appId} (the `DeleteApp` operationId).
func (*ClientWithResponses) DeleteBuildWithResponse ¶
func (c *ClientWithResponses) DeleteBuildWithResponse(ctx context.Context, appId AppId, buildId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteBuildResponse, error)
DeleteBuildWithResponse Delete or cancel a build
Cancels a queued or running build and records it as `superseded`. Deleting a queued or running build ends its current rollout without activating the canceled build, so any previous version keeps serving. A terminal build can be deleted once no live rollout still needs it. Ready builds remain while a version references them.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /v1/apps/{appId}/builds/{buildId} (the `DeleteBuild` operationId).
func (*ClientWithResponses) DeleteSecretWithResponse ¶
func (c *ClientWithResponses) DeleteSecretWithResponse(ctx context.Context, secretName SecretName, reqEditors ...RequestEditorFn) (*DeleteSecretResponse, error)
DeleteSecretWithResponse Delete a secret
Soft-deletes a secret: marks the row `pending_destroy` and bumps revision. This API does not hard-delete the row. Returns `409` while any app still attaches it — cascade-detach is not performed here; detach each holder with `DELETE .../apps/{id}/secrets/{name}` first, which rolls the deployments it names in place. A background sweep removes the row and releases the name once no running worker can still hold the value, rather than assuming every roll a detach started actually landed — a deployment that was not live when detached has nothing to roll until it resumes, so the sweep is the actual backstop, not the detach. While the row remains `pending_destroy` the name stays reserved, so create may return `409` even though list no longer shows the secret. Retries on an already-pending name are safe when no attachments remain (`204`); they still return `409` while attached.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /v1/secrets/{secretName} (the `DeleteSecret` operationId).
func (*ClientWithResponses) DeleteSourceUploadWithResponse ¶
func (c *ClientWithResponses) DeleteSourceUploadWithResponse(ctx context.Context, uploadId SourceUploadId, reqEditors ...RequestEditorFn) (*DeleteSourceUploadResponse, error)
DeleteSourceUploadWithResponse Abort a source upload
Aborts an upload that has not published its source and removes its staging object. The session remains as a deleted tombstone so its staging key cannot be reused. Repeating a successful abort is idempotent. A `ready` upload cannot be aborted: the source it published is a resource in its own right, and the request answers `409` with type `source-upload-completed`.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /v1/source-uploads/{uploadId} (the `DeleteSourceUpload` operationId).
func (*ClientWithResponses) DeleteVersionWithResponse ¶
func (c *ClientWithResponses) DeleteVersionWithResponse(ctx context.Context, appId AppId, versionNumber int32, reqEditors ...RequestEditorFn) (*DeleteVersionResponse, error)
DeleteVersionWithResponse Delete a version
Deletes an unused version while retaining its immutable history. Deleted versions are omitted from version lists, return `404` from version reads, and cannot be deployed. Returns `409` while the app is deleting, or when the version is active, is the app's only remaining version, has a non-stopped worker, or is targeted by a live rollout. Deleting an already deleted version returns `404`. This operation does not remove the version's OCI image.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /v1/apps/{appId}/versions/{versionNumber} (the `DeleteVersion` operationId).
func (*ClientWithResponses) DeployVersionWithBodyWithResponse ¶
func (c *ClientWithResponses) DeployVersionWithBodyWithResponse(ctx context.Context, appId AppId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeployVersionResponse, error)
DeployVersionWithBodyWithResponse Deploy a version
Activates a `ready` version by number, setting `activeVersionId` and returning `202` once that intent is persisted. Worker rollout, routing switch, and canceling in-progress builds (`superseded`) are performed asynchronously by the deployer/Scaler. Permitted in any addressable status, including `initializing` and `failed`. To roll back, supply an older `versionNumber` — the operation is identical to a forward deploy. No new version is created and no rebuild happens: the version's existing image is re-applied. Re-deploying the currently active version is permitted and re-applies it. A deploy to a `stopped` or `stopping` app records the version and rolls no workload, because no workers are running: the `202` does not imply a rollout there. The recorded version is the one applied when the app resumes. If the roll of a live app fails, `activeVersionId` is restored to the version that kept serving, so the field keeps naming the running image. **Rollout** (deployer/Scaler): the platform starts workers on the target version, waits for at least one to become healthy, switches task routing to the new version, then drains old-version workers gracefully. Old workers are given a fixed, platform-managed grace period to finish in-flight tasks before being force-terminated. If new workers fail to become healthy, old workers are not drained and the app continues on the previous version. Errors: - Deploy to a `deleting` app returns `409 Conflict` - `versionNumber` not found or not `ready` returns `409 Conflict` - A deploy while a rollout of this app is still in flight returns `409 Conflict`;
one app rolls to one version at a time. Retry once it completes.
- Deploy to a non-existent or `deleted` app returns `404 Not Found`
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 /v1/apps/{appId}/deploy (the `DeployVersion` operationId).
func (*ClientWithResponses) DeployVersionWithResponse ¶
func (c *ClientWithResponses) DeployVersionWithResponse(ctx context.Context, appId AppId, body DeployVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*DeployVersionResponse, error)
DeployVersionWithResponse Deploy a version
Activates a `ready` version by number, setting `activeVersionId` and returning `202` once that intent is persisted. Worker rollout, routing switch, and canceling in-progress builds (`superseded`) are performed asynchronously by the deployer/Scaler. Permitted in any addressable status, including `initializing` and `failed`. To roll back, supply an older `versionNumber` — the operation is identical to a forward deploy. No new version is created and no rebuild happens: the version's existing image is re-applied. Re-deploying the currently active version is permitted and re-applies it. A deploy to a `stopped` or `stopping` app records the version and rolls no workload, because no workers are running: the `202` does not imply a rollout there. The recorded version is the one applied when the app resumes. If the roll of a live app fails, `activeVersionId` is restored to the version that kept serving, so the field keeps naming the running image. **Rollout** (deployer/Scaler): the platform starts workers on the target version, waits for at least one to become healthy, switches task routing to the new version, then drains old-version workers gracefully. Old workers are given a fixed, platform-managed grace period to finish in-flight tasks before being force-terminated. If new workers fail to become healthy, old workers are not drained and the app continues on the previous version. Errors: - Deploy to a `deleting` app returns `409 Conflict` - `versionNumber` not found or not `ready` returns `409 Conflict` - A deploy while a rollout of this app is still in flight returns `409 Conflict`;
one app rolls to one version at a time. Retry once it completes.
- Deploy to a non-existent or `deleted` app returns `404 Not Found`
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/apps/{appId}/deploy (the `DeployVersion` operationId).
func (*ClientWithResponses) DetachAppSecretWithResponse ¶
func (c *ClientWithResponses) DetachAppSecretWithResponse(ctx context.Context, appId AppId, secretName SecretName, reqEditors ...RequestEditorFn) (*DetachAppSecretResponse, error)
DetachAppSecretWithResponse Detach a secret from an app
Removes the attachment and rolls the app's live deployment in place so a running worker stops receiving the value. If a rollout is already in progress when this commits, this detach is not guaranteed to land on it — the worker stops receiving the value on a later redeploy instead. A deployment that is not live has the removal recorded only — there is nothing to roll until it resumes.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /v1/apps/{appId}/secrets/{secretName} (the `DetachAppSecret` operationId).
func (*ClientWithResponses) FavoriteAppWithResponse ¶
func (c *ClientWithResponses) FavoriteAppWithResponse(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*FavoriteAppResponse, error)
FavoriteAppWithResponse Favorite an app
Pins the app as a favorite for the authenticated organization so the console can surface it in a Favorites section. Idempotent: favoriting an already-favorited app succeeds and returns the app with `isFavorite: true`. Apps in `deleting` or `deleted` status cannot be favorited (`404`). Soft-delete clears any existing pin when status becomes `deleting`.
Returns a wrapper object for the known response body format(s).
Corresponds with PUT /v1/apps/{appId}/favorite (the `FavoriteApp` operationId).
func (*ClientWithResponses) GetAppSummaryWithResponse ¶
func (c *ClientWithResponses) GetAppSummaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAppSummaryResponse, error)
GetAppSummaryWithResponse App summary metrics for the authenticated organization
Aggregate dashboard metrics across all apps owned by the authenticated organization. App and worker tallies are always present. Request and error-rate totals come from the metrics store and are omitted when that hop cannot answer rather than reported as zero. Spend covers a rolling 24 hours and is omitted when the usage cannot be priced.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/app-summary (the `GetAppSummary` operationId).
func (*ClientWithResponses) GetAppWithResponse ¶
func (c *ClientWithResponses) GetAppWithResponse(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*GetAppResponse, error)
GetAppWithResponse Get an app
Returns the app the authenticated organization owns under this `appId`. An unknown app and a soft-deleted one both return `404 Not Found`: a deleted app is gone to its owner, and its rows are retained only for billing and audit. To read deleted apps, list them with `status=deleted`.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/apps/{appId} (the `GetApp` operationId).
func (*ClientWithResponses) GetBuildWithResponse ¶
func (c *ClientWithResponses) GetBuildWithResponse(ctx context.Context, appId AppId, buildId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetBuildResponse, error)
GetBuildWithResponse Get a build
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/apps/{appId}/builds/{buildId} (the `GetBuild` operationId).
func (*ClientWithResponses) GetEndpointWithResponse ¶
func (c *ClientWithResponses) GetEndpointWithResponse(ctx context.Context, appId AppId, endpointId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetEndpointResponse, error)
GetEndpointWithResponse Get an endpoint
Returns one live endpoint on the app. `runtime` is the same optional latest-window traffic as `listEndpoints` and is omitted when metrics cannot be read or the endpoint has no samples.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/apps/{appId}/endpoints/{endpointId} (the `GetEndpoint` operationId).
func (*ClientWithResponses) GetGpuTypeWithResponse ¶
func (c *ClientWithResponses) GetGpuTypeWithResponse(ctx context.Context, gpuTypeId GpuTypeId, reqEditors ...RequestEditorFn) (*GetGpuTypeResponse, error)
GetGpuTypeWithResponse Get a GPU type from the catalog
Returns an active entry from the global GPU type catalog. Retired entries return `404`. The result is not organization-specific, but the request still requires authentication.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/gpu-types/{gpuTypeId} (the `GetGpuType` operationId).
func (*ClientWithResponses) GetLogEntriesWithResponse ¶
func (c *ClientWithResponses) GetLogEntriesWithResponse(ctx context.Context, queryId QueryId, params *GetLogEntriesParams, reqEditors ...RequestEditorFn) (*GetLogEntriesResponse, error)
GetLogEntriesWithResponse Read one page of a named log query
Returns one page of log entries in the requested `sort` order, newest first by default, with opaque cursors for the neighboring pages when they exist. `nextCursor` continues in the `sort` order and `prevCursor` goes back against it, so a client can walk a window in either direction from either end. A cursor is only valid for the `sort` it was issued under; reusing one under the other ordering returns `400`. Query ids and their supported selectors are listed by the insights catalog.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/logs/queries/{queryId}/entries (the `GetLogEntries` operationId).
func (*ClientWithResponses) GetMetricSeriesWithResponse ¶
func (c *ClientWithResponses) GetMetricSeriesWithResponse(ctx context.Context, queryId QueryId, params *GetMetricSeriesParams, reqEditors ...RequestEditorFn) (*GetMetricSeriesResponse, error)
GetMetricSeriesWithResponse Read one named metric query
Returns one chart's data: a single timestamp axis shared by every series, and one dense value array per series aligned to it.
Values are dense and positionally aligned to `t`, with an explicit `null` wherever there was no sample. Each timestamp is the END of its bucket, so `window.to` is inclusive and equals the last timestamp in `t`, while `window.from` is exclusive and is one `step_s` before the first.
An organization with no metrics yet is answered with the full axis and all-null series rather than an error.
`apps_request_volume` returns one series per app: 96 quarter-hour request counts over `window=24h` (`step_s` 900, unit `requests`). Repeat `appId` once per id on the current list page to pad idle apps with all-null series, in request order. A series is named for the live app behind it, so a reused app id reports its own generation's traffic and not the one before it. The same `appId` pad applies to the list-scoped `apps_error_volume` and `apps_request_duration` queries. Other queries reject `appId`. Other windows are not available for these queries.
`endpoints_request_volume` is the endpoints-list counterpart: 96 quarter-hour request counts per endpoint over `window=24h` (`step_s` 900, unit `requests`). It requires the public app id. Repeat `endpointId` once per id on the current `listEndpoints` page to pad idle endpoints with all-null series, in request order. Buckets that started before that endpoint row's `createdAt` are null, so a removed-then-readded path does not inherit the previous row's traffic.
The same app + `endpointId` pad and `createdAt` clip apply to the list-scoped `endpoints_request_rate`, `endpoints_latency_p95`, `endpoints_latency_p99`, `endpoints_error_volume` and `endpoints_request_count` queries (`window=1h` only, 5-minute step). Those feed `listEndpoints` / `getEndpoint` `runtime` and are omitted from the catalog. Other queries reject `endpointId`. Other windows are not available for these queries.
Three queries serve one app's overview, all over `window=24h` at `step_s` 900 and all requiring the public app id: `app_traffic_24h` returns `requests`, `client_errors` (4xx) and `server_errors` (5xx) as request counts; `app_worker_seconds_24h` returns `startup`, `execution` and `idle` as worker-seconds, whose three values in a bucket sum to that bucket's worker time; and `app_cold_starts_24h` returns `cold_starts` as a count. They report counts and totals rather than rates or ratios, so a per-minute figure is a bucket value divided by `step_s / 60` and a 24h ratio is one summed axis over another — summing first and dividing once, because averaging a per-bucket ratio across the axis does not give the 24h ratio. These queries are absent from `listInsightsQueries`: they back the overview rather than the Metrics tab. Other windows are not available for them.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/metrics/queries/{queryId}/series (the `GetMetricSeries` operationId).
func (*ClientWithResponses) GetSourceUploadWithResponse ¶
func (c *ClientWithResponses) GetSourceUploadWithResponse(ctx context.Context, uploadId SourceUploadId, reqEditors ...RequestEditorFn) (*GetSourceUploadResponse, error)
GetSourceUploadWithResponse Get a source upload
Returns the upload session belonging to the authenticated organization. Once the upload is `ready` the session carries the `sourceId` it published. An upload belonging to another organization returns `404`.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/source-uploads/{uploadId} (the `GetSourceUpload` operationId).
func (*ClientWithResponses) GetSourceWithResponse ¶
func (c *ClientWithResponses) GetSourceWithResponse(ctx context.Context, sourceId SourceId, reqEditors ...RequestEditorFn) (*GetSourceResponse, error)
GetSourceWithResponse Get a source
Returns the immutable source artifact a completed upload published: its type and the length and digest upload completion verified. A source is organization-scoped and may be named by any number of apps and versions in that organization; one belonging to another organization returns `404`. There is no list and no delete.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/sources/{sourceId} (the `GetSource` operationId).
func (*ClientWithResponses) GetTaskWithResponse ¶
func (c *ClientWithResponses) GetTaskWithResponse(ctx context.Context, appId AppId, taskId TaskId, reqEditors ...RequestEditorFn) (*GetTaskResponse, error)
GetTaskWithResponse Get a task
Returns the task's current status, read through the inference transport layer from the shared result store. When `completed`, includes the result `output` and `completedAt`; when `failed`, includes `error`; when `pending`, neither is set. If the app is `stopped`, `deleting`, or `failed`, accepted task results stay readable. A `404 Not Found` means the task cannot currently be verified for this app. Because enqueue-time ownership tracking is best effort, a recently returned task ID can temporarily return `404`; retry it within the normal polling window. Unknown or deleted apps also return `404 Not Found`.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/apps/{appId}/tasks/{taskId} (the `GetTask` operationId).
func (*ClientWithResponses) GetUsageSummaryWithResponse ¶
func (c *ClientWithResponses) GetUsageSummaryWithResponse(ctx context.Context, params *GetUsageSummaryParams, reqEditors ...RequestEditorFn) (*GetUsageSummaryResponse, error)
GetUsageSummaryWithResponse Summarize usage over a time range
GPU time and spend for the authenticated organization, aggregated over a half-open window and grouped by the dimensions asked for.
Every figure is derived on read from the immutable usage ledger, the effective-dated price catalog and the organization's capacity commitments. Two consequences follow. The window is bounded, because the read folds every event of every worker in it. And a worker whose recorded life cannot be priced fails the request rather than being left out of the totals, because a total that silently omits usage is a wrong number a caller cannot see is wrong. These failures return `500`, with no partial totals.
`paygSpend` is provisional pay-as-you-go accrual, not a settled charge. It excludes whole-second finalization rounding and ledger adjustments. `paygEquivalentValue` prices the same time at the catalog rate whatever covered it, so the difference between them is what a capacity commitment saved. While commitment coverage is not yet applied by settlement, an organization holding a commitment sees a split here that the credit ledger has not yet applied.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/usage/summary (the `GetUsageSummary` operationId).
func (*ClientWithResponses) GetVersionWithResponse ¶
func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, appId AppId, versionNumber int32, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)
GetVersionWithResponse Get a version
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/apps/{appId}/versions/{versionNumber} (the `GetVersion` operationId).
func (*ClientWithResponses) GetWorkerWithResponse ¶
func (c *ClientWithResponses) GetWorkerWithResponse(ctx context.Context, appId AppId, workerId WorkerId, reqEditors ...RequestEditorFn) (*GetWorkerResponse, error)
GetWorkerWithResponse Get a worker
Returns one worker by id within the app. The id is the Kubernetes pod UID recorded by the reconciler. A worker that belongs to another app (or tenant) is not found.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/apps/{appId}/workers/{workerId} (the `GetWorker` operationId).
func (*ClientWithResponses) ListAppEnvironmentVariablesWithResponse ¶
func (c *ClientWithResponses) ListAppEnvironmentVariablesWithResponse(ctx context.Context, appId AppId, params *ListAppEnvironmentVariablesParams, reqEditors ...RequestEditorFn) (*ListAppEnvironmentVariablesResponse, error)
ListAppEnvironmentVariablesWithResponse List app environment variables
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/apps/{appId}/environment-variables (the `ListAppEnvironmentVariables` operationId).
func (*ClientWithResponses) ListAppErrorsWithResponse ¶
func (c *ClientWithResponses) ListAppErrorsWithResponse(ctx context.Context, appId AppId, params *ListAppErrorsParams, reqEditors ...RequestEditorFn) (*ListAppErrorsResponse, error)
ListAppErrorsWithResponse List request errors for an app
One page of failed inference requests for this app, newest first. Omit `statusClass` for both 4xx and 5xx. The cursor is opaque and is only valid with the same `window` and `statusClass` it was issued under.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/apps/{appId}/errors (the `ListAppErrors` operationId).
func (*ClientWithResponses) ListAppEventsWithResponse ¶
func (c *ClientWithResponses) ListAppEventsWithResponse(ctx context.Context, appId AppId, params *ListAppEventsParams, reqEditors ...RequestEditorFn) (*ListAppEventsResponse, error)
ListAppEventsWithResponse List app events
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/apps/{appId}/events (the `ListAppEvents` operationId).
func (*ClientWithResponses) ListAppSecretsWithResponse ¶
func (c *ClientWithResponses) ListAppSecretsWithResponse(ctx context.Context, appId AppId, params *ListAppSecretsParams, reqEditors ...RequestEditorFn) (*ListAppSecretsResponse, error)
ListAppSecretsWithResponse List secrets attached to an app
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/apps/{appId}/secrets (the `ListAppSecrets` operationId).
func (*ClientWithResponses) ListAppsWithResponse ¶
func (c *ClientWithResponses) ListAppsWithResponse(ctx context.Context, params *ListAppsParams, reqEditors ...RequestEditorFn) (*ListAppsResponse, error)
ListAppsWithResponse List apps
Returns a page of the organization's apps. Filters combine with AND; soft-deleted apps are excluded unless `status=deleted` is requested explicitly. Favorited apps appear before non-favorited apps, with the selected ordering applied within each group.
A `cursor` is only valid for the `sort` and filters it was issued under — reusing one across a different ordering or filter set returns `400`.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/apps (the `ListApps` operationId).
func (*ClientWithResponses) ListBuildsWithResponse ¶
func (c *ClientWithResponses) ListBuildsWithResponse(ctx context.Context, appId AppId, params *ListBuildsParams, reqEditors ...RequestEditorFn) (*ListBuildsResponse, error)
ListBuildsWithResponse List builds
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/apps/{appId}/builds (the `ListBuilds` operationId).
func (*ClientWithResponses) ListEndpointsWithResponse ¶
func (c *ClientWithResponses) ListEndpointsWithResponse(ctx context.Context, appId AppId, params *ListEndpointsParams, reqEditors ...RequestEditorFn) (*ListEndpointsResponse, error)
ListEndpointsWithResponse List endpoints
Lists the endpoints of the app's active version. The set is written by the source itself — a code build's introspection, or a container's config document — and is replaced atomically whenever a version activates, so a deploy of a newer version or a rollback to an older one is immediately reflected here. Empty while the app is `initializing`: nothing is routable until its first build is ready and deployed.
Each row may include `runtime` (status, req/min, p95, p99) from the latest 5-minute Insights window. Those fields are omitted when metrics cannot be read or the endpoint has no samples; identity always comes from Postgres.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/apps/{appId}/endpoints (the `ListEndpoints` operationId).
func (*ClientWithResponses) ListGpuTypesWithResponse ¶
func (c *ClientWithResponses) ListGpuTypesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListGpuTypesResponse, error)
ListGpuTypesWithResponse List supported GPU types and their pricing
Returns the global GPU type catalog and pricing. The request requires authentication. Customer principals receive only GPU types with capacity currently offered to customers; a type whose hardware is not yet cleared for customer workloads is omitted. The Runware principal receives the full catalog, including retired types and types not yet offered. Retired entries carry `deletedAt`. Each entry's `pricing` is the price currently in effect.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/gpu-types (the `ListGpuTypes` operationId).
func (*ClientWithResponses) ListInsightsQueriesWithResponse ¶
func (c *ClientWithResponses) ListInsightsQueriesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListInsightsQueriesResponse, error)
ListInsightsQueriesWithResponse List the metric and log queries this build can answer
The catalog: every named query, its unit and aggregation, the selectors it accepts, the series it returns, and the windows actually backed by stored series.
This is the source of query ids. Clients discover ids here rather than carrying a list of their own, and render window tabs from `windows` rather than from the full ladder, so a window whose storage tier has no backing series stays invisible instead of rendering a tab with nothing behind it.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/metrics/queries (the `ListInsightsQueries` operationId).
func (*ClientWithResponses) ListReservedCapacityWithResponse ¶
func (c *ClientWithResponses) ListReservedCapacityWithResponse(ctx context.Context, params *ListReservedCapacityParams, reqEditors ...RequestEditorFn) (*ListReservedCapacityResponse, error)
ListReservedCapacityWithResponse Report reserved capacity and its use
What the authenticated organization has reserved, what it is using of it now, and what overflowed to pay-as-you-go.
One entry per commitment scope — one GPU type in one region — because compatible terms add together and cover an allocation between them. The terms that make up the scope are listed with their own dates and quantities.
Counts describe recorded billable state at the window end, so a report of a past period describes that period rather than mixing it with the present. A scope with an effective commitment appears even when nothing is using it: an idle reservation is still charged for, and is what the customer most needs to see. Scopes whose terms expired during the period remain with their historical usage and zero committed capacity at the window end.
The fixed commitment charge is not here. Serverless meters usage and does not own that charge; the commerce system invoices it from the contract schedule. Usage that cannot be priced returns `500`, with no partial report.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/reserved-capacity (the `ListReservedCapacity` operationId).
func (*ClientWithResponses) ListSecretsWithResponse ¶
func (c *ClientWithResponses) ListSecretsWithResponse(ctx context.Context, params *ListSecretsParams, reqEditors ...RequestEditorFn) (*ListSecretsResponse, error)
ListSecretsWithResponse List secrets
Returns secret metadata only; encrypted values are never returned.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/secrets (the `ListSecrets` operationId).
func (*ClientWithResponses) ListTasksWithResponse ¶
func (c *ClientWithResponses) ListTasksWithResponse(ctx context.Context, appId AppId, params *ListTasksParams, reqEditors ...RequestEditorFn) (*ListTasksResponse, error)
ListTasksWithResponse List tasks for an app
Lists TTL-bounded asynchronous task metadata for this app so a client can recover task ids after an interrupted long-poll or CLI session. Pending includes queued, running and retrying work. Tasks appear only within the configured recovery window. A page can be empty and still have `nextCursor`; continue until it is null. Pending entries are best effort and may disappear if the recovery store restarts; tracked tasks reappear on completion. This is not persisted task history. A task id names one task, so resubmitting one does not add a second entry here. If the app is `stopped`, `deleting`, or `failed`, recovery stays available. Unknown or deleted apps return `404 Not Found`.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/apps/{appId}/tasks (the `ListTasks` operationId).
func (*ClientWithResponses) ListUsageEventsWithResponse ¶
func (c *ClientWithResponses) ListUsageEventsWithResponse(ctx context.Context, params *ListUsageEventsParams, reqEditors ...RequestEditorFn) (*ListUsageEventsResponse, error)
ListUsageEventsWithResponse List usage events
Append-only billing telemetry; one row per worker state transition.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/usage (the `ListUsageEvents` operationId).
func (*ClientWithResponses) ListVersionsWithResponse ¶
func (c *ClientWithResponses) ListVersionsWithResponse(ctx context.Context, appId AppId, params *ListVersionsParams, reqEditors ...RequestEditorFn) (*ListVersionsResponse, error)
ListVersionsWithResponse List versions
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/apps/{appId}/versions (the `ListVersions` operationId).
func (*ClientWithResponses) ListWorkersWithResponse ¶
func (c *ClientWithResponses) ListWorkersWithResponse(ctx context.Context, appId AppId, params *ListWorkersParams, reqEditors ...RequestEditorFn) (*ListWorkersResponse, error)
ListWorkersWithResponse List workers
Returns a newest-first page of workers observed for the app (including terminal `stopped` rows until purged). Omitted `versionId` scopes the page to the app's `activeVersionId`. An app with no active version therefore answers an empty default page — not that it has no workers, only that none are pinned. Optional `state`, `status` and `q` narrow the page further; a cursor must be replayed under the same filters it was issued with.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/apps/{appId}/workers (the `ListWorkers` operationId).
func (*ClientWithResponses) ResumeAppWithResponse ¶
func (c *ClientWithResponses) ResumeAppWithResponse(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*ResumeAppResponse, error)
ResumeAppWithResponse Resume an app
Moves the app to `initializing` and returns `202` once that intent is persisted. The Scaler then starts workers and sets the app to `active`; tasks that remained queued when the app stopped are consumed as workers come online. Precondition: `status = stopped`.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/apps/{appId}/resume (the `ResumeApp` operationId).
func (*ClientWithResponses) StartAsyncTaskWithBodyWithResponse ¶
func (c *ClientWithResponses) StartAsyncTaskWithBodyWithResponse(ctx context.Context, appId AppId, endpointPath EndpointPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartAsyncTaskResponse, error)
StartAsyncTaskWithBodyWithResponse Start a new async task
Starts a new async task on `appId`, routing the request body payload to an available worker. The task runs asynchronously and the response is `202`; poll `GET /v1/apps/{appId}/tasks/{taskId}` for completion. Resubmitting a task id is answered with the task it already names rather than starting a second one, so the `202` can carry a task that has already finished: read its `status` instead of assuming `pending`, and note it may name a different `appId`. Apps in `initializing`, `active`, or `stopping` accept invocation, with two exceptions: an `initializing` app whose first rollout has not produced a version returns `409 Conflict`, and an `active` app the platform has observed to have no workload able to serve returns `503 Service Unavailable` with no task minted. `stopped`, `deleting`, and `failed` return `409 Conflict`; unknown or deleted apps return `404 Not Found`. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden`, distinguishing that from an app that does not exist. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes. Endpoint membership is checked against the active version's endpoint set before the task is accepted: an endpoint the app does not declare returns `404` whose `endpointPath` extension member carries the rejected path, distinguishing it from an unknown app, and the task never enters the queue.
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 /v1/apps/{appId}/invoke-async/{endpointPath} (the `StartAsyncTask` operationId).
func (*ClientWithResponses) StartAsyncTaskWithResponse ¶
func (c *ClientWithResponses) StartAsyncTaskWithResponse(ctx context.Context, appId AppId, endpointPath EndpointPath, body StartAsyncTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*StartAsyncTaskResponse, error)
StartAsyncTaskWithResponse Start a new async task
Starts a new async task on `appId`, routing the request body payload to an available worker. The task runs asynchronously and the response is `202`; poll `GET /v1/apps/{appId}/tasks/{taskId}` for completion. Resubmitting a task id is answered with the task it already names rather than starting a second one, so the `202` can carry a task that has already finished: read its `status` instead of assuming `pending`, and note it may name a different `appId`. Apps in `initializing`, `active`, or `stopping` accept invocation, with two exceptions: an `initializing` app whose first rollout has not produced a version returns `409 Conflict`, and an `active` app the platform has observed to have no workload able to serve returns `503 Service Unavailable` with no task minted. `stopped`, `deleting`, and `failed` return `409 Conflict`; unknown or deleted apps return `404 Not Found`. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden`, distinguishing that from an app that does not exist. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes. Endpoint membership is checked against the active version's endpoint set before the task is accepted: an endpoint the app does not declare returns `404` whose `endpointPath` extension member carries the rejected path, distinguishing it from an unknown app, and the task never enters the queue.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/apps/{appId}/invoke-async/{endpointPath} (the `StartAsyncTask` operationId).
func (*ClientWithResponses) StartSyncTaskWithBodyWithResponse ¶
func (c *ClientWithResponses) StartSyncTaskWithBodyWithResponse(ctx context.Context, appId AppId, endpointPath EndpointPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartSyncTaskResponse, error)
StartSyncTaskWithBodyWithResponse Start a new sync task
Starts a new sync task on `appId`, routing the request body payload to an available worker. The request blocks until the task is terminal and returns the result inline (`200`). Resubmitting a task id waits on the task it already names rather than starting a second one, so the `200` carries that task's result and may name a different `appId` — poll it under the one returned. A task that outlives the wait window is **not** a failure: the task is still queued or running, and the response is `202` carrying that task with `status: pending` — the same shape `invoke-async` returns, and it names the owning `appId` on a resubmission just as the `200` does. Poll `GET /v1/apps/{appId}/tasks/{taskId}` for its result. A request the platform cannot attribute to an accepted task fails instead, with no task to poll. Apps in `initializing`, `active`, or `stopping` accept invocation, with two exceptions: an `initializing` app whose first rollout has not produced a version returns `409 Conflict`, and an `active` app the platform has observed to have no workload able to serve returns `503 Service Unavailable` with no task minted. `stopped`, `deleting`, and `failed` return `409 Conflict`; unknown or deleted apps return `404 Not Found`. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden`, distinguishing that from an app that does not exist. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes. Endpoint membership is checked against the active version's endpoint set before the task is accepted: an endpoint the app does not declare returns `404` whose `endpointPath` extension member carries the rejected path, distinguishing it from an unknown app, and the task never enters the queue.
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 /v1/apps/{appId}/invoke-sync/{endpointPath} (the `StartSyncTask` operationId).
func (*ClientWithResponses) StartSyncTaskWithResponse ¶
func (c *ClientWithResponses) StartSyncTaskWithResponse(ctx context.Context, appId AppId, endpointPath EndpointPath, body StartSyncTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*StartSyncTaskResponse, error)
StartSyncTaskWithResponse Start a new sync task
Starts a new sync task on `appId`, routing the request body payload to an available worker. The request blocks until the task is terminal and returns the result inline (`200`). Resubmitting a task id waits on the task it already names rather than starting a second one, so the `200` carries that task's result and may name a different `appId` — poll it under the one returned. A task that outlives the wait window is **not** a failure: the task is still queued or running, and the response is `202` carrying that task with `status: pending` — the same shape `invoke-async` returns, and it names the owning `appId` on a resubmission just as the `200` does. Poll `GET /v1/apps/{appId}/tasks/{taskId}` for its result. A request the platform cannot attribute to an accepted task fails instead, with no task to poll. Apps in `initializing`, `active`, or `stopping` accept invocation, with two exceptions: an `initializing` app whose first rollout has not produced a version returns `409 Conflict`, and an `active` app the platform has observed to have no workload able to serve returns `503 Service Unavailable` with no task minted. `stopped`, `deleting`, and `failed` return `409 Conflict`; unknown or deleted apps return `404 Not Found`. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden`, distinguishing that from an app that does not exist. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes. Endpoint membership is checked against the active version's endpoint set before the task is accepted: an endpoint the app does not declare returns `404` whose `endpointPath` extension member carries the rejected path, distinguishing it from an unknown app, and the task never enters the queue.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/apps/{appId}/invoke-sync/{endpointPath} (the `StartSyncTask` operationId).
func (*ClientWithResponses) StopAppWithResponse ¶
func (c *ClientWithResponses) StopAppWithResponse(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*StopAppResponse, error)
StopAppWithResponse Stop an app
Moves the app to `stopping` and returns `202` once that intent is persisted. Scale-to-zero and worker drain are performed asynchronously by the Scaler; `status` becomes `stopped` once all workers drain. In-flight tasks have a fixed, platform-managed grace period to complete; workers that exceed it are force-terminated and their tasks return to the queue per delivery guarantees. New task submissions remain accepted while `stopping`; after the app reaches `stopped`, submissions return `409 Conflict`. Precondition: `status` is `active` or `failed` — a rollout that failed can leave a workload running, and a stop is what takes it away without deleting the app.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/apps/{appId}/stop (the `StopApp` operationId).
func (*ClientWithResponses) TailLogEntriesWithResponse ¶
func (c *ClientWithResponses) TailLogEntriesWithResponse(ctx context.Context, queryId QueryId, params *TailLogEntriesParams, reqEditors ...RequestEditorFn) (*TailLogEntriesResponse, error)
TailLogEntriesWithResponse Follow a named application log query
Streams new application log entries as Server-Sent Events. The stream sends keepalive comments while quiet and ends with an `end` event when its connection lifetime expires or the service shuts down. Clients should reconnect after an `end` event. Use the `runtime_tail` query id; queries that sort or aggregate are rejected because they cannot be followed live.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/logs/queries/{queryId}/tail (the `TailLogEntries` operationId).
func (*ClientWithResponses) UnfavoriteAppWithResponse ¶
func (c *ClientWithResponses) UnfavoriteAppWithResponse(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*UnfavoriteAppResponse, error)
UnfavoriteAppWithResponse Unfavorite an app
Removes the organization favorite pin from the app. Idempotent: unfavoriting an app that is not favorited succeeds and returns the app with `isFavorite: false`. Valid in any status including `deleting` and `deleted` — unpinning is not an app lifecycle mutation. Missing apps return `404`.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /v1/apps/{appId}/favorite (the `UnfavoriteApp` operationId).
func (*ClientWithResponses) UpdateAppEnvironmentVariableWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateAppEnvironmentVariableWithBodyWithResponse(ctx context.Context, appId AppId, variableName EnvironmentVariableName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAppEnvironmentVariableResponse, error)
UpdateAppEnvironmentVariableWithBodyWithResponse Update an app environment variable
Sets one environment variable, creating it if absent. Names the platform sets on the serving container itself are rejected with `422`, as they are on create.
A write that changes the stored value records a new version carrying the live environment set and the same image. If that image is deployable, the write pins it as `activeVersionId` and rolls the workload when the app can take one (`active`, `initializing`, or `failed` which becomes `initializing`). A `stopped` or `stopping` app pins the version and rolls it on `resume`. A write that leaves the stored value unchanged records no version and does not roll.
A write while a rollout of this app is still in flight returns `409 Conflict` and does not store the value. Each changing write is serialized behind that rollout, so setting several variables one at a time is that many sequential rolls with `409`s between them. Replace the whole set in one request with `PATCH /v1/apps/{appId}` `environmentVariables`.
An app holds at most 100 environment bindings in total — plain variables plus attached secrets — the same combined ceiling `AppCreate.environmentVariables` declares (create rejects secrets in-request; attach grows the set later). Overwriting an existing variable is always allowed; adding one past the ceiling returns `422`.
The name must not collide with a secret already attached to this app (the secret's injected env var name). Secrets and plain env vars share the pod environment; a duplicate would be resolved last-wins by kubelet with no error, so the server rejects it with `422`. The reverse check applies on attach.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /v1/apps/{appId}/environment-variables/{variableName} (the `UpdateAppEnvironmentVariable` operationId).
func (*ClientWithResponses) UpdateAppEnvironmentVariableWithResponse ¶
func (c *ClientWithResponses) UpdateAppEnvironmentVariableWithResponse(ctx context.Context, appId AppId, variableName EnvironmentVariableName, body UpdateAppEnvironmentVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAppEnvironmentVariableResponse, error)
UpdateAppEnvironmentVariableWithResponse Update an app environment variable
Sets one environment variable, creating it if absent. Names the platform sets on the serving container itself are rejected with `422`, as they are on create.
A write that changes the stored value records a new version carrying the live environment set and the same image. If that image is deployable, the write pins it as `activeVersionId` and rolls the workload when the app can take one (`active`, `initializing`, or `failed` which becomes `initializing`). A `stopped` or `stopping` app pins the version and rolls it on `resume`. A write that leaves the stored value unchanged records no version and does not roll.
A write while a rollout of this app is still in flight returns `409 Conflict` and does not store the value. Each changing write is serialized behind that rollout, so setting several variables one at a time is that many sequential rolls with `409`s between them. Replace the whole set in one request with `PATCH /v1/apps/{appId}` `environmentVariables`.
An app holds at most 100 environment bindings in total — plain variables plus attached secrets — the same combined ceiling `AppCreate.environmentVariables` declares (create rejects secrets in-request; attach grows the set later). Overwriting an existing variable is always allowed; adding one past the ceiling returns `422`.
The name must not collide with a secret already attached to this app (the secret's injected env var name). Secrets and plain env vars share the pod environment; a duplicate would be resolved last-wins by kubelet with no error, so the server rejects it with `422`. The reverse check applies on attach.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /v1/apps/{appId}/environment-variables/{variableName} (the `UpdateAppEnvironmentVariable` operationId).
func (*ClientWithResponses) UpdateAppWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateAppWithBodyWithResponse(ctx context.Context, appId AppId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAppResponse, error)
UpdateAppWithBodyWithResponse Update an app
Patches one or more aspects of an app in place. All fields are optional; omitted fields are left unchanged. Valid in any non-`deleted` status, including `stopped` (changes apply on `resume`). Lifecycle transitions use the dedicated `deploy`, `stop`, `resume`, and `delete` operations. A configuration or `environmentVariables` change records a new version with the same image. If that image is deployable, the update pins it as `activeVersionId` and rolls the workload when the app is `active` or `initializing`. A `failed` app is moved to `initializing` and rolled, the same as `POST /deploy`. If the image is not deployable, the version is recorded and `activeVersionId` is left unchanged. If the roll fails, `activeVersionId` is restored and the previous configuration keeps serving. A name-only change records a version and does not pin. A `stopped` or `stopping` app pins the version and rolls it on `resume`. A configuration, `environmentVariables`, or `appSource` change while a create or resume rollout is already in progress returns `409 Conflict`. A name-only or `secrets`-only change does not. `appSource` starts a build and records version N+1 with a new image tag. The deploy queue carries the build-then-deploy tail; `activeVersionId` moves only when that rollout completes. A builder rejection (400 where a container document's parser refused it, 422 where it parsed and broke a rule) leaves the app on its current version and writes no version row and no build row. After the builder accepts, version N+1 is recorded even if a concurrent secret deactivation, an env/secret collision, or the 25-deployment attachment ceiling below prevents this request's env/secrets overlay; in that case the previous environmentVariables and attachment set stay in place and are what the new version snapshots, and the `422` the standalone case below returns does not apply here — the request still succeeds. `environmentVariables` replaces the whole set: a key absent from the map is deleted, and a null value omits that key from the new set. The resolved map is snapshotted onto the new version. `secrets` replaces the whole attachment set. An attachment absent from the array is detached. Injected names must not collide with a plain environment variable on the app; the combined set of plain variables and attachments is capped at 100, and each individual secret can be attached to at most 25 deployments total — an entry that would push a secret past that returns `422`. This is a control-plane record only — secret values do not reach a pod, and the version snapshot carries no secrets — so a secrets-only change does not roll the workload. Endpoints are not a field of this contract: the set belongs to the app source, so it changes only when a new version with a new source builds and deploys.
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 /v1/apps/{appId} (the `UpdateApp` operationId).
func (*ClientWithResponses) UpdateAppWithResponse ¶
func (c *ClientWithResponses) UpdateAppWithResponse(ctx context.Context, appId AppId, body UpdateAppJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAppResponse, error)
UpdateAppWithResponse Update an app
Patches one or more aspects of an app in place. All fields are optional; omitted fields are left unchanged. Valid in any non-`deleted` status, including `stopped` (changes apply on `resume`). Lifecycle transitions use the dedicated `deploy`, `stop`, `resume`, and `delete` operations. A configuration or `environmentVariables` change records a new version with the same image. If that image is deployable, the update pins it as `activeVersionId` and rolls the workload when the app is `active` or `initializing`. A `failed` app is moved to `initializing` and rolled, the same as `POST /deploy`. If the image is not deployable, the version is recorded and `activeVersionId` is left unchanged. If the roll fails, `activeVersionId` is restored and the previous configuration keeps serving. A name-only change records a version and does not pin. A `stopped` or `stopping` app pins the version and rolls it on `resume`. A configuration, `environmentVariables`, or `appSource` change while a create or resume rollout is already in progress returns `409 Conflict`. A name-only or `secrets`-only change does not. `appSource` starts a build and records version N+1 with a new image tag. The deploy queue carries the build-then-deploy tail; `activeVersionId` moves only when that rollout completes. A builder rejection (400 where a container document's parser refused it, 422 where it parsed and broke a rule) leaves the app on its current version and writes no version row and no build row. After the builder accepts, version N+1 is recorded even if a concurrent secret deactivation, an env/secret collision, or the 25-deployment attachment ceiling below prevents this request's env/secrets overlay; in that case the previous environmentVariables and attachment set stay in place and are what the new version snapshots, and the `422` the standalone case below returns does not apply here — the request still succeeds. `environmentVariables` replaces the whole set: a key absent from the map is deleted, and a null value omits that key from the new set. The resolved map is snapshotted onto the new version. `secrets` replaces the whole attachment set. An attachment absent from the array is detached. Injected names must not collide with a plain environment variable on the app; the combined set of plain variables and attachments is capped at 100, and each individual secret can be attached to at most 25 deployments total — an entry that would push a secret past that returns `422`. This is a control-plane record only — secret values do not reach a pod, and the version snapshot carries no secrets — so a secrets-only change does not roll the workload. Endpoints are not a field of this contract: the set belongs to the app source, so it changes only when a new version with a new source builds and deploys.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /v1/apps/{appId} (the `UpdateApp` operationId).
func (*ClientWithResponses) UpdateSecretWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateSecretWithBodyWithResponse(ctx context.Context, secretName SecretName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecretResponse, error)
UpdateSecretWithBodyWithResponse Update a secret
Re-encrypts the value under the same name (no rename). Rolls every live deployment that attaches this secret in place so a running worker picks up the new value. If a rollout is already in progress when this commits, this change is not guaranteed to land on it — it reaches the worker on a later redeploy instead. A deployment that is not live picks it up on its next deploy for another reason. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden` — the per-organization CryptoKey that seals the value is only minted when the tenancy is active. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /v1/secrets/{secretName} (the `UpdateSecret` operationId).
func (*ClientWithResponses) UpdateSecretWithResponse ¶
func (c *ClientWithResponses) UpdateSecretWithResponse(ctx context.Context, secretName SecretName, body UpdateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecretResponse, error)
UpdateSecretWithResponse Update a secret
Re-encrypts the value under the same name (no rename). Rolls every live deployment that attaches this secret in place so a running worker picks up the new value. If a rollout is already in progress when this commits, this change is not guaranteed to land on it — it reaches the worker on a later redeploy instead. A deployment that is not live picks it up on its next deploy for another reason. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden` — the per-organization CryptoKey that seals the value is only minted when the tenancy is active. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /v1/secrets/{secretName} (the `UpdateSecret` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetAppSummaryWithResponse App summary metrics for the authenticated organization
//
// Aggregate dashboard metrics across all apps owned by the authenticated organization. App and worker tallies are always present. Request and error-rate totals come from the metrics store and are omitted when that hop cannot answer rather than reported as zero. Spend covers a rolling 24 hours and is omitted when the usage cannot be priced.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/app-summary (the `GetAppSummary` operationId).
GetAppSummaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAppSummaryResponse, error)
// ListAppsWithResponse List apps
//
// Returns a page of the organization's apps. Filters combine with AND; soft-deleted apps are excluded unless `status=deleted` is requested explicitly. Favorited apps appear before non-favorited apps, with the selected ordering applied within each group.
//
// A `cursor` is only valid for the `sort` and filters it was issued under — reusing one across a different ordering or filter set returns `400`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/apps (the `ListApps` operationId).
ListAppsWithResponse(ctx context.Context, params *ListAppsParams, reqEditors ...RequestEditorFn) (*ListAppsResponse, error)
// CreateAppWithBodyWithResponse Create an app
//
// Creates an app together with its worker configuration, environment variables and endpoints, and records version `1` — the immutable description of what to deploy. The app starts in `initializing`, and what happens next depends on the app source type:
//
// - `code` source: the codebase is submitted to the build pipeline; once the image is built
// and workers become healthy the app transitions to `active` and `activeVersionId`
// points at that version. If the build, validation, or rollout fails the app is
// marked `failed`.
//
// - `container` source: the submitted zip (wrapper `Dockerfile` + `container.yaml`)
// goes through the same build pipeline — the wrapper image is built, published and
// deployed, so the version carries a `buildId` and the app follows the same
// lifecycle as a code source. An invalid `container.yaml` rejects the create
// before any build capacity is spent — `400` where the document could not be
// parsed at all, `422` where it parsed and broke a rule.
//
//
// `activeVersionId` is null until a rollout completes: a version records what should run, and only a finished deploy says what does.
//
// `secrets` attaches organization secrets that already exist. It is the app's initial attachment set, so the first rollout carries their values into the worker. This route does not create a secret — use `POST /v1/secrets` first. A name that is unknown to the organization, or that is not `active`, returns `404`. A name that collides with a key in `environmentVariables`, a repeated name and a set that goes past the binding limit each return `422`. The whole set is checked before any build capacity is spent.
//
// 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 /v1/apps (the `CreateApp` operationId).
CreateAppWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAppResponse, error)
// CreateAppWithResponse Create an app
//
// Creates an app together with its worker configuration, environment variables and endpoints, and records version `1` — the immutable description of what to deploy. The app starts in `initializing`, and what happens next depends on the app source type:
//
// - `code` source: the codebase is submitted to the build pipeline; once the image is built
// and workers become healthy the app transitions to `active` and `activeVersionId`
// points at that version. If the build, validation, or rollout fails the app is
// marked `failed`.
//
// - `container` source: the submitted zip (wrapper `Dockerfile` + `container.yaml`)
// goes through the same build pipeline — the wrapper image is built, published and
// deployed, so the version carries a `buildId` and the app follows the same
// lifecycle as a code source. An invalid `container.yaml` rejects the create
// before any build capacity is spent — `400` where the document could not be
// parsed at all, `422` where it parsed and broke a rule.
//
//
// `activeVersionId` is null until a rollout completes: a version records what should run, and only a finished deploy says what does.
//
// `secrets` attaches organization secrets that already exist. It is the app's initial attachment set, so the first rollout carries their values into the worker. This route does not create a secret — use `POST /v1/secrets` first. A name that is unknown to the organization, or that is not `active`, returns `404`. A name that collides with a key in `environmentVariables`, a repeated name and a set that goes past the binding limit each return `422`. The whole set is checked before any build capacity is spent.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/apps (the `CreateApp` operationId).
CreateAppWithResponse(ctx context.Context, body CreateAppJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAppResponse, error)
// DeleteAppWithResponse Delete an app
//
// Soft delete. Sets `status = deleting` and returns `202` once that intent is persisted. Router removal, canceling in-progress builds, and worker drain (`draining → stopping → stopped`) are performed asynchronously by the deployer/Scaler; `status` becomes `deleted` once all workers stop. All rows are retained for billing finalization, audit, and usage history. Idempotent if the app is already `deleting`.
//
// The `appId` is released once `status` reaches `deleted`, and not before: while the app is `deleting` its workload is still being torn down and the name stays taken. A new app created under a released name is a new app and inherits nothing — no version, no build, no event history, and no workers.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v1/apps/{appId} (the `DeleteApp` operationId).
DeleteAppWithResponse(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*DeleteAppResponse, error)
// GetAppWithResponse Get an app
//
// Returns the app the authenticated organization owns under this `appId`. An unknown app and a soft-deleted one both return `404 Not Found`: a deleted app is gone to its owner, and its rows are retained only for billing and audit. To read deleted apps, list them with `status=deleted`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/apps/{appId} (the `GetApp` operationId).
GetAppWithResponse(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*GetAppResponse, error)
// UpdateAppWithBodyWithResponse Update an app
//
// Patches one or more aspects of an app in place. All fields are optional; omitted fields are left unchanged. Valid in any non-`deleted` status, including `stopped` (changes apply on `resume`). Lifecycle transitions use the dedicated `deploy`, `stop`, `resume`, and `delete` operations.
// A configuration or `environmentVariables` change records a new version with the same image. If that image is deployable, the update pins it as `activeVersionId` and rolls the workload when the app is `active` or `initializing`. A `failed` app is moved to `initializing` and rolled, the same as `POST /deploy`. If the image is not deployable, the version is recorded and `activeVersionId` is left unchanged. If the roll fails, `activeVersionId` is restored and the previous configuration keeps serving. A name-only change records a version and does not pin. A `stopped` or `stopping` app pins the version and rolls it on `resume`. A configuration, `environmentVariables`, or `appSource` change while a create or resume rollout is already in progress returns `409 Conflict`. A name-only or `secrets`-only change does not.
// `appSource` starts a build and records version N+1 with a new image tag. The deploy queue carries the build-then-deploy tail; `activeVersionId` moves only when that rollout completes. A builder rejection (400 where a container document's parser refused it, 422 where it parsed and broke a rule) leaves the app on its current version and writes no version row and no build row. After the builder accepts, version N+1 is recorded even if a concurrent secret deactivation, an env/secret collision, or the 25-deployment attachment ceiling below prevents this request's env/secrets overlay; in that case the previous environmentVariables and attachment set stay in place and are what the new version snapshots, and the `422` the standalone case below returns does not apply here — the request still succeeds.
// `environmentVariables` replaces the whole set: a key absent from the map is deleted, and a null value omits that key from the new set. The resolved map is snapshotted onto the new version.
// `secrets` replaces the whole attachment set. An attachment absent from the array is detached. Injected names must not collide with a plain environment variable on the app; the combined set of plain variables and attachments is capped at 100, and each individual secret can be attached to at most 25 deployments total — an entry that would push a secret past that returns `422`. This is a control-plane record only — secret values do not reach a pod, and the version snapshot carries no secrets — so a secrets-only change does not roll the workload.
// Endpoints are not a field of this contract: the set belongs to the app source, so it changes only when a new version with a new source builds and deploys.
//
// 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 /v1/apps/{appId} (the `UpdateApp` operationId).
UpdateAppWithBodyWithResponse(ctx context.Context, appId AppId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAppResponse, error)
// UpdateAppWithResponse Update an app
//
// Patches one or more aspects of an app in place. All fields are optional; omitted fields are left unchanged. Valid in any non-`deleted` status, including `stopped` (changes apply on `resume`). Lifecycle transitions use the dedicated `deploy`, `stop`, `resume`, and `delete` operations.
// A configuration or `environmentVariables` change records a new version with the same image. If that image is deployable, the update pins it as `activeVersionId` and rolls the workload when the app is `active` or `initializing`. A `failed` app is moved to `initializing` and rolled, the same as `POST /deploy`. If the image is not deployable, the version is recorded and `activeVersionId` is left unchanged. If the roll fails, `activeVersionId` is restored and the previous configuration keeps serving. A name-only change records a version and does not pin. A `stopped` or `stopping` app pins the version and rolls it on `resume`. A configuration, `environmentVariables`, or `appSource` change while a create or resume rollout is already in progress returns `409 Conflict`. A name-only or `secrets`-only change does not.
// `appSource` starts a build and records version N+1 with a new image tag. The deploy queue carries the build-then-deploy tail; `activeVersionId` moves only when that rollout completes. A builder rejection (400 where a container document's parser refused it, 422 where it parsed and broke a rule) leaves the app on its current version and writes no version row and no build row. After the builder accepts, version N+1 is recorded even if a concurrent secret deactivation, an env/secret collision, or the 25-deployment attachment ceiling below prevents this request's env/secrets overlay; in that case the previous environmentVariables and attachment set stay in place and are what the new version snapshots, and the `422` the standalone case below returns does not apply here — the request still succeeds.
// `environmentVariables` replaces the whole set: a key absent from the map is deleted, and a null value omits that key from the new set. The resolved map is snapshotted onto the new version.
// `secrets` replaces the whole attachment set. An attachment absent from the array is detached. Injected names must not collide with a plain environment variable on the app; the combined set of plain variables and attachments is capped at 100, and each individual secret can be attached to at most 25 deployments total — an entry that would push a secret past that returns `422`. This is a control-plane record only — secret values do not reach a pod, and the version snapshot carries no secrets — so a secrets-only change does not roll the workload.
// Endpoints are not a field of this contract: the set belongs to the app source, so it changes only when a new version with a new source builds and deploys.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v1/apps/{appId} (the `UpdateApp` operationId).
UpdateAppWithResponse(ctx context.Context, appId AppId, body UpdateAppJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAppResponse, error)
// ListBuildsWithResponse List builds
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/apps/{appId}/builds (the `ListBuilds` operationId).
ListBuildsWithResponse(ctx context.Context, appId AppId, params *ListBuildsParams, reqEditors ...RequestEditorFn) (*ListBuildsResponse, error)
// DeleteBuildWithResponse Delete or cancel a build
//
// Cancels a queued or running build and records it as `superseded`. Deleting a queued or running build ends its current rollout without activating the canceled build, so any previous version keeps serving. A terminal build can be deleted once no live rollout still needs it. Ready builds remain while a version references them.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v1/apps/{appId}/builds/{buildId} (the `DeleteBuild` operationId).
DeleteBuildWithResponse(ctx context.Context, appId AppId, buildId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteBuildResponse, error)
// GetBuildWithResponse Get a build
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/apps/{appId}/builds/{buildId} (the `GetBuild` operationId).
GetBuildWithResponse(ctx context.Context, appId AppId, buildId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetBuildResponse, error)
// DeployVersionWithBodyWithResponse Deploy a version
//
// Activates a `ready` version by number, setting `activeVersionId` and returning `202` once that intent is persisted. Worker rollout, routing switch, and canceling in-progress builds (`superseded`) are performed asynchronously by the deployer/Scaler. Permitted in any addressable status, including `initializing` and `failed`.
// To roll back, supply an older `versionNumber` — the operation is identical to a forward deploy. No new version is created and no rebuild happens: the version's existing image is re-applied. Re-deploying the currently active version is permitted and re-applies it.
// A deploy to a `stopped` or `stopping` app records the version and rolls no workload, because no workers are running: the `202` does not imply a rollout there. The recorded version is the one applied when the app resumes.
// If the roll of a live app fails, `activeVersionId` is restored to the version that kept serving, so the field keeps naming the running image.
// **Rollout** (deployer/Scaler): the platform starts workers on the target version, waits for at least one to become healthy, switches task routing to the new version, then drains old-version workers gracefully. Old workers are given a fixed, platform-managed grace period to finish in-flight tasks before being force-terminated. If new workers fail to become healthy, old workers are not drained and the app continues on the previous version.
// Errors: - Deploy to a `deleting` app returns `409 Conflict` - `versionNumber` not found or not `ready` returns `409 Conflict` - A deploy while a rollout of this app is still in flight returns `409 Conflict`;
// one app rolls to one version at a time. Retry once it completes.
// - Deploy to a non-existent or `deleted` app returns `404 Not Found`
//
// 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 /v1/apps/{appId}/deploy (the `DeployVersion` operationId).
DeployVersionWithBodyWithResponse(ctx context.Context, appId AppId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeployVersionResponse, error)
// DeployVersionWithResponse Deploy a version
//
// Activates a `ready` version by number, setting `activeVersionId` and returning `202` once that intent is persisted. Worker rollout, routing switch, and canceling in-progress builds (`superseded`) are performed asynchronously by the deployer/Scaler. Permitted in any addressable status, including `initializing` and `failed`.
// To roll back, supply an older `versionNumber` — the operation is identical to a forward deploy. No new version is created and no rebuild happens: the version's existing image is re-applied. Re-deploying the currently active version is permitted and re-applies it.
// A deploy to a `stopped` or `stopping` app records the version and rolls no workload, because no workers are running: the `202` does not imply a rollout there. The recorded version is the one applied when the app resumes.
// If the roll of a live app fails, `activeVersionId` is restored to the version that kept serving, so the field keeps naming the running image.
// **Rollout** (deployer/Scaler): the platform starts workers on the target version, waits for at least one to become healthy, switches task routing to the new version, then drains old-version workers gracefully. Old workers are given a fixed, platform-managed grace period to finish in-flight tasks before being force-terminated. If new workers fail to become healthy, old workers are not drained and the app continues on the previous version.
// Errors: - Deploy to a `deleting` app returns `409 Conflict` - `versionNumber` not found or not `ready` returns `409 Conflict` - A deploy while a rollout of this app is still in flight returns `409 Conflict`;
// one app rolls to one version at a time. Retry once it completes.
// - Deploy to a non-existent or `deleted` app returns `404 Not Found`
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/apps/{appId}/deploy (the `DeployVersion` operationId).
DeployVersionWithResponse(ctx context.Context, appId AppId, body DeployVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*DeployVersionResponse, error)
// ListEndpointsWithResponse List endpoints
//
// Lists the endpoints of the app's active version. The set is written by the source itself — a code build's introspection, or a container's config document — and is replaced atomically whenever a version activates, so a deploy of a newer version or a rollback to an older one is immediately reflected here. Empty while the app is `initializing`: nothing is routable until its first build is ready and deployed.
//
// Each row may include `runtime` (status, req/min, p95, p99) from the latest 5-minute Insights window. Those fields are omitted when metrics cannot be read or the endpoint has no samples; identity always comes from Postgres.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/apps/{appId}/endpoints (the `ListEndpoints` operationId).
ListEndpointsWithResponse(ctx context.Context, appId AppId, params *ListEndpointsParams, reqEditors ...RequestEditorFn) (*ListEndpointsResponse, error)
// GetEndpointWithResponse Get an endpoint
//
// Returns one live endpoint on the app. `runtime` is the same optional latest-window traffic as `listEndpoints` and is omitted when metrics cannot be read or the endpoint has no samples.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/apps/{appId}/endpoints/{endpointId} (the `GetEndpoint` operationId).
GetEndpointWithResponse(ctx context.Context, appId AppId, endpointId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetEndpointResponse, error)
// ListAppEnvironmentVariablesWithResponse List app environment variables
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/apps/{appId}/environment-variables (the `ListAppEnvironmentVariables` operationId).
ListAppEnvironmentVariablesWithResponse(ctx context.Context, appId AppId, params *ListAppEnvironmentVariablesParams, reqEditors ...RequestEditorFn) (*ListAppEnvironmentVariablesResponse, error)
// DeleteAppEnvironmentVariableWithResponse Delete an app environment variable
//
// Removes one environment variable. A successful delete records a new version carrying the remaining environment set and the same image. If that image is deployable, the delete pins it as `activeVersionId` and rolls the workload when the app can take one (`active`, `initializing`, or `failed` which becomes `initializing`). A `stopped` or `stopping` app pins the version and rolls it on `resume`. A delete of a key that is present while a rollout of this app is still in flight returns `409 Conflict` and does not remove the value. A name that is not present returns `404` even during that window.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v1/apps/{appId}/environment-variables/{variableName} (the `DeleteAppEnvironmentVariable` operationId).
DeleteAppEnvironmentVariableWithResponse(ctx context.Context, appId AppId, variableName EnvironmentVariableName, reqEditors ...RequestEditorFn) (*DeleteAppEnvironmentVariableResponse, error)
// UpdateAppEnvironmentVariableWithBodyWithResponse Update an app environment variable
//
// Sets one environment variable, creating it if absent. Names the platform sets on the serving container itself are rejected with `422`, as they are on create.
//
// A write that changes the stored value records a new version carrying the live environment set and the same image. If that image is deployable, the write pins it as `activeVersionId` and rolls the workload when the app can take one (`active`, `initializing`, or `failed` which becomes `initializing`). A `stopped` or `stopping` app pins the version and rolls it on `resume`. A write that leaves the stored value unchanged records no version and does not roll.
//
// A write while a rollout of this app is still in flight returns `409 Conflict` and does not store the value. Each changing write is serialized behind that rollout, so setting several variables one at a time is that many sequential rolls with `409`s between them. Replace the whole set in one request with `PATCH /v1/apps/{appId}` `environmentVariables`.
//
// An app holds at most 100 environment bindings in total — plain variables plus attached secrets — the same combined ceiling `AppCreate.environmentVariables` declares (create rejects secrets in-request; attach grows the set later). Overwriting an existing variable is always allowed; adding one past the ceiling returns `422`.
//
// The name must not collide with a secret already attached to this app (the secret's injected env var name). Secrets and plain env vars share the pod environment; a duplicate would be resolved last-wins by kubelet with no error, so the server rejects it with `422`. The reverse check applies on attach.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /v1/apps/{appId}/environment-variables/{variableName} (the `UpdateAppEnvironmentVariable` operationId).
UpdateAppEnvironmentVariableWithBodyWithResponse(ctx context.Context, appId AppId, variableName EnvironmentVariableName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAppEnvironmentVariableResponse, error)
// UpdateAppEnvironmentVariableWithResponse Update an app environment variable
//
// Sets one environment variable, creating it if absent. Names the platform sets on the serving container itself are rejected with `422`, as they are on create.
//
// A write that changes the stored value records a new version carrying the live environment set and the same image. If that image is deployable, the write pins it as `activeVersionId` and rolls the workload when the app can take one (`active`, `initializing`, or `failed` which becomes `initializing`). A `stopped` or `stopping` app pins the version and rolls it on `resume`. A write that leaves the stored value unchanged records no version and does not roll.
//
// A write while a rollout of this app is still in flight returns `409 Conflict` and does not store the value. Each changing write is serialized behind that rollout, so setting several variables one at a time is that many sequential rolls with `409`s between them. Replace the whole set in one request with `PATCH /v1/apps/{appId}` `environmentVariables`.
//
// An app holds at most 100 environment bindings in total — plain variables plus attached secrets — the same combined ceiling `AppCreate.environmentVariables` declares (create rejects secrets in-request; attach grows the set later). Overwriting an existing variable is always allowed; adding one past the ceiling returns `422`.
//
// The name must not collide with a secret already attached to this app (the secret's injected env var name). Secrets and plain env vars share the pod environment; a duplicate would be resolved last-wins by kubelet with no error, so the server rejects it with `422`. The reverse check applies on attach.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /v1/apps/{appId}/environment-variables/{variableName} (the `UpdateAppEnvironmentVariable` operationId).
UpdateAppEnvironmentVariableWithResponse(ctx context.Context, appId AppId, variableName EnvironmentVariableName, body UpdateAppEnvironmentVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAppEnvironmentVariableResponse, error)
// ListAppErrorsWithResponse List request errors for an app
//
// One page of failed inference requests for this app, newest first. Omit `statusClass` for both 4xx and 5xx. The cursor is opaque and is only valid with the same `window` and `statusClass` it was issued under.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/apps/{appId}/errors (the `ListAppErrors` operationId).
ListAppErrorsWithResponse(ctx context.Context, appId AppId, params *ListAppErrorsParams, reqEditors ...RequestEditorFn) (*ListAppErrorsResponse, error)
// ListAppEventsWithResponse List app events
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/apps/{appId}/events (the `ListAppEvents` operationId).
ListAppEventsWithResponse(ctx context.Context, appId AppId, params *ListAppEventsParams, reqEditors ...RequestEditorFn) (*ListAppEventsResponse, error)
// UnfavoriteAppWithResponse Unfavorite an app
//
// Removes the organization favorite pin from the app. Idempotent: unfavoriting an app that is not favorited succeeds and returns the app with `isFavorite: false`. Valid in any status including `deleting` and `deleted` — unpinning is not an app lifecycle mutation. Missing apps return `404`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v1/apps/{appId}/favorite (the `UnfavoriteApp` operationId).
UnfavoriteAppWithResponse(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*UnfavoriteAppResponse, error)
// FavoriteAppWithResponse Favorite an app
//
// Pins the app as a favorite for the authenticated organization so the console can surface it in a Favorites section. Idempotent: favoriting an already-favorited app succeeds and returns the app with `isFavorite: true`. Apps in `deleting` or `deleted` status cannot be favorited (`404`). Soft-delete clears any existing pin when status becomes `deleting`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /v1/apps/{appId}/favorite (the `FavoriteApp` operationId).
FavoriteAppWithResponse(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*FavoriteAppResponse, error)
// StartAsyncTaskWithBodyWithResponse Start a new async task
//
// Starts a new async task on `appId`, routing the request body payload to an available worker. The task runs asynchronously and the response is `202`; poll `GET /v1/apps/{appId}/tasks/{taskId}` for completion. Resubmitting a task id is answered with the task it already names rather than starting a second one, so the `202` can carry a task that has already finished: read its `status` instead of assuming `pending`, and note it may name a different `appId`. Apps in `initializing`, `active`, or `stopping` accept invocation, with two exceptions: an `initializing` app whose first rollout has not produced a version returns `409 Conflict`, and an `active` app the platform has observed to have no workload able to serve returns `503 Service Unavailable` with no task minted. `stopped`, `deleting`, and `failed` return `409 Conflict`; unknown or deleted apps return `404 Not Found`. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden`, distinguishing that from an app that does not exist. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes. Endpoint membership is checked against the active version's endpoint set before the task is accepted: an endpoint the app does not declare returns `404` whose `endpointPath` extension member carries the rejected path, distinguishing it from an unknown app, and the task never enters the queue.
//
// 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 /v1/apps/{appId}/invoke-async/{endpointPath} (the `StartAsyncTask` operationId).
StartAsyncTaskWithBodyWithResponse(ctx context.Context, appId AppId, endpointPath EndpointPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartAsyncTaskResponse, error)
// StartAsyncTaskWithResponse Start a new async task
//
// Starts a new async task on `appId`, routing the request body payload to an available worker. The task runs asynchronously and the response is `202`; poll `GET /v1/apps/{appId}/tasks/{taskId}` for completion. Resubmitting a task id is answered with the task it already names rather than starting a second one, so the `202` can carry a task that has already finished: read its `status` instead of assuming `pending`, and note it may name a different `appId`. Apps in `initializing`, `active`, or `stopping` accept invocation, with two exceptions: an `initializing` app whose first rollout has not produced a version returns `409 Conflict`, and an `active` app the platform has observed to have no workload able to serve returns `503 Service Unavailable` with no task minted. `stopped`, `deleting`, and `failed` return `409 Conflict`; unknown or deleted apps return `404 Not Found`. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden`, distinguishing that from an app that does not exist. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes. Endpoint membership is checked against the active version's endpoint set before the task is accepted: an endpoint the app does not declare returns `404` whose `endpointPath` extension member carries the rejected path, distinguishing it from an unknown app, and the task never enters the queue.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/apps/{appId}/invoke-async/{endpointPath} (the `StartAsyncTask` operationId).
StartAsyncTaskWithResponse(ctx context.Context, appId AppId, endpointPath EndpointPath, body StartAsyncTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*StartAsyncTaskResponse, error)
// StartSyncTaskWithBodyWithResponse Start a new sync task
//
// Starts a new sync task on `appId`, routing the request body payload to an available worker. The request blocks until the task is terminal and returns the result inline (`200`). Resubmitting a task id waits on the task it already names rather than starting a second one, so the `200` carries that task's result and may name a different `appId` — poll it under the one returned. A task that outlives the wait window is **not** a failure: the task is still queued or running, and the response is `202` carrying that task with `status: pending` — the same shape `invoke-async` returns, and it names the owning `appId` on a resubmission just as the `200` does. Poll `GET /v1/apps/{appId}/tasks/{taskId}` for its result. A request the platform cannot attribute to an accepted task fails instead, with no task to poll. Apps in `initializing`, `active`, or `stopping` accept invocation, with two exceptions: an `initializing` app whose first rollout has not produced a version returns `409 Conflict`, and an `active` app the platform has observed to have no workload able to serve returns `503 Service Unavailable` with no task minted. `stopped`, `deleting`, and `failed` return `409 Conflict`; unknown or deleted apps return `404 Not Found`. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden`, distinguishing that from an app that does not exist. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes. Endpoint membership is checked against the active version's endpoint set before the task is accepted: an endpoint the app does not declare returns `404` whose `endpointPath` extension member carries the rejected path, distinguishing it from an unknown app, and the task never enters the queue.
//
// 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 /v1/apps/{appId}/invoke-sync/{endpointPath} (the `StartSyncTask` operationId).
StartSyncTaskWithBodyWithResponse(ctx context.Context, appId AppId, endpointPath EndpointPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartSyncTaskResponse, error)
// StartSyncTaskWithResponse Start a new sync task
//
// Starts a new sync task on `appId`, routing the request body payload to an available worker. The request blocks until the task is terminal and returns the result inline (`200`). Resubmitting a task id waits on the task it already names rather than starting a second one, so the `200` carries that task's result and may name a different `appId` — poll it under the one returned. A task that outlives the wait window is **not** a failure: the task is still queued or running, and the response is `202` carrying that task with `status: pending` — the same shape `invoke-async` returns, and it names the owning `appId` on a resubmission just as the `200` does. Poll `GET /v1/apps/{appId}/tasks/{taskId}` for its result. A request the platform cannot attribute to an accepted task fails instead, with no task to poll. Apps in `initializing`, `active`, or `stopping` accept invocation, with two exceptions: an `initializing` app whose first rollout has not produced a version returns `409 Conflict`, and an `active` app the platform has observed to have no workload able to serve returns `503 Service Unavailable` with no task minted. `stopped`, `deleting`, and `failed` return `409 Conflict`; unknown or deleted apps return `404 Not Found`. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden`, distinguishing that from an app that does not exist. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes. Endpoint membership is checked against the active version's endpoint set before the task is accepted: an endpoint the app does not declare returns `404` whose `endpointPath` extension member carries the rejected path, distinguishing it from an unknown app, and the task never enters the queue.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/apps/{appId}/invoke-sync/{endpointPath} (the `StartSyncTask` operationId).
StartSyncTaskWithResponse(ctx context.Context, appId AppId, endpointPath EndpointPath, body StartSyncTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*StartSyncTaskResponse, error)
// ResumeAppWithResponse Resume an app
//
// Moves the app to `initializing` and returns `202` once that intent is persisted. The Scaler then starts workers and sets the app to `active`; tasks that remained queued when the app stopped are consumed as workers come online. Precondition: `status = stopped`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/apps/{appId}/resume (the `ResumeApp` operationId).
ResumeAppWithResponse(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*ResumeAppResponse, error)
// ListAppSecretsWithResponse List secrets attached to an app
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/apps/{appId}/secrets (the `ListAppSecrets` operationId).
ListAppSecretsWithResponse(ctx context.Context, appId AppId, params *ListAppSecretsParams, reqEditors ...RequestEditorFn) (*ListAppSecretsResponse, error)
// AttachAppSecretWithBodyWithResponse Attach a secret to an app
//
// Records that an organization secret is attached to an app under a resolved env-var name, and rolls the app's live deployment in place so a running worker picks up the value without waiting for an unrelated deploy. If a rollout is already in progress when this commits, this attach is not guaranteed to land on it — it reaches the worker on a later redeploy instead. A deployment that is not live records the attachment only — the next resume reads the attach set fresh. Returns `409` if the secret is already attached, or if another attach would use the same env-var name.
// The resolved name (`envVarName`, or `secretName` when omitted) must not already exist as a plain environment variable on this app (`deployment_configs.key`). Both sources use the same pod env namespace, so the server rejects the collision with `422` instead of allowing a last-wins override later. The reverse check applies when setting a plain environment variable.
// An app holds at most 100 environment bindings in total — plain environment variables plus attached secrets — the same combined ceiling as create and the single-key env-var route. Attaching when the app is already at that limit returns `422`.
// A secret can be attached to at most 25 deployments — rolling every attached deployment is what an update or detach costs, so the ceiling bounds that cost rather than the app side of the binding. Attaching past it returns `422`.
//
// 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 /v1/apps/{appId}/secrets (the `AttachAppSecret` operationId).
AttachAppSecretWithBodyWithResponse(ctx context.Context, appId AppId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachAppSecretResponse, error)
// AttachAppSecretWithResponse Attach a secret to an app
//
// Records that an organization secret is attached to an app under a resolved env-var name, and rolls the app's live deployment in place so a running worker picks up the value without waiting for an unrelated deploy. If a rollout is already in progress when this commits, this attach is not guaranteed to land on it — it reaches the worker on a later redeploy instead. A deployment that is not live records the attachment only — the next resume reads the attach set fresh. Returns `409` if the secret is already attached, or if another attach would use the same env-var name.
// The resolved name (`envVarName`, or `secretName` when omitted) must not already exist as a plain environment variable on this app (`deployment_configs.key`). Both sources use the same pod env namespace, so the server rejects the collision with `422` instead of allowing a last-wins override later. The reverse check applies when setting a plain environment variable.
// An app holds at most 100 environment bindings in total — plain environment variables plus attached secrets — the same combined ceiling as create and the single-key env-var route. Attaching when the app is already at that limit returns `422`.
// A secret can be attached to at most 25 deployments — rolling every attached deployment is what an update or detach costs, so the ceiling bounds that cost rather than the app side of the binding. Attaching past it returns `422`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/apps/{appId}/secrets (the `AttachAppSecret` operationId).
AttachAppSecretWithResponse(ctx context.Context, appId AppId, body AttachAppSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachAppSecretResponse, error)
// DetachAppSecretWithResponse Detach a secret from an app
//
// Removes the attachment and rolls the app's live deployment in place so a running worker stops receiving the value. If a rollout is already in progress when this commits, this detach is not guaranteed to land on it — the worker stops receiving the value on a later redeploy instead. A deployment that is not live has the removal recorded only — there is nothing to roll until it resumes.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v1/apps/{appId}/secrets/{secretName} (the `DetachAppSecret` operationId).
DetachAppSecretWithResponse(ctx context.Context, appId AppId, secretName SecretName, reqEditors ...RequestEditorFn) (*DetachAppSecretResponse, error)
// StopAppWithResponse Stop an app
//
// Moves the app to `stopping` and returns `202` once that intent is persisted. Scale-to-zero and worker drain are performed asynchronously by the Scaler; `status` becomes `stopped` once all workers drain. In-flight tasks have a fixed, platform-managed grace period to complete; workers that exceed it are force-terminated and their tasks return to the queue per delivery guarantees. New task submissions remain accepted while `stopping`; after the app reaches `stopped`, submissions return `409 Conflict`. Precondition: `status` is `active` or `failed` — a rollout that failed can leave a workload running, and a stop is what takes it away without deleting the app.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/apps/{appId}/stop (the `StopApp` operationId).
StopAppWithResponse(ctx context.Context, appId AppId, reqEditors ...RequestEditorFn) (*StopAppResponse, error)
// ListTasksWithResponse List tasks for an app
//
// Lists TTL-bounded asynchronous task metadata for this app so a client can recover task ids after an interrupted long-poll or CLI session. Pending includes queued, running and retrying work. Tasks appear only within the configured recovery window. A page can be empty and still have `nextCursor`; continue until it is null. Pending entries are best effort and may disappear if the recovery store restarts; tracked tasks reappear on completion. This is not persisted task history. A task id names one task, so resubmitting one does not add a second entry here. If the app is `stopped`, `deleting`, or `failed`, recovery stays available. Unknown or deleted apps return `404 Not Found`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/apps/{appId}/tasks (the `ListTasks` operationId).
ListTasksWithResponse(ctx context.Context, appId AppId, params *ListTasksParams, reqEditors ...RequestEditorFn) (*ListTasksResponse, error)
// GetTaskWithResponse Get a task
//
// Returns the task's current status, read through the inference transport layer from the shared result store. When `completed`, includes the result `output` and `completedAt`; when `failed`, includes `error`; when `pending`, neither is set. If the app is `stopped`, `deleting`, or `failed`, accepted task results stay readable. A `404 Not Found` means the task cannot currently be verified for this app. Because enqueue-time ownership tracking is best effort, a recently returned task ID can temporarily return `404`; retry it within the normal polling window. Unknown or deleted apps also return `404 Not Found`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/apps/{appId}/tasks/{taskId} (the `GetTask` operationId).
GetTaskWithResponse(ctx context.Context, appId AppId, taskId TaskId, reqEditors ...RequestEditorFn) (*GetTaskResponse, error)
// ListVersionsWithResponse List versions
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/apps/{appId}/versions (the `ListVersions` operationId).
ListVersionsWithResponse(ctx context.Context, appId AppId, params *ListVersionsParams, reqEditors ...RequestEditorFn) (*ListVersionsResponse, error)
// DeleteVersionWithResponse Delete a version
//
// Deletes an unused version while retaining its immutable history. Deleted versions are omitted from version lists, return `404` from version reads, and cannot be deployed. Returns `409` while the app is deleting, or when the version is active, is the app's only remaining version, has a non-stopped worker, or is targeted by a live rollout. Deleting an already deleted version returns `404`. This operation does not remove the version's OCI image.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v1/apps/{appId}/versions/{versionNumber} (the `DeleteVersion` operationId).
DeleteVersionWithResponse(ctx context.Context, appId AppId, versionNumber int32, reqEditors ...RequestEditorFn) (*DeleteVersionResponse, error)
// GetVersionWithResponse Get a version
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/apps/{appId}/versions/{versionNumber} (the `GetVersion` operationId).
GetVersionWithResponse(ctx context.Context, appId AppId, versionNumber int32, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)
// ListWorkersWithResponse List workers
//
// Returns a newest-first page of workers observed for the app (including terminal `stopped` rows until purged). Omitted `versionId` scopes the page to the app's `activeVersionId`. An app with no active version therefore answers an empty default page — not that it has no workers, only that none are pinned. Optional `state`, `status` and `q` narrow the page further; a cursor must be replayed under the same filters it was issued with.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/apps/{appId}/workers (the `ListWorkers` operationId).
ListWorkersWithResponse(ctx context.Context, appId AppId, params *ListWorkersParams, reqEditors ...RequestEditorFn) (*ListWorkersResponse, error)
// GetWorkerWithResponse Get a worker
//
// Returns one worker by id within the app. The id is the Kubernetes pod UID recorded by the reconciler. A worker that belongs to another app (or tenant) is not found.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/apps/{appId}/workers/{workerId} (the `GetWorker` operationId).
GetWorkerWithResponse(ctx context.Context, appId AppId, workerId WorkerId, reqEditors ...RequestEditorFn) (*GetWorkerResponse, error)
// ListGpuTypesWithResponse List supported GPU types and their pricing
//
// Returns the global GPU type catalog and pricing. The request requires authentication. Customer principals receive only GPU types with capacity currently offered to customers; a type whose hardware is not yet cleared for customer workloads is omitted. The Runware principal receives the full catalog, including retired types and types not yet offered. Retired entries carry `deletedAt`. Each entry's `pricing` is the price currently in effect.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/gpu-types (the `ListGpuTypes` operationId).
ListGpuTypesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListGpuTypesResponse, error)
// GetGpuTypeWithResponse Get a GPU type from the catalog
//
// Returns an active entry from the global GPU type catalog. Retired entries return `404`. The result is not organization-specific, but the request still requires authentication.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/gpu-types/{gpuTypeId} (the `GetGpuType` operationId).
GetGpuTypeWithResponse(ctx context.Context, gpuTypeId GpuTypeId, reqEditors ...RequestEditorFn) (*GetGpuTypeResponse, error)
// GetLogEntriesWithResponse Read one page of a named log query
//
// Returns one page of log entries in the requested `sort` order, newest first by default, with opaque cursors for the neighboring pages when they exist. `nextCursor` continues in the `sort` order and `prevCursor` goes back against it, so a client can walk a window in either direction from either end. A cursor is only valid for the `sort` it was issued under; reusing one under the other ordering returns `400`. Query ids and their supported selectors are listed by the insights catalog.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/logs/queries/{queryId}/entries (the `GetLogEntries` operationId).
GetLogEntriesWithResponse(ctx context.Context, queryId QueryId, params *GetLogEntriesParams, reqEditors ...RequestEditorFn) (*GetLogEntriesResponse, error)
// TailLogEntriesWithResponse Follow a named application log query
//
// Streams new application log entries as Server-Sent Events. The stream sends keepalive comments while quiet and ends with an `end` event when its connection lifetime expires or the service shuts down. Clients should reconnect after an `end` event. Use the `runtime_tail` query id; queries that sort or aggregate are rejected because they cannot be followed live.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/logs/queries/{queryId}/tail (the `TailLogEntries` operationId).
TailLogEntriesWithResponse(ctx context.Context, queryId QueryId, params *TailLogEntriesParams, reqEditors ...RequestEditorFn) (*TailLogEntriesResponse, error)
// ListInsightsQueriesWithResponse List the metric and log queries this build can answer
//
// The catalog: every named query, its unit and aggregation, the selectors it accepts, the series it returns, and the windows actually backed by stored series.
//
// This is the source of query ids. Clients discover ids here rather than carrying a list of their own, and render window tabs from `windows` rather than from the full ladder, so a window whose storage tier has no backing series stays invisible instead of rendering a tab with nothing behind it.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/metrics/queries (the `ListInsightsQueries` operationId).
ListInsightsQueriesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListInsightsQueriesResponse, error)
// GetMetricSeriesWithResponse Read one named metric query
//
// Returns one chart's data: a single timestamp axis shared by every series, and one dense value array per series aligned to it.
//
// Values are dense and positionally aligned to `t`, with an explicit `null` wherever there was no sample. Each timestamp is the END of its bucket, so `window.to` is inclusive and equals the last timestamp in `t`, while `window.from` is exclusive and is one `step_s` before the first.
//
// An organization with no metrics yet is answered with the full axis and all-null series rather than an error.
//
// `apps_request_volume` returns one series per app: 96 quarter-hour request counts over `window=24h` (`step_s` 900, unit `requests`). Repeat `appId` once per id on the current list page to pad idle apps with all-null series, in request order. A series is named for the live app behind it, so a reused app id reports its own generation's traffic and not the one before it. The same `appId` pad applies to the list-scoped `apps_error_volume` and `apps_request_duration` queries. Other queries reject `appId`. Other windows are not available for these queries.
//
// `endpoints_request_volume` is the endpoints-list counterpart: 96 quarter-hour request counts per endpoint over `window=24h` (`step_s` 900, unit `requests`). It requires the public app id. Repeat `endpointId` once per id on the current `listEndpoints` page to pad idle endpoints with all-null series, in request order. Buckets that started before that endpoint row's `createdAt` are null, so a removed-then-readded path does not inherit the previous row's traffic.
//
// The same app + `endpointId` pad and `createdAt` clip apply to the list-scoped `endpoints_request_rate`, `endpoints_latency_p95`, `endpoints_latency_p99`, `endpoints_error_volume` and `endpoints_request_count` queries (`window=1h` only, 5-minute step). Those feed `listEndpoints` / `getEndpoint` `runtime` and are omitted from the catalog. Other queries reject `endpointId`. Other windows are not available for these queries.
//
// Three queries serve one app's overview, all over `window=24h` at `step_s` 900 and all requiring the public app id: `app_traffic_24h` returns `requests`, `client_errors` (4xx) and `server_errors` (5xx) as request counts; `app_worker_seconds_24h` returns `startup`, `execution` and `idle` as worker-seconds, whose three values in a bucket sum to that bucket's worker time; and `app_cold_starts_24h` returns `cold_starts` as a count. They report counts and totals rather than rates or ratios, so a per-minute figure is a bucket value divided by `step_s / 60` and a 24h ratio is one summed axis over another — summing first and dividing once, because averaging a per-bucket ratio across the axis does not give the 24h ratio. These queries are absent from `listInsightsQueries`: they back the overview rather than the Metrics tab. Other windows are not available for them.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/metrics/queries/{queryId}/series (the `GetMetricSeries` operationId).
GetMetricSeriesWithResponse(ctx context.Context, queryId QueryId, params *GetMetricSeriesParams, reqEditors ...RequestEditorFn) (*GetMetricSeriesResponse, error)
// ListReservedCapacityWithResponse Report reserved capacity and its use
//
// What the authenticated organization has reserved, what it is using of it now, and what overflowed to pay-as-you-go.
//
// One entry per commitment scope — one GPU type in one region — because compatible terms add together and cover an allocation between them. The terms that make up the scope are listed with their own dates and quantities.
//
// Counts describe recorded billable state at the window end, so a report of a past period describes that period rather than mixing it with the present. A scope with an effective commitment appears even when nothing is using it: an idle reservation is still charged for, and is what the customer most needs to see. Scopes whose terms expired during the period remain with their historical usage and zero committed capacity at the window end.
//
// The fixed commitment charge is not here. Serverless meters usage and does not own that charge; the commerce system invoices it from the contract schedule. Usage that cannot be priced returns `500`, with no partial report.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/reserved-capacity (the `ListReservedCapacity` operationId).
ListReservedCapacityWithResponse(ctx context.Context, params *ListReservedCapacityParams, reqEditors ...RequestEditorFn) (*ListReservedCapacityResponse, error)
// ListSecretsWithResponse List secrets
//
// Returns secret metadata only; encrypted values are never returned.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/secrets (the `ListSecrets` operationId).
ListSecretsWithResponse(ctx context.Context, params *ListSecretsParams, reqEditors ...RequestEditorFn) (*ListSecretsResponse, error)
// CreateSecretWithBodyWithResponse Create a secret
//
// Creates an organization-scoped secret. Returns `409` if the name is already in use — including when a secret of that name is `pending_destroy`. List only shows active secrets, so a name can appear free while create still conflicts for as long as that row remains. A `pending_destroy` row is removed, and its name released, by a background sweep once no running worker can still hold the value — there is no deadline on that wait, so a continuously busy app can hold a name for as long as it runs. Recreate-while-deleting may later reuse the pending row with the new value (same name, new ciphertext). An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden` — the per-organization CryptoKey that seals the value is only minted when the tenancy is active. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes.
//
// 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 /v1/secrets (the `CreateSecret` operationId).
CreateSecretWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretResponse, error)
// CreateSecretWithResponse Create a secret
//
// Creates an organization-scoped secret. Returns `409` if the name is already in use — including when a secret of that name is `pending_destroy`. List only shows active secrets, so a name can appear free while create still conflicts for as long as that row remains. A `pending_destroy` row is removed, and its name released, by a background sweep once no running worker can still hold the value — there is no deadline on that wait, so a continuously busy app can hold a name for as long as it runs. Recreate-while-deleting may later reuse the pending row with the new value (same name, new ciphertext). An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden` — the per-organization CryptoKey that seals the value is only minted when the tenancy is active. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/secrets (the `CreateSecret` operationId).
CreateSecretWithResponse(ctx context.Context, body CreateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretResponse, error)
// DeleteSecretWithResponse Delete a secret
//
// Soft-deletes a secret: marks the row `pending_destroy` and bumps revision. This API does not hard-delete the row. Returns `409` while any app still attaches it — cascade-detach is not performed here; detach each holder with `DELETE .../apps/{id}/secrets/{name}` first, which rolls the deployments it names in place. A background sweep removes the row and releases the name once no running worker can still hold the value, rather than assuming every roll a detach started actually landed — a deployment that was not live when detached has nothing to roll until it resumes, so the sweep is the actual backstop, not the detach. While the row remains `pending_destroy` the name stays reserved, so create may return `409` even though list no longer shows the secret. Retries on an already-pending name are safe when no attachments remain (`204`); they still return `409` while attached.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v1/secrets/{secretName} (the `DeleteSecret` operationId).
DeleteSecretWithResponse(ctx context.Context, secretName SecretName, reqEditors ...RequestEditorFn) (*DeleteSecretResponse, error)
// UpdateSecretWithBodyWithResponse Update a secret
//
// Re-encrypts the value under the same name (no rename). Rolls every live deployment that attaches this secret in place so a running worker picks up the new value. If a rollout is already in progress when this commits, this change is not guaranteed to land on it — it reaches the worker on a later redeploy instead. A deployment that is not live picks it up on its next deploy for another reason. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden` — the per-organization CryptoKey that seals the value is only minted when the tenancy is active. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /v1/secrets/{secretName} (the `UpdateSecret` operationId).
UpdateSecretWithBodyWithResponse(ctx context.Context, secretName SecretName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecretResponse, error)
// UpdateSecretWithResponse Update a secret
//
// Re-encrypts the value under the same name (no rename). Rolls every live deployment that attaches this secret in place so a running worker picks up the new value. If a rollout is already in progress when this commits, this change is not guaranteed to land on it — it reaches the worker on a later redeploy instead. A deployment that is not live picks it up on its next deploy for another reason. An organization whose serverless tenancy is revoked, or has no tenancy receipt at all, returns `403 Forbidden` — the per-organization CryptoKey that seals the value is only minted when the tenancy is active. An organization whose tenancy is still being provisioned returns `503 Service Unavailable` instead — that state is retryable, not a revocation, and clears once provisioning finishes.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /v1/secrets/{secretName} (the `UpdateSecret` operationId).
UpdateSecretWithResponse(ctx context.Context, secretName SecretName, body UpdateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecretResponse, error)
// CreateSourceUploadWithBodyWithResponse Create a source upload
//
// Creates an upload session for a source archive. The session belongs to the authenticated organization and names no app: an upload precedes any app, and the source it publishes may back several. The response contains a short-lived transfer instruction for one exact staging object. Repeating the request with the same idempotency key and declaration while the session is pending and unexpired returns the same upload resource with a refreshed transfer instruction. Replays with a different declaration, or after the session becomes ready, rejected, expired, or deleted, return `409`.
//
// 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 /v1/source-uploads (the `CreateSourceUpload` operationId).
CreateSourceUploadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSourceUploadResponse, error)
// CreateSourceUploadWithResponse Create a source upload
//
// Creates an upload session for a source archive. The session belongs to the authenticated organization and names no app: an upload precedes any app, and the source it publishes may back several. The response contains a short-lived transfer instruction for one exact staging object. Repeating the request with the same idempotency key and declaration while the session is pending and unexpired returns the same upload resource with a refreshed transfer instruction. Replays with a different declaration, or after the session becomes ready, rejected, expired, or deleted, return `409`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/source-uploads (the `CreateSourceUpload` operationId).
CreateSourceUploadWithResponse(ctx context.Context, body CreateSourceUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSourceUploadResponse, error)
// DeleteSourceUploadWithResponse Abort a source upload
//
// Aborts an upload that has not published its source and removes its staging object. The session remains as a deleted tombstone so its staging key cannot be reused. Repeating a successful abort is idempotent. A `ready` upload cannot be aborted: the source it published is a resource in its own right, and the request answers `409` with type `source-upload-completed`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v1/source-uploads/{uploadId} (the `DeleteSourceUpload` operationId).
DeleteSourceUploadWithResponse(ctx context.Context, uploadId SourceUploadId, reqEditors ...RequestEditorFn) (*DeleteSourceUploadResponse, error)
// GetSourceUploadWithResponse Get a source upload
//
// Returns the upload session belonging to the authenticated organization. Once the upload is `ready` the session carries the `sourceId` it published. An upload belonging to another organization returns `404`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/source-uploads/{uploadId} (the `GetSourceUpload` operationId).
GetSourceUploadWithResponse(ctx context.Context, uploadId SourceUploadId, reqEditors ...RequestEditorFn) (*GetSourceUploadResponse, error)
// CompleteSourceUploadWithResponse Complete a source upload
//
// Verifies the staging object's length, content type, and SHA-256 digest against the session declaration, applies the archive rules for the source type, and publishes the verified bytes as an immutable source artifact. The first success creates the source and returns the ready session carrying its `sourceId`; a retry returns the same session and the same `sourceId`. A rejected upload keeps its rejection so later retries return the same result.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/source-uploads/{uploadId}/complete (the `CompleteSourceUpload` operationId).
CompleteSourceUploadWithResponse(ctx context.Context, uploadId SourceUploadId, reqEditors ...RequestEditorFn) (*CompleteSourceUploadResponse, error)
// GetSourceWithResponse Get a source
//
// Returns the immutable source artifact a completed upload published: its type and the length and digest upload completion verified. A source is organization-scoped and may be named by any number of apps and versions in that organization; one belonging to another organization returns `404`. There is no list and no delete.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/sources/{sourceId} (the `GetSource` operationId).
GetSourceWithResponse(ctx context.Context, sourceId SourceId, reqEditors ...RequestEditorFn) (*GetSourceResponse, error)
// ListUsageEventsWithResponse List usage events
//
// Append-only billing telemetry; one row per worker state transition.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/usage (the `ListUsageEvents` operationId).
ListUsageEventsWithResponse(ctx context.Context, params *ListUsageEventsParams, reqEditors ...RequestEditorFn) (*ListUsageEventsResponse, error)
// GetUsageSummaryWithResponse Summarize usage over a time range
//
// GPU time and spend for the authenticated organization, aggregated over a half-open window and grouped by the dimensions asked for.
//
// Every figure is derived on read from the immutable usage ledger, the effective-dated price catalog and the organization's capacity commitments. Two consequences follow. The window is bounded, because the read folds every event of every worker in it. And a worker whose recorded life cannot be priced fails the request rather than being left out of the totals, because a total that silently omits usage is a wrong number a caller cannot see is wrong. These failures return `500`, with no partial totals.
//
// `paygSpend` is provisional pay-as-you-go accrual, not a settled charge. It excludes whole-second finalization rounding and ledger adjustments. `paygEquivalentValue` prices the same time at the catalog rate whatever covered it, so the difference between them is what a capacity commitment saved. While commitment coverage is not yet applied by settlement, an organization holding a commitment sees a split here that the credit ledger has not yet applied.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/usage/summary (the `GetUsageSummary` operationId).
GetUsageSummaryWithResponse(ctx context.Context, params *GetUsageSummaryParams, reqEditors ...RequestEditorFn) (*GetUsageSummaryResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CodeSourceUpsert ¶
type CodeSourceUpsert struct {
// BaseImage Base image for the builder, e.g. `python:3.11-slim`.
BaseImage string `json:"baseImage"`
Codebase CodebaseSource `json:"codebase"`
// Requirements Additional pip packages to install alongside the codebase.
Requirements *[]string `json:"requirements,omitempty"`
}
CodeSourceUpsert defines model for CodeSourceUpsert.
type CodebaseSource ¶
type CodebaseSource struct {
// ModelFile Path of the MLflow model entry point inside the archive, relative to its root (e.g. `model.py`). Version execution configuration rather than archive identity, so two apps may run one source with different entry points. The build proves the file is in the archive and answers `422` when it is not.
ModelFile string `json:"modelFile"`
// SourceId Id of a source published by a completed upload in this organization (`POST /v1/source-uploads`, then `complete`). The archive it names is the zip of the customer's code. A source is immutable and reusable: the same `sourceId` may back any number of apps and versions, each choosing its own `modelFile`.
SourceId SourceId `json:"sourceId"`
}
CodebaseSource defines model for CodebaseSource.
type CommitmentTerm ¶
type CommitmentTerm struct {
// EndsAt Exclusive end of the term. An amended term ends where its replacement starts, so the two never both apply.
EndsAt time.Time `json:"endsAt"`
// GpuCount Concurrent GPUs this term reserves.
GpuCount int32 `json:"gpuCount"`
Id openapi_types.UUID `json:"id"`
// StartsAt Inclusive start of the term.
StartsAt time.Time `json:"startsAt"`
}
CommitmentTerm One purchased term of reserved capacity. Terms in the same scope add together while they overlap.
type CompleteSourceUploadResponse ¶
type CompleteSourceUploadResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SourceUpload
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON502 the response for an HTTP 502 `application/problem+json` response
ApplicationproblemJSON502 *BadGateway
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseCompleteSourceUploadResponse ¶
func ParseCompleteSourceUploadResponse(rsp *http.Response) (*CompleteSourceUploadResponse, error)
ParseCompleteSourceUploadResponse parses an HTTP response from a CompleteSourceUploadWithResponse call
func (CompleteSourceUploadResponse) ContentType ¶
func (r CompleteSourceUploadResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CompleteSourceUploadResponse) GetApplicationproblemJSON400 ¶
func (r CompleteSourceUploadResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CompleteSourceUploadResponse) GetApplicationproblemJSON401 ¶
func (r CompleteSourceUploadResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CompleteSourceUploadResponse) GetApplicationproblemJSON403 ¶
func (r CompleteSourceUploadResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CompleteSourceUploadResponse) GetApplicationproblemJSON404 ¶
func (r CompleteSourceUploadResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (CompleteSourceUploadResponse) GetApplicationproblemJSON409 ¶
func (r CompleteSourceUploadResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (CompleteSourceUploadResponse) GetApplicationproblemJSON422 ¶
func (r CompleteSourceUploadResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (CompleteSourceUploadResponse) GetApplicationproblemJSON502 ¶
func (r CompleteSourceUploadResponse) GetApplicationproblemJSON502() *BadGateway
GetApplicationproblemJSON502 returns the response for an HTTP 502 `application/problem+json` response
func (CompleteSourceUploadResponse) GetApplicationproblemJSON503 ¶
func (r CompleteSourceUploadResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (CompleteSourceUploadResponse) GetBody ¶
func (r CompleteSourceUploadResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CompleteSourceUploadResponse) GetJSON200 ¶
func (r CompleteSourceUploadResponse) GetJSON200() *SourceUpload
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CompleteSourceUploadResponse) Status ¶
func (r CompleteSourceUploadResponse) Status() string
Status returns HTTPResponse.Status
func (CompleteSourceUploadResponse) StatusCode ¶
func (r CompleteSourceUploadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ComputeType ¶
type ComputeType string
ComputeType Worker compute class. GPU is the only supported value. CPU workloads are not supported.
const (
Gpu ComputeType = "gpu"
)
Defines values for ComputeType.
func (ComputeType) Valid ¶
func (e ComputeType) Valid() bool
Valid indicates whether the value is a known member of the ComputeType enum.
type Conflict ¶
type Conflict = ProblemDetails
Conflict RFC 9457 problem details. Every error response from this API uses this schema with media type `application/problem+json`. `type` is a URI that identifies the problem class and dereferences to its documentation; clients should switch on `type` (not `status` or `detail`, which are not stable identifiers). Additional members beyond those below may appear.
type ContainerSource ¶
type ContainerSource struct {
// SourceId Id of a source published by a completed upload in this organization (`POST /v1/source-uploads`, then `complete`). The archive it names carries a wrapper `Dockerfile` and a `container.yaml` config document at its root, plus any build-context files the Dockerfile copies in. Runware builds the image from it — resolving the Dockerfile's public base images to immutable digests — and hosts the result, so no image reference or pull credential is supplied: a private base image is not supported until a build-time credential mechanism exists. An invalid `container.yaml` rejects the create — `400` where the document could not be parsed, `422` where it parsed and broke a rule — with `errors[]` entries carrying `configPointer` into the document; the endpoint set it declares becomes visible once the first build is ready and deployed. A source is immutable and reusable: the same `sourceId` may back any number of apps and versions in the organization.
SourceId SourceId `json:"sourceId"`
}
ContainerSource defines model for ContainerSource.
type CreateAppJSONRequestBody ¶
type CreateAppJSONRequestBody = AppCreate
CreateAppJSONRequestBody defines body for CreateApp for application/json ContentType.
type CreateAppResponse ¶
type CreateAppResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *App
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON402 the response for an HTTP 402 `application/problem+json` response
ApplicationproblemJSON402 *PaymentRequired
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseCreateAppResponse ¶
func ParseCreateAppResponse(rsp *http.Response) (*CreateAppResponse, error)
ParseCreateAppResponse parses an HTTP response from a CreateAppWithResponse call
func (CreateAppResponse) ContentType ¶
func (r CreateAppResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateAppResponse) GetApplicationproblemJSON400 ¶
func (r CreateAppResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CreateAppResponse) GetApplicationproblemJSON401 ¶
func (r CreateAppResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CreateAppResponse) GetApplicationproblemJSON402 ¶
func (r CreateAppResponse) GetApplicationproblemJSON402() *PaymentRequired
GetApplicationproblemJSON402 returns the response for an HTTP 402 `application/problem+json` response
func (CreateAppResponse) GetApplicationproblemJSON403 ¶
func (r CreateAppResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CreateAppResponse) GetApplicationproblemJSON404 ¶
func (r CreateAppResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (CreateAppResponse) GetApplicationproblemJSON409 ¶
func (r CreateAppResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (CreateAppResponse) GetApplicationproblemJSON422 ¶
func (r CreateAppResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (CreateAppResponse) GetApplicationproblemJSON503 ¶
func (r CreateAppResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (CreateAppResponse) GetBody ¶
func (r CreateAppResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateAppResponse) GetJSON201 ¶
func (r CreateAppResponse) GetJSON201() *App
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateAppResponse) Status ¶
func (r CreateAppResponse) Status() string
Status returns HTTPResponse.Status
func (CreateAppResponse) StatusCode ¶
func (r CreateAppResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSecretJSONRequestBody ¶
type CreateSecretJSONRequestBody = SecretCreate
CreateSecretJSONRequestBody defines body for CreateSecret for application/json ContentType.
type CreateSecretResponse ¶
type CreateSecretResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *Secret
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseCreateSecretResponse ¶
func ParseCreateSecretResponse(rsp *http.Response) (*CreateSecretResponse, error)
ParseCreateSecretResponse parses an HTTP response from a CreateSecretWithResponse call
func (CreateSecretResponse) ContentType ¶
func (r CreateSecretResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateSecretResponse) GetApplicationproblemJSON400 ¶
func (r CreateSecretResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CreateSecretResponse) GetApplicationproblemJSON401 ¶
func (r CreateSecretResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CreateSecretResponse) GetApplicationproblemJSON403 ¶
func (r CreateSecretResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CreateSecretResponse) GetApplicationproblemJSON409 ¶
func (r CreateSecretResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (CreateSecretResponse) GetApplicationproblemJSON422 ¶
func (r CreateSecretResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (CreateSecretResponse) GetApplicationproblemJSON503 ¶
func (r CreateSecretResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (CreateSecretResponse) GetBody ¶
func (r CreateSecretResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateSecretResponse) GetJSON201 ¶
func (r CreateSecretResponse) GetJSON201() *Secret
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateSecretResponse) Status ¶
func (r CreateSecretResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSecretResponse) StatusCode ¶
func (r CreateSecretResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSourceUploadJSONRequestBody ¶
type CreateSourceUploadJSONRequestBody = SourceUploadCreate
CreateSourceUploadJSONRequestBody defines body for CreateSourceUpload for application/json ContentType.
type CreateSourceUploadResponse ¶
type CreateSourceUploadResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *SourceUploadCreation
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON502 the response for an HTTP 502 `application/problem+json` response
ApplicationproblemJSON502 *BadGateway
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseCreateSourceUploadResponse ¶
func ParseCreateSourceUploadResponse(rsp *http.Response) (*CreateSourceUploadResponse, error)
ParseCreateSourceUploadResponse parses an HTTP response from a CreateSourceUploadWithResponse call
func (CreateSourceUploadResponse) ContentType ¶
func (r CreateSourceUploadResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateSourceUploadResponse) GetApplicationproblemJSON400 ¶
func (r CreateSourceUploadResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CreateSourceUploadResponse) GetApplicationproblemJSON401 ¶
func (r CreateSourceUploadResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CreateSourceUploadResponse) GetApplicationproblemJSON403 ¶
func (r CreateSourceUploadResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CreateSourceUploadResponse) GetApplicationproblemJSON409 ¶
func (r CreateSourceUploadResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (CreateSourceUploadResponse) GetApplicationproblemJSON422 ¶
func (r CreateSourceUploadResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (CreateSourceUploadResponse) GetApplicationproblemJSON502 ¶
func (r CreateSourceUploadResponse) GetApplicationproblemJSON502() *BadGateway
GetApplicationproblemJSON502 returns the response for an HTTP 502 `application/problem+json` response
func (CreateSourceUploadResponse) GetApplicationproblemJSON503 ¶
func (r CreateSourceUploadResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (CreateSourceUploadResponse) GetBody ¶
func (r CreateSourceUploadResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateSourceUploadResponse) GetJSON201 ¶
func (r CreateSourceUploadResponse) GetJSON201() *SourceUploadCreation
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateSourceUploadResponse) Status ¶
func (r CreateSourceUploadResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSourceUploadResponse) StatusCode ¶
func (r CreateSourceUploadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Currency ¶
type Currency string
Currency ISO 4217 alphabetic code. The platform bills in USD only.
const (
USD Currency = "USD"
)
Defines values for Currency.
type DeleteAppEnvironmentVariableResponse ¶
type DeleteAppEnvironmentVariableResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseDeleteAppEnvironmentVariableResponse ¶
func ParseDeleteAppEnvironmentVariableResponse(rsp *http.Response) (*DeleteAppEnvironmentVariableResponse, error)
ParseDeleteAppEnvironmentVariableResponse parses an HTTP response from a DeleteAppEnvironmentVariableWithResponse call
func (DeleteAppEnvironmentVariableResponse) ContentType ¶
func (r DeleteAppEnvironmentVariableResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteAppEnvironmentVariableResponse) GetApplicationproblemJSON401 ¶
func (r DeleteAppEnvironmentVariableResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteAppEnvironmentVariableResponse) GetApplicationproblemJSON403 ¶
func (r DeleteAppEnvironmentVariableResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteAppEnvironmentVariableResponse) GetApplicationproblemJSON404 ¶
func (r DeleteAppEnvironmentVariableResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DeleteAppEnvironmentVariableResponse) GetApplicationproblemJSON409 ¶
func (r DeleteAppEnvironmentVariableResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (DeleteAppEnvironmentVariableResponse) GetApplicationproblemJSON503 ¶
func (r DeleteAppEnvironmentVariableResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (DeleteAppEnvironmentVariableResponse) GetBody ¶
func (r DeleteAppEnvironmentVariableResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteAppEnvironmentVariableResponse) Status ¶
func (r DeleteAppEnvironmentVariableResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteAppEnvironmentVariableResponse) StatusCode ¶
func (r DeleteAppEnvironmentVariableResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteAppResponse ¶
type DeleteAppResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *App
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseDeleteAppResponse ¶
func ParseDeleteAppResponse(rsp *http.Response) (*DeleteAppResponse, error)
ParseDeleteAppResponse parses an HTTP response from a DeleteAppWithResponse call
func (DeleteAppResponse) ContentType ¶
func (r DeleteAppResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteAppResponse) GetApplicationproblemJSON401 ¶
func (r DeleteAppResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteAppResponse) GetApplicationproblemJSON403 ¶
func (r DeleteAppResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteAppResponse) GetApplicationproblemJSON404 ¶
func (r DeleteAppResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DeleteAppResponse) GetApplicationproblemJSON503 ¶
func (r DeleteAppResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (DeleteAppResponse) GetBody ¶
func (r DeleteAppResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteAppResponse) GetJSON202 ¶
func (r DeleteAppResponse) GetJSON202() *App
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (DeleteAppResponse) Status ¶
func (r DeleteAppResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteAppResponse) StatusCode ¶
func (r DeleteAppResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteBuildResponse ¶
type DeleteBuildResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON502 the response for an HTTP 502 `application/problem+json` response
ApplicationproblemJSON502 *BadGateway
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseDeleteBuildResponse ¶
func ParseDeleteBuildResponse(rsp *http.Response) (*DeleteBuildResponse, error)
ParseDeleteBuildResponse parses an HTTP response from a DeleteBuildWithResponse call
func (DeleteBuildResponse) ContentType ¶
func (r DeleteBuildResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteBuildResponse) GetApplicationproblemJSON400 ¶
func (r DeleteBuildResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (DeleteBuildResponse) GetApplicationproblemJSON401 ¶
func (r DeleteBuildResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteBuildResponse) GetApplicationproblemJSON403 ¶
func (r DeleteBuildResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteBuildResponse) GetApplicationproblemJSON404 ¶
func (r DeleteBuildResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DeleteBuildResponse) GetApplicationproblemJSON409 ¶
func (r DeleteBuildResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (DeleteBuildResponse) GetApplicationproblemJSON422 ¶
func (r DeleteBuildResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (DeleteBuildResponse) GetApplicationproblemJSON502 ¶
func (r DeleteBuildResponse) GetApplicationproblemJSON502() *BadGateway
GetApplicationproblemJSON502 returns the response for an HTTP 502 `application/problem+json` response
func (DeleteBuildResponse) GetApplicationproblemJSON503 ¶
func (r DeleteBuildResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (DeleteBuildResponse) GetBody ¶
func (r DeleteBuildResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteBuildResponse) Status ¶
func (r DeleteBuildResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteBuildResponse) StatusCode ¶
func (r DeleteBuildResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSecretResponse ¶
type DeleteSecretResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseDeleteSecretResponse ¶
func ParseDeleteSecretResponse(rsp *http.Response) (*DeleteSecretResponse, error)
ParseDeleteSecretResponse parses an HTTP response from a DeleteSecretWithResponse call
func (DeleteSecretResponse) ContentType ¶
func (r DeleteSecretResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteSecretResponse) GetApplicationproblemJSON401 ¶
func (r DeleteSecretResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteSecretResponse) GetApplicationproblemJSON403 ¶
func (r DeleteSecretResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteSecretResponse) GetApplicationproblemJSON404 ¶
func (r DeleteSecretResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DeleteSecretResponse) GetApplicationproblemJSON409 ¶
func (r DeleteSecretResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (DeleteSecretResponse) GetApplicationproblemJSON422 ¶
func (r DeleteSecretResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (DeleteSecretResponse) GetApplicationproblemJSON503 ¶
func (r DeleteSecretResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (DeleteSecretResponse) GetBody ¶
func (r DeleteSecretResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteSecretResponse) Status ¶
func (r DeleteSecretResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSecretResponse) StatusCode ¶
func (r DeleteSecretResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSourceUploadResponse ¶
type DeleteSourceUploadResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseDeleteSourceUploadResponse ¶
func ParseDeleteSourceUploadResponse(rsp *http.Response) (*DeleteSourceUploadResponse, error)
ParseDeleteSourceUploadResponse parses an HTTP response from a DeleteSourceUploadWithResponse call
func (DeleteSourceUploadResponse) ContentType ¶
func (r DeleteSourceUploadResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteSourceUploadResponse) GetApplicationproblemJSON400 ¶
func (r DeleteSourceUploadResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (DeleteSourceUploadResponse) GetApplicationproblemJSON401 ¶
func (r DeleteSourceUploadResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteSourceUploadResponse) GetApplicationproblemJSON403 ¶
func (r DeleteSourceUploadResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteSourceUploadResponse) GetApplicationproblemJSON404 ¶
func (r DeleteSourceUploadResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DeleteSourceUploadResponse) GetApplicationproblemJSON409 ¶
func (r DeleteSourceUploadResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (DeleteSourceUploadResponse) GetApplicationproblemJSON422 ¶
func (r DeleteSourceUploadResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (DeleteSourceUploadResponse) GetApplicationproblemJSON503 ¶
func (r DeleteSourceUploadResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (DeleteSourceUploadResponse) GetBody ¶
func (r DeleteSourceUploadResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteSourceUploadResponse) Status ¶
func (r DeleteSourceUploadResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSourceUploadResponse) StatusCode ¶
func (r DeleteSourceUploadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteVersionResponse ¶
type DeleteVersionResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseDeleteVersionResponse ¶
func ParseDeleteVersionResponse(rsp *http.Response) (*DeleteVersionResponse, error)
ParseDeleteVersionResponse parses an HTTP response from a DeleteVersionWithResponse call
func (DeleteVersionResponse) ContentType ¶
func (r DeleteVersionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteVersionResponse) GetApplicationproblemJSON400 ¶
func (r DeleteVersionResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (DeleteVersionResponse) GetApplicationproblemJSON401 ¶
func (r DeleteVersionResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteVersionResponse) GetApplicationproblemJSON403 ¶
func (r DeleteVersionResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteVersionResponse) GetApplicationproblemJSON404 ¶
func (r DeleteVersionResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DeleteVersionResponse) GetApplicationproblemJSON409 ¶
func (r DeleteVersionResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (DeleteVersionResponse) GetApplicationproblemJSON503 ¶
func (r DeleteVersionResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (DeleteVersionResponse) GetBody ¶
func (r DeleteVersionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteVersionResponse) Status ¶
func (r DeleteVersionResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteVersionResponse) StatusCode ¶
func (r DeleteVersionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeployRequest ¶
type DeployRequest struct {
// VersionNumber Version number to deploy. Must reference a `ready` version on this app. Any in-progress or queued builds are canceled. Use an older version number to roll back.
VersionNumber int32 `json:"versionNumber"`
}
DeployRequest defines model for DeployRequest.
type DeployVersionJSONRequestBody ¶
type DeployVersionJSONRequestBody = DeployRequest
DeployVersionJSONRequestBody defines body for DeployVersion for application/json ContentType.
type DeployVersionResponse ¶
type DeployVersionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *App
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON402 the response for an HTTP 402 `application/problem+json` response
ApplicationproblemJSON402 *PaymentRequired
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseDeployVersionResponse ¶
func ParseDeployVersionResponse(rsp *http.Response) (*DeployVersionResponse, error)
ParseDeployVersionResponse parses an HTTP response from a DeployVersionWithResponse call
func (DeployVersionResponse) ContentType ¶
func (r DeployVersionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeployVersionResponse) GetApplicationproblemJSON400 ¶
func (r DeployVersionResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (DeployVersionResponse) GetApplicationproblemJSON401 ¶
func (r DeployVersionResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeployVersionResponse) GetApplicationproblemJSON402 ¶
func (r DeployVersionResponse) GetApplicationproblemJSON402() *PaymentRequired
GetApplicationproblemJSON402 returns the response for an HTTP 402 `application/problem+json` response
func (DeployVersionResponse) GetApplicationproblemJSON403 ¶
func (r DeployVersionResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeployVersionResponse) GetApplicationproblemJSON404 ¶
func (r DeployVersionResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DeployVersionResponse) GetApplicationproblemJSON409 ¶
func (r DeployVersionResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (DeployVersionResponse) GetApplicationproblemJSON422 ¶
func (r DeployVersionResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (DeployVersionResponse) GetApplicationproblemJSON503 ¶
func (r DeployVersionResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (DeployVersionResponse) GetBody ¶
func (r DeployVersionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeployVersionResponse) GetJSON202 ¶
func (r DeployVersionResponse) GetJSON202() *App
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (DeployVersionResponse) Status ¶
func (r DeployVersionResponse) Status() string
Status returns HTTPResponse.Status
func (DeployVersionResponse) StatusCode ¶
func (r DeployVersionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DetachAppSecretResponse ¶
type DetachAppSecretResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseDetachAppSecretResponse ¶
func ParseDetachAppSecretResponse(rsp *http.Response) (*DetachAppSecretResponse, error)
ParseDetachAppSecretResponse parses an HTTP response from a DetachAppSecretWithResponse call
func (DetachAppSecretResponse) ContentType ¶
func (r DetachAppSecretResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DetachAppSecretResponse) GetApplicationproblemJSON401 ¶
func (r DetachAppSecretResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DetachAppSecretResponse) GetApplicationproblemJSON403 ¶
func (r DetachAppSecretResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DetachAppSecretResponse) GetApplicationproblemJSON404 ¶
func (r DetachAppSecretResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DetachAppSecretResponse) GetApplicationproblemJSON422 ¶
func (r DetachAppSecretResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (DetachAppSecretResponse) GetApplicationproblemJSON503 ¶
func (r DetachAppSecretResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (DetachAppSecretResponse) GetBody ¶
func (r DetachAppSecretResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DetachAppSecretResponse) Status ¶
func (r DetachAppSecretResponse) Status() string
Status returns HTTPResponse.Status
func (DetachAppSecretResponse) StatusCode ¶
func (r DetachAppSecretResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Endpoint ¶
type Endpoint struct {
// AppId Immutable app identifier. Unique among the authenticated organization's live apps: it cannot be changed after creation, and it becomes available again once the app it named reaches `deleted`.
AppId AppId `json:"appId"`
CreatedAt *time.Time `json:"createdAt,omitempty"`
Id openapi_types.UUID `json:"id"`
// Path The endpoint's identity within the app: a bare lowercase URL segment, e.g. `generate`, with no leading slash. Unique within the app, so it identifies the endpoint on its own.
Path string `json:"path"`
// Runtime Latest-window traffic for one endpoint. Identity stays on the parent `Endpoint`; these fields come from Insights and are omitted independently when their backing series has no samples. The whole object is omitted when Insights is unset, times out, or the endpoint had no request samples. Zero is a reading, not an absence.
Runtime *EndpointRuntime `json:"runtime,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}
Endpoint defines model for Endpoint.
type EndpointPath ¶
type EndpointPath = string
EndpointPath Path of the endpoint to route the task to: a bare lowercase segment such as `generate`, with no leading slash.
type EndpointRuntime ¶
type EndpointRuntime struct {
// P95RequestDuration Latest-window p95 request duration in seconds (all requests; the duration histogram has no status class).
P95RequestDuration *float64 `json:"p95RequestDuration,omitempty"`
// P99RequestDuration Latest-window p99 request duration in seconds (all requests; the duration histogram has no status class).
P99RequestDuration *float64 `json:"p99RequestDuration,omitempty"`
// RequestsPerMinute 5-minute request rate (`rate(rw_requests_total[5m]) * 60`), in req/min. Not derived from the 24h sparkline counts.
RequestsPerMinute *float64 `json:"requestsPerMinute,omitempty"`
// Status Badge derived from the latest-window error ratio (4xx + 5xx over requests). Not stored: there is no endpoint status column. Omitted when metrics cannot be read or the endpoint had no requests in the window. `healthy` is a zero ratio, `degraded` is below 0.05, `unhealthy` is 0.05 and above.
Status *EndpointTrafficStatus `json:"status,omitempty"`
}
EndpointRuntime Latest-window traffic for one endpoint. Identity stays on the parent `Endpoint`; these fields come from Insights and are omitted independently when their backing series has no samples. The whole object is omitted when Insights is unset, times out, or the endpoint had no request samples. Zero is a reading, not an absence.
type EndpointTrafficStatus ¶
type EndpointTrafficStatus string
EndpointTrafficStatus Badge derived from the latest-window error ratio (4xx + 5xx over requests). Not stored: there is no endpoint status column. Omitted when metrics cannot be read or the endpoint had no requests in the window. `healthy` is a zero ratio, `degraded` is below 0.05, `unhealthy` is 0.05 and above.
const ( EndpointTrafficStatusDegraded EndpointTrafficStatus = "degraded" EndpointTrafficStatusHealthy EndpointTrafficStatus = "healthy" EndpointTrafficStatusUnhealthy EndpointTrafficStatus = "unhealthy" )
Defines values for EndpointTrafficStatus.
func (EndpointTrafficStatus) Valid ¶
func (e EndpointTrafficStatus) Valid() bool
Valid indicates whether the value is a known member of the EndpointTrafficStatus enum.
type EnvironmentVariable ¶
type EnvironmentVariable struct {
// AppId Immutable app identifier. Unique among the authenticated organization's live apps: it cannot be changed after creation, and it becomes available again once the app it named reaches `deleted`.
AppId *AppId `json:"appId,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty"`
Id *openapi_types.UUID `json:"id,omitempty"`
// Key POSIX-style environment variable name. Letters, digits, and underscore; must start with a letter or underscore. Matched by the `deployment_configs` column CHECK so a valid-by-contract request cannot 500 at INSERT.
Key EnvironmentVariableName `json:"key"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
Value string `json:"value"`
}
EnvironmentVariable defines model for EnvironmentVariable.
type EnvironmentVariableName ¶
type EnvironmentVariableName = string
EnvironmentVariableName POSIX-style environment variable name. Letters, digits, and underscore; must start with a letter or underscore. Matched by the `deployment_configs` column CHECK so a valid-by-contract request cannot 500 at INSERT.
type EnvironmentVariableUpdate ¶
type EnvironmentVariableUpdate struct {
// Value Value delivered to the workload as this variable's value. Bounded because every variable ends up in the pod template, which as a whole has to fit what the Kubernetes API server accepts — the same `maxLength` create applies, so one path cannot be used to exceed the other.
Value string `json:"value"`
}
EnvironmentVariableUpdate defines model for EnvironmentVariableUpdate.
type FavoriteAppResponse ¶
type FavoriteAppResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *App
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseFavoriteAppResponse ¶
func ParseFavoriteAppResponse(rsp *http.Response) (*FavoriteAppResponse, error)
ParseFavoriteAppResponse parses an HTTP response from a FavoriteAppWithResponse call
func (FavoriteAppResponse) ContentType ¶
func (r FavoriteAppResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (FavoriteAppResponse) GetApplicationproblemJSON401 ¶
func (r FavoriteAppResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (FavoriteAppResponse) GetApplicationproblemJSON403 ¶
func (r FavoriteAppResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (FavoriteAppResponse) GetApplicationproblemJSON404 ¶
func (r FavoriteAppResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (FavoriteAppResponse) GetApplicationproblemJSON503 ¶
func (r FavoriteAppResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (FavoriteAppResponse) GetBody ¶
func (r FavoriteAppResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (FavoriteAppResponse) GetJSON200 ¶
func (r FavoriteAppResponse) GetJSON200() *App
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (FavoriteAppResponse) Status ¶
func (r FavoriteAppResponse) Status() string
Status returns HTTPResponse.Status
func (FavoriteAppResponse) StatusCode ¶
func (r FavoriteAppResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Forbidden ¶
type Forbidden = ProblemDetails
Forbidden RFC 9457 problem details. Every error response from this API uses this schema with media type `application/problem+json`. `type` is a URI that identifies the problem class and dereferences to its documentation; clients should switch on `type` (not `status` or `detail`, which are not stable identifiers). Additional members beyond those below may appear.
type GatewayTimeout ¶
type GatewayTimeout = ProblemDetails
GatewayTimeout RFC 9457 problem details. Every error response from this API uses this schema with media type `application/problem+json`. `type` is a URI that identifies the problem class and dereferences to its documentation; clients should switch on `type` (not `status` or `detail`, which are not stable identifiers). Additional members beyond those below may appear.
type GetAppResponse ¶
type GetAppResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *App
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseGetAppResponse ¶
func ParseGetAppResponse(rsp *http.Response) (*GetAppResponse, error)
ParseGetAppResponse parses an HTTP response from a GetAppWithResponse call
func (GetAppResponse) ContentType ¶
func (r GetAppResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAppResponse) GetApplicationproblemJSON401 ¶
func (r GetAppResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetAppResponse) GetApplicationproblemJSON403 ¶
func (r GetAppResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetAppResponse) GetApplicationproblemJSON404 ¶
func (r GetAppResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetAppResponse) GetApplicationproblemJSON503 ¶
func (r GetAppResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (GetAppResponse) GetBody ¶
func (r GetAppResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAppResponse) GetJSON200 ¶
func (r GetAppResponse) GetJSON200() *App
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetAppResponse) Status ¶
func (r GetAppResponse) Status() string
Status returns HTTPResponse.Status
func (GetAppResponse) StatusCode ¶
func (r GetAppResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAppSummaryResponse ¶
type GetAppSummaryResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AppSummary
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseGetAppSummaryResponse ¶
func ParseGetAppSummaryResponse(rsp *http.Response) (*GetAppSummaryResponse, error)
ParseGetAppSummaryResponse parses an HTTP response from a GetAppSummaryWithResponse call
func (GetAppSummaryResponse) ContentType ¶
func (r GetAppSummaryResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAppSummaryResponse) GetApplicationproblemJSON401 ¶
func (r GetAppSummaryResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetAppSummaryResponse) GetApplicationproblemJSON403 ¶
func (r GetAppSummaryResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetAppSummaryResponse) GetApplicationproblemJSON503 ¶
func (r GetAppSummaryResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (GetAppSummaryResponse) GetBody ¶
func (r GetAppSummaryResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAppSummaryResponse) GetJSON200 ¶
func (r GetAppSummaryResponse) GetJSON200() *AppSummary
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetAppSummaryResponse) Status ¶
func (r GetAppSummaryResponse) Status() string
Status returns HTTPResponse.Status
func (GetAppSummaryResponse) StatusCode ¶
func (r GetAppSummaryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBuildResponse ¶
type GetBuildResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Build
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseGetBuildResponse ¶
func ParseGetBuildResponse(rsp *http.Response) (*GetBuildResponse, error)
ParseGetBuildResponse parses an HTTP response from a GetBuildWithResponse call
func (GetBuildResponse) ContentType ¶
func (r GetBuildResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetBuildResponse) GetApplicationproblemJSON400 ¶
func (r GetBuildResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (GetBuildResponse) GetApplicationproblemJSON401 ¶
func (r GetBuildResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetBuildResponse) GetApplicationproblemJSON403 ¶
func (r GetBuildResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetBuildResponse) GetApplicationproblemJSON404 ¶
func (r GetBuildResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetBuildResponse) GetApplicationproblemJSON503 ¶
func (r GetBuildResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (GetBuildResponse) GetBody ¶
func (r GetBuildResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetBuildResponse) GetJSON200 ¶
func (r GetBuildResponse) GetJSON200() *Build
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetBuildResponse) Status ¶
func (r GetBuildResponse) Status() string
Status returns HTTPResponse.Status
func (GetBuildResponse) StatusCode ¶
func (r GetBuildResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEndpointResponse ¶
type GetEndpointResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Endpoint
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseGetEndpointResponse ¶
func ParseGetEndpointResponse(rsp *http.Response) (*GetEndpointResponse, error)
ParseGetEndpointResponse parses an HTTP response from a GetEndpointWithResponse call
func (GetEndpointResponse) ContentType ¶
func (r GetEndpointResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetEndpointResponse) GetApplicationproblemJSON400 ¶
func (r GetEndpointResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (GetEndpointResponse) GetApplicationproblemJSON401 ¶
func (r GetEndpointResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetEndpointResponse) GetApplicationproblemJSON403 ¶
func (r GetEndpointResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetEndpointResponse) GetApplicationproblemJSON404 ¶
func (r GetEndpointResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetEndpointResponse) GetApplicationproblemJSON422 ¶
func (r GetEndpointResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (GetEndpointResponse) GetApplicationproblemJSON503 ¶
func (r GetEndpointResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (GetEndpointResponse) GetBody ¶
func (r GetEndpointResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetEndpointResponse) GetJSON200 ¶
func (r GetEndpointResponse) GetJSON200() *Endpoint
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetEndpointResponse) Status ¶
func (r GetEndpointResponse) Status() string
Status returns HTTPResponse.Status
func (GetEndpointResponse) StatusCode ¶
func (r GetEndpointResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetGpuTypeResponse ¶
type GetGpuTypeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GpuType
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseGetGpuTypeResponse ¶
func ParseGetGpuTypeResponse(rsp *http.Response) (*GetGpuTypeResponse, error)
ParseGetGpuTypeResponse parses an HTTP response from a GetGpuTypeWithResponse call
func (GetGpuTypeResponse) ContentType ¶
func (r GetGpuTypeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetGpuTypeResponse) GetApplicationproblemJSON401 ¶
func (r GetGpuTypeResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetGpuTypeResponse) GetApplicationproblemJSON403 ¶
func (r GetGpuTypeResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetGpuTypeResponse) GetApplicationproblemJSON404 ¶
func (r GetGpuTypeResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetGpuTypeResponse) GetApplicationproblemJSON422 ¶
func (r GetGpuTypeResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (GetGpuTypeResponse) GetApplicationproblemJSON503 ¶
func (r GetGpuTypeResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (GetGpuTypeResponse) GetBody ¶
func (r GetGpuTypeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetGpuTypeResponse) GetJSON200 ¶
func (r GetGpuTypeResponse) GetJSON200() *GpuType
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetGpuTypeResponse) Status ¶
func (r GetGpuTypeResponse) Status() string
Status returns HTTPResponse.Status
func (GetGpuTypeResponse) StatusCode ¶
func (r GetGpuTypeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLogEntriesParams ¶
type GetLogEntriesParams struct {
// Window The time window. A closed set rather than a free-form range, because every distinct range defeats the server-side cache alignment that makes a sliding window cheap. Only the windows a query lists in the catalog can be asked of it.
Window GetLogEntriesParamsWindow `form:"window" json:"window"`
// Limit Maximum number of items to return.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque pagination cursor returned by a previous call, as `nextCursor` or, on the operations that offer one, `prevCursor`.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Sort Ordering of a log page and the direction `nextCursor` moves in. Only `getLogEntries` accepts it.
Sort *LogSort `form:"sort,omitempty" json:"sort,omitempty"`
// Deployment Narrow to one app.
Deployment *SelectorDeployment `form:"deployment,omitempty" json:"deployment,omitempty"`
// Endpoint Narrow to one endpoint within an app. The value is the allocated `endpoints.id` (UUID), never the customer-authored path. A query that does not declare this selector rejects it rather than ignoring it.
Endpoint *SelectorEndpoint `form:"endpoint,omitempty" json:"endpoint,omitempty"`
}
GetLogEntriesParams defines parameters for GetLogEntries.
type GetLogEntriesParamsWindow ¶
type GetLogEntriesParamsWindow string
GetLogEntriesParamsWindow defines parameters for GetLogEntries.
const ( GetLogEntriesParamsWindowN1h GetLogEntriesParamsWindow = "1h" GetLogEntriesParamsWindowN24h GetLogEntriesParamsWindow = "24h" GetLogEntriesParamsWindowN30d GetLogEntriesParamsWindow = "30d" GetLogEntriesParamsWindowN6h GetLogEntriesParamsWindow = "6h" GetLogEntriesParamsWindowN7d GetLogEntriesParamsWindow = "7d" )
Defines values for GetLogEntriesParamsWindow.
func (GetLogEntriesParamsWindow) Valid ¶
func (e GetLogEntriesParamsWindow) Valid() bool
Valid indicates whether the value is a known member of the GetLogEntriesParamsWindow enum.
type GetLogEntriesResponse ¶
type GetLogEntriesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *LogEntryPage
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// ApplicationproblemJSON502 the response for an HTTP 502 `application/problem+json` response
ApplicationproblemJSON502 *BadGateway
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
// ApplicationproblemJSON504 the response for an HTTP 504 `application/problem+json` response
ApplicationproblemJSON504 *GatewayTimeout
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetLogEntriesResponse429Headers
}
func ParseGetLogEntriesResponse ¶
func ParseGetLogEntriesResponse(rsp *http.Response) (*GetLogEntriesResponse, error)
ParseGetLogEntriesResponse parses an HTTP response from a GetLogEntriesWithResponse call
func (GetLogEntriesResponse) ContentType ¶
func (r GetLogEntriesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetLogEntriesResponse) GetApplicationproblemJSON400 ¶
func (r GetLogEntriesResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (GetLogEntriesResponse) GetApplicationproblemJSON401 ¶
func (r GetLogEntriesResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetLogEntriesResponse) GetApplicationproblemJSON403 ¶
func (r GetLogEntriesResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetLogEntriesResponse) GetApplicationproblemJSON404 ¶
func (r GetLogEntriesResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetLogEntriesResponse) GetApplicationproblemJSON422 ¶
func (r GetLogEntriesResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (GetLogEntriesResponse) GetApplicationproblemJSON429 ¶
func (r GetLogEntriesResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetLogEntriesResponse) GetApplicationproblemJSON502 ¶
func (r GetLogEntriesResponse) GetApplicationproblemJSON502() *BadGateway
GetApplicationproblemJSON502 returns the response for an HTTP 502 `application/problem+json` response
func (GetLogEntriesResponse) GetApplicationproblemJSON503 ¶
func (r GetLogEntriesResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (GetLogEntriesResponse) GetApplicationproblemJSON504 ¶
func (r GetLogEntriesResponse) GetApplicationproblemJSON504() *GatewayTimeout
GetApplicationproblemJSON504 returns the response for an HTTP 504 `application/problem+json` response
func (GetLogEntriesResponse) GetBody ¶
func (r GetLogEntriesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetLogEntriesResponse) GetJSON200 ¶
func (r GetLogEntriesResponse) GetJSON200() *LogEntryPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetLogEntriesResponse) Status ¶
func (r GetLogEntriesResponse) Status() string
Status returns HTTPResponse.Status
func (GetLogEntriesResponse) StatusCode ¶
func (r GetLogEntriesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLogEntriesResponse429Headers ¶
type GetLogEntriesResponse429Headers struct {
RetryAfter int32
}
GetLogEntriesResponse429Headers the declared response headers of an HTTP 429 response for GetLogEntries
type GetMetricSeriesParams ¶
type GetMetricSeriesParams struct {
// Window The time window. A closed set rather than a free-form range, because every distinct range defeats the server-side cache alignment that makes a sliding window cheap. Only the windows a query lists in the catalog can be asked of it.
Window GetMetricSeriesParamsWindow `form:"window" json:"window"`
// PinnedTo Fixes the window's inclusive end, the last timestamp in `t`, so that several calls making up one visual share an axis instead of racing the clock between them. Must be aligned to the window's step, no newer than the newest readable edge, and inside retention.
PinnedTo *PinnedTo `form:"pinnedTo,omitempty" json:"pinnedTo,omitempty"`
// Deployment Narrow to one app.
Deployment *SelectorDeployment `form:"deployment,omitempty" json:"deployment,omitempty"`
// Endpoint Narrow to one endpoint within an app. The value is the allocated `endpoints.id` (UUID), never the customer-authored path. A query that does not declare this selector rejects it rather than ignoring it.
Endpoint *SelectorEndpoint `form:"endpoint,omitempty" json:"endpoint,omitempty"`
// StatusClass Narrow to one response class.
StatusClass *GetMetricSeriesParamsStatusClass `form:"statusClass,omitempty" json:"statusClass,omitempty"`
// Region Narrow to one region. No series carries a region label yet, so no query currently accepts this and supplying it is rejected rather than ignored.
Region *SelectorRegion `form:"region,omitempty" json:"region,omitempty"`
// AppId Restrict the list-scoped queries (`apps_request_volume`, `apps_error_volume`, `apps_request_duration`) to these app ids: one series per id, in request order, with all-null series for apps that had no samples. Values are quarter-hourly over `window=24h`. An id with no live app is dropped rather than refused: a deleted app has no traffic to pad. Repeat the parameter once per id on the current list page (at most 100, matching `listApps`). Omit it to receive every app in the organization that had data, unless that set is larger than this query will expand: then the call is a `422` on `appId` and the list page should name the apps it is showing. Other queries reject this parameter.
AppId *SeriesAppId `form:"appId,omitempty" json:"appId,omitempty"`
// EndpointId Restrict expand-by-`endpoint_id` queries (`endpoints_request_volume`, `endpoints_request_rate`, `endpoints_latency_p95`, `endpoints_latency_p99`, `endpoints_error_volume`, `endpoints_request_count`) to these endpoint ids: one series per id, in request order, with all-null series for endpoints that had no traffic. `endpoints_request_volume` is quarter-hourly request counts over `window=24h`; the others are latest-window scalars over `window=1h`. Buckets that started before that endpoint row's `createdAt` are null. Repeat the parameter once per id on the current list page (at most 100, matching `listEndpoints`). Omit it to receive every endpoint on the selected app that had data, unless that set is larger than this query will expand: then the call is a `422` on `endpointId` and the list page should name the endpoints it is showing. Other queries reject this parameter. Requires the public app id.
EndpointId *SeriesEndpointId `form:"endpointId,omitempty" json:"endpointId,omitempty"`
}
GetMetricSeriesParams defines parameters for GetMetricSeries.
type GetMetricSeriesParamsStatusClass ¶
type GetMetricSeriesParamsStatusClass string
GetMetricSeriesParamsStatusClass defines parameters for GetMetricSeries.
const ( GetMetricSeriesParamsStatusClassN2xx GetMetricSeriesParamsStatusClass = "2xx" GetMetricSeriesParamsStatusClassN4xx GetMetricSeriesParamsStatusClass = "4xx" GetMetricSeriesParamsStatusClassN5xx GetMetricSeriesParamsStatusClass = "5xx" )
Defines values for GetMetricSeriesParamsStatusClass.
func (GetMetricSeriesParamsStatusClass) Valid ¶
func (e GetMetricSeriesParamsStatusClass) Valid() bool
Valid indicates whether the value is a known member of the GetMetricSeriesParamsStatusClass enum.
type GetMetricSeriesParamsWindow ¶
type GetMetricSeriesParamsWindow string
GetMetricSeriesParamsWindow defines parameters for GetMetricSeries.
const ( GetMetricSeriesParamsWindowN1h GetMetricSeriesParamsWindow = "1h" GetMetricSeriesParamsWindowN24h GetMetricSeriesParamsWindow = "24h" GetMetricSeriesParamsWindowN30d GetMetricSeriesParamsWindow = "30d" GetMetricSeriesParamsWindowN6h GetMetricSeriesParamsWindow = "6h" GetMetricSeriesParamsWindowN7d GetMetricSeriesParamsWindow = "7d" )
Defines values for GetMetricSeriesParamsWindow.
func (GetMetricSeriesParamsWindow) Valid ¶
func (e GetMetricSeriesParamsWindow) Valid() bool
Valid indicates whether the value is a known member of the GetMetricSeriesParamsWindow enum.
type GetMetricSeriesResponse ¶
type GetMetricSeriesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *MetricSeries
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// ApplicationproblemJSON502 the response for an HTTP 502 `application/problem+json` response
ApplicationproblemJSON502 *BadGateway
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
// ApplicationproblemJSON504 the response for an HTTP 504 `application/problem+json` response
ApplicationproblemJSON504 *GatewayTimeout
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetMetricSeriesResponse429Headers
}
func ParseGetMetricSeriesResponse ¶
func ParseGetMetricSeriesResponse(rsp *http.Response) (*GetMetricSeriesResponse, error)
ParseGetMetricSeriesResponse parses an HTTP response from a GetMetricSeriesWithResponse call
func (GetMetricSeriesResponse) ContentType ¶
func (r GetMetricSeriesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetMetricSeriesResponse) GetApplicationproblemJSON400 ¶
func (r GetMetricSeriesResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (GetMetricSeriesResponse) GetApplicationproblemJSON401 ¶
func (r GetMetricSeriesResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetMetricSeriesResponse) GetApplicationproblemJSON403 ¶
func (r GetMetricSeriesResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetMetricSeriesResponse) GetApplicationproblemJSON404 ¶
func (r GetMetricSeriesResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetMetricSeriesResponse) GetApplicationproblemJSON422 ¶
func (r GetMetricSeriesResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (GetMetricSeriesResponse) GetApplicationproblemJSON429 ¶
func (r GetMetricSeriesResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetMetricSeriesResponse) GetApplicationproblemJSON502 ¶
func (r GetMetricSeriesResponse) GetApplicationproblemJSON502() *BadGateway
GetApplicationproblemJSON502 returns the response for an HTTP 502 `application/problem+json` response
func (GetMetricSeriesResponse) GetApplicationproblemJSON503 ¶
func (r GetMetricSeriesResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (GetMetricSeriesResponse) GetApplicationproblemJSON504 ¶
func (r GetMetricSeriesResponse) GetApplicationproblemJSON504() *GatewayTimeout
GetApplicationproblemJSON504 returns the response for an HTTP 504 `application/problem+json` response
func (GetMetricSeriesResponse) GetBody ¶
func (r GetMetricSeriesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetMetricSeriesResponse) GetJSON200 ¶
func (r GetMetricSeriesResponse) GetJSON200() *MetricSeries
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetMetricSeriesResponse) Status ¶
func (r GetMetricSeriesResponse) Status() string
Status returns HTTPResponse.Status
func (GetMetricSeriesResponse) StatusCode ¶
func (r GetMetricSeriesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMetricSeriesResponse429Headers ¶
type GetMetricSeriesResponse429Headers struct {
RetryAfter int32
}
GetMetricSeriesResponse429Headers the declared response headers of an HTTP 429 response for GetMetricSeries
type GetSourceResponse ¶
type GetSourceResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Source
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseGetSourceResponse ¶
func ParseGetSourceResponse(rsp *http.Response) (*GetSourceResponse, error)
ParseGetSourceResponse parses an HTTP response from a GetSourceWithResponse call
func (GetSourceResponse) ContentType ¶
func (r GetSourceResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSourceResponse) GetApplicationproblemJSON400 ¶
func (r GetSourceResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (GetSourceResponse) GetApplicationproblemJSON401 ¶
func (r GetSourceResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetSourceResponse) GetApplicationproblemJSON403 ¶
func (r GetSourceResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetSourceResponse) GetApplicationproblemJSON404 ¶
func (r GetSourceResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetSourceResponse) GetApplicationproblemJSON422 ¶
func (r GetSourceResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (GetSourceResponse) GetApplicationproblemJSON503 ¶
func (r GetSourceResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (GetSourceResponse) GetBody ¶
func (r GetSourceResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetSourceResponse) GetJSON200 ¶
func (r GetSourceResponse) GetJSON200() *Source
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetSourceResponse) Status ¶
func (r GetSourceResponse) Status() string
Status returns HTTPResponse.Status
func (GetSourceResponse) StatusCode ¶
func (r GetSourceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSourceUploadResponse ¶
type GetSourceUploadResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SourceUpload
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseGetSourceUploadResponse ¶
func ParseGetSourceUploadResponse(rsp *http.Response) (*GetSourceUploadResponse, error)
ParseGetSourceUploadResponse parses an HTTP response from a GetSourceUploadWithResponse call
func (GetSourceUploadResponse) ContentType ¶
func (r GetSourceUploadResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSourceUploadResponse) GetApplicationproblemJSON400 ¶
func (r GetSourceUploadResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (GetSourceUploadResponse) GetApplicationproblemJSON401 ¶
func (r GetSourceUploadResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetSourceUploadResponse) GetApplicationproblemJSON403 ¶
func (r GetSourceUploadResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetSourceUploadResponse) GetApplicationproblemJSON404 ¶
func (r GetSourceUploadResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetSourceUploadResponse) GetApplicationproblemJSON422 ¶
func (r GetSourceUploadResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (GetSourceUploadResponse) GetApplicationproblemJSON503 ¶
func (r GetSourceUploadResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (GetSourceUploadResponse) GetBody ¶
func (r GetSourceUploadResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetSourceUploadResponse) GetJSON200 ¶
func (r GetSourceUploadResponse) GetJSON200() *SourceUpload
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetSourceUploadResponse) Status ¶
func (r GetSourceUploadResponse) Status() string
Status returns HTTPResponse.Status
func (GetSourceUploadResponse) StatusCode ¶
func (r GetSourceUploadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTaskResponse ¶
type GetTaskResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Task
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseGetTaskResponse ¶
func ParseGetTaskResponse(rsp *http.Response) (*GetTaskResponse, error)
ParseGetTaskResponse parses an HTTP response from a GetTaskWithResponse call
func (GetTaskResponse) ContentType ¶
func (r GetTaskResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetTaskResponse) GetApplicationproblemJSON401 ¶
func (r GetTaskResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetTaskResponse) GetApplicationproblemJSON403 ¶
func (r GetTaskResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetTaskResponse) GetApplicationproblemJSON404 ¶
func (r GetTaskResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetTaskResponse) GetApplicationproblemJSON503 ¶
func (r GetTaskResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (GetTaskResponse) GetBody ¶
func (r GetTaskResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetTaskResponse) GetJSON200 ¶
func (r GetTaskResponse) GetJSON200() *Task
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetTaskResponse) Status ¶
func (r GetTaskResponse) Status() string
Status returns HTTPResponse.Status
func (GetTaskResponse) StatusCode ¶
func (r GetTaskResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUsageSummaryParams ¶
type GetUsageSummaryParams struct {
// From Inclusive lower bound on billable time (RFC 3339). Defaults to 24 hours before `to`. The maximum window is 31 days. An explicit zero timestamp (`0001-01-01T00:00:00Z`) returns `422` rather than selecting the default.
From *time.Time `form:"from,omitempty" json:"from,omitempty"`
// To Exclusive upper bound on billable time (RFC 3339). Defaults to now, and a value in the future is read as now. An explicit zero timestamp (`0001-01-01T00:00:00Z`) returns `422` rather than selecting the default.
To *time.Time `form:"to,omitempty" json:"to,omitempty"`
// AppId Report only this app's usage. A filter on what is reported, not on what is measured: coverage depends on every app's concurrent GPUs.
AppId *AppId `form:"appId,omitempty" json:"appId,omitempty"`
// GpuType Report only usage of this GPU type. A retired type is accepted, because usage recorded before it was withdrawn is still reportable. A type the catalog has never carried returns `422`.
GpuType *GpuTypeId `form:"gpuType,omitempty" json:"gpuType,omitempty"`
// GroupBy Dimensions to group by. An empty list returns one bucket for the whole window. Each dimension appears on the bucket it was requested with and is absent otherwise.
GroupBy *[]UsageDimension `form:"groupBy,omitempty" json:"groupBy,omitempty"`
}
GetUsageSummaryParams defines parameters for GetUsageSummary.
type GetUsageSummaryResponse ¶
type GetUsageSummaryResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *UsageSummary
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON500 the response for an HTTP 500 `application/problem+json` response
ApplicationproblemJSON500 *InternalServerError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseGetUsageSummaryResponse ¶
func ParseGetUsageSummaryResponse(rsp *http.Response) (*GetUsageSummaryResponse, error)
ParseGetUsageSummaryResponse parses an HTTP response from a GetUsageSummaryWithResponse call
func (GetUsageSummaryResponse) ContentType ¶
func (r GetUsageSummaryResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetUsageSummaryResponse) GetApplicationproblemJSON400 ¶
func (r GetUsageSummaryResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (GetUsageSummaryResponse) GetApplicationproblemJSON401 ¶
func (r GetUsageSummaryResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetUsageSummaryResponse) GetApplicationproblemJSON403 ¶
func (r GetUsageSummaryResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetUsageSummaryResponse) GetApplicationproblemJSON422 ¶
func (r GetUsageSummaryResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (GetUsageSummaryResponse) GetApplicationproblemJSON500 ¶
func (r GetUsageSummaryResponse) GetApplicationproblemJSON500() *InternalServerError
GetApplicationproblemJSON500 returns the response for an HTTP 500 `application/problem+json` response
func (GetUsageSummaryResponse) GetApplicationproblemJSON503 ¶
func (r GetUsageSummaryResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (GetUsageSummaryResponse) GetBody ¶
func (r GetUsageSummaryResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetUsageSummaryResponse) GetJSON200 ¶
func (r GetUsageSummaryResponse) GetJSON200() *UsageSummary
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetUsageSummaryResponse) Status ¶
func (r GetUsageSummaryResponse) Status() string
Status returns HTTPResponse.Status
func (GetUsageSummaryResponse) StatusCode ¶
func (r GetUsageSummaryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetVersionResponse ¶
type GetVersionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Version
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseGetVersionResponse ¶
func ParseGetVersionResponse(rsp *http.Response) (*GetVersionResponse, error)
ParseGetVersionResponse parses an HTTP response from a GetVersionWithResponse call
func (GetVersionResponse) ContentType ¶
func (r GetVersionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetVersionResponse) GetApplicationproblemJSON400 ¶
func (r GetVersionResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (GetVersionResponse) GetApplicationproblemJSON401 ¶
func (r GetVersionResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetVersionResponse) GetApplicationproblemJSON403 ¶
func (r GetVersionResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetVersionResponse) GetApplicationproblemJSON404 ¶
func (r GetVersionResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetVersionResponse) GetApplicationproblemJSON503 ¶
func (r GetVersionResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (GetVersionResponse) GetBody ¶
func (r GetVersionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetVersionResponse) GetJSON200 ¶
func (r GetVersionResponse) GetJSON200() *Version
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetVersionResponse) Status ¶
func (r GetVersionResponse) Status() string
Status returns HTTPResponse.Status
func (GetVersionResponse) StatusCode ¶
func (r GetVersionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetWorkerResponse ¶
type GetWorkerResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Worker
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseGetWorkerResponse ¶
func ParseGetWorkerResponse(rsp *http.Response) (*GetWorkerResponse, error)
ParseGetWorkerResponse parses an HTTP response from a GetWorkerWithResponse call
func (GetWorkerResponse) ContentType ¶
func (r GetWorkerResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetWorkerResponse) GetApplicationproblemJSON400 ¶
func (r GetWorkerResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (GetWorkerResponse) GetApplicationproblemJSON401 ¶
func (r GetWorkerResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetWorkerResponse) GetApplicationproblemJSON403 ¶
func (r GetWorkerResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetWorkerResponse) GetApplicationproblemJSON404 ¶
func (r GetWorkerResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetWorkerResponse) GetApplicationproblemJSON422 ¶
func (r GetWorkerResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (GetWorkerResponse) GetApplicationproblemJSON503 ¶
func (r GetWorkerResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (GetWorkerResponse) GetBody ¶
func (r GetWorkerResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetWorkerResponse) GetJSON200 ¶
func (r GetWorkerResponse) GetJSON200() *Worker
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetWorkerResponse) Status ¶
func (r GetWorkerResponse) Status() string
Status returns HTTPResponse.Status
func (GetWorkerResponse) StatusCode ¶
func (r GetWorkerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GpuAvailability ¶
type GpuAvailability string
GpuAvailability How the catalog currently offers this GPU type. `restricted` means the SKU is not generally available. It is not purchased reserved capacity.
const ( Available GpuAvailability = "available" Custom GpuAvailability = "custom" Restricted GpuAvailability = "restricted" )
Defines values for GpuAvailability.
func (GpuAvailability) Valid ¶
func (e GpuAvailability) Valid() bool
Valid indicates whether the value is a known member of the GpuAvailability enum.
type GpuPricing ¶
type GpuPricing struct {
// EffectiveFrom From when this price is effective.
EffectiveFrom time.Time `json:"effectiveFrom"`
Id openapi_types.UUID `json:"id"`
// PerSecond Price per GPU per second in USD major units as an exact decimal string (e.g. "0.000767"). Stored and billed from nanodollars internally; the platform bills in USD only.
//
//
// Example: 0.000767
PerSecond string `json:"perSecond"`
}
GpuPricing defines model for GpuPricing.
type GpuType ¶
type GpuType struct {
// Availability How the catalog currently offers this GPU type. `restricted` means the SKU is not generally available. It is not purchased reserved capacity.
Availability GpuAvailability `json:"availability"`
// DeletedAt Retirement time, returned only in the Runware catalog view.
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Id Public catalog code referenced by `gpuType` in worker configuration (not the internal database row UUID).
Id GpuTypeId `json:"id"`
// Memory Human-readable memory capacity.
//
// Example: 80 GB HBM
Memory string `json:"memory"`
// Name Example: H100
Name string `json:"name"`
// Pricing The price currently in effect — the most recent price whose effectiveFrom is not in the future. The Runware principal can read the full price history, including scheduled future changes, from `GET /v1/gpu-types/{gpuTypeId}/prices`.
Pricing GpuPricing `json:"pricing"`
}
GpuType defines model for GpuType.
type GpuTypeId ¶
type GpuTypeId = string
GpuTypeId Public catalog code for a supported GPU type (e.g. `h100`, `rtx-pro-6000`). Must match an `id` returned by `GET /v1/gpu-types` (validated at request time against the catalog). This is not the internal database row UUID.
type GpuTypeIdOrEmpty ¶
type GpuTypeIdOrEmpty = string
GpuTypeIdOrEmpty A `GpuTypeId`, or the empty string. Optional fallback GPU fields accept `""` because forms bind an unselected dropdown as empty rather than omitting the key. A non-empty value has the same shape as `GpuTypeId` — keep this pattern aligned when the catalog-code format changes.
type GpuTypeList ¶
type GpuTypeList struct {
Data []GpuType `json:"data"`
}
GpuTypeList defines model for GpuTypeList.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InternalServerError ¶
type InternalServerError = ProblemDetails
InternalServerError RFC 9457 problem details. Every error response from this API uses this schema with media type `application/problem+json`. `type` is a URI that identifies the problem class and dereferences to its documentation; clients should switch on `type` (not `status` or `detail`, which are not stable identifiers). Additional members beyond those below may appear.
type ListAppEnvironmentVariablesParams ¶
type ListAppEnvironmentVariablesParams struct {
// Limit Maximum number of items to return.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque pagination cursor returned by a previous call, as `nextCursor` or, on the operations that offer one, `prevCursor`.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListAppEnvironmentVariablesParams defines parameters for ListAppEnvironmentVariables.
type ListAppEnvironmentVariablesResponse ¶
type ListAppEnvironmentVariablesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data *[]EnvironmentVariable `json:"data,omitempty"`
// NextCursor Cursor for the next page; null when there are no more items.
NextCursor *string `json:"nextCursor,omitempty"`
}
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseListAppEnvironmentVariablesResponse ¶
func ParseListAppEnvironmentVariablesResponse(rsp *http.Response) (*ListAppEnvironmentVariablesResponse, error)
ParseListAppEnvironmentVariablesResponse parses an HTTP response from a ListAppEnvironmentVariablesWithResponse call
func (ListAppEnvironmentVariablesResponse) ContentType ¶
func (r ListAppEnvironmentVariablesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAppEnvironmentVariablesResponse) GetApplicationproblemJSON400 ¶
func (r ListAppEnvironmentVariablesResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListAppEnvironmentVariablesResponse) GetApplicationproblemJSON401 ¶
func (r ListAppEnvironmentVariablesResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListAppEnvironmentVariablesResponse) GetApplicationproblemJSON403 ¶
func (r ListAppEnvironmentVariablesResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListAppEnvironmentVariablesResponse) GetApplicationproblemJSON404 ¶
func (r ListAppEnvironmentVariablesResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListAppEnvironmentVariablesResponse) GetApplicationproblemJSON503 ¶
func (r ListAppEnvironmentVariablesResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (ListAppEnvironmentVariablesResponse) GetBody ¶
func (r ListAppEnvironmentVariablesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAppEnvironmentVariablesResponse) GetJSON200 ¶
func (r ListAppEnvironmentVariablesResponse) GetJSON200() *struct { Data *[]EnvironmentVariable `json:"data,omitempty"` // NextCursor Cursor for the next page; null when there are no more items. NextCursor *string `json:"nextCursor,omitempty"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAppEnvironmentVariablesResponse) Status ¶
func (r ListAppEnvironmentVariablesResponse) Status() string
Status returns HTTPResponse.Status
func (ListAppEnvironmentVariablesResponse) StatusCode ¶
func (r ListAppEnvironmentVariablesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAppErrorsParams ¶
type ListAppErrorsParams struct {
// Limit Maximum number of items to return.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque pagination cursor returned by a previous call, as `nextCursor` or, on the operations that offer one, `prevCursor`.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Window The range to search. Same closed ladder as the metrics queries. Defaults to the last 24 hours.
Window *ListAppErrorsParamsWindow `form:"window,omitempty" json:"window,omitempty"`
// StatusClass Narrow to one error class. Omit for both 4xx and 5xx.
StatusClass *ListAppErrorsParamsStatusClass `form:"statusClass,omitempty" json:"statusClass,omitempty"`
}
ListAppErrorsParams defines parameters for ListAppErrors.
type ListAppErrorsParamsStatusClass ¶
type ListAppErrorsParamsStatusClass string
ListAppErrorsParamsStatusClass defines parameters for ListAppErrors.
const ( ListAppErrorsParamsStatusClassN4xx ListAppErrorsParamsStatusClass = "4xx" ListAppErrorsParamsStatusClassN5xx ListAppErrorsParamsStatusClass = "5xx" )
Defines values for ListAppErrorsParamsStatusClass.
func (ListAppErrorsParamsStatusClass) Valid ¶
func (e ListAppErrorsParamsStatusClass) Valid() bool
Valid indicates whether the value is a known member of the ListAppErrorsParamsStatusClass enum.
type ListAppErrorsParamsWindow ¶
type ListAppErrorsParamsWindow string
ListAppErrorsParamsWindow defines parameters for ListAppErrors.
const ( ListAppErrorsParamsWindowN1h ListAppErrorsParamsWindow = "1h" ListAppErrorsParamsWindowN24h ListAppErrorsParamsWindow = "24h" ListAppErrorsParamsWindowN30d ListAppErrorsParamsWindow = "30d" ListAppErrorsParamsWindowN6h ListAppErrorsParamsWindow = "6h" ListAppErrorsParamsWindowN7d ListAppErrorsParamsWindow = "7d" )
Defines values for ListAppErrorsParamsWindow.
func (ListAppErrorsParamsWindow) Valid ¶
func (e ListAppErrorsParamsWindow) Valid() bool
Valid indicates whether the value is a known member of the ListAppErrorsParamsWindow enum.
type ListAppErrorsResponse ¶
type ListAppErrorsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data []LogEntry `json:"data"`
// NextCursor Cursor for the next page; null when there are no more items.
NextCursor *string `json:"nextCursor,omitempty"`
}
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// ApplicationproblemJSON502 the response for an HTTP 502 `application/problem+json` response
ApplicationproblemJSON502 *BadGateway
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
// ApplicationproblemJSON504 the response for an HTTP 504 `application/problem+json` response
ApplicationproblemJSON504 *GatewayTimeout
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListAppErrorsResponse429Headers
}
func ParseListAppErrorsResponse ¶
func ParseListAppErrorsResponse(rsp *http.Response) (*ListAppErrorsResponse, error)
ParseListAppErrorsResponse parses an HTTP response from a ListAppErrorsWithResponse call
func (ListAppErrorsResponse) ContentType ¶
func (r ListAppErrorsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAppErrorsResponse) GetApplicationproblemJSON400 ¶
func (r ListAppErrorsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListAppErrorsResponse) GetApplicationproblemJSON401 ¶
func (r ListAppErrorsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListAppErrorsResponse) GetApplicationproblemJSON403 ¶
func (r ListAppErrorsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListAppErrorsResponse) GetApplicationproblemJSON404 ¶
func (r ListAppErrorsResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListAppErrorsResponse) GetApplicationproblemJSON422 ¶
func (r ListAppErrorsResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (ListAppErrorsResponse) GetApplicationproblemJSON429 ¶
func (r ListAppErrorsResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListAppErrorsResponse) GetApplicationproblemJSON502 ¶
func (r ListAppErrorsResponse) GetApplicationproblemJSON502() *BadGateway
GetApplicationproblemJSON502 returns the response for an HTTP 502 `application/problem+json` response
func (ListAppErrorsResponse) GetApplicationproblemJSON503 ¶
func (r ListAppErrorsResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (ListAppErrorsResponse) GetApplicationproblemJSON504 ¶
func (r ListAppErrorsResponse) GetApplicationproblemJSON504() *GatewayTimeout
GetApplicationproblemJSON504 returns the response for an HTTP 504 `application/problem+json` response
func (ListAppErrorsResponse) GetBody ¶
func (r ListAppErrorsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAppErrorsResponse) GetJSON200 ¶
func (r ListAppErrorsResponse) GetJSON200() *struct { Data []LogEntry `json:"data"` // NextCursor Cursor for the next page; null when there are no more items. NextCursor *string `json:"nextCursor,omitempty"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAppErrorsResponse) Status ¶
func (r ListAppErrorsResponse) Status() string
Status returns HTTPResponse.Status
func (ListAppErrorsResponse) StatusCode ¶
func (r ListAppErrorsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAppErrorsResponse429Headers ¶
type ListAppErrorsResponse429Headers struct {
RetryAfter int32
}
ListAppErrorsResponse429Headers the declared response headers of an HTTP 429 response for ListAppErrors
type ListAppEventsParams ¶
type ListAppEventsParams struct {
// Limit Maximum number of items to return.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque pagination cursor returned by a previous call, as `nextCursor` or, on the operations that offer one, `prevCursor`.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
Type *AppEventType `form:"type,omitempty" json:"type,omitempty"`
}
ListAppEventsParams defines parameters for ListAppEvents.
type ListAppEventsResponse ¶
type ListAppEventsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data *[]AppEvent `json:"data,omitempty"`
// NextCursor Cursor for the next page; null when there are no more items.
NextCursor *string `json:"nextCursor,omitempty"`
}
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseListAppEventsResponse ¶
func ParseListAppEventsResponse(rsp *http.Response) (*ListAppEventsResponse, error)
ParseListAppEventsResponse parses an HTTP response from a ListAppEventsWithResponse call
func (ListAppEventsResponse) ContentType ¶
func (r ListAppEventsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAppEventsResponse) GetApplicationproblemJSON400 ¶
func (r ListAppEventsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListAppEventsResponse) GetApplicationproblemJSON401 ¶
func (r ListAppEventsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListAppEventsResponse) GetApplicationproblemJSON403 ¶
func (r ListAppEventsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListAppEventsResponse) GetApplicationproblemJSON404 ¶
func (r ListAppEventsResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListAppEventsResponse) GetApplicationproblemJSON503 ¶
func (r ListAppEventsResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (ListAppEventsResponse) GetBody ¶
func (r ListAppEventsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAppEventsResponse) GetJSON200 ¶
func (r ListAppEventsResponse) GetJSON200() *struct { Data *[]AppEvent `json:"data,omitempty"` // NextCursor Cursor for the next page; null when there are no more items. NextCursor *string `json:"nextCursor,omitempty"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAppEventsResponse) Status ¶
func (r ListAppEventsResponse) Status() string
Status returns HTTPResponse.Status
func (ListAppEventsResponse) StatusCode ¶
func (r ListAppEventsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAppSecretsParams ¶
type ListAppSecretsParams struct {
// Limit Maximum number of items to return.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque pagination cursor returned by a previous call, as `nextCursor` or, on the operations that offer one, `prevCursor`.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListAppSecretsParams defines parameters for ListAppSecrets.
type ListAppSecretsResponse ¶
type ListAppSecretsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data *[]SecretAttachment `json:"data,omitempty"`
// NextCursor Cursor for the next page; null when there are no more items.
NextCursor *string `json:"nextCursor,omitempty"`
}
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseListAppSecretsResponse ¶
func ParseListAppSecretsResponse(rsp *http.Response) (*ListAppSecretsResponse, error)
ParseListAppSecretsResponse parses an HTTP response from a ListAppSecretsWithResponse call
func (ListAppSecretsResponse) ContentType ¶
func (r ListAppSecretsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAppSecretsResponse) GetApplicationproblemJSON400 ¶
func (r ListAppSecretsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListAppSecretsResponse) GetApplicationproblemJSON401 ¶
func (r ListAppSecretsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListAppSecretsResponse) GetApplicationproblemJSON403 ¶
func (r ListAppSecretsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListAppSecretsResponse) GetApplicationproblemJSON404 ¶
func (r ListAppSecretsResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListAppSecretsResponse) GetApplicationproblemJSON422 ¶
func (r ListAppSecretsResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (ListAppSecretsResponse) GetApplicationproblemJSON503 ¶
func (r ListAppSecretsResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (ListAppSecretsResponse) GetBody ¶
func (r ListAppSecretsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAppSecretsResponse) GetJSON200 ¶
func (r ListAppSecretsResponse) GetJSON200() *struct { Data *[]SecretAttachment `json:"data,omitempty"` // NextCursor Cursor for the next page; null when there are no more items. NextCursor *string `json:"nextCursor,omitempty"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAppSecretsResponse) Status ¶
func (r ListAppSecretsResponse) Status() string
Status returns HTTPResponse.Status
func (ListAppSecretsResponse) StatusCode ¶
func (r ListAppSecretsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAppsParams ¶
type ListAppsParams struct {
// Limit Maximum number of items to return.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque pagination cursor returned by a previous call, as `nextCursor` or, on the operations that offer one, `prevCursor`.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Status Return only apps in this status.
Status *AppStatus `form:"status,omitempty" json:"status,omitempty"`
// Q Case-insensitive substring match against `appName` and `appId`. An app matching either is returned.
Q *string `form:"q,omitempty" json:"q,omitempty"`
// GpuType Return only apps whose worker configuration requests this GPU type. Matched against `configuration.gpuType` only, not `fallbackGpuType`. Must be a code from `GET /v1/gpu-types`; an unknown code returns `422`.
GpuType *GpuTypeId `form:"gpuType,omitempty" json:"gpuType,omitempty"`
Sort *AppSort `form:"sort,omitempty" json:"sort,omitempty"`
}
ListAppsParams defines parameters for ListApps.
type ListAppsResponse ¶
type ListAppsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data *[]App `json:"data,omitempty"`
// NextCursor Cursor for the next page; null when there are no more items.
NextCursor *string `json:"nextCursor,omitempty"`
}
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseListAppsResponse ¶
func ParseListAppsResponse(rsp *http.Response) (*ListAppsResponse, error)
ParseListAppsResponse parses an HTTP response from a ListAppsWithResponse call
func (ListAppsResponse) ContentType ¶
func (r ListAppsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAppsResponse) GetApplicationproblemJSON400 ¶
func (r ListAppsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListAppsResponse) GetApplicationproblemJSON401 ¶
func (r ListAppsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListAppsResponse) GetApplicationproblemJSON403 ¶
func (r ListAppsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListAppsResponse) GetApplicationproblemJSON422 ¶
func (r ListAppsResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (ListAppsResponse) GetApplicationproblemJSON503 ¶
func (r ListAppsResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (ListAppsResponse) GetBody ¶
func (r ListAppsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAppsResponse) GetJSON200 ¶
func (r ListAppsResponse) GetJSON200() *struct { Data *[]App `json:"data,omitempty"` // NextCursor Cursor for the next page; null when there are no more items. NextCursor *string `json:"nextCursor,omitempty"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAppsResponse) Status ¶
func (r ListAppsResponse) Status() string
Status returns HTTPResponse.Status
func (ListAppsResponse) StatusCode ¶
func (r ListAppsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListBuildsParams ¶
type ListBuildsParams struct {
// Limit Maximum number of items to return.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque pagination cursor returned by a previous call, as `nextCursor` or, on the operations that offer one, `prevCursor`.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListBuildsParams defines parameters for ListBuilds.
type ListBuildsResponse ¶
type ListBuildsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data []Build `json:"data"`
// NextCursor Cursor for the next page; null when there are no more items.
NextCursor *string `json:"nextCursor,omitempty"`
// Summary Collection totals for this app's builds list. Independent of the page: the same values on every cursor, including a seek past the last row. `total` counts builds. `versions` counts versions on the same app — the same predicate as `listVersions` `summary.total`, excluding soft-deleted versions.
Summary BuildListSummary `json:"summary"`
}
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseListBuildsResponse ¶
func ParseListBuildsResponse(rsp *http.Response) (*ListBuildsResponse, error)
ParseListBuildsResponse parses an HTTP response from a ListBuildsWithResponse call
func (ListBuildsResponse) ContentType ¶
func (r ListBuildsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListBuildsResponse) GetApplicationproblemJSON400 ¶
func (r ListBuildsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListBuildsResponse) GetApplicationproblemJSON401 ¶
func (r ListBuildsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListBuildsResponse) GetApplicationproblemJSON403 ¶
func (r ListBuildsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListBuildsResponse) GetApplicationproblemJSON404 ¶
func (r ListBuildsResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListBuildsResponse) GetApplicationproblemJSON503 ¶
func (r ListBuildsResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (ListBuildsResponse) GetBody ¶
func (r ListBuildsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListBuildsResponse) GetJSON200 ¶
func (r ListBuildsResponse) GetJSON200() *struct { Data []Build `json:"data"` // NextCursor Cursor for the next page; null when there are no more items. NextCursor *string `json:"nextCursor,omitempty"` // Summary Collection totals for this app's builds list. Independent of the page: the same values on every cursor, including a seek past the last row. `total` counts builds. `versions` counts versions on the same app — the same predicate as `listVersions` `summary.total`, excluding soft-deleted versions. Summary BuildListSummary `json:"summary"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListBuildsResponse) Status ¶
func (r ListBuildsResponse) Status() string
Status returns HTTPResponse.Status
func (ListBuildsResponse) StatusCode ¶
func (r ListBuildsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEndpointsParams ¶
type ListEndpointsParams struct {
// Limit Maximum number of items to return.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque pagination cursor returned by a previous call, as `nextCursor` or, on the operations that offer one, `prevCursor`.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListEndpointsParams defines parameters for ListEndpoints.
type ListEndpointsResponse ¶
type ListEndpointsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data *[]Endpoint `json:"data,omitempty"`
// NextCursor Cursor for the next page; null when there are no more items.
NextCursor *string `json:"nextCursor,omitempty"`
}
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseListEndpointsResponse ¶
func ParseListEndpointsResponse(rsp *http.Response) (*ListEndpointsResponse, error)
ParseListEndpointsResponse parses an HTTP response from a ListEndpointsWithResponse call
func (ListEndpointsResponse) ContentType ¶
func (r ListEndpointsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListEndpointsResponse) GetApplicationproblemJSON400 ¶
func (r ListEndpointsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListEndpointsResponse) GetApplicationproblemJSON401 ¶
func (r ListEndpointsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListEndpointsResponse) GetApplicationproblemJSON403 ¶
func (r ListEndpointsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListEndpointsResponse) GetApplicationproblemJSON404 ¶
func (r ListEndpointsResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListEndpointsResponse) GetApplicationproblemJSON422 ¶
func (r ListEndpointsResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (ListEndpointsResponse) GetApplicationproblemJSON503 ¶
func (r ListEndpointsResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (ListEndpointsResponse) GetBody ¶
func (r ListEndpointsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListEndpointsResponse) GetJSON200 ¶
func (r ListEndpointsResponse) GetJSON200() *struct { Data *[]Endpoint `json:"data,omitempty"` // NextCursor Cursor for the next page; null when there are no more items. NextCursor *string `json:"nextCursor,omitempty"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListEndpointsResponse) Status ¶
func (r ListEndpointsResponse) Status() string
Status returns HTTPResponse.Status
func (ListEndpointsResponse) StatusCode ¶
func (r ListEndpointsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListGpuTypesResponse ¶
type ListGpuTypesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GpuTypeList
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseListGpuTypesResponse ¶
func ParseListGpuTypesResponse(rsp *http.Response) (*ListGpuTypesResponse, error)
ParseListGpuTypesResponse parses an HTTP response from a ListGpuTypesWithResponse call
func (ListGpuTypesResponse) ContentType ¶
func (r ListGpuTypesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListGpuTypesResponse) GetApplicationproblemJSON401 ¶
func (r ListGpuTypesResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListGpuTypesResponse) GetApplicationproblemJSON403 ¶
func (r ListGpuTypesResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListGpuTypesResponse) GetApplicationproblemJSON503 ¶
func (r ListGpuTypesResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (ListGpuTypesResponse) GetBody ¶
func (r ListGpuTypesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListGpuTypesResponse) GetJSON200 ¶
func (r ListGpuTypesResponse) GetJSON200() *GpuTypeList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListGpuTypesResponse) Status ¶
func (r ListGpuTypesResponse) Status() string
Status returns HTTPResponse.Status
func (ListGpuTypesResponse) StatusCode ¶
func (r ListGpuTypesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListInsightsQueriesResponse ¶
type ListInsightsQueriesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *QueryCatalog
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON502 the response for an HTTP 502 `application/problem+json` response
ApplicationproblemJSON502 *BadGateway
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
// ApplicationproblemJSON504 the response for an HTTP 504 `application/problem+json` response
ApplicationproblemJSON504 *GatewayTimeout
}
func ParseListInsightsQueriesResponse ¶
func ParseListInsightsQueriesResponse(rsp *http.Response) (*ListInsightsQueriesResponse, error)
ParseListInsightsQueriesResponse parses an HTTP response from a ListInsightsQueriesWithResponse call
func (ListInsightsQueriesResponse) ContentType ¶
func (r ListInsightsQueriesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListInsightsQueriesResponse) GetApplicationproblemJSON401 ¶
func (r ListInsightsQueriesResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListInsightsQueriesResponse) GetApplicationproblemJSON403 ¶
func (r ListInsightsQueriesResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListInsightsQueriesResponse) GetApplicationproblemJSON502 ¶
func (r ListInsightsQueriesResponse) GetApplicationproblemJSON502() *BadGateway
GetApplicationproblemJSON502 returns the response for an HTTP 502 `application/problem+json` response
func (ListInsightsQueriesResponse) GetApplicationproblemJSON503 ¶
func (r ListInsightsQueriesResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (ListInsightsQueriesResponse) GetApplicationproblemJSON504 ¶
func (r ListInsightsQueriesResponse) GetApplicationproblemJSON504() *GatewayTimeout
GetApplicationproblemJSON504 returns the response for an HTTP 504 `application/problem+json` response
func (ListInsightsQueriesResponse) GetBody ¶
func (r ListInsightsQueriesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListInsightsQueriesResponse) GetJSON200 ¶
func (r ListInsightsQueriesResponse) GetJSON200() *QueryCatalog
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListInsightsQueriesResponse) Status ¶
func (r ListInsightsQueriesResponse) Status() string
Status returns HTTPResponse.Status
func (ListInsightsQueriesResponse) StatusCode ¶
func (r ListInsightsQueriesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListReservedCapacityParams ¶
type ListReservedCapacityParams struct {
// From Inclusive lower bound of the reporting period (RFC 3339). Defaults to 24 hours before `to`. The maximum window is 31 days. An explicit zero timestamp (`0001-01-01T00:00:00Z`) returns `422` rather than selecting the default.
From *time.Time `form:"from,omitempty" json:"from,omitempty"`
// To Exclusive upper bound of the reporting period (RFC 3339). Defaults to now, and a value in the future is read as now. An explicit zero timestamp (`0001-01-01T00:00:00Z`) returns `422` rather than selecting the default.
To *time.Time `form:"to,omitempty" json:"to,omitempty"`
}
ListReservedCapacityParams defines parameters for ListReservedCapacity.
type ListReservedCapacityResponse ¶
type ListReservedCapacityResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data []ReservedCapacity `json:"data"`
}
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON500 the response for an HTTP 500 `application/problem+json` response
ApplicationproblemJSON500 *InternalServerError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseListReservedCapacityResponse ¶
func ParseListReservedCapacityResponse(rsp *http.Response) (*ListReservedCapacityResponse, error)
ParseListReservedCapacityResponse parses an HTTP response from a ListReservedCapacityWithResponse call
func (ListReservedCapacityResponse) ContentType ¶
func (r ListReservedCapacityResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListReservedCapacityResponse) GetApplicationproblemJSON400 ¶
func (r ListReservedCapacityResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListReservedCapacityResponse) GetApplicationproblemJSON401 ¶
func (r ListReservedCapacityResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListReservedCapacityResponse) GetApplicationproblemJSON403 ¶
func (r ListReservedCapacityResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListReservedCapacityResponse) GetApplicationproblemJSON422 ¶
func (r ListReservedCapacityResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (ListReservedCapacityResponse) GetApplicationproblemJSON500 ¶
func (r ListReservedCapacityResponse) GetApplicationproblemJSON500() *InternalServerError
GetApplicationproblemJSON500 returns the response for an HTTP 500 `application/problem+json` response
func (ListReservedCapacityResponse) GetApplicationproblemJSON503 ¶
func (r ListReservedCapacityResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (ListReservedCapacityResponse) GetBody ¶
func (r ListReservedCapacityResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListReservedCapacityResponse) GetJSON200 ¶
func (r ListReservedCapacityResponse) GetJSON200() *struct { Data []ReservedCapacity `json:"data"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListReservedCapacityResponse) Status ¶
func (r ListReservedCapacityResponse) Status() string
Status returns HTTPResponse.Status
func (ListReservedCapacityResponse) StatusCode ¶
func (r ListReservedCapacityResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSecretsParams ¶
type ListSecretsParams struct {
// Limit Maximum number of items to return.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque pagination cursor returned by a previous call, as `nextCursor` or, on the operations that offer one, `prevCursor`.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListSecretsParams defines parameters for ListSecrets.
type ListSecretsResponse ¶
type ListSecretsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data *[]Secret `json:"data,omitempty"`
// NextCursor Cursor for the next page; null when there are no more items.
NextCursor *string `json:"nextCursor,omitempty"`
}
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseListSecretsResponse ¶
func ParseListSecretsResponse(rsp *http.Response) (*ListSecretsResponse, error)
ParseListSecretsResponse parses an HTTP response from a ListSecretsWithResponse call
func (ListSecretsResponse) ContentType ¶
func (r ListSecretsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSecretsResponse) GetApplicationproblemJSON400 ¶
func (r ListSecretsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListSecretsResponse) GetApplicationproblemJSON401 ¶
func (r ListSecretsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListSecretsResponse) GetApplicationproblemJSON403 ¶
func (r ListSecretsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListSecretsResponse) GetApplicationproblemJSON422 ¶
func (r ListSecretsResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (ListSecretsResponse) GetApplicationproblemJSON503 ¶
func (r ListSecretsResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (ListSecretsResponse) GetBody ¶
func (r ListSecretsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSecretsResponse) GetJSON200 ¶
func (r ListSecretsResponse) GetJSON200() *struct { Data *[]Secret `json:"data,omitempty"` // NextCursor Cursor for the next page; null when there are no more items. NextCursor *string `json:"nextCursor,omitempty"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSecretsResponse) Status ¶
func (r ListSecretsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSecretsResponse) StatusCode ¶
func (r ListSecretsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSummary ¶
type ListSummary struct {
// Total Number of items in the collection this page was drawn from.
Total int64 `json:"total"`
}
ListSummary Collection totals for a paged list. Independent of the page: `total` is the COUNT of items in the collection and is the same value on every page, including a cursor that seeks past the last row.
type ListTasksParams ¶
type ListTasksParams struct {
// Limit Maximum number of items to return.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque pagination cursor returned by a previous call, as `nextCursor` or, on the operations that offer one, `prevCursor`.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
Status *TaskStatus `form:"status,omitempty" json:"status,omitempty"`
}
ListTasksParams defines parameters for ListTasks.
type ListTasksResponse ¶
type ListTasksResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data *[]Task `json:"data,omitempty"`
// NextCursor Cursor for the next page; null when there are no more items.
NextCursor *string `json:"nextCursor,omitempty"`
}
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseListTasksResponse ¶
func ParseListTasksResponse(rsp *http.Response) (*ListTasksResponse, error)
ParseListTasksResponse parses an HTTP response from a ListTasksWithResponse call
func (ListTasksResponse) ContentType ¶
func (r ListTasksResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListTasksResponse) GetApplicationproblemJSON400 ¶
func (r ListTasksResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListTasksResponse) GetApplicationproblemJSON401 ¶
func (r ListTasksResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListTasksResponse) GetApplicationproblemJSON403 ¶
func (r ListTasksResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListTasksResponse) GetApplicationproblemJSON404 ¶
func (r ListTasksResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListTasksResponse) GetApplicationproblemJSON422 ¶
func (r ListTasksResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (ListTasksResponse) GetApplicationproblemJSON503 ¶
func (r ListTasksResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (ListTasksResponse) GetBody ¶
func (r ListTasksResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListTasksResponse) GetJSON200 ¶
func (r ListTasksResponse) GetJSON200() *struct { Data *[]Task `json:"data,omitempty"` // NextCursor Cursor for the next page; null when there are no more items. NextCursor *string `json:"nextCursor,omitempty"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListTasksResponse) Status ¶
func (r ListTasksResponse) Status() string
Status returns HTTPResponse.Status
func (ListTasksResponse) StatusCode ¶
func (r ListTasksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListUsageEventsParams ¶
type ListUsageEventsParams struct {
// Limit Maximum number of items to return.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque pagination cursor returned by a previous call, as `nextCursor` or, on the operations that offer one, `prevCursor`.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
AppId *AppId `form:"appId,omitempty" json:"appId,omitempty"`
// From Inclusive lower bound on event time (RFC 3339).
From *time.Time `form:"from,omitempty" json:"from,omitempty"`
// To Exclusive upper bound on event time (RFC 3339).
To *time.Time `form:"to,omitempty" json:"to,omitempty"`
}
ListUsageEventsParams defines parameters for ListUsageEvents.
type ListUsageEventsResponse ¶
type ListUsageEventsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data *[]UsageEvent `json:"data,omitempty"`
// NextCursor Cursor for the next page; null when there are no more items.
NextCursor *string `json:"nextCursor,omitempty"`
}
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseListUsageEventsResponse ¶
func ParseListUsageEventsResponse(rsp *http.Response) (*ListUsageEventsResponse, error)
ParseListUsageEventsResponse parses an HTTP response from a ListUsageEventsWithResponse call
func (ListUsageEventsResponse) ContentType ¶
func (r ListUsageEventsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListUsageEventsResponse) GetApplicationproblemJSON400 ¶
func (r ListUsageEventsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListUsageEventsResponse) GetApplicationproblemJSON401 ¶
func (r ListUsageEventsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListUsageEventsResponse) GetApplicationproblemJSON403 ¶
func (r ListUsageEventsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListUsageEventsResponse) GetApplicationproblemJSON503 ¶
func (r ListUsageEventsResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (ListUsageEventsResponse) GetBody ¶
func (r ListUsageEventsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListUsageEventsResponse) GetJSON200 ¶
func (r ListUsageEventsResponse) GetJSON200() *struct { Data *[]UsageEvent `json:"data,omitempty"` // NextCursor Cursor for the next page; null when there are no more items. NextCursor *string `json:"nextCursor,omitempty"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListUsageEventsResponse) Status ¶
func (r ListUsageEventsResponse) Status() string
Status returns HTTPResponse.Status
func (ListUsageEventsResponse) StatusCode ¶
func (r ListUsageEventsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListVersionsParams ¶
type ListVersionsParams struct {
// Limit Maximum number of items to return.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque pagination cursor returned by a previous call, as `nextCursor` or, on the operations that offer one, `prevCursor`.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListVersionsParams defines parameters for ListVersions.
type ListVersionsResponse ¶
type ListVersionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data []Version `json:"data"`
// NextCursor Cursor for the next page; null when there are no more items.
NextCursor *string `json:"nextCursor,omitempty"`
// Summary Collection totals for a paged list. Independent of the page: `total` is the COUNT of items in the collection and is the same value on every page, including a cursor that seeks past the last row.
Summary ListSummary `json:"summary"`
}
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseListVersionsResponse ¶
func ParseListVersionsResponse(rsp *http.Response) (*ListVersionsResponse, error)
ParseListVersionsResponse parses an HTTP response from a ListVersionsWithResponse call
func (ListVersionsResponse) ContentType ¶
func (r ListVersionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListVersionsResponse) GetApplicationproblemJSON400 ¶
func (r ListVersionsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListVersionsResponse) GetApplicationproblemJSON401 ¶
func (r ListVersionsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListVersionsResponse) GetApplicationproblemJSON403 ¶
func (r ListVersionsResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListVersionsResponse) GetApplicationproblemJSON404 ¶
func (r ListVersionsResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListVersionsResponse) GetApplicationproblemJSON503 ¶
func (r ListVersionsResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (ListVersionsResponse) GetBody ¶
func (r ListVersionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListVersionsResponse) GetJSON200 ¶
func (r ListVersionsResponse) GetJSON200() *struct { Data []Version `json:"data"` // NextCursor Cursor for the next page; null when there are no more items. NextCursor *string `json:"nextCursor,omitempty"` // Summary Collection totals for a paged list. Independent of the page: `total` is the COUNT of items in the collection and is the same value on every page, including a cursor that seeks past the last row. Summary ListSummary `json:"summary"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListVersionsResponse) Status ¶
func (r ListVersionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListVersionsResponse) StatusCode ¶
func (r ListVersionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListWorkersParams ¶
type ListWorkersParams struct {
// Limit Maximum number of items to return.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque pagination cursor returned by a previous call, as `nextCursor` or, on the operations that offer one, `prevCursor`.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// VersionId Scope the page to one version. The default is the app's `activeVersionId`. When that field is unset the default page is empty: the app has no active version, not that it has no workers. Send `all` (any case) to include every version. An empty value is refused. A cursor must be replayed under the same version scope it was issued with.
VersionId *string `form:"versionId,omitempty" json:"versionId,omitempty"`
// State Narrow the page by worker state. The default, `all`, keeps the terminal `stopped` rows in the page; `live` drops them.
//
// A `state` of `live` with a `status` of `stopped` is a contradiction and is refused, because an empty page would read as "this app has never run".
State *WorkerStateFilter `form:"state,omitempty" json:"state,omitempty"`
Status *WorkerStatus `form:"status,omitempty" json:"status,omitempty"`
// Q Case-insensitive literal substring match against `id`, `podName`, `nodeName` and `versionId`. A worker matching any field is returned within the selected version, state and status filters. Omit `q` to disable search. Cursors must retain the same search term, ignoring case.
Q *string `form:"q,omitempty" json:"q,omitempty"`
}
ListWorkersParams defines parameters for ListWorkers.
type ListWorkersResponse ¶
type ListWorkersResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data *[]Worker `json:"data,omitempty"`
// NextCursor Cursor for the next page; null when there are no more items.
NextCursor *string `json:"nextCursor,omitempty"`
}
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseListWorkersResponse ¶
func ParseListWorkersResponse(rsp *http.Response) (*ListWorkersResponse, error)
ParseListWorkersResponse parses an HTTP response from a ListWorkersWithResponse call
func (ListWorkersResponse) ContentType ¶
func (r ListWorkersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListWorkersResponse) GetApplicationproblemJSON400 ¶
func (r ListWorkersResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListWorkersResponse) GetApplicationproblemJSON401 ¶
func (r ListWorkersResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListWorkersResponse) GetApplicationproblemJSON403 ¶
func (r ListWorkersResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListWorkersResponse) GetApplicationproblemJSON404 ¶
func (r ListWorkersResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ListWorkersResponse) GetApplicationproblemJSON422 ¶
func (r ListWorkersResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (ListWorkersResponse) GetApplicationproblemJSON503 ¶
func (r ListWorkersResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (ListWorkersResponse) GetBody ¶
func (r ListWorkersResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListWorkersResponse) GetJSON200 ¶
func (r ListWorkersResponse) GetJSON200() *struct { Data *[]Worker `json:"data,omitempty"` // NextCursor Cursor for the next page; null when there are no more items. NextCursor *string `json:"nextCursor,omitempty"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListWorkersResponse) Status ¶
func (r ListWorkersResponse) Status() string
Status returns HTTPResponse.Status
func (ListWorkersResponse) StatusCode ¶
func (r ListWorkersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LogEntry ¶
type LogEntry struct {
Body string `json:"body"`
Fields *map[string]string `json:"fields,omitempty"`
Level *string `json:"level,omitempty"`
Time int64 `json:"time"`
}
LogEntry defines model for LogEntry.
type LogEntryPage ¶
type LogEntryPage struct {
Entries []LogEntry `json:"entries"`
// NextCursor Opaque; absent on the last page.
NextCursor *string `json:"nextCursor,omitempty"`
// PrevCursor Opaque; absent on the first page. Walks the opposite direction of `nextCursor` under the same `sort`.
PrevCursor *string `json:"prevCursor,omitempty"`
}
LogEntryPage defines model for LogEntryPage.
type LogSort ¶
type LogSort string
LogSort Ordering of a log page. `newest` is the default: the first row is the newest entry and `nextCursor` walks older. `oldest` reverses that.
type MetricSeries ¶
type MetricSeries struct {
Aggregation string `json:"aggregation"`
Query string `json:"query"`
Series []MetricSeriesEntry `json:"series"`
// StepS Seconds between adjacent timestamps in `t`.
StepS int64 `json:"step_s"`
// T The timestamp axis, shared by every series. Each value is the END of its bucket, in unix seconds: a point at `t[i]` is the aggregate over `(t[i] - step_s, t[i]]`, which is what the underlying range functions compute.
T []int64 `json:"t"`
Unit string `json:"unit"`
// Window The range covered, as `(from, to]`.
Window MetricWindowRange `json:"window"`
}
MetricSeries defines model for MetricSeries.
type MetricSeriesEntry ¶
type MetricSeriesEntry struct {
// Id Stable identifier for this line. For chart queries it does not change, so a client can map it to a color or legend position. For `apps_request_volume` it is the app id of that line.
Id string `json:"id"`
// Label Display text. May change without notice; do not switch on it.
Label string `json:"label"`
// V Values, positionally aligned to `t` and always the same length. `null` is a genuine absence of data, never a zero, and is sent explicitly rather than omitted so a gap draws as a gap instead of a line across an outage.
V []*float64 `json:"v"`
}
MetricSeriesEntry defines model for MetricSeriesEntry.
type MetricWindow ¶
type MetricWindow string
MetricWindow defines model for MetricWindow.
const ( MetricWindowN1h MetricWindow = "1h" MetricWindowN24h MetricWindow = "24h" MetricWindowN30d MetricWindow = "30d" MetricWindowN6h MetricWindow = "6h" MetricWindowN7d MetricWindow = "7d" )
Defines values for MetricWindow.
func (MetricWindow) Valid ¶
func (e MetricWindow) Valid() bool
Valid indicates whether the value is a known member of the MetricWindow enum.
type MetricWindowRange ¶
type MetricWindowRange struct {
// From EXCLUSIVE: one `step_s` before the first timestamp in `t`. Nothing is sampled at `from` itself.
From int64 `json:"from"`
// To INCLUSIVE, and equal to the last timestamp in `t`.
To int64 `json:"to"`
}
MetricWindowRange The range covered, as `(from, to]`.
type MoneyAmount ¶
type MoneyAmount struct {
// Amount Amount in major units as an exact decimal string.
//
// Example: 312.40
Amount string `json:"amount"`
// Currency ISO 4217 alphabetic code. The platform bills in USD only.
Currency Currency `json:"currency"`
}
MoneyAmount A monetary amount as an exact decimal string in the currency's major unit. Money is never represented as a float (see `GpuPricing.perSecond`).
type NotFound ¶
type NotFound = ProblemDetails
NotFound RFC 9457 problem details. Every error response from this API uses this schema with media type `application/problem+json`. `type` is a URI that identifies the problem class and dereferences to its documentation; clients should switch on `type` (not `status` or `detail`, which are not stable identifiers). Additional members beyond those below may appear.
type Page ¶
type Page struct {
// NextCursor Cursor for the next page; null when there are no more items.
NextCursor *string `json:"nextCursor,omitempty"`
}
Page defines model for Page.
type PaymentRequired ¶
type PaymentRequired = ProblemDetails
PaymentRequired RFC 9457 problem details. Every error response from this API uses this schema with media type `application/problem+json`. `type` is a URI that identifies the problem class and dereferences to its documentation; clients should switch on `type` (not `status` or `detail`, which are not stable identifiers). Additional members beyond those below may appear.
type ProblemDetails ¶
type ProblemDetails struct {
// Detail Human-readable explanation specific to this occurrence.
//
// Example: No app 'img-gen' exists for the authenticated organization.
Detail *string `json:"detail,omitempty"`
// EndpointPath Extension member. Present on a `404` from task invocation when the app exists but does not declare the requested endpoint path; its presence distinguishes an unknown endpoint from an unknown app. Carries the rejected path.
//
//
// Example: generate
EndpointPath *string `json:"endpointPath,omitempty"`
// Errors Extension member. Present on validation failures (`422`); one entry per offending request field.
Errors *[]ProblemError `json:"errors,omitempty"`
// Instance URI reference identifying the specific occurrence (the request path).
//
// Example: /v1/apps/img-gen
Instance *string `json:"instance,omitempty"`
// RequestId Extension member. Correlation id for this request, echoed in the `X-Request-Id` response header; quote it when reporting problems.
RequestId *string `json:"requestId,omitempty"`
// Shortfall Extension member. Present on an `insufficient-credit` or a `credit-suspended` problem (`402`): the amount to add to the organization's balance before retrying. The request is unchanged by the refusal and succeeds as sent once the credit is there. Read this rather than parsing `detail`.
Shortfall *MoneyAmount `json:"shortfall,omitempty"`
// Status HTTP status code generated for this occurrence.
//
// Example: 404
Status int32 `json:"status"`
// Title Short, human-readable summary of the problem type (the standard HTTP status text). Stable for a given `type`; does not change from occurrence to occurrence.
//
//
// Example: Not Found
Title string `json:"title"`
// Type URI reference identifying the problem type. Dereferences to human-readable documentation. `about:blank` denotes "no semantics beyond the HTTP status".
//
//
// Example: https://docs.runware.ai/serverless/errors#not-found
Type string `json:"type"`
}
ProblemDetails RFC 9457 problem details. Every error response from this API uses this schema with media type `application/problem+json`. `type` is a URI that identifies the problem class and dereferences to its documentation; clients should switch on `type` (not `status` or `detail`, which are not stable identifiers). Additional members beyond those below may appear.
type ProblemError ¶
type ProblemError struct {
// ConfigPointer JSON Pointer (RFC 6901) to the offending field inside a document the request carried, rather than in the request body itself: a container source's `container.yaml`. On such a rejection `pointer` names where the archive sat in the request body and this member names the field inside the document. A rejection about the archive rather than the document carries no `configPointer`, because nothing was parsed.
//
//
// Example: /endpoints/0/path
ConfigPointer *string `json:"configPointer,omitempty"`
// Detail Human-readable reason this field was rejected.
//
// Example: is required
Detail string `json:"detail"`
// Pointer JSON Pointer (RFC 6901) to the offending field in the request body, e.g. `/configuration/maxWorkers`. Absent for non-body parameters.
//
//
// Example: /configuration/maxWorkers
Pointer *string `json:"pointer,omitempty"`
}
ProblemError A single field-level validation error within a ProblemDetails.
type QueryCatalog ¶
type QueryCatalog struct {
Logs []CatalogEntry `json:"logs"`
Metrics []CatalogEntry `json:"metrics"`
}
QueryCatalog defines model for QueryCatalog.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequiredLogDeployment ¶
type RequiredLogDeployment = AppId
RequiredLogDeployment Immutable app identifier. Unique among the authenticated organization's live apps: it cannot be changed after creation, and it becomes available again once the app it named reaches `deleted`.
type ReservedCapacity ¶
type ReservedCapacity struct {
// CalculatedAt The instant the counts describe.
CalculatedAt time.Time `json:"calculatedAt"`
// CommittedGpuCount Concurrent GPUs reserved at `calculatedAt`, across every effective term.
CommittedGpuCount int32 `json:"committedGpuCount"`
// CoveredGpuCount Reserved GPUs in use at `calculatedAt`.
CoveredGpuCount int32 `json:"coveredGpuCount"`
// CoveredGpuMilliseconds Reserved GPU time used over the period.
CoveredGpuMilliseconds int64 `json:"coveredGpuMilliseconds"`
// CoveredValue The covered time priced at the catalog rate. What pay-as-you-go would have charged for it, and so what the reservation saved.
CoveredValue MoneyAmount `json:"coveredValue"`
// From Inclusive start of the reported period, as resolved.
From time.Time `json:"from"`
// GpuType Public catalog code for a supported GPU type (e.g. `h100`, `rtx-pro-6000`). Must match an `id` returned by `GET /v1/gpu-types` (validated at request time against the catalog). This is not the internal database row UUID.
GpuType GpuTypeId `json:"gpuType"`
// PaygGpuMilliseconds GPU time in this scope over the period that the reservation did not cover.
PaygGpuMilliseconds int64 `json:"paygGpuMilliseconds"`
// PaygOverflowGpuCount Matching GPUs in use at `calculatedAt` above the reserved quantity. These are what a pay-as-you-go charge in this scope can be traced to.
PaygOverflowGpuCount int32 `json:"paygOverflowGpuCount"`
// PaygSpend Provisional overflow accrual, excluding finalization rounding and ledger adjustments.
PaygSpend MoneyAmount `json:"paygSpend"`
// Region The region a capacity commitment applies to. One value until app placement selects a region.
Region UsageRegion `json:"region"`
Terms []CommitmentTerm `json:"terms"`
// To Exclusive end of the reported period, as resolved.
To time.Time `json:"to"`
// UnusedGpuCount Reserved GPUs idle at `calculatedAt`. Charged for, because reserved capacity is a promise of access rather than a quantity of GPU time.
UnusedGpuCount int32 `json:"unusedGpuCount"`
}
ReservedCapacity One commitment scope — a GPU type in a region — with what it reserves, what is using it and what overflowed past it.
The counts belong to the scope rather than to a term, because two overlapping terms cover an allocation between them and neither can claim it alone.
The fixed commitment charge is not reported here. Serverless meters usage; the commerce system invoices that charge from the contract schedule.
type ResumeAppResponse ¶
type ResumeAppResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *App
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON402 the response for an HTTP 402 `application/problem+json` response
ApplicationproblemJSON402 *PaymentRequired
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseResumeAppResponse ¶
func ParseResumeAppResponse(rsp *http.Response) (*ResumeAppResponse, error)
ParseResumeAppResponse parses an HTTP response from a ResumeAppWithResponse call
func (ResumeAppResponse) ContentType ¶
func (r ResumeAppResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ResumeAppResponse) GetApplicationproblemJSON401 ¶
func (r ResumeAppResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ResumeAppResponse) GetApplicationproblemJSON402 ¶
func (r ResumeAppResponse) GetApplicationproblemJSON402() *PaymentRequired
GetApplicationproblemJSON402 returns the response for an HTTP 402 `application/problem+json` response
func (ResumeAppResponse) GetApplicationproblemJSON403 ¶
func (r ResumeAppResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ResumeAppResponse) GetApplicationproblemJSON404 ¶
func (r ResumeAppResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (ResumeAppResponse) GetApplicationproblemJSON409 ¶
func (r ResumeAppResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (ResumeAppResponse) GetApplicationproblemJSON422 ¶
func (r ResumeAppResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (ResumeAppResponse) GetApplicationproblemJSON503 ¶
func (r ResumeAppResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (ResumeAppResponse) GetBody ¶
func (r ResumeAppResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ResumeAppResponse) GetJSON202 ¶
func (r ResumeAppResponse) GetJSON202() *App
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (ResumeAppResponse) Status ¶
func (r ResumeAppResponse) Status() string
Status returns HTTPResponse.Status
func (ResumeAppResponse) StatusCode ¶
func (r ResumeAppResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Secret ¶
type Secret struct {
CreatedAt *time.Time `json:"createdAt,omitempty"`
Id openapi_types.UUID `json:"id"`
// Metadata Optional opaque metadata associated with the secret.
Metadata *map[string]interface{} `json:"metadata,omitempty"`
// Name Organization-scoped secret name. The shape matches `EnvironmentVariableName` and the `secrets.name` / `deployment_secrets.env_var_name` column CHECKs — one rule for the contract and the schema — because attached secrets are intended to be injected as environment variables once ADR-019 in-pod unseal lands.
// Names the platform sets on the serving container (`RUNTIME`, `DISABLE_NGINX`, `MLFLOW_MODELS_WORKERS`, `UVICORN_HOST`) are rejected with `422`: when injection exists, the deployer appends customer env after its own and kubelet resolves duplicates last-wins, so an accepted collision would silently replace a platform value. Same guard as plain environment variables; enforced by the server (not expressible as a pattern here).
Name SecretName `json:"name"`
// Type Kind of secret. Only the environment-variable variant (`generic`) is supported. Image-pull (`registry`) credentials are consumed by the kubelet before any container starts, so they cannot use the in-pod unseal path (ADR-019) and await their own decision.
Type SecretType `json:"type"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}
Secret Secret metadata. The encrypted value is never returned.
type SecretAttach ¶
type SecretAttach struct {
// EnvVarName Environment variable name the secret is injected as. Omit or null to use `secretName`; the server resolves and stores the final name. Same reserved-name rules as `SecretName` (`422` if reserved). The resolved name must also not collide with a plain environment variable key on this app (`422`).
EnvVarName *EnvironmentVariableName `json:"envVarName,omitempty"`
// SecretName Organization-scoped secret name. The shape matches `EnvironmentVariableName` and the `secrets.name` / `deployment_secrets.env_var_name` column CHECKs — one rule for the contract and the schema — because attached secrets are intended to be injected as environment variables once ADR-019 in-pod unseal lands.
// Names the platform sets on the serving container (`RUNTIME`, `DISABLE_NGINX`, `MLFLOW_MODELS_WORKERS`, `UVICORN_HOST`) are rejected with `422`: when injection exists, the deployer appends customer env after its own and kubelet resolves duplicates last-wins, so an accepted collision would silently replace a platform value. Same guard as plain environment variables; enforced by the server (not expressible as a pattern here).
SecretName SecretName `json:"secretName"`
}
SecretAttach Attach an organization secret to an app. The resolved name (`envVarName`, or `secretName` when omitted) is the environment variable the secret is injected as, and the next rollout carries the value into the worker. It must be unique among this app's secret attaches and must not collide with a plain environment variable key on the same app — both names land in the same pod env namespace. Reserved platform names are rejected as on `SecretName`.
type SecretAttachment ¶
type SecretAttachment struct {
CreatedAt *time.Time `json:"createdAt,omitempty"`
// EnvVarName Resolved environment variable name when it differs from `name`. Omitted when the secret name is used. Same reserved-name rules as `SecretName` when set.
EnvVarName *EnvironmentVariableName `json:"envVarName,omitempty"`
Id openapi_types.UUID `json:"id"`
// Metadata Optional opaque metadata associated with the secret.
Metadata *map[string]interface{} `json:"metadata,omitempty"`
// Name Organization-scoped secret name. The shape matches `EnvironmentVariableName` and the `secrets.name` / `deployment_secrets.env_var_name` column CHECKs — one rule for the contract and the schema — because attached secrets are intended to be injected as environment variables once ADR-019 in-pod unseal lands.
// Names the platform sets on the serving container (`RUNTIME`, `DISABLE_NGINX`, `MLFLOW_MODELS_WORKERS`, `UVICORN_HOST`) are rejected with `422`: when injection exists, the deployer appends customer env after its own and kubelet resolves duplicates last-wins, so an accepted collision would silently replace a platform value. Same guard as plain environment variables; enforced by the server (not expressible as a pattern here).
Name SecretName `json:"name"`
// Type Kind of secret. Only the environment-variable variant (`generic`) is supported. Image-pull (`registry`) credentials are consumed by the kubelet before any container starts, so they cannot use the in-pod unseal path (ADR-019) and await their own decision.
Type SecretType `json:"type"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}
SecretAttachment A secret attached to an app. The encrypted value is never returned. The database always stores the injected env var name; this response omits `envVarName` when it equals the secret `name` (no override).
type SecretCreate ¶
type SecretCreate struct {
Metadata *map[string]interface{} `json:"metadata,omitempty"`
// Name Organization-scoped secret name. The shape matches `EnvironmentVariableName` and the `secrets.name` / `deployment_secrets.env_var_name` column CHECKs — one rule for the contract and the schema — because attached secrets are intended to be injected as environment variables once ADR-019 in-pod unseal lands.
// Names the platform sets on the serving container (`RUNTIME`, `DISABLE_NGINX`, `MLFLOW_MODELS_WORKERS`, `UVICORN_HOST`) are rejected with `422`: when injection exists, the deployer appends customer env after its own and kubelet resolves duplicates last-wins, so an accepted collision would silently replace a platform value. Same guard as plain environment variables; enforced by the server (not expressible as a pattern here).
Name SecretName `json:"name"`
// Type Kind of secret. Only the environment-variable variant (`generic`) is supported. Image-pull (`registry`) credentials are consumed by the kubelet before any container starts, so they cannot use the in-pod unseal path (ADR-019) and await their own decision.
Type SecretType `json:"type"`
// Value Plain-text value; encrypted at rest by the platform. Capped at 64 KiB — Cloud KMS Encrypt's plaintext ceiling, and the reason the design needs no envelope encryption (ADR-019).
// `maxLength` is OpenAPI's string-length bound (character count), not a byte limit. Cloud KMS measures UTF-8 bytes, so the server also rejects a value whose UTF-8 encoding exceeds 65536 bytes with `422` — a rule this schema cannot express alone (multi-byte characters can pass `maxLength` and still overrun the KMS limit).
Value string `json:"value"`
}
SecretCreate defines model for SecretCreate.
type SecretName ¶
type SecretName = string
SecretName Organization-scoped secret name. The shape matches `EnvironmentVariableName` and the `secrets.name` / `deployment_secrets.env_var_name` column CHECKs — one rule for the contract and the schema — because attached secrets are intended to be injected as environment variables once ADR-019 in-pod unseal lands. Names the platform sets on the serving container (`RUNTIME`, `DISABLE_NGINX`, `MLFLOW_MODELS_WORKERS`, `UVICORN_HOST`) are rejected with `422`: when injection exists, the deployer appends customer env after its own and kubelet resolves duplicates last-wins, so an accepted collision would silently replace a platform value. Same guard as plain environment variables; enforced by the server (not expressible as a pattern here).
type SecretType ¶
type SecretType string
SecretType Kind of secret. Only the environment-variable variant (`generic`) is supported. Image-pull (`registry`) credentials are consumed by the kubelet before any container starts, so they cannot use the in-pod unseal path (ADR-019) and await their own decision.
const (
Generic SecretType = "generic"
)
Defines values for SecretType.
func (SecretType) Valid ¶
func (e SecretType) Valid() bool
Valid indicates whether the value is a known member of the SecretType enum.
type SecretUpdate ¶
type SecretUpdate struct {
// Metadata Omit to leave the stored metadata unchanged. Send an object (including `{}`) to replace it.
Metadata *map[string]interface{} `json:"metadata,omitempty"`
// Value Plain-text value; encrypted at rest by the platform. Same 64 KiB Cloud KMS plaintext ceiling and UTF-8 byte check as `SecretCreate.value`.
Value string `json:"value"`
}
SecretUpdate defines model for SecretUpdate.
type SelectorDeployment ¶
type SelectorDeployment = AppId
SelectorDeployment Immutable app identifier. Unique among the authenticated organization's live apps: it cannot be changed after creation, and it becomes available again once the app it named reaches `deleted`.
type SelectorEndpoint ¶
type SelectorEndpoint = openapi_types.UUID
SelectorEndpoint defines model for SelectorEndpoint.
type SelectorStatusClass ¶
type SelectorStatusClass string
SelectorStatusClass defines model for SelectorStatusClass.
const ( SelectorStatusClassN2xx SelectorStatusClass = "2xx" SelectorStatusClassN4xx SelectorStatusClass = "4xx" SelectorStatusClassN5xx SelectorStatusClass = "5xx" )
Defines values for SelectorStatusClass.
func (SelectorStatusClass) Valid ¶
func (e SelectorStatusClass) Valid() bool
Valid indicates whether the value is a known member of the SelectorStatusClass enum.
type SeriesEndpointId ¶
type SeriesEndpointId = []openapi_types.UUID
SeriesEndpointId defines model for SeriesEndpointId.
type ServiceUnavailable ¶
type ServiceUnavailable = ProblemDetails
ServiceUnavailable RFC 9457 problem details. Every error response from this API uses this schema with media type `application/problem+json`. `type` is a URI that identifies the problem class and dereferences to its documentation; clients should switch on `type` (not `status` or `detail`, which are not stable identifiers). Additional members beyond those below may appear.
type Source ¶
type Source struct {
// ByteLength Verified length of the archive in bytes.
ByteLength int64 `json:"byteLength"`
CreatedAt time.Time `json:"createdAt"`
Id SourceId `json:"id"`
// Sha256 Verified lowercase SHA-256 digest of the archive.
Sha256 string `json:"sha256"`
SourceType AppSourceType `json:"sourceType"`
}
Source An immutable source artifact: the archive a completed upload published, with the facts upload completion verified it under. It names no app, version, or entry point, so any number of versions across the organization's apps may reference it.
type SourceUpload ¶
type SourceUpload struct {
CreatedAt time.Time `json:"createdAt"`
DeclaredByteLength int64 `json:"declaredByteLength"`
ExpiresAt time.Time `json:"expiresAt"`
Id SourceUploadId `json:"id"`
// RejectionReason Reason completion rejected the archive, when state is `rejected`.
RejectionReason *string `json:"rejectionReason,omitempty"`
Sha256 string `json:"sha256"`
// SourceId The immutable source this upload published. Set once the upload is `ready`; it is what app create and source update name. Equal to `id`, so a retry of completion returns the same value.
SourceId *SourceId `json:"sourceId,omitempty"`
SourceType AppSourceType `json:"sourceType"`
State SourceUploadState `json:"state"`
UpdatedAt time.Time `json:"updatedAt"`
}
SourceUpload defines model for SourceUpload.
type SourceUploadCreate ¶
type SourceUploadCreate struct {
// DeclaredByteLength Exact archive size in bytes with a 10 MiB MVP limit.
DeclaredByteLength int64 `json:"declaredByteLength"`
// IdempotencyKey Client-generated key used to make session creation safe to retry.
IdempotencyKey string `json:"idempotencyKey"`
// Sha256 Lowercase SHA-256 digest of the complete archive.
Sha256 string `json:"sha256"`
SourceType AppSourceType `json:"sourceType"`
}
SourceUploadCreate defines model for SourceUploadCreate.
type SourceUploadCreation ¶
type SourceUploadCreation struct {
Transfer SourceUploadTransfer `json:"transfer"`
Upload SourceUpload `json:"upload"`
}
SourceUploadCreation defines model for SourceUploadCreation.
type SourceUploadId ¶
type SourceUploadId = openapi_types.UUID
SourceUploadId defines model for SourceUploadId.
type SourceUploadSinglePutTransfer ¶
type SourceUploadSinglePutTransfer struct {
// ExpiresAt Time after which the transfer instruction is no longer valid.
ExpiresAt time.Time `json:"expiresAt"`
// Headers Headers the client must include in the upload request.
Headers map[string]string `json:"headers"`
Method SourceUploadSinglePutTransferMethod `json:"method"`
Mode SourceUploadSinglePutTransferMode `json:"mode"`
// Url Short-lived URL for this upload's exact staging object.
Url string `json:"url"`
}
SourceUploadSinglePutTransfer defines model for SourceUploadSinglePutTransfer.
type SourceUploadSinglePutTransferMethod ¶
type SourceUploadSinglePutTransferMethod string
SourceUploadSinglePutTransferMethod defines model for SourceUploadSinglePutTransfer.Method.
const (
SourceUploadTransferMethodPut SourceUploadSinglePutTransferMethod = "PUT"
)
Defines values for SourceUploadSinglePutTransferMethod.
func (SourceUploadSinglePutTransferMethod) Valid ¶
func (e SourceUploadSinglePutTransferMethod) Valid() bool
Valid indicates whether the value is a known member of the SourceUploadSinglePutTransferMethod enum.
type SourceUploadSinglePutTransferMode ¶
type SourceUploadSinglePutTransferMode string
SourceUploadSinglePutTransferMode defines model for SourceUploadSinglePutTransfer.Mode.
const (
SourceUploadTransferModeSinglePut SourceUploadSinglePutTransferMode = "singlePut"
)
Defines values for SourceUploadSinglePutTransferMode.
func (SourceUploadSinglePutTransferMode) Valid ¶
func (e SourceUploadSinglePutTransferMode) Valid() bool
Valid indicates whether the value is a known member of the SourceUploadSinglePutTransferMode enum.
type SourceUploadState ¶
type SourceUploadState string
SourceUploadState defines model for SourceUploadState.
const ( SourceUploadStateDeleted SourceUploadState = "deleted" SourceUploadStateExpired SourceUploadState = "expired" SourceUploadStatePending SourceUploadState = "pending" SourceUploadStateReady SourceUploadState = "ready" SourceUploadStateRejected SourceUploadState = "rejected" )
Defines values for SourceUploadState.
func (SourceUploadState) Valid ¶
func (e SourceUploadState) Valid() bool
Valid indicates whether the value is a known member of the SourceUploadState enum.
type SourceUploadTransfer ¶
type SourceUploadTransfer struct {
// contains filtered or unexported fields
}
SourceUploadTransfer defines model for SourceUploadTransfer.
func (SourceUploadTransfer) AsSourceUploadSinglePutTransfer ¶
func (t SourceUploadTransfer) AsSourceUploadSinglePutTransfer() (SourceUploadSinglePutTransfer, error)
AsSourceUploadSinglePutTransfer returns the union data inside the SourceUploadTransfer as a SourceUploadSinglePutTransfer
func (SourceUploadTransfer) Discriminator ¶
func (t SourceUploadTransfer) Discriminator() (string, error)
func (*SourceUploadTransfer) FromSourceUploadSinglePutTransfer ¶
func (t *SourceUploadTransfer) FromSourceUploadSinglePutTransfer(v SourceUploadSinglePutTransfer) error
FromSourceUploadSinglePutTransfer overwrites any union data inside the SourceUploadTransfer as the provided SourceUploadSinglePutTransfer
func (SourceUploadTransfer) MarshalJSON ¶
func (t SourceUploadTransfer) MarshalJSON() ([]byte, error)
func (*SourceUploadTransfer) MergeSourceUploadSinglePutTransfer ¶
func (t *SourceUploadTransfer) MergeSourceUploadSinglePutTransfer(v SourceUploadSinglePutTransfer) error
MergeSourceUploadSinglePutTransfer performs a merge with any union data inside the SourceUploadTransfer, using the provided SourceUploadSinglePutTransfer
func (*SourceUploadTransfer) UnmarshalJSON ¶
func (t *SourceUploadTransfer) UnmarshalJSON(b []byte) error
func (SourceUploadTransfer) ValueByDiscriminator ¶
func (t SourceUploadTransfer) ValueByDiscriminator() (interface{}, error)
type StartAsyncTaskJSONRequestBody ¶
type StartAsyncTaskJSONRequestBody = TaskInvocation
StartAsyncTaskJSONRequestBody defines body for StartAsyncTask for application/json ContentType.
type StartAsyncTaskResponse ¶
type StartAsyncTaskResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *TaskAccepted
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseStartAsyncTaskResponse ¶
func ParseStartAsyncTaskResponse(rsp *http.Response) (*StartAsyncTaskResponse, error)
ParseStartAsyncTaskResponse parses an HTTP response from a StartAsyncTaskWithResponse call
func (StartAsyncTaskResponse) ContentType ¶
func (r StartAsyncTaskResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (StartAsyncTaskResponse) GetApplicationproblemJSON400 ¶
func (r StartAsyncTaskResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (StartAsyncTaskResponse) GetApplicationproblemJSON401 ¶
func (r StartAsyncTaskResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (StartAsyncTaskResponse) GetApplicationproblemJSON403 ¶
func (r StartAsyncTaskResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (StartAsyncTaskResponse) GetApplicationproblemJSON404 ¶
func (r StartAsyncTaskResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (StartAsyncTaskResponse) GetApplicationproblemJSON409 ¶
func (r StartAsyncTaskResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (StartAsyncTaskResponse) GetApplicationproblemJSON422 ¶
func (r StartAsyncTaskResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (StartAsyncTaskResponse) GetApplicationproblemJSON503 ¶
func (r StartAsyncTaskResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (StartAsyncTaskResponse) GetBody ¶
func (r StartAsyncTaskResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (StartAsyncTaskResponse) GetJSON202 ¶
func (r StartAsyncTaskResponse) GetJSON202() *TaskAccepted
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (StartAsyncTaskResponse) Status ¶
func (r StartAsyncTaskResponse) Status() string
Status returns HTTPResponse.Status
func (StartAsyncTaskResponse) StatusCode ¶
func (r StartAsyncTaskResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StartSyncTaskJSONRequestBody ¶
type StartSyncTaskJSONRequestBody = TaskInvocation
StartSyncTaskJSONRequestBody defines body for StartSyncTask for application/json ContentType.
type StartSyncTaskResponse ¶
type StartSyncTaskResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Task
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *TaskAccepted
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseStartSyncTaskResponse ¶
func ParseStartSyncTaskResponse(rsp *http.Response) (*StartSyncTaskResponse, error)
ParseStartSyncTaskResponse parses an HTTP response from a StartSyncTaskWithResponse call
func (StartSyncTaskResponse) ContentType ¶
func (r StartSyncTaskResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (StartSyncTaskResponse) GetApplicationproblemJSON400 ¶
func (r StartSyncTaskResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (StartSyncTaskResponse) GetApplicationproblemJSON401 ¶
func (r StartSyncTaskResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (StartSyncTaskResponse) GetApplicationproblemJSON403 ¶
func (r StartSyncTaskResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (StartSyncTaskResponse) GetApplicationproblemJSON404 ¶
func (r StartSyncTaskResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (StartSyncTaskResponse) GetApplicationproblemJSON409 ¶
func (r StartSyncTaskResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (StartSyncTaskResponse) GetApplicationproblemJSON422 ¶
func (r StartSyncTaskResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (StartSyncTaskResponse) GetApplicationproblemJSON503 ¶
func (r StartSyncTaskResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (StartSyncTaskResponse) GetBody ¶
func (r StartSyncTaskResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (StartSyncTaskResponse) GetJSON200 ¶
func (r StartSyncTaskResponse) GetJSON200() *Task
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (StartSyncTaskResponse) GetJSON202 ¶
func (r StartSyncTaskResponse) GetJSON202() *TaskAccepted
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (StartSyncTaskResponse) Status ¶
func (r StartSyncTaskResponse) Status() string
Status returns HTTPResponse.Status
func (StartSyncTaskResponse) StatusCode ¶
func (r StartSyncTaskResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StopAppResponse ¶
type StopAppResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *App
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseStopAppResponse ¶
func ParseStopAppResponse(rsp *http.Response) (*StopAppResponse, error)
ParseStopAppResponse parses an HTTP response from a StopAppWithResponse call
func (StopAppResponse) ContentType ¶
func (r StopAppResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (StopAppResponse) GetApplicationproblemJSON401 ¶
func (r StopAppResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (StopAppResponse) GetApplicationproblemJSON403 ¶
func (r StopAppResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (StopAppResponse) GetApplicationproblemJSON404 ¶
func (r StopAppResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (StopAppResponse) GetApplicationproblemJSON409 ¶
func (r StopAppResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (StopAppResponse) GetApplicationproblemJSON503 ¶
func (r StopAppResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (StopAppResponse) GetBody ¶
func (r StopAppResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (StopAppResponse) GetJSON202 ¶
func (r StopAppResponse) GetJSON202() *App
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (StopAppResponse) Status ¶
func (r StopAppResponse) Status() string
Status returns HTTPResponse.Status
func (StopAppResponse) StatusCode ¶
func (r StopAppResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TailLogEntriesParams ¶
type TailLogEntriesParams struct {
// Deployment App whose new log entries are streamed.
Deployment RequiredLogDeployment `form:"deployment" json:"deployment"`
}
TailLogEntriesParams defines parameters for TailLogEntries.
type TailLogEntriesResponse ¶
type TailLogEntriesResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// ApplicationproblemJSON500 the response for an HTTP 500 `application/problem+json` response
ApplicationproblemJSON500 *InternalServerError
// ApplicationproblemJSON502 the response for an HTTP 502 `application/problem+json` response
ApplicationproblemJSON502 *BadGateway
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
// ApplicationproblemJSON504 the response for an HTTP 504 `application/problem+json` response
ApplicationproblemJSON504 *GatewayTimeout
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *TailLogEntriesResponse429Headers
}
func ParseTailLogEntriesResponse ¶
func ParseTailLogEntriesResponse(rsp *http.Response) (*TailLogEntriesResponse, error)
ParseTailLogEntriesResponse parses an HTTP response from a TailLogEntriesWithResponse call
func (TailLogEntriesResponse) ContentType ¶
func (r TailLogEntriesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (TailLogEntriesResponse) GetApplicationproblemJSON400 ¶
func (r TailLogEntriesResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (TailLogEntriesResponse) GetApplicationproblemJSON401 ¶
func (r TailLogEntriesResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (TailLogEntriesResponse) GetApplicationproblemJSON403 ¶
func (r TailLogEntriesResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (TailLogEntriesResponse) GetApplicationproblemJSON404 ¶
func (r TailLogEntriesResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (TailLogEntriesResponse) GetApplicationproblemJSON422 ¶
func (r TailLogEntriesResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (TailLogEntriesResponse) GetApplicationproblemJSON429 ¶
func (r TailLogEntriesResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (TailLogEntriesResponse) GetApplicationproblemJSON500 ¶
func (r TailLogEntriesResponse) GetApplicationproblemJSON500() *InternalServerError
GetApplicationproblemJSON500 returns the response for an HTTP 500 `application/problem+json` response
func (TailLogEntriesResponse) GetApplicationproblemJSON502 ¶
func (r TailLogEntriesResponse) GetApplicationproblemJSON502() *BadGateway
GetApplicationproblemJSON502 returns the response for an HTTP 502 `application/problem+json` response
func (TailLogEntriesResponse) GetApplicationproblemJSON503 ¶
func (r TailLogEntriesResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (TailLogEntriesResponse) GetApplicationproblemJSON504 ¶
func (r TailLogEntriesResponse) GetApplicationproblemJSON504() *GatewayTimeout
GetApplicationproblemJSON504 returns the response for an HTTP 504 `application/problem+json` response
func (TailLogEntriesResponse) GetBody ¶
func (r TailLogEntriesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (TailLogEntriesResponse) Status ¶
func (r TailLogEntriesResponse) Status() string
Status returns HTTPResponse.Status
func (TailLogEntriesResponse) StatusCode ¶
func (r TailLogEntriesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TailLogEntriesResponse429Headers ¶
type TailLogEntriesResponse429Headers struct {
RetryAfter int32
}
TailLogEntriesResponse429Headers the declared response headers of an HTTP 429 response for TailLogEntries
type Task ¶
type Task struct {
// AppId Immutable app identifier. Unique among the authenticated organization's live apps: it cannot be changed after creation, and it becomes available again once the app it named reaches `deleted`.
AppId AppId `json:"appId"`
CompletedAt *time.Time `json:"completedAt,omitempty"`
CreatedAt time.Time `json:"createdAt"`
// EndpointPath Path of the endpoint to route the task to: a bare lowercase segment such as `generate`, with no leading slash.
EndpointPath EndpointPath `json:"endpointPath"`
// Error Failure detail when status is `failed`; null otherwise.
Error *string `json:"error,omitempty"`
// Id Task identifier, supplied by the caller when the task was submitted.
Id string `json:"id"`
// Output Inference result payload on success; null otherwise. May be any JSON value, including an object, array, string, number, boolean, or null.
Output interface{} `json:"output,omitempty"`
Status TaskStatus `json:"status"`
}
Task defines model for Task.
type TaskId ¶
type TaskId = openapi_types.UUID
TaskId Client-generated task identifier, canonical lowercase UUID. One id is one task: resubmitting it is answered with the task it already names rather than starting a second, so a request whose response was lost can be sent again without paying for the work twice. Reusing an id for a different request returns the first task, so the id is the caller's to keep unique.
type TaskInvocation ¶
type TaskInvocation struct {
// Payload The body the endpoint's handler receives, validated against the endpoint's declared input schema. An endpoint that declares none takes it unvalidated.
Payload map[string]interface{} `json:"payload"`
// TaskId Client-generated task identifier, canonical lowercase UUID. One id is one task: resubmitting it is answered with the task it already names rather than starting a second, so a request whose response was lost can be sent again without paying for the work twice. Reusing an id for a different request returns the first task, so the id is the caller's to keep unique.
TaskId TaskId `json:"taskId"`
}
TaskInvocation The request body for both invoke routes. The endpoint's own input schema describes `payload`, never the whole body, so no platform field can collide with one of the app's own. Unknown top-level members are rejected rather than ignored: the envelope is the platform's to extend, and silently accepting a stray member would make a later addition breaking.
type TaskStatus ¶
type TaskStatus string
TaskStatus defines model for TaskStatus.
const ( TaskStatusCompleted TaskStatus = "completed" TaskStatusFailed TaskStatus = "failed" TaskStatusPending TaskStatus = "pending" )
Defines values for TaskStatus.
func (TaskStatus) Valid ¶
func (e TaskStatus) Valid() bool
Valid indicates whether the value is a known member of the TaskStatus enum.
type TooManyRequests ¶
type TooManyRequests = ProblemDetails
TooManyRequests RFC 9457 problem details. Every error response from this API uses this schema with media type `application/problem+json`. `type` is a URI that identifies the problem class and dereferences to its documentation; clients should switch on `type` (not `status` or `detail`, which are not stable identifiers). Additional members beyond those below may appear.
type TriggeredBy ¶
type TriggeredBy struct {
DisplayName string `json:"displayName"`
Id openapi_types.UUID `json:"id"`
// Kind Whether the actor is a user (JWT) or an API key.
Kind TriggeredByKind `json:"kind"`
}
TriggeredBy Who performed an action — the authenticated user (JWT) or the API key. `kind` says which, so `id` (that actor's UUID) is resolvable to the right thing; `displayName` is its name captured at write time, so it renders as it was even if the user or key is later renamed. Used as `Build.triggeredBy` and `Version.author`.
type TriggeredByKind ¶
type TriggeredByKind string
TriggeredByKind Whether the actor is a user (JWT) or an API key.
const ( ApiKey TriggeredByKind = "apiKey" User TriggeredByKind = "user" )
Defines values for TriggeredByKind.
func (TriggeredByKind) Valid ¶
func (e TriggeredByKind) Valid() bool
Valid indicates whether the value is a known member of the TriggeredByKind enum.
type Unauthorized ¶
type Unauthorized = ProblemDetails
Unauthorized RFC 9457 problem details. Every error response from this API uses this schema with media type `application/problem+json`. `type` is a URI that identifies the problem class and dereferences to its documentation; clients should switch on `type` (not `status` or `detail`, which are not stable identifiers). Additional members beyond those below may appear.
type UnfavoriteAppResponse ¶
type UnfavoriteAppResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *App
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseUnfavoriteAppResponse ¶
func ParseUnfavoriteAppResponse(rsp *http.Response) (*UnfavoriteAppResponse, error)
ParseUnfavoriteAppResponse parses an HTTP response from a UnfavoriteAppWithResponse call
func (UnfavoriteAppResponse) ContentType ¶
func (r UnfavoriteAppResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UnfavoriteAppResponse) GetApplicationproblemJSON401 ¶
func (r UnfavoriteAppResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UnfavoriteAppResponse) GetApplicationproblemJSON403 ¶
func (r UnfavoriteAppResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (UnfavoriteAppResponse) GetApplicationproblemJSON404 ¶
func (r UnfavoriteAppResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (UnfavoriteAppResponse) GetApplicationproblemJSON503 ¶
func (r UnfavoriteAppResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (UnfavoriteAppResponse) GetBody ¶
func (r UnfavoriteAppResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UnfavoriteAppResponse) GetJSON200 ¶
func (r UnfavoriteAppResponse) GetJSON200() *App
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UnfavoriteAppResponse) Status ¶
func (r UnfavoriteAppResponse) Status() string
Status returns HTTPResponse.Status
func (UnfavoriteAppResponse) StatusCode ¶
func (r UnfavoriteAppResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateAppEnvironmentVariableJSONRequestBody ¶
type UpdateAppEnvironmentVariableJSONRequestBody = EnvironmentVariableUpdate
UpdateAppEnvironmentVariableJSONRequestBody defines body for UpdateAppEnvironmentVariable for application/json ContentType.
type UpdateAppEnvironmentVariableResponse ¶
type UpdateAppEnvironmentVariableResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *EnvironmentVariable
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseUpdateAppEnvironmentVariableResponse ¶
func ParseUpdateAppEnvironmentVariableResponse(rsp *http.Response) (*UpdateAppEnvironmentVariableResponse, error)
ParseUpdateAppEnvironmentVariableResponse parses an HTTP response from a UpdateAppEnvironmentVariableWithResponse call
func (UpdateAppEnvironmentVariableResponse) ContentType ¶
func (r UpdateAppEnvironmentVariableResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateAppEnvironmentVariableResponse) GetApplicationproblemJSON400 ¶
func (r UpdateAppEnvironmentVariableResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (UpdateAppEnvironmentVariableResponse) GetApplicationproblemJSON401 ¶
func (r UpdateAppEnvironmentVariableResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UpdateAppEnvironmentVariableResponse) GetApplicationproblemJSON403 ¶
func (r UpdateAppEnvironmentVariableResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (UpdateAppEnvironmentVariableResponse) GetApplicationproblemJSON404 ¶
func (r UpdateAppEnvironmentVariableResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (UpdateAppEnvironmentVariableResponse) GetApplicationproblemJSON409 ¶
func (r UpdateAppEnvironmentVariableResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (UpdateAppEnvironmentVariableResponse) GetApplicationproblemJSON422 ¶
func (r UpdateAppEnvironmentVariableResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (UpdateAppEnvironmentVariableResponse) GetApplicationproblemJSON503 ¶
func (r UpdateAppEnvironmentVariableResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (UpdateAppEnvironmentVariableResponse) GetBody ¶
func (r UpdateAppEnvironmentVariableResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateAppEnvironmentVariableResponse) GetJSON200 ¶
func (r UpdateAppEnvironmentVariableResponse) GetJSON200() *EnvironmentVariable
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateAppEnvironmentVariableResponse) Status ¶
func (r UpdateAppEnvironmentVariableResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateAppEnvironmentVariableResponse) StatusCode ¶
func (r UpdateAppEnvironmentVariableResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateAppJSONRequestBody ¶
type UpdateAppJSONRequestBody = AppUpdate
UpdateAppJSONRequestBody defines body for UpdateApp for application/json ContentType.
type UpdateAppResponse ¶
type UpdateAppResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *App
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON402 the response for an HTTP 402 `application/problem+json` response
ApplicationproblemJSON402 *PaymentRequired
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Conflict
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseUpdateAppResponse ¶
func ParseUpdateAppResponse(rsp *http.Response) (*UpdateAppResponse, error)
ParseUpdateAppResponse parses an HTTP response from a UpdateAppWithResponse call
func (UpdateAppResponse) ContentType ¶
func (r UpdateAppResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateAppResponse) GetApplicationproblemJSON400 ¶
func (r UpdateAppResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (UpdateAppResponse) GetApplicationproblemJSON401 ¶
func (r UpdateAppResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UpdateAppResponse) GetApplicationproblemJSON402 ¶
func (r UpdateAppResponse) GetApplicationproblemJSON402() *PaymentRequired
GetApplicationproblemJSON402 returns the response for an HTTP 402 `application/problem+json` response
func (UpdateAppResponse) GetApplicationproblemJSON403 ¶
func (r UpdateAppResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (UpdateAppResponse) GetApplicationproblemJSON404 ¶
func (r UpdateAppResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (UpdateAppResponse) GetApplicationproblemJSON409 ¶
func (r UpdateAppResponse) GetApplicationproblemJSON409() *Conflict
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (UpdateAppResponse) GetApplicationproblemJSON422 ¶
func (r UpdateAppResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (UpdateAppResponse) GetApplicationproblemJSON503 ¶
func (r UpdateAppResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (UpdateAppResponse) GetBody ¶
func (r UpdateAppResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateAppResponse) GetJSON200 ¶
func (r UpdateAppResponse) GetJSON200() *App
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateAppResponse) Status ¶
func (r UpdateAppResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateAppResponse) StatusCode ¶
func (r UpdateAppResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateSecretJSONRequestBody ¶
type UpdateSecretJSONRequestBody = SecretUpdate
UpdateSecretJSONRequestBody defines body for UpdateSecret for application/json ContentType.
type UpdateSecretResponse ¶
type UpdateSecretResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Secret
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *ValidationError
// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseUpdateSecretResponse ¶
func ParseUpdateSecretResponse(rsp *http.Response) (*UpdateSecretResponse, error)
ParseUpdateSecretResponse parses an HTTP response from a UpdateSecretWithResponse call
func (UpdateSecretResponse) ContentType ¶
func (r UpdateSecretResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateSecretResponse) GetApplicationproblemJSON400 ¶
func (r UpdateSecretResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (UpdateSecretResponse) GetApplicationproblemJSON401 ¶
func (r UpdateSecretResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UpdateSecretResponse) GetApplicationproblemJSON403 ¶
func (r UpdateSecretResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (UpdateSecretResponse) GetApplicationproblemJSON404 ¶
func (r UpdateSecretResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (UpdateSecretResponse) GetApplicationproblemJSON422 ¶
func (r UpdateSecretResponse) GetApplicationproblemJSON422() *ValidationError
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (UpdateSecretResponse) GetApplicationproblemJSON503 ¶
func (r UpdateSecretResponse) GetApplicationproblemJSON503() *ServiceUnavailable
GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response
func (UpdateSecretResponse) GetBody ¶
func (r UpdateSecretResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateSecretResponse) GetJSON200 ¶
func (r UpdateSecretResponse) GetJSON200() *Secret
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateSecretResponse) Status ¶
func (r UpdateSecretResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateSecretResponse) StatusCode ¶
func (r UpdateSecretResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UsageBucket ¶
type UsageBucket struct {
// AppId Present when grouped by `app`.
AppId *AppId `json:"appId,omitempty"`
// Coverage Present when grouped by `coverage`.
Coverage *UsageCoverage `json:"coverage,omitempty"`
// Day UTC calendar day. Present when grouped by `day`. A span crossing midnight is divided between the two days it ran on.
Day *openapi_types.Date `json:"day,omitempty"`
// GpuMilliseconds Billable GPU time, summed over each GPU separately. A worker holding four GPUs for one second contributes four thousand.
GpuMilliseconds int64 `json:"gpuMilliseconds"`
// GpuType Present when grouped by `gpuType`.
GpuType *GpuTypeId `json:"gpuType,omitempty"`
// PaygEquivalentValue The same time priced at the catalog rate, whatever covered it. The difference from `paygSpend` is what reserved capacity saved.
PaygEquivalentValue MoneyAmount `json:"paygEquivalentValue"`
// PaygSpend Provisional pay-as-you-go accrual for this time, excluding finalization rounding and ledger adjustments. Zero for time a commitment covered.
PaygSpend MoneyAmount `json:"paygSpend"`
}
UsageBucket Usage that fell into one grouping key. A dimension appears only when it was requested, so a bucket never implies a grouping the caller did not ask for.
type UsageCoverage ¶
type UsageCoverage string
UsageCoverage Which commercial capacity paid for a span of GPU time. `commitment` is covered by reserved capacity and collects nothing from pay-as-you-go; `payg` is concurrency above the commitment, or usage with no commitment behind it.
const ( Commitment UsageCoverage = "commitment" Payg UsageCoverage = "payg" )
Defines values for UsageCoverage.
func (UsageCoverage) Valid ¶
func (e UsageCoverage) Valid() bool
Valid indicates whether the value is a known member of the UsageCoverage enum.
type UsageDimension ¶
type UsageDimension string
UsageDimension One grouping a usage summary can be aggregated by.
const ( UsageDimensionApp UsageDimension = "app" UsageDimensionCoverage UsageDimension = "coverage" UsageDimensionDay UsageDimension = "day" UsageDimensionGpuType UsageDimension = "gpuType" )
Defines values for UsageDimension.
func (UsageDimension) Valid ¶
func (e UsageDimension) Valid() bool
Valid indicates whether the value is a known member of the UsageDimension enum.
type UsageEvent ¶
type UsageEvent struct {
// AppId Immutable app identifier. Unique among the authenticated organization's live apps: it cannot be changed after creation, and it becomes available again once the app it named reaches `deleted`.
AppId AppId `json:"appId"`
// CreatedAt When the event was recorded. Audit only — may lag `occurredAt`.
CreatedAt *time.Time `json:"createdAt,omitempty"`
// EventType Status the worker transitioned into. The ledger emits a subset of `WorkerStatus` — `busy` never appears (queue occupancy, not a pod lifecycle transition).
EventType WorkerStatus `json:"eventType"`
GpuCount int32 `json:"gpuCount"`
// GpuType GPU type the worker held at the transition. Absent when the worker held no GPU.
GpuType *GpuTypeId `json:"gpuType,omitempty"`
Id openapi_types.UUID `json:"id"`
// OccurredAt When the transition happened. This is the event time the `from` and `to` filters apply to, and the field to bill on.
OccurredAt time.Time `json:"occurredAt"`
// PricePerSecond Catalog price per GPU per second in force at `occurredAt`, resolved from the catalog history. Absent when `gpuType` is absent or the catalog history has no applicable price.
//
// This is the positive pay-as-you-go rate whatever covered the time. Reserved capacity is not a discount on it: coverage is reported by `GET /v1/usage/summary` and never by a rate of zero.
PricePerSecond *MoneyAmount `json:"pricePerSecond,omitempty"`
WorkerId openapi_types.UUID `json:"workerId"`
}
UsageEvent defines model for UsageEvent.
type UsageRegion ¶
type UsageRegion string
UsageRegion The region a capacity commitment applies to. One value until app placement selects a region.
const (
Default UsageRegion = "default"
)
Defines values for UsageRegion.
func (UsageRegion) Valid ¶
func (e UsageRegion) Valid() bool
Valid indicates whether the value is a known member of the UsageRegion enum.
type UsageSummary ¶
type UsageSummary struct {
Buckets []UsageBucket `json:"buckets"`
// CalculatedAt The instant the figures describe.
CalculatedAt time.Time `json:"calculatedAt"`
// From Inclusive start of the reported window, as resolved.
From time.Time `json:"from"`
// To Exclusive end of the reported window, as resolved.
To time.Time `json:"to"`
// Total The whole window with no grouping. It carries no dimension fields, and it always equals the sum of `buckets`.
Total UsageBucket `json:"total"`
}
UsageSummary Aggregated usage for one half-open window. Display amounts carry fractions smaller than one ledger unit across buckets in response order, so their sum equals `total`.
type ValidationError ¶
type ValidationError = ProblemDetails
ValidationError RFC 9457 problem details. Every error response from this API uses this schema with media type `application/problem+json`. `type` is a URI that identifies the problem class and dereferences to its documentation; clients should switch on `type` (not `status` or `detail`, which are not stable identifiers). Additional members beyond those below may appear.
type Version ¶
type Version struct {
// AppId Immutable app identifier. Unique among the authenticated organization's live apps: it cannot be changed after creation, and it becomes available again once the app it named reaches `deleted`.
AppId AppId `json:"appId"`
// Author Who created this version — the authenticated user (JWT) or the API key. `displayName` is the name captured at write time.
Author *TriggeredBy `json:"author,omitempty"`
// BuildDurationMs Wall-clock milliseconds of the named build (`completedAt - createdAt` on that build). Null while the build is running or when no completion time is available. Bytes and units are not included; this is a raw millisecond count.
BuildDurationMs *int64 `json:"buildDurationMs,omitempty"`
// BuildId The build that produced this version's image. Both source types build — a `code` source bakes an image around a submitted codebase, a `container` source builds the customer's own wrapper Dockerfile. A version created by an update carries the image, and therefore this build, forward.
BuildId *openapi_types.UUID `json:"buildId,omitempty"`
// Changes Structured diff against the previous version. Null on version 1.
Changes *VersionChanges `json:"changes,omitempty"`
CreatedAt time.Time `json:"createdAt"`
// GpuType Preferred GPU type of this version, taken from the config snapshot.
GpuType *GpuTypeId `json:"gpuType,omitempty"`
Id openapi_types.UUID `json:"id"`
// VersionNumber Monotonically increasing per app.
VersionNumber int32 `json:"versionNumber"`
}
Version An immutable record of what to deploy. One is created with the app and one on every update, so a rollout always names a version rather than reading configuration that may since have changed. `listVersions` and `getVersion` return this same shape. The version internally pins the exact image digest its build pushed, and everything the version references — the built image and the submitted source — is retained for the life of the version. Computed fields:
`buildDurationMs` is the wall-clock duration of the build this version names. Null while the build is running or when no completion time is available. A config-only update carries the image — and therefore this duration — forward.
`changes` is the structured diff against the previous version. Null on version 1 (no predecessor). A name-only update still inserts a version; `changes` is then present with `imageChanged` false and no field diffs.
type VersionChanges ¶
type VersionChanges struct {
// Endpoints Keys added, removed, or changed between consecutive versions. For environment variables, `changed` is keys whose *value* changed (the value itself is never returned). For endpoints the key is the path; for volumes it is `mountPath`. `changed` is omitted on those two (a path either exists or does not).
Endpoints *VersionKeySetDiff `json:"endpoints,omitempty"`
// EnvironmentVariables Keys added, removed, or changed between consecutive versions. For environment variables, `changed` is keys whose *value* changed (the value itself is never returned). For endpoints the key is the path; for volumes it is `mountPath`. `changed` is omitted on those two (a path either exists or does not).
EnvironmentVariables *VersionKeySetDiff `json:"environmentVariables,omitempty"`
// ImageChanged True when this version names a different image than the previous one (`buildId` or `imageRef` changed). False for a config-only update, which carries the image forward.
ImageChanged bool `json:"imageChanged"`
// Volumes Keys added, removed, or changed between consecutive versions. For environment variables, `changed` is keys whose *value* changed (the value itself is never returned). For endpoints the key is the path; for volumes it is `mountPath`. `changed` is omitted on those two (a path either exists or does not).
Volumes *VersionKeySetDiff `json:"volumes,omitempty"`
WorkerConfig *[]VersionConfigChange `json:"workerConfig,omitempty"`
}
VersionChanges How this version differs from the previous one. Environment-variable *values* never appear — only keys — so a secret-bearing env var cannot leak through the versions list. Numeric worker-config fields are rendered as decimal-free integer strings (the same spelling the event log uses). Empty collections are omitted: a name-only update is `{ "imageChanged": false }`.
type VersionConfigChange ¶
type VersionConfigChange struct {
Field string `json:"field"`
From *string `json:"from"`
To *string `json:"to"`
}
VersionConfigChange One worker-config field that changed. `field` is the public JSON name (`gpuType`, `minWorkers`, `idleTtlSecs`, …). `from` / `to` are strings; null means the field was unset on that side.
type VersionKeySetDiff ¶
type VersionKeySetDiff struct {
Added *[]string `json:"added,omitempty"`
Changed *[]string `json:"changed,omitempty"`
Removed *[]string `json:"removed,omitempty"`
}
VersionKeySetDiff Keys added, removed, or changed between consecutive versions. For environment variables, `changed` is keys whose *value* changed (the value itself is never returned). For endpoints the key is the path; for volumes it is `mountPath`. `changed` is omitted on those two (a path either exists or does not).
type Worker ¶
type Worker struct {
// AppId Immutable app identifier. Unique among the authenticated organization's live apps: it cannot be changed after creation, and it becomes available again once the app it named reaches `deleted`.
AppId AppId `json:"appId"`
// CreatedAt Pod creation time (`metadata.creationTimestamp`), not insert time. It is also the start of the worker's uptime.
CreatedAt time.Time `json:"createdAt"`
// GpuAvailability How the catalog currently provisions this worker's `gpuType`. Omitted when there is no `gpuType`, or when the catalog no longer holds the code. Unlike `gpuType` this is read now rather than snapshotted, so it tells you how that GPU is supplied today, not how it was supplied when the worker started.
GpuAvailability *GpuAvailability `json:"gpuAvailability,omitempty"`
// GpuCount GPUs attached to this worker at observation time. Zero means the snapshot is unknown: the worker is still unscheduled, or a terminal observation could not read a GPU pair. A known snapshot is `>= 1` and travels with `gpuType`. An empty pair is incomplete, not a CPU worker. CPU workloads are not supported.
GpuCount int32 `json:"gpuCount"`
// GpuType GPU catalog code snapshotted at observation time. Omitted until a GPU snapshot exists (the worker is still unscheduled, or the observation could not read a type). Not a CPU-worker marker; CPU workloads are not supported.
GpuType *GpuTypeId `json:"gpuType,omitempty"`
Id openapi_types.UUID `json:"id"`
// LastSeenAt Worker-reported liveness. Omitted until the worker reports; stays absent until a heartbeat path exists (phase 2).
LastSeenAt *time.Time `json:"lastSeenAt,omitempty"`
// NodeName Kubernetes node the pod is scheduled on. Omitted while still pending.
NodeName *string `json:"nodeName,omitempty"`
PodName string `json:"podName"`
// Status Worker lifecycle status. Also the type of `UsageEvent.eventType`, which records a ledger subset of these states (see that field — `busy` never appears there). `unhealthy` means the pod exists but failed to become or stay ready, not an intentional drain or stop.
Status WorkerStatus `json:"status"`
// StatusOccurredAt When the worker entered its current status. For a `stopped` worker this is when it stopped, so it is also the end of the worker's uptime.
StatusOccurredAt time.Time `json:"statusOccurredAt"`
// StatusReason Kubernetes-facing reason for the current status when unhealthy or otherwise notable (e.g. `ImagePullBackOff`, `CrashLoopBackOff`).
StatusReason *string `json:"statusReason,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
VersionId openapi_types.UUID `json:"versionId"`
}
Worker A worker instance observed from Kubernetes. Read-only runtime state written by the reconciler; `id` is the pod UID.
Address a worker by `id`, which is stable for the life of the pod, and show `podName`, which is the name the same pod has in the cluster. There is no separate short identifier.
Uptime is derived, not carried: a worker has been up from `createdAt` until `statusOccurredAt` once its `status` is `stopped`, and until now before that.
type WorkerConfig ¶
type WorkerConfig struct {
// AppId Immutable app identifier. Unique among the authenticated organization's live apps: it cannot be changed after creation, and it becomes available again once the app it named reaches `deleted`.
AppId AppId `json:"appId"`
// AvailableWorkersPct Idle workers held above current demand, as a percentage of that demand, rounded up. Null or 0 means no buffer. When both buffers are set the larger of the two applies. The buffer applies only while the queue is non-empty: an idle app still scales to `minWorkers`.
AvailableWorkersPct *int32 `json:"availableWorkersPct,omitempty"`
// ComputeType Worker compute class. GPU is the only supported value. CPU workloads are not supported.
ComputeType ComputeType `json:"computeType"`
CreatedAt *time.Time `json:"createdAt,omitempty"`
// FallbackGpuType Secondary GPU type used if the preferred type is unavailable.
FallbackGpuType *GpuTypeId `json:"fallbackGpuType,omitempty"`
// GpuType Preferred GPU type. Absent (or null) only on historical apps created before a GPU type was required.
GpuType *GpuTypeId `json:"gpuType,omitempty"`
// GpusPerWorker GPUs granted to one worker pod. Create and update accept only the group sizes the cluster grants indivisibly, since a worker holds its GPUs as one such group. Historical apps may contain another value.
GpusPerWorker int32 `json:"gpusPerWorker"`
Id openapi_types.UUID `json:"id"`
// IdleTtlSecs Seconds a worker can sit idle before the Scaler removes it.
IdleTtlSecs int32 `json:"idleTtlSecs"`
MaxWorkers int32 `json:"maxWorkers"`
// MinAvailableWorkers Idle workers held above current demand, so a burst does not wait for a cold start. Null or 0 means no buffer. The buffer applies only while the queue is non-empty: an idle app still scales to `minWorkers`. A buffer below about a tenth of current demand is not added while demand holds steady; `availableWorkersPct` is not subject to that.
MinAvailableWorkers *int32 `json:"minAvailableWorkers,omitempty"`
// MinWorkers Floor for scale-down; 0 = scale to zero.
MinWorkers int32 `json:"minWorkers"`
// ScalingDelaySecs Cooldown between consecutive scaling decisions.
ScalingDelaySecs int32 `json:"scalingDelaySecs"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}
WorkerConfig defines model for WorkerConfig.
type WorkerConfigCreate ¶
type WorkerConfigCreate struct {
// AvailableWorkersPct Idle workers held above current demand, as a percentage of that demand, rounded up. Omit, or send null or 0, for no buffer. When both buffers are set the larger of the two applies. The buffer applies only while the queue is non-empty, so it does not stop an idle app scaling to `minWorkers`.
AvailableWorkersPct *int32 `json:"availableWorkersPct,omitempty"`
// ComputeType GPU is the only supported compute type. Omitting the field selects GPU. CPU workloads are not supported; a request that names `cpu` is rejected with 422 before a build or deploy starts.
ComputeType *ComputeType `json:"computeType,omitempty"`
// FallbackGpuType Secondary GPU type used if the preferred type is unavailable. Omit, send JSON null, or send an empty string for no fallback — forms bind an unselected dropdown as `""`, which is not a `GpuTypeId`. A non-empty value must be an active catalog code. Unlike `gpuType` this is an existence check only: it does not require admitted capacity, so the code may not appear in the customer `GET /v1/gpu-types` list.
FallbackGpuType *GpuTypeIdOrEmpty `json:"fallbackGpuType,omitempty"`
// GpuType GPU type the workers run on. Required: omitting it (or sending null) is a 422 before a build or deploy starts, because a GPU app with no type is unpinned and the deployer would render NVIDIA defaults. Must match an `id` returned by `GET /v1/gpu-types` that currently has admitted capacity.
GpuType GpuTypeId `json:"gpuType"`
// GpusPerWorker GPUs granted to one worker pod. A worker holds its GPUs as one group the cluster grants indivisibly, so the count is one of the advertised group sizes rather than any number in a range. The value must also be a group size admitted by the cluster backing the chosen `gpuType`: a count above 1 that cluster does not grant is rejected with a 422 naming `/configuration/gpusPerWorker`, since the pod could never be scheduled. A value above 1 requires an image built after the multi-GPU worker entrypoint; older images serve a single rank while holding every granted GPU.
GpusPerWorker *int32 `json:"gpusPerWorker,omitempty"`
IdleTtlSecs int32 `json:"idleTtlSecs"`
MaxWorkers int32 `json:"maxWorkers"`
// MinAvailableWorkers Idle workers held above current demand. Omit, or send null or 0, for no buffer. Must be lower than `maxWorkers`. The buffer applies only while the queue is non-empty, so it does not stop an idle app scaling to `minWorkers`. A buffer below about a tenth of current demand is not added while demand holds steady; `availableWorkersPct` is not subject to that.
MinAvailableWorkers *int32 `json:"minAvailableWorkers,omitempty"`
MinWorkers *int32 `json:"minWorkers,omitempty"`
ScalingDelaySecs int32 `json:"scalingDelaySecs"`
}
WorkerConfigCreate defines model for WorkerConfigCreate.
type WorkerConfigPatch ¶
type WorkerConfigPatch struct {
// AvailableWorkersPct Idle workers held above current demand, as a percentage of that demand, rounded up. Omit to leave unchanged; send 0 to remove the buffer. Null is refused, because omitting a field and clearing it mean different things here.
AvailableWorkersPct *int32 `json:"availableWorkersPct,omitempty"`
// FallbackGpuType Secondary GPU type. Omit to leave unchanged. Send an empty string to clear — forms bind an unselected dropdown as `""`. JSON null is rejected: this field is not nullable, so a client that meant to clear must send `""` rather than null. A non-empty value must be an active catalog code. Unlike `gpuType` this is an existence check only: it does not require admitted capacity, so the code may not appear in the customer `GET /v1/gpu-types` list.
FallbackGpuType *GpuTypeIdOrEmpty `json:"fallbackGpuType,omitempty"`
// GpuType Preferred GPU type. Omit to leave unchanged. Rejected with a 422 when no capacity is currently offered for the type (it does not appear in `GET /v1/gpu-types`).
GpuType *GpuTypeId `json:"gpuType,omitempty"`
// GpusPerWorker GPUs granted to one worker pod. A worker holds its GPUs as one group the cluster grants indivisibly, so the count is one of the advertised group sizes rather than any number in a range. The value must also be a group size admitted by the cluster backing the chosen `gpuType`: a count above 1 that cluster does not grant is rejected with a 422 naming `/configuration/gpusPerWorker`, since the pod could never be scheduled. A value above 1 requires an image built after the multi-GPU worker entrypoint; older images serve a single rank while holding every granted GPU.
GpusPerWorker *int32 `json:"gpusPerWorker,omitempty"`
IdleTtlSecs *int32 `json:"idleTtlSecs,omitempty"`
MaxWorkers *int32 `json:"maxWorkers,omitempty"`
// MinAvailableWorkers Idle workers held above current demand. Omit to leave unchanged; send 0 to remove the buffer. Null is refused, because omitting a field and clearing it mean different things here. Must be lower than the resolved `maxWorkers`.
MinAvailableWorkers *int32 `json:"minAvailableWorkers,omitempty"`
MinWorkers *int32 `json:"minWorkers,omitempty"`
ScalingDelaySecs *int32 `json:"scalingDelaySecs,omitempty"`
}
WorkerConfigPatch Partial worker configuration. Any field present overwrites the live value; omitted fields are left unchanged. Clearing a nullable live field (setting it to null) is not supported — omit the field to leave it unchanged. `fallbackGpuType` is the exception: send an empty string to clear it. `computeType` is create-time only and cannot be patched. Changing `gpuType` affects only newly created workers.
type WorkerStateFilter ¶
type WorkerStateFilter string
WorkerStateFilter Which worker states a page covers. `live` is every status other than `stopped`, so it is the page a dashboard wants and the one `status` alone can only ask for one value at a time. `all` includes the terminal rows that are kept as history.
const ( WorkerStateFilterAll WorkerStateFilter = "all" WorkerStateFilterLive WorkerStateFilter = "live" )
Defines values for WorkerStateFilter.
func (WorkerStateFilter) Valid ¶
func (e WorkerStateFilter) Valid() bool
Valid indicates whether the value is a known member of the WorkerStateFilter enum.
type WorkerStatus ¶
type WorkerStatus string
WorkerStatus Worker lifecycle status. Also the type of `UsageEvent.eventType`, which records a ledger subset of these states (see that field — `busy` never appears there). `unhealthy` means the pod exists but failed to become or stay ready, not an intentional drain or stop.
const ( WorkerStatusBusy WorkerStatus = "busy" WorkerStatusDraining WorkerStatus = "draining" WorkerStatusLoading WorkerStatus = "loading" WorkerStatusPending WorkerStatus = "pending" WorkerStatusPulling WorkerStatus = "pulling" WorkerStatusReady WorkerStatus = "ready" WorkerStatusStopped WorkerStatus = "stopped" WorkerStatusStopping WorkerStatus = "stopping" WorkerStatusUnhealthy WorkerStatus = "unhealthy" )
Defines values for WorkerStatus.
func (WorkerStatus) Valid ¶
func (e WorkerStatus) Valid() bool
Valid indicates whether the value is a known member of the WorkerStatus enum.