tencentcloud-sdk-nodejs-intl-en 3.0.281 → 3.0.285

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.
@@ -21,6 +21,7 @@ const RestoreSecretResponse = models.RestoreSecretResponse;
21
21
  const UpdateDescriptionResponse = models.UpdateDescriptionResponse;
22
22
  const DescribeSecretResponse = models.DescribeSecretResponse;
23
23
  const DescribeSupportedProductsRequest = models.DescribeSupportedProductsRequest;
24
+ const GetSecretValueRequest = models.GetSecretValueRequest;
24
25
  const DeleteSecretRequest = models.DeleteSecretRequest;
25
26
  const CreateSecretRequest = models.CreateSecretRequest;
26
27
  const RotateProductSecretRequest = models.RotateProductSecretRequest;
@@ -32,7 +33,7 @@ const DeleteSecretVersionRequest = models.DeleteSecretVersionRequest;
32
33
  const SecretMetadata = models.SecretMetadata;
33
34
  const ListSecretVersionIdsRequest = models.ListSecretVersionIdsRequest;
34
35
  const DescribeRotationDetailRequest = models.DescribeRotationDetailRequest;
35
- const DescribeAsyncRequestInfoRequest = models.DescribeAsyncRequestInfoRequest;
36
+ const CreateSSHKeyPairSecretResponse = models.CreateSSHKeyPairSecretResponse;
36
37
  const UpdateRotationStatusResponse = models.UpdateRotationStatusResponse;
37
38
  const CreateSecretResponse = models.CreateSecretResponse;
38
39
  const GetRegionsRequest = models.GetRegionsRequest;
@@ -42,6 +43,7 @@ const Tag = models.Tag;
42
43
  const ListSecretsRequest = models.ListSecretsRequest;
43
44
  const UpdateDescriptionRequest = models.UpdateDescriptionRequest;
44
45
  const EnableSecretResponse = models.EnableSecretResponse;
46
+ const CreateSSHKeyPairSecretRequest = models.CreateSSHKeyPairSecretRequest;
45
47
  const UpdateRotationStatusRequest = models.UpdateRotationStatusRequest;
46
48
  const UpdateSecretRequest = models.UpdateSecretRequest;
47
49
  const DescribeAsyncRequestInfoResponse = models.DescribeAsyncRequestInfoResponse;
@@ -50,19 +52,21 @@ const RotateProductSecretResponse = models.RotateProductSecretResponse;
50
52
  const VersionInfo = models.VersionInfo;
51
53
  const TagFilter = models.TagFilter;
52
54
  const PutSecretValueRequest = models.PutSecretValueRequest;
55
+ const PutSecretValueResponse = models.PutSecretValueResponse;
53
56
  const DescribeRotationHistoryResponse = models.DescribeRotationHistoryResponse;
54
- const GetSecretValueRequest = models.GetSecretValueRequest;
57
+ const GetSSHKeyPairValueRequest = models.GetSSHKeyPairValueRequest;
58
+ const DescribeAsyncRequestInfoRequest = models.DescribeAsyncRequestInfoRequest;
55
59
  const GetServiceStatusResponse = models.GetServiceStatusResponse;
56
60
  const DescribeRotationDetailResponse = models.DescribeRotationDetailResponse;
57
- const DescribeSecretRequest = models.DescribeSecretRequest;
61
+ const EnableSecretRequest = models.EnableSecretRequest;
58
62
  const ProductPrivilegeUnit = models.ProductPrivilegeUnit;
59
63
  const DescribeRotationHistoryRequest = models.DescribeRotationHistoryRequest;
60
- const PutSecretValueResponse = models.PutSecretValueResponse;
64
+ const GetSSHKeyPairValueResponse = models.GetSSHKeyPairValueResponse;
61
65
  const DeleteSecretResponse = models.DeleteSecretResponse;
62
66
  const DisableSecretRequest = models.DisableSecretRequest;
63
67
  const CreateProductSecretResponse = models.CreateProductSecretResponse;
64
68
  const ListSecretsResponse = models.ListSecretsResponse;
