tencentcloud-sdk-nodejs-intl-en 3.0.1255 → 3.0.1257
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 +1 -1
- package/tencentcloud/cdz/index.js +3 -0
- package/tencentcloud/cdz/v20221123/cdz_client.js +49 -0
- package/tencentcloud/cdz/v20221123/index.js +4 -0
- package/tencentcloud/cdz/v20221123/models.js +285 -0
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/cvm/v20170312/cvm_client.js +63 -31
- package/tencentcloud/cvm/v20170312/models.js +205 -18
- package/tencentcloud/dnspod/v20210323/dnspod_client.js +34 -7
- package/tencentcloud/dnspod/v20210323/models.js +225 -11
- package/tencentcloud/faceid/v20180301/faceid_client.js +2 -2
- package/tencentcloud/faceid/v20180301/models.js +1 -2
- package/tencentcloud/index.js +1 -0
- package/tencentcloud/mps/v20190612/models.js +1642 -485
- package/tencentcloud/mps/v20190612/mps_client.js +51 -29
- package/tencentcloud/teo/v20220901/models.js +7 -7
- package/tencentcloud/teo/v20220901/teo_client.js +4 -4
package/package.json
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018 Tencent. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing,
|
|
11
|
+
* software distributed under the License is distributed on an
|
|
12
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
+
* KIND, either express or implied. See the License for the
|
|
14
|
+
* specific language governing permissions and limitations
|
|
15
|
+
* under the License.
|
|
16
|
+
*/
|
|
17
|
+
const models = require("./models");
|
|
18
|
+
const AbstractClient = require('../../common/abstract_client')
|
|
19
|
+
const DescribeCloudDedicatedZoneResourceSummaryRequest = models.DescribeCloudDedicatedZoneResourceSummaryRequest;
|
|
20
|
+
const CloudDedicatedZoneResourceStatisticsInfo = models.CloudDedicatedZoneResourceStatisticsInfo;
|
|
21
|
+
const ExtraInfo = models.ExtraInfo;
|
|
22
|
+
const CloudDedicatedZoneResourceSummaryInfo = models.CloudDedicatedZoneResourceSummaryInfo;
|
|
23
|
+
const DescribeCloudDedicatedZoneResourceSummaryResponse = models.DescribeCloudDedicatedZoneResourceSummaryResponse;
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* cdz client
|
|
28
|
+
* @class
|
|
29
|
+
*/
|
|
30
|
+
class CdzClient extends AbstractClient {
|
|
31
|
+
|
|
32
|
+
constructor(credential, region, profile) {
|
|
33
|
+
super("cdz.intl.tencentcloudapi.com", "2022-11-23", credential, region, profile);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* This API is used to query resource usage of each vertical product in Cloud Dedicated Zone.
|
|
38
|
+
* @param {DescribeCloudDedicatedZoneResourceSummaryRequest} req
|
|
39
|
+
* @param {function(string, DescribeCloudDedicatedZoneResourceSummaryResponse):void} cb
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
DescribeCloudDedicatedZoneResourceSummary(req, cb) {
|
|
43
|
+
let resp = new DescribeCloudDedicatedZoneResourceSummaryResponse();
|
|
44
|
+
this.request("DescribeCloudDedicatedZoneResourceSummary", req, resp, cb);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
}
|
|
49
|
+
module.exports = CdzClient;
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018 Tencent. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing,
|
|
11
|
+
* software distributed under the License is distributed on an
|
|
12
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
+
* KIND, either express or implied. See the License for the
|
|
14
|
+
* specific language governing permissions and limitations
|
|
15
|
+
* under the License.
|
|
16
|
+
*/
|
|
17
|
+
const AbstractModel = require("../../common/abstract_model");
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* DescribeCloudDedicatedZoneResourceSummary request structure.
|
|
21
|
+
* @class
|
|
22
|
+
*/
|
|
23
|
+
class DescribeCloudDedicatedZoneResourceSummaryRequest extends AbstractModel {
|
|
24
|
+
constructor(){
|
|
25
|
+
super();
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Unique id of the cloud dedicated zone.
|
|
29
|
+
* @type {string || null}
|
|
30
|
+
*/
|
|
31
|
+
this.CdzId = null;
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @private
|
|
37
|
+
*/
|
|
38
|
+
deserialize(params) {
|
|
39
|
+
if (!params) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
this.CdzId = 'CdzId' in params ? params.CdzId : null;
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Details of the queried data for the statistical item of the CDZ resource, corresponding to a specific vertical product resource statistics.
|
|
49
|
+
* @class
|
|
50
|
+
*/
|
|
51
|
+
class CloudDedicatedZoneResourceStatisticsInfo extends AbstractModel {
|
|
52
|
+
constructor(){
|
|
53
|
+
super();
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Specifies the item name of resource statistics.
|
|
57
|
+
* @type {string || null}
|
|
58
|
+
*/
|
|
59
|
+
this.Item = null;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Resource statistics item measurement unit.
|
|
63
|
+
* @type {string || null}
|
|
64
|
+
*/
|
|
65
|
+
this.Unit = null;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Total resource amount.
|
|
69
|
+
* @type {string || null}
|
|
70
|
+
*/
|
|
71
|
+
this.Total = null;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Used resources.
|
|
75
|
+
* @type {string || null}
|
|
76
|
+
*/
|
|
77
|
+
this.Usage = null;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Specifies the percentage of used resources.
|
|
81
|
+
* @type {string || null}
|
|
82
|
+
*/
|
|
83
|
+
this.UsageRate = null;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Remaining resource.
|
|
87
|
+
* @type {string || null}
|
|
88
|
+
*/
|
|
89
|
+
this.Remain = null;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Remaining resource percentage.
|
|
93
|
+
* @type {string || null}
|
|
94
|
+
*/
|
|
95
|
+
this.RemainRate = null;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Resource utilization rate at midnight this monday.
|
|
99
|
+
* @type {string || null}
|
|
100
|
+
*/
|
|
101
|
+
this.ThisMondayUsageRate = null;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Resource growth rate this week.
|
|
105
|
+
* @type {string || null}
|
|
106
|
+
*/
|
|
107
|
+
this.ThisMondayUsageGrowthRate = null;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Resource growth rate last week.
|
|
111
|
+
* @type {string || null}
|
|
112
|
+
*/
|
|
113
|
+
this.LastMondayUsageGrowthRate = null;
|
|
114
|
+
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @private
|
|
119
|
+
*/
|
|
120
|
+
deserialize(params) {
|
|
121
|
+
if (!params) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
this.Item = 'Item' in params ? params.Item : null;
|
|
125
|
+
this.Unit = 'Unit' in params ? params.Unit : null;
|
|
126
|
+
this.Total = 'Total' in params ? params.Total : null;
|
|
127
|
+
this.Usage = 'Usage' in params ? params.Usage : null;
|
|
128
|
+
this.UsageRate = 'UsageRate' in params ? params.UsageRate : null;
|
|
129
|
+
this.Remain = 'Remain' in params ? params.Remain : null;
|
|
130
|
+
this.RemainRate = 'RemainRate' in params ? params.RemainRate : null;
|
|
131
|
+
this.ThisMondayUsageRate = 'ThisMondayUsageRate' in params ? params.ThisMondayUsageRate : null;
|
|
132
|
+
this.ThisMondayUsageGrowthRate = 'ThisMondayUsageGrowthRate' in params ? params.ThisMondayUsageGrowthRate : null;
|
|
133
|
+
this.LastMondayUsageGrowthRate = 'LastMondayUsageGrowthRate' in params ? params.LastMondayUsageGrowthRate : null;
|
|
134
|
+
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Extended information of CDZ resource water level data, including availability zone local time and wait for data.
|
|
140
|
+
* @class
|
|
141
|
+
*/
|
|
142
|
+
class ExtraInfo extends AbstractModel {
|
|
143
|
+
constructor(){
|
|
144
|
+
super();
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Cloud dedicated zone local time this monday date.
|
|
148
|
+
* @type {string || null}
|
|
149
|
+
*/
|
|
150
|
+
this.ThisMondayLocalDate = null;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Cloud dedicated zone local time last monday date.
|
|
154
|
+
* @type {string || null}
|
|
155
|
+
*/
|
|
156
|
+
this.LastMondayLocalDate = null;
|
|
157
|
+
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @private
|
|
162
|
+
*/
|
|
163
|
+
deserialize(params) {
|
|
164
|
+
if (!params) {
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
this.ThisMondayLocalDate = 'ThisMondayLocalDate' in params ? params.ThisMondayLocalDate : null;
|
|
168
|
+
this.LastMondayLocalDate = 'LastMondayLocalDate' in params ? params.LastMondayLocalDate : null;
|
|
169
|
+
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Details of the CDZ resource water level, corresponding to a specific vertical product.
|
|
175
|
+
* @class
|
|
176
|
+
*/
|
|
177
|
+
class CloudDedicatedZoneResourceSummaryInfo extends AbstractModel {
|
|
178
|
+
constructor(){
|
|
179
|
+
super();
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Product name
|
|
183
|
+
* @type {string || null}
|
|
184
|
+
*/
|
|
185
|
+
this.ProductName = null;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Subproduct name
|
|
189
|
+
* @type {string || null}
|
|
190
|
+
*/
|
|
191
|
+
this.SubProductName = null;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Statistical detail of the resource.
|
|
195
|
+
* @type {Array.<CloudDedicatedZoneResourceStatisticsInfo> || null}
|
|
196
|
+
*/
|
|
197
|
+
this.Statistics = null;
|
|
198
|
+
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @private
|
|
203
|
+
*/
|
|
204
|
+
deserialize(params) {
|
|
205
|
+
if (!params) {
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
this.ProductName = 'ProductName' in params ? params.ProductName : null;
|
|
209
|
+
this.SubProductName = 'SubProductName' in params ? params.SubProductName : null;
|
|
210
|
+
|
|
211
|
+
if (params.Statistics) {
|
|
212
|
+
this.Statistics = new Array();
|
|
213
|
+
for (let z in params.Statistics) {
|
|
214
|
+
let obj = new CloudDedicatedZoneResourceStatisticsInfo();
|
|
215
|
+
obj.deserialize(params.Statistics[z]);
|
|
216
|
+
this.Statistics.push(obj);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* DescribeCloudDedicatedZoneResourceSummary response structure.
|
|
225
|
+
* @class
|
|
226
|
+
*/
|
|
227
|
+
class DescribeCloudDedicatedZoneResourceSummaryResponse extends AbstractModel {
|
|
228
|
+
constructor(){
|
|
229
|
+
super();
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Resource utilization.
|
|
233
|
+
* @type {Array.<CloudDedicatedZoneResourceSummaryInfo> || null}
|
|
234
|
+
*/
|
|
235
|
+
this.ResourceSummarySet = null;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Extended information of resource utilization.
|
|
239
|
+
* @type {ExtraInfo || null}
|
|
240
|
+
*/
|
|
241
|
+
this.ExtraInfo = null;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* 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.
|
|
245
|
+
* @type {string || null}
|
|
246
|
+
*/
|
|
247
|
+
this.RequestId = null;
|
|
248
|
+
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @private
|
|
253
|
+
*/
|
|
254
|
+
deserialize(params) {
|
|
255
|
+
if (!params) {
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
if (params.ResourceSummarySet) {
|
|
260
|
+
this.ResourceSummarySet = new Array();
|
|
261
|
+
for (let z in params.ResourceSummarySet) {
|
|
262
|
+
let obj = new CloudDedicatedZoneResourceSummaryInfo();
|
|
263
|
+
obj.deserialize(params.ResourceSummarySet[z]);
|
|
264
|
+
this.ResourceSummarySet.push(obj);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
if (params.ExtraInfo) {
|
|
269
|
+
let obj = new ExtraInfo();
|
|
270
|
+
obj.deserialize(params.ExtraInfo)
|
|
271
|
+
this.ExtraInfo = obj;
|
|
272
|
+
}
|
|
273
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
274
|
+
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
module.exports = {
|
|
279
|
+
DescribeCloudDedicatedZoneResourceSummaryRequest: DescribeCloudDedicatedZoneResourceSummaryRequest,
|
|
280
|
+
CloudDedicatedZoneResourceStatisticsInfo: CloudDedicatedZoneResourceStatisticsInfo,
|
|
281
|
+
ExtraInfo: ExtraInfo,
|
|
282
|
+
CloudDedicatedZoneResourceSummaryInfo: CloudDedicatedZoneResourceSummaryInfo,
|
|
283
|
+
DescribeCloudDedicatedZoneResourceSummaryResponse: DescribeCloudDedicatedZoneResourceSummaryResponse,
|
|
284
|
+
|
|
285
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.1257";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -28,7 +28,7 @@ const HostResource = models.HostResource;
|
|
|
28
28
|
const DeleteDisasterRecoverGroupsRequest = models.DeleteDisasterRecoverGroupsRequest;
|
|
29
29
|
const DescribeInstancesOperationLimitRequest = models.DescribeInstancesOperationLimitRequest;
|
|
30
30
|
const TerminateInstancesResponse = models.TerminateInstancesResponse;
|
|
31
|
-
const
|
|
31
|
+
const ModifyInstancesChargeTypeResponse = models.ModifyInstancesChargeTypeResponse;
|
|
32
32
|
const DescribeZonesRequest = models.DescribeZonesRequest;
|
|
33
33
|
const InquiryPriceResetInstancesInternetMaxBandwidthResponse = models.InquiryPriceResetInstancesInternetMaxBandwidthResponse;
|
|
34
34
|
const Metadata = models.Metadata;
|
|
@@ -58,7 +58,7 @@ const DescribeInstancesStatusResponse = models.DescribeInstancesStatusResponse;
|
|
|
58
58
|
const ZoneInfo = models.ZoneInfo;
|
|
59
59
|
const ModifyLaunchTemplateDefaultVersionResponse = models.ModifyLaunchTemplateDefaultVersionResponse;
|
|
60
60
|
const LaunchTemplateVersionInfo = models.LaunchTemplateVersionInfo;
|
|
61
|
-
const
|
|
61
|
+
const InquiryPriceModifyInstancesChargeTypeResponse = models.InquiryPriceModifyInstancesChargeTypeResponse;
|
|
62
62
|
const ImportKeyPairResponse = models.ImportKeyPairResponse;
|
|
63
63
|
const DescribeKeyPairsResponse = models.DescribeKeyPairsResponse;
|
|
64
64
|
const ResetInstancesPasswordRequest = models.ResetInstancesPasswordRequest;
|
|
@@ -69,6 +69,7 @@ const ModifyInstancesVpcAttributeResponse = models.ModifyInstancesVpcAttributeRe
|
|
|
69
69
|
const CpuTopology = models.CpuTopology;
|
|
70
70
|
const CreateKeyPairResponse = models.CreateKeyPairResponse;
|
|
71
71
|
const DeleteKeyPairsResponse = models.DeleteKeyPairsResponse;
|
|
72
|
+
const ModifyInstancesChargeTypeRequest = models.ModifyInstancesChargeTypeRequest;
|
|
72
73
|
const EnterRescueModeRequest = models.EnterRescueModeRequest;
|
|
73
74
|
const TagSpecification = models.TagSpecification;
|
|
74
75
|
const ModifyImageSharePermissionRequest = models.ModifyImageSharePermissionRequest;
|
|
@@ -78,8 +79,9 @@ const InquiryPriceResizeInstanceDisksRequest = models.InquiryPriceResizeInstance
|
|
|
78
79
|
const RunInstancesResponse = models.RunInstancesResponse;
|
|
79
80
|
const InstanceAttribute = models.InstanceAttribute;
|
|
80
81
|
const ReservedInstancePrice = models.ReservedInstancePrice;
|
|
82
|
+
const ResetInstancesInternetMaxBandwidthResponse = models.ResetInstancesInternetMaxBandwidthResponse;
|
|
81
83
|
const ModifyInstancesAttributeResponse = models.ModifyInstancesAttributeResponse;
|
|
82
|
-
const
|
|
84
|
+
const ModifyImageSharePermissionResponse = models.ModifyImageSharePermissionResponse;
|
|
83
85
|
const DescribeInstancesOperationLimitResponse = models.DescribeInstancesOperationLimitResponse;
|
|
84
86
|
const SyncImagesResponse = models.SyncImagesResponse;
|
|
85
87
|
const DescribeZoneInstanceConfigInfosResponse = models.DescribeZoneInstanceConfigInfosResponse;
|
|
@@ -93,6 +95,7 @@ const RunSecurityServiceEnabled = models.RunSecurityServiceEnabled;
|
|
|
93
95
|
const Placement = models.Placement;
|
|
94
96
|
const DescribeDisasterRecoverGroupsRequest = models.DescribeDisasterRecoverGroupsRequest;
|
|
95
97
|
const ModifyKeyPairAttributeResponse = models.ModifyKeyPairAttributeResponse;
|
|
98
|
+
const ModifyInstancesRenewFlagRequest = models.ModifyInstancesRenewFlagRequest;
|
|
96
99
|
const SyncImagesRequest = models.SyncImagesRequest;
|
|
97
100
|
const DisassociateInstancesKeyPairsRequest = models.DisassociateInstancesKeyPairsRequest;
|
|
98
101
|
const DescribeImageQuotaRequest = models.DescribeImageQuotaRequest;
|
|
@@ -124,6 +127,7 @@ const DeleteDisasterRecoverGroupsResponse = models.DeleteDisasterRecoverGroupsRe
|
|
|
124
127
|
const HostItem = models.HostItem;
|
|
125
128
|
const Externals = models.Externals;
|
|
126
129
|
const ConvertOperatingSystemsResponse = models.ConvertOperatingSystemsResponse;
|
|
130
|
+
const InquiryPriceModifyInstancesChargeTypeRequest = models.InquiryPriceModifyInstancesChargeTypeRequest;
|
|
127
131
|
const CreateImageRequest = models.CreateImageRequest;
|
|
128
132
|
const Instance = models.Instance;
|
|
129
133
|
const CreateLaunchTemplateVersionRequest = models.CreateLaunchTemplateVersionRequest;
|
|
@@ -351,14 +355,17 @@ class CvmClient extends AbstractClient {
|
|
|
351
355
|
}
|
|
352
356
|
|
|
353
357
|
/**
|
|
354
|
-
* This API is used to
|
|
355
|
-
|
|
356
|
-
|
|
358
|
+
* This API is used to inquire about the price for switching billing modes of instance.
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
This API is used to indicate that instances with no charge when shut down, instances of the model families Batch Computing BC1 and Batch Computing BS1, instances of scheduled termination, and spot instances do not support this operation.
|
|
362
|
+
* @param {InquiryPriceModifyInstancesChargeTypeRequest} req
|
|
363
|
+
* @param {function(string, InquiryPriceModifyInstancesChargeTypeResponse):void} cb
|
|
357
364
|
* @public
|
|
358
365
|
*/
|
|
359
|
-
|
|
360
|
-
let resp = new
|
|
361
|
-
this.request("
|
|
366
|
+
InquiryPriceModifyInstancesChargeType(req, cb) {
|
|
367
|
+
let resp = new InquiryPriceModifyInstancesChargeTypeResponse();
|
|
368
|
+
this.request("InquiryPriceModifyInstancesChargeType", req, resp, cb);
|
|
362
369
|
}
|
|
363
370
|
|
|
364
371
|
/**
|
|
@@ -383,6 +390,23 @@ class CvmClient extends AbstractClient {
|
|
|
383
390
|
this.request("AssociateSecurityGroups", req, resp, cb);
|
|
384
391
|
}
|
|
385
392
|
|
|
393
|
+
/**
|
|
394
|
+
* This API is used to modify attributes of a key pair.
|
|
395
|
+
|
|
396
|
+
* Modify the name and description information of the key pair specified by the key pair ID.
|
|
397
|
+
* The key pair name should not be the same as the name of an existing key pair.
|
|
398
|
+
* The key pair ID is the unique identifier of a key pair and cannot be modified.
|
|
399
|
+
|
|
400
|
+
* Either the key pair name or description information should be specified, and both can also be specified simultaneously.
|
|
401
|
+
* @param {ModifyKeyPairAttributeRequest} req
|
|
402
|
+
* @param {function(string, ModifyKeyPairAttributeResponse):void} cb
|
|
403
|
+
* @public
|
|
404
|
+
*/
|
|
405
|
+
ModifyKeyPairAttribute(req, cb) {
|
|
406
|
+
let resp = new ModifyKeyPairAttributeResponse();
|
|
407
|
+
this.request("ModifyKeyPairAttribute", req, resp, cb);
|
|
408
|
+
}
|
|
409
|
+
|
|
386
410
|
/**
|
|
387
411
|
* This API is used to query the configurations of models in an availability zone.
|
|
388
412
|
* @param {DescribeZoneInstanceConfigInfosRequest} req
|
|
@@ -1010,20 +1034,14 @@ This API is used to query the renewal price of monthly subscription instances.
|
|
|
1010
1034
|
}
|
|
1011
1035
|
|
|
1012
1036
|
/**
|
|
1013
|
-
* This API is used to
|
|
1014
|
-
|
|
1015
|
-
*
|
|
1016
|
-
* The key pair name should not be the same as the name of an existing key pair.
|
|
1017
|
-
* The key pair ID is the unique identifier of a key pair and cannot be modified.
|
|
1018
|
-
|
|
1019
|
-
* Either the key pair name or description information should be specified, and both can also be specified simultaneously.
|
|
1020
|
-
* @param {ModifyKeyPairAttributeRequest} req
|
|
1021
|
-
* @param {function(string, ModifyKeyPairAttributeResponse):void} cb
|
|
1037
|
+
* This API is used to query the price of creating instances. You can only use this API for instances whose configuration is within the purchase limit. For more information, see [RunInstances](https://intl.cloud.tencent.com/document/api/213/15730?from_cn_redirect=1).
|
|
1038
|
+
* @param {InquiryPriceRunInstancesRequest} req
|
|
1039
|
+
* @param {function(string, InquiryPriceRunInstancesResponse):void} cb
|
|
1022
1040
|
* @public
|
|
1023
1041
|
*/
|
|
1024
|
-
|
|
1025
|
-
let resp = new
|
|
1026
|
-
this.request("
|
|
1042
|
+
InquiryPriceRunInstances(req, cb) {
|
|
1043
|
+
let resp = new InquiryPriceRunInstancesResponse();
|
|
1044
|
+
this.request("InquiryPriceRunInstances", req, resp, cb);
|
|
1027
1045
|
}
|
|
1028
1046
|
|
|
1029
1047
|
/**
|
|
@@ -1086,19 +1104,17 @@ This API is used to query the renewal price of monthly subscription instances.
|
|
|
1086
1104
|
}
|
|
1087
1105
|
|
|
1088
1106
|
/**
|
|
1089
|
-
* This API is used to
|
|
1107
|
+
* This API is used to switch the billing mode of an instance.
|
|
1090
1108
|
|
|
1091
|
-
|
|
1092
|
-
* You
|
|
1093
|
-
*
|
|
1094
|
-
*
|
|
1095
|
-
* @param {ModifyInstancesProjectRequest} req
|
|
1096
|
-
* @param {function(string, ModifyInstancesProjectResponse):void} cb
|
|
1109
|
+
This API is used to perform operations that do not support instances with no charge when shut down, instances of the model families Batch Compute BC1 and Batch Compute BS1, or instances of scheduled termination.
|
|
1110
|
+
* You can query the result of the instance operation by calling the API [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5). If the latest operation status (LatestOperationState) of the instance is **SUCCESS**, the operation is successful.
|
|
1111
|
+
* @param {ModifyInstancesChargeTypeRequest} req
|
|
1112
|
+
* @param {function(string, ModifyInstancesChargeTypeResponse):void} cb
|
|
1097
1113
|
* @public
|
|
1098
1114
|
*/
|
|
1099
|
-
|
|
1100
|
-
let resp = new
|
|
1101
|
-
this.request("
|
|
1115
|
+
ModifyInstancesChargeType(req, cb) {
|
|
1116
|
+
let resp = new ModifyInstancesChargeTypeResponse();
|
|
1117
|
+
this.request("ModifyInstancesChargeType", req, resp, cb);
|
|
1102
1118
|
}
|
|
1103
1119
|
|
|
1104
1120
|
/**
|
|
@@ -1266,6 +1282,22 @@ This API is used to ensure your account balance is sufficient for renewal. You c
|
|
|
1266
1282
|
this.request("PurchaseReservedInstancesOffering", req, resp, cb);
|
|
1267
1283
|
}
|
|
1268
1284
|
|
|
1285
|
+
/**
|
|
1286
|
+
* This API is used to change the project to which an instance is assigned.
|
|
1287
|
+
|
|
1288
|
+
* Project is a virtual concept. You can create multiple projects under one account, manage different resources in each project, and assign different instances to different projects. You may use the [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) API to query instances and use the project ID to filter the results.
|
|
1289
|
+
* You cannot modify the project of an instance that is bound to a load balancer. You need to unbind the load balancer from the instance by using the [DeregisterInstancesFromLoadBalancer](https://intl.cloud.tencent.com/document/api/214/1258?from_cn_redirect=1) API before using this API.
|
|
1290
|
+
* Batch operations are supported. Up to 100 instances per request is allowed.
|
|
1291
|
+
* You can use the API [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) to query the operation result. If the `LatestOperationState` in the response is `SUCCESS`, the operation is successful.
|
|
1292
|
+
* @param {ModifyInstancesProjectRequest} req
|
|
1293
|
+
* @param {function(string, ModifyInstancesProjectResponse):void} cb
|
|
1294
|
+
* @public
|
|
1295
|
+
*/
|
|
1296
|
+
ModifyInstancesProject(req, cb) {
|
|
1297
|
+
let resp = new ModifyInstancesProjectResponse();
|
|
1298
|
+
this.request("ModifyInstancesProject", req, resp, cb);
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1269
1301
|
/**
|
|
1270
1302
|
* This API is used to disassociate security groups from instances.
|
|
1271
1303
|
* @param {DisassociateSecurityGroupsRequest} req
|