@nestbox-ai/admin 1.0.42 → 1.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +3 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +9 -2
- package/api.ts +387 -0
- package/common.ts +4 -4
- package/dist/api.d.ts +219 -0
- package/dist/api.js +310 -0
- package/dist/esm/api.d.ts +219 -0
- package/dist/esm/api.js +310 -0
- package/docs/BenchmarkingDatapointDto.md +22 -0
- package/docs/BenchmarkingReportsDto.md +22 -0
- package/docs/MachineAgentLogsApi.md +65 -0
- package/docs/MachineInstancesApi.md +177 -0
- package/docs/MachineStatusDto.md +24 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -12,6 +12,8 @@ docs/AllProjectResponse.md
|
|
|
12
12
|
docs/AllProjectResponseModel.md
|
|
13
13
|
docs/AuthApi.md
|
|
14
14
|
docs/BadRequestExceptionResponse.md
|
|
15
|
+
docs/BenchmarkingDatapointDto.md
|
|
16
|
+
docs/BenchmarkingReportsDto.md
|
|
15
17
|
docs/BooleanResponseDTO.md
|
|
16
18
|
docs/ChunkFileRequestDTO.md
|
|
17
19
|
docs/CreateCollectionRequestDTO.md
|
|
@@ -51,6 +53,7 @@ docs/LoginResponseDTO.md
|
|
|
51
53
|
docs/MachineAgentApi.md
|
|
52
54
|
docs/MachineAgentLogsApi.md
|
|
53
55
|
docs/MachineInstancesApi.md
|
|
56
|
+
docs/MachineStatusDto.md
|
|
54
57
|
docs/MembersApi.md
|
|
55
58
|
docs/MessageResponseDTO.md
|
|
56
59
|
docs/MiscellaneousApi.md
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.14.0
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @nestbox-ai/admin@1.0.
|
|
1
|
+
## @nestbox-ai/admin@1.0.48
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @nestbox-ai/admin@1.0.
|
|
39
|
+
npm install @nestbox-ai/admin@1.0.48 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -79,10 +79,14 @@ Class | Method | HTTP request | Description
|
|
|
79
79
|
*MachineAgentApi* | [**machineAgentControllerDeleteMachineAgents**](docs/MachineAgentApi.md#machineagentcontrollerdeletemachineagents) | **DELETE** /projects/{projectId}/agents/{agentId} | Delete machine agent
|
|
80
80
|
*MachineAgentApi* | [**machineAgentControllerGetMachineAgentByProjectId**](docs/MachineAgentApi.md#machineagentcontrollergetmachineagentbyprojectid) | **GET** /projects/{projectId}/agents | Get all machine agent with count
|
|
81
81
|
*MachineAgentApi* | [**machineAgentControllerUpdateMachineAgent**](docs/MachineAgentApi.md#machineagentcontrollerupdatemachineagent) | **PATCH** /projects/{projectId}/agents/{agentId} | Update machine agent by id
|
|
82
|
+
*MachineAgentLogsApi* | [**logsControllerFetchAgentLogs**](docs/MachineAgentLogsApi.md#logscontrollerfetchagentlogs) | **GET** /projects/{projectId}/logs/{agentId} | Fetch agent logs.
|
|
82
83
|
*MachineAgentLogsApi* | [**logsControllerFetchEventLogs**](docs/MachineAgentLogsApi.md#logscontrollerfetcheventlogs) | **GET** /projects/{projectId}/fetchEventLogs/{agentId} | Fetch event logs.
|
|
83
84
|
*MachineInstancesApi* | [**machineInstancesControllerCreateMachineInstance**](docs/MachineInstancesApi.md#machineinstancescontrollercreatemachineinstance) | **POST** /projects/{projectId}/instances | Create Machine Instance
|
|
84
85
|
*MachineInstancesApi* | [**machineInstancesControllerDeleteMachineInstance**](docs/MachineInstancesApi.md#machineinstancescontrollerdeletemachineinstance) | **DELETE** /projects/{projectId}/instances | Delete machine instances by ids
|
|
85
86
|
*MachineInstancesApi* | [**machineInstancesControllerGetInstanceRunningStatus**](docs/MachineInstancesApi.md#machineinstancescontrollergetinstancerunningstatus) | **GET** /projects/{projectId}/instances/status | Retrieve running status of instances
|
|
87
|
+
*MachineInstancesApi* | [**machineInstancesControllerGetMachineBenchmarkingDatapoints**](docs/MachineInstancesApi.md#machineinstancescontrollergetmachinebenchmarkingdatapoints) | **GET** /projects/{projectId}/instances/machine/{machineId}/benchmarking-datapoints | Retrieve CSV benchmarking datapoints for a specific machine
|
|
88
|
+
*MachineInstancesApi* | [**machineInstancesControllerGetMachineBenchmarkingReports**](docs/MachineInstancesApi.md#machineinstancescontrollergetmachinebenchmarkingreports) | **GET** /projects/{projectId}/instances/machine/{machineId}/benchmarking-reports | Retrieve benchmarking reports for a specific machine
|
|
89
|
+
*MachineInstancesApi* | [**machineInstancesControllerGetMachineBootstrapStatus**](docs/MachineInstancesApi.md#machineinstancescontrollergetmachinebootstrapstatus) | **GET** /projects/{projectId}/instances/machine/{machineId}/status | Retrieve status of a specific machine instance
|
|
86
90
|
*MachineInstancesApi* | [**machineInstancesControllerGetMachineInstanceById**](docs/MachineInstancesApi.md#machineinstancescontrollergetmachineinstancebyid) | **GET** /projects/{projectId}/instances/machine/{machineId} | Retrieve running status of instances
|
|
87
91
|
*MachineInstancesApi* | [**machineInstancesControllerGetMachineInstanceByUserId**](docs/MachineInstancesApi.md#machineinstancescontrollergetmachineinstancebyuserid) | **GET** /projects/{projectId}/instances | Retrieve all machine instances with count
|
|
88
92
|
*MachineInstancesApi* | [**machineInstancesControllerUpdateRunningStatus**](docs/MachineInstancesApi.md#machineinstancescontrollerupdaterunningstatus) | **PUT** /projects/{projectId}/instances/status | Update Machine Instance Running Status
|
|
@@ -121,6 +125,8 @@ Class | Method | HTTP request | Description
|
|
|
121
125
|
- [AllProjectResponse](docs/AllProjectResponse.md)
|
|
122
126
|
- [AllProjectResponseModel](docs/AllProjectResponseModel.md)
|
|
123
127
|
- [BadRequestExceptionResponse](docs/BadRequestExceptionResponse.md)
|
|
128
|
+
- [BenchmarkingDatapointDto](docs/BenchmarkingDatapointDto.md)
|
|
129
|
+
- [BenchmarkingReportsDto](docs/BenchmarkingReportsDto.md)
|
|
124
130
|
- [BooleanResponseDTO](docs/BooleanResponseDTO.md)
|
|
125
131
|
- [ChunkFileRequestDTO](docs/ChunkFileRequestDTO.md)
|
|
126
132
|
- [CreateCollectionRequestDTO](docs/CreateCollectionRequestDTO.md)
|
|
@@ -155,6 +161,7 @@ Class | Method | HTTP request | Description
|
|
|
155
161
|
- [GetUserProjectRoleByRoleIdResponseDto](docs/GetUserProjectRoleByRoleIdResponseDto.md)
|
|
156
162
|
- [LoginRequestDTO](docs/LoginRequestDTO.md)
|
|
157
163
|
- [LoginResponseDTO](docs/LoginResponseDTO.md)
|
|
164
|
+
- [MachineStatusDto](docs/MachineStatusDto.md)
|
|
158
165
|
- [MessageResponseDTO](docs/MessageResponseDTO.md)
|
|
159
166
|
- [NotFoundExceptionResponse](docs/NotFoundExceptionResponse.md)
|
|
160
167
|
- [OAuthLoginRequestDTO](docs/OAuthLoginRequestDTO.md)
|
package/api.ts
CHANGED
|
@@ -167,6 +167,44 @@ export interface BadRequestExceptionResponse {
|
|
|
167
167
|
*/
|
|
168
168
|
'errors': object | null;
|
|
169
169
|
}
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @export
|
|
173
|
+
* @interface BenchmarkingDatapointDto
|
|
174
|
+
*/
|
|
175
|
+
export interface BenchmarkingDatapointDto {
|
|
176
|
+
/**
|
|
177
|
+
* Combined content of all benchmarking lines
|
|
178
|
+
* @type {string}
|
|
179
|
+
* @memberof BenchmarkingDatapointDto
|
|
180
|
+
*/
|
|
181
|
+
'lines': string;
|
|
182
|
+
/**
|
|
183
|
+
* Total number of lines found
|
|
184
|
+
* @type {number}
|
|
185
|
+
* @memberof BenchmarkingDatapointDto
|
|
186
|
+
*/
|
|
187
|
+
'totalLines': number;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @export
|
|
192
|
+
* @interface BenchmarkingReportsDto
|
|
193
|
+
*/
|
|
194
|
+
export interface BenchmarkingReportsDto {
|
|
195
|
+
/**
|
|
196
|
+
* Combined markdown content of all benchmarking reports
|
|
197
|
+
* @type {string}
|
|
198
|
+
* @memberof BenchmarkingReportsDto
|
|
199
|
+
*/
|
|
200
|
+
'content': string;
|
|
201
|
+
/**
|
|
202
|
+
* Total number of reports found
|
|
203
|
+
* @type {number}
|
|
204
|
+
* @memberof BenchmarkingReportsDto
|
|
205
|
+
*/
|
|
206
|
+
'totalReports': number;
|
|
207
|
+
}
|
|
170
208
|
/**
|
|
171
209
|
*
|
|
172
210
|
* @export
|
|
@@ -843,6 +881,31 @@ export interface LoginResponseDTO {
|
|
|
843
881
|
*/
|
|
844
882
|
'token': string;
|
|
845
883
|
}
|
|
884
|
+
/**
|
|
885
|
+
*
|
|
886
|
+
* @export
|
|
887
|
+
* @interface MachineStatusDto
|
|
888
|
+
*/
|
|
889
|
+
export interface MachineStatusDto {
|
|
890
|
+
/**
|
|
891
|
+
* Current status of the machine instance
|
|
892
|
+
* @type {string}
|
|
893
|
+
* @memberof MachineStatusDto
|
|
894
|
+
*/
|
|
895
|
+
'status': string;
|
|
896
|
+
/**
|
|
897
|
+
* Logs from the machine instance execution
|
|
898
|
+
* @type {string}
|
|
899
|
+
* @memberof MachineStatusDto
|
|
900
|
+
*/
|
|
901
|
+
'logs': string;
|
|
902
|
+
/**
|
|
903
|
+
* Timestamp of the status update
|
|
904
|
+
* @type {string}
|
|
905
|
+
* @memberof MachineStatusDto
|
|
906
|
+
*/
|
|
907
|
+
'timeStamp': string;
|
|
908
|
+
}
|
|
846
909
|
/**
|
|
847
910
|
*
|
|
848
911
|
* @export
|
|
@@ -3907,6 +3970,58 @@ export class MachineAgentApi extends BaseAPI {
|
|
|
3907
3970
|
*/
|
|
3908
3971
|
export const MachineAgentLogsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3909
3972
|
return {
|
|
3973
|
+
/**
|
|
3974
|
+
*
|
|
3975
|
+
* @summary Fetch agent logs.
|
|
3976
|
+
* @param {string} projectId
|
|
3977
|
+
* @param {string} agentId
|
|
3978
|
+
* @param {string} direction
|
|
3979
|
+
* @param {string} cursor
|
|
3980
|
+
* @param {*} [options] Override http request option.
|
|
3981
|
+
* @throws {RequiredError}
|
|
3982
|
+
*/
|
|
3983
|
+
logsControllerFetchAgentLogs: async (projectId: string, agentId: string, direction: string, cursor: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3984
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
3985
|
+
assertParamExists('logsControllerFetchAgentLogs', 'projectId', projectId)
|
|
3986
|
+
// verify required parameter 'agentId' is not null or undefined
|
|
3987
|
+
assertParamExists('logsControllerFetchAgentLogs', 'agentId', agentId)
|
|
3988
|
+
// verify required parameter 'direction' is not null or undefined
|
|
3989
|
+
assertParamExists('logsControllerFetchAgentLogs', 'direction', direction)
|
|
3990
|
+
// verify required parameter 'cursor' is not null or undefined
|
|
3991
|
+
assertParamExists('logsControllerFetchAgentLogs', 'cursor', cursor)
|
|
3992
|
+
const localVarPath = `/projects/{projectId}/logs/{agentId}`
|
|
3993
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
3994
|
+
.replace(`{${"agentId"}}`, encodeURIComponent(String(agentId)));
|
|
3995
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3996
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3997
|
+
let baseOptions;
|
|
3998
|
+
if (configuration) {
|
|
3999
|
+
baseOptions = configuration.baseOptions;
|
|
4000
|
+
}
|
|
4001
|
+
|
|
4002
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4003
|
+
const localVarHeaderParameter = {} as any;
|
|
4004
|
+
const localVarQueryParameter = {} as any;
|
|
4005
|
+
|
|
4006
|
+
if (direction !== undefined) {
|
|
4007
|
+
localVarQueryParameter['direction'] = direction;
|
|
4008
|
+
}
|
|
4009
|
+
|
|
4010
|
+
if (cursor !== undefined) {
|
|
4011
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
4012
|
+
}
|
|
4013
|
+
|
|
4014
|
+
|
|
4015
|
+
|
|
4016
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4017
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4018
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4019
|
+
|
|
4020
|
+
return {
|
|
4021
|
+
url: toPathString(localVarUrlObj),
|
|
4022
|
+
options: localVarRequestOptions,
|
|
4023
|
+
};
|
|
4024
|
+
},
|
|
3910
4025
|
/**
|
|
3911
4026
|
*
|
|
3912
4027
|
* @summary Fetch event logs.
|
|
@@ -3955,6 +4070,22 @@ export const MachineAgentLogsApiAxiosParamCreator = function (configuration?: Co
|
|
|
3955
4070
|
export const MachineAgentLogsApiFp = function(configuration?: Configuration) {
|
|
3956
4071
|
const localVarAxiosParamCreator = MachineAgentLogsApiAxiosParamCreator(configuration)
|
|
3957
4072
|
return {
|
|
4073
|
+
/**
|
|
4074
|
+
*
|
|
4075
|
+
* @summary Fetch agent logs.
|
|
4076
|
+
* @param {string} projectId
|
|
4077
|
+
* @param {string} agentId
|
|
4078
|
+
* @param {string} direction
|
|
4079
|
+
* @param {string} cursor
|
|
4080
|
+
* @param {*} [options] Override http request option.
|
|
4081
|
+
* @throws {RequiredError}
|
|
4082
|
+
*/
|
|
4083
|
+
async logsControllerFetchAgentLogs(projectId: string, agentId: string, direction: string, cursor: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
4084
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.logsControllerFetchAgentLogs(projectId, agentId, direction, cursor, options);
|
|
4085
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4086
|
+
const localVarOperationServerBasePath = operationServerMap['MachineAgentLogsApi.logsControllerFetchAgentLogs']?.[localVarOperationServerIndex]?.url;
|
|
4087
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4088
|
+
},
|
|
3958
4089
|
/**
|
|
3959
4090
|
*
|
|
3960
4091
|
* @summary Fetch event logs.
|
|
@@ -3979,6 +4110,19 @@ export const MachineAgentLogsApiFp = function(configuration?: Configuration) {
|
|
|
3979
4110
|
export const MachineAgentLogsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3980
4111
|
const localVarFp = MachineAgentLogsApiFp(configuration)
|
|
3981
4112
|
return {
|
|
4113
|
+
/**
|
|
4114
|
+
*
|
|
4115
|
+
* @summary Fetch agent logs.
|
|
4116
|
+
* @param {string} projectId
|
|
4117
|
+
* @param {string} agentId
|
|
4118
|
+
* @param {string} direction
|
|
4119
|
+
* @param {string} cursor
|
|
4120
|
+
* @param {*} [options] Override http request option.
|
|
4121
|
+
* @throws {RequiredError}
|
|
4122
|
+
*/
|
|
4123
|
+
logsControllerFetchAgentLogs(projectId: string, agentId: string, direction: string, cursor: string, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
4124
|
+
return localVarFp.logsControllerFetchAgentLogs(projectId, agentId, direction, cursor, options).then((request) => request(axios, basePath));
|
|
4125
|
+
},
|
|
3982
4126
|
/**
|
|
3983
4127
|
*
|
|
3984
4128
|
* @summary Fetch event logs.
|
|
@@ -4000,6 +4144,21 @@ export const MachineAgentLogsApiFactory = function (configuration?: Configuratio
|
|
|
4000
4144
|
* @extends {BaseAPI}
|
|
4001
4145
|
*/
|
|
4002
4146
|
export class MachineAgentLogsApi extends BaseAPI {
|
|
4147
|
+
/**
|
|
4148
|
+
*
|
|
4149
|
+
* @summary Fetch agent logs.
|
|
4150
|
+
* @param {string} projectId
|
|
4151
|
+
* @param {string} agentId
|
|
4152
|
+
* @param {string} direction
|
|
4153
|
+
* @param {string} cursor
|
|
4154
|
+
* @param {*} [options] Override http request option.
|
|
4155
|
+
* @throws {RequiredError}
|
|
4156
|
+
* @memberof MachineAgentLogsApi
|
|
4157
|
+
*/
|
|
4158
|
+
public logsControllerFetchAgentLogs(projectId: string, agentId: string, direction: string, cursor: string, options?: RawAxiosRequestConfig) {
|
|
4159
|
+
return MachineAgentLogsApiFp(this.configuration).logsControllerFetchAgentLogs(projectId, agentId, direction, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
4160
|
+
}
|
|
4161
|
+
|
|
4003
4162
|
/**
|
|
4004
4163
|
*
|
|
4005
4164
|
* @summary Fetch event logs.
|
|
@@ -4115,6 +4274,120 @@ export const MachineInstancesApiAxiosParamCreator = function (configuration?: Co
|
|
|
4115
4274
|
|
|
4116
4275
|
|
|
4117
4276
|
|
|
4277
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4278
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4279
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4280
|
+
|
|
4281
|
+
return {
|
|
4282
|
+
url: toPathString(localVarUrlObj),
|
|
4283
|
+
options: localVarRequestOptions,
|
|
4284
|
+
};
|
|
4285
|
+
},
|
|
4286
|
+
/**
|
|
4287
|
+
*
|
|
4288
|
+
* @summary Retrieve CSV benchmarking datapoints for a specific machine
|
|
4289
|
+
* @param {string} projectId
|
|
4290
|
+
* @param {string} machineId
|
|
4291
|
+
* @param {*} [options] Override http request option.
|
|
4292
|
+
* @throws {RequiredError}
|
|
4293
|
+
*/
|
|
4294
|
+
machineInstancesControllerGetMachineBenchmarkingDatapoints: async (projectId: string, machineId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4295
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
4296
|
+
assertParamExists('machineInstancesControllerGetMachineBenchmarkingDatapoints', 'projectId', projectId)
|
|
4297
|
+
// verify required parameter 'machineId' is not null or undefined
|
|
4298
|
+
assertParamExists('machineInstancesControllerGetMachineBenchmarkingDatapoints', 'machineId', machineId)
|
|
4299
|
+
const localVarPath = `/projects/{projectId}/instances/machine/{machineId}/benchmarking-datapoints`
|
|
4300
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
4301
|
+
.replace(`{${"machineId"}}`, encodeURIComponent(String(machineId)));
|
|
4302
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4303
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4304
|
+
let baseOptions;
|
|
4305
|
+
if (configuration) {
|
|
4306
|
+
baseOptions = configuration.baseOptions;
|
|
4307
|
+
}
|
|
4308
|
+
|
|
4309
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4310
|
+
const localVarHeaderParameter = {} as any;
|
|
4311
|
+
const localVarQueryParameter = {} as any;
|
|
4312
|
+
|
|
4313
|
+
|
|
4314
|
+
|
|
4315
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4316
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4317
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4318
|
+
|
|
4319
|
+
return {
|
|
4320
|
+
url: toPathString(localVarUrlObj),
|
|
4321
|
+
options: localVarRequestOptions,
|
|
4322
|
+
};
|
|
4323
|
+
},
|
|
4324
|
+
/**
|
|
4325
|
+
*
|
|
4326
|
+
* @summary Retrieve benchmarking reports for a specific machine
|
|
4327
|
+
* @param {string} projectId
|
|
4328
|
+
* @param {string} machineId
|
|
4329
|
+
* @param {*} [options] Override http request option.
|
|
4330
|
+
* @throws {RequiredError}
|
|
4331
|
+
*/
|
|
4332
|
+
machineInstancesControllerGetMachineBenchmarkingReports: async (projectId: string, machineId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4333
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
4334
|
+
assertParamExists('machineInstancesControllerGetMachineBenchmarkingReports', 'projectId', projectId)
|
|
4335
|
+
// verify required parameter 'machineId' is not null or undefined
|
|
4336
|
+
assertParamExists('machineInstancesControllerGetMachineBenchmarkingReports', 'machineId', machineId)
|
|
4337
|
+
const localVarPath = `/projects/{projectId}/instances/machine/{machineId}/benchmarking-reports`
|
|
4338
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
4339
|
+
.replace(`{${"machineId"}}`, encodeURIComponent(String(machineId)));
|
|
4340
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4341
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4342
|
+
let baseOptions;
|
|
4343
|
+
if (configuration) {
|
|
4344
|
+
baseOptions = configuration.baseOptions;
|
|
4345
|
+
}
|
|
4346
|
+
|
|
4347
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4348
|
+
const localVarHeaderParameter = {} as any;
|
|
4349
|
+
const localVarQueryParameter = {} as any;
|
|
4350
|
+
|
|
4351
|
+
|
|
4352
|
+
|
|
4353
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4354
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4355
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4356
|
+
|
|
4357
|
+
return {
|
|
4358
|
+
url: toPathString(localVarUrlObj),
|
|
4359
|
+
options: localVarRequestOptions,
|
|
4360
|
+
};
|
|
4361
|
+
},
|
|
4362
|
+
/**
|
|
4363
|
+
*
|
|
4364
|
+
* @summary Retrieve status of a specific machine instance
|
|
4365
|
+
* @param {string} projectId
|
|
4366
|
+
* @param {string} machineId
|
|
4367
|
+
* @param {*} [options] Override http request option.
|
|
4368
|
+
* @throws {RequiredError}
|
|
4369
|
+
*/
|
|
4370
|
+
machineInstancesControllerGetMachineBootstrapStatus: async (projectId: string, machineId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4371
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
4372
|
+
assertParamExists('machineInstancesControllerGetMachineBootstrapStatus', 'projectId', projectId)
|
|
4373
|
+
// verify required parameter 'machineId' is not null or undefined
|
|
4374
|
+
assertParamExists('machineInstancesControllerGetMachineBootstrapStatus', 'machineId', machineId)
|
|
4375
|
+
const localVarPath = `/projects/{projectId}/instances/machine/{machineId}/status`
|
|
4376
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
4377
|
+
.replace(`{${"machineId"}}`, encodeURIComponent(String(machineId)));
|
|
4378
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4379
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4380
|
+
let baseOptions;
|
|
4381
|
+
if (configuration) {
|
|
4382
|
+
baseOptions = configuration.baseOptions;
|
|
4383
|
+
}
|
|
4384
|
+
|
|
4385
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4386
|
+
const localVarHeaderParameter = {} as any;
|
|
4387
|
+
const localVarQueryParameter = {} as any;
|
|
4388
|
+
|
|
4389
|
+
|
|
4390
|
+
|
|
4118
4391
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4119
4392
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4120
4393
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -4313,6 +4586,48 @@ export const MachineInstancesApiFp = function(configuration?: Configuration) {
|
|
|
4313
4586
|
const localVarOperationServerBasePath = operationServerMap['MachineInstancesApi.machineInstancesControllerGetInstanceRunningStatus']?.[localVarOperationServerIndex]?.url;
|
|
4314
4587
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4315
4588
|
},
|
|
4589
|
+
/**
|
|
4590
|
+
*
|
|
4591
|
+
* @summary Retrieve CSV benchmarking datapoints for a specific machine
|
|
4592
|
+
* @param {string} projectId
|
|
4593
|
+
* @param {string} machineId
|
|
4594
|
+
* @param {*} [options] Override http request option.
|
|
4595
|
+
* @throws {RequiredError}
|
|
4596
|
+
*/
|
|
4597
|
+
async machineInstancesControllerGetMachineBenchmarkingDatapoints(projectId: string, machineId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BenchmarkingDatapointDto>> {
|
|
4598
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.machineInstancesControllerGetMachineBenchmarkingDatapoints(projectId, machineId, options);
|
|
4599
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4600
|
+
const localVarOperationServerBasePath = operationServerMap['MachineInstancesApi.machineInstancesControllerGetMachineBenchmarkingDatapoints']?.[localVarOperationServerIndex]?.url;
|
|
4601
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4602
|
+
},
|
|
4603
|
+
/**
|
|
4604
|
+
*
|
|
4605
|
+
* @summary Retrieve benchmarking reports for a specific machine
|
|
4606
|
+
* @param {string} projectId
|
|
4607
|
+
* @param {string} machineId
|
|
4608
|
+
* @param {*} [options] Override http request option.
|
|
4609
|
+
* @throws {RequiredError}
|
|
4610
|
+
*/
|
|
4611
|
+
async machineInstancesControllerGetMachineBenchmarkingReports(projectId: string, machineId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BenchmarkingReportsDto>> {
|
|
4612
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.machineInstancesControllerGetMachineBenchmarkingReports(projectId, machineId, options);
|
|
4613
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4614
|
+
const localVarOperationServerBasePath = operationServerMap['MachineInstancesApi.machineInstancesControllerGetMachineBenchmarkingReports']?.[localVarOperationServerIndex]?.url;
|
|
4615
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4616
|
+
},
|
|
4617
|
+
/**
|
|
4618
|
+
*
|
|
4619
|
+
* @summary Retrieve status of a specific machine instance
|
|
4620
|
+
* @param {string} projectId
|
|
4621
|
+
* @param {string} machineId
|
|
4622
|
+
* @param {*} [options] Override http request option.
|
|
4623
|
+
* @throws {RequiredError}
|
|
4624
|
+
*/
|
|
4625
|
+
async machineInstancesControllerGetMachineBootstrapStatus(projectId: string, machineId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MachineStatusDto>> {
|
|
4626
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.machineInstancesControllerGetMachineBootstrapStatus(projectId, machineId, options);
|
|
4627
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4628
|
+
const localVarOperationServerBasePath = operationServerMap['MachineInstancesApi.machineInstancesControllerGetMachineBootstrapStatus']?.[localVarOperationServerIndex]?.url;
|
|
4629
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4630
|
+
},
|
|
4316
4631
|
/**
|
|
4317
4632
|
*
|
|
4318
4633
|
* @summary Retrieve running status of instances
|
|
@@ -4398,6 +4713,39 @@ export const MachineInstancesApiFactory = function (configuration?: Configuratio
|
|
|
4398
4713
|
machineInstancesControllerGetInstanceRunningStatus(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
4399
4714
|
return localVarFp.machineInstancesControllerGetInstanceRunningStatus(projectId, options).then((request) => request(axios, basePath));
|
|
4400
4715
|
},
|
|
4716
|
+
/**
|
|
4717
|
+
*
|
|
4718
|
+
* @summary Retrieve CSV benchmarking datapoints for a specific machine
|
|
4719
|
+
* @param {string} projectId
|
|
4720
|
+
* @param {string} machineId
|
|
4721
|
+
* @param {*} [options] Override http request option.
|
|
4722
|
+
* @throws {RequiredError}
|
|
4723
|
+
*/
|
|
4724
|
+
machineInstancesControllerGetMachineBenchmarkingDatapoints(projectId: string, machineId: string, options?: RawAxiosRequestConfig): AxiosPromise<BenchmarkingDatapointDto> {
|
|
4725
|
+
return localVarFp.machineInstancesControllerGetMachineBenchmarkingDatapoints(projectId, machineId, options).then((request) => request(axios, basePath));
|
|
4726
|
+
},
|
|
4727
|
+
/**
|
|
4728
|
+
*
|
|
4729
|
+
* @summary Retrieve benchmarking reports for a specific machine
|
|
4730
|
+
* @param {string} projectId
|
|
4731
|
+
* @param {string} machineId
|
|
4732
|
+
* @param {*} [options] Override http request option.
|
|
4733
|
+
* @throws {RequiredError}
|
|
4734
|
+
*/
|
|
4735
|
+
machineInstancesControllerGetMachineBenchmarkingReports(projectId: string, machineId: string, options?: RawAxiosRequestConfig): AxiosPromise<BenchmarkingReportsDto> {
|
|
4736
|
+
return localVarFp.machineInstancesControllerGetMachineBenchmarkingReports(projectId, machineId, options).then((request) => request(axios, basePath));
|
|
4737
|
+
},
|
|
4738
|
+
/**
|
|
4739
|
+
*
|
|
4740
|
+
* @summary Retrieve status of a specific machine instance
|
|
4741
|
+
* @param {string} projectId
|
|
4742
|
+
* @param {string} machineId
|
|
4743
|
+
* @param {*} [options] Override http request option.
|
|
4744
|
+
* @throws {RequiredError}
|
|
4745
|
+
*/
|
|
4746
|
+
machineInstancesControllerGetMachineBootstrapStatus(projectId: string, machineId: string, options?: RawAxiosRequestConfig): AxiosPromise<MachineStatusDto> {
|
|
4747
|
+
return localVarFp.machineInstancesControllerGetMachineBootstrapStatus(projectId, machineId, options).then((request) => request(axios, basePath));
|
|
4748
|
+
},
|
|
4401
4749
|
/**
|
|
4402
4750
|
*
|
|
4403
4751
|
* @summary Retrieve running status of instances
|
|
@@ -4480,6 +4828,45 @@ export class MachineInstancesApi extends BaseAPI {
|
|
|
4480
4828
|
return MachineInstancesApiFp(this.configuration).machineInstancesControllerGetInstanceRunningStatus(projectId, options).then((request) => request(this.axios, this.basePath));
|
|
4481
4829
|
}
|
|
4482
4830
|
|
|
4831
|
+
/**
|
|
4832
|
+
*
|
|
4833
|
+
* @summary Retrieve CSV benchmarking datapoints for a specific machine
|
|
4834
|
+
* @param {string} projectId
|
|
4835
|
+
* @param {string} machineId
|
|
4836
|
+
* @param {*} [options] Override http request option.
|
|
4837
|
+
* @throws {RequiredError}
|
|
4838
|
+
* @memberof MachineInstancesApi
|
|
4839
|
+
*/
|
|
4840
|
+
public machineInstancesControllerGetMachineBenchmarkingDatapoints(projectId: string, machineId: string, options?: RawAxiosRequestConfig) {
|
|
4841
|
+
return MachineInstancesApiFp(this.configuration).machineInstancesControllerGetMachineBenchmarkingDatapoints(projectId, machineId, options).then((request) => request(this.axios, this.basePath));
|
|
4842
|
+
}
|
|
4843
|
+
|
|
4844
|
+
/**
|
|
4845
|
+
*
|
|
4846
|
+
* @summary Retrieve benchmarking reports for a specific machine
|
|
4847
|
+
* @param {string} projectId
|
|
4848
|
+
* @param {string} machineId
|
|
4849
|
+
* @param {*} [options] Override http request option.
|
|
4850
|
+
* @throws {RequiredError}
|
|
4851
|
+
* @memberof MachineInstancesApi
|
|
4852
|
+
*/
|
|
4853
|
+
public machineInstancesControllerGetMachineBenchmarkingReports(projectId: string, machineId: string, options?: RawAxiosRequestConfig) {
|
|
4854
|
+
return MachineInstancesApiFp(this.configuration).machineInstancesControllerGetMachineBenchmarkingReports(projectId, machineId, options).then((request) => request(this.axios, this.basePath));
|
|
4855
|
+
}
|
|
4856
|
+
|
|
4857
|
+
/**
|
|
4858
|
+
*
|
|
4859
|
+
* @summary Retrieve status of a specific machine instance
|
|
4860
|
+
* @param {string} projectId
|
|
4861
|
+
* @param {string} machineId
|
|
4862
|
+
* @param {*} [options] Override http request option.
|
|
4863
|
+
* @throws {RequiredError}
|
|
4864
|
+
* @memberof MachineInstancesApi
|
|
4865
|
+
*/
|
|
4866
|
+
public machineInstancesControllerGetMachineBootstrapStatus(projectId: string, machineId: string, options?: RawAxiosRequestConfig) {
|
|
4867
|
+
return MachineInstancesApiFp(this.configuration).machineInstancesControllerGetMachineBootstrapStatus(projectId, machineId, options).then((request) => request(this.axios, this.basePath));
|
|
4868
|
+
}
|
|
4869
|
+
|
|
4483
4870
|
/**
|
|
4484
4871
|
*
|
|
4485
4872
|
* @summary Retrieve running status of instances
|
package/common.ts
CHANGED
|
@@ -89,17 +89,17 @@ function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: an
|
|
|
89
89
|
if (typeof parameter === "object") {
|
|
90
90
|
if (Array.isArray(parameter)) {
|
|
91
91
|
(parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
92
|
-
}
|
|
92
|
+
}
|
|
93
93
|
else {
|
|
94
|
-
Object.keys(parameter).forEach(currentKey =>
|
|
94
|
+
Object.keys(parameter).forEach(currentKey =>
|
|
95
95
|
setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)
|
|
96
96
|
);
|
|
97
97
|
}
|
|
98
|
-
}
|
|
98
|
+
}
|
|
99
99
|
else {
|
|
100
100
|
if (urlSearchParams.has(key)) {
|
|
101
101
|
urlSearchParams.append(key, parameter);
|
|
102
|
-
}
|
|
102
|
+
}
|
|
103
103
|
else {
|
|
104
104
|
urlSearchParams.set(key, parameter);
|
|
105
105
|
}
|