@openshift-migration-advisor/agent-sdk 0.12.0-1f1dc16fb9e5 → 0.12.0-645d2fae3eee

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 (135) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +20 -4
  3. package/dist/apis/DefaultApi.d.ts +346 -41
  4. package/dist/apis/DefaultApi.js +380 -46
  5. package/dist/esm/apis/DefaultApi.d.ts +346 -41
  6. package/dist/esm/apis/DefaultApi.js +380 -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/DeleteLabelGloballyResponse.d.ts +38 -0
  12. package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
  13. package/dist/esm/models/InspectorStatus.d.ts +0 -17
  14. package/dist/esm/models/InspectorStatus.js +1 -10
  15. package/dist/esm/models/Inventory.d.ts +7 -1
  16. package/dist/esm/models/Inventory.js +5 -3
  17. package/dist/esm/models/InventoryData.d.ts +7 -0
  18. package/dist/esm/models/InventoryData.js +3 -0
  19. package/dist/esm/models/RightsizingClusterListResponse.d.ts +39 -0
  20. package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
  21. package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
  22. package/dist/esm/models/RightsizingClusterResponse.js +48 -0
  23. package/dist/esm/models/RightsizingClusterUtilization.d.ts +112 -0
  24. package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
  25. package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
  26. package/dist/esm/models/RightsizingCollectRequest.js +12 -12
  27. package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
  28. package/dist/esm/models/RightsizingMetricStats.js +3 -3
  29. package/dist/esm/models/RightsizingReport.d.ts +6 -6
  30. package/dist/esm/models/RightsizingReport.js +18 -18
  31. package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
  32. package/dist/esm/models/RightsizingReportSummary.js +18 -18
  33. package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
  34. package/dist/esm/models/StartInspectionRequest.js +5 -0
  35. package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
  36. package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
  37. package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
  38. package/dist/esm/models/VMLabelsResponse.js +47 -0
  39. package/dist/esm/models/VirtualMachine.d.ts +16 -4
  40. package/dist/esm/models/VirtualMachine.js +12 -8
  41. package/dist/esm/models/VirtualMachineDetail.d.ts +19 -0
  42. package/dist/esm/models/VirtualMachineDetail.js +7 -0
  43. package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
  44. package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
  45. package/dist/esm/models/VmUtilizationDetails.d.ts +27 -9
  46. package/dist/esm/models/VmUtilizationDetails.js +39 -27
  47. package/dist/esm/models/index.d.ts +8 -0
  48. package/dist/esm/models/index.js +8 -0
  49. package/dist/models/AgentStatus.d.ts +1 -1
  50. package/dist/models/AgentStatus.js +3 -3
  51. package/dist/models/ClusterFeatures.d.ts +54 -0
  52. package/dist/models/ClusterFeatures.js +62 -0
  53. package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
  54. package/dist/models/DeleteLabelGloballyResponse.js +54 -0
  55. package/dist/models/InspectorStatus.d.ts +0 -17
  56. package/dist/models/InspectorStatus.js +1 -10
  57. package/dist/models/Inventory.d.ts +7 -1
  58. package/dist/models/Inventory.js +5 -3
  59. package/dist/models/InventoryData.d.ts +7 -0
  60. package/dist/models/InventoryData.js +3 -0
  61. package/dist/models/RightsizingClusterListResponse.d.ts +39 -0
  62. package/dist/models/RightsizingClusterListResponse.js +55 -0
  63. package/dist/models/RightsizingClusterResponse.d.ts +39 -0
  64. package/dist/models/RightsizingClusterResponse.js +55 -0
  65. package/dist/models/RightsizingClusterUtilization.d.ts +112 -0
  66. package/dist/models/RightsizingClusterUtilization.js +102 -0
  67. package/dist/models/RightsizingCollectRequest.d.ts +6 -6
  68. package/dist/models/RightsizingCollectRequest.js +12 -12
  69. package/dist/models/RightsizingMetricStats.d.ts +1 -1
  70. package/dist/models/RightsizingMetricStats.js +3 -3
  71. package/dist/models/RightsizingReport.d.ts +6 -6
  72. package/dist/models/RightsizingReport.js +18 -18
  73. package/dist/models/RightsizingReportSummary.d.ts +6 -6
  74. package/dist/models/RightsizingReportSummary.js +18 -18
  75. package/dist/models/StartInspectionRequest.d.ts +8 -1
  76. package/dist/models/StartInspectionRequest.js +5 -0
  77. package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
  78. package/dist/models/UpdateLabelVMsRequest.js +50 -0
  79. package/dist/models/VMLabelsResponse.d.ts +38 -0
  80. package/dist/models/VMLabelsResponse.js +54 -0
  81. package/dist/models/VirtualMachine.d.ts +16 -4
  82. package/dist/models/VirtualMachine.js +12 -8
  83. package/dist/models/VirtualMachineDetail.d.ts +19 -0
  84. package/dist/models/VirtualMachineDetail.js +7 -0
  85. package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
  86. package/dist/models/VirtualMachineUpdateRequest.js +50 -0
  87. package/dist/models/VmUtilizationDetails.d.ts +27 -9
  88. package/dist/models/VmUtilizationDetails.js +39 -27
  89. package/dist/models/index.d.ts +8 -0
  90. package/dist/models/index.js +8 -0
  91. package/docs/AgentStatus.md +2 -2
  92. package/docs/ClusterFeatures.md +38 -0
  93. package/docs/DefaultApi.md +695 -146
  94. package/docs/DeleteLabelGloballyResponse.md +36 -0
  95. package/docs/GetInventory200Response.md +4 -2
  96. package/docs/InspectorStatus.md +0 -4
  97. package/docs/Inventory.md +4 -2
  98. package/docs/InventoryData.md +2 -0
  99. package/docs/RightsizingClusterListResponse.md +36 -0
  100. package/docs/RightsizingClusterResponse.md +36 -0
  101. package/docs/RightsizingClusterUtilization.md +60 -0
  102. package/docs/RightsizingCollectRequest.md +12 -12
  103. package/docs/RightsizingMetricStats.md +2 -2
  104. package/docs/RightsizingReport.md +12 -12
  105. package/docs/RightsizingReportSummary.md +12 -12
  106. package/docs/StartInspectionRequest.md +3 -1
  107. package/docs/UpdateLabelVMsRequest.md +36 -0
  108. package/docs/VMLabelsResponse.md +36 -0
  109. package/docs/VirtualMachine.md +12 -8
  110. package/docs/VirtualMachineDetail.md +6 -0
  111. package/docs/VirtualMachineUpdateRequest.md +36 -0
  112. package/docs/VmUtilizationDetails.md +24 -18
  113. package/package.json +1 -1
  114. package/src/apis/DefaultApi.ts +754 -112
  115. package/src/models/AgentStatus.ts +4 -4
  116. package/src/models/ClusterFeatures.ts +94 -0
  117. package/src/models/DeleteLabelGloballyResponse.ts +75 -0
  118. package/src/models/InspectorStatus.ts +1 -28
  119. package/src/models/Inventory.ts +12 -4
  120. package/src/models/InventoryData.ts +15 -0
  121. package/src/models/RightsizingClusterListResponse.ts +83 -0
  122. package/src/models/RightsizingClusterResponse.ts +83 -0
  123. package/src/models/RightsizingClusterUtilization.ts +185 -0
  124. package/src/models/RightsizingCollectRequest.ts +18 -18
  125. package/src/models/RightsizingMetricStats.ts +4 -4
  126. package/src/models/RightsizingReport.ts +24 -24
  127. package/src/models/RightsizingReportSummary.ts +24 -24
  128. package/src/models/StartInspectionRequest.ts +18 -1
  129. package/src/models/UpdateLabelVMsRequest.ts +73 -0
  130. package/src/models/VMLabelsResponse.ts +75 -0
  131. package/src/models/VirtualMachine.ts +28 -12
  132. package/src/models/VirtualMachineDetail.ts +31 -0
  133. package/src/models/VirtualMachineUpdateRequest.ts +73 -0
  134. package/src/models/VmUtilizationDetails.ts +63 -36
  135. 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';
