@openshift-migration-advisor/planner-sdk 0.17.0-587c58d24751 → 0.18.0-b5e8e71564be

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.
@@ -85,6 +85,7 @@ docs/SourceUpdate.md
85
85
  docs/StandaloneClusterRequirementsRequest.md
86
86
  docs/StandaloneClusterRequirementsResponse.md
87
87
  docs/Status.md
88
+ docs/StorageIoConfiguration.md
88
89
  docs/UpdateInventory.md
89
90
  docs/VCenter.md
90
91
  docs/VMResourceBreakdown.md
@@ -176,6 +177,7 @@ src/models/SourceUpdate.ts
176
177
  src/models/StandaloneClusterRequirementsRequest.ts
177
178
  src/models/StandaloneClusterRequirementsResponse.ts
178
179
  src/models/Status.ts
180
+ src/models/StorageIoConfiguration.ts
179
181
  src/models/UpdateInventory.ts
180
182
  src/models/VCenter.ts
181
183
  src/models/VMResourceBreakdown.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/planner-sdk@0.17.0-587c58d24751
1
+ # @openshift-migration-advisor/planner-sdk@0.18.0-b5e8e71564be
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -173,6 +173,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
173
173
  - [StandaloneClusterRequirementsRequest](docs/StandaloneClusterRequirementsRequest.md)
174
174
  - [StandaloneClusterRequirementsResponse](docs/StandaloneClusterRequirementsResponse.md)
175
175
  - [Status](docs/Status.md)
176
+ - [StorageIoConfiguration](docs/StorageIoConfiguration.md)
176
177
  - [UpdateInventory](docs/UpdateInventory.md)
177
178
  - [VCenter](docs/VCenter.md)
178
179
  - [VMResourceBreakdown](docs/VMResourceBreakdown.md)
@@ -191,7 +192,7 @@ and is automatically generated by the
191
192
  [OpenAPI Generator](https://openapi-generator.tech) project:
192
193
 
193
194
  - API version: `v1alpha1`
194
- - Package version: `0.17.0-587c58d24751`
195
+ - Package version: `0.18.0-b5e8e71564be`
195
196
  - Generator version: `7.24.0-SNAPSHOT`
196
197
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
197
198
 
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { StorageIoConfiguration } from './StorageIoConfiguration.js';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -69,6 +70,12 @@ export interface Datastore {
69
70
  * @memberof Datastore
70
71
  */
71
72
  hostId?: string | null;
73
+ /**
74
+ *
75
+ * @type {StorageIoConfiguration}
76
+ * @memberof Datastore
77
+ */
78
+ storageIoConfiguration?: StorageIoConfiguration;
72
79
  }
73
80
  /**
74
81
  * Check if a given object implements the Datastore interface.
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { StorageIoConfigurationFromJSON, StorageIoConfigurationToJSON, } from './StorageIoConfiguration.js';
14
15
  /**
15
16
  * Check if a given object implements the Datastore interface.
16
17
  */
@@ -50,6 +51,7 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
50
51
  'protocolType': json['protocolType'],
51
52
  'model': json['model'],
52
53
  'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
54
+ 'storageIoConfiguration': json['storageIoConfiguration'] == null ? undefined : StorageIoConfigurationFromJSON(json['storageIoConfiguration']),
53
55
  };
54
56
  }
55
57
  export function DatastoreToJSON(json) {
@@ -69,5 +71,6 @@ export function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
69
71
  'protocolType': value['protocolType'],
70
72
  'model': value['model'],
71
73
  'hostId': value['hostId'],
74
+ 'storageIoConfiguration': StorageIoConfigurationToJSON(value['storageIoConfiguration']),
72
75
  };
73
76
  }
