@openshift-migration-advisor/planner-sdk 0.9.0 → 0.10.0-783d8b3a2dc4

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 (103) hide show
  1. package/.openapi-generator/FILES +24 -0
  2. package/README.md +31 -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 +42 -13
  6. package/dist/apis/AssessmentApi.js +45 -1
  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 +42 -13
  12. package/dist/esm/apis/AssessmentApi.js +46 -2
  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/MigrationEstimationRequest.d.ts +1 -1
  37. package/dist/esm/models/MigrationEstimationResponse.d.ts +43 -0
  38. package/dist/esm/models/MigrationEstimationResponse.js +50 -0
  39. package/dist/esm/models/OsDiskEstimationEntry.d.ts +53 -0
  40. package/dist/esm/models/OsDiskEstimationEntry.js +55 -0
  41. package/dist/esm/models/index.d.ts +11 -0
  42. package/dist/esm/models/index.js +11 -0
  43. package/dist/models/ComplexityOSNameEntry.d.ts +1 -1
  44. package/dist/models/ComplexityOSScoreEntry.d.ts +1 -1
  45. package/dist/models/EstimationContext.d.ts +40 -0
  46. package/dist/models/EstimationContext.js +50 -0
  47. package/dist/models/Group.d.ts +82 -0
  48. package/dist/models/Group.js +84 -0
  49. package/dist/models/GroupCreate.d.ts +64 -0
  50. package/dist/models/GroupCreate.js +74 -0
  51. package/dist/models/GroupUpdate.d.ts +50 -0
  52. package/dist/models/GroupUpdate.js +54 -0
  53. package/dist/models/Identity.d.ts +60 -0
  54. package/dist/models/Identity.js +68 -0
  55. package/dist/models/Member.d.ts +56 -0
  56. package/dist/models/Member.js +64 -0
  57. package/dist/models/MemberCreate.d.ts +38 -0
  58. package/dist/models/MemberCreate.js +54 -0
  59. package/dist/models/MemberUpdate.d.ts +32 -0
  60. package/dist/models/MemberUpdate.js +48 -0
  61. package/dist/models/MigrationComplexityResponse.d.ts +2 -2
  62. package/dist/models/MigrationEstimationByComplexityResponse.d.ts +50 -0
  63. package/dist/models/MigrationEstimationByComplexityResponse.js +58 -0
  64. package/dist/models/MigrationEstimationRequest.d.ts +1 -1
  65. package/dist/models/MigrationEstimationResponse.d.ts +43 -0
  66. package/dist/models/MigrationEstimationResponse.js +57 -0
  67. package/dist/models/OsDiskEstimationEntry.d.ts +53 -0
  68. package/dist/models/OsDiskEstimationEntry.js +62 -0
  69. package/dist/models/index.d.ts +11 -0
  70. package/dist/models/index.js +11 -0
  71. package/docs/AccountApi.md +734 -0
  72. package/docs/AssessmentApi.md +78 -2
  73. package/docs/EstimationContext.md +36 -0
  74. package/docs/Group.md +48 -0
  75. package/docs/GroupCreate.md +42 -0
  76. package/docs/GroupUpdate.md +40 -0
  77. package/docs/Identity.md +40 -0
  78. package/docs/Member.md +42 -0
  79. package/docs/MemberCreate.md +36 -0
  80. package/docs/MemberUpdate.md +34 -0
  81. package/docs/MigrationEstimationByComplexityResponse.md +38 -0
  82. package/docs/MigrationEstimationResponse.md +37 -0
  83. package/docs/OsDiskEstimationEntry.md +40 -0
  84. package/package.json +1 -1
  85. package/src/apis/AccountApi.ts +834 -0
  86. package/src/apis/AssessmentApi.ts +95 -8
  87. package/src/apis/index.ts +1 -0
  88. package/src/models/ComplexityOSNameEntry.ts +1 -1
  89. package/src/models/ComplexityOSScoreEntry.ts +1 -1
  90. package/src/models/EstimationContext.ts +73 -0
  91. package/src/models/Group.ts +139 -0
  92. package/src/models/GroupCreate.ts +113 -0
  93. package/src/models/GroupUpdate.ts +89 -0
  94. package/src/models/Identity.ts +104 -0
  95. package/src/models/Member.ts +101 -0
  96. package/src/models/MemberCreate.ts +75 -0
  97. package/src/models/MemberUpdate.ts +65 -0
  98. package/src/models/MigrationComplexityResponse.ts +2 -2
  99. package/src/models/MigrationEstimationByComplexityResponse.ts +98 -0
  100. package/src/models/MigrationEstimationRequest.ts +1 -1
  101. package/src/models/MigrationEstimationResponse.ts +91 -0
  102. package/src/models/OsDiskEstimationEntry.ts +100 -0
  103. package/src/models/index.ts +11 -0
