tencentcloud-sdk-nodejs-ags 4.1.158 → 4.1.163

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-ags",
3
- "version": "4.1.158",
3
+ "version": "4.1.163",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -1,5 +1,5 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { StartSandboxInstanceRequest, StopSandboxInstanceRequest, DescribeSandboxToolListResponse, CreateAPIKeyResponse, DescribeSandboxToolListRequest, CreateSandboxToolRequest, DeleteAPIKeyResponse, UpdateSandboxInstanceResponse, DeleteSandboxToolRequest, CreateAPIKeyRequest, DeleteSandboxToolResponse, StartSandboxInstanceResponse, AcquireSandboxInstanceTokenRequest, DescribeAPIKeyListResponse, DescribeSandboxInstanceListRequest, DescribeAPIKeyListRequest, UpdateSandboxInstanceRequest, CreateSandboxToolResponse, UpdateSandboxToolResponse, DeleteAPIKeyRequest, AcquireSandboxInstanceTokenResponse, StopSandboxInstanceResponse, UpdateSandboxToolRequest, DescribeSandboxInstanceListResponse } from "./ags_models";
2
+ import { StartSandboxInstanceRequest, StopSandboxInstanceRequest, DescribeSandboxToolListResponse, CreateAPIKeyResponse, DescribeSandboxToolListRequest, CreateSandboxToolRequest, DeleteAPIKeyResponse, UpdateSandboxInstanceResponse, DeleteSandboxToolRequest, CreateAPIKeyRequest, DeleteSandboxToolResponse, StartSandboxInstanceResponse, AcquireSandboxInstanceTokenRequest, DescribeAPIKeyListResponse, DescribeSandboxInstanceListRequest, DescribeAPIKeyListRequest, UpdateSandboxInstanceRequest, CreateSandboxToolResponse, UpdateSandboxToolResponse, DeleteAPIKeyRequest, AcquireSandboxInstanceTokenResponse, UpdateSandboxToolRequest, DescribeSandboxInstanceListResponse, StopSandboxInstanceResponse } from "./ags_models";
3
3
  /**
4
4
  * ags client
5
5
  * @class
@@ -39,6 +39,10 @@ export interface StartSandboxInstanceRequest {
39
39
  * 沙箱实例存储挂载配置
40
40
  */
41
41
  MountOptions?: Array<MountOption>;
42
+ /**
43
+ * 沙箱实例自定义配置
44
+ */
45
+ CustomConfiguration?: CustomConfiguration;
42
46
  }
43
47
  /**
44
48
  * 沙箱实例结构体
@@ -84,6 +88,10 @@ export interface SandboxInstance {
84
88
  * 存储挂载选项
85
89
  */
86
90
  MountOptions?: Array<MountOption>;
91
+ /**
92
+ * 沙箱实例自定义配置
93
+ */
94
+ CustomConfiguration?: CustomConfigurationDetail;
87
95
  }
88
96
  /**
89
97
  * StopSandboxInstance请求参数结构体
@@ -162,7 +170,7 @@ export interface CreateSandboxToolRequest {
162
170
  */
163
171
  ToolName: string;
164
172
  /**
165
- * 沙箱工具类型,目前支持:browser、code-interpreter
173
+ * 沙箱工具类型,目前支持:browser、code-interpreter、custom
166
174
  */
167
175
  ToolType: string;
168
176
  /**
@@ -193,6 +201,27 @@ export interface CreateSandboxToolRequest {
193
201
  * 沙箱工具存储配置
194
202
  */
195
203
  StorageMounts?: Array<StorageMount>;
204
+ /**
205
+ * 沙箱工具自定义配置
206
+ */
207
+ CustomConfiguration?: CustomConfiguration;
208
+ }
209
+ /**
210
+ * HTTP GET 探测动作配置
211
+ */
212
+ export interface HttpGetAction {
213
+ /**
214
+ * 路径
215
+ */
216
+ Path?: string;
217
+ /**
218
+ * 端口
219
+ */
220
+ Port?: number;
221
+ /**
222
+ * 协议
223
+ */
224
+ Scheme?: string;
196
225
  }
