Gitpod gitpod.v1.PrebuildService API
PrebuildService manages prebuilds for projects to enable faster environment startup times. Prebuilds create snapshots of environments that can be used to provision new environments quickly.
PrebuildService manages prebuilds for projects to enable faster environment startup times. Prebuilds create snapshots of environments that can be used to provision new environments quickly.
openapi: 3.0.0
info:
title: gitpod.v1 gitpod.v1.AccountService gitpod.v1.PrebuildService API
version: v1.0.0
description: "PrebuildService manages prebuilds for projects to enable faster environment startup times.\n Prebuilds create snapshots of environments that can be used to provision new environments quickly."
servers:
- url: https://api.gitpod.io
description: Gitpod API
tags:
- description: "PrebuildService manages prebuilds for projects to enable faster environment startup times.\n Prebuilds create snapshots of environments that can be used to provision new environments quickly."
name: gitpod.v1.PrebuildService
x-displayName: gitpod.v1.PrebuildService
paths:
/gitpod.v1.PrebuildService/CancelPrebuild:
servers: []
post:
description: "Cancels a running prebuild.\n\n Use this method to:\n - Stop prebuilds that are no longer needed\n - Free up resources for other operations\n\n ### Examples\n\n - Cancel prebuild:\n\n Stops a running prebuild and cleans up resources.\n\n ```yaml\n prebuildId: \"07e03a28-65a5-4d98-b532-8ea67b188048\"\n ```"
operationId: gitpod.v1.PrebuildService.CancelPrebuild
parameters: []
requestBody:
content:
application/json:
examples:
cancel_prebuild:
description: Stops a running prebuild and cleans up resources.
value:
prebuildId: 07e03a28-65a5-4d98-b532-8ea67b188048
schema:
$ref: '#/components/schemas/gitpod.v1.CancelPrebuildRequest'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/gitpod.v1.CancelPrebuildResponse'
description: Success
default:
content:
application/json:
schema:
$ref: '#/components/schemas/connect.error'
description: Error
security:
- bearerAuth: []
summary: CancelPrebuild
tags:
- gitpod.v1.PrebuildService
/gitpod.v1.PrebuildService/CreatePrebuild:
servers: []
post:
description: "Creates a prebuild for a project.\n\n Use this method to:\n - Create on-demand prebuilds for faster environment startup\n - Trigger prebuilds after repository changes\n - Generate prebuilds for specific environment classes\n\n The prebuild process creates an environment, runs the devcontainer prebuild lifecycle,\n and creates a snapshot for future environment provisioning.\n\n ### Examples\n\n - Create basic prebuild:\n\n Creates a prebuild for a project using default settings.\n\n ```yaml\n projectId: \"b0e12f6c-4c67-429d-a4a6-d9838b5da047\"\n spec:\n timeout: \"3600s\" # 60 minutes default\n ```\n\n - Create prebuild with custom environment class:\n\n Creates a prebuild with a specific environment class and timeout.\n\n ```yaml\n projectId: \"b0e12f6c-4c67-429d-a4a6-d9838b5da047\"\n environmentClassId: \"d2c94c27-3b76-4a42-b88c-95a85e392c68\"\n spec:\n timeout: \"3600s\" # 1 hour\n ```"
operationId: gitpod.v1.PrebuildService.CreatePrebuild
parameters: []
requestBody:
content:
application/json:
examples:
create_basic_prebuild:
description: Creates a prebuild for a project using default settings.
value:
projectId: b0e12f6c-4c67-429d-a4a6-d9838b5da047
spec:
timeout: 3600s
create_prebuild_with_custom_environment_class:
description: Creates a prebuild with a specific environment class and timeout.
value:
environmentClassId: d2c94c27-3b76-4a42-b88c-95a85e392c68
projectId: b0e12f6c-4c67-429d-a4a6-d9838b5da047
spec:
timeout: 3600s
schema:
$ref: '#/components/schemas/gitpod.v1.CreatePrebuildRequest'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/gitpod.v1.CreatePrebuildResponse'
description: Success
default:
content:
application/json:
schema:
$ref: '#/components/schemas/connect.error'
description: Error
security:
- bearerAuth: []
summary: CreatePrebuild
tags:
- gitpod.v1.PrebuildService
/gitpod.v1.PrebuildService/CreatePrebuildLogsToken:
servers: []
post:
description: "Creates a logs access token for a prebuild.\n\n Use this method to:\n - Stream logs from a running prebuild\n - Access archived logs from completed prebuilds\n\n Generated tokens are valid for one hour.\n\n ### Examples\n\n - Create prebuild logs token:\n\n Generates a token for accessing prebuild logs.\n\n ```yaml\n prebuildId: \"07e03a28-65a5-4d98-b532-8ea67b188048\"\n ```"
operationId: gitpod.v1.PrebuildService.CreatePrebuildLogsToken
parameters: []
requestBody:
content:
application/json:
examples:
create_prebuild_logs_token:
description: Generates a token for accessing prebuild logs.
value:
prebuildId: 07e03a28-65a5-4d98-b532-8ea67b188048
schema:
$ref: '#/components/schemas/gitpod.v1.CreatePrebuildLogsTokenRequest'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/gitpod.v1.CreatePrebuildLogsTokenResponse'
description: Success
default:
content:
application/json:
schema:
$ref: '#/components/schemas/connect.error'
description: Error
security:
- bearerAuth: []
summary: CreatePrebuildLogsToken
tags:
- gitpod.v1.PrebuildService
/gitpod.v1.PrebuildService/CreateWarmPool:
servers: []
post:
description: "Creates a warm pool for a project and environment class.\n\n A warm pool maintains pre-created environment instances from a prebuild snapshot\n so that new environments can start near-instantly.\n\n Only one warm pool is allowed per <project, environment_class> pair.\n The environment class must have prebuilds enabled on the project.\n\n The pool's snapshot is managed automatically: when a new prebuild completes\n for the same project and environment class, the pool's snapshot is updated\n and the runner rotates instances.\n\n ### Examples\n\n - Create warm pool:\n\n Creates a warm pool with 2 instances for a project and environment class.\n\n ```yaml\n projectId: \"b0e12f6c-4c67-429d-a4a6-d9838b5da047\"\n environmentClassId: \"d2c94c27-3b76-4a42-b88c-95a85e392c68\"\n desiredSize: 2\n ```"
operationId: gitpod.v1.PrebuildService.CreateWarmPool
parameters: []
requestBody:
content:
application/json:
examples:
create_warm_pool:
description: Creates a warm pool with 2 instances for a project and environment class.
value:
desiredSize: 2
environmentClassId: d2c94c27-3b76-4a42-b88c-95a85e392c68
projectId: b0e12f6c-4c67-429d-a4a6-d9838b5da047
schema:
$ref: '#/components/schemas/gitpod.v1.CreateWarmPoolRequest'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/gitpod.v1.CreateWarmPoolResponse'
description: Success
default:
content:
application/json:
schema:
$ref: '#/components/schemas/connect.error'
description: Error
security:
- bearerAuth: []
summary: CreateWarmPool
tags:
- gitpod.v1.PrebuildService
/gitpod.v1.PrebuildService/DeletePrebuild:
servers: []
post:
description: "Deletes a prebuild.\n\n Prebuilds are automatically deleted after some time. Use this method to\n manually delete a prebuild before automatic cleanup, for example to remove\n a prebuild that should no longer be used.\n\n Deletion is processed asynchronously. The prebuild will be marked for deletion\n and removed from the system in the background.\n\n ### Examples\n\n - Delete prebuild:\n\n Marks a prebuild for deletion and removes it from the system.\n\n ```yaml\n prebuildId: \"07e03a28-65a5-4d98-b532-8ea67b188048\"\n ```"
operationId: gitpod.v1.PrebuildService.DeletePrebuild
parameters: []
requestBody:
content:
application/json:
examples:
delete_prebuild:
description: Marks a prebuild for deletion and removes it from the system.
value:
prebuildId: 07e03a28-65a5-4d98-b532-8ea67b188048
schema:
$ref: '#/components/schemas/gitpod.v1.DeletePrebuildRequest'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/gitpod.v1.DeletePrebuildResponse'
description: Success
default:
content:
application/json:
schema:
$ref: '#/components/schemas/connect.error'
description: Error
security:
- bearerAuth: []
summary: DeletePrebuild
tags:
- gitpod.v1.PrebuildService
/gitpod.v1.PrebuildService/DeleteWarmPool:
servers: []
post:
description: "Deletes a warm pool.\n\n Deletion is processed asynchronously. The pool is marked for deletion\n and the runner drains instances in the background.\n\n Warm pools are also automatically deleted when prebuilds are disabled\n on the project or the environment class is removed from the prebuild\n configuration.\n\n ### Examples\n\n - Delete warm pool:\n\n ```yaml\n warmPoolId: \"a1b2c3d4-5678-9abc-def0-1234567890ab\"\n ```"
operationId: gitpod.v1.PrebuildService.DeleteWarmPool
parameters: []
requestBody:
content:
application/json:
examples:
delete_warm_pool:
description: 'warmPoolId: "a1b2c3d4-5678-9abc-def0-1234567890ab"
'
value:
warmPoolId: a1b2c3d4-5678-9abc-def0-1234567890ab
schema:
$ref: '#/components/schemas/gitpod.v1.DeleteWarmPoolRequest'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/gitpod.v1.DeleteWarmPoolResponse'
description: Success
default:
content:
application/json:
schema:
$ref: '#/components/schemas/connect.error'
description: Error
security:
- bearerAuth: []
summary: DeleteWarmPool
tags:
- gitpod.v1.PrebuildService
/gitpod.v1.PrebuildService/GetPrebuild:
servers: []
post:
description: "Gets details about a specific prebuild.\n\n Use this method to:\n - Check prebuild status and progress\n - Access prebuild logs for debugging\n\n ### Examples\n\n - Get prebuild details:\n\n Retrieves comprehensive information about a prebuild.\n\n ```yaml\n prebuildId: \"07e03a28-65a5-4d98-b532-8ea67b188048\"\n ```"
operationId: gitpod.v1.PrebuildService.GetPrebuild
parameters: []
requestBody:
content:
application/json:
examples:
get_prebuild_details:
description: Retrieves comprehensive information about a prebuild.
value:
prebuildId: 07e03a28-65a5-4d98-b532-8ea67b188048
schema:
$ref: '#/components/schemas/gitpod.v1.GetPrebuildRequest'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/gitpod.v1.GetPrebuildResponse'
description: Success
default:
content:
application/json:
schema:
$ref: '#/components/schemas/connect.error'
description: Error
security:
- bearerAuth: []
summary: GetPrebuild
tags:
- gitpod.v1.PrebuildService
/gitpod.v1.PrebuildService/GetWarmPool:
servers: []
post:
description: "Gets details about a specific warm pool.\n\n Use this method to:\n - Check warm pool status and phase\n - View the current snapshot being warmed\n - Monitor pool health\n\n ### Examples\n\n - Get warm pool:\n\n ```yaml\n warmPoolId: \"a1b2c3d4-5678-9abc-def0-1234567890ab\"\n ```"
operationId: gitpod.v1.PrebuildService.GetWarmPool
parameters: []
requestBody:
content:
application/json:
examples:
get_warm_pool:
description: 'warmPoolId: "a1b2c3d4-5678-9abc-def0-1234567890ab"
'
value:
warmPoolId: a1b2c3d4-5678-9abc-def0-1234567890ab
schema:
$ref: '#/components/schemas/gitpod.v1.GetWarmPoolRequest'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/gitpod.v1.GetWarmPoolResponse'
description: Success
default:
content:
application/json:
schema:
$ref: '#/components/schemas/connect.error'
description: Error
security:
- bearerAuth: []
summary: GetWarmPool
tags:
- gitpod.v1.PrebuildService
/gitpod.v1.PrebuildService/ListPrebuilds:
servers: []
post:
operationId: gitpod.v1.PrebuildService.ListPrebuilds
parameters:
- in: query
name: pageSize
schema:
default: 25
maximum: 100
minimum: 0
type: integer
- in: query
name: token
schema:
default: ''
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/gitpod.v1.ListPrebuildsRequest'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/gitpod.v1.ListPrebuildsResponse'
description: Success
default:
content:
application/json:
schema:
$ref: '#/components/schemas/connect.error'
description: Error
security:
- bearerAuth: []
summary: ListPrebuilds
tags:
- gitpod.v1.PrebuildService
/gitpod.v1.PrebuildService/ListWarmPools:
servers: []
post:
description: "Lists warm pools with optional filtering.\n\n Use this method to:\n - View all warm pools for a project\n - Monitor warm pool status across environment classes\n\n ### Examples\n\n - List warm pools for a project:\n\n ```yaml\n filter:\n projectIds: [\"b0e12f6c-4c67-429d-a4a6-d9838b5da047\"]\n ```"
operationId: gitpod.v1.PrebuildService.ListWarmPools
parameters:
- in: query
name: pageSize
schema:
default: 25
maximum: 100
minimum: 0
type: integer
- in: query
name: token
schema:
default: ''
type: string
requestBody:
content:
application/json:
examples:
list_warm_pools_for_a_project:
description: "filter:\n projectIds: [\"b0e12f6c-4c67-429d-a4a6-d9838b5da047\"]\n"
value:
filter:
projectIds:
- b0e12f6c-4c67-429d-a4a6-d9838b5da047
schema:
$ref: '#/components/schemas/gitpod.v1.ListWarmPoolsRequest'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/gitpod.v1.ListWarmPoolsResponse'
description: Success
default:
content:
application/json:
schema:
$ref: '#/components/schemas/connect.error'
description: Error
security:
- bearerAuth: []
summary: ListWarmPools
tags:
- gitpod.v1.PrebuildService
/gitpod.v1.PrebuildService/UpdateWarmPool:
servers: []
post:
description: "Updates a warm pool's configuration.\n\n Use this method to change the desired pool size.\n\n ### Examples\n\n - Update pool size:\n\n ```yaml\n warmPoolId: \"a1b2c3d4-5678-9abc-def0-1234567890ab\"\n desiredSize: 5\n ```"
operationId: gitpod.v1.PrebuildService.UpdateWarmPool
parameters: []
requestBody:
content:
application/json:
examples:
update_pool_size:
description: 'warmPoolId: "a1b2c3d4-5678-9abc-def0-1234567890ab"
desiredSize: 5
'
value:
desiredSize: 5
warmPoolId: a1b2c3d4-5678-9abc-def0-1234567890ab
schema:
$ref: '#/components/schemas/gitpod.v1.UpdateWarmPoolRequest'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/gitpod.v1.UpdateWarmPoolResponse'
description: Success
default:
content:
application/json:
schema:
$ref: '#/components/schemas/connect.error'
description: Error
security:
- bearerAuth: []
summary: UpdateWarmPool
tags:
- gitpod.v1.PrebuildService
components:
schemas:
gitpod.v1.Principal:
enum:
- PRINCIPAL_UNSPECIFIED
- PRINCIPAL_ACCOUNT
- PRINCIPAL_USER
- PRINCIPAL_RUNNER
- PRINCIPAL_ENVIRONMENT
- PRINCIPAL_SERVICE_ACCOUNT
- PRINCIPAL_RUNNER_MANAGER
title: Principal
type: string
gitpod.v1.CreatePrebuildLogsTokenResponse:
additionalProperties: false
properties:
accessToken:
description: access_token is the token that can be used to access the logs of the prebuild
title: access_token
type: string
required:
- accessToken
title: CreatePrebuildLogsTokenResponse
type: object
gitpod.v1.CreatePrebuildResponse:
additionalProperties: false
properties:
prebuild:
$ref: '#/components/schemas/gitpod.v1.Prebuild'
title: prebuild
required:
- prebuild
title: CreatePrebuildResponse
type: object
gitpod.v1.UpdateWarmPoolResponse:
additionalProperties: false
properties:
warmPool:
$ref: '#/components/schemas/gitpod.v1.WarmPool'
title: warm_pool
required:
- warmPool
title: UpdateWarmPoolResponse
type: object
gitpod.v1.GetPrebuildRequest:
additionalProperties: false
properties:
prebuildId:
description: prebuild_id specifies the prebuild to retrieve
format: uuid
title: prebuild_id
type: string
required:
- prebuildId
title: GetPrebuildRequest
type: object
gitpod.v1.PrebuildSpec:
additionalProperties: false
description: PrebuildSpec contains the configuration used to create a prebuild
properties:
desiredPhase:
$ref: '#/components/schemas/gitpod.v1.PrebuildPhase'
description: "desired_phase is the desired phase of the prebuild.\n Used to signal cancellation or other state changes.\n This field is managed by the API and reconciler."
title: desired_phase
specVersion:
description: "spec_version is incremented each time the spec is updated.\n Used for optimistic concurrency control."
title: spec_version
type: string
timeout:
$ref: '#/components/schemas/google.protobuf.Duration'
description: "timeout is the maximum time allowed for the prebuild to complete.\n Defaults to 60 minutes if not specified.\n Maximum allowed timeout is 2 hours."
title: timeout
title: PrebuildSpec
type: object
gitpod.v1.ListWarmPoolsRequest.Filter:
additionalProperties: false
properties:
environmentClassIds:
description: environment_class_ids filters warm pools to specific environment classes
items:
format: uuid
maxItems: 25
type: string
maxItems: 25
title: environment_class_ids
type: array
projectIds:
description: project_ids filters warm pools to specific projects
items:
format: uuid
maxItems: 25
type: string
maxItems: 25
title: project_ids
type: array
title: Filter
type: object
gitpod.v1.GetPrebuildResponse:
additionalProperties: false
properties:
prebuild:
$ref: '#/components/schemas/gitpod.v1.Prebuild'
title: prebuild
required:
- prebuild
title: GetPrebuildResponse
type: object
gitpod.v1.DeleteWarmPoolRequest:
additionalProperties: false
properties:
warmPoolId:
description: warm_pool_id specifies the warm pool to delete
format: uuid
title: warm_pool_id
type: string
required:
- warmPoolId
title: DeleteWarmPoolRequest
type: object
gitpod.v1.DeleteWarmPoolResponse:
additionalProperties: false
title: DeleteWarmPoolResponse
type: object
gitpod.v1.ListWarmPoolsResponse:
additionalProperties: false
properties:
pagination:
$ref: '#/components/schemas/gitpod.v1.PaginationResponse'
description: pagination contains the pagination response
title: pagination
warmPools:
description: warm_pools are the warm pools that matched the query
items:
$ref: '#/components/schemas/gitpod.v1.WarmPool'
title: warm_pools
type: array
title: ListWarmPoolsResponse
type: object
gitpod.v1.CreateWarmPoolResponse:
additionalProperties: false
properties:
warmPool:
$ref: '#/components/schemas/gitpod.v1.WarmPool'
title: warm_pool
required:
- warmPool
title: CreateWarmPoolResponse
type: object
gitpod.v1.Subject:
additionalProperties: false
properties:
id:
description: id is the UUID of the subject
format: uuid
title: id
type: string
principal:
$ref: '#/components/schemas/gitpod.v1.Principal'
description: Principal is the principal of the subject
title: principal
title: Subject
type: object
gitpod.v1.PrebuildPhase:
description: PrebuildPhase represents the lifecycle phase of a prebuild
enum:
- PREBUILD_PHASE_UNSPECIFIED
- PREBUILD_PHASE_PENDING
- PREBUILD_PHASE_STARTING
- PREBUILD_PHASE_RUNNING
- PREBUILD_PHASE_STOPPING
- PREBUILD_PHASE_SNAPSHOTTING
- PREBUILD_PHASE_COMPLETED
- PREBUILD_PHASE_FAILED
- PREBUILD_PHASE_CANCELLING
- PREBUILD_PHASE_CANCELLED
- PREBUILD_PHASE_DELETING
- PREBUILD_PHASE_DELETED
title: PrebuildPhase
type: string
gitpod.v1.PrebuildMetadata.PrebuildTrigger:
description: PrebuildTrigger indicates how the prebuild was triggered
enum:
- PREBUILD_TRIGGER_UNSPECIFIED
- PREBUILD_TRIGGER_MANUAL
- PREBUILD_TRIGGER_SCHEDULED
title: PrebuildTrigger
type: string
gitpod.v1.WarmPoolMetadata:
additionalProperties: false
description: WarmPoolMetadata contains metadata about the warm pool
properties:
createdAt:
$ref: '#/components/schemas/google.protobuf.Timestamp'
description: created_at is when the warm pool was created
title: created_at
environmentClassId:
description: environment_class_id is the environment class whose instances are warmed
format: uuid
title: environment_class_id
type: string
organizationId:
description: organization_id is the ID of the organization that owns the warm pool
format: uuid
title: organization_id
type: string
projectId:
description: project_id is the ID of the project this warm pool belongs to
format: uuid
title: project_id
type: string
runnerId:
description: "runner_id is the runner that manages this warm pool.\n Derived from the environment class."
format: uuid
title: runner_id
type: string
updatedAt:
$ref: '#/components/schemas/google.protobuf.Timestamp'
description: updated_at is when the warm pool was last updated
title: updated_at
required:
- createdAt
- updatedAt
title: WarmPoolMetadata
type: object
gitpod.v1.WarmPoolStatus:
additionalProperties: false
description: WarmPoolStatus contains the current status of a warm pool as reported by the runner
properties:
desiredSize:
description: "desired_size is the current target number of instances the autoscaler\n has decided on. Unlike running_instances, this value is stable and\n does not fluctuate as instances are claimed and backfilled."
format: int32
title: desired_size
type: integer
failureMessage:
description: failure_message contains details about why the warm pool is degraded or failed
title: failure_message
type: string
phase:
$ref: '#/components/schemas/gitpod.v1.WarmPoolPhase'
description: phase is the current phase of the warm pool lifecycle
title: phase
runningInstances:
description: "running_instances is the number of running warm instances in the pool,\n ready to be claimed for near-instant environment startup."
format: int32
title: running_instances
type: integer
statusVersion:
description: "status_version is incremented each time the status is updated.\n Used for optimistic concurrency control."
title: status_version
type: string
stoppedInstances:
description: "stopped_instances is the number of pre-provisioned but stopped instances\n in the pool. When a running instance is claimed, stopped instances are\n used to backfill the running pool faster than provisioning from scratch.\n Stopped instances only incur storage costs, allowing a larger total pool\n at lower cost than keeping all instances running."
format: int32
title: stopped_instances
type: integer
required:
- phase
title: WarmPoolStatus
type: object
connect.error:
additionalProperties: true
description: 'Error type returned by Connect: https://connectrpc.com/docs/go/errors/#http-representation'
properties:
code:
description: The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
enum:
- canceled
- unknown
- invalid_argument
- deadline_exceeded
- not_found
- already_exists
- permission_denied
- resource_exhausted
- failed_precondition
- aborted
- out_of_range
- unimplemented
- internal
- unavailable
- data_loss
- unauthenticated
example:
- not_found
type: string
message:
description: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
type: string
title: Connect Error
type: object
gitpod.v1.ListPrebuildsRequest:
additionalProperties: false
properties:
filter:
$ref: '#/components/schemas/gitpod.v1.ListPrebuildsRequest.Filter'
description: filter contains the filter options for listing prebuilds
title: filter
pagination:
$ref: '#/components/schemas/gitpod.v1.PaginationRequest'
description: pagination contains the pagination options for listing prebuilds
title: pagination
title: ListPrebuildsRequest
type: object
gitpod.v1.PaginationRequest:
additionalProperties: false
properties:
pageSize:
description: "Page size is the maximum number of results to retrieve per page.\n Defaults to 25. Maximum 100."
format: int32
maximum: 100
title: page_size
type: integer
token:
description: "Token for the next set of results that was returned as next_token of a\n PaginationResponse"
title: token
type: string
title: PaginationRequest
type: object
gitpod.v1.CreateWarmPoolRequest:
additionalProperties: false
properties:
desiredSize:
deprecated: true
description: "desired_size is the number of warm instances to maintain.\n Deprecated: Use min_size and max_size instead for dynamic scaling."
format: int32
maximum: 20
minimum: 1
title: desired_size
type: integer
environmentClassId:
description: "environment_class_id specifies which environment class to warm.\n Must be listed in the project's prebuild configuration environment_class_ids."
format: uuid
title: environment_class_id
type: string
maxSize:
description: "max_size is the maximum number of warm instances to maintain.\n The pool will never scale above this value.\n Must be >= min_size and <= 20."
format: int32
maximum: 20
minimum: 1
nullable: true
title: max_size
type: integer
minSize:
description: "min_size is the minimum number of warm instances to maintain.\n The pool will never scale below this value.\n Must be >= 0 and <= max_size. Set to 0 to allow full scale-down."
format: int32
maximum: 20
nullable: true
title: min_size
type: integer
projectId:
description: "project_id specifies the project this warm pool belongs to.\n The project must have prebuilds enabled."
format: uuid
title: project_id
type: string
required:
- projectId
- environmentClassId
title: CreateWarmPoolRequest
type: object
google.protobuf.Duration:
description: "A Duration represents a signed, fixed-length span of time represented\n as a count of seconds and fractions of seconds at nanosecond\n resolution. It is independent of any calendar and concepts like \"day\"\n or \"month\". It is related to Timestamp in that the difference between\n two Timestamp values is a Duration and it can be added or subtracted\n from a Timestamp. Range is approximately +-10,000 years.\n\n # Examples\n\n Example 1: Compute Duration from two Timestamps in pseudo code.\n\n Timestamp start = ...;\n Timestamp end = ...;\n Duration duration = ...;\n\n duration.seconds = end.seconds - start.seconds;\n duration.nanos = end.nanos - start.nanos;\n\n if (duration.seconds < 0 && duration.nanos > 0) {\n duration.seconds += 1;\n duration.nanos -= 1000000000;\n } else if (duration.seconds > 0 && duration.nanos < 0) {\n duration.seconds -= 1;\n duration.nanos += 1000000000;\n }\n\n Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.\n\n Timestamp start = ...;\n Duration duration = ...;\n Timestamp end = ...;\n\n end.seconds = start.seconds + duration.seconds;\n end.nanos = start.nanos
# --- truncated at 32 KB (54 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/gitpod/refs/heads/main/openapi/gitpod-gitpod-v1-prebuildservice-api-openapi.yml