tencentcloud-sdk-nodejs-tem 4.0.389 → 4.0.397

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.
@@ -1,59 +1,3 @@
1
- /**
2
- * 挂载配置信息
3
- */
4
- export interface MountedSettingConf {
5
- /**
6
- * 配置名称
7
- */
8
- ConfigDataName: string;
9
- /**
10
- * 挂载路径
11
- */
12
- MountedPath: string;
13
- /**
14
- * 配置内容
15
- */
16
- Data?: Array<Pair>;
17
- /**
18
- * 加密配置名称
19
- */
20
- SecretDataName?: string;
21
- }
22
- /**
23
- * RestartApplicationPod返回参数结构体
24
- */
25
- export interface RestartApplicationPodResponse {
26
- /**
27
- * 返回结果
28
- 注意:此字段可能返回 null,表示取不到有效值。
29
- */
30
- Result: boolean;
31
- /**
32
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
33
- */
34
- RequestId?: string;
35
- }
36
- /**
37
- * DeleteApplication请求参数结构体
38
- */
39
- export interface DeleteApplicationRequest {
40
- /**
41
- * 服务Id
42
- */
43
- ApplicationId: string;
44
- /**
45
- * 环境ID
46
- */
47
- EnvironmentId: string;
48
- /**
49
- * 来源渠道
50
- */
51
- SourceChannel?: number;
52
- /**
53
- * 当服务没有任何运行版本时,是否删除此服务
54
- */
55
- DeleteApplicationIfNoRunningVersion?: boolean;
56
- }
57
1
  /**
58
2
  * CreateResource请求参数结构体
59
3
  */
@@ -84,820 +28,1113 @@ export interface CreateResourceRequest {
84
28
  ResourceConfig?: string;
85
29
  }
86
30
  /**
87
- * ResumeDeployApplication返回参数结构体
31
+ * 命名空间分页
88
32
  */
