Skip to content

Commit 5a49713

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#308)
1 parent 289d760 commit 5a49713

23 files changed

+1401
-1
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
configured_endpoints: 1256
1+
configured_endpoints: 1259

api.md

+32
Original file line numberDiff line numberDiff line change
@@ -7345,3 +7345,35 @@ Methods:
73457345
- <code title="delete /accounts/{account_identifier}/cloudforce-one/requests/priority/{priority_identifer}">client.cloudforce_one.requests.priority.<a href="./src/cloudflare/resources/cloudforce_one/requests/priority.py">delete</a>(priority_identifer, \*, account_identifier) -> <a href="./src/cloudflare/types/cloudforce_one/requests/priority_delete_response.py">PriorityDeleteResponse</a></code>
73467346
- <code title="get /accounts/{account_identifier}/cloudforce-one/requests/priority/{priority_identifer}">client.cloudforce_one.requests.priority.<a href="./src/cloudflare/resources/cloudforce_one/requests/priority.py">get</a>(priority_identifer, \*, account_identifier) -> <a href="./src/cloudflare/types/cloudforce_one/item.py">Item</a></code>
73477347
- <code title="get /accounts/{account_identifier}/cloudforce-one/requests/priority/quota">client.cloudforce_one.requests.priority.<a href="./src/cloudflare/resources/cloudforce_one/requests/priority.py">quota</a>(account_identifier) -> <a href="./src/cloudflare/types/cloudforce_one/quota.py">Quota</a></code>
7348+
7349+
# EventNotifications
7350+
7351+
## R2
7352+
7353+
### Configuration
7354+
7355+
Types:
7356+
7357+
```python
7358+
from cloudflare.types.event_notifications.r2 import ConfigurationGetResponse
7359+
```
7360+
7361+
Methods:
7362+
7363+
- <code title="get /accounts/{account_id}/event_notifications/r2/{bucket_name}/configuration">client.event_notifications.r2.configuration.<a href="./src/cloudflare/resources/event_notifications/r2/configuration/configuration.py">get</a>(bucket_name, \*, account_id) -> <a href="./src/cloudflare/types/event_notifications/r2/configuration_get_response.py">ConfigurationGetResponse</a></code>
7364+
7365+
#### Queues
7366+
7367+
Types:
7368+
7369+
```python
7370+
from cloudflare.types.event_notifications.r2.configuration import (
7371+
QueueUpdateResponse,
7372+
QueueDeleteResponse,
7373+
)
7374+
```
7375+
7376+
Methods:
7377+
7378+
- <code title="put /accounts/{account_id}/event_notifications/r2/{bucket_name}/configuration/queues/{queue_id}">client.event_notifications.r2.configuration.queues.<a href="./src/cloudflare/resources/event_notifications/r2/configuration/queues.py">update</a>(queue_id, \*, account_id, bucket_name, \*\*<a href="src/cloudflare/types/event_notifications/r2/configuration/queue_update_params.py">params</a>) -> <a href="./src/cloudflare/types/event_notifications/r2/configuration/queue_update_response.py">QueueUpdateResponse</a></code>
7379+
- <code title="delete /accounts/{account_id}/event_notifications/r2/{bucket_name}/configuration/queues/{queue_id}">client.event_notifications.r2.configuration.queues.<a href="./src/cloudflare/resources/event_notifications/r2/configuration/queues.py">delete</a>(queue_id, \*, account_id, bucket_name) -> <a href="./src/cloudflare/types/event_notifications/r2/configuration/queue_delete_response.py">QueueDeleteResponse</a></code>

src/cloudflare/_client.py

+8
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ class Cloudflare(SyncAPIClient):
127127
snippets: resources.Snippets
128128
calls: resources.Calls
129129
cloudforce_one: resources.CloudforceOne
130+
event_notifications: resources.EventNotifications
130131
with_raw_response: CloudflareWithRawResponse
131132
with_streaming_response: CloudflareWithStreamedResponse
132133

