@openshift-migration-advisor/planner-sdk 0.13.3 → 0.13.4-db4c7857bd8f

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 (75) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +9 -3
  3. package/dist/apis/SizingApi.d.ts +61 -0
  4. package/dist/apis/SizingApi.js +74 -0
  5. package/dist/apis/SourceApi.d.ts +0 -30
  6. package/dist/apis/SourceApi.js +0 -36
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/apis/SizingApi.d.ts +61 -0
  10. package/dist/esm/apis/SizingApi.js +70 -0
  11. package/dist/esm/apis/SourceApi.d.ts +0 -30
  12. package/dist/esm/apis/SourceApi.js +0 -36
  13. package/dist/esm/apis/index.d.ts +1 -0
  14. package/dist/esm/apis/index.js +1 -0
  15. package/dist/esm/models/ClusterFeatures.d.ts +54 -0
  16. package/dist/esm/models/ClusterFeatures.js +54 -0
  17. package/dist/esm/models/ClusterRequirementsRequest.d.ts +6 -23
  18. package/dist/esm/models/ClusterRequirementsRequest.js +6 -21
  19. package/dist/esm/models/ClusterUtilization.d.ts +68 -0
  20. package/dist/esm/models/ClusterUtilization.js +67 -0
  21. package/dist/esm/models/CpuOverCommitRatio.d.ts +27 -0
  22. package/dist/esm/models/CpuOverCommitRatio.js +45 -0
  23. package/dist/esm/models/InventoryData.d.ts +14 -0
  24. package/dist/esm/models/InventoryData.js +6 -0
  25. package/dist/esm/models/MemoryOverCommitRatio.d.ts +26 -0
  26. package/dist/esm/models/MemoryOverCommitRatio.js +44 -0
  27. package/dist/esm/models/StandaloneClusterRequirementsRequest.d.ts +114 -0
  28. package/dist/esm/models/StandaloneClusterRequirementsRequest.js +88 -0
  29. package/dist/esm/models/StandaloneClusterRequirementsResponse.d.ts +40 -0
  30. package/dist/esm/models/StandaloneClusterRequirementsResponse.js +49 -0
  31. package/dist/esm/models/index.d.ts +6 -0
  32. package/dist/esm/models/index.js +6 -0
  33. package/dist/models/ClusterFeatures.d.ts +54 -0
  34. package/dist/models/ClusterFeatures.js +62 -0
  35. package/dist/models/ClusterRequirementsRequest.d.ts +6 -23
  36. package/dist/models/ClusterRequirementsRequest.js +7 -22
  37. package/dist/models/ClusterUtilization.d.ts +68 -0
  38. package/dist/models/ClusterUtilization.js +74 -0
  39. package/dist/models/CpuOverCommitRatio.d.ts +27 -0
  40. package/dist/models/CpuOverCommitRatio.js +53 -0
  41. package/dist/models/InventoryData.d.ts +14 -0
  42. package/dist/models/InventoryData.js +6 -0
  43. package/dist/models/MemoryOverCommitRatio.d.ts +26 -0
  44. package/dist/models/MemoryOverCommitRatio.js +52 -0
  45. package/dist/models/StandaloneClusterRequirementsRequest.d.ts +114 -0
  46. package/dist/models/StandaloneClusterRequirementsRequest.js +96 -0
  47. package/dist/models/StandaloneClusterRequirementsResponse.d.ts +40 -0
  48. package/dist/models/StandaloneClusterRequirementsResponse.js +56 -0
  49. package/dist/models/index.d.ts +6 -0
  50. package/dist/models/index.js +6 -0
  51. package/docs/AccountApi.md +9 -0
  52. package/docs/ClusterFeatures.md +38 -0
  53. package/docs/ClusterRequirementsRequest.md +2 -2
  54. package/docs/ClusterUtilization.md +46 -0
  55. package/docs/CpuOverCommitRatio.md +33 -0
  56. package/docs/ImageApi.md +2 -0
  57. package/docs/InventoryData.md +4 -0
  58. package/docs/MemoryOverCommitRatio.md +33 -0
  59. package/docs/SizingApi.md +80 -0
  60. package/docs/SourceApi.md +0 -62
  61. package/docs/StandaloneClusterRequirementsRequest.md +59 -0
  62. package/docs/StandaloneClusterRequirementsResponse.md +37 -0
  63. package/package.json +1 -1
  64. package/src/apis/SizingApi.ts +114 -0
  65. package/src/apis/SourceApi.ts +0 -62
  66. package/src/apis/index.ts +1 -0
  67. package/src/models/ClusterFeatures.ts +94 -0
  68. package/src/models/ClusterRequirementsRequest.ts +23 -29
  69. package/src/models/ClusterUtilization.ts +120 -0
  70. package/src/models/CpuOverCommitRatio.ts +55 -0
  71. package/src/models/InventoryData.ts +30 -0
  72. package/src/models/MemoryOverCommitRatio.ts +54 -0
  73. package/src/models/StandaloneClusterRequirementsRequest.ts +194 -0
  74. package/src/models/StandaloneClusterRequirementsResponse.ts +90 -0
  75. package/src/models/index.ts +6 -0
