/** * Onboard Api * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: v1 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ import * as $ from 'jquery'; import * as models from '../model/models'; import { COLLECTION_FORMATS } from '../variables'; import { Configuration } from '../configuration'; /* tslint:disable:no-unused-variable member-ordering */ export class PingApi { protected basePath = 'https://localhost'; public defaultHeaders: Array = []; public defaultExtraJQueryAjaxSettings?: JQueryAjaxSettings = null; public configuration: Configuration = new Configuration(); constructor(basePath?: string, configuration?: Configuration, defaultExtraJQueryAjaxSettings?: JQueryAjaxSettings) { if (basePath) { this.basePath = basePath; } if (configuration) { this.configuration = configuration; } if (defaultExtraJQueryAjaxSettings) { this.defaultExtraJQueryAjaxSettings = defaultExtraJQueryAjaxSettings; } } private extendObj(objA: T2, objB: T2): T1|T2 { for (let key in objB) { if (objB.hasOwnProperty(key)) { objA[key] = objB[key]; } } return objA; } /** * */ public getCertificationPing(extraJQueryAjaxSettings?: JQueryAjaxSettings): JQueryPromise<{ response: JQueryXHR; body?: any; }> { let localVarPath = this.basePath + '/onboard/certification/Ping'; let queryParameters: any = {}; let headerParams: any = {}; localVarPath = localVarPath + "?" + $.param(queryParameters); // to determine the Content-Type header let consumes: string[] = [ ]; // to determine the Accept header let produces: string[] = [ ]; // authentication (Bearer) required // oauth required if (this.configuration.accessToken) { let accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headerParams['Authorization'] = 'Bearer ' + accessToken; } // authentication (Subscription_Key) required if (this.configuration.apiKey) { headerParams['Ocp-Apim-Subscription-Key'] = this.configuration.apiKey; } let requestOptions: JQueryAjaxSettings = { url: localVarPath, type: 'GET', headers: headerParams, processData: false }; if (headerParams['Content-Type']) { requestOptions.contentType = headerParams['Content-Type']; } if (extraJQueryAjaxSettings) { requestOptions = (Object).assign(requestOptions, extraJQueryAjaxSettings); } if (this.defaultExtraJQueryAjaxSettings) { requestOptions = (Object).assign(requestOptions, this.defaultExtraJQueryAjaxSettings); } let dfd = $.Deferred(); $.ajax(requestOptions).then( (data: any, textStatus: string, jqXHR: JQueryXHR) => dfd.resolve(jqXHR, data), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject(xhr, errorThrown) ); return dfd.promise(); } /** * */ public getCertificationPing_1(extraJQueryAjaxSettings?: JQueryAjaxSettings): JQueryPromise<{ response: JQueryXHR; body?: any; }> { let localVarPath = this.basePath + '/onboard/certification/Ping'; let queryParameters: any = {}; let headerParams: any = {}; localVarPath = localVarPath + "?" + $.param(queryParameters); // to determine the Content-Type header let consumes: string[] = [ ]; // to determine the Accept header let produces: string[] = [ ]; // authentication (Bearer) required // oauth required if (this.configuration.accessToken) { let accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headerParams['Authorization'] = 'Bearer ' + accessToken; } // authentication (Subscription_Key) required if (this.configuration.apiKey) { headerParams['Ocp-Apim-Subscription-Key'] = this.configuration.apiKey; } let requestOptions: JQueryAjaxSettings = { url: localVarPath, type: 'GET', headers: headerParams, processData: false }; if (headerParams['Content-Type']) { requestOptions.contentType = headerParams['Content-Type']; } if (extraJQueryAjaxSettings) { requestOptions = (Object).assign(requestOptions, extraJQueryAjaxSettings); } if (this.defaultExtraJQueryAjaxSettings) { requestOptions = (Object).assign(requestOptions, this.defaultExtraJQueryAjaxSettings); } let dfd = $.Deferred(); $.ajax(requestOptions).then( (data: any, textStatus: string, jqXHR: JQueryXHR) => dfd.resolve(jqXHR, data), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject(xhr, errorThrown) ); return dfd.promise(); } /** * */ public getCertificationPing_2(extraJQueryAjaxSettings?: JQueryAjaxSettings): JQueryPromise<{ response: JQueryXHR; body?: any; }> { let localVarPath = this.basePath + '/onboard/certification/Ping'; let queryParameters: any = {}; let headerParams: any = {}; localVarPath = localVarPath + "?" + $.param(queryParameters); // to determine the Content-Type header let consumes: string[] = [ ]; // to determine the Accept header let produces: string[] = [ ]; // authentication (Bearer) required // oauth required if (this.configuration.accessToken) { let accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headerParams['Authorization'] = 'Bearer ' + accessToken; } // authentication (Subscription_Key) required if (this.configuration.apiKey) { headerParams['Ocp-Apim-Subscription-Key'] = this.configuration.apiKey; } let requestOptions: JQueryAjaxSettings = { url: localVarPath, type: 'GET', headers: headerParams, processData: false }; if (headerParams['Content-Type']) { requestOptions.contentType = headerParams['Content-Type']; } if (extraJQueryAjaxSettings) { requestOptions = (Object).assign(requestOptions, extraJQueryAjaxSettings); } if (this.defaultExtraJQueryAjaxSettings) { requestOptions = (Object).assign(requestOptions, this.defaultExtraJQueryAjaxSettings); } let dfd = $.Deferred(); $.ajax(requestOptions).then( (data: any, textStatus: string, jqXHR: JQueryXHR) => dfd.resolve(jqXHR, data), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject(xhr, errorThrown) ); return dfd.promise(); } /** * */ public getPeoplePing(extraJQueryAjaxSettings?: JQueryAjaxSettings): JQueryPromise<{ response: JQueryXHR; body?: any; }> { let localVarPath = this.basePath + '/onboard/people/Ping'; let queryParameters: any = {}; let headerParams: any = {}; localVarPath = localVarPath + "?" + $.param(queryParameters); // to determine the Content-Type header let consumes: string[] = [ ]; // to determine the Accept header let produces: string[] = [ ]; // authentication (Bearer) required // oauth required if (this.configuration.accessToken) { let accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headerParams['Authorization'] = 'Bearer ' + accessToken; } // authentication (Subscription_Key) required if (this.configuration.apiKey) { headerParams['Ocp-Apim-Subscription-Key'] = this.configuration.apiKey; } let requestOptions: JQueryAjaxSettings = { url: localVarPath, type: 'GET', headers: headerParams, processData: false }; if (headerParams['Content-Type']) { requestOptions.contentType = headerParams['Content-Type']; } if (extraJQueryAjaxSettings) { requestOptions = (Object).assign(requestOptions, extraJQueryAjaxSettings); } if (this.defaultExtraJQueryAjaxSettings) { requestOptions = (Object).assign(requestOptions, this.defaultExtraJQueryAjaxSettings); } let dfd = $.Deferred(); $.ajax(requestOptions).then( (data: any, textStatus: string, jqXHR: JQueryXHR) => dfd.resolve(jqXHR, data), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject(xhr, errorThrown) ); return dfd.promise(); } /** * */ public getPeoplePing_3(extraJQueryAjaxSettings?: JQueryAjaxSettings): JQueryPromise<{ response: JQueryXHR; body?: any; }> { let localVarPath = this.basePath + '/onboard/people/Ping'; let queryParameters: any = {}; let headerParams: any = {}; localVarPath = localVarPath + "?" + $.param(queryParameters); // to determine the Content-Type header let consumes: string[] = [ ]; // to determine the Accept header let produces: string[] = [ ]; // authentication (Bearer) required // oauth required if (this.configuration.accessToken) { let accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headerParams['Authorization'] = 'Bearer ' + accessToken; } // authentication (Subscription_Key) required if (this.configuration.apiKey) { headerParams['Ocp-Apim-Subscription-Key'] = this.configuration.apiKey; } let requestOptions: JQueryAjaxSettings = { url: localVarPath, type: 'GET', headers: headerParams, processData: false }; if (headerParams['Content-Type']) { requestOptions.contentType = headerParams['Content-Type']; } if (extraJQueryAjaxSettings) { requestOptions = (Object).assign(requestOptions, extraJQueryAjaxSettings); } if (this.defaultExtraJQueryAjaxSettings) { requestOptions = (Object).assign(requestOptions, this.defaultExtraJQueryAjaxSettings); } let dfd = $.Deferred(); $.ajax(requestOptions).then( (data: any, textStatus: string, jqXHR: JQueryXHR) => dfd.resolve(jqXHR, data), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject(xhr, errorThrown) ); return dfd.promise(); } /** * */ public getPeoplePing_4(extraJQueryAjaxSettings?: JQueryAjaxSettings): JQueryPromise<{ response: JQueryXHR; body?: any; }> { let localVarPath = this.basePath + '/onboard/people/Ping'; let queryParameters: any = {}; let headerParams: any = {}; localVarPath = localVarPath + "?" + $.param(queryParameters); // to determine the Content-Type header let consumes: string[] = [ ]; // to determine the Accept header let produces: string[] = [ ]; // authentication (Bearer) required // oauth required if (this.configuration.accessToken) { let accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headerParams['Authorization'] = 'Bearer ' + accessToken; } // authentication (Subscription_Key) required if (this.configuration.apiKey) { headerParams['Ocp-Apim-Subscription-Key'] = this.configuration.apiKey; } let requestOptions: JQueryAjaxSettings = { url: localVarPath, type: 'GET', headers: headerParams, processData: false }; if (headerParams['Content-Type']) { requestOptions.contentType = headerParams['Content-Type']; } if (extraJQueryAjaxSettings) { requestOptions = (Object).assign(requestOptions, extraJQueryAjaxSettings); } if (this.defaultExtraJQueryAjaxSettings) { requestOptions = (Object).assign(requestOptions, this.defaultExtraJQueryAjaxSettings); } let dfd = $.Deferred(); $.ajax(requestOptions).then( (data: any, textStatus: string, jqXHR: JQueryXHR) => dfd.resolve(jqXHR, data), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject(xhr, errorThrown) ); return dfd.promise(); } }