@@ -0,0 +1,58 @@
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 StorageIoConfiguration
16
+ */
17
+ export interface StorageIoConfiguration {
18
+ /**
19
+ * Whether Storage I/O Control is enabled for this datastore
20
+ * @type {boolean}
21
+ * @memberof StorageIoConfiguration
22
+ */
23
+ enabled?: boolean;
24
+ /**
25
+ * Latency threshold in milliseconds beyond which the storage array is considered congested
26
+ * @type {number}
27
+ * @memberof StorageIoConfiguration
28
+ */
29
+ congestionThreshold?: number;
30
+ /**
31
+ * Mode for congestion threshold calculation
32
+ * @type {StorageIoConfigurationCongestionThresholdModeEnum}
33
+ * @memberof StorageIoConfiguration
34
+ */
35
+ congestionThresholdMode?: StorageIoConfigurationCongestionThresholdModeEnum;
36
+ /**
37
+ * Percent of peak throughput
38
+ * @type {number}
39
+ * @memberof StorageIoConfiguration
40
+ */
41
+ percentOfPeakThroughput?: number;
42
+ }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const StorageIoConfigurationCongestionThresholdModeEnum: {
47
+ readonly Automatic: "automatic";
48
+ readonly Manual: "manual";
49
+ };
50
+ export type StorageIoConfigurationCongestionThresholdModeEnum = typeof StorageIoConfigurationCongestionThresholdModeEnum[keyof typeof StorageIoConfigurationCongestionThresholdModeEnum];
51
+ /**
52
+ * Check if a given object implements the StorageIoConfiguration interface.
53
+ */
54
+ export declare function instanceOfStorageIoConfiguration(value: object): value is StorageIoConfiguration;
55
+ export declare function StorageIoConfigurationFromJSON(json: any): StorageIoConfiguration;
56
+ export declare function StorageIoConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageIoConfiguration;
57
+ export declare function StorageIoConfigurationToJSON(json: any): StorageIoConfiguration;
58
+ export declare function StorageIoConfigurationToJSONTyped(value?: StorageIoConfiguration | 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 StorageIoConfigurationCongestionThresholdModeEnum = {
18
+ Automatic: 'automatic',
19
+ Manual: 'manual'
20
+ };
21
+ /**
22
+ * Check if a given object implements the StorageIoConfiguration interface.
23
+ */
24
+ export function instanceOfStorageIoConfiguration(value) {
25
+ return true;
26
+ }
27
+ export function StorageIoConfigurationFromJSON(json) {
28
+ return StorageIoConfigurationFromJSONTyped(json, false);
29
+ }
30
+ export function StorageIoConfigurationFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
36
+ 'congestionThreshold': json['congestionThreshold'] == null ? undefined : json['congestionThreshold'],
37
+ 'congestionThresholdMode': json['congestionThresholdMode'] == null ? undefined : json['congestionThresholdMode'],
38
+ 'percentOfPeakThroughput': json['percentOfPeakThroughput'] == null ? undefined : json['percentOfPeakThroughput'],
39
+ };
40
+ }
41
+ export function StorageIoConfigurationToJSON(json) {
42
+ return StorageIoConfigurationToJSONTyped(json, false);
43
+ }
44
+ export function StorageIoConfigurationToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'enabled': value['enabled'],
50
+ 'congestionThreshold': value['congestionThreshold'],
51
+ 'congestionThresholdMode': value['congestionThresholdMode'],
52
+ 'percentOfPeakThroughput': value['percentOfPeakThroughput'],
53
+ };
54
+ }
@@ -72,6 +72,7 @@ export * from './SourceUpdate.js';
72
72
  export * from './StandaloneClusterRequirementsRequest.js';
73
73
  export * from './StandaloneClusterRequirementsResponse.js';
74
74
  export * from './Status.js';
75
+ export * from './StorageIoConfiguration.js';
75
76
  export * from './UpdateInventory.js';
76
77
  export * from './VCenter.js';
77
78
  export * from './VMResourceBreakdown.js';
@@ -74,6 +74,7 @@ export * from './SourceUpdate.js';
74
74
  export * from './StandaloneClusterRequirementsRequest.js';
75
75
  export * from './StandaloneClusterRequirementsResponse.js';
76
76
  export * from './Status.js';
77
+ export * from './StorageIoConfiguration.js';
77
78
  export * from './UpdateInventory.js';
78
79
  export * from './VCenter.js';
79
80
  export * from './VMResourceBreakdown.js';
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { StorageIoConfiguration } from './StorageIoConfiguration.js';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -69,6 +70,12 @@ export interface Datastore {
69
70
  * @memberof Datastore
70
71
  */
71
72
  hostId?: string | null;
73
+ /**
74
+ *
75
+ * @type {StorageIoConfiguration}
76
+ * @memberof Datastore
77
+ */
78
+ storageIoConfiguration?: StorageIoConfiguration;
72
79
  }
