@openshift-migration-advisor/planner-sdk 0.20.1 → 0.20.2-cdd9e28947f3

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.
Files changed (38) hide show
  1. package/README.md +2 -2
  2. package/dist/esm/models/Agent.js +4 -4
  3. package/dist/esm/models/Assessment.js +2 -2
  4. package/dist/esm/models/AssessmentSubsetInventory.js +2 -2
  5. package/dist/esm/models/Group.js +4 -4
  6. package/dist/esm/models/Host.d.ts +8 -0
  7. package/dist/esm/models/Host.js +4 -0
  8. package/dist/esm/models/Inventory.d.ts +4 -0
  9. package/dist/esm/models/Inventory.js +2 -0
  10. package/dist/esm/models/Member.js +2 -2
  11. package/dist/esm/models/PartnerRequest.js +2 -2
  12. package/dist/esm/models/Snapshot.js +2 -2
  13. package/dist/esm/models/Source.js +4 -4
  14. package/dist/models/Agent.js +4 -4
  15. package/dist/models/Assessment.js +2 -2
  16. package/dist/models/AssessmentSubsetInventory.js +2 -2
  17. package/dist/models/Group.js +4 -4
  18. package/dist/models/Host.d.ts +8 -0
  19. package/dist/models/Host.js +4 -0
  20. package/dist/models/Inventory.d.ts +4 -0
  21. package/dist/models/Inventory.js +2 -0
  22. package/dist/models/Member.js +2 -2
  23. package/dist/models/PartnerRequest.js +2 -2
  24. package/dist/models/Snapshot.js +2 -2
  25. package/dist/models/Source.js +4 -4
  26. package/docs/Host.md +4 -0
  27. package/docs/Inventory.md +2 -0
  28. package/package.json +1 -1
  29. package/src/models/Agent.ts +4 -4
  30. package/src/models/Assessment.ts +2 -2
  31. package/src/models/AssessmentSubsetInventory.ts +2 -2
  32. package/src/models/Group.ts +4 -4
  33. package/src/models/Host.ts +12 -0
  34. package/src/models/Inventory.ts +6 -0
  35. package/src/models/Member.ts +2 -2
  36. package/src/models/PartnerRequest.ts +2 -2
  37. package/src/models/Snapshot.ts +2 -2
  38. package/src/models/Source.ts +4 -4
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/planner-sdk@0.20.1
1
+ # @openshift-migration-advisor/planner-sdk@0.20.2-cdd9e28947f3
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -192,7 +192,7 @@ and is automatically generated by the
192
192
  [OpenAPI Generator](https://openapi-generator.tech) project:
193
193
 
194
194
  - API version: `v1alpha1`
195
- - Package version: `0.20.1`
195
+ - Package version: `0.20.2-cdd9e28947f3`
196
196
  - Generator version: `7.25.0-SNAPSHOT`
197
197
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
198
198
 
@@ -54,8 +54,8 @@ export function AgentFromJSONTyped(json, ignoreDiscriminator) {
54
54
  'status': json['status'],
55
55
  'statusInfo': json['statusInfo'],
56
56
  'credentialUrl': json['credentialUrl'],
57
- 'createdAt': (new Date(json['createdAt'])),
58
- 'updatedAt': (new Date(json['updatedAt'])),
57
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
58
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
59
59
  'version': json['version'],
60
60
  };
61
61
  }
@@ -71,8 +71,8 @@ export function AgentToJSONTyped(value, ignoreDiscriminator = false) {
71
71
  'status': value['status'],
72
72
  'statusInfo': value['statusInfo'],
73
73
  'credentialUrl': value['credentialUrl'],
74
- 'createdAt': value['createdAt'].toISOString(),
75
- 'updatedAt': value['updatedAt'].toISOString(),
74
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
75
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
76
76
  'version': value['version'],
77
77
  };
78
78
  }
