@openshift-migration-advisor/agent-sdk 0.31.0 → 0.32.0-1e681f2e74af
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 +20 -2
- package/README.md +13 -4
- package/dist/apis/AppliancesApi.d.ts +64 -0
- package/dist/apis/AppliancesApi.js +72 -0
- package/dist/apis/CollectorApi.d.ts +0 -38
- package/dist/apis/CollectorApi.js +0 -59
- package/dist/apis/GroupsApi.d.ts +39 -0
- package/dist/apis/GroupsApi.js +40 -0
- package/dist/apis/InventoriesApi.d.ts +9 -9
- package/dist/apis/InventoriesApi.js +3 -3
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AppliancesApi.d.ts +64 -0
- package/dist/esm/apis/AppliancesApi.js +68 -0
- package/dist/esm/apis/CollectorApi.d.ts +0 -38
- package/dist/esm/apis/CollectorApi.js +0 -59
- package/dist/esm/apis/GroupsApi.d.ts +39 -0
- package/dist/esm/apis/GroupsApi.js +40 -0
- package/dist/esm/apis/InventoriesApi.d.ts +9 -9
- package/dist/esm/apis/InventoriesApi.js +3 -3
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/Appliance.d.ts +51 -0
- package/dist/esm/models/Appliance.js +64 -0
- package/dist/esm/models/ApplianceListResponse.d.ts +31 -0
- package/dist/esm/models/ApplianceListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +16 -0
- package/dist/esm/models/ApplicationOverview.js +12 -0
- package/dist/esm/models/CollectedInventory.d.ts +31 -0
- package/dist/esm/models/CollectedInventory.js +44 -0
- package/dist/esm/models/GroupResponse.d.ts +2 -2
- package/dist/esm/models/GroupResponse.js +3 -3
- package/dist/esm/models/Host.d.ts +26 -0
- package/dist/esm/models/Host.js +14 -0
- package/dist/esm/models/HostPhysicalNIC.d.ts +34 -0
- package/dist/esm/models/HostPhysicalNIC.js +45 -0
- package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
- package/dist/esm/models/HostStorageAdapter.js +55 -0
- package/dist/esm/models/HostStorageLun.d.ts +50 -0
- package/dist/esm/models/HostStorageLun.js +51 -0
- package/dist/esm/models/Inventory.d.ts +24 -2
- package/dist/esm/models/Inventory.js +17 -4
- package/dist/esm/models/OsInfo.d.ts +12 -0
- package/dist/esm/models/OsInfo.js +9 -0
- package/dist/esm/models/Product.d.ts +66 -0
- package/dist/esm/models/Product.js +61 -0
- package/dist/esm/models/RDMBacking.d.ts +26 -0
- package/dist/esm/models/RDMBacking.js +17 -0
- package/dist/esm/models/RDMHostLun.d.ts +42 -0
- package/dist/esm/models/RDMHostLun.js +49 -0
- package/dist/esm/models/UpdateInventory.d.ts +2 -2
- package/dist/esm/models/UpdateInventory.js +3 -3
- package/dist/esm/models/VirtualMachineDetail.d.ts +14 -0
- package/dist/esm/models/VirtualMachineDetail.js +8 -0
- package/dist/esm/models/VirtualMachineDisk.d.ts +8 -0
- package/dist/esm/models/VirtualMachineDisk.js +4 -0
- package/dist/esm/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/esm/models/VirtualMachineIdentity.js +47 -0
- package/dist/esm/models/VirtualMachineNIC.d.ts +12 -0
- package/dist/esm/models/VirtualMachineNIC.js +6 -0
- package/dist/esm/models/index.d.ts +9 -1
- package/dist/esm/models/index.js +9 -1
- package/dist/esm/runtime.js +4 -3
- package/dist/models/Appliance.d.ts +51 -0
- package/dist/models/Appliance.js +71 -0
- package/dist/models/ApplianceListResponse.d.ts +31 -0
- package/dist/models/ApplianceListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +16 -0
- package/dist/models/ApplicationOverview.js +12 -0
- package/dist/models/CollectedInventory.d.ts +31 -0
- package/dist/models/CollectedInventory.js +51 -0
- package/dist/models/GroupResponse.d.ts +2 -2
- package/dist/models/GroupResponse.js +3 -3
- package/dist/models/Host.d.ts +26 -0
- package/dist/models/Host.js +14 -0
- package/dist/models/HostPhysicalNIC.d.ts +34 -0
- package/dist/models/HostPhysicalNIC.js +52 -0
- package/dist/models/HostStorageAdapter.d.ts +58 -0
- package/dist/models/HostStorageAdapter.js +62 -0
- package/dist/models/HostStorageLun.d.ts +50 -0
- package/dist/models/HostStorageLun.js +58 -0
- package/dist/models/Inventory.d.ts +24 -2
- package/dist/models/Inventory.js +17 -4
- package/dist/models/OsInfo.d.ts +12 -0
- package/dist/models/OsInfo.js +10 -1
- package/dist/models/Product.d.ts +66 -0
- package/dist/models/Product.js +68 -0
- package/dist/models/RDMBacking.d.ts +26 -0
- package/dist/models/RDMBacking.js +18 -0
- package/dist/models/RDMHostLun.d.ts +42 -0
- package/dist/models/RDMHostLun.js +56 -0
- package/dist/models/UpdateInventory.d.ts +2 -2
- package/dist/models/UpdateInventory.js +3 -3
- package/dist/models/VirtualMachineDetail.d.ts +14 -0
- package/dist/models/VirtualMachineDetail.js +8 -0
- package/dist/models/VirtualMachineDisk.d.ts +8 -0
- package/dist/models/VirtualMachineDisk.js +4 -0
- package/dist/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/models/VirtualMachineIdentity.js +54 -0
- package/dist/models/VirtualMachineNIC.d.ts +12 -0
- package/dist/models/VirtualMachineNIC.js +6 -0
- package/dist/models/index.d.ts +9 -1
- package/dist/models/index.js +9 -1
- package/dist/runtime.js +4 -3
- package/docs/Appliance.md +44 -0
- package/docs/ApplianceListResponse.md +34 -0
- package/docs/AppliancesApi.md +76 -0
- package/docs/ApplicationOverview.md +8 -0
- package/docs/CollectedInventory.md +34 -0
- package/docs/CollectorApi.md +0 -70
- package/docs/GroupResponse.md +1 -1
- package/docs/GroupsApi.md +68 -0
- package/docs/Host.md +12 -0
- package/docs/HostPhysicalNIC.md +36 -0
- package/docs/HostStorageAdapter.md +49 -0
- package/docs/HostStorageLun.md +45 -0
- package/docs/InventoriesApi.md +4 -4
- package/docs/Inventory.md +12 -2
- package/docs/OsInfo.md +2 -0
- package/docs/Product.md +52 -0
- package/docs/RDMBacking.md +8 -0
- package/docs/{Inventory1.md → RDMHostLun.md} +13 -16
- package/docs/UpdateInventory.md +1 -1
- package/docs/VirtualMachineDetail.md +6 -0
- package/docs/VirtualMachineDisk.md +4 -0
- package/docs/VirtualMachineIdentity.md +36 -0
- package/docs/VirtualMachineNIC.md +6 -0
- package/package.json +1 -1
- package/src/apis/AppliancesApi.ts +111 -0
- package/src/apis/CollectorApi.ts +0 -97
- package/src/apis/GroupsApi.ts +80 -0
- package/src/apis/InventoriesApi.ts +14 -14
- package/src/apis/index.ts +1 -0
- package/src/models/Appliance.ts +107 -0
- package/src/models/ApplianceListResponse.ts +72 -0
- package/src/models/ApplicationOverview.ts +26 -0
- package/src/models/CollectedInventory.ts +72 -0
- package/src/models/GroupResponse.ts +9 -9
- package/src/models/Host.ts +51 -0
- package/src/models/HostPhysicalNIC.ts +70 -0
- package/src/models/HostStorageAdapter.ts +105 -0
- package/src/models/HostStorageLun.ts +93 -0
- package/src/models/Inventory.ts +42 -11
- package/src/models/OsInfo.ts +15 -0
- package/src/models/Product.ts +118 -0
- package/src/models/RDMBacking.ts +44 -0
- package/src/models/RDMHostLun.ts +82 -0
- package/src/models/UpdateInventory.ts +9 -9
- package/src/models/VirtualMachineDetail.ts +32 -0
- package/src/models/VirtualMachineDisk.ts +12 -0
- package/src/models/VirtualMachineIdentity.ts +71 -0
- package/src/models/VirtualMachineNIC.ts +18 -0
- package/src/models/index.ts +9 -1
- package/src/runtime.ts +3 -3
- package/dist/esm/models/Inventory1.d.ts +0 -53
- package/dist/esm/models/Inventory1.js +0 -57
- package/dist/models/Inventory1.d.ts +0 -53
- package/dist/models/Inventory1.js +0 -64
- package/src/models/Inventory1.ts +0 -103
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AgentApi.js"), exports);
|
|
20
|
+
__exportStar(require("./AppliancesApi.js"), exports);
|
|
20
21
|
__exportStar(require("./ApplicationsApi.js"), exports);
|
|
21
22
|
__exportStar(require("./CollectionsApi.js"), exports);
|
|
22
23
|
__exportStar(require("./CollectorApi.js"), exports);
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime.js';
|
|
13
|
+
import { type ApplianceListResponse } from '../models/ApplianceListResponse.js';
|
|
14
|
+
export interface ListAppliancesRequest {
|
|
15
|
+
/**
|
|
16
|
+
* Collection ID
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* AppliancesApi - interface
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
* @interface AppliancesApiInterface
|
|
25
|
+
*/
|
|
26
|
+
export interface AppliancesApiInterface {
|
|
27
|
+
/**
|
|
28
|
+
* Creates request options for listAppliances without sending the request
|
|
29
|
+
* @param {string} id Collection ID
|
|
30
|
+
* @throws {RequiredError}
|
|
31
|
+
* @memberof AppliancesApiInterface
|
|
32
|
+
*/
|
|
33
|
+
listAppliancesRequestOpts(requestParameters: ListAppliancesRequest): Promise<runtime.RequestOpts>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @summary List detected appliances in a collection
|
|
37
|
+
* @param {string} id Collection ID
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
* @memberof AppliancesApiInterface
|
|
41
|
+
*/
|
|
42
|
+
listAppliancesRaw(requestParameters: ListAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceListResponse>>;
|
|
43
|
+
/**
|
|
44
|
+
* List detected appliances in a collection
|
|
45
|
+
*/
|
|
46
|
+
listAppliances(requestParameters: ListAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
export declare class AppliancesApi extends runtime.BaseAPI implements AppliancesApiInterface {
|
|
52
|
+
/**
|
|
53
|
+
* Creates request options for listAppliances without sending the request
|
|
54
|
+
*/
|
|
55
|
+
listAppliancesRequestOpts(requestParameters: ListAppliancesRequest): Promise<runtime.RequestOpts>;
|
|
56
|
+
/**
|
|
57
|
+
* List detected appliances in a collection
|
|
58
|
+
*/
|
|
59
|
+
listAppliancesRaw(requestParameters: ListAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceListResponse>>;
|
|
60
|
+
/**
|
|
61
|
+
* List detected appliances in a collection
|
|
62
|
+
*/
|
|
63
|
+
listAppliances(requestParameters: ListAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse>;
|
|
64
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime.js';
|
|
24
|
+
import { ApplianceListResponseFromJSON, } from '../models/ApplianceListResponse.js';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class AppliancesApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Creates request options for listAppliances without sending the request
|
|
31
|
+
*/
|
|
32
|
+
listAppliancesRequestOpts(requestParameters) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['id'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling listAppliances().');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
let urlPath = `/collections/{id}/appliances`;
|
|
40
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
41
|
+
return {
|
|
42
|
+
path: urlPath,
|
|
43
|
+
method: 'GET',
|
|
44
|
+
headers: headerParameters,
|
|
45
|
+
query: queryParameters,
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* List detected appliances in a collection
|
|
51
|
+
*/
|
|
52
|
+
listAppliancesRaw(requestParameters, initOverrides) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const requestOptions = yield this.listAppliancesRequestOpts(requestParameters);
|
|
55
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
56
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplianceListResponseFromJSON(jsonValue));
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* List detected appliances in a collection
|
|
61
|
+
*/
|
|
62
|
+
listAppliances(requestParameters, initOverrides) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
const response = yield this.listAppliancesRaw(requestParameters, initOverrides);
|
|
65
|
+
return yield response.value();
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -11,12 +11,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
13
|
import { type CollectorStatus } from '../models/CollectorStatus.js';
|
|
14
|
-
export interface StartRvtoolsCollectorRequest {
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
files: Array<Blob>;
|
|
19
|
-
}
|
|
20
14
|
/**
|
|
21
15
|
* CollectorApi - interface
|
|
22
16
|
*
|
|
@@ -60,26 +54,6 @@ export interface CollectorApiInterface {
|
|
|
60
54
|
* Start a collection
|
|
61
55
|
*/
|
|
62
56
|
startCollector(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
63
|
-
/**
|
|
64
|
-
* Creates request options for startRvtoolsCollector without sending the request
|
|
65
|
-
* @param {Array<Blob>} files
|
|
66
|
-
* @throws {RequiredError}
|
|
67
|
-
* @memberof CollectorApiInterface
|
|
68
|
-
*/
|
|
69
|
-
startRvtoolsCollectorRequestOpts(requestParameters: StartRvtoolsCollectorRequest): Promise<runtime.RequestOpts>;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @summary Start a collection from RVTools files
|
|
73
|
-
* @param {Array<Blob>} files
|
|
74
|
-
* @param {*} [options] Override http request option.
|
|
75
|
-
* @throws {RequiredError}
|
|
76
|
-
* @memberof CollectorApiInterface
|
|
77
|
-
*/
|
|
78
|
-
startRvtoolsCollectorRaw(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>>;
|
|
79
|
-
/**
|
|
80
|
-
* Start a collection from RVTools files
|
|
81
|
-
*/
|
|
82
|
-
startRvtoolsCollector(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
83
57
|
/**
|
|
84
58
|
* Creates request options for stopCollector without sending the request
|
|
85
59
|
* @throws {RequiredError}
|
|
@@ -127,18 +101,6 @@ export declare class CollectorApi extends runtime.BaseAPI implements CollectorAp
|
|
|
127
101
|
* Start a collection
|
|
128
102
|
*/
|
|
129
103
|
startCollector(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
130
|
-
/**
|
|
131
|
-
* Creates request options for startRvtoolsCollector without sending the request
|
|
132
|
-
*/
|
|
133
|
-
startRvtoolsCollectorRequestOpts(requestParameters: StartRvtoolsCollectorRequest): Promise<runtime.RequestOpts>;
|
|
134
|
-
/**
|
|
135
|
-
* Start a collection from RVTools files
|
|
136
|
-
*/
|
|
137
|
-
startRvtoolsCollectorRaw(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>>;
|
|
138
|
-
/**
|
|
139
|
-
* Start a collection from RVTools files
|
|
140
|
-
*/
|
|
141
|
-
startRvtoolsCollector(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
142
104
|
/**
|
|
143
105
|
* Creates request options for stopCollector without sending the request
|
|
144
106
|
*/
|
|
@@ -96,65 +96,6 @@ export class CollectorApi extends runtime.BaseAPI {
|
|
|
96
96
|
return yield response.value();
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
/**
|
|
100
|
-
* Creates request options for startRvtoolsCollector without sending the request
|
|
101
|
-
*/
|
|
102
|
-
startRvtoolsCollectorRequestOpts(requestParameters) {
|
|
103
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
-
if (requestParameters['files'] == null) {
|
|
105
|
-
throw new runtime.RequiredError('files', 'Required parameter "files" was null or undefined when calling startRvtoolsCollector().');
|
|
106
|
-
}
|
|
107
|
-
const queryParameters = {};
|
|
108
|
-
const headerParameters = {};
|
|
109
|
-
const consumes = [
|
|
110
|
-
{ contentType: 'multipart/form-data' },
|
|
111
|
-
];
|
|
112
|
-
// @ts-ignore: canConsumeForm may be unused
|
|
113
|
-
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
114
|
-
let formParams;
|
|
115
|
-
let useForm = false;
|
|
116
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
117
|
-
useForm = canConsumeForm;
|
|
118
|
-
if (useForm) {
|
|
119
|
-
formParams = new FormData();
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
formParams = new URLSearchParams();
|
|
123
|
-
}
|
|
124
|
-
if (requestParameters['files'] != null) {
|
|
125
|
-
requestParameters['files'].forEach((element) => {
|
|
126
|
-
formParams.append('files', element);
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
let urlPath = `/collector/rvtools`;
|
|
130
|
-
return {
|
|
131
|
-
path: urlPath,
|
|
132
|
-
method: 'POST',
|
|
133
|
-
headers: headerParameters,
|
|
134
|
-
query: queryParameters,
|
|
135
|
-
body: formParams,
|
|
136
|
-
};
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Start a collection from RVTools files
|
|
141
|
-
*/
|
|
142
|
-
startRvtoolsCollectorRaw(requestParameters, initOverrides) {
|
|
143
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
-
const requestOptions = yield this.startRvtoolsCollectorRequestOpts(requestParameters);
|
|
145
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
146
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => CollectorStatusFromJSON(jsonValue));
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Start a collection from RVTools files
|
|
151
|
-
*/
|
|
152
|
-
startRvtoolsCollector(requestParameters, initOverrides) {
|
|
153
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
-
const response = yield this.startRvtoolsCollectorRaw(requestParameters, initOverrides);
|
|
155
|
-
return yield response.value();
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
99
|
/**
|
|
159
100
|
* Creates request options for stopCollector without sending the request
|
|
160
101
|
*/
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
+
import { type ApplianceListResponse } from '../models/ApplianceListResponse.js';
|
|
13
14
|
import { type ApplicationListResponse } from '../models/ApplicationListResponse.js';
|
|
14
15
|
import { type CreateGroupRequest } from '../models/CreateGroupRequest.js';
|
|
15
16
|
import { type Group } from '../models/Group.js';
|
|
@@ -68,6 +69,12 @@ export interface GetLatestGroupRequest {
|
|
|
68
69
|
*/
|
|
69
70
|
pageSize?: number;
|
|
70
71
|
}
|
|
72
|
+
export interface ListGroupAppliancesRequest {
|
|
73
|
+
/**
|
|
74
|
+
* Group ID
|
|
75
|
+
*/
|
|
76
|
+
groupId: string;
|
|
77
|
+
}
|
|
71
78
|
export interface ListGroupApplicationsRequest {
|
|
72
79
|
/**
|
|
73
80
|
* Group ID
|
|
@@ -217,6 +224,26 @@ export interface GroupsApiInterface {
|
|
|
217
224
|
* Get group by ID from the latest collection
|
|
218
225
|
*/
|
|
219
226
|
getLatestGroup(requestParameters: GetLatestGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupResponse>;
|
|
227
|
+
/**
|
|
228
|
+
* Creates request options for listGroupAppliances without sending the request
|
|
229
|
+
* @param {string} groupId Group ID
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
* @memberof GroupsApiInterface
|
|
232
|
+
*/
|
|
233
|
+
listGroupAppliancesRequestOpts(requestParameters: ListGroupAppliancesRequest): Promise<runtime.RequestOpts>;
|
|
234
|
+
/**
|
|
235
|
+
*
|
|
236
|
+
* @summary List detected appliances for a group
|
|
237
|
+
* @param {string} groupId Group ID
|
|
238
|
+
* @param {*} [options] Override http request option.
|
|
239
|
+
* @throws {RequiredError}
|
|
240
|
+
* @memberof GroupsApiInterface
|
|
241
|
+
*/
|
|
242
|
+
listGroupAppliancesRaw(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceListResponse>>;
|
|
243
|
+
/**
|
|
244
|
+
* List detected appliances for a group
|
|
245
|
+
*/
|
|
246
|
+
listGroupAppliances(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse>;
|
|
220
247
|
/**
|
|
221
248
|
* Creates request options for listGroupApplications without sending the request
|
|
222
249
|
* @param {string} groupId Group ID
|
|
@@ -362,6 +389,18 @@ export declare class GroupsApi extends runtime.BaseAPI implements GroupsApiInter
|
|
|
362
389
|
* Get group by ID from the latest collection
|
|
363
390
|
*/
|
|
364
391
|
getLatestGroup(requestParameters: GetLatestGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupResponse>;
|
|
392
|
+
/**
|
|
393
|
+
* Creates request options for listGroupAppliances without sending the request
|
|
394
|
+
*/
|
|
395
|
+
listGroupAppliancesRequestOpts(requestParameters: ListGroupAppliancesRequest): Promise<runtime.RequestOpts>;
|
|
396
|
+
/**
|
|
397
|
+
* List detected appliances for a group
|
|
398
|
+
*/
|
|
399
|
+
listGroupAppliancesRaw(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceListResponse>>;
|
|
400
|
+
/**
|
|
401
|
+
* List detected appliances for a group
|
|
402
|
+
*/
|
|
403
|
+
listGroupAppliances(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse>;
|
|
365
404
|
/**
|
|
366
405
|
* Creates request options for listGroupApplications without sending the request
|
|
367
406
|
*/
|
|
@@ -21,6 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime.js';
|
|
24
|
+
import { ApplianceListResponseFromJSON, } from '../models/ApplianceListResponse.js';
|
|
24
25
|
import { ApplicationListResponseFromJSON, } from '../models/ApplicationListResponse.js';
|
|
25
26
|
import { CreateGroupRequestToJSON, } from '../models/CreateGroupRequest.js';
|
|
26
27
|
import { GroupFromJSON, } from '../models/Group.js';
|
|
@@ -209,6 +210,45 @@ export class GroupsApi extends runtime.BaseAPI {
|
|
|
209
210
|
return yield response.value();
|
|
210
211
|
});
|
|
211
212
|
}
|
|
213
|
+
/**
|
|
214
|
+
* Creates request options for listGroupAppliances without sending the request
|
|
215
|
+
*/
|
|
216
|
+
listGroupAppliancesRequestOpts(requestParameters) {
|
|
217
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
218
|
+
if (requestParameters['groupId'] == null) {
|
|
219
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling listGroupAppliances().');
|
|
220
|
+
}
|
|
221
|
+
const queryParameters = {};
|
|
222
|
+
const headerParameters = {};
|
|
223
|
+
let urlPath = `/groups/{groupId}/appliances`;
|
|
224
|
+
urlPath = urlPath.replace('{groupId}', encodeURIComponent(String(requestParameters['groupId'])));
|
|
225
|
+
return {
|
|
226
|
+
path: urlPath,
|
|
227
|
+
method: 'GET',
|
|
228
|
+
headers: headerParameters,
|
|
229
|
+
query: queryParameters,
|
|
230
|
+
};
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* List detected appliances for a group
|
|
235
|
+
*/
|
|
236
|
+
listGroupAppliancesRaw(requestParameters, initOverrides) {
|
|
237
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
238
|
+
const requestOptions = yield this.listGroupAppliancesRequestOpts(requestParameters);
|
|
239
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
240
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplianceListResponseFromJSON(jsonValue));
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* List detected appliances for a group
|
|
245
|
+
*/
|
|
246
|
+
listGroupAppliances(requestParameters, initOverrides) {
|
|
247
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
248
|
+
const response = yield this.listGroupAppliancesRaw(requestParameters, initOverrides);
|
|
249
|
+
return yield response.value();
|
|
250
|
+
});
|
|
251
|
+
}
|
|
212
252
|
/**
|
|
213
253
|
* Creates request options for listGroupApplications without sending the request
|
|
214
254
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import { type
|
|
13
|
+
import { type CollectedInventory } from '../models/CollectedInventory.js';
|
|
14
14
|
export interface GetInventoryRequest {
|
|
15
15
|
/**
|
|
16
16
|
* Collection ID
|
|
@@ -45,11 +45,11 @@ export interface InventoriesApiInterface {
|
|
|
45
45
|
* @throws {RequiredError}
|
|
46
46
|
* @memberof InventoriesApiInterface
|
|
47
47
|
*/
|
|
48
|
-
getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
48
|
+
getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
|
|
49
49
|
/**
|
|
50
50
|
* Get collected inventory for a collection
|
|
51
51
|
*/
|
|
52
|
-
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
52
|
+
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
|
|
53
53
|
/**
|
|
54
54
|
* Creates request options for getLatestInventory without sending the request
|
|
55
55
|
* @param {'main' | 'all'} [scope] Selects which inventories to return. \"main\" (default) returns only the main inventory as JSON. \"all\" returns a ZIP bundle containing the main inventory (inventory.json) and every group subset inventory (subsets/<groupId>.json), for manual upload in disconnected environments.
|
|
@@ -65,11 +65,11 @@ export interface InventoriesApiInterface {
|
|
|
65
65
|
* @throws {RequiredError}
|
|
66
66
|
* @memberof InventoriesApiInterface
|
|
67
67
|
*/
|
|
68
|
-
getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
68
|
+
getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
|
|
69
69
|
/**
|
|
70
70
|
* Get inventory from the latest collection
|
|
71
71
|
*/
|
|
72
|
-
getLatestInventory(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
72
|
+
getLatestInventory(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
@@ -82,11 +82,11 @@ export declare class InventoriesApi extends runtime.BaseAPI implements Inventori
|
|
|
82
82
|
/**
|
|
83
83
|
* Get collected inventory for a collection
|
|
84
84
|
*/
|
|
85
|
-
getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
85
|
+
getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
|
|
86
86
|
/**
|
|
87
87
|
* Get collected inventory for a collection
|
|
88
88
|
*/
|
|
89
|
-
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
89
|
+
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
|
|
90
90
|
/**
|
|
91
91
|
* Creates request options for getLatestInventory without sending the request
|
|
92
92
|
*/
|
|
@@ -94,11 +94,11 @@ export declare class InventoriesApi extends runtime.BaseAPI implements Inventori
|
|
|
94
94
|
/**
|
|
95
95
|
* Get inventory from the latest collection
|
|
96
96
|
*/
|
|
97
|
-
getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
97
|
+
getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
|
|
98
98
|
/**
|
|
99
99
|
* Get inventory from the latest collection
|
|
100
100
|
*/
|
|
101
|
-
getLatestInventory(requestParameters?: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
101
|
+
getLatestInventory(requestParameters?: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
104
|
* @export
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime.js';
|
|
24
|
-
import {
|
|
24
|
+
import { CollectedInventoryFromJSON, } from '../models/CollectedInventory.js';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -53,7 +53,7 @@ export class InventoriesApi extends runtime.BaseAPI {
|
|
|
53
53
|
return __awaiter(this, void 0, void 0, function* () {
|
|
54
54
|
const requestOptions = yield this.getInventoryRequestOpts(requestParameters);
|
|
55
55
|
const response = yield this.request(requestOptions, initOverrides);
|
|
56
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
56
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CollectedInventoryFromJSON(jsonValue));
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
@@ -91,7 +91,7 @@ export class InventoriesApi extends runtime.BaseAPI {
|
|
|
91
91
|
return __awaiter(this, void 0, void 0, function* () {
|
|
92
92
|
const requestOptions = yield this.getLatestInventoryRequestOpts(requestParameters);
|
|
93
93
|
const response = yield this.request(requestOptions, initOverrides);
|
|
94
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
94
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CollectedInventoryFromJSON(jsonValue));
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
/**
|
package/dist/esm/apis/index.d.ts
CHANGED
package/dist/esm/apis/index.js
CHANGED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { VirtualMachineIdentity } from './VirtualMachineIdentity.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Appliance
|
|
17
|
+
*/
|
|
18
|
+
export interface Appliance {
|
|
19
|
+
/**
|
|
20
|
+
* Appliance product name
|
|
21
|
+
*/
|
|
22
|
+
name: string;
|
|
23
|
+
/**
|
|
24
|
+
* Appliance vendor; defaults to Unknown when not reported
|
|
25
|
+
*/
|
|
26
|
+
vendor: string;
|
|
27
|
+
/**
|
|
28
|
+
* Appliance product version; defaults to empty when not reported
|
|
29
|
+
*/
|
|
30
|
+
version: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
confidence: number;
|
|
35
|
+
/**
|
|
36
|
+
* Number of VMs running this appliance
|
|
37
|
+
*/
|
|
38
|
+
vmCount: number;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
vms: Array<VirtualMachineIdentity>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the Appliance interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfAppliance(value: object): value is Appliance;
|
|
48
|
+
export declare function ApplianceFromJSON(json: any): Appliance;
|
|
49
|
+
export declare function ApplianceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Appliance;
|
|
50
|
+
export declare function ApplianceToJSON(json: any): Appliance;
|
|
51
|
+
export declare function ApplianceToJSONTyped(value?: Appliance | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { VirtualMachineIdentityFromJSON, VirtualMachineIdentityToJSON, } from './VirtualMachineIdentity.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the Appliance interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAppliance(value) {
|
|
19
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('vendor' in value) || value['vendor'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('vms' in value) || value['vms'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function ApplianceFromJSON(json) {
|
|
34
|
+
return ApplianceFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function ApplianceFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'name': json['name'],
|
|
42
|
+
'vendor': json['vendor'],
|
|
43
|
+
'version': json['version'],
|
|
44
|
+
'confidence': json['confidence'],
|
|
45
|
+
'vmCount': json['vmCount'],
|
|
46
|
+
'vms': (json['vms'].map(VirtualMachineIdentityFromJSON)),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function ApplianceToJSON(json) {
|
|
50
|
+
return ApplianceToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function ApplianceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'name': value['name'],
|
|
58
|
+
'vendor': value['vendor'],
|
|
59
|
+
'version': value['version'],
|
|
60
|
+
'confidence': value['confidence'],
|
|
61
|
+
'vmCount': value['vmCount'],
|
|
62
|
+
'vms': (value['vms'].map(VirtualMachineIdentityToJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Appliance } from './Appliance.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApplianceListResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ApplianceListResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
appliances: Array<Appliance>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ApplianceListResponse interface.
|
|
26
|
+
*/
|
|
27
|
+
export declare function instanceOfApplianceListResponse(value: object): value is ApplianceListResponse;
|
|
28
|
+
export declare function ApplianceListResponseFromJSON(json: any): ApplianceListResponse;
|
|
29
|
+
export declare function ApplianceListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceListResponse;
|
|
30
|
+
export declare function ApplianceListResponseToJSON(json: any): ApplianceListResponse;
|
|
31
|
+
export declare function ApplianceListResponseToJSONTyped(value?: ApplianceListResponse | null, ignoreDiscriminator?: boolean): any;
|