@openshift-migration-advisor/planner-sdk 0.32.0-83e8d01d3484 → 0.32.0-d0c6361703a9

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.
@@ -100,6 +100,7 @@ docs/SourceUpdate.md
100
100
  docs/StandaloneClusterRequirementsRequest.md
101
101
  docs/StandaloneClusterRequirementsResponse.md
102
102
  docs/Status.md
103
+ docs/StorageArray.md
103
104
  docs/StorageIoConfiguration.md
104
105
  docs/SubResource.md
105
106
  docs/UpdateInventory.md
@@ -211,6 +212,7 @@ src/models/SourceUpdate.ts
211
212
  src/models/StandaloneClusterRequirementsRequest.ts
212
213
  src/models/StandaloneClusterRequirementsResponse.ts
213
214
  src/models/Status.ts
215
+ src/models/StorageArray.ts
214
216
  src/models/StorageIoConfiguration.ts
215
217
  src/models/SubResource.ts
216
218
  src/models/UpdateInventory.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/planner-sdk@0.32.0-83e8d01d3484
1
+ # @openshift-migration-advisor/planner-sdk@0.32.0-d0c6361703a9
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -199,6 +199,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
199
199
  - [StandaloneClusterRequirementsRequest](docs/StandaloneClusterRequirementsRequest.md)
200
200
  - [StandaloneClusterRequirementsResponse](docs/StandaloneClusterRequirementsResponse.md)
201
201
  - [Status](docs/Status.md)
202
+ - [StorageArray](docs/StorageArray.md)
202
203
  - [StorageIoConfiguration](docs/StorageIoConfiguration.md)
203
204
  - [SubResource](docs/SubResource.md)
204
205
  - [UpdateInventory](docs/UpdateInventory.md)