73
80
  /**
74
81
  * Check if a given object implements the Datastore interface.
@@ -18,6 +18,7 @@ exports.DatastoreFromJSON = DatastoreFromJSON;
18
18
  exports.DatastoreFromJSONTyped = DatastoreFromJSONTyped;
19
19
  exports.DatastoreToJSON = DatastoreToJSON;
20
20
  exports.DatastoreToJSONTyped = DatastoreToJSONTyped;
21
+ const StorageIoConfiguration_js_1 = require("./StorageIoConfiguration.js");
21
22
  /**
22
23
  * Check if a given object implements the Datastore interface.
23
24
  */
@@ -57,6 +58,7 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
57
58
  'protocolType': json['protocolType'],
58
59
  'model': json['model'],
59
60
  'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
61
+ 'storageIoConfiguration': json['storageIoConfiguration'] == null ? undefined : (0, StorageIoConfiguration_js_1.StorageIoConfigurationFromJSON)(json['storageIoConfiguration']),
60
62
  };
61
63
  }
62
64
  function DatastoreToJSON(json) {
@@ -76,5 +78,6 @@ function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
76
78
  'protocolType': value['protocolType'],
77
79
  'model': value['model'],
78
80
  'hostId': value['hostId'],
81
+ 'storageIoConfiguration': (0, StorageIoConfiguration_js_1.StorageIoConfigurationToJSON)(value['storageIoConfiguration']),
79
82
  };
80
83
  }
@@ -0,0 +1,58 @@
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 StorageIoConfiguration
16
+ */
17
+ export interface StorageIoConfiguration {
18
+ /**
19
+ * Whether Storage I/O Control is enabled for this datastore
20
+ * @type {boolean}
21
+ * @memberof StorageIoConfiguration
22
+ */
23
+ enabled?: boolean;
24
+ /**
25
+ * Latency threshold in milliseconds beyond which the storage array is considered congested
26
+ * @type {number}
27
+ * @memberof StorageIoConfiguration
28
+ */
29
+ congestionThreshold?: number;
30
+ /**
31
+ * Mode for congestion threshold calculation
32
+ * @type {StorageIoConfigurationCongestionThresholdModeEnum}
33
+ * @memberof StorageIoConfiguration
34
+ */
35
+ congestionThresholdMode?: StorageIoConfigurationCongestionThresholdModeEnum;
36
+ /**
37
+ * Percent of peak throughput
38
+ * @type {number}
39
+ * @memberof StorageIoConfiguration
40
+ */
41
+ percentOfPeakThroughput?: number;
42
+ }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const StorageIoConfigurationCongestionThresholdModeEnum: {
47
+ readonly Automatic: "automatic";
48
+ readonly Manual: "manual";
49
+ };
50
+ export type StorageIoConfigurationCongestionThresholdModeEnum = typeof StorageIoConfigurationCongestionThresholdModeEnum[keyof typeof StorageIoConfigurationCongestionThresholdModeEnum];
51
+ /**
52
+ * Check if a given object implements the StorageIoConfiguration interface.
53
+ */
54
+ export declare function instanceOfStorageIoConfiguration(value: object): value is StorageIoConfiguration;
55
+ export declare function StorageIoConfigurationFromJSON(json: any): StorageIoConfiguration;
56
+ export declare function StorageIoConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageIoConfiguration;
57
+ export declare function StorageIoConfigurationToJSON(json: any): StorageIoConfiguration;
58
+ export declare function StorageIoConfigurationToJSONTyped(value?: StorageIoConfiguration | 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.StorageIoConfigurationCongestionThresholdModeEnum = void 0;
17
+ exports.instanceOfStorageIoConfiguration = instanceOfStorageIoConfiguration;
18
+ exports.StorageIoConfigurationFromJSON = StorageIoConfigurationFromJSON;
19
+ exports.StorageIoConfigurationFromJSONTyped = StorageIoConfigurationFromJSONTyped;
20
+ exports.StorageIoConfigurationToJSON = StorageIoConfigurationToJSON;
21
+ exports.StorageIoConfigurationToJSONTyped = StorageIoConfigurationToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.StorageIoConfigurationCongestionThresholdModeEnum = {
26
+ Automatic: 'automatic',
27
+ Manual: 'manual'
28
+ };
29
+ /**
30
+ * Check if a given object implements the StorageIoConfiguration interface.
31
+ */
32
+ function instanceOfStorageIoConfiguration(value) {
33
+ return true;
34
+ }
35
+ function StorageIoConfigurationFromJSON(json) {
36
+ return StorageIoConfigurationFromJSONTyped(json, false);
37
+ }
38
+ function StorageIoConfigurationFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
44
+ 'congestionThreshold': json['congestionThreshold'] == null ? undefined : json['congestionThreshold'],
45
+ 'congestionThresholdMode': json['congestionThresholdMode'] == null ? undefined : json['congestionThresholdMode'],
46
+ 'percentOfPeakThroughput': json['percentOfPeakThroughput'] == null ? undefined : json['percentOfPeakThroughput'],
47
+ };
48
+ }
49
+ function StorageIoConfigurationToJSON(json) {
50
+ return StorageIoConfigurationToJSONTyped(json, false);
51
+ }
52
+ function StorageIoConfigurationToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'enabled': value['enabled'],
58
+ 'congestionThreshold': value['congestionThreshold'],
59
+ 'congestionThresholdMode': value['congestionThresholdMode'],
60
+ 'percentOfPeakThroughput': value['percentOfPeakThroughput'],
61
+ };
62
+ }
@@ -72,6 +72,7 @@ export * from './SourceUpdate.js';
72
72
  export * from './StandaloneClusterRequirementsRequest.js';
