Skip to content

Commit 467c68f

Browse files
feat(api): add Report boolean/float/integer/string schema types
1 parent ad01bee commit 467c68f

File tree

4 files changed

+6
-207
lines changed

4 files changed

+6
-207
lines changed

.stats.yml

Lines changed: 3 additions & 3 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-dabc0ff98cd7b9d91850b3c0dbada4e487e698333cd0b7257959e4819d9a29d6.yml
3-
openapi_spec_hash: b974bdc6025a26cfa62857bf74ec379b
4-
config_hash: 13514c5eb422e4eb01767e718798de1e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-3dcdbd68ce4b336149d28d17ab08f211538ed6630112ae4883af2f6680643159.yml
3+
openapi_spec_hash: 7e4333995b65cf32663166801e2444bb
4+
config_hash: 8d7b241284195a8c51f5d670fbbe0ab4

src/gitpod/types/workflow_step.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List, Optional
3+
from typing import Optional
44

55
from pydantic import Field as FieldInfo
66

77
from .._models import BaseModel
88

9-
__all__ = ["WorkflowStep", "Agent", "PullRequest", "Report", "ReportOutput", "Task"]
9+
__all__ = ["WorkflowStep", "Agent", "PullRequest", "Task"]
1010

1111

1212
class Agent(BaseModel):
@@ -51,20 +51,6 @@ class PullRequest(BaseModel):
5151
"""
5252

5353

54-
class ReportOutput:
55-
pass
56-
57-
58-
class Report(BaseModel):
59-
outputs: Optional[List[ReportOutput]] = None
60-
"""Report must have at least one output:
61-
62-
```
63-
size(this) >= 1
64-
```
65-
"""
66-
67-
6854
class Task(BaseModel):
6955
"""WorkflowTaskStep represents a task step that executes a command."""
7056

@@ -86,7 +72,5 @@ class WorkflowStep(BaseModel):
8672
pull_request: Optional[PullRequest] = FieldInfo(alias="pullRequest", default=None)
8773
"""WorkflowPullRequestStep represents a pull request creation step."""
8874

89-
report: Optional[Report] = None
90-
9175
task: Optional[Task] = None
9276
"""WorkflowTaskStep represents a task step that executes a command."""

src/gitpod/types/workflow_step_param.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
from __future__ import annotations
44

5-
from typing import Iterable
65
from typing_extensions import Annotated, TypedDict
76

87
from .._utils import PropertyInfo
98

10-
__all__ = ["WorkflowStepParam", "Agent", "PullRequest", "Report", "ReportOutput", "Task"]
9+
__all__ = ["WorkflowStepParam", "Agent", "PullRequest", "Task"]
1110

1211

1312
class Agent(TypedDict, total=False):
@@ -52,20 +51,6 @@ class PullRequest(TypedDict, total=False):
5251
"""
5352

5453

55-
class ReportOutput(total=False):
56-
pass
57-
58-
59-
class Report(TypedDict, total=False):
60-
outputs: Iterable[ReportOutput]
61-
"""Report must have at least one output:
62-
63-
```
64-
size(this) >= 1
65-
```
66-
"""
67-
68-
6954
class Task(TypedDict, total=False):
7055
"""WorkflowTaskStep represents a task step that executes a command."""
7156

@@ -87,7 +72,5 @@ class WorkflowStepParam(TypedDict, total=False):
8772
pull_request: Annotated[PullRequest, PropertyInfo(alias="pullRequest")]
8873
"""WorkflowPullRequestStep represents a pull request creation step."""
8974

90-
report: Report
91-
9275
task: Task
9376
"""WorkflowTaskStep represents a task step that executes a command."""

tests/api_resources/test_automations.py

