@openshift-migration-advisor/agent-sdk 0.0.0-31e9c7275d26

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.
Files changed (267) hide show
  1. package/.openapi-generator/FILES +91 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +171 -0
  5. package/dist/apis/DefaultApi.d.ts +791 -0
  6. package/dist/apis/DefaultApi.js +913 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +19 -0
  9. package/dist/esm/apis/DefaultApi.d.ts +791 -0
  10. package/dist/esm/apis/DefaultApi.js +909 -0
  11. package/dist/esm/apis/index.d.ts +1 -0
  12. package/dist/esm/apis/index.js +3 -0
  13. package/dist/esm/index.d.ts +3 -0
  14. package/dist/esm/index.js +5 -0
  15. package/dist/esm/models/AgentModeRequest.d.ts +40 -0
  16. package/dist/esm/models/AgentModeRequest.js +50 -0
  17. package/dist/esm/models/AgentStatus.d.ts +60 -0
  18. package/dist/esm/models/AgentStatus.js +63 -0
  19. package/dist/esm/models/CollectorStartRequest.d.ts +44 -0
  20. package/dist/esm/models/CollectorStartRequest.js +51 -0
  21. package/dist/esm/models/CollectorStatus.d.ts +50 -0
  22. package/dist/esm/models/CollectorStatus.js +56 -0
  23. package/dist/esm/models/CreateGroupRequest.d.ts +50 -0
  24. package/dist/esm/models/CreateGroupRequest.js +51 -0
  25. package/dist/esm/models/Datastore.d.ts +80 -0
  26. package/dist/esm/models/Datastore.js +73 -0
  27. package/dist/esm/models/DiskSizeTierSummary.d.ts +38 -0
  28. package/dist/esm/models/DiskSizeTierSummary.js +47 -0
  29. package/dist/esm/models/DiskTypeSummary.d.ts +38 -0
  30. package/dist/esm/models/DiskTypeSummary.js +47 -0
  31. package/dist/esm/models/GetInventory200Response.d.ts +23 -0
  32. package/dist/esm/models/GetInventory200Response.js +51 -0
  33. package/dist/esm/models/Group.d.ts +68 -0
  34. package/dist/esm/models/Group.js +59 -0
  35. package/dist/esm/models/GroupListResponse.d.ts +51 -0
  36. package/dist/esm/models/GroupListResponse.js +56 -0
  37. package/dist/esm/models/GroupResponse.d.ts +58 -0
  38. package/dist/esm/models/GroupResponse.js +61 -0
  39. package/dist/esm/models/GuestNetwork.d.ts +56 -0
  40. package/dist/esm/models/GuestNetwork.js +49 -0
  41. package/dist/esm/models/Histogram.d.ts +44 -0
  42. package/dist/esm/models/Histogram.js +51 -0
  43. package/dist/esm/models/Host.d.ts +62 -0
  44. package/dist/esm/models/Host.js +55 -0
  45. package/dist/esm/models/Infra.d.ts +106 -0
  46. package/dist/esm/models/Infra.js +74 -0
  47. package/dist/esm/models/InspectorStartRequest.d.ts +39 -0
  48. package/dist/esm/models/InspectorStartRequest.js +48 -0
  49. package/dist/esm/models/InspectorStatus.d.ts +51 -0
  50. package/dist/esm/models/InspectorStatus.js +57 -0
  51. package/dist/esm/models/Inventory.d.ts +47 -0
  52. package/dist/esm/models/Inventory.js +51 -0
  53. package/dist/esm/models/InventoryData.d.ts +47 -0
  54. package/dist/esm/models/InventoryData.js +52 -0
  55. package/dist/esm/models/MigrationIssue.d.ts +50 -0
  56. package/dist/esm/models/MigrationIssue.js +53 -0
  57. package/dist/esm/models/Network.d.ts +66 -0
  58. package/dist/esm/models/Network.js +62 -0
  59. package/dist/esm/models/OsInfo.d.ts +44 -0
  60. package/dist/esm/models/OsInfo.js +49 -0
  61. package/dist/esm/models/UpdateGroupRequest.d.ts +50 -0
  62. package/dist/esm/models/UpdateGroupRequest.js +47 -0
  63. package/dist/esm/models/UpdateInventory.d.ts +39 -0
  64. package/dist/esm/models/UpdateInventory.js +48 -0
  65. package/dist/esm/models/VCenter.d.ts +32 -0
  66. package/dist/esm/models/VCenter.js +43 -0
  67. package/dist/esm/models/VMDevice.d.ts +32 -0
  68. package/dist/esm/models/VMDevice.js +41 -0
  69. package/dist/esm/models/VMDisk.d.ts +68 -0
  70. package/dist/esm/models/VMDisk.js +53 -0
  71. package/dist/esm/models/VMIssue.d.ts +56 -0
  72. package/dist/esm/models/VMIssue.js +62 -0
  73. package/dist/esm/models/VMNIC.d.ts +44 -0
  74. package/dist/esm/models/VMNIC.js +45 -0
  75. package/dist/esm/models/VMResourceBreakdown.d.ts +58 -0
  76. package/dist/esm/models/VMResourceBreakdown.js +58 -0
  77. package/dist/esm/models/VMs.d.ts +170 -0
  78. package/dist/esm/models/VMs.js +103 -0
  79. package/dist/esm/models/VcenterCredentials.d.ts +44 -0
  80. package/dist/esm/models/VcenterCredentials.js +51 -0
  81. package/dist/esm/models/VddkProperties.d.ts +44 -0
  82. package/dist/esm/models/VddkProperties.js +49 -0
  83. package/dist/esm/models/VersionInfo.d.ts +44 -0
  84. package/dist/esm/models/VersionInfo.js +51 -0
  85. package/dist/esm/models/VirtualMachine.d.ts +99 -0
  86. package/dist/esm/models/VirtualMachine.js +82 -0
  87. package/dist/esm/models/VirtualMachineDetail.d.ts +218 -0
  88. package/dist/esm/models/VirtualMachineDetail.js +125 -0
  89. package/dist/esm/models/VirtualMachineListResponse.d.ts +51 -0
  90. package/dist/esm/models/VirtualMachineListResponse.js +56 -0
  91. package/dist/esm/models/VmInspectionStatus.d.ts +56 -0
  92. package/dist/esm/models/VmInspectionStatus.js +58 -0
  93. package/dist/esm/models/index.d.ts +39 -0
  94. package/dist/esm/models/index.js +41 -0
  95. package/dist/esm/runtime.d.ts +184 -0
  96. package/dist/esm/runtime.js +349 -0
  97. package/dist/index.d.ts +3 -0
  98. package/dist/index.js +21 -0
  99. package/dist/models/AgentModeRequest.d.ts +40 -0
  100. package/dist/models/AgentModeRequest.js +58 -0
  101. package/dist/models/AgentStatus.d.ts +60 -0
  102. package/dist/models/AgentStatus.js +71 -0
  103. package/dist/models/CollectorStartRequest.d.ts +44 -0
  104. package/dist/models/CollectorStartRequest.js +58 -0
  105. package/dist/models/CollectorStatus.d.ts +50 -0
  106. package/dist/models/CollectorStatus.js +64 -0
  107. package/dist/models/CreateGroupRequest.d.ts +50 -0
  108. package/dist/models/CreateGroupRequest.js +58 -0
  109. package/dist/models/Datastore.d.ts +80 -0
  110. package/dist/models/Datastore.js +80 -0
  111. package/dist/models/DiskSizeTierSummary.d.ts +38 -0
  112. package/dist/models/DiskSizeTierSummary.js +54 -0
  113. package/dist/models/DiskTypeSummary.d.ts +38 -0
  114. package/dist/models/DiskTypeSummary.js +54 -0
  115. package/dist/models/GetInventory200Response.d.ts +23 -0
  116. package/dist/models/GetInventory200Response.js +57 -0
  117. package/dist/models/Group.d.ts +68 -0
  118. package/dist/models/Group.js +66 -0
  119. package/dist/models/GroupListResponse.d.ts +51 -0
  120. package/dist/models/GroupListResponse.js +63 -0
  121. package/dist/models/GroupResponse.d.ts +58 -0
  122. package/dist/models/GroupResponse.js +68 -0
  123. package/dist/models/GuestNetwork.d.ts +56 -0
  124. package/dist/models/GuestNetwork.js +56 -0
  125. package/dist/models/Histogram.d.ts +44 -0
  126. package/dist/models/Histogram.js +58 -0
  127. package/dist/models/Host.d.ts +62 -0
  128. package/dist/models/Host.js +62 -0
  129. package/dist/models/Infra.d.ts +106 -0
  130. package/dist/models/Infra.js +81 -0
  131. package/dist/models/InspectorStartRequest.d.ts +39 -0
  132. package/dist/models/InspectorStartRequest.js +55 -0
  133. package/dist/models/InspectorStatus.d.ts +51 -0
  134. package/dist/models/InspectorStatus.js +65 -0
  135. package/dist/models/Inventory.d.ts +47 -0
  136. package/dist/models/Inventory.js +58 -0
  137. package/dist/models/InventoryData.d.ts +47 -0
  138. package/dist/models/InventoryData.js +59 -0
  139. package/dist/models/MigrationIssue.d.ts +50 -0
  140. package/dist/models/MigrationIssue.js +60 -0
  141. package/dist/models/Network.d.ts +66 -0
  142. package/dist/models/Network.js +70 -0
  143. package/dist/models/OsInfo.d.ts +44 -0
  144. package/dist/models/OsInfo.js +56 -0
  145. package/dist/models/UpdateGroupRequest.d.ts +50 -0
  146. package/dist/models/UpdateGroupRequest.js +54 -0
  147. package/dist/models/UpdateInventory.d.ts +39 -0
  148. package/dist/models/UpdateInventory.js +55 -0
  149. package/dist/models/VCenter.d.ts +32 -0
  150. package/dist/models/VCenter.js +50 -0
  151. package/dist/models/VMDevice.d.ts +32 -0
  152. package/dist/models/VMDevice.js +48 -0
  153. package/dist/models/VMDisk.d.ts +68 -0
  154. package/dist/models/VMDisk.js +60 -0
  155. package/dist/models/VMIssue.d.ts +56 -0
  156. package/dist/models/VMIssue.js +70 -0
  157. package/dist/models/VMNIC.d.ts +44 -0
  158. package/dist/models/VMNIC.js +52 -0
  159. package/dist/models/VMResourceBreakdown.d.ts +58 -0
  160. package/dist/models/VMResourceBreakdown.js +65 -0
  161. package/dist/models/VMs.d.ts +170 -0
  162. package/dist/models/VMs.js +110 -0
  163. package/dist/models/VcenterCredentials.d.ts +44 -0
  164. package/dist/models/VcenterCredentials.js +58 -0
  165. package/dist/models/VddkProperties.d.ts +44 -0
  166. package/dist/models/VddkProperties.js +56 -0
  167. package/dist/models/VersionInfo.d.ts +44 -0
  168. package/dist/models/VersionInfo.js +58 -0
  169. package/dist/models/VirtualMachine.d.ts +99 -0
  170. package/dist/models/VirtualMachine.js +89 -0
  171. package/dist/models/VirtualMachineDetail.d.ts +218 -0
  172. package/dist/models/VirtualMachineDetail.js +132 -0
  173. package/dist/models/VirtualMachineListResponse.d.ts +51 -0
  174. package/dist/models/VirtualMachineListResponse.js +63 -0
  175. package/dist/models/VmInspectionStatus.d.ts +56 -0
  176. package/dist/models/VmInspectionStatus.js +66 -0
  177. package/dist/models/index.d.ts +39 -0
  178. package/dist/models/index.js +57 -0
  179. package/dist/runtime.d.ts +184 -0
  180. package/dist/runtime.js +365 -0
  181. package/docs/AgentModeRequest.md +34 -0
  182. package/docs/AgentStatus.md +38 -0
  183. package/docs/CollectorStartRequest.md +38 -0
  184. package/docs/CollectorStatus.md +36 -0
  185. package/docs/CreateGroupRequest.md +40 -0
  186. package/docs/Datastore.md +50 -0
  187. package/docs/DefaultApi.md +1480 -0
  188. package/docs/DiskSizeTierSummary.md +36 -0
  189. package/docs/DiskTypeSummary.md +36 -0
  190. package/docs/GetInventory200Response.md +42 -0
  191. package/docs/Group.md +46 -0
  192. package/docs/GroupListResponse.md +40 -0
  193. package/docs/GroupResponse.md +42 -0
  194. package/docs/GuestNetwork.md +42 -0
  195. package/docs/Histogram.md +38 -0
  196. package/docs/Host.md +44 -0
  197. package/docs/Infra.md +56 -0
  198. package/docs/InspectorStartRequest.md +36 -0
  199. package/docs/InspectorStatus.md +36 -0
  200. package/docs/Inventory.md +38 -0
  201. package/docs/InventoryData.md +38 -0
  202. package/docs/MigrationIssue.md +40 -0
  203. package/docs/Network.md +42 -0
  204. package/docs/OsInfo.md +38 -0
  205. package/docs/UpdateGroupRequest.md +40 -0
  206. package/docs/UpdateInventory.md +36 -0
  207. package/docs/VCenter.md +34 -0
  208. package/docs/VMDevice.md +34 -0
  209. package/docs/VMDisk.md +46 -0
  210. package/docs/VMIssue.md +38 -0
  211. package/docs/VMNIC.md +38 -0
  212. package/docs/VMResourceBreakdown.md +42 -0
  213. package/docs/VMs.md +72 -0
  214. package/docs/VcenterCredentials.md +38 -0
  215. package/docs/VddkProperties.md +38 -0
  216. package/docs/VersionInfo.md +38 -0
  217. package/docs/VirtualMachine.md +56 -0
  218. package/docs/VirtualMachineDetail.md +94 -0
  219. package/docs/VirtualMachineListResponse.md +40 -0
  220. package/docs/VmInspectionStatus.md +38 -0
  221. package/package.json +22 -0
  222. package/src/apis/DefaultApi.ts +1665 -0
  223. package/src/apis/index.ts +3 -0
  224. package/src/index.ts +5 -0
  225. package/src/models/AgentModeRequest.ts +77 -0
  226. package/src/models/AgentStatus.ts +103 -0
  227. package/src/models/CollectorStartRequest.ts +84 -0
  228. package/src/models/CollectorStatus.ts +89 -0
  229. package/src/models/CreateGroupRequest.ts +91 -0
  230. package/src/models/Datastore.ts +137 -0
  231. package/src/models/DiskSizeTierSummary.ts +75 -0
  232. package/src/models/DiskTypeSummary.ts +75 -0
  233. package/src/models/GetInventory200Response.ts +76 -0
  234. package/src/models/Group.ts +116 -0
  235. package/src/models/GroupListResponse.ts +101 -0
  236. package/src/models/GroupResponse.ts +117 -0
  237. package/src/models/GuestNetwork.ts +97 -0
  238. package/src/models/Histogram.ts +84 -0
  239. package/src/models/Host.ts +107 -0
  240. package/src/models/Infra.ts +182 -0
  241. package/src/models/InspectorStartRequest.ts +83 -0
  242. package/src/models/InspectorStatus.ts +90 -0
  243. package/src/models/Inventory.ts +91 -0
  244. package/src/models/InventoryData.ts +105 -0
  245. package/src/models/MigrationIssue.ts +92 -0
  246. package/src/models/Network.ts +112 -0
  247. package/src/models/OsInfo.ts +83 -0
  248. package/src/models/UpdateGroupRequest.ts +89 -0
  249. package/src/models/UpdateInventory.ts +83 -0
  250. package/src/models/VCenter.ts +66 -0
  251. package/src/models/VMDevice.ts +65 -0
  252. package/src/models/VMDisk.ts +113 -0
  253. package/src/models/VMIssue.ts +99 -0
  254. package/src/models/VMNIC.ts +81 -0
  255. package/src/models/VMResourceBreakdown.ts +110 -0
  256. package/src/models/VMs.ts +263 -0
  257. package/src/models/VcenterCredentials.ts +84 -0
  258. package/src/models/VddkProperties.ts +83 -0
  259. package/src/models/VersionInfo.ts +84 -0
  260. package/src/models/VirtualMachine.ts +170 -0
  261. package/src/models/VirtualMachineDetail.ts +357 -0
  262. package/src/models/VirtualMachineListResponse.ts +101 -0
  263. package/src/models/VmInspectionStatus.ts +97 -0
  264. package/src/models/index.ts +41 -0
  265. package/src/runtime.ts +450 -0
  266. package/tsconfig.esm.json +7 -0
  267. package/tsconfig.json +16 -0
