@openshift-migration-advisor/planner-sdk 0.20.3-7b7fa251be69 → 0.21.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.
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 +4 -0
  12. package/dist/esm/models/ClusterFeatures.js +3 -1
  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 +4 -0
  48. package/dist/models/ClusterFeatures.js +3 -1
  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 -0
  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 +7 -1
  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
@@ -27,7 +27,7 @@ const Label_js_1 = require("./Label.js");
27
27
  */
28
28
  exports.SourceUpdateNetworkConfigTypeEnum = {
29
29
  Dhcp: 'dhcp',
30
- Static: 'static'
30
+ Static: 'static',
31
31
  };
32
32
  /**
33
33
  * Check if a given object implements the SourceUpdate interface.
@@ -26,7 +26,7 @@ const MemoryOverCommitRatio_js_1 = require("./MemoryOverCommitRatio.js");
26
26
  */
27
27
  exports.StandaloneClusterRequirementsRequestControlPlaneNodeCountEnum = {
28
28
  NUMBER_1: 1,
29
- NUMBER_3: 3
29
+ NUMBER_3: 3,
30
30
  };
31
31
  /**
32
32
  * Check if a given object implements the StandaloneClusterRequirementsRequest interface.
@@ -24,7 +24,7 @@ exports.StorageIoConfigurationToJSONTyped = StorageIoConfigurationToJSONTyped;
24
24
  */
25
25
  exports.StorageIoConfigurationCongestionThresholdModeEnum = {
26
26
  Automatic: 'automatic',
27
- Manual: 'manual'
27
+ Manual: 'manual',
28
28
  };
29
29
  /**
30
30
  * Check if a given object implements the StorageIoConfiguration interface.
@@ -28,7 +28,7 @@ exports.VMwareSubscriptionInputLevelEnum = {
28
28
  Vvs: 'vvs',
29
29
  Vvep: 'vvep',
30
30
  Vsphere: 'vsphere',
31
- NotAssessed: 'not_assessed'
31
+ NotAssessed: 'not_assessed',
32
32
  };
33
33
  /**
34
34
  * Check if a given object implements the VMwareSubscriptionInput interface.
package/dist/runtime.d.ts CHANGED
@@ -124,6 +124,17 @@ export interface RequestOpts {
124
124
  }
125
125
  export declare function querystring(params: HTTPQuery, prefix?: string): string;
126
126
  export declare function exists(json: any, key: string): boolean;
127
+ /**
128
+ * Every generated date call site routes through these.
129
+ *
130
+ * `format: date` is a calendar date, with no time and no offset, so it is converted
131
+ * against the local calendar on both ends: they have to agree or the date shifts by
132
+ * a day. `format: date-time` is an instant and uses UTC.
133
+ */
134
+ export declare function serializeDateTime(value: Date): string;
135
+ export declare function serializeDate(value: Date): string;
136
+ export declare function parseDate(value: Date | string): Date;
137
+ export declare function parseDateTime(value: any): Date;
127
138
  export declare function mapValues(data: any, fn: (item: any) => any): {
128
139
  [key: string]: any;
129
140
  };
package/dist/runtime.js CHANGED
@@ -25,6 +25,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
26
26
  exports.querystring = querystring;
27
27
  exports.exists = exists;
28
+ exports.serializeDateTime = serializeDateTime;
29
+ exports.serializeDate = serializeDate;
30
+ exports.parseDate = parseDate;
31
+ exports.parseDateTime = parseDateTime;
28
32
  exports.mapValues = mapValues;
29
33
  exports.anyToJSON = anyToJSON;
30
34
  exports.canConsumeForm = canConsumeForm;
@@ -291,7 +295,7 @@ function querystringSingleKey(key, value, keyPrefix = '') {
291
295
  return querystringSingleKey(key, valueAsArray, keyPrefix);
292
296
  }
293
297
  if (value instanceof Date) {
294
- return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
298
+ return `${encodeURIComponent(fullKey)}=${encodeURIComponent(serializeDateTime(value))}`;
295
299
  }
