tencentcloud-sdk-nodejs-intl-en 3.0.1465 → 3.0.1467

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.
@@ -99,6 +99,7 @@ const GroupInfo = models.GroupInfo;
99
99
  const AddUserRequest = models.AddUserRequest;
100
100
  const UpdateAssumeRolePolicyRequest = models.UpdateAssumeRolePolicyRequest;
101
101
  const LoginActionFlag = models.LoginActionFlag;
102
+ const ListAccountsResponse = models.ListAccountsResponse;
102
103
  const DeleteRoleRequest = models.DeleteRoleRequest;
103
104
  const UpdateRoleConsoleLoginRequest = models.UpdateRoleConsoleLoginRequest;
104
105
  const UpdateUserResponse = models.UpdateUserResponse;
@@ -115,6 +116,7 @@ const DisableUserSSORequest = models.DisableUserSSORequest;
115
116
  const UpdateSAMLProviderResponse = models.UpdateSAMLProviderResponse;
116
117
  const UpdateAccessKeyRequest = models.UpdateAccessKeyRequest;
117
118
  const UpdateUserRequest = models.UpdateUserRequest;
119
+ const ListAllUser = models.ListAllUser;
118
120
  const CreateSAMLProviderRequest = models.CreateSAMLProviderRequest;
119
121
  const AttachPolicyInfo = models.AttachPolicyInfo;
120
122
  const ConsumeCustomMFATokenRequest = models.ConsumeCustomMFATokenRequest;
@@ -200,6 +202,7 @@ const DescribeSafeAuthFlagCollRequest = models.DescribeSafeAuthFlagCollRequest;
200
202
  const PutRolePermissionsBoundaryResponse = models.PutRolePermissionsBoundaryResponse;
201
203
  const SetMfaFlagRequest = models.SetMfaFlagRequest;
202
204
  const ListCollaboratorsResponse = models.ListCollaboratorsResponse;
205
+ const ListAccountsRequest = models.ListAccountsRequest;
203
206
  const ListAccessKeysResponse = models.ListAccessKeysResponse;
204
207
  const GetSecurityLastUsedResponse = models.GetSecurityLastUsedResponse;
205
208
  const ListAttachedUserPoliciesRequest = models.ListAttachedUserPoliciesRequest;
@@ -582,6 +585,17 @@ class CamClient extends AbstractClient {
582
585
  this.request("DeleteRole", req, resp, cb);
583
586
  }
584
587
 
