@openshift-migration-advisor/agent-sdk 0.12.0-914fe80385ee → 0.12.0-a3d6bdc8bce2

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 (171) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +19 -4
  3. package/dist/apis/DefaultApi.d.ts +303 -41
  4. package/dist/apis/DefaultApi.js +335 -46
  5. package/dist/esm/apis/DefaultApi.d.ts +303 -41
  6. package/dist/esm/apis/DefaultApi.js +335 -46
  7. package/dist/esm/models/AgentStatus.d.ts +1 -1
  8. package/dist/esm/models/AgentStatus.js +3 -3
  9. package/dist/esm/models/ClusterFeatures.d.ts +54 -0
  10. package/dist/esm/models/ClusterFeatures.js +54 -0
  11. package/dist/esm/models/ClusterUtilization.d.ts +68 -0
  12. package/dist/esm/models/ClusterUtilization.js +67 -0
  13. package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
  14. package/dist/esm/models/CreateGroupRequest.js +0 -2
  15. package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
  16. package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
  17. package/dist/esm/models/Group.d.ts +0 -6
  18. package/dist/esm/models/Group.js +0 -2
  19. package/dist/esm/models/GroupResponse.d.ts +7 -0
  20. package/dist/esm/models/GroupResponse.js +3 -0
  21. package/dist/esm/models/InspectorStatus.d.ts +0 -17
  22. package/dist/esm/models/InspectorStatus.js +1 -10
  23. package/dist/esm/models/Inventory.d.ts +7 -1
  24. package/dist/esm/models/Inventory.js +5 -3
  25. package/dist/esm/models/InventoryData.d.ts +14 -0
  26. package/dist/esm/models/InventoryData.js +6 -0
  27. package/dist/esm/models/RightsizingClusterListResponse.d.ts +1 -1
  28. package/dist/esm/models/RightsizingClusterListResponse.js +3 -3
  29. package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
  30. package/dist/esm/models/RightsizingClusterResponse.js +48 -0
  31. package/dist/esm/models/RightsizingClusterUtilization.d.ts +12 -12
  32. package/dist/esm/models/RightsizingClusterUtilization.js +36 -36
  33. package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
  34. package/dist/esm/models/RightsizingCollectRequest.js +12 -12
  35. package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
  36. package/dist/esm/models/RightsizingMetricStats.js +3 -3
  37. package/dist/esm/models/RightsizingReport.d.ts +6 -6
  38. package/dist/esm/models/RightsizingReport.js +18 -18
  39. package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
  40. package/dist/esm/models/RightsizingReportSummary.js +18 -18
  41. package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
  42. package/dist/esm/models/StartInspectionRequest.js +5 -0
  43. package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
  44. package/dist/esm/models/UpdateGroupRequest.js +0 -2
  45. package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
  46. package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
  47. package/dist/esm/models/VMFilterOptionsResponse.d.ts +50 -0
  48. package/dist/esm/models/VMFilterOptionsResponse.js +55 -0
  49. package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
  50. package/dist/esm/models/VMLabelsResponse.js +47 -0
  51. package/dist/esm/models/VirtualMachine.d.ts +18 -6
  52. package/dist/esm/models/VirtualMachine.js +14 -10
  53. package/dist/esm/models/VirtualMachineDetail.d.ts +19 -0
  54. package/dist/esm/models/VirtualMachineDetail.js +7 -0
  55. package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
  56. package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
  57. package/dist/esm/models/VmUtilizationDetails.d.ts +12 -12
  58. package/dist/esm/models/VmUtilizationDetails.js +36 -36
  59. package/dist/esm/models/index.d.ts +8 -0
  60. package/dist/esm/models/index.js +8 -0
  61. package/dist/models/AgentStatus.d.ts +1 -1
  62. package/dist/models/AgentStatus.js +3 -3
  63. package/dist/models/ClusterFeatures.d.ts +54 -0
  64. package/dist/models/ClusterFeatures.js +62 -0
  65. package/dist/models/ClusterUtilization.d.ts +68 -0
  66. package/dist/models/ClusterUtilization.js +74 -0
  67. package/dist/models/CreateGroupRequest.d.ts +0 -6
  68. package/dist/models/CreateGroupRequest.js +0 -2
  69. package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
  70. package/dist/models/DeleteLabelGloballyResponse.js +54 -0
  71. package/dist/models/Group.d.ts +0 -6
  72. package/dist/models/Group.js +0 -2
  73. package/dist/models/GroupResponse.d.ts +7 -0
  74. package/dist/models/GroupResponse.js +3 -0
  75. package/dist/models/InspectorStatus.d.ts +0 -17
  76. package/dist/models/InspectorStatus.js +1 -10
  77. package/dist/models/Inventory.d.ts +7 -1
  78. package/dist/models/Inventory.js +5 -3
  79. package/dist/models/InventoryData.d.ts +14 -0
  80. package/dist/models/InventoryData.js +6 -0
  81. package/dist/models/RightsizingClusterListResponse.d.ts +1 -1
  82. package/dist/models/RightsizingClusterListResponse.js +3 -3
  83. package/dist/models/RightsizingClusterResponse.d.ts +39 -0
  84. package/dist/models/RightsizingClusterResponse.js +55 -0
  85. package/dist/models/RightsizingClusterUtilization.d.ts +12 -12
  86. package/dist/models/RightsizingClusterUtilization.js +36 -36
  87. package/dist/models/RightsizingCollectRequest.d.ts +6 -6
  88. package/dist/models/RightsizingCollectRequest.js +12 -12
  89. package/dist/models/RightsizingMetricStats.d.ts +1 -1
  90. package/dist/models/RightsizingMetricStats.js +3 -3
  91. package/dist/models/RightsizingReport.d.ts +6 -6
  92. package/dist/models/RightsizingReport.js +18 -18
  93. package/dist/models/RightsizingReportSummary.d.ts +6 -6
  94. package/dist/models/RightsizingReportSummary.js +18 -18
  95. package/dist/models/StartInspectionRequest.d.ts +8 -1
  96. package/dist/models/StartInspectionRequest.js +5 -0
  97. package/dist/models/UpdateGroupRequest.d.ts +0 -6
  98. package/dist/models/UpdateGroupRequest.js +0 -2
  99. package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
  100. package/dist/models/UpdateLabelVMsRequest.js +50 -0
  101. package/dist/models/VMFilterOptionsResponse.d.ts +50 -0
  102. package/dist/models/VMFilterOptionsResponse.js +62 -0
  103. package/dist/models/VMLabelsResponse.d.ts +38 -0
  104. package/dist/models/VMLabelsResponse.js +54 -0
  105. package/dist/models/VirtualMachine.d.ts +18 -6
  106. package/dist/models/VirtualMachine.js +14 -10
  107. package/dist/models/VirtualMachineDetail.d.ts +19 -0
  108. package/dist/models/VirtualMachineDetail.js +7 -0
  109. package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
  110. package/dist/models/VirtualMachineUpdateRequest.js +50 -0
  111. package/dist/models/VmUtilizationDetails.d.ts +12 -12
  112. package/dist/models/VmUtilizationDetails.js +36 -36
  113. package/dist/models/index.d.ts +8 -0
  114. package/dist/models/index.js +8 -0
  115. package/docs/AgentStatus.md +2 -2
  116. package/docs/ClusterFeatures.md +38 -0
  117. package/docs/ClusterUtilization.md +46 -0
  118. package/docs/CreateGroupRequest.md +0 -2
  119. package/docs/DefaultApi.md +529 -60
  120. package/docs/DeleteLabelGloballyResponse.md +36 -0
  121. package/docs/GetInventory200Response.md +4 -2
  122. package/docs/Group.md +0 -2
  123. package/docs/GroupResponse.md +2 -0
  124. package/docs/InspectorStatus.md +0 -4
  125. package/docs/Inventory.md +4 -2
  126. package/docs/InventoryData.md +4 -0
  127. package/docs/RightsizingClusterListResponse.md +2 -2
  128. package/docs/RightsizingClusterResponse.md +36 -0
  129. package/docs/RightsizingClusterUtilization.md +24 -24
  130. package/docs/RightsizingCollectRequest.md +12 -12
  131. package/docs/RightsizingMetricStats.md +2 -2
  132. package/docs/RightsizingReport.md +12 -12
  133. package/docs/RightsizingReportSummary.md +12 -12
  134. package/docs/StartInspectionRequest.md +3 -1
  135. package/docs/UpdateGroupRequest.md +0 -2
  136. package/docs/UpdateLabelVMsRequest.md +36 -0
  137. package/docs/VMFilterOptionsResponse.md +40 -0
  138. package/docs/VMLabelsResponse.md +36 -0
  139. package/docs/VirtualMachine.md +14 -10
  140. package/docs/VirtualMachineDetail.md +6 -0
  141. package/docs/VirtualMachineUpdateRequest.md +36 -0
  142. package/docs/VmUtilizationDetails.md +24 -24
  143. package/package.json +1 -1
  144. package/src/apis/DefaultApi.ts +641 -88
  145. package/src/models/AgentStatus.ts +4 -4
  146. package/src/models/ClusterFeatures.ts +94 -0
  147. package/src/models/ClusterUtilization.ts +120 -0
  148. package/src/models/CreateGroupRequest.ts +0 -8
  149. package/src/models/DeleteLabelGloballyResponse.ts +75 -0
  150. package/src/models/Group.ts +0 -8
  151. package/src/models/GroupResponse.ts +15 -0
  152. package/src/models/InspectorStatus.ts +1 -28
  153. package/src/models/Inventory.ts +12 -4
  154. package/src/models/InventoryData.ts +30 -0
  155. package/src/models/RightsizingClusterListResponse.ts +4 -4
  156. package/src/models/RightsizingClusterResponse.ts +83 -0
  157. package/src/models/RightsizingClusterUtilization.ts +48 -48
  158. package/src/models/RightsizingCollectRequest.ts +18 -18
  159. package/src/models/RightsizingMetricStats.ts +4 -4
  160. package/src/models/RightsizingReport.ts +24 -24
  161. package/src/models/RightsizingReportSummary.ts +24 -24
  162. package/src/models/StartInspectionRequest.ts +18 -1
  163. package/src/models/UpdateGroupRequest.ts +0 -8
  164. package/src/models/UpdateLabelVMsRequest.ts +73 -0
  165. package/src/models/VMFilterOptionsResponse.ts +93 -0
  166. package/src/models/VMLabelsResponse.ts +75 -0
  167. package/src/models/VirtualMachine.ts +32 -16
  168. package/src/models/VirtualMachineDetail.ts +31 -0
  169. package/src/models/VirtualMachineUpdateRequest.ts +73 -0
  170. package/src/models/VmUtilizationDetails.ts +48 -48
  171. package/src/models/index.ts +8 -0
