@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,64 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: undefined
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfMember = instanceOfMember;
17
+ exports.MemberFromJSON = MemberFromJSON;
18
+ exports.MemberFromJSONTyped = MemberFromJSONTyped;
19
+ exports.MemberToJSON = MemberToJSON;
20
+ exports.MemberToJSONTyped = MemberToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the Member interface.
23
+ */
24
+ function instanceOfMember(value) {
25
+ if (!('username' in value) || value['username'] === undefined)
26
+ return false;
27
+ if (!('email' in value) || value['email'] === undefined)
28
+ return false;
29
+ if (!('groupId' in value) || value['groupId'] === undefined)
30
+ return false;
31
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function MemberFromJSON(json) {
36
+ return MemberFromJSONTyped(json, false);
37
+ }
38
+ function MemberFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'username': json['username'],
44
+ 'email': json['email'],
45
+ 'groupId': json['groupId'],
46
+ 'createdAt': (new Date(json['createdAt'])),
47
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
48
+ };
49
+ }
50
+ function MemberToJSON(json) {
51
+ return MemberToJSONTyped(json, false);
52
+ }
53
+ function MemberToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'username': value['username'],
59
+ 'email': value['email'],
60
+ 'groupId': value['groupId'],
61
+ 'createdAt': value['createdAt'].toISOString(),
62
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
63
+ };
64
+ }
@@ -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,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: undefined
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfMemberCreate = instanceOfMemberCreate;
17
+ exports.MemberCreateFromJSON = MemberCreateFromJSON;
18
+ exports.MemberCreateFromJSONTyped = MemberCreateFromJSONTyped;
19
+ exports.MemberCreateToJSON = MemberCreateToJSON;
20
+ exports.MemberCreateToJSONTyped = MemberCreateToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MemberCreate interface.
23
+ */
24
+ function instanceOfMemberCreate(value) {
25
+ if (!('username' in value) || value['username'] === undefined)
26
+ return false;
27
+ if (!('email' in value) || value['email'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function MemberCreateFromJSON(json) {
32
+ return MemberCreateFromJSONTyped(json, false);
33
+ }
34
+ function MemberCreateFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'username': json['username'],
40
+ 'email': json['email'],
41
+ };
42
+ }
43
+ function MemberCreateToJSON(json) {
44
+ return MemberCreateToJSONTyped(json, false);
45
+ }
46
+ function MemberCreateToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'username': value['username'],
52
+ 'email': value['email'],
53
+ };
54
+ }
@@ -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,48 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: undefined
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfMemberUpdate = instanceOfMemberUpdate;
17
+ exports.MemberUpdateFromJSON = MemberUpdateFromJSON;
18
+ exports.MemberUpdateFromJSONTyped = MemberUpdateFromJSONTyped;
19
+ exports.MemberUpdateToJSON = MemberUpdateToJSON;
20
+ exports.MemberUpdateToJSONTyped = MemberUpdateToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MemberUpdate interface.
23
+ */
24
+ function instanceOfMemberUpdate(value) {
25
+ return true;
26
+ }
27
+ function MemberUpdateFromJSON(json) {
28
+ return MemberUpdateFromJSONTyped(json, false);
29
+ }
30
+ function MemberUpdateFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'email': json['email'] == null ? undefined : json['email'],
36
+ };
37
+ }
38
+ function MemberUpdateToJSON(json) {
39
+ return MemberUpdateToJSONTyped(json, false);
40
+ }
41
+ function MemberUpdateToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'email': value['email'],
47
+ };
48
+ }
@@ -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,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: undefined
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfMigrationEstimationByComplexityResponse = instanceOfMigrationEstimationByComplexityResponse;
17
+ exports.MigrationEstimationByComplexityResponseFromJSON = MigrationEstimationByComplexityResponseFromJSON;
18
+ exports.MigrationEstimationByComplexityResponseFromJSONTyped = MigrationEstimationByComplexityResponseFromJSONTyped;
19
+ exports.MigrationEstimationByComplexityResponseToJSON = MigrationEstimationByComplexityResponseToJSON;
20
+ exports.MigrationEstimationByComplexityResponseToJSONTyped = MigrationEstimationByComplexityResponseToJSONTyped;
21
+ const OsDiskEstimationEntry_js_1 = require("./OsDiskEstimationEntry.js");
22
+ const EstimationContext_js_1 = require("./EstimationContext.js");
23
+ /**
24
+ * Check if a given object implements the MigrationEstimationByComplexityResponse interface.
25
+ */
26
+ function instanceOfMigrationEstimationByComplexityResponse(value) {
27
+ if (!('complexityByOsDisk' in value) || value['complexityByOsDisk'] === undefined)
28
+ return false;
29
+ if (!('complexityMatrix' in value) || value['complexityMatrix'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function MigrationEstimationByComplexityResponseFromJSON(json) {
34
+ return MigrationEstimationByComplexityResponseFromJSONTyped(json, false);
35
+ }
36
+ function MigrationEstimationByComplexityResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'complexityByOsDisk': (json['complexityByOsDisk'].map(OsDiskEstimationEntry_js_1.OsDiskEstimationEntryFromJSON)),
42
+ 'complexityMatrix': json['complexityMatrix'],
43
+ 'estimationContext': json['estimationContext'] == null ? undefined : (0, EstimationContext_js_1.EstimationContextFromJSON)(json['estimationContext']),
44
+ };
45
+ }
46
+ function MigrationEstimationByComplexityResponseToJSON(json) {
47
+ return MigrationEstimationByComplexityResponseToJSONTyped(json, false);
48
+ }
49
+ function MigrationEstimationByComplexityResponseToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'complexityByOsDisk': (value['complexityByOsDisk'].map(OsDiskEstimationEntry_js_1.OsDiskEstimationEntryToJSON)),
55
+ 'complexityMatrix': value['complexityMatrix'],
56
+ 'estimationContext': (0, EstimationContext_js_1.EstimationContextToJSON)(value['estimationContext']),
57
+ };
58
+ }
@@ -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,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: undefined
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfMigrationEstimationResponse = instanceOfMigrationEstimationResponse;
17
+ exports.MigrationEstimationResponseFromJSON = MigrationEstimationResponseFromJSON;
18
+ exports.MigrationEstimationResponseFromJSONTyped = MigrationEstimationResponseFromJSONTyped;
19
+ exports.MigrationEstimationResponseToJSON = MigrationEstimationResponseToJSON;
20
+ exports.MigrationEstimationResponseToJSONTyped = MigrationEstimationResponseToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ const SchemaEstimationResult_js_1 = require("./SchemaEstimationResult.js");
23
+ const EstimationContext_js_1 = require("./EstimationContext.js");
24
+ /**
25
+ * Check if a given object implements the MigrationEstimationResponse interface.
26
+ */
27
+ function instanceOfMigrationEstimationResponse(value) {
28
+ if (!('estimation' in value) || value['estimation'] === undefined)
29
+ return false;
30
+ if (!('estimationContext' in value) || value['estimationContext'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function MigrationEstimationResponseFromJSON(json) {
35
+ return MigrationEstimationResponseFromJSONTyped(json, false);
36
+ }
37
+ function MigrationEstimationResponseFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'estimation': ((0, runtime_js_1.mapValues)(json['estimation'], SchemaEstimationResult_js_1.SchemaEstimationResultFromJSON)),
43
+ 'estimationContext': (0, EstimationContext_js_1.EstimationContextFromJSON)(json['estimationContext']),
44
+ };
45
+ }
46
+ function MigrationEstimationResponseToJSON(json) {
47
+ return MigrationEstimationResponseToJSONTyped(json, false);
48
+ }
49
+ function MigrationEstimationResponseToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'estimation': ((0, runtime_js_1.mapValues)(value['estimation'], SchemaEstimationResult_js_1.SchemaEstimationResultToJSON)),
55
+ 'estimationContext': (0, EstimationContext_js_1.EstimationContextToJSON)(value['estimationContext']),
56
+ };
57
+ }
@@ -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,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: undefined
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfOsDiskEstimationEntry = instanceOfOsDiskEstimationEntry;
17
+ exports.OsDiskEstimationEntryFromJSON = OsDiskEstimationEntryFromJSON;
18
+ exports.OsDiskEstimationEntryFromJSONTyped = OsDiskEstimationEntryFromJSONTyped;
19
+ exports.OsDiskEstimationEntryToJSON = OsDiskEstimationEntryToJSON;
20
+ exports.OsDiskEstimationEntryToJSONTyped = OsDiskEstimationEntryToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ const SchemaEstimationResult_js_1 = require("./SchemaEstimationResult.js");
23
+ /**
24
+ * Check if a given object implements the OsDiskEstimationEntry interface.
25
+ */
26
+ function instanceOfOsDiskEstimationEntry(value) {
27
+ if (!('score' in value) || value['score'] === undefined)
28
+ return false;
29
+ if (!('vmCount' in value) || value['vmCount'] === undefined)
30
+ return false;
31
+ if (!('totalDiskSizeTB' in value) || value['totalDiskSizeTB'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function OsDiskEstimationEntryFromJSON(json) {
36
+ return OsDiskEstimationEntryFromJSONTyped(json, false);
37
+ }
38
+ function OsDiskEstimationEntryFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'score': json['score'],
44
+ 'vmCount': json['vmCount'],
45
+ 'totalDiskSizeTB': json['totalDiskSizeTB'],
46
+ 'estimation': json['estimation'] == null ? undefined : ((0, runtime_js_1.mapValues)(json['estimation'], SchemaEstimationResult_js_1.SchemaEstimationResultFromJSON)),
47
+ };
48
+ }
49
+ function OsDiskEstimationEntryToJSON(json) {
50
+ return OsDiskEstimationEntryToJSONTyped(json, false);
51
+ }
52
+ function OsDiskEstimationEntryToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'score': value['score'],
58
+ 'vmCount': value['vmCount'],
59
+ 'totalDiskSizeTB': value['totalDiskSizeTB'],
60
+ 'estimation': value['estimation'] == null ? undefined : ((0, runtime_js_1.mapValues)(value['estimation'], SchemaEstimationResult_js_1.SchemaEstimationResultToJSON)),
61
+ };
62
+ }
@@ -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';
@@ -30,9 +30,14 @@ __exportStar(require("./ComplexityOSScoreEntry.js"), exports);
30
30
  __exportStar(require("./Datastore.js"), exports);
