Skip to content

Commit ee2f102

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
chore: go live (#259)
1 parent 2b4eb5d commit ee2f102

File tree

3 files changed

+1
-29
lines changed

3 files changed

+1
-29
lines changed

src/openlayer/resources/projects/projects.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def create(
6969
name: str,
7070
task_type: Literal["llm-base", "tabular-classification", "tabular-regression", "text-classification"],
7171
description: Optional[str] | NotGiven = NOT_GIVEN,
72-
git_repo: Optional[project_create_params.GitRepo] | NotGiven = NOT_GIVEN,
7372
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
7473
# The extra values given here take precedence over values defined on the client or passed to this method.
7574
extra_headers: Headers | None = None,
@@ -102,7 +101,6 @@ def create(
102101
"name": name,
103102
"task_type": task_type,
104103
"description": description,
105-
"git_repo": git_repo,
106104
},
107105
project_create_params.ProjectCreateParams,
108106
),
@@ -191,7 +189,6 @@ async def create(
191189
name: str,
192190
task_type: Literal["llm-base", "tabular-classification", "tabular-regression", "text-classification"],
193191
description: Optional[str] | NotGiven = NOT_GIVEN,
194-
git_repo: Optional[project_create_params.GitRepo] | NotGiven = NOT_GIVEN,
195192
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
196193
# The extra values given here take precedence over values defined on the client or passed to this method.
197194
extra_headers: Headers | None = None,
@@ -224,7 +221,6 @@ async def create(
224221
"name": name,
225222
"task_type": task_type,
226223
"description": description,
227-
"git_repo": git_repo,
228224
},
229225
project_create_params.ProjectCreateParams,
230226
),

src/openlayer/types/project_create_params.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from .._utils import PropertyInfo
99

10-
__all__ = ["ProjectCreateParams", "GitRepo"]
10+
__all__ = ["ProjectCreateParams"]
1111

1212

1313
class ProjectCreateParams(TypedDict, total=False):
@@ -24,15 +24,3 @@ class ProjectCreateParams(TypedDict, total=False):
2424

2525
description: Optional[str]
2626
"""The project description."""
27-
28-
git_repo: Annotated[Optional[GitRepo], PropertyInfo(alias="gitRepo")]
29-
30-
31-
class GitRepo(TypedDict, total=False):
32-
git_account_id: Required[Annotated[str, PropertyInfo(alias="gitAccountId")]]
33-
34-
git_id: Required[Annotated[int, PropertyInfo(alias="gitId")]]
35-
36-
branch: str
37-
38-
root_dir: Annotated[str, PropertyInfo(alias="rootDir")]

tests/api_resources/test_projects.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ def test_method_create_with_all_params(self, client: Openlayer) -> None:
3131
name="My Project",
3232
task_type="llm-base",
3333
description="My project description.",
34-
git_repo={
35-
"git_id": 0,
36-
"branch": "string",
37-
"root_dir": "string",
38-
"git_account_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
39-
},
4034
)
4135
assert_matches_type(ProjectCreateResponse, project, path=["response"])
4236

@@ -119,12 +113,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncOpenlayer)
119113
name="My Project",
120114
task_type="llm-base",
121115
description="My project description.",
122-
git_repo={
123-
"git_id": 0,
124-
"branch": "string",
125-
"root_dir": "string",
126-
"git_account_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
127-
},
128116
)
129117
assert_matches_type(ProjectCreateResponse, project, path=["response"])
130118

0 commit comments

Comments
 (0)