@@ -222,7 +223,7 @@ and is automatically generated by the
222
223
  [OpenAPI Generator](https://openapi-generator.tech) project:
223
224
 
224
225
  - API version: `v1alpha1`
225
- - Package version: `0.32.0-83e8d01d3484`
226
+ - Package version: `0.32.0-d0c6361703a9`
226
227
  - Generator version: `7.28.0-SNAPSHOT`
227
228
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
228
229
 
@@ -10,12 +10,21 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { StorageIoConfiguration } from './StorageIoConfiguration.js';
13
+ import type { StorageArray } from './StorageArray.js';
13
14
  /**
14
15
  *
15
16
  * @export
16
17
  * @interface Datastore
17
18
  */
18
19
  export interface Datastore {
20
+ /**
21
+ * Source-reported VASA arrays; absence does not establish that the datastore has no array
22
+ */
23
+ storageArrays?: Array<StorageArray>;
24
+ /**
25
+ * Source storage-container identifier, distinct from array UUID and protocol-endpoint identity
26
+ */
27
+ storageContainerId?: string;
19
28
  /**
20
29
  *
21
30
  */
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { StorageIoConfigurationFromJSON, StorageIoConfigurationToJSON, } from './StorageIoConfiguration.js';
15
+ import { StorageArrayFromJSON, StorageArrayToJSON, } from './StorageArray.js';
15
16
  /**
16
17
  * @export
17
18
  */
@@ -50,6 +51,8 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
50
51
  return json;
51
52
  }
52
53
  return {
54
+ 'storageArrays': json['storageArrays'] == null ? undefined : (json['storageArrays'].map(StorageArrayFromJSON)),
55
+ 'storageContainerId': json['storageContainerId'] == null ? undefined : json['storageContainerId'],
53
56
  'type': json['type'],
54
57
  'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
55
58
  'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
@@ -75,6 +78,8 @@ export function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
75
78
  return value;
76
79
  }
77
80
  return {
81
+ 'storageArrays': value['storageArrays'] == null ? undefined : (value['storageArrays'].map(StorageArrayToJSON)),
82
+ 'storageContainerId': value['storageContainerId'],
78
83
  'type': value['type'],
79
84
  'backingDeviceIds': value['backingDeviceIds'],
80
85
  'filesystemType': value['filesystemType'],
@@ -56,13 +56,17 @@ export interface Source {
56
56
  */
57
57
  infra?: SourceInfra;
58
58
  /**
59
- * Agent version (version tag) stored when OVA was downloaded
59
+ * The appliance version the source runs — agent-reported when connected, else the OVA-download stamp
60
60
  */
61
61
  agentVersion?: string | null;
62
62
  /**
63
- * Warning message if stored agent version differs from current agent version
63
+ * Warning message if the version the source runs differs from the current appliance version
64
64
  */
65
65
  agentVersionWarning?: string | null;
66
+ /**
67
+ * Whether the source's appliance can be updated in place with the served image; false means a new OVA must be deployed
68
+ */
69
+ applianceUpdateSupported?: boolean | null;
66
70
  /**
67
71
  * Indicates whether the inventory was updated automatically by an agent or manually by a user
68
72
  */
@@ -58,6 +58,7 @@ export function SourceFromJSONTyped(json, ignoreDiscriminator) {
58
58
  'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
59
59
  'agentVersion': json['agentVersion'] === undefined ? undefined : json['agentVersion'] === null ? null : json['agentVersion'],
60
60
  'agentVersionWarning': json['agentVersionWarning'] === undefined ? undefined : json['agentVersionWarning'] === null ? null : json['agentVersionWarning'],
61
+ 'applianceUpdateSupported': json['applianceUpdateSupported'] === undefined ? undefined : json['applianceUpdateSupported'] === null ? null : json['applianceUpdateSupported'],
61
62
  'updateType': json['updateType'] == null ? undefined : json['updateType'],
62
63
  };
63
64
  }
@@ -80,6 +81,7 @@ export function SourceToJSONTyped(value, ignoreDiscriminator = false) {
80
81
  'infra': SourceInfraToJSON(value['infra']),
81
82
  'agentVersion': value['agentVersion'],
82
83
  'agentVersionWarning': value['agentVersionWarning'],
84
+ 'applianceUpdateSupported': value['applianceUpdateSupported'],
83
85
  'updateType': value['updateType'],
84
86
  };
85
87
  }
@@ -0,0 +1,42 @@
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
+ * Authoritative source VASA array identity associated with this datastore; distinct from LUN inquiry metadata and storage-container identity
14
+ * @export
15
+ * @interface StorageArray
16
+ */
17
+ export interface StorageArray {
18
+ /**
19
+ * Array UUID reported by the source, when available
20
+ */
21
+ uuid?: string;
22
+ /**
23
+ *
24
+ */
25
+ name?: string;
26
+ /**
27
+ * VASA vendor ID, not a SCSI inquiry vendor
28
+ */
29
+ vendorId?: string;
30
+ /**
31
+ * VASA model ID, not a SCSI inquiry model
32
+ */
33
+ modelId?: string;
34
+ }
35
+ /**
36
+ * Check if a given object implements the StorageArray interface.
37
+ */
38
+ export declare function instanceOfStorageArray(value: object): value is StorageArray;
39
+ export declare function StorageArrayFromJSON(json: any): StorageArray;
40
+ export declare function StorageArrayFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageArray;
41
+ export declare function StorageArrayToJSON(json: any): StorageArray;
42
+ export declare function StorageArrayToJSONTyped(value?: StorageArray | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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
+ * Check if a given object implements the StorageArray interface.
16
+ */
17
+ export function instanceOfStorageArray(value) {
18
+ return true;
19
+ }
20
+ export function StorageArrayFromJSON(json) {
21
+ return StorageArrayFromJSONTyped(json, false);
22
+ }
23
+ export function StorageArrayFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'uuid': json['uuid'] == null ? undefined : json['uuid'],
29
+ 'name': json['name'] == null ? undefined : json['name'],
30
+ 'vendorId': json['vendorId'] == null ? undefined : json['vendorId'],
31
+ 'modelId': json['modelId'] == null ? undefined : json['modelId'],
32
+ };
33
+ }
34
+ export function StorageArrayToJSON(json) {
35
+ return StorageArrayToJSONTyped(json, false);
36
+ }
37
+ export function StorageArrayToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'uuid': value['uuid'],
43
+ 'name': value['name'],
44
+ 'vendorId': value['vendorId'],
45
+ 'modelId': value['modelId'],
46
+ };
47
+ }
@@ -87,6 +87,7 @@ export * from './SourceUpdate.js';
87
87
  export * from './StandaloneClusterRequirementsRequest.js';
88
88
  export * from './StandaloneClusterRequirementsResponse.js';
89
89
  export * from './Status.js';
90
+ export * from './StorageArray.js';
90
91
  export * from './StorageIoConfiguration.js';
91
92
  export * from './SubResource.js';
