Skip to content

Commit b484f9c

Browse files
feat(api): aggregated API specs update
1 parent 0e36db9 commit b484f9c

File tree

4 files changed

+21
-23
lines changed

4 files changed

+21
-23
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: 647
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-e1435565c5da22e3a924f1f8474ba980ea06cc89fe02011b4f29a3f4df4ec48e.yml
3-
openapi_spec_hash: 4e551b8de20de612de780784d15c3eb5
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-6be5ef30147395fa70c249990edbb9f6c42789b9df04701483026bf6318cd31c.yml
3+
openapi_spec_hash: 9fc23b4b32709495a448fce244b5de62
44
config_hash: ee9fe3677a3591bb2fcc219ef6448eb2

src/gcore/resources/cloud/volumes.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Iterable, Optional
5+
from typing import Dict, Iterable, Optional
66
from typing_extensions import Literal, overload
77

88
import httpx
@@ -69,7 +69,7 @@ def create(
6969
attachment_tag: str | Omit = omit,
7070
instance_id_to_attach_to: str | Omit = omit,
7171
lifecycle_policy_ids: Iterable[int] | Omit = omit,
72-
tags: TagUpdateMapParam | Omit = omit,
72+
tags: Dict[str, str] | Omit = omit,
7373
type_name: Literal["cold", "ssd_hiiops", "ssd_local", "ssd_lowlatency", "standard", "ultra"] | Omit = omit,
7474
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
7575
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -138,7 +138,7 @@ def create(
138138
instance_id_to_attach_to: str | Omit = omit,
139139
lifecycle_policy_ids: Iterable[int] | Omit = omit,
140140
size: int | Omit = omit,
141-
tags: TagUpdateMapParam | Omit = omit,
141+
tags: Dict[str, str] | Omit = omit,
142142
type_name: Literal["cold", "ssd_hiiops", "ssd_local", "ssd_lowlatency", "standard", "ultra"] | Omit = omit,
143143
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
144144
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -207,7 +207,7 @@ def create(
207207
attachment_tag: str | Omit = omit,
208208
instance_id_to_attach_to: str | Omit = omit,
209209
lifecycle_policy_ids: Iterable[int] | Omit = omit,
210-
tags: TagUpdateMapParam | Omit = omit,
210+
tags: Dict[str, str] | Omit = omit,
211211
type_name: Literal["cold", "ssd_hiiops", "ssd_local", "ssd_lowlatency", "standard", "ultra"] | Omit = omit,
212212
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
213213
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -276,7 +276,7 @@ def create(
276276
attachment_tag: str | Omit = omit,
277277
instance_id_to_attach_to: str | Omit = omit,
278278
lifecycle_policy_ids: Iterable[int] | Omit = omit,
279-
tags: TagUpdateMapParam | Omit = omit,
279+
tags: Dict[str, str] | Omit = omit,
280280
type_name: Literal["cold", "ssd_hiiops", "ssd_local", "ssd_lowlatency", "standard", "ultra"] | Omit = omit,
281281
snapshot_id: str | Omit = omit,
282282
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -1313,7 +1313,7 @@ async def create(
13131313
attachment_tag: str | Omit = omit,
13141314
instance_id_to_attach_to: str | Omit = omit,
13151315
lifecycle_policy_ids: Iterable[int] | Omit = omit,
1316-
tags: TagUpdateMapParam | Omit = omit,
1316+
tags: Dict[str, str] | Omit = omit,
13171317
type_name: Literal["cold", "ssd_hiiops", "ssd_local", "ssd_lowlatency", "standard", "ultra"] | Omit = omit,
13181318
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
13191319
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1382,7 +1382,7 @@ async def create(
13821382
instance_id_to_attach_to: str | Omit = omit,
13831383
lifecycle_policy_ids: Iterable[int] | Omit = omit,
13841384
size: int | Omit = omit,
1385-
tags: TagUpdateMapParam | Omit = omit,
1385+
tags: Dict[str, str] | Omit = omit,
13861386
type_name: Literal["cold", "ssd_hiiops", "ssd_local", "ssd_lowlatency", "standard", "ultra"] | Omit = omit,
13871387
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
13881388
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1451,7 +1451,7 @@ async def create(
14511451
attachment_tag: str | Omit = omit,
14521452
instance_id_to_attach_to: str | Omit = omit,
14531453
lifecycle_policy_ids: Iterable[int] | Omit = omit,
1454-
tags: TagUpdateMapParam | Omit = omit,
1454+
tags: Dict[str, str] | Omit = omit,
14551455
type_name: Literal["cold", "ssd_hiiops", "ssd_local", "ssd_lowlatency", "standard", "ultra"] | Omit = omit,
14561456
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
14571457
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1520,7 +1520,7 @@ async def create(
15201520
attachment_tag: str | Omit = omit,
15211521
instance_id_to_attach_to: str | Omit = omit,
15221522
lifecycle_policy_ids: Iterable[int] | Omit = omit,
1523-
tags: TagUpdateMapParam | Omit = omit,
1523+
tags: Dict[str, str] | Omit = omit,
15241524
type_name: Literal["cold", "ssd_hiiops", "ssd_local", "ssd_lowlatency", "standard", "ultra"] | Omit = omit,
15251525
snapshot_id: str | Omit = omit,
15261526
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.

src/gcore/types/cloud/volume_create_params.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
from __future__ import annotations
44

5-
from typing import Union, Iterable
5+
from typing import Dict, Union, Iterable
66
from typing_extensions import Literal, Required, TypeAlias, TypedDict
77

8-
from .tag_update_map_param import TagUpdateMapParam
9-
108
__all__ = [
119
"VolumeCreateParams",
1210
"CreateVolumeFromImageSerializer",
@@ -49,7 +47,7 @@ class CreateVolumeFromImageSerializer(TypedDict, total=False):
4947
volume
5048
"""
5149

52-
tags: TagUpdateMapParam
50+
tags: Dict[str, str]
5351
"""Key-value tags to associate with the resource.
5452
5553
A tag is a key-value pair that can be associated with a resource, enabling
@@ -104,7 +102,7 @@ class CreateVolumeFromSnapshotSerializer(TypedDict, total=False):
104102
If specified, value must be equal to respective snapshot size
105103
"""
106104

107-
tags: TagUpdateMapParam
105+
tags: Dict[str, str]
108106
"""Key-value tags to associate with the resource.
109107
110108
A tag is a key-value pair that can be associated with a resource, enabling
@@ -153,7 +151,7 @@ class CreateNewVolumeSerializer(TypedDict, total=False):
153151
volume
154152
"""
155153

156-
tags: TagUpdateMapParam
154+
tags: Dict[str, str]
157155
"""Key-value tags to associate with the resource.
158156
159157
A tag is a key-value pair that can be associated with a resource, enabling

tests/api_resources/cloud/test_volumes.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_method_create_with_all_params_overload_1(self, client: Gcore) -> None:
4545
attachment_tag="device-tag",
4646
instance_id_to_attach_to="88f3e0bd-ca86-4cf7-be8b-dd2988e23c2d",
4747
lifecycle_policy_ids=[1, 2],
48-
tags={"foo": "string"},
48+
tags={"my-tag": "my-tag-value"},
4949
type_name="standard",
5050
)
5151
assert_matches_type(TaskIDList, volume, path=["response"])
@@ -107,7 +107,7 @@ def test_method_create_with_all_params_overload_2(self, client: Gcore) -> None:
107107
instance_id_to_attach_to="88f3e0bd-ca86-4cf7-be8b-dd2988e23c2d",
108108
lifecycle_policy_ids=[1, 2],
109109
size=10,
110-
tags={"foo": "string"},
110+
tags={"my-tag": "my-tag-value"},
111111
type_name="standard",
112112
)
113113
assert_matches_type(TaskIDList, volume, path=["response"])
@@ -166,7 +166,7 @@ def test_method_create_with_all_params_overload_3(self, client: Gcore) -> None:
166166
attachment_tag="device-tag",
167167
instance_id_to_attach_to="88f3e0bd-ca86-4cf7-be8b-dd2988e23c2d",
168168
lifecycle_policy_ids=[1, 2],
169-
tags={"foo": "string"},
169+
tags={"my-tag": "my-tag-value"},
170170
type_name="standard",
171171
)
172172
assert_matches_type(TaskIDList, volume, path=["response"])
@@ -701,7 +701,7 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn
701701
attachment_tag="device-tag",
702702
instance_id_to_attach_to="88f3e0bd-ca86-4cf7-be8b-dd2988e23c2d",
703703
lifecycle_policy_ids=[1, 2],
704-
tags={"foo": "string"},
704+
tags={"my-tag": "my-tag-value"},
705705
type_name="standard",
706706
)
707707
assert_matches_type(TaskIDList, volume, path=["response"])
@@ -763,7 +763,7 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn
763763
instance_id_to_attach_to="88f3e0bd-ca86-4cf7-be8b-dd2988e23c2d",
764764
lifecycle_policy_ids=[1, 2],
765765
size=10,
766-
tags={"foo": "string"},
766+
tags={"my-tag": "my-tag-value"},
767767
type_name="standard",
768768
)
769769
assert_matches_type(TaskIDList, volume, path=["response"])
@@ -822,7 +822,7 @@ async def test_method_create_with_all_params_overload_3(self, async_client: Asyn
822822
attachment_tag="device-tag",
823823
instance_id_to_attach_to="88f3e0bd-ca86-4cf7-be8b-dd2988e23c2d",
824824
lifecycle_policy_ids=[1, 2],
825-
tags={"foo": "string"},
825+
tags={"my-tag": "my-tag-value"},
826826
type_name="standard",
827827
)
828828
assert_matches_type(TaskIDList, volume, path=["response"])

0 commit comments

Comments
 (0)