UNPKG

genesys-provisioning-client-js

Version:

Provisioning API used to create objects in configuration server in a way that is consistent with the BEC model

92 lines (74 loc) 3.1 kB
/** * Provisioning API * The provisioning service will be used to create objects in configuration server in a way that is consistent with the BEC model. The \"users\" resource will be used to perform CRUD operations on config server person objects. Note that this API will extend the low level configuration server API to add additional functionality that will allow persons to be created in a way that makes them immediately useable in BEC. Operations on this resource may result in other configuration objects being modified as well. * * OpenAPI spec version: 9.0.000.91.4963 * * 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'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) if (!root.ProvisioningApi) { root.ProvisioningApi = {}; } root.ProvisioningApi.ApiErrorResponseStatus = factory(root.ProvisioningApi.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The ApiErrorResponseStatus model module. * @module model/ApiErrorResponseStatus * @version 9.0.000.91.4963 */ /** * Constructs a new <code>ApiErrorResponseStatus</code>. * @alias module:model/ApiErrorResponseStatus * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>ApiErrorResponseStatus</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/ApiErrorResponseStatus} obj Optional instance to populate. * @return {module:model/ApiErrorResponseStatus} The populated <code>ApiErrorResponseStatus</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('code')) { obj['code'] = ApiClient.convertToType(data['code'], 'Number'); } if (data.hasOwnProperty('message')) { obj['message'] = ApiClient.convertToType(data['message'], 'String'); } } return obj; } /** * On error will provide a code that can be used to get more detail about the error. * @member {Number} code */ exports.prototype['code'] = undefined; /** * On error will provide a message with more detail about the error. Keep in mind that the error message will be fairly general and internal details are not exposed. * @member {String} message */ exports.prototype['message'] = undefined; return exports; }));