@@ -59,7 +59,7 @@ export function AssessmentFromJSONTyped(json, ignoreDiscriminator) {
59
59
  'ownerLastName': json['ownerLastName'] == null ? undefined : json['ownerLastName'],
60
60
  'sourceType': json['sourceType'],
61
61
  'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
62
- 'createdAt': (new Date(json['createdAt'])),
62
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
63
63
  'snapshots': (json['snapshots'].map(SnapshotFromJSON)),
64
64
  'permissions': json['permissions'] == null ? undefined : json['permissions'],
65
65
  'sharing': json['sharing'] == null ? undefined : AssessmentSharingFromJSON(json['sharing']),
@@ -79,7 +79,7 @@ export function AssessmentToJSONTyped(value, ignoreDiscriminator = false) {
79
79
  'ownerLastName': value['ownerLastName'],
80
80
  'sourceType': value['sourceType'],
81
81
  'sourceId': value['sourceId'],
82
- 'createdAt': value['createdAt'].toISOString(),
82
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
83
83
  'snapshots': (value['snapshots'].map(SnapshotToJSON)),
84
84
  'permissions': value['permissions'],
85
85
  'sharing': AssessmentSharingToJSON(value['sharing']),
@@ -43,7 +43,7 @@ export function AssessmentSubsetInventoryFromJSONTyped(json, ignoreDiscriminator
43
43
  'vcenterId': json['vcenterId'],
44
44
  'vmsCount': json['vmsCount'],
45
45
  'inventory': InventoryFromJSON(json['inventory']),
46
- 'createdAt': (new Date(json['createdAt'])),
46
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
47
47
  };
48
48
  }
49
49
  export function AssessmentSubsetInventoryToJSON(json) {
@@ -59,6 +59,6 @@ export function AssessmentSubsetInventoryToJSONTyped(value, ignoreDiscriminator
59
59
  'vcenterId': value['vcenterId'],
60
60
  'vmsCount': value['vmsCount'],
61
61
  'inventory': InventoryToJSON(value['inventory']),
62
- 'createdAt': value['createdAt'].toISOString(),
62
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
63
63
  };
64
64
  }
@@ -52,8 +52,8 @@ export function GroupFromJSONTyped(json, ignoreDiscriminator) {
52
52
  'kind': json['kind'],
53
53
  'icon': json['icon'],
54
54
  'company': json['company'],
55
- 'createdAt': (new Date(json['createdAt'])),
56
- 'updatedAt': (new Date(json['updatedAt'])),
55
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
56
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
57
57
  };
58
58
  }
59
59
  export function GroupToJSON(json) {
@@ -70,7 +70,7 @@ export function GroupToJSONTyped(value, ignoreDiscriminator = false) {
70
70
  'kind': value['kind'],
71
71
  'icon': value['icon'],
72
72
  'company': value['company'],
73
- 'createdAt': value['createdAt'].toISOString(),
74
- 'updatedAt': value['updatedAt'].toISOString(),
73
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
74
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
75
75
  };
76
76
  }
@@ -39,6 +39,14 @@ export interface Host {
39
39
  * Host memory in MB
40
40
  */
41
41
  memoryMB?: number | null;
42
+ /**
43
+ * Whether vMotion is supported on this host (HostSystem.capability.vmotionSupported)
44
+ */
45
+ vmotionSupported?: boolean;
46
+ /**
47
+ * Whether Storage vMotion is supported on this host (HostSystem.capability.storageVMotionSupported)
48
+ */
49
+ storageVmotionSupported?: boolean;
42
50
  }
43
51
  /**
44
52
  * Check if a given object implements the Host interface.
@@ -35,6 +35,8 @@ export function HostFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
36
36
  'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
37
37
  'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
38
+ 'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
39
+ 'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
38
40
  };
39
41
  }
40
42
  export function HostToJSON(json) {
@@ -51,5 +53,7 @@ export function HostToJSONTyped(value, ignoreDiscriminator = false) {
51
53
  'cpuCores': value['cpuCores'],
52
54
  'cpuSockets': value['cpuSockets'],
53
55
  'memoryMB': value['memoryMB'],
56
+ 'vmotionSupported': value['vmotionSupported'],
57
+ 'storageVmotionSupported': value['storageVmotionSupported'],
54
58
  };
55
59
  }
@@ -34,6 +34,10 @@ export interface Inventory {
34
34
  *
35
35
  */
36
36
  vcenter?: InventoryData;
37
+ /**
38
+ * Timestamp when the inventory data was created or collected
39
+ */
40
+ createdAt?: Date;
37
41
  }