197
226
  /**
198
227
  * DeleteAPIKey返回参数结构体
@@ -245,6 +274,23 @@ export interface StorageSource {
245
274
  * 对象存储桶配置
246
275
  */
247
276
  Cos?: CosStorageSource;
277
+ /**
278
+ * 镜像卷配置
279
+ */
280
+ Image?: ImageStorageSource;
281
+ }
282
+ /**
283
+ * 资源配置
284
+ */
285
+ export interface ResourceConfiguration {
286
+ /**
287
+ * cpu 资源量
288
+ */
289
+ CPU?: string;
290
+ /**
291
+ * 内存资源量
292
+ */
293
+ Memory?: string;
248
294
  }
249
295
  /**
250
296
  * DeleteSandboxTool请求参数结构体
@@ -286,6 +332,23 @@ export interface DeleteSandboxToolResponse {
286
332
  */
287
333
  RequestId?: string;
288
334
  }
335
+ /**
336
+ * 端口配置
337
+ */
338
+ export interface PortConfiguration {
339
+ /**
340
+ * 端口名
341
+ */
342
+ Name?: string;
343
+ /**
344
+ * 端口
345
+ */
346
+ Port?: number;
347
+ /**
348
+ * 协议
349
+ */
350
+ Protocol?: string;
351
+ }
289
352
  /**
290
353
  * 沙箱工具结构体
291
354
  */
@@ -338,6 +401,10 @@ export interface SandboxTool {
338
401
  * 沙箱工具中实例存储挂载配置
339
402
  */
340
403
  StorageMounts?: Array<StorageMount>;
404
+ /**
405
+ * 沙箱工具自定义配置
406
+ */
407
+ CustomConfiguration?: CustomConfigurationDetail;
341
408
  }
342
409
  /**
343
410
  * 沙箱实例存储挂载配置可选项,用于覆盖沙箱工具的存储配置的部分选项,并提供子路径挂载配置。
@@ -386,6 +453,64 @@ export interface StartSandboxInstanceResponse {
386
453
  */
387
454
  RequestId?: string;
388
455
  }
456
+ /**
457
+ * 沙箱自定义配置
458
+ */
459
+ export interface CustomConfiguration {
460
+ /**
461
+ * 镜像地址
462
+ */
463
+ Image?: string;
464
+ /**
465
+ * 镜像仓库类型:`enterprise`、`personal`。
466
+ */
467
+ ImageRegistryType?: string;
468
+ /**
469
+ * 启动命令
470
+ */
471
+ Command?: Array<string>;
472
+ /**
473
+ * 启动参数
474
+ */
475
+ Args?: Array<string>;
476
+ /**
477
+ * 环境变量
478
+ */
479
+ Env?: Array<EnvVar>;
480
+ /**
481
+ * 端口配置
482
+ */
483
+ Ports?: Array<PortConfiguration>;
484
+ /**
485
+ * 资源配置
486
+ */
487
+ Resources?: ResourceConfiguration;
488
+ /**
489
+ * 探针配置
490
+ */
491
+ Probe?: ProbeConfiguration;
492
+ }
493
+ /**
494
+ * 镜像卷挂载源配置
495
+ */
496
+ export interface ImageStorageSource {
497
+ /**
498
+ * 镜像地址
499
+ */
500
+ Reference?: string;
501
+ /**
502
+ * 镜像仓库类型:`enterprise`、`personal`。
503
+ */
504
+ ImageRegistryType?: string;
505
+ /**
506
+ * 镜像内部的路径
507
+ */
508
+ SubPath?: string;
509
+ /**
510
+ * 镜像 Digest,请求时无需传入
511
+ */
512
+ Digest?: string;
513
+ }
389
514
  /**
390
515
  * AcquireSandboxInstanceToken请求参数结构体
391
516
  */