Lines changed: 0 additions & 168 deletions
Original file line numberDiff line numberDiff line change
@@ -66,27 +66,6 @@ def test_method_create_with_all_params(self, client: Gitpod) -> None:
6666
"draft": True,
6767
"title": "title",
6868
},
69-
"report": {
70-
"outputs": [
71-
{
72-
"acceptance_criteria": "acceptanceCriteria",
73-
"boolean": {},
74-
"command": "command",
75-
"float": {
76-
"max": 0,
77-
"min": 0,
78-
},
79-
"integer": {
80-
"max": 0,
81-
"min": 0,
82-
},
83-
"key": "key",
84-
"prompt": "prompt",
85-
"string": {"pattern": "pattern"},
86-
"title": "title",
87-
}
88-
]
89-
},
9069
"task": {"command": "command"},
9170
}
9271
],
@@ -112,27 +91,6 @@ def test_method_create_with_all_params(self, client: Gitpod) -> None:
11291
"draft": True,
11392
"title": "title",
11493
},
115-
"report": {
116-
"outputs": [
117-
{
118-
"acceptance_criteria": "acceptanceCriteria",
119-
"boolean": {},
120-
"command": "command",
121-
"float": {
122-
"max": 0,
123-
"min": 0,
124-
},
125-
"integer": {
126-
"max": 0,
127-
"min": 0,
128-
},
129-
"key": "key",
130-
"prompt": "prompt",
131-
"string": {"pattern": "pattern"},
132-
"title": "title",
133-
}
134-
]
135-
},
13694
"task": {"command": "command"},
13795
}
13896
],
@@ -250,27 +208,6 @@ def test_method_update_with_all_params(self, client: Gitpod) -> None:
250208
"draft": True,
251209
"title": "title",
252210
},
253-
"report": {
254-
"outputs": [
255-
{
256-
"acceptance_criteria": "acceptanceCriteria",
257-
"boolean": {},
258-
"command": "command",
259-
"float": {
260-
"max": 0,
261-
"min": 0,
262-
},
263-
"integer": {
264-
"max": 0,
265-
"min": 0,
266-
},
267-
"key": "key",
268-
"prompt": "prompt",
269-
"string": {"pattern": "pattern"},
270-
"title": "title",
271-
}
272-
]
273-
},
274211
"task": {"command": "command"},
275212
}
276213
],
@@ -297,27 +234,6 @@ def test_method_update_with_all_params(self, client: Gitpod) -> None:
297234
"draft": True,
298235
"title": "title",
299236
},
300-
"report": {
301-
"outputs": [
302-
{
303-
"acceptance_criteria": "acceptanceCriteria",
304-
"boolean": {},
305-
"command": "command",
306-
"float": {
307-
"max": 0,
308-
"min": 0,
309-
},
310-
"integer": {
311-
"max": 0,
312-
"min": 0,
313-
},
314-
"key": "key",
315-
"prompt": "prompt",
316-
"string": {"pattern": "pattern"},
317-
"title": "title",
318-
}
319-
]
320-
},
321237
"task": {"command": "command"},
322238
}
323239
],
@@ -830,27 +746,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncGitpod) ->
830746
"draft": True,
831747
"title": "title",
832748
},
833-
"report": {
834-
"outputs": [
835-
{
836-
"acceptance_criteria": "acceptanceCriteria",
837-
"boolean": {},
838-
"command": "command",
839-
"float": {
840-
"max": 0,
841-
"min": 0,
842-
},
843-
"integer": {
844-
"max": 0,
845-
"min": 0,
846-
},
847-
"key": "key",
848-
"prompt": "prompt",
849-
"string": {"pattern": "pattern"},
850-
"title": "title",
851-
}
852-
]
853-
},
854749
"task": {"command": "command"},
855750
}
856751
],
@@ -876,27 +771,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncGitpod) ->
876771
"draft": True,
877772
"title": "title",
878773
},
879-
"report": {
880-
"outputs": [
881-
{
882-
"acceptance_criteria": "acceptanceCriteria",
883-
"boolean": {},
884-
"command": "command",
885-
"float": {
886-
"max": 0,
887-
"min": 0,
888-
},
889-
"integer": {
890-
"max": 0,
891-
"min": 0,
892-
},
893-
"key": "key",
894-
"prompt": "prompt",
895-
"string": {"pattern": "pattern"},
896-
"title": "title",
897-
}
898-
]
899-
},
900774
"task": {"command": "command"},
901775
}
902776
],
@@ -1014,27 +888,6 @@ async def test_method_update_with_all_params(self, async_client: AsyncGitpod) ->
1014888
"draft": True,
1015889
"title": "title",
1016890
},
1017-
"report": {
1018-
"outputs": [
1019-
{
1020-
"acceptance_criteria": "acceptanceCriteria",
1021-
"boolean": {},
1022-
"command": "command",
1023-
"float": {
1024-
"max": 0,
1025-
"min": 0,
1026-
},
1027-
"integer": {
1028-
"max": 0,
1029-
"min": 0,
1030-
},
1031-
"key": "key",
1032-
"prompt": "prompt",
1033-
"string": {"pattern": "pattern"},
1034-
"title": "title",
1035-
}
1036-
]
1037-
},
1038891
"task": {"command": "command"},
1039892
}
1040893
],
@@ -1061,27 +914,6 @@ async def test_method_update_with_all_params(self, async_client: AsyncGitpod) ->
1061914
"draft": True,
1062915
"title": "title",
1063916
},
1064-
"report": {
1065-
"outputs": [
1066-
{
1067-
"acceptance_criteria": "acceptanceCriteria",
1068-
"boolean": {},
1069-
"command": "command",
1070-
"float": {
1071-
"max": 0,
1072-
"min": 0,
1073-
},
1074-
"integer": {
1075-
"max": 0,
1076-
"min": 0,
1077-
},
1078-
"key": "key",
1079-
"prompt": "prompt",
1080-
"string": {"pattern": "pattern"},
1081-
"title": "title",
1082-
}
1083-
]
1084-
},
1085917
"task": {"command": "command"},
1086918
}
1087919
],

0 commit comments

Comments
 (0)