92
93
  export * from './UpdateInventory.js';
@@ -89,6 +89,7 @@ export * from './SourceUpdate.js';
89
89
  export * from './StandaloneClusterRequirementsRequest.js';
90
90
  export * from './StandaloneClusterRequirementsResponse.js';
91
91
  export * from './Status.js';
92
+ export * from './StorageArray.js';
92
93
  export * from './StorageIoConfiguration.js';
93
94
  export * from './SubResource.js';
94
95
  export * from './UpdateInventory.js';
@@ -10,12 +10,21 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { StorageIoConfiguration } from './StorageIoConfiguration.js';
13
+ import type { StorageArray } from './StorageArray.js';
13
14
  /**
14
15
  *
15
16
  * @export
16
17
  * @interface Datastore
17
18
  */
18
19
  export interface Datastore {
20
+ /**
21
+ * Source-reported VASA arrays; absence does not establish that the datastore has no array
22
+ */
23
+ storageArrays?: Array<StorageArray>;
24
+ /**
25
+ * Source storage-container identifier, distinct from array UUID and protocol-endpoint identity
26
+ */
27
+ storageContainerId?: string;
19
28
  /**
20
29
  *
21
30
  */
@@ -20,6 +20,7 @@ exports.DatastoreFromJSONTyped = DatastoreFromJSONTyped;
20
20
  exports.DatastoreToJSON = DatastoreToJSON;
21
21
  exports.DatastoreToJSONTyped = DatastoreToJSONTyped;
22
22
  const StorageIoConfiguration_js_1 = require("./StorageIoConfiguration.js");
23
+ const StorageArray_js_1 = require("./StorageArray.js");
23
24
  /**
24
25
  * @export
25
26
  */
@@ -58,6 +59,8 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
58
59
  return json;
59
60
  }
60
61
  return {
62
+ 'storageArrays': json['storageArrays'] == null ? undefined : (json['storageArrays'].map(StorageArray_js_1.StorageArrayFromJSON)),
63
+ 'storageContainerId': json['storageContainerId'] == null ? undefined : json['storageContainerId'],
61
64
  'type': json['type'],
62
65
  'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
63
66
  'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
@@ -83,6 +86,8 @@ function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
83
86
  return value;
84
87
  }
85
88
  return {
89
+ 'storageArrays': value['storageArrays'] == null ? undefined : (value['storageArrays'].map(StorageArray_js_1.StorageArrayToJSON)),
90
+ 'storageContainerId': value['storageContainerId'],
86
91
  'type': value['type'],
87
92
  'backingDeviceIds': value['backingDeviceIds'],
88
93
  'filesystemType': value['filesystemType'],
@@ -56,13 +56,17 @@ export interface Source {
56
56
  */
57
57
  infra?: SourceInfra;
58
58
  /**
59
- * Agent version (version tag) stored when OVA was downloaded
59
+ * The appliance version the source runs — agent-reported when connected, else the OVA-download stamp
60
60
  */
61
61
  agentVersion?: string | null;
62
62
  /**
63
- * Warning message if stored agent version differs from current agent version
63
+ * Warning message if the version the source runs differs from the current appliance version
64
64
  */
65
65
  agentVersionWarning?: string | null;
66
+ /**
67
+ * Whether the source's appliance can be updated in place with the served image; false means a new OVA must be deployed
68
+ */
69
+ applianceUpdateSupported?: boolean | null;
66
70
  /**
67
71
  * Indicates whether the inventory was updated automatically by an agent or manually by a user
68
72
  */
@@ -66,6 +66,7 @@ function SourceFromJSONTyped(json, ignoreDiscriminator) {
66
66
  'infra': json['infra'] == null ? undefined : (0, SourceInfra_js_1.SourceInfraFromJSON)(json['infra']),
67
67
  'agentVersion': json['agentVersion'] === undefined ? undefined : json['agentVersion'] === null ? null : json['agentVersion'],
68
68
  'agentVersionWarning': json['agentVersionWarning'] === undefined ? undefined : json['agentVersionWarning'] === null ? null : json['agentVersionWarning'],
69
+ 'applianceUpdateSupported': json['applianceUpdateSupported'] === undefined ? undefined : json['applianceUpdateSupported'] === null ? null : json['applianceUpdateSupported'],
69
70
  'updateType': json['updateType'] == null ? undefined : json['updateType'],
70
71
  };
71
72
  }
@@ -88,6 +89,7 @@ function SourceToJSONTyped(value, ignoreDiscriminator = false) {
88
89
  'infra': (0, SourceInfra_js_1.SourceInfraToJSON)(value['infra']),
89
90
  'agentVersion': value['agentVersion'],
90
91
  'agentVersionWarning': value['agentVersionWarning'],
92
+ 'applianceUpdateSupported': value['applianceUpdateSupported'],
91
93
  'updateType': value['updateType'],
92
94
  };
93
95
  }