@@ -28,6 +28,7 @@ import { CollectorStartRequestToJSON, } from '../models/CollectorStartRequest.js
28
28
  import { CollectorStatusFromJSON, } from '../models/CollectorStatus.js';
29
29
  import { CreateGroupRequestToJSON, } from '../models/CreateGroupRequest.js';
30
30
  import { DatastoreDetailFromJSON, } from '../models/DatastoreDetail.js';
31
+ import { DeleteLabelGloballyResponseFromJSON, } from '../models/DeleteLabelGloballyResponse.js';
31
32
  import { ForecastStatsFromJSON, } from '../models/ForecastStats.js';
32
33
  import { ForecasterDatastoresRequestToJSON, } from '../models/ForecasterDatastoresRequest.js';
33
34
  import { ForecasterStartRequestToJSON, } from '../models/ForecasterStartRequest.js';
@@ -40,6 +41,7 @@ import { InspectorStatusFromJSON, } from '../models/InspectorStatus.js';
40
41
  import { PairCapabilityFromJSON, } from '../models/PairCapability.js';
41
42
  import { PairCapabilityRequestToJSON, } from '../models/PairCapabilityRequest.js';
42
43
  import { RightsizingClusterListResponseFromJSON, } from '../models/RightsizingClusterListResponse.js';
