@openshift-migration-advisor/planner-sdk 0.20.3-7b7fa251be69 → 0.21.0-515d930cc594
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/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- 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/Infra.d.ts +4 -0
- package/dist/esm/models/Infra.js +2 -0
- 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/VMs.d.ts +4 -0
- package/dist/esm/models/VMs.js +2 -0
- 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/Infra.d.ts +4 -0
- package/dist/models/Infra.js +2 -0
- 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/VMs.d.ts +4 -0
- package/dist/models/VMs.js +2 -0
- 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/docs/Infra.md +2 -0
- package/docs/VMs.md +2 -0
- 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/Infra.ts +6 -0
- 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/VMs.ts +6 -0
- package/src/models/VMwareSubscriptionInput.ts +1 -1
- package/src/runtime.ts +52 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.26.0-SNAPSHOT
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.21.0-515d930cc594
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -205,8 +205,8 @@ and is automatically generated by the
|
|
|
205
205
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
206
206
|
|
|
207
207
|
- API version: `v1alpha1`
|
|
208
|
-
- Package version: `0.
|
|
209
|
-
- Generator version: `7.
|
|
208
|
+
- Package version: `0.21.0-515d930cc594`
|
|
209
|
+
- Generator version: `7.26.0-SNAPSHOT`
|
|
210
210
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
211
211
|
|
|
212
212
|
The generated npm module supports the following:
|
package/dist/apis/AccountApi.js
CHANGED
package/dist/esm/models/Agent.js
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { parseDateTime, serializeDateTime } from '../runtime.js';
|
|
14
15
|
/**
|
|
15
16
|
* @export
|
|
16
17
|
*/
|
|
@@ -20,7 +21,7 @@ export const AgentStatusEnum = {
|
|
|
20
21
|
Error: 'error',
|
|
21
22
|
GatheringInitialInventory: 'gathering-initial-inventory',
|
|
22
23
|
UpToDate: 'up-to-date',
|
|
23
|
-
SourceGone: 'source-gone'
|
|
24
|
+
SourceGone: 'source-gone',
|
|
24
25
|
};
|
|
25
26
|
/**
|
|
26
27
|
* Check if a given object implements the Agent interface.
|
|
@@ -54,8 +55,8 @@ export function AgentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
55
|
'status': json['status'],
|
|
55
56
|
'statusInfo': json['statusInfo'],
|
|
56
57
|
'credentialUrl': json['credentialUrl'],
|
|
57
|
-
'createdAt': (json['createdAt'] == null ? json['createdAt'] :
|
|
58
|
-
'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] :
|
|
58
|
+
'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
|
|
59
|
+
'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : parseDateTime(json['updatedAt'])),
|
|
59
60
|
'version': json['version'],
|
|
60
61
|
};
|
|
61
62
|
}
|
|
@@ -71,8 +72,8 @@ export function AgentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
72
|
'status': value['status'],
|
|
72
73
|
'statusInfo': value['statusInfo'],
|
|
73
74
|
'credentialUrl': value['credentialUrl'],
|
|
74
|
-
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt']
|
|
75
|
-
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt']
|
|
75
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
|
|
76
|
+
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : serializeDateTime(value['updatedAt']),
|
|
76
77
|
'version': value['version'],
|
|
77
78
|
};
|
|
78
79
|
}
|
|
@@ -29,7 +29,7 @@ export const AriaAutomationInputFeaturesEnum = {
|
|
|
29
29
|
K8sNamespaces: 'k8s_namespaces',
|
|
30
30
|
NotAssessed: 'not_assessed',
|
|
31
31
|
NotAvailable: 'not_available',
|
|
32
|
-
NotInUse: 'not_in_use'
|
|
32
|
+
NotInUse: 'not_in_use',
|
|
33
33
|
};
|
|
34
34
|
/**
|
|
35
35
|
* Check if a given object implements the AriaAutomationInput interface.
|
|
@@ -27,7 +27,7 @@ export const AriaOpsInputFeaturesEnum = {
|
|
|
27
27
|
AnomalyDetection: 'anomaly_detection',
|
|
28
28
|
NotAssessed: 'not_assessed',
|
|
29
29
|
NotAvailable: 'not_available',
|
|
30
|
-
NotInUse: 'not_in_use'
|
|
30
|
+
NotInUse: 'not_in_use',
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* Check if a given object implements the AriaOpsInput interface.
|
|
@@ -19,7 +19,7 @@ export const AriaSecureInputFeaturesEnum = {
|
|
|
19
19
|
ComplianceMonitoring: 'compliance_monitoring',
|
|
20
20
|
NotAssessed: 'not_assessed',
|
|
21
21
|
NotAvailable: 'not_available',
|
|
22
|
-
NotInUse: 'not_in_use'
|
|
22
|
+
NotInUse: 'not_in_use',
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
25
|
* Check if a given object implements the AriaSecureInput interface.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { parseDateTime, serializeDateTime } from '../runtime.js';
|
|
14
15
|
import { SnapshotFromJSON, SnapshotToJSON, } from './Snapshot.js';
|
|
15
16
|
import { AssessmentSharingFromJSON, AssessmentSharingToJSON, } from './AssessmentSharing.js';
|
|
16
17
|
/**
|
|
@@ -19,7 +20,7 @@ import { AssessmentSharingFromJSON, AssessmentSharingToJSON, } from './Assessmen
|
|
|
19
20
|
export const AssessmentSourceTypeEnum = {
|
|
20
21
|
Inventory: 'inventory',
|
|
21
22
|
Rvtools: 'rvtools',
|
|
22
|
-
Source: 'source'
|
|
23
|
+
Source: 'source',
|
|
23
24
|
};
|
|
24
25
|
/**
|
|
25
26
|
* @export
|
|
@@ -27,7 +28,7 @@ export const AssessmentSourceTypeEnum = {
|
|
|
27
28
|
export const AssessmentPermissionsEnum = {
|
|
28
29
|
Read: 'read',
|
|
29
30
|
Share: 'share',
|
|
30
|
-
Delete: 'delete'
|
|
31
|
+
Delete: 'delete',
|
|
31
32
|
};
|
|
32
33
|
/**
|
|
33
34
|
* Check if a given object implements the Assessment interface.
|
|
@@ -59,7 +60,7 @@ export function AssessmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
60
|
'ownerLastName': json['ownerLastName'] == null ? undefined : json['ownerLastName'],
|
|
60
61
|
'sourceType': json['sourceType'],
|
|
61
62
|
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
62
|
-
'createdAt': (json['createdAt'] == null ? json['createdAt'] :
|
|
63
|
+
'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
|
|
63
64
|
'snapshots': (json['snapshots'].map(SnapshotFromJSON)),
|
|
64
65
|
'permissions': json['permissions'] == null ? undefined : json['permissions'],
|
|
65
66
|
'sharing': json['sharing'] == null ? undefined : AssessmentSharingFromJSON(json['sharing']),
|
|
@@ -79,7 +80,7 @@ export function AssessmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
80
|
'ownerLastName': value['ownerLastName'],
|
|
80
81
|
'sourceType': value['sourceType'],
|
|
81
82
|
'sourceId': value['sourceId'],
|
|
82
|
-
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt']
|
|
83
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
|
|
83
84
|
'snapshots': (value['snapshots'].map(SnapshotToJSON)),
|
|
84
85
|
'permissions': value['permissions'],
|
|
85
86
|
'sharing': AssessmentSharingToJSON(value['sharing']),
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { parseDateTime, serializeDateTime } from '../runtime.js';
|
|
14
15
|
import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the AssessmentSubsetInventory interface.
|
|
@@ -43,7 +44,7 @@ export function AssessmentSubsetInventoryFromJSONTyped(json, ignoreDiscriminator
|
|
|
43
44
|
'vcenterId': json['vcenterId'],
|
|
44
45
|
'vmsCount': json['vmsCount'],
|
|
45
46
|
'inventory': InventoryFromJSON(json['inventory']),
|
|
46
|
-
'createdAt': (json['createdAt'] == null ? json['createdAt'] :
|
|
47
|
+
'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
50
|
export function AssessmentSubsetInventoryToJSON(json) {
|
|
@@ -59,6 +60,6 @@ export function AssessmentSubsetInventoryToJSONTyped(value, ignoreDiscriminator
|
|
|
59
60
|
'vcenterId': value['vcenterId'],
|
|
60
61
|
'vmsCount': value['vmsCount'],
|
|
61
62
|
'inventory': InventoryToJSON(value['inventory']),
|
|
62
|
-
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt']
|
|
63
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
|
|
63
64
|
};
|
|
64
65
|
}
|
|
@@ -24,9 +24,9 @@ export interface ClusterFeatures {
|
|
|
24
24
|
*/
|
|
25
25
|
drsMode?: ClusterFeaturesDrsModeEnum;
|
|
26
26
|
/**
|
|
27
|
-
* Whether
|
|
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
|
|
@@ -18,7 +18,7 @@ export const ClusterFeaturesDrsModeEnum = {
|
|
|
18
18
|
FullyAutomated: 'Fully Automated',
|
|
19
19
|
PartiallyAutomated: 'Partially Automated',
|
|
20
20
|
Manual: 'Manual',
|
|
21
|
-
None: 'None'
|
|
21
|
+
None: 'None',
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
24
24
|
* Check if a given object implements the ClusterFeatures interface.
|
|
@@ -36,7 +36,7 @@ export function ClusterFeaturesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
return {
|
|
37
37
|
'drsEnabled': json['drsEnabled'] == null ? undefined : json['drsEnabled'],
|
|
38
38
|
'drsMode': json['drsMode'] == null ? undefined : json['drsMode'],
|
|
39
|
-
'
|
|
39
|
+
'haEnabled': json['haEnabled'] == null ? undefined : json['haEnabled'],
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
export function ClusterFeaturesToJSON(json) {
|
|
@@ -49,6 +49,6 @@ export function ClusterFeaturesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
49
|
return {
|
|
50
50
|
'drsEnabled': value['drsEnabled'],
|
|
51
51
|
'drsMode': value['drsMode'],
|
|
52
|
-
'
|
|
52
|
+
'haEnabled': value['haEnabled'],
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -18,7 +18,7 @@ import { MemoryOverCommitRatioFromJSON, MemoryOverCommitRatioToJSON, } from './M
|
|
|
18
18
|
*/
|
|
19
19
|
export const ClusterRequirementsRequestControlPlaneNodeCountEnum = {
|
|
20
20
|
NUMBER_1: 1,
|
|
21
|
-
NUMBER_3: 3
|
|
21
|
+
NUMBER_3: 3,
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
24
24
|
* Check if a given object implements the ClusterRequirementsRequest interface.
|
|
@@ -19,7 +19,7 @@ export const ClusterRequirementsStoredInputCpuOverCommitRatioEnum = {
|
|
|
19
19
|
_12: '1:2',
|
|
20
20
|
_14: '1:4',
|
|
21
21
|
_16: '1:6',
|
|
22
|
-
_18: '1:8'
|
|
22
|
+
_18: '1:8',
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
25
|
* @export
|
|
@@ -27,14 +27,14 @@ export const ClusterRequirementsStoredInputCpuOverCommitRatioEnum = {
|
|
|
27
27
|
export const ClusterRequirementsStoredInputMemoryOverCommitRatioEnum = {
|
|
28
28
|
_11: '1:1',
|
|
29
29
|
_12: '1:2',
|
|
30
|
-
_14: '1:4'
|
|
30
|
+
_14: '1:4',
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* @export
|
|
34
34
|
*/
|
|
35
35
|
export const ClusterRequirementsStoredInputControlPlaneNodeCountEnum = {
|
|
36
36
|
NUMBER_1: 1,
|
|
37
|
-
NUMBER_3: 3
|
|
37
|
+
NUMBER_3: 3,
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
40
40
|
* Check if a given object implements the ClusterRequirementsStoredInput interface.
|
|
@@ -20,7 +20,7 @@ export const CpuOverCommitRatio = {
|
|
|
20
20
|
CpuOneToTwo: '1:2',
|
|
21
21
|
CpuOneToFour: '1:4',
|
|
22
22
|
CpuOneToSix: '1:6',
|
|
23
|
-
CpuOneToEight: '1:8'
|
|
23
|
+
CpuOneToEight: '1:8',
|
|
24
24
|
};
|
|
25
25
|
export function instanceOfCpuOverCommitRatio(value) {
|
|
26
26
|
for (const key in CpuOverCommitRatio) {
|
|
@@ -18,7 +18,7 @@ export const DeployedEnvironmentInputEnvironmentEnum = {
|
|
|
18
18
|
OnPremises: 'on_premises',
|
|
19
19
|
OnCloud: 'on_cloud',
|
|
20
20
|
ManagedServices: 'managed_services',
|
|
21
|
-
NotAssessed: 'not_assessed'
|
|
21
|
+
NotAssessed: 'not_assessed',
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
24
24
|
* Check if a given object implements the DeployedEnvironmentInput interface.
|
package/dist/esm/models/Group.js
CHANGED
|
@@ -11,12 +11,13 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { parseDateTime, serializeDateTime } from '../runtime.js';
|
|
14
15
|
/**
|
|
15
16
|
* @export
|
|
16
17
|
*/
|
|
17
18
|
export const GroupKindEnum = {
|
|
18
19
|
Partner: 'partner',
|
|
19
|
-
Admin: 'admin'
|
|
20
|
+
Admin: 'admin',
|
|
20
21
|
};
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the Group interface.
|
|
@@ -52,8 +53,8 @@ export function GroupFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
53
|
'kind': json['kind'],
|
|
53
54
|
'icon': json['icon'],
|
|
54
55
|
'company': json['company'],
|
|
55
|
-
'createdAt': (json['createdAt'] == null ? json['createdAt'] :
|
|
56
|
-
'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] :
|
|
56
|
+
'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
|
|
57
|
+
'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : parseDateTime(json['updatedAt'])),
|
|
57
58
|
};
|
|
58
59
|
}
|
|
59
60
|
export function GroupToJSON(json) {
|
|
@@ -70,7 +71,7 @@ export function GroupToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
71
|
'kind': value['kind'],
|
|
71
72
|
'icon': value['icon'],
|
|
72
73
|
'company': value['company'],
|
|
73
|
-
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt']
|
|
74
|
-
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt']
|
|
74
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
|
|
75
|
+
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : serializeDateTime(value['updatedAt']),
|
|
75
76
|
};
|
|
76
77
|
}
|
|
@@ -43,6 +43,10 @@ export interface Infra {
|
|
|
43
43
|
* RAM memory Overcommitment Ratio. Calculated as total Allocated memory / Total memory available
|
|
44
44
|
*/
|
|
45
45
|
memoryOverCommitment?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Average VM density per ESXi host. Calculated as total VMs / totalHosts
|
|
48
|
+
*/
|
|
49
|
+
vmsPerHostAverage?: number;
|
|
46
50
|
/**
|
|
47
51
|
*
|
|
48
52
|
*/
|
package/dist/esm/models/Infra.js
CHANGED
|
@@ -42,6 +42,7 @@ export function InfraFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'clustersPerDatacenter': json['clustersPerDatacenter'] == null ? undefined : json['clustersPerDatacenter'],
|
|
43
43
|
'cpuOverCommitment': json['cpuOverCommitment'] == null ? undefined : json['cpuOverCommitment'],
|
|
44
44
|
'memoryOverCommitment': json['memoryOverCommitment'] == null ? undefined : json['memoryOverCommitment'],
|
|
45
|
+
'vmsPerHostAverage': json['vmsPerHostAverage'] == null ? undefined : json['vmsPerHostAverage'],
|
|
45
46
|
'hosts': json['hosts'] == null ? undefined : (json['hosts'].map(HostFromJSON)),
|
|
46
47
|
'hostsPerCluster': json['hostsPerCluster'] == null ? undefined : json['hostsPerCluster'],
|
|
47
48
|
'vmsPerCluster': json['vmsPerCluster'] == null ? undefined : json['vmsPerCluster'],
|
|
@@ -64,6 +65,7 @@ export function InfraToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
65
|
'clustersPerDatacenter': value['clustersPerDatacenter'],
|
|
65
66
|
'cpuOverCommitment': value['cpuOverCommitment'],
|
|
66
67
|
'memoryOverCommitment': value['memoryOverCommitment'],
|
|
68
|
+
'vmsPerHostAverage': value['vmsPerHostAverage'],
|
|
67
69
|
'hosts': value['hosts'] == null ? undefined : (value['hosts'].map(HostToJSON)),
|
|
68
70
|
'hostsPerCluster': value['hostsPerCluster'],
|
|
69
71
|
'vmsPerCluster': value['vmsPerCluster'],
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import { mapValues } from '../runtime.js';
|
|
14
|
+
import { mapValues, parseDateTime, serializeDateTime } from '../runtime.js';
|
|
15
15
|
import { InventoryDataFromJSON, InventoryDataToJSON, } from './InventoryData.js';
|
|
16
16
|
/**
|
|
17
17
|
* Check if a given object implements the Inventory interface.
|
|
@@ -35,7 +35,7 @@ export function InventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
36
36
|
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
37
37
|
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
38
|
-
'createdAt': json['created_at'] == null ? undefined : (
|
|
38
|
+
'createdAt': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
export function InventoryToJSON(json) {
|
|
@@ -50,6 +50,6 @@ export function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
50
|
'vcenter_version': value['vcenterVersion'],
|
|
51
51
|
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
52
52
|
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
53
|
-
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt']
|
|
53
|
+
'created_at': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
|
|
54
54
|
};
|
|
55
55
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { parseDateTime, serializeDateTime } from '../runtime.js';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the Member interface.
|
|
16
17
|
*/
|
|
@@ -36,8 +37,8 @@ export function MemberFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
'username': json['username'],
|
|
37
38
|
'email': json['email'],
|
|
38
39
|
'groupId': json['groupId'],
|
|
39
|
-
'createdAt': (json['createdAt'] == null ? json['createdAt'] :
|
|
40
|
-
'updatedAt': json['updatedAt'] == null ? undefined : (
|
|
40
|
+
'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
|
|
41
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (parseDateTime(json['updatedAt'])),
|
|
41
42
|
};
|
|
42
43
|
}
|
|
43
44
|
export function MemberToJSON(json) {
|
|
@@ -51,7 +52,7 @@ export function MemberToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
52
|
'username': value['username'],
|
|
52
53
|
'email': value['email'],
|
|
53
54
|
'groupId': value['groupId'],
|
|
54
|
-
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt']
|
|
55
|
-
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt']
|
|
55
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
|
|
56
|
+
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : serializeDateTime(value['updatedAt']),
|
|
56
57
|
};
|
|
57
58
|
}
|
|
@@ -18,7 +18,7 @@ export const OptimizationStatusReasonEnum = {
|
|
|
18
18
|
NoUtilizationData: 'no_utilization_data',
|
|
19
19
|
LowConfidence: 'low_confidence',
|
|
20
20
|
CalculationError: 'calculation_error',
|
|
21
|
-
Success: 'success'
|
|
21
|
+
Success: 'success',
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
24
24
|
* Check if a given object implements the OptimizationStatus interface.
|
|
@@ -18,7 +18,7 @@ export const OsInfoSupportTierEnum = {
|
|
|
18
18
|
Certified: 'certified',
|
|
19
19
|
VendorSupported: 'vendor_supported',
|
|
20
20
|
CommunitySupported: 'community_supported',
|
|
21
|
-
SpecialHandling: 'special_handling'
|
|
21
|
+
SpecialHandling: 'special_handling',
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
24
24
|
* Check if a given object implements the OsInfo interface.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { parseDateTime, serializeDateTime } from '../runtime.js';
|
|
14
15
|
import { PartnerRequestStatusFromJSON, PartnerRequestStatusToJSON, } from './PartnerRequestStatus.js';
|
|
15
16
|
import { PartnerSummaryFromJSON, PartnerSummaryToJSON, } from './PartnerSummary.js';
|
|
16
17
|
/**
|
|
@@ -57,9 +58,9 @@ export function PartnerRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
58
|
'email': json['email'],
|
|
58
59
|
'location': json['location'],
|
|
59
60
|
'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
|
|
60
|
-
'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (
|
|
61
|
-
'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (
|
|
62
|
-
'createdAt': (json['createdAt'] == null ? json['createdAt'] :
|
|
61
|
+
'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (parseDateTime(json['acceptedAt'])),
|
|
62
|
+
'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (parseDateTime(json['terminatedAt'])),
|
|
63
|
+
'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
export function PartnerRequestToJSON(json) {
|
|
@@ -80,8 +81,8 @@ export function PartnerRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
80
81
|
'email': value['email'],
|
|
81
82
|
'location': value['location'],
|
|
82
83
|
'reason': value['reason'],
|
|
83
|
-
'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt']
|
|
84
|
-
'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt']
|
|
85
|
-
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt']
|
|
84
|
+
'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : serializeDateTime(value['acceptedAt']),
|
|
85
|
+
'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : serializeDateTime(value['terminatedAt']),
|
|
86
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
|
|
86
87
|
};
|
|
87
88
|
}
|
|
@@ -19,7 +19,7 @@ export const PartnerRequestStatus = {
|
|
|
19
19
|
Pending: 'pending',
|
|
20
20
|
Accepted: 'accepted',
|
|
21
21
|
Rejected: 'rejected',
|
|
22
|
-
Cancelled: 'cancelled'
|
|
22
|
+
Cancelled: 'cancelled',
|
|
23
23
|
};
|
|
24
24
|
export function instanceOfPartnerRequestStatus(value) {
|
|
25
25
|
for (const key in PartnerRequestStatus) {
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { parseDateTime, serializeDateTime } from '../runtime.js';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the PresignedUrl interface.
|
|
16
17
|
*/
|
|
@@ -28,7 +29,7 @@ export function PresignedUrlFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
29
|
}
|
|
29
30
|
return {
|
|
30
31
|
'url': json['url'],
|
|
31
|
-
'expiresAt': json['expires_at'] == null ? undefined : (
|
|
32
|
+
'expiresAt': json['expires_at'] == null ? undefined : (parseDateTime(json['expires_at'])),
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
35
|
export function PresignedUrlToJSON(json) {
|
|
@@ -40,6 +41,6 @@ export function PresignedUrlToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
40
41
|
}
|
|
41
42
|
return {
|
|
42
43
|
'url': value['url'],
|
|
43
|
-
'expires_at': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt']
|
|
44
|
+
'expires_at': value['expiresAt'] == null ? value['expiresAt'] : serializeDateTime(value['expiresAt']),
|
|
44
45
|
};
|
|
45
46
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { parseDateTime, serializeDateTime } from '../runtime.js';
|
|
14
15
|
import { AssessmentSubsetInventoryFromJSON, AssessmentSubsetInventoryToJSON, } from './AssessmentSubsetInventory.js';
|
|
15
16
|
import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
|
|
16
17
|
/**
|
|
@@ -32,7 +33,7 @@ export function SnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
33
|
}
|
|
33
34
|
return {
|
|
34
35
|
'inventory': InventoryFromJSON(json['inventory']),
|
|
35
|
-
'createdAt': (json['createdAt'] == null ? json['createdAt'] :
|
|
36
|
+
'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
|
|
36
37
|
'subsetInventories': json['subsetInventories'] === undefined ? undefined : json['subsetInventories'] === null ? null : (json['subsetInventories'].map(AssessmentSubsetInventoryFromJSON)),
|
|
37
38
|
};
|
|
38
39
|
}
|
|
@@ -45,7 +46,7 @@ export function SnapshotToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
45
46
|
}
|
|
46
47
|
return {
|
|
47
48
|
'inventory': InventoryToJSON(value['inventory']),
|
|
48
|
-
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt']
|
|
49
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
|
|
49
50
|
'subsetInventories': value['subsetInventories'] == null ? undefined : (value['subsetInventories'].map(AssessmentSubsetInventoryToJSON)),
|
|
50
51
|
};
|
|
51
52
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { parseDateTime, serializeDateTime } from '../runtime.js';
|
|
14
15
|
import { SourceInfraFromJSON, SourceInfraToJSON, } from './SourceInfra.js';
|
|
15
16
|
import { AgentFromJSON, AgentToJSON, } from './Agent.js';
|
|
16
17
|
import { LabelFromJSON, LabelToJSON, } from './Label.js';
|
|
@@ -20,7 +21,7 @@ import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
|
|
|
20
21
|
*/
|
|
21
22
|
export const SourceUpdateTypeEnum = {
|
|
22
23
|
Auto: 'auto',
|
|
23
|
-
Manual: 'manual'
|
|
24
|
+
Manual: 'manual',
|
|
24
25
|
};
|
|
25
26
|
/**
|
|
26
27
|
* Check if a given object implements the Source interface.
|
|
@@ -49,8 +50,8 @@ export function SourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
50
|
'id': json['id'],
|
|
50
51
|
'name': json['name'],
|
|
51
52
|
'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
|
|
52
|
-
'createdAt': (json['createdAt'] == null ? json['createdAt'] :
|
|
53
|
-
'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] :
|
|
53
|
+
'createdAt': (json['createdAt'] == null ? json['createdAt'] : parseDateTime(json['createdAt'])),
|
|
54
|
+
'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : parseDateTime(json['updatedAt'])),
|
|
54
55
|
'onPremises': json['onPremises'],
|
|
55
56
|
'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
|
|
56
57
|
'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
|
|
@@ -71,8 +72,8 @@ export function SourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
72
|
'id': value['id'],
|
|
72
73
|
'name': value['name'],
|
|
73
74
|
'inventory': InventoryToJSON(value['inventory']),
|
|
74
|
-
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt']
|
|
75
|
-
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt']
|
|
75
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : serializeDateTime(value['createdAt']),
|
|
76
|
+
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : serializeDateTime(value['updatedAt']),
|
|
76
77
|
'onPremises': value['onPremises'],
|
|
77
78
|
'agent': AgentToJSON(value['agent']),
|
|
78
79
|
'labels': value['labels'] == null ? undefined : (value['labels'].map(LabelToJSON)),
|