31
31
  __exportStar(require("./DiskSizeTierSummary.js"), exports);
32
32
  __exportStar(require("./DiskTypeSummary.js"), exports);
33
+ __exportStar(require("./EstimationContext.js"), exports);
33
34
  __exportStar(require("./EstimationDetail.js"), exports);
35
+ __exportStar(require("./Group.js"), exports);
36
+ __exportStar(require("./GroupCreate.js"), exports);
37
+ __exportStar(require("./GroupUpdate.js"), exports);
34
38
  __exportStar(require("./Histogram.js"), exports);
35
39
  __exportStar(require("./Host.js"), exports);
40
+ __exportStar(require("./Identity.js"), exports);
36
41
  __exportStar(require("./Info.js"), exports);
37
42
  __exportStar(require("./Infra.js"), exports);
38
43
  __exportStar(require("./Inventory.js"), exports);
@@ -42,12 +47,18 @@ __exportStar(require("./Ipv4Config.js"), exports);
42
47
  __exportStar(require("./Job.js"), exports);
43
48
  __exportStar(require("./JobStatus.js"), exports);
44
49
  __exportStar(require("./Label.js"), exports);
50
+ __exportStar(require("./Member.js"), exports);
51
+ __exportStar(require("./MemberCreate.js"), exports);
52
+ __exportStar(require("./MemberUpdate.js"), exports);
45
53
  __exportStar(require("./MigrationComplexityRequest.js"), exports);
46
54
  __exportStar(require("./MigrationComplexityResponse.js"), exports);
55
+ __exportStar(require("./MigrationEstimationByComplexityResponse.js"), exports);
47
56
  __exportStar(require("./MigrationEstimationRequest.js"), exports);
57
+ __exportStar(require("./MigrationEstimationResponse.js"), exports);
48
58
  __exportStar(require("./MigrationIssue.js"), exports);
49
59
  __exportStar(require("./ModelError.js"), exports);
50
60
  __exportStar(require("./Network.js"), exports);
61
+ __exportStar(require("./OsDiskEstimationEntry.js"), exports);
51
62
  __exportStar(require("./OsInfo.js"), exports);
52
63
  __exportStar(require("./PresignedUrl.js"), exports);
53
64
  __exportStar(require("./SchemaEstimationResult.js"), exports);