@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
package/.openapi-generator/FILES
CHANGED
|
@@ -36,7 +36,7 @@ docs/VMNIC.md
|
|
|
36
36
|
docs/VMResourceBreakdown.md
|
|
37
37
|
docs/VMs.md
|
|
38
38
|
docs/VcenterCredentials.md
|
|
39
|
-
docs/
|
|
39
|
+
docs/VddkProperties.md
|
|
40
40
|
docs/VersionInfo.md
|
|
41
41
|
docs/VirtualMachine.md
|
|
42
42
|
docs/VirtualMachineDetail.md
|
|
@@ -79,7 +79,7 @@ src/models/VMNIC.ts
|
|
|
79
79
|
src/models/VMResourceBreakdown.ts
|
|
80
80
|
src/models/VMs.ts
|
|
81
81
|
src/models/VcenterCredentials.ts
|
|
82
|
-
src/models/
|
|
82
|
+
src/models/VddkProperties.ts
|
|
83
83
|
src/models/VersionInfo.ts
|
|
84
84
|
src/models/VirtualMachine.ts
|
|
85
85
|
src/models/VirtualMachineDetail.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/agent-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/agent-sdk@0.8.0-f2b45ba15f28
|
|
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,26 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
50
50
|
|
|
51
51
|
| Class | Method | HTTP request | Description
|
|
52
52
|
| ----- | ------ | ------------ | -------------
|
|
53
|
-
*DefaultApi* | [**
|
|
54
|
-
*DefaultApi* | [**createGroup**](docs/DefaultApi.md#creategroupoperation) | **POST** /
|
|
55
|
-
*DefaultApi* | [**deleteGroup**](docs/DefaultApi.md#deletegroup) | **DELETE** /
|
|
53
|
+
*DefaultApi* | [**addVMToInspection**](docs/DefaultApi.md#addvmtoinspection) | **POST** /vms/{id}/inspection | Add VirtualMachine to inspection queue
|
|
54
|
+
*DefaultApi* | [**createGroup**](docs/DefaultApi.md#creategroupoperation) | **POST** /groups | Create a new group
|
|
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
|
-
*DefaultApi* | [**getGroup**](docs/DefaultApi.md#getgroup) | **GET** /
|
|
59
|
-
*DefaultApi* | [**getInspectorStatus**](docs/DefaultApi.md#getinspectorstatus) | **GET** /
|
|
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** /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
|
|
63
|
+
*DefaultApi* | [**getVddkStatus**](docs/DefaultApi.md#getvddkstatus) | **GET** /vddk | Get VDDK status
|
|
64
64
|
*DefaultApi* | [**getVersion**](docs/DefaultApi.md#getversion) | **GET** /version | Get agent version information
|
|
65
|
-
*DefaultApi* | [**listGroups**](docs/DefaultApi.md#listgroups) | **GET** /
|
|
66
|
-
*DefaultApi* | [**removeVMFromInspection**](docs/DefaultApi.md#removevmfrominspection) | **DELETE** /vms/{id}/
|
|
65
|
+
*DefaultApi* | [**listGroups**](docs/DefaultApi.md#listgroups) | **GET** /groups | List all groups
|
|
66
|
+
*DefaultApi* | [**removeVMFromInspection**](docs/DefaultApi.md#removevmfrominspection) | **DELETE** /vms/{id}/inspection | Remove VirtualMachine from inspection queue
|
|
67
67
|
*DefaultApi* | [**setAgentMode**](docs/DefaultApi.md#setagentmode) | **POST** /agent | Change agent mode
|
|
68
68
|
*DefaultApi* | [**startCollector**](docs/DefaultApi.md#startcollector) | **POST** /collector | Start inventory collection
|
|
69
|
-
*DefaultApi* | [**startInspection**](docs/DefaultApi.md#startinspection) | **POST** /
|
|
69
|
+
*DefaultApi* | [**startInspection**](docs/DefaultApi.md#startinspection) | **POST** /inspector | Start inspection for VMs
|
|
70
70
|
*DefaultApi* | [**stopCollector**](docs/DefaultApi.md#stopcollector) | **DELETE** /collector | Stop collection
|
|
71
|
-
*DefaultApi* | [**stopInspection**](docs/DefaultApi.md#stopinspection) | **DELETE** /
|
|
72
|
-
*DefaultApi* | [**updateGroup**](docs/DefaultApi.md#updategroupoperation) | **PATCH** /
|
|
71
|
+
*DefaultApi* | [**stopInspection**](docs/DefaultApi.md#stopinspection) | **DELETE** /inspector | Stop inspector entirely
|
|
72
|
+
*DefaultApi* | [**updateGroup**](docs/DefaultApi.md#updategroupoperation) | **PATCH** /groups/{id} | Update group
|
|
73
73
|
*DefaultApi* | [**vddkPost**](docs/DefaultApi.md#vddkpost) | **POST** /vddk | Upload VDDK tarball
|
|
74
74
|
|
|
75
75
|
|
|
@@ -108,7 +108,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
108
108
|
- [VMResourceBreakdown](docs/VMResourceBreakdown.md)
|
|
109
109
|
- [VMs](docs/VMs.md)
|
|
110
110
|
- [VcenterCredentials](docs/VcenterCredentials.md)
|
|
111
|
-
- [
|
|
111
|
+
- [VddkProperties](docs/VddkProperties.md)
|
|
112
112
|
- [VersionInfo](docs/VersionInfo.md)
|
|
113
113
|
- [VirtualMachine](docs/VirtualMachine.md)
|
|
114
114
|
- [VirtualMachineDetail](docs/VirtualMachineDetail.md)
|
|
@@ -127,7 +127,7 @@ and is automatically generated by the
|
|
|
127
127
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
128
128
|
|
|
129
129
|
- API version: `v1`
|
|
130
|
-
- Package version: `0.
|
|
130
|
+
- Package version: `0.8.0-f2b45ba15f28`
|
|
131
131
|
- Generator version: `7.21.0-SNAPSHOT`
|
|
132
132
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
133
133
|
|
|
@@ -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
|
}
|
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
|
}
|
|
@@ -80,7 +79,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
80
79
|
const queryParameters = {};
|
|
81
80
|
const headerParameters = {};
|
|
82
81
|
headerParameters['Content-Type'] = 'application/json';
|
|
83
|
-
let urlPath = `/
|
|
82
|
+
let urlPath = `/groups`;
|
|
84
83
|
return {
|
|
85
84
|
path: urlPath,
|
|
86
85
|
method: 'POST',
|
|
@@ -119,7 +118,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
119
118
|
}
|
|
120
119
|
const queryParameters = {};
|
|
121
120
|
const headerParameters = {};
|
|
122
|
-
let urlPath = `/
|
|
121
|
+
let urlPath = `/groups/{id}`;
|
|
123
122
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
124
123
|
return {
|
|
125
124
|
path: urlPath,
|
|
@@ -236,7 +235,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
236
235
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
237
236
|
}
|
|
238
237
|
const headerParameters = {};
|
|
239
|
-
let urlPath = `/
|
|
238
|
+
let urlPath = `/groups/{id}`;
|
|
240
239
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
241
240
|
return {
|
|
242
241
|
path: urlPath,
|
|
@@ -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',
|
|
@@ -381,17 +380,25 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
381
380
|
});
|
|
382
381
|
}
|
|
383
382
|
/**
|
|
384
|
-
* Creates request options for
|
|
383
|
+
* Creates request options for getVMs without sending the request
|
|
385
384
|
*/
|
|
386
|
-
|
|
385
|
+
getVMsRequestOpts(requestParameters) {
|
|
387
386
|
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
387
|
const queryParameters = {};
|
|
388
|
+
if (requestParameters['byExpression'] != null) {
|
|
389
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
390
|
+
}
|
|
391
|
+
if (requestParameters['sort'] != null) {
|
|
392
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
393
|
+
}
|
|
394
|
+
if (requestParameters['page'] != null) {
|
|
395
|
+
queryParameters['page'] = requestParameters['page'];
|
|
396
|
+
}
|
|
397
|
+
if (requestParameters['pageSize'] != null) {
|
|
398
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
399
|
+
}
|
|
392
400
|
const headerParameters = {};
|
|
393
|
-
let urlPath = `/vms
|
|
394
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
401
|
+
let urlPath = `/vms`;
|
|
395
402
|
return {
|
|
396
403
|
path: urlPath,
|
|
397
404
|
method: 'GET',
|
|
@@ -401,44 +408,32 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
401
408
|
});
|
|
402
409
|
}
|
|
403
410
|
/**
|
|
404
|
-
* Get
|
|
411
|
+
* Get list of VMs with filtering and pagination
|
|
405
412
|
*/
|
|
406
|
-
|
|
413
|
+
getVMsRaw(requestParameters, initOverrides) {
|
|
407
414
|
return __awaiter(this, void 0, void 0, function* () {
|
|
408
|
-
const requestOptions = yield this.
|
|
415
|
+
const requestOptions = yield this.getVMsRequestOpts(requestParameters);
|
|
409
416
|
const response = yield this.request(requestOptions, initOverrides);
|
|
410
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.
|
|
417
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.VirtualMachineListResponseFromJSON)(jsonValue));
|
|
411
418
|
});
|
|
412
419
|
}
|
|
413
420
|
/**
|
|
414
|
-
* Get
|
|
421
|
+
* Get list of VMs with filtering and pagination
|
|
415
422
|
*/
|
|
416
|
-
|
|
417
|
-
return __awaiter(this,
|
|
418
|
-
const response = yield this.
|
|
423
|
+
getVMs() {
|
|
424
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
425
|
+
const response = yield this.getVMsRaw(requestParameters, initOverrides);
|
|
419
426
|
return yield response.value();
|
|
420
427
|
});
|
|
421
428
|
}
|
|
422
429
|
/**
|
|
423
|
-
* Creates request options for
|
|
430
|
+
* Creates request options for getVddkStatus without sending the request
|
|
424
431
|
*/
|
|
425
|
-
|
|
432
|
+
getVddkStatusRequestOpts() {
|
|
426
433
|
return __awaiter(this, void 0, void 0, function* () {
|
|
427
434
|
const queryParameters = {};
|
|
428
|
-
if (requestParameters['byExpression'] != null) {
|
|
429
|
-
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
430
|
-
}
|
|
431
|
-
if (requestParameters['sort'] != null) {
|
|
432
|
-
queryParameters['sort'] = requestParameters['sort'];
|
|
433
|
-
}
|
|
434
|
-
if (requestParameters['page'] != null) {
|
|
435
|
-
queryParameters['page'] = requestParameters['page'];
|
|
436
|
-
}
|
|
437
|
-
if (requestParameters['pageSize'] != null) {
|
|
438
|
-
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
439
|
-
}
|
|
440
435
|
const headerParameters = {};
|
|
441
|
-
let urlPath = `/
|
|
436
|
+
let urlPath = `/vddk`;
|
|
442
437
|
return {
|
|
443
438
|
path: urlPath,
|
|
444
439
|
method: 'GET',
|
|
@@ -448,21 +443,21 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
448
443
|
});
|
|
449
444
|
}
|
|
450
445
|
/**
|
|
451
|
-
* Get
|
|
446
|
+
* Get VDDK status
|
|
452
447
|
*/
|
|
453
|
-
|
|
448
|
+
getVddkStatusRaw(initOverrides) {
|
|
454
449
|
return __awaiter(this, void 0, void 0, function* () {
|
|
455
|
-
const requestOptions = yield this.
|
|
450
|
+
const requestOptions = yield this.getVddkStatusRequestOpts();
|
|
456
451
|
const response = yield this.request(requestOptions, initOverrides);
|
|
457
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.
|
|
452
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.VddkPropertiesFromJSON)(jsonValue));
|
|
458
453
|
});
|
|
459
454
|
}
|
|
460
455
|
/**
|
|
461
|
-
* Get
|
|
456
|
+
* Get VDDK status
|
|
462
457
|
*/
|
|
463
|
-
|
|
464
|
-
return __awaiter(this,
|
|
465
|
-
const response = yield this.
|
|
458
|
+
getVddkStatus(initOverrides) {
|
|
459
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
460
|
+
const response = yield this.getVddkStatusRaw(initOverrides);
|
|
466
461
|
return yield response.value();
|
|
467
462
|
});
|
|
468
463
|
}
|
|
@@ -517,7 +512,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
517
512
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
518
513
|
}
|
|
519
514
|
const headerParameters = {};
|
|
520
|
-
let urlPath = `/
|
|
515
|
+
let urlPath = `/groups`;
|
|
521
516
|
return {
|
|
522
517
|
path: urlPath,
|
|
523
518
|
method: 'GET',
|
|
@@ -555,7 +550,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
555
550
|
}
|
|
556
551
|
const queryParameters = {};
|
|
557
552
|
const headerParameters = {};
|
|
558
|
-
let urlPath = `/vms/{id}/
|
|
553
|
+
let urlPath = `/vms/{id}/inspection`;
|
|
559
554
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
560
555
|
return {
|
|
561
556
|
path: urlPath,
|
|
@@ -675,7 +670,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
675
670
|
const queryParameters = {};
|
|
676
671
|
const headerParameters = {};
|
|
677
672
|
headerParameters['Content-Type'] = 'application/json';
|
|
678
|
-
let urlPath = `/
|
|
673
|
+
let urlPath = `/inspector`;
|
|
679
674
|
return {
|
|
680
675
|
path: urlPath,
|
|
681
676
|
method: 'POST',
|
|
@@ -745,7 +740,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
745
740
|
return __awaiter(this, void 0, void 0, function* () {
|
|
746
741
|
const queryParameters = {};
|
|
747
742
|
const headerParameters = {};
|
|
748
|
-
let urlPath = `/
|
|
743
|
+
let urlPath = `/inspector`;
|
|
749
744
|
return {
|
|
750
745
|
path: urlPath,
|
|
751
746
|
method: 'DELETE',
|
|
@@ -787,7 +782,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
787
782
|
const queryParameters = {};
|
|
788
783
|
const headerParameters = {};
|
|
789
784
|
headerParameters['Content-Type'] = 'application/json';
|
|
790
|
-
let urlPath = `/
|
|
785
|
+
let urlPath = `/groups/{id}`;
|
|
791
786
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
792
787
|
return {
|
|
793
788
|
path: urlPath,
|
|
@@ -862,7 +857,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
862
857
|
return __awaiter(this, void 0, void 0, function* () {
|
|
863
858
|
const requestOptions = yield this.vddkPostRequestOpts(requestParameters);
|
|
864
859
|
const response = yield this.request(requestOptions, initOverrides);
|
|
865
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.
|
|
860
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.VddkPropertiesFromJSON)(jsonValue));
|
|
866
861
|
});
|
|
867
862
|
}
|
|
868
863
|
/**
|