@openshift-migration-advisor/planner-sdk 0.5.0-c546f50341aa → 0.5.1-b1cf34547cfc

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 (38) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +6 -2
  3. package/dist/apis/AssessmentApi.d.ts +38 -1
  4. package/dist/apis/AssessmentApi.js +44 -0
  5. package/dist/esm/apis/AssessmentApi.d.ts +38 -1
  6. package/dist/esm/apis/AssessmentApi.js +45 -1
  7. package/dist/esm/models/EstimationDetail.d.ts +38 -0
  8. package/dist/esm/models/EstimationDetail.js +47 -0
  9. package/dist/esm/models/MigrationEstimationRequest.d.ts +32 -0
  10. package/dist/esm/models/MigrationEstimationRequest.js +43 -0
  11. package/dist/esm/models/MigrationEstimationResponse.d.ts +41 -0
  12. package/dist/esm/models/MigrationEstimationResponse.js +49 -0
  13. package/dist/esm/models/ModelError.d.ts +0 -6
  14. package/dist/esm/models/ModelError.js +0 -2
  15. package/dist/esm/models/index.d.ts +3 -0
  16. package/dist/esm/models/index.js +3 -0
  17. package/dist/models/EstimationDetail.d.ts +38 -0
  18. package/dist/models/EstimationDetail.js +54 -0
  19. package/dist/models/MigrationEstimationRequest.d.ts +32 -0
  20. package/dist/models/MigrationEstimationRequest.js +50 -0
  21. package/dist/models/MigrationEstimationResponse.d.ts +41 -0
  22. package/dist/models/MigrationEstimationResponse.js +56 -0
  23. package/dist/models/ModelError.d.ts +0 -6
  24. package/dist/models/ModelError.js +0 -2
  25. package/dist/models/index.d.ts +3 -0
  26. package/dist/models/index.js +3 -0
  27. package/docs/AssessmentApi.md +76 -0
  28. package/docs/EstimationDetail.md +37 -0
  29. package/docs/MigrationEstimationRequest.md +35 -0
  30. package/docs/MigrationEstimationResponse.md +37 -0
  31. package/docs/ModelError.md +0 -2
  32. package/package.json +1 -1
  33. package/src/apis/AssessmentApi.ts +90 -0
  34. package/src/models/EstimationDetail.ts +75 -0
  35. package/src/models/MigrationEstimationRequest.ts +66 -0
  36. package/src/models/MigrationEstimationResponse.ts +83 -0
  37. package/src/models/ModelError.ts +0 -8
  38. package/src/models/index.ts +3 -0
@@ -14,6 +14,7 @@ docs/ClusterSizing.md
14
14
  docs/Datastore.md
15
15
  docs/DiskSizeTierSummary.md
16
16
  docs/DiskTypeSummary.md
17
+ docs/EstimationDetail.md
17
18
  docs/HealthApi.md
18
19
  docs/Histogram.md
19
20
  docs/Host.md
@@ -29,6 +30,8 @@ docs/Job.md
29
30
  docs/JobApi.md
30
31
  docs/JobStatus.md
31
32
  docs/Label.md
33
+ docs/MigrationEstimationRequest.md
34
+ docs/MigrationEstimationResponse.md
32
35
  docs/MigrationIssue.md
33
36
  docs/ModelError.md
34
37
  docs/Network.md
@@ -69,6 +72,7 @@ src/models/ClusterSizing.ts
69
72
  src/models/Datastore.ts
70
73
  src/models/DiskSizeTierSummary.ts
71
74
  src/models/DiskTypeSummary.ts
75
+ src/models/EstimationDetail.ts
72
76
  src/models/Histogram.ts
73
77
  src/models/Host.ts
74
78
  src/models/Info.ts
@@ -80,6 +84,8 @@ src/models/Ipv4Config.ts
80
84
  src/models/Job.ts
81
85
  src/models/JobStatus.ts
82
86
  src/models/Label.ts
87
+ src/models/MigrationEstimationRequest.ts
88
+ src/models/MigrationEstimationResponse.ts
83
89
  src/models/MigrationIssue.ts
84
90
  src/models/ModelError.ts
85
91
  src/models/Network.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/planner-sdk@0.5.0-c546f50341aa
1
+ # @openshift-migration-advisor/planner-sdk@0.5.1-b1cf34547cfc
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -53,6 +53,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
53
53
  | Class | Method | HTTP request | Description
54
54
  | ----- | ------ | ------------ | -------------