38
42
  /**
39
43
  * Check if a given object implements the Inventory interface.
@@ -35,6 +35,7 @@ export function InventoryFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
36
36
  'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
37
37
  'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
38
+ 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
38
39
  };
39
40
  }
40
41
  export function InventoryToJSON(json) {
@@ -49,5 +50,6 @@ export function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
49
50
  'vcenter_version': value['vcenterVersion'],
50
51
  'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
51
52
  'vcenter': InventoryDataToJSON(value['vcenter']),
53
+ 'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
52
54
  };
53
55
  }
@@ -36,7 +36,7 @@ export function MemberFromJSONTyped(json, ignoreDiscriminator) {
36
36
  'username': json['username'],
37
37
  'email': json['email'],
38
38
  'groupId': json['groupId'],
39
- 'createdAt': (new Date(json['createdAt'])),
39
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
40
40
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
41
41
  };
42
42
  }
@@ -51,7 +51,7 @@ export function MemberToJSONTyped(value, ignoreDiscriminator = false) {
51
51
  'username': value['username'],
52
52
  'email': value['email'],
53
53
  'groupId': value['groupId'],
54
- 'createdAt': value['createdAt'].toISOString(),
54
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
55
55
  'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
56
56
  };
57
57
  }
@@ -59,7 +59,7 @@ export function PartnerRequestFromJSONTyped(json, ignoreDiscriminator) {
59
59
  'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
60
60
  'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (new Date(json['acceptedAt'])),
61
61
  'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (new Date(json['terminatedAt'])),
62
- 'createdAt': (new Date(json['createdAt'])),
62
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
63
63
  };
64
64
  }
65
65
  export function PartnerRequestToJSON(json) {
@@ -82,6 +82,6 @@ export function PartnerRequestToJSONTyped(value, ignoreDiscriminator = false) {
82
82
  'reason': value['reason'],
83
83
  'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
84
84
  'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
85
- 'createdAt': value['createdAt'].toISOString(),
85
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
86
86
  };
87
87
  }
@@ -32,7 +32,7 @@ export function SnapshotFromJSONTyped(json, ignoreDiscriminator) {
32
32
  }
33
33
  return {
34
34
  'inventory': InventoryFromJSON(json['inventory']),
35
- 'createdAt': (new Date(json['createdAt'])),
35
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
36
36
  'subsetInventories': json['subsetInventories'] === undefined ? undefined : json['subsetInventories'] === null ? null : (json['subsetInventories'].map(AssessmentSubsetInventoryFromJSON)),
37
37
  };
38
38
  }
@@ -45,7 +45,7 @@ export function SnapshotToJSONTyped(value, ignoreDiscriminator = false) {
45
45
  }
46
46
  return {
47
47
  'inventory': InventoryToJSON(value['inventory']),
48
- 'createdAt': value['createdAt'].toISOString(),
48
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
49
49
  'subsetInventories': value['subsetInventories'] == null ? undefined : (value['subsetInventories'].map(AssessmentSubsetInventoryToJSON)),
50
50
  };
51
51
  }
@@ -49,8 +49,8 @@ export function SourceFromJSONTyped(json, ignoreDiscriminator) {
49
49
  'id': json['id'],
50
50
  'name': json['name'],
51
51
  'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
52
- 'createdAt': (new Date(json['createdAt'])),
53
- 'updatedAt': (new Date(json['updatedAt'])),
52
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
53
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
54
54
  'onPremises': json['onPremises'],
55
55
  'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
56
56
  'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
@@ -71,8 +71,8 @@ export function SourceToJSONTyped(value, ignoreDiscriminator = false) {
71
71
  'id': value['id'],
72
72
  'name': value['name'],
73
73
  'inventory': InventoryToJSON(value['inventory']),
74
- 'createdAt': value['createdAt'].toISOString(),
75
- 'updatedAt': value['updatedAt'].toISOString(),
74
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
75
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
76
76
  'onPremises': value['onPremises'],
77
77
  'agent': AgentToJSON(value['agent']),
78
78
  'labels': value['labels'] == null ? undefined : (value['labels'].map(LabelToJSON)),
@@ -62,8 +62,8 @@ function AgentFromJSONTyped(json, ignoreDiscriminator) {
62
62
  'status': json['status'],
63
63
  'statusInfo': json['statusInfo'],
64
64
  'credentialUrl': json['credentialUrl'],
65
- 'createdAt': (new Date(json['createdAt'])),
66
- 'updatedAt': (new Date(json['updatedAt'])),
65
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
66
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
67
67
  'version': json['version'],
68
68
  };
69
69
  }
@@ -79,8 +79,8 @@ function AgentToJSONTyped(value, ignoreDiscriminator = false) {
79
79
  'status': value['status'],
80
80
  'statusInfo': value['statusInfo'],
81
81
  'credentialUrl': value['credentialUrl'],
82
- 'createdAt': value['createdAt'].toISOString(),
83
- 'updatedAt': value['updatedAt'].toISOString(),
82
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
83
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
84
84
  'version': value['version'],
85
85
  };
86
86
  }
@@ -67,7 +67,7 @@ function AssessmentFromJSONTyped(json, ignoreDiscriminator) {
67
67
  'ownerLastName': json['ownerLastName'] == null ? undefined : json['ownerLastName'],
68
68
  'sourceType': json['sourceType'],
69
69
  'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
70
- 'createdAt': (new Date(json['createdAt'])),
70
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
71
71
  'snapshots': (json['snapshots'].map(Snapshot_js_1.SnapshotFromJSON)),
72
72
  'permissions': json['permissions'] == null ? undefined : json['permissions'],
73
73
  'sharing': json['sharing'] == null ? undefined : (0, AssessmentSharing_js_1.AssessmentSharingFromJSON)(json['sharing']),
@@ -87,7 +87,7 @@ function AssessmentToJSONTyped(value, ignoreDiscriminator = false) {
87
87
  'ownerLastName': value['ownerLastName'],
88
88
  'sourceType': value['sourceType'],
89
89
  'sourceId': value['sourceId'],
90
- 'createdAt': value['createdAt'].toISOString(),
90
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
91
91
  'snapshots': (value['snapshots'].map(Snapshot_js_1.SnapshotToJSON)),
92
92
  'permissions': value['permissions'],
93
93
  'sharing': (0, AssessmentSharing_js_1.AssessmentSharingToJSON)(value['sharing']),
@@ -50,7 +50,7 @@ function AssessmentSubsetInventoryFromJSONTyped(json, ignoreDiscriminator) {
50
50
  'vcenterId': json['vcenterId'],
51
51
  'vmsCount': json['vmsCount'],
52
52
  'inventory': (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
53
- 'createdAt': (new Date(json['createdAt'])),
53
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
54
54
  };
55
55
  }
56
56
  function AssessmentSubsetInventoryToJSON(json) {
@@ -66,6 +66,6 @@ function AssessmentSubsetInventoryToJSONTyped(value, ignoreDiscriminator = false
66
66
  'vcenterId': value['vcenterId'],
67
67
  'vmsCount': value['vmsCount'],
68
68
  'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
69
- 'createdAt': value['createdAt'].toISOString(),
69
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
70
70
  };
71
71
  }
@@ -60,8 +60,8 @@ function GroupFromJSONTyped(json, ignoreDiscriminator) {
60
60
  'kind': json['kind'],
61
61
  'icon': json['icon'],
62
62
  'company': json['company'],
63
- 'createdAt': (new Date(json['createdAt'])),
64
- 'updatedAt': (new Date(json['updatedAt'])),
63
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
64
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
65
65
  };
66
66
  }
67
67
  function GroupToJSON(json) {
@@ -78,7 +78,7 @@ function GroupToJSONTyped(value, ignoreDiscriminator = false) {
78
78
  'kind': value['kind'],
79
79
  'icon': value['icon'],
80
80
  'company': value['company'],
81
- 'createdAt': value['createdAt'].toISOString(),
82
- 'updatedAt': value['updatedAt'].toISOString(),
81
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
82
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
83
83
  };
84
84
  }
@@ -39,6 +39,14 @@ export interface Host {
39
39
  * Host memory in MB
40
40
  */
