@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0-1f1dc16fb9e5
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 +46 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +52 -17
- package/dist/apis/DefaultApi.d.ts +632 -126
- package/dist/apis/DefaultApi.js +710 -160
- package/dist/esm/apis/DefaultApi.d.ts +632 -126
- package/dist/esm/apis/DefaultApi.js +724 -174
- package/dist/esm/models/BenchmarkRun.d.ts +104 -0
- package/dist/esm/models/BenchmarkRun.js +85 -0
- package/dist/esm/models/DatastoreDetail.d.ts +90 -0
- package/dist/esm/models/DatastoreDetail.js +74 -0
- package/dist/esm/models/DatastorePair.d.ts +50 -0
- package/dist/esm/models/DatastorePair.js +53 -0
- package/dist/esm/models/EstimateRange.d.ts +44 -0
- package/dist/esm/models/EstimateRange.js +45 -0
- package/dist/esm/models/ForecastStats.d.ts +87 -0
- package/dist/esm/models/ForecastStats.js +64 -0
- package/dist/esm/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
- package/dist/esm/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/esm/models/ForecasterPairStatus.js +82 -0
- package/dist/esm/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/esm/models/ForecasterStartRequest.js +53 -0
- package/dist/esm/models/ForecasterStatus.d.ts +47 -0
- package/dist/esm/models/ForecasterStatus.js +53 -0
- package/dist/esm/models/InspectorStatus.d.ts +20 -7
- package/dist/esm/models/InspectorStatus.js +12 -7
- package/dist/esm/models/PairCapability.d.ts +60 -0
- package/dist/esm/models/PairCapability.js +64 -0
- package/dist/esm/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/esm/models/PairCapabilityRequest.js +47 -0
- package/dist/esm/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/esm/models/PutForecasterCredentials403Response.js +43 -0
- package/dist/esm/models/RightsizingCollectRequest.d.ts +70 -0
- package/dist/esm/models/RightsizingCollectRequest.js +56 -0
- package/dist/esm/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/esm/models/RightsizingMetricStats.js +63 -0
- package/dist/esm/models/RightsizingReport.d.ts +81 -0
- package/dist/esm/models/RightsizingReport.js +76 -0
- package/dist/esm/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingReportListResponse.js +48 -0
- package/dist/esm/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/esm/models/RightsizingReportSummary.js +71 -0
- package/dist/esm/models/RightsizingVMReport.d.ts +53 -0
- package/dist/esm/models/RightsizingVMReport.js +57 -0
- package/dist/esm/models/StartInspectionRequest.d.ts +32 -0
- package/dist/esm/models/StartInspectionRequest.js +43 -0
- package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/esm/models/StopForecasterPair202Response.js +49 -0
- package/dist/esm/models/VMs.d.ts +18 -0
- package/dist/esm/models/VMs.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +31 -1
- package/dist/esm/models/VirtualMachine.js +12 -4
- package/dist/esm/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/esm/models/VirtualMachineDetail.js +3 -3
- package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
- package/dist/esm/models/VmInspectionConcern.js +51 -0
- package/dist/esm/models/VmInspectionResults.d.ts +33 -0
- package/dist/esm/models/VmInspectionResults.js +42 -0
- package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
- package/dist/esm/models/VmInspectionStatus.js +1 -2
- package/dist/esm/models/VmUtilizationDetails.d.ts +98 -0
- package/dist/esm/models/VmUtilizationDetails.js +87 -0
- package/dist/esm/models/index.d.ts +23 -1
- package/dist/esm/models/index.js +23 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/BenchmarkRun.d.ts +104 -0
- package/dist/models/BenchmarkRun.js +92 -0
- package/dist/models/DatastoreDetail.d.ts +90 -0
- package/dist/models/DatastoreDetail.js +82 -0
- package/dist/models/DatastorePair.d.ts +50 -0
- package/dist/models/DatastorePair.js +60 -0
- package/dist/models/EstimateRange.d.ts +44 -0
- package/dist/models/EstimateRange.js +52 -0
- package/dist/models/ForecastStats.d.ts +87 -0
- package/dist/models/ForecastStats.js +71 -0
- package/dist/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/models/ForecasterDatastoresRequest.js +49 -0
- package/dist/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/models/ForecasterPairStatus.js +90 -0
- package/dist/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/models/ForecasterStartRequest.js +60 -0
- package/dist/models/ForecasterStatus.d.ts +47 -0
- package/dist/models/ForecasterStatus.js +61 -0
- package/dist/models/InspectorStatus.d.ts +20 -7
- package/dist/models/InspectorStatus.js +12 -7
- package/dist/models/PairCapability.d.ts +60 -0
- package/dist/models/PairCapability.js +72 -0
- package/dist/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/models/PairCapabilityRequest.js +54 -0
- package/dist/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/models/PutForecasterCredentials403Response.js +50 -0
- package/dist/models/RightsizingCollectRequest.d.ts +70 -0
- package/dist/models/RightsizingCollectRequest.js +63 -0
- package/dist/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/models/RightsizingMetricStats.js +70 -0
- package/dist/models/RightsizingReport.d.ts +81 -0
- package/dist/models/RightsizingReport.js +83 -0
- package/dist/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/models/RightsizingReportListResponse.js +55 -0
- package/dist/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/models/RightsizingReportSummary.js +78 -0
- package/dist/models/RightsizingVMReport.d.ts +53 -0
- package/dist/models/RightsizingVMReport.js +64 -0
- package/dist/models/StartInspectionRequest.d.ts +32 -0
- package/dist/models/StartInspectionRequest.js +50 -0
- package/dist/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/models/StopForecasterPair202Response.js +57 -0
- package/dist/models/VMs.d.ts +18 -0
- package/dist/models/VMs.js +4 -0
- package/dist/models/VirtualMachine.d.ts +31 -1
- package/dist/models/VirtualMachine.js +12 -4
- package/dist/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/models/VirtualMachineDetail.js +3 -3
- package/dist/models/VmInspectionConcern.d.ts +44 -0
- package/dist/models/VmInspectionConcern.js +58 -0
- package/dist/models/VmInspectionResults.d.ts +33 -0
- package/dist/models/VmInspectionResults.js +49 -0
- package/dist/models/VmInspectionStatus.d.ts +0 -1
- package/dist/models/VmInspectionStatus.js +1 -2
- package/dist/models/VmUtilizationDetails.d.ts +98 -0
- package/dist/models/VmUtilizationDetails.js +94 -0
- package/dist/models/index.d.ts +23 -1
- package/dist/models/index.js +23 -1
- package/dist/runtime.js +1 -1
- package/docs/BenchmarkRun.md +58 -0
- package/docs/DatastoreDetail.md +50 -0
- package/docs/DatastorePair.md +40 -0
- package/docs/DefaultApi.md +1123 -237
- package/docs/EstimateRange.md +39 -0
- package/docs/ForecastStats.md +52 -0
- package/docs/ForecasterDatastoresRequest.md +34 -0
- package/docs/ForecasterPairStatus.md +52 -0
- package/docs/ForecasterStartRequest.md +42 -0
- package/docs/ForecasterStatus.md +36 -0
- package/docs/InspectorStatus.md +4 -0
- package/docs/PairCapability.md +40 -0
- package/docs/PairCapabilityRequest.md +36 -0
- package/docs/PutForecasterCredentials403Response.md +36 -0
- package/docs/RightsizingCollectRequest.md +46 -0
- package/docs/RightsizingMetricStats.md +44 -0
- package/docs/RightsizingReport.md +50 -0
- package/docs/RightsizingReportListResponse.md +36 -0
- package/docs/RightsizingReportSummary.md +49 -0
- package/docs/RightsizingVMReport.md +40 -0
- package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +5 -6
- package/docs/StopForecasterPair202Response.md +36 -0
- package/docs/VMs.md +4 -0
- package/docs/VirtualMachine.md +12 -2
- package/docs/VirtualMachineDetail.md +1 -1
- package/docs/VmInspectionConcern.md +39 -0
- package/docs/VmInspectionResults.md +35 -0
- package/docs/VmUtilizationDetails.md +56 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +1396 -350
- package/src/models/BenchmarkRun.ts +171 -0
- package/src/models/DatastoreDetail.ts +146 -0
- package/src/models/DatastorePair.ts +92 -0
- package/src/models/EstimateRange.ts +81 -0
- package/src/models/ForecastStats.ts +147 -0
- package/src/models/ForecasterDatastoresRequest.ts +73 -0
- package/src/models/ForecasterPairStatus.ts +158 -0
- package/src/models/ForecasterStartRequest.ts +113 -0
- package/src/models/ForecasterStatus.ts +93 -0
- package/src/models/InspectorStatus.ts +37 -7
- package/src/models/PairCapability.ts +106 -0
- package/src/models/PairCapabilityRequest.ts +89 -0
- package/src/models/PutForecasterCredentials403Response.ts +73 -0
- package/src/models/RightsizingCollectRequest.ts +123 -0
- package/src/models/RightsizingMetricStats.ts +111 -0
- package/src/models/RightsizingReport.ts +146 -0
- package/src/models/RightsizingReportListResponse.ts +83 -0
- package/src/models/RightsizingReportSummary.ts +129 -0
- package/src/models/RightsizingVMReport.ts +101 -0
- package/src/models/StartInspectionRequest.ts +66 -0
- package/src/models/StopForecasterPair202Response.ts +83 -0
- package/src/models/VMs.ts +18 -0
- package/src/models/VirtualMachine.ts +43 -4
- package/src/models/VirtualMachineDetail.ts +11 -11
- package/src/models/VmInspectionConcern.ts +84 -0
- package/src/models/VmInspectionResults.ts +73 -0
- package/src/models/VmInspectionStatus.ts +1 -2
- package/src/models/VmUtilizationDetails.ts +165 -0
- package/src/models/index.ts +23 -1
- package/src/runtime.ts +1 -2
- package/dist/esm/models/InspectorStartRequest.d.ts +0 -39
- package/dist/esm/models/InspectorStartRequest.js +0 -48
- package/dist/models/InspectorStartRequest.d.ts +0 -39
- package/dist/models/InspectorStartRequest.js +0 -55
- package/src/models/InspectorStartRequest.ts +0 -83
package/dist/models/index.js
CHANGED
|
@@ -18,12 +18,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AgentModeRequest.js"), exports);
|
|
20
20
|
__exportStar(require("./AgentStatus.js"), exports);
|
|
21
|
+
__exportStar(require("./BenchmarkRun.js"), exports);
|
|
21
22
|
__exportStar(require("./CollectorStartRequest.js"), exports);
|
|
22
23
|
__exportStar(require("./CollectorStatus.js"), exports);
|
|
23
24
|
__exportStar(require("./CreateGroupRequest.js"), exports);
|
|
24
25
|
__exportStar(require("./Datastore.js"), exports);
|
|
26
|
+
__exportStar(require("./DatastoreDetail.js"), exports);
|
|
27
|
+
__exportStar(require("./DatastorePair.js"), exports);
|
|
25
28
|
__exportStar(require("./DiskSizeTierSummary.js"), exports);
|
|
26
29
|
__exportStar(require("./DiskTypeSummary.js"), exports);
|
|
30
|
+
__exportStar(require("./EstimateRange.js"), exports);
|
|
31
|
+
__exportStar(require("./ForecastStats.js"), exports);
|
|
32
|
+
__exportStar(require("./ForecasterDatastoresRequest.js"), exports);
|
|
33
|
+
__exportStar(require("./ForecasterPairStatus.js"), exports);
|
|
34
|
+
__exportStar(require("./ForecasterStartRequest.js"), exports);
|
|
35
|
+
__exportStar(require("./ForecasterStatus.js"), exports);
|
|
27
36
|
__exportStar(require("./GetInventory200Response.js"), exports);
|
|
28
37
|
__exportStar(require("./Group.js"), exports);
|
|
29
38
|
__exportStar(require("./GroupListResponse.js"), exports);
|
|
@@ -32,13 +41,23 @@ __exportStar(require("./GuestNetwork.js"), exports);
|
|
|
32
41
|
__exportStar(require("./Histogram.js"), exports);
|
|
33
42
|
__exportStar(require("./Host.js"), exports);
|
|
34
43
|
__exportStar(require("./Infra.js"), exports);
|
|
35
|
-
__exportStar(require("./InspectorStartRequest.js"), exports);
|
|
36
44
|
__exportStar(require("./InspectorStatus.js"), exports);
|
|
37
45
|
__exportStar(require("./Inventory.js"), exports);
|
|
38
46
|
__exportStar(require("./InventoryData.js"), exports);
|
|
39
47
|
__exportStar(require("./MigrationIssue.js"), exports);
|
|
40
48
|
__exportStar(require("./Network.js"), exports);
|
|
41
49
|
__exportStar(require("./OsInfo.js"), exports);
|
|
50
|
+
__exportStar(require("./PairCapability.js"), exports);
|
|
51
|
+
__exportStar(require("./PairCapabilityRequest.js"), exports);
|
|
52
|
+
__exportStar(require("./PutForecasterCredentials403Response.js"), exports);
|
|
53
|
+
__exportStar(require("./RightsizingCollectRequest.js"), exports);
|
|
54
|
+
__exportStar(require("./RightsizingMetricStats.js"), exports);
|
|
55
|
+
__exportStar(require("./RightsizingReport.js"), exports);
|
|
56
|
+
__exportStar(require("./RightsizingReportListResponse.js"), exports);
|
|
57
|
+
__exportStar(require("./RightsizingReportSummary.js"), exports);
|
|
58
|
+
__exportStar(require("./RightsizingVMReport.js"), exports);
|
|
59
|
+
__exportStar(require("./StartInspectionRequest.js"), exports);
|
|
60
|
+
__exportStar(require("./StopForecasterPair202Response.js"), exports);
|
|
42
61
|
__exportStar(require("./UpdateGroupRequest.js"), exports);
|
|
43
62
|
__exportStar(require("./UpdateInventory.js"), exports);
|
|
44
63
|
__exportStar(require("./VCenter.js"), exports);
|
|
@@ -54,4 +73,7 @@ __exportStar(require("./VersionInfo.js"), exports);
|
|
|
54
73
|
__exportStar(require("./VirtualMachine.js"), exports);
|
|
55
74
|
__exportStar(require("./VirtualMachineDetail.js"), exports);
|
|
56
75
|
__exportStar(require("./VirtualMachineListResponse.js"), exports);
|
|
76
|
+
__exportStar(require("./VmInspectionConcern.js"), exports);
|
|
77
|
+
__exportStar(require("./VmInspectionResults.js"), exports);
|
|
57
78
|
__exportStar(require("./VmInspectionStatus.js"), exports);
|
|
79
|
+
__exportStar(require("./VmUtilizationDetails.js"), exports);
|
package/dist/runtime.js
CHANGED
|
@@ -219,7 +219,7 @@ class BaseAPI {
|
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
exports.BaseAPI = BaseAPI;
|
|
222
|
-
BaseAPI.jsonRegex =
|
|
222
|
+
BaseAPI.jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
|
|
223
223
|
;
|
|
224
224
|
function isBlob(value) {
|
|
225
225
|
return typeof Blob !== 'undefined' && value instanceof Blob;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
|
|
2
|
+
# BenchmarkRun
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`sessionId` | number
|
|
11
|
+
`pairName` | string
|
|
12
|
+
`sourceDatastore` | string
|
|
13
|
+
`targetDatastore` | string
|
|
14
|
+
`iteration` | number
|
|
15
|
+
`diskSizeGb` | number
|
|
16
|
+
`prepDurationSec` | number
|
|
17
|
+
`durationSec` | number
|
|
18
|
+
`throughputMbps` | number
|
|
19
|
+
`method` | string
|
|
20
|
+
`error` | string
|
|
21
|
+
`createdAt` | Date
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import type { BenchmarkRun } from '@openshift-migration-advisor/agent-sdk'
|
|
27
|
+
|
|
28
|
+
// TODO: Update the object below with actual values
|
|
29
|
+
const example = {
|
|
30
|
+
"id": null,
|
|
31
|
+
"sessionId": null,
|
|
32
|
+
"pairName": null,
|
|
33
|
+
"sourceDatastore": null,
|
|
34
|
+
"targetDatastore": null,
|
|
35
|
+
"iteration": null,
|
|
36
|
+
"diskSizeGb": null,
|
|
37
|
+
"prepDurationSec": null,
|
|
38
|
+
"durationSec": null,
|
|
39
|
+
"throughputMbps": null,
|
|
40
|
+
"method": null,
|
|
41
|
+
"error": null,
|
|
42
|
+
"createdAt": null,
|
|
43
|
+
} satisfies BenchmarkRun
|
|
44
|
+
|
|
45
|
+
console.log(example)
|
|
46
|
+
|
|
47
|
+
// Convert the instance to a JSON string
|
|
48
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
49
|
+
console.log(exampleJSON)
|
|
50
|
+
|
|
51
|
+
// Parse the JSON string back to an object
|
|
52
|
+
const exampleParsed = JSON.parse(exampleJSON) as BenchmarkRun
|
|
53
|
+
console.log(exampleParsed)
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
57
|
+
|
|
58
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
# DatastoreDetail
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`type` | string
|
|
11
|
+
`capacityGb` | number
|
|
12
|
+
`freeGb` | number
|
|
13
|
+
`storageVendor` | string
|
|
14
|
+
`storageModel` | string
|
|
15
|
+
`storageArrayId` | string
|
|
16
|
+
`naaDevices` | Array<string>
|
|
17
|
+
`capabilities` | Array<string>
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { DatastoreDetail } from '@openshift-migration-advisor/agent-sdk'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"name": null,
|
|
27
|
+
"type": null,
|
|
28
|
+
"capacityGb": null,
|
|
29
|
+
"freeGb": null,
|
|
30
|
+
"storageVendor": null,
|
|
31
|
+
"storageModel": null,
|
|
32
|
+
"storageArrayId": null,
|
|
33
|
+
"naaDevices": null,
|
|
34
|
+
"capabilities": null,
|
|
35
|
+
} satisfies DatastoreDetail
|
|
36
|
+
|
|
37
|
+
console.log(example)
|
|
38
|
+
|
|
39
|
+
// Convert the instance to a JSON string
|
|
40
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
41
|
+
console.log(exampleJSON)
|
|
42
|
+
|
|
43
|
+
// Parse the JSON string back to an object
|
|
44
|
+
const exampleParsed = JSON.parse(exampleJSON) as DatastoreDetail
|
|
45
|
+
console.log(exampleParsed)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
49
|
+
|
|
50
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# DatastorePair
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`sourceDatastore` | string
|
|
11
|
+
`targetDatastore` | string
|
|
12
|
+
`host` | string
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { DatastorePair } from '@openshift-migration-advisor/agent-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"name": null,
|
|
22
|
+
"sourceDatastore": null,
|
|
23
|
+
"targetDatastore": null,
|
|
24
|
+
"host": null,
|
|
25
|
+
} satisfies DatastorePair
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as DatastorePair
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|