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

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-intl-en",
3
- "version": "3.0.1465",
3
+ "version": "3.0.1466",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.1465";
1
+ const sdkVersion = "3.0.1466";
2
2
  module.exports = sdkVersion
@@ -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