@openshift-migration-advisor/planner-sdk 0.32.0-87bd7cc3be65 → 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.
Files changed (41) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +4 -2
  3. package/dist/apis/AssessmentApi.d.ts +15 -6
  4. package/dist/apis/AssessmentApi.js +9 -6
  5. package/dist/esm/apis/AssessmentApi.d.ts +15 -6
  6. package/dist/esm/apis/AssessmentApi.js +9 -6
  7. package/dist/esm/models/Datastore.d.ts +9 -0
  8. package/dist/esm/models/Datastore.js +5 -0
  9. package/dist/esm/models/Source.d.ts +6 -2
  10. package/dist/esm/models/Source.js +2 -0
  11. package/dist/esm/models/SourceType.d.ts +26 -0
  12. package/dist/esm/models/SourceType.js +44 -0
  13. package/dist/esm/models/StorageArray.d.ts +42 -0
  14. package/dist/esm/models/StorageArray.js +47 -0
  15. package/dist/esm/models/index.d.ts +2 -0
  16. package/dist/esm/models/index.js +2 -0
  17. package/dist/esm/runtime.js +4 -3
  18. package/dist/models/Datastore.d.ts +9 -0
  19. package/dist/models/Datastore.js +5 -0
  20. package/dist/models/Source.d.ts +6 -2
  21. package/dist/models/Source.js +2 -0
  22. package/dist/models/SourceType.d.ts +26 -0
  23. package/dist/models/SourceType.js +52 -0
  24. package/dist/models/StorageArray.d.ts +42 -0
  25. package/dist/models/StorageArray.js +54 -0
  26. package/dist/models/index.d.ts +2 -0
  27. package/dist/models/index.js +2 -0
  28. package/dist/runtime.js +4 -3
  29. package/docs/AssessmentApi.md +12 -3
  30. package/docs/Datastore.md +4 -0
  31. package/docs/Source.md +2 -0
  32. package/docs/SourceType.md +32 -0
  33. package/docs/StorageArray.md +41 -0
  34. package/package.json +1 -1
  35. package/src/apis/AssessmentApi.ts +26 -8
  36. package/src/models/Datastore.ts +19 -0
  37. package/src/models/Source.ts +8 -2
  38. package/src/models/SourceType.ts +54 -0
  39. package/src/models/StorageArray.ts +81 -0
  40. package/src/models/index.ts +2 -0
  41. package/src/runtime.ts +3 -3
@@ -95,10 +95,12 @@ docs/Source.md
95
95
  docs/SourceApi.md
96
96
  docs/SourceCreate.md
97
97
  docs/SourceInfra.md
98
+ docs/SourceType.md
98
99
  docs/SourceUpdate.md
99
100
  docs/StandaloneClusterRequirementsRequest.md
100
101
  docs/StandaloneClusterRequirementsResponse.md
101
102
  docs/Status.md
103
+ docs/StorageArray.md
102
104
  docs/StorageIoConfiguration.md
103
105
  docs/SubResource.md
104
106
  docs/UpdateInventory.md
@@ -205,10 +207,12 @@ src/models/Snapshot.ts
205
207
  src/models/Source.ts
206
208
  src/models/SourceCreate.ts
207
209
  src/models/SourceInfra.ts
210
+ src/models/SourceType.ts
208
211
  src/models/SourceUpdate.ts
209
212
  src/models/StandaloneClusterRequirementsRequest.ts
210
213
  src/models/StandaloneClusterRequirementsResponse.ts
211
214
  src/models/Status.ts
215
+ src/models/StorageArray.ts
212
216
  src/models/StorageIoConfiguration.ts
213
217
  src/models/SubResource.ts
214
218
  src/models/UpdateInventory.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/planner-sdk@0.32.0-87bd7cc3be65
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
 
@@ -194,10 +194,12 @@ All URIs are relative to *https://raw.githubusercontent.com*
194
194
  - [Source](docs/Source.md)
195
195
  - [SourceCreate](docs/SourceCreate.md)
