@openshift-migration-advisor/planner-sdk 0.30.0 → 0.31.0
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/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/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/docs/Datastore.md +6 -0
- package/docs/Inventory.md +2 -0
- package/docs/InventoryV2.md +2 -0
- package/package.json +1 -1
- package/src/models/Datastore.ts +20 -2
- package/src/models/Inventory.ts +7 -1
- package/src/models/InventoryV2.ts +6 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.28.0-SNAPSHOT
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.31.0
|
|
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.
|
|
221
|
-
- Generator version: `7.
|
|
220
|
+
- Package version: `0.31.0`
|
|
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:
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
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/package.json
CHANGED
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
|
|