44
+ import { RightsizingClusterResponseFromJSON, } from '../models/RightsizingClusterResponse.js';
43
45
  import { RightsizingCollectRequestToJSON, } from '../models/RightsizingCollectRequest.js';
44
46
  import { RightsizingReportFromJSON, } from '../models/RightsizingReport.js';
45
47
  import { RightsizingReportListResponseFromJSON, } from '../models/RightsizingReportListResponse.js';
@@ -47,11 +49,15 @@ import { RightsizingReportSummaryFromJSON, } from '../models/RightsizingReportSu
47
49
  import { StartInspectionRequestToJSON, } from '../models/StartInspectionRequest.js';
48
50
  import { StopForecasterPair202ResponseFromJSON, } from '../models/StopForecasterPair202Response.js';
49
51
  import { UpdateGroupRequestToJSON, } from '../models/UpdateGroupRequest.js';
52
+ import { UpdateLabelVMsRequestToJSON, } from '../models/UpdateLabelVMsRequest.js';
53
+ import { VMFilterOptionsResponseFromJSON, } from '../models/VMFilterOptionsResponse.js';
54
+ import { VMLabelsResponseFromJSON, } from '../models/VMLabelsResponse.js';
50
55
  import { VcenterCredentialsToJSON, } from '../models/VcenterCredentials.js';