65
- const EnableSecretRequest = models.EnableSecretRequest;
69
+ const DescribeSecretRequest = models.DescribeSecretRequest;
66
70
  const GetServiceStatusRequest = models.GetServiceStatusRequest;
67
71
  const ListSecretVersionIdsResponse = models.ListSecretVersionIdsResponse;
68
72
 
@@ -134,6 +138,17 @@ This API is only applicable to user-defined credentials but not Tencent Cloud se
134
138
  this.request("ListSecrets", req, resp, cb);
135
139
  }
136
140
 
141
+ /**
142
+ * This API is used to create a secret that hosts SSH keys.
143
+ * @param {CreateSSHKeyPairSecretRequest} req
144
+ * @param {function(string, CreateSSHKeyPairSecretResponse):void} cb
145
+ * @public
146
+ */
147
+ CreateSSHKeyPairSecret(req, cb) {
148
+ let resp = new CreateSSHKeyPairSecretResponse();
149
+ this.request("CreateSSHKeyPairSecret", req, resp, cb);
150
+ }
151
+
137
152
  /**
138
153
  * This API is used to set a Tencent Cloud service credential rotation policy, including the following parameters:
139
154
  Specifies whether to enable rotation
@@ -229,14 +244,14 @@ This API is only applicable to user-defined credentials but not Tencent Cloud se
229
244
  }
230
245
 
231
246
  /**
232
- * This API is used to enable a Secret and will change its status to `Enabled`. You can call the `GetSecretValue` API to obtain the plaintext of this Secret. Secrets in `PendingDelete` status can only be enabled after being restored by using `RestoreSecret`.
233
- * @param {EnableSecretRequest} req
234
- * @param {function(string, EnableSecretResponse):void} cb
247
+ * This API is used to obtain the detailed attribute information of a Secret.
248
+ * @param {DescribeSecretRequest} req
249
+ * @param {function(string, DescribeSecretResponse):void} cb
235
250
  * @public
236
251
  */
237
- EnableSecret(req, cb) {
238
- let resp = new EnableSecretResponse();
239
- this.request("EnableSecret", req, resp, cb);
252
+ DescribeSecret(req, cb) {
253
+ let resp = new DescribeSecretResponse();
254
+ this.request("DescribeSecret", req, resp, cb);
240
255
  }
241
256
 
242
257
  /**
@@ -251,6 +266,17 @@ This API is only applicable to Tencent Cloud service credentials.
251
266
  this.request("DescribeRotationDetail", req, resp, cb);
252
267
  }
253
268
 
269
+ /**
270
+ * This API is used to obtain the plaintext value of the SSH key secret.
271
+ * @param {GetSSHKeyPairValueRequest} req
272
+ * @param {function(string, GetSSHKeyPairValueResponse):void} cb
273
+ * @public
274
+ */
275
+ GetSSHKeyPairValue(req, cb) {
276
+ let resp = new GetSSHKeyPairValueResponse();
277
+ this.request("GetSSHKeyPairValue", req, resp, cb);
278
+ }
279
+
254
280
  /**
255
281
  * This API is used to obtain list of versions of a Secret.
256
282
  * @param {ListSecretVersionIdsRequest} req
@@ -274,14 +300,14 @@ This API is only applicable to Tencent Cloud service credentials.
274
300
  }
275
301
 
276
302
  /**
277
- * This API is used to obtain the detailed attribute information of a Secret.
278
- * @param {DescribeSecretRequest} req
279
- * @param {function(string, DescribeSecretResponse):void} cb
303
+ * This API is used to enable a Secret and will change its status to `Enabled`. You can call the `GetSecretValue` API to obtain the plaintext of this Secret. Secrets in `PendingDelete` status can only be enabled after being restored by using `RestoreSecret`.
304
+ * @param {EnableSecretRequest} req
305
+ * @param {function(string, EnableSecretResponse):void} cb
280
306
  * @public
281
307
  */
282
- DescribeSecret(req, cb) {
283
- let resp = new DescribeSecretResponse();
284
- this.request("DescribeSecret", req, resp, cb);
308
+ EnableSecret(req, cb) {
309
+ let resp = new EnableSecretResponse();
310
+ this.request("EnableSecret", req, resp, cb);
285
311
  }
286
312
 
287
313
  /**
@@ -3346,7 +3346,7 @@ class ClusterCIDRSettings extends AbstractModel {
3346
3346
  this.MaxNodePodNum = null;
3347
3347
 
3348
3348
  /**
3349
- * Maximum number of cluster services
3349
+ * The maximum number of services in a cluster. The range is from 32 to 32768. When its power is not 2, it will round upward to the closest power of 2. Default value is 256.
3350
3350
  * @type {number || null}
3351
3351
  */
3352
3352
  this.MaxClusterServiceNum = null;
@@ -3669,6 +3669,48 @@ Note: This field may return null, indicating that no valid value was found.
3669
3669
  }
3670
3670
  }