@@ -0,0 +1,1480 @@
1
+ # DefaultApi
2
+
3
+ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**addVMsToInspection**](DefaultApi.md#addvmstoinspection) | **PATCH** /vms/inspector | Add more VMs to inspection queue |
8
+ | [**createGroup**](DefaultApi.md#creategroupoperation) | **POST** /groups | Create a new group |
9
+ | [**deleteGroup**](DefaultApi.md#deletegroup) | **DELETE** /groups/{id} | Delete group |
10
+ | [**getAgentStatus**](DefaultApi.md#getagentstatus) | **GET** /agent | Get agent status |
11
+ | [**getCollectorStatus**](DefaultApi.md#getcollectorstatus) | **GET** /collector | Get collector status |
12
+ | [**getGroup**](DefaultApi.md#getgroup) | **GET** /groups/{id} | Get group by ID with its VMs |
13
+ | [**getInspectorStatus**](DefaultApi.md#getinspectorstatus) | **GET** /vms/inspector | Get inspector status |
14
+ | [**getInventory**](DefaultApi.md#getinventory) | **GET** /inventory | Get collected inventory |
15
+ | [**getVM**](DefaultApi.md#getvm) | **GET** /vms/{id} | Get details about a vm |
16
+ | [**getVMInspectionStatus**](DefaultApi.md#getvminspectionstatus) | **GET** /vms/{id}/inspector | Get inspection status for a specific VirtualMachine |
17
+ | [**getVMs**](DefaultApi.md#getvms) | **GET** /vms | Get list of VMs with filtering and pagination |
18
+ | [**getVddkStatus**](DefaultApi.md#getvddkstatus) | **GET** /vddk | Get VDDK status |
19
+ | [**getVersion**](DefaultApi.md#getversion) | **GET** /version | Get agent version information |
20
+ | [**listGroups**](DefaultApi.md#listgroups) | **GET** /groups | List all groups |
21
+ | [**removeVMFromInspection**](DefaultApi.md#removevmfrominspection) | **DELETE** /vms/{id}/inspector | Remove VirtualMachine from inspection queue |
22
+ | [**setAgentMode**](DefaultApi.md#setagentmode) | **POST** /agent | Change agent mode |
23
+ | [**startCollector**](DefaultApi.md#startcollector) | **POST** /collector | Start inventory collection |
24
+ | [**startInspection**](DefaultApi.md#startinspection) | **POST** /vms/inspector | Start inspection for VMs |
25
+ | [**stopCollector**](DefaultApi.md#stopcollector) | **DELETE** /collector | Stop collection |
26
+ | [**stopInspection**](DefaultApi.md#stopinspection) | **DELETE** /vms/inspector | Stop inspector entirely |
27
+ | [**updateGroup**](DefaultApi.md#updategroupoperation) | **PATCH** /groups/{id} | Update group |
28
+ | [**vddkPost**](DefaultApi.md#vddkpost) | **POST** /vddk | Upload VDDK tarball |
29
+
30
+
31
+
32
+ ## addVMsToInspection
33
+
34
+ > InspectorStatus addVMsToInspection(requestBody)
35
+
36
+ Add more VMs to inspection queue
37
+
38
+ ### Example
39
+
40
+ ```ts
41
+ import {
42
+ Configuration,
43
+ DefaultApi,
44
+ } from '@openshift-migration-advisor/agent-sdk';
45
+ import type { AddVMsToInspectionRequest } from '@openshift-migration-advisor/agent-sdk';
46
+
47
+ async function example() {
48
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
49
+ const api = new DefaultApi();
50
+
51
+ const body = {
52
+ // Array<string>
53
+ requestBody: ["vm-1236","vm-1237"],
54
+ } satisfies AddVMsToInspectionRequest;
55
+
56
+ try {
57
+ const data = await api.addVMsToInspection(body);
58
+ console.log(data);
59
+ } catch (error) {
60
+ console.error(error);
61
+ }
62
+ }
63
+
64
+ // Run the test
65
+ example().catch(console.error);
66
+ ```
67
+
68
+ ### Parameters
69
+
70
+
71
+ | Name | Type | Description | Notes |
72
+ |------------- | ------------- | ------------- | -------------|
73
+ | **requestBody** | `Array<string>` | | |
74
+
75
+ ### Return type
76
+
77
+ [**InspectorStatus**](InspectorStatus.md)
78
+
79
+ ### Authorization
80
+
81
+ No authorization required
82
+
83
+ ### HTTP request headers
84
+
85
+ - **Content-Type**: `application/json`
86
+ - **Accept**: `application/json`
87
+
88
+
89
+ ### HTTP response details
90
+ | Status code | Description | Response headers |
91
+ |-------------|-------------|------------------|
92
+ | **202** | VMs added to inspection queue | - |
93
+ | **400** | Invalid request | - |
94
+ | **404** | Inspector not running | - |
95
+ | **500** | Internal server error | - |
96
+
97
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
98
+
99
+
100
+ ## createGroup
101
+
102
+ > Group createGroup(createGroupRequest)
103
+
104
+ Create a new group
105
+
106
+ ### Example
107
+
108
+ ```ts
109
+ import {
110
+ Configuration,
111
+ DefaultApi,
112
+ } from '@openshift-migration-advisor/agent-sdk';
113
+ import type { CreateGroupOperationRequest } from '@openshift-migration-advisor/agent-sdk';
114
+
115
+ async function example() {
116
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
117
+ const api = new DefaultApi();
118
+
119
+ const body = {
120
+ // CreateGroupRequest
121
+ createGroupRequest: ...,
122
+ } satisfies CreateGroupOperationRequest;
123
+
124
+ try {
125
+ const data = await api.createGroup(body);
126
+ console.log(data);
127
+ } catch (error) {
128
+ console.error(error);
129
+ }
130
+ }
131
+
132
+ // Run the test
133
+ example().catch(console.error);
134
+ ```
135
+
136
+ ### Parameters
137
+
138
+
139
+ | Name | Type | Description | Notes |
140
+ |------------- | ------------- | ------------- | -------------|
141
+ | **createGroupRequest** | [CreateGroupRequest](CreateGroupRequest.md) | | |
142
+
143
+ ### Return type
144
+
145
+ [**Group**](Group.md)
146
+
147
+ ### Authorization
148
+
149
+ No authorization required
150
+
151
+ ### HTTP request headers
152
+
153
+ - **Content-Type**: `application/json`
154
+ - **Accept**: `application/json`
155
+
156
+
157
+ ### HTTP response details
158
+ | Status code | Description | Response headers |
159
+ |-------------|-------------|------------------|
160
+ | **201** | Group created | - |
161
+ | **400** | Invalid request (e.g., invalid filter syntax) | - |
162
+ | **500** | Internal server error | - |
163
+
164
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
165
+
166
+
167
+ ## deleteGroup
168
+
169
+ > deleteGroup(id)
170
+
171
+ Delete group
172
+
173
+ ### Example
174
+
175
+ ```ts
176
+ import {
177
+ Configuration,
178
+ DefaultApi,
179
+ } from '@openshift-migration-advisor/agent-sdk';
180
+ import type { DeleteGroupRequest } from '@openshift-migration-advisor/agent-sdk';
181
+
182
+ async function example() {
183
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
184
+ const api = new DefaultApi();
185
+
186
+ const body = {
187
+ // string | Group ID
188
+ id: id_example,
189
+ } satisfies DeleteGroupRequest;
190
+
191
+ try {
192
+ const data = await api.deleteGroup(body);
193
+ console.log(data);
194
+ } catch (error) {
195
+ console.error(error);
196
+ }
197
+ }
198
+
199
+ // Run the test
200
+ example().catch(console.error);
201
+ ```
202
+
203
+ ### Parameters
204
+
205
+
206
+ | Name | Type | Description | Notes |
207
+ |------------- | ------------- | ------------- | -------------|
208
+ | **id** | `string` | Group ID | [Defaults to `undefined`] |
209
+
210
+ ### Return type
211
+
212
+ `void` (Empty response body)
213
+
214
+ ### Authorization
215
+
216
+ No authorization required
217
+
218
+ ### HTTP request headers
219
+
220
+ - **Content-Type**: Not defined
221
+ - **Accept**: Not defined
222
+
223
+
224
+ ### HTTP response details
225
+ | Status code | Description | Response headers |
226
+ |-------------|-------------|------------------|
227
+ | **204** | Group deleted | - |
228
+ | **500** | Internal server error | - |
229
+
230
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
231
+
232
+
233
+ ## getAgentStatus
234
+
235
+ > AgentStatus getAgentStatus()
236
+
237
+ Get agent status
238
+
239
+ ### Example
240
+
241
+ ```ts
242
+ import {
243
+ Configuration,
244
+ DefaultApi,
245
+ } from '@openshift-migration-advisor/agent-sdk';
246
+ import type { GetAgentStatusRequest } from '@openshift-migration-advisor/agent-sdk';
247
+
248
+ async function example() {
249
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
250
+ const api = new DefaultApi();
251
+
252
+ try {
253
+ const data = await api.getAgentStatus();
254
+ console.log(data);
255
+ } catch (error) {
256
+ console.error(error);
257
+ }
258
+ }
259
+
260
+ // Run the test
261
+ example().catch(console.error);
262
+ ```
263
+
264
+ ### Parameters
265
+
266
+ This endpoint does not need any parameter.
267
+
268
+ ### Return type
269
+
270
+ [**AgentStatus**](AgentStatus.md)
271
+
272
+ ### Authorization
273
+
274
+ No authorization required
275
+
276
+ ### HTTP request headers
277
+
278
+ - **Content-Type**: Not defined
279
+ - **Accept**: `application/json`
280
+
281
+
282
+ ### HTTP response details
283
+ | Status code | Description | Response headers |
284
+ |-------------|-------------|------------------|
285
+ | **200** | Agent status | - |
286
+ | **500** | Internal server error | - |
287
+
288
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
289
+
290
+
291
+ ## getCollectorStatus
292
+
293
+ > CollectorStatus getCollectorStatus()
294
+
295
+ Get collector status
296
+
297
+ ### Example
298
+
299
+ ```ts
300
+ import {
301
+ Configuration,
302
+ DefaultApi,
303
+ } from '@openshift-migration-advisor/agent-sdk';
304
+ import type { GetCollectorStatusRequest } from '@openshift-migration-advisor/agent-sdk';
305
+
306
+ async function example() {
307
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
308
+ const api = new DefaultApi();
309
+
310
+ try {
311
+ const data = await api.getCollectorStatus();
312
+ console.log(data);
313
+ } catch (error) {
314
+ console.error(error);
315
+ }
316
+ }
317
+
318
+ // Run the test
319
+ example().catch(console.error);
320
+ ```
321
+
322
+ ### Parameters
323
+
324
+ This endpoint does not need any parameter.
325
+
326
+ ### Return type
327
+
328
+ [**CollectorStatus**](CollectorStatus.md)
329
+
330
+ ### Authorization
331
+
332
+ No authorization required
333
+
334
+ ### HTTP request headers
335
+
336
+ - **Content-Type**: Not defined
337
+ - **Accept**: `application/json`
338
+
339
+
340
+ ### HTTP response details
341
+ | Status code | Description | Response headers |
342
+ |-------------|-------------|------------------|
343
+ | **200** | Collector status | - |
344
+ | **500** | Internal server error | - |
345
+
346
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
347
+
348
+
349
+ ## getGroup
350
+
351
+ > GroupResponse getGroup(id, sort, page, pageSize)
352
+
353
+ Get group by ID with its VMs
354
+
355
+ ### Example
356
+
357
+ ```ts
358
+ import {
359
+ Configuration,
360
+ DefaultApi,
361
+ } from '@openshift-migration-advisor/agent-sdk';
362
+ import type { GetGroupRequest } from '@openshift-migration-advisor/agent-sdk';
363
+
364
+ async function example() {
365
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
366
+ const api = new DefaultApi();
367
+
368
+ const body = {
369
+ // string | Group ID
370
+ id: id_example,
371
+ // Array<string> | Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues. (optional)
372
+ sort: ["cluster:asc","name:desc"],
373
+ // number | Page number for pagination (optional)
374
+ page: 56,
375
+ // number | Number of items per page (optional)
376
+ pageSize: 56,
377
+ } satisfies GetGroupRequest;
378
+
379
+ try {
380
+ const data = await api.getGroup(body);
381
+ console.log(data);
382
+ } catch (error) {
383
+ console.error(error);
384
+ }
385
+ }
386
+
387
+ // Run the test
388
+ example().catch(console.error);
389
+ ```
390
+
391
+ ### Parameters
392
+
393
+
394
+ | Name | Type | Description | Notes |
395
+ |------------- | ------------- | ------------- | -------------|
396
+ | **id** | `string` | Group ID | [Defaults to `undefined`] |
397
+ | **sort** | `Array<string>` | Sort fields with direction (e.g., \&quot;name:asc\&quot; or \&quot;cluster:desc,name:asc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues. | [Optional] |
398
+ | **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
399
+ | **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `undefined`] |
400
+
401
+ ### Return type
402
+
403
+ [**GroupResponse**](GroupResponse.md)
404
+
405
+ ### Authorization
406
+
407
+ No authorization required
408
+
409
+ ### HTTP request headers
410
+
411
+ - **Content-Type**: Not defined
412
+ - **Accept**: `application/json`
413
+
414
+
415
+ ### HTTP response details
416
+ | Status code | Description | Response headers |
417
+ |-------------|-------------|------------------|
418
+ | **200** | Group details with VMs | - |
419
+ | **404** | Group not found | - |
420
+ | **500** | Internal server error | - |
421
+
422
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
423
+
424
+
425
+ ## getInspectorStatus
426
+
427
+ > InspectorStatus getInspectorStatus()
428
+
429
+ Get inspector status
430
+
431
+ ### Example
432
+
433
+ ```ts
434
+ import {
435
+ Configuration,
436
+ DefaultApi,
437
+ } from '@openshift-migration-advisor/agent-sdk';
438
+ import type { GetInspectorStatusRequest } from '@openshift-migration-advisor/agent-sdk';
439
+
440
+ async function example() {
441
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
442
+ const api = new DefaultApi();
443
+
444
+ try {
445
+ const data = await api.getInspectorStatus();
446
+ console.log(data);
447
+ } catch (error) {
448
+ console.error(error);
449
+ }
450
+ }
451
+
452
+ // Run the test
453
+ example().catch(console.error);
454
+ ```
455
+
456
+ ### Parameters
457
+
458
+ This endpoint does not need any parameter.
459
+
460
+ ### Return type
461
+
462
+ [**InspectorStatus**](InspectorStatus.md)
463
+
464
+ ### Authorization
465
+
466
+ No authorization required
467
+
468
+ ### HTTP request headers
469
+
470
+ - **Content-Type**: Not defined
471
+ - **Accept**: `application/json`
472
+
473
+
474
+ ### HTTP response details
475
+ | Status code | Description | Response headers |
476
+ |-------------|-------------|------------------|
477
+ | **200** | Inspector status | - |
478
+ | **500** | Internal server error | - |
479
+
480
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
481
+
482
+
483
+ ## getInventory
484
+
485
+ > GetInventory200Response getInventory(withAgentId, groupId)
486
+
487
+ Get collected inventory
488
+
489
+ ### Example
490
+
491
+ ```ts
492
+ import {
493
+ Configuration,
494
+ DefaultApi,
495
+ } from '@openshift-migration-advisor/agent-sdk';
496
+ import type { GetInventoryRequest } from '@openshift-migration-advisor/agent-sdk';
497
+
498
+ async function example() {
499
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
500
+ const api = new DefaultApi();
501
+
502
+ const body = {
503
+ // boolean | If true, include the agentId in the response (Compatible with manual inventory upload). (optional)
504
+ withAgentId: true,
505
+ // string | Filter inventory to VMs matching this group\'s filter expression (optional)
506
+ groupId: groupId_example,
507
+ } satisfies GetInventoryRequest;
508
+
509
+ try {
510
+ const data = await api.getInventory(body);
511
+ console.log(data);
512
+ } catch (error) {
513
+ console.error(error);
514
+ }
515
+ }
516
+
517
+ // Run the test
518
+ example().catch(console.error);
519
+ ```
520
+
521
+ ### Parameters
522
+
523
+
524
+ | Name | Type | Description | Notes |
525
+ |------------- | ------------- | ------------- | -------------|
526
+ | **withAgentId** | `boolean` | If true, include the agentId in the response (Compatible with manual inventory upload). | [Optional] [Defaults to `false`] |
527
+ | **groupId** | `string` | Filter inventory to VMs matching this group\&#39;s filter expression | [Optional] [Defaults to `undefined`] |
528
+
529
+ ### Return type
530
+
531
+ [**GetInventory200Response**](GetInventory200Response.md)
532
+
533
+ ### Authorization
534
+
535
+ No authorization required
536
+
537
+ ### HTTP request headers
538
+
539
+ - **Content-Type**: Not defined
540
+ - **Accept**: `application/json`
541
+
542
+
543
+ ### HTTP response details
544
+ | Status code | Description | Response headers |
545
+ |-------------|-------------|------------------|
546
+ | **200** | Collected inventory | - |
547
+ | **404** | Inventory not available | - |
548
+ | **500** | Internal server error | - |
549
+
550
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
551
+
552
+
553
+ ## getVM
554
+
555
+ > VirtualMachineDetail getVM(id)
556
+
557
+ Get details about a vm
558
+
559
+ ### Example
560
+
561
+ ```ts
562
+ import {
563
+ Configuration,
564
+ DefaultApi,
565
+ } from '@openshift-migration-advisor/agent-sdk';
566
+ import type { GetVMRequest } from '@openshift-migration-advisor/agent-sdk';
567
+
568
+ async function example() {
569
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
570
+ const api = new DefaultApi();
571
+
572
+ const body = {
573
+ // string | VirtualMachine id
574
+ id: id_example,
575
+ } satisfies GetVMRequest;
576
+
577
+ try {
578
+ const data = await api.getVM(body);
579
+ console.log(data);
580
+ } catch (error) {
581
+ console.error(error);
582
+ }
583
+ }
584
+
585
+ // Run the test
586
+ example().catch(console.error);
587
+ ```
588
+
589
+ ### Parameters
590
+
591
+
592
+ | Name | Type | Description | Notes |
593
+ |------------- | ------------- | ------------- | -------------|
594
+ | **id** | `string` | VirtualMachine id | [Defaults to `undefined`] |
595
+
596
+ ### Return type
597
+
598
+ [**VirtualMachineDetail**](VirtualMachineDetail.md)
599
+
600
+ ### Authorization
601
+
602
+ No authorization required
603
+
604
+ ### HTTP request headers
605
+
606
+ - **Content-Type**: Not defined
607
+ - **Accept**: `application/json`
608
+
609
+
610
+ ### HTTP response details
611
+ | Status code | Description | Response headers |
612
+ |-------------|-------------|------------------|
613
+ | **200** | VirtualMachine details | - |
614
+ | **404** | VirtualMachine not found | - |
615
+ | **500** | Internal server error | - |
616
+
617
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
618
+
619
+
620
+ ## getVMInspectionStatus
621
+
622
+ > VmInspectionStatus getVMInspectionStatus(id)
623
+
624
+ Get inspection status for a specific VirtualMachine
625
+
626
+ ### Example
627
+
628
+ ```ts
629
+ import {
630
+ Configuration,
631
+ DefaultApi,
632
+ } from '@openshift-migration-advisor/agent-sdk';
633
+ import type { GetVMInspectionStatusRequest } from '@openshift-migration-advisor/agent-sdk';
634
+
635
+ async function example() {
636
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
637
+ const api = new DefaultApi();
638
+
639
+ const body = {
640
+ // string | VirtualMachine ID
641
+ id: id_example,
642
+ } satisfies GetVMInspectionStatusRequest;
643
+
644
+ try {
645
+ const data = await api.getVMInspectionStatus(body);
646
+ console.log(data);
647
+ } catch (error) {
648
+ console.error(error);
649
+ }
650
+ }
651
+
652
+ // Run the test
653
+ example().catch(console.error);
654
+ ```
655
+
656
+ ### Parameters
657
+
658
+
659
+ | Name | Type | Description | Notes |
660
+ |------------- | ------------- | ------------- | -------------|
661
+ | **id** | `string` | VirtualMachine ID | [Defaults to `undefined`] |
662
+
663
+ ### Return type
664
+
665
+ [**VmInspectionStatus**](VmInspectionStatus.md)
666
+
667
+ ### Authorization
668
+
669
+ No authorization required
670
+
671
+ ### HTTP request headers
672
+
673
+ - **Content-Type**: Not defined
674
+ - **Accept**: `application/json`
675
+
676
+
677
+ ### HTTP response details
678
+ | Status code | Description | Response headers |
679
+ |-------------|-------------|------------------|
680
+ | **200** | VirtualMachine inspection status | - |
681
+ | **404** | VirtualMachine not found | - |
682
+ | **500** | Internal server error | - |
683
+
684
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
685
+
686
+
687
+ ## getVMs
688
+
689
+ > VirtualMachineListResponse getVMs(byExpression, sort, page, pageSize)
690
+
691
+ Get list of VMs with filtering and pagination
692
+
693
+ ### Example
694
+
695
+ ```ts
696
+ import {
697
+ Configuration,
698
+ DefaultApi,
699
+ } from '@openshift-migration-advisor/agent-sdk';
700
+ import type { GetVMsRequest } from '@openshift-migration-advisor/agent-sdk';
701
+
702
+ async function example() {
703
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
704
+ const api = new DefaultApi();
705
+
706
+ const body = {
707
+ // string | Filter by expression (matches VMs with the provided expression) (optional)
708
+ byExpression: exp1,
709
+ // Array<string> | Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues. (optional)
710
+ sort: ["cluster:asc","name:desc"],
711
+ // number | Page number for pagination (optional)
712
+ page: 56,
713
+ // number | Number of items per page (optional)
714
+ pageSize: 56,
715
+ } satisfies GetVMsRequest;
716
+
717
+ try {
718
+ const data = await api.getVMs(body);
719
+ console.log(data);
720
+ } catch (error) {
721
+ console.error(error);
722
+ }
723
+ }
724
+
725
+ // Run the test
726
+ example().catch(console.error);
727
+ ```
728
+
729
+ ### Parameters
730
+
731
+
732
+ | Name | Type | Description | Notes |
733
+ |------------- | ------------- | ------------- | -------------|
734
+ | **byExpression** | `string` | Filter by expression (matches VMs with the provided expression) | [Optional] [Defaults to `undefined`] |
735
+ | **sort** | `Array<string>` | Sort fields with direction (e.g., \&quot;name:asc\&quot; or \&quot;cluster:desc,name:asc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues. | [Optional] |
736
+ | **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
737
+ | **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `undefined`] |
738
+
739
+ ### Return type
740
+
741
+ [**VirtualMachineListResponse**](VirtualMachineListResponse.md)
742
+
743
+ ### Authorization
744
+
745
+ No authorization required
746
+
747
+ ### HTTP request headers
748
+
749
+ - **Content-Type**: Not defined
750
+ - **Accept**: `application/json`
751
+
752
+
753
+ ### HTTP response details
754
+ | Status code | Description | Response headers |
755
+ |-------------|-------------|------------------|
756
+ | **200** | List of VMs | - |
757
+ | **400** | Invalid request parameters | - |
758
+ | **500** | Internal server error | - |
759
+
760
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
761
+
762
+
763
+ ## getVddkStatus
764
+
765
+ > VddkProperties getVddkStatus()
766
+
767
+ Get VDDK status
768
+
769
+ ### Example
770
+
771
+ ```ts
772
+ import {
773
+ Configuration,
774
+ DefaultApi,
775
+ } from '@openshift-migration-advisor/agent-sdk';
776
+ import type { GetVddkStatusRequest } from '@openshift-migration-advisor/agent-sdk';
777
+
778
+ async function example() {
779
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
780
+ const api = new DefaultApi();
781
+
782
+ try {
783
+ const data = await api.getVddkStatus();
784
+ console.log(data);
785
+ } catch (error) {
786
+ console.error(error);
787
+ }
788
+ }
789
+
790
+ // Run the test
791
+ example().catch(console.error);
792
+ ```
793
+
794
+ ### Parameters
795
+
796
+ This endpoint does not need any parameter.
797
+
798
+ ### Return type
799
+
800
+ [**VddkProperties**](VddkProperties.md)
801
+
802
+ ### Authorization
803
+
804
+ No authorization required
805
+
806
+ ### HTTP request headers
807
+
808
+ - **Content-Type**: Not defined
809
+ - **Accept**: `application/json`
810
+
811
+
812
+ ### HTTP response details
813
+ | Status code | Description | Response headers |
814
+ |-------------|-------------|------------------|
815
+ | **200** | Returns the current properties of the uploaded VMware VDDK tar. If the VDDK package has not been uploaded, a 404 response is returned. | - |
816
+ | **404** | Vddk not found | - |
817
+ | **500** | Internal server error | - |
818
+
819
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
820
+
821
+
822
+ ## getVersion
823
+
824
+ > VersionInfo getVersion()
825
+
826
+ Get agent version information
827
+
828
+ ### Example
829
+
830
+ ```ts
831
+ import {
832
+ Configuration,
833
+ DefaultApi,
834
+ } from '@openshift-migration-advisor/agent-sdk';
835
+ import type { GetVersionRequest } from '@openshift-migration-advisor/agent-sdk';
836
+
837
+ async function example() {
838
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
839
+ const api = new DefaultApi();
840
+
841
+ try {
842
+ const data = await api.getVersion();
843
+ console.log(data);
844
+ } catch (error) {
845
+ console.error(error);
846
+ }
847
+ }
848
+
849
+ // Run the test
850
+ example().catch(console.error);
851
+ ```
852
+
853
+ ### Parameters
854
+
855
+ This endpoint does not need any parameter.
856
+
857
+ ### Return type
858
+
859
+ [**VersionInfo**](VersionInfo.md)
860
+
861
+ ### Authorization
862
+
863
+ No authorization required
864
+
865
+ ### HTTP request headers
866
+
867
+ - **Content-Type**: Not defined
868
+ - **Accept**: `application/json`
869
+
870
+
871
+ ### HTTP response details
872
+ | Status code | Description | Response headers |
873
+ |-------------|-------------|------------------|
874
+ | **200** | Version information | - |
875
+
876
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
877
+
878
+
879
+ ## listGroups
880
+
881
+ > GroupListResponse listGroups(byName, page, pageSize)
882
+
883
+ List all groups
884
+
885
+ ### Example
886
+
887
+ ```ts
888
+ import {
889
+ Configuration,
890
+ DefaultApi,
891
+ } from '@openshift-migration-advisor/agent-sdk';
892
+ import type { ListGroupsRequest } from '@openshift-migration-advisor/agent-sdk';
893
+
894
+ async function example() {
895
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
896
+ const api = new DefaultApi();
897
+
898
+ const body = {
899
+ // string | Filter groups by name (case-insensitive substring match) (optional)
900
+ byName: byName_example,
901
+ // number | Page number (1-indexed) (optional)
902
+ page: 56,
903
+ // number | Number of groups per page (optional)
904
+ pageSize: 56,
905
+ } satisfies ListGroupsRequest;
906
+
907
+ try {
908
+ const data = await api.listGroups(body);
909
+ console.log(data);
910
+ } catch (error) {
911
+ console.error(error);
912
+ }
913
+ }
914
+
915
+ // Run the test
916
+ example().catch(console.error);
917
+ ```
918
+
919
+ ### Parameters
920
+
921
+
922
+ | Name | Type | Description | Notes |
923
+ |------------- | ------------- | ------------- | -------------|
924
+ | **byName** | `string` | Filter groups by name (case-insensitive substring match) | [Optional] [Defaults to `undefined`] |
925
+ | **page** | `number` | Page number (1-indexed) | [Optional] [Defaults to `1`] |
926
+ | **pageSize** | `number` | Number of groups per page | [Optional] [Defaults to `20`] |
927
+
928
+ ### Return type
929
+
930
+ [**GroupListResponse**](GroupListResponse.md)
931
+
932
+ ### Authorization
933
+
934
+ No authorization required
935
+
936
+ ### HTTP request headers
937
+
938
+ - **Content-Type**: Not defined
939
+ - **Accept**: `application/json`
940
+
941
+
942
+ ### HTTP response details
943
+ | Status code | Description | Response headers |
944
+ |-------------|-------------|------------------|
945
+ | **200** | List of groups | - |
946
+ | **400** | Invalid filter expression | - |
947
+ | **500** | Internal server error | - |
948
+
949
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
950
+
951
+
952
+ ## removeVMFromInspection
953
+
954
+ > VmInspectionStatus removeVMFromInspection(id)
955
+
956
+ Remove VirtualMachine from inspection queue
957
+
958
+ ### Example
959
+
960
+ ```ts
961
+ import {
962
+ Configuration,
963
+ DefaultApi,
964
+ } from '@openshift-migration-advisor/agent-sdk';
965
+ import type { RemoveVMFromInspectionRequest } from '@openshift-migration-advisor/agent-sdk';
966
+
967
+ async function example() {
968
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
969
+ const api = new DefaultApi();
970
+
971
+ const body = {
972
+ // string
973
+ id: id_example,
974
+ } satisfies RemoveVMFromInspectionRequest;
975
+
976
+ try {
977
+ const data = await api.removeVMFromInspection(body);
978
+ console.log(data);
979
+ } catch (error) {
980
+ console.error(error);
981
+ }
982
+ }
983
+
984
+ // Run the test
985
+ example().catch(console.error);
986
+ ```
987
+
988
+ ### Parameters
989
+
990
+
991
+ | Name | Type | Description | Notes |
992
+ |------------- | ------------- | ------------- | -------------|
993
+ | **id** | `string` | | [Defaults to `undefined`] |
994
+
995
+ ### Return type
996
+
997
+ [**VmInspectionStatus**](VmInspectionStatus.md)
998
+
999
+ ### Authorization
1000
+
1001
+ No authorization required
1002
+
1003
+ ### HTTP request headers
1004
+
1005
+ - **Content-Type**: Not defined
1006
+ - **Accept**: `application/json`
1007
+
1008
+
1009
+ ### HTTP response details
1010
+ | Status code | Description | Response headers |
1011
+ |-------------|-------------|------------------|
1012
+ | **200** | VMs removed from queue | - |
1013
+ | **400** | Invalid request | - |
1014
+ | **404** | Inspector not running | - |
1015
+ | **500** | Internal server error | - |
1016
+
1017
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1018
+
1019
+
1020
+ ## setAgentMode
1021
+
1022
+ > AgentStatus setAgentMode(agentModeRequest)
1023
+
1024
+ Change agent mode
1025
+
1026
+ ### Example
1027
+
1028
+ ```ts
1029
+ import {
1030
+ Configuration,
1031
+ DefaultApi,
1032
+ } from '@openshift-migration-advisor/agent-sdk';
1033
+ import type { SetAgentModeRequest } from '@openshift-migration-advisor/agent-sdk';
1034
+
1035
+ async function example() {
1036
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1037
+ const api = new DefaultApi();
1038
+
1039
+ const body = {
1040
+ // AgentModeRequest
1041
+ agentModeRequest: ...,
1042
+ } satisfies SetAgentModeRequest;
1043
+
1044
+ try {
1045
+ const data = await api.setAgentMode(body);
1046
+ console.log(data);
1047
+ } catch (error) {
1048
+ console.error(error);
1049
+ }
1050
+ }
1051
+
1052
+ // Run the test
1053
+ example().catch(console.error);
1054
+ ```
1055
+
1056
+ ### Parameters
1057
+
1058
+
1059
+ | Name | Type | Description | Notes |
1060
+ |------------- | ------------- | ------------- | -------------|
1061
+ | **agentModeRequest** | [AgentModeRequest](AgentModeRequest.md) | | |
1062
+
1063
+ ### Return type
1064
+
1065
+ [**AgentStatus**](AgentStatus.md)
1066
+
1067
+ ### Authorization
1068
+
1069
+ No authorization required
1070
+
1071
+ ### HTTP request headers
1072
+
1073
+ - **Content-Type**: `application/json`
1074
+ - **Accept**: `application/json`
1075
+
1076
+
1077
+ ### HTTP response details
1078
+ | Status code | Description | Response headers |
1079
+ |-------------|-------------|------------------|
1080
+ | **200** | Mode changed | - |
1081
+ | **400** | Invalid request | - |
1082
+ | **409** | Conflict | - |
1083
+ | **500** | Internal server error | - |
1084
+
1085
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1086
+
1087
+
1088
+ ## startCollector
1089
+
1090
+ > CollectorStatus startCollector(collectorStartRequest)
1091
+
1092
+ Start inventory collection
1093
+
1094
+ ### Example
1095
+
1096
+ ```ts
1097
+ import {
1098
+ Configuration,
1099
+ DefaultApi,
1100
+ } from '@openshift-migration-advisor/agent-sdk';
1101
+ import type { StartCollectorRequest } from '@openshift-migration-advisor/agent-sdk';
1102
+
1103
+ async function example() {
1104
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1105
+ const api = new DefaultApi();
1106
+
1107
+ const body = {
1108
+ // CollectorStartRequest
1109
+ collectorStartRequest: ...,
1110
+ } satisfies StartCollectorRequest;
1111
+
1112
+ try {
1113
+ const data = await api.startCollector(body);
1114
+ console.log(data);
1115
+ } catch (error) {
1116
+ console.error(error);
1117
+ }
1118
+ }
1119
+
1120
+ // Run the test
1121
+ example().catch(console.error);
1122
+ ```
1123
+
1124
+ ### Parameters
1125
+
1126
+
1127
+ | Name | Type | Description | Notes |
1128
+ |------------- | ------------- | ------------- | -------------|
1129
+ | **collectorStartRequest** | [CollectorStartRequest](CollectorStartRequest.md) | | |
1130
+
1131
+ ### Return type
1132
+
1133
+ [**CollectorStatus**](CollectorStatus.md)
1134
+
1135
+ ### Authorization
1136
+
1137
+ No authorization required
1138
+
1139
+ ### HTTP request headers
1140
+
1141
+ - **Content-Type**: `application/json`
1142
+ - **Accept**: `application/json`
1143
+
1144
+
1145
+ ### HTTP response details
1146
+ | Status code | Description | Response headers |
1147
+ |-------------|-------------|------------------|
1148
+ | **202** | Collection started | - |
1149
+ | **400** | Invalid request | - |
1150
+ | **409** | Collection already in progress | - |
1151
+ | **500** | Internal server error | - |
1152
+
1153
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1154
+
1155
+
1156
+ ## startInspection
1157
+
1158
+ > InspectorStatus startInspection(inspectorStartRequest)
1159
+
1160
+ Start inspection for VMs
1161
+
1162
+ ### Example
1163
+
1164
+ ```ts
1165
+ import {
1166
+ Configuration,
1167
+ DefaultApi,
1168
+ } from '@openshift-migration-advisor/agent-sdk';
1169
+ import type { StartInspectionRequest } from '@openshift-migration-advisor/agent-sdk';
1170
+
1171
+ async function example() {
1172
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1173
+ const api = new DefaultApi();
1174
+
1175
+ const body = {
1176
+ // InspectorStartRequest
1177
+ inspectorStartRequest: ...,
1178
+ } satisfies StartInspectionRequest;
1179
+
1180
+ try {
1181
+ const data = await api.startInspection(body);
1182
+ console.log(data);
1183
+ } catch (error) {
1184
+ console.error(error);
1185
+ }
1186
+ }
1187
+
1188
+ // Run the test
1189
+ example().catch(console.error);
1190
+ ```
1191
+
1192
+ ### Parameters
1193
+
1194
+
1195
+ | Name | Type | Description | Notes |
1196
+ |------------- | ------------- | ------------- | -------------|
1197
+ | **inspectorStartRequest** | [InspectorStartRequest](InspectorStartRequest.md) | | |
1198
+
1199
+ ### Return type
1200
+
1201
+ [**InspectorStatus**](InspectorStatus.md)
1202
+
1203
+ ### Authorization
1204
+
1205
+ No authorization required
1206
+
1207
+ ### HTTP request headers
1208
+
1209
+ - **Content-Type**: `application/json`
1210
+ - **Accept**: `application/json`
1211
+
1212
+
1213
+ ### HTTP response details
1214
+ | Status code | Description | Response headers |
1215
+ |-------------|-------------|------------------|
1216
+ | **202** | Inspection started | - |
1217
+ | **400** | Invalid request | - |
1218
+ | **409** | Inspector already running | - |
1219
+ | **500** | Internal server error | - |
1220
+
1221
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1222
+
1223
+
1224
+ ## stopCollector
1225
+
1226
+ > stopCollector()
1227
+
1228
+ Stop collection
1229
+
1230
+ ### Example
1231
+
1232
+ ```ts
1233
+ import {
1234
+ Configuration,
1235
+ DefaultApi,
1236
+ } from '@openshift-migration-advisor/agent-sdk';
1237
+ import type { StopCollectorRequest } from '@openshift-migration-advisor/agent-sdk';
1238
+
1239
+ async function example() {
1240
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1241
+ const api = new DefaultApi();
1242
+
1243
+ try {
1244
+ const data = await api.stopCollector();
1245
+ console.log(data);
1246
+ } catch (error) {
1247
+ console.error(error);
1248
+ }
1249
+ }
1250
+
1251
+ // Run the test
1252
+ example().catch(console.error);
1253
+ ```
1254
+
1255
+ ### Parameters
1256
+
1257
+ This endpoint does not need any parameter.
1258
+
1259
+ ### Return type
1260
+
1261
+ `void` (Empty response body)
1262
+
1263
+ ### Authorization
1264
+
1265
+ No authorization required
1266
+
1267
+ ### HTTP request headers
1268
+
1269
+ - **Content-Type**: Not defined
1270
+ - **Accept**: Not defined
1271
+
1272
+
1273
+ ### HTTP response details
1274
+ | Status code | Description | Response headers |
1275
+ |-------------|-------------|------------------|
1276
+ | **204** | Collection stopped | - |
1277
+ | **500** | Internal server error | - |
1278
+
1279
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1280
+
1281
+
1282
+ ## stopInspection
1283
+
1284
+ > InspectorStatus stopInspection()
1285
+
1286
+ Stop inspector entirely
1287
+
1288
+ ### Example
1289
+
1290
+ ```ts
1291
+ import {
1292
+ Configuration,
1293
+ DefaultApi,
1294
+ } from '@openshift-migration-advisor/agent-sdk';
1295
+ import type { StopInspectionRequest } from '@openshift-migration-advisor/agent-sdk';
1296
+
1297
+ async function example() {
1298
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1299
+ const api = new DefaultApi();
1300
+
1301
+ try {
1302
+ const data = await api.stopInspection();
1303
+ console.log(data);
1304
+ } catch (error) {
1305
+ console.error(error);
1306
+ }
1307
+ }
1308
+
1309
+ // Run the test
1310
+ example().catch(console.error);
1311
+ ```
1312
+
1313
+ ### Parameters
1314
+
1315
+ This endpoint does not need any parameter.
1316
+
1317
+ ### Return type
1318
+
1319
+ [**InspectorStatus**](InspectorStatus.md)
1320
+
1321
+ ### Authorization
1322
+
1323
+ No authorization required
1324
+
1325
+ ### HTTP request headers
1326
+
1327
+ - **Content-Type**: Not defined
1328
+ - **Accept**: `application/json`
1329
+
1330
+
1331
+ ### HTTP response details
1332
+ | Status code | Description | Response headers |
1333
+ |-------------|-------------|------------------|
1334
+ | **200** | VMs removed from queue | - |
1335
+ | **400** | Already in canceling state | - |
1336
+ | **404** | Inspector not running | - |
1337
+ | **500** | Internal server error | - |
1338
+
1339
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1340
+
1341
+
1342
+ ## updateGroup
1343
+
1344
+ > Group updateGroup(id, updateGroupRequest)
1345
+
1346
+ Update group
1347
+
1348
+ ### Example
1349
+
1350
+ ```ts
1351
+ import {
1352
+ Configuration,
1353
+ DefaultApi,
1354
+ } from '@openshift-migration-advisor/agent-sdk';
1355
+ import type { UpdateGroupOperationRequest } from '@openshift-migration-advisor/agent-sdk';
1356
+
1357
+ async function example() {
1358
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1359
+ const api = new DefaultApi();
1360
+
1361
+ const body = {
1362
+ // string | Group ID
1363
+ id: id_example,
1364
+ // UpdateGroupRequest
1365
+ updateGroupRequest: ...,
1366
+ } satisfies UpdateGroupOperationRequest;
1367
+
1368
+ try {
1369
+ const data = await api.updateGroup(body);
1370
+ console.log(data);
1371
+ } catch (error) {
1372
+ console.error(error);
1373
+ }
1374
+ }
1375
+
1376
+ // Run the test
1377
+ example().catch(console.error);
1378
+ ```
1379
+
1380
+ ### Parameters
1381
+
1382
+
1383
+ | Name | Type | Description | Notes |
1384
+ |------------- | ------------- | ------------- | -------------|
1385
+ | **id** | `string` | Group ID | [Defaults to `undefined`] |
1386
+ | **updateGroupRequest** | [UpdateGroupRequest](UpdateGroupRequest.md) | | |
1387
+
1388
+ ### Return type
1389
+
1390
+ [**Group**](Group.md)
1391
+
1392
+ ### Authorization
1393
+
1394
+ No authorization required
1395
+
1396
+ ### HTTP request headers
1397
+
1398
+ - **Content-Type**: `application/json`
1399
+ - **Accept**: `application/json`
1400
+
1401
+
1402
+ ### HTTP response details
1403
+ | Status code | Description | Response headers |
1404
+ |-------------|-------------|------------------|
1405
+ | **200** | Group updated | - |
1406
+ | **400** | Invalid request (e.g., invalid filter syntax) | - |
1407
+ | **404** | Group not found | - |
1408
+ | **500** | Internal server error | - |
1409
+
1410
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1411
+
1412
+
1413
+ ## vddkPost
1414
+
1415
+ > VddkProperties vddkPost(file)
1416
+
1417
+ Upload VDDK tarball
1418
+
1419
+ ### Example
1420
+
1421
+ ```ts
1422
+ import {
1423
+ Configuration,
1424
+ DefaultApi,
1425
+ } from '@openshift-migration-advisor/agent-sdk';
1426
+ import type { VddkPostRequest } from '@openshift-migration-advisor/agent-sdk';
1427
+
1428
+ async function example() {
1429
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
1430
+ const api = new DefaultApi();
1431
+
1432
+ const body = {
1433
+ // Blob | VDDK tarball
1434
+ file: BINARY_DATA_HERE,
1435
+ } satisfies VddkPostRequest;
1436
+
1437
+ try {
1438
+ const data = await api.vddkPost(body);
1439
+ console.log(data);
1440
+ } catch (error) {
1441
+ console.error(error);
1442
+ }
1443
+ }
1444
+
1445
+ // Run the test
1446
+ example().catch(console.error);
1447
+ ```
1448
+
1449
+ ### Parameters
1450
+
1451
+
1452
+ | Name | Type | Description | Notes |
1453
+ |------------- | ------------- | ------------- | -------------|
1454
+ | **file** | `Blob` | VDDK tarball | [Defaults to `undefined`] |
1455
+
1456
+ ### Return type
1457
+
1458
+ [**VddkProperties**](VddkProperties.md)
1459
+
1460
+ ### Authorization
1461
+
1462
+ No authorization required
1463
+
1464
+ ### HTTP request headers
1465
+
1466
+ - **Content-Type**: `multipart/form-data`
1467
+ - **Accept**: `application/json`
1468
+
1469
+
1470
+ ### HTTP response details
1471
+ | Status code | Description | Response headers |
1472
+ |-------------|-------------|------------------|
1473
+ | **200** | Upload successful | - |
1474
+ | **409** | Conflict | - |
1475
+ | **413** | File exceeds 64MB limit | - |
1476
+ | **400** | Bad request | - |
1477
+ | **500** | Internal server error | - |
1478
+
1479
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1480
+