@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
@@ -48,6 +48,11 @@ import {
48
48
  DatastoreDetailFromJSON,
49
49
  DatastoreDetailToJSON,
50
50
  } from '../models/DatastoreDetail.js';
51
+ import {
52
+ type DeleteLabelGloballyResponse,
53
+ DeleteLabelGloballyResponseFromJSON,
54
+ DeleteLabelGloballyResponseToJSON,
55
+ } from '../models/DeleteLabelGloballyResponse.js';
51
56
  import {
52
57
  type ForecastStats,
53
58
  ForecastStatsFromJSON,
@@ -108,6 +113,16 @@ import {
108
113
  PutForecasterCredentials403ResponseFromJSON,
109
114
  PutForecasterCredentials403ResponseToJSON,
110
115
  } from '../models/PutForecasterCredentials403Response.js';
116
+ import {
117
+ type RightsizingClusterListResponse,
118
+ RightsizingClusterListResponseFromJSON,
119
+ RightsizingClusterListResponseToJSON,
120
+ } from '../models/RightsizingClusterListResponse.js';
121
+ import {
122
+ type RightsizingClusterResponse,
123
+ RightsizingClusterResponseFromJSON,
124
+ RightsizingClusterResponseToJSON,
125
+ } from '../models/RightsizingClusterResponse.js';
111
126
  import {
112
127
  type RightsizingCollectRequest,
113
128
  RightsizingCollectRequestFromJSON,
@@ -143,6 +158,16 @@ import {
143
158
  UpdateGroupRequestFromJSON,
144
159
  UpdateGroupRequestToJSON,
145
160
  } from '../models/UpdateGroupRequest.js';
161
+ import {
162
+ type UpdateLabelVMsRequest,
163
+ UpdateLabelVMsRequestFromJSON,
164
+ UpdateLabelVMsRequestToJSON,
165
+ } from '../models/UpdateLabelVMsRequest.js';
166
+ import {
167
+ type VMLabelsResponse,
168
+ VMLabelsResponseFromJSON,
169
+ VMLabelsResponseToJSON,
170
+ } from '../models/VMLabelsResponse.js';
146
171
  import {
147
172
  type VcenterCredentials,
148
173
  VcenterCredentialsFromJSON,
@@ -168,6 +193,11 @@ import {
168
193
  VirtualMachineListResponseFromJSON,
169
194
  VirtualMachineListResponseToJSON,
170
195
  } from '../models/VirtualMachineListResponse.js';
196
+ import {
197
+ type VirtualMachineUpdateRequest,
198
+ VirtualMachineUpdateRequestFromJSON,
199
+ VirtualMachineUpdateRequestToJSON,
200
+ } from '../models/VirtualMachineUpdateRequest.js';
171
201
  import {
172
202
  type VmInspectionStatus,
173
203
  VmInspectionStatusFromJSON,
@@ -191,6 +221,10 @@ export interface DeleteGroupRequest {
191
221
  id: string;
192
222
  }
193
223
 
224
+ export interface DeleteLabelGloballyRequest {
225
+ label: string;
226
+ }
227
+
194
228
  export interface GetForecasterDatastoresRequest {
195
229
  forecasterDatastoresRequest?: ForecasterDatastoresRequest;
196
230
  }
@@ -212,7 +246,6 @@ export interface GetGroupRequest {
212
246
 
213
247
  export interface GetInspectorStatusRequest {
214
248
  includeVddk?: boolean;
215
- includeCredentials?: boolean;
216
249
  }
217
250
 
218
251
  export interface GetInventoryRequest {
@@ -220,8 +253,22 @@ export interface GetInventoryRequest {
220
253
  groupId?: string;
221
254
  }
222
255
 
256
+ export interface GetLatestRightsizingClustersRequest {
257
+ byExpression?: string;
258
+ }
259
+
223
260
  export interface GetRightsizingReportRequest {
224
- id: string;
261
+ reportId: string;
262
+ }
263
+
264
+ export interface GetRightsizingReportClusterRequest {
265
+ reportId: string;
266
+ clusterId: string;
267
+ }
268
+
269
+ export interface GetRightsizingReportClustersRequest {
270
+ reportId: string;
271
+ byExpression?: string;
225
272
  }
226
273
 
227
274
  export interface GetVMRequest {
@@ -245,6 +292,11 @@ export interface ListGroupsRequest {
245
292
  pageSize?: number;
246
293
  }
247
294
 
295
+ export interface ListRightsizingReportClustersRequest {
296
+ reportId: string;
297
+ byExpression?: string;
298
+ }
299
+
248
300
  export interface PostForecasterPairCapabilitiesRequest {
249
301
  pairCapabilityRequest: PairCapabilityRequest;
250
302
  }
@@ -253,10 +305,6 @@ export interface PutForecasterCredentialsRequest {
253
305
  vcenterCredentials: VcenterCredentials;
254
306
  }
255
307
 
256
- export interface PutInspectorCredentialsRequest {
257
- vcenterCredentials: VcenterCredentials;
258
- }
259
-
260
308
  export interface PutInspectorVddkRequest {
261
309
  file: Blob;
262
310
  }
@@ -294,6 +342,20 @@ export interface UpdateGroupOperationRequest {
294
342
  updateGroupRequest: UpdateGroupRequest;
295
343
  }
296
344
 
345
+ export interface UpdateLabelVMsOperationRequest {
346
+ label: string;
347
+ updateLabelVMsRequest: UpdateLabelVMsRequest;
348
+ }
349
+
350
+ export interface UpdateVMRequest {
351
+ id: string;
352
+ virtualMachineUpdateRequest: VirtualMachineUpdateRequest;
353
+ }
354
+
355
+ export interface ValidateInspectorCredentialsRequest {
356
+ vcenterCredentials: VcenterCredentials;
357
+ }
358
+
297
359
  /**
298
360
  * DefaultApi - interface
299
361
  *
@@ -370,6 +432,29 @@ export interface DefaultApiInterface {
370
432
  */
371
433
  deleteGroup(requestParameters: DeleteGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
372
434
 
435
+ /**
436
+ * Creates request options for deleteLabelGlobally without sending the request
437
+ * @param {string} label The label to remove from all VMs
438
+ * @throws {RequiredError}
439
+ * @memberof DefaultApiInterface
440
+ */
441
+ deleteLabelGloballyRequestOpts(requestParameters: DeleteLabelGloballyRequest): Promise<runtime.RequestOpts>;
442
+
443
+ /**
444
+ *
445
+ * @summary Delete label from all VMs
446
+ * @param {string} label The label to remove from all VMs
447
+ * @param {*} [options] Override http request option.
448
+ * @throws {RequiredError}
449
+ * @memberof DefaultApiInterface
450
+ */
451
+ deleteLabelGloballyRaw(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteLabelGloballyResponse>>;
452
+
453
+ /**
454
+ * Delete label from all VMs
455
+ */
456
+ deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse>;
457
+
373
458
  /**
374
459
  * Creates request options for getAgentStatus without sending the request
375
460
  * @throws {RequiredError}
@@ -538,7 +623,6 @@ export interface DefaultApiInterface {
538
623
  /**
539
624
  * Creates request options for getInspectorStatus without sending the request
540
625
  * @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (&#x60;version&#x60;, &#x60;md5&#x60;) when present. omitted if VDDK was never uploaded.
541
- * @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
542
626
  * @throws {RequiredError}
543
627
  * @memberof DefaultApiInterface
544
628
  */
@@ -548,7 +632,6 @@ export interface DefaultApiInterface {
548
632
  *
549
633
  * @summary Get inspector status
550
634
  * @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (&#x60;version&#x60;, &#x60;md5&#x60;) when present. omitted if VDDK was never uploaded.
551
- * @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
552
635
  * @param {*} [options] Override http request option.
553
636
  * @throws {RequiredError}
554
637
  * @memberof DefaultApiInterface
@@ -606,9 +689,35 @@ export interface DefaultApiInterface {
606
689
  */
607
690
  getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
608
691
 
692
+ /**
693
+ * Creates request options for getLatestRightsizingClusters without sending the request
694
+ * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
695
+ * @deprecated
696
+ * @throws {RequiredError}
697
+ * @memberof DefaultApiInterface
698
+ */
699
+ getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
700
+
701
+ /**
702
+ *
703
+ * @summary Get cluster-level utilization aggregates for the latest completed report
704
+ * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
705
+ * @param {*} [options] Override http request option.
706
+ * @deprecated
707
+ * @throws {RequiredError}
708
+ * @memberof DefaultApiInterface
709
+ */
710
+ getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
711
+
712
+ /**
713
+ * Get cluster-level utilization aggregates for the latest completed report
714
+ * @deprecated
715
+ */
716
+ getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
717
+
609
718
  /**
610
719
  * Creates request options for getRightsizingReport without sending the request
611
- * @param {string} id Report UUID
720
+ * @param {string} reportId Report UUID
612
721
  * @throws {RequiredError}
613
722
  * @memberof DefaultApiInterface
614
723
  */
@@ -617,7 +726,7 @@ export interface DefaultApiInterface {
617
726
  /**
618
727
  *
619
728
  * @summary Get a specific rightsizing report with full VM metrics
620
- * @param {string} id Report UUID
729
+ * @param {string} reportId Report UUID
621
730
  * @param {*} [options] Override http request option.
622
731
  * @throws {RequiredError}
623
732
  * @memberof DefaultApiInterface
@@ -629,6 +738,59 @@ export interface DefaultApiInterface {
629
738
  */
630
739
  getRightsizingReport(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReport>;
631
740
 
741
+ /**
742
+ * Creates request options for getRightsizingReportCluster without sending the request
743
+ * @param {string} reportId Rightsizing report UUID
744
+ * @param {string} clusterId vSphere MoRef (e.g. \&quot;domain-c123\&quot;) or generated cluster ID (e.g. \&quot;cluster-a3f7b2c1d4e89012\&quot;)
745
+ * @throws {RequiredError}
746
+ * @memberof DefaultApiInterface
747
+ */
748
+ getRightsizingReportClusterRequestOpts(requestParameters: GetRightsizingReportClusterRequest): Promise<runtime.RequestOpts>;
749
+
750
+ /**
751
+ *
752
+ * @summary Get utilization for a specific cluster from a specific report
753
+ * @param {string} reportId Rightsizing report UUID
754
+ * @param {string} clusterId vSphere MoRef (e.g. \&quot;domain-c123\&quot;) or generated cluster ID (e.g. \&quot;cluster-a3f7b2c1d4e89012\&quot;)
755
+ * @param {*} [options] Override http request option.
756
+ * @throws {RequiredError}
757
+ * @memberof DefaultApiInterface
758
+ */
759
+ getRightsizingReportClusterRaw(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>>;
760
+
761
+ /**
762
+ * Get utilization for a specific cluster from a specific report
763
+ */
764
+ getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
765
+
766
+ /**
767
+ * Creates request options for getRightsizingReportClusters without sending the request
768
+ * @param {string} reportId Rightsizing report UUID
769
+ * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
770
+ * @deprecated
771
+ * @throws {RequiredError}
772
+ * @memberof DefaultApiInterface
773
+ */
774
+ getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
775
+
776
+ /**
777
+ *
778
+ * @summary Get cluster-level utilization aggregates for a specific report
779
+ * @param {string} reportId Rightsizing report UUID
780
+ * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
781
+ * @param {*} [options] Override http request option.
782
+ * @deprecated
783
+ * @throws {RequiredError}
784
+ * @memberof DefaultApiInterface
785
+ */
786
+ getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
787
+
788
+ /**
789
+ * Get cluster-level utilization aggregates for a specific report
790
+ * @deprecated
791
+ */
792
+ getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
793
+
632
794
  /**
633
795
  * Creates request options for getVM without sending the request
634
796
  * @param {string} id VirtualMachine id
@@ -652,6 +814,27 @@ export interface DefaultApiInterface {
652
814
  */
653
815
  getVM(requestParameters: GetVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineDetail>;
654
816
 
817
+ /**
818
+ * Creates request options for getVMLabels without sending the request
819
+ * @throws {RequiredError}
820
+ * @memberof DefaultApiInterface
821
+ */
822
+ getVMLabelsRequestOpts(): Promise<runtime.RequestOpts>;
823
+
824
+ /**
825
+ *
826
+ * @summary Get all distinct labels in use across VMs
827
+ * @param {*} [options] Override http request option.
828
+ * @throws {RequiredError}
829
+ * @memberof DefaultApiInterface
830
+ */
831
+ getVMLabelsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMLabelsResponse>>;
832
+
833
+ /**
834
+ * Get all distinct labels in use across VMs
835
+ */
836
+ getVMLabels(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMLabelsResponse>;
837
+
655
838
  /**
656
839
  * Creates request options for getVMUtilization without sending the request
657
840
  * @param {string} id VirtualMachine MoRef ID
@@ -752,6 +935,31 @@ export interface DefaultApiInterface {
752
935
  */
753
936
  listGroups(requestParameters: ListGroupsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupListResponse>;
754
937
 
938
+ /**
939
+ * Creates request options for listRightsizingReportClusters without sending the request
940
+ * @param {string} reportId Rightsizing report UUID
941
+ * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
942
+ * @throws {RequiredError}
943
+ * @memberof DefaultApiInterface
944
+ */
945
+ listRightsizingReportClustersRequestOpts(requestParameters: ListRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
946
+
947
+ /**
948
+ *
949
+ * @summary Get cluster-level utilization aggregates for a specific report
950
+ * @param {string} reportId Rightsizing report UUID
951
+ * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
952
+ * @param {*} [options] Override http request option.
953
+ * @throws {RequiredError}
954
+ * @memberof DefaultApiInterface
955
+ */
956
+ listRightsizingReportClustersRaw(requestParameters: ListRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
957
+
958
+ /**
959
+ * Get cluster-level utilization aggregates for a specific report
960
+ */
961
+ listRightsizingReportClusters(requestParameters: ListRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
962
+
755
963
  /**
756
964
  * Creates request options for listRightsizingReports without sending the request
757
965
  * @throws {RequiredError}
@@ -821,29 +1029,6 @@ export interface DefaultApiInterface {
821
1029
  */
822
1030
  putForecasterCredentials(requestParameters: PutForecasterCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
823
1031
 
824
- /**
825
- * Creates request options for putInspectorCredentials without sending the request
826
- * @param {VcenterCredentials} vcenterCredentials
827
- * @throws {RequiredError}
828
- * @memberof DefaultApiInterface
829
- */
830
- putInspectorCredentialsRequestOpts(requestParameters: PutInspectorCredentialsRequest): Promise<runtime.RequestOpts>;
831
-
832
- /**
833
- *
834
- * @summary Set or replace inspector credentials
835
- * @param {VcenterCredentials} vcenterCredentials
836
- * @param {*} [options] Override http request option.
837
- * @throws {RequiredError}
838
- * @memberof DefaultApiInterface
839
- */
840
- putInspectorCredentialsRaw(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
841
-
842
- /**
843
- * Set or replace inspector credentials
844
- */
845
- putInspectorCredentials(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
846
-
847
1032
  /**
848
1033
  * Creates request options for putInspectorVddk without sending the request
849
1034
  * @param {Blob} file VDDK tarball
@@ -1119,6 +1304,79 @@ export interface DefaultApiInterface {
1119
1304
  */
1120
1305
  updateGroup(requestParameters: UpdateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Group>;
1121
1306
 
1307
+ /**
1308
+ * Creates request options for updateLabelVMs without sending the request
1309
+ * @param {string} label The label to modify
1310
+ * @param {UpdateLabelVMsRequest} updateLabelVMsRequest
1311
+ * @throws {RequiredError}
1312
+ * @memberof DefaultApiInterface
1313
+ */
1314
+ updateLabelVMsRequestOpts(requestParameters: UpdateLabelVMsOperationRequest): Promise<runtime.RequestOpts>;
1315
+
1316
+ /**
1317
+ *
1318
+ * @summary Modify label VM membership (add/remove label to/from VMs)
1319
+ * @param {string} label The label to modify
1320
+ * @param {UpdateLabelVMsRequest} updateLabelVMsRequest
1321
+ * @param {*} [options] Override http request option.
1322
+ * @throws {RequiredError}
1323
+ * @memberof DefaultApiInterface
1324
+ */
1325
+ updateLabelVMsRaw(requestParameters: UpdateLabelVMsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
1326
+
1327
+ /**
1328
+ * Modify label VM membership (add/remove label to/from VMs)
1329
+ */
1330
+ updateLabelVMs(requestParameters: UpdateLabelVMsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
1331
+
1332
+ /**
1333
+ * Creates request options for updateVM without sending the request
1334
+ * @param {string} id VirtualMachine id
1335
+ * @param {VirtualMachineUpdateRequest} virtualMachineUpdateRequest
1336
+ * @throws {RequiredError}
1337
+ * @memberof DefaultApiInterface
1338
+ */
1339
+ updateVMRequestOpts(requestParameters: UpdateVMRequest): Promise<runtime.RequestOpts>;
1340
+
1341
+ /**
1342
+ *
1343
+ * @summary Update VM properties
1344
+ * @param {string} id VirtualMachine id
1345
+ * @param {VirtualMachineUpdateRequest} virtualMachineUpdateRequest
1346
+ * @param {*} [options] Override http request option.
1347
+ * @throws {RequiredError}
1348
+ * @memberof DefaultApiInterface
1349
+ */
1350
+ updateVMRaw(requestParameters: UpdateVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
1351
+
1352
+ /**
1353
+ * Update VM properties
1354
+ */
1355
+ updateVM(requestParameters: UpdateVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
1356
+
1357
+ /**
1358
+ * Creates request options for validateInspectorCredentials without sending the request
1359
+ * @param {VcenterCredentials} vcenterCredentials
1360
+ * @throws {RequiredError}
1361
+ * @memberof DefaultApiInterface
1362
+ */
1363
+ validateInspectorCredentialsRequestOpts(requestParameters: ValidateInspectorCredentialsRequest): Promise<runtime.RequestOpts>;
1364
+
1365
+ /**
1366
+ *
1367
+ * @summary Validate vCenter credentials for inspector
1368
+ * @param {VcenterCredentials} vcenterCredentials
1369
+ * @param {*} [options] Override http request option.
1370
+ * @throws {RequiredError}
1371
+ * @memberof DefaultApiInterface
1372
+ */
1373
+ validateInspectorCredentialsRaw(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
1374
+
1375
+ /**
1376
+ * Validate vCenter credentials for inspector
1377
+ */
1378
+ validateInspectorCredentials(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
1379
+
1122
1380
  }
1123
1381
 
1124
1382
  /**
@@ -1261,6 +1519,51 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1261
1519
  await this.deleteGroupRaw(requestParameters, initOverrides);
1262
1520
  }
1263
1521
 
1522
+ /**
1523
+ * Creates request options for deleteLabelGlobally without sending the request
1524
+ */
1525
+ async deleteLabelGloballyRequestOpts(requestParameters: DeleteLabelGloballyRequest): Promise<runtime.RequestOpts> {
1526
+ if (requestParameters['label'] == null) {
1527
+ throw new runtime.RequiredError(
1528
+ 'label',
1529
+ 'Required parameter "label" was null or undefined when calling deleteLabelGlobally().'
1530
+ );
1531
+ }
1532
+
1533
+ const queryParameters: any = {};
1534
+
1535
+ const headerParameters: runtime.HTTPHeaders = {};
1536
+
1537
+
1538
+ let urlPath = `/vms/labels/{label}`;
1539
+ urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
1540
+
1541
+ return {
1542
+ path: urlPath,
1543
+ method: 'DELETE',
1544
+ headers: headerParameters,
1545
+ query: queryParameters,
1546
+ };
1547
+ }
1548
+
1549
+ /**
1550
+ * Delete label from all VMs
1551
+ */
1552
+ async deleteLabelGloballyRaw(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteLabelGloballyResponse>> {
1553
+ const requestOptions = await this.deleteLabelGloballyRequestOpts(requestParameters);
1554
+ const response = await this.request(requestOptions, initOverrides);
1555
+
1556
+ return new runtime.JSONApiResponse(response, (jsonValue) => DeleteLabelGloballyResponseFromJSON(jsonValue));
1557
+ }
1558
+
1559
+ /**
1560
+ * Delete label from all VMs
1561
+ */
1562
+ async deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse> {
1563
+ const response = await this.deleteLabelGloballyRaw(requestParameters, initOverrides);
1564
+ return await response.value();
1565
+ }
1566
+
1264
1567
  /**
1265
1568
  * Creates request options for getAgentStatus without sending the request
1266
1569
  */
@@ -1576,10 +1879,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1576
1879
  queryParameters['includeVddk'] = requestParameters['includeVddk'];
1577
1880
  }
1578
1881
 
1579
- if (requestParameters['includeCredentials'] != null) {
1580
- queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
1581
- }
1582
-
1583
1882
  const headerParameters: runtime.HTTPHeaders = {};
1584
1883
 
1585
1884
 
@@ -1694,23 +1993,20 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1694
1993
  }
1695
1994
 
1696
1995
  /**
1697
- * Creates request options for getRightsizingReport without sending the request
1996
+ * Creates request options for getLatestRightsizingClusters without sending the request
1997
+ * @deprecated
1698
1998
  */
1699
- async getRightsizingReportRequestOpts(requestParameters: GetRightsizingReportRequest): Promise<runtime.RequestOpts> {
1700
- if (requestParameters['id'] == null) {
1701
- throw new runtime.RequiredError(
1702
- 'id',
1703
- 'Required parameter "id" was null or undefined when calling getRightsizingReport().'
1704
- );
1705
- }
1706
-
1999
+ async getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts> {
1707
2000
  const queryParameters: any = {};
1708
2001
 
2002
+ if (requestParameters['byExpression'] != null) {
2003
+ queryParameters['byExpression'] = requestParameters['byExpression'];
2004
+ }
2005
+
1709
2006
  const headerParameters: runtime.HTTPHeaders = {};
1710
2007
 
1711
2008
 
1712
- let urlPath = `/rightsizing/{id}`;
1713
- urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
2009
+ let urlPath = `/cluster_rightsizing`;
1714
2010
 
1715
2011
  return {
1716
2012
  path: urlPath,
@@ -1721,31 +2017,33 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1721
2017
  }
1722
2018
 
1723
2019
  /**
1724
- * Get a specific rightsizing report with full VM metrics
2020
+ * Get cluster-level utilization aggregates for the latest completed report
2021
+ * @deprecated
1725
2022
  */
1726
- async getRightsizingReportRaw(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingReport>> {
1727
- const requestOptions = await this.getRightsizingReportRequestOpts(requestParameters);
2023
+ async getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
2024
+ const requestOptions = await this.getLatestRightsizingClustersRequestOpts(requestParameters);
1728
2025
  const response = await this.request(requestOptions, initOverrides);
1729
2026
 
1730
- return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingReportFromJSON(jsonValue));
2027
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
1731
2028
  }
1732
2029
 
1733
2030
  /**
1734
- * Get a specific rightsizing report with full VM metrics
2031
+ * Get cluster-level utilization aggregates for the latest completed report
2032
+ * @deprecated
1735
2033
  */
1736
- async getRightsizingReport(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReport> {
1737
- const response = await this.getRightsizingReportRaw(requestParameters, initOverrides);
2034
+ async getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
2035
+ const response = await this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
1738
2036
  return await response.value();
1739
2037
  }
1740
2038
 
1741
2039
  /**
1742
- * Creates request options for getVM without sending the request
2040
+ * Creates request options for getRightsizingReport without sending the request
1743
2041
  */
1744
- async getVMRequestOpts(requestParameters: GetVMRequest): Promise<runtime.RequestOpts> {
1745
- if (requestParameters['id'] == null) {
2042
+ async getRightsizingReportRequestOpts(requestParameters: GetRightsizingReportRequest): Promise<runtime.RequestOpts> {
2043
+ if (requestParameters['reportId'] == null) {
1746
2044
  throw new runtime.RequiredError(
1747
- 'id',
1748
- 'Required parameter "id" was null or undefined when calling getVM().'
2045
+ 'reportId',
2046
+ 'Required parameter "reportId" was null or undefined when calling getRightsizingReport().'
1749
2047
  );
1750
2048
  }
1751
2049
 
@@ -1754,8 +2052,8 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1754
2052
  const headerParameters: runtime.HTTPHeaders = {};
1755
2053
 
1756
2054
 
1757
- let urlPath = `/vms/{id}`;
1758
- urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
2055
+ let urlPath = `/rightsizing/{report_id}`;
2056
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
1759
2057
 
1760
2058
  return {
1761
2059
  path: urlPath,
@@ -1766,13 +2064,163 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1766
2064
  }
1767
2065
 
1768
2066
  /**
1769
- * Get details about a vm
2067
+ * Get a specific rightsizing report with full VM metrics
1770
2068
  */
1771
- async getVMRaw(requestParameters: GetVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VirtualMachineDetail>> {
1772
- const requestOptions = await this.getVMRequestOpts(requestParameters);
2069
+ async getRightsizingReportRaw(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingReport>> {
2070
+ const requestOptions = await this.getRightsizingReportRequestOpts(requestParameters);
1773
2071
  const response = await this.request(requestOptions, initOverrides);
1774
2072
 
1775
- return new runtime.JSONApiResponse(response, (jsonValue) => VirtualMachineDetailFromJSON(jsonValue));
2073
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingReportFromJSON(jsonValue));
2074
+ }
2075
+
2076
+ /**
2077
+ * Get a specific rightsizing report with full VM metrics
2078
+ */
2079
+ async getRightsizingReport(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReport> {
2080
+ const response = await this.getRightsizingReportRaw(requestParameters, initOverrides);
2081
+ return await response.value();
2082
+ }
2083
+
2084
+ /**
2085
+ * Creates request options for getRightsizingReportCluster without sending the request
2086
+ */
2087
+ async getRightsizingReportClusterRequestOpts(requestParameters: GetRightsizingReportClusterRequest): Promise<runtime.RequestOpts> {
2088
+ if (requestParameters['reportId'] == null) {
2089
+ throw new runtime.RequiredError(
2090
+ 'reportId',
2091
+ 'Required parameter "reportId" was null or undefined when calling getRightsizingReportCluster().'
2092
+ );
2093
+ }
2094
+
2095
+ if (requestParameters['clusterId'] == null) {
2096
+ throw new runtime.RequiredError(
2097
+ 'clusterId',
2098
+ 'Required parameter "clusterId" was null or undefined when calling getRightsizingReportCluster().'
2099
+ );
2100
+ }
2101
+
2102
+ const queryParameters: any = {};
2103
+
2104
+ const headerParameters: runtime.HTTPHeaders = {};
2105
+
2106
+
2107
+ let urlPath = `/rightsizing/{report_id}/clusters/{cluster_id}`;
2108
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
2109
+ urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
2110
+
2111
+ return {
2112
+ path: urlPath,
2113
+ method: 'GET',
2114
+ headers: headerParameters,
2115
+ query: queryParameters,
2116
+ };
2117
+ }
2118
+
2119
+ /**
2120
+ * Get utilization for a specific cluster from a specific report
2121
+ */
2122
+ async getRightsizingReportClusterRaw(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>> {
2123
+ const requestOptions = await this.getRightsizingReportClusterRequestOpts(requestParameters);
2124
+ const response = await this.request(requestOptions, initOverrides);
2125
+
2126
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
2127
+ }
2128
+
2129
+ /**
2130
+ * Get utilization for a specific cluster from a specific report
2131
+ */
2132
+ async getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse> {
2133
+ const response = await this.getRightsizingReportClusterRaw(requestParameters, initOverrides);
2134
+ return await response.value();
2135
+ }
2136
+
2137
+ /**
2138
+ * Creates request options for getRightsizingReportClusters without sending the request
2139
+ * @deprecated
2140
+ */
2141
+ async getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts> {
2142
+ if (requestParameters['reportId'] == null) {
2143
+ throw new runtime.RequiredError(
2144
+ 'reportId',
2145
+ 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().'
2146
+ );
2147
+ }
2148
+
2149
+ const queryParameters: any = {};
2150
+
2151
+ if (requestParameters['byExpression'] != null) {
2152
+ queryParameters['byExpression'] = requestParameters['byExpression'];
2153
+ }
2154
+
2155
+ const headerParameters: runtime.HTTPHeaders = {};
2156
+
2157
+
2158
+ let urlPath = `/cluster_rightsizing/{report_id}`;
2159
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
2160
+
2161
+ return {
2162
+ path: urlPath,
2163
+ method: 'GET',
2164
+ headers: headerParameters,
2165
+ query: queryParameters,
2166
+ };
2167
+ }
2168
+
2169
+ /**
2170
+ * Get cluster-level utilization aggregates for a specific report
2171
+ * @deprecated
2172
+ */
2173
+ async getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
2174
+ const requestOptions = await this.getRightsizingReportClustersRequestOpts(requestParameters);
2175
+ const response = await this.request(requestOptions, initOverrides);
2176
+
2177
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
2178
+ }
2179
+
2180
+ /**
2181
+ * Get cluster-level utilization aggregates for a specific report
2182
+ * @deprecated
2183
+ */
2184
+ async getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
2185
+ const response = await this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
2186
+ return await response.value();
2187
+ }
2188
+
2189
+ /**
2190
+ * Creates request options for getVM without sending the request
2191
+ */
2192
+ async getVMRequestOpts(requestParameters: GetVMRequest): Promise<runtime.RequestOpts> {
2193
+ if (requestParameters['id'] == null) {
2194
+ throw new runtime.RequiredError(
2195
+ 'id',
2196
+ 'Required parameter "id" was null or undefined when calling getVM().'
2197
+ );
2198
+ }
2199
+
2200
+ const queryParameters: any = {};
2201
+
2202
+ const headerParameters: runtime.HTTPHeaders = {};
2203
+
2204
+
2205
+ let urlPath = `/vms/{id}`;
2206
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
2207
+
2208
+ return {
2209
+ path: urlPath,
2210
+ method: 'GET',
2211
+ headers: headerParameters,
2212
+ query: queryParameters,
2213
+ };
2214
+ }
2215
+
2216
+ /**
2217
+ * Get details about a vm
2218
+ */
2219
+ async getVMRaw(requestParameters: GetVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VirtualMachineDetail>> {
2220
+ const requestOptions = await this.getVMRequestOpts(requestParameters);
2221
+ const response = await this.request(requestOptions, initOverrides);
2222
+
2223
+ return new runtime.JSONApiResponse(response, (jsonValue) => VirtualMachineDetailFromJSON(jsonValue));
1776
2224
  }
1777
2225
 
1778
2226
  /**
@@ -1783,6 +2231,43 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1783
2231
  return await response.value();
1784
2232
  }
1785
2233
 
2234
+ /**
2235
+ * Creates request options for getVMLabels without sending the request
2236
+ */
2237
+ async getVMLabelsRequestOpts(): Promise<runtime.RequestOpts> {
2238
+ const queryParameters: any = {};
2239
+
2240
+ const headerParameters: runtime.HTTPHeaders = {};
2241
+
2242
+
2243
+ let urlPath = `/vms/labels`;
2244
+
2245
+ return {
2246
+ path: urlPath,
2247
+ method: 'GET',
2248
+ headers: headerParameters,
2249
+ query: queryParameters,
2250
+ };
2251
+ }
2252
+
2253
+ /**
2254
+ * Get all distinct labels in use across VMs
2255
+ */
2256
+ async getVMLabelsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMLabelsResponse>> {
2257
+ const requestOptions = await this.getVMLabelsRequestOpts();
2258
+ const response = await this.request(requestOptions, initOverrides);
2259
+
2260
+ return new runtime.JSONApiResponse(response, (jsonValue) => VMLabelsResponseFromJSON(jsonValue));
2261
+ }
2262
+
2263
+ /**
2264
+ * Get all distinct labels in use across VMs
2265
+ */
2266
+ async getVMLabels(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMLabelsResponse> {
2267
+ const response = await this.getVMLabelsRaw(initOverrides);
2268
+ return await response.value();
2269
+ }
2270
+
1786
2271
  /**
1787
2272
  * Creates request options for getVMUtilization without sending the request
1788
2273
  */
@@ -1967,6 +2452,55 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1967
2452
  return await response.value();
1968
2453
  }
1969
2454
 
2455
+ /**
2456
+ * Creates request options for listRightsizingReportClusters without sending the request
2457
+ */
2458
+ async listRightsizingReportClustersRequestOpts(requestParameters: ListRightsizingReportClustersRequest): Promise<runtime.RequestOpts> {
2459
+ if (requestParameters['reportId'] == null) {
2460
+ throw new runtime.RequiredError(
2461
+ 'reportId',
2462
+ 'Required parameter "reportId" was null or undefined when calling listRightsizingReportClusters().'
2463
+ );
2464
+ }
2465
+
2466
+ const queryParameters: any = {};
2467
+
2468
+ if (requestParameters['byExpression'] != null) {
2469
+ queryParameters['byExpression'] = requestParameters['byExpression'];
2470
+ }
2471
+
2472
+ const headerParameters: runtime.HTTPHeaders = {};
2473
+
2474
+
2475
+ let urlPath = `/rightsizing/{report_id}/clusters`;
2476
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
2477
+
2478
+ return {
2479
+ path: urlPath,
2480
+ method: 'GET',
2481
+ headers: headerParameters,
2482
+ query: queryParameters,
2483
+ };
2484
+ }
2485
+
2486
+ /**
2487
+ * Get cluster-level utilization aggregates for a specific report
2488
+ */
2489
+ async listRightsizingReportClustersRaw(requestParameters: ListRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
2490
+ const requestOptions = await this.listRightsizingReportClustersRequestOpts(requestParameters);
2491
+ const response = await this.request(requestOptions, initOverrides);
2492
+
2493
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
2494
+ }
2495
+
2496
+ /**
2497
+ * Get cluster-level utilization aggregates for a specific report
2498
+ */
2499
+ async listRightsizingReportClusters(requestParameters: ListRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
2500
+ const response = await this.listRightsizingReportClustersRaw(requestParameters, initOverrides);
2501
+ return await response.value();
2502
+ }
2503
+
1970
2504
  /**
1971
2505
  * Creates request options for listRightsizingReports without sending the request
1972
2506
  */
@@ -2101,52 +2635,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
2101
2635
  await this.putForecasterCredentialsRaw(requestParameters, initOverrides);
2102
2636
  }
2103
2637
 
2104
- /**
2105
- * Creates request options for putInspectorCredentials without sending the request
2106
- */
2107
- async putInspectorCredentialsRequestOpts(requestParameters: PutInspectorCredentialsRequest): Promise<runtime.RequestOpts> {
2108
- if (requestParameters['vcenterCredentials'] == null) {
2109
- throw new runtime.RequiredError(
2110
- 'vcenterCredentials',
2111
- 'Required parameter "vcenterCredentials" was null or undefined when calling putInspectorCredentials().'
2112
- );
2113
- }
2114
-
2115
- const queryParameters: any = {};
2116
-
2117
- const headerParameters: runtime.HTTPHeaders = {};
2118
-
2119
- headerParameters['Content-Type'] = 'application/json';
2120
-
2121
-
2122
- let urlPath = `/inspector/credentials`;
2123
-
2124
- return {
2125
- path: urlPath,
2126
- method: 'PUT',
2127
- headers: headerParameters,
2128
- query: queryParameters,
2129
- body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
2130
- };
2131
- }
2132
-
2133
- /**
2134
- * Set or replace inspector credentials
2135
- */
2136
- async putInspectorCredentialsRaw(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
2137
- const requestOptions = await this.putInspectorCredentialsRequestOpts(requestParameters);
2138
- const response = await this.request(requestOptions, initOverrides);
2139
-
2140
- return new runtime.VoidApiResponse(response);
2141
- }
2142
-
2143
- /**
2144
- * Set or replace inspector credentials
2145
- */
2146
- async putInspectorCredentials(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
2147
- await this.putInspectorCredentialsRaw(requestParameters, initOverrides);
2148
- }
2149
-
2150
2638
  /**
2151
2639
  * Creates request options for putInspectorVddk without sending the request
2152
2640
  */
@@ -2708,4 +3196,158 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
2708
3196
  return await response.value();
2709
3197
  }
2710
3198
 
3199
+ /**
3200
+ * Creates request options for updateLabelVMs without sending the request
3201
+ */
3202
+ async updateLabelVMsRequestOpts(requestParameters: UpdateLabelVMsOperationRequest): Promise<runtime.RequestOpts> {
3203
+ if (requestParameters['label'] == null) {
3204
+ throw new runtime.RequiredError(
3205
+ 'label',
3206
+ 'Required parameter "label" was null or undefined when calling updateLabelVMs().'
3207
+ );
3208
+ }
3209
+
3210
+ if (requestParameters['updateLabelVMsRequest'] == null) {
3211
+ throw new runtime.RequiredError(
3212
+ 'updateLabelVMsRequest',
3213
+ 'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLabelVMs().'
3214
+ );
3215
+ }
3216
+
3217
+ const queryParameters: any = {};
3218
+
3219
+ const headerParameters: runtime.HTTPHeaders = {};
3220
+
3221
+ headerParameters['Content-Type'] = 'application/json';
3222
+
3223
+
3224
+ let urlPath = `/vms/labels/{label}`;
3225
+ urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
3226
+
3227
+ return {
3228
+ path: urlPath,
3229
+ method: 'PATCH',
3230
+ headers: headerParameters,
3231
+ query: queryParameters,
3232
+ body: UpdateLabelVMsRequestToJSON(requestParameters['updateLabelVMsRequest']),
3233
+ };
3234
+ }
3235
+
3236
+ /**
3237
+ * Modify label VM membership (add/remove label to/from VMs)
3238
+ */
3239
+ async updateLabelVMsRaw(requestParameters: UpdateLabelVMsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
3240
+ const requestOptions = await this.updateLabelVMsRequestOpts(requestParameters);
3241
+ const response = await this.request(requestOptions, initOverrides);
3242
+
3243
+ return new runtime.VoidApiResponse(response);
3244
+ }
3245
+
3246
+ /**
3247
+ * Modify label VM membership (add/remove label to/from VMs)
3248
+ */
3249
+ async updateLabelVMs(requestParameters: UpdateLabelVMsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
3250
+ await this.updateLabelVMsRaw(requestParameters, initOverrides);
3251
+ }
3252
+
3253
+ /**
3254
+ * Creates request options for updateVM without sending the request
3255
+ */
3256
+ async updateVMRequestOpts(requestParameters: UpdateVMRequest): Promise<runtime.RequestOpts> {
3257
+ if (requestParameters['id'] == null) {
3258
+ throw new runtime.RequiredError(
3259
+ 'id',
3260
+ 'Required parameter "id" was null or undefined when calling updateVM().'
3261
+ );
3262
+ }
3263
+
3264
+ if (requestParameters['virtualMachineUpdateRequest'] == null) {
3265
+ throw new runtime.RequiredError(
3266
+ 'virtualMachineUpdateRequest',
3267
+ 'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateVM().'
3268
+ );
3269
+ }
3270
+
3271
+ const queryParameters: any = {};
3272
+
3273
+ const headerParameters: runtime.HTTPHeaders = {};
3274
+
3275
+ headerParameters['Content-Type'] = 'application/json';
3276
+
3277
+
3278
+ let urlPath = `/vms/{id}`;
3279
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
3280
+
3281
+ return {
3282
+ path: urlPath,
3283
+ method: 'PATCH',
3284
+ headers: headerParameters,
3285
+ query: queryParameters,
3286
+ body: VirtualMachineUpdateRequestToJSON(requestParameters['virtualMachineUpdateRequest']),
3287
+ };
3288
+ }
3289
+
3290
+ /**
3291
+ * Update VM properties
3292
+ */
3293
+ async updateVMRaw(requestParameters: UpdateVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
3294
+ const requestOptions = await this.updateVMRequestOpts(requestParameters);
3295
+ const response = await this.request(requestOptions, initOverrides);
3296
+
3297
+ return new runtime.VoidApiResponse(response);
3298
+ }
3299
+
3300
+ /**
3301
+ * Update VM properties
3302
+ */
3303
+ async updateVM(requestParameters: UpdateVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
3304
+ await this.updateVMRaw(requestParameters, initOverrides);
3305
+ }
3306
+
3307
+ /**
3308
+ * Creates request options for validateInspectorCredentials without sending the request
3309
+ */
3310
+ async validateInspectorCredentialsRequestOpts(requestParameters: ValidateInspectorCredentialsRequest): Promise<runtime.RequestOpts> {
3311
+ if (requestParameters['vcenterCredentials'] == null) {
3312
+ throw new runtime.RequiredError(
3313
+ 'vcenterCredentials',
3314
+ 'Required parameter "vcenterCredentials" was null or undefined when calling validateInspectorCredentials().'
3315
+ );
3316
+ }
3317
+
3318
+ const queryParameters: any = {};
3319
+
3320
+ const headerParameters: runtime.HTTPHeaders = {};
3321
+
3322
+ headerParameters['Content-Type'] = 'application/json';
3323
+
3324
+
3325
+ let urlPath = `/inspector/credentials`;
3326
+
3327
+ return {
3328
+ path: urlPath,
3329
+ method: 'POST',
3330
+ headers: headerParameters,
3331
+ query: queryParameters,
3332
+ body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
3333
+ };
3334
+ }
3335
+
3336
+ /**
3337
+ * Validate vCenter credentials for inspector
3338
+ */
3339
+ async validateInspectorCredentialsRaw(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
3340
+ const requestOptions = await this.validateInspectorCredentialsRequestOpts(requestParameters);
3341
+ const response = await this.request(requestOptions, initOverrides);
3342
+
3343
+ return new runtime.VoidApiResponse(response);
3344
+ }
3345
+
3346
+ /**
3347
+ * Validate vCenter credentials for inspector
3348
+ */
3349
+ async validateInspectorCredentials(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
3350
+ await this.validateInspectorCredentialsRaw(requestParameters, initOverrides);
3351
+ }
3352
+
2711
3353
  }