From 367670b3a568d0fa3204fb899bab0ccaf45deff6 Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Mon, 18 Nov 2024 02:19:49 +0000 Subject: [PATCH] feat(api): manual updates --- api.md | 32 +++++++------ src/cloudflare/resources/__init__.py | 46 ------------------- .../resource_sharing/resource_sharing.py | 20 ++++---- src/cloudflare/resources/security_txt.py | 8 ++-- .../resources/workflows/workflows.py | 8 ++-- src/cloudflare/types/__init__.py | 17 ------- .../types/resource_sharing/__init__.py | 8 ++++ .../resource_sharing_create_params.py | 0 .../resource_sharing_create_response.py | 2 +- .../resource_sharing_delete_response.py | 2 +- .../resource_sharing_get_response.py | 2 +- .../resource_sharing_list_params.py | 0 .../resource_sharing_list_response.py | 2 +- .../resource_sharing_update_params.py | 0 .../resource_sharing_update_response.py | 2 +- src/cloudflare/types/security_txt/__init__.py | 8 ++++ .../security_txt_delete_response.py | 4 +- .../security_txt_get_response.py | 2 +- .../security_txt_update_params.py | 2 +- .../security_txt_update_response.py | 4 +- src/cloudflare/types/workflows/__init__.py | 5 ++ .../{ => workflows}/workflow_get_response.py | 2 +- .../{ => workflows}/workflow_list_params.py | 0 .../{ => workflows}/workflow_list_response.py | 2 +- .../{ => workflows}/workflow_update_params.py | 0 .../workflow_update_response.py | 2 +- tests/api_resources/test_resource_sharing.py | 4 +- tests/api_resources/test_security_txt.py | 4 +- tests/api_resources/test_workflows.py | 4 +- 29 files changed, 77 insertions(+), 115 deletions(-) rename src/cloudflare/types/{ => resource_sharing}/resource_sharing_create_params.py (100%) rename src/cloudflare/types/{ => resource_sharing}/resource_sharing_create_response.py (96%) rename src/cloudflare/types/{ => resource_sharing}/resource_sharing_delete_response.py (96%) rename src/cloudflare/types/{ => resource_sharing}/resource_sharing_get_response.py (96%) rename src/cloudflare/types/{ => resource_sharing}/resource_sharing_list_params.py (100%) rename src/cloudflare/types/{ => resource_sharing}/resource_sharing_list_response.py (96%) rename src/cloudflare/types/{ => resource_sharing}/resource_sharing_update_params.py (100%) rename src/cloudflare/types/{ => resource_sharing}/resource_sharing_update_response.py (96%) create mode 100644 src/cloudflare/types/security_txt/__init__.py rename src/cloudflare/types/{ => security_txt}/security_txt_delete_response.py (82%) rename src/cloudflare/types/{ => security_txt}/security_txt_get_response.py (95%) rename src/cloudflare/types/{ => security_txt}/security_txt_update_params.py (95%) rename src/cloudflare/types/{ => security_txt}/security_txt_update_response.py (82%) rename src/cloudflare/types/{ => workflows}/workflow_get_response.py (96%) rename src/cloudflare/types/{ => workflows}/workflow_list_params.py (100%) rename src/cloudflare/types/{ => workflows}/workflow_list_response.py (96%) rename src/cloudflare/types/{ => workflows}/workflow_update_params.py (100%) rename src/cloudflare/types/{ => workflows}/workflow_update_response.py (92%) diff --git a/api.md b/api.md index 47810aa7fa3..38857e0b83f 100644 --- a/api.md +++ b/api.md @@ -8076,7 +8076,7 @@ Methods: Types: ```python -from cloudflare.types import ( +from cloudflare.types.security_txt import ( SecurityTXTUpdateResponse, SecurityTXTDeleteResponse, SecurityTXTGetResponse, @@ -8085,23 +8085,27 @@ from cloudflare.types import ( Methods: -- client.security_txt.update(\*, zone_id, \*\*params) -> SecurityTXTUpdateResponse -- client.security_txt.delete(\*, zone_id) -> SecurityTXTDeleteResponse -- client.security_txt.get(\*, zone_id) -> Optional +- client.security_txt.update(\*, zone_id, \*\*params) -> SecurityTXTUpdateResponse +- client.security_txt.delete(\*, zone_id) -> SecurityTXTDeleteResponse +- client.security_txt.get(\*, zone_id) -> Optional # Workflows Types: ```python -from cloudflare.types import WorkflowUpdateResponse, WorkflowListResponse, WorkflowGetResponse +from cloudflare.types.workflows import ( + WorkflowUpdateResponse, + WorkflowListResponse, + WorkflowGetResponse, +) ``` Methods: -- client.workflows.update(workflow_name, \*, account_id, \*\*params) -> WorkflowUpdateResponse -- client.workflows.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[WorkflowListResponse] -- client.workflows.get(workflow_name, \*, account_id) -> WorkflowGetResponse +- client.workflows.update(workflow_name, \*, account_id, \*\*params) -> WorkflowUpdateResponse +- client.workflows.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[WorkflowListResponse] +- client.workflows.get(workflow_name, \*, account_id) -> WorkflowGetResponse ## Instances @@ -8151,7 +8155,7 @@ Methods: Types: ```python -from cloudflare.types import ( +from cloudflare.types.resource_sharing import ( ResourceSharingCreateResponse, ResourceSharingUpdateResponse, ResourceSharingListResponse, @@ -8162,11 +8166,11 @@ from cloudflare.types import ( Methods: -- client.resource_sharing.create(\*, account_id, \*\*params) -> Optional -- client.resource_sharing.update(share_identifier, \*, account_id, \*\*params) -> Optional -- client.resource_sharing.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[ResourceSharingListResponse] -- client.resource_sharing.delete(share_identifier, \*, account_id) -> Optional -- client.resource_sharing.get(share_identifier, \*, account_id) -> Optional +- client.resource_sharing.create(\*, account_id, \*\*params) -> Optional +- client.resource_sharing.update(share_identifier, \*, account_id, \*\*params) -> Optional +- client.resource_sharing.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[ResourceSharingListResponse] +- client.resource_sharing.delete(share_identifier, \*, account_id) -> Optional +- client.resource_sharing.get(share_identifier, \*, account_id) -> Optional ## Recipients diff --git a/src/cloudflare/resources/__init__.py b/src/cloudflare/resources/__init__.py index 31da01fc87e..fd8019a9a1a 100644 --- a/src/cloudflare/resources/__init__.py +++ b/src/cloudflare/resources/__init__.py @@ -1,47 +1 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from .workflows import ( - WorkflowsResource, - AsyncWorkflowsResource, - WorkflowsResourceWithRawResponse, - AsyncWorkflowsResourceWithRawResponse, - WorkflowsResourceWithStreamingResponse, - AsyncWorkflowsResourceWithStreamingResponse, -) -from .security_txt import ( - SecurityTXTResource, - AsyncSecurityTXTResource, - SecurityTXTResourceWithRawResponse, - AsyncSecurityTXTResourceWithRawResponse, - SecurityTXTResourceWithStreamingResponse, - AsyncSecurityTXTResourceWithStreamingResponse, -) -from .resource_sharing import ( - ResourceSharingResource, - AsyncResourceSharingResource, - ResourceSharingResourceWithRawResponse, - AsyncResourceSharingResourceWithRawResponse, - ResourceSharingResourceWithStreamingResponse, - AsyncResourceSharingResourceWithStreamingResponse, -) - -__all__ = [ - "SecurityTXTResource", - "AsyncSecurityTXTResource", - "SecurityTXTResourceWithRawResponse", - "AsyncSecurityTXTResourceWithRawResponse", - "SecurityTXTResourceWithStreamingResponse", - "AsyncSecurityTXTResourceWithStreamingResponse", - "WorkflowsResource", - "AsyncWorkflowsResource", - "WorkflowsResourceWithRawResponse", - "AsyncWorkflowsResourceWithRawResponse", - "WorkflowsResourceWithStreamingResponse", - "AsyncWorkflowsResourceWithStreamingResponse", - "ResourceSharingResource", - "AsyncResourceSharingResource", - "ResourceSharingResourceWithRawResponse", - "AsyncResourceSharingResourceWithRawResponse", - "ResourceSharingResourceWithStreamingResponse", - "AsyncResourceSharingResourceWithStreamingResponse", -] diff --git a/src/cloudflare/resources/resource_sharing/resource_sharing.py b/src/cloudflare/resources/resource_sharing/resource_sharing.py index ced1d67a7d2..ac039aef464 100644 --- a/src/cloudflare/resources/resource_sharing/resource_sharing.py +++ b/src/cloudflare/resources/resource_sharing/resource_sharing.py @@ -7,11 +7,6 @@ import httpx -from ...types import ( - resource_sharing_list_params, - resource_sharing_create_params, - resource_sharing_update_params, -) from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import ( maybe_transform, @@ -44,11 +39,16 @@ from ..._wrappers import ResultWrapper from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray from ..._base_client import AsyncPaginator, make_request_options -from ...types.resource_sharing_get_response import ResourceSharingGetResponse -from ...types.resource_sharing_list_response import ResourceSharingListResponse -from ...types.resource_sharing_create_response import ResourceSharingCreateResponse -from ...types.resource_sharing_delete_response import ResourceSharingDeleteResponse -from ...types.resource_sharing_update_response import ResourceSharingUpdateResponse +from ...types.resource_sharing import ( + resource_sharing_list_params, + resource_sharing_create_params, + resource_sharing_update_params, +) +from ...types.resource_sharing.resource_sharing_get_response import ResourceSharingGetResponse +from ...types.resource_sharing.resource_sharing_list_response import ResourceSharingListResponse +from ...types.resource_sharing.resource_sharing_create_response import ResourceSharingCreateResponse +from ...types.resource_sharing.resource_sharing_delete_response import ResourceSharingDeleteResponse +from ...types.resource_sharing.resource_sharing_update_response import ResourceSharingUpdateResponse __all__ = ["ResourceSharingResource", "AsyncResourceSharingResource"] diff --git a/src/cloudflare/resources/security_txt.py b/src/cloudflare/resources/security_txt.py index b1819ab05f1..df4c5429e05 100644 --- a/src/cloudflare/resources/security_txt.py +++ b/src/cloudflare/resources/security_txt.py @@ -7,7 +7,6 @@ import httpx -from ..types import security_txt_update_params from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven from .._utils import ( maybe_transform, @@ -23,9 +22,10 @@ ) from .._wrappers import ResultWrapper from .._base_client import make_request_options -from ..types.security_txt_get_response import SecurityTXTGetResponse -from ..types.security_txt_delete_response import SecurityTXTDeleteResponse -from ..types.security_txt_update_response import SecurityTXTUpdateResponse +from ..types.security_txt import security_txt_update_params +from ..types.security_txt.security_txt_get_response import SecurityTXTGetResponse +from ..types.security_txt.security_txt_delete_response import SecurityTXTDeleteResponse +from ..types.security_txt.security_txt_update_response import SecurityTXTUpdateResponse __all__ = ["SecurityTXTResource", "AsyncSecurityTXTResource"] diff --git a/src/cloudflare/resources/workflows/workflows.py b/src/cloudflare/resources/workflows/workflows.py index 4cb10e51839..2dc98b1a542 100644 --- a/src/cloudflare/resources/workflows/workflows.py +++ b/src/cloudflare/resources/workflows/workflows.py @@ -6,7 +6,6 @@ import httpx -from ...types import workflow_list_params, workflow_update_params from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import ( maybe_transform, @@ -39,10 +38,11 @@ from ..._wrappers import ResultWrapper from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray from ..._base_client import AsyncPaginator, make_request_options +from ...types.workflows import workflow_list_params, workflow_update_params from .instances.instances import InstancesResource, AsyncInstancesResource -from ...types.workflow_get_response import WorkflowGetResponse -from ...types.workflow_list_response import WorkflowListResponse -from ...types.workflow_update_response import WorkflowUpdateResponse +from ...types.workflows.workflow_get_response import WorkflowGetResponse +from ...types.workflows.workflow_list_response import WorkflowListResponse +from ...types.workflows.workflow_update_response import WorkflowUpdateResponse __all__ = ["WorkflowsResource", "AsyncWorkflowsResource"] diff --git a/src/cloudflare/types/__init__.py b/src/cloudflare/types/__init__.py index d31e7a70eca..bfc0722f849 100644 --- a/src/cloudflare/types/__init__.py +++ b/src/cloudflare/types/__init__.py @@ -28,20 +28,3 @@ CertificateRequestType as CertificateRequestType, TokenConditionCIDRList as TokenConditionCIDRList, ) -from .workflow_list_params import WorkflowListParams as WorkflowListParams -from .workflow_get_response import WorkflowGetResponse as WorkflowGetResponse -from .workflow_list_response import WorkflowListResponse as WorkflowListResponse -from .workflow_update_params import WorkflowUpdateParams as WorkflowUpdateParams -from .workflow_update_response import WorkflowUpdateResponse as WorkflowUpdateResponse -from .security_txt_get_response import SecurityTXTGetResponse as SecurityTXTGetResponse -from .security_txt_update_params import SecurityTXTUpdateParams as SecurityTXTUpdateParams -from .resource_sharing_list_params import ResourceSharingListParams as ResourceSharingListParams -from .security_txt_delete_response import SecurityTXTDeleteResponse as SecurityTXTDeleteResponse -from .security_txt_update_response import SecurityTXTUpdateResponse as SecurityTXTUpdateResponse -from .resource_sharing_get_response import ResourceSharingGetResponse as ResourceSharingGetResponse -from .resource_sharing_create_params import ResourceSharingCreateParams as ResourceSharingCreateParams -from .resource_sharing_list_response import ResourceSharingListResponse as ResourceSharingListResponse -from .resource_sharing_update_params import ResourceSharingUpdateParams as ResourceSharingUpdateParams -from .resource_sharing_create_response import ResourceSharingCreateResponse as ResourceSharingCreateResponse -from .resource_sharing_delete_response import ResourceSharingDeleteResponse as ResourceSharingDeleteResponse -from .resource_sharing_update_response import ResourceSharingUpdateResponse as ResourceSharingUpdateResponse diff --git a/src/cloudflare/types/resource_sharing/__init__.py b/src/cloudflare/types/resource_sharing/__init__.py index a80fbad5740..7fcb1c45e77 100644 --- a/src/cloudflare/types/resource_sharing/__init__.py +++ b/src/cloudflare/types/resource_sharing/__init__.py @@ -16,3 +16,11 @@ from .resource_update_response import ResourceUpdateResponse as ResourceUpdateResponse from .recipient_create_response import RecipientCreateResponse as RecipientCreateResponse from .recipient_delete_response import RecipientDeleteResponse as RecipientDeleteResponse +from .resource_sharing_list_params import ResourceSharingListParams as ResourceSharingListParams +from .resource_sharing_get_response import ResourceSharingGetResponse as ResourceSharingGetResponse +from .resource_sharing_create_params import ResourceSharingCreateParams as ResourceSharingCreateParams +from .resource_sharing_list_response import ResourceSharingListResponse as ResourceSharingListResponse +from .resource_sharing_update_params import ResourceSharingUpdateParams as ResourceSharingUpdateParams +from .resource_sharing_create_response import ResourceSharingCreateResponse as ResourceSharingCreateResponse +from .resource_sharing_delete_response import ResourceSharingDeleteResponse as ResourceSharingDeleteResponse +from .resource_sharing_update_response import ResourceSharingUpdateResponse as ResourceSharingUpdateResponse diff --git a/src/cloudflare/types/resource_sharing_create_params.py b/src/cloudflare/types/resource_sharing/resource_sharing_create_params.py similarity index 100% rename from src/cloudflare/types/resource_sharing_create_params.py rename to src/cloudflare/types/resource_sharing/resource_sharing_create_params.py diff --git a/src/cloudflare/types/resource_sharing_create_response.py b/src/cloudflare/types/resource_sharing/resource_sharing_create_response.py similarity index 96% rename from src/cloudflare/types/resource_sharing_create_response.py rename to src/cloudflare/types/resource_sharing/resource_sharing_create_response.py index c3ba8b5cf4a..9797402e79a 100644 --- a/src/cloudflare/types/resource_sharing_create_response.py +++ b/src/cloudflare/types/resource_sharing/resource_sharing_create_response.py @@ -4,7 +4,7 @@ from datetime import datetime from typing_extensions import Literal -from .._models import BaseModel +from ..._models import BaseModel __all__ = ["ResourceSharingCreateResponse"] diff --git a/src/cloudflare/types/resource_sharing_delete_response.py b/src/cloudflare/types/resource_sharing/resource_sharing_delete_response.py similarity index 96% rename from src/cloudflare/types/resource_sharing_delete_response.py rename to src/cloudflare/types/resource_sharing/resource_sharing_delete_response.py index 5bcd4ca5b34..655a9a6e364 100644 --- a/src/cloudflare/types/resource_sharing_delete_response.py +++ b/src/cloudflare/types/resource_sharing/resource_sharing_delete_response.py @@ -4,7 +4,7 @@ from datetime import datetime from typing_extensions import Literal -from .._models import BaseModel +from ..._models import BaseModel __all__ = ["ResourceSharingDeleteResponse"] diff --git a/src/cloudflare/types/resource_sharing_get_response.py b/src/cloudflare/types/resource_sharing/resource_sharing_get_response.py similarity index 96% rename from src/cloudflare/types/resource_sharing_get_response.py rename to src/cloudflare/types/resource_sharing/resource_sharing_get_response.py index 83a8a015404..b7bc736b975 100644 --- a/src/cloudflare/types/resource_sharing_get_response.py +++ b/src/cloudflare/types/resource_sharing/resource_sharing_get_response.py @@ -4,7 +4,7 @@ from datetime import datetime from typing_extensions import Literal -from .._models import BaseModel +from ..._models import BaseModel __all__ = ["ResourceSharingGetResponse"] diff --git a/src/cloudflare/types/resource_sharing_list_params.py b/src/cloudflare/types/resource_sharing/resource_sharing_list_params.py similarity index 100% rename from src/cloudflare/types/resource_sharing_list_params.py rename to src/cloudflare/types/resource_sharing/resource_sharing_list_params.py diff --git a/src/cloudflare/types/resource_sharing_list_response.py b/src/cloudflare/types/resource_sharing/resource_sharing_list_response.py similarity index 96% rename from src/cloudflare/types/resource_sharing_list_response.py rename to src/cloudflare/types/resource_sharing/resource_sharing_list_response.py index 69f753e9b10..82007c59b61 100644 --- a/src/cloudflare/types/resource_sharing_list_response.py +++ b/src/cloudflare/types/resource_sharing/resource_sharing_list_response.py @@ -4,7 +4,7 @@ from datetime import datetime from typing_extensions import Literal -from .._models import BaseModel +from ..._models import BaseModel __all__ = ["ResourceSharingListResponse"] diff --git a/src/cloudflare/types/resource_sharing_update_params.py b/src/cloudflare/types/resource_sharing/resource_sharing_update_params.py similarity index 100% rename from src/cloudflare/types/resource_sharing_update_params.py rename to src/cloudflare/types/resource_sharing/resource_sharing_update_params.py diff --git a/src/cloudflare/types/resource_sharing_update_response.py b/src/cloudflare/types/resource_sharing/resource_sharing_update_response.py similarity index 96% rename from src/cloudflare/types/resource_sharing_update_response.py rename to src/cloudflare/types/resource_sharing/resource_sharing_update_response.py index 7caa083b2cb..f4d087b6fc1 100644 --- a/src/cloudflare/types/resource_sharing_update_response.py +++ b/src/cloudflare/types/resource_sharing/resource_sharing_update_response.py @@ -4,7 +4,7 @@ from datetime import datetime from typing_extensions import Literal -from .._models import BaseModel +from ..._models import BaseModel __all__ = ["ResourceSharingUpdateResponse"] diff --git a/src/cloudflare/types/security_txt/__init__.py b/src/cloudflare/types/security_txt/__init__.py new file mode 100644 index 00000000000..b21da777b26 --- /dev/null +++ b/src/cloudflare/types/security_txt/__init__.py @@ -0,0 +1,8 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from .security_txt_get_response import SecurityTXTGetResponse as SecurityTXTGetResponse +from .security_txt_update_params import SecurityTXTUpdateParams as SecurityTXTUpdateParams +from .security_txt_delete_response import SecurityTXTDeleteResponse as SecurityTXTDeleteResponse +from .security_txt_update_response import SecurityTXTUpdateResponse as SecurityTXTUpdateResponse diff --git a/src/cloudflare/types/security_txt_delete_response.py b/src/cloudflare/types/security_txt/security_txt_delete_response.py similarity index 82% rename from src/cloudflare/types/security_txt_delete_response.py rename to src/cloudflare/types/security_txt/security_txt_delete_response.py index 0a1efdead10..69da51814d2 100644 --- a/src/cloudflare/types/security_txt_delete_response.py +++ b/src/cloudflare/types/security_txt/security_txt_delete_response.py @@ -3,8 +3,8 @@ from typing import List from typing_extensions import Literal -from .._models import BaseModel -from .shared.response_info import ResponseInfo +from ..._models import BaseModel +from ..shared.response_info import ResponseInfo __all__ = ["SecurityTXTDeleteResponse"] diff --git a/src/cloudflare/types/security_txt_get_response.py b/src/cloudflare/types/security_txt/security_txt_get_response.py similarity index 95% rename from src/cloudflare/types/security_txt_get_response.py rename to src/cloudflare/types/security_txt/security_txt_get_response.py index 57f6e5656c9..21e896fb24a 100644 --- a/src/cloudflare/types/security_txt_get_response.py +++ b/src/cloudflare/types/security_txt/security_txt_get_response.py @@ -5,7 +5,7 @@ from pydantic import Field as FieldInfo -from .._models import BaseModel +from ..._models import BaseModel __all__ = ["SecurityTXTGetResponse"] diff --git a/src/cloudflare/types/security_txt_update_params.py b/src/cloudflare/types/security_txt/security_txt_update_params.py similarity index 95% rename from src/cloudflare/types/security_txt_update_params.py rename to src/cloudflare/types/security_txt/security_txt_update_params.py index d2e0f2fa2d5..c8c9f5f1929 100644 --- a/src/cloudflare/types/security_txt_update_params.py +++ b/src/cloudflare/types/security_txt/security_txt_update_params.py @@ -6,7 +6,7 @@ from datetime import datetime from typing_extensions import Required, Annotated, TypedDict -from .._utils import PropertyInfo +from ..._utils import PropertyInfo __all__ = ["SecurityTXTUpdateParams"] diff --git a/src/cloudflare/types/security_txt_update_response.py b/src/cloudflare/types/security_txt/security_txt_update_response.py similarity index 82% rename from src/cloudflare/types/security_txt_update_response.py rename to src/cloudflare/types/security_txt/security_txt_update_response.py index 2550ad2900f..743a0510ecf 100644 --- a/src/cloudflare/types/security_txt_update_response.py +++ b/src/cloudflare/types/security_txt/security_txt_update_response.py @@ -3,8 +3,8 @@ from typing import List from typing_extensions import Literal -from .._models import BaseModel -from .shared.response_info import ResponseInfo +from ..._models import BaseModel +from ..shared.response_info import ResponseInfo __all__ = ["SecurityTXTUpdateResponse"] diff --git a/src/cloudflare/types/workflows/__init__.py b/src/cloudflare/types/workflows/__init__.py index 5e92c44c064..495bed4a099 100644 --- a/src/cloudflare/types/workflows/__init__.py +++ b/src/cloudflare/types/workflows/__init__.py @@ -5,8 +5,13 @@ from .version_list_params import VersionListParams as VersionListParams from .instance_list_params import InstanceListParams as InstanceListParams from .version_get_response import VersionGetResponse as VersionGetResponse +from .workflow_list_params import WorkflowListParams as WorkflowListParams from .instance_get_response import InstanceGetResponse as InstanceGetResponse from .version_list_response import VersionListResponse as VersionListResponse +from .workflow_get_response import WorkflowGetResponse as WorkflowGetResponse from .instance_create_params import InstanceCreateParams as InstanceCreateParams from .instance_list_response import InstanceListResponse as InstanceListResponse +from .workflow_list_response import WorkflowListResponse as WorkflowListResponse +from .workflow_update_params import WorkflowUpdateParams as WorkflowUpdateParams from .instance_create_response import InstanceCreateResponse as InstanceCreateResponse +from .workflow_update_response import WorkflowUpdateResponse as WorkflowUpdateResponse diff --git a/src/cloudflare/types/workflow_get_response.py b/src/cloudflare/types/workflows/workflow_get_response.py similarity index 96% rename from src/cloudflare/types/workflow_get_response.py rename to src/cloudflare/types/workflows/workflow_get_response.py index abc6dfc6953..bec4ddd6139 100644 --- a/src/cloudflare/types/workflow_get_response.py +++ b/src/cloudflare/types/workflows/workflow_get_response.py @@ -5,7 +5,7 @@ from pydantic import Field as FieldInfo -from .._models import BaseModel +from ..._models import BaseModel __all__ = ["WorkflowGetResponse", "Instances"] diff --git a/src/cloudflare/types/workflow_list_params.py b/src/cloudflare/types/workflows/workflow_list_params.py similarity index 100% rename from src/cloudflare/types/workflow_list_params.py rename to src/cloudflare/types/workflows/workflow_list_params.py diff --git a/src/cloudflare/types/workflow_list_response.py b/src/cloudflare/types/workflows/workflow_list_response.py similarity index 96% rename from src/cloudflare/types/workflow_list_response.py rename to src/cloudflare/types/workflows/workflow_list_response.py index a4d7de84caf..0fe1c0440e2 100644 --- a/src/cloudflare/types/workflow_list_response.py +++ b/src/cloudflare/types/workflows/workflow_list_response.py @@ -5,7 +5,7 @@ from pydantic import Field as FieldInfo -from .._models import BaseModel +from ..._models import BaseModel __all__ = ["WorkflowListResponse", "Instances"] diff --git a/src/cloudflare/types/workflow_update_params.py b/src/cloudflare/types/workflows/workflow_update_params.py similarity index 100% rename from src/cloudflare/types/workflow_update_params.py rename to src/cloudflare/types/workflows/workflow_update_params.py diff --git a/src/cloudflare/types/workflow_update_response.py b/src/cloudflare/types/workflows/workflow_update_response.py similarity index 92% rename from src/cloudflare/types/workflow_update_response.py rename to src/cloudflare/types/workflows/workflow_update_response.py index 8ce905658c4..2c4acd22caa 100644 --- a/src/cloudflare/types/workflow_update_response.py +++ b/src/cloudflare/types/workflows/workflow_update_response.py @@ -3,7 +3,7 @@ from typing import Optional from datetime import datetime -from .._models import BaseModel +from ..._models import BaseModel __all__ = ["WorkflowUpdateResponse"] diff --git a/tests/api_resources/test_resource_sharing.py b/tests/api_resources/test_resource_sharing.py index 6585a18c2e4..76f30d262c8 100644 --- a/tests/api_resources/test_resource_sharing.py +++ b/tests/api_resources/test_resource_sharing.py @@ -9,14 +9,14 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types import ( +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.resource_sharing import ( ResourceSharingGetResponse, ResourceSharingListResponse, ResourceSharingCreateResponse, ResourceSharingDeleteResponse, ResourceSharingUpdateResponse, ) -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_security_txt.py b/tests/api_resources/test_security_txt.py index 97dd91ee929..58f8e8306f3 100644 --- a/tests/api_resources/test_security_txt.py +++ b/tests/api_resources/test_security_txt.py @@ -9,12 +9,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types import ( +from cloudflare._utils import parse_datetime +from cloudflare.types.security_txt import ( SecurityTXTGetResponse, SecurityTXTDeleteResponse, SecurityTXTUpdateResponse, ) -from cloudflare._utils import parse_datetime base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_workflows.py b/tests/api_resources/test_workflows.py index 1a901264035..e51b6eab539 100644 --- a/tests/api_resources/test_workflows.py +++ b/tests/api_resources/test_workflows.py @@ -9,12 +9,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types import ( +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.workflows import ( WorkflowGetResponse, WorkflowListResponse, WorkflowUpdateResponse, ) -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")