@openshift-migration-advisor/planner-sdk 0.9.0 → 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 +24 -0
- package/README.md +31 -11
- package/dist/apis/AccountApi.d.ts +390 -0
- package/dist/apis/AccountApi.js +454 -0
- package/dist/apis/AssessmentApi.d.ts +42 -13
- package/dist/apis/AssessmentApi.js +45 -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 +42 -13
- package/dist/esm/apis/AssessmentApi.js +46 -2
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ComplexityOSNameEntry.d.ts +1 -1
- package/dist/esm/models/ComplexityOSScoreEntry.d.ts +1 -1
- package/dist/esm/models/EstimationContext.d.ts +40 -0
- package/dist/esm/models/EstimationContext.js +43 -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/MigrationComplexityResponse.d.ts +2 -2
- package/dist/esm/models/MigrationEstimationByComplexityResponse.d.ts +50 -0
- package/dist/esm/models/MigrationEstimationByComplexityResponse.js +51 -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/OsDiskEstimationEntry.d.ts +53 -0
- package/dist/esm/models/OsDiskEstimationEntry.js +55 -0
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/models/ComplexityOSNameEntry.d.ts +1 -1
- package/dist/models/ComplexityOSScoreEntry.d.ts +1 -1
- package/dist/models/EstimationContext.d.ts +40 -0
- package/dist/models/EstimationContext.js +50 -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/MigrationComplexityResponse.d.ts +2 -2
- package/dist/models/MigrationEstimationByComplexityResponse.d.ts +50 -0
- package/dist/models/MigrationEstimationByComplexityResponse.js +58 -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/OsDiskEstimationEntry.d.ts +53 -0
- package/dist/models/OsDiskEstimationEntry.js +62 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/docs/AccountApi.md +734 -0
- package/docs/AssessmentApi.md +78 -2
- package/docs/EstimationContext.md +36 -0
- 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/MigrationEstimationByComplexityResponse.md +38 -0
- package/docs/MigrationEstimationResponse.md +37 -0
- package/docs/OsDiskEstimationEntry.md +40 -0
- package/package.json +1 -1
- package/src/apis/AccountApi.ts +834 -0
- package/src/apis/AssessmentApi.ts +95 -8
- package/src/apis/index.ts +1 -0
- package/src/models/ComplexityOSNameEntry.ts +1 -1
- package/src/models/ComplexityOSScoreEntry.ts +1 -1
- package/src/models/EstimationContext.ts +73 -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/MigrationComplexityResponse.ts +2 -2
- package/src/models/MigrationEstimationByComplexityResponse.ts +98 -0
- package/src/models/MigrationEstimationRequest.ts +1 -1
- package/src/models/MigrationEstimationResponse.ts +91 -0
- package/src/models/OsDiskEstimationEntry.ts +100 -0
- package/src/models/index.ts +11 -0
|
@@ -22,8 +22,9 @@ import type {
|
|
|
22
22
|
ClusterRequirementsResponse,
|
|
23
23
|
MigrationComplexityRequest,
|
|
24
24
|
MigrationComplexityResponse,
|
|
25
|
+
MigrationEstimationByComplexityResponse,
|
|
25
26
|
MigrationEstimationRequest,
|
|
26
|
-
|
|
27
|
+
MigrationEstimationResponse,
|
|
27
28
|
} from '../models/index.js';
|
|
28
29
|
import {
|
|
29
30
|
AssessmentFromJSON,
|
|
@@ -40,10 +41,12 @@ import {
|
|
|
40
41
|
MigrationComplexityRequestToJSON,
|
|
41
42
|
MigrationComplexityResponseFromJSON,
|
|
42
43
|
MigrationComplexityResponseToJSON,
|
|
44
|
+
MigrationEstimationByComplexityResponseFromJSON,
|
|
45
|
+
MigrationEstimationByComplexityResponseToJSON,
|
|
43
46
|
MigrationEstimationRequestFromJSON,
|
|
44
47
|
MigrationEstimationRequestToJSON,
|
|
45
|
-
|
|
46
|
-
|
|
48
|
+
MigrationEstimationResponseFromJSON,
|
|
49
|
+
MigrationEstimationResponseToJSON,
|
|
47
50
|
} from '../models/index.js';
|
|
48
51
|
|
|
49
52
|
export interface CalculateAssessmentClusterRequirementsRequest {
|
|
@@ -61,6 +64,11 @@ export interface CalculateMigrationEstimationRequest {
|
|
|
61
64
|
migrationEstimationRequest: MigrationEstimationRequest;
|
|
62
65
|
}
|
|
63
66
|
|
|
67
|
+
export interface CalculateMigrationEstimationByComplexityRequest {
|
|
68
|
+
id: string;
|
|
69
|
+
migrationEstimationRequest: MigrationEstimationRequest;
|
|
70
|
+
}
|
|
71
|
+
|
|
64
72
|
export interface CreateAssessmentRequest {
|
|
65
73
|
assessmentForm: AssessmentForm;
|
|
66
74
|
}
|
|
@@ -154,12 +162,36 @@ export interface AssessmentApiInterface {
|
|
|
154
162
|
* @throws {RequiredError}
|
|
155
163
|
* @memberof AssessmentApiInterface
|
|
156
164
|
*/
|
|
157
|
-
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
165
|
+
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>>;
|
|
158
166
|
|
|
159
167
|
/**
|
|
160
168
|
* Calculate migration time estimation for an assessment
|
|
161
169
|
*/
|
|
162
|
-
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
170
|
+
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse>;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Creates request options for calculateMigrationEstimationByComplexity without sending the request
|
|
174
|
+
* @param {string} id ID of the assessment
|
|
175
|
+
* @param {MigrationEstimationRequest} migrationEstimationRequest
|
|
176
|
+
* @throws {RequiredError}
|
|
177
|
+
* @memberof AssessmentApiInterface
|
|
178
|
+
*/
|
|
179
|
+
calculateMigrationEstimationByComplexityRequestOpts(requestParameters: CalculateMigrationEstimationByComplexityRequest): Promise<runtime.RequestOpts>;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Calculate migration time estimation broken down by combined OS+Disk complexity
|
|
183
|
+
* @param {string} id ID of the assessment
|
|
184
|
+
* @param {MigrationEstimationRequest} migrationEstimationRequest
|
|
185
|
+
* @param {*} [options] Override http request option.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
* @memberof AssessmentApiInterface
|
|
188
|
+
*/
|
|
189
|
+
calculateMigrationEstimationByComplexityRaw(requestParameters: CalculateMigrationEstimationByComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationByComplexityResponse>>;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Calculate migration time estimation broken down by combined OS+Disk complexity
|
|
193
|
+
*/
|
|
194
|
+
calculateMigrationEstimationByComplexity(requestParameters: CalculateMigrationEstimationByComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationByComplexityResponse>;
|
|
163
195
|
|
|
164
196
|
/**
|
|
165
197
|
* Creates request options for createAssessment without sending the request
|
|
@@ -430,21 +462,76 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
430
462
|
/**
|
|
431
463
|
* Calculate migration time estimation for an assessment
|
|
432
464
|
*/
|
|
433
|
-
async calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
465
|
+
async calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>> {
|
|
434
466
|
const requestOptions = await this.calculateMigrationEstimationRequestOpts(requestParameters);
|
|
435
467
|
const response = await this.request(requestOptions, initOverrides);
|
|
436
468
|
|
|
437
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
469
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MigrationEstimationResponseFromJSON(jsonValue));
|
|
438
470
|
}
|
|
439
471
|
|
|
440
472
|
/**
|
|
441
473
|
* Calculate migration time estimation for an assessment
|
|
442
474
|
*/
|
|
443
|
-
async calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
475
|
+
async calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse> {
|
|
444
476
|
const response = await this.calculateMigrationEstimationRaw(requestParameters, initOverrides);
|
|
445
477
|
return await response.value();
|
|
446
478
|
}
|
|
447
479
|
|
|
480
|
+
/**
|
|
481
|
+
* Creates request options for calculateMigrationEstimationByComplexity without sending the request
|
|
482
|
+
*/
|
|
483
|
+
async calculateMigrationEstimationByComplexityRequestOpts(requestParameters: CalculateMigrationEstimationByComplexityRequest): Promise<runtime.RequestOpts> {
|
|
484
|
+
if (requestParameters['id'] == null) {
|
|
485
|
+
throw new runtime.RequiredError(
|
|
486
|
+
'id',
|
|
487
|
+
'Required parameter "id" was null or undefined when calling calculateMigrationEstimationByComplexity().'
|
|
488
|
+
);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
if (requestParameters['migrationEstimationRequest'] == null) {
|
|
492
|
+
throw new runtime.RequiredError(
|
|
493
|
+
'migrationEstimationRequest',
|
|
494
|
+
'Required parameter "migrationEstimationRequest" was null or undefined when calling calculateMigrationEstimationByComplexity().'
|
|
495
|
+
);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
const queryParameters: any = {};
|
|
499
|
+
|
|
500
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
501
|
+
|
|
502
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
let urlPath = `/api/v1/assessments/{id}/migration-estimation/by-complexity`;
|
|
506
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
507
|
+
|
|
508
|
+
return {
|
|
509
|
+
path: urlPath,
|
|
510
|
+
method: 'POST',
|
|
511
|
+
headers: headerParameters,
|
|
512
|
+
query: queryParameters,
|
|
513
|
+
body: MigrationEstimationRequestToJSON(requestParameters['migrationEstimationRequest']),
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Calculate migration time estimation broken down by combined OS+Disk complexity
|
|
519
|
+
*/
|
|
520
|
+
async calculateMigrationEstimationByComplexityRaw(requestParameters: CalculateMigrationEstimationByComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationByComplexityResponse>> {
|
|
521
|
+
const requestOptions = await this.calculateMigrationEstimationByComplexityRequestOpts(requestParameters);
|
|
522
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
523
|
+
|
|
524
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MigrationEstimationByComplexityResponseFromJSON(jsonValue));
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Calculate migration time estimation broken down by combined OS+Disk complexity
|
|
529
|
+
*/
|
|
530
|
+
async calculateMigrationEstimationByComplexity(requestParameters: CalculateMigrationEstimationByComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationByComplexityResponse> {
|
|
531
|
+
const response = await this.calculateMigrationEstimationByComplexityRaw(requestParameters, initOverrides);
|
|
532
|
+
return await response.value();
|
|
533
|
+
}
|
|
534
|
+
|
|
448
535
|
/**
|
|
449
536
|
* Creates request options for createAssessment without sending the request
|
|
450
537
|
*/
|
package/src/apis/index.ts
CHANGED
|
@@ -27,7 +27,7 @@ export interface ComplexityOSNameEntry {
|
|
|
27
27
|
*/
|
|
28
28
|
osName: string;
|
|
29
29
|
/**
|
|
30
|
-
* Complexity score assigned by ClassifyOS. 0 =
|
|
30
|
+
* Complexity score assigned by ClassifyOS. 0 = unknown, 1 = least complex, 4 = most complex.
|
|
31
31
|
*
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof ComplexityOSNameEntry
|
|
@@ -20,7 +20,7 @@ import { mapValues } from '../runtime.js';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface ComplexityOSScoreEntry {
|
|
22
22
|
/**
|
|
23
|
-
* Complexity score from 0 to 4, where 1 indicates the least complex OS to migrate and 0 indicates an OS
|
|
23
|
+
* Complexity score from 0 to 4, where 1 indicates the least complex OS to migrate and 0 indicates an OS with unknown complexity.
|
|
24
24
|
*
|
|
25
25
|
* @type {number}
|
|
26
26
|
* @memberof ComplexityOSScoreEntry
|
|
@@ -0,0 +1,73 @@
|
|
|
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 EstimationContext
|
|
20
|
+
*/
|
|
21
|
+
export interface EstimationContext {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof EstimationContext
|
|
26
|
+
*/
|
|
27
|
+
schemas?: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {{ [key: string]: number; }}
|
|
31
|
+
* @memberof EstimationContext
|
|
32
|
+
*/
|
|
33
|
+
params?: { [key: string]: number; };
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the EstimationContext interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfEstimationContext(value: object): value is EstimationContext {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function EstimationContextFromJSON(json: any): EstimationContext {
|
|
44
|
+
return EstimationContextFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function EstimationContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): EstimationContext {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'schemas': json['schemas'] == null ? undefined : json['schemas'],
|
|
54
|
+
'params': json['params'] == null ? undefined : json['params'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function EstimationContextToJSON(json: any): EstimationContext {
|
|
59
|
+
return EstimationContextToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function EstimationContextToJSONTyped(value?: EstimationContext | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'schemas': value['schemas'],
|
|
70
|
+
'params': value['params'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -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
|
+
|