588
+ /**
589
+ * Query all account lists.
590
+ * @param {ListAccountsRequest} req
591
+ * @param {function(string, ListAccountsResponse):void} cb
592
+ * @public
593
+ */
594
+ ListAccounts(req, cb) {
595
+ let resp = new ListAccountsResponse();
596
+ this.request("ListAccounts", req, resp, cb);
597
+ }
598
+
585
599
  /**
586
600
  * This API is used to query sub-users.
587
601
  * @param {GetUserRequest} req
@@ -3532,6 +3532,63 @@ class LoginActionFlag extends AbstractModel {
3532
3532
  }
3533
3533
  }
3534
3534
 
3535
+ /**
3536
+ * ListAccounts response structure.
3537
+ * @class
3538
+ */
3539
+ class ListAccountsResponse extends AbstractModel {
3540
+ constructor(){
3541
+ super();
3542
+
3543
+ /**
3544
+ * <p>Sub-account list.</p>
3545
+ * @type {Array.<ListAllUser> || null}
3546
+ */
3547
+ this.Users = null;
3548
+
3549
+ /**
3550
+ * <p>This field is returned only when IsTruncated is true. If it returns true, you need to continue to call this API and use Marker to get the truncated content.</p>
3551
+ * @type {string || null}
3552
+ */
3553
+ this.Marker = null;
3554
+
3555
+ /**
3556
+ * <p>Whether the returned result of the request is truncated.</p>
3557
+ * @type {boolean || null}
3558
+ */
3559
+ this.IsTruncated = null;
3560
+
3561
+ /**
3562
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
3563
+ * @type {string || null}
3564
+ */
3565
+ this.RequestId = null;
3566
+
3567
+ }
3568
+
3569
+ /**
3570
+ * @private
3571
+ */
3572
+ deserialize(params) {
3573
+ if (!params) {
3574
+ return;
3575
+ }
3576
+
3577
+ if (params.Users) {
3578
+ this.Users = new Array();
3579
+ for (let z in params.Users) {
3580
+ let obj = new ListAllUser();
3581
+ obj.deserialize(params.Users[z]);
3582
+ this.Users.push(obj);
3583
+ }
3584
+ }
3585
+ this.Marker = 'Marker' in params ? params.Marker : null;
3586
+ this.IsTruncated = 'IsTruncated' in params ? params.IsTruncated : null;
3587
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
3588
+
3589
+ }
3590
+ }
3591
+
3535
3592
  /**
3536
3593
  * DeleteRole request structure.
3537
3594
  * @class
@@ -4178,6 +4235,97 @@ class UpdateUserRequest extends AbstractModel {
4178
4235
  }
4179
4236
  }
4180
4237
 
4238
+ /**
4239
+ * Account details
4240
+ * @class
4241
+ */
4242
+ class ListAllUser extends AbstractModel {
4243
+ constructor(){
4244
+ super();
4245
+
4246
+ /**
4247
+ * <p>Sub-account account ID.</p>
4248
+ * @type {number || null}
4249
+ */
4250
+ this.Uin = null;
4251
+
4252
+ /**
4253
+ * <p>Username of sub-account.</p>
4254
+ * @type {string || null}
4255
+ */
4256
+ this.Name = null;
4257
+
4258
+ /**
4259
+ * <p>Sub-account UID.</p>
4260
+ * @type {number || null}
4261
+ */
4262
+ this.Uid = null;
4263
+
4264
+ /**
4265
+ * <p>Sub-account remark.</p>
4266
+ * @type {string || null}
4267
+ */
4268
+ this.Remark = null;
4269
+
4270
+ /**
4271
+ * <p>Whether or not the sub-account can log in to the console.</p>
4272
+ * @type {number || null}
4273
+ */
4274
+ this.ConsoleLogin = null;
4275
+
4276
+ /**
4277
+ * <p>Phone number.</p>
4278
+ * @type {string || null}
4279
+ */
4280
+ this.PhoneNum = null;
4281
+
4282
+ /**
4283
+ * <p>Area code.</p>
4284
+ * @type {string || null}
4285
+ */
4286
+ this.CountryCode = null;
4287
+
4288
+ /**
4289
+ * <p>Mailbox.</p>
4290
+ * @type {string || null}
4291
+ */
4292
+ this.Email = null;
4293
+
4294
+ /**
4295
+ * <p>Creation time.</p><p>Parameter format: YYYY-MM-DD hh:mm:ss</p>
4296
+ * @type {string || null}
4297
+ */
4298
+ this.CreateTime = null;
4299
+
4300
+ /**
4301
+ * <p>Account type</p><p>Enumeration values:</p><ul><li>Owner: root account</li><li>SubUser: sub-user</li><li>CICUser: CIC user</li><li>WechatCorpUser: WeCom sub-user</li><li>AgentIdentity: AgentIdentity user</li><li>Collaborator: collaborator</li><li>MessageReceiver: message recipient</li><li>Unknown: unknown</li></ul>
4302
+ * @type {string || null}
4303
+ */
4304
+ this.UserType = null;
4305
+
4306
+ }
4307
+
4308
+ /**
4309
+ * @private
4310
+ */
4311
+ deserialize(params) {
4312
+ if (!params) {
4313
+ return;
4314
+ }
4315
+ this.Uin = 'Uin' in params ? params.Uin : null;
4316
+ this.Name = 'Name' in params ? params.Name : null;
4317
+ this.Uid = 'Uid' in params ? params.Uid : null;
4318
+ this.Remark = 'Remark' in params ? params.Remark : null;
4319
+ this.ConsoleLogin = 'ConsoleLogin' in params ? params.ConsoleLogin : null;
4320
+ this.PhoneNum = 'PhoneNum' in params ? params.PhoneNum : null;
4321
+ this.CountryCode = 'CountryCode' in params ? params.CountryCode : null;
4322
+ this.Email = 'Email' in params ? params.Email : null;
4323
+ this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
4324
+ this.UserType = 'UserType' in params ? params.UserType : null;
4325
+
4326
+ }
4327
+ }
4328
+
4181
4329
  /**
4182
4330
  * CreateSAMLProvider request structure.
4183
4331
  * @class
@@ -8004,6 +8152,48 @@ class ListCollaboratorsResponse extends AbstractModel {
8004
8152
  }
8005
8153
  }
8006
8154
 
8155
+ /**
8156
+ * ListAccounts request structure.
8157
+ * @class
8158
+ */
8159
+ class ListAccountsRequest extends AbstractModel {
8160
+ constructor(){
8161
+ super();
8162
+
8163
+ /**
8164
+ * <p>Number of returned results. If the returned results are truncated after reaching the MaxItems limit, the response parameter IsTruncated will be equal to true.</p><p>Value range: [1, 100]</p>
8165
+ * @type {number || null}
8166
+ */
8167
+ this.MaxItems = null;
8168
+
8169
+ /**
8170
+ * <p>When the return result of the request is truncated, you can use Marker to get the content after the current truncation position.</p>
8171
+ * @type {string || null}
8172
+ */
8173
+ this.Marker = null;
8174
+
8175
+ /**
8176
+ * <p>Type of user</p><p>Enumeration values:</p><ul><li>Owner: root account</li><li>SubUser: ordinary sub-user</li><li>CICUser: CIC sub-user</li><li>WechatCorpUser: WeCom sub-user</li><li>AgentIdentity: AgentIdentity sub-user</li><li>Collaborator: collaborator</li><li>MessageReceiver: message recipient</li></ul>
8177
+ * @type {string || null}
8178
+ */
8179
+ this.UserType = null;
8180
+
8181
+ }
8182
+
8183
+ /**
8184
+ * @private
8185
+ */
8186
+ deserialize(params) {
8187
+ if (!params) {
8188
+ return;
8189
+ }
8190
+ this.MaxItems = 'MaxItems' in params ? params.MaxItems : null;
8191
+ this.Marker = 'Marker' in params ? params.Marker : null;
8192
+ this.UserType = 'UserType' in params ? params.UserType : null;
8193
+
8194
+ }
8195
+ }
8196
+
8007
8197
  /**
8008
8198
  * ListAccessKeys response structure.
8009
8199
  * @class
@@ -8378,6 +8568,7 @@ module.exports = {
8378
8568
  AddUserRequest: AddUserRequest,
8379
8569
  UpdateAssumeRolePolicyRequest: UpdateAssumeRolePolicyRequest,
8380
8570
  LoginActionFlag: LoginActionFlag,
8571
+ ListAccountsResponse: ListAccountsResponse,
8381
8572
  DeleteRoleRequest: DeleteRoleRequest,
8382
8573
  UpdateRoleConsoleLoginRequest: UpdateRoleConsoleLoginRequest,
8383
8574
  UpdateUserResponse: UpdateUserResponse,
@@ -8394,6 +8585,7 @@ module.exports = {
8394
8585
  UpdateSAMLProviderResponse: UpdateSAMLProviderResponse,
8395
8586
  UpdateAccessKeyRequest: UpdateAccessKeyRequest,
8396
8587
  UpdateUserRequest: UpdateUserRequest,
8588
+ ListAllUser: ListAllUser,
8397
8589
  CreateSAMLProviderRequest: CreateSAMLProviderRequest,
8398
8590
  AttachPolicyInfo: AttachPolicyInfo,
8399
8591
  ConsumeCustomMFATokenRequest: ConsumeCustomMFATokenRequest,
@@ -8479,6 +8671,7 @@ module.exports = {
8479
8671
  PutRolePermissionsBoundaryResponse: PutRolePermissionsBoundaryResponse,
8480
8672
  SetMfaFlagRequest: SetMfaFlagRequest,
8481
8673
  ListCollaboratorsResponse: ListCollaboratorsResponse,
8674
+ ListAccountsRequest: ListAccountsRequest,
8482
8675
  ListAccessKeysResponse: ListAccessKeysResponse,
8483
8676
  GetSecurityLastUsedResponse: GetSecurityLastUsedResponse,
8484
8677
  ListAttachedUserPoliciesRequest: ListAttachedUserPoliciesRequest,
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.1465";
1
+ const sdkVersion = "3.0.1467";
2
2
  module.exports = sdkVersion
@@ -557,7 +557,7 @@ class MnaClient extends AbstractClient {
557
557
  }
558
558
 
559
559
  /**
560
- * Download traffic data on the usage statistics page
560
+ * Download traffic data on the usage statistics page.
561
561
  * @param {GetStatisticDataByNameRequest} req
562
562
  * @param {function(string, GetStatisticDataByNameResponse):void} cb
563
563
  * @public
@@ -3103,57 +3103,55 @@ class GetStatisticDataByNameRequest extends AbstractModel {
3103
3103
  super();
3104
3104
 
3105
3105
  /**
3106
- * Device name. If not specified, pass "-1".
3106
+ * <p>Device name. If no device is specified, you can pass "-1"</p>
3107
3107
  * @type {string || null}
3108
3108
  */
