@openshift-migration-advisor/agent-sdk 0.32.0 → 0.33.0
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 +10 -0
- package/README.md +8 -3
- 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/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/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/Host.d.ts +16 -0
- package/dist/esm/models/Host.js +8 -0
- 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/VirtualMachineDetail.d.ts +5 -0
- package/dist/esm/models/VirtualMachineDetail.js +3 -0
- package/dist/esm/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/esm/models/VirtualMachineIdentity.js +47 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- 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/Host.d.ts +16 -0
- package/dist/models/Host.js +8 -0
- 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/VirtualMachineDetail.d.ts +5 -0
- package/dist/models/VirtualMachineDetail.js +3 -0
- package/dist/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/models/VirtualMachineIdentity.js +54 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- 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/CollectorApi.md +0 -70
- package/docs/GroupsApi.md +68 -0
- package/docs/Host.md +8 -0
- package/docs/OsInfo.md +2 -0
- package/docs/Product.md +52 -0
- package/docs/VirtualMachineDetail.md +2 -0
- package/docs/VirtualMachineIdentity.md +36 -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/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/Host.ts +24 -0
- package/src/models/OsInfo.ts +15 -0
- package/src/models/Product.ts +118 -0
- package/src/models/VirtualMachineDetail.ts +13 -0
- package/src/models/VirtualMachineIdentity.ts +71 -0
- package/src/models/index.ts +4 -0
- package/src/runtime.ts +3 -3
package/.openapi-generator/FILES
CHANGED
|
@@ -6,6 +6,9 @@ docs/AgentApi.md
|
|
|
6
6
|
docs/AgentModeRequest.md
|
|
7
7
|
docs/AgentStatus.md
|
|
8
8
|
docs/AgentStatusConsoleConnection.md
|
|
9
|
+
docs/Appliance.md
|
|
10
|
+
docs/ApplianceListResponse.md
|
|
11
|
+
docs/AppliancesApi.md
|
|
9
12
|
docs/ApplicationListResponse.md
|
|
10
13
|
docs/ApplicationOverview.md
|
|
11
14
|
docs/ApplicationVM.md
|
|
@@ -67,6 +70,7 @@ docs/OsInfo.md
|
|
|
67
70
|
docs/PairCapability.md
|
|
68
71
|
docs/PairCapabilityRequest.md
|
|
69
72
|
docs/Process.md
|
|
73
|
+
docs/Product.md
|
|
70
74
|
docs/RDMBacking.md
|
|
71
75
|
docs/RightsizingApi.md
|
|
72
76
|
docs/RightsizingClusterResponse.md
|
|
@@ -92,6 +96,7 @@ docs/VirtualMachineDatastore.md
|
|
|
92
96
|
docs/VirtualMachineDetail.md
|
|
93
97
|
docs/VirtualMachineDevice.md
|
|
94
98
|
docs/VirtualMachineDisk.md
|
|
99
|
+
docs/VirtualMachineIdentity.md
|
|
95
100
|
docs/VirtualMachineInspectionConcern.md
|
|
96
101
|
docs/VirtualMachineInspectionResults.md
|
|
97
102
|
docs/VirtualMachineIssue.md
|
|
@@ -102,6 +107,7 @@ docs/VirtualMachinesApi.md
|
|
|
102
107
|
docs/VmUtilizationDetails.md
|
|
103
108
|
package.json
|
|
104
109
|
src/apis/AgentApi.ts
|
|
110
|
+
src/apis/AppliancesApi.ts
|
|
105
111
|
src/apis/ApplicationsApi.ts
|
|
106
112
|
src/apis/CollectionsApi.ts
|
|
107
113
|
src/apis/CollectorApi.ts
|
|
@@ -118,6 +124,8 @@ src/index.ts
|
|
|
118
124
|
src/models/AgentModeRequest.ts
|
|
119
125
|
src/models/AgentStatus.ts
|
|
120
126
|
src/models/AgentStatusConsoleConnection.ts
|
|
127
|
+
src/models/Appliance.ts
|
|
128
|
+
src/models/ApplianceListResponse.ts
|
|
121
129
|
src/models/ApplicationListResponse.ts
|
|
122
130
|
src/models/ApplicationOverview.ts
|
|
123
131
|
src/models/ApplicationVM.ts
|
|
@@ -171,6 +179,7 @@ src/models/OsInfo.ts
|
|
|
171
179
|
src/models/PairCapability.ts
|
|
172
180
|
src/models/PairCapabilityRequest.ts
|
|
173
181
|
src/models/Process.ts
|
|
182
|
+
src/models/Product.ts
|
|
174
183
|
src/models/RDMBacking.ts
|
|
175
184
|
src/models/RightsizingClusterResponse.ts
|
|
176
185
|
src/models/RightsizingClusterUtilization.ts
|
|
@@ -194,6 +203,7 @@ src/models/VirtualMachineDatastore.ts
|
|
|
194
203
|
src/models/VirtualMachineDetail.ts
|
|
195
204
|
src/models/VirtualMachineDevice.ts
|
|
196
205
|
src/models/VirtualMachineDisk.ts
|
|
206
|
+
src/models/VirtualMachineIdentity.ts
|
|
197
207
|
src/models/VirtualMachineInspectionConcern.ts
|
|
198
208
|
src/models/VirtualMachineInspectionResults.ts
|
|
199
209
|
src/models/VirtualMachineIssue.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/agent-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/agent-sdk@0.33.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -47,6 +47,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
47
47
|
| ----- | ------ | ------------ | -------------
|
|
48
48
|
*AgentApi* | [**getAgentStatus**](docs/AgentApi.md#getagentstatus) | **GET** /agent | Get agent status
|
|
49
49
|
*AgentApi* | [**setAgentMode**](docs/AgentApi.md#setagentmode) | **POST** /agent | Change agent mode
|
|
50
|
+
*AppliancesApi* | [**listAppliances**](docs/AppliancesApi.md#listappliances) | **GET** /collections/{id}/appliances | List detected appliances in a collection
|
|
50
51
|
*ApplicationsApi* | [**listApplications**](docs/ApplicationsApi.md#listapplications) | **GET** /collections/{id}/applications | List detected applications in a collection
|
|
51
52
|
*CollectionsApi* | [**compareCollections**](docs/CollectionsApi.md#comparecollections) | **GET** /collections/compare/{aId}/{bId} | Compare two collections — returns aggregates and diffs
|
|
52
53
|
*CollectionsApi* | [**compareCollectionsDiff**](docs/CollectionsApi.md#comparecollectionsdiff) | **GET** /collections/compare/{aId}/{bId}/{dimension} | Drill down — VM IDs that differ between two collections for a given dimension
|
|
@@ -55,7 +56,6 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
55
56
|
*CollectionsApi* | [**listCollections**](docs/CollectionsApi.md#listcollections) | **GET** /collections | List all collections
|
|
56
57
|
*CollectorApi* | [**getCollectorStatus**](docs/CollectorApi.md#getcollectorstatus) | **GET** /collector | Get collector status
|
|
57
58
|
*CollectorApi* | [**startCollector**](docs/CollectorApi.md#startcollector) | **POST** /collector | Start a collection
|
|
58
|
-
*CollectorApi* | [**startRvtoolsCollector**](docs/CollectorApi.md#startrvtoolscollector) | **POST** /collector/rvtools | Start a collection from RVTools files
|
|
59
59
|
*CollectorApi* | [**stopCollector**](docs/CollectorApi.md#stopcollector) | **DELETE** /collector | Stop collector
|
|
60
60
|
*CredentialsApi* | [**deleteCredentials**](docs/CredentialsApi.md#deletecredentials) | **DELETE** /credentials | Delete stored credentials
|
|
61
61
|
*CredentialsApi* | [**getCredentialCapabilities**](docs/CredentialsApi.md#getcredentialcapabilities) | **GET** /credentials/capabilities | Check vSphere operation capabilities
|
|
@@ -74,6 +74,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
74
74
|
*GroupsApi* | [**deleteLatestGroup**](docs/GroupsApi.md#deletelatestgroup) | **DELETE** /groups/{groupId} | Delete group from the latest collection
|
|
75
75
|
*GroupsApi* | [**getGroup**](docs/GroupsApi.md#getgroup) | **GET** /collections/{id}/groups/{groupId} | Get group by ID with its VirtualMachines
|
|
76
76
|
*GroupsApi* | [**getLatestGroup**](docs/GroupsApi.md#getlatestgroup) | **GET** /groups/{groupId} | Get group by ID from the latest collection
|
|
77
|
+
*GroupsApi* | [**listGroupAppliances**](docs/GroupsApi.md#listgroupappliances) | **GET** /groups/{groupId}/appliances | List detected appliances for a group
|
|
77
78
|
*GroupsApi* | [**listGroupApplications**](docs/GroupsApi.md#listgroupapplications) | **GET** /groups/{groupId}/applications | List detected applications for a group
|
|
78
79
|
*GroupsApi* | [**listGroups**](docs/GroupsApi.md#listgroups) | **GET** /collections/{id}/groups | List all groups in a collection
|
|
79
80
|
*GroupsApi* | [**listLatestGroups**](docs/GroupsApi.md#listlatestgroups) | **GET** /groups | List groups from the latest collection
|
|
@@ -109,6 +110,8 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
109
110
|
- [AgentModeRequest](docs/AgentModeRequest.md)
|
|
110
111
|
- [AgentStatus](docs/AgentStatus.md)
|
|
111
112
|
- [AgentStatusConsoleConnection](docs/AgentStatusConsoleConnection.md)
|
|
113
|
+
- [Appliance](docs/Appliance.md)
|
|
114
|
+
- [ApplianceListResponse](docs/ApplianceListResponse.md)
|
|
112
115
|
- [ApplicationListResponse](docs/ApplicationListResponse.md)
|
|
113
116
|
- [ApplicationOverview](docs/ApplicationOverview.md)
|
|
114
117
|
- [ApplicationVM](docs/ApplicationVM.md)
|
|
@@ -162,6 +165,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
162
165
|
- [PairCapability](docs/PairCapability.md)
|
|
163
166
|
- [PairCapabilityRequest](docs/PairCapabilityRequest.md)
|
|
164
167
|
- [Process](docs/Process.md)
|
|
168
|
+
- [Product](docs/Product.md)
|
|
165
169
|
- [RDMBacking](docs/RDMBacking.md)
|
|
166
170
|
- [RightsizingClusterResponse](docs/RightsizingClusterResponse.md)
|
|
167
171
|
- [RightsizingClusterUtilization](docs/RightsizingClusterUtilization.md)
|
|
@@ -185,6 +189,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
185
189
|
- [VirtualMachineDetail](docs/VirtualMachineDetail.md)
|
|
186
190
|
- [VirtualMachineDevice](docs/VirtualMachineDevice.md)
|
|
187
191
|
- [VirtualMachineDisk](docs/VirtualMachineDisk.md)
|
|
192
|
+
- [VirtualMachineIdentity](docs/VirtualMachineIdentity.md)
|
|
188
193
|
- [VirtualMachineInspectionConcern](docs/VirtualMachineInspectionConcern.md)
|
|
189
194
|
- [VirtualMachineInspectionResults](docs/VirtualMachineInspectionResults.md)
|
|
190
195
|
- [VirtualMachineIssue](docs/VirtualMachineIssue.md)
|
|
@@ -205,7 +210,7 @@ and is automatically generated by the
|
|
|
205
210
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
206
211
|
|
|
207
212
|
- API version: `v2`
|
|
208
|
-
- Package version: `0.
|
|
213
|
+
- Package version: `0.33.0`
|
|
209
214
|
- Generator version: `7.28.0-SNAPSHOT`
|
|
210
215
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
211
216
|
|
|
@@ -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,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.AppliancesApi = void 0;
|
|
26
|
+
const runtime = require("../runtime.js");
|
|
27
|
+
const ApplianceListResponse_js_1 = require("../models/ApplianceListResponse.js");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class AppliancesApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Creates request options for listAppliances without sending the request
|
|
34
|
+
*/
|
|
35
|
+
listAppliancesRequestOpts(requestParameters) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters['id'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling listAppliances().');
|
|
39
|
+
}
|
|
40
|
+
const queryParameters = {};
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
let urlPath = `/collections/{id}/appliances`;
|
|
43
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
44
|
+
return {
|
|
45
|
+
path: urlPath,
|
|
46
|
+
method: 'GET',
|
|
47
|
+
headers: headerParameters,
|
|
48
|
+
query: queryParameters,
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* List detected appliances in a collection
|
|
54
|
+
*/
|
|
55
|
+
listAppliancesRaw(requestParameters, initOverrides) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
const requestOptions = yield this.listAppliancesRequestOpts(requestParameters);
|
|
58
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
59
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplianceListResponse_js_1.ApplianceListResponseFromJSON)(jsonValue));
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* List detected appliances in a collection
|
|
64
|
+
*/
|
|
65
|
+
listAppliances(requestParameters, initOverrides) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
const response = yield this.listAppliancesRaw(requestParameters, initOverrides);
|
|
68
|
+
return yield response.value();
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.AppliancesApi = AppliancesApi;
|
|
@@ -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
|
*/
|
|
@@ -99,65 +99,6 @@ class CollectorApi extends runtime.BaseAPI {
|
|
|
99
99
|
return yield response.value();
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
|
-
/**
|
|
103
|
-
* Creates request options for startRvtoolsCollector without sending the request
|
|
104
|
-
*/
|
|
105
|
-
startRvtoolsCollectorRequestOpts(requestParameters) {
|
|
106
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
-
if (requestParameters['files'] == null) {
|
|
108
|
-
throw new runtime.RequiredError('files', 'Required parameter "files" was null or undefined when calling startRvtoolsCollector().');
|
|
109
|
-
}
|
|
110
|
-
const queryParameters = {};
|
|
111
|
-
const headerParameters = {};
|
|
112
|
-
const consumes = [
|
|
113
|
-
{ contentType: 'multipart/form-data' },
|
|
114
|
-
];
|
|
115
|
-
// @ts-ignore: canConsumeForm may be unused
|
|
116
|
-
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
117
|
-
let formParams;
|
|
118
|
-
let useForm = false;
|
|
119
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
120
|
-
useForm = canConsumeForm;
|
|
121
|
-
if (useForm) {
|
|
122
|
-
formParams = new FormData();
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
formParams = new URLSearchParams();
|
|
126
|
-
}
|
|
127
|
-
if (requestParameters['files'] != null) {
|
|
128
|
-
requestParameters['files'].forEach((element) => {
|
|
129
|
-
formParams.append('files', element);
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
let urlPath = `/collector/rvtools`;
|
|
133
|
-
return {
|
|
134
|
-
path: urlPath,
|
|
135
|
-
method: 'POST',
|
|
136
|
-
headers: headerParameters,
|
|
137
|
-
query: queryParameters,
|
|
138
|
-
body: formParams,
|
|
139
|
-
};
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Start a collection from RVTools files
|
|
144
|
-
*/
|
|
145
|
-
startRvtoolsCollectorRaw(requestParameters, initOverrides) {
|
|
146
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
-
const requestOptions = yield this.startRvtoolsCollectorRequestOpts(requestParameters);
|
|
148
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
149
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CollectorStatus_js_1.CollectorStatusFromJSON)(jsonValue));
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Start a collection from RVTools files
|
|
154
|
-
*/
|
|
155
|
-
startRvtoolsCollector(requestParameters, initOverrides) {
|
|
156
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
-
const response = yield this.startRvtoolsCollectorRaw(requestParameters, initOverrides);
|
|
158
|
-
return yield response.value();
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
102
|
/**
|
|
162
103
|
* Creates request options for stopCollector without sending the request
|
|
163
104
|
*/
|
package/dist/apis/GroupsApi.d.ts
CHANGED
|
@@ -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
|
*/
|
package/dist/apis/GroupsApi.js
CHANGED
|
@@ -24,6 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.GroupsApi = void 0;
|
|
26
26
|
const runtime = require("../runtime.js");
|
|
27
|
+
const ApplianceListResponse_js_1 = require("../models/ApplianceListResponse.js");
|
|
27
28
|
const ApplicationListResponse_js_1 = require("../models/ApplicationListResponse.js");
|
|
28
29
|
const CreateGroupRequest_js_1 = require("../models/CreateGroupRequest.js");
|
|
29
30
|
const Group_js_1 = require("../models/Group.js");
|
|
@@ -212,6 +213,45 @@ class GroupsApi extends runtime.BaseAPI {
|
|
|
212
213
|
return yield response.value();
|
|
213
214
|
});
|
|
214
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
* Creates request options for listGroupAppliances without sending the request
|
|
218
|
+
*/
|
|
219
|
+
listGroupAppliancesRequestOpts(requestParameters) {
|
|
220
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
+
if (requestParameters['groupId'] == null) {
|
|
222
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling listGroupAppliances().');
|
|
223
|
+
}
|
|
224
|
+
const queryParameters = {};
|
|
225
|
+
const headerParameters = {};
|
|
226
|
+
let urlPath = `/groups/{groupId}/appliances`;
|
|
227
|
+
urlPath = urlPath.replace('{groupId}', encodeURIComponent(String(requestParameters['groupId'])));
|
|
228
|
+
return {
|
|
229
|
+
path: urlPath,
|
|
230
|
+
method: 'GET',
|
|
231
|
+
headers: headerParameters,
|
|
232
|
+
query: queryParameters,
|
|
233
|
+
};
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* List detected appliances for a group
|
|
238
|
+
*/
|
|
239
|
+
listGroupAppliancesRaw(requestParameters, initOverrides) {
|
|
240
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
241
|
+
const requestOptions = yield this.listGroupAppliancesRequestOpts(requestParameters);
|
|
242
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
243
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplianceListResponse_js_1.ApplianceListResponseFromJSON)(jsonValue));
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* List detected appliances for a group
|
|
248
|
+
*/
|
|
249
|
+
listGroupAppliances(requestParameters, initOverrides) {
|
|
250
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
251
|
+
const response = yield this.listGroupAppliancesRaw(requestParameters, initOverrides);
|
|
252
|
+
return yield response.value();
|
|
253
|
+
});
|
|
254
|
+
}
|
|
215
255
|
/**
|
|
216
256
|
* Creates request options for listGroupApplications without sending the request
|
|
217
257
|
*/
|
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
|
+
}
|