alibabacloud-eiam20211201 2.9.0__py3-none-any.whl → 2.10.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 +4907 -2609
- alibabacloud_eiam20211201/models/__init__.py +216 -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/_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/_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/_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/_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/_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/_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.10.0.dist-info}/METADATA +1 -1
- {alibabacloud_eiam20211201-2.9.0.dist-info → alibabacloud_eiam20211201-2.10.0.dist-info}/RECORD +90 -9
- {alibabacloud_eiam20211201-2.9.0.dist-info → alibabacloud_eiam20211201-2.10.0.dist-info}/LICENSE +0 -0
- {alibabacloud_eiam20211201-2.9.0.dist-info → alibabacloud_eiam20211201-2.10.0.dist-info}/WHEEL +0 -0
- {alibabacloud_eiam20211201-2.9.0.dist-info → alibabacloud_eiam20211201-2.10.0.dist-info}/top_level.txt +0 -0
|
@@ -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,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 DeleteAuthorizationResourceRequest(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
authorization_resource_id: str = None,
|
|
11
|
+
authorization_rule_id: str = None,
|
|
12
|
+
instance_id: str = None,
|
|
13
|
+
):
|
|
14
|
+
# 授权资源标识。
|
|
15
|
+
#
|
|
16
|
+
# This parameter is required.
|
|
17
|
+
self.authorization_resource_id = authorization_resource_id
|
|
18
|
+
# 授权规则标识。
|
|
19
|
+
#
|
|
20
|
+
# This parameter is required.
|
|
21
|
+
self.authorization_rule_id = authorization_rule_id
|
|
22
|
+
# IDaaS EIAM实例的ID。
|
|
23
|
+
#
|
|
24
|
+
# This parameter is required.
|
|
25
|
+
self.instance_id = instance_id
|
|
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.authorization_resource_id is not None:
|
|
36
|
+
result['AuthorizationResourceId'] = self.authorization_resource_id
|
|
37
|
+
|
|
38
|
+
if self.authorization_rule_id is not None:
|
|
39
|
+
result['AuthorizationRuleId'] = self.authorization_rule_id
|
|
40
|
+
|
|
41
|
+
if self.instance_id is not None:
|
|
42
|
+
result['InstanceId'] = self.instance_id
|
|
43
|
+
|
|
44
|
+
return result
|
|
45
|
+
|
|
46
|
+
def from_map(self, m: dict = None):
|
|
47
|
+
m = m or dict()
|
|
48
|
+
if m.get('AuthorizationResourceId') is not None:
|
|
49
|
+
self.authorization_resource_id = m.get('AuthorizationResourceId')
|
|
50
|
+
|
|
51
|
+
if m.get('AuthorizationRuleId') is not None:
|
|
52
|
+
self.authorization_rule_id = m.get('AuthorizationRuleId')
|
|
53
|
+
|
|
54
|
+
if m.get('InstanceId') is not None:
|
|
55
|
+
self.instance_id = m.get('InstanceId')
|
|
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 DeleteAuthorizationResourceResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.DeleteAuthorizationResourceResponseBody = 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.DeleteAuthorizationResourceResponseBody()
|
|
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 DeleteAuthorizationResourceResponseBody(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,47 @@
|
|
|
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 DeleteAuthorizationRuleRequest(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
authorization_rule_id: str = None,
|
|
11
|
+
instance_id: str = None,
|
|
12
|
+
):
|
|
13
|
+
# 授权规则标识。
|
|
14
|
+
#
|
|
15
|
+
# This parameter is required.
|
|
16
|
+
self.authorization_rule_id = authorization_rule_id
|
|
17
|
+
# IDaaS EIAM实例的ID。
|
|
18
|
+
#
|
|
19
|
+
# This parameter is required.
|
|
20
|
+
self.instance_id = instance_id
|
|
21
|
+
|
|
22
|
+
def validate(self):
|
|
23
|
+
pass
|
|
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.authorization_rule_id is not None:
|
|
31
|
+
result['AuthorizationRuleId'] = self.authorization_rule_id
|
|
32
|
+
|
|
33
|
+
if self.instance_id is not None:
|
|
34
|
+
result['InstanceId'] = self.instance_id
|
|
35
|
+
|
|
36
|
+
return result
|
|
37
|
+
|
|
38
|
+
def from_map(self, m: dict = None):
|
|
39
|
+
m = m or dict()
|
|
40
|
+
if m.get('AuthorizationRuleId') is not None:
|
|
41
|
+
self.authorization_rule_id = m.get('AuthorizationRuleId')
|
|
42
|
+
|
|
43
|
+
if m.get('InstanceId') is not None:
|
|
44
|
+
self.instance_id = m.get('InstanceId')
|
|
45
|
+
|
|
46
|
+
return self
|
|
47
|
+
|
|
@@ -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 DeleteAuthorizationRuleResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.DeleteAuthorizationRuleResponseBody = 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.DeleteAuthorizationRuleResponseBody()
|
|
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 DeleteAuthorizationRuleResponseBody(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,56 @@
|
|
|
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 DisableAuthorizationRuleRequest(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
authorization_rule_id: str = None,
|
|
11
|
+
client_token: str = None,
|
|
12
|
+
instance_id: str = None,
|
|
13
|
+
):
|
|
14
|
+
# 授权规则标识。
|
|
15
|
+
#
|
|
16
|
+
# This parameter is required.
|
|
17
|
+
self.authorization_rule_id = authorization_rule_id
|
|
18
|
+
# This parameter is required.
|
|
19
|
+
self.client_token = client_token
|
|
20
|
+
# IDaaS EIAM实例的ID。
|
|
21
|
+
#
|
|
22
|
+
# This parameter is required.
|
|
23
|
+
self.instance_id = instance_id
|
|
24
|
+
|
|
25
|
+
def validate(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def to_map(self):
|
|
29
|
+
result = dict()
|
|
30
|
+
_map = super().to_map()
|
|
31
|
+
if _map is not None:
|
|
32
|
+
result = _map
|
|
33
|
+
if self.authorization_rule_id is not None:
|
|
34
|
+
result['AuthorizationRuleId'] = self.authorization_rule_id
|
|
35
|
+
|
|
36
|
+
if self.client_token is not None:
|
|
37
|
+
result['ClientToken'] = self.client_token
|
|
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
|
+
if m.get('AuthorizationRuleId') is not None:
|
|
47
|
+
self.authorization_rule_id = m.get('AuthorizationRuleId')
|
|
48
|
+
|
|
49
|
+
if m.get('ClientToken') is not None:
|
|
50
|
+
self.client_token = m.get('ClientToken')
|
|
51
|
+
|
|
52
|
+
if m.get('InstanceId') is not None:
|
|
53
|
+
self.instance_id = m.get('InstanceId')
|
|
54
|
+
|
|
55
|
+
return self
|
|
56
|
+
|
|
@@ -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 DisableAuthorizationRuleResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.DisableAuthorizationRuleResponseBody = 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.DisableAuthorizationRuleResponseBody()
|
|
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 DisableAuthorizationRuleResponseBody(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,56 @@
|
|
|
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 EnableAuthorizationRuleRequest(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
authorization_rule_id: str = None,
|
|
11
|
+
client_token: str = None,
|
|
12
|
+
instance_id: str = None,
|
|
13
|
+
):
|
|
14
|
+
# 授权规则标识。
|
|
15
|
+
#
|
|
16
|
+
# This parameter is required.
|
|
17
|
+
self.authorization_rule_id = authorization_rule_id
|
|
18
|
+
# This parameter is required.
|
|
19
|
+
self.client_token = client_token
|
|
20
|
+
# IDaaS EIAM实例的ID。
|
|
21
|
+
#
|
|
22
|
+
# This parameter is required.
|
|
23
|
+
self.instance_id = instance_id
|
|
24
|
+
|
|
25
|
+
def validate(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def to_map(self):
|
|
29
|
+
result = dict()
|
|
30
|
+
_map = super().to_map()
|
|
31
|
+
if _map is not None:
|
|
32
|
+
result = _map
|
|
33
|
+
if self.authorization_rule_id is not None:
|
|
34
|
+
result['AuthorizationRuleId'] = self.authorization_rule_id
|
|
35
|
+
|
|
36
|
+
if self.client_token is not None:
|
|
37
|
+
result['ClientToken'] = self.client_token
|
|
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
|
+
if m.get('AuthorizationRuleId') is not None:
|
|
47
|
+
self.authorization_rule_id = m.get('AuthorizationRuleId')
|
|
48
|
+
|
|
49
|
+
if m.get('ClientToken') is not None:
|
|
50
|
+
self.client_token = m.get('ClientToken')
|
|
51
|
+
|
|
52
|
+
if m.get('InstanceId') is not None:
|
|
53
|
+
self.instance_id = m.get('InstanceId')
|
|
54
|
+
|
|
55
|
+
return self
|
|
56
|
+
|