From ac8dcb31118520f7673ba8386e2c0e150e1a33aa Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 17 Feb 2026 12:22:58 +0000 Subject: [PATCH 1/2] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e9e01167..d86c632a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 645 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-06555b1b7559c234823e37c3970ba3ea9f11ed14270b872b22761f6be8692e74.yml -openapi_spec_hash: 619bca59fafad89221a4b35f797f14f1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-1cde63e41e6a58c6a1f86f9175df845d5e9894294483e6f7e23f50507951a872.yml +openapi_spec_hash: d65dff21548c2c34f0a6077ee2eb0af1 config_hash: bc578a7de14c42e33b7d4bd4502218f2 From 925535479aea739b6abbd1fa76ea892d342fc355 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 17 Feb 2026 14:27:11 +0000 Subject: [PATCH 2/2] feat(api): aggregated API specs update --- .stats.yml | 4 ++-- src/gcore/resources/cloud/baremetal/servers.py | 4 ++-- .../resources/cloud/file_shares/file_shares.py | 14 +++++++------- src/gcore/resources/cloud/floating_ips.py | 6 +++--- .../cloud/gpu_baremetal/clusters/clusters.py | 6 +++--- .../cloud/gpu_baremetal/clusters/images.py | 6 +++--- .../cloud/gpu_virtual/clusters/clusters.py | 6 +++--- .../cloud/gpu_virtual/clusters/images.py | 6 +++--- src/gcore/resources/cloud/instances/images.py | 10 +++++----- src/gcore/resources/cloud/instances/instances.py | 4 ++-- .../cloud/load_balancers/load_balancers.py | 6 +++--- src/gcore/resources/cloud/networks/networks.py | 6 +++--- src/gcore/resources/cloud/networks/subnets.py | 6 +++--- .../cloud/security_groups/security_groups.py | 6 +++--- src/gcore/resources/cloud/volume_snapshots.py | 6 +++--- .../cloud/baremetal/server_create_params.py | 2 +- .../types/cloud/file_share_create_params.py | 6 +++--- .../types/cloud/floating_ip_create_params.py | 4 ++-- .../cloud/gpu_baremetal/cluster_create_params.py | 4 ++-- .../clusters/image_upload_params.py | 4 ++-- .../cloud/gpu_virtual/cluster_create_params.py | 2 +- .../gpu_virtual/clusters/image_upload_params.py | 4 ++-- src/gcore/types/cloud/instance_create_params.py | 12 ++++++------ .../instances/image_create_from_volume_params.py | 4 ++-- .../types/cloud/instances/image_upload_params.py | 4 ++-- .../types/cloud/load_balancer_create_params.py | 4 ++-- src/gcore/types/cloud/network_create_params.py | 3 +-- .../types/cloud/networks/subnet_create_params.py | 4 ++-- .../types/cloud/security_group_create_params.py | 4 ++-- src/gcore/types/cloud/tag.py | 12 ++++++++++-- src/gcore/types/cloud/tag_update_map_param.py | 3 +-- .../types/cloud/volume_snapshot_create_params.py | 3 +-- .../cloud/gpu_baremetal/test_clusters.py | 16 ++++++++-------- .../cloud/gpu_virtual/test_clusters.py | 16 ++++++++-------- .../api_resources/cloud/instances/test_images.py | 4 ++-- .../api_resources/cloud/networks/test_subnets.py | 4 ++-- tests/api_resources/cloud/test_file_shares.py | 4 ++-- tests/api_resources/cloud/test_floating_ips.py | 4 ++-- tests/api_resources/cloud/test_instances.py | 4 ++-- tests/api_resources/cloud/test_load_balancers.py | 4 ++-- tests/api_resources/cloud/test_networks.py | 4 ++-- .../api_resources/cloud/test_security_groups.py | 4 ++-- .../api_resources/cloud/test_volume_snapshots.py | 4 ++-- tests/api_resources/cloud/test_volumes.py | 16 ++++++++-------- 44 files changed, 132 insertions(+), 127 deletions(-) diff --git a/.stats.yml b/.stats.yml index d86c632a..54d04e2d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 645 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-1cde63e41e6a58c6a1f86f9175df845d5e9894294483e6f7e23f50507951a872.yml -openapi_spec_hash: d65dff21548c2c34f0a6077ee2eb0af1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-30f92b095e6f90731f4e7652affc69f27c57849dccf30119b79c26314aa2ae00.yml +openapi_spec_hash: 2348a329bec98d05bf5e4c109d300382 config_hash: bc578a7de14c42e33b7d4bd4502218f2 diff --git a/src/gcore/resources/cloud/baremetal/servers.py b/src/gcore/resources/cloud/baremetal/servers.py index ae77f521..1b5c725d 100644 --- a/src/gcore/resources/cloud/baremetal/servers.py +++ b/src/gcore/resources/cloud/baremetal/servers.py @@ -62,7 +62,7 @@ def create( name_template: str | Omit = omit, password: str | Omit = omit, ssh_key_name: Optional[str] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, user_data: str | Omit = omit, username: str | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -554,7 +554,7 @@ async def create( name_template: str | Omit = omit, password: str | Omit = omit, ssh_key_name: Optional[str] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, user_data: str | Omit = omit, username: str | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. diff --git a/src/gcore/resources/cloud/file_shares/file_shares.py b/src/gcore/resources/cloud/file_shares/file_shares.py index 7b5cdea2..19e36c97 100644 --- a/src/gcore/resources/cloud/file_shares/file_shares.py +++ b/src/gcore/resources/cloud/file_shares/file_shares.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, Iterable, Optional +from typing import Iterable, Optional from typing_extensions import Literal, overload import httpx @@ -75,7 +75,7 @@ def create( protocol: Literal["NFS"], size: int, access: Iterable[file_share_create_params.CreateStandardFileShareSerializerAccess] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, type_name: Literal["standard"] | Omit = omit, volume_type: Literal["default_share_type"] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -134,7 +134,7 @@ def create( protocol: Literal["NFS"], size: int, share_settings: file_share_create_params.CreateVastFileShareSerializerShareSettings | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, type_name: Literal["vast"] | Omit = omit, volume_type: Literal["vast_share_type"] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -192,7 +192,7 @@ def create( protocol: Literal["NFS"], size: int, access: Iterable[file_share_create_params.CreateStandardFileShareSerializerAccess] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, type_name: Literal["standard"] | Literal["vast"] | Omit = omit, volume_type: Literal["default_share_type"] | Literal["vast_share_type"] | Omit = omit, share_settings: file_share_create_params.CreateVastFileShareSerializerShareSettings | Omit = omit, @@ -600,7 +600,7 @@ async def create( protocol: Literal["NFS"], size: int, access: Iterable[file_share_create_params.CreateStandardFileShareSerializerAccess] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, type_name: Literal["standard"] | Omit = omit, volume_type: Literal["default_share_type"] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -659,7 +659,7 @@ async def create( protocol: Literal["NFS"], size: int, share_settings: file_share_create_params.CreateVastFileShareSerializerShareSettings | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, type_name: Literal["vast"] | Omit = omit, volume_type: Literal["vast_share_type"] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -717,7 +717,7 @@ async def create( protocol: Literal["NFS"], size: int, access: Iterable[file_share_create_params.CreateStandardFileShareSerializerAccess] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, type_name: Literal["standard"] | Literal["vast"] | Omit = omit, volume_type: Literal["default_share_type"] | Literal["vast_share_type"] | Omit = omit, share_settings: file_share_create_params.CreateVastFileShareSerializerShareSettings | Omit = omit, diff --git a/src/gcore/resources/cloud/floating_ips.py b/src/gcore/resources/cloud/floating_ips.py index f3b95468..fd677c44 100644 --- a/src/gcore/resources/cloud/floating_ips.py +++ b/src/gcore/resources/cloud/floating_ips.py @@ -3,7 +3,7 @@ from __future__ import annotations import typing_extensions -from typing import Dict, Optional +from typing import Optional import httpx @@ -67,7 +67,7 @@ def create( region_id: int | None = None, fixed_ip_address: Optional[str] | Omit = omit, port_id: Optional[str] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -690,7 +690,7 @@ async def create( region_id: int | None = None, fixed_ip_address: Optional[str] | Omit = omit, port_id: Optional[str] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, diff --git a/src/gcore/resources/cloud/gpu_baremetal/clusters/clusters.py b/src/gcore/resources/cloud/gpu_baremetal/clusters/clusters.py index adfb58cb..7385e2c8 100644 --- a/src/gcore/resources/cloud/gpu_baremetal/clusters/clusters.py +++ b/src/gcore/resources/cloud/gpu_baremetal/clusters/clusters.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, List, Optional +from typing import List, Optional from typing_extensions import Literal import httpx @@ -113,7 +113,7 @@ def create( name: str, servers_count: int, servers_settings: cluster_create_params.ServersSettings, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -830,7 +830,7 @@ async def create( name: str, servers_count: int, servers_settings: cluster_create_params.ServersSettings, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, diff --git a/src/gcore/resources/cloud/gpu_baremetal/clusters/images.py b/src/gcore/resources/cloud/gpu_baremetal/clusters/images.py index dee06b23..e73c4468 100644 --- a/src/gcore/resources/cloud/gpu_baremetal/clusters/images.py +++ b/src/gcore/resources/cloud/gpu_baremetal/clusters/images.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, Optional +from typing import Optional from typing_extensions import Literal import httpx @@ -228,7 +228,7 @@ def upload( os_type: Optional[Literal["linux", "windows"]] | Omit = omit, os_version: Optional[str] | Omit = omit, ssh_key: Literal["allow", "deny", "required"] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -576,7 +576,7 @@ async def upload( os_type: Optional[Literal["linux", "windows"]] | Omit = omit, os_version: Optional[str] | Omit = omit, ssh_key: Literal["allow", "deny", "required"] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, diff --git a/src/gcore/resources/cloud/gpu_virtual/clusters/clusters.py b/src/gcore/resources/cloud/gpu_virtual/clusters/clusters.py index 486048b5..8fe0de91 100644 --- a/src/gcore/resources/cloud/gpu_virtual/clusters/clusters.py +++ b/src/gcore/resources/cloud/gpu_virtual/clusters/clusters.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, Optional +from typing import Optional from typing_extensions import Literal, overload import httpx @@ -122,7 +122,7 @@ def create( name: str, servers_count: int, servers_settings: cluster_create_params.ServersSettings, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -767,7 +767,7 @@ async def create( name: str, servers_count: int, servers_settings: cluster_create_params.ServersSettings, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, diff --git a/src/gcore/resources/cloud/gpu_virtual/clusters/images.py b/src/gcore/resources/cloud/gpu_virtual/clusters/images.py index 9c7d1472..d83f68fa 100644 --- a/src/gcore/resources/cloud/gpu_virtual/clusters/images.py +++ b/src/gcore/resources/cloud/gpu_virtual/clusters/images.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, Optional +from typing import Optional from typing_extensions import Literal import httpx @@ -190,7 +190,7 @@ def upload( os_type: Optional[Literal["linux", "windows"]] | Omit = omit, os_version: Optional[str] | Omit = omit, ssh_key: Literal["allow", "deny", "required"] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -432,7 +432,7 @@ async def upload( os_type: Optional[Literal["linux", "windows"]] | Omit = omit, os_version: Optional[str] | Omit = omit, ssh_key: Literal["allow", "deny", "required"] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, diff --git a/src/gcore/resources/cloud/instances/images.py b/src/gcore/resources/cloud/instances/images.py index 8737a631..9b5fb71e 100644 --- a/src/gcore/resources/cloud/instances/images.py +++ b/src/gcore/resources/cloud/instances/images.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, Optional +from typing import Optional from typing_extensions import Literal import httpx @@ -288,7 +288,7 @@ def create_from_volume( os_type: Literal["linux", "windows"] | Omit = omit, source: Literal["volume"] | Omit = omit, ssh_key: Literal["allow", "deny", "required"] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -486,7 +486,7 @@ def upload( os_type: Literal["linux", "windows"] | Omit = omit, os_version: Optional[str] | Omit = omit, ssh_key: Literal["allow", "deny", "required"] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -889,7 +889,7 @@ async def create_from_volume( os_type: Literal["linux", "windows"] | Omit = omit, source: Literal["volume"] | Omit = omit, ssh_key: Literal["allow", "deny", "required"] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -1087,7 +1087,7 @@ async def upload( os_type: Literal["linux", "windows"] | Omit = omit, os_version: Optional[str] | Omit = omit, ssh_key: Literal["allow", "deny", "required"] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, diff --git a/src/gcore/resources/cloud/instances/instances.py b/src/gcore/resources/cloud/instances/instances.py index 2c83bbae..499f1006 100644 --- a/src/gcore/resources/cloud/instances/instances.py +++ b/src/gcore/resources/cloud/instances/instances.py @@ -125,7 +125,7 @@ def create( security_groups: Iterable[instance_create_params.SecurityGroup] | Omit = omit, servergroup_id: str | Omit = omit, ssh_key_name: Optional[str] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, user_data: str | Omit = omit, username: str | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -1544,7 +1544,7 @@ async def create( security_groups: Iterable[instance_create_params.SecurityGroup] | Omit = omit, servergroup_id: str | Omit = omit, ssh_key_name: Optional[str] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, user_data: str | Omit = omit, username: str | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. diff --git a/src/gcore/resources/cloud/load_balancers/load_balancers.py b/src/gcore/resources/cloud/load_balancers/load_balancers.py index 54c7ef99..cc52a7b9 100644 --- a/src/gcore/resources/cloud/load_balancers/load_balancers.py +++ b/src/gcore/resources/cloud/load_balancers/load_balancers.py @@ -3,7 +3,7 @@ from __future__ import annotations import typing_extensions -from typing import Dict, Iterable, Optional +from typing import Iterable, Optional from typing_extensions import Literal import httpx @@ -143,7 +143,7 @@ def create( name: str | Omit = omit, name_template: str | Omit = omit, preferred_connectivity: LoadBalancerMemberConnectivity | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, vip_ip_family: InterfaceIPFamily | Omit = omit, vip_network_id: str | Omit = omit, vip_port_id: str | Omit = omit, @@ -895,7 +895,7 @@ async def create( name: str | Omit = omit, name_template: str | Omit = omit, preferred_connectivity: LoadBalancerMemberConnectivity | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, vip_ip_family: InterfaceIPFamily | Omit = omit, vip_network_id: str | Omit = omit, vip_port_id: str | Omit = omit, diff --git a/src/gcore/resources/cloud/networks/networks.py b/src/gcore/resources/cloud/networks/networks.py index 847a36da..08940886 100644 --- a/src/gcore/resources/cloud/networks/networks.py +++ b/src/gcore/resources/cloud/networks/networks.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, Optional +from typing import Optional from typing_extensions import Literal import httpx @@ -78,7 +78,7 @@ def create( region_id: int | None = None, name: str, create_router: bool | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, type: Literal["vlan", "vxlan"] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -505,7 +505,7 @@ async def create( region_id: int | None = None, name: str, create_router: bool | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, type: Literal["vlan", "vxlan"] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. diff --git a/src/gcore/resources/cloud/networks/subnets.py b/src/gcore/resources/cloud/networks/subnets.py index 1ca16f53..e53fe98a 100644 --- a/src/gcore/resources/cloud/networks/subnets.py +++ b/src/gcore/resources/cloud/networks/subnets.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, Iterable, Optional +from typing import Iterable, Optional from typing_extensions import Literal import httpx @@ -64,7 +64,7 @@ def create( host_routes: Optional[Iterable[subnet_create_params.HostRoute]] | Omit = omit, ip_version: IPVersion | Omit = omit, router_id_to_connect: Optional[str] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -524,7 +524,7 @@ async def create( host_routes: Optional[Iterable[subnet_create_params.HostRoute]] | Omit = omit, ip_version: IPVersion | Omit = omit, router_id_to_connect: Optional[str] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, diff --git a/src/gcore/resources/cloud/security_groups/security_groups.py b/src/gcore/resources/cloud/security_groups/security_groups.py index 52b209e1..0e3ecfeb 100644 --- a/src/gcore/resources/cloud/security_groups/security_groups.py +++ b/src/gcore/resources/cloud/security_groups/security_groups.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, Iterable, Optional +from typing import Iterable, Optional import httpx @@ -71,7 +71,7 @@ def create( name: str, description: str | Omit = omit, rules: Iterable[security_group_create_params.Rule] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -629,7 +629,7 @@ async def create( name: str, description: str | Omit = omit, rules: Iterable[security_group_create_params.Rule] | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, diff --git a/src/gcore/resources/cloud/volume_snapshots.py b/src/gcore/resources/cloud/volume_snapshots.py index a8b6850a..52dc4971 100644 --- a/src/gcore/resources/cloud/volume_snapshots.py +++ b/src/gcore/resources/cloud/volume_snapshots.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, Optional +from typing import Optional import httpx @@ -53,7 +53,7 @@ def create( name: str, volume_id: str, description: str | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -305,7 +305,7 @@ async def create( name: str, volume_id: str, description: str | Omit = omit, - tags: Dict[str, str] | Omit = omit, + tags: object | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, diff --git a/src/gcore/types/cloud/baremetal/server_create_params.py b/src/gcore/types/cloud/baremetal/server_create_params.py index 6a0d6aa9..08280551 100644 --- a/src/gcore/types/cloud/baremetal/server_create_params.py +++ b/src/gcore/types/cloud/baremetal/server_create_params.py @@ -87,7 +87,7 @@ class ServerCreateParams(TypedDict, total=False): [/v1/`ssh_keys` endpoint](/docs/api-reference/cloud/ssh-keys/add-or-generate-ssh-key). """ - tags: Dict[str, str] + tags: object """Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling diff --git a/src/gcore/types/cloud/file_share_create_params.py b/src/gcore/types/cloud/file_share_create_params.py index dc69d0d0..5dca72de 100644 --- a/src/gcore/types/cloud/file_share_create_params.py +++ b/src/gcore/types/cloud/file_share_create_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, Union, Iterable +from typing import Union, Iterable from typing_extensions import Literal, Required, TypeAlias, TypedDict __all__ = [ @@ -37,7 +37,7 @@ class CreateStandardFileShareSerializer(TypedDict, total=False): access: Iterable[CreateStandardFileShareSerializerAccess] """Access Rules""" - tags: Dict[str, str] + tags: object """Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling @@ -94,7 +94,7 @@ class CreateVastFileShareSerializer(TypedDict, total=False): share_settings: CreateVastFileShareSerializerShareSettings """Configuration settings for the share""" - tags: Dict[str, str] + tags: object """Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling diff --git a/src/gcore/types/cloud/floating_ip_create_params.py b/src/gcore/types/cloud/floating_ip_create_params.py index 48cddda9..ee28a9e9 100644 --- a/src/gcore/types/cloud/floating_ip_create_params.py +++ b/src/gcore/types/cloud/floating_ip_create_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, Optional +from typing import Optional from typing_extensions import TypedDict __all__ = ["FloatingIPCreateParams"] @@ -27,7 +27,7 @@ class FloatingIPCreateParams(TypedDict, total=False): If provided, the floating IP will be immediately attached to the specified port. """ - tags: Dict[str, str] + tags: object """Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling diff --git a/src/gcore/types/cloud/gpu_baremetal/cluster_create_params.py b/src/gcore/types/cloud/gpu_baremetal/cluster_create_params.py index ed821b5d..d2b5284b 100644 --- a/src/gcore/types/cloud/gpu_baremetal/cluster_create_params.py +++ b/src/gcore/types/cloud/gpu_baremetal/cluster_create_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, Union, Iterable +from typing import Union, Iterable from typing_extensions import Literal, Required, TypeAlias, TypedDict __all__ = [ @@ -42,7 +42,7 @@ class ClusterCreateParams(TypedDict, total=False): servers_settings: Required[ServersSettings] """Configuration settings for the servers in the cluster""" - tags: Dict[str, str] + tags: object """Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling diff --git a/src/gcore/types/cloud/gpu_baremetal/clusters/image_upload_params.py b/src/gcore/types/cloud/gpu_baremetal/clusters/image_upload_params.py index 4cae77be..269dfd76 100644 --- a/src/gcore/types/cloud/gpu_baremetal/clusters/image_upload_params.py +++ b/src/gcore/types/cloud/gpu_baremetal/clusters/image_upload_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, Optional +from typing import Optional from typing_extensions import Literal, Required, TypedDict __all__ = ["ImageUploadParams"] @@ -45,7 +45,7 @@ class ImageUploadParams(TypedDict, total=False): ssh_key: Literal["allow", "deny", "required"] """Permission to use a ssh key in instances""" - tags: Dict[str, str] + tags: object """Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling diff --git a/src/gcore/types/cloud/gpu_virtual/cluster_create_params.py b/src/gcore/types/cloud/gpu_virtual/cluster_create_params.py index 762e4879..a6b6e0b1 100644 --- a/src/gcore/types/cloud/gpu_virtual/cluster_create_params.py +++ b/src/gcore/types/cloud/gpu_virtual/cluster_create_params.py @@ -42,7 +42,7 @@ class ClusterCreateParams(TypedDict, total=False): servers_settings: Required[ServersSettings] """Configuration settings for the servers in the cluster""" - tags: Dict[str, str] + tags: object """Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling diff --git a/src/gcore/types/cloud/gpu_virtual/clusters/image_upload_params.py b/src/gcore/types/cloud/gpu_virtual/clusters/image_upload_params.py index 4cae77be..269dfd76 100644 --- a/src/gcore/types/cloud/gpu_virtual/clusters/image_upload_params.py +++ b/src/gcore/types/cloud/gpu_virtual/clusters/image_upload_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, Optional +from typing import Optional from typing_extensions import Literal, Required, TypedDict __all__ = ["ImageUploadParams"] @@ -45,7 +45,7 @@ class ImageUploadParams(TypedDict, total=False): ssh_key: Literal["allow", "deny", "required"] """Permission to use a ssh key in instances""" - tags: Dict[str, str] + tags: object """Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling diff --git a/src/gcore/types/cloud/instance_create_params.py b/src/gcore/types/cloud/instance_create_params.py index ee1ba080..bed6de52 100644 --- a/src/gcore/types/cloud/instance_create_params.py +++ b/src/gcore/types/cloud/instance_create_params.py @@ -114,7 +114,7 @@ class InstanceCreateParams(TypedDict, total=False): [/v1/`ssh_keys` endpoint](/docs/api-reference/cloud/ssh-keys/add-or-generate-ssh-key). """ - tags: Dict[str, str] + tags: object """Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling @@ -398,7 +398,7 @@ class VolumeCreateInstanceCreateNewVolumeSerializer(TypedDict, total=False): If not specified, a name will be generated automatically. """ - tags: Dict[str, str] + tags: object """Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling @@ -459,7 +459,7 @@ class VolumeCreateInstanceCreateVolumeFromImageSerializer(TypedDict, total=False - For basic VMs: the size is set automatically based on the flavor. """ - tags: Dict[str, str] + tags: object """Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling @@ -513,7 +513,7 @@ class VolumeCreateInstanceCreateVolumeFromSnapshotSerializer(TypedDict, total=Fa If not specified, a name will be generated automatically. """ - tags: Dict[str, str] + tags: object """Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling @@ -559,7 +559,7 @@ class VolumeCreateInstanceCreateVolumeFromApptemplateSerializer(TypedDict, total size: int """Volume size in GiB.""" - tags: Dict[str, str] + tags: object """Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling @@ -604,7 +604,7 @@ class VolumeCreateInstanceExistingVolumeSerializer(TypedDict, total=False): delete_on_termination: bool """Set to `true` to automatically delete the volume when the instance is deleted.""" - tags: Dict[str, str] + tags: object """Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling diff --git a/src/gcore/types/cloud/instances/image_create_from_volume_params.py b/src/gcore/types/cloud/instances/image_create_from_volume_params.py index d98e34ae..52928edb 100644 --- a/src/gcore/types/cloud/instances/image_create_from_volume_params.py +++ b/src/gcore/types/cloud/instances/image_create_from_volume_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, Optional +from typing import Optional from typing_extensions import Literal, Required, TypedDict __all__ = ["ImageCreateFromVolumeParams"] @@ -40,7 +40,7 @@ class ImageCreateFromVolumeParams(TypedDict, total=False): ssh_key: Literal["allow", "deny", "required"] """Whether the image supports SSH key or not""" - tags: Dict[str, str] + tags: object """Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling diff --git a/src/gcore/types/cloud/instances/image_upload_params.py b/src/gcore/types/cloud/instances/image_upload_params.py index 4085ea54..a10d83fe 100644 --- a/src/gcore/types/cloud/instances/image_upload_params.py +++ b/src/gcore/types/cloud/instances/image_upload_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, Optional +from typing import Optional from typing_extensions import Literal, Required, TypedDict __all__ = ["ImageUploadParams"] @@ -49,7 +49,7 @@ class ImageUploadParams(TypedDict, total=False): ssh_key: Literal["allow", "deny", "required"] """Whether the image supports SSH key or not""" - tags: Dict[str, str] + tags: object """Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling diff --git a/src/gcore/types/cloud/load_balancer_create_params.py b/src/gcore/types/cloud/load_balancer_create_params.py index 8d56613c..db1d053d 100644 --- a/src/gcore/types/cloud/load_balancer_create_params.py +++ b/src/gcore/types/cloud/load_balancer_create_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, Union, Iterable, Optional +from typing import Union, Iterable, Optional from typing_extensions import Literal, Required, TypeAlias, TypedDict from ..._types import SequenceNotStr @@ -71,7 +71,7 @@ class LoadBalancerCreateParams(TypedDict, total=False): specification. """ - tags: Dict[str, str] + tags: object """Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling diff --git a/src/gcore/types/cloud/network_create_params.py b/src/gcore/types/cloud/network_create_params.py index b4cb5e77..935f9bc0 100644 --- a/src/gcore/types/cloud/network_create_params.py +++ b/src/gcore/types/cloud/network_create_params.py @@ -2,7 +2,6 @@ from __future__ import annotations -from typing import Dict from typing_extensions import Literal, Required, TypedDict __all__ = ["NetworkCreateParams"] @@ -21,7 +20,7 @@ class NetworkCreateParams(TypedDict, total=False): create_router: bool """Defaults to True""" - tags: Dict[str, str] + tags: object """Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling diff --git a/src/gcore/types/cloud/networks/subnet_create_params.py b/src/gcore/types/cloud/networks/subnet_create_params.py index 5a6b365f..41274927 100644 --- a/src/gcore/types/cloud/networks/subnet_create_params.py +++ b/src/gcore/types/cloud/networks/subnet_create_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, Iterable, Optional +from typing import Iterable, Optional from typing_extensions import Required, TypedDict from ...._types import SequenceNotStr @@ -60,7 +60,7 @@ class SubnetCreateParams(TypedDict, total=False): find a router created during network creation. """ - tags: Dict[str, str] + tags: object """Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling diff --git a/src/gcore/types/cloud/security_group_create_params.py b/src/gcore/types/cloud/security_group_create_params.py index e660dee3..d4904c5d 100644 --- a/src/gcore/types/cloud/security_group_create_params.py +++ b/src/gcore/types/cloud/security_group_create_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Dict, Iterable, Optional +from typing import Iterable, Optional from typing_extensions import Literal, Required, TypedDict __all__ = ["SecurityGroupCreateParams", "Rule"] @@ -24,7 +24,7 @@ class SecurityGroupCreateParams(TypedDict, total=False): rules: Iterable[Rule] """Security group rules""" - tags: Dict[str, str] + tags: object """Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling diff --git a/src/gcore/types/cloud/tag.py b/src/gcore/types/cloud/tag.py index 56ac9aa0..9ee9fdba 100644 --- a/src/gcore/types/cloud/tag.py +++ b/src/gcore/types/cloud/tag.py @@ -14,10 +14,18 @@ class Tag(BaseModel): """ key: str - """Tag key. The maximum size for a key is 255 characters.""" + """Tag key. + + Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or + '=' character. + """ read_only: bool """If true, the tag is read-only and cannot be modified by the user""" value: str - """Tag value. The maximum size for a value is 255 characters.""" + """Tag value. + + Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or + '=' character. + """ diff --git a/src/gcore/types/cloud/tag_update_map_param.py b/src/gcore/types/cloud/tag_update_map_param.py index 6726649c..9a70575e 100644 --- a/src/gcore/types/cloud/tag_update_map_param.py +++ b/src/gcore/types/cloud/tag_update_map_param.py @@ -2,9 +2,8 @@ from __future__ import annotations -from typing import Dict, Optional from typing_extensions import TypeAlias __all__ = ["TagUpdateMapParam"] -TagUpdateMapParam: TypeAlias = Dict[str, Optional[str]] +TagUpdateMapParam: TypeAlias = object diff --git a/src/gcore/types/cloud/volume_snapshot_create_params.py b/src/gcore/types/cloud/volume_snapshot_create_params.py index b832806b..8d77c011 100644 --- a/src/gcore/types/cloud/volume_snapshot_create_params.py +++ b/src/gcore/types/cloud/volume_snapshot_create_params.py @@ -2,7 +2,6 @@ from __future__ import annotations -from typing import Dict from typing_extensions import Required, TypedDict __all__ = ["VolumeSnapshotCreateParams"] @@ -22,7 +21,7 @@ class VolumeSnapshotCreateParams(TypedDict, total=False): description: str """Snapshot description""" - tags: Dict[str, str] + tags: object """Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling diff --git a/tests/api_resources/cloud/gpu_baremetal/test_clusters.py b/tests/api_resources/cloud/gpu_baremetal/test_clusters.py index cd68c18a..3a47eba9 100644 --- a/tests/api_resources/cloud/gpu_baremetal/test_clusters.py +++ b/tests/api_resources/cloud/gpu_baremetal/test_clusters.py @@ -217,7 +217,7 @@ def test_method_action(self, client: Gcore) -> None: project_id=1, region_id=7, action="update_tags", - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(TaskIDList, cluster, path=["response"]) @@ -228,7 +228,7 @@ def test_raw_response_action(self, client: Gcore) -> None: project_id=1, region_id=7, action="update_tags", - tags={"foo": "my-tag-value"}, + tags={}, ) assert response.is_closed is True @@ -243,7 +243,7 @@ def test_streaming_response_action(self, client: Gcore) -> None: project_id=1, region_id=7, action="update_tags", - tags={"foo": "my-tag-value"}, + tags={}, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -261,7 +261,7 @@ def test_path_params_action(self, client: Gcore) -> None: project_id=1, region_id=7, action="update_tags", - tags={"foo": "my-tag-value"}, + tags={}, ) @parametrize @@ -715,7 +715,7 @@ async def test_method_action(self, async_client: AsyncGcore) -> None: project_id=1, region_id=7, action="update_tags", - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(TaskIDList, cluster, path=["response"]) @@ -726,7 +726,7 @@ async def test_raw_response_action(self, async_client: AsyncGcore) -> None: project_id=1, region_id=7, action="update_tags", - tags={"foo": "my-tag-value"}, + tags={}, ) assert response.is_closed is True @@ -741,7 +741,7 @@ async def test_streaming_response_action(self, async_client: AsyncGcore) -> None project_id=1, region_id=7, action="update_tags", - tags={"foo": "my-tag-value"}, + tags={}, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -759,7 +759,7 @@ async def test_path_params_action(self, async_client: AsyncGcore) -> None: project_id=1, region_id=7, action="update_tags", - tags={"foo": "my-tag-value"}, + tags={}, ) @parametrize diff --git a/tests/api_resources/cloud/gpu_virtual/test_clusters.py b/tests/api_resources/cloud/gpu_virtual/test_clusters.py index 91d2ae2d..0487f803 100644 --- a/tests/api_resources/cloud/gpu_virtual/test_clusters.py +++ b/tests/api_resources/cloud/gpu_virtual/test_clusters.py @@ -507,7 +507,7 @@ def test_method_action_overload_5(self, client: Gcore) -> None: project_id=1, region_id=7, action="update_tags", - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(TaskIDList, cluster, path=["response"]) @@ -518,7 +518,7 @@ def test_raw_response_action_overload_5(self, client: Gcore) -> None: project_id=1, region_id=7, action="update_tags", - tags={"foo": "my-tag-value"}, + tags={}, ) assert response.is_closed is True @@ -533,7 +533,7 @@ def test_streaming_response_action_overload_5(self, client: Gcore) -> None: project_id=1, region_id=7, action="update_tags", - tags={"foo": "my-tag-value"}, + tags={}, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -551,7 +551,7 @@ def test_path_params_action_overload_5(self, client: Gcore) -> None: project_id=1, region_id=7, action="update_tags", - tags={"foo": "my-tag-value"}, + tags={}, ) @parametrize @@ -1146,7 +1146,7 @@ async def test_method_action_overload_5(self, async_client: AsyncGcore) -> None: project_id=1, region_id=7, action="update_tags", - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(TaskIDList, cluster, path=["response"]) @@ -1157,7 +1157,7 @@ async def test_raw_response_action_overload_5(self, async_client: AsyncGcore) -> project_id=1, region_id=7, action="update_tags", - tags={"foo": "my-tag-value"}, + tags={}, ) assert response.is_closed is True @@ -1172,7 +1172,7 @@ async def test_streaming_response_action_overload_5(self, async_client: AsyncGco project_id=1, region_id=7, action="update_tags", - tags={"foo": "my-tag-value"}, + tags={}, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1190,7 +1190,7 @@ async def test_path_params_action_overload_5(self, async_client: AsyncGcore) -> project_id=1, region_id=7, action="update_tags", - tags={"foo": "my-tag-value"}, + tags={}, ) @parametrize diff --git a/tests/api_resources/cloud/instances/test_images.py b/tests/api_resources/cloud/instances/test_images.py index c30fde90..b97decb0 100644 --- a/tests/api_resources/cloud/instances/test_images.py +++ b/tests/api_resources/cloud/instances/test_images.py @@ -38,7 +38,7 @@ def test_method_update_with_all_params(self, client: Gcore) -> None: name="my-image", os_type="linux", ssh_key="allow", - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(Image, image, path=["response"]) @@ -373,7 +373,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncGcore) -> name="my-image", os_type="linux", ssh_key="allow", - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(Image, image, path=["response"]) diff --git a/tests/api_resources/cloud/networks/test_subnets.py b/tests/api_resources/cloud/networks/test_subnets.py index 8ba4ff6f..dc315c0a 100644 --- a/tests/api_resources/cloud/networks/test_subnets.py +++ b/tests/api_resources/cloud/networks/test_subnets.py @@ -110,7 +110,7 @@ def test_method_update_with_all_params(self, client: Gcore) -> None: } ], name="some_name", - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(Subnet, subnet, path=["response"]) @@ -389,7 +389,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncGcore) -> } ], name="some_name", - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(Subnet, subnet, path=["response"]) diff --git a/tests/api_resources/cloud/test_file_shares.py b/tests/api_resources/cloud/test_file_shares.py index 055e05d6..74d9a584 100644 --- a/tests/api_resources/cloud/test_file_shares.py +++ b/tests/api_resources/cloud/test_file_shares.py @@ -174,7 +174,7 @@ def test_method_update_with_all_params(self, client: Gcore) -> None: "path_length": "LCD", "root_squash": True, }, - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(TaskIDList, file_share, path=["response"]) @@ -562,7 +562,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncGcore) -> "path_length": "LCD", "root_squash": True, }, - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(TaskIDList, file_share, path=["response"]) diff --git a/tests/api_resources/cloud/test_floating_ips.py b/tests/api_resources/cloud/test_floating_ips.py index 97ff5795..fda155b2 100644 --- a/tests/api_resources/cloud/test_floating_ips.py +++ b/tests/api_resources/cloud/test_floating_ips.py @@ -86,7 +86,7 @@ def test_method_update_with_all_params(self, client: Gcore) -> None: region_id=1, fixed_ip_address="192.168.10.15", port_id="ee2402d0-f0cd-4503-9b75-69be1d11c5f1", - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(TaskIDList, floating_ip, path=["response"]) @@ -453,7 +453,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncGcore) -> region_id=1, fixed_ip_address="192.168.10.15", port_id="ee2402d0-f0cd-4503-9b75-69be1d11c5f1", - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(TaskIDList, floating_ip, path=["response"]) diff --git a/tests/api_resources/cloud/test_instances.py b/tests/api_resources/cloud/test_instances.py index 7b908015..d5c24486 100644 --- a/tests/api_resources/cloud/test_instances.py +++ b/tests/api_resources/cloud/test_instances.py @@ -137,7 +137,7 @@ def test_method_update_with_all_params(self, client: Gcore) -> None: project_id=0, region_id=0, name="instance_name", - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(Instance, instance, path=["response"]) @@ -1007,7 +1007,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncGcore) -> project_id=0, region_id=0, name="instance_name", - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(Instance, instance, path=["response"]) diff --git a/tests/api_resources/cloud/test_load_balancers.py b/tests/api_resources/cloud/test_load_balancers.py index 5b30c022..75c7a421 100644 --- a/tests/api_resources/cloud/test_load_balancers.py +++ b/tests/api_resources/cloud/test_load_balancers.py @@ -185,7 +185,7 @@ def test_method_update_with_all_params(self, client: Gcore) -> None: }, name="some_name", preferred_connectivity="L2", - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(LoadBalancer, load_balancer, path=["response"]) @@ -659,7 +659,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncGcore) -> }, name="some_name", preferred_connectivity="L2", - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(LoadBalancer, load_balancer, path=["response"]) diff --git a/tests/api_resources/cloud/test_networks.py b/tests/api_resources/cloud/test_networks.py index dbd1f4d0..273791bd 100644 --- a/tests/api_resources/cloud/test_networks.py +++ b/tests/api_resources/cloud/test_networks.py @@ -86,7 +86,7 @@ def test_method_update_with_all_params(self, client: Gcore) -> None: project_id=1, region_id=1, name="some_name", - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(Network, network, path=["response"]) @@ -338,7 +338,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncGcore) -> project_id=1, region_id=1, name="some_name", - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(Network, network, path=["response"]) diff --git a/tests/api_resources/cloud/test_security_groups.py b/tests/api_resources/cloud/test_security_groups.py index 2bd9402b..6050ff4c 100644 --- a/tests/api_resources/cloud/test_security_groups.py +++ b/tests/api_resources/cloud/test_security_groups.py @@ -110,7 +110,7 @@ def test_method_update_with_all_params(self, client: Gcore) -> None: "remote_ip_prefix": "10.0.0.0/8", } ], - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(TaskIDList, security_group, path=["response"]) @@ -481,7 +481,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncGcore) -> "remote_ip_prefix": "10.0.0.0/8", } ], - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(TaskIDList, security_group, path=["response"]) diff --git a/tests/api_resources/cloud/test_volume_snapshots.py b/tests/api_resources/cloud/test_volume_snapshots.py index 4b2d7bfd..f4da5ed7 100644 --- a/tests/api_resources/cloud/test_volume_snapshots.py +++ b/tests/api_resources/cloud/test_volume_snapshots.py @@ -88,7 +88,7 @@ def test_method_update_with_all_params(self, client: Gcore) -> None: project_id=1, region_id=1, name="my-backup-snapshot", - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(Snapshot, volume_snapshot, path=["response"]) @@ -295,7 +295,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncGcore) -> project_id=1, region_id=1, name="my-backup-snapshot", - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(Snapshot, volume_snapshot, path=["response"]) diff --git a/tests/api_resources/cloud/test_volumes.py b/tests/api_resources/cloud/test_volumes.py index 95d43b9f..67bd0e60 100644 --- a/tests/api_resources/cloud/test_volumes.py +++ b/tests/api_resources/cloud/test_volumes.py @@ -45,7 +45,7 @@ def test_method_create_with_all_params_overload_1(self, client: Gcore) -> None: attachment_tag="device-tag", instance_id_to_attach_to="88f3e0bd-ca86-4cf7-be8b-dd2988e23c2d", lifecycle_policy_ids=[1, 2], - tags={"foo": "my-tag-value"}, + tags={}, type_name="standard", ) assert_matches_type(TaskIDList, volume, path=["response"]) @@ -107,7 +107,7 @@ def test_method_create_with_all_params_overload_2(self, client: Gcore) -> None: instance_id_to_attach_to="88f3e0bd-ca86-4cf7-be8b-dd2988e23c2d", lifecycle_policy_ids=[1, 2], size=10, - tags={"foo": "my-tag-value"}, + tags={}, type_name="standard", ) assert_matches_type(TaskIDList, volume, path=["response"]) @@ -166,7 +166,7 @@ def test_method_create_with_all_params_overload_3(self, client: Gcore) -> None: attachment_tag="device-tag", instance_id_to_attach_to="88f3e0bd-ca86-4cf7-be8b-dd2988e23c2d", lifecycle_policy_ids=[1, 2], - tags={"foo": "my-tag-value"}, + tags={}, type_name="standard", ) assert_matches_type(TaskIDList, volume, path=["response"]) @@ -219,7 +219,7 @@ def test_method_update_with_all_params(self, client: Gcore) -> None: project_id=1, region_id=1, name="some_name", - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(Volume, volume, path=["response"]) @@ -701,7 +701,7 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn attachment_tag="device-tag", instance_id_to_attach_to="88f3e0bd-ca86-4cf7-be8b-dd2988e23c2d", lifecycle_policy_ids=[1, 2], - tags={"foo": "my-tag-value"}, + tags={}, type_name="standard", ) 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 instance_id_to_attach_to="88f3e0bd-ca86-4cf7-be8b-dd2988e23c2d", lifecycle_policy_ids=[1, 2], size=10, - tags={"foo": "my-tag-value"}, + tags={}, type_name="standard", ) 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 attachment_tag="device-tag", instance_id_to_attach_to="88f3e0bd-ca86-4cf7-be8b-dd2988e23c2d", lifecycle_policy_ids=[1, 2], - tags={"foo": "my-tag-value"}, + tags={}, type_name="standard", ) assert_matches_type(TaskIDList, volume, path=["response"]) @@ -875,7 +875,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncGcore) -> project_id=1, region_id=1, name="some_name", - tags={"foo": "my-tag-value"}, + tags={}, ) assert_matches_type(Volume, volume, path=["response"])