Skip to content

Commit faca2b2

Browse files
feat(api): remove terminal field from RunsOn type
1 parent 308ce72 commit faca2b2

File tree

6 files changed

+2
-26
lines changed

6 files changed

+2
-26
lines changed

.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%2Fgitpod-9b7fd2030480921db661aeb8eb6c454e8b53accf4bddecc66e740383ab7ad074.yml
3-
openapi_spec_hash: deb597c2dbac0fddcdd136aae19aba44
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-ffc8cf0ed565636356f70cba5521094ee367d0b30bacb266a70f4ea98889c74c.yml
3+
openapi_spec_hash: bf1abc17445dd410c3c3f8607c5a4937
44
config_hash: 843d5f356bfb6295862722a8d71d08e0

src/gitpod/types/shared/runs_on.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,3 @@ class RunsOn(BaseModel):
1818

1919
machine: Optional[object] = None
2020
"""Machine runs the service/task directly on the VM/machine level."""
21-
22-
terminal: Optional[object] = None
23-
"""
24-
Terminal runs the service inside a managed PTY terminal in the devcontainer.
25-
Users can attach to the terminal interactively via the terminal API.
26-
"""

src/gitpod/types/shared_params/runs_on.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,3 @@ class RunsOn(TypedDict, total=False):
2020

2121
machine: object
2222
"""Machine runs the service/task directly on the VM/machine level."""
23-
24-
terminal: object
25-
"""
26-
Terminal runs the service inside a managed PTY terminal in the devcontainer.
27-
Users can attach to the terminal interactively via the terminal API.
28-
"""

tests/api_resources/environments/automations/test_services.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ def test_method_create_with_all_params(self, client: Gitpod) -> None:
7575
"image": "x",
7676
},
7777
"machine": {},
78-
"terminal": {},
7978
},
8079
"session": "session",
8180
"spec_version": "specVersion",
@@ -188,7 +187,6 @@ def test_method_update_with_all_params(self, client: Gitpod) -> None:
188187
"image": "x",
189188
},
190189
"machine": {},
191-
"terminal": {},
192190
},
193191
},
194192
status={
@@ -437,7 +435,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncGitpod) ->
437435
"image": "x",
438436
},
439437
"machine": {},
440-
"terminal": {},
441438
},
442439
"session": "session",
443440
"spec_version": "specVersion",
@@ -550,7 +547,6 @@ async def test_method_update_with_all_params(self, async_client: AsyncGitpod) ->
550547
"image": "x",
551548
},
552549
"machine": {},
553-
"terminal": {},
554550
},
555551
},
556552
status={

tests/api_resources/environments/automations/test_tasks.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ def test_method_create_with_all_params(self, client: Gitpod) -> None:
7171
"image": "x",
7272
},
7373
"machine": {},
74-
"terminal": {},
7574
},
7675
},
7776
)
@@ -178,7 +177,6 @@ def test_method_update_with_all_params(self, client: Gitpod) -> None:
178177
"image": "x",
179178
},
180179
"machine": {},
181-
"terminal": {},
182180
},
183181
},
184182
)
@@ -377,7 +375,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncGitpod) ->
377375
"image": "x",
378376
},
379377
"machine": {},
380-
"terminal": {},
381378
},
382379
},
383380
)
@@ -484,7 +481,6 @@ async def test_method_update_with_all_params(self, async_client: AsyncGitpod) ->
484481
"image": "x",
485482
},
486483
"machine": {},
487-
"terminal": {},
488484
},
489485
},
490486
)

tests/api_resources/environments/test_automations.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def test_method_upsert_with_all_params(self, client: Gitpod) -> None:
4444
"image": "x",
4545
},
4646
"machine": {},
47-
"terminal": {},
4847
},
4948
"triggered_by": ["postDevcontainerStart"],
5049
}
@@ -61,7 +60,6 @@ def test_method_upsert_with_all_params(self, client: Gitpod) -> None:
6160
"image": "x",
6261
},
6362
"machine": {},
64-
"terminal": {},
6563
},
6664
"triggered_by": ["postEnvironmentStart"],
6765
}
@@ -126,7 +124,6 @@ async def test_method_upsert_with_all_params(self, async_client: AsyncGitpod) ->
126124
"image": "x",
127125
},
128126
"machine": {},
129-
"terminal": {},
130127
},
131128
"triggered_by": ["postDevcontainerStart"],
132129
}
@@ -143,7 +140,6 @@ async def test_method_upsert_with_all_params(self, async_client: AsyncGitpod) ->
143140
"image": "x",
144141
},
145142
"machine": {},
146-
"terminal": {},
147143
},
148144
"triggered_by": ["postEnvironmentStart"],
149145
}

0 commit comments

Comments
 (0)