Skip to content

Commit 3f20b98

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): manual updates (#2164)
1 parent c2770ee commit 3f20b98

29 files changed

+77
-115
lines changed

api.md

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8076,7 +8076,7 @@ Methods:
80768076
Types:
80778077

80788078
```python
8079-
from cloudflare.types import (
8079+
from cloudflare.types.security_txt import (
80808080
SecurityTXTUpdateResponse,
80818081
SecurityTXTDeleteResponse,
80828082
SecurityTXTGetResponse,
@@ -8085,23 +8085,27 @@ from cloudflare.types import (
80858085

80868086
Methods:
80878087

8088-
- <code title="put /zones/{zone_id}/security-center/securitytxt">client.security_txt.<a href="./src/cloudflare/resources/security_txt.py">update</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/security_txt_update_params.py">params</a>) -> <a href="./src/cloudflare/types/security_txt_update_response.py">SecurityTXTUpdateResponse</a></code>
8089-
- <code title="delete /zones/{zone_id}/security-center/securitytxt">client.security_txt.<a href="./src/cloudflare/resources/security_txt.py">delete</a>(\*, zone_id) -> <a href="./src/cloudflare/types/security_txt_delete_response.py">SecurityTXTDeleteResponse</a></code>
8090-
- <code title="get /zones/{zone_id}/security-center/securitytxt">client.security_txt.<a href="./src/cloudflare/resources/security_txt.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/security_txt_get_response.py">Optional</a></code>
8088+
- <code title="put /zones/{zone_id}/security-center/securitytxt">client.security_txt.<a href="./src/cloudflare/resources/security_txt.py">update</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/security_txt/security_txt_update_params.py">params</a>) -> <a href="./src/cloudflare/types/security_txt/security_txt_update_response.py">SecurityTXTUpdateResponse</a></code>
8089+
- <code title="delete /zones/{zone_id}/security-center/securitytxt">client.security_txt.<a href="./src/cloudflare/resources/security_txt.py">delete</a>(\*, zone_id) -> <a href="./src/cloudflare/types/security_txt/security_txt_delete_response.py">SecurityTXTDeleteResponse</a></code>
8090+
- <code title="get /zones/{zone_id}/security-center/securitytxt">client.security_txt.<a href="./src/cloudflare/resources/security_txt.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/security_txt/security_txt_get_response.py">Optional</a></code>
80918091

80928092
# Workflows
80938093

80948094
Types:
80958095

80968096
```python
8097-
from cloudflare.types import WorkflowUpdateResponse, WorkflowListResponse, WorkflowGetResponse
8097+
from cloudflare.types.workflows import (
8098+
WorkflowUpdateResponse,
8099+
WorkflowListResponse,
8100+
WorkflowGetResponse,
8101+
)
80988102
```
80998103

81008104
Methods:
81018105

8102-
- <code title="put /accounts/{account_id}/workflows/{workflow_name}">client.workflows.<a href="./src/cloudflare/resources/workflows/workflows.py">update</a>(workflow_name, \*, account_id, \*\*<a href="src/cloudflare/types/workflow_update_params.py">params</a>) -> <a href="./src/cloudflare/types/workflow_update_response.py">WorkflowUpdateResponse</a></code>
8103-
- <code title="get /accounts/{account_id}/workflows">client.workflows.<a href="./src/cloudflare/resources/workflows/workflows.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/workflow_list_params.py">params</a>) -> <a href="./src/cloudflare/types/workflow_list_response.py">SyncV4PagePaginationArray[WorkflowListResponse]</a></code>
8104-
- <code title="get /accounts/{account_id}/workflows/{workflow_name}">client.workflows.<a href="./src/cloudflare/resources/workflows/workflows.py">get</a>(workflow_name, \*, account_id) -> <a href="./src/cloudflare/types/workflow_get_response.py">WorkflowGetResponse</a></code>
8106+
- <code title="put /accounts/{account_id}/workflows/{workflow_name}">client.workflows.<a href="./src/cloudflare/resources/workflows/workflows.py">update</a>(workflow_name, \*, account_id, \*\*<a href="src/cloudflare/types/workflows/workflow_update_params.py">params</a>) -> <a href="./src/cloudflare/types/workflows/workflow_update_response.py">WorkflowUpdateResponse</a></code>
8107+
- <code title="get /accounts/{account_id}/workflows">client.workflows.<a href="./src/cloudflare/resources/workflows/workflows.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/workflows/workflow_list_params.py">params</a>) -> <a href="./src/cloudflare/types/workflows/workflow_list_response.py">SyncV4PagePaginationArray[WorkflowListResponse]</a></code>
8108+
- <code title="get /accounts/{account_id}/workflows/{workflow_name}">client.workflows.<a href="./src/cloudflare/resources/workflows/workflows.py">get</a>(workflow_name, \*, account_id) -> <a href="./src/cloudflare/types/workflows/workflow_get_response.py">WorkflowGetResponse</a></code>
81058109

81068110
## Instances
81078111

@@ -8151,7 +8155,7 @@ Methods:
81518155
Types:
81528156

81538157
```python
8154-
from cloudflare.types import (
8158+
from cloudflare.types.resource_sharing import (
81558159
ResourceSharingCreateResponse,
81568160
ResourceSharingUpdateResponse,
81578161
ResourceSharingListResponse,
@@ -8162,11 +8166,11 @@ from cloudflare.types import (
81628166

81638167
Methods:
81648168

8165-
- <code title="post /accounts/{account_id}/shares">client.resource_sharing.<a href="./src/cloudflare/resources/resource_sharing/resource_sharing.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/resource_sharing_create_params.py">params</a>) -> <a href="./src/cloudflare/types/resource_sharing_create_response.py">Optional</a></code>
8166-
- <code title="put /accounts/{account_id}/shares/{share_identifier}">client.resource_sharing.<a href="./src/cloudflare/resources/resource_sharing/resource_sharing.py">update</a>(share_identifier, \*, account_id, \*\*<a href="src/cloudflare/types/resource_sharing_update_params.py">params</a>) -> <a href="./src/cloudflare/types/resource_sharing_update_response.py">Optional</a></code>
8167-
- <code title="get /accounts/{account_id}/shares">client.resource_sharing.<a href="./src/cloudflare/resources/resource_sharing/resource_sharing.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/resource_sharing_list_params.py">params</a>) -> <a href="./src/cloudflare/types/resource_sharing_list_response.py">SyncV4PagePaginationArray[ResourceSharingListResponse]</a></code>
8168-
- <code title="delete /accounts/{account_id}/shares/{share_identifier}">client.resource_sharing.<a href="./src/cloudflare/resources/resource_sharing/resource_sharing.py">delete</a>(share_identifier, \*, account_id) -> <a href="./src/cloudflare/types/resource_sharing_delete_response.py">Optional</a></code>
8169-
- <code title="get /accounts/{account_id}/shares/{share_identifier}">client.resource_sharing.<a href="./src/cloudflare/resources/resource_sharing/resource_sharing.py">get</a>(share_identifier, \*, account_id) -> <a href="./src/cloudflare/types/resource_sharing_get_response.py">Optional</a></code>
8169+
- <code title="post /accounts/{account_id}/shares">client.resource_sharing.<a href="./src/cloudflare/resources/resource_sharing/resource_sharing.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/resource_sharing/resource_sharing_create_params.py">params</a>) -> <a href="./src/cloudflare/types/resource_sharing/resource_sharing_create_response.py">Optional</a></code>
8170+
- <code title="put /accounts/{account_id}/shares/{share_identifier}">client.resource_sharing.<a href="./src/cloudflare/resources/resource_sharing/resource_sharing.py">update</a>(share_identifier, \*, account_id, \*\*<a href="src/cloudflare/types/resource_sharing/resource_sharing_update_params.py">params</a>) -> <a href="./src/cloudflare/types/resource_sharing/resource_sharing_update_response.py">Optional</a></code>
8171+
- <code title="get /accounts/{account_id}/shares">client.resource_sharing.<a href="./src/cloudflare/resources/resource_sharing/resource_sharing.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/resource_sharing/resource_sharing_list_params.py">params</a>) -> <a href="./src/cloudflare/types/resource_sharing/resource_sharing_list_response.py">SyncV4PagePaginationArray[ResourceSharingListResponse]</a></code>
8172+
- <code title="delete /accounts/{account_id}/shares/{share_identifier}">client.resource_sharing.<a href="./src/cloudflare/resources/resource_sharing/resource_sharing.py">delete</a>(share_identifier, \*, account_id) -> <a href="./src/cloudflare/types/resource_sharing/resource_sharing_delete_response.py">Optional</a></code>
8173+
- <code title="get /accounts/{account_id}/shares/{share_identifier}">client.resource_sharing.<a href="./src/cloudflare/resources/resource_sharing/resource_sharing.py">get</a>(share_identifier, \*, account_id) -> <a href="./src/cloudflare/types/resource_sharing/resource_sharing_get_response.py">Optional</a></code>
81708174