41
41
  memoryMB?: number | null;
42
+ /**
43
+ * Whether vMotion is supported on this host (HostSystem.capability.vmotionSupported)
44
+ */
45
+ vmotionSupported?: boolean;
46
+ /**
47
+ * Whether Storage vMotion is supported on this host (HostSystem.capability.storageVMotionSupported)
48
+ */
49
+ storageVmotionSupported?: boolean;
42
50
  }
43
51
  /**
44
52
  * Check if a given object implements the Host interface.
@@ -42,6 +42,8 @@ function HostFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
43
43
  'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
44
44
  'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
45
+ 'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
46
+ 'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
45
47
  };
46
48
  }
47
49
  function HostToJSON(json) {
@@ -58,5 +60,7 @@ function HostToJSONTyped(value, ignoreDiscriminator = false) {
58
60
  'cpuCores': value['cpuCores'],
59
61
  'cpuSockets': value['cpuSockets'],
60
62
  'memoryMB': value['memoryMB'],
63
+ 'vmotionSupported': value['vmotionSupported'],
64
+ 'storageVmotionSupported': value['storageVmotionSupported'],
61
65
  };
62
66
  }
@@ -34,6 +34,10 @@ export interface Inventory {
34
34
  *
35
35
  */
36
36
  vcenter?: InventoryData;
