@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.
- package/README.md +2 -2
- package/dist/apis/AccountApi.js +1 -1
- package/dist/esm/apis/AccountApi.js +1 -1
- package/dist/esm/models/ActiveEnvironmentsInput.js +1 -1
- package/dist/esm/models/Agent.js +6 -5
- package/dist/esm/models/AriaAutomationInput.js +1 -1
- package/dist/esm/models/AriaOpsInput.js +1 -1
- package/dist/esm/models/AriaSecureInput.js +1 -1
- package/dist/esm/models/Assessment.js +5 -4
- package/dist/esm/models/AssessmentSubsetInventory.js +3 -2
- package/dist/esm/models/ClusterFeatures.d.ts +2 -2
- package/dist/esm/models/ClusterFeatures.js +3 -3
- package/dist/esm/models/ClusterRequirementsRequest.js +1 -1
- package/dist/esm/models/ClusterRequirementsStoredInput.js +3 -3
- package/dist/esm/models/CpuOverCommitRatio.js +1 -1
- package/dist/esm/models/DeployedEnvironmentInput.js +1 -1
- package/dist/esm/models/Group.js +6 -5
- package/dist/esm/models/GroupCreate.js +1 -1
- package/dist/esm/models/Identity.js +1 -1
- package/dist/esm/models/Inventory.js +3 -3
- package/dist/esm/models/JobStatus.js +1 -1
- package/dist/esm/models/Member.js +5 -4
- package/dist/esm/models/MemoryOverCommitRatio.js +1 -1
- package/dist/esm/models/Network.js +1 -1
- package/dist/esm/models/NsxInput.js +1 -1
- package/dist/esm/models/OptimizationStatus.js +1 -1
- package/dist/esm/models/OsInfo.js +1 -1
- package/dist/esm/models/PartnerRequest.js +7 -6
- package/dist/esm/models/PartnerRequestStatus.js +1 -1
- package/dist/esm/models/PresignedUrl.js +3 -2
- package/dist/esm/models/Snapshot.js +3 -2
- package/dist/esm/models/Source.js +6 -5
- package/dist/esm/models/SourceCreate.js +1 -1
- package/dist/esm/models/SourceUpdate.js +1 -1
- package/dist/esm/models/StandaloneClusterRequirementsRequest.js +1 -1
- package/dist/esm/models/StorageIoConfiguration.js +1 -1
- package/dist/esm/models/VMwareSubscriptionInput.js +1 -1
- package/dist/esm/runtime.d.ts +11 -0
- package/dist/esm/runtime.js +47 -1
- package/dist/models/ActiveEnvironmentsInput.js +1 -1
- package/dist/models/Agent.js +6 -5
- package/dist/models/AriaAutomationInput.js +1 -1
- package/dist/models/AriaOpsInput.js +1 -1
- package/dist/models/AriaSecureInput.js +1 -1
- package/dist/models/Assessment.js +5 -4
- package/dist/models/AssessmentSubsetInventory.js +3 -2
- package/dist/models/ClusterFeatures.d.ts +2 -2
- package/dist/models/ClusterFeatures.js +3 -3
- package/dist/models/ClusterRequirementsRequest.js +1 -1
- package/dist/models/ClusterRequirementsStoredInput.js +3 -3
- package/dist/models/CpuOverCommitRatio.js +1 -1
- package/dist/models/DeployedEnvironmentInput.js +1 -1
- package/dist/models/Group.js +6 -5
- package/dist/models/GroupCreate.js +1 -1
- package/dist/models/Identity.js +1 -1
- package/dist/models/Inventory.js +2 -2
- package/dist/models/JobStatus.js +1 -1
- package/dist/models/Member.js +5 -4
- package/dist/models/MemoryOverCommitRatio.js +1 -1
- package/dist/models/Network.js +1 -1
- package/dist/models/NsxInput.js +1 -1
- package/dist/models/OptimizationStatus.js +1 -1
- package/dist/models/OsInfo.js +1 -1
- package/dist/models/PartnerRequest.js +7 -6
- package/dist/models/PartnerRequestStatus.js +1 -1
- package/dist/models/PresignedUrl.js +3 -2
- package/dist/models/Snapshot.js +3 -2
- package/dist/models/Source.js +6 -5
- package/dist/models/SourceCreate.js +1 -1
- package/dist/models/SourceUpdate.js +1 -1
- package/dist/models/StandaloneClusterRequirementsRequest.js +1 -1
- package/dist/models/StorageIoConfiguration.js +1 -1
- package/dist/models/VMwareSubscriptionInput.js +1 -1
- package/dist/runtime.d.ts +11 -0
- package/dist/runtime.js +51 -1
- package/docs/ClusterFeatures.md +2 -2
- package/package.json +1 -1
- package/src/apis/AccountApi.ts +1 -1
- package/src/models/ActiveEnvironmentsInput.ts +1 -1
- package/src/models/Agent.ts +6 -6
- package/src/models/AriaAutomationInput.ts +1 -1
- package/src/models/AriaOpsInput.ts +1 -1
- package/src/models/AriaSecureInput.ts +1 -1
- package/src/models/Assessment.ts +5 -5
- package/src/models/AssessmentSubsetInventory.ts +3 -3
- package/src/models/ClusterFeatures.ts +5 -5
- package/src/models/ClusterRequirementsRequest.ts +1 -1
- package/src/models/ClusterRequirementsStoredInput.ts +3 -3
- package/src/models/CpuOverCommitRatio.ts +1 -1
- package/src/models/DeployedEnvironmentInput.ts +1 -1
- package/src/models/Group.ts +6 -6
- package/src/models/GroupCreate.ts +1 -1
- package/src/models/Identity.ts +1 -1
- package/src/models/Inventory.ts +3 -3
- package/src/models/JobStatus.ts +1 -1
- package/src/models/Member.ts +5 -5
- package/src/models/MemoryOverCommitRatio.ts +1 -1
- package/src/models/Network.ts +1 -1
- package/src/models/NsxInput.ts +1 -1
- package/src/models/OptimizationStatus.ts +1 -1
- package/src/models/OsInfo.ts +1 -1
- package/src/models/PartnerRequest.ts +7 -7
- package/src/models/PartnerRequestStatus.ts +1 -1
- package/src/models/PresignedUrl.ts +3 -3
- package/src/models/Snapshot.ts +3 -3
- package/src/models/Source.ts +6 -6
- package/src/models/SourceCreate.ts +1 -1
- package/src/models/SourceUpdate.ts +1 -1
- package/src/models/StandaloneClusterRequirementsRequest.ts +1 -1
- package/src/models/StorageIoConfiguration.ts +1 -1
- package/src/models/VMwareSubscriptionInput.ts +1 -1
- package/src/runtime.ts +52 -1
|
@@ -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.
|
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
|
|
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)) {
|
package/docs/ClusterFeatures.md
CHANGED
|
@@ -8,7 +8,7 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`drsEnabled` | boolean
|
|
10
10
|
`drsMode` | string
|
|
11
|
-
`
|
|
11
|
+
`haEnabled` | boolean
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
@@ -19,7 +19,7 @@ import type { ClusterFeatures } from '@openshift-migration-advisor/planner-sdk'
|
|
|
19
19
|
const example = {
|
|
20
20
|
"drsEnabled": null,
|
|
21
21
|
"drsMode": null,
|
|
22
|
-
"
|
|
22
|
+
"haEnabled": null,
|
|
23
23
|
} satisfies ClusterFeatures
|
|
24
24
|
|
|
25
25
|
console.log(example)
|
package/package.json
CHANGED
package/src/apis/AccountApi.ts
CHANGED
|
@@ -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
|
|
package/src/models/Agent.ts
CHANGED
|
@@ -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'] :
|
|
96
|
-
'updatedAt': (json['updatedAt'] == null ? 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']
|
|
117
|
-
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt']
|
|
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
|
|
package/src/models/Assessment.ts
CHANGED
|
@@ -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'] :
|
|
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']
|
|
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'] :
|
|
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']
|
|
104
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -28,9 +28,9 @@ export interface ClusterFeatures {
|
|
|
28
28
|
*/
|
|
29
29
|
drsMode?: ClusterFeaturesDrsModeEnum;
|
|
30
30
|
/**
|
|
31
|
-
* Whether
|
|
31
|
+
* Whether vSphere HA (High Availability) is enabled for this cluster - automatically restarts VMs on surviving hosts after a host failure
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
haEnabled?: boolean;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
|
|
@@ -41,7 +41,7 @@ export const ClusterFeaturesDrsModeEnum = {
|
|
|
41
41
|
FullyAutomated: 'Fully Automated',
|
|
42
42
|
PartiallyAutomated: 'Partially Automated',
|
|
43
43
|
Manual: 'Manual',
|
|
44
|
-
None: 'None'
|
|
44
|
+
None: 'None',
|
|
45
45
|
} as const;
|
|
46
46
|
export type ClusterFeaturesDrsModeEnum = typeof ClusterFeaturesDrsModeEnum[keyof typeof ClusterFeaturesDrsModeEnum];
|
|
47
47
|
|
|
@@ -65,7 +65,7 @@ export function ClusterFeaturesFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
65
65
|
|
|
66
66
|
'drsEnabled': json['drsEnabled'] == null ? undefined : json['drsEnabled'],
|
|
67
67
|
'drsMode': json['drsMode'] == null ? undefined : json['drsMode'],
|
|
68
|
-
'
|
|
68
|
+
'haEnabled': json['haEnabled'] == null ? undefined : json['haEnabled'],
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -82,7 +82,7 @@ export function ClusterFeaturesToJSONTyped(value?: ClusterFeatures | null, ignor
|
|
|
82
82
|
|
|
83
83
|
'drsEnabled': value['drsEnabled'],
|
|
84
84
|
'drsMode': value['drsMode'],
|
|
85
|
-
'
|
|
85
|
+
'haEnabled': value['haEnabled'],
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
|
|
@@ -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
|
|
package/src/models/Group.ts
CHANGED
|
@@ -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'] :
|
|
98
|
-
'updatedAt': (json['updatedAt'] == null ? 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']
|
|
120
|
-
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt']
|
|
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
|
|
package/src/models/Identity.ts
CHANGED
package/src/models/Inventory.ts
CHANGED
|
@@ -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 : (
|
|
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']
|
|
94
|
+
'created_at': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
|
package/src/models/JobStatus.ts
CHANGED
package/src/models/Member.ts
CHANGED
|
@@ -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'] :
|
|
69
|
-
'updatedAt': json['updatedAt'] == null ? undefined : (
|
|
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']
|
|
88
|
-
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt']
|
|
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
|
|
package/src/models/Network.ts
CHANGED
|
@@ -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
|
|
package/src/models/NsxInput.ts
CHANGED
|
@@ -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
|
|
package/src/models/OsInfo.ts
CHANGED
|
@@ -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
|
|