@openshift-migration-advisor/planner-sdk 0.28.0-e15db54db2a1 → 0.28.0-face23c2ad7b
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/VERSION +1 -1
- package/README.md +3 -3
- 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/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/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/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/docs/AssessmentV2.md +2 -2
- package/docs/Datastore.md +6 -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/models/AssessmentV2.ts +4 -4
- package/src/models/Datastore.ts +20 -2
- package/src/models/Inventory.ts +7 -1
- package/src/models/InventoryV2.ts +6 -0
- package/src/models/VsphereCoreInput.ts +12 -0
- package/src/runtime.ts +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.28.0-SNAPSHOT
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.28.0-
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.28.0-face23c2ad7b
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -217,8 +217,8 @@ and is automatically generated by the
|
|
|
217
217
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
218
218
|
|
|
219
219
|
- API version: `v1alpha1`
|
|
220
|
-
- Package version: `0.28.0-
|
|
221
|
-
- Generator version: `7.
|
|
220
|
+
- Package version: `0.28.0-face23c2ad7b`
|
|
221
|
+
- Generator version: `7.28.0-SNAPSHOT`
|
|
222
222
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
223
223
|
|
|
224
224
|
The generated npm module supports the following:
|
|
@@ -19,7 +19,7 @@ import { SubResourceFromJSON, SubResourceToJSON, } from './SubResource.js';
|
|
|
19
19
|
export function instanceOfAssessmentV2(value) {
|
|
20
20
|
if (!('data' in value) || value['data'] === undefined)
|
|
21
21
|
return false;
|
|
22
|
-
if (!('
|
|
22
|
+
if (!('vcenters' in value) || value['vcenters'] === undefined)
|
|
23
23
|
return false;
|
|
24
24
|
return true;
|
|
25
25
|
}
|
|
@@ -32,7 +32,7 @@ export function AssessmentV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
}
|
|
33
33
|
return {
|
|
34
34
|
'data': InventoryV2FromJSON(json['data']),
|
|
35
|
-
'
|
|
35
|
+
'vcenters': (json['vcenters'].map(SubResourceFromJSON)),
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
export function AssessmentV2ToJSON(json) {
|
|
@@ -44,6 +44,6 @@ export function AssessmentV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
44
|
}
|
|
45
45
|
return {
|
|
46
46
|
'data': InventoryV2ToJSON(value['data']),
|
|
47
|
-
'
|
|
47
|
+
'vcenters': (value['vcenters'].map(SubResourceToJSON)),
|
|
48
48
|
};
|
|
49
49
|
}
|
|
@@ -20,6 +20,18 @@ 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
|
*/
|
|
@@ -37,7 +49,7 @@ export interface Datastore {
|
|
|
37
49
|
*/
|
|
38
50
|
freeCapacityGB: number;
|
|
39
51
|
/**
|
|
40
|
-
*
|
|
52
|
+
* Vendor reported by matching backing devices when available
|
|
41
53
|
*/
|
|
42
54
|
vendor: string;
|
|
43
55
|
/**
|
|
@@ -53,7 +65,7 @@ export interface Datastore {
|
|
|
53
65
|
*/
|
|
54
66
|
protocolType: string;
|
|
55
67
|
/**
|
|
56
|
-
*
|
|
68
|
+
* Model reported by matching backing devices when available
|
|
57
69
|
*/
|
|
58
70
|
model: string;
|
|
59
71
|
/**
|
|
@@ -51,6 +51,9 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
53
|
'type': json['type'],
|
|
54
|
+
'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
|
|
55
|
+
'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
|
|
56
|
+
'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
|
|
54
57
|
'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
|
|
55
58
|
'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
|
|
56
59
|
'totalCapacityGB': json['totalCapacityGB'],
|
|
@@ -73,6 +76,9 @@ export function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
73
76
|
}
|
|
74
77
|
return {
|
|
75
78
|
'type': value['type'],
|
|
79
|
+
'backingDeviceIds': value['backingDeviceIds'],
|
|
80
|
+
'filesystemType': value['filesystemType'],
|
|
81
|
+
'filesystemMajorVersion': value['filesystemMajorVersion'],
|
|
76
82
|
'storageProtocol': value['storageProtocol'],
|
|
77
83
|
'vsanSnapshotSupport': value['vsanSnapshotSupport'],
|
|
78
84
|
'totalCapacityGB': value['totalCapacityGB'],
|
|
@@ -35,9 +35,13 @@ export interface Inventory {
|
|
|
35
35
|
*/
|
|
36
36
|
vcenter?: InventoryData;
|
|
37
37
|
/**
|
|
38
|
-
* Timestamp when the inventory
|
|
38
|
+
* Timestamp when the inventory document was built
|
|
39
39
|
*/
|
|
40
40
|
createdAt?: Date;
|
|
41
|
+
/**
|
|
42
|
+
* 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.
|
|
43
|
+
*/
|
|
44
|
+
collectionTime?: Date | null;
|
|
41
45
|
}
|
|
42
46
|
/**
|
|
43
47
|
* Check if a given object implements the Inventory interface.
|
|
@@ -36,6 +36,7 @@ export function InventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
37
37
|
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
38
38
|
'createdAt': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
|
|
39
|
+
'collectionTime': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
42
|
export function InventoryToJSON(json) {
|
|
@@ -51,5 +52,6 @@ export function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
52
|
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
52
53
|
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
53
54
|
'created_at': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
|
|
55
|
+
'collection_time': value['collectionTime'] == null ? value['collectionTime'] : serializeDateTime(value['collectionTime']),
|
|
54
56
|
};
|
|
55
57
|
}
|
|
@@ -32,6 +32,10 @@ export interface InventoryV2 {
|
|
|
32
32
|
* Timestamp when the inventory data was created or collected
|
|
33
33
|
*/
|
|
34
34
|
createdAt?: Date;
|
|
35
|
+
/**
|
|
36
|
+
* Oldest known source collection time. Null when unknown.
|
|
37
|
+
*/
|
|
38
|
+
collectionTime?: Date | null;
|
|
35
39
|
}
|
|
36
40
|
/**
|
|
37
41
|
* Check if a given object implements the InventoryV2 interface.
|
|
@@ -35,6 +35,7 @@ export function InventoryV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'data': InventoryDataFromJSON(json['data']),
|
|
36
36
|
'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
37
37
|
'createdAt': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
|
|
38
|
+
'collectionTime': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
41
|
export function InventoryV2ToJSON(json) {
|
|
@@ -49,5 +50,6 @@ export function InventoryV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
50
|
'data': InventoryDataToJSON(value['data']),
|
|
50
51
|
'vcenter_version': value['vcenterVersion'],
|
|
51
52
|
'created_at': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
|
|
53
|
+
'collection_time': value['collectionTime'] == null ? value['collectionTime'] : serializeDateTime(value['collectionTime']),
|
|
52
54
|
};
|
|
53
55
|
}
|
|
@@ -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
|
}
|
|
@@ -26,7 +26,7 @@ const SubResource_js_1 = require("./SubResource.js");
|
|
|
26
26
|
function instanceOfAssessmentV2(value) {
|
|
27
27
|
if (!('data' in value) || value['data'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('
|
|
29
|
+
if (!('vcenters' in value) || value['vcenters'] === undefined)
|
|
30
30
|
return false;
|
|
31
31
|
return true;
|
|
32
32
|
}
|
|
@@ -39,7 +39,7 @@ function AssessmentV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
41
|
'data': (0, InventoryV2_js_1.InventoryV2FromJSON)(json['data']),
|
|
42
|
-
'
|
|
42
|
+
'vcenters': (json['vcenters'].map(SubResource_js_1.SubResourceFromJSON)),
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
function AssessmentV2ToJSON(json) {
|
|
@@ -51,6 +51,6 @@ function AssessmentV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
53
|
'data': (0, InventoryV2_js_1.InventoryV2ToJSON)(value['data']),
|
|
54
|
-
'
|
|
54
|
+
'vcenters': (value['vcenters'].map(SubResource_js_1.SubResourceToJSON)),
|
|
55
55
|
};
|
|
56
56
|
}
|
|
@@ -20,6 +20,18 @@ 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
|
*/
|
|
@@ -37,7 +49,7 @@ export interface Datastore {
|
|
|
37
49
|
*/
|
|
38
50
|
freeCapacityGB: number;
|
|
39
51
|
/**
|
|
40
|
-
*
|
|
52
|
+
* Vendor reported by matching backing devices when available
|
|
41
53
|
*/
|
|
42
54
|
vendor: string;
|
|
43
55
|
/**
|
|
@@ -53,7 +65,7 @@ export interface Datastore {
|
|
|
53
65
|
*/
|
|
54
66
|
protocolType: string;
|
|
55
67
|
/**
|
|
56
|
-
*
|
|
68
|
+
* Model reported by matching backing devices when available
|
|
57
69
|
*/
|
|
58
70
|
model: string;
|
|
59
71
|
/**
|
package/dist/models/Datastore.js
CHANGED
|
@@ -59,6 +59,9 @@ 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'],
|
|
63
66
|
'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
|
|
64
67
|
'totalCapacityGB': json['totalCapacityGB'],
|
|
@@ -81,6 +84,9 @@ function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
81
84
|
}
|
|
82
85
|
return {
|
|
83
86
|
'type': value['type'],
|
|
87
|
+
'backingDeviceIds': value['backingDeviceIds'],
|
|
88
|
+
'filesystemType': value['filesystemType'],
|
|
89
|
+
'filesystemMajorVersion': value['filesystemMajorVersion'],
|
|
84
90
|
'storageProtocol': value['storageProtocol'],
|
|
85
91
|
'vsanSnapshotSupport': value['vsanSnapshotSupport'],
|
|
86
92
|
'totalCapacityGB': value['totalCapacityGB'],
|
|
@@ -35,9 +35,13 @@ export interface Inventory {
|
|
|
35
35
|
*/
|
|
36
36
|
vcenter?: InventoryData;
|
|
37
37
|
/**
|
|
38
|
-
* Timestamp when the inventory
|
|
38
|
+
* Timestamp when the inventory document was built
|
|
39
39
|
*/
|
|
40
40
|
createdAt?: Date;
|
|
41
|
+
/**
|
|
42
|
+
* 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.
|
|
43
|
+
*/
|
|
44
|
+
collectionTime?: Date | null;
|
|
41
45
|
}
|
|
42
46
|
/**
|
|
43
47
|
* Check if a given object implements the Inventory interface.
|
package/dist/models/Inventory.js
CHANGED
|
@@ -43,6 +43,7 @@ function InventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'clusters': ((0, runtime_js_1.mapValues)(json['clusters'], InventoryData_js_1.InventoryDataFromJSON)),
|
|
44
44
|
'vcenter': json['vcenter'] == null ? undefined : (0, InventoryData_js_1.InventoryDataFromJSON)(json['vcenter']),
|
|
45
45
|
'createdAt': json['created_at'] == null ? undefined : ((0, runtime_js_1.parseDateTime)(json['created_at'])),
|
|
46
|
+
'collectionTime': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : ((0, runtime_js_1.parseDateTime)(json['collection_time'])),
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
49
|
function InventoryToJSON(json) {
|
|
@@ -58,5 +59,6 @@ function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
59
|
'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
|
|
59
60
|
'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
|
|
60
61
|
'created_at': value['createdAt'] == null ? value['createdAt'] : (0, runtime_js_1.serializeDateTime)(value['createdAt']),
|
|
62
|
+
'collection_time': value['collectionTime'] == null ? value['collectionTime'] : (0, runtime_js_1.serializeDateTime)(value['collectionTime']),
|
|
61
63
|
};
|
|
62
64
|
}
|
|
@@ -32,6 +32,10 @@ export interface InventoryV2 {
|
|
|
32
32
|
* Timestamp when the inventory data was created or collected
|
|
33
33
|
*/
|
|
34
34
|
createdAt?: Date;
|
|
35
|
+
/**
|
|
36
|
+
* Oldest known source collection time. Null when unknown.
|
|
37
|
+
*/
|
|
38
|
+
collectionTime?: Date | null;
|
|
35
39
|
}
|
|
36
40
|
/**
|
|
37
41
|
* Check if a given object implements the InventoryV2 interface.
|
|
@@ -42,6 +42,7 @@ function InventoryV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'data': (0, InventoryData_js_1.InventoryDataFromJSON)(json['data']),
|
|
43
43
|
'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
44
44
|
'createdAt': json['created_at'] == null ? undefined : ((0, runtime_js_1.parseDateTime)(json['created_at'])),
|
|
45
|
+
'collectionTime': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : ((0, runtime_js_1.parseDateTime)(json['collection_time'])),
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
48
|
function InventoryV2ToJSON(json) {
|
|
@@ -56,5 +57,6 @@ function InventoryV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
56
57
|
'data': (0, InventoryData_js_1.InventoryDataToJSON)(value['data']),
|
|
57
58
|
'vcenter_version': value['vcenterVersion'],
|
|
58
59
|
'created_at': value['createdAt'] == null ? value['createdAt'] : (0, runtime_js_1.serializeDateTime)(value['createdAt']),
|
|
60
|
+
'collection_time': value['collectionTime'] == null ? value['collectionTime'] : (0, runtime_js_1.serializeDateTime)(value['collectionTime']),
|
|
59
61
|
};
|
|
60
62
|
}
|
|
@@ -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.
|
|
@@ -35,6 +35,8 @@ function VsphereCoreInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'vmEncryptionEnabled': json['vmEncryptionEnabled'] == null ? undefined : json['vmEncryptionEnabled'],
|
|
36
36
|
'vmEncryptionPolicy': json['vmEncryptionPolicy'] == null ? undefined : json['vmEncryptionPolicy'],
|
|
37
37
|
'srmEnabled': json['srmEnabled'] == null ? undefined : json['srmEnabled'],
|
|
38
|
+
'niocEnabled': json['niocEnabled'] == null ? undefined : json['niocEnabled'],
|
|
39
|
+
'niocDetails': json['niocDetails'] == null ? undefined : json['niocDetails'],
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
function VsphereCoreInputToJSON(json) {
|
|
@@ -48,5 +50,7 @@ function VsphereCoreInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
50
|
'vmEncryptionEnabled': value['vmEncryptionEnabled'],
|
|
49
51
|
'vmEncryptionPolicy': value['vmEncryptionPolicy'],
|
|
50
52
|
'srmEnabled': value['srmEnabled'],
|
|
53
|
+
'niocEnabled': value['niocEnabled'],
|
|
54
|
+
'niocDetails': value['niocDetails'],
|
|
51
55
|
};
|
|
52
56
|
}
|
package/docs/AssessmentV2.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`data` | [InventoryV2](InventoryV2.md)
|
|
10
|
-
`
|
|
10
|
+
`vcenters` | [Array<SubResource>](SubResource.md)
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -17,7 +17,7 @@ import type { AssessmentV2 } from '@openshift-migration-advisor/planner-sdk'
|
|
|
17
17
|
// TODO: Update the object below with actual values
|
|
18
18
|
const example = {
|
|
19
19
|
"data": null,
|
|
20
|
-
"
|
|
20
|
+
"vcenters": null,
|
|
21
21
|
} satisfies AssessmentV2
|
|
22
22
|
|
|
23
23
|
console.log(example)
|
package/docs/Datastore.md
CHANGED
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`type` | string
|
|
10
|
+
`backingDeviceIds` | Array<string>
|
|
11
|
+
`filesystemType` | string
|
|
12
|
+
`filesystemMajorVersion` | number
|
|
10
13
|
`storageProtocol` | string
|
|
11
14
|
`vsanSnapshotSupport` | boolean
|
|
12
15
|
`totalCapacityGB` | number
|
|
@@ -27,6 +30,9 @@ import type { Datastore } from '@openshift-migration-advisor/planner-sdk'
|
|
|
27
30
|
// TODO: Update the object below with actual values
|
|
28
31
|
const example = {
|
|
29
32
|
"type": null,
|
|
33
|
+
"backingDeviceIds": null,
|
|
34
|
+
"filesystemType": null,
|
|
35
|
+
"filesystemMajorVersion": null,
|
|
30
36
|
"storageProtocol": null,
|
|
31
37
|
"vsanSnapshotSupport": null,
|
|
32
38
|
"totalCapacityGB": null,
|
package/docs/Inventory.md
CHANGED
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`clusters` | [{ [key: string]: InventoryData; }](InventoryData.md)
|
|
12
12
|
`vcenter` | [InventoryData](InventoryData.md)
|
|
13
13
|
`createdAt` | Date
|
|
14
|
+
`collectionTime` | Date
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -24,6 +25,7 @@ const example = {
|
|
|
24
25
|
"clusters": null,
|
|
25
26
|
"vcenter": null,
|
|
26
27
|
"createdAt": null,
|
|
28
|
+
"collectionTime": null,
|
|
27
29
|
} satisfies Inventory
|
|
28
30
|
|
|
29
31
|
console.log(example)
|
package/docs/InventoryV2.md
CHANGED
|
@@ -10,6 +10,7 @@ Name | Type
|
|
|
10
10
|
`data` | [InventoryData](InventoryData.md)
|
|
11
11
|
`vcenterVersion` | string
|
|
12
12
|
`createdAt` | Date
|
|
13
|
+
`collectionTime` | Date
|
|
13
14
|
|
|
14
15
|
## Example
|
|
15
16
|
|
|
@@ -22,6 +23,7 @@ const example = {
|
|
|
22
23
|
"data": null,
|
|
23
24
|
"vcenterVersion": null,
|
|
24
25
|
"createdAt": null,
|
|
26
|
+
"collectionTime": null,
|
|
25
27
|
} satisfies InventoryV2
|
|
26
28
|
|
|
27
29
|
console.log(example)
|
package/docs/JobApi.md
CHANGED
|
@@ -373,6 +373,8 @@ No authorization required
|
|
|
373
373
|
| **202** | Accepted - Job created | - |
|
|
374
374
|
| **400** | Bad Request | - |
|
|
375
375
|
| **401** | Unauthorized | - |
|
|
376
|
+
| **403** | Unauthorized | - |
|
|
377
|
+
| **404** | Not found | - |
|
|
376
378
|
| **500** | Internal error | - |
|
|
377
379
|
|
|
378
380
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
package/docs/VsphereCoreInput.md
CHANGED
|
@@ -9,6 +9,8 @@ Name | Type
|
|
|
9
9
|
`vmEncryptionEnabled` | boolean
|
|
10
10
|
`vmEncryptionPolicy` | string
|
|
11
11
|
`srmEnabled` | boolean
|
|
12
|
+
`niocEnabled` | boolean
|
|
13
|
+
`niocDetails` | string
|
|
12
14
|
|
|
13
15
|
## Example
|
|
14
16
|
|
|
@@ -20,6 +22,8 @@ const example = {
|
|
|
20
22
|
"vmEncryptionEnabled": null,
|
|
21
23
|
"vmEncryptionPolicy": null,
|
|
22
24
|
"srmEnabled": null,
|
|
25
|
+
"niocEnabled": null,
|
|
26
|
+
"niocDetails": null,
|
|
23
27
|
} satisfies VsphereCoreInput
|
|
24
28
|
|
|
25
29
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -41,7 +41,7 @@ export interface AssessmentV2 {
|
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
vcenters: Array<SubResource>;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
@@ -49,7 +49,7 @@ export interface AssessmentV2 {
|
|
|
49
49
|
*/
|
|
50
50
|
export function instanceOfAssessmentV2(value: object): value is AssessmentV2 {
|
|
51
51
|
if (!('data' in value) || value['data'] === undefined) return false;
|
|
52
|
-
if (!('
|
|
52
|
+
if (!('vcenters' in value) || value['vcenters'] === undefined) return false;
|
|
53
53
|
return true;
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -64,7 +64,7 @@ export function AssessmentV2FromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
64
64
|
return {
|
|
65
65
|
|
|
66
66
|
'data': InventoryV2FromJSON(json['data']),
|
|
67
|
-
'
|
|
67
|
+
'vcenters': ((json['vcenters'] as Array<any>).map(SubResourceFromJSON)),
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -80,7 +80,7 @@ export function AssessmentV2ToJSONTyped(value?: AssessmentV2 | null, ignoreDiscr
|
|
|
80
80
|
return {
|
|
81
81
|
|
|
82
82
|
'data': InventoryV2ToJSON(value['data']),
|
|
83
|
-
'
|
|
83
|
+
'vcenters': ((value['vcenters'] as Array<any>).map(SubResourceToJSON)),
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
86
|
|
package/src/models/Datastore.ts
CHANGED
|
@@ -31,6 +31,18 @@ export interface Datastore {
|
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
33
|
type: string;
|
|
34
|
+
/**
|
|
35
|
+
* Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
|
|
36
|
+
*/
|
|
37
|
+
backingDeviceIds?: Array<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Filesystem type reported by the datastore, such as VMFS, NFS, or NFS41
|
|
40
|
+
*/
|
|
41
|
+
filesystemType?: string;
|
|
42
|
+
/**
|
|
43
|
+
* VMFS major version when reported; omitted when unknown or not applicable
|
|
44
|
+
*/
|
|
45
|
+
filesystemMajorVersion?: number;
|
|
34
46
|
/**
|
|
35
47
|
* Storage access category derived from Datastore.Type
|
|
36
48
|
*/
|
|
@@ -48,7 +60,7 @@ export interface Datastore {
|
|
|
48
60
|
*/
|
|
49
61
|
freeCapacityGB: number;
|
|
50
62
|
/**
|
|
51
|
-
*
|
|
63
|
+
* Vendor reported by matching backing devices when available
|
|
52
64
|
*/
|
|
53
65
|
vendor: string;
|
|
54
66
|
/**
|
|
@@ -64,7 +76,7 @@ export interface Datastore {
|
|
|
64
76
|
*/
|
|
65
77
|
protocolType: string;
|
|
66
78
|
/**
|
|
67
|
-
*
|
|
79
|
+
* Model reported by matching backing devices when available
|
|
68
80
|
*/
|
|
69
81
|
model: string;
|
|
70
82
|
/**
|
|
@@ -115,6 +127,9 @@ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
115
127
|
return {
|
|
116
128
|
|
|
117
129
|
'type': json['type'],
|
|
130
|
+
'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
|
|
131
|
+
'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
|
|
132
|
+
'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
|
|
118
133
|
'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
|
|
119
134
|
'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
|
|
120
135
|
'totalCapacityGB': json['totalCapacityGB'],
|
|
@@ -141,6 +156,9 @@ export function DatastoreToJSONTyped(value?: Datastore | null, ignoreDiscriminat
|
|
|
141
156
|
return {
|
|
142
157
|
|
|
143
158
|
'type': value['type'],
|
|
159
|
+
'backingDeviceIds': value['backingDeviceIds'],
|
|
160
|
+
'filesystemType': value['filesystemType'],
|
|
161
|
+
'filesystemMajorVersion': value['filesystemMajorVersion'],
|
|
144
162
|
'storageProtocol': value['storageProtocol'],
|
|
145
163
|
'vsanSnapshotSupport': value['vsanSnapshotSupport'],
|
|
146
164
|
'totalCapacityGB': value['totalCapacityGB'],
|
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/runtime.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
export const BASE_PATH = "https://raw.githubusercontent.com".replace(/\/+$/, "");
|
|
15
|
+
export const BASE_PATH: string = "https://raw.githubusercontent.com".replace(/\/+$/, "");
|
|
16
16
|
|
|
17
17
|
export interface ConfigurationParameters {
|
|
18
18
|
basePath?: string; // override base path
|
|
@@ -83,7 +83,7 @@ export class Configuration {
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
export const DefaultConfig = new Configuration();
|
|
86
|
+
export const DefaultConfig: Configuration = new Configuration();
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
89
|
* This is the base class for all generated API classes.
|
|
@@ -93,22 +93,22 @@ export class BaseAPI {
|
|
|
93
93
|
private static readonly jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
|
|
94
94
|
private middleware: Middleware[];
|
|
95
95
|
|
|
96
|
-
constructor(protected configuration = DefaultConfig) {
|
|
96
|
+
constructor(protected configuration: Configuration = DefaultConfig) {
|
|
97
97
|
this.middleware = configuration.middleware;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]) {
|
|
100
|
+
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T {
|
|
101
101
|
const next = this.clone<T>();
|
|
102
102
|
next.middleware = next.middleware.concat(...middlewares);
|
|
103
103
|
return next;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>) {
|
|
106
|
+
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T {
|
|
107
107
|
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
108
108
|
return this.withMiddleware<T>(...middlewares);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>) {
|
|
111
|
+
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T {
|
|
112
112
|
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
113
113
|
return this.withMiddleware<T>(...middlewares);
|
|
114
114
|
}
|
|
@@ -354,7 +354,7 @@ function querystringSingleKey(key: string, value: string | number | null | undef
|
|
|
354
354
|
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
355
355
|
}
|
|
356
356
|
|
|
357
|
-
export function exists(json: any, key: string) {
|
|
357
|
+
export function exists(json: any, key: string): boolean {
|
|
358
358
|
const value = json[key];
|
|
359
359
|
return value !== null && value !== undefined;
|
|
360
360
|
}
|
|
@@ -410,7 +410,7 @@ export function parseDateTime(value: any): Date {
|
|
|
410
410
|
return new Date(value);
|
|
411
411
|
}
|
|
412
412
|
|
|
413
|
-
export function mapValues(data: any, fn: (item: any) => any) {
|
|
413
|
+
export function mapValues(data: any, fn: (item: any) => any): { [key: string]: any } {
|
|
414
414
|
const result: { [key: string]: any } = {};
|
|
415
415
|
for (const key of Object.keys(data)) {
|
|
416
416
|
result[key] = fn(data[key]);
|