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

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 (32) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +6 -2
  3. package/dist/apis/DefaultApi.d.ts +74 -0
  4. package/dist/apis/DefaultApi.js +81 -0
  5. package/dist/esm/apis/DefaultApi.d.ts +74 -0
  6. package/dist/esm/apis/DefaultApi.js +81 -0
  7. package/dist/esm/models/RightsizingClusterListResponse.d.ts +39 -0
  8. package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
  9. package/dist/esm/models/RightsizingClusterUtilization.d.ts +112 -0
  10. package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
  11. package/dist/esm/models/VmUtilizationDetails.d.ts +18 -0
  12. package/dist/esm/models/VmUtilizationDetails.js +12 -0
  13. package/dist/esm/models/index.d.ts +2 -0
  14. package/dist/esm/models/index.js +2 -0
  15. package/dist/models/RightsizingClusterListResponse.d.ts +39 -0
  16. package/dist/models/RightsizingClusterListResponse.js +55 -0
  17. package/dist/models/RightsizingClusterUtilization.d.ts +112 -0
  18. package/dist/models/RightsizingClusterUtilization.js +102 -0
  19. package/dist/models/VmUtilizationDetails.d.ts +18 -0
  20. package/dist/models/VmUtilizationDetails.js +12 -0
  21. package/dist/models/index.d.ts +2 -0
  22. package/dist/models/index.js +2 -0
  23. package/docs/DefaultApi.md +139 -0
  24. package/docs/RightsizingClusterListResponse.md +36 -0
  25. package/docs/RightsizingClusterUtilization.md +60 -0
  26. package/docs/VmUtilizationDetails.md +6 -0
  27. package/package.json +1 -1
  28. package/src/apis/DefaultApi.ts +152 -0
  29. package/src/models/RightsizingClusterListResponse.ts +83 -0
  30. package/src/models/RightsizingClusterUtilization.ts +185 -0
  31. package/src/models/VmUtilizationDetails.ts +27 -0
  32. package/src/models/index.ts +2 -0
@@ -37,6 +37,8 @@ docs/OsInfo.md
37
37
  docs/PairCapability.md
38
38
  docs/PairCapabilityRequest.md
39
39
  docs/PutForecasterCredentials403Response.md
40
+ docs/RightsizingClusterListResponse.md
41
+ docs/RightsizingClusterUtilization.md
40
42
  docs/RightsizingCollectRequest.md
41
43
  docs/RightsizingMetricStats.md
42
44
  docs/RightsizingReport.md
@@ -102,6 +104,8 @@ src/models/OsInfo.ts
102
104
  src/models/PairCapability.ts
103
105
  src/models/PairCapabilityRequest.ts
104
106
  src/models/PutForecasterCredentials403Response.ts
107
+ src/models/RightsizingClusterListResponse.ts
108
+ src/models/RightsizingClusterUtilization.ts
105
109
  src/models/RightsizingCollectRequest.ts
106
110
  src/models/RightsizingMetricStats.ts
107
111
  src/models/RightsizingReport.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/agent-sdk@0.12.0-1f1dc16fb9e5