3109
3109
  this.DeviceName = null;
3110
3110
 
3111
3111
  /**
3112
- * Start time of statistics (seconds).
3112
+ * <p>Start time of statistics, unit: s</p>
3113
3113
  * @type {number || null}
3114
3114
  */
3115
3115
  this.BeginTime = null;
3116
3116
 
3117
3117
  /**
3118
- * Statistics end time (s).
3118
+ * <p>Statistics end time, unit: s</p>
3119
3119
  * @type {number || null}
3120
3120
  */
3121
3121
  this.EndTime = null;
3122
3122
 
3123
3123
  /**
3124
- * Aggregation granularity:
3125
- Hourly statistics
3126
- 2: Daily statistics
3124
+ * <p>Time granularity</p><p>Enumeration values:</p><ul><li>1: hourly statistics</li><li>2: daily statistics</li><li>3: per minute</li><li>4: every 5 minutes</li></ul>
3127
3125
  * @type {number || null}
3128
3126
  */
3129
3127
  this.TimeGranularity = null;
3130
3128
 
3131
3129
  /**
3132
- * Access region. Value ranges from 'MC' to 'AM'. MC=Chinese mainland AP=Asia Pacific EU=Europe AM=Americas. Leave it blank to represent all regions.
3130
+ * <p>Access region. Value range: ['MC','AP','EU','AM'] MC=Chinese mainland AP=Asia Pacific EU=Europe AM=Americas. If not specified, it represents all regions.</p>
3133
3131
  * @type {string || null}
3134
3132
  */
