Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Apr 29, 2024
1 parent df9febb commit 8739fb9
Show file tree
Hide file tree
Showing 19 changed files with 2 additions and 2,059 deletions.
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1266
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c4098fcb3861719a0115fe0bd93ede436f466e42ea623f1ed1feeb1f126d9c3d.yml
configured_endpoints: 1259
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-eaeee7cb7327c83a8a9dca926a685e6e2aedc0f64ede2722f8a9004610dc8b3a.yml
34 changes: 0 additions & 34 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -7273,40 +7273,6 @@ Methods:
- <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>
- <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>

# Snippets

Types:

```python
from cloudflare.types.snippets import Snippet, SnippetDeleteResponse
```

Methods:

- <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>
- <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>
- <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>
- <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>

## Content

Methods:

- <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>

## Rules

Types:

```python
from cloudflare.types.snippets import RuleUpdateResponse, RuleListResponse
```

Methods:

- <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>
- <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>

# Calls

Types:
Expand Down
8 changes: 0 additions & 8 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ class Cloudflare(SyncAPIClient):
speed: resources.SpeedResource
dcv_delegation: resources.DCVDelegationResource
hostnames: resources.HostnamesResource
snippets: resources.SnippetsResource
calls: resources.CallsResource
cloudforce_one: resources.CloudforceOneResource
event_notifications: resources.EventNotificationsResource
Expand Down Expand Up @@ -280,7 +279,6 @@ def __init__(
self.speed = resources.SpeedResource(self)
self.dcv_delegation = resources.DCVDelegationResource(self)
self.hostnames = resources.HostnamesResource(self)
self.snippets = resources.SnippetsResource(self)
self.calls = resources.CallsResource(self)
self.cloudforce_one = resources.CloudforceOneResource(self)
self.event_notifications = resources.EventNotificationsResource(self)
Expand Down Expand Up @@ -539,7 +537,6 @@ class AsyncCloudflare(AsyncAPIClient):
speed: resources.AsyncSpeedResource
dcv_delegation: resources.AsyncDCVDelegationResource
hostnames: resources.AsyncHostnamesResource
snippets: resources.AsyncSnippetsResource
calls: resources.AsyncCallsResource
cloudforce_one: resources.AsyncCloudforceOneResource
event_notifications: resources.AsyncEventNotificationsResource
Expand Down Expand Up @@ -695,7 +692,6 @@ def __init__(
self.speed = resources.AsyncSpeedResource(self)
self.dcv_delegation = resources.AsyncDCVDelegationResource(self)
self.hostnames = resources.AsyncHostnamesResource(self)
self.snippets = resources.AsyncSnippetsResource(self)
self.calls = resources.AsyncCallsResource(self)
self.cloudforce_one = resources.AsyncCloudforceOneResource(self)
self.event_notifications = resources.AsyncEventNotificationsResource(self)
Expand Down Expand Up @@ -965,7 +961,6 @@ def __init__(self, client: Cloudflare) -> None:
self.speed = resources.SpeedResourceWithRawResponse(client.speed)
self.dcv_delegation = resources.DCVDelegationResourceWithRawResponse(client.dcv_delegation)
self.hostnames = resources.HostnamesResourceWithRawResponse(client.hostnames)
self.snippets = resources.SnippetsResourceWithRawResponse(client.snippets)
self.calls = resources.CallsResourceWithRawResponse(client.calls)
self.cloudforce_one = resources.CloudforceOneResourceWithRawResponse(client.cloudforce_one)
self.event_notifications = resources.EventNotificationsResourceWithRawResponse(client.event_notifications)
Expand Down Expand Up @@ -1064,7 +1059,6 @@ def __init__(self, client: AsyncCloudflare) -> None:
self.speed = resources.AsyncSpeedResourceWithRawResponse(client.speed)
self.dcv_delegation = resources.AsyncDCVDelegationResourceWithRawResponse(client.dcv_delegation)
self.hostnames = resources.AsyncHostnamesResourceWithRawResponse(client.hostnames)
self.snippets = resources.AsyncSnippetsResourceWithRawResponse(client.snippets)
self.calls = resources.AsyncCallsResourceWithRawResponse(client.calls)
self.cloudforce_one = resources.AsyncCloudforceOneResourceWithRawResponse(client.cloudforce_one)
self.event_notifications = resources.AsyncEventNotificationsResourceWithRawResponse(client.event_notifications)
Expand Down Expand Up @@ -1163,7 +1157,6 @@ def __init__(self, client: Cloudflare) -> None:
self.speed = resources.SpeedResourceWithStreamingResponse(client.speed)
self.dcv_delegation = resources.DCVDelegationResourceWithStreamingResponse(client.dcv_delegation)
self.hostnames = resources.HostnamesResourceWithStreamingResponse(client.hostnames)
self.snippets = resources.SnippetsResourceWithStreamingResponse(client.snippets)
self.calls = resources.CallsResourceWithStreamingResponse(client.calls)
self.cloudforce_one = resources.CloudforceOneResourceWithStreamingResponse(client.cloudforce_one)
self.event_notifications = resources.EventNotificationsResourceWithStreamingResponse(client.event_notifications)
Expand Down Expand Up @@ -1268,7 +1261,6 @@ def __init__(self, client: AsyncCloudflare) -> None:
self.speed = resources.AsyncSpeedResourceWithStreamingResponse(client.speed)
self.dcv_delegation = resources.AsyncDCVDelegationResourceWithStreamingResponse(client.dcv_delegation)
self.hostnames = resources.AsyncHostnamesResourceWithStreamingResponse(client.hostnames)
self.snippets = resources.AsyncSnippetsResourceWithStreamingResponse(client.snippets)
self.calls = resources.AsyncCallsResourceWithStreamingResponse(client.calls)
self.cloudforce_one = resources.AsyncCloudforceOneResourceWithStreamingResponse(client.cloudforce_one)
self.event_notifications = resources.AsyncEventNotificationsResourceWithStreamingResponse(
Expand Down
14 changes: 0 additions & 14 deletions src/cloudflare/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,6 @@
RulesetsResourceWithStreamingResponse,
AsyncRulesetsResourceWithStreamingResponse,
)
from .snippets import (
SnippetsResource,
AsyncSnippetsResource,
SnippetsResourceWithRawResponse,
AsyncSnippetsResourceWithRawResponse,
SnippetsResourceWithStreamingResponse,
AsyncSnippetsResourceWithStreamingResponse,
)
from .spectrum import (
SpectrumResource,
AsyncSpectrumResource,
Expand Down Expand Up @@ -1112,12 +1104,6 @@
"AsyncHostnamesResourceWithRawResponse",
"HostnamesResourceWithStreamingResponse",
"AsyncHostnamesResourceWithStreamingResponse",
"SnippetsResource",
"AsyncSnippetsResource",
"SnippetsResourceWithRawResponse",
"AsyncSnippetsResourceWithRawResponse",
"SnippetsResourceWithStreamingResponse",
"AsyncSnippetsResourceWithStreamingResponse",
"CallsResource",
"AsyncCallsResource",
"CallsResourceWithRawResponse",
Expand Down
47 changes: 0 additions & 47 deletions src/cloudflare/resources/snippets/__init__.py

This file was deleted.

166 changes: 0 additions & 166 deletions src/cloudflare/resources/snippets/content.py

This file was deleted.

Loading

0 comments on commit 8739fb9

Please sign in to comment.