1
+ # @openshift-migration-advisor/agent-sdk@0.12.0-914fe80385ee
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -63,7 +63,9 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
63
63
  *DefaultApi* | [**getInspectorStatus**](docs/DefaultApi.md#getinspectorstatus) | **GET** /inspector | Get inspector status
64
64
  *DefaultApi* | [**getInspectorVddkStatus**](docs/DefaultApi.md#getinspectorvddkstatus) | **GET** /inspector/vddk | Get VDDK status
65
65
  *DefaultApi* | [**getInventory**](docs/DefaultApi.md#getinventory) | **GET** /inventory | Get collected inventory
66
+ *DefaultApi* | [**getLatestRightsizingClusters**](docs/DefaultApi.md#getlatestrightsizingclusters) | **GET** /cluster_rightsizing | Get cluster-level utilization aggregates for the latest completed report
66
67
  *DefaultApi* | [**getRightsizingReport**](docs/DefaultApi.md#getrightsizingreport) | **GET** /rightsizing/{id} | Get a specific rightsizing report with full VM metrics
68
+ *DefaultApi* | [**getRightsizingReportClusters**](docs/DefaultApi.md#getrightsizingreportclusters) | **GET** /cluster_rightsizing/{report_id} | Get cluster-level utilization aggregates for a specific report
67
69
  *DefaultApi* | [**getVM**](docs/DefaultApi.md#getvm) | **GET** /vms/{id} | Get details about a vm
68
70
  *DefaultApi* | [**getVMUtilization**](docs/DefaultApi.md#getvmutilization) | **GET** /vms/{id}/utilization | Get utilization breakdown for a specific VM
69
71
  *DefaultApi* | [**getVMs**](docs/DefaultApi.md#getvms) | **GET** /vms | Get list of VMs with filtering and pagination
@@ -123,6 +125,8 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
123
125
  - [PairCapability](docs/PairCapability.md)
124
126
  - [PairCapabilityRequest](docs/PairCapabilityRequest.md)
125
127
  - [PutForecasterCredentials403Response](docs/PutForecasterCredentials403Response.md)
128
+ - [RightsizingClusterListResponse](docs/RightsizingClusterListResponse.md)
129
+ - [RightsizingClusterUtilization](docs/RightsizingClusterUtilization.md)
126
130
  - [RightsizingCollectRequest](docs/RightsizingCollectRequest.md)
127
131
  - [RightsizingMetricStats](docs/RightsizingMetricStats.md)
128
132
  - [RightsizingReport](docs/RightsizingReport.md)
@@ -163,7 +167,7 @@ and is automatically generated by the
163
167
  [OpenAPI Generator](https://openapi-generator.tech) project:
164
168
 
165
169
  - API version: `v1`
166
- - Package version: `0.12.0-1f1dc16fb9e5`
170
+ - Package version: `0.12.0-914fe80385ee`
167
171
  - Generator version: `7.23.0-SNAPSHOT`
168
172
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
169
173
 
@@ -28,6 +28,7 @@ import { type GroupResponse } from '../models/GroupResponse.js';
28
28
  import { type InspectorStatus } from '../models/InspectorStatus.js';
29
29
  import { type PairCapability } from '../models/PairCapability.js';
30
30
  import { type PairCapabilityRequest } from '../models/PairCapabilityRequest.js';
31
+ import { type RightsizingClusterListResponse } from '../models/RightsizingClusterListResponse.js';
31
32
  import { type RightsizingCollectRequest } from '../models/RightsizingCollectRequest.js';
32
33
  import { type RightsizingReport } from '../models/RightsizingReport.js';
33
34
  import { type RightsizingReportListResponse } from '../models/RightsizingReportListResponse.js';
@@ -74,9 +75,16 @@ export interface GetInventoryRequest {
74
75
  withAgentId?: boolean;
75
76
  groupId?: string;
76
77
  }
78
+ export interface GetLatestRightsizingClustersRequest {
79
+ byExpression?: string;
80
+ }
77
81
  export interface GetRightsizingReportRequest {
78
82
  id: string;
79
83
  }
84
+ export interface GetRightsizingReportClustersRequest {
85
+ reportId: string;
86
+ byExpression?: string;
87
+ }
80
88
  export interface GetVMRequest {
81
89
  id: string;
82
90
  }
@@ -404,6 +412,26 @@ export interface DefaultApiInterface {
404
412
  * Get collected inventory
405
413
  */
406
414
  getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
415
+ /**
416
+ * Creates request options for getLatestRightsizingClusters without sending the request
417
+ * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
418
+ * @throws {RequiredError}
419
+ * @memberof DefaultApiInterface
420
+ */
421
+ getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
422
+ /**
423
+ *
424
+ * @summary Get cluster-level utilization aggregates for the latest completed report
425
+ * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
426
+ * @param {*} [options] Override http request option.
427
+ * @throws {RequiredError}
428
+ * @memberof DefaultApiInterface
429
+ */
430
+ getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
431
+ /**
432
+ * Get cluster-level utilization aggregates for the latest completed report
433
+ */
434
+ getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
407
435
  /**
408
436
  * Creates request options for getRightsizingReport without sending the request
409
437
  * @param {string} id Report UUID
@@ -424,6 +452,28 @@ export interface DefaultApiInterface {
424
452
  * Get a specific rightsizing report with full VM metrics
425
453
  */
426
454
  getRightsizingReport(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReport>;
455
+ /**
456
+ * Creates request options for getRightsizingReportClusters without sending the request
457
+ * @param {string} reportId Rightsizing report UUID
458
+ * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
459
+ * @throws {RequiredError}
460
+ * @memberof DefaultApiInterface
461
+ */
462
+ getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
463
+ /**
464
+ *
465
+ * @summary Get cluster-level utilization aggregates for a specific report
466
+ * @param {string} reportId Rightsizing report UUID
467
+ * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
468
+ * @param {*} [options] Override http request option.
469
+ * @throws {RequiredError}
470
+ * @memberof DefaultApiInterface
471
+ */
472
+ getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
473
+ /**
474
+ * Get cluster-level utilization aggregates for a specific report
475
+ */
476
+ getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
427
477
  /**
428
478
  * Creates request options for getVM without sending the request
429
479
  * @param {string} id VirtualMachine id
@@ -1020,6 +1070,18 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
1020
1070
  * Get collected inventory
1021
1071
  */
1022
1072
  getInventory(requestParameters?: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
1073
+ /**
1074
+ * Creates request options for getLatestRightsizingClusters without sending the request
1075
+ */
1076
+ getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
1077
+ /**
1078
+ * Get cluster-level utilization aggregates for the latest completed report
1079
+ */
1080
+ getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
1081
+ /**
1082
+ * Get cluster-level utilization aggregates for the latest completed report
1083
+ */
1084
+ getLatestRightsizingClusters(requestParameters?: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
1023
1085
  /**
1024
1086
  * Creates request options for getRightsizingReport without sending the request
1025
1087
  */
@@ -1032,6 +1094,18 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
1032
1094
  * Get a specific rightsizing report with full VM metrics
1033
1095
  */
1034
1096
  getRightsizingReport(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReport>;
1097
+ /**
1098
+ * Creates request options for getRightsizingReportClusters without sending the request
1099
+ */
1100
+ getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
1101
+ /**
1102
+ * Get cluster-level utilization aggregates for a specific report
1103
+ */
1104
+ getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
1105
+ /**
1106
+ * Get cluster-level utilization aggregates for a specific report
1107
+ */
1108
+ getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
1035
1109
  /**
1036
1110
  * Creates request options for getVM without sending the request
1037
1111
  */
@@ -42,6 +42,7 @@ const GroupResponse_js_1 = require("../models/GroupResponse.js");
42
42
  const InspectorStatus_js_1 = require("../models/InspectorStatus.js");
43
43
  const PairCapability_js_1 = require("../models/PairCapability.js");
44
44
  const PairCapabilityRequest_js_1 = require("../models/PairCapabilityRequest.js");
45
+ const RightsizingClusterListResponse_js_1 = require("../models/RightsizingClusterListResponse.js");
45
46
  const RightsizingCollectRequest_js_1 = require("../models/RightsizingCollectRequest.js");
46
47
  const RightsizingReport_js_1 = require("../models/RightsizingReport.js");
47
48
  const RightsizingReportListResponse_js_1 = require("../models/RightsizingReportListResponse.js");
@@ -570,6 +571,44 @@ class DefaultApi extends runtime.BaseAPI {
570
571
  return yield response.value();
571
572
  });
572
573
  }
574
+ /**
575
+ * Creates request options for getLatestRightsizingClusters without sending the request
576
+ */
577
+ getLatestRightsizingClustersRequestOpts(requestParameters) {
578
+ return __awaiter(this, void 0, void 0, function* () {
579
+ const queryParameters = {};
580
+ if (requestParameters['byExpression'] != null) {
581
+ queryParameters['byExpression'] = requestParameters['byExpression'];
582
+ }
583
+ const headerParameters = {};
584
+ let urlPath = `/cluster_rightsizing`;
585
+ return {
586
+ path: urlPath,
587
+ method: 'GET',
588
+ headers: headerParameters,
589
+ query: queryParameters,
590
+ };
591
+ });
592
+ }
593
+ /**
594
+ * Get cluster-level utilization aggregates for the latest completed report
595
+ */
596
+ getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
597
+ return __awaiter(this, void 0, void 0, function* () {
598
+ const requestOptions = yield this.getLatestRightsizingClustersRequestOpts(requestParameters);
599
+ const response = yield this.request(requestOptions, initOverrides);
600
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
601
+ });
602
+ }
603
+ /**
604
+ * Get cluster-level utilization aggregates for the latest completed report
605
+ */
606
+ getLatestRightsizingClusters() {
607
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
608
+ const response = yield this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
609
+ return yield response.value();
610
+ });
611
+ }
573
612
  /**
574
613
  * Creates request options for getRightsizingReport without sending the request
575
614
  */
@@ -609,6 +648,48 @@ class DefaultApi extends runtime.BaseAPI {
609
648
  return yield response.value();
610
649
  });
611
650
  }
651
+ /**
652
+ * Creates request options for getRightsizingReportClusters without sending the request
653
+ */
654
+ getRightsizingReportClustersRequestOpts(requestParameters) {
655
+ return __awaiter(this, void 0, void 0, function* () {
656
+ if (requestParameters['reportId'] == null) {
657
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().');
658
+ }
659
+ const queryParameters = {};
660
+ if (requestParameters['byExpression'] != null) {
661
+ queryParameters['byExpression'] = requestParameters['byExpression'];
662
+ }
663
+ const headerParameters = {};
664
+ let urlPath = `/cluster_rightsizing/{report_id}`;
665
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
666
+ return {
667
+ path: urlPath,
668
+ method: 'GET',
669
+ headers: headerParameters,
670
+ query: queryParameters,
671
+ };
672
+ });
673
+ }
674
+ /**
675
+ * Get cluster-level utilization aggregates for a specific report
676
+ */
677
+ getRightsizingReportClustersRaw(requestParameters, initOverrides) {
678
+ return __awaiter(this, void 0, void 0, function* () {
679
+ const requestOptions = yield this.getRightsizingReportClustersRequestOpts(requestParameters);
680
+ const response = yield this.request(requestOptions, initOverrides);
681
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
682
+ });
683
+ }
684
+ /**
685
+ * Get cluster-level utilization aggregates for a specific report
686
+ */
687
+ getRightsizingReportClusters(requestParameters, initOverrides) {
688
+ return __awaiter(this, void 0, void 0, function* () {
689
+ const response = yield this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
690
+ return yield response.value();
691
+ });
692
+ }
612
693
  /**
613
694
  * Creates request options for getVM without sending the request
614
695
  */
@@ -28,6 +28,7 @@ import { type GroupResponse } from '../models/GroupResponse.js';
28
28
  import { type InspectorStatus } from '../models/InspectorStatus.js';
29
29
  import { type PairCapability } from '../models/PairCapability.js';
30
30
  import { type PairCapabilityRequest } from '../models/PairCapabilityRequest.js';
31
+ import { type RightsizingClusterListResponse } from '../models/RightsizingClusterListResponse.js';
31
32
  import { type RightsizingCollectRequest } from '../models/RightsizingCollectRequest.js';
32
33
  import { type RightsizingReport } from '../models/RightsizingReport.js';
33
34
  import { type RightsizingReportListResponse } from '../models/RightsizingReportListResponse.js';
@@ -74,9 +75,16 @@ export interface GetInventoryRequest {
74
75
  withAgentId?: boolean;
75
76
  groupId?: string;
76
77
  }
78
+ export interface GetLatestRightsizingClustersRequest {
79
+ byExpression?: string;
80
+ }
77
81
  export interface GetRightsizingReportRequest {
78
82
  id: string;
79
83
  }
84
+ export interface GetRightsizingReportClustersRequest {
85
+ reportId: string;
86
+ byExpression?: string;
87
+ }
80
88
  export interface GetVMRequest {
81
89
  id: string;
82
90
  }
@@ -404,6 +412,26 @@ export interface DefaultApiInterface {
404
412
  * Get collected inventory
405
413
  */
406
414
  getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
415
+ /**
416
+ * Creates request options for getLatestRightsizingClusters without sending the request
417
+ * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
418
+ * @throws {RequiredError}
419
+ * @memberof DefaultApiInterface
420
+ */
421
+ getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
422
+ /**
423
+ *
424
+ * @summary Get cluster-level utilization aggregates for the latest completed report
425
+ * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
426
+ * @param {*} [options] Override http request option.
427
+ * @throws {RequiredError}
428
+ * @memberof DefaultApiInterface
429
+ */
430
+ getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
431
+ /**
432
+ * Get cluster-level utilization aggregates for the latest completed report
433
+ */
434
+ getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
407
435
  /**
408
436
  * Creates request options for getRightsizingReport without sending the request
409
437
  * @param {string} id Report UUID
@@ -424,6 +452,28 @@ export interface DefaultApiInterface {
424
452
  * Get a specific rightsizing report with full VM metrics
425
453
  */
426
454
  getRightsizingReport(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReport>;
455
+ /**
456
+ * Creates request options for getRightsizingReportClusters without sending the request
457
+ * @param {string} reportId Rightsizing report UUID
458
+ * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
459
+ * @throws {RequiredError}
460
+ * @memberof DefaultApiInterface
461
+ */
462
+ getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
463
+ /**
464
+ *
465
+ * @summary Get cluster-level utilization aggregates for a specific report
466
+ * @param {string} reportId Rightsizing report UUID
467
+ * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
468
+ * @param {*} [options] Override http request option.
469
+ * @throws {RequiredError}
470
+ * @memberof DefaultApiInterface
471
+ */
472
+ getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
473
+ /**
474
+ * Get cluster-level utilization aggregates for a specific report
475
+ */
476
+ getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
427
477
  /**
428
478
  * Creates request options for getVM without sending the request
429
479
  * @param {string} id VirtualMachine id
@@ -1020,6 +1070,18 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
1020
1070
  * Get collected inventory
1021
1071
  */
1022
1072
  getInventory(requestParameters?: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
1073
+ /**
1074
+ * Creates request options for getLatestRightsizingClusters without sending the request
1075
+ */
1076
+ getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
1077
+ /**
1078
+ * Get cluster-level utilization aggregates for the latest completed report
1079
+ */
1080
+ getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
1081
+ /**
1082
+ * Get cluster-level utilization aggregates for the latest completed report
1083
+ */
1084
+ getLatestRightsizingClusters(requestParameters?: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
1023
1085
  /**
1024
1086
  * Creates request options for getRightsizingReport without sending the request
1025
1087
  */
@@ -1032,6 +1094,18 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
1032
1094
  * Get a specific rightsizing report with full VM metrics
1033
1095
  */
1034
1096
  getRightsizingReport(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReport>;
1097
+ /**
1098
+ * Creates request options for getRightsizingReportClusters without sending the request
1099
+ */
1100
+ getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
1101
+ /**
1102
+ * Get cluster-level utilization aggregates for a specific report
1103
+ */
1104
+ getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
1105
+ /**
1106
+ * Get cluster-level utilization aggregates for a specific report
1107
+ */
1108
+ getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
1035
1109
  /**
1036
1110
  * Creates request options for getVM without sending the request
1037
1111
  */
@@ -39,6 +39,7 @@ import { GroupResponseFromJSON, } from '../models/GroupResponse.js';
39
39
  import { InspectorStatusFromJSON, } from '../models/InspectorStatus.js';
40
40
  import { PairCapabilityFromJSON, } from '../models/PairCapability.js';
41
41
  import { PairCapabilityRequestToJSON, } from '../models/PairCapabilityRequest.js';
42
+ import { RightsizingClusterListResponseFromJSON, } from '../models/RightsizingClusterListResponse.js';
42
43
  import { RightsizingCollectRequestToJSON, } from '../models/RightsizingCollectRequest.js';
43
44
  import { RightsizingReportFromJSON, } from '../models/RightsizingReport.js';
44
45
  import { RightsizingReportListResponseFromJSON, } from '../models/RightsizingReportListResponse.js';
@@ -567,6 +568,44 @@ export class DefaultApi extends runtime.BaseAPI {
567
568
  return yield response.value();
568
569
  });
569
570
  }
571
+ /**
572
+ * Creates request options for getLatestRightsizingClusters without sending the request
573
+ */
574
+ getLatestRightsizingClustersRequestOpts(requestParameters) {
575
+ return __awaiter(this, void 0, void 0, function* () {
576
+ const queryParameters = {};
577
+ if (requestParameters['byExpression'] != null) {
578
+ queryParameters['byExpression'] = requestParameters['byExpression'];
579
+ }
580
+ const headerParameters = {};
581
+ let urlPath = `/cluster_rightsizing`;
582
+ return {
583
+ path: urlPath,
584
+ method: 'GET',
585
+ headers: headerParameters,
586
+ query: queryParameters,
587
+ };
588
+ });
589
+ }
590
+ /**
591
+ * Get cluster-level utilization aggregates for the latest completed report
592
+ */
593
+ getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
594
+ return __awaiter(this, void 0, void 0, function* () {
595
+ const requestOptions = yield this.getLatestRightsizingClustersRequestOpts(requestParameters);
596
+ const response = yield this.request(requestOptions, initOverrides);
597
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
598
+ });
599
+ }
600
+ /**
601
+ * Get cluster-level utilization aggregates for the latest completed report
602
+ */
603
+ getLatestRightsizingClusters() {
604
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
605
+ const response = yield this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
606
+ return yield response.value();
607
+ });
608
+ }
570
609
  /**
571
610
  * Creates request options for getRightsizingReport without sending the request
572
611
  */
@@ -606,6 +645,48 @@ export class DefaultApi extends runtime.BaseAPI {
606
645
  return yield response.value();
607
646
  });
608
647
  }
648
+ /**
649
+ * Creates request options for getRightsizingReportClusters without sending the request
650
+ */
651
+ getRightsizingReportClustersRequestOpts(requestParameters) {
652
+ return __awaiter(this, void 0, void 0, function* () {
653
+ if (requestParameters['reportId'] == null) {
654
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().');
655
+ }
656
+ const queryParameters = {};
657
+ if (requestParameters['byExpression'] != null) {
658
+ queryParameters['byExpression'] = requestParameters['byExpression'];
659
+ }
660
+ const headerParameters = {};
661
+ let urlPath = `/cluster_rightsizing/{report_id}`;
662
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
663
+ return {
664
+ path: urlPath,
665
+ method: 'GET',
666
+ headers: headerParameters,
667
+ query: queryParameters,
668
+ };
669
+ });
670
+ }
671
+ /**
672
+ * Get cluster-level utilization aggregates for a specific report
673
+ */
674
+ getRightsizingReportClustersRaw(requestParameters, initOverrides) {
675
+ return __awaiter(this, void 0, void 0, function* () {
676
+ const requestOptions = yield this.getRightsizingReportClustersRequestOpts(requestParameters);
677
+ const response = yield this.request(requestOptions, initOverrides);
678
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
679
+ });
680
+ }
681
+ /**
682
+ * Get cluster-level utilization aggregates for a specific report
683
+ */
684
+ getRightsizingReportClusters(requestParameters, initOverrides) {
685
+ return __awaiter(this, void 0, void 0, function* () {
686
+ const response = yield this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
687
+ return yield response.value();
688
+ });
689
+ }
609
690
  /**
610
691
  * Creates request options for getVM without sending the request
611
692
  */
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { RightsizingClusterUtilization } from './RightsizingClusterUtilization.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RightsizingClusterListResponse
17
+ */
18
+ export interface RightsizingClusterListResponse {
19
+ /**
20
+ * The report ID this data was aggregated from
21
+ * @type {string}
22
+ * @memberof RightsizingClusterListResponse
23
+ */
24
+ reportId: string;
25
+ /**
26
+ *
27
+ * @type {Array<RightsizingClusterUtilization>}
28
+ * @memberof RightsizingClusterListResponse
29
+ */
30
+ clusters: Array<RightsizingClusterUtilization>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the RightsizingClusterListResponse interface.
34
+ */
35
+ export declare function instanceOfRightsizingClusterListResponse(value: object): value is RightsizingClusterListResponse;
36
+ export declare function RightsizingClusterListResponseFromJSON(json: any): RightsizingClusterListResponse;
37
+ export declare function RightsizingClusterListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterListResponse;
38
+ export declare function RightsizingClusterListResponseToJSON(json: any): RightsizingClusterListResponse;
39
+ export declare function RightsizingClusterListResponseToJSONTyped(value?: RightsizingClusterListResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { RightsizingClusterUtilizationFromJSON, RightsizingClusterUtilizationToJSON, } from './RightsizingClusterUtilization.js';
15
+ /**
16
+ * Check if a given object implements the RightsizingClusterListResponse interface.
17
+ */
18
+ export function instanceOfRightsizingClusterListResponse(value) {
19
+ if (!('reportId' in value) || value['reportId'] === undefined)
20
+ return false;
21
+ if (!('clusters' in value) || value['clusters'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function RightsizingClusterListResponseFromJSON(json) {
26
+ return RightsizingClusterListResponseFromJSONTyped(json, false);
27
+ }
28
+ export function RightsizingClusterListResponseFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'reportId': json['report_id'],
34
+ 'clusters': (json['clusters'].map(RightsizingClusterUtilizationFromJSON)),
35
+ };
36
+ }
37
+ export function RightsizingClusterListResponseToJSON(json) {
38
+ return RightsizingClusterListResponseToJSONTyped(json, false);
39
+ }
40
+ export function RightsizingClusterListResponseToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'report_id': value['reportId'],
46
+ 'clusters': (value['clusters'].map(RightsizingClusterUtilizationToJSON)),
47
+ };
48
+ }