@openshift-migration-advisor/planner-sdk 0.29.0 → 0.31.0-3530a4e580e1
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 +4 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +6 -3
- package/dist/apis/AssessmentApi.d.ts +43 -0
- package/dist/apis/AssessmentApi.js +42 -0
- package/dist/esm/apis/AssessmentApi.d.ts +43 -0
- package/dist/esm/apis/AssessmentApi.js +42 -0
- package/dist/esm/models/AssessmentV2.d.ts +1 -1
- package/dist/esm/models/AssessmentV2.js +3 -3
- package/dist/esm/models/Datastore.d.ts +14 -2
- package/dist/esm/models/Datastore.js +6 -0
- package/dist/esm/models/Host.d.ts +10 -0
- package/dist/esm/models/Host.js +6 -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/Inventory.d.ts +5 -1
- package/dist/esm/models/Inventory.js +2 -0
- package/dist/esm/models/InventoryV2.d.ts +4 -0
- package/dist/esm/models/InventoryV2.js +2 -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 +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/AssessmentV2.d.ts +1 -1
- package/dist/models/AssessmentV2.js +3 -3
- package/dist/models/Datastore.d.ts +14 -2
- package/dist/models/Datastore.js +6 -0
- package/dist/models/Host.d.ts +10 -0
- package/dist/models/Host.js +6 -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/Inventory.d.ts +5 -1
- package/dist/models/Inventory.js +2 -0
- package/dist/models/InventoryV2.d.ts +4 -0
- package/dist/models/InventoryV2.js +2 -0
- package/dist/models/VsphereCoreInput.d.ts +8 -0
- package/dist/models/VsphereCoreInput.js +4 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/AssessmentApi.md +75 -0
- package/docs/AssessmentV2.md +2 -2
- package/docs/Datastore.md +6 -0
- package/docs/Host.md +4 -0
- package/docs/HostStorageAdapter.md +49 -0
- package/docs/HostStorageLun.md +45 -0
- package/docs/Inventory.md +2 -0
- package/docs/InventoryV2.md +2 -0
- package/docs/JobApi.md +2 -0
- package/docs/VsphereCoreInput.md +4 -0
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +87 -0
- package/src/models/AssessmentV2.ts +4 -4
- package/src/models/Datastore.ts +20 -2
- package/src/models/Host.ts +27 -0
- package/src/models/HostStorageAdapter.ts +105 -0
- package/src/models/HostStorageLun.ts +93 -0
- package/src/models/Inventory.ts +7 -1
- package/src/models/InventoryV2.ts +6 -0
- package/src/models/VsphereCoreInput.ts +12 -0
- package/src/models/index.ts +2 -0
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
* A host-visible LUN; missing or conflicting identity/metadata fields are omitted.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface HostStorageLun
|
|
20
|
+
*/
|
|
21
|
+
export interface HostStorageLun {
|
|
22
|
+
/**
|
|
23
|
+
* Canonical device name, distinct from the LUN UUID.
|
|
24
|
+
*/
|
|
25
|
+
canonicalName?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Source SCSI disk key.
|
|
28
|
+
*/
|
|
29
|
+
key?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Source-provided LUN UUID; never inferred from the device name or key.
|
|
32
|
+
*/
|
|
33
|
+
lunUuid?: string;
|
|
34
|
+
/**
|
|
35
|
+
* LUN vendor.
|
|
36
|
+
*/
|
|
37
|
+
vendor?: string;
|
|
38
|
+
/**
|
|
39
|
+
* LUN model.
|
|
40
|
+
*/
|
|
41
|
+
model?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Distinct sorted adapter device names associated with this LUN, including names whose adapter metadata is unavailable.
|
|
44
|
+
*/
|
|
45
|
+
adapterDevices?: Array<string>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the HostStorageLun interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfHostStorageLun(value: object): value is HostStorageLun {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function HostStorageLunFromJSON(json: any): HostStorageLun {
|
|
56
|
+
return HostStorageLunFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function HostStorageLunFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageLun {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'canonicalName': json['canonicalName'] == null ? undefined : json['canonicalName'],
|
|
66
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
67
|
+
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
68
|
+
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
69
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
70
|
+
'adapterDevices': json['adapterDevices'] == null ? undefined : json['adapterDevices'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function HostStorageLunToJSON(json: any): HostStorageLun {
|
|
75
|
+
return HostStorageLunToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function HostStorageLunToJSONTyped(value?: HostStorageLun | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'canonicalName': value['canonicalName'],
|
|
86
|
+
'key': value['key'],
|
|
87
|
+
'lunUuid': value['lunUuid'],
|
|
88
|
+
'vendor': value['vendor'],
|
|
89
|
+
'model': value['model'],
|
|
90
|
+
'adapterDevices': value['adapterDevices'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
package/src/models/Inventory.ts
CHANGED
|
@@ -44,9 +44,13 @@ export interface Inventory {
|
|
|
44
44
|
*/
|
|
45
45
|
vcenter?: InventoryData;
|
|
46
46
|
/**
|
|
47
|
-
* Timestamp when the inventory
|
|
47
|
+
* Timestamp when the inventory document was built
|
|
48
48
|
*/
|
|
49
49
|
createdAt?: Date;
|
|
50
|
+
/**
|
|
51
|
+
* Oldest known source collection time. Agent data uses collection database creation time; RVTools uses export metadata, assuming UTC when no timezone is specified. Null when unknown.
|
|
52
|
+
*/
|
|
53
|
+
collectionTime?: Date | null;
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
/**
|
|
@@ -73,6 +77,7 @@ export function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
73
77
|
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
74
78
|
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
75
79
|
'createdAt': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
|
|
80
|
+
'collectionTime': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
|
|
76
81
|
};
|
|
77
82
|
}
|
|
78
83
|
|
|
@@ -92,6 +97,7 @@ export function InventoryToJSONTyped(value?: Inventory | null, ignoreDiscriminat
|
|
|
92
97
|
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
93
98
|
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
94
99
|
'created_at': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
|
|
100
|
+
'collection_time': value['collectionTime'] == null ? value['collectionTime'] : serializeDateTime(value['collectionTime']),
|
|
95
101
|
};
|
|
96
102
|
}
|
|
97
103
|
|
|
@@ -43,6 +43,10 @@ export interface InventoryV2 {
|
|
|
43
43
|
* Timestamp when the inventory data was created or collected
|
|
44
44
|
*/
|
|
45
45
|
createdAt?: Date;
|
|
46
|
+
/**
|
|
47
|
+
* Oldest known source collection time. Null when unknown.
|
|
48
|
+
*/
|
|
49
|
+
collectionTime?: Date | null;
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
/**
|
|
@@ -68,6 +72,7 @@ export function InventoryV2FromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
68
72
|
'data': InventoryDataFromJSON(json['data']),
|
|
69
73
|
'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
70
74
|
'createdAt': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
|
|
75
|
+
'collectionTime': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
|
|
71
76
|
};
|
|
72
77
|
}
|
|
73
78
|
|
|
@@ -86,6 +91,7 @@ export function InventoryV2ToJSONTyped(value?: InventoryV2 | null, ignoreDiscrim
|
|
|
86
91
|
'data': InventoryDataToJSON(value['data']),
|
|
87
92
|
'vcenter_version': value['vcenterVersion'],
|
|
88
93
|
'created_at': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
|
|
94
|
+
'collection_time': value['collectionTime'] == null ? value['collectionTime'] : serializeDateTime(value['collectionTime']),
|
|
89
95
|
};
|
|
90
96
|
}
|
|
91
97
|
|
|
@@ -31,6 +31,14 @@ export interface VsphereCoreInput {
|
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
33
|
srmEnabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Whether Network I/O Control is enabled
|
|
36
|
+
*/
|
|
37
|
+
niocEnabled?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* How NIOC is configured and which traffic is prioritized
|
|
40
|
+
*/
|
|
41
|
+
niocDetails?: string;
|
|
34
42
|
}
|
|
35
43
|
|
|
36
44
|
/**
|
|
@@ -53,6 +61,8 @@ export function VsphereCoreInputFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
53
61
|
'vmEncryptionEnabled': json['vmEncryptionEnabled'] == null ? undefined : json['vmEncryptionEnabled'],
|
|
54
62
|
'vmEncryptionPolicy': json['vmEncryptionPolicy'] == null ? undefined : json['vmEncryptionPolicy'],
|
|
55
63
|
'srmEnabled': json['srmEnabled'] == null ? undefined : json['srmEnabled'],
|
|
64
|
+
'niocEnabled': json['niocEnabled'] == null ? undefined : json['niocEnabled'],
|
|
65
|
+
'niocDetails': json['niocDetails'] == null ? undefined : json['niocDetails'],
|
|
56
66
|
};
|
|
57
67
|
}
|
|
58
68
|
|
|
@@ -70,6 +80,8 @@ export function VsphereCoreInputToJSONTyped(value?: VsphereCoreInput | null, ign
|
|
|
70
80
|
'vmEncryptionEnabled': value['vmEncryptionEnabled'],
|
|
71
81
|
'vmEncryptionPolicy': value['vmEncryptionPolicy'],
|
|
72
82
|
'srmEnabled': value['srmEnabled'],
|
|
83
|
+
'niocEnabled': value['niocEnabled'],
|
|
84
|
+
'niocDetails': value['niocDetails'],
|
|
73
85
|
};
|
|
74
86
|
}
|
|
75
87
|
|
package/src/models/index.ts
CHANGED
|
@@ -38,6 +38,8 @@ export * from './GroupCreate.js';
|
|
|
38
38
|
export * from './GroupUpdate.js';
|
|
39
39
|
export * from './Histogram.js';
|
|
40
40
|
export * from './Host.js';
|
|
41
|
+
export * from './HostStorageAdapter.js';
|
|
42
|
+
export * from './HostStorageLun.js';
|
|
41
43
|
export * from './Identity.js';
|
|
42
44
|
export * from './Info.js';
|
|
43
45
|
export * from './Infra.js';
|