Skip to content

Commit bec1dff

Browse files
fix(types): add missing types to method arguments
1 parent 2095ccc commit bec1dff

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,11 +464,17 @@ def attach_interface(
464464
project_id: int | None = None,
465465
region_id: int | None = None,
466466
ddos_profile: server_attach_interface_params.NewInterfaceExternalExtendSchemaWithDDOSDDOSProfile
467+
| server_attach_interface_params.NewInterfaceSpecificSubnetSchemaDDOSProfile
468+
| server_attach_interface_params.NewInterfaceAnySubnetSchemaDDOSProfile
469+
| server_attach_interface_params.NewInterfaceReservedFixedIPSchemaDDOSProfile
467470
| NotGiven = NOT_GIVEN,
468471
interface_name: str | NotGiven = NOT_GIVEN,
469472
ip_family: Literal["dual", "ipv4", "ipv6"] | NotGiven = NOT_GIVEN,
470473
port_group: int | NotGiven = NOT_GIVEN,
471474
security_groups: Iterable[server_attach_interface_params.NewInterfaceExternalExtendSchemaWithDDOSSecurityGroup]
475+
| Iterable[server_attach_interface_params.NewInterfaceSpecificSubnetSchemaSecurityGroup]
476+
| Iterable[server_attach_interface_params.NewInterfaceAnySubnetSchemaSecurityGroup]
477+
| Iterable[server_attach_interface_params.NewInterfaceReservedFixedIPSchemaSecurityGroup]
472478
| NotGiven = NOT_GIVEN,
473479
type: str | NotGiven = NOT_GIVEN,
474480
subnet_id: str | NotGiven = NOT_GIVEN,
@@ -1121,11 +1127,17 @@ async def attach_interface(
11211127
project_id: int | None = None,
11221128
region_id: int | None = None,
11231129
ddos_profile: server_attach_interface_params.NewInterfaceExternalExtendSchemaWithDDOSDDOSProfile
1130+
| server_attach_interface_params.NewInterfaceSpecificSubnetSchemaDDOSProfile
1131+
| server_attach_interface_params.NewInterfaceAnySubnetSchemaDDOSProfile
1132+
| server_attach_interface_params.NewInterfaceReservedFixedIPSchemaDDOSProfile
11241133
| NotGiven = NOT_GIVEN,
11251134
interface_name: str | NotGiven = NOT_GIVEN,
11261135
ip_family: Literal["dual", "ipv4", "ipv6"] | NotGiven = NOT_GIVEN,
11271136
port_group: int | NotGiven = NOT_GIVEN,
11281137
security_groups: Iterable[server_attach_interface_params.NewInterfaceExternalExtendSchemaWithDDOSSecurityGroup]
1138+
| Iterable[server_attach_interface_params.NewInterfaceSpecificSubnetSchemaSecurityGroup]
1139+
| Iterable[server_attach_interface_params.NewInterfaceAnySubnetSchemaSecurityGroup]
1140+
| Iterable[server_attach_interface_params.NewInterfaceReservedFixedIPSchemaSecurityGroup]
11291141
| NotGiven = NOT_GIVEN,
11301142
type: str | NotGiven = NOT_GIVEN,
11311143
subnet_id: str | NotGiven = NOT_GIVEN,

src/gcore/resources/cloud/instances/interfaces.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,17 @@ def attach(
285285
project_id: int | None = None,
286286
region_id: int | None = None,
287287
ddos_profile: interface_attach_params.NewInterfaceExternalExtendSchemaWithDDOSDDOSProfile
288+
| interface_attach_params.NewInterfaceSpecificSubnetSchemaDDOSProfile
289+
| interface_attach_params.NewInterfaceAnySubnetSchemaDDOSProfile
290+
| interface_attach_params.NewInterfaceReservedFixedIPSchemaDDOSProfile
288291
| NotGiven = NOT_GIVEN,
289292
interface_name: str | NotGiven = NOT_GIVEN,
290293
ip_family: Literal["dual", "ipv4", "ipv6"] | NotGiven = NOT_GIVEN,
291294
port_group: int | NotGiven = NOT_GIVEN,
292295
security_groups: Iterable[interface_attach_params.NewInterfaceExternalExtendSchemaWithDDOSSecurityGroup]
296+
| Iterable[interface_attach_params.NewInterfaceSpecificSubnetSchemaSecurityGroup]
297+
| Iterable[interface_attach_params.NewInterfaceAnySubnetSchemaSecurityGroup]
298+
| Iterable[interface_attach_params.NewInterfaceReservedFixedIPSchemaSecurityGroup]
293299
| NotGiven = NOT_GIVEN,
294300
type: str | NotGiven = NOT_GIVEN,
295301
subnet_id: str | NotGiven = NOT_GIVEN,
@@ -940,11 +946,17 @@ async def attach(
940946
project_id: int | None = None,
941947
region_id: int | None = None,
942948
ddos_profile: interface_attach_params.NewInterfaceExternalExtendSchemaWithDDOSDDOSProfile
949+
| interface_attach_params.NewInterfaceSpecificSubnetSchemaDDOSProfile
950+
| interface_attach_params.NewInterfaceAnySubnetSchemaDDOSProfile
951+
| interface_attach_params.NewInterfaceReservedFixedIPSchemaDDOSProfile
943952
| NotGiven = NOT_GIVEN,
944953
interface_name: str | NotGiven = NOT_GIVEN,
945954
ip_family: Literal["dual", "ipv4", "ipv6"] | NotGiven = NOT_GIVEN,
946955
port_group: int | NotGiven = NOT_GIVEN,
947956
security_groups: Iterable[interface_attach_params.NewInterfaceExternalExtendSchemaWithDDOSSecurityGroup]
957+
| Iterable[interface_attach_params.NewInterfaceSpecificSubnetSchemaSecurityGroup]
958+
| Iterable[interface_attach_params.NewInterfaceAnySubnetSchemaSecurityGroup]
959+
| Iterable[interface_attach_params.NewInterfaceReservedFixedIPSchemaSecurityGroup]
948960
| NotGiven = NOT_GIVEN,
949961
type: str | NotGiven = NOT_GIVEN,
950962
subnet_id: str | NotGiven = NOT_GIVEN,

0 commit comments

Comments
 (0)