@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0-d4bdc4301890
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +20 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +29 -17
- package/dist/apis/DefaultApi.d.ts +260 -130
- package/dist/apis/DefaultApi.js +313 -172
- package/dist/esm/apis/DefaultApi.d.ts +260 -130
- package/dist/esm/apis/DefaultApi.js +295 -154
- package/dist/esm/models/InspectorStatus.d.ts +20 -7
- package/dist/esm/models/InspectorStatus.js +12 -7
- 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/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 +10 -1
- package/dist/esm/models/index.js +10 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/InspectorStatus.d.ts +20 -7
- package/dist/models/InspectorStatus.js +12 -7
- 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/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 +10 -1
- package/dist/models/index.js +10 -1
- package/dist/runtime.js +1 -1
- package/docs/DefaultApi.md +368 -163
- package/docs/InspectorStatus.md +4 -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/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 +564 -285
- package/src/models/InspectorStatus.ts +37 -7
- 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/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 +10 -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/.openapi-generator/FILES
CHANGED
|
@@ -19,13 +19,19 @@ docs/GuestNetwork.md
|
|
|
19
19
|
docs/Histogram.md
|
|
20
20
|
docs/Host.md
|
|
21
21
|
docs/Infra.md
|
|
22
|
-
docs/InspectorStartRequest.md
|
|
23
22
|
docs/InspectorStatus.md
|
|
24
23
|
docs/Inventory.md
|
|
25
24
|
docs/InventoryData.md
|
|
26
25
|
docs/MigrationIssue.md
|
|
27
26
|
docs/Network.md
|
|
28
27
|
docs/OsInfo.md
|
|
28
|
+
docs/RightsizingCollectRequest.md
|
|
29
|
+
docs/RightsizingMetricStats.md
|
|
30
|
+
docs/RightsizingReport.md
|
|
31
|
+
docs/RightsizingReportListResponse.md
|
|
32
|
+
docs/RightsizingReportSummary.md
|
|
33
|
+
docs/RightsizingVMReport.md
|
|
34
|
+
docs/StartInspectionRequest.md
|
|
29
35
|
docs/UpdateGroupRequest.md
|
|
30
36
|
docs/UpdateInventory.md
|
|
31
37
|
docs/VCenter.md
|
|
@@ -41,7 +47,10 @@ docs/VersionInfo.md
|
|
|
41
47
|
docs/VirtualMachine.md
|
|
42
48
|
docs/VirtualMachineDetail.md
|
|
43
49
|
docs/VirtualMachineListResponse.md
|
|
50
|
+
docs/VmInspectionConcern.md
|
|
51
|
+
docs/VmInspectionResults.md
|
|
44
52
|
docs/VmInspectionStatus.md
|
|
53
|
+
docs/VmUtilizationDetails.md
|
|
45
54
|
package.json
|
|
46
55
|
src/apis/DefaultApi.ts
|
|
47
56
|
src/apis/index.ts
|
|
@@ -62,13 +71,19 @@ src/models/GuestNetwork.ts
|
|
|
62
71
|
src/models/Histogram.ts
|
|
63
72
|
src/models/Host.ts
|
|
64
73
|
src/models/Infra.ts
|
|
65
|
-
src/models/InspectorStartRequest.ts
|
|
66
74
|
src/models/InspectorStatus.ts
|
|
67
75
|
src/models/Inventory.ts
|
|
68
76
|
src/models/InventoryData.ts
|
|
69
77
|
src/models/MigrationIssue.ts
|
|
70
78
|
src/models/Network.ts
|
|
71
79
|
src/models/OsInfo.ts
|
|
80
|
+
src/models/RightsizingCollectRequest.ts
|
|
81
|
+
src/models/RightsizingMetricStats.ts
|
|
82
|
+
src/models/RightsizingReport.ts
|
|
83
|
+
src/models/RightsizingReportListResponse.ts
|
|
84
|
+
src/models/RightsizingReportSummary.ts
|
|
85
|
+
src/models/RightsizingVMReport.ts
|
|
86
|
+
src/models/StartInspectionRequest.ts
|
|
72
87
|
src/models/UpdateGroupRequest.ts
|
|
73
88
|
src/models/UpdateInventory.ts
|
|
74
89
|
src/models/VCenter.ts
|
|
@@ -84,7 +99,10 @@ src/models/VersionInfo.ts
|
|
|
84
99
|
src/models/VirtualMachine.ts
|
|
85
100
|
src/models/VirtualMachineDetail.ts
|
|
86
101
|
src/models/VirtualMachineListResponse.ts
|
|
102
|
+
src/models/VmInspectionConcern.ts
|
|
103
|
+
src/models/VmInspectionResults.ts
|
|
87
104
|
src/models/VmInspectionStatus.ts
|
|
105
|
+
src/models/VmUtilizationDetails.ts
|
|
88
106
|
src/models/index.ts
|
|
89
107
|
src/runtime.ts
|
|
90
108
|
tsconfig.esm.json
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.23.0-SNAPSHOT
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/agent-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/agent-sdk@0.12.0-d4bdc4301890
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -18,19 +18,19 @@ import {
|
|
|
18
18
|
Configuration,
|
|
19
19
|
DefaultApi,
|
|
20
20
|
} from '@openshift-migration-advisor/agent-sdk';
|
|
21
|
-
import type {
|
|
21
|
+
import type { CreateGroupOperationRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
22
22
|
|
|
23
23
|
async function example() {
|
|
24
24
|
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
25
25
|
const api = new DefaultApi();
|
|
26
26
|
|
|
27
27
|
const body = {
|
|
28
|
-
//
|
|
29
|
-
|
|
30
|
-
} satisfies
|
|
28
|
+
// CreateGroupRequest
|
|
29
|
+
createGroupRequest: ...,
|
|
30
|
+
} satisfies CreateGroupOperationRequest;
|
|
31
31
|
|
|
32
32
|
try {
|
|
33
|
-
const data = await api.
|
|
33
|
+
const data = await api.createGroup(body);
|
|
34
34
|
console.log(data);
|
|
35
35
|
} catch (error) {
|
|
36
36
|
console.error(error);
|
|
@@ -50,28 +50,31 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
50
50
|
|
|
51
51
|
| Class | Method | HTTP request | Description
|
|
52
52
|
| ----- | ------ | ------------ | -------------
|
|
53
|
-
*DefaultApi* | [**addVMsToInspection**](docs/DefaultApi.md#addvmstoinspection) | **PATCH** /vms/inspector | Add more VMs to inspection queue
|
|
54
53
|
*DefaultApi* | [**createGroup**](docs/DefaultApi.md#creategroupoperation) | **POST** /groups | Create a new group
|
|
55
54
|
*DefaultApi* | [**deleteGroup**](docs/DefaultApi.md#deletegroup) | **DELETE** /groups/{id} | Delete group
|
|
56
55
|
*DefaultApi* | [**getAgentStatus**](docs/DefaultApi.md#getagentstatus) | **GET** /agent | Get agent status
|
|
57
56
|
*DefaultApi* | [**getCollectorStatus**](docs/DefaultApi.md#getcollectorstatus) | **GET** /collector | Get collector status
|
|
58
57
|
*DefaultApi* | [**getGroup**](docs/DefaultApi.md#getgroup) | **GET** /groups/{id} | Get group by ID with its VMs
|
|
59
|
-
*DefaultApi* | [**getInspectorStatus**](docs/DefaultApi.md#getinspectorstatus) | **GET** /
|
|
58
|
+
*DefaultApi* | [**getInspectorStatus**](docs/DefaultApi.md#getinspectorstatus) | **GET** /inspector | Get inspector status
|
|
59
|
+
*DefaultApi* | [**getInspectorVddkStatus**](docs/DefaultApi.md#getinspectorvddkstatus) | **GET** /inspector/vddk | Get VDDK status
|
|
60
60
|
*DefaultApi* | [**getInventory**](docs/DefaultApi.md#getinventory) | **GET** /inventory | Get collected inventory
|
|
61
|
+
*DefaultApi* | [**getRightsizingReport**](docs/DefaultApi.md#getrightsizingreport) | **GET** /rightsizing/{id} | Get a specific rightsizing report with full VM metrics
|
|
61
62
|
*DefaultApi* | [**getVM**](docs/DefaultApi.md#getvm) | **GET** /vms/{id} | Get details about a vm
|
|
62
|
-
*DefaultApi* | [**
|
|
63
|
+
*DefaultApi* | [**getVMUtilization**](docs/DefaultApi.md#getvmutilization) | **GET** /vms/{id}/utilization | Get utilization breakdown for a specific VM
|
|
63
64
|
*DefaultApi* | [**getVMs**](docs/DefaultApi.md#getvms) | **GET** /vms | Get list of VMs with filtering and pagination
|
|
64
|
-
*DefaultApi* | [**getVddkStatus**](docs/DefaultApi.md#getvddkstatus) | **GET** /vddk | Get VDDK status
|
|
65
65
|
*DefaultApi* | [**getVersion**](docs/DefaultApi.md#getversion) | **GET** /version | Get agent version information
|
|
66
66
|
*DefaultApi* | [**listGroups**](docs/DefaultApi.md#listgroups) | **GET** /groups | List all groups
|
|
67
|
-
*DefaultApi* | [**
|
|
67
|
+
*DefaultApi* | [**listRightsizingReports**](docs/DefaultApi.md#listrightsizingreports) | **GET** /rightsizing | List all rightsizing reports
|
|
68
|
+
*DefaultApi* | [**putInspectorCredentials**](docs/DefaultApi.md#putinspectorcredentials) | **PUT** /inspector/credentials | Set or replace inspector credentials
|
|
69
|
+
*DefaultApi* | [**putInspectorVddk**](docs/DefaultApi.md#putinspectorvddk) | **PUT** /inspector/vddk | Upload VDDK tarball
|
|
70
|
+
*DefaultApi* | [**removeVMFromInspection**](docs/DefaultApi.md#removevmfrominspection) | **DELETE** /vms/{id}/inspection | Remove VirtualMachine from inspection queue
|
|
68
71
|
*DefaultApi* | [**setAgentMode**](docs/DefaultApi.md#setagentmode) | **POST** /agent | Change agent mode
|
|
69
72
|
*DefaultApi* | [**startCollector**](docs/DefaultApi.md#startcollector) | **POST** /collector | Start inventory collection
|
|
70
|
-
*DefaultApi* | [**startInspection**](docs/DefaultApi.md#
|
|
73
|
+
*DefaultApi* | [**startInspection**](docs/DefaultApi.md#startinspectionoperation) | **POST** /inspector | Start inspection for VMs
|
|
71
74
|
*DefaultApi* | [**stopCollector**](docs/DefaultApi.md#stopcollector) | **DELETE** /collector | Stop collection
|
|
72
|
-
*DefaultApi* | [**stopInspection**](docs/DefaultApi.md#stopinspection) | **DELETE** /
|
|
75
|
+
*DefaultApi* | [**stopInspection**](docs/DefaultApi.md#stopinspection) | **DELETE** /inspector | Stop inspector entirely
|
|
76
|
+
*DefaultApi* | [**triggerRightsizingCollection**](docs/DefaultApi.md#triggerrightsizingcollection) | **POST** /rightsizing | Trigger rightsizing metrics collection
|
|
73
77
|
*DefaultApi* | [**updateGroup**](docs/DefaultApi.md#updategroupoperation) | **PATCH** /groups/{id} | Update group
|
|
74
|
-
*DefaultApi* | [**vddkPost**](docs/DefaultApi.md#vddkpost) | **POST** /vddk | Upload VDDK tarball
|
|
75
78
|
|
|
76
79
|
|
|
77
80
|
### Models
|
|
@@ -92,13 +95,19 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
92
95
|
- [Histogram](docs/Histogram.md)
|
|
93
96
|
- [Host](docs/Host.md)
|
|
94
97
|
- [Infra](docs/Infra.md)
|
|
95
|
-
- [InspectorStartRequest](docs/InspectorStartRequest.md)
|
|
96
98
|
- [InspectorStatus](docs/InspectorStatus.md)
|
|
97
99
|
- [Inventory](docs/Inventory.md)
|
|
98
100
|
- [InventoryData](docs/InventoryData.md)
|
|
99
101
|
- [MigrationIssue](docs/MigrationIssue.md)
|
|
100
102
|
- [Network](docs/Network.md)
|
|
101
103
|
- [OsInfo](docs/OsInfo.md)
|
|
104
|
+
- [RightsizingCollectRequest](docs/RightsizingCollectRequest.md)
|
|
105
|
+
- [RightsizingMetricStats](docs/RightsizingMetricStats.md)
|
|
106
|
+
- [RightsizingReport](docs/RightsizingReport.md)
|
|
107
|
+
- [RightsizingReportListResponse](docs/RightsizingReportListResponse.md)
|
|
108
|
+
- [RightsizingReportSummary](docs/RightsizingReportSummary.md)
|
|
109
|
+
- [RightsizingVMReport](docs/RightsizingVMReport.md)
|
|
110
|
+
- [StartInspectionRequest](docs/StartInspectionRequest.md)
|
|
102
111
|
- [UpdateGroupRequest](docs/UpdateGroupRequest.md)
|
|
103
112
|
- [UpdateInventory](docs/UpdateInventory.md)
|
|
104
113
|
- [VCenter](docs/VCenter.md)
|
|
@@ -114,7 +123,10 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
114
123
|
- [VirtualMachine](docs/VirtualMachine.md)
|
|
115
124
|
- [VirtualMachineDetail](docs/VirtualMachineDetail.md)
|
|
116
125
|
- [VirtualMachineListResponse](docs/VirtualMachineListResponse.md)
|
|
126
|
+
- [VmInspectionConcern](docs/VmInspectionConcern.md)
|
|
127
|
+
- [VmInspectionResults](docs/VmInspectionResults.md)
|
|
117
128
|
- [VmInspectionStatus](docs/VmInspectionStatus.md)
|
|
129
|
+
- [VmUtilizationDetails](docs/VmUtilizationDetails.md)
|
|
118
130
|
|
|
119
131
|
### Authorization
|
|
120
132
|
|
|
@@ -128,8 +140,8 @@ and is automatically generated by the
|
|
|
128
140
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
129
141
|
|
|
130
142
|
- API version: `v1`
|
|
131
|
-
- Package version: `0.
|
|
132
|
-
- Generator version: `7.
|
|
143
|
+
- Package version: `0.12.0-d4bdc4301890`
|
|
144
|
+
- Generator version: `7.23.0-SNAPSHOT`
|
|
133
145
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
134
146
|
|
|
135
147
|
The generated npm module supports the following:
|