81718175
## Recipients
81728176

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2-
3-
from .workflows import (
4-
WorkflowsResource,
5-
AsyncWorkflowsResource,
6-
WorkflowsResourceWithRawResponse,
7-
AsyncWorkflowsResourceWithRawResponse,
8-
WorkflowsResourceWithStreamingResponse,
9-
AsyncWorkflowsResourceWithStreamingResponse,
10-
)
11-
from .security_txt import (
12-
SecurityTXTResource,
13-
AsyncSecurityTXTResource,
14-
SecurityTXTResourceWithRawResponse,
15-
AsyncSecurityTXTResourceWithRawResponse,
16-
SecurityTXTResourceWithStreamingResponse,
17-
AsyncSecurityTXTResourceWithStreamingResponse,
18-
)
19-
from .resource_sharing import (
20-
ResourceSharingResource,
21-
AsyncResourceSharingResource,
22-
ResourceSharingResourceWithRawResponse,
23-
AsyncResourceSharingResourceWithRawResponse,
24-
ResourceSharingResourceWithStreamingResponse,
25-
AsyncResourceSharingResourceWithStreamingResponse,
26-
)
27-
28-
__all__ = [
29-
"SecurityTXTResource",
30-
"AsyncSecurityTXTResource",
31-
"SecurityTXTResourceWithRawResponse",
32-
"AsyncSecurityTXTResourceWithRawResponse",
33-
"SecurityTXTResourceWithStreamingResponse",
34-
"AsyncSecurityTXTResourceWithStreamingResponse",
35-
"WorkflowsResource",
36-
"AsyncWorkflowsResource",
37-
"WorkflowsResourceWithRawResponse",
38-
"AsyncWorkflowsResourceWithRawResponse",
39-
"WorkflowsResourceWithStreamingResponse",
40-
"AsyncWorkflowsResourceWithStreamingResponse",
41-
"ResourceSharingResource",
42-
"AsyncResourceSharingResource",
43-
"ResourceSharingResourceWithRawResponse",
44-
"AsyncResourceSharingResourceWithRawResponse",
45-
"ResourceSharingResourceWithStreamingResponse",
46-
"AsyncResourceSharingResourceWithStreamingResponse",
47-
]

