From 3a0c0b134b230c79876a27a994330e19e80eef13 Mon Sep 17 00:00:00 2001 From: dphuang2 Date: Tue, 31 Oct 2023 22:43:34 -0700 Subject: [PATCH] regenerate e2e SDKs --- .../leap_workflows/paths/v1_runs/post.py | 4 -- .../leap_workflows/paths/v1_runs/post.pyi | 4 -- .../paths/v1_runs_workflow_run_id/get.py | 2 - .../paths/v1_runs_workflow_run_id/get.pyi | 2 - .../pydantic/workflow_run_entity.py | 39 ------------------- .../pydantic/workflow_run_post_request.py | 27 ------------- .../workflow_run_post_request_input.py | 20 ---------- .../paths/simple_endpoint/get.py | 4 -- .../paths/simple_endpoint/get.pyi | 4 -- .../pydantic/test_fetch400_response.py | 21 ---------- .../pydantic/test_fetch500_response.py | 21 ---------- .../pydantic/test_fetch_response.py | 28 ------------- 12 files changed, 176 deletions(-) delete mode 100644 generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/pydantic/workflow_run_entity.py delete mode 100644 generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/pydantic/workflow_run_post_request.py delete mode 100644 generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/pydantic/workflow_run_post_request_input.py delete mode 100644 generator/konfig-integration-tests/sdks/python-typeddict-responses/python/python_typeddict/pydantic/test_fetch400_response.py delete mode 100644 generator/konfig-integration-tests/sdks/python-typeddict-responses/python/python_typeddict/pydantic/test_fetch500_response.py delete mode 100644 generator/konfig-integration-tests/sdks/python-typeddict-responses/python/python_typeddict/pydantic/test_fetch_response.py diff --git a/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/paths/v1_runs/post.py b/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/paths/v1_runs/post.py index afb4dcddc..485fd29d2 100644 --- a/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/paths/v1_runs/post.py +++ b/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/paths/v1_runs/post.py @@ -40,10 +40,6 @@ from leap_workflows.type.workflow_run_post_request_input import WorkflowRunPostRequestInput from leap_workflows.type.workflow_run_post_request import WorkflowRunPostRequest -from leap_workflows.pydantic.workflow_run_entity import WorkflowRunEntity as WorkflowRunEntityPydantic -from leap_workflows.pydantic.workflow_run_post_request import WorkflowRunPostRequest as WorkflowRunPostRequestPydantic -from leap_workflows.pydantic.workflow_run_post_request_input import WorkflowRunPostRequestInput as WorkflowRunPostRequestInputPydantic - from . import path # body param diff --git a/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/paths/v1_runs/post.pyi b/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/paths/v1_runs/post.pyi index 686405ad4..e49da1b57 100644 --- a/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/paths/v1_runs/post.pyi +++ b/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/paths/v1_runs/post.pyi @@ -40,10 +40,6 @@ from leap_workflows.type.workflow_run_entity import WorkflowRunEntity from leap_workflows.type.workflow_run_post_request_input import WorkflowRunPostRequestInput from leap_workflows.type.workflow_run_post_request import WorkflowRunPostRequest -from leap_workflows.pydantic.workflow_run_entity import WorkflowRunEntity as WorkflowRunEntityPydantic -from leap_workflows.pydantic.workflow_run_post_request import WorkflowRunPostRequest as WorkflowRunPostRequestPydantic -from leap_workflows.pydantic.workflow_run_post_request_input import WorkflowRunPostRequestInput as WorkflowRunPostRequestInputPydantic - # body param SchemaForRequestBodyApplicationJson = WorkflowRunPostRequestSchema diff --git a/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/paths/v1_runs_workflow_run_id/get.py b/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/paths/v1_runs_workflow_run_id/get.py index dedca9aef..019e07256 100644 --- a/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/paths/v1_runs_workflow_run_id/get.py +++ b/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/paths/v1_runs_workflow_run_id/get.py @@ -36,8 +36,6 @@ from leap_workflows.type.workflow_run_entity import WorkflowRunEntity -from leap_workflows.pydantic.workflow_run_entity import WorkflowRunEntity as WorkflowRunEntityPydantic - from . import path # Path params diff --git a/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/paths/v1_runs_workflow_run_id/get.pyi b/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/paths/v1_runs_workflow_run_id/get.pyi index eafb976ff..d195254eb 100644 --- a/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/paths/v1_runs_workflow_run_id/get.pyi +++ b/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/paths/v1_runs_workflow_run_id/get.pyi @@ -36,8 +36,6 @@ from leap_workflows.model.workflow_run_entity import WorkflowRunEntity as Workfl from leap_workflows.type.workflow_run_entity import WorkflowRunEntity -from leap_workflows.pydantic.workflow_run_entity import WorkflowRunEntity as WorkflowRunEntityPydantic - # Path params WorkflowRunIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( diff --git a/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/pydantic/workflow_run_entity.py b/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/pydantic/workflow_run_entity.py deleted file mode 100644 index a5441e874..000000000 --- a/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/pydantic/workflow_run_entity.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Leap Workflows API - - The Leap Workflows API allows developers to run workflows, fetch workflow runs, and provide other utility functions related to workflow runs. Please use the X-Api-Key for authenticated requests. - - The version of the OpenAPI document: 1.0 - Contact: help@tryleap.ai - Created by: https://tryleap.ai/ -""" - -from datetime import datetime, date -import typing -from enum import Enum -from typing_extensions import TypedDict, Literal -from pydantic import BaseModel, Field - - -class WorkflowRunEntity(BaseModel): - id: str = Field(alias='id') - - version_id: str = Field(alias='version_id') - - status: str = Field(alias='status') - - created_at: datetime = Field(alias='created_at') - - started_at: datetime = Field(alias='started_at') - - ended_at: datetime = Field(alias='ended_at') - - workflow_id: str = Field(alias='workflow_id') - - error: str = Field(alias='error') - - input: typing.Dict[str, typing.Union[bool, date, datetime, dict, float, int, list, str, None]] = Field(alias='input') - - output: typing.Dict[str, typing.Union[bool, date, datetime, dict, float, int, list, str, None]] = Field(alias='output') diff --git a/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/pydantic/workflow_run_post_request.py b/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/pydantic/workflow_run_post_request.py deleted file mode 100644 index 0b24fca4e..000000000 --- a/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/pydantic/workflow_run_post_request.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding: utf-8 - -""" - Leap Workflows API - - The Leap Workflows API allows developers to run workflows, fetch workflow runs, and provide other utility functions related to workflow runs. Please use the X-Api-Key for authenticated requests. - - The version of the OpenAPI document: 1.0 - Contact: help@tryleap.ai - Created by: https://tryleap.ai/ -""" - -from datetime import datetime, date -import typing -from enum import Enum -from typing_extensions import TypedDict, Literal -from pydantic import BaseModel, Field - -from leap_workflows.pydantic.workflow_run_post_request_input import WorkflowRunPostRequestInput - -class WorkflowRunPostRequest(BaseModel): - # The UUID of the workflow to be run. - workflow_id: str = Field(alias='workflow_id') - # The URL to which the workflow results should be sent to on completion. - webhook_url: str = Field(None, alias='webhook_url') - - input: WorkflowRunPostRequestInput = Field(None, alias='input') diff --git a/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/pydantic/workflow_run_post_request_input.py b/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/pydantic/workflow_run_post_request_input.py deleted file mode 100644 index 7c7f4a2bb..000000000 --- a/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/leap_workflows/pydantic/workflow_run_post_request_input.py +++ /dev/null @@ -1,20 +0,0 @@ -# coding: utf-8 - -""" - Leap Workflows API - - The Leap Workflows API allows developers to run workflows, fetch workflow runs, and provide other utility functions related to workflow runs. Please use the X-Api-Key for authenticated requests. - - The version of the OpenAPI document: 1.0 - Contact: help@tryleap.ai - Created by: https://tryleap.ai/ -""" - -from datetime import datetime, date -import typing -from enum import Enum -from typing_extensions import TypedDict, Literal -from pydantic import BaseModel, Field - - -WorkflowRunPostRequestInput = dict diff --git a/generator/konfig-integration-tests/sdks/python-typeddict-responses/python/python_typeddict/paths/simple_endpoint/get.py b/generator/konfig-integration-tests/sdks/python-typeddict-responses/python/python_typeddict/paths/simple_endpoint/get.py index 1c2feebe5..40a1124aa 100644 --- a/generator/konfig-integration-tests/sdks/python-typeddict-responses/python/python_typeddict/paths/simple_endpoint/get.py +++ b/generator/konfig-integration-tests/sdks/python-typeddict-responses/python/python_typeddict/paths/simple_endpoint/get.py @@ -40,10 +40,6 @@ from python_typeddict.type.test_fetch400_response import TestFetch400Response from python_typeddict.type.test_fetch_response import TestFetchResponse -from python_typeddict.pydantic.test_fetch500_response import TestFetch500Response as TestFetch500ResponsePydantic -from python_typeddict.pydantic.test_fetch400_response import TestFetch400Response as TestFetch400ResponsePydantic -from python_typeddict.pydantic.test_fetch_response import TestFetchResponse as TestFetchResponsePydantic - from . import path # Query params diff --git a/generator/konfig-integration-tests/sdks/python-typeddict-responses/python/python_typeddict/paths/simple_endpoint/get.pyi b/generator/konfig-integration-tests/sdks/python-typeddict-responses/python/python_typeddict/paths/simple_endpoint/get.pyi index 40f292012..716ea2028 100644 --- a/generator/konfig-integration-tests/sdks/python-typeddict-responses/python/python_typeddict/paths/simple_endpoint/get.pyi +++ b/generator/konfig-integration-tests/sdks/python-typeddict-responses/python/python_typeddict/paths/simple_endpoint/get.pyi @@ -40,10 +40,6 @@ from python_typeddict.type.test_fetch500_response import TestFetch500Response from python_typeddict.type.test_fetch400_response import TestFetch400Response from python_typeddict.type.test_fetch_response import TestFetchResponse -from python_typeddict.pydantic.test_fetch500_response import TestFetch500Response as TestFetch500ResponsePydantic -from python_typeddict.pydantic.test_fetch400_response import TestFetch400Response as TestFetch400ResponsePydantic -from python_typeddict.pydantic.test_fetch_response import TestFetchResponse as TestFetchResponsePydantic - # Query params InputParameterSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( diff --git a/generator/konfig-integration-tests/sdks/python-typeddict-responses/python/python_typeddict/pydantic/test_fetch400_response.py b/generator/konfig-integration-tests/sdks/python-typeddict-responses/python/python_typeddict/pydantic/test_fetch400_response.py deleted file mode 100644 index d1ac05fbd..000000000 --- a/generator/konfig-integration-tests/sdks/python-typeddict-responses/python/python_typeddict/pydantic/test_fetch400_response.py +++ /dev/null @@ -1,21 +0,0 @@ -# coding: utf-8 - -""" - Python TypedDict Responses API - - A simple API based on python typeddict responses. - - The version of the OpenAPI document: 1.0.0 - Contact: support@example.com - Created by: http://example.com/support -""" - -from datetime import datetime, date -import typing -from enum import Enum -from typing_extensions import TypedDict, Literal -from pydantic import BaseModel, Field - - -class TestFetch400Response(BaseModel): - error: str = Field(None, alias='error') diff --git a/generator/konfig-integration-tests/sdks/python-typeddict-responses/python/python_typeddict/pydantic/test_fetch500_response.py b/generator/konfig-integration-tests/sdks/python-typeddict-responses/python/python_typeddict/pydantic/test_fetch500_response.py deleted file mode 100644 index 550ba17df..000000000 --- a/generator/konfig-integration-tests/sdks/python-typeddict-responses/python/python_typeddict/pydantic/test_fetch500_response.py +++ /dev/null @@ -1,21 +0,0 @@ -# coding: utf-8 - -""" - Python TypedDict Responses API - - A simple API based on python typeddict responses. - - The version of the OpenAPI document: 1.0.0 - Contact: support@example.com - Created by: http://example.com/support -""" - -from datetime import datetime, date -import typing -from enum import Enum -from typing_extensions import TypedDict, Literal -from pydantic import BaseModel, Field - - -class TestFetch500Response(BaseModel): - error: str = Field(None, alias='error') diff --git a/generator/konfig-integration-tests/sdks/python-typeddict-responses/python/python_typeddict/pydantic/test_fetch_response.py b/generator/konfig-integration-tests/sdks/python-typeddict-responses/python/python_typeddict/pydantic/test_fetch_response.py deleted file mode 100644 index 05fccc1e8..000000000 --- a/generator/konfig-integration-tests/sdks/python-typeddict-responses/python/python_typeddict/pydantic/test_fetch_response.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding: utf-8 - -""" - Python TypedDict Responses API - - A simple API based on python typeddict responses. - - The version of the OpenAPI document: 1.0.0 - Contact: support@example.com - Created by: http://example.com/support -""" - -from datetime import datetime, date -import typing -from enum import Enum -from typing_extensions import TypedDict, Literal -from pydantic import BaseModel, Field - - -class TestFetchResponse(BaseModel): - # Description of property A. - property_a: str = Field(None, alias='propertyA') - - # Description of property B. - property_b: int = Field(None, alias='propertyB') - - # Description of property C. - property_c: bool = Field(None, alias='propertyC')