@openshift-migration-advisor/agent-sdk 0.12.0-645d2fae3eee → 0.12.0-a3d6bdc8bce2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +4 -0
- package/README.md +5 -2
- package/dist/apis/DefaultApi.d.ts +31 -0
- package/dist/apis/DefaultApi.js +36 -0
- package/dist/esm/apis/DefaultApi.d.ts +31 -0
- package/dist/esm/apis/DefaultApi.js +36 -0
- package/dist/esm/models/ClusterUtilization.d.ts +68 -0
- package/dist/esm/models/ClusterUtilization.js +67 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- package/dist/esm/models/Group.d.ts +0 -6
- package/dist/esm/models/Group.js +0 -2
- package/dist/esm/models/GroupResponse.d.ts +7 -0
- package/dist/esm/models/GroupResponse.js +3 -0
- package/dist/esm/models/InventoryData.d.ts +7 -0
- package/dist/esm/models/InventoryData.js +3 -0
- package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/esm/models/UpdateGroupRequest.js +0 -2
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +50 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +55 -0
- package/dist/esm/models/VirtualMachine.d.ts +2 -2
- package/dist/esm/models/VirtualMachine.js +2 -2
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/ClusterUtilization.d.ts +68 -0
- package/dist/models/ClusterUtilization.js +74 -0
- package/dist/models/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- package/dist/models/Group.d.ts +0 -6
- package/dist/models/Group.js +0 -2
- package/dist/models/GroupResponse.d.ts +7 -0
- package/dist/models/GroupResponse.js +3 -0
- package/dist/models/InventoryData.d.ts +7 -0
- package/dist/models/InventoryData.js +3 -0
- package/dist/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/models/UpdateGroupRequest.js +0 -2
- package/dist/models/VMFilterOptionsResponse.d.ts +50 -0
- package/dist/models/VMFilterOptionsResponse.js +62 -0
- package/dist/models/VirtualMachine.d.ts +2 -2
- package/dist/models/VirtualMachine.js +2 -2
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/DefaultApi.md +59 -0
- package/docs/Group.md +0 -2
- package/docs/GroupResponse.md +2 -0
- package/docs/InventoryData.md +2 -0
- package/docs/UpdateGroupRequest.md +0 -2
- package/docs/VMFilterOptionsResponse.md +40 -0
- package/docs/VirtualMachine.md +2 -2
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +63 -0
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CreateGroupRequest.ts +0 -8
- package/src/models/Group.ts +0 -8
- package/src/models/GroupResponse.ts +15 -0
- package/src/models/InventoryData.ts +15 -0
- package/src/models/UpdateGroupRequest.ts +0 -8
- package/src/models/VMFilterOptionsResponse.ts +93 -0
- package/src/models/VirtualMachine.ts +4 -4
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -6,6 +6,7 @@ docs/AgentModeRequest.md
|
|
|
6
6
|
docs/AgentStatus.md
|
|
7
7
|
docs/BenchmarkRun.md
|
|
8
8
|
docs/ClusterFeatures.md
|
|
9
|
+
docs/ClusterUtilization.md
|
|
9
10
|
docs/CollectorStartRequest.md
|
|
10
11
|
docs/CollectorStatus.md
|
|
11
12
|
docs/CreateGroupRequest.md
|
|
@@ -56,6 +57,7 @@ docs/UpdateLabelVMsRequest.md
|
|
|
56
57
|
docs/VCenter.md
|
|
57
58
|
docs/VMDevice.md
|
|
58
59
|
docs/VMDisk.md
|
|
60
|
+
docs/VMFilterOptionsResponse.md
|
|
59
61
|
docs/VMIssue.md
|
|
60
62
|
docs/VMLabelsResponse.md
|
|
61
63
|
docs/VMNIC.md
|
|
@@ -80,6 +82,7 @@ src/models/AgentModeRequest.ts
|
|
|
80
82
|
src/models/AgentStatus.ts
|
|
81
83
|
src/models/BenchmarkRun.ts
|
|
82
84
|
src/models/ClusterFeatures.ts
|
|
85
|
+
src/models/ClusterUtilization.ts
|
|
83
86
|
src/models/CollectorStartRequest.ts
|
|
84
87
|
src/models/CollectorStatus.ts
|
|
85
88
|
src/models/CreateGroupRequest.ts
|
|
@@ -129,6 +132,7 @@ src/models/UpdateLabelVMsRequest.ts
|
|
|
129
132
|
src/models/VCenter.ts
|
|
130
133
|
src/models/VMDevice.ts
|
|
131
134
|
src/models/VMDisk.ts
|
|
135
|
+
src/models/VMFilterOptionsResponse.ts
|
|
132
136
|
src/models/VMIssue.ts
|
|
133
137
|
src/models/VMLabelsResponse.ts
|
|
134
138
|
src/models/VMNIC.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/agent-sdk@0.12.0-
|
|
1
|
+
# @openshift-migration-advisor/agent-sdk@0.12.0-a3d6bdc8bce2
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -72,6 +72,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
72
72
|
*DefaultApi* | [**getVMLabels**](docs/DefaultApi.md#getvmlabels) | **GET** /vms/labels | Get all distinct labels in use across VMs
|
|
73
73
|
*DefaultApi* | [**getVMUtilization**](docs/DefaultApi.md#getvmutilization) | **GET** /vms/{id}/utilization | Get utilization breakdown for a specific VM
|
|
74
74
|
*DefaultApi* | [**getVMs**](docs/DefaultApi.md#getvms) | **GET** /vms | Get list of VMs with filtering and pagination
|
|
75
|
+
*DefaultApi* | [**getVMsFilterOptions**](docs/DefaultApi.md#getvmsfilteroptions) | **GET** /vms/filter-options | Get distinct filter option values for VMs
|
|
75
76
|
*DefaultApi* | [**getVersion**](docs/DefaultApi.md#getversion) | **GET** /version | Get agent version information
|
|
76
77
|
*DefaultApi* | [**listGroups**](docs/DefaultApi.md#listgroups) | **GET** /groups | List all groups
|
|
77
78
|
*DefaultApi* | [**listRightsizingReportClusters**](docs/DefaultApi.md#listrightsizingreportclusters) | **GET** /rightsizing/{report_id}/clusters | Get cluster-level utilization aggregates for a specific report
|
|
@@ -101,6 +102,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
101
102
|
- [AgentStatus](docs/AgentStatus.md)
|
|
102
103
|
- [BenchmarkRun](docs/BenchmarkRun.md)
|
|
103
104
|
- [ClusterFeatures](docs/ClusterFeatures.md)
|
|
105
|
+
- [ClusterUtilization](docs/ClusterUtilization.md)
|
|
104
106
|
- [CollectorStartRequest](docs/CollectorStartRequest.md)
|
|
105
107
|
- [CollectorStatus](docs/CollectorStatus.md)
|
|
106
108
|
- [CreateGroupRequest](docs/CreateGroupRequest.md)
|
|
@@ -150,6 +152,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
150
152
|
- [VCenter](docs/VCenter.md)
|
|
151
153
|
- [VMDevice](docs/VMDevice.md)
|
|
152
154
|
- [VMDisk](docs/VMDisk.md)
|
|
155
|
+
- [VMFilterOptionsResponse](docs/VMFilterOptionsResponse.md)
|
|
153
156
|
- [VMIssue](docs/VMIssue.md)
|
|
154
157
|
- [VMLabelsResponse](docs/VMLabelsResponse.md)
|
|
155
158
|
- [VMNIC](docs/VMNIC.md)
|
|
@@ -179,7 +182,7 @@ and is automatically generated by the
|
|
|
179
182
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
180
183
|
|
|
181
184
|
- API version: `v1`
|
|
182
|
-
- Package version: `0.12.0-
|
|
185
|
+
- Package version: `0.12.0-a3d6bdc8bce2`
|
|
183
186
|
- Generator version: `7.23.0-SNAPSHOT`
|
|
184
187
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
185
188
|
|
|
@@ -39,6 +39,7 @@ import { type StartInspectionRequest } from '../models/StartInspectionRequest.js
|
|
|
39
39
|
import { type StopForecasterPair202Response } from '../models/StopForecasterPair202Response.js';
|
|
40
40
|
import { type UpdateGroupRequest } from '../models/UpdateGroupRequest.js';
|
|
41
41
|
import { type UpdateLabelVMsRequest } from '../models/UpdateLabelVMsRequest.js';
|
|
42
|
+
import { type VMFilterOptionsResponse } from '../models/VMFilterOptionsResponse.js';
|
|
42
43
|
import { type VMLabelsResponse } from '../models/VMLabelsResponse.js';
|
|
43
44
|
import { type VcenterCredentials } from '../models/VcenterCredentials.js';
|
|
44
45
|
import { type VddkProperties } from '../models/VddkProperties.js';
|
|
@@ -627,6 +628,24 @@ export interface DefaultApiInterface {
|
|
|
627
628
|
* Get list of VMs with filtering and pagination
|
|
628
629
|
*/
|
|
629
630
|
getVMs(requestParameters: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
|
|
631
|
+
/**
|
|
632
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
633
|
+
* @throws {RequiredError}
|
|
634
|
+
* @memberof DefaultApiInterface
|
|
635
|
+
*/
|
|
636
|
+
getVMsFilterOptionsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
637
|
+
/**
|
|
638
|
+
*
|
|
639
|
+
* @summary Get distinct filter option values for VMs
|
|
640
|
+
* @param {*} [options] Override http request option.
|
|
641
|
+
* @throws {RequiredError}
|
|
642
|
+
* @memberof DefaultApiInterface
|
|
643
|
+
*/
|
|
644
|
+
getVMsFilterOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMFilterOptionsResponse>>;
|
|
645
|
+
/**
|
|
646
|
+
* Get distinct filter option values for VMs
|
|
647
|
+
*/
|
|
648
|
+
getVMsFilterOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMFilterOptionsResponse>;
|
|
630
649
|
/**
|
|
631
650
|
* Creates request options for getVersion without sending the request
|
|
632
651
|
* @throws {RequiredError}
|
|
@@ -1337,6 +1356,18 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
1337
1356
|
* Get list of VMs with filtering and pagination
|
|
1338
1357
|
*/
|
|
1339
1358
|
getVMs(requestParameters?: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
|
|
1359
|
+
/**
|
|
1360
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
1361
|
+
*/
|
|
1362
|
+
getVMsFilterOptionsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
1363
|
+
/**
|
|
1364
|
+
* Get distinct filter option values for VMs
|
|
1365
|
+
*/
|
|
1366
|
+
getVMsFilterOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMFilterOptionsResponse>>;
|
|
1367
|
+
/**
|
|
1368
|
+
* Get distinct filter option values for VMs
|
|
1369
|
+
*/
|
|
1370
|
+
getVMsFilterOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMFilterOptionsResponse>;
|
|
1340
1371
|
/**
|
|
1341
1372
|
* Creates request options for getVersion without sending the request
|
|
1342
1373
|
*/
|
package/dist/apis/DefaultApi.js
CHANGED
|
@@ -53,6 +53,7 @@ const StartInspectionRequest_js_1 = require("../models/StartInspectionRequest.js
|
|
|
53
53
|
const StopForecasterPair202Response_js_1 = require("../models/StopForecasterPair202Response.js");
|
|
54
54
|
const UpdateGroupRequest_js_1 = require("../models/UpdateGroupRequest.js");
|
|
55
55
|
const UpdateLabelVMsRequest_js_1 = require("../models/UpdateLabelVMsRequest.js");
|
|
56
|
+
const VMFilterOptionsResponse_js_1 = require("../models/VMFilterOptionsResponse.js");
|
|
56
57
|
const VMLabelsResponse_js_1 = require("../models/VMLabelsResponse.js");
|
|
57
58
|
const VcenterCredentials_js_1 = require("../models/VcenterCredentials.js");
|
|
58
59
|
const VddkProperties_js_1 = require("../models/VddkProperties.js");
|
|
@@ -940,6 +941,41 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
940
941
|
return yield response.value();
|
|
941
942
|
});
|
|
942
943
|
}
|
|
944
|
+
/**
|
|
945
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
946
|
+
*/
|
|
947
|
+
getVMsFilterOptionsRequestOpts() {
|
|
948
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
949
|
+
const queryParameters = {};
|
|
950
|
+
const headerParameters = {};
|
|
951
|
+
let urlPath = `/vms/filter-options`;
|
|
952
|
+
return {
|
|
953
|
+
path: urlPath,
|
|
954
|
+
method: 'GET',
|
|
955
|
+
headers: headerParameters,
|
|
956
|
+
query: queryParameters,
|
|
957
|
+
};
|
|
958
|
+
});
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
* Get distinct filter option values for VMs
|
|
962
|
+
*/
|
|
963
|
+
getVMsFilterOptionsRaw(initOverrides) {
|
|
964
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
965
|
+
const requestOptions = yield this.getVMsFilterOptionsRequestOpts();
|
|
966
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
967
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VMFilterOptionsResponse_js_1.VMFilterOptionsResponseFromJSON)(jsonValue));
|
|
968
|
+
});
|
|
969
|
+
}
|
|
970
|
+
/**
|
|
971
|
+
* Get distinct filter option values for VMs
|
|
972
|
+
*/
|
|
973
|
+
getVMsFilterOptions(initOverrides) {
|
|
974
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
975
|
+
const response = yield this.getVMsFilterOptionsRaw(initOverrides);
|
|
976
|
+
return yield response.value();
|
|
977
|
+
});
|
|
978
|
+
}
|
|
943
979
|
/**
|
|
944
980
|
* Creates request options for getVersion without sending the request
|
|
945
981
|
*/
|
|
@@ -39,6 +39,7 @@ import { type StartInspectionRequest } from '../models/StartInspectionRequest.js
|
|
|
39
39
|
import { type StopForecasterPair202Response } from '../models/StopForecasterPair202Response.js';
|
|
40
40
|
import { type UpdateGroupRequest } from '../models/UpdateGroupRequest.js';
|
|
41
41
|
import { type UpdateLabelVMsRequest } from '../models/UpdateLabelVMsRequest.js';
|
|
42
|
+
import { type VMFilterOptionsResponse } from '../models/VMFilterOptionsResponse.js';
|
|
42
43
|
import { type VMLabelsResponse } from '../models/VMLabelsResponse.js';
|
|
43
44
|
import { type VcenterCredentials } from '../models/VcenterCredentials.js';
|
|
44
45
|
import { type VddkProperties } from '../models/VddkProperties.js';
|
|
@@ -627,6 +628,24 @@ export interface DefaultApiInterface {
|
|
|
627
628
|
* Get list of VMs with filtering and pagination
|
|
628
629
|
*/
|
|
629
630
|
getVMs(requestParameters: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
|
|
631
|
+
/**
|
|
632
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
633
|
+
* @throws {RequiredError}
|
|
634
|
+
* @memberof DefaultApiInterface
|
|
635
|
+
*/
|
|
636
|
+
getVMsFilterOptionsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
637
|
+
/**
|
|
638
|
+
*
|
|
639
|
+
* @summary Get distinct filter option values for VMs
|
|
640
|
+
* @param {*} [options] Override http request option.
|
|
641
|
+
* @throws {RequiredError}
|
|
642
|
+
* @memberof DefaultApiInterface
|
|
643
|
+
*/
|
|
644
|
+
getVMsFilterOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMFilterOptionsResponse>>;
|
|
645
|
+
/**
|
|
646
|
+
* Get distinct filter option values for VMs
|
|
647
|
+
*/
|
|
648
|
+
getVMsFilterOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMFilterOptionsResponse>;
|
|
630
649
|
/**
|
|
631
650
|
* Creates request options for getVersion without sending the request
|
|
632
651
|
* @throws {RequiredError}
|
|
@@ -1337,6 +1356,18 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
1337
1356
|
* Get list of VMs with filtering and pagination
|
|
1338
1357
|
*/
|
|
1339
1358
|
getVMs(requestParameters?: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
|
|
1359
|
+
/**
|
|
1360
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
1361
|
+
*/
|
|
1362
|
+
getVMsFilterOptionsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
1363
|
+
/**
|
|
1364
|
+
* Get distinct filter option values for VMs
|
|
1365
|
+
*/
|
|
1366
|
+
getVMsFilterOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMFilterOptionsResponse>>;
|
|
1367
|
+
/**
|
|
1368
|
+
* Get distinct filter option values for VMs
|
|
1369
|
+
*/
|
|
1370
|
+
getVMsFilterOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMFilterOptionsResponse>;
|
|
1340
1371
|
/**
|
|
1341
1372
|
* Creates request options for getVersion without sending the request
|
|
1342
1373
|
*/
|
|
@@ -50,6 +50,7 @@ import { StartInspectionRequestToJSON, } from '../models/StartInspectionRequest.
|
|
|
50
50
|
import { StopForecasterPair202ResponseFromJSON, } from '../models/StopForecasterPair202Response.js';
|
|
51
51
|
import { UpdateGroupRequestToJSON, } from '../models/UpdateGroupRequest.js';
|
|
52
52
|
import { UpdateLabelVMsRequestToJSON, } from '../models/UpdateLabelVMsRequest.js';
|
|
53
|
+
import { VMFilterOptionsResponseFromJSON, } from '../models/VMFilterOptionsResponse.js';
|
|
53
54
|
import { VMLabelsResponseFromJSON, } from '../models/VMLabelsResponse.js';
|
|
54
55
|
import { VcenterCredentialsToJSON, } from '../models/VcenterCredentials.js';
|
|
55
56
|
import { VddkPropertiesFromJSON, } from '../models/VddkProperties.js';
|
|
@@ -937,6 +938,41 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
937
938
|
return yield response.value();
|
|
938
939
|
});
|
|
939
940
|
}
|
|
941
|
+
/**
|
|
942
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
943
|
+
*/
|
|
944
|
+
getVMsFilterOptionsRequestOpts() {
|
|
945
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
946
|
+
const queryParameters = {};
|
|
947
|
+
const headerParameters = {};
|
|
948
|
+
let urlPath = `/vms/filter-options`;
|
|
949
|
+
return {
|
|
950
|
+
path: urlPath,
|
|
951
|
+
method: 'GET',
|
|
952
|
+
headers: headerParameters,
|
|
953
|
+
query: queryParameters,
|
|
954
|
+
};
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
/**
|
|
958
|
+
* Get distinct filter option values for VMs
|
|
959
|
+
*/
|
|
960
|
+
getVMsFilterOptionsRaw(initOverrides) {
|
|
961
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
962
|
+
const requestOptions = yield this.getVMsFilterOptionsRequestOpts();
|
|
963
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
964
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VMFilterOptionsResponseFromJSON(jsonValue));
|
|
965
|
+
});
|
|
966
|
+
}
|
|
967
|
+
/**
|
|
968
|
+
* Get distinct filter option values for VMs
|
|
969
|
+
*/
|
|
970
|
+
getVMsFilterOptions(initOverrides) {
|
|
971
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
972
|
+
const response = yield this.getVMsFilterOptionsRaw(initOverrides);
|
|
973
|
+
return yield response.value();
|
|
974
|
+
});
|
|
975
|
+
}
|
|
940
976
|
/**
|
|
941
977
|
* Creates request options for getVersion without sending the request
|
|
942
978
|
*/
|
|
@@ -0,0 +1,68 @@
|
|
|
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 ClusterUtilization
|
|
16
|
+
*/
|
|
17
|
+
export interface ClusterUtilization {
|
|
18
|
+
/**
|
|
19
|
+
* Average CPU utilization percentage (0-100)
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ClusterUtilization
|
|
22
|
+
*/
|
|
23
|
+
cpu_avg: number;
|
|
24
|
+
/**
|
|
25
|
+
* 95th percentile CPU utilization percentage (0-100)
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ClusterUtilization
|
|
28
|
+
*/
|
|
29
|
+
cpu_p95: number;
|
|
30
|
+
/**
|
|
31
|
+
* Maximum CPU utilization percentage (0-100)
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ClusterUtilization
|
|
34
|
+
*/
|
|
35
|
+
cpu_max: number;
|
|
36
|
+
/**
|
|
37
|
+
* Average memory utilization percentage (0-100)
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ClusterUtilization
|
|
40
|
+
*/
|
|
41
|
+
mem_avg: number;
|
|
42
|
+
/**
|
|
43
|
+
* 95th percentile memory utilization percentage (0-100)
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ClusterUtilization
|
|
46
|
+
*/
|
|
47
|
+
mem_p95: number;
|
|
48
|
+
/**
|
|
49
|
+
* Maximum memory utilization percentage (0-100)
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ClusterUtilization
|
|
52
|
+
*/
|
|
53
|
+
mem_max: number;
|
|
54
|
+
/**
|
|
55
|
+
* Data coverage confidence percentage (0-100), calculated as vCPU-weighted coverage
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof ClusterUtilization
|
|
58
|
+
*/
|
|
59
|
+
confidence: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the ClusterUtilization interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfClusterUtilization(value: object): value is ClusterUtilization;
|
|
65
|
+
export declare function ClusterUtilizationFromJSON(json: any): ClusterUtilization;
|
|
66
|
+
export declare function ClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterUtilization;
|
|
67
|
+
export declare function ClusterUtilizationToJSON(json: any): ClusterUtilization;
|
|
68
|
+
export declare function ClusterUtilizationToJSONTyped(value?: ClusterUtilization | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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 ClusterUtilization interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfClusterUtilization(value) {
|
|
18
|
+
if (!('cpu_avg' in value) || value['cpu_avg'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('cpu_p95' in value) || value['cpu_p95'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('cpu_max' in value) || value['cpu_max'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('mem_avg' in value) || value['mem_avg'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('mem_p95' in value) || value['mem_p95'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('mem_max' in value) || value['mem_max'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function ClusterUtilizationFromJSON(json) {
|
|
35
|
+
return ClusterUtilizationFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ClusterUtilizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'cpu_avg': json['cpu_avg'],
|
|
43
|
+
'cpu_p95': json['cpu_p95'],
|
|
44
|
+
'cpu_max': json['cpu_max'],
|
|
45
|
+
'mem_avg': json['mem_avg'],
|
|
46
|
+
'mem_p95': json['mem_p95'],
|
|
47
|
+
'mem_max': json['mem_max'],
|
|
48
|
+
'confidence': json['confidence'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function ClusterUtilizationToJSON(json) {
|
|
52
|
+
return ClusterUtilizationToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function ClusterUtilizationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'cpu_avg': value['cpu_avg'],
|
|
60
|
+
'cpu_p95': value['cpu_p95'],
|
|
61
|
+
'cpu_max': value['cpu_max'],
|
|
62
|
+
'mem_avg': value['mem_avg'],
|
|
63
|
+
'mem_p95': value['mem_p95'],
|
|
64
|
+
'mem_max': value['mem_max'],
|
|
65
|
+
'confidence': value['confidence'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -33,12 +33,6 @@ export interface CreateGroupRequest {
|
|
|
33
33
|
* @memberof CreateGroupRequest
|
|
34
34
|
*/
|
|
35
35
|
filter: string;
|
|
36
|
-
/**
|
|
37
|
-
* Tags to apply to matching VMs (only alphanumeric, underscore, and dot allowed)
|
|
38
|
-
* @type {Array<string>}
|
|
39
|
-
* @memberof CreateGroupRequest
|
|
40
|
-
*/
|
|
41
|
-
tags?: Array<string>;
|
|
42
36
|
}
|
|
43
37
|
/**
|
|
44
38
|
* Check if a given object implements the CreateGroupRequest interface.
|
|
@@ -32,7 +32,6 @@ export function CreateGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
'name': json['name'],
|
|
33
33
|
'description': json['description'] == null ? undefined : json['description'],
|
|
34
34
|
'filter': json['filter'],
|
|
35
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
36
35
|
};
|
|
37
36
|
}
|
|
38
37
|
export function CreateGroupRequestToJSON(json) {
|
|
@@ -46,6 +45,5 @@ export function CreateGroupRequestToJSONTyped(value, ignoreDiscriminator = false
|
|
|
46
45
|
'name': value['name'],
|
|
47
46
|
'description': value['description'],
|
|
48
47
|
'filter': value['filter'],
|
|
49
|
-
'tags': value['tags'],
|
|
50
48
|
};
|
|
51
49
|
}
|
|
@@ -39,12 +39,6 @@ export interface Group {
|
|
|
39
39
|
* @memberof Group
|
|
40
40
|
*/
|
|
41
41
|
filter: string;
|
|
42
|
-
/**
|
|
43
|
-
* Tags associated with this group (applied to matching VMs)
|
|
44
|
-
* @type {Array<string>}
|
|
45
|
-
* @memberof Group
|
|
46
|
-
*/
|
|
47
|
-
tags?: Array<string>;
|
|
48
42
|
/**
|
|
49
43
|
* Timestamp when the group was created
|
|
50
44
|
* @type {Date}
|
package/dist/esm/models/Group.js
CHANGED
|
@@ -35,7 +35,6 @@ export function GroupFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'name': json['name'],
|
|
36
36
|
'description': json['description'] == null ? undefined : json['description'],
|
|
37
37
|
'filter': json['filter'],
|
|
38
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
39
38
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
40
39
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
41
40
|
};
|
|
@@ -52,7 +51,6 @@ export function GroupToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
51
|
'name': value['name'],
|
|
53
52
|
'description': value['description'],
|
|
54
53
|
'filter': value['filter'],
|
|
55
|
-
'tags': value['tags'],
|
|
56
54
|
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
57
55
|
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
58
56
|
};
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Group } from './Group.js';
|
|
13
|
+
import type { Inventory } from './Inventory.js';
|
|
13
14
|
import type { VirtualMachine } from './VirtualMachine.js';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -23,6 +24,12 @@ export interface GroupResponse {
|
|
|
23
24
|
* @memberof GroupResponse
|
|
24
25
|
*/
|
|
25
26
|
group: Group;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {Inventory}
|
|
30
|
+
* @memberof GroupResponse
|
|
31
|
+
*/
|
|
32
|
+
inventory?: Inventory;
|
|
26
33
|
/**
|
|
27
34
|
*
|
|
28
35
|
* @type {Array<VirtualMachine>}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { GroupFromJSON, GroupToJSON, } from './Group.js';
|
|
15
|
+
import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
|
|
15
16
|
import { VirtualMachineFromJSON, VirtualMachineToJSON, } from './VirtualMachine.js';
|
|
16
17
|
/**
|
|
17
18
|
* Check if a given object implements the GroupResponse interface.
|
|
@@ -38,6 +39,7 @@ export function GroupResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
39
|
}
|
|
39
40
|
return {
|
|
40
41
|
'group': GroupFromJSON(json['group']),
|
|
42
|
+
'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
|
|
41
43
|
'vms': (json['vms'].map(VirtualMachineFromJSON)),
|
|
42
44
|
'total': json['total'],
|
|
43
45
|
'page': json['page'],
|
|
@@ -53,6 +55,7 @@ export function GroupResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
53
55
|
}
|
|
54
56
|
return {
|
|
55
57
|
'group': GroupToJSON(value['group']),
|
|
58
|
+
'inventory': InventoryToJSON(value['inventory']),
|
|
56
59
|
'vms': (value['vms'].map(VirtualMachineToJSON)),
|
|
57
60
|
'total': value['total'],
|
|
58
61
|
'page': value['page'],
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { VCenter } from './VCenter.js';
|
|
13
13
|
import type { Infra } from './Infra.js';
|
|
14
|
+
import type { ClusterUtilization } from './ClusterUtilization.js';
|
|
14
15
|
import type { VMs } from './VMs.js';
|
|
15
16
|
import type { ClusterFeatures } from './ClusterFeatures.js';
|
|
16
17
|
/**
|
|
@@ -31,6 +32,12 @@ export interface InventoryData {
|
|
|
31
32
|
* @memberof InventoryData
|
|
32
33
|
*/
|
|
33
34
|
clusterFeatures?: ClusterFeatures;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {ClusterUtilization}
|
|
38
|
+
* @memberof InventoryData
|
|
39
|
+
*/
|
|
40
|
+
clusterUtilization?: ClusterUtilization;
|
|
34
41
|
/**
|
|
35
42
|
*
|
|
36
43
|
* @type {VMs}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { VCenterFromJSON, VCenterToJSON, } from './VCenter.js';
|
|
15
15
|
import { InfraFromJSON, InfraToJSON, } from './Infra.js';
|
|
16
|
+
import { ClusterUtilizationFromJSON, ClusterUtilizationToJSON, } from './ClusterUtilization.js';
|
|
16
17
|
import { VMsFromJSON, VMsToJSON, } from './VMs.js';
|
|
17
18
|
import { ClusterFeaturesFromJSON, ClusterFeaturesToJSON, } from './ClusterFeatures.js';
|
|
18
19
|
/**
|
|
@@ -35,6 +36,7 @@ export function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
36
|
return {
|
|
36
37
|
'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
|
|
37
38
|
'clusterFeatures': json['clusterFeatures'] == null ? undefined : ClusterFeaturesFromJSON(json['clusterFeatures']),
|
|
39
|
+
'clusterUtilization': json['clusterUtilization'] == null ? undefined : ClusterUtilizationFromJSON(json['clusterUtilization']),
|
|
38
40
|
'vms': VMsFromJSON(json['vms']),
|
|
39
41
|
'infra': InfraFromJSON(json['infra']),
|
|
40
42
|
};
|
|
@@ -49,6 +51,7 @@ export function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
51
|
return {
|
|
50
52
|
'vcenter': VCenterToJSON(value['vcenter']),
|
|
51
53
|
'clusterFeatures': ClusterFeaturesToJSON(value['clusterFeatures']),
|
|
54
|
+
'clusterUtilization': ClusterUtilizationToJSON(value['clusterUtilization']),
|
|
52
55
|
'vms': VMsToJSON(value['vms']),
|
|
53
56
|
'infra': InfraToJSON(value['infra']),
|
|
54
57
|
};
|
|
@@ -33,12 +33,6 @@ export interface UpdateGroupRequest {
|
|
|
33
33
|
* @memberof UpdateGroupRequest
|
|
34
34
|
*/
|
|
35
35
|
filter?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Tags to apply to matching VMs (only alphanumeric, underscore, and dot allowed)
|
|
38
|
-
* @type {Array<string>}
|
|
39
|
-
* @memberof UpdateGroupRequest
|
|
40
|
-
*/
|
|
41
|
-
tags?: Array<string>;
|
|
42
36
|
}
|
|
43
37
|
/**
|
|
44
38
|
* Check if a given object implements the UpdateGroupRequest interface.
|
|
@@ -28,7 +28,6 @@ export function UpdateGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
'name': json['name'] == null ? undefined : json['name'],
|
|
29
29
|
'description': json['description'] == null ? undefined : json['description'],
|
|
30
30
|
'filter': json['filter'] == null ? undefined : json['filter'],
|
|
31
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
32
31
|
};
|
|
33
32
|
}
|
|
34
33
|
export function UpdateGroupRequestToJSON(json) {
|
|
@@ -42,6 +41,5 @@ export function UpdateGroupRequestToJSONTyped(value, ignoreDiscriminator = false
|
|
|
42
41
|
'name': value['name'],
|
|
43
42
|
'description': value['description'],
|
|
44
43
|
'filter': value['filter'],
|
|
45
|
-
'tags': value['tags'],
|
|
46
44
|
};
|
|
47
45
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 VMFilterOptionsResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface VMFilterOptionsResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Distinct cluster names
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof VMFilterOptionsResponse
|
|
22
|
+
*/
|
|
23
|
+
clusters: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Distinct datacenter names
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof VMFilterOptionsResponse
|
|
28
|
+
*/
|
|
29
|
+
datacenters: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Distinct concern labels
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof VMFilterOptionsResponse
|
|
34
|
+
*/
|
|
35
|
+
concernLabels: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Distinct concern categories
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof VMFilterOptionsResponse
|
|
40
|
+
*/
|
|
41
|
+
concernCategories: Array<string>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the VMFilterOptionsResponse interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfVMFilterOptionsResponse(value: object): value is VMFilterOptionsResponse;
|
|
47
|
+
export declare function VMFilterOptionsResponseFromJSON(json: any): VMFilterOptionsResponse;
|
|
48
|
+
export declare function VMFilterOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMFilterOptionsResponse;
|
|
49
|
+
export declare function VMFilterOptionsResponseToJSON(json: any): VMFilterOptionsResponse;
|
|
50
|
+
export declare function VMFilterOptionsResponseToJSONTyped(value?: VMFilterOptionsResponse | null, ignoreDiscriminator?: boolean): any;
|