@openshift-migration-advisor/agent-sdk 0.17.0 → 0.18.0-c896a2e1a4de
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 +12 -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/Process.d.ts +38 -0
- package/dist/esm/models/Process.js +45 -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/VirtualMachineDetail.d.ts +7 -0
- package/dist/esm/models/VirtualMachineDetail.js +3 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -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/Process.d.ts +38 -0
- package/dist/models/Process.js +52 -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/VirtualMachineDetail.d.ts +7 -0
- package/dist/models/VirtualMachineDetail.js +3 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -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/Process.md +36 -0
- package/docs/StorageIoConfiguration.md +40 -0
- package/docs/VMs.md +2 -0
- package/docs/VirtualMachineDetail.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/Process.ts +74 -0
- package/src/models/StorageIoConfiguration.ts +100 -0
- package/src/models/VMs.ts +15 -0
- package/src/models/VirtualMachineDetail.ts +15 -0
- package/src/models/index.ts +4 -0
|
@@ -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
|
}
|
|
@@ -92,9 +96,6 @@ export interface GetInventoryRequest {
|
|
|
92
96
|
withAgentId?: boolean;
|
|
93
97
|
groupId?: string;
|
|
94
98
|
}
|
|
95
|
-
export interface GetLatestRightsizingClustersRequest {
|
|
96
|
-
byExpression?: string;
|
|
97
|
-
}
|
|
98
99
|
export interface GetRightsizingReportRequest {
|
|
99
100
|
reportId: string;
|
|
100
101
|
}
|
|
@@ -102,10 +103,6 @@ export interface GetRightsizingReportClusterRequest {
|
|
|
102
103
|
reportId: string;
|
|
103
104
|
clusterId: string;
|
|
104
105
|
}
|
|
105
|
-
export interface GetRightsizingReportClustersRequest {
|
|
106
|
-
reportId: string;
|
|
107
|
-
byExpression?: string;
|
|
108
|
-
}
|
|
109
106
|
export interface GetVMRequest {
|
|
110
107
|
id: string;
|
|
111
108
|
}
|
|
@@ -182,6 +179,26 @@ export interface ValidateInspectorCredentialsRequest {
|
|
|
182
179
|
* @interface DefaultApiInterface
|
|
183
180
|
*/
|
|
184
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>;
|
|
185
202
|
/**
|
|
186
203
|
* Creates request options for createGroup without sending the request
|
|
187
204
|
* @param {CreateGroupRequest} createGroupRequest
|
|
@@ -582,29 +599,6 @@ export interface DefaultApiInterface {
|
|
|
582
599
|
* Get collected inventory
|
|
583
600
|
*/
|
|
584
601
|
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
|
|
585
|
-
/**
|
|
586
|
-
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
587
|
-
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
588
|
-
* @deprecated
|
|
589
|
-
* @throws {RequiredError}
|
|
590
|
-
* @memberof DefaultApiInterface
|
|
591
|
-
*/
|
|
592
|
-
getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
|
|
593
|
-
/**
|
|
594
|
-
*
|
|
595
|
-
* @summary Get cluster-level utilization aggregates for the latest completed report
|
|
596
|
-
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
597
|
-
* @param {*} [options] Override http request option.
|
|
598
|
-
* @deprecated
|
|
599
|
-
* @throws {RequiredError}
|
|
600
|
-
* @memberof DefaultApiInterface
|
|
601
|
-
*/
|
|
602
|
-
getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
|
|
603
|
-
/**
|
|
604
|
-
* Get cluster-level utilization aggregates for the latest completed report
|
|
605
|
-
* @deprecated
|
|
606
|
-
*/
|
|
607
|
-
getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
608
602
|
/**
|
|
609
603
|
* Creates request options for getRightsizingReport without sending the request
|
|
610
604
|
* @param {string} reportId Report UUID
|
|
@@ -647,31 +641,6 @@ export interface DefaultApiInterface {
|
|
|
647
641
|
* Get utilization for a specific cluster from a specific report
|
|
648
642
|
*/
|
|
649
643
|
getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
|
|
650
|
-
/**
|
|
651
|
-
* Creates request options for getRightsizingReportClusters without sending the request
|
|
652
|
-
* @param {string} reportId Rightsizing report UUID
|
|
653
|
-
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
654
|
-
* @deprecated
|
|
655
|
-
* @throws {RequiredError}
|
|
656
|
-
* @memberof DefaultApiInterface
|
|
657
|
-
*/
|
|
658
|
-
getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
|
|
659
|
-
/**
|
|
660
|
-
*
|
|
661
|
-
* @summary Get cluster-level utilization aggregates for a specific report
|
|
662
|
-
* @param {string} reportId Rightsizing report UUID
|
|
663
|
-
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
664
|
-
* @param {*} [options] Override http request option.
|
|
665
|
-
* @deprecated
|
|
666
|
-
* @throws {RequiredError}
|
|
667
|
-
* @memberof DefaultApiInterface
|
|
668
|
-
*/
|
|
669
|
-
getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
|
|
670
|
-
/**
|
|
671
|
-
* Get cluster-level utilization aggregates for a specific report
|
|
672
|
-
* @deprecated
|
|
673
|
-
*/
|
|
674
|
-
getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
675
644
|
/**
|
|
676
645
|
* Creates request options for getVM without sending the request
|
|
677
646
|
* @param {string} id VirtualMachine id
|
|
@@ -1227,6 +1196,18 @@ export interface DefaultApiInterface {
|
|
|
1227
1196
|
*
|
|
1228
1197
|
*/
|
|
1229
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>;
|
|
1230
1211
|
/**
|
|
1231
1212
|
* Creates request options for createGroup without sending the request
|
|
1232
1213
|
*/
|
|
@@ -1483,21 +1464,6 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
1483
1464
|
* Get collected inventory
|
|
1484
1465
|
*/
|
|
1485
1466
|
getInventory(requestParameters?: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
|
|
1486
|
-
/**
|
|
1487
|
-
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
1488
|
-
* @deprecated
|
|
1489
|
-
*/
|
|
1490
|
-
getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
|
|
1491
|
-
/**
|
|
1492
|
-
* Get cluster-level utilization aggregates for the latest completed report
|
|
1493
|
-
* @deprecated
|
|
1494
|
-
*/
|
|
1495
|
-
getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
|
|
1496
|
-
/**
|
|
1497
|
-
* Get cluster-level utilization aggregates for the latest completed report
|
|
1498
|
-
* @deprecated
|
|
1499
|
-
*/
|
|
1500
|
-
getLatestRightsizingClusters(requestParameters?: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
1501
1467
|
/**
|
|
1502
1468
|
* Creates request options for getRightsizingReport without sending the request
|
|
1503
1469
|
*/
|
|
@@ -1522,21 +1488,6 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
1522
1488
|
* Get utilization for a specific cluster from a specific report
|
|
1523
1489
|
*/
|
|
1524
1490
|
getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
|
|
1525
|
-
/**
|
|
1526
|
-
* Creates request options for getRightsizingReportClusters without sending the request
|
|
1527
|
-
* @deprecated
|
|
1528
|
-
*/
|
|
1529
|
-
getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
|
|
1530
|
-
/**
|
|
1531
|
-
* Get cluster-level utilization aggregates for a specific report
|
|
1532
|
-
* @deprecated
|
|
1533
|
-
*/
|
|
1534
|
-
getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
|
|
1535
|
-
/**
|
|
1536
|
-
* Get cluster-level utilization aggregates for a specific report
|
|
1537
|
-
* @deprecated
|
|
1538
|
-
*/
|
|
1539
|
-
getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
1540
1491
|
/**
|
|
1541
1492
|
* Creates request options for getVM without sending the request
|
|
1542
1493
|
*/
|
|
@@ -24,6 +24,7 @@ import * as runtime from '../runtime.js';
|
|
|
24
24
|
import { AgentModeRequestToJSON, } from '../models/AgentModeRequest.js';
|
|
25
25
|
import { AgentStatusFromJSON, } from '../models/AgentStatus.js';
|
|
26
26
|
import { ApplicationListResponseFromJSON, } from '../models/ApplicationListResponse.js';
|
|
27
|
+
import { BatchUpdateExclusionRequestToJSON, } from '../models/BatchUpdateExclusionRequest.js';
|
|
27
28
|
import { BenchmarkRunFromJSON, } from '../models/BenchmarkRun.js';
|
|
28
29
|
import { CapabilityStatusFromJSON, } from '../models/CapabilityStatus.js';
|
|
29
30
|
import { CollectorStartRequestToJSON, } from '../models/CollectorStartRequest.js';
|
|
@@ -67,6 +68,45 @@ import { VmUtilizationDetailsFromJSON, } from '../models/VmUtilizationDetails.js
|
|
|
67
68
|
*
|
|
68
69
|
*/
|
|
69
70
|
export class DefaultApi extends runtime.BaseAPI {
|
|
71
|
+
/**
|
|
72
|
+
* Creates request options for batchUpdateVMExclusion without sending the request
|
|
73
|
+
*/
|
|
74
|
+
batchUpdateVMExclusionRequestOpts(requestParameters) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
if (requestParameters['batchUpdateExclusionRequest'] == null) {
|
|
77
|
+
throw new runtime.RequiredError('batchUpdateExclusionRequest', 'Required parameter "batchUpdateExclusionRequest" was null or undefined when calling batchUpdateVMExclusion().');
|
|
78
|
+
}
|
|
79
|
+
const queryParameters = {};
|
|
80
|
+
const headerParameters = {};
|
|
81
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
82
|
+
let urlPath = `/vms/batch-update-exclusion`;
|
|
83
|
+
return {
|
|
84
|
+
path: urlPath,
|
|
85
|
+
method: 'POST',
|
|
86
|
+
headers: headerParameters,
|
|
87
|
+
query: queryParameters,
|
|
88
|
+
body: BatchUpdateExclusionRequestToJSON(requestParameters['batchUpdateExclusionRequest']),
|
|
89
|
+
};
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Batch update VM exclusion status
|
|
94
|
+
*/
|
|
95
|
+
batchUpdateVMExclusionRaw(requestParameters, initOverrides) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
const requestOptions = yield this.batchUpdateVMExclusionRequestOpts(requestParameters);
|
|
98
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
99
|
+
return new runtime.VoidApiResponse(response);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Batch update VM exclusion status
|
|
104
|
+
*/
|
|
105
|
+
batchUpdateVMExclusion(requestParameters, initOverrides) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
yield this.batchUpdateVMExclusionRaw(requestParameters, initOverrides);
|
|
108
|
+
});
|
|
109
|
+
}
|
|
70
110
|
/**
|
|
71
111
|
* Creates request options for createGroup without sending the request
|
|
72
112
|
*/
|
|
@@ -837,47 +877,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
837
877
|
return yield response.value();
|
|
838
878
|
});
|
|
839
879
|
}
|
|
840
|
-
/**
|
|
841
|
-
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
842
|
-
* @deprecated
|
|
843
|
-
*/
|
|
844
|
-
getLatestRightsizingClustersRequestOpts(requestParameters) {
|
|
845
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
846
|
-
const queryParameters = {};
|
|
847
|
-
if (requestParameters['byExpression'] != null) {
|
|
848
|
-
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
849
|
-
}
|
|
850
|
-
const headerParameters = {};
|
|
851
|
-
let urlPath = `/cluster_rightsizing`;
|
|
852
|
-
return {
|
|
853
|
-
path: urlPath,
|
|
854
|
-
method: 'GET',
|
|
855
|
-
headers: headerParameters,
|
|
856
|
-
query: queryParameters,
|
|
857
|
-
};
|
|
858
|
-
});
|
|
859
|
-
}
|
|
860
|
-
/**
|
|
861
|
-
* Get cluster-level utilization aggregates for the latest completed report
|
|
862
|
-
* @deprecated
|
|
863
|
-
*/
|
|
864
|
-
getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
|
|
865
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
866
|
-
const requestOptions = yield this.getLatestRightsizingClustersRequestOpts(requestParameters);
|
|
867
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
868
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
|
|
869
|
-
});
|
|
870
|
-
}
|
|
871
|
-
/**
|
|
872
|
-
* Get cluster-level utilization aggregates for the latest completed report
|
|
873
|
-
* @deprecated
|
|
874
|
-
*/
|
|
875
|
-
getLatestRightsizingClusters() {
|
|
876
|
-
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
877
|
-
const response = yield this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
|
|
878
|
-
return yield response.value();
|
|
879
|
-
});
|
|
880
|
-
}
|
|
881
880
|
/**
|
|
882
881
|
* Creates request options for getRightsizingReport without sending the request
|
|
883
882
|
*/
|
|
@@ -960,51 +959,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
960
959
|
return yield response.value();
|
|
961
960
|
});
|
|
962
961
|
}
|
|
963
|
-
/**
|
|
964
|
-
* Creates request options for getRightsizingReportClusters without sending the request
|
|
965
|
-
* @deprecated
|
|
966
|
-
*/
|
|
967
|
-
getRightsizingReportClustersRequestOpts(requestParameters) {
|
|
968
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
969
|
-
if (requestParameters['reportId'] == null) {
|
|
970
|
-
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().');
|
|
971
|
-
}
|
|
972
|
-
const queryParameters = {};
|
|
973
|
-
if (requestParameters['byExpression'] != null) {
|
|
974
|
-
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
975
|
-
}
|
|
976
|
-
const headerParameters = {};
|
|
977
|
-
let urlPath = `/cluster_rightsizing/{report_id}`;
|
|
978
|
-
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
979
|
-
return {
|
|
980
|
-
path: urlPath,
|
|
981
|
-
method: 'GET',
|
|
982
|
-
headers: headerParameters,
|
|
983
|
-
query: queryParameters,
|
|
984
|
-
};
|
|
985
|
-
});
|
|
986
|
-
}
|
|
987
|
-
/**
|
|
988
|
-
* Get cluster-level utilization aggregates for a specific report
|
|
989
|
-
* @deprecated
|
|
990
|
-
*/
|
|
991
|
-
getRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
992
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
993
|
-
const requestOptions = yield this.getRightsizingReportClustersRequestOpts(requestParameters);
|
|
994
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
995
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
|
|
996
|
-
});
|
|
997
|
-
}
|
|
998
|
-
/**
|
|
999
|
-
* Get cluster-level utilization aggregates for a specific report
|
|
1000
|
-
* @deprecated
|
|
1001
|
-
*/
|
|
1002
|
-
getRightsizingReportClusters(requestParameters, initOverrides) {
|
|
1003
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1004
|
-
const response = yield this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
1005
|
-
return yield response.value();
|
|
1006
|
-
});
|
|
1007
|
-
}
|
|
1008
962
|
/**
|
|
1009
963
|
* Creates request options for getVM without sending the request
|
|
1010
964
|
*/
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BatchUpdateExclusionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface BatchUpdateExclusionRequest {
|
|
18
|
+
/**
|
|
19
|
+
* VM IDs to update
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof BatchUpdateExclusionRequest
|
|
22
|
+
*/
|
|
23
|
+
vmIds: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Exclusion state to set for all VMs
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof BatchUpdateExclusionRequest
|
|
28
|
+
*/
|
|
29
|
+
migrationExcluded: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the BatchUpdateExclusionRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfBatchUpdateExclusionRequest(value: object): value is BatchUpdateExclusionRequest;
|
|
35
|
+
export declare function BatchUpdateExclusionRequestFromJSON(json: any): BatchUpdateExclusionRequest;
|
|
36
|
+
export declare function BatchUpdateExclusionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchUpdateExclusionRequest;
|
|
37
|
+
export declare function BatchUpdateExclusionRequestToJSON(json: any): BatchUpdateExclusionRequest;
|
|
38
|
+
export declare function BatchUpdateExclusionRequestToJSONTyped(value?: BatchUpdateExclusionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
* Check if a given object implements the BatchUpdateExclusionRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfBatchUpdateExclusionRequest(value) {
|
|
18
|
+
if (!('vmIds' in value) || value['vmIds'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('migrationExcluded' in value) || value['migrationExcluded'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function BatchUpdateExclusionRequestFromJSON(json) {
|
|
25
|
+
return BatchUpdateExclusionRequestFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function BatchUpdateExclusionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'vmIds': json['vmIds'],
|
|
33
|
+
'migrationExcluded': json['migrationExcluded'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function BatchUpdateExclusionRequestToJSON(json) {
|
|
37
|
+
return BatchUpdateExclusionRequestToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function BatchUpdateExclusionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'vmIds': value['vmIds'],
|
|
45
|
+
'migrationExcluded': value['migrationExcluded'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { StorageIoConfiguration } from './StorageIoConfiguration.js';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -69,6 +70,12 @@ export interface Datastore {
|
|
|
69
70
|
* @memberof Datastore
|
|
70
71
|
*/
|
|
71
72
|
hostId?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {StorageIoConfiguration}
|
|
76
|
+
* @memberof Datastore
|
|
77
|
+
*/
|
|
78
|
+
storageIoConfiguration?: StorageIoConfiguration;
|
|
72
79
|
}
|
|
73
80
|
/**
|
|
74
81
|
* Check if a given object implements the Datastore interface.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { StorageIoConfigurationFromJSON, StorageIoConfigurationToJSON, } from './StorageIoConfiguration.js';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the Datastore interface.
|
|
16
17
|
*/
|
|
@@ -50,6 +51,7 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
51
|
'protocolType': json['protocolType'],
|
|
51
52
|
'model': json['model'],
|
|
52
53
|
'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
|
|
54
|
+
'storageIoConfiguration': json['storageIoConfiguration'] == null ? undefined : StorageIoConfigurationFromJSON(json['storageIoConfiguration']),
|
|
53
55
|
};
|
|
54
56
|
}
|
|
55
57
|
export function DatastoreToJSON(json) {
|
|
@@ -69,5 +71,6 @@ export function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
71
|
'protocolType': value['protocolType'],
|
|
70
72
|
'model': value['model'],
|
|
71
73
|
'hostId': value['hostId'],
|
|
74
|
+
'storageIoConfiguration': StorageIoConfigurationToJSON(value['storageIoConfiguration']),
|
|
72
75
|
};
|
|
73
76
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface IssuesBreakdown
|
|
16
|
+
*/
|
|
17
|
+
export interface IssuesBreakdown {
|
|
18
|
+
/**
|
|
19
|
+
* Number of VMs with at least one Critical issue
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof IssuesBreakdown
|
|
22
|
+
*/
|
|
23
|
+
critical: number;
|
|
24
|
+
/**
|
|
25
|
+
* Number of VMs with at least one Warning issue
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof IssuesBreakdown
|
|
28
|
+
*/
|
|
29
|
+
warning: number;
|
|
30
|
+
/**
|
|
31
|
+
* Number of VMs with at least one Information issue
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof IssuesBreakdown
|
|
34
|
+
*/
|
|
35
|
+
information: number;
|
|
36
|
+
/**
|
|
37
|
+
* Number of VMs with at least one Advisory issue
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof IssuesBreakdown
|
|
40
|
+
*/
|
|
41
|
+
advisory: number;
|
|
42
|
+
/**
|
|
43
|
+
* Number of VMs with at least one Error issue
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof IssuesBreakdown
|
|
46
|
+
*/
|
|
47
|
+
error: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the IssuesBreakdown interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfIssuesBreakdown(value: object): value is IssuesBreakdown;
|
|
53
|
+
export declare function IssuesBreakdownFromJSON(json: any): IssuesBreakdown;
|
|
54
|
+
export declare function IssuesBreakdownFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssuesBreakdown;
|
|
55
|
+
export declare function IssuesBreakdownToJSON(json: any): IssuesBreakdown;
|
|
56
|
+
export declare function IssuesBreakdownToJSONTyped(value?: IssuesBreakdown | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
* Check if a given object implements the IssuesBreakdown interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfIssuesBreakdown(value) {
|
|
18
|
+
if (!('critical' in value) || value['critical'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('warning' in value) || value['warning'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('information' in value) || value['information'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('advisory' in value) || value['advisory'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function IssuesBreakdownFromJSON(json) {
|
|
31
|
+
return IssuesBreakdownFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function IssuesBreakdownFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'critical': json['critical'],
|
|
39
|
+
'warning': json['warning'],
|
|
40
|
+
'information': json['information'],
|
|
41
|
+
'advisory': json['advisory'],
|
|
42
|
+
'error': json['error'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function IssuesBreakdownToJSON(json) {
|
|
46
|
+
return IssuesBreakdownToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function IssuesBreakdownToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'critical': value['critical'],
|
|
54
|
+
'warning': value['warning'],
|
|
55
|
+
'information': value['information'],
|
|
56
|
+
'advisory': value['advisory'],
|
|
57
|
+
'error': value['error'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Process
|
|
16
|
+
*/
|
|
17
|
+
export interface Process {
|
|
18
|
+
/**
|
|
19
|
+
* Name of the process
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Process
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Version of the process
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Process
|
|
28
|
+
*/
|
|
29
|
+
version?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the Process interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfProcess(value: object): value is Process;
|
|
35
|
+
export declare function ProcessFromJSON(json: any): Process;
|
|
36
|
+
export declare function ProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): Process;
|
|
37
|
+
export declare function ProcessToJSON(json: any): Process;
|
|
38
|
+
export declare function ProcessToJSONTyped(value?: Process | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
* Check if a given object implements the Process interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfProcess(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function ProcessFromJSON(json) {
|
|
23
|
+
return ProcessFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function ProcessFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'name': json['name'],
|
|
31
|
+
'version': json['version'] == null ? undefined : json['version'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function ProcessToJSON(json) {
|
|
35
|
+
return ProcessToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ProcessToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'name': value['name'],
|
|
43
|
+
'version': value['version'],
|
|
44
|
+
};
|
|
45
|
+
}
|