@openshift-migration-advisor/agent-sdk 0.12.0-b2d61b72e086 → 0.12.0-b940fec9f503

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 (208) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +25 -5
  4. package/dist/apis/DefaultApi.d.ts +369 -41
  5. package/dist/apis/DefaultApi.js +410 -46
  6. package/dist/esm/apis/DefaultApi.d.ts +369 -41
  7. package/dist/esm/apis/DefaultApi.js +410 -46
  8. package/dist/esm/models/AgentStatus.d.ts +1 -1
  9. package/dist/esm/models/AgentStatus.js +3 -3
  10. package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
  11. package/dist/esm/models/ApplicationListResponse.js +44 -0
  12. package/dist/esm/models/ApplicationOverview.d.ts +51 -0
  13. package/dist/esm/models/ApplicationOverview.js +56 -0
  14. package/dist/esm/models/ApplicationVM.d.ts +38 -0
  15. package/dist/esm/models/ApplicationVM.js +47 -0
  16. package/dist/esm/models/ClusterFeatures.d.ts +54 -0
  17. package/dist/esm/models/ClusterFeatures.js +54 -0
  18. package/dist/esm/models/ClusterUtilization.d.ts +68 -0
  19. package/dist/esm/models/ClusterUtilization.js +67 -0
  20. package/dist/esm/models/CollectorStartRequest.d.ts +12 -0
  21. package/dist/esm/models/CollectorStartRequest.js +4 -0
  22. package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
  23. package/dist/esm/models/CreateGroupRequest.js +0 -2
  24. package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
  25. package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
  26. package/dist/esm/models/Group.d.ts +0 -6
  27. package/dist/esm/models/Group.js +0 -2
  28. package/dist/esm/models/GroupResponse.d.ts +7 -0
  29. package/dist/esm/models/GroupResponse.js +3 -0
  30. package/dist/esm/models/InspectorStatus.d.ts +0 -17
  31. package/dist/esm/models/InspectorStatus.js +1 -10
  32. package/dist/esm/models/Inventory.d.ts +7 -1
  33. package/dist/esm/models/Inventory.js +5 -3
  34. package/dist/esm/models/InventoryData.d.ts +14 -0
  35. package/dist/esm/models/InventoryData.js +6 -0
  36. package/dist/esm/models/RightsizingClusterListResponse.d.ts +1 -1
  37. package/dist/esm/models/RightsizingClusterListResponse.js +3 -3
  38. package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
  39. package/dist/esm/models/RightsizingClusterResponse.js +48 -0
  40. package/dist/esm/models/RightsizingClusterUtilization.d.ts +12 -12
  41. package/dist/esm/models/RightsizingClusterUtilization.js +36 -36
  42. package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
  43. package/dist/esm/models/RightsizingCollectRequest.js +12 -12
  44. package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
  45. package/dist/esm/models/RightsizingMetricStats.js +3 -3
  46. package/dist/esm/models/RightsizingReport.d.ts +6 -6
  47. package/dist/esm/models/RightsizingReport.js +18 -18
  48. package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
  49. package/dist/esm/models/RightsizingReportSummary.js +18 -18
  50. package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
  51. package/dist/esm/models/StartInspectionRequest.js +5 -0
  52. package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
  53. package/dist/esm/models/UpdateGroupRequest.js +0 -2
  54. package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
  55. package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
  56. package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
  57. package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
  58. package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
  59. package/dist/esm/models/VMLabelsResponse.js +47 -0
  60. package/dist/esm/models/VMNIC.d.ts +12 -0
  61. package/dist/esm/models/VMNIC.js +4 -0
  62. package/dist/esm/models/VcenterCredentials.d.ts +12 -0
  63. package/dist/esm/models/VcenterCredentials.js +4 -0
  64. package/dist/esm/models/VirtualMachine.d.ts +30 -6
  65. package/dist/esm/models/VirtualMachine.js +18 -10
  66. package/dist/esm/models/VirtualMachineDetail.d.ts +12 -0
  67. package/dist/esm/models/VirtualMachineDetail.js +4 -0
  68. package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
  69. package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
  70. package/dist/esm/models/VmUtilizationDetails.d.ts +12 -12
  71. package/dist/esm/models/VmUtilizationDetails.js +36 -36
  72. package/dist/esm/models/index.d.ts +11 -0
  73. package/dist/esm/models/index.js +11 -0
  74. package/dist/models/AgentStatus.d.ts +1 -1
  75. package/dist/models/AgentStatus.js +3 -3
  76. package/dist/models/ApplicationListResponse.d.ts +33 -0
  77. package/dist/models/ApplicationListResponse.js +51 -0
  78. package/dist/models/ApplicationOverview.d.ts +51 -0
  79. package/dist/models/ApplicationOverview.js +63 -0
  80. package/dist/models/ApplicationVM.d.ts +38 -0
  81. package/dist/models/ApplicationVM.js +54 -0
  82. package/dist/models/ClusterFeatures.d.ts +54 -0
  83. package/dist/models/ClusterFeatures.js +62 -0
  84. package/dist/models/ClusterUtilization.d.ts +68 -0
  85. package/dist/models/ClusterUtilization.js +74 -0
  86. package/dist/models/CollectorStartRequest.d.ts +12 -0
  87. package/dist/models/CollectorStartRequest.js +4 -0
  88. package/dist/models/CreateGroupRequest.d.ts +0 -6
  89. package/dist/models/CreateGroupRequest.js +0 -2
  90. package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
  91. package/dist/models/DeleteLabelGloballyResponse.js +54 -0
  92. package/dist/models/Group.d.ts +0 -6
  93. package/dist/models/Group.js +0 -2
  94. package/dist/models/GroupResponse.d.ts +7 -0
  95. package/dist/models/GroupResponse.js +3 -0
  96. package/dist/models/InspectorStatus.d.ts +0 -17
  97. package/dist/models/InspectorStatus.js +1 -10
  98. package/dist/models/Inventory.d.ts +7 -1
  99. package/dist/models/Inventory.js +5 -3
  100. package/dist/models/InventoryData.d.ts +14 -0
  101. package/dist/models/InventoryData.js +6 -0
  102. package/dist/models/RightsizingClusterListResponse.d.ts +1 -1
  103. package/dist/models/RightsizingClusterListResponse.js +3 -3
  104. package/dist/models/RightsizingClusterResponse.d.ts +39 -0
  105. package/dist/models/RightsizingClusterResponse.js +55 -0
  106. package/dist/models/RightsizingClusterUtilization.d.ts +12 -12
  107. package/dist/models/RightsizingClusterUtilization.js +36 -36
  108. package/dist/models/RightsizingCollectRequest.d.ts +6 -6
  109. package/dist/models/RightsizingCollectRequest.js +12 -12
  110. package/dist/models/RightsizingMetricStats.d.ts +1 -1
  111. package/dist/models/RightsizingMetricStats.js +3 -3
  112. package/dist/models/RightsizingReport.d.ts +6 -6
  113. package/dist/models/RightsizingReport.js +18 -18
  114. package/dist/models/RightsizingReportSummary.d.ts +6 -6
  115. package/dist/models/RightsizingReportSummary.js +18 -18
  116. package/dist/models/StartInspectionRequest.d.ts +8 -1
  117. package/dist/models/StartInspectionRequest.js +5 -0
  118. package/dist/models/UpdateGroupRequest.d.ts +0 -6
  119. package/dist/models/UpdateGroupRequest.js +0 -2
  120. package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
  121. package/dist/models/UpdateLabelVMsRequest.js +50 -0
  122. package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
  123. package/dist/models/VMFilterOptionsResponse.js +66 -0
  124. package/dist/models/VMLabelsResponse.d.ts +38 -0
  125. package/dist/models/VMLabelsResponse.js +54 -0
  126. package/dist/models/VMNIC.d.ts +12 -0
  127. package/dist/models/VMNIC.js +4 -0
  128. package/dist/models/VcenterCredentials.d.ts +12 -0
  129. package/dist/models/VcenterCredentials.js +4 -0
  130. package/dist/models/VirtualMachine.d.ts +30 -6
  131. package/dist/models/VirtualMachine.js +18 -10
  132. package/dist/models/VirtualMachineDetail.d.ts +12 -0
  133. package/dist/models/VirtualMachineDetail.js +4 -0
  134. package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
  135. package/dist/models/VirtualMachineUpdateRequest.js +50 -0
  136. package/dist/models/VmUtilizationDetails.d.ts +12 -12
  137. package/dist/models/VmUtilizationDetails.js +36 -36
  138. package/dist/models/index.d.ts +11 -0
  139. package/dist/models/index.js +11 -0
  140. package/docs/AgentStatus.md +2 -2
  141. package/docs/ApplicationListResponse.md +34 -0
  142. package/docs/ApplicationOverview.md +40 -0
  143. package/docs/ApplicationVM.md +36 -0
  144. package/docs/ClusterFeatures.md +38 -0
  145. package/docs/ClusterUtilization.md +46 -0
  146. package/docs/CollectorStartRequest.md +4 -0
  147. package/docs/CreateGroupRequest.md +0 -2
  148. package/docs/DefaultApi.md +680 -83
  149. package/docs/DeleteLabelGloballyResponse.md +36 -0
  150. package/docs/GetInventory200Response.md +4 -2
  151. package/docs/Group.md +0 -2
  152. package/docs/GroupResponse.md +2 -0
  153. package/docs/InspectorStatus.md +0 -4
  154. package/docs/Inventory.md +4 -2
  155. package/docs/InventoryData.md +4 -0
  156. package/docs/RightsizingClusterListResponse.md +2 -2
  157. package/docs/RightsizingClusterResponse.md +36 -0
  158. package/docs/RightsizingClusterUtilization.md +24 -24
  159. package/docs/RightsizingCollectRequest.md +12 -12
  160. package/docs/RightsizingMetricStats.md +2 -2
  161. package/docs/RightsizingReport.md +12 -12
  162. package/docs/RightsizingReportSummary.md +12 -12
  163. package/docs/StartInspectionRequest.md +3 -1
  164. package/docs/UpdateGroupRequest.md +0 -2
  165. package/docs/UpdateLabelVMsRequest.md +36 -0
  166. package/docs/VMFilterOptionsResponse.md +42 -0
  167. package/docs/VMLabelsResponse.md +36 -0
  168. package/docs/VMNIC.md +4 -0
  169. package/docs/VcenterCredentials.md +4 -0
  170. package/docs/VirtualMachine.md +18 -10
  171. package/docs/VirtualMachineDetail.md +4 -0
  172. package/docs/VirtualMachineUpdateRequest.md +36 -0
  173. package/docs/VmUtilizationDetails.md +24 -24
  174. package/package.json +1 -1
  175. package/src/apis/DefaultApi.ts +806 -118
  176. package/src/models/AgentStatus.ts +4 -4
  177. package/src/models/ApplicationListResponse.ts +74 -0
  178. package/src/models/ApplicationOverview.ts +101 -0
  179. package/src/models/ApplicationVM.ts +75 -0
  180. package/src/models/ClusterFeatures.ts +94 -0
  181. package/src/models/ClusterUtilization.ts +120 -0
  182. package/src/models/CollectorStartRequest.ts +16 -0
  183. package/src/models/CreateGroupRequest.ts +0 -8
  184. package/src/models/DeleteLabelGloballyResponse.ts +75 -0
  185. package/src/models/Group.ts +0 -8
  186. package/src/models/GroupResponse.ts +15 -0
  187. package/src/models/InspectorStatus.ts +1 -28
  188. package/src/models/Inventory.ts +12 -4
  189. package/src/models/InventoryData.ts +30 -0
  190. package/src/models/RightsizingClusterListResponse.ts +4 -4
  191. package/src/models/RightsizingClusterResponse.ts +83 -0
  192. package/src/models/RightsizingClusterUtilization.ts +48 -48
  193. package/src/models/RightsizingCollectRequest.ts +18 -18
  194. package/src/models/RightsizingMetricStats.ts +4 -4
  195. package/src/models/RightsizingReport.ts +24 -24
  196. package/src/models/RightsizingReportSummary.ts +24 -24
  197. package/src/models/StartInspectionRequest.ts +18 -1
  198. package/src/models/UpdateGroupRequest.ts +0 -8
  199. package/src/models/UpdateLabelVMsRequest.ts +73 -0
  200. package/src/models/VMFilterOptionsResponse.ts +102 -0
  201. package/src/models/VMLabelsResponse.ts +75 -0
  202. package/src/models/VMNIC.ts +16 -0
  203. package/src/models/VcenterCredentials.ts +16 -0
  204. package/src/models/VirtualMachine.ts +48 -16
  205. package/src/models/VirtualMachineDetail.ts +16 -0
  206. package/src/models/VirtualMachineUpdateRequest.ts +73 -0
  207. package/src/models/VmUtilizationDetails.ts +48 -48
  208. package/src/models/index.ts +11 -0
