Skip to content

Commit 3f3d72d

Browse files
authored
feat(iam): remove MigrateOrganizationGuests method (#1313)
1 parent d5ad814 commit 3f3d72d

File tree

6 files changed

+0
-72
lines changed

6 files changed

+0
-72
lines changed

scaleway-async/scaleway_async/iam/v1alpha1/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@
110110
from .types import ListUsersResponse
111111
from .types import LockUserRequest
112112
from .types import MFAOTP
113-
from .types import MigrateOrganizationGuestsRequest
114113
from .types import Organization
115114
from .types import OrganizationSecuritySettings
116115
from .types import RemoveGroupMemberRequest
@@ -247,7 +246,6 @@
247246
"ListUsersResponse",
248247
"LockUserRequest",
249248
"MFAOTP",
250-
"MigrateOrganizationGuestsRequest",
251249
"Organization",
252250
"OrganizationSecuritySettings",
253251
"RemoveGroupMemberRequest",

scaleway-async/scaleway_async/iam/v1alpha1/api.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3017,32 +3017,6 @@ async def get_organization(
30173017
self._throw_on_error(res)
30183018
return unmarshal_Organization(res.json())
30193019

3020-
async def migrate_organization_guests(
3021-
self,
3022-
*,
3023-
organization_id: Optional[str] = None,
3024-
) -> None:
3025-
"""
3026-
Migrate the organization's guests to IAM members.
3027-
:param organization_id: ID of the Organization.
3028-
3029-
Usage:
3030-
::
3031-
3032-
result = await api.migrate_organization_guests()
3033-
"""
3034-
3035-
param_organization_id = validate_path_param(
3036-
"organization_id", organization_id or self.client.default_organization_id
3037-
)
3038-
3039-
res = self._request(
3040-
"POST",
3041-
f"/iam/v1alpha1/organizations/{param_organization_id}/migrate-guests",
3042-
)
3043-
3044-
self._throw_on_error(res)
3045-
30463020
async def update_organization_login_methods(
30473021
self,
30483022
*,

scaleway-async/scaleway_async/iam/v1alpha1/types.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2078,14 +2078,6 @@ class MFAOTP:
20782078
secret: str
20792079

20802080

2081-
@dataclass
2082-
class MigrateOrganizationGuestsRequest:
2083-
organization_id: Optional[str] = None
2084-
"""
2085-
ID of the Organization.
2086-
"""
2087-
2088-
20892081
@dataclass
20902082
class Organization:
20912083
id: str

scaleway/scaleway/iam/v1alpha1/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@
110110
from .types import ListUsersResponse
111111
from .types import LockUserRequest
112112
from .types import MFAOTP
113-
from .types import MigrateOrganizationGuestsRequest
114113
from .types import Organization
115114
from .types import OrganizationSecuritySettings
116115
from .types import RemoveGroupMemberRequest
@@ -247,7 +246,6 @@
247246
"ListUsersResponse",
248247
"LockUserRequest",
249248
"MFAOTP",
250-
"MigrateOrganizationGuestsRequest",
251249
"Organization",
252250
"OrganizationSecuritySettings",
253251
"RemoveGroupMemberRequest",

scaleway/scaleway/iam/v1alpha1/api.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3017,32 +3017,6 @@ def get_organization(
30173017
self._throw_on_error(res)
30183018
return unmarshal_Organization(res.json())
30193019

3020-
def migrate_organization_guests(
3021-
self,
3022-
*,
3023-
organization_id: Optional[str] = None,
3024-
) -> None:
3025-
"""
3026-
Migrate the organization's guests to IAM members.
3027-
:param organization_id: ID of the Organization.
3028-
3029-
Usage:
3030-
::
3031-
3032-
result = api.migrate_organization_guests()
3033-
"""
3034-
3035-
param_organization_id = validate_path_param(
3036-
"organization_id", organization_id or self.client.default_organization_id
3037-
)
3038-
3039-
res = self._request(
3040-
"POST",
3041-
f"/iam/v1alpha1/organizations/{param_organization_id}/migrate-guests",
3042-
)
3043-
3044-
self._throw_on_error(res)
3045-
30463020
def update_organization_login_methods(
30473021
self,
30483022
*,

scaleway/scaleway/iam/v1alpha1/types.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2078,14 +2078,6 @@ class MFAOTP:
20782078
secret: str
20792079

20802080

2081-
@dataclass
2082-
class MigrateOrganizationGuestsRequest:
2083-
organization_id: Optional[str] = None
2084-
"""
2085-
ID of the Organization.
2086-
"""
2087-
2088-
20892081
@dataclass
20902082
class Organization:
20912083
id: str

0 commit comments

Comments
 (0)