@openshift-migration-advisor/planner-sdk 0.13.2 → 0.13.3-391ade47acd8
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/FILES +2 -0
- package/README.md +3 -2
- package/dist/esm/models/ClusterFeatures.d.ts +54 -0
- package/dist/esm/models/ClusterFeatures.js +54 -0
- package/dist/esm/models/Inventory.d.ts +6 -0
- package/dist/esm/models/Inventory.js +3 -1
- package/dist/esm/models/InventoryData.d.ts +7 -0
- package/dist/esm/models/InventoryData.js +3 -0
- package/dist/esm/models/JobStatus.d.ts +3 -3
- package/dist/esm/models/JobStatus.js +3 -3
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/ClusterFeatures.d.ts +54 -0
- package/dist/models/ClusterFeatures.js +62 -0
- package/dist/models/Inventory.d.ts +6 -0
- package/dist/models/Inventory.js +3 -1
- package/dist/models/InventoryData.d.ts +7 -0
- package/dist/models/InventoryData.js +3 -0
- package/dist/models/JobStatus.d.ts +3 -3
- package/dist/models/JobStatus.js +3 -3
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/AccountApi.md +9 -0
- package/docs/ClusterFeatures.md +38 -0
- package/docs/Inventory.md +2 -0
- package/docs/InventoryData.md +2 -0
- package/docs/JobStatus.md +1 -1
- package/package.json +1 -1
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/Inventory.ts +9 -1
- package/src/models/InventoryData.ts +15 -0
- package/src/models/JobStatus.ts +3 -3
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -10,6 +10,7 @@ docs/AssessmentApi.md
|
|
|
10
10
|
docs/AssessmentForm.md
|
|
11
11
|
docs/AssessmentSharing.md
|
|
12
12
|
docs/AssessmentUpdate.md
|
|
13
|
+
docs/ClusterFeatures.md
|
|
13
14
|
docs/ClusterRequirementsRequest.md
|
|
14
15
|
docs/ClusterRequirementsResponse.md
|
|
15
16
|
docs/ClusterRequirementsStoredInput.md
|
|
@@ -96,6 +97,7 @@ src/models/Assessment.ts
|
|
|
96
97
|
src/models/AssessmentForm.ts
|
|
97
98
|
src/models/AssessmentSharing.ts
|
|
98
99
|
src/models/AssessmentUpdate.ts
|
|
100
|
+
src/models/ClusterFeatures.ts
|
|
99
101
|
src/models/ClusterRequirementsRequest.ts
|
|
100
102
|
src/models/ClusterRequirementsResponse.ts
|
|
101
103
|
src/models/ClusterRequirementsStoredInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.13.
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.13.3-391ade47acd8
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -105,6 +105,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
105
105
|
- [AssessmentForm](docs/AssessmentForm.md)
|
|
106
106
|
- [AssessmentSharing](docs/AssessmentSharing.md)
|
|
107
107
|
- [AssessmentUpdate](docs/AssessmentUpdate.md)
|
|
108
|
+
- [ClusterFeatures](docs/ClusterFeatures.md)
|
|
108
109
|
- [ClusterRequirementsRequest](docs/ClusterRequirementsRequest.md)
|
|
109
110
|
- [ClusterRequirementsResponse](docs/ClusterRequirementsResponse.md)
|
|
110
111
|
- [ClusterRequirementsStoredInput](docs/ClusterRequirementsStoredInput.md)
|
|
@@ -181,7 +182,7 @@ and is automatically generated by the
|
|
|
181
182
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
182
183
|
|
|
183
184
|
- API version: `v1alpha1`
|
|
184
|
-
- Package version: `0.13.
|
|
185
|
+
- Package version: `0.13.3-391ade47acd8`
|
|
185
186
|
- Generator version: `7.23.0-SNAPSHOT`
|
|
186
187
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
187
188
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1alpha1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ClusterFeatures
|
|
16
|
+
*/
|
|
17
|
+
export interface ClusterFeatures {
|
|
18
|
+
/**
|
|
19
|
+
* Whether DRS (Distributed Resource Scheduler) is enabled for this cluster
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof ClusterFeatures
|
|
22
|
+
*/
|
|
23
|
+
drsEnabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* DRS automation mode for the cluster
|
|
26
|
+
* @type {ClusterFeaturesDrsModeEnum}
|
|
27
|
+
* @memberof ClusterFeatures
|
|
28
|
+
*/
|
|
29
|
+
drsMode?: ClusterFeaturesDrsModeEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Whether Storage DRS is enabled for this cluster
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ClusterFeatures
|
|
34
|
+
*/
|
|
35
|
+
storageDrsEnabled?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const ClusterFeaturesDrsModeEnum: {
|
|
41
|
+
readonly FullyAutomated: "Fully Automated";
|
|
42
|
+
readonly PartiallyAutomated: "Partially Automated";
|
|
43
|
+
readonly Manual: "Manual";
|
|
44
|
+
readonly None: "None";
|
|
45
|
+
};
|
|
46
|
+
export type ClusterFeaturesDrsModeEnum = typeof ClusterFeaturesDrsModeEnum[keyof typeof ClusterFeaturesDrsModeEnum];
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the ClusterFeatures interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfClusterFeatures(value: object): value is ClusterFeatures;
|
|
51
|
+
export declare function ClusterFeaturesFromJSON(json: any): ClusterFeatures;
|
|
52
|
+
export declare function ClusterFeaturesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterFeatures;
|
|
53
|
+
export declare function ClusterFeaturesToJSON(json: any): ClusterFeatures;
|
|
54
|
+
export declare function ClusterFeaturesToJSONTyped(value?: ClusterFeatures | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenShift Migration Advisor API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1alpha1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const ClusterFeaturesDrsModeEnum = {
|
|
18
|
+
FullyAutomated: 'Fully Automated',
|
|
19
|
+
PartiallyAutomated: 'Partially Automated',
|
|
20
|
+
Manual: 'Manual',
|
|
21
|
+
None: 'None'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ClusterFeatures interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfClusterFeatures(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function ClusterFeaturesFromJSON(json) {
|
|
30
|
+
return ClusterFeaturesFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function ClusterFeaturesFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'drsEnabled': json['drsEnabled'] == null ? undefined : json['drsEnabled'],
|
|
38
|
+
'drsMode': json['drsMode'] == null ? undefined : json['drsMode'],
|
|
39
|
+
'storageDrsEnabled': json['storageDrsEnabled'] == null ? undefined : json['storageDrsEnabled'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function ClusterFeaturesToJSON(json) {
|
|
43
|
+
return ClusterFeaturesToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function ClusterFeaturesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'drsEnabled': value['drsEnabled'],
|
|
51
|
+
'drsMode': value['drsMode'],
|
|
52
|
+
'storageDrsEnabled': value['storageDrsEnabled'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -22,6 +22,12 @@ export interface Inventory {
|
|
|
22
22
|
* @memberof Inventory
|
|
23
23
|
*/
|
|
24
24
|
vcenterId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Version of the vCenter api. For example "8.0.3.0"
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Inventory
|
|
29
|
+
*/
|
|
30
|
+
vcenterVersion?: string;
|
|
25
31
|
/**
|
|
26
32
|
* Map of cluster names to their inventory data
|
|
27
33
|
* @type {{ [key: string]: InventoryData; }}
|
|
@@ -17,7 +17,7 @@ import { InventoryDataFromJSON, InventoryDataToJSON, } from './InventoryData.js'
|
|
|
17
17
|
* Check if a given object implements the Inventory interface.
|
|
18
18
|
*/
|
|
19
19
|
export function instanceOfInventory(value) {
|
|
20
|
-
if (!('vcenterId' in value) || value['vcenterId'] === undefined)
|
|
20
|
+
if ((!('vcenterId' in value) && !('vcenter_id' in value)) || (value['vcenterId'] === undefined && value['vcenter_id'] === undefined))
|
|
21
21
|
return false;
|
|
22
22
|
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
23
23
|
return false;
|
|
@@ -32,6 +32,7 @@ export function InventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
}
|
|
33
33
|
return {
|
|
34
34
|
'vcenterId': json['vcenter_id'],
|
|
35
|
+
'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
35
36
|
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
36
37
|
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
37
38
|
};
|
|
@@ -45,6 +46,7 @@ export function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
45
46
|
}
|
|
46
47
|
return {
|
|
47
48
|
'vcenter_id': value['vcenterId'],
|
|
49
|
+
'vcenter_version': value['vcenterVersion'],
|
|
48
50
|
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
49
51
|
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
50
52
|
};
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { VCenter } from './VCenter.js';
|
|
13
13
|
import type { Infra } from './Infra.js';
|
|
14
14
|
import type { VMs } from './VMs.js';
|
|
15
|
+
import type { ClusterFeatures } from './ClusterFeatures.js';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
17
18
|
* @export
|
|
@@ -24,6 +25,12 @@ export interface InventoryData {
|
|
|
24
25
|
* @memberof InventoryData
|
|
25
26
|
*/
|
|
26
27
|
vcenter?: VCenter;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {ClusterFeatures}
|
|
31
|
+
* @memberof InventoryData
|
|
32
|
+
*/
|
|
33
|
+
clusterFeatures?: ClusterFeatures;
|
|
27
34
|
/**
|
|
28
35
|
*
|
|
29
36
|
* @type {VMs}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import { VCenterFromJSON, VCenterToJSON, } from './VCenter.js';
|
|
15
15
|
import { InfraFromJSON, InfraToJSON, } from './Infra.js';
|
|
16
16
|
import { VMsFromJSON, VMsToJSON, } from './VMs.js';
|
|
17
|
+
import { ClusterFeaturesFromJSON, ClusterFeaturesToJSON, } from './ClusterFeatures.js';
|
|
17
18
|
/**
|
|
18
19
|
* Check if a given object implements the InventoryData interface.
|
|
19
20
|
*/
|
|
@@ -33,6 +34,7 @@ export function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
34
|
}
|
|
34
35
|
return {
|
|
35
36
|
'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
|
|
37
|
+
'clusterFeatures': json['clusterFeatures'] == null ? undefined : ClusterFeaturesFromJSON(json['clusterFeatures']),
|
|
36
38
|
'vms': VMsFromJSON(json['vms']),
|
|
37
39
|
'infra': InfraFromJSON(json['infra']),
|
|
38
40
|
};
|
|
@@ -46,6 +48,7 @@ export function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
48
|
}
|
|
47
49
|
return {
|
|
48
50
|
'vcenter': VCenterToJSON(value['vcenter']),
|
|
51
|
+
'clusterFeatures': ClusterFeaturesToJSON(value['clusterFeatures']),
|
|
49
52
|
'vms': VMsToJSON(value['vms']),
|
|
50
53
|
'infra': InfraToJSON(value['infra']),
|
|
51
54
|
};
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
/**
|
|
13
13
|
* Job status:
|
|
14
14
|
* * `pending` - Job is queued
|
|
15
|
-
* * `
|
|
16
|
-
* * `
|
|
15
|
+
* * `validating` - Ingesting and validating RVTools file
|
|
16
|
+
* * `parsing` - Building inventory from validated data
|
|
17
17
|
* * `completed` - Assessment created successfully
|
|
18
18
|
* * `failed` - Job failed with error
|
|
19
19
|
* * `cancelled` - Job was cancelled
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
*/
|
|
23
23
|
export declare const JobStatus: {
|
|
24
24
|
readonly Pending: "pending";
|
|
25
|
-
readonly Parsing: "parsing";
|
|
26
25
|
readonly Validating: "validating";
|
|
26
|
+
readonly Parsing: "parsing";
|
|
27
27
|
readonly Completed: "completed";
|
|
28
28
|
readonly Failed: "failed";
|
|
29
29
|
readonly Cancelled: "cancelled";
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
/**
|
|
15
15
|
* Job status:
|
|
16
16
|
* * `pending` - Job is queued
|
|
17
|
-
* * `
|
|
18
|
-
* * `
|
|
17
|
+
* * `validating` - Ingesting and validating RVTools file
|
|
18
|
+
* * `parsing` - Building inventory from validated data
|
|
19
19
|
* * `completed` - Assessment created successfully
|
|
20
20
|
* * `failed` - Job failed with error
|
|
21
21
|
* * `cancelled` - Job was cancelled
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
*/
|
|
25
25
|
export const JobStatus = {
|
|
26
26
|
Pending: 'pending',
|
|
27
|
-
Parsing: 'parsing',
|
|
28
27
|
Validating: 'validating',
|
|
28
|
+
Parsing: 'parsing',
|
|
29
29
|
Completed: 'completed',
|
|
30
30
|
Failed: 'failed',
|
|
31
31
|
Cancelled: 'cancelled'
|
|
@@ -4,6 +4,7 @@ export * from './Assessment.js';
|
|
|
4
4
|
export * from './AssessmentForm.js';
|
|
5
5
|
export * from './AssessmentSharing.js';
|
|
6
6
|
export * from './AssessmentUpdate.js';
|
|
7
|
+
export * from './ClusterFeatures.js';
|
|
7
8
|
export * from './ClusterRequirementsRequest.js';
|
|
8
9
|
export * from './ClusterRequirementsResponse.js';
|
|
9
10
|
export * from './ClusterRequirementsStoredInput.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -6,6 +6,7 @@ export * from './Assessment.js';
|
|
|
6
6
|
export * from './AssessmentForm.js';
|
|
7
7
|
export * from './AssessmentSharing.js';
|
|
8
8
|
export * from './AssessmentUpdate.js';
|
|
9
|
+
export * from './ClusterFeatures.js';
|
|
9
10
|
export * from './ClusterRequirementsRequest.js';
|
|
10
11
|
export * from './ClusterRequirementsResponse.js';
|
|
11
12
|
export * from './ClusterRequirementsStoredInput.js';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1alpha1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ClusterFeatures
|
|
16
|
+
*/
|
|
17
|
+
export interface ClusterFeatures {
|
|
18
|
+
/**
|
|
19
|
+
* Whether DRS (Distributed Resource Scheduler) is enabled for this cluster
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof ClusterFeatures
|
|
22
|
+
*/
|
|
23
|
+
drsEnabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* DRS automation mode for the cluster
|
|
26
|
+
* @type {ClusterFeaturesDrsModeEnum}
|
|
27
|
+
* @memberof ClusterFeatures
|
|
28
|
+
*/
|
|
29
|
+
drsMode?: ClusterFeaturesDrsModeEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Whether Storage DRS is enabled for this cluster
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ClusterFeatures
|
|
34
|
+
*/
|
|
35
|
+
storageDrsEnabled?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const ClusterFeaturesDrsModeEnum: {
|
|
41
|
+
readonly FullyAutomated: "Fully Automated";
|
|
42
|
+
readonly PartiallyAutomated: "Partially Automated";
|
|
43
|
+
readonly Manual: "Manual";
|
|
44
|
+
readonly None: "None";
|
|
45
|
+
};
|
|
46
|
+
export type ClusterFeaturesDrsModeEnum = typeof ClusterFeaturesDrsModeEnum[keyof typeof ClusterFeaturesDrsModeEnum];
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the ClusterFeatures interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfClusterFeatures(value: object): value is ClusterFeatures;
|
|
51
|
+
export declare function ClusterFeaturesFromJSON(json: any): ClusterFeatures;
|
|
52
|
+
export declare function ClusterFeaturesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterFeatures;
|
|
53
|
+
export declare function ClusterFeaturesToJSON(json: any): ClusterFeatures;
|
|
54
|
+
export declare function ClusterFeaturesToJSONTyped(value?: ClusterFeatures | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenShift Migration Advisor API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1alpha1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ClusterFeaturesDrsModeEnum = void 0;
|
|
17
|
+
exports.instanceOfClusterFeatures = instanceOfClusterFeatures;
|
|
18
|
+
exports.ClusterFeaturesFromJSON = ClusterFeaturesFromJSON;
|
|
19
|
+
exports.ClusterFeaturesFromJSONTyped = ClusterFeaturesFromJSONTyped;
|
|
20
|
+
exports.ClusterFeaturesToJSON = ClusterFeaturesToJSON;
|
|
21
|
+
exports.ClusterFeaturesToJSONTyped = ClusterFeaturesToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ClusterFeaturesDrsModeEnum = {
|
|
26
|
+
FullyAutomated: 'Fully Automated',
|
|
27
|
+
PartiallyAutomated: 'Partially Automated',
|
|
28
|
+
Manual: 'Manual',
|
|
29
|
+
None: 'None'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ClusterFeatures interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfClusterFeatures(value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function ClusterFeaturesFromJSON(json) {
|
|
38
|
+
return ClusterFeaturesFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function ClusterFeaturesFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'drsEnabled': json['drsEnabled'] == null ? undefined : json['drsEnabled'],
|
|
46
|
+
'drsMode': json['drsMode'] == null ? undefined : json['drsMode'],
|
|
47
|
+
'storageDrsEnabled': json['storageDrsEnabled'] == null ? undefined : json['storageDrsEnabled'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function ClusterFeaturesToJSON(json) {
|
|
51
|
+
return ClusterFeaturesToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function ClusterFeaturesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'drsEnabled': value['drsEnabled'],
|
|
59
|
+
'drsMode': value['drsMode'],
|
|
60
|
+
'storageDrsEnabled': value['storageDrsEnabled'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -22,6 +22,12 @@ export interface Inventory {
|
|
|
22
22
|
* @memberof Inventory
|
|
23
23
|
*/
|
|
24
24
|
vcenterId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Version of the vCenter api. For example "8.0.3.0"
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Inventory
|
|
29
|
+
*/
|
|
30
|
+
vcenterVersion?: string;
|
|
25
31
|
/**
|
|
26
32
|
* Map of cluster names to their inventory data
|
|
27
33
|
* @type {{ [key: string]: InventoryData; }}
|
package/dist/models/Inventory.js
CHANGED
|
@@ -24,7 +24,7 @@ const InventoryData_js_1 = require("./InventoryData.js");
|
|
|
24
24
|
* Check if a given object implements the Inventory interface.
|
|
25
25
|
*/
|
|
26
26
|
function instanceOfInventory(value) {
|
|
27
|
-
if (!('vcenterId' in value) || value['vcenterId'] === undefined)
|
|
27
|
+
if ((!('vcenterId' in value) && !('vcenter_id' in value)) || (value['vcenterId'] === undefined && value['vcenter_id'] === undefined))
|
|
28
28
|
return false;
|
|
29
29
|
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
30
30
|
return false;
|
|
@@ -39,6 +39,7 @@ function InventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
41
|
'vcenterId': json['vcenter_id'],
|
|
42
|
+
'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
42
43
|
'clusters': ((0, runtime_js_1.mapValues)(json['clusters'], InventoryData_js_1.InventoryDataFromJSON)),
|
|
43
44
|
'vcenter': json['vcenter'] == null ? undefined : (0, InventoryData_js_1.InventoryDataFromJSON)(json['vcenter']),
|
|
44
45
|
};
|
|
@@ -52,6 +53,7 @@ function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
53
|
}
|
|
53
54
|
return {
|
|
54
55
|
'vcenter_id': value['vcenterId'],
|
|
56
|
+
'vcenter_version': value['vcenterVersion'],
|
|
55
57
|
'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
|
|
56
58
|
'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
|
|
57
59
|
};
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { VCenter } from './VCenter.js';
|
|
13
13
|
import type { Infra } from './Infra.js';
|
|
14
14
|
import type { VMs } from './VMs.js';
|
|
15
|
+
import type { ClusterFeatures } from './ClusterFeatures.js';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
17
18
|
* @export
|
|
@@ -24,6 +25,12 @@ export interface InventoryData {
|
|
|
24
25
|
* @memberof InventoryData
|
|
25
26
|
*/
|
|
26
27
|
vcenter?: VCenter;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {ClusterFeatures}
|
|
31
|
+
* @memberof InventoryData
|
|
32
|
+
*/
|
|
33
|
+
clusterFeatures?: ClusterFeatures;
|
|
27
34
|
/**
|
|
28
35
|
*
|
|
29
36
|
* @type {VMs}
|
|
@@ -21,6 +21,7 @@ exports.InventoryDataToJSONTyped = InventoryDataToJSONTyped;
|
|
|
21
21
|
const VCenter_js_1 = require("./VCenter.js");
|
|
22
22
|
const Infra_js_1 = require("./Infra.js");
|
|
23
23
|
const VMs_js_1 = require("./VMs.js");
|
|
24
|
+
const ClusterFeatures_js_1 = require("./ClusterFeatures.js");
|
|
24
25
|
/**
|
|
25
26
|
* Check if a given object implements the InventoryData interface.
|
|
26
27
|
*/
|
|
@@ -40,6 +41,7 @@ function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
41
|
}
|
|
41
42
|
return {
|
|
42
43
|
'vcenter': json['vcenter'] == null ? undefined : (0, VCenter_js_1.VCenterFromJSON)(json['vcenter']),
|
|
44
|
+
'clusterFeatures': json['clusterFeatures'] == null ? undefined : (0, ClusterFeatures_js_1.ClusterFeaturesFromJSON)(json['clusterFeatures']),
|
|
43
45
|
'vms': (0, VMs_js_1.VMsFromJSON)(json['vms']),
|
|
44
46
|
'infra': (0, Infra_js_1.InfraFromJSON)(json['infra']),
|
|
45
47
|
};
|
|
@@ -53,6 +55,7 @@ function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
53
55
|
}
|
|
54
56
|
return {
|
|
55
57
|
'vcenter': (0, VCenter_js_1.VCenterToJSON)(value['vcenter']),
|
|
58
|
+
'clusterFeatures': (0, ClusterFeatures_js_1.ClusterFeaturesToJSON)(value['clusterFeatures']),
|
|
56
59
|
'vms': (0, VMs_js_1.VMsToJSON)(value['vms']),
|
|
57
60
|
'infra': (0, Infra_js_1.InfraToJSON)(value['infra']),
|
|
58
61
|
};
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
/**
|
|
13
13
|
* Job status:
|
|
14
14
|
* * `pending` - Job is queued
|
|
15
|
-
* * `
|
|
16
|
-
* * `
|
|
15
|
+
* * `validating` - Ingesting and validating RVTools file
|
|
16
|
+
* * `parsing` - Building inventory from validated data
|
|
17
17
|
* * `completed` - Assessment created successfully
|
|
18
18
|
* * `failed` - Job failed with error
|
|
19
19
|
* * `cancelled` - Job was cancelled
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
*/
|
|
23
23
|
export declare const JobStatus: {
|
|
24
24
|
readonly Pending: "pending";
|
|
25
|
-
readonly Parsing: "parsing";
|
|
26
25
|
readonly Validating: "validating";
|
|
26
|
+
readonly Parsing: "parsing";
|
|
27
27
|
readonly Completed: "completed";
|
|
28
28
|
readonly Failed: "failed";
|
|
29
29
|
readonly Cancelled: "cancelled";
|
package/dist/models/JobStatus.js
CHANGED
|
@@ -22,8 +22,8 @@ exports.JobStatusToJSONTyped = JobStatusToJSONTyped;
|
|
|
22
22
|
/**
|
|
23
23
|
* Job status:
|
|
24
24
|
* * `pending` - Job is queued
|
|
25
|
-
* * `
|
|
26
|
-
* * `
|
|
25
|
+
* * `validating` - Ingesting and validating RVTools file
|
|
26
|
+
* * `parsing` - Building inventory from validated data
|
|
27
27
|
* * `completed` - Assessment created successfully
|
|
28
28
|
* * `failed` - Job failed with error
|
|
29
29
|
* * `cancelled` - Job was cancelled
|
|
@@ -32,8 +32,8 @@ exports.JobStatusToJSONTyped = JobStatusToJSONTyped;
|
|
|
32
32
|
*/
|
|
33
33
|
exports.JobStatus = {
|
|
34
34
|
Pending: 'pending',
|
|
35
|
-
Parsing: 'parsing',
|
|
36
35
|
Validating: 'validating',
|
|
36
|
+
Parsing: 'parsing',
|
|
37
37
|
Completed: 'completed',
|
|
38
38
|
Failed: 'failed',
|
|
39
39
|
Cancelled: 'cancelled'
|
package/dist/models/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './Assessment.js';
|
|
|
4
4
|
export * from './AssessmentForm.js';
|
|
5
5
|
export * from './AssessmentSharing.js';
|
|
6
6
|
export * from './AssessmentUpdate.js';
|
|
7
|
+
export * from './ClusterFeatures.js';
|
|
7
8
|
export * from './ClusterRequirementsRequest.js';
|
|
8
9
|
export * from './ClusterRequirementsResponse.js';
|
|
9
10
|
export * from './ClusterRequirementsStoredInput.js';
|
package/dist/models/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./Assessment.js"), exports);
|
|
|
22
22
|
__exportStar(require("./AssessmentForm.js"), exports);
|
|
23
23
|
__exportStar(require("./AssessmentSharing.js"), exports);
|
|
24
24
|
__exportStar(require("./AssessmentUpdate.js"), exports);
|
|
25
|
+
__exportStar(require("./ClusterFeatures.js"), exports);
|
|
25
26
|
__exportStar(require("./ClusterRequirementsRequest.js"), exports);
|
|
26
27
|
__exportStar(require("./ClusterRequirementsResponse.js"), exports);
|
|
27
28
|
__exportStar(require("./ClusterRequirementsStoredInput.js"), exports);
|
package/docs/AccountApi.md
CHANGED
|
@@ -82,6 +82,7 @@ No authorization required
|
|
|
82
82
|
| **201** | Created | - |
|
|
83
83
|
| **400** | Bad Request | - |
|
|
84
84
|
| **401** | Unauthorized | - |
|
|
85
|
+
| **403** | Forbidden | - |
|
|
85
86
|
| **500** | Internal error | - |
|
|
86
87
|
|
|
87
88
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -155,6 +156,7 @@ No authorization required
|
|
|
155
156
|
| **201** | Created | - |
|
|
156
157
|
| **400** | Bad Request | - |
|
|
157
158
|
| **401** | Unauthorized | - |
|
|
159
|
+
| **403** | Forbidden | - |
|
|
158
160
|
| **404** | Not Found | - |
|
|
159
161
|
| **409** | Conflict | - |
|
|
160
162
|
| **500** | Internal error | - |
|
|
@@ -226,6 +228,7 @@ No authorization required
|
|
|
226
228
|
|-------------|-------------|------------------|
|
|
227
229
|
| **200** | OK | - |
|
|
228
230
|
| **401** | Unauthorized | - |
|
|
231
|
+
| **403** | Forbidden | - |
|
|
229
232
|
| **404** | Not Found | - |
|
|
230
233
|
| **500** | Internal error | - |
|
|
231
234
|
|
|
@@ -296,6 +299,7 @@ No authorization required
|
|
|
296
299
|
|-------------|-------------|------------------|
|
|
297
300
|
| **200** | OK | - |
|
|
298
301
|
| **401** | Unauthorized | - |
|
|
302
|
+
| **403** | Forbidden | - |
|
|
299
303
|
| **404** | Not Found | - |
|
|
300
304
|
| **500** | Internal error | - |
|
|
301
305
|
|
|
@@ -427,6 +431,7 @@ No authorization required
|
|
|
427
431
|
|-------------|-------------|------------------|
|
|
428
432
|
| **200** | OK | - |
|
|
429
433
|
| **401** | Unauthorized | - |
|
|
434
|
+
| **403** | Forbidden | - |
|
|
430
435
|
| **404** | Not Found | - |
|
|
431
436
|
| **500** | Internal error | - |
|
|
432
437
|
|
|
@@ -503,6 +508,7 @@ No authorization required
|
|
|
503
508
|
|-------------|-------------|------------------|
|
|
504
509
|
| **200** | OK | - |
|
|
505
510
|
| **401** | Unauthorized | - |
|
|
511
|
+
| **403** | Forbidden | - |
|
|
506
512
|
| **500** | Internal error | - |
|
|
507
513
|
|
|
508
514
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -575,6 +581,7 @@ No authorization required
|
|
|
575
581
|
|-------------|-------------|------------------|
|
|
576
582
|
| **200** | OK | - |
|
|
577
583
|
| **401** | Unauthorized | - |
|
|
584
|
+
| **403** | Forbidden | - |
|
|
578
585
|
| **400** | Bad Request | - |
|
|
579
586
|
| **404** | Not Found | - |
|
|
580
587
|
| **500** | Internal error | - |
|
|
@@ -650,6 +657,7 @@ No authorization required
|
|
|
650
657
|
| **200** | OK | - |
|
|
651
658
|
| **400** | Bad Request | - |
|
|
652
659
|
| **401** | Unauthorized | - |
|
|
660
|
+
| **403** | Forbidden | - |
|
|
653
661
|
| **404** | Not Found | - |
|
|
654
662
|
| **500** | Internal error | - |
|
|
655
663
|
|
|
@@ -727,6 +735,7 @@ No authorization required
|
|
|
727
735
|
| **200** | OK | - |
|
|
728
736
|
| **400** | Bad Request | - |
|
|
729
737
|
| **401** | Unauthorized | - |
|
|
738
|
+
| **403** | Forbidden | - |
|
|
730
739
|
| **404** | Not Found | - |
|
|
731
740
|
| **500** | Internal error | - |
|
|
732
741
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# ClusterFeatures
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`drsEnabled` | boolean
|
|
10
|
+
`drsMode` | string
|
|
11
|
+
`storageDrsEnabled` | boolean
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { ClusterFeatures } from '@openshift-migration-advisor/planner-sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"drsEnabled": null,
|
|
21
|
+
"drsMode": null,
|
|
22
|
+
"storageDrsEnabled": null,
|
|
23
|
+
} satisfies ClusterFeatures
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as ClusterFeatures
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
package/docs/Inventory.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`vcenterId` | string
|
|
10
|
+
`vcenterVersion` | string
|
|
10
11
|
`clusters` | [{ [key: string]: InventoryData; }](InventoryData.md)
|
|
11
12
|
`vcenter` | [InventoryData](InventoryData.md)
|
|
12
13
|
|
|
@@ -18,6 +19,7 @@ import type { Inventory } from '@openshift-migration-advisor/planner-sdk'
|
|
|
18
19
|
// TODO: Update the object below with actual values
|
|
19
20
|
const example = {
|
|
20
21
|
"vcenterId": null,
|
|
22
|
+
"vcenterVersion": null,
|
|
21
23
|
"clusters": null,
|
|
22
24
|
"vcenter": null,
|
|
23
25
|
} satisfies Inventory
|
package/docs/InventoryData.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`vcenter` | [VCenter](VCenter.md)
|
|
10
|
+
`clusterFeatures` | [ClusterFeatures](ClusterFeatures.md)
|
|
10
11
|
`vms` | [VMs](VMs.md)
|
|
11
12
|
`infra` | [Infra](Infra.md)
|
|
12
13
|
|
|
@@ -18,6 +19,7 @@ import type { InventoryData } from '@openshift-migration-advisor/planner-sdk'
|
|
|
18
19
|
// TODO: Update the object below with actual values
|
|
19
20
|
const example = {
|
|
20
21
|
"vcenter": null,
|
|
22
|
+
"clusterFeatures": null,
|
|
21
23
|
"vms": null,
|
|
22
24
|
"infra": null,
|
|
23
25
|
} satisfies InventoryData
|
package/docs/JobStatus.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
# JobStatus
|
|
3
3
|
|
|
4
|
-
Job status: * `pending` - Job is queued * `
|
|
4
|
+
Job status: * `pending` - Job is queued * `validating` - Ingesting and validating RVTools file * `parsing` - Building inventory from validated data * `completed` - Assessment created successfully * `failed` - Job failed with error * `cancelled` - Job was cancelled
|
|
5
5
|
|
|
6
6
|
## Properties
|
|
7
7
|
|
package/package.json
CHANGED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenShift Migration Advisor API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1alpha1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ClusterFeatures
|
|
20
|
+
*/
|
|
21
|
+
export interface ClusterFeatures {
|
|
22
|
+
/**
|
|
23
|
+
* Whether DRS (Distributed Resource Scheduler) is enabled for this cluster
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof ClusterFeatures
|
|
26
|
+
*/
|
|
27
|
+
drsEnabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* DRS automation mode for the cluster
|
|
30
|
+
* @type {ClusterFeaturesDrsModeEnum}
|
|
31
|
+
* @memberof ClusterFeatures
|
|
32
|
+
*/
|
|
33
|
+
drsMode?: ClusterFeaturesDrsModeEnum;
|
|
34
|
+
/**
|
|
35
|
+
* Whether Storage DRS is enabled for this cluster
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof ClusterFeatures
|
|
38
|
+
*/
|
|
39
|
+
storageDrsEnabled?: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const ClusterFeaturesDrsModeEnum = {
|
|
47
|
+
FullyAutomated: 'Fully Automated',
|
|
48
|
+
PartiallyAutomated: 'Partially Automated',
|
|
49
|
+
Manual: 'Manual',
|
|
50
|
+
None: 'None'
|
|
51
|
+
} as const;
|
|
52
|
+
export type ClusterFeaturesDrsModeEnum = typeof ClusterFeaturesDrsModeEnum[keyof typeof ClusterFeaturesDrsModeEnum];
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the ClusterFeatures interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfClusterFeatures(value: object): value is ClusterFeatures {
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ClusterFeaturesFromJSON(json: any): ClusterFeatures {
|
|
63
|
+
return ClusterFeaturesFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ClusterFeaturesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterFeatures {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'drsEnabled': json['drsEnabled'] == null ? undefined : json['drsEnabled'],
|
|
73
|
+
'drsMode': json['drsMode'] == null ? undefined : json['drsMode'],
|
|
74
|
+
'storageDrsEnabled': json['storageDrsEnabled'] == null ? undefined : json['storageDrsEnabled'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ClusterFeaturesToJSON(json: any): ClusterFeatures {
|
|
79
|
+
return ClusterFeaturesToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function ClusterFeaturesToJSONTyped(value?: ClusterFeatures | null, ignoreDiscriminator: boolean = false): any {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'drsEnabled': value['drsEnabled'],
|
|
90
|
+
'drsMode': value['drsMode'],
|
|
91
|
+
'storageDrsEnabled': value['storageDrsEnabled'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
package/src/models/Inventory.ts
CHANGED
|
@@ -33,6 +33,12 @@ export interface Inventory {
|
|
|
33
33
|
* @memberof Inventory
|
|
34
34
|
*/
|
|
35
35
|
vcenterId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Version of the vCenter api. For example "8.0.3.0"
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Inventory
|
|
40
|
+
*/
|
|
41
|
+
vcenterVersion?: string;
|
|
36
42
|
/**
|
|
37
43
|
* Map of cluster names to their inventory data
|
|
38
44
|
* @type {{ [key: string]: InventoryData; }}
|
|
@@ -51,7 +57,7 @@ export interface Inventory {
|
|
|
51
57
|
* Check if a given object implements the Inventory interface.
|
|
52
58
|
*/
|
|
53
59
|
export function instanceOfInventory(value: object): value is Inventory {
|
|
54
|
-
if (!('vcenterId' in value) || value['vcenterId'] === undefined) return false;
|
|
60
|
+
if ((!('vcenterId' in value) && !('vcenter_id' in value)) || (value['vcenterId'] === undefined && value['vcenter_id'] === undefined)) return false;
|
|
55
61
|
if (!('clusters' in value) || value['clusters'] === undefined) return false;
|
|
56
62
|
return true;
|
|
57
63
|
}
|
|
@@ -67,6 +73,7 @@ export function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
67
73
|
return {
|
|
68
74
|
|
|
69
75
|
'vcenterId': json['vcenter_id'],
|
|
76
|
+
'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
70
77
|
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
71
78
|
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
72
79
|
};
|
|
@@ -84,6 +91,7 @@ export function InventoryToJSONTyped(value?: Inventory | null, ignoreDiscriminat
|
|
|
84
91
|
return {
|
|
85
92
|
|
|
86
93
|
'vcenter_id': value['vcenterId'],
|
|
94
|
+
'vcenter_version': value['vcenterVersion'],
|
|
87
95
|
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
88
96
|
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
89
97
|
};
|
|
@@ -34,6 +34,13 @@ import {
|
|
|
34
34
|
VMsToJSON,
|
|
35
35
|
VMsToJSONTyped,
|
|
36
36
|
} from './VMs.js';
|
|
37
|
+
import type { ClusterFeatures } from './ClusterFeatures.js';
|
|
38
|
+
import {
|
|
39
|
+
ClusterFeaturesFromJSON,
|
|
40
|
+
ClusterFeaturesFromJSONTyped,
|
|
41
|
+
ClusterFeaturesToJSON,
|
|
42
|
+
ClusterFeaturesToJSONTyped,
|
|
43
|
+
} from './ClusterFeatures.js';
|
|
37
44
|
|
|
38
45
|
/**
|
|
39
46
|
*
|
|
@@ -47,6 +54,12 @@ export interface InventoryData {
|
|
|
47
54
|
* @memberof InventoryData
|
|
48
55
|
*/
|
|
49
56
|
vcenter?: VCenter;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {ClusterFeatures}
|
|
60
|
+
* @memberof InventoryData
|
|
61
|
+
*/
|
|
62
|
+
clusterFeatures?: ClusterFeatures;
|
|
50
63
|
/**
|
|
51
64
|
*
|
|
52
65
|
* @type {VMs}
|
|
@@ -81,6 +94,7 @@ export function InventoryDataFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
81
94
|
return {
|
|
82
95
|
|
|
83
96
|
'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
|
|
97
|
+
'clusterFeatures': json['clusterFeatures'] == null ? undefined : ClusterFeaturesFromJSON(json['clusterFeatures']),
|
|
84
98
|
'vms': VMsFromJSON(json['vms']),
|
|
85
99
|
'infra': InfraFromJSON(json['infra']),
|
|
86
100
|
};
|
|
@@ -98,6 +112,7 @@ export function InventoryDataToJSONTyped(value?: InventoryData | null, ignoreDis
|
|
|
98
112
|
return {
|
|
99
113
|
|
|
100
114
|
'vcenter': VCenterToJSON(value['vcenter']),
|
|
115
|
+
'clusterFeatures': ClusterFeaturesToJSON(value['clusterFeatures']),
|
|
101
116
|
'vms': VMsToJSON(value['vms']),
|
|
102
117
|
'infra': InfraToJSON(value['infra']),
|
|
103
118
|
};
|
package/src/models/JobStatus.ts
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
/**
|
|
17
17
|
* Job status:
|
|
18
18
|
* * `pending` - Job is queued
|
|
19
|
-
* * `
|
|
20
|
-
* * `
|
|
19
|
+
* * `validating` - Ingesting and validating RVTools file
|
|
20
|
+
* * `parsing` - Building inventory from validated data
|
|
21
21
|
* * `completed` - Assessment created successfully
|
|
22
22
|
* * `failed` - Job failed with error
|
|
23
23
|
* * `cancelled` - Job was cancelled
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
*/
|
|
27
27
|
export const JobStatus = {
|
|
28
28
|
Pending: 'pending',
|
|
29
|
-
Parsing: 'parsing',
|
|
30
29
|
Validating: 'validating',
|
|
30
|
+
Parsing: 'parsing',
|
|
31
31
|
Completed: 'completed',
|
|
32
32
|
Failed: 'failed',
|
|
33
33
|
Cancelled: 'cancelled'
|
package/src/models/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './Assessment.js';
|
|
|
6
6
|
export * from './AssessmentForm.js';
|
|
7
7
|
export * from './AssessmentSharing.js';
|
|
8
8
|
export * from './AssessmentUpdate.js';
|
|
9
|
+
export * from './ClusterFeatures.js';
|
|
9
10
|
export * from './ClusterRequirementsRequest.js';
|
|
10
11
|
export * from './ClusterRequirementsResponse.js';
|
|
11
12
|
export * from './ClusterRequirementsStoredInput.js';
|