@openshift-migration-advisor/planner-sdk 0.32.0 → 0.33.1

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 +2 -0
  2. package/README.md +4 -2
  3. package/dist/apis/AssessmentApi.d.ts +58 -6
  4. package/dist/apis/AssessmentApi.js +53 -6
  5. package/dist/apis/ImageApi.d.ts +14 -0
  6. package/dist/apis/ImageApi.js +11 -1
  7. package/dist/esm/apis/AssessmentApi.d.ts +58 -6
  8. package/dist/esm/apis/AssessmentApi.js +53 -6
  9. package/dist/esm/apis/ImageApi.d.ts +14 -0
  10. package/dist/esm/apis/ImageApi.js +10 -0
  11. package/dist/esm/models/Host.d.ts +16 -0
  12. package/dist/esm/models/Host.js +8 -0
  13. package/dist/esm/models/Info.d.ts +4 -0
  14. package/dist/esm/models/Info.js +2 -0
  15. package/dist/esm/models/SourceType.d.ts +26 -0
  16. package/dist/esm/models/SourceType.js +44 -0
  17. package/dist/esm/models/index.d.ts +1 -0
  18. package/dist/esm/models/index.js +1 -0
  19. package/dist/esm/runtime.js +4 -3
  20. package/dist/models/Host.d.ts +16 -0
  21. package/dist/models/Host.js +8 -0
  22. package/dist/models/Info.d.ts +4 -0
  23. package/dist/models/Info.js +2 -0
  24. package/dist/models/SourceType.d.ts +26 -0
  25. package/dist/models/SourceType.js +52 -0
  26. package/dist/models/index.d.ts +1 -0
  27. package/dist/models/index.js +1 -0
  28. package/dist/runtime.js +4 -3
  29. package/docs/AssessmentApi.md +88 -3
  30. package/docs/Host.md +8 -0
  31. package/docs/ImageApi.md +5 -2
  32. package/docs/Info.md +2 -0
  33. package/docs/SourceType.md +32 -0
  34. package/package.json +1 -1
  35. package/src/apis/AssessmentApi.ts +116 -8
  36. package/src/apis/ImageApi.ts +19 -0
  37. package/src/models/Host.ts +24 -0
  38. package/src/models/Info.ts +6 -0
  39. package/src/models/SourceType.ts +54 -0
  40. package/src/models/index.ts +1 -0
  41. package/src/runtime.ts +3 -3