@@ -39,6 +40,8 @@ import { GroupResponseFromJSON, } from '../models/GroupResponse.js';
39
40
  import { InspectorStatusFromJSON, } from '../models/InspectorStatus.js';
40
41
  import { PairCapabilityFromJSON, } from '../models/PairCapability.js';
41
42
  import { PairCapabilityRequestToJSON, } from '../models/PairCapabilityRequest.js';
43
+ import { RightsizingClusterListResponseFromJSON, } from '../models/RightsizingClusterListResponse.js';
44
+ import { RightsizingClusterResponseFromJSON, } from '../models/RightsizingClusterResponse.js';
42
45
  import { RightsizingCollectRequestToJSON, } from '../models/RightsizingCollectRequest.js';
43
46
  import { RightsizingReportFromJSON, } from '../models/RightsizingReport.js';
44
47
  import { RightsizingReportListResponseFromJSON, } from '../models/RightsizingReportListResponse.js';
@@ -46,11 +49,14 @@ import { RightsizingReportSummaryFromJSON, } from '../models/RightsizingReportSu
46
49
  import { StartInspectionRequestToJSON, } from '../models/StartInspectionRequest.js';
47
50
  import { StopForecasterPair202ResponseFromJSON, } from '../models/StopForecasterPair202Response.js';
