Skip to content

Commit 77b6f44

Browse files
feat(api): manual updates
1 parent f0edc96 commit 77b6f44

File tree

4 files changed

+71
-8
lines changed

4 files changed

+71
-8
lines changed

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 116
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-d854bc81e0a99171716893e6790a87ba350bb6fc778f8e3244abdd47d5c252c3.yml
3-
openapi_spec_hash: 5189220e4712a7b0cdd35beba2ebb47d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-2e6ddfc9da00e33fcf13baf0b67012b97f051fa986658ff114fde989e56caa94.yml
3+
openapi_spec_hash: 5af02ea2008312d609394e548756e761
44
config_hash: 60929489bdc1eaf979e7ef74fdd17b94

src/resources/runners/runners.ts

+13
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,13 @@ export interface RunnerConfiguration {
375375
*/
376376
autoUpdate?: boolean;
377377

378+
/**
379+
* devcontainer_image_cache_enabled controls whether the devcontainer build cache
380+
* is enabled for this runner. Only takes effect on supported runners, currently
381+
* only AWS EC2 runners.
382+
*/
383+
devcontainerImageCacheEnabled?: boolean;
384+
378385
/**
379386
* log_level is the log level for the runner
380387
*/
@@ -705,6 +712,12 @@ export namespace RunnerUpdateParams {
705712
*/
706713
autoUpdate?: boolean | null;
707714

715+
/**
716+
* devcontainer_image_cache_enabled controls whether the shared devcontainer build
717+
* cache is enabled for this runner.
718+
*/
719+
devcontainerImageCacheEnabled?: boolean | null;
720+
708721
/**
709722
* log_level is the log level for the runner
710723
*/

src/resources/secrets.ts

+32-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,38 @@ export class Secrets extends APIResource {
5858
}
5959

6060
/**
61-
* ListSecrets
61+
* Lists secrets
62+
*
63+
* Use this method to:
64+
*
65+
* - View all project secrets
66+
* - View all user secrets
67+
*
68+
* ### Examples
69+
*
70+
* - List project secrets:
71+
*
72+
* Shows all secrets for a project.
73+
*
74+
* ```yaml
75+
* filter:
76+
* scope:
77+
* projectId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
78+
* pagination:
79+
* pageSize: 20
80+
* ```
81+
*
82+
* - List user secrets:
83+
*
84+
* Shows all secrets for a user.
85+
*
86+
* ```yaml
87+
* filter:
88+
* scope:
89+
* userId: "123e4567-e89b-12d3-a456-426614174000"
90+
* pagination:
91+
* pageSize: 20
92+
* ```
6293
*/
6394
list(params: SecretListParams, options?: RequestOptions): PagePromise<SecretsSecretsPage, Secret> {
6495
const { token, pageSize, ...body } = params;

src/resources/usage.ts

+24-5
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,29 @@ import { RequestOptions } from '../internal/request-options';
66

77
export class Usage extends APIResource {
88
/**
9-
* Lists environment sessions within a specified date range.
9+
* Lists completed environment sessions within a specified date range.
1010
*
11-
* Returns a list of environment sessions that were active within the specified
12-
* date range.
11+
* Returns a list of environment sessions that were completed within the specified
12+
* date range. Currently running sessions are not included.
13+
*
14+
* Use this method to:
15+
*
16+
* - View environment sessions
17+
* - Filter by project
18+
* - Monitor session activity
19+
* - Create custom usage reports
20+
*
21+
* ### Example
22+
*
23+
* ```yaml
24+
* filter:
25+
* projectId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
26+
* dateRange:
27+
* startTime: "2024-01-01T00:00:00Z"
28+
* endTime: "2024-01-02T00:00:00Z"
29+
* pagination:
30+
* pageSize: 100
31+
* ```
1332
*/
1433
listEnvironmentSessions(
1534
params: UsageListEnvironmentSessionsParams,
@@ -48,7 +67,7 @@ export interface EnvironmentSession {
4867
environmentId?: string;
4968

5069
/**
51-
* Project ID associated with the session.
70+
* Project ID associated with the session (if available).
5271
*/
5372
projectId?: string;
5473

@@ -63,7 +82,7 @@ export interface EnvironmentSession {
6382
stoppedAt?: string;
6483

6584
/**
66-
* User ID who created the session.
85+
* User ID that created the session.
6786
*/
6887
userId?: string;
6988
}

0 commit comments

Comments
 (0)