@openshift-migration-advisor/agent-sdk 0.0.0-94e9d800ad5c

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