48
51
  import { UpdateGroupRequestToJSON, } from '../models/UpdateGroupRequest.js';
52
+ import { UpdateLabelVMsRequestToJSON, } from '../models/UpdateLabelVMsRequest.js';
53
+ import { VMLabelsResponseFromJSON, } from '../models/VMLabelsResponse.js';
49
54
  import { VcenterCredentialsToJSON, } from '../models/VcenterCredentials.js';
50
55
  import { VddkPropertiesFromJSON, } from '../models/VddkProperties.js';
51
56
  import { VersionInfoFromJSON, } from '../models/VersionInfo.js';
52
57
  import { VirtualMachineDetailFromJSON, } from '../models/VirtualMachineDetail.js';
53
58
  import { VirtualMachineListResponseFromJSON, } from '../models/VirtualMachineListResponse.js';
59
+ import { VirtualMachineUpdateRequestToJSON, } from '../models/VirtualMachineUpdateRequest.js';
54
60
  import { VmInspectionStatusFromJSON, } from '../models/VmInspectionStatus.js';
55
61
  import { VmUtilizationDetailsFromJSON, } from '../models/VmUtilizationDetails.js';
56
62
  /**
@@ -173,6 +179,45 @@ export class DefaultApi extends runtime.BaseAPI {
173
179
  yield this.deleteGroupRaw(requestParameters, initOverrides);
174
180
  });
175
181
  }
182
+ /**
183
+ * Creates request options for deleteLabelGlobally without sending the request
184
+ */
185
+ deleteLabelGloballyRequestOpts(requestParameters) {
186
+ return __awaiter(this, void 0, void 0, function* () {
187
+ if (requestParameters['label'] == null) {
188
+ throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling deleteLabelGlobally().');
189
+ }
190
+ const queryParameters = {};
191
+ const headerParameters = {};
192
+ let urlPath = `/vms/labels/{label}`;
193
+ urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
194
+ return {
195
+ path: urlPath,
196
+ method: 'DELETE',
197
+ headers: headerParameters,
198
+ query: queryParameters,
199
+ };
200
+ });
201
+ }
202
+ /**
203
+ * Delete label from all VMs
204
+ */
205
+ deleteLabelGloballyRaw(requestParameters, initOverrides) {
206
+ return __awaiter(this, void 0, void 0, function* () {
207
+ const requestOptions = yield this.deleteLabelGloballyRequestOpts(requestParameters);
208
+ const response = yield this.request(requestOptions, initOverrides);
209
+ return new runtime.JSONApiResponse(response, (jsonValue) => DeleteLabelGloballyResponseFromJSON(jsonValue));
210
+ });
211
+ }
212
+ /**
213
+ * Delete label from all VMs
214
+ */
215
+ deleteLabelGlobally(requestParameters, initOverrides) {
216
+ return __awaiter(this, void 0, void 0, function* () {
217
+ const response = yield this.deleteLabelGloballyRaw(requestParameters, initOverrides);
218
+ return yield response.value();
219
+ });
220
+ }
176
221
  /**
177
222
  * Creates request options for getAgentStatus without sending the request
178
223
  */
@@ -459,9 +504,6 @@ export class DefaultApi extends runtime.BaseAPI {
459
504
  if (requestParameters['includeVddk'] != null) {
460
505
  queryParameters['includeVddk'] = requestParameters['includeVddk'];
461
506
  }
462
- if (requestParameters['includeCredentials'] != null) {
463
- queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
464
- }
465
507
  const headerParameters = {};
466
508
  let urlPath = `/inspector`;
467
509
  return {
@@ -567,18 +609,59 @@ export class DefaultApi extends runtime.BaseAPI {
567
609
  return yield response.value();
568
610
  });
569
611
  }