3135
3133
  this.AccessRegion = null;
3136
3134
 
3137
3135
  /**
3138
- * Gateway type. 0: public cloud gateway; 1: private gateway. Default is 0 if not specified.
3136
+ * <p>Gateway type. 0: public cloud gateway; 1: private gateway. Defaults to 0 if not passed.</p>
3139
3137
  * @type {number || null}
3140
3138
  */
3141
3139
  this.GatewayType = null;
3142
3140
 
3143
3141
  /**
3144
- * Device name list. Up to 10 devices. Used when downloading traffic volume of multiple devices. At this point, DeviceName can be "-1".
3142
+ * <p>Device name list, up to 10 devices. Used when downloading traffic for multiple devices. At this point, DeviceName can be set to "-1"</p>
3145
3143
  * @type {Array.<string> || null}
3146
3144
  */
3147
3145
  this.DeviceList = null;
3148
3146
 
3149
3147
  /**
3150
- * Device group ID. If not specified, do not pass it. Used when downloading data by grouping.
3148
+ * <p>Device group ID. Do not pass it if no group is specified. Used when downloading data by group</p>
3151
3149
  * @type {string || null}
3152
3150
  */
3153
3151
  this.GroupId = null;
3154
3152
 
3155
3153
  /**
3156
- * Application ID. Leave blank if no designated application is specified. Used when downloading data by app.
3154
+ * <p>Application ID. If not specified, leave it blank. Used when downloading data by application</p>
3157
3155
  * @type {string || null}
3158
3156
  */