@@ -0,0 +1,42 @@
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
+ * Authoritative source VASA array identity associated with this datastore; distinct from LUN inquiry metadata and storage-container identity
14
+ * @export
15
+ * @interface StorageArray
16
+ */
17
+ export interface StorageArray {
18
+ /**
19
+ * Array UUID reported by the source, when available
20
+ */
21
+ uuid?: string;
22
+ /**
23
+ *
24
+ */
25
+ name?: string;
26
+ /**
27
+ * VASA vendor ID, not a SCSI inquiry vendor
28
+ */
29
+ vendorId?: string;
30
+ /**
31
+ * VASA model ID, not a SCSI inquiry model
32
+ */
33
+ modelId?: string;
34
+ }
35
+ /**
36
+ * Check if a given object implements the StorageArray interface.
37
+ */
38
+ export declare function instanceOfStorageArray(value: object): value is StorageArray;
39
+ export declare function StorageArrayFromJSON(json: any): StorageArray;
40
+ export declare function StorageArrayFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageArray;
41
+ export declare function StorageArrayToJSON(json: any): StorageArray;
42
+ export declare function StorageArrayToJSONTyped(value?: StorageArray | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfStorageArray = instanceOfStorageArray;
17
+ exports.StorageArrayFromJSON = StorageArrayFromJSON;
18
+ exports.StorageArrayFromJSONTyped = StorageArrayFromJSONTyped;
19
+ exports.StorageArrayToJSON = StorageArrayToJSON;
20
+ exports.StorageArrayToJSONTyped = StorageArrayToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the StorageArray interface.
23
+ */
24
+ function instanceOfStorageArray(value) {
25
+ return true;
26
+ }
27
+ function StorageArrayFromJSON(json) {
28
+ return StorageArrayFromJSONTyped(json, false);
29
+ }
30
+ function StorageArrayFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'uuid': json['uuid'] == null ? undefined : json['uuid'],
36
+ 'name': json['name'] == null ? undefined : json['name'],
37
+ 'vendorId': json['vendorId'] == null ? undefined : json['vendorId'],
38
+ 'modelId': json['modelId'] == null ? undefined : json['modelId'],
39
+ };
40
+ }
41
+ function StorageArrayToJSON(json) {
42
+ return StorageArrayToJSONTyped(json, false);
43
+ }
44
+ function StorageArrayToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'uuid': value['uuid'],
50
+ 'name': value['name'],
51
+ 'vendorId': value['vendorId'],
52
+ 'modelId': value['modelId'],
53
+ };
54
+ }
@@ -87,6 +87,7 @@ export * from './SourceUpdate.js';
87
87
  export * from './StandaloneClusterRequirementsRequest.js';
88
88
  export * from './StandaloneClusterRequirementsResponse.js';
89
89
  export * from './Status.js';
90
+ export * from './StorageArray.js';
90
91
  export * from './StorageIoConfiguration.js';
91
92
  export * from './SubResource.js';
92
93
  export * from './UpdateInventory.js';
@@ -105,6 +105,7 @@ __exportStar(require("./SourceUpdate.js"), exports);
105
105
  __exportStar(require("./StandaloneClusterRequirementsRequest.js"), exports);
106
106
  __exportStar(require("./StandaloneClusterRequirementsResponse.js"), exports);
107
107
  __exportStar(require("./Status.js"), exports);
108
+ __exportStar(require("./StorageArray.js"), exports);
108
109
  __exportStar(require("./StorageIoConfiguration.js"), exports);
109
110
  __exportStar(require("./SubResource.js"), exports);
110
111
  __exportStar(require("./UpdateInventory.js"), exports);
package/docs/Datastore.md CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
+ `storageArrays` | [Array&lt;StorageArray&gt;](StorageArray.md)
10
+ `storageContainerId` | string
9
11
  `type` | string
10
12
  `backingDeviceIds` | Array&lt;string&gt;
