Skip to content

Commit ac9aa86

Browse files
committed
Merge branch 'master' into md-javascript-client-sdk
# Conflicts: # incubator/ClientSDKs/javascript-client-sdk/README.md
2 parents 2425961 + 7d3b4a9 commit ac9aa86

File tree

4 files changed

+166
-7
lines changed

4 files changed

+166
-7
lines changed

client/src/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ import Literal from './model/Literal';
5757
import LoadData from './model/LoadData';
5858
import LoadDataAction from './model/LoadDataAction';
5959
import LoadDataActionResult from './model/LoadDataActionResult';
60-
import LoadDataProblem from './model/LoadDataProblem';
6160
import ModifyWorkspaceAction from './model/ModifyWorkspaceAction';
6261
import ModifyWorkspaceActionResult from './model/ModifyWorkspaceActionResult';
6362
import Nil from './model/Nil';
@@ -79,6 +78,7 @@ import SetOptionsActionResult from './model/SetOptionsActionResult';
7978
import Source from './model/Source';
8079
import StatusAction from './model/StatusAction';
8180
import StatusActionResult from './model/StatusActionResult';
81+
import StorageProblem from './model/StorageProblem';
8282
import SyntaxError from './model/SyntaxError';
8383
import SyntaxNode from './model/SyntaxNode';
8484
import Token from './model/Token';
@@ -389,12 +389,6 @@ export {
389389
*/
390390
LoadDataActionResult,
391391

392-
/**
393-
* The LoadDataProblem model constructor.
394-
* @property {module:model/LoadDataProblem}
395-
*/
396-
LoadDataProblem,
397-
398392
/**
399393
* The ModifyWorkspaceAction model constructor.
400394
* @property {module:model/ModifyWorkspaceAction}
@@ -521,6 +515,12 @@ export {
521515
*/
522516
StatusActionResult,
523517

518+
/**
519+
* The StorageProblem model constructor.
520+
* @property {module:model/StorageProblem}
521+
*/
522+
StorageProblem,
523+
524524
/**
525525
* The SyntaxError model constructor.
526526
* @property {module:model/SyntaxError}

docs/StorageProblem.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# DelveClientSdk.StorageProblem
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**exception** | **String** | | [default to '']
8+
9+

src/model/StorageProblem.js

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
/**
2+
* Delve Client SDK
3+
* This is a Client SDK for Delve API
4+
*
5+
* The version of the OpenAPI document: 1.0.9
6+
* Contact: support@relational.ai
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*
12+
*/
13+
14+
import ApiClient from '../ApiClient';
15+
import AbstractProblem from './AbstractProblem';
16+
17+
/**
18+
* The StorageProblem model module.
19+
* @module model/StorageProblem
20+
* @version 1.0.9
21+
*/
22+
class StorageProblem {
23+
/**
24+
* Constructs a new <code>StorageProblem</code>.
25+
* @alias module:model/StorageProblem
26+
* @extends module:model/AbstractProblem
27+
* @implements module:model/AbstractProblem
28+
* @param type {String}
29+
*/
30+
constructor(type) {
31+
AbstractProblem.initialize(this, type);
32+
StorageProblem.initialize(this, type);
33+
}
34+
35+
/**
36+
* Initializes the fields of this object.
37+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
38+
* Only for internal use.
39+
*/
40+
static initialize(obj, type) {
41+
obj['exception'] = exception || '';
42+
}
43+
44+
/**
45+
* Constructs a <code>StorageProblem</code> from a plain JavaScript object, optionally creating a new instance.
46+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
47+
* @param {Object} data The plain JavaScript object bearing properties of interest.
48+
* @param {module:model/StorageProblem} obj Optional instance to populate.
49+
* @return {module:model/StorageProblem} The populated <code>StorageProblem</code> instance.
50+
*/
51+
static constructFromObject(data, obj) {
52+
if (data) {
53+
obj = obj || new StorageProblem();
54+
AbstractProblem.constructFromObject(data, obj);
55+
AbstractProblem.constructFromObject(data, obj);
56+
57+
if (data.hasOwnProperty('exception')) {
58+
obj['exception'] = ApiClient.convertToType(data['exception'], 'String');
59+
}
60+
}
61+
return obj;
62+
}
63+
64+
65+
}
66+
67+
/**
68+
* @member {String} exception
69+
* @default ''
70+
*/
71+
StorageProblem.prototype['exception'] = '';
72+
73+
74+
// Implement AbstractProblem interface:
75+
/**
76+
* @member {String} type
77+
* @default ''
78+
*/
79+
AbstractProblem.prototype['type'] = '';
80+
81+
82+
83+
84+
export default StorageProblem;
85+

test/model/StorageProblem.spec.js

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/**
2+
* Delve Client SDK
3+
* This is a Client SDK for Delve API
4+
*
5+
* The version of the OpenAPI document: 1.0.9
6+
* Contact: support@relational.ai
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*
12+
*/
13+
14+
(function(root, factory) {
15+
if (typeof define === 'function' && define.amd) {
16+
// AMD.
17+
define(['expect.js', process.cwd()+'/src/index'], factory);
18+
} else if (typeof module === 'object' && module.exports) {
19+
// CommonJS-like environments that support module.exports, like Node.
20+
factory(require('expect.js'), require(process.cwd()+'/src/index'));
21+
} else {
22+
// Browser globals (root is window)
23+
factory(root.expect, root.DelveClientSdk);
24+
}
25+
}(this, function(expect, DelveClientSdk) {
26+
'use strict';
27+
28+
var instance;
29+
30+
beforeEach(function() {
31+
instance = new DelveClientSdk.StorageProblem();
32+
});
33+
34+
var getProperty = function(object, getter, property) {
35+
// Use getter method if present; otherwise, get the property directly.
36+
if (typeof object[getter] === 'function')
37+
return object[getter]();
38+
else
39+
return object[property];
40+
}
41+
42+
var setProperty = function(object, setter, property, value) {
43+
// Use setter method if present; otherwise, set the property directly.
44+
if (typeof object[setter] === 'function')
45+
object[setter](value);
46+
else
47+
object[property] = value;
48+
}
49+
50+
describe('StorageProblem', function() {
51+
it('should create an instance of StorageProblem', function() {
52+
// uncomment below and update the code to test StorageProblem
53+
//var instane = new DelveClientSdk.StorageProblem();
54+
//expect(instance).to.be.a(DelveClientSdk.StorageProblem);
55+
});
56+
57+
it('should have the property exception (base name: "exception")', function() {
58+
// uncomment below and update the code to test the property exception
59+
//var instane = new DelveClientSdk.StorageProblem();
60+
//expect(instance).to.be();
61+
});
62+
63+
});
64+
65+
}));

0 commit comments

Comments
 (0)