@openshift-migration-advisor/planner-sdk 0.10.0-fa4e0ff47672 → 0.11.0-7cc84aae7ba0

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 (70) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +16 -2
  3. package/dist/apis/AccountApi.js +9 -9
  4. package/dist/apis/AssessmentApi.d.ts +5 -13
  5. package/dist/apis/AssessmentApi.js +8 -8
  6. package/dist/apis/ImageApi.js +2 -2
  7. package/dist/apis/JobApi.js +2 -2
  8. package/dist/apis/PartnerApi.d.ts +323 -0
  9. package/dist/apis/PartnerApi.js +379 -0
  10. package/dist/apis/SourceApi.js +4 -4
  11. package/dist/apis/index.d.ts +1 -0
  12. package/dist/apis/index.js +1 -0
  13. package/dist/esm/apis/AccountApi.js +9 -9
  14. package/dist/esm/apis/AssessmentApi.d.ts +5 -13
  15. package/dist/esm/apis/AssessmentApi.js +9 -9
  16. package/dist/esm/apis/ImageApi.js +2 -2
  17. package/dist/esm/apis/JobApi.js +2 -2
  18. package/dist/esm/apis/PartnerApi.d.ts +323 -0
  19. package/dist/esm/apis/PartnerApi.js +375 -0
  20. package/dist/esm/apis/SourceApi.js +4 -4
  21. package/dist/esm/apis/index.d.ts +1 -0
  22. package/dist/esm/apis/index.js +1 -0
  23. package/dist/esm/models/MigrationEstimationRequest.d.ts +1 -1
  24. package/dist/esm/models/MigrationEstimationResponse.d.ts +43 -0
  25. package/dist/esm/models/MigrationEstimationResponse.js +50 -0
  26. package/dist/esm/models/PartnerRequest.d.ts +99 -0
  27. package/dist/esm/models/PartnerRequest.js +82 -0
  28. package/dist/esm/models/PartnerRequestCreate.d.ts +56 -0
  29. package/dist/esm/models/PartnerRequestCreate.js +59 -0
  30. package/dist/esm/models/PartnerRequestStatus.d.ts +27 -0
  31. package/dist/esm/models/PartnerRequestStatus.js +45 -0
  32. package/dist/esm/models/PartnerRequestUpdate.d.ts +39 -0
  33. package/dist/esm/models/PartnerRequestUpdate.js +46 -0
  34. package/dist/esm/models/index.d.ts +5 -0
  35. package/dist/esm/models/index.js +5 -0
  36. package/dist/models/MigrationEstimationRequest.d.ts +1 -1
  37. package/dist/models/MigrationEstimationResponse.d.ts +43 -0
  38. package/dist/models/MigrationEstimationResponse.js +57 -0
  39. package/dist/models/PartnerRequest.d.ts +99 -0
  40. package/dist/models/PartnerRequest.js +89 -0
  41. package/dist/models/PartnerRequestCreate.d.ts +56 -0
  42. package/dist/models/PartnerRequestCreate.js +66 -0
  43. package/dist/models/PartnerRequestStatus.d.ts +27 -0
  44. package/dist/models/PartnerRequestStatus.js +53 -0
  45. package/dist/models/PartnerRequestUpdate.d.ts +39 -0
  46. package/dist/models/PartnerRequestUpdate.js +53 -0
  47. package/dist/models/index.d.ts +5 -0
  48. package/dist/models/index.js +5 -0
  49. package/docs/AssessmentApi.md +2 -2
  50. package/docs/MigrationEstimationResponse.md +37 -0
  51. package/docs/PartnerApi.md +636 -0
  52. package/docs/PartnerRequest.md +56 -0
  53. package/docs/PartnerRequestCreate.md +42 -0
  54. package/docs/PartnerRequestStatus.md +32 -0
  55. package/docs/PartnerRequestUpdate.md +36 -0
  56. package/package.json +1 -1
  57. package/src/apis/AccountApi.ts +9 -9
  58. package/src/apis/AssessmentApi.ts +15 -15
  59. package/src/apis/ImageApi.ts +2 -2
  60. package/src/apis/JobApi.ts +2 -2
  61. package/src/apis/PartnerApi.ts +668 -0
  62. package/src/apis/SourceApi.ts +4 -4
  63. package/src/apis/index.ts +1 -0
  64. package/src/models/MigrationEstimationRequest.ts +1 -1
  65. package/src/models/MigrationEstimationResponse.ts +91 -0
  66. package/src/models/PartnerRequest.ts +172 -0
  67. package/src/models/PartnerRequestCreate.ts +102 -0
  68. package/src/models/PartnerRequestStatus.ts +55 -0
  69. package/src/models/PartnerRequestUpdate.ts +84 -0
  70. package/src/models/index.ts +5 -0
