@openshift-migration-advisor/planner-sdk 0.27.0 → 0.28.0-187c2d948808
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 +16 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +19 -3
- package/dist/apis/AssessmentApi.d.ts +257 -0
- package/dist/apis/AssessmentApi.js +257 -0
- package/dist/apis/ImageApi.d.ts +14 -0
- package/dist/apis/ImageApi.js +11 -1
- package/dist/apis/JobApi.d.ts +86 -0
- package/dist/apis/JobApi.js +124 -0
- package/dist/esm/apis/AssessmentApi.d.ts +257 -0
- package/dist/esm/apis/AssessmentApi.js +257 -0
- package/dist/esm/apis/ImageApi.d.ts +14 -0
- package/dist/esm/apis/ImageApi.js +10 -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 +18 -2
- package/dist/esm/models/Datastore.js +8 -0
- package/dist/esm/models/Host.d.ts +26 -0
- package/dist/esm/models/Host.js +14 -0
- package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
- package/dist/esm/models/HostStorageAdapter.js +55 -0
- package/dist/esm/models/HostStorageLun.d.ts +50 -0
- package/dist/esm/models/HostStorageLun.js +51 -0
- package/dist/esm/models/Info.d.ts +4 -0
- package/dist/esm/models/Info.js +2 -0
- package/dist/esm/models/Inventory.d.ts +5 -1
- package/dist/esm/models/Inventory.js +2 -0
- package/dist/esm/models/InventoryV2.d.ts +47 -0
- package/dist/esm/models/InventoryV2.js +55 -0
- package/dist/esm/models/OsInfo.d.ts +12 -0
- package/dist/esm/models/OsInfo.js +9 -0
- package/dist/esm/models/SourceType.d.ts +26 -0
- package/dist/esm/models/SourceType.js +44 -0
- package/dist/esm/models/SubResource.d.ts +30 -0
- package/dist/esm/models/SubResource.js +43 -0
- package/dist/esm/models/VsphereCoreInput.d.ts +8 -0
- package/dist/esm/models/VsphereCoreInput.js +4 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/esm/runtime.js +4 -3
- 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 +18 -2
- package/dist/models/Datastore.js +8 -0
- package/dist/models/Host.d.ts +26 -0
- package/dist/models/Host.js +14 -0
- package/dist/models/HostStorageAdapter.d.ts +58 -0
- package/dist/models/HostStorageAdapter.js +62 -0
- package/dist/models/HostStorageLun.d.ts +50 -0
- package/dist/models/HostStorageLun.js +58 -0
- package/dist/models/Info.d.ts +4 -0
- package/dist/models/Info.js +2 -0
- package/dist/models/Inventory.d.ts +5 -1
- package/dist/models/Inventory.js +2 -0
- package/dist/models/InventoryV2.d.ts +47 -0
- package/dist/models/InventoryV2.js +62 -0
- package/dist/models/OsInfo.d.ts +12 -0
- package/dist/models/OsInfo.js +10 -1
- package/dist/models/SourceType.d.ts +26 -0
- package/dist/models/SourceType.js +52 -0
- package/dist/models/SubResource.d.ts +30 -0
- package/dist/models/SubResource.js +50 -0
- package/dist/models/VsphereCoreInput.d.ts +8 -0
- package/dist/models/VsphereCoreInput.js +4 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/runtime.js +4 -3
- package/docs/AssessmentApi.md +447 -0
- package/docs/AssessmentV2.md +36 -0
- package/docs/AssessmentV2Summary.md +58 -0
- package/docs/AssessmentVCenterV2.md +36 -0
- package/docs/Datastore.md +8 -0
- package/docs/Host.md +12 -0
- package/docs/HostStorageAdapter.md +49 -0
- package/docs/HostStorageLun.md +45 -0
- package/docs/ImageApi.md +5 -2
- package/docs/Info.md +2 -0
- package/docs/Inventory.md +2 -0
- package/docs/InventoryV2.md +42 -0
- package/docs/JobApi.md +152 -0
- package/docs/OsInfo.md +2 -0
- package/docs/SourceType.md +32 -0
- package/docs/SubResource.md +34 -0
- package/docs/VsphereCoreInput.md +4 -0
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +536 -0
- package/src/apis/ImageApi.ts +19 -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 +26 -2
- package/src/models/Host.ts +51 -0
- package/src/models/HostStorageAdapter.ts +105 -0
- package/src/models/HostStorageLun.ts +93 -0
- package/src/models/Info.ts +6 -0
- package/src/models/Inventory.ts +7 -1
- package/src/models/InventoryV2.ts +97 -0
- package/src/models/OsInfo.ts +15 -0
- package/src/models/SourceType.ts +54 -0
- package/src/models/SubResource.ts +64 -0
- package/src/models/VsphereCoreInput.ts +12 -0
- package/src/models/index.ts +8 -0
- package/src/runtime.ts +11 -11
|
@@ -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;
|
|
@@ -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
|
+
}
|
|
@@ -27,6 +27,14 @@ export interface VsphereCoreInput {
|
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
29
|
srmEnabled?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Whether Network I/O Control is enabled
|
|
32
|
+
*/
|
|
33
|
+
niocEnabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* How NIOC is configured and which traffic is prioritized
|
|
36
|
+
*/
|
|
37
|
+
niocDetails?: string;
|
|
30
38
|
}
|
|
31
39
|
/**
|
|
32
40
|
* Check if a given object implements the VsphereCoreInput interface.
|
|
@@ -28,6 +28,8 @@ export function VsphereCoreInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
'vmEncryptionEnabled': json['vmEncryptionEnabled'] == null ? undefined : json['vmEncryptionEnabled'],
|
|
29
29
|
'vmEncryptionPolicy': json['vmEncryptionPolicy'] == null ? undefined : json['vmEncryptionPolicy'],
|
|
30
30
|
'srmEnabled': json['srmEnabled'] == null ? undefined : json['srmEnabled'],
|
|
31
|
+
'niocEnabled': json['niocEnabled'] == null ? undefined : json['niocEnabled'],
|
|
32
|
+
'niocDetails': json['niocDetails'] == null ? undefined : json['niocDetails'],
|
|
31
33
|
};
|
|
32
34
|
}
|
|
33
35
|
export function VsphereCoreInputToJSON(json) {
|
|
@@ -41,5 +43,7 @@ export function VsphereCoreInputToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
41
43
|
'vmEncryptionEnabled': value['vmEncryptionEnabled'],
|
|
42
44
|
'vmEncryptionPolicy': value['vmEncryptionPolicy'],
|
|
43
45
|
'srmEnabled': value['srmEnabled'],
|
|
46
|
+
'niocEnabled': value['niocEnabled'],
|
|
47
|
+
'niocDetails': value['niocDetails'],
|
|
44
48
|
};
|
|
45
49
|
}
|
|
@@ -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';
|
|
@@ -33,12 +36,15 @@ export * from './GroupCreate.js';
|
|
|
33
36
|
export * from './GroupUpdate.js';
|
|
34
37
|
export * from './Histogram.js';
|
|
35
38
|
export * from './Host.js';
|
|
39
|
+
export * from './HostStorageAdapter.js';
|
|
40
|
+
export * from './HostStorageLun.js';
|
|
36
41
|
export * from './Identity.js';
|
|
37
42
|
export * from './Info.js';
|
|
38
43
|
export * from './Infra.js';
|
|
39
44
|
export * from './Inventory.js';
|
|
40
45
|
export * from './InventoryData.js';
|
|
41
46
|
export * from './InventoryTotals.js';
|
|
47
|
+
export * from './InventoryV2.js';
|
|
42
48
|
export * from './Ipv4Config.js';
|
|
43
49
|
export * from './IssuesBreakdown.js';
|
|
44
50
|
export * from './Job.js';
|
|
@@ -76,11 +82,13 @@ export * from './Snapshot.js';
|
|
|
76
82
|
export * from './Source.js';
|
|
77
83
|
export * from './SourceCreate.js';
|
|
78
84
|
export * from './SourceInfra.js';
|
|
85
|
+
export * from './SourceType.js';
|
|
79
86
|
export * from './SourceUpdate.js';
|
|
80
87
|
export * from './StandaloneClusterRequirementsRequest.js';
|
|
81
88
|
export * from './StandaloneClusterRequirementsResponse.js';
|
|
82
89
|
export * from './Status.js';
|
|
83
90
|
export * from './StorageIoConfiguration.js';
|
|
91
|
+
export * from './SubResource.js';
|
|
84
92
|
export * from './UpdateInventory.js';
|
|
85
93
|
export * from './VCenter.js';
|
|
86
94
|
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';
|
|
@@ -35,12 +38,15 @@ export * from './GroupCreate.js';
|
|
|
35
38
|
export * from './GroupUpdate.js';
|
|
36
39
|
export * from './Histogram.js';
|
|
37
40
|
export * from './Host.js';
|
|
41
|
+
export * from './HostStorageAdapter.js';
|
|
42
|
+
export * from './HostStorageLun.js';
|
|
38
43
|
export * from './Identity.js';
|
|
39
44
|
export * from './Info.js';
|
|
40
45
|
export * from './Infra.js';
|
|
41
46
|
export * from './Inventory.js';
|
|
42
47
|
export * from './InventoryData.js';
|
|
43
48
|
export * from './InventoryTotals.js';
|
|
49
|
+
export * from './InventoryV2.js';
|
|
44
50
|
export * from './Ipv4Config.js';
|
|
45
51
|
export * from './IssuesBreakdown.js';
|
|
46
52
|
export * from './Job.js';
|
|
@@ -78,11 +84,13 @@ export * from './Snapshot.js';
|
|
|
78
84
|
export * from './Source.js';
|
|
79
85
|
export * from './SourceCreate.js';
|
|
80
86
|
export * from './SourceInfra.js';
|
|
87
|
+
export * from './SourceType.js';
|
|
81
88
|
export * from './SourceUpdate.js';
|
|
82
89
|
export * from './StandaloneClusterRequirementsRequest.js';
|
|
83
90
|
export * from './StandaloneClusterRequirementsResponse.js';
|
|
84
91
|
export * from './Status.js';
|
|
85
92
|
export * from './StorageIoConfiguration.js';
|
|
93
|
+
export * from './SubResource.js';
|
|
86
94
|
export * from './UpdateInventory.js';
|
|
87
95
|
export * from './VCenter.js';
|
|
88
96
|
export * from './VMResourceBreakdown.js';
|
package/dist/esm/runtime.js
CHANGED
|
@@ -419,7 +419,7 @@ export function parseContentDispositionFilename(headers) {
|
|
|
419
419
|
function decodeExtValue(value) {
|
|
420
420
|
const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
|
|
421
421
|
try {
|
|
422
|
-
return match ? decodeURIComponent(match[1]) : undefined;
|
|
422
|
+
return (match === null || match === void 0 ? void 0 : match[1]) !== undefined ? decodeURIComponent(match[1]) : undefined;
|
|
423
423
|
}
|
|
424
424
|
catch (_a) {
|
|
425
425
|
return undefined;
|
|
@@ -431,13 +431,14 @@ function decodeExtValue(value) {
|
|
|
431
431
|
* backslash escapes resolved, and the first occurrence of a name wins.
|
|
432
432
|
*/
|
|
433
433
|
function parseHeaderParameters(value) {
|
|
434
|
+
var _a, _b;
|
|
434
435
|
const params = new Map();
|
|
435
436
|
const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
|
|
436
437
|
let match;
|
|
437
438
|
while ((match = parameter.exec(value)) !== null) {
|
|
438
|
-
const name = match[1].toLowerCase();
|
|
439
|
+
const name = ((_a = match[1]) !== null && _a !== void 0 ? _a : '').toLowerCase();
|
|
439
440
|
if (!params.has(name)) {
|
|
440
|
-
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
|
|
441
|
+
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : ((_b = match[3]) !== null && _b !== void 0 ? _b : '').trim());
|
|
441
442
|
}
|
|
442
443
|
}
|
|
443
444
|
return params;
|
|
@@ -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
|
+
vcenters: 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 (!('vcenters' in value) || value['vcenters'] === 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
|
+
'vcenters': (json['vcenters'].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
|
+
'vcenters': (value['vcenters'].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
|
+
}
|
|
@@ -20,10 +20,26 @@ export interface Datastore {
|
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
22
|
type: string;
|
|
23
|
+
/**
|
|
24
|
+
* Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
|
|
25
|
+
*/
|
|
26
|
+
backingDeviceIds?: Array<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Filesystem type reported by the datastore, such as VMFS, NFS, or NFS41
|
|
29
|
+
*/
|
|
30
|
+
filesystemType?: string;
|
|
31
|
+
/**
|
|
32
|
+
* VMFS major version when reported; omitted when unknown or not applicable
|
|
33
|
+
*/
|
|
34
|
+
filesystemMajorVersion?: number;
|
|
23
35
|
/**
|
|
24
36
|
* Storage access category derived from Datastore.Type
|
|
25
37
|
*/
|
|
26
38
|
storageProtocol?: DatastoreStorageProtocolEnum;
|
|
39
|
+
/**
|
|
40
|
+
* Whether this datastore supports vSAN point-in-time snapshots
|
|
41
|
+
*/
|
|
42
|
+
vsanSnapshotSupport?: boolean;
|
|
27
43
|
/**
|
|
28
44
|
*
|
|
29
45
|
*/
|
|
@@ -33,7 +49,7 @@ export interface Datastore {
|
|
|
33
49
|
*/
|
|
34
50
|
freeCapacityGB: number;
|
|
35
51
|
/**
|
|
36
|
-
*
|
|
52
|
+
* Vendor reported by matching backing devices when available
|
|
37
53
|
*/
|
|
38
54
|
vendor: string;
|
|
39
55
|
/**
|
|
@@ -49,7 +65,7 @@ export interface Datastore {
|
|
|
49
65
|
*/
|
|
50
66
|
protocolType: string;
|
|
51
67
|
/**
|
|
52
|
-
*
|
|
68
|
+
* Model reported by matching backing devices when available
|
|
53
69
|
*/
|
|
54
70
|
model: string;
|
|
55
71
|
/**
|
package/dist/models/Datastore.js
CHANGED
|
@@ -59,7 +59,11 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
59
|
}
|
|
60
60
|
return {
|
|
61
61
|
'type': json['type'],
|
|
62
|
+
'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
|
|
63
|
+
'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
|
|
64
|
+
'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
|
|
62
65
|
'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
|
|
66
|
+
'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
|
|
63
67
|
'totalCapacityGB': json['totalCapacityGB'],
|
|
64
68
|
'freeCapacityGB': json['freeCapacityGB'],
|
|
65
69
|
'vendor': json['vendor'],
|
|
@@ -80,7 +84,11 @@ function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
80
84
|
}
|
|
81
85
|
return {
|
|
82
86
|
'type': value['type'],
|
|
87
|
+
'backingDeviceIds': value['backingDeviceIds'],
|
|
88
|
+
'filesystemType': value['filesystemType'],
|
|
89
|
+
'filesystemMajorVersion': value['filesystemMajorVersion'],
|
|
83
90
|
'storageProtocol': value['storageProtocol'],
|
|
91
|
+
'vsanSnapshotSupport': value['vsanSnapshotSupport'],
|
|
84
92
|
'totalCapacityGB': value['totalCapacityGB'],
|
|
85
93
|
'freeCapacityGB': value['freeCapacityGB'],
|
|
86
94
|
'vendor': value['vendor'],
|