@openshift-migration-advisor/planner-sdk 0.13.4 → 0.13.5
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/README.md +2 -3
- package/dist/apis/SourceApi.d.ts +0 -30
- package/dist/apis/SourceApi.js +0 -36
- package/dist/esm/apis/SourceApi.d.ts +0 -30
- package/dist/esm/apis/SourceApi.js +0 -36
- package/docs/ImageApi.md +2 -0
- package/docs/SourceApi.md +0 -62
- package/package.json +1 -1
- package/src/apis/SourceApi.ts +0 -62
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.13.
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.13.5
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -91,7 +91,6 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
91
91
|
*SizingApi* | [**calculateClusterRequirements**](docs/SizingApi.md#calculateclusterrequirements) | **POST** /api/v1/cluster-requirements |
|
|
92
92
|
*SourceApi* | [**createSource**](docs/SourceApi.md#createsource) | **POST** /api/v1/sources |
|
|
93
93
|
*SourceApi* | [**deleteSource**](docs/SourceApi.md#deletesource) | **DELETE** /api/v1/sources/{id} |
|
|
94
|
-
*SourceApi* | [**deleteSources**](docs/SourceApi.md#deletesources) | **DELETE** /api/v1/sources |
|
|
95
94
|
*SourceApi* | [**getSource**](docs/SourceApi.md#getsource) | **GET** /api/v1/sources/{id} |
|
|
96
95
|
*SourceApi* | [**listSources**](docs/SourceApi.md#listsources) | **GET** /api/v1/sources |
|
|
97
96
|
*SourceApi* | [**updateInventory**](docs/SourceApi.md#updateinventory) | **PUT** /api/v1/sources/{id}/inventory |
|
|
@@ -188,7 +187,7 @@ and is automatically generated by the
|
|
|
188
187
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
189
188
|
|
|
190
189
|
- API version: `v1alpha1`
|
|
191
|
-
- Package version: `0.13.
|
|
190
|
+
- Package version: `0.13.5`
|
|
192
191
|
- Generator version: `7.23.0-SNAPSHOT`
|
|
193
192
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
194
193
|
|
package/dist/apis/SourceApi.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ import * as runtime from '../runtime.js';
|
|
|
13
13
|
import { type Source } from '../models/Source.js';
|
|
14
14
|
import { type SourceCreate } from '../models/SourceCreate.js';
|
|
15
15
|
import { type SourceUpdate } from '../models/SourceUpdate.js';
|
|
16
|
-
import { type Status } from '../models/Status.js';
|
|
17
16
|
import { type UpdateInventory } from '../models/UpdateInventory.js';
|
|
18
17
|
export interface CreateSourceRequest {
|
|
19
18
|
sourceCreate: SourceCreate;
|
|
@@ -77,23 +76,6 @@ export interface SourceApiInterface {
|
|
|
77
76
|
* Delete a source
|
|
78
77
|
*/
|
|
79
78
|
deleteSource(requestParameters: DeleteSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
|
|
80
|
-
/**
|
|
81
|
-
* Creates request options for deleteSources without sending the request
|
|
82
|
-
* @throws {RequiredError}
|
|
83
|
-
* @memberof SourceApiInterface
|
|
84
|
-
*/
|
|
85
|
-
deleteSourcesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
86
|
-
/**
|
|
87
|
-
* delete a collection of sources
|
|
88
|
-
* @param {*} [options] Override http request option.
|
|
89
|
-
* @throws {RequiredError}
|
|
90
|
-
* @memberof SourceApiInterface
|
|
91
|
-
*/
|
|
92
|
-
deleteSourcesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
|
|
93
|
-
/**
|
|
94
|
-
* delete a collection of sources
|
|
95
|
-
*/
|
|
96
|
-
deleteSources(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
|
|
97
79
|
/**
|
|
98
80
|
* Creates request options for getSource without sending the request
|
|
99
81
|
* @param {string} id ID of the source
|
|
@@ -201,18 +183,6 @@ export declare class SourceApi extends runtime.BaseAPI implements SourceApiInter
|
|
|
201
183
|
* Delete a source
|
|
202
184
|
*/
|
|
203
185
|
deleteSource(requestParameters: DeleteSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
|
|
204
|
-
/**
|
|
205
|
-
* Creates request options for deleteSources without sending the request
|
|
206
|
-
*/
|
|
207
|
-
deleteSourcesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
208
|
-
/**
|
|
209
|
-
* delete a collection of sources
|
|
210
|
-
*/
|
|
211
|
-
deleteSourcesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
|
|
212
|
-
/**
|
|
213
|
-
* delete a collection of sources
|
|
214
|
-
*/
|
|
215
|
-
deleteSources(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
|
|
216
186
|
/**
|
|
217
187
|
* Creates request options for getSource without sending the request
|
|
218
188
|
*/
|
package/dist/apis/SourceApi.js
CHANGED
|
@@ -27,7 +27,6 @@ const runtime = require("../runtime.js");
|
|
|
27
27
|
const Source_js_1 = require("../models/Source.js");
|
|
28
28
|
const SourceCreate_js_1 = require("../models/SourceCreate.js");
|
|
29
29
|
const SourceUpdate_js_1 = require("../models/SourceUpdate.js");
|
|
30
|
-
const Status_js_1 = require("../models/Status.js");
|
|
31
30
|
const UpdateInventory_js_1 = require("../models/UpdateInventory.js");
|
|
32
31
|
/**
|
|
33
32
|
*
|
|
@@ -112,41 +111,6 @@ class SourceApi extends runtime.BaseAPI {
|
|
|
112
111
|
return yield response.value();
|
|
113
112
|
});
|
|
114
113
|
}
|
|
115
|
-
/**
|
|
116
|
-
* Creates request options for deleteSources without sending the request
|
|
117
|
-
*/
|
|
118
|
-
deleteSourcesRequestOpts() {
|
|
119
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
120
|
-
const queryParameters = {};
|
|
121
|
-
const headerParameters = {};
|
|
122
|
-
let urlPath = `/api/v1/sources`;
|
|
123
|
-
return {
|
|
124
|
-
path: urlPath,
|
|
125
|
-
method: 'DELETE',
|
|
126
|
-
headers: headerParameters,
|
|
127
|
-
query: queryParameters,
|
|
128
|
-
};
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* delete a collection of sources
|
|
133
|
-
*/
|
|
134
|
-
deleteSourcesRaw(initOverrides) {
|
|
135
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
-
const requestOptions = yield this.deleteSourcesRequestOpts();
|
|
137
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
138
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, Status_js_1.StatusFromJSON)(jsonValue));
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* delete a collection of sources
|
|
143
|
-
*/
|
|
144
|
-
deleteSources(initOverrides) {
|
|
145
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
-
const response = yield this.deleteSourcesRaw(initOverrides);
|
|
147
|
-
return yield response.value();
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
114
|
/**
|
|
151
115
|
* Creates request options for getSource without sending the request
|
|
152
116
|
*/
|
|
@@ -13,7 +13,6 @@ import * as runtime from '../runtime.js';
|
|
|
13
13
|
import { type Source } from '../models/Source.js';
|
|
14
14
|
import { type SourceCreate } from '../models/SourceCreate.js';
|
|
15
15
|
import { type SourceUpdate } from '../models/SourceUpdate.js';
|
|
16
|
-
import { type Status } from '../models/Status.js';
|
|
17
16
|
import { type UpdateInventory } from '../models/UpdateInventory.js';
|
|
18
17
|
export interface CreateSourceRequest {
|
|
19
18
|
sourceCreate: SourceCreate;
|
|
@@ -77,23 +76,6 @@ export interface SourceApiInterface {
|
|
|
77
76
|
* Delete a source
|
|
78
77
|
*/
|
|
79
78
|
deleteSource(requestParameters: DeleteSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
|
|
80
|
-
/**
|
|
81
|
-
* Creates request options for deleteSources without sending the request
|
|
82
|
-
* @throws {RequiredError}
|
|
83
|
-
* @memberof SourceApiInterface
|
|
84
|
-
*/
|
|
85
|
-
deleteSourcesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
86
|
-
/**
|
|
87
|
-
* delete a collection of sources
|
|
88
|
-
* @param {*} [options] Override http request option.
|
|
89
|
-
* @throws {RequiredError}
|
|
90
|
-
* @memberof SourceApiInterface
|
|
91
|
-
*/
|
|
92
|
-
deleteSourcesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
|
|
93
|
-
/**
|
|
94
|
-
* delete a collection of sources
|
|
95
|
-
*/
|
|
96
|
-
deleteSources(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
|
|
97
79
|
/**
|
|
98
80
|
* Creates request options for getSource without sending the request
|
|
99
81
|
* @param {string} id ID of the source
|
|
@@ -201,18 +183,6 @@ export declare class SourceApi extends runtime.BaseAPI implements SourceApiInter
|
|
|
201
183
|
* Delete a source
|
|
202
184
|
*/
|
|
203
185
|
deleteSource(requestParameters: DeleteSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
|
|
204
|
-
/**
|
|
205
|
-
* Creates request options for deleteSources without sending the request
|
|
206
|
-
*/
|
|
207
|
-
deleteSourcesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
208
|
-
/**
|
|
209
|
-
* delete a collection of sources
|
|
210
|
-
*/
|
|
211
|
-
deleteSourcesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
|
|
212
|
-
/**
|
|
213
|
-
* delete a collection of sources
|
|
214
|
-
*/
|
|
215
|
-
deleteSources(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
|
|
216
186
|
/**
|
|
217
187
|
* Creates request options for getSource without sending the request
|
|
218
188
|
*/
|
|
@@ -24,7 +24,6 @@ import * as runtime from '../runtime.js';
|
|
|
24
24
|
import { SourceFromJSON, } from '../models/Source.js';
|
|
25
25
|
import { SourceCreateToJSON, } from '../models/SourceCreate.js';
|
|
26
26
|
import { SourceUpdateToJSON, } from '../models/SourceUpdate.js';
|
|
27
|
-
import { StatusFromJSON, } from '../models/Status.js';
|
|
28
27
|
import { UpdateInventoryToJSON, } from '../models/UpdateInventory.js';
|
|
29
28
|
/**
|
|
30
29
|
*
|
|
@@ -109,41 +108,6 @@ export class SourceApi extends runtime.BaseAPI {
|
|
|
109
108
|
return yield response.value();
|
|
110
109
|
});
|
|
111
110
|
}
|
|
112
|
-
/**
|
|
113
|
-
* Creates request options for deleteSources without sending the request
|
|
114
|
-
*/
|
|
115
|
-
deleteSourcesRequestOpts() {
|
|
116
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
-
const queryParameters = {};
|
|
118
|
-
const headerParameters = {};
|
|
119
|
-
let urlPath = `/api/v1/sources`;
|
|
120
|
-
return {
|
|
121
|
-
path: urlPath,
|
|
122
|
-
method: 'DELETE',
|
|
123
|
-
headers: headerParameters,
|
|
124
|
-
query: queryParameters,
|
|
125
|
-
};
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* delete a collection of sources
|
|
130
|
-
*/
|
|
131
|
-
deleteSourcesRaw(initOverrides) {
|
|
132
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
-
const requestOptions = yield this.deleteSourcesRequestOpts();
|
|
134
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
135
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => StatusFromJSON(jsonValue));
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* delete a collection of sources
|
|
140
|
-
*/
|
|
141
|
-
deleteSources(initOverrides) {
|
|
142
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
-
const response = yield this.deleteSourcesRaw(initOverrides);
|
|
144
|
-
return yield response.value();
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
111
|
/**
|
|
148
112
|
* Creates request options for getSource without sending the request
|
|
149
113
|
*/
|
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
|
|
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)
|
package/package.json
CHANGED
package/src/apis/SourceApi.ts
CHANGED
|
@@ -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
|
*/
|