@openshift-migration-advisor/agent-sdk 0.33.1-693656015cf9 → 0.33.1-d086ee06be70

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.
Files changed (72) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +9 -2
  3. package/dist/apis/RecommendationsApi.d.ts +64 -0
  4. package/dist/apis/RecommendationsApi.js +74 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/esm/apis/RecommendationsApi.d.ts +64 -0
  8. package/dist/esm/apis/RecommendationsApi.js +70 -0
  9. package/dist/esm/apis/index.d.ts +1 -0
  10. package/dist/esm/apis/index.js +1 -0
  11. package/dist/esm/models/ComplexityDiskScoreEntry.d.ts +39 -0
  12. package/dist/esm/models/ComplexityDiskScoreEntry.js +51 -0
  13. package/dist/esm/models/ComplexityOSNameEntry.d.ts +40 -0
  14. package/dist/esm/models/ComplexityOSNameEntry.js +51 -0
  15. package/dist/esm/models/ComplexityOSScoreEntry.d.ts +35 -0
  16. package/dist/esm/models/ComplexityOSScoreEntry.js +47 -0
  17. package/dist/esm/models/Datastore.d.ts +9 -0
  18. package/dist/esm/models/Datastore.js +5 -0
  19. package/dist/esm/models/MigrationComplexityRequest.d.ts +30 -0
  20. package/dist/esm/models/MigrationComplexityRequest.js +41 -0
  21. package/dist/esm/models/MigrationComplexityResponse.d.ts +58 -0
  22. package/dist/esm/models/MigrationComplexityResponse.js +62 -0
  23. package/dist/esm/models/StorageArray.d.ts +42 -0
  24. package/dist/esm/models/StorageArray.js +47 -0
  25. package/dist/esm/models/VirtualMachineDatastore.d.ts +9 -0
  26. package/dist/esm/models/VirtualMachineDatastore.js +5 -0
  27. package/dist/esm/models/index.d.ts +6 -0
  28. package/dist/esm/models/index.js +6 -0
  29. package/dist/esm/runtime.d.ts +3 -1
  30. package/dist/esm/runtime.js +1 -1
  31. package/dist/models/ComplexityDiskScoreEntry.d.ts +39 -0
  32. package/dist/models/ComplexityDiskScoreEntry.js +58 -0
  33. package/dist/models/ComplexityOSNameEntry.d.ts +40 -0
  34. package/dist/models/ComplexityOSNameEntry.js +58 -0
  35. package/dist/models/ComplexityOSScoreEntry.d.ts +35 -0
  36. package/dist/models/ComplexityOSScoreEntry.js +54 -0
  37. package/dist/models/Datastore.d.ts +9 -0
  38. package/dist/models/Datastore.js +5 -0
  39. package/dist/models/MigrationComplexityRequest.d.ts +30 -0
  40. package/dist/models/MigrationComplexityRequest.js +48 -0
  41. package/dist/models/MigrationComplexityResponse.d.ts +58 -0
  42. package/dist/models/MigrationComplexityResponse.js +69 -0
  43. package/dist/models/StorageArray.d.ts +42 -0
  44. package/dist/models/StorageArray.js +54 -0
  45. package/dist/models/VirtualMachineDatastore.d.ts +9 -0
  46. package/dist/models/VirtualMachineDatastore.js +5 -0
  47. package/dist/models/index.d.ts +6 -0
  48. package/dist/models/index.js +6 -0
  49. package/dist/runtime.d.ts +3 -1
  50. package/dist/runtime.js +1 -1
  51. package/docs/ComplexityDiskScoreEntry.md +39 -0
  52. package/docs/ComplexityOSNameEntry.md +39 -0
  53. package/docs/ComplexityOSScoreEntry.md +37 -0
  54. package/docs/Datastore.md +4 -0
  55. package/docs/MigrationComplexityRequest.md +35 -0
  56. package/docs/MigrationComplexityResponse.md +43 -0
  57. package/docs/RecommendationsApi.md +79 -0
  58. package/docs/StorageArray.md +41 -0
  59. package/docs/VirtualMachineDatastore.md +4 -0
  60. package/package.json +1 -1
  61. package/src/apis/RecommendationsApi.ts +117 -0
  62. package/src/apis/index.ts +1 -0
  63. package/src/models/ComplexityDiskScoreEntry.ts +79 -0
  64. package/src/models/ComplexityOSNameEntry.ts +80 -0
  65. package/src/models/ComplexityOSScoreEntry.ts +72 -0
  66. package/src/models/Datastore.ts +19 -0
  67. package/src/models/MigrationComplexityRequest.ts +63 -0
  68. package/src/models/MigrationComplexityResponse.ts +119 -0
  69. package/src/models/StorageArray.ts +81 -0
  70. package/src/models/VirtualMachineDatastore.ts +20 -0
  71. package/src/models/index.ts +6 -0
  72. package/src/runtime.ts +8 -1
