From c28596f4ab2f04f912122c30b05e399ed28c109e Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Mon, 8 Jul 2024 19:12:11 +0000 Subject: [PATCH] chore: go live --- src/openlayer/resources/projects/projects.py | 4 ---- src/openlayer/types/project_create_params.py | 14 +------------- tests/api_resources/test_projects.py | 12 ------------ 3 files changed, 1 insertion(+), 29 deletions(-) diff --git a/src/openlayer/resources/projects/projects.py b/src/openlayer/resources/projects/projects.py index 98bbf99b..dfa51af5 100644 --- a/src/openlayer/resources/projects/projects.py +++ b/src/openlayer/resources/projects/projects.py @@ -69,7 +69,6 @@ def create( name: str, task_type: Literal["llm-base", "tabular-classification", "tabular-regression", "text-classification"], description: Optional[str] | NotGiven = NOT_GIVEN, - git_repo: Optional[project_create_params.GitRepo] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -102,7 +101,6 @@ def create( "name": name, "task_type": task_type, "description": description, - "git_repo": git_repo, }, project_create_params.ProjectCreateParams, ), @@ -191,7 +189,6 @@ async def create( name: str, task_type: Literal["llm-base", "tabular-classification", "tabular-regression", "text-classification"], description: Optional[str] | NotGiven = NOT_GIVEN, - git_repo: Optional[project_create_params.GitRepo] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -224,7 +221,6 @@ async def create( "name": name, "task_type": task_type, "description": description, - "git_repo": git_repo, }, project_create_params.ProjectCreateParams, ), diff --git a/src/openlayer/types/project_create_params.py b/src/openlayer/types/project_create_params.py index 3dc3932d..ef11180f 100644 --- a/src/openlayer/types/project_create_params.py +++ b/src/openlayer/types/project_create_params.py @@ -7,7 +7,7 @@ from .._utils import PropertyInfo -__all__ = ["ProjectCreateParams", "GitRepo"] +__all__ = ["ProjectCreateParams"] class ProjectCreateParams(TypedDict, total=False): @@ -24,15 +24,3 @@ class ProjectCreateParams(TypedDict, total=False): description: Optional[str] """The project description.""" - - git_repo: Annotated[Optional[GitRepo], PropertyInfo(alias="gitRepo")] - - -class GitRepo(TypedDict, total=False): - git_account_id: Required[Annotated[str, PropertyInfo(alias="gitAccountId")]] - - git_id: Required[Annotated[int, PropertyInfo(alias="gitId")]] - - branch: str - - root_dir: Annotated[str, PropertyInfo(alias="rootDir")] diff --git a/tests/api_resources/test_projects.py b/tests/api_resources/test_projects.py index 66054743..3da584ed 100644 --- a/tests/api_resources/test_projects.py +++ b/tests/api_resources/test_projects.py @@ -31,12 +31,6 @@ def test_method_create_with_all_params(self, client: Openlayer) -> None: name="My Project", task_type="llm-base", description="My project description.", - git_repo={ - "git_id": 0, - "branch": "string", - "root_dir": "string", - "git_account_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", - }, ) assert_matches_type(ProjectCreateResponse, project, path=["response"]) @@ -119,12 +113,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncOpenlayer) name="My Project", task_type="llm-base", description="My project description.", - git_repo={ - "git_id": 0, - "branch": "string", - "root_dir": "string", - "git_account_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", - }, ) assert_matches_type(ProjectCreateResponse, project, path=["response"])