37
+ /**
38
+ * Timestamp when the inventory data was created or collected
39
+ */
40
+ createdAt?: Date;
37
41
  }
38
42
  /**
39
43
  * Check if a given object implements the Inventory interface.
@@ -42,6 +42,7 @@ function InventoryFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
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
+ 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
45
46
  };
46
47
  }
47
48
  function InventoryToJSON(json) {
@@ -56,5 +57,6 @@ function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
56
57
  'vcenter_version': value['vcenterVersion'],
57
58
  'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
58
59
  'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
60
+ 'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
59
61
  };
60
62
  }
@@ -43,7 +43,7 @@ function MemberFromJSONTyped(json, ignoreDiscriminator) {
43
43
  'username': json['username'],
44
44
  'email': json['email'],
45
45
  'groupId': json['groupId'],
46
- 'createdAt': (new Date(json['createdAt'])),
46
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
47
47
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
48
48
  };
49
49
  }
@@ -58,7 +58,7 @@ function MemberToJSONTyped(value, ignoreDiscriminator = false) {
58
58
  'username': value['username'],
59
59
  'email': value['email'],
60
60
  'groupId': value['groupId'],
61
- 'createdAt': value['createdAt'].toISOString(),
61
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
62
62
  'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
63
63
  };
64
64
  }
@@ -66,7 +66,7 @@ function PartnerRequestFromJSONTyped(json, ignoreDiscriminator) {
66
66
  'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
67
67
  'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (new Date(json['acceptedAt'])),
68
68
  'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (new Date(json['terminatedAt'])),
69
- 'createdAt': (new Date(json['createdAt'])),
69
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
70
70
  };
71
71
  }
72
72
  function PartnerRequestToJSON(json) {
@@ -89,6 +89,6 @@ function PartnerRequestToJSONTyped(value, ignoreDiscriminator = false) {
89
89
  'reason': value['reason'],
90
90
  'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
91
91
  'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
92
- 'createdAt': value['createdAt'].toISOString(),
92
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
93
93
  };
94
94
  }
@@ -39,7 +39,7 @@ function SnapshotFromJSONTyped(json, ignoreDiscriminator) {
39
39
  }
40
40
  return {
41
41
  'inventory': (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
42
- 'createdAt': (new Date(json['createdAt'])),
42
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
43
43
  'subsetInventories': json['subsetInventories'] === undefined ? undefined : json['subsetInventories'] === null ? null : (json['subsetInventories'].map(AssessmentSubsetInventory_js_1.AssessmentSubsetInventoryFromJSON)),
44
44
  };
45
45
  }
@@ -52,7 +52,7 @@ function SnapshotToJSONTyped(value, ignoreDiscriminator = false) {
52
52
  }
53
53
  return {
54
54
  'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
55
- 'createdAt': value['createdAt'].toISOString(),
55
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
56
56
  'subsetInventories': value['subsetInventories'] == null ? undefined : (value['subsetInventories'].map(AssessmentSubsetInventory_js_1.AssessmentSubsetInventoryToJSON)),
57
57
  };
58
58
  }
@@ -57,8 +57,8 @@ function SourceFromJSONTyped(json, ignoreDiscriminator) {
57
57
  'id': json['id'],
58
58
  'name': json['name'],
59
59
  'inventory': json['inventory'] == null ? undefined : (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
60
- 'createdAt': (new Date(json['createdAt'])),
61
- 'updatedAt': (new Date(json['updatedAt'])),
60
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
61
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
62
62
  'onPremises': json['onPremises'],
63
63
  'agent': json['agent'] == null ? undefined : (0, Agent_js_1.AgentFromJSON)(json['agent']),
64
64
  'labels': json['labels'] == null ? undefined : (json['labels'].map(Label_js_1.LabelFromJSON)),
@@ -79,8 +79,8 @@ function SourceToJSONTyped(value, ignoreDiscriminator = false) {
79
79
  'id': value['id'],
80
80
  'name': value['name'],
81
81
  'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
82
- 'createdAt': value['createdAt'].toISOString(),
83
- 'updatedAt': value['updatedAt'].toISOString(),
82
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
83
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
84
84
  'onPremises': value['onPremises'],
85
85
  'agent': (0, Agent_js_1.AgentToJSON)(value['agent']),
86
86
  'labels': value['labels'] == null ? undefined : (value['labels'].map(Label_js_1.LabelToJSON)),
package/docs/Host.md CHANGED
@@ -12,6 +12,8 @@ Name | Type
12
12
  `cpuCores` | number
13
13
  `cpuSockets` | number
14
14
  `memoryMB` | number
15
+ `vmotionSupported` | boolean
16
+ `storageVmotionSupported` | boolean
15
17
 
16
18
  ## Example
17
19
 
@@ -26,6 +28,8 @@ const example = {
26
28
  "cpuCores": null,
27
29
  "cpuSockets": null,
28
30
  "memoryMB": null,
31
+ "vmotionSupported": null,
32
+ "storageVmotionSupported": null,
29
33
  } satisfies Host
30
34
 
31
35
  console.log(example)
package/docs/Inventory.md CHANGED
@@ -10,6 +10,7 @@ Name | Type
10
10
  `vcenterVersion` | string
11
11
  `clusters` | [{ [key: string]: InventoryData; }](InventoryData.md)
12
12
  `vcenter` | [InventoryData](InventoryData.md)
13
+ `createdAt` | Date
13
14
 
14
15
  ## Example
15
16
 
@@ -22,6 +23,7 @@ const example = {
22
23
  "vcenterVersion": null,
23
24
  "clusters": null,
24
25
  "vcenter": null,
26
+ "createdAt": null,
25
27
  } satisfies Inventory
26
28
 
27
29
  console.log(example)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/planner-sdk",
3
- "version": "0.20.1",
3
+ "version": "0.20.2-cdd9e28947f3",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/planner-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -92,8 +92,8 @@ export function AgentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Age
92
92
  'status': json['status'],
93
93
  'statusInfo': json['statusInfo'],
94
94
  'credentialUrl': json['credentialUrl'],
95
- 'createdAt': (new Date(json['createdAt'])),
96
- 'updatedAt': (new Date(json['updatedAt'])),
95
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
96
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
97
97
  'version': json['version'],
98
98
  };
99
99
  }
@@ -113,8 +113,8 @@ export function AgentToJSONTyped(value?: Agent | null, ignoreDiscriminator: bool
113
113
  'status': value['status'],
114
114
  'statusInfo': value['statusInfo'],
115
115
  'credentialUrl': value['credentialUrl'],
116
- 'createdAt': value['createdAt'].toISOString(),
117
- 'updatedAt': value['updatedAt'].toISOString(),
116
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
117
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
118
118
  'version': value['version'],
119
119
  };
120
120
  }
@@ -126,7 +126,7 @@ export function AssessmentFromJSONTyped(json: any, ignoreDiscriminator: boolean)
126
126
  'ownerLastName': json['ownerLastName'] == null ? undefined : json['ownerLastName'],
127
127
  'sourceType': json['sourceType'],
128
128
  'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
129
- 'createdAt': (new Date(json['createdAt'])),
129
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
130
130
  'snapshots': ((json['snapshots'] as Array<any>).map(SnapshotFromJSON)),
131
131
  'permissions': json['permissions'] == null ? undefined : json['permissions'],
132
132
  'sharing': json['sharing'] == null ? undefined : AssessmentSharingFromJSON(json['sharing']),
@@ -150,7 +150,7 @@ export function AssessmentToJSONTyped(value?: Assessment | null, ignoreDiscrimin
150
150
  'ownerLastName': value['ownerLastName'],
151
151
  'sourceType': value['sourceType'],
152
152
  'sourceId': value['sourceId'],
153
- 'createdAt': value['createdAt'].toISOString(),
153
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
154
154
  'snapshots': ((value['snapshots'] as Array<any>).map(SnapshotToJSON)),
155
155
  'permissions': value['permissions'],
156
156
  'sharing': AssessmentSharingToJSON(value['sharing']),
@@ -81,7 +81,7 @@ export function AssessmentSubsetInventoryFromJSONTyped(json: any, ignoreDiscrimi
81
81
  'vcenterId': json['vcenterId'],
82
82
  'vmsCount': json['vmsCount'],
83
83
  'inventory': InventoryFromJSON(json['inventory']),
84
- 'createdAt': (new Date(json['createdAt'])),
84
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
85
85
  };
86
86
  }
87
87
 
@@ -101,7 +101,7 @@ export function AssessmentSubsetInventoryToJSONTyped(value?: AssessmentSubsetInv
101
101
  'vcenterId': value['vcenterId'],
102
102
  'vmsCount': value['vmsCount'],
103
103
  'inventory': InventoryToJSON(value['inventory']),
104
- 'createdAt': value['createdAt'].toISOString(),
104
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
105
105
  };
106
106
  }
107
107
 
@@ -94,8 +94,8 @@ export function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gro
94
94
  'kind': json['kind'],
95
95
  'icon': json['icon'],
96
96
  'company': json['company'],
97
- 'createdAt': (new Date(json['createdAt'])),
98
- 'updatedAt': (new Date(json['updatedAt'])),
97
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
98
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
99
99
  };
100
100
  }
101
101
 
@@ -116,8 +116,8 @@ export function GroupToJSONTyped(value?: Group | null, ignoreDiscriminator: bool
116
116
  'kind': value['kind'],
117
117
  'icon': value['icon'],
118
118
  'company': value['company'],
119
- 'createdAt': value['createdAt'].toISOString(),
120
- 'updatedAt': value['updatedAt'].toISOString(),
119
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
120
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
121
121
  };
122
122
  }
123
123
 
@@ -43,6 +43,14 @@ export interface Host {
43
43
  * Host memory in MB
44
44
  */
