tencentcloud-sdk-nodejs-intl-en 3.0.1350 → 3.0.1351
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/common/sdk_version.js +1 -1
- package/tencentcloud/edgezone/index.js +3 -0
- package/tencentcloud/edgezone/v20260401/edgezone_client.js +280 -0
- package/tencentcloud/edgezone/v20260401/index.js +4 -0
- package/tencentcloud/edgezone/v20260401/models.js +2349 -0
- package/tencentcloud/index.js +1 -0
- package/tencentcloud/mdl/v20200326/models.js +3 -3
- package/tencentcloud/tcsas/v20250106/models.js +213 -100
- package/tencentcloud/tcsas/v20250106/tcsas_client.js +17 -3
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.1351";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -0,0 +1,280 @@
|
|
|
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 TerminateInstancesRequest = models.TerminateInstancesRequest;
|
|
20
|
+
const DescribeInstanceTypesResponse = models.DescribeInstanceTypesResponse;
|
|
21
|
+
const DescribePrivateNetworkInstancesRequest = models.DescribePrivateNetworkInstancesRequest;
|
|
22
|
+
const DescribePublicNetworkInstancesResponse = models.DescribePublicNetworkInstancesResponse;
|
|
23
|
+
const DeletePublicNetworkInstanceRequest = models.DeletePublicNetworkInstanceRequest;
|
|
24
|
+
const TerminateInstancesResponse = models.TerminateInstancesResponse;
|
|
25
|
+
const CreateInstancesRequest = models.CreateInstancesRequest;
|
|
26
|
+
const DescribeInstanceTypesRequest = models.DescribeInstanceTypesRequest;
|
|
27
|
+
const PrivateNetworkInstanceInfo = models.PrivateNetworkInstanceInfo;
|
|
28
|
+
const IpInfo = models.IpInfo;
|
|
29
|
+
const DeletePublicNetworkInstanceResponse = models.DeletePublicNetworkInstanceResponse;
|
|
30
|
+
const ModifyPublicNetworkInstanceResponse = models.ModifyPublicNetworkInstanceResponse;
|
|
31
|
+
const CreatePrivateNetworkInstanceRequest = models.CreatePrivateNetworkInstanceRequest;
|
|
32
|
+
const ModifyPrivateNetworkInstanceRequest = models.ModifyPrivateNetworkInstanceRequest;
|
|
33
|
+
const DescribeZonesRequest = models.DescribeZonesRequest;
|
|
34
|
+
const DescribePublicNetworkInstancesRequest = models.DescribePublicNetworkInstancesRequest;
|
|
35
|
+
const InstanceTypeQuota = models.InstanceTypeQuota;
|
|
36
|
+
const ModifyPublicNetworkInstanceRequest = models.ModifyPublicNetworkInstanceRequest;
|
|
37
|
+
const ReleasePublicIpRequest = models.ReleasePublicIpRequest;
|
|
38
|
+
const DescribeInstancesResponse = models.DescribeInstancesResponse;
|
|
39
|
+
const DescribeInstancesRequest = models.DescribeInstancesRequest;
|
|
40
|
+
const PublicNetworkSegment = models.PublicNetworkSegment;
|
|
41
|
+
const ReleasePublicIpResponse = models.ReleasePublicIpResponse;
|
|
42
|
+
const DescribeZoneDataResponse = models.DescribeZoneDataResponse;
|
|
43
|
+
const DeletePrivateNetworkInstanceRequest = models.DeletePrivateNetworkInstanceRequest;
|
|
44
|
+
const DescribePrivateNetworkInstancesResponse = models.DescribePrivateNetworkInstancesResponse;
|
|
45
|
+
const CreatePrivateNetworkInstanceResponse = models.CreatePrivateNetworkInstanceResponse;
|
|
46
|
+
const ModifyInstanceAttributeRequest = models.ModifyInstanceAttributeRequest;
|
|
47
|
+
const ApplyPublicIpsRequest = models.ApplyPublicIpsRequest;
|
|
48
|
+
const DescribePublicIpsResponse = models.DescribePublicIpsResponse;
|
|
49
|
+
const DeletePrivateNetworkInstanceResponse = models.DeletePrivateNetworkInstanceResponse;
|
|
50
|
+
const ModifyPrivateNetworkInstanceResponse = models.ModifyPrivateNetworkInstanceResponse;
|
|
51
|
+
const ApplyPublicIpsResponse = models.ApplyPublicIpsResponse;
|
|
52
|
+
const SwitchData = models.SwitchData;
|
|
53
|
+
const CreateInstancesResponse = models.CreateInstancesResponse;
|
|
54
|
+
const Instance = models.Instance;
|
|
55
|
+
const ZoneInfo = models.ZoneInfo;
|
|
56
|
+
const ModifyInstanceAttributeResponse = models.ModifyInstanceAttributeResponse;
|
|
57
|
+
const DescribeZonesResponse = models.DescribeZonesResponse;
|
|
58
|
+
const PublicNetworkInstanceInfo = models.PublicNetworkInstanceInfo;
|
|
59
|
+
const CreatePublicNetworkInstanceRequest = models.CreatePublicNetworkInstanceRequest;
|
|
60
|
+
const FailedInstance = models.FailedInstance;
|
|
61
|
+
const CreatePublicNetworkInstanceResponse = models.CreatePublicNetworkInstanceResponse;
|
|
62
|
+
const DescribeZoneDataRequest = models.DescribeZoneDataRequest;
|
|
63
|
+
const DescribePublicIpsRequest = models.DescribePublicIpsRequest;
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* edgezone client
|
|
68
|
+
* @class
|
|
69
|
+
*/
|
|
70
|
+
class EdgezoneClient extends AbstractClient {
|
|
71
|
+
|
|
72
|
+
constructor(credential, region, profile) {
|
|
73
|
+
super("edgezone.intl.tencentcloudapi.com", "2026-04-01", credential, region, profile);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Create a private network instance. A user can only create one private network instance in an availability zone. The subnet range is collectively determined by both parameters: Network (network number) and Mask (bit number of the mask). Network must be a valid network address from one of the three RFC 1918 private address ranges: 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16, and all host bits must be 0 (meaning the combination of Network and Mask cannot have any host bits set, such as 10.0.0.1/24 is illegal, use 10.0.0.0/24 instead). The maximum Mask is unified as 28, and the minimum is determined by the address range it belongs to: 10.x.x.x allows 8–28, 172.16.x.x allows 12–28, and 192.168.x.x allows 16–28.
|
|
78
|
+
* @param {CreatePrivateNetworkInstanceRequest} req
|
|
79
|
+
* @param {function(string, CreatePrivateNetworkInstanceResponse):void} cb
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
CreatePrivateNetworkInstance(req, cb) {
|
|
83
|
+
let resp = new CreatePrivateNetworkInstanceResponse();
|
|
84
|
+
this.request("CreatePrivateNetworkInstance", req, resp, cb);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* This API is used to query physical machine instance list, support by instance ID, instance name, availability zone, instance status with conditional filtering, and support paging query.
|
|
89
|
+
* @param {DescribeInstancesRequest} req
|
|
90
|
+
* @param {function(string, DescribeInstancesResponse):void} cb
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
DescribeInstances(req, cb) {
|
|
94
|
+
let resp = new DescribeInstancesResponse();
|
|
95
|
+
this.request("DescribeInstances", req, resp, cb);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Query the public network Ip information of the user. For public network instances with routing mode set to Static, return all applied public network Ip information. For public network instances with routing mode set to Ospf and Bgp, return Ip range information directly.
|
|
100
|
+
* @param {DescribePublicIpsRequest} req
|
|
101
|
+
* @param {function(string, DescribePublicIpsResponse):void} cb
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
DescribePublicIps(req, cb) {
|
|
105
|
+
let resp = new DescribePublicIpsResponse();
|
|
106
|
+
this.request("DescribePublicIps", req, resp, cb);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Delete a private network instance
|
|
111
|
+
* @param {DeletePrivateNetworkInstanceRequest} req
|
|
112
|
+
* @param {function(string, DeletePrivateNetworkInstanceResponse):void} cb
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
DeletePrivateNetworkInstance(req, cb) {
|
|
116
|
+
let resp = new DeletePrivateNetworkInstanceResponse();
|
|
117
|
+
this.request("DeletePrivateNetworkInstance", req, resp, cb);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* This API is used to terminate a physical machine instance and free up resources. It synchronously releases network resources (IP recycling) and updates status to terminating, while performing disk cleanup asynchronously in the background. It supports partially successful operations.
|
|
122
|
+
* @param {TerminateInstancesRequest} req
|
|
123
|
+
* @param {function(string, TerminateInstancesResponse):void} cb
|
|
124
|
+
* @public
|
|
125
|
+
*/
|
|
126
|
+
TerminateInstances(req, cb) {
|
|
127
|
+
let resp = new TerminateInstancesResponse();
|
|
128
|
+
this.request("TerminateInstances", req, resp, cb);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Batch release IPv4 addresses assigned to STATIC public network instances but not bound to physical servers
|
|
133
|
+
This API is applicable only to STATIC mode instances. The CIDR of BGP/OSPF instances is automatically returned during deletion with no need to manually release single IP addresses.
|
|
134
|
+
* @param {ReleasePublicIpRequest} req
|
|
135
|
+
* @param {function(string, ReleasePublicIpResponse):void} cb
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
ReleasePublicIp(req, cb) {
|
|
139
|
+
let resp = new ReleasePublicIpResponse();
|
|
140
|
+
this.request("ReleasePublicIp", req, resp, cb);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Query private network instances, support through parameters such as private network instance ID, instance name, and availability zone id.
|
|
145
|
+
* @param {DescribePrivateNetworkInstancesRequest} req
|
|
146
|
+
* @param {function(string, DescribePrivateNetworkInstancesResponse):void} cb
|
|
147
|
+
* @public
|
|
148
|
+
*/
|
|
149
|
+
DescribePrivateNetworkInstances(req, cb) {
|
|
150
|
+
let resp = new DescribePrivateNetworkInstancesResponse();
|
|
151
|
+
this.request("DescribePrivateNetworkInstances", req, resp, cb);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Modify public network instance info
|
|
156
|
+
* @param {DeletePublicNetworkInstanceRequest} req
|
|
157
|
+
* @param {function(string, DeletePublicNetworkInstanceResponse):void} cb
|
|
158
|
+
* @public
|
|
159
|
+
*/
|
|
160
|
+
DeletePublicNetworkInstance(req, cb) {
|
|
161
|
+
let resp = new DeletePublicNetworkInstanceResponse();
|
|
162
|
+
this.request("DeletePublicNetworkInstance", req, resp, cb);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Cross-regional aggregate query returns the AZ list for the specified AppId in ALL configured regions. The local region directly performs a database query, while remote regions send HTTP requests to each region's DescribeAppZones API and merge the results.
|
|
167
|
+
* @param {DescribeZonesRequest} req
|
|
168
|
+
* @param {function(string, DescribeZonesResponse):void} cb
|
|
169
|
+
* @public
|
|
170
|
+
*/
|
|
171
|
+
DescribeZones(req, cb) {
|
|
172
|
+
let resp = new DescribeZonesResponse();
|
|
173
|
+
this.request("DescribeZones", req, resp, cb);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* This API is used to query the model quota list under the account by availability zone dimensionality based on AppId. If a Zone is input, it returns the model quota under the designated availability zone. If not, it returns the model quota of all AZs under the account.
|
|
178
|
+
* @param {DescribeInstanceTypesRequest} req
|
|
179
|
+
* @param {function(string, DescribeInstanceTypesResponse):void} cb
|
|
180
|
+
* @public
|
|
181
|
+
*/
|
|
182
|
+
DescribeInstanceTypes(req, cb) {
|
|
183
|
+
let resp = new DescribeInstanceTypesResponse();
|
|
184
|
+
this.request("DescribeInstanceTypes", req, resp, cb);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* This API is used to submit a request for multiple IP addresses from the static IP pool to specify a public network instance (random allocation). Need to check user quota before applying.
|
|
189
|
+
This API is applicable only to public network instances with `RouteMode=static`. Calling this API for BGP/OSPF instances will return an error.
|
|
190
|
+
* @param {ApplyPublicIpsRequest} req
|
|
191
|
+
* @param {function(string, ApplyPublicIpsResponse):void} cb
|
|
192
|
+
* @public
|
|
193
|
+
*/
|
|
194
|
+
ApplyPublicIps(req, cb) {
|
|
195
|
+
let resp = new ApplyPublicIpsResponse();
|
|
196
|
+
this.request("ApplyPublicIps", req, resp, cb);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Modify private network instance info
|
|
201
|
+
* @param {ModifyPrivateNetworkInstanceRequest} req
|
|
202
|
+
* @param {function(string, ModifyPrivateNetworkInstanceResponse):void} cb
|
|
203
|
+
* @public
|
|
204
|
+
*/
|
|
205
|
+
ModifyPrivateNetworkInstance(req, cb) {
|
|
206
|
+
let resp = new ModifyPrivateNetworkInstanceResponse();
|
|
207
|
+
this.request("ModifyPrivateNetworkInstance", req, resp, cb);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* This API is used to create a physical machine instance. The system automatically allocates physical machine resources and completes installation. If the user is not in the current availability zone, the system automatically enables billing. It supports concurrent allocation of physical machine resources and async execution of network assignment and installation tasks.
|
|
212
|
+
* @param {CreateInstancesRequest} req
|
|
213
|
+
* @param {function(string, CreateInstancesResponse):void} cb
|
|
214
|
+
* @public
|
|
215
|
+
*/
|
|
216
|
+
CreateInstances(req, cb) {
|
|
217
|
+
let resp = new CreateInstancesResponse();
|
|
218
|
+
this.request("CreateInstances", req, resp, cb);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* This API is used to modify the attributes of a physical machine instance, supporting modification of the instance name and update of the public IP address (IPv4/IPv6). At least one of InstanceName and NewPublicIp must be input.
|
|
223
|
+
* @param {ModifyInstanceAttributeRequest} req
|
|
224
|
+
* @param {function(string, ModifyInstanceAttributeResponse):void} cb
|
|
225
|
+
* @public
|
|
226
|
+
*/
|
|
227
|
+
ModifyInstanceAttribute(req, cb) {
|
|
228
|
+
let resp = new ModifyInstanceAttributeResponse();
|
|
229
|
+
this.request("ModifyInstanceAttribute", req, resp, cb);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Query statistics by metric name. Data is aggregated at 1-minute intervals.
|
|
234
|
+
* @param {DescribeZoneDataRequest} req
|
|
235
|
+
* @param {function(string, DescribeZoneDataResponse):void} cb
|
|
236
|
+
* @public
|
|
237
|
+
*/
|
|
238
|
+
DescribeZoneData(req, cb) {
|
|
239
|
+
let resp = new DescribeZoneDataResponse();
|
|
240
|
+
this.request("DescribeZoneData", req, resp, cb);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Query public network instance list, support conditional filtering by instance ID, instance name, availability zone, and support paging query.
|
|
245
|
+
* @param {DescribePublicNetworkInstancesRequest} req
|
|
246
|
+
* @param {function(string, DescribePublicNetworkInstancesResponse):void} cb
|
|
247
|
+
* @public
|
|
248
|
+
*/
|
|
249
|
+
DescribePublicNetworkInstances(req, cb) {
|
|
250
|
+
let resp = new DescribePublicNetworkInstancesResponse();
|
|
251
|
+
this.request("DescribePublicNetworkInstances", req, resp, cb);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Modify public network instance info
|
|
256
|
+
* @param {ModifyPublicNetworkInstanceRequest} req
|
|
257
|
+
* @param {function(string, ModifyPublicNetworkInstanceResponse):void} cb
|
|
258
|
+
* @public
|
|
259
|
+
*/
|
|
260
|
+
ModifyPublicNetworkInstance(req, cb) {
|
|
261
|
+
let resp = new ModifyPublicNetworkInstanceResponse();
|
|
262
|
+
this.request("ModifyPublicNetworkInstance", req, resp, cb);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* The user inputs the availability zone ID, public network instance name, network line, and routing mode to create a public network instance. A user can only create one public network instance in an availability zone.
|
|
267
|
+
Public network instances in **static** routing mode require users to proactively apply for and release public IP addresses.
|
|
268
|
+
Public network instances with routing mode set to **OSPF, BGP** automatically allocate public IP ranges when creating and auto release public IP ranges upon termination.
|
|
269
|
+
* @param {CreatePublicNetworkInstanceRequest} req
|
|
270
|
+
* @param {function(string, CreatePublicNetworkInstanceResponse):void} cb
|
|
271
|
+
* @public
|
|
272
|
+
*/
|
|
273
|
+
CreatePublicNetworkInstance(req, cb) {
|
|
274
|
+
let resp = new CreatePublicNetworkInstanceResponse();
|
|
275
|
+
this.request("CreatePublicNetworkInstance", req, resp, cb);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
}
|
|
280
|
+
module.exports = EdgezoneClient;
|