Skip to content

Commit 86b63d4

Browse files
feat(api): aggregated API specs update
1 parent ebdb1e8 commit 86b63d4

File tree

5 files changed

+29
-11
lines changed

5 files changed

+29
-11
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 523
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-efd5495399fc306a35e490c3872afae6e9d9bcb61eec361fc0ef035e5e42af8b.yml
3-
openapi_spec_hash: ccb1fb7d018b724fd61c3afc68fcd7a5
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-38d8aa4ef1f49052e095528dde5dde792be9d238f5aa5d391a185a12a1764afe.yml
3+
openapi_spec_hash: 4d944c7b954eba8dadbc8d6f1823a4d4
44
config_hash: 296feeb9e44105df95628b9989e56273

src/gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ def delete(
250250
project_id: int | None = None,
251251
region_id: int | None = None,
252252
all_floating_ips: bool | NotGiven = NOT_GIVEN,
253+
all_reserved_fixed_ips: bool | NotGiven = NOT_GIVEN,
253254
floating_ip_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
254255
reserved_fixed_ip_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
255256
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -272,6 +273,9 @@ def delete(
272273
all_floating_ips: Flag indicating whether the floating ips associated with server / cluster are
273274
deleted
274275
276+
all_reserved_fixed_ips: Flag indicating whether the reserved fixed ips associated with server / cluster
277+
are deleted
278+
275279
floating_ip_ids: Optional list of floating ips to be deleted
276280
277281
reserved_fixed_ip_ids: Optional list of reserved fixed ips to be deleted
@@ -302,6 +306,7 @@ def delete(
302306
query=maybe_transform(
303307
{
304308
"all_floating_ips": all_floating_ips,
309+
"all_reserved_fixed_ips": all_reserved_fixed_ips,
305310
"floating_ip_ids": floating_ip_ids,
306311
"reserved_fixed_ip_ids": reserved_fixed_ip_ids,
307312
},
@@ -894,6 +899,7 @@ async def delete(
894899
project_id: int | None = None,
895900
region_id: int | None = None,
896901
all_floating_ips: bool | NotGiven = NOT_GIVEN,
902+
all_reserved_fixed_ips: bool | NotGiven = NOT_GIVEN,
897903
floating_ip_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
898904
reserved_fixed_ip_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
899905
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -916,6 +922,9 @@ async def delete(
916922
all_floating_ips: Flag indicating whether the floating ips associated with server / cluster are
917923
deleted
918924
925+
all_reserved_fixed_ips: Flag indicating whether the reserved fixed ips associated with server / cluster
926+
are deleted
927+
919928
floating_ip_ids: Optional list of floating ips to be deleted
920929
921930
reserved_fixed_ip_ids: Optional list of reserved fixed ips to be deleted
@@ -946,6 +955,7 @@ async def delete(
946955
query=await async_maybe_transform(
947956
{
948957
"all_floating_ips": all_floating_ips,
958+
"all_reserved_fixed_ips": all_reserved_fixed_ips,
949959
"floating_ip_ids": floating_ip_ids,
950960
"reserved_fixed_ip_ids": reserved_fixed_ip_ids,
951961
},

src/gcore/types/cloud/gpu_baremetal_cluster_delete_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ class GPUBaremetalClusterDeleteParams(TypedDict, total=False):
2222
deleted
2323
"""
2424

25+
all_reserved_fixed_ips: bool
26+
"""
27+
Flag indicating whether the reserved fixed ips associated with server / cluster
28+
are deleted
29+
"""
30+
2531
floating_ip_ids: SequenceNotStr[str]
2632
"""Optional list of floating ips to be deleted"""
2733

src/gcore/types/cloud/project.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ class Project(BaseModel):
1818
created_at: datetime
1919
"""Datetime of creation, which is automatically generated."""
2020

21+
deleted_at: Optional[datetime] = None
22+
"""
23+
Datetime of deletion, which is automatically generated if the project is
24+
deleted.
25+
"""
26+
27+
description: Optional[str] = None
28+
"""Description of the project."""
29+
2130
is_default: bool
2231
"""Indicates if the project is the default one.
2332
@@ -30,15 +39,6 @@ class Project(BaseModel):
3039
state: str
3140
"""The state of the project."""
3241

33-
deleted_at: Optional[datetime] = None
34-
"""
35-
Datetime of deletion, which is automatically generated if the project is
36-
deleted.
37-
"""
38-
39-
description: Optional[str] = None
40-
"""Description of the project."""
41-
4242
task_id: Optional[str] = None
4343
"""The UUID of the active task that currently holds a lock on the resource.
4444

tests/api_resources/cloud/test_gpu_baremetal_clusters.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ def test_method_delete_with_all_params(self, client: Gcore) -> None:
161161
project_id=1,
162162
region_id=7,
163163
all_floating_ips=True,
164+
all_reserved_fixed_ips=True,
164165
floating_ip_ids=["e4a01208-d6ac-4304-bf86-3028154b070a"],
165166
reserved_fixed_ip_ids=["a29b8e1e-08d3-4cec-91fb-06e81e5f46d5"],
166167
)
@@ -598,6 +599,7 @@ async def test_method_delete_with_all_params(self, async_client: AsyncGcore) ->
598599
project_id=1,
599600
region_id=7,
600601
all_floating_ips=True,
602+
all_reserved_fixed_ips=True,
601603
floating_ip_ids=["e4a01208-d6ac-4304-bf86-3028154b070a"],
602604
reserved_fixed_ip_ids=["a29b8e1e-08d3-4cec-91fb-06e81e5f46d5"],
603605
)

0 commit comments

Comments
 (0)