@alicloud/eiam20211201 2.4.0 → 2.5.0

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.
Files changed (45) hide show
  1. package/dist/client.d.ts +45 -0
  2. package/dist/client.js +153 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/BindUserAuthnSourceMappingRequest.d.ts +53 -0
  5. package/dist/models/BindUserAuthnSourceMappingRequest.js +64 -0
  6. package/dist/models/BindUserAuthnSourceMappingRequest.js.map +1 -0
  7. package/dist/models/BindUserAuthnSourceMappingResponse.d.ts +19 -0
  8. package/dist/models/BindUserAuthnSourceMappingResponse.js +69 -0
  9. package/dist/models/BindUserAuthnSourceMappingResponse.js.map +1 -0
  10. package/dist/models/BindUserAuthnSourceMappingResponseBody.d.ts +18 -0
  11. package/dist/models/BindUserAuthnSourceMappingResponseBody.js +58 -0
  12. package/dist/models/BindUserAuthnSourceMappingResponseBody.js.map +1 -0
  13. package/dist/models/ListUserAuthnSourceMappingsRequest.d.ts +73 -0
  14. package/dist/models/ListUserAuthnSourceMappingsRequest.js +70 -0
  15. package/dist/models/ListUserAuthnSourceMappingsRequest.js.map +1 -0
  16. package/dist/models/ListUserAuthnSourceMappingsResponse.d.ts +19 -0
  17. package/dist/models/ListUserAuthnSourceMappingsResponse.js +69 -0
  18. package/dist/models/ListUserAuthnSourceMappingsResponse.js.map +1 -0
  19. package/dist/models/ListUserAuthnSourceMappingsResponseBody.d.ts +116 -0
  20. package/dist/models/ListUserAuthnSourceMappingsResponseBody.js +102 -0
  21. package/dist/models/ListUserAuthnSourceMappingsResponseBody.js.map +1 -0
  22. package/dist/models/UnbindUserAuthnSourceMappingRequest.d.ts +53 -0
  23. package/dist/models/UnbindUserAuthnSourceMappingRequest.js +64 -0
  24. package/dist/models/UnbindUserAuthnSourceMappingRequest.js.map +1 -0
  25. package/dist/models/UnbindUserAuthnSourceMappingResponse.d.ts +19 -0
  26. package/dist/models/UnbindUserAuthnSourceMappingResponse.js +69 -0
  27. package/dist/models/UnbindUserAuthnSourceMappingResponse.js.map +1 -0
  28. package/dist/models/UnbindUserAuthnSourceMappingResponseBody.d.ts +18 -0
  29. package/dist/models/UnbindUserAuthnSourceMappingResponseBody.js +58 -0
  30. package/dist/models/UnbindUserAuthnSourceMappingResponseBody.js.map +1 -0
  31. package/dist/models/model.d.ts +10 -0
  32. package/dist/models/model.js +34 -14
  33. package/dist/models/model.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/client.ts +174 -0
  36. package/src/models/BindUserAuthnSourceMappingRequest.ts +72 -0
  37. package/src/models/BindUserAuthnSourceMappingResponse.ts +40 -0
  38. package/src/models/BindUserAuthnSourceMappingResponseBody.ts +31 -0
  39. package/src/models/ListUserAuthnSourceMappingsRequest.ts +98 -0
  40. package/src/models/ListUserAuthnSourceMappingsResponse.ts +40 -0
  41. package/src/models/ListUserAuthnSourceMappingsResponseBody.ts +164 -0
  42. package/src/models/UnbindUserAuthnSourceMappingRequest.ts +72 -0
  43. package/src/models/UnbindUserAuthnSourceMappingResponse.ts +40 -0
  44. package/src/models/UnbindUserAuthnSourceMappingResponseBody.ts +31 -0
  45. package/src/models/model.ts +10 -0
package/src/client.ts CHANGED
@@ -383,6 +383,60 @@ export default class Client extends OpenApi {
383
383
  return await this.authorizeApplicationToUsersWithOptions(request, runtime);
384
384
  }
385
385
 