73
73
  export * from './StandaloneClusterRequirementsResponse.js';
74
74
  export * from './Status.js';
75
+ export * from './StorageIoConfiguration.js';
75
76
  export * from './UpdateInventory.js';
76
77
  export * from './VCenter.js';
77
78
  export * from './VMResourceBreakdown.js';
@@ -90,6 +90,7 @@ __exportStar(require("./SourceUpdate.js"), exports);
90
90
  __exportStar(require("./StandaloneClusterRequirementsRequest.js"), exports);
91
91
  __exportStar(require("./StandaloneClusterRequirementsResponse.js"), exports);
92
92
  __exportStar(require("./Status.js"), exports);
93
+ __exportStar(require("./StorageIoConfiguration.js"), exports);
93
94
  __exportStar(require("./UpdateInventory.js"), exports);
94
95
  __exportStar(require("./VCenter.js"), exports);
95
96
  __exportStar(require("./VMResourceBreakdown.js"), exports);
package/docs/Datastore.md CHANGED
@@ -15,6 +15,7 @@ Name | Type
15
15
  `protocolType` | string
16
16
  `model` | string
17
17
  `hostId` | string
18
+ `storageIoConfiguration` | [StorageIoConfiguration](StorageIoConfiguration.md)
18
19
 
19
20
  ## Example
20
21
 
@@ -32,6 +33,7 @@ const example = {
32
33
  "protocolType": null,
33
34
  "model": null,
34
35
  "hostId": null,
36
+ "storageIoConfiguration": null,
35
37
  } satisfies Datastore
36
38
 
37
39
  console.log(example)
@@ -0,0 +1,40 @@
1
+
2
+ # StorageIoConfiguration
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `enabled` | boolean
10
+ `congestionThreshold` | number
11
+ `congestionThresholdMode` | string
12
+ `percentOfPeakThroughput` | number
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { StorageIoConfiguration } from '@openshift-migration-advisor/planner-sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "enabled": null,
22
+ "congestionThreshold": null,
23
+ "congestionThresholdMode": null,
24
+ "percentOfPeakThroughput": null,
25
+ } satisfies StorageIoConfiguration
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as StorageIoConfiguration
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/planner-sdk",
3
- "version": "0.17.0-587c58d24751",
3
+ "version": "0.18.0-b5e8e71564be",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/planner-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime.js';
16
+ import type { StorageIoConfiguration } from './StorageIoConfiguration.js';
17
+ import {
18
+ StorageIoConfigurationFromJSON,
19
+ StorageIoConfigurationFromJSONTyped,
20
+ StorageIoConfigurationToJSON,
21
+ StorageIoConfigurationToJSONTyped,
22
+ } from './StorageIoConfiguration.js';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -73,6 +81,12 @@ export interface Datastore {
73
81
  * @memberof Datastore
74
82
  */
75
83
  hostId?: string | null;
84
+ /**
85
+ *
86
+ * @type {StorageIoConfiguration}
87
+ * @memberof Datastore
88
+ */
89
+ storageIoConfiguration?: StorageIoConfiguration;
76
90
  }
