forked from loafle/openapi-generator-original
* mark js es5 deprecated, remove samples, migrate samples to use oas3 * update test in pom.xml * update js samples * delete js es5 samples * update js petstore * remove openapi3 js petstore * fix tests * skip test/model/AdditionalPropertiesArray.spec.js * fix test * update doc
84 lines
2.4 KiB
JavaScript
84 lines
2.4 KiB
JavaScript
/**
|
|
* OpenAPI 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: \" \\
|
|
*
|
|
* The version of the OpenAPI document: 1.0.0
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*
|
|
*/
|
|
|
|
import ApiClient from '../ApiClient';
|
|
|
|
/**
|
|
* The InlineObject5 model module.
|
|
* @module model/InlineObject5
|
|
* @version 1.0.0
|
|
*/
|
|
class InlineObject5 {
|
|
/**
|
|
* Constructs a new <code>InlineObject5</code>.
|
|
* @alias module:model/InlineObject5
|
|
* @param requiredFile {File} file to upload
|
|
*/
|
|
constructor(requiredFile) {
|
|
|
|
InlineObject5.initialize(this, requiredFile);
|
|
}
|
|
|
|
/**
|
|
* 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, requiredFile) {
|
|
obj['requiredFile'] = requiredFile;
|
|
}
|
|
|
|
/**
|
|
* Constructs a <code>InlineObject5</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/InlineObject5} obj Optional instance to populate.
|
|
* @return {module:model/InlineObject5} The populated <code>InlineObject5</code> instance.
|
|
*/
|
|
static constructFromObject(data, obj) {
|
|
if (data) {
|
|
obj = obj || new InlineObject5();
|
|
|
|
if (data.hasOwnProperty('additionalMetadata')) {
|
|
obj['additionalMetadata'] = ApiClient.convertToType(data['additionalMetadata'], 'String');
|
|
}
|
|
if (data.hasOwnProperty('requiredFile')) {
|
|
obj['requiredFile'] = ApiClient.convertToType(data['requiredFile'], File);
|
|
}
|
|
}
|
|
return obj;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
/**
|
|
* Additional data to pass to server
|
|
* @member {String} additionalMetadata
|
|
*/
|
|
InlineObject5.prototype['additionalMetadata'] = undefined;
|
|
|
|
/**
|
|
* file to upload
|
|
* @member {File} requiredFile
|
|
*/
|
|
InlineObject5.prototype['requiredFile'] = undefined;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default InlineObject5;
|
|
|