cloudmersive-virus-api-client
Version:
The_Cloudmersive_Virus_Scan_API_lets_you_scan_files_and_content_for_viruses_and_identify_security_issues_with_content_
93 lines (75 loc) • 2.61 kB
JavaScript
/**
* virusapi
* The Cloudmersive Virus Scan API lets you scan files and content for viruses and identify security issues with content.
*
* OpenAPI spec version: v1
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.3.1
*
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
if (!root.CloudmersiveVirusApiClient) {
root.CloudmersiveVirusApiClient = {};
}
root.CloudmersiveVirusApiClient.CloudStorageVirusFound = factory(root.CloudmersiveVirusApiClient.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* The CloudStorageVirusFound model module.
* @module model/CloudStorageVirusFound
* @version 1.3.0
*/
/**
* Constructs a new <code>CloudStorageVirusFound</code>.
* Virus positively identified
* @alias module:model/CloudStorageVirusFound
* @class
*/
var exports = function() {
var _this = this;
};
/**
* Constructs a <code>CloudStorageVirusFound</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/CloudStorageVirusFound} obj Optional instance to populate.
* @return {module:model/CloudStorageVirusFound} The populated <code>CloudStorageVirusFound</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
if (data.hasOwnProperty('FileName')) {
obj['FileName'] = ApiClient.convertToType(data['FileName'], 'String');
}
if (data.hasOwnProperty('VirusName')) {
obj['VirusName'] = ApiClient.convertToType(data['VirusName'], 'String');
}
}
return obj;
}
/**
* Name of the file containing the virus
* @member {String} FileName
*/
exports.prototype['FileName'] = undefined;
/**
* Name of the virus that was found
* @member {String} VirusName
*/
exports.prototype['VirusName'] = undefined;
return exports;
}));