Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 18 additions & 14 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -8076,7 +8076,7 @@ Methods:
Types:

```python
from cloudflare.types import (
from cloudflare.types.security_txt import (
SecurityTXTUpdateResponse,
SecurityTXTDeleteResponse,
SecurityTXTGetResponse,
Expand All @@ -8085,23 +8085,27 @@ from cloudflare.types import (

Methods:

- <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>
- <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>
- <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>
- <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>
- <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>
- <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>

# Workflows

Types:

```python
from cloudflare.types import WorkflowUpdateResponse, WorkflowListResponse, WorkflowGetResponse
from cloudflare.types.workflows import (
WorkflowUpdateResponse,
WorkflowListResponse,
WorkflowGetResponse,
)
```

Methods:

- <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>
- <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>
- <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>
- <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>
- <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>
- <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>

## Instances

Expand Down Expand Up @@ -8151,7 +8155,7 @@ Methods:
Types:

```python
from cloudflare.types import (
from cloudflare.types.resource_sharing import (
ResourceSharingCreateResponse,
ResourceSharingUpdateResponse,
ResourceSharingListResponse,
Expand All @@ -8162,11 +8166,11 @@ from cloudflare.types import (

Methods:

- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>

## Recipients

Expand Down
46 changes: 0 additions & 46 deletions src/cloudflare/resources/__init__.py
Original file line number Diff line number Diff line change
@@ -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",
]
20 changes: 10 additions & 10 deletions src/cloudflare/resources/resource_sharing/resource_sharing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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"]

Expand Down
8 changes: 4 additions & 4 deletions src/cloudflare/resources/security_txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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"]

Expand Down
8 changes: 4 additions & 4 deletions src/cloudflare/resources/workflows/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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"]

Expand Down
17 changes: 0 additions & 17 deletions src/cloudflare/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 8 additions & 0 deletions src/cloudflare/types/resource_sharing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from datetime import datetime
from typing_extensions import Literal

from .._models import BaseModel
from ..._models import BaseModel

__all__ = ["ResourceSharingCreateResponse"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from datetime import datetime
from typing_extensions import Literal

from .._models import BaseModel
from ..._models import BaseModel

__all__ = ["ResourceSharingDeleteResponse"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from datetime import datetime
from typing_extensions import Literal

from .._models import BaseModel
from ..._models import BaseModel

__all__ = ["ResourceSharingGetResponse"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from datetime import datetime
from typing_extensions import Literal

from .._models import BaseModel
from ..._models import BaseModel

__all__ = ["ResourceSharingListResponse"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from datetime import datetime
from typing_extensions import Literal

from .._models import BaseModel
from ..._models import BaseModel

__all__ = ["ResourceSharingUpdateResponse"]

Expand Down
8 changes: 8 additions & 0 deletions src/cloudflare/types/security_txt/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from pydantic import Field as FieldInfo

from .._models import BaseModel
from ..._models import BaseModel

__all__ = ["SecurityTXTGetResponse"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
5 changes: 5 additions & 0 deletions src/cloudflare/types/workflows/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from pydantic import Field as FieldInfo

from .._models import BaseModel
from ..._models import BaseModel

__all__ = ["WorkflowGetResponse", "Instances"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from pydantic import Field as FieldInfo

from .._models import BaseModel
from ..._models import BaseModel

__all__ = ["WorkflowListResponse", "Instances"]

Expand Down
Loading