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

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 +20 -4
  3. package/dist/apis/DefaultApi.d.ts +338 -41
  4. package/dist/apis/DefaultApi.js +374 -46
  5. package/dist/esm/apis/DefaultApi.d.ts +338 -41
  6. package/dist/esm/apis/DefaultApi.js +374 -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 +30 -6
  52. package/dist/esm/models/VirtualMachine.js +18 -10
  53. package/dist/esm/models/VirtualMachineDetail.d.ts +12 -0
  54. package/dist/esm/models/VirtualMachineDetail.js +4 -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 +30 -6
  106. package/dist/models/VirtualMachine.js +18 -10
  107. package/dist/models/VirtualMachineDetail.d.ts +12 -0
  108. package/dist/models/VirtualMachineDetail.js +4 -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 +624 -86
  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 +18 -10
  140. package/docs/VirtualMachineDetail.md +4 -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 +713 -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 +48 -16
  168. package/src/models/VirtualMachineDetail.ts +16 -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
  */
@@ -209,6 +254,45 @@ export class DefaultApi extends runtime.BaseAPI {
209
254
  return yield response.value();
210
255
  });
211
256
  }
257
+ /**
258
+ * Creates request options for getClusterUtilization without sending the request
259
+ */
260
+ getClusterUtilizationRequestOpts(requestParameters) {
261
+ return __awaiter(this, void 0, void 0, function* () {
262
+ if (requestParameters['clusterId'] == null) {
263
+ throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().');
264
+ }
265
+ const queryParameters = {};
266
+ const headerParameters = {};
267
+ let urlPath = `/clusters/{cluster_id}/utilization`;
268
+ urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
269
+ return {
270
+ path: urlPath,
271
+ method: 'GET',
272
+ headers: headerParameters,
273
+ query: queryParameters,
274
+ };
275
+ });
276
+ }
277
+ /**
278
+ * Get latest cluster utilization by cluster ID
279
+ */
280
+ getClusterUtilizationRaw(requestParameters, initOverrides) {
281
+ return __awaiter(this, void 0, void 0, function* () {
282
+ const requestOptions = yield this.getClusterUtilizationRequestOpts(requestParameters);
283
+ const response = yield this.request(requestOptions, initOverrides);
284
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
285
+ });
286
+ }
287
+ /**
288
+ * Get latest cluster utilization by cluster ID
289
+ */
290
+ getClusterUtilization(requestParameters, initOverrides) {
291
+ return __awaiter(this, void 0, void 0, function* () {
292
+ const response = yield this.getClusterUtilizationRaw(requestParameters, initOverrides);
293
+ return yield response.value();
294
+ });
295
+ }
212
296
  /**
213
297
  * Creates request options for getCollectorStatus without sending the request
214
298
  */