@@ -23,11 +23,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
23
23
  import * as runtime from '../runtime.js';
24
24
  import { AgentModeRequestToJSON, } from '../models/AgentModeRequest.js';
25
25
  import { AgentStatusFromJSON, } from '../models/AgentStatus.js';
26
+ import { ApplicationListResponseFromJSON, } from '../models/ApplicationListResponse.js';
26
27
  import { BenchmarkRunFromJSON, } from '../models/BenchmarkRun.js';
27
28
  import { CollectorStartRequestToJSON, } from '../models/CollectorStartRequest.js';
28
29
  import { CollectorStatusFromJSON, } from '../models/CollectorStatus.js';
29
30
  import { CreateGroupRequestToJSON, } from '../models/CreateGroupRequest.js';
30
31
  import { DatastoreDetailFromJSON, } from '../models/DatastoreDetail.js';
32
+ import { DeleteLabelGloballyResponseFromJSON, } from '../models/DeleteLabelGloballyResponse.js';
31
33
  import { ForecastStatsFromJSON, } from '../models/ForecastStats.js';
32
34
  import { ForecasterDatastoresRequestToJSON, } from '../models/ForecasterDatastoresRequest.js';
33
35
  import { ForecasterStartRequestToJSON, } from '../models/ForecasterStartRequest.js';