612
+ /**
613
+ * Creates request options for getLatestRightsizingClusters without sending the request
614
+ * @deprecated
615
+ */
616
+ getLatestRightsizingClustersRequestOpts(requestParameters) {
617
+ return __awaiter(this, void 0, void 0, function* () {
618
+ const queryParameters = {};
619
+ if (requestParameters['byExpression'] != null) {
620
+ queryParameters['byExpression'] = requestParameters['byExpression'];
621
+ }
622
+ const headerParameters = {};
623
+ let urlPath = `/cluster_rightsizing`;
624
+ return {
625
+ path: urlPath,
626
+ method: 'GET',
627
+ headers: headerParameters,
628
+ query: queryParameters,
629
+ };
630
+ });
631
+ }
632
+ /**
633
+ * Get cluster-level utilization aggregates for the latest completed report
634
+ * @deprecated
635
+ */
636
+ getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
637
+ return __awaiter(this, void 0, void 0, function* () {
638
+ const requestOptions = yield this.getLatestRightsizingClustersRequestOpts(requestParameters);
639
+ const response = yield this.request(requestOptions, initOverrides);
640
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
641
+ });
642
+ }
643
+ /**
644
+ * Get cluster-level utilization aggregates for the latest completed report
645
+ * @deprecated
646
+ */
647
+ getLatestRightsizingClusters() {
648
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
649
+ const response = yield this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
650
+ return yield response.value();
651
+ });
652
+ }
570
653
  /**
571
654
  * Creates request options for getRightsizingReport without sending the request
572
655
  */
