@openshift-migration-advisor/planner-sdk 0.9.0 → 0.10.0-fa4e0ff47672

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 (94) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/README.md +30 -11
  3. package/dist/apis/AccountApi.d.ts +390 -0
  4. package/dist/apis/AccountApi.js +454 -0
  5. package/dist/apis/AssessmentApi.d.ts +38 -1
  6. package/dist/apis/AssessmentApi.js +44 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/apis/AccountApi.d.ts +390 -0
  10. package/dist/esm/apis/AccountApi.js +450 -0
  11. package/dist/esm/apis/AssessmentApi.d.ts +38 -1
  12. package/dist/esm/apis/AssessmentApi.js +45 -1
  13. package/dist/esm/apis/index.d.ts +1 -0
  14. package/dist/esm/apis/index.js +1 -0
  15. package/dist/esm/models/ComplexityOSNameEntry.d.ts +1 -1
  16. package/dist/esm/models/ComplexityOSScoreEntry.d.ts +1 -1
  17. package/dist/esm/models/EstimationContext.d.ts +40 -0
  18. package/dist/esm/models/EstimationContext.js +43 -0
  19. package/dist/esm/models/Group.d.ts +82 -0
  20. package/dist/esm/models/Group.js +76 -0
  21. package/dist/esm/models/GroupCreate.d.ts +64 -0
  22. package/dist/esm/models/GroupCreate.js +66 -0
  23. package/dist/esm/models/GroupUpdate.d.ts +50 -0
  24. package/dist/esm/models/GroupUpdate.js +47 -0
  25. package/dist/esm/models/Identity.d.ts +60 -0
  26. package/dist/esm/models/Identity.js +60 -0
  27. package/dist/esm/models/Member.d.ts +56 -0
  28. package/dist/esm/models/Member.js +57 -0
  29. package/dist/esm/models/MemberCreate.d.ts +38 -0
  30. package/dist/esm/models/MemberCreate.js +47 -0
  31. package/dist/esm/models/MemberUpdate.d.ts +32 -0
  32. package/dist/esm/models/MemberUpdate.js +41 -0
  33. package/dist/esm/models/MigrationComplexityResponse.d.ts +2 -2
  34. package/dist/esm/models/MigrationEstimationByComplexityResponse.d.ts +50 -0
  35. package/dist/esm/models/MigrationEstimationByComplexityResponse.js +51 -0
  36. package/dist/esm/models/OsDiskEstimationEntry.d.ts +53 -0
  37. package/dist/esm/models/OsDiskEstimationEntry.js +55 -0
  38. package/dist/esm/models/index.d.ts +10 -0
  39. package/dist/esm/models/index.js +10 -0
  40. package/dist/models/ComplexityOSNameEntry.d.ts +1 -1
  41. package/dist/models/ComplexityOSScoreEntry.d.ts +1 -1
  42. package/dist/models/EstimationContext.d.ts +40 -0
  43. package/dist/models/EstimationContext.js +50 -0
  44. package/dist/models/Group.d.ts +82 -0
  45. package/dist/models/Group.js +84 -0
  46. package/dist/models/GroupCreate.d.ts +64 -0
  47. package/dist/models/GroupCreate.js +74 -0
  48. package/dist/models/GroupUpdate.d.ts +50 -0
  49. package/dist/models/GroupUpdate.js +54 -0
  50. package/dist/models/Identity.d.ts +60 -0
  51. package/dist/models/Identity.js +68 -0
  52. package/dist/models/Member.d.ts +56 -0
  53. package/dist/models/Member.js +64 -0
  54. package/dist/models/MemberCreate.d.ts +38 -0
  55. package/dist/models/MemberCreate.js +54 -0
  56. package/dist/models/MemberUpdate.d.ts +32 -0
  57. package/dist/models/MemberUpdate.js +48 -0
  58. package/dist/models/MigrationComplexityResponse.d.ts +2 -2
  59. package/dist/models/MigrationEstimationByComplexityResponse.d.ts +50 -0
  60. package/dist/models/MigrationEstimationByComplexityResponse.js +58 -0
  61. package/dist/models/OsDiskEstimationEntry.d.ts +53 -0
  62. package/dist/models/OsDiskEstimationEntry.js +62 -0
  63. package/dist/models/index.d.ts +10 -0
  64. package/dist/models/index.js +10 -0
  65. package/docs/AccountApi.md +734 -0
  66. package/docs/AssessmentApi.md +76 -0
  67. package/docs/EstimationContext.md +36 -0
  68. package/docs/Group.md +48 -0
  69. package/docs/GroupCreate.md +42 -0
  70. package/docs/GroupUpdate.md +40 -0
  71. package/docs/Identity.md +40 -0
  72. package/docs/Member.md +42 -0
  73. package/docs/MemberCreate.md +36 -0
  74. package/docs/MemberUpdate.md +34 -0
  75. package/docs/MigrationEstimationByComplexityResponse.md +38 -0
  76. package/docs/OsDiskEstimationEntry.md +40 -0
  77. package/package.json +1 -1
  78. package/src/apis/AccountApi.ts +834 -0
  79. package/src/apis/AssessmentApi.ts +87 -0
  80. package/src/apis/index.ts +1 -0
  81. package/src/models/ComplexityOSNameEntry.ts +1 -1
  82. package/src/models/ComplexityOSScoreEntry.ts +1 -1
  83. package/src/models/EstimationContext.ts +73 -0
  84. package/src/models/Group.ts +139 -0
  85. package/src/models/GroupCreate.ts +113 -0
  86. package/src/models/GroupUpdate.ts +89 -0
  87. package/src/models/Identity.ts +104 -0
  88. package/src/models/Member.ts +101 -0
  89. package/src/models/MemberCreate.ts +75 -0
  90. package/src/models/MemberUpdate.ts +65 -0
  91. package/src/models/MigrationComplexityResponse.ts +2 -2
  92. package/src/models/MigrationEstimationByComplexityResponse.ts +98 -0
  93. package/src/models/OsDiskEstimationEntry.ts +100 -0
  94. package/src/models/index.ts +10 -0
