tencentcloud-sdk-nodejs-tcbr 4.0.363

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.
@@ -0,0 +1,723 @@
1
+ /**
2
+ * DescribeCloudRunServers返回参数结构体
3
+ */
4
+ export interface DescribeCloudRunServersResponse {
5
+ /**
6
+ * 服务列表
7
+ */
8
+ ServerList: Array<ServerBaseInfo>;
9
+ /**
10
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
11
+ */
12
+ RequestId?: string;
13
+ }
14
+ /**
15
+ * 扩缩容入参
16
+ */
17
+ export interface HpaPolicy {
18
+ /**
19
+ * 扩缩容类型
20
+ */
21
+ PolicyType: string;
22
+ /**
23
+ * 扩缩容阈值
24
+ */
25
+ PolicyThreshold: number;
26
+ }
27
+ /**
28
+ * StorageInfo 资源信息
29
+ */
30
+ export interface StorageInfo {
31
+ /**
32
+ * 资源所属地域。
33
+ 当前支持ap-shanghai
34
+ */
35
+ Region: string;
36
+ /**
37
+ * 桶名,存储资源的唯一标识
38
+ */
39
+ Bucket: string;
40
+ /**
41
+ * cdn 域名
42
+ */
43
+ CdnDomain: string;
44
+ /**
45
+ * 资源所属用户的腾讯云appId
46
+ */
47
+ AppId: string;
48
+ }
49
+ /**
50
+ * DescribeEnvBaseInfo返回参数结构体
51
+ */
52
+ export interface DescribeEnvBaseInfoResponse {
53
+ /**
54
+ * 环境基础信息
55
+ */
56
+ EnvBaseInfo: EnvBaseInfo;
57
+ /**
58
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
59
+ */
60
+ RequestId?: string;
61
+ }
62
+ /**
63
+ * CreateCloudRunServer请求参数结构体
64
+ */
65
+ export interface CreateCloudRunServerRequest {
66
+ /**
67
+ * 环境Id
68
+ */
69
+ EnvId: string;
70
+ /**
71
+ * 服务名
72
+ */
73
+ ServerName: string;
74
+ /**
75
+ * 部署信息
76
+ */
77
+ DeployInfo: DeployParam;
78
+ /**
79
+ * 服务配置信息
80
+ */
81
+ ServerConfig: ServerBaseConfig;
82
+ }
83
+ /**
84
+ * 函数的信息
85
+ */
86
+ export interface FunctionInfo {
87
+ /**
88
+ * 命名空间
89
+ */
90
+ Namespace: string;
91
+ /**
92
+ * 所属地域。
93
+ 当前支持ap-shanghai
94
+ */
95
+ Region: string;
96
+ }
97
+ /**
98
+ * DescribeCloudRunEnvs返回参数结构体
99
+ */
100
+ export interface DescribeCloudRunEnvsResponse {
101
+ /**
102
+ * 环境信息列表
103
+ */
104
+ EnvList: Array<EnvInfo>;
105
+ /**
106
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
107
+ */
108
+ RequestId?: string;
109
+ }
110
+ /**
111
+ * DescribeCloudRunEnvs请求参数结构体
112
+ */
113
+ export interface DescribeCloudRunEnvsRequest {
114
+ /**
115
+ * 环境ID,如果传了这个参数则只返回该环境的相关信息
116
+ */
117
+ EnvId?: string;
118
+ /**
119
+ * 指定Channels字段为可见渠道列表或不可见渠道列表
120
+ 如只想获取渠道A的环境 就填写IsVisible= true,Channels = ["A"], 过滤渠道A拉取其他渠道环境时填写IsVisible= false,Channels = ["A"]
121
+ */
122
+ IsVisible?: boolean;
123
+ /**
124
+ * 渠道列表,代表可见或不可见渠道由IsVisible参数指定
125
+ */
126
+ Channels?: Array<string>;
127
+ }
128
+ /**
129
+ * 部署参数
130
+ */
131
+ export interface DeployParam {
132
+ /**
133
+ * 部署类型:package/image/repository/pipeline/jar/war
134
+ */
135
+ DeployType: string;
136
+ /**
137
+ * 部署类型为image时传入
138
+ */
139
+ ImageUrl?: string;
140
+ /**
141
+ * 部署类型为package时传入
142
+ */
143
+ PackageName?: string;
144
+ /**
145
+ * 部署类型为package时传入
146
+ */
147
+ PackageVersion?: string;
148
+ /**
149
+ * 部署备注
150
+ */
151
+ DeployRemark?: string;
152
+ /**
153
+ * 代码仓库信息
154
+ */
155
+ RepoInfo?: RepositoryInfo;
156
+ /**
157
+ * 无Dockerfile时填写
158
+ */
159
+ BuildPacks?: BuildPacksInfo;
160
+ /**
161
+ * 发布类型 GRAY | FULL
162
+ */
163
+ ReleaseType?: string;
164
+ }
165
+ /**
166
+ * 静态CDN资源信息
167
+ */
168
+ export interface StaticStorageInfo {
169
+ /**
170
+ * 静态CDN域名
171
+ */
172
+ StaticDomain: string;
173
+ /**
174
+ * 静态CDN默认文件夹,当前为根目录
175
+ */
176
+ DefaultDirName: string;
177
+ /**
178
+ * 资源状态(process/online/offline/init)
179
+ */
180
+ Status: string;
181
+ /**
182
+ * cos所属区域
183
+ */
184
+ Region: string;
185
+ /**
186
+ * bucket信息
187
+ */
188
+ Bucket: string;
189
+ }
190
+ /**
191
+ * UpdateCloudRunServer请求参数结构体
192
+ */
193
+ export interface UpdateCloudRunServerRequest {
194
+ /**
195
+ * 环境Id
196
+ */
197
+ EnvId: string;
198
+ /**
199
+ * 服务名
200
+ */
201
+ ServerName: string;
202
+ /**
203
+ * 部署信息
204
+ */
205
+ DeployInfo: DeployParam;
206
+ /**
207
+ * 服务配置信息
208
+ */
209
+ ServerConfig: ServerBaseConfig;
210
+ }
211
+ /**
212
+ * 云日志服务相关信息
213
+ */
214
+ export interface LogServiceInfo {
215
+ /**
216
+ * log名
217
+ */
218
+ LogsetName: string;
219
+ /**
220
+ * log-id
221
+ */
222
+ LogsetId: string;
223
+ /**
224
+ * topic名
225
+ */
226
+ TopicName: string;
227
+ /**
228
+ * topic-id
229
+ */
230
+ TopicId: string;
231
+ /**
232
+ * cls日志所属地域
233
+ */
234
+ Region: string;
235
+ }
236
+ /**
237
+ * DescribeCloudRunServerDetail请求参数结构体
238
+ */
239
+ export interface DescribeCloudRunServerDetailRequest {
240
+ /**
241
+ * 环境Id
242
+ */
243
+ EnvId: string;
244
+ /**
245
+ * 服务名
246
+ */
247
+ ServerName: string;
248
+ }
249
+ /**
250
+ * 数据库资源信息
251
+ */
252
+ export interface DatabasesInfo {
253
+ /**
254
+ * 数据库唯一标识
255
+ */
256
+ InstanceId: string;
257
+ /**
258
+ * 状态。包含以下取值:
259
+ <li>INITIALIZING:资源初始化中</li>
260
+ <li>RUNNING:运行中,可正常使用的状态</li>
261
+ <li>UNUSABLE:禁用,不可用</li>
262
+ <li>OVERDUE:资源过期</li>
263
+ */
264
+ Status: string;
265
+ /**
266
+ * 所属地域。
267
+ 当前支持ap-shanghai
268
+ */
269
+ Region: string;
270
+ }
271
+ /**
272
+ * DescribeCloudRunServers请求参数结构体
273
+ */
274
+ export interface DescribeCloudRunServersRequest {
275
+ /**
276
+ * 环境Id
277
+ */
278
+ EnvId: string;
279
+ }
280
+ /**
281
+ * cls日志信息
282
+ */
283
+ export interface ClsInfo {
284
+ /**
285
+ * cls所属地域
286
+ */
287
+ ClsRegion: string;
288
+ /**
289
+ * cls日志集ID
290
+ */
291
+ ClsLogsetId: string;
292
+ /**
293
+ * cls日志主题ID
294
+ */
295
+ ClsTopicId: string;
296
+ /**
297
+ * 创建时间
298
+ */
299
+ CreateTime: string;
300
+ }
301
+ /**
302
+ * 服务基础配置信息
303
+ */
304
+ export interface ServerBaseConfig {
305
+ /**
306
+ * 环境 Id
307
+ */
308
+ EnvId: string;
309
+ /**
310
+ * 服务名
311
+ */
312
+ ServerName: string;
313
+ /**
314
+ * 是否开启公网访问
315
+ */
316
+ OpenAccessTypes: Array<string>;
317
+ /**
318
+ * Cpu 规格
319
+ */
320
+ Cpu: number;
321
+ /**
322
+ * Mem 规格
323
+ */
324
+ Mem: number;
325
+ /**
326
+ * 最小副本数
327
+ */
328
+ MinNum: number;
329
+ /**
330
+ * 最大副本数
331
+ */
332
+ MaxNum: number;
333
+ /**
334
+ * 扩缩容配置
335
+ */
336
+ PolicyDetails: Array<HpaPolicy>;
337
+ /**
338
+ * 日志采集路径
339
+ */
340
+ CustomLogs: string;
341
+ /**
342
+ * 环境变量
343
+ */
344
+ EnvParams: string;
345
+ /**
346
+ * 延迟检测时间
347
+ */
348
+ InitialDelaySeconds: number;
349
+ /**
350
+ * 创建时间
351
+ */
352
+ CreateTime: string;
353
+ /**
354
+ * 服务端口
355
+ */
356
+ Port: number;
357
+ /**
358
+ * 是否有Dockerfile
359
+ */
360
+ HasDockerfile: boolean;
361
+ /**
362
+ * Dockerfile 文件名
363
+ */
364
+ Dockerfile: string;
365
+ /**
366
+ * 构建目录
367
+ */
368
+ BuildDir: string;
369
+ /**
370
+ * 日志类型: none | default | custom
371
+ */
372
+ LogType?: string;
373
+ /**
374
+ * cls setId
375
+ */
376
+ LogSetId?: string;
377
+ /**
378
+ * cls 主题id
379
+ */
380
+ LogTopicId?: string;
381
+ /**
382
+ * 解析类型:json | line
383
+ */
384
+ LogParseType?: string;
385
+ }
386
+ /**
387
+ * 代码仓库信息
388
+ */
389
+ export interface RepositoryInfo {
390
+ /**
391
+ * git source
392
+ */
393
+ Source: string;
394
+ /**
395
+ * 仓库名
396
+ */
397
+ Repo: string;
398
+ /**
399
+ * 分之名
400
+ */
401
+ Branch: string;
402
+ }
403
+ /**
404
+ * DescribeCloudRunServerDetail返回参数结构体
405
+ */
406
+ export interface DescribeCloudRunServerDetailResponse {
407
+ /**
408
+ * 服务基本信息
409
+ 注意:此字段可能返回 null,表示取不到有效值。
410
+ */
411
+ BaseInfo: ServerBaseInfo;
412
+ /**
413
+ * 服务配置信息
414
+ 注意:此字段可能返回 null,表示取不到有效值。
415
+ */
416
+ ServerConfig: ServerBaseConfig;
417
+ /**
418
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
419
+ */
420
+ RequestId?: string;
421
+ }
422
+ /**
423
+ * CreateCloudRunEnv返回参数结构体
424
+ */
425
+ export interface CreateCloudRunEnvResponse {
426
+ /**
427
+ * 环境Id
428
+ */
429
+ EnvId: string;
430
+ /**
431
+ * 后付费订单号
432
+ */
433
+ TranId: string;
434
+ /**
435
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
436
+ */
437
+ RequestId?: string;
438
+ }
439
+ /**
440
+ * 环境基础信息
441
+ */
442
+ export interface EnvBaseInfo {
443
+ /**
444
+ * 环境Id
445
+ */
446
+ EnvId: string;
447
+ /**
448
+ * 套餐类型:Trial | Standard | Professional | Enterprise
449
+ */
450
+ PackageType: string;
451
+ /**
452
+ * VPC Id
453
+ */
454
+ VpcId: string;
455
+ /**
456
+ * 环境创建时间
457
+ */
458
+ CreateTime: string;
459
+ /**
460
+ * 环境别名
461
+ */
462
+ Alias: string;
463
+ /**
464
+ * 环境状态
465
+ */
466
+ Status: string;
467
+ /**
468
+ * 环境地域
469
+ */
470
+ Region: string;
471
+ /**
472
+ * 环境类型 tcbr | run
473
+ */
474
+ EnvType: string;
475
+ }
476
+ /**
477
+ * 服务基本信息
478
+ */
479
+ export interface ServerBaseInfo {
480
+ /**
481
+ * 服务名
482
+ */
483
+ ServerName: string;
484
+ /**
485
+ * 默认服务域名
486
+ */
487
+ DefaultDomainName: string;
488
+ /**
489
+ * 自定义域名
490
+ */
491
+ CustomDomainName: string;
492
+ /**
493
+ * 服务状态:running/deploying/deploy_failed
494
+ */
495
+ Status: string;
496
+ /**
497
+ * 更新时间
498
+ */
499
+ UpdateTime: string;
500
+ }
501
+ /**
502
+ * 环境信息
503
+ */
504
+ export interface EnvInfo {
505
+ /**
506
+ * 账户下该环境唯一标识
507
+ */
508
+ EnvId: string;
509
+ /**
510
+ * 环境来源。包含以下取值:
511
+ <li>miniapp:微信小程序</li>
512
+ <li>qcloud :腾讯云</li>
513
+ */
514
+ Source: string;
515
+ /**
516
+ * 环境别名,要以a-z开头,不能包含 a-zA-z0-9- 以外的字符
517
+ */
518
+ Alias: string;
519
+ /**
520
+ * 创建时间
521
+ */
522
+ CreateTime: string;
523
+ /**
524
+ * 最后修改时间
525
+ */
526
+ UpdateTime: string;
527
+ /**
528
+ * 环境状态。包含以下取值:
529
+ <li>NORMAL:正常可用</li>
530
+ <li>UNAVAILABLE:服务不可用,可能是尚未初始化或者初始化过程中</li>
531
+ */
532
+ Status: string;
533
+ /**
534
+ * 是否到期自动降为免费版
535
+ 注意:此字段可能返回 null,表示取不到有效值。
536
+ */
537
+ IsAutoDegrade: boolean;
538
+ /**
539
+ * 环境渠道
540
+ 注意:此字段可能返回 null,表示取不到有效值。
541
+ */
542
+ EnvChannel: string;
543
+ /**
544
+ * 支付方式。包含以下取值:
545
+ <li> prepayment:预付费</li>
546
+ <li> postpaid:后付费</li>
547
+ 注意:此字段可能返回 null,表示取不到有效值。
548
+ */
549
+ PayMode: string;
550
+ /**
551
+ * 是否为默认环境
552
+ 注意:此字段可能返回 null,表示取不到有效值。
553
+ */
554
+ IsDefault: boolean;
555
+ /**
556
+ * 环境所属地域
557
+ 注意:此字段可能返回 null,表示取不到有效值。
558
+ */
559
+ Region: string;
560
+ /**
561
+ * 环境类型:baas, run, hosting, weda,tcbr
562
+ 注意:此字段可能返回 null,表示取不到有效值。
563
+ */
564
+ EnvType: string;
565
+ /**
566
+ * 数据库列表
567
+ */
568
+ Databases: Array<DatabasesInfo>;
569
+ /**
570
+ * 存储列表
571
+ */
572
+ Storages: Array<StorageInfo>;
573
+ /**
574
+ * 函数列表
575
+ */
576
+ Functions: Array<FunctionInfo>;
577
+ /**
578
+ * 云日志服务列表
579
+ 注意:此字段可能返回 null,表示取不到有效值。
580
+ */
581
+ LogServices: Array<LogServiceInfo>;
582
+ /**
583
+ * 静态资源信息
584
+ 注意:此字段可能返回 null,表示取不到有效值。
585
+ */
586
+ StaticStorages: Array<StaticStorageInfo>;
587
+ /**
588
+ * 环境标签列表
589
+ 注意:此字段可能返回 null,表示取不到有效值。
590
+ */
591
+ Tags: Array<Tag>;
592
+ /**
593
+ * 自定义日志服务
594
+ 注意:此字段可能返回 null,表示取不到有效值。
595
+ */
596
+ CustomLogServices: Array<ClsInfo>;
597
+ /**
598
+ * tcb产品套餐ID,参考DescribePackages接口的返回值。
599
+ 注意:此字段可能返回 null,表示取不到有效值。
600
+ */
601
+ PackageId: string;
602
+ /**
603
+ * 套餐中文名称,参考DescribePackages接口的返回值。
604
+ 注意:此字段可能返回 null,表示取不到有效值。
605
+ */
606
+ PackageName: string;
607
+ }
608
+ /**
609
+ * 标签键值对
610
+ */
611
+ export interface Tag {
612
+ /**
613
+ * 标签键
614
+ */
615
+ Key: string;
616
+ /**
617
+ * 标签值
618
+ */
619
+ Value: string;
620
+ }
621
+ /**
622
+ * DescribeEnvBaseInfo请求参数结构体
623
+ */
624
+ export interface DescribeEnvBaseInfoRequest {
625
+ /**
626
+ * 环境 Id
627
+ */
628
+ EnvId: string;
629
+ }
630
+ /**
631
+ * CreateCloudRunServer返回参数结构体
632
+ */
633
+ export interface CreateCloudRunServerResponse {
634
+ /**
635
+ * 一键部署任务Id,微信云托管,暂时用不到
636
+ */
637
+ TaskId: number;
638
+ /**
639
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
640
+ */
641
+ RequestId?: string;
642
+ }
643
+ /**
644
+ * UpdateCloudRunServer返回参数结构体
645
+ */
646
+ export interface UpdateCloudRunServerResponse {
647
+ /**
648
+ * 环境Id
649
+ */
650
+ EnvId: string;
651
+ /**
652
+ * 一键部署任务Id,暂时用不到
653
+ */
654
+ TaskId: number;
655
+ /**
656
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
657
+ */
658
+ RequestId?: string;
659
+ }
660
+ /**
661
+ * BuildPacks信息
662
+ */
663
+ export interface BuildPacksInfo {
664
+ /**
665
+ * 基础镜像
666
+ */
667
+ BaseImage: string;
668
+ /**
669
+ * 启动命令
670
+ */
671
+ EntryPoint: string;
672
+ /**
673
+ * 语言
674
+ */
675
+ RepoLanguage: string;
676
+ /**
677
+ * 上传文件名
678
+ */
679
+ UploadFilename: string;
680
+ }
681
+ /**
682
+ * CreateCloudRunEnv请求参数结构体
683
+ */
684
+ export interface CreateCloudRunEnvRequest {
685
+ /**
686
+ * Trial,Standard,Professional,Enterprise
687
+ */
688
+ PackageType: string;
689
+ /**
690
+ * 环境别名,要以a-z开头,不能包含 a-z,0-9,- 以外的字符
691
+ */
692
+ Alias?: string;
693
+ /**
694
+ * 用户享有的免费额度级别,目前只能为“basic”,不传该字段或该字段为空,标识不享受免费额度。
695
+ */
696
+ FreeQuota?: string;
697
+ /**
698
+ * 订单标记。建议使用方统一转大小写之后再判断。
699
+ QuickStart:快速启动来源
700
+ Activity:活动来源
701
+ */
702
+ Flag?: string;
703
+ /**
704
+ * 私有网络Id
705
+ */
706
+ VpcId?: string;
707
+ /**
708
+ * 子网列表
709
+ */
710
+ SubNetIds?: Array<string>;
711
+ /**
712
+ * 请求key 用于防重
713
+ */
714
+ ReqKey?: string;
715
+ /**
716
+ * 来源:wechat | cloud
717
+ */
718
+ Source?: string;
719
+ /**
720
+ * 渠道:wechat | cloud
721
+ */
722
+ Channel?: string;
723
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });