@openshift-migration-advisor/agent-sdk 0.8.0-0a190192e598 → 0.8.0-a3f90da0e31d
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 +4 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +15 -14
- package/dist/apis/DefaultApi.d.ts +16 -51
- package/dist/apis/DefaultApi.js +18 -58
- package/dist/esm/apis/DefaultApi.d.ts +16 -51
- package/dist/esm/apis/DefaultApi.js +18 -58
- package/dist/esm/models/InspectorStatus.d.ts +0 -1
- package/dist/esm/models/InspectorStatus.js +0 -1
- package/dist/esm/models/VMs.d.ts +9 -0
- package/dist/esm/models/VMs.js +2 -0
- package/dist/esm/models/VirtualMachine.d.ts +7 -1
- package/dist/esm/models/VirtualMachine.js +4 -4
- package/dist/esm/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/esm/models/VirtualMachineDetail.js +3 -3
- package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
- package/dist/esm/models/VmInspectionConcern.js +51 -0
- package/dist/esm/models/VmInspectionResults.d.ts +33 -0
- package/dist/esm/models/VmInspectionResults.js +42 -0
- package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
- package/dist/esm/models/VmInspectionStatus.js +1 -2
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/InspectorStatus.d.ts +0 -1
- package/dist/models/InspectorStatus.js +0 -1
- package/dist/models/VMs.d.ts +9 -0
- package/dist/models/VMs.js +2 -0
- package/dist/models/VirtualMachine.d.ts +7 -1
- package/dist/models/VirtualMachine.js +4 -4
- package/dist/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/models/VirtualMachineDetail.js +3 -3
- package/dist/models/VmInspectionConcern.d.ts +44 -0
- package/dist/models/VmInspectionConcern.js +58 -0
- package/dist/models/VmInspectionResults.d.ts +33 -0
- package/dist/models/VmInspectionResults.js +49 -0
- package/dist/models/VmInspectionStatus.d.ts +0 -1
- package/dist/models/VmInspectionStatus.js +1 -2
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/runtime.js +1 -1
- package/docs/DefaultApi.md +22 -89
- package/docs/VMs.md +2 -0
- package/docs/VirtualMachine.md +4 -2
- package/docs/VirtualMachineDetail.md +1 -1
- package/docs/VmInspectionConcern.md +39 -0
- package/docs/VmInspectionResults.md +35 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +29 -103
- package/src/models/InspectorStatus.ts +0 -1
- package/src/models/VMs.ts +9 -0
- package/src/models/VirtualMachine.ts +11 -4
- package/src/models/VirtualMachineDetail.ts +11 -11
- package/src/models/VmInspectionConcern.ts +84 -0
- package/src/models/VmInspectionResults.ts +73 -0
- package/src/models/VmInspectionStatus.ts +1 -2
- package/src/models/index.ts +2 -0
- package/src/runtime.ts +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -41,6 +41,8 @@ docs/VersionInfo.md
|
|
|
41
41
|
docs/VirtualMachine.md
|
|
42
42
|
docs/VirtualMachineDetail.md
|
|
43
43
|
docs/VirtualMachineListResponse.md
|
|
44
|
+
docs/VmInspectionConcern.md
|
|
45
|
+
docs/VmInspectionResults.md
|
|
44
46
|
docs/VmInspectionStatus.md
|
|
45
47
|
package.json
|
|
46
48
|
src/apis/DefaultApi.ts
|
|
@@ -84,6 +86,8 @@ src/models/VersionInfo.ts
|
|
|
84
86
|
src/models/VirtualMachine.ts
|
|
85
87
|
src/models/VirtualMachineDetail.ts
|
|
86
88
|
src/models/VirtualMachineListResponse.ts
|
|
89
|
+
src/models/VmInspectionConcern.ts
|
|
90
|
+
src/models/VmInspectionResults.ts
|
|
87
91
|
src/models/VmInspectionStatus.ts
|
|
88
92
|
src/models/index.ts
|
|
89
93
|
src/runtime.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.22.0-SNAPSHOT
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/agent-sdk@0.8.0-
|
|
1
|
+
# @openshift-migration-advisor/agent-sdk@0.8.0-a3f90da0e31d
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -18,19 +18,19 @@ import {
|
|
|
18
18
|
Configuration,
|
|
19
19
|
DefaultApi,
|
|
20
20
|
} from '@openshift-migration-advisor/agent-sdk';
|
|
21
|
-
import type {
|
|
21
|
+
import type { AddVMToInspectionRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
22
22
|
|
|
23
23
|
async function example() {
|
|
24
24
|
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
25
25
|
const api = new DefaultApi();
|
|
26
26
|
|
|
27
27
|
const body = {
|
|
28
|
-
//
|
|
29
|
-
|
|
30
|
-
} satisfies
|
|
28
|
+
// string
|
|
29
|
+
id: id_example,
|
|
30
|
+
} satisfies AddVMToInspectionRequest;
|
|
31
31
|
|
|
32
32
|
try {
|
|
33
|
-
const data = await api.
|
|
33
|
+
const data = await api.addVMToInspection(body);
|
|
34
34
|
console.log(data);
|
|
35
35
|
} catch (error) {
|
|
36
36
|
console.error(error);
|
|
@@ -50,26 +50,25 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
50
50
|
|
|
51
51
|
| Class | Method | HTTP request | Description
|
|
52
52
|
| ----- | ------ | ------------ | -------------
|
|
53
|
-
*DefaultApi* | [**
|
|
53
|
+
*DefaultApi* | [**addVMToInspection**](docs/DefaultApi.md#addvmtoinspection) | **POST** /vms/{id}/inspection | Add VirtualMachine to inspection queue
|
|
54
54
|
*DefaultApi* | [**createGroup**](docs/DefaultApi.md#creategroupoperation) | **POST** /groups | Create a new group
|
|
55
55
|
*DefaultApi* | [**deleteGroup**](docs/DefaultApi.md#deletegroup) | **DELETE** /groups/{id} | Delete group
|
|
56
56
|
*DefaultApi* | [**getAgentStatus**](docs/DefaultApi.md#getagentstatus) | **GET** /agent | Get agent status
|
|
57
57
|
*DefaultApi* | [**getCollectorStatus**](docs/DefaultApi.md#getcollectorstatus) | **GET** /collector | Get collector status
|
|
58
58
|
*DefaultApi* | [**getGroup**](docs/DefaultApi.md#getgroup) | **GET** /groups/{id} | Get group by ID with its VMs
|
|
59
|
-
*DefaultApi* | [**getInspectorStatus**](docs/DefaultApi.md#getinspectorstatus) | **GET** /
|
|
59
|
+
*DefaultApi* | [**getInspectorStatus**](docs/DefaultApi.md#getinspectorstatus) | **GET** /inspector | Get inspector status
|
|
60
60
|
*DefaultApi* | [**getInventory**](docs/DefaultApi.md#getinventory) | **GET** /inventory | Get collected inventory
|
|
61
61
|
*DefaultApi* | [**getVM**](docs/DefaultApi.md#getvm) | **GET** /vms/{id} | Get details about a vm
|
|
62
|
-
*DefaultApi* | [**getVMInspectionStatus**](docs/DefaultApi.md#getvminspectionstatus) | **GET** /vms/{id}/inspector | Get inspection status for a specific VirtualMachine
|
|
63
62
|
*DefaultApi* | [**getVMs**](docs/DefaultApi.md#getvms) | **GET** /vms | Get list of VMs with filtering and pagination
|
|
64
63
|
*DefaultApi* | [**getVddkStatus**](docs/DefaultApi.md#getvddkstatus) | **GET** /vddk | Get VDDK status
|
|
65
64
|
*DefaultApi* | [**getVersion**](docs/DefaultApi.md#getversion) | **GET** /version | Get agent version information
|
|
66
65
|
*DefaultApi* | [**listGroups**](docs/DefaultApi.md#listgroups) | **GET** /groups | List all groups
|
|
67
|
-
*DefaultApi* | [**removeVMFromInspection**](docs/DefaultApi.md#removevmfrominspection) | **DELETE** /vms/{id}/
|
|
66
|
+
*DefaultApi* | [**removeVMFromInspection**](docs/DefaultApi.md#removevmfrominspection) | **DELETE** /vms/{id}/inspection | Remove VirtualMachine from inspection queue
|
|
68
67
|
*DefaultApi* | [**setAgentMode**](docs/DefaultApi.md#setagentmode) | **POST** /agent | Change agent mode
|
|
69
68
|
*DefaultApi* | [**startCollector**](docs/DefaultApi.md#startcollector) | **POST** /collector | Start inventory collection
|
|
70
|
-
*DefaultApi* | [**startInspection**](docs/DefaultApi.md#startinspection) | **POST** /
|
|
69
|
+
*DefaultApi* | [**startInspection**](docs/DefaultApi.md#startinspection) | **POST** /inspector | Start inspection for VMs
|
|
71
70
|
*DefaultApi* | [**stopCollector**](docs/DefaultApi.md#stopcollector) | **DELETE** /collector | Stop collection
|
|
72
|
-
*DefaultApi* | [**stopInspection**](docs/DefaultApi.md#stopinspection) | **DELETE** /
|
|
71
|
+
*DefaultApi* | [**stopInspection**](docs/DefaultApi.md#stopinspection) | **DELETE** /inspector | Stop inspector entirely
|
|
73
72
|
*DefaultApi* | [**updateGroup**](docs/DefaultApi.md#updategroupoperation) | **PATCH** /groups/{id} | Update group
|
|
74
73
|
*DefaultApi* | [**vddkPost**](docs/DefaultApi.md#vddkpost) | **POST** /vddk | Upload VDDK tarball
|
|
75
74
|
|
|
@@ -114,6 +113,8 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
114
113
|
- [VirtualMachine](docs/VirtualMachine.md)
|
|
115
114
|
- [VirtualMachineDetail](docs/VirtualMachineDetail.md)
|
|
116
115
|
- [VirtualMachineListResponse](docs/VirtualMachineListResponse.md)
|
|
116
|
+
- [VmInspectionConcern](docs/VmInspectionConcern.md)
|
|
117
|
+
- [VmInspectionResults](docs/VmInspectionResults.md)
|
|
117
118
|
- [VmInspectionStatus](docs/VmInspectionStatus.md)
|
|
118
119
|
|
|
119
120
|
### Authorization
|
|
@@ -128,8 +129,8 @@ and is automatically generated by the
|
|
|
128
129
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
129
130
|
|
|
130
131
|
- API version: `v1`
|
|
131
|
-
- Package version: `0.8.0-
|
|
132
|
-
- Generator version: `7.
|
|
132
|
+
- Package version: `0.8.0-a3f90da0e31d`
|
|
133
|
+
- Generator version: `7.22.0-SNAPSHOT`
|
|
133
134
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
134
135
|
|
|
135
136
|
The generated npm module supports the following:
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
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
|
|
15
|
-
|
|
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)
|
|
@@ -525,17 +502,17 @@ export interface DefaultApiInterface {
|
|
|
525
502
|
*/
|
|
526
503
|
export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
527
504
|
/**
|
|
528
|
-
* Creates request options for
|
|
505
|
+
* Creates request options for addVMToInspection without sending the request
|
|
529
506
|
*/
|
|
530
|
-
|
|
507
|
+
addVMToInspectionRequestOpts(requestParameters: AddVMToInspectionRequest): Promise<runtime.RequestOpts>;
|
|
531
508
|
/**
|
|
532
|
-
* Add
|
|
509
|
+
* Add VirtualMachine to inspection queue
|
|
533
510
|
*/
|
|
534
|
-
|
|
511
|
+
addVMToInspectionRaw(requestParameters: AddVMToInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmInspectionStatus>>;
|
|
535
512
|
/**
|
|
536
|
-
* Add
|
|
513
|
+
* Add VirtualMachine to inspection queue
|
|
537
514
|
*/
|
|
538
|
-
|
|
515
|
+
addVMToInspection(requestParameters: AddVMToInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmInspectionStatus>;
|
|
539
516
|
/**
|
|
540
517
|
* Creates request options for createGroup without sending the request
|
|
541
518
|
*/
|
|
@@ -632,18 +609,6 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
632
609
|
* Get details about a vm
|
|
633
610
|
*/
|
|
634
611
|
getVM(requestParameters: GetVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineDetail>;
|
|
635
|
-
/**
|
|
636
|
-
* Creates request options for getVMInspectionStatus without sending the request
|
|
637
|
-
*/
|
|
638
|
-
getVMInspectionStatusRequestOpts(requestParameters: GetVMInspectionStatusRequest): Promise<runtime.RequestOpts>;
|
|
639
|
-
/**
|
|
640
|
-
* Get inspection status for a specific VirtualMachine
|
|
641
|
-
*/
|
|
642
|
-
getVMInspectionStatusRaw(requestParameters: GetVMInspectionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmInspectionStatus>>;
|
|
643
|
-
/**
|
|
644
|
-
* Get inspection status for a specific VirtualMachine
|
|
645
|
-
*/
|
|
646
|
-
getVMInspectionStatus(requestParameters: GetVMInspectionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmInspectionStatus>;
|
|
647
612
|
/**
|
|
648
613
|
* Creates request options for getVMs without sending the request
|
|
649
614
|
*/
|
package/dist/apis/DefaultApi.js
CHANGED
|
@@ -30,42 +30,41 @@ const index_js_1 = require("../models/index.js");
|
|
|
30
30
|
*/
|
|
31
31
|
class DefaultApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
-
* Creates request options for
|
|
33
|
+
* Creates request options for addVMToInspection without sending the request
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
addVMToInspectionRequestOpts(requestParameters) {
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
if (requestParameters['
|
|
38
|
-
throw new runtime.RequiredError('
|
|
37
|
+
if (requestParameters['id'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling addVMToInspection().');
|
|
39
39
|
}
|
|
40
40
|
const queryParameters = {};
|
|
41
41
|
const headerParameters = {};
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
let urlPath = `/vms/{id}/inspection`;
|
|
43
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
44
44
|
return {
|
|
45
45
|
path: urlPath,
|
|
46
|
-
method: '
|
|
46
|
+
method: 'POST',
|
|
47
47
|
headers: headerParameters,
|
|
48
48
|
query: queryParameters,
|
|
49
|
-
body: requestParameters['requestBody'],
|
|
50
49
|
};
|
|
51
50
|
});
|
|
52
51
|
}
|
|
53
52
|
/**
|
|
54
|
-
* Add
|
|
53
|
+
* Add VirtualMachine to inspection queue
|
|
55
54
|
*/
|
|
56
|
-
|
|
55
|
+
addVMToInspectionRaw(requestParameters, initOverrides) {
|
|
57
56
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
const requestOptions = yield this.
|
|
57
|
+
const requestOptions = yield this.addVMToInspectionRequestOpts(requestParameters);
|
|
59
58
|
const response = yield this.request(requestOptions, initOverrides);
|
|
60
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.
|
|
59
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.VmInspectionStatusFromJSON)(jsonValue));
|
|
61
60
|
});
|
|
62
61
|
}
|
|
63
62
|
/**
|
|
64
|
-
* Add
|
|
63
|
+
* Add VirtualMachine to inspection queue
|
|
65
64
|
*/
|
|
66
|
-
|
|
65
|
+
addVMToInspection(requestParameters, initOverrides) {
|
|
67
66
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
-
const response = yield this.
|
|
67
|
+
const response = yield this.addVMToInspectionRaw(requestParameters, initOverrides);
|
|
69
68
|
return yield response.value();
|
|
70
69
|
});
|
|
71
70
|
}
|
|
@@ -272,7 +271,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
272
271
|
return __awaiter(this, void 0, void 0, function* () {
|
|
273
272
|
const queryParameters = {};
|
|
274
273
|
const headerParameters = {};
|
|
275
|
-
let urlPath = `/
|
|
274
|
+
let urlPath = `/inspector`;
|
|
276
275
|
return {
|
|
277
276
|
path: urlPath,
|
|
278
277
|
method: 'GET',
|
|
@@ -380,45 +379,6 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
380
379
|
return yield response.value();
|
|
381
380
|
});
|
|
382
381
|
}
|
|
383
|
-
/**
|
|
384
|
-
* Creates request options for getVMInspectionStatus without sending the request
|
|
385
|
-
*/
|
|
386
|
-
getVMInspectionStatusRequestOpts(requestParameters) {
|
|
387
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
388
|
-
if (requestParameters['id'] == null) {
|
|
389
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVMInspectionStatus().');
|
|
390
|
-
}
|
|
391
|
-
const queryParameters = {};
|
|
392
|
-
const headerParameters = {};
|
|
393
|
-
let urlPath = `/vms/{id}/inspector`;
|
|
394
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
395
|
-
return {
|
|
396
|
-
path: urlPath,
|
|
397
|
-
method: 'GET',
|
|
398
|
-
headers: headerParameters,
|
|
399
|
-
query: queryParameters,
|
|
400
|
-
};
|
|
401
|
-
});
|
|
402
|
-
}
|
|
403
|
-
/**
|
|
404
|
-
* Get inspection status for a specific VirtualMachine
|
|
405
|
-
*/
|
|
406
|
-
getVMInspectionStatusRaw(requestParameters, initOverrides) {
|
|
407
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
408
|
-
const requestOptions = yield this.getVMInspectionStatusRequestOpts(requestParameters);
|
|
409
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
410
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.VmInspectionStatusFromJSON)(jsonValue));
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
/**
|
|
414
|
-
* Get inspection status for a specific VirtualMachine
|
|
415
|
-
*/
|
|
416
|
-
getVMInspectionStatus(requestParameters, initOverrides) {
|
|
417
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
418
|
-
const response = yield this.getVMInspectionStatusRaw(requestParameters, initOverrides);
|
|
419
|
-
return yield response.value();
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
382
|
/**
|
|
423
383
|
* Creates request options for getVMs without sending the request
|
|
424
384
|
*/
|
|
@@ -590,7 +550,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
590
550
|
}
|
|
591
551
|
const queryParameters = {};
|
|
592
552
|
const headerParameters = {};
|
|
593
|
-
let urlPath = `/vms/{id}/
|
|
553
|
+
let urlPath = `/vms/{id}/inspection`;
|
|
594
554
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
595
555
|
return {
|
|
596
556
|
path: urlPath,
|
|
@@ -710,7 +670,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
710
670
|
const queryParameters = {};
|
|
711
671
|
const headerParameters = {};
|
|
712
672
|
headerParameters['Content-Type'] = 'application/json';
|
|
713
|
-
let urlPath = `/
|
|
673
|
+
let urlPath = `/inspector`;
|
|
714
674
|
return {
|
|
715
675
|
path: urlPath,
|
|
716
676
|
method: 'POST',
|
|
@@ -780,7 +740,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
780
740
|
return __awaiter(this, void 0, void 0, function* () {
|
|
781
741
|
const queryParameters = {};
|
|
782
742
|
const headerParameters = {};
|
|
783
|
-
let urlPath = `/
|
|
743
|
+
let urlPath = `/inspector`;
|
|
784
744
|
return {
|
|
785
745
|
path: urlPath,
|
|
786
746
|
method: 'DELETE',
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
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
|
|
15
|
-
|
|
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)
|
|
@@ -525,17 +502,17 @@ export interface DefaultApiInterface {
|
|
|
525
502
|
*/
|
|
526
503
|
export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
527
504
|
/**
|
|
528
|
-
* Creates request options for
|
|
505
|
+
* Creates request options for addVMToInspection without sending the request
|
|
529
506
|
*/
|
|
530
|
-
|
|
507
|
+
addVMToInspectionRequestOpts(requestParameters: AddVMToInspectionRequest): Promise<runtime.RequestOpts>;
|
|
531
508
|
/**
|
|
532
|
-
* Add
|
|
509
|
+
* Add VirtualMachine to inspection queue
|
|
533
510
|
*/
|
|
534
|
-
|
|
511
|
+
addVMToInspectionRaw(requestParameters: AddVMToInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmInspectionStatus>>;
|
|
535
512
|
/**
|
|
536
|
-
* Add
|
|
513
|
+
* Add VirtualMachine to inspection queue
|
|
537
514
|
*/
|
|
538
|
-
|
|
515
|
+
addVMToInspection(requestParameters: AddVMToInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmInspectionStatus>;
|
|
539
516
|
/**
|
|
540
517
|
* Creates request options for createGroup without sending the request
|
|
541
518
|
*/
|
|
@@ -632,18 +609,6 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
632
609
|
* Get details about a vm
|
|
633
610
|
*/
|
|
634
611
|
getVM(requestParameters: GetVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineDetail>;
|
|
635
|
-
/**
|
|
636
|
-
* Creates request options for getVMInspectionStatus without sending the request
|
|
637
|
-
*/
|
|
638
|
-
getVMInspectionStatusRequestOpts(requestParameters: GetVMInspectionStatusRequest): Promise<runtime.RequestOpts>;
|
|
639
|
-
/**
|
|
640
|
-
* Get inspection status for a specific VirtualMachine
|
|
641
|
-
*/
|
|
642
|
-
getVMInspectionStatusRaw(requestParameters: GetVMInspectionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmInspectionStatus>>;
|
|
643
|
-
/**
|
|
644
|
-
* Get inspection status for a specific VirtualMachine
|
|
645
|
-
*/
|
|
646
|
-
getVMInspectionStatus(requestParameters: GetVMInspectionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmInspectionStatus>;
|
|
647
612
|
/**
|
|
648
613
|
* Creates request options for getVMs without sending the request
|
|
649
614
|
*/
|
|
@@ -27,42 +27,41 @@ import { AgentModeRequestToJSON, AgentStatusFromJSON, CollectorStartRequestToJSO
|
|
|
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
|
}
|
|
@@ -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',
|
|
@@ -377,45 +376,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
377
376
|
return yield response.value();
|
|
378
377
|
});
|
|
379
378
|
}
|
|
380
|
-
/**
|
|
381
|
-
* Creates request options for getVMInspectionStatus without sending the request
|
|
382
|
-
*/
|
|
383
|
-
getVMInspectionStatusRequestOpts(requestParameters) {
|
|
384
|
-
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
|
-
const queryParameters = {};
|
|
389
|
-
const headerParameters = {};
|
|
390
|
-
let urlPath = `/vms/{id}/inspector`;
|
|
391
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
392
|
-
return {
|
|
393
|
-
path: urlPath,
|
|
394
|
-
method: 'GET',
|
|
395
|
-
headers: headerParameters,
|
|
396
|
-
query: queryParameters,
|
|
397
|
-
};
|
|
398
|
-
});
|
|
399
|
-
}
|
|
400
|
-
/**
|
|
401
|
-
* Get inspection status for a specific VirtualMachine
|
|
402
|
-
*/
|
|
403
|
-
getVMInspectionStatusRaw(requestParameters, initOverrides) {
|
|
404
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
405
|
-
const requestOptions = yield this.getVMInspectionStatusRequestOpts(requestParameters);
|
|
406
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
407
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => VmInspectionStatusFromJSON(jsonValue));
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
/**
|
|
411
|
-
* Get inspection status for a specific VirtualMachine
|
|
412
|
-
*/
|
|
413
|
-
getVMInspectionStatus(requestParameters, initOverrides) {
|
|
414
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
415
|
-
const response = yield this.getVMInspectionStatusRaw(requestParameters, initOverrides);
|
|
416
|
-
return yield response.value();
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
379
|
/**
|
|
420
380
|
* Creates request options for getVMs without sending the request
|
|
421
381
|
*/
|
|
@@ -587,7 +547,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
587
547
|
}
|
|
588
548
|
const queryParameters = {};
|
|
589
549
|
const headerParameters = {};
|
|
590
|
-
let urlPath = `/vms/{id}/
|
|
550
|
+
let urlPath = `/vms/{id}/inspection`;
|
|
591
551
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
592
552
|
return {
|
|
593
553
|
path: urlPath,
|
|
@@ -707,7 +667,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
707
667
|
const queryParameters = {};
|
|
708
668
|
const headerParameters = {};
|
|
709
669
|
headerParameters['Content-Type'] = 'application/json';
|
|
710
|
-
let urlPath = `/
|
|
670
|
+
let urlPath = `/inspector`;
|
|
711
671
|
return {
|
|
712
672
|
path: urlPath,
|
|
713
673
|
method: 'POST',
|
|
@@ -777,7 +737,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
777
737
|
return __awaiter(this, void 0, void 0, function* () {
|
|
778
738
|
const queryParameters = {};
|
|
779
739
|
const headerParameters = {};
|
|
780
|
-
let urlPath = `/
|
|
740
|
+
let urlPath = `/inspector`;
|
|
781
741
|
return {
|
|
782
742
|
path: urlPath,
|
|
783
743
|
method: 'DELETE',
|
|
@@ -35,7 +35,6 @@ export declare const InspectorStatusStateEnum: {
|
|
|
35
35
|
readonly InspectorStatusStateReady: "ready";
|
|
36
36
|
readonly InspectorStatusStateInitiating: "Initiating";
|
|
37
37
|
readonly InspectorStatusStateRunning: "running";
|
|
38
|
-
readonly InspectorStatusStateCanceling: "canceling";
|
|
39
38
|
readonly InspectorStatusStateCanceled: "canceled";
|
|
40
39
|
readonly InspectorStatusStateCompleted: "completed";
|
|
41
40
|
readonly InspectorStatusStateError: "error";
|
|
@@ -18,7 +18,6 @@ export const InspectorStatusStateEnum = {
|
|
|
18
18
|
InspectorStatusStateReady: 'ready',
|
|
19
19
|
InspectorStatusStateInitiating: 'Initiating',
|
|
20
20
|
InspectorStatusStateRunning: 'running',
|
|
21
|
-
InspectorStatusStateCanceling: 'canceling',
|
|
22
21
|
InspectorStatusStateCanceled: 'canceled',
|
|
23
22
|
InspectorStatusStateCompleted: 'completed',
|
|
24
23
|
InspectorStatusStateError: 'error'
|