@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
|
@@ -21,89 +21,118 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime.js';
|
|
24
|
-
import { AgentModeRequestToJSON,
|
|
24
|
+
import { AgentModeRequestToJSON, } from '../models/AgentModeRequest.js';
|
|
25
|
+
import { AgentStatusFromJSON, } from '../models/AgentStatus.js';
|
|
26
|
+
import { BenchmarkRunFromJSON, } from '../models/BenchmarkRun.js';
|
|
27
|
+
import { CollectorStartRequestToJSON, } from '../models/CollectorStartRequest.js';
|
|
28
|
+
import { CollectorStatusFromJSON, } from '../models/CollectorStatus.js';
|
|
29
|
+
import { CreateGroupRequestToJSON, } from '../models/CreateGroupRequest.js';
|
|
30
|
+
import { DatastoreDetailFromJSON, } from '../models/DatastoreDetail.js';
|
|
31
|
+
import { ForecastStatsFromJSON, } from '../models/ForecastStats.js';
|
|
32
|
+
import { ForecasterDatastoresRequestToJSON, } from '../models/ForecasterDatastoresRequest.js';
|
|
33
|
+
import { ForecasterStartRequestToJSON, } from '../models/ForecasterStartRequest.js';
|
|
34
|
+
import { ForecasterStatusFromJSON, } from '../models/ForecasterStatus.js';
|
|
35
|
+
import { GetInventory200ResponseFromJSON, } from '../models/GetInventory200Response.js';
|
|
36
|
+
import { GroupFromJSON, } from '../models/Group.js';
|
|
37
|
+
import { GroupListResponseFromJSON, } from '../models/GroupListResponse.js';
|
|
38
|
+
import { GroupResponseFromJSON, } from '../models/GroupResponse.js';
|
|
39
|
+
import { InspectorStatusFromJSON, } from '../models/InspectorStatus.js';
|
|
40
|
+
import { PairCapabilityFromJSON, } from '../models/PairCapability.js';
|
|
41
|
+
import { PairCapabilityRequestToJSON, } from '../models/PairCapabilityRequest.js';
|
|
42
|
+
import { RightsizingCollectRequestToJSON, } from '../models/RightsizingCollectRequest.js';
|
|
43
|
+
import { RightsizingReportFromJSON, } from '../models/RightsizingReport.js';
|
|
44
|
+
import { RightsizingReportListResponseFromJSON, } from '../models/RightsizingReportListResponse.js';
|
|
45
|
+
import { RightsizingReportSummaryFromJSON, } from '../models/RightsizingReportSummary.js';
|
|
46
|
+
import { StartInspectionRequestToJSON, } from '../models/StartInspectionRequest.js';
|
|
47
|
+
import { StopForecasterPair202ResponseFromJSON, } from '../models/StopForecasterPair202Response.js';
|
|
48
|
+
import { UpdateGroupRequestToJSON, } from '../models/UpdateGroupRequest.js';
|
|
49
|
+
import { VcenterCredentialsToJSON, } from '../models/VcenterCredentials.js';
|
|
50
|
+
import { VddkPropertiesFromJSON, } from '../models/VddkProperties.js';
|
|
51
|
+
import { VersionInfoFromJSON, } from '../models/VersionInfo.js';
|
|
52
|
+
import { VirtualMachineDetailFromJSON, } from '../models/VirtualMachineDetail.js';
|
|
53
|
+
import { VirtualMachineListResponseFromJSON, } from '../models/VirtualMachineListResponse.js';
|
|
54
|
+
import { VmInspectionStatusFromJSON, } from '../models/VmInspectionStatus.js';
|
|
55
|
+
import { VmUtilizationDetailsFromJSON, } from '../models/VmUtilizationDetails.js';
|
|
25
56
|
/**
|
|
26
57
|
*
|
|
27
58
|
*/
|
|
28
59
|
export class DefaultApi extends runtime.BaseAPI {
|
|
29
60
|
/**
|
|
30
|
-
* Creates request options for
|
|
61
|
+
* Creates request options for createGroup without sending the request
|
|
31
62
|
*/
|
|
32
|
-
|
|
63
|
+
createGroupRequestOpts(requestParameters) {
|
|
33
64
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
if (requestParameters['
|
|
35
|
-
throw new runtime.RequiredError('
|
|
65
|
+
if (requestParameters['createGroupRequest'] == null) {
|
|
66
|
+
throw new runtime.RequiredError('createGroupRequest', 'Required parameter "createGroupRequest" was null or undefined when calling createGroup().');
|
|
36
67
|
}
|
|
37
68
|
const queryParameters = {};
|
|
38
69
|
const headerParameters = {};
|
|
39
70
|
headerParameters['Content-Type'] = 'application/json';
|
|
40
|
-
let urlPath = `/
|
|
71
|
+
let urlPath = `/groups`;
|
|
41
72
|
return {
|
|
42
73
|
path: urlPath,
|
|
43
|
-
method: '
|
|
74
|
+
method: 'POST',
|
|
44
75
|
headers: headerParameters,
|
|
45
76
|
query: queryParameters,
|
|
46
|
-
body: requestParameters['
|
|
77
|
+
body: CreateGroupRequestToJSON(requestParameters['createGroupRequest']),
|
|
47
78
|
};
|
|
48
79
|
});
|
|
49
80
|
}
|
|
50
81
|
/**
|
|
51
|
-
*
|
|
82
|
+
* Create a new group
|
|
52
83
|
*/
|
|
53
|
-
|
|
84
|
+
createGroupRaw(requestParameters, initOverrides) {
|
|
54
85
|
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
const requestOptions = yield this.
|
|
86
|
+
const requestOptions = yield this.createGroupRequestOpts(requestParameters);
|
|
56
87
|
const response = yield this.request(requestOptions, initOverrides);
|
|
57
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
88
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupFromJSON(jsonValue));
|
|
58
89
|
});
|
|
59
90
|
}
|
|
60
91
|
/**
|
|
61
|
-
*
|
|
92
|
+
* Create a new group
|
|
62
93
|
*/
|
|
63
|
-
|
|
94
|
+
createGroup(requestParameters, initOverrides) {
|
|
64
95
|
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
-
const response = yield this.
|
|
96
|
+
const response = yield this.createGroupRaw(requestParameters, initOverrides);
|
|
66
97
|
return yield response.value();
|
|
67
98
|
});
|
|
68
99
|
}
|
|
69
100
|
/**
|
|
70
|
-
* Creates request options for
|
|
101
|
+
* Creates request options for deleteForecasterRun without sending the request
|
|
71
102
|
*/
|
|
72
|
-
|
|
103
|
+
deleteForecasterRunRequestOpts(requestParameters) {
|
|
73
104
|
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
-
if (requestParameters['
|
|
75
|
-
throw new runtime.RequiredError('
|
|
105
|
+
if (requestParameters['id'] == null) {
|
|
106
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteForecasterRun().');
|
|
76
107
|
}
|
|
77
108
|
const queryParameters = {};
|
|
78
109
|
const headerParameters = {};
|
|
79
|
-
|
|
80
|
-
|
|
110
|
+
let urlPath = `/forecaster/runs/{id}`;
|
|
111
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
81
112
|
return {
|
|
82
113
|
path: urlPath,
|
|
83
|
-
method: '
|
|
114
|
+
method: 'DELETE',
|
|
84
115
|
headers: headerParameters,
|
|
85
116
|
query: queryParameters,
|
|
86
|
-
body: CreateGroupRequestToJSON(requestParameters['createGroupRequest']),
|
|
87
117
|
};
|
|
88
118
|
});
|
|
89
119
|
}
|
|
90
120
|
/**
|
|
91
|
-
*
|
|
121
|
+
* Delete a benchmark run
|
|
92
122
|
*/
|
|
93
|
-
|
|
123
|
+
deleteForecasterRunRaw(requestParameters, initOverrides) {
|
|
94
124
|
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
-
const requestOptions = yield this.
|
|
125
|
+
const requestOptions = yield this.deleteForecasterRunRequestOpts(requestParameters);
|
|
96
126
|
const response = yield this.request(requestOptions, initOverrides);
|
|
97
|
-
return new runtime.
|
|
127
|
+
return new runtime.VoidApiResponse(response);
|
|
98
128
|
});
|
|
99
129
|
}
|
|
100
130
|
/**
|
|
101
|
-
*
|
|
131
|
+
* Delete a benchmark run
|
|
102
132
|
*/
|
|
103
|
-
|
|
133
|
+
deleteForecasterRun(requestParameters, initOverrides) {
|
|
104
134
|
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
-
|
|
106
|
-
return yield response.value();
|
|
135
|
+
yield this.deleteForecasterRunRaw(requestParameters, initOverrides);
|
|
107
136
|
});
|
|
108
137
|
}
|
|
109
138
|
/**
|
|
@@ -117,7 +146,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
117
146
|
const queryParameters = {};
|
|
118
147
|
const headerParameters = {};
|
|
119
148
|
let urlPath = `/groups/{id}`;
|
|
120
|
-
urlPath = urlPath.replace(
|
|
149
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
121
150
|
return {
|
|
122
151
|
path: urlPath,
|
|
123
152
|
method: 'DELETE',
|
|
@@ -214,6 +243,165 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
214
243
|
return yield response.value();
|
|
215
244
|
});
|
|
216
245
|
}
|
|
246
|
+
/**
|
|
247
|
+
* Creates request options for getForecasterDatastores without sending the request
|
|
248
|
+
*/
|
|
249
|
+
getForecasterDatastoresRequestOpts(requestParameters) {
|
|
250
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
251
|
+
const queryParameters = {};
|
|
252
|
+
const headerParameters = {};
|
|
253
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
254
|
+
let urlPath = `/forecaster/datastores`;
|
|
255
|
+
return {
|
|
256
|
+
path: urlPath,
|
|
257
|
+
method: 'POST',
|
|
258
|
+
headers: headerParameters,
|
|
259
|
+
query: queryParameters,
|
|
260
|
+
body: ForecasterDatastoresRequestToJSON(requestParameters['forecasterDatastoresRequest']),
|
|
261
|
+
};
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
|
|
266
|
+
* List available datastores
|
|
267
|
+
*/
|
|
268
|
+
getForecasterDatastoresRaw(requestParameters, initOverrides) {
|
|
269
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
270
|
+
const requestOptions = yield this.getForecasterDatastoresRequestOpts(requestParameters);
|
|
271
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
272
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DatastoreDetailFromJSON));
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
|
|
277
|
+
* List available datastores
|
|
278
|
+
*/
|
|
279
|
+
getForecasterDatastores() {
|
|
280
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
281
|
+
const response = yield this.getForecasterDatastoresRaw(requestParameters, initOverrides);
|
|
282
|
+
return yield response.value();
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Creates request options for getForecasterRuns without sending the request
|
|
287
|
+
*/
|
|
288
|
+
getForecasterRunsRequestOpts(requestParameters) {
|
|
289
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
290
|
+
const queryParameters = {};
|
|
291
|
+
if (requestParameters['pairName'] != null) {
|
|
292
|
+
queryParameters['pairName'] = requestParameters['pairName'];
|
|
293
|
+
}
|
|
294
|
+
const headerParameters = {};
|
|
295
|
+
let urlPath = `/forecaster/runs`;
|
|
296
|
+
return {
|
|
297
|
+
path: urlPath,
|
|
298
|
+
method: 'GET',
|
|
299
|
+
headers: headerParameters,
|
|
300
|
+
query: queryParameters,
|
|
301
|
+
};
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* Returns individual benchmark iterations. Optionally filtered by pair name.
|
|
306
|
+
* List benchmark runs
|
|
307
|
+
*/
|
|
308
|
+
getForecasterRunsRaw(requestParameters, initOverrides) {
|
|
309
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
310
|
+
const requestOptions = yield this.getForecasterRunsRequestOpts(requestParameters);
|
|
311
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
312
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BenchmarkRunFromJSON));
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Returns individual benchmark iterations. Optionally filtered by pair name.
|
|
317
|
+
* List benchmark runs
|
|
318
|
+
*/
|
|
319
|
+
getForecasterRuns() {
|
|
320
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
321
|
+
const response = yield this.getForecasterRunsRaw(requestParameters, initOverrides);
|
|
322
|
+
return yield response.value();
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Creates request options for getForecasterStats without sending the request
|
|
327
|
+
*/
|
|
328
|
+
getForecasterStatsRequestOpts(requestParameters) {
|
|
329
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
330
|
+
if (requestParameters['pairName'] == null) {
|
|
331
|
+
throw new runtime.RequiredError('pairName', 'Required parameter "pairName" was null or undefined when calling getForecasterStats().');
|
|
332
|
+
}
|
|
333
|
+
const queryParameters = {};
|
|
334
|
+
if (requestParameters['pairName'] != null) {
|
|
335
|
+
queryParameters['pairName'] = requestParameters['pairName'];
|
|
336
|
+
}
|
|
337
|
+
const headerParameters = {};
|
|
338
|
+
let urlPath = `/forecaster/stats`;
|
|
339
|
+
return {
|
|
340
|
+
path: urlPath,
|
|
341
|
+
method: 'GET',
|
|
342
|
+
headers: headerParameters,
|
|
343
|
+
query: queryParameters,
|
|
344
|
+
};
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
|
|
349
|
+
* Get throughput statistics
|
|
350
|
+
*/
|
|
351
|
+
getForecasterStatsRaw(requestParameters, initOverrides) {
|
|
352
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
353
|
+
const requestOptions = yield this.getForecasterStatsRequestOpts(requestParameters);
|
|
354
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
355
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ForecastStatsFromJSON(jsonValue));
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
|
|
360
|
+
* Get throughput statistics
|
|
361
|
+
*/
|
|
362
|
+
getForecasterStats(requestParameters, initOverrides) {
|
|
363
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
364
|
+
const response = yield this.getForecasterStatsRaw(requestParameters, initOverrides);
|
|
365
|
+
return yield response.value();
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Creates request options for getForecasterStatus without sending the request
|
|
370
|
+
*/
|
|
371
|
+
getForecasterStatusRequestOpts() {
|
|
372
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
373
|
+
const queryParameters = {};
|
|
374
|
+
const headerParameters = {};
|
|
375
|
+
let urlPath = `/forecaster`;
|
|
376
|
+
return {
|
|
377
|
+
path: urlPath,
|
|
378
|
+
method: 'GET',
|
|
379
|
+
headers: headerParameters,
|
|
380
|
+
query: queryParameters,
|
|
381
|
+
};
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Returns current service state with per-pair progress details.
|
|
386
|
+
* Poll forecaster status
|
|
387
|
+
*/
|
|
388
|
+
getForecasterStatusRaw(initOverrides) {
|
|
389
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
390
|
+
const requestOptions = yield this.getForecasterStatusRequestOpts();
|
|
391
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
392
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ForecasterStatusFromJSON(jsonValue));
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Returns current service state with per-pair progress details.
|
|
397
|
+
* Poll forecaster status
|
|
398
|
+
*/
|
|
399
|
+
getForecasterStatus(initOverrides) {
|
|
400
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
401
|
+
const response = yield this.getForecasterStatusRaw(initOverrides);
|
|
402
|
+
return yield response.value();
|
|
403
|
+
});
|
|
404
|
+
}
|
|
217
405
|
/**
|
|
218
406
|
* Creates request options for getGroup without sending the request
|
|
219
407
|
*/
|
|
@@ -234,7 +422,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
234
422
|
}
|
|
235
423
|
const headerParameters = {};
|
|
236
424
|
let urlPath = `/groups/{id}`;
|
|
237
|
-
urlPath = urlPath.replace(
|
|
425
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
238
426
|
return {
|
|
239
427
|
path: urlPath,
|
|
240
428
|
method: 'GET',
|
|
@@ -265,11 +453,17 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
265
453
|
/**
|
|
266
454
|
* Creates request options for getInspectorStatus without sending the request
|
|
267
455
|
*/
|
|
268
|
-
getInspectorStatusRequestOpts() {
|
|
456
|
+
getInspectorStatusRequestOpts(requestParameters) {
|
|
269
457
|
return __awaiter(this, void 0, void 0, function* () {
|
|
270
458
|
const queryParameters = {};
|
|
459
|
+
if (requestParameters['includeVddk'] != null) {
|
|
460
|
+
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
461
|
+
}
|
|
462
|
+
if (requestParameters['includeCredentials'] != null) {
|
|
463
|
+
queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
|
|
464
|
+
}
|
|
271
465
|
const headerParameters = {};
|
|
272
|
-
let urlPath = `/
|
|
466
|
+
let urlPath = `/inspector`;
|
|
273
467
|
return {
|
|
274
468
|
path: urlPath,
|
|
275
469
|
method: 'GET',
|
|
@@ -281,9 +475,9 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
281
475
|
/**
|
|
282
476
|
* Get inspector status
|
|
283
477
|
*/
|
|
284
|
-
getInspectorStatusRaw(initOverrides) {
|
|
478
|
+
getInspectorStatusRaw(requestParameters, initOverrides) {
|
|
285
479
|
return __awaiter(this, void 0, void 0, function* () {
|
|
286
|
-
const requestOptions = yield this.getInspectorStatusRequestOpts();
|
|
480
|
+
const requestOptions = yield this.getInspectorStatusRequestOpts(requestParameters);
|
|
287
481
|
const response = yield this.request(requestOptions, initOverrides);
|
|
288
482
|
return new runtime.JSONApiResponse(response, (jsonValue) => InspectorStatusFromJSON(jsonValue));
|
|
289
483
|
});
|
|
@@ -291,9 +485,44 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
291
485
|
/**
|
|
292
486
|
* Get inspector status
|
|
293
487
|
*/
|
|
294
|
-
getInspectorStatus(
|
|
488
|
+
getInspectorStatus() {
|
|
489
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
490
|
+
const response = yield this.getInspectorStatusRaw(requestParameters, initOverrides);
|
|
491
|
+
return yield response.value();
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* Creates request options for getInspectorVddkStatus without sending the request
|
|
496
|
+
*/
|
|
497
|
+
getInspectorVddkStatusRequestOpts() {
|
|
498
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
499
|
+
const queryParameters = {};
|
|
500
|
+
const headerParameters = {};
|
|
501
|
+
let urlPath = `/inspector/vddk`;
|
|
502
|
+
return {
|
|
503
|
+
path: urlPath,
|
|
504
|
+
method: 'GET',
|
|
505
|
+
headers: headerParameters,
|
|
506
|
+
query: queryParameters,
|
|
507
|
+
};
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Get VDDK status
|
|
512
|
+
*/
|
|
513
|
+
getInspectorVddkStatusRaw(initOverrides) {
|
|
514
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
515
|
+
const requestOptions = yield this.getInspectorVddkStatusRequestOpts();
|
|
516
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
517
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Get VDDK status
|
|
522
|
+
*/
|
|
523
|
+
getInspectorVddkStatus(initOverrides) {
|
|
295
524
|
return __awaiter(this, void 0, void 0, function* () {
|
|
296
|
-
const response = yield this.
|
|
525
|
+
const response = yield this.getInspectorVddkStatusRaw(initOverrides);
|
|
297
526
|
return yield response.value();
|
|
298
527
|
});
|
|
299
528
|
}
|
|
@@ -338,6 +567,45 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
338
567
|
return yield response.value();
|
|
339
568
|
});
|
|
340
569
|
}
|
|
570
|
+
/**
|
|
571
|
+
* Creates request options for getRightsizingReport without sending the request
|
|
572
|
+
*/
|
|
573
|
+
getRightsizingReportRequestOpts(requestParameters) {
|
|
574
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
575
|
+
if (requestParameters['id'] == null) {
|
|
576
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRightsizingReport().');
|
|
577
|
+
}
|
|
578
|
+
const queryParameters = {};
|
|
579
|
+
const headerParameters = {};
|
|
580
|
+
let urlPath = `/rightsizing/{id}`;
|
|
581
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
582
|
+
return {
|
|
583
|
+
path: urlPath,
|
|
584
|
+
method: 'GET',
|
|
585
|
+
headers: headerParameters,
|
|
586
|
+
query: queryParameters,
|
|
587
|
+
};
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* Get a specific rightsizing report with full VM metrics
|
|
592
|
+
*/
|
|
593
|
+
getRightsizingReportRaw(requestParameters, initOverrides) {
|
|
594
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
595
|
+
const requestOptions = yield this.getRightsizingReportRequestOpts(requestParameters);
|
|
596
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
597
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingReportFromJSON(jsonValue));
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Get a specific rightsizing report with full VM metrics
|
|
602
|
+
*/
|
|
603
|
+
getRightsizingReport(requestParameters, initOverrides) {
|
|
604
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
605
|
+
const response = yield this.getRightsizingReportRaw(requestParameters, initOverrides);
|
|
606
|
+
return yield response.value();
|
|
607
|
+
});
|
|
608
|
+
}
|
|
341
609
|
/**
|
|
342
610
|
* Creates request options for getVM without sending the request
|
|
343
611
|
*/
|
|
@@ -349,7 +617,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
349
617
|
const queryParameters = {};
|
|
350
618
|
const headerParameters = {};
|
|
351
619
|
let urlPath = `/vms/{id}`;
|
|
352
|
-
urlPath = urlPath.replace(
|
|
620
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
353
621
|
return {
|
|
354
622
|
path: urlPath,
|
|
355
623
|
method: 'GET',
|
|
@@ -378,17 +646,17 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
378
646
|
});
|
|
379
647
|
}
|
|
380
648
|
/**
|
|
381
|
-
* Creates request options for
|
|
649
|
+
* Creates request options for getVMUtilization without sending the request
|
|
382
650
|
*/
|
|
383
|
-
|
|
651
|
+
getVMUtilizationRequestOpts(requestParameters) {
|
|
384
652
|
return __awaiter(this, void 0, void 0, function* () {
|
|
385
653
|
if (requestParameters['id'] == null) {
|
|
386
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling
|
|
654
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVMUtilization().');
|
|
387
655
|
}
|
|
388
656
|
const queryParameters = {};
|
|
389
657
|
const headerParameters = {};
|
|
390
|
-
let urlPath = `/vms/{id}/
|
|
391
|
-
urlPath = urlPath.replace(
|
|
658
|
+
let urlPath = `/vms/{id}/utilization`;
|
|
659
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
392
660
|
return {
|
|
393
661
|
path: urlPath,
|
|
394
662
|
method: 'GET',
|
|
@@ -398,21 +666,21 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
398
666
|
});
|
|
399
667
|
}
|
|
400
668
|
/**
|
|
401
|
-
* Get
|
|
669
|
+
* Get utilization breakdown for a specific VM
|
|
402
670
|
*/
|
|
403
|
-
|
|
671
|
+
getVMUtilizationRaw(requestParameters, initOverrides) {
|
|
404
672
|
return __awaiter(this, void 0, void 0, function* () {
|
|
405
|
-
const requestOptions = yield this.
|
|
673
|
+
const requestOptions = yield this.getVMUtilizationRequestOpts(requestParameters);
|
|
406
674
|
const response = yield this.request(requestOptions, initOverrides);
|
|
407
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
675
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VmUtilizationDetailsFromJSON(jsonValue));
|
|
408
676
|
});
|
|
409
677
|
}
|
|
410
678
|
/**
|
|
411
|
-
* Get
|
|
679
|
+
* Get utilization breakdown for a specific VM
|
|
412
680
|
*/
|
|
413
|
-
|
|
681
|
+
getVMUtilization(requestParameters, initOverrides) {
|
|
414
682
|
return __awaiter(this, void 0, void 0, function* () {
|
|
415
|
-
const response = yield this.
|
|
683
|
+
const response = yield this.getVMUtilizationRaw(requestParameters, initOverrides);
|
|
416
684
|
return yield response.value();
|
|
417
685
|
});
|
|
418
686
|
}
|
|
@@ -463,41 +731,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
463
731
|
return yield response.value();
|
|
464
732
|
});
|
|
465
733
|
}
|
|
466
|
-
/**
|
|
467
|
-
* Creates request options for getVddkStatus without sending the request
|
|
468
|
-
*/
|
|
469
|
-
getVddkStatusRequestOpts() {
|
|
470
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
471
|
-
const queryParameters = {};
|
|
472
|
-
const headerParameters = {};
|
|
473
|
-
let urlPath = `/vddk`;
|
|
474
|
-
return {
|
|
475
|
-
path: urlPath,
|
|
476
|
-
method: 'GET',
|
|
477
|
-
headers: headerParameters,
|
|
478
|
-
query: queryParameters,
|
|
479
|
-
};
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
/**
|
|
483
|
-
* Get VDDK status
|
|
484
|
-
*/
|
|
485
|
-
getVddkStatusRaw(initOverrides) {
|
|
486
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
487
|
-
const requestOptions = yield this.getVddkStatusRequestOpts();
|
|
488
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
489
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
490
|
-
});
|
|
491
|
-
}
|
|
492
|
-
/**
|
|
493
|
-
* Get VDDK status
|
|
494
|
-
*/
|
|
495
|
-
getVddkStatus(initOverrides) {
|
|
496
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
497
|
-
const response = yield this.getVddkStatusRaw(initOverrides);
|
|
498
|
-
return yield response.value();
|
|
499
|
-
});
|
|
500
|
-
}
|
|
501
734
|
/**
|
|
502
735
|
* Creates request options for getVersion without sending the request
|
|
503
736
|
*/
|
|
@@ -578,91 +811,305 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
578
811
|
});
|
|
579
812
|
}
|
|
580
813
|
/**
|
|
581
|
-
* Creates request options for
|
|
814
|
+
* Creates request options for listRightsizingReports without sending the request
|
|
582
815
|
*/
|
|
583
|
-
|
|
816
|
+
listRightsizingReportsRequestOpts() {
|
|
584
817
|
return __awaiter(this, void 0, void 0, function* () {
|
|
585
|
-
if (requestParameters['id'] == null) {
|
|
586
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling removeVMFromInspection().');
|
|
587
|
-
}
|
|
588
818
|
const queryParameters = {};
|
|
589
819
|
const headerParameters = {};
|
|
590
|
-
let urlPath = `/
|
|
591
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
820
|
+
let urlPath = `/rightsizing`;
|
|
592
821
|
return {
|
|
593
822
|
path: urlPath,
|
|
594
|
-
method: '
|
|
823
|
+
method: 'GET',
|
|
595
824
|
headers: headerParameters,
|
|
596
825
|
query: queryParameters,
|
|
597
826
|
};
|
|
598
827
|
});
|
|
599
828
|
}
|
|
600
829
|
/**
|
|
601
|
-
*
|
|
830
|
+
* List all rightsizing reports
|
|
602
831
|
*/
|
|
603
|
-
|
|
832
|
+
listRightsizingReportsRaw(initOverrides) {
|
|
604
833
|
return __awaiter(this, void 0, void 0, function* () {
|
|
605
|
-
const requestOptions = yield this.
|
|
834
|
+
const requestOptions = yield this.listRightsizingReportsRequestOpts();
|
|
606
835
|
const response = yield this.request(requestOptions, initOverrides);
|
|
607
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
836
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingReportListResponseFromJSON(jsonValue));
|
|
608
837
|
});
|
|
609
838
|
}
|
|
610
839
|
/**
|
|
611
|
-
*
|
|
840
|
+
* List all rightsizing reports
|
|
612
841
|
*/
|
|
613
|
-
|
|
842
|
+
listRightsizingReports(initOverrides) {
|
|
614
843
|
return __awaiter(this, void 0, void 0, function* () {
|
|
615
|
-
const response = yield this.
|
|
844
|
+
const response = yield this.listRightsizingReportsRaw(initOverrides);
|
|
616
845
|
return yield response.value();
|
|
617
846
|
});
|
|
618
847
|
}
|
|
619
848
|
/**
|
|
620
|
-
* Creates request options for
|
|
849
|
+
* Creates request options for postForecasterPairCapabilities without sending the request
|
|
621
850
|
*/
|
|
622
|
-
|
|
851
|
+
postForecasterPairCapabilitiesRequestOpts(requestParameters) {
|
|
623
852
|
return __awaiter(this, void 0, void 0, function* () {
|
|
624
|
-
if (requestParameters['
|
|
625
|
-
throw new runtime.RequiredError('
|
|
853
|
+
if (requestParameters['pairCapabilityRequest'] == null) {
|
|
854
|
+
throw new runtime.RequiredError('pairCapabilityRequest', 'Required parameter "pairCapabilityRequest" was null or undefined when calling postForecasterPairCapabilities().');
|
|
626
855
|
}
|
|
627
856
|
const queryParameters = {};
|
|
628
857
|
const headerParameters = {};
|
|
629
858
|
headerParameters['Content-Type'] = 'application/json';
|
|
630
|
-
let urlPath = `/
|
|
859
|
+
let urlPath = `/forecaster/capabilities`;
|
|
631
860
|
return {
|
|
632
861
|
path: urlPath,
|
|
633
862
|
method: 'POST',
|
|
634
863
|
headers: headerParameters,
|
|
635
864
|
query: queryParameters,
|
|
636
|
-
body:
|
|
865
|
+
body: PairCapabilityRequestToJSON(requestParameters['pairCapabilityRequest']),
|
|
637
866
|
};
|
|
638
867
|
});
|
|
639
868
|
}
|
|
640
869
|
/**
|
|
641
|
-
*
|
|
870
|
+
* 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.
|
|
871
|
+
* Compute pair capabilities
|
|
642
872
|
*/
|
|
643
|
-
|
|
873
|
+
postForecasterPairCapabilitiesRaw(requestParameters, initOverrides) {
|
|
644
874
|
return __awaiter(this, void 0, void 0, function* () {
|
|
645
|
-
const requestOptions = yield this.
|
|
875
|
+
const requestOptions = yield this.postForecasterPairCapabilitiesRequestOpts(requestParameters);
|
|
646
876
|
const response = yield this.request(requestOptions, initOverrides);
|
|
647
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
877
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PairCapabilityFromJSON));
|
|
648
878
|
});
|
|
649
879
|
}
|
|
650
880
|
/**
|
|
651
|
-
*
|
|
881
|
+
* 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.
|
|
882
|
+
* Compute pair capabilities
|
|
652
883
|
*/
|
|
653
|
-
|
|
884
|
+
postForecasterPairCapabilities(requestParameters, initOverrides) {
|
|
654
885
|
return __awaiter(this, void 0, void 0, function* () {
|
|
655
|
-
const response = yield this.
|
|
886
|
+
const response = yield this.postForecasterPairCapabilitiesRaw(requestParameters, initOverrides);
|
|
656
887
|
return yield response.value();
|
|
657
888
|
});
|
|
658
889
|
}
|
|
659
890
|
/**
|
|
660
|
-
* Creates request options for
|
|
891
|
+
* Creates request options for putForecasterCredentials without sending the request
|
|
661
892
|
*/
|
|
662
|
-
|
|
893
|
+
putForecasterCredentialsRequestOpts(requestParameters) {
|
|
663
894
|
return __awaiter(this, void 0, void 0, function* () {
|
|
664
|
-
if (requestParameters['
|
|
665
|
-
throw new runtime.RequiredError('
|
|
895
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
896
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putForecasterCredentials().');
|
|
897
|
+
}
|
|
898
|
+
const queryParameters = {};
|
|
899
|
+
const headerParameters = {};
|
|
900
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
901
|
+
let urlPath = `/forecaster/credentials`;
|
|
902
|
+
return {
|
|
903
|
+
path: urlPath,
|
|
904
|
+
method: 'PUT',
|
|
905
|
+
headers: headerParameters,
|
|
906
|
+
query: queryParameters,
|
|
907
|
+
body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
|
|
908
|
+
};
|
|
909
|
+
});
|
|
910
|
+
}
|
|
911
|
+
/**
|
|
912
|
+
* 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.
|
|
913
|
+
* Verify vCenter credentials and permissions
|
|
914
|
+
*/
|
|
915
|
+
putForecasterCredentialsRaw(requestParameters, initOverrides) {
|
|
916
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
917
|
+
const requestOptions = yield this.putForecasterCredentialsRequestOpts(requestParameters);
|
|
918
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
919
|
+
return new runtime.VoidApiResponse(response);
|
|
920
|
+
});
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* 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.
|
|
924
|
+
* Verify vCenter credentials and permissions
|
|
925
|
+
*/
|
|
926
|
+
putForecasterCredentials(requestParameters, initOverrides) {
|
|
927
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
928
|
+
yield this.putForecasterCredentialsRaw(requestParameters, initOverrides);
|
|
929
|
+
});
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* Creates request options for putInspectorCredentials without sending the request
|
|
933
|
+
*/
|
|
934
|
+
putInspectorCredentialsRequestOpts(requestParameters) {
|
|
935
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
936
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
937
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putInspectorCredentials().');
|
|
938
|
+
}
|
|
939
|
+
const queryParameters = {};
|
|
940
|
+
const headerParameters = {};
|
|
941
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
942
|
+
let urlPath = `/inspector/credentials`;
|
|
943
|
+
return {
|
|
944
|
+
path: urlPath,
|
|
945
|
+
method: 'PUT',
|
|
946
|
+
headers: headerParameters,
|
|
947
|
+
query: queryParameters,
|
|
948
|
+
body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
|
|
949
|
+
};
|
|
950
|
+
});
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
* Set or replace inspector credentials
|
|
954
|
+
*/
|
|
955
|
+
putInspectorCredentialsRaw(requestParameters, initOverrides) {
|
|
956
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
957
|
+
const requestOptions = yield this.putInspectorCredentialsRequestOpts(requestParameters);
|
|
958
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
959
|
+
return new runtime.VoidApiResponse(response);
|
|
960
|
+
});
|
|
961
|
+
}
|
|
962
|
+
/**
|
|
963
|
+
* Set or replace inspector credentials
|
|
964
|
+
*/
|
|
965
|
+
putInspectorCredentials(requestParameters, initOverrides) {
|
|
966
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
967
|
+
yield this.putInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
968
|
+
});
|
|
969
|
+
}
|
|
970
|
+
/**
|
|
971
|
+
* Creates request options for putInspectorVddk without sending the request
|
|
972
|
+
*/
|
|
973
|
+
putInspectorVddkRequestOpts(requestParameters) {
|
|
974
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
975
|
+
if (requestParameters['file'] == null) {
|
|
976
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling putInspectorVddk().');
|
|
977
|
+
}
|
|
978
|
+
const queryParameters = {};
|
|
979
|
+
const headerParameters = {};
|
|
980
|
+
const consumes = [
|
|
981
|
+
{ contentType: 'multipart/form-data' },
|
|
982
|
+
];
|
|
983
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
984
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
985
|
+
let formParams;
|
|
986
|
+
let useForm = false;
|
|
987
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
988
|
+
useForm = canConsumeForm;
|
|
989
|
+
if (useForm) {
|
|
990
|
+
formParams = new FormData();
|
|
991
|
+
}
|
|
992
|
+
else {
|
|
993
|
+
formParams = new URLSearchParams();
|
|
994
|
+
}
|
|
995
|
+
if (requestParameters['file'] != null) {
|
|
996
|
+
formParams.append('file', requestParameters['file']);
|
|
997
|
+
}
|
|
998
|
+
let urlPath = `/inspector/vddk`;
|
|
999
|
+
return {
|
|
1000
|
+
path: urlPath,
|
|
1001
|
+
method: 'PUT',
|
|
1002
|
+
headers: headerParameters,
|
|
1003
|
+
query: queryParameters,
|
|
1004
|
+
body: formParams,
|
|
1005
|
+
};
|
|
1006
|
+
});
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* Upload VDDK tarball
|
|
1010
|
+
*/
|
|
1011
|
+
putInspectorVddkRaw(requestParameters, initOverrides) {
|
|
1012
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1013
|
+
const requestOptions = yield this.putInspectorVddkRequestOpts(requestParameters);
|
|
1014
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1015
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1018
|
+
/**
|
|
1019
|
+
* Upload VDDK tarball
|
|
1020
|
+
*/
|
|
1021
|
+
putInspectorVddk(requestParameters, initOverrides) {
|
|
1022
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1023
|
+
const response = yield this.putInspectorVddkRaw(requestParameters, initOverrides);
|
|
1024
|
+
return yield response.value();
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
/**
|
|
1028
|
+
* Creates request options for removeVMFromInspection without sending the request
|
|
1029
|
+
*/
|
|
1030
|
+
removeVMFromInspectionRequestOpts(requestParameters) {
|
|
1031
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1032
|
+
if (requestParameters['id'] == null) {
|
|
1033
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling removeVMFromInspection().');
|
|
1034
|
+
}
|
|
1035
|
+
const queryParameters = {};
|
|
1036
|
+
const headerParameters = {};
|
|
1037
|
+
let urlPath = `/vms/{id}/inspection`;
|
|
1038
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1039
|
+
return {
|
|
1040
|
+
path: urlPath,
|
|
1041
|
+
method: 'DELETE',
|
|
1042
|
+
headers: headerParameters,
|
|
1043
|
+
query: queryParameters,
|
|
1044
|
+
};
|
|
1045
|
+
});
|
|
1046
|
+
}
|
|
1047
|
+
/**
|
|
1048
|
+
* Remove VirtualMachine from inspection queue
|
|
1049
|
+
*/
|
|
1050
|
+
removeVMFromInspectionRaw(requestParameters, initOverrides) {
|
|
1051
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1052
|
+
const requestOptions = yield this.removeVMFromInspectionRequestOpts(requestParameters);
|
|
1053
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1054
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VmInspectionStatusFromJSON(jsonValue));
|
|
1055
|
+
});
|
|
1056
|
+
}
|
|
1057
|
+
/**
|
|
1058
|
+
* Remove VirtualMachine from inspection queue
|
|
1059
|
+
*/
|
|
1060
|
+
removeVMFromInspection(requestParameters, initOverrides) {
|
|
1061
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1062
|
+
const response = yield this.removeVMFromInspectionRaw(requestParameters, initOverrides);
|
|
1063
|
+
return yield response.value();
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
1066
|
+
/**
|
|
1067
|
+
* Creates request options for setAgentMode without sending the request
|
|
1068
|
+
*/
|
|
1069
|
+
setAgentModeRequestOpts(requestParameters) {
|
|
1070
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1071
|
+
if (requestParameters['agentModeRequest'] == null) {
|
|
1072
|
+
throw new runtime.RequiredError('agentModeRequest', 'Required parameter "agentModeRequest" was null or undefined when calling setAgentMode().');
|
|
1073
|
+
}
|
|
1074
|
+
const queryParameters = {};
|
|
1075
|
+
const headerParameters = {};
|
|
1076
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1077
|
+
let urlPath = `/agent`;
|
|
1078
|
+
return {
|
|
1079
|
+
path: urlPath,
|
|
1080
|
+
method: 'POST',
|
|
1081
|
+
headers: headerParameters,
|
|
1082
|
+
query: queryParameters,
|
|
1083
|
+
body: AgentModeRequestToJSON(requestParameters['agentModeRequest']),
|
|
1084
|
+
};
|
|
1085
|
+
});
|
|
1086
|
+
}
|
|
1087
|
+
/**
|
|
1088
|
+
* Change agent mode
|
|
1089
|
+
*/
|
|
1090
|
+
setAgentModeRaw(requestParameters, initOverrides) {
|
|
1091
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1092
|
+
const requestOptions = yield this.setAgentModeRequestOpts(requestParameters);
|
|
1093
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1094
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AgentStatusFromJSON(jsonValue));
|
|
1095
|
+
});
|
|
1096
|
+
}
|
|
1097
|
+
/**
|
|
1098
|
+
* Change agent mode
|
|
1099
|
+
*/
|
|
1100
|
+
setAgentMode(requestParameters, initOverrides) {
|
|
1101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1102
|
+
const response = yield this.setAgentModeRaw(requestParameters, initOverrides);
|
|
1103
|
+
return yield response.value();
|
|
1104
|
+
});
|
|
1105
|
+
}
|
|
1106
|
+
/**
|
|
1107
|
+
* Creates request options for startCollector without sending the request
|
|
1108
|
+
*/
|
|
1109
|
+
startCollectorRequestOpts(requestParameters) {
|
|
1110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1111
|
+
if (requestParameters['collectorStartRequest'] == null) {
|
|
1112
|
+
throw new runtime.RequiredError('collectorStartRequest', 'Required parameter "collectorStartRequest" was null or undefined when calling startCollector().');
|
|
666
1113
|
}
|
|
667
1114
|
const queryParameters = {};
|
|
668
1115
|
const headerParameters = {};
|
|
@@ -696,24 +1143,66 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
696
1143
|
return yield response.value();
|
|
697
1144
|
});
|
|
698
1145
|
}
|
|
1146
|
+
/**
|
|
1147
|
+
* Creates request options for startForecaster without sending the request
|
|
1148
|
+
*/
|
|
1149
|
+
startForecasterRequestOpts(requestParameters) {
|
|
1150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1151
|
+
if (requestParameters['forecasterStartRequest'] == null) {
|
|
1152
|
+
throw new runtime.RequiredError('forecasterStartRequest', 'Required parameter "forecasterStartRequest" was null or undefined when calling startForecaster().');
|
|
1153
|
+
}
|
|
1154
|
+
const queryParameters = {};
|
|
1155
|
+
const headerParameters = {};
|
|
1156
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1157
|
+
let urlPath = `/forecaster`;
|
|
1158
|
+
return {
|
|
1159
|
+
path: urlPath,
|
|
1160
|
+
method: 'POST',
|
|
1161
|
+
headers: headerParameters,
|
|
1162
|
+
query: queryParameters,
|
|
1163
|
+
body: ForecasterStartRequestToJSON(requestParameters['forecasterStartRequest']),
|
|
1164
|
+
};
|
|
1165
|
+
});
|
|
1166
|
+
}
|
|
1167
|
+
/**
|
|
1168
|
+
* Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
|
|
1169
|
+
* Start benchmark
|
|
1170
|
+
*/
|
|
1171
|
+
startForecasterRaw(requestParameters, initOverrides) {
|
|
1172
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1173
|
+
const requestOptions = yield this.startForecasterRequestOpts(requestParameters);
|
|
1174
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1175
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ForecasterStatusFromJSON(jsonValue));
|
|
1176
|
+
});
|
|
1177
|
+
}
|
|
1178
|
+
/**
|
|
1179
|
+
* Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
|
|
1180
|
+
* Start benchmark
|
|
1181
|
+
*/
|
|
1182
|
+
startForecaster(requestParameters, initOverrides) {
|
|
1183
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1184
|
+
const response = yield this.startForecasterRaw(requestParameters, initOverrides);
|
|
1185
|
+
return yield response.value();
|
|
1186
|
+
});
|
|
1187
|
+
}
|
|
699
1188
|
/**
|
|
700
1189
|
* Creates request options for startInspection without sending the request
|
|
701
1190
|
*/
|
|
702
1191
|
startInspectionRequestOpts(requestParameters) {
|
|
703
1192
|
return __awaiter(this, void 0, void 0, function* () {
|
|
704
|
-
if (requestParameters['
|
|
705
|
-
throw new runtime.RequiredError('
|
|
1193
|
+
if (requestParameters['startInspectionRequest'] == null) {
|
|
1194
|
+
throw new runtime.RequiredError('startInspectionRequest', 'Required parameter "startInspectionRequest" was null or undefined when calling startInspection().');
|
|
706
1195
|
}
|
|
707
1196
|
const queryParameters = {};
|
|
708
1197
|
const headerParameters = {};
|
|
709
1198
|
headerParameters['Content-Type'] = 'application/json';
|
|
710
|
-
let urlPath = `/
|
|
1199
|
+
let urlPath = `/inspector`;
|
|
711
1200
|
return {
|
|
712
1201
|
path: urlPath,
|
|
713
1202
|
method: 'POST',
|
|
714
1203
|
headers: headerParameters,
|
|
715
1204
|
query: queryParameters,
|
|
716
|
-
body:
|
|
1205
|
+
body: StartInspectionRequestToJSON(requestParameters['startInspectionRequest']),
|
|
717
1206
|
};
|
|
718
1207
|
});
|
|
719
1208
|
}
|
|
@@ -770,6 +1259,84 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
770
1259
|
yield this.stopCollectorRaw(initOverrides);
|
|
771
1260
|
});
|
|
772
1261
|
}
|
|
1262
|
+
/**
|
|
1263
|
+
* Creates request options for stopForecaster without sending the request
|
|
1264
|
+
*/
|
|
1265
|
+
stopForecasterRequestOpts() {
|
|
1266
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1267
|
+
const queryParameters = {};
|
|
1268
|
+
const headerParameters = {};
|
|
1269
|
+
let urlPath = `/forecaster`;
|
|
1270
|
+
return {
|
|
1271
|
+
path: urlPath,
|
|
1272
|
+
method: 'DELETE',
|
|
1273
|
+
headers: headerParameters,
|
|
1274
|
+
query: queryParameters,
|
|
1275
|
+
};
|
|
1276
|
+
});
|
|
1277
|
+
}
|
|
1278
|
+
/**
|
|
1279
|
+
* Stops the running benchmark. Already-completed runs are preserved in the database.
|
|
1280
|
+
* Cancel benchmark
|
|
1281
|
+
*/
|
|
1282
|
+
stopForecasterRaw(initOverrides) {
|
|
1283
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1284
|
+
const requestOptions = yield this.stopForecasterRequestOpts();
|
|
1285
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1286
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ForecasterStatusFromJSON(jsonValue));
|
|
1287
|
+
});
|
|
1288
|
+
}
|
|
1289
|
+
/**
|
|
1290
|
+
* Stops the running benchmark. Already-completed runs are preserved in the database.
|
|
1291
|
+
* Cancel benchmark
|
|
1292
|
+
*/
|
|
1293
|
+
stopForecaster(initOverrides) {
|
|
1294
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1295
|
+
const response = yield this.stopForecasterRaw(initOverrides);
|
|
1296
|
+
return yield response.value();
|
|
1297
|
+
});
|
|
1298
|
+
}
|
|
1299
|
+
/**
|
|
1300
|
+
* Creates request options for stopForecasterPair without sending the request
|
|
1301
|
+
*/
|
|
1302
|
+
stopForecasterPairRequestOpts(requestParameters) {
|
|
1303
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1304
|
+
if (requestParameters['name'] == null) {
|
|
1305
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling stopForecasterPair().');
|
|
1306
|
+
}
|
|
1307
|
+
const queryParameters = {};
|
|
1308
|
+
const headerParameters = {};
|
|
1309
|
+
let urlPath = `/forecaster/pairs/{name}`;
|
|
1310
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
1311
|
+
return {
|
|
1312
|
+
path: urlPath,
|
|
1313
|
+
method: 'DELETE',
|
|
1314
|
+
headers: headerParameters,
|
|
1315
|
+
query: queryParameters,
|
|
1316
|
+
};
|
|
1317
|
+
});
|
|
1318
|
+
}
|
|
1319
|
+
/**
|
|
1320
|
+
* Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
|
|
1321
|
+
* Cancel a single pair
|
|
1322
|
+
*/
|
|
1323
|
+
stopForecasterPairRaw(requestParameters, initOverrides) {
|
|
1324
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1325
|
+
const requestOptions = yield this.stopForecasterPairRequestOpts(requestParameters);
|
|
1326
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1327
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => StopForecasterPair202ResponseFromJSON(jsonValue));
|
|
1328
|
+
});
|
|
1329
|
+
}
|
|
1330
|
+
/**
|
|
1331
|
+
* Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
|
|
1332
|
+
* Cancel a single pair
|
|
1333
|
+
*/
|
|
1334
|
+
stopForecasterPair(requestParameters, initOverrides) {
|
|
1335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1336
|
+
const response = yield this.stopForecasterPairRaw(requestParameters, initOverrides);
|
|
1337
|
+
return yield response.value();
|
|
1338
|
+
});
|
|
1339
|
+
}
|
|
773
1340
|
/**
|
|
774
1341
|
* Creates request options for stopInspection without sending the request
|
|
775
1342
|
*/
|
|
@@ -777,7 +1344,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
777
1344
|
return __awaiter(this, void 0, void 0, function* () {
|
|
778
1345
|
const queryParameters = {};
|
|
779
1346
|
const headerParameters = {};
|
|
780
|
-
let urlPath = `/
|
|
1347
|
+
let urlPath = `/inspector`;
|
|
781
1348
|
return {
|
|
782
1349
|
path: urlPath,
|
|
783
1350
|
method: 'DELETE',
|
|
@@ -806,103 +1373,86 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
806
1373
|
});
|
|
807
1374
|
}
|
|
808
1375
|
/**
|
|
809
|
-
* Creates request options for
|
|
1376
|
+
* Creates request options for triggerRightsizingCollection without sending the request
|
|
810
1377
|
*/
|
|
811
|
-
|
|
1378
|
+
triggerRightsizingCollectionRequestOpts(requestParameters) {
|
|
812
1379
|
return __awaiter(this, void 0, void 0, function* () {
|
|
813
|
-
if (requestParameters['
|
|
814
|
-
throw new runtime.RequiredError('
|
|
815
|
-
}
|
|
816
|
-
if (requestParameters['updateGroupRequest'] == null) {
|
|
817
|
-
throw new runtime.RequiredError('updateGroupRequest', 'Required parameter "updateGroupRequest" was null or undefined when calling updateGroup().');
|
|
1380
|
+
if (requestParameters['rightsizingCollectRequest'] == null) {
|
|
1381
|
+
throw new runtime.RequiredError('rightsizingCollectRequest', 'Required parameter "rightsizingCollectRequest" was null or undefined when calling triggerRightsizingCollection().');
|
|
818
1382
|
}
|
|
819
1383
|
const queryParameters = {};
|
|
820
1384
|
const headerParameters = {};
|
|
821
1385
|
headerParameters['Content-Type'] = 'application/json';
|
|
822
|
-
let urlPath = `/
|
|
823
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
1386
|
+
let urlPath = `/rightsizing`;
|
|
824
1387
|
return {
|
|
825
1388
|
path: urlPath,
|
|
826
|
-
method: '
|
|
1389
|
+
method: 'POST',
|
|
827
1390
|
headers: headerParameters,
|
|
828
1391
|
query: queryParameters,
|
|
829
|
-
body:
|
|
1392
|
+
body: RightsizingCollectRequestToJSON(requestParameters['rightsizingCollectRequest']),
|
|
830
1393
|
};
|
|
831
1394
|
});
|
|
832
1395
|
}
|
|
833
1396
|
/**
|
|
834
|
-
*
|
|
1397
|
+
* Trigger rightsizing metrics collection
|
|
835
1398
|
*/
|
|
836
|
-
|
|
1399
|
+
triggerRightsizingCollectionRaw(requestParameters, initOverrides) {
|
|
837
1400
|
return __awaiter(this, void 0, void 0, function* () {
|
|
838
|
-
const requestOptions = yield this.
|
|
1401
|
+
const requestOptions = yield this.triggerRightsizingCollectionRequestOpts(requestParameters);
|
|
839
1402
|
const response = yield this.request(requestOptions, initOverrides);
|
|
840
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
1403
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingReportSummaryFromJSON(jsonValue));
|
|
841
1404
|
});
|
|
842
1405
|
}
|
|
843
1406
|
/**
|
|
844
|
-
*
|
|
1407
|
+
* Trigger rightsizing metrics collection
|
|
845
1408
|
*/
|
|
846
|
-
|
|
1409
|
+
triggerRightsizingCollection(requestParameters, initOverrides) {
|
|
847
1410
|
return __awaiter(this, void 0, void 0, function* () {
|
|
848
|
-
const response = yield this.
|
|
1411
|
+
const response = yield this.triggerRightsizingCollectionRaw(requestParameters, initOverrides);
|
|
849
1412
|
return yield response.value();
|
|
850
1413
|
});
|
|
851
1414
|
}
|
|
852
1415
|
/**
|
|
853
|
-
* Creates request options for
|
|
1416
|
+
* Creates request options for updateGroup without sending the request
|
|
854
1417
|
*/
|
|
855
|
-
|
|
1418
|
+
updateGroupRequestOpts(requestParameters) {
|
|
856
1419
|
return __awaiter(this, void 0, void 0, function* () {
|
|
857
|
-
if (requestParameters['
|
|
858
|
-
throw new runtime.RequiredError('
|
|
1420
|
+
if (requestParameters['id'] == null) {
|
|
1421
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateGroup().');
|
|
1422
|
+
}
|
|
1423
|
+
if (requestParameters['updateGroupRequest'] == null) {
|
|
1424
|
+
throw new runtime.RequiredError('updateGroupRequest', 'Required parameter "updateGroupRequest" was null or undefined when calling updateGroup().');
|
|
859
1425
|
}
|
|
860
1426
|
const queryParameters = {};
|
|
861
1427
|
const headerParameters = {};
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
];
|
|
865
|
-
// @ts-ignore: canConsumeForm may be unused
|
|
866
|
-
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
867
|
-
let formParams;
|
|
868
|
-
let useForm = false;
|
|
869
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
870
|
-
useForm = canConsumeForm;
|
|
871
|
-
if (useForm) {
|
|
872
|
-
formParams = new FormData();
|
|
873
|
-
}
|
|
874
|
-
else {
|
|
875
|
-
formParams = new URLSearchParams();
|
|
876
|
-
}
|
|
877
|
-
if (requestParameters['file'] != null) {
|
|
878
|
-
formParams.append('file', requestParameters['file']);
|
|
879
|
-
}
|
|
880
|
-
let urlPath = `/vddk`;
|
|
1428
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1429
|
+
let urlPath = `/groups/{id}`;
|
|
1430
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
881
1431
|
return {
|
|
882
1432
|
path: urlPath,
|
|
883
|
-
method: '
|
|
1433
|
+
method: 'PATCH',
|
|
884
1434
|
headers: headerParameters,
|
|
885
1435
|
query: queryParameters,
|
|
886
|
-
body:
|
|
1436
|
+
body: UpdateGroupRequestToJSON(requestParameters['updateGroupRequest']),
|
|
887
1437
|
};
|
|
888
1438
|
});
|
|
889
1439
|
}
|
|
890
1440
|
/**
|
|
891
|
-
*
|
|
1441
|
+
* Update group
|
|
892
1442
|
*/
|
|
893
|
-
|
|
1443
|
+
updateGroupRaw(requestParameters, initOverrides) {
|
|
894
1444
|
return __awaiter(this, void 0, void 0, function* () {
|
|
895
|
-
const requestOptions = yield this.
|
|
1445
|
+
const requestOptions = yield this.updateGroupRequestOpts(requestParameters);
|
|
896
1446
|
const response = yield this.request(requestOptions, initOverrides);
|
|
897
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
1447
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupFromJSON(jsonValue));
|
|
898
1448
|
});
|
|
899
1449
|
}
|
|
900
1450
|
/**
|
|
901
|
-
*
|
|
1451
|
+
* Update group
|
|
902
1452
|
*/
|
|
903
|
-
|
|
1453
|
+
updateGroup(requestParameters, initOverrides) {
|
|
904
1454
|
return __awaiter(this, void 0, void 0, function* () {
|
|
905
|
-
const response = yield this.
|
|
1455
|
+
const response = yield this.updateGroupRaw(requestParameters, initOverrides);
|
|
906
1456
|
return yield response.value();
|
|
907
1457
|
});
|
|
908
1458
|
}
|