This repository was archived by the owner on Jul 8, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +62
-0
lines changed Expand file tree Collapse file tree 3 files changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ node_modules
2+ example
3+ .DS_Store
4+ coverage
5+ .nyc_output
6+ output
Original file line number Diff line number Diff line change 1+
2+ 'use strict' ;
3+
4+ const { RPCClient } = require ( '@alicloud/pop-core' ) ;
5+
6+ function hasOwnProperty ( obj , key ) {
7+ return Object . prototype . hasOwnProperty . call ( obj , key ) ;
8+ }
9+
10+ class Client extends RPCClient {
11+ constructor ( config ) {
12+ config . apiVersion = '2020-03-20' ;
13+ super ( config ) ;
14+ }
15+
16+ /**
17+ * @param {RepeatList } URLList - urlList. required.
18+ * @param {Boolean } Async - async. optional. default: true.
19+ */
20+ detectCovid19Cad ( params = { } , options = { } ) {
21+ if ( ! hasOwnProperty ( params , 'URLList' ) ) {
22+ throw new TypeError ( 'parameter "URLList" is required' ) ;
23+ }
24+
25+ options . method = 'POST' ;
26+ return this . request ( 'DetectCovid19Cad' , params , options ) ;
27+ }
28+
29+ /**
30+ * @param {Boolean } Async - async. optional. default: true.
31+ * @param {String } JobId - jobId. required.
32+ */
33+ getAsyncJobResult ( params = { } , options = { } ) {
34+ if ( ! hasOwnProperty ( params , 'JobId' ) ) {
35+ throw new TypeError ( 'parameter "JobId" is required' ) ;
36+ }
37+
38+ options . method = 'POST' ;
39+ return this . request ( 'GetAsyncJobResult' , params , options ) ;
40+ }
41+
42+ }
43+
44+ module . exports = Client ;
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " @alicloud/imageprocess-2020-03-20" ,
3+ "version" : " 1.0.0" ,
4+ "description" : " imageprocess 2020-03-20 Node.js SDK" ,
5+ "main" : " lib/client.js" ,
6+ "scripts" : {},
7+ "author" : " Jackson Tian" ,
8+ "license" : " MIT" ,
9+ "dependencies" : {
10+ "@alicloud/pop-core" : " ^1.7.1"
11+ }
12+ }
You can’t perform that action at this time.
0 commit comments