@@ -40,6 +42,7 @@ import { InspectorStatusFromJSON, } from '../models/InspectorStatus.js';
40
42
  import { PairCapabilityFromJSON, } from '../models/PairCapability.js';
41
43
  import { PairCapabilityRequestToJSON, } from '../models/PairCapabilityRequest.js';
42
44
  import { RightsizingClusterListResponseFromJSON, } from '../models/RightsizingClusterListResponse.js';
45
+ import { RightsizingClusterResponseFromJSON, } from '../models/RightsizingClusterResponse.js';
43
46
  import { RightsizingCollectRequestToJSON, } from '../models/RightsizingCollectRequest.js';
44
47
  import { RightsizingReportFromJSON, } from '../models/RightsizingReport.js';
45
48
  import { RightsizingReportListResponseFromJSON, } from '../models/RightsizingReportListResponse.js';
@@ -47,11 +50,15 @@ import { RightsizingReportSummaryFromJSON, } from '../models/RightsizingReportSu
47
50
  import { StartInspectionRequestToJSON, } from '../models/StartInspectionRequest.js';
48
51
  import { StopForecasterPair202ResponseFromJSON, } from '../models/StopForecasterPair202Response.js';
49
52
  import { UpdateGroupRequestToJSON, } from '../models/UpdateGroupRequest.js';
53
+ import { UpdateLabelVMsRequestToJSON, } from '../models/UpdateLabelVMsRequest.js';
54
+ import { VMFilterOptionsResponseFromJSON, } from '../models/VMFilterOptionsResponse.js';
55
+ import { VMLabelsResponseFromJSON, } from '../models/VMLabelsResponse.js';
50
56
  import { VcenterCredentialsToJSON, } from '../models/VcenterCredentials.js';
