Skip to content

Commit

Permalink
sdk: add UPhone apis (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
fioncat authored Apr 28, 2022
1 parent 5f75d25 commit 4f6e844
Show file tree
Hide file tree
Showing 7 changed files with 4,704 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ gen:
--only "USMS" \
--only "UEC" \
--only "UVMS" \
--only "UPhone" \
--public \
-s $(HOME)/.oas/vcs/git.ucloudadmin.com/apispec/apispec/specification \
$(HOME)/.oas/vcs/git.ucloudadmin.com/apispec/template-opensdk-js .
Expand Down
1 change: 1 addition & 0 deletions lib/services/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export declare class Client extends BaseClient {
ulb(): any;
umem(): any;
unet(): any;
uphone(): any;
uphost(): any;
usms(): any;
uvms(): any;
Expand Down
7 changes: 7 additions & 0 deletions lib/services/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const UK8SClient = require('./uk8s').default;
const ULBClient = require('./ulb').default;
const UMemClient = require('./umem').default;
const UNetClient = require('./unet').default;
const UPhoneClient = require('./uphone').default;
const UPHostClient = require('./uphost').default;
const USMSClient = require('./usms').default;
const UVMSClient = require('./uvms').default;
Expand Down Expand Up @@ -103,6 +104,12 @@ class Client extends BaseClient {
unet() {
return new UNetClient({ config: this.config, credential: this.credential });
}
uphone() {
return new UPhoneClient({
config: this.config,
credential: this.credential,
});
}
uphost() {
return new UPHostClient({
config: this.config,
Expand Down
Loading

0 comments on commit 4f6e844

Please sign in to comment.