ibmcloud-security-advisor-findings
Version:
JavaScript client library for the IBM Cloud Security Advisor Findings API
85 lines (70 loc) • 1.99 kB
JavaScript
/**
* Findings API
* The Findings API
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.7
*
* Do not edit the class manually.
*
*/
var ApiClient = require('../ApiClient');
/**
* The Reporter model module.
* @module model/Reporter
*/
/**
* Constructs a new <code>Reporter</code>.
* The entity reporting a note
* @alias module:model/Reporter
* @class
* @param id {String} The id of this reporter
* @param title {String} The title of this reporter
*/
var exports = function(id, title) {
var _this = this;
_this['id'] = id;
_this['title'] = title;
};
/**
* Constructs a <code>Reporter</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/Reporter} obj Optional instance to populate.
* @return {module:model/Reporter} The populated <code>Reporter</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'String');
}
if (data.hasOwnProperty('title')) {
obj['title'] = ApiClient.convertToType(data['title'], 'String');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
}
return obj;
}
/**
* The id of this reporter
* @member {String} id
*/
exports.prototype['id'] = undefined;
/**
* The title of this reporter
* @member {String} title
*/
exports.prototype['title'] = undefined;
/**
* The url of this reporter
* @member {String} url
*/
exports.prototype['url'] = undefined;
module.exports = exports;