tencentcloud-sdk-nodejs-ags 4.1.199 → 4.1.203
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
|
@@ -29,29 +29,37 @@ export interface CosStorageSource {
|
|
|
29
29
|
*/
|
|
30
30
|
export interface StartSandboxInstanceRequest {
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* <p>沙箱工具 ID,与 ToolName 至少有一个要填</p>
|
|
33
33
|
*/
|
|
34
34
|
ToolId?: string;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* <p>沙箱工具名称,与 ToolId 至少有一个要填</p>
|
|
37
37
|
*/
|
|
38
38
|
ToolName?: string;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* <p>超时时间,超过这个时间就自动回收实例。支持格式:5m、300s、1h 等,默认 5m。最小 30s,最大 24h</p>
|
|
41
41
|
*/
|
|
42
42
|
Timeout?: string;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* <p>幂等性 Token,长度不超过 64 字符</p>
|
|
45
45
|
*/
|
|
46
46
|
ClientToken?: string;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* <p>沙箱实例存储挂载配置</p>
|
|
49
49
|
*/
|
|
50
50
|
MountOptions?: Array<MountOption>;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* <p>沙箱实例自定义配置</p>
|
|
53
53
|
*/
|
|
54
54
|
CustomConfiguration?: CustomConfiguration;
|
|
55
|
+
/**
|
|
56
|
+
* <p>沙箱访问认证模式</p><p>枚举值:</p><ul><li>DEFAULT: 跟随系统策略</li><li>TOKEN: Token认证</li><li>NONE: 免认证 </li></ul><p>默认值:DEFAULT</p>
|
|
57
|
+
*/
|
|
58
|
+
AuthMode?: string;
|
|
59
|
+
/**
|
|
60
|
+
* <p>沙箱元数据</p>
|
|
61
|
+
*/
|
|
62
|
+
Metadata?: Array<MetadataVar>;
|
|
55
63
|
}
|
|
56
64
|
/**
|
|
57
65
|
* 沙箱实例结构体
|
|
@@ -101,6 +109,14 @@ export interface SandboxInstance {
|
|
|
101
109
|
* <p>沙箱实例自定义配置</p>
|
|
102
110
|
*/
|
|
103
111
|
CustomConfiguration?: CustomConfigurationDetail;
|
|
112
|
+
/**
|
|
113
|
+
* <p>网络模式</p><p>枚举值:</p><ul><li>PUBLIC: 公网访问</li><li>SANDBOX: 无网络</li><li>INTERNAL_SERVICE: 腾讯云内部公共服务</li></ul><p>可以覆盖工具级别的网络配置。但如果一个工具本身就不支持 VPC 网络,那么即便在实例设置里选了 VPC 模式,也是无效的</p>
|
|
114
|
+
*/
|
|
115
|
+
NetworkMode?: string;
|
|
116
|
+
/**
|
|
117
|
+
* <p>沙箱实例元数据</p>
|
|
118
|
+
*/
|
|
119
|
+
Metadata?: Array<MetadataVar>;
|
|
104
120
|
}
|
|
105
121
|
/**
|
|
106
122
|
* 文件存储配置
|
|
@@ -438,6 +454,23 @@ export interface PortConfiguration {
|
|
|
438
454
|
*/
|
|
439
455
|
Protocol?: string;
|
|
440
456
|
}
|
|
457
|
+
/**
|
|
458
|
+
* 沙箱自定义 dns 配置
|
|
459
|
+
*/
|
|
460
|
+
export interface DNSConfig {
|
|
461
|
+
/**
|
|
462
|
+
* <p>DNS 服务器地址</p><p>参数格式:需要有效 IP 地址</p><p>默认值:10.0.0.1</p>
|
|
463
|
+
*/
|
|
464
|
+
Servers: Array<string>;
|
|
465
|
+
/**
|
|
466
|
+
* <p>搜索域(对应 resolv.conf 的 search 指令)</p>
|
|
467
|
+
*/
|
|
468
|
+
Searches?: Array<string>;
|
|
469
|
+
/**
|
|
470
|
+
* <p>配置项(对应 resolv.conf 选项)</p>
|
|
471
|
+
*/
|
|
472
|
+
Options?: Array<string>;
|
|
473
|
+
}
|
|
441
474
|
/**
|
|
442
475
|
* 沙箱工具结构体
|
|
443
476
|
*/
|
|
@@ -542,7 +575,7 @@ export interface Filter {
|
|
|
542
575
|
*/
|
|
543
576
|
export interface StartSandboxInstanceResponse {
|
|
544
577
|
/**
|
|
545
|
-
*
|
|
578
|
+
* <p>创建的沙箱实例完整信息</p>
|
|
546
579
|
*/
|
|
547
580
|
Instance?: SandboxInstance;
|
|
548
581
|
/**
|
|
@@ -555,37 +588,41 @@ export interface StartSandboxInstanceResponse {
|
|
|
555
588
|
*/
|
|
556
589
|
export interface CustomConfiguration {
|
|
557
590
|
/**
|
|
558
|
-
*
|
|
591
|
+
* <p>镜像地址</p>
|
|
559
592
|
*/
|
|
560
593
|
Image?: string;
|
|
561
594
|
/**
|
|
562
|
-
*
|
|
595
|
+
* <p>镜像仓库类型:<code>enterprise</code>、<code>personal</code>。</p>
|
|
563
596
|
*/
|
|
564
597
|
ImageRegistryType?: string;
|
|
565
598
|
/**
|
|
566
|
-
*
|
|
599
|
+
* <p>启动命令</p>
|
|
567
600
|
*/
|
|
568
601
|
Command?: Array<string>;
|
|
569
602
|
/**
|
|
570
|
-
*
|
|
603
|
+
* <p>启动参数</p>
|
|
571
604
|
*/
|
|
572
605
|
Args?: Array<string>;
|
|
573
606
|
/**
|
|
574
|
-
*
|
|
607
|
+
* <p>环境变量</p>
|
|
575
608
|
*/
|
|
576
609
|
Env?: Array<EnvVar>;
|
|
577
610
|
/**
|
|
578
|
-
*
|
|
611
|
+
* <p>端口配置</p>
|
|
579
612
|
*/
|
|
580
613
|
Ports?: Array<PortConfiguration>;
|
|
581
614
|
/**
|
|
582
|
-
*
|
|
615
|
+
* <p>资源配置</p>
|
|
583
616
|
*/
|
|
584
617
|
Resources?: ResourceConfiguration;
|
|
585
618
|
/**
|
|
586
|
-
*
|
|
619
|
+
* <p>探针配置</p>
|
|
587
620
|
*/
|
|
588
621
|
Probe?: ProbeConfiguration;
|
|
622
|
+
/**
|
|
623
|
+
* <p>沙箱 DNS 配置</p>
|
|
624
|
+
*/
|
|
625
|
+
DNSConfig?: DNSConfig;
|
|
589
626
|
}
|
|
590
627
|
/**
|
|
591
628
|
* 镜像卷挂载源配置
|
|
@@ -622,7 +659,7 @@ export interface AcquireSandboxInstanceTokenRequest {
|
|
|
622
659
|
*/
|
|
623
660
|
export interface PauseSandboxInstanceRequest {
|
|
624
661
|
/**
|
|
625
|
-
*
|
|
662
|
+
* <p>沙箱实例ID</p>
|
|
626
663
|
*/
|
|
627
664
|
InstanceId: string;
|
|
628
665
|
}
|
|
@@ -694,41 +731,45 @@ export interface DescribeSandboxInstanceListRequest {
|
|
|
694
731
|
*/
|
|
695
732
|
export interface CustomConfigurationDetail {
|
|
696
733
|
/**
|
|
697
|
-
*
|
|
734
|
+
* <p>镜像地址</p>
|
|
698
735
|
*/
|
|
699
736
|
Image?: string;
|
|
700
737
|
/**
|
|
701
|
-
*
|
|
738
|
+
* <p>镜像仓库类型:<code>TCR</code>、<code>CCR</code>。</p>
|
|
702
739
|
*/
|
|
703
740
|
ImageRegistryType?: string;
|
|
704
741
|
/**
|
|
705
|
-
*
|
|
742
|
+
* <p>镜像 Digest</p>
|
|
706
743
|
*/
|
|
707
744
|
ImageDigest?: string;
|
|
708
745
|
/**
|
|
709
|
-
*
|
|
746
|
+
* <p>启动命令</p>
|
|
710
747
|
*/
|
|
711
748
|
Command?: Array<string>;
|
|
712
749
|
/**
|
|
713
|
-
*
|
|
750
|
+
* <p>启动参数</p>
|
|
714
751
|
*/
|
|
715
752
|
Args?: Array<string>;
|
|
716
753
|
/**
|
|
717
|
-
*
|
|
754
|
+
* <p>环境变量</p>
|
|
718
755
|
*/
|
|
719
756
|
Env?: Array<EnvVar>;
|
|
720
757
|
/**
|
|
721
|
-
*
|
|
758
|
+
* <p>端口配置</p>
|
|
722
759
|
*/
|
|
723
760
|
Ports?: Array<PortConfiguration>;
|
|
724
761
|
/**
|
|
725
|
-
*
|
|
762
|
+
* <p>资源配置</p>
|
|
726
763
|
*/
|
|
727
764
|
Resources?: ResourceConfiguration;
|
|
728
765
|
/**
|
|
729
|
-
*
|
|
766
|
+
* <p>探针配置</p>
|
|
730
767
|
*/
|
|
731
768
|
Probe?: ProbeConfiguration;
|
|
769
|
+
/**
|
|
770
|
+
* <p>沙箱 DNS 配置</p>
|
|
771
|
+
*/
|
|
772
|
+
DNSConfig?: DNSConfig;
|
|
732
773
|
}
|
|
733
774
|
/**
|
|
734
775
|
* DescribeAPIKeyList请求参数结构体
|
|
@@ -739,13 +780,17 @@ export type DescribeAPIKeyListRequest = null;
|
|
|
739
780
|
*/
|
|
740
781
|
export interface UpdateSandboxInstanceRequest {
|
|
741
782
|
/**
|
|
742
|
-
*
|
|
783
|
+
* <p>沙箱实例ID</p>
|
|
743
784
|
*/
|
|
744
785
|
InstanceId: string;
|
|
745
786
|
/**
|
|
746
|
-
*
|
|
787
|
+
* <p>新的超时时间(从设置时开始重新计算超时),支持格式:5m、300s、1h等。最小30s,最大24h。如果不指定则保持原有超时设置</p>
|
|
747
788
|
*/
|
|
748
789
|
Timeout?: string;
|
|
790
|
+
/**
|
|
791
|
+
* <p>沙箱实例元数据</p>
|
|
792
|
+
*/
|
|
793
|
+
Metadata?: Array<MetadataVar>;
|
|
749
794
|
}
|
|
750
795
|
/**
|
|
751
796
|
* DeleteSandboxTool请求参数结构体
|
|
@@ -864,6 +909,19 @@ export interface LogConfiguration {
|
|
|
864
909
|
*/
|
|
865
910
|
CLSConfig?: CLSConfig;
|
|
866
911
|
}
|
|
912
|
+
/**
|
|
913
|
+
* metadata 项
|
|
914
|
+
*/
|
|
915
|
+
export interface MetadataVar {
|
|
916
|
+
/**
|
|
917
|
+
* <p>沙箱元数据名</p>
|
|
918
|
+
*/
|
|
919
|
+
Name?: string;
|
|
920
|
+
/**
|
|
921
|
+
* <p>沙箱元数据值</p>
|
|
922
|
+
*/
|
|
923
|
+
Value?: string;
|
|
924
|
+
}
|
|
867
925
|
/**
|
|
868
926
|
* 标签
|
|
869
927
|
*/
|