386
+ /**
387
+ * 绑定三方登录账户
388
+ *
389
+ * @param request - BindUserAuthnSourceMappingRequest
390
+ * @param runtime - runtime options for this request RuntimeOptions
391
+ * @returns BindUserAuthnSourceMappingResponse
392
+ */
393
+ async bindUserAuthnSourceMappingWithOptions(request: $_model.BindUserAuthnSourceMappingRequest, runtime: $dara.RuntimeOptions): Promise<$_model.BindUserAuthnSourceMappingResponse> {
394
+ request.validate();
395
+ let query = { };
396
+ if (!$dara.isNull(request.identityProviderId)) {
397
+ query["IdentityProviderId"] = request.identityProviderId;
398
+ }
399
+
400
+ if (!$dara.isNull(request.instanceId)) {
401
+ query["InstanceId"] = request.instanceId;
402
+ }
403
+
404
+ if (!$dara.isNull(request.userExternalId)) {
405
+ query["UserExternalId"] = request.userExternalId;
406
+ }
407
+
408
+ if (!$dara.isNull(request.userId)) {
409
+ query["UserId"] = request.userId;
410
+ }
411
+
412
+ let req = new $OpenApiUtil.OpenApiRequest({
413
+ query: OpenApiUtil.query(query),
414
+ });
415
+ let params = new $OpenApiUtil.Params({
416
+ action: "BindUserAuthnSourceMapping",
417
+ version: "2021-12-01",
418
+ protocol: "HTTPS",
419
+ pathname: "/",
420
+ method: "POST",
421
+ authType: "AK",
422
+ style: "RPC",
423
+ reqBodyType: "formData",
424
+ bodyType: "json",
425
+ });
426
+ return $dara.cast<$_model.BindUserAuthnSourceMappingResponse>(await this.callApi(params, req, runtime), new $_model.BindUserAuthnSourceMappingResponse({}));
427
+ }
428
+
429
+ /**
430
+ * 绑定三方登录账户
431
+ *
432
+ * @param request - BindUserAuthnSourceMappingRequest
433
+ * @returns BindUserAuthnSourceMappingResponse
434
+ */
435
+ async bindUserAuthnSourceMapping(request: $_model.BindUserAuthnSourceMappingRequest): Promise<$_model.BindUserAuthnSourceMappingResponse> {
436
+ let runtime = new $dara.RuntimeOptions({ });
437
+ return await this.bindUserAuthnSourceMappingWithOptions(request, runtime);
438
+ }
439
+
386
440
  /**
387
441
  * Adds an application to an Enterprise Identity Access Management (EIAM) instance of Identity as a Service (IDaaS).
388
442
  *
@@ -7431,6 +7485,72 @@ export default class Client extends OpenApi {
7431
7485
  return await this.listSynchronizationJobsWithOptions(request, runtime);
7432
7486
  }
7433
7487
 
7488
+ /**
7489
+ * 查询三方登录账户绑定关系
7490
+ *
7491
+ * @param request - ListUserAuthnSourceMappingsRequest
7492
+ * @param runtime - runtime options for this request RuntimeOptions
7493
+ * @returns ListUserAuthnSourceMappingsResponse
7494
+ */
7495
+ async listUserAuthnSourceMappingsWithOptions(request: $_model.ListUserAuthnSourceMappingsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListUserAuthnSourceMappingsResponse> {
7496
+ request.validate();
7497
+ let query = { };
7498
+ if (!$dara.isNull(request.identityProviderId)) {
7499
+ query["IdentityProviderId"] = request.identityProviderId;
7500
+ }
7501
+
7502
+ if (!$dara.isNull(request.instanceId)) {
7503
+ query["InstanceId"] = request.instanceId;
7504
+ }
7505
+
7506
+ if (!$dara.isNull(request.maxResults)) {
7507
+ query["MaxResults"] = request.maxResults;
7508
+ }
7509
+
7510
+ if (!$dara.isNull(request.nextToken)) {
7511
+ query["NextToken"] = request.nextToken;
7512
+ }
7513
+
7514
+ if (!$dara.isNull(request.previousToken)) {
7515
+ query["PreviousToken"] = request.previousToken;
7516
+ }
7517
+
7518
+ if (!$dara.isNull(request.userExternalId)) {
7519
+ query["UserExternalId"] = request.userExternalId;
7520
+ }
7521
+
7522
+ if (!$dara.isNull(request.userId)) {
7523
+ query["UserId"] = request.userId;
7524
+ }
7525
+
7526
+ let req = new $OpenApiUtil.OpenApiRequest({
7527
+ query: OpenApiUtil.query(query),
7528
+ });
7529
+ let params = new $OpenApiUtil.Params({
7530
+ action: "ListUserAuthnSourceMappings",
7531
+ version: "2021-12-01",
7532
+ protocol: "HTTPS",
7533
+ pathname: "/",
7534
+ method: "POST",
7535
+ authType: "AK",
7536
+ style: "RPC",
7537
+ reqBodyType: "formData",
7538
+ bodyType: "json",
7539
+ });
7540
+ return $dara.cast<$_model.ListUserAuthnSourceMappingsResponse>(await this.callApi(params, req, runtime), new $_model.ListUserAuthnSourceMappingsResponse({}));
7541
+ }
7542
+
7543
+ /**
7544
+ * 查询三方登录账户绑定关系
7545
+ *
7546
+ * @param request - ListUserAuthnSourceMappingsRequest
7547
+ * @returns ListUserAuthnSourceMappingsResponse
7548
+ */
7549
+ async listUserAuthnSourceMappings(request: $_model.ListUserAuthnSourceMappingsRequest): Promise<$_model.ListUserAuthnSourceMappingsResponse> {
7550
+ let runtime = new $dara.RuntimeOptions({ });
7551
+ return await this.listUserAuthnSourceMappingsWithOptions(request, runtime);
7552
+ }
7553
+
7434
7554
  /**
7435
7555
  * Queries the details of accounts in Identity as a Service (IDaaS) Employee IAM (EIAM) by page.
7436
7556
  *
@@ -8955,6 +9075,60 @@ export default class Client extends OpenApi {
8955
9075
  return await this.setUserPrimaryOrganizationalUnitWithOptions(request, runtime);
8956
9076
  }
8957
9077
 
9078
+ /**
9079
+ * 解绑三方登录账户
9080
+ *
9081
+ * @param request - UnbindUserAuthnSourceMappingRequest
9082
+ * @param runtime - runtime options for this request RuntimeOptions
9083
+ * @returns UnbindUserAuthnSourceMappingResponse
9084
+ */
9085
+ async unbindUserAuthnSourceMappingWithOptions(request: $_model.UnbindUserAuthnSourceMappingRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UnbindUserAuthnSourceMappingResponse> {
9086
+ request.validate();
9087
+ let query = { };
9088
+ if (!$dara.isNull(request.identityProviderId)) {
9089
+ query["IdentityProviderId"] = request.identityProviderId;
9090
+ }
9091
+
9092
+ if (!$dara.isNull(request.instanceId)) {
9093
+ query["InstanceId"] = request.instanceId;
9094
+ }
9095
+
9096
+ if (!$dara.isNull(request.userExternalId)) {
9097
+ query["UserExternalId"] = request.userExternalId;
9098
+ }
9099
+
9100
+ if (!$dara.isNull(request.userId)) {
9101
+ query["UserId"] = request.userId;
9102
+ }
9103
+
9104
+ let req = new $OpenApiUtil.OpenApiRequest({
9105
+ query: OpenApiUtil.query(query),
9106
+ });
9107
+ let params = new $OpenApiUtil.Params({
9108
+ action: "UnbindUserAuthnSourceMapping",
9109
+ version: "2021-12-01",
9110
+ protocol: "HTTPS",
9111
+ pathname: "/",
9112
+ method: "POST",
9113
+ authType: "AK",
9114
+ style: "RPC",
9115
+ reqBodyType: "formData",
9116
+ bodyType: "json",
9117
+ });
9118
+ return $dara.cast<$_model.UnbindUserAuthnSourceMappingResponse>(await this.callApi(params, req, runtime), new $_model.UnbindUserAuthnSourceMappingResponse({}));
9119
+ }
9120
+
9121
+ /**
9122
+ * 解绑三方登录账户
9123
+ *
9124
+ * @param request - UnbindUserAuthnSourceMappingRequest
9125
+ * @returns UnbindUserAuthnSourceMappingResponse
9126
+ */
9127
+ async unbindUserAuthnSourceMapping(request: $_model.UnbindUserAuthnSourceMappingRequest): Promise<$_model.UnbindUserAuthnSourceMappingResponse> {
9128
+ let runtime = new $dara.RuntimeOptions({ });
9129
+ return await this.unbindUserAuthnSourceMappingWithOptions(request, runtime);
9130
+ }
9131
+
8958
9132
  /**
8959
9133
  * Unlocks an Employee Identity and Access Management (EIAM) account of Identity as a Service (IDaaS) that is locked.
8960
9134
  *
@@ -0,0 +1,72 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class BindUserAuthnSourceMappingRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * 来源Idp Id
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * idp_mwpcwnhrimlr2horxXXXX
14
+ */
15
+ identityProviderId?: string;
16
+ /**
17
+ * @remarks
18
+ * IDaaS EIAM实例的ID。
19
+ *
20
+ * This parameter is required.
21
+ *
22
+ * @example
23
+ * idaas_ue2jvisn35ea5lmthk267xxxxx
24
+ */
25
+ instanceId?: string;
26
+ /**
27
+ * @remarks
28
+ * 外部关联ID
29
+ *
30
+ * This parameter is required.
31
+ *
32
+ * @example
33
+ * xxxxxx
34
+ */
35
+ userExternalId?: string;
36
+ /**
37
+ * @remarks
38
+ * 用户ID
39
+ *
40
+ * This parameter is required.
41
+ *
42
+ * @example
43
+ * user_fherbdywxxxx
44
+ */
45
+ userId?: string;
46
+ static names(): { [key: string]: string } {
47
+ return {
48
+ identityProviderId: 'IdentityProviderId',
49
+ instanceId: 'InstanceId',
50
+ userExternalId: 'UserExternalId',
51
+ userId: 'UserId',
52
+ };
53
+ }
54
+
55
+ static types(): { [key: string]: any } {
56
+ return {
57
+ identityProviderId: 'string',
58
+ instanceId: 'string',
59
+ userExternalId: 'string',
60
+ userId: 'string',
61
+ };
62
+ }
63
+
64
+ validate() {
65
+ super.validate();
66
+ }
67
+
68
+ constructor(map?: { [key: string]: any }) {
69
+ super(map);
70
+ }
71
+ }
72
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { BindUserAuthnSourceMappingResponseBody } from "./BindUserAuthnSourceMappingResponseBody";
4
+
5
+
6
+ export class BindUserAuthnSourceMappingResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: BindUserAuthnSourceMappingResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: BindUserAuthnSourceMappingResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,31 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class BindUserAuthnSourceMappingResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 0441BD79-92F3-53AA-8657-F8CE4A2B912A
9
+ */
10
+ requestId?: string;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ requestId: 'RequestId',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ requestId: 'string',
20
+ };
21
+ }
22
+
23
+ validate() {
24
+ super.validate();
25
+ }
26
+
27
+ constructor(map?: { [key: string]: any }) {
28
+ super(map);
29
+ }
30
+ }
31
+
@@ -0,0 +1,98 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListUserAuthnSourceMappingsRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * 来源Idp Id
9
+ *
10
+ * @example
11
+ * idp_11111
12
+ */
13
+ identityProviderId?: string;
14
+ /**
15
+ * @remarks
16
+ * IDaaS EIAM实例的ID。
17
+ *
18
+ * This parameter is required.
19
+ *
20
+ * @example
21
+ * idaas_ue2jvisn35ea5lmthk267xxxxx
22
+ */
23
+ instanceId?: string;
24
+ /**
25
+ * @remarks
26
+ * 分页查询时每页行数。默认值为20,最大值为100。
27
+ *
28
+ * @example
29
+ * 20
30
+ */
31
+ maxResults?: number;
32
+ /**
33
+ * @remarks
34
+ * 查询凭证(Token),取值为上一次API调用返回的NextToken参数值。
35
+ *
36
+ * @example
37
+ * NTxxxxxexample
38
+ */
39
+ nextToken?: string;
40
+ /**
41
+ * @remarks
42
+ * 查询上一页凭证(Token),取值为上一次API调用返回的previousToken参数值。
43
+ *
44
+ * @example
45
+ * PTxxxxxexample
46
+ */
47
+ previousToken?: string;
48
+ /**
49
+ * @remarks
50
+ * 外部关联ID
51
+ *
52
+ * @example
53
+ * xxxxxx
54
+ */
55
+ userExternalId?: string;
56
+ /**
57
+ * @remarks
58
+ * 用户ID
59
+ *
60
+ * This parameter is required.
61
+ *
62
+ * @example
63
+ * user_ue2jvisn35exxxxx
64
+ */
65
+ userId?: string;
66
+ static names(): { [key: string]: string } {
67
+ return {
68
+ identityProviderId: 'IdentityProviderId',
69
+ instanceId: 'InstanceId',
70
+ maxResults: 'MaxResults',
71
+ nextToken: 'NextToken',
72
+ previousToken: 'PreviousToken',
73
+ userExternalId: 'UserExternalId',
74
+ userId: 'UserId',
75
+ };
76
+ }
77
+
78
+ static types(): { [key: string]: any } {
79
+ return {
80
+ identityProviderId: 'string',
81
+ instanceId: 'string',
82
+ maxResults: 'number',
83
+ nextToken: 'string',
84
+ previousToken: 'string',
85
+ userExternalId: 'string',
86
+ userId: 'string',
87
+ };
88
+ }
89
+
90
+ validate() {
91
+ super.validate();
92
+ }
93
+
94
+ constructor(map?: { [key: string]: any }) {
95
+ super(map);
96
+ }
97
+ }
98
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListUserAuthnSourceMappingsResponseBody } from "./ListUserAuthnSourceMappingsResponseBody";
4
+
5
+
6
+ export class ListUserAuthnSourceMappingsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListUserAuthnSourceMappingsResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: ListUserAuthnSourceMappingsResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,164 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListUserAuthnSourceMappingsResponseBodyUserAuthnSourceMappings extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * 来源Idp类型
9
+ *
10
+ * @example
11
+ * urn:alibaba:idaas:authntype:oidc
12
+ */
13
+ authnSourceType?: string;
14
+ /**
15
+ * @remarks
16
+ * 创建时间
17
+ *
18
+ * @example
19
+ * 1762309642177
20
+ */
21
+ createTime?: number;
22
+ /**
23
+ * @remarks
24
+ * 来源Idp Id
25
+ *
26
+ * @example
27
+ * idp_my664lwkhpicbyzirog3xxxxx
28
+ */
29
+ identityProviderId?: string;
30
+ /**
31
+ * @remarks
32
+ * 实例Id
33
+ *
34
+ * @example
35
+ * idaas_ue2jvisn35ea5lmthk267xxxxx
36
+ */
37
+ instanceId?: string;
38
+ /**
39
+ * @remarks
40
+ * 最近一次更新时间
41
+ *
42
+ * @example
43
+ * 1762309642177
44
+ */
45
+ updateTime?: number;
46
+ /**
47
+ * @remarks
48
+ * 外部ID
49
+ *
50
+ * @example
51
+ * xxxxxx
52
+ */
53
+ userExternalId?: string;
54
+ /**
55
+ * @remarks
56
+ * 用户ID
57
+ *
58
+ * @example
59
+ * user_ue2jvisn35exxxxx
60
+ */
61
+ userId?: string;
62
+ static names(): { [key: string]: string } {
63
+ return {
64
+ authnSourceType: 'AuthnSourceType',
65
+ createTime: 'CreateTime',
66
+ identityProviderId: 'IdentityProviderId',
67
+ instanceId: 'InstanceId',
68
+ updateTime: 'UpdateTime',
69
+ userExternalId: 'UserExternalId',
70
+ userId: 'UserId',
71
+ };
72
+ }
73
+
74
+ static types(): { [key: string]: any } {
75
+ return {
76
+ authnSourceType: 'string',
77
+ createTime: 'number',
78
+ identityProviderId: 'string',
79
+ instanceId: 'string',
80
+ updateTime: 'number',
81
+ userExternalId: 'string',
82
+ userId: 'string',
83
+ };
84
+ }
85
+
86
+ validate() {
87
+ super.validate();
88
+ }
89
+
90
+ constructor(map?: { [key: string]: any }) {
91
+ super(map);
92
+ }
93
+ }
94
+
95
+ export class ListUserAuthnSourceMappingsResponseBody extends $dara.Model {
96
+ /**
97
+ * @remarks
98
+ * 分页查询时每页行数。
99
+ *
100
+ * @example
101
+ * 20
102
+ */
103
+ maxResults?: number;
104
+ /**
105
+ * @remarks
106
+ * 本次调用返回的查询凭证(Token)值,用于下一次翻页查询。
107
+ *
108
+ * @example
109
+ * NTxxxexample
110
+ */
111
+ nextToken?: string;
112
+ /**
113
+ * @remarks
114
+ * 本次调用返回的查询凭证(Token)值,用于上一次翻页查询。
115
+ *
116
+ * @example
117
+ * PTxxxexample
118
+ */
119
+ previousToken?: string;
120
+ /**
121
+ * @example
122
+ * 0441BD79-92F3-53AA-8657-F8CE4A2B912A
123
+ */
124
+ requestId?: string;
125
+ /**
126
+ * @example
127
+ * 100
128
+ */
129
+ totalCount?: number;
130
+ userAuthnSourceMappings?: ListUserAuthnSourceMappingsResponseBodyUserAuthnSourceMappings[];
131
+ static names(): { [key: string]: string } {
132
+ return {
133
+ maxResults: 'MaxResults',
134
+ nextToken: 'NextToken',
135
+ previousToken: 'PreviousToken',
136
+ requestId: 'RequestId',
137
+ totalCount: 'TotalCount',
138
+ userAuthnSourceMappings: 'UserAuthnSourceMappings',
139
+ };
140
+ }
141
+
142
+ static types(): { [key: string]: any } {
143
+ return {
144
+ maxResults: 'number',
145
+ nextToken: 'string',
146
+ previousToken: 'string',
147
+ requestId: 'string',
148
+ totalCount: 'number',
149
+ userAuthnSourceMappings: { 'type': 'array', 'itemType': ListUserAuthnSourceMappingsResponseBodyUserAuthnSourceMappings },
150
+ };
151
+ }
152
+
153
+ validate() {
154
+ if(Array.isArray(this.userAuthnSourceMappings)) {
155
+ $dara.Model.validateArray(this.userAuthnSourceMappings);
156
+ }
157
+ super.validate();
158
+ }
159
+
160
+ constructor(map?: { [key: string]: any }) {
161
+ super(map);
162
+ }
163
+ }
164
+
@@ -0,0 +1,72 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UnbindUserAuthnSourceMappingRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * 来源ID
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * idp_my664lwkhpicbyzirog3xxxxx
14
+ */
15
+ identityProviderId?: string;
16
+ /**
17
+ * @remarks
18
+ * IDaaS EIAM实例的ID。
19
+ *
20
+ * This parameter is required.
21
+ *
22
+ * @example
23
+ * idaas_ue2jvisn35ea5lmthk267xxxxx
24
+ */
25
+ instanceId?: string;
26
+ /**
27
+ * @remarks
28
+ * 外部关联ID
29
+ *
30
+ * This parameter is required.
31
+ *
32
+ * @example
33
+ * xxxxxx
34
+ */
35
+ userExternalId?: string;
36
+ /**
37
+ * @remarks
38
+ * 用户ID
39
+ *
40
+ * This parameter is required.
41
+ *
42
+ * @example
43
+ * user_ue2jvisn35exxxxx
44
+ */
45
+ userId?: string;
46
+ static names(): { [key: string]: string } {
47
+ return {
48
+ identityProviderId: 'IdentityProviderId',
49
+ instanceId: 'InstanceId',
50
+ userExternalId: 'UserExternalId',
51
+ userId: 'UserId',
52
+ };
53
+ }
54
+
55
+ static types(): { [key: string]: any } {
56
+ return {
57
+ identityProviderId: 'string',
58
+ instanceId: 'string',
59
+ userExternalId: 'string',
60
+ userId: 'string',
61
+ };
62
+ }
63
+
64
+ validate() {
65
+ super.validate();
66
+ }
67
+
68
+ constructor(map?: { [key: string]: any }) {
69
+ super(map);
70
+ }
71
+ }
72
+