296
300
  if (value instanceof Object) {
297
301
  return querystring(value, fullKey);
@@ -302,6 +306,52 @@ function exists(json, key) {
302
306
  const value = json[key];
303
307
  return value !== null && value !== undefined;
304
308
  }
309
+ /**
310
+ * Every generated date call site routes through these.
311
+ *
312
+ * `format: date` is a calendar date, with no time and no offset, so it is converted
313
+ * against the local calendar on both ends: they have to agree or the date shifts by
314
+ * a day. `format: date-time` is an instant and uses UTC.
315
+ */
316
+ function serializeDateTime(value) {
317
+ return value.toISOString();
318
+ }
319
+ function serializeDate(value) {
320
+ if (isNaN(value.getTime())) {
321
+ throw new RangeError('Invalid time value');
322
+ }
323
+ const year = ('000' + value.getFullYear()).slice(-4);
324
+ const month = ('0' + (value.getMonth() + 1)).slice(-2);
325
+ const day = ('0' + value.getDate()).slice(-2);
326
+ return `${year}-${month}-${day}`;
327
+ }
328
+ function parseDate(value) {
329
+ if (value instanceof Date) {
330
+ return value;
331
+ }
332
+ // `new Date("2026-08-05")` would parse as UTC midnight: a different day west of UTC.
333
+ // Local midnight is the stated day everywhere. setFullYear avoids the 1900 offset the
334
+ // multi-argument constructor applies to years 0-99.
335
+ const fullDate = /^(\d{4})-(\d{2})-(\d{2})$/.exec(String(value));
336
+ if (fullDate) {
337
+ const year = Number(fullDate[1]);
338
+ const month = Number(fullDate[2]) - 1;
339
+ const day = Number(fullDate[3]);
340
+ const date = new Date(0);
341
+ date.setFullYear(year, month, day);
342
+ date.setHours(0, 0, 0, 0);
343
+ // Out-of-range components (or a day the local zone skipped) silently roll over,
344
+ // which would hand back a date the server never sent.
345
+ if (date.getFullYear() !== year || date.getMonth() !== month || date.getDate() !== day) {
346
+ return new Date(NaN);
347
+ }
348
+ return date;
349
+ }
350
+ return new Date(value);
351
+ }
352
+ function parseDateTime(value) {
353
+ return new Date(value);
354
+ }
305
355
  function mapValues(data, fn) {
306
356
  const result = {};
307
357
  for (const key of Object.keys(data)) {
@@ -9,6 +9,7 @@ Name | Type
9
9
  `drsEnabled` | boolean
10
10
  `drsMode` | string
11
11
  `storageDrsEnabled` | boolean
12
+ `haEnabled` | boolean
12
13
 
13
14
  ## Example
14
15
 
@@ -20,6 +21,7 @@ const example = {
20
21
  "drsEnabled": null,
21
22
  "drsMode": null,
22
23
  "storageDrsEnabled": null,
24
+ "haEnabled": null,
23
25
  } satisfies ClusterFeatures
24
26
 
25
27
  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.3-7b7fa251be69",
3
+ "version": "0.21.0",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/planner-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -886,6 +886,6 @@ export class AccountApi extends runtime.BaseAPI implements AccountApiInterface {
886
886
  */
887
887
  export const ListGroupsKindEnum = {
888
888
  Partner: 'partner',
889
- Admin: 'admin'
889
+ Admin: 'admin',
890
890
  } as const;
891
891
  export type ListGroupsKindEnum = typeof ListGroupsKindEnum[keyof typeof ListGroupsKindEnum];
@@ -34,7 +34,7 @@ export const ActiveEnvironmentsInputEnvironmentsEnum = {
34
34
  Qa: 'qa',
35
35
  Dev: 'dev',
36
36
  Other: 'other',
37
- NotAssessed: 'not_assessed'
37
+ NotAssessed: 'not_assessed',
38
38
  } as const;
39
39
  export type ActiveEnvironmentsInputEnvironmentsEnum = typeof ActiveEnvironmentsInputEnvironmentsEnum[keyof typeof ActiveEnvironmentsInputEnvironmentsEnum];
40
40
 
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { mapValues } from '../runtime.js';
15
+ import { mapValues, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -59,7 +59,7 @@ export const AgentStatusEnum = {
59
59
  Error: 'error',
60
60
  GatheringInitialInventory: 'gathering-initial-inventory',
61
61
  UpToDate: 'up-to-date',
62
- SourceGone: 'source-gone'
62
+ SourceGone: 'source-gone',
63
63
  } as const;
64
64
  export type AgentStatusEnum = typeof AgentStatusEnum[keyof typeof AgentStatusEnum];
65
65
 
@@ -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': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
96
- 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
95
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
96
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : parseDateTime(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'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
117
- 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
116
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
117
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : serializeDateTime(value['updatedAt']),
118
118
  'version': value['version'],
119
119
  };
120
120
  }
@@ -44,7 +44,7 @@ export const AriaAutomationInputFeaturesEnum = {
44
44
  K8sNamespaces: 'k8s_namespaces',
45
45
  NotAssessed: 'not_assessed',
46
46
  NotAvailable: 'not_available',
47
- NotInUse: 'not_in_use'
47
+ NotInUse: 'not_in_use',
48
48
  } as const;
49
49
  export type AriaAutomationInputFeaturesEnum = typeof AriaAutomationInputFeaturesEnum[keyof typeof AriaAutomationInputFeaturesEnum];
50
50
 
@@ -42,7 +42,7 @@ export const AriaOpsInputFeaturesEnum = {
42
42
  AnomalyDetection: 'anomaly_detection',
43
43
  NotAssessed: 'not_assessed',
44
44
  NotAvailable: 'not_available',
45
- NotInUse: 'not_in_use'
45
+ NotInUse: 'not_in_use',
46
46
  } as const;
47
47
  export type AriaOpsInputFeaturesEnum = typeof AriaOpsInputFeaturesEnum[keyof typeof AriaOpsInputFeaturesEnum];
48
48
 
@@ -34,7 +34,7 @@ export const AriaSecureInputFeaturesEnum = {
34
34
  ComplianceMonitoring: 'compliance_monitoring',
35
35
  NotAssessed: 'not_assessed',
36
36
  NotAvailable: 'not_available',
37
- NotInUse: 'not_in_use'
37
+ NotInUse: 'not_in_use',
38
38
  } as const;
39
39
  export type AriaSecureInputFeaturesEnum = typeof AriaSecureInputFeaturesEnum[keyof typeof AriaSecureInputFeaturesEnum];
40
40
 
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { mapValues } from '../runtime.js';
15
+ import { mapValues, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
16
16
  import type { Snapshot } from './Snapshot.js';
17
17
  import {
18
18
  SnapshotFromJSON,
@@ -83,7 +83,7 @@ export interface Assessment {
83
83
  export const AssessmentSourceTypeEnum = {
84
84
  Inventory: 'inventory',
85
85
  Rvtools: 'rvtools',
86
- Source: 'source'
86
+ Source: 'source',
87
87
  } as const;
88
88
  export type AssessmentSourceTypeEnum = typeof AssessmentSourceTypeEnum[keyof typeof AssessmentSourceTypeEnum];
89
89
 
@@ -93,7 +93,7 @@ export type AssessmentSourceTypeEnum = typeof AssessmentSourceTypeEnum[keyof typ
93
93
  export const AssessmentPermissionsEnum = {
94
94
  Read: 'read',
95
95
  Share: 'share',
96
- Delete: 'delete'
96
+ Delete: 'delete',
97
97
  } as const;
98
98
  export type AssessmentPermissionsEnum = typeof AssessmentPermissionsEnum[keyof typeof AssessmentPermissionsEnum];
99
99
 
@@ -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': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
129
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(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'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
153
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
154
154
  'snapshots': ((value['snapshots'] as Array<any>).map(SnapshotToJSON)),
155
155
  'permissions': value['permissions'],
156
156
  'sharing': AssessmentSharingToJSON(value['sharing']),
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { mapValues } from '../runtime.js';
15
+ import { mapValues, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
16
16
  import type { Inventory } from './Inventory.js';
17
17
  import {
18
18
  InventoryFromJSON,
@@ -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': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
84
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(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'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
104
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
105
105
  };
106
106
  }
107
107
 
@@ -31,6 +31,10 @@ export interface ClusterFeatures {
31
31
  * Whether Storage DRS is enabled for this cluster
32
32
  */
33
33
  storageDrsEnabled?: boolean;
34
+ /**
35
+ * Whether vSphere HA (High Availability) is enabled for this cluster - automatically restarts VMs on surviving hosts after a host failure
36
+ */
37
+ haEnabled?: boolean;
34
38
  }
35
39
 
36
40
 
@@ -41,7 +45,7 @@ export const ClusterFeaturesDrsModeEnum = {
41
45
  FullyAutomated: 'Fully Automated',
42
46
  PartiallyAutomated: 'Partially Automated',
43
47
  Manual: 'Manual',
44
- None: 'None'
48
+ None: 'None',
45
49
  } as const;
46
50
  export type ClusterFeaturesDrsModeEnum = typeof ClusterFeaturesDrsModeEnum[keyof typeof ClusterFeaturesDrsModeEnum];
47
51
 
@@ -66,6 +70,7 @@ export function ClusterFeaturesFromJSONTyped(json: any, ignoreDiscriminator: boo
66
70
  'drsEnabled': json['drsEnabled'] == null ? undefined : json['drsEnabled'],
67
71
  'drsMode': json['drsMode'] == null ? undefined : json['drsMode'],
68
72
  'storageDrsEnabled': json['storageDrsEnabled'] == null ? undefined : json['storageDrsEnabled'],
73
+ 'haEnabled': json['haEnabled'] == null ? undefined : json['haEnabled'],
69
74
  };
70
75
  }
71
76
 
@@ -83,6 +88,7 @@ export function ClusterFeaturesToJSONTyped(value?: ClusterFeatures | null, ignor
83
88
  'drsEnabled': value['drsEnabled'],
84
89
  'drsMode': value['drsMode'],
85
90
  'storageDrsEnabled': value['storageDrsEnabled'],
91
+ 'haEnabled': value['haEnabled'],
86
92
  };
87
93
  }
88
94
 
@@ -90,7 +90,7 @@ export interface ClusterRequirementsRequest {
90
90
  */
91
91
  export const ClusterRequirementsRequestControlPlaneNodeCountEnum = {
92
92
  NUMBER_1: 1,
93
- NUMBER_3: 3
93
+ NUMBER_3: 3,
94
94
  } as const;
95
95
  export type ClusterRequirementsRequestControlPlaneNodeCountEnum = typeof ClusterRequirementsRequestControlPlaneNodeCountEnum[keyof typeof ClusterRequirementsRequestControlPlaneNodeCountEnum];
96
96
 
@@ -78,7 +78,7 @@ export const ClusterRequirementsStoredInputCpuOverCommitRatioEnum = {
78
78
  _12: '1:2',
79
79
  _14: '1:4',
80
80
  _16: '1:6',
81
- _18: '1:8'
81
+ _18: '1:8',
82
82
  } as const;
83
83
  export type ClusterRequirementsStoredInputCpuOverCommitRatioEnum = typeof ClusterRequirementsStoredInputCpuOverCommitRatioEnum[keyof typeof ClusterRequirementsStoredInputCpuOverCommitRatioEnum];
84
84
 
@@ -88,7 +88,7 @@ export type ClusterRequirementsStoredInputCpuOverCommitRatioEnum = typeof Cluste
88
88
  export const ClusterRequirementsStoredInputMemoryOverCommitRatioEnum = {
89
89
  _11: '1:1',
90
90
  _12: '1:2',
91
- _14: '1:4'
91
+ _14: '1:4',
92
92
  } as const;
93
93
  export type ClusterRequirementsStoredInputMemoryOverCommitRatioEnum = typeof ClusterRequirementsStoredInputMemoryOverCommitRatioEnum[keyof typeof ClusterRequirementsStoredInputMemoryOverCommitRatioEnum];
94
94
 
@@ -97,7 +97,7 @@ export type ClusterRequirementsStoredInputMemoryOverCommitRatioEnum = typeof Clu
97
97
  */
98
98
  export const ClusterRequirementsStoredInputControlPlaneNodeCountEnum = {
99
99
  NUMBER_1: 1,
100
- NUMBER_3: 3
100
+ NUMBER_3: 3,
101
101
  } as const;
102
102
  export type ClusterRequirementsStoredInputControlPlaneNodeCountEnum = typeof ClusterRequirementsStoredInputControlPlaneNodeCountEnum[keyof typeof ClusterRequirementsStoredInputControlPlaneNodeCountEnum];
103
103
 
@@ -22,7 +22,7 @@ export const CpuOverCommitRatio = {
22
22
  CpuOneToTwo: '1:2',
23
23
  CpuOneToFour: '1:4',
24
24
  CpuOneToSix: '1:6',
25
- CpuOneToEight: '1:8'
25
+ CpuOneToEight: '1:8',
26
26
  } as const;
27
27
  export type CpuOverCommitRatio = typeof CpuOverCommitRatio[keyof typeof CpuOverCommitRatio];
28
28
 
@@ -33,7 +33,7 @@ export const DeployedEnvironmentInputEnvironmentEnum = {
33
33
  OnPremises: 'on_premises',
34
34
  OnCloud: 'on_cloud',
35
35
  ManagedServices: 'managed_services',
36
- NotAssessed: 'not_assessed'
36
+ NotAssessed: 'not_assessed',
37
37
  } as const;
38
38
  export type DeployedEnvironmentInputEnvironmentEnum = typeof DeployedEnvironmentInputEnvironmentEnum[keyof typeof DeployedEnvironmentInputEnvironmentEnum];
39
39
 
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { mapValues } from '../runtime.js';
15
+ import { mapValues, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -59,7 +59,7 @@ export interface Group {
59
59
  */
60
60
  export const GroupKindEnum = {
61
61
  Partner: 'partner',
62
- Admin: 'admin'
62
+ Admin: 'admin',
63
63
  } as const;
64
64
  export type GroupKindEnum = typeof GroupKindEnum[keyof typeof GroupKindEnum];
65
65
 
@@ -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': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
98
- 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
97
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
98
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : parseDateTime(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'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
120
- 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
119
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
120
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : serializeDateTime(value['updatedAt']),
121
121
  };
122
122
  }
123
123
 
@@ -47,7 +47,7 @@ export interface GroupCreate {
47
47
  */
48
48
  export const GroupCreateKindEnum = {
49
49
  Partner: 'partner',
50
- Admin: 'admin'
50
+ Admin: 'admin',
51
51
  } as const;
52
52
  export type GroupCreateKindEnum = typeof GroupCreateKindEnum[keyof typeof GroupCreateKindEnum];
53
53
 
@@ -45,7 +45,7 @@ export const IdentityKindEnum = {
45
45
  Partner: 'partner',
46
46
  Customer: 'customer',
47
47
  Regular: 'regular',
48
- Admin: 'admin'
48
+ Admin: 'admin',
49
49
  } as const;
50
50
  export type IdentityKindEnum = typeof IdentityKindEnum[keyof typeof IdentityKindEnum];
51
51
 
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { mapValues } from '../runtime.js';
15
+ import { mapValues, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
16
16
  import type { InventoryData } from './InventoryData.js';
17
17
  import {
18
18
  InventoryDataFromJSON,
@@ -72,7 +72,7 @@ export function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
72
72
  'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
73
73
  'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
74
74
  'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
75
- 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
75
+ 'createdAt': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
76
76
  };
77
77
  }
78
78
 
@@ -91,7 +91,7 @@ export function InventoryToJSONTyped(value?: Inventory | null, ignoreDiscriminat
91
91
  'vcenter_version': value['vcenterVersion'],
92
92
  'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
93
93
  'vcenter': InventoryDataToJSON(value['vcenter']),
94
- 'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
94
+ 'created_at': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
95
95
  };
96
96
  }
97
97
 
@@ -30,7 +30,7 @@ export const JobStatus = {
30
30
  Parsing: 'parsing',
31
31
  Completed: 'completed',
32
32
  Failed: 'failed',
33
- Cancelled: 'cancelled'
33
+ Cancelled: 'cancelled',
34
34
  } as const;
35
35
  export type JobStatus = typeof JobStatus[keyof typeof JobStatus];
36
36
 
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { mapValues } from '../runtime.js';
15
+ import { mapValues, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -65,8 +65,8 @@ 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': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
69
- 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
68
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
69
+ 'updatedAt': json['updatedAt'] == null ? undefined : (parseDateTime(json['updatedAt'])),
70
70
  };
71
71
  }
72
72
 
@@ -84,8 +84,8 @@ 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'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
88
- 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
87
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
88
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : serializeDateTime(value['updatedAt']),
89
89
  };
90
90
  }
91
91
 
@@ -20,7 +20,7 @@
20
20
  export const MemoryOverCommitRatio = {
21
21
  MemoryOneToOne: '1:1',
22
22
  MemoryOneToTwo: '1:2',
23
- MemoryOneToFour: '1:4'
23
+ MemoryOneToFour: '1:4',
24
24
  } as const;
25
25
  export type MemoryOverCommitRatio = typeof MemoryOverCommitRatio[keyof typeof MemoryOverCommitRatio];
26
26
 
@@ -49,7 +49,7 @@ export const NetworkTypeEnum = {
49
49
  Standard: 'standard',
50
50
  Distributed: 'distributed',
51
51
  Dvswitch: 'dvswitch',
52
- Unsupported: 'unsupported'
52
+ Unsupported: 'unsupported',
53
53
  } as const;
54
54
  export type NetworkTypeEnum = typeof NetworkTypeEnum[keyof typeof NetworkTypeEnum];
55
55
 
@@ -39,7 +39,7 @@ export const NsxInputFeaturesEnum = {
39
39
  Qos: 'qos',
40
40
  NotAssessed: 'not_assessed',
41
41
  NotAvailable: 'not_available',
42
- NotInUse: 'not_in_use'
42
+ NotInUse: 'not_in_use',
43
43
  } as const;
44
44
  export type NsxInputFeaturesEnum = typeof NsxInputFeaturesEnum[keyof typeof NsxInputFeaturesEnum];
45
45
 
@@ -37,7 +37,7 @@ export const OptimizationStatusReasonEnum = {
37
37
  NoUtilizationData: 'no_utilization_data',
38
38
  LowConfidence: 'low_confidence',
39
39
  CalculationError: 'calculation_error',
40
- Success: 'success'
40
+ Success: 'success',
41
41
  } as const;
42
42
  export type OptimizationStatusReasonEnum = typeof OptimizationStatusReasonEnum[keyof typeof OptimizationStatusReasonEnum];
43
43
 
@@ -45,7 +45,7 @@ export const OsInfoSupportTierEnum = {
45
45
  Certified: 'certified',
46
46
  VendorSupported: 'vendor_supported',
47
47
  CommunitySupported: 'community_supported',
48
- SpecialHandling: 'special_handling'
48
+ SpecialHandling: 'special_handling',
49
49
  } as const;
50
50
  export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
51
51
 
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { mapValues } from '../runtime.js';
15
+ import { mapValues, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
16
16
  import type { PartnerRequestStatus } from './PartnerRequestStatus.js';
17
17
  import {
18
18
  PartnerRequestStatusFromJSON,
@@ -127,9 +127,9 @@ export function PartnerRequestFromJSONTyped(json: any, ignoreDiscriminator: bool
127
127
  'email': json['email'],
128
128
  'location': json['location'],
129
129
  'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
130
- 'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (new Date(json['acceptedAt'])),
131
- 'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (new Date(json['terminatedAt'])),
132
- 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
130
+ 'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (parseDateTime(json['acceptedAt'])),
131
+ 'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (parseDateTime(json['terminatedAt'])),
132
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
133
133
  };
134
134
  }
135
135
 
@@ -154,9 +154,9 @@ export function PartnerRequestToJSONTyped(value?: PartnerRequest | null, ignoreD
154
154
  'email': value['email'],
155
155
  'location': value['location'],
156
156
  'reason': value['reason'],
157
- 'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
158
- 'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
159
- 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
157
+ 'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : serializeDateTime(value['acceptedAt']),
158
+ 'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : serializeDateTime(value['terminatedAt']),
159
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
160
160
  };
161
161
  }
162
162
 
@@ -21,7 +21,7 @@ export const PartnerRequestStatus = {
21
21
  Pending: 'pending',
22
22
  Accepted: 'accepted',
23
23
  Rejected: 'rejected',
24
- Cancelled: 'cancelled'
24
+ Cancelled: 'cancelled',
25
25
  } as const;
26
26
  export type PartnerRequestStatus = typeof PartnerRequestStatus[keyof typeof PartnerRequestStatus];
27
27