@@ -460,9 +544,6 @@ export class DefaultApi extends runtime.BaseAPI {
460
544
  if (requestParameters['includeVddk'] != null) {
461
545
  queryParameters['includeVddk'] = requestParameters['includeVddk'];
462
546
  }
463
- if (requestParameters['includeCredentials'] != null) {
464
- queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
465
- }
466
547
  const headerParameters = {};
467
548
  let urlPath = `/inspector`;
468
549
  return {
@@ -570,6 +651,7 @@ export class DefaultApi extends runtime.BaseAPI {
570
651
  }
571
652
  /**
572
653
  * Creates request options for getLatestRightsizingClusters without sending the request
654
+ * @deprecated
573
655
  */
574
656
  getLatestRightsizingClustersRequestOpts(requestParameters) {
575
657
  return __awaiter(this, void 0, void 0, function* () {
@@ -589,6 +671,7 @@ export class DefaultApi extends runtime.BaseAPI {
589
671
  }
590
672
  /**
591
673
  * Get cluster-level utilization aggregates for the latest completed report
674
+ * @deprecated
592
675
  */
593
676
  getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
594
677
  return __awaiter(this, void 0, void 0, function* () {
@@ -599,6 +682,7 @@ export class DefaultApi extends runtime.BaseAPI {
599
682
  }
600
683
  /**
601
684
  * Get cluster-level utilization aggregates for the latest completed report
685
+ * @deprecated
602
686
  */
603
687
  getLatestRightsizingClusters() {
604
688
  return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
@@ -611,13 +695,13 @@ export class DefaultApi extends runtime.BaseAPI {
611
695
  */
612
696
  getRightsizingReportRequestOpts(requestParameters) {
613
697
  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().');
698
+ if (requestParameters['reportId'] == null) {
699
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReport().');
616
700
  }
617
701
  const queryParameters = {};
618
702
  const headerParameters = {};
619
- let urlPath = `/rightsizing/{id}`;
620
- urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
703
+ let urlPath = `/rightsizing/{report_id}`;
704
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
621
705
  return {
622
706
  path: urlPath,
623
707
  method: 'GET',
@@ -645,8 +729,52 @@ export class DefaultApi extends runtime.BaseAPI {
645
729
  return yield response.value();
646
730
  });
647
731
  }
732
+ /**
733
+ * Creates request options for getRightsizingReportCluster without sending the request
734
+ */
735
+ getRightsizingReportClusterRequestOpts(requestParameters) {
736
+ return __awaiter(this, void 0, void 0, function* () {
737
+ if (requestParameters['reportId'] == null) {
738
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportCluster().');
739
+ }
740
+ if (requestParameters['clusterId'] == null) {
741
+ throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getRightsizingReportCluster().');
742
+ }
743
+ const queryParameters = {};
744
+ const headerParameters = {};
745
+ let urlPath = `/rightsizing/{report_id}/clusters/{cluster_id}`;
746
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
747
+ urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
748
+ return {
749
+ path: urlPath,
750
+ method: 'GET',
751
+ headers: headerParameters,
752
+ query: queryParameters,
753
+ };
754
+ });
755
+ }
756
+ /**
757
+ * Get utilization for a specific cluster from a specific report
758
+ */
759
+ getRightsizingReportClusterRaw(requestParameters, initOverrides) {
760
+ return __awaiter(this, void 0, void 0, function* () {
761
+ const requestOptions = yield this.getRightsizingReportClusterRequestOpts(requestParameters);
762
+ const response = yield this.request(requestOptions, initOverrides);
763
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
764
+ });
765
+ }
766
+ /**
767
+ * Get utilization for a specific cluster from a specific report
768
+ */
769
+ getRightsizingReportCluster(requestParameters, initOverrides) {
770
+ return __awaiter(this, void 0, void 0, function* () {
771
+ const response = yield this.getRightsizingReportClusterRaw(requestParameters, initOverrides);
772
+ return yield response.value();
773
+ });
774
+ }
648
775
  /**
649
776
  * Creates request options for getRightsizingReportClusters without sending the request
777
+ * @deprecated
650
778
  */
651
779
  getRightsizingReportClustersRequestOpts(requestParameters) {
652
780
  return __awaiter(this, void 0, void 0, function* () {
@@ -670,6 +798,7 @@ export class DefaultApi extends runtime.BaseAPI {
670
798
  }
671
799
  /**
672
800
  * Get cluster-level utilization aggregates for a specific report
801
+ * @deprecated
673
802
  */
674
803
  getRightsizingReportClustersRaw(requestParameters, initOverrides) {
675
804
  return __awaiter(this, void 0, void 0, function* () {
@@ -680,6 +809,7 @@ export class DefaultApi extends runtime.BaseAPI {
680
809
  }
681
810
  /**
682
811
  * Get cluster-level utilization aggregates for a specific report
812
+ * @deprecated
683
813
  */
684
814
  getRightsizingReportClusters(requestParameters, initOverrides) {
685
815
  return __awaiter(this, void 0, void 0, function* () {
@@ -726,6 +856,41 @@ export class DefaultApi extends runtime.BaseAPI {
726
856
  return yield response.value();
727
857
  });
728
858
  }
859
+ /**
860
+ * Creates request options for getVMLabels without sending the request
861
+ */
862
+ getVMLabelsRequestOpts() {
863
+ return __awaiter(this, void 0, void 0, function* () {
864
+ const queryParameters = {};
865
+ const headerParameters = {};
866
+ let urlPath = `/vms/labels`;
867
+ return {
868
+ path: urlPath,
869
+ method: 'GET',
870
+ headers: headerParameters,
871
+ query: queryParameters,
872
+ };
873
+ });
874
+ }
875
+ /**
876
+ * Get all distinct labels in use across VMs
877
+ */
878
+ getVMLabelsRaw(initOverrides) {
879
+ return __awaiter(this, void 0, void 0, function* () {
880
+ const requestOptions = yield this.getVMLabelsRequestOpts();
881
+ const response = yield this.request(requestOptions, initOverrides);
882
+ return new runtime.JSONApiResponse(response, (jsonValue) => VMLabelsResponseFromJSON(jsonValue));
883
+ });
884
+ }
885
+ /**
886
+ * Get all distinct labels in use across VMs
887
+ */
888
+ getVMLabels(initOverrides) {
889
+ return __awaiter(this, void 0, void 0, function* () {
890
+ const response = yield this.getVMLabelsRaw(initOverrides);
891
+ return yield response.value();
892
+ });
893
+ }
729
894
  /**
730
895
  * Creates request options for getVMUtilization without sending the request
731
896
  */
@@ -812,6 +977,41 @@ export class DefaultApi extends runtime.BaseAPI {
812
977
  return yield response.value();
813
978
  });
814
979
  }
980
+ /**
981
+ * Creates request options for getVMsFilterOptions without sending the request
982
+ */
983
+ getVMsFilterOptionsRequestOpts() {
984
+ return __awaiter(this, void 0, void 0, function* () {
985
+ const queryParameters = {};
986
+ const headerParameters = {};
987
+ let urlPath = `/vms/filter-options`;
988
+ return {
989
+ path: urlPath,
990
+ method: 'GET',
991
+ headers: headerParameters,
992
+ query: queryParameters,
993
+ };
994
+ });
995
+ }
996
+ /**
997
+ * Get distinct filter option values for VMs
998
+ */
999
+ getVMsFilterOptionsRaw(initOverrides) {
1000
+ return __awaiter(this, void 0, void 0, function* () {
1001
+ const requestOptions = yield this.getVMsFilterOptionsRequestOpts();
1002
+ const response = yield this.request(requestOptions, initOverrides);
1003
+ return new runtime.JSONApiResponse(response, (jsonValue) => VMFilterOptionsResponseFromJSON(jsonValue));
1004
+ });
1005
+ }
1006
+ /**
1007
+ * Get distinct filter option values for VMs
1008
+ */
1009
+ getVMsFilterOptions(initOverrides) {
1010
+ return __awaiter(this, void 0, void 0, function* () {
1011
+ const response = yield this.getVMsFilterOptionsRaw(initOverrides);
1012
+ return yield response.value();
1013
+ });
1014
+ }
815
1015
  /**
816
1016
  * Creates request options for getVersion without sending the request
817
1017
  */
@@ -891,6 +1091,48 @@ export class DefaultApi extends runtime.BaseAPI {
891
1091
  return yield response.value();
892
1092
  });
893
1093
  }
1094
+ /**
1095
+ * Creates request options for listRightsizingReportClusters without sending the request
1096
+ */
1097
+ listRightsizingReportClustersRequestOpts(requestParameters) {
1098
+ return __awaiter(this, void 0, void 0, function* () {
1099
+ if (requestParameters['reportId'] == null) {
1100
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling listRightsizingReportClusters().');
1101
+ }
1102
+ const queryParameters = {};
1103
+ if (requestParameters['byExpression'] != null) {
1104
+ queryParameters['byExpression'] = requestParameters['byExpression'];
1105
+ }
1106
+ const headerParameters = {};
1107
+ let urlPath = `/rightsizing/{report_id}/clusters`;
1108
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
1109
+ return {
1110
+ path: urlPath,
1111
+ method: 'GET',
1112
+ headers: headerParameters,
1113
+ query: queryParameters,
1114
+ };
1115
+ });
1116
+ }
1117
+ /**
1118
+ * Get cluster-level utilization aggregates for a specific report
1119
+ */
1120
+ listRightsizingReportClustersRaw(requestParameters, initOverrides) {
1121
+ return __awaiter(this, void 0, void 0, function* () {
1122
+ const requestOptions = yield this.listRightsizingReportClustersRequestOpts(requestParameters);
1123
+ const response = yield this.request(requestOptions, initOverrides);
1124
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
1125
+ });
1126
+ }
1127
+ /**
1128
+ * Get cluster-level utilization aggregates for a specific report
1129
+ */
1130
+ listRightsizingReportClusters(requestParameters, initOverrides) {
1131
+ return __awaiter(this, void 0, void 0, function* () {
1132
+ const response = yield this.listRightsizingReportClustersRaw(requestParameters, initOverrides);
1133
+ return yield response.value();
1134
+ });
1135
+ }
894
1136
  /**
895
1137
  * Creates request options for listRightsizingReports without sending the request
896
1138
  */
@@ -1009,45 +1251,6 @@ export class DefaultApi extends runtime.BaseAPI {
1009
1251
  yield this.putForecasterCredentialsRaw(requestParameters, initOverrides);
1010
1252
  });
1011
1253
  }
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
1254
  /**
1052
1255
  * Creates request options for putInspectorVddk without sending the request
1053
1256
  */
@@ -1537,4 +1740,129 @@ export class DefaultApi extends runtime.BaseAPI {
1537
1740
  return yield response.value();
1538
1741
  });
1539
1742
  }
1743
+ /**
1744
+ * Creates request options for updateLabelVMs without sending the request
1745
+ */
1746
+ updateLabelVMsRequestOpts(requestParameters) {
1747
+ return __awaiter(this, void 0, void 0, function* () {
1748
+ if (requestParameters['label'] == null) {
1749
+ throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling updateLabelVMs().');
1750
+ }
1751
+ if (requestParameters['updateLabelVMsRequest'] == null) {
1752
+ throw new runtime.RequiredError('updateLabelVMsRequest', 'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLabelVMs().');
1753
+ }
1754
+ const queryParameters = {};
1755
+ const headerParameters = {};
1756
+ headerParameters['Content-Type'] = 'application/json';
1757
+ let urlPath = `/vms/labels/{label}`;
1758
+ urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
1759
+ return {
1760
+ path: urlPath,
1761
+ method: 'PATCH',
1762
+ headers: headerParameters,
1763
+ query: queryParameters,
1764
+ body: UpdateLabelVMsRequestToJSON(requestParameters['updateLabelVMsRequest']),
1765
+ };
1766
+ });
1767
+ }
1768
+ /**
1769
+ * Modify label VM membership (add/remove label to/from VMs)
1770
+ */
1771
+ updateLabelVMsRaw(requestParameters, initOverrides) {
1772
+ return __awaiter(this, void 0, void 0, function* () {
1773
+ const requestOptions = yield this.updateLabelVMsRequestOpts(requestParameters);
1774
+ const response = yield this.request(requestOptions, initOverrides);
1775
+ return new runtime.VoidApiResponse(response);
1776
+ });
1777
+ }
1778
+ /**
1779
+ * Modify label VM membership (add/remove label to/from VMs)
1780
+ */
1781
+ updateLabelVMs(requestParameters, initOverrides) {
1782
+ return __awaiter(this, void 0, void 0, function* () {
1783
+ yield this.updateLabelVMsRaw(requestParameters, initOverrides);
1784
+ });
1785
+ }
1786
+ /**
1787
+ * Creates request options for updateVM without sending the request
1788
+ */
1789
+ updateVMRequestOpts(requestParameters) {
1790
+ return __awaiter(this, void 0, void 0, function* () {
1791
+ if (requestParameters['id'] == null) {
1792
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateVM().');
1793
+ }
1794
+ if (requestParameters['virtualMachineUpdateRequest'] == null) {
1795
+ throw new runtime.RequiredError('virtualMachineUpdateRequest', 'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateVM().');
1796
+ }
1797
+ const queryParameters = {};
1798
+ const headerParameters = {};
1799
+ headerParameters['Content-Type'] = 'application/json';
1800
+ let urlPath = `/vms/{id}`;
1801
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1802
+ return {
1803
+ path: urlPath,
1804
+ method: 'PATCH',
1805
+ headers: headerParameters,
1806
+ query: queryParameters,
1807
+ body: VirtualMachineUpdateRequestToJSON(requestParameters['virtualMachineUpdateRequest']),
1808
+ };
1809
+ });
1810
+ }
1811
+ /**
1812
+ * Update VM properties
1813
+ */
1814
+ updateVMRaw(requestParameters, initOverrides) {
1815
+ return __awaiter(this, void 0, void 0, function* () {
1816
+ const requestOptions = yield this.updateVMRequestOpts(requestParameters);
1817
+ const response = yield this.request(requestOptions, initOverrides);
1818
+ return new runtime.VoidApiResponse(response);
1819
+ });
1820
+ }
1821
+ /**
1822
+ * Update VM properties
1823
+ */
1824
+ updateVM(requestParameters, initOverrides) {
1825
+ return __awaiter(this, void 0, void 0, function* () {
1826
+ yield this.updateVMRaw(requestParameters, initOverrides);
1827
+ });
1828
+ }
1829
+ /**
1830
+ * Creates request options for validateInspectorCredentials without sending the request
1831
+ */
1832
+ validateInspectorCredentialsRequestOpts(requestParameters) {
1833
+ return __awaiter(this, void 0, void 0, function* () {
1834
+ if (requestParameters['vcenterCredentials'] == null) {
1835
+ throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling validateInspectorCredentials().');
1836
+ }
1837
+ const queryParameters = {};
1838
+ const headerParameters = {};
1839
+ headerParameters['Content-Type'] = 'application/json';
1840
+ let urlPath = `/inspector/credentials`;
1841
+ return {
1842
+ path: urlPath,
1843
+ method: 'POST',
1844
+ headers: headerParameters,
1845
+ query: queryParameters,
1846
+ body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
1847
+ };
1848
+ });
1849
+ }
1850
+ /**
1851
+ * Validate vCenter credentials for inspector
1852
+ */
1853
+ validateInspectorCredentialsRaw(requestParameters, initOverrides) {
1854
+ return __awaiter(this, void 0, void 0, function* () {
1855
+ const requestOptions = yield this.validateInspectorCredentialsRequestOpts(requestParameters);
1856
+ const response = yield this.request(requestOptions, initOverrides);
1857
+ return new runtime.VoidApiResponse(response);
1858
+ });
1859
+ }
1860
+ /**
1861
+ * Validate vCenter credentials for inspector
1862
+ */
1863
+ validateInspectorCredentials(requestParameters, initOverrides) {
1864
+ return __awaiter(this, void 0, void 0, function* () {
1865
+ yield this.validateInspectorCredentialsRaw(requestParameters, initOverrides);
1866
+ });
1867
+ }
1540
1868
  }
@@ -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;