@openshift-migration-advisor/agent-sdk 0.32.0 → 0.33.1-84c734aba511
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/FILES +24 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +16 -4
- package/dist/apis/AppliancesApi.d.ts +64 -0
- package/dist/apis/AppliancesApi.js +72 -0
- package/dist/apis/CollectorApi.d.ts +0 -38
- package/dist/apis/CollectorApi.js +0 -59
- package/dist/apis/GroupsApi.d.ts +39 -0
- package/dist/apis/GroupsApi.js +40 -0
- package/dist/apis/ImageUpgradeApi.d.ts +66 -0
- package/dist/apis/ImageUpgradeApi.js +90 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/AppliancesApi.d.ts +64 -0
- package/dist/esm/apis/AppliancesApi.js +68 -0
- package/dist/esm/apis/CollectorApi.d.ts +0 -38
- package/dist/esm/apis/CollectorApi.js +0 -59
- package/dist/esm/apis/GroupsApi.d.ts +39 -0
- package/dist/esm/apis/GroupsApi.js +40 -0
- package/dist/esm/apis/ImageUpgradeApi.d.ts +66 -0
- package/dist/esm/apis/ImageUpgradeApi.js +86 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/AgentStatus.d.ts +5 -0
- package/dist/esm/models/AgentStatus.js +5 -0
- package/dist/esm/models/Appliance.d.ts +51 -0
- package/dist/esm/models/Appliance.js +64 -0
- package/dist/esm/models/ApplianceListResponse.d.ts +31 -0
- package/dist/esm/models/ApplianceListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +16 -0
- package/dist/esm/models/ApplicationOverview.js +12 -0
- package/dist/esm/models/Host.d.ts +16 -0
- package/dist/esm/models/Host.js +8 -0
- package/dist/esm/models/ImageUpgradeImage.d.ts +34 -0
- package/dist/esm/models/ImageUpgradeImage.js +47 -0
- package/dist/esm/models/ImageUpgradeResult.d.ts +66 -0
- package/dist/esm/models/ImageUpgradeResult.js +71 -0
- package/dist/esm/models/ImageUpgradeStatus.d.ts +44 -0
- package/dist/esm/models/ImageUpgradeStatus.js +57 -0
- package/dist/esm/models/ImageUploadStatus.d.ts +44 -0
- package/dist/esm/models/ImageUploadStatus.js +56 -0
- package/dist/esm/models/OsInfo.d.ts +12 -0
- package/dist/esm/models/OsInfo.js +9 -0
- package/dist/esm/models/Product.d.ts +66 -0
- package/dist/esm/models/Product.js +61 -0
- package/dist/esm/models/RDMBacking.d.ts +26 -0
- package/dist/esm/models/RDMBacking.js +17 -0
- package/dist/esm/models/RDMHostLun.d.ts +42 -0
- package/dist/esm/models/RDMHostLun.js +49 -0
- package/dist/esm/models/SuccessfulImageUpgrade.d.ts +38 -0
- package/dist/esm/models/SuccessfulImageUpgrade.js +52 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +8 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +8 -0
- package/dist/esm/models/VirtualMachine.d.ts +8 -0
- package/dist/esm/models/VirtualMachine.js +4 -0
- package/dist/esm/models/VirtualMachineDetail.d.ts +5 -0
- package/dist/esm/models/VirtualMachineDetail.js +3 -0
- package/dist/esm/models/VirtualMachineDisk.d.ts +8 -0
- package/dist/esm/models/VirtualMachineDisk.js +4 -0
- package/dist/esm/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/esm/models/VirtualMachineIdentity.js +47 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/esm/runtime.js +4 -3
- package/dist/models/AgentStatus.d.ts +5 -0
- package/dist/models/AgentStatus.js +5 -0
- package/dist/models/Appliance.d.ts +51 -0
- package/dist/models/Appliance.js +71 -0
- package/dist/models/ApplianceListResponse.d.ts +31 -0
- package/dist/models/ApplianceListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +16 -0
- package/dist/models/ApplicationOverview.js +12 -0
- package/dist/models/Host.d.ts +16 -0
- package/dist/models/Host.js +8 -0
- package/dist/models/ImageUpgradeImage.d.ts +34 -0
- package/dist/models/ImageUpgradeImage.js +54 -0
- package/dist/models/ImageUpgradeResult.d.ts +66 -0
- package/dist/models/ImageUpgradeResult.js +79 -0
- package/dist/models/ImageUpgradeStatus.d.ts +44 -0
- package/dist/models/ImageUpgradeStatus.js +64 -0
- package/dist/models/ImageUploadStatus.d.ts +44 -0
- package/dist/models/ImageUploadStatus.js +64 -0
- package/dist/models/OsInfo.d.ts +12 -0
- package/dist/models/OsInfo.js +10 -1
- package/dist/models/Product.d.ts +66 -0
- package/dist/models/Product.js +68 -0
- package/dist/models/RDMBacking.d.ts +26 -0
- package/dist/models/RDMBacking.js +18 -0
- package/dist/models/RDMHostLun.d.ts +42 -0
- package/dist/models/RDMHostLun.js +56 -0
- package/dist/models/SuccessfulImageUpgrade.d.ts +38 -0
- package/dist/models/SuccessfulImageUpgrade.js +59 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +8 -0
- package/dist/models/VMFilterOptionsResponse.js +8 -0
- package/dist/models/VirtualMachine.d.ts +8 -0
- package/dist/models/VirtualMachine.js +4 -0
- package/dist/models/VirtualMachineDetail.d.ts +5 -0
- package/dist/models/VirtualMachineDetail.js +3 -0
- package/dist/models/VirtualMachineDisk.d.ts +8 -0
- package/dist/models/VirtualMachineDisk.js +4 -0
- package/dist/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/models/VirtualMachineIdentity.js +54 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/dist/runtime.js +4 -3
- package/docs/AgentStatus.md +2 -0
- package/docs/Appliance.md +44 -0
- package/docs/ApplianceListResponse.md +34 -0
- package/docs/AppliancesApi.md +76 -0
- package/docs/ApplicationOverview.md +8 -0
- package/docs/CollectorApi.md +0 -70
- package/docs/GroupsApi.md +68 -0
- package/docs/Host.md +8 -0
- package/docs/ImageUpgradeApi.md +82 -0
- package/docs/ImageUpgradeImage.md +36 -0
- package/docs/ImageUpgradeResult.md +46 -0
- package/docs/ImageUpgradeStatus.md +40 -0
- package/docs/ImageUploadStatus.md +36 -0
- package/docs/OsInfo.md +2 -0
- package/docs/Product.md +52 -0
- package/docs/RDMBacking.md +8 -0
- package/docs/RDMHostLun.md +41 -0
- package/docs/SuccessfulImageUpgrade.md +38 -0
- package/docs/VMFilterOptionsResponse.md +4 -0
- package/docs/VirtualMachine.md +4 -0
- package/docs/VirtualMachineDetail.md +2 -0
- package/docs/VirtualMachineDisk.md +4 -0
- package/docs/VirtualMachineIdentity.md +36 -0
- package/package.json +1 -1
- package/src/apis/AppliancesApi.ts +111 -0
- package/src/apis/CollectorApi.ts +0 -97
- package/src/apis/GroupsApi.ts +80 -0
- package/src/apis/ImageUpgradeApi.ts +128 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AgentStatus.ts +14 -0
- package/src/models/Appliance.ts +107 -0
- package/src/models/ApplianceListResponse.ts +72 -0
- package/src/models/ApplicationOverview.ts +26 -0
- package/src/models/Host.ts +24 -0
- package/src/models/ImageUpgradeImage.ts +71 -0
- package/src/models/ImageUpgradeResult.ts +130 -0
- package/src/models/ImageUpgradeStatus.ts +100 -0
- package/src/models/ImageUploadStatus.ts +84 -0
- package/src/models/OsInfo.ts +15 -0
- package/src/models/Product.ts +118 -0
- package/src/models/RDMBacking.ts +44 -0
- package/src/models/RDMHostLun.ts +82 -0
- package/src/models/SuccessfulImageUpgrade.ts +78 -0
- package/src/models/VMFilterOptionsResponse.ts +14 -0
- package/src/models/VirtualMachine.ts +12 -0
- package/src/models/VirtualMachineDetail.ts +13 -0
- package/src/models/VirtualMachineDisk.ts +12 -0
- package/src/models/VirtualMachineIdentity.ts +71 -0
- package/src/models/index.ts +10 -0
- package/src/runtime.ts +3 -3
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
# RDMHostLun
|
|
3
|
+
|
|
4
|
+
Host LUN matched to the RDM disk backing through a verified identifier relationship and the VM\'s running host
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`hostId` | string
|
|
11
|
+
`key` | string
|
|
12
|
+
`canonicalName` | string
|
|
13
|
+
`lunUuid` | string
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { RDMHostLun } from '@openshift-migration-advisor/agent-sdk'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"hostId": null,
|
|
23
|
+
"key": null,
|
|
24
|
+
"canonicalName": null,
|
|
25
|
+
"lunUuid": null,
|
|
26
|
+
} satisfies RDMHostLun
|
|
27
|
+
|
|
28
|
+
console.log(example)
|
|
29
|
+
|
|
30
|
+
// Convert the instance to a JSON string
|
|
31
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
32
|
+
console.log(exampleJSON)
|
|
33
|
+
|
|
34
|
+
// Parse the JSON string back to an object
|
|
35
|
+
const exampleParsed = JSON.parse(exampleJSON) as RDMHostLun
|
|
36
|
+
console.log(exampleParsed)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
40
|
+
|
|
41
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# SuccessfulImageUpgrade
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`version` | string
|
|
10
|
+
`digest` | string
|
|
11
|
+
`time` | Date
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { SuccessfulImageUpgrade } from '@openshift-migration-advisor/agent-sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"version": null,
|
|
21
|
+
"digest": null,
|
|
22
|
+
"time": null,
|
|
23
|
+
} satisfies SuccessfulImageUpgrade
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as SuccessfulImageUpgrade
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -12,6 +12,8 @@ Name | Type
|
|
|
12
12
|
`concernLabels` | Array<string>
|
|
13
13
|
`concernCategories` | Array<string>
|
|
14
14
|
`applications` | Array<string>
|
|
15
|
+
`osConfigs` | Array<string>
|
|
16
|
+
`osTools` | Array<string>
|
|
15
17
|
|
|
16
18
|
## Example
|
|
17
19
|
|
|
@@ -26,6 +28,8 @@ const example = {
|
|
|
26
28
|
"concernLabels": null,
|
|
27
29
|
"concernCategories": null,
|
|
28
30
|
"applications": null,
|
|
31
|
+
"osConfigs": null,
|
|
32
|
+
"osTools": null,
|
|
29
33
|
} satisfies VMFilterOptionsResponse
|
|
30
34
|
|
|
31
35
|
console.log(example)
|
package/docs/VirtualMachine.md
CHANGED
|
@@ -22,6 +22,8 @@ Name | Type
|
|
|
22
22
|
`migrationExcluded` | boolean
|
|
23
23
|
`groups` | Array<string>
|
|
24
24
|
`labels` | Array<string>
|
|
25
|
+
`guestName` | string
|
|
26
|
+
`guestNameFromVmwareTools` | string
|
|
25
27
|
`utilization_cpu_p95` | number
|
|
26
28
|
`utilization_mem_p95` | number
|
|
27
29
|
`utilization_cpu_max` | number
|
|
@@ -52,6 +54,8 @@ const example = {
|
|
|
52
54
|
"migrationExcluded": null,
|
|
53
55
|
"groups": null,
|
|
54
56
|
"labels": null,
|
|
57
|
+
"guestName": null,
|
|
58
|
+
"guestNameFromVmwareTools": null,
|
|
55
59
|
"utilization_cpu_p95": null,
|
|
56
60
|
"utilization_mem_p95": null,
|
|
57
61
|
"utilization_cpu_max": null,
|
|
@@ -47,6 +47,7 @@ Name | Type
|
|
|
47
47
|
`inspection` | [VirtualMachineInspectionResults](VirtualMachineInspectionResults.md)
|
|
48
48
|
`utilization` | [VmUtilizationDetails](VmUtilizationDetails.md)
|
|
49
49
|
`processes` | [Array<Process>](Process.md)
|
|
50
|
+
`products` | [Array<Product>](Product.md)
|
|
50
51
|
|
|
51
52
|
## Example
|
|
52
53
|
|
|
@@ -96,6 +97,7 @@ const example = {
|
|
|
96
97
|
"inspection": null,
|
|
97
98
|
"utilization": null,
|
|
98
99
|
"processes": null,
|
|
100
|
+
"products": null,
|
|
99
101
|
} satisfies VirtualMachineDetail
|
|
100
102
|
|
|
101
103
|
console.log(example)
|
|
@@ -12,6 +12,8 @@ Name | Type
|
|
|
12
12
|
`shared` | boolean
|
|
13
13
|
`rdm` | boolean
|
|
14
14
|
`rdmBacking` | [RDMBacking](RDMBacking.md)
|
|
15
|
+
`thinProvisioned` | boolean
|
|
16
|
+
`eagerlyScrubbed` | boolean
|
|
15
17
|
`bus` | string
|
|
16
18
|
`mode` | string
|
|
17
19
|
`datastore` | [VirtualMachineDatastore](VirtualMachineDatastore.md)
|
|
@@ -29,6 +31,8 @@ const example = {
|
|
|
29
31
|
"shared": null,
|
|
30
32
|
"rdm": null,
|
|
31
33
|
"rdmBacking": null,
|
|
34
|
+
"thinProvisioned": null,
|
|
35
|
+
"eagerlyScrubbed": null,
|
|
32
36
|
"bus": null,
|
|
33
37
|
"mode": null,
|
|
34
38
|
"datastore": null,
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# VirtualMachineIdentity
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`name` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { VirtualMachineIdentity } from '@openshift-migration-advisor/agent-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"id": null,
|
|
20
|
+
"name": null,
|
|
21
|
+
} satisfies VirtualMachineIdentity
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as VirtualMachineIdentity
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/package.json
CHANGED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import * as runtime from '../runtime.js';
|
|
16
|
+
import {
|
|
17
|
+
type ApplianceListResponse,
|
|
18
|
+
ApplianceListResponseFromJSON,
|
|
19
|
+
ApplianceListResponseToJSON,
|
|
20
|
+
} from '../models/ApplianceListResponse.js';
|
|
21
|
+
|
|
22
|
+
export interface ListAppliancesRequest {
|
|
23
|
+
/**
|
|
24
|
+
* Collection ID
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* AppliancesApi - interface
|
|
31
|
+
*
|
|
32
|
+
* @export
|
|
33
|
+
* @interface AppliancesApiInterface
|
|
34
|
+
*/
|
|
35
|
+
export interface AppliancesApiInterface {
|
|
36
|
+
/**
|
|
37
|
+
* Creates request options for listAppliances without sending the request
|
|
38
|
+
* @param {string} id Collection ID
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
* @memberof AppliancesApiInterface
|
|
41
|
+
*/
|
|
42
|
+
listAppliancesRequestOpts(requestParameters: ListAppliancesRequest): Promise<runtime.RequestOpts>;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @summary List detected appliances in a collection
|
|
47
|
+
* @param {string} id Collection ID
|
|
48
|
+
* @param {*} [options] Override http request option.
|
|
49
|
+
* @throws {RequiredError}
|
|
50
|
+
* @memberof AppliancesApiInterface
|
|
51
|
+
*/
|
|
52
|
+
listAppliancesRaw(requestParameters: ListAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceListResponse>>;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* List detected appliances in a collection
|
|
56
|
+
*/
|
|
57
|
+
listAppliances(requestParameters: ListAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse>;
|
|
58
|
+
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
export class AppliancesApi extends runtime.BaseAPI implements AppliancesApiInterface {
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Creates request options for listAppliances without sending the request
|
|
68
|
+
*/
|
|
69
|
+
async listAppliancesRequestOpts(requestParameters: ListAppliancesRequest): Promise<runtime.RequestOpts> {
|
|
70
|
+
if (requestParameters['id'] == null) {
|
|
71
|
+
throw new runtime.RequiredError(
|
|
72
|
+
'id',
|
|
73
|
+
'Required parameter "id" was null or undefined when calling listAppliances().'
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
const queryParameters: any = {};
|
|
78
|
+
|
|
79
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
let urlPath = `/collections/{id}/appliances`;
|
|
83
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
path: urlPath,
|
|
87
|
+
method: 'GET',
|
|
88
|
+
headers: headerParameters,
|
|
89
|
+
query: queryParameters,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* List detected appliances in a collection
|
|
95
|
+
*/
|
|
96
|
+
async listAppliancesRaw(requestParameters: ListAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceListResponse>> {
|
|
97
|
+
const requestOptions = await this.listAppliancesRequestOpts(requestParameters);
|
|
98
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
99
|
+
|
|
100
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplianceListResponseFromJSON(jsonValue));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* List detected appliances in a collection
|
|
105
|
+
*/
|
|
106
|
+
async listAppliances(requestParameters: ListAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse> {
|
|
107
|
+
const response = await this.listAppliancesRaw(requestParameters, initOverrides);
|
|
108
|
+
return await response.value();
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
}
|
package/src/apis/CollectorApi.ts
CHANGED
|
@@ -19,13 +19,6 @@ import {
|
|
|
19
19
|
CollectorStatusToJSON,
|
|
20
20
|
} from '../models/CollectorStatus.js';
|
|
21
21
|
|
|
22
|
-
export interface StartRvtoolsCollectorRequest {
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
files: Array<Blob>;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
22
|
/**
|
|
30
23
|
* CollectorApi - interface
|
|
31
24
|
*
|
|
@@ -75,29 +68,6 @@ export interface CollectorApiInterface {
|
|
|
75
68
|
*/
|
|
76
69
|
startCollector(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
77
70
|
|
|
78
|
-
/**
|
|
79
|
-
* Creates request options for startRvtoolsCollector without sending the request
|
|
80
|
-
* @param {Array<Blob>} files
|
|
81
|
-
* @throws {RequiredError}
|
|
82
|
-
* @memberof CollectorApiInterface
|
|
83
|
-
*/
|
|
84
|
-
startRvtoolsCollectorRequestOpts(requestParameters: StartRvtoolsCollectorRequest): Promise<runtime.RequestOpts>;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @summary Start a collection from RVTools files
|
|
89
|
-
* @param {Array<Blob>} files
|
|
90
|
-
* @param {*} [options] Override http request option.
|
|
91
|
-
* @throws {RequiredError}
|
|
92
|
-
* @memberof CollectorApiInterface
|
|
93
|
-
*/
|
|
94
|
-
startRvtoolsCollectorRaw(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>>;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Start a collection from RVTools files
|
|
98
|
-
*/
|
|
99
|
-
startRvtoolsCollector(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
100
|
-
|
|
101
71
|
/**
|
|
102
72
|
* Creates request options for stopCollector without sending the request
|
|
103
73
|
* @throws {RequiredError}
|
|
@@ -200,73 +170,6 @@ export class CollectorApi extends runtime.BaseAPI implements CollectorApiInterfa
|
|
|
200
170
|
return await response.value();
|
|
201
171
|
}
|
|
202
172
|
|
|
203
|
-
/**
|
|
204
|
-
* Creates request options for startRvtoolsCollector without sending the request
|
|
205
|
-
*/
|
|
206
|
-
async startRvtoolsCollectorRequestOpts(requestParameters: StartRvtoolsCollectorRequest): Promise<runtime.RequestOpts> {
|
|
207
|
-
if (requestParameters['files'] == null) {
|
|
208
|
-
throw new runtime.RequiredError(
|
|
209
|
-
'files',
|
|
210
|
-
'Required parameter "files" was null or undefined when calling startRvtoolsCollector().'
|
|
211
|
-
);
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
const queryParameters: any = {};
|
|
215
|
-
|
|
216
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
217
|
-
|
|
218
|
-
const consumes: runtime.Consume[] = [
|
|
219
|
-
{ contentType: 'multipart/form-data' },
|
|
220
|
-
];
|
|
221
|
-
// @ts-ignore: canConsumeForm may be unused
|
|
222
|
-
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
223
|
-
|
|
224
|
-
let formParams: { append(param: string, value: any): any };
|
|
225
|
-
let useForm = false;
|
|
226
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
227
|
-
useForm = canConsumeForm;
|
|
228
|
-
if (useForm) {
|
|
229
|
-
formParams = new FormData();
|
|
230
|
-
} else {
|
|
231
|
-
formParams = new URLSearchParams();
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
if (requestParameters['files'] != null) {
|
|
235
|
-
requestParameters['files'].forEach((element) => {
|
|
236
|
-
formParams.append('files', element as any);
|
|
237
|
-
})
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
let urlPath = `/collector/rvtools`;
|
|
242
|
-
|
|
243
|
-
return {
|
|
244
|
-
path: urlPath,
|
|
245
|
-
method: 'POST',
|
|
246
|
-
headers: headerParameters,
|
|
247
|
-
query: queryParameters,
|
|
248
|
-
body: formParams,
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* Start a collection from RVTools files
|
|
254
|
-
*/
|
|
255
|
-
async startRvtoolsCollectorRaw(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>> {
|
|
256
|
-
const requestOptions = await this.startRvtoolsCollectorRequestOpts(requestParameters);
|
|
257
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
258
|
-
|
|
259
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => CollectorStatusFromJSON(jsonValue));
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Start a collection from RVTools files
|
|
264
|
-
*/
|
|
265
|
-
async startRvtoolsCollector(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus> {
|
|
266
|
-
const response = await this.startRvtoolsCollectorRaw(requestParameters, initOverrides);
|
|
267
|
-
return await response.value();
|
|
268
|
-
}
|
|
269
|
-
|
|
270
173
|
/**
|
|
271
174
|
* Creates request options for stopCollector without sending the request
|
|
272
175
|
*/
|
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 ApplianceListResponse,
|
|
18
|
+
ApplianceListResponseFromJSON,
|
|
19
|
+
ApplianceListResponseToJSON,
|
|
20
|
+
} from '../models/ApplianceListResponse.js';
|
|
16
21
|
import {
|
|
17
22
|
type ApplicationListResponse,
|
|
18
23
|
ApplicationListResponseFromJSON,
|
|
@@ -100,6 +105,13 @@ export interface GetLatestGroupRequest {
|
|
|
100
105
|
pageSize?: number;
|
|
101
106
|
}
|
|
102
107
|
|
|
108
|
+
export interface ListGroupAppliancesRequest {
|
|
109
|
+
/**
|
|
110
|
+
* Group ID
|
|
111
|
+
*/
|
|
112
|
+
groupId: string;
|
|
113
|
+
}
|
|
114
|
+
|
|
103
115
|
export interface ListGroupApplicationsRequest {
|
|
104
116
|
/**
|
|
105
117
|
* Group ID
|
|
@@ -265,6 +277,29 @@ export interface GroupsApiInterface {
|
|
|
265
277
|
*/
|
|
266
278
|
getLatestGroup(requestParameters: GetLatestGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupResponse>;
|
|
267
279
|
|
|
280
|
+
/**
|
|
281
|
+
* Creates request options for listGroupAppliances without sending the request
|
|
282
|
+
* @param {string} groupId Group ID
|
|
283
|
+
* @throws {RequiredError}
|
|
284
|
+
* @memberof GroupsApiInterface
|
|
285
|
+
*/
|
|
286
|
+
listGroupAppliancesRequestOpts(requestParameters: ListGroupAppliancesRequest): Promise<runtime.RequestOpts>;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @summary List detected appliances for a group
|
|
291
|
+
* @param {string} groupId Group ID
|
|
292
|
+
* @param {*} [options] Override http request option.
|
|
293
|
+
* @throws {RequiredError}
|
|
294
|
+
* @memberof GroupsApiInterface
|
|
295
|
+
*/
|
|
296
|
+
listGroupAppliancesRaw(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceListResponse>>;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* List detected appliances for a group
|
|
300
|
+
*/
|
|
301
|
+
listGroupAppliances(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse>;
|
|
302
|
+
|
|
268
303
|
/**
|
|
269
304
|
* Creates request options for listGroupApplications without sending the request
|
|
270
305
|
* @param {string} groupId Group ID
|
|
@@ -589,6 +624,51 @@ export class GroupsApi extends runtime.BaseAPI implements GroupsApiInterface {
|
|
|
589
624
|
return await response.value();
|
|
590
625
|
}
|
|
591
626
|
|
|
627
|
+
/**
|
|
628
|
+
* Creates request options for listGroupAppliances without sending the request
|
|
629
|
+
*/
|
|
630
|
+
async listGroupAppliancesRequestOpts(requestParameters: ListGroupAppliancesRequest): Promise<runtime.RequestOpts> {
|
|
631
|
+
if (requestParameters['groupId'] == null) {
|
|
632
|
+
throw new runtime.RequiredError(
|
|
633
|
+
'groupId',
|
|
634
|
+
'Required parameter "groupId" was null or undefined when calling listGroupAppliances().'
|
|
635
|
+
);
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
const queryParameters: any = {};
|
|
639
|
+
|
|
640
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
let urlPath = `/groups/{groupId}/appliances`;
|
|
644
|
+
urlPath = urlPath.replace('{groupId}', encodeURIComponent(String(requestParameters['groupId'])));
|
|
645
|
+
|
|
646
|
+
return {
|
|
647
|
+
path: urlPath,
|
|
648
|
+
method: 'GET',
|
|
649
|
+
headers: headerParameters,
|
|
650
|
+
query: queryParameters,
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* List detected appliances for a group
|
|
656
|
+
*/
|
|
657
|
+
async listGroupAppliancesRaw(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceListResponse>> {
|
|
658
|
+
const requestOptions = await this.listGroupAppliancesRequestOpts(requestParameters);
|
|
659
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
660
|
+
|
|
661
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplianceListResponseFromJSON(jsonValue));
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* List detected appliances for a group
|
|
666
|
+
*/
|
|
667
|
+
async listGroupAppliances(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse> {
|
|
668
|
+
const response = await this.listGroupAppliancesRaw(requestParameters, initOverrides);
|
|
669
|
+
return await response.value();
|
|
670
|
+
}
|
|
671
|
+
|
|
592
672
|
/**
|
|
593
673
|
* Creates request options for listGroupApplications without sending the request
|
|
594
674
|
*/
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import * as runtime from '../runtime.js';
|
|
16
|
+
|
|
17
|
+
export interface PostImageUpgradeRequest {
|
|
18
|
+
/**
|
|
19
|
+
* OCI archive; maximum file payload is 3 GiB
|
|
20
|
+
*/
|
|
21
|
+
file: Blob;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* ImageUpgradeApi - interface
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface ImageUpgradeApiInterface
|
|
29
|
+
*/
|
|
30
|
+
export interface ImageUpgradeApiInterface {
|
|
31
|
+
/**
|
|
32
|
+
* Creates request options for postImageUpgrade without sending the request
|
|
33
|
+
* @param {Blob} file OCI archive; maximum file payload is 3 GiB
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
* @memberof ImageUpgradeApiInterface
|
|
36
|
+
*/
|
|
37
|
+
postImageUpgradeRequestOpts(requestParameters: PostImageUpgradeRequest): Promise<runtime.RequestOpts>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Validate the complete upload and atomically place the archive in the watched directory. The host owns upgrade execution. Read imageUpgradeStatus in GET /agent for upload activity and the last host result.
|
|
41
|
+
* @summary Upload an OCI image for a disconnected appliance image upgrade
|
|
42
|
+
* @param {Blob} file OCI archive; maximum file payload is 3 GiB
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
* @memberof ImageUpgradeApiInterface
|
|
46
|
+
*/
|
|
47
|
+
postImageUpgradeRaw(requestParameters: PostImageUpgradeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Validate the complete upload and atomically place the archive in the watched directory. The host owns upgrade execution. Read imageUpgradeStatus in GET /agent for upload activity and the last host result.
|
|
51
|
+
* Upload an OCI image for a disconnected appliance image upgrade
|
|
52
|
+
*/
|
|
53
|
+
postImageUpgrade(requestParameters: PostImageUpgradeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
54
|
+
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
export class ImageUpgradeApi extends runtime.BaseAPI implements ImageUpgradeApiInterface {
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Creates request options for postImageUpgrade without sending the request
|
|
64
|
+
*/
|
|
65
|
+
async postImageUpgradeRequestOpts(requestParameters: PostImageUpgradeRequest): Promise<runtime.RequestOpts> {
|
|
66
|
+
if (requestParameters['file'] == null) {
|
|
67
|
+
throw new runtime.RequiredError(
|
|
68
|
+
'file',
|
|
69
|
+
'Required parameter "file" was null or undefined when calling postImageUpgrade().'
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const queryParameters: any = {};
|
|
74
|
+
|
|
75
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
76
|
+
|
|
77
|
+
const consumes: runtime.Consume[] = [
|
|
78
|
+
{ contentType: 'multipart/form-data' },
|
|
79
|
+
];
|
|
80
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
81
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
82
|
+
|
|
83
|
+
let formParams: { append(param: string, value: any): any };
|
|
84
|
+
let useForm = false;
|
|
85
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
86
|
+
useForm = canConsumeForm;
|
|
87
|
+
if (useForm) {
|
|
88
|
+
formParams = new FormData();
|
|
89
|
+
} else {
|
|
90
|
+
formParams = new URLSearchParams();
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
if (requestParameters['file'] != null) {
|
|
94
|
+
formParams.append('file', requestParameters['file'] as any);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
let urlPath = `/image-upgrades`;
|
|
99
|
+
|
|
100
|
+
return {
|
|
101
|
+
path: urlPath,
|
|
102
|
+
method: 'POST',
|
|
103
|
+
headers: headerParameters,
|
|
104
|
+
query: queryParameters,
|
|
105
|
+
body: formParams,
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Validate the complete upload and atomically place the archive in the watched directory. The host owns upgrade execution. Read imageUpgradeStatus in GET /agent for upload activity and the last host result.
|
|
111
|
+
* Upload an OCI image for a disconnected appliance image upgrade
|
|
112
|
+
*/
|
|
113
|
+
async postImageUpgradeRaw(requestParameters: PostImageUpgradeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
114
|
+
const requestOptions = await this.postImageUpgradeRequestOpts(requestParameters);
|
|
115
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
116
|
+
|
|
117
|
+
return new runtime.VoidApiResponse(response);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Validate the complete upload and atomically place the archive in the watched directory. The host owns upgrade execution. Read imageUpgradeStatus in GET /agent for upload activity and the last host result.
|
|
122
|
+
* Upload an OCI image for a disconnected appliance image upgrade
|
|
123
|
+
*/
|
|
124
|
+
async postImageUpgrade(requestParameters: PostImageUpgradeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
125
|
+
await this.postImageUpgradeRaw(requestParameters, initOverrides);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AgentApi.js';
|
|
4
|
+
export * from './AppliancesApi.js';
|
|
4
5
|
export * from './ApplicationsApi.js';
|
|
5
6
|
export * from './CollectionsApi.js';
|
|
6
7
|
export * from './CollectorApi.js';
|
|
7
8
|
export * from './CredentialsApi.js';
|
|
8
9
|
export * from './ForecasterApi.js';
|
|
9
10
|
export * from './GroupsApi.js';
|
|
11
|
+
export * from './ImageUpgradeApi.js';
|
|
10
12
|
export * from './InspectorApi.js';
|
|
11
13
|
export * from './InventoriesApi.js';
|
|
12
14
|
export * from './RightsizingApi.js';
|