ibmcloud-security-advisor-findings
Version:
JavaScript client library for the IBM Cloud Security Advisor Findings API
74 lines (58 loc) • 2 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');
var InlineResponse200Notes = require('./InlineResponse200Notes');
/**
* The ApiListNotesResponse model module.
* @module model/ApiListNotesResponse
*/
/**
* Constructs a new <code>ApiListNotesResponse</code>.
* Response including listed notes.
* @alias module:model/ApiListNotesResponse
* @class
*/
var exports = function() {
var _this = this;
};
/**
* Constructs a <code>ApiListNotesResponse</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/ApiListNotesResponse} obj Optional instance to populate.
* @return {module:model/ApiListNotesResponse} The populated <code>ApiListNotesResponse</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
if (data.hasOwnProperty('notes')) {
obj['notes'] = ApiClient.convertToType(data['notes'], [InlineResponse200Notes]);
}
if (data.hasOwnProperty('next_page_token')) {
obj['next_page_token'] = ApiClient.convertToType(data['next_page_token'], 'String');
}
}
return obj;
}
/**
* @member {Array.<module:model/InlineResponse200Notes>} notes
*/
exports.prototype['notes'] = undefined;
/**
* The next pagination token in the list response. It should be used as page_token for the following request. An empty value means no more result.
* @member {String} next_page_token
*/
exports.prototype['next_page_token'] = undefined;
module.exports = exports;