@openshift-migration-advisor/planner-sdk 0.9.0-a26ff9932eeb → 0.10.0-783d8b3a2dc4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +18 -0
- package/README.md +27 -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 +1 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -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 +2 -2
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -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/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -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/index.d.ts +8 -0
- package/dist/models/index.js +8 -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/package.json +1 -1
- package/src/apis/AccountApi.ts +834 -0
- package/src/apis/AssessmentApi.ts +8 -8
- package/src/apis/index.ts +1 -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/index.ts +8 -0
|
@@ -24,7 +24,7 @@ import type {
|
|
|
24
24
|
MigrationComplexityResponse,
|
|
25
25
|
MigrationEstimationByComplexityResponse,
|
|
26
26
|
MigrationEstimationRequest,
|
|
27
|
-
|
|
27
|
+
MigrationEstimationResponse,
|
|
28
28
|
} from '../models/index.js';
|
|
29
29
|
import {
|
|
30
30
|
AssessmentFromJSON,
|
|
@@ -45,8 +45,8 @@ import {
|
|
|
45
45
|
MigrationEstimationByComplexityResponseToJSON,
|
|
46
46
|
MigrationEstimationRequestFromJSON,
|
|
47
47
|
MigrationEstimationRequestToJSON,
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
MigrationEstimationResponseFromJSON,
|
|
49
|
+
MigrationEstimationResponseToJSON,
|
|
50
50
|
} from '../models/index.js';
|
|
51
51
|
|
|
52
52
|
export interface CalculateAssessmentClusterRequirementsRequest {
|
|
@@ -162,12 +162,12 @@ export interface AssessmentApiInterface {
|
|
|
162
162
|
* @throws {RequiredError}
|
|
163
163
|
* @memberof AssessmentApiInterface
|
|
164
164
|
*/
|
|
165
|
-
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
165
|
+
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>>;
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
168
|
* Calculate migration time estimation for an assessment
|
|
169
169
|
*/
|
|
170
|
-
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
170
|
+
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse>;
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
173
|
* Creates request options for calculateMigrationEstimationByComplexity without sending the request
|
|
@@ -462,17 +462,17 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
462
462
|
/**
|
|
463
463
|
* Calculate migration time estimation for an assessment
|
|
464
464
|
*/
|
|
465
|
-
async calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
465
|
+
async calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>> {
|
|
466
466
|
const requestOptions = await this.calculateMigrationEstimationRequestOpts(requestParameters);
|
|
467
467
|
const response = await this.request(requestOptions, initOverrides);
|
|
468
468
|
|
|
469
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
469
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MigrationEstimationResponseFromJSON(jsonValue));
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
/**
|
|
473
473
|
* Calculate migration time estimation for an assessment
|
|
474
474
|
*/
|
|
475
|
-
async calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
475
|
+
async calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse> {
|
|
476
476
|
const response = await this.calculateMigrationEstimationRaw(requestParameters, initOverrides);
|
|
477
477
|
return await response.value();
|
|
478
478
|
}
|
package/src/apis/index.ts
CHANGED
|
@@ -0,0 +1,139 @@
|
|
|
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 Group
|
|
20
|
+
*/
|
|
21
|
+
export interface Group {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Group
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Group
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Group
|
|
38
|
+
*/
|
|
39
|
+
description?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {GroupKindEnum}
|
|
43
|
+
* @memberof Group
|
|
44
|
+
*/
|
|
45
|
+
kind: GroupKindEnum;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof Group
|
|
50
|
+
*/
|
|
51
|
+
icon: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof Group
|
|
56
|
+
*/
|
|
57
|
+
company: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Date}
|
|
61
|
+
* @memberof Group
|
|
62
|
+
*/
|
|
63
|
+
createdAt: Date;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof Group
|
|
68
|
+
*/
|
|
69
|
+
updatedAt: Date;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export const GroupKindEnum = {
|
|
77
|
+
Partner: 'partner',
|
|
78
|
+
Admin: 'admin'
|
|
79
|
+
} as const;
|
|
80
|
+
export type GroupKindEnum = typeof GroupKindEnum[keyof typeof GroupKindEnum];
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Check if a given object implements the Group interface.
|
|
85
|
+
*/
|
|
86
|
+
export function instanceOfGroup(value: object): value is Group {
|
|
87
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
88
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
89
|
+
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
90
|
+
if (!('icon' in value) || value['icon'] === undefined) return false;
|
|
91
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
92
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
93
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function GroupFromJSON(json: any): Group {
|
|
98
|
+
return GroupFromJSONTyped(json, false);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Group {
|
|
102
|
+
if (json == null) {
|
|
103
|
+
return json;
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
|
|
107
|
+
'id': json['id'],
|
|
108
|
+
'name': json['name'],
|
|
109
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
110
|
+
'kind': json['kind'],
|
|
111
|
+
'icon': json['icon'],
|
|
112
|
+
'company': json['company'],
|
|
113
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
114
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function GroupToJSON(json: any): Group {
|
|
119
|
+
return GroupToJSONTyped(json, false);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function GroupToJSONTyped(value?: Group | null, ignoreDiscriminator: boolean = false): any {
|
|
123
|
+
if (value == null) {
|
|
124
|
+
return value;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'id': value['id'],
|
|
130
|
+
'name': value['name'],
|
|
131
|
+
'description': value['description'],
|
|
132
|
+
'kind': value['kind'],
|
|
133
|
+
'icon': value['icon'],
|
|
134
|
+
'company': value['company'],
|
|
135
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
136
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
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 GroupCreate
|
|
20
|
+
*/
|
|
21
|
+
export interface GroupCreate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GroupCreate
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GroupCreate
|
|
32
|
+
*/
|
|
33
|
+
description: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {GroupCreateKindEnum}
|
|
37
|
+
* @memberof GroupCreate
|
|
38
|
+
*/
|
|
39
|
+
kind: GroupCreateKindEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof GroupCreate
|
|
44
|
+
*/
|
|
45
|
+
icon: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof GroupCreate
|
|
50
|
+
*/
|
|
51
|
+
company: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export const GroupCreateKindEnum = {
|
|
59
|
+
Partner: 'partner',
|
|
60
|
+
Admin: 'admin'
|
|
61
|
+
} as const;
|
|
62
|
+
export type GroupCreateKindEnum = typeof GroupCreateKindEnum[keyof typeof GroupCreateKindEnum];
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the GroupCreate interface.
|
|
67
|
+
*/
|
|
68
|
+
export function instanceOfGroupCreate(value: object): value is GroupCreate {
|
|
69
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
70
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
71
|
+
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
72
|
+
if (!('icon' in value) || value['icon'] === undefined) return false;
|
|
73
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function GroupCreateFromJSON(json: any): GroupCreate {
|
|
78
|
+
return GroupCreateFromJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function GroupCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupCreate {
|
|
82
|
+
if (json == null) {
|
|
83
|
+
return json;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'name': json['name'],
|
|
88
|
+
'description': json['description'],
|
|
89
|
+
'kind': json['kind'],
|
|
90
|
+
'icon': json['icon'],
|
|
91
|
+
'company': json['company'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function GroupCreateToJSON(json: any): GroupCreate {
|
|
96
|
+
return GroupCreateToJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function GroupCreateToJSONTyped(value?: GroupCreate | null, ignoreDiscriminator: boolean = false): any {
|
|
100
|
+
if (value == null) {
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'name': value['name'],
|
|
107
|
+
'description': value['description'],
|
|
108
|
+
'kind': value['kind'],
|
|
109
|
+
'icon': value['icon'],
|
|
110
|
+
'company': value['company'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
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 GroupUpdate
|
|
20
|
+
*/
|
|
21
|
+
export interface GroupUpdate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GroupUpdate
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GroupUpdate
|
|
32
|
+
*/
|
|
33
|
+
description?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GroupUpdate
|
|
38
|
+
*/
|
|
39
|
+
icon?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof GroupUpdate
|
|
44
|
+
*/
|
|
45
|
+
company?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the GroupUpdate interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfGroupUpdate(value: object): value is GroupUpdate {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function GroupUpdateFromJSON(json: any): GroupUpdate {
|
|
56
|
+
return GroupUpdateFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function GroupUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupUpdate {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
66
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
67
|
+
'icon': json['icon'] == null ? undefined : json['icon'],
|
|
68
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function GroupUpdateToJSON(json: any): GroupUpdate {
|
|
73
|
+
return GroupUpdateToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function GroupUpdateToJSONTyped(value?: GroupUpdate | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'name': value['name'],
|
|
84
|
+
'description': value['description'],
|
|
85
|
+
'icon': value['icon'],
|
|
86
|
+
'company': value['company'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,104 @@
|
|
|
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 Identity
|
|
20
|
+
*/
|
|
21
|
+
export interface Identity {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Identity
|
|
26
|
+
*/
|
|
27
|
+
username: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {IdentityKindEnum}
|
|
31
|
+
* @memberof Identity
|
|
32
|
+
*/
|
|
33
|
+
kind: IdentityKindEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Identity
|
|
38
|
+
*/
|
|
39
|
+
groupId?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Identity
|
|
44
|
+
*/
|
|
45
|
+
partnerId?: string | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const IdentityKindEnum = {
|
|
53
|
+
Partner: 'partner',
|
|
54
|
+
Customer: 'customer',
|
|
55
|
+
Regular: 'regular',
|
|
56
|
+
Admin: 'admin'
|
|
57
|
+
} as const;
|
|
58
|
+
export type IdentityKindEnum = typeof IdentityKindEnum[keyof typeof IdentityKindEnum];
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the Identity interface.
|
|
63
|
+
*/
|
|
64
|
+
export function instanceOfIdentity(value: object): value is Identity {
|
|
65
|
+
if (!('username' in value) || value['username'] === undefined) return false;
|
|
66
|
+
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function IdentityFromJSON(json: any): Identity {
|
|
71
|
+
return IdentityFromJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function IdentityFromJSONTyped(json: any, ignoreDiscriminator: boolean): Identity {
|
|
75
|
+
if (json == null) {
|
|
76
|
+
return json;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'username': json['username'],
|
|
81
|
+
'kind': json['kind'],
|
|
82
|
+
'groupId': json['groupId'] == null ? undefined : json['groupId'],
|
|
83
|
+
'partnerId': json['partnerId'] == null ? undefined : json['partnerId'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function IdentityToJSON(json: any): Identity {
|
|
88
|
+
return IdentityToJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function IdentityToJSONTyped(value?: Identity | null, ignoreDiscriminator: boolean = false): any {
|
|
92
|
+
if (value == null) {
|
|
93
|
+
return value;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'username': value['username'],
|
|
99
|
+
'kind': value['kind'],
|
|
100
|
+
'groupId': value['groupId'],
|
|
101
|
+
'partnerId': value['partnerId'],
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
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 Member
|
|
20
|
+
*/
|
|
21
|
+
export interface Member {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Member
|
|
26
|
+
*/
|
|
27
|
+
username: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Member
|
|
32
|
+
*/
|
|
33
|
+
email: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Member
|
|
38
|
+
*/
|
|
39
|
+
groupId: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof Member
|
|
44
|
+
*/
|
|
45
|
+
createdAt: Date;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof Member
|
|
50
|
+
*/
|
|
51
|
+
updatedAt?: Date;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the Member interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfMember(value: object): value is Member {
|
|
58
|
+
if (!('username' in value) || value['username'] === undefined) return false;
|
|
59
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
60
|
+
if (!('groupId' in value) || value['groupId'] === undefined) return false;
|
|
61
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function MemberFromJSON(json: any): Member {
|
|
66
|
+
return MemberFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function MemberFromJSONTyped(json: any, ignoreDiscriminator: boolean): Member {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'username': json['username'],
|
|
76
|
+
'email': json['email'],
|
|
77
|
+
'groupId': json['groupId'],
|
|
78
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
79
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function MemberToJSON(json: any): Member {
|
|
84
|
+
return MemberToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function MemberToJSONTyped(value?: Member | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'username': value['username'],
|
|
95
|
+
'email': value['email'],
|
|
96
|
+
'groupId': value['groupId'],
|
|
97
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
98
|
+
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 MemberCreate
|
|
20
|
+
*/
|
|
21
|
+
export interface MemberCreate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof MemberCreate
|
|
26
|
+
*/
|
|
27
|
+
username: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MemberCreate
|
|
32
|
+
*/
|
|
33
|
+
email: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the MemberCreate interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfMemberCreate(value: object): value is MemberCreate {
|
|
40
|
+
if (!('username' in value) || value['username'] === undefined) return false;
|
|
41
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function MemberCreateFromJSON(json: any): MemberCreate {
|
|
46
|
+
return MemberCreateFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function MemberCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemberCreate {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'username': json['username'],
|
|
56
|
+
'email': json['email'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function MemberCreateToJSON(json: any): MemberCreate {
|
|
61
|
+
return MemberCreateToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function MemberCreateToJSONTyped(value?: MemberCreate | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'username': value['username'],
|
|
72
|
+
'email': value['email'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|