@@ -0,0 +1,104 @@
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: undefined
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
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface Identity
20
+ */
21
+ export interface Identity {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Identity
26
+ */
27
+ username: string;
28
+ /**
29
+ *
30
+ * @type {IdentityKindEnum}
31
+ * @memberof Identity
32
+ */
33
+ kind: IdentityKindEnum;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof Identity
38
+ */
39
+ groupId?: string | null;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof Identity
44
+ */
45
+ partnerId?: string | null;
46
+ }
47
+
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const IdentityKindEnum = {
53
+ Partner: 'partner',
54
+ Customer: 'customer',
55
+ Regular: 'regular',
56
+ Admin: 'admin'
57
+ } as const;
58
+ export type IdentityKindEnum = typeof IdentityKindEnum[keyof typeof IdentityKindEnum];
59
+
60
+
61
+ /**
62
+ * Check if a given object implements the Identity interface.
63
+ */
64
+ export function instanceOfIdentity(value: object): value is Identity {
65
+ if (!('username' in value) || value['username'] === undefined) return false;
66
+ if (!('kind' in value) || value['kind'] === undefined) return false;
67
+ return true;
68
+ }
69
+
70
+ export function IdentityFromJSON(json: any): Identity {
71
+ return IdentityFromJSONTyped(json, false);
72
+ }
73
+
74
+ export function IdentityFromJSONTyped(json: any, ignoreDiscriminator: boolean): Identity {
75
+ if (json == null) {
76
+ return json;
77
+ }
78
+ return {
79
+
80
+ 'username': json['username'],
81
+ 'kind': json['kind'],
82
+ 'groupId': json['groupId'] == null ? undefined : json['groupId'],
83
+ 'partnerId': json['partnerId'] == null ? undefined : json['partnerId'],
84
+ };
85
+ }
86
+
87
+ export function IdentityToJSON(json: any): Identity {
88
+ return IdentityToJSONTyped(json, false);
89
+ }
90
+
91
+ export function IdentityToJSONTyped(value?: Identity | null, ignoreDiscriminator: boolean = false): any {
92
+ if (value == null) {
93
+ return value;
94
+ }
95
+
96
+ return {
97
+
98
+ 'username': value['username'],
99
+ 'kind': value['kind'],
100
+ 'groupId': value['groupId'],
101
+ 'partnerId': value['partnerId'],
102
+ };
103
+ }
104
+
@@ -0,0 +1,101 @@
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: undefined
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
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface Member
20
+ */
21
+ export interface Member {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Member
26
+ */
27
+ username: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Member
32
+ */
33
+ email: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof Member
38
+ */
39
+ groupId: string;
40
+ /**
41
+ *
42
+ * @type {Date}
43
+ * @memberof Member
44
+ */
45
+ createdAt: Date;
46
+ /**
47
+ *
48
+ * @type {Date}
49
+ * @memberof Member
50
+ */
51
+ updatedAt?: Date;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the Member interface.
56
+ */
57
+ export function instanceOfMember(value: object): value is Member {
58
+ if (!('username' in value) || value['username'] === undefined) return false;
59
+ if (!('email' in value) || value['email'] === undefined) return false;
60
+ if (!('groupId' in value) || value['groupId'] === undefined) return false;
61
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function MemberFromJSON(json: any): Member {
66
+ return MemberFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function MemberFromJSONTyped(json: any, ignoreDiscriminator: boolean): Member {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'username': json['username'],
76
+ 'email': json['email'],
77
+ 'groupId': json['groupId'],
78
+ 'createdAt': (new Date(json['createdAt'])),
79
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
80
+ };
81
+ }
82
+
83
+ export function MemberToJSON(json: any): Member {
84
+ return MemberToJSONTyped(json, false);
85
+ }
86
+
87
+ export function MemberToJSONTyped(value?: Member | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'username': value['username'],
95
+ 'email': value['email'],
96
+ 'groupId': value['groupId'],
97
+ 'createdAt': value['createdAt'].toISOString(),
98
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
99
+ };
100
+ }
101
+
@@ -0,0 +1,75 @@
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: undefined
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
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface MemberCreate
20
+ */
21
+ export interface MemberCreate {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof MemberCreate
26
+ */
27
+ username: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof MemberCreate
32
+ */
33
+ email: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the MemberCreate interface.
38
+ */
39
+ export function instanceOfMemberCreate(value: object): value is MemberCreate {
40
+ if (!('username' in value) || value['username'] === undefined) return false;
41
+ if (!('email' in value) || value['email'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function MemberCreateFromJSON(json: any): MemberCreate {
46
+ return MemberCreateFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function MemberCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemberCreate {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'username': json['username'],
56
+ 'email': json['email'],
57
+ };
58
+ }
59
+
60
+ export function MemberCreateToJSON(json: any): MemberCreate {
61
+ return MemberCreateToJSONTyped(json, false);
62
+ }
63
+
64
+ export function MemberCreateToJSONTyped(value?: MemberCreate | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'username': value['username'],
72
+ 'email': value['email'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,65 @@
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: undefined
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
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface MemberUpdate
20
+ */
21
+ export interface MemberUpdate {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof MemberUpdate
26
+ */
27
+ email?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the MemberUpdate interface.
32
+ */
33
+ export function instanceOfMemberUpdate(value: object): value is MemberUpdate {
34
+ return true;
35
+ }
36
+
37
+ export function MemberUpdateFromJSON(json: any): MemberUpdate {
38
+ return MemberUpdateFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function MemberUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemberUpdate {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'email': json['email'] == null ? undefined : json['email'],
48
+ };
49
+ }
50
+
51
+ export function MemberUpdateToJSON(json: any): MemberUpdate {
52
+ return MemberUpdateToJSONTyped(json, false);
53
+ }
54
+
55
+ export function MemberUpdateToJSONTyped(value?: MemberUpdate | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'email': value['email'],
63
+ };
64
+ }
65
+
@@ -49,7 +49,7 @@ export interface MigrationComplexityResponse {
49
49
  */
50
50
  complexityByDisk: Array<ComplexityDiskScoreEntry>;
51
51
  /**
52
- * OS complexity scores, one entry per score level (0-4). Score 1 indicates the least complex OS to migrate; score 0 indicates an OS that could not be classified. All five score levels are always present.
52
+ * OS complexity scores, one entry per score level (0-4). Score 1 indicates the least complex OS to migrate; score 0 indicates an OS with unknown complexity. All five score levels are always present.
53
53
  *
54
54
  * @type {Array<ComplexityOSScoreEntry>}
55
55
  * @memberof MigrationComplexityResponse
@@ -63,7 +63,7 @@ export interface MigrationComplexityResponse {
63
63
  */
64
64
  diskSizeRatings: { [key: string]: number; };
65
65
  /**
66
- * Per-OS-name score for every OS found in this cluster's inventory. Keys are the OS name strings exactly as they appear in vms.osInfo; values are the numeric complexity score assigned by ClassifyOS (0 = unclassified, 1-4 = increasing complexity). The map contains one entry per distinct OS name in the cluster, regardless of how many VMs run it.
66
+ * Per-OS-name score for every OS found in this cluster's inventory. Keys are the OS name strings exactly as they appear in vms.osInfo; values are the numeric complexity score assigned by ClassifyOS (0 = unknown, 1-4 = increasing complexity). The map contains one entry per distinct OS name in the cluster, regardless of how many VMs run it.
67
67
  *
68
68
  * @type {{ [key: string]: number; }}
69
69
  * @memberof MigrationComplexityResponse
@@ -0,0 +1,98 @@
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: undefined
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
+ import { mapValues } from '../runtime.js';
16
+ import type { OsDiskEstimationEntry } from './OsDiskEstimationEntry.js';
17
+ import {
18
+ OsDiskEstimationEntryFromJSON,
19
+ OsDiskEstimationEntryFromJSONTyped,
20
+ OsDiskEstimationEntryToJSON,
21
+ OsDiskEstimationEntryToJSONTyped,
22
+ } from './OsDiskEstimationEntry.js';
23
+ import type { EstimationContext } from './EstimationContext.js';
24
+ import {
25
+ EstimationContextFromJSON,
26
+ EstimationContextFromJSONTyped,
27
+ EstimationContextToJSON,
28
+ EstimationContextToJSONTyped,
29
+ } from './EstimationContext.js';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface MigrationEstimationByComplexityResponse
35
+ */
36
+ export interface MigrationEstimationByComplexityResponse {
37
+ /**
38
+ * Combined OS+Disk complexity distribution with per-bucket estimation. All 5 score levels (0-4) always present.
39
+ * @type {Array<OsDiskEstimationEntry>}
40
+ * @memberof MigrationEstimationByComplexityResponse
41
+ */
42
+ complexityByOsDisk: Array<OsDiskEstimationEntry>;
43
+ /**
44
+ * Decision matrix: outer keys are OS scores (0-4), inner keys are disk scores (1-4), values are combined scores.
45
+ * @type {{ [key: string]: { [key: string]: number; }; }}
46
+ * @memberof MigrationEstimationByComplexityResponse
47
+ */
48
+ complexityMatrix: { [key: string]: { [key: string]: number; }; };
49
+ /**
50
+ *
51
+ * @type {EstimationContext}
52
+ * @memberof MigrationEstimationByComplexityResponse
53
+ */
54
+ estimationContext?: EstimationContext;
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the MigrationEstimationByComplexityResponse interface.
59
+ */
60
+ export function instanceOfMigrationEstimationByComplexityResponse(value: object): value is MigrationEstimationByComplexityResponse {
61
+ if (!('complexityByOsDisk' in value) || value['complexityByOsDisk'] === undefined) return false;
62
+ if (!('complexityMatrix' in value) || value['complexityMatrix'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function MigrationEstimationByComplexityResponseFromJSON(json: any): MigrationEstimationByComplexityResponse {
67
+ return MigrationEstimationByComplexityResponseFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function MigrationEstimationByComplexityResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationEstimationByComplexityResponse {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'complexityByOsDisk': ((json['complexityByOsDisk'] as Array<any>).map(OsDiskEstimationEntryFromJSON)),
77
+ 'complexityMatrix': json['complexityMatrix'],
78
+ 'estimationContext': json['estimationContext'] == null ? undefined : EstimationContextFromJSON(json['estimationContext']),
79
+ };
80
+ }
81
+
82
+ export function MigrationEstimationByComplexityResponseToJSON(json: any): MigrationEstimationByComplexityResponse {
83
+ return MigrationEstimationByComplexityResponseToJSONTyped(json, false);
84
+ }
85
+
86
+ export function MigrationEstimationByComplexityResponseToJSONTyped(value?: MigrationEstimationByComplexityResponse | null, ignoreDiscriminator: boolean = false): any {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+
91
+ return {
92
+
93
+ 'complexityByOsDisk': ((value['complexityByOsDisk'] as Array<any>).map(OsDiskEstimationEntryToJSON)),
94
+ 'complexityMatrix': value['complexityMatrix'],
95
+ 'estimationContext': EstimationContextToJSON(value['estimationContext']),
96
+ };
97
+ }
98
+
@@ -33,7 +33,7 @@ export interface MigrationEstimationRequest {
33
33
  */
34
34
  estimationSchema?: Array<string>;
35
35
  /**
36
- * Optional calculator parameter overrides. Keys must match known calculator param names (e.g. "transfer_rate_mbps", "work_hours_per_day", "troubleshoot_mins_per_vm", "post_migration_engineers"). User-supplied values take precedence over both defaults and inventory-derived values. Unknown keys are silently ignored.
36
+ * Optional calculator parameter overrides. Keys must match known calculator param names (e.g. "transfer_rate_mbps", "work_hours_per_day", "troubleshoot_mins_per_vm", "post_migration_engineers"). User-supplied values take precedence over both defaults and inventory-derived values. Unknown keys are rejected with HTTP 400.
37
37
  *
38
38
  * @type {{ [key: string]: any; }}
39
39
  * @memberof MigrationEstimationRequest
@@ -0,0 +1,91 @@
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: undefined
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
+ import { mapValues } from '../runtime.js';
16
+ import type { SchemaEstimationResult } from './SchemaEstimationResult.js';
17
+ import {
18
+ SchemaEstimationResultFromJSON,
19
+ SchemaEstimationResultFromJSONTyped,
20
+ SchemaEstimationResultToJSON,
21
+ SchemaEstimationResultToJSONTyped,
22
+ } from './SchemaEstimationResult.js';
23
+ import type { EstimationContext } from './EstimationContext.js';
24
+ import {
25
+ EstimationContextFromJSON,
26
+ EstimationContextFromJSONTyped,
27
+ EstimationContextToJSON,
28
+ EstimationContextToJSONTyped,
29
+ } from './EstimationContext.js';
30
+
31
+ /**
32
+ * Migration estimation result, including per-schema results and the parameters used.
33
+ *
34
+ * @export
35
+ * @interface MigrationEstimationResponse
36
+ */
37
+ export interface MigrationEstimationResponse {
38
+ /**
39
+ * Estimation results keyed by schema name (e.g. "network-based", "storage-offload").
40
+ * @type {{ [key: string]: SchemaEstimationResult; }}
41
+ * @memberof MigrationEstimationResponse
42
+ */
43
+ estimation: { [key: string]: SchemaEstimationResult; };
44
+ /**
45
+ *
46
+ * @type {EstimationContext}
47
+ * @memberof MigrationEstimationResponse
48
+ */
49
+ estimationContext: EstimationContext;
50
+ }
51
+
52
+ /**
53
+ * Check if a given object implements the MigrationEstimationResponse interface.
54
+ */
55
+ export function instanceOfMigrationEstimationResponse(value: object): value is MigrationEstimationResponse {
56
+ if (!('estimation' in value) || value['estimation'] === undefined) return false;
57
+ if (!('estimationContext' in value) || value['estimationContext'] === undefined) return false;
58
+ return true;
59
+ }
60
+
61
+ export function MigrationEstimationResponseFromJSON(json: any): MigrationEstimationResponse {
62
+ return MigrationEstimationResponseFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function MigrationEstimationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationEstimationResponse {
66
+ if (json == null) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'estimation': (mapValues(json['estimation'], SchemaEstimationResultFromJSON)),
72
+ 'estimationContext': EstimationContextFromJSON(json['estimationContext']),
73
+ };
74
+ }
75
+
76
+ export function MigrationEstimationResponseToJSON(json: any): MigrationEstimationResponse {
77
+ return MigrationEstimationResponseToJSONTyped(json, false);
78
+ }
79
+
80
+ export function MigrationEstimationResponseToJSONTyped(value?: MigrationEstimationResponse | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'estimation': (mapValues(value['estimation'], SchemaEstimationResultToJSON)),
88
+ 'estimationContext': EstimationContextToJSON(value['estimationContext']),
89
+ };
90
+ }
91
+
@@ -0,0 +1,100 @@
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: undefined
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
+ import { mapValues } from '../runtime.js';
16
+ import type { SchemaEstimationResult } from './SchemaEstimationResult.js';
17
+ import {
18
+ SchemaEstimationResultFromJSON,
19
+ SchemaEstimationResultFromJSONTyped,
20
+ SchemaEstimationResultToJSON,
21
+ SchemaEstimationResultToJSONTyped,
22
+ } from './SchemaEstimationResult.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface OsDiskEstimationEntry
28
+ */
29
+ export interface OsDiskEstimationEntry {
30
+ /**
31
+ * Combined OS+Disk complexity score (0-4).
32
+ * @type {number}
33
+ * @memberof OsDiskEstimationEntry
34
+ */
35
+ score: number;
36
+ /**
37
+ * Number of VMs at this complexity level.
38
+ * @type {number}
39
+ * @memberof OsDiskEstimationEntry
40
+ */
41
+ vmCount: number;
42
+ /**
43
+ * Total provisioned disk across VMs in this bucket (decimal TB). 0.0 when ComplexityDistribution is absent from the inventory.
44
+ * @type {number}
45
+ * @memberof OsDiskEstimationEntry
46
+ */
47
+ totalDiskSizeTB: number;
48
+ /**
49
+ * Full estimation breakdown keyed by schema name. Absent for empty buckets (vmCount == 0).
50
+ * @type {{ [key: string]: SchemaEstimationResult; }}
51
+ * @memberof OsDiskEstimationEntry
52
+ */
53
+ estimation?: { [key: string]: SchemaEstimationResult; };
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the OsDiskEstimationEntry interface.
58
+ */
59
+ export function instanceOfOsDiskEstimationEntry(value: object): value is OsDiskEstimationEntry {
60
+ if (!('score' in value) || value['score'] === undefined) return false;
61
+ if (!('vmCount' in value) || value['vmCount'] === undefined) return false;
62
+ if (!('totalDiskSizeTB' in value) || value['totalDiskSizeTB'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function OsDiskEstimationEntryFromJSON(json: any): OsDiskEstimationEntry {
67
+ return OsDiskEstimationEntryFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function OsDiskEstimationEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsDiskEstimationEntry {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'score': json['score'],
77
+ 'vmCount': json['vmCount'],
78
+ 'totalDiskSizeTB': json['totalDiskSizeTB'],
79
+ 'estimation': json['estimation'] == null ? undefined : (mapValues(json['estimation'], SchemaEstimationResultFromJSON)),
80
+ };
81
+ }
82
+
83
+ export function OsDiskEstimationEntryToJSON(json: any): OsDiskEstimationEntry {
84
+ return OsDiskEstimationEntryToJSONTyped(json, false);
85
+ }
86
+
87
+ export function OsDiskEstimationEntryToJSONTyped(value?: OsDiskEstimationEntry | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'score': value['score'],
95
+ 'vmCount': value['vmCount'],
96
+ 'totalDiskSizeTB': value['totalDiskSizeTB'],
97
+ 'estimation': value['estimation'] == null ? undefined : (mapValues(value['estimation'], SchemaEstimationResultToJSON)),
98
+ };
99
+ }
100
+