Skip to content

Commit 0d13f58

Browse files
feat(api): aggregated API specs update
1 parent 4db1909 commit 0d13f58

59 files changed

Lines changed: 432 additions & 221 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 633
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-cf3ae8749ead0412e761136b7c81a9ca98dd46ca9ef76c1f700cb1ecc814630d.yml
3-
openapi_spec_hash: d5b2b66116339bbe16ec0bbff5b6366f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-9377b474dea790cb05261b341252967ecb7791d5aa9b102f2241a8b8826c11ab.yml
3+
openapi_spec_hash: c6a8c5e78604079deb242a0dd3d48cba
44
config_hash: 814c5f622b6b26a5556a87031051c797

src/gcore/resources/cdn/resources/resources.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ def create(
154154
155155
proxy_ssl_ca: ID of the trusted CA certificate used to verify an origin.
156156
157-
It can be used only with `"`proxy_ssl_enabled`": true`.
157+
It can be used only with `"proxy_ssl_enabled": true`.
158158
159159
proxy_ssl_data: ID of the SSL certificate used to verify an origin.
160160
161-
It can be used only with `"`proxy_ssl_enabled`": true`.
161+
It can be used only with `"proxy_ssl_enabled": true`.
162162
163163
proxy_ssl_enabled: Enables or disables SSL certificate validation of the origin server before
164164
completing any connection.
@@ -288,11 +288,11 @@ def update(
288288
289289
proxy_ssl_ca: ID of the trusted CA certificate used to verify an origin.
290290
291-
It can be used only with `"`proxy_ssl_enabled`": true`.
291+
It can be used only with `"proxy_ssl_enabled": true`.
292292
293293
proxy_ssl_data: ID of the SSL certificate used to verify an origin.
294294
295-
It can be used only with `"`proxy_ssl_enabled`": true`.
295+
It can be used only with `"proxy_ssl_enabled": true`.
296296
297297
proxy_ssl_enabled: Enables or disables SSL certificate validation of the origin server before
298298
completing any connection.
@@ -731,16 +731,16 @@ def purge(
731731
Args:
732732
paths: **Purge by pattern** clears the cache that matches the pattern.
733733
734-
Use \\** operator, which replaces any number of symbols in your path. It's
735-
important to note that wildcard usage (\\**) is permitted only at the end of a
734+
Use _ operator, which replaces any number of symbols in your path. It's
735+
important to note that wildcard usage (_) is permitted only at the end of a
736736
pattern.
737737
738738
Query string added to any patterns will be ignored, and purge request will be
739739
processed as if there weren't any parameters.
740740
741-
Purge by pattern is recursive. Both /path and /path\\** will result in recursive
741+
Purge by pattern is recursive. Both /path and /path* will result in recursive
742742
purging, meaning all content under the specified path will be affected. As such,
743-
using the pattern /path\\** is functionally equivalent to simply using /path.
743+
using the pattern /path* is functionally equivalent to simply using /path.
744744
745745
extra_headers: Send extra headers
746746
@@ -886,11 +886,11 @@ def replace(
886886
887887
proxy_ssl_ca: ID of the trusted CA certificate used to verify an origin.
888888
889-
It can be used only with `"`proxy_ssl_enabled`": true`.
889+
It can be used only with `"proxy_ssl_enabled": true`.
890890
891891
proxy_ssl_data: ID of the SSL certificate used to verify an origin.
892892
893-
It can be used only with `"`proxy_ssl_enabled`": true`.
893+
It can be used only with `"proxy_ssl_enabled": true`.
894894
895895
proxy_ssl_enabled: Enables or disables SSL certificate validation of the origin server before
896896
completing any connection.
@@ -1064,11 +1064,11 @@ async def create(
10641064
10651065
proxy_ssl_ca: ID of the trusted CA certificate used to verify an origin.
10661066
1067-
It can be used only with `"`proxy_ssl_enabled`": true`.
1067+
It can be used only with `"proxy_ssl_enabled": true`.
10681068
10691069
proxy_ssl_data: ID of the SSL certificate used to verify an origin.
10701070
1071-
It can be used only with `"`proxy_ssl_enabled`": true`.
1071+
It can be used only with `"proxy_ssl_enabled": true`.
10721072
10731073
proxy_ssl_enabled: Enables or disables SSL certificate validation of the origin server before
10741074
completing any connection.
@@ -1198,11 +1198,11 @@ async def update(
11981198
11991199
proxy_ssl_ca: ID of the trusted CA certificate used to verify an origin.
12001200
1201-
It can be used only with `"`proxy_ssl_enabled`": true`.
1201+
It can be used only with `"proxy_ssl_enabled": true`.
12021202
12031203
proxy_ssl_data: ID of the SSL certificate used to verify an origin.
12041204
1205-
It can be used only with `"`proxy_ssl_enabled`": true`.
1205+
It can be used only with `"proxy_ssl_enabled": true`.
12061206
12071207
proxy_ssl_enabled: Enables or disables SSL certificate validation of the origin server before
12081208
completing any connection.
@@ -1641,16 +1641,16 @@ async def purge(
16411641
Args:
16421642
paths: **Purge by pattern** clears the cache that matches the pattern.
16431643
1644-
Use \\** operator, which replaces any number of symbols in your path. It's
1645-
important to note that wildcard usage (\\**) is permitted only at the end of a
1644+
Use _ operator, which replaces any number of symbols in your path. It's
1645+
important to note that wildcard usage (_) is permitted only at the end of a
16461646
pattern.
16471647
16481648
Query string added to any patterns will be ignored, and purge request will be
16491649
processed as if there weren't any parameters.
16501650
1651-
Purge by pattern is recursive. Both /path and /path\\** will result in recursive
1651+
Purge by pattern is recursive. Both /path and /path* will result in recursive
16521652
purging, meaning all content under the specified path will be affected. As such,
1653-
using the pattern /path\\** is functionally equivalent to simply using /path.
1653+
using the pattern /path* is functionally equivalent to simply using /path.
16541654
16551655
extra_headers: Send extra headers
16561656
@@ -1796,11 +1796,11 @@ async def replace(
17961796
17971797
proxy_ssl_ca: ID of the trusted CA certificate used to verify an origin.
17981798
1799-
It can be used only with `"`proxy_ssl_enabled`": true`.
1799+
It can be used only with `"proxy_ssl_enabled": true`.
18001800
18011801
proxy_ssl_data: ID of the SSL certificate used to verify an origin.
18021802
1803-
It can be used only with `"`proxy_ssl_enabled`": true`.
1803+
It can be used only with `"proxy_ssl_enabled": true`.
18041804
18051805
proxy_ssl_enabled: Enables or disables SSL certificate validation of the origin server before
18061806
completing any connection.

src/gcore/resources/cloud/audit_logs.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ def list(
156156
resource_id: SequenceNotStr[str] | Omit = omit,
157157
search_field: str | Omit = omit,
158158
sorting: Literal["asc", "desc"] | Omit = omit,
159+
source_user_ips: SequenceNotStr[str] | Omit = omit,
159160
to_timestamp: Union[str, datetime] | Omit = omit,
161+
user_agents: SequenceNotStr[str] | Omit = omit,
160162
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
161163
# The extra values given here take precedence over values defined on the client or passed to this method.
162164
extra_headers: Headers | None = None,
@@ -194,9 +196,15 @@ def list(
194196
sorting: (DEPRECATED Use '`order_by`' instead) Sorting by timestamp. Oldest first, or
195197
most recent first
196198
199+
source_user_ips: Originating IP address of the client making the request. Several options can be
200+
specified.
201+
197202
to_timestamp: ISO formatted datetime string. Ending timestamp until which user actions are
198203
requested
199204
205+
user_agents: User-Agent string identifying the client making the request. Several options can
206+
be specified.
207+
200208
extra_headers: Send extra headers
201209
202210
extra_query: Add additional query parameters to the request
@@ -226,7 +234,9 @@ def list(
226234
"resource_id": resource_id,
227235
"search_field": search_field,
228236
"sorting": sorting,
237+
"source_user_ips": source_user_ips,
229238
"to_timestamp": to_timestamp,
239+
"user_agents": user_agents,
230240
},
231241
audit_log_list_params.AuditLogListParams,
232242
),
@@ -365,7 +375,9 @@ def list(
365375
resource_id: SequenceNotStr[str] | Omit = omit,
366376
search_field: str | Omit = omit,
367377
sorting: Literal["asc", "desc"] | Omit = omit,
378+
source_user_ips: SequenceNotStr[str] | Omit = omit,
368379
to_timestamp: Union[str, datetime] | Omit = omit,
380+
user_agents: SequenceNotStr[str] | Omit = omit,
369381
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
370382
# The extra values given here take precedence over values defined on the client or passed to this method.
371383
extra_headers: Headers | None = None,
@@ -403,9 +415,15 @@ def list(
403415
sorting: (DEPRECATED Use '`order_by`' instead) Sorting by timestamp. Oldest first, or
404416
most recent first
405417
418+
source_user_ips: Originating IP address of the client making the request. Several options can be
419+
specified.
420+
406421
to_timestamp: ISO formatted datetime string. Ending timestamp until which user actions are
407422
requested
408423
424+
user_agents: User-Agent string identifying the client making the request. Several options can
425+
be specified.
426+
409427
extra_headers: Send extra headers
410428
411429
extra_query: Add additional query parameters to the request
@@ -435,7 +453,9 @@ def list(
435453
"resource_id": resource_id,
436454
"search_field": search_field,
437455
"sorting": sorting,
456+
"source_user_ips": source_user_ips,
438457
"to_timestamp": to_timestamp,
458+
"user_agents": user_agents,
439459
},
440460
audit_log_list_params.AuditLogListParams,
441461
),

src/gcore/resources/cloud/baremetal/servers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ def create(
120120
name_template: If you want server names to be automatically generated based on IP addresses,
121121
you can provide a name template instead of specifying the name manually. The
122122
template should include a placeholder that will be replaced during provisioning.
123-
Supported placeholders are: `{`ip_octets`}` (last 3 octets of the IP),
124-
`{`two_ip_octets`}`, and `{`one_ip_octet`}`.
123+
Supported placeholders are: `{ip_octets}` (last 3 octets of the IP),
124+
`{two_ip_octets}`, and `{one_ip_octet}`.
125125
126126
password: For Linux instances, 'username' and 'password' are used to create a new user.
127127
When only 'password' is provided, it is set as the password for the default user
@@ -611,8 +611,8 @@ async def create(
611611
name_template: If you want server names to be automatically generated based on IP addresses,
612612
you can provide a name template instead of specifying the name manually. The
613613
template should include a placeholder that will be replaced during provisioning.
614-
Supported placeholders are: `{`ip_octets`}` (last 3 octets of the IP),
615-
`{`two_ip_octets`}`, and `{`one_ip_octet`}`.
614+
Supported placeholders are: `{ip_octets}` (last 3 octets of the IP),
615+
`{two_ip_octets}`, and `{one_ip_octet}`.
616616
617617
password: For Linux instances, 'username' and 'password' are used to create a new user.
618618
When only 'password' is provided, it is set as the password for the default user

src/gcore/resources/cloud/file_shares/file_shares.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,15 +267,20 @@ def update(
267267
- **Add/update tags:**
268268
`{'tags': {'environment': 'production', 'team': 'backend'}}` adds new tags or
269269
updates existing ones.
270-
- **Delete tags:** `{'tags': {'`old_tag`': null}}` removes specific tags.
270+
271+
- **Delete tags:** `{'tags': {'old_tag': null}}` removes specific tags.
272+
271273
- **Remove all tags:** `{'tags': null}` removes all user-managed tags (read-only
272274
tags are preserved).
275+
273276
- **Partial update:** `{'tags': {'environment': 'staging'}}` only updates
274277
specified tags.
278+
275279
- **Mixed operations:**
276-
`{'tags': {'environment': 'production', '`cost_center`': 'engineering', '`deprecated_tag`': null}}`
280+
`{'tags': {'environment': 'production', 'cost_center': 'engineering', 'deprecated_tag': null}}`
277281
adds/updates 'environment' and '`cost_center`' while removing
278282
'`deprecated_tag`', preserving other existing tags.
283+
279284
- **Replace all:** first delete existing tags with null values, then add new
280285
ones in the same request.
281286
@@ -790,15 +795,20 @@ async def update(
790795
- **Add/update tags:**
791796
`{'tags': {'environment': 'production', 'team': 'backend'}}` adds new tags or
792797
updates existing ones.
793-
- **Delete tags:** `{'tags': {'`old_tag`': null}}` removes specific tags.
798+
799+
- **Delete tags:** `{'tags': {'old_tag': null}}` removes specific tags.
800+
794801
- **Remove all tags:** `{'tags': null}` removes all user-managed tags (read-only
795802
tags are preserved).
803+
796804
- **Partial update:** `{'tags': {'environment': 'staging'}}` only updates
797805
specified tags.
806+
798807
- **Mixed operations:**
799-
`{'tags': {'environment': 'production', '`cost_center`': 'engineering', '`deprecated_tag`': null}}`
808+
`{'tags': {'environment': 'production', 'cost_center': 'engineering', 'deprecated_tag': null}}`
800809
adds/updates 'environment' and '`cost_center`' while removing
801810
'`deprecated_tag`', preserving other existing tags.
811+
802812
- **Replace all:** first delete existing tags with null values, then add new
803813
ones in the same request.
804814

src/gcore/resources/cloud/floating_ips.py

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
)
1919
from ...pagination import SyncOffsetPage, AsyncOffsetPage
2020
from ...types.cloud import (
21+
FloatingIPStatus,
2122
floating_ip_list_params,
2223
floating_ip_assign_params,
2324
floating_ip_create_params,
@@ -26,6 +27,7 @@
2627
from ..._base_client import AsyncPaginator, make_request_options
2728
from ...types.cloud.floating_ip import FloatingIP
2829
from ...types.cloud.task_id_list import TaskIDList
30+
from ...types.cloud.floating_ip_status import FloatingIPStatus
2931
from ...types.cloud.floating_ip_detailed import FloatingIPDetailed
3032
from ...types.cloud.tag_update_map_param import TagUpdateMapParam
3133

@@ -154,15 +156,20 @@ def update(
154156
- **Add/update tags:**
155157
`{'tags': {'environment': 'production', 'team': 'backend'}}` adds new tags or
156158
updates existing ones.
157-
- **Delete tags:** `{'tags': {'`old_tag`': null}}` removes specific tags.
159+
160+
- **Delete tags:** `{'tags': {'old_tag': null}}` removes specific tags.
161+
158162
- **Remove all tags:** `{'tags': null}` removes all user-managed tags (read-only
159163
tags are preserved).
164+
160165
- **Partial update:** `{'tags': {'environment': 'staging'}}` only updates
161166
specified tags.
167+
162168
- **Mixed operations:**
163-
`{'tags': {'environment': 'production', '`cost_center`': 'engineering', '`deprecated_tag`': null}}`
169+
`{'tags': {'environment': 'production', 'cost_center': 'engineering', 'deprecated_tag': null}}`
164170
adds/updates 'environment' and '`cost_center`' while removing
165171
'`deprecated_tag`', preserving other existing tags.
172+
166173
- **Replace all:** first delete existing tags with null values, then add new
167174
ones in the same request.
168175
@@ -196,6 +203,7 @@ def list(
196203
region_id: int | None = None,
197204
limit: int | Omit = omit,
198205
offset: int | Omit = omit,
206+
status: FloatingIPStatus | Omit = omit,
199207
tag_key: SequenceNotStr[str] | Omit = omit,
200208
tag_key_value: str | Omit = omit,
201209
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -218,6 +226,9 @@ def list(
218226
offset: Optional. Offset value is used to exclude the first set of records from the
219227
result
220228
229+
status: Filter by floating IP status. DOWN - unassigned (available). ACTIVE - attached
230+
to a port (in use). ERROR - error state.
231+
221232
tag_key: Optional. Filter by tag keys. ?`tag_key`=key1&`tag_key`=key2
222233
223234
tag_key_value: Optional. Filter by tag key-value pairs.
@@ -246,6 +257,7 @@ def list(
246257
{
247258
"limit": limit,
248259
"offset": offset,
260+
"status": status,
249261
"tag_key": tag_key,
250262
"tag_key_value": tag_key_value,
251263
},
@@ -647,15 +659,20 @@ async def update(
647659
- **Add/update tags:**
648660
`{'tags': {'environment': 'production', 'team': 'backend'}}` adds new tags or
649661
updates existing ones.
650-
- **Delete tags:** `{'tags': {'`old_tag`': null}}` removes specific tags.
662+
663+
- **Delete tags:** `{'tags': {'old_tag': null}}` removes specific tags.
664+
651665
- **Remove all tags:** `{'tags': null}` removes all user-managed tags (read-only
652666
tags are preserved).
667+
653668
- **Partial update:** `{'tags': {'environment': 'staging'}}` only updates
654669
specified tags.
670+
655671
- **Mixed operations:**
656-
`{'tags': {'environment': 'production', '`cost_center`': 'engineering', '`deprecated_tag`': null}}`
672+
`{'tags': {'environment': 'production', 'cost_center': 'engineering', 'deprecated_tag': null}}`
657673
adds/updates 'environment' and '`cost_center`' while removing
658674
'`deprecated_tag`', preserving other existing tags.
675+
659676
- **Replace all:** first delete existing tags with null values, then add new
660677
ones in the same request.
661678
@@ -689,6 +706,7 @@ def list(
689706
region_id: int | None = None,
690707
limit: int | Omit = omit,
691708
offset: int | Omit = omit,
709+
status: FloatingIPStatus | Omit = omit,
692710
tag_key: SequenceNotStr[str] | Omit = omit,
693711
tag_key_value: str | Omit = omit,
694712
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -711,6 +729,9 @@ def list(
711729
offset: Optional. Offset value is used to exclude the first set of records from the
712730
result
713731
732+
status: Filter by floating IP status. DOWN - unassigned (available). ACTIVE - attached
733+
to a port (in use). ERROR - error state.
734+
714735
tag_key: Optional. Filter by tag keys. ?`tag_key`=key1&`tag_key`=key2
715736
716737
tag_key_value: Optional. Filter by tag key-value pairs.
@@ -739,6 +760,7 @@ def list(
739760
{
740761
"limit": limit,
741762
"offset": offset,
763+
"status": status,
742764
"tag_key": tag_key,
743765
"tag_key_value": tag_key_value,
744766
},

0 commit comments

Comments
 (0)