-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathPublicControllerApi.js
More file actions
87 lines (76 loc) · 2.86 KB
/
PublicControllerApi.js
File metadata and controls
87 lines (76 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
* GoPlus Security API Document
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 3.0.45
*
* Do not edit the class manually.
*
*/
import {ApiClient} from "../ApiClient";
import {DustAttackDetectionReq} from '../model/DustAttackDetectionReq';
import {ResponseWrapperDustAttackDetection} from '../model/ResponseWrapperDustAttackDetection';
/**
* PublicController service.
* @module api/PublicControllerApi
* @version 1.0
*/
export class PublicControllerApi {
/**
* Constructs a new PublicControllerApi.
* @alias module:api/PublicControllerApi
* @class
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
* default to {@link module:ApiClient#instanc
e} if unspecified.
*/
constructor(apiClient) {
this.apiClient = apiClient || ApiClient.instance;
}
/**
* Callback function to receive the result of the dustAttackDetectionUsingPOST operation.
* @callback moduleapi/PublicControllerApi~dustAttackDetectionUsingPOSTCallback
* @param {String} error Error message, if any.
* @param {module:model/ResponseWrapperDustAttackDetection{ data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* dustAttackDetection
* @param {module:model/DustAttackDetectionReq} body req
* @param {Object} opts Optional parameters
* @param {String} opts.Authorization Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...)
* @param {module:api/PublicControllerApi~dustAttackDetectionUsingPOSTCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
*/
dustAttackDetectionUsingPOST(body, opts, callback) {
opts = opts || {};
let postBody = body;
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling dustAttackDetectionUsingPOST");
}
let pathParams = {
};
let queryParams = {
};
let headerParams = {
'Authorization': opts['Authorization']
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['*/*'];
let returnType = ResponseWrapperDustAttackDetection;
return this.apiClient.callApi(
'/api/v1/dust_attack_detection', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, callback
);
}
}