@openshift-migration-advisor/planner-sdk 0.10.0 → 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 +28 -0
- package/README.md +40 -11
- package/dist/apis/AccountApi.d.ts +390 -0
- package/dist/apis/AccountApi.js +454 -0
- 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 +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/AccountApi.d.ts +390 -0
- package/dist/esm/apis/AccountApi.js +450 -0
- 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 +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/Group.d.ts +82 -0
- package/dist/esm/models/Group.js +76 -0
- package/dist/esm/models/GroupCreate.d.ts +64 -0
- package/dist/esm/models/GroupCreate.js +66 -0
- package/dist/esm/models/GroupUpdate.d.ts +50 -0
- package/dist/esm/models/GroupUpdate.js +47 -0
- package/dist/esm/models/Identity.d.ts +60 -0
- package/dist/esm/models/Identity.js +60 -0
- package/dist/esm/models/Member.d.ts +56 -0
- package/dist/esm/models/Member.js +57 -0
- package/dist/esm/models/MemberCreate.d.ts +38 -0
- package/dist/esm/models/MemberCreate.js +47 -0
- package/dist/esm/models/MemberUpdate.d.ts +32 -0
- package/dist/esm/models/MemberUpdate.js +41 -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 +12 -0
- package/dist/esm/models/index.js +12 -0
- package/dist/models/Group.d.ts +82 -0
- package/dist/models/Group.js +84 -0
- package/dist/models/GroupCreate.d.ts +64 -0
- package/dist/models/GroupCreate.js +74 -0
- package/dist/models/GroupUpdate.d.ts +50 -0
- package/dist/models/GroupUpdate.js +54 -0
- package/dist/models/Identity.d.ts +60 -0
- package/dist/models/Identity.js +68 -0
- package/dist/models/Member.d.ts +56 -0
- package/dist/models/Member.js +64 -0
- package/dist/models/MemberCreate.d.ts +38 -0
- package/dist/models/MemberCreate.js +54 -0
- package/dist/models/MemberUpdate.d.ts +32 -0
- package/dist/models/MemberUpdate.js +48 -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 +12 -0
- package/dist/models/index.js +12 -0
- package/docs/AccountApi.md +734 -0
- package/docs/AssessmentApi.md +2 -2
- package/docs/Group.md +48 -0
- package/docs/GroupCreate.md +42 -0
- package/docs/GroupUpdate.md +40 -0
- package/docs/Identity.md +40 -0
- package/docs/Member.md +42 -0
- package/docs/MemberCreate.md +36 -0
- package/docs/MemberUpdate.md +34 -0
- 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 +834 -0
- 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 +2 -0
- package/src/models/Group.ts +139 -0
- package/src/models/GroupCreate.ts +113 -0
- package/src/models/GroupUpdate.ts +89 -0
- package/src/models/Identity.ts +104 -0
- package/src/models/Member.ts +101 -0
- package/src/models/MemberCreate.ts +75 -0
- package/src/models/MemberUpdate.ts +65 -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 +12 -0
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { SchemaEstimationResult } from './SchemaEstimationResult.js';
|
|
17
|
+
import {
|
|
18
|
+
SchemaEstimationResultFromJSON,
|
|
19
|
+
SchemaEstimationResultFromJSONTyped,
|
|
20
|
+
SchemaEstimationResultToJSON,
|
|
21
|
+
SchemaEstimationResultToJSONTyped,
|
|
22
|
+
} from './SchemaEstimationResult.js';
|
|
23
|
+
import type { EstimationContext } from './EstimationContext.js';
|
|
24
|
+
import {
|
|
25
|
+
EstimationContextFromJSON,
|
|
26
|
+
EstimationContextFromJSONTyped,
|
|
27
|
+
EstimationContextToJSON,
|
|
28
|
+
EstimationContextToJSONTyped,
|
|
29
|
+
} from './EstimationContext.js';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Migration estimation result, including per-schema results and the parameters used.
|
|
33
|
+
*
|
|
34
|
+
* @export
|
|
35
|
+
* @interface MigrationEstimationResponse
|
|
36
|
+
*/
|
|
37
|
+
export interface MigrationEstimationResponse {
|
|
38
|
+
/**
|
|
39
|
+
* Estimation results keyed by schema name (e.g. "network-based", "storage-offload").
|
|
40
|
+
* @type {{ [key: string]: SchemaEstimationResult; }}
|
|
41
|
+
* @memberof MigrationEstimationResponse
|
|
42
|
+
*/
|
|
43
|
+
estimation: { [key: string]: SchemaEstimationResult; };
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {EstimationContext}
|
|
47
|
+
* @memberof MigrationEstimationResponse
|
|
48
|
+
*/
|
|
49
|
+
estimationContext: EstimationContext;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the MigrationEstimationResponse interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfMigrationEstimationResponse(value: object): value is MigrationEstimationResponse {
|
|
56
|
+
if (!('estimation' in value) || value['estimation'] === undefined) return false;
|
|
57
|
+
if (!('estimationContext' in value) || value['estimationContext'] === undefined) return false;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function MigrationEstimationResponseFromJSON(json: any): MigrationEstimationResponse {
|
|
62
|
+
return MigrationEstimationResponseFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function MigrationEstimationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationEstimationResponse {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'estimation': (mapValues(json['estimation'], SchemaEstimationResultFromJSON)),
|
|
72
|
+
'estimationContext': EstimationContextFromJSON(json['estimationContext']),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function MigrationEstimationResponseToJSON(json: any): MigrationEstimationResponse {
|
|
77
|
+
return MigrationEstimationResponseToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function MigrationEstimationResponseToJSONTyped(value?: MigrationEstimationResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'estimation': (mapValues(value['estimation'], SchemaEstimationResultToJSON)),
|
|
88
|
+
'estimationContext': EstimationContextToJSON(value['estimationContext']),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,172 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { PartnerRequestStatus } from './PartnerRequestStatus.js';
|
|
17
|
+
import {
|
|
18
|
+
PartnerRequestStatusFromJSON,
|
|
19
|
+
PartnerRequestStatusFromJSONTyped,
|
|
20
|
+
PartnerRequestStatusToJSON,
|
|
21
|
+
PartnerRequestStatusToJSONTyped,
|
|
22
|
+
} from './PartnerRequestStatus.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PartnerRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface PartnerRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PartnerRequest
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PartnerRequest
|
|
40
|
+
*/
|
|
41
|
+
username: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PartnerRequest
|
|
46
|
+
*/
|
|
47
|
+
partnerId: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {PartnerRequestStatus}
|
|
51
|
+
* @memberof PartnerRequest
|
|
52
|
+
*/
|
|
53
|
+
requestStatus: PartnerRequestStatus;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof PartnerRequest
|
|
58
|
+
*/
|
|
59
|
+
name: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof PartnerRequest
|
|
64
|
+
*/
|
|
65
|
+
contactName: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof PartnerRequest
|
|
70
|
+
*/
|
|
71
|
+
contactPhone: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof PartnerRequest
|
|
76
|
+
*/
|
|
77
|
+
email: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof PartnerRequest
|
|
82
|
+
*/
|
|
83
|
+
location: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof PartnerRequest
|
|
88
|
+
*/
|
|
89
|
+
reason?: string | null;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {Date}
|
|
93
|
+
* @memberof PartnerRequest
|
|
94
|
+
*/
|
|
95
|
+
acceptedAt?: Date | null;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {Date}
|
|
99
|
+
* @memberof PartnerRequest
|
|
100
|
+
*/
|
|
101
|
+
terminatedAt?: Date | null;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Check if a given object implements the PartnerRequest interface.
|
|
108
|
+
*/
|
|
109
|
+
export function instanceOfPartnerRequest(value: object): value is PartnerRequest {
|
|
110
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
111
|
+
if (!('username' in value) || value['username'] === undefined) return false;
|
|
112
|
+
if (!('partnerId' in value) || value['partnerId'] === undefined) return false;
|
|
113
|
+
if (!('requestStatus' in value) || value['requestStatus'] === undefined) return false;
|
|
114
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
115
|
+
if (!('contactName' in value) || value['contactName'] === undefined) return false;
|
|
116
|
+
if (!('contactPhone' in value) || value['contactPhone'] === undefined) return false;
|
|
117
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
118
|
+
if (!('location' in value) || value['location'] === undefined) return false;
|
|
119
|
+
return true;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function PartnerRequestFromJSON(json: any): PartnerRequest {
|
|
123
|
+
return PartnerRequestFromJSONTyped(json, false);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function PartnerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerRequest {
|
|
127
|
+
if (json == null) {
|
|
128
|
+
return json;
|
|
129
|
+
}
|
|
130
|
+
return {
|
|
131
|
+
|
|
132
|
+
'id': json['id'],
|
|
133
|
+
'username': json['username'],
|
|
134
|
+
'partnerId': json['partnerId'],
|
|
135
|
+
'requestStatus': PartnerRequestStatusFromJSON(json['requestStatus']),
|
|
136
|
+
'name': json['name'],
|
|
137
|
+
'contactName': json['contactName'],
|
|
138
|
+
'contactPhone': json['contactPhone'],
|
|
139
|
+
'email': json['email'],
|
|
140
|
+
'location': json['location'],
|
|
141
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
142
|
+
'acceptedAt': json['acceptedAt'] == null ? undefined : (new Date(json['acceptedAt'])),
|
|
143
|
+
'terminatedAt': json['terminatedAt'] == null ? undefined : (new Date(json['terminatedAt'])),
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function PartnerRequestToJSON(json: any): PartnerRequest {
|
|
148
|
+
return PartnerRequestToJSONTyped(json, false);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export function PartnerRequestToJSONTyped(value?: PartnerRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
152
|
+
if (value == null) {
|
|
153
|
+
return value;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
return {
|
|
157
|
+
|
|
158
|
+
'id': value['id'],
|
|
159
|
+
'username': value['username'],
|
|
160
|
+
'partnerId': value['partnerId'],
|
|
161
|
+
'requestStatus': PartnerRequestStatusToJSON(value['requestStatus']),
|
|
162
|
+
'name': value['name'],
|
|
163
|
+
'contactName': value['contactName'],
|
|
164
|
+
'contactPhone': value['contactPhone'],
|
|
165
|
+
'email': value['email'],
|
|
166
|
+
'location': value['location'],
|
|
167
|
+
'reason': value['reason'],
|
|
168
|
+
'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
|
|
169
|
+
'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PartnerRequestCreate
|
|
20
|
+
*/
|
|
21
|
+
export interface PartnerRequestCreate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PartnerRequestCreate
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PartnerRequestCreate
|
|
32
|
+
*/
|
|
33
|
+
contactName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PartnerRequestCreate
|
|
38
|
+
*/
|
|
39
|
+
contactPhone: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PartnerRequestCreate
|
|
44
|
+
*/
|
|
45
|
+
email: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof PartnerRequestCreate
|
|
50
|
+
*/
|
|
51
|
+
location: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the PartnerRequestCreate interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfPartnerRequestCreate(value: object): value is PartnerRequestCreate {
|
|
58
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
59
|
+
if (!('contactName' in value) || value['contactName'] === undefined) return false;
|
|
60
|
+
if (!('contactPhone' in value) || value['contactPhone'] === undefined) return false;
|
|
61
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
62
|
+
if (!('location' in value) || value['location'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function PartnerRequestCreateFromJSON(json: any): PartnerRequestCreate {
|
|
67
|
+
return PartnerRequestCreateFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function PartnerRequestCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerRequestCreate {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'name': json['name'],
|
|
77
|
+
'contactName': json['contactName'],
|
|
78
|
+
'contactPhone': json['contactPhone'],
|
|
79
|
+
'email': json['email'],
|
|
80
|
+
'location': json['location'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function PartnerRequestCreateToJSON(json: any): PartnerRequestCreate {
|
|
85
|
+
return PartnerRequestCreateToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function PartnerRequestCreateToJSONTyped(value?: PartnerRequestCreate | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'name': value['name'],
|
|
96
|
+
'contactName': value['contactName'],
|
|
97
|
+
'contactPhone': value['contactPhone'],
|
|
98
|
+
'email': value['email'],
|
|
99
|
+
'location': value['location'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenShift Migration Advisor API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const PartnerRequestStatus = {
|
|
21
|
+
Pending: 'pending',
|
|
22
|
+
Accepted: 'accepted',
|
|
23
|
+
Rejected: 'rejected',
|
|
24
|
+
Cancelled: 'cancelled'
|
|
25
|
+
} as const;
|
|
26
|
+
export type PartnerRequestStatus = typeof PartnerRequestStatus[keyof typeof PartnerRequestStatus];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function instanceOfPartnerRequestStatus(value: any): boolean {
|
|
30
|
+
for (const key in PartnerRequestStatus) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(PartnerRequestStatus, key)) {
|
|
32
|
+
if (PartnerRequestStatus[key as keyof typeof PartnerRequestStatus] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function PartnerRequestStatusFromJSON(json: any): PartnerRequestStatus {
|
|
41
|
+
return PartnerRequestStatusFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function PartnerRequestStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerRequestStatus {
|
|
45
|
+
return json as PartnerRequestStatus;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function PartnerRequestStatusToJSON(value?: PartnerRequestStatus | null): any {
|
|
49
|
+
return value as any;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PartnerRequestStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): PartnerRequestStatus {
|
|
53
|
+
return value as PartnerRequestStatus;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { PartnerRequestStatus } from './PartnerRequestStatus.js';
|
|
17
|
+
import {
|
|
18
|
+
PartnerRequestStatusFromJSON,
|
|
19
|
+
PartnerRequestStatusFromJSONTyped,
|
|
20
|
+
PartnerRequestStatusToJSON,
|
|
21
|
+
PartnerRequestStatusToJSONTyped,
|
|
22
|
+
} from './PartnerRequestStatus.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PartnerRequestUpdate
|
|
28
|
+
*/
|
|
29
|
+
export interface PartnerRequestUpdate {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {PartnerRequestStatus}
|
|
33
|
+
* @memberof PartnerRequestUpdate
|
|
34
|
+
*/
|
|
35
|
+
status: PartnerRequestStatus;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PartnerRequestUpdate
|
|
40
|
+
*/
|
|
41
|
+
reason?: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the PartnerRequestUpdate interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfPartnerRequestUpdate(value: object): value is PartnerRequestUpdate {
|
|
50
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function PartnerRequestUpdateFromJSON(json: any): PartnerRequestUpdate {
|
|
55
|
+
return PartnerRequestUpdateFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function PartnerRequestUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerRequestUpdate {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'status': PartnerRequestStatusFromJSON(json['status']),
|
|
65
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function PartnerRequestUpdateToJSON(json: any): PartnerRequestUpdate {
|
|
70
|
+
return PartnerRequestUpdateToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function PartnerRequestUpdateToJSONTyped(value?: PartnerRequestUpdate | null, ignoreDiscriminator: boolean = false): any {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'status': PartnerRequestStatusToJSON(value['status']),
|
|
81
|
+
'reason': value['reason'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -16,8 +16,12 @@ export * from './DiskSizeTierSummary.js';
|
|
|
16
16
|
export * from './DiskTypeSummary.js';
|
|
17
17
|
export * from './EstimationContext.js';
|
|
18
18
|
export * from './EstimationDetail.js';
|
|
19
|
+
export * from './Group.js';
|
|
20
|
+
export * from './GroupCreate.js';
|
|
21
|
+
export * from './GroupUpdate.js';
|
|
19
22
|
export * from './Histogram.js';
|
|
20
23
|
export * from './Host.js';
|
|
24
|
+
export * from './Identity.js';
|
|
21
25
|
export * from './Info.js';
|
|
22
26
|
export * from './Infra.js';
|
|
23
27
|
export * from './Inventory.js';
|
|
@@ -27,15 +31,23 @@ export * from './Ipv4Config.js';
|
|
|
27
31
|
export * from './Job.js';
|
|
28
32
|
export * from './JobStatus.js';
|
|
29
33
|
export * from './Label.js';
|
|
34
|
+
export * from './Member.js';
|
|
35
|
+
export * from './MemberCreate.js';
|
|
36
|
+
export * from './MemberUpdate.js';
|
|
30
37
|
export * from './MigrationComplexityRequest.js';
|
|
31
38
|
export * from './MigrationComplexityResponse.js';
|
|
32
39
|
export * from './MigrationEstimationByComplexityResponse.js';
|
|
33
40
|
export * from './MigrationEstimationRequest.js';
|
|
41
|
+
export * from './MigrationEstimationResponse.js';
|
|
34
42
|
export * from './MigrationIssue.js';
|
|
35
43
|
export * from './ModelError.js';
|
|
36
44
|
export * from './Network.js';
|
|
37
45
|
export * from './OsDiskEstimationEntry.js';
|
|
38
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';
|
|
39
51
|
export * from './PresignedUrl.js';
|
|
40
52
|
export * from './SchemaEstimationResult.js';
|
|
41
53
|
export * from './SizingOverCommitRatio.js';
|