51
57
  import { VddkPropertiesFromJSON, } from '../models/VddkProperties.js';
52
58
  import { VersionInfoFromJSON, } from '../models/VersionInfo.js';
53
59
  import { VirtualMachineDetailFromJSON, } from '../models/VirtualMachineDetail.js';
54
60
  import { VirtualMachineListResponseFromJSON, } from '../models/VirtualMachineListResponse.js';
61
+ import { VirtualMachineUpdateRequestToJSON, } from '../models/VirtualMachineUpdateRequest.js';
55
62
  import { VmInspectionStatusFromJSON, } from '../models/VmInspectionStatus.js';
56
63
  import { VmUtilizationDetailsFromJSON, } from '../models/VmUtilizationDetails.js';
57
64
  /**
@@ -174,6 +181,45 @@ export class DefaultApi extends runtime.BaseAPI {
174
181
  yield this.deleteGroupRaw(requestParameters, initOverrides);
175
182
  });
176
183
  }
184
+ /**
185
+ * Creates request options for deleteLabelGlobally without sending the request
186
+ */
187
+ deleteLabelGloballyRequestOpts(requestParameters) {
188
+ return __awaiter(this, void 0, void 0, function* () {
189
+ if (requestParameters['label'] == null) {
190
+ throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling deleteLabelGlobally().');
191
+ }
192
+ const queryParameters = {};
193
+ const headerParameters = {};
194
+ let urlPath = `/vms/labels/{label}`;
195
+ urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
196
+ return {
197
+ path: urlPath,
198
+ method: 'DELETE',
199
+ headers: headerParameters,
200
+ query: queryParameters,
201
+ };
202
+ });
203
+ }
204
+ /**
205
+ * Delete label from all VMs
206
+ */
207
+ deleteLabelGloballyRaw(requestParameters, initOverrides) {
208
+ return __awaiter(this, void 0, void 0, function* () {
209
+ const requestOptions = yield this.deleteLabelGloballyRequestOpts(requestParameters);
210
+ const response = yield this.request(requestOptions, initOverrides);
211
+ return new runtime.JSONApiResponse(response, (jsonValue) => DeleteLabelGloballyResponseFromJSON(jsonValue));
212
+ });
213
+ }
214
+ /**
215
+ * Delete label from all VMs
216
+ */
217
+ deleteLabelGlobally(requestParameters, initOverrides) {
218
+ return __awaiter(this, void 0, void 0, function* () {
219
+ const response = yield this.deleteLabelGloballyRaw(requestParameters, initOverrides);
220
+ return yield response.value();
221
+ });
222
+ }
177
223
  /**
178
224
  * Creates request options for getAgentStatus without sending the request
179
225
  */
@@ -209,6 +255,80 @@ export class DefaultApi extends runtime.BaseAPI {
209
255
  return yield response.value();
210
256
  });
211
257
  }
258
+ /**
259
+ * Creates request options for getApplications without sending the request
260
+ */
261
+ getApplicationsRequestOpts() {
262
+ return __awaiter(this, void 0, void 0, function* () {
263
+ const queryParameters = {};
264
+ const headerParameters = {};
265
+ let urlPath = `/applications`;
266
+ return {
267
+ path: urlPath,
268
+ method: 'GET',
269
+ headers: headerParameters,
270
+ query: queryParameters,
271
+ };
272
+ });
273
+ }
274
+ /**
275
+ * List detected applications running on VMs
276
+ */
277
+ getApplicationsRaw(initOverrides) {
278
+ return __awaiter(this, void 0, void 0, function* () {
279
+ const requestOptions = yield this.getApplicationsRequestOpts();
280
+ const response = yield this.request(requestOptions, initOverrides);
281
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationListResponseFromJSON(jsonValue));
282
+ });
283
+ }
284
+ /**
285
+ * List detected applications running on VMs
286
+ */
287
+ getApplications(initOverrides) {
288
+ return __awaiter(this, void 0, void 0, function* () {
289
+ const response = yield this.getApplicationsRaw(initOverrides);
290
+ return yield response.value();
291
+ });
292
+ }
293
+ /**
294
+ * Creates request options for getClusterUtilization without sending the request
295
+ */
296
+ getClusterUtilizationRequestOpts(requestParameters) {
297
+ return __awaiter(this, void 0, void 0, function* () {
298
+ if (requestParameters['clusterId'] == null) {
299
+ throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().');
300
+ }
301
+ const queryParameters = {};
302
+ const headerParameters = {};
303
+ let urlPath = `/clusters/{cluster_id}/utilization`;
304
+ urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
305
+ return {
306
+ path: urlPath,
307
+ method: 'GET',
308
+ headers: headerParameters,
309
+ query: queryParameters,
310
+ };
311
+ });
312
+ }
313
+ /**
314
+ * Get latest cluster utilization by cluster ID
315
+ */
316
+ getClusterUtilizationRaw(requestParameters, initOverrides) {
317
+ return __awaiter(this, void 0, void 0, function* () {
318
+ const requestOptions = yield this.getClusterUtilizationRequestOpts(requestParameters);
319
+ const response = yield this.request(requestOptions, initOverrides);
320
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
321
+ });
322
+ }
323
+ /**
324
+ * Get latest cluster utilization by cluster ID
325
+ */
326
+ getClusterUtilization(requestParameters, initOverrides) {
327
+ return __awaiter(this, void 0, void 0, function* () {
328
+ const response = yield this.getClusterUtilizationRaw(requestParameters, initOverrides);
329
+ return yield response.value();
330
+ });
331
+ }
212
332
  /**
213
333
  * Creates request options for getCollectorStatus without sending the request
214
334
  */