@@ -36,6 +36,9 @@ docs/CollectorApi.md
36
36
  docs/CollectorStatus.md
37
37
  docs/ComparisonDiffEntry.md
38
38
  docs/ComparisonDiffPage.md
39
+ docs/ComplexityDiskScoreEntry.md
40
+ docs/ComplexityOSNameEntry.md
41
+ docs/ComplexityOSScoreEntry.md
39
42
  docs/CreateGroupRequest.md
40
43
  docs/CredentialStatus.md
41
44
  docs/CredentialsApi.md
@@ -74,6 +77,8 @@ docs/InventoriesApi.md
74
77
  docs/Inventory.md
75
78
  docs/InventoryData.md
76
79
  docs/IssuesBreakdown.md
80
+ docs/MigrationComplexityRequest.md
81
+ docs/MigrationComplexityResponse.md
77
82
  docs/MigrationIssue.md
78
83
  docs/Network.md
79
84
  docs/OperationCapability.md
@@ -84,12 +89,14 @@ docs/Process.md
84
89
  docs/Product.md
85
90
  docs/RDMBacking.md
86
91
  docs/RDMHostLun.md
92
+ docs/RecommendationsApi.md
87
93
  docs/RightsizingApi.md
88
94
  docs/RightsizingClusterResponse.md
89
95
  docs/RightsizingClusterUtilization.md
90
96
  docs/StartForecasterRequest.md
91
97
  docs/StartInspectionRequest.md
92
98
  docs/StopForecasterPair202Response.md
99
+ docs/StorageArray.md
93
100
  docs/StorageIoConfiguration.md
94
101
  docs/SuccessfulImageUpgrade.md
95
102
  docs/UpdateGroupRequest.md
@@ -130,6 +137,7 @@ src/apis/GroupsApi.ts
130
137
  src/apis/ImageUpgradeApi.ts
131
138
  src/apis/InspectorApi.ts
132
139
  src/apis/InventoriesApi.ts
140
+ src/apis/RecommendationsApi.ts
133
141
  src/apis/RightsizingApi.ts
134
142
  src/apis/VersionApi.ts
135
143
  src/apis/VirtualMachinesApi.ts
@@ -164,6 +172,9 @@ src/models/CollectionListResponse.ts
164
172
  src/models/CollectorStatus.ts
165
173
  src/models/ComparisonDiffEntry.ts
166
174
  src/models/ComparisonDiffPage.ts
175
+ src/models/ComplexityDiskScoreEntry.ts
176
+ src/models/ComplexityOSNameEntry.ts
177
+ src/models/ComplexityOSScoreEntry.ts
167
178
  src/models/CreateGroupRequest.ts
168
179
  src/models/CredentialStatus.ts
169
180
  src/models/Datastore.ts
@@ -196,6 +207,8 @@ src/models/InspectorStatus.ts
196
207
  src/models/Inventory.ts
197
208
  src/models/InventoryData.ts
198
209
  src/models/IssuesBreakdown.ts
210
+ src/models/MigrationComplexityRequest.ts
211
+ src/models/MigrationComplexityResponse.ts
199
212
  src/models/MigrationIssue.ts
200
213
  src/models/Network.ts
201
214
  src/models/OperationCapability.ts
@@ -211,6 +224,7 @@ src/models/RightsizingClusterUtilization.ts
211
224
  src/models/StartForecasterRequest.ts
212
225
  src/models/StartInspectionRequest.ts
213
226
  src/models/StopForecasterPair202Response.ts
227
+ src/models/StorageArray.ts
214
228
  src/models/StorageIoConfiguration.ts
215
229
  src/models/SuccessfulImageUpgrade.ts
