File tree Expand file tree Collapse file tree 6 files changed +72
-0
lines changed
scaleway-async/scaleway_async/iam/v1alpha1
scaleway/scaleway/iam/v1alpha1 Expand file tree Collapse file tree 6 files changed +72
-0
lines changed Original file line number Diff line number Diff line change 9494from .types import ListUsersResponse
9595from .types import LockUserRequest
9696from .types import MFAOTP
97+ from .types import MigrateOrganizationGuestsRequest
9798from .types import OrganizationSecuritySettings
9899from .types import RemoveGroupMemberRequest
99100from .types import SetGroupMembersRequest
208209 "ListUsersResponse" ,
209210 "LockUserRequest" ,
210211 "MFAOTP" ,
212+ "MigrateOrganizationGuestsRequest" ,
211213 "OrganizationSecuritySettings" ,
212214 "RemoveGroupMemberRequest" ,
213215 "SetGroupMembersRequest" ,
Original file line number Diff line number Diff line change @@ -2826,3 +2826,29 @@ async def update_organization_security_settings(
28262826
28272827 self ._throw_on_error (res )
28282828 return unmarshal_OrganizationSecuritySettings (res .json ())
2829+
2830+ async def migrate_organization_guests (
2831+ self ,
2832+ * ,
2833+ organization_id : Optional [str ] = None ,
2834+ ) -> None :
2835+ """
2836+ Migrate the organization's guests to IAM members.
2837+ :param organization_id: ID of the Organization.
2838+
2839+ Usage:
2840+ ::
2841+
2842+ result = await api.migrate_organization_guests()
2843+ """
2844+
2845+ param_organization_id = validate_path_param (
2846+ "organization_id" , organization_id or self .client .default_organization_id
2847+ )
2848+
2849+ res = self ._request (
2850+ "POST" ,
2851+ f"/iam/v1alpha1/organizations/{ param_organization_id } /migrate-guests" ,
2852+ )
2853+
2854+ self ._throw_on_error (res )
Original file line number Diff line number Diff line change @@ -1906,6 +1906,14 @@ class MFAOTP:
19061906 secret : str
19071907
19081908
1909+ @dataclass
1910+ class MigrateOrganizationGuestsRequest :
1911+ organization_id : Optional [str ]
1912+ """
1913+ ID of the Organization.
1914+ """
1915+
1916+
19091917@dataclass
19101918class OrganizationSecuritySettings :
19111919 enforce_password_renewal : bool
Original file line number Diff line number Diff line change 9494from .types import ListUsersResponse
9595from .types import LockUserRequest
9696from .types import MFAOTP
97+ from .types import MigrateOrganizationGuestsRequest
9798from .types import OrganizationSecuritySettings
9899from .types import RemoveGroupMemberRequest
99100from .types import SetGroupMembersRequest
208209 "ListUsersResponse" ,
209210 "LockUserRequest" ,
210211 "MFAOTP" ,
212+ "MigrateOrganizationGuestsRequest" ,
211213 "OrganizationSecuritySettings" ,
212214 "RemoveGroupMemberRequest" ,
213215 "SetGroupMembersRequest" ,
Original file line number Diff line number Diff line change @@ -2826,3 +2826,29 @@ def update_organization_security_settings(
28262826
28272827 self ._throw_on_error (res )
28282828 return unmarshal_OrganizationSecuritySettings (res .json ())
2829+
2830+ def migrate_organization_guests (
2831+ self ,
2832+ * ,
2833+ organization_id : Optional [str ] = None ,
2834+ ) -> None :
2835+ """
2836+ Migrate the organization's guests to IAM members.
2837+ :param organization_id: ID of the Organization.
2838+
2839+ Usage:
2840+ ::
2841+
2842+ result = api.migrate_organization_guests()
2843+ """
2844+
2845+ param_organization_id = validate_path_param (
2846+ "organization_id" , organization_id or self .client .default_organization_id
2847+ )
2848+
2849+ res = self ._request (
2850+ "POST" ,
2851+ f"/iam/v1alpha1/organizations/{ param_organization_id } /migrate-guests" ,
2852+ )
2853+
2854+ self ._throw_on_error (res )
Original file line number Diff line number Diff line change @@ -1906,6 +1906,14 @@ class MFAOTP:
19061906 secret : str
19071907
19081908
1909+ @dataclass
1910+ class MigrateOrganizationGuestsRequest :
1911+ organization_id : Optional [str ]
1912+ """
1913+ ID of the Organization.
1914+ """
1915+
1916+
19091917@dataclass
19101918class OrganizationSecuritySettings :
19111919 enforce_password_renewal : bool
You can’t perform that action at this time.
0 commit comments