@@ -460,9 +580,6 @@ export class DefaultApi extends runtime.BaseAPI {
460
580
  if (requestParameters['includeVddk'] != null) {
461
581
  queryParameters['includeVddk'] = requestParameters['includeVddk'];
462
582
  }
463
- if (requestParameters['includeCredentials'] != null) {
464
- queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
465
- }
466
583
  const headerParameters = {};
467
584
  let urlPath = `/inspector`;
468
585
  return {
@@ -570,6 +687,7 @@ export class DefaultApi extends runtime.BaseAPI {
570
687
  }
571
688
  /**
572
689
  * Creates request options for getLatestRightsizingClusters without sending the request
690
+ * @deprecated
573
691
  */
574
692
  getLatestRightsizingClustersRequestOpts(requestParameters) {
575
693
  return __awaiter(this, void 0, void 0, function* () {
@@ -589,6 +707,7 @@ export class DefaultApi extends runtime.BaseAPI {
589
707
  }
590
708
  /**
591
709
  * Get cluster-level utilization aggregates for the latest completed report
710
+ * @deprecated
592
711
  */
593
712
  getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
594
713
  return __awaiter(this, void 0, void 0, function* () {
@@ -599,6 +718,7 @@ export class DefaultApi extends runtime.BaseAPI {
599
718
  }
600
719
  /**
601
720
  * Get cluster-level utilization aggregates for the latest completed report
721
+ * @deprecated
602
722
  */
603
723
  getLatestRightsizingClusters() {
604
724
  return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
@@ -611,13 +731,13 @@ export class DefaultApi extends runtime.BaseAPI {
611
731
  */
612
732
  getRightsizingReportRequestOpts(requestParameters) {
613
733
  return __awaiter(this, void 0, void 0, function* () {
614
- if (requestParameters['id'] == null) {
615
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRightsizingReport().');
734
+ if (requestParameters['reportId'] == null) {
735
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReport().');
616
736
  }
617
737
  const queryParameters = {};
618
738
  const headerParameters = {};
619
- let urlPath = `/rightsizing/{id}`;
620
- urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
739
+ let urlPath = `/rightsizing/{report_id}`;
740
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
621
741
  return {
622
742
  path: urlPath,
623
743
  method: 'GET',
@@ -645,8 +765,52 @@ export class DefaultApi extends runtime.BaseAPI {
645
765
  return yield response.value();
646
766
  });
647
767
  }
768
+ /**
769
+ * Creates request options for getRightsizingReportCluster without sending the request
770
+ */
771
+ getRightsizingReportClusterRequestOpts(requestParameters) {
772
+ return __awaiter(this, void 0, void 0, function* () {
773
+ if (requestParameters['reportId'] == null) {
774
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportCluster().');
775
+ }
776
+ if (requestParameters['clusterId'] == null) {
777
+ throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getRightsizingReportCluster().');
778
+ }
779
+ const queryParameters = {};
780
+ const headerParameters = {};
781
+ let urlPath = `/rightsizing/{report_id}/clusters/{cluster_id}`;
782
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
783
+ urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
784
+ return {
785
+ path: urlPath,
786
+ method: 'GET',
787
+ headers: headerParameters,
788
+ query: queryParameters,
789
+ };
790
+ });
791
+ }
792
+ /**
793
+ * Get utilization for a specific cluster from a specific report
794
+ */
795
+ getRightsizingReportClusterRaw(requestParameters, initOverrides) {
796
+ return __awaiter(this, void 0, void 0, function* () {
797
+ const requestOptions = yield this.getRightsizingReportClusterRequestOpts(requestParameters);
798
+ const response = yield this.request(requestOptions, initOverrides);
799
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
800
+ });
801
+ }
802
+ /**
803
+ * Get utilization for a specific cluster from a specific report
804
+ */
805
+ getRightsizingReportCluster(requestParameters, initOverrides) {
806
+ return __awaiter(this, void 0, void 0, function* () {
807
+ const response = yield this.getRightsizingReportClusterRaw(requestParameters, initOverrides);
808
+ return yield response.value();
809
+ });
810
+ }
648
811
  /**
649
812
  * Creates request options for getRightsizingReportClusters without sending the request
813
+ * @deprecated
650
814
  */
651
815
  getRightsizingReportClustersRequestOpts(requestParameters) {
652
816
  return __awaiter(this, void 0, void 0, function* () {
@@ -670,6 +834,7 @@ export class DefaultApi extends runtime.BaseAPI {
670
834
  }
671
835
  /**
672
836
  * Get cluster-level utilization aggregates for a specific report
837
+ * @deprecated
673
838
  */
674
839
  getRightsizingReportClustersRaw(requestParameters, initOverrides) {
675
840
  return __awaiter(this, void 0, void 0, function* () {
@@ -680,6 +845,7 @@ export class DefaultApi extends runtime.BaseAPI {
680
845
  }
681
846
  /**
682
847
  * Get cluster-level utilization aggregates for a specific report
848
+ * @deprecated
683
849
  */
684
850
  getRightsizingReportClusters(requestParameters, initOverrides) {
685
851
  return __awaiter(this, void 0, void 0, function* () {
@@ -726,6 +892,41 @@ export class DefaultApi extends runtime.BaseAPI {
726
892
  return yield response.value();
727
893
  });
728
894
  }
895
+ /**
896
+ * Creates request options for getVMLabels without sending the request
897
+ */
898
+ getVMLabelsRequestOpts() {
899
+ return __awaiter(this, void 0, void 0, function* () {
900
+ const queryParameters = {};
901
+ const headerParameters = {};
902
+ let urlPath = `/vms/labels`;
903
+ return {
904
+ path: urlPath,
905
+ method: 'GET',
906
+ headers: headerParameters,
907
+ query: queryParameters,
908
+ };
909
+ });
910
+ }
911
+ /**
912
+ * Get all distinct labels in use across VMs
913
+ */
914
+ getVMLabelsRaw(initOverrides) {
915
+ return __awaiter(this, void 0, void 0, function* () {
916
+ const requestOptions = yield this.getVMLabelsRequestOpts();
917
+ const response = yield this.request(requestOptions, initOverrides);
918
+ return new runtime.JSONApiResponse(response, (jsonValue) => VMLabelsResponseFromJSON(jsonValue));
919
+ });
920
+ }
921
+ /**
922
+ * Get all distinct labels in use across VMs
923
+ */
924
+ getVMLabels(initOverrides) {
925
+ return __awaiter(this, void 0, void 0, function* () {
926
+ const response = yield this.getVMLabelsRaw(initOverrides);
927
+ return yield response.value();
928
+ });
929
+ }
729
930
  /**
730
931
  * Creates request options for getVMUtilization without sending the request
731
932
  */
@@ -812,6 +1013,41 @@ export class DefaultApi extends runtime.BaseAPI {
812
1013
  return yield response.value();
813
1014
  });
814
1015
  }
1016
+ /**
1017
+ * Creates request options for getVMsFilterOptions without sending the request
1018
+ */
1019
+ getVMsFilterOptionsRequestOpts() {
1020
+ return __awaiter(this, void 0, void 0, function* () {
1021
+ const queryParameters = {};
1022
+ const headerParameters = {};
1023
+ let urlPath = `/vms/filter-options`;
1024
+ return {
1025
+ path: urlPath,
1026
+ method: 'GET',
1027
+ headers: headerParameters,
1028
+ query: queryParameters,
1029
+ };
1030
+ });
1031
+ }
1032
+ /**
1033
+ * Get distinct filter option values for VMs
1034
+ */
1035
+ getVMsFilterOptionsRaw(initOverrides) {
1036
+ return __awaiter(this, void 0, void 0, function* () {
1037
+ const requestOptions = yield this.getVMsFilterOptionsRequestOpts();
1038
+ const response = yield this.request(requestOptions, initOverrides);
1039
+ return new runtime.JSONApiResponse(response, (jsonValue) => VMFilterOptionsResponseFromJSON(jsonValue));
1040
+ });
1041
+ }
1042
+ /**
1043
+ * Get distinct filter option values for VMs
1044
+ */
1045
+ getVMsFilterOptions(initOverrides) {
1046
+ return __awaiter(this, void 0, void 0, function* () {
1047
+ const response = yield this.getVMsFilterOptionsRaw(initOverrides);
1048
+ return yield response.value();
1049
+ });
1050
+ }
815
1051
  /**
816
1052
  * Creates request options for getVersion without sending the request
817
1053
  */
@@ -891,6 +1127,48 @@ export class DefaultApi extends runtime.BaseAPI {
891
1127
  return yield response.value();
892
1128
  });
893
1129
  }
1130
+ /**
1131
+ * Creates request options for listRightsizingReportClusters without sending the request
1132
+ */
1133
+ listRightsizingReportClustersRequestOpts(requestParameters) {
1134
+ return __awaiter(this, void 0, void 0, function* () {
1135
+ if (requestParameters['reportId'] == null) {
1136
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling listRightsizingReportClusters().');
1137
+ }
1138
+ const queryParameters = {};
1139
+ if (requestParameters['byExpression'] != null) {
1140
+ queryParameters['byExpression'] = requestParameters['byExpression'];
1141
+ }
1142
+ const headerParameters = {};
1143
+ let urlPath = `/rightsizing/{report_id}/clusters`;
1144
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
1145
+ return {
1146
+ path: urlPath,
1147
+ method: 'GET',
1148
+ headers: headerParameters,
1149
+ query: queryParameters,
1150
+ };
1151
+ });
1152
+ }
1153
+ /**
1154
+ * Get cluster-level utilization aggregates for a specific report
1155
+ */
1156
+ listRightsizingReportClustersRaw(requestParameters, initOverrides) {
1157
+ return __awaiter(this, void 0, void 0, function* () {
1158
+ const requestOptions = yield this.listRightsizingReportClustersRequestOpts(requestParameters);
1159
+ const response = yield this.request(requestOptions, initOverrides);
1160
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
1161
+ });
1162
+ }
1163
+ /**
1164
+ * Get cluster-level utilization aggregates for a specific report
1165
+ */
1166
+ listRightsizingReportClusters(requestParameters, initOverrides) {
1167
+ return __awaiter(this, void 0, void 0, function* () {
1168
+ const response = yield this.listRightsizingReportClustersRaw(requestParameters, initOverrides);
1169
+ return yield response.value();
1170
+ });
1171
+ }
894
1172
  /**
895
1173
  * Creates request options for listRightsizingReports without sending the request
896
1174
  */
@@ -1009,45 +1287,6 @@ export class DefaultApi extends runtime.BaseAPI {
1009
1287
  yield this.putForecasterCredentialsRaw(requestParameters, initOverrides);
1010
1288
  });
1011
1289
  }
1012
- /**
1013
- * Creates request options for putInspectorCredentials without sending the request
1014
- */
1015
- putInspectorCredentialsRequestOpts(requestParameters) {
1016
- return __awaiter(this, void 0, void 0, function* () {
1017
- if (requestParameters['vcenterCredentials'] == null) {
1018
- throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putInspectorCredentials().');
1019
- }
1020
- const queryParameters = {};
1021
- const headerParameters = {};
1022
- headerParameters['Content-Type'] = 'application/json';
1023
- let urlPath = `/inspector/credentials`;
1024
- return {
1025
- path: urlPath,
1026
- method: 'PUT',
1027
- headers: headerParameters,
1028
- query: queryParameters,
1029
- body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
1030
- };
1031
- });
1032
- }
1033
- /**
1034
- * Set or replace inspector credentials
1035
- */
1036
- putInspectorCredentialsRaw(requestParameters, initOverrides) {
1037
- return __awaiter(this, void 0, void 0, function* () {
1038
- const requestOptions = yield this.putInspectorCredentialsRequestOpts(requestParameters);
1039
- const response = yield this.request(requestOptions, initOverrides);
1040
- return new runtime.VoidApiResponse(response);
1041
- });
1042
- }
1043
- /**
1044
- * Set or replace inspector credentials
1045
- */
1046
- putInspectorCredentials(requestParameters, initOverrides) {
1047
- return __awaiter(this, void 0, void 0, function* () {
1048
- yield this.putInspectorCredentialsRaw(requestParameters, initOverrides);
1049
- });
1050
- }
1051
1290
  /**
1052
1291
  * Creates request options for putInspectorVddk without sending the request
1053
1292
  */
@@ -1537,4 +1776,129 @@ export class DefaultApi extends runtime.BaseAPI {
1537
1776
  return yield response.value();
1538
1777
  });
1539
1778
  }
1779
+ /**
1780
+ * Creates request options for updateLabelVMs without sending the request
1781
+ */
1782
+ updateLabelVMsRequestOpts(requestParameters) {
1783
+ return __awaiter(this, void 0, void 0, function* () {
1784
+ if (requestParameters['label'] == null) {
1785
+ throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling updateLabelVMs().');
1786
+ }
1787
+ if (requestParameters['updateLabelVMsRequest'] == null) {
1788
+ throw new runtime.RequiredError('updateLabelVMsRequest', 'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLabelVMs().');
1789
+ }
1790
+ const queryParameters = {};
1791
+ const headerParameters = {};
1792
+ headerParameters['Content-Type'] = 'application/json';
1793
+ let urlPath = `/vms/labels/{label}`;
1794
+ urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
1795
+ return {
1796
+ path: urlPath,
1797
+ method: 'PATCH',
1798
+ headers: headerParameters,
1799
+ query: queryParameters,
1800
+ body: UpdateLabelVMsRequestToJSON(requestParameters['updateLabelVMsRequest']),
1801
+ };
1802
+ });
1803
+ }
1804
+ /**
1805
+ * Modify label VM membership (add/remove label to/from VMs)
1806
+ */
1807
+ updateLabelVMsRaw(requestParameters, initOverrides) {
1808
+ return __awaiter(this, void 0, void 0, function* () {
1809
+ const requestOptions = yield this.updateLabelVMsRequestOpts(requestParameters);
1810
+ const response = yield this.request(requestOptions, initOverrides);
1811
+ return new runtime.VoidApiResponse(response);
1812
+ });
1813
+ }
1814
+ /**
1815
+ * Modify label VM membership (add/remove label to/from VMs)
1816
+ */
1817
+ updateLabelVMs(requestParameters, initOverrides) {
1818
+ return __awaiter(this, void 0, void 0, function* () {
1819
+ yield this.updateLabelVMsRaw(requestParameters, initOverrides);
1820
+ });
1821
+ }
1822
+ /**
1823
+ * Creates request options for updateVM without sending the request
1824
+ */
1825
+ updateVMRequestOpts(requestParameters) {
1826
+ return __awaiter(this, void 0, void 0, function* () {
1827
+ if (requestParameters['id'] == null) {
1828
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateVM().');
1829
+ }
1830
+ if (requestParameters['virtualMachineUpdateRequest'] == null) {
1831
+ throw new runtime.RequiredError('virtualMachineUpdateRequest', 'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateVM().');
1832
+ }
1833
+ const queryParameters = {};
1834
+ const headerParameters = {};
1835
+ headerParameters['Content-Type'] = 'application/json';
1836
+ let urlPath = `/vms/{id}`;
1837
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1838
+ return {
1839
+ path: urlPath,
1840
+ method: 'PATCH',
1841
+ headers: headerParameters,
1842
+ query: queryParameters,
1843
+ body: VirtualMachineUpdateRequestToJSON(requestParameters['virtualMachineUpdateRequest']),
1844
+ };
1845
+ });
1846
+ }
1847
+ /**
1848
+ * Update VM properties
1849
+ */
1850
+ updateVMRaw(requestParameters, initOverrides) {
1851
+ return __awaiter(this, void 0, void 0, function* () {
1852
+ const requestOptions = yield this.updateVMRequestOpts(requestParameters);
1853
+ const response = yield this.request(requestOptions, initOverrides);
1854
+ return new runtime.VoidApiResponse(response);
1855
+ });
1856
+ }
1857
+ /**
1858
+ * Update VM properties
1859
+ */
1860
+ updateVM(requestParameters, initOverrides) {
1861
+ return __awaiter(this, void 0, void 0, function* () {
1862
+ yield this.updateVMRaw(requestParameters, initOverrides);
1863
+ });
1864
+ }
1865
+ /**
1866
+ * Creates request options for validateInspectorCredentials without sending the request
1867
+ */
1868
+ validateInspectorCredentialsRequestOpts(requestParameters) {
1869
+ return __awaiter(this, void 0, void 0, function* () {
1870
+ if (requestParameters['vcenterCredentials'] == null) {
1871
+ throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling validateInspectorCredentials().');
1872
+ }
1873
+ const queryParameters = {};
1874
+ const headerParameters = {};
1875
+ headerParameters['Content-Type'] = 'application/json';
1876
+ let urlPath = `/inspector/credentials`;
1877
+ return {
1878
+ path: urlPath,
1879
+ method: 'POST',
1880
+ headers: headerParameters,
1881
+ query: queryParameters,
1882
+ body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
1883
+ };
1884
+ });
1885
+ }
1886
+ /**
1887
+ * Validate vCenter credentials for inspector
1888
+ */
1889
+ validateInspectorCredentialsRaw(requestParameters, initOverrides) {
1890
+ return __awaiter(this, void 0, void 0, function* () {
1891
+ const requestOptions = yield this.validateInspectorCredentialsRequestOpts(requestParameters);
1892
+ const response = yield this.request(requestOptions, initOverrides);
1893
+ return new runtime.VoidApiResponse(response);
1894
+ });
1895
+ }
1896
+ /**
1897
+ * Validate vCenter credentials for inspector
1898
+ */
1899
+ validateInspectorCredentials(requestParameters, initOverrides) {
1900
+ return __awaiter(this, void 0, void 0, function* () {
1901
+ yield this.validateInspectorCredentialsRaw(requestParameters, initOverrides);
1902
+ });
1903
+ }
1540
1904
  }
@@ -26,7 +26,7 @@ export interface AgentStatus {
26
26
  * @type {AgentStatusConsoleConnectionEnum}
27
27
  * @memberof AgentStatus
28
28
  */
29
- consoleConnection: AgentStatusConsoleConnectionEnum;
29
+ console_connection: AgentStatusConsoleConnectionEnum;
30
30
  /**
31
31
  * Connection error description
32
32
  * @type {string}
@@ -31,7 +31,7 @@ export const AgentStatusConsoleConnectionEnum = {
31
31
  export function instanceOfAgentStatus(value) {
32
32
  if (!('mode' in value) || value['mode'] === undefined)
33
33
  return false;
34
- if (!('consoleConnection' in value) || value['consoleConnection'] === undefined)
34
+ if (!('console_connection' in value) || value['console_connection'] === undefined)
35
35
  return false;
36
36
  return true;
37
37
  }
@@ -44,7 +44,7 @@ export function AgentStatusFromJSONTyped(json, ignoreDiscriminator) {
44
44
  }
45
45
  return {
46
46
  'mode': json['mode'],
47
- 'consoleConnection': json['console_connection'],
47
+ 'console_connection': json['console_connection'],
48
48
  'error': json['error'] == null ? undefined : json['error'],
49
49
  };
50
50
  }
@@ -57,7 +57,7 @@ export function AgentStatusToJSONTyped(value, ignoreDiscriminator = false) {
57
57
  }
58
58
  return {
59
59
  'mode': value['mode'],
60
- 'console_connection': value['consoleConnection'],
60
+ 'console_connection': value['console_connection'],
61
61
  'error': value['error'],
62
62
  };
63
63
  }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ApplicationOverview } from './ApplicationOverview.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApplicationListResponse
17
+ */
18
+ export interface ApplicationListResponse {
19
+ /**
20
+ *
21
+ * @type {Array<ApplicationOverview>}
22
+ * @memberof ApplicationListResponse
23
+ */
24
+ applications: Array<ApplicationOverview>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ApplicationListResponse interface.
28
+ */
29
+ export declare function instanceOfApplicationListResponse(value: object): value is ApplicationListResponse;
30
+ export declare function ApplicationListResponseFromJSON(json: any): ApplicationListResponse;
31
+ export declare function ApplicationListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationListResponse;
32
+ export declare function ApplicationListResponseToJSON(json: any): ApplicationListResponse;
33
+ export declare function ApplicationListResponseToJSONTyped(value?: ApplicationListResponse | null, ignoreDiscriminator?: boolean): any;