File tree Expand file tree Collapse file tree 9 files changed +36
-21
lines changed Expand file tree Collapse file tree 9 files changed +36
-21
lines changed Original file line number Diff line number Diff line change 1
1
const { apigw } = require ( 'tencent-cloud-sdk' )
2
2
const { uniqueArray } = require ( '../../utils/index' )
3
3
4
- class ApigwBaas {
4
+ class Apigw {
5
5
constructor ( credentials = { } , region ) {
6
6
this . region = region || 'ap-guangzhou'
7
7
this . credentials = credentials
@@ -436,4 +436,4 @@ class ApigwBaas {
436
436
}
437
437
}
438
438
439
- module . exports = ApigwBaas
439
+ module . exports = Apigw
Original file line number Diff line number Diff line change 1
1
const { cns } = require ( 'tencent-cloud-sdk' )
2
- class CnsUtils {
2
+ class Cns {
3
3
constructor ( credentials = { } , region = 'ap-guangzhou' ) {
4
4
this . region = region
5
5
this . credentials = credentials
@@ -214,4 +214,4 @@ class CnsUtils {
214
214
}
215
215
}
216
216
217
- module . exports = CnsUtils
217
+ module . exports = Cns
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const fs = require('fs')
5
5
const klawSync = require ( 'klaw-sync' )
6
6
const exec = util . promisify ( require ( 'child_process' ) . exec )
7
7
8
- class CosUtils {
8
+ class Cos {
9
9
constructor ( credentials = { } , region = 'ap-guangzhou' ) {
10
10
this . region = region
11
11
this . credentials = credentials
@@ -501,4 +501,4 @@ class CosUtils {
501
501
}
502
502
}
503
503
504
- module . exports = CosUtils
504
+ module . exports = Cos
Original file line number Diff line number Diff line change 1
1
const { domain } = require ( 'tencent-cloud-sdk' )
2
- class DomainUtils {
2
+ class Domain {
3
3
constructor ( credentials = { } , region = 'ap-guangzhou' ) {
4
4
this . credentials = credentials
5
5
this . region = region
@@ -33,4 +33,4 @@ class DomainUtils {
33
33
}
34
34
}
35
35
36
- module . exports = DomainUtils
36
+ module . exports = Domain
Original file line number Diff line number Diff line change 1
1
const apigwUtils = require ( '../apigw/index' )
2
2
3
- class TencentAPIGWMultiRegion {
3
+ class MultiApigw {
4
4
constructor ( credentials = { } , region ) {
5
5
this . regionList = typeof region == 'string' ? [ region ] : region
6
6
this . credentials = credentials
@@ -86,4 +86,4 @@ class TencentAPIGWMultiRegion {
86
86
}
87
87
88
88
// don't forget to export the new Componnet you created!
89
- module . exports = TencentAPIGWMultiRegion
89
+ module . exports = MultiApigw
Original file line number Diff line number Diff line change 1
1
const scfUtils = require ( '../scf/index' )
2
2
3
- class TencentSCFMultiRegion {
3
+ class MultiScf {
4
4
constructor ( credentials = { } , region ) {
5
5
this . regionList = typeof region == 'string' ? [ region ] : region
6
6
this . credentials = credentials
@@ -78,4 +78,4 @@ class TencentSCFMultiRegion {
78
78
}
79
79
}
80
80
81
- module . exports = TencentSCFMultiRegion
81
+ module . exports = MultiScf
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const defaultNamespace = 'default'
7
7
const defaultMemorySize = 128
8
8
const defaultTimeout = 3
9
9
10
- class ScfUtils {
10
+ class Scf {
11
11
constructor ( credentials = { } , region ) {
12
12
this . region = region || 'ap-guangzhou'
13
13
this . credentials = credentials
@@ -523,4 +523,4 @@ class ScfUtils {
523
523
}
524
524
}
525
525
526
- module . exports = ScfUtils
526
+ module . exports = Scf
Original file line number Diff line number Diff line change 1
1
const { tag } = require ( 'tencent-cloud-sdk' )
2
- class CnsUtils {
2
+ class Tag {
3
3
constructor ( credentials = { } , region = 'ap-guangzhou' ) {
4
4
this . credentials = credentials
5
5
this . region = region
@@ -42,4 +42,4 @@ class CnsUtils {
42
42
}
43
43
}
44
44
45
- module . exports = CnsUtils
45
+ module . exports = Tag
Original file line number Diff line number Diff line change 1
- const app = {
2
- version : '1.0.0' ,
3
- name : 'release-ci-test'
4
- }
1
+ const Apigw = require ( './baas/apigw' )
2
+ const Cdn = require ( './baas/cdn' )
3
+ const Cns = require ( './baas/cns' )
4
+ const Cos = require ( './baas/cos' )
5
+ const Domain = require ( './baas/domain' )
6
+ const MultiApigw = require ( './baas/multi-apigw' )
7
+ const MultiScf = require ( './baas/multi-scf' )
8
+ const Scf = require ( './baas/scf' )
9
+ const Tag = require ( './baas/tag' )
5
10
6
- module . exports = app
11
+ module . exports = {
12
+ Apigw,
13
+ Cdn,
14
+ Cns,
15
+ Cos,
16
+ Domain,
17
+ MultiApigw,
18
+ MultiScf,
19
+ Scf,
20
+ Tag
21
+ }
You can’t perform that action at this time.
0 commit comments