Skip to content

Commit 751e096

Browse files
committed
[ClientSDKs] Generated code for status action
1 parent 36e39ae commit 751e096

File tree

8 files changed

+300
-0
lines changed

8 files changed

+300
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ Class | Method | HTTP request | Description
189189
- [DelveClientSdk.SetOptionsAction](docs/SetOptionsAction.md)
190190
- [DelveClientSdk.SetOptionsActionResult](docs/SetOptionsActionResult.md)
191191
- [DelveClientSdk.Source](docs/Source.md)
192+
- [DelveClientSdk.StatusAction](docs/StatusAction.md)
193+
- [DelveClientSdk.StatusActionResult](docs/StatusActionResult.md)
192194
- [DelveClientSdk.SyntaxError](docs/SyntaxError.md)
193195
- [DelveClientSdk.SyntaxNode](docs/SyntaxNode.md)
194196
- [DelveClientSdk.Token](docs/Token.md)

docs/StatusAction.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# DelveClientSdk.StatusAction
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
8+

docs/StatusActionResult.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# DelveClientSdk.StatusActionResult
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
8+

src/index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ import S3Integration from './model/S3Integration';
7676
import SetOptionsAction from './model/SetOptionsAction';
7777
import SetOptionsActionResult from './model/SetOptionsActionResult';
7878
import Source from './model/Source';
79+
import StatusAction from './model/StatusAction';
80+
import StatusActionResult from './model/StatusActionResult';
7981
import SyntaxError from './model/SyntaxError';
8082
import SyntaxNode from './model/SyntaxNode';
8183
import Token from './model/Token';
@@ -504,6 +506,18 @@ export {
504506
*/
505507
Source,
506508

509+
/**
510+
* The StatusAction model constructor.
511+
* @property {module:model/StatusAction}
512+
*/
513+
StatusAction,
514+
515+
/**
516+
* The StatusActionResult model constructor.
517+
* @property {module:model/StatusActionResult}
518+
*/
519+
StatusActionResult,
520+
507521
/**
508522
* The SyntaxError model constructor.
509523
* @property {module:model/SyntaxError}

src/model/StatusAction.js

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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 Action from './Action';
16+
17+
/**
18+
* The StatusAction model module.
19+
* @module model/StatusAction
20+
* @version 1.0.9
21+
*/
22+
class StatusAction {
23+
/**
24+
* Constructs a new <code>StatusAction</code>.
25+
* @alias module:model/StatusAction
26+
* @extends module:model/Action
27+
* @implements module:model/Action
28+
* @param type {String}
29+
*/
30+
constructor(type) {
31+
Action.initialize(this, type);
32+
StatusAction.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+
}
42+
43+
/**
44+
* Constructs a <code>StatusAction</code> from a plain JavaScript object, optionally creating a new instance.
45+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
46+
* @param {Object} data The plain JavaScript object bearing properties of interest.
47+
* @param {module:model/StatusAction} obj Optional instance to populate.
48+
* @return {module:model/StatusAction} The populated <code>StatusAction</code> instance.
49+
*/
50+
static constructFromObject(data, obj) {
51+
if (data) {
52+
obj = obj || new StatusAction();
53+
Action.constructFromObject(data, obj);
54+
Action.constructFromObject(data, obj);
55+
56+
}
57+
return obj;
58+
}
59+
60+
61+
}
62+
63+
64+
// Implement Action interface:
65+
/**
66+
* @member {String} type
67+
* @default ''
68+
*/
69+
Action.prototype['type'] = '';
70+
71+
72+
73+
74+
export default StatusAction;
75+

src/model/StatusActionResult.js

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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 ActionResult from './ActionResult';
16+
17+
/**
18+
* The StatusActionResult model module.
19+
* @module model/StatusActionResult
20+
* @version 1.0.9
21+
*/
22+
class StatusActionResult {
23+
/**
24+
* Constructs a new <code>StatusActionResult</code>.
25+
* @alias module:model/StatusActionResult
26+
* @extends module:model/ActionResult
27+
* @implements module:model/ActionResult
28+
* @param type {String}
29+
*/
30+
constructor(type) {
31+
ActionResult.initialize(this, type);
32+
StatusActionResult.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+
}
42+
43+
/**
44+
* Constructs a <code>StatusActionResult</code> from a plain JavaScript object, optionally creating a new instance.
45+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
46+
* @param {Object} data The plain JavaScript object bearing properties of interest.
47+
* @param {module:model/StatusActionResult} obj Optional instance to populate.
48+
* @return {module:model/StatusActionResult} The populated <code>StatusActionResult</code> instance.
49+
*/
50+
static constructFromObject(data, obj) {
51+
if (data) {
52+
obj = obj || new StatusActionResult();
53+
ActionResult.constructFromObject(data, obj);
54+
ActionResult.constructFromObject(data, obj);
55+
56+
}
57+
return obj;
58+
}
59+
60+
61+
}
62+
63+
64+
// Implement ActionResult interface:
65+
/**
66+
* @member {String} type
67+
* @default ''
68+
*/
69+
ActionResult.prototype['type'] = '';
70+
71+
72+
73+
74+
export default StatusActionResult;
75+

test/model/StatusAction.spec.js

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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.StatusAction();
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('StatusAction', function() {
51+
it('should create an instance of StatusAction', function() {
52+
// uncomment below and update the code to test StatusAction
53+
//var instane = new DelveClientSdk.StatusAction();
54+
//expect(instance).to.be.a(DelveClientSdk.StatusAction);
55+
});
56+
57+
});
58+
59+
}));
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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.StatusActionResult();
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('StatusActionResult', function() {
51+
it('should create an instance of StatusActionResult', function() {
52+
// uncomment below and update the code to test StatusActionResult
53+
//var instane = new DelveClientSdk.StatusActionResult();
54+
//expect(instance).to.be.a(DelveClientSdk.StatusActionResult);
55+
});
56+
57+
});
58+
59+
}));

0 commit comments

Comments
 (0)