@openshift-migration-advisor/agent-sdk 0.16.0 → 0.17.0-65f4a2a64a85
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 +8 -0
- package/README.md +13 -9
- package/dist/apis/DefaultApi.d.ts +74 -85
- package/dist/apis/DefaultApi.js +80 -86
- package/dist/esm/apis/DefaultApi.d.ts +74 -85
- package/dist/esm/apis/DefaultApi.js +80 -86
- package/dist/esm/models/BatchUpdateExclusionRequest.d.ts +38 -0
- package/dist/esm/models/BatchUpdateExclusionRequest.js +47 -0
- package/dist/esm/models/CollectorStartRequest.d.ts +12 -12
- package/dist/esm/models/CollectorStartRequest.js +5 -11
- package/dist/esm/models/Datastore.js +1 -1
- package/dist/esm/models/ExportInventory400Response.d.ts +32 -0
- package/dist/esm/models/ExportInventory400Response.js +41 -0
- package/dist/esm/models/ExportInventory500Response.d.ts +32 -0
- package/dist/esm/models/ExportInventory500Response.js +41 -0
- package/dist/esm/models/Host.js +3 -3
- package/dist/esm/models/IssuesBreakdown.d.ts +56 -0
- package/dist/esm/models/IssuesBreakdown.js +59 -0
- package/dist/esm/models/OsInfo.d.ts +16 -0
- package/dist/esm/models/OsInfo.js +11 -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 +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/runtime.d.ts +1 -0
- package/dist/esm/runtime.js +4 -0
- package/dist/models/BatchUpdateExclusionRequest.d.ts +38 -0
- package/dist/models/BatchUpdateExclusionRequest.js +54 -0
- package/dist/models/CollectorStartRequest.d.ts +12 -12
- package/dist/models/CollectorStartRequest.js +5 -11
- package/dist/models/Datastore.js +1 -1
- package/dist/models/ExportInventory400Response.d.ts +32 -0
- package/dist/models/ExportInventory400Response.js +48 -0
- package/dist/models/ExportInventory500Response.d.ts +32 -0
- package/dist/models/ExportInventory500Response.js +48 -0
- package/dist/models/Host.js +3 -3
- package/dist/models/IssuesBreakdown.d.ts +56 -0
- package/dist/models/IssuesBreakdown.js +66 -0
- package/dist/models/OsInfo.d.ts +16 -0
- package/dist/models/OsInfo.js +12 -0
- package/dist/models/VMs.d.ts +7 -0
- package/dist/models/VMs.js +3 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/runtime.d.ts +1 -0
- package/dist/runtime.js +5 -0
- package/docs/BatchUpdateExclusionRequest.md +36 -0
- package/docs/CollectorStartRequest.md +3 -2
- package/docs/DefaultApi.md +139 -139
- package/docs/ExportInventory400Response.md +34 -0
- package/docs/ExportInventory500Response.md +34 -0
- package/docs/IssuesBreakdown.md +42 -0
- package/docs/OsInfo.md +2 -0
- package/docs/VMs.md +2 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +159 -159
- package/src/models/BatchUpdateExclusionRequest.ts +75 -0
- package/src/models/CollectorStartRequest.ts +17 -20
- package/src/models/Datastore.ts +1 -1
- package/src/models/ExportInventory400Response.ts +65 -0
- package/src/models/ExportInventory500Response.ts +65 -0
- package/src/models/Host.ts +3 -3
- package/src/models/IssuesBreakdown.ts +102 -0
- package/src/models/OsInfo.ts +21 -0
- package/src/models/VMs.ts +15 -0
- package/src/models/index.ts +4 -0
- package/src/runtime.ts +5 -0
- package/tsconfig.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -7,6 +7,7 @@ docs/AgentStatus.md
|
|
|
7
7
|
docs/ApplicationListResponse.md
|
|
8
8
|
docs/ApplicationOverview.md
|
|
9
9
|
docs/ApplicationVM.md
|
|
10
|
+
docs/BatchUpdateExclusionRequest.md
|
|
10
11
|
docs/BenchmarkRun.md
|
|
11
12
|
docs/CapabilityStatus.md
|
|
12
13
|
docs/CapabilityStatusCapabilities.md
|
|
@@ -24,6 +25,8 @@ docs/DeleteLabelGloballyResponse.md
|
|
|
24
25
|
docs/DiskSizeTierSummary.md
|
|
25
26
|
docs/DiskTypeSummary.md
|
|
26
27
|
docs/EstimateRange.md
|
|
28
|
+
docs/ExportInventory400Response.md
|
|
29
|
+
docs/ExportInventory500Response.md
|
|
27
30
|
docs/ForecastStats.md
|
|
28
31
|
docs/ForecasterDatastoresRequest.md
|
|
29
32
|
docs/ForecasterPairStatus.md
|
|
@@ -40,6 +43,7 @@ docs/Infra.md
|
|
|
40
43
|
docs/InspectorStatus.md
|
|
41
44
|
docs/Inventory.md
|
|
42
45
|
docs/InventoryData.md
|
|
46
|
+
docs/IssuesBreakdown.md
|
|
43
47
|
docs/MigrationIssue.md
|
|
44
48
|
docs/Network.md
|
|
45
49
|
docs/OperationCapability.md
|
|
@@ -90,6 +94,7 @@ src/models/AgentStatus.ts
|
|
|
90
94
|
src/models/ApplicationListResponse.ts
|
|
91
95
|
src/models/ApplicationOverview.ts
|
|
92
96
|
src/models/ApplicationVM.ts
|
|
97
|
+
src/models/BatchUpdateExclusionRequest.ts
|
|
93
98
|
src/models/BenchmarkRun.ts
|
|
94
99
|
src/models/CapabilityStatus.ts
|
|
95
100
|
src/models/CapabilityStatusCapabilities.ts
|
|
@@ -106,6 +111,8 @@ src/models/DeleteLabelGloballyResponse.ts
|
|
|
106
111
|
src/models/DiskSizeTierSummary.ts
|
|
107
112
|
src/models/DiskTypeSummary.ts
|
|
108
113
|
src/models/EstimateRange.ts
|
|
114
|
+
src/models/ExportInventory400Response.ts
|
|
115
|
+
src/models/ExportInventory500Response.ts
|
|
109
116
|
src/models/ForecastStats.ts
|
|
110
117
|
src/models/ForecasterDatastoresRequest.ts
|
|
111
118
|
src/models/ForecasterPairStatus.ts
|
|
@@ -122,6 +129,7 @@ src/models/Infra.ts
|
|
|
122
129
|
src/models/InspectorStatus.ts
|
|
123
130
|
src/models/Inventory.ts
|
|
124
131
|
src/models/InventoryData.ts
|
|
132
|
+
src/models/IssuesBreakdown.ts
|
|
125
133
|
src/models/MigrationIssue.ts
|
|
126
134
|
src/models/Network.ts
|
|
127
135
|
src/models/OperationCapability.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/agent-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/agent-sdk@0.17.0-65f4a2a64a85
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -18,19 +18,19 @@ import {
|
|
|
18
18
|
Configuration,
|
|
19
19
|
DefaultApi,
|
|
20
20
|
} from '@openshift-migration-advisor/agent-sdk';
|
|
21
|
-
import type {
|
|
21
|
+
import type { BatchUpdateVMExclusionRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
22
22
|
|
|
23
23
|
async function example() {
|
|
24
24
|
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
25
25
|
const api = new DefaultApi();
|
|
26
26
|
|
|
27
27
|
const body = {
|
|
28
|
-
//
|
|
29
|
-
|
|
30
|
-
} satisfies
|
|
28
|
+
// BatchUpdateExclusionRequest
|
|
29
|
+
batchUpdateExclusionRequest: ...,
|
|
30
|
+
} satisfies BatchUpdateVMExclusionRequest;
|
|
31
31
|
|
|
32
32
|
try {
|
|
33
|
-
const data = await api.
|
|
33
|
+
const data = await api.batchUpdateVMExclusion(body);
|
|
34
34
|
console.log(data);
|
|
35
35
|
} catch (error) {
|
|
36
36
|
console.error(error);
|
|
@@ -50,11 +50,13 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
50
50
|
|
|
51
51
|
| Class | Method | HTTP request | Description
|
|
52
52
|
| ----- | ------ | ------------ | -------------
|
|
53
|
+
*DefaultApi* | [**batchUpdateVMExclusion**](docs/DefaultApi.md#batchupdatevmexclusion) | **POST** /vms/batch-update-exclusion | Batch update VM exclusion status
|
|
53
54
|
*DefaultApi* | [**createGroup**](docs/DefaultApi.md#creategroupoperation) | **POST** /groups | Create a new group
|
|
54
55
|
*DefaultApi* | [**deleteCredentials**](docs/DefaultApi.md#deletecredentials) | **DELETE** /credentials | Delete stored credentials
|
|
55
56
|
*DefaultApi* | [**deleteForecasterRun**](docs/DefaultApi.md#deleteforecasterrun) | **DELETE** /forecaster/runs/{id} | Delete a benchmark run
|
|
56
57
|
*DefaultApi* | [**deleteGroup**](docs/DefaultApi.md#deletegroup) | **DELETE** /groups/{id} | Delete group
|
|
57
58
|
*DefaultApi* | [**deleteLabelGlobally**](docs/DefaultApi.md#deletelabelglobally) | **DELETE** /vms/labels/{label} | Delete label from all VMs
|
|
59
|
+
*DefaultApi* | [**exportInventory**](docs/DefaultApi.md#exportinventory) | **GET** /export | Export VM inventory and migration planning data
|
|
58
60
|
*DefaultApi* | [**getAgentStatus**](docs/DefaultApi.md#getagentstatus) | **GET** /agent | Get agent status
|
|
59
61
|
*DefaultApi* | [**getApplications**](docs/DefaultApi.md#getapplications) | **GET** /applications | List detected applications running on VMs
|
|
60
62
|
*DefaultApi* | [**getClusterUtilization**](docs/DefaultApi.md#getclusterutilization) | **GET** /clusters/{cluster_id}/utilization | Get latest cluster utilization by cluster ID
|
|
@@ -69,10 +71,8 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
69
71
|
*DefaultApi* | [**getInspectorStatus**](docs/DefaultApi.md#getinspectorstatus) | **GET** /inspector | Get inspector status
|
|
70
72
|
*DefaultApi* | [**getInspectorVddkStatus**](docs/DefaultApi.md#getinspectorvddkstatus) | **GET** /inspector/vddk | Get VDDK status
|
|
71
73
|
*DefaultApi* | [**getInventory**](docs/DefaultApi.md#getinventory) | **GET** /inventory | Get collected inventory
|
|
72
|
-
*DefaultApi* | [**getLatestRightsizingClusters**](docs/DefaultApi.md#getlatestrightsizingclusters) | **GET** /cluster_rightsizing | Get cluster-level utilization aggregates for the latest completed report
|
|
73
74
|
*DefaultApi* | [**getRightsizingReport**](docs/DefaultApi.md#getrightsizingreport) | **GET** /rightsizing/{report_id} | Get a specific rightsizing report with full VM metrics
|
|
74
75
|
*DefaultApi* | [**getRightsizingReportCluster**](docs/DefaultApi.md#getrightsizingreportcluster) | **GET** /rightsizing/{report_id}/clusters/{cluster_id} | Get utilization for a specific cluster from a specific report
|
|
75
|
-
*DefaultApi* | [**getRightsizingReportClusters**](docs/DefaultApi.md#getrightsizingreportclusters) | **GET** /cluster_rightsizing/{report_id} | Get cluster-level utilization aggregates for a specific report
|
|
76
76
|
*DefaultApi* | [**getVM**](docs/DefaultApi.md#getvm) | **GET** /vms/{id} | Get details about a vm
|
|
77
77
|
*DefaultApi* | [**getVMLabels**](docs/DefaultApi.md#getvmlabels) | **GET** /vms/labels | Get all distinct labels in use across VMs
|
|
78
78
|
*DefaultApi* | [**getVMUtilization**](docs/DefaultApi.md#getvmutilization) | **GET** /vms/{id}/utilization | Get utilization breakdown for a specific VM
|
|
@@ -109,6 +109,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
109
109
|
- [ApplicationListResponse](docs/ApplicationListResponse.md)
|
|
110
110
|
- [ApplicationOverview](docs/ApplicationOverview.md)
|
|
111
111
|
- [ApplicationVM](docs/ApplicationVM.md)
|
|
112
|
+
- [BatchUpdateExclusionRequest](docs/BatchUpdateExclusionRequest.md)
|
|
112
113
|
- [BenchmarkRun](docs/BenchmarkRun.md)
|
|
113
114
|
- [CapabilityStatus](docs/CapabilityStatus.md)
|
|
114
115
|
- [CapabilityStatusCapabilities](docs/CapabilityStatusCapabilities.md)
|
|
@@ -125,6 +126,8 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
125
126
|
- [DiskSizeTierSummary](docs/DiskSizeTierSummary.md)
|
|
126
127
|
- [DiskTypeSummary](docs/DiskTypeSummary.md)
|
|
127
128
|
- [EstimateRange](docs/EstimateRange.md)
|
|
129
|
+
- [ExportInventory400Response](docs/ExportInventory400Response.md)
|
|
130
|
+
- [ExportInventory500Response](docs/ExportInventory500Response.md)
|
|
128
131
|
- [ForecastStats](docs/ForecastStats.md)
|
|
129
132
|
- [ForecasterDatastoresRequest](docs/ForecasterDatastoresRequest.md)
|
|
130
133
|
- [ForecasterPairStatus](docs/ForecasterPairStatus.md)
|
|
@@ -141,6 +144,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
141
144
|
- [InspectorStatus](docs/InspectorStatus.md)
|
|
142
145
|
- [Inventory](docs/Inventory.md)
|
|
143
146
|
- [InventoryData](docs/InventoryData.md)
|
|
147
|
+
- [IssuesBreakdown](docs/IssuesBreakdown.md)
|
|
144
148
|
- [MigrationIssue](docs/MigrationIssue.md)
|
|
145
149
|
- [Network](docs/Network.md)
|
|
146
150
|
- [OperationCapability](docs/OperationCapability.md)
|
|
@@ -195,7 +199,7 @@ and is automatically generated by the
|
|
|
195
199
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
196
200
|
|
|
197
201
|
- API version: `v1`
|
|
198
|
-
- Package version: `0.
|
|
202
|
+
- Package version: `0.17.0-65f4a2a64a85`
|
|
199
203
|
- Generator version: `7.24.0-SNAPSHOT`
|
|
200
204
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
201
205
|
|
|
@@ -13,6 +13,7 @@ import * as runtime from '../runtime.js';
|
|
|
13
13
|
import { type AgentModeRequest } from '../models/AgentModeRequest.js';
|
|
14
14
|
import { type AgentStatus } from '../models/AgentStatus.js';
|
|
15
15
|
import { type ApplicationListResponse } from '../models/ApplicationListResponse.js';
|
|
16
|
+
import { type BatchUpdateExclusionRequest } from '../models/BatchUpdateExclusionRequest.js';
|
|
16
17
|
import { type BenchmarkRun } from '../models/BenchmarkRun.js';
|
|
17
18
|
import { type CapabilityStatus } from '../models/CapabilityStatus.js';
|
|
18
19
|
import { type CollectorStartRequest } from '../models/CollectorStartRequest.js';
|
|
@@ -52,6 +53,9 @@ import { type VirtualMachineListResponse } from '../models/VirtualMachineListRes
|
|
|
52
53
|
import { type VirtualMachineUpdateRequest } from '../models/VirtualMachineUpdateRequest.js';
|
|
53
54
|
import { type VmInspectionStatus } from '../models/VmInspectionStatus.js';
|
|
54
55
|
import { type VmUtilizationDetails } from '../models/VmUtilizationDetails.js';
|
|
56
|
+
export interface BatchUpdateVMExclusionRequest {
|
|
57
|
+
batchUpdateExclusionRequest: BatchUpdateExclusionRequest;
|
|
58
|
+
}
|
|
55
59
|
export interface CreateGroupOperationRequest {
|
|
56
60
|
createGroupRequest: CreateGroupRequest;
|
|
57
61
|
}
|
|
@@ -64,6 +68,9 @@ export interface DeleteGroupRequest {
|
|
|
64
68
|
export interface DeleteLabelGloballyRequest {
|
|
65
69
|
label: string;
|
|
66
70
|
}
|
|
71
|
+
export interface ExportInventoryRequest {
|
|
72
|
+
scope?: string;
|
|
73
|
+
}
|
|
67
74
|
export interface GetClusterUtilizationRequest {
|
|
68
75
|
clusterId: string;
|
|
69
76
|
}
|
|
@@ -89,9 +96,6 @@ export interface GetInventoryRequest {
|
|
|
89
96
|
withAgentId?: boolean;
|
|
90
97
|
groupId?: string;
|
|
91
98
|
}
|
|
92
|
-
export interface GetLatestRightsizingClustersRequest {
|
|
93
|
-
byExpression?: string;
|
|
94
|
-
}
|
|
95
99
|
export interface GetRightsizingReportRequest {
|
|
96
100
|
reportId: string;
|
|
97
101
|
}
|
|
@@ -99,10 +103,6 @@ export interface GetRightsizingReportClusterRequest {
|
|
|
99
103
|
reportId: string;
|
|
100
104
|
clusterId: string;
|
|
101
105
|
}
|
|
102
|
-
export interface GetRightsizingReportClustersRequest {
|
|
103
|
-
reportId: string;
|
|
104
|
-
byExpression?: string;
|
|
105
|
-
}
|
|
106
106
|
export interface GetVMRequest {
|
|
107
107
|
id: string;
|
|
108
108
|
}
|
|
@@ -179,6 +179,26 @@ export interface ValidateInspectorCredentialsRequest {
|
|
|
179
179
|
* @interface DefaultApiInterface
|
|
180
180
|
*/
|
|
181
181
|
export interface DefaultApiInterface {
|
|
182
|
+
/**
|
|
183
|
+
* Creates request options for batchUpdateVMExclusion without sending the request
|
|
184
|
+
* @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
|
|
185
|
+
* @throws {RequiredError}
|
|
186
|
+
* @memberof DefaultApiInterface
|
|
187
|
+
*/
|
|
188
|
+
batchUpdateVMExclusionRequestOpts(requestParameters: BatchUpdateVMExclusionRequest): Promise<runtime.RequestOpts>;
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @summary Batch update VM exclusion status
|
|
192
|
+
* @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
* @memberof DefaultApiInterface
|
|
196
|
+
*/
|
|
197
|
+
batchUpdateVMExclusionRaw(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
198
|
+
/**
|
|
199
|
+
* Batch update VM exclusion status
|
|
200
|
+
*/
|
|
201
|
+
batchUpdateVMExclusion(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
182
202
|
/**
|
|
183
203
|
* Creates request options for createGroup without sending the request
|
|
184
204
|
* @param {CreateGroupRequest} createGroupRequest
|
|
@@ -278,6 +298,27 @@ export interface DefaultApiInterface {
|
|
|
278
298
|
* Delete label from all VMs
|
|
279
299
|
*/
|
|
280
300
|
deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse>;
|
|
301
|
+
/**
|
|
302
|
+
* Creates request options for exportInventory without sending the request
|
|
303
|
+
* @param {string} [scope] Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection
|
|
304
|
+
* @throws {RequiredError}
|
|
305
|
+
* @memberof DefaultApiInterface
|
|
306
|
+
*/
|
|
307
|
+
exportInventoryRequestOpts(requestParameters: ExportInventoryRequest): Promise<runtime.RequestOpts>;
|
|
308
|
+
/**
|
|
309
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
310
|
+
* @summary Export VM inventory and migration planning data
|
|
311
|
+
* @param {string} [scope] Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection
|
|
312
|
+
* @param {*} [options] Override http request option.
|
|
313
|
+
* @throws {RequiredError}
|
|
314
|
+
* @memberof DefaultApiInterface
|
|
315
|
+
*/
|
|
316
|
+
exportInventoryRaw(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
317
|
+
/**
|
|
318
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
319
|
+
* Export VM inventory and migration planning data
|
|
320
|
+
*/
|
|
321
|
+
exportInventory(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
281
322
|
/**
|
|
282
323
|
* Creates request options for getAgentStatus without sending the request
|
|
283
324
|
* @throws {RequiredError}
|
|
@@ -558,29 +599,6 @@ export interface DefaultApiInterface {
|
|
|
558
599
|
* Get collected inventory
|
|
559
600
|
*/
|
|
560
601
|
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
|
|
561
|
-
/**
|
|
562
|
-
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
563
|
-
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
564
|
-
* @deprecated
|
|
565
|
-
* @throws {RequiredError}
|
|
566
|
-
* @memberof DefaultApiInterface
|
|
567
|
-
*/
|
|
568
|
-
getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
|
|
569
|
-
/**
|
|
570
|
-
*
|
|
571
|
-
* @summary Get cluster-level utilization aggregates for the latest completed report
|
|
572
|
-
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
573
|
-
* @param {*} [options] Override http request option.
|
|
574
|
-
* @deprecated
|
|
575
|
-
* @throws {RequiredError}
|
|
576
|
-
* @memberof DefaultApiInterface
|
|
577
|
-
*/
|
|
578
|
-
getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
|
|
579
|
-
/**
|
|
580
|
-
* Get cluster-level utilization aggregates for the latest completed report
|
|
581
|
-
* @deprecated
|
|
582
|
-
*/
|
|
583
|
-
getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
584
602
|
/**
|
|
585
603
|
* Creates request options for getRightsizingReport without sending the request
|
|
586
604
|
* @param {string} reportId Report UUID
|
|
@@ -623,31 +641,6 @@ export interface DefaultApiInterface {
|
|
|
623
641
|
* Get utilization for a specific cluster from a specific report
|
|
624
642
|
*/
|
|
625
643
|
getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
|
|
626
|
-
/**
|
|
627
|
-
* Creates request options for getRightsizingReportClusters without sending the request
|
|
628
|
-
* @param {string} reportId Rightsizing report UUID
|
|
629
|
-
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
630
|
-
* @deprecated
|
|
631
|
-
* @throws {RequiredError}
|
|
632
|
-
* @memberof DefaultApiInterface
|
|
633
|
-
*/
|
|
634
|
-
getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
|
|
635
|
-
/**
|
|
636
|
-
*
|
|
637
|
-
* @summary Get cluster-level utilization aggregates for a specific report
|
|
638
|
-
* @param {string} reportId Rightsizing report UUID
|
|
639
|
-
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
640
|
-
* @param {*} [options] Override http request option.
|
|
641
|
-
* @deprecated
|
|
642
|
-
* @throws {RequiredError}
|
|
643
|
-
* @memberof DefaultApiInterface
|
|
644
|
-
*/
|
|
645
|
-
getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
|
|
646
|
-
/**
|
|
647
|
-
* Get cluster-level utilization aggregates for a specific report
|
|
648
|
-
* @deprecated
|
|
649
|
-
*/
|
|
650
|
-
getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
651
644
|
/**
|
|
652
645
|
* Creates request options for getVM without sending the request
|
|
653
646
|
* @param {string} id VirtualMachine id
|
|
@@ -1203,6 +1196,18 @@ export interface DefaultApiInterface {
|
|
|
1203
1196
|
*
|
|
1204
1197
|
*/
|
|
1205
1198
|
export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
1199
|
+
/**
|
|
1200
|
+
* Creates request options for batchUpdateVMExclusion without sending the request
|
|
1201
|
+
*/
|
|
1202
|
+
batchUpdateVMExclusionRequestOpts(requestParameters: BatchUpdateVMExclusionRequest): Promise<runtime.RequestOpts>;
|
|
1203
|
+
/**
|
|
1204
|
+
* Batch update VM exclusion status
|
|
1205
|
+
*/
|
|
1206
|
+
batchUpdateVMExclusionRaw(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1207
|
+
/**
|
|
1208
|
+
* Batch update VM exclusion status
|
|
1209
|
+
*/
|
|
1210
|
+
batchUpdateVMExclusion(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1206
1211
|
/**
|
|
1207
1212
|
* Creates request options for createGroup without sending the request
|
|
1208
1213
|
*/
|
|
@@ -1265,6 +1270,20 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
1265
1270
|
* Delete label from all VMs
|
|
1266
1271
|
*/
|
|
1267
1272
|
deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse>;
|
|
1273
|
+
/**
|
|
1274
|
+
* Creates request options for exportInventory without sending the request
|
|
1275
|
+
*/
|
|
1276
|
+
exportInventoryRequestOpts(requestParameters: ExportInventoryRequest): Promise<runtime.RequestOpts>;
|
|
1277
|
+
/**
|
|
1278
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
1279
|
+
* Export VM inventory and migration planning data
|
|
1280
|
+
*/
|
|
1281
|
+
exportInventoryRaw(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
1282
|
+
/**
|
|
1283
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
1284
|
+
* Export VM inventory and migration planning data
|
|
1285
|
+
*/
|
|
1286
|
+
exportInventory(requestParameters?: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
1268
1287
|
/**
|
|
1269
1288
|
* Creates request options for getAgentStatus without sending the request
|
|
1270
1289
|
*/
|
|
@@ -1445,21 +1464,6 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
1445
1464
|
* Get collected inventory
|
|
1446
1465
|
*/
|
|
1447
1466
|
getInventory(requestParameters?: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
|
|
1448
|
-
/**
|
|
1449
|
-
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
1450
|
-
* @deprecated
|
|
1451
|
-
*/
|
|
1452
|
-
getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
|
|
1453
|
-
/**
|
|
1454
|
-
* Get cluster-level utilization aggregates for the latest completed report
|
|
1455
|
-
* @deprecated
|
|
1456
|
-
*/
|
|
1457
|
-
getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
|
|
1458
|
-
/**
|
|
1459
|
-
* Get cluster-level utilization aggregates for the latest completed report
|
|
1460
|
-
* @deprecated
|
|
1461
|
-
*/
|
|
1462
|
-
getLatestRightsizingClusters(requestParameters?: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
1463
1467
|
/**
|
|
1464
1468
|
* Creates request options for getRightsizingReport without sending the request
|
|
1465
1469
|
*/
|
|
@@ -1484,21 +1488,6 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
1484
1488
|
* Get utilization for a specific cluster from a specific report
|
|
1485
1489
|
*/
|
|
1486
1490
|
getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
|
|
1487
|
-
/**
|
|
1488
|
-
* Creates request options for getRightsizingReportClusters without sending the request
|
|
1489
|
-
* @deprecated
|
|
1490
|
-
*/
|
|
1491
|
-
getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
|
|
1492
|
-
/**
|
|
1493
|
-
* Get cluster-level utilization aggregates for a specific report
|
|
1494
|
-
* @deprecated
|
|
1495
|
-
*/
|
|
1496
|
-
getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
|
|
1497
|
-
/**
|
|
1498
|
-
* Get cluster-level utilization aggregates for a specific report
|
|
1499
|
-
* @deprecated
|
|
1500
|
-
*/
|
|
1501
|
-
getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
1502
1491
|
/**
|
|
1503
1492
|
* Creates request options for getVM without sending the request
|
|
1504
1493
|
*/
|
package/dist/apis/DefaultApi.js
CHANGED
|
@@ -27,6 +27,7 @@ const runtime = require("../runtime.js");
|
|
|
27
27
|
const AgentModeRequest_js_1 = require("../models/AgentModeRequest.js");
|
|
28
28
|
const AgentStatus_js_1 = require("../models/AgentStatus.js");
|
|
29
29
|
const ApplicationListResponse_js_1 = require("../models/ApplicationListResponse.js");
|
|
30
|
+
const BatchUpdateExclusionRequest_js_1 = require("../models/BatchUpdateExclusionRequest.js");
|
|
30
31
|
const BenchmarkRun_js_1 = require("../models/BenchmarkRun.js");
|
|
31
32
|
const CapabilityStatus_js_1 = require("../models/CapabilityStatus.js");
|
|
32
33
|
const CollectorStartRequest_js_1 = require("../models/CollectorStartRequest.js");
|
|
@@ -70,6 +71,45 @@ const VmUtilizationDetails_js_1 = require("../models/VmUtilizationDetails.js");
|
|
|
70
71
|
*
|
|
71
72
|
*/
|
|
72
73
|
class DefaultApi extends runtime.BaseAPI {
|
|
74
|
+
/**
|
|
75
|
+
* Creates request options for batchUpdateVMExclusion without sending the request
|
|
76
|
+
*/
|
|
77
|
+
batchUpdateVMExclusionRequestOpts(requestParameters) {
|
|
78
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
if (requestParameters['batchUpdateExclusionRequest'] == null) {
|
|
80
|
+
throw new runtime.RequiredError('batchUpdateExclusionRequest', 'Required parameter "batchUpdateExclusionRequest" was null or undefined when calling batchUpdateVMExclusion().');
|
|
81
|
+
}
|
|
82
|
+
const queryParameters = {};
|
|
83
|
+
const headerParameters = {};
|
|
84
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
85
|
+
let urlPath = `/vms/batch-update-exclusion`;
|
|
86
|
+
return {
|
|
87
|
+
path: urlPath,
|
|
88
|
+
method: 'POST',
|
|
89
|
+
headers: headerParameters,
|
|
90
|
+
query: queryParameters,
|
|
91
|
+
body: (0, BatchUpdateExclusionRequest_js_1.BatchUpdateExclusionRequestToJSON)(requestParameters['batchUpdateExclusionRequest']),
|
|
92
|
+
};
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Batch update VM exclusion status
|
|
97
|
+
*/
|
|
98
|
+
batchUpdateVMExclusionRaw(requestParameters, initOverrides) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
const requestOptions = yield this.batchUpdateVMExclusionRequestOpts(requestParameters);
|
|
101
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
102
|
+
return new runtime.VoidApiResponse(response);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Batch update VM exclusion status
|
|
107
|
+
*/
|
|
108
|
+
batchUpdateVMExclusion(requestParameters, initOverrides) {
|
|
109
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
+
yield this.batchUpdateVMExclusionRaw(requestParameters, initOverrides);
|
|
111
|
+
});
|
|
112
|
+
}
|
|
73
113
|
/**
|
|
74
114
|
* Creates request options for createGroup without sending the request
|
|
75
115
|
*/
|
|
@@ -261,6 +301,46 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
261
301
|
return yield response.value();
|
|
262
302
|
});
|
|
263
303
|
}
|
|
304
|
+
/**
|
|
305
|
+
* Creates request options for exportInventory without sending the request
|
|
306
|
+
*/
|
|
307
|
+
exportInventoryRequestOpts(requestParameters) {
|
|
308
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
309
|
+
const queryParameters = {};
|
|
310
|
+
if (requestParameters['scope'] != null) {
|
|
311
|
+
queryParameters['scope'] = requestParameters['scope'];
|
|
312
|
+
}
|
|
313
|
+
const headerParameters = {};
|
|
314
|
+
let urlPath = `/export`;
|
|
315
|
+
return {
|
|
316
|
+
path: urlPath,
|
|
317
|
+
method: 'GET',
|
|
318
|
+
headers: headerParameters,
|
|
319
|
+
query: queryParameters,
|
|
320
|
+
};
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
325
|
+
* Export VM inventory and migration planning data
|
|
326
|
+
*/
|
|
327
|
+
exportInventoryRaw(requestParameters, initOverrides) {
|
|
328
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
329
|
+
const requestOptions = yield this.exportInventoryRequestOpts(requestParameters);
|
|
330
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
331
|
+
return new runtime.BlobApiResponse(response);
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
336
|
+
* Export VM inventory and migration planning data
|
|
337
|
+
*/
|
|
338
|
+
exportInventory() {
|
|
339
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
340
|
+
const response = yield this.exportInventoryRaw(requestParameters, initOverrides);
|
|
341
|
+
return yield response.value();
|
|
342
|
+
});
|
|
343
|
+
}
|
|
264
344
|
/**
|
|
265
345
|
* Creates request options for getAgentStatus without sending the request
|
|
266
346
|
*/
|
|
@@ -800,47 +880,6 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
800
880
|
return yield response.value();
|
|
801
881
|
});
|
|
802
882
|
}
|
|
803
|
-
/**
|
|
804
|
-
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
805
|
-
* @deprecated
|
|
806
|
-
*/
|
|
807
|
-
getLatestRightsizingClustersRequestOpts(requestParameters) {
|
|
808
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
809
|
-
const queryParameters = {};
|
|
810
|
-
if (requestParameters['byExpression'] != null) {
|
|
811
|
-
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
812
|
-
}
|
|
813
|
-
const headerParameters = {};
|
|
814
|
-
let urlPath = `/cluster_rightsizing`;
|
|
815
|
-
return {
|
|
816
|
-
path: urlPath,
|
|
817
|
-
method: 'GET',
|
|
818
|
-
headers: headerParameters,
|
|
819
|
-
query: queryParameters,
|
|
820
|
-
};
|
|
821
|
-
});
|
|
822
|
-
}
|
|
823
|
-
/**
|
|
824
|
-
* Get cluster-level utilization aggregates for the latest completed report
|
|
825
|
-
* @deprecated
|
|
826
|
-
*/
|
|
827
|
-
getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
|
|
828
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
829
|
-
const requestOptions = yield this.getLatestRightsizingClustersRequestOpts(requestParameters);
|
|
830
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
831
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
832
|
-
});
|
|
833
|
-
}
|
|
834
|
-
/**
|
|
835
|
-
* Get cluster-level utilization aggregates for the latest completed report
|
|
836
|
-
* @deprecated
|
|
837
|
-
*/
|
|
838
|
-
getLatestRightsizingClusters() {
|
|
839
|
-
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
840
|
-
const response = yield this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
|
|
841
|
-
return yield response.value();
|
|
842
|
-
});
|
|
843
|
-
}
|
|
844
883
|
/**
|
|
845
884
|
* Creates request options for getRightsizingReport without sending the request
|
|
846
885
|
*/
|
|
@@ -923,51 +962,6 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
923
962
|
return yield response.value();
|
|
924
963
|
});
|
|
925
964
|
}
|
|
926
|
-
/**
|
|
927
|
-
* Creates request options for getRightsizingReportClusters without sending the request
|
|
928
|
-
* @deprecated
|
|
929
|
-
*/
|
|
930
|
-
getRightsizingReportClustersRequestOpts(requestParameters) {
|
|
931
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
932
|
-
if (requestParameters['reportId'] == null) {
|
|
933
|
-
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().');
|
|
934
|
-
}
|
|
935
|
-
const queryParameters = {};
|
|
936
|
-
if (requestParameters['byExpression'] != null) {
|
|
937
|
-
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
938
|
-
}
|
|
939
|
-
const headerParameters = {};
|
|
940
|
-
let urlPath = `/cluster_rightsizing/{report_id}`;
|
|
941
|
-
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
942
|
-
return {
|
|
943
|
-
path: urlPath,
|
|
944
|
-
method: 'GET',
|
|
945
|
-
headers: headerParameters,
|
|
946
|
-
query: queryParameters,
|
|
947
|
-
};
|
|
948
|
-
});
|
|
949
|
-
}
|
|
950
|
-
/**
|
|
951
|
-
* Get cluster-level utilization aggregates for a specific report
|
|
952
|
-
* @deprecated
|
|
953
|
-
*/
|
|
954
|
-
getRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
955
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
956
|
-
const requestOptions = yield this.getRightsizingReportClustersRequestOpts(requestParameters);
|
|
957
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
958
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
959
|
-
});
|
|
960
|
-
}
|
|
961
|
-
/**
|
|
962
|
-
* Get cluster-level utilization aggregates for a specific report
|
|
963
|
-
* @deprecated
|
|
964
|
-
*/
|
|
965
|
-
getRightsizingReportClusters(requestParameters, initOverrides) {
|
|
966
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
967
|
-
const response = yield this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
968
|
-
return yield response.value();
|
|
969
|
-
});
|
|
970
|
-
}
|
|
971
965
|
/**
|
|
972
966
|
* Creates request options for getVM without sending the request
|
|
973
967
|
*/
|