@openshift-migration-advisor/planner-sdk 0.13.2-b3e704dc90b2 → 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.
@@ -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.2-b3e704dc90b2
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.2-b3e704dc90b2`
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; }}
@@ -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
  };
@@ -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';
@@ -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; }}
@@ -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
  };
@@ -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';
@@ -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);
@@ -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
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/planner-sdk",
3
- "version": "0.13.2-b3e704dc90b2",
3
+ "version": "0.13.3-391ade47acd8",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/planner-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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
+
@@ -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; }}
@@ -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
  };
@@ -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';