@openshift-migration-advisor/planner-sdk 0.26.0-7a510f020d45 → 0.28.0-e15db54db2a1
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 +10 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +14 -3
- package/dist/apis/AssessmentApi.d.ts +162 -0
- package/dist/apis/AssessmentApi.js +168 -0
- package/dist/apis/JobApi.d.ts +86 -0
- package/dist/apis/JobApi.js +124 -0
- package/dist/esm/apis/AssessmentApi.d.ts +162 -0
- package/dist/esm/apis/AssessmentApi.js +168 -0
- package/dist/esm/apis/JobApi.d.ts +86 -0
- package/dist/esm/apis/JobApi.js +124 -0
- package/dist/esm/models/AssessmentV2.d.ts +36 -0
- package/dist/esm/models/AssessmentV2.js +49 -0
- package/dist/esm/models/AssessmentV2Summary.d.ts +97 -0
- package/dist/esm/models/AssessmentV2Summary.js +99 -0
- package/dist/esm/models/AssessmentVCenterV2.d.ts +36 -0
- package/dist/esm/models/AssessmentVCenterV2.js +49 -0
- package/dist/esm/models/Datastore.d.ts +4 -0
- package/dist/esm/models/Datastore.js +2 -0
- package/dist/esm/models/InventoryV2.d.ts +43 -0
- package/dist/esm/models/InventoryV2.js +53 -0
- package/dist/esm/models/SubResource.d.ts +30 -0
- package/dist/esm/models/SubResource.js +43 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/models/AssessmentV2.d.ts +36 -0
- package/dist/models/AssessmentV2.js +56 -0
- package/dist/models/AssessmentV2Summary.d.ts +97 -0
- package/dist/models/AssessmentV2Summary.js +107 -0
- package/dist/models/AssessmentVCenterV2.d.ts +36 -0
- package/dist/models/AssessmentVCenterV2.js +56 -0
- package/dist/models/Datastore.d.ts +4 -0
- package/dist/models/Datastore.js +2 -0
- package/dist/models/InventoryV2.d.ts +43 -0
- package/dist/models/InventoryV2.js +60 -0
- package/dist/models/SubResource.d.ts +30 -0
- package/dist/models/SubResource.js +50 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/docs/AssessmentApi.md +287 -0
- package/docs/AssessmentV2.md +36 -0
- package/docs/AssessmentV2Summary.md +58 -0
- package/docs/AssessmentVCenterV2.md +36 -0
- package/docs/Datastore.md +2 -0
- package/docs/InventoryV2.md +40 -0
- package/docs/JobApi.md +150 -0
- package/docs/SubResource.md +34 -0
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +341 -0
- package/src/apis/JobApi.ts +219 -0
- package/src/models/AssessmentV2.ts +86 -0
- package/src/models/AssessmentV2Summary.ts +173 -0
- package/src/models/AssessmentVCenterV2.ts +86 -0
- package/src/models/Datastore.ts +6 -0
- package/src/models/InventoryV2.ts +91 -0
- package/src/models/SubResource.ts +64 -0
- package/src/models/index.ts +5 -0
|
@@ -0,0 +1,43 @@
|
|
|
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: v1alpha1
|
|
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 SubResource interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSubResource(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function SubResourceFromJSON(json) {
|
|
23
|
+
return SubResourceFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function SubResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'id': json['id'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function SubResourceToJSON(json) {
|
|
34
|
+
return SubResourceToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function SubResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': value['id'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -9,6 +9,9 @@ export * from './AssessmentForm.js';
|
|
|
9
9
|
export * from './AssessmentSharing.js';
|
|
10
10
|
export * from './AssessmentSubsetInventory.js';
|
|
11
11
|
export * from './AssessmentUpdate.js';
|
|
12
|
+
export * from './AssessmentV2.js';
|
|
13
|
+
export * from './AssessmentV2Summary.js';
|
|
14
|
+
export * from './AssessmentVCenterV2.js';
|
|
12
15
|
export * from './ClusterFeatures.js';
|
|
13
16
|
export * from './ClusterRequirementsRequest.js';
|
|
14
17
|
export * from './ClusterRequirementsResponse.js';
|
|
@@ -39,6 +42,7 @@ export * from './Infra.js';
|
|
|
39
42
|
export * from './Inventory.js';
|
|
40
43
|
export * from './InventoryData.js';
|
|
41
44
|
export * from './InventoryTotals.js';
|
|
45
|
+
export * from './InventoryV2.js';
|
|
42
46
|
export * from './Ipv4Config.js';
|
|
43
47
|
export * from './IssuesBreakdown.js';
|
|
44
48
|
export * from './Job.js';
|
|
@@ -81,6 +85,7 @@ export * from './StandaloneClusterRequirementsRequest.js';
|
|
|
81
85
|
export * from './StandaloneClusterRequirementsResponse.js';
|
|
82
86
|
export * from './Status.js';
|
|
83
87
|
export * from './StorageIoConfiguration.js';
|
|
88
|
+
export * from './SubResource.js';
|
|
84
89
|
export * from './UpdateInventory.js';
|
|
85
90
|
export * from './VCenter.js';
|
|
86
91
|
export * from './VMResourceBreakdown.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -11,6 +11,9 @@ export * from './AssessmentForm.js';
|
|
|
11
11
|
export * from './AssessmentSharing.js';
|
|
12
12
|
export * from './AssessmentSubsetInventory.js';
|
|
13
13
|
export * from './AssessmentUpdate.js';
|
|
14
|
+
export * from './AssessmentV2.js';
|
|
15
|
+
export * from './AssessmentV2Summary.js';
|
|
16
|
+
export * from './AssessmentVCenterV2.js';
|
|
14
17
|
export * from './ClusterFeatures.js';
|
|
15
18
|
export * from './ClusterRequirementsRequest.js';
|
|
16
19
|
export * from './ClusterRequirementsResponse.js';
|
|
@@ -41,6 +44,7 @@ export * from './Infra.js';
|
|
|
41
44
|
export * from './Inventory.js';
|
|
42
45
|
export * from './InventoryData.js';
|
|
43
46
|
export * from './InventoryTotals.js';
|
|
47
|
+
export * from './InventoryV2.js';
|
|
44
48
|
export * from './Ipv4Config.js';
|
|
45
49
|
export * from './IssuesBreakdown.js';
|
|
46
50
|
export * from './Job.js';
|
|
@@ -83,6 +87,7 @@ export * from './StandaloneClusterRequirementsRequest.js';
|
|
|
83
87
|
export * from './StandaloneClusterRequirementsResponse.js';
|
|
84
88
|
export * from './Status.js';
|
|
85
89
|
export * from './StorageIoConfiguration.js';
|
|
90
|
+
export * from './SubResource.js';
|
|
86
91
|
export * from './UpdateInventory.js';
|
|
87
92
|
export * from './VCenter.js';
|
|
88
93
|
export * from './VMResourceBreakdown.js';
|
|
@@ -0,0 +1,36 @@
|
|
|
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: v1alpha1
|
|
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 { InventoryV2 } from './InventoryV2.js';
|
|
13
|
+
import type { SubResource } from './SubResource.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AssessmentV2
|
|
18
|
+
*/
|
|
19
|
+
export interface AssessmentV2 {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
data: InventoryV2;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
vcetners: Array<SubResource>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the AssessmentV2 interface.
|
|
31
|
+
*/
|
|
32
|
+
export declare function instanceOfAssessmentV2(value: object): value is AssessmentV2;
|
|
33
|
+
export declare function AssessmentV2FromJSON(json: any): AssessmentV2;
|
|
34
|
+
export declare function AssessmentV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AssessmentV2;
|
|
35
|
+
export declare function AssessmentV2ToJSON(json: any): AssessmentV2;
|
|
36
|
+
export declare function AssessmentV2ToJSONTyped(value?: AssessmentV2 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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: v1alpha1
|
|
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.instanceOfAssessmentV2 = instanceOfAssessmentV2;
|
|
17
|
+
exports.AssessmentV2FromJSON = AssessmentV2FromJSON;
|
|
18
|
+
exports.AssessmentV2FromJSONTyped = AssessmentV2FromJSONTyped;
|
|
19
|
+
exports.AssessmentV2ToJSON = AssessmentV2ToJSON;
|
|
20
|
+
exports.AssessmentV2ToJSONTyped = AssessmentV2ToJSONTyped;
|
|
21
|
+
const InventoryV2_js_1 = require("./InventoryV2.js");
|
|
22
|
+
const SubResource_js_1 = require("./SubResource.js");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AssessmentV2 interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfAssessmentV2(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('vcetners' in value) || value['vcetners'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function AssessmentV2FromJSON(json) {
|
|
34
|
+
return AssessmentV2FromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function AssessmentV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (0, InventoryV2_js_1.InventoryV2FromJSON)(json['data']),
|
|
42
|
+
'vcetners': (json['vcetners'].map(SubResource_js_1.SubResourceFromJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function AssessmentV2ToJSON(json) {
|
|
46
|
+
return AssessmentV2ToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function AssessmentV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'data': (0, InventoryV2_js_1.InventoryV2ToJSON)(value['data']),
|
|
54
|
+
'vcetners': (value['vcetners'].map(SubResource_js_1.SubResourceToJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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: v1alpha1
|
|
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 { AssessmentSharing } from './AssessmentSharing.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AssessmentV2Summary
|
|
17
|
+
*/
|
|
18
|
+
export interface AssessmentV2Summary {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
* Owner's first name
|
|
29
|
+
*/
|
|
30
|
+
ownerFirstName?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Owner's last name
|
|
33
|
+
*/
|
|
34
|
+
ownerLastName?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
sourceType: AssessmentV2SummarySourceTypeEnum;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
datastoresCount: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
hostsCount: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
vmsCount: number;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
networksCount: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
sourceId?: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
createdAt: Date;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
permissions?: Array<AssessmentV2SummaryPermissionsEnum>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
sharing?: AssessmentSharing;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @export
|
|
74
|
+
*/
|
|
75
|
+
export declare const AssessmentV2SummarySourceTypeEnum: {
|
|
76
|
+
readonly Inventory: "inventory";
|
|
77
|
+
readonly Rvtools: "rvtools";
|
|
78
|
+
readonly Source: "source";
|
|
79
|
+
};
|
|
80
|
+
export type AssessmentV2SummarySourceTypeEnum = typeof AssessmentV2SummarySourceTypeEnum[keyof typeof AssessmentV2SummarySourceTypeEnum];
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export declare const AssessmentV2SummaryPermissionsEnum: {
|
|
85
|
+
readonly Read: "read";
|
|
86
|
+
readonly Share: "share";
|
|
87
|
+
readonly Delete: "delete";
|
|
88
|
+
};
|
|
89
|
+
export type AssessmentV2SummaryPermissionsEnum = typeof AssessmentV2SummaryPermissionsEnum[keyof typeof AssessmentV2SummaryPermissionsEnum];
|
|
90
|
+
/**
|
|
91
|
+
* Check if a given object implements the AssessmentV2Summary interface.
|
|
92
|
+
*/
|
|
93
|
+
export declare function instanceOfAssessmentV2Summary(value: object): value is AssessmentV2Summary;
|
|
94
|
+
export declare function AssessmentV2SummaryFromJSON(json: any): AssessmentV2Summary;
|
|
95
|
+
export declare function AssessmentV2SummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssessmentV2Summary;
|
|
96
|
+
export declare function AssessmentV2SummaryToJSON(json: any): AssessmentV2Summary;
|
|
97
|
+
export declare function AssessmentV2SummaryToJSONTyped(value?: AssessmentV2Summary | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,107 @@
|
|
|
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: v1alpha1
|
|
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.AssessmentV2SummaryPermissionsEnum = exports.AssessmentV2SummarySourceTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfAssessmentV2Summary = instanceOfAssessmentV2Summary;
|
|
18
|
+
exports.AssessmentV2SummaryFromJSON = AssessmentV2SummaryFromJSON;
|
|
19
|
+
exports.AssessmentV2SummaryFromJSONTyped = AssessmentV2SummaryFromJSONTyped;
|
|
20
|
+
exports.AssessmentV2SummaryToJSON = AssessmentV2SummaryToJSON;
|
|
21
|
+
exports.AssessmentV2SummaryToJSONTyped = AssessmentV2SummaryToJSONTyped;
|
|
22
|
+
const runtime_js_1 = require("../runtime.js");
|
|
23
|
+
const AssessmentSharing_js_1 = require("./AssessmentSharing.js");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.AssessmentV2SummarySourceTypeEnum = {
|
|
28
|
+
Inventory: 'inventory',
|
|
29
|
+
Rvtools: 'rvtools',
|
|
30
|
+
Source: 'source',
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
exports.AssessmentV2SummaryPermissionsEnum = {
|
|
36
|
+
Read: 'read',
|
|
37
|
+
Share: 'share',
|
|
38
|
+
Delete: 'delete',
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the AssessmentV2Summary interface.
|
|
42
|
+
*/
|
|
43
|
+
function instanceOfAssessmentV2Summary(value) {
|
|
44
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('sourceType' in value) || value['sourceType'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('datastoresCount' in value) || value['datastoresCount'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('hostsCount' in value) || value['hostsCount'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('vmsCount' in value) || value['vmsCount'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('networksCount' in value) || value['networksCount'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
function AssessmentV2SummaryFromJSON(json) {
|
|
63
|
+
return AssessmentV2SummaryFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function AssessmentV2SummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'id': json['id'],
|
|
71
|
+
'name': json['name'],
|
|
72
|
+
'ownerFirstName': json['ownerFirstName'] == null ? undefined : json['ownerFirstName'],
|
|
73
|
+
'ownerLastName': json['ownerLastName'] == null ? undefined : json['ownerLastName'],
|
|
74
|
+
'sourceType': json['sourceType'],
|
|
75
|
+
'datastoresCount': json['datastoresCount'],
|
|
76
|
+
'hostsCount': json['hostsCount'],
|
|
77
|
+
'vmsCount': json['vmsCount'],
|
|
78
|
+
'networksCount': json['networksCount'],
|
|
79
|
+
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
80
|
+
'createdAt': (json['createdAt'] == null ? json['createdAt'] : (0, runtime_js_1.parseDateTime)(json['createdAt'])),
|
|
81
|
+
'permissions': json['permissions'] == null ? undefined : json['permissions'],
|
|
82
|
+
'sharing': json['sharing'] == null ? undefined : (0, AssessmentSharing_js_1.AssessmentSharingFromJSON)(json['sharing']),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function AssessmentV2SummaryToJSON(json) {
|
|
86
|
+
return AssessmentV2SummaryToJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
function AssessmentV2SummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
'id': value['id'],
|
|
94
|
+
'name': value['name'],
|
|
95
|
+
'ownerFirstName': value['ownerFirstName'],
|
|
96
|
+
'ownerLastName': value['ownerLastName'],
|
|
97
|
+
'sourceType': value['sourceType'],
|
|
98
|
+
'datastoresCount': value['datastoresCount'],
|
|
99
|
+
'hostsCount': value['hostsCount'],
|
|
100
|
+
'vmsCount': value['vmsCount'],
|
|
101
|
+
'networksCount': value['networksCount'],
|
|
102
|
+
'sourceId': value['sourceId'],
|
|
103
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : (0, runtime_js_1.serializeDateTime)(value['createdAt']),
|
|
104
|
+
'permissions': value['permissions'],
|
|
105
|
+
'sharing': (0, AssessmentSharing_js_1.AssessmentSharingToJSON)(value['sharing']),
|
|
106
|
+
};
|
|
107
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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: v1alpha1
|
|
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 { InventoryV2 } from './InventoryV2.js';
|
|
13
|
+
import type { SubResource } from './SubResource.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AssessmentVCenterV2
|
|
18
|
+
*/
|
|
19
|
+
export interface AssessmentVCenterV2 {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
data: InventoryV2;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
clusters: Array<SubResource>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the AssessmentVCenterV2 interface.
|
|
31
|
+
*/
|
|
32
|
+
export declare function instanceOfAssessmentVCenterV2(value: object): value is AssessmentVCenterV2;
|
|
33
|
+
export declare function AssessmentVCenterV2FromJSON(json: any): AssessmentVCenterV2;
|
|
34
|
+
export declare function AssessmentVCenterV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AssessmentVCenterV2;
|
|
35
|
+
export declare function AssessmentVCenterV2ToJSON(json: any): AssessmentVCenterV2;
|
|
36
|
+
export declare function AssessmentVCenterV2ToJSONTyped(value?: AssessmentVCenterV2 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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: v1alpha1
|
|
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.instanceOfAssessmentVCenterV2 = instanceOfAssessmentVCenterV2;
|
|
17
|
+
exports.AssessmentVCenterV2FromJSON = AssessmentVCenterV2FromJSON;
|
|
18
|
+
exports.AssessmentVCenterV2FromJSONTyped = AssessmentVCenterV2FromJSONTyped;
|
|
19
|
+
exports.AssessmentVCenterV2ToJSON = AssessmentVCenterV2ToJSON;
|
|
20
|
+
exports.AssessmentVCenterV2ToJSONTyped = AssessmentVCenterV2ToJSONTyped;
|
|
21
|
+
const InventoryV2_js_1 = require("./InventoryV2.js");
|
|
22
|
+
const SubResource_js_1 = require("./SubResource.js");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AssessmentVCenterV2 interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfAssessmentVCenterV2(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function AssessmentVCenterV2FromJSON(json) {
|
|
34
|
+
return AssessmentVCenterV2FromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function AssessmentVCenterV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (0, InventoryV2_js_1.InventoryV2FromJSON)(json['data']),
|
|
42
|
+
'clusters': (json['clusters'].map(SubResource_js_1.SubResourceFromJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function AssessmentVCenterV2ToJSON(json) {
|
|
46
|
+
return AssessmentVCenterV2ToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function AssessmentVCenterV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'data': (0, InventoryV2_js_1.InventoryV2ToJSON)(value['data']),
|
|
54
|
+
'clusters': (value['clusters'].map(SubResource_js_1.SubResourceToJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -24,6 +24,10 @@ export interface Datastore {
|
|
|
24
24
|
* Storage access category derived from Datastore.Type
|
|
25
25
|
*/
|
|
26
26
|
storageProtocol?: DatastoreStorageProtocolEnum;
|
|
27
|
+
/**
|
|
28
|
+
* Whether this datastore supports vSAN point-in-time snapshots
|
|
29
|
+
*/
|
|
30
|
+
vsanSnapshotSupport?: boolean;
|
|
27
31
|
/**
|
|
28
32
|
*
|
|
29
33
|
*/
|
package/dist/models/Datastore.js
CHANGED
|
@@ -60,6 +60,7 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
60
|
return {
|
|
61
61
|
'type': json['type'],
|
|
62
62
|
'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
|
|
63
|
+
'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
|
|
63
64
|
'totalCapacityGB': json['totalCapacityGB'],
|
|
64
65
|
'freeCapacityGB': json['freeCapacityGB'],
|
|
65
66
|
'vendor': json['vendor'],
|
|
@@ -81,6 +82,7 @@ function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
81
82
|
return {
|
|
82
83
|
'type': value['type'],
|
|
83
84
|
'storageProtocol': value['storageProtocol'],
|
|
85
|
+
'vsanSnapshotSupport': value['vsanSnapshotSupport'],
|
|
84
86
|
'totalCapacityGB': value['totalCapacityGB'],
|
|
85
87
|
'freeCapacityGB': value['freeCapacityGB'],
|
|
86
88
|
'vendor': value['vendor'],
|
|
@@ -0,0 +1,43 @@
|
|
|
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: v1alpha1
|
|
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 { InventoryData } from './InventoryData.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface InventoryV2
|
|
17
|
+
*/
|
|
18
|
+
export interface InventoryV2 {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
data: InventoryData;
|
|
27
|
+
/**
|
|
28
|
+
* Version of the vCenter api. For example "8.0.3.0"
|
|
29
|
+
*/
|
|
30
|
+
vcenterVersion?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Timestamp when the inventory data was created or collected
|
|
33
|
+
*/
|
|
34
|
+
createdAt?: Date;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the InventoryV2 interface.
|
|
38
|
+
*/
|
|
39
|
+
export declare function instanceOfInventoryV2(value: object): value is InventoryV2;
|
|
40
|
+
export declare function InventoryV2FromJSON(json: any): InventoryV2;
|
|
41
|
+
export declare function InventoryV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): InventoryV2;
|
|
42
|
+
export declare function InventoryV2ToJSON(json: any): InventoryV2;
|
|
43
|
+
export declare function InventoryV2ToJSONTyped(value?: InventoryV2 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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: v1alpha1
|
|
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.instanceOfInventoryV2 = instanceOfInventoryV2;
|
|
17
|
+
exports.InventoryV2FromJSON = InventoryV2FromJSON;
|
|
18
|
+
exports.InventoryV2FromJSONTyped = InventoryV2FromJSONTyped;
|
|
19
|
+
exports.InventoryV2ToJSON = InventoryV2ToJSON;
|
|
20
|
+
exports.InventoryV2ToJSONTyped = InventoryV2ToJSONTyped;
|
|
21
|
+
const runtime_js_1 = require("../runtime.js");
|
|
22
|
+
const InventoryData_js_1 = require("./InventoryData.js");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the InventoryV2 interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfInventoryV2(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function InventoryV2FromJSON(json) {
|
|
34
|
+
return InventoryV2FromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function InventoryV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'data': (0, InventoryData_js_1.InventoryDataFromJSON)(json['data']),
|
|
43
|
+
'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
44
|
+
'createdAt': json['created_at'] == null ? undefined : ((0, runtime_js_1.parseDateTime)(json['created_at'])),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function InventoryV2ToJSON(json) {
|
|
48
|
+
return InventoryV2ToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function InventoryV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': value['id'],
|
|
56
|
+
'data': (0, InventoryData_js_1.InventoryDataToJSON)(value['data']),
|
|
57
|
+
'vcenter_version': value['vcenterVersion'],
|
|
58
|
+
'created_at': value['createdAt'] == null ? value['createdAt'] : (0, runtime_js_1.serializeDateTime)(value['createdAt']),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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: v1alpha1
|
|
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 SubResource
|
|
16
|
+
*/
|
|
17
|
+
export interface SubResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the SubResource interface.
|
|
25
|
+
*/
|
|
26
|
+
export declare function instanceOfSubResource(value: object): value is SubResource;
|
|
27
|
+
export declare function SubResourceFromJSON(json: any): SubResource;
|
|
28
|
+
export declare function SubResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubResource;
|
|
29
|
+
export declare function SubResourceToJSON(json: any): SubResource;
|
|
30
|
+
export declare function SubResourceToJSONTyped(value?: SubResource | null, ignoreDiscriminator?: boolean): any;
|