@@ -8,8 +8,8 @@ Request payload for calculating cluster requirements
8
8
  Name | Type
9
9
  ------------ | -------------
10
10
  `clusterId` | string
11
- `cpuOverCommitRatio` | string
12
- `memoryOverCommitRatio` | string
11
+ `cpuOverCommitRatio` | [CpuOverCommitRatio](CpuOverCommitRatio.md)
12
+ `memoryOverCommitRatio` | [MemoryOverCommitRatio](MemoryOverCommitRatio.md)
13
13
  `workerNodeCPU` | number
14
14
  `workerNodeMemory` | number
15
15
  `workerNodeThreads` | number
@@ -0,0 +1,46 @@
1
+
2
+ # ClusterUtilization
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `cpuAvg` | number
10
+ `cpuP95` | number
11
+ `cpuMax` | number
12
+ `memAvg` | number
13
+ `memP95` | number
14
+ `memMax` | number
15
+ `confidence` | number
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { ClusterUtilization } from '@openshift-migration-advisor/planner-sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "cpuAvg": null,
25
+ "cpuP95": null,
26
+ "cpuMax": null,
27
+ "memAvg": null,
28
+ "memP95": null,
29
+ "memMax": null,
30
+ "confidence": null,
31
+ } satisfies ClusterUtilization
32
+
33
+ console.log(example)
34
+
35
+ // Convert the instance to a JSON string
36
+ const exampleJSON: string = JSON.stringify(example)
37
+ console.log(exampleJSON)
38
+
39
+ // Parse the JSON string back to an object
40
+ const exampleParsed = JSON.parse(exampleJSON) as ClusterUtilization
41
+ console.log(exampleParsed)
42
+ ```
43
+
44
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
45
+
46
+
@@ -0,0 +1,33 @@
1
+
2
+ # CpuOverCommitRatio
3
+
4
+ CPU over-commit ratio
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { CpuOverCommitRatio } from '@openshift-migration-advisor/planner-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ } satisfies CpuOverCommitRatio
19
+
20
+ console.log(example)
21
+
22
+ // Convert the instance to a JSON string
23
+ const exampleJSON: string = JSON.stringify(example)
24
+ console.log(exampleJSON)
25
+
26
+ // Parse the JSON string back to an object
27
+ const exampleParsed = JSON.parse(exampleJSON) as CpuOverCommitRatio
28
+ console.log(exampleParsed)
29
+ ```
30
+
31
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
32
+
33
+
package/docs/ImageApi.md CHANGED
@@ -74,7 +74,9 @@ No authorization required
74
74
  | **200** | URL to download OVA image | - |
75
75
  | **400** | Bad Request | - |
76
76
  | **401** | Unauthorized | - |
77
+ | **403** | Forbidden | - |
77
78
  | **404** | NotFound | - |
79
+ | **500** | Internal error | - |
78
80
 
79
81
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
80
82
 
@@ -7,6 +7,8 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `vcenter` | [VCenter](VCenter.md)
10
+ `clusterFeatures` | [ClusterFeatures](ClusterFeatures.md)
11
+ `clusterUtilization` | [ClusterUtilization](ClusterUtilization.md)
10
12
  `vms` | [VMs](VMs.md)
11
13
  `infra` | [Infra](Infra.md)
12
14
 
@@ -18,6 +20,8 @@ import type { InventoryData } from '@openshift-migration-advisor/planner-sdk'
18
20
  // TODO: Update the object below with actual values
