@migration-planner-ui/api-client 0.0.8 → 0.0.9
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/dist/apis/ImageApi.d.ts +0 -23
- package/dist/apis/ImageApi.js +0 -28
- package/dist/apis/index.d.ts +1 -1
- package/dist/models/Datastore.d.ts +12 -0
- package/dist/models/Datastore.js +8 -0
- package/package.json +1 -1
- package/src/apis/ImageApi.ts +0 -51
- package/src/apis/index.ts +0 -1
- package/src/models/Datastore.ts +18 -0
package/dist/apis/ImageApi.d.ts
CHANGED
|
@@ -11,9 +11,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { PresignedUrl } from '../models/index';
|
|
14
|
-
export interface GetImageRequest {
|
|
15
|
-
id: string;
|
|
16
|
-
}
|
|
17
14
|
export interface GetSourceDownloadURLRequest {
|
|
18
15
|
id: string;
|
|
19
16
|
}
|
|
@@ -27,18 +24,6 @@ export interface HeadImageRequest {
|
|
|
27
24
|
* @interface ImageApiInterface
|
|
28
25
|
*/
|
|
29
26
|
export interface ImageApiInterface {
|
|
30
|
-
/**
|
|
31
|
-
* Get the OVA image
|
|
32
|
-
* @param {string} id id of the source
|
|
33
|
-
* @param {*} [options] Override http request option.
|
|
34
|
-
* @throws {RequiredError}
|
|
35
|
-
* @memberof ImageApiInterface
|
|
36
|
-
*/
|
|
37
|
-
getImageRaw(requestParameters: GetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
38
|
-
/**
|
|
39
|
-
* Get the OVA image
|
|
40
|
-
*/
|
|
41
|
-
getImage(requestParameters: GetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
42
27
|
/**
|
|
43
28
|
* Get the OVA image via URL
|
|
44
29
|
* @param {string} id Source id
|
|
@@ -68,14 +53,6 @@ export interface ImageApiInterface {
|
|
|
68
53
|
*
|
|
69
54
|
*/
|
|
70
55
|
export declare class ImageApi extends runtime.BaseAPI implements ImageApiInterface {
|
|
71
|
-
/**
|
|
72
|
-
* Get the OVA image
|
|
73
|
-
*/
|
|
74
|
-
getImageRaw(requestParameters: GetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
75
|
-
/**
|
|
76
|
-
* Get the OVA image
|
|
77
|
-
*/
|
|
78
|
-
getImage(requestParameters: GetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
79
56
|
/**
|
|
80
57
|
* Get the OVA image via URL
|
|
81
58
|
*/
|
package/dist/apis/ImageApi.js
CHANGED
|
@@ -26,34 +26,6 @@ import { PresignedUrlFromJSON, } from '../models/index';
|
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class ImageApi extends runtime.BaseAPI {
|
|
29
|
-
/**
|
|
30
|
-
* Get the OVA image
|
|
31
|
-
*/
|
|
32
|
-
getImageRaw(requestParameters, initOverrides) {
|
|
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 getImage().');
|
|
36
|
-
}
|
|
37
|
-
const queryParameters = {};
|
|
38
|
-
const headerParameters = {};
|
|
39
|
-
const response = yield this.request({
|
|
40
|
-
path: `/api/v1/sources/{id}/image`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
41
|
-
method: 'GET',
|
|
42
|
-
headers: headerParameters,
|
|
43
|
-
query: queryParameters,
|
|
44
|
-
}, initOverrides);
|
|
45
|
-
return new runtime.BlobApiResponse(response);
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Get the OVA image
|
|
50
|
-
*/
|
|
51
|
-
getImage(requestParameters, initOverrides) {
|
|
52
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
const response = yield this.getImageRaw(requestParameters, initOverrides);
|
|
54
|
-
return yield response.value();
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
29
|
/**
|
|
58
30
|
* Get the OVA image via URL
|
|
59
31
|
*/
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type HeadImageRequest, type ImageApiInterface, ImageApi, } from "./ImageApi";
|
|
2
2
|
export { type CreateSourceRequest, type DeleteSourceRequest, type GetSourceRequest, type ListSourcesRequest, type SourceApiInterface, SourceApi, type UpdateSourceRequest, } from "./SourceApi";
|
|
3
3
|
export { type HealthApiInterface, HealthApi } from "./HealthApi";
|
|
4
4
|
export { type AgentApiInterface, type DeleteAgentRequest, AgentApi } from "./AgentApi";
|
|
@@ -51,6 +51,18 @@ export interface Datastore {
|
|
|
51
51
|
* @memberof Datastore
|
|
52
52
|
*/
|
|
53
53
|
hardwareAcceleratedMove: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof Datastore
|
|
58
|
+
*/
|
|
59
|
+
protocolType: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof Datastore
|
|
64
|
+
*/
|
|
65
|
+
model: string;
|
|
54
66
|
}
|
|
55
67
|
/**
|
|
56
68
|
* Check if a given object implements the Datastore interface.
|
package/dist/models/Datastore.js
CHANGED
|
@@ -27,6 +27,10 @@ export function instanceOfDatastore(value) {
|
|
|
27
27
|
return false;
|
|
28
28
|
if (!('hardwareAcceleratedMove' in value) || value['hardwareAcceleratedMove'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
+
if (!('protocolType' in value) || value['protocolType'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
33
|
+
return false;
|
|
30
34
|
return true;
|
|
31
35
|
}
|
|
32
36
|
export function DatastoreFromJSON(json) {
|
|
@@ -43,6 +47,8 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
47
|
'vendor': json['vendor'],
|
|
44
48
|
'diskId': json['diskId'],
|
|
45
49
|
'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
|
|
50
|
+
'protocolType': json['protocolType'],
|
|
51
|
+
'model': json['model'],
|
|
46
52
|
};
|
|
47
53
|
}
|
|
48
54
|
export function DatastoreToJSON(value) {
|
|
@@ -56,5 +62,7 @@ export function DatastoreToJSON(value) {
|
|
|
56
62
|
'vendor': value['vendor'],
|
|
57
63
|
'diskId': value['diskId'],
|
|
58
64
|
'hardwareAcceleratedMove': value['hardwareAcceleratedMove'],
|
|
65
|
+
'protocolType': value['protocolType'],
|
|
66
|
+
'model': value['model'],
|
|
59
67
|
};
|
|
60
68
|
}
|
package/package.json
CHANGED
package/src/apis/ImageApi.ts
CHANGED
|
@@ -22,10 +22,6 @@ import {
|
|
|
22
22
|
PresignedUrlToJSON,
|
|
23
23
|
} from '../models/index';
|
|
24
24
|
|
|
25
|
-
export interface GetImageRequest {
|
|
26
|
-
id: string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
25
|
export interface GetSourceDownloadURLRequest {
|
|
30
26
|
id: string;
|
|
31
27
|
}
|
|
@@ -41,20 +37,6 @@ export interface HeadImageRequest {
|
|
|
41
37
|
* @interface ImageApiInterface
|
|
42
38
|
*/
|
|
43
39
|
export interface ImageApiInterface {
|
|
44
|
-
/**
|
|
45
|
-
* Get the OVA image
|
|
46
|
-
* @param {string} id id of the source
|
|
47
|
-
* @param {*} [options] Override http request option.
|
|
48
|
-
* @throws {RequiredError}
|
|
49
|
-
* @memberof ImageApiInterface
|
|
50
|
-
*/
|
|
51
|
-
getImageRaw(requestParameters: GetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Get the OVA image
|
|
55
|
-
*/
|
|
56
|
-
getImage(requestParameters: GetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
57
|
-
|
|
58
40
|
/**
|
|
59
41
|
* Get the OVA image via URL
|
|
60
42
|
* @param {string} id Source id
|
|
@@ -90,39 +72,6 @@ export interface ImageApiInterface {
|
|
|
90
72
|
*/
|
|
91
73
|
export class ImageApi extends runtime.BaseAPI implements ImageApiInterface {
|
|
92
74
|
|
|
93
|
-
/**
|
|
94
|
-
* Get the OVA image
|
|
95
|
-
*/
|
|
96
|
-
async getImageRaw(requestParameters: GetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
97
|
-
if (requestParameters['id'] == null) {
|
|
98
|
-
throw new runtime.RequiredError(
|
|
99
|
-
'id',
|
|
100
|
-
'Required parameter "id" was null or undefined when calling getImage().'
|
|
101
|
-
);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
const queryParameters: any = {};
|
|
105
|
-
|
|
106
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
107
|
-
|
|
108
|
-
const response = await this.request({
|
|
109
|
-
path: `/api/v1/sources/{id}/image`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
110
|
-
method: 'GET',
|
|
111
|
-
headers: headerParameters,
|
|
112
|
-
query: queryParameters,
|
|
113
|
-
}, initOverrides);
|
|
114
|
-
|
|
115
|
-
return new runtime.BlobApiResponse(response);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Get the OVA image
|
|
120
|
-
*/
|
|
121
|
-
async getImage(requestParameters: GetImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
122
|
-
const response = await this.getImageRaw(requestParameters, initOverrides);
|
|
123
|
-
return await response.value();
|
|
124
|
-
}
|
|
125
|
-
|
|
126
75
|
/**
|
|
127
76
|
* Get the OVA image via URL
|
|
128
77
|
*/
|
package/src/apis/index.ts
CHANGED
package/src/models/Datastore.ts
CHANGED
|
@@ -55,6 +55,18 @@ export interface Datastore {
|
|
|
55
55
|
* @memberof Datastore
|
|
56
56
|
*/
|
|
57
57
|
hardwareAcceleratedMove: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof Datastore
|
|
62
|
+
*/
|
|
63
|
+
protocolType: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof Datastore
|
|
68
|
+
*/
|
|
69
|
+
model: string;
|
|
58
70
|
}
|
|
59
71
|
|
|
60
72
|
/**
|
|
@@ -67,6 +79,8 @@ export function instanceOfDatastore(value: object): value is Datastore {
|
|
|
67
79
|
if (!('vendor' in value) || value['vendor'] === undefined) return false;
|
|
68
80
|
if (!('diskId' in value) || value['diskId'] === undefined) return false;
|
|
69
81
|
if (!('hardwareAcceleratedMove' in value) || value['hardwareAcceleratedMove'] === undefined) return false;
|
|
82
|
+
if (!('protocolType' in value) || value['protocolType'] === undefined) return false;
|
|
83
|
+
if (!('model' in value) || value['model'] === undefined) return false;
|
|
70
84
|
return true;
|
|
71
85
|
}
|
|
72
86
|
|
|
@@ -86,6 +100,8 @@ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
86
100
|
'vendor': json['vendor'],
|
|
87
101
|
'diskId': json['diskId'],
|
|
88
102
|
'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
|
|
103
|
+
'protocolType': json['protocolType'],
|
|
104
|
+
'model': json['model'],
|
|
89
105
|
};
|
|
90
106
|
}
|
|
91
107
|
|
|
@@ -101,6 +117,8 @@ export function DatastoreToJSON(value?: Datastore | null): any {
|
|
|
101
117
|
'vendor': value['vendor'],
|
|
102
118
|
'diskId': value['diskId'],
|
|
103
119
|
'hardwareAcceleratedMove': value['hardwareAcceleratedMove'],
|
|
120
|
+
'protocolType': value['protocolType'],
|
|
121
|
+
'model': value['model'],
|
|
104
122
|
};
|
|
105
123
|
}
|
|
106
124
|
|