@openshift-migration-advisor/planner-sdk 0.13.3-d6f3e1a2716b → 0.13.4-db4c7857bd8f
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 +12 -0
- package/README.md +8 -3
- package/dist/apis/SizingApi.d.ts +61 -0
- package/dist/apis/SizingApi.js +74 -0
- package/dist/apis/SourceApi.d.ts +0 -30
- package/dist/apis/SourceApi.js +0 -36
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/SizingApi.d.ts +61 -0
- package/dist/esm/apis/SizingApi.js +70 -0
- package/dist/esm/apis/SourceApi.d.ts +0 -30
- package/dist/esm/apis/SourceApi.js +0 -36
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ClusterRequirementsRequest.d.ts +6 -23
- package/dist/esm/models/ClusterRequirementsRequest.js +6 -21
- package/dist/esm/models/ClusterUtilization.d.ts +68 -0
- package/dist/esm/models/ClusterUtilization.js +67 -0
- package/dist/esm/models/CpuOverCommitRatio.d.ts +27 -0
- package/dist/esm/models/CpuOverCommitRatio.js +45 -0
- package/dist/esm/models/InventoryData.d.ts +7 -0
- package/dist/esm/models/InventoryData.js +3 -0
- package/dist/esm/models/MemoryOverCommitRatio.d.ts +26 -0
- package/dist/esm/models/MemoryOverCommitRatio.js +44 -0
- package/dist/esm/models/StandaloneClusterRequirementsRequest.d.ts +114 -0
- package/dist/esm/models/StandaloneClusterRequirementsRequest.js +88 -0
- package/dist/esm/models/StandaloneClusterRequirementsResponse.d.ts +40 -0
- package/dist/esm/models/StandaloneClusterRequirementsResponse.js +49 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/models/ClusterRequirementsRequest.d.ts +6 -23
- package/dist/models/ClusterRequirementsRequest.js +7 -22
- package/dist/models/ClusterUtilization.d.ts +68 -0
- package/dist/models/ClusterUtilization.js +74 -0
- package/dist/models/CpuOverCommitRatio.d.ts +27 -0
- package/dist/models/CpuOverCommitRatio.js +53 -0
- package/dist/models/InventoryData.d.ts +7 -0
- package/dist/models/InventoryData.js +3 -0
- package/dist/models/MemoryOverCommitRatio.d.ts +26 -0
- package/dist/models/MemoryOverCommitRatio.js +52 -0
- package/dist/models/StandaloneClusterRequirementsRequest.d.ts +114 -0
- package/dist/models/StandaloneClusterRequirementsRequest.js +96 -0
- package/dist/models/StandaloneClusterRequirementsResponse.d.ts +40 -0
- package/dist/models/StandaloneClusterRequirementsResponse.js +56 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/docs/AccountApi.md +9 -0
- package/docs/ClusterRequirementsRequest.md +2 -2
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CpuOverCommitRatio.md +33 -0
- package/docs/ImageApi.md +2 -0
- package/docs/InventoryData.md +2 -0
- package/docs/MemoryOverCommitRatio.md +33 -0
- package/docs/SizingApi.md +80 -0
- package/docs/SourceApi.md +0 -62
- package/docs/StandaloneClusterRequirementsRequest.md +59 -0
- package/docs/StandaloneClusterRequirementsResponse.md +37 -0
- package/package.json +1 -1
- package/src/apis/SizingApi.ts +114 -0
- package/src/apis/SourceApi.ts +0 -62
- package/src/apis/index.ts +1 -0
- package/src/models/ClusterRequirementsRequest.ts +23 -29
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CpuOverCommitRatio.ts +55 -0
- package/src/models/InventoryData.ts +15 -0
- package/src/models/MemoryOverCommitRatio.ts +54 -0
- package/src/models/StandaloneClusterRequirementsRequest.ts +194 -0
- package/src/models/StandaloneClusterRequirementsResponse.ts +90 -0
- package/src/models/index.ts +5 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -15,9 +15,11 @@ docs/ClusterRequirementsRequest.md
|
|
|
15
15
|
docs/ClusterRequirementsResponse.md
|
|
16
16
|
docs/ClusterRequirementsStoredInput.md
|
|
17
17
|
docs/ClusterSizing.md
|
|
18
|
+
docs/ClusterUtilization.md
|
|
18
19
|
docs/ComplexityDiskScoreEntry.md
|
|
19
20
|
docs/ComplexityOSNameEntry.md
|
|
20
21
|
docs/ComplexityOSScoreEntry.md
|
|
22
|
+
docs/CpuOverCommitRatio.md
|
|
21
23
|
docs/Customer.md
|
|
22
24
|
docs/Datastore.md
|
|
23
25
|
docs/DiskSizeTierSummary.md
|
|
@@ -46,6 +48,7 @@ docs/Label.md
|
|
|
46
48
|
docs/Member.md
|
|
47
49
|
docs/MemberCreate.md
|
|
48
50
|
docs/MemberUpdate.md
|
|
51
|
+
docs/MemoryOverCommitRatio.md
|
|
49
52
|
docs/MigrationComplexityRequest.md
|
|
50
53
|
docs/MigrationComplexityResponse.md
|
|
51
54
|
docs/MigrationEstimationByComplexityResponse.md
|
|
@@ -65,6 +68,7 @@ docs/PartnerSummary.md
|
|
|
65
68
|
docs/PresignedUrl.md
|
|
66
69
|
docs/SchemaEstimationResult.md
|
|
67
70
|
docs/SharingSubject.md
|
|
71
|
+
docs/SizingApi.md
|
|
68
72
|
docs/SizingOverCommitRatio.md
|
|
69
73
|
docs/SizingResourceConsumption.md
|
|
70
74
|
docs/SizingResourceLimits.md
|
|
@@ -74,6 +78,8 @@ docs/SourceApi.md
|
|
|
74
78
|
docs/SourceCreate.md
|
|
75
79
|
docs/SourceInfra.md
|
|
76
80
|
docs/SourceUpdate.md
|
|
81
|
+
docs/StandaloneClusterRequirementsRequest.md
|
|
82
|
+
docs/StandaloneClusterRequirementsResponse.md
|
|
77
83
|
docs/Status.md
|
|
78
84
|
docs/UpdateInventory.md
|
|
79
85
|
docs/VCenter.md
|
|
@@ -88,6 +94,7 @@ src/apis/ImageApi.ts
|
|
|
88
94
|
src/apis/InfoApi.ts
|
|
89
95
|
src/apis/JobApi.ts
|
|
90
96
|
src/apis/PartnerApi.ts
|
|
97
|
+
src/apis/SizingApi.ts
|
|
91
98
|
src/apis/SourceApi.ts
|
|
92
99
|
src/apis/index.ts
|
|
93
100
|
src/index.ts
|
|
@@ -102,9 +109,11 @@ src/models/ClusterRequirementsRequest.ts
|
|
|
102
109
|
src/models/ClusterRequirementsResponse.ts
|
|
103
110
|
src/models/ClusterRequirementsStoredInput.ts
|
|
104
111
|
src/models/ClusterSizing.ts
|
|
112
|
+
src/models/ClusterUtilization.ts
|
|
105
113
|
src/models/ComplexityDiskScoreEntry.ts
|
|
106
114
|
src/models/ComplexityOSNameEntry.ts
|
|
107
115
|
src/models/ComplexityOSScoreEntry.ts
|
|
116
|
+
src/models/CpuOverCommitRatio.ts
|
|
108
117
|
src/models/Customer.ts
|
|
109
118
|
src/models/Datastore.ts
|
|
110
119
|
src/models/DiskSizeTierSummary.ts
|
|
@@ -129,6 +138,7 @@ src/models/Label.ts
|
|
|
129
138
|
src/models/Member.ts
|
|
130
139
|
src/models/MemberCreate.ts
|
|
131
140
|
src/models/MemberUpdate.ts
|
|
141
|
+
src/models/MemoryOverCommitRatio.ts
|
|
132
142
|
src/models/MigrationComplexityRequest.ts
|
|
133
143
|
src/models/MigrationComplexityResponse.ts
|
|
134
144
|
src/models/MigrationEstimationByComplexityResponse.ts
|
|
@@ -155,6 +165,8 @@ src/models/Source.ts
|
|
|
155
165
|
src/models/SourceCreate.ts
|
|
156
166
|
src/models/SourceInfra.ts
|
|
157
167
|
src/models/SourceUpdate.ts
|
|
168
|
+
src/models/StandaloneClusterRequirementsRequest.ts
|
|
169
|
+
src/models/StandaloneClusterRequirementsResponse.ts
|
|
158
170
|
src/models/Status.ts
|
|
159
171
|
src/models/UpdateInventory.ts
|
|
160
172
|
src/models/VCenter.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.13.
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.13.4-db4c7857bd8f
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -88,9 +88,9 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
88
88
|
*PartnerApi* | [**listPartners**](docs/PartnerApi.md#listpartners) | **GET** /api/v1/partners |
|
|
89
89
|
*PartnerApi* | [**removeCustomer**](docs/PartnerApi.md#removecustomer) | **DELETE** /api/v1/customers/{username} |
|
|
90
90
|
*PartnerApi* | [**updatePartnerRequest**](docs/PartnerApi.md#updatepartnerrequest) | **PUT** /api/v1/partners/requests/{id} |
|
|
91
|
+
*SizingApi* | [**calculateClusterRequirements**](docs/SizingApi.md#calculateclusterrequirements) | **POST** /api/v1/cluster-requirements |
|
|
91
92
|
*SourceApi* | [**createSource**](docs/SourceApi.md#createsource) | **POST** /api/v1/sources |
|
|
92
93
|
*SourceApi* | [**deleteSource**](docs/SourceApi.md#deletesource) | **DELETE** /api/v1/sources/{id} |
|
|
93
|
-
*SourceApi* | [**deleteSources**](docs/SourceApi.md#deletesources) | **DELETE** /api/v1/sources |
|
|
94
94
|
*SourceApi* | [**getSource**](docs/SourceApi.md#getsource) | **GET** /api/v1/sources/{id} |
|
|
95
95
|
*SourceApi* | [**listSources**](docs/SourceApi.md#listsources) | **GET** /api/v1/sources |
|
|
96
96
|
*SourceApi* | [**updateInventory**](docs/SourceApi.md#updateinventory) | **PUT** /api/v1/sources/{id}/inventory |
|
|
@@ -110,9 +110,11 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
110
110
|
- [ClusterRequirementsResponse](docs/ClusterRequirementsResponse.md)
|
|
111
111
|
- [ClusterRequirementsStoredInput](docs/ClusterRequirementsStoredInput.md)
|
|
112
112
|
- [ClusterSizing](docs/ClusterSizing.md)
|
|
113
|
+
- [ClusterUtilization](docs/ClusterUtilization.md)
|
|
113
114
|
- [ComplexityDiskScoreEntry](docs/ComplexityDiskScoreEntry.md)
|
|
114
115
|
- [ComplexityOSNameEntry](docs/ComplexityOSNameEntry.md)
|
|
115
116
|
- [ComplexityOSScoreEntry](docs/ComplexityOSScoreEntry.md)
|
|
117
|
+
- [CpuOverCommitRatio](docs/CpuOverCommitRatio.md)
|
|
116
118
|
- [Customer](docs/Customer.md)
|
|
117
119
|
- [Datastore](docs/Datastore.md)
|
|
118
120
|
- [DiskSizeTierSummary](docs/DiskSizeTierSummary.md)
|
|
@@ -137,6 +139,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
137
139
|
- [Member](docs/Member.md)
|
|
138
140
|
- [MemberCreate](docs/MemberCreate.md)
|
|
139
141
|
- [MemberUpdate](docs/MemberUpdate.md)
|
|
142
|
+
- [MemoryOverCommitRatio](docs/MemoryOverCommitRatio.md)
|
|
140
143
|
- [MigrationComplexityRequest](docs/MigrationComplexityRequest.md)
|
|
141
144
|
- [MigrationComplexityResponse](docs/MigrationComplexityResponse.md)
|
|
142
145
|
- [MigrationEstimationByComplexityResponse](docs/MigrationEstimationByComplexityResponse.md)
|
|
@@ -163,6 +166,8 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
163
166
|
- [SourceCreate](docs/SourceCreate.md)
|
|
164
167
|
- [SourceInfra](docs/SourceInfra.md)
|
|
165
168
|
- [SourceUpdate](docs/SourceUpdate.md)
|
|
169
|
+
- [StandaloneClusterRequirementsRequest](docs/StandaloneClusterRequirementsRequest.md)
|
|
170
|
+
- [StandaloneClusterRequirementsResponse](docs/StandaloneClusterRequirementsResponse.md)
|
|
166
171
|
- [Status](docs/Status.md)
|
|
167
172
|
- [UpdateInventory](docs/UpdateInventory.md)
|
|
168
173
|
- [VCenter](docs/VCenter.md)
|
|
@@ -182,7 +187,7 @@ and is automatically generated by the
|
|
|
182
187
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
183
188
|
|
|
184
189
|
- API version: `v1alpha1`
|
|
185
|
-
- Package version: `0.13.
|
|
190
|
+
- Package version: `0.13.4-db4c7857bd8f`
|
|
186
191
|
- Generator version: `7.23.0-SNAPSHOT`
|
|
187
192
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
188
193
|
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1alpha1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime.js';
|
|
13
|
+
import { type StandaloneClusterRequirementsRequest } from '../models/StandaloneClusterRequirementsRequest.js';
|
|
14
|
+
import { type StandaloneClusterRequirementsResponse } from '../models/StandaloneClusterRequirementsResponse.js';
|
|
15
|
+
export interface CalculateClusterRequirementsRequest {
|
|
16
|
+
standaloneClusterRequirementsRequest: StandaloneClusterRequirementsRequest;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* SizingApi - interface
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface SizingApiInterface
|
|
23
|
+
*/
|
|
24
|
+
export interface SizingApiInterface {
|
|
25
|
+
/**
|
|
26
|
+
* Creates request options for calculateClusterRequirements without sending the request
|
|
27
|
+
* @param {StandaloneClusterRequirementsRequest} standaloneClusterRequirementsRequest
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
* @memberof SizingApiInterface
|
|
30
|
+
*/
|
|
31
|
+
calculateClusterRequirementsRequestOpts(requestParameters: CalculateClusterRequirementsRequest): Promise<runtime.RequestOpts>;
|
|
32
|
+
/**
|
|
33
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
34
|
+
* @param {StandaloneClusterRequirementsRequest} standaloneClusterRequirementsRequest
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
* @memberof SizingApiInterface
|
|
38
|
+
*/
|
|
39
|
+
calculateClusterRequirementsRaw(requestParameters: CalculateClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StandaloneClusterRequirementsResponse>>;
|
|
40
|
+
/**
|
|
41
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
42
|
+
*/
|
|
43
|
+
calculateClusterRequirements(requestParameters: CalculateClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StandaloneClusterRequirementsResponse>;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
export declare class SizingApi extends runtime.BaseAPI implements SizingApiInterface {
|
|
49
|
+
/**
|
|
50
|
+
* Creates request options for calculateClusterRequirements without sending the request
|
|
51
|
+
*/
|
|
52
|
+
calculateClusterRequirementsRequestOpts(requestParameters: CalculateClusterRequirementsRequest): Promise<runtime.RequestOpts>;
|
|
53
|
+
/**
|
|
54
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
55
|
+
*/
|
|
56
|
+
calculateClusterRequirementsRaw(requestParameters: CalculateClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StandaloneClusterRequirementsResponse>>;
|
|
57
|
+
/**
|
|
58
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
59
|
+
*/
|
|
60
|
+
calculateClusterRequirements(requestParameters: CalculateClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StandaloneClusterRequirementsResponse>;
|
|
61
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenShift Migration Advisor API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1alpha1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.SizingApi = void 0;
|
|
26
|
+
const runtime = require("../runtime.js");
|
|
27
|
+
const StandaloneClusterRequirementsRequest_js_1 = require("../models/StandaloneClusterRequirementsRequest.js");
|
|
28
|
+
const StandaloneClusterRequirementsResponse_js_1 = require("../models/StandaloneClusterRequirementsResponse.js");
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
class SizingApi extends runtime.BaseAPI {
|
|
33
|
+
/**
|
|
34
|
+
* Creates request options for calculateClusterRequirements without sending the request
|
|
35
|
+
*/
|
|
36
|
+
calculateClusterRequirementsRequestOpts(requestParameters) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
if (requestParameters['standaloneClusterRequirementsRequest'] == null) {
|
|
39
|
+
throw new runtime.RequiredError('standaloneClusterRequirementsRequest', 'Required parameter "standaloneClusterRequirementsRequest" was null or undefined when calling calculateClusterRequirements().');
|
|
40
|
+
}
|
|
41
|
+
const queryParameters = {};
|
|
42
|
+
const headerParameters = {};
|
|
43
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
44
|
+
let urlPath = `/api/v1/cluster-requirements`;
|
|
45
|
+
return {
|
|
46
|
+
path: urlPath,
|
|
47
|
+
method: 'POST',
|
|
48
|
+
headers: headerParameters,
|
|
49
|
+
query: queryParameters,
|
|
50
|
+
body: (0, StandaloneClusterRequirementsRequest_js_1.StandaloneClusterRequirementsRequestToJSON)(requestParameters['standaloneClusterRequirementsRequest']),
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
56
|
+
*/
|
|
57
|
+
calculateClusterRequirementsRaw(requestParameters, initOverrides) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
const requestOptions = yield this.calculateClusterRequirementsRequestOpts(requestParameters);
|
|
60
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
61
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, StandaloneClusterRequirementsResponse_js_1.StandaloneClusterRequirementsResponseFromJSON)(jsonValue));
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
66
|
+
*/
|
|
67
|
+
calculateClusterRequirements(requestParameters, initOverrides) {
|
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
const response = yield this.calculateClusterRequirementsRaw(requestParameters, initOverrides);
|
|
70
|
+
return yield response.value();
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.SizingApi = SizingApi;
|
package/dist/apis/SourceApi.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ import * as runtime from '../runtime.js';
|
|
|
13
13
|
import { type Source } from '../models/Source.js';
|
|
14
14
|
import { type SourceCreate } from '../models/SourceCreate.js';
|
|
15
15
|
import { type SourceUpdate } from '../models/SourceUpdate.js';
|
|
16
|
-
import { type Status } from '../models/Status.js';
|
|
17
16
|
import { type UpdateInventory } from '../models/UpdateInventory.js';
|
|
18
17
|
export interface CreateSourceRequest {
|
|
19
18
|
sourceCreate: SourceCreate;
|
|
@@ -77,23 +76,6 @@ export interface SourceApiInterface {
|
|
|
77
76
|
* Delete a source
|
|
78
77
|
*/
|
|
79
78
|
deleteSource(requestParameters: DeleteSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
|
|
80
|
-
/**
|
|
81
|
-
* Creates request options for deleteSources without sending the request
|
|
82
|
-
* @throws {RequiredError}
|
|
83
|
-
* @memberof SourceApiInterface
|
|
84
|
-
*/
|
|
85
|
-
deleteSourcesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
86
|
-
/**
|
|
87
|
-
* delete a collection of sources
|
|
88
|
-
* @param {*} [options] Override http request option.
|
|
89
|
-
* @throws {RequiredError}
|
|
90
|
-
* @memberof SourceApiInterface
|
|
91
|
-
*/
|
|
92
|
-
deleteSourcesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
|
|
93
|
-
/**
|
|
94
|
-
* delete a collection of sources
|
|
95
|
-
*/
|
|
96
|
-
deleteSources(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
|
|
97
79
|
/**
|
|
98
80
|
* Creates request options for getSource without sending the request
|
|
99
81
|
* @param {string} id ID of the source
|
|
@@ -201,18 +183,6 @@ export declare class SourceApi extends runtime.BaseAPI implements SourceApiInter
|
|
|
201
183
|
* Delete a source
|
|
202
184
|
*/
|
|
203
185
|
deleteSource(requestParameters: DeleteSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
|
|
204
|
-
/**
|
|
205
|
-
* Creates request options for deleteSources without sending the request
|
|
206
|
-
*/
|
|
207
|
-
deleteSourcesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
208
|
-
/**
|
|
209
|
-
* delete a collection of sources
|
|
210
|
-
*/
|
|
211
|
-
deleteSourcesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
|
|
212
|
-
/**
|
|
213
|
-
* delete a collection of sources
|
|
214
|
-
*/
|
|
215
|
-
deleteSources(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
|
|
216
186
|
/**
|
|
217
187
|
* Creates request options for getSource without sending the request
|
|
218
188
|
*/
|
package/dist/apis/SourceApi.js
CHANGED
|
@@ -27,7 +27,6 @@ const runtime = require("../runtime.js");
|
|
|
27
27
|
const Source_js_1 = require("../models/Source.js");
|
|
28
28
|
const SourceCreate_js_1 = require("../models/SourceCreate.js");
|
|
29
29
|
const SourceUpdate_js_1 = require("../models/SourceUpdate.js");
|
|
30
|
-
const Status_js_1 = require("../models/Status.js");
|
|
31
30
|
const UpdateInventory_js_1 = require("../models/UpdateInventory.js");
|
|
32
31
|
/**
|
|
33
32
|
*
|
|
@@ -112,41 +111,6 @@ class SourceApi extends runtime.BaseAPI {
|
|
|
112
111
|
return yield response.value();
|
|
113
112
|
});
|
|
114
113
|
}
|
|
115
|
-
/**
|
|
116
|
-
* Creates request options for deleteSources without sending the request
|
|
117
|
-
*/
|
|
118
|
-
deleteSourcesRequestOpts() {
|
|
119
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
120
|
-
const queryParameters = {};
|
|
121
|
-
const headerParameters = {};
|
|
122
|
-
let urlPath = `/api/v1/sources`;
|
|
123
|
-
return {
|
|
124
|
-
path: urlPath,
|
|
125
|
-
method: 'DELETE',
|
|
126
|
-
headers: headerParameters,
|
|
127
|
-
query: queryParameters,
|
|
128
|
-
};
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* delete a collection of sources
|
|
133
|
-
*/
|
|
134
|
-
deleteSourcesRaw(initOverrides) {
|
|
135
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
-
const requestOptions = yield this.deleteSourcesRequestOpts();
|
|
137
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
138
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, Status_js_1.StatusFromJSON)(jsonValue));
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* delete a collection of sources
|
|
143
|
-
*/
|
|
144
|
-
deleteSources(initOverrides) {
|
|
145
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
-
const response = yield this.deleteSourcesRaw(initOverrides);
|
|
147
|
-
return yield response.value();
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
114
|
/**
|
|
151
115
|
* Creates request options for getSource without sending the request
|
|
152
116
|
*/
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -23,4 +23,5 @@ __exportStar(require("./ImageApi.js"), exports);
|
|
|
23
23
|
__exportStar(require("./InfoApi.js"), exports);
|
|
24
24
|
__exportStar(require("./JobApi.js"), exports);
|
|
25
25
|
__exportStar(require("./PartnerApi.js"), exports);
|
|
26
|
+
__exportStar(require("./SizingApi.js"), exports);
|
|
26
27
|
__exportStar(require("./SourceApi.js"), exports);
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1alpha1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime.js';
|
|
13
|
+
import { type StandaloneClusterRequirementsRequest } from '../models/StandaloneClusterRequirementsRequest.js';
|
|
14
|
+
import { type StandaloneClusterRequirementsResponse } from '../models/StandaloneClusterRequirementsResponse.js';
|
|
15
|
+
export interface CalculateClusterRequirementsRequest {
|
|
16
|
+
standaloneClusterRequirementsRequest: StandaloneClusterRequirementsRequest;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* SizingApi - interface
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface SizingApiInterface
|
|
23
|
+
*/
|
|
24
|
+
export interface SizingApiInterface {
|
|
25
|
+
/**
|
|
26
|
+
* Creates request options for calculateClusterRequirements without sending the request
|
|
27
|
+
* @param {StandaloneClusterRequirementsRequest} standaloneClusterRequirementsRequest
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
* @memberof SizingApiInterface
|
|
30
|
+
*/
|
|
31
|
+
calculateClusterRequirementsRequestOpts(requestParameters: CalculateClusterRequirementsRequest): Promise<runtime.RequestOpts>;
|
|
32
|
+
/**
|
|
33
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
34
|
+
* @param {StandaloneClusterRequirementsRequest} standaloneClusterRequirementsRequest
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
* @memberof SizingApiInterface
|
|
38
|
+
*/
|
|
39
|
+
calculateClusterRequirementsRaw(requestParameters: CalculateClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StandaloneClusterRequirementsResponse>>;
|
|
40
|
+
/**
|
|
41
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
42
|
+
*/
|
|
43
|
+
calculateClusterRequirements(requestParameters: CalculateClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StandaloneClusterRequirementsResponse>;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
export declare class SizingApi extends runtime.BaseAPI implements SizingApiInterface {
|
|
49
|
+
/**
|
|
50
|
+
* Creates request options for calculateClusterRequirements without sending the request
|
|
51
|
+
*/
|
|
52
|
+
calculateClusterRequirementsRequestOpts(requestParameters: CalculateClusterRequirementsRequest): Promise<runtime.RequestOpts>;
|
|
53
|
+
/**
|
|
54
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
55
|
+
*/
|
|
56
|
+
calculateClusterRequirementsRaw(requestParameters: CalculateClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StandaloneClusterRequirementsResponse>>;
|
|
57
|
+
/**
|
|
58
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
59
|
+
*/
|
|
60
|
+
calculateClusterRequirements(requestParameters: CalculateClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StandaloneClusterRequirementsResponse>;
|
|
61
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenShift Migration Advisor API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1alpha1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime.js';
|
|
24
|
+
import { StandaloneClusterRequirementsRequestToJSON, } from '../models/StandaloneClusterRequirementsRequest.js';
|
|
25
|
+
import { StandaloneClusterRequirementsResponseFromJSON, } from '../models/StandaloneClusterRequirementsResponse.js';
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export class SizingApi extends runtime.BaseAPI {
|
|
30
|
+
/**
|
|
31
|
+
* Creates request options for calculateClusterRequirements without sending the request
|
|
32
|
+
*/
|
|
33
|
+
calculateClusterRequirementsRequestOpts(requestParameters) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
if (requestParameters['standaloneClusterRequirementsRequest'] == null) {
|
|
36
|
+
throw new runtime.RequiredError('standaloneClusterRequirementsRequest', 'Required parameter "standaloneClusterRequirementsRequest" was null or undefined when calling calculateClusterRequirements().');
|
|
37
|
+
}
|
|
38
|
+
const queryParameters = {};
|
|
39
|
+
const headerParameters = {};
|
|
40
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
41
|
+
let urlPath = `/api/v1/cluster-requirements`;
|
|
42
|
+
return {
|
|
43
|
+
path: urlPath,
|
|
44
|
+
method: 'POST',
|
|
45
|
+
headers: headerParameters,
|
|
46
|
+
query: queryParameters,
|
|
47
|
+
body: StandaloneClusterRequirementsRequestToJSON(requestParameters['standaloneClusterRequirementsRequest']),
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
53
|
+
*/
|
|
54
|
+
calculateClusterRequirementsRaw(requestParameters, initOverrides) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
const requestOptions = yield this.calculateClusterRequirementsRequestOpts(requestParameters);
|
|
57
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
58
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => StandaloneClusterRequirementsResponseFromJSON(jsonValue));
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
|
|
63
|
+
*/
|
|
64
|
+
calculateClusterRequirements(requestParameters, initOverrides) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
const response = yield this.calculateClusterRequirementsRaw(requestParameters, initOverrides);
|
|
67
|
+
return yield response.value();
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -13,7 +13,6 @@ import * as runtime from '../runtime.js';
|
|
|
13
13
|
import { type Source } from '../models/Source.js';
|
|
14
14
|
import { type SourceCreate } from '../models/SourceCreate.js';
|
|
15
15
|
import { type SourceUpdate } from '../models/SourceUpdate.js';
|
|
16
|
-
import { type Status } from '../models/Status.js';
|
|
17
16
|
import { type UpdateInventory } from '../models/UpdateInventory.js';
|
|
18
17
|
export interface CreateSourceRequest {
|
|
19
18
|
sourceCreate: SourceCreate;
|
|
@@ -77,23 +76,6 @@ export interface SourceApiInterface {
|
|
|
77
76
|
* Delete a source
|
|
78
77
|
*/
|
|
79
78
|
deleteSource(requestParameters: DeleteSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
|
|
80
|
-
/**
|
|
81
|
-
* Creates request options for deleteSources without sending the request
|
|
82
|
-
* @throws {RequiredError}
|
|
83
|
-
* @memberof SourceApiInterface
|
|
84
|
-
*/
|
|
85
|
-
deleteSourcesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
86
|
-
/**
|
|
87
|
-
* delete a collection of sources
|
|
88
|
-
* @param {*} [options] Override http request option.
|
|
89
|
-
* @throws {RequiredError}
|
|
90
|
-
* @memberof SourceApiInterface
|
|
91
|
-
*/
|
|
92
|
-
deleteSourcesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
|
|
93
|
-
/**
|
|
94
|
-
* delete a collection of sources
|
|
95
|
-
*/
|
|
96
|
-
deleteSources(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
|
|
97
79
|
/**
|
|
98
80
|
* Creates request options for getSource without sending the request
|
|
99
81
|
* @param {string} id ID of the source
|
|
@@ -201,18 +183,6 @@ export declare class SourceApi extends runtime.BaseAPI implements SourceApiInter
|
|
|
201
183
|
* Delete a source
|
|
202
184
|
*/
|
|
203
185
|
deleteSource(requestParameters: DeleteSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
|
|
204
|
-
/**
|
|
205
|
-
* Creates request options for deleteSources without sending the request
|
|
206
|
-
*/
|
|
207
|
-
deleteSourcesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
208
|
-
/**
|
|
209
|
-
* delete a collection of sources
|
|
210
|
-
*/
|
|
211
|
-
deleteSourcesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
|
|
212
|
-
/**
|
|
213
|
-
* delete a collection of sources
|
|
214
|
-
*/
|
|
215
|
-
deleteSources(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
|
|
216
186
|
/**
|
|
217
187
|
* Creates request options for getSource without sending the request
|
|
218
188
|
*/
|
|
@@ -24,7 +24,6 @@ import * as runtime from '../runtime.js';
|
|
|
24
24
|
import { SourceFromJSON, } from '../models/Source.js';
|
|
25
25
|
import { SourceCreateToJSON, } from '../models/SourceCreate.js';
|
|
26
26
|
import { SourceUpdateToJSON, } from '../models/SourceUpdate.js';
|
|
27
|
-
import { StatusFromJSON, } from '../models/Status.js';
|
|
28
27
|
import { UpdateInventoryToJSON, } from '../models/UpdateInventory.js';
|
|
29
28
|
/**
|
|
30
29
|
*
|
|
@@ -109,41 +108,6 @@ export class SourceApi extends runtime.BaseAPI {
|
|
|
109
108
|
return yield response.value();
|
|
110
109
|
});
|
|
111
110
|
}
|
|
112
|
-
/**
|
|
113
|
-
* Creates request options for deleteSources without sending the request
|
|
114
|
-
*/
|
|
115
|
-
deleteSourcesRequestOpts() {
|
|
116
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
-
const queryParameters = {};
|
|
118
|
-
const headerParameters = {};
|
|
119
|
-
let urlPath = `/api/v1/sources`;
|
|
120
|
-
return {
|
|
121
|
-
path: urlPath,
|
|
122
|
-
method: 'DELETE',
|
|
123
|
-
headers: headerParameters,
|
|
124
|
-
query: queryParameters,
|
|
125
|
-
};
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* delete a collection of sources
|
|
130
|
-
*/
|
|
131
|
-
deleteSourcesRaw(initOverrides) {
|
|
132
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
-
const requestOptions = yield this.deleteSourcesRequestOpts();
|
|
134
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
135
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => StatusFromJSON(jsonValue));
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* delete a collection of sources
|
|
140
|
-
*/
|
|
141
|
-
deleteSources(initOverrides) {
|
|
142
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
-
const response = yield this.deleteSourcesRaw(initOverrides);
|
|
144
|
-
return yield response.value();
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
111
|
/**
|
|
148
112
|
* Creates request options for getSource without sending the request
|
|
149
113
|
*/
|
package/dist/esm/apis/index.d.ts
CHANGED