@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.
- package/.openapi-generator/FILES +12 -0
- package/README.md +16 -2
- package/dist/apis/AccountApi.js +9 -9
- package/dist/apis/AssessmentApi.d.ts +5 -13
- package/dist/apis/AssessmentApi.js +8 -8
- package/dist/apis/ImageApi.js +2 -2
- package/dist/apis/JobApi.js +2 -2
- package/dist/apis/PartnerApi.d.ts +323 -0
- package/dist/apis/PartnerApi.js +379 -0
- package/dist/apis/SourceApi.js +4 -4
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AccountApi.js +9 -9
- package/dist/esm/apis/AssessmentApi.d.ts +5 -13
- package/dist/esm/apis/AssessmentApi.js +9 -9
- package/dist/esm/apis/ImageApi.js +2 -2
- package/dist/esm/apis/JobApi.js +2 -2
- package/dist/esm/apis/PartnerApi.d.ts +323 -0
- package/dist/esm/apis/PartnerApi.js +375 -0
- package/dist/esm/apis/SourceApi.js +4 -4
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/MigrationEstimationRequest.d.ts +1 -1
- package/dist/esm/models/MigrationEstimationResponse.d.ts +43 -0
- package/dist/esm/models/MigrationEstimationResponse.js +50 -0
- package/dist/esm/models/PartnerRequest.d.ts +99 -0
- package/dist/esm/models/PartnerRequest.js +82 -0
- package/dist/esm/models/PartnerRequestCreate.d.ts +56 -0
- package/dist/esm/models/PartnerRequestCreate.js +59 -0
- package/dist/esm/models/PartnerRequestStatus.d.ts +27 -0
- package/dist/esm/models/PartnerRequestStatus.js +45 -0
- package/dist/esm/models/PartnerRequestUpdate.d.ts +39 -0
- package/dist/esm/models/PartnerRequestUpdate.js +46 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/models/MigrationEstimationRequest.d.ts +1 -1
- package/dist/models/MigrationEstimationResponse.d.ts +43 -0
- package/dist/models/MigrationEstimationResponse.js +57 -0
- package/dist/models/PartnerRequest.d.ts +99 -0
- package/dist/models/PartnerRequest.js +89 -0
- package/dist/models/PartnerRequestCreate.d.ts +56 -0
- package/dist/models/PartnerRequestCreate.js +66 -0
- package/dist/models/PartnerRequestStatus.d.ts +27 -0
- package/dist/models/PartnerRequestStatus.js +53 -0
- package/dist/models/PartnerRequestUpdate.d.ts +39 -0
- package/dist/models/PartnerRequestUpdate.js +53 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/docs/AssessmentApi.md +2 -2
- package/docs/MigrationEstimationResponse.md +37 -0
- package/docs/PartnerApi.md +636 -0
- package/docs/PartnerRequest.md +56 -0
- package/docs/PartnerRequestCreate.md +42 -0
- package/docs/PartnerRequestStatus.md +32 -0
- package/docs/PartnerRequestUpdate.md +36 -0
- package/package.json +1 -1
- package/src/apis/AccountApi.ts +9 -9
- package/src/apis/AssessmentApi.ts +15 -15
- package/src/apis/ImageApi.ts +2 -2
- package/src/apis/JobApi.ts +2 -2
- package/src/apis/PartnerApi.ts +668 -0
- package/src/apis/SourceApi.ts +4 -4
- package/src/apis/index.ts +1 -0
- package/src/models/MigrationEstimationRequest.ts +1 -1
- package/src/models/MigrationEstimationResponse.ts +91 -0
- package/src/models/PartnerRequest.ts +172 -0
- package/src/models/PartnerRequestCreate.ts +102 -0
- package/src/models/PartnerRequestStatus.ts +55 -0
- package/src/models/PartnerRequestUpdate.ts +84 -0
- package/src/models/index.ts +5 -0
|
@@ -0,0 +1,82 @@
|
|
|
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 { PartnerRequestStatusFromJSON, PartnerRequestStatusToJSON, } from './PartnerRequestStatus.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PartnerRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPartnerRequest(value) {
|
|
19
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('username' in value) || value['username'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('partnerId' in value) || value['partnerId'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('requestStatus' in value) || value['requestStatus'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('contactName' in value) || value['contactName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('contactPhone' in value) || value['contactPhone'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('location' in value) || value['location'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
export function PartnerRequestFromJSON(json) {
|
|
40
|
+
return PartnerRequestFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function PartnerRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'username': json['username'],
|
|
49
|
+
'partnerId': json['partnerId'],
|
|
50
|
+
'requestStatus': PartnerRequestStatusFromJSON(json['requestStatus']),
|
|
51
|
+
'name': json['name'],
|
|
52
|
+
'contactName': json['contactName'],
|
|
53
|
+
'contactPhone': json['contactPhone'],
|
|
54
|
+
'email': json['email'],
|
|
55
|
+
'location': json['location'],
|
|
56
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
57
|
+
'acceptedAt': json['acceptedAt'] == null ? undefined : (new Date(json['acceptedAt'])),
|
|
58
|
+
'terminatedAt': json['terminatedAt'] == null ? undefined : (new Date(json['terminatedAt'])),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export function PartnerRequestToJSON(json) {
|
|
62
|
+
return PartnerRequestToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
export function PartnerRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'id': value['id'],
|
|
70
|
+
'username': value['username'],
|
|
71
|
+
'partnerId': value['partnerId'],
|
|
72
|
+
'requestStatus': PartnerRequestStatusToJSON(value['requestStatus']),
|
|
73
|
+
'name': value['name'],
|
|
74
|
+
'contactName': value['contactName'],
|
|
75
|
+
'contactPhone': value['contactPhone'],
|
|
76
|
+
'email': value['email'],
|
|
77
|
+
'location': value['location'],
|
|
78
|
+
'reason': value['reason'],
|
|
79
|
+
'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
|
|
80
|
+
'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -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,59 @@
|
|
|
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 PartnerRequestCreate interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPartnerRequestCreate(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('contactName' in value) || value['contactName'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('contactPhone' in value) || value['contactPhone'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('location' in value) || value['location'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function PartnerRequestCreateFromJSON(json) {
|
|
31
|
+
return PartnerRequestCreateFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function PartnerRequestCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
'contactName': json['contactName'],
|
|
40
|
+
'contactPhone': json['contactPhone'],
|
|
41
|
+
'email': json['email'],
|
|
42
|
+
'location': json['location'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function PartnerRequestCreateToJSON(json) {
|
|
46
|
+
return PartnerRequestCreateToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function PartnerRequestCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'name': value['name'],
|
|
54
|
+
'contactName': value['contactName'],
|
|
55
|
+
'contactPhone': value['contactPhone'],
|
|
56
|
+
'email': value['email'],
|
|
57
|
+
'location': value['location'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -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,45 @@
|
|
|
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
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const PartnerRequestStatus = {
|
|
19
|
+
Pending: 'pending',
|
|
20
|
+
Accepted: 'accepted',
|
|
21
|
+
Rejected: 'rejected',
|
|
22
|
+
Cancelled: 'cancelled'
|
|
23
|
+
};
|
|
24
|
+
export function instanceOfPartnerRequestStatus(value) {
|
|
25
|
+
for (const key in PartnerRequestStatus) {
|
|
26
|
+
if (Object.prototype.hasOwnProperty.call(PartnerRequestStatus, key)) {
|
|
27
|
+
if (PartnerRequestStatus[key] === value) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
export function PartnerRequestStatusFromJSON(json) {
|
|
35
|
+
return PartnerRequestStatusFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function PartnerRequestStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
export function PartnerRequestStatusToJSON(value) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
export function PartnerRequestStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
@@ -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,46 @@
|
|
|
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 { PartnerRequestStatusFromJSON, PartnerRequestStatusToJSON, } from './PartnerRequestStatus.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PartnerRequestUpdate interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPartnerRequestUpdate(value) {
|
|
19
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function PartnerRequestUpdateFromJSON(json) {
|
|
24
|
+
return PartnerRequestUpdateFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function PartnerRequestUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'status': PartnerRequestStatusFromJSON(json['status']),
|
|
32
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function PartnerRequestUpdateToJSON(json) {
|
|
36
|
+
return PartnerRequestUpdateToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function PartnerRequestUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'status': PartnerRequestStatusToJSON(value['status']),
|
|
44
|
+
'reason': value['reason'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -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';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -38,11 +38,16 @@ export * from './MigrationComplexityRequest.js';
|
|
|
38
38
|
export * from './MigrationComplexityResponse.js';
|
|
39
39
|
export * from './MigrationEstimationByComplexityResponse.js';
|
|
40
40
|
export * from './MigrationEstimationRequest.js';
|
|
41
|
+
export * from './MigrationEstimationResponse.js';
|
|
41
42
|
export * from './MigrationIssue.js';
|
|
42
43
|
export * from './ModelError.js';
|
|
43
44
|
export * from './Network.js';
|
|
44
45
|
export * from './OsDiskEstimationEntry.js';
|
|
45
46
|
export * from './OsInfo.js';
|
|
47
|
+
export * from './PartnerRequest.js';
|
|
48
|
+
export * from './PartnerRequestCreate.js';
|
|
49
|
+
export * from './PartnerRequestStatus.js';
|
|
50
|
+
export * from './PartnerRequestUpdate.js';
|
|
46
51
|
export * from './PresignedUrl.js';
|
|
47
52
|
export * from './SchemaEstimationResult.js';
|
|
48
53
|
export * from './SizingOverCommitRatio.js';
|
|
@@ -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
|
|
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,99 @@
|
|
|
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 PartnerRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface PartnerRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PartnerRequest
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PartnerRequest
|
|
29
|
+
*/
|
|
30
|
+
username: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PartnerRequest
|
|
35
|
+
*/
|
|
36
|
+
partnerId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {PartnerRequestStatus}
|
|
40
|
+
* @memberof PartnerRequest
|
|
41
|
+
*/
|
|
42
|
+
requestStatus: PartnerRequestStatus;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PartnerRequest
|
|
47
|
+
*/
|
|
48
|
+
name: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof PartnerRequest
|
|
53
|
+
*/
|
|
54
|
+
contactName: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof PartnerRequest
|
|
59
|
+
*/
|
|
60
|
+
contactPhone: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof PartnerRequest
|
|
65
|
+
*/
|
|
66
|
+
email: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof PartnerRequest
|
|
71
|
+
*/
|
|
72
|
+
location: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof PartnerRequest
|
|
77
|
+
*/
|
|
78
|
+
reason?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Date}
|
|
82
|
+
* @memberof PartnerRequest
|
|
83
|
+
*/
|
|
84
|
+
acceptedAt?: Date | null;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {Date}
|
|
88
|
+
* @memberof PartnerRequest
|
|
89
|
+
*/
|
|
90
|
+
terminatedAt?: Date | null;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Check if a given object implements the PartnerRequest interface.
|
|
94
|
+
*/
|
|
95
|
+
export declare function instanceOfPartnerRequest(value: object): value is PartnerRequest;
|
|
96
|
+
export declare function PartnerRequestFromJSON(json: any): PartnerRequest;
|
|
97
|
+
export declare function PartnerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerRequest;
|
|
98
|
+
export declare function PartnerRequestToJSON(json: any): PartnerRequest;
|
|
99
|
+
export declare function PartnerRequestToJSONTyped(value?: PartnerRequest | null, ignoreDiscriminator?: boolean): any;
|