@openshift-migration-advisor/planner-sdk 0.20.3-7b7fa251be69 → 0.21.0-dd2aa7ede360

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 (112) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/AccountApi.js +1 -1
  3. package/dist/esm/apis/AccountApi.js +1 -1
  4. package/dist/esm/models/ActiveEnvironmentsInput.js +1 -1
  5. package/dist/esm/models/Agent.js +6 -5
  6. package/dist/esm/models/AriaAutomationInput.js +1 -1
  7. package/dist/esm/models/AriaOpsInput.js +1 -1
  8. package/dist/esm/models/AriaSecureInput.js +1 -1
  9. package/dist/esm/models/Assessment.js +5 -4
  10. package/dist/esm/models/AssessmentSubsetInventory.js +3 -2
  11. package/dist/esm/models/ClusterFeatures.d.ts +2 -2
  12. package/dist/esm/models/ClusterFeatures.js +3 -3
  13. package/dist/esm/models/ClusterRequirementsRequest.js +1 -1
  14. package/dist/esm/models/ClusterRequirementsStoredInput.js +3 -3
  15. package/dist/esm/models/CpuOverCommitRatio.js +1 -1
  16. package/dist/esm/models/DeployedEnvironmentInput.js +1 -1
  17. package/dist/esm/models/Group.js +6 -5
  18. package/dist/esm/models/GroupCreate.js +1 -1
  19. package/dist/esm/models/Identity.js +1 -1
  20. package/dist/esm/models/Inventory.js +3 -3
  21. package/dist/esm/models/JobStatus.js +1 -1
  22. package/dist/esm/models/Member.js +5 -4
  23. package/dist/esm/models/MemoryOverCommitRatio.js +1 -1
  24. package/dist/esm/models/Network.js +1 -1
  25. package/dist/esm/models/NsxInput.js +1 -1
  26. package/dist/esm/models/OptimizationStatus.js +1 -1
  27. package/dist/esm/models/OsInfo.js +1 -1
  28. package/dist/esm/models/PartnerRequest.js +7 -6
  29. package/dist/esm/models/PartnerRequestStatus.js +1 -1
  30. package/dist/esm/models/PresignedUrl.js +3 -2
  31. package/dist/esm/models/Snapshot.js +3 -2
  32. package/dist/esm/models/Source.js +6 -5
  33. package/dist/esm/models/SourceCreate.js +1 -1
  34. package/dist/esm/models/SourceUpdate.js +1 -1
  35. package/dist/esm/models/StandaloneClusterRequirementsRequest.js +1 -1
  36. package/dist/esm/models/StorageIoConfiguration.js +1 -1
  37. package/dist/esm/models/VMwareSubscriptionInput.js +1 -1
  38. package/dist/esm/runtime.d.ts +11 -0
  39. package/dist/esm/runtime.js +47 -1
  40. package/dist/models/ActiveEnvironmentsInput.js +1 -1
  41. package/dist/models/Agent.js +6 -5
  42. package/dist/models/AriaAutomationInput.js +1 -1
  43. package/dist/models/AriaOpsInput.js +1 -1
  44. package/dist/models/AriaSecureInput.js +1 -1
  45. package/dist/models/Assessment.js +5 -4
  46. package/dist/models/AssessmentSubsetInventory.js +3 -2
  47. package/dist/models/ClusterFeatures.d.ts +2 -2
  48. package/dist/models/ClusterFeatures.js +3 -3
  49. package/dist/models/ClusterRequirementsRequest.js +1 -1
  50. package/dist/models/ClusterRequirementsStoredInput.js +3 -3
  51. package/dist/models/CpuOverCommitRatio.js +1 -1
  52. package/dist/models/DeployedEnvironmentInput.js +1 -1
  53. package/dist/models/Group.js +6 -5
  54. package/dist/models/GroupCreate.js +1 -1
  55. package/dist/models/Identity.js +1 -1
  56. package/dist/models/Inventory.js +2 -2
  57. package/dist/models/JobStatus.js +1 -1
  58. package/dist/models/Member.js +5 -4
  59. package/dist/models/MemoryOverCommitRatio.js +1 -1
  60. package/dist/models/Network.js +1 -1
  61. package/dist/models/NsxInput.js +1 -1
  62. package/dist/models/OptimizationStatus.js +1 -1
  63. package/dist/models/OsInfo.js +1 -1
  64. package/dist/models/PartnerRequest.js +7 -6
  65. package/dist/models/PartnerRequestStatus.js +1 -1
  66. package/dist/models/PresignedUrl.js +3 -2
  67. package/dist/models/Snapshot.js +3 -2
  68. package/dist/models/Source.js +6 -5
  69. package/dist/models/SourceCreate.js +1 -1
  70. package/dist/models/SourceUpdate.js +1 -1
  71. package/dist/models/StandaloneClusterRequirementsRequest.js +1 -1
  72. package/dist/models/StorageIoConfiguration.js +1 -1
  73. package/dist/models/VMwareSubscriptionInput.js +1 -1
  74. package/dist/runtime.d.ts +11 -0
  75. package/dist/runtime.js +51 -1
  76. package/docs/ClusterFeatures.md +2 -2
  77. package/package.json +1 -1
  78. package/src/apis/AccountApi.ts +1 -1
  79. package/src/models/ActiveEnvironmentsInput.ts +1 -1
  80. package/src/models/Agent.ts +6 -6
  81. package/src/models/AriaAutomationInput.ts +1 -1
  82. package/src/models/AriaOpsInput.ts +1 -1
  83. package/src/models/AriaSecureInput.ts +1 -1
  84. package/src/models/Assessment.ts +5 -5
  85. package/src/models/AssessmentSubsetInventory.ts +3 -3
  86. package/src/models/ClusterFeatures.ts +5 -5
  87. package/src/models/ClusterRequirementsRequest.ts +1 -1
  88. package/src/models/ClusterRequirementsStoredInput.ts +3 -3
  89. package/src/models/CpuOverCommitRatio.ts +1 -1
  90. package/src/models/DeployedEnvironmentInput.ts +1 -1
  91. package/src/models/Group.ts +6 -6
  92. package/src/models/GroupCreate.ts +1 -1
  93. package/src/models/Identity.ts +1 -1
  94. package/src/models/Inventory.ts +3 -3
  95. package/src/models/JobStatus.ts +1 -1
  96. package/src/models/Member.ts +5 -5
  97. package/src/models/MemoryOverCommitRatio.ts +1 -1
  98. package/src/models/Network.ts +1 -1
  99. package/src/models/NsxInput.ts +1 -1
  100. package/src/models/OptimizationStatus.ts +1 -1
  101. package/src/models/OsInfo.ts +1 -1
  102. package/src/models/PartnerRequest.ts +7 -7
  103. package/src/models/PartnerRequestStatus.ts +1 -1
  104. package/src/models/PresignedUrl.ts +3 -3
  105. package/src/models/Snapshot.ts +3 -3
  106. package/src/models/Source.ts +6 -6
  107. package/src/models/SourceCreate.ts +1 -1
  108. package/src/models/SourceUpdate.ts +1 -1
  109. package/src/models/StandaloneClusterRequirementsRequest.ts +1 -1
  110. package/src/models/StorageIoConfiguration.ts +1 -1
  111. package/src/models/VMwareSubscriptionInput.ts +1 -1
  112. package/src/runtime.ts +52 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/planner-sdk@0.20.3-7b7fa251be69
