@openshift-migration-advisor/agent-sdk 0.18.0-c896a2e1a4de → 0.19.0-a1ea9f4f3a71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/dist/apis/DefaultApi.d.ts +11 -0
- package/dist/apis/DefaultApi.js +11 -1
- package/dist/esm/apis/DefaultApi.d.ts +11 -0
- package/dist/esm/apis/DefaultApi.js +10 -0
- package/docs/DefaultApi.md +6 -3
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +16 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.25.0-SNAPSHOT
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/agent-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/agent-sdk@0.19.0-a1ea9f4f3a71
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -201,8 +201,8 @@ and is automatically generated by the
|
|
|
201
201
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
202
202
|
|
|
203
203
|
- API version: `v1`
|
|
204
|
-
- Package version: `0.
|
|
205
|
-
- Generator version: `7.
|
|
204
|
+
- Package version: `0.19.0-a1ea9f4f3a71`
|
|
205
|
+
- Generator version: `7.25.0-SNAPSHOT`
|
|
206
206
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
207
207
|
|
|
208
208
|
The generated npm module supports the following:
|
|
@@ -70,6 +70,7 @@ export interface DeleteLabelGloballyRequest {
|
|
|
70
70
|
}
|
|
71
71
|
export interface ExportInventoryRequest {
|
|
72
72
|
scope?: string;
|
|
73
|
+
format?: ExportInventoryFormatEnum;
|
|
73
74
|
}
|
|
74
75
|
export interface GetClusterUtilizationRequest {
|
|
75
76
|
clusterId: string;
|
|
@@ -301,6 +302,7 @@ export interface DefaultApiInterface {
|
|
|
301
302
|
/**
|
|
302
303
|
* Creates request options for exportInventory without sending the request
|
|
303
304
|
* @param {string} [scope] Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection
|
|
305
|
+
* @param {'zip' | 'xlsx'} [format] Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope)
|
|
304
306
|
* @throws {RequiredError}
|
|
305
307
|
* @memberof DefaultApiInterface
|
|
306
308
|
*/
|
|
@@ -309,6 +311,7 @@ export interface DefaultApiInterface {
|
|
|
309
311
|
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
310
312
|
* @summary Export VM inventory and migration planning data
|
|
311
313
|
* @param {string} [scope] Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection
|
|
314
|
+
* @param {'zip' | 'xlsx'} [format] Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope)
|
|
312
315
|
* @param {*} [options] Override http request option.
|
|
313
316
|
* @throws {RequiredError}
|
|
314
317
|
* @memberof DefaultApiInterface
|
|
@@ -1825,3 +1828,11 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
1825
1828
|
*/
|
|
1826
1829
|
validateInspectorCredentials(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1827
1830
|
}
|
|
1831
|
+
/**
|
|
1832
|
+
* @export
|
|
1833
|
+
*/
|
|
1834
|
+
export declare const ExportInventoryFormatEnum: {
|
|
1835
|
+
readonly Zip: "zip";
|
|
1836
|
+
readonly Xlsx: "xlsx";
|
|
1837
|
+
};
|
|
1838
|
+
export type ExportInventoryFormatEnum = typeof ExportInventoryFormatEnum[keyof typeof ExportInventoryFormatEnum];
|
package/dist/apis/DefaultApi.js
CHANGED
|
@@ -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.DefaultApi = void 0;
|
|
25
|
+
exports.ExportInventoryFormatEnum = exports.DefaultApi = void 0;
|
|
26
26
|
const runtime = require("../runtime.js");
|
|
27
27
|
const AgentModeRequest_js_1 = require("../models/AgentModeRequest.js");
|
|
28
28
|
const AgentStatus_js_1 = require("../models/AgentStatus.js");
|
|
@@ -310,6 +310,9 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
310
310
|
if (requestParameters['scope'] != null) {
|
|
311
311
|
queryParameters['scope'] = requestParameters['scope'];
|
|
312
312
|
}
|
|
313
|
+
if (requestParameters['format'] != null) {
|
|
314
|
+
queryParameters['format'] = requestParameters['format'];
|
|
315
|
+
}
|
|
313
316
|
const headerParameters = {};
|
|
314
317
|
let urlPath = `/export`;
|
|
315
318
|
return {
|
|
@@ -2054,3 +2057,10 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
2054
2057
|
}
|
|
2055
2058
|
}
|
|
2056
2059
|
exports.DefaultApi = DefaultApi;
|
|
2060
|
+
/**
|
|
2061
|
+
* @export
|
|
2062
|
+
*/
|
|
2063
|
+
exports.ExportInventoryFormatEnum = {
|
|
2064
|
+
Zip: 'zip',
|
|
2065
|
+
Xlsx: 'xlsx'
|
|
2066
|
+
};
|
|
@@ -70,6 +70,7 @@ export interface DeleteLabelGloballyRequest {
|
|
|
70
70
|
}
|
|
71
71
|
export interface ExportInventoryRequest {
|
|
72
72
|
scope?: string;
|
|
73
|
+
format?: ExportInventoryFormatEnum;
|
|
73
74
|
}
|
|
74
75
|
export interface GetClusterUtilizationRequest {
|
|
75
76
|
clusterId: string;
|
|
@@ -301,6 +302,7 @@ export interface DefaultApiInterface {
|
|
|
301
302
|
/**
|
|
302
303
|
* Creates request options for exportInventory without sending the request
|
|
303
304
|
* @param {string} [scope] Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection
|
|
305
|
+
* @param {'zip' | 'xlsx'} [format] Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope)
|
|
304
306
|
* @throws {RequiredError}
|
|
305
307
|
* @memberof DefaultApiInterface
|
|
306
308
|
*/
|
|
@@ -309,6 +311,7 @@ export interface DefaultApiInterface {
|
|
|
309
311
|
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
310
312
|
* @summary Export VM inventory and migration planning data
|
|
311
313
|
* @param {string} [scope] Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection
|
|
314
|
+
* @param {'zip' | 'xlsx'} [format] Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope)
|
|
312
315
|
* @param {*} [options] Override http request option.
|
|
313
316
|
* @throws {RequiredError}
|
|
314
317
|
* @memberof DefaultApiInterface
|
|
@@ -1825,3 +1828,11 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
|
|
|
1825
1828
|
*/
|
|
1826
1829
|
validateInspectorCredentials(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1827
1830
|
}
|
|
1831
|
+
/**
|
|
1832
|
+
* @export
|
|
1833
|
+
*/
|
|
1834
|
+
export declare const ExportInventoryFormatEnum: {
|
|
1835
|
+
readonly Zip: "zip";
|
|
1836
|
+
readonly Xlsx: "xlsx";
|
|
1837
|
+
};
|
|
1838
|
+
export type ExportInventoryFormatEnum = typeof ExportInventoryFormatEnum[keyof typeof ExportInventoryFormatEnum];
|
|
@@ -307,6 +307,9 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
307
307
|
if (requestParameters['scope'] != null) {
|
|
308
308
|
queryParameters['scope'] = requestParameters['scope'];
|
|
309
309
|
}
|
|
310
|
+
if (requestParameters['format'] != null) {
|
|
311
|
+
queryParameters['format'] = requestParameters['format'];
|
|
312
|
+
}
|
|
310
313
|
const headerParameters = {};
|
|
311
314
|
let urlPath = `/export`;
|
|
312
315
|
return {
|
|
@@ -2050,3 +2053,10 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2050
2053
|
});
|
|
2051
2054
|
}
|
|
2052
2055
|
}
|
|
2056
|
+
/**
|
|
2057
|
+
* @export
|
|
2058
|
+
*/
|
|
2059
|
+
export const ExportInventoryFormatEnum = {
|
|
2060
|
+
Zip: 'zip',
|
|
2061
|
+
Xlsx: 'xlsx'
|
|
2062
|
+
};
|
package/docs/DefaultApi.md
CHANGED
|
@@ -455,7 +455,7 @@ No authorization required
|
|
|
455
455
|
|
|
456
456
|
## exportInventory
|
|
457
457
|
|
|
458
|
-
> Blob exportInventory(scope)
|
|
458
|
+
> Blob exportInventory(scope, format)
|
|
459
459
|
|
|
460
460
|
Export VM inventory and migration planning data
|
|
461
461
|
|
|
@@ -477,6 +477,8 @@ async function example() {
|
|
|
477
477
|
const body = {
|
|
478
478
|
// string | Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection (optional)
|
|
479
479
|
scope: overview,hosts,vms,
|
|
480
|
+
// 'zip' | 'xlsx' | Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope) (optional)
|
|
481
|
+
format: format_example,
|
|
480
482
|
} satisfies ExportInventoryRequest;
|
|
481
483
|
|
|
482
484
|
try {
|
|
@@ -497,6 +499,7 @@ example().catch(console.error);
|
|
|
497
499
|
| Name | Type | Description | Notes |
|
|
498
500
|
|------------- | ------------- | ------------- | -------------|
|
|
499
501
|
| **scope** | `string` | Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection | [Optional] [Defaults to `undefined`] |
|
|
502
|
+
| **format** | `zip`, `xlsx` | Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope) | [Optional] [Defaults to `'zip'`] [Enum: zip, xlsx] |
|
|
500
503
|
|
|
501
504
|
### Return type
|
|
502
505
|
|
|
@@ -509,13 +512,13 @@ No authorization required
|
|
|
509
512
|
### HTTP request headers
|
|
510
513
|
|
|
511
514
|
- **Content-Type**: Not defined
|
|
512
|
-
- **Accept**: `application/zip`, `application/json`
|
|
515
|
+
- **Accept**: `application/zip`, `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`, `application/json`
|
|
513
516
|
|
|
514
517
|
|
|
515
518
|
### HTTP response details
|
|
516
519
|
| Status code | Description | Response headers |
|
|
517
520
|
|-------------|-------------|------------------|
|
|
518
|
-
| **200** | ZIP archive containing CSV files
|
|
521
|
+
| **200** | ZIP archive containing CSV files or Excel workbook | - |
|
|
519
522
|
| **400** | Invalid scope name | - |
|
|
520
523
|
| **500** | Internal server error | - |
|
|
521
524
|
|
package/package.json
CHANGED
package/src/apis/DefaultApi.ts
CHANGED
|
@@ -266,6 +266,7 @@ export interface DeleteLabelGloballyRequest {
|
|
|
266
266
|
|
|
267
267
|
export interface ExportInventoryRequest {
|
|
268
268
|
scope?: string;
|
|
269
|
+
format?: ExportInventoryFormatEnum;
|
|
269
270
|
}
|
|
270
271
|
|
|
271
272
|
export interface GetClusterUtilizationRequest {
|
|
@@ -545,6 +546,7 @@ export interface DefaultApiInterface {
|
|
|
545
546
|
/**
|
|
546
547
|
* Creates request options for exportInventory without sending the request
|
|
547
548
|
* @param {string} [scope] Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection
|
|
549
|
+
* @param {'zip' | 'xlsx'} [format] Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope)
|
|
548
550
|
* @throws {RequiredError}
|
|
549
551
|
* @memberof DefaultApiInterface
|
|
550
552
|
*/
|
|
@@ -554,6 +556,7 @@ export interface DefaultApiInterface {
|
|
|
554
556
|
* Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
555
557
|
* @summary Export VM inventory and migration planning data
|
|
556
558
|
* @param {string} [scope] Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection
|
|
559
|
+
* @param {'zip' | 'xlsx'} [format] Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope)
|
|
557
560
|
* @param {*} [options] Override http request option.
|
|
558
561
|
* @throws {RequiredError}
|
|
559
562
|
* @memberof DefaultApiInterface
|
|
@@ -1848,6 +1851,10 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1848
1851
|
queryParameters['scope'] = requestParameters['scope'];
|
|
1849
1852
|
}
|
|
1850
1853
|
|
|
1854
|
+
if (requestParameters['format'] != null) {
|
|
1855
|
+
queryParameters['format'] = requestParameters['format'];
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1851
1858
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1852
1859
|
|
|
1853
1860
|
|
|
@@ -3818,3 +3825,12 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
3818
3825
|
}
|
|
3819
3826
|
|
|
3820
3827
|
}
|
|
3828
|
+
|
|
3829
|
+
/**
|
|
3830
|
+
* @export
|
|
3831
|
+
*/
|
|
3832
|
+
export const ExportInventoryFormatEnum = {
|
|
3833
|
+
Zip: 'zip',
|
|
3834
|
+
Xlsx: 'xlsx'
|
|
3835
|
+
} as const;
|
|
3836
|
+
export type ExportInventoryFormatEnum = typeof ExportInventoryFormatEnum[keyof typeof ExportInventoryFormatEnum];
|