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,172 @@
|
|
|
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 ListGroupsForAuthorizationRuleResponseBody(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
groups: List[main_models.ListGroupsForAuthorizationRuleResponseBodyGroups] = None,
|
|
14
|
+
max_results: int = None,
|
|
15
|
+
next_token: str = None,
|
|
16
|
+
request_id: str = None,
|
|
17
|
+
total_count: int = None,
|
|
18
|
+
):
|
|
19
|
+
self.groups = groups
|
|
20
|
+
# 分页查询时每页行数。
|
|
21
|
+
self.max_results = max_results
|
|
22
|
+
# 本次调用返回的查询凭证(Token)值,用于下一次翻页查询。
|
|
23
|
+
self.next_token = next_token
|
|
24
|
+
self.request_id = request_id
|
|
25
|
+
self.total_count = total_count
|
|
26
|
+
|
|
27
|
+
def validate(self):
|
|
28
|
+
if self.groups:
|
|
29
|
+
for v1 in self.groups:
|
|
30
|
+
if v1:
|
|
31
|
+
v1.validate()
|
|
32
|
+
|
|
33
|
+
def to_map(self):
|
|
34
|
+
result = dict()
|
|
35
|
+
_map = super().to_map()
|
|
36
|
+
if _map is not None:
|
|
37
|
+
result = _map
|
|
38
|
+
result['Groups'] = []
|
|
39
|
+
if self.groups is not None:
|
|
40
|
+
for k1 in self.groups:
|
|
41
|
+
result['Groups'].append(k1.to_map() if k1 else None)
|
|
42
|
+
|
|
43
|
+
if self.max_results is not None:
|
|
44
|
+
result['MaxResults'] = self.max_results
|
|
45
|
+
|
|
46
|
+
if self.next_token is not None:
|
|
47
|
+
result['NextToken'] = self.next_token
|
|
48
|
+
|
|
49
|
+
if self.request_id is not None:
|
|
50
|
+
result['RequestId'] = self.request_id
|
|
51
|
+
|
|
52
|
+
if self.total_count is not None:
|
|
53
|
+
result['TotalCount'] = self.total_count
|
|
54
|
+
|
|
55
|
+
return result
|
|
56
|
+
|
|
57
|
+
def from_map(self, m: dict = None):
|
|
58
|
+
m = m or dict()
|
|
59
|
+
self.groups = []
|
|
60
|
+
if m.get('Groups') is not None:
|
|
61
|
+
for k1 in m.get('Groups'):
|
|
62
|
+
temp_model = main_models.ListGroupsForAuthorizationRuleResponseBodyGroups()
|
|
63
|
+
self.groups.append(temp_model.from_map(k1))
|
|
64
|
+
|
|
65
|
+
if m.get('MaxResults') is not None:
|
|
66
|
+
self.max_results = m.get('MaxResults')
|
|
67
|
+
|
|
68
|
+
if m.get('NextToken') is not None:
|
|
69
|
+
self.next_token = m.get('NextToken')
|
|
70
|
+
|
|
71
|
+
if m.get('RequestId') is not None:
|
|
72
|
+
self.request_id = m.get('RequestId')
|
|
73
|
+
|
|
74
|
+
if m.get('TotalCount') is not None:
|
|
75
|
+
self.total_count = m.get('TotalCount')
|
|
76
|
+
|
|
77
|
+
return self
|
|
78
|
+
|
|
79
|
+
class ListGroupsForAuthorizationRuleResponseBodyGroups(DaraModel):
|
|
80
|
+
def __init__(
|
|
81
|
+
self,
|
|
82
|
+
group_id: str = None,
|
|
83
|
+
instance_id: str = None,
|
|
84
|
+
validity_period: main_models.ListGroupsForAuthorizationRuleResponseBodyGroupsValidityPeriod = None,
|
|
85
|
+
validity_type: str = None,
|
|
86
|
+
):
|
|
87
|
+
# 组标识。
|
|
88
|
+
self.group_id = group_id
|
|
89
|
+
# 实例ID。
|
|
90
|
+
self.instance_id = instance_id
|
|
91
|
+
# 有效周期。
|
|
92
|
+
self.validity_period = validity_period
|
|
93
|
+
# 有效期类型,枚举值:permanent(永久),time_bound(自定义时间范围)。
|
|
94
|
+
self.validity_type = validity_type
|
|
95
|
+
|
|
96
|
+
def validate(self):
|
|
97
|
+
if self.validity_period:
|
|
98
|
+
self.validity_period.validate()
|
|
99
|
+
|
|
100
|
+
def to_map(self):
|
|
101
|
+
result = dict()
|
|
102
|
+
_map = super().to_map()
|
|
103
|
+
if _map is not None:
|
|
104
|
+
result = _map
|
|
105
|
+
if self.group_id is not None:
|
|
106
|
+
result['GroupId'] = self.group_id
|
|
107
|
+
|
|
108
|
+
if self.instance_id is not None:
|
|
109
|
+
result['InstanceId'] = self.instance_id
|
|
110
|
+
|
|
111
|
+
if self.validity_period is not None:
|
|
112
|
+
result['ValidityPeriod'] = self.validity_period.to_map()
|
|
113
|
+
|
|
114
|
+
if self.validity_type is not None:
|
|
115
|
+
result['ValidityType'] = self.validity_type
|
|
116
|
+
|
|
117
|
+
return result
|
|
118
|
+
|
|
119
|
+
def from_map(self, m: dict = None):
|
|
120
|
+
m = m or dict()
|
|
121
|
+
if m.get('GroupId') is not None:
|
|
122
|
+
self.group_id = m.get('GroupId')
|
|
123
|
+
|
|
124
|
+
if m.get('InstanceId') is not None:
|
|
125
|
+
self.instance_id = m.get('InstanceId')
|
|
126
|
+
|
|
127
|
+
if m.get('ValidityPeriod') is not None:
|
|
128
|
+
temp_model = main_models.ListGroupsForAuthorizationRuleResponseBodyGroupsValidityPeriod()
|
|
129
|
+
self.validity_period = temp_model.from_map(m.get('ValidityPeriod'))
|
|
130
|
+
|
|
131
|
+
if m.get('ValidityType') is not None:
|
|
132
|
+
self.validity_type = m.get('ValidityType')
|
|
133
|
+
|
|
134
|
+
return self
|
|
135
|
+
|
|
136
|
+
class ListGroupsForAuthorizationRuleResponseBodyGroupsValidityPeriod(DaraModel):
|
|
137
|
+
def __init__(
|
|
138
|
+
self,
|
|
139
|
+
end_time: int = None,
|
|
140
|
+
start_time: int = None,
|
|
141
|
+
):
|
|
142
|
+
# 授权生效结束时间。
|
|
143
|
+
self.end_time = end_time
|
|
144
|
+
# 授权生效开始时间。
|
|
145
|
+
self.start_time = start_time
|
|
146
|
+
|
|
147
|
+
def validate(self):
|
|
148
|
+
pass
|
|
149
|
+
|
|
150
|
+
def to_map(self):
|
|
151
|
+
result = dict()
|
|
152
|
+
_map = super().to_map()
|
|
153
|
+
if _map is not None:
|
|
154
|
+
result = _map
|
|
155
|
+
if self.end_time is not None:
|
|
156
|
+
result['EndTime'] = self.end_time
|
|
157
|
+
|
|
158
|
+
if self.start_time is not None:
|
|
159
|
+
result['StartTime'] = self.start_time
|
|
160
|
+
|
|
161
|
+
return result
|
|
162
|
+
|
|
163
|
+
def from_map(self, m: dict = None):
|
|
164
|
+
m = m or dict()
|
|
165
|
+
if m.get('EndTime') is not None:
|
|
166
|
+
self.end_time = m.get('EndTime')
|
|
167
|
+
|
|
168
|
+
if m.get('StartTime') is not None:
|
|
169
|
+
self.start_time = m.get('StartTime')
|
|
170
|
+
|
|
171
|
+
return self
|
|
172
|
+
|
|
@@ -0,0 +1,122 @@
|
|
|
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 ListUsersForAuthorizationRuleRequest(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
authorization_rule_id: str = None,
|
|
14
|
+
filter: List[main_models.ListUsersForAuthorizationRuleRequestFilter] = None,
|
|
15
|
+
instance_id: str = None,
|
|
16
|
+
max_results: int = None,
|
|
17
|
+
next_token: str = None,
|
|
18
|
+
):
|
|
19
|
+
# 授权规则标识。
|
|
20
|
+
#
|
|
21
|
+
# This parameter is required.
|
|
22
|
+
self.authorization_rule_id = authorization_rule_id
|
|
23
|
+
# 过滤条件
|
|
24
|
+
self.filter = filter
|
|
25
|
+
# IDaaS EIAM实例的ID。
|
|
26
|
+
#
|
|
27
|
+
# This parameter is required.
|
|
28
|
+
self.instance_id = instance_id
|
|
29
|
+
# 分页查询时每页行数。默认值为20,最大值为100。
|
|
30
|
+
self.max_results = max_results
|
|
31
|
+
# 查询凭证(Token),取值为上一次API调用返回的NextToken参数值。
|
|
32
|
+
self.next_token = next_token
|
|
33
|
+
|
|
34
|
+
def validate(self):
|
|
35
|
+
if self.filter:
|
|
36
|
+
for v1 in self.filter:
|
|
37
|
+
if v1:
|
|
38
|
+
v1.validate()
|
|
39
|
+
|
|
40
|
+
def to_map(self):
|
|
41
|
+
result = dict()
|
|
42
|
+
_map = super().to_map()
|
|
43
|
+
if _map is not None:
|
|
44
|
+
result = _map
|
|
45
|
+
if self.authorization_rule_id is not None:
|
|
46
|
+
result['AuthorizationRuleId'] = self.authorization_rule_id
|
|
47
|
+
|
|
48
|
+
result['Filter'] = []
|
|
49
|
+
if self.filter is not None:
|
|
50
|
+
for k1 in self.filter:
|
|
51
|
+
result['Filter'].append(k1.to_map() if k1 else None)
|
|
52
|
+
|
|
53
|
+
if self.instance_id is not None:
|
|
54
|
+
result['InstanceId'] = self.instance_id
|
|
55
|
+
|
|
56
|
+
if self.max_results is not None:
|
|
57
|
+
result['MaxResults'] = self.max_results
|
|
58
|
+
|
|
59
|
+
if self.next_token is not None:
|
|
60
|
+
result['NextToken'] = self.next_token
|
|
61
|
+
|
|
62
|
+
return result
|
|
63
|
+
|
|
64
|
+
def from_map(self, m: dict = None):
|
|
65
|
+
m = m or dict()
|
|
66
|
+
if m.get('AuthorizationRuleId') is not None:
|
|
67
|
+
self.authorization_rule_id = m.get('AuthorizationRuleId')
|
|
68
|
+
|
|
69
|
+
self.filter = []
|
|
70
|
+
if m.get('Filter') is not None:
|
|
71
|
+
for k1 in m.get('Filter'):
|
|
72
|
+
temp_model = main_models.ListUsersForAuthorizationRuleRequestFilter()
|
|
73
|
+
self.filter.append(temp_model.from_map(k1))
|
|
74
|
+
|
|
75
|
+
if m.get('InstanceId') is not None:
|
|
76
|
+
self.instance_id = m.get('InstanceId')
|
|
77
|
+
|
|
78
|
+
if m.get('MaxResults') is not None:
|
|
79
|
+
self.max_results = m.get('MaxResults')
|
|
80
|
+
|
|
81
|
+
if m.get('NextToken') is not None:
|
|
82
|
+
self.next_token = m.get('NextToken')
|
|
83
|
+
|
|
84
|
+
return self
|
|
85
|
+
|
|
86
|
+
class ListUsersForAuthorizationRuleRequestFilter(DaraModel):
|
|
87
|
+
def __init__(
|
|
88
|
+
self,
|
|
89
|
+
name: str = None,
|
|
90
|
+
value: List[str] = None,
|
|
91
|
+
):
|
|
92
|
+
# 过滤条件名称。
|
|
93
|
+
self.name = name
|
|
94
|
+
# 过滤条件值。
|
|
95
|
+
self.value = value
|
|
96
|
+
|
|
97
|
+
def validate(self):
|
|
98
|
+
pass
|
|
99
|
+
|
|
100
|
+
def to_map(self):
|
|
101
|
+
result = dict()
|
|
102
|
+
_map = super().to_map()
|
|
103
|
+
if _map is not None:
|
|
104
|
+
result = _map
|
|
105
|
+
if self.name is not None:
|
|
106
|
+
result['Name'] = self.name
|
|
107
|
+
|
|
108
|
+
if self.value is not None:
|
|
109
|
+
result['Value'] = self.value
|
|
110
|
+
|
|
111
|
+
return result
|
|
112
|
+
|
|
113
|
+
def from_map(self, m: dict = None):
|
|
114
|
+
m = m or dict()
|
|
115
|
+
if m.get('Name') is not None:
|
|
116
|
+
self.name = m.get('Name')
|
|
117
|
+
|
|
118
|
+
if m.get('Value') is not None:
|
|
119
|
+
self.value = m.get('Value')
|
|
120
|
+
|
|
121
|
+
return self
|
|
122
|
+
|
|
@@ -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 ListUsersForAuthorizationRuleResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.ListUsersForAuthorizationRuleResponseBody = 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.ListUsersForAuthorizationRuleResponseBody()
|
|
51
|
+
self.body = temp_model.from_map(m.get('body'))
|
|
52
|
+
|
|
53
|
+
return self
|
|
54
|
+
|
|
@@ -0,0 +1,172 @@
|
|
|
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 ListUsersForAuthorizationRuleResponseBody(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
max_results: int = None,
|
|
14
|
+
next_token: str = None,
|
|
15
|
+
request_id: str = None,
|
|
16
|
+
total_count: int = None,
|
|
17
|
+
users: List[main_models.ListUsersForAuthorizationRuleResponseBodyUsers] = None,
|
|
18
|
+
):
|
|
19
|
+
# 分页查询时每页行数。
|
|
20
|
+
self.max_results = max_results
|
|
21
|
+
# 本次调用返回的查询凭证(Token)值,用于下一次翻页查询。
|
|
22
|
+
self.next_token = next_token
|
|
23
|
+
self.request_id = request_id
|
|
24
|
+
self.total_count = total_count
|
|
25
|
+
self.users = users
|
|
26
|
+
|
|
27
|
+
def validate(self):
|
|
28
|
+
if self.users:
|
|
29
|
+
for v1 in self.users:
|
|
30
|
+
if v1:
|
|
31
|
+
v1.validate()
|
|
32
|
+
|
|
33
|
+
def to_map(self):
|
|
34
|
+
result = dict()
|
|
35
|
+
_map = super().to_map()
|
|
36
|
+
if _map is not None:
|
|
37
|
+
result = _map
|
|
38
|
+
if self.max_results is not None:
|
|
39
|
+
result['MaxResults'] = self.max_results
|
|
40
|
+
|
|
41
|
+
if self.next_token is not None:
|
|
42
|
+
result['NextToken'] = self.next_token
|
|
43
|
+
|
|
44
|
+
if self.request_id is not None:
|
|
45
|
+
result['RequestId'] = self.request_id
|
|
46
|
+
|
|
47
|
+
if self.total_count is not None:
|
|
48
|
+
result['TotalCount'] = self.total_count
|
|
49
|
+
|
|
50
|
+
result['Users'] = []
|
|
51
|
+
if self.users is not None:
|
|
52
|
+
for k1 in self.users:
|
|
53
|
+
result['Users'].append(k1.to_map() if k1 else None)
|
|
54
|
+
|
|
55
|
+
return result
|
|
56
|
+
|
|
57
|
+
def from_map(self, m: dict = None):
|
|
58
|
+
m = m or dict()
|
|
59
|
+
if m.get('MaxResults') is not None:
|
|
60
|
+
self.max_results = m.get('MaxResults')
|
|
61
|
+
|
|
62
|
+
if m.get('NextToken') is not None:
|
|
63
|
+
self.next_token = m.get('NextToken')
|
|
64
|
+
|
|
65
|
+
if m.get('RequestId') is not None:
|
|
66
|
+
self.request_id = m.get('RequestId')
|
|
67
|
+
|
|
68
|
+
if m.get('TotalCount') is not None:
|
|
69
|
+
self.total_count = m.get('TotalCount')
|
|
70
|
+
|
|
71
|
+
self.users = []
|
|
72
|
+
if m.get('Users') is not None:
|
|
73
|
+
for k1 in m.get('Users'):
|
|
74
|
+
temp_model = main_models.ListUsersForAuthorizationRuleResponseBodyUsers()
|
|
75
|
+
self.users.append(temp_model.from_map(k1))
|
|
76
|
+
|
|
77
|
+
return self
|
|
78
|
+
|
|
79
|
+
class ListUsersForAuthorizationRuleResponseBodyUsers(DaraModel):
|
|
80
|
+
def __init__(
|
|
81
|
+
self,
|
|
82
|
+
instance_id: str = None,
|
|
83
|
+
user_id: str = None,
|
|
84
|
+
validity_period: main_models.ListUsersForAuthorizationRuleResponseBodyUsersValidityPeriod = None,
|
|
85
|
+
validity_type: str = None,
|
|
86
|
+
):
|
|
87
|
+
# 实例ID。
|
|
88
|
+
self.instance_id = instance_id
|
|
89
|
+
# 账户标识。
|
|
90
|
+
self.user_id = user_id
|
|
91
|
+
# 有效周期。
|
|
92
|
+
self.validity_period = validity_period
|
|
93
|
+
# 有效期类型,枚举值:permanent(永久),time_bound(自定义时间范围)。
|
|
94
|
+
self.validity_type = validity_type
|
|
95
|
+
|
|
96
|
+
def validate(self):
|
|
97
|
+
if self.validity_period:
|
|
98
|
+
self.validity_period.validate()
|
|
99
|
+
|
|
100
|
+
def to_map(self):
|
|
101
|
+
result = dict()
|
|
102
|
+
_map = super().to_map()
|
|
103
|
+
if _map is not None:
|
|
104
|
+
result = _map
|
|
105
|
+
if self.instance_id is not None:
|
|
106
|
+
result['InstanceId'] = self.instance_id
|
|
107
|
+
|
|
108
|
+
if self.user_id is not None:
|
|
109
|
+
result['UserId'] = self.user_id
|
|
110
|
+
|
|
111
|
+
if self.validity_period is not None:
|
|
112
|
+
result['ValidityPeriod'] = self.validity_period.to_map()
|
|
113
|
+
|
|
114
|
+
if self.validity_type is not None:
|
|
115
|
+
result['ValidityType'] = self.validity_type
|
|
116
|
+
|
|
117
|
+
return result
|
|
118
|
+
|
|
119
|
+
def from_map(self, m: dict = None):
|
|
120
|
+
m = m or dict()
|
|
121
|
+
if m.get('InstanceId') is not None:
|
|
122
|
+
self.instance_id = m.get('InstanceId')
|
|
123
|
+
|
|
124
|
+
if m.get('UserId') is not None:
|
|
125
|
+
self.user_id = m.get('UserId')
|
|
126
|
+
|
|
127
|
+
if m.get('ValidityPeriod') is not None:
|
|
128
|
+
temp_model = main_models.ListUsersForAuthorizationRuleResponseBodyUsersValidityPeriod()
|
|
129
|
+
self.validity_period = temp_model.from_map(m.get('ValidityPeriod'))
|
|
130
|
+
|
|
131
|
+
if m.get('ValidityType') is not None:
|
|
132
|
+
self.validity_type = m.get('ValidityType')
|
|
133
|
+
|
|
134
|
+
return self
|
|
135
|
+
|
|
136
|
+
class ListUsersForAuthorizationRuleResponseBodyUsersValidityPeriod(DaraModel):
|
|
137
|
+
def __init__(
|
|
138
|
+
self,
|
|
139
|
+
end_time: int = None,
|
|
140
|
+
start_time: int = None,
|
|
141
|
+
):
|
|
142
|
+
# 授权生效结束时间。
|
|
143
|
+
self.end_time = end_time
|
|
144
|
+
# 授权生效开始时间。
|
|
145
|
+
self.start_time = start_time
|
|
146
|
+
|
|
147
|
+
def validate(self):
|
|
148
|
+
pass
|
|
149
|
+
|
|
150
|
+
def to_map(self):
|
|
151
|
+
result = dict()
|
|
152
|
+
_map = super().to_map()
|
|
153
|
+
if _map is not None:
|
|
154
|
+
result = _map
|
|
155
|
+
if self.end_time is not None:
|
|
156
|
+
result['EndTime'] = self.end_time
|
|
157
|
+
|
|
158
|
+
if self.start_time is not None:
|
|
159
|
+
result['StartTime'] = self.start_time
|
|
160
|
+
|
|
161
|
+
return result
|
|
162
|
+
|
|
163
|
+
def from_map(self, m: dict = None):
|
|
164
|
+
m = m or dict()
|
|
165
|
+
if m.get('EndTime') is not None:
|
|
166
|
+
self.end_time = m.get('EndTime')
|
|
167
|
+
|
|
168
|
+
if m.get('StartTime') is not None:
|
|
169
|
+
self.start_time = m.get('StartTime')
|
|
170
|
+
|
|
171
|
+
return self
|
|
172
|
+
|
|
@@ -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 RemoveApplicationFromAuthorizationRuleRequest(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
application_id: str = None,
|
|
11
|
+
authorization_rule_id: str = None,
|
|
12
|
+
instance_id: str = None,
|
|
13
|
+
):
|
|
14
|
+
# 应用 ID。
|
|
15
|
+
#
|
|
16
|
+
# This parameter is required.
|
|
17
|
+
self.application_id = application_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.application_id is not None:
|
|
36
|
+
result['ApplicationId'] = self.application_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('ApplicationId') is not None:
|
|
49
|
+
self.application_id = m.get('ApplicationId')
|
|
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 RemoveApplicationFromAuthorizationRuleResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.RemoveApplicationFromAuthorizationRuleResponseBody = 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.RemoveApplicationFromAuthorizationRuleResponseBody()
|
|
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 RemoveApplicationFromAuthorizationRuleResponseBody(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
|
+
|