alibabacloud-eiam20211201 2.11.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.
- alibabacloud_eiam20211201/__init__.py +1 -1
- alibabacloud_eiam20211201/client.py +980 -24
- alibabacloud_eiam20211201/models/__init__.py +106 -0
- alibabacloud_eiam20211201/models/_exec_identity_provider_metadata_url_resolution_request.py +63 -0
- alibabacloud_eiam20211201/models/_exec_identity_provider_metadata_url_resolution_response.py +54 -0
- alibabacloud_eiam20211201/models/_exec_identity_provider_metadata_url_resolution_response_body.py +138 -0
- alibabacloud_eiam20211201/models/_generate_oauth_token_request.py +63 -0
- alibabacloud_eiam20211201/models/_generate_oauth_token_response.py +54 -0
- alibabacloud_eiam20211201/models/_generate_oauth_token_response_body.py +96 -0
- alibabacloud_eiam20211201/models/_get_service_quota_request.py +36 -0
- alibabacloud_eiam20211201/models/_get_service_quota_response.py +54 -0
- alibabacloud_eiam20211201/models/_get_service_quota_response_body.py +90 -0
- alibabacloud_eiam20211201/models/_list_action_track_event_types_request.py +63 -0
- alibabacloud_eiam20211201/models/_list_action_track_event_types_response.py +54 -0
- alibabacloud_eiam20211201/models/_list_action_track_event_types_response_body.py +114 -0
- alibabacloud_eiam20211201/models/_list_event_types_request.py +43 -0
- alibabacloud_eiam20211201/models/_list_event_types_response.py +54 -0
- alibabacloud_eiam20211201/models/_list_event_types_response_body.py +87 -0
- alibabacloud_eiam20211201/models/_renew_free_license_end_time_request.py +36 -0
- alibabacloud_eiam20211201/models/_renew_free_license_end_time_response.py +54 -0
- alibabacloud_eiam20211201/models/_renew_free_license_end_time_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_set_identity_provider_authn_configuration_request.py +320 -0
- alibabacloud_eiam20211201/models/_set_identity_provider_authn_configuration_response.py +54 -0
- alibabacloud_eiam20211201/models/_set_identity_provider_authn_configuration_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_set_identity_provider_ud_push_configuration_request.py +247 -0
- alibabacloud_eiam20211201/models/_set_identity_provider_ud_push_configuration_response.py +54 -0
- alibabacloud_eiam20211201/models/_set_identity_provider_ud_push_configuration_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_set_instance_control_configuration_request.py +130 -0
- alibabacloud_eiam20211201/models/_set_instance_control_configuration_response.py +54 -0
- alibabacloud_eiam20211201/models/_set_instance_control_configuration_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_set_instance_globalization_config_request.py +58 -0
- alibabacloud_eiam20211201/models/_set_instance_globalization_config_response.py +54 -0
- alibabacloud_eiam20211201/models/_set_instance_globalization_config_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_set_web_authn_configuration_request.py +122 -0
- alibabacloud_eiam20211201/models/_set_web_authn_configuration_response.py +54 -0
- alibabacloud_eiam20211201/models/_set_web_authn_configuration_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_unbind_totp_authenticator_request.py +47 -0
- alibabacloud_eiam20211201/models/_unbind_totp_authenticator_response.py +54 -0
- alibabacloud_eiam20211201/models/_unbind_totp_authenticator_response_body.py +33 -0
- {alibabacloud_eiam20211201-2.11.0.dist-info → alibabacloud_eiam20211201-2.12.0.dist-info}/METADATA +1 -1
- {alibabacloud_eiam20211201-2.11.0.dist-info → alibabacloud_eiam20211201-2.12.0.dist-info}/RECORD +44 -8
- {alibabacloud_eiam20211201-2.11.0.dist-info → alibabacloud_eiam20211201-2.12.0.dist-info}/LICENSE +0 -0
- {alibabacloud_eiam20211201-2.11.0.dist-info → alibabacloud_eiam20211201-2.12.0.dist-info}/WHEEL +0 -0
- {alibabacloud_eiam20211201-2.11.0.dist-info → alibabacloud_eiam20211201-2.12.0.dist-info}/top_level.txt +0 -0
|
@@ -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
|
+
|
|
@@ -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 SetIdentityProviderUdPushConfigurationResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.SetIdentityProviderUdPushConfigurationResponseBody = 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.SetIdentityProviderUdPushConfigurationResponseBody()
|
|
51
|
+
self.body = temp_model.from_map(m.get('body'))
|
|
52
|
+
|
|
53
|
+
return self
|
|
54
|
+
|
alibabacloud_eiam20211201/models/_set_identity_provider_ud_push_configuration_response_body.py
ADDED
|
@@ -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 SetIdentityProviderUdPushConfigurationResponseBody(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,130 @@
|
|
|
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 SetInstanceControlConfigurationRequest(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
control_elements: List[main_models.SetInstanceControlConfigurationRequestControlElements] = None,
|
|
14
|
+
instance_id: str = None,
|
|
15
|
+
):
|
|
16
|
+
# 实例控制项。
|
|
17
|
+
self.control_elements = control_elements
|
|
18
|
+
# IDaaS EIAM实例的ID。
|
|
19
|
+
#
|
|
20
|
+
# This parameter is required.
|
|
21
|
+
self.instance_id = instance_id
|
|
22
|
+
|
|
23
|
+
def validate(self):
|
|
24
|
+
if self.control_elements:
|
|
25
|
+
for v1 in self.control_elements:
|
|
26
|
+
if v1:
|
|
27
|
+
v1.validate()
|
|
28
|
+
|
|
29
|
+
def to_map(self):
|
|
30
|
+
result = dict()
|
|
31
|
+
_map = super().to_map()
|
|
32
|
+
if _map is not None:
|
|
33
|
+
result = _map
|
|
34
|
+
result['ControlElements'] = []
|
|
35
|
+
if self.control_elements is not None:
|
|
36
|
+
for k1 in self.control_elements:
|
|
37
|
+
result['ControlElements'].append(k1.to_map() if k1 else None)
|
|
38
|
+
|
|
39
|
+
if self.instance_id is not None:
|
|
40
|
+
result['InstanceId'] = self.instance_id
|
|
41
|
+
|
|
42
|
+
return result
|
|
43
|
+
|
|
44
|
+
def from_map(self, m: dict = None):
|
|
45
|
+
m = m or dict()
|
|
46
|
+
self.control_elements = []
|
|
47
|
+
if m.get('ControlElements') is not None:
|
|
48
|
+
for k1 in m.get('ControlElements'):
|
|
49
|
+
temp_model = main_models.SetInstanceControlConfigurationRequestControlElements()
|
|
50
|
+
self.control_elements.append(temp_model.from_map(k1))
|
|
51
|
+
|
|
52
|
+
if m.get('InstanceId') is not None:
|
|
53
|
+
self.instance_id = m.get('InstanceId')
|
|
54
|
+
|
|
55
|
+
return self
|
|
56
|
+
|
|
57
|
+
class SetInstanceControlConfigurationRequestControlElements(DaraModel):
|
|
58
|
+
def __init__(
|
|
59
|
+
self,
|
|
60
|
+
element_name: str = None,
|
|
61
|
+
human_verification_config: main_models.SetInstanceControlConfigurationRequestControlElementsHumanVerificationConfig = None,
|
|
62
|
+
status: str = None,
|
|
63
|
+
):
|
|
64
|
+
# 实例控制项名称,如human_verification。
|
|
65
|
+
self.element_name = element_name
|
|
66
|
+
self.human_verification_config = human_verification_config
|
|
67
|
+
# 实例控制项状态。
|
|
68
|
+
self.status = status
|
|
69
|
+
|
|
70
|
+
def validate(self):
|
|
71
|
+
if self.human_verification_config:
|
|
72
|
+
self.human_verification_config.validate()
|
|
73
|
+
|
|
74
|
+
def to_map(self):
|
|
75
|
+
result = dict()
|
|
76
|
+
_map = super().to_map()
|
|
77
|
+
if _map is not None:
|
|
78
|
+
result = _map
|
|
79
|
+
if self.element_name is not None:
|
|
80
|
+
result['ElementName'] = self.element_name
|
|
81
|
+
|
|
82
|
+
if self.human_verification_config is not None:
|
|
83
|
+
result['HumanVerificationConfig'] = self.human_verification_config.to_map()
|
|
84
|
+
|
|
85
|
+
if self.status is not None:
|
|
86
|
+
result['Status'] = self.status
|
|
87
|
+
|
|
88
|
+
return result
|
|
89
|
+
|
|
90
|
+
def from_map(self, m: dict = None):
|
|
91
|
+
m = m or dict()
|
|
92
|
+
if m.get('ElementName') is not None:
|
|
93
|
+
self.element_name = m.get('ElementName')
|
|
94
|
+
|
|
95
|
+
if m.get('HumanVerificationConfig') is not None:
|
|
96
|
+
temp_model = main_models.SetInstanceControlConfigurationRequestControlElementsHumanVerificationConfig()
|
|
97
|
+
self.human_verification_config = temp_model.from_map(m.get('HumanVerificationConfig'))
|
|
98
|
+
|
|
99
|
+
if m.get('Status') is not None:
|
|
100
|
+
self.status = m.get('Status')
|
|
101
|
+
|
|
102
|
+
return self
|
|
103
|
+
|
|
104
|
+
class SetInstanceControlConfigurationRequestControlElementsHumanVerificationConfig(DaraModel):
|
|
105
|
+
def __init__(
|
|
106
|
+
self,
|
|
107
|
+
human_verification_type: str = None,
|
|
108
|
+
):
|
|
109
|
+
self.human_verification_type = human_verification_type
|
|
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.human_verification_type is not None:
|
|
120
|
+
result['HumanVerificationType'] = self.human_verification_type
|
|
121
|
+
|
|
122
|
+
return result
|
|
123
|
+
|
|
124
|
+
def from_map(self, m: dict = None):
|
|
125
|
+
m = m or dict()
|
|
126
|
+
if m.get('HumanVerificationType') is not None:
|
|
127
|
+
self.human_verification_type = m.get('HumanVerificationType')
|
|
128
|
+
|
|
129
|
+
return self
|
|
130
|
+
|
|
@@ -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 SetInstanceControlConfigurationResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.SetInstanceControlConfigurationResponseBody = 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.SetInstanceControlConfigurationResponseBody()
|
|
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 SetInstanceControlConfigurationResponseBody(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,58 @@
|
|
|
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 SetInstanceGlobalizationConfigRequest(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
instance_id: str = None,
|
|
11
|
+
language: str = None,
|
|
12
|
+
time_zone: str = None,
|
|
13
|
+
):
|
|
14
|
+
# IDaaS EIAM实例的ID。
|
|
15
|
+
#
|
|
16
|
+
# This parameter is required.
|
|
17
|
+
self.instance_id = instance_id
|
|
18
|
+
# 语言类型
|
|
19
|
+
#
|
|
20
|
+
# This parameter is required.
|
|
21
|
+
self.language = language
|
|
22
|
+
# 时区
|
|
23
|
+
#
|
|
24
|
+
# This parameter is required.
|
|
25
|
+
self.time_zone = time_zone
|
|
26
|
+
|
|
27
|
+
def validate(self):
|
|
28
|
+
pass
|
|
29
|
+
|
|
30
|
+
def to_map(self):
|
|
31
|
+
result = dict()
|
|
32
|
+
_map = super().to_map()
|
|
33
|
+
if _map is not None:
|
|
34
|
+
result = _map
|
|
35
|
+
if self.instance_id is not None:
|
|
36
|
+
result['InstanceId'] = self.instance_id
|
|
37
|
+
|
|
38
|
+
if self.language is not None:
|
|
39
|
+
result['Language'] = self.language
|
|
40
|
+
|
|
41
|
+
if self.time_zone is not None:
|
|
42
|
+
result['TimeZone'] = self.time_zone
|
|
43
|
+
|
|
44
|
+
return result
|
|
45
|
+
|
|
46
|
+
def from_map(self, m: dict = None):
|
|
47
|
+
m = m or dict()
|
|
48
|
+
if m.get('InstanceId') is not None:
|
|
49
|
+
self.instance_id = m.get('InstanceId')
|
|
50
|
+
|
|
51
|
+
if m.get('Language') is not None:
|
|
52
|
+
self.language = m.get('Language')
|
|
53
|
+
|
|
54
|
+
if m.get('TimeZone') is not None:
|
|
55
|
+
self.time_zone = m.get('TimeZone')
|
|
56
|
+
|
|
57
|
+
return self
|
|
58
|
+
|
|
@@ -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 SetInstanceGlobalizationConfigResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.SetInstanceGlobalizationConfigResponseBody = 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.SetInstanceGlobalizationConfigResponseBody()
|
|
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 SetInstanceGlobalizationConfigResponseBody(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
|
+
|