Add fixes for es6 generator (#180)

Various fixes for JS (ES6) generator
This commit is contained in:
delenius
2018-06-16 10:59:23 -07:00
committed by William Cheng
parent 53d9878cf2
commit c607ea8b31
194 changed files with 8532 additions and 5008 deletions

View File

@@ -11,51 +11,42 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The AdditionalPropertiesClass model module.
* @module model/AdditionalPropertiesClass
* @version 1.0.0
*/
export default class AdditionalPropertiesClass {
* The AdditionalPropertiesClass model module.
* @module model/AdditionalPropertiesClass
* @version 1.0.0
*/
class AdditionalPropertiesClass {
/**
* Constructs a new <code>AdditionalPropertiesClass</code>.
* @alias module:model/AdditionalPropertiesClass
* @class
*/
constructor() {
* Constructs a new <code>AdditionalPropertiesClass</code>.
* @alias module:model/AdditionalPropertiesClass
*/
constructor() {
AdditionalPropertiesClass.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('map_property')) {
obj['map_property'] = ApiClient.convertToType(data['map_property'], {'String': 'String'});
}
@@ -66,22 +57,23 @@ export default class AdditionalPropertiesClass {
return obj;
}
/**
* @member {Object.<String, String>} map_property
*/
map_property = undefined;
/**
* @member {Object.<String, Object.<String, String>>} map_of_map_property
*/
map_of_map_property = undefined;
}
/**
* @member {Object.<String, String>} map_property
*/
AdditionalPropertiesClass.prototype['map_property'] = undefined;
/**
* @member {Object.<String, Object.<String, String>>} map_of_map_property
*/
AdditionalPropertiesClass.prototype['map_of_map_property'] = undefined;
export default AdditionalPropertiesClass;

View File

@@ -11,52 +11,44 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The Animal model module.
* @module model/Animal
* @version 1.0.0
*/
export default class Animal {
* The Animal model module.
* @module model/Animal
* @version 1.0.0
*/
class Animal {
/**
* Constructs a new <code>Animal</code>.
* @alias module:model/Animal
* @class
* @param className {String}
*/
constructor(className) {
this['className'] = className;
* Constructs a new <code>Animal</code>.
* @alias module:model/Animal
* @param className {String}
*/
constructor(className) {
Animal.initialize(this, 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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, className) {
obj['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.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new Animal();
if (data.hasOwnProperty('className')) {
obj['className'] = ApiClient.convertToType(data['className'], 'String');
}
@@ -67,23 +59,24 @@ export default class Animal {
return obj;
}
/**
* @member {String} className
*/
className = undefined;
/**
* @member {String} color
* @default 'red'
*/
color = 'red';
}
/**
* @member {String} className
*/
Animal.prototype['className'] = undefined;
/**
* @member {String} color
* @default 'red'
*/
Animal.prototype['color'] = 'red';
export default Animal;

View File

@@ -11,54 +11,47 @@
*
*/
import ApiClient from '../ApiClient';
import Animal from './Animal';
/**
* The AnimalFarm model module.
* @module model/AnimalFarm
* @version 1.0.0
*/
export default class AnimalFarm extends Array {
* The AnimalFarm model module.
* @module model/AnimalFarm
* @version 1.0.0
*/
class AnimalFarm extends Array {
/**
* Constructs a new <code>AnimalFarm</code>.
* @alias module:model/AnimalFarm
* @class
* @extends Array
*/
constructor() {
* Constructs a new <code>AnimalFarm</code>.
* @alias module:model/AnimalFarm
* @extends Array
*/
constructor() {
super();
return this;
AnimalFarm.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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');
}
@@ -66,13 +59,12 @@ export default class AnimalFarm extends Array {
}
}
export default AnimalFarm;

View File

@@ -11,51 +11,42 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The ApiResponse model module.
* @module model/ApiResponse
* @version 1.0.0
*/
export default class ApiResponse {
* The ApiResponse model module.
* @module model/ApiResponse
* @version 1.0.0
*/
class ApiResponse {
/**
* Constructs a new <code>ApiResponse</code>.
* @alias module:model/ApiResponse
* @class
*/
constructor() {
* Constructs a new <code>ApiResponse</code>.
* @alias module:model/ApiResponse
*/
constructor() {
ApiResponse.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('code')) {
obj['code'] = ApiClient.convertToType(data['code'], 'Number');
}
@@ -69,26 +60,28 @@ export default class ApiResponse {
return obj;
}
/**
* @member {Number} code
*/
code = undefined;
/**
* @member {String} type
*/
type = undefined;
/**
* @member {String} message
*/
message = undefined;
}
/**
* @member {Number} code
*/
ApiResponse.prototype['code'] = undefined;
/**
* @member {String} type
*/
ApiResponse.prototype['type'] = undefined;
/**
* @member {String} message
*/
ApiResponse.prototype['message'] = undefined;
export default ApiResponse;

View File

@@ -11,51 +11,42 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The ArrayOfArrayOfNumberOnly model module.
* @module model/ArrayOfArrayOfNumberOnly
* @version 1.0.0
*/
export default class ArrayOfArrayOfNumberOnly {
* The ArrayOfArrayOfNumberOnly model module.
* @module model/ArrayOfArrayOfNumberOnly
* @version 1.0.0
*/
class ArrayOfArrayOfNumberOnly {
/**
* Constructs a new <code>ArrayOfArrayOfNumberOnly</code>.
* @alias module:model/ArrayOfArrayOfNumberOnly
* @class
*/
constructor() {
* Constructs a new <code>ArrayOfArrayOfNumberOnly</code>.
* @alias module:model/ArrayOfArrayOfNumberOnly
*/
constructor() {
ArrayOfArrayOfNumberOnly.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('ArrayArrayNumber')) {
obj['ArrayArrayNumber'] = ApiClient.convertToType(data['ArrayArrayNumber'], [['Number']]);
}
@@ -63,18 +54,18 @@ export default class ArrayOfArrayOfNumberOnly {
return obj;
}
/**
* @member {Array.<Array.<Number>>} ArrayArrayNumber
*/
ArrayArrayNumber = undefined;
}
/**
* @member {Array.<Array.<Number>>} ArrayArrayNumber
*/
ArrayOfArrayOfNumberOnly.prototype['ArrayArrayNumber'] = undefined;
export default ArrayOfArrayOfNumberOnly;

View File

@@ -11,51 +11,42 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The ArrayOfNumberOnly model module.
* @module model/ArrayOfNumberOnly
* @version 1.0.0
*/
export default class ArrayOfNumberOnly {
* The ArrayOfNumberOnly model module.
* @module model/ArrayOfNumberOnly
* @version 1.0.0
*/
class ArrayOfNumberOnly {
/**
* Constructs a new <code>ArrayOfNumberOnly</code>.
* @alias module:model/ArrayOfNumberOnly
* @class
*/
constructor() {
* Constructs a new <code>ArrayOfNumberOnly</code>.
* @alias module:model/ArrayOfNumberOnly
*/
constructor() {
ArrayOfNumberOnly.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('ArrayNumber')) {
obj['ArrayNumber'] = ApiClient.convertToType(data['ArrayNumber'], ['Number']);
}
@@ -63,18 +54,18 @@ export default class ArrayOfNumberOnly {
return obj;
}
/**
* @member {Array.<Number>} ArrayNumber
*/
ArrayNumber = undefined;
}
/**
* @member {Array.<Number>} ArrayNumber
*/
ArrayOfNumberOnly.prototype['ArrayNumber'] = undefined;
export default ArrayOfNumberOnly;

View File

@@ -11,52 +11,43 @@
*
*/
import ApiClient from '../ApiClient';
import ReadOnlyFirst from './ReadOnlyFirst';
/**
* The ArrayTest model module.
* @module model/ArrayTest
* @version 1.0.0
*/
export default class ArrayTest {
* The ArrayTest model module.
* @module model/ArrayTest
* @version 1.0.0
*/
class ArrayTest {
/**
* Constructs a new <code>ArrayTest</code>.
* @alias module:model/ArrayTest
* @class
*/
constructor() {
* Constructs a new <code>ArrayTest</code>.
* @alias module:model/ArrayTest
*/
constructor() {
ArrayTest.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('array_of_string')) {
obj['array_of_string'] = ApiClient.convertToType(data['array_of_string'], ['String']);
}
@@ -70,26 +61,28 @@ export default class ArrayTest {
return obj;
}
/**
* @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;
}
/**
* @member {Array.<String>} array_of_string
*/
ArrayTest.prototype['array_of_string'] = undefined;
/**
* @member {Array.<Array.<Number>>} array_array_of_integer
*/
ArrayTest.prototype['array_array_of_integer'] = undefined;
/**
* @member {Array.<Array.<module:model/ReadOnlyFirst>>} array_array_of_model
*/
ArrayTest.prototype['array_array_of_model'] = undefined;
export default ArrayTest;

View File

@@ -11,51 +11,42 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The Capitalization model module.
* @module model/Capitalization
* @version 1.0.0
*/
export default class Capitalization {
* The Capitalization model module.
* @module model/Capitalization
* @version 1.0.0
*/
class Capitalization {
/**
* Constructs a new <code>Capitalization</code>.
* @alias module:model/Capitalization
* @class
*/
constructor() {
* Constructs a new <code>Capitalization</code>.
* @alias module:model/Capitalization
*/
constructor() {
Capitalization.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('smallCamel')) {
obj['smallCamel'] = ApiClient.convertToType(data['smallCamel'], 'String');
}
@@ -78,39 +69,44 @@ export default class Capitalization {
return obj;
}
/**
* @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;
}
/**
* @member {String} smallCamel
*/
Capitalization.prototype['smallCamel'] = undefined;
/**
* @member {String} CapitalCamel
*/
Capitalization.prototype['CapitalCamel'] = undefined;
/**
* @member {String} small_Snake
*/
Capitalization.prototype['small_Snake'] = undefined;
/**
* @member {String} Capital_Snake
*/
Capitalization.prototype['Capital_Snake'] = undefined;
/**
* @member {String} SCA_ETH_Flow_Points
*/
Capitalization.prototype['SCA_ETH_Flow_Points'] = undefined;
/**
* Name of the pet
* @member {String} ATT_NAME
*/
Capitalization.prototype['ATT_NAME'] = undefined;
export default Capitalization;

View File

@@ -11,53 +11,45 @@
*
*/
import ApiClient from '../ApiClient';
import Animal from './Animal';
/**
* The Cat model module.
* @module model/Cat
* @version 1.0.0
*/
export default class Cat {
* The Cat model module.
* @module model/Cat
* @version 1.0.0
*/
class Cat {
/**
* Constructs a new <code>Cat</code>.
* @alias module:model/Cat
* @class
* @extends module:model/Animal
* @implements module:model/Animal
* @param className {}
*/
constructor(className) {
Animal.call(this, className);
Animal.call(this, className);
* Constructs a new <code>Cat</code>.
* @alias module:model/Cat
* @extends module:model/Animal
* @implements module:model/Animal
* @param className {}
*/
constructor(className) {
Animal.initialize(this, className);
Cat.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, 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.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new Cat();
Animal.constructFromObject(data, obj);
Animal.constructFromObject(data, obj);
@@ -68,29 +60,28 @@ export default class Cat {
return obj;
}
/**
* @member {Boolean} declawed
*/
declawed = undefined;
// Implement Animal interface:
/**
* @member {String} className
*/
className = undefined;
/**
* @member {String} color
* @default 'red'
*/
color = 'red';
}
/**
* @member {Boolean} declawed
*/
Cat.prototype['declawed'] = undefined;
// Implement Animal interface:
/**
* @member {String} className
*/
Animal.prototype['className'] = undefined;
/**
* @member {String} color
* @default 'red'
*/
Animal.prototype['color'] = 'red';
export default Cat;

View File

@@ -11,51 +11,42 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The Category model module.
* @module model/Category
* @version 1.0.0
*/
export default class Category {
* The Category model module.
* @module model/Category
* @version 1.0.0
*/
class Category {
/**
* Constructs a new <code>Category</code>.
* @alias module:model/Category
* @class
*/
constructor() {
* Constructs a new <code>Category</code>.
* @alias module:model/Category
*/
constructor() {
Category.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
@@ -66,22 +57,23 @@ export default class Category {
return obj;
}
/**
* @member {Number} id
*/
id = undefined;
/**
* @member {String} name
*/
name = undefined;
}
/**
* @member {Number} id
*/
Category.prototype['id'] = undefined;
/**
* @member {String} name
*/
Category.prototype['name'] = undefined;
export default Category;

View File

@@ -11,52 +11,43 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The ClassModel model module.
* @module model/ClassModel
* @version 1.0.0
*/
export default class ClassModel {
* The ClassModel model module.
* @module model/ClassModel
* @version 1.0.0
*/
class ClassModel {
/**
* Constructs a new <code>ClassModel</code>.
* Model for testing model with \&quot;_class\&quot; property
* @alias module:model/ClassModel
* @class
*/
constructor() {
* Constructs a new <code>ClassModel</code>.
* Model for testing model with \&quot;_class\&quot; property
* @alias module:model/ClassModel
*/
constructor() {
ClassModel.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('_class')) {
obj['_class'] = ApiClient.convertToType(data['_class'], 'String');
}
@@ -64,18 +55,18 @@ export default class ClassModel {
return obj;
}
/**
* @member {String} _class
*/
_class = undefined;
}
/**
* @member {String} _class
*/
ClassModel.prototype['_class'] = undefined;
export default ClassModel;

View File

@@ -11,51 +11,42 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The Client model module.
* @module model/Client
* @version 1.0.0
*/
export default class Client {
* The Client model module.
* @module model/Client
* @version 1.0.0
*/
class Client {
/**
* Constructs a new <code>Client</code>.
* @alias module:model/Client
* @class
*/
constructor() {
* Constructs a new <code>Client</code>.
* @alias module:model/Client
*/
constructor() {
Client.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('client')) {
obj['client'] = ApiClient.convertToType(data['client'], 'String');
}
@@ -63,18 +54,18 @@ export default class Client {
return obj;
}
/**
* @member {String} client
*/
client = undefined;
}
/**
* @member {String} client
*/
Client.prototype['client'] = undefined;
export default Client;

View File

@@ -11,53 +11,45 @@
*
*/
import ApiClient from '../ApiClient';
import Animal from './Animal';
/**
* The Dog model module.
* @module model/Dog
* @version 1.0.0
*/
export default class Dog {
* The Dog model module.
* @module model/Dog
* @version 1.0.0
*/
class Dog {
/**
* Constructs a new <code>Dog</code>.
* @alias module:model/Dog
* @class
* @extends module:model/Animal
* @implements module:model/Animal
* @param className {}
*/
constructor(className) {
Animal.call(this, className);
Animal.call(this, className);
* Constructs a new <code>Dog</code>.
* @alias module:model/Dog
* @extends module:model/Animal
* @implements module:model/Animal
* @param className {}
*/
constructor(className) {
Animal.initialize(this, className);
Dog.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, 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.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new Dog();
Animal.constructFromObject(data, obj);
Animal.constructFromObject(data, obj);
@@ -68,29 +60,28 @@ export default class Dog {
return obj;
}
/**
* @member {String} breed
*/
breed = undefined;
// Implement Animal interface:
/**
* @member {String} className
*/
className = undefined;
/**
* @member {String} color
* @default 'red'
*/
color = 'red';
}
/**
* @member {String} breed
*/
Dog.prototype['breed'] = undefined;
// Implement Animal interface:
/**
* @member {String} className
*/
Animal.prototype['className'] = undefined;
/**
* @member {String} color
* @default 'red'
*/
Animal.prototype['color'] = 'red';
export default Dog;

View File

@@ -11,51 +11,42 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The EnumArrays model module.
* @module model/EnumArrays
* @version 1.0.0
*/
export default class EnumArrays {
* The EnumArrays model module.
* @module model/EnumArrays
* @version 1.0.0
*/
class EnumArrays {
/**
* Constructs a new <code>EnumArrays</code>.
* @alias module:model/EnumArrays
* @class
*/
constructor() {
* Constructs a new <code>EnumArrays</code>.
* @alias module:model/EnumArrays
*/
constructor() {
EnumArrays.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('just_symbol')) {
obj['just_symbol'] = ApiClient.convertToType(data['just_symbol'], 'String');
}
@@ -66,62 +57,65 @@ export default class EnumArrays {
return obj;
}
/**
* @member {module:model/EnumArrays.JustSymbolEnum} just_symbol
*/
just_symbol = undefined;
/**
* @member {Array.<module:model/EnumArrays.ArrayEnumEnum>} array_enum
*/
array_enum = undefined;
/**
* Allowed values for the <code>just_symbol</code> property.
* @enum {String}
* @readonly
*/
static JustSymbolEnum = {
/**
* value: ">="
* @const
*/
"GREATER_THAN_OR_EQUAL_TO": ">=",
/**
* value: "$"
* @const
*/
"DOLLAR": "$"
};
/**
* Allowed values for the <code>arrayEnum</code> property.
* @enum {String}
* @readonly
*/
static ArrayEnumEnum = {
/**
* value: "fish"
* @const
*/
"fish": "fish",
/**
* value: "crab"
* @const
*/
"crab": "crab"
};
}
/**
* @member {module:model/EnumArrays.JustSymbolEnum} just_symbol
*/
EnumArrays.prototype['just_symbol'] = undefined;
/**
* @member {Array.<module:model/EnumArrays.ArrayEnumEnum>} array_enum
*/
EnumArrays.prototype['array_enum'] = undefined;
/**
* Allowed values for the <code>just_symbol</code> property.
* @enum {String}
* @readonly
*/
EnumArrays['JustSymbolEnum'] = {
/**
* value: ">="
* @const
*/
"GREATER_THAN_OR_EQUAL_TO": ">=",
/**
* value: "$"
* @const
*/
"DOLLAR": "$"
};
/**
* Allowed values for the <code>arrayEnum</code> property.
* @enum {String}
* @readonly
*/
EnumArrays['ArrayEnumEnum'] = {
/**
* value: "fish"
* @const
*/
"fish": "fish",
/**
* value: "crab"
* @const
*/
"crab": "crab"
};
export default EnumArrays;

View File

@@ -11,10 +11,7 @@
*
*/
import ApiClient from '../ApiClient';
/**
* Enum class EnumClass.
* @enum {}
@@ -26,21 +23,21 @@ export default class EnumClass {
* value: "_abc"
* @const
*/
_abc = "_abc";
"_abc" = "_abc";
/**
* value: "-efg"
* @const
*/
-efg = "-efg";
"-efg" = "-efg";
/**
* value: "(xyz)"
* @const
*/
(xyz) = "(xyz)";
"(xyz)" = "(xyz)";
@@ -54,4 +51,3 @@ export default class EnumClass {
}
}

View File

@@ -11,53 +11,45 @@
*
*/
import ApiClient from '../ApiClient';
import OuterEnum from './OuterEnum';
/**
* The EnumTest model module.
* @module model/EnumTest
* @version 1.0.0
*/
export default class EnumTest {
* The EnumTest model module.
* @module model/EnumTest
* @version 1.0.0
*/
class EnumTest {
/**
* Constructs a new <code>EnumTest</code>.
* @alias module:model/EnumTest
* @class
* @param enumStringRequired {module:model/EnumTest.EnumStringRequiredEnum}
*/
constructor(enumStringRequired) {
this['enum_string_required'] = enumStringRequired;
* Constructs a new <code>EnumTest</code>.
* @alias module:model/EnumTest
* @param enumStringRequired {module:model/EnumTest.EnumStringRequiredEnum}
*/
constructor(enumStringRequired) {
EnumTest.initialize(this, enumStringRequired);
}
/**
* 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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, enumStringRequired) {
obj['enum_string_required'] = enumStringRequired;
}
/**
* 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();
if (data.hasOwnProperty('enum_string')) {
obj['enum_string'] = ApiClient.convertToType(data['enum_string'], 'String');
}
@@ -77,126 +69,134 @@ export default class EnumTest {
return obj;
}
/**
* @member {module:model/EnumTest.EnumStringEnum} enum_string
*/
enum_string = undefined;
/**
* @member {module:model/EnumTest.EnumStringRequiredEnum} enum_string_required
*/
enum_string_required = undefined;
/**
* @member {module:model/EnumTest.EnumIntegerEnum} enum_integer
*/
enum_integer = undefined;
/**
* @member {module:model/EnumTest.EnumNumberEnum} enum_number
*/
enum_number = undefined;
/**
* @member {module:model/OuterEnum} outerEnum
*/
outerEnum = undefined;
/**
* 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_string_required</code> property.
* @enum {String}
* @readonly
*/
static EnumStringRequiredEnum = {
/**
* 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
};
}
/**
* @member {module:model/EnumTest.EnumStringEnum} enum_string
*/
EnumTest.prototype['enum_string'] = undefined;
/**
* @member {module:model/EnumTest.EnumStringRequiredEnum} enum_string_required
*/
EnumTest.prototype['enum_string_required'] = undefined;
/**
* @member {module:model/EnumTest.EnumIntegerEnum} enum_integer
*/
EnumTest.prototype['enum_integer'] = undefined;
/**
* @member {module:model/EnumTest.EnumNumberEnum} enum_number
*/
EnumTest.prototype['enum_number'] = undefined;
/**
* @member {module:model/OuterEnum} outerEnum
*/
EnumTest.prototype['outerEnum'] = undefined;
/**
* Allowed values for the <code>enum_string</code> property.
* @enum {String}
* @readonly
*/
EnumTest['EnumStringEnum'] = {
/**
* value: "UPPER"
* @const
*/
"UPPER": "UPPER",
/**
* value: "lower"
* @const
*/
"lower": "lower",
/**
* value: ""
* @const
*/
"empty": ""
};
/**
* Allowed values for the <code>enum_string_required</code> property.
* @enum {String}
* @readonly
*/
EnumTest['EnumStringRequiredEnum'] = {
/**
* 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
*/
EnumTest['EnumIntegerEnum'] = {
/**
* value: 1
* @const
*/
"1": 1,
/**
* value: -1
* @const
*/
"-1": -1
};
/**
* Allowed values for the <code>enum_number</code> property.
* @enum {Number}
* @readonly
*/
EnumTest['EnumNumberEnum'] = {
/**
* value: 1.1
* @const
*/
"1.1": 1.1,
/**
* value: -1.2
* @const
*/
"-1.2": -1.2
};
export default EnumTest;

View File

@@ -11,55 +11,50 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The FormatTest model module.
* @module model/FormatTest
* @version 1.0.0
*/
export default class FormatTest {
* The FormatTest model module.
* @module model/FormatTest
* @version 1.0.0
*/
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;
* Constructs a new <code>FormatTest</code>.
* @alias module:model/FormatTest
* @param _number {Number}
* @param _byte {Blob}
* @param _date {Date}
* @param password {String}
*/
constructor(_number, _byte, _date, password) {
FormatTest.initialize(this, _number, _byte, _date, 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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, _number, _byte, _date, password) {
obj['number'] = _number;
obj['byte'] = _byte;
obj['date'] = _date;
obj['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.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new FormatTest();
if (data.hasOwnProperty('integer')) {
obj['integer'] = ApiClient.convertToType(data['integer'], 'Number');
}
@@ -103,66 +98,78 @@ export default class FormatTest {
return obj;
}
/**
* @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 {File} binary
*/
binary = undefined;
/**
* @member {Date} date
*/
date = undefined;
/**
* @member {Date} dateTime
*/
dateTime = undefined;
/**
* @member {String} uuid
*/
uuid = undefined;
/**
* @member {String} password
*/
password = undefined;
}
/**
* @member {Number} integer
*/
FormatTest.prototype['integer'] = undefined;
/**
* @member {Number} int32
*/
FormatTest.prototype['int32'] = undefined;
/**
* @member {Number} int64
*/
FormatTest.prototype['int64'] = undefined;
/**
* @member {Number} number
*/
FormatTest.prototype['number'] = undefined;
/**
* @member {Number} float
*/
FormatTest.prototype['float'] = undefined;
/**
* @member {Number} double
*/
FormatTest.prototype['double'] = undefined;
/**
* @member {String} string
*/
FormatTest.prototype['string'] = undefined;
/**
* @member {Blob} byte
*/
FormatTest.prototype['byte'] = undefined;
/**
* @member {File} binary
*/
FormatTest.prototype['binary'] = undefined;
/**
* @member {Date} date
*/
FormatTest.prototype['date'] = undefined;
/**
* @member {Date} dateTime
*/
FormatTest.prototype['dateTime'] = undefined;
/**
* @member {String} uuid
*/
FormatTest.prototype['uuid'] = undefined;
/**
* @member {String} password
*/
FormatTest.prototype['password'] = undefined;
export default FormatTest;

View File

@@ -11,51 +11,42 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The HasOnlyReadOnly model module.
* @module model/HasOnlyReadOnly
* @version 1.0.0
*/
export default class HasOnlyReadOnly {
* The HasOnlyReadOnly model module.
* @module model/HasOnlyReadOnly
* @version 1.0.0
*/
class HasOnlyReadOnly {
/**
* Constructs a new <code>HasOnlyReadOnly</code>.
* @alias module:model/HasOnlyReadOnly
* @class
*/
constructor() {
* Constructs a new <code>HasOnlyReadOnly</code>.
* @alias module:model/HasOnlyReadOnly
*/
constructor() {
HasOnlyReadOnly.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('bar')) {
obj['bar'] = ApiClient.convertToType(data['bar'], 'String');
}
@@ -66,22 +57,23 @@ export default class HasOnlyReadOnly {
return obj;
}
/**
* @member {String} bar
*/
bar = undefined;
/**
* @member {String} foo
*/
foo = undefined;
}
/**
* @member {String} bar
*/
HasOnlyReadOnly.prototype['bar'] = undefined;
/**
* @member {String} foo
*/
HasOnlyReadOnly.prototype['foo'] = undefined;
export default HasOnlyReadOnly;

View File

@@ -11,51 +11,42 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The List model module.
* @module model/List
* @version 1.0.0
*/
export default class List {
* The List model module.
* @module model/List
* @version 1.0.0
*/
class List {
/**
* Constructs a new <code>List</code>.
* @alias module:model/List
* @class
*/
constructor() {
* Constructs a new <code>List</code>.
* @alias module:model/List
*/
constructor() {
List.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('123-list')) {
obj['123-list'] = ApiClient.convertToType(data['123-list'], 'String');
}
@@ -63,18 +54,18 @@ export default class List {
return obj;
}
/**
* @member {String} 123-list
*/
123-list = undefined;
}
/**
* @member {String} 123-list
*/
List.prototype['123-list'] = undefined;
export default List;

View File

@@ -11,51 +11,42 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The MapTest model module.
* @module model/MapTest
* @version 1.0.0
*/
export default class MapTest {
* The MapTest model module.
* @module model/MapTest
* @version 1.0.0
*/
class MapTest {
/**
* Constructs a new <code>MapTest</code>.
* @alias module:model/MapTest
* @class
*/
constructor() {
* Constructs a new <code>MapTest</code>.
* @alias module:model/MapTest
*/
constructor() {
MapTest.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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'}});
}
@@ -66,42 +57,44 @@ export default class MapTest {
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;
/**
* Allowed values for the <code>inner</code> property.
* @enum {String}
* @readonly
*/
static InnerEnum = {
/**
* value: "UPPER"
* @const
*/
"UPPER": "UPPER",
/**
* value: "lower"
* @const
*/
"lower": "lower"
};
}
/**
* @member {Object.<String, Object.<String, String>>} map_map_of_string
*/
MapTest.prototype['map_map_of_string'] = undefined;
/**
* @member {Object.<String, module:model/MapTest.InnerEnum>} map_of_enum_string
*/
MapTest.prototype['map_of_enum_string'] = undefined;
/**
* Allowed values for the <code>inner</code> property.
* @enum {String}
* @readonly
*/
MapTest['InnerEnum'] = {
/**
* value: "UPPER"
* @const
*/
"UPPER": "UPPER",
/**
* value: "lower"
* @const
*/
"lower": "lower"
};
export default MapTest;

View File

@@ -11,52 +11,43 @@
*
*/
import ApiClient from '../ApiClient';
import Animal from './Animal';
/**
* The MixedPropertiesAndAdditionalPropertiesClass model module.
* @module model/MixedPropertiesAndAdditionalPropertiesClass
* @version 1.0.0
*/
export default class MixedPropertiesAndAdditionalPropertiesClass {
* The MixedPropertiesAndAdditionalPropertiesClass model module.
* @module model/MixedPropertiesAndAdditionalPropertiesClass
* @version 1.0.0
*/
class MixedPropertiesAndAdditionalPropertiesClass {
/**
* Constructs a new <code>MixedPropertiesAndAdditionalPropertiesClass</code>.
* @alias module:model/MixedPropertiesAndAdditionalPropertiesClass
* @class
*/
constructor() {
* Constructs a new <code>MixedPropertiesAndAdditionalPropertiesClass</code>.
* @alias module:model/MixedPropertiesAndAdditionalPropertiesClass
*/
constructor() {
MixedPropertiesAndAdditionalPropertiesClass.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('uuid')) {
obj['uuid'] = ApiClient.convertToType(data['uuid'], 'String');
}
@@ -70,26 +61,28 @@ export default class MixedPropertiesAndAdditionalPropertiesClass {
return obj;
}
/**
* @member {String} uuid
*/
uuid = undefined;
/**
* @member {Date} dateTime
*/
dateTime = undefined;
/**
* @member {Object.<String, module:model/Animal>} map
*/
map = undefined;
}
/**
* @member {String} uuid
*/
MixedPropertiesAndAdditionalPropertiesClass.prototype['uuid'] = undefined;
/**
* @member {Date} dateTime
*/
MixedPropertiesAndAdditionalPropertiesClass.prototype['dateTime'] = undefined;
/**
* @member {Object.<String, module:model/Animal>} map
*/
MixedPropertiesAndAdditionalPropertiesClass.prototype['map'] = undefined;
export default MixedPropertiesAndAdditionalPropertiesClass;

View File

@@ -11,52 +11,43 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The Model200Response model module.
* @module model/Model200Response
* @version 1.0.0
*/
export default class Model200Response {
* The Model200Response model module.
* @module model/Model200Response
* @version 1.0.0
*/
class Model200Response {
/**
* Constructs a new <code>Model200Response</code>.
* Model for testing model name starting with number
* @alias module:model/Model200Response
* @class
*/
constructor() {
* Constructs a new <code>Model200Response</code>.
* Model for testing model name starting with number
* @alias module:model/Model200Response
*/
constructor() {
Model200Response.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'Number');
}
@@ -67,22 +58,23 @@ export default class Model200Response {
return obj;
}
/**
* @member {Number} name
*/
name = undefined;
/**
* @member {String} class
*/
class = undefined;
}
/**
* @member {Number} name
*/
Model200Response.prototype['name'] = undefined;
/**
* @member {String} class
*/
Model200Response.prototype['class'] = undefined;
export default Model200Response;

View File

@@ -11,52 +11,43 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The ModelReturn model module.
* @module model/ModelReturn
* @version 1.0.0
*/
export default class ModelReturn {
* The ModelReturn model module.
* @module model/ModelReturn
* @version 1.0.0
*/
class ModelReturn {
/**
* Constructs a new <code>ModelReturn</code>.
* Model for testing reserved words
* @alias module:model/ModelReturn
* @class
*/
constructor() {
* Constructs a new <code>ModelReturn</code>.
* Model for testing reserved words
* @alias module:model/ModelReturn
*/
constructor() {
ModelReturn.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('return')) {
obj['return'] = ApiClient.convertToType(data['return'], 'Number');
}
@@ -64,18 +55,18 @@ export default class ModelReturn {
return obj;
}
/**
* @member {Number} return
*/
return = undefined;
}
/**
* @member {Number} return
*/
ModelReturn.prototype['return'] = undefined;
export default ModelReturn;

View File

@@ -11,53 +11,45 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The Name model module.
* @module model/Name
* @version 1.0.0
*/
export default class Name {
* The Name model module.
* @module model/Name
* @version 1.0.0
*/
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;
* Constructs a new <code>Name</code>.
* Model for testing model name same as property name
* @alias module:model/Name
* @param name {Number}
*/
constructor(name) {
Name.initialize(this, 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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, name) {
obj['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.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new Name();
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'Number');
}
@@ -74,30 +66,33 @@ export default class Name {
return obj;
}
/**
* @member {Number} name
*/
name = undefined;
/**
* @member {Number} snake_case
*/
snake_case = undefined;
/**
* @member {String} property
*/
property = undefined;
/**
* @member {Number} 123Number
*/
123Number = undefined;
}
/**
* @member {Number} name
*/
Name.prototype['name'] = undefined;
/**
* @member {Number} snake_case
*/
Name.prototype['snake_case'] = undefined;
/**
* @member {String} property
*/
Name.prototype['property'] = undefined;
/**
* @member {Number} 123Number
*/
Name.prototype['123Number'] = undefined;
export default Name;

View File

@@ -11,51 +11,42 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The NumberOnly model module.
* @module model/NumberOnly
* @version 1.0.0
*/
export default class NumberOnly {
* The NumberOnly model module.
* @module model/NumberOnly
* @version 1.0.0
*/
class NumberOnly {
/**
* Constructs a new <code>NumberOnly</code>.
* @alias module:model/NumberOnly
* @class
*/
constructor() {
* Constructs a new <code>NumberOnly</code>.
* @alias module:model/NumberOnly
*/
constructor() {
NumberOnly.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('JustNumber')) {
obj['JustNumber'] = ApiClient.convertToType(data['JustNumber'], 'Number');
}
@@ -63,18 +54,18 @@ export default class NumberOnly {
return obj;
}
/**
* @member {Number} JustNumber
*/
JustNumber = undefined;
}
/**
* @member {Number} JustNumber
*/
NumberOnly.prototype['JustNumber'] = undefined;
export default NumberOnly;

View File

@@ -11,51 +11,42 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The Order model module.
* @module model/Order
* @version 1.0.0
*/
export default class Order {
* The Order model module.
* @module model/Order
* @version 1.0.0
*/
class Order {
/**
* Constructs a new <code>Order</code>.
* @alias module:model/Order
* @class
*/
constructor() {
* Constructs a new <code>Order</code>.
* @alias module:model/Order
*/
constructor() {
Order.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
@@ -78,66 +69,72 @@ export default class Order {
return obj;
}
/**
* @member {Number} id
*/
id = undefined;
/**
* @member {Number} petId
*/
petId = undefined;
/**
* @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;
/**
* 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"
};
}
/**
* @member {Number} id
*/
Order.prototype['id'] = undefined;
/**
* @member {Number} petId
*/
Order.prototype['petId'] = undefined;
/**
* @member {Number} quantity
*/
Order.prototype['quantity'] = undefined;
/**
* @member {Date} shipDate
*/
Order.prototype['shipDate'] = undefined;
/**
* Order Status
* @member {module:model/Order.StatusEnum} status
*/
Order.prototype['status'] = undefined;
/**
* @member {Boolean} complete
* @default false
*/
Order.prototype['complete'] = false;
/**
* Allowed values for the <code>status</code> property.
* @enum {String}
* @readonly
*/
Order['StatusEnum'] = {
/**
* value: "placed"
* @const
*/
"placed": "placed",
/**
* value: "approved"
* @const
*/
"approved": "approved",
/**
* value: "delivered"
* @const
*/
"delivered": "delivered"
};
export default Order;

View File

@@ -1,73 +0,0 @@
/**
* Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
*/
import 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() {
}
/**
* 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();
}
return obj;
}
}

View File

@@ -11,51 +11,42 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The OuterComposite model module.
* @module model/OuterComposite
* @version 1.0.0
*/
export default class OuterComposite {
* The OuterComposite model module.
* @module model/OuterComposite
* @version 1.0.0
*/
class OuterComposite {
/**
* Constructs a new <code>OuterComposite</code>.
* @alias module:model/OuterComposite
* @class
*/
constructor() {
* Constructs a new <code>OuterComposite</code>.
* @alias module:model/OuterComposite
*/
constructor() {
OuterComposite.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('my_number')) {
obj['my_number'] = 'Number'.constructFromObject(data['my_number']);
}
@@ -69,26 +60,28 @@ export default class OuterComposite {
return obj;
}
/**
* @member {Number} my_number
*/
my_number = undefined;
/**
* @member {String} my_string
*/
my_string = undefined;
/**
* @member {Boolean} my_boolean
*/
my_boolean = undefined;
}
/**
* @member {Number} my_number
*/
OuterComposite.prototype['my_number'] = undefined;
/**
* @member {String} my_string
*/
OuterComposite.prototype['my_string'] = undefined;
/**
* @member {Boolean} my_boolean
*/
OuterComposite.prototype['my_boolean'] = undefined;
export default OuterComposite;

View File

@@ -11,10 +11,7 @@
*
*/
import ApiClient from '../ApiClient';
/**
* Enum class OuterEnum.
* @enum {}
@@ -26,21 +23,21 @@ export default class OuterEnum {
* value: "placed"
* @const
*/
placed = "placed";
"placed" = "placed";
/**
* value: "approved"
* @const
*/
approved = "approved";
"approved" = "approved";
/**
* value: "delivered"
* @const
*/
delivered = "delivered";
"delivered" = "delivered";
@@ -54,4 +51,3 @@ export default class OuterEnum {
}
}

View File

@@ -1,73 +0,0 @@
/**
* Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
*/
import 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() {
}
/**
* 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();
}
return obj;
}
}

View File

@@ -1,73 +0,0 @@
/**
* Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
*/
import 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() {
}
/**
* 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();
}
return obj;
}
}

View File

@@ -11,55 +11,48 @@
*
*/
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 {
* The Pet model module.
* @module model/Pet
* @version 1.0.0
*/
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;
* Constructs a new <code>Pet</code>.
* @alias module:model/Pet
* @param name {String}
* @param photoUrls {Array.<String>}
*/
constructor(name, photoUrls) {
Pet.initialize(this, name, 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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, name, photoUrls) {
obj['name'] = name;
obj['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.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new Pet();
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
@@ -82,65 +75,71 @@ export default class Pet {
return obj;
}
/**
* @member {Number} id
*/
id = undefined;
/**
* @member {module:model/Category} category
*/
category = undefined;
/**
* @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;
/**
* 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"
};
}
/**
* @member {Number} id
*/
Pet.prototype['id'] = undefined;
/**
* @member {module:model/Category} category
*/
Pet.prototype['category'] = undefined;
/**
* @member {String} name
*/
Pet.prototype['name'] = undefined;
/**
* @member {Array.<String>} photoUrls
*/
Pet.prototype['photoUrls'] = undefined;
/**
* @member {Array.<module:model/Tag>} tags
*/
Pet.prototype['tags'] = undefined;
/**
* pet status in the store
* @member {module:model/Pet.StatusEnum} status
*/
Pet.prototype['status'] = undefined;
/**
* Allowed values for the <code>status</code> property.
* @enum {String}
* @readonly
*/
Pet['StatusEnum'] = {
/**
* value: "available"
* @const
*/
"available": "available",
/**
* value: "pending"
* @const
*/
"pending": "pending",
/**
* value: "sold"
* @const
*/
"sold": "sold"
};
export default Pet;

View File

@@ -11,51 +11,42 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The ReadOnlyFirst model module.
* @module model/ReadOnlyFirst
* @version 1.0.0
*/
export default class ReadOnlyFirst {
* The ReadOnlyFirst model module.
* @module model/ReadOnlyFirst
* @version 1.0.0
*/
class ReadOnlyFirst {
/**
* Constructs a new <code>ReadOnlyFirst</code>.
* @alias module:model/ReadOnlyFirst
* @class
*/
constructor() {
* Constructs a new <code>ReadOnlyFirst</code>.
* @alias module:model/ReadOnlyFirst
*/
constructor() {
ReadOnlyFirst.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('bar')) {
obj['bar'] = ApiClient.convertToType(data['bar'], 'String');
}
@@ -66,22 +57,23 @@ export default class ReadOnlyFirst {
return obj;
}
/**
* @member {String} bar
*/
bar = undefined;
/**
* @member {String} baz
*/
baz = undefined;
}
/**
* @member {String} bar
*/
ReadOnlyFirst.prototype['bar'] = undefined;
/**
* @member {String} baz
*/
ReadOnlyFirst.prototype['baz'] = undefined;
export default ReadOnlyFirst;

View File

@@ -11,51 +11,42 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The SpecialModelName model module.
* @module model/SpecialModelName
* @version 1.0.0
*/
export default class SpecialModelName {
* The SpecialModelName model module.
* @module model/SpecialModelName
* @version 1.0.0
*/
class SpecialModelName {
/**
* Constructs a new <code>SpecialModelName</code>.
* @alias module:model/SpecialModelName
* @class
*/
constructor() {
* Constructs a new <code>SpecialModelName</code>.
* @alias module:model/SpecialModelName
*/
constructor() {
SpecialModelName.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('$special[property.name]')) {
obj['$special[property.name]'] = ApiClient.convertToType(data['$special[property.name]'], 'Number');
}
@@ -63,18 +54,18 @@ export default class SpecialModelName {
return obj;
}
/**
* @member {Number} $special[property.name]
*/
$special[property.name] = undefined;
}
/**
* @member {Number} $special[property.name]
*/
SpecialModelName.prototype['$special[property.name]'] = undefined;
export default SpecialModelName;

View File

@@ -11,51 +11,42 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The Tag model module.
* @module model/Tag
* @version 1.0.0
*/
export default class Tag {
* The Tag model module.
* @module model/Tag
* @version 1.0.0
*/
class Tag {
/**
* Constructs a new <code>Tag</code>.
* @alias module:model/Tag
* @class
*/
constructor() {
* Constructs a new <code>Tag</code>.
* @alias module:model/Tag
*/
constructor() {
Tag.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
@@ -66,22 +57,23 @@ export default class Tag {
return obj;
}
/**
* @member {Number} id
*/
id = undefined;
/**
* @member {String} name
*/
name = undefined;
}
/**
* @member {Number} id
*/
Tag.prototype['id'] = undefined;
/**
* @member {String} name
*/
Tag.prototype['name'] = undefined;
export default Tag;

View File

@@ -11,51 +11,42 @@
*
*/
import ApiClient from '../ApiClient';
/**
* The User model module.
* @module model/User
* @version 1.0.0
*/
export default class User {
* The User model module.
* @module model/User
* @version 1.0.0
*/
class User {
/**
* Constructs a new <code>User</code>.
* @alias module:model/User
* @class
*/
constructor() {
* Constructs a new <code>User</code>.
* @alias module:model/User
*/
constructor() {
User.initialize(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.
*/
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* 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();
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
@@ -84,47 +75,54 @@ export default class User {
return obj;
}
/**
* @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;
}
/**
* @member {Number} id
*/
User.prototype['id'] = undefined;
/**
* @member {String} username
*/
User.prototype['username'] = undefined;
/**
* @member {String} firstName
*/
User.prototype['firstName'] = undefined;
/**
* @member {String} lastName
*/
User.prototype['lastName'] = undefined;
/**
* @member {String} email
*/
User.prototype['email'] = undefined;
/**
* @member {String} password
*/
User.prototype['password'] = undefined;
/**
* @member {String} phone
*/
User.prototype['phone'] = undefined;
/**
* User Status
* @member {Number} userStatus
*/
User.prototype['userStatus'] = undefined;
export default User;