Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 22, 2024
1 parent 6c908fc commit 683552a
Show file tree
Hide file tree
Showing 50 changed files with 4 additions and 11,658 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 1292
configured_endpoints: 1269
84 changes: 3 additions & 81 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2459,47 +2459,17 @@ Methods:
Types:

```python
from cloudflare.types import WaitingRoom, WaitingRoomDeleteResponse
from cloudflare.types import WaitingRoom
```

Methods:

- <code title="post /zones/{zone_identifier}/waiting_rooms">client.waiting_rooms.<a href="./src/cloudflare/resources/waiting_rooms/waiting_rooms.py">create</a>(zone_identifier, \*\*<a href="src/cloudflare/types/waiting_room_create_params.py">params</a>) -> <a href="./src/cloudflare/types/waiting_room.py">WaitingRoom</a></code>
- <code title="put /zones/{zone_identifier}/waiting_rooms/{waiting_room_id}">client.waiting_rooms.<a href="./src/cloudflare/resources/waiting_rooms/waiting_rooms.py">update</a>(waiting_room_id, \*, zone_identifier, \*\*<a href="src/cloudflare/types/waiting_room_update_params.py">params</a>) -> <a href="./src/cloudflare/types/waiting_room.py">WaitingRoom</a></code>
- <code title="get /zones/{zone_identifier}/waiting_rooms">client.waiting_rooms.<a href="./src/cloudflare/resources/waiting_rooms/waiting_rooms.py">list</a>(zone_identifier) -> <a href="./src/cloudflare/types/waiting_room.py">SyncSinglePage[WaitingRoom]</a></code>
- <code title="delete /zones/{zone_identifier}/waiting_rooms/{waiting_room_id}">client.waiting_rooms.<a href="./src/cloudflare/resources/waiting_rooms/waiting_rooms.py">delete</a>(waiting_room_id, \*, zone_identifier) -> <a href="./src/cloudflare/types/waiting_room_delete_response.py">WaitingRoomDeleteResponse</a></code>
- <code title="patch /zones/{zone_identifier}/waiting_rooms/{waiting_room_id}">client.waiting_rooms.<a href="./src/cloudflare/resources/waiting_rooms/waiting_rooms.py">edit</a>(waiting_room_id, \*, zone_identifier, \*\*<a href="src/cloudflare/types/waiting_room_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/waiting_room.py">WaitingRoom</a></code>
- <code title="get /zones/{zone_identifier}/waiting_rooms/{waiting_room_id}">client.waiting_rooms.<a href="./src/cloudflare/resources/waiting_rooms/waiting_rooms.py">get</a>(waiting_room_id, \*, zone_identifier) -> <a href="./src/cloudflare/types/waiting_room.py">WaitingRoom</a></code>

## Page

Types:

```python
from cloudflare.types.waiting_rooms import PagePreviewResponse
```

Methods:

- <code title="post /zones/{zone_identifier}/waiting_rooms/preview">client.waiting_rooms.page.<a href="./src/cloudflare/resources/waiting_rooms/page.py">preview</a>(zone_identifier, \*\*<a href="src/cloudflare/types/waiting_rooms/page_preview_params.py">params</a>) -> <a href="./src/cloudflare/types/waiting_rooms/page_preview_response.py">PagePreviewResponse</a></code>

## Events

Types:

```python
from cloudflare.types.waiting_rooms import WaitingroomEvent, EventDeleteResponse
from cloudflare.types.waiting_rooms import WaitingroomEvent
```

Methods:

- <code title="post /zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/events">client.waiting_rooms.events.<a href="./src/cloudflare/resources/waiting_rooms/events/events.py">create</a>(waiting_room_id, \*, zone_identifier, \*\*<a href="src/cloudflare/types/waiting_rooms/event_create_params.py">params</a>) -> <a href="./src/cloudflare/types/waiting_rooms/waitingroom_event.py">WaitingroomEvent</a></code>
- <code title="put /zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/events/{event_id}">client.waiting_rooms.events.<a href="./src/cloudflare/resources/waiting_rooms/events/events.py">update</a>(event_id, \*, zone_identifier, waiting_room_id, \*\*<a href="src/cloudflare/types/waiting_rooms/event_update_params.py">params</a>) -> <a href="./src/cloudflare/types/waiting_rooms/waitingroom_event.py">WaitingroomEvent</a></code>
- <code title="get /zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/events">client.waiting_rooms.events.<a href="./src/cloudflare/resources/waiting_rooms/events/events.py">list</a>(waiting_room_id, \*, zone_identifier) -> <a href="./src/cloudflare/types/waiting_rooms/waitingroom_event.py">SyncSinglePage[WaitingroomEvent]</a></code>
- <code title="delete /zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/events/{event_id}">client.waiting_rooms.events.<a href="./src/cloudflare/resources/waiting_rooms/events/events.py">delete</a>(event_id, \*, zone_identifier, waiting_room_id) -> <a href="./src/cloudflare/types/waiting_rooms/event_delete_response.py">EventDeleteResponse</a></code>
- <code title="patch /zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/events/{event_id}">client.waiting_rooms.events.<a href="./src/cloudflare/resources/waiting_rooms/events/events.py">edit</a>(event_id, \*, zone_identifier, waiting_room_id, \*\*<a href="src/cloudflare/types/waiting_rooms/event_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/waiting_rooms/waitingroom_event.py">WaitingroomEvent</a></code>
- <code title="get /zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/events/{event_id}">client.waiting_rooms.events.<a href="./src/cloudflare/resources/waiting_rooms/events/events.py">get</a>(event_id, \*, zone_identifier, waiting_room_id) -> <a href="./src/cloudflare/types/waiting_rooms/waitingroom_event.py">WaitingroomEvent</a></code>

### Details

Types:
Expand All @@ -2508,62 +2478,14 @@ Types:
from cloudflare.types.waiting_rooms.events import WaitingroomEventDetails
```

Methods:

- <code title="get /zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/events/{event_id}/details">client.waiting_rooms.events.details.<a href="./src/cloudflare/resources/waiting_rooms/events/details.py">get</a>(event_id, \*, zone_identifier, waiting_room_id) -> <a href="./src/cloudflare/types/waiting_rooms/events/waitingroom_event_details.py">WaitingroomEventDetails</a></code>

## Rules

Types:

```python
from cloudflare.types.waiting_rooms import (
WaitingroomRule,
RuleCreateResponse,
RuleUpdateResponse,
RuleDeleteResponse,
RuleEditResponse,
)
from cloudflare.types.waiting_rooms import WaitingroomRule
```

Methods:

- <code title="post /zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/rules">client.waiting_rooms.rules.<a href="./src/cloudflare/resources/waiting_rooms/rules.py">create</a>(waiting_room_id, \*, zone_identifier, \*\*<a href="src/cloudflare/types/waiting_rooms/rule_create_params.py">params</a>) -> <a href="./src/cloudflare/types/waiting_rooms/rule_create_response.py">Optional</a></code>
- <code title="put /zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/rules">client.waiting_rooms.rules.<a href="./src/cloudflare/resources/waiting_rooms/rules.py">update</a>(waiting_room_id, \*, zone_identifier, \*\*<a href="src/cloudflare/types/waiting_rooms/rule_update_params.py">params</a>) -> <a href="./src/cloudflare/types/waiting_rooms/rule_update_response.py">Optional</a></code>
- <code title="get /zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/rules">client.waiting_rooms.rules.<a href="./src/cloudflare/resources/waiting_rooms/rules.py">list</a>(waiting_room_id, \*, zone_identifier) -> <a href="./src/cloudflare/types/waiting_rooms/waitingroom_rule.py">SyncSinglePage[WaitingroomRule]</a></code>
- <code title="delete /zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/rules/{rule_id}">client.waiting_rooms.rules.<a href="./src/cloudflare/resources/waiting_rooms/rules.py">delete</a>(rule_id, \*, zone_identifier, waiting_room_id) -> <a href="./src/cloudflare/types/waiting_rooms/rule_delete_response.py">Optional</a></code>
- <code title="patch /zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/rules/{rule_id}">client.waiting_rooms.rules.<a href="./src/cloudflare/resources/waiting_rooms/rules.py">edit</a>(rule_id, \*, zone_identifier, waiting_room_id, \*\*<a href="src/cloudflare/types/waiting_rooms/rule_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/waiting_rooms/rule_edit_response.py">Optional</a></code>

## Statuses

Types:

```python
from cloudflare.types.waiting_rooms import StatusGetResponse
```

Methods:

- <code title="get /zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/status">client.waiting_rooms.statuses.<a href="./src/cloudflare/resources/waiting_rooms/statuses.py">get</a>(waiting_room_id, \*, zone_identifier) -> <a href="./src/cloudflare/types/waiting_rooms/status_get_response.py">StatusGetResponse</a></code>

## Settings

Types:

```python
from cloudflare.types.waiting_rooms import (
SettingUpdateResponse,
SettingEditResponse,
SettingGetResponse,
)
```

Methods:

- <code title="put /zones/{zone_identifier}/waiting_rooms/settings">client.waiting_rooms.settings.<a href="./src/cloudflare/resources/waiting_rooms/settings.py">update</a>(zone_identifier, \*\*<a href="src/cloudflare/types/waiting_rooms/setting_update_params.py">params</a>) -> <a href="./src/cloudflare/types/waiting_rooms/setting_update_response.py">SettingUpdateResponse</a></code>
- <code title="patch /zones/{zone_identifier}/waiting_rooms/settings">client.waiting_rooms.settings.<a href="./src/cloudflare/resources/waiting_rooms/settings.py">edit</a>(zone_identifier, \*\*<a href="src/cloudflare/types/waiting_rooms/setting_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/waiting_rooms/setting_edit_response.py">SettingEditResponse</a></code>
- <code title="get /zones/{zone_identifier}/waiting_rooms/settings">client.waiting_rooms.settings.<a href="./src/cloudflare/resources/waiting_rooms/settings.py">get</a>(zone_identifier) -> <a href="./src/cloudflare/types/waiting_rooms/setting_get_response.py">SettingGetResponse</a></code>

# Web3

## Hostnames
Expand Down
8 changes: 0 additions & 8 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ class Cloudflare(SyncAPIClient):
pagerules: resources.Pagerules
rate_limits: resources.RateLimits
secondary_dns: resources.SecondaryDNS
waiting_rooms: resources.WaitingRooms
web3: resources.Web3
workers: resources.Workers
kv: resources.KV
Expand Down Expand Up @@ -232,7 +231,6 @@ def __init__(
self.pagerules = resources.Pagerules(self)
self.rate_limits = resources.RateLimits(self)
self.secondary_dns = resources.SecondaryDNS(self)
self.waiting_rooms = resources.WaitingRooms(self)
self.web3 = resources.Web3(self)
self.workers = resources.Workers(self)
self.kv = resources.KV(self)
Expand Down Expand Up @@ -490,7 +488,6 @@ class AsyncCloudflare(AsyncAPIClient):
pagerules: resources.AsyncPagerules
rate_limits: resources.AsyncRateLimits
secondary_dns: resources.AsyncSecondaryDNS
waiting_rooms: resources.AsyncWaitingRooms
web3: resources.AsyncWeb3
workers: resources.AsyncWorkers
kv: resources.AsyncKV
Expand Down Expand Up @@ -643,7 +640,6 @@ def __init__(
self.pagerules = resources.AsyncPagerules(self)
self.rate_limits = resources.AsyncRateLimits(self)
self.secondary_dns = resources.AsyncSecondaryDNS(self)
self.waiting_rooms = resources.AsyncWaitingRooms(self)
self.web3 = resources.AsyncWeb3(self)
self.workers = resources.AsyncWorkers(self)
self.kv = resources.AsyncKV(self)
Expand Down Expand Up @@ -902,7 +898,6 @@ def __init__(self, client: Cloudflare) -> None:
self.pagerules = resources.PagerulesWithRawResponse(client.pagerules)
self.rate_limits = resources.RateLimitsWithRawResponse(client.rate_limits)
self.secondary_dns = resources.SecondaryDNSWithRawResponse(client.secondary_dns)
self.waiting_rooms = resources.WaitingRoomsWithRawResponse(client.waiting_rooms)
self.web3 = resources.Web3WithRawResponse(client.web3)
self.workers = resources.WorkersWithRawResponse(client.workers)
self.kv = resources.KVWithRawResponse(client.kv)
Expand Down Expand Up @@ -990,7 +985,6 @@ def __init__(self, client: AsyncCloudflare) -> None:
self.pagerules = resources.AsyncPagerulesWithRawResponse(client.pagerules)
self.rate_limits = resources.AsyncRateLimitsWithRawResponse(client.rate_limits)
self.secondary_dns = resources.AsyncSecondaryDNSWithRawResponse(client.secondary_dns)
self.waiting_rooms = resources.AsyncWaitingRoomsWithRawResponse(client.waiting_rooms)
self.web3 = resources.AsyncWeb3WithRawResponse(client.web3)
self.workers = resources.AsyncWorkersWithRawResponse(client.workers)
self.kv = resources.AsyncKVWithRawResponse(client.kv)
Expand Down Expand Up @@ -1080,7 +1074,6 @@ def __init__(self, client: Cloudflare) -> None:
self.pagerules = resources.PagerulesWithStreamingResponse(client.pagerules)
self.rate_limits = resources.RateLimitsWithStreamingResponse(client.rate_limits)
self.secondary_dns = resources.SecondaryDNSWithStreamingResponse(client.secondary_dns)
self.waiting_rooms = resources.WaitingRoomsWithStreamingResponse(client.waiting_rooms)
self.web3 = resources.Web3WithStreamingResponse(client.web3)
self.workers = resources.WorkersWithStreamingResponse(client.workers)
self.kv = resources.KVWithStreamingResponse(client.kv)
Expand Down Expand Up @@ -1174,7 +1167,6 @@ def __init__(self, client: AsyncCloudflare) -> None:
self.pagerules = resources.AsyncPagerulesWithStreamingResponse(client.pagerules)
self.rate_limits = resources.AsyncRateLimitsWithStreamingResponse(client.rate_limits)
self.secondary_dns = resources.AsyncSecondaryDNSWithStreamingResponse(client.secondary_dns)
self.waiting_rooms = resources.AsyncWaitingRoomsWithStreamingResponse(client.waiting_rooms)
self.web3 = resources.AsyncWeb3WithStreamingResponse(client.web3)
self.workers = resources.AsyncWorkersWithStreamingResponse(client.workers)
self.kv = resources.AsyncKVWithStreamingResponse(client.kv)
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 @@ -456,14 +456,6 @@
SubscriptionsWithStreamingResponse,
AsyncSubscriptionsWithStreamingResponse,
)
from .waiting_rooms import (
WaitingRooms,
AsyncWaitingRooms,
WaitingRoomsWithRawResponse,
AsyncWaitingRoomsWithRawResponse,
WaitingRoomsWithStreamingResponse,
AsyncWaitingRoomsWithStreamingResponse,
)
from .bot_management import (
BotManagement,
AsyncBotManagement,
Expand Down Expand Up @@ -834,12 +826,6 @@
"AsyncSecondaryDNSWithRawResponse",
"SecondaryDNSWithStreamingResponse",
"AsyncSecondaryDNSWithStreamingResponse",
"WaitingRooms",
"AsyncWaitingRooms",
"WaitingRoomsWithRawResponse",
"AsyncWaitingRoomsWithRawResponse",
"WaitingRoomsWithStreamingResponse",
"AsyncWaitingRoomsWithStreamingResponse",
"Web3",
"AsyncWeb3",
"Web3WithRawResponse",
Expand Down
89 changes: 0 additions & 89 deletions src/cloudflare/resources/waiting_rooms/__init__.py

This file was deleted.

33 changes: 0 additions & 33 deletions src/cloudflare/resources/waiting_rooms/events/__init__.py

This file was deleted.

Loading

0 comments on commit 683552a

Please sign in to comment.