19
21
  const example = {
20
22
  "vcenter": null,
23
+ "clusterFeatures": null,
24
+ "clusterUtilization": null,
21
25
  "vms": null,
22
26
  "infra": null,
23
27
  } satisfies InventoryData
@@ -0,0 +1,33 @@
1
+
2
+ # MemoryOverCommitRatio
3
+
4
+ Memory over-commit ratio
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { MemoryOverCommitRatio } from '@openshift-migration-advisor/planner-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ } satisfies MemoryOverCommitRatio
19
+
20
+ console.log(example)
21
+
22
+ // Convert the instance to a JSON string
23
+ const exampleJSON: string = JSON.stringify(example)
24
+ console.log(exampleJSON)
25
+
26
+ // Parse the JSON string back to an object
27
+ const exampleParsed = JSON.parse(exampleJSON) as MemoryOverCommitRatio
28
+ console.log(exampleParsed)
29
+ ```
30
+
31
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
32
+
33
+
@@ -0,0 +1,80 @@
1
+ # SizingApi
2
+
3
+ All URIs are relative to *https://raw.githubusercontent.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**calculateClusterRequirements**](SizingApi.md#calculateclusterrequirements) | **POST** /api/v1/cluster-requirements | |
8
+
9
+
10
+
11
+ ## calculateClusterRequirements
12
+
13
+ > StandaloneClusterRequirementsResponse calculateClusterRequirements(standaloneClusterRequirementsRequest)
14
+
15
+
16
+
17
+ Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
18
+
19
+ ### Example
20
+
21
+ ```ts
22
+ import {
23
+ Configuration,
24
+ SizingApi,
25
+ } from '@openshift-migration-advisor/planner-sdk';
26
+ import type { CalculateClusterRequirementsRequest } from '@openshift-migration-advisor/planner-sdk';
27
+
28
+ async function example() {
29
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
30
+ const api = new SizingApi();
31
+
32
+ const body = {
33
+ // StandaloneClusterRequirementsRequest
34
+ standaloneClusterRequirementsRequest: {"totalVMs":100,"totalCPU":400,"totalMemory":800,"cpuOverCommitRatio":"1:4","memoryOverCommitRatio":"1:2","workerNodeCPU":16,"workerNodeMemory":64},
35
+ } satisfies CalculateClusterRequirementsRequest;
36
+
37
+ try {
38
+ const data = await api.calculateClusterRequirements(body);
39
+ console.log(data);
40
+ } catch (error) {
41
+ console.error(error);
42
+ }
43
+ }
44
+
45
+ // Run the test
46
+ example().catch(console.error);
47
+ ```
48
+
49
+ ### Parameters
50
+
51
+
52
+ | Name | Type | Description | Notes |
53
+ |------------- | ------------- | ------------- | -------------|
54
+ | **standaloneClusterRequirementsRequest** | [StandaloneClusterRequirementsRequest](StandaloneClusterRequirementsRequest.md) | | |
55
+
56
+ ### Return type
57
+
58
+ [**StandaloneClusterRequirementsResponse**](StandaloneClusterRequirementsResponse.md)
59
+
60
+ ### Authorization
61
+
62
+ No authorization required
63
+
64
+ ### HTTP request headers
65
+
66
+ - **Content-Type**: `application/json`
67
+ - **Accept**: `application/json`
68
+
69
+
70
+ ### HTTP response details
71
+ | Status code | Description | Response headers |
72
+ |-------------|-------------|------------------|
73
+ | **200** | Cluster requirements calculation successful | - |
74
+ | **400** | Bad Request | - |
75
+ | **401** | Unauthorized | - |
76
+ | **500** | Internal error | - |
77
+ | **503** | Service Unavailable | - |
78
+
79
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
80
+
package/docs/SourceApi.md CHANGED
@@ -6,7 +6,6 @@ All URIs are relative to *https://raw.githubusercontent.com*
6
6
  |------------- | ------------- | -------------|
7
7
  | [**createSource**](SourceApi.md#createsource) | **POST** /api/v1/sources | |
8
8
  | [**deleteSource**](SourceApi.md#deletesource) | **DELETE** /api/v1/sources/{id} | |
9
- | [**deleteSources**](SourceApi.md#deletesources) | **DELETE** /api/v1/sources | |
10
9
  | [**getSource**](SourceApi.md#getsource) | **GET** /api/v1/sources/{id} | |
11
10
  | [**listSources**](SourceApi.md#listsources) | **GET** /api/v1/sources | |
12
11
  | [**updateInventory**](SourceApi.md#updateinventory) | **PUT** /api/v1/sources/{id}/inventory | |
@@ -156,67 +155,6 @@ No authorization required
156
155
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
157
156
 
158
157
 
159
- ## deleteSources
160
-
161
- > Status deleteSources()
162
-
163
-
164
-
165
- delete a collection of sources
166
-
167
- ### Example
168
-
169
- ```ts
170
- import {
171
- Configuration,
172
- SourceApi,
173
- } from '@openshift-migration-advisor/planner-sdk';
174
- import type { DeleteSourcesRequest } from '@openshift-migration-advisor/planner-sdk';
175
-
176
- async function example() {
177
- console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
178
- const api = new SourceApi();
179
-
180
- try {
181
- const data = await api.deleteSources();
182
- console.log(data);
183
- } catch (error) {
184
- console.error(error);
185
- }
186
- }
187
-
188
- // Run the test
189
- example().catch(console.error);
190
- ```
191
-
192
- ### Parameters
193
-
194
- This endpoint does not need any parameter.
195
-
196
- ### Return type
197
-
198
- [**Status**](Status.md)
199
-
200
- ### Authorization
201
-
202
- No authorization required
203
-
204
- ### HTTP request headers
205
-
206
- - **Content-Type**: Not defined
207
- - **Accept**: `application/json`
208
-
209
-
210
- ### HTTP response details
211
- | Status code | Description | Response headers |
212
- |-------------|-------------|------------------|
213
- | **200** | OK | - |
214
- | **401** | Unauthorized | - |
215
- | **500** | Internal error | - |
216
-
217
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
218
-
219
-
220
158
  ## getSource
221
159
 
222
160
  > Source getSource(id)
@@ -0,0 +1,59 @@
1
+
2
+ # StandaloneClusterRequirementsRequest
3
+
4
+ Request payload for calculating cluster requirements with inline inventory data (no assessment required)
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `totalVMs` | number
11
+ `totalCPU` | number
12
+ `totalMemory` | number
13
+ `cpuOverCommitRatio` | [CpuOverCommitRatio](CpuOverCommitRatio.md)
14
+ `memoryOverCommitRatio` | [MemoryOverCommitRatio](MemoryOverCommitRatio.md)
15
+ `workerNodeCPU` | number
16
+ `workerNodeMemory` | number
17
+ `workerNodeThreads` | number
18
+ `controlPlaneSchedulable` | boolean
19
+ `controlPlaneCPU` | number
20
+ `controlPlaneMemory` | number
21
+ `controlPlaneNodeCount` | number
22
+ `hostedControlPlane` | boolean
23
+
24
+ ## Example
25
+
26
+ ```typescript
27
+ import type { StandaloneClusterRequirementsRequest } from '@openshift-migration-advisor/planner-sdk'
28
+
29
+ // TODO: Update the object below with actual values
30
+ const example = {
31
+ "totalVMs": null,
32
+ "totalCPU": null,
33
+ "totalMemory": null,
34
+ "cpuOverCommitRatio": null,
35
+ "memoryOverCommitRatio": null,
36
+ "workerNodeCPU": null,
37
+ "workerNodeMemory": null,
38
+ "workerNodeThreads": null,
39
+ "controlPlaneSchedulable": null,
40
+ "controlPlaneCPU": null,
41
+ "controlPlaneMemory": null,
42
+ "controlPlaneNodeCount": null,
43
+ "hostedControlPlane": null,
44
+ } satisfies StandaloneClusterRequirementsRequest
45
+
46
+ console.log(example)
47
+
48
+ // Convert the instance to a JSON string
49
+ const exampleJSON: string = JSON.stringify(example)
50
+ console.log(exampleJSON)
51
+
52
+ // Parse the JSON string back to an object
53
+ const exampleParsed = JSON.parse(exampleJSON) as StandaloneClusterRequirementsRequest
54
+ console.log(exampleParsed)
55
+ ```
56
+
57
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
58
+
59
+
@@ -0,0 +1,37 @@
1
+
2
+ # StandaloneClusterRequirementsResponse
3
+
4
+ Sizing results; omits inventoryTotals (already in the request).
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `clusterSizing` | [ClusterSizing](ClusterSizing.md)
11
+ `resourceConsumption` | [SizingResourceConsumption](SizingResourceConsumption.md)
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { StandaloneClusterRequirementsResponse } from '@openshift-migration-advisor/planner-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "clusterSizing": null,
21
+ "resourceConsumption": null,
22
+ } satisfies StandaloneClusterRequirementsResponse
23
+
24
+ console.log(example)
25
+
26
+ // Convert the instance to a JSON string
27
+ const exampleJSON: string = JSON.stringify(example)
28
+ console.log(exampleJSON)
29
+
30
+ // Parse the JSON string back to an object
31
+ const exampleParsed = JSON.parse(exampleJSON) as StandaloneClusterRequirementsResponse
32
+ console.log(exampleParsed)
33
+ ```
34
+
35
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
36
+
37
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/planner-sdk",
3
- "version": "0.13.3",
3
+ "version": "0.13.4-db4c7857bd8f",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/planner-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,114 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OpenShift Migration Advisor API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1alpha1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import * as runtime from '../runtime.js';
16
+ import {
17
+ type StandaloneClusterRequirementsRequest,
18
+ StandaloneClusterRequirementsRequestFromJSON,
19
+ StandaloneClusterRequirementsRequestToJSON,
20
+ } from '../models/StandaloneClusterRequirementsRequest.js';
21
+ import {
22
+ type StandaloneClusterRequirementsResponse,
23
+ StandaloneClusterRequirementsResponseFromJSON,
24
+ StandaloneClusterRequirementsResponseToJSON,
25
+ } from '../models/StandaloneClusterRequirementsResponse.js';
26
+
27
+ export interface CalculateClusterRequirementsRequest {
28
+ standaloneClusterRequirementsRequest: StandaloneClusterRequirementsRequest;
29
+ }
30
+
31
+ /**
32
+ * SizingApi - interface
33
+ *
34
+ * @export
35
+ * @interface SizingApiInterface
36
+ */
37
+ export interface SizingApiInterface {
38
+ /**
39
+ * Creates request options for calculateClusterRequirements without sending the request
40
+ * @param {StandaloneClusterRequirementsRequest} standaloneClusterRequirementsRequest
41
+ * @throws {RequiredError}
42
+ * @memberof SizingApiInterface
43
+ */
44
+ calculateClusterRequirementsRequestOpts(requestParameters: CalculateClusterRequirementsRequest): Promise<runtime.RequestOpts>;
45
+
46
+ /**
47
+ * Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
48
+ * @param {StandaloneClusterRequirementsRequest} standaloneClusterRequirementsRequest
49
+ * @param {*} [options] Override http request option.
50
+ * @throws {RequiredError}
51
+ * @memberof SizingApiInterface
52
+ */
53
+ calculateClusterRequirementsRaw(requestParameters: CalculateClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StandaloneClusterRequirementsResponse>>;
54
+
55
+ /**
56
+ * Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
57
+ */
58
+ calculateClusterRequirements(requestParameters: CalculateClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StandaloneClusterRequirementsResponse>;
59
+
60
+ }
61
+
62
+ /**
63
+ *
64
+ */
65
+ export class SizingApi extends runtime.BaseAPI implements SizingApiInterface {
66
+
67
+ /**
68
+ * Creates request options for calculateClusterRequirements without sending the request
69
+ */
70
+ async calculateClusterRequirementsRequestOpts(requestParameters: CalculateClusterRequirementsRequest): Promise<runtime.RequestOpts> {
71
+ if (requestParameters['standaloneClusterRequirementsRequest'] == null) {
72
+ throw new runtime.RequiredError(
73
+ 'standaloneClusterRequirementsRequest',
74
+ 'Required parameter "standaloneClusterRequirementsRequest" was null or undefined when calling calculateClusterRequirements().'
75
+ );
76
+ }
77
+
78
+ const queryParameters: any = {};
79
+
80
+ const headerParameters: runtime.HTTPHeaders = {};
81
+
82
+ headerParameters['Content-Type'] = 'application/json';
83
+
84
+
85
+ let urlPath = `/api/v1/cluster-requirements`;
86
+
87
+ return {
88
+ path: urlPath,
89
+ method: 'POST',
90
+ headers: headerParameters,
91
+ query: queryParameters,
92
+ body: StandaloneClusterRequirementsRequestToJSON(requestParameters['standaloneClusterRequirementsRequest']),
93
+ };
94
+ }
95
+
96
+ /**
97
+ * Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
98
+ */
99
+ async calculateClusterRequirementsRaw(requestParameters: CalculateClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StandaloneClusterRequirementsResponse>> {
100
+ const requestOptions = await this.calculateClusterRequirementsRequestOpts(requestParameters);
101
+ const response = await this.request(requestOptions, initOverrides);
102
+
103
+ return new runtime.JSONApiResponse(response, (jsonValue) => StandaloneClusterRequirementsResponseFromJSON(jsonValue));
104
+ }
105
+
106
+ /**
107
+ * Calculate cluster requirements for hypothetical workload with inline inventory data (no assessment required)
108
+ */
109
+ async calculateClusterRequirements(requestParameters: CalculateClusterRequirementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StandaloneClusterRequirementsResponse> {
110
+ const response = await this.calculateClusterRequirementsRaw(requestParameters, initOverrides);
111
+ return await response.value();
112
+ }
113
+
114
+ }
@@ -28,11 +28,6 @@ import {
28
28
  SourceUpdateFromJSON,
29
29
  SourceUpdateToJSON,
30
30
  } from '../models/SourceUpdate.js';
31
- import {
32
- type Status,
33
- StatusFromJSON,
34
- StatusToJSON,
35
- } from '../models/Status.js';
36
31
  import {
37
32
  type UpdateInventory,
38
33
  UpdateInventoryFromJSON,
@@ -112,26 +107,6 @@ export interface SourceApiInterface {
112
107
  */
113
108
  deleteSource(requestParameters: DeleteSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
114
109
 
115
- /**
116
- * Creates request options for deleteSources without sending the request
117
- * @throws {RequiredError}
118
- * @memberof SourceApiInterface
119
- */
120
- deleteSourcesRequestOpts(): Promise<runtime.RequestOpts>;
121
-
122
- /**
123
- * delete a collection of sources
124
- * @param {*} [options] Override http request option.
125
- * @throws {RequiredError}
126
- * @memberof SourceApiInterface
127
- */
128
- deleteSourcesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
129
-
130
- /**
131
- * delete a collection of sources
132
- */
133
- deleteSources(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
134
-
135
110
  /**
136
111
  * Creates request options for getSource without sending the request
137
112
  * @param {string} id ID of the source
@@ -321,43 +296,6 @@ export class SourceApi extends runtime.BaseAPI implements SourceApiInterface {
321
296
  return await response.value();
322
297
  }
323
298
 
324
- /**
325
- * Creates request options for deleteSources without sending the request
326
- */
327
- async deleteSourcesRequestOpts(): Promise<runtime.RequestOpts> {
328
- const queryParameters: any = {};
329
-
330
- const headerParameters: runtime.HTTPHeaders = {};
331
-
332
-
333
- let urlPath = `/api/v1/sources`;
334
-
335
- return {
336
- path: urlPath,
337
- method: 'DELETE',
338
- headers: headerParameters,
339
- query: queryParameters,
340
- };
341
- }
342
-
343
- /**
344
- * delete a collection of sources
345
- */
346
- async deleteSourcesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>> {
347
- const requestOptions = await this.deleteSourcesRequestOpts();
348
- const response = await this.request(requestOptions, initOverrides);
349
-
350
- return new runtime.JSONApiResponse(response, (jsonValue) => StatusFromJSON(jsonValue));
351
- }
352
-
353
- /**
354
- * delete a collection of sources
355
- */
356
- async deleteSources(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status> {
357
- const response = await this.deleteSourcesRaw(initOverrides);
358
- return await response.value();
359
- }
360
-
361
299
  /**
362
300
  * Creates request options for getSource without sending the request
363
301
  */
package/src/apis/index.ts CHANGED
@@ -7,4 +7,5 @@ export * from './ImageApi.js';
7
7
  export * from './InfoApi.js';
8
8
  export * from './JobApi.js';
9
9
  export * from './PartnerApi.js';
10
+ export * from './SizingApi.js';
10
11
  export * from './SourceApi.js';