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 11const { apigw } = require ( 'tencent-cloud-sdk' )
22const { uniqueArray } = require ( '../../utils/index' )
33
4- class ApigwBaas {
4+ class Apigw {
55 constructor ( credentials = { } , region ) {
66 this . region = region || 'ap-guangzhou'
77 this . credentials = credentials
@@ -436,4 +436,4 @@ class ApigwBaas {
436436 }
437437}
438438
439- module . exports = ApigwBaas
439+ module . exports = Apigw
Original file line number Diff line number Diff line change 11const { cns } = require ( 'tencent-cloud-sdk' )
2- class CnsUtils {
2+ class Cns {
33 constructor ( credentials = { } , region = 'ap-guangzhou' ) {
44 this . region = region
55 this . credentials = credentials
@@ -214,4 +214,4 @@ class CnsUtils {
214214 }
215215}
216216
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')
55const klawSync = require ( 'klaw-sync' )
66const exec = util . promisify ( require ( 'child_process' ) . exec )
77
8- class CosUtils {
8+ class Cos {
99 constructor ( credentials = { } , region = 'ap-guangzhou' ) {
1010 this . region = region
1111 this . credentials = credentials
@@ -501,4 +501,4 @@ class CosUtils {
501501 }
502502}
503503
504- module . exports = CosUtils
504+ module . exports = Cos
Original file line number Diff line number Diff line change 11const { domain } = require ( 'tencent-cloud-sdk' )
2- class DomainUtils {
2+ class Domain {
33 constructor ( credentials = { } , region = 'ap-guangzhou' ) {
44 this . credentials = credentials
55 this . region = region
@@ -33,4 +33,4 @@ class DomainUtils {
3333 }
3434}
3535
36- module . exports = DomainUtils
36+ module . exports = Domain
Original file line number Diff line number Diff line change 11const apigwUtils = require ( '../apigw/index' )
22
3- class TencentAPIGWMultiRegion {
3+ class MultiApigw {
44 constructor ( credentials = { } , region ) {
55 this . regionList = typeof region == 'string' ? [ region ] : region
66 this . credentials = credentials
@@ -86,4 +86,4 @@ class TencentAPIGWMultiRegion {
8686}
8787
8888// 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 11const scfUtils = require ( '../scf/index' )
22
3- class TencentSCFMultiRegion {
3+ class MultiScf {
44 constructor ( credentials = { } , region ) {
55 this . regionList = typeof region == 'string' ? [ region ] : region
66 this . credentials = credentials
@@ -78,4 +78,4 @@ class TencentSCFMultiRegion {
7878 }
7979}
8080
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'
77const defaultMemorySize = 128
88const defaultTimeout = 3
99
10- class ScfUtils {
10+ class Scf {
1111 constructor ( credentials = { } , region ) {
1212 this . region = region || 'ap-guangzhou'
1313 this . credentials = credentials
@@ -523,4 +523,4 @@ class ScfUtils {
523523 }
524524}
525525
526- module . exports = ScfUtils
526+ module . exports = Scf
Original file line number Diff line number Diff line change 11const { tag } = require ( 'tencent-cloud-sdk' )
2- class CnsUtils {
2+ class Tag {
33 constructor ( credentials = { } , region = 'ap-guangzhou' ) {
44 this . credentials = credentials
55 this . region = region
@@ -42,4 +42,4 @@ class CnsUtils {
4242 }
4343}
4444
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' )
510
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