11
13
  `filesystemType` | string
@@ -29,6 +31,8 @@ import type { Datastore } from '@openshift-migration-advisor/planner-sdk'
29
31
 
30
32
  // TODO: Update the object below with actual values
31
33
  const example = {
34
+ "storageArrays": null,
35
+ "storageContainerId": null,
32
36
  "type": null,
33
37
  "backingDeviceIds": null,
34
38
  "filesystemType": null,
package/docs/Source.md CHANGED
@@ -17,6 +17,7 @@ Name | Type
17
17
  `infra` | [SourceInfra](SourceInfra.md)
18
18
  `agentVersion` | string
19
19
  `agentVersionWarning` | string
20
+ `applianceUpdateSupported` | boolean
20
21
  `updateType` | string
21
22
 
22
23
  ## Example
@@ -37,6 +38,7 @@ const example = {
37
38
  "infra": null,
38
39
  "agentVersion": null,
39
40
  "agentVersionWarning": null,
41
+ "applianceUpdateSupported": null,
40
42
  "updateType": null,
41
43
  } satisfies Source
42
44
 
@@ -0,0 +1,41 @@
1
+
2
+ # StorageArray
3
+
4
+ Authoritative source VASA array identity associated with this datastore; distinct from LUN inquiry metadata and storage-container identity
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `uuid` | string
11
+ `name` | string
12
+ `vendorId` | string
13
+ `modelId` | string
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { StorageArray } from '@openshift-migration-advisor/planner-sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "uuid": null,
23
+ "name": null,
24
+ "vendorId": null,
25
+ "modelId": null,
26
+ } satisfies StorageArray
27
+
28
+ console.log(example)
29
+
30
+ // Convert the instance to a JSON string
31
+ const exampleJSON: string = JSON.stringify(example)
32
+ console.log(exampleJSON)
33
+
34
+ // Parse the JSON string back to an object
35
+ const exampleParsed = JSON.parse(exampleJSON) as StorageArray
36
+ console.log(exampleParsed)
37
+ ```
38
+
39
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
40
+
41
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/planner-sdk",
3
- "version": "0.32.0-83e8d01d3484",
3
+ "version": "0.32.0-d0c6361703a9",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/planner-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -20,6 +20,13 @@ import {
20
20
  StorageIoConfigurationToJSON,
21
21
  StorageIoConfigurationToJSONTyped,
22
22
  } from './StorageIoConfiguration.js';
23
+ import type { StorageArray } from './StorageArray.js';
24
+ import {
25
+ StorageArrayFromJSON,
26
+ StorageArrayFromJSONTyped,
27
+ StorageArrayToJSON,
28
+ StorageArrayToJSONTyped,
29
+ } from './StorageArray.js';
23
30
 
24
31
  /**
25
32
  *
@@ -27,6 +34,14 @@ import {
27
34
  * @interface Datastore
28
35
  */
29
36
  export interface Datastore {
37
+ /**
38
+ * Source-reported VASA arrays; absence does not establish that the datastore has no array
39
+ */
40
+ storageArrays?: Array<StorageArray>;
41
+ /**
42
+ * Source storage-container identifier, distinct from array UUID and protocol-endpoint identity
43
+ */
44
+ storageContainerId?: string;
30
45
  /**
31
46
  *
32
47
  */
@@ -126,6 +141,8 @@ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean):
126
141
  }
127
142
  return {
128
143
 
144
+ 'storageArrays': json['storageArrays'] == null ? undefined : ((json['storageArrays'] as Array<any>).map(StorageArrayFromJSON)),
145
+ 'storageContainerId': json['storageContainerId'] == null ? undefined : json['storageContainerId'],
129
146
  'type': json['type'],
130
147
  'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
131
148
  'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
@@ -155,6 +172,8 @@ export function DatastoreToJSONTyped(value?: Datastore | null, ignoreDiscriminat
155
172
 
156
173
  return {
157
174
 
175
+ 'storageArrays': value['storageArrays'] == null ? undefined : ((value['storageArrays'] as Array<any>).map(StorageArrayToJSON)),
176
+ 'storageContainerId': value['storageContainerId'],
158
177
  'type': value['type'],
159
178
  'backingDeviceIds': value['backingDeviceIds'],
160
179
  'filesystemType': value['filesystemType'],
@@ -85,13 +85,17 @@ export interface Source {
85
85
  */
86
86
  infra?: SourceInfra;
87
87
  /**
88
- * Agent version (version tag) stored when OVA was downloaded
88
+ * The appliance version the source runs — agent-reported when connected, else the OVA-download stamp
89
89
  */
90
90
  agentVersion?: string | null;
91
91
  /**
92
- * Warning message if stored agent version differs from current agent version
92
+ * Warning message if the version the source runs differs from the current appliance version
93
93
  */
94
94
  agentVersionWarning?: string | null;
95
+ /**
96
+ * Whether the source's appliance can be updated in place with the served image; false means a new OVA must be deployed
97
+ */
98
+ applianceUpdateSupported?: boolean | null;
95
99
  /**
96
100
  * Indicates whether the inventory was updated automatically by an agent or manually by a user
97
101
  */
@@ -142,6 +146,7 @@ export function SourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): So
142
146
  'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
143
147
  'agentVersion': json['agentVersion'] === undefined ? undefined : json['agentVersion'] === null ? null : json['agentVersion'],
144
148
  'agentVersionWarning': json['agentVersionWarning'] === undefined ? undefined : json['agentVersionWarning'] === null ? null : json['agentVersionWarning'],
149
+ 'applianceUpdateSupported': json['applianceUpdateSupported'] === undefined ? undefined : json['applianceUpdateSupported'] === null ? null : json['applianceUpdateSupported'],
145
150
  'updateType': json['updateType'] == null ? undefined : json['updateType'],
146
151
  };
147
152
  }
@@ -168,6 +173,7 @@ export function SourceToJSONTyped(value?: Source | null, ignoreDiscriminator: bo
168
173
  'infra': SourceInfraToJSON(value['infra']),
169
174
  'agentVersion': value['agentVersion'],
170
175
  'agentVersionWarning': value['agentVersionWarning'],
176
+ 'applianceUpdateSupported': value['applianceUpdateSupported'],
171
177
  'updateType': value['updateType'],
172
178
  };
173
179
  }
@@ -0,0 +1,81 @@
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
+ * Authoritative source VASA array identity associated with this datastore; distinct from LUN inquiry metadata and storage-container identity
18
+ * @export
19
+ * @interface StorageArray
20
+ */
21
+ export interface StorageArray {
22
+ /**
23
+ * Array UUID reported by the source, when available
24
+ */
25
+ uuid?: string;
26
+ /**
27
+ *
28
+ */
29
+ name?: string;
30
+ /**
31
+ * VASA vendor ID, not a SCSI inquiry vendor
32
+ */
33
+ vendorId?: string;
34
+ /**
35
+ * VASA model ID, not a SCSI inquiry model
36
+ */
37
+ modelId?: string;
38
+ }
39
+
40
+ /**
41
+ * Check if a given object implements the StorageArray interface.
42
+ */
43
+ export function instanceOfStorageArray(value: object): value is StorageArray {
44
+ return true;
45
+ }
46
+
47
+ export function StorageArrayFromJSON(json: any): StorageArray {
48
+ return StorageArrayFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function StorageArrayFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageArray {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'uuid': json['uuid'] == null ? undefined : json['uuid'],
58
+ 'name': json['name'] == null ? undefined : json['name'],
59
+ 'vendorId': json['vendorId'] == null ? undefined : json['vendorId'],
60
+ 'modelId': json['modelId'] == null ? undefined : json['modelId'],
61
+ };
62
+ }
63
+
64
+ export function StorageArrayToJSON(json: any): StorageArray {
65
+ return StorageArrayToJSONTyped(json, false);
66
+ }
67
+
68
+ export function StorageArrayToJSONTyped(value?: StorageArray | null, ignoreDiscriminator: boolean = false): any {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+
73
+ return {
74
+
75
+ 'uuid': value['uuid'],
76
+ 'name': value['name'],
77
+ 'vendorId': value['vendorId'],
78
+ 'modelId': value['modelId'],
79
+ };
80
+ }
81
+
@@ -89,6 +89,7 @@ export * from './SourceUpdate.js';
89
89
  export * from './StandaloneClusterRequirementsRequest.js';
90
90
  export * from './StandaloneClusterRequirementsResponse.js';
91
91
  export * from './Status.js';
92
+ export * from './StorageArray.js';
92
93
  export * from './StorageIoConfiguration.js';
93
94
  export * from './SubResource.js';
94
95
  export * from './UpdateInventory.js';