1+ /*
2+ * GoPlus Security API Document
3+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
4+ *
5+ * OpenAPI spec version: 1.0
6+ *
7+ * NOTE: This class is auto generated by the swagger code generator program.
8+ * https://github.com/swagger-api/swagger-codegen.git
9+ *
10+ * Swagger Codegen version: 3.0.45
11+ *
12+ * Do not edit the class manually.
13+ *
14+ */
15+ import { ApiClient } from "../ApiClient" ;
16+ import { ResponseWrapperGetScanResult } from '../model/ResponseWrapperGetScanResult' ;
17+ import { ResponseWrapperOpenScanAddressResp } from '../model/ResponseWrapperOpenScanAddressResp' ;
18+
19+ /**
20+ * SecWareOpenController service.
21+ * @module api/SecWareOpenControllerApi
22+ * @version 1.0
23+ */
24+ export class SecWareOpenControllerApi {
25+
26+ /**
27+ * Constructs a new SecWareOpenControllerApi.
28+ * @alias module:api/SecWareOpenControllerApi
29+ * @class
30+ * @param {module:ApiClient } [apiClient] Optional API client implementation to use,
31+ * default to {@link module:ApiClient#instanc
32+ e} if unspecified.
33+ */
34+ constructor ( apiClient ) {
35+ this . apiClient = apiClient || ApiClient . instance ;
36+ }
37+
38+ /**
39+ * Callback function to receive the result of the getScanResultUsingGET operation.
40+ * @callback moduleapi/SecWareOpenControllerApi~getScanResultUsingGETCallback
41+ * @param {String } error Error message, if any.
42+ * @param {module:model/ResponseWrapperGetScanResult{ data The data returned by the service call.
43+ * @param {String } response The complete HTTP response.
44+ */
45+
46+ /**
47+ * Get address scan result
48+ * @param {String } request_id request_id
49+ * @param {Object } opts Optional parameters
50+ * @param {String } opts.Authorization Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...)
51+ * @param {module:api/SecWareOpenControllerApi~getScanResultUsingGETCallback } callback The callback function, accepting three arguments: error, data, response
52+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
53+ */
54+ getScanResultUsingGET ( request_id , opts , callback ) {
55+ opts = opts || { } ;
56+ let postBody = null ;
57+ // verify the required parameter 'request_id' is set
58+ if ( request_id === undefined || request_id === null ) {
59+ throw new Error ( "Missing the required parameter 'request_id' when calling getScanResultUsingGET" ) ;
60+ }
61+
62+ let pathParams = {
63+
64+ } ;
65+ let queryParams = {
66+ 'request_id' : request_id
67+ } ;
68+ let headerParams = {
69+ 'Authorization' : opts [ 'Authorization' ]
70+ } ;
71+ let formParams = {
72+
73+ } ;
74+
75+ let authNames = [ ] ;
76+ let contentTypes = [ ] ;
77+ let accepts = [ '*/*' ] ;
78+ let returnType = ResponseWrapperGetScanResult ;
79+
80+ return this . apiClient . callApi (
81+ '/api/v1/address/result' , 'GET' ,
82+ pathParams , queryParams , headerParams , formParams , postBody ,
83+ authNames , contentTypes , accepts , returnType , callback
84+ ) ;
85+ }
86+ /**
87+ * Callback function to receive the result of the scanAddressUsingGET operation.
88+ * @callback moduleapi/SecWareOpenControllerApi~scanAddressUsingGETCallback
89+ * @param {String } error Error message, if any.
90+ * @param {module:model/ResponseWrapperOpenScanAddressResp{ data The data returned by the service call.
91+ * @param {String } response The complete HTTP response.
92+ */
93+
94+ /**
95+ * Start address security scan
96+ * @param {String } address address
97+ * @param {String } chain_id chain_id
98+ * @param {Object } opts Optional parameters
99+ * @param {String } opts.Authorization Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...)
100+ * @param {module:api/SecWareOpenControllerApi~scanAddressUsingGETCallback } callback The callback function, accepting three arguments: error, data, response
101+ * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
102+ */
103+ scanAddressUsingGET ( address , chain_id , opts , callback ) {
104+ opts = opts || { } ;
105+ let postBody = null ;
106+ // verify the required parameter 'address' is set
107+ if ( address === undefined || address === null ) {
108+ throw new Error ( "Missing the required parameter 'address' when calling scanAddressUsingGET" ) ;
109+ }
110+ // verify the required parameter 'chain_id' is set
111+ if ( chain_id === undefined || chain_id === null ) {
112+ throw new Error ( "Missing the required parameter 'chain_id' when calling scanAddressUsingGET" ) ;
113+ }
114+
115+ let pathParams = {
116+ 'chain_id' : chain_id
117+ } ;
118+ let queryParams = {
119+ 'address' : address
120+ } ;
121+ let headerParams = {
122+ 'Authorization' : opts [ 'Authorization' ]
123+ } ;
124+ let formParams = {
125+
126+ } ;
127+
128+ let authNames = [ ] ;
129+ let contentTypes = [ ] ;
130+ let accepts = [ '*/*' ] ;
131+ let returnType = ResponseWrapperOpenScanAddressResp ;
132+
133+ return this . apiClient . callApi (
134+ '/api/v1/address/scan/{chain_id}' , 'GET' ,
135+ pathParams , queryParams , headerParams , formParams , postBody ,
136+ authNames , contentTypes , accepts , returnType , callback
137+ ) ;
138+ }
139+
140+ }
0 commit comments