Skip to content

Commit c6b3d39

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#403)
1 parent 9d3553e commit c6b3d39

40 files changed

+3175
-233
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 1258
1+
configured_endpoints: 1267
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5f1479806ff9a382d425b33f45765681c248cf0895cd4fb79eec5b51a55ea23a.yml

api.md

+46-17
Original file line numberDiff line numberDiff line change
@@ -2559,22 +2559,16 @@ Methods:
25592559
Types:
25602560

25612561
```python
2562-
from cloudflare.types.web3 import (
2563-
HostnameCreateResponse,
2564-
HostnameListResponse,
2565-
HostnameDeleteResponse,
2566-
HostnameEditResponse,
2567-
HostnameGetResponse,
2568-
)
2562+
from cloudflare.types.web3 import Hostname, HostnameDeleteResponse
25692563
```
25702564

25712565
Methods:
25722566

2573-
- <code title="post /zones/{zone_identifier}/web3/hostnames">client.web3.hostnames.<a href="./src/cloudflare/resources/web3/hostnames/hostnames.py">create</a>(zone_identifier, \*\*<a href="src/cloudflare/types/web3/hostname_create_params.py">params</a>) -> <a href="./src/cloudflare/types/web3/hostname_create_response.py">HostnameCreateResponse</a></code>
2574-
- <code title="get /zones/{zone_identifier}/web3/hostnames">client.web3.hostnames.<a href="./src/cloudflare/resources/web3/hostnames/hostnames.py">list</a>(zone_identifier) -> <a href="./src/cloudflare/types/web3/hostname_list_response.py">SyncSinglePage[HostnameListResponse]</a></code>
2567+
- <code title="post /zones/{zone_identifier}/web3/hostnames">client.web3.hostnames.<a href="./src/cloudflare/resources/web3/hostnames/hostnames.py">create</a>(zone_identifier, \*\*<a href="src/cloudflare/types/web3/hostname_create_params.py">params</a>) -> <a href="./src/cloudflare/types/web3/hostname.py">Hostname</a></code>
2568+
- <code title="get /zones/{zone_identifier}/web3/hostnames">client.web3.hostnames.<a href="./src/cloudflare/resources/web3/hostnames/hostnames.py">list</a>(zone_identifier) -> <a href="./src/cloudflare/types/web3/hostname.py">SyncSinglePage[Hostname]</a></code>
25752569
- <code title="delete /zones/{zone_identifier}/web3/hostnames/{identifier}">client.web3.hostnames.<a href="./src/cloudflare/resources/web3/hostnames/hostnames.py">delete</a>(identifier, \*, zone_identifier) -> <a href="./src/cloudflare/types/web3/hostname_delete_response.py">Optional</a></code>
2576-
- <code title="patch /zones/{zone_identifier}/web3/hostnames/{identifier}">client.web3.hostnames.<a href="./src/cloudflare/resources/web3/hostnames/hostnames.py">edit</a>(identifier, \*, zone_identifier, \*\*<a href="src/cloudflare/types/web3/hostname_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/web3/hostname_edit_response.py">HostnameEditResponse</a></code>
2577-
- <code title="get /zones/{zone_identifier}/web3/hostnames/{identifier}">client.web3.hostnames.<a href="./src/cloudflare/resources/web3/hostnames/hostnames.py">get</a>(identifier, \*, zone_identifier) -> <a href="./src/cloudflare/types/web3/hostname_get_response.py">HostnameGetResponse</a></code>
2570+
- <code title="patch /zones/{zone_identifier}/web3/hostnames/{identifier}">client.web3.hostnames.<a href="./src/cloudflare/resources/web3/hostnames/hostnames.py">edit</a>(identifier, \*, zone_identifier, \*\*<a href="src/cloudflare/types/web3/hostname_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/web3/hostname.py">Hostname</a></code>
2571+
- <code title="get /zones/{zone_identifier}/web3/hostnames/{identifier}">client.web3.hostnames.<a href="./src/cloudflare/resources/web3/hostnames/hostnames.py">get</a>(identifier, \*, zone_identifier) -> <a href="./src/cloudflare/types/web3/hostname.py">Hostname</a></code>
25782572

25792573
### IPFSUniversalPaths
25802574

@@ -2583,16 +2577,13 @@ Methods:
25832577
Types:
25842578

25852579
```python
2586-
from cloudflare.types.web3.hostnames.ipfs_universal_paths import (
2587-
ContentListUpdateResponse,
2588-
ContentListGetResponse,
2589-
)
2580+
from cloudflare.types.web3.hostnames.ipfs_universal_paths import ContentList
25902581
```
25912582

25922583
Methods:
25932584

2594-
- <code title="put /zones/{zone_identifier}/web3/hostnames/{identifier}/ipfs_universal_path/content_list">client.web3.hostnames.ipfs_universal_paths.content_lists.<a href="./src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/content_lists.py">update</a>(identifier, \*, zone_identifier, \*\*<a href="src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_list_update_params.py">params</a>) -> <a href="./src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_list_update_response.py">ContentListUpdateResponse</a></code>
2595-
- <code title="get /zones/{zone_identifier}/web3/hostnames/{identifier}/ipfs_universal_path/content_list">client.web3.hostnames.ipfs_universal_paths.content_lists.<a href="./src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/content_lists.py">get</a>(identifier, \*, zone_identifier) -> <a href="./src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_list_get_response.py">ContentListGetResponse</a></code>
2585+
- <code title="put /zones/{zone_identifier}/web3/hostnames/{identifier}/ipfs_universal_path/content_list">client.web3.hostnames.ipfs_universal_paths.content_lists.<a href="./src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/content_lists.py">update</a>(identifier, \*, zone_identifier, \*\*<a href="src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_list_update_params.py">params</a>) -> <a href="./src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_list.py">ContentList</a></code>
2586+
- <code title="get /zones/{zone_identifier}/web3/hostnames/{identifier}/ipfs_universal_path/content_list">client.web3.hostnames.ipfs_universal_paths.content_lists.<a href="./src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/content_lists.py">get</a>(identifier, \*, zone_identifier) -> <a href="./src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_list.py">ContentList</a></code>
25962587

25972588
##### Entries
25982589

@@ -7006,6 +6997,7 @@ from cloudflare.types.radar.http import (
70066997
SummaryHTTPVersionResponse,
70076998
SummaryIPVersionResponse,
70086999
SummaryOSResponse,
7000+
SummaryPostQuantumResponse,
70097001
SummaryTLSVersionResponse,
70107002
)
70117003
```
@@ -7018,6 +7010,7 @@ Methods:
70187010
- <code title="get /radar/http/summary/http_version">client.radar.http.summary.<a href="./src/cloudflare/resources/radar/http/summary.py">http_version</a>(\*\*<a href="src/cloudflare/types/radar/http/summary_http_version_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/http/summary_http_version_response.py">SummaryHTTPVersionResponse</a></code>
70197011
- <code title="get /radar/http/summary/ip_version">client.radar.http.summary.<a href="./src/cloudflare/resources/radar/http/summary.py">ip_version</a>(\*\*<a href="src/cloudflare/types/radar/http/summary_ip_version_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/http/summary_ip_version_response.py">SummaryIPVersionResponse</a></code>
70207012
- <code title="get /radar/http/summary/os">client.radar.http.summary.<a href="./src/cloudflare/resources/radar/http/summary.py">os</a>(\*\*<a href="src/cloudflare/types/radar/http/summary_os_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/http/summary_os_response.py">SummaryOSResponse</a></code>
7013+
- <code title="get /radar/http/summary/post_quantum">client.radar.http.summary.<a href="./src/cloudflare/resources/radar/http/summary.py">post_quantum</a>(\*\*<a href="src/cloudflare/types/radar/http/summary_post_quantum_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/http/summary_post_quantum_response.py">SummaryPostQuantumResponse</a></code>
70217014
- <code title="get /radar/http/summary/tls_version">client.radar.http.summary.<a href="./src/cloudflare/resources/radar/http/summary.py">tls_version</a>(\*\*<a href="src/cloudflare/types/radar/http/summary_tls_version_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/http/summary_tls_version_response.py">SummaryTLSVersionResponse</a></code>
70227015

70237016
### TimeseriesGroups
@@ -7034,6 +7027,7 @@ from cloudflare.types.radar.http import (
70347027
TimeseriesGroupHTTPVersionResponse,
70357028
TimeseriesGroupIPVersionResponse,
70367029
TimeseriesGroupOSResponse,
7030+
TimeseriesGroupPostQuantumResponse,
70377031
TimeseriesGroupTLSVersionResponse,
70387032
)
70397033
```
@@ -7048,6 +7042,7 @@ Methods:
70487042
- <code title="get /radar/http/timeseries_groups/http_version">client.radar.http.timeseries_groups.<a href="./src/cloudflare/resources/radar/http/timeseries_groups.py">http_version</a>(\*\*<a href="src/cloudflare/types/radar/http/timeseries_group_http_version_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/http/timeseries_group_http_version_response.py">TimeseriesGroupHTTPVersionResponse</a></code>
70497043
- <code title="get /radar/http/timeseries_groups/ip_version">client.radar.http.timeseries_groups.<a href="./src/cloudflare/resources/radar/http/timeseries_groups.py">ip_version</a>(\*\*<a href="src/cloudflare/types/radar/http/timeseries_group_ip_version_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/http/timeseries_group_ip_version_response.py">TimeseriesGroupIPVersionResponse</a></code>
70507044
- <code title="get /radar/http/timeseries_groups/os">client.radar.http.timeseries_groups.<a href="./src/cloudflare/resources/radar/http/timeseries_groups.py">os</a>(\*\*<a href="src/cloudflare/types/radar/http/timeseries_group_os_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/http/timeseries_group_os_response.py">TimeseriesGroupOSResponse</a></code>
7045+
- <code title="get /radar/http/timeseries_groups/post_quantum">client.radar.http.timeseries_groups.<a href="./src/cloudflare/resources/radar/http/timeseries_groups.py">post_quantum</a>(\*\*<a href="src/cloudflare/types/radar/http/timeseries_group_post_quantum_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/http/timeseries_group_post_quantum_response.py">TimeseriesGroupPostQuantumResponse</a></code>
70517046
- <code title="get /radar/http/timeseries_groups/tls_version">client.radar.http.timeseries_groups.<a href="./src/cloudflare/resources/radar/http/timeseries_groups.py">tls_version</a>(\*\*<a href="src/cloudflare/types/radar/http/timeseries_group_tls_version_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/http/timeseries_group_tls_version_response.py">TimeseriesGroupTLSVersionResponse</a></code>
70527047

70537048
## Quality
@@ -7278,6 +7273,40 @@ Methods:
72787273
- <code title="delete /zones/{zone_id}/hostnames/settings/{setting_id}/{hostname}">client.hostnames.settings.tls.<a href="./src/cloudflare/resources/hostnames/settings/tls.py">delete</a>(hostname, \*, zone_id, setting_id) -> <a href="./src/cloudflare/types/hostnames/settings/tls_delete_response.py">TLSDeleteResponse</a></code>
72797274
- <code title="get /zones/{zone_id}/hostnames/settings/{setting_id}">client.hostnames.settings.tls.<a href="./src/cloudflare/resources/hostnames/settings/tls.py">get</a>(setting_id, \*, zone_id) -> <a href="./src/cloudflare/types/hostnames/settings/tls_get_response.py">Optional</a></code>
72807275

7276+
# Snippets
7277+
7278+
Types:
7279+
7280+
```python
7281+
from cloudflare.types.snippets import Snippet, SnippetDeleteResponse
7282+
```
7283+
7284+
Methods:
7285+
7286+
- <code title="put /zones/{zone_id}/snippets/{snippet_name}">client.snippets.<a href="./src/cloudflare/resources/snippets/snippets.py">update</a>(snippet_name, \*, zone_id, \*\*<a href="src/cloudflare/types/snippets/snippet_update_params.py">params</a>) -> <a href="./src/cloudflare/types/snippets/snippet.py">Optional</a></code>
7287+
- <code title="get /zones/{zone_id}/snippets">client.snippets.<a href="./src/cloudflare/resources/snippets/snippets.py">list</a>(\*, zone_id) -> <a href="./src/cloudflare/types/snippets/snippet.py">SyncSinglePage[Snippet]</a></code>
7288+
- <code title="delete /zones/{zone_id}/snippets/{snippet_name}">client.snippets.<a href="./src/cloudflare/resources/snippets/snippets.py">delete</a>(snippet_name, \*, zone_id) -> <a href="./src/cloudflare/types/snippets/snippet_delete_response.py">SnippetDeleteResponse</a></code>
7289+
- <code title="get /zones/{zone_id}/snippets/{snippet_name}">client.snippets.<a href="./src/cloudflare/resources/snippets/snippets.py">get</a>(snippet_name, \*, zone_id) -> <a href="./src/cloudflare/types/snippets/snippet.py">Optional</a></code>
7290+
7291+
## Content
7292+
7293+
Methods:
7294+
7295+
- <code title="get /zones/{zone_id}/snippets/{snippet_name}/content">client.snippets.content.<a href="./src/cloudflare/resources/snippets/content.py">get</a>(snippet_name, \*, zone_id) -> BinaryAPIResponse</code>
7296+
7297+
## Rules
7298+
7299+
Types:
7300+
7301+
```python
7302+
from cloudflare.types.snippets import RuleUpdateResponse, RuleListResponse
7303+
```
7304+
7305+
Methods:
7306+
7307+
- <code title="put /zones/{zone_id}/snippets/snippet_rules">client.snippets.rules.<a href="./src/cloudflare/resources/snippets/rules.py">update</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/snippets/rule_update_params.py">params</a>) -> <a href="./src/cloudflare/types/snippets/rule_update_response.py">Optional</a></code>
7308+
- <code title="get /zones/{zone_id}/snippets/snippet_rules">client.snippets.rules.<a href="./src/cloudflare/resources/snippets/rules.py">list</a>(\*, zone_id) -> <a href="./src/cloudflare/types/snippets/rule_list_response.py">SyncSinglePage[RuleListResponse]</a></code>
7309+
72817310
# Calls
72827311

72837312
Types:

src/cloudflare/_client.py

+8
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ class Cloudflare(SyncAPIClient):
124124
speed: resources.SpeedResource
125125
dcv_delegation: resources.DCVDelegationResource
126126
hostnames: resources.HostnamesResource
127+
snippets: resources.SnippetsResource
127128
calls: resources.CallsResource
128129
cloudforce_one: resources.CloudforceOneResource
129130
event_notifications: resources.EventNotificationsResource
@@ -279,6 +280,7 @@ def __init__(
279280
self.speed = resources.SpeedResource(self)
280281
self.dcv_delegation = resources.DCVDelegationResource(self)
281282
self.hostnames = resources.HostnamesResource(self)
283+
self.snippets = resources.SnippetsResource(self)
282284
self.calls = resources.CallsResource(self)
283285
self.cloudforce_one = resources.CloudforceOneResource(self)
284286
self.event_notifications = resources.EventNotificationsResource(self)
@@ -537,6 +539,7 @@ class AsyncCloudflare(AsyncAPIClient):
537539
speed: resources.AsyncSpeedResource
538540
dcv_delegation: resources.AsyncDCVDelegationResource
539541
hostnames: resources.AsyncHostnamesResource
542+
snippets: resources.AsyncSnippetsResource
540543
calls: resources.AsyncCallsResource
541544
cloudforce_one: resources.AsyncCloudforceOneResource
542545
event_notifications: resources.AsyncEventNotificationsResource
@@ -692,6 +695,7 @@ def __init__(
692695
self.speed = resources.AsyncSpeedResource(self)
693696
self.dcv_delegation = resources.AsyncDCVDelegationResource(self)
694697
self.hostnames = resources.AsyncHostnamesResource(self)
698+
self.snippets = resources.AsyncSnippetsResource(self)
695699
self.calls = resources.AsyncCallsResource(self)
696700
self.cloudforce_one = resources.AsyncCloudforceOneResource(self)
697701
self.event_notifications = resources.AsyncEventNotificationsResource(self)
@@ -961,6 +965,7 @@ def __init__(self, client: Cloudflare) -> None:
961965
self.speed = resources.SpeedResourceWithRawResponse(client.speed)
962966
self.dcv_delegation = resources.DCVDelegationResourceWithRawResponse(client.dcv_delegation)
963967
self.hostnames = resources.HostnamesResourceWithRawResponse(client.hostnames)
968+
self.snippets = resources.SnippetsResourceWithRawResponse(client.snippets)
964969
self.calls = resources.CallsResourceWithRawResponse(client.calls)
965970
self.cloudforce_one = resources.CloudforceOneResourceWithRawResponse(client.cloudforce_one)
966971
self.event_notifications = resources.EventNotificationsResourceWithRawResponse(client.event_notifications)
@@ -1059,6 +1064,7 @@ def __init__(self, client: AsyncCloudflare) -> None:
10591064
self.speed = resources.AsyncSpeedResourceWithRawResponse(client.speed)
10601065
self.dcv_delegation = resources.AsyncDCVDelegationResourceWithRawResponse(client.dcv_delegation)
10611066
self.hostnames = resources.AsyncHostnamesResourceWithRawResponse(client.hostnames)
1067+
self.snippets = resources.AsyncSnippetsResourceWithRawResponse(client.snippets)
10621068
self.calls = resources.AsyncCallsResourceWithRawResponse(client.calls)
10631069
self.cloudforce_one = resources.AsyncCloudforceOneResourceWithRawResponse(client.cloudforce_one)
10641070
self.event_notifications = resources.AsyncEventNotificationsResourceWithRawResponse(client.event_notifications)
@@ -1157,6 +1163,7 @@ def __init__(self, client: Cloudflare) -> None:
11571163
self.speed = resources.SpeedResourceWithStreamingResponse(client.speed)
11581164
self.dcv_delegation = resources.DCVDelegationResourceWithStreamingResponse(client.dcv_delegation)
11591165
self.hostnames = resources.HostnamesResourceWithStreamingResponse(client.hostnames)
1166+
self.snippets = resources.SnippetsResourceWithStreamingResponse(client.snippets)
11601167
self.calls = resources.CallsResourceWithStreamingResponse(client.calls)
11611168
self.cloudforce_one = resources.CloudforceOneResourceWithStreamingResponse(client.cloudforce_one)
11621169
self.event_notifications = resources.EventNotificationsResourceWithStreamingResponse(client.event_notifications)
@@ -1261,6 +1268,7 @@ def __init__(self, client: AsyncCloudflare) -> None:
12611268
self.speed = resources.AsyncSpeedResourceWithStreamingResponse(client.speed)
12621269
self.dcv_delegation = resources.AsyncDCVDelegationResourceWithStreamingResponse(client.dcv_delegation)
12631270
self.hostnames = resources.AsyncHostnamesResourceWithStreamingResponse(client.hostnames)
1271+
self.snippets = resources.AsyncSnippetsResourceWithStreamingResponse(client.snippets)
12641272
self.calls = resources.AsyncCallsResourceWithStreamingResponse(client.calls)
12651273
self.cloudforce_one = resources.AsyncCloudforceOneResourceWithStreamingResponse(client.cloudforce_one)
12661274
self.event_notifications = resources.AsyncEventNotificationsResourceWithStreamingResponse(

src/cloudflare/resources/__init__.py

+14
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,14 @@
280280
RulesetsResourceWithStreamingResponse,
281281
AsyncRulesetsResourceWithStreamingResponse,
282282
)
283+
from .snippets import (
284+
SnippetsResource,
285+
AsyncSnippetsResource,
286+
SnippetsResourceWithRawResponse,
287+
AsyncSnippetsResourceWithRawResponse,
288+
SnippetsResourceWithStreamingResponse,
289+
AsyncSnippetsResourceWithStreamingResponse,
290+
)
283291
from .spectrum import (
284292
SpectrumResource,
285293
AsyncSpectrumResource,
@@ -1104,6 +1112,12 @@
11041112
"AsyncHostnamesResourceWithRawResponse",
11051113
"HostnamesResourceWithStreamingResponse",
11061114
"AsyncHostnamesResourceWithStreamingResponse",
1115+
"SnippetsResource",
1116+
"AsyncSnippetsResource",
1117+
"SnippetsResourceWithRawResponse",
1118+
"AsyncSnippetsResourceWithRawResponse",
1119+
"SnippetsResourceWithStreamingResponse",
1120+
"AsyncSnippetsResourceWithStreamingResponse",
11071121
"CallsResource",
11081122
"AsyncCallsResource",
11091123
"CallsResourceWithRawResponse",

0 commit comments

Comments
 (0)