@openshift-migration-advisor/agent-sdk 0.32.0 → 0.33.0-e1c90d7b1b79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/.openapi-generator/FILES +38 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +28 -4
  4. package/dist/apis/AppliancesApi.d.ts +258 -0
  5. package/dist/apis/AppliancesApi.js +273 -0
  6. package/dist/apis/CollectorApi.d.ts +0 -38
  7. package/dist/apis/CollectorApi.js +0 -59
  8. package/dist/apis/GroupsApi.d.ts +45 -6
  9. package/dist/apis/GroupsApi.js +40 -0
  10. package/dist/apis/ImageUpgradeApi.d.ts +66 -0
  11. package/dist/apis/ImageUpgradeApi.js +90 -0
  12. package/dist/apis/VirtualMachinesApi.d.ts +6 -6
  13. package/dist/apis/index.d.ts +2 -0
  14. package/dist/apis/index.js +2 -0
  15. package/dist/esm/apis/AppliancesApi.d.ts +258 -0
  16. package/dist/esm/apis/AppliancesApi.js +269 -0
  17. package/dist/esm/apis/CollectorApi.d.ts +0 -38
  18. package/dist/esm/apis/CollectorApi.js +0 -59
  19. package/dist/esm/apis/GroupsApi.d.ts +45 -6
  20. package/dist/esm/apis/GroupsApi.js +40 -0
  21. package/dist/esm/apis/ImageUpgradeApi.d.ts +66 -0
  22. package/dist/esm/apis/ImageUpgradeApi.js +86 -0
  23. package/dist/esm/apis/VirtualMachinesApi.d.ts +6 -6
  24. package/dist/esm/apis/index.d.ts +2 -0
  25. package/dist/esm/apis/index.js +2 -0
  26. package/dist/esm/models/AgentStatus.d.ts +5 -0
  27. package/dist/esm/models/AgentStatus.js +5 -0
  28. package/dist/esm/models/Appliance.d.ts +51 -0
  29. package/dist/esm/models/Appliance.js +64 -0
  30. package/dist/esm/models/ApplianceListResponse.d.ts +31 -0
  31. package/dist/esm/models/ApplianceListResponse.js +44 -0
  32. package/dist/esm/models/ApplianceRule.d.ts +90 -0
  33. package/dist/esm/models/ApplianceRule.js +98 -0
  34. package/dist/esm/models/ApplianceRuleCondition.d.ts +42 -0
  35. package/dist/esm/models/ApplianceRuleCondition.js +48 -0
  36. package/dist/esm/models/ApplianceRuleFunction.d.ts +37 -0
  37. package/dist/esm/models/ApplianceRuleFunction.js +46 -0
  38. package/dist/esm/models/ApplianceRuleListResponse.d.ts +31 -0
  39. package/dist/esm/models/ApplianceRuleListResponse.js +44 -0
  40. package/dist/esm/models/ApplianceRuleRequest.d.ts +74 -0
  41. package/dist/esm/models/ApplianceRuleRequest.js +85 -0
  42. package/dist/esm/models/ApplicationOverview.d.ts +16 -0
  43. package/dist/esm/models/ApplicationOverview.js +12 -0
  44. package/dist/esm/models/Datastore.d.ts +9 -0
  45. package/dist/esm/models/Datastore.js +5 -0
  46. package/dist/esm/models/DiskGeometryCondition.d.ts +47 -0
  47. package/dist/esm/models/DiskGeometryCondition.js +58 -0
  48. package/dist/esm/models/Host.d.ts +16 -0
  49. package/dist/esm/models/Host.js +8 -0
  50. package/dist/esm/models/ImageUpgradeImage.d.ts +34 -0
  51. package/dist/esm/models/ImageUpgradeImage.js +47 -0
  52. package/dist/esm/models/ImageUpgradeResult.d.ts +66 -0
  53. package/dist/esm/models/ImageUpgradeResult.js +71 -0
  54. package/dist/esm/models/ImageUpgradeStatus.d.ts +44 -0
  55. package/dist/esm/models/ImageUpgradeStatus.js +57 -0
  56. package/dist/esm/models/ImageUploadStatus.d.ts +44 -0
  57. package/dist/esm/models/ImageUploadStatus.js +56 -0
  58. package/dist/esm/models/OsInfo.d.ts +12 -0
  59. package/dist/esm/models/OsInfo.js +9 -0
  60. package/dist/esm/models/Product.d.ts +66 -0
  61. package/dist/esm/models/Product.js +61 -0
  62. package/dist/esm/models/RDMBacking.d.ts +26 -0
  63. package/dist/esm/models/RDMBacking.js +17 -0
  64. package/dist/esm/models/RDMHostLun.d.ts +42 -0
  65. package/dist/esm/models/RDMHostLun.js +49 -0
  66. package/dist/esm/models/StorageArray.d.ts +42 -0
  67. package/dist/esm/models/StorageArray.js +47 -0
  68. package/dist/esm/models/SuccessfulImageUpgrade.d.ts +38 -0
  69. package/dist/esm/models/SuccessfulImageUpgrade.js +52 -0
  70. package/dist/esm/models/VMFilterOptionsResponse.d.ts +8 -0
  71. package/dist/esm/models/VMFilterOptionsResponse.js +8 -0
  72. package/dist/esm/models/VirtualMachine.d.ts +8 -0
  73. package/dist/esm/models/VirtualMachine.js +4 -0
  74. package/dist/esm/models/VirtualMachineDatastore.d.ts +9 -0
  75. package/dist/esm/models/VirtualMachineDatastore.js +5 -0
  76. package/dist/esm/models/VirtualMachineDetail.d.ts +5 -0
  77. package/dist/esm/models/VirtualMachineDetail.js +3 -0
  78. package/dist/esm/models/VirtualMachineDisk.d.ts +8 -0
  79. package/dist/esm/models/VirtualMachineDisk.js +4 -0
  80. package/dist/esm/models/VirtualMachineIdentity.d.ts +34 -0
  81. package/dist/esm/models/VirtualMachineIdentity.js +47 -0
  82. package/dist/esm/models/index.d.ts +17 -0
  83. package/dist/esm/models/index.js +17 -0
  84. package/dist/esm/runtime.js +4 -3
  85. package/dist/models/AgentStatus.d.ts +5 -0
  86. package/dist/models/AgentStatus.js +5 -0
  87. package/dist/models/Appliance.d.ts +51 -0
  88. package/dist/models/Appliance.js +71 -0
  89. package/dist/models/ApplianceListResponse.d.ts +31 -0
  90. package/dist/models/ApplianceListResponse.js +51 -0
  91. package/dist/models/ApplianceRule.d.ts +90 -0
  92. package/dist/models/ApplianceRule.js +106 -0
  93. package/dist/models/ApplianceRuleCondition.d.ts +42 -0
  94. package/dist/models/ApplianceRuleCondition.js +55 -0
  95. package/dist/models/ApplianceRuleFunction.d.ts +37 -0
  96. package/dist/models/ApplianceRuleFunction.js +53 -0
  97. package/dist/models/ApplianceRuleListResponse.d.ts +31 -0
  98. package/dist/models/ApplianceRuleListResponse.js +51 -0
  99. package/dist/models/ApplianceRuleRequest.d.ts +74 -0
  100. package/dist/models/ApplianceRuleRequest.js +93 -0
  101. package/dist/models/ApplicationOverview.d.ts +16 -0
  102. package/dist/models/ApplicationOverview.js +12 -0
  103. package/dist/models/Datastore.d.ts +9 -0
  104. package/dist/models/Datastore.js +5 -0
  105. package/dist/models/DiskGeometryCondition.d.ts +47 -0
  106. package/dist/models/DiskGeometryCondition.js +66 -0
  107. package/dist/models/Host.d.ts +16 -0
  108. package/dist/models/Host.js +8 -0
  109. package/dist/models/ImageUpgradeImage.d.ts +34 -0
  110. package/dist/models/ImageUpgradeImage.js +54 -0
  111. package/dist/models/ImageUpgradeResult.d.ts +66 -0
  112. package/dist/models/ImageUpgradeResult.js +79 -0
  113. package/dist/models/ImageUpgradeStatus.d.ts +44 -0
  114. package/dist/models/ImageUpgradeStatus.js +64 -0
  115. package/dist/models/ImageUploadStatus.d.ts +44 -0
  116. package/dist/models/ImageUploadStatus.js +64 -0
  117. package/dist/models/OsInfo.d.ts +12 -0
  118. package/dist/models/OsInfo.js +10 -1
  119. package/dist/models/Product.d.ts +66 -0
  120. package/dist/models/Product.js +68 -0
  121. package/dist/models/RDMBacking.d.ts +26 -0
  122. package/dist/models/RDMBacking.js +18 -0
  123. package/dist/models/RDMHostLun.d.ts +42 -0
  124. package/dist/models/RDMHostLun.js +56 -0
  125. package/dist/models/StorageArray.d.ts +42 -0
  126. package/dist/models/StorageArray.js +54 -0
  127. package/dist/models/SuccessfulImageUpgrade.d.ts +38 -0
  128. package/dist/models/SuccessfulImageUpgrade.js +59 -0
  129. package/dist/models/VMFilterOptionsResponse.d.ts +8 -0
  130. package/dist/models/VMFilterOptionsResponse.js +8 -0
  131. package/dist/models/VirtualMachine.d.ts +8 -0
  132. package/dist/models/VirtualMachine.js +4 -0
  133. package/dist/models/VirtualMachineDatastore.d.ts +9 -0
  134. package/dist/models/VirtualMachineDatastore.js +5 -0
  135. package/dist/models/VirtualMachineDetail.d.ts +5 -0
  136. package/dist/models/VirtualMachineDetail.js +3 -0
  137. package/dist/models/VirtualMachineDisk.d.ts +8 -0
  138. package/dist/models/VirtualMachineDisk.js +4 -0
  139. package/dist/models/VirtualMachineIdentity.d.ts +34 -0
  140. package/dist/models/VirtualMachineIdentity.js +54 -0
  141. package/dist/models/index.d.ts +17 -0
  142. package/dist/models/index.js +17 -0
  143. package/dist/runtime.js +4 -3
  144. package/docs/AgentStatus.md +2 -0
  145. package/docs/Appliance.md +44 -0
  146. package/docs/ApplianceListResponse.md +34 -0
  147. package/docs/ApplianceRule.md +50 -0
  148. package/docs/ApplianceRuleCondition.md +39 -0
  149. package/docs/ApplianceRuleFunction.md +37 -0
  150. package/docs/ApplianceRuleListResponse.md +34 -0
  151. package/docs/ApplianceRuleRequest.md +46 -0
  152. package/docs/AppliancesApi.md +414 -0
  153. package/docs/ApplicationOverview.md +8 -0
  154. package/docs/CollectorApi.md +0 -70
  155. package/docs/Datastore.md +4 -0
  156. package/docs/DiskGeometryCondition.md +38 -0
  157. package/docs/GroupsApi.md +72 -4
  158. package/docs/Host.md +8 -0
  159. package/docs/ImageUpgradeApi.md +82 -0
  160. package/docs/ImageUpgradeImage.md +36 -0
  161. package/docs/ImageUpgradeResult.md +46 -0
  162. package/docs/ImageUpgradeStatus.md +40 -0
  163. package/docs/ImageUploadStatus.md +36 -0
  164. package/docs/OsInfo.md +2 -0
  165. package/docs/Product.md +52 -0
  166. package/docs/RDMBacking.md +8 -0
  167. package/docs/RDMHostLun.md +41 -0
  168. package/docs/StorageArray.md +41 -0
  169. package/docs/SuccessfulImageUpgrade.md +38 -0
  170. package/docs/VMFilterOptionsResponse.md +4 -0
  171. package/docs/VirtualMachine.md +4 -0
  172. package/docs/VirtualMachineDatastore.md +4 -0
  173. package/docs/VirtualMachineDetail.md +2 -0
  174. package/docs/VirtualMachineDisk.md +4 -0
  175. package/docs/VirtualMachineIdentity.md +36 -0
  176. package/docs/VirtualMachinesApi.md +4 -4
  177. package/package.json +1 -1
  178. package/src/apis/AppliancesApi.ts +504 -0
  179. package/src/apis/CollectorApi.ts +0 -97
  180. package/src/apis/GroupsApi.ts +86 -6
  181. package/src/apis/ImageUpgradeApi.ts +128 -0
  182. package/src/apis/VirtualMachinesApi.ts +6 -6
  183. package/src/apis/index.ts +2 -0
  184. package/src/models/AgentStatus.ts +14 -0
  185. package/src/models/Appliance.ts +107 -0
  186. package/src/models/ApplianceListResponse.ts +72 -0
  187. package/src/models/ApplianceRule.ts +159 -0
  188. package/src/models/ApplianceRuleCondition.ts +87 -0
  189. package/src/models/ApplianceRuleFunction.ts +80 -0
  190. package/src/models/ApplianceRuleListResponse.ts +72 -0
  191. package/src/models/ApplianceRuleRequest.ts +137 -0
  192. package/src/models/ApplicationOverview.ts +26 -0
  193. package/src/models/Datastore.ts +19 -0
  194. package/src/models/DiskGeometryCondition.ts +90 -0
  195. package/src/models/Host.ts +24 -0
  196. package/src/models/ImageUpgradeImage.ts +71 -0
  197. package/src/models/ImageUpgradeResult.ts +130 -0
  198. package/src/models/ImageUpgradeStatus.ts +100 -0
  199. package/src/models/ImageUploadStatus.ts +84 -0
  200. package/src/models/OsInfo.ts +15 -0
  201. package/src/models/Product.ts +118 -0
  202. package/src/models/RDMBacking.ts +44 -0
  203. package/src/models/RDMHostLun.ts +82 -0
  204. package/src/models/StorageArray.ts +81 -0
  205. package/src/models/SuccessfulImageUpgrade.ts +78 -0
  206. package/src/models/VMFilterOptionsResponse.ts +14 -0
  207. package/src/models/VirtualMachine.ts +12 -0
  208. package/src/models/VirtualMachineDatastore.ts +20 -0
  209. package/src/models/VirtualMachineDetail.ts +13 -0
  210. package/src/models/VirtualMachineDisk.ts +12 -0
  211. package/src/models/VirtualMachineIdentity.ts +71 -0
  212. package/src/models/index.ts +17 -0
  213. package/src/runtime.ts +3 -3