1
+ # @openshift-migration-advisor/planner-sdk@0.21.0-dd2aa7ede360
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -205,7 +205,7 @@ and is automatically generated by the
205
205
  [OpenAPI Generator](https://openapi-generator.tech) project:
206
206
 
207
207
  - API version: `v1alpha1`
208
- - Package version: `0.20.3-7b7fa251be69`
208
+ - Package version: `0.21.0-dd2aa7ede360`
209
209
  - Generator version: `7.25.0-SNAPSHOT`
210
210
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
211
211
 
@@ -456,5 +456,5 @@ exports.AccountApi = AccountApi;
456
456
  */
457
457
  exports.ListGroupsKindEnum = {
458
458
  Partner: 'partner',
459
- Admin: 'admin'
459
+ Admin: 'admin',
460
460
  };
@@ -452,5 +452,5 @@ export class AccountApi extends runtime.BaseAPI {
452
452
  */
453
453
  export const ListGroupsKindEnum = {
454
454
  Partner: 'partner',
455
- Admin: 'admin'
455
+ Admin: 'admin',
456
456
  };
@@ -19,7 +19,7 @@ export const ActiveEnvironmentsInputEnvironmentsEnum = {
19
19
  Qa: 'qa',
20
20
  Dev: 'dev',
21
21
  Other: 'other',
22
- NotAssessed: 'not_assessed'
22
+ NotAssessed: 'not_assessed',
23
23
  };
24
24
  /**
25
25
  * Check if a given object implements the ActiveEnvironmentsInput interface.
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
14
15
  /**
15
16
  * @export
16
17
  */
@@ -20,7 +21,7 @@ export const AgentStatusEnum = {
20
21
  Error: 'error',
21
22
  GatheringInitialInventory: 'gathering-initial-inventory',
22
23
  UpToDate: 'up-to-date',
23
- SourceGone: 'source-gone'
24
+ SourceGone: 'source-gone',
24
25
  };
25
26
  /**
26
27
  * Check if a given object implements the Agent interface.
@@ -54,8 +55,8 @@ export function AgentFromJSONTyped(json, ignoreDiscriminator) {
54
55
  'status': json['status'],
55
56
  'statusInfo': json['statusInfo'],
56
57
  'credentialUrl': json['credentialUrl'],
57
- 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
58
- 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
58
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
59
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : parseDateTime(json['updatedAt'])),
59
60
  'version': json['version'],
60
61
  };
61
62
  }
@@ -71,8 +72,8 @@ export function AgentToJSONTyped(value, ignoreDiscriminator = false) {
71
72
  'status': value['status'],
72
73
  'statusInfo': value['statusInfo'],
73
74
  'credentialUrl': value['credentialUrl'],
74
- 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
75
- 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
75
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
76
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : serializeDateTime(value['updatedAt']),
76
77
  'version': value['version'],
77
78
  };
78
79
  }
@@ -29,7 +29,7 @@ export const AriaAutomationInputFeaturesEnum = {
29
29
  K8sNamespaces: 'k8s_namespaces',
30
30
  NotAssessed: 'not_assessed',
31
31
  NotAvailable: 'not_available',
32
- NotInUse: 'not_in_use'
32
+ NotInUse: 'not_in_use',
33
33
  };
34
34
  /**
35
35
  * Check if a given object implements the AriaAutomationInput interface.
@@ -27,7 +27,7 @@ export const AriaOpsInputFeaturesEnum = {
27
27
  AnomalyDetection: 'anomaly_detection',
28
28
  NotAssessed: 'not_assessed',
29
29
  NotAvailable: 'not_available',
30
- NotInUse: 'not_in_use'
30
+ NotInUse: 'not_in_use',
31
31
  };
32
32
  /**
33
33
  * Check if a given object implements the AriaOpsInput interface.
@@ -19,7 +19,7 @@ export const AriaSecureInputFeaturesEnum = {
19
19
  ComplianceMonitoring: 'compliance_monitoring',
20
20
  NotAssessed: 'not_assessed',
21
21
  NotAvailable: 'not_available',
22
- NotInUse: 'not_in_use'
22
+ NotInUse: 'not_in_use',
23
23
  };
24
24
  /**
25
25
  * Check if a given object implements the AriaSecureInput interface.
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
14
15
  import { SnapshotFromJSON, SnapshotToJSON, } from './Snapshot.js';
15
16
  import { AssessmentSharingFromJSON, AssessmentSharingToJSON, } from './AssessmentSharing.js';
16
17
  /**
@@ -19,7 +20,7 @@ import { AssessmentSharingFromJSON, AssessmentSharingToJSON, } from './Assessmen
19
20
  export const AssessmentSourceTypeEnum = {
20
21
  Inventory: 'inventory',
21
22
  Rvtools: 'rvtools',
22
- Source: 'source'
23
+ Source: 'source',
23
24
  };
24
25
  /**
25
26
  * @export
@@ -27,7 +28,7 @@ export const AssessmentSourceTypeEnum = {
27
28
  export const AssessmentPermissionsEnum = {
28
29
  Read: 'read',
29
30
  Share: 'share',
30
- Delete: 'delete'
31
+ Delete: 'delete',
31
32
  };
32
33
  /**
33
34
  * Check if a given object implements the Assessment interface.
@@ -59,7 +60,7 @@ export function AssessmentFromJSONTyped(json, ignoreDiscriminator) {
59
60
  'ownerLastName': json['ownerLastName'] == null ? undefined : json['ownerLastName'],
60
61
  'sourceType': json['sourceType'],
61
62
  'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
62
- 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
63
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
63
64
  'snapshots': (json['snapshots'].map(SnapshotFromJSON)),
64
65
  'permissions': json['permissions'] == null ? undefined : json['permissions'],
65
66
  'sharing': json['sharing'] == null ? undefined : AssessmentSharingFromJSON(json['sharing']),
@@ -79,7 +80,7 @@ export function AssessmentToJSONTyped(value, ignoreDiscriminator = false) {
79
80
  'ownerLastName': value['ownerLastName'],
80
81
  'sourceType': value['sourceType'],
81
82
  'sourceId': value['sourceId'],
82
- 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
83
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
83
84
  'snapshots': (value['snapshots'].map(SnapshotToJSON)),
84
85
  'permissions': value['permissions'],
85
86
  'sharing': AssessmentSharingToJSON(value['sharing']),
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
14
15
  import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
15
16
  /**
16
17
  * Check if a given object implements the AssessmentSubsetInventory interface.
@@ -43,7 +44,7 @@ export function AssessmentSubsetInventoryFromJSONTyped(json, ignoreDiscriminator
43
44
  'vcenterId': json['vcenterId'],
44
45
  'vmsCount': json['vmsCount'],
45
46
  'inventory': InventoryFromJSON(json['inventory']),
46
- 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
47
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
47
48
  };
48
49
  }
49
50
  export function AssessmentSubsetInventoryToJSON(json) {
@@ -59,6 +60,6 @@ export function AssessmentSubsetInventoryToJSONTyped(value, ignoreDiscriminator
59
60
  'vcenterId': value['vcenterId'],
60
61
  'vmsCount': value['vmsCount'],
61
62
  'inventory': InventoryToJSON(value['inventory']),
62
- 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
63
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
63
64
  };
64
65
  }
@@ -24,9 +24,9 @@ export interface ClusterFeatures {
24
24
  */
25
25
  drsMode?: ClusterFeaturesDrsModeEnum;
26
26
  /**
27
- * Whether Storage DRS is enabled for this cluster
27
+ * Whether vSphere HA (High Availability) is enabled for this cluster - automatically restarts VMs on surviving hosts after a host failure
28
28
  */
29
- storageDrsEnabled?: boolean;
29
+ haEnabled?: boolean;
30
30
  }
31
31
  /**
32
32
  * @export
@@ -18,7 +18,7 @@ export const ClusterFeaturesDrsModeEnum = {
18
18
  FullyAutomated: 'Fully Automated',
19
19
  PartiallyAutomated: 'Partially Automated',
20
20
  Manual: 'Manual',
21
- None: 'None'
21
+ None: 'None',
22
22
  };
23
23
  /**
24
24
  * Check if a given object implements the ClusterFeatures interface.
@@ -36,7 +36,7 @@ export function ClusterFeaturesFromJSONTyped(json, ignoreDiscriminator) {
36
36
  return {
37
37
  'drsEnabled': json['drsEnabled'] == null ? undefined : json['drsEnabled'],
38
38
  'drsMode': json['drsMode'] == null ? undefined : json['drsMode'],
39
- 'storageDrsEnabled': json['storageDrsEnabled'] == null ? undefined : json['storageDrsEnabled'],
39
+ 'haEnabled': json['haEnabled'] == null ? undefined : json['haEnabled'],
40
40
  };
41
41
  }
42
42
  export function ClusterFeaturesToJSON(json) {
@@ -49,6 +49,6 @@ export function ClusterFeaturesToJSONTyped(value, ignoreDiscriminator = false) {
49
49
  return {
50
50
  'drsEnabled': value['drsEnabled'],
51
51
  'drsMode': value['drsMode'],
52
- 'storageDrsEnabled': value['storageDrsEnabled'],
52
+ 'haEnabled': value['haEnabled'],
53
53
  };
54
54
  }
@@ -18,7 +18,7 @@ import { MemoryOverCommitRatioFromJSON, MemoryOverCommitRatioToJSON, } from './M
18
18
  */
19
19
  export const ClusterRequirementsRequestControlPlaneNodeCountEnum = {
20
20
  NUMBER_1: 1,
21
- NUMBER_3: 3
21
+ NUMBER_3: 3,
22
22
  };
23
23
  /**
24
24
  * Check if a given object implements the ClusterRequirementsRequest interface.
@@ -19,7 +19,7 @@ export const ClusterRequirementsStoredInputCpuOverCommitRatioEnum = {
19
19
  _12: '1:2',
20
20
  _14: '1:4',
21
21
  _16: '1:6',
22
- _18: '1:8'
22
+ _18: '1:8',
23
23
  };
24
24
  /**
25
25
  * @export
@@ -27,14 +27,14 @@ export const ClusterRequirementsStoredInputCpuOverCommitRatioEnum = {
27
27
  export const ClusterRequirementsStoredInputMemoryOverCommitRatioEnum = {
28
28
  _11: '1:1',
29
29
  _12: '1:2',
30
- _14: '1:4'
30
+ _14: '1:4',
31
31
  };
32
32
  /**
33
33
  * @export
34
34
  */
35
35
  export const ClusterRequirementsStoredInputControlPlaneNodeCountEnum = {
36
36
  NUMBER_1: 1,
37
- NUMBER_3: 3
37
+ NUMBER_3: 3,
38
38
  };
39
39
  /**
40
40
  * Check if a given object implements the ClusterRequirementsStoredInput interface.
@@ -20,7 +20,7 @@ export const CpuOverCommitRatio = {
20
20
  CpuOneToTwo: '1:2',
21
21
  CpuOneToFour: '1:4',
22
22
  CpuOneToSix: '1:6',
23
- CpuOneToEight: '1:8'
23
+ CpuOneToEight: '1:8',
24
24
  };
25
25
  export function instanceOfCpuOverCommitRatio(value) {
26
26
  for (const key in CpuOverCommitRatio) {
@@ -18,7 +18,7 @@ export const DeployedEnvironmentInputEnvironmentEnum = {
18
18
  OnPremises: 'on_premises',
19
19
  OnCloud: 'on_cloud',
20
20
  ManagedServices: 'managed_services',
21
- NotAssessed: 'not_assessed'
21
+ NotAssessed: 'not_assessed',
22
22
  };
23
23
  /**
24
24
  * Check if a given object implements the DeployedEnvironmentInput interface.
@@ -11,12 +11,13 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
14
15
  /**
15
16
  * @export
16
17
  */
17
18
  export const GroupKindEnum = {
18
19
  Partner: 'partner',
19
- Admin: 'admin'
20
+ Admin: 'admin',
20
21
  };
21
22
  /**
22
23
  * Check if a given object implements the Group interface.
@@ -52,8 +53,8 @@ export function GroupFromJSONTyped(json, ignoreDiscriminator) {
52
53
  'kind': json['kind'],
53
54
  'icon': json['icon'],
54
55
  'company': json['company'],
55
- 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
56
- 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
56
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
57
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : parseDateTime(json['updatedAt'])),
57
58
  };
58
59
  }
59
60
  export function GroupToJSON(json) {
@@ -70,7 +71,7 @@ export function GroupToJSONTyped(value, ignoreDiscriminator = false) {
70
71
  'kind': value['kind'],
71
72
  'icon': value['icon'],
72
73
  'company': value['company'],
73
- 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
74
- 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
74
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
75
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : serializeDateTime(value['updatedAt']),
75
76
  };
76
77
  }
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export const GroupCreateKindEnum = {
18
18
  Partner: 'partner',
19
- Admin: 'admin'
19
+ Admin: 'admin',
20
20
  };
21
21
  /**
22
22
  * Check if a given object implements the GroupCreate interface.
@@ -18,7 +18,7 @@ export const IdentityKindEnum = {
18
18
  Partner: 'partner',
19
19
  Customer: 'customer',
20
20
  Regular: 'regular',
21
- Admin: 'admin'
21
+ Admin: 'admin',
22
22
  };
23
23
  /**
24
24
  * Check if a given object implements the Identity interface.
@@ -11,7 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { mapValues } from '../runtime.js';
14
+ import { mapValues, parseDateTime, serializeDateTime } from '../runtime.js';
15
15
  import { InventoryDataFromJSON, InventoryDataToJSON, } from './InventoryData.js';
16
16
  /**
17
17
  * Check if a given object implements the Inventory interface.
@@ -35,7 +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
+ 'createdAt': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
39
39
  };
40
40
  }
41
41
  export function InventoryToJSON(json) {
@@ -50,6 +50,6 @@ export function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
50
50
  'vcenter_version': value['vcenterVersion'],
51
51
  'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
52
52
  'vcenter': InventoryDataToJSON(value['vcenter']),
53
- 'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
53
+ 'created_at': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
54
54
  };
55
55
  }
@@ -28,7 +28,7 @@ export const JobStatus = {
28
28
  Parsing: 'parsing',
29
29
  Completed: 'completed',
30
30
  Failed: 'failed',
31
- Cancelled: 'cancelled'
31
+ Cancelled: 'cancelled',
32
32
  };
33
33
  export function instanceOfJobStatus(value) {
34
34
  for (const key in JobStatus) {
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
14
15
  /**
15
16
  * Check if a given object implements the Member interface.
16
17
  */
@@ -36,8 +37,8 @@ export function MemberFromJSONTyped(json, ignoreDiscriminator) {
36
37
  'username': json['username'],
37
38
  'email': json['email'],
38
39
  'groupId': json['groupId'],
39
- 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
40
- 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
40
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
41
+ 'updatedAt': json['updatedAt'] == null ? undefined : (parseDateTime(json['updatedAt'])),
41
42
  };
42
43
  }