45
45
  memoryMB?: number | null;
46
+ /**
47
+ * Whether vMotion is supported on this host (HostSystem.capability.vmotionSupported)
48
+ */
49
+ vmotionSupported?: boolean;
50
+ /**
51
+ * Whether Storage vMotion is supported on this host (HostSystem.capability.storageVMotionSupported)
52
+ */
53
+ storageVmotionSupported?: boolean;
46
54
  }
47
55
 
48
56
  /**
@@ -70,6 +78,8 @@ export function HostFromJSONTyped(json: any, ignoreDiscriminator: boolean): Host
70
78
  'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
71
79
  'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
72
80
  'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
81
+ 'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
82
+ 'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
73
83
  };
74
84
  }
75
85
 
@@ -90,6 +100,8 @@ export function HostToJSONTyped(value?: Host | null, ignoreDiscriminator: boolea
90
100
  'cpuCores': value['cpuCores'],
91
101
  'cpuSockets': value['cpuSockets'],
92
102
  'memoryMB': value['memoryMB'],
103
+ 'vmotionSupported': value['vmotionSupported'],
104
+ 'storageVmotionSupported': value['storageVmotionSupported'],
93
105
  };
94
106
  }
95
107
 
@@ -43,6 +43,10 @@ export interface Inventory {
43
43
  *
44
44
  */
