@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,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.ImageUpgradeApi = void 0;
|
|
26
|
+
const runtime = require("../runtime.js");
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
class ImageUpgradeApi extends runtime.BaseAPI {
|
|
31
|
+
/**
|
|
32
|
+
* Creates request options for postImageUpgrade without sending the request
|
|
33
|
+
*/
|
|
34
|
+
postImageUpgradeRequestOpts(requestParameters) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
if (requestParameters['file'] == null) {
|
|
37
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling postImageUpgrade().');
|
|
38
|
+
}
|
|
39
|
+
const queryParameters = {};
|
|
40
|
+
const headerParameters = {};
|
|
41
|
+
const consumes = [
|
|
42
|
+
{ contentType: 'multipart/form-data' },
|
|
43
|
+
];
|
|
44
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
45
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
46
|
+
let formParams;
|
|
47
|
+
let useForm = false;
|
|
48
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
49
|
+
useForm = canConsumeForm;
|
|
50
|
+
if (useForm) {
|
|
51
|
+
formParams = new FormData();
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
formParams = new URLSearchParams();
|
|
55
|
+
}
|
|
56
|
+
if (requestParameters['file'] != null) {
|
|
57
|
+
formParams.append('file', requestParameters['file']);
|
|
58
|
+
}
|
|
59
|
+
let urlPath = `/image-upgrades`;
|
|
60
|
+
return {
|
|
61
|
+
path: urlPath,
|
|
62
|
+
method: 'POST',
|
|
63
|
+
headers: headerParameters,
|
|
64
|
+
query: queryParameters,
|
|
65
|
+
body: formParams,
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* 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.
|
|
71
|
+
* Upload an OCI image for a disconnected appliance image upgrade
|
|
72
|
+
*/
|
|
73
|
+
postImageUpgradeRaw(requestParameters, initOverrides) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
const requestOptions = yield this.postImageUpgradeRequestOpts(requestParameters);
|
|
76
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
77
|
+
return new runtime.VoidApiResponse(response);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* 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.
|
|
82
|
+
* Upload an OCI image for a disconnected appliance image upgrade
|
|
83
|
+
*/
|
|
84
|
+
postImageUpgrade(requestParameters, initOverrides) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
yield this.postImageUpgradeRaw(requestParameters, initOverrides);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
exports.ImageUpgradeApi = ImageUpgradeApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from './AgentApi.js';
|
|
2
|
+
export * from './AppliancesApi.js';
|
|
2
3
|
export * from './ApplicationsApi.js';
|
|
3
4
|
export * from './CollectionsApi.js';
|
|
4
5
|
export * from './CollectorApi.js';
|
|
5
6
|
export * from './CredentialsApi.js';
|
|
6
7
|
export * from './ForecasterApi.js';
|
|
7
8
|
export * from './GroupsApi.js';
|
|
9
|
+
export * from './ImageUpgradeApi.js';
|
|
8
10
|
export * from './InspectorApi.js';
|
|
9
11
|
export * from './InventoriesApi.js';
|
|
10
12
|
export * from './RightsizingApi.js';
|
package/dist/apis/index.js
CHANGED
|
@@ -17,12 +17,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AgentApi.js"), exports);
|
|
20
|
+
__exportStar(require("./AppliancesApi.js"), exports);
|
|
20
21
|
__exportStar(require("./ApplicationsApi.js"), exports);
|
|
21
22
|
__exportStar(require("./CollectionsApi.js"), exports);
|
|
22
23
|
__exportStar(require("./CollectorApi.js"), exports);
|
|
23
24
|
__exportStar(require("./CredentialsApi.js"), exports);
|
|
24
25
|
__exportStar(require("./ForecasterApi.js"), exports);
|
|
25
26
|
__exportStar(require("./GroupsApi.js"), exports);
|
|
27
|
+
__exportStar(require("./ImageUpgradeApi.js"), exports);
|
|
26
28
|
__exportStar(require("./InspectorApi.js"), exports);
|
|
27
29
|
__exportStar(require("./InventoriesApi.js"), exports);
|
|
28
30
|
__exportStar(require("./RightsizingApi.js"), exports);
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime.js';
|
|
13
|
+
import { type ApplianceListResponse } from '../models/ApplianceListResponse.js';
|
|
14
|
+
export interface ListAppliancesRequest {
|
|
15
|
+
/**
|
|
16
|
+
* Collection ID
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* AppliancesApi - interface
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
* @interface AppliancesApiInterface
|
|
25
|
+
*/
|
|
26
|
+
export interface AppliancesApiInterface {
|
|
27
|
+
/**
|
|
28
|
+
* Creates request options for listAppliances without sending the request
|
|
29
|
+
* @param {string} id Collection ID
|
|
30
|
+
* @throws {RequiredError}
|
|
31
|
+
* @memberof AppliancesApiInterface
|
|
32
|
+
*/
|
|
33
|
+
listAppliancesRequestOpts(requestParameters: ListAppliancesRequest): Promise<runtime.RequestOpts>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @summary List detected appliances in a collection
|
|
37
|
+
* @param {string} id Collection ID
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
* @memberof AppliancesApiInterface
|
|
41
|
+
*/
|
|
42
|
+
listAppliancesRaw(requestParameters: ListAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceListResponse>>;
|
|
43
|
+
/**
|
|
44
|
+
* List detected appliances in a collection
|
|
45
|
+
*/
|
|
46
|
+
listAppliances(requestParameters: ListAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
export declare class AppliancesApi extends runtime.BaseAPI implements AppliancesApiInterface {
|
|
52
|
+
/**
|
|
53
|
+
* Creates request options for listAppliances without sending the request
|
|
54
|
+
*/
|
|
55
|
+
listAppliancesRequestOpts(requestParameters: ListAppliancesRequest): Promise<runtime.RequestOpts>;
|
|
56
|
+
/**
|
|
57
|
+
* List detected appliances in a collection
|
|
58
|
+
*/
|
|
59
|
+
listAppliancesRaw(requestParameters: ListAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceListResponse>>;
|
|
60
|
+
/**
|
|
61
|
+
* List detected appliances in a collection
|
|
62
|
+
*/
|
|
63
|
+
listAppliances(requestParameters: ListAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse>;
|
|
64
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime.js';
|
|
24
|
+
import { ApplianceListResponseFromJSON, } from '../models/ApplianceListResponse.js';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class AppliancesApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Creates request options for listAppliances without sending the request
|
|
31
|
+
*/
|
|
32
|
+
listAppliancesRequestOpts(requestParameters) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['id'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling listAppliances().');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
let urlPath = `/collections/{id}/appliances`;
|
|
40
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
41
|
+
return {
|
|
42
|
+
path: urlPath,
|
|
43
|
+
method: 'GET',
|
|
44
|
+
headers: headerParameters,
|
|
45
|
+
query: queryParameters,
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* List detected appliances in a collection
|
|
51
|
+
*/
|
|
52
|
+
listAppliancesRaw(requestParameters, initOverrides) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const requestOptions = yield this.listAppliancesRequestOpts(requestParameters);
|
|
55
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
56
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplianceListResponseFromJSON(jsonValue));
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* List detected appliances in a collection
|
|
61
|
+
*/
|
|
62
|
+
listAppliances(requestParameters, initOverrides) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
const response = yield this.listAppliancesRaw(requestParameters, initOverrides);
|
|
65
|
+
return yield response.value();
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -11,12 +11,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
13
|
import { type CollectorStatus } from '../models/CollectorStatus.js';
|
|
14
|
-
export interface StartRvtoolsCollectorRequest {
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
files: Array<Blob>;
|
|
19
|
-
}
|
|
20
14
|
/**
|
|
21
15
|
* CollectorApi - interface
|
|
22
16
|
*
|
|
@@ -60,26 +54,6 @@ export interface CollectorApiInterface {
|
|
|
60
54
|
* Start a collection
|
|
61
55
|
*/
|
|
62
56
|
startCollector(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
63
|
-
/**
|
|
64
|
-
* Creates request options for startRvtoolsCollector without sending the request
|
|
65
|
-
* @param {Array<Blob>} files
|
|
66
|
-
* @throws {RequiredError}
|
|
67
|
-
* @memberof CollectorApiInterface
|
|
68
|
-
*/
|
|
69
|
-
startRvtoolsCollectorRequestOpts(requestParameters: StartRvtoolsCollectorRequest): Promise<runtime.RequestOpts>;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @summary Start a collection from RVTools files
|
|
73
|
-
* @param {Array<Blob>} files
|
|
74
|
-
* @param {*} [options] Override http request option.
|
|
75
|
-
* @throws {RequiredError}
|
|
76
|
-
* @memberof CollectorApiInterface
|
|
77
|
-
*/
|
|
78
|
-
startRvtoolsCollectorRaw(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>>;
|
|
79
|
-
/**
|
|
80
|
-
* Start a collection from RVTools files
|
|
81
|
-
*/
|
|
82
|
-
startRvtoolsCollector(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
83
57
|
/**
|
|
84
58
|
* Creates request options for stopCollector without sending the request
|
|
85
59
|
* @throws {RequiredError}
|
|
@@ -127,18 +101,6 @@ export declare class CollectorApi extends runtime.BaseAPI implements CollectorAp
|
|
|
127
101
|
* Start a collection
|
|
128
102
|
*/
|
|
129
103
|
startCollector(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
130
|
-
/**
|
|
131
|
-
* Creates request options for startRvtoolsCollector without sending the request
|
|
132
|
-
*/
|
|
133
|
-
startRvtoolsCollectorRequestOpts(requestParameters: StartRvtoolsCollectorRequest): Promise<runtime.RequestOpts>;
|
|
134
|
-
/**
|
|
135
|
-
* Start a collection from RVTools files
|
|
136
|
-
*/
|
|
137
|
-
startRvtoolsCollectorRaw(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>>;
|
|
138
|
-
/**
|
|
139
|
-
* Start a collection from RVTools files
|
|
140
|
-
*/
|
|
141
|
-
startRvtoolsCollector(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
142
104
|
/**
|
|
143
105
|
* Creates request options for stopCollector without sending the request
|
|
144
106
|
*/
|
|
@@ -96,65 +96,6 @@ export class CollectorApi extends runtime.BaseAPI {
|
|
|
96
96
|
return yield response.value();
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
/**
|
|
100
|
-
* Creates request options for startRvtoolsCollector without sending the request
|
|
101
|
-
*/
|
|
102
|
-
startRvtoolsCollectorRequestOpts(requestParameters) {
|
|
103
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
-
if (requestParameters['files'] == null) {
|
|
105
|
-
throw new runtime.RequiredError('files', 'Required parameter "files" was null or undefined when calling startRvtoolsCollector().');
|
|
106
|
-
}
|
|
107
|
-
const queryParameters = {};
|
|
108
|
-
const headerParameters = {};
|
|
109
|
-
const consumes = [
|
|
110
|
-
{ contentType: 'multipart/form-data' },
|
|
111
|
-
];
|
|
112
|
-
// @ts-ignore: canConsumeForm may be unused
|
|
113
|
-
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
114
|
-
let formParams;
|
|
115
|
-
let useForm = false;
|
|
116
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
117
|
-
useForm = canConsumeForm;
|
|
118
|
-
if (useForm) {
|
|
119
|
-
formParams = new FormData();
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
formParams = new URLSearchParams();
|
|
123
|
-
}
|
|
124
|
-
if (requestParameters['files'] != null) {
|
|
125
|
-
requestParameters['files'].forEach((element) => {
|
|
126
|
-
formParams.append('files', element);
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
let urlPath = `/collector/rvtools`;
|
|
130
|
-
return {
|
|
131
|
-
path: urlPath,
|
|
132
|
-
method: 'POST',
|
|
133
|
-
headers: headerParameters,
|
|
134
|
-
query: queryParameters,
|
|
135
|
-
body: formParams,
|
|
136
|
-
};
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Start a collection from RVTools files
|
|
141
|
-
*/
|
|
142
|
-
startRvtoolsCollectorRaw(requestParameters, initOverrides) {
|
|
143
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
-
const requestOptions = yield this.startRvtoolsCollectorRequestOpts(requestParameters);
|
|
145
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
146
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => CollectorStatusFromJSON(jsonValue));
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Start a collection from RVTools files
|
|
151
|
-
*/
|
|
152
|
-
startRvtoolsCollector(requestParameters, initOverrides) {
|
|
153
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
-
const response = yield this.startRvtoolsCollectorRaw(requestParameters, initOverrides);
|
|
155
|
-
return yield response.value();
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
99
|
/**
|
|
159
100
|
* Creates request options for stopCollector without sending the request
|
|
160
101
|
*/
|
|
@@ -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 ApplianceListResponse } from '../models/ApplianceListResponse.js';
|
|
13
14
|
import { type ApplicationListResponse } from '../models/ApplicationListResponse.js';
|
|
14
15
|
import { type CreateGroupRequest } from '../models/CreateGroupRequest.js';
|
|
15
16
|
import { type Group } from '../models/Group.js';
|
|
@@ -68,6 +69,12 @@ export interface GetLatestGroupRequest {
|
|
|
68
69
|
*/
|
|
69
70
|
pageSize?: number;
|
|
70
71
|
}
|
|
72
|
+
export interface ListGroupAppliancesRequest {
|
|
73
|
+
/**
|
|
74
|
+
* Group ID
|
|
75
|
+
*/
|
|
76
|
+
groupId: string;
|
|
77
|
+
}
|
|
71
78
|
export interface ListGroupApplicationsRequest {
|
|
72
79
|
/**
|
|
73
80
|
* Group ID
|
|
@@ -217,6 +224,26 @@ export interface GroupsApiInterface {
|
|
|
217
224
|
* Get group by ID from the latest collection
|
|
218
225
|
*/
|
|
219
226
|
getLatestGroup(requestParameters: GetLatestGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupResponse>;
|
|
227
|
+
/**
|
|
228
|
+
* Creates request options for listGroupAppliances without sending the request
|
|
229
|
+
* @param {string} groupId Group ID
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
* @memberof GroupsApiInterface
|
|
232
|
+
*/
|
|
233
|
+
listGroupAppliancesRequestOpts(requestParameters: ListGroupAppliancesRequest): Promise<runtime.RequestOpts>;
|
|
234
|
+
/**
|
|
235
|
+
*
|
|
236
|
+
* @summary List detected appliances for a group
|
|
237
|
+
* @param {string} groupId Group ID
|
|
238
|
+
* @param {*} [options] Override http request option.
|
|
239
|
+
* @throws {RequiredError}
|
|
240
|
+
* @memberof GroupsApiInterface
|
|
241
|
+
*/
|
|
242
|
+
listGroupAppliancesRaw(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceListResponse>>;
|
|
243
|
+
/**
|
|
244
|
+
* List detected appliances for a group
|
|
245
|
+
*/
|
|
246
|
+
listGroupAppliances(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse>;
|
|
220
247
|
/**
|
|
221
248
|
* Creates request options for listGroupApplications without sending the request
|
|
222
249
|
* @param {string} groupId Group ID
|
|
@@ -362,6 +389,18 @@ export declare class GroupsApi extends runtime.BaseAPI implements GroupsApiInter
|
|
|
362
389
|
* Get group by ID from the latest collection
|
|
363
390
|
*/
|
|
364
391
|
getLatestGroup(requestParameters: GetLatestGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupResponse>;
|
|
392
|
+
/**
|
|
393
|
+
* Creates request options for listGroupAppliances without sending the request
|
|
394
|
+
*/
|
|
395
|
+
listGroupAppliancesRequestOpts(requestParameters: ListGroupAppliancesRequest): Promise<runtime.RequestOpts>;
|
|
396
|
+
/**
|
|
397
|
+
* List detected appliances for a group
|
|
398
|
+
*/
|
|
399
|
+
listGroupAppliancesRaw(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceListResponse>>;
|
|
400
|
+
/**
|
|
401
|
+
* List detected appliances for a group
|
|
402
|
+
*/
|
|
403
|
+
listGroupAppliances(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse>;
|
|
365
404
|
/**
|
|
366
405
|
* Creates request options for listGroupApplications without sending the request
|
|
367
406
|
*/
|
|
@@ -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 { ApplianceListResponseFromJSON, } from '../models/ApplianceListResponse.js';
|
|
24
25
|
import { ApplicationListResponseFromJSON, } from '../models/ApplicationListResponse.js';
|
|
25
26
|
import { CreateGroupRequestToJSON, } from '../models/CreateGroupRequest.js';
|
|
26
27
|
import { GroupFromJSON, } from '../models/Group.js';
|
|
@@ -209,6 +210,45 @@ export class GroupsApi extends runtime.BaseAPI {
|
|
|
209
210
|
return yield response.value();
|
|
210
211
|
});
|
|
211
212
|
}
|
|
213
|
+
/**
|
|
214
|
+
* Creates request options for listGroupAppliances without sending the request
|
|
215
|
+
*/
|
|
216
|
+
listGroupAppliancesRequestOpts(requestParameters) {
|
|
217
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
218
|
+
if (requestParameters['groupId'] == null) {
|
|
219
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling listGroupAppliances().');
|
|
220
|
+
}
|
|
221
|
+
const queryParameters = {};
|
|
222
|
+
const headerParameters = {};
|
|
223
|
+
let urlPath = `/groups/{groupId}/appliances`;
|
|
224
|
+
urlPath = urlPath.replace('{groupId}', encodeURIComponent(String(requestParameters['groupId'])));
|
|
225
|
+
return {
|
|
226
|
+
path: urlPath,
|
|
227
|
+
method: 'GET',
|
|
228
|
+
headers: headerParameters,
|
|
229
|
+
query: queryParameters,
|
|
230
|
+
};
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* List detected appliances for a group
|
|
235
|
+
*/
|
|
236
|
+
listGroupAppliancesRaw(requestParameters, initOverrides) {
|
|
237
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
238
|
+
const requestOptions = yield this.listGroupAppliancesRequestOpts(requestParameters);
|
|
239
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
240
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplianceListResponseFromJSON(jsonValue));
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* List detected appliances for a group
|
|
245
|
+
*/
|
|
246
|
+
listGroupAppliances(requestParameters, initOverrides) {
|
|
247
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
248
|
+
const response = yield this.listGroupAppliancesRaw(requestParameters, initOverrides);
|
|
249
|
+
return yield response.value();
|
|
250
|
+
});
|
|
251
|
+
}
|
|
212
252
|
/**
|
|
213
253
|
* Creates request options for listGroupApplications without sending the request
|
|
214
254
|
*/
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime.js';
|
|
13
|
+
export interface PostImageUpgradeRequest {
|
|
14
|
+
/**
|
|
15
|
+
* OCI archive; maximum file payload is 3 GiB
|
|
16
|
+
*/
|
|
17
|
+
file: Blob;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* ImageUpgradeApi - interface
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface ImageUpgradeApiInterface
|
|
24
|
+
*/
|
|
25
|
+
export interface ImageUpgradeApiInterface {
|
|
26
|
+
/**
|
|
27
|
+
* Creates request options for postImageUpgrade without sending the request
|
|
28
|
+
* @param {Blob} file OCI archive; maximum file payload is 3 GiB
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
* @memberof ImageUpgradeApiInterface
|
|
31
|
+
*/
|
|
32
|
+
postImageUpgradeRequestOpts(requestParameters: PostImageUpgradeRequest): Promise<runtime.RequestOpts>;
|
|
33
|
+
/**
|
|
34
|
+
* 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.
|
|
35
|
+
* @summary Upload an OCI image for a disconnected appliance image upgrade
|
|
36
|
+
* @param {Blob} file OCI archive; maximum file payload is 3 GiB
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
* @memberof ImageUpgradeApiInterface
|
|
40
|
+
*/
|
|
41
|
+
postImageUpgradeRaw(requestParameters: PostImageUpgradeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
42
|
+
/**
|
|
43
|
+
* 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.
|
|
44
|
+
* Upload an OCI image for a disconnected appliance image upgrade
|
|
45
|
+
*/
|
|
46
|
+
postImageUpgrade(requestParameters: PostImageUpgradeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
export declare class ImageUpgradeApi extends runtime.BaseAPI implements ImageUpgradeApiInterface {
|
|
52
|
+
/**
|
|
53
|
+
* Creates request options for postImageUpgrade without sending the request
|
|
54
|
+
*/
|
|
55
|
+
postImageUpgradeRequestOpts(requestParameters: PostImageUpgradeRequest): Promise<runtime.RequestOpts>;
|
|
56
|
+
/**
|
|
57
|
+
* 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.
|
|
58
|
+
* Upload an OCI image for a disconnected appliance image upgrade
|
|
59
|
+
*/
|
|
60
|
+
postImageUpgradeRaw(requestParameters: PostImageUpgradeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
61
|
+
/**
|
|
62
|
+
* 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.
|
|
63
|
+
* Upload an OCI image for a disconnected appliance image upgrade
|
|
64
|
+
*/
|
|
65
|
+
postImageUpgrade(requestParameters: PostImageUpgradeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
66
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime.js';
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export class ImageUpgradeApi extends runtime.BaseAPI {
|
|
28
|
+
/**
|
|
29
|
+
* Creates request options for postImageUpgrade without sending the request
|
|
30
|
+
*/
|
|
31
|
+
postImageUpgradeRequestOpts(requestParameters) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
if (requestParameters['file'] == null) {
|
|
34
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling postImageUpgrade().');
|
|
35
|
+
}
|
|
36
|
+
const queryParameters = {};
|
|
37
|
+
const headerParameters = {};
|
|
38
|
+
const consumes = [
|
|
39
|
+
{ contentType: 'multipart/form-data' },
|
|
40
|
+
];
|
|
41
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
42
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
43
|
+
let formParams;
|
|
44
|
+
let useForm = false;
|
|
45
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
46
|
+
useForm = canConsumeForm;
|
|
47
|
+
if (useForm) {
|
|
48
|
+
formParams = new FormData();
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
formParams = new URLSearchParams();
|
|
52
|
+
}
|
|
53
|
+
if (requestParameters['file'] != null) {
|
|
54
|
+
formParams.append('file', requestParameters['file']);
|
|
55
|
+
}
|
|
56
|
+
let urlPath = `/image-upgrades`;
|
|
57
|
+
return {
|
|
58
|
+
path: urlPath,
|
|
59
|
+
method: 'POST',
|
|
60
|
+
headers: headerParameters,
|
|
61
|
+
query: queryParameters,
|
|
62
|
+
body: formParams,
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* 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.
|
|
68
|
+
* Upload an OCI image for a disconnected appliance image upgrade
|
|
69
|
+
*/
|
|
70
|
+
postImageUpgradeRaw(requestParameters, initOverrides) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
const requestOptions = yield this.postImageUpgradeRequestOpts(requestParameters);
|
|
73
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
74
|
+
return new runtime.VoidApiResponse(response);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* 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.
|
|
79
|
+
* Upload an OCI image for a disconnected appliance image upgrade
|
|
80
|
+
*/
|
|
81
|
+
postImageUpgrade(requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
yield this.postImageUpgradeRaw(requestParameters, initOverrides);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from './AgentApi.js';
|
|
2
|
+
export * from './AppliancesApi.js';
|
|
2
3
|
export * from './ApplicationsApi.js';
|
|
3
4
|
export * from './CollectionsApi.js';
|
|
4
5
|
export * from './CollectorApi.js';
|
|
5
6
|
export * from './CredentialsApi.js';
|
|
6
7
|
export * from './ForecasterApi.js';
|
|
7
8
|
export * from './GroupsApi.js';
|
|
9
|
+
export * from './ImageUpgradeApi.js';
|
|
8
10
|
export * from './InspectorApi.js';
|
|
9
11
|
export * from './InventoriesApi.js';
|
|
10
12
|
export * from './RightsizingApi.js';
|