@openshift-migration-advisor/agent-sdk 0.20.2-01f58bf215ef → 0.20.2-423f685e3a07

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 CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/agent-sdk@0.20.2-01f58bf215ef
1
+ # @openshift-migration-advisor/agent-sdk@0.20.2-423f685e3a07
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -50,7 +50,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
50
50
  *ApplicationsApi* | [**listApplications**](docs/ApplicationsApi.md#listapplications) | **GET** /collections/{id}/applications | List detected applications in a collection
51
51
  *CollectionsApi* | [**compareCollections**](docs/CollectionsApi.md#comparecollections) | **GET** /collections/compare/{aId}/{bId} | Compare two collections — returns aggregates and diffs
52
52
  *CollectionsApi* | [**compareCollectionsDiff**](docs/CollectionsApi.md#comparecollectionsdiff) | **GET** /collections/compare/{aId}/{bId}/{dimension} | Drill down — VM IDs that differ between two collections for a given dimension
53
- *CollectionsApi* | [**exportCollection**](docs/CollectionsApi.md#exportcollection) | **GET** /collections/{id}/export | Export collection data as CSV ZIP archive
53
+ *CollectionsApi* | [**exportCollection**](docs/CollectionsApi.md#exportcollection) | **GET** /collections/{id}/export | Export collection data as CSV ZIP archive or Excel workbook
54
54
  *CollectionsApi* | [**listCollections**](docs/CollectionsApi.md#listcollections) | **GET** /collections | List all collections
55
55
  *CollectorApi* | [**getCollectorStatus**](docs/CollectorApi.md#getcollectorstatus) | **GET** /collector | Get collector status
56
56
  *CollectorApi* | [**startCollector**](docs/CollectorApi.md#startcollector) | **POST** /collector | Start a collection
@@ -197,7 +197,7 @@ and is automatically generated by the
197
197
  [OpenAPI Generator](https://openapi-generator.tech) project:
198
198
 
199
199
  - API version: `v2`
200
- - Package version: `0.20.2-01f58bf215ef`
200
+ - Package version: `0.20.2-423f685e3a07`
201
201
  - Generator version: `7.25.0-SNAPSHOT`
202
202
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
203
203
 
@@ -54,6 +54,10 @@ export interface ExportCollectionRequest {
54
54
  * Comma-separated export scopes (e.g., "overview,vms,groups"). Defaults to "overview".
55
55
  */
56
56
  scope?: string;
57
+ /**
58
+ * Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope)
59
+ */
60
+ format?: ExportCollectionFormatEnum;
57
61
  }
58
62
  /**
59
63
  * CollectionsApi - interface
@@ -116,22 +120,24 @@ export interface CollectionsApiInterface {
116
120
  * Creates request options for exportCollection without sending the request
117
121
  * @param {string} id Collection ID
118
122
  * @param {string} [scope] Comma-separated export scopes (e.g., \"overview,vms,groups\"). Defaults to \"overview\".
123
+ * @param {'zip' | 'xlsx'} [format] Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope)
119
124
  * @throws {RequiredError}
120
125
  * @memberof CollectionsApiInterface
121
126
  */
122
127
  exportCollectionRequestOpts(requestParameters: ExportCollectionRequest): Promise<runtime.RequestOpts>;
123
128
  /**
124
129
  *
125
- * @summary Export collection data as CSV ZIP archive
130
+ * @summary Export collection data as CSV ZIP archive or Excel workbook
126
131
  * @param {string} id Collection ID
127
132
  * @param {string} [scope] Comma-separated export scopes (e.g., \&quot;overview,vms,groups\&quot;). Defaults to \&quot;overview\&quot;.
133
+ * @param {'zip' | 'xlsx'} [format] Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope)
128
134
  * @param {*} [options] Override http request option.
129
135
  * @throws {RequiredError}
130
136
  * @memberof CollectionsApiInterface
131
137
  */
132
138
  exportCollectionRaw(requestParameters: ExportCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
133
139
  /**
134
- * Export collection data as CSV ZIP archive
140
+ * Export collection data as CSV ZIP archive or Excel workbook
135
141
  */
136
142
  exportCollection(requestParameters: ExportCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
137
143
  /**
@@ -186,11 +192,11 @@ export declare class CollectionsApi extends runtime.BaseAPI implements Collectio
186
192
  */
187
193
  exportCollectionRequestOpts(requestParameters: ExportCollectionRequest): Promise<runtime.RequestOpts>;
188
194
  /**
189
- * Export collection data as CSV ZIP archive
195
+ * Export collection data as CSV ZIP archive or Excel workbook
190
196
  */
191
197
  exportCollectionRaw(requestParameters: ExportCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
192
198
  /**
193
- * Export collection data as CSV ZIP archive
199
+ * Export collection data as CSV ZIP archive or Excel workbook
194
200
  */
195
201
  exportCollection(requestParameters: ExportCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
196
202
  /**
@@ -215,3 +221,11 @@ export declare const CompareCollectionsDiffDimensionEnum: {
215
221
  readonly NonMigratable: "non-migratable";
216
222
  };
217
223
  export type CompareCollectionsDiffDimensionEnum = typeof CompareCollectionsDiffDimensionEnum[keyof typeof CompareCollectionsDiffDimensionEnum];
224
+ /**
225
+ * @export
226
+ */
227
+ export declare const ExportCollectionFormatEnum: {
228
+ readonly Zip: "zip";
229
+ readonly Xlsx: "xlsx";
230
+ };
231
+ export type ExportCollectionFormatEnum = typeof ExportCollectionFormatEnum[keyof typeof ExportCollectionFormatEnum];
@@ -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.CompareCollectionsDiffDimensionEnum = exports.CollectionsApi = void 0;
25
+ exports.ExportCollectionFormatEnum = exports.CompareCollectionsDiffDimensionEnum = exports.CollectionsApi = void 0;
26
26
  const runtime = require("../runtime.js");
27
27
  const CollectionComparisonDiff_js_1 = require("../models/CollectionComparisonDiff.js");
28
28
  const CollectionComparisonSummary_js_1 = require("../models/CollectionComparisonSummary.js");
@@ -139,6 +139,9 @@ class CollectionsApi extends runtime.BaseAPI {
139
139
  if (requestParameters['scope'] != null) {
140
140
  queryParameters['scope'] = requestParameters['scope'];
141
141
  }
142
+ if (requestParameters['format'] != null) {
143
+ queryParameters['format'] = requestParameters['format'];
144
+ }
142
145
  const headerParameters = {};
143
146
  let urlPath = `/collections/{id}/export`;
144
147
  urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
@@ -151,7 +154,7 @@ class CollectionsApi extends runtime.BaseAPI {
151
154
  });
152
155
  }
153
156
  /**
154
- * Export collection data as CSV ZIP archive
157
+ * Export collection data as CSV ZIP archive or Excel workbook
155
158
  */
156
159
  exportCollectionRaw(requestParameters, initOverrides) {
157
160
  return __awaiter(this, void 0, void 0, function* () {
@@ -161,7 +164,7 @@ class CollectionsApi extends runtime.BaseAPI {
161
164
  });
162
165
  }
163
166
  /**
164
- * Export collection data as CSV ZIP archive
167
+ * Export collection data as CSV ZIP archive or Excel workbook
165
168
  */
166
169
  exportCollection(requestParameters, initOverrides) {
167
170
  return __awaiter(this, void 0, void 0, function* () {
@@ -214,3 +217,10 @@ exports.CompareCollectionsDiffDimensionEnum = {
214
217
  Migratable: 'migratable',
215
218
  NonMigratable: 'non-migratable'
216
219
  };
220
+ /**
221
+ * @export
222
+ */
223
+ exports.ExportCollectionFormatEnum = {
224
+ Zip: 'zip',
225
+ Xlsx: 'xlsx'
226
+ };
@@ -54,6 +54,10 @@ export interface ExportCollectionRequest {
54
54
  * Comma-separated export scopes (e.g., "overview,vms,groups"). Defaults to "overview".
55
55
  */
56
56
  scope?: string;
57
+ /**
58
+ * Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope)
59
+ */
60
+ format?: ExportCollectionFormatEnum;
57
61
  }
58
62
  /**
59
63
  * CollectionsApi - interface
@@ -116,22 +120,24 @@ export interface CollectionsApiInterface {
116
120
  * Creates request options for exportCollection without sending the request
117
121
  * @param {string} id Collection ID
118
122
  * @param {string} [scope] Comma-separated export scopes (e.g., \&quot;overview,vms,groups\&quot;). Defaults to \&quot;overview\&quot;.
123
+ * @param {'zip' | 'xlsx'} [format] Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope)
119
124
  * @throws {RequiredError}
120
125
  * @memberof CollectionsApiInterface
121
126
  */
122
127
  exportCollectionRequestOpts(requestParameters: ExportCollectionRequest): Promise<runtime.RequestOpts>;
123
128
  /**
124
129
  *
125
- * @summary Export collection data as CSV ZIP archive
130
+ * @summary Export collection data as CSV ZIP archive or Excel workbook
126
131
  * @param {string} id Collection ID
127
132
  * @param {string} [scope] Comma-separated export scopes (e.g., \&quot;overview,vms,groups\&quot;). Defaults to \&quot;overview\&quot;.
133
+ * @param {'zip' | 'xlsx'} [format] Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope)
128
134
  * @param {*} [options] Override http request option.
129
135
  * @throws {RequiredError}
130
136
  * @memberof CollectionsApiInterface
131
137
  */
132
138
  exportCollectionRaw(requestParameters: ExportCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
133
139
  /**
134
- * Export collection data as CSV ZIP archive
140
+ * Export collection data as CSV ZIP archive or Excel workbook
135
141
  */
136
142
  exportCollection(requestParameters: ExportCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
137
143
  /**
@@ -186,11 +192,11 @@ export declare class CollectionsApi extends runtime.BaseAPI implements Collectio
186
192
  */
187
193
  exportCollectionRequestOpts(requestParameters: ExportCollectionRequest): Promise<runtime.RequestOpts>;
188
194
  /**
189
- * Export collection data as CSV ZIP archive
195
+ * Export collection data as CSV ZIP archive or Excel workbook
190
196
  */
191
197
  exportCollectionRaw(requestParameters: ExportCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
192
198
  /**
193
- * Export collection data as CSV ZIP archive
199
+ * Export collection data as CSV ZIP archive or Excel workbook
194
200
  */
195
201
  exportCollection(requestParameters: ExportCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
196
202
  /**
@@ -215,3 +221,11 @@ export declare const CompareCollectionsDiffDimensionEnum: {
215
221
  readonly NonMigratable: "non-migratable";
216
222
  };
217
223
  export type CompareCollectionsDiffDimensionEnum = typeof CompareCollectionsDiffDimensionEnum[keyof typeof CompareCollectionsDiffDimensionEnum];
224
+ /**
225
+ * @export
226
+ */
227
+ export declare const ExportCollectionFormatEnum: {
228
+ readonly Zip: "zip";
229
+ readonly Xlsx: "xlsx";
230
+ };
231
+ export type ExportCollectionFormatEnum = typeof ExportCollectionFormatEnum[keyof typeof ExportCollectionFormatEnum];
@@ -136,6 +136,9 @@ export class CollectionsApi extends runtime.BaseAPI {
136
136
  if (requestParameters['scope'] != null) {
137
137
  queryParameters['scope'] = requestParameters['scope'];
138
138
  }
139
+ if (requestParameters['format'] != null) {
140
+ queryParameters['format'] = requestParameters['format'];
141
+ }
139
142
  const headerParameters = {};
140
143
  let urlPath = `/collections/{id}/export`;
141
144
  urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
@@ -148,7 +151,7 @@ export class CollectionsApi extends runtime.BaseAPI {
148
151
  });
149
152
  }
150
153
  /**
151
- * Export collection data as CSV ZIP archive
154
+ * Export collection data as CSV ZIP archive or Excel workbook
152
155
  */
153
156
  exportCollectionRaw(requestParameters, initOverrides) {
154
157
  return __awaiter(this, void 0, void 0, function* () {
@@ -158,7 +161,7 @@ export class CollectionsApi extends runtime.BaseAPI {
158
161
  });
159
162
  }
160
163
  /**
161
- * Export collection data as CSV ZIP archive
164
+ * Export collection data as CSV ZIP archive or Excel workbook
162
165
  */
163
166
  exportCollection(requestParameters, initOverrides) {
164
167
  return __awaiter(this, void 0, void 0, function* () {
@@ -210,3 +213,10 @@ export const CompareCollectionsDiffDimensionEnum = {
210
213
  Migratable: 'migratable',
211
214
  NonMigratable: 'non-migratable'
212
215
  };
216
+ /**
217
+ * @export
218
+ */
219
+ export const ExportCollectionFormatEnum = {
220
+ Zip: 'zip',
221
+ Xlsx: 'xlsx'
222
+ };
@@ -59,7 +59,7 @@ export function BenchmarkRunFromJSONTyped(json, ignoreDiscriminator) {
59
59
  'throughputMBps': json['throughputMBps'],
60
60
  'method': json['method'],
61
61
  'error': json['error'] == null ? undefined : json['error'],
62
- 'createdAt': (new Date(json['createdAt'])),
62
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
63
63
  };
64
64
  }
65
65
  export function BenchmarkRunToJSON(json) {
@@ -82,6 +82,6 @@ export function BenchmarkRunToJSONTyped(value, ignoreDiscriminator = false) {
82
82
  'throughputMBps': value['throughputMBps'],
83
83
  'method': value['method'],
84
84
  'error': value['error'],
85
- 'createdAt': value['createdAt'].toISOString(),
85
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
86
86
  };
87
87
  }
@@ -33,7 +33,7 @@ export function CollectionFromJSONTyped(json, ignoreDiscriminator) {
33
33
  return {
34
34
  'id': json['id'],
35
35
  'name': json['name'],
36
- 'createdAt': (new Date(json['createdAt'])),
36
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
37
37
  };
38
38
  }
39
39
  export function CollectionToJSON(json) {
@@ -46,6 +46,6 @@ export function CollectionToJSONTyped(value, ignoreDiscriminator = false) {
46
46
  return {
47
47
  'id': value['id'],
48
48
  'name': value['name'],
49
- 'createdAt': value['createdAt'].toISOString(),
49
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
50
50
  };
51
51
  }
@@ -38,7 +38,7 @@ export function CollectionAggregateFromJSONTyped(json, ignoreDiscriminator) {
38
38
  }
39
39
  return {
40
40
  'id': json['id'],
41
- 'createdAt': (new Date(json['createdAt'])),
41
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
42
42
  'totalVMs': json['totalVMs'],
43
43
  'migratable': json['migratable'],
44
44
  'nonMigratable': json['nonMigratable'],
@@ -54,7 +54,7 @@ export function CollectionAggregateToJSONTyped(value, ignoreDiscriminator = fals
54
54
  }
55
55
  return {
56
56
  'id': value['id'],
57
- 'createdAt': value['createdAt'].toISOString(),
57
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
58
58
  'totalVMs': value['totalVMs'],
59
59
  'migratable': value['migratable'],
60
60
  'nonMigratable': value['nonMigratable'],
@@ -34,6 +34,10 @@ export interface Inventory1 {
34
34
  *
35
35
  */
36
36
  vcenter?: InventoryData;
37
+ /**
38
+ * Timestamp when the inventory data was created or collected
39
+ */
40
+ created_at?: Date;
37
41
  }
38
42
  /**
39
43
  * Check if a given object implements the Inventory1 interface.
@@ -35,6 +35,7 @@ export function Inventory1FromJSONTyped(json, ignoreDiscriminator) {
35
35
  'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
36
36
  'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
37
37
  'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
38
+ 'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
38
39
  };
39
40
  }
40
41
  export function Inventory1ToJSON(json) {
@@ -49,5 +50,6 @@ export function Inventory1ToJSONTyped(value, ignoreDiscriminator = false) {
49
50
  'vcenter_version': value['vcenter_version'],
50
51
  'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
51
52
  'vcenter': InventoryDataToJSON(value['vcenter']),
53
+ 'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
52
54
  };
53
55
  }
@@ -66,7 +66,7 @@ function BenchmarkRunFromJSONTyped(json, ignoreDiscriminator) {
66
66
  'throughputMBps': json['throughputMBps'],
67
67
  'method': json['method'],
68
68
  'error': json['error'] == null ? undefined : json['error'],
69
- 'createdAt': (new Date(json['createdAt'])),
69
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
70
70
  };
71
71
  }
72
72
  function BenchmarkRunToJSON(json) {
@@ -89,6 +89,6 @@ function BenchmarkRunToJSONTyped(value, ignoreDiscriminator = false) {
89
89
  'throughputMBps': value['throughputMBps'],
90
90
  'method': value['method'],
91
91
  'error': value['error'],
92
- 'createdAt': value['createdAt'].toISOString(),
92
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
93
93
  };
94
94
  }
@@ -40,7 +40,7 @@ function CollectionFromJSONTyped(json, ignoreDiscriminator) {
40
40
  return {
41
41
  'id': json['id'],
42
42
  'name': json['name'],
43
- 'createdAt': (new Date(json['createdAt'])),
43
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
44
44
  };
45
45
  }
46
46
  function CollectionToJSON(json) {
@@ -53,6 +53,6 @@ function CollectionToJSONTyped(value, ignoreDiscriminator = false) {
53
53
  return {
54
54
  'id': value['id'],
55
55
  'name': value['name'],
56
- 'createdAt': value['createdAt'].toISOString(),
56
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
57
57
  };
58
58
  }
@@ -45,7 +45,7 @@ function CollectionAggregateFromJSONTyped(json, ignoreDiscriminator) {
45
45
  }
46
46
  return {
47
47
  'id': json['id'],
48
- 'createdAt': (new Date(json['createdAt'])),
48
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
49
49
  'totalVMs': json['totalVMs'],
50
50
  'migratable': json['migratable'],
51
51
  'nonMigratable': json['nonMigratable'],
@@ -61,7 +61,7 @@ function CollectionAggregateToJSONTyped(value, ignoreDiscriminator = false) {
61
61
  }
62
62
  return {
63
63
  'id': value['id'],
64
- 'createdAt': value['createdAt'].toISOString(),
64
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
65
65
  'totalVMs': value['totalVMs'],
66
66
  'migratable': value['migratable'],
67
67
  'nonMigratable': value['nonMigratable'],
@@ -34,6 +34,10 @@ export interface Inventory1 {
34
34
  *
35
35
  */
36
36
  vcenter?: InventoryData;
37
+ /**
38
+ * Timestamp when the inventory data was created or collected
39
+ */
40
+ created_at?: Date;
37
41
  }
38
42
  /**
39
43
  * Check if a given object implements the Inventory1 interface.
@@ -42,6 +42,7 @@ function Inventory1FromJSONTyped(json, ignoreDiscriminator) {
42
42
  'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
43
43
  'clusters': ((0, runtime_js_1.mapValues)(json['clusters'], InventoryData_js_1.InventoryDataFromJSON)),
44
44
  'vcenter': json['vcenter'] == null ? undefined : (0, InventoryData_js_1.InventoryDataFromJSON)(json['vcenter']),
45
+ 'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
45
46
  };
46
47
  }
47
48
  function Inventory1ToJSON(json) {
@@ -56,5 +57,6 @@ function Inventory1ToJSONTyped(value, ignoreDiscriminator = false) {
56
57
  'vcenter_version': value['vcenter_version'],
57
58
  'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
58
59
  'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
60
+ 'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
59
61
  };
60
62
  }
@@ -6,7 +6,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
6
6
  |------------- | ------------- | -------------|
7
7
  | [**compareCollections**](CollectionsApi.md#comparecollections) | **GET** /collections/compare/{aId}/{bId} | Compare two collections — returns aggregates and diffs |
8
8
  | [**compareCollectionsDiff**](CollectionsApi.md#comparecollectionsdiff) | **GET** /collections/compare/{aId}/{bId}/{dimension} | Drill down — VM IDs that differ between two collections for a given dimension |
9
- | [**exportCollection**](CollectionsApi.md#exportcollection) | **GET** /collections/{id}/export | Export collection data as CSV ZIP archive |
9
+ | [**exportCollection**](CollectionsApi.md#exportcollection) | **GET** /collections/{id}/export | Export collection data as CSV ZIP archive or Excel workbook |
10
10
  | [**listCollections**](CollectionsApi.md#listcollections) | **GET** /collections | List all collections |
11
11
 
12
12
 
@@ -163,9 +163,9 @@ No authorization required
163
163
 
164
164
  ## exportCollection
165
165
 
166
- > Blob exportCollection(id, scope)
166
+ > Blob exportCollection(id, scope, format)
167
167
 
168
- Export collection data as CSV ZIP archive
168
+ Export collection data as CSV ZIP archive or Excel workbook
169
169
 
170
170
  ### Example
171
171
 
@@ -185,6 +185,8 @@ async function example() {
185
185
  id: id_example,
186
186
  // string | Comma-separated export scopes (e.g., \"overview,vms,groups\"). Defaults to \"overview\". (optional)
187
187
  scope: scope_example,
188
+ // 'zip' | 'xlsx' | Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope) (optional)
189
+ format: format_example,
188
190
  } satisfies ExportCollectionRequest;
189
191
 
190
192
  try {
@@ -206,6 +208,7 @@ example().catch(console.error);
206
208
  |------------- | ------------- | ------------- | -------------|
207
209
  | **id** | `string` | Collection ID | [Defaults to `undefined`] |
208
210
  | **scope** | `string` | Comma-separated export scopes (e.g., \&quot;overview,vms,groups\&quot;). Defaults to \&quot;overview\&quot;. | [Optional] [Defaults to `undefined`] |
211
+ | **format** | `zip`, `xlsx` | Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope) | [Optional] [Defaults to `&#39;zip&#39;`] [Enum: zip, xlsx] |
209
212
 
210
213
  ### Return type
211
214
 
@@ -218,13 +221,13 @@ No authorization required
218
221
  ### HTTP request headers
219
222
 
220
223
  - **Content-Type**: Not defined
221
- - **Accept**: `application/zip`
224
+ - **Accept**: `application/zip`, `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`
222
225
 
223
226
 
224
227
  ### HTTP response details
225
228
  | Status code | Description | Response headers |
226
229
  |-------------|-------------|------------------|
227
- | **200** | ZIP archive containing CSV files | - |
230
+ | **200** | ZIP archive containing CSV files or Excel workbook | - |
228
231
  | **400** | Invalid scope | - |
229
232
  | **404** | Collection not found | - |
230
233
  | **500** | Internal server error | - |
@@ -10,6 +10,7 @@ Name | Type
10
10
  `vcenter_version` | string
11
11
  `clusters` | [{ [key: string]: InventoryData; }](InventoryData.md)
12
12
  `vcenter` | [InventoryData](InventoryData.md)
13
+ `created_at` | Date
13
14
 
14
15
  ## Example
15
16
 
@@ -22,6 +23,7 @@ const example = {
22
23
  "vcenter_version": null,
23
24
  "clusters": null,
24
25
  "vcenter": null,
26
+ "created_at": null,
25
27
  } satisfies Inventory1
26
28
 
27
29
  console.log(example)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/agent-sdk",
3
- "version": "0.20.2-01f58bf215ef",
3
+ "version": "0.20.2-423f685e3a07",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/agent-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -72,6 +72,10 @@ export interface ExportCollectionRequest {
72
72
  * Comma-separated export scopes (e.g., "overview,vms,groups"). Defaults to "overview".
73
73
  */
74
74
  scope?: string;
75
+ /**
76
+ * Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope)
77
+ */
78
+ format?: ExportCollectionFormatEnum;
75
79
  }
76
80
 
77
81
  /**
@@ -141,6 +145,7 @@ export interface CollectionsApiInterface {
141
145
  * Creates request options for exportCollection without sending the request
142
146
  * @param {string} id Collection ID
143
147
  * @param {string} [scope] Comma-separated export scopes (e.g., \&quot;overview,vms,groups\&quot;). Defaults to \&quot;overview\&quot;.
148
+ * @param {'zip' | 'xlsx'} [format] Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope)
144
149
  * @throws {RequiredError}
145
150
  * @memberof CollectionsApiInterface
146
151
  */
@@ -148,9 +153,10 @@ export interface CollectionsApiInterface {
148
153
 
149
154
  /**
150
155
  *
151
- * @summary Export collection data as CSV ZIP archive
156
+ * @summary Export collection data as CSV ZIP archive or Excel workbook
152
157
  * @param {string} id Collection ID
153
158
  * @param {string} [scope] Comma-separated export scopes (e.g., \&quot;overview,vms,groups\&quot;). Defaults to \&quot;overview\&quot;.
159
+ * @param {'zip' | 'xlsx'} [format] Output format: zip (CSV files in a ZIP archive) or xlsx (Excel workbook with one sheet per scope)
154
160
  * @param {*} [options] Override http request option.
155
161
  * @throws {RequiredError}
156
162
  * @memberof CollectionsApiInterface
@@ -158,7 +164,7 @@ export interface CollectionsApiInterface {
158
164
  exportCollectionRaw(requestParameters: ExportCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
159
165
 
160
166
  /**
161
- * Export collection data as CSV ZIP archive
167
+ * Export collection data as CSV ZIP archive or Excel workbook
162
168
  */
163
169
  exportCollection(requestParameters: ExportCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
164
170
 
@@ -329,6 +335,10 @@ export class CollectionsApi extends runtime.BaseAPI implements CollectionsApiInt
329
335
  queryParameters['scope'] = requestParameters['scope'];
330
336
  }
331
337
 
338
+ if (requestParameters['format'] != null) {
339
+ queryParameters['format'] = requestParameters['format'];
340
+ }
341
+
332
342
  const headerParameters: runtime.HTTPHeaders = {};
333
343
 
334
344
 
@@ -344,7 +354,7 @@ export class CollectionsApi extends runtime.BaseAPI implements CollectionsApiInt
344
354
  }
345
355
 
346
356
  /**
347
- * Export collection data as CSV ZIP archive
357
+ * Export collection data as CSV ZIP archive or Excel workbook
348
358
  */
349
359
  async exportCollectionRaw(requestParameters: ExportCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
350
360
  const requestOptions = await this.exportCollectionRequestOpts(requestParameters);
@@ -354,7 +364,7 @@ export class CollectionsApi extends runtime.BaseAPI implements CollectionsApiInt
354
364
  }
355
365
 
356
366
  /**
357
- * Export collection data as CSV ZIP archive
367
+ * Export collection data as CSV ZIP archive or Excel workbook
358
368
  */
359
369
  async exportCollection(requestParameters: ExportCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
360
370
  const response = await this.exportCollectionRaw(requestParameters, initOverrides);
@@ -409,3 +419,11 @@ export const CompareCollectionsDiffDimensionEnum = {
409
419
  NonMigratable: 'non-migratable'
410
420
  } as const;
411
421
  export type CompareCollectionsDiffDimensionEnum = typeof CompareCollectionsDiffDimensionEnum[keyof typeof CompareCollectionsDiffDimensionEnum];
422
+ /**
423
+ * @export
424
+ */
425
+ export const ExportCollectionFormatEnum = {
426
+ Zip: 'zip',
427
+ Xlsx: 'xlsx'
428
+ } as const;
429
+ export type ExportCollectionFormatEnum = typeof ExportCollectionFormatEnum[keyof typeof ExportCollectionFormatEnum];
@@ -113,7 +113,7 @@ export function BenchmarkRunFromJSONTyped(json: any, ignoreDiscriminator: boolea
113
113
  'throughputMBps': json['throughputMBps'],
114
114
  'method': json['method'],
115
115
  'error': json['error'] == null ? undefined : json['error'],
116
- 'createdAt': (new Date(json['createdAt'])),
116
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
117
117
  };
118
118
  }
119
119
 
@@ -140,7 +140,7 @@ export function BenchmarkRunToJSONTyped(value?: BenchmarkRun | null, ignoreDiscr
140
140
  'throughputMBps': value['throughputMBps'],
141
141
  'method': value['method'],
142
142
  'error': value['error'],
143
- 'createdAt': value['createdAt'].toISOString(),
143
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
144
144
  };
145
145
  }
146
146
 
@@ -55,7 +55,7 @@ export function CollectionFromJSONTyped(json: any, ignoreDiscriminator: boolean)
55
55
 
56
56
  'id': json['id'],
57
57
  'name': json['name'],
58
- 'createdAt': (new Date(json['createdAt'])),
58
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
59
59
  };
60
60
  }
61
61
 
@@ -72,7 +72,7 @@ export function CollectionToJSONTyped(value?: Collection | null, ignoreDiscrimin
72
72
 
73
73
  'id': value['id'],
74
74
  'name': value['name'],
75
- 'createdAt': value['createdAt'].toISOString(),
75
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
76
76
  };
77
77
  }
78
78
 
@@ -69,7 +69,7 @@ export function CollectionAggregateFromJSONTyped(json: any, ignoreDiscriminator:
69
69
  return {
70
70
 
71
71
  'id': json['id'],
72
- 'createdAt': (new Date(json['createdAt'])),
72
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
73
73
  'totalVMs': json['totalVMs'],
74
74
  'migratable': json['migratable'],
75
75
  'nonMigratable': json['nonMigratable'],
@@ -89,7 +89,7 @@ export function CollectionAggregateToJSONTyped(value?: CollectionAggregate | nul
89
89
  return {
90
90
 
91
91
  'id': value['id'],
92
- 'createdAt': value['createdAt'].toISOString(),
92
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
93
93
  'totalVMs': value['totalVMs'],
94
94
  'migratable': value['migratable'],
95
95
  'nonMigratable': value['nonMigratable'],
@@ -43,6 +43,10 @@ export interface Inventory1 {
43
43
  *
44
44
  */
45
45
  vcenter?: InventoryData;
46
+ /**
47
+ * Timestamp when the inventory data was created or collected
48
+ */
49
+ created_at?: Date;
46
50
  }
47
51
 
48
52
  /**
@@ -68,6 +72,7 @@ export function Inventory1FromJSONTyped(json: any, ignoreDiscriminator: boolean)
68
72
  'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
69
73
  'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
70
74
  'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
75
+ 'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
71
76
  };
72
77
  }
73
78
 
@@ -86,6 +91,7 @@ export function Inventory1ToJSONTyped(value?: Inventory1 | null, ignoreDiscrimin
86
91
  'vcenter_version': value['vcenter_version'],
87
92
  'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
88
93
  'vcenter': InventoryDataToJSON(value['vcenter']),
94
+ 'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
89
95
  };
90
96
  }
91
97