Skip to content

Commit 1e6baac

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#378)
1 parent 0d9658b commit 1e6baac

19 files changed

+2
-2059
lines changed

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 1266
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c4098fcb3861719a0115fe0bd93ede436f466e42ea623f1ed1feeb1f126d9c3d.yml
1+
configured_endpoints: 1259
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-eaeee7cb7327c83a8a9dca926a685e6e2aedc0f64ede2722f8a9004610dc8b3a.yml

api.md

-34
Original file line numberDiff line numberDiff line change
@@ -7273,40 +7273,6 @@ Methods:
72737273
- <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>
72747274
- <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>
72757275

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_identifier}/snippets/{snippet_name}">client.snippets.<a href="./src/cloudflare/resources/snippets/snippets.py">update</a>(snippet_name, \*, zone_identifier, \*\*<a href="src/cloudflare/types/snippets/snippet_update_params.py">params</a>) -> <a href="./src/cloudflare/types/snippets/snippet.py">Snippet</a></code>
7287-
- <code title="get /zones/{zone_identifier}/snippets">client.snippets.<a href="./src/cloudflare/resources/snippets/snippets.py">list</a>(zone_identifier) -> <a href="./src/cloudflare/types/snippets/snippet.py">SyncSinglePage[Snippet]</a></code>
7288-
- <code title="delete /zones/{zone_identifier}/snippets/{snippet_name}">client.snippets.<a href="./src/cloudflare/resources/snippets/snippets.py">delete</a>(snippet_name, \*, zone_identifier) -> <a href="./src/cloudflare/types/snippets/snippet_delete_response.py">SnippetDeleteResponse</a></code>
7289-
- <code title="get /zones/{zone_identifier}/snippets/{snippet_name}">client.snippets.<a href="./src/cloudflare/resources/snippets/snippets.py">get</a>(snippet_name, \*, zone_identifier) -> <a href="./src/cloudflare/types/snippets/snippet.py">Snippet</a></code>
7290-
7291-
## Content
7292-
7293-
Methods:
7294-
7295-
- <code title="get /zones/{zone_identifier}/snippets/{snippet_name}/content">client.snippets.content.<a href="./src/cloudflare/resources/snippets/content.py">get</a>(snippet_name, \*, zone_identifier) -> 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_identifier}/snippets/snippet_rules">client.snippets.rules.<a href="./src/cloudflare/resources/snippets/rules.py">update</a>(zone_identifier, \*\*<a href="src/cloudflare/types/snippets/rule_update_params.py">params</a>) -> <a href="./src/cloudflare/types/snippets/rule_update_response.py">RuleUpdateResponse</a></code>
7308-
- <code title="get /zones/{zone_identifier}/snippets/snippet_rules">client.snippets.rules.<a href="./src/cloudflare/resources/snippets/rules.py">list</a>(zone_identifier) -> <a href="./src/cloudflare/types/snippets/rule_list_response.py">SyncSinglePage[RuleListResponse]</a></code>
7309-
73107276
# Calls
73117277

73127278
Types:

src/cloudflare/_client.py

