@openshift-migration-advisor/agent-sdk 0.7.0 → 0.8.0-f2b45ba15f28
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 +2 -2
- package/README.md +19 -19
- package/dist/apis/DefaultApi.d.ts +51 -56
- package/dist/apis/DefaultApi.js +58 -63
- package/dist/esm/apis/DefaultApi.d.ts +51 -56
- package/dist/esm/apis/DefaultApi.js +59 -64
- package/dist/esm/models/AgentStatus.d.ts +2 -2
- package/dist/esm/models/AgentStatus.js +2 -2
- package/dist/esm/models/CollectorStatus.d.ts +6 -7
- package/dist/esm/models/CollectorStatus.js +6 -7
- package/dist/esm/models/InspectorStatus.d.ts +7 -7
- package/dist/esm/models/InspectorStatus.js +7 -7
- package/dist/esm/models/VMIssue.d.ts +6 -6
- package/dist/esm/models/VMIssue.js +6 -6
- package/dist/esm/models/VddkProperties.d.ts +44 -0
- package/dist/esm/models/{VddkPost200Response.js → VddkProperties.js} +13 -11
- package/dist/esm/models/VmInspectionStatus.d.ts +1 -1
- package/dist/esm/models/VmInspectionStatus.js +1 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/models/AgentStatus.d.ts +2 -2
- package/dist/models/AgentStatus.js +2 -2
- package/dist/models/CollectorStatus.d.ts +6 -7
- package/dist/models/CollectorStatus.js +6 -7
- package/dist/models/InspectorStatus.d.ts +7 -7
- package/dist/models/InspectorStatus.js +7 -7
- package/dist/models/VMIssue.d.ts +6 -6
- package/dist/models/VMIssue.js +6 -6
- package/dist/models/VddkProperties.d.ts +44 -0
- package/dist/models/VddkProperties.js +56 -0
- package/dist/models/VmInspectionStatus.d.ts +1 -1
- package/dist/models/VmInspectionStatus.js +1 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/docs/DefaultApi.md +61 -67
- package/docs/{VddkPost200Response.md → VddkProperties.md} +6 -4
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +97 -113
- package/src/models/AgentStatus.ts +2 -2
- package/src/models/CollectorStatus.ts +6 -7
- package/src/models/InspectorStatus.ts +7 -7
- package/src/models/VMIssue.ts +6 -6
- package/src/models/VddkProperties.ts +83 -0
- package/src/models/VmInspectionStatus.ts +1 -1
- package/src/models/index.ts +1 -1
- package/dist/esm/models/VddkPost200Response.d.ts +0 -38
- package/dist/models/VddkPost200Response.d.ts +0 -38
- package/dist/models/VddkPost200Response.js +0 -54
- package/src/models/VddkPost200Response.ts +0 -75
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { AgentModeRequest, AgentStatus, CollectorStartRequest, CollectorStatus, CreateGroupRequest, GetInventory200Response, Group, GroupListResponse, GroupResponse, InspectorStartRequest, InspectorStatus, UpdateGroupRequest,
|
|
14
|
-
export interface
|
|
15
|
-
|
|
13
|
+
import type { AgentModeRequest, AgentStatus, CollectorStartRequest, CollectorStatus, CreateGroupRequest, GetInventory200Response, Group, GroupListResponse, GroupResponse, InspectorStartRequest, InspectorStatus, UpdateGroupRequest, VddkProperties, VersionInfo, VirtualMachineDetail, VirtualMachineListResponse, VmInspectionStatus } from '../models/index.js';
|
|
14
|
+
export interface AddVMToInspectionRequest {
|
|
15
|
+
id: string;
|
|
16
16
|
}
|
|
17
17
|
export interface CreateGroupOperationRequest {
|
|
18
18
|
createGroupRequest: CreateGroupRequest;
|
|
@@ -33,9 +33,6 @@ export interface GetInventoryRequest {
|
|
|
33
33
|
export interface GetVMRequest {
|
|
34
34
|
id: string;
|
|
35
35
|
}
|
|
36
|
-
export interface GetVMInspectionStatusRequest {
|
|
37
|
-
id: string;
|
|
38
|
-
}
|
|
39
36
|
export interface GetVMsRequest {
|
|
40
37
|
byExpression?: string;
|
|
41
38
|
sort?: Array<string>;
|
|
@@ -74,25 +71,25 @@ export interface VddkPostRequest {
|
|
|
74
71
|
*/
|
|
75
72
|
export interface DefaultApiInterface {
|
|
76
73
|
/**
|
|
77
|
-
* Creates request options for
|
|
78
|
-
* @param {
|
|
74
|
+
* Creates request options for addVMToInspection without sending the request
|
|
75
|
+
* @param {string} id
|
|
79
76
|
* @throws {RequiredError}
|
|
80
77
|
* @memberof DefaultApiInterface
|
|
81
78
|
*/
|
|
82
|
-
|
|
79
|
+
addVMToInspectionRequestOpts(requestParameters: AddVMToInspectionRequest): Promise<runtime.RequestOpts>;
|
|
83
80
|
/**
|
|
84
81
|
*
|
|
85
|
-
* @summary Add
|
|
86
|
-
* @param {
|
|
82
|
+
* @summary Add VirtualMachine to inspection queue
|
|
83
|
+
* @param {string} id
|
|
87
84
|
* @param {*} [options] Override http request option.
|
|
88
85
|
* @throws {RequiredError}
|
|
89
86
|
* @memberof DefaultApiInterface
|
|
90
87
|
*/
|
|
91
|
-
|
|
88
|
+
addVMToInspectionRaw(requestParameters: AddVMToInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmInspectionStatus>>;
|
|
92
89
|
/**
|
|
93
|
-
* Add
|
|
90
|
+
* Add VirtualMachine to inspection queue
|
|
94
91
|
*/
|
|
95
|
-
|
|
92
|
+
addVMToInspection(requestParameters: AddVMToInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmInspectionStatus>;
|
|
96
93
|
/**
|
|
97
94
|
* Creates request options for createGroup without sending the request
|
|
98
95
|
* @param {CreateGroupRequest} createGroupRequest
|
|
@@ -255,26 +252,6 @@ export interface DefaultApiInterface {
|
|
|
255
252
|
* Get details about a vm
|
|
256
253
|
*/
|
|
257
254
|
getVM(requestParameters: GetVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineDetail>;
|
|
258
|
-
/**
|
|
259
|
-
* Creates request options for getVMInspectionStatus without sending the request
|
|
260
|
-
* @param {string} id VirtualMachine ID
|
|
261
|
-
* @throws {RequiredError}
|
|
262
|
-
* @memberof DefaultApiInterface
|
|
263
|
-
*/
|
|
264
|
-
getVMInspectionStatusRequestOpts(requestParameters: GetVMInspectionStatusRequest): Promise<runtime.RequestOpts>;
|
|
265
|
-
/**
|
|
266
|
-
*
|
|
267
|
-
* @summary Get inspection status for a specific VirtualMachine
|
|
268
|
-
* @param {string} id VirtualMachine ID
|
|
269
|
-
* @param {*} [options] Override http request option.
|
|
270
|
-
* @throws {RequiredError}
|
|
271
|
-
* @memberof DefaultApiInterface
|
|
272
|
-
*/
|
|
273
|
-
getVMInspectionStatusRaw(requestParameters: GetVMInspectionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmInspectionStatus>>;
|
|
274
|
-
/**
|
|
275
|
-
* Get inspection status for a specific VirtualMachine
|
|
276
|
-
*/
|
|
277
|
-
getVMInspectionStatus(requestParameters: GetVMInspectionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmInspectionStatus>;
|
|
278
255
|
/**
|
|
279
256
|
* Creates request options for getVMs without sending the request
|
|
280
257
|
* @param {string} [byExpression] Filter by expression (matches VMs with the provided expression)
|
|
@@ -301,6 +278,24 @@ export interface DefaultApiInterface {
|
|
|
301
278
|
* Get list of VMs with filtering and pagination
|
|
302
279
|
*/
|
|
303
280
|
getVMs(requestParameters: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
|
|
281
|
+
/**
|
|
282
|
+
* Creates request options for getVddkStatus without sending the request
|
|
283
|
+
* @throws {RequiredError}
|
|
284
|
+
* @memberof DefaultApiInterface
|
|
285
|
+
*/
|
|
286
|
+
getVddkStatusRequestOpts(): Promise<runtime.RequestOpts>;
|
|
287
|
+
/**
|
|
288
|
+
*
|
|
289
|
+
* @summary Get VDDK status
|
|
290
|
+
* @param {*} [options] Override http request option.
|
|
291
|
+
* @throws {RequiredError}
|
|
292
|
+
* @memberof DefaultApiInterface
|
|
293
|
+
*/
|
|
294
|
+
getVddkStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
|
|
295
|
+
/**
|
|
296
|
+
* Get VDDK status
|
|
297
|
+
*/
|
|
298
|
+
getVddkStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
|
|
304
299
|
/**
|
|
305
300
|
* Creates request options for getVersion without sending the request
|
|
306
301
|
* @throws {RequiredError}
|
|
@@ -496,28 +491,28 @@ export interface DefaultApiInterface {
|
|
|
496
491
|
* @throws {RequiredError}
|
|
497
492
|
* @memberof DefaultApiInterface
|
|
498
493
|
*/
|
|
499
|
-
vddkPostRaw(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
494
|
+
vddkPostRaw(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
|
|
500
495
|
/**
|
|
501
496
|
* Upload VDDK tarball
|
|
502
497
|
*/
|
|
503
|
-
vddkPost(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
498
|
+
vddkPost(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
|
|
504
499
|
}
|
|
505
500
|
/**
|
|
506
501
|
*
|
|
507
502
|
*/
|
|
508
503
|
export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
509
504
|
/**
|
|
510
|
-
* Creates request options for
|
|
505
|
+
* Creates request options for addVMToInspection without sending the request
|
|
511
506
|
*/
|
|
512
|
-
|
|
507
|
+
addVMToInspectionRequestOpts(requestParameters: AddVMToInspectionRequest): Promise<runtime.RequestOpts>;
|
|
513
508
|
/**
|
|
514
|
-
* Add
|
|
509
|
+
* Add VirtualMachine to inspection queue
|
|
515
510
|
*/
|
|
516
|
-
|
|
511
|
+
addVMToInspectionRaw(requestParameters: AddVMToInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmInspectionStatus>>;
|
|
517
512
|
/**
|
|
518
|
-
* Add
|
|
513
|
+
* Add VirtualMachine to inspection queue
|
|
519
514
|
*/
|
|
520
|
-
|
|
515
|
+
addVMToInspection(requestParameters: AddVMToInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmInspectionStatus>;
|
|
521
516
|
/**
|
|
522
517
|
* Creates request options for createGroup without sending the request
|
|
523
518
|
*/
|
|
@@ -614,18 +609,6 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
614
609
|
* Get details about a vm
|
|
615
610
|
*/
|
|
616
611
|
getVM(requestParameters: GetVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineDetail>;
|
|
617
|
-
/**
|
|
618
|
-
* Creates request options for getVMInspectionStatus without sending the request
|
|
619
|
-
*/
|
|
620
|
-
getVMInspectionStatusRequestOpts(requestParameters: GetVMInspectionStatusRequest): Promise<runtime.RequestOpts>;
|
|
621
|
-
/**
|
|
622
|
-
* Get inspection status for a specific VirtualMachine
|
|
623
|
-
*/
|
|
624
|
-
getVMInspectionStatusRaw(requestParameters: GetVMInspectionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmInspectionStatus>>;
|
|
625
|
-
/**
|
|
626
|
-
* Get inspection status for a specific VirtualMachine
|
|
627
|
-
*/
|
|
628
|
-
getVMInspectionStatus(requestParameters: GetVMInspectionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmInspectionStatus>;
|
|
629
612
|
/**
|
|
630
613
|
* Creates request options for getVMs without sending the request
|
|
631
614
|
*/
|
|
@@ -638,6 +621,18 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
638
621
|
* Get list of VMs with filtering and pagination
|
|
639
622
|
*/
|
|
640
623
|
getVMs(requestParameters?: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
|
|
624
|
+
/**
|
|
625
|
+
* Creates request options for getVddkStatus without sending the request
|
|
626
|
+
*/
|
|
627
|
+
getVddkStatusRequestOpts(): Promise<runtime.RequestOpts>;
|
|
628
|
+
/**
|
|
629
|
+
* Get VDDK status
|
|
630
|
+
*/
|
|
631
|
+
getVddkStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
|
|
632
|
+
/**
|
|
633
|
+
* Get VDDK status
|
|
634
|
+
*/
|
|
635
|
+
getVddkStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
|
|
641
636
|
/**
|
|
642
637
|
* Creates request options for getVersion without sending the request
|
|
643
638
|
*/
|
|
@@ -753,9 +748,9 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
753
748
|
/**
|
|
754
749
|
* Upload VDDK tarball
|
|
755
750
|
*/
|
|
756
|
-
vddkPostRaw(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
751
|
+
vddkPostRaw(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
|
|
757
752
|
/**
|
|
758
753
|
* Upload VDDK tarball
|
|
759
754
|
*/
|
|
760
|
-
vddkPost(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
755
|
+
vddkPost(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
|
|
761
756
|
}
|
|
@@ -21,48 +21,47 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime.js';
|
|
24
|
-
import { AgentModeRequestToJSON, AgentStatusFromJSON, CollectorStartRequestToJSON, CollectorStatusFromJSON, CreateGroupRequestToJSON, GetInventory200ResponseFromJSON, GroupFromJSON, GroupListResponseFromJSON, GroupResponseFromJSON, InspectorStartRequestToJSON, InspectorStatusFromJSON, UpdateGroupRequestToJSON,
|
|
24
|
+
import { AgentModeRequestToJSON, AgentStatusFromJSON, CollectorStartRequestToJSON, CollectorStatusFromJSON, CreateGroupRequestToJSON, GetInventory200ResponseFromJSON, GroupFromJSON, GroupListResponseFromJSON, GroupResponseFromJSON, InspectorStartRequestToJSON, InspectorStatusFromJSON, UpdateGroupRequestToJSON, VddkPropertiesFromJSON, VersionInfoFromJSON, VirtualMachineDetailFromJSON, VirtualMachineListResponseFromJSON, VmInspectionStatusFromJSON, } from '../models/index.js';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class DefaultApi extends runtime.BaseAPI {
|
|
29
29
|
/**
|
|
30
|
-
* Creates request options for
|
|
30
|
+
* Creates request options for addVMToInspection without sending the request
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
addVMToInspectionRequestOpts(requestParameters) {
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
if (requestParameters['
|
|
35
|
-
throw new runtime.RequiredError('
|
|
34
|
+
if (requestParameters['id'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling addVMToInspection().');
|
|
36
36
|
}
|
|
37
37
|
const queryParameters = {};
|
|
38
38
|
const headerParameters = {};
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
let urlPath = `/vms/{id}/inspection`;
|
|
40
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
41
41
|
return {
|
|
42
42
|
path: urlPath,
|
|
43
|
-
method: '
|
|
43
|
+
method: 'POST',
|
|
44
44
|
headers: headerParameters,
|
|
45
45
|
query: queryParameters,
|
|
46
|
-
body: requestParameters['requestBody'],
|
|
47
46
|
};
|
|
48
47
|
});
|
|
49
48
|
}
|
|
50
49
|
/**
|
|
51
|
-
* Add
|
|
50
|
+
* Add VirtualMachine to inspection queue
|
|
52
51
|
*/
|
|
53
|
-
|
|
52
|
+
addVMToInspectionRaw(requestParameters, initOverrides) {
|
|
54
53
|
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
const requestOptions = yield this.
|
|
54
|
+
const requestOptions = yield this.addVMToInspectionRequestOpts(requestParameters);
|
|
56
55
|
const response = yield this.request(requestOptions, initOverrides);
|
|
57
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
56
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VmInspectionStatusFromJSON(jsonValue));
|
|
58
57
|
});
|
|
59
58
|
}
|
|
60
59
|
/**
|
|
61
|
-
* Add
|
|
60
|
+
* Add VirtualMachine to inspection queue
|
|
62
61
|
*/
|
|
63
|
-
|
|
62
|
+
addVMToInspection(requestParameters, initOverrides) {
|
|
64
63
|
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
-
const response = yield this.
|
|
64
|
+
const response = yield this.addVMToInspectionRaw(requestParameters, initOverrides);
|
|
66
65
|
return yield response.value();
|
|
67
66
|
});
|
|
68
67
|
}
|
|
@@ -77,7 +76,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
77
76
|
const queryParameters = {};
|
|
78
77
|
const headerParameters = {};
|
|
79
78
|
headerParameters['Content-Type'] = 'application/json';
|
|
80
|
-
let urlPath = `/
|
|
79
|
+
let urlPath = `/groups`;
|
|
81
80
|
return {
|
|
82
81
|
path: urlPath,
|
|
83
82
|
method: 'POST',
|
|
@@ -116,7 +115,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
116
115
|
}
|
|
117
116
|
const queryParameters = {};
|
|
118
117
|
const headerParameters = {};
|
|
119
|
-
let urlPath = `/
|
|
118
|
+
let urlPath = `/groups/{id}`;
|
|
120
119
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
121
120
|
return {
|
|
122
121
|
path: urlPath,
|
|
@@ -233,7 +232,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
233
232
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
234
233
|
}
|
|
235
234
|
const headerParameters = {};
|
|
236
|
-
let urlPath = `/
|
|
235
|
+
let urlPath = `/groups/{id}`;
|
|
237
236
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
238
237
|
return {
|
|
239
238
|
path: urlPath,
|
|
@@ -269,7 +268,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
269
268
|
return __awaiter(this, void 0, void 0, function* () {
|
|
270
269
|
const queryParameters = {};
|
|
271
270
|
const headerParameters = {};
|
|
272
|
-
let urlPath = `/
|
|
271
|
+
let urlPath = `/inspector`;
|
|
273
272
|
return {
|
|
274
273
|
path: urlPath,
|
|
275
274
|
method: 'GET',
|
|
@@ -378,17 +377,25 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
378
377
|
});
|
|
379
378
|
}
|
|
380
379
|
/**
|
|
381
|
-
* Creates request options for
|
|
380
|
+
* Creates request options for getVMs without sending the request
|
|
382
381
|
*/
|
|
383
|
-
|
|
382
|
+
getVMsRequestOpts(requestParameters) {
|
|
384
383
|
return __awaiter(this, void 0, void 0, function* () {
|
|
385
|
-
if (requestParameters['id'] == null) {
|
|
386
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVMInspectionStatus().');
|
|
387
|
-
}
|
|
388
384
|
const queryParameters = {};
|
|
385
|
+
if (requestParameters['byExpression'] != null) {
|
|
386
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
387
|
+
}
|
|
388
|
+
if (requestParameters['sort'] != null) {
|
|
389
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
390
|
+
}
|
|
391
|
+
if (requestParameters['page'] != null) {
|
|
392
|
+
queryParameters['page'] = requestParameters['page'];
|
|
393
|
+
}
|
|
394
|
+
if (requestParameters['pageSize'] != null) {
|
|
395
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
396
|
+
}
|
|
389
397
|
const headerParameters = {};
|
|
390
|
-
let urlPath = `/vms
|
|
391
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
398
|
+
let urlPath = `/vms`;
|
|
392
399
|
return {
|
|
393
400
|
path: urlPath,
|
|
394
401
|
method: 'GET',
|
|
@@ -398,44 +405,32 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
398
405
|
});
|
|
399
406
|
}
|
|
400
407
|
/**
|
|
401
|
-
* Get
|
|
408
|
+
* Get list of VMs with filtering and pagination
|
|
402
409
|
*/
|
|
403
|
-
|
|
410
|
+
getVMsRaw(requestParameters, initOverrides) {
|
|
404
411
|
return __awaiter(this, void 0, void 0, function* () {
|
|
405
|
-
const requestOptions = yield this.
|
|
412
|
+
const requestOptions = yield this.getVMsRequestOpts(requestParameters);
|
|
406
413
|
const response = yield this.request(requestOptions, initOverrides);
|
|
407
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
414
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VirtualMachineListResponseFromJSON(jsonValue));
|
|
408
415
|
});
|
|
409
416
|
}
|
|
410
417
|
/**
|
|
411
|
-
* Get
|
|
418
|
+
* Get list of VMs with filtering and pagination
|
|
412
419
|
*/
|
|
413
|
-
|
|
414
|
-
return __awaiter(this,
|
|
415
|
-
const response = yield this.
|
|
420
|
+
getVMs() {
|
|
421
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
422
|
+
const response = yield this.getVMsRaw(requestParameters, initOverrides);
|
|
416
423
|
return yield response.value();
|
|
417
424
|
});
|
|
418
425
|
}
|
|
419
426
|
/**
|
|
420
|
-
* Creates request options for
|
|
427
|
+
* Creates request options for getVddkStatus without sending the request
|
|
421
428
|
*/
|
|
422
|
-
|
|
429
|
+
getVddkStatusRequestOpts() {
|
|
423
430
|
return __awaiter(this, void 0, void 0, function* () {
|
|
424
431
|
const queryParameters = {};
|
|
425
|
-
if (requestParameters['byExpression'] != null) {
|
|
426
|
-
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
427
|
-
}
|
|
428
|
-
if (requestParameters['sort'] != null) {
|
|
429
|
-
queryParameters['sort'] = requestParameters['sort'];
|
|
430
|
-
}
|
|
431
|
-
if (requestParameters['page'] != null) {
|
|
432
|
-
queryParameters['page'] = requestParameters['page'];
|
|
433
|
-
}
|
|
434
|
-
if (requestParameters['pageSize'] != null) {
|
|
435
|
-
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
436
|
-
}
|
|
437
432
|
const headerParameters = {};
|
|
438
|
-
let urlPath = `/
|
|
433
|
+
let urlPath = `/vddk`;
|
|
439
434
|
return {
|
|
440
435
|
path: urlPath,
|
|
441
436
|
method: 'GET',
|
|
@@ -445,21 +440,21 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
445
440
|
});
|
|
446
441
|
}
|
|
447
442
|
/**
|
|
448
|
-
* Get
|
|
443
|
+
* Get VDDK status
|
|
449
444
|
*/
|
|
450
|
-
|
|
445
|
+
getVddkStatusRaw(initOverrides) {
|
|
451
446
|
return __awaiter(this, void 0, void 0, function* () {
|
|
452
|
-
const requestOptions = yield this.
|
|
447
|
+
const requestOptions = yield this.getVddkStatusRequestOpts();
|
|
453
448
|
const response = yield this.request(requestOptions, initOverrides);
|
|
454
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
449
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
455
450
|
});
|
|
456
451
|
}
|
|
457
452
|
/**
|
|
458
|
-
* Get
|
|
453
|
+
* Get VDDK status
|
|
459
454
|
*/
|
|
460
|
-
|
|
461
|
-
return __awaiter(this,
|
|
462
|
-
const response = yield this.
|
|
455
|
+
getVddkStatus(initOverrides) {
|
|
456
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
457
|
+
const response = yield this.getVddkStatusRaw(initOverrides);
|
|
463
458
|
return yield response.value();
|
|
464
459
|
});
|
|
465
460
|
}
|
|
@@ -514,7 +509,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
514
509
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
515
510
|
}
|
|
516
511
|
const headerParameters = {};
|
|
517
|
-
let urlPath = `/
|
|
512
|
+
let urlPath = `/groups`;
|
|
518
513
|
return {
|
|
519
514
|
path: urlPath,
|
|
520
515
|
method: 'GET',
|
|
@@ -552,7 +547,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
552
547
|
}
|
|
553
548
|
const queryParameters = {};
|
|
554
549
|
const headerParameters = {};
|
|
555
|
-
let urlPath = `/vms/{id}/
|
|
550
|
+
let urlPath = `/vms/{id}/inspection`;
|
|
556
551
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
557
552
|
return {
|
|
558
553
|
path: urlPath,
|
|
@@ -672,7 +667,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
672
667
|
const queryParameters = {};
|
|
673
668
|
const headerParameters = {};
|
|
674
669
|
headerParameters['Content-Type'] = 'application/json';
|
|
675
|
-
let urlPath = `/
|
|
670
|
+
let urlPath = `/inspector`;
|
|
676
671
|
return {
|
|
677
672
|
path: urlPath,
|
|
678
673
|
method: 'POST',
|
|
@@ -742,7 +737,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
742
737
|
return __awaiter(this, void 0, void 0, function* () {
|
|
743
738
|
const queryParameters = {};
|
|
744
739
|
const headerParameters = {};
|
|
745
|
-
let urlPath = `/
|
|
740
|
+
let urlPath = `/inspector`;
|
|
746
741
|
return {
|
|
747
742
|
path: urlPath,
|
|
748
743
|
method: 'DELETE',
|
|
@@ -784,7 +779,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
784
779
|
const queryParameters = {};
|
|
785
780
|
const headerParameters = {};
|
|
786
781
|
headerParameters['Content-Type'] = 'application/json';
|
|
787
|
-
let urlPath = `/
|
|
782
|
+
let urlPath = `/groups/{id}`;
|
|
788
783
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
789
784
|
return {
|
|
790
785
|
path: urlPath,
|
|
@@ -859,7 +854,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
859
854
|
return __awaiter(this, void 0, void 0, function* () {
|
|
860
855
|
const requestOptions = yield this.vddkPostRequestOpts(requestParameters);
|
|
861
856
|
const response = yield this.request(requestOptions, initOverrides);
|
|
862
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
857
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
863
858
|
});
|
|
864
859
|
}
|
|
865
860
|
/**
|
|
@@ -38,8 +38,8 @@ export interface AgentStatus {
|
|
|
38
38
|
* @export
|
|
39
39
|
*/
|
|
40
40
|
export declare const AgentStatusModeEnum: {
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
41
|
+
readonly AgentStatusModeConnected: "connected";
|
|
42
|
+
readonly AgentStatusModeDisconnected: "disconnected";
|
|
43
43
|
};
|
|
44
44
|
export type AgentStatusModeEnum = typeof AgentStatusModeEnum[keyof typeof AgentStatusModeEnum];
|
|
45
45
|
/**
|
|
@@ -32,13 +32,12 @@ export interface CollectorStatus {
|
|
|
32
32
|
* @export
|
|
33
33
|
*/
|
|
34
34
|
export declare const CollectorStatusStatusEnum: {
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly Error: "error";
|
|
35
|
+
readonly CollectorStatusStatusReady: "ready";
|
|
36
|
+
readonly CollectorStatusStatusConnecting: "connecting";
|
|
37
|
+
readonly CollectorStatusStatusCollecting: "collecting";
|
|
38
|
+
readonly CollectorStatusStatusParsing: "parsing";
|
|
39
|
+
readonly CollectorStatusStatusCollected: "collected";
|
|
40
|
+
readonly CollectorStatusStatusError: "error";
|
|
42
41
|
};
|
|
43
42
|
export type CollectorStatusStatusEnum = typeof CollectorStatusStatusEnum[keyof typeof CollectorStatusStatusEnum];
|
|
44
43
|
/**
|
|
@@ -15,13 +15,12 @@
|
|
|
15
15
|
* @export
|
|
16
16
|
*/
|
|
17
17
|
export const CollectorStatusStatusEnum = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
Error: 'error'
|
|
18
|
+
CollectorStatusStatusReady: 'ready',
|
|
19
|
+
CollectorStatusStatusConnecting: 'connecting',
|
|
20
|
+
CollectorStatusStatusCollecting: 'collecting',
|
|
21
|
+
CollectorStatusStatusParsing: 'parsing',
|
|
22
|
+
CollectorStatusStatusCollected: 'collected',
|
|
23
|
+
CollectorStatusStatusError: 'error'
|
|
25
24
|
};
|
|
26
25
|
/**
|
|
27
26
|
* Check if a given object implements the CollectorStatus interface.
|
|
@@ -32,13 +32,13 @@ export interface InspectorStatus {
|
|
|
32
32
|
* @export
|
|
33
33
|
*/
|
|
34
34
|
export declare const InspectorStatusStateEnum: {
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly
|
|
35
|
+
readonly InspectorStatusStateReady: "ready";
|
|
36
|
+
readonly InspectorStatusStateInitiating: "Initiating";
|
|
37
|
+
readonly InspectorStatusStateRunning: "running";
|
|
38
|
+
readonly InspectorStatusStateCanceling: "canceling";
|
|
39
|
+
readonly InspectorStatusStateCanceled: "canceled";
|
|
40
|
+
readonly InspectorStatusStateCompleted: "completed";
|
|
41
|
+
readonly InspectorStatusStateError: "error";
|
|
42
42
|
};
|
|
43
43
|
export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
|
|
44
44
|
/**
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
* @export
|
|
16
16
|
*/
|
|
17
17
|
export const InspectorStatusStateEnum = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
InspectorStatusStateReady: 'ready',
|
|
19
|
+
InspectorStatusStateInitiating: 'Initiating',
|
|
20
|
+
InspectorStatusStateRunning: 'running',
|
|
21
|
+
InspectorStatusStateCanceling: 'canceling',
|
|
22
|
+
InspectorStatusStateCanceled: 'canceled',
|
|
23
|
+
InspectorStatusStateCompleted: 'completed',
|
|
24
|
+
InspectorStatusStateError: 'error'
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the InspectorStatus interface.
|
|
@@ -38,12 +38,12 @@ export interface VMIssue {
|
|
|
38
38
|
* @export
|
|
39
39
|
*/
|
|
40
40
|
export declare const VMIssueCategoryEnum: {
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
41
|
+
readonly VMIssueCategoryCritical: "Critical";
|
|
42
|
+
readonly VMIssueCategoryWarning: "Warning";
|
|
43
|
+
readonly VMIssueCategoryInformation: "Information";
|
|
44
|
+
readonly VMIssueCategoryAdvisory: "Advisory";
|
|
45
|
+
readonly VMIssueCategoryError: "Error";
|
|
46
|
+
readonly VMIssueCategoryOther: "Other";
|
|
47
47
|
};
|
|
48
48
|
export type VMIssueCategoryEnum = typeof VMIssueCategoryEnum[keyof typeof VMIssueCategoryEnum];
|
|
49
49
|
/**
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
* @export
|
|
16
16
|
*/
|
|
17
17
|
export const VMIssueCategoryEnum = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
VMIssueCategoryCritical: 'Critical',
|
|
19
|
+
VMIssueCategoryWarning: 'Warning',
|
|
20
|
+
VMIssueCategoryInformation: 'Information',
|
|
21
|
+
VMIssueCategoryAdvisory: 'Advisory',
|
|
22
|
+
VMIssueCategoryError: 'Error',
|
|
23
|
+
VMIssueCategoryOther: 'Other'
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
26
|
* Check if a given object implements the VMIssue interface.
|