@@ -282,6 +283,7 @@ def __init__(
282283
self.snippets = resources.Snippets(self)
283284
self.calls = resources.Calls(self)
284285
self.cloudforce_one = resources.CloudforceOne(self)
286+
self.event_notifications = resources.EventNotifications(self)
285287
self.with_raw_response = CloudflareWithRawResponse(self)
286288
self.with_streaming_response = CloudflareWithStreamedResponse(self)
287289

@@ -540,6 +542,7 @@ class AsyncCloudflare(AsyncAPIClient):
540542
snippets: resources.AsyncSnippets
541543
calls: resources.AsyncCalls
542544
cloudforce_one: resources.AsyncCloudforceOne
545+
event_notifications: resources.AsyncEventNotifications
543546
with_raw_response: AsyncCloudflareWithRawResponse
544547
with_streaming_response: AsyncCloudflareWithStreamedResponse
545548

@@ -695,6 +698,7 @@ def __init__(
695698
self.snippets = resources.AsyncSnippets(self)
696699
self.calls = resources.AsyncCalls(self)
697700
self.cloudforce_one = resources.AsyncCloudforceOne(self)
701+
self.event_notifications = resources.AsyncEventNotifications(self)
698702
self.with_raw_response = AsyncCloudflareWithRawResponse(self)
699703
self.with_streaming_response = AsyncCloudflareWithStreamedResponse(self)
700704

@@ -956,6 +960,7 @@ def __init__(self, client: Cloudflare) -> None:
956960
self.snippets = resources.SnippetsWithRawResponse(client.snippets)
957961
self.calls = resources.CallsWithRawResponse(client.calls)
958962
self.cloudforce_one = resources.CloudforceOneWithRawResponse(client.cloudforce_one)
963+
self.event_notifications = resources.EventNotificationsWithRawResponse(client.event_notifications)
959964

960965

961966
class AsyncCloudflareWithRawResponse:
@@ -1046,6 +1051,7 @@ def __init__(self, client: AsyncCloudflare) -> None:
10461051
self.snippets = resources.AsyncSnippetsWithRawResponse(client.snippets)
10471052
self.calls = resources.AsyncCallsWithRawResponse(client.calls)
10481053
self.cloudforce_one = resources.AsyncCloudforceOneWithRawResponse(client.cloudforce_one)
1054+
self.event_notifications = resources.AsyncEventNotificationsWithRawResponse(client.event_notifications)
10491055

10501056

10511057
class CloudflareWithStreamedResponse:
@@ -1136,6 +1142,7 @@ def __init__(self, client: Cloudflare) -> None:
11361142
self.snippets = resources.SnippetsWithStreamingResponse(client.snippets)
11371143
self.calls = resources.CallsWithStreamingResponse(client.calls)
11381144
self.cloudforce_one = resources.CloudforceOneWithStreamingResponse(client.cloudforce_one)
1145+
self.event_notifications = resources.EventNotificationsWithStreamingResponse(client.event_notifications)
11391146

11401147

11411148
class AsyncCloudflareWithStreamedResponse:
@@ -1232,6 +1239,7 @@ def __init__(self, client: AsyncCloudflare) -> None:
12321239
self.snippets = resources.AsyncSnippetsWithStreamingResponse(client.snippets)
12331240
self.calls = resources.AsyncCallsWithStreamingResponse(client.calls)
12341241
self.cloudforce_one = resources.AsyncCloudforceOneWithStreamingResponse(client.cloudforce_one)
1242+
self.event_notifications = resources.AsyncEventNotificationsWithStreamingResponse(client.event_notifications)
12351243

12361244

12371245
Client = Cloudflare

src/cloudflare/resources/__init__.py

+14
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,14 @@
584584
CustomCertificatesWithStreamingResponse,
585585
AsyncCustomCertificatesWithStreamingResponse,
586586
)
587+
from .event_notifications import (
588+
EventNotifications,
589+
AsyncEventNotifications,
590+
EventNotificationsWithRawResponse,
591+
AsyncEventNotificationsWithRawResponse,
592+
EventNotificationsWithStreamingResponse,
593+
AsyncEventNotificationsWithStreamingResponse,
594+
)
587595
from .keyless_certificates import (
588596
KeylessCertificates,
589597
AsyncKeylessCertificates,
@@ -1122,4 +1130,10 @@
11221130
"AsyncCloudforceOneWithRawResponse",
11231131
"CloudforceOneWithStreamingResponse",
11241132
"AsyncCloudforceOneWithStreamingResponse",
1133+
"EventNotifications",
1134+
"AsyncEventNotifications",
1135+
"EventNotificationsWithRawResponse",
1136+
"AsyncEventNotificationsWithRawResponse",
1137+
"EventNotificationsWithStreamingResponse",
1138+
"AsyncEventNotificationsWithStreamingResponse",
11251139
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .r2 import (
4+
R2,
5+
AsyncR2,
6+
R2WithRawResponse,
7+
AsyncR2WithRawResponse,
8+
R2WithStreamingResponse,
9+
AsyncR2WithStreamingResponse,
10+
)
11+
from .event_notifications import (
12+
EventNotifications,
13+
AsyncEventNotifications,
14+
EventNotificationsWithRawResponse,
15+
AsyncEventNotificationsWithRawResponse,
16+
EventNotificationsWithStreamingResponse,
17+
AsyncEventNotificationsWithStreamingResponse,
18+
)
19+
20+
__all__ = [
21+
"R2",
22+
"AsyncR2",
23+
"R2WithRawResponse",
24+
"AsyncR2WithRawResponse",
25+
"R2WithStreamingResponse",
26+
"AsyncR2WithStreamingResponse",
27+
"EventNotifications",
28+
"AsyncEventNotifications",
29+
"EventNotificationsWithRawResponse",
30+
"AsyncEventNotificationsWithRawResponse",
31+
"EventNotificationsWithStreamingResponse",
32+
"AsyncEventNotificationsWithStreamingResponse",
33+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from .r2 import (
6+
R2,
7+
AsyncR2,
8+
R2WithRawResponse,
9+
AsyncR2WithRawResponse,
10+
R2WithStreamingResponse,
11+
AsyncR2WithStreamingResponse,
12+
)
13+
from .r2.r2 import R2, AsyncR2
14+
from ..._compat import cached_property
15+
from ..._resource import SyncAPIResource, AsyncAPIResource
16+
17+
__all__ = ["EventNotifications", "AsyncEventNotifications"]
18+
19+
20+
class EventNotifications(SyncAPIResource):
21+
@cached_property
22+
def r2(self) -> R2:
23+
return R2(self._client)
24+
25+
@cached_property
26+
def with_raw_response(self) -> EventNotificationsWithRawResponse:
27+
return EventNotificationsWithRawResponse(self)
28+
29+
@cached_property
30+
def with_streaming_response(self) -> EventNotificationsWithStreamingResponse:
31+
return EventNotificationsWithStreamingResponse(self)
32+
33+
34+
class AsyncEventNotifications(AsyncAPIResource):
35+
@cached_property
36+
def r2(self) -> AsyncR2:
37+
return AsyncR2(self._client)
38+
39+
@cached_property
40+
def with_raw_response(self) -> AsyncEventNotificationsWithRawResponse:
41+
return AsyncEventNotificationsWithRawResponse(self)
42+
43+
@cached_property
44+
def with_streaming_response(self) -> AsyncEventNotificationsWithStreamingResponse:
45+
return AsyncEventNotificationsWithStreamingResponse(self)
46+
47+
48+
class EventNotificationsWithRawResponse:
49+
def __init__(self, event_notifications: EventNotifications) -> None:
50+
self._event_notifications = event_notifications
51+
52+
@cached_property
53+
def r2(self) -> R2WithRawResponse:
54+
return R2WithRawResponse(self._event_notifications.r2)
55+
56+
57+
class AsyncEventNotificationsWithRawResponse:
58+
def __init__(self, event_notifications: AsyncEventNotifications) -> None:
59+
self._event_notifications = event_notifications
60+
61+
@cached_property
62+
def r2(self) -> AsyncR2WithRawResponse:
63+
return AsyncR2WithRawResponse(self._event_notifications.r2)
64+
65+
66+
class EventNotificationsWithStreamingResponse:
67+
def __init__(self, event_notifications: EventNotifications) -> None:
68+
self._event_notifications = event_notifications
69+
70+
@cached_property
71+
def r2(self) -> R2WithStreamingResponse:
72+
return R2WithStreamingResponse(self._event_notifications.r2)
73+
74+
75+
class AsyncEventNotificationsWithStreamingResponse:
76+
def __init__(self, event_notifications: AsyncEventNotifications) -> None:
77+
self._event_notifications = event_notifications
78+
79+
@cached_property
80+
def r2(self) -> AsyncR2WithStreamingResponse:
81+
return AsyncR2WithStreamingResponse(self._event_notifications.r2)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .r2 import (
4+
R2,
5+
AsyncR2,
6+
R2WithRawResponse,
7+
AsyncR2WithRawResponse,
8+
R2WithStreamingResponse,
9+
AsyncR2WithStreamingResponse,
10+
)
11+
from .configuration import (
12+
Configuration,
13+
AsyncConfiguration,
14+
ConfigurationWithRawResponse,
15+
AsyncConfigurationWithRawResponse,
16+
ConfigurationWithStreamingResponse,
17+
AsyncConfigurationWithStreamingResponse,
18+
)
19+
20+
__all__ = [
21+
"Configuration",
22+
"AsyncConfiguration",
23+
"ConfigurationWithRawResponse",
24+
"AsyncConfigurationWithRawResponse",
25+
"ConfigurationWithStreamingResponse",
26+
"AsyncConfigurationWithStreamingResponse",
27+
"R2",
28+
"AsyncR2",
29+
"R2WithRawResponse",
30+
"AsyncR2WithRawResponse",
31+
"R2WithStreamingResponse",
32+
"AsyncR2WithStreamingResponse",
33+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .queues import (
4+
Queues,
5+
AsyncQueues,
6+
QueuesWithRawResponse,
7+
AsyncQueuesWithRawResponse,
8+
QueuesWithStreamingResponse,
9+
AsyncQueuesWithStreamingResponse,
10+
)
11+
from .configuration import (
12+
Configuration,
13+
AsyncConfiguration,
14+
ConfigurationWithRawResponse,
15+
AsyncConfigurationWithRawResponse,
16+
ConfigurationWithStreamingResponse,
17+
AsyncConfigurationWithStreamingResponse,
18+
)
19+
20+
__all__ = [
21+
"Queues",
22+
"AsyncQueues",
23+
"QueuesWithRawResponse",
24+
"AsyncQueuesWithRawResponse",
25+
"QueuesWithStreamingResponse",
26+
"AsyncQueuesWithStreamingResponse",
27+
"Configuration",
28+
"AsyncConfiguration",
29+
"ConfigurationWithRawResponse",
30+
"AsyncConfigurationWithRawResponse",
31+
"ConfigurationWithStreamingResponse",
32+
"AsyncConfigurationWithStreamingResponse",
33+
]

0 commit comments

Comments
 (0)