Skip to content
This repository was archived by the owner on Jul 8, 2024. It is now read-only.

Commit aedb468

Browse files
yuanyaoqipeze
authored andcommitted
add product imageprocess-2020-03-20
1 parent c0784e6 commit aedb468

File tree

3 files changed

+62
-0
lines changed

3 files changed

+62
-0
lines changed

imageprocess-2020-03-20/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
example
3+
.DS_Store
4+
coverage
5+
.nyc_output
6+
output
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
}

0 commit comments

Comments
 (0)