Skip to content

Commit 957eb60

Browse files
feat(api): add access_token field to runner create response models
1 parent bc55c04 commit 957eb60

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 193
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod/gitpod-4870c4a1239ec91e7208abe28cd87290284b739c343900f463830afea4689849.yml
3-
openapi_spec_hash: 210df8ac2d6594e968e9488a92264ba0
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod/gitpod-9011dcb1591f4dec81232db8d8d4dff1962ff419990c80413a132166a98d5011.yml
3+
openapi_spec_hash: 569a080670e5f7cb2ce42739661cbb45
44
config_hash: 173a6e0a8069a38a997548c7f5f8a5e3

src/gitpod/types/runner_create_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
class RunnerCreateResponse(BaseModel):
1414
runner: Runner
1515

16+
access_token: Optional[str] = FieldInfo(alias="accessToken", default=None)
17+
"""deprecated, will be removed. Use exchange_token instead."""
18+
1619
exchange_token: Optional[str] = FieldInfo(alias="exchangeToken", default=None)
1720
"""
1821
exchange_token is a one-time use token that should be exchanged by the runner

src/gitpod/types/runner_create_runner_token_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111

1212
class RunnerCreateRunnerTokenResponse(BaseModel):
13+
access_token: Optional[str] = FieldInfo(alias="accessToken", default=None)
14+
"""deprecated, will be removed. Use exchange_token instead."""
15+
1316
exchange_token: Optional[str] = FieldInfo(alias="exchangeToken", default=None)
1417
"""
1518
exchange_token is a one-time use token that should be exchanged by the runner

0 commit comments

Comments
 (0)