55
55
  *AssessmentApi* | [**calculateAssessmentClusterRequirements**](docs/AssessmentApi.md#calculateassessmentclusterrequirements) | **POST** /api/v1/assessments/{id}/cluster-requirements |
56
+ *AssessmentApi* | [**calculateMigrationEstimation**](docs/AssessmentApi.md#calculatemigrationestimation) | **POST** /api/v1/assessments/{id}/migration-estimation |
56
57
  *AssessmentApi* | [**createAssessment**](docs/AssessmentApi.md#createassessment) | **POST** /api/v1/assessments |
57
58
  *AssessmentApi* | [**deleteAssessment**](docs/AssessmentApi.md#deleteassessment) | **DELETE** /api/v1/assessments/{id} |
58
59
  *AssessmentApi* | [**getAssessment**](docs/AssessmentApi.md#getassessment) | **GET** /api/v1/assessments/{id} |
@@ -87,6 +88,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
87
88
  - [Datastore](docs/Datastore.md)
88
89
  - [DiskSizeTierSummary](docs/DiskSizeTierSummary.md)
89
90
  - [DiskTypeSummary](docs/DiskTypeSummary.md)
91
+ - [EstimationDetail](docs/EstimationDetail.md)
90
92
  - [Histogram](docs/Histogram.md)
91
93
  - [Host](docs/Host.md)
92
94
  - [Info](docs/Info.md)
@@ -98,6 +100,8 @@ All URIs are relative to *https://raw.githubusercontent.com*
98
100
  - [Job](docs/Job.md)
99
101
  - [JobStatus](docs/JobStatus.md)
100
102
  - [Label](docs/Label.md)
103
+ - [MigrationEstimationRequest](docs/MigrationEstimationRequest.md)
104
+ - [MigrationEstimationResponse](docs/MigrationEstimationResponse.md)
101
105
  - [MigrationIssue](docs/MigrationIssue.md)
102
106
  - [ModelError](docs/ModelError.md)
103
107
  - [Network](docs/Network.md)
@@ -130,7 +134,7 @@ and is automatically generated by the
130
134
  [OpenAPI Generator](https://openapi-generator.tech) project:
131
135
 
132
136
  - API version: `undefined`
133
- - Package version: `0.5.0-c546f50341aa`
137
+ - Package version: `0.5.1-b1cf34547cfc`
134
138
  - Generator version: `7.21.0-SNAPSHOT`
135
139
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
136
140
 
@@ -10,11 +10,15 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse } from '../models/index.js';
13
+ import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, MigrationEstimationRequest, MigrationEstimationResponse } from '../models/index.js';
14
14
  export interface CalculateAssessmentClusterRequirementsRequest {
15
15
  id: string;
16
16
  clusterRequirementsRequest: ClusterRequirementsRequest;
17
17
  }
18
+ export interface CalculateMigrationEstimationRequest {
19
+ id: string;
20
+ migrationEstimationRequest: MigrationEstimationRequest;
21
+ }
18
22
  export interface CreateAssessmentRequest {
19
23
  assessmentForm: AssessmentForm;
20
24
  }
@@ -59,6 +63,27 @@ export interface AssessmentApiInterface {
59
63
  * Calculate cluster requirements for an assessment
60
64
  */
61
65
  calculateAssessmentClusterRequirements(requestParameters: CalculateAssessmentClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClusterRequirementsResponse>;
66
+ /**
67
+ * Creates request options for calculateMigrationEstimation without sending the request
68
+ * @param {string} id ID of the assessment
69
+ * @param {MigrationEstimationRequest} migrationEstimationRequest
70
+ * @throws {RequiredError}
71
+ * @memberof AssessmentApiInterface
72
+ */
73
+ calculateMigrationEstimationRequestOpts(requestParameters: CalculateMigrationEstimationRequest): Promise<runtime.RequestOpts>;
74
+ /**
75
+ * Calculate migration time estimation for an assessment
76
+ * @param {string} id ID of the assessment
77
+ * @param {MigrationEstimationRequest} migrationEstimationRequest
78
+ * @param {*} [options] Override http request option.
79
+ * @throws {RequiredError}
80
+ * @memberof AssessmentApiInterface
81
+ */
82
+ calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>>;
83
+ /**
84
+ * Calculate migration time estimation for an assessment
85
+ */
86
+ calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse>;
62
87
  /**
63
88
  * Creates request options for createAssessment without sending the request
64
89
  * @param {AssessmentForm} assessmentForm
@@ -173,6 +198,18 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
173
198
  * Calculate cluster requirements for an assessment
174
199
  */
175
200
  calculateAssessmentClusterRequirements(requestParameters: CalculateAssessmentClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClusterRequirementsResponse>;
201
+ /**
202
+ * Creates request options for calculateMigrationEstimation without sending the request
203
+ */
204
+ calculateMigrationEstimationRequestOpts(requestParameters: CalculateMigrationEstimationRequest): Promise<runtime.RequestOpts>;
205
+ /**
206
+ * Calculate migration time estimation for an assessment
207
+ */
208
+ calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>>;
209
+ /**
210
+ * Calculate migration time estimation for an assessment
211
+ */
212
+ calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse>;
176
213
  /**
177
214
  * Creates request options for createAssessment without sending the request
178
215
  */
@@ -73,6 +73,50 @@ class AssessmentApi extends runtime.BaseAPI {
73
73
  return yield response.value();
74
74
  });
75
75
  }
76
+ /**
77
+ * Creates request options for calculateMigrationEstimation without sending the request
78
+ */
79
+ calculateMigrationEstimationRequestOpts(requestParameters) {
80
+ return __awaiter(this, void 0, void 0, function* () {
81
+ if (requestParameters['id'] == null) {
82
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling calculateMigrationEstimation().');
83
+ }
84
+ if (requestParameters['migrationEstimationRequest'] == null) {
85
+ throw new runtime.RequiredError('migrationEstimationRequest', 'Required parameter "migrationEstimationRequest" was null or undefined when calling calculateMigrationEstimation().');
86
+ }
87
+ const queryParameters = {};
88
+ const headerParameters = {};
89
+ headerParameters['Content-Type'] = 'application/json';
90
+ let urlPath = `/api/v1/assessments/{id}/migration-estimation`;
91
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
92
+ return {
93
+ path: urlPath,
94
+ method: 'POST',
95
+ headers: headerParameters,
96
+ query: queryParameters,
97
+ body: (0, index_js_1.MigrationEstimationRequestToJSON)(requestParameters['migrationEstimationRequest']),
98
+ };
99
+ });
100
+ }
101
+ /**
102
+ * Calculate migration time estimation for an assessment
103
+ */
104
+ calculateMigrationEstimationRaw(requestParameters, initOverrides) {
105
+ return __awaiter(this, void 0, void 0, function* () {
106
+ const requestOptions = yield this.calculateMigrationEstimationRequestOpts(requestParameters);
107
+ const response = yield this.request(requestOptions, initOverrides);
108
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.MigrationEstimationResponseFromJSON)(jsonValue));
109
+ });
110
+ }
111
+ /**
112
+ * Calculate migration time estimation for an assessment
113
+ */
114
+ calculateMigrationEstimation(requestParameters, initOverrides) {
115
+ return __awaiter(this, void 0, void 0, function* () {
116
+ const response = yield this.calculateMigrationEstimationRaw(requestParameters, initOverrides);
117
+ return yield response.value();
118
+ });
119
+ }
76
120
  /**
77
121
  * Creates request options for createAssessment without sending the request
78
122
  */
@@ -10,11 +10,15 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse } from '../models/index.js';
13
+ import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, MigrationEstimationRequest, MigrationEstimationResponse } from '../models/index.js';
14
14
  export interface CalculateAssessmentClusterRequirementsRequest {
15
15
  id: string;
16
16
  clusterRequirementsRequest: ClusterRequirementsRequest;
17
17
  }
18
+ export interface CalculateMigrationEstimationRequest {
19
+ id: string;
20
+ migrationEstimationRequest: MigrationEstimationRequest;
21
+ }
18
22
  export interface CreateAssessmentRequest {
19
23
  assessmentForm: AssessmentForm;
20
24
  }
@@ -59,6 +63,27 @@ export interface AssessmentApiInterface {
59
63
  * Calculate cluster requirements for an assessment
60
64
  */
61
65
  calculateAssessmentClusterRequirements(requestParameters: CalculateAssessmentClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClusterRequirementsResponse>;
66
+ /**
67
+ * Creates request options for calculateMigrationEstimation without sending the request
68
+ * @param {string} id ID of the assessment
69
+ * @param {MigrationEstimationRequest} migrationEstimationRequest
70
+ * @throws {RequiredError}
71
+ * @memberof AssessmentApiInterface
72
+ */
73
+ calculateMigrationEstimationRequestOpts(requestParameters: CalculateMigrationEstimationRequest): Promise<runtime.RequestOpts>;
74
+ /**
75
+ * Calculate migration time estimation for an assessment
76
+ * @param {string} id ID of the assessment
77
+ * @param {MigrationEstimationRequest} migrationEstimationRequest
78
+ * @param {*} [options] Override http request option.
79
+ * @throws {RequiredError}
80
+ * @memberof AssessmentApiInterface
81
+ */
82
+ calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>>;
83
+ /**
84
+ * Calculate migration time estimation for an assessment
85
+ */
86
+ calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse>;
62
87
  /**
63
88
  * Creates request options for createAssessment without sending the request
64
89
  * @param {AssessmentForm} assessmentForm
@@ -173,6 +198,18 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
173
198
  * Calculate cluster requirements for an assessment
174
199
  */
175
200
  calculateAssessmentClusterRequirements(requestParameters: CalculateAssessmentClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClusterRequirementsResponse>;
201
+ /**
202
+ * Creates request options for calculateMigrationEstimation without sending the request
203
+ */
204
+ calculateMigrationEstimationRequestOpts(requestParameters: CalculateMigrationEstimationRequest): Promise<runtime.RequestOpts>;
205
+ /**
206
+ * Calculate migration time estimation for an assessment
207
+ */
208
+ calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>>;
209
+ /**
210
+ * Calculate migration time estimation for an assessment
211
+ */
212
+ calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse>;
176
213
  /**
177
214
  * Creates request options for createAssessment without sending the request
178
215
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { AssessmentFromJSON, AssessmentFormToJSON, AssessmentUpdateToJSON, ClusterRequirementsRequestToJSON, ClusterRequirementsResponseFromJSON, } from '../models/index.js';
24
+ import { AssessmentFromJSON, AssessmentFormToJSON, AssessmentUpdateToJSON, ClusterRequirementsRequestToJSON, ClusterRequirementsResponseFromJSON, MigrationEstimationRequestToJSON, MigrationEstimationResponseFromJSON, } from '../models/index.js';
25
25
  /**
26
26
  *
27
27
  */
@@ -70,6 +70,50 @@ export class AssessmentApi extends runtime.BaseAPI {
70
70
  return yield response.value();
71
71
  });
72
72
  }
73
+ /**
74
+ * Creates request options for calculateMigrationEstimation without sending the request
75
+ */
76
+ calculateMigrationEstimationRequestOpts(requestParameters) {
77
+ return __awaiter(this, void 0, void 0, function* () {
78
+ if (requestParameters['id'] == null) {
79
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling calculateMigrationEstimation().');
80
+ }
81
+ if (requestParameters['migrationEstimationRequest'] == null) {
82
+ throw new runtime.RequiredError('migrationEstimationRequest', 'Required parameter "migrationEstimationRequest" was null or undefined when calling calculateMigrationEstimation().');
83
+ }
84
+ const queryParameters = {};
85
+ const headerParameters = {};
86
+ headerParameters['Content-Type'] = 'application/json';
87
+ let urlPath = `/api/v1/assessments/{id}/migration-estimation`;
88
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
89
+ return {
90
+ path: urlPath,
91
+ method: 'POST',
92
+ headers: headerParameters,
93
+ query: queryParameters,
94
+ body: MigrationEstimationRequestToJSON(requestParameters['migrationEstimationRequest']),
95
+ };
96
+ });
97
+ }
98
+ /**
99
+ * Calculate migration time estimation for an assessment
100
+ */
101
+ calculateMigrationEstimationRaw(requestParameters, initOverrides) {
102
+ return __awaiter(this, void 0, void 0, function* () {
103
+ const requestOptions = yield this.calculateMigrationEstimationRequestOpts(requestParameters);
104
+ const response = yield this.request(requestOptions, initOverrides);
105
+ return new runtime.JSONApiResponse(response, (jsonValue) => MigrationEstimationResponseFromJSON(jsonValue));
106
+ });
107
+ }
108
+ /**
109
+ * Calculate migration time estimation for an assessment
110
+ */
111
+ calculateMigrationEstimation(requestParameters, initOverrides) {
112
+ return __awaiter(this, void 0, void 0, function* () {
113
+ const response = yield this.calculateMigrationEstimationRaw(requestParameters, initOverrides);
114
+ return yield response.value();
115
+ });
116
+ }
73
117
  /**
74
118
  * Creates request options for createAssessment without sending the request
75
119
  */
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Migration Planner 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
+ * Detailed estimation result from a single calculator
14
+ * @export
15
+ * @interface EstimationDetail
16
+ */
17
+ export interface EstimationDetail {
18
+ /**
19
+ * Estimated duration for this component (formatted as duration string)
20
+ * @type {string}
21
+ * @memberof EstimationDetail
22
+ */
23
+ duration: string;
24
+ /**
25
+ * Explanation of how the estimation was calculated
26
+ * @type {string}
27
+ * @memberof EstimationDetail
28
+ */
29
+ reason: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the EstimationDetail interface.
33
+ */
34
+ export declare function instanceOfEstimationDetail(value: object): value is EstimationDetail;
35
+ export declare function EstimationDetailFromJSON(json: any): EstimationDetail;
36
+ export declare function EstimationDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): EstimationDetail;
37
+ export declare function EstimationDetailToJSON(json: any): EstimationDetail;
38
+ export declare function EstimationDetailToJSONTyped(value?: EstimationDetail | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Migration Planner 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 EstimationDetail interface.
16
+ */
17
+ export function instanceOfEstimationDetail(value) {
18
+ if (!('duration' in value) || value['duration'] === undefined)
19
+ return false;
20
+ if (!('reason' in value) || value['reason'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function EstimationDetailFromJSON(json) {
25
+ return EstimationDetailFromJSONTyped(json, false);
26
+ }
27
+ export function EstimationDetailFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'duration': json['duration'],
33
+ 'reason': json['reason'],
34
+ };
35
+ }
36
+ export function EstimationDetailToJSON(json) {
37
+ return EstimationDetailToJSONTyped(json, false);
38
+ }
39
+ export function EstimationDetailToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'duration': value['duration'],
45
+ 'reason': value['reason'],
46
+ };
47
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Migration Planner 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
+ * Request payload for calculating migration time estimation
14
+ * @export
15
+ * @interface MigrationEstimationRequest
16
+ */
17
+ export interface MigrationEstimationRequest {
18
+ /**
19
+ * ID of the cluster to calculate migration estimation for
20
+ * @type {string}
21
+ * @memberof MigrationEstimationRequest
22
+ */
23
+ clusterId: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the MigrationEstimationRequest interface.
27
+ */
28
+ export declare function instanceOfMigrationEstimationRequest(value: object): value is MigrationEstimationRequest;
29
+ export declare function MigrationEstimationRequestFromJSON(json: any): MigrationEstimationRequest;
30
+ export declare function MigrationEstimationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationEstimationRequest;
31
+ export declare function MigrationEstimationRequestToJSON(json: any): MigrationEstimationRequest;
32
+ export declare function MigrationEstimationRequestToJSONTyped(value?: MigrationEstimationRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Migration Planner 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 MigrationEstimationRequest interface.
16
+ */
17
+ export function instanceOfMigrationEstimationRequest(value) {
18
+ if (!('clusterId' in value) || value['clusterId'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function MigrationEstimationRequestFromJSON(json) {
23
+ return MigrationEstimationRequestFromJSONTyped(json, false);
24
+ }
25
+ export function MigrationEstimationRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'clusterId': json['clusterId'],
31
+ };
32
+ }
33
+ export function MigrationEstimationRequestToJSON(json) {
34
+ return MigrationEstimationRequestToJSONTyped(json, false);
35
+ }
36
+ export function MigrationEstimationRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'clusterId': value['clusterId'],
42
+ };
43
+ }
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Migration Planner 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 { EstimationDetail } from './EstimationDetail.js';
13
+ /**
14
+ * Migration time estimation results
15
+ * @export
16
+ * @interface MigrationEstimationResponse
17
+ */
18
+ export interface MigrationEstimationResponse {
19
+ /**
20
+ * Total estimated migration duration (formatted as duration string, e.g., "2h30m")
21
+ * @type {string}
22
+ * @memberof MigrationEstimationResponse
23
+ */
24
+ totalDuration: string;
25
+ /**
26
+ * Breakdown of estimation by calculator
27
+ * @type {{ [key: string]: EstimationDetail; }}
28
+ * @memberof MigrationEstimationResponse
29
+ */
30
+ breakdown: {
31
+ [key: string]: EstimationDetail;
32
+ };
33
+ }
34
+ /**
35
+ * Check if a given object implements the MigrationEstimationResponse interface.
36
+ */
37
+ export declare function instanceOfMigrationEstimationResponse(value: object): value is MigrationEstimationResponse;
38
+ export declare function MigrationEstimationResponseFromJSON(json: any): MigrationEstimationResponse;
39
+ export declare function MigrationEstimationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationEstimationResponse;
40
+ export declare function MigrationEstimationResponseToJSON(json: any): MigrationEstimationResponse;
41
+ export declare function MigrationEstimationResponseToJSONTyped(value?: MigrationEstimationResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Migration Planner 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 { EstimationDetailFromJSON, EstimationDetailToJSON, } from './EstimationDetail.js';
16
+ /**
17
+ * Check if a given object implements the MigrationEstimationResponse interface.
18
+ */
19
+ export function instanceOfMigrationEstimationResponse(value) {
20
+ if (!('totalDuration' in value) || value['totalDuration'] === undefined)
21
+ return false;
22
+ if (!('breakdown' in value) || value['breakdown'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function MigrationEstimationResponseFromJSON(json) {
27
+ return MigrationEstimationResponseFromJSONTyped(json, false);
28
+ }
29
+ export function MigrationEstimationResponseFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'totalDuration': json['totalDuration'],
35
+ 'breakdown': (mapValues(json['breakdown'], EstimationDetailFromJSON)),
36
+ };
37
+ }
38
+ export function MigrationEstimationResponseToJSON(json) {
39
+ return MigrationEstimationResponseToJSONTyped(json, false);
40
+ }
41
+ export function MigrationEstimationResponseToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'totalDuration': value['totalDuration'],
47
+ 'breakdown': (mapValues(value['breakdown'], EstimationDetailToJSON)),
48
+ };
49
+ }
@@ -21,12 +21,6 @@ export interface ModelError {
21
21
  * @memberof ModelError
22
22
  */
23
23
  message: string;
24
- /**
25
- * Id of the request generating the error
26
- * @type {string}
27
- * @memberof ModelError
28
- */
29
- requestId?: string;
30
24
  }
31
25
  /**
32
26
  * Check if a given object implements the ModelError interface.
@@ -28,7 +28,6 @@ export function ModelErrorFromJSONTyped(json, ignoreDiscriminator) {
28
28
  }
29
29
  return {
30
30
  'message': json['message'],
31
- 'requestId': json['requestId'] == null ? undefined : json['requestId'],
32
31
  };
33
32
  }
34
33
  export function ModelErrorToJSON(json) {
@@ -40,6 +39,5 @@ export function ModelErrorToJSONTyped(value, ignoreDiscriminator = false) {
40
39
  }
41
40
  return {
42
41
  'message': value['message'],
43
- 'requestId': value['requestId'],
44
42
  };
45
43
  }
@@ -9,6 +9,7 @@ export * from './ClusterSizing.js';
9
9
  export * from './Datastore.js';
10
10
  export * from './DiskSizeTierSummary.js';
11
11
  export * from './DiskTypeSummary.js';
12
+ export * from './EstimationDetail.js';
12
13
  export * from './Histogram.js';
13
14
  export * from './Host.js';
14
15
  export * from './Info.js';
@@ -20,6 +21,8 @@ export * from './Ipv4Config.js';
20
21
  export * from './Job.js';
21
22
  export * from './JobStatus.js';
22
23
  export * from './Label.js';
24
+ export * from './MigrationEstimationRequest.js';
25
+ export * from './MigrationEstimationResponse.js';
23
26
  export * from './MigrationIssue.js';
24
27
  export * from './ModelError.js';
25
28
  export * from './Network.js';
@@ -11,6 +11,7 @@ export * from './ClusterSizing.js';
11
11
  export * from './Datastore.js';
12
12
  export * from './DiskSizeTierSummary.js';
13
13
  export * from './DiskTypeSummary.js';
14
+ export * from './EstimationDetail.js';
14
15
  export * from './Histogram.js';
15
16
  export * from './Host.js';
16
17
  export * from './Info.js';
@@ -22,6 +23,8 @@ export * from './Ipv4Config.js';
22
23
  export * from './Job.js';
23
24
  export * from './JobStatus.js';
24
25
  export * from './Label.js';
26
+ export * from './MigrationEstimationRequest.js';
27
+ export * from './MigrationEstimationResponse.js';
25
28
  export * from './MigrationIssue.js';
26
29
  export * from './ModelError.js';
27
30
  export * from './Network.js';