89
- export interface ResumeDeployApplicationResponse {
33
+ export interface NamespacePage {
90
34
  /**
91
- * 是否成功
35
+ * 分页内容
92
36
  */
93
- Result: boolean;
37
+ Records: Array<TemNamespaceInfo>;
94
38
  /**
95
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
39
+ * 总数
96
40
  */
97
- RequestId?: string;
41
+ Total: number;
42
+ /**
43
+ * 条目数
44
+ */
45
+ Size: number;
46
+ /**
47
+ * 页数
48
+ */
49
+ Pages: number;
98
50
  }
99
51
  /**
100
- * RestartApplication返回参数结构体
52
+ * DescribeApplicationPods返回参数结构体
101
53
  */
102
- export interface RestartApplicationResponse {
54
+ export interface DescribeApplicationPodsResponse {
103
55
  /**
104
56
  * 返回结果
105
57
  */
106
- Result: boolean;
58
+ Result: DescribeRunPodPage;
107
59
  /**
108
60
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
109
61
  */
110
62
  RequestId?: string;
111
63
  }
112
64
  /**
113
- * DescribeApplicationsStatus返回参数结构体
65
+ * ResumeDeployApplication返回参数结构体
114
66
  */
115
- export interface DescribeApplicationsStatusResponse {
67
+ export interface ResumeDeployApplicationResponse {
116
68
  /**
117
- * 返回结果
69
+ * 是否成功
118
70
  */
119
- Result: Array<ServiceVersionBrief>;
71
+ Result: boolean;
120
72
  /**
121
73
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
122
74
  */
123
75
  RequestId?: string;
124
76
  }
125
77
  /**
126
- * 健康检查配置
78
+ * 存储卷配置
127
79
  */
128
- export interface HealthCheckConfig {
129
- /**
130
- * 支持的健康检查类型,如 HttpGet,TcpSocket,Exec
131
- */
132
- Type: string;
133
- /**
134
- * 仅当健康检查类型为 HttpGet 时有效,表示协议类型,如 HTTP,HTTPS
135
- */
136
- Protocol?: string;
137
- /**
138
- * 仅当健康检查类型为 HttpGet 时有效,表示请求路径
139
- */
140
- Path?: string;
141
- /**
142
- * 仅当健康检查类型为 Exec 时有效,表示执行的脚本内容
143
- */
144
- Exec?: string;
145
- /**
146
- * 仅当健康检查类型为 HttpGet\TcpSocket 时有效,表示请求路径
147
- */
148
- Port?: number;
80
+ export interface StorageConf {
149
81
  /**
150
- * 检查延迟开始时间,单位为秒,默认为 0
82
+ * 存储卷名称
151
83
  */
152
- InitialDelaySeconds?: number;
84
+ StorageVolName: string;
153
85
  /**
154
- * 超时时间,单位为秒,默认为 1
86
+ * 存储卷路径
155
87
  */
156
- TimeoutSeconds?: number;
88
+ StorageVolPath: string;
157
89
  /**
158
- * 间隔时间,单位为秒,默认为 10
159
- */
160
- PeriodSeconds?: number;
90
+ * 存储卷IP
91
+ 注意:此字段可能返回 null,表示取不到有效值。
92
+ */
93
+ StorageVolIp?: string;
161
94
  }
162
95
  /**
163
- * 分批发布详情
96
+ * 分批发布单批次详情
164
97
  */
165
- export interface TemDeployApplicationDetailInfo {
166
- /**
167
- * 分批发布策略
168
- 注意:此字段可能返回 null,表示取不到有效值。
169
- */
170
- DeployStrategyConf: DeployStrategyConf;
171
- /**
172
- * 开始时间
173
- 注意:此字段可能返回 null,表示取不到有效值。
174
- */
175
- StartTime: string;
176
- /**
177
- * 结束时间
178
- 注意:此字段可能返回 null,表示取不到有效值。
179
- */
180
- EndTime: string;
98
+ export interface DeployServicePodDetail {
181
99
  /**
182
- * 当前状态
100
+ * pod Id
183
101
  注意:此字段可能返回 null,表示取不到有效值。
184
102
  */
185
- Status: string;
103
+ PodId?: string;
186
104
  /**
187
- * beta分批详情
105
+ * pod状态
188
106
  注意:此字段可能返回 null,表示取不到有效值。
189
107
  */
190
- BetaBatchDetail: DeployServiceBatchDetail;
108
+ PodStatus?: Array<string>;
191
109
  /**
192
- * 其他分批详情
110
+ * pod版本
193
111
  注意:此字段可能返回 null,表示取不到有效值。
194
112
  */
195
- OtherBatchDetail: Array<DeployServiceBatchDetail>;
113
+ PodVersion?: string;
196
114
  /**
197
- * 老版本pod列表
115
+ * pod创建时间
198
116
  注意:此字段可能返回 null,表示取不到有效值。
199
117
  */
200
- OldVersionPodList: DescribeRunPodPage;
118
+ CreateTime?: string;
201
119
  /**
202
- * 当前批次id
120
+ * pod所在可用区
203
121
  注意:此字段可能返回 null,表示取不到有效值。
204
122
  */
205
- CurrentBatchIndex: number;
123
+ Zone?: string;
206
124
  /**
207
- * 错误原因
125
+ * webshell地址
208
126
  注意:此字段可能返回 null,表示取不到有效值。
209
127
  */
210
- ErrorMessage: string;
128
+ Webshell?: string;
129
+ }
130
+ /**
131
+ * 日志输出配置
132
+ */
133
+ export interface LogOutputConf {
211
134
  /**
212
- * 当前批次状态
213
- 注意:此字段可能返回 null,表示取不到有效值。
214
- */
215
- CurrentBatchStatus: string;
135
+ * 日志消费端类型
136
+ */
137
+ OutputType: string;
216
138
  /**
217
- * 新版本version
218
- 注意:此字段可能返回 null,表示取不到有效值。
219
- */
220
- NewDeployVersion: string;
139
+ * cls日志集
140
+ */
141
+ ClsLogsetName?: string;
221
142
  /**
222
- * 旧版本version
223
- 注意:此字段可能返回 null,表示取不到有效值。
224
- */
225
- OldDeployVersion: string;
143
+ * cls日志主题
144
+ */
145
+ ClsLogTopicId?: string;
226
146
  /**
227
- * 包名称
228
- 注意:此字段可能返回 null,表示取不到有效值。
229
- */
230
- NewVersionPackageInfo: string;
147
+ * cls日志集id
148
+ */
149
+ ClsLogsetId?: string;
231
150
  /**
232
- * 下一批次开始时间
233
- 注意:此字段可能返回 null,表示取不到有效值。
234
- */
235
- NextBatchStartTime: number;
151
+ * cls日志名称
152
+ */
153
+ ClsLogTopicName?: string;
236
154
  }
237
155
  /**
238
- * DescribeDeployApplicationDetail请求参数结构体
156
+ * DeleteIngress返回参数结构体
239
157
  */
240
- export interface DescribeDeployApplicationDetailRequest {
241
- /**
242
- * 服务id
243
- */
244
- ApplicationId?: string;
158
+ export interface DeleteIngressResponse {
245
159
  /**
246
- * 环境id
160
+ * 是否删除成功
247
161
  */
248
- EnvironmentId?: string;
162
+ Result: boolean;
249
163
  /**
250
- * 版本部署id
164
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
251
165
  */
252
- VersionId?: string;
166
+ RequestId?: string;
253
167
  }
254
168
  /**
255
- * 弹性伸缩配置
169
+ * DeleteApplication返回参数结构体
256
170
  */
257
- export interface EsInfo {
171
+ export interface DeleteApplicationResponse {
258
172
  /**
259
- * 最小实例数
173
+ * 返回结果
260
174
  */
261
- MinAliveInstances: number;
175
+ Result: boolean;
262
176
  /**
263
- * 最大实例数
177
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
264
178
  */
265
- MaxAliveInstances: number;
179
+ RequestId?: string;
180
+ }
181
+ /**
182
+ * RollingUpdateApplicationByVersion请求参数结构体
183
+ */
184
+ export interface RollingUpdateApplicationByVersionRequest {
266
185
  /**
267
- * 弹性策略,1:cpu,2:内存
186
+ * 应用ID
268
187
  */
269
- EsStrategy: number;
188
+ ApplicationId: string;
270
189
  /**
271
- * 弹性扩缩容条件值
190
+ * 环境ID
272
191
  */
273
- Threshold: number;
192
+ EnvironmentId: string;
274
193
  /**
275
- * 版本Id
194
+ * 更新版本,IMAGE 部署为 tag 值;JAR/WAR 部署 为 Version
276
195
  */
277
- VersionId?: string;
278
- }
279
- /**
280
- * 分批发布单批次详情
281
- */
282
- export interface DeployServiceBatchDetail {
283
- /**
284
- * 旧实例列表
285
- 注意:此字段可能返回 null,表示取不到有效值。
286
- */
287
- OldPodList?: DeployServicePodDetail;
196
+ DeployVersion: string;
288
197
  /**
289
- * 新实例列表
290
- 注意:此字段可能返回 null,表示取不到有效值。
291
- */
292
- NewPodList?: DeployServicePodDetail;
198
+ * JAR/WAR 包名,仅 JAR/WAR 部署时必填
199
+ */
200
+ PackageName?: string;
293
201
  /**
294
- * 当前批次状态:"WaitForTimeExceed", "WaitForResume", "Deploying", "Finish", "NotStart"
295
- 注意:此字段可能返回 null,表示取不到有效值。
296
- */
297
- BatchStatus?: string;
202
+ * 请求来源平台,含 IntelliJ,Coding
203
+ */
204
+ From?: string;
298
205
  /**
299
- * 该批次预计旧实例数量
300
- 注意:此字段可能返回 null,表示取不到有效值。
301
- */
302
- PodNum?: number;
206
+ * 部署策略,AUTO 为全自动;BETA 为小批量验证后自动;MANUAL 为全手动;
207
+ */
208
+ DeployStrategyType?: string;
303
209
  /**
304
- * 批次id
305
- 注意:此字段可能返回 null,表示取不到有效值。
306
- */
307
- BatchIndex?: number;
210
+ * 发布批次数
211
+ */
212
+ TotalBatchCount?: number;
308
213
  /**
309
- * 旧实例列表
310
- 注意:此字段可能返回 null,表示取不到有效值。
311
- */
312
- OldPods?: Array<DeployServicePodDetail>;
214
+ * 批次间隔时间
215
+ */
216
+ BatchInterval?: number;
313
217
  /**
314
- * 新实例列表
315
- 注意:此字段可能返回 null,表示取不到有效值。
316
- */
317
- NewPods?: Array<DeployServicePodDetail>;
218
+ * 小批量验证批次的实例数
219
+ */
220
+ BetaBatchNum?: number;
318
221
  /**
319
- * =0:手动确认批次;>0:下一批次开始时间戳
320
- 注意:此字段可能返回 null,表示取不到有效值。
321
- */
322
- NextBatchStartTime?: number;
222
+ * 发布过程中保障的最小可用实例数
223
+ */
224
+ MinAvailable?: number;
323
225
  }
324
226
  /**
325
- * DescribeApplicationPods返回参数结构体
227
+ * CreateCosToken返回参数结构体
326
228
  */
327
- export interface DescribeApplicationPodsResponse {
229
+ export interface CreateCosTokenResponse {
328
230
  /**
329
- * 返回结果
330
- */
331
- Result: DescribeRunPodPage;
231
+ * 成功时为CosToken对象,失败为null
232
+ 注意:此字段可能返回 null,表示取不到有效值。
233
+ */
234
+ Result: CosToken;
332
235
  /**
333
236
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
334
237
  */
335
238
  RequestId?: string;
336
239
  }
337
240
  /**
338
- * RestartApplication请求参数结构体
241
+ * RevertDeployApplication请求参数结构体
339
242
  */
340
- export interface RestartApplicationRequest {
341
- /**
342
- * 服务id
343
- */
344
- ApplicationId: string;
243
+ export interface RevertDeployApplicationRequest {
345
244
  /**
346
- * 来源渠道
245
+ * 需要回滚的服务id
347
246
  */
348
- SourceChannel?: number;
247
+ ApplicationId?: string;
349
248
  /**
350
- * 环境ID
249
+ * 需要回滚的服务所在环境id
351
250
  */
352
251
  EnvironmentId?: string;
353
252
  }
354
253
  /**
355
- * DeleteIngress请求参数结构体
254
+ * RollingUpdateApplicationByVersion返回参数结构体
356
255
  */
357
- export interface DeleteIngressRequest {
358
- /**
359
- * 环境ID
360
- */
361
- EnvironmentId: string;
362
- /**
363
- * 环境 namespace
364
- */
365
- ClusterNamespace: string;
256
+ export interface RollingUpdateApplicationByVersionResponse {
366
257
  /**
367
- * ingress 规则名
258
+ * 版本ID
368
259
  */
369
- IngressName: string;
260
+ Result: string;
370
261
  /**
371
- * 来源渠道
262
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
372
263
  */
373
- SourceChannel?: number;
264
+ RequestId?: string;
374
265
  }
375
266
  /**
376
- * RestartApplicationPod请求参数结构体
267
+ * StopApplication请求参数结构体
377
268
  */
378
- export interface RestartApplicationPodRequest {
379
- /**
380
- * 环境id
381
- */
382
- EnvironmentId: string;
269
+ export interface StopApplicationRequest {
383
270
  /**
384
- * 应用id
271
+ * 服务id
385
272
  */
386
273
  ApplicationId: string;
387
274
  /**
388
- * 名字
275
+ * 来源渠道
389
276
  */
390
- PodName: string;
277
+ SourceChannel?: number;
391
278
  /**
392
- * 单页条数
279
+ * 环境ID
393
280
  */
394
- Limit?: number;
281
+ EnvironmentId?: string;
282
+ }
283
+ /**
284
+ * ModifyApplicationInfo请求参数结构体
285
+ */
286
+ export interface ModifyApplicationInfoRequest {
395
287
  /**
396
- * 分页下标
288
+ * 应用ID
397
289
  */
398
- Offset?: number;
290
+ ApplicationId: string;
399
291
  /**
400
- * pod状态
292
+ * 描述
401
293
  */
402
- Status?: string;
294
+ Description: string;
403
295
  /**
404
296
  * 来源渠道
405
297
  */
406
298
  SourceChannel?: number;
299
+ /**
300
+ * 是否开启调用链,(此参数已弃用)
301
+ */
302
+ EnableTracing?: number;
407
303
  }
408
304
  /**
409
- * DescribeRelatedIngresses请求参数结构体
305
+ * DestroyEnvironment请求参数结构体
410
306
  */
411
- export interface DescribeRelatedIngressesRequest {
412
- /**
413
- * 环境 id
414
- */
415
- EnvironmentId?: string;
307
+ export interface DestroyEnvironmentRequest {
416
308
  /**
417
- * 环境 namespace
309
+ * 命名空间ID
418
310
  */
419
- ClusterNamespace?: string;
311
+ EnvironmentId: string;
420
312
  /**
421
- * 来源渠道
313
+ * Namespace
422
314
  */
423
315
  SourceChannel?: number;
424
- /**
425
- * 应用 ID
426
- */
427
- ApplicationId?: string;
428
316
  }
429
317
  /**
430
- * ModifyEnvironment返回参数结构体
318
+ * CreateEnvironment返回参数结构体
431
319
  */
432
- export interface ModifyEnvironmentResponse {
320
+ export interface CreateEnvironmentResponse {
433
321
  /**
434
322
  * 成功时为环境ID,失败为null
435
323
  注意:此字段可能返回 null,表示取不到有效值。
436
324
  */
437
- Result: boolean;
325
+ Result: string;
438
326
  /**
439
327
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
440
328
  */
441
329
  RequestId?: string;
442
330
  }
443
331
  /**
444
- * Cos token
332
+ * DescribeEnvironmentStatus请求参数结构体
445
333
  */
446
- export interface CosToken {
334
+ export interface DescribeEnvironmentStatusRequest {
447
335
  /**
448
- * 唯一请求 ID
336
+ * 命名空间id
449
337
  */
450
- RequestId: string;
338
+ EnvironmentIds: Array<string>;
451
339
  /**
452
- * 存储桶桶名
340
+ * 来源Channel
453
341
  */
454
- Bucket: string;
342
+ SourceChannel?: number;
343
+ }
344
+ /**
345
+ * RevertDeployApplication返回参数结构体
346
+ */
347
+ export interface RevertDeployApplicationResponse {
455
348
  /**
456
- * 存储桶所在区域
349
+ * 是否成功
457
350
  */
458
- Region: string;
351
+ Result: boolean;
459
352
  /**
460
- * 临时密钥的SecretId
353
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
461
354
  */
462
- TmpSecretId: string;
355
+ RequestId?: string;
356
+ }
357
+ /**
358
+ * 弹性伸缩配置
359
+ */
360
+ export interface EsInfo {
463
361
  /**
464
- * 临时密钥的SecretKey
362
+ * 最小实例数
465
363
  */
466
- TmpSecretKey: string;
364
+ MinAliveInstances: number;
467
365
  /**
468
- * 临时密钥的 sessionToken
366
+ * 最大实例数
469
367
  */
470
- SessionToken: string;
368
+ MaxAliveInstances: number;
471
369
  /**
472
- * 临时密钥获取的开始时间
370
+ * 弹性策略,1:cpu,2:内存
473
371
  */
474
- StartTime: string;
372
+ EsStrategy: number;
475
373
  /**
476
- * 临时密钥的 expiredTime
374
+ * 弹性扩缩容条件值
477
375
  */
478
- ExpiredTime: string;
376
+ Threshold: number;
479
377
  /**
480
- * 包完整路径
378
+ * 版本Id
481
379
  */
482
- FullPath: string;
380
+ VersionId?: string;
483
381
  }
484
382
  /**
485
- * GenerateApplicationPackageDownloadUrl请求参数结构体
383
+ * DescribeApplications返回参数结构体
486
384
  */
487
- export interface GenerateApplicationPackageDownloadUrlRequest {
488
- /**
489
- * 应用ID
490
- */
491
- ApplicationId: string;
492
- /**
493
- * 包名
494
- */
495
- PkgName: string;
385
+ export interface DescribeApplicationsResponse {
496
386
  /**
497
- * 需要下载的包版本
387
+ * 返回结果
498
388
  */
499
- DeployVersion: string;
389
+ Result: ServicePage;
500
390
  /**
501
- * 来源 channel
391
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
502
392
  */
503
- SourceChannel?: number;
393
+ RequestId?: string;
504
394
  }
505
395
  /**
506
- * DeployApplication请求参数结构体
396
+ * Ingress 配置
507
397
  */
508
- export interface DeployApplicationRequest {
398
+ export interface IngressInfo {
509
399
  /**
510
- * 应用ID
511
- */
512
- ApplicationId: string;
400
+ * 环境ID
401
+ 注意:此字段可能返回 null,表示取不到有效值。
402
+ */
403
+ EnvironmentId: string;
513
404
  /**
514
- * 初始化 pod 数
405
+ * 环境namespace
515
406
  */
516
- InitPodNum: number;
407
+ ClusterNamespace: string;
517
408
  /**
518
- * cpu规格
409
+ * ip version
519
410
  */
520
- CpuSpec: number;
411
+ AddressIPVersion: string;
521
412
  /**
522
- * 内存规格
413
+ * ingress name
523
414
  */
524
- MemorySpec: number;
415
+ IngressName: string;
525
416
  /**
526
- * 环境ID
417
+ * rules 配置
527
418
  */
528
- EnvironmentId: string;
419
+ Rules: Array<IngressRule>;
529
420
  /**
530
- * 镜像仓库
531
- */
532
- ImgRepo?: string;
421
+ * clb ID
422
+ 注意:此字段可能返回 null,表示取不到有效值。
423
+ */
424
+ ClbId?: string;
533
425
  /**
534
- * 版本描述信息
426
+ * tls 配置
427
+ 注意:此字段可能返回 null,表示取不到有效值。
428
+ */
429
+ Tls?: Array<IngressTls>;
430
+ /**
431
+ * 环境集群ID
432
+ 注意:此字段可能返回 null,表示取不到有效值。
433
+ */
434
+ ClusterId?: string;
435
+ /**
436
+ * clb ip
437
+ 注意:此字段可能返回 null,表示取不到有效值。
438
+ */
439
+ Vip?: string;
440
+ /**
441
+ * 创建时间
442
+ 注意:此字段可能返回 null,表示取不到有效值。
443
+ */
444
+ CreateTime?: string;
445
+ /**
446
+ * 是否混合 https,默认 false,可选值 true 代表有 https 协议监听
535
447
  */
536
- VersionDesc?: string;
448
+ Mixed?: boolean;
537
449
  /**
538
- * 启动参数
450
+ * 重定向模式,可选值:
451
+ - AUTO(自动重定向http到https)
452
+ - NONE(不使用重定向)
453
+ 注意:此字段可能返回 null,表示取不到有效值。
454
+ */
455
+ RewriteType?: string;
456
+ }
457
+ /**
458
+ * DescribeEnvironments请求参数结构体
459
+ */
460
+ export interface DescribeEnvironmentsRequest {
461
+ /**
462
+ * 分页limit
539
463
  */
540
- JvmOpts?: string;
464
+ Limit?: number;
541
465
  /**
542
- * 弹性伸缩配置(已废弃,请使用HorizontalAutoscaler设置弹性策略)
466
+ * 分页下标
543
467
  */
544
- EsInfo?: EsInfo;
468
+ Offset?: number;
545
469
  /**
546
- * 环境变量配置
470
+ * 来源source
547
471
  */
548
- EnvConf?: Array<Pair>;
472
+ SourceChannel?: number;
473
+ }
474
+ /**
475
+ * ModifyEnvironment请求参数结构体
476
+ */
477
+ export interface ModifyEnvironmentRequest {
549
478
  /**
550
- * 日志配置
479
+ * 环境id
551
480
  */
552
- LogConfs?: Array<string>;
481
+ EnvironmentId: string;
553
482
  /**
554
- * 数据卷配置
483
+ * 环境名称
555
484
  */
556
- StorageConfs?: Array<StorageConf>;
485
+ EnvironmentName?: string;
557
486
  /**
558
- * 数据卷挂载配置
487
+ * 环境描述
559
488
  */
560
- StorageMountConfs?: Array<StorageMountConf>;
489
+ Description?: string;
561
490
  /**
562
- * 部署类型。
563
- - JAR:通过 jar 包部署
564
- - WAR:通过 war 包部署
565
- - IMAGE:通过镜像部署
491
+ * 私有网络名称
492
+ */
493
+ Vpc?: string;
494
+ /**
495
+ * 子网网络
496
+ */
497
+ SubnetIds?: Array<string>;
498
+ /**
499
+ * 来源渠道
500
+ */
501
+ SourceChannel?: number;
502
+ }
503
+ /**
504
+ * CreateEnvironment请求参数结构体
505
+ */
506
+ export interface CreateEnvironmentRequest {
507
+ /**
508
+ * 环境名称
509
+ */
510
+ EnvironmentName: string;
511
+ /**
512
+ * 私有网络名称
513
+ */
514
+ Vpc: string;
515
+ /**
516
+ * 子网列表
517
+ */
518
+ SubnetIds: Array<string>;
519
+ /**
520
+ * 环境描述
521
+ */
522
+ Description?: string;
523
+ /**
524
+ * K8s version
525
+ */
526
+ K8sVersion?: string;
527
+ /**
528
+ * 来源渠道
529
+ */
530
+ SourceChannel?: number;
531
+ /**
532
+ * 是否开启tsw服务
533
+ */
534
+ EnableTswTraceService?: boolean;
535
+ }
536
+ /**
537
+ * 分批发布详情
538
+ */
539
+ export interface TemDeployApplicationDetailInfo {
540
+ /**
541
+ * 分批发布策略
542
+ 注意:此字段可能返回 null,表示取不到有效值。
566
543
  */
567
- DeployMode?: string;
544
+ DeployStrategyConf: DeployStrategyConf;
568
545
  /**
569
- * 部署类型为 IMAGE 时,该参数表示镜像 tag。
570
- 部署类型为 JAR/WAR 时,该参数表示包版本号。
546
+ * 开始时间
547
+ 注意:此字段可能返回 null,表示取不到有效值。
571
548
  */
572
- DeployVersion?: string;
549
+ StartTime: string;
573
550
  /**
574
- * 包名。使用 JAR 包或者 WAR 包部署的时候必填。
575
- */
576
- PkgName?: string;
551
+ * 结束时间
552
+ 注意:此字段可能返回 null,表示取不到有效值。
553
+ */
554
+ EndTime: string;
577
555
  /**
578
- * JDK 版本。
579
- - KONA:8:使用 kona jdk 8。
580
- - OPEN:8:使用 open jdk 8。
581
- - KONA:11:使用 kona jdk 11。
582
- - OPEN:11:使用 open jdk 11。
556
+ * 当前状态
557
+ 注意:此字段可能返回 null,表示取不到有效值。
583
558
  */
584
- JdkVersion?: string;
559
+ Status: string;
585
560
  /**
586
- * 安全组ID s
561
+ * beta分批详情
562
+ 注意:此字段可能返回 null,表示取不到有效值。
563
+ */
564
+ BetaBatchDetail: DeployServiceBatchDetail;
565
+ /**
566
+ * 其他分批详情
567
+ 注意:此字段可能返回 null,表示取不到有效值。
568
+ */
569
+ OtherBatchDetail: Array<DeployServiceBatchDetail>;
570
+ /**
571
+ * 老版本pod列表
572
+ 注意:此字段可能返回 null,表示取不到有效值。
573
+ */
574
+ OldVersionPodList: DescribeRunPodPage;
575
+ /**
576
+ * 当前批次id
577
+ 注意:此字段可能返回 null,表示取不到有效值。
578
+ */
579
+ CurrentBatchIndex: number;
580
+ /**
581
+ * 错误原因
582
+ 注意:此字段可能返回 null,表示取不到有效值。
583
+ */
584
+ ErrorMessage: string;
585
+ /**
586
+ * 当前批次状态
587
+ 注意:此字段可能返回 null,表示取不到有效值。
588
+ */
589
+ CurrentBatchStatus: string;
590
+ /**
591
+ * 新版本version
592
+ 注意:此字段可能返回 null,表示取不到有效值。
593
+ */
594
+ NewDeployVersion: string;
595
+ /**
596
+ * 旧版本version
597
+ 注意:此字段可能返回 null,表示取不到有效值。
598
+ */
599
+ OldDeployVersion: string;
600
+ /**
601
+ * 包名称
602
+ 注意:此字段可能返回 null,表示取不到有效值。
603
+ */
604
+ NewVersionPackageInfo: string;
605
+ /**
606
+ * 下一批次开始时间
607
+ 注意:此字段可能返回 null,表示取不到有效值。
608
+ */
609
+ NextBatchStartTime: number;
610
+ }
611
+ /**
612
+ * DescribeEnvironmentStatus返回参数结构体
613
+ */
614
+ export interface DescribeEnvironmentStatusResponse {
615
+ /**
616
+ * 返回状态列表
587
617
  */
588
- SecurityGroupIds?: Array<string>;
618
+ Result: Array<NamespaceStatusInfo>;
589
619
  /**
590
- * 日志输出配置
620
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
591
621
  */
592
- LogOutputConf?: LogOutputConf;
622
+ RequestId?: string;
623
+ }
624
+ /**
625
+ * ingress tls 配置
626
+ */
627
+ export interface IngressTls {
628
+ /**
629
+ * host 数组, 空数组表示全部域名的默认证书
630
+ */
631
+ Hosts: Array<string>;
632
+ /**
633
+ * secret name,如使用证书,则填空字符串
634
+ */
635
+ SecretName: string;
636
+ /**
637
+ * SSL Certificate Id
638
+ */
639
+ CertificateId?: string;
640
+ }
641
+ /**
642
+ * 服务分页
643
+ */
644
+ export interface ServicePage {
645
+ /**
646
+ * 条目
647
+ */
648
+ Records: Array<TemService>;
649
+ /**
650
+ * 总数
651
+ */
652
+ Total: number;
653
+ /**
654
+ * 条目
655
+ */
656
+ Size: number;
657
+ /**
658
+ * 页数
659
+ */
660
+ Pages: number;
661
+ }
662
+ /**
663
+ * CreateCosToken请求参数结构体
664
+ */
665
+ export interface CreateCosTokenRequest {
666
+ /**
667
+ * 应用ID
668
+ */
669
+ ApplicationId: string;
670
+ /**
671
+ * 包名
672
+ */
673
+ PkgName: string;
674
+ /**
675
+ * optType 1上传 2查询
676
+ */
677
+ OptType: number;
678
+ /**
679
+ * 来源 channel
680
+ */
681
+ SourceChannel?: number;
682
+ /**
683
+ * 充当deployVersion入参
684
+ */
685
+ TimeVersion?: string;
686
+ }
687
+ /**
688
+ * ModifyIngress请求参数结构体
689
+ */
690
+ export interface ModifyIngressRequest {
691
+ /**
692
+ * Ingress 规则配置
693
+ */
694
+ Ingress: IngressInfo;
593
695
  /**
594
696
  * 来源渠道
595
697
  */
596
698
  SourceChannel?: number;
699
+ }
700
+ /**
701
+ * 开启prometheus监控配置
702
+ */
703
+ export interface EnablePrometheusConf {
597
704
  /**
598
- * 版本描述
705
+ * 应用开放的监听端口
599
706
  */
600
- Description?: string;
707
+ Port?: number;
601
708
  /**
602
- * 镜像命令
709
+ * 业务指标暴露的url path
603
710
  */
604
- ImageCommand?: string;
711
+ Path?: string;
712
+ }
713
+ /**
714
+ * DescribeIngresses请求参数结构体
715
+ */
716
+ export interface DescribeIngressesRequest {
605
717
  /**
606
- * 镜像命令参数
718
+ * 环境 id
607
719
  */
608
- ImageArgs?: Array<string>;
720
+ EnvironmentId?: string;
609
721
  /**
610
- * 是否添加默认注册中心配置
722
+ * 环境 namespace
611
723
  */
612
- UseRegistryDefaultConfig?: boolean;
724
+ ClusterNamespace?: string;
613
725
  /**
614
- * 挂载配置信息
726
+ * 来源渠道
615
727
  */
616
- SettingConfs?: Array<MountedSettingConf>;
728
+ SourceChannel?: number;
617
729
  /**
618
- * 应用访问设置
730
+ * ingress 规则名列表
619
731
  */
620
- Service?: EksService;
732
+ IngressNames?: Array<string>;
733
+ }
734
+ /**
735
+ * 数据卷挂载信息
736
+ */
737
+ export interface StorageMountConf {
621
738
  /**
622
- * 要回滚到的历史版本id
739
+ * 数据卷名
623
740
  */
624
- VersionId?: string;
741
+ VolumeName: string;
625
742
  /**
626
- * 启动后执行的脚本
743
+ * 数据卷绑定路径
627
744
  */
628
- PostStart?: string;
745
+ MountPath: string;
746
+ }
747
+ /**
748
+ * RestartApplication返回参数结构体
749
+ */
750
+ export interface RestartApplicationResponse {
629
751
  /**
630
- * 停止前执行的脚本
752
+ * 返回结果
631
753
  */
632
- PreStop?: string;
754
+ Result: boolean;
633
755
  /**
634
- * 存活探针配置
756
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
635
757
  */
636
- Liveness?: HealthCheckConfig;
758
+ RequestId?: string;
759
+ }
760
+ /**
761
+ * DescribeIngresses返回参数结构体
762
+ */
763
+ export interface DescribeIngressesResponse {
637
764
  /**
638
- * 就绪探针配置
765
+ * ingress 数组
766
+ 注意:此字段可能返回 null,表示取不到有效值。
767
+ */
768
+ Result: Array<IngressInfo>;
769
+ /**
770
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
639
771
  */
640
- Readiness?: HealthCheckConfig;
772
+ RequestId?: string;
773
+ }
774
+ /**
775
+ * DescribeApplicationsStatus请求参数结构体
776
+ */
777
+ export interface DescribeApplicationsStatusRequest {
641
778
  /**
642
- * 分批发布策略配置
779
+ * 来源渠道
643
780
  */
644
- DeployStrategyConf?: DeployStrategyConf;
781
+ SourceChannel?: number;
645
782
  /**
646
- * 弹性策略(已弃用,请使用弹性伸缩策略组合相关接口)
783
+ * 环境ID
647
784
  */
648
- HorizontalAutoscaler?: Array<HorizontalAutoscaler>;
785
+ EnvironmentId?: string;
786
+ }
787
+ /**
788
+ * 应用实例
789
+ */
790
+ export interface RunVersionPod {
649
791
  /**
650
- * 定时弹性策略(已弃用,请使用弹性伸缩策略组合相关接口)
792
+ * shell地址
651
793
  */
652
- CronHorizontalAutoscaler?: Array<CronHorizontalAutoscaler>;
794
+ Webshell: string;
795
+ /**
796
+ * pod的id
797
+ */
798
+ PodId: string;
799
+ /**
800
+ * 状态
801
+ */
802
+ Status: string;
803
+ /**
804
+ * 创建时间
805
+ */
806
+ CreateTime: string;
807
+ /**
808
+ * 实例的ip
809
+ */
810
+ PodIp: string;
811
+ /**
812
+ * 可用区
813
+ 注意:此字段可能返回 null,表示取不到有效值。
814
+ */
815
+ Zone: string;
816
+ /**
817
+ * 部署版本
818
+ 注意:此字段可能返回 null,表示取不到有效值。
819
+ */
820
+ DeployVersion: string;
821
+ /**
822
+ * 重启次数
823
+ 注意:此字段可能返回 null,表示取不到有效值。
824
+ */
825
+ RestartCount: number;
826
+ /**
827
+ * pod是否就绪
828
+ 注意:此字段可能返回 null,表示取不到有效值。
829
+ */
830
+ Ready: boolean;
831
+ /**
832
+ * 容器状态
833
+ 注意:此字段可能返回 null,表示取不到有效值。
834
+ */
835
+ ContainerState: string;
836
+ }
837
+ /**
838
+ * CreateResource返回参数结构体
839
+ */
840
+ export interface CreateResourceResponse {
841
+ /**
842
+ * 成功与否
843
+ 注意:此字段可能返回 null,表示取不到有效值。
844
+ */
845
+ Result: boolean;
846
+ /**
847
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
848
+ */
849
+ RequestId?: string;
850
+ }
851
+ /**
852
+ * ModifyApplicationInfo返回参数结构体
853
+ */
854
+ export interface ModifyApplicationInfoResponse {
855
+ /**
856
+ * 成功与否
857
+ 注意:此字段可能返回 null,表示取不到有效值。
858
+ */
859
+ Result: boolean;
860
+ /**
861
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
862
+ */
863
+ RequestId?: string;
864
+ }
865
+ /**
866
+ * RestartApplication请求参数结构体
867
+ */
868
+ export interface RestartApplicationRequest {
653
869
  /**
654
- * 是否启用log,1为启用,0为不启用
870
+ * 服务id
655
871
  */
656
- LogEnable?: number;
872
+ ApplicationId: string;
657
873
  /**
658
- * (除开镜像配置)配置是否修改
874
+ * 来源渠道
659
875
  */
660
- ConfEdited?: boolean;
876
+ SourceChannel?: number;
661
877
  /**
662
- * 是否开启应用加速
878
+ * 环境ID
663
879
  */
664
- SpeedUp?: boolean;
880
+ EnvironmentId?: string;
881
+ }
882
+ /**
883
+ * DestroyEnvironment返回参数结构体
884
+ */
885
+ export interface DestroyEnvironmentResponse {
665
886
  /**
666
- * 启动探针配置
887
+ * 返回结果
667
888
  */
668
- StartupProbe?: HealthCheckConfig;
669
- /**
670
- * 操作系统版本;
671
- 当选择openjdk时,可选参数:
672
- - ALPINE
673
- - CENTOS
674
- 当选择konajdk时,可选参数:
675
- - ALPINE
676
- - TENCENTOS
677
- */
678
- OsFlavour?: string;
889
+ Result: boolean;
679
890
  /**
680
- * 是否开启prometheus 业务指标监控
891
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
681
892
  */
682
- EnablePrometheusConf?: EnablePrometheusConf;
683
- /**
684
- * 1:开始apm采集(skywalking);
685
- 0:关闭apm采集;
686
- */
687
- EnableTracing?: number;
893
+ RequestId?: string;
688
894
  }
689
895
  /**
690
- * Ingress 配置
896
+ * DescribeIngress请求参数结构体
691
897
  */
692
- export interface IngressInfo {
898
+ export interface DescribeIngressRequest {
693
899
  /**
694
- * 环境ID
695
- 注意:此字段可能返回 null,表示取不到有效值。
696
- */
900
+ * 环境ID
901
+ */
697
902
  EnvironmentId: string;
698
903
  /**
699
904
  * 环境namespace
700
905
  */
701
906
  ClusterNamespace: string;
702
907
  /**
703
- * ip version
908
+ * ingress 规则名
704
909
  */
705
- AddressIPVersion: string;
910
+ IngressName: string;
706
911
  /**
707
- * ingress name
912
+ * 来源渠道
708
913
  */
709
- IngressName: string;
914
+ SourceChannel?: number;
915
+ }
916
+ /**
917
+ * StopApplication返回参数结构体
918
+ */
919
+ export interface StopApplicationResponse {
710
920
  /**
711
- * rules 配置
921
+ * 返回结果
712
922
  */
713
- Rules: Array<IngressRule>;
923
+ Result: boolean;
714
924
  /**
715
- * clb ID
716
- 注意:此字段可能返回 null,表示取不到有效值。
717
- */
718
- ClbId?: string;
925
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
926
+ */
927
+ RequestId?: string;
928
+ }
929
+ /**
930
+ * DeployApplication返回参数结构体
931
+ */
932
+ export interface DeployApplicationResponse {
719
933
  /**
720
- * tls 配置
721
- 注意:此字段可能返回 null,表示取不到有效值。
722
- */
723
- Tls?: Array<IngressTls>;
934
+ * 版本ID(前端可忽略)
935
+ */
936
+ Result: string;
724
937
  /**
725
- * 环境集群ID
726
- 注意:此字段可能返回 null,表示取不到有效值。
727
- */
728
- ClusterId?: string;
938
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
939
+ */
940
+ RequestId?: string;
941
+ }
942
+ /**
943
+ * RestartApplicationPod返回参数结构体
944
+ */
945
+ export interface RestartApplicationPodResponse {
729
946
  /**
730
- * clb ip
947
+ * 返回结果
731
948
  注意:此字段可能返回 null,表示取不到有效值。
732
949
  */
733
- Vip?: string;
950
+ Result: boolean;
734
951
  /**
735
- * 创建时间
952
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
953
+ */
954
+ RequestId?: string;
955
+ }
956
+ /**
957
+ * 环境停止进程(只统计由环境停止操作触发的应用数量)
958
+ */
959
+ export interface TemEnvironmentStoppingStatus {
960
+ /**
961
+ * 需要停止的应用数量
736
962
  注意:此字段可能返回 null,表示取不到有效值。
737
963
  */
738
- CreateTime?: string;
964
+ ApplicationNumNeedToStop?: number;
739
965
  /**
740
- * 是否混合 https,默认 false,可选值 true 代表有 https 协议监听
741
- */
742
- Mixed?: boolean;
743
- /**
744
- * 重定向模式,可选值:
745
- - AUTO(自动重定向http到https)
746
- - NONE(不使用重定向)
966
+ * 已经停止的应用数量
747
967
  注意:此字段可能返回 null,表示取不到有效值。
748
968
  */
749
- RewriteType?: string;
969
+ StoppedApplicationNum?: number;
750
970
  }
751
971
  /**
752
- * ModifyIngress返回参数结构体
972
+ * DeleteApplication请求参数结构体
753
973
  */
754
- export interface ModifyIngressResponse {
974
+ export interface DeleteApplicationRequest {
755
975
  /**
756
- * 创建成功
757
- 注意:此字段可能返回 null,表示取不到有效值。
758
- */
759
- Result: boolean;
976
+ * 服务Id
977
+ */
978
+ ApplicationId: string;
760
979
  /**
761
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
980
+ * 环境ID
762
981
  */
763
- RequestId?: string;
982
+ EnvironmentId: string;
983
+ /**
984
+ * 来源渠道
985
+ */
986
+ SourceChannel?: number;
987
+ /**
988
+ * 当服务没有任何运行版本时,是否删除此服务
989
+ */
990
+ DeleteApplicationIfNoRunningVersion?: boolean;
764
991
  }
765
992
  /**
766
- * DescribeEnvironments返回参数结构体
993
+ * DescribeApplicationsStatus返回参数结构体
767
994
  */
768
- export interface DescribeEnvironmentsResponse {
995
+ export interface DescribeApplicationsStatusResponse {
769
996
  /**
770
997
  * 返回结果
771
998
  */
772
- Result: NamespacePage;
999
+ Result: Array<ServiceVersionBrief>;
773
1000
  /**
774
1001
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
775
1002
  */
776
1003
  RequestId?: string;
777
1004
  }
778
1005
  /**
779
- * ModifyIngress请求参数结构体
1006
+ * DescribeDeployApplicationDetail请求参数结构体
780
1007
  */
781
- export interface ModifyIngressRequest {
1008
+ export interface DescribeDeployApplicationDetailRequest {
782
1009
  /**
783
- * Ingress 规则配置
1010
+ * 服务id
784
1011
  */
785
- Ingress: IngressInfo;
1012
+ ApplicationId?: string;
786
1013
  /**
787
- * 来源渠道
1014
+ * 环境id
788
1015
  */
789
- SourceChannel?: number;
1016
+ EnvironmentId?: string;
1017
+ /**
1018
+ * 版本部署id
1019
+ */
1020
+ VersionId?: string;
790
1021
  }
791
1022
  /**
792
- * DescribeApplicationPods请求参数结构体
1023
+ * DeleteIngress请求参数结构体
793
1024
  */
794
- export interface DescribeApplicationPodsRequest {
1025
+ export interface DeleteIngressRequest {
795
1026
  /**
796
- * 环境id
1027
+ * 环境ID
797
1028
  */
798
1029
  EnvironmentId: string;
799
1030
  /**
800
- * 应用id
1031
+ * 环境 namespace
801
1032
  */
802
- ApplicationId: string;
1033
+ ClusterNamespace: string;
803
1034
  /**
804
- * 单页条数,默认值20
1035
+ * ingress 规则名
805
1036
  */
806
- Limit?: number;
1037
+ IngressName: string;
807
1038
  /**
808
- * 分页下标,默认值0
1039
+ * 来源渠道
809
1040
  */
810
- Offset?: number;
1041
+ SourceChannel?: number;
1042
+ }
1043
+ /**
1044
+ * DescribeRelatedIngresses请求参数结构体
1045
+ */
1046
+ export interface DescribeRelatedIngressesRequest {
811
1047
  /**
812
- * 实例状态
813
- - Running
814
- - Pending
815
- - Error
816
- */
817
- Status?: string;
1048
+ * 环境 id
1049
+ */
1050
+ EnvironmentId?: string;
818
1051
  /**
819
- * 实例名字
1052
+ * 环境 namespace
820
1053
  */
821
- PodName?: string;
1054
+ ClusterNamespace?: string;
822
1055
  /**
823
1056
  * 来源渠道
824
1057
  */
825
1058
  SourceChannel?: number;
1059
+ /**
1060
+ * 应用 ID
1061
+ */
1062
+ ApplicationId?: string;
826
1063
  }
827
1064
  /**
828
- * CreateApplication请求参数结构体
1065
+ * Cos token
829
1066
  */
830
- export interface CreateApplicationRequest {
1067
+ export interface CosToken {
831
1068
  /**
832
- * 应用名
1069
+ * 唯一请求 ID
833
1070
  */
834
- ApplicationName: string;
1071
+ RequestId: string;
835
1072
  /**
836
- * 描述
1073
+ * 存储桶桶名
837
1074
  */
838
- Description: string;
1075
+ Bucket: string;
839
1076
  /**
840
- * 是否使用默认镜像服务 1-是,0-否
1077
+ * 存储桶所在区域
841
1078
  */
842
- UseDefaultImageService?: number;
1079
+ Region: string;
843
1080
  /**
844
- * 如果是绑定仓库,绑定的仓库类型,0-个人版,1-企业版
1081
+ * 临时密钥的SecretId
845
1082
  */
846
- RepoType?: number;
1083
+ TmpSecretId: string;
847
1084
  /**
848
- * 企业版镜像服务的实例id
1085
+ * 临时密钥的SecretKey
849
1086
  */
850
- InstanceId?: string;
1087
+ TmpSecretKey: string;
851
1088
  /**
852
- * 绑定镜像服务器地址
1089
+ * 临时密钥的 sessionToken
853
1090
  */
854
- RepoServer?: string;
1091
+ SessionToken: string;
855
1092
  /**
856
- * 绑定镜像仓库名
1093
+ * 临时密钥获取的开始时间
857
1094
  */
858
- RepoName?: string;
1095
+ StartTime: string;
859
1096
  /**
860
- * 来源渠道
1097
+ * 临时密钥的 expiredTime
861
1098
  */
862
- SourceChannel?: number;
1099
+ ExpiredTime: string;
863
1100
  /**
864
- * 应用所在子网
1101
+ * 包完整路径
865
1102
  */
866
- SubnetList?: Array<string>;
1103
+ FullPath: string;
1104
+ }
1105
+ /**
1106
+ * GenerateApplicationPackageDownloadUrl请求参数结构体
1107
+ */
1108
+ export interface GenerateApplicationPackageDownloadUrlRequest {
867
1109
  /**
868
- * 编程语言
869
- - JAVA
870
- - OTHER
871
- */
872
- CodingLanguage?: string;
1110
+ * 应用ID
1111
+ */
1112
+ ApplicationId: string;
873
1113
  /**
874
- * 部署方式
875
- - IMAGE
876
- - JAR
877
- - WAR
878
- */
879
- DeployMode?: string;
1114
+ * 包名
1115
+ */
1116
+ PkgName: string;
880
1117
  /**
881
- * 是否开启 Java 应用的 APM 自动上报功能,1 表示启用;0 表示关闭
1118
+ * 需要下载的包版本
882
1119
  */
883
- EnableTracing?: number;
1120
+ DeployVersion: string;
884
1121
  /**
885
- * 使用默认镜像服务额外参数
1122
+ * 来源 channel
886
1123
  */
887
- UseDefaultImageServiceParameters?: UseDefaultRepoParameters;
1124
+ SourceChannel?: number;
888
1125
  }
889
1126
  /**
890
- * 开启prometheus监控配置
1127
+ * DescribeEnvironments返回参数结构体
891
1128
  */
892
- export interface EnablePrometheusConf {
1129
+ export interface DescribeEnvironmentsResponse {
893
1130
  /**
894
- * 应用开放的监听端口
1131
+ * 返回结果
895
1132
  */
896
- Port?: number;
1133
+ Result: NamespacePage;
897
1134
  /**
898
- * 业务指标暴露的url path
1135
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
899
1136
  */
900
- Path?: string;
1137
+ RequestId?: string;
901
1138
  }
902
1139
  /**
903
1140
  * DescribeRelatedIngresses返回参数结构体
@@ -914,523 +1151,558 @@ export interface DescribeRelatedIngressesResponse {
914
1151
  RequestId?: string;
915
1152
  }
916
1153
  /**
917
- * DescribeIngresses请求参数结构体
1154
+ * 命名空间对象
918
1155
  */
919
- export interface DescribeIngressesRequest {
1156
+ export interface TemNamespaceInfo {
920
1157
  /**
921
- * 环境 id
1158
+ * 环境id
922
1159
  */
923
- EnvironmentId?: string;
1160
+ EnvironmentId: string;
924
1161
  /**
925
- * 环境 namespace
1162
+ * 渠道
926
1163
  */
927
- ClusterNamespace?: string;
1164
+ Channel: string;
928
1165
  /**
929
- * 来源渠道
1166
+ * 环境名称
930
1167
  */
931
- SourceChannel?: number;
1168
+ EnvironmentName: string;
932
1169
  /**
933
- * ingress 规则名列表
1170
+ * 区域名称
934
1171
  */
935
- IngressNames?: Array<string>;
936
- }
937
- /**
938
- * 版本pod列表
939
- */
940
- export interface DescribeRunPodPage {
1172
+ Region: string;
941
1173
  /**
942
- * 分页下标
1174
+ * 环境描述
1175
+ 注意:此字段可能返回 null,表示取不到有效值。
1176
+ */
1177
+ Description: string;
1178
+ /**
1179
+ * 状态,1:已销毁;0:正常
943
1180
  */
944
- Offset: number;
1181
+ Status: number;
945
1182
  /**
946
- * 单页条数
1183
+ * vpc网络
947
1184
  */
948
- Limit: number;
1185
+ Vpc: string;
949
1186
  /**
950
- * 总数
1187
+ * 创建时间
951
1188
  */
952
- TotalCount: number;
1189
+ CreateDate: string;
953
1190
  /**
954
- * 请求id
1191
+ * 修改时间
955
1192
  */
956
- RequestId: string;
1193
+ ModifyDate: string;
957
1194
  /**
958
- * 条目
1195
+ * 修改人
959
1196
  */
960
- PodList: Array<RunVersionPod>;
961
- }
962
- /**
963
- * ingress tls 配置
964
- */
965
- export interface IngressTls {
1197
+ Modifier: string;
966
1198
  /**
967
- * host 数组, 空数组表示全部域名的默认证书
1199
+ * 创建人
968
1200
  */
969
- Hosts: Array<string>;
1201
+ Creator: string;
970
1202
  /**
971
- * secret name,如使用证书,则填空字符串
1203
+ * 应用数
972
1204
  */
973
- SecretName: string;
1205
+ ApplicationNum: number;
974
1206
  /**
975
- * SSL Certificate Id
1207
+ * 运行实例数
976
1208
  */
977
- CertificateId?: string;
1209
+ RunInstancesNum: number;
1210
+ /**
1211
+ * 子网络
1212
+ */
1213
+ SubnetId: string;
1214
+ /**
1215
+ * 环境集群 status
1216
+ */
1217
+ ClusterStatus: string;
1218
+ /**
1219
+ * 是否开启tsw
1220
+ */
1221
+ EnableTswTraceService: boolean;
1222
+ /**
1223
+ * 环境锁,1为上锁,0则为上锁
1224
+ */
1225
+ Locked: number;
978
1226
  }
979
1227
  /**
980
- * 分批发布单批次详情
1228
+ * 环境启动进程(只统计由环境启动操作触发的应用数量)
981
1229
  */
982
- export interface DeployServicePodDetail {
1230
+ export interface TemEnvironmentStartingStatus {
983
1231
  /**
984
- * pod Id
1232
+ * 需要启动的应用数量
985
1233
  注意:此字段可能返回 null,表示取不到有效值。
986
1234
  */
987
- PodId?: string;
1235
+ ApplicationNumNeedToStart?: number;
988
1236
  /**
989
- * pod状态
1237
+ * 已经启动的应用数量
990
1238
  注意:此字段可能返回 null,表示取不到有效值。
991
1239
  */
992
- PodStatus?: Array<string>;
1240
+ StartedApplicationNum?: number;
1241
+ }
1242
+ /**
1243
+ * 服务
1244
+ */
1245
+ export interface TemService {
993
1246
  /**
994
- * pod版本
1247
+ * 主键
995
1248
  注意:此字段可能返回 null,表示取不到有效值。
996
1249
  */
997
- PodVersion?: string;
1250
+ ApplicationId: string;
998
1251
  /**
999
- * pod创建时间
1252
+ * 服务名
1000
1253
  注意:此字段可能返回 null,表示取不到有效值。
1001
1254
  */
1002
- CreateTime?: string;
1255
+ ApplicationName: string;
1003
1256
  /**
1004
- * pod所在可用区
1257
+ * 描述
1005
1258
  注意:此字段可能返回 null,表示取不到有效值。
1006
1259
  */
1007
- Zone?: string;
1260
+ Description: string;
1008
1261
  /**
1009
- * webshell地址
1262
+ * 命名空间id
1010
1263
  注意:此字段可能返回 null,表示取不到有效值。
1011
1264
  */
1012
- Webshell?: string;
1013
- }
1014
- /**
1015
- * ModifyApplicationReplicas返回参数结构体
1016
- */
1017
- export interface ModifyApplicationReplicasResponse {
1265
+ EnvironmentId: string;
1018
1266
  /**
1019
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1020
- */
1021
- RequestId?: string;
1267
+ * 创建时间
1268
+ 注意:此字段可能返回 null,表示取不到有效值。
1269
+ */
1270
+ CreateDate: string;
1271
+ /**
1272
+ * 修改时间
1273
+ 注意:此字段可能返回 null,表示取不到有效值。
1274
+ */
1275
+ ModifyDate: string;
1276
+ /**
1277
+ * 修改人
1278
+ 注意:此字段可能返回 null,表示取不到有效值。
1279
+ */
1280
+ Modifier: string;
1281
+ /**
1282
+ * 创建者
1283
+ 注意:此字段可能返回 null,表示取不到有效值。
1284
+ */
1285
+ Creator: string;
1286
+ /**
1287
+ * tcr个人版or企业版
1288
+ 注意:此字段可能返回 null,表示取不到有效值。
1289
+ */
1290
+ RepoType: number;
1291
+ /**
1292
+ * 企业版实例id
1293
+ 注意:此字段可能返回 null,表示取不到有效值。
1294
+ */
1295
+ InstanceId: string;
1296
+ /**
1297
+ * 镜像仓库名
1298
+ 注意:此字段可能返回 null,表示取不到有效值。
1299
+ */
1300
+ RepoName: string;
1301
+ /**
1302
+ * 编程语言
1303
+ 注意:此字段可能返回 null,表示取不到有效值。
1304
+ */
1305
+ CodingLanguage: string;
1306
+ /**
1307
+ * 部署方式
1308
+ 注意:此字段可能返回 null,表示取不到有效值。
1309
+ */
1310
+ DeployMode: string;
1311
+ /**
1312
+ * 环境名称
1313
+ 注意:此字段可能返回 null,表示取不到有效值。
1314
+ */
1315
+ EnvironmentName: string;
1316
+ /**
1317
+ * 服务当前运行环境的实例信息
1318
+ 注意:此字段可能返回 null,表示取不到有效值。
1319
+ */
1320
+ ActiveVersions: Array<ServiceVersionBrief>;
1321
+ /**
1322
+ * 是否启用链路追踪
1323
+ 注意:此字段可能返回 null,表示取不到有效值。
1324
+ */
1325
+ EnableTracing: number;
1022
1326
  }
1023
1327
  /**
1024
- * ModifyApplicationReplicas请求参数结构体
1328
+ * ingress rule 配置
1025
1329
  */
1026
- export interface ModifyApplicationReplicasRequest {
1027
- /**
1028
- * 服务id
1029
- */
1030
- ApplicationId: string;
1330
+ export interface IngressRule {
1031
1331
  /**
1032
- * 环境ID
1332
+ * ingress rule value
1033
1333
  */
1034
- EnvironmentId: string;
1334
+ Http: IngressRuleValue;
1035
1335
  /**
1036
- * 实例数量
1037
- */
1038
- Replicas: number;
1336
+ * host 地址
1337
+ 注意:此字段可能返回 null,表示取不到有效值。
1338
+ */
1339
+ Host?: string;
1039
1340
  /**
1040
- * 来源渠道
1341
+ * 协议,选项为 http, https,默认为 http
1041
1342
  */
1042
- SourceChannel?: number;
1343
+ Protocol?: string;
1043
1344
  }
1044
1345
  /**
1045
- * 日志输出配置
1346
+ * RestartApplicationPod请求参数结构体
1046
1347
  */
1047
- export interface LogOutputConf {
1348
+ export interface RestartApplicationPodRequest {
1048
1349
  /**
1049
- * 日志消费端类型
1350
+ * 环境id
1050
1351
  */
1051
- OutputType: string;
1352
+ EnvironmentId: string;
1052
1353
  /**
1053
- * cls日志集
1354
+ * 应用id
1054
1355
  */
1055
- ClsLogsetName?: string;
1356
+ ApplicationId: string;
1056
1357
  /**
1057
- * cls日志主题
1358
+ * 名字
1058
1359
  */
1059
- ClsLogTopicId?: string;
1360
+ PodName: string;
1060
1361
  /**
1061
- * cls日志集id
1362
+ * 单页条数
1062
1363
  */
1063
- ClsLogsetId?: string;
1364
+ Limit?: number;
1064
1365
  /**
1065
- * cls日志名称
1366
+ * 分页下标
1066
1367
  */
1067
- ClsLogTopicName?: string;
1068
- }
1069
- /**
1070
- * DescribeIngresses返回参数结构体
1071
- */
1072
- export interface DescribeIngressesResponse {
1368
+ Offset?: number;
1073
1369
  /**
1074
- * ingress 数组
1075
- 注意:此字段可能返回 null,表示取不到有效值。
1076
- */
1077
- Result: Array<IngressInfo>;
1370
+ * pod状态
1371
+ */
1372
+ Status?: string;
1078
1373
  /**
1079
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1374
+ * 来源渠道
1080
1375
  */
1081
- RequestId?: string;
1376
+ SourceChannel?: number;
1082
1377
  }
1083
1378
  /**
1084
- * DeleteIngress返回参数结构体
1379
+ * DescribeDeployApplicationDetail返回参数结构体
1085
1380
  */
1086
- export interface DeleteIngressResponse {
1381
+ export interface DescribeDeployApplicationDetailResponse {
1087
1382
  /**
1088
- * 是否删除成功
1383
+ * 分批发布结果详情
1089
1384
  */
1090
- Result: boolean;
1385
+ Result: TemDeployApplicationDetailInfo;
1091
1386
  /**
1092
1387
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1093
1388
  */
1094
1389
  RequestId?: string;
1095
1390
  }
1096
1391
  /**
1097
- * DestroyEnvironment请求参数结构体
1392
+ * Ingress Rule Value 配置
1098
1393
  */
1099
- export interface DestroyEnvironmentRequest {
1100
- /**
1101
- * 命名空间ID
1102
- */
1103
- EnvironmentId: string;
1394
+ export interface IngressRuleValue {
1104
1395
  /**
1105
- * Namespace
1396
+ * rule 整体配置
1106
1397
  */
1107
- SourceChannel?: number;
1398
+ Paths: Array<IngressRulePath>;
1108
1399
  }
1109
1400
  /**
1110
- * 命名空间对象
1401
+ * ResumeDeployApplication请求参数结构体
1111
1402
  */
1112
- export interface TemNamespaceInfo {
1113
- /**
1114
- * 环境id
1115
- */
1116
- EnvironmentId: string;
1117
- /**
1118
- * 渠道
1119
- */
1120
- Channel: string;
1403
+ export interface ResumeDeployApplicationRequest {
1121
1404
  /**
1122
- * 环境名称
1405
+ * 需要开始下一批次的服务id
1123
1406
  */
1124
- EnvironmentName: string;
1407
+ ApplicationId?: string;
1125
1408
  /**
1126
- * 区域名称
1409
+ * 环境id
1127
1410
  */
1128
- Region: string;
1129
- /**
1130
- * 环境描述
1131
- 注意:此字段可能返回 null,表示取不到有效值。
1132
- */
1133
- Description: string;
1411
+ EnvironmentId?: string;
1412
+ }
1413
+ /**
1414
+ * 挂载配置信息
1415
+ */
1416
+ export interface MountedSettingConf {
1134
1417
  /**
1135
- * 状态,1:已销毁;0:正常
1418
+ * 配置名称
1136
1419
  */
1137
- Status: number;
1420
+ ConfigDataName: string;
1138
1421
  /**
1139
- * vpc网络
1422
+ * 挂载路径
1140
1423
  */
1141
- Vpc: string;
1424
+ MountedPath: string;
1142
1425
  /**
1143
- * 创建时间
1426
+ * 配置内容
1144
1427
  */
1145
- CreateDate: string;
1428
+ Data?: Array<Pair>;
1146
1429
  /**
1147
- * 修改时间
1430
+ * 加密配置名称
1148
1431
  */
1149
- ModifyDate: string;
1432
+ SecretDataName?: string;
1433
+ }
1434
+ /**
1435
+ * 健康检查配置
1436
+ */
1437
+ export interface HealthCheckConfig {
1150
1438
  /**
1151
- * 修改人
1439
+ * 支持的健康检查类型,如 HttpGet,TcpSocket,Exec
1152
1440
  */
1153
- Modifier: string;
1441
+ Type: string;
1154
1442
  /**
1155
- * 创建人
1443
+ * 仅当健康检查类型为 HttpGet 时有效,表示协议类型,如 HTTP,HTTPS
1156
1444
  */
1157
- Creator: string;
1445
+ Protocol?: string;
1158
1446
  /**
1159
- * 应用数
1447
+ * 仅当健康检查类型为 HttpGet 时有效,表示请求路径
1160
1448
  */
1161
- ApplicationNum: number;
1449
+ Path?: string;
1162
1450
  /**
1163
- * 运行实例数
1451
+ * 仅当健康检查类型为 Exec 时有效,表示执行的脚本内容
1164
1452
  */
1165
- RunInstancesNum: number;
1453
+ Exec?: string;
1166
1454
  /**
1167
- * 子网络
1455
+ * 仅当健康检查类型为 HttpGet\TcpSocket 时有效,表示请求路径
1168
1456
  */
1169
- SubnetId: string;
1457
+ Port?: number;
1170
1458
  /**
1171
- * 环境集群 status
1459
+ * 检查延迟开始时间,单位为秒,默认为 0
1172
1460
  */
1173
- ClusterStatus: string;
1461
+ InitialDelaySeconds?: number;
1174
1462
  /**
1175
- * 是否开启tsw
1463
+ * 超时时间,单位为秒,默认为 1
1176
1464
  */
1177
- EnableTswTraceService: boolean;
1465
+ TimeoutSeconds?: number;
1178
1466
  /**
1179
- * 环境锁,1为上锁,0则为上锁
1467
+ * 间隔时间,单位为秒,默认为 10
1180
1468
  */
1181
- Locked: number;
1469
+ PeriodSeconds?: number;
1182
1470
  }
1183
1471
  /**
1184
- * GenerateApplicationPackageDownloadUrl返回参数结构体
1472
+ * 分批发布单批次详情
1185
1473
  */
1186
- export interface GenerateApplicationPackageDownloadUrlResponse {
1474
+ export interface DeployServiceBatchDetail {
1187
1475
  /**
1188
- * 包下载临时链接
1476
+ * 旧实例列表
1189
1477
  注意:此字段可能返回 null,表示取不到有效值。
1190
1478
  */
1191
- Result: string;
1479
+ OldPodList?: DeployServicePodDetail;
1192
1480
  /**
1193
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1194
- */
1195
- RequestId?: string;
1481
+ * 新实例列表
1482
+ 注意:此字段可能返回 null,表示取不到有效值。
1483
+ */
1484
+ NewPodList?: DeployServicePodDetail;
1485
+ /**
1486
+ * 当前批次状态:"WaitForTimeExceed", "WaitForResume", "Deploying", "Finish", "NotStart"
1487
+ 注意:此字段可能返回 null,表示取不到有效值。
1488
+ */
1489
+ BatchStatus?: string;
1490
+ /**
1491
+ * 该批次预计旧实例数量
1492
+ 注意:此字段可能返回 null,表示取不到有效值。
1493
+ */
1494
+ PodNum?: number;
1495
+ /**
1496
+ * 批次id
1497
+ 注意:此字段可能返回 null,表示取不到有效值。
1498
+ */
1499
+ BatchIndex?: number;
1500
+ /**
1501
+ * 旧实例列表
1502
+ 注意:此字段可能返回 null,表示取不到有效值。
1503
+ */
1504
+ OldPods?: Array<DeployServicePodDetail>;
1505
+ /**
1506
+ * 新实例列表
1507
+ 注意:此字段可能返回 null,表示取不到有效值。
1508
+ */
1509
+ NewPods?: Array<DeployServicePodDetail>;
1510
+ /**
1511
+ * =0:手动确认批次;>0:下一批次开始时间戳
1512
+ 注意:此字段可能返回 null,表示取不到有效值。
1513
+ */
1514
+ NextBatchStartTime?: number;
1196
1515
  }
1197
1516
  /**
1198
- * Ingress 规则 backend 配置
1517
+ * DeployApplication请求参数结构体
1199
1518
  */
1200
- export interface IngressRuleBackend {
1519
+ export interface DeployApplicationRequest {
1201
1520
  /**
1202
- * eks service 名
1521
+ * 应用ID
1203
1522
  */
1204
- ServiceName: string;
1523
+ ApplicationId: string;
1205
1524
  /**
1206
- * eks service 端口
1525
+ * 初始化 pod
1207
1526
  */
1208
- ServicePort: number;
1209
- }
1210
- /**
1211
- * DescribeIngress返回参数结构体
1212
- */
1213
- export interface DescribeIngressResponse {
1527
+ InitPodNum: number;
1214
1528
  /**
1215
- * Ingress 规则配置
1529
+ * cpu规格
1216
1530
  */
1217
- Result: IngressInfo;
1531
+ CpuSpec: number;
1218
1532
  /**
1219
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1533
+ * 内存规格
1220
1534
  */
1221
- RequestId?: string;
1222
- }
1223
- /**
1224
- * CreateCosToken返回参数结构体
1225
- */
1226
- export interface CreateCosTokenResponse {
1535
+ MemorySpec: number;
1227
1536
  /**
1228
- * 成功时为CosToken对象,失败为null
1229
- 注意:此字段可能返回 null,表示取不到有效值。
1230
- */
1231
- Result: CosToken;
1537
+ * 环境ID
1538
+ */
1539
+ EnvironmentId: string;
1232
1540
  /**
1233
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1541
+ * 镜像仓库
1234
1542
  */
1235
- RequestId?: string;
1236
- }
1237
- /**
1238
- * ingress rule 配置
1239
- */
1240
- export interface IngressRule {
1543
+ ImgRepo?: string;
1241
1544
  /**
1242
- * ingress rule value
1545
+ * 版本描述信息
1243
1546
  */
1244
- Http: IngressRuleValue;
1547
+ VersionDesc?: string;
1245
1548
  /**
1246
- * host 地址
1247
- 注意:此字段可能返回 null,表示取不到有效值。
1248
- */
1249
- Host?: string;
1549
+ * 启动参数
1550
+ */
1551
+ JvmOpts?: string;
1250
1552
  /**
1251
- * 协议,选项为 http, https,默认为 http
1553
+ * 弹性伸缩配置(已废弃,请使用HorizontalAutoscaler设置弹性策略)
1252
1554
  */
1253
- Protocol?: string;
1254
- }
1255
- /**
1256
- * 定时伸缩策略
1257
- */
1258
- export interface CronHorizontalAutoscaler {
1555
+ EsInfo?: EsInfo;
1259
1556
  /**
1260
- * 定时伸缩策略名称
1557
+ * 环境变量配置
1261
1558
  */
1262
- Name?: string;
1559
+ EnvConf?: Array<Pair>;
1263
1560
  /**
1264
- * 策略周期
1265
- * * *,三个范围,第一个是天,第二个是月,第三个是周,中间用空格隔开
1266
- 例子:
1267
- * * * (每天)
1268
- * * 0-3 (每周日到周三)
1269
- 1,11,21 * *(每个月1号,11号,21号)
1561
+ * 日志配置
1562
+ */
1563
+ LogConfs?: Array<string>;
1564
+ /**
1565
+ * 数据卷配置
1566
+ */
1567
+ StorageConfs?: Array<StorageConf>;
1568
+ /**
1569
+ * 数据卷挂载配置
1570
+ */
1571
+ StorageMountConfs?: Array<StorageMountConf>;
1572
+ /**
1573
+ * 部署类型。
1574
+ - JAR:通过 jar 包部署
1575
+ - WAR:通过 war 包部署
1576
+ - IMAGE:通过镜像部署
1270
1577
  */
1271
- Period?: string;
1578
+ DeployMode?: string;
1272
1579
  /**
1273
- * 定时伸缩策略明细
1580
+ * 部署类型为 IMAGE 时,该参数表示镜像 tag。
1581
+ 部署类型为 JAR/WAR 时,该参数表示包版本号。
1582
+ */
1583
+ DeployVersion?: string;
1584
+ /**
1585
+ * 包名。使用 JAR 包或者 WAR 包部署的时候必填。
1274
1586
  */
1275
- Schedules?: Array<CronHorizontalAutoscalerSchedule>;
1587
+ PkgName?: string;
1276
1588
  /**
1277
- * 是否启用
1589
+ * JDK 版本。
1590
+ - KONA:8:使用 kona jdk 8。
1591
+ - OPEN:8:使用 open jdk 8。
1592
+ - KONA:11:使用 kona jdk 11。
1593
+ - OPEN:11:使用 open jdk 11。
1594
+ */
1595
+ JdkVersion?: string;
1596
+ /**
1597
+ * 安全组ID s
1278
1598
  */
1279
- Enabled?: boolean;
1599
+ SecurityGroupIds?: Array<string>;
1280
1600
  /**
1281
- * 策略优先级,值越大优先级越高,0为最小值
1601
+ * 日志输出配置
1282
1602
  */
1283
- Priority?: number;
1284
- }
1285
- /**
1286
- * DescribeApplicationsStatus请求参数结构体
1287
- */
1288
- export interface DescribeApplicationsStatusRequest {
1603
+ LogOutputConf?: LogOutputConf;
1289
1604
  /**
1290
1605
  * 来源渠道
1291
1606
  */
1292
1607
  SourceChannel?: number;
1293
1608
  /**
1294
- * 环境ID
1609
+ * 版本描述
1295
1610
  */
1296
- EnvironmentId?: string;
1297
- }
1298
- /**
1299
- * RollingUpdateApplicationByVersion返回参数结构体
1300
- */
1301
- export interface RollingUpdateApplicationByVersionResponse {
1611
+ Description?: string;
1302
1612
  /**
1303
- * 版本ID
1613
+ * 镜像命令
1304
1614
  */
1305
- Result: string;
1615
+ ImageCommand?: string;
1306
1616
  /**
1307
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1617
+ * 镜像命令参数
1308
1618
  */
1309
- RequestId?: string;
1310
- }
1311
- /**
1312
- * RollingUpdateApplicationByVersion请求参数结构体
1313
- */
1314
- export interface RollingUpdateApplicationByVersionRequest {
1619
+ ImageArgs?: Array<string>;
1315
1620
  /**
1316
- * 应用ID
1621
+ * 是否添加默认注册中心配置
1317
1622
  */
1318
- ApplicationId: string;
1623
+ UseRegistryDefaultConfig?: boolean;
1319
1624
  /**
1320
- * 环境ID
1625
+ * 挂载配置信息
1321
1626
  */
1322
- EnvironmentId: string;
1627
+ SettingConfs?: Array<MountedSettingConf>;
1323
1628
  /**
1324
- * 更新版本,IMAGE 部署为 tag 值;JAR/WAR 部署 为 Version
1629
+ * 应用访问设置
1325
1630
  */
1326
- DeployVersion: string;
1631
+ Service?: EksService;
1327
1632
  /**
1328
- * JAR/WAR 包名,仅 JAR/WAR 部署时必填
1633
+ * 要回滚到的历史版本id
1329
1634
  */
1330
- PackageName?: string;
1635
+ VersionId?: string;
1331
1636
  /**
1332
- * 请求来源平台,含 IntelliJ,Coding
1637
+ * 启动后执行的脚本
1333
1638
  */
1334
- From?: string;
1639
+ PostStart?: string;
1335
1640
  /**
1336
- * 部署策略,AUTO 为全自动;BETA 为小批量验证后自动;MANUAL 为全手动;
1641
+ * 停止前执行的脚本
1337
1642
  */
1338
- DeployStrategyType?: string;
1643
+ PreStop?: string;
1339
1644
  /**
1340
- * 发布批次数
1645
+ * 存活探针配置
1341
1646
  */
1342
- TotalBatchCount?: number;
1647
+ Liveness?: HealthCheckConfig;
1343
1648
  /**
1344
- * 批次间隔时间
1649
+ * 就绪探针配置
1345
1650
  */
1346
- BatchInterval?: number;
1651
+ Readiness?: HealthCheckConfig;
1347
1652
  /**
1348
- * 小批量验证批次的实例数
1653
+ * 分批发布策略配置
1349
1654
  */
1350
- BetaBatchNum?: number;
1655
+ DeployStrategyConf?: DeployStrategyConf;
1351
1656
  /**
1352
- * 发布过程中保障的最小可用实例数
1657
+ * 弹性策略(已弃用,请使用弹性伸缩策略组合相关接口)
1353
1658
  */
1354
- MinAvailable?: number;
1355
- }
1356
- /**
1357
- * 应用实例
1358
- */
1359
- export interface RunVersionPod {
1659
+ HorizontalAutoscaler?: Array<HorizontalAutoscaler>;
1360
1660
  /**
1361
- * shell地址
1661
+ * 定时弹性策略(已弃用,请使用弹性伸缩策略组合相关接口)
1362
1662
  */
1363
- Webshell: string;
1663
+ CronHorizontalAutoscaler?: Array<CronHorizontalAutoscaler>;
1364
1664
  /**
1365
- * pod的id
1665
+ * 是否启用log,1为启用,0为不启用
1366
1666
  */
1367
- PodId: string;
1667
+ LogEnable?: number;
1368
1668
  /**
1369
- * 状态
1669
+ * (除开镜像配置)配置是否修改
1370
1670
  */
1371
- Status: string;
1671
+ ConfEdited?: boolean;
1372
1672
  /**
1373
- * 创建时间
1673
+ * 是否开启应用加速
1374
1674
  */
1375
- CreateTime: string;
1675
+ SpeedUp?: boolean;
1376
1676
  /**
1377
- * 实例的ip
1677
+ * 启动探针配置
1378
1678
  */
1379
- PodIp: string;
1380
- /**
1381
- * 可用区
1382
- 注意:此字段可能返回 null,表示取不到有效值。
1383
- */
1384
- Zone: string;
1385
- /**
1386
- * 部署版本
1387
- 注意:此字段可能返回 null,表示取不到有效值。
1388
- */
1389
- DeployVersion: string;
1390
- /**
1391
- * 重启次数
1392
- 注意:此字段可能返回 null,表示取不到有效值。
1393
- */
1394
- RestartCount: number;
1395
- /**
1396
- * pod是否就绪
1397
- 注意:此字段可能返回 null,表示取不到有效值。
1398
- */
1399
- Ready: boolean;
1679
+ StartupProbe?: HealthCheckConfig;
1400
1680
  /**
1401
- * 容器状态
1402
- 注意:此字段可能返回 null,表示取不到有效值。
1681
+ * 操作系统版本;
1682
+ 当选择openjdk时,可选参数:
1683
+ - ALPINE
1684
+ - CENTOS
1685
+ 当选择konajdk时,可选参数:
1686
+ - ALPINE
1687
+ - TENCENTOS
1403
1688
  */
1404
- ContainerState: string;
1405
- }
1406
- /**
1407
- * DescribeDeployApplicationDetail返回参数结构体
1408
- */
1409
- export interface DescribeDeployApplicationDetailResponse {
1410
- /**
1411
- * 分批发布结果详情
1412
- */
1413
- Result: TemDeployApplicationDetailInfo;
1689
+ OsFlavour?: string;
1414
1690
  /**
1415
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1691
+ * 是否开启prometheus 业务指标监控
1416
1692
  */
1417
- RequestId?: string;
1418
- }
1419
- /**
1420
- * Ingress Rule Value 配置
1421
- */
1422
- export interface IngressRuleValue {
1693
+ EnablePrometheusConf?: EnablePrometheusConf;
1423
1694
  /**
1424
- * rule 整体配置
1425
- */
1426
- Paths: Array<IngressRulePath>;
1695
+ * 1:开始apm采集(skywalking);
1696
+ 0:关闭apm采集;
1697
+ */
1698
+ EnableTracing?: number;
1427
1699
  }
1428
1700
  /**
1429
- * CreateResource返回参数结构体
1701
+ * ModifyIngress返回参数结构体
1430
1702
  */
1431
- export interface CreateResourceResponse {
1703
+ export interface ModifyIngressResponse {
1432
1704
  /**
1433
- * 成功与否
1705
+ * 创建成功
1434
1706
  注意:此字段可能返回 null,表示取不到有效值。
1435
1707
  */
1436
1708
  Result: boolean;
@@ -1440,227 +1712,196 @@ export interface CreateResourceResponse {
1440
1712
  RequestId?: string;
1441
1713
  }
1442
1714
  /**
1443
- * ModifyApplicationInfo请求参数结构体
1715
+ * DescribeApplications请求参数结构体
1444
1716
  */
1445
- export interface ModifyApplicationInfoRequest {
1717
+ export interface DescribeApplicationsRequest {
1446
1718
  /**
1447
- * 应用ID
1719
+ * 命名空间ID
1448
1720
  */
1449
- ApplicationId: string;
1721
+ EnvironmentId?: string;
1450
1722
  /**
1451
- * 描述
1723
+ * 分页Limit
1452
1724
  */
1453
- Description: string;
1725
+ Limit?: number;
1726
+ /**
1727
+ * 分页offset
1728
+ */
1729
+ Offset?: number;
1454
1730
  /**
1455
1731
  * 来源渠道
1456
1732
  */
1457
1733
  SourceChannel?: number;
1458
1734
  /**
1459
- * 是否开启调用链,(此参数已弃用)
1735
+ * 服务id
1460
1736
  */
1461
- EnableTracing?: number;
1462
- }
1463
- /**
1464
- * ModifyApplicationInfo返回参数结构体
1465
- */
1466
- export interface ModifyApplicationInfoResponse {
1467
- /**
1468
- * 成功与否
1469
- 注意:此字段可能返回 null,表示取不到有效值。
1470
- */
1471
- Result: boolean;
1737
+ ApplicationId?: string;
1472
1738
  /**
1473
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1739
+ * 搜索关键字
1474
1740
  */
1475
- RequestId?: string;
1741
+ Keyword?: string;
1476
1742
  }
1477
1743
  /**
1478
- * DeleteApplication返回参数结构体
1744
+ * DescribeApplicationPods请求参数结构体
1479
1745
  */
1480
- export interface DeleteApplicationResponse {
1746
+ export interface DescribeApplicationPodsRequest {
1481
1747
  /**
1482
- * 返回结果
1748
+ * 环境id
1483
1749
  */
1484
- Result: boolean;
1750
+ EnvironmentId: string;
1485
1751
  /**
1486
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1752
+ * 应用id
1487
1753
  */
1488
- RequestId?: string;
1489
- }
1490
- /**
1491
- * Ingress Rule Path 配置
1492
- */
1493
- export interface IngressRulePath {
1754
+ ApplicationId: string;
1494
1755
  /**
1495
- * path 信息
1756
+ * 单页条数,默认值20
1496
1757
  */
1497
- Path: string;
1758
+ Limit?: number;
1498
1759
  /**
1499
- * backend 配置
1760
+ * 分页下标,默认值0
1500
1761
  */
1501
- Backend: IngressRuleBackend;
1502
- }
1503
- /**
1504
- * CreateEnvironment返回参数结构体
1505
- */
1506
- export interface CreateEnvironmentResponse {
1762
+ Offset?: number;
1507
1763
  /**
1508
- * 成功时为环境ID,失败为null
1509
- 注意:此字段可能返回 null,表示取不到有效值。
1764
+ * 实例状态
1765
+ - Running
1766
+ - Pending
1767
+ - Error
1510
1768
  */
1511
- Result: string;
1512
- /**
1513
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1514
- */
1515
- RequestId?: string;
1516
- }
1517
- /**
1518
- * 命名空间分页
1519
- */
1520
- export interface NamespacePage {
1521
- /**
1522
- * 分页内容
1523
- */
1524
- Records: Array<TemNamespaceInfo>;
1525
- /**
1526
- * 总数
1527
- */
1528
- Total: number;
1529
- /**
1530
- * 条目数
1531
- */
1532
- Size: number;
1533
- /**
1534
- * 页数
1535
- */
1536
- Pages: number;
1537
- }
1538
- /**
1539
- * DestroyEnvironment返回参数结构体
1540
- */
1541
- export interface DestroyEnvironmentResponse {
1769
+ Status?: string;
1542
1770
  /**
1543
- * 返回结果
1771
+ * 实例名字
1544
1772
  */
1545
- Result: boolean;
1773
+ PodName?: string;
1546
1774
  /**
1547
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1775
+ * 来源渠道
1548
1776
  */
1549
- RequestId?: string;
1777
+ SourceChannel?: number;
1550
1778
  }
1551
1779
  /**
1552
- * CreateApplication返回参数结构体
1780
+ * CreateApplication请求参数结构体
1553
1781
  */
1554
- export interface CreateApplicationResponse {
1782
+ export interface CreateApplicationRequest {
1555
1783
  /**
1556
- * 服务code
1784
+ * 应用名
1557
1785
  */
1558
- Result: string;
1786
+ ApplicationName: string;
1559
1787
  /**
1560
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1788
+ * 描述
1561
1789
  */
1562
- RequestId?: string;
1563
- }
1564
- /**
1565
- * 弹性伸缩策略
1566
- */
1567
- export interface HorizontalAutoscaler {
1790
+ Description: string;
1568
1791
  /**
1569
- * 最小实例数(可以不传)
1792
+ * 是否使用默认镜像服务 1-是,0-否
1570
1793
  */
1571
- MinReplicas?: number;
1794
+ UseDefaultImageService?: number;
1572
1795
  /**
1573
- * 最大实例数(可以不传)
1796
+ * 如果是绑定仓库,绑定的仓库类型,0-个人版,1-企业版
1574
1797
  */
1575
- MaxReplicas?: number;
1798
+ RepoType?: number;
1576
1799
  /**
1577
- * 指标度量(CPU or MEMORY)
1800
+ * 企业版镜像服务的实例id
1578
1801
  */
1579
- Metrics?: string;
1802
+ InstanceId?: string;
1580
1803
  /**
1581
- * 阈值(百分比)
1804
+ * 绑定镜像服务器地址
1582
1805
  */
1583
- Threshold?: number;
1806
+ RepoServer?: string;
1584
1807
  /**
1585
- * 是否启用
1808
+ * 绑定镜像仓库名
1586
1809
  */
1587
- Enabled?: boolean;
1588
- }
1589
- /**
1590
- * RevertDeployApplication请求参数结构体
1591
- */
1592
- export interface RevertDeployApplicationRequest {
1810
+ RepoName?: string;
1593
1811
  /**
1594
- * 需要回滚的服务id
1812
+ * 来源渠道
1595
1813
  */
1596
- ApplicationId?: string;
1814
+ SourceChannel?: number;
1597
1815
  /**
1598
- * 需要回滚的服务所在环境id
1816
+ * 应用所在子网
1599
1817
  */
1600
- EnvironmentId?: string;
1601
- }
1602
- /**
1603
- * 数据卷挂载信息
1604
- */
1605
- export interface StorageMountConf {
1818
+ SubnetList?: Array<string>;
1606
1819
  /**
1607
- * 数据卷名
1820
+ * 编程语言
1821
+ - JAVA
1822
+ - OTHER
1823
+ */
1824
+ CodingLanguage?: string;
1825
+ /**
1826
+ * 部署方式
1827
+ - IMAGE
1828
+ - JAR
1829
+ - WAR
1830
+ */
1831
+ DeployMode?: string;
1832
+ /**
1833
+ * 是否开启 Java 应用的 APM 自动上报功能,1 表示启用;0 表示关闭
1608
1834
  */
1609
- VolumeName: string;
1835
+ EnableTracing?: number;
1610
1836
  /**
1611
- * 数据卷绑定路径
1837
+ * 使用默认镜像服务额外参数
1612
1838
  */
1613
- MountPath: string;
1839
+ UseDefaultImageServiceParameters?: UseDefaultRepoParameters;
1614
1840
  }
1615
1841
  /**
1616
- * ModifyEnvironment请求参数结构体
1842
+ * 命名空间状态
1617
1843
  */
1618
- export interface ModifyEnvironmentRequest {
1844
+ export interface NamespaceStatusInfo {
1619
1845
  /**
1620
- * 环境id
1846
+ * 命名空间id
1621
1847
  */
1622
1848
  EnvironmentId: string;
1623
1849
  /**
1624
- * 环境名称
1850
+ * 命名空间名称
1625
1851
  */
1626
- EnvironmentName?: string;
1852
+ EnvironmentName: string;
1627
1853
  /**
1628
- * 环境描述
1854
+ * TCB envId | EKS clusterId
1629
1855
  */
1630
- Description?: string;
1856
+ ClusterId?: string;
1631
1857
  /**
1632
- * 私有网络名称
1858
+ * 环境状态
1633
1859
  */
1634
- Vpc?: string;
1860
+ ClusterStatus?: string;
1635
1861
  /**
1636
- * 子网网络
1637
- */
1638
- SubnetIds?: Array<string>;
1862
+ * 环境启动状态(不在启动中为null)
1863
+ 注意:此字段可能返回 null,表示取不到有效值。
1864
+ */
1865
+ EnvironmentStartingStatus?: TemEnvironmentStartingStatus;
1639
1866
  /**
1640
- * 来源渠道
1641
- */
1642
- SourceChannel?: number;
1867
+ * 环境停止状态(不在停止中为null)
1868
+ 注意:此字段可能返回 null,表示取不到有效值。
1869
+ */
1870
+ EnvironmentStoppingStatus?: TemEnvironmentStoppingStatus;
1643
1871
  }
1644
1872
  /**
1645
- * 服务端口映射
1873
+ * 版本pod列表
1646
1874
  */
1647
- export interface PortMapping {
1875
+ export interface DescribeRunPodPage {
1648
1876
  /**
1649
- * 端口
1877
+ * 分页下标
1650
1878
  */
1651
- Port: number;
1879
+ Offset: number;
1652
1880
  /**
1653
- * 映射端口
1881
+ * 单页条数
1654
1882
  */
1655
- TargetPort: number;
1883
+ Limit: number;
1656
1884
  /**
1657
- * 协议栈 TCP/UDP
1885
+ * 总数
1658
1886
  */
1659
- Protocol: string;
1887
+ TotalCount: number;
1660
1888
  /**
1661
- * k8s service名称
1889
+ * 请求id
1662
1890
  */
1663
- ServiceName?: string;
1891
+ RequestId: string;
1892
+ /**
1893
+ * 条目
1894
+ */
1895
+ PodList: Array<RunVersionPod>;
1896
+ }
1897
+ /**
1898
+ * ModifyApplicationReplicas返回参数结构体
1899
+ */
1900
+ export interface ModifyApplicationReplicasResponse {
1901
+ /**
1902
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1903
+ */
1904
+ RequestId?: string;
1664
1905
  }
1665
1906
  /**
1666
1907
  * 创建应用,创建仓库参数
@@ -1683,18 +1924,32 @@ export interface UseDefaultRepoParameters {
1683
1924
  EnterpriseInstanceType: string;
1684
1925
  }
1685
1926
  /**
1686
- * RevertDeployApplication返回参数结构体
1927
+ * GenerateApplicationPackageDownloadUrl返回参数结构体
1687
1928
  */
1688
- export interface RevertDeployApplicationResponse {
1929
+ export interface GenerateApplicationPackageDownloadUrlResponse {
1689
1930
  /**
1690
- * 是否成功
1691
- */
1692
- Result: boolean;
1931
+ * 包下载临时链接
1932
+ 注意:此字段可能返回 null,表示取不到有效值。
1933
+ */
1934
+ Result: string;
1693
1935
  /**
1694
1936
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1695
1937
  */
1696
1938
  RequestId?: string;
1697
1939
  }
1940
+ /**
1941
+ * Ingress 规则 backend 配置
1942
+ */
1943
+ export interface IngressRuleBackend {
1944
+ /**
1945
+ * eks service 名
1946
+ */
1947
+ ServiceName: string;
1948
+ /**
1949
+ * eks service 端口
1950
+ */
1951
+ ServicePort: number;
1952
+ }
1698
1953
  /**
1699
1954
  * 分批发布策略配置
1700
1955
  */
@@ -1725,97 +1980,199 @@ export interface DeployStrategyConf {
1725
1980
  Force?: boolean;
1726
1981
  }
1727
1982
  /**
1728
- * StopApplication请求参数结构体
1983
+ * DescribeIngress返回参数结构体
1984
+ */
1985
+ export interface DescribeIngressResponse {
1986
+ /**
1987
+ * Ingress 规则配置
1988
+ */
1989
+ Result: IngressInfo;
1990
+ /**
1991
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1992
+ */
1993
+ RequestId?: string;
1994
+ }
1995
+ /**
1996
+ * Ingress Rule Path 配置
1997
+ */
1998
+ export interface IngressRulePath {
1999
+ /**
2000
+ * path 信息
2001
+ */
2002
+ Path: string;
2003
+ /**
2004
+ * backend 配置
2005
+ */
2006
+ Backend: IngressRuleBackend;
2007
+ }
2008
+ /**
2009
+ * 服务版本信息列表
2010
+ */
2011
+ export interface ServiceVersionBrief {
2012
+ /**
2013
+ * 版本名称
2014
+ */
2015
+ VersionName: string;
2016
+ /**
2017
+ * 状态
2018
+ */
2019
+ Status: string;
2020
+ /**
2021
+ * 是否启动弹性 -- 已废弃
2022
+ */
2023
+ EnableEs: number;
2024
+ /**
2025
+ * 当前实例
2026
+ */
2027
+ CurrentInstances: number;
2028
+ /**
2029
+ * version的id
2030
+ */
2031
+ VersionId: string;
2032
+ /**
2033
+ * 日志输出配置 -- 已废弃
2034
+ 注意:此字段可能返回 null,表示取不到有效值。
2035
+ */
2036
+ LogOutputConf: LogOutputConf;
2037
+ /**
2038
+ * 期望实例
2039
+ 注意:此字段可能返回 null,表示取不到有效值。
2040
+ */
2041
+ ExpectedInstances: number;
2042
+ /**
2043
+ * 部署方式
2044
+ 注意:此字段可能返回 null,表示取不到有效值。
2045
+ */
2046
+ DeployMode: string;
2047
+ /**
2048
+ * 建构任务ID
2049
+ 注意:此字段可能返回 null,表示取不到有效值。
2050
+ */
2051
+ BuildTaskId: string;
2052
+ /**
2053
+ * 环境ID
2054
+ 注意:此字段可能返回 null,表示取不到有效值。
2055
+ */
2056
+ EnvironmentId: string;
2057
+ /**
2058
+ * 环境name
2059
+ 注意:此字段可能返回 null,表示取不到有效值。
2060
+ */
2061
+ EnvironmentName: string;
2062
+ /**
2063
+ * 服务ID
2064
+ 注意:此字段可能返回 null,表示取不到有效值。
2065
+ */
2066
+ ApplicationId: string;
2067
+ /**
2068
+ * 服务name
2069
+ 注意:此字段可能返回 null,表示取不到有效值。
2070
+ */
2071
+ ApplicationName: string;
2072
+ /**
2073
+ * 是否正在发布中
2074
+ 注意:此字段可能返回 null,表示取不到有效值。
2075
+ */
2076
+ UnderDeploying: boolean;
2077
+ }
2078
+ /**
2079
+ * CreateApplication返回参数结构体
1729
2080
  */
1730
- export interface StopApplicationRequest {
1731
- /**
1732
- * 服务id
1733
- */
1734
- ApplicationId: string;
2081
+ export interface CreateApplicationResponse {
1735
2082
  /**
1736
- * 来源渠道
2083
+ * 服务code
1737
2084
  */
1738
- SourceChannel?: number;
2085
+ Result: string;
1739
2086
  /**
1740
- * 环境ID
2087
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1741
2088
  */
1742
- EnvironmentId?: string;
2089
+ RequestId?: string;
1743
2090
  }
1744
2091
  /**
1745
- * DescribeIngress请求参数结构体
2092
+ * 定时伸缩策略
1746
2093
  */
1747
- export interface DescribeIngressRequest {
2094
+ export interface CronHorizontalAutoscaler {
1748
2095
  /**
1749
- * 环境ID
2096
+ * 定时伸缩策略名称
1750
2097
  */
1751
- EnvironmentId: string;
2098
+ Name?: string;
1752
2099
  /**
1753
- * 环境namespace
2100
+ * 策略周期
2101
+ * * *,三个范围,第一个是天,第二个是月,第三个是周,中间用空格隔开
2102
+ 例子:
2103
+ * * * (每天)
2104
+ * * 0-3 (每周日到周三)
2105
+ 1,11,21 * *(每个月1号,11号,21号)
2106
+ */
2107
+ Period?: string;
2108
+ /**
2109
+ * 定时伸缩策略明细
1754
2110
  */
1755
- ClusterNamespace: string;
2111
+ Schedules?: Array<CronHorizontalAutoscalerSchedule>;
1756
2112
  /**
1757
- * ingress 规则名
2113
+ * 是否启用
1758
2114
  */
1759
- IngressName: string;
2115
+ Enabled?: boolean;
1760
2116
  /**
1761
- * 来源渠道
2117
+ * 策略优先级,值越大优先级越高,0为最小值
1762
2118
  */
1763
- SourceChannel?: number;
2119
+ Priority?: number;
1764
2120
  }
1765
2121
  /**
1766
- * CreateCosToken请求参数结构体
2122
+ * 服务端口映射
1767
2123
  */
1768
- export interface CreateCosTokenRequest {
1769
- /**
1770
- * 应用ID
1771
- */
1772
- ApplicationId: string;
2124
+ export interface PortMapping {
1773
2125
  /**
1774
- * 包名
2126
+ * 端口
1775
2127
  */
1776
- PkgName: string;
2128
+ Port: number;
1777
2129
  /**
1778
- * optType 1上传 2查询
2130
+ * 映射端口
1779
2131
  */
1780
- OptType: number;
2132
+ TargetPort: number;
1781
2133
  /**
1782
- * 来源 channel
2134
+ * 协议栈 TCP/UDP
1783
2135
  */
1784
- SourceChannel?: number;
2136
+ Protocol: string;
1785
2137
  /**
1786
- * 充当deployVersion入参
2138
+ * k8s service名称
1787
2139
  */
1788
- TimeVersion?: string;
2140
+ ServiceName?: string;
1789
2141
  }
1790
2142
  /**
1791
- * DescribeEnvironments请求参数结构体
2143
+ * ModifyEnvironment返回参数结构体
1792
2144
  */
1793
- export interface DescribeEnvironmentsRequest {
1794
- /**
1795
- * 分页limit
1796
- */
1797
- Limit?: number;
2145
+ export interface ModifyEnvironmentResponse {
1798
2146
  /**
1799
- * 分页下标
1800
- */
1801
- Offset?: number;
2147
+ * 成功时为环境ID,失败为null
2148
+ 注意:此字段可能返回 null,表示取不到有效值。
2149
+ */
2150
+ Result: boolean;
1802
2151
  /**
1803
- * 来源source
2152
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1804
2153
  */
1805
- SourceChannel?: number;
2154
+ RequestId?: string;
1806
2155
  }
1807
2156
  /**
1808
- * StopApplication返回参数结构体
2157
+ * ModifyApplicationReplicas请求参数结构体
1809
2158
  */
1810
- export interface StopApplicationResponse {
2159
+ export interface ModifyApplicationReplicasRequest {
1811
2160
  /**
1812
- * 返回结果
2161
+ * 服务id
1813
2162
  */
1814
- Result: boolean;
2163
+ ApplicationId: string;
1815
2164
  /**
1816
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2165
+ * 环境ID
1817
2166
  */
1818
- RequestId?: string;
2167
+ EnvironmentId: string;
2168
+ /**
2169
+ * 实例数量
2170
+ */
2171
+ Replicas: number;
2172
+ /**
2173
+ * 来源渠道
2174
+ */
2175
+ SourceChannel?: number;
1819
2176
  }
1820
2177
  /**
1821
2178
  * eks service info
@@ -1894,151 +2251,29 @@ export interface CronHorizontalAutoscalerSchedule {
1894
2251
  TargetReplicas?: number;
1895
2252
  }
1896
2253
  /**
1897
- * ResumeDeployApplication请求参数结构体
1898
- */
1899
- export interface ResumeDeployApplicationRequest {
1900
- /**
1901
- * 需要开始下一批次的服务id
1902
- */
1903
- ApplicationId?: string;
1904
- /**
1905
- * 环境id
1906
- */
1907
- EnvironmentId?: string;
1908
- }
1909
- /**
1910
- * DeployApplication返回参数结构体
1911
- */
1912
- export interface DeployApplicationResponse {
1913
- /**
1914
- * 版本ID(前端可忽略)
1915
- */
1916
- Result: string;
1917
- /**
1918
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1919
- */
1920
- RequestId?: string;
1921
- }
1922
- /**
1923
- * 存储卷配置
1924
- */
1925
- export interface StorageConf {
1926
- /**
1927
- * 存储卷名称
1928
- */
1929
- StorageVolName: string;
1930
- /**
1931
- * 存储卷路径
1932
- */
1933
- StorageVolPath: string;
1934
- /**
1935
- * 存储卷IP
1936
- 注意:此字段可能返回 null,表示取不到有效值。
1937
- */
1938
- StorageVolIp?: string;
1939
- }
1940
- /**
1941
- * 服务版本信息列表
1942
- */
1943
- export interface ServiceVersionBrief {
1944
- /**
1945
- * 版本名称
1946
- */
1947
- VersionName: string;
1948
- /**
1949
- * 状态
1950
- */
1951
- Status: string;
1952
- /**
1953
- * 是否启动弹性 -- 已废弃
1954
- */
1955
- EnableEs: number;
1956
- /**
1957
- * 当前实例
1958
- */
1959
- CurrentInstances: number;
1960
- /**
1961
- * version的id
1962
- */
1963
- VersionId: string;
1964
- /**
1965
- * 日志输出配置 -- 已废弃
1966
- 注意:此字段可能返回 null,表示取不到有效值。
1967
- */
1968
- LogOutputConf: LogOutputConf;
1969
- /**
1970
- * 期望实例
1971
- 注意:此字段可能返回 null,表示取不到有效值。
1972
- */
1973
- ExpectedInstances: number;
1974
- /**
1975
- * 部署方式
1976
- 注意:此字段可能返回 null,表示取不到有效值。
1977
- */
1978
- DeployMode: string;
1979
- /**
1980
- * 建构任务ID
1981
- 注意:此字段可能返回 null,表示取不到有效值。
1982
- */
1983
- BuildTaskId: string;
1984
- /**
1985
- * 环境ID
1986
- 注意:此字段可能返回 null,表示取不到有效值。
1987
- */
1988
- EnvironmentId: string;
1989
- /**
1990
- * 环境name
1991
- 注意:此字段可能返回 null,表示取不到有效值。
1992
- */
1993
- EnvironmentName: string;
1994
- /**
1995
- * 服务ID
1996
- 注意:此字段可能返回 null,表示取不到有效值。
1997
- */
1998
- ApplicationId: string;
1999
- /**
2000
- * 服务name
2001
- 注意:此字段可能返回 null,表示取不到有效值。
2002
- */
2003
- ApplicationName: string;
2004
- /**
2005
- * 是否正在发布中
2006
- 注意:此字段可能返回 null,表示取不到有效值。
2007
- */
2008
- UnderDeploying: boolean;
2009
- }
2010
- /**
2011
- * CreateEnvironment请求参数结构体
2254
+ * 弹性伸缩策略
2012
2255
  */
2013
- export interface CreateEnvironmentRequest {
2014
- /**
2015
- * 环境名称
2016
- */
2017
- EnvironmentName: string;
2018
- /**
2019
- * 私有网络名称
2020
- */
2021
- Vpc: string;
2256
+ export interface HorizontalAutoscaler {
2022
2257
  /**
2023
- * 子网列表
2258
+ * 最小实例数(可以不传)
2024
2259
  */
2025
- SubnetIds: Array<string>;
2260
+ MinReplicas?: number;
2026
2261
  /**
2027
- * 环境描述
2262
+ * 最大实例数(可以不传)
2028
2263
  */
2029
- Description?: string;
2264
+ MaxReplicas?: number;
2030
2265
  /**
2031
- * K8s version
2266
+ * 指标度量(CPU or MEMORY)
2032
2267
  */
2033
- K8sVersion?: string;
2268
+ Metrics?: string;
2034
2269
  /**
2035
- * 来源渠道
2270
+ * 阈值(百分比)
2036
2271
  */
2037
- SourceChannel?: number;
2272
+ Threshold?: number;
2038
2273
  /**
2039
- * 是否开启tsw服务
2274
+ * 是否启用
2040
2275
  */
2041
- EnableTswTraceService?: boolean;
2276
+ Enabled?: boolean;
2042
2277
  }
2043
2278
  /**
2044
2279
  * 键值对