@openshift-migration-advisor/planner-sdk 0.31.0 → 0.32.0-050497adaf7f

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 (44) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +6 -2
  3. package/dist/apis/AssessmentApi.d.ts +86 -0
  4. package/dist/apis/AssessmentApi.js +86 -0
  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 +86 -0
  8. package/dist/esm/apis/AssessmentApi.js +86 -0
  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 +26 -0
  12. package/dist/esm/models/Host.js +14 -0
  13. package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
  14. package/dist/esm/models/HostStorageAdapter.js +55 -0
  15. package/dist/esm/models/HostStorageLun.d.ts +50 -0
  16. package/dist/esm/models/HostStorageLun.js +51 -0
  17. package/dist/esm/models/OsInfo.d.ts +12 -0
  18. package/dist/esm/models/OsInfo.js +9 -0
  19. package/dist/esm/models/index.d.ts +2 -0
  20. package/dist/esm/models/index.js +2 -0
  21. package/dist/models/Host.d.ts +26 -0
  22. package/dist/models/Host.js +14 -0
  23. package/dist/models/HostStorageAdapter.d.ts +58 -0
  24. package/dist/models/HostStorageAdapter.js +62 -0
  25. package/dist/models/HostStorageLun.d.ts +50 -0
  26. package/dist/models/HostStorageLun.js +58 -0
  27. package/dist/models/OsInfo.d.ts +12 -0
  28. package/dist/models/OsInfo.js +10 -1
  29. package/dist/models/index.d.ts +2 -0
  30. package/dist/models/index.js +2 -0
  31. package/docs/AssessmentApi.md +151 -0
  32. package/docs/Host.md +12 -0
  33. package/docs/HostStorageAdapter.md +49 -0
  34. package/docs/HostStorageLun.md +45 -0
  35. package/docs/ImageApi.md +5 -2
  36. package/docs/OsInfo.md +2 -0
  37. package/package.json +1 -1
  38. package/src/apis/AssessmentApi.ts +177 -0
  39. package/src/apis/ImageApi.ts +19 -0
  40. package/src/models/Host.ts +51 -0
  41. package/src/models/HostStorageAdapter.ts +105 -0
  42. package/src/models/HostStorageLun.ts +93 -0
  43. package/src/models/OsInfo.ts +15 -0
  44. package/src/models/index.ts +2 -0
@@ -27,6 +27,10 @@ export interface OsInfo {
27
27
  * OS support tier per Red Hat KCS article 4234591
28
28
  */
29
29
  supportTier?: OsInfoSupportTierEnum;
30
+ /**
31
+ * MTV verification per Red Hat KCS article 4234591. Green means tested and verified; blue means successfully running on the target cluster. Omitted when the OS/architecture has no listed status.
32
+ */
33
+ mtvStatus?: OsInfoMtvStatusEnum;
30
34
  /**
31
35
  * Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
32
36
  */
@@ -42,6 +46,14 @@ export declare const OsInfoSupportTierEnum: {
42
46
  readonly SpecialHandling: "special_handling";
43
47
  };
44
48
  export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const OsInfoMtvStatusEnum: {
53
+ readonly Green: "green";
54
+ readonly Blue: "blue";
55
+ };
56
+ export type OsInfoMtvStatusEnum = typeof OsInfoMtvStatusEnum[keyof typeof OsInfoMtvStatusEnum];
45
57
  /**
46
58
  * Check if a given object implements the OsInfo interface.
47
59
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.OsInfoSupportTierEnum = void 0;
16
+ exports.OsInfoMtvStatusEnum = exports.OsInfoSupportTierEnum = void 0;
17
17
  exports.instanceOfOsInfo = instanceOfOsInfo;
18
18
  exports.OsInfoFromJSON = OsInfoFromJSON;
19
19
  exports.OsInfoFromJSONTyped = OsInfoFromJSONTyped;
@@ -28,6 +28,13 @@ exports.OsInfoSupportTierEnum = {
28
28
  CommunitySupported: 'community_supported',
29
29
  SpecialHandling: 'special_handling',
30
30
  };
31
+ /**
32
+ * @export
33
+ */
34
+ exports.OsInfoMtvStatusEnum = {
35
+ Green: 'green',
36
+ Blue: 'blue',
37
+ };
31
38
  /**
32
39
  * Check if a given object implements the OsInfo interface.
33
40
  */
@@ -49,6 +56,7 @@ function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
49
56
  'count': json['count'],
50
57
  'supported': json['supported'],
51
58
  'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
59
+ 'mtvStatus': json['mtvStatus'] == null ? undefined : json['mtvStatus'],
52
60
  'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
53
61
  };
