@openshift-migration-advisor/agent-sdk 0.12.0-d5edcd6935f2 → 0.12.0-e4c04f972747

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 (184) 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 -38
  5. package/dist/apis/DefaultApi.js +410 -43
  6. package/dist/esm/apis/DefaultApi.d.ts +369 -38
  7. package/dist/esm/apis/DefaultApi.js +410 -43
  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/CreateGroupRequest.d.ts +0 -6
  21. package/dist/esm/models/CreateGroupRequest.js +0 -2
  22. package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
  23. package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
  24. package/dist/esm/models/Group.d.ts +0 -6
  25. package/dist/esm/models/Group.js +0 -2
  26. package/dist/esm/models/GroupResponse.d.ts +7 -0
  27. package/dist/esm/models/GroupResponse.js +3 -0
  28. package/dist/esm/models/Inventory.d.ts +7 -1
  29. package/dist/esm/models/Inventory.js +5 -3
  30. package/dist/esm/models/InventoryData.d.ts +14 -0
  31. package/dist/esm/models/InventoryData.js +6 -0
  32. package/dist/esm/models/RightsizingClusterListResponse.d.ts +1 -1
  33. package/dist/esm/models/RightsizingClusterListResponse.js +3 -3
  34. package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
  35. package/dist/esm/models/RightsizingClusterResponse.js +48 -0
  36. package/dist/esm/models/RightsizingClusterUtilization.d.ts +12 -12
  37. package/dist/esm/models/RightsizingClusterUtilization.js +36 -36
  38. package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
  39. package/dist/esm/models/RightsizingCollectRequest.js +12 -12
  40. package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
  41. package/dist/esm/models/RightsizingMetricStats.js +3 -3
  42. package/dist/esm/models/RightsizingReport.d.ts +6 -6
  43. package/dist/esm/models/RightsizingReport.js +18 -18
  44. package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
  45. package/dist/esm/models/RightsizingReportSummary.js +18 -18
  46. package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
  47. package/dist/esm/models/UpdateGroupRequest.js +0 -2
  48. package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
  49. package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
  50. package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
  51. package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
  52. package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
  53. package/dist/esm/models/VMLabelsResponse.js +47 -0
  54. package/dist/esm/models/VMNIC.d.ts +12 -0
  55. package/dist/esm/models/VMNIC.js +4 -0
  56. package/dist/esm/models/VirtualMachine.d.ts +30 -6
  57. package/dist/esm/models/VirtualMachine.js +18 -10
  58. package/dist/esm/models/VirtualMachineDetail.d.ts +12 -0
  59. package/dist/esm/models/VirtualMachineDetail.js +4 -0
  60. package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
  61. package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
  62. package/dist/esm/models/VmUtilizationDetails.d.ts +12 -12
  63. package/dist/esm/models/VmUtilizationDetails.js +36 -36
  64. package/dist/esm/models/index.d.ts +11 -0
  65. package/dist/esm/models/index.js +11 -0
  66. package/dist/models/AgentStatus.d.ts +1 -1
  67. package/dist/models/AgentStatus.js +3 -3
  68. package/dist/models/ApplicationListResponse.d.ts +33 -0
  69. package/dist/models/ApplicationListResponse.js +51 -0
  70. package/dist/models/ApplicationOverview.d.ts +51 -0
  71. package/dist/models/ApplicationOverview.js +63 -0
  72. package/dist/models/ApplicationVM.d.ts +38 -0
  73. package/dist/models/ApplicationVM.js +54 -0
  74. package/dist/models/ClusterFeatures.d.ts +54 -0
  75. package/dist/models/ClusterFeatures.js +62 -0
  76. package/dist/models/ClusterUtilization.d.ts +68 -0
  77. package/dist/models/ClusterUtilization.js +74 -0
  78. package/dist/models/CreateGroupRequest.d.ts +0 -6
  79. package/dist/models/CreateGroupRequest.js +0 -2
  80. package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
  81. package/dist/models/DeleteLabelGloballyResponse.js +54 -0
  82. package/dist/models/Group.d.ts +0 -6
  83. package/dist/models/Group.js +0 -2
  84. package/dist/models/GroupResponse.d.ts +7 -0
  85. package/dist/models/GroupResponse.js +3 -0
  86. package/dist/models/Inventory.d.ts +7 -1
  87. package/dist/models/Inventory.js +5 -3
  88. package/dist/models/InventoryData.d.ts +14 -0
  89. package/dist/models/InventoryData.js +6 -0
  90. package/dist/models/RightsizingClusterListResponse.d.ts +1 -1
  91. package/dist/models/RightsizingClusterListResponse.js +3 -3
  92. package/dist/models/RightsizingClusterResponse.d.ts +39 -0
  93. package/dist/models/RightsizingClusterResponse.js +55 -0
  94. package/dist/models/RightsizingClusterUtilization.d.ts +12 -12
  95. package/dist/models/RightsizingClusterUtilization.js +36 -36
  96. package/dist/models/RightsizingCollectRequest.d.ts +6 -6
  97. package/dist/models/RightsizingCollectRequest.js +12 -12
  98. package/dist/models/RightsizingMetricStats.d.ts +1 -1
  99. package/dist/models/RightsizingMetricStats.js +3 -3
  100. package/dist/models/RightsizingReport.d.ts +6 -6
  101. package/dist/models/RightsizingReport.js +18 -18
  102. package/dist/models/RightsizingReportSummary.d.ts +6 -6
  103. package/dist/models/RightsizingReportSummary.js +18 -18
  104. package/dist/models/UpdateGroupRequest.d.ts +0 -6
  105. package/dist/models/UpdateGroupRequest.js +0 -2
  106. package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
  107. package/dist/models/UpdateLabelVMsRequest.js +50 -0
  108. package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
  109. package/dist/models/VMFilterOptionsResponse.js +66 -0
  110. package/dist/models/VMLabelsResponse.d.ts +38 -0
  111. package/dist/models/VMLabelsResponse.js +54 -0
  112. package/dist/models/VMNIC.d.ts +12 -0
  113. package/dist/models/VMNIC.js +4 -0
  114. package/dist/models/VirtualMachine.d.ts +30 -6
  115. package/dist/models/VirtualMachine.js +18 -10
  116. package/dist/models/VirtualMachineDetail.d.ts +12 -0
  117. package/dist/models/VirtualMachineDetail.js +4 -0
  118. package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
  119. package/dist/models/VirtualMachineUpdateRequest.js +50 -0
  120. package/dist/models/VmUtilizationDetails.d.ts +12 -12
  121. package/dist/models/VmUtilizationDetails.js +36 -36
  122. package/dist/models/index.d.ts +11 -0
  123. package/dist/models/index.js +11 -0
  124. package/docs/AgentStatus.md +2 -2
  125. package/docs/ApplicationListResponse.md +34 -0
  126. package/docs/ApplicationOverview.md +40 -0
  127. package/docs/ApplicationVM.md +36 -0
  128. package/docs/ClusterFeatures.md +38 -0
  129. package/docs/ClusterUtilization.md +46 -0
  130. package/docs/CreateGroupRequest.md +0 -2
  131. package/docs/DefaultApi.md +679 -79
  132. package/docs/DeleteLabelGloballyResponse.md +36 -0
  133. package/docs/GetInventory200Response.md +4 -2
  134. package/docs/Group.md +0 -2
  135. package/docs/GroupResponse.md +2 -0
  136. package/docs/Inventory.md +4 -2
  137. package/docs/InventoryData.md +4 -0
  138. package/docs/RightsizingClusterListResponse.md +2 -2
  139. package/docs/RightsizingClusterResponse.md +36 -0
  140. package/docs/RightsizingClusterUtilization.md +24 -24
  141. package/docs/RightsizingCollectRequest.md +12 -12
  142. package/docs/RightsizingMetricStats.md +2 -2
  143. package/docs/RightsizingReport.md +12 -12
  144. package/docs/RightsizingReportSummary.md +12 -12
  145. package/docs/UpdateGroupRequest.md +0 -2
  146. package/docs/UpdateLabelVMsRequest.md +36 -0
  147. package/docs/VMFilterOptionsResponse.md +42 -0
  148. package/docs/VMLabelsResponse.md +36 -0
  149. package/docs/VMNIC.md +4 -0
  150. package/docs/VirtualMachine.md +18 -10
  151. package/docs/VirtualMachineDetail.md +4 -0
  152. package/docs/VirtualMachineUpdateRequest.md +36 -0
  153. package/docs/VmUtilizationDetails.md +24 -24
  154. package/package.json +1 -1
  155. package/src/apis/DefaultApi.ts +806 -111
  156. package/src/models/AgentStatus.ts +4 -4
  157. package/src/models/ApplicationListResponse.ts +74 -0
  158. package/src/models/ApplicationOverview.ts +101 -0
  159. package/src/models/ApplicationVM.ts +75 -0
  160. package/src/models/ClusterFeatures.ts +94 -0
  161. package/src/models/ClusterUtilization.ts +120 -0
  162. package/src/models/CreateGroupRequest.ts +0 -8
  163. package/src/models/DeleteLabelGloballyResponse.ts +75 -0
  164. package/src/models/Group.ts +0 -8
  165. package/src/models/GroupResponse.ts +15 -0
  166. package/src/models/Inventory.ts +12 -4
  167. package/src/models/InventoryData.ts +30 -0
  168. package/src/models/RightsizingClusterListResponse.ts +4 -4
  169. package/src/models/RightsizingClusterResponse.ts +83 -0
  170. package/src/models/RightsizingClusterUtilization.ts +48 -48
  171. package/src/models/RightsizingCollectRequest.ts +18 -18
  172. package/src/models/RightsizingMetricStats.ts +4 -4
  173. package/src/models/RightsizingReport.ts +24 -24
  174. package/src/models/RightsizingReportSummary.ts +24 -24
  175. package/src/models/UpdateGroupRequest.ts +0 -8
  176. package/src/models/UpdateLabelVMsRequest.ts +73 -0
  177. package/src/models/VMFilterOptionsResponse.ts +102 -0
  178. package/src/models/VMLabelsResponse.ts +75 -0
  179. package/src/models/VMNIC.ts +16 -0
  180. package/src/models/VirtualMachine.ts +48 -16
  181. package/src/models/VirtualMachineDetail.ts +16 -0
  182. package/src/models/VirtualMachineUpdateRequest.ts +73 -0
  183. package/src/models/VmUtilizationDetails.ts +48 -48
  184. 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
  */