77
91
 
78
92
  /**
@@ -109,6 +123,7 @@ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean):
109
123
  'protocolType': json['protocolType'],
110
124
  'model': json['model'],
111
125
  'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
126
+ 'storageIoConfiguration': json['storageIoConfiguration'] == null ? undefined : StorageIoConfigurationFromJSON(json['storageIoConfiguration']),
112
127
  };
113
128
  }
114
129
 
@@ -132,6 +147,7 @@ export function DatastoreToJSONTyped(value?: Datastore | null, ignoreDiscriminat
132
147
  'protocolType': value['protocolType'],
133
148
  'model': value['model'],
134
149
  'hostId': value['hostId'],
150
+ 'storageIoConfiguration': StorageIoConfigurationToJSON(value['storageIoConfiguration']),
135
151
  };
136
152
  }
137
153
 
@@ -0,0 +1,100 @@
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 StorageIoConfiguration
20
+ */
21
+ export interface StorageIoConfiguration {
22
+ /**
23
+ * Whether Storage I/O Control is enabled for this datastore
24
+ * @type {boolean}
25
+ * @memberof StorageIoConfiguration
26
+ */
27
+ enabled?: boolean;
28
+ /**
29
+ * Latency threshold in milliseconds beyond which the storage array is considered congested
30
+ * @type {number}
31
+ * @memberof StorageIoConfiguration
32
+ */
33
+ congestionThreshold?: number;
34
+ /**
35
+ * Mode for congestion threshold calculation
36
+ * @type {StorageIoConfigurationCongestionThresholdModeEnum}
37
+ * @memberof StorageIoConfiguration
38
+ */
39
+ congestionThresholdMode?: StorageIoConfigurationCongestionThresholdModeEnum;
40
+ /**
41
+ * Percent of peak throughput
42
+ * @type {number}
43
+ * @memberof StorageIoConfiguration
44
+ */
45
+ percentOfPeakThroughput?: number;
46
+ }
47
+
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const StorageIoConfigurationCongestionThresholdModeEnum = {
53
+ Automatic: 'automatic',
54
+ Manual: 'manual'
55
+ } as const;
56
+ export type StorageIoConfigurationCongestionThresholdModeEnum = typeof StorageIoConfigurationCongestionThresholdModeEnum[keyof typeof StorageIoConfigurationCongestionThresholdModeEnum];
57
+
58
+
59
+ /**
60
+ * Check if a given object implements the StorageIoConfiguration interface.
61
+ */
62
+ export function instanceOfStorageIoConfiguration(value: object): value is StorageIoConfiguration {
63
+ return true;
64
+ }
65
+
66
+ export function StorageIoConfigurationFromJSON(json: any): StorageIoConfiguration {
67
+ return StorageIoConfigurationFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function StorageIoConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageIoConfiguration {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
77
+ 'congestionThreshold': json['congestionThreshold'] == null ? undefined : json['congestionThreshold'],
78
+ 'congestionThresholdMode': json['congestionThresholdMode'] == null ? undefined : json['congestionThresholdMode'],
79
+ 'percentOfPeakThroughput': json['percentOfPeakThroughput'] == null ? undefined : json['percentOfPeakThroughput'],
80
+ };
81
+ }
82
+
83
+ export function StorageIoConfigurationToJSON(json: any): StorageIoConfiguration {
84
+ return StorageIoConfigurationToJSONTyped(json, false);
85
+ }
86
+
87
+ export function StorageIoConfigurationToJSONTyped(value?: StorageIoConfiguration | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'enabled': value['enabled'],
95
+ 'congestionThreshold': value['congestionThreshold'],
96
+ 'congestionThresholdMode': value['congestionThresholdMode'],
97
+ 'percentOfPeakThroughput': value['percentOfPeakThroughput'],
98
+ };
99
+ }
100
+
@@ -74,6 +74,7 @@ export * from './SourceUpdate.js';
74
74
  export * from './StandaloneClusterRequirementsRequest.js';
75
75
  export * from './StandaloneClusterRequirementsResponse.js';
76
76
  export * from './Status.js';
77
+ export * from './StorageIoConfiguration.js';
77
78
  export * from './UpdateInventory.js';
78
79
  export * from './VCenter.js';
79
80
  export * from './VMResourceBreakdown.js';