tencentcloud-sdk-nodejs-cam 4.0.474 → 4.0.476
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.
- package/CHANGELOG.md +233 -0
- package/SERVICE_CHANGELOG.md +559 -95
- package/package.json +1 -1
- package/products.md +26 -26
- package/src/services/cam/v20190116/cam_client.ts +534 -496
- package/src/services/cam/v20190116/cam_models.ts +133 -27
- package/tencentcloud/services/cam/v20190116/cam_client.d.ts +177 -164
- package/tencentcloud/services/cam/v20190116/cam_client.js +263 -244
- package/tencentcloud/services/cam/v20190116/cam_models.d.ts +117 -25
|
@@ -28,190 +28,209 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
28
28
|
super("cam.tencentcloudapi.com", "2019-01-16", clientConfig);
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* 添加子用户
|
|
32
32
|
*/
|
|
33
|
-
async
|
|
34
|
-
return this.request("
|
|
33
|
+
async AddUser(req, cb) {
|
|
34
|
+
return this.request("AddUser", req, cb);
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* 创建服务相关角色
|
|
38
38
|
*/
|
|
39
|
-
async
|
|
40
|
-
return this.request("
|
|
39
|
+
async CreateServiceLinkedRole(req, cb) {
|
|
40
|
+
return this.request("CreateServiceLinkedRole", req, cb);
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* 获取用户权限边界
|
|
44
44
|
*/
|
|
45
|
-
async
|
|
46
|
-
return this.request("
|
|
45
|
+
async GetUserPermissionBoundary(req, cb) {
|
|
46
|
+
return this.request("GetUserPermissionBoundary", req, cb);
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* 查询账户摘要
|
|
50
50
|
*/
|
|
51
|
-
async
|
|
52
|
-
return this.request("
|
|
51
|
+
async GetAccountSummary(req, cb) {
|
|
52
|
+
return this.request("GetAccountSummary", req, cb);
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* 删除角色权限边界
|
|
56
56
|
*/
|
|
57
|
-
async
|
|
58
|
-
return this.request("
|
|
57
|
+
async DeleteRolePermissionsBoundary(req, cb) {
|
|
58
|
+
return this.request("DeleteRolePermissionsBoundary", req, cb);
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* 本接口(ListAttachedGroupPolicies)可用于查询用户组关联的策略列表。
|
|
62
62
|
*/
|
|
63
|
-
async
|
|
64
|
-
return this.request("
|
|
63
|
+
async ListAttachedGroupPolicies(req, cb) {
|
|
64
|
+
return this.request("ListAttachedGroupPolicies", req, cb);
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* 验证自定义多因子Token
|
|
68
68
|
*/
|
|
69
|
-
async
|
|
70
|
-
return this.request("
|
|
69
|
+
async ConsumeCustomMFAToken(req, cb) {
|
|
70
|
+
return this.request("ConsumeCustomMFAToken", req, cb);
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* 更新子用户
|
|
74
74
|
*/
|
|
75
|
-
async
|
|
76
|
-
return this.request("
|
|
75
|
+
async UpdateUser(req, cb) {
|
|
76
|
+
return this.request("UpdateUser", req, cb);
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* 获取自定义多因子Token关联信息
|
|
80
80
|
*/
|
|
81
|
-
async
|
|
82
|
-
return this.request("
|
|
81
|
+
async GetCustomMFATokenInfo(req, cb) {
|
|
82
|
+
return this.request("GetCustomMFATokenInfo", req, cb);
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
85
|
+
* 查询子用户
|
|
86
86
|
*/
|
|
87
|
-
async
|
|
88
|
-
return this.request("
|
|
87
|
+
async GetUser(req, cb) {
|
|
88
|
+
return this.request("GetUser", req, cb);
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* 删除用户权限边界
|
|
92
92
|
*/
|
|
93
|
-
async
|
|
94
|
-
return this.request("
|
|
93
|
+
async DeleteUserPermissionsBoundary(req, cb) {
|
|
94
|
+
return this.request("DeleteUserPermissionsBoundary", req, cb);
|
|
95
95
|
}
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* 根据删除TaskId获取服务相关角色删除状态
|
|
98
98
|
*/
|
|
99
|
-
async
|
|
100
|
-
return this.request("
|
|
99
|
+
async GetServiceLinkedRoleDeletionStatus(req, cb) {
|
|
100
|
+
return this.request("GetServiceLinkedRoleDeletionStatus", req, cb);
|
|
101
101
|
}
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
103
|
+
* 查询用户OIDC配置
|
|
104
104
|
*/
|
|
105
|
-
async
|
|
106
|
-
return this.request("
|
|
105
|
+
async DescribeUserOIDCConfig(req, cb) {
|
|
106
|
+
return this.request("DescribeUserOIDCConfig", req, cb);
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
109
|
+
* 为CAM用户创建访问密钥
|
|
110
110
|
*/
|
|
111
|
-
async
|
|
112
|
-
return this.request("
|
|
111
|
+
async CreateAccessKey(req, cb) {
|
|
112
|
+
return this.request("CreateAccessKey", req, cb);
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
|
-
*
|
|
115
|
+
* 删除子用户
|
|
116
116
|
*/
|
|
117
|
-
async
|
|
118
|
-
return this.request("
|
|
117
|
+
async DeleteUser(req, cb) {
|
|
118
|
+
return this.request("DeleteUser", req, cb);
|
|
119
119
|
}
|
|
120
120
|
/**
|
|
121
|
-
*
|
|
121
|
+
* 本接口(UpdateRoleDescription)用于修改角色的描述信息。
|
|
122
122
|
*/
|
|
123
|
-
async
|
|
124
|
-
return this.request("
|
|
123
|
+
async UpdateRoleDescription(req, cb) {
|
|
124
|
+
return this.request("UpdateRoleDescription", req, cb);
|
|
125
125
|
}
|
|
126
126
|
/**
|
|
127
|
-
*
|
|
127
|
+
* 更新SAML身份提供商信息
|
|
128
128
|
*/
|
|
129
|
-
async
|
|
130
|
-
return this.request("
|
|
129
|
+
async UpdateSAMLProvider(req, cb) {
|
|
130
|
+
return this.request("UpdateSAMLProvider", req, cb);
|
|
131
131
|
}
|
|
132
132
|
/**
|
|
133
|
-
*
|
|
133
|
+
* 角色解绑标签。
|
|
134
134
|
*/
|
|
135
|
-
async
|
|
136
|
-
return this.request("
|
|
135
|
+
async UntagRole(req, cb) {
|
|
136
|
+
return this.request("UntagRole", req, cb);
|
|
137
137
|
}
|
|
138
138
|
/**
|
|
139
|
-
*
|
|
139
|
+
* 通过子用户UIN列表查询子用户
|
|
140
140
|
*/
|
|
141
|
-
async
|
|
142
|
-
return this.request("
|
|
141
|
+
async DescribeSubAccounts(req, cb) {
|
|
142
|
+
return this.request("DescribeSubAccounts", req, cb);
|
|
143
143
|
}
|
|
144
144
|
/**
|
|
145
|
-
*
|
|
145
|
+
* 从用户组删除用户
|
|
146
146
|
*/
|
|
147
|
-
async
|
|
148
|
-
return this.request("
|
|
147
|
+
async RemoveUserFromGroup(req, cb) {
|
|
148
|
+
return this.request("RemoveUserFromGroup", req, cb);
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
151
|
-
*
|
|
151
|
+
* 查询SAML身份提供商列表
|
|
152
152
|
*/
|
|
153
|
-
async
|
|
154
|
-
return this.request("
|
|
153
|
+
async ListSAMLProviders(req, cb) {
|
|
154
|
+
return this.request("ListSAMLProviders", req, cb);
|
|
155
155
|
}
|
|
156
156
|
/**
|
|
157
|
-
*
|
|
157
|
+
* 查询用户组关联的用户列表
|
|
158
158
|
*/
|
|
159
|
-
async
|
|
160
|
-
return this.request("
|
|
159
|
+
async ListUsersForGroup(req, cb) {
|
|
160
|
+
return this.request("ListUsersForGroup", req, cb);
|
|
161
161
|
}
|
|
162
162
|
/**
|
|
163
|
-
*
|
|
163
|
+
* 修改用户SAML配置
|
|
164
164
|
*/
|
|
165
|
-
async
|
|
166
|
-
return this.request("
|
|
165
|
+
async UpdateUserSAMLConfig(req, cb) {
|
|
166
|
+
return this.request("UpdateUserSAMLConfig", req, cb);
|
|
167
167
|
}
|
|
168
168
|
/**
|
|
169
|
-
*
|
|
169
|
+
* 创建用户OIDC配置。只能创建一个用户OIDC身份提供商,并且创建用户OIDC配置之后会自动关闭用户SAML SSO身份提供商。
|
|
170
170
|
*/
|
|
171
|
-
async
|
|
172
|
-
return this.request("
|
|
171
|
+
async CreateUserOIDCConfig(req, cb) {
|
|
172
|
+
return this.request("CreateUserOIDCConfig", req, cb);
|
|
173
173
|
}
|
|
174
174
|
/**
|
|
175
|
-
|
|
175
|
+
* 为CAM用户删除访问密钥。
|
|
176
|
+
此接口属于高风险操作,删除密钥后不可恢复,腾讯云将永久拒绝此密钥的所有请求,请谨慎使用。
|
|
177
|
+
*/
|
|
178
|
+
async DeleteAccessKey(req, cb) {
|
|
179
|
+
return this.request("DeleteAccessKey", req, cb);
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* 获取用户AppId
|
|
176
183
|
*/
|
|
177
|
-
async
|
|
178
|
-
return this.request("
|
|
184
|
+
async GetUserAppId(req, cb) {
|
|
185
|
+
return this.request("GetUserAppId", req, cb);
|
|
179
186
|
}
|
|
180
187
|
/**
|
|
181
|
-
*
|
|
188
|
+
* 设置角色权限边界
|
|
182
189
|
*/
|
|
183
|
-
async
|
|
184
|
-
return this.request("
|
|
190
|
+
async PutRolePermissionsBoundary(req, cb) {
|
|
191
|
+
return this.request("PutRolePermissionsBoundary", req, cb);
|
|
185
192
|
}
|
|
186
193
|
/**
|
|
187
|
-
*
|
|
194
|
+
* 删除服务相关角色
|
|
188
195
|
*/
|
|
189
|
-
async
|
|
190
|
-
return this.request("
|
|
196
|
+
async DeleteServiceLinkedRole(req, cb) {
|
|
197
|
+
return this.request("DeleteServiceLinkedRole", req, cb);
|
|
191
198
|
}
|
|
192
199
|
/**
|
|
193
|
-
*
|
|
200
|
+
* 拉取子用户
|
|
194
201
|
*/
|
|
195
|
-
async
|
|
196
|
-
return this.request("
|
|
202
|
+
async ListUsers(req, cb) {
|
|
203
|
+
return this.request("ListUsers", req, cb);
|
|
197
204
|
}
|
|
198
205
|
/**
|
|
199
|
-
*
|
|
206
|
+
* 查询用户SAML配置
|
|
200
207
|
*/
|
|
201
|
-
async
|
|
202
|
-
return this.request("
|
|
208
|
+
async DescribeUserSAMLConfig(req, cb) {
|
|
209
|
+
return this.request("DescribeUserSAMLConfig", req, cb);
|
|
203
210
|
}
|
|
204
211
|
/**
|
|
205
|
-
*
|
|
212
|
+
* 本接口(DetachRolePolicy)用于解除绑定角色的策略。
|
|
206
213
|
*/
|
|
207
|
-
async
|
|
208
|
-
return this.request("
|
|
214
|
+
async DetachRolePolicy(req, cb) {
|
|
215
|
+
return this.request("DetachRolePolicy", req, cb);
|
|
209
216
|
}
|
|
210
217
|
/**
|
|
211
|
-
*
|
|
218
|
+
* 本接口(DescribeRoleList)用于获取账号下的角色列表。
|
|
212
219
|
*/
|
|
213
|
-
async
|
|
214
|
-
return this.request("
|
|
220
|
+
async DescribeRoleList(req, cb) {
|
|
221
|
+
return this.request("DescribeRoleList", req, cb);
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* 创建SAML身份提供商
|
|
225
|
+
*/
|
|
226
|
+
async CreateSAMLProvider(req, cb) {
|
|
227
|
+
return this.request("CreateSAMLProvider", req, cb);
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* 删除OIDC身份提供商
|
|
231
|
+
*/
|
|
232
|
+
async DeleteOIDCConfig(req, cb) {
|
|
233
|
+
return this.request("DeleteOIDCConfig", req, cb);
|
|
215
234
|
}
|
|
216
235
|
/**
|
|
217
236
|
* 修改角色OIDC配置
|
|
@@ -226,130 +245,143 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
226
245
|
return this.request("DeleteRole", req, cb);
|
|
227
246
|
}
|
|
228
247
|
/**
|
|
229
|
-
*
|
|
248
|
+
* 本接口(AttachGroupPolicy)可用于绑定策略到用户组。
|
|
230
249
|
*/
|
|
231
|
-
async
|
|
232
|
-
return this.request("
|
|
250
|
+
async AttachGroupPolicy(req, cb) {
|
|
251
|
+
return this.request("AttachGroupPolicy", req, cb);
|
|
233
252
|
}
|
|
234
253
|
/**
|
|
235
|
-
*
|
|
254
|
+
* 获取所有已授权服务
|
|
236
255
|
*/
|
|
237
|
-
async
|
|
238
|
-
return this.request("
|
|
256
|
+
async ListPoliciesGrantingServiceAccess(req, cb) {
|
|
257
|
+
return this.request("ListPoliciesGrantingServiceAccess", req, cb);
|
|
239
258
|
}
|
|
240
259
|
/**
|
|
241
|
-
*
|
|
260
|
+
* 为CAM用户更新访问密钥
|
|
242
261
|
*/
|
|
243
|
-
async
|
|
244
|
-
return this.request("
|
|
262
|
+
async UpdateAccessKey(req, cb) {
|
|
263
|
+
return this.request("UpdateAccessKey", req, cb);
|
|
245
264
|
}
|
|
246
265
|
/**
|
|
247
|
-
|
|
266
|
+
* 本接口(UpdatePolicy )可用于更新策略。
|
|
267
|
+
如果已存在策略版本,本接口会直接更新策略的默认版本,不会创建新版本,如果不存在任何策略版本,则直接创建一个默认版本。
|
|
268
|
+
*/
|
|
269
|
+
async UpdatePolicy(req, cb) {
|
|
270
|
+
return this.request("UpdatePolicy", req, cb);
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* 本接口(ListAttachedUserPolicies)可用于查询子账号关联的策略列表。
|
|
248
274
|
*/
|
|
249
|
-
async
|
|
250
|
-
return this.request("
|
|
275
|
+
async ListAttachedUserPolicies(req, cb) {
|
|
276
|
+
return this.request("ListAttachedUserPolicies", req, cb);
|
|
251
277
|
}
|
|
252
278
|
/**
|
|
253
|
-
*
|
|
279
|
+
* 该接口(CreatePolicyVersion)用于新增策略版本,用户创建了一个策略版本之后可以方便的通过变更策略版本的方式来变更策略。
|
|
254
280
|
*/
|
|
255
|
-
async
|
|
256
|
-
return this.request("
|
|
281
|
+
async CreatePolicyVersion(req, cb) {
|
|
282
|
+
return this.request("CreatePolicyVersion", req, cb);
|
|
257
283
|
}
|
|
258
284
|
/**
|
|
259
|
-
*
|
|
285
|
+
* 获取协作者列表
|
|
260
286
|
*/
|
|
261
|
-
async
|
|
262
|
-
return this.request("
|
|
287
|
+
async ListCollaborators(req, cb) {
|
|
288
|
+
return this.request("ListCollaborators", req, cb);
|
|
263
289
|
}
|
|
264
290
|
/**
|
|
265
|
-
*
|
|
291
|
+
* 角色绑定标签
|
|
266
292
|
*/
|
|
267
|
-
async
|
|
268
|
-
return this.request("
|
|
293
|
+
async TagRole(req, cb) {
|
|
294
|
+
return this.request("TagRole", req, cb);
|
|
269
295
|
}
|
|
270
296
|
/**
|
|
271
|
-
*
|
|
297
|
+
* 本接口(UpdateRoleConsoleLogin)用于修改角色是否可登录。
|
|
272
298
|
*/
|
|
273
|
-
async
|
|
274
|
-
return this.request("
|
|
299
|
+
async UpdateRoleConsoleLogin(req, cb) {
|
|
300
|
+
return this.request("UpdateRoleConsoleLogin", req, cb);
|
|
275
301
|
}
|
|
276
302
|
/**
|
|
277
|
-
*
|
|
303
|
+
* 本接口(AttachUserPolicy)可用于绑定到用户的策略。
|
|
278
304
|
*/
|
|
279
|
-
async
|
|
280
|
-
return this.request("
|
|
305
|
+
async AttachUserPolicy(req, cb) {
|
|
306
|
+
return this.request("AttachUserPolicy", req, cb);
|
|
281
307
|
}
|
|
282
308
|
/**
|
|
283
|
-
*
|
|
309
|
+
* 本接口(UpdateAssumeRolePolicy)用于修改角色信任策略的策略文档。
|
|
284
310
|
*/
|
|
285
|
-
async
|
|
286
|
-
return this.request("
|
|
311
|
+
async UpdateAssumeRolePolicy(req, cb) {
|
|
312
|
+
return this.request("UpdateAssumeRolePolicy", req, cb);
|
|
287
313
|
}
|
|
288
314
|
/**
|
|
289
|
-
*
|
|
315
|
+
* 设置子用户的登录保护和敏感操作校验方式
|
|
290
316
|
*/
|
|
291
|
-
async
|
|
292
|
-
return this.request("
|
|
317
|
+
async SetMfaFlag(req, cb) {
|
|
318
|
+
return this.request("SetMfaFlag", req, cb);
|
|
293
319
|
}
|
|
294
320
|
/**
|
|
295
|
-
*
|
|
321
|
+
* 获取密钥最近使用情况
|
|
296
322
|
*/
|
|
297
|
-
async
|
|
298
|
-
return this.request("
|
|
323
|
+
async GetSecurityLastUsed(req, cb) {
|
|
324
|
+
return this.request("GetSecurityLastUsed", req, cb);
|
|
299
325
|
}
|
|
300
326
|
/**
|
|
301
|
-
*
|
|
327
|
+
* 本接口(DeletePolicy)可用于删除策略。
|
|
302
328
|
*/
|
|
303
|
-
async
|
|
304
|
-
return this.request("
|
|
329
|
+
async DeletePolicy(req, cb) {
|
|
330
|
+
return this.request("DeletePolicy", req, cb);
|
|
305
331
|
}
|
|
306
332
|
/**
|
|
307
|
-
*
|
|
333
|
+
* 创建用户组
|
|
308
334
|
*/
|
|
309
|
-
async
|
|
310
|
-
return this.request("
|
|
335
|
+
async CreateGroup(req, cb) {
|
|
336
|
+
return this.request("CreateGroup", req, cb);
|
|
311
337
|
}
|
|
312
338
|
/**
|
|
313
|
-
*
|
|
339
|
+
* 列出指定CAM用户的访问密钥
|
|
314
340
|
*/
|
|
315
|
-
async
|
|
316
|
-
return this.request("
|
|
341
|
+
async ListAccessKeys(req, cb) {
|
|
342
|
+
return this.request("ListAccessKeys", req, cb);
|
|
317
343
|
}
|
|
318
344
|
/**
|
|
319
|
-
*
|
|
345
|
+
* 删除用户组
|
|
320
346
|
*/
|
|
321
|
-
async
|
|
322
|
-
return this.request("
|
|
347
|
+
async DeleteGroup(req, cb) {
|
|
348
|
+
return this.request("DeleteGroup", req, cb);
|
|
323
349
|
}
|
|
324
350
|
/**
|
|
325
|
-
*
|
|
351
|
+
* 查询用户组详情
|
|
326
352
|
*/
|
|
327
|
-
async
|
|
328
|
-
return this.request("
|
|
353
|
+
async GetGroup(req, cb) {
|
|
354
|
+
return this.request("GetGroup", req, cb);
|
|
329
355
|
}
|
|
330
356
|
/**
|
|
331
|
-
*
|
|
357
|
+
* 创建角色OIDC配置
|
|
332
358
|
*/
|
|
333
|
-
async
|
|
334
|
-
return this.request("
|
|
359
|
+
async CreateOIDCConfig(req, cb) {
|
|
360
|
+
return this.request("CreateOIDCConfig", req, cb);
|
|
335
361
|
}
|
|
336
362
|
/**
|
|
337
|
-
*
|
|
363
|
+
* 该接口(GetPolicyVersion)用于查询策略版本详情
|
|
338
364
|
*/
|
|
339
|
-
async
|
|
340
|
-
return this.request("
|
|
365
|
+
async GetPolicyVersion(req, cb) {
|
|
366
|
+
return this.request("GetPolicyVersion", req, cb);
|
|
341
367
|
}
|
|
342
368
|
/**
|
|
343
|
-
*
|
|
369
|
+
* 列出用户关联的策略(包括随组关联)
|
|
344
370
|
*/
|
|
345
|
-
async
|
|
346
|
-
return this.request("
|
|
371
|
+
async ListAttachedUserAllPolicies(req, cb) {
|
|
372
|
+
return this.request("ListAttachedUserAllPolicies", req, cb);
|
|
347
373
|
}
|
|
348
374
|
/**
|
|
349
|
-
*
|
|
375
|
+
* 本接口(SetDefaultPolicyVersion)可用于设置生效的策略版本。
|
|
350
376
|
*/
|
|
351
|
-
async
|
|
352
|
-
return this.request("
|
|
377
|
+
async SetDefaultPolicyVersion(req, cb) {
|
|
378
|
+
return this.request("SetDefaultPolicyVersion", req, cb);
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* 本接口(DetachGroupPolicy)可用于解除绑定到用户组的策略。
|
|
382
|
+
*/
|
|
383
|
+
async DetachGroupPolicy(req, cb) {
|
|
384
|
+
return this.request("DetachGroupPolicy", req, cb);
|
|
353
385
|
}
|
|
354
386
|
/**
|
|
355
387
|
* 查询用户安全设置
|
|
@@ -364,167 +396,154 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
364
396
|
return this.request("DescribeSafeAuthFlagIntl", req, cb);
|
|
365
397
|
}
|
|
366
398
|
/**
|
|
367
|
-
*
|
|
368
|
-
*/
|
|
369
|
-
async UpdateGroup(req, cb) {
|
|
370
|
-
return this.request("UpdateGroup", req, cb);
|
|
371
|
-
}
|
|
372
|
-
/**
|
|
373
|
-
* 本接口(GetRole)用于获取指定角色的详细信息。
|
|
399
|
+
* 查询用户组列表
|
|
374
400
|
*/
|
|
375
|
-
async
|
|
376
|
-
return this.request("
|
|
401
|
+
async ListGroups(req, cb) {
|
|
402
|
+
return this.request("ListGroups", req, cb);
|
|
377
403
|
}
|
|
378
404
|
/**
|
|
379
|
-
*
|
|
405
|
+
* 获取企业微信子用户列表
|
|
380
406
|
*/
|
|
381
|
-
async
|
|
382
|
-
return this.request("
|
|
407
|
+
async ListWeChatWorkSubAccounts(req, cb) {
|
|
408
|
+
return this.request("ListWeChatWorkSubAccounts", req, cb);
|
|
383
409
|
}
|
|
384
410
|
/**
|
|
385
|
-
*
|
|
411
|
+
* 该接口(ListPolicyVersions)用于获取策略版本列表
|
|
386
412
|
*/
|
|
387
|
-
async
|
|
388
|
-
return this.request("
|
|
413
|
+
async ListPolicyVersions(req, cb) {
|
|
414
|
+
return this.request("ListPolicyVersions", req, cb);
|
|
389
415
|
}
|
|
390
416
|
/**
|
|
391
|
-
*
|
|
417
|
+
* 更新用户组
|
|
392
418
|
*/
|
|
393
|
-
async
|
|
394
|
-
return this.request("
|
|
419
|
+
async UpdateGroup(req, cb) {
|
|
420
|
+
return this.request("UpdateGroup", req, cb);
|
|
395
421
|
}
|
|
396
422
|
/**
|
|
397
|
-
*
|
|
423
|
+
* 本接口(CreatePolicy)可用于创建策略。
|
|
398
424
|
*/
|
|
399
|
-
async
|
|
400
|
-
return this.request("
|
|
425
|
+
async CreatePolicy(req, cb) {
|
|
426
|
+
return this.request("CreatePolicy", req, cb);
|
|
401
427
|
}
|
|
402
428
|
/**
|
|
403
|
-
*
|
|
429
|
+
* 本接口(DetachUserPolicy)可用于解除绑定到用户的策略。
|
|
404
430
|
*/
|
|
405
|
-
async
|
|
406
|
-
return this.request("
|
|
431
|
+
async DetachUserPolicy(req, cb) {
|
|
432
|
+
return this.request("DetachUserPolicy", req, cb);
|
|
407
433
|
}
|
|
408
434
|
/**
|
|
409
|
-
*
|
|
435
|
+
* 列出用户关联的用户组
|
|
410
436
|
*/
|
|
411
|
-
async
|
|
412
|
-
return this.request("
|
|
437
|
+
async ListGroupsForUser(req, cb) {
|
|
438
|
+
return this.request("ListGroupsForUser", req, cb);
|
|
413
439
|
}
|
|
414
440
|
/**
|
|
415
|
-
*
|
|
441
|
+
* 查询SAML身份提供商详情
|
|
416
442
|
*/
|
|
417
|
-
async
|
|
418
|
-
return this.request("
|
|
443
|
+
async GetSAMLProvider(req, cb) {
|
|
444
|
+
return this.request("GetSAMLProvider", req, cb);
|
|
419
445
|
}
|
|
420
446
|
/**
|
|
421
|
-
* 本接口(
|
|
447
|
+
* 本接口(CreateRole)用于创建角色。
|
|
422
448
|
*/
|
|
423
|
-
async
|
|
424
|
-
return this.request("
|
|
449
|
+
async CreateRole(req, cb) {
|
|
450
|
+
return this.request("CreateRole", req, cb);
|
|
425
451
|
}
|
|
426
452
|
/**
|
|
427
|
-
*
|
|
453
|
+
* 本接口(ListAttachedRolePolicies)用于获取角色绑定的策略列表。
|
|
428
454
|
*/
|
|
429
|
-
async
|
|
430
|
-
return this.request("
|
|
455
|
+
async ListAttachedRolePolicies(req, cb) {
|
|
456
|
+
return this.request("ListAttachedRolePolicies", req, cb);
|
|
431
457
|
}
|
|
432
458
|
/**
|
|
433
|
-
*
|
|
459
|
+
* 删除SAML身份提供商
|
|
434
460
|
*/
|
|
435
|
-
async
|
|
436
|
-
return this.request("
|
|
461
|
+
async DeleteSAMLProvider(req, cb) {
|
|
462
|
+
return this.request("DeleteSAMLProvider", req, cb);
|
|
437
463
|
}
|
|
438
464
|
/**
|
|
439
|
-
* 本接口(
|
|
465
|
+
* 本接口(GetPolicy)可用于查询查看策略详情。
|
|
440
466
|
*/
|
|
441
|
-
async
|
|
442
|
-
return this.request("
|
|
467
|
+
async GetPolicy(req, cb) {
|
|
468
|
+
return this.request("GetPolicy", req, cb);
|
|
443
469
|
}
|
|
444
470
|
/**
|
|
445
|
-
*
|
|
471
|
+
* 获取角色权限边界
|
|
446
472
|
*/
|
|
447
|
-
async
|
|
448
|
-
return this.request("
|
|
473
|
+
async GetRolePermissionBoundary(req, cb) {
|
|
474
|
+
return this.request("GetRolePermissionBoundary", req, cb);
|
|
449
475
|
}
|
|
450
476
|
/**
|
|
451
|
-
*
|
|
477
|
+
* 修改用户OIDC配置
|
|
452
478
|
*/
|
|
453
|
-
async
|
|
454
|
-
return this.request("
|
|
479
|
+
async UpdateUserOIDCConfig(req, cb) {
|
|
480
|
+
return this.request("UpdateUserOIDCConfig", req, cb);
|
|
455
481
|
}
|
|
456
482
|
/**
|
|
457
|
-
*
|
|
483
|
+
* 查询角色OIDC配置
|
|
458
484
|
*/
|
|
459
|
-
async
|
|
460
|
-
return this.request("
|
|
485
|
+
async DescribeOIDCConfig(req, cb) {
|
|
486
|
+
return this.request("DescribeOIDCConfig", req, cb);
|
|
461
487
|
}
|
|
462
488
|
/**
|
|
463
|
-
*
|
|
489
|
+
* 本接口(ListEntitiesForPolicy)可用于查询策略关联的实体列表。
|
|
464
490
|
*/
|
|
465
|
-
async
|
|
466
|
-
return this.request("
|
|
491
|
+
async ListEntitiesForPolicy(req, cb) {
|
|
492
|
+
return this.request("ListEntitiesForPolicy", req, cb);
|
|
467
493
|
}
|
|
468
494
|
/**
|
|
469
|
-
*
|
|
495
|
+
* 设置用户权限边界
|
|
470
496
|
*/
|
|
471
|
-
async
|
|
472
|
-
return this.request("
|
|
497
|
+
async PutUserPermissionsBoundary(req, cb) {
|
|
498
|
+
return this.request("PutUserPermissionsBoundary", req, cb);
|
|
473
499
|
}
|
|
474
500
|
/**
|
|
475
|
-
*
|
|
501
|
+
* 创建用户SAML配置
|
|
476
502
|
*/
|
|
477
|
-
async
|
|
478
|
-
return this.request("
|
|
503
|
+
async CreateUserSAMLConfig(req, cb) {
|
|
504
|
+
return this.request("CreateUserSAMLConfig", req, cb);
|
|
479
505
|
}
|
|
480
506
|
/**
|
|
481
|
-
*
|
|
507
|
+
* 用户加入到用户组
|
|
482
508
|
*/
|
|
483
|
-
async
|
|
484
|
-
return this.request("
|
|
509
|
+
async AddUserToGroup(req, cb) {
|
|
510
|
+
return this.request("AddUserToGroup", req, cb);
|
|
485
511
|
}
|
|
486
512
|
/**
|
|
487
|
-
*
|
|
513
|
+
* 本接口(AttachRolePolicy)用于绑定策略到角色。
|
|
488
514
|
*/
|
|
489
|
-
async
|
|
490
|
-
return this.request("
|
|
515
|
+
async AttachRolePolicy(req, cb) {
|
|
516
|
+
return this.request("AttachRolePolicy", req, cb);
|
|
491
517
|
}
|
|
492
518
|
/**
|
|
493
|
-
*
|
|
519
|
+
* 查询安全设置
|
|
494
520
|
*/
|
|
495
|
-
async
|
|
496
|
-
return this.request("
|
|
521
|
+
async DescribeSafeAuthFlagColl(req, cb) {
|
|
522
|
+
return this.request("DescribeSafeAuthFlagColl", req, cb);
|
|
497
523
|
}
|
|
498
524
|
/**
|
|
499
|
-
* 本接口(
|
|
525
|
+
* 本接口(GetRole)用于获取指定角色的详细信息。
|
|
500
526
|
*/
|
|
501
|
-
async
|
|
502
|
-
return this.request("
|
|
527
|
+
async GetRole(req, cb) {
|
|
528
|
+
return this.request("GetRole", req, cb);
|
|
503
529
|
}
|
|
504
530
|
/**
|
|
505
|
-
* 本接口(
|
|
531
|
+
* 本接口(DeletePolicyVersion)可用于删除一个策略的策略版本。
|
|
506
532
|
*/
|
|
507
|
-
async
|
|
508
|
-
return this.request("
|
|
533
|
+
async DeletePolicyVersion(req, cb) {
|
|
534
|
+
return this.request("DeletePolicyVersion", req, cb);
|
|
509
535
|
}
|
|
510
536
|
/**
|
|
511
|
-
* 本接口(
|
|
537
|
+
* 本接口(ListPolicies)可用于查询策略列表。
|
|
512
538
|
*/
|
|
513
|
-
async
|
|
514
|
-
return this.request("
|
|
539
|
+
async ListPolicies(req, cb) {
|
|
540
|
+
return this.request("ListPolicies", req, cb);
|
|
515
541
|
}
|
|
516
542
|
/**
|
|
517
|
-
*
|
|
543
|
+
* 禁用用户SSO
|
|
518
544
|
*/
|
|
519
|
-
async
|
|
520
|
-
return this.request("
|
|
521
|
-
}
|
|
522
|
-
/**
|
|
523
|
-
* 本接口(UpdatePolicy )可用于更新策略。
|
|
524
|
-
如果已存在策略版本,本接口会直接更新策略的默认版本,不会创建新版本,如果不存在任何策略版本,则直接创建一个默认版本。
|
|
525
|
-
*/
|
|
526
|
-
async UpdatePolicy(req, cb) {
|
|
527
|
-
return this.request("UpdatePolicy", req, cb);
|
|
545
|
+
async DisableUserSSO(req, cb) {
|
|
546
|
+
return this.request("DisableUserSSO", req, cb);
|
|
528
547
|
}
|
|
529
548
|
}
|
|
530
549
|
exports.Client = Client;
|