@openshift-migration-advisor/planner-sdk 0.32.0-050497adaf7f → 0.32.0-83e8d01d3484
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -0
- package/README.md +3 -2
- package/dist/apis/AssessmentApi.d.ts +15 -6
- package/dist/apis/AssessmentApi.js +9 -6
- package/dist/esm/apis/AssessmentApi.d.ts +15 -6
- package/dist/esm/apis/AssessmentApi.js +9 -6
- package/dist/esm/models/Info.d.ts +4 -0
- package/dist/esm/models/Info.js +2 -0
- package/dist/esm/models/SourceType.d.ts +26 -0
- package/dist/esm/models/SourceType.js +44 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/runtime.js +4 -3
- package/dist/models/Info.d.ts +4 -0
- package/dist/models/Info.js +2 -0
- package/dist/models/SourceType.d.ts +26 -0
- package/dist/models/SourceType.js +52 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/runtime.js +4 -3
- package/docs/AssessmentApi.md +12 -3
- package/docs/Info.md +2 -0
- package/docs/SourceType.md +32 -0
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +26 -8
- package/src/models/Info.ts +6 -0
- package/src/models/SourceType.ts +54 -0
- package/src/models/index.ts +1 -0
- package/src/runtime.ts +3 -3
package/.openapi-generator/FILES
CHANGED
|
@@ -95,6 +95,7 @@ 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
|
|
@@ -205,6 +206,7 @@ src/models/Snapshot.ts
|
|
|
205
206
|
src/models/Source.ts
|
|
206
207
|
src/models/SourceCreate.ts
|
|
207
208
|
src/models/SourceInfra.ts
|
|
209
|
+
src/models/SourceType.ts
|
|
208
210
|
src/models/SourceUpdate.ts
|
|
209
211
|
src/models/StandaloneClusterRequirementsRequest.ts
|
|
210
212
|
src/models/StandaloneClusterRequirementsResponse.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.32.0-
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.32.0-83e8d01d3484
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -194,6 +194,7 @@ 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)
|
|
@@ -221,7 +222,7 @@ and is automatically generated by the
|
|
|
221
222
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
222
223
|
|
|
223
224
|
- API version: `v1alpha1`
|
|
224
|
-
- Package version: `0.32.0-
|
|
225
|
+
- Package version: `0.32.0-83e8d01d3484`
|
|
225
226
|
- Generator version: `7.28.0-SNAPSHOT`
|
|
226
227
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
227
228
|
|
|
@@ -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(
|
|
662
|
-
return __awaiter(this,
|
|
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(
|
|
659
|
-
return __awaiter(this,
|
|
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
|
}
|
|
@@ -31,6 +31,10 @@ export interface Info {
|
|
|
31
31
|
* Agent version name, based on git tag
|
|
32
32
|
*/
|
|
33
33
|
agentVersionName?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* The oldest appliance version the served image supports in-place updates from; empty when no minimum is set
|
|
36
|
+
*/
|
|
37
|
+
minApplianceVersion?: string | null;
|
|
34
38
|
}
|
|
35
39
|
/**
|
|
36
40
|
* Check if a given object implements the Info interface.
|
package/dist/esm/models/Info.js
CHANGED
|
@@ -33,6 +33,7 @@ export function InfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
'versionName': json['versionName'],
|
|
34
34
|
'agentGitCommit': json['agentGitCommit'] === undefined ? undefined : json['agentGitCommit'] === null ? null : json['agentGitCommit'],
|
|
35
35
|
'agentVersionName': json['agentVersionName'] === undefined ? undefined : json['agentVersionName'] === null ? null : json['agentVersionName'],
|
|
36
|
+
'minApplianceVersion': json['minApplianceVersion'] === undefined ? undefined : json['minApplianceVersion'] === null ? null : json['minApplianceVersion'],
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
export function InfoToJSON(json) {
|
|
@@ -47,5 +48,6 @@ export function InfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
47
48
|
'versionName': value['versionName'],
|
|
48
49
|
'agentGitCommit': value['agentGitCommit'],
|
|
49
50
|
'agentVersionName': value['agentVersionName'],
|
|
51
|
+
'minApplianceVersion': value['minApplianceVersion'],
|
|
50
52
|
};
|
|
51
53
|
}
|
|
@@ -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
|
+
}
|
|
@@ -82,6 +82,7 @@ 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';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -84,6 +84,7 @@ 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';
|
package/dist/esm/runtime.js
CHANGED
|
@@ -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;
|
package/dist/models/Info.d.ts
CHANGED
|
@@ -31,6 +31,10 @@ export interface Info {
|
|
|
31
31
|
* Agent version name, based on git tag
|
|
32
32
|
*/
|
|
33
33
|
agentVersionName?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* The oldest appliance version the served image supports in-place updates from; empty when no minimum is set
|
|
36
|
+
*/
|
|
37
|
+
minApplianceVersion?: string | null;
|
|
34
38
|
}
|
|
35
39
|
/**
|
|
36
40
|
* Check if a given object implements the Info interface.
|
package/dist/models/Info.js
CHANGED
|
@@ -40,6 +40,7 @@ function InfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
'versionName': json['versionName'],
|
|
41
41
|
'agentGitCommit': json['agentGitCommit'] === undefined ? undefined : json['agentGitCommit'] === null ? null : json['agentGitCommit'],
|
|
42
42
|
'agentVersionName': json['agentVersionName'] === undefined ? undefined : json['agentVersionName'] === null ? null : json['agentVersionName'],
|
|
43
|
+
'minApplianceVersion': json['minApplianceVersion'] === undefined ? undefined : json['minApplianceVersion'] === null ? null : json['minApplianceVersion'],
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
function InfoToJSON(json) {
|
|
@@ -54,5 +55,6 @@ function InfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
54
55
|
'versionName': value['versionName'],
|
|
55
56
|
'agentGitCommit': value['agentGitCommit'],
|
|
56
57
|
'agentVersionName': value['agentVersionName'],
|
|
58
|
+
'minApplianceVersion': value['minApplianceVersion'],
|
|
57
59
|
};
|
|
58
60
|
}
|
|
@@ -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,52 @@
|
|
|
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.SourceType = void 0;
|
|
17
|
+
exports.instanceOfSourceType = instanceOfSourceType;
|
|
18
|
+
exports.SourceTypeFromJSON = SourceTypeFromJSON;
|
|
19
|
+
exports.SourceTypeFromJSONTyped = SourceTypeFromJSONTyped;
|
|
20
|
+
exports.SourceTypeToJSON = SourceTypeToJSON;
|
|
21
|
+
exports.SourceTypeToJSONTyped = SourceTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.SourceType = {
|
|
27
|
+
Inventory: 'inventory',
|
|
28
|
+
Rvtools: 'rvtools',
|
|
29
|
+
Source: 'source',
|
|
30
|
+
};
|
|
31
|
+
function instanceOfSourceType(value) {
|
|
32
|
+
for (const key in exports.SourceType) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.SourceType, key)) {
|
|
34
|
+
if (exports.SourceType[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function SourceTypeFromJSON(json) {
|
|
42
|
+
return SourceTypeFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function SourceTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function SourceTypeToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function SourceTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -82,6 +82,7 @@ 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';
|
package/dist/models/index.js
CHANGED
|
@@ -100,6 +100,7 @@ __exportStar(require("./Snapshot.js"), exports);
|
|
|
100
100
|
__exportStar(require("./Source.js"), exports);
|
|
101
101
|
__exportStar(require("./SourceCreate.js"), exports);
|
|
102
102
|
__exportStar(require("./SourceInfra.js"), exports);
|
|
103
|
+
__exportStar(require("./SourceType.js"), exports);
|
|
103
104
|
__exportStar(require("./SourceUpdate.js"), exports);
|
|
104
105
|
__exportStar(require("./StandaloneClusterRequirementsRequest.js"), exports);
|
|
105
106
|
__exportStar(require("./StandaloneClusterRequirementsResponse.js"), exports);
|
package/dist/runtime.js
CHANGED
|
@@ -440,7 +440,7 @@ function parseContentDispositionFilename(headers) {
|
|
|
440
440
|
function decodeExtValue(value) {
|
|
441
441
|
const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
|
|
442
442
|
try {
|
|
443
|
-
return match ? decodeURIComponent(match[1]) : undefined;
|
|
443
|
+
return (match === null || match === void 0 ? void 0 : match[1]) !== undefined ? decodeURIComponent(match[1]) : undefined;
|
|
444
444
|
}
|
|
445
445
|
catch (_a) {
|
|
446
446
|
return undefined;
|
|
@@ -452,13 +452,14 @@ function decodeExtValue(value) {
|
|
|
452
452
|
* backslash escapes resolved, and the first occurrence of a name wins.
|
|
453
453
|
*/
|
|
454
454
|
function parseHeaderParameters(value) {
|
|
455
|
+
var _a, _b;
|
|
455
456
|
const params = new Map();
|
|
456
457
|
const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
|
|
457
458
|
let match;
|
|
458
459
|
while ((match = parameter.exec(value)) !== null) {
|
|
459
|
-
const name = match[1].toLowerCase();
|
|
460
|
+
const name = ((_a = match[1]) !== null && _a !== void 0 ? _a : '').toLowerCase();
|
|
460
461
|
if (!params.has(name)) {
|
|
461
|
-
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
|
|
462
|
+
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : ((_b = match[3]) !== null && _b !== void 0 ? _b : '').trim());
|
|
462
463
|
}
|
|
463
464
|
}
|
|
464
465
|
return params;
|
package/docs/AssessmentApi.md
CHANGED
|
@@ -1047,7 +1047,7 @@ No authorization required
|
|
|
1047
1047
|
|
|
1048
1048
|
## listAssessmentsV2
|
|
1049
1049
|
|
|
1050
|
-
> Array<AssessmentV2Summary> listAssessmentsV2()
|
|
1050
|
+
> Array<AssessmentV2Summary> listAssessmentsV2(sourceType)
|
|
1051
1051
|
|
|
1052
1052
|
|
|
1053
1053
|
|
|
@@ -1066,8 +1066,13 @@ async function example() {
|
|
|
1066
1066
|
console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
|
|
1067
1067
|
const api = new AssessmentApi();
|
|
1068
1068
|
|
|
1069
|
+
const body = {
|
|
1070
|
+
// SourceType | Filter assessments by their source type (optional)
|
|
1071
|
+
sourceType: ...,
|
|
1072
|
+
} satisfies ListAssessmentsV2Request;
|
|
1073
|
+
|
|
1069
1074
|
try {
|
|
1070
|
-
const data = await api.listAssessmentsV2();
|
|
1075
|
+
const data = await api.listAssessmentsV2(body);
|
|
1071
1076
|
console.log(data);
|
|
1072
1077
|
} catch (error) {
|
|
1073
1078
|
console.error(error);
|
|
@@ -1080,7 +1085,10 @@ example().catch(console.error);
|
|
|
1080
1085
|
|
|
1081
1086
|
### Parameters
|
|
1082
1087
|
|
|
1083
|
-
|
|
1088
|
+
|
|
1089
|
+
| Name | Type | Description | Notes |
|
|
1090
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1091
|
+
| **sourceType** | `SourceType` | Filter assessments by their source type | [Optional] [Defaults to `undefined`] [Enum: inventory, rvtools, source] |
|
|
1084
1092
|
|
|
1085
1093
|
### Return type
|
|
1086
1094
|
|
|
@@ -1100,6 +1108,7 @@ No authorization required
|
|
|
1100
1108
|
| Status code | Description | Response headers |
|
|
1101
1109
|
|-------------|-------------|------------------|
|
|
1102
1110
|
| **200** | OK | - |
|
|
1111
|
+
| **400** | Bad Request | - |
|
|
1103
1112
|
| **401** | Unauthorized | - |
|
|
1104
1113
|
| **500** | Internal error | - |
|
|
1105
1114
|
|
package/docs/Info.md
CHANGED
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`versionName` | string
|
|
12
12
|
`agentGitCommit` | string
|
|
13
13
|
`agentVersionName` | string
|
|
14
|
+
`minApplianceVersion` | string
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -23,6 +24,7 @@ const example = {
|
|
|
23
24
|
"versionName": 0.1.4-40-gc5a1661,
|
|
24
25
|
"agentGitCommit": c5a1661465a25b17ceeeb77d1ec40deb57d8da44,
|
|
25
26
|
"agentVersionName": 0.1.4-40-gc5a1661,
|
|
27
|
+
"minApplianceVersion": null,
|
|
26
28
|
} satisfies Info
|
|
27
29
|
|
|
28
30
|
console.log(example)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# SourceType
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { SourceType } from '@openshift-migration-advisor/planner-sdk'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies SourceType
|
|
18
|
+
|
|
19
|
+
console.log(example)
|
|
20
|
+
|
|
21
|
+
// Convert the instance to a JSON string
|
|
22
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
+
console.log(exampleJSON)
|
|
24
|
+
|
|
25
|
+
// Parse the JSON string back to an object
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as SourceType
|
|
27
|
+
console.log(exampleParsed)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|
package/package.json
CHANGED
|
@@ -93,6 +93,11 @@ import {
|
|
|
93
93
|
MigrationEstimationResponseFromJSON,
|
|
94
94
|
MigrationEstimationResponseToJSON,
|
|
95
95
|
} from '../models/MigrationEstimationResponse.js';
|
|
96
|
+
import {
|
|
97
|
+
type SourceType,
|
|
98
|
+
SourceTypeFromJSON,
|
|
99
|
+
SourceTypeToJSON,
|
|
100
|
+
} from '../models/SourceType.js';
|
|
96
101
|
import {
|
|
97
102
|
type Status,
|
|
98
103
|
StatusFromJSON,
|
|
@@ -226,6 +231,13 @@ export interface GetVcenterClusterRequest {
|
|
|
226
231
|
cid: string;
|
|
227
232
|
}
|
|
228
233
|
|
|
234
|
+
export interface ListAssessmentsV2Request {
|
|
235
|
+
/**
|
|
236
|
+
* Filter assessments by their source type
|
|
237
|
+
*/
|
|
238
|
+
sourceType?: SourceType;
|
|
239
|
+
}
|
|
240
|
+
|
|
229
241
|
export interface SaveAssessmentEnhancementDataRequest {
|
|
230
242
|
/**
|
|
231
243
|
* ID of the assessment
|
|
@@ -606,23 +618,25 @@ export interface AssessmentApiInterface {
|
|
|
606
618
|
|
|
607
619
|
/**
|
|
608
620
|
* Creates request options for listAssessmentsV2 without sending the request
|
|
621
|
+
* @param {SourceType} [sourceType] Filter assessments by their source type
|
|
609
622
|
* @throws {RequiredError}
|
|
610
623
|
* @memberof AssessmentApiInterface
|
|
611
624
|
*/
|
|
612
|
-
listAssessmentsV2RequestOpts(): Promise<runtime.RequestOpts>;
|
|
625
|
+
listAssessmentsV2RequestOpts(requestParameters: ListAssessmentsV2Request): Promise<runtime.RequestOpts>;
|
|
613
626
|
|
|
614
627
|
/**
|
|
615
628
|
* List assessments
|
|
629
|
+
* @param {SourceType} [sourceType] Filter assessments by their source type
|
|
616
630
|
* @param {*} [options] Override http request option.
|
|
617
631
|
* @throws {RequiredError}
|
|
618
632
|
* @memberof AssessmentApiInterface
|
|
619
633
|
*/
|
|
620
|
-
listAssessmentsV2Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
|
|
634
|
+
listAssessmentsV2Raw(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
|
|
621
635
|
|
|
622
636
|
/**
|
|
623
637
|
* List assessments
|
|
624
638
|
*/
|
|
625
|
-
listAssessmentsV2(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
|
|
639
|
+
listAssessmentsV2(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
|
|
626
640
|
|
|
627
641
|
/**
|
|
628
642
|
* Creates request options for saveAssessmentEnhancementData without sending the request
|
|
@@ -1456,9 +1470,13 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
1456
1470
|
/**
|
|
1457
1471
|
* Creates request options for listAssessmentsV2 without sending the request
|
|
1458
1472
|
*/
|
|
1459
|
-
async listAssessmentsV2RequestOpts(): Promise<runtime.RequestOpts> {
|
|
1473
|
+
async listAssessmentsV2RequestOpts(requestParameters: ListAssessmentsV2Request): Promise<runtime.RequestOpts> {
|
|
1460
1474
|
const queryParameters: any = {};
|
|
1461
1475
|
|
|
1476
|
+
if (requestParameters['sourceType'] != null) {
|
|
1477
|
+
queryParameters['sourceType'] = requestParameters['sourceType'];
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1462
1480
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1463
1481
|
|
|
1464
1482
|
|
|
@@ -1475,8 +1493,8 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
1475
1493
|
/**
|
|
1476
1494
|
* List assessments
|
|
1477
1495
|
*/
|
|
1478
|
-
async listAssessmentsV2Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>> {
|
|
1479
|
-
const requestOptions = await this.listAssessmentsV2RequestOpts();
|
|
1496
|
+
async listAssessmentsV2Raw(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>> {
|
|
1497
|
+
const requestOptions = await this.listAssessmentsV2RequestOpts(requestParameters);
|
|
1480
1498
|
const response = await this.request(requestOptions, initOverrides);
|
|
1481
1499
|
|
|
1482
1500
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AssessmentV2SummaryFromJSON));
|
|
@@ -1485,8 +1503,8 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
1485
1503
|
/**
|
|
1486
1504
|
* List assessments
|
|
1487
1505
|
*/
|
|
1488
|
-
async listAssessmentsV2(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>> {
|
|
1489
|
-
const response = await this.listAssessmentsV2Raw(initOverrides);
|
|
1506
|
+
async listAssessmentsV2(requestParameters: ListAssessmentsV2Request = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>> {
|
|
1507
|
+
const response = await this.listAssessmentsV2Raw(requestParameters, initOverrides);
|
|
1490
1508
|
return await response.value();
|
|
1491
1509
|
}
|
|
1492
1510
|
|
package/src/models/Info.ts
CHANGED
|
@@ -35,6 +35,10 @@ export interface Info {
|
|
|
35
35
|
* Agent version name, based on git tag
|
|
36
36
|
*/
|
|
37
37
|
agentVersionName?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* The oldest appliance version the served image supports in-place updates from; empty when no minimum is set
|
|
40
|
+
*/
|
|
41
|
+
minApplianceVersion?: string | null;
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
/**
|
|
@@ -60,6 +64,7 @@ export function InfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Info
|
|
|
60
64
|
'versionName': json['versionName'],
|
|
61
65
|
'agentGitCommit': json['agentGitCommit'] === undefined ? undefined : json['agentGitCommit'] === null ? null : json['agentGitCommit'],
|
|
62
66
|
'agentVersionName': json['agentVersionName'] === undefined ? undefined : json['agentVersionName'] === null ? null : json['agentVersionName'],
|
|
67
|
+
'minApplianceVersion': json['minApplianceVersion'] === undefined ? undefined : json['minApplianceVersion'] === null ? null : json['minApplianceVersion'],
|
|
63
68
|
};
|
|
64
69
|
}
|
|
65
70
|
|
|
@@ -78,6 +83,7 @@ export function InfoToJSONTyped(value?: Info | null, ignoreDiscriminator: boolea
|
|
|
78
83
|
'versionName': value['versionName'],
|
|
79
84
|
'agentGitCommit': value['agentGitCommit'],
|
|
80
85
|
'agentVersionName': value['agentVersionName'],
|
|
86
|
+
'minApplianceVersion': value['minApplianceVersion'],
|
|
81
87
|
};
|
|
82
88
|
}
|
|
83
89
|
|
|
@@ -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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const SourceType = {
|
|
21
|
+
Inventory: 'inventory',
|
|
22
|
+
Rvtools: 'rvtools',
|
|
23
|
+
Source: 'source',
|
|
24
|
+
} as const;
|
|
25
|
+
export type SourceType = typeof SourceType[keyof typeof SourceType];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfSourceType(value: any): boolean {
|
|
29
|
+
for (const key in SourceType) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(SourceType, key)) {
|
|
31
|
+
if (SourceType[key as keyof typeof SourceType] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function SourceTypeFromJSON(json: any): SourceType {
|
|
40
|
+
return SourceTypeFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function SourceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceType {
|
|
44
|
+
return json as SourceType;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function SourceTypeToJSON(value?: SourceType | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function SourceTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SourceType {
|
|
52
|
+
return value as SourceType;
|
|
53
|
+
}
|
|
54
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -84,6 +84,7 @@ 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';
|
package/src/runtime.ts
CHANGED
|
@@ -533,7 +533,7 @@ export function parseContentDispositionFilename(headers: Headers): string | unde
|
|
|
533
533
|
function decodeExtValue(value: string | undefined): string | undefined {
|
|
534
534
|
const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
|
|
535
535
|
try {
|
|
536
|
-
return match ? decodeURIComponent(match[1]) : undefined;
|
|
536
|
+
return match?.[1] !== undefined ? decodeURIComponent(match[1]) : undefined;
|
|
537
537
|
} catch {
|
|
538
538
|
return undefined;
|
|
539
539
|
}
|
|
@@ -549,9 +549,9 @@ function parseHeaderParameters(value: string): Map<string, string> {
|
|
|
549
549
|
const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
|
|
550
550
|
let match: RegExpExecArray | null;
|
|
551
551
|
while ((match = parameter.exec(value)) !== null) {
|
|
552
|
-
const name = match[1].toLowerCase();
|
|
552
|
+
const name = (match[1] ?? '').toLowerCase();
|
|
553
553
|
if (!params.has(name)) {
|
|
554
|
-
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
|
|
554
|
+
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : (match[3] ?? '').trim());
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
return params;
|