src/cloudflare/resources/resource_sharing/resource_sharing.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77

88
import httpx
99

10-
from ...types import (
11-
resource_sharing_list_params,
12-
resource_sharing_create_params,
13-
resource_sharing_update_params,
14-
)
1510
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
1611
from ..._utils import (
1712
maybe_transform,
@@ -44,11 +39,16 @@
4439
from ..._wrappers import ResultWrapper
4540
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
4641
from ..._base_client import AsyncPaginator, make_request_options
47-
from ...types.resource_sharing_get_response import ResourceSharingGetResponse
48-
from ...types.resource_sharing_list_response import ResourceSharingListResponse
49-
from ...types.resource_sharing_create_response import ResourceSharingCreateResponse
50-
from ...types.resource_sharing_delete_response import ResourceSharingDeleteResponse
51-
from ...types.resource_sharing_update_response import ResourceSharingUpdateResponse
42+
from ...types.resource_sharing import (
43+
resource_sharing_list_params,
44+
resource_sharing_create_params,
45+
resource_sharing_update_params,
46+
)
47+
from ...types.resource_sharing.resource_sharing_get_response import ResourceSharingGetResponse
48+
from ...types.resource_sharing.resource_sharing_list_response import ResourceSharingListResponse
49+
from ...types.resource_sharing.resource_sharing_create_response import ResourceSharingCreateResponse
50+
from ...types.resource_sharing.resource_sharing_delete_response import ResourceSharingDeleteResponse
51+
from ...types.resource_sharing.resource_sharing_update_response import ResourceSharingUpdateResponse
5252

5353
__all__ = ["ResourceSharingResource", "AsyncResourceSharingResource"]
5454

src/cloudflare/resources/security_txt.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import httpx
99

10-
from ..types import security_txt_update_params
1110
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
1211
from .._utils import (
1312
maybe_transform,
@@ -23,9 +22,10 @@
2322
)
2423
from .._wrappers import ResultWrapper
2524
from .._base_client import make_request_options
26-
from ..types.security_txt_get_response import SecurityTXTGetResponse
27-
from ..types.security_txt_delete_response import SecurityTXTDeleteResponse
28-
from ..types.security_txt_update_response import SecurityTXTUpdateResponse
25+
from ..types.security_txt import security_txt_update_params
26+
from ..types.security_txt.security_txt_get_response import SecurityTXTGetResponse
27+
from ..types.security_txt.security_txt_delete_response import SecurityTXTDeleteResponse
28+
from ..types.security_txt.security_txt_update_response import SecurityTXTUpdateResponse
2929

3030
__all__ = ["SecurityTXTResource", "AsyncSecurityTXTResource"]
3131

src/cloudflare/resources/workflows/workflows.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import httpx
88

9-
from ...types import workflow_list_params, workflow_update_params
109
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
1110
from ..._utils import (
1211
maybe_transform,
@@ -39,10 +38,11 @@
3938
from ..._wrappers import ResultWrapper
4039
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
4140
from ..._base_client import AsyncPaginator, make_request_options
41+
from ...types.workflows import workflow_list_params, workflow_update_params
4242
from .instances.instances import InstancesResource, AsyncInstancesResource
43-
from ...types.workflow_get_response import WorkflowGetResponse
44-
from ...types.workflow_list_response import WorkflowListResponse
45-
from ...types.workflow_update_response import WorkflowUpdateResponse
43+
from ...types.workflows.workflow_get_response import WorkflowGetResponse
44+
from ...types.workflows.workflow_list_response import WorkflowListResponse
45+
from ...types.workflows.workflow_update_response import WorkflowUpdateResponse
4646

4747
__all__ = ["WorkflowsResource", "AsyncWorkflowsResource"]
4848

src/cloudflare/types/__init__.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,3 @@
2828
CertificateRequestType as CertificateRequestType,
2929
TokenConditionCIDRList as TokenConditionCIDRList,
3030
)
31-
from .workflow_list_params import WorkflowListParams as WorkflowListParams
32-
from .workflow_get_response import WorkflowGetResponse as WorkflowGetResponse
33-
from .workflow_list_response import WorkflowListResponse as WorkflowListResponse
34-
from .workflow_update_params import WorkflowUpdateParams as WorkflowUpdateParams
35-
from .workflow_update_response import WorkflowUpdateResponse as WorkflowUpdateResponse
36-
from .security_txt_get_response import SecurityTXTGetResponse as SecurityTXTGetResponse
37-
from .security_txt_update_params import SecurityTXTUpdateParams as SecurityTXTUpdateParams
38-
from .resource_sharing_list_params import ResourceSharingListParams as ResourceSharingListParams
39-
from .security_txt_delete_response import SecurityTXTDeleteResponse as SecurityTXTDeleteResponse
40-
from .security_txt_update_response import SecurityTXTUpdateResponse as SecurityTXTUpdateResponse
41-
from .resource_sharing_get_response import ResourceSharingGetResponse as ResourceSharingGetResponse
42-
from .resource_sharing_create_params import ResourceSharingCreateParams as ResourceSharingCreateParams
43-
from .resource_sharing_list_response import ResourceSharingListResponse as ResourceSharingListResponse
44-
from .resource_sharing_update_params import ResourceSharingUpdateParams as ResourceSharingUpdateParams
45-
from .resource_sharing_create_response import ResourceSharingCreateResponse as ResourceSharingCreateResponse
46-
from .resource_sharing_delete_response import ResourceSharingDeleteResponse as ResourceSharingDeleteResponse
47-
from .resource_sharing_update_response import ResourceSharingUpdateResponse as ResourceSharingUpdateResponse

src/cloudflare/types/resource_sharing/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,11 @@
1616
from .resource_update_response import ResourceUpdateResponse as ResourceUpdateResponse
1717
from .recipient_create_response import RecipientCreateResponse as RecipientCreateResponse
1818
from .recipient_delete_response import RecipientDeleteResponse as RecipientDeleteResponse
19+
from .resource_sharing_list_params import ResourceSharingListParams as ResourceSharingListParams
20+
from .resource_sharing_get_response import ResourceSharingGetResponse as ResourceSharingGetResponse
21+
from .resource_sharing_create_params import ResourceSharingCreateParams as ResourceSharingCreateParams
22+
from .resource_sharing_list_response import ResourceSharingListResponse as ResourceSharingListResponse
23+
from .resource_sharing_update_params import ResourceSharingUpdateParams as ResourceSharingUpdateParams
24+
from .resource_sharing_create_response import ResourceSharingCreateResponse as ResourceSharingCreateResponse
25+
from .resource_sharing_delete_response import ResourceSharingDeleteResponse as ResourceSharingDeleteResponse
26+
from .resource_sharing_update_response import ResourceSharingUpdateResponse as ResourceSharingUpdateResponse

src/cloudflare/types/resource_sharing_create_response.py renamed to src/cloudflare/types/resource_sharing/resource_sharing_create_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from datetime import datetime
55
from typing_extensions import Literal
66

7-
from .._models import BaseModel
7+
from ..._models import BaseModel
88

99
__all__ = ["ResourceSharingCreateResponse"]
1010

src/cloudflare/types/resource_sharing_delete_response.py renamed to src/cloudflare/types/resource_sharing/resource_sharing_delete_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from datetime import datetime
55
from typing_extensions import Literal
66

7-
from .._models import BaseModel
7+
from ..._models import BaseModel
88

99
__all__ = ["ResourceSharingDeleteResponse"]
1010

0 commit comments

Comments
 (0)