51
56
  import { VddkPropertiesFromJSON, } from '../models/VddkProperties.js';
52
57
  import { VersionInfoFromJSON, } from '../models/VersionInfo.js';
53
58
  import { VirtualMachineDetailFromJSON, } from '../models/VirtualMachineDetail.js';
54
59
  import { VirtualMachineListResponseFromJSON, } from '../models/VirtualMachineListResponse.js';
60
+ import { VirtualMachineUpdateRequestToJSON, } from '../models/VirtualMachineUpdateRequest.js';
55
61
  import { VmInspectionStatusFromJSON, } from '../models/VmInspectionStatus.js';
56
62
  import { VmUtilizationDetailsFromJSON, } from '../models/VmUtilizationDetails.js';
57
63
  /**
@@ -174,6 +180,45 @@ export class DefaultApi extends runtime.BaseAPI {
174
180
  yield this.deleteGroupRaw(requestParameters, initOverrides);
175
181
  });
176
182
  }
183
+ /**
184
+ * Creates request options for deleteLabelGlobally without sending the request
185
+ */
186
+ deleteLabelGloballyRequestOpts(requestParameters) {
187
+ return __awaiter(this, void 0, void 0, function* () {
188
+ if (requestParameters['label'] == null) {
189
+ throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling deleteLabelGlobally().');
190
+ }
191
+ const queryParameters = {};
192
+ const headerParameters = {};
193
+ let urlPath = `/vms/labels/{label}`;
194
+ urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
195
+ return {
196
+ path: urlPath,
197
+ method: 'DELETE',
198
+ headers: headerParameters,
199
+ query: queryParameters,
200
+ };
201
+ });
202
+ }
203
+ /**
204
+ * Delete label from all VMs
205
+ */
206
+ deleteLabelGloballyRaw(requestParameters, initOverrides) {
207
+ return __awaiter(this, void 0, void 0, function* () {
208
+ const requestOptions = yield this.deleteLabelGloballyRequestOpts(requestParameters);
209
+ const response = yield this.request(requestOptions, initOverrides);
210
+ return new runtime.JSONApiResponse(response, (jsonValue) => DeleteLabelGloballyResponseFromJSON(jsonValue));
211
+ });
212
+ }
213
+ /**
214
+ * Delete label from all VMs
215
+ */
216
+ deleteLabelGlobally(requestParameters, initOverrides) {
217
+ return __awaiter(this, void 0, void 0, function* () {
218
+ const response = yield this.deleteLabelGloballyRaw(requestParameters, initOverrides);
219
+ return yield response.value();
220
+ });
221
+ }
177
222
  /**
178
223
  * Creates request options for getAgentStatus without sending the request
179
224
  */