@@ -0,0 +1,89 @@
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.instanceOfPartnerRequest = instanceOfPartnerRequest;
17
+ exports.PartnerRequestFromJSON = PartnerRequestFromJSON;
18
+ exports.PartnerRequestFromJSONTyped = PartnerRequestFromJSONTyped;
19
+ exports.PartnerRequestToJSON = PartnerRequestToJSON;
20
+ exports.PartnerRequestToJSONTyped = PartnerRequestToJSONTyped;
21
+ const PartnerRequestStatus_js_1 = require("./PartnerRequestStatus.js");
22
+ /**
23
+ * Check if a given object implements the PartnerRequest interface.
24
+ */
25
+ function instanceOfPartnerRequest(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('username' in value) || value['username'] === undefined)
29
+ return false;
30
+ if (!('partnerId' in value) || value['partnerId'] === undefined)
31
+ return false;
32
+ if (!('requestStatus' in value) || value['requestStatus'] === undefined)
33
+ return false;
34
+ if (!('name' in value) || value['name'] === undefined)
35
+ return false;
36
+ if (!('contactName' in value) || value['contactName'] === undefined)
37
+ return false;
38
+ if (!('contactPhone' in value) || value['contactPhone'] === undefined)
39
+ return false;
40
+ if (!('email' in value) || value['email'] === undefined)
41
+ return false;
42
+ if (!('location' in value) || value['location'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ function PartnerRequestFromJSON(json) {
47
+ return PartnerRequestFromJSONTyped(json, false);
48
+ }
49
+ function PartnerRequestFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'id': json['id'],
55
+ 'username': json['username'],
56
+ 'partnerId': json['partnerId'],
57
+ 'requestStatus': (0, PartnerRequestStatus_js_1.PartnerRequestStatusFromJSON)(json['requestStatus']),
58
+ 'name': json['name'],
59
+ 'contactName': json['contactName'],
60
+ 'contactPhone': json['contactPhone'],
61
+ 'email': json['email'],
62
+ 'location': json['location'],
63
+ 'reason': json['reason'] == null ? undefined : json['reason'],
64
+ 'acceptedAt': json['acceptedAt'] == null ? undefined : (new Date(json['acceptedAt'])),
65
+ 'terminatedAt': json['terminatedAt'] == null ? undefined : (new Date(json['terminatedAt'])),
66
+ };
67
+ }
68
+ function PartnerRequestToJSON(json) {
69
+ return PartnerRequestToJSONTyped(json, false);
70
+ }
71
+ function PartnerRequestToJSONTyped(value, ignoreDiscriminator = false) {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+ return {
76
+ 'id': value['id'],
77
+ 'username': value['username'],
78
+ 'partnerId': value['partnerId'],
79
+ 'requestStatus': (0, PartnerRequestStatus_js_1.PartnerRequestStatusToJSON)(value['requestStatus']),
80
+ 'name': value['name'],
81
+ 'contactName': value['contactName'],
82
+ 'contactPhone': value['contactPhone'],
83
+ 'email': value['email'],
84
+ 'location': value['location'],
85
+ 'reason': value['reason'],
86
+ 'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
87
+ 'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
88
+ };
89
+ }
@@ -0,0 +1,56 @@
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 PartnerRequestCreate
16
+ */
17
+ export interface PartnerRequestCreate {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PartnerRequestCreate
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PartnerRequestCreate
28
+ */
29
+ contactName: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PartnerRequestCreate
34
+ */
35
+ contactPhone: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PartnerRequestCreate
40
+ */
41
+ email: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PartnerRequestCreate
46
+ */
47
+ location: string;
48
+ }
49
+ /**
50
+ * Check if a given object implements the PartnerRequestCreate interface.
51
+ */
52
+ export declare function instanceOfPartnerRequestCreate(value: object): value is PartnerRequestCreate;
53
+ export declare function PartnerRequestCreateFromJSON(json: any): PartnerRequestCreate;
54
+ export declare function PartnerRequestCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerRequestCreate;
55
+ export declare function PartnerRequestCreateToJSON(json: any): PartnerRequestCreate;
56
+ export declare function PartnerRequestCreateToJSONTyped(value?: PartnerRequestCreate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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.instanceOfPartnerRequestCreate = instanceOfPartnerRequestCreate;
17
+ exports.PartnerRequestCreateFromJSON = PartnerRequestCreateFromJSON;
18
+ exports.PartnerRequestCreateFromJSONTyped = PartnerRequestCreateFromJSONTyped;
19
+ exports.PartnerRequestCreateToJSON = PartnerRequestCreateToJSON;
20
+ exports.PartnerRequestCreateToJSONTyped = PartnerRequestCreateToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PartnerRequestCreate interface.
23
+ */
24
+ function instanceOfPartnerRequestCreate(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ if (!('contactName' in value) || value['contactName'] === undefined)
28
+ return false;
29
+ if (!('contactPhone' in value) || value['contactPhone'] === undefined)
30
+ return false;
31
+ if (!('email' in value) || value['email'] === undefined)
32
+ return false;
33
+ if (!('location' in value) || value['location'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function PartnerRequestCreateFromJSON(json) {
38
+ return PartnerRequestCreateFromJSONTyped(json, false);
39
+ }
40
+ function PartnerRequestCreateFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'name': json['name'],
46
+ 'contactName': json['contactName'],
47
+ 'contactPhone': json['contactPhone'],
48
+ 'email': json['email'],
49
+ 'location': json['location'],
50
+ };
51
+ }
52
+ function PartnerRequestCreateToJSON(json) {
53
+ return PartnerRequestCreateToJSONTyped(json, false);
54
+ }
55
+ function PartnerRequestCreateToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'name': value['name'],
61
+ 'contactName': value['contactName'],
62
+ 'contactPhone': value['contactPhone'],
63
+ 'email': value['email'],
64
+ 'location': value['location'],
65
+ };
66
+ }
@@ -0,0 +1,27 @@
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
+ */
16
+ export declare const PartnerRequestStatus: {
17
+ readonly Pending: "pending";
18
+ readonly Accepted: "accepted";
19
+ readonly Rejected: "rejected";
20
+ readonly Cancelled: "cancelled";
21
+ };
22
+ export type PartnerRequestStatus = typeof PartnerRequestStatus[keyof typeof PartnerRequestStatus];
23
+ export declare function instanceOfPartnerRequestStatus(value: any): boolean;
24
+ export declare function PartnerRequestStatusFromJSON(json: any): PartnerRequestStatus;
25
+ export declare function PartnerRequestStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerRequestStatus;
26
+ export declare function PartnerRequestStatusToJSON(value?: PartnerRequestStatus | null): any;
27
+ export declare function PartnerRequestStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): PartnerRequestStatus;
@@ -0,0 +1,53 @@
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.PartnerRequestStatus = void 0;
17
+ exports.instanceOfPartnerRequestStatus = instanceOfPartnerRequestStatus;
18
+ exports.PartnerRequestStatusFromJSON = PartnerRequestStatusFromJSON;
19
+ exports.PartnerRequestStatusFromJSONTyped = PartnerRequestStatusFromJSONTyped;
20
+ exports.PartnerRequestStatusToJSON = PartnerRequestStatusToJSON;
21
+ exports.PartnerRequestStatusToJSONTyped = PartnerRequestStatusToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.PartnerRequestStatus = {
27
+ Pending: 'pending',
28
+ Accepted: 'accepted',
29
+ Rejected: 'rejected',
30
+ Cancelled: 'cancelled'
31
+ };
32
+ function instanceOfPartnerRequestStatus(value) {
33
+ for (const key in exports.PartnerRequestStatus) {
34
+ if (Object.prototype.hasOwnProperty.call(exports.PartnerRequestStatus, key)) {
35
+ if (exports.PartnerRequestStatus[key] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+ function PartnerRequestStatusFromJSON(json) {
43
+ return PartnerRequestStatusFromJSONTyped(json, false);
44
+ }
45
+ function PartnerRequestStatusFromJSONTyped(json, ignoreDiscriminator) {
46
+ return json;
47
+ }
48
+ function PartnerRequestStatusToJSON(value) {
49
+ return value;
50
+ }
51
+ function PartnerRequestStatusToJSONTyped(value, ignoreDiscriminator) {
52
+ return value;
53
+ }
@@ -0,0 +1,39 @@
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 { PartnerRequestStatus } from './PartnerRequestStatus.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PartnerRequestUpdate
17
+ */
18
+ export interface PartnerRequestUpdate {
19
+ /**
20
+ *
21
+ * @type {PartnerRequestStatus}
22
+ * @memberof PartnerRequestUpdate
23
+ */
24
+ status: PartnerRequestStatus;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof PartnerRequestUpdate
29
+ */
30
+ reason?: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the PartnerRequestUpdate interface.
34
+ */
35
+ export declare function instanceOfPartnerRequestUpdate(value: object): value is PartnerRequestUpdate;
36
+ export declare function PartnerRequestUpdateFromJSON(json: any): PartnerRequestUpdate;
37
+ export declare function PartnerRequestUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerRequestUpdate;
38
+ export declare function PartnerRequestUpdateToJSON(json: any): PartnerRequestUpdate;
39
+ export declare function PartnerRequestUpdateToJSONTyped(value?: PartnerRequestUpdate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
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.instanceOfPartnerRequestUpdate = instanceOfPartnerRequestUpdate;
17
+ exports.PartnerRequestUpdateFromJSON = PartnerRequestUpdateFromJSON;
18
+ exports.PartnerRequestUpdateFromJSONTyped = PartnerRequestUpdateFromJSONTyped;
19
+ exports.PartnerRequestUpdateToJSON = PartnerRequestUpdateToJSON;
20
+ exports.PartnerRequestUpdateToJSONTyped = PartnerRequestUpdateToJSONTyped;
21
+ const PartnerRequestStatus_js_1 = require("./PartnerRequestStatus.js");
22
+ /**
23
+ * Check if a given object implements the PartnerRequestUpdate interface.
24
+ */
25
+ function instanceOfPartnerRequestUpdate(value) {
26
+ if (!('status' in value) || value['status'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function PartnerRequestUpdateFromJSON(json) {
31
+ return PartnerRequestUpdateFromJSONTyped(json, false);
32
+ }
33
+ function PartnerRequestUpdateFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'status': (0, PartnerRequestStatus_js_1.PartnerRequestStatusFromJSON)(json['status']),
39
+ 'reason': json['reason'] == null ? undefined : json['reason'],
40
+ };
41
+ }
42
+ function PartnerRequestUpdateToJSON(json) {
43
+ return PartnerRequestUpdateToJSONTyped(json, false);
44
+ }
45
+ function PartnerRequestUpdateToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'status': (0, PartnerRequestStatus_js_1.PartnerRequestStatusToJSON)(value['status']),
51
+ 'reason': value['reason'],
52
+ };
53
+ }
@@ -36,11 +36,16 @@ export * from './MigrationComplexityRequest.js';
36
36
  export * from './MigrationComplexityResponse.js';
37
37
  export * from './MigrationEstimationByComplexityResponse.js';
38
38
  export * from './MigrationEstimationRequest.js';
39
+ export * from './MigrationEstimationResponse.js';
39
40
  export * from './MigrationIssue.js';
40
41
  export * from './ModelError.js';
41
42
  export * from './Network.js';
42
43
  export * from './OsDiskEstimationEntry.js';
43
44
  export * from './OsInfo.js';
45
+ export * from './PartnerRequest.js';
46
+ export * from './PartnerRequestCreate.js';
47
+ export * from './PartnerRequestStatus.js';
48
+ export * from './PartnerRequestUpdate.js';
44
49
  export * from './PresignedUrl.js';
45
50
  export * from './SchemaEstimationResult.js';
46
51
  export * from './SizingOverCommitRatio.js';
@@ -54,11 +54,16 @@ __exportStar(require("./MigrationComplexityRequest.js"), exports);
54
54
  __exportStar(require("./MigrationComplexityResponse.js"), exports);
55
55
  __exportStar(require("./MigrationEstimationByComplexityResponse.js"), exports);
56
56
  __exportStar(require("./MigrationEstimationRequest.js"), exports);
57
+ __exportStar(require("./MigrationEstimationResponse.js"), exports);
57
58
  __exportStar(require("./MigrationIssue.js"), exports);
58
59
  __exportStar(require("./ModelError.js"), exports);
59
60
  __exportStar(require("./Network.js"), exports);
60
61
  __exportStar(require("./OsDiskEstimationEntry.js"), exports);
61
62
  __exportStar(require("./OsInfo.js"), exports);
63
+ __exportStar(require("./PartnerRequest.js"), exports);
64
+ __exportStar(require("./PartnerRequestCreate.js"), exports);
65
+ __exportStar(require("./PartnerRequestStatus.js"), exports);
66
+ __exportStar(require("./PartnerRequestUpdate.js"), exports);
62
67
  __exportStar(require("./PresignedUrl.js"), exports);
63
68
  __exportStar(require("./SchemaEstimationResult.js"), exports);
64
69
  __exportStar(require("./SizingOverCommitRatio.js"), exports);
@@ -169,7 +169,7 @@ No authorization required
169
169
 
170
170
  ## calculateMigrationEstimation
171
171
 
172
- > { [key: string]: SchemaEstimationResult; } calculateMigrationEstimation(id, migrationEstimationRequest)
172
+ > MigrationEstimationResponse calculateMigrationEstimation(id, migrationEstimationRequest)
173
173
 
174
174
 
175
175
 
@@ -217,7 +217,7 @@ example().catch(console.error);
217
217
 
218
218
  ### Return type
219
219
 
220
- [**{ [key: string]: SchemaEstimationResult; }**](SchemaEstimationResult.md)
220
+ [**MigrationEstimationResponse**](MigrationEstimationResponse.md)
221
221
 
222
222
  ### Authorization
223
223
 
@@ -0,0 +1,37 @@
1
+
2
+ # MigrationEstimationResponse
3
+
4
+ Migration estimation result, including per-schema results and the parameters used.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `estimation` | [{ [key: string]: SchemaEstimationResult; }](SchemaEstimationResult.md)
11
+ `estimationContext` | [EstimationContext](EstimationContext.md)
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { MigrationEstimationResponse } from '@openshift-migration-advisor/planner-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "estimation": null,
21
+ "estimationContext": null,
22
+ } satisfies MigrationEstimationResponse
23
+
24
+ console.log(example)
25
+
26
+ // Convert the instance to a JSON string
27
+ const exampleJSON: string = JSON.stringify(example)
28
+ console.log(exampleJSON)
29
+
30
+ // Parse the JSON string back to an object
31
+ const exampleParsed = JSON.parse(exampleJSON) as MigrationEstimationResponse
32
+ console.log(exampleParsed)
33
+ ```
34
+
35
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
36
+
37
+