@@ -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.33.1
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -79,6 +79,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
79
79
  *AssessmentApi* | [**shareAssessment**](docs/AssessmentApi.md#shareassessment) | **POST** /api/v1/assessments/{id}/share |
80
80
  *AssessmentApi* | [**unshareAssessment**](docs/AssessmentApi.md#unshareassessment) | **DELETE** /api/v1/assessments/{id}/share |
81
81
  *AssessmentApi* | [**updateAssessment**](docs/AssessmentApi.md#updateassessment) | **PUT** /api/v1/assessments/{id} |
82
+ *AssessmentApi* | [**updateAssessmentV2**](docs/AssessmentApi.md#updateassessmentv2) | **PATCH** /api/v2/assessments/{id} |
82
83
  *HealthApi* | [**health**](docs/HealthApi.md#health) | **GET** /health |
83
84
  *ImageApi* | [**getSourceDownloadURL**](docs/ImageApi.md#getsourcedownloadurl) | **GET** /api/v1/sources/{id}/image-url |
84
85
  *ImageApi* | [**headImage**](docs/ImageApi.md#headimage) | **HEAD** /api/v1/sources/{id}/image |
@@ -193,6 +194,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
193
194
  - [Source](docs/Source.md)
194
195
  - [SourceCreate](docs/SourceCreate.md)
195
196
  - [SourceInfra](docs/SourceInfra.md)
197
+ - [SourceType](docs/SourceType.md)
196
198
  - [SourceUpdate](docs/SourceUpdate.md)
197
199
  - [StandaloneClusterRequirementsRequest](docs/StandaloneClusterRequirementsRequest.md)
198
200
  - [StandaloneClusterRequirementsResponse](docs/StandaloneClusterRequirementsResponse.md)
@@ -220,7 +222,7 @@ and is automatically generated by the
220
222
  [OpenAPI Generator](https://openapi-generator.tech) project:
221
223
 
222
224
  - API version: `v1alpha1`
223
- - Package version: `0.32.0`
225
+ - Package version: `0.33.1`
224
226
  - Generator version: `7.28.0-SNAPSHOT`
225
227
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
226
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
@@ -173,6 +180,16 @@ export interface UpdateAssessmentRequest {
173
180
  */
174
181
  assessmentUpdate: AssessmentUpdate;
175
182
  }
183
+ export interface UpdateAssessmentV2Request {
184
+ /**
185
+ * ID of the assessment
186
+ */
187
+ id: string;
188
+ /**
189
+ *
190
+ */
191
+ assessmentUpdate: AssessmentUpdate;
192
+ }
176
193
  /**
177
194
  * AssessmentApi - interface
178
195
  *
@@ -464,21 +481,23 @@ export interface AssessmentApiInterface {
464
481
  listAssessments(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Assessment>>;
465
482
  /**
466
483
  * Creates request options for listAssessmentsV2 without sending the request
484
+ * @param {SourceType} [sourceType] Filter assessments by their source type
467
485
  * @throws {RequiredError}
468
486
  * @memberof AssessmentApiInterface
469
487
  */
470
- listAssessmentsV2RequestOpts(): Promise<runtime.RequestOpts>;
488
+ listAssessmentsV2RequestOpts(requestParameters: ListAssessmentsV2Request): Promise<runtime.RequestOpts>;
471
489
  /**
472
490
  * List assessments
491
+ * @param {SourceType} [sourceType] Filter assessments by their source type
473
492
  * @param {*} [options] Override http request option.
474
493
  * @throws {RequiredError}
475
494
  * @memberof AssessmentApiInterface
476
495
  */
477
- listAssessmentsV2Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
496
+ listAssessmentsV2Raw(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
478
497
  /**
479
498
  * List assessments
480
499
  */
481
- listAssessmentsV2(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
500
+ listAssessmentsV2(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
482
501
  /**
483
502
  * Creates request options for saveAssessmentEnhancementData without sending the request
484
503
  * @param {string} id ID of the assessment
@@ -559,6 +578,27 @@ export interface AssessmentApiInterface {
559
578
  * Update an assessment
560
579
  */
561
580
  updateAssessment(requestParameters: UpdateAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
581
+ /**
582
+ * Creates request options for updateAssessmentV2 without sending the request
583
+ * @param {string} id ID of the assessment
584
+ * @param {AssessmentUpdate} assessmentUpdate
585
+ * @throws {RequiredError}
586
+ * @memberof AssessmentApiInterface
587
+ */
588
+ updateAssessmentV2RequestOpts(requestParameters: UpdateAssessmentV2Request): Promise<runtime.RequestOpts>;
589
+ /**
590
+ * Update the assessment name
591
+ * @param {string} id ID of the assessment
592
+ * @param {AssessmentUpdate} assessmentUpdate
593
+ * @param {*} [options] Override http request option.
594
+ * @throws {RequiredError}
595
+ * @memberof AssessmentApiInterface
596
+ */
597
+ updateAssessmentV2Raw(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssessmentV2>>;
598
+ /**
599
+ * Update the assessment name
600
+ */
601
+ updateAssessmentV2(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssessmentV2>;
562
602
  }
563
603
  /**
564
604
  *
@@ -735,15 +775,15 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
735
775
  /**
736
776
  * Creates request options for listAssessmentsV2 without sending the request
737
777
  */
738
- listAssessmentsV2RequestOpts(): Promise<runtime.RequestOpts>;
778
+ listAssessmentsV2RequestOpts(requestParameters: ListAssessmentsV2Request): Promise<runtime.RequestOpts>;
739
779
  /**
740
780
  * List assessments
741
781
  */
742
- listAssessmentsV2Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
782
+ listAssessmentsV2Raw(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
743
783
  /**
744
784
  * List assessments
745
785
  */
746
- listAssessmentsV2(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
786
+ listAssessmentsV2(requestParameters?: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
747
787
  /**
748
788
  * Creates request options for saveAssessmentEnhancementData without sending the request
749
789
  */
@@ -792,4 +832,16 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
792
832
  * Update an assessment
793
833
  */
794
834
  updateAssessment(requestParameters: UpdateAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
835
+ /**
836
+ * Creates request options for updateAssessmentV2 without sending the request
837
+ */
838
+ updateAssessmentV2RequestOpts(requestParameters: UpdateAssessmentV2Request): Promise<runtime.RequestOpts>;
839
+ /**
840
+ * Update the assessment name
841
+ */
842
+ updateAssessmentV2Raw(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssessmentV2>>;
843
+ /**
844
+ * Update the assessment name
845
+ */
846
+ updateAssessmentV2(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssessmentV2>;
795
847
  }
@@ -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
  }
@@ -830,5 +833,49 @@ class AssessmentApi extends runtime.BaseAPI {
830
833
  return yield response.value();
831
834
  });
832
835
  }
836
+ /**
837
+ * Creates request options for updateAssessmentV2 without sending the request
838
+ */
839
+ updateAssessmentV2RequestOpts(requestParameters) {
840
+ return __awaiter(this, void 0, void 0, function* () {
841
+ if (requestParameters['id'] == null) {
842
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateAssessmentV2().');
843
+ }
844
+ if (requestParameters['assessmentUpdate'] == null) {
845
+ throw new runtime.RequiredError('assessmentUpdate', 'Required parameter "assessmentUpdate" was null or undefined when calling updateAssessmentV2().');
846
+ }
847
+ const queryParameters = {};
848
+ const headerParameters = {};
849
+ headerParameters['Content-Type'] = 'application/json';
850
+ let urlPath = `/api/v2/assessments/{id}`;
851
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
852
+ return {
853
+ path: urlPath,
854
+ method: 'PATCH',
855
+ headers: headerParameters,
856
+ query: queryParameters,
857
+ body: (0, AssessmentUpdate_js_1.AssessmentUpdateToJSON)(requestParameters['assessmentUpdate']),
858
+ };
859
+ });
860
+ }
861
+ /**
862
+ * Update the assessment name
863
+ */
864
+ updateAssessmentV2Raw(requestParameters, initOverrides) {
865
+ return __awaiter(this, void 0, void 0, function* () {
866
+ const requestOptions = yield this.updateAssessmentV2RequestOpts(requestParameters);
867
+ const response = yield this.request(requestOptions, initOverrides);
868
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, AssessmentV2_js_1.AssessmentV2FromJSON)(jsonValue));
869
+ });
870
+ }
871
+ /**
872
+ * Update the assessment name
873
+ */
874
+ updateAssessmentV2(requestParameters, initOverrides) {
875
+ return __awaiter(this, void 0, void 0, function* () {
876
+ const response = yield this.updateAssessmentV2Raw(requestParameters, initOverrides);
877
+ return yield response.value();
878
+ });
879
+ }
833
880
  }
834
881
  exports.AssessmentApi = AssessmentApi;
@@ -16,6 +16,10 @@ export interface GetSourceDownloadURLRequest {
16
16
  * Source id
17
17
  */
18
18
  id: string;
19
+ /**
20
+ * Which image to link; the OVA or the appliance image tar for a disconnected update
21
+ */
22
+ image?: GetSourceDownloadURLImageEnum;
19
23
  }
20
24
  export interface HeadImageRequest {
21
25
  /**
@@ -33,6 +37,7 @@ export interface ImageApiInterface {
33
37
  /**
34
38
  * Creates request options for getSourceDownloadURL without sending the request
35
39
  * @param {string} id Source id
40
+ * @param {'ova' | 'appliance'} [image] Which image to link; the OVA or the appliance image tar for a disconnected update
36
41
  * @throws {RequiredError}
37
42
  * @memberof ImageApiInterface
38
43
  */
@@ -40,6 +45,7 @@ export interface ImageApiInterface {
40
45
  /**
41
46
  * Get the OVA image via URL
42
47
  * @param {string} id Source id
48
+ * @param {'ova' | 'appliance'} [image] Which image to link; the OVA or the appliance image tar for a disconnected update
43
49
  * @param {*} [options] Override http request option.
44
50
  * @throws {RequiredError}
45
51
  * @memberof ImageApiInterface
@@ -98,3 +104,11 @@ export declare class ImageApi extends runtime.BaseAPI implements ImageApiInterfa
98
104
  */
99
105
  headImage(requestParameters: HeadImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
100
106
  }
107
+ /**
108
+ * @export
109
+ */
110
+ export declare const GetSourceDownloadURLImageEnum: {
111
+ readonly Ova: "ova";
112
+ readonly Appliance: "appliance";
113
+ };
114
+ export type GetSourceDownloadURLImageEnum = typeof GetSourceDownloadURLImageEnum[keyof typeof GetSourceDownloadURLImageEnum];
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ImageApi = void 0;
25
+ exports.GetSourceDownloadURLImageEnum = exports.ImageApi = void 0;
26
26
  const runtime = require("../runtime.js");
27
27
  const PresignedUrl_js_1 = require("../models/PresignedUrl.js");
28
28
  /**
@@ -38,6 +38,9 @@ class ImageApi extends runtime.BaseAPI {
38
38
  throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getSourceDownloadURL().');
39
39
  }
40
40
  const queryParameters = {};
41
+ if (requestParameters['image'] != null) {
42
+ queryParameters['image'] = requestParameters['image'];
43
+ }
41
44
  const headerParameters = {};
42
45
  let urlPath = `/api/v1/sources/{id}/image-url`;
43
46
  urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
@@ -108,3 +111,10 @@ class ImageApi extends runtime.BaseAPI {
108
111
  }
109
112
  }
110
113
  exports.ImageApi = ImageApi;
114
+ /**
115
+ * @export
116
+ */
117
+ exports.GetSourceDownloadURLImageEnum = {
118
+ Ova: 'ova',
119
+ Appliance: 'appliance',
120
+ };
@@ -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
@@ -173,6 +180,16 @@ export interface UpdateAssessmentRequest {
173
180
  */
174
181
  assessmentUpdate: AssessmentUpdate;
175
182
  }
183
+ export interface UpdateAssessmentV2Request {
184
+ /**
185
+ * ID of the assessment
186
+ */
187
+ id: string;
188
+ /**
189
+ *
190
+ */
191
+ assessmentUpdate: AssessmentUpdate;
192
+ }
176
193
  /**
177
194
  * AssessmentApi - interface
178
195
  *
@@ -464,21 +481,23 @@ export interface AssessmentApiInterface {
464
481
  listAssessments(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Assessment>>;
465
482
  /**
466
483
  * Creates request options for listAssessmentsV2 without sending the request
484
+ * @param {SourceType} [sourceType] Filter assessments by their source type
467
485
  * @throws {RequiredError}
468
486
  * @memberof AssessmentApiInterface
469
487
  */
470
- listAssessmentsV2RequestOpts(): Promise<runtime.RequestOpts>;
488
+ listAssessmentsV2RequestOpts(requestParameters: ListAssessmentsV2Request): Promise<runtime.RequestOpts>;
471
489
  /**
472
490
  * List assessments
491
+ * @param {SourceType} [sourceType] Filter assessments by their source type
473
492
  * @param {*} [options] Override http request option.
474
493
  * @throws {RequiredError}
475
494
  * @memberof AssessmentApiInterface
476
495
  */
477
- listAssessmentsV2Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
496
+ listAssessmentsV2Raw(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
478
497
  /**
479
498
  * List assessments
480
499
  */
481
- listAssessmentsV2(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
500
+ listAssessmentsV2(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
482
501
  /**
483
502
  * Creates request options for saveAssessmentEnhancementData without sending the request
484
503
  * @param {string} id ID of the assessment
@@ -559,6 +578,27 @@ export interface AssessmentApiInterface {
559
578
  * Update an assessment
560
579
  */
561
580
  updateAssessment(requestParameters: UpdateAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
581
+ /**
582
+ * Creates request options for updateAssessmentV2 without sending the request
583
+ * @param {string} id ID of the assessment
584
+ * @param {AssessmentUpdate} assessmentUpdate
585
+ * @throws {RequiredError}
586
+ * @memberof AssessmentApiInterface
587
+ */
588
+ updateAssessmentV2RequestOpts(requestParameters: UpdateAssessmentV2Request): Promise<runtime.RequestOpts>;
589
+ /**
590
+ * Update the assessment name
591
+ * @param {string} id ID of the assessment
592
+ * @param {AssessmentUpdate} assessmentUpdate
593
+ * @param {*} [options] Override http request option.
594
+ * @throws {RequiredError}
595
+ * @memberof AssessmentApiInterface
596
+ */
597
+ updateAssessmentV2Raw(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssessmentV2>>;
598
+ /**
599
+ * Update the assessment name
600
+ */
601
+ updateAssessmentV2(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssessmentV2>;
562
602
  }
563
603
  /**
564
604
  *
@@ -735,15 +775,15 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
735
775
  /**
736
776
  * Creates request options for listAssessmentsV2 without sending the request
737
777
  */
738
- listAssessmentsV2RequestOpts(): Promise<runtime.RequestOpts>;
778
+ listAssessmentsV2RequestOpts(requestParameters: ListAssessmentsV2Request): Promise<runtime.RequestOpts>;
739
779
  /**
740
780
  * List assessments
741
781
  */
742
- listAssessmentsV2Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
782
+ listAssessmentsV2Raw(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
743
783
  /**
744
784
  * List assessments
745
785
  */
746
- listAssessmentsV2(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
786
+ listAssessmentsV2(requestParameters?: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
747
787
  /**
748
788
  * Creates request options for saveAssessmentEnhancementData without sending the request
749
789
  */
@@ -792,4 +832,16 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
792
832
  * Update an assessment
793
833
  */
794
834
  updateAssessment(requestParameters: UpdateAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
835
+ /**
836
+ * Creates request options for updateAssessmentV2 without sending the request
837
+ */
838
+ updateAssessmentV2RequestOpts(requestParameters: UpdateAssessmentV2Request): Promise<runtime.RequestOpts>;
839
+ /**
840
+ * Update the assessment name
841
+ */
842
+ updateAssessmentV2Raw(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssessmentV2>>;
843
+ /**
844
+ * Update the assessment name
845
+ */
846
+ updateAssessmentV2(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssessmentV2>;
795
847
  }
@@ -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
  }
@@ -827,4 +830,48 @@ export class AssessmentApi extends runtime.BaseAPI {
827
830
  return yield response.value();
828
831
  });
829
832
  }
833
+ /**
834
+ * Creates request options for updateAssessmentV2 without sending the request
835
+ */
836
+ updateAssessmentV2RequestOpts(requestParameters) {
837
+ return __awaiter(this, void 0, void 0, function* () {
838
+ if (requestParameters['id'] == null) {
839
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateAssessmentV2().');
840
+ }
841
+ if (requestParameters['assessmentUpdate'] == null) {
842
+ throw new runtime.RequiredError('assessmentUpdate', 'Required parameter "assessmentUpdate" was null or undefined when calling updateAssessmentV2().');
843
+ }
844
+ const queryParameters = {};
845
+ const headerParameters = {};
846
+ headerParameters['Content-Type'] = 'application/json';
847
+ let urlPath = `/api/v2/assessments/{id}`;
848
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
849
+ return {
850
+ path: urlPath,
851
+ method: 'PATCH',
852
+ headers: headerParameters,
853
+ query: queryParameters,
854
+ body: AssessmentUpdateToJSON(requestParameters['assessmentUpdate']),
855
+ };
856
+ });
857
+ }
858
+ /**
859
+ * Update the assessment name
860
+ */
861
+ updateAssessmentV2Raw(requestParameters, initOverrides) {
862
+ return __awaiter(this, void 0, void 0, function* () {
863
+ const requestOptions = yield this.updateAssessmentV2RequestOpts(requestParameters);
864
+ const response = yield this.request(requestOptions, initOverrides);
865
+ return new runtime.JSONApiResponse(response, (jsonValue) => AssessmentV2FromJSON(jsonValue));
866
+ });
867
+ }
868
+ /**
869
+ * Update the assessment name
870
+ */
871
+ updateAssessmentV2(requestParameters, initOverrides) {
872
+ return __awaiter(this, void 0, void 0, function* () {
873
+ const response = yield this.updateAssessmentV2Raw(requestParameters, initOverrides);
874
+ return yield response.value();
875
+ });
876
+ }
830
877
  }
@@ -16,6 +16,10 @@ export interface GetSourceDownloadURLRequest {
16
16
  * Source id
17
17
  */
18
18
  id: string;
19
+ /**
20
+ * Which image to link; the OVA or the appliance image tar for a disconnected update
21
+ */
22
+ image?: GetSourceDownloadURLImageEnum;
19
23
  }
20
24
  export interface HeadImageRequest {
21
25
  /**
@@ -33,6 +37,7 @@ export interface ImageApiInterface {
33
37
  /**
34
38
  * Creates request options for getSourceDownloadURL without sending the request
35
39
  * @param {string} id Source id
40
+ * @param {'ova' | 'appliance'} [image] Which image to link; the OVA or the appliance image tar for a disconnected update
36
41
  * @throws {RequiredError}
37
42
  * @memberof ImageApiInterface
38
43
  */
@@ -40,6 +45,7 @@ export interface ImageApiInterface {
40
45
  /**
41
46
  * Get the OVA image via URL
42
47
  * @param {string} id Source id
48
+ * @param {'ova' | 'appliance'} [image] Which image to link; the OVA or the appliance image tar for a disconnected update
43
49
  * @param {*} [options] Override http request option.
44
50
  * @throws {RequiredError}
45
51
  * @memberof ImageApiInterface
@@ -98,3 +104,11 @@ export declare class ImageApi extends runtime.BaseAPI implements ImageApiInterfa
98
104
  */
99
105
  headImage(requestParameters: HeadImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
100
106
  }
107
+ /**
108
+ * @export
109
+ */
110
+ export declare const GetSourceDownloadURLImageEnum: {
111
+ readonly Ova: "ova";
112
+ readonly Appliance: "appliance";
113
+ };
114
+ export type GetSourceDownloadURLImageEnum = typeof GetSourceDownloadURLImageEnum[keyof typeof GetSourceDownloadURLImageEnum];
@@ -35,6 +35,9 @@ export class ImageApi extends runtime.BaseAPI {
35
35
  throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getSourceDownloadURL().');
36
36
  }
37
37
  const queryParameters = {};
38
+ if (requestParameters['image'] != null) {
39
+ queryParameters['image'] = requestParameters['image'];
40
+ }
38
41
  const headerParameters = {};
39
42
  let urlPath = `/api/v1/sources/{id}/image-url`;
40
43
  urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
@@ -104,3 +107,10 @@ export class ImageApi extends runtime.BaseAPI {
104
107
  });
105
108
  }
106
109
  }
110
+ /**
111
+ * @export
112
+ */
113
+ export const GetSourceDownloadURLImageEnum = {
114
+ Ova: 'ova',
115
+ Appliance: 'appliance',
116
+ };
@@ -29,6 +29,22 @@ export interface Host {
29
29
  *
30
30
  */
31
31
  model: string;
32
+ /**
33
+ * Source datacenter name, when available.
34
+ */
35
+ datacenter?: string;
36
+ /**
37
+ * Source cluster name; omitted for standalone hosts.
38
+ */
39
+ cluster?: string;
40
+ /**
41
+ * Source-reported CPU model, when available.
42
+ */
43
+ cpuModel?: string;
44
+ /**
45
+ * Source-reported host hardware serial or service tag, when available.
46
+ */
47
+ serialNumber?: string;
32
48
  /**
33
49
  * Number of CPU cores
34
50
  */
@@ -34,6 +34,10 @@ export function HostFromJSONTyped(json, ignoreDiscriminator) {
34
34
  'id': json['id'] == null ? undefined : json['id'],
35
35
  'vendor': json['vendor'],
36
36
  'model': json['model'],
37
+ 'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
38
+ 'cluster': json['cluster'] == null ? undefined : json['cluster'],
39
+ 'cpuModel': json['cpuModel'] == null ? undefined : json['cpuModel'],
40
+ 'serialNumber': json['serialNumber'] == null ? undefined : json['serialNumber'],
37
41
  'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
38
42
  'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
39
43
  'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
@@ -54,6 +58,10 @@ export function HostToJSONTyped(value, ignoreDiscriminator = false) {
54
58
  'id': value['id'],
55
59
  'vendor': value['vendor'],
56
60
  'model': value['model'],
61
+ 'datacenter': value['datacenter'],
62
+ 'cluster': value['cluster'],
63
+ 'cpuModel': value['cpuModel'],
64
+ 'serialNumber': value['serialNumber'],
57
65
  'cpuCores': value['cpuCores'],
58
66
  'cpuSockets': value['cpuSockets'],
59
67
  'memoryMB': value['memoryMB'],
@@ -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.