@@ -460,9 +505,6 @@ export class DefaultApi extends runtime.BaseAPI {
460
505
  if (requestParameters['includeVddk'] != null) {
461
506
  queryParameters['includeVddk'] = requestParameters['includeVddk'];
462
507
  }
463
- if (requestParameters['includeCredentials'] != null) {
464
- queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
465
- }
466
508
  const headerParameters = {};
467
509
  let urlPath = `/inspector`;
468
510
  return {
@@ -570,6 +612,7 @@ export class DefaultApi extends runtime.BaseAPI {
570
612
  }
571
613
  /**
572
614
  * Creates request options for getLatestRightsizingClusters without sending the request
615
+ * @deprecated
573
616
  */
574
617
  getLatestRightsizingClustersRequestOpts(requestParameters) {
575
618
  return __awaiter(this, void 0, void 0, function* () {
@@ -589,6 +632,7 @@ export class DefaultApi extends runtime.BaseAPI {
589
632
  }
590
633
  /**
591
634
  * Get cluster-level utilization aggregates for the latest completed report
635
+ * @deprecated
592
636
  */
593
637
  getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
594
638
  return __awaiter(this, void 0, void 0, function* () {
@@ -599,6 +643,7 @@ export class DefaultApi extends runtime.BaseAPI {
599
643
  }
600
644
  /**
601
645
  * Get cluster-level utilization aggregates for the latest completed report
646
+ * @deprecated
602
647
  */
603
648
  getLatestRightsizingClusters() {
604
649
  return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
@@ -611,13 +656,13 @@ export class DefaultApi extends runtime.BaseAPI {
611
656
  */
612
657
  getRightsizingReportRequestOpts(requestParameters) {
613
658
  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().');
659
+ if (requestParameters['reportId'] == null) {
660
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReport().');
616
661
  }
617
662
  const queryParameters = {};
618
663
  const headerParameters = {};
619
- let urlPath = `/rightsizing/{id}`;
620
- urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
664
+ let urlPath = `/rightsizing/{report_id}`;
665
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
621
666
  return {
622
667
  path: urlPath,
623
668
  method: 'GET',
@@ -645,8 +690,52 @@ export class DefaultApi extends runtime.BaseAPI {
645
690
  return yield response.value();
646
691
  });
647
692
  }
693
+ /**
694
+ * Creates request options for getRightsizingReportCluster without sending the request
695
+ */
696
+ getRightsizingReportClusterRequestOpts(requestParameters) {
697
+ return __awaiter(this, void 0, void 0, function* () {
698
+ if (requestParameters['reportId'] == null) {
699
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportCluster().');
700
+ }
701
+ if (requestParameters['clusterId'] == null) {
702
+ throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getRightsizingReportCluster().');
703
+ }
704
+ const queryParameters = {};
705
+ const headerParameters = {};
706
+ let urlPath = `/rightsizing/{report_id}/clusters/{cluster_id}`;
707
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
708
+ urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
709
+ return {
710
+ path: urlPath,
711
+ method: 'GET',
712
+ headers: headerParameters,
713
+ query: queryParameters,
714
+ };
715
+ });
716
+ }
717
+ /**
718
+ * Get utilization for a specific cluster from a specific report
719
+ */
720
+ getRightsizingReportClusterRaw(requestParameters, initOverrides) {
721
+ return __awaiter(this, void 0, void 0, function* () {
722
+ const requestOptions = yield this.getRightsizingReportClusterRequestOpts(requestParameters);
723
+ const response = yield this.request(requestOptions, initOverrides);
724
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
725
+ });
726
+ }
727
+ /**
728
+ * Get utilization for a specific cluster from a specific report
729
+ */
730
+ getRightsizingReportCluster(requestParameters, initOverrides) {
731
+ return __awaiter(this, void 0, void 0, function* () {
732
+ const response = yield this.getRightsizingReportClusterRaw(requestParameters, initOverrides);
733
+ return yield response.value();
734
+ });
735
+ }
648
736
  /**
649
737
  * Creates request options for getRightsizingReportClusters without sending the request
738
+ * @deprecated
650
739
  */
651
740
  getRightsizingReportClustersRequestOpts(requestParameters) {
652
741
  return __awaiter(this, void 0, void 0, function* () {
@@ -670,6 +759,7 @@ export class DefaultApi extends runtime.BaseAPI {
670
759
  }
671
760
  /**
672
761
  * Get cluster-level utilization aggregates for a specific report
762
+ * @deprecated
673
763
  */
674
764
  getRightsizingReportClustersRaw(requestParameters, initOverrides) {
675
765
  return __awaiter(this, void 0, void 0, function* () {
@@ -680,6 +770,7 @@ export class DefaultApi extends runtime.BaseAPI {
680
770
  }
681
771
  /**
682
772
  * Get cluster-level utilization aggregates for a specific report
773
+ * @deprecated
683
774
  */
684
775
  getRightsizingReportClusters(requestParameters, initOverrides) {
685
776
  return __awaiter(this, void 0, void 0, function* () {
@@ -726,6 +817,41 @@ export class DefaultApi extends runtime.BaseAPI {
726
817
  return yield response.value();
727
818
  });
728
819
  }
820
+ /**
821
+ * Creates request options for getVMLabels without sending the request
822
+ */
823
+ getVMLabelsRequestOpts() {
824
+ return __awaiter(this, void 0, void 0, function* () {
825
+ const queryParameters = {};
826
+ const headerParameters = {};
827
+ let urlPath = `/vms/labels`;
828
+ return {
829
+ path: urlPath,
830
+ method: 'GET',
831
+ headers: headerParameters,
832
+ query: queryParameters,
833
+ };
834
+ });
835
+ }
836
+ /**
837
+ * Get all distinct labels in use across VMs
838
+ */
839
+ getVMLabelsRaw(initOverrides) {
840
+ return __awaiter(this, void 0, void 0, function* () {
841
+ const requestOptions = yield this.getVMLabelsRequestOpts();
842
+ const response = yield this.request(requestOptions, initOverrides);
843
+ return new runtime.JSONApiResponse(response, (jsonValue) => VMLabelsResponseFromJSON(jsonValue));
844
+ });
845
+ }
846
+ /**
847
+ * Get all distinct labels in use across VMs
848
+ */
849
+ getVMLabels(initOverrides) {
850
+ return __awaiter(this, void 0, void 0, function* () {
851
+ const response = yield this.getVMLabelsRaw(initOverrides);
852
+ return yield response.value();
853
+ });
854
+ }
729
855
  /**
730
856
  * Creates request options for getVMUtilization without sending the request
731
857
  */
@@ -812,6 +938,41 @@ export class DefaultApi extends runtime.BaseAPI {
812
938
  return yield response.value();
813
939
  });
814
940
  }
941
+ /**
942
+ * Creates request options for getVMsFilterOptions without sending the request
943
+ */
944
+ getVMsFilterOptionsRequestOpts() {
945
+ return __awaiter(this, void 0, void 0, function* () {
946
+ const queryParameters = {};
947
+ const headerParameters = {};
948
+ let urlPath = `/vms/filter-options`;
949
+ return {
950
+ path: urlPath,
951
+ method: 'GET',
952
+ headers: headerParameters,
953
+ query: queryParameters,
954
+ };
955
+ });
956
+ }
957
+ /**
958
+ * Get distinct filter option values for VMs
959
+ */
960
+ getVMsFilterOptionsRaw(initOverrides) {
961
+ return __awaiter(this, void 0, void 0, function* () {
962
+ const requestOptions = yield this.getVMsFilterOptionsRequestOpts();
963
+ const response = yield this.request(requestOptions, initOverrides);
964
+ return new runtime.JSONApiResponse(response, (jsonValue) => VMFilterOptionsResponseFromJSON(jsonValue));
965
+ });
966
+ }
967
+ /**
968
+ * Get distinct filter option values for VMs
969
+ */
970
+ getVMsFilterOptions(initOverrides) {
971
+ return __awaiter(this, void 0, void 0, function* () {
972
+ const response = yield this.getVMsFilterOptionsRaw(initOverrides);
973
+ return yield response.value();
974
+ });
975
+ }
815
976
  /**
816
977
  * Creates request options for getVersion without sending the request
817
978
  */
@@ -891,6 +1052,48 @@ export class DefaultApi extends runtime.BaseAPI {
891
1052
  return yield response.value();
892
1053
  });
893
1054
  }
1055
+ /**
1056
+ * Creates request options for listRightsizingReportClusters without sending the request
1057
+ */
1058
+ listRightsizingReportClustersRequestOpts(requestParameters) {
1059
+ return __awaiter(this, void 0, void 0, function* () {
1060
+ if (requestParameters['reportId'] == null) {
1061
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling listRightsizingReportClusters().');
1062
+ }
1063
+ const queryParameters = {};
1064
+ if (requestParameters['byExpression'] != null) {
1065
+ queryParameters['byExpression'] = requestParameters['byExpression'];
1066
+ }
1067
+ const headerParameters = {};
1068
+ let urlPath = `/rightsizing/{report_id}/clusters`;
1069
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
1070
+ return {
1071
+ path: urlPath,
1072
+ method: 'GET',
1073
+ headers: headerParameters,
1074
+ query: queryParameters,
1075
+ };
1076
+ });
1077
+ }
1078
+ /**
1079
+ * Get cluster-level utilization aggregates for a specific report
1080
+ */
1081
+ listRightsizingReportClustersRaw(requestParameters, initOverrides) {
1082
+ return __awaiter(this, void 0, void 0, function* () {
1083
+ const requestOptions = yield this.listRightsizingReportClustersRequestOpts(requestParameters);
1084
+ const response = yield this.request(requestOptions, initOverrides);
1085
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
1086
+ });
1087
+ }
1088
+ /**
1089
+ * Get cluster-level utilization aggregates for a specific report
1090
+ */
1091
+ listRightsizingReportClusters(requestParameters, initOverrides) {
1092
+ return __awaiter(this, void 0, void 0, function* () {
1093
+ const response = yield this.listRightsizingReportClustersRaw(requestParameters, initOverrides);
1094
+ return yield response.value();
1095
+ });
1096
+ }
894
1097
  /**
895
1098
  * Creates request options for listRightsizingReports without sending the request
896
1099
  */
@@ -1009,45 +1212,6 @@ export class DefaultApi extends runtime.BaseAPI {
1009
1212
  yield this.putForecasterCredentialsRaw(requestParameters, initOverrides);
1010
1213
  });
1011
1214
  }
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
1215
  /**
1052
1216
  * Creates request options for putInspectorVddk without sending the request
1053
1217
  */
@@ -1537,4 +1701,129 @@ export class DefaultApi extends runtime.BaseAPI {
1537
1701
  return yield response.value();
1538
1702
  });
1539
1703
  }
1704
+ /**
1705
+ * Creates request options for updateLabelVMs without sending the request
1706
+ */
1707
+ updateLabelVMsRequestOpts(requestParameters) {
1708
+ return __awaiter(this, void 0, void 0, function* () {
1709
+ if (requestParameters['label'] == null) {
1710
+ throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling updateLabelVMs().');
1711
+ }
1712
+ if (requestParameters['updateLabelVMsRequest'] == null) {
1713
+ throw new runtime.RequiredError('updateLabelVMsRequest', 'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLabelVMs().');
1714
+ }
1715
+ const queryParameters = {};
1716
+ const headerParameters = {};
1717
+ headerParameters['Content-Type'] = 'application/json';
1718
+ let urlPath = `/vms/labels/{label}`;
1719
+ urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
1720
+ return {
1721
+ path: urlPath,
1722
+ method: 'PATCH',
1723
+ headers: headerParameters,
1724
+ query: queryParameters,
1725
+ body: UpdateLabelVMsRequestToJSON(requestParameters['updateLabelVMsRequest']),
1726
+ };
1727
+ });
1728
+ }
1729
+ /**
1730
+ * Modify label VM membership (add/remove label to/from VMs)
1731
+ */
1732
+ updateLabelVMsRaw(requestParameters, initOverrides) {
1733
+ return __awaiter(this, void 0, void 0, function* () {
1734
+ const requestOptions = yield this.updateLabelVMsRequestOpts(requestParameters);
1735
+ const response = yield this.request(requestOptions, initOverrides);
1736
+ return new runtime.VoidApiResponse(response);
1737
+ });
1738
+ }
1739
+ /**
1740
+ * Modify label VM membership (add/remove label to/from VMs)
1741
+ */
1742
+ updateLabelVMs(requestParameters, initOverrides) {
1743
+ return __awaiter(this, void 0, void 0, function* () {
1744
+ yield this.updateLabelVMsRaw(requestParameters, initOverrides);
1745
+ });
1746
+ }
1747
+ /**
1748
+ * Creates request options for updateVM without sending the request
1749
+ */
1750
+ updateVMRequestOpts(requestParameters) {
1751
+ return __awaiter(this, void 0, void 0, function* () {
1752
+ if (requestParameters['id'] == null) {
1753
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateVM().');
1754
+ }
1755
+ if (requestParameters['virtualMachineUpdateRequest'] == null) {
1756
+ throw new runtime.RequiredError('virtualMachineUpdateRequest', 'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateVM().');
1757
+ }
1758
+ const queryParameters = {};
1759
+ const headerParameters = {};
1760
+ headerParameters['Content-Type'] = 'application/json';
1761
+ let urlPath = `/vms/{id}`;
1762
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1763
+ return {
1764
+ path: urlPath,
1765
+ method: 'PATCH',
1766
+ headers: headerParameters,
1767
+ query: queryParameters,
1768
+ body: VirtualMachineUpdateRequestToJSON(requestParameters['virtualMachineUpdateRequest']),
1769
+ };
1770
+ });
1771
+ }
1772
+ /**
1773
+ * Update VM properties
1774
+ */
1775
+ updateVMRaw(requestParameters, initOverrides) {
1776
+ return __awaiter(this, void 0, void 0, function* () {
1777
+ const requestOptions = yield this.updateVMRequestOpts(requestParameters);
1778
+ const response = yield this.request(requestOptions, initOverrides);
1779
+ return new runtime.VoidApiResponse(response);
1780
+ });
1781
+ }
1782
+ /**
1783
+ * Update VM properties
1784
+ */
1785
+ updateVM(requestParameters, initOverrides) {
1786
+ return __awaiter(this, void 0, void 0, function* () {
1787
+ yield this.updateVMRaw(requestParameters, initOverrides);
1788
+ });
1789
+ }
1790
+ /**
1791
+ * Creates request options for validateInspectorCredentials without sending the request
1792
+ */
1793
+ validateInspectorCredentialsRequestOpts(requestParameters) {
1794
+ return __awaiter(this, void 0, void 0, function* () {
1795
+ if (requestParameters['vcenterCredentials'] == null) {
1796
+ throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling validateInspectorCredentials().');
1797
+ }
1798
+ const queryParameters = {};
1799
+ const headerParameters = {};
1800
+ headerParameters['Content-Type'] = 'application/json';
1801
+ let urlPath = `/inspector/credentials`;
1802
+ return {
1803
+ path: urlPath,
1804
+ method: 'POST',
1805
+ headers: headerParameters,
1806
+ query: queryParameters,
1807
+ body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
1808
+ };
1809
+ });
1810
+ }
1811
+ /**
1812
+ * Validate vCenter credentials for inspector
1813
+ */
1814
+ validateInspectorCredentialsRaw(requestParameters, initOverrides) {
1815
+ return __awaiter(this, void 0, void 0, function* () {
1816
+ const requestOptions = yield this.validateInspectorCredentialsRequestOpts(requestParameters);
1817
+ const response = yield this.request(requestOptions, initOverrides);
1818
+ return new runtime.VoidApiResponse(response);
1819
+ });
1820
+ }
1821
+ /**
1822
+ * Validate vCenter credentials for inspector
1823
+ */
1824
+ validateInspectorCredentials(requestParameters, initOverrides) {
1825
+ return __awaiter(this, void 0, void 0, function* () {
1826
+ yield this.validateInspectorCredentialsRaw(requestParameters, initOverrides);
1827
+ });
1828
+ }
1540
1829
  }
@@ -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,54 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface ClusterFeatures
16
+ */
17
+ export interface ClusterFeatures {
18
+ /**
19
+ * Whether DRS (Distributed Resource Scheduler) is enabled for this cluster
20
+ * @type {boolean}
21
+ * @memberof ClusterFeatures
22
+ */
23
+ drsEnabled?: boolean;
24
+ /**
25
+ * DRS automation mode for the cluster
26
+ * @type {ClusterFeaturesDrsModeEnum}
27
+ * @memberof ClusterFeatures
28
+ */
29
+ drsMode?: ClusterFeaturesDrsModeEnum;
30
+ /**
31
+ * Whether Storage DRS is enabled for this cluster
32
+ * @type {boolean}
33
+ * @memberof ClusterFeatures
34
+ */
35
+ storageDrsEnabled?: boolean;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const ClusterFeaturesDrsModeEnum: {
41
+ readonly FullyAutomated: "Fully Automated";
42
+ readonly PartiallyAutomated: "Partially Automated";
43
+ readonly Manual: "Manual";
44
+ readonly None: "None";
45
+ };
46
+ export type ClusterFeaturesDrsModeEnum = typeof ClusterFeaturesDrsModeEnum[keyof typeof ClusterFeaturesDrsModeEnum];
47
+ /**
48
+ * Check if a given object implements the ClusterFeatures interface.
49
+ */
50
+ export declare function instanceOfClusterFeatures(value: object): value is ClusterFeatures;
51
+ export declare function ClusterFeaturesFromJSON(json: any): ClusterFeatures;
52
+ export declare function ClusterFeaturesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterFeatures;
53
+ export declare function ClusterFeaturesToJSON(json: any): ClusterFeatures;
54
+ export declare function ClusterFeaturesToJSONTyped(value?: ClusterFeatures | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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: v1
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
+ * @export
16
+ */
17
+ export const ClusterFeaturesDrsModeEnum = {
18
+ FullyAutomated: 'Fully Automated',
19
+ PartiallyAutomated: 'Partially Automated',
20
+ Manual: 'Manual',
21
+ None: 'None'
22
+ };
23
+ /**
24
+ * Check if a given object implements the ClusterFeatures interface.
25
+ */
26
+ export function instanceOfClusterFeatures(value) {
27
+ return true;
28
+ }
29
+ export function ClusterFeaturesFromJSON(json) {
30
+ return ClusterFeaturesFromJSONTyped(json, false);
31
+ }
32
+ export function ClusterFeaturesFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'drsEnabled': json['drsEnabled'] == null ? undefined : json['drsEnabled'],
38
+ 'drsMode': json['drsMode'] == null ? undefined : json['drsMode'],
39
+ 'storageDrsEnabled': json['storageDrsEnabled'] == null ? undefined : json['storageDrsEnabled'],
40
+ };
41
+ }
42
+ export function ClusterFeaturesToJSON(json) {
43
+ return ClusterFeaturesToJSONTyped(json, false);
44
+ }
45
+ export function ClusterFeaturesToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'drsEnabled': value['drsEnabled'],
51
+ 'drsMode': value['drsMode'],
52
+ 'storageDrsEnabled': value['storageDrsEnabled'],
53
+ };
54
+ }