Skip to content

Commit 31f7924

Browse files
committed
[ClientSDKs] codegen
1 parent 9c8114a commit 31f7924

22 files changed

+112
-57
lines changed

cloud_client/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ RaiCloudSdk - JavaScript client for rai_cloud_sdk
44
This is a Client SDK for RAI Cloud
55
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
66

7-
- API version: 1.0.13
8-
- Package version: 1.0.13
7+
- API version: 1.2.0
8+
- Package version: 1.2.0
99
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
1010
For more information, please visit [https://www.relational.ai/support](https://www.relational.ai/support)
1111

@@ -132,7 +132,7 @@ Class | Method | HTTP request | Description
132132

133133
## Documentation for Models
134134

135-
- [RaiCloudSdk.ComputeData](docs/ComputeData.md)
135+
- [RaiCloudSdk.ComputeInfoProtocol](docs/ComputeInfoProtocol.md)
136136
- [RaiCloudSdk.CreateComputeRequestProtocol](docs/CreateComputeRequestProtocol.md)
137137
- [RaiCloudSdk.CreateComputeResponseProtocol](docs/CreateComputeResponseProtocol.md)
138138
- [RaiCloudSdk.CreateUserRequestProtocol](docs/CreateUserRequestProtocol.md)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# RaiCloudSdk.ComputeInfoProtocol
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**accountName** | **String** | | [optional]
8+
**id** | **String** | | [optional]
9+
**createdBy** | **String** | | [optional]
10+
**name** | **String** | | [optional]
11+
**size** | **String** | | [optional]
12+
**region** | **String** | | [optional]
13+
**infrastructure** | **String** | | [optional]
14+
**state** | **String** | | [optional]
15+
**requestedOn** | **String** | | [optional]
16+
**createdOn** | **String** | | [optional]
17+
**deletedOn** | **String** | | [optional]
18+
**message** | **String** | | [optional]
19+
20+

cloud_client/docs/DefaultApi.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ No authorization required
5959

6060
## computeGet
6161

62-
> ListComputesResponseProtocol computeGet()
62+
> ListComputesResponseProtocol computeGet(opts)
6363
6464
List computes
6565

@@ -69,7 +69,13 @@ List computes
6969
import RaiCloudSdk from 'rai_cloud_sdk';
7070

7171
let apiInstance = new RaiCloudSdk.DefaultApi();
72-
apiInstance.computeGet((error, data, response) => {
72+
let opts = {
73+
'id': ["null"], // [String] |
74+
'name': ["null"], // [String] |
75+
'size': ["null"], // [String] |
76+
'state': ["null"] // [String] |
77+
};
78+
apiInstance.computeGet(opts, (error, data, response) => {
7379
if (error) {
7480
console.error(error);
7581
} else {
@@ -80,7 +86,13 @@ apiInstance.computeGet((error, data, response) => {
8086

8187
### Parameters
8288

83-
This endpoint does not need any parameter.
89+
90+
Name | Type | Description | Notes
91+
------------- | ------------- | ------------- | -------------
92+
**id** | [**[String]**](String.md)| | [optional]
93+
**name** | [**[String]**](String.md)| | [optional]
94+
**size** | [**[String]**](String.md)| | [optional]
95+
**state** | [**[String]**](String.md)| | [optional]
8496

8597
### Return type
8698

cloud_client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rai_cloud_sdk",
3-
"version": "1.0.13",
3+
"version": "1.2.0",
44
"description": "This_is_a_Client_SDK_for_RAI_Cloud",
55
"license": "Apache 2.0",
66
"main": "dist/index.js",

cloud_client/src/ApiClient.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* RAI Cloud SDK
33
* This is a Client SDK for RAI Cloud
44
*
5-
* The version of the OpenAPI document: 1.0.13
5+
* The version of the OpenAPI document: 1.2.0
66
* Contact: support@relational.ai
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -17,7 +17,7 @@ import querystring from "querystring";
1717

1818
/**
1919
* @module ApiClient
20-
* @version 1.0.13
20+
* @version 1.2.0
2121
*/
2222

2323
/**

cloud_client/src/api/DefaultApi.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* RAI Cloud SDK
33
* This is a Client SDK for RAI Cloud
44
*
5-
* The version of the OpenAPI document: 1.0.13
5+
* The version of the OpenAPI document: 1.2.0
66
* Contact: support@relational.ai
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -27,7 +27,7 @@ import UpdateDatabaseRequestProtocol from '../model/UpdateDatabaseRequestProtoco
2727
/**
2828
* Default service.
2929
* @module api/DefaultApi
30-
* @version 1.0.13
30+
* @version 1.2.0
3131
*/
3232
export default class DefaultApi {
3333

@@ -94,15 +94,25 @@ export default class DefaultApi {
9494

9595
/**
9696
* List computes
97+
* @param {Object} opts Optional parameters
98+
* @param {Array.<String>} opts.id
99+
* @param {Array.<String>} opts.name
100+
* @param {Array.<String>} opts.size
101+
* @param {Array.<String>} opts.state
97102
* @param {module:api/DefaultApi~computeGetCallback} callback The callback function, accepting three arguments: error, data, response
98103
* data is of type: {@link module:model/ListComputesResponseProtocol}
99104
*/
100-
computeGet(callback) {
105+
computeGet(opts, callback) {
106+
opts = opts || {};
101107
let postBody = null;
102108

103109
let pathParams = {
104110
};
105111
let queryParams = {
112+
'id': this.apiClient.buildCollectionParam(opts['id'], 'multi'),
113+
'name': this.apiClient.buildCollectionParam(opts['name'], 'multi'),
114+
'size': this.apiClient.buildCollectionParam(opts['size'], 'multi'),
115+
'state': this.apiClient.buildCollectionParam(opts['state'], 'multi')
106116
};
107117
let headerParams = {
108118
};

cloud_client/src/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* RAI Cloud SDK
33
* This is a Client SDK for RAI Cloud
44
*
5-
* The version of the OpenAPI document: 1.0.13
5+
* The version of the OpenAPI document: 1.2.0
66
* Contact: support@relational.ai
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,7 +13,7 @@
1313

1414

1515
import ApiClient from './ApiClient';
16-
import ComputeData from './model/ComputeData';
16+
import ComputeInfoProtocol from './model/ComputeInfoProtocol';
1717
import CreateComputeRequestProtocol from './model/CreateComputeRequestProtocol';
1818
import CreateComputeResponseProtocol from './model/CreateComputeResponseProtocol';
1919
import CreateUserRequestProtocol from './model/CreateUserRequestProtocol';
@@ -59,7 +59,7 @@ import DefaultApi from './api/DefaultApi';
5959
* </pre>
6060
* </p>
6161
* @module index
62-
* @version 1.0.13
62+
* @version 1.2.0
6363
*/
6464
export {
6565
/**
@@ -69,10 +69,10 @@ export {
6969
ApiClient,
7070

7171
/**
72-
* The ComputeData model constructor.
73-
* @property {module:model/ComputeData}
72+
* The ComputeInfoProtocol model constructor.
73+
* @property {module:model/ComputeInfoProtocol}
7474
*/
75-
ComputeData,
75+
ComputeInfoProtocol,
7676

7777
/**
7878
* The CreateComputeRequestProtocol model constructor.
File renamed without changes.

cloud_client/src/model/CreateComputeRequestProtocol.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class CreateComputeRequestProtocol {
2323
* Constructs a new <code>CreateComputeRequestProtocol</code>.
2424
* @alias module:model/CreateComputeRequestProtocol
2525
*/
26-
constructor() {
27-
26+
constructor() {
27+
2828
CreateComputeRequestProtocol.initialize(this);
2929
}
3030

@@ -33,7 +33,7 @@ class CreateComputeRequestProtocol {
3333
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
3434
* Only for internal use.
3535
*/
36-
static initialize(obj) {
36+
static initialize(obj) {
3737
}
3838

3939
/**
@@ -92,3 +92,4 @@ CreateComputeRequestProtocol.prototype['dryrun'] = undefined;
9292

9393

9494
export default CreateComputeRequestProtocol;
95+

cloud_client/src/model/CreateComputeResponseProtocol.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class CreateComputeResponseProtocol {
2424
* Constructs a new <code>CreateComputeResponseProtocol</code>.
2525
* @alias module:model/CreateComputeResponseProtocol
2626
*/
27-
constructor() {
28-
27+
constructor() {
28+
2929
CreateComputeResponseProtocol.initialize(this);
3030
}
3131

@@ -34,7 +34,7 @@ class CreateComputeResponseProtocol {
3434
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
3535
* Only for internal use.
3636
*/
37-
static initialize(obj) {
37+
static initialize(obj) {
3838
}
3939

4040
/**
@@ -69,3 +69,4 @@ CreateComputeResponseProtocol.prototype['compute'] = undefined;
6969

7070

7171
export default CreateComputeResponseProtocol;
72+

0 commit comments

Comments
 (0)