@openshift-migration-advisor/planner-sdk 0.10.0 → 0.11.0
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 +8 -8
- package/dist/apis/ImageApi.js +2 -2
- package/dist/apis/JobApi.js +2 -2
- 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.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/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/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 +15 -15
- package/src/apis/ImageApi.ts +2 -2
- package/src/apis/JobApi.ts +2 -2
- package/src/apis/SourceApi.ts +4 -4
- 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
|
|
@@ -338,7 +338,7 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
338
338
|
|
|
339
339
|
|
|
340
340
|
let urlPath = `/api/v1/assessments/{id}/cluster-requirements`;
|
|
341
|
-
urlPath = urlPath.replace(
|
|
341
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
342
342
|
|
|
343
343
|
return {
|
|
344
344
|
path: urlPath,
|
|
@@ -393,7 +393,7 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
393
393
|
|
|
394
394
|
|
|
395
395
|
let urlPath = `/api/v1/assessments/{id}/complexity-estimation`;
|
|
396
|
-
urlPath = urlPath.replace(
|
|
396
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
397
397
|
|
|
398
398
|
return {
|
|
399
399
|
path: urlPath,
|
|
@@ -448,7 +448,7 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
448
448
|
|
|
449
449
|
|
|
450
450
|
let urlPath = `/api/v1/assessments/{id}/migration-estimation`;
|
|
451
|
-
urlPath = urlPath.replace(
|
|
451
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
452
452
|
|
|
453
453
|
return {
|
|
454
454
|
path: urlPath,
|
|
@@ -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
|
}
|
|
@@ -503,7 +503,7 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
503
503
|
|
|
504
504
|
|
|
505
505
|
let urlPath = `/api/v1/assessments/{id}/migration-estimation/by-complexity`;
|
|
506
|
-
urlPath = urlPath.replace(
|
|
506
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
507
507
|
|
|
508
508
|
return {
|
|
509
509
|
path: urlPath,
|
|
@@ -596,7 +596,7 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
596
596
|
|
|
597
597
|
|
|
598
598
|
let urlPath = `/api/v1/assessments/{id}`;
|
|
599
|
-
urlPath = urlPath.replace(
|
|
599
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
600
600
|
|
|
601
601
|
return {
|
|
602
602
|
path: urlPath,
|
|
@@ -641,7 +641,7 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
641
641
|
|
|
642
642
|
|
|
643
643
|
let urlPath = `/api/v1/assessments/{id}`;
|
|
644
|
-
urlPath = urlPath.replace(
|
|
644
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
645
645
|
|
|
646
646
|
return {
|
|
647
647
|
path: urlPath,
|
|
@@ -736,7 +736,7 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
736
736
|
|
|
737
737
|
|
|
738
738
|
let urlPath = `/api/v1/assessments/{id}`;
|
|
739
|
-
urlPath = urlPath.replace(
|
|
739
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
740
740
|
|
|
741
741
|
return {
|
|
742
742
|
path: urlPath,
|
package/src/apis/ImageApi.ts
CHANGED
|
@@ -105,7 +105,7 @@ export class ImageApi extends runtime.BaseAPI implements ImageApiInterface {
|
|
|
105
105
|
|
|
106
106
|
|
|
107
107
|
let urlPath = `/api/v1/sources/{id}/image-url`;
|
|
108
|
-
urlPath = urlPath.replace(
|
|
108
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
109
109
|
|
|
110
110
|
return {
|
|
111
111
|
path: urlPath,
|
|
@@ -150,7 +150,7 @@ export class ImageApi extends runtime.BaseAPI implements ImageApiInterface {
|
|
|
150
150
|
|
|
151
151
|
|
|
152
152
|
let urlPath = `/api/v1/sources/{id}/image`;
|
|
153
|
-
urlPath = urlPath.replace(
|
|
153
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
154
154
|
|
|
155
155
|
return {
|
|
156
156
|
path: urlPath,
|
package/src/apis/JobApi.ts
CHANGED
|
@@ -134,7 +134,7 @@ export class JobApi extends runtime.BaseAPI implements JobApiInterface {
|
|
|
134
134
|
|
|
135
135
|
|
|
136
136
|
let urlPath = `/api/v1/assessments/jobs/{id}`;
|
|
137
|
-
urlPath = urlPath.replace(
|
|
137
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
138
138
|
|
|
139
139
|
return {
|
|
140
140
|
path: urlPath,
|
|
@@ -255,7 +255,7 @@ export class JobApi extends runtime.BaseAPI implements JobApiInterface {
|
|
|
255
255
|
|
|
256
256
|
|
|
257
257
|
let urlPath = `/api/v1/assessments/jobs/{id}`;
|
|
258
|
-
urlPath = urlPath.replace(
|
|
258
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
259
259
|
|
|
260
260
|
return {
|
|
261
261
|
path: urlPath,
|
package/src/apis/SourceApi.ts
CHANGED
|
@@ -288,7 +288,7 @@ export class SourceApi extends runtime.BaseAPI implements SourceApiInterface {
|
|
|
288
288
|
|
|
289
289
|
|
|
290
290
|
let urlPath = `/api/v1/sources/{id}`;
|
|
291
|
-
urlPath = urlPath.replace(
|
|
291
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
292
292
|
|
|
293
293
|
return {
|
|
294
294
|
path: urlPath,
|
|
@@ -370,7 +370,7 @@ export class SourceApi extends runtime.BaseAPI implements SourceApiInterface {
|
|
|
370
370
|
|
|
371
371
|
|
|
372
372
|
let urlPath = `/api/v1/sources/{id}`;
|
|
373
|
-
urlPath = urlPath.replace(
|
|
373
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
374
374
|
|
|
375
375
|
return {
|
|
376
376
|
path: urlPath,
|
|
@@ -461,7 +461,7 @@ export class SourceApi extends runtime.BaseAPI implements SourceApiInterface {
|
|
|
461
461
|
|
|
462
462
|
|
|
463
463
|
let urlPath = `/api/v1/sources/{id}/inventory`;
|
|
464
|
-
urlPath = urlPath.replace(
|
|
464
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
465
465
|
|
|
466
466
|
return {
|
|
467
467
|
path: urlPath,
|
|
@@ -516,7 +516,7 @@ export class SourceApi extends runtime.BaseAPI implements SourceApiInterface {
|
|
|
516
516
|
|
|
517
517
|
|
|
518
518
|
let urlPath = `/api/v1/sources/{id}`;
|
|
519
|
-
urlPath = urlPath.replace(
|
|
519
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
520
520
|
|
|
521
521
|
return {
|
|
522
522
|
path: urlPath,
|
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
|
+
|