Skip to content

Commit 3614d2e

Browse files
feat(zaraz): re-enable resources (#2460)
1 parent bf47c61 commit 3614d2e

40 files changed

+5355
-1
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 1528
1+
configured_endpoints: 1538
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-098958c3d34c1f726db27a49f075f6e8e2c9204777a0a5d6aa49ca54fc803022.yml

api.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7979,6 +7979,92 @@ Methods:
79797979
- <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>
79807980
- <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>
79817981

7982+
# Zaraz
7983+
7984+
Types:
7985+
7986+
```python
7987+
from cloudflare.types.zaraz import ButtonTextTranslation, NeoEvent
7988+
```
7989+
7990+
Methods:
7991+
7992+
- <code title="put /zones/{zone_id}/settings/zaraz/workflow">client.zaraz.<a href="./src/cloudflare/resources/zaraz/zaraz.py">update</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zaraz/zaraz_update_params.py">params</a>) -> <a href="./src/cloudflare/types/zaraz/workflow.py">Workflow</a></code>
7993+
7994+
## Config
7995+
7996+
Types:
7997+
7998+
```python
7999+
from cloudflare.types.zaraz import Configuration
8000+
```
8001+
8002+
Methods:
8003+
8004+
- <code title="put /zones/{zone_id}/settings/zaraz/config">client.zaraz.config.<a href="./src/cloudflare/resources/zaraz/config.py">update</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zaraz/config_update_params.py">params</a>) -> <a href="./src/cloudflare/types/zaraz/configuration.py">Configuration</a></code>
8005+
- <code title="get /zones/{zone_id}/settings/zaraz/config">client.zaraz.config.<a href="./src/cloudflare/resources/zaraz/config.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zaraz/configuration.py">Configuration</a></code>
8006+
8007+
## Default
8008+
8009+
Methods:
8010+
8011+
- <code title="get /zones/{zone_id}/settings/zaraz/default">client.zaraz.default.<a href="./src/cloudflare/resources/zaraz/default.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zaraz/configuration.py">Configuration</a></code>
8012+
8013+
## Export
8014+
8015+
Methods:
8016+
8017+
- <code title="get /zones/{zone_id}/settings/zaraz/export">client.zaraz.export.<a href="./src/cloudflare/resources/zaraz/export.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zaraz/configuration.py">Configuration</a></code>
8018+
8019+
## History
8020+
8021+
Types:
8022+
8023+
```python
8024+
from cloudflare.types.zaraz import HistoryListResponse
8025+
```
8026+
8027+
Methods:
8028+
8029+
- <code title="put /zones/{zone_id}/settings/zaraz/history">client.zaraz.history.<a href="./src/cloudflare/resources/zaraz/history/history.py">update</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zaraz/history_update_params.py">params</a>) -> <a href="./src/cloudflare/types/zaraz/configuration.py">Configuration</a></code>
8030+
- <code title="get /zones/{zone_id}/settings/zaraz/history">client.zaraz.history.<a href="./src/cloudflare/resources/zaraz/history/history.py">list</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zaraz/history_list_params.py">params</a>) -> <a href="./src/cloudflare/types/zaraz/history_list_response.py">SyncSinglePage[HistoryListResponse]</a></code>
8031+
8032+
### Configs
8033+
8034+
Types:
8035+
8036+
```python
8037+
from cloudflare.types.zaraz.history import ConfigGetResponse
8038+
```
8039+
8040+
Methods:
8041+
8042+
- <code title="get /zones/{zone_id}/settings/zaraz/history/configs">client.zaraz.history.configs.<a href="./src/cloudflare/resources/zaraz/history/configs.py">get</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zaraz/history/config_get_params.py">params</a>) -> <a href="./src/cloudflare/types/zaraz/history/config_get_response.py">ConfigGetResponse</a></code>
8043+
8044+
## Publish
8045+
8046+
Types:
8047+
8048+
```python
8049+
from cloudflare.types.zaraz import PublishCreateResponse
8050+
```
8051+
8052+
Methods:
8053+
8054+
- <code title="post /zones/{zone_id}/settings/zaraz/publish">client.zaraz.publish.<a href="./src/cloudflare/resources/zaraz/publish.py">create</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zaraz/publish_create_params.py">params</a>) -> <a href="./src/cloudflare/types/zaraz/publish_create_response.py">str</a></code>
8055+
8056+
## Workflow
8057+
8058+
Types:
8059+
8060+
```python
8061+
from cloudflare.types.zaraz import Workflow
8062+
```
8063+
8064+
Methods:
8065+
8066+
- <code title="get /zones/{zone_id}/settings/zaraz/workflow">client.zaraz.workflow.<a href="./src/cloudflare/resources/zaraz/workflow.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zaraz/workflow.py">Workflow</a></code>
8067+
79828068
# Speed
79838069

79848070
Types:

src/cloudflare/_client.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
radar,
5858
rules,
5959
speed,
60+
zaraz,
6061
zones,
6162
images,
6263
queues,
@@ -151,6 +152,7 @@
151152
from .resources.rate_limits import RateLimitsResource, AsyncRateLimitsResource
152153
from .resources.rules.rules import RulesResource, AsyncRulesResource
153154
from .resources.speed.speed import SpeedResource, AsyncSpeedResource
155+
from .resources.zaraz.zaraz import ZarazResource, AsyncZarazResource
154156
from .resources.zones.zones import ZonesResource, AsyncZonesResource
155157
from .resources.security_txt import SecurityTXTResource, AsyncSecurityTXTResource
156158
from .resources.abuse_reports import AbuseReportsResource, AsyncAbuseReportsResource
@@ -743,6 +745,12 @@ def origin_post_quantum_encryption(self) -> OriginPostQuantumEncryptionResource:
743745

744746
return OriginPostQuantumEncryptionResource(self)
745747

748+
@cached_property
749+
def zaraz(self) -> ZarazResource:
750+
from .resources.zaraz import ZarazResource
751+
752+
return ZarazResource(self)
753+
746754
@cached_property
747755
def speed(self) -> SpeedResource:
748756
from .resources.speed import SpeedResource
@@ -1526,6 +1534,12 @@ def origin_post_quantum_encryption(self) -> AsyncOriginPostQuantumEncryptionReso
15261534

15271535
return AsyncOriginPostQuantumEncryptionResource(self)
15281536

1537+
@cached_property
1538+
def zaraz(self) -> AsyncZarazResource:
1539+
from .resources.zaraz import AsyncZarazResource
1540+
1541+
return AsyncZarazResource(self)
1542+
15291543
@cached_property
15301544
def speed(self) -> AsyncSpeedResource:
15311545
from .resources.speed import AsyncSpeedResource
@@ -2244,6 +2258,12 @@ def origin_post_quantum_encryption(
22442258

22452259
return OriginPostQuantumEncryptionResourceWithRawResponse(self._client.origin_post_quantum_encryption)
22462260

2261+
@cached_property
2262+
def zaraz(self) -> zaraz.ZarazResourceWithRawResponse:
2263+
from .resources.zaraz import ZarazResourceWithRawResponse
2264+
2265+
return ZarazResourceWithRawResponse(self._client.zaraz)
2266+
22472267
@cached_property
22482268
def speed(self) -> speed.SpeedResourceWithRawResponse:
22492269
from .resources.speed import SpeedResourceWithRawResponse
@@ -2781,6 +2801,12 @@ def origin_post_quantum_encryption(
27812801

27822802
return AsyncOriginPostQuantumEncryptionResourceWithRawResponse(self._client.origin_post_quantum_encryption)
27832803

2804+
@cached_property
2805+
def zaraz(self) -> zaraz.AsyncZarazResourceWithRawResponse:
2806+
from .resources.zaraz import AsyncZarazResourceWithRawResponse
2807+
2808+
return AsyncZarazResourceWithRawResponse(self._client.zaraz)
2809+
27842810
@cached_property
27852811
def speed(self) -> speed.AsyncSpeedResourceWithRawResponse:
27862812
from .resources.speed import AsyncSpeedResourceWithRawResponse
@@ -3318,6 +3344,12 @@ def origin_post_quantum_encryption(
33183344

33193345
return OriginPostQuantumEncryptionResourceWithStreamingResponse(self._client.origin_post_quantum_encryption)
33203346

3347+
@cached_property
3348+
def zaraz(self) -> zaraz.ZarazResourceWithStreamingResponse:
3349+
from .resources.zaraz import ZarazResourceWithStreamingResponse
3350+
3351+
return ZarazResourceWithStreamingResponse(self._client.zaraz)
3352+
33213353
@cached_property
33223354
def speed(self) -> speed.SpeedResourceWithStreamingResponse:
33233355
from .resources.speed import SpeedResourceWithStreamingResponse
@@ -3863,6 +3895,12 @@ def origin_post_quantum_encryption(
38633895
self._client.origin_post_quantum_encryption
38643896
)
38653897

3898+
@cached_property
3899+
def zaraz(self) -> zaraz.AsyncZarazResourceWithStreamingResponse:
3900+
from .resources.zaraz import AsyncZarazResourceWithStreamingResponse
3901+
3902+
return AsyncZarazResourceWithStreamingResponse(self._client.zaraz)
3903+
38663904
@cached_property
38673905
def speed(self) -> speed.AsyncSpeedResourceWithStreamingResponse:
38683906
from .resources.speed import AsyncSpeedResourceWithStreamingResponse
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .zaraz import (
4+
ZarazResource,
5+
AsyncZarazResource,
6+
ZarazResourceWithRawResponse,
7+
AsyncZarazResourceWithRawResponse,
8+
ZarazResourceWithStreamingResponse,
9+
AsyncZarazResourceWithStreamingResponse,
10+
)
11+
from .config import (
12+
ConfigResource,
13+
AsyncConfigResource,
14+
ConfigResourceWithRawResponse,
15+
AsyncConfigResourceWithRawResponse,
16+
ConfigResourceWithStreamingResponse,
17+
AsyncConfigResourceWithStreamingResponse,
18+
)
19+
from .export import (
20+
ExportResource,
21+
AsyncExportResource,
22+
ExportResourceWithRawResponse,
23+
AsyncExportResourceWithRawResponse,
24+
ExportResourceWithStreamingResponse,
25+
AsyncExportResourceWithStreamingResponse,
26+
)
27+
from .default import (
28+
DefaultResource,
29+
AsyncDefaultResource,
30+
DefaultResourceWithRawResponse,
31+
AsyncDefaultResourceWithRawResponse,
32+
DefaultResourceWithStreamingResponse,
33+
AsyncDefaultResourceWithStreamingResponse,
34+
)
35+
from .history import (
36+
HistoryResource,
37+
AsyncHistoryResource,
38+
HistoryResourceWithRawResponse,
39+
AsyncHistoryResourceWithRawResponse,
40+
HistoryResourceWithStreamingResponse,
41+
AsyncHistoryResourceWithStreamingResponse,
42+
)
43+
from .publish import (
44+
PublishResource,
45+
AsyncPublishResource,
46+
PublishResourceWithRawResponse,
47+
AsyncPublishResourceWithRawResponse,
48+
PublishResourceWithStreamingResponse,
49+
AsyncPublishResourceWithStreamingResponse,
50+
)
51+
from .workflow import (
52+
WorkflowResource,
53+
AsyncWorkflowResource,
54+
WorkflowResourceWithRawResponse,
55+
AsyncWorkflowResourceWithRawResponse,
56+
WorkflowResourceWithStreamingResponse,
57+
AsyncWorkflowResourceWithStreamingResponse,
58+
)
59+
60+
__all__ = [
61+
"ConfigResource",
62+
"AsyncConfigResource",
63+
"ConfigResourceWithRawResponse",
64+
"AsyncConfigResourceWithRawResponse",
65+
"ConfigResourceWithStreamingResponse",
66+
"AsyncConfigResourceWithStreamingResponse",
67+
"DefaultResource",
68+
"AsyncDefaultResource",
69+
"DefaultResourceWithRawResponse",
70+
"AsyncDefaultResourceWithRawResponse",
71+
"DefaultResourceWithStreamingResponse",
72+
"AsyncDefaultResourceWithStreamingResponse",
73+
"ExportResource",
74+
"AsyncExportResource",
75+
"ExportResourceWithRawResponse",
76+
"AsyncExportResourceWithRawResponse",
77+
"ExportResourceWithStreamingResponse",
78+
"AsyncExportResourceWithStreamingResponse",
79+
"HistoryResource",
80+
"AsyncHistoryResource",
81+
"HistoryResourceWithRawResponse",
82+
"AsyncHistoryResourceWithRawResponse",
83+
"HistoryResourceWithStreamingResponse",
84+
"AsyncHistoryResourceWithStreamingResponse",
85+
"PublishResource",
86+
"AsyncPublishResource",
87+
"PublishResourceWithRawResponse",
88+
"AsyncPublishResourceWithRawResponse",
89+
"PublishResourceWithStreamingResponse",
90+
"AsyncPublishResourceWithStreamingResponse",
91+
"WorkflowResource",
92+
"AsyncWorkflowResource",
93+
"WorkflowResourceWithRawResponse",
94+
"AsyncWorkflowResourceWithRawResponse",
95+
"WorkflowResourceWithStreamingResponse",
96+
"AsyncWorkflowResourceWithStreamingResponse",
97+
"ZarazResource",
98+
"AsyncZarazResource",
99+
"ZarazResourceWithRawResponse",
100+
"AsyncZarazResourceWithRawResponse",
101+
"ZarazResourceWithStreamingResponse",
102+
"AsyncZarazResourceWithStreamingResponse",
103+
]

0 commit comments

Comments
 (0)