3671
3671
 
3672
+ /**
3673
+ * ModifyNodePoolInstanceTypes request structure.
3674
+ * @class
3675
+ */
3676
+ class ModifyNodePoolInstanceTypesRequest extends AbstractModel {
3677
+ constructor(){
3678
+ super();
3679
+
3680
+ /**
3681
+ * Cluster ID
3682
+ * @type {string || null}
3683
+ */
3684
+ this.ClusterId = null;
3685
+
3686
+ /**
3687
+ * Node pool ID
3688
+ * @type {string || null}
3689
+ */
3690
+ this.NodePoolId = null;
3691
+
3692
+ /**
3693
+ * List of instance types
3694
+ * @type {Array.<string> || null}
3695
+ */
3696
+ this.InstanceTypes = null;
3697
+
3698
+ }
3699
+
3700
+ /**
3701
+ * @private
3702
+ */
3703
+ deserialize(params) {
3704
+ if (!params) {
3705
+ return;
3706
+ }
3707
+ this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
3708
+ this.NodePoolId = 'NodePoolId' in params ? params.NodePoolId : null;
3709
+ this.InstanceTypes = 'InstanceTypes' in params ? params.InstanceTypes : null;
3710
+
3711
+ }
3712
+ }
3713
+
3672
3714
  /**
3673
3715
  * DescribeClusterNodePools response structure.
3674
3716
  * @class
@@ -4429,6 +4471,34 @@ Note: This field may return null, indicating that no valid value is found.
4429
4471
  }
4430
4472
  }
4431
4473
 
4474
+ /**
4475
+ * ModifyNodePoolInstanceTypes response structure.
4476
+ * @class
4477
+ */
4478
+ class ModifyNodePoolInstanceTypesResponse extends AbstractModel {
4479
+ constructor(){
4480
+ super();
4481
+
4482
+ /**
4483
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
4484
+ * @type {string || null}
4485
+ */
4486
+ this.RequestId = null;
4487
+
4488
+ }
4489
+
4490
+ /**
4491
+ * @private
4492
+ */
4493
+ deserialize(params) {
4494
+ if (!params) {
4495
+ return;
4496
+ }
4497
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
4498
+
4499
+ }
4500
+ }
4501
+
4432
4502
  /**
4433
4503
  * CreateClusterNodePoolFromExistingAsg response structure.
4434
4504
  * @class
@@ -4635,6 +4705,12 @@ class EnhancedService extends AbstractModel {
4635
4705
  */
4636
4706
  this.MonitorService = null;
4637
4707
 
4708
+ /**
4709
+ * Enables the TAT service. If this parameter is not specified, the TAT service will not be enabled.
4710
+ * @type {RunAutomationServiceEnabled || null}
4711
+ */
4712
+ this.AutomationService = null;
4713
+
4638
4714
  }
4639
4715
 
