alibabacloud-eiam20211201 2.9.0__py3-none-any.whl → 2.11.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 +7052 -3382
- alibabacloud_eiam20211201/models/__init__.py +374 -0
- alibabacloud_eiam20211201/models/_add_application_to_authorization_rule_request.py +129 -0
- alibabacloud_eiam20211201/models/_add_application_to_authorization_rule_response.py +54 -0
- alibabacloud_eiam20211201/models/_add_application_to_authorization_rule_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_add_group_to_authorization_rule_request.py +127 -0
- alibabacloud_eiam20211201/models/_add_group_to_authorization_rule_response.py +54 -0
- alibabacloud_eiam20211201/models/_add_group_to_authorization_rule_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_add_user_to_authorization_rule_request.py +127 -0
- alibabacloud_eiam20211201/models/_add_user_to_authorization_rule_response.py +54 -0
- alibabacloud_eiam20211201/models/_add_user_to_authorization_rule_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_check_application_provisioning_user_primary_organizational_unit_request.py +58 -0
- alibabacloud_eiam20211201/models/_check_application_provisioning_user_primary_organizational_unit_response.py +54 -0
- alibabacloud_eiam20211201/models/_check_application_provisioning_user_primary_organizational_unit_response_body.py +90 -0
- alibabacloud_eiam20211201/models/_check_instance_for_delete_request.py +36 -0
- alibabacloud_eiam20211201/models/_check_instance_for_delete_response.py +54 -0
- alibabacloud_eiam20211201/models/_check_instance_for_delete_response_body.py +137 -0
- alibabacloud_eiam20211201/models/_check_instance_module_status_request.py +64 -0
- alibabacloud_eiam20211201/models/_check_instance_module_status_response.py +54 -0
- alibabacloud_eiam20211201/models/_check_instance_module_status_response_body.py +72 -0
- alibabacloud_eiam20211201/models/_create_application_client_secret_response_body.py +0 -2
- alibabacloud_eiam20211201/models/_create_authorization_resource_request.py +78 -0
- alibabacloud_eiam20211201/models/_create_authorization_resource_response.py +54 -0
- alibabacloud_eiam20211201/models/_create_authorization_resource_response_body.py +41 -0
- alibabacloud_eiam20211201/models/_create_authorization_rule_request.py +85 -0
- alibabacloud_eiam20211201/models/_create_authorization_rule_response.py +54 -0
- alibabacloud_eiam20211201/models/_create_authorization_rule_response_body.py +41 -0
- alibabacloud_eiam20211201/models/_create_custom_field_request.py +241 -0
- alibabacloud_eiam20211201/models/_create_custom_field_response.py +54 -0
- alibabacloud_eiam20211201/models/_create_custom_field_response_body.py +41 -0
- alibabacloud_eiam20211201/models/_create_instance_trial_license_request.py +36 -0
- alibabacloud_eiam20211201/models/_create_instance_trial_license_response.py +54 -0
- alibabacloud_eiam20211201/models/_create_instance_trial_license_response_body.py +41 -0
- alibabacloud_eiam20211201/models/_delete_authorization_resource_request.py +58 -0
- alibabacloud_eiam20211201/models/_delete_authorization_resource_response.py +54 -0
- alibabacloud_eiam20211201/models/_delete_authorization_resource_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_delete_authorization_rule_request.py +47 -0
- alibabacloud_eiam20211201/models/_delete_authorization_rule_response.py +54 -0
- alibabacloud_eiam20211201/models/_delete_authorization_rule_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_delete_custom_field_request.py +47 -0
- alibabacloud_eiam20211201/models/_delete_custom_field_response.py +54 -0
- alibabacloud_eiam20211201/models/_delete_custom_field_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_disable_authorization_rule_request.py +56 -0
- alibabacloud_eiam20211201/models/_disable_authorization_rule_response.py +54 -0
- alibabacloud_eiam20211201/models/_disable_authorization_rule_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_disable_custom_field_request.py +47 -0
- alibabacloud_eiam20211201/models/_disable_custom_field_response.py +54 -0
- alibabacloud_eiam20211201/models/_disable_custom_field_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_enable_authorization_rule_request.py +56 -0
- alibabacloud_eiam20211201/models/_enable_authorization_rule_response.py +54 -0
- alibabacloud_eiam20211201/models/_enable_authorization_rule_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_enable_custom_field_request.py +47 -0
- alibabacloud_eiam20211201/models/_enable_custom_field_response.py +54 -0
- alibabacloud_eiam20211201/models/_enable_custom_field_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_get_application_provisioning_user_primary_organizational_unit_request.py +47 -0
- alibabacloud_eiam20211201/models/_get_application_provisioning_user_primary_organizational_unit_response.py +54 -0
- alibabacloud_eiam20211201/models/_get_application_provisioning_user_primary_organizational_unit_response_body.py +41 -0
- alibabacloud_eiam20211201/models/_get_authorization_resource_request.py +58 -0
- alibabacloud_eiam20211201/models/_get_authorization_resource_response.py +54 -0
- alibabacloud_eiam20211201/models/_get_authorization_resource_response_body.py +117 -0
- alibabacloud_eiam20211201/models/_get_authorization_rule_request.py +47 -0
- alibabacloud_eiam20211201/models/_get_authorization_rule_response.py +54 -0
- alibabacloud_eiam20211201/models/_get_authorization_rule_response_body.py +153 -0
- alibabacloud_eiam20211201/models/_get_custom_field_request.py +47 -0
- alibabacloud_eiam20211201/models/_get_custom_field_response.py +54 -0
- alibabacloud_eiam20211201/models/_get_custom_field_response_body.py +302 -0
- alibabacloud_eiam20211201/models/_get_identity_provider_advanced_configuration_request.py +47 -0
- alibabacloud_eiam20211201/models/_get_identity_provider_advanced_configuration_response.py +54 -0
- alibabacloud_eiam20211201/models/_get_identity_provider_advanced_configuration_response_body.py +129 -0
- alibabacloud_eiam20211201/models/_get_identity_provider_status_check_job_request.py +58 -0
- alibabacloud_eiam20211201/models/_get_identity_provider_status_check_job_response.py +54 -0
- alibabacloud_eiam20211201/models/_get_identity_provider_status_check_job_response_body.py +248 -0
- alibabacloud_eiam20211201/models/_get_identity_provider_ud_push_configuration_request.py +47 -0
- alibabacloud_eiam20211201/models/_get_identity_provider_ud_push_configuration_response.py +54 -0
- alibabacloud_eiam20211201/models/_get_identity_provider_ud_push_configuration_response_body.py +278 -0
- alibabacloud_eiam20211201/models/_get_instance_control_configuration_request.py +36 -0
- alibabacloud_eiam20211201/models/_get_instance_control_configuration_response.py +54 -0
- alibabacloud_eiam20211201/models/_get_instance_control_configuration_response_body.py +156 -0
- alibabacloud_eiam20211201/models/_get_instance_globalization_config_request.py +36 -0
- alibabacloud_eiam20211201/models/_get_instance_globalization_config_response.py +54 -0
- alibabacloud_eiam20211201/models/_get_instance_globalization_config_response_body.py +81 -0
- alibabacloud_eiam20211201/models/_get_instance_module_info_request.py +47 -0
- alibabacloud_eiam20211201/models/_get_instance_module_info_response.py +54 -0
- alibabacloud_eiam20211201/models/_get_instance_module_info_response_body.py +137 -0
- alibabacloud_eiam20211201/models/_get_instance_quota_request.py +47 -0
- alibabacloud_eiam20211201/models/_get_instance_quota_response.py +54 -0
- alibabacloud_eiam20211201/models/_get_instance_quota_response_body.py +81 -0
- alibabacloud_eiam20211201/models/_get_instance_trial_status_request.py +36 -0
- alibabacloud_eiam20211201/models/_get_instance_trial_status_response.py +54 -0
- alibabacloud_eiam20211201/models/_get_instance_trial_status_response_body.py +41 -0
- alibabacloud_eiam20211201/models/_list_applications_for_authorization_rule_request.py +122 -0
- alibabacloud_eiam20211201/models/_list_applications_for_authorization_rule_response.py +54 -0
- alibabacloud_eiam20211201/models/_list_applications_for_authorization_rule_response_body.py +172 -0
- alibabacloud_eiam20211201/models/_list_authorization_resources_request.py +122 -0
- alibabacloud_eiam20211201/models/_list_authorization_resources_response.py +54 -0
- alibabacloud_eiam20211201/models/_list_authorization_resources_response_body.py +151 -0
- alibabacloud_eiam20211201/models/_list_authorization_rules_for_application_request.py +65 -0
- alibabacloud_eiam20211201/models/_list_authorization_rules_for_application_response.py +54 -0
- alibabacloud_eiam20211201/models/_list_authorization_rules_for_application_response_body.py +172 -0
- alibabacloud_eiam20211201/models/_list_authorization_rules_for_group_request.py +65 -0
- alibabacloud_eiam20211201/models/_list_authorization_rules_for_group_response.py +54 -0
- alibabacloud_eiam20211201/models/_list_authorization_rules_for_group_response_body.py +172 -0
- alibabacloud_eiam20211201/models/_list_authorization_rules_for_user_request.py +65 -0
- alibabacloud_eiam20211201/models/_list_authorization_rules_for_user_response.py +54 -0
- alibabacloud_eiam20211201/models/_list_authorization_rules_for_user_response_body.py +172 -0
- alibabacloud_eiam20211201/models/_list_authorization_rules_request.py +111 -0
- alibabacloud_eiam20211201/models/_list_authorization_rules_response.py +54 -0
- alibabacloud_eiam20211201/models/_list_authorization_rules_response_body.py +187 -0
- alibabacloud_eiam20211201/models/_list_groups_for_authorization_rule_request.py +122 -0
- alibabacloud_eiam20211201/models/_list_groups_for_authorization_rule_response.py +54 -0
- alibabacloud_eiam20211201/models/_list_groups_for_authorization_rule_response_body.py +172 -0
- alibabacloud_eiam20211201/models/_list_users_for_authorization_rule_request.py +122 -0
- alibabacloud_eiam20211201/models/_list_users_for_authorization_rule_response.py +54 -0
- alibabacloud_eiam20211201/models/_list_users_for_authorization_rule_response_body.py +172 -0
- alibabacloud_eiam20211201/models/_remove_application_from_authorization_rule_request.py +58 -0
- alibabacloud_eiam20211201/models/_remove_application_from_authorization_rule_response.py +54 -0
- alibabacloud_eiam20211201/models/_remove_application_from_authorization_rule_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_remove_group_from_authorization_rule_request.py +58 -0
- alibabacloud_eiam20211201/models/_remove_group_from_authorization_rule_response.py +54 -0
- alibabacloud_eiam20211201/models/_remove_group_from_authorization_rule_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_remove_user_from_authorization_rule_request.py +58 -0
- alibabacloud_eiam20211201/models/_remove_user_from_authorization_rule_response.py +54 -0
- alibabacloud_eiam20211201/models/_remove_user_from_authorization_rule_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_update_authorization_rule_application_attachment_request.py +127 -0
- alibabacloud_eiam20211201/models/_update_authorization_rule_application_attachment_response.py +54 -0
- alibabacloud_eiam20211201/models/_update_authorization_rule_application_attachment_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_update_authorization_rule_description_request.py +65 -0
- alibabacloud_eiam20211201/models/_update_authorization_rule_description_response.py +54 -0
- alibabacloud_eiam20211201/models/_update_authorization_rule_description_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_update_authorization_rule_group_attachment_request.py +127 -0
- alibabacloud_eiam20211201/models/_update_authorization_rule_group_attachment_response.py +54 -0
- alibabacloud_eiam20211201/models/_update_authorization_rule_group_attachment_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_update_authorization_rule_request.py +74 -0
- alibabacloud_eiam20211201/models/_update_authorization_rule_response.py +54 -0
- alibabacloud_eiam20211201/models/_update_authorization_rule_response_body.py +33 -0
- alibabacloud_eiam20211201/models/_update_authorization_rule_user_attachment_request.py +127 -0
- alibabacloud_eiam20211201/models/_update_authorization_rule_user_attachment_response.py +54 -0
- alibabacloud_eiam20211201/models/_update_authorization_rule_user_attachment_response_body.py +33 -0
- {alibabacloud_eiam20211201-2.9.0.dist-info → alibabacloud_eiam20211201-2.11.0.dist-info}/METADATA +1 -1
- {alibabacloud_eiam20211201-2.9.0.dist-info → alibabacloud_eiam20211201-2.11.0.dist-info}/RECORD +144 -9
- {alibabacloud_eiam20211201-2.9.0.dist-info → alibabacloud_eiam20211201-2.11.0.dist-info}/LICENSE +0 -0
- {alibabacloud_eiam20211201-2.9.0.dist-info → alibabacloud_eiam20211201-2.11.0.dist-info}/WHEEL +0 -0
- {alibabacloud_eiam20211201-2.9.0.dist-info → alibabacloud_eiam20211201-2.11.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,78 @@
|
|
|
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 CreateAuthorizationResourceRequest(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
authorization_resource_entity_id: str = None,
|
|
11
|
+
authorization_resource_entity_type: str = None,
|
|
12
|
+
authorization_rule_id: str = None,
|
|
13
|
+
client_token: str = None,
|
|
14
|
+
instance_id: str = None,
|
|
15
|
+
):
|
|
16
|
+
# 授权资源关联的资源标识。
|
|
17
|
+
#
|
|
18
|
+
# This parameter is required.
|
|
19
|
+
self.authorization_resource_entity_id = authorization_resource_entity_id
|
|
20
|
+
# 授权资源的资源类型。枚举取值:asset(资产)、credential(凭据)、cloudAccountRole(云账号角色)。
|
|
21
|
+
#
|
|
22
|
+
# This parameter is required.
|
|
23
|
+
self.authorization_resource_entity_type = authorization_resource_entity_type
|
|
24
|
+
# 授权规则标识。
|
|
25
|
+
#
|
|
26
|
+
# This parameter is required.
|
|
27
|
+
self.authorization_rule_id = authorization_rule_id
|
|
28
|
+
# This parameter is required.
|
|
29
|
+
self.client_token = client_token
|
|
30
|
+
# IDaaS EIAM实例的ID。
|
|
31
|
+
#
|
|
32
|
+
# This parameter is required.
|
|
33
|
+
self.instance_id = instance_id
|
|
34
|
+
|
|
35
|
+
def validate(self):
|
|
36
|
+
pass
|
|
37
|
+
|
|
38
|
+
def to_map(self):
|
|
39
|
+
result = dict()
|
|
40
|
+
_map = super().to_map()
|
|
41
|
+
if _map is not None:
|
|
42
|
+
result = _map
|
|
43
|
+
if self.authorization_resource_entity_id is not None:
|
|
44
|
+
result['AuthorizationResourceEntityId'] = self.authorization_resource_entity_id
|
|
45
|
+
|
|
46
|
+
if self.authorization_resource_entity_type is not None:
|
|
47
|
+
result['AuthorizationResourceEntityType'] = self.authorization_resource_entity_type
|
|
48
|
+
|
|
49
|
+
if self.authorization_rule_id is not None:
|
|
50
|
+
result['AuthorizationRuleId'] = self.authorization_rule_id
|
|
51
|
+
|
|
52
|
+
if self.client_token is not None:
|
|
53
|
+
result['ClientToken'] = self.client_token
|
|
54
|
+
|
|
55
|
+
if self.instance_id is not None:
|
|
56
|
+
result['InstanceId'] = self.instance_id
|
|
57
|
+
|
|
58
|
+
return result
|
|
59
|
+
|
|
60
|
+
def from_map(self, m: dict = None):
|
|
61
|
+
m = m or dict()
|
|
62
|
+
if m.get('AuthorizationResourceEntityId') is not None:
|
|
63
|
+
self.authorization_resource_entity_id = m.get('AuthorizationResourceEntityId')
|
|
64
|
+
|
|
65
|
+
if m.get('AuthorizationResourceEntityType') is not None:
|
|
66
|
+
self.authorization_resource_entity_type = m.get('AuthorizationResourceEntityType')
|
|
67
|
+
|
|
68
|
+
if m.get('AuthorizationRuleId') is not None:
|
|
69
|
+
self.authorization_rule_id = m.get('AuthorizationRuleId')
|
|
70
|
+
|
|
71
|
+
if m.get('ClientToken') is not None:
|
|
72
|
+
self.client_token = m.get('ClientToken')
|
|
73
|
+
|
|
74
|
+
if m.get('InstanceId') is not None:
|
|
75
|
+
self.instance_id = m.get('InstanceId')
|
|
76
|
+
|
|
77
|
+
return self
|
|
78
|
+
|
|
@@ -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 CreateAuthorizationResourceResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.CreateAuthorizationResourceResponseBody = 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.CreateAuthorizationResourceResponseBody()
|
|
51
|
+
self.body = temp_model.from_map(m.get('body'))
|
|
52
|
+
|
|
53
|
+
return self
|
|
54
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
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 CreateAuthorizationResourceResponseBody(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
authorization_resource_id: str = None,
|
|
11
|
+
request_id: str = None,
|
|
12
|
+
):
|
|
13
|
+
self.authorization_resource_id = authorization_resource_id
|
|
14
|
+
self.request_id = request_id
|
|
15
|
+
|
|
16
|
+
def validate(self):
|
|
17
|
+
pass
|
|
18
|
+
|
|
19
|
+
def to_map(self):
|
|
20
|
+
result = dict()
|
|
21
|
+
_map = super().to_map()
|
|
22
|
+
if _map is not None:
|
|
23
|
+
result = _map
|
|
24
|
+
if self.authorization_resource_id is not None:
|
|
25
|
+
result['AuthorizationResourceId'] = self.authorization_resource_id
|
|
26
|
+
|
|
27
|
+
if self.request_id is not None:
|
|
28
|
+
result['RequestId'] = self.request_id
|
|
29
|
+
|
|
30
|
+
return result
|
|
31
|
+
|
|
32
|
+
def from_map(self, m: dict = None):
|
|
33
|
+
m = m or dict()
|
|
34
|
+
if m.get('AuthorizationResourceId') is not None:
|
|
35
|
+
self.authorization_resource_id = m.get('AuthorizationResourceId')
|
|
36
|
+
|
|
37
|
+
if m.get('RequestId') is not None:
|
|
38
|
+
self.request_id = m.get('RequestId')
|
|
39
|
+
|
|
40
|
+
return self
|
|
41
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
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 CreateAuthorizationRuleRequest(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
authorization_resource_scope: str = None,
|
|
11
|
+
authorization_rule_name: str = None,
|
|
12
|
+
client_token: str = None,
|
|
13
|
+
description: str = None,
|
|
14
|
+
instance_id: str = None,
|
|
15
|
+
project_id: str = None,
|
|
16
|
+
):
|
|
17
|
+
# 授权资源范围,枚举值:global(Project下的所有资源)、custom(自定义资源范围)。
|
|
18
|
+
self.authorization_resource_scope = authorization_resource_scope
|
|
19
|
+
# 授权规则名称,长度限制最大64个字符。
|
|
20
|
+
#
|
|
21
|
+
# This parameter is required.
|
|
22
|
+
self.authorization_rule_name = authorization_rule_name
|
|
23
|
+
# This parameter is required.
|
|
24
|
+
self.client_token = client_token
|
|
25
|
+
# 授权规则备注描述,长度限制最大128个字符。
|
|
26
|
+
self.description = description
|
|
27
|
+
# IDaaS EIAM实例的ID。
|
|
28
|
+
#
|
|
29
|
+
# This parameter is required.
|
|
30
|
+
self.instance_id = instance_id
|
|
31
|
+
# 授权规则关联的项目标识。
|
|
32
|
+
#
|
|
33
|
+
# This parameter is required.
|
|
34
|
+
self.project_id = project_id
|
|
35
|
+
|
|
36
|
+
def validate(self):
|
|
37
|
+
pass
|
|
38
|
+
|
|
39
|
+
def to_map(self):
|
|
40
|
+
result = dict()
|
|
41
|
+
_map = super().to_map()
|
|
42
|
+
if _map is not None:
|
|
43
|
+
result = _map
|
|
44
|
+
if self.authorization_resource_scope is not None:
|
|
45
|
+
result['AuthorizationResourceScope'] = self.authorization_resource_scope
|
|
46
|
+
|
|
47
|
+
if self.authorization_rule_name is not None:
|
|
48
|
+
result['AuthorizationRuleName'] = self.authorization_rule_name
|
|
49
|
+
|
|
50
|
+
if self.client_token is not None:
|
|
51
|
+
result['ClientToken'] = self.client_token
|
|
52
|
+
|
|
53
|
+
if self.description is not None:
|
|
54
|
+
result['Description'] = self.description
|
|
55
|
+
|
|
56
|
+
if self.instance_id is not None:
|
|
57
|
+
result['InstanceId'] = self.instance_id
|
|
58
|
+
|
|
59
|
+
if self.project_id is not None:
|
|
60
|
+
result['ProjectId'] = self.project_id
|
|
61
|
+
|
|
62
|
+
return result
|
|
63
|
+
|
|
64
|
+
def from_map(self, m: dict = None):
|
|
65
|
+
m = m or dict()
|
|
66
|
+
if m.get('AuthorizationResourceScope') is not None:
|
|
67
|
+
self.authorization_resource_scope = m.get('AuthorizationResourceScope')
|
|
68
|
+
|
|
69
|
+
if m.get('AuthorizationRuleName') is not None:
|
|
70
|
+
self.authorization_rule_name = m.get('AuthorizationRuleName')
|
|
71
|
+
|
|
72
|
+
if m.get('ClientToken') is not None:
|
|
73
|
+
self.client_token = m.get('ClientToken')
|
|
74
|
+
|
|
75
|
+
if m.get('Description') is not None:
|
|
76
|
+
self.description = m.get('Description')
|
|
77
|
+
|
|
78
|
+
if m.get('InstanceId') is not None:
|
|
79
|
+
self.instance_id = m.get('InstanceId')
|
|
80
|
+
|
|
81
|
+
if m.get('ProjectId') is not None:
|
|
82
|
+
self.project_id = m.get('ProjectId')
|
|
83
|
+
|
|
84
|
+
return self
|
|
85
|
+
|
|
@@ -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 CreateAuthorizationRuleResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.CreateAuthorizationRuleResponseBody = 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.CreateAuthorizationRuleResponseBody()
|
|
51
|
+
self.body = temp_model.from_map(m.get('body'))
|
|
52
|
+
|
|
53
|
+
return self
|
|
54
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
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 CreateAuthorizationRuleResponseBody(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
authorization_rule_id: str = None,
|
|
11
|
+
request_id: str = None,
|
|
12
|
+
):
|
|
13
|
+
self.authorization_rule_id = authorization_rule_id
|
|
14
|
+
self.request_id = request_id
|
|
15
|
+
|
|
16
|
+
def validate(self):
|
|
17
|
+
pass
|
|
18
|
+
|
|
19
|
+
def to_map(self):
|
|
20
|
+
result = dict()
|
|
21
|
+
_map = super().to_map()
|
|
22
|
+
if _map is not None:
|
|
23
|
+
result = _map
|
|
24
|
+
if self.authorization_rule_id is not None:
|
|
25
|
+
result['AuthorizationRuleId'] = self.authorization_rule_id
|
|
26
|
+
|
|
27
|
+
if self.request_id is not None:
|
|
28
|
+
result['RequestId'] = self.request_id
|
|
29
|
+
|
|
30
|
+
return result
|
|
31
|
+
|
|
32
|
+
def from_map(self, m: dict = None):
|
|
33
|
+
m = m or dict()
|
|
34
|
+
if m.get('AuthorizationRuleId') is not None:
|
|
35
|
+
self.authorization_rule_id = m.get('AuthorizationRuleId')
|
|
36
|
+
|
|
37
|
+
if m.get('RequestId') is not None:
|
|
38
|
+
self.request_id = m.get('RequestId')
|
|
39
|
+
|
|
40
|
+
return self
|
|
41
|
+
|
|
@@ -0,0 +1,241 @@
|
|
|
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 CreateCustomFieldRequest(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
default_value: str = None,
|
|
14
|
+
description: str = None,
|
|
15
|
+
encrypted: bool = None,
|
|
16
|
+
entity_type: str = None,
|
|
17
|
+
field_data_config: main_models.CreateCustomFieldRequestFieldDataConfig = None,
|
|
18
|
+
field_data_type: str = None,
|
|
19
|
+
field_display_name: str = None,
|
|
20
|
+
field_display_type: str = None,
|
|
21
|
+
field_name: str = None,
|
|
22
|
+
instance_id: str = None,
|
|
23
|
+
required: bool = None,
|
|
24
|
+
unique: bool = None,
|
|
25
|
+
user_permission: str = None,
|
|
26
|
+
):
|
|
27
|
+
# 字段默认值,必须与数据类型一致
|
|
28
|
+
self.default_value = default_value
|
|
29
|
+
# 对字段的描述信息
|
|
30
|
+
self.description = description
|
|
31
|
+
# 是否加密,默认false
|
|
32
|
+
self.encrypted = encrypted
|
|
33
|
+
# 字段归属实体。实体包括账户、组、组织
|
|
34
|
+
#
|
|
35
|
+
# This parameter is required.
|
|
36
|
+
self.entity_type = entity_type
|
|
37
|
+
# 字段值配置项,必须与数据类型一致
|
|
38
|
+
self.field_data_config = field_data_config
|
|
39
|
+
# 数据类型,枚举值:string、number、boolean
|
|
40
|
+
#
|
|
41
|
+
# This parameter is required.
|
|
42
|
+
self.field_data_type = field_data_type
|
|
43
|
+
# 字段展示名,长度不超过128字符
|
|
44
|
+
#
|
|
45
|
+
# This parameter is required.
|
|
46
|
+
self.field_display_name = field_display_name
|
|
47
|
+
# 字段展示类型,枚举值,select、checkbox、input
|
|
48
|
+
#
|
|
49
|
+
# This parameter is required.
|
|
50
|
+
self.field_display_type = field_display_type
|
|
51
|
+
# 字段标识,英文字母、下划线
|
|
52
|
+
#
|
|
53
|
+
# This parameter is required.
|
|
54
|
+
self.field_name = field_name
|
|
55
|
+
# IDaaS EIAM实例的ID。
|
|
56
|
+
#
|
|
57
|
+
# This parameter is required.
|
|
58
|
+
self.instance_id = instance_id
|
|
59
|
+
# 是否必填,默认false
|
|
60
|
+
self.required = required
|
|
61
|
+
# 是否唯一,默认false
|
|
62
|
+
self.unique = unique
|
|
63
|
+
# 用户端(portal侧)权限,hide、read_only、read_write,默认read_only
|
|
64
|
+
self.user_permission = user_permission
|
|
65
|
+
|
|
66
|
+
def validate(self):
|
|
67
|
+
if self.field_data_config:
|
|
68
|
+
self.field_data_config.validate()
|
|
69
|
+
|
|
70
|
+
def to_map(self):
|
|
71
|
+
result = dict()
|
|
72
|
+
_map = super().to_map()
|
|
73
|
+
if _map is not None:
|
|
74
|
+
result = _map
|
|
75
|
+
if self.default_value is not None:
|
|
76
|
+
result['DefaultValue'] = self.default_value
|
|
77
|
+
|
|
78
|
+
if self.description is not None:
|
|
79
|
+
result['Description'] = self.description
|
|
80
|
+
|
|
81
|
+
if self.encrypted is not None:
|
|
82
|
+
result['Encrypted'] = self.encrypted
|
|
83
|
+
|
|
84
|
+
if self.entity_type is not None:
|
|
85
|
+
result['EntityType'] = self.entity_type
|
|
86
|
+
|
|
87
|
+
if self.field_data_config is not None:
|
|
88
|
+
result['FieldDataConfig'] = self.field_data_config.to_map()
|
|
89
|
+
|
|
90
|
+
if self.field_data_type is not None:
|
|
91
|
+
result['FieldDataType'] = self.field_data_type
|
|
92
|
+
|
|
93
|
+
if self.field_display_name is not None:
|
|
94
|
+
result['FieldDisplayName'] = self.field_display_name
|
|
95
|
+
|
|
96
|
+
if self.field_display_type is not None:
|
|
97
|
+
result['FieldDisplayType'] = self.field_display_type
|
|
98
|
+
|
|
99
|
+
if self.field_name is not None:
|
|
100
|
+
result['FieldName'] = self.field_name
|
|
101
|
+
|
|
102
|
+
if self.instance_id is not None:
|
|
103
|
+
result['InstanceId'] = self.instance_id
|
|
104
|
+
|
|
105
|
+
if self.required is not None:
|
|
106
|
+
result['Required'] = self.required
|
|
107
|
+
|
|
108
|
+
if self.unique is not None:
|
|
109
|
+
result['Unique'] = self.unique
|
|
110
|
+
|
|
111
|
+
if self.user_permission is not None:
|
|
112
|
+
result['UserPermission'] = self.user_permission
|
|
113
|
+
|
|
114
|
+
return result
|
|
115
|
+
|
|
116
|
+
def from_map(self, m: dict = None):
|
|
117
|
+
m = m or dict()
|
|
118
|
+
if m.get('DefaultValue') is not None:
|
|
119
|
+
self.default_value = m.get('DefaultValue')
|
|
120
|
+
|
|
121
|
+
if m.get('Description') is not None:
|
|
122
|
+
self.description = m.get('Description')
|
|
123
|
+
|
|
124
|
+
if m.get('Encrypted') is not None:
|
|
125
|
+
self.encrypted = m.get('Encrypted')
|
|
126
|
+
|
|
127
|
+
if m.get('EntityType') is not None:
|
|
128
|
+
self.entity_type = m.get('EntityType')
|
|
129
|
+
|
|
130
|
+
if m.get('FieldDataConfig') is not None:
|
|
131
|
+
temp_model = main_models.CreateCustomFieldRequestFieldDataConfig()
|
|
132
|
+
self.field_data_config = temp_model.from_map(m.get('FieldDataConfig'))
|
|
133
|
+
|
|
134
|
+
if m.get('FieldDataType') is not None:
|
|
135
|
+
self.field_data_type = m.get('FieldDataType')
|
|
136
|
+
|
|
137
|
+
if m.get('FieldDisplayName') is not None:
|
|
138
|
+
self.field_display_name = m.get('FieldDisplayName')
|
|
139
|
+
|
|
140
|
+
if m.get('FieldDisplayType') is not None:
|
|
141
|
+
self.field_display_type = m.get('FieldDisplayType')
|
|
142
|
+
|
|
143
|
+
if m.get('FieldName') is not None:
|
|
144
|
+
self.field_name = m.get('FieldName')
|
|
145
|
+
|
|
146
|
+
if m.get('InstanceId') is not None:
|
|
147
|
+
self.instance_id = m.get('InstanceId')
|
|
148
|
+
|
|
149
|
+
if m.get('Required') is not None:
|
|
150
|
+
self.required = m.get('Required')
|
|
151
|
+
|
|
152
|
+
if m.get('Unique') is not None:
|
|
153
|
+
self.unique = m.get('Unique')
|
|
154
|
+
|
|
155
|
+
if m.get('UserPermission') is not None:
|
|
156
|
+
self.user_permission = m.get('UserPermission')
|
|
157
|
+
|
|
158
|
+
return self
|
|
159
|
+
|
|
160
|
+
class CreateCustomFieldRequestFieldDataConfig(DaraModel):
|
|
161
|
+
def __init__(
|
|
162
|
+
self,
|
|
163
|
+
items: List[main_models.CreateCustomFieldRequestFieldDataConfigItems] = None,
|
|
164
|
+
):
|
|
165
|
+
# 字段值配置项,必须与数据类型一致,只能新增数据项,不可删除,项字段:displayName、value、status
|
|
166
|
+
self.items = items
|
|
167
|
+
|
|
168
|
+
def validate(self):
|
|
169
|
+
if self.items:
|
|
170
|
+
for v1 in self.items:
|
|
171
|
+
if v1:
|
|
172
|
+
v1.validate()
|
|
173
|
+
|
|
174
|
+
def to_map(self):
|
|
175
|
+
result = dict()
|
|
176
|
+
_map = super().to_map()
|
|
177
|
+
if _map is not None:
|
|
178
|
+
result = _map
|
|
179
|
+
result['Items'] = []
|
|
180
|
+
if self.items is not None:
|
|
181
|
+
for k1 in self.items:
|
|
182
|
+
result['Items'].append(k1.to_map() if k1 else None)
|
|
183
|
+
|
|
184
|
+
return result
|
|
185
|
+
|
|
186
|
+
def from_map(self, m: dict = None):
|
|
187
|
+
m = m or dict()
|
|
188
|
+
self.items = []
|
|
189
|
+
if m.get('Items') is not None:
|
|
190
|
+
for k1 in m.get('Items'):
|
|
191
|
+
temp_model = main_models.CreateCustomFieldRequestFieldDataConfigItems()
|
|
192
|
+
self.items.append(temp_model.from_map(k1))
|
|
193
|
+
|
|
194
|
+
return self
|
|
195
|
+
|
|
196
|
+
class CreateCustomFieldRequestFieldDataConfigItems(DaraModel):
|
|
197
|
+
def __init__(
|
|
198
|
+
self,
|
|
199
|
+
display_name: str = None,
|
|
200
|
+
status: str = None,
|
|
201
|
+
value: str = None,
|
|
202
|
+
):
|
|
203
|
+
# 配置项展示名
|
|
204
|
+
self.display_name = display_name
|
|
205
|
+
# 配置项状态,枚举值,enabled、disabled
|
|
206
|
+
self.status = status
|
|
207
|
+
# 配置项展示值
|
|
208
|
+
self.value = value
|
|
209
|
+
|
|
210
|
+
def validate(self):
|
|
211
|
+
pass
|
|
212
|
+
|
|
213
|
+
def to_map(self):
|
|
214
|
+
result = dict()
|
|
215
|
+
_map = super().to_map()
|
|
216
|
+
if _map is not None:
|
|
217
|
+
result = _map
|
|
218
|
+
if self.display_name is not None:
|
|
219
|
+
result['DisplayName'] = self.display_name
|
|
220
|
+
|
|
221
|
+
if self.status is not None:
|
|
222
|
+
result['Status'] = self.status
|
|
223
|
+
|
|
224
|
+
if self.value is not None:
|
|
225
|
+
result['Value'] = self.value
|
|
226
|
+
|
|
227
|
+
return result
|
|
228
|
+
|
|
229
|
+
def from_map(self, m: dict = None):
|
|
230
|
+
m = m or dict()
|
|
231
|
+
if m.get('DisplayName') is not None:
|
|
232
|
+
self.display_name = m.get('DisplayName')
|
|
233
|
+
|
|
234
|
+
if m.get('Status') is not None:
|
|
235
|
+
self.status = m.get('Status')
|
|
236
|
+
|
|
237
|
+
if m.get('Value') is not None:
|
|
238
|
+
self.value = m.get('Value')
|
|
239
|
+
|
|
240
|
+
return self
|
|
241
|
+
|
|
@@ -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 CreateCustomFieldResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.CreateCustomFieldResponseBody = 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.CreateCustomFieldResponseBody()
|
|
51
|
+
self.body = temp_model.from_map(m.get('body'))
|
|
52
|
+
|
|
53
|
+
return self
|
|
54
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
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 CreateCustomFieldResponseBody(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
field_id: str = None,
|
|
11
|
+
request_id: str = None,
|
|
12
|
+
):
|
|
13
|
+
self.field_id = field_id
|
|
14
|
+
self.request_id = request_id
|
|
15
|
+
|
|
16
|
+
def validate(self):
|
|
17
|
+
pass
|
|
18
|
+
|
|
19
|
+
def to_map(self):
|
|
20
|
+
result = dict()
|
|
21
|
+
_map = super().to_map()
|
|
22
|
+
if _map is not None:
|
|
23
|
+
result = _map
|
|
24
|
+
if self.field_id is not None:
|
|
25
|
+
result['FieldId'] = self.field_id
|
|
26
|
+
|
|
27
|
+
if self.request_id is not None:
|
|
28
|
+
result['RequestId'] = self.request_id
|
|
29
|
+
|
|
30
|
+
return result
|
|
31
|
+
|
|
32
|
+
def from_map(self, m: dict = None):
|
|
33
|
+
m = m or dict()
|
|
34
|
+
if m.get('FieldId') is not None:
|
|
35
|
+
self.field_id = m.get('FieldId')
|
|
36
|
+
|
|
37
|
+
if m.get('RequestId') is not None:
|
|
38
|
+
self.request_id = m.get('RequestId')
|
|
39
|
+
|
|
40
|
+
return self
|
|
41
|
+
|