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