573
656
  getRightsizingReportRequestOpts(requestParameters) {
574
657
  return __awaiter(this, void 0, void 0, function* () {
575
- if (requestParameters['id'] == null) {
576
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRightsizingReport().');
658
+ if (requestParameters['reportId'] == null) {
659
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReport().');
577
660
  }
578
661
  const queryParameters = {};
579
662
  const headerParameters = {};
580
- let urlPath = `/rightsizing/{id}`;
581
- urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
663
+ let urlPath = `/rightsizing/{report_id}`;
664
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
582
665
  return {
583
666
  path: urlPath,
584
667
  method: 'GET',
@@ -606,6 +689,94 @@ export class DefaultApi extends runtime.BaseAPI {
606
689
  return yield response.value();
607
690
  });
608
691
  }
692
+ /**
693
+ * Creates request options for getRightsizingReportCluster without sending the request
694
+ */
695
+ getRightsizingReportClusterRequestOpts(requestParameters) {
696
+ return __awaiter(this, void 0, void 0, function* () {
697
+ if (requestParameters['reportId'] == null) {
698
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportCluster().');
699
+ }
700
+ if (requestParameters['clusterId'] == null) {
701
+ throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getRightsizingReportCluster().');
702
+ }
703
+ const queryParameters = {};
704
+ const headerParameters = {};
705
+ let urlPath = `/rightsizing/{report_id}/clusters/{cluster_id}`;
706
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
707
+ urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
708
+ return {
709
+ path: urlPath,
710
+ method: 'GET',
711
+ headers: headerParameters,
712
+ query: queryParameters,
713
+ };
714
+ });
715
+ }
716
+ /**
717
+ * Get utilization for a specific cluster from a specific report
718
+ */
719
+ getRightsizingReportClusterRaw(requestParameters, initOverrides) {
720
+ return __awaiter(this, void 0, void 0, function* () {
721
+ const requestOptions = yield this.getRightsizingReportClusterRequestOpts(requestParameters);
722
+ const response = yield this.request(requestOptions, initOverrides);
723
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
724
+ });
725
+ }
726
+ /**
727
+ * Get utilization for a specific cluster from a specific report
728
+ */
729
+ getRightsizingReportCluster(requestParameters, initOverrides) {
730
+ return __awaiter(this, void 0, void 0, function* () {
731
+ const response = yield this.getRightsizingReportClusterRaw(requestParameters, initOverrides);
732
+ return yield response.value();
733
+ });
734
+ }
735
+ /**
736
+ * Creates request options for getRightsizingReportClusters without sending the request
737
+ * @deprecated
738
+ */
739
+ getRightsizingReportClustersRequestOpts(requestParameters) {
740
+ return __awaiter(this, void 0, void 0, function* () {
741
+ if (requestParameters['reportId'] == null) {
742
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().');
743
+ }
744
+ const queryParameters = {};
745
+ if (requestParameters['byExpression'] != null) {
746
+ queryParameters['byExpression'] = requestParameters['byExpression'];
747
+ }
748
+ const headerParameters = {};
749
+ let urlPath = `/cluster_rightsizing/{report_id}`;
750
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
751
+ return {
752
+ path: urlPath,
753
+ method: 'GET',
754
+ headers: headerParameters,
755
+ query: queryParameters,
756
+ };
757
+ });
758
+ }
759
+ /**
760
+ * Get cluster-level utilization aggregates for a specific report
761
+ * @deprecated
762
+ */
763
+ getRightsizingReportClustersRaw(requestParameters, initOverrides) {
764
+ return __awaiter(this, void 0, void 0, function* () {
765
+ const requestOptions = yield this.getRightsizingReportClustersRequestOpts(requestParameters);
766
+ const response = yield this.request(requestOptions, initOverrides);
767
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
768
+ });
769
+ }
770
+ /**
771
+ * Get cluster-level utilization aggregates for a specific report
772
+ * @deprecated
773
+ */
774
+ getRightsizingReportClusters(requestParameters, initOverrides) {
775
+ return __awaiter(this, void 0, void 0, function* () {
776
+ const response = yield this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
777
+ return yield response.value();
778
+ });
779
+ }
609
780
  /**
610
781
  * Creates request options for getVM without sending the request
611
782
  */
@@ -645,6 +816,41 @@ export class DefaultApi extends runtime.BaseAPI {
645
816
  return yield response.value();
646
817
  });
647
818
  }
819
+ /**
820
+ * Creates request options for getVMLabels without sending the request
821
+ */
822
+ getVMLabelsRequestOpts() {
823
+ return __awaiter(this, void 0, void 0, function* () {
824
+ const queryParameters = {};
825
+ const headerParameters = {};
826
+ let urlPath = `/vms/labels`;
827
+ return {
828
+ path: urlPath,
829
+ method: 'GET',
830
+ headers: headerParameters,
831
+ query: queryParameters,
832
+ };
833
+ });
834
+ }
835
+ /**
836
+ * Get all distinct labels in use across VMs
837
+ */
838
+ getVMLabelsRaw(initOverrides) {
839
+ return __awaiter(this, void 0, void 0, function* () {
840
+ const requestOptions = yield this.getVMLabelsRequestOpts();
841
+ const response = yield this.request(requestOptions, initOverrides);
842
+ return new runtime.JSONApiResponse(response, (jsonValue) => VMLabelsResponseFromJSON(jsonValue));
843
+ });
844
+ }
845
+ /**
846
+ * Get all distinct labels in use across VMs
847
+ */
848
+ getVMLabels(initOverrides) {
849
+ return __awaiter(this, void 0, void 0, function* () {
850
+ const response = yield this.getVMLabelsRaw(initOverrides);
851
+ return yield response.value();
852
+ });
853
+ }
648
854
  /**
649
855
  * Creates request options for getVMUtilization without sending the request
650
856
  */
@@ -810,6 +1016,48 @@ export class DefaultApi extends runtime.BaseAPI {
810
1016
  return yield response.value();
811
1017
  });
812
1018
  }
