alibabacloud-eiam20211201 2.10.0__py3-none-any.whl → 2.12.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. alibabacloud_eiam20211201/__init__.py +1 -1
  2. alibabacloud_eiam20211201/client.py +5295 -2967
  3. alibabacloud_eiam20211201/models/__init__.py +264 -0
  4. alibabacloud_eiam20211201/models/_check_application_provisioning_user_primary_organizational_unit_request.py +58 -0
  5. alibabacloud_eiam20211201/models/_check_application_provisioning_user_primary_organizational_unit_response.py +54 -0
  6. alibabacloud_eiam20211201/models/_check_application_provisioning_user_primary_organizational_unit_response_body.py +90 -0
  7. alibabacloud_eiam20211201/models/_check_instance_for_delete_request.py +36 -0
  8. alibabacloud_eiam20211201/models/_check_instance_for_delete_response.py +54 -0
  9. alibabacloud_eiam20211201/models/_check_instance_for_delete_response_body.py +137 -0
  10. alibabacloud_eiam20211201/models/_check_instance_module_status_request.py +64 -0
  11. alibabacloud_eiam20211201/models/_check_instance_module_status_response.py +54 -0
  12. alibabacloud_eiam20211201/models/_check_instance_module_status_response_body.py +72 -0
  13. alibabacloud_eiam20211201/models/_create_custom_field_request.py +241 -0
  14. alibabacloud_eiam20211201/models/_create_custom_field_response.py +54 -0
  15. alibabacloud_eiam20211201/models/_create_custom_field_response_body.py +41 -0
  16. alibabacloud_eiam20211201/models/_create_instance_trial_license_request.py +36 -0
  17. alibabacloud_eiam20211201/models/_create_instance_trial_license_response.py +54 -0
  18. alibabacloud_eiam20211201/models/_create_instance_trial_license_response_body.py +41 -0
  19. alibabacloud_eiam20211201/models/_delete_custom_field_request.py +47 -0
  20. alibabacloud_eiam20211201/models/_delete_custom_field_response.py +54 -0
  21. alibabacloud_eiam20211201/models/_delete_custom_field_response_body.py +33 -0
  22. alibabacloud_eiam20211201/models/_disable_custom_field_request.py +47 -0
  23. alibabacloud_eiam20211201/models/_disable_custom_field_response.py +54 -0
  24. alibabacloud_eiam20211201/models/_disable_custom_field_response_body.py +33 -0
  25. alibabacloud_eiam20211201/models/_enable_custom_field_request.py +47 -0
  26. alibabacloud_eiam20211201/models/_enable_custom_field_response.py +54 -0
  27. alibabacloud_eiam20211201/models/_enable_custom_field_response_body.py +33 -0
  28. alibabacloud_eiam20211201/models/_exec_identity_provider_metadata_url_resolution_request.py +63 -0
  29. alibabacloud_eiam20211201/models/_exec_identity_provider_metadata_url_resolution_response.py +54 -0
  30. alibabacloud_eiam20211201/models/_exec_identity_provider_metadata_url_resolution_response_body.py +138 -0
  31. alibabacloud_eiam20211201/models/_generate_oauth_token_request.py +63 -0
  32. alibabacloud_eiam20211201/models/_generate_oauth_token_response.py +54 -0
  33. alibabacloud_eiam20211201/models/_generate_oauth_token_response_body.py +96 -0
  34. alibabacloud_eiam20211201/models/_get_application_provisioning_user_primary_organizational_unit_request.py +47 -0
  35. alibabacloud_eiam20211201/models/_get_application_provisioning_user_primary_organizational_unit_response.py +54 -0
  36. alibabacloud_eiam20211201/models/_get_application_provisioning_user_primary_organizational_unit_response_body.py +41 -0
  37. alibabacloud_eiam20211201/models/_get_custom_field_request.py +47 -0
  38. alibabacloud_eiam20211201/models/_get_custom_field_response.py +54 -0
  39. alibabacloud_eiam20211201/models/_get_custom_field_response_body.py +302 -0
  40. alibabacloud_eiam20211201/models/_get_identity_provider_advanced_configuration_request.py +47 -0
  41. alibabacloud_eiam20211201/models/_get_identity_provider_advanced_configuration_response.py +54 -0
  42. alibabacloud_eiam20211201/models/_get_identity_provider_advanced_configuration_response_body.py +129 -0
  43. alibabacloud_eiam20211201/models/_get_identity_provider_status_check_job_request.py +58 -0
  44. alibabacloud_eiam20211201/models/_get_identity_provider_status_check_job_response.py +54 -0
  45. alibabacloud_eiam20211201/models/_get_identity_provider_status_check_job_response_body.py +248 -0
  46. alibabacloud_eiam20211201/models/_get_identity_provider_ud_push_configuration_request.py +47 -0
  47. alibabacloud_eiam20211201/models/_get_identity_provider_ud_push_configuration_response.py +54 -0
  48. alibabacloud_eiam20211201/models/_get_identity_provider_ud_push_configuration_response_body.py +278 -0
  49. alibabacloud_eiam20211201/models/_get_instance_control_configuration_request.py +36 -0
  50. alibabacloud_eiam20211201/models/_get_instance_control_configuration_response.py +54 -0
  51. alibabacloud_eiam20211201/models/_get_instance_control_configuration_response_body.py +156 -0
  52. alibabacloud_eiam20211201/models/_get_instance_globalization_config_request.py +36 -0
  53. alibabacloud_eiam20211201/models/_get_instance_globalization_config_response.py +54 -0
  54. alibabacloud_eiam20211201/models/_get_instance_globalization_config_response_body.py +81 -0
  55. alibabacloud_eiam20211201/models/_get_instance_module_info_request.py +47 -0
  56. alibabacloud_eiam20211201/models/_get_instance_module_info_response.py +54 -0
  57. alibabacloud_eiam20211201/models/_get_instance_module_info_response_body.py +137 -0
  58. alibabacloud_eiam20211201/models/_get_instance_quota_request.py +47 -0
  59. alibabacloud_eiam20211201/models/_get_instance_quota_response.py +54 -0
  60. alibabacloud_eiam20211201/models/_get_instance_quota_response_body.py +81 -0
  61. alibabacloud_eiam20211201/models/_get_instance_trial_status_request.py +36 -0
  62. alibabacloud_eiam20211201/models/_get_instance_trial_status_response.py +54 -0
  63. alibabacloud_eiam20211201/models/_get_instance_trial_status_response_body.py +41 -0
  64. alibabacloud_eiam20211201/models/_get_service_quota_request.py +36 -0
  65. alibabacloud_eiam20211201/models/_get_service_quota_response.py +54 -0
  66. alibabacloud_eiam20211201/models/_get_service_quota_response_body.py +90 -0
  67. alibabacloud_eiam20211201/models/_list_action_track_event_types_request.py +63 -0
  68. alibabacloud_eiam20211201/models/_list_action_track_event_types_response.py +54 -0
  69. alibabacloud_eiam20211201/models/_list_action_track_event_types_response_body.py +114 -0
  70. alibabacloud_eiam20211201/models/_list_event_types_request.py +43 -0
  71. alibabacloud_eiam20211201/models/_list_event_types_response.py +54 -0
  72. alibabacloud_eiam20211201/models/_list_event_types_response_body.py +87 -0
  73. alibabacloud_eiam20211201/models/_renew_free_license_end_time_request.py +36 -0
  74. alibabacloud_eiam20211201/models/_renew_free_license_end_time_response.py +54 -0
  75. alibabacloud_eiam20211201/models/_renew_free_license_end_time_response_body.py +33 -0
  76. alibabacloud_eiam20211201/models/_set_identity_provider_authn_configuration_request.py +320 -0
  77. alibabacloud_eiam20211201/models/_set_identity_provider_authn_configuration_response.py +54 -0
  78. alibabacloud_eiam20211201/models/_set_identity_provider_authn_configuration_response_body.py +33 -0
  79. alibabacloud_eiam20211201/models/_set_identity_provider_ud_push_configuration_request.py +247 -0
  80. alibabacloud_eiam20211201/models/_set_identity_provider_ud_push_configuration_response.py +54 -0
  81. alibabacloud_eiam20211201/models/_set_identity_provider_ud_push_configuration_response_body.py +33 -0
  82. alibabacloud_eiam20211201/models/_set_instance_control_configuration_request.py +130 -0
  83. alibabacloud_eiam20211201/models/_set_instance_control_configuration_response.py +54 -0
  84. alibabacloud_eiam20211201/models/_set_instance_control_configuration_response_body.py +33 -0
  85. alibabacloud_eiam20211201/models/_set_instance_globalization_config_request.py +58 -0
  86. alibabacloud_eiam20211201/models/_set_instance_globalization_config_response.py +54 -0
  87. alibabacloud_eiam20211201/models/_set_instance_globalization_config_response_body.py +33 -0
  88. alibabacloud_eiam20211201/models/_set_web_authn_configuration_request.py +122 -0
  89. alibabacloud_eiam20211201/models/_set_web_authn_configuration_response.py +54 -0
  90. alibabacloud_eiam20211201/models/_set_web_authn_configuration_response_body.py +33 -0
  91. alibabacloud_eiam20211201/models/_unbind_totp_authenticator_request.py +47 -0
  92. alibabacloud_eiam20211201/models/_unbind_totp_authenticator_response.py +54 -0
  93. alibabacloud_eiam20211201/models/_unbind_totp_authenticator_response_body.py +33 -0
  94. {alibabacloud_eiam20211201-2.10.0.dist-info → alibabacloud_eiam20211201-2.12.0.dist-info}/METADATA +1 -1
  95. {alibabacloud_eiam20211201-2.10.0.dist-info → alibabacloud_eiam20211201-2.12.0.dist-info}/RECORD +98 -8
  96. {alibabacloud_eiam20211201-2.10.0.dist-info → alibabacloud_eiam20211201-2.12.0.dist-info}/LICENSE +0 -0
  97. {alibabacloud_eiam20211201-2.10.0.dist-info → alibabacloud_eiam20211201-2.12.0.dist-info}/WHEEL +0 -0
  98. {alibabacloud_eiam20211201-2.10.0.dist-info → alibabacloud_eiam20211201-2.12.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,320 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from typing import List
6
+
7
+ from alibabacloud_eiam20211201 import models as main_models
8
+ from darabonba.model import DaraModel
9
+
10
+ class SetIdentityProviderAuthnConfigurationRequest(DaraModel):
11
+ def __init__(
12
+ self,
13
+ auto_create_user_config: main_models.SetIdentityProviderAuthnConfigurationRequestAutoCreateUserConfig = None,
14
+ auto_update_user_config: main_models.SetIdentityProviderAuthnConfigurationRequestAutoUpdateUserConfig = None,
15
+ binding_config: main_models.SetIdentityProviderAuthnConfigurationRequestBindingConfig = None,
16
+ identity_provider_id: str = None,
17
+ instance_id: str = None,
18
+ ldap_authn_config: main_models.SetIdentityProviderAuthnConfigurationRequestLdapAuthnConfig = None,
19
+ ):
20
+ # 自动创建账户账户规则配置。
21
+ self.auto_create_user_config = auto_create_user_config
22
+ self.auto_update_user_config = auto_update_user_config
23
+ # 账户绑定规则配置
24
+ self.binding_config = binding_config
25
+ # IDaaS的身份提供方主键id
26
+ #
27
+ # This parameter is required.
28
+ self.identity_provider_id = identity_provider_id
29
+ # IDaaS EIAM实例的ID。
30
+ #
31
+ # This parameter is required.
32
+ self.instance_id = instance_id
33
+ # AD/LDAP配置
34
+ self.ldap_authn_config = ldap_authn_config
35
+
36
+ def validate(self):
37
+ if self.auto_create_user_config:
38
+ self.auto_create_user_config.validate()
39
+ if self.auto_update_user_config:
40
+ self.auto_update_user_config.validate()
41
+ if self.binding_config:
42
+ self.binding_config.validate()
43
+ if self.ldap_authn_config:
44
+ self.ldap_authn_config.validate()
45
+
46
+ def to_map(self):
47
+ result = dict()
48
+ _map = super().to_map()
49
+ if _map is not None:
50
+ result = _map
51
+ if self.auto_create_user_config is not None:
52
+ result['AutoCreateUserConfig'] = self.auto_create_user_config.to_map()
53
+
54
+ if self.auto_update_user_config is not None:
55
+ result['AutoUpdateUserConfig'] = self.auto_update_user_config.to_map()
56
+
57
+ if self.binding_config is not None:
58
+ result['BindingConfig'] = self.binding_config.to_map()
59
+
60
+ if self.identity_provider_id is not None:
61
+ result['IdentityProviderId'] = self.identity_provider_id
62
+
63
+ if self.instance_id is not None:
64
+ result['InstanceId'] = self.instance_id
65
+
66
+ if self.ldap_authn_config is not None:
67
+ result['LdapAuthnConfig'] = self.ldap_authn_config.to_map()
68
+
69
+ return result
70
+
71
+ def from_map(self, m: dict = None):
72
+ m = m or dict()
73
+ if m.get('AutoCreateUserConfig') is not None:
74
+ temp_model = main_models.SetIdentityProviderAuthnConfigurationRequestAutoCreateUserConfig()
75
+ self.auto_create_user_config = temp_model.from_map(m.get('AutoCreateUserConfig'))
76
+
77
+ if m.get('AutoUpdateUserConfig') is not None:
78
+ temp_model = main_models.SetIdentityProviderAuthnConfigurationRequestAutoUpdateUserConfig()
79
+ self.auto_update_user_config = temp_model.from_map(m.get('AutoUpdateUserConfig'))
80
+
81
+ if m.get('BindingConfig') is not None:
82
+ temp_model = main_models.SetIdentityProviderAuthnConfigurationRequestBindingConfig()
83
+ self.binding_config = temp_model.from_map(m.get('BindingConfig'))
84
+
85
+ if m.get('IdentityProviderId') is not None:
86
+ self.identity_provider_id = m.get('IdentityProviderId')
87
+
88
+ if m.get('InstanceId') is not None:
89
+ self.instance_id = m.get('InstanceId')
90
+
91
+ if m.get('LdapAuthnConfig') is not None:
92
+ temp_model = main_models.SetIdentityProviderAuthnConfigurationRequestLdapAuthnConfig()
93
+ self.ldap_authn_config = temp_model.from_map(m.get('LdapAuthnConfig'))
94
+
95
+ return self
96
+
97
+ class SetIdentityProviderAuthnConfigurationRequestLdapAuthnConfig(DaraModel):
98
+ def __init__(
99
+ self,
100
+ auto_update_password_status: str = None,
101
+ user_login_identifier: str = None,
102
+ user_object_class: str = None,
103
+ ):
104
+ # 是否支持自动更新密码
105
+ self.auto_update_password_status = auto_update_password_status
106
+ # 用户登录标识
107
+ self.user_login_identifier = user_login_identifier
108
+ # 用户ObjectClass
109
+ self.user_object_class = user_object_class
110
+
111
+ def validate(self):
112
+ pass
113
+
114
+ def to_map(self):
115
+ result = dict()
116
+ _map = super().to_map()
117
+ if _map is not None:
118
+ result = _map
119
+ if self.auto_update_password_status is not None:
120
+ result['AutoUpdatePasswordStatus'] = self.auto_update_password_status
121
+
122
+ if self.user_login_identifier is not None:
123
+ result['UserLoginIdentifier'] = self.user_login_identifier
124
+
125
+ if self.user_object_class is not None:
126
+ result['UserObjectClass'] = self.user_object_class
127
+
128
+ return result
129
+
130
+ def from_map(self, m: dict = None):
131
+ m = m or dict()
132
+ if m.get('AutoUpdatePasswordStatus') is not None:
133
+ self.auto_update_password_status = m.get('AutoUpdatePasswordStatus')
134
+
135
+ if m.get('UserLoginIdentifier') is not None:
136
+ self.user_login_identifier = m.get('UserLoginIdentifier')
137
+
138
+ if m.get('UserObjectClass') is not None:
139
+ self.user_object_class = m.get('UserObjectClass')
140
+
141
+ return self
142
+
143
+ class SetIdentityProviderAuthnConfigurationRequestBindingConfig(DaraModel):
144
+ def __init__(
145
+ self,
146
+ auto_match_user_profile_expressions: List[main_models.SetIdentityProviderAuthnConfigurationRequestBindingConfigAutoMatchUserProfileExpressions] = None,
147
+ auto_match_user_status: str = None,
148
+ mapping_binding_status: str = None,
149
+ ):
150
+ # 自动匹配账户的规则
151
+ self.auto_match_user_profile_expressions = auto_match_user_profile_expressions
152
+ # 自动匹配账户是否开启
153
+ self.auto_match_user_status = auto_match_user_status
154
+ # 用户手动绑定账户功能是否开启
155
+ self.mapping_binding_status = mapping_binding_status
156
+
157
+ def validate(self):
158
+ if self.auto_match_user_profile_expressions:
159
+ for v1 in self.auto_match_user_profile_expressions:
160
+ if v1:
161
+ v1.validate()
162
+
163
+ def to_map(self):
164
+ result = dict()
165
+ _map = super().to_map()
166
+ if _map is not None:
167
+ result = _map
168
+ result['AutoMatchUserProfileExpressions'] = []
169
+ if self.auto_match_user_profile_expressions is not None:
170
+ for k1 in self.auto_match_user_profile_expressions:
171
+ result['AutoMatchUserProfileExpressions'].append(k1.to_map() if k1 else None)
172
+
173
+ if self.auto_match_user_status is not None:
174
+ result['AutoMatchUserStatus'] = self.auto_match_user_status
175
+
176
+ if self.mapping_binding_status is not None:
177
+ result['MappingBindingStatus'] = self.mapping_binding_status
178
+
179
+ return result
180
+
181
+ def from_map(self, m: dict = None):
182
+ m = m or dict()
183
+ self.auto_match_user_profile_expressions = []
184
+ if m.get('AutoMatchUserProfileExpressions') is not None:
185
+ for k1 in m.get('AutoMatchUserProfileExpressions'):
186
+ temp_model = main_models.SetIdentityProviderAuthnConfigurationRequestBindingConfigAutoMatchUserProfileExpressions()
187
+ self.auto_match_user_profile_expressions.append(temp_model.from_map(k1))
188
+
189
+ if m.get('AutoMatchUserStatus') is not None:
190
+ self.auto_match_user_status = m.get('AutoMatchUserStatus')
191
+
192
+ if m.get('MappingBindingStatus') is not None:
193
+ self.mapping_binding_status = m.get('MappingBindingStatus')
194
+
195
+ return self
196
+
197
+ class SetIdentityProviderAuthnConfigurationRequestBindingConfigAutoMatchUserProfileExpressions(DaraModel):
198
+ def __init__(
199
+ self,
200
+ expression_mapping_type: str = None,
201
+ source_value_expression: str = None,
202
+ target_field: str = None,
203
+ target_field_description: str = None,
204
+ ):
205
+ # 表达式的类型
206
+ #
207
+ # This parameter is required.
208
+ self.expression_mapping_type = expression_mapping_type
209
+ # 映射属性取值表达式
210
+ #
211
+ # This parameter is required.
212
+ self.source_value_expression = source_value_expression
213
+ # 映射目标属性名称
214
+ #
215
+ # This parameter is required.
216
+ self.target_field = target_field
217
+ # 映射目标属性名称
218
+ self.target_field_description = target_field_description
219
+
220
+ def validate(self):
221
+ pass
222
+
223
+ def to_map(self):
224
+ result = dict()
225
+ _map = super().to_map()
226
+ if _map is not None:
227
+ result = _map
228
+ if self.expression_mapping_type is not None:
229
+ result['ExpressionMappingType'] = self.expression_mapping_type
230
+
231
+ if self.source_value_expression is not None:
232
+ result['SourceValueExpression'] = self.source_value_expression
233
+
234
+ if self.target_field is not None:
235
+ result['TargetField'] = self.target_field
236
+
237
+ if self.target_field_description is not None:
238
+ result['TargetFieldDescription'] = self.target_field_description
239
+
240
+ return result
241
+
242
+ def from_map(self, m: dict = None):
243
+ m = m or dict()
244
+ if m.get('ExpressionMappingType') is not None:
245
+ self.expression_mapping_type = m.get('ExpressionMappingType')
246
+
247
+ if m.get('SourceValueExpression') is not None:
248
+ self.source_value_expression = m.get('SourceValueExpression')
249
+
250
+ if m.get('TargetField') is not None:
251
+ self.target_field = m.get('TargetField')
252
+
253
+ if m.get('TargetFieldDescription') is not None:
254
+ self.target_field_description = m.get('TargetFieldDescription')
255
+
256
+ return self
257
+
258
+ class SetIdentityProviderAuthnConfigurationRequestAutoUpdateUserConfig(DaraModel):
259
+ def __init__(
260
+ self,
261
+ auto_update_user_status: str = None,
262
+ ):
263
+ self.auto_update_user_status = auto_update_user_status
264
+
265
+ def validate(self):
266
+ pass
267
+
268
+ def to_map(self):
269
+ result = dict()
270
+ _map = super().to_map()
271
+ if _map is not None:
272
+ result = _map
273
+ if self.auto_update_user_status is not None:
274
+ result['AutoUpdateUserStatus'] = self.auto_update_user_status
275
+
276
+ return result
277
+
278
+ def from_map(self, m: dict = None):
279
+ m = m or dict()
280
+ if m.get('AutoUpdateUserStatus') is not None:
281
+ self.auto_update_user_status = m.get('AutoUpdateUserStatus')
282
+
283
+ return self
284
+
285
+ class SetIdentityProviderAuthnConfigurationRequestAutoCreateUserConfig(DaraModel):
286
+ def __init__(
287
+ self,
288
+ auto_create_user_status: str = None,
289
+ target_organizational_unit_ids: List[str] = None,
290
+ ):
291
+ # 自动创建账户是否开启
292
+ self.auto_create_user_status = auto_create_user_status
293
+ self.target_organizational_unit_ids = target_organizational_unit_ids
294
+
295
+ def validate(self):
296
+ pass
297
+
298
+ def to_map(self):
299
+ result = dict()
300
+ _map = super().to_map()
301
+ if _map is not None:
302
+ result = _map
303
+ if self.auto_create_user_status is not None:
304
+ result['AutoCreateUserStatus'] = self.auto_create_user_status
305
+
306
+ if self.target_organizational_unit_ids is not None:
307
+ result['TargetOrganizationalUnitIds'] = self.target_organizational_unit_ids
308
+
309
+ return result
310
+
311
+ def from_map(self, m: dict = None):
312
+ m = m or dict()
313
+ if m.get('AutoCreateUserStatus') is not None:
314
+ self.auto_create_user_status = m.get('AutoCreateUserStatus')
315
+
316
+ if m.get('TargetOrganizationalUnitIds') is not None:
317
+ self.target_organizational_unit_ids = m.get('TargetOrganizationalUnitIds')
318
+
319
+ return self
320
+
@@ -0,0 +1,54 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from typing import Dict
6
+
7
+ from alibabacloud_eiam20211201 import models as main_models
8
+ from darabonba.model import DaraModel
9
+
10
+ class SetIdentityProviderAuthnConfigurationResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.SetIdentityProviderAuthnConfigurationResponseBody = None,
16
+ ):
17
+ self.headers = headers
18
+ self.status_code = status_code
19
+ self.body = body
20
+
21
+ def validate(self):
22
+ if self.body:
23
+ self.body.validate()
24
+
25
+ def to_map(self):
26
+ result = dict()
27
+ _map = super().to_map()
28
+ if _map is not None:
29
+ result = _map
30
+ if self.headers is not None:
31
+ result['headers'] = self.headers
32
+
33
+ if self.status_code is not None:
34
+ result['statusCode'] = self.status_code
35
+
36
+ if self.body is not None:
37
+ result['body'] = self.body.to_map()
38
+
39
+ return result
40
+
41
+ def from_map(self, m: dict = None):
42
+ m = m or dict()
43
+ if m.get('headers') is not None:
44
+ self.headers = m.get('headers')
45
+
46
+ if m.get('statusCode') is not None:
47
+ self.status_code = m.get('statusCode')
48
+
49
+ if m.get('body') is not None:
50
+ temp_model = main_models.SetIdentityProviderAuthnConfigurationResponseBody()
51
+ self.body = temp_model.from_map(m.get('body'))
52
+
53
+ return self
54
+
@@ -0,0 +1,33 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from darabonba.model import DaraModel
6
+
7
+ class SetIdentityProviderAuthnConfigurationResponseBody(DaraModel):
8
+ def __init__(
9
+ self,
10
+ request_id: str = None,
11
+ ):
12
+ self.request_id = request_id
13
+
14
+ def validate(self):
15
+ pass
16
+
17
+ def to_map(self):
18
+ result = dict()
19
+ _map = super().to_map()
20
+ if _map is not None:
21
+ result = _map
22
+ if self.request_id is not None:
23
+ result['RequestId'] = self.request_id
24
+
25
+ return result
26
+
27
+ def from_map(self, m: dict = None):
28
+ m = m or dict()
29
+ if m.get('RequestId') is not None:
30
+ self.request_id = m.get('RequestId')
31
+
32
+ return self
33
+
@@ -0,0 +1,247 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from typing import List
6
+
7
+ from alibabacloud_eiam20211201 import models as main_models
8
+ from darabonba.model import DaraModel
9
+
10
+ class SetIdentityProviderUdPushConfigurationRequest(DaraModel):
11
+ def __init__(
12
+ self,
13
+ identity_provider_id: str = None,
14
+ incremental_callback_status: str = None,
15
+ instance_id: str = None,
16
+ ldap_ud_push_config: main_models.SetIdentityProviderUdPushConfigurationRequestLdapUdPushConfig = None,
17
+ periodic_sync_config: main_models.SetIdentityProviderUdPushConfigurationRequestPeriodicSyncConfig = None,
18
+ periodic_sync_status: str = None,
19
+ ud_sync_scope_configs: List[main_models.SetIdentityProviderUdPushConfigurationRequestUdSyncScopeConfigs] = None,
20
+ ):
21
+ # IDaaS的身份提供方主键id
22
+ #
23
+ # This parameter is required.
24
+ self.identity_provider_id = identity_provider_id
25
+ # 增量回调状态,是否处理来自IdP的增量回调数据
26
+ #
27
+ # This parameter is required.
28
+ self.incremental_callback_status = incremental_callback_status
29
+ # IDaaS EIAM的实例id
30
+ #
31
+ # This parameter is required.
32
+ self.instance_id = instance_id
33
+ self.ldap_ud_push_config = ldap_ud_push_config
34
+ self.periodic_sync_config = periodic_sync_config
35
+ self.periodic_sync_status = periodic_sync_status
36
+ # 同步出配置信息
37
+ self.ud_sync_scope_configs = ud_sync_scope_configs
38
+
39
+ def validate(self):
40
+ if self.ldap_ud_push_config:
41
+ self.ldap_ud_push_config.validate()
42
+ if self.periodic_sync_config:
43
+ self.periodic_sync_config.validate()
44
+ if self.ud_sync_scope_configs:
45
+ for v1 in self.ud_sync_scope_configs:
46
+ if v1:
47
+ v1.validate()
48
+
49
+ def to_map(self):
50
+ result = dict()
51
+ _map = super().to_map()
52
+ if _map is not None:
53
+ result = _map
54
+ if self.identity_provider_id is not None:
55
+ result['IdentityProviderId'] = self.identity_provider_id
56
+
57
+ if self.incremental_callback_status is not None:
58
+ result['IncrementalCallbackStatus'] = self.incremental_callback_status
59
+
60
+ if self.instance_id is not None:
61
+ result['InstanceId'] = self.instance_id
62
+
63
+ if self.ldap_ud_push_config is not None:
64
+ result['LdapUdPushConfig'] = self.ldap_ud_push_config.to_map()
65
+
66
+ if self.periodic_sync_config is not None:
67
+ result['PeriodicSyncConfig'] = self.periodic_sync_config.to_map()
68
+
69
+ if self.periodic_sync_status is not None:
70
+ result['PeriodicSyncStatus'] = self.periodic_sync_status
71
+
72
+ result['UdSyncScopeConfigs'] = []
73
+ if self.ud_sync_scope_configs is not None:
74
+ for k1 in self.ud_sync_scope_configs:
75
+ result['UdSyncScopeConfigs'].append(k1.to_map() if k1 else None)
76
+
77
+ return result
78
+
79
+ def from_map(self, m: dict = None):
80
+ m = m or dict()
81
+ if m.get('IdentityProviderId') is not None:
82
+ self.identity_provider_id = m.get('IdentityProviderId')
83
+
84
+ if m.get('IncrementalCallbackStatus') is not None:
85
+ self.incremental_callback_status = m.get('IncrementalCallbackStatus')
86
+
87
+ if m.get('InstanceId') is not None:
88
+ self.instance_id = m.get('InstanceId')
89
+
90
+ if m.get('LdapUdPushConfig') is not None:
91
+ temp_model = main_models.SetIdentityProviderUdPushConfigurationRequestLdapUdPushConfig()
92
+ self.ldap_ud_push_config = temp_model.from_map(m.get('LdapUdPushConfig'))
93
+
94
+ if m.get('PeriodicSyncConfig') is not None:
95
+ temp_model = main_models.SetIdentityProviderUdPushConfigurationRequestPeriodicSyncConfig()
96
+ self.periodic_sync_config = temp_model.from_map(m.get('PeriodicSyncConfig'))
97
+
98
+ if m.get('PeriodicSyncStatus') is not None:
99
+ self.periodic_sync_status = m.get('PeriodicSyncStatus')
100
+
101
+ self.ud_sync_scope_configs = []
102
+ if m.get('UdSyncScopeConfigs') is not None:
103
+ for k1 in m.get('UdSyncScopeConfigs'):
104
+ temp_model = main_models.SetIdentityProviderUdPushConfigurationRequestUdSyncScopeConfigs()
105
+ self.ud_sync_scope_configs.append(temp_model.from_map(k1))
106
+
107
+ return self
108
+
109
+ class SetIdentityProviderUdPushConfigurationRequestUdSyncScopeConfigs(DaraModel):
110
+ def __init__(
111
+ self,
112
+ source_scopes: List[str] = None,
113
+ target_scope: str = None,
114
+ ):
115
+ # 同步来源节点
116
+ self.source_scopes = source_scopes
117
+ # 同步目标节点
118
+ self.target_scope = target_scope
119
+
120
+ def validate(self):
121
+ pass
122
+
123
+ def to_map(self):
124
+ result = dict()
125
+ _map = super().to_map()
126
+ if _map is not None:
127
+ result = _map
128
+ if self.source_scopes is not None:
129
+ result['SourceScopes'] = self.source_scopes
130
+
131
+ if self.target_scope is not None:
132
+ result['TargetScope'] = self.target_scope
133
+
134
+ return result
135
+
136
+ def from_map(self, m: dict = None):
137
+ m = m or dict()
138
+ if m.get('SourceScopes') is not None:
139
+ self.source_scopes = m.get('SourceScopes')
140
+
141
+ if m.get('TargetScope') is not None:
142
+ self.target_scope = m.get('TargetScope')
143
+
144
+ return self
145
+
146
+ class SetIdentityProviderUdPushConfigurationRequestPeriodicSyncConfig(DaraModel):
147
+ def __init__(
148
+ self,
149
+ periodic_sync_cron: str = None,
150
+ periodic_sync_times: List[int] = None,
151
+ periodic_sync_type: str = None,
152
+ ):
153
+ self.periodic_sync_cron = periodic_sync_cron
154
+ self.periodic_sync_times = periodic_sync_times
155
+ self.periodic_sync_type = periodic_sync_type
156
+
157
+ def validate(self):
158
+ pass
159
+
160
+ def to_map(self):
161
+ result = dict()
162
+ _map = super().to_map()
163
+ if _map is not None:
164
+ result = _map
165
+ if self.periodic_sync_cron is not None:
166
+ result['PeriodicSyncCron'] = self.periodic_sync_cron
167
+
168
+ if self.periodic_sync_times is not None:
169
+ result['PeriodicSyncTimes'] = self.periodic_sync_times
170
+
171
+ if self.periodic_sync_type is not None:
172
+ result['PeriodicSyncType'] = self.periodic_sync_type
173
+
174
+ return result
175
+
176
+ def from_map(self, m: dict = None):
177
+ m = m or dict()
178
+ if m.get('PeriodicSyncCron') is not None:
179
+ self.periodic_sync_cron = m.get('PeriodicSyncCron')
180
+
181
+ if m.get('PeriodicSyncTimes') is not None:
182
+ self.periodic_sync_times = m.get('PeriodicSyncTimes')
183
+
184
+ if m.get('PeriodicSyncType') is not None:
185
+ self.periodic_sync_type = m.get('PeriodicSyncType')
186
+
187
+ return self
188
+
189
+ class SetIdentityProviderUdPushConfigurationRequestLdapUdPushConfig(DaraModel):
190
+ def __init__(
191
+ self,
192
+ organization_unit_object_class: str = None,
193
+ organizational_unit_rdn: str = None,
194
+ password_sync_status: str = None,
195
+ user_object_class: str = None,
196
+ user_rdn: str = None,
197
+ ):
198
+ self.organization_unit_object_class = organization_unit_object_class
199
+ self.organizational_unit_rdn = organizational_unit_rdn
200
+ self.password_sync_status = password_sync_status
201
+ self.user_object_class = user_object_class
202
+ self.user_rdn = user_rdn
203
+
204
+ def validate(self):
205
+ pass
206
+
207
+ def to_map(self):
208
+ result = dict()
209
+ _map = super().to_map()
210
+ if _map is not None:
211
+ result = _map
212
+ if self.organization_unit_object_class is not None:
213
+ result['OrganizationUnitObjectClass'] = self.organization_unit_object_class
214
+
215
+ if self.organizational_unit_rdn is not None:
216
+ result['OrganizationalUnitRdn'] = self.organizational_unit_rdn
217
+
218
+ if self.password_sync_status is not None:
219
+ result['PasswordSyncStatus'] = self.password_sync_status
220
+
221
+ if self.user_object_class is not None:
222
+ result['UserObjectClass'] = self.user_object_class
223
+
224
+ if self.user_rdn is not None:
225
+ result['UserRdn'] = self.user_rdn
226
+
227
+ return result
228
+
229
+ def from_map(self, m: dict = None):
230
+ m = m or dict()
231
+ if m.get('OrganizationUnitObjectClass') is not None:
232
+ self.organization_unit_object_class = m.get('OrganizationUnitObjectClass')
233
+
234
+ if m.get('OrganizationalUnitRdn') is not None:
235
+ self.organizational_unit_rdn = m.get('OrganizationalUnitRdn')
236
+
237
+ if m.get('PasswordSyncStatus') is not None:
238
+ self.password_sync_status = m.get('PasswordSyncStatus')
239
+
240
+ if m.get('UserObjectClass') is not None:
241
+ self.user_object_class = m.get('UserObjectClass')
242
+
243
+ if m.get('UserRdn') is not None:
244
+ self.user_rdn = m.get('UserRdn')
245
+
246
+ return self
247
+