@openshift-migration-advisor/agent-sdk 0.23.0 → 0.24.0-958d6428562e
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 +4 -2
- package/dist/apis/CollectionsApi.d.ts +30 -0
- package/dist/apis/CollectionsApi.js +34 -0
- package/dist/apis/GroupsApi.d.ts +39 -0
- package/dist/apis/GroupsApi.js +40 -0
- package/dist/esm/apis/CollectionsApi.d.ts +30 -0
- package/dist/esm/apis/CollectionsApi.js +34 -0
- package/dist/esm/apis/GroupsApi.d.ts +39 -0
- package/dist/esm/apis/GroupsApi.js +40 -0
- package/dist/esm/models/Infra.d.ts +4 -0
- package/dist/esm/models/Infra.js +2 -0
- package/dist/esm/models/VMs.d.ts +4 -0
- package/dist/esm/models/VMs.js +2 -0
- package/dist/esm/runtime.d.ts +15 -1
- package/dist/esm/runtime.js +80 -1
- package/dist/models/Infra.d.ts +4 -0
- package/dist/models/Infra.js +2 -0
- package/dist/models/VMs.d.ts +4 -0
- package/dist/models/VMs.js +2 -0
- package/dist/runtime.d.ts +15 -1
- package/dist/runtime.js +81 -1
- package/docs/CollectionsApi.md +59 -0
- package/docs/GroupsApi.md +68 -0
- package/docs/Infra.md +2 -0
- package/docs/VMs.md +2 -0
- package/package.json +1 -1
- package/src/apis/CollectionsApi.ts +57 -0
- package/src/apis/GroupsApi.ts +80 -0
- package/src/models/Infra.ts +6 -0
- package/src/models/VMs.ts +6 -0
- package/src/runtime.ts +80 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/agent-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/agent-sdk@0.24.0-958d6428562e
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -50,6 +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* | [**deleteCollections**](docs/CollectionsApi.md#deletecollections) | **DELETE** /collections | Delete all collections
|
|
53
54
|
*CollectionsApi* | [**exportCollection**](docs/CollectionsApi.md#exportcollection) | **GET** /collections/{id}/export | Export collection data as CSV ZIP archive or Excel workbook
|
|
54
55
|
*CollectionsApi* | [**listCollections**](docs/CollectionsApi.md#listcollections) | **GET** /collections | List all collections
|
|
55
56
|
*CollectorApi* | [**getCollectorStatus**](docs/CollectorApi.md#getcollectorstatus) | **GET** /collector | Get collector status
|
|
@@ -73,6 +74,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
73
74
|
*GroupsApi* | [**deleteLatestGroup**](docs/GroupsApi.md#deletelatestgroup) | **DELETE** /groups/{groupId} | Delete group from the latest collection
|
|
74
75
|
*GroupsApi* | [**getGroup**](docs/GroupsApi.md#getgroup) | **GET** /collections/{id}/groups/{groupId} | Get group by ID with its VirtualMachines
|
|
75
76
|
*GroupsApi* | [**getLatestGroup**](docs/GroupsApi.md#getlatestgroup) | **GET** /groups/{groupId} | Get group by ID from the latest collection
|
|
77
|
+
*GroupsApi* | [**listGroupApplications**](docs/GroupsApi.md#listgroupapplications) | **GET** /groups/{groupId}/applications | List detected applications for a group
|
|
76
78
|
*GroupsApi* | [**listGroups**](docs/GroupsApi.md#listgroups) | **GET** /collections/{id}/groups | List all groups in a collection
|
|
77
79
|
*GroupsApi* | [**listLatestGroups**](docs/GroupsApi.md#listlatestgroups) | **GET** /groups | List groups from the latest collection
|
|
78
80
|
*GroupsApi* | [**updateLatestGroup**](docs/GroupsApi.md#updatelatestgroup) | **PATCH** /groups/{groupId} | Update group in the latest collection
|
|
@@ -198,7 +200,7 @@ and is automatically generated by the
|
|
|
198
200
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
199
201
|
|
|
200
202
|
- API version: `v2`
|
|
201
|
-
- Package version: `0.
|
|
203
|
+
- Package version: `0.24.0-958d6428562e`
|
|
202
204
|
- Generator version: `7.26.0-SNAPSHOT`
|
|
203
205
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
204
206
|
|
|
@@ -116,6 +116,24 @@ export interface CollectionsApiInterface {
|
|
|
116
116
|
* Drill down — VM IDs that differ between two collections for a given dimension
|
|
117
117
|
*/
|
|
118
118
|
compareCollectionsDiff(requestParameters: CompareCollectionsDiffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectionComparisonDiff>;
|
|
119
|
+
/**
|
|
120
|
+
* Creates request options for deleteCollections without sending the request
|
|
121
|
+
* @throws {RequiredError}
|
|
122
|
+
* @memberof CollectionsApiInterface
|
|
123
|
+
*/
|
|
124
|
+
deleteCollectionsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @summary Delete all collections
|
|
128
|
+
* @param {*} [options] Override http request option.
|
|
129
|
+
* @throws {RequiredError}
|
|
130
|
+
* @memberof CollectionsApiInterface
|
|
131
|
+
*/
|
|
132
|
+
deleteCollectionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
133
|
+
/**
|
|
134
|
+
* Delete all collections
|
|
135
|
+
*/
|
|
136
|
+
deleteCollections(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
119
137
|
/**
|
|
120
138
|
* Creates request options for exportCollection without sending the request
|
|
121
139
|
* @param {string} id Collection ID
|
|
@@ -187,6 +205,18 @@ export declare class CollectionsApi extends runtime.BaseAPI implements Collectio
|
|
|
187
205
|
* Drill down — VM IDs that differ between two collections for a given dimension
|
|
188
206
|
*/
|
|
189
207
|
compareCollectionsDiff(requestParameters: CompareCollectionsDiffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectionComparisonDiff>;
|
|
208
|
+
/**
|
|
209
|
+
* Creates request options for deleteCollections without sending the request
|
|
210
|
+
*/
|
|
211
|
+
deleteCollectionsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
212
|
+
/**
|
|
213
|
+
* Delete all collections
|
|
214
|
+
*/
|
|
215
|
+
deleteCollectionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
216
|
+
/**
|
|
217
|
+
* Delete all collections
|
|
218
|
+
*/
|
|
219
|
+
deleteCollections(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
190
220
|
/**
|
|
191
221
|
* Creates request options for exportCollection without sending the request
|
|
192
222
|
*/
|
|
@@ -127,6 +127,40 @@ class CollectionsApi extends runtime.BaseAPI {
|
|
|
127
127
|
return yield response.value();
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* Creates request options for deleteCollections without sending the request
|
|
132
|
+
*/
|
|
133
|
+
deleteCollectionsRequestOpts() {
|
|
134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
const queryParameters = {};
|
|
136
|
+
const headerParameters = {};
|
|
137
|
+
let urlPath = `/collections`;
|
|
138
|
+
return {
|
|
139
|
+
path: urlPath,
|
|
140
|
+
method: 'DELETE',
|
|
141
|
+
headers: headerParameters,
|
|
142
|
+
query: queryParameters,
|
|
143
|
+
};
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Delete all collections
|
|
148
|
+
*/
|
|
149
|
+
deleteCollectionsRaw(initOverrides) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
const requestOptions = yield this.deleteCollectionsRequestOpts();
|
|
152
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
153
|
+
return new runtime.VoidApiResponse(response);
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Delete all collections
|
|
158
|
+
*/
|
|
159
|
+
deleteCollections(initOverrides) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
yield this.deleteCollectionsRaw(initOverrides);
|
|
162
|
+
});
|
|
163
|
+
}
|
|
130
164
|
/**
|
|
131
165
|
* Creates request options for exportCollection without sending the request
|
|
132
166
|
*/
|
package/dist/apis/GroupsApi.d.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
+
import { type ApplicationListResponse } from '../models/ApplicationListResponse.js';
|
|
13
14
|
import { type CreateGroupRequest } from '../models/CreateGroupRequest.js';
|
|
14
15
|
import { type Group } from '../models/Group.js';
|
|
15
16
|
import { type GroupListResponse } from '../models/GroupListResponse.js';
|
|
@@ -67,6 +68,12 @@ export interface GetLatestGroupRequest {
|
|
|
67
68
|
*/
|
|
68
69
|
pageSize?: number;
|
|
69
70
|
}
|
|
71
|
+
export interface ListGroupApplicationsRequest {
|
|
72
|
+
/**
|
|
73
|
+
* Group ID
|
|
74
|
+
*/
|
|
75
|
+
groupId: string;
|
|
76
|
+
}
|
|
70
77
|
export interface ListGroupsRequest {
|
|
71
78
|
/**
|
|
72
79
|
* Collection ID
|
|
@@ -210,6 +217,26 @@ export interface GroupsApiInterface {
|
|
|
210
217
|
* Get group by ID from the latest collection
|
|
211
218
|
*/
|
|
212
219
|
getLatestGroup(requestParameters: GetLatestGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupResponse>;
|
|
220
|
+
/**
|
|
221
|
+
* Creates request options for listGroupApplications without sending the request
|
|
222
|
+
* @param {string} groupId Group ID
|
|
223
|
+
* @throws {RequiredError}
|
|
224
|
+
* @memberof GroupsApiInterface
|
|
225
|
+
*/
|
|
226
|
+
listGroupApplicationsRequestOpts(requestParameters: ListGroupApplicationsRequest): Promise<runtime.RequestOpts>;
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
* @summary List detected applications for a group
|
|
230
|
+
* @param {string} groupId Group ID
|
|
231
|
+
* @param {*} [options] Override http request option.
|
|
232
|
+
* @throws {RequiredError}
|
|
233
|
+
* @memberof GroupsApiInterface
|
|
234
|
+
*/
|
|
235
|
+
listGroupApplicationsRaw(requestParameters: ListGroupApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationListResponse>>;
|
|
236
|
+
/**
|
|
237
|
+
* List detected applications for a group
|
|
238
|
+
*/
|
|
239
|
+
listGroupApplications(requestParameters: ListGroupApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationListResponse>;
|
|
213
240
|
/**
|
|
214
241
|
* Creates request options for listGroups without sending the request
|
|
215
242
|
* @param {string} id Collection ID
|
|
@@ -335,6 +362,18 @@ export declare class GroupsApi extends runtime.BaseAPI implements GroupsApiInter
|
|
|
335
362
|
* Get group by ID from the latest collection
|
|
336
363
|
*/
|
|
337
364
|
getLatestGroup(requestParameters: GetLatestGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupResponse>;
|
|
365
|
+
/**
|
|
366
|
+
* Creates request options for listGroupApplications without sending the request
|
|
367
|
+
*/
|
|
368
|
+
listGroupApplicationsRequestOpts(requestParameters: ListGroupApplicationsRequest): Promise<runtime.RequestOpts>;
|
|
369
|
+
/**
|
|
370
|
+
* List detected applications for a group
|
|
371
|
+
*/
|
|
372
|
+
listGroupApplicationsRaw(requestParameters: ListGroupApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationListResponse>>;
|
|
373
|
+
/**
|
|
374
|
+
* List detected applications for a group
|
|
375
|
+
*/
|
|
376
|
+
listGroupApplications(requestParameters: ListGroupApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationListResponse>;
|
|
338
377
|
/**
|
|
339
378
|
* Creates request options for listGroups without sending the request
|
|
340
379
|
*/
|
package/dist/apis/GroupsApi.js
CHANGED
|
@@ -24,6 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.GroupsApi = void 0;
|
|
26
26
|
const runtime = require("../runtime.js");
|
|
27
|
+
const ApplicationListResponse_js_1 = require("../models/ApplicationListResponse.js");
|
|
27
28
|
const CreateGroupRequest_js_1 = require("../models/CreateGroupRequest.js");
|
|
28
29
|
const Group_js_1 = require("../models/Group.js");
|
|
29
30
|
const GroupListResponse_js_1 = require("../models/GroupListResponse.js");
|
|
@@ -211,6 +212,45 @@ class GroupsApi extends runtime.BaseAPI {
|
|
|
211
212
|
return yield response.value();
|
|
212
213
|
});
|
|
213
214
|
}
|
|
215
|
+
/**
|
|
216
|
+
* Creates request options for listGroupApplications without sending the request
|
|
217
|
+
*/
|
|
218
|
+
listGroupApplicationsRequestOpts(requestParameters) {
|
|
219
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
220
|
+
if (requestParameters['groupId'] == null) {
|
|
221
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling listGroupApplications().');
|
|
222
|
+
}
|
|
223
|
+
const queryParameters = {};
|
|
224
|
+
const headerParameters = {};
|
|
225
|
+
let urlPath = `/groups/{groupId}/applications`;
|
|
226
|
+
urlPath = urlPath.replace('{groupId}', encodeURIComponent(String(requestParameters['groupId'])));
|
|
227
|
+
return {
|
|
228
|
+
path: urlPath,
|
|
229
|
+
method: 'GET',
|
|
230
|
+
headers: headerParameters,
|
|
231
|
+
query: queryParameters,
|
|
232
|
+
};
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* List detected applications for a group
|
|
237
|
+
*/
|
|
238
|
+
listGroupApplicationsRaw(requestParameters, initOverrides) {
|
|
239
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
240
|
+
const requestOptions = yield this.listGroupApplicationsRequestOpts(requestParameters);
|
|
241
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
242
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplicationListResponse_js_1.ApplicationListResponseFromJSON)(jsonValue));
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* List detected applications for a group
|
|
247
|
+
*/
|
|
248
|
+
listGroupApplications(requestParameters, initOverrides) {
|
|
249
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
250
|
+
const response = yield this.listGroupApplicationsRaw(requestParameters, initOverrides);
|
|
251
|
+
return yield response.value();
|
|
252
|
+
});
|
|
253
|
+
}
|
|
214
254
|
/**
|
|
215
255
|
* Creates request options for listGroups without sending the request
|
|
216
256
|
*/
|
|
@@ -116,6 +116,24 @@ export interface CollectionsApiInterface {
|
|
|
116
116
|
* Drill down — VM IDs that differ between two collections for a given dimension
|
|
117
117
|
*/
|
|
118
118
|
compareCollectionsDiff(requestParameters: CompareCollectionsDiffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectionComparisonDiff>;
|
|
119
|
+
/**
|
|
120
|
+
* Creates request options for deleteCollections without sending the request
|
|
121
|
+
* @throws {RequiredError}
|
|
122
|
+
* @memberof CollectionsApiInterface
|
|
123
|
+
*/
|
|
124
|
+
deleteCollectionsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @summary Delete all collections
|
|
128
|
+
* @param {*} [options] Override http request option.
|
|
129
|
+
* @throws {RequiredError}
|
|
130
|
+
* @memberof CollectionsApiInterface
|
|
131
|
+
*/
|
|
132
|
+
deleteCollectionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
133
|
+
/**
|
|
134
|
+
* Delete all collections
|
|
135
|
+
*/
|
|
136
|
+
deleteCollections(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
119
137
|
/**
|
|
120
138
|
* Creates request options for exportCollection without sending the request
|
|
121
139
|
* @param {string} id Collection ID
|
|
@@ -187,6 +205,18 @@ export declare class CollectionsApi extends runtime.BaseAPI implements Collectio
|
|
|
187
205
|
* Drill down — VM IDs that differ between two collections for a given dimension
|
|
188
206
|
*/
|
|
189
207
|
compareCollectionsDiff(requestParameters: CompareCollectionsDiffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectionComparisonDiff>;
|
|
208
|
+
/**
|
|
209
|
+
* Creates request options for deleteCollections without sending the request
|
|
210
|
+
*/
|
|
211
|
+
deleteCollectionsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
212
|
+
/**
|
|
213
|
+
* Delete all collections
|
|
214
|
+
*/
|
|
215
|
+
deleteCollectionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
216
|
+
/**
|
|
217
|
+
* Delete all collections
|
|
218
|
+
*/
|
|
219
|
+
deleteCollections(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
190
220
|
/**
|
|
191
221
|
* Creates request options for exportCollection without sending the request
|
|
192
222
|
*/
|
|
@@ -124,6 +124,40 @@ export class CollectionsApi extends runtime.BaseAPI {
|
|
|
124
124
|
return yield response.value();
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
|
+
/**
|
|
128
|
+
* Creates request options for deleteCollections without sending the request
|
|
129
|
+
*/
|
|
130
|
+
deleteCollectionsRequestOpts() {
|
|
131
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
132
|
+
const queryParameters = {};
|
|
133
|
+
const headerParameters = {};
|
|
134
|
+
let urlPath = `/collections`;
|
|
135
|
+
return {
|
|
136
|
+
path: urlPath,
|
|
137
|
+
method: 'DELETE',
|
|
138
|
+
headers: headerParameters,
|
|
139
|
+
query: queryParameters,
|
|
140
|
+
};
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Delete all collections
|
|
145
|
+
*/
|
|
146
|
+
deleteCollectionsRaw(initOverrides) {
|
|
147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
const requestOptions = yield this.deleteCollectionsRequestOpts();
|
|
149
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
150
|
+
return new runtime.VoidApiResponse(response);
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Delete all collections
|
|
155
|
+
*/
|
|
156
|
+
deleteCollections(initOverrides) {
|
|
157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
+
yield this.deleteCollectionsRaw(initOverrides);
|
|
159
|
+
});
|
|
160
|
+
}
|
|
127
161
|
/**
|
|
128
162
|
* Creates request options for exportCollection without sending the request
|
|
129
163
|
*/
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
+
import { type ApplicationListResponse } from '../models/ApplicationListResponse.js';
|
|
13
14
|
import { type CreateGroupRequest } from '../models/CreateGroupRequest.js';
|
|
14
15
|
import { type Group } from '../models/Group.js';
|
|
15
16
|
import { type GroupListResponse } from '../models/GroupListResponse.js';
|
|
@@ -67,6 +68,12 @@ export interface GetLatestGroupRequest {
|
|
|
67
68
|
*/
|
|
68
69
|
pageSize?: number;
|
|
69
70
|
}
|
|
71
|
+
export interface ListGroupApplicationsRequest {
|
|
72
|
+
/**
|
|
73
|
+
* Group ID
|
|
74
|
+
*/
|
|
75
|
+
groupId: string;
|
|
76
|
+
}
|
|
70
77
|
export interface ListGroupsRequest {
|
|
71
78
|
/**
|
|
72
79
|
* Collection ID
|
|
@@ -210,6 +217,26 @@ export interface GroupsApiInterface {
|
|
|
210
217
|
* Get group by ID from the latest collection
|
|
211
218
|
*/
|
|
212
219
|
getLatestGroup(requestParameters: GetLatestGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupResponse>;
|
|
220
|
+
/**
|
|
221
|
+
* Creates request options for listGroupApplications without sending the request
|
|
222
|
+
* @param {string} groupId Group ID
|
|
223
|
+
* @throws {RequiredError}
|
|
224
|
+
* @memberof GroupsApiInterface
|
|
225
|
+
*/
|
|
226
|
+
listGroupApplicationsRequestOpts(requestParameters: ListGroupApplicationsRequest): Promise<runtime.RequestOpts>;
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
* @summary List detected applications for a group
|
|
230
|
+
* @param {string} groupId Group ID
|
|
231
|
+
* @param {*} [options] Override http request option.
|
|
232
|
+
* @throws {RequiredError}
|
|
233
|
+
* @memberof GroupsApiInterface
|
|
234
|
+
*/
|
|
235
|
+
listGroupApplicationsRaw(requestParameters: ListGroupApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationListResponse>>;
|
|
236
|
+
/**
|
|
237
|
+
* List detected applications for a group
|
|
238
|
+
*/
|
|
239
|
+
listGroupApplications(requestParameters: ListGroupApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationListResponse>;
|
|
213
240
|
/**
|
|
214
241
|
* Creates request options for listGroups without sending the request
|
|
215
242
|
* @param {string} id Collection ID
|
|
@@ -335,6 +362,18 @@ export declare class GroupsApi extends runtime.BaseAPI implements GroupsApiInter
|
|
|
335
362
|
* Get group by ID from the latest collection
|
|
336
363
|
*/
|
|
337
364
|
getLatestGroup(requestParameters: GetLatestGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupResponse>;
|
|
365
|
+
/**
|
|
366
|
+
* Creates request options for listGroupApplications without sending the request
|
|
367
|
+
*/
|
|
368
|
+
listGroupApplicationsRequestOpts(requestParameters: ListGroupApplicationsRequest): Promise<runtime.RequestOpts>;
|
|
369
|
+
/**
|
|
370
|
+
* List detected applications for a group
|
|
371
|
+
*/
|
|
372
|
+
listGroupApplicationsRaw(requestParameters: ListGroupApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationListResponse>>;
|
|
373
|
+
/**
|
|
374
|
+
* List detected applications for a group
|
|
375
|
+
*/
|
|
376
|
+
listGroupApplications(requestParameters: ListGroupApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationListResponse>;
|
|
338
377
|
/**
|
|
339
378
|
* Creates request options for listGroups without sending the request
|
|
340
379
|
*/
|
|
@@ -21,6 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime.js';
|
|
24
|
+
import { ApplicationListResponseFromJSON, } from '../models/ApplicationListResponse.js';
|
|
24
25
|
import { CreateGroupRequestToJSON, } from '../models/CreateGroupRequest.js';
|
|
25
26
|
import { GroupFromJSON, } from '../models/Group.js';
|
|
26
27
|
import { GroupListResponseFromJSON, } from '../models/GroupListResponse.js';
|
|
@@ -208,6 +209,45 @@ export class GroupsApi extends runtime.BaseAPI {
|
|
|
208
209
|
return yield response.value();
|
|
209
210
|
});
|
|
210
211
|
}
|
|
212
|
+
/**
|
|
213
|
+
* Creates request options for listGroupApplications without sending the request
|
|
214
|
+
*/
|
|
215
|
+
listGroupApplicationsRequestOpts(requestParameters) {
|
|
216
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
217
|
+
if (requestParameters['groupId'] == null) {
|
|
218
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling listGroupApplications().');
|
|
219
|
+
}
|
|
220
|
+
const queryParameters = {};
|
|
221
|
+
const headerParameters = {};
|
|
222
|
+
let urlPath = `/groups/{groupId}/applications`;
|
|
223
|
+
urlPath = urlPath.replace('{groupId}', encodeURIComponent(String(requestParameters['groupId'])));
|
|
224
|
+
return {
|
|
225
|
+
path: urlPath,
|
|
226
|
+
method: 'GET',
|
|
227
|
+
headers: headerParameters,
|
|
228
|
+
query: queryParameters,
|
|
229
|
+
};
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* List detected applications for a group
|
|
234
|
+
*/
|
|
235
|
+
listGroupApplicationsRaw(requestParameters, initOverrides) {
|
|
236
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
237
|
+
const requestOptions = yield this.listGroupApplicationsRequestOpts(requestParameters);
|
|
238
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
239
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationListResponseFromJSON(jsonValue));
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* List detected applications for a group
|
|
244
|
+
*/
|
|
245
|
+
listGroupApplications(requestParameters, initOverrides) {
|
|
246
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
247
|
+
const response = yield this.listGroupApplicationsRaw(requestParameters, initOverrides);
|
|
248
|
+
return yield response.value();
|
|
249
|
+
});
|
|
250
|
+
}
|
|
211
251
|
/**
|
|
212
252
|
* Creates request options for listGroups without sending the request
|
|
213
253
|
*/
|
package/dist/esm/models/Infra.js
CHANGED
|
@@ -37,6 +37,7 @@ export function InfraFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
39
|
'totalHosts': json['totalHosts'],
|
|
40
|
+
'standaloneHostsDetected': json['standaloneHostsDetected'] == null ? undefined : json['standaloneHostsDetected'],
|
|
40
41
|
'totalDatacenters': json['totalDatacenters'] == null ? undefined : json['totalDatacenters'],
|
|
41
42
|
'totalClusters': json['totalClusters'] == null ? undefined : json['totalClusters'],
|
|
42
43
|
'clustersPerDatacenter': json['clustersPerDatacenter'] == null ? undefined : json['clustersPerDatacenter'],
|
|
@@ -60,6 +61,7 @@ export function InfraToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
61
|
}
|
|
61
62
|
return {
|
|
62
63
|
'totalHosts': value['totalHosts'],
|
|
64
|
+
'standaloneHostsDetected': value['standaloneHostsDetected'],
|
|
63
65
|
'totalDatacenters': value['totalDatacenters'],
|
|
64
66
|
'totalClusters': value['totalClusters'],
|
|
65
67
|
'clustersPerDatacenter': value['clustersPerDatacenter'],
|
package/dist/esm/models/VMs.d.ts
CHANGED
package/dist/esm/models/VMs.js
CHANGED
|
@@ -55,6 +55,7 @@ export function VMsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'totalMigratableWithWarnings': json['totalMigratableWithWarnings'] == null ? undefined : json['totalMigratableWithWarnings'],
|
|
56
56
|
'totalWithSharedDisks': json['totalWithSharedDisks'] == null ? undefined : json['totalWithSharedDisks'],
|
|
57
57
|
'totalWithRDM': json['totalWithRDM'] == null ? undefined : json['totalWithRDM'],
|
|
58
|
+
'totalWithFaultTolerance': json['totalWithFaultTolerance'] == null ? undefined : json['totalWithFaultTolerance'],
|
|
58
59
|
'cpuCores': VMResourceBreakdownFromJSON(json['cpuCores']),
|
|
59
60
|
'diskSizeTier': json['diskSizeTier'] == null ? undefined : (mapValues(json['diskSizeTier'], DiskSizeTierSummaryFromJSON)),
|
|
60
61
|
'diskComplexityTier': json['diskComplexityTier'] == null ? undefined : (mapValues(json['diskComplexityTier'], DiskSizeTierSummaryFromJSON)),
|
|
@@ -89,6 +90,7 @@ export function VMsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
89
90
|
'totalMigratableWithWarnings': value['totalMigratableWithWarnings'],
|
|
90
91
|
'totalWithSharedDisks': value['totalWithSharedDisks'],
|
|
91
92
|
'totalWithRDM': value['totalWithRDM'],
|
|
93
|
+
'totalWithFaultTolerance': value['totalWithFaultTolerance'],
|
|
92
94
|
'cpuCores': VMResourceBreakdownToJSON(value['cpuCores']),
|
|
93
95
|
'diskSizeTier': value['diskSizeTier'] == null ? undefined : (mapValues(value['diskSizeTier'], DiskSizeTierSummaryToJSON)),
|
|
94
96
|
'diskComplexityTier': value['diskComplexityTier'] == null ? undefined : (mapValues(value['diskComplexityTier'], DiskSizeTierSummaryToJSON)),
|
package/dist/esm/runtime.d.ts
CHANGED
|
@@ -187,8 +187,22 @@ export declare class VoidApiResponse {
|
|
|
187
187
|
export declare class BlobApiResponse {
|
|
188
188
|
raw: Response;
|
|
189
189
|
constructor(raw: Response);
|
|
190
|
-
|
|
190
|
+
/**
|
|
191
|
+
* The body as a File named after the Content-Disposition header, so that a download keeps the
|
|
192
|
+
* name the server gave it. A File is a Blob: callers reading a Blob are unaffected, and the name
|
|
193
|
+
* is empty when the server did not send one. Runtimes without a global File (Node.js before 20)
|
|
194
|
+
* keep receiving the bare Blob.
|
|
195
|
+
*/
|
|
196
|
+
value(): Promise<File>;
|
|
191
197
|
}
|
|
198
|
+
/**
|
|
199
|
+
* The file name advertised by a Content-Disposition header (RFC 6266): the RFC 5987 encoded
|
|
200
|
+
* `filename*` parameter first, then the plain `filename` as a quoted-string or a token. Parameters
|
|
201
|
+
* are split on `;` outside quoted-strings and matched by name case-insensitively. Any directory
|
|
202
|
+
* part is dropped so that the name is safe to write to disk as is; undefined when no usable name
|
|
203
|
+
* is advertised.
|
|
204
|
+
*/
|
|
205
|
+
export declare function parseContentDispositionFilename(headers: Headers): string | undefined;
|
|
192
206
|
export declare class TextApiResponse {
|
|
193
207
|
raw: Response;
|
|
194
208
|
constructor(raw: Response);
|
package/dist/esm/runtime.js
CHANGED
|
@@ -380,13 +380,92 @@ export class BlobApiResponse {
|
|
|
380
380
|
constructor(raw) {
|
|
381
381
|
this.raw = raw;
|
|
382
382
|
}
|
|
383
|
+
/**
|
|
384
|
+
* The body as a File named after the Content-Disposition header, so that a download keeps the
|
|
385
|
+
* name the server gave it. A File is a Blob: callers reading a Blob are unaffected, and the name
|
|
386
|
+
* is empty when the server did not send one. Runtimes without a global File (Node.js before 20)
|
|
387
|
+
* keep receiving the bare Blob.
|
|
388
|
+
*/
|
|
383
389
|
value() {
|
|
384
390
|
return __awaiter(this, void 0, void 0, function* () {
|
|
385
|
-
|
|
391
|
+
var _a;
|
|
392
|
+
const blob = yield this.raw.blob();
|
|
393
|
+
if (typeof File === 'undefined') {
|
|
394
|
+
return blob;
|
|
395
|
+
}
|
|
396
|
+
return new File([blob], (_a = parseContentDispositionFilename(this.raw.headers)) !== null && _a !== void 0 ? _a : '', { type: blob.type });
|
|
386
397
|
});
|
|
387
398
|
}
|
|
388
399
|
;
|
|
389
400
|
}
|
|
401
|
+
/**
|
|
402
|
+
* The file name advertised by a Content-Disposition header (RFC 6266): the RFC 5987 encoded
|
|
403
|
+
* `filename*` parameter first, then the plain `filename` as a quoted-string or a token. Parameters
|
|
404
|
+
* are split on `;` outside quoted-strings and matched by name case-insensitively. Any directory
|
|
405
|
+
* part is dropped so that the name is safe to write to disk as is; undefined when no usable name
|
|
406
|
+
* is advertised.
|
|
407
|
+
*/
|
|
408
|
+
export function parseContentDispositionFilename(headers) {
|
|
409
|
+
const value = headers.get('Content-Disposition');
|
|
410
|
+
if (!value) {
|
|
411
|
+
return undefined;
|
|
412
|
+
}
|
|
413
|
+
const params = parseHeaderParameters(value);
|
|
414
|
+
const encoded = params.get('filename*');
|
|
415
|
+
if (encoded !== undefined) {
|
|
416
|
+
const extValue = /^utf-8'[^']*'(.*)$/i.exec(encoded);
|
|
417
|
+
if (extValue) {
|
|
418
|
+
try {
|
|
419
|
+
return basename(decodeURIComponent(extValue[1]));
|
|
420
|
+
}
|
|
421
|
+
catch (_a) {
|
|
422
|
+
// malformed percent-encoding: fall through to the plain form
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
const plain = params.get('filename');
|
|
427
|
+
return plain === undefined ? undefined : basename(plain);
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* The `name=value` parameters of a header value, split on `;` outside quoted-strings. Names are
|
|
431
|
+
* lower-cased, quoted-string values are unquoted with their backslash escapes resolved, and the
|
|
432
|
+
* first occurrence of a name wins.
|
|
433
|
+
*/
|
|
434
|
+
function parseHeaderParameters(value) {
|
|
435
|
+
const params = new Map();
|
|
436
|
+
let start = 0;
|
|
437
|
+
let quoted = false;
|
|
438
|
+
for (let i = 0; i <= value.length; i++) {
|
|
439
|
+
const c = value[i];
|
|
440
|
+
if (i === value.length || (c === ';' && !quoted)) {
|
|
441
|
+
const part = value.slice(start, i);
|
|
442
|
+
const eq = part.indexOf('=');
|
|
443
|
+
if (eq !== -1) {
|
|
444
|
+
const name = part.slice(0, eq).trim().toLowerCase();
|
|
445
|
+
let raw = part.slice(eq + 1).trim();
|
|
446
|
+
if (raw.startsWith('"')) {
|
|
447
|
+
raw = raw.slice(1, raw.length > 1 && raw.endsWith('"') ? -1 : undefined).replace(/\\(.)/g, '$1');
|
|
448
|
+
}
|
|
449
|
+
if (name && !params.has(name)) {
|
|
450
|
+
params.set(name, raw);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
start = i + 1;
|
|
454
|
+
}
|
|
455
|
+
else if (c === '"') {
|
|
456
|
+
quoted = !quoted;
|
|
457
|
+
}
|
|
458
|
+
else if (c === '\\' && quoted) {
|
|
459
|
+
i++;
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
return params;
|
|
463
|
+
}
|
|
464
|
+
/** The last path segment of a file name, or undefined when nothing usable is left. */
|
|
465
|
+
function basename(name) {
|
|
466
|
+
const base = name.slice(Math.max(name.lastIndexOf('/'), name.lastIndexOf('\\')) + 1).trim();
|
|
467
|
+
return base === '' || base === '.' || base === '..' ? undefined : base;
|
|
468
|
+
}
|
|
390
469
|
export class TextApiResponse {
|
|
391
470
|
constructor(raw) {
|
|
392
471
|
this.raw = raw;
|
package/dist/models/Infra.d.ts
CHANGED
package/dist/models/Infra.js
CHANGED
|
@@ -44,6 +44,7 @@ function InfraFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
}
|
|
45
45
|
return {
|
|
46
46
|
'totalHosts': json['totalHosts'],
|
|
47
|
+
'standaloneHostsDetected': json['standaloneHostsDetected'] == null ? undefined : json['standaloneHostsDetected'],
|
|
47
48
|
'totalDatacenters': json['totalDatacenters'] == null ? undefined : json['totalDatacenters'],
|
|
48
49
|
'totalClusters': json['totalClusters'] == null ? undefined : json['totalClusters'],
|
|
49
50
|
'clustersPerDatacenter': json['clustersPerDatacenter'] == null ? undefined : json['clustersPerDatacenter'],
|
|
@@ -67,6 +68,7 @@ function InfraToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
67
68
|
}
|
|
68
69
|
return {
|
|
69
70
|
'totalHosts': value['totalHosts'],
|
|
71
|
+
'standaloneHostsDetected': value['standaloneHostsDetected'],
|
|
70
72
|
'totalDatacenters': value['totalDatacenters'],
|
|
71
73
|
'totalClusters': value['totalClusters'],
|
|
72
74
|
'clustersPerDatacenter': value['clustersPerDatacenter'],
|
package/dist/models/VMs.d.ts
CHANGED