Skip to content

Commit 2619bdd

Browse files
chore(api): update composite API spec
1 parent 8a04a60 commit 2619bdd

49 files changed

Lines changed: 4898 additions & 3 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1802
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f499230bd0b5d0d199e7d12634ae121b4a0fd1d5af64fea24f5ce3a3aff708f2.yml
3-
openapi_spec_hash: 01273b7fbd5518068c78de1d7d3e35d7
1+
configured_endpoints: 1818
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a2337a6751f6b1c4f9c0bdf7b17675ef290d5a2a8fc848084912b36c60366253.yml
3+
openapi_spec_hash: 77bc16296af51715e914b9169da0c70c
44
config_hash: 08d1e85e3d6166780e91482de72fa93c

api.md

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ Types:
340340
```python
341341
from cloudflare.types.zones import (
342342
AdvancedDDoS,
343+
Aegis,
343344
AlwaysOnline,
344345
AlwaysUseHTTPS,
345346
AutomaticHTTPSRewrites,
@@ -368,6 +369,7 @@ from cloudflare.types.zones import (
368369
OpportunisticOnion,
369370
OrangeToOrange,
370371
OriginErrorPagePassThru,
372+
OriginMaxHTTPVersion,
371373
Polish,
372374
PrefetchPreload,
373375
ProxyReadTimeout,
@@ -644,6 +646,83 @@ Methods:
644646

645647
- <code title="post /zones/{zone_id}/purge_cache">client.cache.<a href="./src/cloudflare/resources/cache/cache.py">purge</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/cache/cache_purge_params.py">params</a>) -> <a href="./src/cloudflare/types/cache/cache_purge_response.py">Optional[CachePurgeResponse]</a></code>
646648

649+
## CacheReserve
650+
651+
Types:
652+
653+
```python
654+
from cloudflare.types.cache import (
655+
CacheReserve,
656+
CacheReserveClear,
657+
State,
658+
CacheReserveClearResponse,
659+
CacheReserveEditResponse,
660+
CacheReserveGetResponse,
661+
CacheReserveStatusResponse,
662+
)
663+
```
664+
665+
Methods:
666+
667+
- <code title="post /zones/{zone_id}/cache/cache_reserve_clear">client.cache.cache_reserve.<a href="./src/cloudflare/resources/cache/cache_reserve.py">clear</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/cache/cache_reserve_clear_params.py">params</a>) -> <a href="./src/cloudflare/types/cache/cache_reserve_clear_response.py">Optional[CacheReserveClearResponse]</a></code>
668+
- <code title="patch /zones/{zone_id}/cache/cache_reserve">client.cache.cache_reserve.<a href="./src/cloudflare/resources/cache/cache_reserve.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/cache/cache_reserve_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/cache/cache_reserve_edit_response.py">Optional[CacheReserveEditResponse]</a></code>
669+
- <code title="get /zones/{zone_id}/cache/cache_reserve">client.cache.cache_reserve.<a href="./src/cloudflare/resources/cache/cache_reserve.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/cache/cache_reserve_get_response.py">Optional[CacheReserveGetResponse]</a></code>
670+
- <code title="get /zones/{zone_id}/cache/cache_reserve_clear">client.cache.cache_reserve.<a href="./src/cloudflare/resources/cache/cache_reserve.py">status</a>(\*, zone_id) -> <a href="./src/cloudflare/types/cache/cache_reserve_status_response.py">Optional[CacheReserveStatusResponse]</a></code>
671+
672+
## SmartTieredCache
673+
674+
Types:
675+
676+
```python
677+
from cloudflare.types.cache import (
678+
SmartTieredCacheDeleteResponse,
679+
SmartTieredCacheEditResponse,
680+
SmartTieredCacheGetResponse,
681+
)
682+
```
683+
684+
Methods:
685+
686+
- <code title="delete /zones/{zone_id}/cache/tiered_cache_smart_topology_enable">client.cache.smart_tiered_cache.<a href="./src/cloudflare/resources/cache/smart_tiered_cache.py">delete</a>(\*, zone_id) -> <a href="./src/cloudflare/types/cache/smart_tiered_cache_delete_response.py">Optional[SmartTieredCacheDeleteResponse]</a></code>
687+
- <code title="patch /zones/{zone_id}/cache/tiered_cache_smart_topology_enable">client.cache.smart_tiered_cache.<a href="./src/cloudflare/resources/cache/smart_tiered_cache.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/cache/smart_tiered_cache_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/cache/smart_tiered_cache_edit_response.py">Optional[SmartTieredCacheEditResponse]</a></code>
688+
- <code title="get /zones/{zone_id}/cache/tiered_cache_smart_topology_enable">client.cache.smart_tiered_cache.<a href="./src/cloudflare/resources/cache/smart_tiered_cache.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/cache/smart_tiered_cache_get_response.py">Optional[SmartTieredCacheGetResponse]</a></code>
689+
690+
## Variants
691+
692+
Types:
693+
694+
```python
695+
from cloudflare.types.cache import (
696+
CacheVariant,
697+
VariantDeleteResponse,
698+
VariantEditResponse,
699+
VariantGetResponse,
700+
)
701+
```
702+
703+
Methods:
704+
705+
- <code title="delete /zones/{zone_id}/cache/variants">client.cache.variants.<a href="./src/cloudflare/resources/cache/variants.py">delete</a>(\*, zone_id) -> <a href="./src/cloudflare/types/cache/variant_delete_response.py">Optional[VariantDeleteResponse]</a></code>
706+
- <code title="patch /zones/{zone_id}/cache/variants">client.cache.variants.<a href="./src/cloudflare/resources/cache/variants.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/cache/variant_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/cache/variant_edit_response.py">Optional[VariantEditResponse]</a></code>
707+
- <code title="get /zones/{zone_id}/cache/variants">client.cache.variants.<a href="./src/cloudflare/resources/cache/variants.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/cache/variant_get_response.py">Optional[VariantGetResponse]</a></code>
708+
709+
## RegionalTieredCache
710+
711+
Types:
712+
713+
```python
714+
from cloudflare.types.cache import (
715+
RegionalTieredCache,
716+
RegionalTieredCacheEditResponse,
717+
RegionalTieredCacheGetResponse,
718+
)
719+
```
720+
721+
Methods:
722+
723+
- <code title="patch /zones/{zone_id}/cache/regional_tiered_cache">client.cache.regional_tiered_cache.<a href="./src/cloudflare/resources/cache/regional_tiered_cache.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/cache/regional_tiered_cache_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/cache/regional_tiered_cache_edit_response.py">Optional[RegionalTieredCacheEditResponse]</a></code>
724+
- <code title="get /zones/{zone_id}/cache/regional_tiered_cache">client.cache.regional_tiered_cache.<a href="./src/cloudflare/resources/cache/regional_tiered_cache.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/cache/regional_tiered_cache_get_response.py">Optional[RegionalTieredCacheGetResponse]</a></code>
725+
647726
# SSL
648727

649728
## Analyze
@@ -758,6 +837,19 @@ Methods:
758837
- <code title="patch /zones/{zone_id}/argo/smart_routing">client.argo.smart_routing.<a href="./src/cloudflare/resources/argo/smart_routing.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/argo/smart_routing_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/argo/smart_routing_edit_response.py">SmartRoutingEditResponse</a></code>
759838
- <code title="get /zones/{zone_id}/argo/smart_routing">client.argo.smart_routing.<a href="./src/cloudflare/resources/argo/smart_routing.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/argo/smart_routing_get_response.py">SmartRoutingGetResponse</a></code>
760839

840+
## TieredCaching
841+
842+
Types:
843+
844+
```python
845+
from cloudflare.types.argo import TieredCachingEditResponse, TieredCachingGetResponse
846+
```
847+
848+
Methods:
849+
850+
- <code title="patch /zones/{zone_id}/argo/tiered_caching">client.argo.tiered_caching.<a href="./src/cloudflare/resources/argo/tiered_caching.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/argo/tiered_caching_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/argo/tiered_caching_edit_response.py">Optional[TieredCachingEditResponse]</a></code>
851+
- <code title="get /zones/{zone_id}/argo/tiered_caching">client.argo.tiered_caching.<a href="./src/cloudflare/resources/argo/tiered_caching.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/argo/tiered_caching_get_response.py">Optional[TieredCachingGetResponse]</a></code>
852+
761853
# CertificateAuthorities
762854

763855
## HostnameAssociations
@@ -8646,6 +8738,22 @@ Methods:
86468738
- <code title="put /zones/{zone_id}/bot_management">client.bot_management.<a href="./src/cloudflare/resources/bot_management.py">update</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/bot_management/bot_management_update_params.py">params</a>) -> <a href="./src/cloudflare/types/bot_management/bot_management_update_response.py">Optional[BotManagementUpdateResponse]</a></code>
86478739
- <code title="get /zones/{zone_id}/bot_management">client.bot_management.<a href="./src/cloudflare/resources/bot_management.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/bot_management/bot_management_get_response.py">Optional[BotManagementGetResponse]</a></code>
86488740

8741+
# OriginPostQuantumEncryption
8742+
8743+
Types:
8744+
8745+
```python
8746+
from cloudflare.types.origin_post_quantum_encryption import (
8747+
OriginPostQuantumEncryptionUpdateResponse,
8748+
OriginPostQuantumEncryptionGetResponse,
8749+
)
8750+
```
8751+
8752+
Methods:
8753+
8754+
- <code title="put /zones/{zone_id}/cache/origin_post_quantum_encryption">client.origin_post_quantum_encryption.<a href="./src/cloudflare/resources/origin_post_quantum_encryption.py">update</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/origin_post_quantum_encryption/origin_post_quantum_encryption_update_params.py">params</a>) -> <a href="./src/cloudflare/types/origin_post_quantum_encryption/origin_post_quantum_encryption_update_response.py">Optional[OriginPostQuantumEncryptionUpdateResponse]</a></code>
8755+
- <code title="get /zones/{zone_id}/cache/origin_post_quantum_encryption">client.origin_post_quantum_encryption.<a href="./src/cloudflare/resources/origin_post_quantum_encryption.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/origin_post_quantum_encryption/origin_post_quantum_encryption_get_response.py">Optional[OriginPostQuantumEncryptionGetResponse]</a></code>
8756+
86498757
# Zaraz
86508758

86518759
Types:

src/cloudflare/_client.py

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
certificate_authorities,
129129
leaked_credential_checks,
130130
magic_network_monitoring,
131+
origin_post_quantum_encryption,
131132
)
132133
from .resources.ips import IPsResource, AsyncIPsResource
133134
from .resources.ai.ai import AIResource, AsyncAIResource
@@ -204,6 +205,10 @@
204205
from .resources.cloudforce_one.cloudforce_one import CloudforceOneResource, AsyncCloudforceOneResource
205206
from .resources.email_security.email_security import EmailSecurityResource, AsyncEmailSecurityResource
206207
from .resources.load_balancers.load_balancers import LoadBalancersResource, AsyncLoadBalancersResource
208+
from .resources.origin_post_quantum_encryption import (
209+
OriginPostQuantumEncryptionResource,
210+
AsyncOriginPostQuantumEncryptionResource,
211+
)
207212
from .resources.cloud_connector.cloud_connector import CloudConnectorResource, AsyncCloudConnectorResource
208213
from .resources.durable_objects.durable_objects import DurableObjectsResource, AsyncDurableObjectsResource
209214
from .resources.request_tracers.request_tracers import RequestTracersResource, AsyncRequestTracersResource
@@ -758,6 +763,12 @@ def bot_management(self) -> BotManagementResource:
758763

759764
return BotManagementResource(self)
760765

766+
@cached_property
767+
def origin_post_quantum_encryption(self) -> OriginPostQuantumEncryptionResource:
768+
from .resources.origin_post_quantum_encryption import OriginPostQuantumEncryptionResource
769+
770+
return OriginPostQuantumEncryptionResource(self)
771+
761772
@cached_property
762773
def zaraz(self) -> ZarazResource:
763774
from .resources.zaraz import ZarazResource
@@ -1584,6 +1595,12 @@ def bot_management(self) -> AsyncBotManagementResource:
15841595

15851596
return AsyncBotManagementResource(self)
15861597

1598+
@cached_property
1599+
def origin_post_quantum_encryption(self) -> AsyncOriginPostQuantumEncryptionResource:
1600+
from .resources.origin_post_quantum_encryption import AsyncOriginPostQuantumEncryptionResource
1601+
1602+
return AsyncOriginPostQuantumEncryptionResource(self)
1603+
15871604
@cached_property
15881605
def zaraz(self) -> AsyncZarazResource:
15891606
from .resources.zaraz import AsyncZarazResource
@@ -2338,6 +2355,14 @@ def bot_management(self) -> bot_management.BotManagementResourceWithRawResponse:
23382355

23392356
return BotManagementResourceWithRawResponse(self._client.bot_management)
23402357

2358+
@cached_property
2359+
def origin_post_quantum_encryption(
2360+
self,
2361+
) -> origin_post_quantum_encryption.OriginPostQuantumEncryptionResourceWithRawResponse:
2362+
from .resources.origin_post_quantum_encryption import OriginPostQuantumEncryptionResourceWithRawResponse
2363+
2364+
return OriginPostQuantumEncryptionResourceWithRawResponse(self._client.origin_post_quantum_encryption)
2365+
23412366
@cached_property
23422367
def zaraz(self) -> zaraz.ZarazResourceWithRawResponse:
23432368
from .resources.zaraz import ZarazResourceWithRawResponse
@@ -2909,6 +2934,14 @@ def bot_management(self) -> bot_management.AsyncBotManagementResourceWithRawResp
29092934

29102935
return AsyncBotManagementResourceWithRawResponse(self._client.bot_management)
29112936

2937+
@cached_property
2938+
def origin_post_quantum_encryption(
2939+
self,
2940+
) -> origin_post_quantum_encryption.AsyncOriginPostQuantumEncryptionResourceWithRawResponse:
2941+
from .resources.origin_post_quantum_encryption import AsyncOriginPostQuantumEncryptionResourceWithRawResponse
2942+
2943+
return AsyncOriginPostQuantumEncryptionResourceWithRawResponse(self._client.origin_post_quantum_encryption)
2944+
29122945
@cached_property
29132946
def zaraz(self) -> zaraz.AsyncZarazResourceWithRawResponse:
29142947
from .resources.zaraz import AsyncZarazResourceWithRawResponse
@@ -3480,6 +3513,14 @@ def bot_management(self) -> bot_management.BotManagementResourceWithStreamingRes
34803513

34813514
return BotManagementResourceWithStreamingResponse(self._client.bot_management)
34823515

3516+
@cached_property
3517+
def origin_post_quantum_encryption(
3518+
self,
3519+
) -> origin_post_quantum_encryption.OriginPostQuantumEncryptionResourceWithStreamingResponse:
3520+
from .resources.origin_post_quantum_encryption import OriginPostQuantumEncryptionResourceWithStreamingResponse
3521+
3522+
return OriginPostQuantumEncryptionResourceWithStreamingResponse(self._client.origin_post_quantum_encryption)
3523+
34833524
@cached_property
34843525
def zaraz(self) -> zaraz.ZarazResourceWithStreamingResponse:
34853526
from .resources.zaraz import ZarazResourceWithStreamingResponse
@@ -4055,6 +4096,18 @@ def bot_management(self) -> bot_management.AsyncBotManagementResourceWithStreami
40554096

40564097
return AsyncBotManagementResourceWithStreamingResponse(self._client.bot_management)
40574098

4099+
@cached_property
4100+
def origin_post_quantum_encryption(
4101+
self,
4102+
) -> origin_post_quantum_encryption.AsyncOriginPostQuantumEncryptionResourceWithStreamingResponse:
4103+
from .resources.origin_post_quantum_encryption import (
4104+
AsyncOriginPostQuantumEncryptionResourceWithStreamingResponse,
4105+
)
4106+
4107+
return AsyncOriginPostQuantumEncryptionResourceWithStreamingResponse(
4108+
self._client.origin_post_quantum_encryption
4109+
)
4110+
40584111
@cached_property
40594112
def zaraz(self) -> zaraz.AsyncZarazResourceWithStreamingResponse:
40604113
from .resources.zaraz import AsyncZarazResourceWithStreamingResponse

src/cloudflare/resources/argo/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
SmartRoutingResourceWithStreamingResponse,
1717
AsyncSmartRoutingResourceWithStreamingResponse,
1818
)
19+
from .tiered_caching import (
20+
TieredCachingResource,
21+
AsyncTieredCachingResource,
22+
TieredCachingResourceWithRawResponse,
23+
AsyncTieredCachingResourceWithRawResponse,
24+
TieredCachingResourceWithStreamingResponse,
25+
AsyncTieredCachingResourceWithStreamingResponse,
26+
)
1927

2028
__all__ = [
2129
"SmartRoutingResource",
@@ -24,6 +32,12 @@
2432
"AsyncSmartRoutingResourceWithRawResponse",
2533
"SmartRoutingResourceWithStreamingResponse",
2634
"AsyncSmartRoutingResourceWithStreamingResponse",
35+
"TieredCachingResource",
36+
"AsyncTieredCachingResource",
37+
"TieredCachingResourceWithRawResponse",
38+
"AsyncTieredCachingResourceWithRawResponse",
39+
"TieredCachingResourceWithStreamingResponse",
40+
"AsyncTieredCachingResourceWithStreamingResponse",
2741
"ArgoResource",
2842
"AsyncArgoResource",
2943
"ArgoResourceWithRawResponse",

src/cloudflare/resources/argo/argo.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
SmartRoutingResourceWithStreamingResponse,
1313
AsyncSmartRoutingResourceWithStreamingResponse,
1414
)
15+
from .tiered_caching import (
16+
TieredCachingResource,
17+
AsyncTieredCachingResource,
18+
TieredCachingResourceWithRawResponse,
19+
AsyncTieredCachingResourceWithRawResponse,
20+
TieredCachingResourceWithStreamingResponse,
21+
AsyncTieredCachingResourceWithStreamingResponse,
22+
)
1523

1624
__all__ = ["ArgoResource", "AsyncArgoResource"]
1725

@@ -21,6 +29,10 @@ class ArgoResource(SyncAPIResource):
2129
def smart_routing(self) -> SmartRoutingResource:
2230
return SmartRoutingResource(self._client)
2331

32+
@cached_property
33+
def tiered_caching(self) -> TieredCachingResource:
34+
return TieredCachingResource(self._client)
35+
2436
@cached_property
2537
def with_raw_response(self) -> ArgoResourceWithRawResponse:
2638
"""
@@ -46,6 +58,10 @@ class AsyncArgoResource(AsyncAPIResource):
4658
def smart_routing(self) -> AsyncSmartRoutingResource:
4759
return AsyncSmartRoutingResource(self._client)
4860

61+
@cached_property
62+
def tiered_caching(self) -> AsyncTieredCachingResource:
63+
return AsyncTieredCachingResource(self._client)
64+
4965
@cached_property
5066
def with_raw_response(self) -> AsyncArgoResourceWithRawResponse:
5167
"""
@@ -74,6 +90,10 @@ def __init__(self, argo: ArgoResource) -> None:
7490
def smart_routing(self) -> SmartRoutingResourceWithRawResponse:
7591
return SmartRoutingResourceWithRawResponse(self._argo.smart_routing)
7692

93+
@cached_property
94+
def tiered_caching(self) -> TieredCachingResourceWithRawResponse:
95+
return TieredCachingResourceWithRawResponse(self._argo.tiered_caching)
96+
7797

7898
class AsyncArgoResourceWithRawResponse:
7999
def __init__(self, argo: AsyncArgoResource) -> None:
@@ -83,6 +103,10 @@ def __init__(self, argo: AsyncArgoResource) -> None:
83103
def smart_routing(self) -> AsyncSmartRoutingResourceWithRawResponse:
84104
return AsyncSmartRoutingResourceWithRawResponse(self._argo.smart_routing)
85105

106+
@cached_property
107+
def tiered_caching(self) -> AsyncTieredCachingResourceWithRawResponse:
108+
return AsyncTieredCachingResourceWithRawResponse(self._argo.tiered_caching)
109+
86110

87111
class ArgoResourceWithStreamingResponse:
88112
def __init__(self, argo: ArgoResource) -> None:
@@ -92,6 +116,10 @@ def __init__(self, argo: ArgoResource) -> None:
92116
def smart_routing(self) -> SmartRoutingResourceWithStreamingResponse:
93117
return SmartRoutingResourceWithStreamingResponse(self._argo.smart_routing)
94118

119+
@cached_property
120+
def tiered_caching(self) -> TieredCachingResourceWithStreamingResponse:
121+
return TieredCachingResourceWithStreamingResponse(self._argo.tiered_caching)
122+
95123

96124
class AsyncArgoResourceWithStreamingResponse:
97125
def __init__(self, argo: AsyncArgoResource) -> None:
@@ -100,3 +128,7 @@ def __init__(self, argo: AsyncArgoResource) -> None:
100128
@cached_property
101129
def smart_routing(self) -> AsyncSmartRoutingResourceWithStreamingResponse:
102130
return AsyncSmartRoutingResourceWithStreamingResponse(self._argo.smart_routing)
131+
132+
@cached_property
133+
def tiered_caching(self) -> AsyncTieredCachingResourceWithStreamingResponse:
134+
return AsyncTieredCachingResourceWithStreamingResponse(self._argo.tiered_caching)

0 commit comments

Comments
 (0)