Skip to content

Commit 7a2de37

Browse files
feat(cloud): add notification_threshold subresource to quotas
1 parent 1c06cca commit 7a2de37

9 files changed

Lines changed: 4896 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 652
1+
configured_endpoints: 655
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-c4c09a01a5791ea1d7c33e3c7ae09130b461848a881644003c4f0d7aaabef8b6.yml
33
openapi_spec_hash: 01f8b65e87e0dd05dec110fa43c4553f
4-
config_hash: f6f337c8c33376dd38969e7e3a8aecb0
4+
config_hash: f5f1fe25a10b69d0a7dd45d73ee52a15

src/gcore/resources/cloud/api.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,20 @@ Methods:
129129
- <code title="delete /cloud/v2/limits_request/{request_id}">client.cloud.quotas.requests.<a href="./src/gcore/resources/cloud/quotas/requests.py">delete</a>(request_id) -> None</code>
130130
- <code title="get /cloud/v2/limits_request/{request_id}">client.cloud.quotas.requests.<a href="./src/gcore/resources/cloud/quotas/requests.py">get</a>(request_id) -> <a href="./src/gcore/types/cloud/quotas/request_get_response.py">RequestGetResponse</a></code>
131131

132+
### NotificationThreshold
133+
134+
Types:
135+
136+
```python
137+
from gcore.types.cloud.quotas import NotificationThreshold
138+
```
139+
140+
Methods:
141+
142+
- <code title="put /cloud/v2/client_quotas/{client_id}/notification_threshold">client.cloud.quotas.notification_threshold.<a href="./src/gcore/resources/cloud/quotas/notification_threshold.py">update</a>(client_id, \*\*<a href="src/gcore/types/cloud/quotas/notification_threshold_update_params.py">params</a>) -> <a href="./src/gcore/types/cloud/quotas/notification_threshold.py">NotificationThreshold</a></code>
143+
- <code title="delete /cloud/v2/client_quotas/{client_id}/notification_threshold">client.cloud.quotas.notification_threshold.<a href="./src/gcore/resources/cloud/quotas/notification_threshold.py">delete</a>(client_id) -> None</code>
144+
- <code title="get /cloud/v2/client_quotas/{client_id}/notification_threshold">client.cloud.quotas.notification_threshold.<a href="./src/gcore/resources/cloud/quotas/notification_threshold.py">get</a>(client_id) -> <a href="./src/gcore/types/cloud/quotas/notification_threshold.py">NotificationThreshold</a></code>
145+
132146
## Secrets
133147

134148
Types:

src/gcore/resources/cloud/quotas/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
RequestsResourceWithStreamingResponse,
1717
AsyncRequestsResourceWithStreamingResponse,
1818
)
19+
from .notification_threshold import (
20+
NotificationThresholdResource,
21+
AsyncNotificationThresholdResource,
22+
NotificationThresholdResourceWithRawResponse,
23+
AsyncNotificationThresholdResourceWithRawResponse,
24+
NotificationThresholdResourceWithStreamingResponse,
25+
AsyncNotificationThresholdResourceWithStreamingResponse,
26+
)
1927

2028
__all__ = [
2129
"RequestsResource",
@@ -24,6 +32,12 @@
2432
"AsyncRequestsResourceWithRawResponse",
2533
"RequestsResourceWithStreamingResponse",
2634
"AsyncRequestsResourceWithStreamingResponse",
35+
"NotificationThresholdResource",
36+
"AsyncNotificationThresholdResource",
37+
"NotificationThresholdResourceWithRawResponse",
38+
"AsyncNotificationThresholdResourceWithRawResponse",
39+
"NotificationThresholdResourceWithStreamingResponse",
40+
"AsyncNotificationThresholdResourceWithStreamingResponse",
2741
"QuotasResource",
2842
"AsyncQuotasResource",
2943
"QuotasResourceWithRawResponse",

0 commit comments

Comments
 (0)