@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0-1f1dc16fb9e5
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 +46 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +52 -17
- package/dist/apis/DefaultApi.d.ts +632 -126
- package/dist/apis/DefaultApi.js +710 -160
- package/dist/esm/apis/DefaultApi.d.ts +632 -126
- package/dist/esm/apis/DefaultApi.js +724 -174
- package/dist/esm/models/BenchmarkRun.d.ts +104 -0
- package/dist/esm/models/BenchmarkRun.js +85 -0
- package/dist/esm/models/DatastoreDetail.d.ts +90 -0
- package/dist/esm/models/DatastoreDetail.js +74 -0
- package/dist/esm/models/DatastorePair.d.ts +50 -0
- package/dist/esm/models/DatastorePair.js +53 -0
- package/dist/esm/models/EstimateRange.d.ts +44 -0
- package/dist/esm/models/EstimateRange.js +45 -0
- package/dist/esm/models/ForecastStats.d.ts +87 -0
- package/dist/esm/models/ForecastStats.js +64 -0
- package/dist/esm/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
- package/dist/esm/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/esm/models/ForecasterPairStatus.js +82 -0
- package/dist/esm/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/esm/models/ForecasterStartRequest.js +53 -0
- package/dist/esm/models/ForecasterStatus.d.ts +47 -0
- package/dist/esm/models/ForecasterStatus.js +53 -0
- package/dist/esm/models/InspectorStatus.d.ts +20 -7
- package/dist/esm/models/InspectorStatus.js +12 -7
- package/dist/esm/models/PairCapability.d.ts +60 -0
- package/dist/esm/models/PairCapability.js +64 -0
- package/dist/esm/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/esm/models/PairCapabilityRequest.js +47 -0
- package/dist/esm/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/esm/models/PutForecasterCredentials403Response.js +43 -0
- package/dist/esm/models/RightsizingCollectRequest.d.ts +70 -0
- package/dist/esm/models/RightsizingCollectRequest.js +56 -0
- package/dist/esm/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/esm/models/RightsizingMetricStats.js +63 -0
- package/dist/esm/models/RightsizingReport.d.ts +81 -0
- package/dist/esm/models/RightsizingReport.js +76 -0
- package/dist/esm/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingReportListResponse.js +48 -0
- package/dist/esm/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/esm/models/RightsizingReportSummary.js +71 -0
- package/dist/esm/models/RightsizingVMReport.d.ts +53 -0
- package/dist/esm/models/RightsizingVMReport.js +57 -0
- package/dist/esm/models/StartInspectionRequest.d.ts +32 -0
- package/dist/esm/models/StartInspectionRequest.js +43 -0
- package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/esm/models/StopForecasterPair202Response.js +49 -0
- package/dist/esm/models/VMs.d.ts +18 -0
- package/dist/esm/models/VMs.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +31 -1
- package/dist/esm/models/VirtualMachine.js +12 -4
- package/dist/esm/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/esm/models/VirtualMachineDetail.js +3 -3
- package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
- package/dist/esm/models/VmInspectionConcern.js +51 -0
- package/dist/esm/models/VmInspectionResults.d.ts +33 -0
- package/dist/esm/models/VmInspectionResults.js +42 -0
- package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
- package/dist/esm/models/VmInspectionStatus.js +1 -2
- package/dist/esm/models/VmUtilizationDetails.d.ts +98 -0
- package/dist/esm/models/VmUtilizationDetails.js +87 -0
- package/dist/esm/models/index.d.ts +23 -1
- package/dist/esm/models/index.js +23 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/BenchmarkRun.d.ts +104 -0
- package/dist/models/BenchmarkRun.js +92 -0
- package/dist/models/DatastoreDetail.d.ts +90 -0
- package/dist/models/DatastoreDetail.js +82 -0
- package/dist/models/DatastorePair.d.ts +50 -0
- package/dist/models/DatastorePair.js +60 -0
- package/dist/models/EstimateRange.d.ts +44 -0
- package/dist/models/EstimateRange.js +52 -0
- package/dist/models/ForecastStats.d.ts +87 -0
- package/dist/models/ForecastStats.js +71 -0
- package/dist/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/models/ForecasterDatastoresRequest.js +49 -0
- package/dist/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/models/ForecasterPairStatus.js +90 -0
- package/dist/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/models/ForecasterStartRequest.js +60 -0
- package/dist/models/ForecasterStatus.d.ts +47 -0
- package/dist/models/ForecasterStatus.js +61 -0
- package/dist/models/InspectorStatus.d.ts +20 -7
- package/dist/models/InspectorStatus.js +12 -7
- package/dist/models/PairCapability.d.ts +60 -0
- package/dist/models/PairCapability.js +72 -0
- package/dist/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/models/PairCapabilityRequest.js +54 -0
- package/dist/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/models/PutForecasterCredentials403Response.js +50 -0
- package/dist/models/RightsizingCollectRequest.d.ts +70 -0
- package/dist/models/RightsizingCollectRequest.js +63 -0
- package/dist/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/models/RightsizingMetricStats.js +70 -0
- package/dist/models/RightsizingReport.d.ts +81 -0
- package/dist/models/RightsizingReport.js +83 -0
- package/dist/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/models/RightsizingReportListResponse.js +55 -0
- package/dist/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/models/RightsizingReportSummary.js +78 -0
- package/dist/models/RightsizingVMReport.d.ts +53 -0
- package/dist/models/RightsizingVMReport.js +64 -0
- package/dist/models/StartInspectionRequest.d.ts +32 -0
- package/dist/models/StartInspectionRequest.js +50 -0
- package/dist/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/models/StopForecasterPair202Response.js +57 -0
- package/dist/models/VMs.d.ts +18 -0
- package/dist/models/VMs.js +4 -0
- package/dist/models/VirtualMachine.d.ts +31 -1
- package/dist/models/VirtualMachine.js +12 -4
- package/dist/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/models/VirtualMachineDetail.js +3 -3
- package/dist/models/VmInspectionConcern.d.ts +44 -0
- package/dist/models/VmInspectionConcern.js +58 -0
- package/dist/models/VmInspectionResults.d.ts +33 -0
- package/dist/models/VmInspectionResults.js +49 -0
- package/dist/models/VmInspectionStatus.d.ts +0 -1
- package/dist/models/VmInspectionStatus.js +1 -2
- package/dist/models/VmUtilizationDetails.d.ts +98 -0
- package/dist/models/VmUtilizationDetails.js +94 -0
- package/dist/models/index.d.ts +23 -1
- package/dist/models/index.js +23 -1
- package/dist/runtime.js +1 -1
- package/docs/BenchmarkRun.md +58 -0
- package/docs/DatastoreDetail.md +50 -0
- package/docs/DatastorePair.md +40 -0
- package/docs/DefaultApi.md +1123 -237
- package/docs/EstimateRange.md +39 -0
- package/docs/ForecastStats.md +52 -0
- package/docs/ForecasterDatastoresRequest.md +34 -0
- package/docs/ForecasterPairStatus.md +52 -0
- package/docs/ForecasterStartRequest.md +42 -0
- package/docs/ForecasterStatus.md +36 -0
- package/docs/InspectorStatus.md +4 -0
- package/docs/PairCapability.md +40 -0
- package/docs/PairCapabilityRequest.md +36 -0
- package/docs/PutForecasterCredentials403Response.md +36 -0
- package/docs/RightsizingCollectRequest.md +46 -0
- package/docs/RightsizingMetricStats.md +44 -0
- package/docs/RightsizingReport.md +50 -0
- package/docs/RightsizingReportListResponse.md +36 -0
- package/docs/RightsizingReportSummary.md +49 -0
- package/docs/RightsizingVMReport.md +40 -0
- package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +5 -6
- package/docs/StopForecasterPair202Response.md +36 -0
- package/docs/VMs.md +4 -0
- package/docs/VirtualMachine.md +12 -2
- package/docs/VirtualMachineDetail.md +1 -1
- package/docs/VmInspectionConcern.md +39 -0
- package/docs/VmInspectionResults.md +35 -0
- package/docs/VmUtilizationDetails.md +56 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +1396 -350
- package/src/models/BenchmarkRun.ts +171 -0
- package/src/models/DatastoreDetail.ts +146 -0
- package/src/models/DatastorePair.ts +92 -0
- package/src/models/EstimateRange.ts +81 -0
- package/src/models/ForecastStats.ts +147 -0
- package/src/models/ForecasterDatastoresRequest.ts +73 -0
- package/src/models/ForecasterPairStatus.ts +158 -0
- package/src/models/ForecasterStartRequest.ts +113 -0
- package/src/models/ForecasterStatus.ts +93 -0
- package/src/models/InspectorStatus.ts +37 -7
- package/src/models/PairCapability.ts +106 -0
- package/src/models/PairCapabilityRequest.ts +89 -0
- package/src/models/PutForecasterCredentials403Response.ts +73 -0
- package/src/models/RightsizingCollectRequest.ts +123 -0
- package/src/models/RightsizingMetricStats.ts +111 -0
- package/src/models/RightsizingReport.ts +146 -0
- package/src/models/RightsizingReportListResponse.ts +83 -0
- package/src/models/RightsizingReportSummary.ts +129 -0
- package/src/models/RightsizingVMReport.ts +101 -0
- package/src/models/StartInspectionRequest.ts +66 -0
- package/src/models/StopForecasterPair202Response.ts +83 -0
- package/src/models/VMs.ts +18 -0
- package/src/models/VirtualMachine.ts +43 -4
- package/src/models/VirtualMachineDetail.ts +11 -11
- package/src/models/VmInspectionConcern.ts +84 -0
- package/src/models/VmInspectionResults.ts +73 -0
- package/src/models/VmInspectionStatus.ts +1 -2
- package/src/models/VmUtilizationDetails.ts +165 -0
- package/src/models/index.ts +23 -1
- package/src/runtime.ts +1 -2
- package/dist/esm/models/InspectorStartRequest.d.ts +0 -39
- package/dist/esm/models/InspectorStartRequest.js +0 -48
- package/dist/models/InspectorStartRequest.d.ts +0 -39
- package/dist/models/InspectorStartRequest.js +0 -55
- package/src/models/InspectorStartRequest.ts +0 -83
package/dist/apis/DefaultApi.js
CHANGED
|
@@ -24,89 +24,118 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.DefaultApi = void 0;
|
|
26
26
|
const runtime = require("../runtime.js");
|
|
27
|
-
const
|
|
27
|
+
const AgentModeRequest_js_1 = require("../models/AgentModeRequest.js");
|
|
28
|
+
const AgentStatus_js_1 = require("../models/AgentStatus.js");
|
|
29
|
+
const BenchmarkRun_js_1 = require("../models/BenchmarkRun.js");
|
|
30
|
+
const CollectorStartRequest_js_1 = require("../models/CollectorStartRequest.js");
|
|
31
|
+
const CollectorStatus_js_1 = require("../models/CollectorStatus.js");
|
|
32
|
+
const CreateGroupRequest_js_1 = require("../models/CreateGroupRequest.js");
|
|
33
|
+
const DatastoreDetail_js_1 = require("../models/DatastoreDetail.js");
|
|
34
|
+
const ForecastStats_js_1 = require("../models/ForecastStats.js");
|
|
35
|
+
const ForecasterDatastoresRequest_js_1 = require("../models/ForecasterDatastoresRequest.js");
|
|
36
|
+
const ForecasterStartRequest_js_1 = require("../models/ForecasterStartRequest.js");
|
|
37
|
+
const ForecasterStatus_js_1 = require("../models/ForecasterStatus.js");
|
|
38
|
+
const GetInventory200Response_js_1 = require("../models/GetInventory200Response.js");
|
|
39
|
+
const Group_js_1 = require("../models/Group.js");
|
|
40
|
+
const GroupListResponse_js_1 = require("../models/GroupListResponse.js");
|
|
41
|
+
const GroupResponse_js_1 = require("../models/GroupResponse.js");
|
|
42
|
+
const InspectorStatus_js_1 = require("../models/InspectorStatus.js");
|
|
43
|
+
const PairCapability_js_1 = require("../models/PairCapability.js");
|
|
44
|
+
const PairCapabilityRequest_js_1 = require("../models/PairCapabilityRequest.js");
|
|
45
|
+
const RightsizingCollectRequest_js_1 = require("../models/RightsizingCollectRequest.js");
|
|
46
|
+
const RightsizingReport_js_1 = require("../models/RightsizingReport.js");
|
|
47
|
+
const RightsizingReportListResponse_js_1 = require("../models/RightsizingReportListResponse.js");
|
|
48
|
+
const RightsizingReportSummary_js_1 = require("../models/RightsizingReportSummary.js");
|
|
49
|
+
const StartInspectionRequest_js_1 = require("../models/StartInspectionRequest.js");
|
|
50
|
+
const StopForecasterPair202Response_js_1 = require("../models/StopForecasterPair202Response.js");
|
|
51
|
+
const UpdateGroupRequest_js_1 = require("../models/UpdateGroupRequest.js");
|
|
52
|
+
const VcenterCredentials_js_1 = require("../models/VcenterCredentials.js");
|
|
53
|
+
const VddkProperties_js_1 = require("../models/VddkProperties.js");
|
|
54
|
+
const VersionInfo_js_1 = require("../models/VersionInfo.js");
|
|
55
|
+
const VirtualMachineDetail_js_1 = require("../models/VirtualMachineDetail.js");
|
|
56
|
+
const VirtualMachineListResponse_js_1 = require("../models/VirtualMachineListResponse.js");
|
|
57
|
+
const VmInspectionStatus_js_1 = require("../models/VmInspectionStatus.js");
|
|
58
|
+
const VmUtilizationDetails_js_1 = require("../models/VmUtilizationDetails.js");
|
|
28
59
|
/**
|
|
29
60
|
*
|
|
30
61
|
*/
|
|
31
62
|
class DefaultApi extends runtime.BaseAPI {
|
|
32
63
|
/**
|
|
33
|
-
* Creates request options for
|
|
64
|
+
* Creates request options for createGroup without sending the request
|
|
34
65
|
*/
|
|
35
|
-
|
|
66
|
+
createGroupRequestOpts(requestParameters) {
|
|
36
67
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
if (requestParameters['
|
|
38
|
-
throw new runtime.RequiredError('
|
|
68
|
+
if (requestParameters['createGroupRequest'] == null) {
|
|
69
|
+
throw new runtime.RequiredError('createGroupRequest', 'Required parameter "createGroupRequest" was null or undefined when calling createGroup().');
|
|
39
70
|
}
|
|
40
71
|
const queryParameters = {};
|
|
41
72
|
const headerParameters = {};
|
|
42
73
|
headerParameters['Content-Type'] = 'application/json';
|
|
43
|
-
let urlPath = `/
|
|
74
|
+
let urlPath = `/groups`;
|
|
44
75
|
return {
|
|
45
76
|
path: urlPath,
|
|
46
|
-
method: '
|
|
77
|
+
method: 'POST',
|
|
47
78
|
headers: headerParameters,
|
|
48
79
|
query: queryParameters,
|
|
49
|
-
body: requestParameters['
|
|
80
|
+
body: (0, CreateGroupRequest_js_1.CreateGroupRequestToJSON)(requestParameters['createGroupRequest']),
|
|
50
81
|
};
|
|
51
82
|
});
|
|
52
83
|
}
|
|
53
84
|
/**
|
|
54
|
-
*
|
|
85
|
+
* Create a new group
|
|
55
86
|
*/
|
|
56
|
-
|
|
87
|
+
createGroupRaw(requestParameters, initOverrides) {
|
|
57
88
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
const requestOptions = yield this.
|
|
89
|
+
const requestOptions = yield this.createGroupRequestOpts(requestParameters);
|
|
59
90
|
const response = yield this.request(requestOptions, initOverrides);
|
|
60
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
91
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, Group_js_1.GroupFromJSON)(jsonValue));
|
|
61
92
|
});
|
|
62
93
|
}
|
|
63
94
|
/**
|
|
64
|
-
*
|
|
95
|
+
* Create a new group
|
|
65
96
|
*/
|
|
66
|
-
|
|
97
|
+
createGroup(requestParameters, initOverrides) {
|
|
67
98
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
-
const response = yield this.
|
|
99
|
+
const response = yield this.createGroupRaw(requestParameters, initOverrides);
|
|
69
100
|
return yield response.value();
|
|
70
101
|
});
|
|
71
102
|
}
|
|
72
103
|
/**
|
|
73
|
-
* Creates request options for
|
|
104
|
+
* Creates request options for deleteForecasterRun without sending the request
|
|
74
105
|
*/
|
|
75
|
-
|
|
106
|
+
deleteForecasterRunRequestOpts(requestParameters) {
|
|
76
107
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
if (requestParameters['
|
|
78
|
-
throw new runtime.RequiredError('
|
|
108
|
+
if (requestParameters['id'] == null) {
|
|
109
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteForecasterRun().');
|
|
79
110
|
}
|
|
80
111
|
const queryParameters = {};
|
|
81
112
|
const headerParameters = {};
|
|
82
|
-
|
|
83
|
-
|
|
113
|
+
let urlPath = `/forecaster/runs/{id}`;
|
|
114
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
84
115
|
return {
|
|
85
116
|
path: urlPath,
|
|
86
|
-
method: '
|
|
117
|
+
method: 'DELETE',
|
|
87
118
|
headers: headerParameters,
|
|
88
119
|
query: queryParameters,
|
|
89
|
-
body: (0, index_js_1.CreateGroupRequestToJSON)(requestParameters['createGroupRequest']),
|
|
90
120
|
};
|
|
91
121
|
});
|
|
92
122
|
}
|
|
93
123
|
/**
|
|
94
|
-
*
|
|
124
|
+
* Delete a benchmark run
|
|
95
125
|
*/
|
|
96
|
-
|
|
126
|
+
deleteForecasterRunRaw(requestParameters, initOverrides) {
|
|
97
127
|
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
-
const requestOptions = yield this.
|
|
128
|
+
const requestOptions = yield this.deleteForecasterRunRequestOpts(requestParameters);
|
|
99
129
|
const response = yield this.request(requestOptions, initOverrides);
|
|
100
|
-
return new runtime.
|
|
130
|
+
return new runtime.VoidApiResponse(response);
|
|
101
131
|
});
|
|
102
132
|
}
|
|
103
133
|
/**
|
|
104
|
-
*
|
|
134
|
+
* Delete a benchmark run
|
|
105
135
|
*/
|
|
106
|
-
|
|
136
|
+
deleteForecasterRun(requestParameters, initOverrides) {
|
|
107
137
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
-
|
|
109
|
-
return yield response.value();
|
|
138
|
+
yield this.deleteForecasterRunRaw(requestParameters, initOverrides);
|
|
110
139
|
});
|
|
111
140
|
}
|
|
112
141
|
/**
|
|
@@ -120,7 +149,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
120
149
|
const queryParameters = {};
|
|
121
150
|
const headerParameters = {};
|
|
122
151
|
let urlPath = `/groups/{id}`;
|
|
123
|
-
urlPath = urlPath.replace(
|
|
152
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
124
153
|
return {
|
|
125
154
|
path: urlPath,
|
|
126
155
|
method: 'DELETE',
|
|
@@ -170,7 +199,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
170
199
|
return __awaiter(this, void 0, void 0, function* () {
|
|
171
200
|
const requestOptions = yield this.getAgentStatusRequestOpts();
|
|
172
201
|
const response = yield this.request(requestOptions, initOverrides);
|
|
173
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
202
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AgentStatus_js_1.AgentStatusFromJSON)(jsonValue));
|
|
174
203
|
});
|
|
175
204
|
}
|
|
176
205
|
/**
|
|
@@ -205,7 +234,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
205
234
|
return __awaiter(this, void 0, void 0, function* () {
|
|
206
235
|
const requestOptions = yield this.getCollectorStatusRequestOpts();
|
|
207
236
|
const response = yield this.request(requestOptions, initOverrides);
|
|
208
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
237
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CollectorStatus_js_1.CollectorStatusFromJSON)(jsonValue));
|
|
209
238
|
});
|
|
210
239
|
}
|
|
211
240
|
/**
|
|
@@ -217,6 +246,165 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
217
246
|
return yield response.value();
|
|
218
247
|
});
|
|
219
248
|
}
|
|
249
|
+
/**
|
|
250
|
+
* Creates request options for getForecasterDatastores without sending the request
|
|
251
|
+
*/
|
|
252
|
+
getForecasterDatastoresRequestOpts(requestParameters) {
|
|
253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
254
|
+
const queryParameters = {};
|
|
255
|
+
const headerParameters = {};
|
|
256
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
257
|
+
let urlPath = `/forecaster/datastores`;
|
|
258
|
+
return {
|
|
259
|
+
path: urlPath,
|
|
260
|
+
method: 'POST',
|
|
261
|
+
headers: headerParameters,
|
|
262
|
+
query: queryParameters,
|
|
263
|
+
body: (0, ForecasterDatastoresRequest_js_1.ForecasterDatastoresRequestToJSON)(requestParameters['forecasterDatastoresRequest']),
|
|
264
|
+
};
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
|
|
269
|
+
* List available datastores
|
|
270
|
+
*/
|
|
271
|
+
getForecasterDatastoresRaw(requestParameters, initOverrides) {
|
|
272
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
273
|
+
const requestOptions = yield this.getForecasterDatastoresRequestOpts(requestParameters);
|
|
274
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
275
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DatastoreDetail_js_1.DatastoreDetailFromJSON));
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
|
|
280
|
+
* List available datastores
|
|
281
|
+
*/
|
|
282
|
+
getForecasterDatastores() {
|
|
283
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
284
|
+
const response = yield this.getForecasterDatastoresRaw(requestParameters, initOverrides);
|
|
285
|
+
return yield response.value();
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Creates request options for getForecasterRuns without sending the request
|
|
290
|
+
*/
|
|
291
|
+
getForecasterRunsRequestOpts(requestParameters) {
|
|
292
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
293
|
+
const queryParameters = {};
|
|
294
|
+
if (requestParameters['pairName'] != null) {
|
|
295
|
+
queryParameters['pairName'] = requestParameters['pairName'];
|
|
296
|
+
}
|
|
297
|
+
const headerParameters = {};
|
|
298
|
+
let urlPath = `/forecaster/runs`;
|
|
299
|
+
return {
|
|
300
|
+
path: urlPath,
|
|
301
|
+
method: 'GET',
|
|
302
|
+
headers: headerParameters,
|
|
303
|
+
query: queryParameters,
|
|
304
|
+
};
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Returns individual benchmark iterations. Optionally filtered by pair name.
|
|
309
|
+
* List benchmark runs
|
|
310
|
+
*/
|
|
311
|
+
getForecasterRunsRaw(requestParameters, initOverrides) {
|
|
312
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
313
|
+
const requestOptions = yield this.getForecasterRunsRequestOpts(requestParameters);
|
|
314
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
315
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BenchmarkRun_js_1.BenchmarkRunFromJSON));
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Returns individual benchmark iterations. Optionally filtered by pair name.
|
|
320
|
+
* List benchmark runs
|
|
321
|
+
*/
|
|
322
|
+
getForecasterRuns() {
|
|
323
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
324
|
+
const response = yield this.getForecasterRunsRaw(requestParameters, initOverrides);
|
|
325
|
+
return yield response.value();
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Creates request options for getForecasterStats without sending the request
|
|
330
|
+
*/
|
|
331
|
+
getForecasterStatsRequestOpts(requestParameters) {
|
|
332
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
333
|
+
if (requestParameters['pairName'] == null) {
|
|
334
|
+
throw new runtime.RequiredError('pairName', 'Required parameter "pairName" was null or undefined when calling getForecasterStats().');
|
|
335
|
+
}
|
|
336
|
+
const queryParameters = {};
|
|
337
|
+
if (requestParameters['pairName'] != null) {
|
|
338
|
+
queryParameters['pairName'] = requestParameters['pairName'];
|
|
339
|
+
}
|
|
340
|
+
const headerParameters = {};
|
|
341
|
+
let urlPath = `/forecaster/stats`;
|
|
342
|
+
return {
|
|
343
|
+
path: urlPath,
|
|
344
|
+
method: 'GET',
|
|
345
|
+
headers: headerParameters,
|
|
346
|
+
query: queryParameters,
|
|
347
|
+
};
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
|
|
352
|
+
* Get throughput statistics
|
|
353
|
+
*/
|
|
354
|
+
getForecasterStatsRaw(requestParameters, initOverrides) {
|
|
355
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
356
|
+
const requestOptions = yield this.getForecasterStatsRequestOpts(requestParameters);
|
|
357
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
358
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecastStats_js_1.ForecastStatsFromJSON)(jsonValue));
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
|
|
363
|
+
* Get throughput statistics
|
|
364
|
+
*/
|
|
365
|
+
getForecasterStats(requestParameters, initOverrides) {
|
|
366
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
367
|
+
const response = yield this.getForecasterStatsRaw(requestParameters, initOverrides);
|
|
368
|
+
return yield response.value();
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Creates request options for getForecasterStatus without sending the request
|
|
373
|
+
*/
|
|
374
|
+
getForecasterStatusRequestOpts() {
|
|
375
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
376
|
+
const queryParameters = {};
|
|
377
|
+
const headerParameters = {};
|
|
378
|
+
let urlPath = `/forecaster`;
|
|
379
|
+
return {
|
|
380
|
+
path: urlPath,
|
|
381
|
+
method: 'GET',
|
|
382
|
+
headers: headerParameters,
|
|
383
|
+
query: queryParameters,
|
|
384
|
+
};
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Returns current service state with per-pair progress details.
|
|
389
|
+
* Poll forecaster status
|
|
390
|
+
*/
|
|
391
|
+
getForecasterStatusRaw(initOverrides) {
|
|
392
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
393
|
+
const requestOptions = yield this.getForecasterStatusRequestOpts();
|
|
394
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
395
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Returns current service state with per-pair progress details.
|
|
400
|
+
* Poll forecaster status
|
|
401
|
+
*/
|
|
402
|
+
getForecasterStatus(initOverrides) {
|
|
403
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
404
|
+
const response = yield this.getForecasterStatusRaw(initOverrides);
|
|
405
|
+
return yield response.value();
|
|
406
|
+
});
|
|
407
|
+
}
|
|
220
408
|
/**
|
|
221
409
|
* Creates request options for getGroup without sending the request
|
|
222
410
|
*/
|
|
@@ -237,7 +425,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
237
425
|
}
|
|
238
426
|
const headerParameters = {};
|
|
239
427
|
let urlPath = `/groups/{id}`;
|
|
240
|
-
urlPath = urlPath.replace(
|
|
428
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
241
429
|
return {
|
|
242
430
|
path: urlPath,
|
|
243
431
|
method: 'GET',
|
|
@@ -253,7 +441,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
253
441
|
return __awaiter(this, void 0, void 0, function* () {
|
|
254
442
|
const requestOptions = yield this.getGroupRequestOpts(requestParameters);
|
|
255
443
|
const response = yield this.request(requestOptions, initOverrides);
|
|
256
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
444
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GroupResponse_js_1.GroupResponseFromJSON)(jsonValue));
|
|
257
445
|
});
|
|
258
446
|
}
|
|
259
447
|
/**
|
|
@@ -268,11 +456,17 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
268
456
|
/**
|
|
269
457
|
* Creates request options for getInspectorStatus without sending the request
|
|
270
458
|
*/
|
|
271
|
-
getInspectorStatusRequestOpts() {
|
|
459
|
+
getInspectorStatusRequestOpts(requestParameters) {
|
|
272
460
|
return __awaiter(this, void 0, void 0, function* () {
|
|
273
461
|
const queryParameters = {};
|
|
462
|
+
if (requestParameters['includeVddk'] != null) {
|
|
463
|
+
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
464
|
+
}
|
|
465
|
+
if (requestParameters['includeCredentials'] != null) {
|
|
466
|
+
queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
|
|
467
|
+
}
|
|
274
468
|
const headerParameters = {};
|
|
275
|
-
let urlPath = `/
|
|
469
|
+
let urlPath = `/inspector`;
|
|
276
470
|
return {
|
|
277
471
|
path: urlPath,
|
|
278
472
|
method: 'GET',
|
|
@@ -284,19 +478,54 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
284
478
|
/**
|
|
285
479
|
* Get inspector status
|
|
286
480
|
*/
|
|
287
|
-
getInspectorStatusRaw(initOverrides) {
|
|
481
|
+
getInspectorStatusRaw(requestParameters, initOverrides) {
|
|
288
482
|
return __awaiter(this, void 0, void 0, function* () {
|
|
289
|
-
const requestOptions = yield this.getInspectorStatusRequestOpts();
|
|
483
|
+
const requestOptions = yield this.getInspectorStatusRequestOpts(requestParameters);
|
|
290
484
|
const response = yield this.request(requestOptions, initOverrides);
|
|
291
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
485
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, InspectorStatus_js_1.InspectorStatusFromJSON)(jsonValue));
|
|
292
486
|
});
|
|
293
487
|
}
|
|
294
488
|
/**
|
|
295
489
|
* Get inspector status
|
|
296
490
|
*/
|
|
297
|
-
getInspectorStatus(
|
|
491
|
+
getInspectorStatus() {
|
|
492
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
493
|
+
const response = yield this.getInspectorStatusRaw(requestParameters, initOverrides);
|
|
494
|
+
return yield response.value();
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* Creates request options for getInspectorVddkStatus without sending the request
|
|
499
|
+
*/
|
|
500
|
+
getInspectorVddkStatusRequestOpts() {
|
|
298
501
|
return __awaiter(this, void 0, void 0, function* () {
|
|
299
|
-
const
|
|
502
|
+
const queryParameters = {};
|
|
503
|
+
const headerParameters = {};
|
|
504
|
+
let urlPath = `/inspector/vddk`;
|
|
505
|
+
return {
|
|
506
|
+
path: urlPath,
|
|
507
|
+
method: 'GET',
|
|
508
|
+
headers: headerParameters,
|
|
509
|
+
query: queryParameters,
|
|
510
|
+
};
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Get VDDK status
|
|
515
|
+
*/
|
|
516
|
+
getInspectorVddkStatusRaw(initOverrides) {
|
|
517
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
518
|
+
const requestOptions = yield this.getInspectorVddkStatusRequestOpts();
|
|
519
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
520
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VddkProperties_js_1.VddkPropertiesFromJSON)(jsonValue));
|
|
521
|
+
});
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* Get VDDK status
|
|
525
|
+
*/
|
|
526
|
+
getInspectorVddkStatus(initOverrides) {
|
|
527
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
528
|
+
const response = yield this.getInspectorVddkStatusRaw(initOverrides);
|
|
300
529
|
return yield response.value();
|
|
301
530
|
});
|
|
302
531
|
}
|
|
@@ -329,7 +558,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
329
558
|
return __awaiter(this, void 0, void 0, function* () {
|
|
330
559
|
const requestOptions = yield this.getInventoryRequestOpts(requestParameters);
|
|
331
560
|
const response = yield this.request(requestOptions, initOverrides);
|
|
332
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
561
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetInventory200Response_js_1.GetInventory200ResponseFromJSON)(jsonValue));
|
|
333
562
|
});
|
|
334
563
|
}
|
|
335
564
|
/**
|
|
@@ -341,6 +570,45 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
341
570
|
return yield response.value();
|
|
342
571
|
});
|
|
343
572
|
}
|
|
573
|
+
/**
|
|
574
|
+
* Creates request options for getRightsizingReport without sending the request
|
|
575
|
+
*/
|
|
576
|
+
getRightsizingReportRequestOpts(requestParameters) {
|
|
577
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
578
|
+
if (requestParameters['id'] == null) {
|
|
579
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRightsizingReport().');
|
|
580
|
+
}
|
|
581
|
+
const queryParameters = {};
|
|
582
|
+
const headerParameters = {};
|
|
583
|
+
let urlPath = `/rightsizing/{id}`;
|
|
584
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
585
|
+
return {
|
|
586
|
+
path: urlPath,
|
|
587
|
+
method: 'GET',
|
|
588
|
+
headers: headerParameters,
|
|
589
|
+
query: queryParameters,
|
|
590
|
+
};
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* Get a specific rightsizing report with full VM metrics
|
|
595
|
+
*/
|
|
596
|
+
getRightsizingReportRaw(requestParameters, initOverrides) {
|
|
597
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
598
|
+
const requestOptions = yield this.getRightsizingReportRequestOpts(requestParameters);
|
|
599
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
600
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingReport_js_1.RightsizingReportFromJSON)(jsonValue));
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* Get a specific rightsizing report with full VM metrics
|
|
605
|
+
*/
|
|
606
|
+
getRightsizingReport(requestParameters, initOverrides) {
|
|
607
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
608
|
+
const response = yield this.getRightsizingReportRaw(requestParameters, initOverrides);
|
|
609
|
+
return yield response.value();
|
|
610
|
+
});
|
|
611
|
+
}
|
|
344
612
|
/**
|
|
345
613
|
* Creates request options for getVM without sending the request
|
|
346
614
|
*/
|
|
@@ -352,7 +620,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
352
620
|
const queryParameters = {};
|
|
353
621
|
const headerParameters = {};
|
|
354
622
|
let urlPath = `/vms/{id}`;
|
|
355
|
-
urlPath = urlPath.replace(
|
|
623
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
356
624
|
return {
|
|
357
625
|
path: urlPath,
|
|
358
626
|
method: 'GET',
|
|
@@ -368,7 +636,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
368
636
|
return __awaiter(this, void 0, void 0, function* () {
|
|
369
637
|
const requestOptions = yield this.getVMRequestOpts(requestParameters);
|
|
370
638
|
const response = yield this.request(requestOptions, initOverrides);
|
|
371
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
639
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VirtualMachineDetail_js_1.VirtualMachineDetailFromJSON)(jsonValue));
|
|
372
640
|
});
|
|
373
641
|
}
|
|
374
642
|
/**
|
|
@@ -381,17 +649,17 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
381
649
|
});
|
|
382
650
|
}
|
|
383
651
|
/**
|
|
384
|
-
* Creates request options for
|
|
652
|
+
* Creates request options for getVMUtilization without sending the request
|
|
385
653
|
*/
|
|
386
|
-
|
|
654
|
+
getVMUtilizationRequestOpts(requestParameters) {
|
|
387
655
|
return __awaiter(this, void 0, void 0, function* () {
|
|
388
656
|
if (requestParameters['id'] == null) {
|
|
389
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling
|
|
657
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVMUtilization().');
|
|
390
658
|
}
|
|
391
659
|
const queryParameters = {};
|
|
392
660
|
const headerParameters = {};
|
|
393
|
-
let urlPath = `/vms/{id}/
|
|
394
|
-
urlPath = urlPath.replace(
|
|
661
|
+
let urlPath = `/vms/{id}/utilization`;
|
|
662
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
395
663
|
return {
|
|
396
664
|
path: urlPath,
|
|
397
665
|
method: 'GET',
|
|
@@ -401,21 +669,21 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
401
669
|
});
|
|
402
670
|
}
|
|
403
671
|
/**
|
|
404
|
-
* Get
|
|
672
|
+
* Get utilization breakdown for a specific VM
|
|
405
673
|
*/
|
|
406
|
-
|
|
674
|
+
getVMUtilizationRaw(requestParameters, initOverrides) {
|
|
407
675
|
return __awaiter(this, void 0, void 0, function* () {
|
|
408
|
-
const requestOptions = yield this.
|
|
676
|
+
const requestOptions = yield this.getVMUtilizationRequestOpts(requestParameters);
|
|
409
677
|
const response = yield this.request(requestOptions, initOverrides);
|
|
410
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
678
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VmUtilizationDetails_js_1.VmUtilizationDetailsFromJSON)(jsonValue));
|
|
411
679
|
});
|
|
412
680
|
}
|
|
413
681
|
/**
|
|
414
|
-
* Get
|
|
682
|
+
* Get utilization breakdown for a specific VM
|
|
415
683
|
*/
|
|
416
|
-
|
|
684
|
+
getVMUtilization(requestParameters, initOverrides) {
|
|
417
685
|
return __awaiter(this, void 0, void 0, function* () {
|
|
418
|
-
const response = yield this.
|
|
686
|
+
const response = yield this.getVMUtilizationRaw(requestParameters, initOverrides);
|
|
419
687
|
return yield response.value();
|
|
420
688
|
});
|
|
421
689
|
}
|
|
@@ -454,7 +722,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
454
722
|
return __awaiter(this, void 0, void 0, function* () {
|
|
455
723
|
const requestOptions = yield this.getVMsRequestOpts(requestParameters);
|
|
456
724
|
const response = yield this.request(requestOptions, initOverrides);
|
|
457
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
725
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VirtualMachineListResponse_js_1.VirtualMachineListResponseFromJSON)(jsonValue));
|
|
458
726
|
});
|
|
459
727
|
}
|
|
460
728
|
/**
|
|
@@ -466,41 +734,6 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
466
734
|
return yield response.value();
|
|
467
735
|
});
|
|
468
736
|
}
|
|
469
|
-
/**
|
|
470
|
-
* Creates request options for getVddkStatus without sending the request
|
|
471
|
-
*/
|
|
472
|
-
getVddkStatusRequestOpts() {
|
|
473
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
474
|
-
const queryParameters = {};
|
|
475
|
-
const headerParameters = {};
|
|
476
|
-
let urlPath = `/vddk`;
|
|
477
|
-
return {
|
|
478
|
-
path: urlPath,
|
|
479
|
-
method: 'GET',
|
|
480
|
-
headers: headerParameters,
|
|
481
|
-
query: queryParameters,
|
|
482
|
-
};
|
|
483
|
-
});
|
|
484
|
-
}
|
|
485
|
-
/**
|
|
486
|
-
* Get VDDK status
|
|
487
|
-
*/
|
|
488
|
-
getVddkStatusRaw(initOverrides) {
|
|
489
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
490
|
-
const requestOptions = yield this.getVddkStatusRequestOpts();
|
|
491
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
492
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.VddkPropertiesFromJSON)(jsonValue));
|
|
493
|
-
});
|
|
494
|
-
}
|
|
495
|
-
/**
|
|
496
|
-
* Get VDDK status
|
|
497
|
-
*/
|
|
498
|
-
getVddkStatus(initOverrides) {
|
|
499
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
500
|
-
const response = yield this.getVddkStatusRaw(initOverrides);
|
|
501
|
-
return yield response.value();
|
|
502
|
-
});
|
|
503
|
-
}
|
|
504
737
|
/**
|
|
505
738
|
* Creates request options for getVersion without sending the request
|
|
506
739
|
*/
|
|
@@ -524,7 +757,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
524
757
|
return __awaiter(this, void 0, void 0, function* () {
|
|
525
758
|
const requestOptions = yield this.getVersionRequestOpts();
|
|
526
759
|
const response = yield this.request(requestOptions, initOverrides);
|
|
527
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
760
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VersionInfo_js_1.VersionInfoFromJSON)(jsonValue));
|
|
528
761
|
});
|
|
529
762
|
}
|
|
530
763
|
/**
|
|
@@ -568,7 +801,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
568
801
|
return __awaiter(this, void 0, void 0, function* () {
|
|
569
802
|
const requestOptions = yield this.listGroupsRequestOpts(requestParameters);
|
|
570
803
|
const response = yield this.request(requestOptions, initOverrides);
|
|
571
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
804
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GroupListResponse_js_1.GroupListResponseFromJSON)(jsonValue));
|
|
572
805
|
});
|
|
573
806
|
}
|
|
574
807
|
/**
|
|
@@ -580,6 +813,220 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
580
813
|
return yield response.value();
|
|
581
814
|
});
|
|
582
815
|
}
|
|
816
|
+
/**
|
|
817
|
+
* Creates request options for listRightsizingReports without sending the request
|
|
818
|
+
*/
|
|
819
|
+
listRightsizingReportsRequestOpts() {
|
|
820
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
821
|
+
const queryParameters = {};
|
|
822
|
+
const headerParameters = {};
|
|
823
|
+
let urlPath = `/rightsizing`;
|
|
824
|
+
return {
|
|
825
|
+
path: urlPath,
|
|
826
|
+
method: 'GET',
|
|
827
|
+
headers: headerParameters,
|
|
828
|
+
query: queryParameters,
|
|
829
|
+
};
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
/**
|
|
833
|
+
* List all rightsizing reports
|
|
834
|
+
*/
|
|
835
|
+
listRightsizingReportsRaw(initOverrides) {
|
|
836
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
837
|
+
const requestOptions = yield this.listRightsizingReportsRequestOpts();
|
|
838
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
839
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingReportListResponse_js_1.RightsizingReportListResponseFromJSON)(jsonValue));
|
|
840
|
+
});
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* List all rightsizing reports
|
|
844
|
+
*/
|
|
845
|
+
listRightsizingReports(initOverrides) {
|
|
846
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
847
|
+
const response = yield this.listRightsizingReportsRaw(initOverrides);
|
|
848
|
+
return yield response.value();
|
|
849
|
+
});
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* Creates request options for postForecasterPairCapabilities without sending the request
|
|
853
|
+
*/
|
|
854
|
+
postForecasterPairCapabilitiesRequestOpts(requestParameters) {
|
|
855
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
856
|
+
if (requestParameters['pairCapabilityRequest'] == null) {
|
|
857
|
+
throw new runtime.RequiredError('pairCapabilityRequest', 'Required parameter "pairCapabilityRequest" was null or undefined when calling postForecasterPairCapabilities().');
|
|
858
|
+
}
|
|
859
|
+
const queryParameters = {};
|
|
860
|
+
const headerParameters = {};
|
|
861
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
862
|
+
let urlPath = `/forecaster/capabilities`;
|
|
863
|
+
return {
|
|
864
|
+
path: urlPath,
|
|
865
|
+
method: 'POST',
|
|
866
|
+
headers: headerParameters,
|
|
867
|
+
query: queryParameters,
|
|
868
|
+
body: (0, PairCapabilityRequest_js_1.PairCapabilityRequestToJSON)(requestParameters['pairCapabilityRequest']),
|
|
869
|
+
};
|
|
870
|
+
});
|
|
871
|
+
}
|
|
872
|
+
/**
|
|
873
|
+
* Computes which offload methods are feasible for specific source-target datastore pairs based on vendor support and storage array topology derived from the forklift-collected inventory. No vSphere credentials are required.
|
|
874
|
+
* Compute pair capabilities
|
|
875
|
+
*/
|
|
876
|
+
postForecasterPairCapabilitiesRaw(requestParameters, initOverrides) {
|
|
877
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
878
|
+
const requestOptions = yield this.postForecasterPairCapabilitiesRequestOpts(requestParameters);
|
|
879
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
880
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PairCapability_js_1.PairCapabilityFromJSON));
|
|
881
|
+
});
|
|
882
|
+
}
|
|
883
|
+
/**
|
|
884
|
+
* Computes which offload methods are feasible for specific source-target datastore pairs based on vendor support and storage array topology derived from the forklift-collected inventory. No vSphere credentials are required.
|
|
885
|
+
* Compute pair capabilities
|
|
886
|
+
*/
|
|
887
|
+
postForecasterPairCapabilities(requestParameters, initOverrides) {
|
|
888
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
889
|
+
const response = yield this.postForecasterPairCapabilitiesRaw(requestParameters, initOverrides);
|
|
890
|
+
return yield response.value();
|
|
891
|
+
});
|
|
892
|
+
}
|
|
893
|
+
/**
|
|
894
|
+
* Creates request options for putForecasterCredentials without sending the request
|
|
895
|
+
*/
|
|
896
|
+
putForecasterCredentialsRequestOpts(requestParameters) {
|
|
897
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
898
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
899
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putForecasterCredentials().');
|
|
900
|
+
}
|
|
901
|
+
const queryParameters = {};
|
|
902
|
+
const headerParameters = {};
|
|
903
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
904
|
+
let urlPath = `/forecaster/credentials`;
|
|
905
|
+
return {
|
|
906
|
+
path: urlPath,
|
|
907
|
+
method: 'PUT',
|
|
908
|
+
headers: headerParameters,
|
|
909
|
+
query: queryParameters,
|
|
910
|
+
body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
|
|
911
|
+
};
|
|
912
|
+
});
|
|
913
|
+
}
|
|
914
|
+
/**
|
|
915
|
+
* Validates vCenter connectivity and verifies the user has the required vSphere privileges for forecaster operations (datastore file management, VM provisioning, disk cloning). Verification only — credentials are not saved.
|
|
916
|
+
* Verify vCenter credentials and permissions
|
|
917
|
+
*/
|
|
918
|
+
putForecasterCredentialsRaw(requestParameters, initOverrides) {
|
|
919
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
920
|
+
const requestOptions = yield this.putForecasterCredentialsRequestOpts(requestParameters);
|
|
921
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
922
|
+
return new runtime.VoidApiResponse(response);
|
|
923
|
+
});
|
|
924
|
+
}
|
|
925
|
+
/**
|
|
926
|
+
* Validates vCenter connectivity and verifies the user has the required vSphere privileges for forecaster operations (datastore file management, VM provisioning, disk cloning). Verification only — credentials are not saved.
|
|
927
|
+
* Verify vCenter credentials and permissions
|
|
928
|
+
*/
|
|
929
|
+
putForecasterCredentials(requestParameters, initOverrides) {
|
|
930
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
931
|
+
yield this.putForecasterCredentialsRaw(requestParameters, initOverrides);
|
|
932
|
+
});
|
|
933
|
+
}
|
|
934
|
+
/**
|
|
935
|
+
* Creates request options for putInspectorCredentials without sending the request
|
|
936
|
+
*/
|
|
937
|
+
putInspectorCredentialsRequestOpts(requestParameters) {
|
|
938
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
939
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
940
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putInspectorCredentials().');
|
|
941
|
+
}
|
|
942
|
+
const queryParameters = {};
|
|
943
|
+
const headerParameters = {};
|
|
944
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
945
|
+
let urlPath = `/inspector/credentials`;
|
|
946
|
+
return {
|
|
947
|
+
path: urlPath,
|
|
948
|
+
method: 'PUT',
|
|
949
|
+
headers: headerParameters,
|
|
950
|
+
query: queryParameters,
|
|
951
|
+
body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
|
|
952
|
+
};
|
|
953
|
+
});
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* Set or replace inspector credentials
|
|
957
|
+
*/
|
|
958
|
+
putInspectorCredentialsRaw(requestParameters, initOverrides) {
|
|
959
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
960
|
+
const requestOptions = yield this.putInspectorCredentialsRequestOpts(requestParameters);
|
|
961
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
962
|
+
return new runtime.VoidApiResponse(response);
|
|
963
|
+
});
|
|
964
|
+
}
|
|
965
|
+
/**
|
|
966
|
+
* Set or replace inspector credentials
|
|
967
|
+
*/
|
|
968
|
+
putInspectorCredentials(requestParameters, initOverrides) {
|
|
969
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
970
|
+
yield this.putInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
971
|
+
});
|
|
972
|
+
}
|
|
973
|
+
/**
|
|
974
|
+
* Creates request options for putInspectorVddk without sending the request
|
|
975
|
+
*/
|
|
976
|
+
putInspectorVddkRequestOpts(requestParameters) {
|
|
977
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
978
|
+
if (requestParameters['file'] == null) {
|
|
979
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling putInspectorVddk().');
|
|
980
|
+
}
|
|
981
|
+
const queryParameters = {};
|
|
982
|
+
const headerParameters = {};
|
|
983
|
+
const consumes = [
|
|
984
|
+
{ contentType: 'multipart/form-data' },
|
|
985
|
+
];
|
|
986
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
987
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
988
|
+
let formParams;
|
|
989
|
+
let useForm = false;
|
|
990
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
991
|
+
useForm = canConsumeForm;
|
|
992
|
+
if (useForm) {
|
|
993
|
+
formParams = new FormData();
|
|
994
|
+
}
|
|
995
|
+
else {
|
|
996
|
+
formParams = new URLSearchParams();
|
|
997
|
+
}
|
|
998
|
+
if (requestParameters['file'] != null) {
|
|
999
|
+
formParams.append('file', requestParameters['file']);
|
|
1000
|
+
}
|
|
1001
|
+
let urlPath = `/inspector/vddk`;
|
|
1002
|
+
return {
|
|
1003
|
+
path: urlPath,
|
|
1004
|
+
method: 'PUT',
|
|
1005
|
+
headers: headerParameters,
|
|
1006
|
+
query: queryParameters,
|
|
1007
|
+
body: formParams,
|
|
1008
|
+
};
|
|
1009
|
+
});
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
* Upload VDDK tarball
|
|
1013
|
+
*/
|
|
1014
|
+
putInspectorVddkRaw(requestParameters, initOverrides) {
|
|
1015
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1016
|
+
const requestOptions = yield this.putInspectorVddkRequestOpts(requestParameters);
|
|
1017
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1018
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VddkProperties_js_1.VddkPropertiesFromJSON)(jsonValue));
|
|
1019
|
+
});
|
|
1020
|
+
}
|
|
1021
|
+
/**
|
|
1022
|
+
* Upload VDDK tarball
|
|
1023
|
+
*/
|
|
1024
|
+
putInspectorVddk(requestParameters, initOverrides) {
|
|
1025
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1026
|
+
const response = yield this.putInspectorVddkRaw(requestParameters, initOverrides);
|
|
1027
|
+
return yield response.value();
|
|
1028
|
+
});
|
|
1029
|
+
}
|
|
583
1030
|
/**
|
|
584
1031
|
* Creates request options for removeVMFromInspection without sending the request
|
|
585
1032
|
*/
|
|
@@ -590,8 +1037,8 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
590
1037
|
}
|
|
591
1038
|
const queryParameters = {};
|
|
592
1039
|
const headerParameters = {};
|
|
593
|
-
let urlPath = `/vms/{id}/
|
|
594
|
-
urlPath = urlPath.replace(
|
|
1040
|
+
let urlPath = `/vms/{id}/inspection`;
|
|
1041
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
595
1042
|
return {
|
|
596
1043
|
path: urlPath,
|
|
597
1044
|
method: 'DELETE',
|
|
@@ -607,7 +1054,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
607
1054
|
return __awaiter(this, void 0, void 0, function* () {
|
|
608
1055
|
const requestOptions = yield this.removeVMFromInspectionRequestOpts(requestParameters);
|
|
609
1056
|
const response = yield this.request(requestOptions, initOverrides);
|
|
610
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1057
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VmInspectionStatus_js_1.VmInspectionStatusFromJSON)(jsonValue));
|
|
611
1058
|
});
|
|
612
1059
|
}
|
|
613
1060
|
/**
|
|
@@ -636,7 +1083,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
636
1083
|
method: 'POST',
|
|
637
1084
|
headers: headerParameters,
|
|
638
1085
|
query: queryParameters,
|
|
639
|
-
body: (0,
|
|
1086
|
+
body: (0, AgentModeRequest_js_1.AgentModeRequestToJSON)(requestParameters['agentModeRequest']),
|
|
640
1087
|
};
|
|
641
1088
|
});
|
|
642
1089
|
}
|
|
@@ -647,7 +1094,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
647
1094
|
return __awaiter(this, void 0, void 0, function* () {
|
|
648
1095
|
const requestOptions = yield this.setAgentModeRequestOpts(requestParameters);
|
|
649
1096
|
const response = yield this.request(requestOptions, initOverrides);
|
|
650
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1097
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AgentStatus_js_1.AgentStatusFromJSON)(jsonValue));
|
|
651
1098
|
});
|
|
652
1099
|
}
|
|
653
1100
|
/**
|
|
@@ -676,7 +1123,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
676
1123
|
method: 'POST',
|
|
677
1124
|
headers: headerParameters,
|
|
678
1125
|
query: queryParameters,
|
|
679
|
-
body: (0,
|
|
1126
|
+
body: (0, CollectorStartRequest_js_1.CollectorStartRequestToJSON)(requestParameters['collectorStartRequest']),
|
|
680
1127
|
};
|
|
681
1128
|
});
|
|
682
1129
|
}
|
|
@@ -687,7 +1134,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
687
1134
|
return __awaiter(this, void 0, void 0, function* () {
|
|
688
1135
|
const requestOptions = yield this.startCollectorRequestOpts(requestParameters);
|
|
689
1136
|
const response = yield this.request(requestOptions, initOverrides);
|
|
690
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1137
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CollectorStatus_js_1.CollectorStatusFromJSON)(jsonValue));
|
|
691
1138
|
});
|
|
692
1139
|
}
|
|
693
1140
|
/**
|
|
@@ -699,24 +1146,66 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
699
1146
|
return yield response.value();
|
|
700
1147
|
});
|
|
701
1148
|
}
|
|
1149
|
+
/**
|
|
1150
|
+
* Creates request options for startForecaster without sending the request
|
|
1151
|
+
*/
|
|
1152
|
+
startForecasterRequestOpts(requestParameters) {
|
|
1153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1154
|
+
if (requestParameters['forecasterStartRequest'] == null) {
|
|
1155
|
+
throw new runtime.RequiredError('forecasterStartRequest', 'Required parameter "forecasterStartRequest" was null or undefined when calling startForecaster().');
|
|
1156
|
+
}
|
|
1157
|
+
const queryParameters = {};
|
|
1158
|
+
const headerParameters = {};
|
|
1159
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1160
|
+
let urlPath = `/forecaster`;
|
|
1161
|
+
return {
|
|
1162
|
+
path: urlPath,
|
|
1163
|
+
method: 'POST',
|
|
1164
|
+
headers: headerParameters,
|
|
1165
|
+
query: queryParameters,
|
|
1166
|
+
body: (0, ForecasterStartRequest_js_1.ForecasterStartRequestToJSON)(requestParameters['forecasterStartRequest']),
|
|
1167
|
+
};
|
|
1168
|
+
});
|
|
1169
|
+
}
|
|
1170
|
+
/**
|
|
1171
|
+
* Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
|
|
1172
|
+
* Start benchmark
|
|
1173
|
+
*/
|
|
1174
|
+
startForecasterRaw(requestParameters, initOverrides) {
|
|
1175
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1176
|
+
const requestOptions = yield this.startForecasterRequestOpts(requestParameters);
|
|
1177
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1178
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
|
|
1179
|
+
});
|
|
1180
|
+
}
|
|
1181
|
+
/**
|
|
1182
|
+
* Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
|
|
1183
|
+
* Start benchmark
|
|
1184
|
+
*/
|
|
1185
|
+
startForecaster(requestParameters, initOverrides) {
|
|
1186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1187
|
+
const response = yield this.startForecasterRaw(requestParameters, initOverrides);
|
|
1188
|
+
return yield response.value();
|
|
1189
|
+
});
|
|
1190
|
+
}
|
|
702
1191
|
/**
|
|
703
1192
|
* Creates request options for startInspection without sending the request
|
|
704
1193
|
*/
|
|
705
1194
|
startInspectionRequestOpts(requestParameters) {
|
|
706
1195
|
return __awaiter(this, void 0, void 0, function* () {
|
|
707
|
-
if (requestParameters['
|
|
708
|
-
throw new runtime.RequiredError('
|
|
1196
|
+
if (requestParameters['startInspectionRequest'] == null) {
|
|
1197
|
+
throw new runtime.RequiredError('startInspectionRequest', 'Required parameter "startInspectionRequest" was null or undefined when calling startInspection().');
|
|
709
1198
|
}
|
|
710
1199
|
const queryParameters = {};
|
|
711
1200
|
const headerParameters = {};
|
|
712
1201
|
headerParameters['Content-Type'] = 'application/json';
|
|
713
|
-
let urlPath = `/
|
|
1202
|
+
let urlPath = `/inspector`;
|
|
714
1203
|
return {
|
|
715
1204
|
path: urlPath,
|
|
716
1205
|
method: 'POST',
|
|
717
1206
|
headers: headerParameters,
|
|
718
1207
|
query: queryParameters,
|
|
719
|
-
body: (0,
|
|
1208
|
+
body: (0, StartInspectionRequest_js_1.StartInspectionRequestToJSON)(requestParameters['startInspectionRequest']),
|
|
720
1209
|
};
|
|
721
1210
|
});
|
|
722
1211
|
}
|
|
@@ -727,7 +1216,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
727
1216
|
return __awaiter(this, void 0, void 0, function* () {
|
|
728
1217
|
const requestOptions = yield this.startInspectionRequestOpts(requestParameters);
|
|
729
1218
|
const response = yield this.request(requestOptions, initOverrides);
|
|
730
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1219
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, InspectorStatus_js_1.InspectorStatusFromJSON)(jsonValue));
|
|
731
1220
|
});
|
|
732
1221
|
}
|
|
733
1222
|
/**
|
|
@@ -773,6 +1262,84 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
773
1262
|
yield this.stopCollectorRaw(initOverrides);
|
|
774
1263
|
});
|
|
775
1264
|
}
|
|
1265
|
+
/**
|
|
1266
|
+
* Creates request options for stopForecaster without sending the request
|
|
1267
|
+
*/
|
|
1268
|
+
stopForecasterRequestOpts() {
|
|
1269
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1270
|
+
const queryParameters = {};
|
|
1271
|
+
const headerParameters = {};
|
|
1272
|
+
let urlPath = `/forecaster`;
|
|
1273
|
+
return {
|
|
1274
|
+
path: urlPath,
|
|
1275
|
+
method: 'DELETE',
|
|
1276
|
+
headers: headerParameters,
|
|
1277
|
+
query: queryParameters,
|
|
1278
|
+
};
|
|
1279
|
+
});
|
|
1280
|
+
}
|
|
1281
|
+
/**
|
|
1282
|
+
* Stops the running benchmark. Already-completed runs are preserved in the database.
|
|
1283
|
+
* Cancel benchmark
|
|
1284
|
+
*/
|
|
1285
|
+
stopForecasterRaw(initOverrides) {
|
|
1286
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1287
|
+
const requestOptions = yield this.stopForecasterRequestOpts();
|
|
1288
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1289
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
|
|
1290
|
+
});
|
|
1291
|
+
}
|
|
1292
|
+
/**
|
|
1293
|
+
* Stops the running benchmark. Already-completed runs are preserved in the database.
|
|
1294
|
+
* Cancel benchmark
|
|
1295
|
+
*/
|
|
1296
|
+
stopForecaster(initOverrides) {
|
|
1297
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1298
|
+
const response = yield this.stopForecasterRaw(initOverrides);
|
|
1299
|
+
return yield response.value();
|
|
1300
|
+
});
|
|
1301
|
+
}
|
|
1302
|
+
/**
|
|
1303
|
+
* Creates request options for stopForecasterPair without sending the request
|
|
1304
|
+
*/
|
|
1305
|
+
stopForecasterPairRequestOpts(requestParameters) {
|
|
1306
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1307
|
+
if (requestParameters['name'] == null) {
|
|
1308
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling stopForecasterPair().');
|
|
1309
|
+
}
|
|
1310
|
+
const queryParameters = {};
|
|
1311
|
+
const headerParameters = {};
|
|
1312
|
+
let urlPath = `/forecaster/pairs/{name}`;
|
|
1313
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
1314
|
+
return {
|
|
1315
|
+
path: urlPath,
|
|
1316
|
+
method: 'DELETE',
|
|
1317
|
+
headers: headerParameters,
|
|
1318
|
+
query: queryParameters,
|
|
1319
|
+
};
|
|
1320
|
+
});
|
|
1321
|
+
}
|
|
1322
|
+
/**
|
|
1323
|
+
* Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
|
|
1324
|
+
* Cancel a single pair
|
|
1325
|
+
*/
|
|
1326
|
+
stopForecasterPairRaw(requestParameters, initOverrides) {
|
|
1327
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1328
|
+
const requestOptions = yield this.stopForecasterPairRequestOpts(requestParameters);
|
|
1329
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1330
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, StopForecasterPair202Response_js_1.StopForecasterPair202ResponseFromJSON)(jsonValue));
|
|
1331
|
+
});
|
|
1332
|
+
}
|
|
1333
|
+
/**
|
|
1334
|
+
* Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
|
|
1335
|
+
* Cancel a single pair
|
|
1336
|
+
*/
|
|
1337
|
+
stopForecasterPair(requestParameters, initOverrides) {
|
|
1338
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1339
|
+
const response = yield this.stopForecasterPairRaw(requestParameters, initOverrides);
|
|
1340
|
+
return yield response.value();
|
|
1341
|
+
});
|
|
1342
|
+
}
|
|
776
1343
|
/**
|
|
777
1344
|
* Creates request options for stopInspection without sending the request
|
|
778
1345
|
*/
|
|
@@ -780,7 +1347,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
780
1347
|
return __awaiter(this, void 0, void 0, function* () {
|
|
781
1348
|
const queryParameters = {};
|
|
782
1349
|
const headerParameters = {};
|
|
783
|
-
let urlPath = `/
|
|
1350
|
+
let urlPath = `/inspector`;
|
|
784
1351
|
return {
|
|
785
1352
|
path: urlPath,
|
|
786
1353
|
method: 'DELETE',
|
|
@@ -796,7 +1363,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
796
1363
|
return __awaiter(this, void 0, void 0, function* () {
|
|
797
1364
|
const requestOptions = yield this.stopInspectionRequestOpts();
|
|
798
1365
|
const response = yield this.request(requestOptions, initOverrides);
|
|
799
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1366
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, InspectorStatus_js_1.InspectorStatusFromJSON)(jsonValue));
|
|
800
1367
|
});
|
|
801
1368
|
}
|
|
802
1369
|
/**
|
|
@@ -809,103 +1376,86 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
809
1376
|
});
|
|
810
1377
|
}
|
|
811
1378
|
/**
|
|
812
|
-
* Creates request options for
|
|
1379
|
+
* Creates request options for triggerRightsizingCollection without sending the request
|
|
813
1380
|
*/
|
|
814
|
-
|
|
1381
|
+
triggerRightsizingCollectionRequestOpts(requestParameters) {
|
|
815
1382
|
return __awaiter(this, void 0, void 0, function* () {
|
|
816
|
-
if (requestParameters['
|
|
817
|
-
throw new runtime.RequiredError('
|
|
818
|
-
}
|
|
819
|
-
if (requestParameters['updateGroupRequest'] == null) {
|
|
820
|
-
throw new runtime.RequiredError('updateGroupRequest', 'Required parameter "updateGroupRequest" was null or undefined when calling updateGroup().');
|
|
1383
|
+
if (requestParameters['rightsizingCollectRequest'] == null) {
|
|
1384
|
+
throw new runtime.RequiredError('rightsizingCollectRequest', 'Required parameter "rightsizingCollectRequest" was null or undefined when calling triggerRightsizingCollection().');
|
|
821
1385
|
}
|
|
822
1386
|
const queryParameters = {};
|
|
823
1387
|
const headerParameters = {};
|
|
824
1388
|
headerParameters['Content-Type'] = 'application/json';
|
|
825
|
-
let urlPath = `/
|
|
826
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
1389
|
+
let urlPath = `/rightsizing`;
|
|
827
1390
|
return {
|
|
828
1391
|
path: urlPath,
|
|
829
|
-
method: '
|
|
1392
|
+
method: 'POST',
|
|
830
1393
|
headers: headerParameters,
|
|
831
1394
|
query: queryParameters,
|
|
832
|
-
body: (0,
|
|
1395
|
+
body: (0, RightsizingCollectRequest_js_1.RightsizingCollectRequestToJSON)(requestParameters['rightsizingCollectRequest']),
|
|
833
1396
|
};
|
|
834
1397
|
});
|
|
835
1398
|
}
|
|
836
1399
|
/**
|
|
837
|
-
*
|
|
1400
|
+
* Trigger rightsizing metrics collection
|
|
838
1401
|
*/
|
|
839
|
-
|
|
1402
|
+
triggerRightsizingCollectionRaw(requestParameters, initOverrides) {
|
|
840
1403
|
return __awaiter(this, void 0, void 0, function* () {
|
|
841
|
-
const requestOptions = yield this.
|
|
1404
|
+
const requestOptions = yield this.triggerRightsizingCollectionRequestOpts(requestParameters);
|
|
842
1405
|
const response = yield this.request(requestOptions, initOverrides);
|
|
843
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1406
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingReportSummary_js_1.RightsizingReportSummaryFromJSON)(jsonValue));
|
|
844
1407
|
});
|
|
845
1408
|
}
|
|
846
1409
|
/**
|
|
847
|
-
*
|
|
1410
|
+
* Trigger rightsizing metrics collection
|
|
848
1411
|
*/
|
|
849
|
-
|
|
1412
|
+
triggerRightsizingCollection(requestParameters, initOverrides) {
|
|
850
1413
|
return __awaiter(this, void 0, void 0, function* () {
|
|
851
|
-
const response = yield this.
|
|
1414
|
+
const response = yield this.triggerRightsizingCollectionRaw(requestParameters, initOverrides);
|
|
852
1415
|
return yield response.value();
|
|
853
1416
|
});
|
|
854
1417
|
}
|
|
855
1418
|
/**
|
|
856
|
-
* Creates request options for
|
|
1419
|
+
* Creates request options for updateGroup without sending the request
|
|
857
1420
|
*/
|
|
858
|
-
|
|
1421
|
+
updateGroupRequestOpts(requestParameters) {
|
|
859
1422
|
return __awaiter(this, void 0, void 0, function* () {
|
|
860
|
-
if (requestParameters['
|
|
861
|
-
throw new runtime.RequiredError('
|
|
1423
|
+
if (requestParameters['id'] == null) {
|
|
1424
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateGroup().');
|
|
1425
|
+
}
|
|
1426
|
+
if (requestParameters['updateGroupRequest'] == null) {
|
|
1427
|
+
throw new runtime.RequiredError('updateGroupRequest', 'Required parameter "updateGroupRequest" was null or undefined when calling updateGroup().');
|
|
862
1428
|
}
|
|
863
1429
|
const queryParameters = {};
|
|
864
1430
|
const headerParameters = {};
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
];
|
|
868
|
-
// @ts-ignore: canConsumeForm may be unused
|
|
869
|
-
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
870
|
-
let formParams;
|
|
871
|
-
let useForm = false;
|
|
872
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
873
|
-
useForm = canConsumeForm;
|
|
874
|
-
if (useForm) {
|
|
875
|
-
formParams = new FormData();
|
|
876
|
-
}
|
|
877
|
-
else {
|
|
878
|
-
formParams = new URLSearchParams();
|
|
879
|
-
}
|
|
880
|
-
if (requestParameters['file'] != null) {
|
|
881
|
-
formParams.append('file', requestParameters['file']);
|
|
882
|
-
}
|
|
883
|
-
let urlPath = `/vddk`;
|
|
1431
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1432
|
+
let urlPath = `/groups/{id}`;
|
|
1433
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
884
1434
|
return {
|
|
885
1435
|
path: urlPath,
|
|
886
|
-
method: '
|
|
1436
|
+
method: 'PATCH',
|
|
887
1437
|
headers: headerParameters,
|
|
888
1438
|
query: queryParameters,
|
|
889
|
-
body:
|
|
1439
|
+
body: (0, UpdateGroupRequest_js_1.UpdateGroupRequestToJSON)(requestParameters['updateGroupRequest']),
|
|
890
1440
|
};
|
|
891
1441
|
});
|
|
892
1442
|
}
|
|
893
1443
|
/**
|
|
894
|
-
*
|
|
1444
|
+
* Update group
|
|
895
1445
|
*/
|
|
896
|
-
|
|
1446
|
+
updateGroupRaw(requestParameters, initOverrides) {
|
|
897
1447
|
return __awaiter(this, void 0, void 0, function* () {
|
|
898
|
-
const requestOptions = yield this.
|
|
1448
|
+
const requestOptions = yield this.updateGroupRequestOpts(requestParameters);
|
|
899
1449
|
const response = yield this.request(requestOptions, initOverrides);
|
|
900
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1450
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, Group_js_1.GroupFromJSON)(jsonValue));
|
|
901
1451
|
});
|
|
902
1452
|
}
|
|
903
1453
|
/**
|
|
904
|
-
*
|
|
1454
|
+
* Update group
|
|
905
1455
|
*/
|
|
906
|
-
|
|
1456
|
+
updateGroup(requestParameters, initOverrides) {
|
|
907
1457
|
return __awaiter(this, void 0, void 0, function* () {
|
|
908
|
-
const response = yield this.
|
|
1458
|
+
const response = yield this.updateGroupRaw(requestParameters, initOverrides);
|
|
909
1459
|
return yield response.value();
|
|
910
1460
|
});
|
|
911
1461
|
}
|