1019
+ /**
1020
+ * Creates request options for listRightsizingReportClusters without sending the request
1021
+ */
1022
+ listRightsizingReportClustersRequestOpts(requestParameters) {
1023
+ return __awaiter(this, void 0, void 0, function* () {
1024
+ if (requestParameters['reportId'] == null) {
1025
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling listRightsizingReportClusters().');
1026
+ }
1027
+ const queryParameters = {};
1028
+ if (requestParameters['byExpression'] != null) {
1029
+ queryParameters['byExpression'] = requestParameters['byExpression'];
1030
+ }
1031
+ const headerParameters = {};
1032
+ let urlPath = `/rightsizing/{report_id}/clusters`;
1033
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
1034
+ return {
1035
+ path: urlPath,
1036
+ method: 'GET',
1037
+ headers: headerParameters,
1038
+ query: queryParameters,
1039
+ };
1040
+ });
1041
+ }
1042
+ /**
1043
+ * Get cluster-level utilization aggregates for a specific report
1044
+ */
1045
+ listRightsizingReportClustersRaw(requestParameters, initOverrides) {
1046
+ return __awaiter(this, void 0, void 0, function* () {
1047
+ const requestOptions = yield this.listRightsizingReportClustersRequestOpts(requestParameters);
1048
+ const response = yield this.request(requestOptions, initOverrides);
1049
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
1050
+ });
1051
+ }
1052
+ /**
1053
+ * Get cluster-level utilization aggregates for a specific report
1054
+ */
1055
+ listRightsizingReportClusters(requestParameters, initOverrides) {
1056
+ return __awaiter(this, void 0, void 0, function* () {
1057
+ const response = yield this.listRightsizingReportClustersRaw(requestParameters, initOverrides);
1058
+ return yield response.value();
1059
+ });
1060
+ }
813
1061
  /**
814
1062
  * Creates request options for listRightsizingReports without sending the request
815
1063
  */
@@ -928,45 +1176,6 @@ export class DefaultApi extends runtime.BaseAPI {
928
1176
  yield this.putForecasterCredentialsRaw(requestParameters, initOverrides);
929
1177
  });
930
1178
  }
931
- /**
932
- * Creates request options for putInspectorCredentials without sending the request
933
- */
934
- putInspectorCredentialsRequestOpts(requestParameters) {
935
- return __awaiter(this, void 0, void 0, function* () {
936
- if (requestParameters['vcenterCredentials'] == null) {
937
- throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putInspectorCredentials().');
938
- }
939
- const queryParameters = {};
940
- const headerParameters = {};
941
- headerParameters['Content-Type'] = 'application/json';
942
- let urlPath = `/inspector/credentials`;
943
- return {
944
- path: urlPath,
945
- method: 'PUT',
946
- headers: headerParameters,
947
- query: queryParameters,
948
- body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
949
- };
950
- });
951
- }
952
- /**
953
- * Set or replace inspector credentials
954
- */
955
- putInspectorCredentialsRaw(requestParameters, initOverrides) {
956
- return __awaiter(this, void 0, void 0, function* () {
957
- const requestOptions = yield this.putInspectorCredentialsRequestOpts(requestParameters);
958
- const response = yield this.request(requestOptions, initOverrides);
959
- return new runtime.VoidApiResponse(response);
960
- });
961
- }
962
- /**
963
- * Set or replace inspector credentials
964
- */
965
- putInspectorCredentials(requestParameters, initOverrides) {
966
- return __awaiter(this, void 0, void 0, function* () {
967
- yield this.putInspectorCredentialsRaw(requestParameters, initOverrides);
968
- });
969
- }
970
1179
  /**
971
1180
  * Creates request options for putInspectorVddk without sending the request
972
1181
  */
@@ -1456,4 +1665,129 @@ export class DefaultApi extends runtime.BaseAPI {
1456
1665
  return yield response.value();
1457
1666
  });
1458
1667
  }
