tencentcloud-sdk-nodejs-ags 4.1.325 → 4.1.326

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.
@@ -63,8 +63,8 @@ export class Client extends TencentCloudCommon.AbstractClient {
63
63
  async DescribeRegistryRecordList(req, cb) {
64
64
  return this.request("DescribeRegistryRecordList", req, cb);
65
65
  }
66
- async DescribeSandboxInstanceList(req, cb) {
67
- return this.request("DescribeSandboxInstanceList", req, cb);
66
+ async DescribePreCacheImageList(req, cb) {
67
+ return this.request("DescribePreCacheImageList", req, cb);
68
68
  }
69
69
  async ResumeSandboxInstance(req, cb) {
70
70
  return this.request("ResumeSandboxInstance", req, cb);
@@ -108,6 +108,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
108
108
  async DescribeSessions(req, cb) {
109
109
  return this.request("DescribeSessions", req, cb);
110
110
  }
111
+ async DescribeSandboxInstanceList(req, cb) {
112
+ return this.request("DescribeSandboxInstanceList", req, cb);
113
+ }
111
114
  async DescribeSandboxToolList(req, cb) {
112
115
  return this.request("DescribeSandboxToolList", req, cb);
113
116
  }
@@ -138,6 +141,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
138
141
  async DescribeSessionSpaces(req, cb) {
139
142
  return this.request("DescribeSessionSpaces", req, cb);
140
143
  }
144
+ async DeletePreCacheImage(req, cb) {
145
+ return this.request("DeletePreCacheImage", req, cb);
146
+ }
141
147
  async DescribeRegistryList(req, cb) {
142
148
  return this.request("DescribeRegistryList", req, cb);
143
149
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-ags",
3
- "version": "4.1.325",
3
+ "version": "4.1.326",
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 { DeleteSessionSpaceResponse, ApproveRegistryRecordRequest, AppendEventResponse, DescribeRegistryRecordResponse, DescribeQuotaOverviewRequest, CreatePreCacheImageTaskResponse, ResumeSandboxInstanceRequest, ModifySessionSpaceResponse, DescribePreCacheImageTaskRequest, DescribeDeploymentResponse, RejectRegistryRecordResponse, DescribeRegistryRecordListRequest, UpdateRegistryResponse, ApproveRegistryRecordResponse, DeleteSessionRequest, ResumeSandboxInstanceResponse, AcquireSandboxInstanceTokenRequest, DescribeAPIKeyListResponse, PreviewRegistryRecordResponse, CreateSessionRequest, DescribeDeploymentRequest, DescribeSandboxSnapshotListRequest, DescribeSessionSpaceResponse, CreateSandboxToolResponse, CreateRegistryResponse, DeleteAPIKeyRequest, DeleteDeploymentRequest, GetSkillPackageUploadURLRequest, UpdateSandboxToolRequest, DescribeSessionSpacesResponse, DescribeRegistryRecordVersionListResponse, DeleteSandboxSnapshotResponse, DescribeRegistryRecordVersionListRequest, RejectRegistryRecordRequest, CreateDeploymentRequest, StopSandboxInstanceRequest, GetSkillPackageDownloadURLRequest, DescribeSandboxToolListResponse, CreateSandboxSnapshotResponse, DescribeQuotaOverviewResponse, UpdateSandboxToolResponse, DescribeRegistryRecordRequest, CancelRegistryRecordRequest, DescribeSandboxToolListRequest, DeleteSandboxToolRequest, CreateAPIKeyRequest, DeleteSandboxToolResponse, DeleteSandboxSnapshotRequest, CreateRegistryRecordResponse, UpdateSandboxInstanceRequest, ModifySessionRequest, SyncRegistryRecordRequest, DescribeRegistryRequest, DeleteRegistryResponse, DescribeAPIKeyListRequest, DescribeSandboxInstanceListResponse, GetSkillPackageUploadURLResponse, CreateSessionSpaceResponse, UpdateRegistryRequest, DescribeSessionsResponse, DescribeDeploymentListRequest, DescribeRegistryAuditLogListRequest, PauseSandboxInstanceRequest, DescribeRegistryRecordListResponse, UpdateRegistryRecordRequest, CreateAPIKeyResponse, DescribeSessionRequest, AcquireDeploymentTokenRequest, DescribeEventsResponse, DescribeDeploymentListResponse, DescribeRegistryResponse, ModifySessionSpaceRequest, CreateSessionSpaceRequest, DeleteAPIKeyResponse, DescribeRegistryListRequest, CreateDeploymentResponse, DeleteRegistryRequest, GetSkillPackageDownloadURLResponse, CreateSessionResponse, StartSandboxInstanceResponse, DescribeSessionSpaceRequest, DescribeSandboxInstanceListRequest, ModifyDeploymentRequest, DescribeRegistryAuditLogListResponse, AcquireSandboxInstanceTokenResponse, DescribeSandboxSnapshotListResponse, PauseSandboxInstanceResponse, StartSandboxInstanceRequest, CancelRegistryRecordResponse, DescribeSessionSpacesRequest, DescribeRegistryListResponse, UpdateRegistryRecordResponse, DeleteSessionSpaceRequest, AcquireDeploymentTokenResponse, DescribeSessionsRequest, CreateSandboxToolRequest, DescribePreCacheImageTaskResponse, DeleteRegistryRecordResponse, CreateRegistryRecordRequest, ModifySessionResponse, UpdateSandboxInstanceResponse, DeleteDeploymentResponse, SyncRegistryRecordResponse, DescribeSessionResponse, DeleteRegistryRecordRequest, StopSandboxInstanceResponse, CreateSandboxSnapshotRequest, AppendEventRequest, DeleteSessionResponse, PreviewRegistryRecordRequest, DescribeEventsRequest, CreateRegistryRequest, ModifyDeploymentResponse, CreatePreCacheImageTaskRequest } from "./ags_models";
2
+ import { DeleteSessionSpaceResponse, ApproveRegistryRecordRequest, AppendEventResponse, DescribeRegistryRecordResponse, DescribeQuotaOverviewRequest, CreatePreCacheImageTaskResponse, ResumeSandboxInstanceRequest, ModifySessionSpaceResponse, DescribePreCacheImageTaskRequest, DescribeDeploymentResponse, RejectRegistryRecordResponse, DescribeRegistryRecordListRequest, UpdateRegistryResponse, ApproveRegistryRecordResponse, DeleteSessionRequest, ResumeSandboxInstanceResponse, AcquireSandboxInstanceTokenRequest, DescribeAPIKeyListResponse, PreviewRegistryRecordResponse, CreateSessionRequest, DescribeDeploymentRequest, DescribeSandboxSnapshotListRequest, DescribeSessionSpaceResponse, CreateSandboxToolResponse, CreateRegistryResponse, DeleteAPIKeyRequest, DeleteDeploymentRequest, GetSkillPackageUploadURLRequest, UpdateSandboxToolRequest, DescribeSessionSpacesResponse, DescribeRegistryRecordVersionListResponse, DeleteSandboxSnapshotResponse, DescribePreCacheImageListRequest, DescribeRegistryRecordVersionListRequest, RejectRegistryRecordRequest, CreateDeploymentRequest, StopSandboxInstanceRequest, GetSkillPackageDownloadURLRequest, DescribeSandboxToolListResponse, CreateSandboxSnapshotResponse, DescribeQuotaOverviewResponse, UpdateSandboxToolResponse, DescribeRegistryRecordRequest, CancelRegistryRecordRequest, DescribeSandboxToolListRequest, DeleteSandboxToolRequest, CreateAPIKeyRequest, DeleteSandboxToolResponse, DeleteSandboxSnapshotRequest, CreateRegistryRecordResponse, DescribePreCacheImageListResponse, UpdateSandboxInstanceRequest, ModifySessionRequest, SyncRegistryRecordRequest, DescribeRegistryRequest, DeleteRegistryResponse, DescribeAPIKeyListRequest, DescribeSandboxInstanceListResponse, GetSkillPackageUploadURLResponse, CreateSessionSpaceResponse, UpdateRegistryRequest, DescribeSessionsResponse, DescribeDeploymentListRequest, DescribeRegistryAuditLogListRequest, PauseSandboxInstanceRequest, DescribeRegistryRecordListResponse, UpdateRegistryRecordRequest, DeletePreCacheImageResponse, CreateAPIKeyResponse, DescribeSessionRequest, AcquireDeploymentTokenRequest, DescribeEventsResponse, DescribeDeploymentListResponse, DescribeRegistryResponse, ModifySessionSpaceRequest, CreateSessionSpaceRequest, DeleteAPIKeyResponse, DescribeRegistryListRequest, CreateDeploymentResponse, DeleteRegistryRequest, GetSkillPackageDownloadURLResponse, CreateSessionResponse, StartSandboxInstanceResponse, DescribeSessionSpaceRequest, DescribeSandboxInstanceListRequest, ModifyDeploymentRequest, DescribeRegistryAuditLogListResponse, AcquireSandboxInstanceTokenResponse, DeletePreCacheImageRequest, DescribeSandboxSnapshotListResponse, PauseSandboxInstanceResponse, StartSandboxInstanceRequest, CancelRegistryRecordResponse, DescribeSessionSpacesRequest, DescribeRegistryListResponse, UpdateRegistryRecordResponse, DeleteSessionSpaceRequest, AcquireDeploymentTokenResponse, DescribeSessionsRequest, CreateSandboxToolRequest, DescribePreCacheImageTaskResponse, DeleteRegistryRecordResponse, CreateRegistryRecordRequest, ModifySessionResponse, UpdateSandboxInstanceResponse, DeleteDeploymentResponse, SyncRegistryRecordResponse, DescribeSessionResponse, DeleteRegistryRecordRequest, StopSandboxInstanceResponse, CreateSandboxSnapshotRequest, AppendEventRequest, DeleteSessionResponse, PreviewRegistryRecordRequest, DescribeEventsRequest, CreateRegistryRequest, ModifyDeploymentResponse, CreatePreCacheImageTaskRequest } from "./ags_models";
3
3
  /**
4
4
  * ags client
5
5
  * @class
@@ -94,9 +94,9 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
94
94
  */
95
95
  DescribeRegistryRecordList(req: DescribeRegistryRecordListRequest, cb?: (error: string, rep: DescribeRegistryRecordListResponse) => void): Promise<DescribeRegistryRecordListResponse>;
96
96
  /**
97
- * 查询沙箱实例列表
97
+ * 查询镜像预热列表
98
98
  */
99
- DescribeSandboxInstanceList(req: DescribeSandboxInstanceListRequest, cb?: (error: string, rep: DescribeSandboxInstanceListResponse) => void): Promise<DescribeSandboxInstanceListResponse>;
99
+ DescribePreCacheImageList(req: DescribePreCacheImageListRequest, cb?: (error: string, rep: DescribePreCacheImageListResponse) => void): Promise<DescribePreCacheImageListResponse>;
100
100
  /**
101
101
  * 恢复沙箱实例
102
102
  */
@@ -156,6 +156,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
156
156
  * 查询会话列表
157
157
  */
158
158
  DescribeSessions(req: DescribeSessionsRequest, cb?: (error: string, rep: DescribeSessionsResponse) => void): Promise<DescribeSessionsResponse>;
159
+ /**
160
+ * 查询沙箱实例列表
161
+ */
162
+ DescribeSandboxInstanceList(req: DescribeSandboxInstanceListRequest, cb?: (error: string, rep: DescribeSandboxInstanceListResponse) => void): Promise<DescribeSandboxInstanceListResponse>;
159
163
  /**
160
164
  * 查询沙箱工具列表
161
165
  */
@@ -199,6 +203,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
199
203
  * 分页查询当前应用和地域下的会话空间。
200
204
  */
201
205
  DescribeSessionSpaces(req: DescribeSessionSpacesRequest, cb?: (error: string, rep: DescribeSessionSpacesResponse) => void): Promise<DescribeSessionSpacesResponse>;
206
+ /**
207
+ * 删除预热镜像
208
+ */
209
+ DeletePreCacheImage(req: DeletePreCacheImageRequest, cb?: (error: string, rep: DeletePreCacheImageResponse) => void): Promise<DeletePreCacheImageResponse>;
202
210
  /**
203
211
  * 分页查询当前租户可见的 Registry 列表。
204
212
  */
@@ -156,10 +156,10 @@ class Client extends TencentCloudCommon.AbstractClient {
156
156
  return this.request("DescribeRegistryRecordList", req, cb);
157
157
  }
158
158
  /**
159
- * 查询沙箱实例列表
159
+ * 查询镜像预热列表
160
160
  */
161
- async DescribeSandboxInstanceList(req, cb) {
162
- return this.request("DescribeSandboxInstanceList", req, cb);
161
+ async DescribePreCacheImageList(req, cb) {
162
+ return this.request("DescribePreCacheImageList", req, cb);
163
163
  }
164
164
  /**
165
165
  * 恢复沙箱实例
@@ -248,6 +248,12 @@ class Client extends TencentCloudCommon.AbstractClient {
248
248
  async DescribeSessions(req, cb) {
249
249
  return this.request("DescribeSessions", req, cb);
250
250
  }
251
+ /**
252
+ * 查询沙箱实例列表
253
+ */
254
+ async DescribeSandboxInstanceList(req, cb) {
255
+ return this.request("DescribeSandboxInstanceList", req, cb);
256
+ }
251
257
  /**
252
258
  * 查询沙箱工具列表
253
259
  */
@@ -311,6 +317,12 @@ class Client extends TencentCloudCommon.AbstractClient {
311
317
  async DescribeSessionSpaces(req, cb) {
312
318
  return this.request("DescribeSessionSpaces", req, cb);
313
319
  }
320
+ /**
321
+ * 删除预热镜像
322
+ */
323
+ async DeletePreCacheImage(req, cb) {
324
+ return this.request("DeletePreCacheImage", req, cb);
325
+ }
314
326
  /**
315
327
  * 分页查询当前租户可见的 Registry 列表。
316
328
  */
@@ -1017,6 +1017,27 @@ export interface DeleteSandboxSnapshotResponse {
1017
1017
  */
1018
1018
  RequestId?: string;
1019
1019
  }
1020
+ /**
1021
+ * DescribePreCacheImageList请求参数结构体
1022
+ */
1023
+ export interface DescribePreCacheImageListRequest {
1024
+ /**
1025
+ * <p>查询过滤条件。支持 Image, ImageDigest, ImageRegistryType, Status, SourceType;不同 Filter 之间为 AND,同一 Filter 的 Values 之间为 OR。</p>
1026
+ */
1027
+ Filters?: Array<Filter>;
1028
+ /**
1029
+ * <p>返回数据列数</p><p>取值范围:[1, 100]</p><p>默认值:20</p>
1030
+ */
1031
+ MaxResults?: number;
1032
+ /**
1033
+ * <p>NextToken是每个页面唯一的分页令牌。使用返回的令牌再次调用以检索下一页。需要保持所有其他参数不变。</p>
1034
+ */
1035
+ NextToken?: string;
1036
+ /**
1037
+ * <p>默认 false;仅控制是否返回精确总数</p>
1038
+ */
1039
+ NeedTotalCount?: boolean;
1040
+ }
1020
1041
  /**
1021
1042
  * DescribeRegistryRecordVersionList请求参数结构体
1022
1043
  */
@@ -1548,6 +1569,27 @@ export interface SessionSpaceInfo {
1548
1569
  */
1549
1570
  UpdateTime?: string;
1550
1571
  }
1572
+ /**
1573
+ * DescribePreCacheImageList返回参数结构体
1574
+ */
1575
+ export interface DescribePreCacheImageListResponse {
1576
+ /**
1577
+ * <p>镜像预热总数</p>
1578
+ */
1579
+ TotalCount?: number;
1580
+ /**
1581
+ * <p>镜像预热列表</p>
1582
+ */
1583
+ PreCacheImageList?: Array<PreCacheImage>;
1584
+ /**
1585
+ * <p>如果NextToken返回非空字符串 ,表示还有更多可用结果。 NextToken是每个页面唯一的分页令牌。使用返回的令牌再次调用以检索下一页。需要保持所有其他参数不变。</p>
1586
+ */
1587
+ NextToken?: string;
1588
+ /**
1589
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1590
+ */
1591
+ RequestId?: string;
1592
+ }
1551
1593
  /**
1552
1594
  * UpdateSandboxInstance请求参数结构体
1553
1595
  */
@@ -2018,6 +2060,15 @@ export interface UpdateRegistryRecordRequest {
2018
2060
  */
2019
2061
  LabelMutations?: Array<CloudRecordLabelMutation>;
2020
2062
  }
2063
+ /**
2064
+ * DeletePreCacheImage返回参数结构体
2065
+ */
2066
+ export interface DeletePreCacheImageResponse {
2067
+ /**
2068
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2069
+ */
2070
+ RequestId?: string;
2071
+ }
2021
2072
  /**
2022
2073
  * CreateAPIKey返回参数结构体
2023
2074
  */
@@ -2277,6 +2328,47 @@ export interface GetSkillPackageDownloadURLResponse {
2277
2328
  */
2278
2329
  RequestId?: string;
2279
2330
  }
2331
+ /**
2332
+ * 镜像预热产物
2333
+ */
2334
+ export interface PreCacheImage {
2335
+ /**
2336
+ * <p>镜像地址</p>
2337
+ */
2338
+ Image?: string;
2339
+ /**
2340
+ * <p>镜像 Digest</p>
2341
+ */
2342
+ ImageDigest?: string;
2343
+ /**
2344
+ * <p>镜像仓库类型:<code>enterprise</code>、<code>personal</code>、<code>custom</code> 。</p><p>枚举值:</p><ul><li>enterprise: tcr 企业容器镜像服务</li><li>personal: ccr 个人容器镜像服务</li></ul>
2345
+ */
2346
+ ImageRegistryType?: string;
2347
+ /**
2348
+ * <p>镜像预热状态</p>
2349
+ */
2350
+ Status?: string;
2351
+ /**
2352
+ * <p>镜像预热创建时间</p>
2353
+ */
2354
+ CreateTime?: string;
2355
+ /**
2356
+ * <p>镜像预热ID</p>
2357
+ */
2358
+ PreCacheImageId?: string;
2359
+ /**
2360
+ * <p>镜像预热来源</p><p>枚举值:</p><ul><li>AUTO: Sandbox Tool / Instance 自动预热</li><li>EXPLICIT: 手动预热</li><li>TCR_AUTO: TCR自动预热</li></ul>
2361
+ */
2362
+ SourceType?: string;
2363
+ /**
2364
+ * <p>镜像预热存储大小</p><p>单位:Byte</p>
2365
+ */
2366
+ CachedImageSizeBytes?: number;
2367
+ /**
2368
+ * <p>该预热镜像最近一次被沙箱实例使用时间</p>
2369
+ */
2370
+ LastUsedTime?: string;
2371
+ }
2280
2372
  /**
2281
2373
  * Session 快照状态
2282
2374
  */
@@ -2522,6 +2614,27 @@ export interface AgentBucketStorageSource {
2522
2614
  */
2523
2615
  AccessDomain?: string;
2524
2616
  }
2617
+ /**
2618
+ * DeletePreCacheImage请求参数结构体
2619
+ */
2620
+ export interface DeletePreCacheImageRequest {
2621
+ /**
2622
+ * <p>镜像地址</p>
2623
+ */
2624
+ Image?: string;
2625
+ /**
2626
+ * <p>镜像仓库配置</p>
2627
+ */
2628
+ ImageDigest?: string;
2629
+ /**
2630
+ * <p>镜像仓库类型:<code>enterprise</code>、<code>personal</code>、<code>custom</code> 。</p><p>枚举值:</p><ul><li>enterprise: tcr 企业容器镜像服务</li><li>personal: ccr 个人容器镜像服务</li></ul>
2631
+ */
2632
+ ImageRegistryType?: string;
2633
+ /**
2634
+ * <p>镜像预热ID</p>
2635
+ */
2636
+ PreCacheImageId?: string;
2637
+ }
2525
2638
  /**
2526
2639
  * Record Label 变更操作项。Operation=SET 时可携带 VersionId;DELETE 时禁止 VersionId。
2527
2640
  */
@@ -2614,6 +2727,10 @@ export interface StartSandboxInstanceRequest {
2614
2727
  * <p>待克隆的源沙箱 ID</p>
2615
2728
  */
2616
2729
  SourceInstanceId?: string;
2730
+ /**
2731
+ * <p>待启动的沙箱快照 ID</p>
2732
+ */
2733
+ SnapshotId?: string;
2617
2734
  /**
2618
2735
  * <p>超时时间,超过这个时间就自动回收实例。支持格式:5m、300s、1h 等,默认 5m。最小 30s,最大 24h</p>
2619
2736
  */