@openshift-migration-advisor/agent-sdk 0.17.0-fa395f816b50 → 0.18.0
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.
- package/.openapi-generator/FILES +4 -0
- package/README.md +4 -4
- package/dist/apis/DefaultApi.d.ts +0 -85
- package/dist/apis/DefaultApi.js +0 -86
- package/dist/esm/apis/DefaultApi.d.ts +0 -85
- package/dist/esm/apis/DefaultApi.js +0 -86
- package/dist/esm/models/Datastore.d.ts +7 -0
- package/dist/esm/models/Datastore.js +3 -0
- package/dist/esm/models/IssuesBreakdown.d.ts +56 -0
- package/dist/esm/models/IssuesBreakdown.js +59 -0
- package/dist/esm/models/StorageIoConfiguration.d.ts +58 -0
- package/dist/esm/models/StorageIoConfiguration.js +54 -0
- package/dist/esm/models/VMs.d.ts +7 -0
- package/dist/esm/models/VMs.js +3 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/Datastore.d.ts +7 -0
- package/dist/models/Datastore.js +3 -0
- package/dist/models/IssuesBreakdown.d.ts +56 -0
- package/dist/models/IssuesBreakdown.js +66 -0
- package/dist/models/StorageIoConfiguration.d.ts +58 -0
- package/dist/models/StorageIoConfiguration.js +62 -0
- package/dist/models/VMs.d.ts +7 -0
- package/dist/models/VMs.js +3 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/Datastore.md +2 -0
- package/docs/DefaultApi.md +0 -139
- package/docs/IssuesBreakdown.md +42 -0
- package/docs/StorageIoConfiguration.md +40 -0
- package/docs/VMs.md +2 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +0 -159
- package/src/models/Datastore.ts +16 -0
- package/src/models/IssuesBreakdown.ts +102 -0
- package/src/models/StorageIoConfiguration.ts +100 -0
- package/src/models/VMs.ts +15 -0
- package/src/models/index.ts +2 -0
package/docs/DefaultApi.md
CHANGED
|
@@ -25,10 +25,8 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
25
25
|
| [**getInspectorStatus**](DefaultApi.md#getinspectorstatus) | **GET** /inspector | Get inspector status |
|
|
26
26
|
| [**getInspectorVddkStatus**](DefaultApi.md#getinspectorvddkstatus) | **GET** /inspector/vddk | Get VDDK status |
|
|
27
27
|
| [**getInventory**](DefaultApi.md#getinventory) | **GET** /inventory | Get collected inventory |
|
|
28
|
-
| [**getLatestRightsizingClusters**](DefaultApi.md#getlatestrightsizingclusters) | **GET** /cluster_rightsizing | Get cluster-level utilization aggregates for the latest completed report |
|
|
29
28
|
| [**getRightsizingReport**](DefaultApi.md#getrightsizingreport) | **GET** /rightsizing/{report_id} | Get a specific rightsizing report with full VM metrics |
|
|
30
29
|
| [**getRightsizingReportCluster**](DefaultApi.md#getrightsizingreportcluster) | **GET** /rightsizing/{report_id}/clusters/{cluster_id} | Get utilization for a specific cluster from a specific report |
|
|
31
|
-
| [**getRightsizingReportClusters**](DefaultApi.md#getrightsizingreportclusters) | **GET** /cluster_rightsizing/{report_id} | Get cluster-level utilization aggregates for a specific report |
|
|
32
30
|
| [**getVM**](DefaultApi.md#getvm) | **GET** /vms/{id} | Get details about a vm |
|
|
33
31
|
| [**getVMLabels**](DefaultApi.md#getvmlabels) | **GET** /vms/labels | Get all distinct labels in use across VMs |
|
|
34
32
|
| [**getVMUtilization**](DefaultApi.md#getvmutilization) | **GET** /vms/{id}/utilization | Get utilization breakdown for a specific VM |
|
|
@@ -1423,73 +1421,6 @@ No authorization required
|
|
|
1423
1421
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1424
1422
|
|
|
1425
1423
|
|
|
1426
|
-
## getLatestRightsizingClusters
|
|
1427
|
-
|
|
1428
|
-
> RightsizingClusterListResponse getLatestRightsizingClusters(byExpression)
|
|
1429
|
-
|
|
1430
|
-
Get cluster-level utilization aggregates for the latest completed report
|
|
1431
|
-
|
|
1432
|
-
### Example
|
|
1433
|
-
|
|
1434
|
-
```ts
|
|
1435
|
-
import {
|
|
1436
|
-
Configuration,
|
|
1437
|
-
DefaultApi,
|
|
1438
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
1439
|
-
import type { GetLatestRightsizingClustersRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
1440
|
-
|
|
1441
|
-
async function example() {
|
|
1442
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
1443
|
-
const api = new DefaultApi();
|
|
1444
|
-
|
|
1445
|
-
const body = {
|
|
1446
|
-
// string | Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters. (optional)
|
|
1447
|
-
byExpression: byExpression_example,
|
|
1448
|
-
} satisfies GetLatestRightsizingClustersRequest;
|
|
1449
|
-
|
|
1450
|
-
try {
|
|
1451
|
-
const data = await api.getLatestRightsizingClusters(body);
|
|
1452
|
-
console.log(data);
|
|
1453
|
-
} catch (error) {
|
|
1454
|
-
console.error(error);
|
|
1455
|
-
}
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
// Run the test
|
|
1459
|
-
example().catch(console.error);
|
|
1460
|
-
```
|
|
1461
|
-
|
|
1462
|
-
### Parameters
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
| Name | Type | Description | Notes |
|
|
1466
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1467
|
-
| **byExpression** | `string` | Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters. | [Optional] [Defaults to `undefined`] |
|
|
1468
|
-
|
|
1469
|
-
### Return type
|
|
1470
|
-
|
|
1471
|
-
[**RightsizingClusterListResponse**](RightsizingClusterListResponse.md)
|
|
1472
|
-
|
|
1473
|
-
### Authorization
|
|
1474
|
-
|
|
1475
|
-
No authorization required
|
|
1476
|
-
|
|
1477
|
-
### HTTP request headers
|
|
1478
|
-
|
|
1479
|
-
- **Content-Type**: Not defined
|
|
1480
|
-
- **Accept**: `application/json`
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
### HTTP response details
|
|
1484
|
-
| Status code | Description | Response headers |
|
|
1485
|
-
|-------------|-------------|------------------|
|
|
1486
|
-
| **200** | Cluster utilization aggregates | - |
|
|
1487
|
-
| **404** | No completed rightsizing report found | - |
|
|
1488
|
-
| **500** | Internal server error | - |
|
|
1489
|
-
|
|
1490
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
1424
|
## getRightsizingReport
|
|
1494
1425
|
|
|
1495
1426
|
> RightsizingReport getRightsizingReport(reportId)
|
|
@@ -1627,76 +1558,6 @@ No authorization required
|
|
|
1627
1558
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1628
1559
|
|
|
1629
1560
|
|
|
1630
|
-
## getRightsizingReportClusters
|
|
1631
|
-
|
|
1632
|
-
> RightsizingClusterListResponse getRightsizingReportClusters(reportId, byExpression)
|
|
1633
|
-
|
|
1634
|
-
Get cluster-level utilization aggregates for a specific report
|
|
1635
|
-
|
|
1636
|
-
### Example
|
|
1637
|
-
|
|
1638
|
-
```ts
|
|
1639
|
-
import {
|
|
1640
|
-
Configuration,
|
|
1641
|
-
DefaultApi,
|
|
1642
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
1643
|
-
import type { GetRightsizingReportClustersRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
1644
|
-
|
|
1645
|
-
async function example() {
|
|
1646
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
1647
|
-
const api = new DefaultApi();
|
|
1648
|
-
|
|
1649
|
-
const body = {
|
|
1650
|
-
// string | Rightsizing report UUID
|
|
1651
|
-
reportId: reportId_example,
|
|
1652
|
-
// string | Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters. (optional)
|
|
1653
|
-
byExpression: byExpression_example,
|
|
1654
|
-
} satisfies GetRightsizingReportClustersRequest;
|
|
1655
|
-
|
|
1656
|
-
try {
|
|
1657
|
-
const data = await api.getRightsizingReportClusters(body);
|
|
1658
|
-
console.log(data);
|
|
1659
|
-
} catch (error) {
|
|
1660
|
-
console.error(error);
|
|
1661
|
-
}
|
|
1662
|
-
}
|
|
1663
|
-
|
|
1664
|
-
// Run the test
|
|
1665
|
-
example().catch(console.error);
|
|
1666
|
-
```
|
|
1667
|
-
|
|
1668
|
-
### Parameters
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
| Name | Type | Description | Notes |
|
|
1672
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1673
|
-
| **reportId** | `string` | Rightsizing report UUID | [Defaults to `undefined`] |
|
|
1674
|
-
| **byExpression** | `string` | Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters. | [Optional] [Defaults to `undefined`] |
|
|
1675
|
-
|
|
1676
|
-
### Return type
|
|
1677
|
-
|
|
1678
|
-
[**RightsizingClusterListResponse**](RightsizingClusterListResponse.md)
|
|
1679
|
-
|
|
1680
|
-
### Authorization
|
|
1681
|
-
|
|
1682
|
-
No authorization required
|
|
1683
|
-
|
|
1684
|
-
### HTTP request headers
|
|
1685
|
-
|
|
1686
|
-
- **Content-Type**: Not defined
|
|
1687
|
-
- **Accept**: `application/json`
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
### HTTP response details
|
|
1691
|
-
| Status code | Description | Response headers |
|
|
1692
|
-
|-------------|-------------|------------------|
|
|
1693
|
-
| **200** | Cluster utilization aggregates | - |
|
|
1694
|
-
| **404** | Report not found | - |
|
|
1695
|
-
| **500** | Internal server error | - |
|
|
1696
|
-
|
|
1697
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
1561
|
## getVM
|
|
1701
1562
|
|
|
1702
1563
|
> VirtualMachineDetail getVM(id)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# IssuesBreakdown
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`critical` | number
|
|
10
|
+
`warning` | number
|
|
11
|
+
`information` | number
|
|
12
|
+
`advisory` | number
|
|
13
|
+
`error` | number
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { IssuesBreakdown } from '@openshift-migration-advisor/agent-sdk'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"critical": null,
|
|
23
|
+
"warning": null,
|
|
24
|
+
"information": null,
|
|
25
|
+
"advisory": null,
|
|
26
|
+
"error": null,
|
|
27
|
+
} satisfies IssuesBreakdown
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as IssuesBreakdown
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# StorageIoConfiguration
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`enabled` | boolean
|
|
10
|
+
`congestionThreshold` | number
|
|
11
|
+
`congestionThresholdMode` | string
|
|
12
|
+
`percentOfPeakThroughput` | number
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { StorageIoConfiguration } from '@openshift-migration-advisor/agent-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"enabled": null,
|
|
22
|
+
"congestionThreshold": null,
|
|
23
|
+
"congestionThresholdMode": null,
|
|
24
|
+
"percentOfPeakThroughput": null,
|
|
25
|
+
} satisfies StorageIoConfiguration
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as StorageIoConfiguration
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
package/docs/VMs.md
CHANGED
|
@@ -28,6 +28,7 @@ Name | Type
|
|
|
28
28
|
`osInfo` | [{ [key: string]: OsInfo; }](OsInfo.md)
|
|
29
29
|
`notMigratableReasons` | [Array<MigrationIssue>](MigrationIssue.md)
|
|
30
30
|
`migrationWarnings` | [Array<MigrationIssue>](MigrationIssue.md)
|
|
31
|
+
`issuesBreakdown` | [IssuesBreakdown](IssuesBreakdown.md)
|
|
31
32
|
|
|
32
33
|
## Example
|
|
33
34
|
|
|
@@ -58,6 +59,7 @@ const example = {
|
|
|
58
59
|
"osInfo": null,
|
|
59
60
|
"notMigratableReasons": null,
|
|
60
61
|
"migrationWarnings": null,
|
|
62
|
+
"issuesBreakdown": null,
|
|
61
63
|
} satisfies VMs
|
|
62
64
|
|
|
63
65
|
console.log(example)
|
package/package.json
CHANGED
package/src/apis/DefaultApi.ts
CHANGED
|
@@ -300,10 +300,6 @@ export interface GetInventoryRequest {
|
|
|
300
300
|
groupId?: string;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
export interface GetLatestRightsizingClustersRequest {
|
|
304
|
-
byExpression?: string;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
303
|
export interface GetRightsizingReportRequest {
|
|
308
304
|
reportId: string;
|
|
309
305
|
}
|
|
@@ -313,11 +309,6 @@ export interface GetRightsizingReportClusterRequest {
|
|
|
313
309
|
clusterId: string;
|
|
314
310
|
}
|
|
315
311
|
|
|
316
|
-
export interface GetRightsizingReportClustersRequest {
|
|
317
|
-
reportId: string;
|
|
318
|
-
byExpression?: string;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
312
|
export interface GetVMRequest {
|
|
322
313
|
id: string;
|
|
323
314
|
}
|
|
@@ -897,32 +888,6 @@ export interface DefaultApiInterface {
|
|
|
897
888
|
*/
|
|
898
889
|
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
|
|
899
890
|
|
|
900
|
-
/**
|
|
901
|
-
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
902
|
-
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
903
|
-
* @deprecated
|
|
904
|
-
* @throws {RequiredError}
|
|
905
|
-
* @memberof DefaultApiInterface
|
|
906
|
-
*/
|
|
907
|
-
getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
|
|
908
|
-
|
|
909
|
-
/**
|
|
910
|
-
*
|
|
911
|
-
* @summary Get cluster-level utilization aggregates for the latest completed report
|
|
912
|
-
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
913
|
-
* @param {*} [options] Override http request option.
|
|
914
|
-
* @deprecated
|
|
915
|
-
* @throws {RequiredError}
|
|
916
|
-
* @memberof DefaultApiInterface
|
|
917
|
-
*/
|
|
918
|
-
getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
|
|
919
|
-
|
|
920
|
-
/**
|
|
921
|
-
* Get cluster-level utilization aggregates for the latest completed report
|
|
922
|
-
* @deprecated
|
|
923
|
-
*/
|
|
924
|
-
getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
925
|
-
|
|
926
891
|
/**
|
|
927
892
|
* Creates request options for getRightsizingReport without sending the request
|
|
928
893
|
* @param {string} reportId Report UUID
|
|
@@ -971,34 +936,6 @@ export interface DefaultApiInterface {
|
|
|
971
936
|
*/
|
|
972
937
|
getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
|
|
973
938
|
|
|
974
|
-
/**
|
|
975
|
-
* Creates request options for getRightsizingReportClusters without sending the request
|
|
976
|
-
* @param {string} reportId Rightsizing report UUID
|
|
977
|
-
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
978
|
-
* @deprecated
|
|
979
|
-
* @throws {RequiredError}
|
|
980
|
-
* @memberof DefaultApiInterface
|
|
981
|
-
*/
|
|
982
|
-
getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
|
|
983
|
-
|
|
984
|
-
/**
|
|
985
|
-
*
|
|
986
|
-
* @summary Get cluster-level utilization aggregates for a specific report
|
|
987
|
-
* @param {string} reportId Rightsizing report UUID
|
|
988
|
-
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
989
|
-
* @param {*} [options] Override http request option.
|
|
990
|
-
* @deprecated
|
|
991
|
-
* @throws {RequiredError}
|
|
992
|
-
* @memberof DefaultApiInterface
|
|
993
|
-
*/
|
|
994
|
-
getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
|
|
995
|
-
|
|
996
|
-
/**
|
|
997
|
-
* Get cluster-level utilization aggregates for a specific report
|
|
998
|
-
* @deprecated
|
|
999
|
-
*/
|
|
1000
|
-
getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
1001
|
-
|
|
1002
939
|
/**
|
|
1003
940
|
* Creates request options for getVM without sending the request
|
|
1004
941
|
* @param {string} id VirtualMachine id
|
|
@@ -2532,50 +2469,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2532
2469
|
return await response.value();
|
|
2533
2470
|
}
|
|
2534
2471
|
|
|
2535
|
-
/**
|
|
2536
|
-
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
2537
|
-
* @deprecated
|
|
2538
|
-
*/
|
|
2539
|
-
async getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts> {
|
|
2540
|
-
const queryParameters: any = {};
|
|
2541
|
-
|
|
2542
|
-
if (requestParameters['byExpression'] != null) {
|
|
2543
|
-
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
2544
|
-
}
|
|
2545
|
-
|
|
2546
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
let urlPath = `/cluster_rightsizing`;
|
|
2550
|
-
|
|
2551
|
-
return {
|
|
2552
|
-
path: urlPath,
|
|
2553
|
-
method: 'GET',
|
|
2554
|
-
headers: headerParameters,
|
|
2555
|
-
query: queryParameters,
|
|
2556
|
-
};
|
|
2557
|
-
}
|
|
2558
|
-
|
|
2559
|
-
/**
|
|
2560
|
-
* Get cluster-level utilization aggregates for the latest completed report
|
|
2561
|
-
* @deprecated
|
|
2562
|
-
*/
|
|
2563
|
-
async getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
|
|
2564
|
-
const requestOptions = await this.getLatestRightsizingClustersRequestOpts(requestParameters);
|
|
2565
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
2566
|
-
|
|
2567
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
|
|
2568
|
-
}
|
|
2569
|
-
|
|
2570
|
-
/**
|
|
2571
|
-
* Get cluster-level utilization aggregates for the latest completed report
|
|
2572
|
-
* @deprecated
|
|
2573
|
-
*/
|
|
2574
|
-
async getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
|
|
2575
|
-
const response = await this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
|
|
2576
|
-
return await response.value();
|
|
2577
|
-
}
|
|
2578
|
-
|
|
2579
2472
|
/**
|
|
2580
2473
|
* Creates request options for getRightsizingReport without sending the request
|
|
2581
2474
|
*/
|
|
@@ -2674,58 +2567,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2674
2567
|
return await response.value();
|
|
2675
2568
|
}
|
|
2676
2569
|
|
|
2677
|
-
/**
|
|
2678
|
-
* Creates request options for getRightsizingReportClusters without sending the request
|
|
2679
|
-
* @deprecated
|
|
2680
|
-
*/
|
|
2681
|
-
async getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts> {
|
|
2682
|
-
if (requestParameters['reportId'] == null) {
|
|
2683
|
-
throw new runtime.RequiredError(
|
|
2684
|
-
'reportId',
|
|
2685
|
-
'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().'
|
|
2686
|
-
);
|
|
2687
|
-
}
|
|
2688
|
-
|
|
2689
|
-
const queryParameters: any = {};
|
|
2690
|
-
|
|
2691
|
-
if (requestParameters['byExpression'] != null) {
|
|
2692
|
-
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
2693
|
-
}
|
|
2694
|
-
|
|
2695
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
let urlPath = `/cluster_rightsizing/{report_id}`;
|
|
2699
|
-
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
2700
|
-
|
|
2701
|
-
return {
|
|
2702
|
-
path: urlPath,
|
|
2703
|
-
method: 'GET',
|
|
2704
|
-
headers: headerParameters,
|
|
2705
|
-
query: queryParameters,
|
|
2706
|
-
};
|
|
2707
|
-
}
|
|
2708
|
-
|
|
2709
|
-
/**
|
|
2710
|
-
* Get cluster-level utilization aggregates for a specific report
|
|
2711
|
-
* @deprecated
|
|
2712
|
-
*/
|
|
2713
|
-
async getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
|
|
2714
|
-
const requestOptions = await this.getRightsizingReportClustersRequestOpts(requestParameters);
|
|
2715
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
2716
|
-
|
|
2717
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
|
|
2718
|
-
}
|
|
2719
|
-
|
|
2720
|
-
/**
|
|
2721
|
-
* Get cluster-level utilization aggregates for a specific report
|
|
2722
|
-
* @deprecated
|
|
2723
|
-
*/
|
|
2724
|
-
async getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
|
|
2725
|
-
const response = await this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
2726
|
-
return await response.value();
|
|
2727
|
-
}
|
|
2728
|
-
|
|
2729
2570
|
/**
|
|
2730
2571
|
* Creates request options for getVM without sending the request
|
|
2731
2572
|
*/
|
package/src/models/Datastore.ts
CHANGED
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { StorageIoConfiguration } from './StorageIoConfiguration.js';
|
|
17
|
+
import {
|
|
18
|
+
StorageIoConfigurationFromJSON,
|
|
19
|
+
StorageIoConfigurationFromJSONTyped,
|
|
20
|
+
StorageIoConfigurationToJSON,
|
|
21
|
+
StorageIoConfigurationToJSONTyped,
|
|
22
|
+
} from './StorageIoConfiguration.js';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -73,6 +81,12 @@ export interface Datastore {
|
|
|
73
81
|
* @memberof Datastore
|
|
74
82
|
*/
|
|
75
83
|
hostId?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {StorageIoConfiguration}
|
|
87
|
+
* @memberof Datastore
|
|
88
|
+
*/
|
|
89
|
+
storageIoConfiguration?: StorageIoConfiguration;
|
|
76
90
|
}
|
|
77
91
|
|
|
78
92
|
/**
|
|
@@ -109,6 +123,7 @@ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
109
123
|
'protocolType': json['protocolType'],
|
|
110
124
|
'model': json['model'],
|
|
111
125
|
'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
|
|
126
|
+
'storageIoConfiguration': json['storageIoConfiguration'] == null ? undefined : StorageIoConfigurationFromJSON(json['storageIoConfiguration']),
|
|
112
127
|
};
|
|
113
128
|
}
|
|
114
129
|
|
|
@@ -132,6 +147,7 @@ export function DatastoreToJSONTyped(value?: Datastore | null, ignoreDiscriminat
|
|
|
132
147
|
'protocolType': value['protocolType'],
|
|
133
148
|
'model': value['model'],
|
|
134
149
|
'hostId': value['hostId'],
|
|
150
|
+
'storageIoConfiguration': StorageIoConfigurationToJSON(value['storageIoConfiguration']),
|
|
135
151
|
};
|
|
136
152
|
}
|
|
137
153
|
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IssuesBreakdown
|
|
20
|
+
*/
|
|
21
|
+
export interface IssuesBreakdown {
|
|
22
|
+
/**
|
|
23
|
+
* Number of VMs with at least one Critical issue
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof IssuesBreakdown
|
|
26
|
+
*/
|
|
27
|
+
critical: number;
|
|
28
|
+
/**
|
|
29
|
+
* Number of VMs with at least one Warning issue
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof IssuesBreakdown
|
|
32
|
+
*/
|
|
33
|
+
warning: number;
|
|
34
|
+
/**
|
|
35
|
+
* Number of VMs with at least one Information issue
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof IssuesBreakdown
|
|
38
|
+
*/
|
|
39
|
+
information: number;
|
|
40
|
+
/**
|
|
41
|
+
* Number of VMs with at least one Advisory issue
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof IssuesBreakdown
|
|
44
|
+
*/
|
|
45
|
+
advisory: number;
|
|
46
|
+
/**
|
|
47
|
+
* Number of VMs with at least one Error issue
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof IssuesBreakdown
|
|
50
|
+
*/
|
|
51
|
+
error: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the IssuesBreakdown interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfIssuesBreakdown(value: object): value is IssuesBreakdown {
|
|
58
|
+
if (!('critical' in value) || value['critical'] === undefined) return false;
|
|
59
|
+
if (!('warning' in value) || value['warning'] === undefined) return false;
|
|
60
|
+
if (!('information' in value) || value['information'] === undefined) return false;
|
|
61
|
+
if (!('advisory' in value) || value['advisory'] === undefined) return false;
|
|
62
|
+
if (!('error' in value) || value['error'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function IssuesBreakdownFromJSON(json: any): IssuesBreakdown {
|
|
67
|
+
return IssuesBreakdownFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function IssuesBreakdownFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssuesBreakdown {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'critical': json['critical'],
|
|
77
|
+
'warning': json['warning'],
|
|
78
|
+
'information': json['information'],
|
|
79
|
+
'advisory': json['advisory'],
|
|
80
|
+
'error': json['error'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function IssuesBreakdownToJSON(json: any): IssuesBreakdown {
|
|
85
|
+
return IssuesBreakdownToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function IssuesBreakdownToJSONTyped(value?: IssuesBreakdown | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'critical': value['critical'],
|
|
96
|
+
'warning': value['warning'],
|
|
97
|
+
'information': value['information'],
|
|
98
|
+
'advisory': value['advisory'],
|
|
99
|
+
'error': value['error'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|