4640
4716
  /**
@@ -4657,6 +4733,12 @@ class EnhancedService extends AbstractModel {
4657
4733
  this.MonitorService = obj;
4658
4734
  }
4659
4735
 
4736
+ if (params.AutomationService) {
4737
+ let obj = new RunAutomationServiceEnabled();
4738
+ obj.deserialize(params.AutomationService)
4739
+ this.AutomationService = obj;
4740
+ }
4741
+
4660
4742
  }
4661
4743
  }
4662
4744
 
@@ -5415,6 +5497,13 @@ Note: this field may return `null`, indicating that no valid values can be obtai
5415
5497
  */
5416
5498
  this.DesiredPodNumber = null;
5417
5499
 
5500
+ /**
5501
+ * Specifies the base64-encoded custom script to be executed before initialization of the node. It’s only valid for adding existing nodes for now.
5502
+ Note: this field may return `null`, indicating that no valid values can be obtained.
5503
+ * @type {string || null}
5504
+ */
5505
+ this.PreStartUserScript = null;
5506
+
5418
5507
  }
5419
5508
 
5420
5509
  /**
@@ -5453,6 +5542,7 @@ Note: this field may return `null`, indicating that no valid values can be obtai
5453
5542
  this.ExtraArgs = obj;
5454
5543
  }
5455
5544
  this.DesiredPodNumber = 'DesiredPodNumber' in params ? params.DesiredPodNumber : null;
5545
+ this.PreStartUserScript = 'PreStartUserScript' in params ? params.PreStartUserScript : null;
5456
5546
 
5457
5547
  }
5458
5548
  }
@@ -6496,6 +6586,34 @@ Note: this field may return `null`, indicating that no valid value is obtained.
6496
6586
  }
6497
6587
  }
6498
6588
 
6589
+ /**
6590
+ * Describes the TAT service information.
6591
+ * @class
6592
+ */
6593
+ class RunAutomationServiceEnabled extends AbstractModel {
6594
+ constructor(){
6595
+ super();
6596
+
6597
+ /**
6598
+ * Whether to enable the TAT service. Valid values: <br><li>`TRUE`: yes;<br><li>`FALSE`: no<br><br>Default: `FALSE`.
6599
+ * @type {boolean || null}
6600
+ */
6601
+ this.Enabled = null;
6602
+
6603
+ }
6604
+
6605
+ /**
6606
+ * @private
6607
+ */
6608
+ deserialize(params) {
6609
+ if (!params) {
6610
+ return;
6611
+ }
6612
+ this.Enabled = 'Enabled' in params ? params.Enabled : null;
6613
+
6614
+ }
6615
+ }
6616
+
6499
6617
  /**
6500
6618
  * UpgradeClusterInstances response structure.
6501
6619
  * @class
@@ -8722,6 +8840,7 @@ module.exports = {
8722
8840
  Taint: Taint,
8723
8841
  CheckInstancesUpgradeAbleRequest: CheckInstancesUpgradeAbleRequest,
8724
8842
  ExistedInstance: ExistedInstance,
8843
+ ModifyNodePoolInstanceTypesRequest: ModifyNodePoolInstanceTypesRequest,
8725
8844
  DescribeClusterNodePoolsResponse: DescribeClusterNodePoolsResponse,
8726
8845
  UpgradeAbleInstancesItem: UpgradeAbleInstancesItem,
8727
8846
  GetUpgradeInstanceProgressRequest: GetUpgradeInstanceProgressRequest,
@@ -8739,6 +8858,7 @@ module.exports = {
8739
8858
  CreatePrometheusAlertRuleResponse: CreatePrometheusAlertRuleResponse,
8740
8859
  ResourceDeleteOption: ResourceDeleteOption,
8741
8860
  LoginSettings: LoginSettings,
8861
+ ModifyNodePoolInstanceTypesResponse: ModifyNodePoolInstanceTypesResponse,
8742
8862
  CreateClusterNodePoolFromExistingAsgResponse: CreateClusterNodePoolFromExistingAsgResponse,
8743
8863
  DescribeEnableVpcCniProgressRequest: DescribeEnableVpcCniProgressRequest,
8744
8864
  DescribeClusterEndpointStatusRequest: DescribeClusterEndpointStatusRequest,
@@ -8775,6 +8895,7 @@ module.exports = {
8775
8895
  CheckInstancesUpgradeAbleResponse: CheckInstancesUpgradeAbleResponse,
8776
8896
  Cluster: Cluster,
8777
8897
  DescribeClusterEndpointStatusResponse: DescribeClusterEndpointStatusResponse,
8898
+ RunAutomationServiceEnabled: RunAutomationServiceEnabled,
8778
8899
  UpgradeClusterInstancesResponse: UpgradeClusterInstancesResponse,
8779
8900
  AddExistedInstancesResponse: AddExistedInstancesResponse,
8780
8901
  DeleteClusterRouteTableResponse: DeleteClusterRouteTableResponse,
@@ -86,6 +86,7 @@ const CreateClusterEndpointVipRequest = models.CreateClusterEndpointVipRequest;
86
86
  const Taint = models.Taint;
87
87
  const CheckInstancesUpgradeAbleRequest = models.CheckInstancesUpgradeAbleRequest;
88
88
  const ExistedInstance = models.ExistedInstance;
89
+ const ModifyNodePoolInstanceTypesRequest = models.ModifyNodePoolInstanceTypesRequest;
89
90
  const DescribeClusterNodePoolsResponse = models.DescribeClusterNodePoolsResponse;
90
91
  const UpgradeAbleInstancesItem = models.UpgradeAbleInstancesItem;
91
92
  const GetUpgradeInstanceProgressRequest = models.GetUpgradeInstanceProgressRequest;
@@ -103,6 +104,7 @@ const EnableVpcCniNetworkTypeRequest = models.EnableVpcCniNetworkTypeRequest;
103
104
  const CreatePrometheusAlertRuleResponse = models.CreatePrometheusAlertRuleResponse;
104
105
  const ResourceDeleteOption = models.ResourceDeleteOption;
105
106
  const LoginSettings = models.LoginSettings;
107
+ const ModifyNodePoolInstanceTypesResponse = models.ModifyNodePoolInstanceTypesResponse;
106
108
  const CreateClusterNodePoolFromExistingAsgResponse = models.CreateClusterNodePoolFromExistingAsgResponse;
107
109
  const DescribeEnableVpcCniProgressRequest = models.DescribeEnableVpcCniProgressRequest;
108
110
  const DescribeClusterEndpointStatusRequest = models.DescribeClusterEndpointStatusRequest;
@@ -139,6 +141,7 @@ const DeleteClusterEndpointVipRequest = models.DeleteClusterEndpointVipRequest;
139
141
  const CheckInstancesUpgradeAbleResponse = models.CheckInstancesUpgradeAbleResponse;
140
142
  const Cluster = models.Cluster;
141
143
  const DescribeClusterEndpointStatusResponse = models.DescribeClusterEndpointStatusResponse;
144
+ const RunAutomationServiceEnabled = models.RunAutomationServiceEnabled;
142
145
  const UpgradeClusterInstancesResponse = models.UpgradeClusterInstancesResponse;
143
146
  const AddExistedInstancesResponse = models.AddExistedInstancesResponse;
144
147
  const DeleteClusterRouteTableResponse = models.DeleteClusterRouteTableResponse;
@@ -198,6 +201,17 @@ class TkeClient extends AbstractClient {
198
201
  super("tke.tencentcloudapi.com", "2018-05-25", credential, region, profile);
199
202
  }
200
203
 
204
+ /**
205
+ * This API is used to modify the model of instances in a node pool.
206
+ * @param {ModifyNodePoolInstanceTypesRequest} req
207
+ * @param {function(string, ModifyNodePoolInstanceTypesResponse):void} cb
208
+ * @public
209
+ */
210
+ ModifyNodePoolInstanceTypes(req, cb) {
211
+ let resp = new ModifyNodePoolInstanceTypesResponse();
212
+ this.request("ModifyNodePoolInstanceTypes", req, resp, cb);
213
+ }
214
+
201
215
  /**
202
216
  * This API is used to check which nodes can be upgraded in the given node list.
203
217
  * @param {CheckInstancesUpgradeAbleRequest} req