54
62
  }
@@ -63,6 +71,7 @@ function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
63
71
  'count': value['count'],
64
72
  'supported': value['supported'],
65
73
  'supportTier': value['supportTier'],
74
+ 'mtvStatus': value['mtvStatus'],
66
75
  'upgradeRecommendation': value['upgradeRecommendation'],
67
76
  };
68
77
  }
@@ -36,6 +36,8 @@ export * from './GroupCreate.js';
36
36
  export * from './GroupUpdate.js';
37
37
  export * from './Histogram.js';
38
38
  export * from './Host.js';
39
+ export * from './HostStorageAdapter.js';
40
+ export * from './HostStorageLun.js';
39
41
  export * from './Identity.js';
40
42
  export * from './Info.js';
41
43
  export * from './Infra.js';
@@ -54,6 +54,8 @@ __exportStar(require("./GroupCreate.js"), exports);
54
54
  __exportStar(require("./GroupUpdate.js"), exports);
55
55
  __exportStar(require("./Histogram.js"), exports);
56
56
  __exportStar(require("./Host.js"), exports);
57
+ __exportStar(require("./HostStorageAdapter.js"), exports);
58
+ __exportStar(require("./HostStorageLun.js"), exports);
57
59
  __exportStar(require("./Identity.js"), exports);
58
60
  __exportStar(require("./Info.js"), exports);
59
61
  __exportStar(require("./Infra.js"), exports);
