dist/gen/api/coreV1Api.js
/**
     * connect OPTIONS requests to proxy of Node
     * @param name name of the NodeProxyOptions
     * @param path path to the resource
     * @param path2 Path is the URL path to use for the current proxy request to node.
     */
connect OPTIONS requests to proxy of Node
@param name name of the NodeProxyOptions
@param path path to the resource
@param path2 Path is the URL path to use for the current proxy request to node.
connect OPTIONS requests to proxy of Node @param name name of the NodeProxyOptions @param path path to the resource @param path2 Path is the URL path to use for the current proxy request to node .
connectOptionsNodeProxyWithPath(name, path, path2, options = { headers: {} }) {
        return tslib_1.__awaiter(this, void 0, void 0, function* () {
            const localVarPath = this.basePath + '/api/v1/nodes/{name}/proxy/{path}'
                .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
                .replace('{' + 'path' + '}', encodeURIComponent(String(path)));
            let localVarQueryParameters = {};
            let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
            let localVarFormParams = {};
            if (name === null || name === undefined) {
                throw new Error('Required parameter name was null or undefined when calling connectOptionsNodeProxyWithPath.');
            }
            if (path === null || path === undefined) {
                throw new Error('Required parameter path was null or undefined when calling connectOptionsNodeProxyWithPath.');
            }
            if (path2 !== undefined) {
                localVarQueryParameters['path'] = models_1.ObjectSerializer.serialize(path2, "string");
            }
            Object.assign(localVarHeaderParams, options.headers);
            let localVarUseFormData = false;
            let localVarRequestOptions = {
                method: 'OPTIONS',
                qs: localVarQueryParameters,
                headers: localVarHeaderParams,
                uri: localVarPath,
                useQuerystring: this._useQuerystring,
                json: true,
            };
            this.authentications.BearerToken.applyToRequest(localVarRequestOptions);
            this.authentications.default.applyToRequest(localVarRequestOptions);
            if (Object.keys(localVarFormParams).length) {
                if (localVarUseFormData) {
                    localVarRequestOptions.formData = localVarFormParams;
                }
                else {
                    localVarRequestOptions.form = localVarFormParams;
                }
            }
            return new Promise((resolve, reject) => {
                localVarRequest(localVarRequestOptions, (error, response, body) => {
                    if (error) {
                        reject(error);
                    }
                    else {
                        body = models_1.ObjectSerializer.deserialize(body, "string");
                        if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
                            resolve({ response: response, body: body });
                        }
                        else {
                            reject({ response: response, body: body });
                        }
                    }
                });
            });
        });
    }
connectOptionsNodeProxyWithPath ( name , path , path2 , options = { headers : { } } ) { return tslib_1 . __awaiter ( this , void 0 , void 0 , function * ( ) { const localVarPath = this . basePath + '/api/v1/nodes/{name}/proxy/{path}' . replace ( '{' + 'name' + '}' , encodeURIComponent ( String ( name ) ) ) . replace ( '{' + 'path' + '}' , encodeURIComponent ( String ( path ) ) ) ; let localVarQueryParameters = { } ; let localVarHeaderParams = Object . assign ( { } , this . defaultHeaders ) ; let localVarFormParams = { } ; if ( name === null || name === undefined ) { throw new Error ( 'Required parameter name was null or undefined when calling connectOptionsNodeProxyWithPath.' ) ; } if ( path === null || path === undefined ) { throw new Error ( 'Required parameter path was null or undefined when calling connectOptionsNodeProxyWithPath.' ) ; } if ( path2 !== undefined ) { localVarQueryParameters [ 'path' ] = models_1 . ObjectSerializer . serialize ( path2 , "string" ) ; } Object . assign ( localVarHeaderParams , options . headers ) ; let localVarUseFormData = false ; let localVarRequestOptions = { method : 'OPTIONS' , qs : localVarQueryParameters , headers : localVarHeaderParams , uri : localVarPath , useQuerystring : this . _useQuerystring , json : true , } ; this . authentications . BearerToken . applyToRequest ( localVarRequestOptions ) ; this . authentications . default . applyToRequest ( localVarRequestOptions ) ; if ( Object . keys ( localVarFormParams ) . length ) { if ( localVarUseFormData ) { localVarRequestOptions . formData = localVarFormParams ; } else { localVarRequestOptions . form = localVarFormParams ; } } return new Promise ( ( resolve , reject ) => { localVarRequest ( localVarRequestOptions , ( error , response , body ) => { if ( error ) { reject ( error ) ; } else { body = models_1 . ObjectSerializer . deserialize ( body , "string" ) ; if ( response . statusCode && response . statusCode >= 200 && response . statusCode <= 299 ) { resolve ( { response : response , body : body } ) ; } else { reject ( { response : response , body : body } ) ; } } } ) ; } ) ; } ) ; }
connect OPTIONS requests to proxy of Node
 @param name name of the NodeProxyOptions
 @param path path to the resource
 @param path2 Path is the URL path to use for the current proxy request to node.
connect OPTIONS requests to proxy of Node @param name name of the NodeProxyOptions @param path path to the resource @param path2 Path is the URL path to use for the current proxy request to node .
// verify required parameter 'name' is not null or undefined // verify required parameter 'path' is not null or undefined