@openshift-migration-advisor/planner-sdk 0.29.0-5c7b2f2f9c88 → 0.29.0-6be8b373fa84
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/README.md +2 -2
- 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/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/Inventory.md +2 -0
- package/docs/InventoryV2.md +2 -0
- package/package.json +1 -1
- package/src/models/Inventory.ts +7 -1
- package/src/models/InventoryV2.ts +6 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.29.0-
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.29.0-6be8b373fa84
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -217,7 +217,7 @@ 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.29.0-
|
|
220
|
+
- Package version: `0.29.0-6be8b373fa84`
|
|
221
221
|
- Generator version: `7.27.0-SNAPSHOT`
|
|
222
222
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
223
223
|
|
|
@@ -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
|
}
|
|
@@ -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/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/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
|
|