@@ -7,6 +7,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
7
7
  | [**calculateAssessmentClusterRequirements**](AssessmentApi.md#calculateassessmentclusterrequirements) | **POST** /api/v1/assessments/{id}/cluster-requirements | |
8
8
  | [**calculateMigrationComplexity**](AssessmentApi.md#calculatemigrationcomplexity) | **POST** /api/v1/assessments/{id}/complexity-estimation | |
9
9
  | [**calculateMigrationEstimation**](AssessmentApi.md#calculatemigrationestimation) | **POST** /api/v1/assessments/{id}/migration-estimation | |
10
+ | [**calculateMigrationEstimationByComplexity**](AssessmentApi.md#calculatemigrationestimationbycomplexity) | **POST** /api/v1/assessments/{id}/migration-estimation/by-complexity | |
10
11
  | [**createAssessment**](AssessmentApi.md#createassessment) | **POST** /api/v1/assessments | |
11
12
  | [**deleteAssessment**](AssessmentApi.md#deleteassessment) | **DELETE** /api/v1/assessments/{id} | |
12
13
  | [**getAssessment**](AssessmentApi.md#getassessment) | **GET** /api/v1/assessments/{id} | |
@@ -241,6 +242,81 @@ No authorization required
241
242
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
242
243
 
243
244
 
245
+ ## calculateMigrationEstimationByComplexity
246
+
247
+ > MigrationEstimationByComplexityResponse calculateMigrationEstimationByComplexity(id, migrationEstimationRequest)
248
+
249
+
250
+
251
+ Calculate migration time estimation broken down by combined OS+Disk complexity
252
+
253
+ ### Example
254
+
255
+ ```ts
256
+ import {
257
+ Configuration,
258
+ AssessmentApi,
259
+ } from '@openshift-migration-advisor/planner-sdk';
260
+ import type { CalculateMigrationEstimationByComplexityRequest } from '@openshift-migration-advisor/planner-sdk';
261
+
262
+ async function example() {
263
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
264
+ const api = new AssessmentApi();
265
+
266
+ const body = {
267
+ // string | ID of the assessment
268
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
269
+ // MigrationEstimationRequest
270
+ migrationEstimationRequest: ...,
271
+ } satisfies CalculateMigrationEstimationByComplexityRequest;
272
+
273
+ try {
274
+ const data = await api.calculateMigrationEstimationByComplexity(body);
275
+ console.log(data);
276
+ } catch (error) {
277
+ console.error(error);
278
+ }
279
+ }
280
+
281
+ // Run the test
282
+ example().catch(console.error);
283
+ ```
284
+
285
+ ### Parameters
286
+
287
+
288
+ | Name | Type | Description | Notes |
289
+ |------------- | ------------- | ------------- | -------------|
290
+ | **id** | `string` | ID of the assessment | [Defaults to `undefined`] |
291
+ | **migrationEstimationRequest** | [MigrationEstimationRequest](MigrationEstimationRequest.md) | | |
292
+
293
+ ### Return type
294
+
295
+ [**MigrationEstimationByComplexityResponse**](MigrationEstimationByComplexityResponse.md)
296
+
297
+ ### Authorization
298
+
299
+ No authorization required
300
+
301
+ ### HTTP request headers
302
+
303
+ - **Content-Type**: `application/json`
304
+ - **Accept**: `application/json`
305
+
306
+
307
+ ### HTTP response details
308
+ | Status code | Description | Response headers |
309
+ |-------------|-------------|------------------|
310
+ | **200** | Migration estimation by complexity calculation successful | - |
311
+ | **400** | Bad Request | - |
312
+ | **401** | Unauthorized | - |
313
+ | **403** | Forbidden | - |
314
+ | **404** | Assessment not found | - |
315
+ | **500** | Internal error | - |
316
+
317
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
318
+
319
+
244
320
  ## createAssessment
245
321
 
246
322
  > Assessment createAssessment(assessmentForm)
@@ -0,0 +1,36 @@
1
+
2
+ # EstimationContext
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `schemas` | Array<string>
10
+ `params` | { [key: string]: number; }
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { EstimationContext } from '@openshift-migration-advisor/planner-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "schemas": null,
20
+ "params": null,
21
+ } satisfies EstimationContext
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as EstimationContext
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
package/docs/Group.md ADDED
@@ -0,0 +1,48 @@
1
+
2
+ # Group
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `name` | string
11
+ `description` | string
12
+ `kind` | string
13
+ `icon` | string
14
+ `company` | string
15
+ `createdAt` | Date
16
+ `updatedAt` | Date
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { Group } from '@openshift-migration-advisor/planner-sdk'
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "id": null,
26
+ "name": null,
27
+ "description": null,
28
+ "kind": null,
29
+ "icon": null,
30
+ "company": null,
31
+ "createdAt": null,
32
+ "updatedAt": null,
33
+ } satisfies Group
34
+
35
+ console.log(example)
36
+
37
+ // Convert the instance to a JSON string
38
+ const exampleJSON: string = JSON.stringify(example)
39
+ console.log(exampleJSON)
40
+
41
+ // Parse the JSON string back to an object
42
+ const exampleParsed = JSON.parse(exampleJSON) as Group
43
+ console.log(exampleParsed)
44
+ ```
45
+
46
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
47
+
48
+
@@ -0,0 +1,42 @@
1
+
2
+ # GroupCreate
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `description` | string
11
+ `kind` | string
12
+ `icon` | string
13
+ `company` | string
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { GroupCreate } from '@openshift-migration-advisor/planner-sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "name": null,
23
+ "description": null,
24
+ "kind": null,
25
+ "icon": null,
26
+ "company": null,
27
+ } satisfies GroupCreate
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as GroupCreate
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -0,0 +1,40 @@
1
+
2
+ # GroupUpdate
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `description` | string
11
+ `icon` | string
12
+ `company` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { GroupUpdate } from '@openshift-migration-advisor/planner-sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "name": null,
22
+ "description": null,
23
+ "icon": null,
24
+ "company": null,
25
+ } satisfies GroupUpdate
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as GroupUpdate
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,40 @@
1
+
2
+ # Identity
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `username` | string
10
+ `kind` | string
11
+ `groupId` | string
12
+ `partnerId` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { Identity } from '@openshift-migration-advisor/planner-sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "username": null,
22
+ "kind": null,
23
+ "groupId": null,
24
+ "partnerId": null,
25
+ } satisfies Identity
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as Identity
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
package/docs/Member.md ADDED
@@ -0,0 +1,42 @@
1
+
2
+ # Member
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `username` | string
10
+ `email` | string
11
+ `groupId` | string
12
+ `createdAt` | Date
13
+ `updatedAt` | Date
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { Member } from '@openshift-migration-advisor/planner-sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "username": null,
23
+ "email": null,
24
+ "groupId": null,
25
+ "createdAt": null,
26
+ "updatedAt": null,
27
+ } satisfies Member
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as Member
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -0,0 +1,36 @@
1
+
2
+ # MemberCreate
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `username` | string
10
+ `email` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { MemberCreate } from '@openshift-migration-advisor/planner-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "username": null,
20
+ "email": null,
21
+ } satisfies MemberCreate
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as MemberCreate
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,34 @@
1
+
2
+ # MemberUpdate
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `email` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { MemberUpdate } from '@openshift-migration-advisor/planner-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "email": null,
19
+ } satisfies MemberUpdate
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as MemberUpdate
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,38 @@
1
+
2
+ # MigrationEstimationByComplexityResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `complexityByOsDisk` | [Array<OsDiskEstimationEntry>](OsDiskEstimationEntry.md)
10
+ `complexityMatrix` | { [key: string]: { [key: string]: number; }; }
11
+ `estimationContext` | [EstimationContext](EstimationContext.md)
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { MigrationEstimationByComplexityResponse } from '@openshift-migration-advisor/planner-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "complexityByOsDisk": null,
21
+ "complexityMatrix": null,
22
+ "estimationContext": null,
23
+ } satisfies MigrationEstimationByComplexityResponse
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as MigrationEstimationByComplexityResponse
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,40 @@
1
+
2
+ # OsDiskEstimationEntry
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `score` | number
10
+ `vmCount` | number
11
+ `totalDiskSizeTB` | number
12
+ `estimation` | [{ [key: string]: SchemaEstimationResult; }](SchemaEstimationResult.md)
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { OsDiskEstimationEntry } from '@openshift-migration-advisor/planner-sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "score": null,
22
+ "vmCount": null,
23
+ "totalDiskSizeTB": null,
24
+ "estimation": null,
25
+ } satisfies OsDiskEstimationEntry
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as OsDiskEstimationEntry
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/planner-sdk",
3
- "version": "0.9.0",
3
+ "version": "0.10.0-fa4e0ff47672",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/planner-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {