Skip to content

Commit 7d3b4a9

Browse files
author
David Bach
committed
[ClientSDKs] Generate client sdks
1 parent 751e096 commit 7d3b4a9

File tree

5 files changed

+167
-8
lines changed

5 files changed

+167
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ Class | Method | HTTP request | Description
169169
- [DelveClientSdk.LoadData](docs/LoadData.md)
170170
- [DelveClientSdk.LoadDataAction](docs/LoadDataAction.md)
171171
- [DelveClientSdk.LoadDataActionResult](docs/LoadDataActionResult.md)
172-
- [DelveClientSdk.LoadDataProblem](docs/LoadDataProblem.md)
173172
- [DelveClientSdk.ModifyWorkspaceAction](docs/ModifyWorkspaceAction.md)
174173
- [DelveClientSdk.ModifyWorkspaceActionResult](docs/ModifyWorkspaceActionResult.md)
175174
- [DelveClientSdk.Nil](docs/Nil.md)
@@ -191,6 +190,7 @@ Class | Method | HTTP request | Description
191190
- [DelveClientSdk.Source](docs/Source.md)
192191
- [DelveClientSdk.StatusAction](docs/StatusAction.md)
193192
- [DelveClientSdk.StatusActionResult](docs/StatusActionResult.md)
193+
- [DelveClientSdk.StorageProblem](docs/StorageProblem.md)
194194
- [DelveClientSdk.SyntaxError](docs/SyntaxError.md)
195195
- [DelveClientSdk.SyntaxNode](docs/SyntaxNode.md)
196196
- [DelveClientSdk.Token](docs/Token.md)

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/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ import Literal from './model/Literal';
5656
import LoadData from './model/LoadData';
5757
import LoadDataAction from './model/LoadDataAction';
5858
import LoadDataActionResult from './model/LoadDataActionResult';
59-
import LoadDataProblem from './model/LoadDataProblem';
6059
import ModifyWorkspaceAction from './model/ModifyWorkspaceAction';
6160
import ModifyWorkspaceActionResult from './model/ModifyWorkspaceActionResult';
6261
import Nil from './model/Nil';
@@ -78,6 +77,7 @@ import SetOptionsActionResult from './model/SetOptionsActionResult';
7877
import Source from './model/Source';
7978
import StatusAction from './model/StatusAction';
8079
import StatusActionResult from './model/StatusActionResult';
80+
import StorageProblem from './model/StorageProblem';
8181
import SyntaxError from './model/SyntaxError';
8282
import SyntaxNode from './model/SyntaxNode';
8383
import Token from './model/Token';
@@ -386,12 +386,6 @@ export {
386386
*/
387387
LoadDataActionResult,
388388

389-
/**
390-
* The LoadDataProblem model constructor.
391-
* @property {module:model/LoadDataProblem}
392-
*/
393-
LoadDataProblem,
394-
395389
/**
396390
* The ModifyWorkspaceAction model constructor.
397391
* @property {module:model/ModifyWorkspaceAction}
@@ -518,6 +512,12 @@ export {
518512
*/
519513
StatusActionResult,
520514

515+
/**
516+
* The StorageProblem model constructor.
517+
* @property {module:model/StorageProblem}
518+
*/
519+
StorageProblem,
520+
521521
/**
522522
* The SyntaxError model constructor.
523523
* @property {module:model/SyntaxError}

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)