genesys-authentication-client-js
Version:
Interface to OAuth Authentication API
83 lines (67 loc) • 2.29 kB
JavaScript
/**
* Authentication API
* Authentication API
*
* OpenAPI spec version: 9.0.000.68.2560
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.5
*
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient', 'model/ResponseStatus'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'), require('./ResponseStatus'));
} else {
// Browser globals (root is window)
if (!root.AuthenticationApi) {
root.AuthenticationApi = {};
}
root.AuthenticationApi.ErrorResponse = factory(root.AuthenticationApi.ApiClient, root.AuthenticationApi.ResponseStatus);
}
}(this, function(ApiClient, ResponseStatus) {
'use strict';
/**
* The ErrorResponse model module.
* @module model/ErrorResponse
* @version 9.0.000.68.2560
*/
/**
* Constructs a new <code>ErrorResponse</code>.
* @alias module:model/ErrorResponse
* @class
* @param status {module:model/ResponseStatus}
*/
var exports = function(status) {
var _this = this;
_this['status'] = status;
};
/**
* Constructs a <code>ErrorResponse</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/ErrorResponse} obj Optional instance to populate.
* @return {module:model/ErrorResponse} The populated <code>ErrorResponse</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
if (data.hasOwnProperty('status')) {
obj['status'] = ResponseStatus.constructFromObject(data['status']);
}
}
return obj;
}
/**
* @member {module:model/ResponseStatus} status
*/
exports.prototype['status'] = undefined;
return exports;
}));