@@ -10,6 +10,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
10
10
  | [**calculateMigrationEstimationByComplexity**](AssessmentApi.md#calculatemigrationestimationbycomplexity) | **POST** /api/v1/assessments/{id}/migration-estimation/by-complexity | |
11
11
  | [**createAssessment**](AssessmentApi.md#createassessment) | **POST** /api/v1/assessments | |
12
12
  | [**deleteAssessment**](AssessmentApi.md#deleteassessment) | **DELETE** /api/v1/assessments/{id} | |
13
+ | [**deleteVCenter**](AssessmentApi.md#deletevcenter) | **DELETE** /api/v2/assessments/{id}/vcenters/{vid} | |
13
14
  | [**getAssessment**](AssessmentApi.md#getassessment) | **GET** /api/v1/assessments/{id} | |
14
15
  | [**getAssessmentClusterRequirementsStoredInput**](AssessmentApi.md#getassessmentclusterrequirementsstoredinput) | **GET** /api/v1/assessments/{id}/cluster-requirements/stored-input | |
15
16
  | [**getAssessmentEnhancementData**](AssessmentApi.md#getassessmentenhancementdata) | **GET** /api/v1/assessments/{id}/enhancement-data | |
@@ -22,6 +23,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
22
23
  | [**shareAssessment**](AssessmentApi.md#shareassessment) | **POST** /api/v1/assessments/{id}/share | |
23
24
  | [**unshareAssessment**](AssessmentApi.md#unshareassessment) | **DELETE** /api/v1/assessments/{id}/share | |
24
25
  | [**updateAssessment**](AssessmentApi.md#updateassessment) | **PUT** /api/v1/assessments/{id} | |
26
+ | [**updateAssessmentV2**](AssessmentApi.md#updateassessmentv2) | **PATCH** /api/v2/assessments/{id} | |
25
27
 
26
28
 
27
29
 
@@ -468,6 +470,80 @@ No authorization required
468
470
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
469
471
 
470
472
 
473
+ ## deleteVCenter
474
+
475
+ > deleteVCenter(id, vid)
476
+
477
+
478
+
479
+ Delete the specified vcenter inventory
480
+
481
+ ### Example
482
+
483
+ ```ts
484
+ import {
485
+ Configuration,
486
+ AssessmentApi,
487
+ } from '@openshift-migration-advisor/planner-sdk';
488
+ import type { DeleteVCenterRequest } from '@openshift-migration-advisor/planner-sdk';
489
+
490
+ async function example() {
491
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
492
+ const api = new AssessmentApi();
493
+
494
+ const body = {
495
+ // string | ID of the assessment
496
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
497
+ // string | ID of the vcenter
498
+ vid: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
499
+ } satisfies DeleteVCenterRequest;
500
+
501
+ try {
502
+ const data = await api.deleteVCenter(body);
503
+ console.log(data);
504
+ } catch (error) {
505
+ console.error(error);
506
+ }
507
+ }
508
+
509
+ // Run the test
510
+ example().catch(console.error);
511
+ ```
512
+
513
+ ### Parameters
514
+
515
+
516
+ | Name | Type | Description | Notes |
517
+ |------------- | ------------- | ------------- | -------------|
518
+ | **id** | `string` | ID of the assessment | [Defaults to `undefined`] |
519
+ | **vid** | `string` | ID of the vcenter | [Defaults to `undefined`] |
520
+
521
+ ### Return type
522
+
523
+ `void` (Empty response body)
524
+
525
+ ### Authorization
526
+
527
+ No authorization required
528
+
529
+ ### HTTP request headers
530
+
531
+ - **Content-Type**: Not defined
532
+ - **Accept**: `application/json`
533
+
534
+
535
+ ### HTTP response details
536
+ | Status code | Description | Response headers |
537
+ |-------------|-------------|------------------|
538
+ | **204** | OK | - |
539
+ | **401** | Unauthorized | - |
540
+ | **403** | Forbidden | - |
541
+ | **404** | NotFound | - |
542
+ | **500** | Internal error | - |
543
+
544
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
545
+
546
+
471
547
  ## getAssessment
472
548
 
473
549
  > Assessment getAssessment(id)
@@ -1323,3 +1399,78 @@ No authorization required
1323
1399
 
1324
1400
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1325
1401
 
1402
+
1403
+ ## updateAssessmentV2
1404
+
1405
+ > AssessmentV2 updateAssessmentV2(id, assessmentUpdate)
1406
+
1407
+
1408
+
1409
+ Update the assessment name
1410
+
1411
+ ### Example
1412
+
1413
+ ```ts
1414
+ import {
1415
+ Configuration,
1416
+ AssessmentApi,
1417
+ } from '@openshift-migration-advisor/planner-sdk';
1418
+ import type { UpdateAssessmentV2Request } from '@openshift-migration-advisor/planner-sdk';
1419
+
1420
+ async function example() {
1421
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
1422
+ const api = new AssessmentApi();
1423
+
1424
+ const body = {
1425
+ // string | ID of the assessment
1426
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
1427
+ // AssessmentUpdate
1428
+ assessmentUpdate: ...,
1429
+ } satisfies UpdateAssessmentV2Request;
1430
+
1431
+ try {
1432
+ const data = await api.updateAssessmentV2(body);
1433
+ console.log(data);
1434
+ } catch (error) {
1435
+ console.error(error);
1436
+ }
1437
+ }
1438
+
1439
+ // Run the test
1440
+ example().catch(console.error);
1441
+ ```
1442
+
1443
+ ### Parameters
1444
+
1445
+
1446
+ | Name | Type | Description | Notes |
1447
+ |------------- | ------------- | ------------- | -------------|
1448
+ | **id** | `string` | ID of the assessment | [Defaults to `undefined`] |
1449
+ | **assessmentUpdate** | [AssessmentUpdate](AssessmentUpdate.md) | | |
1450
+
1451
+ ### Return type
1452
+
1453
+ [**AssessmentV2**](AssessmentV2.md)
1454
+
1455
+ ### Authorization
1456
+
1457
+ No authorization required
1458
+
1459
+ ### HTTP request headers
1460
+
1461
+ - **Content-Type**: `application/json`
1462
+ - **Accept**: `application/json`
1463
+
1464
+
1465
+ ### HTTP response details
1466
+ | Status code | Description | Response headers |
1467
+ |-------------|-------------|------------------|
1468
+ | **200** | OK | - |
1469
+ | **400** | Bad Request | - |
1470
+ | **401** | Unauthorized | - |
1471
+ | **403** | Forbidden | - |
1472
+ | **404** | NotFound | - |
1473
+ | **500** | Internal Server Error | - |
1474
+
1475
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1476
+
package/docs/Host.md CHANGED
@@ -9,11 +9,17 @@ Name | Type
9
9
  `id` | string
10
10
  `vendor` | string
11
11
  `model` | string
12
+ `datacenter` | string
13
+ `cluster` | string
14
+ `cpuModel` | string
15
+ `serialNumber` | string
12
16
  `cpuCores` | number
13
17
  `cpuSockets` | number
14
18
  `memoryMB` | number
15
19
  `vmotionSupported` | boolean
16
20
  `storageVmotionSupported` | boolean
21
+ `storageAdapters` | [Array<HostStorageAdapter>](HostStorageAdapter.md)
22
+ `storageLuns` | [Array<HostStorageLun>](HostStorageLun.md)
17
23
 
18
24
  ## Example
19
25
 
@@ -25,11 +31,17 @@ const example = {
25
31
  "id": null,
26
32
  "vendor": null,
27
33
  "model": null,
34
+ "datacenter": null,
35
+ "cluster": null,
36
+ "cpuModel": null,
37
+ "serialNumber": null,
28
38
  "cpuCores": null,
29
39
  "cpuSockets": null,
30
40
  "memoryMB": null,
31
41
  "vmotionSupported": null,
32
42
  "storageVmotionSupported": null,
43
+ "storageAdapters": null,
44
+ "storageLuns": null,
33
45
  } satisfies Host
34
46
 
35
47
  console.log(example)
@@ -0,0 +1,49 @@
1
+
2
+ # HostStorageAdapter
3
+
4
+ Source-provided adapter facts. Missing or conflicting values are omitted.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `device` | string
11
+ `key` | string
12
+ `type` | string
13
+ `protocol` | string
14
+ `model` | string
15
+ `driver` | string
16
+ `nodeWwn` | string
17
+ `portWwn` | string
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { HostStorageAdapter } from '@openshift-migration-advisor/planner-sdk'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "device": null,
27
+ "key": null,
28
+ "type": null,
29
+ "protocol": null,
30
+ "model": null,
31
+ "driver": null,
32
+ "nodeWwn": null,
33
+ "portWwn": null,
34
+ } satisfies HostStorageAdapter
35
+
36
+ console.log(example)
37
+
38
+ // Convert the instance to a JSON string
39
+ const exampleJSON: string = JSON.stringify(example)
40
+ console.log(exampleJSON)
41
+
42
+ // Parse the JSON string back to an object
43
+ const exampleParsed = JSON.parse(exampleJSON) as HostStorageAdapter
44
+ console.log(exampleParsed)
45
+ ```
46
+
47
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
48
+
49
+
@@ -0,0 +1,45 @@
1
+
2
+ # HostStorageLun
3
+
4
+ A host-visible LUN; missing or conflicting identity/metadata fields are omitted.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `canonicalName` | string
11
+ `key` | string
12
+ `lunUuid` | string
13
+ `vendor` | string
14
+ `model` | string
15
+ `adapterDevices` | Array<string>
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { HostStorageLun } from '@openshift-migration-advisor/planner-sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "canonicalName": null,
25
+ "key": null,
26
+ "lunUuid": null,
27
+ "vendor": null,
28
+ "model": null,
29
+ "adapterDevices": null,
30
+ } satisfies HostStorageLun
31
+
32
+ console.log(example)
33
+
34
+ // Convert the instance to a JSON string
35
+ const exampleJSON: string = JSON.stringify(example)
36
+ console.log(exampleJSON)
37
+
38
+ // Parse the JSON string back to an object
39
+ const exampleParsed = JSON.parse(exampleJSON) as HostStorageLun
40
+ console.log(exampleParsed)
41
+ ```
42
+
43
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
44
+
45
+
package/docs/ImageApi.md CHANGED
@@ -11,7 +11,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
11
11
 
12
12
  ## getSourceDownloadURL
13
13
 
14
- > PresignedUrl getSourceDownloadURL(id)
14
+ > PresignedUrl getSourceDownloadURL(id, image)
15
15
 
16
16
 
17
17
 
@@ -33,6 +33,8 @@ async function example() {
33
33
  const body = {
34
34
  // string | Source id
35
35
  id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
36
+ // 'ova' | 'appliance' | Which image to link; the OVA or the appliance image tar for a disconnected update (optional)
37
+ image: image_example,
36
38
  } satisfies GetSourceDownloadURLRequest;
37
39
 
38
40
  try {
@@ -53,6 +55,7 @@ example().catch(console.error);
53
55
  | Name | Type | Description | Notes |
54
56
  |------------- | ------------- | ------------- | -------------|
55
57
  | **id** | `string` | Source id | [Defaults to `undefined`] |
58
+ | **image** | `ova`, `appliance` | Which image to link; the OVA or the appliance image tar for a disconnected update | [Optional] [Defaults to `'ova'`] [Enum: ova, appliance] |
56
59
 
57
60
  ### Return type
58
61
 
@@ -71,7 +74,7 @@ No authorization required
71
74
  ### HTTP response details
72
75
  | Status code | Description | Response headers |
73
76
  |-------------|-------------|------------------|
74
- | **200** | URL to download OVA image | - |
77
+ | **200** | URL to download the image | - |
75
78
  | **400** | Bad Request | - |
76
79
  | **401** | Unauthorized | - |
77
80
  | **403** | Forbidden | - |
package/docs/OsInfo.md CHANGED
@@ -9,6 +9,7 @@ Name | Type
9
9
  `count` | number
10
10
  `supported` | boolean
11
11
  `supportTier` | string
12
+ `mtvStatus` | string
12
13
  `upgradeRecommendation` | string
13
14
 
14
15
  ## Example
@@ -21,6 +22,7 @@ const example = {
21
22
  "count": null,
22
23
  "supported": null,
23
24
  "supportTier": null,
25
+ "mtvStatus": null,
24
26
  "upgradeRecommendation": null,
25
27
  } satisfies OsInfo
26
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/planner-sdk",
3
- "version": "0.31.0",
3
+ "version": "0.32.0-050497adaf7f",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/planner-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -157,6 +157,17 @@ export interface DeleteAssessmentRequest {
157
157
  id: string;
158
158
  }
159
159
 
160
+ export interface DeleteVCenterRequest {
161
+ /**
162
+ * ID of the assessment
163
+ */
164
+ id: string;
165
+ /**
166
+ * ID of the vcenter
167
+ */
168
+ vid: string;
169
+ }
170
+
160
171
  export interface GetAssessmentRequest {
161
172
  /**
162
173
  * ID of the assessment
@@ -251,6 +262,17 @@ export interface UpdateAssessmentRequest {
251
262
  assessmentUpdate: AssessmentUpdate;
252
263
  }
253
264
 
265
+ export interface UpdateAssessmentV2Request {
266
+ /**
267
+ * ID of the assessment
268
+ */
269
+ id: string;
270
+ /**
271
+ *
272
+ */
273
+ assessmentUpdate: AssessmentUpdate;
274
+ }
275
+
254
276
  /**
255
277
  * AssessmentApi - interface
256
278
  *
@@ -398,6 +420,30 @@ export interface AssessmentApiInterface {
398
420
  */
399
421
  deleteAssessment(requestParameters: DeleteAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
400
422
 
423
+ /**
424
+ * Creates request options for deleteVCenter without sending the request
425
+ * @param {string} id ID of the assessment
426
+ * @param {string} vid ID of the vcenter
427
+ * @throws {RequiredError}
428
+ * @memberof AssessmentApiInterface
429
+ */
430
+ deleteVCenterRequestOpts(requestParameters: DeleteVCenterRequest): Promise<runtime.RequestOpts>;
431
+
432
+ /**
433
+ * Delete the specified vcenter inventory
434
+ * @param {string} id ID of the assessment
435
+ * @param {string} vid ID of the vcenter
436
+ * @param {*} [options] Override http request option.
437
+ * @throws {RequiredError}
438
+ * @memberof AssessmentApiInterface
439
+ */
440
+ deleteVCenterRaw(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
441
+
442
+ /**
443
+ * Delete the specified vcenter inventory
444
+ */
445
+ deleteVCenter(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
446
+
401
447
  /**
402
448
  * Creates request options for getAssessment without sending the request
403
449
  * @param {string} id ID of the assessment
@@ -670,6 +716,30 @@ export interface AssessmentApiInterface {
670
716
  */
671
717
  updateAssessment(requestParameters: UpdateAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
672
718
 
719
+ /**
720
+ * Creates request options for updateAssessmentV2 without sending the request
721
+ * @param {string} id ID of the assessment
722
+ * @param {AssessmentUpdate} assessmentUpdate
723
+ * @throws {RequiredError}
724
+ * @memberof AssessmentApiInterface
725
+ */
726
+ updateAssessmentV2RequestOpts(requestParameters: UpdateAssessmentV2Request): Promise<runtime.RequestOpts>;
727
+
728
+ /**
729
+ * Update the assessment name
730
+ * @param {string} id ID of the assessment
731
+ * @param {AssessmentUpdate} assessmentUpdate
732
+ * @param {*} [options] Override http request option.
733
+ * @throws {RequiredError}
734
+ * @memberof AssessmentApiInterface
735
+ */
736
+ updateAssessmentV2Raw(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssessmentV2>>;
737
+
738
+ /**
739
+ * Update the assessment name
740
+ */
741
+ updateAssessmentV2(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssessmentV2>;
742
+
673
743
  }
674
744
 
675
745
  /**
@@ -989,6 +1059,58 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
989
1059
  return await response.value();
990
1060
  }
991
1061
 
1062
+ /**
1063
+ * Creates request options for deleteVCenter without sending the request
1064
+ */
1065
+ async deleteVCenterRequestOpts(requestParameters: DeleteVCenterRequest): Promise<runtime.RequestOpts> {
1066
+ if (requestParameters['id'] == null) {
1067
+ throw new runtime.RequiredError(
1068
+ 'id',
1069
+ 'Required parameter "id" was null or undefined when calling deleteVCenter().'
1070
+ );
1071
+ }
1072
+
1073
+ if (requestParameters['vid'] == null) {
1074
+ throw new runtime.RequiredError(
1075
+ 'vid',
1076
+ 'Required parameter "vid" was null or undefined when calling deleteVCenter().'
1077
+ );
1078
+ }
1079
+
1080
+ const queryParameters: any = {};
1081
+
1082
+ const headerParameters: runtime.HTTPHeaders = {};
1083
+
1084
+
1085
+ let urlPath = `/api/v2/assessments/{id}/vcenters/{vid}`;
1086
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1087
+ urlPath = urlPath.replace('{vid}', encodeURIComponent(String(requestParameters['vid'])));
1088
+
1089
+ return {
1090
+ path: urlPath,
1091
+ method: 'DELETE',
1092
+ headers: headerParameters,
1093
+ query: queryParameters,
1094
+ };
1095
+ }
1096
+
1097
+ /**
1098
+ * Delete the specified vcenter inventory
1099
+ */
1100
+ async deleteVCenterRaw(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1101
+ const requestOptions = await this.deleteVCenterRequestOpts(requestParameters);
1102
+ const response = await this.request(requestOptions, initOverrides);
1103
+
1104
+ return new runtime.VoidApiResponse(response);
1105
+ }
1106
+
1107
+ /**
1108
+ * Delete the specified vcenter inventory
1109
+ */
1110
+ async deleteVCenter(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1111
+ await this.deleteVCenterRaw(requestParameters, initOverrides);
1112
+ }
1113
+
992
1114
  /**
993
1115
  * Creates request options for getAssessment without sending the request
994
1116
  */
@@ -1568,4 +1690,59 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
1568
1690
  return await response.value();
1569
1691
  }
1570
1692
 
1693
+ /**
1694
+ * Creates request options for updateAssessmentV2 without sending the request
1695
+ */
1696
+ async updateAssessmentV2RequestOpts(requestParameters: UpdateAssessmentV2Request): Promise<runtime.RequestOpts> {
1697
+ if (requestParameters['id'] == null) {
1698
+ throw new runtime.RequiredError(
1699
+ 'id',
1700
+ 'Required parameter "id" was null or undefined when calling updateAssessmentV2().'
1701
+ );
1702
+ }
1703
+
1704
+ if (requestParameters['assessmentUpdate'] == null) {
1705
+ throw new runtime.RequiredError(
1706
+ 'assessmentUpdate',
1707
+ 'Required parameter "assessmentUpdate" was null or undefined when calling updateAssessmentV2().'
1708
+ );
1709
+ }
1710
+
1711
+ const queryParameters: any = {};
1712
+
1713
+ const headerParameters: runtime.HTTPHeaders = {};
1714
+
1715
+ headerParameters['Content-Type'] = 'application/json';
1716
+
1717
+
1718
+ let urlPath = `/api/v2/assessments/{id}`;
1719
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1720
+
1721
+ return {
1722
+ path: urlPath,
1723
+ method: 'PATCH',
1724
+ headers: headerParameters,
1725
+ query: queryParameters,
1726
+ body: AssessmentUpdateToJSON(requestParameters['assessmentUpdate']),
1727
+ };
1728
+ }
1729
+
1730
+ /**
1731
+ * Update the assessment name
1732
+ */
1733
+ async updateAssessmentV2Raw(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssessmentV2>> {
1734
+ const requestOptions = await this.updateAssessmentV2RequestOpts(requestParameters);
1735
+ const response = await this.request(requestOptions, initOverrides);
1736
+
1737
+ return new runtime.JSONApiResponse(response, (jsonValue) => AssessmentV2FromJSON(jsonValue));
1738
+ }
1739
+
1740
+ /**
1741
+ * Update the assessment name
1742
+ */
1743
+ async updateAssessmentV2(requestParameters: UpdateAssessmentV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssessmentV2> {
1744
+ const response = await this.updateAssessmentV2Raw(requestParameters, initOverrides);
1745
+ return await response.value();
1746
+ }
1747
+
1571
1748
  }