Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#207)
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 7ecac59 commit 9e8b61a
Show file tree
Hide file tree
Showing 56 changed files with 11,716 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 1269
configured_endpoints: 1292
86 changes: 82 additions & 4 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Types:
from cloudflare.types.accounts import (
AccountMember,
AccountMemberWithID,
RolePermissionGrants,
RolePermissionGrant,
MemberListResponse,
MemberDeleteResponse,
)
Expand Down Expand Up @@ -2460,17 +2460,47 @@ Methods:
Types:

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

Methods:

- <code title="post /zones/{zone_id}/waiting_rooms">client.waiting_rooms.<a href="./src/cloudflare/resources/waiting_rooms/waiting_rooms.py">create</a>(\*, zone_id, \*\*<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_id}/waiting_rooms/{waiting_room_id}">client.waiting_rooms.<a href="./src/cloudflare/resources/waiting_rooms/waiting_rooms.py">update</a>(waiting_room_id, \*, zone_id, \*\*<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_id}/waiting_rooms">client.waiting_rooms.<a href="./src/cloudflare/resources/waiting_rooms/waiting_rooms.py">list</a>(\*, zone_id) -> <a href="./src/cloudflare/types/waiting_room.py">SyncSinglePage[WaitingRoom]</a></code>
- <code title="delete /zones/{zone_id}/waiting_rooms/{waiting_room_id}">client.waiting_rooms.<a href="./src/cloudflare/resources/waiting_rooms/waiting_rooms.py">delete</a>(waiting_room_id, \*, zone_id) -> <a href="./src/cloudflare/types/waiting_room_delete_response.py">WaitingRoomDeleteResponse</a></code>
- <code title="patch /zones/{zone_id}/waiting_rooms/{waiting_room_id}">client.waiting_rooms.<a href="./src/cloudflare/resources/waiting_rooms/waiting_rooms.py">edit</a>(waiting_room_id, \*, zone_id, \*\*<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_id}/waiting_rooms/{waiting_room_id}">client.waiting_rooms.<a href="./src/cloudflare/resources/waiting_rooms/waiting_rooms.py">get</a>(waiting_room_id, \*, zone_id) -> <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_id}/waiting_rooms/preview">client.waiting_rooms.page.<a href="./src/cloudflare/resources/waiting_rooms/page.py">preview</a>(\*, zone_id, \*\*<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
from cloudflare.types.waiting_rooms import WaitingroomEvent, EventDeleteResponse
```

Methods:

- <code title="post /zones/{zone_id}/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_id, \*\*<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_id}/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_id, 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_id}/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_id) -> <a href="./src/cloudflare/types/waiting_rooms/waitingroom_event.py">SyncSinglePage[WaitingroomEvent]</a></code>
- <code title="delete /zones/{zone_id}/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_id, waiting_room_id) -> <a href="./src/cloudflare/types/waiting_rooms/event_delete_response.py">EventDeleteResponse</a></code>
- <code title="patch /zones/{zone_id}/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_id, 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_id}/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_id, waiting_room_id) -> <a href="./src/cloudflare/types/waiting_rooms/waitingroom_event.py">WaitingroomEvent</a></code>

### Details

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

Methods:

- <code title="get /zones/{zone_id}/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_id, 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
from cloudflare.types.waiting_rooms import (
WaitingroomRule,
RuleCreateResponse,
RuleUpdateResponse,
RuleDeleteResponse,
RuleEditResponse,
)
```

Methods:

- <code title="post /zones/{zone_id}/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_id, \*\*<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_id}/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_id, \*\*<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_id}/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_id) -> <a href="./src/cloudflare/types/waiting_rooms/waitingroom_rule.py">SyncSinglePage[WaitingroomRule]</a></code>
- <code title="delete /zones/{zone_id}/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_id, waiting_room_id) -> <a href="./src/cloudflare/types/waiting_rooms/rule_delete_response.py">Optional</a></code>
- <code title="patch /zones/{zone_id}/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_id, 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_id}/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_id) -> <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_id}/waiting_rooms/settings">client.waiting_rooms.settings.<a href="./src/cloudflare/resources/waiting_rooms/settings.py">update</a>(\*, zone_id, \*\*<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_id}/waiting_rooms/settings">client.waiting_rooms.settings.<a href="./src/cloudflare/resources/waiting_rooms/settings.py">edit</a>(\*, zone_id, \*\*<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_id}/waiting_rooms/settings">client.waiting_rooms.settings.<a href="./src/cloudflare/resources/waiting_rooms/settings.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/waiting_rooms/setting_get_response.py">SettingGetResponse</a></code>

# Web3

## Hostnames
Expand Down
8 changes: 8 additions & 0 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ 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 @@ -231,6 +232,7 @@ 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 @@ -488,6 +490,7 @@ 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 @@ -640,6 +643,7 @@ 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 @@ -898,6 +902,7 @@ 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 @@ -985,6 +990,7 @@ 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 @@ -1074,6 +1080,7 @@ 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 @@ -1167,6 +1174,7 @@ 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: 14 additions & 0 deletions src/cloudflare/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,14 @@
SubscriptionsWithStreamingResponse,
AsyncSubscriptionsWithStreamingResponse,
)
from .waiting_rooms import (
WaitingRooms,
AsyncWaitingRooms,
WaitingRoomsWithRawResponse,
AsyncWaitingRoomsWithRawResponse,
WaitingRoomsWithStreamingResponse,
AsyncWaitingRoomsWithStreamingResponse,
)
from .bot_management import (
BotManagement,
AsyncBotManagement,
Expand Down Expand Up @@ -826,6 +834,12 @@
"AsyncSecondaryDNSWithRawResponse",
"SecondaryDNSWithStreamingResponse",
"AsyncSecondaryDNSWithStreamingResponse",
"WaitingRooms",
"AsyncWaitingRooms",
"WaitingRoomsWithRawResponse",
"AsyncWaitingRoomsWithRawResponse",
"WaitingRoomsWithStreamingResponse",
"AsyncWaitingRoomsWithStreamingResponse",
"Web3",
"AsyncWeb3",
"Web3WithRawResponse",
Expand Down
89 changes: 89 additions & 0 deletions src/cloudflare/resources/waiting_rooms/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .page import (
Page,
AsyncPage,
PageWithRawResponse,
AsyncPageWithRawResponse,
PageWithStreamingResponse,
AsyncPageWithStreamingResponse,
)
from .rules import (
Rules,
AsyncRules,
RulesWithRawResponse,
AsyncRulesWithRawResponse,
RulesWithStreamingResponse,
AsyncRulesWithStreamingResponse,
)
from .events import (
Events,
AsyncEvents,
EventsWithRawResponse,
AsyncEventsWithRawResponse,
EventsWithStreamingResponse,
AsyncEventsWithStreamingResponse,
)
from .settings import (
Settings,
AsyncSettings,
SettingsWithRawResponse,
AsyncSettingsWithRawResponse,
SettingsWithStreamingResponse,
AsyncSettingsWithStreamingResponse,
)
from .statuses import (
Statuses,
AsyncStatuses,
StatusesWithRawResponse,
AsyncStatusesWithRawResponse,
StatusesWithStreamingResponse,
AsyncStatusesWithStreamingResponse,
)
from .waiting_rooms import (
WaitingRooms,
AsyncWaitingRooms,
WaitingRoomsWithRawResponse,
AsyncWaitingRoomsWithRawResponse,
WaitingRoomsWithStreamingResponse,
AsyncWaitingRoomsWithStreamingResponse,
)

__all__ = [
"Page",
"AsyncPage",
"PageWithRawResponse",
"AsyncPageWithRawResponse",
"PageWithStreamingResponse",
"AsyncPageWithStreamingResponse",
"Events",
"AsyncEvents",
"EventsWithRawResponse",
"AsyncEventsWithRawResponse",
"EventsWithStreamingResponse",
"AsyncEventsWithStreamingResponse",
"Rules",
"AsyncRules",
"RulesWithRawResponse",
"AsyncRulesWithRawResponse",
"RulesWithStreamingResponse",
"AsyncRulesWithStreamingResponse",
"Statuses",
"AsyncStatuses",
"StatusesWithRawResponse",
"AsyncStatusesWithRawResponse",
"StatusesWithStreamingResponse",
"AsyncStatusesWithStreamingResponse",
"Settings",
"AsyncSettings",
"SettingsWithRawResponse",
"AsyncSettingsWithRawResponse",
"SettingsWithStreamingResponse",
"AsyncSettingsWithStreamingResponse",
"WaitingRooms",
"AsyncWaitingRooms",
"WaitingRoomsWithRawResponse",
"AsyncWaitingRoomsWithRawResponse",
"WaitingRoomsWithStreamingResponse",
"AsyncWaitingRoomsWithStreamingResponse",
]
33 changes: 33 additions & 0 deletions src/cloudflare/resources/waiting_rooms/events/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .events import (
Events,
AsyncEvents,
EventsWithRawResponse,
AsyncEventsWithRawResponse,
EventsWithStreamingResponse,
AsyncEventsWithStreamingResponse,
)
from .details import (
Details,
AsyncDetails,
DetailsWithRawResponse,
AsyncDetailsWithRawResponse,
DetailsWithStreamingResponse,
AsyncDetailsWithStreamingResponse,
)

__all__ = [
"Details",
"AsyncDetails",
"DetailsWithRawResponse",
"AsyncDetailsWithRawResponse",
"DetailsWithStreamingResponse",
"AsyncDetailsWithStreamingResponse",
"Events",
"AsyncEvents",
"EventsWithRawResponse",
"AsyncEventsWithRawResponse",
"EventsWithStreamingResponse",
"AsyncEventsWithStreamingResponse",
]
Loading

0 comments on commit 9e8b61a

Please sign in to comment.