@openshift-migration-advisor/agent-sdk 0.32.0 → 0.33.0-e1c90d7b1b79
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 +38 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +28 -4
- package/dist/apis/AppliancesApi.d.ts +258 -0
- package/dist/apis/AppliancesApi.js +273 -0
- package/dist/apis/CollectorApi.d.ts +0 -38
- package/dist/apis/CollectorApi.js +0 -59
- package/dist/apis/GroupsApi.d.ts +45 -6
- package/dist/apis/GroupsApi.js +40 -0
- package/dist/apis/ImageUpgradeApi.d.ts +66 -0
- package/dist/apis/ImageUpgradeApi.js +90 -0
- package/dist/apis/VirtualMachinesApi.d.ts +6 -6
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/AppliancesApi.d.ts +258 -0
- package/dist/esm/apis/AppliancesApi.js +269 -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 +45 -6
- package/dist/esm/apis/GroupsApi.js +40 -0
- package/dist/esm/apis/ImageUpgradeApi.d.ts +66 -0
- package/dist/esm/apis/ImageUpgradeApi.js +86 -0
- package/dist/esm/apis/VirtualMachinesApi.d.ts +6 -6
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/AgentStatus.d.ts +5 -0
- package/dist/esm/models/AgentStatus.js +5 -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/ApplianceRule.d.ts +90 -0
- package/dist/esm/models/ApplianceRule.js +98 -0
- package/dist/esm/models/ApplianceRuleCondition.d.ts +42 -0
- package/dist/esm/models/ApplianceRuleCondition.js +48 -0
- package/dist/esm/models/ApplianceRuleFunction.d.ts +37 -0
- package/dist/esm/models/ApplianceRuleFunction.js +46 -0
- package/dist/esm/models/ApplianceRuleListResponse.d.ts +31 -0
- package/dist/esm/models/ApplianceRuleListResponse.js +44 -0
- package/dist/esm/models/ApplianceRuleRequest.d.ts +74 -0
- package/dist/esm/models/ApplianceRuleRequest.js +85 -0
- package/dist/esm/models/ApplicationOverview.d.ts +16 -0
- package/dist/esm/models/ApplicationOverview.js +12 -0
- package/dist/esm/models/Datastore.d.ts +9 -0
- package/dist/esm/models/Datastore.js +5 -0
- package/dist/esm/models/DiskGeometryCondition.d.ts +47 -0
- package/dist/esm/models/DiskGeometryCondition.js +58 -0
- package/dist/esm/models/Host.d.ts +16 -0
- package/dist/esm/models/Host.js +8 -0
- package/dist/esm/models/ImageUpgradeImage.d.ts +34 -0
- package/dist/esm/models/ImageUpgradeImage.js +47 -0
- package/dist/esm/models/ImageUpgradeResult.d.ts +66 -0
- package/dist/esm/models/ImageUpgradeResult.js +71 -0
- package/dist/esm/models/ImageUpgradeStatus.d.ts +44 -0
- package/dist/esm/models/ImageUpgradeStatus.js +57 -0
- package/dist/esm/models/ImageUploadStatus.d.ts +44 -0
- package/dist/esm/models/ImageUploadStatus.js +56 -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/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/StorageArray.d.ts +42 -0
- package/dist/esm/models/StorageArray.js +47 -0
- package/dist/esm/models/SuccessfulImageUpgrade.d.ts +38 -0
- package/dist/esm/models/SuccessfulImageUpgrade.js +52 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +8 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +8 -0
- package/dist/esm/models/VirtualMachine.d.ts +8 -0
- package/dist/esm/models/VirtualMachine.js +4 -0
- package/dist/esm/models/VirtualMachineDatastore.d.ts +9 -0
- package/dist/esm/models/VirtualMachineDatastore.js +5 -0
- package/dist/esm/models/VirtualMachineDetail.d.ts +5 -0
- package/dist/esm/models/VirtualMachineDetail.js +3 -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/index.d.ts +17 -0
- package/dist/esm/models/index.js +17 -0
- package/dist/esm/runtime.js +4 -3
- package/dist/models/AgentStatus.d.ts +5 -0
- package/dist/models/AgentStatus.js +5 -0
- 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/ApplianceRule.d.ts +90 -0
- package/dist/models/ApplianceRule.js +106 -0
- package/dist/models/ApplianceRuleCondition.d.ts +42 -0
- package/dist/models/ApplianceRuleCondition.js +55 -0
- package/dist/models/ApplianceRuleFunction.d.ts +37 -0
- package/dist/models/ApplianceRuleFunction.js +53 -0
- package/dist/models/ApplianceRuleListResponse.d.ts +31 -0
- package/dist/models/ApplianceRuleListResponse.js +51 -0
- package/dist/models/ApplianceRuleRequest.d.ts +74 -0
- package/dist/models/ApplianceRuleRequest.js +93 -0
- package/dist/models/ApplicationOverview.d.ts +16 -0
- package/dist/models/ApplicationOverview.js +12 -0
- package/dist/models/Datastore.d.ts +9 -0
- package/dist/models/Datastore.js +5 -0
- package/dist/models/DiskGeometryCondition.d.ts +47 -0
- package/dist/models/DiskGeometryCondition.js +66 -0
- package/dist/models/Host.d.ts +16 -0
- package/dist/models/Host.js +8 -0
- package/dist/models/ImageUpgradeImage.d.ts +34 -0
- package/dist/models/ImageUpgradeImage.js +54 -0
- package/dist/models/ImageUpgradeResult.d.ts +66 -0
- package/dist/models/ImageUpgradeResult.js +79 -0
- package/dist/models/ImageUpgradeStatus.d.ts +44 -0
- package/dist/models/ImageUpgradeStatus.js +64 -0
- package/dist/models/ImageUploadStatus.d.ts +44 -0
- package/dist/models/ImageUploadStatus.js +64 -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/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/StorageArray.d.ts +42 -0
- package/dist/models/StorageArray.js +54 -0
- package/dist/models/SuccessfulImageUpgrade.d.ts +38 -0
- package/dist/models/SuccessfulImageUpgrade.js +59 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +8 -0
- package/dist/models/VMFilterOptionsResponse.js +8 -0
- package/dist/models/VirtualMachine.d.ts +8 -0
- package/dist/models/VirtualMachine.js +4 -0
- package/dist/models/VirtualMachineDatastore.d.ts +9 -0
- package/dist/models/VirtualMachineDatastore.js +5 -0
- package/dist/models/VirtualMachineDetail.d.ts +5 -0
- package/dist/models/VirtualMachineDetail.js +3 -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/index.d.ts +17 -0
- package/dist/models/index.js +17 -0
- package/dist/runtime.js +4 -3
- package/docs/AgentStatus.md +2 -0
- package/docs/Appliance.md +44 -0
- package/docs/ApplianceListResponse.md +34 -0
- package/docs/ApplianceRule.md +50 -0
- package/docs/ApplianceRuleCondition.md +39 -0
- package/docs/ApplianceRuleFunction.md +37 -0
- package/docs/ApplianceRuleListResponse.md +34 -0
- package/docs/ApplianceRuleRequest.md +46 -0
- package/docs/AppliancesApi.md +414 -0
- package/docs/ApplicationOverview.md +8 -0
- package/docs/CollectorApi.md +0 -70
- package/docs/Datastore.md +4 -0
- package/docs/DiskGeometryCondition.md +38 -0
- package/docs/GroupsApi.md +72 -4
- package/docs/Host.md +8 -0
- package/docs/ImageUpgradeApi.md +82 -0
- package/docs/ImageUpgradeImage.md +36 -0
- package/docs/ImageUpgradeResult.md +46 -0
- package/docs/ImageUpgradeStatus.md +40 -0
- package/docs/ImageUploadStatus.md +36 -0
- package/docs/OsInfo.md +2 -0
- package/docs/Product.md +52 -0
- package/docs/RDMBacking.md +8 -0
- package/docs/RDMHostLun.md +41 -0
- package/docs/StorageArray.md +41 -0
- package/docs/SuccessfulImageUpgrade.md +38 -0
- package/docs/VMFilterOptionsResponse.md +4 -0
- package/docs/VirtualMachine.md +4 -0
- package/docs/VirtualMachineDatastore.md +4 -0
- package/docs/VirtualMachineDetail.md +2 -0
- package/docs/VirtualMachineDisk.md +4 -0
- package/docs/VirtualMachineIdentity.md +36 -0
- package/docs/VirtualMachinesApi.md +4 -4
- package/package.json +1 -1
- package/src/apis/AppliancesApi.ts +504 -0
- package/src/apis/CollectorApi.ts +0 -97
- package/src/apis/GroupsApi.ts +86 -6
- package/src/apis/ImageUpgradeApi.ts +128 -0
- package/src/apis/VirtualMachinesApi.ts +6 -6
- package/src/apis/index.ts +2 -0
- package/src/models/AgentStatus.ts +14 -0
- package/src/models/Appliance.ts +107 -0
- package/src/models/ApplianceListResponse.ts +72 -0
- package/src/models/ApplianceRule.ts +159 -0
- package/src/models/ApplianceRuleCondition.ts +87 -0
- package/src/models/ApplianceRuleFunction.ts +80 -0
- package/src/models/ApplianceRuleListResponse.ts +72 -0
- package/src/models/ApplianceRuleRequest.ts +137 -0
- package/src/models/ApplicationOverview.ts +26 -0
- package/src/models/Datastore.ts +19 -0
- package/src/models/DiskGeometryCondition.ts +90 -0
- package/src/models/Host.ts +24 -0
- package/src/models/ImageUpgradeImage.ts +71 -0
- package/src/models/ImageUpgradeResult.ts +130 -0
- package/src/models/ImageUpgradeStatus.ts +100 -0
- package/src/models/ImageUploadStatus.ts +84 -0
- 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/StorageArray.ts +81 -0
- package/src/models/SuccessfulImageUpgrade.ts +78 -0
- package/src/models/VMFilterOptionsResponse.ts +14 -0
- package/src/models/VirtualMachine.ts +12 -0
- package/src/models/VirtualMachineDatastore.ts +20 -0
- package/src/models/VirtualMachineDetail.ts +13 -0
- package/src/models/VirtualMachineDisk.ts +12 -0
- package/src/models/VirtualMachineIdentity.ts +71 -0
- package/src/models/index.ts +17 -0
- package/src/runtime.ts +3 -3
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export class ImageUpgradeApi extends runtime.BaseAPI {
|
|
28
|
+
/**
|
|
29
|
+
* Creates request options for postImageUpgrade without sending the request
|
|
30
|
+
*/
|
|
31
|
+
postImageUpgradeRequestOpts(requestParameters) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
if (requestParameters['file'] == null) {
|
|
34
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling postImageUpgrade().');
|
|
35
|
+
}
|
|
36
|
+
const queryParameters = {};
|
|
37
|
+
const headerParameters = {};
|
|
38
|
+
const consumes = [
|
|
39
|
+
{ contentType: 'multipart/form-data' },
|
|
40
|
+
];
|
|
41
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
42
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
43
|
+
let formParams;
|
|
44
|
+
let useForm = false;
|
|
45
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
46
|
+
useForm = canConsumeForm;
|
|
47
|
+
if (useForm) {
|
|
48
|
+
formParams = new FormData();
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
formParams = new URLSearchParams();
|
|
52
|
+
}
|
|
53
|
+
if (requestParameters['file'] != null) {
|
|
54
|
+
formParams.append('file', requestParameters['file']);
|
|
55
|
+
}
|
|
56
|
+
let urlPath = `/image-upgrades`;
|
|
57
|
+
return {
|
|
58
|
+
path: urlPath,
|
|
59
|
+
method: 'POST',
|
|
60
|
+
headers: headerParameters,
|
|
61
|
+
query: queryParameters,
|
|
62
|
+
body: formParams,
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Validate the complete upload and atomically place the archive in the watched directory. The host owns upgrade execution. Read imageUpgradeStatus in GET /agent for upload activity and the last host result.
|
|
68
|
+
* Upload an OCI image for a disconnected appliance image upgrade
|
|
69
|
+
*/
|
|
70
|
+
postImageUpgradeRaw(requestParameters, initOverrides) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
const requestOptions = yield this.postImageUpgradeRequestOpts(requestParameters);
|
|
73
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
74
|
+
return new runtime.VoidApiResponse(response);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Validate the complete upload and atomically place the archive in the watched directory. The host owns upgrade execution. Read imageUpgradeStatus in GET /agent for upload activity and the last host result.
|
|
79
|
+
* Upload an OCI image for a disconnected appliance image upgrade
|
|
80
|
+
*/
|
|
81
|
+
postImageUpgrade(requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
yield this.postImageUpgradeRaw(requestParameters, initOverrides);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -81,7 +81,7 @@ export interface ListLatestVirtualMachinesRequest {
|
|
|
81
81
|
*/
|
|
82
82
|
byExpression?: string;
|
|
83
83
|
/**
|
|
84
|
-
* Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
84
|
+
* Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
|
|
85
85
|
*/
|
|
86
86
|
sort?: Array<string>;
|
|
87
87
|
/**
|
|
@@ -103,7 +103,7 @@ export interface ListVirtualMachinesRequest {
|
|
|
103
103
|
*/
|
|
104
104
|
byExpression?: string;
|
|
105
105
|
/**
|
|
106
|
-
* Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
106
|
+
* Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
|
|
107
107
|
*/
|
|
108
108
|
sort?: Array<string>;
|
|
109
109
|
/**
|
|
@@ -345,7 +345,7 @@ export interface VirtualMachinesApiInterface {
|
|
|
345
345
|
/**
|
|
346
346
|
* Creates request options for listLatestVirtualMachines without sending the request
|
|
347
347
|
* @param {string} [byExpression] Filter by expression
|
|
348
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
348
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
|
|
349
349
|
* @param {number} [page] Page number for pagination
|
|
350
350
|
* @param {number} [pageSize] Number of items per page
|
|
351
351
|
* @throws {RequiredError}
|
|
@@ -356,7 +356,7 @@ export interface VirtualMachinesApiInterface {
|
|
|
356
356
|
*
|
|
357
357
|
* @summary List VirtualMachines from the latest collection
|
|
358
358
|
* @param {string} [byExpression] Filter by expression
|
|
359
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
359
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
|
|
360
360
|
* @param {number} [page] Page number for pagination
|
|
361
361
|
* @param {number} [pageSize] Number of items per page
|
|
362
362
|
* @param {*} [options] Override http request option.
|
|
@@ -372,7 +372,7 @@ export interface VirtualMachinesApiInterface {
|
|
|
372
372
|
* Creates request options for listVirtualMachines without sending the request
|
|
373
373
|
* @param {string} id Collection ID
|
|
374
374
|
* @param {string} [byExpression] Filter by expression
|
|
375
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
375
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
|
|
376
376
|
* @param {number} [page] Page number for pagination
|
|
377
377
|
* @param {number} [pageSize] Number of items per page
|
|
378
378
|
* @throws {RequiredError}
|
|
@@ -384,7 +384,7 @@ export interface VirtualMachinesApiInterface {
|
|
|
384
384
|
* @summary List VirtualMachines in a collection
|
|
385
385
|
* @param {string} id Collection ID
|
|
386
386
|
* @param {string} [byExpression] Filter by expression
|
|
387
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
387
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
|
|
388
388
|
* @param {number} [page] Page number for pagination
|
|
389
389
|
* @param {number} [pageSize] Number of items per page
|
|
390
390
|
* @param {*} [options] Override http request option.
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from './AgentApi.js';
|
|
2
|
+
export * from './AppliancesApi.js';
|
|
2
3
|
export * from './ApplicationsApi.js';
|
|
3
4
|
export * from './CollectionsApi.js';
|
|
4
5
|
export * from './CollectorApi.js';
|
|
5
6
|
export * from './CredentialsApi.js';
|
|
6
7
|
export * from './ForecasterApi.js';
|
|
7
8
|
export * from './GroupsApi.js';
|
|
9
|
+
export * from './ImageUpgradeApi.js';
|
|
8
10
|
export * from './InspectorApi.js';
|
|
9
11
|
export * from './InventoriesApi.js';
|
|
10
12
|
export * from './RightsizingApi.js';
|
package/dist/esm/apis/index.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AgentApi.js';
|
|
4
|
+
export * from './AppliancesApi.js';
|
|
4
5
|
export * from './ApplicationsApi.js';
|
|
5
6
|
export * from './CollectionsApi.js';
|
|
6
7
|
export * from './CollectorApi.js';
|
|
7
8
|
export * from './CredentialsApi.js';
|
|
8
9
|
export * from './ForecasterApi.js';
|
|
9
10
|
export * from './GroupsApi.js';
|
|
11
|
+
export * from './ImageUpgradeApi.js';
|
|
10
12
|
export * from './InspectorApi.js';
|
|
11
13
|
export * from './InventoriesApi.js';
|
|
12
14
|
export * from './RightsizingApi.js';
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ImageUpgradeStatus } from './ImageUpgradeStatus.js';
|
|
12
13
|
import type { AgentStatusConsoleConnection } from './AgentStatusConsoleConnection.js';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -28,6 +29,10 @@ export interface AgentStatus {
|
|
|
28
29
|
* RVTool mode enabled
|
|
29
30
|
*/
|
|
30
31
|
rvtoolsModeEnabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Always present in both connected and disconnected modes, including while the console is unreachable. Includes upload activity and the last host image upgrade result. Image upgrade status errors do not fail the agent-status response.
|
|
34
|
+
*/
|
|
35
|
+
imageUpgradeStatus: ImageUpgradeStatus;
|
|
31
36
|
}
|
|
32
37
|
/**
|
|
33
38
|
* @export
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { ImageUpgradeStatusFromJSON, ImageUpgradeStatusToJSON, } from './ImageUpgradeStatus.js';
|
|
14
15
|
import { AgentStatusConsoleConnectionFromJSON, AgentStatusConsoleConnectionToJSON, } from './AgentStatusConsoleConnection.js';
|
|
15
16
|
/**
|
|
16
17
|
* @export
|
|
@@ -27,6 +28,8 @@ export function instanceOfAgentStatus(value) {
|
|
|
27
28
|
return false;
|
|
28
29
|
if (!('consoleConnection' in value) || value['consoleConnection'] === undefined)
|
|
29
30
|
return false;
|
|
31
|
+
if (!('imageUpgradeStatus' in value) || value['imageUpgradeStatus'] === undefined)
|
|
32
|
+
return false;
|
|
30
33
|
return true;
|
|
31
34
|
}
|
|
32
35
|
export function AgentStatusFromJSON(json) {
|
|
@@ -40,6 +43,7 @@ export function AgentStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
43
|
'mode': json['mode'],
|
|
41
44
|
'consoleConnection': AgentStatusConsoleConnectionFromJSON(json['consoleConnection']),
|
|
42
45
|
'rvtoolsModeEnabled': json['rvtoolsModeEnabled'] == null ? undefined : json['rvtoolsModeEnabled'],
|
|
46
|
+
'imageUpgradeStatus': ImageUpgradeStatusFromJSON(json['imageUpgradeStatus']),
|
|
43
47
|
};
|
|
44
48
|
}
|
|
45
49
|
export function AgentStatusToJSON(json) {
|
|
@@ -53,5 +57,6 @@ export function AgentStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
53
57
|
'mode': value['mode'],
|
|
54
58
|
'consoleConnection': AgentStatusConsoleConnectionToJSON(value['consoleConnection']),
|
|
55
59
|
'rvtoolsModeEnabled': value['rvtoolsModeEnabled'],
|
|
60
|
+
'imageUpgradeStatus': ImageUpgradeStatusToJSON(value['imageUpgradeStatus']),
|
|
56
61
|
};
|
|
57
62
|
}
|
|
@@ -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;
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { ApplianceFromJSON, ApplianceToJSON, } from './Appliance.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApplianceListResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApplianceListResponse(value) {
|
|
19
|
+
if (!('appliances' in value) || value['appliances'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function ApplianceListResponseFromJSON(json) {
|
|
24
|
+
return ApplianceListResponseFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function ApplianceListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'appliances': (json['appliances'].map(ApplianceFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function ApplianceListResponseToJSON(json) {
|
|
35
|
+
return ApplianceListResponseToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ApplianceListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'appliances': (value['appliances'].map(ApplianceToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { ApplianceRuleCondition } from './ApplianceRuleCondition.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApplianceRule
|
|
17
|
+
*/
|
|
18
|
+
export interface ApplianceRule {
|
|
19
|
+
/**
|
|
20
|
+
* Rule ID
|
|
21
|
+
*/
|
|
22
|
+
id?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Appliance product name
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
* Appliance vendor
|
|
29
|
+
*/
|
|
30
|
+
vendor: string;
|
|
31
|
+
/**
|
|
32
|
+
* Appliance category
|
|
33
|
+
*/
|
|
34
|
+
category: string;
|
|
35
|
+
/**
|
|
36
|
+
* OSV migration verdict
|
|
37
|
+
*/
|
|
38
|
+
osv_verdict: ApplianceRuleOsvVerdictEnum;
|
|
39
|
+
/**
|
|
40
|
+
* Confidence ceiling for this rule
|
|
41
|
+
*/
|
|
42
|
+
max_confidence: ApplianceRuleMaxConfidenceEnum;
|
|
43
|
+
/**
|
|
44
|
+
* Kind of rules either default or custom
|
|
45
|
+
*/
|
|
46
|
+
kind: ApplianceRuleKindEnum;
|
|
47
|
+
/**
|
|
48
|
+
* Number of conditions that must match before the rule fires
|
|
49
|
+
*/
|
|
50
|
+
min_matched: number;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
conditions: Array<ApplianceRuleCondition>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @export
|
|
58
|
+
*/
|
|
59
|
+
export declare const ApplianceRuleOsvVerdictEnum: {
|
|
60
|
+
readonly Blocked: "blocked";
|
|
61
|
+
readonly Conditional: "conditional";
|
|
62
|
+
readonly Supported: "supported";
|
|
63
|
+
readonly Unknown: "unknown";
|
|
64
|
+
};
|
|
65
|
+
export type ApplianceRuleOsvVerdictEnum = typeof ApplianceRuleOsvVerdictEnum[keyof typeof ApplianceRuleOsvVerdictEnum];
|
|
66
|
+
/**
|
|
67
|
+
* @export
|
|
68
|
+
*/
|
|
69
|
+
export declare const ApplianceRuleMaxConfidenceEnum: {
|
|
70
|
+
readonly High: "high";
|
|
71
|
+
readonly Medium: "medium";
|
|
72
|
+
readonly Low: "low";
|
|
73
|
+
};
|
|
74
|
+
export type ApplianceRuleMaxConfidenceEnum = typeof ApplianceRuleMaxConfidenceEnum[keyof typeof ApplianceRuleMaxConfidenceEnum];
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export declare const ApplianceRuleKindEnum: {
|
|
79
|
+
readonly Default: "default";
|
|
80
|
+
readonly Custom: "custom";
|
|
81
|
+
};
|
|
82
|
+
export type ApplianceRuleKindEnum = typeof ApplianceRuleKindEnum[keyof typeof ApplianceRuleKindEnum];
|
|
83
|
+
/**
|
|
84
|
+
* Check if a given object implements the ApplianceRule interface.
|
|
85
|
+
*/
|
|
86
|
+
export declare function instanceOfApplianceRule(value: object): value is ApplianceRule;
|
|
87
|
+
export declare function ApplianceRuleFromJSON(json: any): ApplianceRule;
|
|
88
|
+
export declare function ApplianceRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceRule;
|
|
89
|
+
export declare function ApplianceRuleToJSON(json: any): ApplianceRule;
|
|
90
|
+
export declare function ApplianceRuleToJSONTyped(value?: ApplianceRule | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,98 @@
|
|
|
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 { ApplianceRuleConditionFromJSON, ApplianceRuleConditionToJSON, } from './ApplianceRuleCondition.js';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const ApplianceRuleOsvVerdictEnum = {
|
|
19
|
+
Blocked: 'blocked',
|
|
20
|
+
Conditional: 'conditional',
|
|
21
|
+
Supported: 'supported',
|
|
22
|
+
Unknown: 'unknown',
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
export const ApplianceRuleMaxConfidenceEnum = {
|
|
28
|
+
High: 'high',
|
|
29
|
+
Medium: 'medium',
|
|
30
|
+
Low: 'low',
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export const ApplianceRuleKindEnum = {
|
|
36
|
+
Default: 'default',
|
|
37
|
+
Custom: 'custom',
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the ApplianceRule interface.
|
|
41
|
+
*/
|
|
42
|
+
export function instanceOfApplianceRule(value) {
|
|
43
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('vendor' in value) || value['vendor'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('osv_verdict' in value) || value['osv_verdict'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('max_confidence' in value) || value['max_confidence'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('min_matched' in value) || value['min_matched'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('conditions' in value) || value['conditions'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
export function ApplianceRuleFromJSON(json) {
|
|
62
|
+
return ApplianceRuleFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
export function ApplianceRuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
70
|
+
'name': json['name'],
|
|
71
|
+
'vendor': json['vendor'],
|
|
72
|
+
'category': json['category'],
|
|
73
|
+
'osv_verdict': json['osv_verdict'],
|
|
74
|
+
'max_confidence': json['max_confidence'],
|
|
75
|
+
'kind': json['kind'],
|
|
76
|
+
'min_matched': json['min_matched'],
|
|
77
|
+
'conditions': (json['conditions'].map(ApplianceRuleConditionFromJSON)),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
export function ApplianceRuleToJSON(json) {
|
|
81
|
+
return ApplianceRuleToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
export function ApplianceRuleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
'id': value['id'],
|
|
89
|
+
'name': value['name'],
|
|
90
|
+
'vendor': value['vendor'],
|
|
91
|
+
'category': value['category'],
|
|
92
|
+
'osv_verdict': value['osv_verdict'],
|
|
93
|
+
'max_confidence': value['max_confidence'],
|
|
94
|
+
'kind': value['kind'],
|
|
95
|
+
'min_matched': value['min_matched'],
|
|
96
|
+
'conditions': (value['conditions'].map(ApplianceRuleConditionToJSON)),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 { ApplianceRuleFunction } from './ApplianceRuleFunction.js';
|
|
13
|
+
/**
|
|
14
|
+
* One condition. Either a filter expression over VM attributes or a call to a registered predicate function carrying its own payload. Exactly one of expression or function must be set. Condition names must be unique within a rule, and min_matched may not exceed the number of conditions.
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ApplianceRuleCondition
|
|
18
|
+
*/
|
|
19
|
+
export interface ApplianceRuleCondition {
|
|
20
|
+
/**
|
|
21
|
+
* Condition name, unique within the rule. The name decides how much a match contributes: vapp_product and annotation weigh high, guest_id and mount_preffix medium, nic_count, disk_geometry and nested_hv low, and name weighs so little that matching it alone is not a detection. Any other name is rejected.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* Filter DSL expression over the VM attributes appliance rules can match on, e.g. Name ~ /^ORA-/ or NICCount > 3.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
expression?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
_function?: ApplianceRuleFunction;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the ApplianceRuleCondition interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfApplianceRuleCondition(value: object): value is ApplianceRuleCondition;
|
|
39
|
+
export declare function ApplianceRuleConditionFromJSON(json: any): ApplianceRuleCondition;
|
|
40
|
+
export declare function ApplianceRuleConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceRuleCondition;
|
|
41
|
+
export declare function ApplianceRuleConditionToJSON(json: any): ApplianceRuleCondition;
|
|
42
|
+
export declare function ApplianceRuleConditionToJSONTyped(value?: ApplianceRuleCondition | null, ignoreDiscriminator?: boolean): any;
|