tencentcloud-sdk-nodejs-ags 4.1.164 → 4.1.171
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.
|
@@ -3,6 +3,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
3
3
|
constructor(clientConfig) {
|
|
4
4
|
super("ags.tencentcloudapi.com", "2025-09-20", clientConfig);
|
|
5
5
|
}
|
|
6
|
+
async CreatePreCacheImageTask(req, cb) {
|
|
7
|
+
return this.request("CreatePreCacheImageTask", req, cb);
|
|
8
|
+
}
|
|
6
9
|
async UpdateSandboxInstance(req, cb) {
|
|
7
10
|
return this.request("UpdateSandboxInstance", req, cb);
|
|
8
11
|
}
|
|
@@ -12,12 +15,12 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
12
15
|
async AcquireSandboxInstanceToken(req, cb) {
|
|
13
16
|
return this.request("AcquireSandboxInstanceToken", req, cb);
|
|
14
17
|
}
|
|
18
|
+
async DescribePreCacheImageTask(req, cb) {
|
|
19
|
+
return this.request("DescribePreCacheImageTask", req, cb);
|
|
20
|
+
}
|
|
15
21
|
async DescribeSandboxToolList(req, cb) {
|
|
16
22
|
return this.request("DescribeSandboxToolList", req, cb);
|
|
17
23
|
}
|
|
18
|
-
async StopSandboxInstance(req, cb) {
|
|
19
|
-
return this.request("StopSandboxInstance", req, cb);
|
|
20
|
-
}
|
|
21
24
|
async DescribeAPIKeyList(req, cb) {
|
|
22
25
|
return this.request("DescribeAPIKeyList", req, cb);
|
|
23
26
|
}
|
|
@@ -30,6 +33,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
30
33
|
async DeleteSandboxTool(req, cb) {
|
|
31
34
|
return this.request("DeleteSandboxTool", req, cb);
|
|
32
35
|
}
|
|
36
|
+
async StopSandboxInstance(req, cb) {
|
|
37
|
+
return this.request("StopSandboxInstance", req, cb);
|
|
38
|
+
}
|
|
33
39
|
async DeleteAPIKey(req, cb) {
|
|
34
40
|
return this.request("DeleteAPIKey", req, cb);
|
|
35
41
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { StartSandboxInstanceRequest, StopSandboxInstanceRequest, DescribeSandboxToolListResponse, CreateAPIKeyResponse, DescribeSandboxToolListRequest, CreateSandboxToolRequest, DeleteAPIKeyResponse, UpdateSandboxInstanceResponse,
|
|
2
|
+
import { StartSandboxInstanceRequest, StopSandboxInstanceRequest, DescribeSandboxToolListResponse, CreateAPIKeyResponse, DescribeSandboxToolListRequest, CreateSandboxToolRequest, DescribePreCacheImageTaskResponse, DeleteAPIKeyResponse, UpdateSandboxInstanceResponse, DescribePreCacheImageTaskRequest, CreateSandboxToolResponse, CreateAPIKeyRequest, DeleteSandboxToolResponse, StartSandboxInstanceResponse, AcquireSandboxInstanceTokenRequest, DescribeAPIKeyListResponse, CreatePreCacheImageTaskResponse, DescribeSandboxInstanceListRequest, DescribeAPIKeyListRequest, UpdateSandboxInstanceRequest, DeleteSandboxToolRequest, UpdateSandboxToolResponse, DeleteAPIKeyRequest, AcquireSandboxInstanceTokenResponse, CreatePreCacheImageTaskRequest, UpdateSandboxToolRequest, DescribeSandboxInstanceListResponse, StopSandboxInstanceResponse } from "./ags_models";
|
|
3
3
|
/**
|
|
4
4
|
* ags client
|
|
5
5
|
* @class
|
|
6
6
|
*/
|
|
7
7
|
export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
8
8
|
constructor(clientConfig: TencentCloudCommon.ClientConfig);
|
|
9
|
+
/**
|
|
10
|
+
* 创建镜像预热任务
|
|
11
|
+
*/
|
|
12
|
+
CreatePreCacheImageTask(req: CreatePreCacheImageTaskRequest, cb?: (error: string, rep: CreatePreCacheImageTaskResponse) => void): Promise<CreatePreCacheImageTaskResponse>;
|
|
9
13
|
/**
|
|
10
14
|
* 更新沙箱实例
|
|
11
15
|
*/
|
|
@@ -20,13 +24,13 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
20
24
|
*/
|
|
21
25
|
AcquireSandboxInstanceToken(req: AcquireSandboxInstanceTokenRequest, cb?: (error: string, rep: AcquireSandboxInstanceTokenResponse) => void): Promise<AcquireSandboxInstanceTokenResponse>;
|
|
22
26
|
/**
|
|
23
|
-
*
|
|
27
|
+
* 查询镜像预热任务信息
|
|
24
28
|
*/
|
|
25
|
-
|
|
29
|
+
DescribePreCacheImageTask(req: DescribePreCacheImageTaskRequest, cb?: (error: string, rep: DescribePreCacheImageTaskResponse) => void): Promise<DescribePreCacheImageTaskResponse>;
|
|
26
30
|
/**
|
|
27
|
-
*
|
|
31
|
+
* 查询沙箱工具列表
|
|
28
32
|
*/
|
|
29
|
-
|
|
33
|
+
DescribeSandboxToolList(req: DescribeSandboxToolListRequest, cb?: (error: string, rep: DescribeSandboxToolListResponse) => void): Promise<DescribeSandboxToolListResponse>;
|
|
30
34
|
/**
|
|
31
35
|
* 获取API密钥列表,包含API密钥简略信息,包含名称、创建时间等。
|
|
32
36
|
*/
|
|
@@ -43,6 +47,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
43
47
|
* 删除沙箱工具
|
|
44
48
|
*/
|
|
45
49
|
DeleteSandboxTool(req: DeleteSandboxToolRequest, cb?: (error: string, rep: DeleteSandboxToolResponse) => void): Promise<DeleteSandboxToolResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* 停止沙箱实例
|
|
52
|
+
*/
|
|
53
|
+
StopSandboxInstance(req: StopSandboxInstanceRequest, cb?: (error: string, rep: StopSandboxInstanceResponse) => void): Promise<StopSandboxInstanceResponse>;
|
|
46
54
|
/**
|
|
47
55
|
* 删除API密钥。注意区别于腾讯云Secret ID Secret Key,本接口删除的是Agent Sandbox专用API key。
|
|
48
56
|
*/
|
|
@@ -28,6 +28,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
28
28
|
constructor(clientConfig) {
|
|
29
29
|
super("ags.tencentcloudapi.com", "2025-09-20", clientConfig);
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* 创建镜像预热任务
|
|
33
|
+
*/
|
|
34
|
+
async CreatePreCacheImageTask(req, cb) {
|
|
35
|
+
return this.request("CreatePreCacheImageTask", req, cb);
|
|
36
|
+
}
|
|
31
37
|
/**
|
|
32
38
|
* 更新沙箱实例
|
|
33
39
|
*/
|
|
@@ -48,16 +54,16 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
48
54
|
return this.request("AcquireSandboxInstanceToken", req, cb);
|
|
49
55
|
}
|
|
50
56
|
/**
|
|
51
|
-
*
|
|
57
|
+
* 查询镜像预热任务信息
|
|
52
58
|
*/
|
|
53
|
-
async
|
|
54
|
-
return this.request("
|
|
59
|
+
async DescribePreCacheImageTask(req, cb) {
|
|
60
|
+
return this.request("DescribePreCacheImageTask", req, cb);
|
|
55
61
|
}
|
|
56
62
|
/**
|
|
57
|
-
*
|
|
63
|
+
* 查询沙箱工具列表
|
|
58
64
|
*/
|
|
59
|
-
async
|
|
60
|
-
return this.request("
|
|
65
|
+
async DescribeSandboxToolList(req, cb) {
|
|
66
|
+
return this.request("DescribeSandboxToolList", req, cb);
|
|
61
67
|
}
|
|
62
68
|
/**
|
|
63
69
|
* 获取API密钥列表,包含API密钥简略信息,包含名称、创建时间等。
|
|
@@ -83,6 +89,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
83
89
|
async DeleteSandboxTool(req, cb) {
|
|
84
90
|
return this.request("DeleteSandboxTool", req, cb);
|
|
85
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* 停止沙箱实例
|
|
94
|
+
*/
|
|
95
|
+
async StopSandboxInstance(req, cb) {
|
|
96
|
+
return this.request("StopSandboxInstance", req, cb);
|
|
97
|
+
}
|
|
86
98
|
/**
|
|
87
99
|
* 删除API密钥。注意区别于腾讯云Secret ID Secret Key,本接口删除的是Agent Sandbox专用API key。
|
|
88
100
|
*/
|
|
@@ -223,6 +223,35 @@ export interface HttpGetAction {
|
|
|
223
223
|
*/
|
|
224
224
|
Scheme?: string;
|
|
225
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* DescribePreCacheImageTask返回参数结构体
|
|
228
|
+
*/
|
|
229
|
+
export interface DescribePreCacheImageTaskResponse {
|
|
230
|
+
/**
|
|
231
|
+
* 镜像地址
|
|
232
|
+
*/
|
|
233
|
+
Image?: string;
|
|
234
|
+
/**
|
|
235
|
+
* 镜像 Digest
|
|
236
|
+
*/
|
|
237
|
+
ImageDigest?: string;
|
|
238
|
+
/**
|
|
239
|
+
* 镜像仓库类型:`enterprise`、`personal`。
|
|
240
|
+
*/
|
|
241
|
+
ImageRegistryType?: string;
|
|
242
|
+
/**
|
|
243
|
+
* 镜像预热状态
|
|
244
|
+
*/
|
|
245
|
+
Status?: string;
|
|
246
|
+
/**
|
|
247
|
+
* 镜像预热状态描述
|
|
248
|
+
*/
|
|
249
|
+
Message?: string;
|
|
250
|
+
/**
|
|
251
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
252
|
+
*/
|
|
253
|
+
RequestId?: string;
|
|
254
|
+
}
|
|
226
255
|
/**
|
|
227
256
|
* DeleteAPIKey返回参数结构体
|
|
228
257
|
*/
|
|
@@ -266,6 +295,23 @@ export interface UpdateSandboxInstanceResponse {
|
|
|
266
295
|
*/
|
|
267
296
|
RequestId?: string;
|
|
268
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* DescribePreCacheImageTask请求参数结构体
|
|
300
|
+
*/
|
|
301
|
+
export interface DescribePreCacheImageTaskRequest {
|
|
302
|
+
/**
|
|
303
|
+
* 镜像地址
|
|
304
|
+
*/
|
|
305
|
+
Image: string;
|
|
306
|
+
/**
|
|
307
|
+
* 镜像 Digest
|
|
308
|
+
*/
|
|
309
|
+
ImageDigest: string;
|
|
310
|
+
/**
|
|
311
|
+
* 镜像仓库类型:`enterprise`、`personal`。
|
|
312
|
+
*/
|
|
313
|
+
ImageRegistryType: string;
|
|
314
|
+
}
|
|
269
315
|
/**
|
|
270
316
|
* 挂载存储配置
|
|
271
317
|
*/
|
|
@@ -293,13 +339,17 @@ export interface ResourceConfiguration {
|
|
|
293
339
|
Memory?: string;
|
|
294
340
|
}
|
|
295
341
|
/**
|
|
296
|
-
*
|
|
342
|
+
* CreateSandboxTool返回参数结构体
|
|
297
343
|
*/
|
|
298
|
-
export interface
|
|
344
|
+
export interface CreateSandboxToolResponse {
|
|
299
345
|
/**
|
|
300
|
-
*
|
|
346
|
+
* 创建的沙箱工具 ID
|
|
301
347
|
*/
|
|
302
|
-
ToolId
|
|
348
|
+
ToolId?: string;
|
|
349
|
+
/**
|
|
350
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
351
|
+
*/
|
|
352
|
+
RequestId?: string;
|
|
303
353
|
}
|
|
304
354
|
/**
|
|
305
355
|
* CreateAPIKey请求参数结构体
|
|
@@ -537,6 +587,27 @@ export interface DescribeAPIKeyListResponse {
|
|
|
537
587
|
*/
|
|
538
588
|
RequestId?: string;
|
|
539
589
|
}
|
|
590
|
+
/**
|
|
591
|
+
* CreatePreCacheImageTask返回参数结构体
|
|
592
|
+
*/
|
|
593
|
+
export interface CreatePreCacheImageTaskResponse {
|
|
594
|
+
/**
|
|
595
|
+
* 镜像地址
|
|
596
|
+
*/
|
|
597
|
+
Image?: string;
|
|
598
|
+
/**
|
|
599
|
+
* 镜像 Digest
|
|
600
|
+
*/
|
|
601
|
+
ImageDigest?: string;
|
|
602
|
+
/**
|
|
603
|
+
* 镜像仓库类型:`enterprise`、`personal`。
|
|
604
|
+
*/
|
|
605
|
+
ImageRegistryType?: string;
|
|
606
|
+
/**
|
|
607
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
608
|
+
*/
|
|
609
|
+
RequestId?: string;
|
|
610
|
+
}
|
|
540
611
|
/**
|
|
541
612
|
* DescribeSandboxInstanceList请求参数结构体
|
|
542
613
|
*/
|
|
@@ -621,17 +692,13 @@ export interface UpdateSandboxInstanceRequest {
|
|
|
621
692
|
Timeout?: string;
|
|
622
693
|
}
|
|
623
694
|
/**
|
|
624
|
-
*
|
|
695
|
+
* DeleteSandboxTool请求参数结构体
|
|
625
696
|
*/
|
|
626
|
-
export interface
|
|
627
|
-
/**
|
|
628
|
-
* 创建的沙箱工具 ID
|
|
629
|
-
*/
|
|
630
|
-
ToolId?: string;
|
|
697
|
+
export interface DeleteSandboxToolRequest {
|
|
631
698
|
/**
|
|
632
|
-
*
|
|
699
|
+
* 沙箱工具ID
|
|
633
700
|
*/
|
|
634
|
-
|
|
701
|
+
ToolId: string;
|
|
635
702
|
}
|
|
636
703
|
/**
|
|
637
704
|
* UpdateSandboxTool返回参数结构体
|
|
@@ -711,25 +778,17 @@ export interface ProbeConfiguration {
|
|
|
711
778
|
FailureThreshold?: number;
|
|
712
779
|
}
|
|
713
780
|
/**
|
|
714
|
-
*
|
|
781
|
+
* CreatePreCacheImageTask请求参数结构体
|
|
715
782
|
*/
|
|
716
|
-
export interface
|
|
717
|
-
/**
|
|
718
|
-
* 存储挂载配置名称
|
|
719
|
-
*/
|
|
720
|
-
Name?: string;
|
|
721
|
-
/**
|
|
722
|
-
* 存储配置
|
|
723
|
-
*/
|
|
724
|
-
StorageSource?: StorageSource;
|
|
783
|
+
export interface CreatePreCacheImageTaskRequest {
|
|
725
784
|
/**
|
|
726
|
-
*
|
|
785
|
+
* 镜像地址
|
|
727
786
|
*/
|
|
728
|
-
|
|
787
|
+
Image: string;
|
|
729
788
|
/**
|
|
730
|
-
*
|
|
789
|
+
* 镜像仓库类型:`enterprise`、`personal`。
|
|
731
790
|
*/
|
|
732
|
-
|
|
791
|
+
ImageRegistryType: string;
|
|
733
792
|
}
|
|
734
793
|
/**
|
|
735
794
|
* 标签
|
|
@@ -769,6 +828,27 @@ export interface UpdateSandboxToolRequest {
|
|
|
769
828
|
*/
|
|
770
829
|
CustomConfiguration?: CustomConfiguration;
|
|
771
830
|
}
|
|
831
|
+
/**
|
|
832
|
+
* 沙箱工具中实例存储挂载配置
|
|
833
|
+
*/
|
|
834
|
+
export interface StorageMount {
|
|
835
|
+
/**
|
|
836
|
+
* 存储挂载配置名称
|
|
837
|
+
*/
|
|
838
|
+
Name?: string;
|
|
839
|
+
/**
|
|
840
|
+
* 存储配置
|
|
841
|
+
*/
|
|
842
|
+
StorageSource?: StorageSource;
|
|
843
|
+
/**
|
|
844
|
+
* 沙箱实例本地挂载路径
|
|
845
|
+
*/
|
|
846
|
+
MountPath?: string;
|
|
847
|
+
/**
|
|
848
|
+
* 存储挂载读写权限配置,默认为false
|
|
849
|
+
*/
|
|
850
|
+
ReadOnly?: boolean;
|
|
851
|
+
}
|
|
772
852
|
/**
|
|
773
853
|
* 环境变量
|
|
774
854
|
*/
|