45
45
  vcenter?: InventoryData;
46
+ /**
47
+ * Timestamp when the inventory data was created or collected
48
+ */
49
+ createdAt?: Date;
46
50
  }
47
51
 
48
52
  /**
@@ -68,6 +72,7 @@ export function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
68
72
  'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
69
73
  'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
70
74
  'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
75
+ 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
71
76
  };
72
77
  }
73
78
 
@@ -86,6 +91,7 @@ export function InventoryToJSONTyped(value?: Inventory | null, ignoreDiscriminat
86
91
  'vcenter_version': value['vcenterVersion'],
87
92
  'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
88
93
  'vcenter': InventoryDataToJSON(value['vcenter']),
94
+ 'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
89
95
  };
90
96
  }
91
97
 
@@ -65,7 +65,7 @@ export function MemberFromJSONTyped(json: any, ignoreDiscriminator: boolean): Me
65
65
  'username': json['username'],
66
66
  'email': json['email'],
67
67
  'groupId': json['groupId'],
68
- 'createdAt': (new Date(json['createdAt'])),
68
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
69
69
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
70
70
  };
71
71
  }
@@ -84,7 +84,7 @@ export function MemberToJSONTyped(value?: Member | null, ignoreDiscriminator: bo
84
84
  'username': value['username'],
85
85
  'email': value['email'],
86
86
  'groupId': value['groupId'],
87
- 'createdAt': value['createdAt'].toISOString(),
87
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
88
88
  'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
89
89
  };
90
90
  }
@@ -129,7 +129,7 @@ export function PartnerRequestFromJSONTyped(json: any, ignoreDiscriminator: bool
129
129
  'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
130
130
  'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (new Date(json['acceptedAt'])),
131
131
  'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (new Date(json['terminatedAt'])),
132
- 'createdAt': (new Date(json['createdAt'])),
132
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
133
133
  };
134
134
  }
135
135
 
@@ -156,7 +156,7 @@ export function PartnerRequestToJSONTyped(value?: PartnerRequest | null, ignoreD
156
156
  'reason': value['reason'],
157
157
  'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
158
158
  'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
159
- 'createdAt': value['createdAt'].toISOString(),
159
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
160
160
  };
161
161
  }
162
162
 
@@ -68,7 +68,7 @@ export function SnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean):
68
68
  return {
69
69
 
70
70
  'inventory': InventoryFromJSON(json['inventory']),
71
- 'createdAt': (new Date(json['createdAt'])),
71
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
72
72
  'subsetInventories': json['subsetInventories'] === undefined ? undefined : json['subsetInventories'] === null ? null : ((json['subsetInventories'] as Array<any>).map(AssessmentSubsetInventoryFromJSON)),
73
73
  };
74
74
  }
@@ -85,7 +85,7 @@ export function SnapshotToJSONTyped(value?: Snapshot | null, ignoreDiscriminator
85
85
  return {
86
86
 
87
87
  'inventory': InventoryToJSON(value['inventory']),
88
- 'createdAt': value['createdAt'].toISOString(),
88
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
89
89
  'subsetInventories': value['subsetInventories'] == null ? undefined : ((value['subsetInventories'] as Array<any>).map(AssessmentSubsetInventoryToJSON)),
90
90
  };
91
91
  }
@@ -134,8 +134,8 @@ export function SourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): So
134
134
  'id': json['id'],
135
135
  'name': json['name'],
136
136
  'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
137
- 'createdAt': (new Date(json['createdAt'])),
138
- 'updatedAt': (new Date(json['updatedAt'])),
137
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
138
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
139
139
  'onPremises': json['onPremises'],
140
140
  'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
141
141
  'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(LabelFromJSON)),
@@ -160,8 +160,8 @@ export function SourceToJSONTyped(value?: Source | null, ignoreDiscriminator: bo
160
160
  'id': value['id'],
161
161
  'name': value['name'],
162
162
  'inventory': InventoryToJSON(value['inventory']),
163
- 'createdAt': value['createdAt'].toISOString(),
164
- 'updatedAt': value['updatedAt'].toISOString(),
163
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
164
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
165
165
  'onPremises': value['onPremises'],
166
166
  'agent': AgentToJSON(value['agent']),
167
167
  'labels': value['labels'] == null ? undefined : ((value['labels'] as Array<any>).map(LabelToJSON)),