@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,57 @@
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
+ * Check if a given object implements the Member interface.
16
+ */
17
+ export function instanceOfMember(value) {
18
+ if (!('username' in value) || value['username'] === undefined)
19
+ return false;
20
+ if (!('email' in value) || value['email'] === undefined)
21
+ return false;
22
+ if (!('groupId' in value) || value['groupId'] === undefined)
23
+ return false;
24
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function MemberFromJSON(json) {
29
+ return MemberFromJSONTyped(json, false);
30
+ }
31
+ export function MemberFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'username': json['username'],
37
+ 'email': json['email'],
38
+ 'groupId': json['groupId'],
39
+ 'createdAt': (new Date(json['createdAt'])),
40
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
41
+ };
42
+ }
43
+ export function MemberToJSON(json) {
44
+ return MemberToJSONTyped(json, false);
45
+ }
46
+ export function MemberToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'username': value['username'],
52
+ 'email': value['email'],
53
+ 'groupId': value['groupId'],
54
+ 'createdAt': value['createdAt'].toISOString(),
55
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
56
+ };
57
+ }
@@ -0,0 +1,38 @@
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: undefined
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
+ *
14
+ * @export
15
+ * @interface MemberCreate
16
+ */
17
+ export interface MemberCreate {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MemberCreate
22
+ */
23
+ username: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof MemberCreate
28
+ */
29
+ email: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the MemberCreate interface.
33
+ */
34
+ export declare function instanceOfMemberCreate(value: object): value is MemberCreate;
35
+ export declare function MemberCreateFromJSON(json: any): MemberCreate;
36
+ export declare function MemberCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemberCreate;
37
+ export declare function MemberCreateToJSON(json: any): MemberCreate;
38
+ export declare function MemberCreateToJSONTyped(value?: MemberCreate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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
+ * Check if a given object implements the MemberCreate interface.
16
+ */
17
+ export function instanceOfMemberCreate(value) {
18
+ if (!('username' in value) || value['username'] === undefined)
19
+ return false;
20
+ if (!('email' in value) || value['email'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function MemberCreateFromJSON(json) {
25
+ return MemberCreateFromJSONTyped(json, false);
26
+ }
27
+ export function MemberCreateFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'username': json['username'],
33
+ 'email': json['email'],
34
+ };
35
+ }
36
+ export function MemberCreateToJSON(json) {
37
+ return MemberCreateToJSONTyped(json, false);
38
+ }
39
+ export function MemberCreateToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'username': value['username'],
45
+ 'email': value['email'],
46
+ };
47
+ }
@@ -0,0 +1,32 @@
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: undefined
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
+ *
14
+ * @export
15
+ * @interface MemberUpdate
16
+ */
17
+ export interface MemberUpdate {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MemberUpdate
22
+ */
23
+ email?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the MemberUpdate interface.
27
+ */
28
+ export declare function instanceOfMemberUpdate(value: object): value is MemberUpdate;
29
+ export declare function MemberUpdateFromJSON(json: any): MemberUpdate;
30
+ export declare function MemberUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemberUpdate;
31
+ export declare function MemberUpdateToJSON(json: any): MemberUpdate;
32
+ export declare function MemberUpdateToJSONTyped(value?: MemberUpdate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,41 @@
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
+ * Check if a given object implements the MemberUpdate interface.
16
+ */
17
+ export function instanceOfMemberUpdate(value) {
18
+ return true;
19
+ }
20
+ export function MemberUpdateFromJSON(json) {
21
+ return MemberUpdateFromJSONTyped(json, false);
22
+ }
23
+ export function MemberUpdateFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'email': json['email'] == null ? undefined : json['email'],
29
+ };
30
+ }
31
+ export function MemberUpdateToJSON(json) {
32
+ return MemberUpdateToJSONTyped(json, false);
33
+ }
34
+ export function MemberUpdateToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'email': value['email'],
40
+ };
41
+ }
@@ -26,7 +26,7 @@ export interface MigrationComplexityResponse {
26
26
  */
27
27
  complexityByDisk: Array<ComplexityDiskScoreEntry>;
28
28
  /**
29
- * 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.
29
+ * 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.
30
30
  *
31
31
  * @type {Array<ComplexityOSScoreEntry>}
32
32
  * @memberof MigrationComplexityResponse
@@ -42,7 +42,7 @@ export interface MigrationComplexityResponse {
42
42
  [key: string]: number;
43
43
  };
44
44
  /**
45
- * 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.
45
+ * 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.
46
46
  *
47
47
  * @type {{ [key: string]: number; }}
48
48
  * @memberof MigrationComplexityResponse
@@ -0,0 +1,50 @@
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: undefined
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 type { OsDiskEstimationEntry } from './OsDiskEstimationEntry.js';
13
+ import type { EstimationContext } from './EstimationContext.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface MigrationEstimationByComplexityResponse
18
+ */
19
+ export interface MigrationEstimationByComplexityResponse {
20
+ /**
21
+ * Combined OS+Disk complexity distribution with per-bucket estimation. All 5 score levels (0-4) always present.
22
+ * @type {Array<OsDiskEstimationEntry>}
23
+ * @memberof MigrationEstimationByComplexityResponse
24
+ */
25
+ complexityByOsDisk: Array<OsDiskEstimationEntry>;
26
+ /**
27
+ * Decision matrix: outer keys are OS scores (0-4), inner keys are disk scores (1-4), values are combined scores.
28
+ * @type {{ [key: string]: { [key: string]: number; }; }}
29
+ * @memberof MigrationEstimationByComplexityResponse
30
+ */
31
+ complexityMatrix: {
32
+ [key: string]: {
33
+ [key: string]: number;
34
+ };
35
+ };
36
+ /**
37
+ *
38
+ * @type {EstimationContext}
39
+ * @memberof MigrationEstimationByComplexityResponse
40
+ */
41
+ estimationContext?: EstimationContext;
42
+ }
43
+ /**
44
+ * Check if a given object implements the MigrationEstimationByComplexityResponse interface.
45
+ */
46
+ export declare function instanceOfMigrationEstimationByComplexityResponse(value: object): value is MigrationEstimationByComplexityResponse;
47
+ export declare function MigrationEstimationByComplexityResponseFromJSON(json: any): MigrationEstimationByComplexityResponse;
48
+ export declare function MigrationEstimationByComplexityResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationEstimationByComplexityResponse;
49
+ export declare function MigrationEstimationByComplexityResponseToJSON(json: any): MigrationEstimationByComplexityResponse;
50
+ export declare function MigrationEstimationByComplexityResponseToJSONTyped(value?: MigrationEstimationByComplexityResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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
+ import { OsDiskEstimationEntryFromJSON, OsDiskEstimationEntryToJSON, } from './OsDiskEstimationEntry.js';
15
+ import { EstimationContextFromJSON, EstimationContextToJSON, } from './EstimationContext.js';
16
+ /**
17
+ * Check if a given object implements the MigrationEstimationByComplexityResponse interface.
18
+ */
19
+ export function instanceOfMigrationEstimationByComplexityResponse(value) {
20
+ if (!('complexityByOsDisk' in value) || value['complexityByOsDisk'] === undefined)
21
+ return false;
22
+ if (!('complexityMatrix' in value) || value['complexityMatrix'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function MigrationEstimationByComplexityResponseFromJSON(json) {
27
+ return MigrationEstimationByComplexityResponseFromJSONTyped(json, false);
28
+ }
29
+ export function MigrationEstimationByComplexityResponseFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'complexityByOsDisk': (json['complexityByOsDisk'].map(OsDiskEstimationEntryFromJSON)),
35
+ 'complexityMatrix': json['complexityMatrix'],
36
+ 'estimationContext': json['estimationContext'] == null ? undefined : EstimationContextFromJSON(json['estimationContext']),
37
+ };
38
+ }
39
+ export function MigrationEstimationByComplexityResponseToJSON(json) {
40
+ return MigrationEstimationByComplexityResponseToJSONTyped(json, false);
41
+ }
42
+ export function MigrationEstimationByComplexityResponseToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'complexityByOsDisk': (value['complexityByOsDisk'].map(OsDiskEstimationEntryToJSON)),
48
+ 'complexityMatrix': value['complexityMatrix'],
49
+ 'estimationContext': EstimationContextToJSON(value['estimationContext']),
50
+ };
51
+ }
@@ -29,7 +29,7 @@ export interface MigrationEstimationRequest {
29
29
  */
30
30
  estimationSchema?: Array<string>;
31
31
  /**
32
- * 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.
32
+ * 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.
33
33
  *
34
34
  * @type {{ [key: string]: any; }}
35
35
  * @memberof MigrationEstimationRequest
@@ -0,0 +1,43 @@
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: undefined
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 type { SchemaEstimationResult } from './SchemaEstimationResult.js';
13
+ import type { EstimationContext } from './EstimationContext.js';
14
+ /**
15
+ * Migration estimation result, including per-schema results and the parameters used.
16
+ *
17
+ * @export
18
+ * @interface MigrationEstimationResponse
19
+ */
20
+ export interface MigrationEstimationResponse {
21
+ /**
22
+ * Estimation results keyed by schema name (e.g. "network-based", "storage-offload").
23
+ * @type {{ [key: string]: SchemaEstimationResult; }}
24
+ * @memberof MigrationEstimationResponse
25
+ */
26
+ estimation: {
27
+ [key: string]: SchemaEstimationResult;
28
+ };
29
+ /**
30
+ *
31
+ * @type {EstimationContext}
32
+ * @memberof MigrationEstimationResponse
33
+ */
34
+ estimationContext: EstimationContext;
35
+ }
36
+ /**
37
+ * Check if a given object implements the MigrationEstimationResponse interface.
38
+ */
39
+ export declare function instanceOfMigrationEstimationResponse(value: object): value is MigrationEstimationResponse;
40
+ export declare function MigrationEstimationResponseFromJSON(json: any): MigrationEstimationResponse;
41
+ export declare function MigrationEstimationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationEstimationResponse;
42
+ export declare function MigrationEstimationResponseToJSON(json: any): MigrationEstimationResponse;
43
+ export declare function MigrationEstimationResponseToJSONTyped(value?: MigrationEstimationResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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
+ import { mapValues } from '../runtime.js';
15
+ import { SchemaEstimationResultFromJSON, SchemaEstimationResultToJSON, } from './SchemaEstimationResult.js';
16
+ import { EstimationContextFromJSON, EstimationContextToJSON, } from './EstimationContext.js';
17
+ /**
18
+ * Check if a given object implements the MigrationEstimationResponse interface.
19
+ */
20
+ export function instanceOfMigrationEstimationResponse(value) {
21
+ if (!('estimation' in value) || value['estimation'] === undefined)
22
+ return false;
23
+ if (!('estimationContext' in value) || value['estimationContext'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function MigrationEstimationResponseFromJSON(json) {
28
+ return MigrationEstimationResponseFromJSONTyped(json, false);
29
+ }
30
+ export function MigrationEstimationResponseFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'estimation': (mapValues(json['estimation'], SchemaEstimationResultFromJSON)),
36
+ 'estimationContext': EstimationContextFromJSON(json['estimationContext']),
37
+ };
38
+ }
39
+ export function MigrationEstimationResponseToJSON(json) {
40
+ return MigrationEstimationResponseToJSONTyped(json, false);
41
+ }
42
+ export function MigrationEstimationResponseToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'estimation': (mapValues(value['estimation'], SchemaEstimationResultToJSON)),
48
+ 'estimationContext': EstimationContextToJSON(value['estimationContext']),
49
+ };
50
+ }
@@ -0,0 +1,53 @@
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: undefined
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 type { SchemaEstimationResult } from './SchemaEstimationResult.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface OsDiskEstimationEntry
17
+ */
18
+ export interface OsDiskEstimationEntry {
19
+ /**
20
+ * Combined OS+Disk complexity score (0-4).
21
+ * @type {number}
22
+ * @memberof OsDiskEstimationEntry
23
+ */
24
+ score: number;
25
+ /**
26
+ * Number of VMs at this complexity level.
27
+ * @type {number}
28
+ * @memberof OsDiskEstimationEntry
29
+ */
30
+ vmCount: number;
31
+ /**
32
+ * Total provisioned disk across VMs in this bucket (decimal TB). 0.0 when ComplexityDistribution is absent from the inventory.
33
+ * @type {number}
34
+ * @memberof OsDiskEstimationEntry
35
+ */
36
+ totalDiskSizeTB: number;
37
+ /**
38
+ * Full estimation breakdown keyed by schema name. Absent for empty buckets (vmCount == 0).
39
+ * @type {{ [key: string]: SchemaEstimationResult; }}
40
+ * @memberof OsDiskEstimationEntry
41
+ */
42
+ estimation?: {
43
+ [key: string]: SchemaEstimationResult;
44
+ };
45
+ }
46
+ /**
47
+ * Check if a given object implements the OsDiskEstimationEntry interface.
48
+ */
49
+ export declare function instanceOfOsDiskEstimationEntry(value: object): value is OsDiskEstimationEntry;
50
+ export declare function OsDiskEstimationEntryFromJSON(json: any): OsDiskEstimationEntry;
51
+ export declare function OsDiskEstimationEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsDiskEstimationEntry;
52
+ export declare function OsDiskEstimationEntryToJSON(json: any): OsDiskEstimationEntry;
53
+ export declare function OsDiskEstimationEntryToJSONTyped(value?: OsDiskEstimationEntry | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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
+ import { mapValues } from '../runtime.js';
15
+ import { SchemaEstimationResultFromJSON, SchemaEstimationResultToJSON, } from './SchemaEstimationResult.js';
16
+ /**
17
+ * Check if a given object implements the OsDiskEstimationEntry interface.
18
+ */
19
+ export function instanceOfOsDiskEstimationEntry(value) {
20
+ if (!('score' in value) || value['score'] === undefined)
21
+ return false;
22
+ if (!('vmCount' in value) || value['vmCount'] === undefined)
23
+ return false;
24
+ if (!('totalDiskSizeTB' in value) || value['totalDiskSizeTB'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function OsDiskEstimationEntryFromJSON(json) {
29
+ return OsDiskEstimationEntryFromJSONTyped(json, false);
30
+ }
31
+ export function OsDiskEstimationEntryFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'score': json['score'],
37
+ 'vmCount': json['vmCount'],
38
+ 'totalDiskSizeTB': json['totalDiskSizeTB'],
39
+ 'estimation': json['estimation'] == null ? undefined : (mapValues(json['estimation'], SchemaEstimationResultFromJSON)),
40
+ };
41
+ }
42
+ export function OsDiskEstimationEntryToJSON(json) {
43
+ return OsDiskEstimationEntryToJSONTyped(json, false);
44
+ }
45
+ export function OsDiskEstimationEntryToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'score': value['score'],
51
+ 'vmCount': value['vmCount'],
52
+ 'totalDiskSizeTB': value['totalDiskSizeTB'],
53
+ 'estimation': value['estimation'] == null ? undefined : (mapValues(value['estimation'], SchemaEstimationResultToJSON)),
54
+ };
55
+ }
@@ -12,9 +12,14 @@ export * from './ComplexityOSScoreEntry.js';
12
12
  export * from './Datastore.js';
13
13
  export * from './DiskSizeTierSummary.js';
14
14
  export * from './DiskTypeSummary.js';
15
+ export * from './EstimationContext.js';
15
16
  export * from './EstimationDetail.js';
17
+ export * from './Group.js';
18
+ export * from './GroupCreate.js';
19
+ export * from './GroupUpdate.js';
16
20
  export * from './Histogram.js';
17
21
  export * from './Host.js';
22
+ export * from './Identity.js';
18
23
  export * from './Info.js';
19
24
  export * from './Infra.js';
20
25
  export * from './Inventory.js';
@@ -24,12 +29,18 @@ export * from './Ipv4Config.js';
24
29
  export * from './Job.js';
25
30
  export * from './JobStatus.js';
26
31
  export * from './Label.js';
32
+ export * from './Member.js';
33
+ export * from './MemberCreate.js';
34
+ export * from './MemberUpdate.js';
27
35
  export * from './MigrationComplexityRequest.js';
28
36
  export * from './MigrationComplexityResponse.js';
37
+ export * from './MigrationEstimationByComplexityResponse.js';
29
38
  export * from './MigrationEstimationRequest.js';
39
+ export * from './MigrationEstimationResponse.js';
30
40
  export * from './MigrationIssue.js';
31
41
  export * from './ModelError.js';
32
42
  export * from './Network.js';
43
+ export * from './OsDiskEstimationEntry.js';
33
44
  export * from './OsInfo.js';
34
45
  export * from './PresignedUrl.js';
35
46
  export * from './SchemaEstimationResult.js';
@@ -14,9 +14,14 @@ export * from './ComplexityOSScoreEntry.js';
14
14
  export * from './Datastore.js';
15
15
  export * from './DiskSizeTierSummary.js';
16
16
  export * from './DiskTypeSummary.js';
17
+ export * from './EstimationContext.js';
17
18
  export * from './EstimationDetail.js';
19
+ export * from './Group.js';
20
+ export * from './GroupCreate.js';
21
+ export * from './GroupUpdate.js';
18
22
  export * from './Histogram.js';
19
23
  export * from './Host.js';
24
+ export * from './Identity.js';
20
25
  export * from './Info.js';
21
26
  export * from './Infra.js';
22
27
  export * from './Inventory.js';
@@ -26,12 +31,18 @@ export * from './Ipv4Config.js';
26
31
  export * from './Job.js';
27
32
  export * from './JobStatus.js';
28
33
  export * from './Label.js';
34
+ export * from './Member.js';
35
+ export * from './MemberCreate.js';
36
+ export * from './MemberUpdate.js';
29
37
  export * from './MigrationComplexityRequest.js';
30
38
  export * from './MigrationComplexityResponse.js';
39
+ export * from './MigrationEstimationByComplexityResponse.js';
31
40
  export * from './MigrationEstimationRequest.js';
41
+ export * from './MigrationEstimationResponse.js';
32
42
  export * from './MigrationIssue.js';
33
43
  export * from './ModelError.js';
34
44
  export * from './Network.js';
45
+ export * from './OsDiskEstimationEntry.js';
35
46
  export * from './OsInfo.js';
36
47
  export * from './PresignedUrl.js';
37
48
  export * from './SchemaEstimationResult.js';
@@ -23,7 +23,7 @@ export interface ComplexityOSNameEntry {
23
23
  */
24
24
  osName: string;
25
25
  /**
26
- * Complexity score assigned by ClassifyOS. 0 = unclassified, 1 = least complex, 4 = most complex.
26
+ * Complexity score assigned by ClassifyOS. 0 = unknown, 1 = least complex, 4 = most complex.
27
27
  *
28
28
  * @type {number}
29
29
  * @memberof ComplexityOSNameEntry
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface ComplexityOSScoreEntry {
18
18
  /**
19
- * Complexity score from 0 to 4, where 1 indicates the least complex OS to migrate and 0 indicates an OS that could not be classified.
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
20
  *
21
21
  * @type {number}
22
22
  * @memberof ComplexityOSScoreEntry