1668
+ /**
1669
+ * Creates request options for updateLabelVMs without sending the request
1670
+ */
1671
+ updateLabelVMsRequestOpts(requestParameters) {
1672
+ return __awaiter(this, void 0, void 0, function* () {
1673
+ if (requestParameters['label'] == null) {
1674
+ throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling updateLabelVMs().');
1675
+ }
1676
+ if (requestParameters['updateLabelVMsRequest'] == null) {
1677
+ throw new runtime.RequiredError('updateLabelVMsRequest', 'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLabelVMs().');
1678
+ }
1679
+ const queryParameters = {};
1680
+ const headerParameters = {};
1681
+ headerParameters['Content-Type'] = 'application/json';
1682
+ let urlPath = `/vms/labels/{label}`;
1683
+ urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
1684
+ return {
1685
+ path: urlPath,
1686
+ method: 'PATCH',
1687
+ headers: headerParameters,
1688
+ query: queryParameters,
1689
+ body: UpdateLabelVMsRequestToJSON(requestParameters['updateLabelVMsRequest']),
1690
+ };
1691
+ });
1692
+ }
1693
+ /**
1694
+ * Modify label VM membership (add/remove label to/from VMs)
1695
+ */
1696
+ updateLabelVMsRaw(requestParameters, initOverrides) {
1697
+ return __awaiter(this, void 0, void 0, function* () {
1698
+ const requestOptions = yield this.updateLabelVMsRequestOpts(requestParameters);
1699
+ const response = yield this.request(requestOptions, initOverrides);
1700
+ return new runtime.VoidApiResponse(response);
1701
+ });
1702
+ }
1703
+ /**
1704
+ * Modify label VM membership (add/remove label to/from VMs)
1705
+ */
1706
+ updateLabelVMs(requestParameters, initOverrides) {
1707
+ return __awaiter(this, void 0, void 0, function* () {
1708
+ yield this.updateLabelVMsRaw(requestParameters, initOverrides);
1709
+ });
1710
+ }
1711
+ /**
1712
+ * Creates request options for updateVM without sending the request
1713
+ */
1714
+ updateVMRequestOpts(requestParameters) {
1715
+ return __awaiter(this, void 0, void 0, function* () {
1716
+ if (requestParameters['id'] == null) {
1717
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateVM().');
1718
+ }
1719
+ if (requestParameters['virtualMachineUpdateRequest'] == null) {
1720
+ throw new runtime.RequiredError('virtualMachineUpdateRequest', 'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateVM().');
1721
+ }
1722
+ const queryParameters = {};
1723
+ const headerParameters = {};
1724
+ headerParameters['Content-Type'] = 'application/json';
1725
+ let urlPath = `/vms/{id}`;
1726
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1727
+ return {
1728
+ path: urlPath,
1729
+ method: 'PATCH',
1730
+ headers: headerParameters,
1731
+ query: queryParameters,
1732
+ body: VirtualMachineUpdateRequestToJSON(requestParameters['virtualMachineUpdateRequest']),
1733
+ };
1734
+ });
1735
+ }
1736
+ /**
1737
+ * Update VM properties
1738
+ */
1739
+ updateVMRaw(requestParameters, initOverrides) {
1740
+ return __awaiter(this, void 0, void 0, function* () {
1741
+ const requestOptions = yield this.updateVMRequestOpts(requestParameters);
1742
+ const response = yield this.request(requestOptions, initOverrides);
1743
+ return new runtime.VoidApiResponse(response);
1744
+ });
1745
+ }
1746
+ /**
1747
+ * Update VM properties
1748
+ */
1749
+ updateVM(requestParameters, initOverrides) {
1750
+ return __awaiter(this, void 0, void 0, function* () {
1751
+ yield this.updateVMRaw(requestParameters, initOverrides);
1752
+ });
1753
+ }
1754
+ /**
1755
+ * Creates request options for validateInspectorCredentials without sending the request
1756
+ */
1757
+ validateInspectorCredentialsRequestOpts(requestParameters) {
1758
+ return __awaiter(this, void 0, void 0, function* () {
1759
+ if (requestParameters['vcenterCredentials'] == null) {
1760
+ throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling validateInspectorCredentials().');
1761
+ }
1762
+ const queryParameters = {};
1763
+ const headerParameters = {};
1764
+ headerParameters['Content-Type'] = 'application/json';
1765
+ let urlPath = `/inspector/credentials`;
1766
+ return {
1767
+ path: urlPath,
1768
+ method: 'POST',
1769
+ headers: headerParameters,
1770
+ query: queryParameters,
1771
+ body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
1772
+ };
1773
+ });
1774
+ }
1775
+ /**
1776
+ * Validate vCenter credentials for inspector
1777
+ */
1778
+ validateInspectorCredentialsRaw(requestParameters, initOverrides) {
1779
+ return __awaiter(this, void 0, void 0, function* () {
1780
+ const requestOptions = yield this.validateInspectorCredentialsRequestOpts(requestParameters);
1781
+ const response = yield this.request(requestOptions, initOverrides);
1782
+ return new runtime.VoidApiResponse(response);
1783
+ });
1784
+ }
1785
+ /**
1786
+ * Validate vCenter credentials for inspector
1787
+ */
1788
+ validateInspectorCredentials(requestParameters, initOverrides) {
1789
+ return __awaiter(this, void 0, void 0, function* () {
1790
+ yield this.validateInspectorCredentialsRaw(requestParameters, initOverrides);
1791
+ });
1792
+ }
1459
1793
  }
@@ -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
+ }