216
230
  src/models/UpdateGroupRequest.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/agent-sdk@0.33.1-693656015cf9
1
+ # @openshift-migration-advisor/agent-sdk@0.33.1-d086ee06be70
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -92,6 +92,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
92
92
  *InspectorApi* | [**stopInspection**](docs/InspectorApi.md#stopinspection) | **DELETE** /inspector | Stop inspector
93
93
  *InventoriesApi* | [**getInventory**](docs/InventoriesApi.md#getinventory) | **GET** /collections/{id}/inventory | Get collected inventory for a collection
94
94
  *InventoriesApi* | [**getLatestInventory**](docs/InventoriesApi.md#getlatestinventory) | **GET** /inventory | Get inventory from the latest collection
95
+ *RecommendationsApi* | [**calculateMigrationComplexity**](docs/RecommendationsApi.md#calculatemigrationcomplexity) | **POST** /complexity-estimation |
95
96
  *RightsizingApi* | [**getClusterUtilization**](docs/RightsizingApi.md#getclusterutilization) | **GET** /collections/{id}/clusters/{clusterId}/utilization | Get latest cluster utilization by cluster ID
96
97
  *RightsizingApi* | [**getLatestVMUtilization**](docs/RightsizingApi.md#getlatestvmutilization) | **GET** /virtualmachines/{vmId}/utilization | Get utilization breakdown for a specific VM from the latest collection
97
98
  *VersionApi* | [**getVersion**](docs/VersionApi.md#getversion) | **GET** /version | Get agent version information
@@ -142,6 +143,9 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
142
143
  - [CollectorStatus](docs/CollectorStatus.md)
143
144
  - [ComparisonDiffEntry](docs/ComparisonDiffEntry.md)
144
145
  - [ComparisonDiffPage](docs/ComparisonDiffPage.md)
146
+ - [ComplexityDiskScoreEntry](docs/ComplexityDiskScoreEntry.md)
147
+ - [ComplexityOSNameEntry](docs/ComplexityOSNameEntry.md)
148
+ - [ComplexityOSScoreEntry](docs/ComplexityOSScoreEntry.md)
145
149
  - [CreateGroupRequest](docs/CreateGroupRequest.md)
146
150
  - [CredentialStatus](docs/CredentialStatus.md)
147
151
  - [Datastore](docs/Datastore.md)
@@ -174,6 +178,8 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
174
178
  - [Inventory](docs/Inventory.md)
175
179
  - [InventoryData](docs/InventoryData.md)
176
180
  - [IssuesBreakdown](docs/IssuesBreakdown.md)
181
+ - [MigrationComplexityRequest](docs/MigrationComplexityRequest.md)
182
+ - [MigrationComplexityResponse](docs/MigrationComplexityResponse.md)
177
183
  - [MigrationIssue](docs/MigrationIssue.md)
178
184
  - [Network](docs/Network.md)
179
185
  - [OperationCapability](docs/OperationCapability.md)
@@ -189,6 +195,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
189
195
  - [StartForecasterRequest](docs/StartForecasterRequest.md)
190
196
  - [StartInspectionRequest](docs/StartInspectionRequest.md)
191
197
  - [StopForecasterPair202Response](docs/StopForecasterPair202Response.md)
198
+ - [StorageArray](docs/StorageArray.md)
192
199
  - [StorageIoConfiguration](docs/StorageIoConfiguration.md)
193
200
  - [SuccessfulImageUpgrade](docs/SuccessfulImageUpgrade.md)
194
201
  - [UpdateGroupRequest](docs/UpdateGroupRequest.md)
@@ -228,7 +235,7 @@ and is automatically generated by the
228
235
  [OpenAPI Generator](https://openapi-generator.tech) project:
229
236
 
230
237
  - API version: `v2`
231
- - Package version: `0.33.1-693656015cf9`
238
+ - Package version: `0.33.1-d086ee06be70`
232
239
  - Generator version: `7.29.0-SNAPSHOT`
233
240
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
234
241
 
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
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 MigrationComplexityRequest } from '../models/MigrationComplexityRequest.js';
14
+ import { type MigrationComplexityResponse } from '../models/MigrationComplexityResponse.js';
15
+ export interface CalculateMigrationComplexityRequest {
16
+ /**
17
+ *
18
+ */
19
+ migrationComplexityRequest: MigrationComplexityRequest;
20
+ }
21
+ /**
22
+ * RecommendationsApi - interface
23
+ *
24
+ * @export
25
+ * @interface RecommendationsApiInterface
26
+ */
27
+ export interface RecommendationsApiInterface {
28
+ /**
29
+ * Creates request options for calculateMigrationComplexity without sending the request
30
+ * @param {MigrationComplexityRequest} migrationComplexityRequest
31
+ * @throws {RequiredError}
32
+ * @memberof RecommendationsApiInterface
33
+ */
34
+ calculateMigrationComplexityRequestOpts(requestParameters: CalculateMigrationComplexityRequest): Promise<runtime.RequestOpts>;
35
+ /**
36
+ * Calculate migration complexity estimation for the latest collection
37
+ * @param {MigrationComplexityRequest} migrationComplexityRequest
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ * @memberof RecommendationsApiInterface
41
+ */
42
+ calculateMigrationComplexityRaw(requestParameters: CalculateMigrationComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationComplexityResponse>>;
43
+ /**
44
+ * Calculate migration complexity estimation for the latest collection
45
+ */
46
+ calculateMigrationComplexity(requestParameters: CalculateMigrationComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationComplexityResponse>;
47
+ }
48
+ /**
49
+ *
50
+ */
51
+ export declare class RecommendationsApi extends runtime.BaseAPI implements RecommendationsApiInterface {
52
+ /**
53
+ * Creates request options for calculateMigrationComplexity without sending the request
54
+ */
55
+ calculateMigrationComplexityRequestOpts(requestParameters: CalculateMigrationComplexityRequest): Promise<runtime.RequestOpts>;
56
+ /**
57
+ * Calculate migration complexity estimation for the latest collection
58
+ */
59
+ calculateMigrationComplexityRaw(requestParameters: CalculateMigrationComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationComplexityResponse>>;
60
+ /**
61
+ * Calculate migration complexity estimation for the latest collection
62
+ */
63
+ calculateMigrationComplexity(requestParameters: CalculateMigrationComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationComplexityResponse>;
64
+ }
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v2
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.RecommendationsApi = void 0;
26
+ const runtime = require("../runtime.js");
27
+ const MigrationComplexityRequest_js_1 = require("../models/MigrationComplexityRequest.js");
28
+ const MigrationComplexityResponse_js_1 = require("../models/MigrationComplexityResponse.js");
29
+ /**
30
+ *
31
+ */
32
+ class RecommendationsApi extends runtime.BaseAPI {
33
+ /**
34
+ * Creates request options for calculateMigrationComplexity without sending the request
35
+ */
36
+ calculateMigrationComplexityRequestOpts(requestParameters) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ if (requestParameters['migrationComplexityRequest'] == null) {
39
+ throw new runtime.RequiredError('migrationComplexityRequest', 'Required parameter "migrationComplexityRequest" was null or undefined when calling calculateMigrationComplexity().');
40
+ }
41
+ const queryParameters = {};
42
+ const headerParameters = {};
43
+ headerParameters['Content-Type'] = 'application/json';
44
+ let urlPath = `/complexity-estimation`;
45
+ return {
46
+ path: urlPath,
47
+ method: 'POST',
48
+ headers: headerParameters,
49
+ query: queryParameters,
50
+ body: (0, MigrationComplexityRequest_js_1.MigrationComplexityRequestToJSON)(requestParameters['migrationComplexityRequest']),
51
+ };
52
+ });
53
+ }
54
+ /**
55
+ * Calculate migration complexity estimation for the latest collection
56
+ */
57
+ calculateMigrationComplexityRaw(requestParameters, initOverrides) {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ const requestOptions = yield this.calculateMigrationComplexityRequestOpts(requestParameters);
60
+ const response = yield this.request(requestOptions, initOverrides);
61
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, MigrationComplexityResponse_js_1.MigrationComplexityResponseFromJSON)(jsonValue));
62
+ });
63
+ }
64
+ /**
65
+ * Calculate migration complexity estimation for the latest collection
66
+ */
67
+ calculateMigrationComplexity(requestParameters, initOverrides) {
68
+ return __awaiter(this, void 0, void 0, function* () {
69
+ const response = yield this.calculateMigrationComplexityRaw(requestParameters, initOverrides);
70
+ return yield response.value();
71
+ });
72
+ }
73
+ }
74
+ exports.RecommendationsApi = RecommendationsApi;
@@ -9,6 +9,7 @@ export * from './GroupsApi.js';
9
9
  export * from './ImageUpgradeApi.js';
10
10
  export * from './InspectorApi.js';
11
11
  export * from './InventoriesApi.js';
12
+ export * from './RecommendationsApi.js';
12
13
  export * from './RightsizingApi.js';
13
14
  export * from './VersionApi.js';
14
15
  export * from './VirtualMachinesApi.js';
@@ -27,6 +27,7 @@ __exportStar(require("./GroupsApi.js"), exports);
27
27
  __exportStar(require("./ImageUpgradeApi.js"), exports);
28
28
  __exportStar(require("./InspectorApi.js"), exports);
29
29
  __exportStar(require("./InventoriesApi.js"), exports);
30
+ __exportStar(require("./RecommendationsApi.js"), exports);
30
31
  __exportStar(require("./RightsizingApi.js"), exports);
31
32
  __exportStar(require("./VersionApi.js"), exports);
32
33
  __exportStar(require("./VirtualMachinesApi.js"), exports);
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
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 MigrationComplexityRequest } from '../models/MigrationComplexityRequest.js';
14
+ import { type MigrationComplexityResponse } from '../models/MigrationComplexityResponse.js';
15
+ export interface CalculateMigrationComplexityRequest {
16
+ /**
17
+ *
18
+ */
19
+ migrationComplexityRequest: MigrationComplexityRequest;
20
+ }
21
+ /**
22
+ * RecommendationsApi - interface
23
+ *
24
+ * @export
25
+ * @interface RecommendationsApiInterface
26
+ */
27
+ export interface RecommendationsApiInterface {
28
+ /**
29
+ * Creates request options for calculateMigrationComplexity without sending the request
30
+ * @param {MigrationComplexityRequest} migrationComplexityRequest
31
+ * @throws {RequiredError}
32
+ * @memberof RecommendationsApiInterface
33
+ */
34
+ calculateMigrationComplexityRequestOpts(requestParameters: CalculateMigrationComplexityRequest): Promise<runtime.RequestOpts>;
35
+ /**
36
+ * Calculate migration complexity estimation for the latest collection
37
+ * @param {MigrationComplexityRequest} migrationComplexityRequest
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ * @memberof RecommendationsApiInterface
41
+ */
42
+ calculateMigrationComplexityRaw(requestParameters: CalculateMigrationComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationComplexityResponse>>;
43
+ /**
44
+ * Calculate migration complexity estimation for the latest collection
45
+ */
46
+ calculateMigrationComplexity(requestParameters: CalculateMigrationComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationComplexityResponse>;
47
+ }
48
+ /**
49
+ *
50
+ */
51
+ export declare class RecommendationsApi extends runtime.BaseAPI implements RecommendationsApiInterface {
52
+ /**
53
+ * Creates request options for calculateMigrationComplexity without sending the request
54
+ */
55
+ calculateMigrationComplexityRequestOpts(requestParameters: CalculateMigrationComplexityRequest): Promise<runtime.RequestOpts>;
56
+ /**
57
+ * Calculate migration complexity estimation for the latest collection
58
+ */
59
+ calculateMigrationComplexityRaw(requestParameters: CalculateMigrationComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationComplexityResponse>>;
60
+ /**
61
+ * Calculate migration complexity estimation for the latest collection
62
+ */
63
+ calculateMigrationComplexity(requestParameters: CalculateMigrationComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationComplexityResponse>;
64
+ }
@@ -0,0 +1,70 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
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 { MigrationComplexityRequestToJSON, } from '../models/MigrationComplexityRequest.js';
25
+ import { MigrationComplexityResponseFromJSON, } from '../models/MigrationComplexityResponse.js';
26
+ /**
27
+ *
28
+ */
29
+ export class RecommendationsApi extends runtime.BaseAPI {
30
+ /**
31
+ * Creates request options for calculateMigrationComplexity without sending the request
32
+ */
33
+ calculateMigrationComplexityRequestOpts(requestParameters) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ if (requestParameters['migrationComplexityRequest'] == null) {
36
+ throw new runtime.RequiredError('migrationComplexityRequest', 'Required parameter "migrationComplexityRequest" was null or undefined when calling calculateMigrationComplexity().');
37
+ }
38
+ const queryParameters = {};
39
+ const headerParameters = {};
40
+ headerParameters['Content-Type'] = 'application/json';
41
+ let urlPath = `/complexity-estimation`;
42
+ return {
43
+ path: urlPath,
44
+ method: 'POST',
45
+ headers: headerParameters,
46
+ query: queryParameters,
47
+ body: MigrationComplexityRequestToJSON(requestParameters['migrationComplexityRequest']),
48
+ };
49
+ });
50
+ }
51
+ /**
52
+ * Calculate migration complexity estimation for the latest collection
53
+ */
54
+ calculateMigrationComplexityRaw(requestParameters, initOverrides) {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ const requestOptions = yield this.calculateMigrationComplexityRequestOpts(requestParameters);
57
+ const response = yield this.request(requestOptions, initOverrides);
58
+ return new runtime.JSONApiResponse(response, (jsonValue) => MigrationComplexityResponseFromJSON(jsonValue));
59
+ });
60
+ }
61
+ /**
62
+ * Calculate migration complexity estimation for the latest collection
63
+ */
64
+ calculateMigrationComplexity(requestParameters, initOverrides) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ const response = yield this.calculateMigrationComplexityRaw(requestParameters, initOverrides);
67
+ return yield response.value();
68
+ });
69
+ }
70
+ }
@@ -9,6 +9,7 @@ export * from './GroupsApi.js';
9
9
  export * from './ImageUpgradeApi.js';