@@ -567,6 +687,7 @@ export class DefaultApi extends runtime.BaseAPI {
567
687
  }
568
688
  /**
569
689
  * Creates request options for getLatestRightsizingClusters without sending the request
690
+ * @deprecated
570
691
  */
571
692
  getLatestRightsizingClustersRequestOpts(requestParameters) {
572
693
  return __awaiter(this, void 0, void 0, function* () {
@@ -586,6 +707,7 @@ export class DefaultApi extends runtime.BaseAPI {
586
707
  }
587
708
  /**
588
709
  * Get cluster-level utilization aggregates for the latest completed report
710
+ * @deprecated
589
711
  */
590
712
  getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
591
713
  return __awaiter(this, void 0, void 0, function* () {
@@ -596,6 +718,7 @@ export class DefaultApi extends runtime.BaseAPI {
596
718
  }
597
719
  /**
598
720
  * Get cluster-level utilization aggregates for the latest completed report
721
+ * @deprecated
599
722
  */
600
723
  getLatestRightsizingClusters() {
601
724
  return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
@@ -608,13 +731,13 @@ export class DefaultApi extends runtime.BaseAPI {
608
731
  */
609
732
  getRightsizingReportRequestOpts(requestParameters) {
610
733
  return __awaiter(this, void 0, void 0, function* () {
611
- if (requestParameters['id'] == null) {
612
- 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().');
613
736
  }
614
737
  const queryParameters = {};
615
738
  const headerParameters = {};
616
- let urlPath = `/rightsizing/{id}`;
617
- urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
739
+ let urlPath = `/rightsizing/{report_id}`;
740
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
618
741
  return {
619
742
  path: urlPath,
620
743
  method: 'GET',
@@ -642,8 +765,52 @@ export class DefaultApi extends runtime.BaseAPI {
642
765
  return yield response.value();
643
766
  });
644
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
+ }
645
811
  /**
646
812
  * Creates request options for getRightsizingReportClusters without sending the request
813
+ * @deprecated
647
814
  */
648
815
  getRightsizingReportClustersRequestOpts(requestParameters) {
649
816
  return __awaiter(this, void 0, void 0, function* () {
@@ -667,6 +834,7 @@ export class DefaultApi extends runtime.BaseAPI {
667
834
  }
668
835
  /**
669
836
  * Get cluster-level utilization aggregates for a specific report
837
+ * @deprecated
670
838
  */
671
839
  getRightsizingReportClustersRaw(requestParameters, initOverrides) {
672
840
  return __awaiter(this, void 0, void 0, function* () {
@@ -677,6 +845,7 @@ export class DefaultApi extends runtime.BaseAPI {
677
845
  }
678
846
  /**
679
847
  * Get cluster-level utilization aggregates for a specific report
848
+ * @deprecated
680
849
  */
681
850
  getRightsizingReportClusters(requestParameters, initOverrides) {
682
851
  return __awaiter(this, void 0, void 0, function* () {
@@ -723,6 +892,41 @@ export class DefaultApi extends runtime.BaseAPI {
723
892
  return yield response.value();
724
893
  });
725
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
+ }
726
930
  /**
727
931
  * Creates request options for getVMUtilization without sending the request
728
932
  */
@@ -809,6 +1013,41 @@ export class DefaultApi extends runtime.BaseAPI {
809
1013
  return yield response.value();
810
1014
  });
811
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
+ }
812
1051
  /**
813
1052
  * Creates request options for getVersion without sending the request
814
1053
  */
@@ -888,6 +1127,48 @@ export class DefaultApi extends runtime.BaseAPI {
888
1127
  return yield response.value();
889
1128
  });
890
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
+ }
891
1172
  /**
892
1173
  * Creates request options for listRightsizingReports without sending the request
893
1174
  */
@@ -1006,45 +1287,6 @@ export class DefaultApi extends runtime.BaseAPI {
1006
1287
  yield this.putForecasterCredentialsRaw(requestParameters, initOverrides);
1007
1288
  });
1008
1289
  }
1009
- /**
1010
- * Creates request options for putInspectorCredentials without sending the request
1011
- */
1012
- putInspectorCredentialsRequestOpts(requestParameters) {
1013
- return __awaiter(this, void 0, void 0, function* () {
1014
- if (requestParameters['vcenterCredentials'] == null) {
1015
- throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putInspectorCredentials().');
1016
- }
1017
- const queryParameters = {};
1018
- const headerParameters = {};
1019
- headerParameters['Content-Type'] = 'application/json';
1020
- let urlPath = `/inspector/credentials`;
1021
- return {
1022
- path: urlPath,
1023
- method: 'PUT',
1024
- headers: headerParameters,
1025
- query: queryParameters,
1026
- body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
1027
- };
1028
- });
1029
- }
1030
- /**
1031
- * Set or replace inspector credentials
1032
- */
1033
- putInspectorCredentialsRaw(requestParameters, initOverrides) {
1034
- return __awaiter(this, void 0, void 0, function* () {
1035
- const requestOptions = yield this.putInspectorCredentialsRequestOpts(requestParameters);
1036
- const response = yield this.request(requestOptions, initOverrides);
1037
- return new runtime.VoidApiResponse(response);
1038
- });
1039
- }
1040
- /**
1041
- * Set or replace inspector credentials
1042
- */
1043
- putInspectorCredentials(requestParameters, initOverrides) {
1044
- return __awaiter(this, void 0, void 0, function* () {
1045
- yield this.putInspectorCredentialsRaw(requestParameters, initOverrides);
1046
- });
1047
- }
1048
1290
  /**
1049
1291
  * Creates request options for putInspectorVddk without sending the request
1050
1292
  */
@@ -1534,4 +1776,129 @@ export class DefaultApi extends runtime.BaseAPI {
1534
1776
  return yield response.value();
1535
1777
  });
1536
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
+ }
1537
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;