43
44
  export function MemberToJSON(json) {
@@ -51,7 +52,7 @@ export function MemberToJSONTyped(value, ignoreDiscriminator = false) {
51
52
  'username': value['username'],
52
53
  'email': value['email'],
53
54
  'groupId': value['groupId'],
54
- 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
55
- 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
55
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
56
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : serializeDateTime(value['updatedAt']),
56
57
  };
57
58
  }
@@ -18,7 +18,7 @@
18
18
  export const MemoryOverCommitRatio = {
19
19
  MemoryOneToOne: '1:1',
20
20
  MemoryOneToTwo: '1:2',
21
- MemoryOneToFour: '1:4'
21
+ MemoryOneToFour: '1:4',
22
22
  };
23
23
  export function instanceOfMemoryOverCommitRatio(value) {
24
24
  for (const key in MemoryOverCommitRatio) {
@@ -18,7 +18,7 @@ export const NetworkTypeEnum = {
18
18
  Standard: 'standard',
19
19
  Distributed: 'distributed',
20
20
  Dvswitch: 'dvswitch',
21
- Unsupported: 'unsupported'
21
+ Unsupported: 'unsupported',
22
22
  };
23
23
  /**
24
24
  * Check if a given object implements the Network interface.
@@ -24,7 +24,7 @@ export const NsxInputFeaturesEnum = {
24
24
  Qos: 'qos',
25
25
  NotAssessed: 'not_assessed',
26
26
  NotAvailable: 'not_available',
27
- NotInUse: 'not_in_use'
27
+ NotInUse: 'not_in_use',
28
28
  };
29
29
  /**
30
30
  * Check if a given object implements the NsxInput interface.
@@ -18,7 +18,7 @@ export const OptimizationStatusReasonEnum = {
18
18
  NoUtilizationData: 'no_utilization_data',
19
19
  LowConfidence: 'low_confidence',
20
20
  CalculationError: 'calculation_error',
21
- Success: 'success'
21
+ Success: 'success',
22
22
  };
23
23
  /**
24
24
  * Check if a given object implements the OptimizationStatus interface.
@@ -18,7 +18,7 @@ export const OsInfoSupportTierEnum = {
18
18
  Certified: 'certified',
19
19
  VendorSupported: 'vendor_supported',
20
20
  CommunitySupported: 'community_supported',
21
- SpecialHandling: 'special_handling'
21
+ SpecialHandling: 'special_handling',
22
22
  };
23
23
  /**
24
24
  * Check if a given object implements the OsInfo interface.
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
14
15
  import { PartnerRequestStatusFromJSON, PartnerRequestStatusToJSON, } from './PartnerRequestStatus.js';
15
16
  import { PartnerSummaryFromJSON, PartnerSummaryToJSON, } from './PartnerSummary.js';
16
17
  /**
@@ -57,9 +58,9 @@ export function PartnerRequestFromJSONTyped(json, ignoreDiscriminator) {
57
58
  'email': json['email'],
58
59
  'location': json['location'],
59
60
  'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
60
- 'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (new Date(json['acceptedAt'])),
61
- 'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (new Date(json['terminatedAt'])),
62
- 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
61
+ 'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (parseDateTime(json['acceptedAt'])),
62
+ 'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (parseDateTime(json['terminatedAt'])),
63
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
63
64
  };
64
65
  }
65
66
  export function PartnerRequestToJSON(json) {
@@ -80,8 +81,8 @@ export function PartnerRequestToJSONTyped(value, ignoreDiscriminator = false) {
80
81
  'email': value['email'],
81
82
  'location': value['location'],
82
83
  'reason': value['reason'],
83
- 'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
84
- 'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
85
- 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
84
+ 'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : serializeDateTime(value['acceptedAt']),
85
+ 'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : serializeDateTime(value['terminatedAt']),
86
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
86
87
  };
87
88
  }
@@ -19,7 +19,7 @@ export const PartnerRequestStatus = {
19
19
  Pending: 'pending',
20
20
  Accepted: 'accepted',
21
21
  Rejected: 'rejected',
22
- Cancelled: 'cancelled'
22
+ Cancelled: 'cancelled',
23
23
  };
24
24
  export function instanceOfPartnerRequestStatus(value) {
25
25
  for (const key in PartnerRequestStatus) {
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
14
15
  /**
15
16
  * Check if a given object implements the PresignedUrl interface.
16
17
  */
@@ -28,7 +29,7 @@ export function PresignedUrlFromJSONTyped(json, ignoreDiscriminator) {
28
29
  }
29
30
  return {
30
31
  'url': json['url'],
31
- 'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
32
+ 'expiresAt': json['expires_at'] == null ? undefined : (parseDateTime(json['expires_at'])),
32
33
  };
33
34
  }
34
35
  export function PresignedUrlToJSON(json) {
@@ -40,6 +41,6 @@ export function PresignedUrlToJSONTyped(value, ignoreDiscriminator = false) {
40
41
  }
41
42
  return {
42
43
  'url': value['url'],
43
- 'expires_at': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
44
+ 'expires_at': value['expiresAt'] == null ? value['expiresAt'] : serializeDateTime(value['expiresAt']),
44
45
  };
45
46
  }
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
14
15
  import { AssessmentSubsetInventoryFromJSON, AssessmentSubsetInventoryToJSON, } from './AssessmentSubsetInventory.js';
15
16
  import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
16
17
  /**
@@ -32,7 +33,7 @@ export function SnapshotFromJSONTyped(json, ignoreDiscriminator) {
32
33
  }
33
34
  return {
34
35
  'inventory': InventoryFromJSON(json['inventory']),
35
- 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
36
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
36
37
  'subsetInventories': json['subsetInventories'] === undefined ? undefined : json['subsetInventories'] === null ? null : (json['subsetInventories'].map(AssessmentSubsetInventoryFromJSON)),
37
38
  };
38
39
  }
@@ -45,7 +46,7 @@ export function SnapshotToJSONTyped(value, ignoreDiscriminator = false) {
45
46
  }
46
47
  return {
47
48
  'inventory': InventoryToJSON(value['inventory']),
48
- 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
49
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
49
50
  'subsetInventories': value['subsetInventories'] == null ? undefined : (value['subsetInventories'].map(AssessmentSubsetInventoryToJSON)),
50
51
  };
51
52
  }
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
14
15
  import { SourceInfraFromJSON, SourceInfraToJSON, } from './SourceInfra.js';
15
16
  import { AgentFromJSON, AgentToJSON, } from './Agent.js';
16
17
  import { LabelFromJSON, LabelToJSON, } from './Label.js';
@@ -20,7 +21,7 @@ import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
20
21
  */
21
22
  export const SourceUpdateTypeEnum = {
22
23
  Auto: 'auto',
23
- Manual: 'manual'
24
+ Manual: 'manual',
24
25
  };
25
26
  /**
26
27
  * Check if a given object implements the Source interface.
@@ -49,8 +50,8 @@ export function SourceFromJSONTyped(json, ignoreDiscriminator) {
49
50
  'id': json['id'],
50
51
  'name': json['name'],
51
52
  'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
52
- 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
53
- 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
53
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
54
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : parseDateTime(json['updatedAt'])),
54
55
  'onPremises': json['onPremises'],
55
56
  'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
56
57
  'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
@@ -71,8 +72,8 @@ export function SourceToJSONTyped(value, ignoreDiscriminator = false) {
71
72
  'id': value['id'],
72
73
  'name': value['name'],
73
74
  'inventory': InventoryToJSON(value['inventory']),
74
- 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
75
- 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
75
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
76
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : serializeDateTime(value['updatedAt']),
76
77
  'onPremises': value['onPremises'],
77
78
  'agent': AgentToJSON(value['agent']),
78
79
  'labels': value['labels'] == null ? undefined : (value['labels'].map(LabelToJSON)),
@@ -19,7 +19,7 @@ import { LabelFromJSON, LabelToJSON, } from './Label.js';
19
19
  */
20
20
  export const SourceCreateNetworkConfigTypeEnum = {
21
21
  Dhcp: 'dhcp',
22
- Static: 'static'
22
+ Static: 'static',
23
23
  };
24
24
  /**
25
25
  * Check if a given object implements the SourceCreate interface.
@@ -19,7 +19,7 @@ import { LabelFromJSON, LabelToJSON, } from './Label.js';
19
19
  */
20
20
  export const SourceUpdateNetworkConfigTypeEnum = {
21
21
  Dhcp: 'dhcp',
22
- Static: 'static'
22
+ Static: 'static',
23
23
  };
24
24
  /**
25
25
  * Check if a given object implements the SourceUpdate interface.
@@ -18,7 +18,7 @@ import { MemoryOverCommitRatioFromJSON, MemoryOverCommitRatioToJSON, } from './M
18
18
  */
19
19
  export const StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum = {
20
20
  NUMBER_1: 1,
21
- NUMBER_3: 3
21
+ NUMBER_3: 3,
22
22
  };
23
23
  /**
24
24
  * Check if a given object implements the StandaloneClusterRequirementsRequest interface.
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export const StorageIoConfigurationCongestionThresholdModeEnum = {
18
18
  Automatic: 'automatic',
19
- Manual: 'manual'
19
+ Manual: 'manual',
20
20
  };
21
21
  /**
22
22
  * Check if a given object implements the StorageIoConfiguration interface.