10
10
  export * from './InspectorApi.js';
11
11
  export * from './InventoriesApi.js';
12
+ export * from './RecommendationsApi.js';
12
13
  export * from './RightsizingApi.js';
13
14
  export * from './VersionApi.js';
14
15
  export * from './VirtualMachinesApi.js';
@@ -11,6 +11,7 @@ export * from './GroupsApi.js';
11
11
  export * from './ImageUpgradeApi.js';
12
12
  export * from './InspectorApi.js';
13
13
  export * from './InventoriesApi.js';
14
+ export * from './RecommendationsApi.js';
14
15
  export * from './RightsizingApi.js';
15
16
  export * from './VersionApi.js';
16
17
  export * from './VirtualMachinesApi.js';
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * One entry in the disk complexity breakdown
14
+ * @export
15
+ * @interface ComplexityDiskScoreEntry
16
+ */
17
+ export interface ComplexityDiskScoreEntry {
18
+ /**
19
+ * Complexity score from 1 to 4, where 1 is the least complex disk footprint and 4 is the most complex. Score 1: <=10 TB provisioned; score 2: <=20 TB; score 3: <=50 TB; score 4: >50 TB.
20
+ *
21
+ */
22
+ score: number;
23
+ /**
24
+ * Number of VMs at this complexity score
25
+ */
26
+ vmCount: number;
27
+ /**
28
+ * Total provisioned storage in TB for VMs at this score
29
+ */
30
+ totalSizeTB: number;
31
+ }
32
+ /**
33
+ * Check if a given object implements the ComplexityDiskScoreEntry interface.
34
+ */
35
+ export declare function instanceOfComplexityDiskScoreEntry(value: object): value is ComplexityDiskScoreEntry;
36
+ export declare function ComplexityDiskScoreEntryFromJSON(json: any): ComplexityDiskScoreEntry;
37
+ export declare function ComplexityDiskScoreEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComplexityDiskScoreEntry;
38
+ export declare function ComplexityDiskScoreEntryToJSON(json: any): ComplexityDiskScoreEntry;
39
+ export declare function ComplexityDiskScoreEntryToJSONTyped(value?: ComplexityDiskScoreEntry | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ComplexityDiskScoreEntry interface.
16
+ */
17
+ export function instanceOfComplexityDiskScoreEntry(value) {
18
+ if (!('score' in value) || value['score'] === undefined)
19
+ return false;
20
+ if (!('vmCount' in value) || value['vmCount'] === undefined)
21
+ return false;
22
+ if (!('totalSizeTB' in value) || value['totalSizeTB'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function ComplexityDiskScoreEntryFromJSON(json) {
27
+ return ComplexityDiskScoreEntryFromJSONTyped(json, false);
28
+ }
29
+ export function ComplexityDiskScoreEntryFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'score': json['score'],
35
+ 'vmCount': json['vmCount'],
36
+ 'totalSizeTB': json['totalSizeTB'],
37
+ };
38
+ }
39
+ export function ComplexityDiskScoreEntryToJSON(json) {
40
+ return ComplexityDiskScoreEntryToJSONTyped(json, false);
41
+ }
42
+ export function ComplexityDiskScoreEntryToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'score': value['score'],
48
+ 'vmCount': value['vmCount'],
49
+ 'totalSizeTB': value['totalSizeTB'],
50
+ };
51
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * One entry in the per-OS-name complexity breakdown.
14
+ * @export
15
+ * @interface ComplexityOSNameEntry
16
+ */
17
+ export interface ComplexityOSNameEntry {
18
+ /**
19
+ * The OS name exactly as it appears in vms.osInfo (e.g. "Red Hat Enterprise Linux 9 (64-bit)").
20
+ *
21
+ */
22
+ osName: string;
23
+ /**
24
+ * Complexity score assigned by ClassifyOS. 0 = unknown, 1 = least complex, 4 = most complex.
25
+ *
26
+ */
27
+ score: number;
28
+ /**
29
+ * Number of VMs running this OS.
30
+ */
31
+ vmCount: number;
32
+ }
33
+ /**
34
+ * Check if a given object implements the ComplexityOSNameEntry interface.
35
+ */
36
+ export declare function instanceOfComplexityOSNameEntry(value: object): value is ComplexityOSNameEntry;
37
+ export declare function ComplexityOSNameEntryFromJSON(json: any): ComplexityOSNameEntry;
38
+ export declare function ComplexityOSNameEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComplexityOSNameEntry;
39
+ export declare function ComplexityOSNameEntryToJSON(json: any): ComplexityOSNameEntry;
40
+ export declare function ComplexityOSNameEntryToJSONTyped(value?: ComplexityOSNameEntry | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ComplexityOSNameEntry interface.
16
+ */
17
+ export function instanceOfComplexityOSNameEntry(value) {
18
+ if (!('osName' in value) || value['osName'] === undefined)
19
+ return false;
20
+ if (!('score' in value) || value['score'] === undefined)
21
+ return false;
22
+ if (!('vmCount' in value) || value['vmCount'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function ComplexityOSNameEntryFromJSON(json) {
27
+ return ComplexityOSNameEntryFromJSONTyped(json, false);
28
+ }
29
+ export function ComplexityOSNameEntryFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'osName': json['osName'],
35
+ 'score': json['score'],
36
+ 'vmCount': json['vmCount'],
37
+ };
38
+ }
39
+ export function ComplexityOSNameEntryToJSON(json) {
40
+ return ComplexityOSNameEntryToJSONTyped(json, false);
41
+ }
42
+ export function ComplexityOSNameEntryToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'osName': value['osName'],
48
+ 'score': value['score'],
49
+ 'vmCount': value['vmCount'],
50
+ };
51
+ }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * One entry in the OS complexity breakdown
14
+ * @export
15
+ * @interface ComplexityOSScoreEntry
16
+ */
17
+ export interface ComplexityOSScoreEntry {
18
+ /**
19
+ * Complexity score from 0 to 4, where 1 indicates the least complex OS to migrate and 0 indicates an OS with unknown complexity.
20
+ *
21
+ */
22
+ score: number;
23
+ /**
24
+ * Number of VMs at this complexity score
25
+ */
26
+ vmCount: number;
27
+ }
28
+ /**
29
+ * Check if a given object implements the ComplexityOSScoreEntry interface.
30
+ */
31
+ export declare function instanceOfComplexityOSScoreEntry(value: object): value is ComplexityOSScoreEntry;
32
+ export declare function ComplexityOSScoreEntryFromJSON(json: any): ComplexityOSScoreEntry;
33
+ export declare function ComplexityOSScoreEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComplexityOSScoreEntry;
34
+ export declare function ComplexityOSScoreEntryToJSON(json: any): ComplexityOSScoreEntry;
35
+ export declare function ComplexityOSScoreEntryToJSONTyped(value?: ComplexityOSScoreEntry | null, ignoreDiscriminator?: boolean): any;