|
81 | 81 | UpdateAPIKeyRequest, |
82 | 82 | UpdateApplicationRequest, |
83 | 83 | UpdateGroupRequest, |
| 84 | + UpdateOrganizationLoginMethodsRequest, |
84 | 85 | UpdateOrganizationSecuritySettingsRequest, |
85 | 86 | UpdatePolicyRequest, |
86 | 87 | UpdateSSHKeyRequest, |
|
144 | 145 | marshal_UpdateAPIKeyRequest, |
145 | 146 | marshal_UpdateApplicationRequest, |
146 | 147 | marshal_UpdateGroupRequest, |
| 148 | + marshal_UpdateOrganizationLoginMethodsRequest, |
147 | 149 | marshal_UpdateOrganizationSecuritySettingsRequest, |
148 | 150 | marshal_UpdatePolicyRequest, |
149 | 151 | marshal_UpdateSSHKeyRequest, |
@@ -3017,32 +3019,6 @@ async def get_organization( |
3017 | 3019 | self._throw_on_error(res) |
3018 | 3020 | return unmarshal_Organization(res.json()) |
3019 | 3021 |
|
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 | | - |
3046 | 3022 | async def update_organization_login_methods( |
3047 | 3023 | self, |
3048 | 3024 | *, |
@@ -3074,12 +3050,16 @@ async def update_organization_login_methods( |
3074 | 3050 | res = self._request( |
3075 | 3051 | "PATCH", |
3076 | 3052 | f"/iam/v1alpha1/organizations/{param_organization_id}/login-methods", |
3077 | | - params={ |
3078 | | - "login_magic_code_enabled": login_magic_code_enabled, |
3079 | | - "login_oauth2_enabled": login_oauth2_enabled, |
3080 | | - "login_password_enabled": login_password_enabled, |
3081 | | - "login_saml_enabled": login_saml_enabled, |
3082 | | - }, |
| 3053 | + body=marshal_UpdateOrganizationLoginMethodsRequest( |
| 3054 | + UpdateOrganizationLoginMethodsRequest( |
| 3055 | + organization_id=organization_id, |
| 3056 | + login_password_enabled=login_password_enabled, |
| 3057 | + login_oauth2_enabled=login_oauth2_enabled, |
| 3058 | + login_magic_code_enabled=login_magic_code_enabled, |
| 3059 | + login_saml_enabled=login_saml_enabled, |
| 3060 | + ), |
| 3061 | + self.client, |
| 3062 | + ), |
3083 | 3063 | ) |
3084 | 3064 |
|
3085 | 3065 | self._throw_on_error(res) |
|
0 commit comments