-8
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ class Cloudflare(SyncAPIClient):
124124
speed: resources.SpeedResource
125125
dcv_delegation: resources.DCVDelegationResource
126126
hostnames: resources.HostnamesResource
127-
snippets: resources.SnippetsResource
128127
calls: resources.CallsResource
129128
cloudforce_one: resources.CloudforceOneResource
130129
event_notifications: resources.EventNotificationsResource
@@ -280,7 +279,6 @@ def __init__(
280279
self.speed = resources.SpeedResource(self)
281280
self.dcv_delegation = resources.DCVDelegationResource(self)
282281
self.hostnames = resources.HostnamesResource(self)
283-
self.snippets = resources.SnippetsResource(self)
284282
self.calls = resources.CallsResource(self)
285283
self.cloudforce_one = resources.CloudforceOneResource(self)
286284
self.event_notifications = resources.EventNotificationsResource(self)
@@ -539,7 +537,6 @@ class AsyncCloudflare(AsyncAPIClient):
539537
speed: resources.AsyncSpeedResource
540538
dcv_delegation: resources.AsyncDCVDelegationResource
541539
hostnames: resources.AsyncHostnamesResource
542-
snippets: resources.AsyncSnippetsResource
543540
calls: resources.AsyncCallsResource
544541
cloudforce_one: resources.AsyncCloudforceOneResource
545542
event_notifications: resources.AsyncEventNotificationsResource
@@ -695,7 +692,6 @@ def __init__(
695692
self.speed = resources.AsyncSpeedResource(self)
696693
self.dcv_delegation = resources.AsyncDCVDelegationResource(self)
697694
self.hostnames = resources.AsyncHostnamesResource(self)
698-
self.snippets = resources.AsyncSnippetsResource(self)
699695
self.calls = resources.AsyncCallsResource(self)
700696
self.cloudforce_one = resources.AsyncCloudforceOneResource(self)
701697
self.event_notifications = resources.AsyncEventNotificationsResource(self)
@@ -965,7 +961,6 @@ def __init__(self, client: Cloudflare) -> None:
965961
self.speed = resources.SpeedResourceWithRawResponse(client.speed)
966962
self.dcv_delegation = resources.DCVDelegationResourceWithRawResponse(client.dcv_delegation)
967963
self.hostnames = resources.HostnamesResourceWithRawResponse(client.hostnames)
968-
self.snippets = resources.SnippetsResourceWithRawResponse(client.snippets)
969964
self.calls = resources.CallsResourceWithRawResponse(client.calls)
970965
self.cloudforce_one = resources.CloudforceOneResourceWithRawResponse(client.cloudforce_one)
971966
self.event_notifications = resources.EventNotificationsResourceWithRawResponse(client.event_notifications)
@@ -1064,7 +1059,6 @@ def __init__(self, client: AsyncCloudflare) -> None:
10641059
self.speed = resources.AsyncSpeedResourceWithRawResponse(client.speed)
10651060
self.dcv_delegation = resources.AsyncDCVDelegationResourceWithRawResponse(client.dcv_delegation)
10661061
self.hostnames = resources.AsyncHostnamesResourceWithRawResponse(client.hostnames)
1067-
self.snippets = resources.AsyncSnippetsResourceWithRawResponse(client.snippets)
10681062
self.calls = resources.AsyncCallsResourceWithRawResponse(client.calls)
10691063
self.cloudforce_one = resources.AsyncCloudforceOneResourceWithRawResponse(client.cloudforce_one)
10701064
self.event_notifications = resources.AsyncEventNotificationsResourceWithRawResponse(client.event_notifications)
@@ -1163,7 +1157,6 @@ def __init__(self, client: Cloudflare) -> None:
11631157
self.speed = resources.SpeedResourceWithStreamingResponse(client.speed)
11641158
self.dcv_delegation = resources.DCVDelegationResourceWithStreamingResponse(client.dcv_delegation)
11651159
self.hostnames = resources.HostnamesResourceWithStreamingResponse(client.hostnames)
1166-
self.snippets = resources.SnippetsResourceWithStreamingResponse(client.snippets)
11671160
self.calls = resources.CallsResourceWithStreamingResponse(client.calls)
11681161
self.cloudforce_one = resources.CloudforceOneResourceWithStreamingResponse(client.cloudforce_one)
11691162
self.event_notifications = resources.EventNotificationsResourceWithStreamingResponse(client.event_notifications)
@@ -1268,7 +1261,6 @@ def __init__(self, client: AsyncCloudflare) -> None:
12681261
self.speed = resources.AsyncSpeedResourceWithStreamingResponse(client.speed)
12691262
self.dcv_delegation = resources.AsyncDCVDelegationResourceWithStreamingResponse(client.dcv_delegation)
12701263
self.hostnames = resources.AsyncHostnamesResourceWithStreamingResponse(client.hostnames)
1271-
self.snippets = resources.AsyncSnippetsResourceWithStreamingResponse(client.snippets)
12721264
self.calls = resources.AsyncCallsResourceWithStreamingResponse(client.calls)
12731265
self.cloudforce_one = resources.AsyncCloudforceOneResourceWithStreamingResponse(client.cloudforce_one)
12741266
self.event_notifications = resources.AsyncEventNotificationsResourceWithStreamingResponse(

src/cloudflare/resources/__init__.py

-14
Original file line numberDiff line numberDiff line change
@@ -280,14 +280,6 @@
280280
RulesetsResourceWithStreamingResponse,
281281
AsyncRulesetsResourceWithStreamingResponse,
282282
)
283-
from .snippets import (
284-
SnippetsResource,
285-
AsyncSnippetsResource,
286-
SnippetsResourceWithRawResponse,
287-
AsyncSnippetsResourceWithRawResponse,
288-
SnippetsResourceWithStreamingResponse,
289-
AsyncSnippetsResourceWithStreamingResponse,
290-
)
291283
from .spectrum import (
292284
SpectrumResource,
293285
AsyncSpectrumResource,
@@ -1112,12 +1104,6 @@
11121104
"AsyncHostnamesResourceWithRawResponse",
11131105
"HostnamesResourceWithStreamingResponse",
11141106
"AsyncHostnamesResourceWithStreamingResponse",
1115-
"SnippetsResource",
1116-
"AsyncSnippetsResource",
1117-
"SnippetsResourceWithRawResponse",
1118-
"AsyncSnippetsResourceWithRawResponse",
1119-
"SnippetsResourceWithStreamingResponse",
1120-
"AsyncSnippetsResourceWithStreamingResponse",
11211107
"CallsResource",
11221108
"AsyncCallsResource",
11231109
"CallsResourceWithRawResponse",

src/cloudflare/resources/snippets/__init__.py

-47
This file was deleted.

src/cloudflare/resources/snippets/content.py

-166
This file was deleted.

0 commit comments

Comments
 (0)