196
196
  - [SourceInfra](docs/SourceInfra.md)
197
+ - [SourceType](docs/SourceType.md)
197
198
  - [SourceUpdate](docs/SourceUpdate.md)
198
199
  - [StandaloneClusterRequirementsRequest](docs/StandaloneClusterRequirementsRequest.md)
199
200
  - [StandaloneClusterRequirementsResponse](docs/StandaloneClusterRequirementsResponse.md)
200
201
  - [Status](docs/Status.md)
202
+ - [StorageArray](docs/StorageArray.md)
201
203
  - [StorageIoConfiguration](docs/StorageIoConfiguration.md)
202
204
  - [SubResource](docs/SubResource.md)
203
205
  - [UpdateInventory](docs/UpdateInventory.md)
@@ -221,7 +223,7 @@ and is automatically generated by the
221
223
  [OpenAPI Generator](https://openapi-generator.tech) project:
222
224
 
223
225
  - API version: `v1alpha1`
224
- - Package version: `0.32.0-87bd7cc3be65`
226
+ - Package version: `0.32.0-d0c6361703a9`
225
227
  - Generator version: `7.28.0-SNAPSHOT`
226
228
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
227
229
 
@@ -26,6 +26,7 @@ import { type MigrationComplexityResponse } from '../models/MigrationComplexityR
26
26
  import { type MigrationEstimationByComplexityResponse } from '../models/MigrationEstimationByComplexityResponse.js';
27
27
  import { type MigrationEstimationRequest } from '../models/MigrationEstimationRequest.js';
28
28
  import { type MigrationEstimationResponse } from '../models/MigrationEstimationResponse.js';
29
+ import { type SourceType } from '../models/SourceType.js';
29
30
  import { type Status } from '../models/Status.js';
30
31
  export interface CalculateAssessmentClusterRequirementsRequest {
31
32
  /**
@@ -141,6 +142,12 @@ export interface GetVcenterClusterRequest {
141
142
  */
142
143
  cid: string;
143
144
  }
145
+ export interface ListAssessmentsV2Request {
146
+ /**
147
+ * Filter assessments by their source type
148
+ */
149
+ sourceType?: SourceType;
150
+ }
144
151
  export interface SaveAssessmentEnhancementDataRequest {
145
152
  /**
146
153
  * ID of the assessment
@@ -474,21 +481,23 @@ export interface AssessmentApiInterface {
474
481
  listAssessments(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Assessment>>;
475
482
  /**
476
483
  * Creates request options for listAssessmentsV2 without sending the request
484
+ * @param {SourceType} [sourceType] Filter assessments by their source type
477
485
  * @throws {RequiredError}
478
486
  * @memberof AssessmentApiInterface
479
487
  */
480
- listAssessmentsV2RequestOpts(): Promise<runtime.RequestOpts>;
488
+ listAssessmentsV2RequestOpts(requestParameters: ListAssessmentsV2Request): Promise<runtime.RequestOpts>;
481
489
  /**
482
490
  * List assessments
491
+ * @param {SourceType} [sourceType] Filter assessments by their source type
483
492
  * @param {*} [options] Override http request option.
484
493
  * @throws {RequiredError}
485
494
  * @memberof AssessmentApiInterface
486
495
  */
487
- listAssessmentsV2Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
496
+ listAssessmentsV2Raw(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
488
497
  /**
489
498
  * List assessments
490
499
  */
491
- listAssessmentsV2(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
500
+ listAssessmentsV2(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
492
501
  /**
493
502
  * Creates request options for saveAssessmentEnhancementData without sending the request
494
503
  * @param {string} id ID of the assessment
@@ -766,15 +775,15 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
766
775
  /**
767
776
  * Creates request options for listAssessmentsV2 without sending the request
768
777
  */
769
- listAssessmentsV2RequestOpts(): Promise<runtime.RequestOpts>;
778
+ listAssessmentsV2RequestOpts(requestParameters: ListAssessmentsV2Request): Promise<runtime.RequestOpts>;
770
779
  /**
771
780
  * List assessments
772
781
  */
773
- listAssessmentsV2Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
782
+ listAssessmentsV2Raw(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
774
783
  /**
775
784
  * List assessments
776
785
  */
777
- listAssessmentsV2(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
786
+ listAssessmentsV2(requestParameters?: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
778
787
  /**
779
788
  * Creates request options for saveAssessmentEnhancementData without sending the request
780
789
  */
@@ -632,9 +632,12 @@ class AssessmentApi extends runtime.BaseAPI {
632
632
  /**
633
633
  * Creates request options for listAssessmentsV2 without sending the request
634
634
  */
635
- listAssessmentsV2RequestOpts() {
635
+ listAssessmentsV2RequestOpts(requestParameters) {
636
636
  return __awaiter(this, void 0, void 0, function* () {
637
637
  const queryParameters = {};
638
+ if (requestParameters['sourceType'] != null) {
639
+ queryParameters['sourceType'] = requestParameters['sourceType'];
640
+ }
638
641
  const headerParameters = {};
639
642
  let urlPath = `/api/v2/assessments`;
640
643
  return {
@@ -648,9 +651,9 @@ class AssessmentApi extends runtime.BaseAPI {
648
651
  /**
649
652
  * List assessments
650
653
  */
651
- listAssessmentsV2Raw(initOverrides) {
654
+ listAssessmentsV2Raw(requestParameters, initOverrides) {
652
655
  return __awaiter(this, void 0, void 0, function* () {
653
- const requestOptions = yield this.listAssessmentsV2RequestOpts();
656
+ const requestOptions = yield this.listAssessmentsV2RequestOpts(requestParameters);
654
657
  const response = yield this.request(requestOptions, initOverrides);
655
658
  return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AssessmentV2Summary_js_1.AssessmentV2SummaryFromJSON));
656
659
  });
@@ -658,9 +661,9 @@ class AssessmentApi extends runtime.BaseAPI {
658
661
  /**
659
662
  * List assessments
660
663
  */
661
- listAssessmentsV2(initOverrides) {
662
- return __awaiter(this, void 0, void 0, function* () {
663
- const response = yield this.listAssessmentsV2Raw(initOverrides);
664
+ listAssessmentsV2() {
665
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
666
+ const response = yield this.listAssessmentsV2Raw(requestParameters, initOverrides);
664
667
  return yield response.value();
665
668
  });
666
669
  }
@@ -26,6 +26,7 @@ import { type MigrationComplexityResponse } from '../models/MigrationComplexityR
26
26
  import { type MigrationEstimationByComplexityResponse } from '../models/MigrationEstimationByComplexityResponse.js';
27
27
  import { type MigrationEstimationRequest } from '../models/MigrationEstimationRequest.js';
28
28
  import { type MigrationEstimationResponse } from '../models/MigrationEstimationResponse.js';
29
+ import { type SourceType } from '../models/SourceType.js';
29
30
  import { type Status } from '../models/Status.js';
30
31
  export interface CalculateAssessmentClusterRequirementsRequest {
31
32
  /**
@@ -141,6 +142,12 @@ export interface GetVcenterClusterRequest {
141
142
  */
142
143
  cid: string;
143
144
  }
145
+ export interface ListAssessmentsV2Request {
146
+ /**
147
+ * Filter assessments by their source type
148
+ */
149
+ sourceType?: SourceType;
150
+ }
144
151
  export interface SaveAssessmentEnhancementDataRequest {
145
152
  /**
146
153
  * ID of the assessment
@@ -474,21 +481,23 @@ export interface AssessmentApiInterface {
474
481
  listAssessments(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Assessment>>;
475
482
  /**
476
483
  * Creates request options for listAssessmentsV2 without sending the request
484
+ * @param {SourceType} [sourceType] Filter assessments by their source type
477
485
  * @throws {RequiredError}
478
486
  * @memberof AssessmentApiInterface
479
487
  */
480
- listAssessmentsV2RequestOpts(): Promise<runtime.RequestOpts>;
488
+ listAssessmentsV2RequestOpts(requestParameters: ListAssessmentsV2Request): Promise<runtime.RequestOpts>;
481
489
  /**
482
490
  * List assessments
491
+ * @param {SourceType} [sourceType] Filter assessments by their source type
483
492
  * @param {*} [options] Override http request option.
484
493
  * @throws {RequiredError}
485
494
  * @memberof AssessmentApiInterface
486
495
  */
487
- listAssessmentsV2Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
496
+ listAssessmentsV2Raw(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
488
497
  /**
489
498
  * List assessments
490
499
  */
491
- listAssessmentsV2(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
500
+ listAssessmentsV2(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
492
501
  /**
493
502
  * Creates request options for saveAssessmentEnhancementData without sending the request
494
503
  * @param {string} id ID of the assessment
@@ -766,15 +775,15 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
766
775
  /**
767
776
  * Creates request options for listAssessmentsV2 without sending the request
768
777
  */
769
- listAssessmentsV2RequestOpts(): Promise<runtime.RequestOpts>;
778
+ listAssessmentsV2RequestOpts(requestParameters: ListAssessmentsV2Request): Promise<runtime.RequestOpts>;
770
779
  /**
771
780
  * List assessments
772
781
  */
773
- listAssessmentsV2Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
782
+ listAssessmentsV2Raw(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
774
783
  /**
775
784
  * List assessments
776
785
  */
777
- listAssessmentsV2(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
786
+ listAssessmentsV2(requestParameters?: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
778
787
  /**
779
788
  * Creates request options for saveAssessmentEnhancementData without sending the request
780
789
  */
@@ -629,9 +629,12 @@ export class AssessmentApi extends runtime.BaseAPI {
629
629
  /**
630
630
  * Creates request options for listAssessmentsV2 without sending the request
631
631
  */
632
- listAssessmentsV2RequestOpts() {
632
+ listAssessmentsV2RequestOpts(requestParameters) {
633
633
  return __awaiter(this, void 0, void 0, function* () {
634
634
  const queryParameters = {};
635
+ if (requestParameters['sourceType'] != null) {
636
+ queryParameters['sourceType'] = requestParameters['sourceType'];
637
+ }
635
638
  const headerParameters = {};
636
639
  let urlPath = `/api/v2/assessments`;
637
640
  return {
@@ -645,9 +648,9 @@ export class AssessmentApi extends runtime.BaseAPI {
645
648
  /**
646
649
  * List assessments
647
650
  */
648
- listAssessmentsV2Raw(initOverrides) {
651
+ listAssessmentsV2Raw(requestParameters, initOverrides) {
649
652
  return __awaiter(this, void 0, void 0, function* () {
650
- const requestOptions = yield this.listAssessmentsV2RequestOpts();
653
+ const requestOptions = yield this.listAssessmentsV2RequestOpts(requestParameters);
651
654
  const response = yield this.request(requestOptions, initOverrides);
652
655
  return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AssessmentV2SummaryFromJSON));
653
656
  });
@@ -655,9 +658,9 @@ export class AssessmentApi extends runtime.BaseAPI {
655
658
  /**
656
659
  * List assessments
657
660
  */
658
- listAssessmentsV2(initOverrides) {
659
- return __awaiter(this, void 0, void 0, function* () {
660
- const response = yield this.listAssessmentsV2Raw(initOverrides);
661
+ listAssessmentsV2() {
662
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
663
+ const response = yield this.listAssessmentsV2Raw(requestParameters, initOverrides);
661
664
  return yield response.value();
662
665
  });
663
666
  }
@@ -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,26 @@
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
+ */
16
+ export declare const SourceType: {
17
+ readonly Inventory: "inventory";
18
+ readonly Rvtools: "rvtools";
19
+ readonly Source: "source";
20
+ };
21
+ export type SourceType = typeof SourceType[keyof typeof SourceType];
22
+ export declare function instanceOfSourceType(value: any): boolean;
23
+ export declare function SourceTypeFromJSON(json: any): SourceType;
24
+ export declare function SourceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceType;
25
+ export declare function SourceTypeToJSON(value?: SourceType | null): any;
26
+ export declare function SourceTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SourceType;
@@ -0,0 +1,44 @@
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
+ *
16
+ * @export
17
+ */
18
+ export const SourceType = {
19
+ Inventory: 'inventory',
20
+ Rvtools: 'rvtools',
21
+ Source: 'source',
22
+ };
23
+ export function instanceOfSourceType(value) {
24
+ for (const key in SourceType) {
25
+ if (Object.prototype.hasOwnProperty.call(SourceType, key)) {
26
+ if (SourceType[key] === value) {
27
+ return true;
28
+ }
29
+ }
30
+ }
31
+ return false;
32
+ }
33
+ export function SourceTypeFromJSON(json) {
34
+ return SourceTypeFromJSONTyped(json, false);
35
+ }
36
+ export function SourceTypeFromJSONTyped(json, ignoreDiscriminator) {
37
+ return json;
38
+ }
39
+ export function SourceTypeToJSON(value) {
40
+ return value;
41
+ }
42
+ export function SourceTypeToJSONTyped(value, ignoreDiscriminator) {
43
+ return value;
44
+ }
@@ -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
+ }
@@ -82,10 +82,12 @@ export * from './Snapshot.js';
82
82
  export * from './Source.js';
83
83
  export * from './SourceCreate.js';
84
84
  export * from './SourceInfra.js';
85
+ export * from './SourceType.js';
85
86
  export * from './SourceUpdate.js';
86
87
  export * from './StandaloneClusterRequirementsRequest.js';
87
88
  export * from './StandaloneClusterRequirementsResponse.js';
88
89
  export * from './Status.js';
90
+ export * from './StorageArray.js';
89
91
  export * from './StorageIoConfiguration.js';
90
92
  export * from './SubResource.js';
91
93
  export * from './UpdateInventory.js';
@@ -84,10 +84,12 @@ export * from './Snapshot.js';
84
84
  export * from './Source.js';
85
85
  export * from './SourceCreate.js';
86
86
  export * from './SourceInfra.js';
87
+ export * from './SourceType.js';
87
88
  export * from './SourceUpdate.js';
88
89
  export * from './StandaloneClusterRequirementsRequest.js';
89
90
  export * from './StandaloneClusterRequirementsResponse.js';
90
91
  export * from './Status.js';
92
+ export * from './StorageArray.js';
91
93
  export * from './StorageIoConfiguration.js';
92
94
  export * from './SubResource.js';
93
95
  export * from './UpdateInventory.js';
@@ -419,7 +419,7 @@ export function parseContentDispositionFilename(headers) {
419
419
  function decodeExtValue(value) {
420
420
  const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
421
421
  try {
422
- return match ? decodeURIComponent(match[1]) : undefined;
422
+ return (match === null || match === void 0 ? void 0 : match[1]) !== undefined ? decodeURIComponent(match[1]) : undefined;
423
423
  }
424
424
  catch (_a) {
425
425
  return undefined;
@@ -431,13 +431,14 @@ function decodeExtValue(value) {
431
431
  * backslash escapes resolved, and the first occurrence of a name wins.
432
432
  */
433
433
  function parseHeaderParameters(value) {
434
+ var _a, _b;
434
435
  const params = new Map();
435
436
  const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
436
437
  let match;
437
438
  while ((match = parameter.exec(value)) !== null) {
438
- const name = match[1].toLowerCase();
439
+ const name = ((_a = match[1]) !== null && _a !== void 0 ? _a : '').toLowerCase();
439
440
  if (!params.has(name)) {
440
- params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
441
+ params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : ((_b = match[3]) !== null && _b !== void 0 ? _b : '').trim());
441
442
  }
442
443
  }
443
444
  return params;
@@ -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
  */