Skip to content

Commit bf07bc0

Browse files
chore(api): update composite API spec
1 parent 15ecb0f commit bf07bc0

40 files changed

Lines changed: 7161 additions & 3 deletions

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1805
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7fa0e4c343b1272eed3eee2636cf7cd3a6a4d9ba50f662f7365f033d2f977ae2.yml
3-
openapi_spec_hash: c291a4f90813d0744f7cb357e402f778
1+
configured_endpoints: 1823
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7eb998652981c15e5604f499efc09985b3b620f3e5a3e51d87eb07d21fff8ea9.yml
3+
openapi_spec_hash: b8dd8364101c31a6a64e9c591feaee5c
44
config_hash: 4bd8c8b19860de3e5da0f6dfb78ab679

api.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4476,6 +4476,71 @@ Methods:
44764476

44774477
- <code title="get /accounts/{account_id}/mtls_certificates/{mtls_certificate_id}/associations">client.mtls_certificates.associations.<a href="./src/cloudflare/resources/mtls_certificates/associations.py">get</a>(mtls_certificate_id, \*, account_id) -> <a href="./src/cloudflare/types/mtls_certificates/certificate_asssociation.py">SyncSinglePage[CertificateAsssociation]</a></code>
44784478

4479+
# Pages
4480+
4481+
## Projects
4482+
4483+
Types:
4484+
4485+
```python
4486+
from cloudflare.types.pages import Deployment, Project, Stage
4487+
```
4488+
4489+
Methods:
4490+
4491+
- <code title="post /accounts/{account_id}/pages/projects">client.pages.projects.<a href="./src/cloudflare/resources/pages/projects/projects.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/pages/project_create_params.py">params</a>) -> <a href="./src/cloudflare/types/pages/project.py">Project</a></code>
4492+
- <code title="get /accounts/{account_id}/pages/projects">client.pages.projects.<a href="./src/cloudflare/resources/pages/projects/projects.py">list</a>(\*, account_id) -> <a href="./src/cloudflare/types/pages/deployment.py">SyncSinglePage[Deployment]</a></code>
4493+
- <code title="delete /accounts/{account_id}/pages/projects/{project_name}">client.pages.projects.<a href="./src/cloudflare/resources/pages/projects/projects.py">delete</a>(project_name, \*, account_id) -> object</code>
4494+
- <code title="patch /accounts/{account_id}/pages/projects/{project_name}">client.pages.projects.<a href="./src/cloudflare/resources/pages/projects/projects.py">edit</a>(project_name, \*, account_id, \*\*<a href="src/cloudflare/types/pages/project_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/pages/project.py">Project</a></code>
4495+
- <code title="get /accounts/{account_id}/pages/projects/{project_name}">client.pages.projects.<a href="./src/cloudflare/resources/pages/projects/projects.py">get</a>(project_name, \*, account_id) -> <a href="./src/cloudflare/types/pages/project.py">Project</a></code>
4496+
- <code title="post /accounts/{account_id}/pages/projects/{project_name}/purge_build_cache">client.pages.projects.<a href="./src/cloudflare/resources/pages/projects/projects.py">purge_build_cache</a>(project_name, \*, account_id) -> object</code>
4497+
4498+
### Deployments
4499+
4500+
Methods:
4501+
4502+
- <code title="post /accounts/{account_id}/pages/projects/{project_name}/deployments">client.pages.projects.deployments.<a href="./src/cloudflare/resources/pages/projects/deployments/deployments.py">create</a>(project_name, \*, account_id, \*\*<a href="src/cloudflare/types/pages/projects/deployment_create_params.py">params</a>) -> <a href="./src/cloudflare/types/pages/deployment.py">Deployment</a></code>
4503+
- <code title="get /accounts/{account_id}/pages/projects/{project_name}/deployments">client.pages.projects.deployments.<a href="./src/cloudflare/resources/pages/projects/deployments/deployments.py">list</a>(project_name, \*, account_id, \*\*<a href="src/cloudflare/types/pages/projects/deployment_list_params.py">params</a>) -> <a href="./src/cloudflare/types/pages/deployment.py">SyncSinglePage[Deployment]</a></code>
4504+
- <code title="delete /accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}">client.pages.projects.deployments.<a href="./src/cloudflare/resources/pages/projects/deployments/deployments.py">delete</a>(deployment_id, \*, account_id, project_name) -> object</code>
4505+
- <code title="get /accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}">client.pages.projects.deployments.<a href="./src/cloudflare/resources/pages/projects/deployments/deployments.py">get</a>(deployment_id, \*, account_id, project_name) -> <a href="./src/cloudflare/types/pages/deployment.py">Deployment</a></code>
4506+
- <code title="post /accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}/retry">client.pages.projects.deployments.<a href="./src/cloudflare/resources/pages/projects/deployments/deployments.py">retry</a>(deployment_id, \*, account_id, project_name, \*\*<a href="src/cloudflare/types/pages/projects/deployment_retry_params.py">params</a>) -> <a href="./src/cloudflare/types/pages/deployment.py">Deployment</a></code>
4507+
- <code title="post /accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}/rollback">client.pages.projects.deployments.<a href="./src/cloudflare/resources/pages/projects/deployments/deployments.py">rollback</a>(deployment_id, \*, account_id, project_name, \*\*<a href="src/cloudflare/types/pages/projects/deployment_rollback_params.py">params</a>) -> <a href="./src/cloudflare/types/pages/deployment.py">Deployment</a></code>
4508+
4509+
#### History
4510+
4511+
##### Logs
4512+
4513+
Types:
4514+
4515+
```python
4516+
from cloudflare.types.pages.projects.deployments.history import LogGetResponse
4517+
```
4518+
4519+
Methods:
4520+
4521+
- <code title="get /accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}/history/logs">client.pages.projects.deployments.history.logs.<a href="./src/cloudflare/resources/pages/projects/deployments/history/logs.py">get</a>(deployment_id, \*, account_id, project_name) -> <a href="./src/cloudflare/types/pages/projects/deployments/history/log_get_response.py">LogGetResponse</a></code>
4522+
4523+
### Domains
4524+
4525+
Types:
4526+
4527+
```python
4528+
from cloudflare.types.pages.projects import (
4529+
DomainCreateResponse,
4530+
DomainListResponse,
4531+
DomainEditResponse,
4532+
DomainGetResponse,
4533+
)
4534+
```
4535+
4536+
Methods:
4537+
4538+
- <code title="post /accounts/{account_id}/pages/projects/{project_name}/domains">client.pages.projects.domains.<a href="./src/cloudflare/resources/pages/projects/domains.py">create</a>(project_name, \*, account_id, \*\*<a href="src/cloudflare/types/pages/projects/domain_create_params.py">params</a>) -> <a href="./src/cloudflare/types/pages/projects/domain_create_response.py">Optional[DomainCreateResponse]</a></code>
4539+
- <code title="get /accounts/{account_id}/pages/projects/{project_name}/domains">client.pages.projects.domains.<a href="./src/cloudflare/resources/pages/projects/domains.py">list</a>(project_name, \*, account_id) -> <a href="./src/cloudflare/types/pages/projects/domain_list_response.py">SyncSinglePage[DomainListResponse]</a></code>
4540+
- <code title="delete /accounts/{account_id}/pages/projects/{project_name}/domains/{domain_name}">client.pages.projects.domains.<a href="./src/cloudflare/resources/pages/projects/domains.py">delete</a>(domain_name, \*, account_id, project_name) -> object</code>
4541+
- <code title="patch /accounts/{account_id}/pages/projects/{project_name}/domains/{domain_name}">client.pages.projects.domains.<a href="./src/cloudflare/resources/pages/projects/domains.py">edit</a>(domain_name, \*, account_id, project_name, \*\*<a href="src/cloudflare/types/pages/projects/domain_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/pages/projects/domain_edit_response.py">Optional[DomainEditResponse]</a></code>
4542+
- <code title="get /accounts/{account_id}/pages/projects/{project_name}/domains/{domain_name}">client.pages.projects.domains.<a href="./src/cloudflare/resources/pages/projects/domains.py">get</a>(domain_name, \*, account_id, project_name) -> <a href="./src/cloudflare/types/pages/projects/domain_get_response.py">Optional[DomainGetResponse]</a></code>
4543+
44794544
# Registrar
44804545

44814546
## Domains

src/cloudflare/_client.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
cache,
5252
calls,
5353
intel,
54+
pages,
5455
radar,
5556
rules,
5657
speed,
@@ -151,6 +152,7 @@
151152
from .resources.calls.calls import CallsResource, AsyncCallsResource
152153
from .resources.intel.intel import IntelResource, AsyncIntelResource
153154
from .resources.memberships import MembershipsResource, AsyncMembershipsResource
155+
from .resources.pages.pages import PagesResource, AsyncPagesResource
154156
from .resources.radar.radar import RadarResource, AsyncRadarResource
155157
from .resources.rate_limits import RateLimitsResource, AsyncRateLimitsResource
156158
from .resources.rules.rules import RulesResource, AsyncRulesResource
@@ -659,6 +661,12 @@ def mtls_certificates(self) -> MTLSCertificatesResource:
659661

660662
return MTLSCertificatesResource(self)
661663

664+
@cached_property
665+
def pages(self) -> PagesResource:
666+
from .resources.pages import PagesResource
667+
668+
return PagesResource(self)
669+
662670
@cached_property
663671
def registrar(self) -> RegistrarResource:
664672
from .resources.registrar import RegistrarResource
@@ -1485,6 +1493,12 @@ def mtls_certificates(self) -> AsyncMTLSCertificatesResource:
14851493

14861494
return AsyncMTLSCertificatesResource(self)
14871495

1496+
@cached_property
1497+
def pages(self) -> AsyncPagesResource:
1498+
from .resources.pages import AsyncPagesResource
1499+
1500+
return AsyncPagesResource(self)
1501+
14881502
@cached_property
14891503
def registrar(self) -> AsyncRegistrarResource:
14901504
from .resources.registrar import AsyncRegistrarResource
@@ -2239,6 +2253,12 @@ def mtls_certificates(self) -> mtls_certificates.MTLSCertificatesResourceWithRaw
22392253

22402254
return MTLSCertificatesResourceWithRawResponse(self._client.mtls_certificates)
22412255

2256+
@cached_property
2257+
def pages(self) -> pages.PagesResourceWithRawResponse:
2258+
from .resources.pages import PagesResourceWithRawResponse
2259+
2260+
return PagesResourceWithRawResponse(self._client.pages)
2261+
22422262
@cached_property
22432263
def registrar(self) -> registrar.RegistrarResourceWithRawResponse:
22442264
from .resources.registrar import RegistrarResourceWithRawResponse
@@ -2812,6 +2832,12 @@ def mtls_certificates(self) -> mtls_certificates.AsyncMTLSCertificatesResourceWi
28122832

28132833
return AsyncMTLSCertificatesResourceWithRawResponse(self._client.mtls_certificates)
28142834

2835+
@cached_property
2836+
def pages(self) -> pages.AsyncPagesResourceWithRawResponse:
2837+
from .resources.pages import AsyncPagesResourceWithRawResponse
2838+
2839+
return AsyncPagesResourceWithRawResponse(self._client.pages)
2840+
28152841
@cached_property
28162842
def registrar(self) -> registrar.AsyncRegistrarResourceWithRawResponse:
28172843
from .resources.registrar import AsyncRegistrarResourceWithRawResponse
@@ -3385,6 +3411,12 @@ def mtls_certificates(self) -> mtls_certificates.MTLSCertificatesResourceWithStr
33853411

33863412
return MTLSCertificatesResourceWithStreamingResponse(self._client.mtls_certificates)
33873413

3414+
@cached_property
3415+
def pages(self) -> pages.PagesResourceWithStreamingResponse:
3416+
from .resources.pages import PagesResourceWithStreamingResponse
3417+
3418+
return PagesResourceWithStreamingResponse(self._client.pages)
3419+
33883420
@cached_property
33893421
def registrar(self) -> registrar.RegistrarResourceWithStreamingResponse:
33903422
from .resources.registrar import RegistrarResourceWithStreamingResponse
@@ -3962,6 +3994,12 @@ def mtls_certificates(self) -> mtls_certificates.AsyncMTLSCertificatesResourceWi
39623994

39633995
return AsyncMTLSCertificatesResourceWithStreamingResponse(self._client.mtls_certificates)
39643996

3997+
@cached_property
3998+
def pages(self) -> pages.AsyncPagesResourceWithStreamingResponse:
3999+
from .resources.pages import AsyncPagesResourceWithStreamingResponse
4000+
4001+
return AsyncPagesResourceWithStreamingResponse(self._client.pages)
4002+
39654003
@cached_property
39664004
def registrar(self) -> registrar.AsyncRegistrarResourceWithStreamingResponse:
39674005
from .resources.registrar import AsyncRegistrarResourceWithStreamingResponse
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .pages import (
4+
PagesResource,
5+
AsyncPagesResource,
6+
PagesResourceWithRawResponse,
7+
AsyncPagesResourceWithRawResponse,
8+
PagesResourceWithStreamingResponse,
9+
AsyncPagesResourceWithStreamingResponse,
10+
)
11+
from .projects import (
12+
ProjectsResource,
13+
AsyncProjectsResource,
14+
ProjectsResourceWithRawResponse,
15+
AsyncProjectsResourceWithRawResponse,
16+
ProjectsResourceWithStreamingResponse,
17+
AsyncProjectsResourceWithStreamingResponse,
18+
)
19+
20+
__all__ = [
21+
"ProjectsResource",
22+
"AsyncProjectsResource",
23+
"ProjectsResourceWithRawResponse",
24+
"AsyncProjectsResourceWithRawResponse",
25+
"ProjectsResourceWithStreamingResponse",
26+
"AsyncProjectsResourceWithStreamingResponse",
27+
"PagesResource",
28+
"AsyncPagesResource",
29+
"PagesResourceWithRawResponse",
30+
"AsyncPagesResourceWithRawResponse",
31+
"PagesResourceWithStreamingResponse",
32+
"AsyncPagesResourceWithStreamingResponse",
33+
]
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from ..._compat import cached_property
6+
from ..._resource import SyncAPIResource, AsyncAPIResource
7+
from .projects.projects import (
8+
ProjectsResource,
9+
AsyncProjectsResource,
10+
ProjectsResourceWithRawResponse,
11+
AsyncProjectsResourceWithRawResponse,
12+
ProjectsResourceWithStreamingResponse,
13+
AsyncProjectsResourceWithStreamingResponse,
14+
)
15+
16+
__all__ = ["PagesResource", "AsyncPagesResource"]
17+
18+
19+
class PagesResource(SyncAPIResource):
20+
@cached_property
21+
def projects(self) -> ProjectsResource:
22+
return ProjectsResource(self._client)
23+
24+
@cached_property
25+
def with_raw_response(self) -> PagesResourceWithRawResponse:
26+
"""
27+
This property can be used as a prefix for any HTTP method call to return
28+
the raw response object instead of the parsed content.
29+
30+
For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
31+
"""
32+
return PagesResourceWithRawResponse(self)
33+
34+
@cached_property
35+
def with_streaming_response(self) -> PagesResourceWithStreamingResponse:
36+
"""
37+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
38+
39+
For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
40+
"""
41+
return PagesResourceWithStreamingResponse(self)
42+
43+
44+
class AsyncPagesResource(AsyncAPIResource):
45+
@cached_property
46+
def projects(self) -> AsyncProjectsResource:
47+
return AsyncProjectsResource(self._client)
48+
49+
@cached_property
50+
def with_raw_response(self) -> AsyncPagesResourceWithRawResponse:
51+
"""
52+
This property can be used as a prefix for any HTTP method call to return
53+
the raw response object instead of the parsed content.
54+
55+
For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
56+
"""
57+
return AsyncPagesResourceWithRawResponse(self)
58+
59+
@cached_property
60+
def with_streaming_response(self) -> AsyncPagesResourceWithStreamingResponse:
61+
"""
62+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
63+
64+
For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
65+
"""
66+
return AsyncPagesResourceWithStreamingResponse(self)
67+
68+
69+
class PagesResourceWithRawResponse:
70+
def __init__(self, pages: PagesResource) -> None:
71+
self._pages = pages
72+
73+
@cached_property
74+
def projects(self) -> ProjectsResourceWithRawResponse:
75+
return ProjectsResourceWithRawResponse(self._pages.projects)
76+
77+
78+
class AsyncPagesResourceWithRawResponse:
79+
def __init__(self, pages: AsyncPagesResource) -> None:
80+
self._pages = pages
81+
82+
@cached_property
83+
def projects(self) -> AsyncProjectsResourceWithRawResponse:
84+
return AsyncProjectsResourceWithRawResponse(self._pages.projects)
85+
86+
87+
class PagesResourceWithStreamingResponse:
88+
def __init__(self, pages: PagesResource) -> None:
89+
self._pages = pages
90+
91+
@cached_property
92+
def projects(self) -> ProjectsResourceWithStreamingResponse:
93+
return ProjectsResourceWithStreamingResponse(self._pages.projects)
94+
95+
96+
class AsyncPagesResourceWithStreamingResponse:
97+
def __init__(self, pages: AsyncPagesResource) -> None:
98+
self._pages = pages
99+
100+
@cached_property
101+
def projects(self) -> AsyncProjectsResourceWithStreamingResponse:
102+
return AsyncProjectsResourceWithStreamingResponse(self._pages.projects)
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .domains import (
4+
DomainsResource,
5+
AsyncDomainsResource,
6+
DomainsResourceWithRawResponse,
7+
AsyncDomainsResourceWithRawResponse,
8+
DomainsResourceWithStreamingResponse,
9+
AsyncDomainsResourceWithStreamingResponse,
10+
)
11+
from .projects import (
12+
ProjectsResource,
13+
AsyncProjectsResource,
14+
ProjectsResourceWithRawResponse,
15+
AsyncProjectsResourceWithRawResponse,
16+
ProjectsResourceWithStreamingResponse,
17+
AsyncProjectsResourceWithStreamingResponse,
18+
)
19+
from .deployments import (
20+
DeploymentsResource,
21+
AsyncDeploymentsResource,
22+
DeploymentsResourceWithRawResponse,
23+
AsyncDeploymentsResourceWithRawResponse,
24+
DeploymentsResourceWithStreamingResponse,
25+
AsyncDeploymentsResourceWithStreamingResponse,
26+
)
27+
28+
__all__ = [
29+
"DeploymentsResource",
30+
"AsyncDeploymentsResource",
31+
"DeploymentsResourceWithRawResponse",
32+
"AsyncDeploymentsResourceWithRawResponse",
33+
"DeploymentsResourceWithStreamingResponse",
34+
"AsyncDeploymentsResourceWithStreamingResponse",
35+
"DomainsResource",
36+
"AsyncDomainsResource",
37+
"DomainsResourceWithRawResponse",
38+
"AsyncDomainsResourceWithRawResponse",
39+
"DomainsResourceWithStreamingResponse",
40+
"AsyncDomainsResourceWithStreamingResponse",
41+
"ProjectsResource",
42+
"AsyncProjectsResource",
43+
"ProjectsResourceWithRawResponse",
44+
"AsyncProjectsResourceWithRawResponse",
45+
"ProjectsResourceWithStreamingResponse",
46+
"AsyncProjectsResourceWithStreamingResponse",
47+
]
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .history import (
4+
HistoryResource,
5+
AsyncHistoryResource,
6+
HistoryResourceWithRawResponse,
7+
AsyncHistoryResourceWithRawResponse,
8+
HistoryResourceWithStreamingResponse,
9+
AsyncHistoryResourceWithStreamingResponse,
10+
)
11+
from .deployments import (
12+
DeploymentsResource,
13+
AsyncDeploymentsResource,
14+
DeploymentsResourceWithRawResponse,
15+
AsyncDeploymentsResourceWithRawResponse,
16+
DeploymentsResourceWithStreamingResponse,
17+
AsyncDeploymentsResourceWithStreamingResponse,
18+
)
19+
20+
__all__ = [
21+
"HistoryResource",
22+
"AsyncHistoryResource",
23+
"HistoryResourceWithRawResponse",
24+
"AsyncHistoryResourceWithRawResponse",
25+
"HistoryResourceWithStreamingResponse",
26+
"AsyncHistoryResourceWithStreamingResponse",
27+
"DeploymentsResource",
28+
"AsyncDeploymentsResource",
29+
"DeploymentsResourceWithRawResponse",
30+
"AsyncDeploymentsResourceWithRawResponse",
31+
"DeploymentsResourceWithStreamingResponse",
32+
"AsyncDeploymentsResourceWithStreamingResponse",
33+
]

0 commit comments

Comments
 (0)