@@ -13,6 +13,11 @@
13
13
  */
14
14
 
15
15
  import * as runtime from '../runtime.js';
16
+ import {
17
+ type ApplianceListResponse,
18
+ ApplianceListResponseFromJSON,
19
+ ApplianceListResponseToJSON,
20
+ } from '../models/ApplianceListResponse.js';
16
21
  import {
17
22
  type ApplicationListResponse,
18
23
  ApplicationListResponseFromJSON,
@@ -68,7 +73,7 @@ export interface GetGroupRequest {
68
73
  */
69
74
  groupId: string;
70
75
  /**
71
- * Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
76
+ * Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
72
77
  */
73
78
  sort?: Array<string>;
74
79
  /**
@@ -87,7 +92,7 @@ export interface GetLatestGroupRequest {
87
92
  */
88
93
  groupId: string;
89
94
  /**
90
- * Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
95
+ * Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
91
96
  */
92
97
  sort?: Array<string>;
93
98
  /**
@@ -100,6 +105,13 @@ export interface GetLatestGroupRequest {
100
105
  pageSize?: number;
101
106
  }
102
107
 
108
+ export interface ListGroupAppliancesRequest {
109
+ /**
110
+ * Group ID
111
+ */
112
+ groupId: string;
113
+ }
114
+
103
115
  export interface ListGroupApplicationsRequest {
104
116
  /**
105
117
  * Group ID
@@ -209,7 +221,7 @@ export interface GroupsApiInterface {
209
221
  * Creates request options for getGroup without sending the request
210
222
  * @param {string} id Collection ID
211
223
  * @param {string} groupId Group ID
212
- * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
224
+ * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
213
225
  * @param {number} [page] Page number for pagination
214
226
  * @param {number} [pageSize] Number of items per page
215
227
  * @throws {RequiredError}
@@ -222,7 +234,7 @@ export interface GroupsApiInterface {
222
234
  * @summary Get group by ID with its VirtualMachines
223
235
  * @param {string} id Collection ID
224
236
  * @param {string} groupId Group ID
225
- * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
237
+ * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
226
238
  * @param {number} [page] Page number for pagination
227
239
  * @param {number} [pageSize] Number of items per page
228
240
  * @param {*} [options] Override http request option.
@@ -239,7 +251,7 @@ export interface GroupsApiInterface {
239
251
  /**
240
252
  * Creates request options for getLatestGroup without sending the request
241
253
  * @param {string} groupId Group ID
242
- * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
254
+ * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
243
255
  * @param {number} [page] Page number for pagination
244
256
  * @param {number} [pageSize] Number of items per page
245
257
  * @throws {RequiredError}
@@ -251,7 +263,7 @@ export interface GroupsApiInterface {
251
263
  *
252
264
  * @summary Get group by ID from the latest collection
253
265
  * @param {string} groupId Group ID
254
- * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
266
+ * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
255
267
  * @param {number} [page] Page number for pagination
256
268
  * @param {number} [pageSize] Number of items per page
257
269
  * @param {*} [options] Override http request option.
@@ -265,6 +277,29 @@ export interface GroupsApiInterface {
265
277
  */
266
278
  getLatestGroup(requestParameters: GetLatestGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupResponse>;
267
279
 
280
+ /**
281
+ * Creates request options for listGroupAppliances without sending the request
282
+ * @param {string} groupId Group ID
283
+ * @throws {RequiredError}
284
+ * @memberof GroupsApiInterface
285
+ */
286
+ listGroupAppliancesRequestOpts(requestParameters: ListGroupAppliancesRequest): Promise<runtime.RequestOpts>;
287
+
288
+ /**
289
+ *
290
+ * @summary List detected appliances for a group
291
+ * @param {string} groupId Group ID
292
+ * @param {*} [options] Override http request option.
293
+ * @throws {RequiredError}
294
+ * @memberof GroupsApiInterface
295
+ */
296
+ listGroupAppliancesRaw(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceListResponse>>;
297
+
298
+ /**
299
+ * List detected appliances for a group
300
+ */
301
+ listGroupAppliances(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse>;
302
+
268
303
  /**
269
304
  * Creates request options for listGroupApplications without sending the request
270
305
  * @param {string} groupId Group ID
@@ -589,6 +624,51 @@ export class GroupsApi extends runtime.BaseAPI implements GroupsApiInterface {
589
624
  return await response.value();
590
625
  }
591
626
 
627
+ /**
628
+ * Creates request options for listGroupAppliances without sending the request
629
+ */
630
+ async listGroupAppliancesRequestOpts(requestParameters: ListGroupAppliancesRequest): Promise<runtime.RequestOpts> {
631
+ if (requestParameters['groupId'] == null) {
632
+ throw new runtime.RequiredError(
633
+ 'groupId',
634
+ 'Required parameter "groupId" was null or undefined when calling listGroupAppliances().'
635
+ );
636
+ }
637
+
638
+ const queryParameters: any = {};
639
+
640
+ const headerParameters: runtime.HTTPHeaders = {};
641
+
642
+
643
+ let urlPath = `/groups/{groupId}/appliances`;
644
+ urlPath = urlPath.replace('{groupId}', encodeURIComponent(String(requestParameters['groupId'])));
645
+
646
+ return {
647
+ path: urlPath,
648
+ method: 'GET',
649
+ headers: headerParameters,
650
+ query: queryParameters,
651
+ };
652
+ }
653
+
654
+ /**
655
+ * List detected appliances for a group
656
+ */
657
+ async listGroupAppliancesRaw(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceListResponse>> {
658
+ const requestOptions = await this.listGroupAppliancesRequestOpts(requestParameters);
659
+ const response = await this.request(requestOptions, initOverrides);
660
+
661
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApplianceListResponseFromJSON(jsonValue));
662
+ }
663
+
664
+ /**
665
+ * List detected appliances for a group
666
+ */
667
+ async listGroupAppliances(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse> {
668
+ const response = await this.listGroupAppliancesRaw(requestParameters, initOverrides);
669
+ return await response.value();
670
+ }
671
+
592
672
  /**
593
673
  * Creates request options for listGroupApplications without sending the request
594
674
  */
@@ -0,0 +1,128 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import * as runtime from '../runtime.js';
16
+
17
+ export interface PostImageUpgradeRequest {
18
+ /**
19
+ * OCI archive; maximum file payload is 3 GiB
20
+ */
21
+ file: Blob;
22
+ }
23
+
24
+ /**
25
+ * ImageUpgradeApi - interface
26
+ *
27
+ * @export
28
+ * @interface ImageUpgradeApiInterface
29
+ */
30
+ export interface ImageUpgradeApiInterface {
31
+ /**
32
+ * Creates request options for postImageUpgrade without sending the request
33
+ * @param {Blob} file OCI archive; maximum file payload is 3 GiB
34
+ * @throws {RequiredError}
35
+ * @memberof ImageUpgradeApiInterface
36
+ */
37
+ postImageUpgradeRequestOpts(requestParameters: PostImageUpgradeRequest): Promise<runtime.RequestOpts>;
38
+
39
+ /**
40
+ * Validate the complete upload and atomically place the archive in the watched directory. The host owns upgrade execution. Read imageUpgradeStatus in GET /agent for upload activity and the last host result.
41
+ * @summary Upload an OCI image for a disconnected appliance image upgrade
42
+ * @param {Blob} file OCI archive; maximum file payload is 3 GiB
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ * @memberof ImageUpgradeApiInterface
46
+ */
47
+ postImageUpgradeRaw(requestParameters: PostImageUpgradeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
48
+
49
+ /**
50
+ * Validate the complete upload and atomically place the archive in the watched directory. The host owns upgrade execution. Read imageUpgradeStatus in GET /agent for upload activity and the last host result.
51
+ * Upload an OCI image for a disconnected appliance image upgrade
52
+ */
53
+ postImageUpgrade(requestParameters: PostImageUpgradeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
54
+
55
+ }
56
+
57
+ /**
58
+ *
59
+ */
60
+ export class ImageUpgradeApi extends runtime.BaseAPI implements ImageUpgradeApiInterface {
61
+
62
+ /**
63
+ * Creates request options for postImageUpgrade without sending the request
64
+ */
65
+ async postImageUpgradeRequestOpts(requestParameters: PostImageUpgradeRequest): Promise<runtime.RequestOpts> {
66
+ if (requestParameters['file'] == null) {
67
+ throw new runtime.RequiredError(
68
+ 'file',
69
+ 'Required parameter "file" was null or undefined when calling postImageUpgrade().'
70
+ );
71
+ }
72
+
73
+ const queryParameters: any = {};
74
+
75
+ const headerParameters: runtime.HTTPHeaders = {};
76
+
77
+ const consumes: runtime.Consume[] = [
78
+ { contentType: 'multipart/form-data' },
79
+ ];
80
+ // @ts-ignore: canConsumeForm may be unused
81
+ const canConsumeForm = runtime.canConsumeForm(consumes);
82
+
83
+ let formParams: { append(param: string, value: any): any };
84
+ let useForm = false;
85
+ // use FormData to transmit files using content-type "multipart/form-data"
86
+ useForm = canConsumeForm;
87
+ if (useForm) {
88
+ formParams = new FormData();
89
+ } else {
90
+ formParams = new URLSearchParams();
91
+ }
92
+
93
+ if (requestParameters['file'] != null) {
94
+ formParams.append('file', requestParameters['file'] as any);
95
+ }
96
+
97
+
98
+ let urlPath = `/image-upgrades`;
99
+
100
+ return {
101
+ path: urlPath,
102
+ method: 'POST',
103
+ headers: headerParameters,
104
+ query: queryParameters,
105
+ body: formParams,
106
+ };
107
+ }
108
+
109
+ /**
110
+ * Validate the complete upload and atomically place the archive in the watched directory. The host owns upgrade execution. Read imageUpgradeStatus in GET /agent for upload activity and the last host result.
111
+ * Upload an OCI image for a disconnected appliance image upgrade
112
+ */
113
+ async postImageUpgradeRaw(requestParameters: PostImageUpgradeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
114
+ const requestOptions = await this.postImageUpgradeRequestOpts(requestParameters);
115
+ const response = await this.request(requestOptions, initOverrides);
116
+
117
+ return new runtime.VoidApiResponse(response);
118
+ }
119
+
120
+ /**
121
+ * Validate the complete upload and atomically place the archive in the watched directory. The host owns upgrade execution. Read imageUpgradeStatus in GET /agent for upload activity and the last host result.
122
+ * Upload an OCI image for a disconnected appliance image upgrade
123
+ */
124
+ async postImageUpgrade(requestParameters: PostImageUpgradeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
125
+ await this.postImageUpgradeRaw(requestParameters, initOverrides);
126
+ }
127
+
128
+ }
@@ -129,7 +129,7 @@ export interface ListLatestVirtualMachinesRequest {
129
129
  */
130
130
  byExpression?: string;
131
131
  /**
132
- * Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
132
+ * Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
133
133
  */
134
134
  sort?: Array<string>;
135
135
  /**
@@ -152,7 +152,7 @@ export interface ListVirtualMachinesRequest {
152
152
  */
153
153
  byExpression?: string;
154
154
  /**
155
- * Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
155
+ * Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
156
156
  */
157
157
  sort?: Array<string>;
158
158
  /**
@@ -427,7 +427,7 @@ export interface VirtualMachinesApiInterface {
427
427
  /**
428
428
  * Creates request options for listLatestVirtualMachines without sending the request
429
429
  * @param {string} [byExpression] Filter by expression
430
- * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
430
+ * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
431
431
  * @param {number} [page] Page number for pagination
432
432
  * @param {number} [pageSize] Number of items per page
433
433
  * @throws {RequiredError}
@@ -439,7 +439,7 @@ export interface VirtualMachinesApiInterface {
439
439
  *
440
440
  * @summary List VirtualMachines from the latest collection
441
441
  * @param {string} [byExpression] Filter by expression
442
- * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
442
+ * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
443
443
  * @param {number} [page] Page number for pagination
444
444
  * @param {number} [pageSize] Number of items per page
445
445
  * @param {*} [options] Override http request option.
@@ -457,7 +457,7 @@ export interface VirtualMachinesApiInterface {
457
457
  * Creates request options for listVirtualMachines without sending the request
458
458
  * @param {string} id Collection ID
459
459
  * @param {string} [byExpression] Filter by expression
460
- * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
460
+ * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
461
461
  * @param {number} [page] Page number for pagination
462
462
  * @param {number} [pageSize] Number of items per page
463
463
  * @throws {RequiredError}
@@ -470,7 +470,7 @@ export interface VirtualMachinesApiInterface {
470
470
  * @summary List VirtualMachines in a collection
471
471
  * @param {string} id Collection ID
472
472
  * @param {string} [byExpression] Filter by expression
473
- * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
473
+ * @param {Array<string>} [sort] Sort fields with direction (e.g., \&quot;name:asc\&quot;, \&quot;cluster:desc\&quot;). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg, guestOs.
474
474
  * @param {number} [page] Page number for pagination
475
475
  * @param {number} [pageSize] Number of items per page
476
476
  * @param {*} [options] Override http request option.
package/src/apis/index.ts CHANGED
@@ -1,12 +1,14 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AgentApi.js';
4
+ export * from './AppliancesApi.js';
4
5
  export * from './ApplicationsApi.js';
5
6
  export * from './CollectionsApi.js';
6
7
  export * from './CollectorApi.js';
7
8
  export * from './CredentialsApi.js';
8
9
  export * from './ForecasterApi.js';
9
10
  export * from './GroupsApi.js';
11
+ export * from './ImageUpgradeApi.js';
10
12
  export * from './InspectorApi.js';
11
13
  export * from './InventoriesApi.js';
12
14
  export * from './RightsizingApi.js';
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime.js';
16
+ import type { ImageUpgradeStatus } from './ImageUpgradeStatus.js';
17
+ import {
18
+ ImageUpgradeStatusFromJSON,
19
+ ImageUpgradeStatusFromJSONTyped,
20
+ ImageUpgradeStatusToJSON,
21
+ ImageUpgradeStatusToJSONTyped,
22
+ } from './ImageUpgradeStatus.js';
16
23
  import type { AgentStatusConsoleConnection } from './AgentStatusConsoleConnection.js';
17
24
  import {
18
25
  AgentStatusConsoleConnectionFromJSON,
@@ -39,6 +46,10 @@ export interface AgentStatus {
39
46
  * RVTool mode enabled
40
47
  */
41
48
  rvtoolsModeEnabled?: boolean;
49
+ /**
50
+ * Always present in both connected and disconnected modes, including while the console is unreachable. Includes upload activity and the last host image upgrade result. Image upgrade status errors do not fail the agent-status response.
51
+ */
52
+ imageUpgradeStatus: ImageUpgradeStatus;
42
53
  }
43
54
 
44
55
 
@@ -58,6 +69,7 @@ export type AgentStatusModeEnum = typeof AgentStatusModeEnum[keyof typeof AgentS
58
69
  export function instanceOfAgentStatus(value: object): value is AgentStatus {
59
70
  if (!('mode' in value) || value['mode'] === undefined) return false;
60
71
  if (!('consoleConnection' in value) || value['consoleConnection'] === undefined) return false;
72
+ if (!('imageUpgradeStatus' in value) || value['imageUpgradeStatus'] === undefined) return false;
61
73
  return true;
62
74
  }
63
75
 
@@ -74,6 +86,7 @@ export function AgentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean
74
86
  'mode': json['mode'],
75
87
  'consoleConnection': AgentStatusConsoleConnectionFromJSON(json['consoleConnection']),
76
88
  'rvtoolsModeEnabled': json['rvtoolsModeEnabled'] == null ? undefined : json['rvtoolsModeEnabled'],
89
+ 'imageUpgradeStatus': ImageUpgradeStatusFromJSON(json['imageUpgradeStatus']),
77
90
  };
78
91
  }
79
92
 
@@ -91,6 +104,7 @@ export function AgentStatusToJSONTyped(value?: AgentStatus | null, ignoreDiscrim
91
104
  'mode': value['mode'],
92
105
  'consoleConnection': AgentStatusConsoleConnectionToJSON(value['consoleConnection']),
93
106
  'rvtoolsModeEnabled': value['rvtoolsModeEnabled'],
107
+ 'imageUpgradeStatus': ImageUpgradeStatusToJSON(value['imageUpgradeStatus']),
94
108
  };
95
109
  }
96
110
 
@@ -0,0 +1,107 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ import type { VirtualMachineIdentity } from './VirtualMachineIdentity.js';
17
+ import {
18
+ VirtualMachineIdentityFromJSON,
19
+ VirtualMachineIdentityFromJSONTyped,
20
+ VirtualMachineIdentityToJSON,
21
+ VirtualMachineIdentityToJSONTyped,
22
+ } from './VirtualMachineIdentity.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface Appliance
28
+ */
29
+ export interface Appliance {
30
+ /**
31
+ * Appliance product name
32
+ */
33
+ name: string;
34
+ /**
35
+ * Appliance vendor; defaults to Unknown when not reported
36
+ */
37
+ vendor: string;
38
+ /**
39
+ * Appliance product version; defaults to empty when not reported
40
+ */
41
+ version: string;
42
+ /**
43
+ *
44
+ */
45
+ confidence: number;
46
+ /**
47
+ * Number of VMs running this appliance
48
+ */
49
+ vmCount: number;
50
+ /**
51
+ *
52
+ */
53
+ vms: Array<VirtualMachineIdentity>;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the Appliance interface.
58
+ */
59
+ export function instanceOfAppliance(value: object): value is Appliance {
60
+ if (!('name' in value) || value['name'] === undefined) return false;
61
+ if (!('vendor' in value) || value['vendor'] === undefined) return false;
62
+ if (!('version' in value) || value['version'] === undefined) return false;
63
+ if (!('confidence' in value) || value['confidence'] === undefined) return false;
64
+ if (!('vmCount' in value) || value['vmCount'] === undefined) return false;
65
+ if (!('vms' in value) || value['vms'] === undefined) return false;
66
+ return true;
67
+ }
68
+
69
+ export function ApplianceFromJSON(json: any): Appliance {
70
+ return ApplianceFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function ApplianceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Appliance {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'name': json['name'],
80
+ 'vendor': json['vendor'],
81
+ 'version': json['version'],
82
+ 'confidence': json['confidence'],
83
+ 'vmCount': json['vmCount'],
84
+ 'vms': ((json['vms'] as Array<any>).map(VirtualMachineIdentityFromJSON)),
85
+ };
86
+ }
87
+
88
+ export function ApplianceToJSON(json: any): Appliance {
89
+ return ApplianceToJSONTyped(json, false);
90
+ }
91
+
92
+ export function ApplianceToJSONTyped(value?: Appliance | null, ignoreDiscriminator: boolean = false): any {
93
+ if (value == null) {
94
+ return value;
95
+ }
96
+
97
+ return {
98
+
99
+ 'name': value['name'],
100
+ 'vendor': value['vendor'],
101
+ 'version': value['version'],
102
+ 'confidence': value['confidence'],
103
+ 'vmCount': value['vmCount'],
104
+ 'vms': ((value['vms'] as Array<any>).map(VirtualMachineIdentityToJSON)),
105
+ };
106
+ }
107
+
@@ -0,0 +1,72 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ import type { Appliance } from './Appliance.js';
17
+ import {
18
+ ApplianceFromJSON,
19
+ ApplianceFromJSONTyped,
20
+ ApplianceToJSON,
21
+ ApplianceToJSONTyped,
22
+ } from './Appliance.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApplianceListResponse
28
+ */
29
+ export interface ApplianceListResponse {
30
+ /**
31
+ *
32
+ */
33
+ appliances: Array<Appliance>;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ApplianceListResponse interface.
38
+ */
39
+ export function instanceOfApplianceListResponse(value: object): value is ApplianceListResponse {
40
+ if (!('appliances' in value) || value['appliances'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function ApplianceListResponseFromJSON(json: any): ApplianceListResponse {
45
+ return ApplianceListResponseFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function ApplianceListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceListResponse {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'appliances': ((json['appliances'] as Array<any>).map(ApplianceFromJSON)),
55
+ };
56
+ }
57
+
58
+ export function ApplianceListResponseToJSON(json: any): ApplianceListResponse {
59
+ return ApplianceListResponseToJSONTyped(json, false);
60
+ }
61
+
62
+ export function ApplianceListResponseToJSONTyped(value?: ApplianceListResponse | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'appliances': ((value['appliances'] as Array<any>).map(ApplianceToJSON)),
70
+ };
71
+ }
72
+