@openshift-migration-advisor/planner-sdk 0.9.0 → 0.10.0-fa4e0ff47672
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 +22 -0
- package/README.md +30 -11
- package/dist/apis/AccountApi.d.ts +390 -0
- package/dist/apis/AccountApi.js +454 -0
- package/dist/apis/AssessmentApi.d.ts +38 -1
- package/dist/apis/AssessmentApi.js +44 -0
- 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 +38 -1
- package/dist/esm/apis/AssessmentApi.js +45 -1
- 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/OsDiskEstimationEntry.d.ts +53 -0
- package/dist/esm/models/OsDiskEstimationEntry.js +55 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -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/OsDiskEstimationEntry.d.ts +53 -0
- package/dist/models/OsDiskEstimationEntry.js +62 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/docs/AccountApi.md +734 -0
- package/docs/AssessmentApi.md +76 -0
- 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/OsDiskEstimationEntry.md +40 -0
- package/package.json +1 -1
- package/src/apis/AccountApi.ts +834 -0
- package/src/apis/AssessmentApi.ts +87 -0
- 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/OsDiskEstimationEntry.ts +100 -0
- package/src/models/index.ts +10 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface MemberCreate
|
|
16
|
+
*/
|
|
17
|
+
export interface MemberCreate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MemberCreate
|
|
22
|
+
*/
|
|
23
|
+
username: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof MemberCreate
|
|
28
|
+
*/
|
|
29
|
+
email: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the MemberCreate interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfMemberCreate(value: object): value is MemberCreate;
|
|
35
|
+
export declare function MemberCreateFromJSON(json: any): MemberCreate;
|
|
36
|
+
export declare function MemberCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemberCreate;
|
|
37
|
+
export declare function MemberCreateToJSON(json: any): MemberCreate;
|
|
38
|
+
export declare function MemberCreateToJSONTyped(value?: MemberCreate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenShift Migration Advisor API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the MemberCreate interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfMemberCreate(value) {
|
|
18
|
+
if (!('username' in value) || value['username'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function MemberCreateFromJSON(json) {
|
|
25
|
+
return MemberCreateFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function MemberCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'username': json['username'],
|
|
33
|
+
'email': json['email'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function MemberCreateToJSON(json) {
|
|
37
|
+
return MemberCreateToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function MemberCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'username': value['username'],
|
|
45
|
+
'email': value['email'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface MemberUpdate
|
|
16
|
+
*/
|
|
17
|
+
export interface MemberUpdate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MemberUpdate
|
|
22
|
+
*/
|
|
23
|
+
email?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the MemberUpdate interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfMemberUpdate(value: object): value is MemberUpdate;
|
|
29
|
+
export declare function MemberUpdateFromJSON(json: any): MemberUpdate;
|
|
30
|
+
export declare function MemberUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemberUpdate;
|
|
31
|
+
export declare function MemberUpdateToJSON(json: any): MemberUpdate;
|
|
32
|
+
export declare function MemberUpdateToJSONTyped(value?: MemberUpdate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenShift Migration Advisor API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the MemberUpdate interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfMemberUpdate(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function MemberUpdateFromJSON(json) {
|
|
21
|
+
return MemberUpdateFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function MemberUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function MemberUpdateToJSON(json) {
|
|
32
|
+
return MemberUpdateToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function MemberUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'email': value['email'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -26,7 +26,7 @@ export interface MigrationComplexityResponse {
|
|
|
26
26
|
*/
|
|
27
27
|
complexityByDisk: Array<ComplexityDiskScoreEntry>;
|
|
28
28
|
/**
|
|
29
|
-
* OS complexity scores, one entry per score level (0-4). Score 1 indicates the least complex OS to migrate; score 0 indicates an OS
|
|
29
|
+
* OS complexity scores, one entry per score level (0-4). Score 1 indicates the least complex OS to migrate; score 0 indicates an OS with unknown complexity. All five score levels are always present.
|
|
30
30
|
*
|
|
31
31
|
* @type {Array<ComplexityOSScoreEntry>}
|
|
32
32
|
* @memberof MigrationComplexityResponse
|
|
@@ -42,7 +42,7 @@ export interface MigrationComplexityResponse {
|
|
|
42
42
|
[key: string]: number;
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
45
|
-
* Per-OS-name score for every OS found in this cluster's inventory. Keys are the OS name strings exactly as they appear in vms.osInfo; values are the numeric complexity score assigned by ClassifyOS (0 =
|
|
45
|
+
* Per-OS-name score for every OS found in this cluster's inventory. Keys are the OS name strings exactly as they appear in vms.osInfo; values are the numeric complexity score assigned by ClassifyOS (0 = unknown, 1-4 = increasing complexity). The map contains one entry per distinct OS name in the cluster, regardless of how many VMs run it.
|
|
46
46
|
*
|
|
47
47
|
* @type {{ [key: string]: number; }}
|
|
48
48
|
* @memberof MigrationComplexityResponse
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { OsDiskEstimationEntry } from './OsDiskEstimationEntry.js';
|
|
13
|
+
import type { EstimationContext } from './EstimationContext.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface MigrationEstimationByComplexityResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface MigrationEstimationByComplexityResponse {
|
|
20
|
+
/**
|
|
21
|
+
* Combined OS+Disk complexity distribution with per-bucket estimation. All 5 score levels (0-4) always present.
|
|
22
|
+
* @type {Array<OsDiskEstimationEntry>}
|
|
23
|
+
* @memberof MigrationEstimationByComplexityResponse
|
|
24
|
+
*/
|
|
25
|
+
complexityByOsDisk: Array<OsDiskEstimationEntry>;
|
|
26
|
+
/**
|
|
27
|
+
* Decision matrix: outer keys are OS scores (0-4), inner keys are disk scores (1-4), values are combined scores.
|
|
28
|
+
* @type {{ [key: string]: { [key: string]: number; }; }}
|
|
29
|
+
* @memberof MigrationEstimationByComplexityResponse
|
|
30
|
+
*/
|
|
31
|
+
complexityMatrix: {
|
|
32
|
+
[key: string]: {
|
|
33
|
+
[key: string]: number;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {EstimationContext}
|
|
39
|
+
* @memberof MigrationEstimationByComplexityResponse
|
|
40
|
+
*/
|
|
41
|
+
estimationContext?: EstimationContext;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the MigrationEstimationByComplexityResponse interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfMigrationEstimationByComplexityResponse(value: object): value is MigrationEstimationByComplexityResponse;
|
|
47
|
+
export declare function MigrationEstimationByComplexityResponseFromJSON(json: any): MigrationEstimationByComplexityResponse;
|
|
48
|
+
export declare function MigrationEstimationByComplexityResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationEstimationByComplexityResponse;
|
|
49
|
+
export declare function MigrationEstimationByComplexityResponseToJSON(json: any): MigrationEstimationByComplexityResponse;
|
|
50
|
+
export declare function MigrationEstimationByComplexityResponseToJSONTyped(value?: MigrationEstimationByComplexityResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenShift Migration Advisor API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { OsDiskEstimationEntryFromJSON, OsDiskEstimationEntryToJSON, } from './OsDiskEstimationEntry.js';
|
|
15
|
+
import { EstimationContextFromJSON, EstimationContextToJSON, } from './EstimationContext.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the MigrationEstimationByComplexityResponse interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfMigrationEstimationByComplexityResponse(value) {
|
|
20
|
+
if (!('complexityByOsDisk' in value) || value['complexityByOsDisk'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('complexityMatrix' in value) || value['complexityMatrix'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function MigrationEstimationByComplexityResponseFromJSON(json) {
|
|
27
|
+
return MigrationEstimationByComplexityResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function MigrationEstimationByComplexityResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'complexityByOsDisk': (json['complexityByOsDisk'].map(OsDiskEstimationEntryFromJSON)),
|
|
35
|
+
'complexityMatrix': json['complexityMatrix'],
|
|
36
|
+
'estimationContext': json['estimationContext'] == null ? undefined : EstimationContextFromJSON(json['estimationContext']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function MigrationEstimationByComplexityResponseToJSON(json) {
|
|
40
|
+
return MigrationEstimationByComplexityResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function MigrationEstimationByComplexityResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'complexityByOsDisk': (value['complexityByOsDisk'].map(OsDiskEstimationEntryToJSON)),
|
|
48
|
+
'complexityMatrix': value['complexityMatrix'],
|
|
49
|
+
'estimationContext': EstimationContextToJSON(value['estimationContext']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SchemaEstimationResult } from './SchemaEstimationResult.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OsDiskEstimationEntry
|
|
17
|
+
*/
|
|
18
|
+
export interface OsDiskEstimationEntry {
|
|
19
|
+
/**
|
|
20
|
+
* Combined OS+Disk complexity score (0-4).
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof OsDiskEstimationEntry
|
|
23
|
+
*/
|
|
24
|
+
score: number;
|
|
25
|
+
/**
|
|
26
|
+
* Number of VMs at this complexity level.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof OsDiskEstimationEntry
|
|
29
|
+
*/
|
|
30
|
+
vmCount: number;
|
|
31
|
+
/**
|
|
32
|
+
* Total provisioned disk across VMs in this bucket (decimal TB). 0.0 when ComplexityDistribution is absent from the inventory.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof OsDiskEstimationEntry
|
|
35
|
+
*/
|
|
36
|
+
totalDiskSizeTB: number;
|
|
37
|
+
/**
|
|
38
|
+
* Full estimation breakdown keyed by schema name. Absent for empty buckets (vmCount == 0).
|
|
39
|
+
* @type {{ [key: string]: SchemaEstimationResult; }}
|
|
40
|
+
* @memberof OsDiskEstimationEntry
|
|
41
|
+
*/
|
|
42
|
+
estimation?: {
|
|
43
|
+
[key: string]: SchemaEstimationResult;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the OsDiskEstimationEntry interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfOsDiskEstimationEntry(value: object): value is OsDiskEstimationEntry;
|
|
50
|
+
export declare function OsDiskEstimationEntryFromJSON(json: any): OsDiskEstimationEntry;
|
|
51
|
+
export declare function OsDiskEstimationEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsDiskEstimationEntry;
|
|
52
|
+
export declare function OsDiskEstimationEntryToJSON(json: any): OsDiskEstimationEntry;
|
|
53
|
+
export declare function OsDiskEstimationEntryToJSONTyped(value?: OsDiskEstimationEntry | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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
|
+
import { mapValues } from '../runtime.js';
|
|
15
|
+
import { SchemaEstimationResultFromJSON, SchemaEstimationResultToJSON, } from './SchemaEstimationResult.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the OsDiskEstimationEntry interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfOsDiskEstimationEntry(value) {
|
|
20
|
+
if (!('score' in value) || value['score'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('totalDiskSizeTB' in value) || value['totalDiskSizeTB'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function OsDiskEstimationEntryFromJSON(json) {
|
|
29
|
+
return OsDiskEstimationEntryFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function OsDiskEstimationEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'score': json['score'],
|
|
37
|
+
'vmCount': json['vmCount'],
|
|
38
|
+
'totalDiskSizeTB': json['totalDiskSizeTB'],
|
|
39
|
+
'estimation': json['estimation'] == null ? undefined : (mapValues(json['estimation'], SchemaEstimationResultFromJSON)),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function OsDiskEstimationEntryToJSON(json) {
|
|
43
|
+
return OsDiskEstimationEntryToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function OsDiskEstimationEntryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'score': value['score'],
|
|
51
|
+
'vmCount': value['vmCount'],
|
|
52
|
+
'totalDiskSizeTB': value['totalDiskSizeTB'],
|
|
53
|
+
'estimation': value['estimation'] == null ? undefined : (mapValues(value['estimation'], SchemaEstimationResultToJSON)),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -12,9 +12,14 @@ export * from './ComplexityOSScoreEntry.js';
|
|
|
12
12
|
export * from './Datastore.js';
|
|
13
13
|
export * from './DiskSizeTierSummary.js';
|
|
14
14
|
export * from './DiskTypeSummary.js';
|
|
15
|
+
export * from './EstimationContext.js';
|
|
15
16
|
export * from './EstimationDetail.js';
|
|
17
|
+
export * from './Group.js';
|
|
18
|
+
export * from './GroupCreate.js';
|
|
19
|
+
export * from './GroupUpdate.js';
|
|
16
20
|
export * from './Histogram.js';
|
|
17
21
|
export * from './Host.js';
|
|
22
|
+
export * from './Identity.js';
|
|
18
23
|
export * from './Info.js';
|
|
19
24
|
export * from './Infra.js';
|
|
20
25
|
export * from './Inventory.js';
|
|
@@ -24,12 +29,17 @@ export * from './Ipv4Config.js';
|
|
|
24
29
|
export * from './Job.js';
|
|
25
30
|
export * from './JobStatus.js';
|
|
26
31
|
export * from './Label.js';
|
|
32
|
+
export * from './Member.js';
|
|
33
|
+
export * from './MemberCreate.js';
|
|
34
|
+
export * from './MemberUpdate.js';
|
|
27
35
|
export * from './MigrationComplexityRequest.js';
|
|
28
36
|
export * from './MigrationComplexityResponse.js';
|
|
37
|
+
export * from './MigrationEstimationByComplexityResponse.js';
|
|
29
38
|
export * from './MigrationEstimationRequest.js';
|
|
30
39
|
export * from './MigrationIssue.js';
|
|
31
40
|
export * from './ModelError.js';
|
|
32
41
|
export * from './Network.js';
|
|
42
|
+
export * from './OsDiskEstimationEntry.js';
|
|
33
43
|
export * from './OsInfo.js';
|
|
34
44
|
export * from './PresignedUrl.js';
|
|
35
45
|
export * from './SchemaEstimationResult.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -14,9 +14,14 @@ export * from './ComplexityOSScoreEntry.js';
|
|
|
14
14
|
export * from './Datastore.js';
|
|
15
15
|
export * from './DiskSizeTierSummary.js';
|
|
16
16
|
export * from './DiskTypeSummary.js';
|
|
17
|
+
export * from './EstimationContext.js';
|
|
17
18
|
export * from './EstimationDetail.js';
|
|
19
|
+
export * from './Group.js';
|
|
20
|
+
export * from './GroupCreate.js';
|
|
21
|
+
export * from './GroupUpdate.js';
|
|
18
22
|
export * from './Histogram.js';
|
|
19
23
|
export * from './Host.js';
|
|
24
|
+
export * from './Identity.js';
|
|
20
25
|
export * from './Info.js';
|
|
21
26
|
export * from './Infra.js';
|
|
22
27
|
export * from './Inventory.js';
|
|
@@ -26,12 +31,17 @@ export * from './Ipv4Config.js';
|
|
|
26
31
|
export * from './Job.js';
|
|
27
32
|
export * from './JobStatus.js';
|
|
28
33
|
export * from './Label.js';
|
|
34
|
+
export * from './Member.js';
|
|
35
|
+
export * from './MemberCreate.js';
|
|
36
|
+
export * from './MemberUpdate.js';
|
|
29
37
|
export * from './MigrationComplexityRequest.js';
|
|
30
38
|
export * from './MigrationComplexityResponse.js';
|
|
39
|
+
export * from './MigrationEstimationByComplexityResponse.js';
|
|
31
40
|
export * from './MigrationEstimationRequest.js';
|
|
32
41
|
export * from './MigrationIssue.js';
|
|
33
42
|
export * from './ModelError.js';
|
|
34
43
|
export * from './Network.js';
|
|
44
|
+
export * from './OsDiskEstimationEntry.js';
|
|
35
45
|
export * from './OsInfo.js';
|
|
36
46
|
export * from './PresignedUrl.js';
|
|
37
47
|
export * from './SchemaEstimationResult.js';
|
|
@@ -23,7 +23,7 @@ export interface ComplexityOSNameEntry {
|
|
|
23
23
|
*/
|
|
24
24
|
osName: string;
|
|
25
25
|
/**
|
|
26
|
-
* Complexity score assigned by ClassifyOS. 0 =
|
|
26
|
+
* Complexity score assigned by ClassifyOS. 0 = unknown, 1 = least complex, 4 = most complex.
|
|
27
27
|
*
|
|
28
28
|
* @type {number}
|
|
29
29
|
* @memberof ComplexityOSNameEntry
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface ComplexityOSScoreEntry {
|
|
18
18
|
/**
|
|
19
|
-
* Complexity score from 0 to 4, where 1 indicates the least complex OS to migrate and 0 indicates an OS
|
|
19
|
+
* Complexity score from 0 to 4, where 1 indicates the least complex OS to migrate and 0 indicates an OS with unknown complexity.
|
|
20
20
|
*
|
|
21
21
|
* @type {number}
|
|
22
22
|
* @memberof ComplexityOSScoreEntry
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface EstimationContext
|
|
16
|
+
*/
|
|
17
|
+
export interface EstimationContext {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof EstimationContext
|
|
22
|
+
*/
|
|
23
|
+
schemas?: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {{ [key: string]: number; }}
|
|
27
|
+
* @memberof EstimationContext
|
|
28
|
+
*/
|
|
29
|
+
params?: {
|
|
30
|
+
[key: string]: number;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the EstimationContext interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfEstimationContext(value: object): value is EstimationContext;
|
|
37
|
+
export declare function EstimationContextFromJSON(json: any): EstimationContext;
|
|
38
|
+
export declare function EstimationContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): EstimationContext;
|
|
39
|
+
export declare function EstimationContextToJSON(json: any): EstimationContext;
|
|
40
|
+
export declare function EstimationContextToJSONTyped(value?: EstimationContext | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenShift Migration Advisor API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: undefined
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfEstimationContext = instanceOfEstimationContext;
|
|
17
|
+
exports.EstimationContextFromJSON = EstimationContextFromJSON;
|
|
18
|
+
exports.EstimationContextFromJSONTyped = EstimationContextFromJSONTyped;
|
|
19
|
+
exports.EstimationContextToJSON = EstimationContextToJSON;
|
|
20
|
+
exports.EstimationContextToJSONTyped = EstimationContextToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the EstimationContext interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfEstimationContext(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function EstimationContextFromJSON(json) {
|
|
28
|
+
return EstimationContextFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function EstimationContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'schemas': json['schemas'] == null ? undefined : json['schemas'],
|
|
36
|
+
'params': json['params'] == null ? undefined : json['params'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function EstimationContextToJSON(json) {
|
|
40
|
+
return EstimationContextToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function EstimationContextToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'schemas': value['schemas'],
|
|
48
|
+
'params': value['params'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Group
|
|
16
|
+
*/
|
|
17
|
+
export interface Group {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Group
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Group
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Group
|
|
34
|
+
*/
|
|
35
|
+
description?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {GroupKindEnum}
|
|
39
|
+
* @memberof Group
|
|
40
|
+
*/
|
|
41
|
+
kind: GroupKindEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Group
|
|
46
|
+
*/
|
|
47
|
+
icon: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Group
|
|
52
|
+
*/
|
|
53
|
+
company: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof Group
|
|
58
|
+
*/
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof Group
|
|
64
|
+
*/
|
|
65
|
+
updatedAt: Date;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const GroupKindEnum: {
|
|
71
|
+
readonly Partner: "partner";
|
|
72
|
+
readonly Admin: "admin";
|
|
73
|
+
};
|
|
74
|
+
export type GroupKindEnum = typeof GroupKindEnum[keyof typeof GroupKindEnum];
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the Group interface.
|
|
77
|
+
*/
|
|
78
|
+
export declare function instanceOfGroup(value: object): value is Group;
|
|
79
|
+
export declare function GroupFromJSON(json: any): Group;
|
|
80
|
+
export declare function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Group;
|
|
81
|
+
export declare function GroupToJSON(json: any): Group;
|
|
82
|
+
export declare function GroupToJSONTyped(value?: Group | null, ignoreDiscriminator?: boolean): any;
|