Skip to content

Commit f23031f

Browse files
committed
add new files for JS
1 parent 2104ef3 commit f23031f

File tree

9 files changed

+418
-0
lines changed

9 files changed

+418
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SwaggerPetstore.Animal
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**className** | **String** | |
7+
8+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SwaggerPetstore.Cat
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**declawed** | **Boolean** | | [optional]
7+
8+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SwaggerPetstore.Dog
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**breed** | **String** | | [optional]
7+
8+
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
(function(root, factory) {
2+
if (typeof define === 'function' && define.amd) {
3+
// AMD. Register as an anonymous module.
4+
define(['../ApiClient'], factory);
5+
} else if (typeof module === 'object' && module.exports) {
6+
// CommonJS-like environments that support module.exports, like Node.
7+
module.exports = factory(require('../ApiClient'));
8+
} else {
9+
// Browser globals (root is window)
10+
if (!root.SwaggerPetstore) {
11+
root.SwaggerPetstore = {};
12+
}
13+
root.SwaggerPetstore.Animal = factory(root.SwaggerPetstore.ApiClient);
14+
}
15+
}(this, function(ApiClient) {
16+
'use strict';
17+
18+
/**
19+
* The Animal model module.
20+
* @module model/Animal
21+
* @version 1.0.0
22+
*/
23+
24+
/**
25+
* Constructs a new <code>Animal</code>.
26+
* @alias module:model/Animal
27+
* @class
28+
* @param className
29+
*/
30+
var exports = function(className) {
31+
32+
this['className'] = className;
33+
};
34+
35+
/**
36+
* Constructs a <code>Animal</code> from a plain JavaScript object, optionally creating a new instance.
37+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
38+
* @param {Object} data The plain JavaScript object bearing properties of interest.
39+
* @param {module:model/Animal} obj Optional instance to populate.
40+
* @return {module:model/Animal} The populated <code>Animal</code> instance.
41+
*/
42+
exports.constructFromObject = function(data, obj) {
43+
if (data) {
44+
obj = obj || new exports();
45+
46+
if (data.hasOwnProperty('className')) {
47+
obj['className'] = ApiClient.convertToType(data['className'], 'String');
48+
}
49+
}
50+
return obj;
51+
}
52+
53+
54+
/**
55+
* @member {String} className
56+
*/
57+
exports.prototype['className'] = undefined;
58+
59+
60+
61+
62+
return exports;
63+
}));
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
(function(root, factory) {
2+
if (typeof define === 'function' && define.amd) {
3+
// AMD. Register as an anonymous module.
4+
define(['../ApiClient', './Animal'], factory);
5+
} else if (typeof module === 'object' && module.exports) {
6+
// CommonJS-like environments that support module.exports, like Node.
7+
module.exports = factory(require('../ApiClient'), require('./Animal'));
8+
} else {
9+
// Browser globals (root is window)
10+
if (!root.SwaggerPetstore) {
11+
root.SwaggerPetstore = {};
12+
}
13+
root.SwaggerPetstore.Cat = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Animal);
14+
}
15+
}(this, function(ApiClient, Animal) {
16+
'use strict';
17+
18+
/**
19+
* The Cat model module.
20+
* @module model/Cat
21+
* @version 1.0.0
22+
*/
23+
24+
/**
25+
* Constructs a new <code>Cat</code>.
26+
* @alias module:model/Cat
27+
* @class
28+
* @extends module:model/Animal
29+
* @param className
30+
*/
31+
var exports = function(className) {
32+
Animal.call(this, className);
33+
34+
};
35+
36+
/**
37+
* Constructs a <code>Cat</code> from a plain JavaScript object, optionally creating a new instance.
38+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
39+
* @param {Object} data The plain JavaScript object bearing properties of interest.
40+
* @param {module:model/Cat} obj Optional instance to populate.
41+
* @return {module:model/Cat} The populated <code>Cat</code> instance.
42+
*/
43+
exports.constructFromObject = function(data, obj) {
44+
if (data) {
45+
obj = obj || new exports();
46+
Animal.constructFromObject(data, obj);
47+
if (data.hasOwnProperty('declawed')) {
48+
obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean');
49+
}
50+
}
51+
return obj;
52+
}
53+
54+
exports.prototype = Object.create(Animal.prototype);
55+
exports.prototype.constructor = exports;
56+
57+
58+
/**
59+
* @member {Boolean} declawed
60+
*/
61+
exports.prototype['declawed'] = undefined;
62+
63+
64+
65+
66+
return exports;
67+
}));
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
(function(root, factory) {
2+
if (typeof define === 'function' && define.amd) {
3+
// AMD. Register as an anonymous module.
4+
define(['../ApiClient', './Animal'], factory);
5+
} else if (typeof module === 'object' && module.exports) {
6+
// CommonJS-like environments that support module.exports, like Node.
7+
module.exports = factory(require('../ApiClient'), require('./Animal'));
8+
} else {
9+
// Browser globals (root is window)
10+
if (!root.SwaggerPetstore) {
11+
root.SwaggerPetstore = {};
12+
}
13+
root.SwaggerPetstore.Dog = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Animal);
14+
}
15+
}(this, function(ApiClient, Animal) {
16+
'use strict';
17+
18+
/**
19+
* The Dog model module.
20+
* @module model/Dog
21+
* @version 1.0.0
22+
*/
23+
24+
/**
25+
* Constructs a new <code>Dog</code>.
26+
* @alias module:model/Dog
27+
* @class
28+
* @extends module:model/Animal
29+
* @param className
30+
*/
31+
var exports = function(className) {
32+
Animal.call(this, className);
33+
34+
};
35+
36+
/**
37+
* Constructs a <code>Dog</code> from a plain JavaScript object, optionally creating a new instance.
38+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
39+
* @param {Object} data The plain JavaScript object bearing properties of interest.
40+
* @param {module:model/Dog} obj Optional instance to populate.
41+
* @return {module:model/Dog} The populated <code>Dog</code> instance.
42+
*/
43+
exports.constructFromObject = function(data, obj) {
44+
if (data) {
45+
obj = obj || new exports();
46+
Animal.constructFromObject(data, obj);
47+
if (data.hasOwnProperty('breed')) {
48+
obj['breed'] = ApiClient.convertToType(data['breed'], 'String');
49+
}
50+
}
51+
return obj;
52+
}
53+
54+
exports.prototype = Object.create(Animal.prototype);
55+
exports.prototype.constructor = exports;
56+
57+
58+
/**
59+
* @member {String} breed
60+
*/
61+
exports.prototype['breed'] = undefined;
62+
63+
64+
65+
66+
return exports;
67+
}));
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
(function(root, factory) {
2+
if (typeof define === 'function' && define.amd) {
3+
// AMD. Register as an anonymous module.
4+
define(['../ApiClient'], factory);
5+
} else if (typeof module === 'object' && module.exports) {
6+
// CommonJS-like environments that support module.exports, like Node.
7+
module.exports = factory(require('../ApiClient'));
8+
} else {
9+
// Browser globals (root is window)
10+
if (!root.SwaggerPetstore) {
11+
root.SwaggerPetstore = {};
12+
}
13+
root.SwaggerPetstore.Animal = factory(root.SwaggerPetstore.ApiClient);
14+
}
15+
}(this, function(ApiClient) {
16+
'use strict';
17+
18+
/**
19+
* The Animal model module.
20+
* @module model/Animal
21+
* @version 1.0.0
22+
*/
23+
24+
/**
25+
* Constructs a new <code>Animal</code>.
26+
* @alias module:model/Animal
27+
* @class
28+
* @param className
29+
*/
30+
var exports = function(className) {
31+
32+
this['className'] = className;
33+
};
34+
35+
/**
36+
* Constructs a <code>Animal</code> from a plain JavaScript object, optionally creating a new instance.
37+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
38+
* @param {Object} data The plain JavaScript object bearing properties of interest.
39+
* @param {module:model/Animal} obj Optional instance to populate.
40+
* @return {module:model/Animal} The populated <code>Animal</code> instance.
41+
*/
42+
exports.constructFromObject = function(data, obj) {
43+
if (data) {
44+
obj = obj || new exports();
45+
46+
if (data.hasOwnProperty('className')) {
47+
obj['className'] = ApiClient.convertToType(data['className'], 'String');
48+
}
49+
}
50+
return obj;
51+
}
52+
53+
54+
/**
55+
* @member {String} className
56+
*/
57+
exports.prototype['className'] = undefined;
58+
59+
60+
61+
62+
return exports;
63+
}));
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
(function(root, factory) {
2+
if (typeof define === 'function' && define.amd) {
3+
// AMD. Register as an anonymous module.
4+
define(['../ApiClient', './Animal'], factory);
5+
} else if (typeof module === 'object' && module.exports) {
6+
// CommonJS-like environments that support module.exports, like Node.
7+
module.exports = factory(require('../ApiClient'), require('./Animal'));
8+
} else {
9+
// Browser globals (root is window)
10+
if (!root.SwaggerPetstore) {
11+
root.SwaggerPetstore = {};
12+
}
13+
root.SwaggerPetstore.Cat = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Animal);
14+
}
15+
}(this, function(ApiClient, Animal) {
16+
'use strict';
17+
18+
/**
19+
* The Cat model module.
20+
* @module model/Cat
21+
* @version 1.0.0
22+
*/
23+
24+
/**
25+
* Constructs a new <code>Cat</code>.
26+
* @alias module:model/Cat
27+
* @class
28+
* @extends module:model/Animal
29+
* @param className
30+
*/
31+
var exports = function(className) {
32+
Animal.call(this, className);
33+
34+
};
35+
36+
/**
37+
* Constructs a <code>Cat</code> from a plain JavaScript object, optionally creating a new instance.
38+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
39+
* @param {Object} data The plain JavaScript object bearing properties of interest.
40+
* @param {module:model/Cat} obj Optional instance to populate.
41+
* @return {module:model/Cat} The populated <code>Cat</code> instance.
42+
*/
43+
exports.constructFromObject = function(data, obj) {
44+
if (data) {
45+
obj = obj || new exports();
46+
Animal.constructFromObject(data, obj);
47+
if (data.hasOwnProperty('declawed')) {
48+
obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean');
49+
}
50+
}
51+
return obj;
52+
}
53+
54+
exports.prototype = Object.create(Animal.prototype);
55+
exports.prototype.constructor = exports;
56+
57+
58+
/**
59+
* @member {Boolean} declawed
60+
*/
61+
exports.prototype['declawed'] = undefined;
62+
63+
64+
65+
66+
return exports;
67+
}));

0 commit comments

Comments
 (0)