forked from loafle/openapi-generator-original
update js es6 samples
This commit is contained in:
@@ -7,84 +7,81 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The AdditionalPropertiesClass model module.
|
||||
* @module model/AdditionalPropertiesClass
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class AdditionalPropertiesClass {
|
||||
/**
|
||||
* Constructs a new <code>AdditionalPropertiesClass</code>.
|
||||
* @alias module:model/AdditionalPropertiesClass
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.AdditionalPropertiesClass = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>AdditionalPropertiesClass</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/AdditionalPropertiesClass} obj Optional instance to populate.
|
||||
* @return {module:model/AdditionalPropertiesClass} The populated <code>AdditionalPropertiesClass</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new AdditionalPropertiesClass();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The AdditionalPropertiesClass model module.
|
||||
* @module model/AdditionalPropertiesClass
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>AdditionalPropertiesClass</code>.
|
||||
* @alias module:model/AdditionalPropertiesClass
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>AdditionalPropertiesClass</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/AdditionalPropertiesClass} obj Optional instance to populate.
|
||||
* @return {module:model/AdditionalPropertiesClass} The populated <code>AdditionalPropertiesClass</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('map_property')) {
|
||||
obj['map_property'] = ApiClient.convertToType(data['map_property'], {'String': 'String'});
|
||||
}
|
||||
if (data.hasOwnProperty('map_of_map_property')) {
|
||||
obj['map_of_map_property'] = ApiClient.convertToType(data['map_of_map_property'], {'String': {'String': 'String'}});
|
||||
}
|
||||
if (data.hasOwnProperty('map_property')) {
|
||||
obj['map_property'] = ApiClient.convertToType(data['map_property'], {'String': 'String'});
|
||||
}
|
||||
if (data.hasOwnProperty('map_of_map_property')) {
|
||||
obj['map_of_map_property'] = ApiClient.convertToType(data['map_of_map_property'], {'String': {'String': 'String'}});
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Object.<String, String>} map_property
|
||||
*/
|
||||
exports.prototype['map_property'] = undefined;
|
||||
/**
|
||||
* @member {Object.<String, Object.<String, String>>} map_of_map_property
|
||||
*/
|
||||
exports.prototype['map_of_map_property'] = undefined;
|
||||
/**
|
||||
* @member {Object.<String, String>} map_property
|
||||
*/
|
||||
map_property = undefined;
|
||||
/**
|
||||
* @member {Object.<String, Object.<String, String>>} map_of_map_property
|
||||
*/
|
||||
map_of_map_property = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,86 +7,83 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Animal model module.
|
||||
* @module model/Animal
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class Animal {
|
||||
/**
|
||||
* Constructs a new <code>Animal</code>.
|
||||
* @alias module:model/Animal
|
||||
* @class
|
||||
* @param className {String}
|
||||
*/
|
||||
|
||||
constructor(className) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
this['className'] = className;
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.Animal = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>Animal</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/Animal} obj Optional instance to populate.
|
||||
* @return {module:model/Animal} The populated <code>Animal</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new Animal();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Animal model module.
|
||||
* @module model/Animal
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>Animal</code>.
|
||||
* @alias module:model/Animal
|
||||
* @class
|
||||
* @param className {String}
|
||||
*/
|
||||
var exports = function(className) {
|
||||
var _this = this;
|
||||
|
||||
_this['className'] = className;
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>Animal</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/Animal} obj Optional instance to populate.
|
||||
* @return {module:model/Animal} The populated <code>Animal</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('className')) {
|
||||
obj['className'] = ApiClient.convertToType(data['className'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('color')) {
|
||||
obj['color'] = ApiClient.convertToType(data['color'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('className')) {
|
||||
obj['className'] = ApiClient.convertToType(data['className'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('color')) {
|
||||
obj['color'] = ApiClient.convertToType(data['color'], 'String');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {String} className
|
||||
*/
|
||||
exports.prototype['className'] = undefined;
|
||||
/**
|
||||
* @member {String} color
|
||||
* @default 'red'
|
||||
*/
|
||||
exports.prototype['color'] = 'red';
|
||||
/**
|
||||
* @member {String} className
|
||||
*/
|
||||
className = undefined;
|
||||
/**
|
||||
* @member {String} color
|
||||
* @default 'red'
|
||||
*/
|
||||
color = 'red';
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,73 +7,72 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/Animal'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'), require('./Animal'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
import Animal from './Animal';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The AnimalFarm model module.
|
||||
* @module model/AnimalFarm
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class AnimalFarm {
|
||||
/**
|
||||
* Constructs a new <code>AnimalFarm</code>.
|
||||
* @alias module:model/AnimalFarm
|
||||
* @class
|
||||
* @extends Array
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
this = new Array();
|
||||
Object.setPrototypeOf(this, AnimalFarm);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return this;
|
||||
}
|
||||
root.SwaggerPetstore.AnimalFarm = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Animal);
|
||||
}
|
||||
}(this, function(ApiClient, Animal) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>AnimalFarm</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/AnimalFarm} obj Optional instance to populate.
|
||||
* @return {module:model/AnimalFarm} The populated <code>AnimalFarm</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new AnimalFarm();
|
||||
|
||||
ApiClient.constructFromObject(data, obj, 'Animal');
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The AnimalFarm model module.
|
||||
* @module model/AnimalFarm
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>AnimalFarm</code>.
|
||||
* @alias module:model/AnimalFarm
|
||||
* @class
|
||||
* @extends Array
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
_this = new Array();
|
||||
Object.setPrototypeOf(_this, exports);
|
||||
|
||||
return _this;
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>AnimalFarm</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/AnimalFarm} obj Optional instance to populate.
|
||||
* @return {module:model/AnimalFarm} The populated <code>AnimalFarm</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
ApiClient.constructFromObject(data, obj, 'Animal');
|
||||
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,92 +7,88 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The ApiResponse model module.
|
||||
* @module model/ApiResponse
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class ApiResponse {
|
||||
/**
|
||||
* Constructs a new <code>ApiResponse</code>.
|
||||
* @alias module:model/ApiResponse
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.ApiResponse = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>ApiResponse</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/ApiResponse} obj Optional instance to populate.
|
||||
* @return {module:model/ApiResponse} The populated <code>ApiResponse</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new ApiResponse();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The ApiResponse model module.
|
||||
* @module model/ApiResponse
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>ApiResponse</code>.
|
||||
* @alias module:model/ApiResponse
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>ApiResponse</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/ApiResponse} obj Optional instance to populate.
|
||||
* @return {module:model/ApiResponse} The populated <code>ApiResponse</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('type')) {
|
||||
obj['type'] = ApiClient.convertToType(data['type'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('message')) {
|
||||
obj['message'] = ApiClient.convertToType(data['message'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('code')) {
|
||||
obj['code'] = ApiClient.convertToType(data['code'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('type')) {
|
||||
obj['type'] = ApiClient.convertToType(data['type'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('message')) {
|
||||
obj['message'] = ApiClient.convertToType(data['message'], 'String');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Number} code
|
||||
*/
|
||||
exports.prototype['code'] = undefined;
|
||||
/**
|
||||
* @member {String} type
|
||||
*/
|
||||
exports.prototype['type'] = undefined;
|
||||
/**
|
||||
* @member {String} message
|
||||
*/
|
||||
exports.prototype['message'] = undefined;
|
||||
/**
|
||||
* @member {Number} code
|
||||
*/
|
||||
code = undefined;
|
||||
/**
|
||||
* @member {String} type
|
||||
*/
|
||||
type = undefined;
|
||||
/**
|
||||
* @member {String} message
|
||||
*/
|
||||
message = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,76 +7,74 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The ArrayOfArrayOfNumberOnly model module.
|
||||
* @module model/ArrayOfArrayOfNumberOnly
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class ArrayOfArrayOfNumberOnly {
|
||||
/**
|
||||
* Constructs a new <code>ArrayOfArrayOfNumberOnly</code>.
|
||||
* @alias module:model/ArrayOfArrayOfNumberOnly
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.ArrayOfArrayOfNumberOnly = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>ArrayOfArrayOfNumberOnly</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/ArrayOfArrayOfNumberOnly} obj Optional instance to populate.
|
||||
* @return {module:model/ArrayOfArrayOfNumberOnly} The populated <code>ArrayOfArrayOfNumberOnly</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new ArrayOfArrayOfNumberOnly();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The ArrayOfArrayOfNumberOnly model module.
|
||||
* @module model/ArrayOfArrayOfNumberOnly
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>ArrayOfArrayOfNumberOnly</code>.
|
||||
* @alias module:model/ArrayOfArrayOfNumberOnly
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>ArrayOfArrayOfNumberOnly</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/ArrayOfArrayOfNumberOnly} obj Optional instance to populate.
|
||||
* @return {module:model/ArrayOfArrayOfNumberOnly} The populated <code>ArrayOfArrayOfNumberOnly</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('ArrayArrayNumber')) {
|
||||
obj['ArrayArrayNumber'] = ApiClient.convertToType(data['ArrayArrayNumber'], [['Number']]);
|
||||
}
|
||||
if (data.hasOwnProperty('ArrayArrayNumber')) {
|
||||
obj['ArrayArrayNumber'] = ApiClient.convertToType(data['ArrayArrayNumber'], [['Number']]);
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Array.<Array.<Number>>} ArrayArrayNumber
|
||||
*/
|
||||
exports.prototype['ArrayArrayNumber'] = undefined;
|
||||
/**
|
||||
* @member {Array.<Array.<Number>>} ArrayArrayNumber
|
||||
*/
|
||||
ArrayArrayNumber = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,76 +7,74 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The ArrayOfNumberOnly model module.
|
||||
* @module model/ArrayOfNumberOnly
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class ArrayOfNumberOnly {
|
||||
/**
|
||||
* Constructs a new <code>ArrayOfNumberOnly</code>.
|
||||
* @alias module:model/ArrayOfNumberOnly
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.ArrayOfNumberOnly = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>ArrayOfNumberOnly</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/ArrayOfNumberOnly} obj Optional instance to populate.
|
||||
* @return {module:model/ArrayOfNumberOnly} The populated <code>ArrayOfNumberOnly</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new ArrayOfNumberOnly();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The ArrayOfNumberOnly model module.
|
||||
* @module model/ArrayOfNumberOnly
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>ArrayOfNumberOnly</code>.
|
||||
* @alias module:model/ArrayOfNumberOnly
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>ArrayOfNumberOnly</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/ArrayOfNumberOnly} obj Optional instance to populate.
|
||||
* @return {module:model/ArrayOfNumberOnly} The populated <code>ArrayOfNumberOnly</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('ArrayNumber')) {
|
||||
obj['ArrayNumber'] = ApiClient.convertToType(data['ArrayNumber'], ['Number']);
|
||||
}
|
||||
if (data.hasOwnProperty('ArrayNumber')) {
|
||||
obj['ArrayNumber'] = ApiClient.convertToType(data['ArrayNumber'], ['Number']);
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Array.<Number>} ArrayNumber
|
||||
*/
|
||||
exports.prototype['ArrayNumber'] = undefined;
|
||||
/**
|
||||
* @member {Array.<Number>} ArrayNumber
|
||||
*/
|
||||
ArrayNumber = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,92 +7,89 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/ReadOnlyFirst'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'), require('./ReadOnlyFirst'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
import ReadOnlyFirst from './ReadOnlyFirst';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The ArrayTest model module.
|
||||
* @module model/ArrayTest
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class ArrayTest {
|
||||
/**
|
||||
* Constructs a new <code>ArrayTest</code>.
|
||||
* @alias module:model/ArrayTest
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.ArrayTest = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.ReadOnlyFirst);
|
||||
}
|
||||
}(this, function(ApiClient, ReadOnlyFirst) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>ArrayTest</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/ArrayTest} obj Optional instance to populate.
|
||||
* @return {module:model/ArrayTest} The populated <code>ArrayTest</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new ArrayTest();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The ArrayTest model module.
|
||||
* @module model/ArrayTest
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>ArrayTest</code>.
|
||||
* @alias module:model/ArrayTest
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>ArrayTest</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/ArrayTest} obj Optional instance to populate.
|
||||
* @return {module:model/ArrayTest} The populated <code>ArrayTest</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('array_of_string')) {
|
||||
obj['array_of_string'] = ApiClient.convertToType(data['array_of_string'], ['String']);
|
||||
}
|
||||
if (data.hasOwnProperty('array_array_of_integer')) {
|
||||
obj['array_array_of_integer'] = ApiClient.convertToType(data['array_array_of_integer'], [['Number']]);
|
||||
}
|
||||
if (data.hasOwnProperty('array_array_of_model')) {
|
||||
obj['array_array_of_model'] = ApiClient.convertToType(data['array_array_of_model'], [[ReadOnlyFirst]]);
|
||||
}
|
||||
if (data.hasOwnProperty('array_of_string')) {
|
||||
obj['array_of_string'] = ApiClient.convertToType(data['array_of_string'], ['String']);
|
||||
}
|
||||
if (data.hasOwnProperty('array_array_of_integer')) {
|
||||
obj['array_array_of_integer'] = ApiClient.convertToType(data['array_array_of_integer'], [['Number']]);
|
||||
}
|
||||
if (data.hasOwnProperty('array_array_of_model')) {
|
||||
obj['array_array_of_model'] = ApiClient.convertToType(data['array_array_of_model'], [[ReadOnlyFirst]]);
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Array.<String>} array_of_string
|
||||
*/
|
||||
exports.prototype['array_of_string'] = undefined;
|
||||
/**
|
||||
* @member {Array.<Array.<Number>>} array_array_of_integer
|
||||
*/
|
||||
exports.prototype['array_array_of_integer'] = undefined;
|
||||
/**
|
||||
* @member {Array.<Array.<module:model/ReadOnlyFirst>>} array_array_of_model
|
||||
*/
|
||||
exports.prototype['array_array_of_model'] = undefined;
|
||||
/**
|
||||
* @member {Array.<String>} array_of_string
|
||||
*/
|
||||
array_of_string = undefined;
|
||||
/**
|
||||
* @member {Array.<Array.<Number>>} array_array_of_integer
|
||||
*/
|
||||
array_array_of_integer = undefined;
|
||||
/**
|
||||
* @member {Array.<Array.<module:model/ReadOnlyFirst>>} array_array_of_model
|
||||
*/
|
||||
array_array_of_model = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,117 +7,110 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Capitalization model module.
|
||||
* @module model/Capitalization
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class Capitalization {
|
||||
/**
|
||||
* Constructs a new <code>Capitalization</code>.
|
||||
* @alias module:model/Capitalization
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.Capitalization = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>Capitalization</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/Capitalization} obj Optional instance to populate.
|
||||
* @return {module:model/Capitalization} The populated <code>Capitalization</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new Capitalization();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Capitalization model module.
|
||||
* @module model/Capitalization
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>Capitalization</code>.
|
||||
* @alias module:model/Capitalization
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>Capitalization</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/Capitalization} obj Optional instance to populate.
|
||||
* @return {module:model/Capitalization} The populated <code>Capitalization</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('smallCamel')) {
|
||||
obj['smallCamel'] = ApiClient.convertToType(data['smallCamel'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('CapitalCamel')) {
|
||||
obj['CapitalCamel'] = ApiClient.convertToType(data['CapitalCamel'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('small_Snake')) {
|
||||
obj['small_Snake'] = ApiClient.convertToType(data['small_Snake'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('Capital_Snake')) {
|
||||
obj['Capital_Snake'] = ApiClient.convertToType(data['Capital_Snake'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('SCA_ETH_Flow_Points')) {
|
||||
obj['SCA_ETH_Flow_Points'] = ApiClient.convertToType(data['SCA_ETH_Flow_Points'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('ATT_NAME')) {
|
||||
obj['ATT_NAME'] = ApiClient.convertToType(data['ATT_NAME'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('smallCamel')) {
|
||||
obj['smallCamel'] = ApiClient.convertToType(data['smallCamel'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('CapitalCamel')) {
|
||||
obj['CapitalCamel'] = ApiClient.convertToType(data['CapitalCamel'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('small_Snake')) {
|
||||
obj['small_Snake'] = ApiClient.convertToType(data['small_Snake'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('Capital_Snake')) {
|
||||
obj['Capital_Snake'] = ApiClient.convertToType(data['Capital_Snake'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('SCA_ETH_Flow_Points')) {
|
||||
obj['SCA_ETH_Flow_Points'] = ApiClient.convertToType(data['SCA_ETH_Flow_Points'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('ATT_NAME')) {
|
||||
obj['ATT_NAME'] = ApiClient.convertToType(data['ATT_NAME'], 'String');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {String} smallCamel
|
||||
*/
|
||||
exports.prototype['smallCamel'] = undefined;
|
||||
/**
|
||||
* @member {String} CapitalCamel
|
||||
*/
|
||||
exports.prototype['CapitalCamel'] = undefined;
|
||||
/**
|
||||
* @member {String} small_Snake
|
||||
*/
|
||||
exports.prototype['small_Snake'] = undefined;
|
||||
/**
|
||||
* @member {String} Capital_Snake
|
||||
*/
|
||||
exports.prototype['Capital_Snake'] = undefined;
|
||||
/**
|
||||
* @member {String} SCA_ETH_Flow_Points
|
||||
*/
|
||||
exports.prototype['SCA_ETH_Flow_Points'] = undefined;
|
||||
/**
|
||||
* Name of the pet
|
||||
* @member {String} ATT_NAME
|
||||
*/
|
||||
exports.prototype['ATT_NAME'] = undefined;
|
||||
/**
|
||||
* @member {String} smallCamel
|
||||
*/
|
||||
smallCamel = undefined;
|
||||
/**
|
||||
* @member {String} CapitalCamel
|
||||
*/
|
||||
CapitalCamel = undefined;
|
||||
/**
|
||||
* @member {String} small_Snake
|
||||
*/
|
||||
small_Snake = undefined;
|
||||
/**
|
||||
* @member {String} Capital_Snake
|
||||
*/
|
||||
Capital_Snake = undefined;
|
||||
/**
|
||||
* @member {String} SCA_ETH_Flow_Points
|
||||
*/
|
||||
SCA_ETH_Flow_Points = undefined;
|
||||
/**
|
||||
* Name of the pet
|
||||
* @member {String} ATT_NAME
|
||||
*/
|
||||
ATT_NAME = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,81 +7,78 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/Animal'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'), require('./Animal'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
import Animal from './Animal';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Cat model module.
|
||||
* @module model/Cat
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class Cat {
|
||||
/**
|
||||
* Constructs a new <code>Cat</code>.
|
||||
* @alias module:model/Cat
|
||||
* @class
|
||||
* @extends module:model/Animal
|
||||
* @param className {String}
|
||||
*/
|
||||
|
||||
constructor(className) {
|
||||
|
||||
|
||||
Animal.call(this, className);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.Cat = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Animal);
|
||||
}
|
||||
}(this, function(ApiClient, Animal) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>Cat</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/Cat} obj Optional instance to populate.
|
||||
* @return {module:model/Cat} The populated <code>Cat</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new Cat();
|
||||
|
||||
|
||||
|
||||
Animal.constructFromObject(data, obj);
|
||||
|
||||
|
||||
/**
|
||||
* The Cat model module.
|
||||
* @module model/Cat
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>Cat</code>.
|
||||
* @alias module:model/Cat
|
||||
* @class
|
||||
* @extends module:model/Animal
|
||||
* @param className {String}
|
||||
*/
|
||||
var exports = function(className) {
|
||||
var _this = this;
|
||||
Animal.call(_this, className);
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>Cat</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/Cat} obj Optional instance to populate.
|
||||
* @return {module:model/Cat} The populated <code>Cat</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
Animal.constructFromObject(data, obj);
|
||||
if (data.hasOwnProperty('declawed')) {
|
||||
obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean');
|
||||
}
|
||||
if (data.hasOwnProperty('declawed')) {
|
||||
obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
exports.prototype = Object.create(Animal.prototype);
|
||||
exports.prototype.constructor = exports;
|
||||
|
||||
/**
|
||||
* @member {Boolean} declawed
|
||||
*/
|
||||
exports.prototype['declawed'] = undefined;
|
||||
/**
|
||||
* @member {Boolean} declawed
|
||||
*/
|
||||
declawed = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,84 +7,81 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Category model module.
|
||||
* @module model/Category
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class Category {
|
||||
/**
|
||||
* Constructs a new <code>Category</code>.
|
||||
* @alias module:model/Category
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.Category = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>Category</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/Category} obj Optional instance to populate.
|
||||
* @return {module:model/Category} The populated <code>Category</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new Category();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Category model module.
|
||||
* @module model/Category
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>Category</code>.
|
||||
* @alias module:model/Category
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>Category</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/Category} obj Optional instance to populate.
|
||||
* @return {module:model/Category} The populated <code>Category</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('id')) {
|
||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('name')) {
|
||||
obj['name'] = ApiClient.convertToType(data['name'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('id')) {
|
||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('name')) {
|
||||
obj['name'] = ApiClient.convertToType(data['name'], 'String');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Number} id
|
||||
*/
|
||||
exports.prototype['id'] = undefined;
|
||||
/**
|
||||
* @member {String} name
|
||||
*/
|
||||
exports.prototype['name'] = undefined;
|
||||
/**
|
||||
* @member {Number} id
|
||||
*/
|
||||
id = undefined;
|
||||
/**
|
||||
* @member {String} name
|
||||
*/
|
||||
name = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,77 +7,75 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The ClassModel model module.
|
||||
* @module model/ClassModel
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class ClassModel {
|
||||
/**
|
||||
* Constructs a new <code>ClassModel</code>.
|
||||
* Model for testing model with \"_class\" property
|
||||
* @alias module:model/ClassModel
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.ClassModel = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>ClassModel</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/ClassModel} obj Optional instance to populate.
|
||||
* @return {module:model/ClassModel} The populated <code>ClassModel</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new ClassModel();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The ClassModel model module.
|
||||
* @module model/ClassModel
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>ClassModel</code>.
|
||||
* Model for testing model with \"_class\" property
|
||||
* @alias module:model/ClassModel
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>ClassModel</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/ClassModel} obj Optional instance to populate.
|
||||
* @return {module:model/ClassModel} The populated <code>ClassModel</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('_class')) {
|
||||
obj['_class'] = ApiClient.convertToType(data['_class'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('_class')) {
|
||||
obj['_class'] = ApiClient.convertToType(data['_class'], 'String');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {String} _class
|
||||
*/
|
||||
exports.prototype['_class'] = undefined;
|
||||
/**
|
||||
* @member {String} _class
|
||||
*/
|
||||
_class = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,76 +7,74 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Client model module.
|
||||
* @module model/Client
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class Client {
|
||||
/**
|
||||
* Constructs a new <code>Client</code>.
|
||||
* @alias module:model/Client
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.Client = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>Client</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/Client} obj Optional instance to populate.
|
||||
* @return {module:model/Client} The populated <code>Client</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new Client();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Client model module.
|
||||
* @module model/Client
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>Client</code>.
|
||||
* @alias module:model/Client
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>Client</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/Client} obj Optional instance to populate.
|
||||
* @return {module:model/Client} The populated <code>Client</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('client')) {
|
||||
obj['client'] = ApiClient.convertToType(data['client'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('client')) {
|
||||
obj['client'] = ApiClient.convertToType(data['client'], 'String');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {String} client
|
||||
*/
|
||||
exports.prototype['client'] = undefined;
|
||||
/**
|
||||
* @member {String} client
|
||||
*/
|
||||
client = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,81 +7,78 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/Animal'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'), require('./Animal'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
import Animal from './Animal';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Dog model module.
|
||||
* @module model/Dog
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class Dog {
|
||||
/**
|
||||
* Constructs a new <code>Dog</code>.
|
||||
* @alias module:model/Dog
|
||||
* @class
|
||||
* @extends module:model/Animal
|
||||
* @param className {String}
|
||||
*/
|
||||
|
||||
constructor(className) {
|
||||
|
||||
|
||||
Animal.call(this, className);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.Dog = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Animal);
|
||||
}
|
||||
}(this, function(ApiClient, Animal) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>Dog</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/Dog} obj Optional instance to populate.
|
||||
* @return {module:model/Dog} The populated <code>Dog</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new Dog();
|
||||
|
||||
|
||||
|
||||
Animal.constructFromObject(data, obj);
|
||||
|
||||
|
||||
/**
|
||||
* The Dog model module.
|
||||
* @module model/Dog
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>Dog</code>.
|
||||
* @alias module:model/Dog
|
||||
* @class
|
||||
* @extends module:model/Animal
|
||||
* @param className {String}
|
||||
*/
|
||||
var exports = function(className) {
|
||||
var _this = this;
|
||||
Animal.call(_this, className);
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>Dog</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/Dog} obj Optional instance to populate.
|
||||
* @return {module:model/Dog} The populated <code>Dog</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
Animal.constructFromObject(data, obj);
|
||||
if (data.hasOwnProperty('breed')) {
|
||||
obj['breed'] = ApiClient.convertToType(data['breed'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('breed')) {
|
||||
obj['breed'] = ApiClient.convertToType(data['breed'], 'String');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
exports.prototype = Object.create(Animal.prototype);
|
||||
exports.prototype.constructor = exports;
|
||||
|
||||
/**
|
||||
* @member {String} breed
|
||||
*/
|
||||
exports.prototype['breed'] = undefined;
|
||||
/**
|
||||
* @member {String} breed
|
||||
*/
|
||||
breed = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,118 +7,121 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The EnumArrays model module.
|
||||
* @module model/EnumArrays
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class EnumArrays {
|
||||
/**
|
||||
* Constructs a new <code>EnumArrays</code>.
|
||||
* @alias module:model/EnumArrays
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.EnumArrays = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>EnumArrays</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/EnumArrays} obj Optional instance to populate.
|
||||
* @return {module:model/EnumArrays} The populated <code>EnumArrays</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new EnumArrays();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The EnumArrays model module.
|
||||
* @module model/EnumArrays
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>EnumArrays</code>.
|
||||
* @alias module:model/EnumArrays
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>EnumArrays</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/EnumArrays} obj Optional instance to populate.
|
||||
* @return {module:model/EnumArrays} The populated <code>EnumArrays</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('just_symbol')) {
|
||||
obj['just_symbol'] = ApiClient.convertToType(data['just_symbol'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('array_enum')) {
|
||||
obj['array_enum'] = ApiClient.convertToType(data['array_enum'], ['String']);
|
||||
}
|
||||
if (data.hasOwnProperty('just_symbol')) {
|
||||
obj['just_symbol'] = ApiClient.convertToType(data['just_symbol'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('array_enum')) {
|
||||
obj['array_enum'] = ApiClient.convertToType(data['array_enum'], ['String']);
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {module:model/EnumArrays.JustSymbolEnum} just_symbol
|
||||
*/
|
||||
exports.prototype['just_symbol'] = undefined;
|
||||
/**
|
||||
* @member {Array.<module:model/EnumArrays.ArrayEnumEnum>} array_enum
|
||||
*/
|
||||
exports.prototype['array_enum'] = undefined;
|
||||
|
||||
|
||||
/**
|
||||
* Allowed values for the <code>just_symbol</code> property.
|
||||
* @enum {String}
|
||||
* @readonly
|
||||
*/
|
||||
exports.JustSymbolEnum = {
|
||||
/**
|
||||
* value: ">="
|
||||
* @const
|
||||
*/
|
||||
"GREATER_THAN_OR_EQUAL_TO": ">=",
|
||||
* @member {module:model/EnumArrays.JustSymbolEnum} just_symbol
|
||||
*/
|
||||
just_symbol = undefined;
|
||||
/**
|
||||
* value: "$"
|
||||
* @const
|
||||
*/
|
||||
"DOLLAR": "$" };
|
||||
* @member {Array.<module:model/EnumArrays.ArrayEnumEnum>} array_enum
|
||||
*/
|
||||
array_enum = undefined;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Allowed values for the <code>arrayEnum</code> property.
|
||||
* @enum {String}
|
||||
* @readonly
|
||||
*/
|
||||
exports.ArrayEnumEnum = {
|
||||
/**
|
||||
* value: "fish"
|
||||
* @const
|
||||
*/
|
||||
"fish": "fish",
|
||||
* Allowed values for the <code>just_symbol</code> property.
|
||||
* @enum {String}
|
||||
* @readonly
|
||||
*/
|
||||
static JustSymbolEnum = {
|
||||
|
||||
/**
|
||||
* value: ">="
|
||||
* @const
|
||||
*/
|
||||
"GREATER_THAN_OR_EQUAL_TO": ">=",
|
||||
|
||||
/**
|
||||
* value: "$"
|
||||
* @const
|
||||
*/
|
||||
"DOLLAR": "$"
|
||||
};
|
||||
|
||||
/**
|
||||
* value: "crab"
|
||||
* @const
|
||||
*/
|
||||
"crab": "crab" };
|
||||
* Allowed values for the <code>arrayEnum</code> property.
|
||||
* @enum {String}
|
||||
* @readonly
|
||||
*/
|
||||
static ArrayEnumEnum = {
|
||||
|
||||
/**
|
||||
* value: "fish"
|
||||
* @const
|
||||
*/
|
||||
"fish": "fish",
|
||||
|
||||
/**
|
||||
* value: "crab"
|
||||
* @const
|
||||
*/
|
||||
"crab": "crab"
|
||||
};
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,63 +7,51 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
/**
|
||||
* Enum class EnumClass.
|
||||
* @enum {}
|
||||
* @readonly
|
||||
*/
|
||||
export default class EnumClass {
|
||||
|
||||
/**
|
||||
* value: "_abc"
|
||||
* @const
|
||||
*/
|
||||
_abc = "_abc";
|
||||
|
||||
|
||||
/**
|
||||
* value: "-efg"
|
||||
* @const
|
||||
*/
|
||||
-efg = "-efg";
|
||||
|
||||
|
||||
/**
|
||||
* value: "(xyz)"
|
||||
* @const
|
||||
*/
|
||||
(xyz) = "(xyz)";
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Returns a <code>EnumClass</code> enum value from a Javascript object name.
|
||||
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
||||
* @return {module:model/EnumClass} The enum <code>EnumClass</code> value.
|
||||
*/
|
||||
static constructFromObject(object) {
|
||||
return object;
|
||||
}
|
||||
root.SwaggerPetstore.EnumClass = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
|
||||
/**
|
||||
* Enum class EnumClass.
|
||||
* @enum {}
|
||||
* @readonly
|
||||
*/
|
||||
var exports = {
|
||||
/**
|
||||
* value: "_abc"
|
||||
* @const
|
||||
*/
|
||||
"_abc": "_abc",
|
||||
/**
|
||||
* value: "-efg"
|
||||
* @const
|
||||
*/
|
||||
"-efg": "-efg",
|
||||
/**
|
||||
* value: "(xyz)"
|
||||
* @const
|
||||
*/
|
||||
"(xyz)": "(xyz)" };
|
||||
|
||||
/**
|
||||
* Returns a <code>EnumClass</code> enum value from a Javascript object name.
|
||||
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
||||
* @return {module:model/EnumClass} The enum <code>EnumClass</code> value.
|
||||
*/
|
||||
exports.constructFromObject = function(object) {
|
||||
return object;
|
||||
}
|
||||
|
||||
return exports;
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,156 +7,162 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/OuterEnum'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'), require('./OuterEnum'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
import OuterEnum from './OuterEnum';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The EnumTest model module.
|
||||
* @module model/EnumTest
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class EnumTest {
|
||||
/**
|
||||
* Constructs a new <code>EnumTest</code>.
|
||||
* @alias module:model/EnumTest
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.EnumTest = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.OuterEnum);
|
||||
}
|
||||
}(this, function(ApiClient, OuterEnum) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>EnumTest</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/EnumTest} obj Optional instance to populate.
|
||||
* @return {module:model/EnumTest} The populated <code>EnumTest</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new EnumTest();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The EnumTest model module.
|
||||
* @module model/EnumTest
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>EnumTest</code>.
|
||||
* @alias module:model/EnumTest
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>EnumTest</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/EnumTest} obj Optional instance to populate.
|
||||
* @return {module:model/EnumTest} The populated <code>EnumTest</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('enum_string')) {
|
||||
obj['enum_string'] = ApiClient.convertToType(data['enum_string'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('enum_integer')) {
|
||||
obj['enum_integer'] = ApiClient.convertToType(data['enum_integer'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('enum_number')) {
|
||||
obj['enum_number'] = ApiClient.convertToType(data['enum_number'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('outerEnum')) {
|
||||
obj['outerEnum'] = OuterEnum.constructFromObject(data['outerEnum']);
|
||||
}
|
||||
if (data.hasOwnProperty('enum_string')) {
|
||||
obj['enum_string'] = ApiClient.convertToType(data['enum_string'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('enum_integer')) {
|
||||
obj['enum_integer'] = ApiClient.convertToType(data['enum_integer'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('enum_number')) {
|
||||
obj['enum_number'] = ApiClient.convertToType(data['enum_number'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('outerEnum')) {
|
||||
obj['outerEnum'] = OuterEnum.constructFromObject(data['outerEnum']);
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {module:model/EnumTest.EnumStringEnum} enum_string
|
||||
*/
|
||||
exports.prototype['enum_string'] = undefined;
|
||||
/**
|
||||
* @member {module:model/EnumTest.EnumIntegerEnum} enum_integer
|
||||
*/
|
||||
exports.prototype['enum_integer'] = undefined;
|
||||
/**
|
||||
* @member {module:model/EnumTest.EnumNumberEnum} enum_number
|
||||
*/
|
||||
exports.prototype['enum_number'] = undefined;
|
||||
/**
|
||||
* @member {module:model/OuterEnum} outerEnum
|
||||
*/
|
||||
exports.prototype['outerEnum'] = undefined;
|
||||
|
||||
|
||||
/**
|
||||
* Allowed values for the <code>enum_string</code> property.
|
||||
* @enum {String}
|
||||
* @readonly
|
||||
*/
|
||||
exports.EnumStringEnum = {
|
||||
/**
|
||||
* value: "UPPER"
|
||||
* @const
|
||||
*/
|
||||
"UPPER": "UPPER",
|
||||
* @member {module:model/EnumTest.EnumStringEnum} enum_string
|
||||
*/
|
||||
enum_string = undefined;
|
||||
/**
|
||||
* value: "lower"
|
||||
* @const
|
||||
*/
|
||||
"lower": "lower",
|
||||
* @member {module:model/EnumTest.EnumIntegerEnum} enum_integer
|
||||
*/
|
||||
enum_integer = undefined;
|
||||
/**
|
||||
* value: ""
|
||||
* @const
|
||||
*/
|
||||
"empty": "" };
|
||||
|
||||
/**
|
||||
* Allowed values for the <code>enum_integer</code> property.
|
||||
* @enum {Number}
|
||||
* @readonly
|
||||
*/
|
||||
exports.EnumIntegerEnum = {
|
||||
* @member {module:model/EnumTest.EnumNumberEnum} enum_number
|
||||
*/
|
||||
enum_number = undefined;
|
||||
/**
|
||||
* value: 1
|
||||
* @const
|
||||
*/
|
||||
"1": 1,
|
||||
/**
|
||||
* value: -1
|
||||
* @const
|
||||
*/
|
||||
"-1": -1 };
|
||||
|
||||
/**
|
||||
* Allowed values for the <code>enum_number</code> property.
|
||||
* @enum {Number}
|
||||
* @readonly
|
||||
*/
|
||||
exports.EnumNumberEnum = {
|
||||
/**
|
||||
* value: 1.1
|
||||
* @const
|
||||
*/
|
||||
"1.1": 1.1,
|
||||
/**
|
||||
* value: -1.2
|
||||
* @const
|
||||
*/
|
||||
"-1.2": -1.2 };
|
||||
* @member {module:model/OuterEnum} outerEnum
|
||||
*/
|
||||
outerEnum = undefined;
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Allowed values for the <code>enum_string</code> property.
|
||||
* @enum {String}
|
||||
* @readonly
|
||||
*/
|
||||
static EnumStringEnum = {
|
||||
|
||||
/**
|
||||
* value: "UPPER"
|
||||
* @const
|
||||
*/
|
||||
"UPPER": "UPPER",
|
||||
|
||||
/**
|
||||
* value: "lower"
|
||||
* @const
|
||||
*/
|
||||
"lower": "lower",
|
||||
|
||||
/**
|
||||
* value: ""
|
||||
* @const
|
||||
*/
|
||||
"empty": ""
|
||||
};
|
||||
|
||||
/**
|
||||
* Allowed values for the <code>enum_integer</code> property.
|
||||
* @enum {Number}
|
||||
* @readonly
|
||||
*/
|
||||
static EnumIntegerEnum = {
|
||||
|
||||
/**
|
||||
* value: 1
|
||||
* @const
|
||||
*/
|
||||
"1": 1,
|
||||
|
||||
/**
|
||||
* value: -1
|
||||
* @const
|
||||
*/
|
||||
"-1": -1
|
||||
};
|
||||
|
||||
/**
|
||||
* Allowed values for the <code>enum_number</code> property.
|
||||
* @enum {Number}
|
||||
* @readonly
|
||||
*/
|
||||
static EnumNumberEnum = {
|
||||
|
||||
/**
|
||||
* value: 1.1
|
||||
* @const
|
||||
*/
|
||||
"1.1": 1.1,
|
||||
|
||||
/**
|
||||
* value: -1.2
|
||||
* @const
|
||||
*/
|
||||
"-1.2": -1.2
|
||||
};
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,176 +7,162 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The FormatTest model module.
|
||||
* @module model/FormatTest
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class FormatTest {
|
||||
/**
|
||||
* Constructs a new <code>FormatTest</code>.
|
||||
* @alias module:model/FormatTest
|
||||
* @class
|
||||
* @param _number {Number}
|
||||
* @param _byte {Blob}
|
||||
* @param _date {Date}
|
||||
* @param password {String}
|
||||
*/
|
||||
|
||||
constructor(_number, _byte, _date, password) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
this['number'] = _number;this['byte'] = _byte;this['date'] = _date;this['password'] = password;
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.FormatTest = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>FormatTest</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/FormatTest} obj Optional instance to populate.
|
||||
* @return {module:model/FormatTest} The populated <code>FormatTest</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new FormatTest();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The FormatTest model module.
|
||||
* @module model/FormatTest
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>FormatTest</code>.
|
||||
* @alias module:model/FormatTest
|
||||
* @class
|
||||
* @param _number {Number}
|
||||
* @param _byte {Blob}
|
||||
* @param _date {Date}
|
||||
* @param password {String}
|
||||
*/
|
||||
var exports = function(_number, _byte, _date, password) {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
_this['number'] = _number;
|
||||
|
||||
|
||||
|
||||
_this['byte'] = _byte;
|
||||
|
||||
_this['date'] = _date;
|
||||
|
||||
|
||||
_this['password'] = password;
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>FormatTest</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/FormatTest} obj Optional instance to populate.
|
||||
* @return {module:model/FormatTest} The populated <code>FormatTest</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('integer')) {
|
||||
obj['integer'] = ApiClient.convertToType(data['integer'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('int32')) {
|
||||
obj['int32'] = ApiClient.convertToType(data['int32'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('int64')) {
|
||||
obj['int64'] = ApiClient.convertToType(data['int64'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('number')) {
|
||||
obj['number'] = ApiClient.convertToType(data['number'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('float')) {
|
||||
obj['float'] = ApiClient.convertToType(data['float'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('double')) {
|
||||
obj['double'] = ApiClient.convertToType(data['double'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('string')) {
|
||||
obj['string'] = ApiClient.convertToType(data['string'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('byte')) {
|
||||
obj['byte'] = ApiClient.convertToType(data['byte'], 'Blob');
|
||||
}
|
||||
if (data.hasOwnProperty('binary')) {
|
||||
obj['binary'] = ApiClient.convertToType(data['binary'], 'Blob');
|
||||
}
|
||||
if (data.hasOwnProperty('date')) {
|
||||
obj['date'] = ApiClient.convertToType(data['date'], 'Date');
|
||||
}
|
||||
if (data.hasOwnProperty('dateTime')) {
|
||||
obj['dateTime'] = ApiClient.convertToType(data['dateTime'], 'Date');
|
||||
}
|
||||
if (data.hasOwnProperty('uuid')) {
|
||||
obj['uuid'] = ApiClient.convertToType(data['uuid'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('password')) {
|
||||
obj['password'] = ApiClient.convertToType(data['password'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('integer')) {
|
||||
obj['integer'] = ApiClient.convertToType(data['integer'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('int32')) {
|
||||
obj['int32'] = ApiClient.convertToType(data['int32'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('int64')) {
|
||||
obj['int64'] = ApiClient.convertToType(data['int64'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('number')) {
|
||||
obj['number'] = ApiClient.convertToType(data['number'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('float')) {
|
||||
obj['float'] = ApiClient.convertToType(data['float'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('double')) {
|
||||
obj['double'] = ApiClient.convertToType(data['double'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('string')) {
|
||||
obj['string'] = ApiClient.convertToType(data['string'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('byte')) {
|
||||
obj['byte'] = ApiClient.convertToType(data['byte'], 'Blob');
|
||||
}
|
||||
if (data.hasOwnProperty('binary')) {
|
||||
obj['binary'] = ApiClient.convertToType(data['binary'], 'Blob');
|
||||
}
|
||||
if (data.hasOwnProperty('date')) {
|
||||
obj['date'] = ApiClient.convertToType(data['date'], 'Date');
|
||||
}
|
||||
if (data.hasOwnProperty('dateTime')) {
|
||||
obj['dateTime'] = ApiClient.convertToType(data['dateTime'], 'Date');
|
||||
}
|
||||
if (data.hasOwnProperty('uuid')) {
|
||||
obj['uuid'] = ApiClient.convertToType(data['uuid'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('password')) {
|
||||
obj['password'] = ApiClient.convertToType(data['password'], 'String');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Number} integer
|
||||
*/
|
||||
exports.prototype['integer'] = undefined;
|
||||
/**
|
||||
* @member {Number} int32
|
||||
*/
|
||||
exports.prototype['int32'] = undefined;
|
||||
/**
|
||||
* @member {Number} int64
|
||||
*/
|
||||
exports.prototype['int64'] = undefined;
|
||||
/**
|
||||
* @member {Number} number
|
||||
*/
|
||||
exports.prototype['number'] = undefined;
|
||||
/**
|
||||
* @member {Number} float
|
||||
*/
|
||||
exports.prototype['float'] = undefined;
|
||||
/**
|
||||
* @member {Number} double
|
||||
*/
|
||||
exports.prototype['double'] = undefined;
|
||||
/**
|
||||
* @member {String} string
|
||||
*/
|
||||
exports.prototype['string'] = undefined;
|
||||
/**
|
||||
* @member {Blob} byte
|
||||
*/
|
||||
exports.prototype['byte'] = undefined;
|
||||
/**
|
||||
* @member {Blob} binary
|
||||
*/
|
||||
exports.prototype['binary'] = undefined;
|
||||
/**
|
||||
* @member {Date} date
|
||||
*/
|
||||
exports.prototype['date'] = undefined;
|
||||
/**
|
||||
* @member {Date} dateTime
|
||||
*/
|
||||
exports.prototype['dateTime'] = undefined;
|
||||
/**
|
||||
* @member {String} uuid
|
||||
*/
|
||||
exports.prototype['uuid'] = undefined;
|
||||
/**
|
||||
* @member {String} password
|
||||
*/
|
||||
exports.prototype['password'] = undefined;
|
||||
/**
|
||||
* @member {Number} integer
|
||||
*/
|
||||
integer = undefined;
|
||||
/**
|
||||
* @member {Number} int32
|
||||
*/
|
||||
int32 = undefined;
|
||||
/**
|
||||
* @member {Number} int64
|
||||
*/
|
||||
int64 = undefined;
|
||||
/**
|
||||
* @member {Number} number
|
||||
*/
|
||||
number = undefined;
|
||||
/**
|
||||
* @member {Number} float
|
||||
*/
|
||||
float = undefined;
|
||||
/**
|
||||
* @member {Number} double
|
||||
*/
|
||||
double = undefined;
|
||||
/**
|
||||
* @member {String} string
|
||||
*/
|
||||
string = undefined;
|
||||
/**
|
||||
* @member {Blob} byte
|
||||
*/
|
||||
byte = undefined;
|
||||
/**
|
||||
* @member {Blob} binary
|
||||
*/
|
||||
binary = undefined;
|
||||
/**
|
||||
* @member {Date} date
|
||||
*/
|
||||
date = undefined;
|
||||
/**
|
||||
* @member {Date} dateTime
|
||||
*/
|
||||
dateTime = undefined;
|
||||
/**
|
||||
* @member {String} uuid
|
||||
*/
|
||||
uuid = undefined;
|
||||
/**
|
||||
* @member {String} password
|
||||
*/
|
||||
password = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,84 +7,81 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The HasOnlyReadOnly model module.
|
||||
* @module model/HasOnlyReadOnly
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class HasOnlyReadOnly {
|
||||
/**
|
||||
* Constructs a new <code>HasOnlyReadOnly</code>.
|
||||
* @alias module:model/HasOnlyReadOnly
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.HasOnlyReadOnly = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>HasOnlyReadOnly</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/HasOnlyReadOnly} obj Optional instance to populate.
|
||||
* @return {module:model/HasOnlyReadOnly} The populated <code>HasOnlyReadOnly</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new HasOnlyReadOnly();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The HasOnlyReadOnly model module.
|
||||
* @module model/HasOnlyReadOnly
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>HasOnlyReadOnly</code>.
|
||||
* @alias module:model/HasOnlyReadOnly
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>HasOnlyReadOnly</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/HasOnlyReadOnly} obj Optional instance to populate.
|
||||
* @return {module:model/HasOnlyReadOnly} The populated <code>HasOnlyReadOnly</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('bar')) {
|
||||
obj['bar'] = ApiClient.convertToType(data['bar'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('foo')) {
|
||||
obj['foo'] = ApiClient.convertToType(data['foo'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('bar')) {
|
||||
obj['bar'] = ApiClient.convertToType(data['bar'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('foo')) {
|
||||
obj['foo'] = ApiClient.convertToType(data['foo'], 'String');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {String} bar
|
||||
*/
|
||||
exports.prototype['bar'] = undefined;
|
||||
/**
|
||||
* @member {String} foo
|
||||
*/
|
||||
exports.prototype['foo'] = undefined;
|
||||
/**
|
||||
* @member {String} bar
|
||||
*/
|
||||
bar = undefined;
|
||||
/**
|
||||
* @member {String} foo
|
||||
*/
|
||||
foo = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,76 +7,74 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The List model module.
|
||||
* @module model/List
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class List {
|
||||
/**
|
||||
* Constructs a new <code>List</code>.
|
||||
* @alias module:model/List
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.List = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>List</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/List} obj Optional instance to populate.
|
||||
* @return {module:model/List} The populated <code>List</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new List();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The List model module.
|
||||
* @module model/List
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>List</code>.
|
||||
* @alias module:model/List
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>List</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/List} obj Optional instance to populate.
|
||||
* @return {module:model/List} The populated <code>List</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('123-list')) {
|
||||
obj['123-list'] = ApiClient.convertToType(data['123-list'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('123-list')) {
|
||||
obj['123-list'] = ApiClient.convertToType(data['123-list'], 'String');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {String} 123-list
|
||||
*/
|
||||
exports.prototype['123-list'] = undefined;
|
||||
/**
|
||||
* @member {String} 123-list
|
||||
*/
|
||||
123-list = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,101 +7,101 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
}
|
||||
root.SwaggerPetstore.MapTest = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The MapTest model module.
|
||||
* @module model/MapTest
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>MapTest</code>.
|
||||
* @alias module:model/MapTest
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>MapTest</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/MapTest} obj Optional instance to populate.
|
||||
* @return {module:model/MapTest} The populated <code>MapTest</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('map_map_of_string')) {
|
||||
obj['map_map_of_string'] = ApiClient.convertToType(data['map_map_of_string'], {'String': {'String': 'String'}});
|
||||
}
|
||||
if (data.hasOwnProperty('map_of_enum_string')) {
|
||||
obj['map_of_enum_string'] = ApiClient.convertToType(data['map_of_enum_string'], {'String': 'String'});
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Object.<String, Object.<String, String>>} map_map_of_string
|
||||
*/
|
||||
exports.prototype['map_map_of_string'] = undefined;
|
||||
/**
|
||||
* @member {Object.<String, module:model/MapTest.InnerEnum>} map_of_enum_string
|
||||
*/
|
||||
exports.prototype['map_of_enum_string'] = undefined;
|
||||
|
||||
|
||||
/**
|
||||
* Allowed values for the <code>inner</code> property.
|
||||
* @enum {String}
|
||||
* @readonly
|
||||
*/
|
||||
exports.InnerEnum = {
|
||||
/**
|
||||
* The MapTest model module.
|
||||
* @module model/MapTest
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class MapTest {
|
||||
/**
|
||||
* value: "UPPER"
|
||||
* @const
|
||||
*/
|
||||
"UPPER": "UPPER",
|
||||
* Constructs a new <code>MapTest</code>.
|
||||
* @alias module:model/MapTest
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* value: "lower"
|
||||
* @const
|
||||
*/
|
||||
"lower": "lower" };
|
||||
* Constructs a <code>MapTest</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/MapTest} obj Optional instance to populate.
|
||||
* @return {module:model/MapTest} The populated <code>MapTest</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new MapTest();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (data.hasOwnProperty('map_map_of_string')) {
|
||||
obj['map_map_of_string'] = ApiClient.convertToType(data['map_map_of_string'], {'String': {'String': 'String'}});
|
||||
}
|
||||
if (data.hasOwnProperty('map_of_enum_string')) {
|
||||
obj['map_of_enum_string'] = ApiClient.convertToType(data['map_of_enum_string'], {'String': 'String'});
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Object.<String, Object.<String, String>>} map_map_of_string
|
||||
*/
|
||||
map_map_of_string = undefined;
|
||||
/**
|
||||
* @member {Object.<String, module:model/MapTest.InnerEnum>} map_of_enum_string
|
||||
*/
|
||||
map_of_enum_string = undefined;
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Allowed values for the <code>inner</code> property.
|
||||
* @enum {String}
|
||||
* @readonly
|
||||
*/
|
||||
static InnerEnum = {
|
||||
|
||||
/**
|
||||
* value: "UPPER"
|
||||
* @const
|
||||
*/
|
||||
"UPPER": "UPPER",
|
||||
|
||||
/**
|
||||
* value: "lower"
|
||||
* @const
|
||||
*/
|
||||
"lower": "lower"
|
||||
};
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,92 +7,89 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/Animal'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'), require('./Animal'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
import Animal from './Animal';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The MixedPropertiesAndAdditionalPropertiesClass model module.
|
||||
* @module model/MixedPropertiesAndAdditionalPropertiesClass
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
/**
|
||||
* Constructs a new <code>MixedPropertiesAndAdditionalPropertiesClass</code>.
|
||||
* @alias module:model/MixedPropertiesAndAdditionalPropertiesClass
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Animal);
|
||||
}
|
||||
}(this, function(ApiClient, Animal) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>MixedPropertiesAndAdditionalPropertiesClass</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/MixedPropertiesAndAdditionalPropertiesClass} obj Optional instance to populate.
|
||||
* @return {module:model/MixedPropertiesAndAdditionalPropertiesClass} The populated <code>MixedPropertiesAndAdditionalPropertiesClass</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new MixedPropertiesAndAdditionalPropertiesClass();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The MixedPropertiesAndAdditionalPropertiesClass model module.
|
||||
* @module model/MixedPropertiesAndAdditionalPropertiesClass
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>MixedPropertiesAndAdditionalPropertiesClass</code>.
|
||||
* @alias module:model/MixedPropertiesAndAdditionalPropertiesClass
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>MixedPropertiesAndAdditionalPropertiesClass</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/MixedPropertiesAndAdditionalPropertiesClass} obj Optional instance to populate.
|
||||
* @return {module:model/MixedPropertiesAndAdditionalPropertiesClass} The populated <code>MixedPropertiesAndAdditionalPropertiesClass</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('uuid')) {
|
||||
obj['uuid'] = ApiClient.convertToType(data['uuid'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('dateTime')) {
|
||||
obj['dateTime'] = ApiClient.convertToType(data['dateTime'], 'Date');
|
||||
}
|
||||
if (data.hasOwnProperty('map')) {
|
||||
obj['map'] = ApiClient.convertToType(data['map'], {'String': Animal});
|
||||
}
|
||||
if (data.hasOwnProperty('uuid')) {
|
||||
obj['uuid'] = ApiClient.convertToType(data['uuid'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('dateTime')) {
|
||||
obj['dateTime'] = ApiClient.convertToType(data['dateTime'], 'Date');
|
||||
}
|
||||
if (data.hasOwnProperty('map')) {
|
||||
obj['map'] = ApiClient.convertToType(data['map'], {'String': Animal});
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {String} uuid
|
||||
*/
|
||||
exports.prototype['uuid'] = undefined;
|
||||
/**
|
||||
* @member {Date} dateTime
|
||||
*/
|
||||
exports.prototype['dateTime'] = undefined;
|
||||
/**
|
||||
* @member {Object.<String, module:model/Animal>} map
|
||||
*/
|
||||
exports.prototype['map'] = undefined;
|
||||
/**
|
||||
* @member {String} uuid
|
||||
*/
|
||||
uuid = undefined;
|
||||
/**
|
||||
* @member {Date} dateTime
|
||||
*/
|
||||
dateTime = undefined;
|
||||
/**
|
||||
* @member {Object.<String, module:model/Animal>} map
|
||||
*/
|
||||
map = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,85 +7,82 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Model200Response model module.
|
||||
* @module model/Model200Response
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class Model200Response {
|
||||
/**
|
||||
* Constructs a new <code>Model200Response</code>.
|
||||
* Model for testing model name starting with number
|
||||
* @alias module:model/Model200Response
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.Model200Response = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>Model200Response</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/Model200Response} obj Optional instance to populate.
|
||||
* @return {module:model/Model200Response} The populated <code>Model200Response</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new Model200Response();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Model200Response model module.
|
||||
* @module model/Model200Response
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>Model200Response</code>.
|
||||
* Model for testing model name starting with number
|
||||
* @alias module:model/Model200Response
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>Model200Response</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/Model200Response} obj Optional instance to populate.
|
||||
* @return {module:model/Model200Response} The populated <code>Model200Response</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('name')) {
|
||||
obj['name'] = ApiClient.convertToType(data['name'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('class')) {
|
||||
obj['class'] = ApiClient.convertToType(data['class'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('name')) {
|
||||
obj['name'] = ApiClient.convertToType(data['name'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('class')) {
|
||||
obj['class'] = ApiClient.convertToType(data['class'], 'String');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Number} name
|
||||
*/
|
||||
exports.prototype['name'] = undefined;
|
||||
/**
|
||||
* @member {String} class
|
||||
*/
|
||||
exports.prototype['class'] = undefined;
|
||||
/**
|
||||
* @member {Number} name
|
||||
*/
|
||||
name = undefined;
|
||||
/**
|
||||
* @member {String} class
|
||||
*/
|
||||
class = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,77 +7,75 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The ModelReturn model module.
|
||||
* @module model/ModelReturn
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class ModelReturn {
|
||||
/**
|
||||
* Constructs a new <code>ModelReturn</code>.
|
||||
* Model for testing reserved words
|
||||
* @alias module:model/ModelReturn
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.ModelReturn = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>ModelReturn</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/ModelReturn} obj Optional instance to populate.
|
||||
* @return {module:model/ModelReturn} The populated <code>ModelReturn</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new ModelReturn();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The ModelReturn model module.
|
||||
* @module model/ModelReturn
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>ModelReturn</code>.
|
||||
* Model for testing reserved words
|
||||
* @alias module:model/ModelReturn
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>ModelReturn</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/ModelReturn} obj Optional instance to populate.
|
||||
* @return {module:model/ModelReturn} The populated <code>ModelReturn</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('return')) {
|
||||
obj['return'] = ApiClient.convertToType(data['return'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('return')) {
|
||||
obj['return'] = ApiClient.convertToType(data['return'], 'Number');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Number} return
|
||||
*/
|
||||
exports.prototype['return'] = undefined;
|
||||
/**
|
||||
* @member {Number} return
|
||||
*/
|
||||
return = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,102 +7,97 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Name model module.
|
||||
* @module model/Name
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class Name {
|
||||
/**
|
||||
* Constructs a new <code>Name</code>.
|
||||
* Model for testing model name same as property name
|
||||
* @alias module:model/Name
|
||||
* @class
|
||||
* @param name {Number}
|
||||
*/
|
||||
|
||||
constructor(name) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
this['name'] = name;
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.Name = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>Name</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/Name} obj Optional instance to populate.
|
||||
* @return {module:model/Name} The populated <code>Name</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new Name();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Name model module.
|
||||
* @module model/Name
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>Name</code>.
|
||||
* Model for testing model name same as property name
|
||||
* @alias module:model/Name
|
||||
* @class
|
||||
* @param name {Number}
|
||||
*/
|
||||
var exports = function(name) {
|
||||
var _this = this;
|
||||
|
||||
_this['name'] = name;
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>Name</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/Name} obj Optional instance to populate.
|
||||
* @return {module:model/Name} The populated <code>Name</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('name')) {
|
||||
obj['name'] = ApiClient.convertToType(data['name'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('snake_case')) {
|
||||
obj['snake_case'] = ApiClient.convertToType(data['snake_case'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('property')) {
|
||||
obj['property'] = ApiClient.convertToType(data['property'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('123Number')) {
|
||||
obj['123Number'] = ApiClient.convertToType(data['123Number'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('name')) {
|
||||
obj['name'] = ApiClient.convertToType(data['name'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('snake_case')) {
|
||||
obj['snake_case'] = ApiClient.convertToType(data['snake_case'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('property')) {
|
||||
obj['property'] = ApiClient.convertToType(data['property'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('123Number')) {
|
||||
obj['123Number'] = ApiClient.convertToType(data['123Number'], 'Number');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Number} name
|
||||
*/
|
||||
exports.prototype['name'] = undefined;
|
||||
/**
|
||||
* @member {Number} snake_case
|
||||
*/
|
||||
exports.prototype['snake_case'] = undefined;
|
||||
/**
|
||||
* @member {String} property
|
||||
*/
|
||||
exports.prototype['property'] = undefined;
|
||||
/**
|
||||
* @member {Number} 123Number
|
||||
*/
|
||||
exports.prototype['123Number'] = undefined;
|
||||
/**
|
||||
* @member {Number} name
|
||||
*/
|
||||
name = undefined;
|
||||
/**
|
||||
* @member {Number} snake_case
|
||||
*/
|
||||
snake_case = undefined;
|
||||
/**
|
||||
* @member {String} property
|
||||
*/
|
||||
property = undefined;
|
||||
/**
|
||||
* @member {Number} 123Number
|
||||
*/
|
||||
123Number = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,76 +7,74 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The NumberOnly model module.
|
||||
* @module model/NumberOnly
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class NumberOnly {
|
||||
/**
|
||||
* Constructs a new <code>NumberOnly</code>.
|
||||
* @alias module:model/NumberOnly
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.NumberOnly = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>NumberOnly</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/NumberOnly} obj Optional instance to populate.
|
||||
* @return {module:model/NumberOnly} The populated <code>NumberOnly</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new NumberOnly();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The NumberOnly model module.
|
||||
* @module model/NumberOnly
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>NumberOnly</code>.
|
||||
* @alias module:model/NumberOnly
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>NumberOnly</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/NumberOnly} obj Optional instance to populate.
|
||||
* @return {module:model/NumberOnly} The populated <code>NumberOnly</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('JustNumber')) {
|
||||
obj['JustNumber'] = ApiClient.convertToType(data['JustNumber'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('JustNumber')) {
|
||||
obj['JustNumber'] = ApiClient.convertToType(data['JustNumber'], 'Number');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Number} JustNumber
|
||||
*/
|
||||
exports.prototype['JustNumber'] = undefined;
|
||||
/**
|
||||
* @member {Number} JustNumber
|
||||
*/
|
||||
JustNumber = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,140 +7,137 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Order model module.
|
||||
* @module model/Order
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class Order {
|
||||
/**
|
||||
* Constructs a new <code>Order</code>.
|
||||
* @alias module:model/Order
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.Order = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>Order</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/Order} obj Optional instance to populate.
|
||||
* @return {module:model/Order} The populated <code>Order</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new Order();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Order model module.
|
||||
* @module model/Order
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>Order</code>.
|
||||
* @alias module:model/Order
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>Order</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/Order} obj Optional instance to populate.
|
||||
* @return {module:model/Order} The populated <code>Order</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('id')) {
|
||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('petId')) {
|
||||
obj['petId'] = ApiClient.convertToType(data['petId'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('quantity')) {
|
||||
obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('shipDate')) {
|
||||
obj['shipDate'] = ApiClient.convertToType(data['shipDate'], 'Date');
|
||||
}
|
||||
if (data.hasOwnProperty('status')) {
|
||||
obj['status'] = ApiClient.convertToType(data['status'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('complete')) {
|
||||
obj['complete'] = ApiClient.convertToType(data['complete'], 'Boolean');
|
||||
}
|
||||
if (data.hasOwnProperty('id')) {
|
||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('petId')) {
|
||||
obj['petId'] = ApiClient.convertToType(data['petId'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('quantity')) {
|
||||
obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('shipDate')) {
|
||||
obj['shipDate'] = ApiClient.convertToType(data['shipDate'], 'Date');
|
||||
}
|
||||
if (data.hasOwnProperty('status')) {
|
||||
obj['status'] = ApiClient.convertToType(data['status'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('complete')) {
|
||||
obj['complete'] = ApiClient.convertToType(data['complete'], 'Boolean');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Number} id
|
||||
*/
|
||||
exports.prototype['id'] = undefined;
|
||||
/**
|
||||
* @member {Number} petId
|
||||
*/
|
||||
exports.prototype['petId'] = undefined;
|
||||
/**
|
||||
* @member {Number} quantity
|
||||
*/
|
||||
exports.prototype['quantity'] = undefined;
|
||||
/**
|
||||
* @member {Date} shipDate
|
||||
*/
|
||||
exports.prototype['shipDate'] = undefined;
|
||||
/**
|
||||
* Order Status
|
||||
* @member {module:model/Order.StatusEnum} status
|
||||
*/
|
||||
exports.prototype['status'] = undefined;
|
||||
/**
|
||||
* @member {Boolean} complete
|
||||
* @default false
|
||||
*/
|
||||
exports.prototype['complete'] = false;
|
||||
|
||||
|
||||
/**
|
||||
* Allowed values for the <code>status</code> property.
|
||||
* @enum {String}
|
||||
* @readonly
|
||||
*/
|
||||
exports.StatusEnum = {
|
||||
/**
|
||||
* value: "placed"
|
||||
* @const
|
||||
*/
|
||||
"placed": "placed",
|
||||
* @member {Number} id
|
||||
*/
|
||||
id = undefined;
|
||||
/**
|
||||
* value: "approved"
|
||||
* @const
|
||||
*/
|
||||
"approved": "approved",
|
||||
* @member {Number} petId
|
||||
*/
|
||||
petId = undefined;
|
||||
/**
|
||||
* value: "delivered"
|
||||
* @const
|
||||
*/
|
||||
"delivered": "delivered" };
|
||||
* @member {Number} quantity
|
||||
*/
|
||||
quantity = undefined;
|
||||
/**
|
||||
* @member {Date} shipDate
|
||||
*/
|
||||
shipDate = undefined;
|
||||
/**
|
||||
* Order Status
|
||||
* @member {module:model/Order.StatusEnum} status
|
||||
*/
|
||||
status = undefined;
|
||||
/**
|
||||
* @member {Boolean} complete
|
||||
* @default false
|
||||
*/
|
||||
complete = false;
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Allowed values for the <code>status</code> property.
|
||||
* @enum {String}
|
||||
* @readonly
|
||||
*/
|
||||
static StatusEnum = {
|
||||
|
||||
/**
|
||||
* value: "placed"
|
||||
* @const
|
||||
*/
|
||||
"placed": "placed",
|
||||
|
||||
/**
|
||||
* value: "approved"
|
||||
* @const
|
||||
*/
|
||||
"approved": "approved",
|
||||
|
||||
/**
|
||||
* value: "delivered"
|
||||
* @const
|
||||
*/
|
||||
"delivered": "delivered"
|
||||
};
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,68 +7,67 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The OuterBoolean model module.
|
||||
* @module model/OuterBoolean
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class OuterBoolean {
|
||||
/**
|
||||
* Constructs a new <code>OuterBoolean</code>.
|
||||
* @alias module:model/OuterBoolean
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.OuterBoolean = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>OuterBoolean</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/OuterBoolean} obj Optional instance to populate.
|
||||
* @return {module:model/OuterBoolean} The populated <code>OuterBoolean</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new OuterBoolean();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The OuterBoolean model module.
|
||||
* @module model/OuterBoolean
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>OuterBoolean</code>.
|
||||
* @alias module:model/OuterBoolean
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>OuterBoolean</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/OuterBoolean} obj Optional instance to populate.
|
||||
* @return {module:model/OuterBoolean} The populated <code>OuterBoolean</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,92 +7,91 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/OuterBoolean', 'model/OuterNumber', 'model/OuterString'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'), require('./OuterBoolean'), require('./OuterNumber'), require('./OuterString'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
import OuterBoolean from './OuterBoolean';
|
||||
import OuterNumber from './OuterNumber';
|
||||
import OuterString from './OuterString';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The OuterComposite model module.
|
||||
* @module model/OuterComposite
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class OuterComposite {
|
||||
/**
|
||||
* Constructs a new <code>OuterComposite</code>.
|
||||
* @alias module:model/OuterComposite
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.OuterComposite = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.OuterBoolean, root.SwaggerPetstore.OuterNumber, root.SwaggerPetstore.OuterString);
|
||||
}
|
||||
}(this, function(ApiClient, OuterBoolean, OuterNumber, OuterString) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>OuterComposite</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/OuterComposite} obj Optional instance to populate.
|
||||
* @return {module:model/OuterComposite} The populated <code>OuterComposite</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new OuterComposite();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The OuterComposite model module.
|
||||
* @module model/OuterComposite
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>OuterComposite</code>.
|
||||
* @alias module:model/OuterComposite
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>OuterComposite</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/OuterComposite} obj Optional instance to populate.
|
||||
* @return {module:model/OuterComposite} The populated <code>OuterComposite</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('my_number')) {
|
||||
obj['my_number'] = OuterNumber.constructFromObject(data['my_number']);
|
||||
}
|
||||
if (data.hasOwnProperty('my_string')) {
|
||||
obj['my_string'] = OuterString.constructFromObject(data['my_string']);
|
||||
}
|
||||
if (data.hasOwnProperty('my_boolean')) {
|
||||
obj['my_boolean'] = OuterBoolean.constructFromObject(data['my_boolean']);
|
||||
}
|
||||
if (data.hasOwnProperty('my_number')) {
|
||||
obj['my_number'] = OuterNumber.constructFromObject(data['my_number']);
|
||||
}
|
||||
if (data.hasOwnProperty('my_string')) {
|
||||
obj['my_string'] = OuterString.constructFromObject(data['my_string']);
|
||||
}
|
||||
if (data.hasOwnProperty('my_boolean')) {
|
||||
obj['my_boolean'] = OuterBoolean.constructFromObject(data['my_boolean']);
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {module:model/OuterNumber} my_number
|
||||
*/
|
||||
exports.prototype['my_number'] = undefined;
|
||||
/**
|
||||
* @member {module:model/OuterString} my_string
|
||||
*/
|
||||
exports.prototype['my_string'] = undefined;
|
||||
/**
|
||||
* @member {module:model/OuterBoolean} my_boolean
|
||||
*/
|
||||
exports.prototype['my_boolean'] = undefined;
|
||||
/**
|
||||
* @member {module:model/OuterNumber} my_number
|
||||
*/
|
||||
my_number = undefined;
|
||||
/**
|
||||
* @member {module:model/OuterString} my_string
|
||||
*/
|
||||
my_string = undefined;
|
||||
/**
|
||||
* @member {module:model/OuterBoolean} my_boolean
|
||||
*/
|
||||
my_boolean = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,63 +7,51 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
/**
|
||||
* Enum class OuterEnum.
|
||||
* @enum {}
|
||||
* @readonly
|
||||
*/
|
||||
export default class OuterEnum {
|
||||
|
||||
/**
|
||||
* value: "placed"
|
||||
* @const
|
||||
*/
|
||||
placed = "placed";
|
||||
|
||||
|
||||
/**
|
||||
* value: "approved"
|
||||
* @const
|
||||
*/
|
||||
approved = "approved";
|
||||
|
||||
|
||||
/**
|
||||
* value: "delivered"
|
||||
* @const
|
||||
*/
|
||||
delivered = "delivered";
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Returns a <code>OuterEnum</code> enum value from a Javascript object name.
|
||||
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
||||
* @return {module:model/OuterEnum} The enum <code>OuterEnum</code> value.
|
||||
*/
|
||||
static constructFromObject(object) {
|
||||
return object;
|
||||
}
|
||||
root.SwaggerPetstore.OuterEnum = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
|
||||
/**
|
||||
* Enum class OuterEnum.
|
||||
* @enum {}
|
||||
* @readonly
|
||||
*/
|
||||
var exports = {
|
||||
/**
|
||||
* value: "placed"
|
||||
* @const
|
||||
*/
|
||||
"placed": "placed",
|
||||
/**
|
||||
* value: "approved"
|
||||
* @const
|
||||
*/
|
||||
"approved": "approved",
|
||||
/**
|
||||
* value: "delivered"
|
||||
* @const
|
||||
*/
|
||||
"delivered": "delivered" };
|
||||
|
||||
/**
|
||||
* Returns a <code>OuterEnum</code> enum value from a Javascript object name.
|
||||
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
||||
* @return {module:model/OuterEnum} The enum <code>OuterEnum</code> value.
|
||||
*/
|
||||
exports.constructFromObject = function(object) {
|
||||
return object;
|
||||
}
|
||||
|
||||
return exports;
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,68 +7,67 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The OuterNumber model module.
|
||||
* @module model/OuterNumber
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class OuterNumber {
|
||||
/**
|
||||
* Constructs a new <code>OuterNumber</code>.
|
||||
* @alias module:model/OuterNumber
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.OuterNumber = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>OuterNumber</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/OuterNumber} obj Optional instance to populate.
|
||||
* @return {module:model/OuterNumber} The populated <code>OuterNumber</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new OuterNumber();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The OuterNumber model module.
|
||||
* @module model/OuterNumber
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>OuterNumber</code>.
|
||||
* @alias module:model/OuterNumber
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>OuterNumber</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/OuterNumber} obj Optional instance to populate.
|
||||
* @return {module:model/OuterNumber} The populated <code>OuterNumber</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,68 +7,67 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The OuterString model module.
|
||||
* @module model/OuterString
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class OuterString {
|
||||
/**
|
||||
* Constructs a new <code>OuterString</code>.
|
||||
* @alias module:model/OuterString
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.OuterString = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>OuterString</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/OuterString} obj Optional instance to populate.
|
||||
* @return {module:model/OuterString} The populated <code>OuterString</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new OuterString();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The OuterString model module.
|
||||
* @module model/OuterString
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>OuterString</code>.
|
||||
* @alias module:model/OuterString
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>OuterString</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/OuterString} obj Optional instance to populate.
|
||||
* @return {module:model/OuterString} The populated <code>OuterString</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,141 +7,140 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/Category', 'model/Tag'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'), require('./Category'), require('./Tag'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
import Category from './Category';
|
||||
import Tag from './Tag';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Pet model module.
|
||||
* @module model/Pet
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class Pet {
|
||||
/**
|
||||
* Constructs a new <code>Pet</code>.
|
||||
* @alias module:model/Pet
|
||||
* @class
|
||||
* @param name {String}
|
||||
* @param photoUrls {Array.<String>}
|
||||
*/
|
||||
|
||||
constructor(name, photoUrls) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
this['name'] = name;this['photoUrls'] = photoUrls;
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.Pet = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Category, root.SwaggerPetstore.Tag);
|
||||
}
|
||||
}(this, function(ApiClient, Category, Tag) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>Pet</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/Pet} obj Optional instance to populate.
|
||||
* @return {module:model/Pet} The populated <code>Pet</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new Pet();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Pet model module.
|
||||
* @module model/Pet
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>Pet</code>.
|
||||
* @alias module:model/Pet
|
||||
* @class
|
||||
* @param name {String}
|
||||
* @param photoUrls {Array.<String>}
|
||||
*/
|
||||
var exports = function(name, photoUrls) {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
_this['name'] = name;
|
||||
_this['photoUrls'] = photoUrls;
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>Pet</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/Pet} obj Optional instance to populate.
|
||||
* @return {module:model/Pet} The populated <code>Pet</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('id')) {
|
||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('category')) {
|
||||
obj['category'] = Category.constructFromObject(data['category']);
|
||||
}
|
||||
if (data.hasOwnProperty('name')) {
|
||||
obj['name'] = ApiClient.convertToType(data['name'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('photoUrls')) {
|
||||
obj['photoUrls'] = ApiClient.convertToType(data['photoUrls'], ['String']);
|
||||
}
|
||||
if (data.hasOwnProperty('tags')) {
|
||||
obj['tags'] = ApiClient.convertToType(data['tags'], [Tag]);
|
||||
}
|
||||
if (data.hasOwnProperty('status')) {
|
||||
obj['status'] = ApiClient.convertToType(data['status'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('id')) {
|
||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('category')) {
|
||||
obj['category'] = Category.constructFromObject(data['category']);
|
||||
}
|
||||
if (data.hasOwnProperty('name')) {
|
||||
obj['name'] = ApiClient.convertToType(data['name'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('photoUrls')) {
|
||||
obj['photoUrls'] = ApiClient.convertToType(data['photoUrls'], ['String']);
|
||||
}
|
||||
if (data.hasOwnProperty('tags')) {
|
||||
obj['tags'] = ApiClient.convertToType(data['tags'], [Tag]);
|
||||
}
|
||||
if (data.hasOwnProperty('status')) {
|
||||
obj['status'] = ApiClient.convertToType(data['status'], 'String');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Number} id
|
||||
*/
|
||||
exports.prototype['id'] = undefined;
|
||||
/**
|
||||
* @member {module:model/Category} category
|
||||
*/
|
||||
exports.prototype['category'] = undefined;
|
||||
/**
|
||||
* @member {String} name
|
||||
*/
|
||||
exports.prototype['name'] = undefined;
|
||||
/**
|
||||
* @member {Array.<String>} photoUrls
|
||||
*/
|
||||
exports.prototype['photoUrls'] = undefined;
|
||||
/**
|
||||
* @member {Array.<module:model/Tag>} tags
|
||||
*/
|
||||
exports.prototype['tags'] = undefined;
|
||||
/**
|
||||
* pet status in the store
|
||||
* @member {module:model/Pet.StatusEnum} status
|
||||
*/
|
||||
exports.prototype['status'] = undefined;
|
||||
|
||||
|
||||
/**
|
||||
* Allowed values for the <code>status</code> property.
|
||||
* @enum {String}
|
||||
* @readonly
|
||||
*/
|
||||
exports.StatusEnum = {
|
||||
/**
|
||||
* value: "available"
|
||||
* @const
|
||||
*/
|
||||
"available": "available",
|
||||
* @member {Number} id
|
||||
*/
|
||||
id = undefined;
|
||||
/**
|
||||
* value: "pending"
|
||||
* @const
|
||||
*/
|
||||
"pending": "pending",
|
||||
* @member {module:model/Category} category
|
||||
*/
|
||||
category = undefined;
|
||||
/**
|
||||
* value: "sold"
|
||||
* @const
|
||||
*/
|
||||
"sold": "sold" };
|
||||
* @member {String} name
|
||||
*/
|
||||
name = undefined;
|
||||
/**
|
||||
* @member {Array.<String>} photoUrls
|
||||
*/
|
||||
photoUrls = undefined;
|
||||
/**
|
||||
* @member {Array.<module:model/Tag>} tags
|
||||
*/
|
||||
tags = undefined;
|
||||
/**
|
||||
* pet status in the store
|
||||
* @member {module:model/Pet.StatusEnum} status
|
||||
*/
|
||||
status = undefined;
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Allowed values for the <code>status</code> property.
|
||||
* @enum {String}
|
||||
* @readonly
|
||||
*/
|
||||
static StatusEnum = {
|
||||
|
||||
/**
|
||||
* value: "available"
|
||||
* @const
|
||||
*/
|
||||
"available": "available",
|
||||
|
||||
/**
|
||||
* value: "pending"
|
||||
* @const
|
||||
*/
|
||||
"pending": "pending",
|
||||
|
||||
/**
|
||||
* value: "sold"
|
||||
* @const
|
||||
*/
|
||||
"sold": "sold"
|
||||
};
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,84 +7,81 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The ReadOnlyFirst model module.
|
||||
* @module model/ReadOnlyFirst
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class ReadOnlyFirst {
|
||||
/**
|
||||
* Constructs a new <code>ReadOnlyFirst</code>.
|
||||
* @alias module:model/ReadOnlyFirst
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.ReadOnlyFirst = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>ReadOnlyFirst</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/ReadOnlyFirst} obj Optional instance to populate.
|
||||
* @return {module:model/ReadOnlyFirst} The populated <code>ReadOnlyFirst</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new ReadOnlyFirst();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The ReadOnlyFirst model module.
|
||||
* @module model/ReadOnlyFirst
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>ReadOnlyFirst</code>.
|
||||
* @alias module:model/ReadOnlyFirst
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>ReadOnlyFirst</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/ReadOnlyFirst} obj Optional instance to populate.
|
||||
* @return {module:model/ReadOnlyFirst} The populated <code>ReadOnlyFirst</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('bar')) {
|
||||
obj['bar'] = ApiClient.convertToType(data['bar'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('baz')) {
|
||||
obj['baz'] = ApiClient.convertToType(data['baz'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('bar')) {
|
||||
obj['bar'] = ApiClient.convertToType(data['bar'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('baz')) {
|
||||
obj['baz'] = ApiClient.convertToType(data['baz'], 'String');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {String} bar
|
||||
*/
|
||||
exports.prototype['bar'] = undefined;
|
||||
/**
|
||||
* @member {String} baz
|
||||
*/
|
||||
exports.prototype['baz'] = undefined;
|
||||
/**
|
||||
* @member {String} bar
|
||||
*/
|
||||
bar = undefined;
|
||||
/**
|
||||
* @member {String} baz
|
||||
*/
|
||||
baz = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,76 +7,74 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The SpecialModelName model module.
|
||||
* @module model/SpecialModelName
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class SpecialModelName {
|
||||
/**
|
||||
* Constructs a new <code>SpecialModelName</code>.
|
||||
* @alias module:model/SpecialModelName
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.SpecialModelName = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>SpecialModelName</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/SpecialModelName} obj Optional instance to populate.
|
||||
* @return {module:model/SpecialModelName} The populated <code>SpecialModelName</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new SpecialModelName();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The SpecialModelName model module.
|
||||
* @module model/SpecialModelName
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>SpecialModelName</code>.
|
||||
* @alias module:model/SpecialModelName
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>SpecialModelName</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/SpecialModelName} obj Optional instance to populate.
|
||||
* @return {module:model/SpecialModelName} The populated <code>SpecialModelName</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('$special[property.name]')) {
|
||||
obj['$special[property.name]'] = ApiClient.convertToType(data['$special[property.name]'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('$special[property.name]')) {
|
||||
obj['$special[property.name]'] = ApiClient.convertToType(data['$special[property.name]'], 'Number');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Number} $special[property.name]
|
||||
*/
|
||||
exports.prototype['$special[property.name]'] = undefined;
|
||||
/**
|
||||
* @member {Number} $special[property.name]
|
||||
*/
|
||||
$special[property.name] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,84 +7,81 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Tag model module.
|
||||
* @module model/Tag
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class Tag {
|
||||
/**
|
||||
* Constructs a new <code>Tag</code>.
|
||||
* @alias module:model/Tag
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.Tag = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>Tag</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/Tag} obj Optional instance to populate.
|
||||
* @return {module:model/Tag} The populated <code>Tag</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new Tag();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Tag model module.
|
||||
* @module model/Tag
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>Tag</code>.
|
||||
* @alias module:model/Tag
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>Tag</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/Tag} obj Optional instance to populate.
|
||||
* @return {module:model/Tag} The populated <code>Tag</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('id')) {
|
||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('name')) {
|
||||
obj['name'] = ApiClient.convertToType(data['name'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('id')) {
|
||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('name')) {
|
||||
obj['name'] = ApiClient.convertToType(data['name'], 'String');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Number} id
|
||||
*/
|
||||
exports.prototype['id'] = undefined;
|
||||
/**
|
||||
* @member {String} name
|
||||
*/
|
||||
exports.prototype['name'] = undefined;
|
||||
/**
|
||||
* @member {Number} id
|
||||
*/
|
||||
id = undefined;
|
||||
/**
|
||||
* @member {String} name
|
||||
*/
|
||||
name = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,133 +7,124 @@
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Swagger Codegen version: 2.2.3-SNAPSHOT
|
||||
*
|
||||
* 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.SwaggerPetstore) {
|
||||
root.SwaggerPetstore = {};
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The User model module.
|
||||
* @module model/User
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class User {
|
||||
/**
|
||||
* Constructs a new <code>User</code>.
|
||||
* @alias module:model/User
|
||||
* @class
|
||||
*/
|
||||
|
||||
constructor() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
root.SwaggerPetstore.User = factory(root.SwaggerPetstore.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructs a <code>User</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/User} obj Optional instance to populate.
|
||||
* @return {module:model/User} The populated <code>User</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new User();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The User model module.
|
||||
* @module model/User
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>User</code>.
|
||||
* @alias module:model/User
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a <code>User</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/User} obj Optional instance to populate.
|
||||
* @return {module:model/User} The populated <code>User</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
|
||||
if (data.hasOwnProperty('id')) {
|
||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('username')) {
|
||||
obj['username'] = ApiClient.convertToType(data['username'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('firstName')) {
|
||||
obj['firstName'] = ApiClient.convertToType(data['firstName'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('lastName')) {
|
||||
obj['lastName'] = ApiClient.convertToType(data['lastName'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('email')) {
|
||||
obj['email'] = ApiClient.convertToType(data['email'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('password')) {
|
||||
obj['password'] = ApiClient.convertToType(data['password'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('phone')) {
|
||||
obj['phone'] = ApiClient.convertToType(data['phone'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('userStatus')) {
|
||||
obj['userStatus'] = ApiClient.convertToType(data['userStatus'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('id')) {
|
||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('username')) {
|
||||
obj['username'] = ApiClient.convertToType(data['username'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('firstName')) {
|
||||
obj['firstName'] = ApiClient.convertToType(data['firstName'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('lastName')) {
|
||||
obj['lastName'] = ApiClient.convertToType(data['lastName'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('email')) {
|
||||
obj['email'] = ApiClient.convertToType(data['email'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('password')) {
|
||||
obj['password'] = ApiClient.convertToType(data['password'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('phone')) {
|
||||
obj['phone'] = ApiClient.convertToType(data['phone'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('userStatus')) {
|
||||
obj['userStatus'] = ApiClient.convertToType(data['userStatus'], 'Number');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Number} id
|
||||
*/
|
||||
exports.prototype['id'] = undefined;
|
||||
/**
|
||||
* @member {String} username
|
||||
*/
|
||||
exports.prototype['username'] = undefined;
|
||||
/**
|
||||
* @member {String} firstName
|
||||
*/
|
||||
exports.prototype['firstName'] = undefined;
|
||||
/**
|
||||
* @member {String} lastName
|
||||
*/
|
||||
exports.prototype['lastName'] = undefined;
|
||||
/**
|
||||
* @member {String} email
|
||||
*/
|
||||
exports.prototype['email'] = undefined;
|
||||
/**
|
||||
* @member {String} password
|
||||
*/
|
||||
exports.prototype['password'] = undefined;
|
||||
/**
|
||||
* @member {String} phone
|
||||
*/
|
||||
exports.prototype['phone'] = undefined;
|
||||
/**
|
||||
* User Status
|
||||
* @member {Number} userStatus
|
||||
*/
|
||||
exports.prototype['userStatus'] = undefined;
|
||||
/**
|
||||
* @member {Number} id
|
||||
*/
|
||||
id = undefined;
|
||||
/**
|
||||
* @member {String} username
|
||||
*/
|
||||
username = undefined;
|
||||
/**
|
||||
* @member {String} firstName
|
||||
*/
|
||||
firstName = undefined;
|
||||
/**
|
||||
* @member {String} lastName
|
||||
*/
|
||||
lastName = undefined;
|
||||
/**
|
||||
* @member {String} email
|
||||
*/
|
||||
email = undefined;
|
||||
/**
|
||||
* @member {String} password
|
||||
*/
|
||||
password = undefined;
|
||||
/**
|
||||
* @member {String} phone
|
||||
*/
|
||||
phone = undefined;
|
||||
/**
|
||||
* User Status
|
||||
* @member {Number} userStatus
|
||||
*/
|
||||
userStatus = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user