@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
package/dist/esm/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/esm/runtime.js
CHANGED
|
@@ -278,7 +278,7 @@ function querystringSingleKey(key, value, keyPrefix = '') {
|
|
|
278
278
|
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
279
279
|
}
|
|
280
280
|
if (value instanceof Date) {
|
|
281
|
-
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value
|
|
281
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(serializeDateTime(value))}`;
|
|
282
282
|
}
|
|
283
283
|
if (value instanceof Object) {
|
|
284
284
|
return querystring(value, fullKey);
|
|
@@ -289,6 +289,52 @@ export function exists(json, key) {
|
|
|
289
289
|
const value = json[key];
|
|
290
290
|
return value !== null && value !== undefined;
|
|
291
291
|
}
|
|
292
|
+
/**
|
|
293
|
+
* Every generated date call site routes through these.
|
|
294
|
+
*
|
|
295
|
+
* `format: date` is a calendar date, with no time and no offset, so it is converted
|
|
296
|
+
* against the local calendar on both ends: they have to agree or the date shifts by
|
|
297
|
+
* a day. `format: date-time` is an instant and uses UTC.
|
|
298
|
+
*/
|
|
299
|
+
export function serializeDateTime(value) {
|
|
300
|
+
return value.toISOString();
|
|
301
|
+
}
|
|
302
|
+
export function serializeDate(value) {
|
|
303
|
+
if (isNaN(value.getTime())) {
|
|
304
|
+
throw new RangeError('Invalid time value');
|
|
305
|
+
}
|
|
306
|
+
const year = ('000' + value.getFullYear()).slice(-4);
|
|
307
|
+
const month = ('0' + (value.getMonth() + 1)).slice(-2);
|
|
308
|
+
const day = ('0' + value.getDate()).slice(-2);
|
|
309
|
+
return `${year}-${month}-${day}`;
|
|
310
|
+
}
|
|
311
|
+
export function parseDate(value) {
|
|
312
|
+
if (value instanceof Date) {
|
|
313
|
+
return value;
|
|
314
|
+
}
|
|
315
|
+
// `new Date("2026-08-05")` would parse as UTC midnight: a different day west of UTC.
|
|
316
|
+
// Local midnight is the stated day everywhere. setFullYear avoids the 1900 offset the
|
|
317
|
+
// multi-argument constructor applies to years 0-99.
|
|
318
|
+
const fullDate = /^(\d{4})-(\d{2})-(\d{2})$/.exec(String(value));
|
|
319
|
+
if (fullDate) {
|
|
320
|
+
const year = Number(fullDate[1]);
|
|
321
|
+
const month = Number(fullDate[2]) - 1;
|
|
322
|
+
const day = Number(fullDate[3]);
|
|
323
|
+
const date = new Date(0);
|
|
324
|
+
date.setFullYear(year, month, day);
|
|
325
|
+
date.setHours(0, 0, 0, 0);
|
|
326
|
+
// Out-of-range components (or a day the local zone skipped) silently roll over,
|
|
327
|
+
// which would hand back a date the server never sent.
|
|
328
|
+
if (date.getFullYear() !== year || date.getMonth() !== month || date.getDate() !== day) {
|
|
329
|
+
return new Date(NaN);
|
|
330
|
+
}
|
|
331
|
+
return date;
|
|
332
|
+
}
|
|
333
|
+
return new Date(value);
|
|
334
|
+
}
|
|
335
|
+
export function parseDateTime(value) {
|
|
336
|
+
return new Date(value);
|
|
337
|
+
}
|
|
292
338
|
export function mapValues(data, fn) {
|
|
293
339
|
const result = {};
|
|
294
340
|
for (const key of Object.keys(data)) {
|
package/dist/models/Agent.js
CHANGED
|
@@ -19,6 +19,7 @@ exports.AgentFromJSON = AgentFromJSON;
|
|
|
19
19
|
exports.AgentFromJSONTyped = AgentFromJSONTyped;
|
|
20
20
|
exports.AgentToJSON = AgentToJSON;
|
|
21
21
|
exports.AgentToJSONTyped = AgentToJSONTyped;
|
|
22
|
+
const runtime_js_1 = require("../runtime.js");
|
|
22
23
|
/**
|
|
23
24
|
* @export
|
|
24
25
|
*/
|
|
@@ -28,7 +29,7 @@ exports.AgentStatusEnum = {
|
|
|
28
29
|
Error: 'error',
|
|
29
30
|
GatheringInitialInventory: 'gathering-initial-inventory',
|
|
30
31
|
UpToDate: 'up-to-date',
|
|
31
|
-
SourceGone: 'source-gone'
|
|
32
|
+
SourceGone: 'source-gone',
|
|
32
33
|
};
|
|
33
34
|
/**
|
|
34
35
|
* Check if a given object implements the Agent interface.
|
|
@@ -62,8 +63,8 @@ function AgentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
63
|
'status': json['status'],
|
|
63
64
|
'statusInfo': json['statusInfo'],
|
|
64
65
|
'credentialUrl': json['credentialUrl'],
|
|
65
|
-
'createdAt': (json['createdAt'] == null ? json['createdAt'] :
|
|
66
|
-
'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] :
|
|
66
|
+
'createdAt': (json['createdAt'] == null ? json['createdAt'] : (0, runtime_js_1.parseDateTime)(json['createdAt'])),
|
|
67
|
+
'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : (0, runtime_js_1.parseDateTime)(json['updatedAt'])),
|
|
67
68
|
'version': json['version'],
|
|
68
69
|
};
|
|
69
70
|
}
|
|
@@ -79,8 +80,8 @@ function AgentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
80
|
'status': value['status'],
|
|
80
81
|
'statusInfo': value['statusInfo'],
|
|
81
82
|
'credentialUrl': value['credentialUrl'],
|
|
82
|
-
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt']
|
|
83
|
-
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt']
|
|
83
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : (0, runtime_js_1.serializeDateTime)(value['createdAt']),
|
|
84
|
+
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : (0, runtime_js_1.serializeDateTime)(value['updatedAt']),
|
|
84
85
|
'version': value['version'],
|
|
85
86
|
};
|
|
86
87
|
}
|
|
@@ -37,7 +37,7 @@ exports.AriaAutomationInputFeaturesEnum = {
|
|
|
37
37
|
K8sNamespaces: 'k8s_namespaces',
|
|
38
38
|
NotAssessed: 'not_assessed',
|
|
39
39
|
NotAvailable: 'not_available',
|
|
40
|
-
NotInUse: 'not_in_use'
|
|
40
|
+
NotInUse: 'not_in_use',
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
43
|
* Check if a given object implements the AriaAutomationInput interface.
|
|
@@ -35,7 +35,7 @@ exports.AriaOpsInputFeaturesEnum = {
|
|
|
35
35
|
AnomalyDetection: 'anomaly_detection',
|
|
36
36
|
NotAssessed: 'not_assessed',
|
|
37
37
|
NotAvailable: 'not_available',
|
|
38
|
-
NotInUse: 'not_in_use'
|
|
38
|
+
NotInUse: 'not_in_use',
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
41
|
* Check if a given object implements the AriaOpsInput interface.
|
|
@@ -27,7 +27,7 @@ exports.AriaSecureInputFeaturesEnum = {
|
|
|
27
27
|
ComplianceMonitoring: 'compliance_monitoring',
|
|
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 AriaSecureInput interface.
|
|
@@ -19,6 +19,7 @@ exports.AssessmentFromJSON = AssessmentFromJSON;
|
|
|
19
19
|
exports.AssessmentFromJSONTyped = AssessmentFromJSONTyped;
|
|
20
20
|
exports.AssessmentToJSON = AssessmentToJSON;
|
|
21
21
|
exports.AssessmentToJSONTyped = AssessmentToJSONTyped;
|
|
22
|
+
const runtime_js_1 = require("../runtime.js");
|
|
22
23
|
const Snapshot_js_1 = require("./Snapshot.js");
|
|
23
24
|
const AssessmentSharing_js_1 = require("./AssessmentSharing.js");
|
|
24
25
|
/**
|
|
@@ -27,7 +28,7 @@ const AssessmentSharing_js_1 = require("./AssessmentSharing.js");
|
|
|
27
28
|
exports.AssessmentSourceTypeEnum = {
|
|
28
29
|
Inventory: 'inventory',
|
|
29
30
|
Rvtools: 'rvtools',
|
|
30
|
-
Source: 'source'
|
|
31
|
+
Source: 'source',
|
|
31
32
|
};
|
|
32
33
|
/**
|
|
33
34
|
* @export
|
|
@@ -35,7 +36,7 @@ exports.AssessmentSourceTypeEnum = {
|
|
|
35
36
|
exports.AssessmentPermissionsEnum = {
|
|
36
37
|
Read: 'read',
|
|
37
38
|
Share: 'share',
|
|
38
|
-
Delete: 'delete'
|
|
39
|
+
Delete: 'delete',
|
|
39
40
|
};
|
|
40
41
|
/**
|
|
41
42
|
* Check if a given object implements the Assessment interface.
|
|
@@ -67,7 +68,7 @@ function AssessmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
68
|
'ownerLastName': json['ownerLastName'] == null ? undefined : json['ownerLastName'],
|
|
68
69
|
'sourceType': json['sourceType'],
|
|
69
70
|
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
70
|
-
'createdAt': (json['createdAt'] == null ? json['createdAt'] :
|
|
71
|
+
'createdAt': (json['createdAt'] == null ? json['createdAt'] : (0, runtime_js_1.parseDateTime)(json['createdAt'])),
|
|
71
72
|
'snapshots': (json['snapshots'].map(Snapshot_js_1.SnapshotFromJSON)),
|
|
72
73
|
'permissions': json['permissions'] == null ? undefined : json['permissions'],
|
|
73
74
|
'sharing': json['sharing'] == null ? undefined : (0, AssessmentSharing_js_1.AssessmentSharingFromJSON)(json['sharing']),
|
|
@@ -87,7 +88,7 @@ function AssessmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
87
88
|
'ownerLastName': value['ownerLastName'],
|
|
88
89
|
'sourceType': value['sourceType'],
|
|
89
90
|
'sourceId': value['sourceId'],
|
|
90
|
-
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt']
|
|
91
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : (0, runtime_js_1.serializeDateTime)(value['createdAt']),
|
|
91
92
|
'snapshots': (value['snapshots'].map(Snapshot_js_1.SnapshotToJSON)),
|
|
92
93
|
'permissions': value['permissions'],
|
|
93
94
|
'sharing': (0, AssessmentSharing_js_1.AssessmentSharingToJSON)(value['sharing']),
|
|
@@ -18,6 +18,7 @@ exports.AssessmentSubsetInventoryFromJSON = AssessmentSubsetInventoryFromJSON;
|
|
|
18
18
|
exports.AssessmentSubsetInventoryFromJSONTyped = AssessmentSubsetInventoryFromJSONTyped;
|
|
19
19
|
exports.AssessmentSubsetInventoryToJSON = AssessmentSubsetInventoryToJSON;
|
|
20
20
|
exports.AssessmentSubsetInventoryToJSONTyped = AssessmentSubsetInventoryToJSONTyped;
|
|
21
|
+
const runtime_js_1 = require("../runtime.js");
|
|
21
22
|
const Inventory_js_1 = require("./Inventory.js");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the AssessmentSubsetInventory interface.
|
|
@@ -50,7 +51,7 @@ function AssessmentSubsetInventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
51
|
'vcenterId': json['vcenterId'],
|
|
51
52
|
'vmsCount': json['vmsCount'],
|
|
52
53
|
'inventory': (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
|
|
53
|
-
'createdAt': (json['createdAt'] == null ? json['createdAt'] :
|
|
54
|
+
'createdAt': (json['createdAt'] == null ? json['createdAt'] : (0, runtime_js_1.parseDateTime)(json['createdAt'])),
|
|
54
55
|
};
|
|
55
56
|
}
|
|
56
57
|
function AssessmentSubsetInventoryToJSON(json) {
|
|
@@ -66,6 +67,6 @@ function AssessmentSubsetInventoryToJSONTyped(value, ignoreDiscriminator = false
|
|
|
66
67
|
'vcenterId': value['vcenterId'],
|
|
67
68
|
'vmsCount': value['vmsCount'],
|
|
68
69
|
'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
|
|
69
|
-
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt']
|
|
70
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : (0, runtime_js_1.serializeDateTime)(value['createdAt']),
|
|
70
71
|
};
|
|
71
72
|
}
|
|
@@ -24,9 +24,9 @@ export interface ClusterFeatures {
|
|
|
24
24
|
*/
|
|
25
25
|
drsMode?: ClusterFeaturesDrsModeEnum;
|
|
26
26
|
/**
|
|
27
|
-
* Whether
|
|
27
|
+
* Whether vSphere HA (High Availability) is enabled for this cluster - automatically restarts VMs on surviving hosts after a host failure
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
haEnabled?: boolean;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* @export
|
|
@@ -26,7 +26,7 @@ exports.ClusterFeaturesDrsModeEnum = {
|
|
|
26
26
|
FullyAutomated: 'Fully Automated',
|
|
27
27
|
PartiallyAutomated: 'Partially Automated',
|
|
28
28
|
Manual: 'Manual',
|
|
29
|
-
None: 'None'
|
|
29
|
+
None: 'None',
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the ClusterFeatures interface.
|
|
@@ -44,7 +44,7 @@ function ClusterFeaturesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
return {
|
|
45
45
|
'drsEnabled': json['drsEnabled'] == null ? undefined : json['drsEnabled'],
|
|
46
46
|
'drsMode': json['drsMode'] == null ? undefined : json['drsMode'],
|
|
47
|
-
'
|
|
47
|
+
'haEnabled': json['haEnabled'] == null ? undefined : json['haEnabled'],
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
function ClusterFeaturesToJSON(json) {
|
|
@@ -57,6 +57,6 @@ function ClusterFeaturesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
57
57
|
return {
|
|
58
58
|
'drsEnabled': value['drsEnabled'],
|
|
59
59
|
'drsMode': value['drsMode'],
|
|
60
|
-
'
|
|
60
|
+
'haEnabled': value['haEnabled'],
|
|
61
61
|
};
|
|
62
62
|
}
|
|
@@ -26,7 +26,7 @@ const MemoryOverCommitRatio_js_1 = require("./MemoryOverCommitRatio.js");
|
|
|
26
26
|
*/
|
|
27
27
|
exports.ClusterRequirementsRequestControlPlaneNodeCountEnum = {
|
|
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 ClusterRequirementsRequest interface.
|
|
@@ -27,7 +27,7 @@ exports.ClusterRequirementsStoredInputCpuOverCommitRatioEnum = {
|
|
|
27
27
|
_12: '1:2',
|
|
28
28
|
_14: '1:4',
|
|
29
29
|
_16: '1:6',
|
|
30
|
-
_18: '1:8'
|
|
30
|
+
_18: '1:8',
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* @export
|
|
@@ -35,14 +35,14 @@ exports.ClusterRequirementsStoredInputCpuOverCommitRatioEnum = {
|
|
|
35
35
|
exports.ClusterRequirementsStoredInputMemoryOverCommitRatioEnum = {
|
|
36
36
|
_11: '1:1',
|
|
37
37
|
_12: '1:2',
|
|
38
|
-
_14: '1:4'
|
|
38
|
+
_14: '1:4',
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
41
|
* @export
|
|
42
42
|
*/
|
|
43
43
|
exports.ClusterRequirementsStoredInputControlPlaneNodeCountEnum = {
|
|
44
44
|
NUMBER_1: 1,
|
|
45
|
-
NUMBER_3: 3
|
|
45
|
+
NUMBER_3: 3,
|
|
46
46
|
};
|
|
47
47
|
/**
|
|
48
48
|
* Check if a given object implements the ClusterRequirementsStoredInput interface.
|
|
@@ -26,7 +26,7 @@ exports.DeployedEnvironmentInputEnvironmentEnum = {
|
|
|
26
26
|
OnPremises: 'on_premises',
|
|
27
27
|
OnCloud: 'on_cloud',
|
|
28
28
|
ManagedServices: 'managed_services',
|
|
29
|
-
NotAssessed: 'not_assessed'
|
|
29
|
+
NotAssessed: 'not_assessed',
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the DeployedEnvironmentInput interface.
|
package/dist/models/Group.js
CHANGED
|
@@ -19,12 +19,13 @@ exports.GroupFromJSON = GroupFromJSON;
|
|
|
19
19
|
exports.GroupFromJSONTyped = GroupFromJSONTyped;
|
|
20
20
|
exports.GroupToJSON = GroupToJSON;
|
|
21
21
|
exports.GroupToJSONTyped = GroupToJSONTyped;
|
|
22
|
+
const runtime_js_1 = require("../runtime.js");
|
|
22
23
|
/**
|
|
23
24
|
* @export
|
|
24
25
|
*/
|
|
25
26
|
exports.GroupKindEnum = {
|
|
26
27
|
Partner: 'partner',
|
|
27
|
-
Admin: 'admin'
|
|
28
|
+
Admin: 'admin',
|
|
28
29
|
};
|
|
29
30
|
/**
|
|
30
31
|
* Check if a given object implements the Group interface.
|
|
@@ -60,8 +61,8 @@ function GroupFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
61
|
'kind': json['kind'],
|
|
61
62
|
'icon': json['icon'],
|
|
62
63
|
'company': json['company'],
|
|
63
|
-
'createdAt': (json['createdAt'] == null ? json['createdAt'] :
|
|
64
|
-
'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] :
|
|
64
|
+
'createdAt': (json['createdAt'] == null ? json['createdAt'] : (0, runtime_js_1.parseDateTime)(json['createdAt'])),
|
|
65
|
+
'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : (0, runtime_js_1.parseDateTime)(json['updatedAt'])),
|
|
65
66
|
};
|
|
66
67
|
}
|
|
67
68
|
function GroupToJSON(json) {
|
|
@@ -78,7 +79,7 @@ function GroupToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
78
79
|
'kind': value['kind'],
|
|
79
80
|
'icon': value['icon'],
|
|
80
81
|
'company': value['company'],
|
|
81
|
-
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt']
|
|
82
|
-
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt']
|
|
82
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : (0, runtime_js_1.serializeDateTime)(value['createdAt']),
|
|
83
|
+
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : (0, runtime_js_1.serializeDateTime)(value['updatedAt']),
|
|
83
84
|
};
|
|
84
85
|
}
|
package/dist/models/Identity.js
CHANGED
package/dist/models/Inventory.js
CHANGED
|
@@ -42,7 +42,7 @@ function InventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
43
43
|
'clusters': ((0, runtime_js_1.mapValues)(json['clusters'], InventoryData_js_1.InventoryDataFromJSON)),
|
|
44
44
|
'vcenter': json['vcenter'] == null ? undefined : (0, InventoryData_js_1.InventoryDataFromJSON)(json['vcenter']),
|
|
45
|
-
'createdAt': json['created_at'] == null ? undefined : (
|
|
45
|
+
'createdAt': json['created_at'] == null ? undefined : ((0, runtime_js_1.parseDateTime)(json['created_at'])),
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
function InventoryToJSON(json) {
|
|
@@ -57,6 +57,6 @@ function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
57
57
|
'vcenter_version': value['vcenterVersion'],
|
|
58
58
|
'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
|
|
59
59
|
'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
|
|
60
|
-
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt']
|
|
60
|
+
'created_at': value['createdAt'] == null ? value['createdAt'] : (0, runtime_js_1.serializeDateTime)(value['createdAt']),
|
|
61
61
|
};
|
|
62
62
|
}
|
package/dist/models/JobStatus.js
CHANGED
package/dist/models/Member.js
CHANGED
|
@@ -18,6 +18,7 @@ exports.MemberFromJSON = MemberFromJSON;
|
|
|
18
18
|
exports.MemberFromJSONTyped = MemberFromJSONTyped;
|
|
19
19
|
exports.MemberToJSON = MemberToJSON;
|
|
20
20
|
exports.MemberToJSONTyped = MemberToJSONTyped;
|
|
21
|
+
const runtime_js_1 = require("../runtime.js");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the Member interface.
|
|
23
24
|
*/
|
|
@@ -43,8 +44,8 @@ function MemberFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
44
|
'username': json['username'],
|
|
44
45
|
'email': json['email'],
|
|
45
46
|
'groupId': json['groupId'],
|
|
46
|
-
'createdAt': (json['createdAt'] == null ? json['createdAt'] :
|
|
47
|
-
'updatedAt': json['updatedAt'] == null ? undefined : (
|
|
47
|
+
'createdAt': (json['createdAt'] == null ? json['createdAt'] : (0, runtime_js_1.parseDateTime)(json['createdAt'])),
|
|
48
|
+
'updatedAt': json['updatedAt'] == null ? undefined : ((0, runtime_js_1.parseDateTime)(json['updatedAt'])),
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
51
|
function MemberToJSON(json) {
|
|
@@ -58,7 +59,7 @@ function MemberToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
59
|
'username': value['username'],
|
|
59
60
|
'email': value['email'],
|
|
60
61
|
'groupId': value['groupId'],
|
|
61
|
-
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt']
|
|
62
|
-
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt']
|
|
62
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : (0, runtime_js_1.serializeDateTime)(value['createdAt']),
|
|
63
|
+
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : (0, runtime_js_1.serializeDateTime)(value['updatedAt']),
|
|
63
64
|
};
|
|
64
65
|
}
|
|
@@ -26,7 +26,7 @@ exports.MemoryOverCommitRatioToJSONTyped = MemoryOverCommitRatioToJSONTyped;
|
|
|
26
26
|
exports.MemoryOverCommitRatio = {
|
|
27
27
|
MemoryOneToOne: '1:1',
|
|
28
28
|
MemoryOneToTwo: '1:2',
|
|
29
|
-
MemoryOneToFour: '1:4'
|
|
29
|
+
MemoryOneToFour: '1:4',
|
|
30
30
|
};
|
|
31
31
|
function instanceOfMemoryOverCommitRatio(value) {
|
|
32
32
|
for (const key in exports.MemoryOverCommitRatio) {
|
package/dist/models/Network.js
CHANGED
package/dist/models/NsxInput.js
CHANGED
|
@@ -26,7 +26,7 @@ exports.OptimizationStatusReasonEnum = {
|
|
|
26
26
|
NoUtilizationData: 'no_utilization_data',
|
|
27
27
|
LowConfidence: 'low_confidence',
|
|
28
28
|
CalculationError: 'calculation_error',
|
|
29
|
-
Success: 'success'
|
|
29
|
+
Success: 'success',
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the OptimizationStatus interface.
|
package/dist/models/OsInfo.js
CHANGED
|
@@ -26,7 +26,7 @@ exports.OsInfoSupportTierEnum = {
|
|
|
26
26
|
Certified: 'certified',
|
|
27
27
|
VendorSupported: 'vendor_supported',
|
|
28
28
|
CommunitySupported: 'community_supported',
|
|
29
|
-
SpecialHandling: 'special_handling'
|
|
29
|
+
SpecialHandling: 'special_handling',
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the OsInfo interface.
|
|
@@ -18,6 +18,7 @@ exports.PartnerRequestFromJSON = PartnerRequestFromJSON;
|
|
|
18
18
|
exports.PartnerRequestFromJSONTyped = PartnerRequestFromJSONTyped;
|
|
19
19
|
exports.PartnerRequestToJSON = PartnerRequestToJSON;
|
|
20
20
|
exports.PartnerRequestToJSONTyped = PartnerRequestToJSONTyped;
|
|
21
|
+
const runtime_js_1 = require("../runtime.js");
|
|
21
22
|
const PartnerRequestStatus_js_1 = require("./PartnerRequestStatus.js");
|
|
22
23
|
const PartnerSummary_js_1 = require("./PartnerSummary.js");
|
|
23
24
|
/**
|
|
@@ -64,9 +65,9 @@ function PartnerRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
65
|
'email': json['email'],
|
|
65
66
|
'location': json['location'],
|
|
66
67
|
'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
|
|
67
|
-
'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (
|
|
68
|
-
'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (
|
|
69
|
-
'createdAt': (json['createdAt'] == null ? json['createdAt'] :
|
|
68
|
+
'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : ((0, runtime_js_1.parseDateTime)(json['acceptedAt'])),
|
|
69
|
+
'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : ((0, runtime_js_1.parseDateTime)(json['terminatedAt'])),
|
|
70
|
+
'createdAt': (json['createdAt'] == null ? json['createdAt'] : (0, runtime_js_1.parseDateTime)(json['createdAt'])),
|
|
70
71
|
};
|
|
71
72
|
}
|
|
72
73
|
function PartnerRequestToJSON(json) {
|
|
@@ -87,8 +88,8 @@ function PartnerRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
87
88
|
'email': value['email'],
|
|
88
89
|
'location': value['location'],
|
|
89
90
|
'reason': value['reason'],
|
|
90
|
-
'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt']
|
|
91
|
-
'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt']
|
|
92
|
-
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt']
|
|
91
|
+
'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : (0, runtime_js_1.serializeDateTime)(value['acceptedAt']),
|
|
92
|
+
'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : (0, runtime_js_1.serializeDateTime)(value['terminatedAt']),
|
|
93
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : (0, runtime_js_1.serializeDateTime)(value['createdAt']),
|
|
93
94
|
};
|
|
94
95
|
}
|
|
@@ -27,7 +27,7 @@ exports.PartnerRequestStatus = {
|
|
|
27
27
|
Pending: 'pending',
|
|
28
28
|
Accepted: 'accepted',
|
|
29
29
|
Rejected: 'rejected',
|
|
30
|
-
Cancelled: 'cancelled'
|
|
30
|
+
Cancelled: 'cancelled',
|
|
31
31
|
};
|
|
32
32
|
function instanceOfPartnerRequestStatus(value) {
|
|
33
33
|
for (const key in exports.PartnerRequestStatus) {
|
|
@@ -18,6 +18,7 @@ exports.PresignedUrlFromJSON = PresignedUrlFromJSON;
|
|
|
18
18
|
exports.PresignedUrlFromJSONTyped = PresignedUrlFromJSONTyped;
|
|
19
19
|
exports.PresignedUrlToJSON = PresignedUrlToJSON;
|
|
20
20
|
exports.PresignedUrlToJSONTyped = PresignedUrlToJSONTyped;
|
|
21
|
+
const runtime_js_1 = require("../runtime.js");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the PresignedUrl interface.
|
|
23
24
|
*/
|
|
@@ -35,7 +36,7 @@ function PresignedUrlFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
36
|
}
|
|
36
37
|
return {
|
|
37
38
|
'url': json['url'],
|
|
38
|
-
'expiresAt': json['expires_at'] == null ? undefined : (
|
|
39
|
+
'expiresAt': json['expires_at'] == null ? undefined : ((0, runtime_js_1.parseDateTime)(json['expires_at'])),
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
42
|
function PresignedUrlToJSON(json) {
|
|
@@ -47,6 +48,6 @@ function PresignedUrlToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
47
48
|
}
|
|
48
49
|
return {
|
|
49
50
|
'url': value['url'],
|
|
50
|
-
'expires_at': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt']
|
|
51
|
+
'expires_at': value['expiresAt'] == null ? value['expiresAt'] : (0, runtime_js_1.serializeDateTime)(value['expiresAt']),
|
|
51
52
|
};
|
|
52
53
|
}
|
package/dist/models/Snapshot.js
CHANGED
|
@@ -18,6 +18,7 @@ exports.SnapshotFromJSON = SnapshotFromJSON;
|
|
|
18
18
|
exports.SnapshotFromJSONTyped = SnapshotFromJSONTyped;
|
|
19
19
|
exports.SnapshotToJSON = SnapshotToJSON;
|
|
20
20
|
exports.SnapshotToJSONTyped = SnapshotToJSONTyped;
|
|
21
|
+
const runtime_js_1 = require("../runtime.js");
|
|
21
22
|
const AssessmentSubsetInventory_js_1 = require("./AssessmentSubsetInventory.js");
|
|
22
23
|
const Inventory_js_1 = require("./Inventory.js");
|
|
23
24
|
/**
|
|
@@ -39,7 +40,7 @@ function SnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
40
|
}
|
|
40
41
|
return {
|
|
41
42
|
'inventory': (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
|
|
42
|
-
'createdAt': (json['createdAt'] == null ? json['createdAt'] :
|
|
43
|
+
'createdAt': (json['createdAt'] == null ? json['createdAt'] : (0, runtime_js_1.parseDateTime)(json['createdAt'])),
|
|
43
44
|
'subsetInventories': json['subsetInventories'] === undefined ? undefined : json['subsetInventories'] === null ? null : (json['subsetInventories'].map(AssessmentSubsetInventory_js_1.AssessmentSubsetInventoryFromJSON)),
|
|
44
45
|
};
|
|
45
46
|
}
|
|
@@ -52,7 +53,7 @@ function SnapshotToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
53
|
}
|
|
53
54
|
return {
|
|
54
55
|
'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
|
|
55
|
-
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt']
|
|
56
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : (0, runtime_js_1.serializeDateTime)(value['createdAt']),
|
|
56
57
|
'subsetInventories': value['subsetInventories'] == null ? undefined : (value['subsetInventories'].map(AssessmentSubsetInventory_js_1.AssessmentSubsetInventoryToJSON)),
|
|
57
58
|
};
|
|
58
59
|
}
|
package/dist/models/Source.js
CHANGED
|
@@ -19,6 +19,7 @@ exports.SourceFromJSON = SourceFromJSON;
|
|
|
19
19
|
exports.SourceFromJSONTyped = SourceFromJSONTyped;
|
|
20
20
|
exports.SourceToJSON = SourceToJSON;
|
|
21
21
|
exports.SourceToJSONTyped = SourceToJSONTyped;
|
|
22
|
+
const runtime_js_1 = require("../runtime.js");
|
|
22
23
|
const SourceInfra_js_1 = require("./SourceInfra.js");
|
|
23
24
|
const Agent_js_1 = require("./Agent.js");
|
|
24
25
|
const Label_js_1 = require("./Label.js");
|
|
@@ -28,7 +29,7 @@ const Inventory_js_1 = require("./Inventory.js");
|
|
|
28
29
|
*/
|
|
29
30
|
exports.SourceUpdateTypeEnum = {
|
|
30
31
|
Auto: 'auto',
|
|
31
|
-
Manual: 'manual'
|
|
32
|
+
Manual: 'manual',
|
|
32
33
|
};
|
|
33
34
|
/**
|
|
34
35
|
* Check if a given object implements the Source interface.
|
|
@@ -57,8 +58,8 @@ function SourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
58
|
'id': json['id'],
|
|
58
59
|
'name': json['name'],
|
|
59
60
|
'inventory': json['inventory'] == null ? undefined : (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
|
|
60
|
-
'createdAt': (json['createdAt'] == null ? json['createdAt'] :
|
|
61
|
-
'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] :
|
|
61
|
+
'createdAt': (json['createdAt'] == null ? json['createdAt'] : (0, runtime_js_1.parseDateTime)(json['createdAt'])),
|
|
62
|
+
'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : (0, runtime_js_1.parseDateTime)(json['updatedAt'])),
|
|
62
63
|
'onPremises': json['onPremises'],
|
|
63
64
|
'agent': json['agent'] == null ? undefined : (0, Agent_js_1.AgentFromJSON)(json['agent']),
|
|
64
65
|
'labels': json['labels'] == null ? undefined : (json['labels'].map(Label_js_1.LabelFromJSON)),
|
|
@@ -79,8 +80,8 @@ function SourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
80
|
'id': value['id'],
|
|
80
81
|
'name': value['name'],
|
|
81
82
|
'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
|
|
82
|
-
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt']
|
|
83
|
-
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt']
|
|
83
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : (0, runtime_js_1.serializeDateTime)(value['createdAt']),
|
|
84
|
+
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : (0, runtime_js_1.serializeDateTime)(value['updatedAt']),
|
|
84
85
|
'onPremises': value['onPremises'],
|
|
85
86
|
'agent': (0, Agent_js_1.AgentToJSON)(value['agent']),
|
|
86
87
|
'labels': value['labels'] == null ? undefined : (value['labels'].map(Label_js_1.LabelToJSON)),
|