|
| 1 | +/* |
| 2 | + * Manticore Search Client |
| 3 | + * Copyright (c) 2020-2021, Manticore Software LTD (https://manticoresearch.com) |
| 4 | + * |
| 5 | + * All rights reserved |
| 6 | + */ |
| 7 | + |
| 8 | +(function(root, factory) { |
| 9 | + if (typeof define === 'function' && define.amd) { |
| 10 | + // AMD. Register as an anonymous module. |
| 11 | + define(['ApiClient'], factory); |
| 12 | + } else if (typeof module === 'object' && module.exports) { |
| 13 | + // CommonJS-like environments that support module.exports, like Node. |
| 14 | + module.exports = factory(require('../ApiClient')); |
| 15 | + } else { |
| 16 | + // Browser globals (root is window) |
| 17 | + if (!root.Manticoresearch) { |
| 18 | + root.Manticoresearch = {}; |
| 19 | + } |
| 20 | + root.Manticoresearch.ReplaceDocumentRequest = factory(root.Manticoresearch.ApiClient); |
| 21 | + } |
| 22 | +}(this, function(ApiClient) { |
| 23 | + 'use strict'; |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + /** |
| 28 | + * The ReplaceDocumentRequest model module. |
| 29 | + * @module model/ReplaceDocumentRequest |
| 30 | + * @version 4.0.0 |
| 31 | + */ |
| 32 | + |
| 33 | + /** |
| 34 | + * Constructs a new <code>ReplaceDocumentRequest</code>. |
| 35 | + * Object with document data. |
| 36 | + * @alias module:model/ReplaceDocumentRequest |
| 37 | + * @class |
| 38 | + * @param doc {Object.<String, Object>} Object with document data |
| 39 | + */ |
| 40 | + var exports = function(doc) { |
| 41 | + var _this = this; |
| 42 | + |
| 43 | + _this['doc'] = doc; |
| 44 | + }; |
| 45 | + |
| 46 | + /** |
| 47 | + * Constructs a <code>ReplaceDocumentRequest</code> from a plain JavaScript object, optionally creating a new instance. |
| 48 | + * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. |
| 49 | + * @param {Object} data The plain JavaScript object bearing properties of interest. |
| 50 | + * @param {module:model/ReplaceDocumentRequest} obj Optional instance to populate. |
| 51 | + * @return {module:model/ReplaceDocumentRequest} The populated <code>ReplaceDocumentRequest</code> instance. |
| 52 | + */ |
| 53 | + exports.constructFromObject = function(data, obj) { |
| 54 | + if (data) { |
| 55 | + obj = obj || new exports(); |
| 56 | + if (data.hasOwnProperty('doc')) { |
| 57 | + obj['doc'] = ApiClient.convertToType(data['doc'], {'String': Object}); |
| 58 | + } |
| 59 | + } |
| 60 | + return obj; |
| 61 | + } |
| 62 | + |
| 63 | + /** |
| 64 | + * Object with document data |
| 65 | + * @member {Object.<String, Object>} doc |
| 66 | + */ |
| 67 | + exports.prototype['doc'] = undefined; |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + return exports; |
| 72 | +})); |
| 73 | + |
| 74 | + |
0 commit comments