@openshift-migration-advisor/agent-sdk 0.23.0-c4e23ce0c052 → 0.24.0-96217627668a
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 +3 -2
- package/dist/apis/GroupsApi.d.ts +39 -0
- package/dist/apis/GroupsApi.js +40 -0
- package/dist/esm/apis/GroupsApi.d.ts +39 -0
- package/dist/esm/apis/GroupsApi.js +40 -0
- package/docs/GroupsApi.md +68 -0
- package/package.json +1 -1
- package/src/apis/GroupsApi.ts +80 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/agent-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/agent-sdk@0.24.0-96217627668a
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -74,6 +74,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
74
74
|
*GroupsApi* | [**deleteLatestGroup**](docs/GroupsApi.md#deletelatestgroup) | **DELETE** /groups/{groupId} | Delete group from the latest collection
|
|
75
75
|
*GroupsApi* | [**getGroup**](docs/GroupsApi.md#getgroup) | **GET** /collections/{id}/groups/{groupId} | Get group by ID with its VirtualMachines
|
|
76
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
|
|
77
78
|
*GroupsApi* | [**listGroups**](docs/GroupsApi.md#listgroups) | **GET** /collections/{id}/groups | List all groups in a collection
|
|
78
79
|
*GroupsApi* | [**listLatestGroups**](docs/GroupsApi.md#listlatestgroups) | **GET** /groups | List groups from the latest collection
|
|
79
80
|
*GroupsApi* | [**updateLatestGroup**](docs/GroupsApi.md#updatelatestgroup) | **PATCH** /groups/{groupId} | Update group in the latest collection
|
|
@@ -199,7 +200,7 @@ and is automatically generated by the
|
|
|
199
200
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
200
201
|
|
|
201
202
|
- API version: `v2`
|
|
202
|
-
- Package version: `0.
|
|
203
|
+
- Package version: `0.24.0-96217627668a`
|
|
203
204
|
- Generator version: `7.26.0-SNAPSHOT`
|
|
204
205
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
205
206
|
|
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
|
*/
|
|
@@ -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/docs/GroupsApi.md
CHANGED
|
@@ -8,6 +8,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
8
8
|
| [**deleteLatestGroup**](GroupsApi.md#deletelatestgroup) | **DELETE** /groups/{groupId} | Delete group from the latest collection |
|
|
9
9
|
| [**getGroup**](GroupsApi.md#getgroup) | **GET** /collections/{id}/groups/{groupId} | Get group by ID with its VirtualMachines |
|
|
10
10
|
| [**getLatestGroup**](GroupsApi.md#getlatestgroup) | **GET** /groups/{groupId} | Get group by ID from the latest collection |
|
|
11
|
+
| [**listGroupApplications**](GroupsApi.md#listgroupapplications) | **GET** /groups/{groupId}/applications | List detected applications for a group |
|
|
11
12
|
| [**listGroups**](GroupsApi.md#listgroups) | **GET** /collections/{id}/groups | List all groups in a collection |
|
|
12
13
|
| [**listLatestGroups**](GroupsApi.md#listlatestgroups) | **GET** /groups | List groups from the latest collection |
|
|
13
14
|
| [**updateLatestGroup**](GroupsApi.md#updatelatestgroup) | **PATCH** /groups/{groupId} | Update group in the latest collection |
|
|
@@ -304,6 +305,73 @@ No authorization required
|
|
|
304
305
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
305
306
|
|
|
306
307
|
|
|
308
|
+
## listGroupApplications
|
|
309
|
+
|
|
310
|
+
> ApplicationListResponse listGroupApplications(groupId)
|
|
311
|
+
|
|
312
|
+
List detected applications for a group
|
|
313
|
+
|
|
314
|
+
### Example
|
|
315
|
+
|
|
316
|
+
```ts
|
|
317
|
+
import {
|
|
318
|
+
Configuration,
|
|
319
|
+
GroupsApi,
|
|
320
|
+
} from '@openshift-migration-advisor/agent-sdk';
|
|
321
|
+
import type { ListGroupApplicationsRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
322
|
+
|
|
323
|
+
async function example() {
|
|
324
|
+
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
325
|
+
const api = new GroupsApi();
|
|
326
|
+
|
|
327
|
+
const body = {
|
|
328
|
+
// string | Group ID
|
|
329
|
+
groupId: groupId_example,
|
|
330
|
+
} satisfies ListGroupApplicationsRequest;
|
|
331
|
+
|
|
332
|
+
try {
|
|
333
|
+
const data = await api.listGroupApplications(body);
|
|
334
|
+
console.log(data);
|
|
335
|
+
} catch (error) {
|
|
336
|
+
console.error(error);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
// Run the test
|
|
341
|
+
example().catch(console.error);
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
### Parameters
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
| Name | Type | Description | Notes |
|
|
348
|
+
|------------- | ------------- | ------------- | -------------|
|
|
349
|
+
| **groupId** | `string` | Group ID | [Defaults to `undefined`] |
|
|
350
|
+
|
|
351
|
+
### Return type
|
|
352
|
+
|
|
353
|
+
[**ApplicationListResponse**](ApplicationListResponse.md)
|
|
354
|
+
|
|
355
|
+
### Authorization
|
|
356
|
+
|
|
357
|
+
No authorization required
|
|
358
|
+
|
|
359
|
+
### HTTP request headers
|
|
360
|
+
|
|
361
|
+
- **Content-Type**: Not defined
|
|
362
|
+
- **Accept**: `application/json`
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
### HTTP response details
|
|
366
|
+
| Status code | Description | Response headers |
|
|
367
|
+
|-------------|-------------|------------------|
|
|
368
|
+
| **200** | List of detected applications | - |
|
|
369
|
+
| **404** | No collections or group not found | - |
|
|
370
|
+
| **500** | Internal server error | - |
|
|
371
|
+
|
|
372
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
373
|
+
|
|
374
|
+
|
|
307
375
|
## listGroups
|
|
308
376
|
|
|
309
377
|
> GroupListResponse listGroups(id, byName, page, pageSize)
|
package/package.json
CHANGED
package/src/apis/GroupsApi.ts
CHANGED
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import * as runtime from '../runtime.js';
|
|
16
|
+
import {
|
|
17
|
+
type ApplicationListResponse,
|
|
18
|
+
ApplicationListResponseFromJSON,
|
|
19
|
+
ApplicationListResponseToJSON,
|
|
20
|
+
} from '../models/ApplicationListResponse.js';
|
|
16
21
|
import {
|
|
17
22
|
type CreateGroupRequest,
|
|
18
23
|
CreateGroupRequestFromJSON,
|
|
@@ -95,6 +100,13 @@ export interface GetLatestGroupRequest {
|
|
|
95
100
|
pageSize?: number;
|
|
96
101
|
}
|
|
97
102
|
|
|
103
|
+
export interface ListGroupApplicationsRequest {
|
|
104
|
+
/**
|
|
105
|
+
* Group ID
|
|
106
|
+
*/
|
|
107
|
+
groupId: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
98
110
|
export interface ListGroupsRequest {
|
|
99
111
|
/**
|
|
100
112
|
* Collection ID
|
|
@@ -253,6 +265,29 @@ export interface GroupsApiInterface {
|
|
|
253
265
|
*/
|
|
254
266
|
getLatestGroup(requestParameters: GetLatestGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupResponse>;
|
|
255
267
|
|
|
268
|
+
/**
|
|
269
|
+
* Creates request options for listGroupApplications without sending the request
|
|
270
|
+
* @param {string} groupId Group ID
|
|
271
|
+
* @throws {RequiredError}
|
|
272
|
+
* @memberof GroupsApiInterface
|
|
273
|
+
*/
|
|
274
|
+
listGroupApplicationsRequestOpts(requestParameters: ListGroupApplicationsRequest): Promise<runtime.RequestOpts>;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
*
|
|
278
|
+
* @summary List detected applications for a group
|
|
279
|
+
* @param {string} groupId Group ID
|
|
280
|
+
* @param {*} [options] Override http request option.
|
|
281
|
+
* @throws {RequiredError}
|
|
282
|
+
* @memberof GroupsApiInterface
|
|
283
|
+
*/
|
|
284
|
+
listGroupApplicationsRaw(requestParameters: ListGroupApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationListResponse>>;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* List detected applications for a group
|
|
288
|
+
*/
|
|
289
|
+
listGroupApplications(requestParameters: ListGroupApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationListResponse>;
|
|
290
|
+
|
|
256
291
|
/**
|
|
257
292
|
* Creates request options for listGroups without sending the request
|
|
258
293
|
* @param {string} id Collection ID
|
|
@@ -554,6 +589,51 @@ export class GroupsApi extends runtime.BaseAPI implements GroupsApiInterface {
|
|
|
554
589
|
return await response.value();
|
|
555
590
|
}
|
|
556
591
|
|
|
592
|
+
/**
|
|
593
|
+
* Creates request options for listGroupApplications without sending the request
|
|
594
|
+
*/
|
|
595
|
+
async listGroupApplicationsRequestOpts(requestParameters: ListGroupApplicationsRequest): Promise<runtime.RequestOpts> {
|
|
596
|
+
if (requestParameters['groupId'] == null) {
|
|
597
|
+
throw new runtime.RequiredError(
|
|
598
|
+
'groupId',
|
|
599
|
+
'Required parameter "groupId" was null or undefined when calling listGroupApplications().'
|
|
600
|
+
);
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
const queryParameters: any = {};
|
|
604
|
+
|
|
605
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
let urlPath = `/groups/{groupId}/applications`;
|
|
609
|
+
urlPath = urlPath.replace('{groupId}', encodeURIComponent(String(requestParameters['groupId'])));
|
|
610
|
+
|
|
611
|
+
return {
|
|
612
|
+
path: urlPath,
|
|
613
|
+
method: 'GET',
|
|
614
|
+
headers: headerParameters,
|
|
615
|
+
query: queryParameters,
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* List detected applications for a group
|
|
621
|
+
*/
|
|
622
|
+
async listGroupApplicationsRaw(requestParameters: ListGroupApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationListResponse>> {
|
|
623
|
+
const requestOptions = await this.listGroupApplicationsRequestOpts(requestParameters);
|
|
624
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
625
|
+
|
|
626
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationListResponseFromJSON(jsonValue));
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* List detected applications for a group
|
|
631
|
+
*/
|
|
632
|
+
async listGroupApplications(requestParameters: ListGroupApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationListResponse> {
|
|
633
|
+
const response = await this.listGroupApplicationsRaw(requestParameters, initOverrides);
|
|
634
|
+
return await response.value();
|
|
635
|
+
}
|
|
636
|
+
|
|
557
637
|
/**
|
|
558
638
|
* Creates request options for listGroups without sending the request
|
|
559
639
|
*/
|