3159
3157
  this.MpApplicationId = null;
@@ -5805,7 +5803,7 @@ class GetStatisticDataByNameResponse extends AbstractModel {
5805
5803
  super();
5806
5804
 
5807
5805
  /**
5808
- * File address url
5806
+ * <p>File address url</p>
5809
5807
  * @type {string || null}
5810
5808
  */
5811
5809
  this.FilePath = null;
@@ -2726,7 +2726,8 @@ class GeneralBasicOCRResponse extends AbstractModel {
2726
2726
  this.PdfPageSize = null;
2727
2727
 
2728
2728
  /**
2729
- *
2729
+ * Rotation angle of the image, measured in degrees. The horizontal direction of the text is 0; clockwise is positive, counterclockwise is negative.
2730
+ Example value: 6.5
2730
2731
  * @type {number || null}
2731
2732
  */
2732
2733
  this.Angle = null;
@@ -272,7 +272,7 @@ This interface supports regional scope: countries with machine-readable passport
272
272
  }
273
273
 
274
274
  /**
275
- * This API is used to detect and recognize characters in an image in the following 20 languages: Chinese, English, Japanese, Korean, Spanish, French, German, Portuguese, Vietnamese, Malay, Russian, Italian, Dutch, Swedish, Finnish, Danish, Norwegian, Hungarian, Thai, and Arabic. Mixed characters in English and each supported language can be recognized together.
275
+ * This API is used to detect and recognize characters in an image in the following 21 languages: Chinese, English, Japanese, Korean, Spanish, French, German, Portuguese, Vietnamese, Malay, Russian, Italian, Dutch, Swedish, Finnish, Danish, Norwegian, Hungarian, Thai, Hindi and Arabic. Mixed characters in English and each supported language can be recognized together.
276
276
 
277
277
  It can recognize printed text in paper documents, online images, ads, signboards, menus, video titles, profile photos, etc.
278
278
 
@@ -357,6 +357,60 @@ class AssumeRoleResponse extends AbstractModel {
357
357
  }
358
358
  }
359
359
 
360
+ /**
361
+ * GetSessionToken response structure.
362
+ * @class
363
+ */
364
+ class GetSessionTokenResponse extends AbstractModel {
365
+ constructor(){
366
+ super();
367
+
368
+ /**
369
+ * Temporary access credentials.
370
+ * @type {Credentials || null}
371
+ */
372
+ this.Credentials = null;
373
+
374
+ /**
375
+ * The time when the certificate is invalid, return Unix timestamp, accurate to second
376
+ * @type {number || null}
377
+ */
378
+ this.ExpiredTime = null;
379
+
380
+ /**
381
+ * Expiration time of the temporary access credential in UTC time in iso 8601 format
382
+ * @type {string || null}
383
+ */
384
+ this.Expiration = null;
385
+
386
+ /**
387
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
388
+ * @type {string || null}
389
+ */
390
+ this.RequestId = null;
391
+
392
+ }
393
+
394
+ /**
395
+ * @private
396
+ */
397
+ deserialize(params) {
398
+ if (!params) {
399
+ return;
400
+ }
401
+
402
+ if (params.Credentials) {
403
+ let obj = new Credentials();
404
+ obj.deserialize(params.Credentials)
405
+ this.Credentials = obj;
406
+ }
407
+ this.ExpiredTime = 'ExpiredTime' in params ? params.ExpiredTime : null;
408
+ this.Expiration = 'Expiration' in params ? params.Expiration : null;
409
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
410
+
411
+ }
412
+ }
413
+
360
414
  /**
361
415
  * GetFederationToken request structure.
362
416
  * @class
@@ -438,6 +492,48 @@ class Tag extends AbstractModel {
438
492
  }
439
493
  }
440
494
 
495
+ /**
496
+ * GetSessionToken request structure.
497
+ * @class
498
+ */
499
+ class GetSessionTokenRequest extends AbstractModel {
500
+ constructor(){
501
+ super();
502
+
503
+ /**
504
+ * MFA serial number, the identifier of the MFA device associated with the CAM user making the call. Format: qcs::CAM:uin/${ownerUin}::MFA/${mfaType}. mfaType supports softToken.
505
+ * @type {string || null}
506
+ */
507
+ this.SerialNumber = null;
508
+
509
+ /**
510
+ * mfa identity verification code.
511
+ * @type {string || null}
512
+ */
513
+ this.TokenCode = null;
514
+
515
+ /**
516
+ * Validity period of the specified temporary certificate. Unit: second. Default value: 1800 seconds. The root account can set a validity period of up to 7200 seconds, and a sub-account can set a validity period of up to 129600 seconds.
517
+ * @type {number || null}
518
+ */
519
+ this.DurationSeconds = null;
520
+
521
+ }
522
+
523
+ /**
524
+ * @private
525
+ */
526
+ deserialize(params) {
527
+ if (!params) {
528
+ return;
529
+ }
530
+ this.SerialNumber = 'SerialNumber' in params ? params.SerialNumber : null;
531
+ this.TokenCode = 'TokenCode' in params ? params.TokenCode : null;
532
+ this.DurationSeconds = 'DurationSeconds' in params ? params.DurationSeconds : null;
533
+
534
+ }
535
+ }
536
+
441
537
  /**
442
538
  * Temporary credentials
443
539
  * @class
@@ -668,8 +764,10 @@ module.exports = {
668
764
  AssumeRoleWithWebIdentityResponse: AssumeRoleWithWebIdentityResponse,
669
765
  GetFederationTokenResponse: GetFederationTokenResponse,
670
766
  AssumeRoleResponse: AssumeRoleResponse,
767
+ GetSessionTokenResponse: GetSessionTokenResponse,
671
768
  GetFederationTokenRequest: GetFederationTokenRequest,
672
769
  Tag: Tag,
770
+ GetSessionTokenRequest: GetSessionTokenRequest,
673
771
  Credentials: Credentials,
674
772
  AssumeRoleRequest: AssumeRoleRequest,
675
773
  GetCallerIdentityRequest: GetCallerIdentityRequest,
@@ -22,8 +22,10 @@ const AssumeRoleWithWebIdentityRequest = models.AssumeRoleWithWebIdentityRequest
22
22
  const AssumeRoleWithWebIdentityResponse = models.AssumeRoleWithWebIdentityResponse;
23
23
  const GetFederationTokenResponse = models.GetFederationTokenResponse;
24
24
  const AssumeRoleResponse = models.AssumeRoleResponse;
25
+ const GetSessionTokenResponse = models.GetSessionTokenResponse;
25
26
  const GetFederationTokenRequest = models.GetFederationTokenRequest;
26
27
  const Tag = models.Tag;
28
+ const GetSessionTokenRequest = models.GetSessionTokenRequest;
27
29
  const Credentials = models.Credentials;
28
30
  const AssumeRoleRequest = models.AssumeRoleRequest;
29
31
  const GetCallerIdentityRequest = models.GetCallerIdentityRequest;
@@ -59,19 +61,6 @@ This API is used to implement best practices.
59
61
  this.request("GetFederationToken", req, resp, cb);
60
62
  }
61
63
 
62
- /**
63
- * This API is used to request temporary access credentials for a role based on a SAML assertion.
64
-
65
- Note: When called with signature method v3, header `X-TC-Token` could be ignored, and `Authorization` should be SKIP.
66
- * @param {AssumeRoleWithSAMLRequest} req
67
- * @param {function(string, AssumeRoleWithSAMLResponse):void} cb
68
- * @public
69
- */
70
- AssumeRoleWithSAML(req, cb) {
71
- let resp = new AssumeRoleWithSAMLResponse();
72
- this.request("AssumeRoleWithSAML", req, resp, cb);
73
- }
74
-
75
64
  /**
76
65
  * This API is used to request temporary access credentials for assuming a role.
77
66
 
@@ -96,6 +85,30 @@ This API is used to add a user as a principal in the role trust policy.
96
85
  this.request("AssumeRole", req, resp, cb);
97
86
  }
98
87
 
88
+ /**
89
+ * This API is used to apply for an OIDC role credential.
90
+
91
+ Note: When called with signature method v3, header `X-TC-Token` could be ignored, and `Authorization` should be SKIP.
92
+ * @param {AssumeRoleWithWebIdentityRequest} req
93
+ * @param {function(string, AssumeRoleWithWebIdentityResponse):void} cb
94
+ * @public
95
+ */
96
+ AssumeRoleWithWebIdentity(req, cb) {
97
+ let resp = new AssumeRoleWithWebIdentityResponse();
98
+ this.request("AssumeRoleWithWebIdentity", req, resp, cb);
99
+ }
100
+
101
+ /**
102
+ * Obtain the MFA temporary certificate.
103
+ * @param {GetSessionTokenRequest} req
104
+ * @param {function(string, GetSessionTokenResponse):void} cb
105
+ * @public
106
+ */
107
+ GetSessionToken(req, cb) {
108
+ let resp = new GetSessionTokenResponse();
109
+ this.request("GetSessionToken", req, resp, cb);
110
+ }
111
+
99
112
  /**
100
113
  * This API is used to get the identity information of the current caller.
101
114
 
@@ -110,16 +123,16 @@ This API is used to get the identity information using the persistent keys of th
110
123
  }
111
124
 
112
125
  /**
113
- * This API is used to apply for an OIDC role credential.
126
+ * This API is used to request temporary access credentials for a role based on a SAML assertion.
114
127
 
115
128
  Note: When called with signature method v3, header `X-TC-Token` could be ignored, and `Authorization` should be SKIP.
116
- * @param {AssumeRoleWithWebIdentityRequest} req
117
- * @param {function(string, AssumeRoleWithWebIdentityResponse):void} cb
129
+ * @param {AssumeRoleWithSAMLRequest} req
130
+ * @param {function(string, AssumeRoleWithSAMLResponse):void} cb
118
131
  * @public
119
132
  */
120
- AssumeRoleWithWebIdentity(req, cb) {
121
- let resp = new AssumeRoleWithWebIdentityResponse();
122
- this.request("AssumeRoleWithWebIdentity", req, resp, cb);
133
+ AssumeRoleWithSAML(req, cb) {
134
+ let resp = new AssumeRoleWithSAMLResponse();
135
+ this.request("AssumeRoleWithSAML", req, resp, cb);
123
136
  }
124
137
 
125
138