@@ -437,6 +562,47 @@ export interface DescribeSandboxInstanceListRequest {
437
562
  */
438
563
  Filters?: Array<Filter>;
439
564
  }
565
+ /**
566
+ * 沙箱自定义配置详细信息
567
+ */
568
+ export interface CustomConfigurationDetail {
569
+ /**
570
+ * 镜像地址
571
+ */
572
+ Image?: string;
573
+ /**
574
+ * 镜像仓库类型:`TCR`、`CCR`。
575
+ */
576
+ ImageRegistryType?: string;
577
+ /**
578
+ * 镜像 Digest
579
+ */
580
+ ImageDigest?: string;
581
+ /**
582
+ * 启动命令
583
+ */
584
+ Command?: Array<string>;
585
+ /**
586
+ * 启动参数
587
+ */
588
+ Args?: Array<string>;
589
+ /**
590
+ * 环境变量
591
+ */
592
+ Env?: Array<EnvVar>;
593
+ /**
594
+ * 端口配置
595
+ */
596
+ Ports?: Array<PortConfiguration>;
597
+ /**
598
+ * 资源配置
599
+ */
600
+ Resources?: ResourceConfiguration;
601
+ /**
602
+ * 探针配置
603
+ */
604
+ Probe?: ProbeConfiguration;
605
+ }
440
606
  /**
441
607
  * DescribeAPIKeyList请求参数结构体
442
608
  */
@@ -516,13 +682,33 @@ export interface AcquireSandboxInstanceTokenResponse {
516
682
  RequestId?: string;
517
683
  }
518
684
  /**
519
- * StopSandboxInstance返回参数结构体
685
+ * 健康检查探针配置
520
686
  */
521
- export interface StopSandboxInstanceResponse {
687
+ export interface ProbeConfiguration {
522
688
  /**
523
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
689
+ * HTTP GET 探测配置
524
690
  */
525
- RequestId?: string;
691
+ HttpGet?: HttpGetAction;
692
+ /**
693
+ * 健康检查就绪超时
694
+ */
695
+ ReadyTimeoutMs?: number;
696
+ /**
697
+ * 健康检查单次探测超时
698
+ */
699
+ ProbeTimeoutMs?: number;
700
+ /**
701
+ * 健康检查间隔
702
+ */
703
+ ProbePeriodMs?: number;
704
+ /**
705
+ * 健康检查成功阈值
706
+ */
707
+ SuccessThreshold?: number;
708
+ /**
709
+ * 健康检查失败阈值
710
+ */
711
+ FailureThreshold?: number;
526
712
  }
527
713
  /**
528
714
  * 沙箱工具中实例存储挂载配置
@@ -578,6 +764,23 @@ export interface UpdateSandboxToolRequest {
578
764
  * 标签
579
765
  */
580
766
  Tags?: Array<Tag>;
767
+ /**
768
+ * 沙箱工具自定义配置
769
+ */
770
+ CustomConfiguration?: CustomConfiguration;
771
+ }
772
+ /**
773
+ * 环境变量
774
+ */
775
+ export interface EnvVar {
776
+ /**
777
+ * 环境变量名
778
+ */
779
+ Name?: string;
780
+ /**
781
+ * 环境变量值
782
+ */
783
+ Value?: string;
581
784
  }
582
785
  /**
583
786
  * DescribeSandboxInstanceList返回参数结构体
@@ -596,3 +799,12 @@ export interface DescribeSandboxInstanceListResponse {
596
799
  */
597
800
  RequestId?: string;
598
801
  }
802
+ /**
803
+ * StopSandboxInstance返回参数结构体
804
+ */
805
+ export interface StopSandboxInstanceResponse {
806
+ /**
807
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
808
+ */
809
+ RequestId?: string;
810
+ }