@openshift-migration-advisor/agent-sdk 0.17.0 → 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 +6 -0
- package/README.md +11 -9
- package/dist/apis/DefaultApi.d.ts +36 -85
- package/dist/apis/DefaultApi.js +40 -86
- package/dist/esm/apis/DefaultApi.d.ts +36 -85
- package/dist/esm/apis/DefaultApi.js +40 -86
- package/dist/esm/models/BatchUpdateExclusionRequest.d.ts +38 -0
- package/dist/esm/models/BatchUpdateExclusionRequest.js +47 -0
- 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 +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/BatchUpdateExclusionRequest.d.ts +38 -0
- package/dist/models/BatchUpdateExclusionRequest.js +54 -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 +3 -0
- package/dist/models/index.js +3 -0
- package/docs/BatchUpdateExclusionRequest.md +36 -0
- package/docs/Datastore.md +2 -0
- package/docs/DefaultApi.md +69 -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 +78 -159
- package/src/models/BatchUpdateExclusionRequest.ts +75 -0
- 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 +3 -0
package/docs/DefaultApi.md
CHANGED
|
@@ -4,6 +4,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
| [**batchUpdateVMExclusion**](DefaultApi.md#batchupdatevmexclusion) | **POST** /vms/batch-update-exclusion | Batch update VM exclusion status |
|
|
7
8
|
| [**createGroup**](DefaultApi.md#creategroupoperation) | **POST** /groups | Create a new group |
|
|
8
9
|
| [**deleteCredentials**](DefaultApi.md#deletecredentials) | **DELETE** /credentials | Delete stored credentials |
|
|
9
10
|
| [**deleteForecasterRun**](DefaultApi.md#deleteforecasterrun) | **DELETE** /forecaster/runs/{id} | Delete a benchmark run |
|
|
@@ -24,10 +25,8 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
24
25
|
| [**getInspectorStatus**](DefaultApi.md#getinspectorstatus) | **GET** /inspector | Get inspector status |
|
|
25
26
|
| [**getInspectorVddkStatus**](DefaultApi.md#getinspectorvddkstatus) | **GET** /inspector/vddk | Get VDDK status |
|
|
26
27
|
| [**getInventory**](DefaultApi.md#getinventory) | **GET** /inventory | Get collected inventory |
|
|
27
|
-
| [**getLatestRightsizingClusters**](DefaultApi.md#getlatestrightsizingclusters) | **GET** /cluster_rightsizing | Get cluster-level utilization aggregates for the latest completed report |
|
|
28
28
|
| [**getRightsizingReport**](DefaultApi.md#getrightsizingreport) | **GET** /rightsizing/{report_id} | Get a specific rightsizing report with full VM metrics |
|
|
29
29
|
| [**getRightsizingReportCluster**](DefaultApi.md#getrightsizingreportcluster) | **GET** /rightsizing/{report_id}/clusters/{cluster_id} | Get utilization for a specific cluster from a specific report |
|
|
30
|
-
| [**getRightsizingReportClusters**](DefaultApi.md#getrightsizingreportclusters) | **GET** /cluster_rightsizing/{report_id} | Get cluster-level utilization aggregates for a specific report |
|
|
31
30
|
| [**getVM**](DefaultApi.md#getvm) | **GET** /vms/{id} | Get details about a vm |
|
|
32
31
|
| [**getVMLabels**](DefaultApi.md#getvmlabels) | **GET** /vms/labels | Get all distinct labels in use across VMs |
|
|
33
32
|
| [**getVMUtilization**](DefaultApi.md#getvmutilization) | **GET** /vms/{id}/utilization | Get utilization breakdown for a specific VM |
|
|
@@ -58,6 +57,74 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
58
57
|
|
|
59
58
|
|
|
60
59
|
|
|
60
|
+
## batchUpdateVMExclusion
|
|
61
|
+
|
|
62
|
+
> batchUpdateVMExclusion(batchUpdateExclusionRequest)
|
|
63
|
+
|
|
64
|
+
Batch update VM exclusion status
|
|
65
|
+
|
|
66
|
+
### Example
|
|
67
|
+
|
|
68
|
+
```ts
|
|
69
|
+
import {
|
|
70
|
+
Configuration,
|
|
71
|
+
DefaultApi,
|
|
72
|
+
} from '@openshift-migration-advisor/agent-sdk';
|
|
73
|
+
import type { BatchUpdateVMExclusionRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
74
|
+
|
|
75
|
+
async function example() {
|
|
76
|
+
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
77
|
+
const api = new DefaultApi();
|
|
78
|
+
|
|
79
|
+
const body = {
|
|
80
|
+
// BatchUpdateExclusionRequest
|
|
81
|
+
batchUpdateExclusionRequest: ...,
|
|
82
|
+
} satisfies BatchUpdateVMExclusionRequest;
|
|
83
|
+
|
|
84
|
+
try {
|
|
85
|
+
const data = await api.batchUpdateVMExclusion(body);
|
|
86
|
+
console.log(data);
|
|
87
|
+
} catch (error) {
|
|
88
|
+
console.error(error);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Run the test
|
|
93
|
+
example().catch(console.error);
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Parameters
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
| Name | Type | Description | Notes |
|
|
100
|
+
|------------- | ------------- | ------------- | -------------|
|
|
101
|
+
| **batchUpdateExclusionRequest** | [BatchUpdateExclusionRequest](BatchUpdateExclusionRequest.md) | | |
|
|
102
|
+
|
|
103
|
+
### Return type
|
|
104
|
+
|
|
105
|
+
`void` (Empty response body)
|
|
106
|
+
|
|
107
|
+
### Authorization
|
|
108
|
+
|
|
109
|
+
No authorization required
|
|
110
|
+
|
|
111
|
+
### HTTP request headers
|
|
112
|
+
|
|
113
|
+
- **Content-Type**: `application/json`
|
|
114
|
+
- **Accept**: Not defined
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### HTTP response details
|
|
118
|
+
| Status code | Description | Response headers |
|
|
119
|
+
|-------------|-------------|------------------|
|
|
120
|
+
| **200** | All VMs updated successfully | - |
|
|
121
|
+
| **400** | Invalid request | - |
|
|
122
|
+
| **404** | One or more VMs not found | - |
|
|
123
|
+
| **500** | Internal server error | - |
|
|
124
|
+
|
|
125
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
126
|
+
|
|
127
|
+
|
|
61
128
|
## createGroup
|
|
62
129
|
|
|
63
130
|
> Group createGroup(createGroupRequest)
|
|
@@ -1354,73 +1421,6 @@ No authorization required
|
|
|
1354
1421
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1355
1422
|
|
|
1356
1423
|
|
|
1357
|
-
## getLatestRightsizingClusters
|
|
1358
|
-
|
|
1359
|
-
> RightsizingClusterListResponse getLatestRightsizingClusters(byExpression)
|
|
1360
|
-
|
|
1361
|
-
Get cluster-level utilization aggregates for the latest completed report
|
|
1362
|
-
|
|
1363
|
-
### Example
|
|
1364
|
-
|
|
1365
|
-
```ts
|
|
1366
|
-
import {
|
|
1367
|
-
Configuration,
|
|
1368
|
-
DefaultApi,
|
|
1369
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
1370
|
-
import type { GetLatestRightsizingClustersRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
1371
|
-
|
|
1372
|
-
async function example() {
|
|
1373
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
1374
|
-
const api = new DefaultApi();
|
|
1375
|
-
|
|
1376
|
-
const body = {
|
|
1377
|
-
// string | Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters. (optional)
|
|
1378
|
-
byExpression: byExpression_example,
|
|
1379
|
-
} satisfies GetLatestRightsizingClustersRequest;
|
|
1380
|
-
|
|
1381
|
-
try {
|
|
1382
|
-
const data = await api.getLatestRightsizingClusters(body);
|
|
1383
|
-
console.log(data);
|
|
1384
|
-
} catch (error) {
|
|
1385
|
-
console.error(error);
|
|
1386
|
-
}
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
// Run the test
|
|
1390
|
-
example().catch(console.error);
|
|
1391
|
-
```
|
|
1392
|
-
|
|
1393
|
-
### Parameters
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
| Name | Type | Description | Notes |
|
|
1397
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1398
|
-
| **byExpression** | `string` | Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters. | [Optional] [Defaults to `undefined`] |
|
|
1399
|
-
|
|
1400
|
-
### Return type
|
|
1401
|
-
|
|
1402
|
-
[**RightsizingClusterListResponse**](RightsizingClusterListResponse.md)
|
|
1403
|
-
|
|
1404
|
-
### Authorization
|
|
1405
|
-
|
|
1406
|
-
No authorization required
|
|
1407
|
-
|
|
1408
|
-
### HTTP request headers
|
|
1409
|
-
|
|
1410
|
-
- **Content-Type**: Not defined
|
|
1411
|
-
- **Accept**: `application/json`
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
### HTTP response details
|
|
1415
|
-
| Status code | Description | Response headers |
|
|
1416
|
-
|-------------|-------------|------------------|
|
|
1417
|
-
| **200** | Cluster utilization aggregates | - |
|
|
1418
|
-
| **404** | No completed rightsizing report found | - |
|
|
1419
|
-
| **500** | Internal server error | - |
|
|
1420
|
-
|
|
1421
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
1424
|
## getRightsizingReport
|
|
1425
1425
|
|
|
1426
1426
|
> RightsizingReport getRightsizingReport(reportId)
|
|
@@ -1558,76 +1558,6 @@ No authorization required
|
|
|
1558
1558
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1559
1559
|
|
|
1560
1560
|
|
|
1561
|
-
## getRightsizingReportClusters
|
|
1562
|
-
|
|
1563
|
-
> RightsizingClusterListResponse getRightsizingReportClusters(reportId, byExpression)
|
|
1564
|
-
|
|
1565
|
-
Get cluster-level utilization aggregates for a specific report
|
|
1566
|
-
|
|
1567
|
-
### Example
|
|
1568
|
-
|
|
1569
|
-
```ts
|
|
1570
|
-
import {
|
|
1571
|
-
Configuration,
|
|
1572
|
-
DefaultApi,
|
|
1573
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
1574
|
-
import type { GetRightsizingReportClustersRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
1575
|
-
|
|
1576
|
-
async function example() {
|
|
1577
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
1578
|
-
const api = new DefaultApi();
|
|
1579
|
-
|
|
1580
|
-
const body = {
|
|
1581
|
-
// string | Rightsizing report UUID
|
|
1582
|
-
reportId: reportId_example,
|
|
1583
|
-
// string | Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters. (optional)
|
|
1584
|
-
byExpression: byExpression_example,
|
|
1585
|
-
} satisfies GetRightsizingReportClustersRequest;
|
|
1586
|
-
|
|
1587
|
-
try {
|
|
1588
|
-
const data = await api.getRightsizingReportClusters(body);
|
|
1589
|
-
console.log(data);
|
|
1590
|
-
} catch (error) {
|
|
1591
|
-
console.error(error);
|
|
1592
|
-
}
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
// Run the test
|
|
1596
|
-
example().catch(console.error);
|
|
1597
|
-
```
|
|
1598
|
-
|
|
1599
|
-
### Parameters
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
| Name | Type | Description | Notes |
|
|
1603
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1604
|
-
| **reportId** | `string` | Rightsizing report UUID | [Defaults to `undefined`] |
|
|
1605
|
-
| **byExpression** | `string` | Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters. | [Optional] [Defaults to `undefined`] |
|
|
1606
|
-
|
|
1607
|
-
### Return type
|
|
1608
|
-
|
|
1609
|
-
[**RightsizingClusterListResponse**](RightsizingClusterListResponse.md)
|
|
1610
|
-
|
|
1611
|
-
### Authorization
|
|
1612
|
-
|
|
1613
|
-
No authorization required
|
|
1614
|
-
|
|
1615
|
-
### HTTP request headers
|
|
1616
|
-
|
|
1617
|
-
- **Content-Type**: Not defined
|
|
1618
|
-
- **Accept**: `application/json`
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
### HTTP response details
|
|
1622
|
-
| Status code | Description | Response headers |
|
|
1623
|
-
|-------------|-------------|------------------|
|
|
1624
|
-
| **200** | Cluster utilization aggregates | - |
|
|
1625
|
-
| **404** | Report not found | - |
|
|
1626
|
-
| **500** | Internal server error | - |
|
|
1627
|
-
|
|
1628
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
1561
|
## getVM
|
|
1632
1562
|
|
|
1633
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
|
@@ -28,6 +28,11 @@ import {
|
|
|
28
28
|
ApplicationListResponseFromJSON,
|
|
29
29
|
ApplicationListResponseToJSON,
|
|
30
30
|
} from '../models/ApplicationListResponse.js';
|
|
31
|
+
import {
|
|
32
|
+
type BatchUpdateExclusionRequest,
|
|
33
|
+
BatchUpdateExclusionRequestFromJSON,
|
|
34
|
+
BatchUpdateExclusionRequestToJSON,
|
|
35
|
+
} from '../models/BatchUpdateExclusionRequest.js';
|
|
31
36
|
import {
|
|
32
37
|
type BenchmarkRun,
|
|
33
38
|
BenchmarkRunFromJSON,
|
|
@@ -239,6 +244,10 @@ import {
|
|
|
239
244
|
VmUtilizationDetailsToJSON,
|
|
240
245
|
} from '../models/VmUtilizationDetails.js';
|
|
241
246
|
|
|
247
|
+
export interface BatchUpdateVMExclusionRequest {
|
|
248
|
+
batchUpdateExclusionRequest: BatchUpdateExclusionRequest;
|
|
249
|
+
}
|
|
250
|
+
|
|
242
251
|
export interface CreateGroupOperationRequest {
|
|
243
252
|
createGroupRequest: CreateGroupRequest;
|
|
244
253
|
}
|
|
@@ -291,10 +300,6 @@ export interface GetInventoryRequest {
|
|
|
291
300
|
groupId?: string;
|
|
292
301
|
}
|
|
293
302
|
|
|
294
|
-
export interface GetLatestRightsizingClustersRequest {
|
|
295
|
-
byExpression?: string;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
303
|
export interface GetRightsizingReportRequest {
|
|
299
304
|
reportId: string;
|
|
300
305
|
}
|
|
@@ -304,11 +309,6 @@ export interface GetRightsizingReportClusterRequest {
|
|
|
304
309
|
clusterId: string;
|
|
305
310
|
}
|
|
306
311
|
|
|
307
|
-
export interface GetRightsizingReportClustersRequest {
|
|
308
|
-
reportId: string;
|
|
309
|
-
byExpression?: string;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
312
|
export interface GetVMRequest {
|
|
313
313
|
id: string;
|
|
314
314
|
}
|
|
@@ -405,6 +405,29 @@ export interface ValidateInspectorCredentialsRequest {
|
|
|
405
405
|
* @interface DefaultApiInterface
|
|
406
406
|
*/
|
|
407
407
|
export interface DefaultApiInterface {
|
|
408
|
+
/**
|
|
409
|
+
* Creates request options for batchUpdateVMExclusion without sending the request
|
|
410
|
+
* @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
|
|
411
|
+
* @throws {RequiredError}
|
|
412
|
+
* @memberof DefaultApiInterface
|
|
413
|
+
*/
|
|
414
|
+
batchUpdateVMExclusionRequestOpts(requestParameters: BatchUpdateVMExclusionRequest): Promise<runtime.RequestOpts>;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
*
|
|
418
|
+
* @summary Batch update VM exclusion status
|
|
419
|
+
* @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
|
|
420
|
+
* @param {*} [options] Override http request option.
|
|
421
|
+
* @throws {RequiredError}
|
|
422
|
+
* @memberof DefaultApiInterface
|
|
423
|
+
*/
|
|
424
|
+
batchUpdateVMExclusionRaw(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Batch update VM exclusion status
|
|
428
|
+
*/
|
|
429
|
+
batchUpdateVMExclusion(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
430
|
+
|
|
408
431
|
/**
|
|
409
432
|
* Creates request options for createGroup without sending the request
|
|
410
433
|
* @param {CreateGroupRequest} createGroupRequest
|
|
@@ -865,32 +888,6 @@ export interface DefaultApiInterface {
|
|
|
865
888
|
*/
|
|
866
889
|
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
|
|
867
890
|
|
|
868
|
-
/**
|
|
869
|
-
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
870
|
-
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
871
|
-
* @deprecated
|
|
872
|
-
* @throws {RequiredError}
|
|
873
|
-
* @memberof DefaultApiInterface
|
|
874
|
-
*/
|
|
875
|
-
getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
|
|
876
|
-
|
|
877
|
-
/**
|
|
878
|
-
*
|
|
879
|
-
* @summary Get cluster-level utilization aggregates for the latest completed report
|
|
880
|
-
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
881
|
-
* @param {*} [options] Override http request option.
|
|
882
|
-
* @deprecated
|
|
883
|
-
* @throws {RequiredError}
|
|
884
|
-
* @memberof DefaultApiInterface
|
|
885
|
-
*/
|
|
886
|
-
getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
|
|
887
|
-
|
|
888
|
-
/**
|
|
889
|
-
* Get cluster-level utilization aggregates for the latest completed report
|
|
890
|
-
* @deprecated
|
|
891
|
-
*/
|
|
892
|
-
getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
893
|
-
|
|
894
891
|
/**
|
|
895
892
|
* Creates request options for getRightsizingReport without sending the request
|
|
896
893
|
* @param {string} reportId Report UUID
|
|
@@ -939,34 +936,6 @@ export interface DefaultApiInterface {
|
|
|
939
936
|
*/
|
|
940
937
|
getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
|
|
941
938
|
|
|
942
|
-
/**
|
|
943
|
-
* Creates request options for getRightsizingReportClusters without sending the request
|
|
944
|
-
* @param {string} reportId Rightsizing report UUID
|
|
945
|
-
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
946
|
-
* @deprecated
|
|
947
|
-
* @throws {RequiredError}
|
|
948
|
-
* @memberof DefaultApiInterface
|
|
949
|
-
*/
|
|
950
|
-
getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
|
|
951
|
-
|
|
952
|
-
/**
|
|
953
|
-
*
|
|
954
|
-
* @summary Get cluster-level utilization aggregates for a specific report
|
|
955
|
-
* @param {string} reportId Rightsizing report UUID
|
|
956
|
-
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
957
|
-
* @param {*} [options] Override http request option.
|
|
958
|
-
* @deprecated
|
|
959
|
-
* @throws {RequiredError}
|
|
960
|
-
* @memberof DefaultApiInterface
|
|
961
|
-
*/
|
|
962
|
-
getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
|
|
963
|
-
|
|
964
|
-
/**
|
|
965
|
-
* Get cluster-level utilization aggregates for a specific report
|
|
966
|
-
* @deprecated
|
|
967
|
-
*/
|
|
968
|
-
getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
969
|
-
|
|
970
939
|
/**
|
|
971
940
|
* Creates request options for getVM without sending the request
|
|
972
941
|
* @param {string} id VirtualMachine id
|
|
@@ -1605,6 +1574,52 @@ export interface DefaultApiInterface {
|
|
|
1605
1574
|
*/
|
|
1606
1575
|
export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
1607
1576
|
|
|
1577
|
+
/**
|
|
1578
|
+
* Creates request options for batchUpdateVMExclusion without sending the request
|
|
1579
|
+
*/
|
|
1580
|
+
async batchUpdateVMExclusionRequestOpts(requestParameters: BatchUpdateVMExclusionRequest): Promise<runtime.RequestOpts> {
|
|
1581
|
+
if (requestParameters['batchUpdateExclusionRequest'] == null) {
|
|
1582
|
+
throw new runtime.RequiredError(
|
|
1583
|
+
'batchUpdateExclusionRequest',
|
|
1584
|
+
'Required parameter "batchUpdateExclusionRequest" was null or undefined when calling batchUpdateVMExclusion().'
|
|
1585
|
+
);
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
const queryParameters: any = {};
|
|
1589
|
+
|
|
1590
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1591
|
+
|
|
1592
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1593
|
+
|
|
1594
|
+
|
|
1595
|
+
let urlPath = `/vms/batch-update-exclusion`;
|
|
1596
|
+
|
|
1597
|
+
return {
|
|
1598
|
+
path: urlPath,
|
|
1599
|
+
method: 'POST',
|
|
1600
|
+
headers: headerParameters,
|
|
1601
|
+
query: queryParameters,
|
|
1602
|
+
body: BatchUpdateExclusionRequestToJSON(requestParameters['batchUpdateExclusionRequest']),
|
|
1603
|
+
};
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
/**
|
|
1607
|
+
* Batch update VM exclusion status
|
|
1608
|
+
*/
|
|
1609
|
+
async batchUpdateVMExclusionRaw(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1610
|
+
const requestOptions = await this.batchUpdateVMExclusionRequestOpts(requestParameters);
|
|
1611
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1612
|
+
|
|
1613
|
+
return new runtime.VoidApiResponse(response);
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
/**
|
|
1617
|
+
* Batch update VM exclusion status
|
|
1618
|
+
*/
|
|
1619
|
+
async batchUpdateVMExclusion(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1620
|
+
await this.batchUpdateVMExclusionRaw(requestParameters, initOverrides);
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1608
1623
|
/**
|
|
1609
1624
|
* Creates request options for createGroup without sending the request
|
|
1610
1625
|
*/
|
|
@@ -2454,50 +2469,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2454
2469
|
return await response.value();
|
|
2455
2470
|
}
|
|
2456
2471
|
|
|
2457
|
-
/**
|
|
2458
|
-
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
2459
|
-
* @deprecated
|
|
2460
|
-
*/
|
|
2461
|
-
async getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts> {
|
|
2462
|
-
const queryParameters: any = {};
|
|
2463
|
-
|
|
2464
|
-
if (requestParameters['byExpression'] != null) {
|
|
2465
|
-
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
2466
|
-
}
|
|
2467
|
-
|
|
2468
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
let urlPath = `/cluster_rightsizing`;
|
|
2472
|
-
|
|
2473
|
-
return {
|
|
2474
|
-
path: urlPath,
|
|
2475
|
-
method: 'GET',
|
|
2476
|
-
headers: headerParameters,
|
|
2477
|
-
query: queryParameters,
|
|
2478
|
-
};
|
|
2479
|
-
}
|
|
2480
|
-
|
|
2481
|
-
/**
|
|
2482
|
-
* Get cluster-level utilization aggregates for the latest completed report
|
|
2483
|
-
* @deprecated
|
|
2484
|
-
*/
|
|
2485
|
-
async getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
|
|
2486
|
-
const requestOptions = await this.getLatestRightsizingClustersRequestOpts(requestParameters);
|
|
2487
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
2488
|
-
|
|
2489
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
|
|
2490
|
-
}
|
|
2491
|
-
|
|
2492
|
-
/**
|
|
2493
|
-
* Get cluster-level utilization aggregates for the latest completed report
|
|
2494
|
-
* @deprecated
|
|
2495
|
-
*/
|
|
2496
|
-
async getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
|
|
2497
|
-
const response = await this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
|
|
2498
|
-
return await response.value();
|
|
2499
|
-
}
|
|
2500
|
-
|
|
2501
2472
|
/**
|
|
2502
2473
|
* Creates request options for getRightsizingReport without sending the request
|
|
2503
2474
|
*/
|
|
@@ -2596,58 +2567,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2596
2567
|
return await response.value();
|
|
2597
2568
|
}
|
|
2598
2569
|
|
|
2599
|
-
/**
|
|
2600
|
-
* Creates request options for getRightsizingReportClusters without sending the request
|
|
2601
|
-
* @deprecated
|
|
2602
|
-
*/
|
|
2603
|
-
async getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts> {
|
|
2604
|
-
if (requestParameters['reportId'] == null) {
|
|
2605
|
-
throw new runtime.RequiredError(
|
|
2606
|
-
'reportId',
|
|
2607
|
-
'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().'
|
|
2608
|
-
);
|
|
2609
|
-
}
|
|
2610
|
-
|
|
2611
|
-
const queryParameters: any = {};
|
|
2612
|
-
|
|
2613
|
-
if (requestParameters['byExpression'] != null) {
|
|
2614
|
-
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
2615
|
-
}
|
|
2616
|
-
|
|
2617
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
let urlPath = `/cluster_rightsizing/{report_id}`;
|
|
2621
|
-
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
2622
|
-
|
|
2623
|
-
return {
|
|
2624
|
-
path: urlPath,
|
|
2625
|
-
method: 'GET',
|
|
2626
|
-
headers: headerParameters,
|
|
2627
|
-
query: queryParameters,
|
|
2628
|
-
};
|
|
2629
|
-
}
|
|
2630
|
-
|
|
2631
|
-
/**
|
|
2632
|
-
* Get cluster-level utilization aggregates for a specific report
|
|
2633
|
-
* @deprecated
|
|
2634
|
-
*/
|
|
2635
|
-
async getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
|
|
2636
|
-
const requestOptions = await this.getRightsizingReportClustersRequestOpts(requestParameters);
|
|
2637
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
2638
|
-
|
|
2639
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
|
|
2640
|
-
}
|
|
2641
|
-
|
|
2642
|
-
/**
|
|
2643
|
-
* Get cluster-level utilization aggregates for a specific report
|
|
2644
|
-
* @deprecated
|
|
2645
|
-
*/
|
|
2646
|
-
async getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
|
|
2647
|
-
const response = await this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
2648
|
-
return await response.value();
|
|
2649
|
-
}
|
|
2650
|
-
|
|
2651
2570
|
/**
|
|
2652
2571
|
* Creates request options for getVM without sending the request
|
|
2653
2572
|
*/
|