@openshift-migration-advisor/agent-sdk 0.7.0 → 0.8.0
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 +2 -2
- package/README.md +9 -8
- package/dist/apis/DefaultApi.d.ts +35 -5
- package/dist/apis/DefaultApi.js +41 -6
- package/dist/esm/apis/DefaultApi.d.ts +35 -5
- package/dist/esm/apis/DefaultApi.js +42 -7
- package/dist/esm/models/AgentStatus.d.ts +2 -2
- package/dist/esm/models/AgentStatus.js +2 -2
- package/dist/esm/models/CollectorStatus.d.ts +6 -7
- package/dist/esm/models/CollectorStatus.js +6 -7
- package/dist/esm/models/InspectorStatus.d.ts +7 -7
- package/dist/esm/models/InspectorStatus.js +7 -7
- package/dist/esm/models/VMIssue.d.ts +6 -6
- package/dist/esm/models/VMIssue.js +6 -6
- package/dist/esm/models/VddkProperties.d.ts +44 -0
- package/dist/esm/models/{VddkPost200Response.js → VddkProperties.js} +13 -11
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/models/AgentStatus.d.ts +2 -2
- package/dist/models/AgentStatus.js +2 -2
- package/dist/models/CollectorStatus.d.ts +6 -7
- package/dist/models/CollectorStatus.js +6 -7
- package/dist/models/InspectorStatus.d.ts +7 -7
- package/dist/models/InspectorStatus.js +7 -7
- package/dist/models/VMIssue.d.ts +6 -6
- package/dist/models/VMIssue.js +6 -6
- package/dist/models/VddkProperties.d.ts +44 -0
- package/dist/models/VddkProperties.js +56 -0
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/docs/DefaultApi.md +68 -7
- package/docs/{VddkPost200Response.md → VddkProperties.md} +6 -4
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +71 -13
- package/src/models/AgentStatus.ts +2 -2
- package/src/models/CollectorStatus.ts +6 -7
- package/src/models/InspectorStatus.ts +7 -7
- package/src/models/VMIssue.ts +6 -6
- package/src/models/VddkProperties.ts +83 -0
- package/src/models/index.ts +1 -1
- package/dist/esm/models/VddkPost200Response.d.ts +0 -38
- package/dist/models/VddkPost200Response.d.ts +0 -38
- package/dist/models/VddkPost200Response.js +0 -54
- package/src/models/VddkPost200Response.ts +0 -75
package/src/apis/DefaultApi.ts
CHANGED
|
@@ -27,7 +27,7 @@ import type {
|
|
|
27
27
|
InspectorStartRequest,
|
|
28
28
|
InspectorStatus,
|
|
29
29
|
UpdateGroupRequest,
|
|
30
|
-
|
|
30
|
+
VddkProperties,
|
|
31
31
|
VersionInfo,
|
|
32
32
|
VirtualMachineDetail,
|
|
33
33
|
VirtualMachineListResponse,
|
|
@@ -58,8 +58,8 @@ import {
|
|
|
58
58
|
InspectorStatusToJSON,
|
|
59
59
|
UpdateGroupRequestFromJSON,
|
|
60
60
|
UpdateGroupRequestToJSON,
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
VddkPropertiesFromJSON,
|
|
62
|
+
VddkPropertiesToJSON,
|
|
63
63
|
VersionInfoFromJSON,
|
|
64
64
|
VersionInfoToJSON,
|
|
65
65
|
VirtualMachineDetailFromJSON,
|
|
@@ -408,6 +408,27 @@ export interface DefaultApiInterface {
|
|
|
408
408
|
*/
|
|
409
409
|
getVMs(requestParameters: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
|
|
410
410
|
|
|
411
|
+
/**
|
|
412
|
+
* Creates request options for getVddkStatus without sending the request
|
|
413
|
+
* @throws {RequiredError}
|
|
414
|
+
* @memberof DefaultApiInterface
|
|
415
|
+
*/
|
|
416
|
+
getVddkStatusRequestOpts(): Promise<runtime.RequestOpts>;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
*
|
|
420
|
+
* @summary Get VDDK status
|
|
421
|
+
* @param {*} [options] Override http request option.
|
|
422
|
+
* @throws {RequiredError}
|
|
423
|
+
* @memberof DefaultApiInterface
|
|
424
|
+
*/
|
|
425
|
+
getVddkStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Get VDDK status
|
|
429
|
+
*/
|
|
430
|
+
getVddkStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
|
|
431
|
+
|
|
411
432
|
/**
|
|
412
433
|
* Creates request options for getVersion without sending the request
|
|
413
434
|
* @throws {RequiredError}
|
|
@@ -631,12 +652,12 @@ export interface DefaultApiInterface {
|
|
|
631
652
|
* @throws {RequiredError}
|
|
632
653
|
* @memberof DefaultApiInterface
|
|
633
654
|
*/
|
|
634
|
-
vddkPostRaw(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
655
|
+
vddkPostRaw(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
|
|
635
656
|
|
|
636
657
|
/**
|
|
637
658
|
* Upload VDDK tarball
|
|
638
659
|
*/
|
|
639
|
-
vddkPost(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
660
|
+
vddkPost(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
|
|
640
661
|
|
|
641
662
|
}
|
|
642
663
|
|
|
@@ -710,7 +731,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
710
731
|
headerParameters['Content-Type'] = 'application/json';
|
|
711
732
|
|
|
712
733
|
|
|
713
|
-
let urlPath = `/
|
|
734
|
+
let urlPath = `/groups`;
|
|
714
735
|
|
|
715
736
|
return {
|
|
716
737
|
path: urlPath,
|
|
@@ -755,7 +776,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
755
776
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
756
777
|
|
|
757
778
|
|
|
758
|
-
let urlPath = `/
|
|
779
|
+
let urlPath = `/groups/{id}`;
|
|
759
780
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
760
781
|
|
|
761
782
|
return {
|
|
@@ -885,7 +906,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
885
906
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
886
907
|
|
|
887
908
|
|
|
888
|
-
let urlPath = `/
|
|
909
|
+
let urlPath = `/groups/{id}`;
|
|
889
910
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
890
911
|
|
|
891
912
|
return {
|
|
@@ -1139,6 +1160,43 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1139
1160
|
return await response.value();
|
|
1140
1161
|
}
|
|
1141
1162
|
|
|
1163
|
+
/**
|
|
1164
|
+
* Creates request options for getVddkStatus without sending the request
|
|
1165
|
+
*/
|
|
1166
|
+
async getVddkStatusRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1167
|
+
const queryParameters: any = {};
|
|
1168
|
+
|
|
1169
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1170
|
+
|
|
1171
|
+
|
|
1172
|
+
let urlPath = `/vddk`;
|
|
1173
|
+
|
|
1174
|
+
return {
|
|
1175
|
+
path: urlPath,
|
|
1176
|
+
method: 'GET',
|
|
1177
|
+
headers: headerParameters,
|
|
1178
|
+
query: queryParameters,
|
|
1179
|
+
};
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* Get VDDK status
|
|
1184
|
+
*/
|
|
1185
|
+
async getVddkStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>> {
|
|
1186
|
+
const requestOptions = await this.getVddkStatusRequestOpts();
|
|
1187
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1188
|
+
|
|
1189
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* Get VDDK status
|
|
1194
|
+
*/
|
|
1195
|
+
async getVddkStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties> {
|
|
1196
|
+
const response = await this.getVddkStatusRaw(initOverrides);
|
|
1197
|
+
return await response.value();
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1142
1200
|
/**
|
|
1143
1201
|
* Creates request options for getVersion without sending the request
|
|
1144
1202
|
*/
|
|
@@ -1197,7 +1255,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1197
1255
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1198
1256
|
|
|
1199
1257
|
|
|
1200
|
-
let urlPath = `/
|
|
1258
|
+
let urlPath = `/groups`;
|
|
1201
1259
|
|
|
1202
1260
|
return {
|
|
1203
1261
|
path: urlPath,
|
|
@@ -1509,7 +1567,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1509
1567
|
headerParameters['Content-Type'] = 'application/json';
|
|
1510
1568
|
|
|
1511
1569
|
|
|
1512
|
-
let urlPath = `/
|
|
1570
|
+
let urlPath = `/groups/{id}`;
|
|
1513
1571
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
1514
1572
|
|
|
1515
1573
|
return {
|
|
@@ -1589,17 +1647,17 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1589
1647
|
/**
|
|
1590
1648
|
* Upload VDDK tarball
|
|
1591
1649
|
*/
|
|
1592
|
-
async vddkPostRaw(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
1650
|
+
async vddkPostRaw(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>> {
|
|
1593
1651
|
const requestOptions = await this.vddkPostRequestOpts(requestParameters);
|
|
1594
1652
|
const response = await this.request(requestOptions, initOverrides);
|
|
1595
1653
|
|
|
1596
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
1654
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
1597
1655
|
}
|
|
1598
1656
|
|
|
1599
1657
|
/**
|
|
1600
1658
|
* Upload VDDK tarball
|
|
1601
1659
|
*/
|
|
1602
|
-
async vddkPost(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
1660
|
+
async vddkPost(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties> {
|
|
1603
1661
|
const response = await this.vddkPostRaw(requestParameters, initOverrides);
|
|
1604
1662
|
return await response.value();
|
|
1605
1663
|
}
|
|
@@ -44,8 +44,8 @@ export interface AgentStatus {
|
|
|
44
44
|
* @export
|
|
45
45
|
*/
|
|
46
46
|
export const AgentStatusModeEnum = {
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
AgentStatusModeConnected: 'connected',
|
|
48
|
+
AgentStatusModeDisconnected: 'disconnected'
|
|
49
49
|
} as const;
|
|
50
50
|
export type AgentStatusModeEnum = typeof AgentStatusModeEnum[keyof typeof AgentStatusModeEnum];
|
|
51
51
|
|
|
@@ -38,13 +38,12 @@ export interface CollectorStatus {
|
|
|
38
38
|
* @export
|
|
39
39
|
*/
|
|
40
40
|
export const CollectorStatusStatusEnum = {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
Error: 'error'
|
|
41
|
+
CollectorStatusStatusReady: 'ready',
|
|
42
|
+
CollectorStatusStatusConnecting: 'connecting',
|
|
43
|
+
CollectorStatusStatusCollecting: 'collecting',
|
|
44
|
+
CollectorStatusStatusParsing: 'parsing',
|
|
45
|
+
CollectorStatusStatusCollected: 'collected',
|
|
46
|
+
CollectorStatusStatusError: 'error'
|
|
48
47
|
} as const;
|
|
49
48
|
export type CollectorStatusStatusEnum = typeof CollectorStatusStatusEnum[keyof typeof CollectorStatusStatusEnum];
|
|
50
49
|
|
|
@@ -38,13 +38,13 @@ export interface InspectorStatus {
|
|
|
38
38
|
* @export
|
|
39
39
|
*/
|
|
40
40
|
export const InspectorStatusStateEnum = {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
InspectorStatusStateCanceled: 'ready',
|
|
42
|
+
InspectorStatusStateCanceling: 'Initiating',
|
|
43
|
+
InspectorStatusStateCompleted: 'running',
|
|
44
|
+
InspectorStatusStateError: 'canceling',
|
|
45
|
+
InspectorStatusStateInitiating: 'canceled',
|
|
46
|
+
InspectorStatusStateReady: 'completed',
|
|
47
|
+
InspectorStatusStateRunning: 'error'
|
|
48
48
|
} as const;
|
|
49
49
|
export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
|
|
50
50
|
|
package/src/models/VMIssue.ts
CHANGED
|
@@ -44,12 +44,12 @@ export interface VMIssue {
|
|
|
44
44
|
* @export
|
|
45
45
|
*/
|
|
46
46
|
export const VMIssueCategoryEnum = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
VMIssueCategoryCritical: 'Critical',
|
|
48
|
+
VMIssueCategoryWarning: 'Warning',
|
|
49
|
+
VMIssueCategoryInformation: 'Information',
|
|
50
|
+
VMIssueCategoryAdvisory: 'Advisory',
|
|
51
|
+
VMIssueCategoryError: 'Error',
|
|
52
|
+
VMIssueCategoryOther: 'Other'
|
|
53
53
|
} as const;
|
|
54
54
|
export type VMIssueCategoryEnum = typeof VMIssueCategoryEnum[keyof typeof VMIssueCategoryEnum];
|
|
55
55
|
|
|
@@ -0,0 +1,83 @@
|
|
|
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: v1
|
|
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 { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VddkProperties
|
|
20
|
+
*/
|
|
21
|
+
export interface VddkProperties {
|
|
22
|
+
/**
|
|
23
|
+
* The matching vSphere Client version
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof VddkProperties
|
|
26
|
+
*/
|
|
27
|
+
version: string;
|
|
28
|
+
/**
|
|
29
|
+
* md5 sum of the uploaded tarball
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof VddkProperties
|
|
32
|
+
*/
|
|
33
|
+
md5: string;
|
|
34
|
+
/**
|
|
35
|
+
* provided tarball bytes
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof VddkProperties
|
|
38
|
+
*/
|
|
39
|
+
bytes?: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the VddkProperties interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfVddkProperties(value: object): value is VddkProperties {
|
|
46
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
47
|
+
if (!('md5' in value) || value['md5'] === undefined) return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function VddkPropertiesFromJSON(json: any): VddkProperties {
|
|
52
|
+
return VddkPropertiesFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function VddkPropertiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): VddkProperties {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'version': json['version'],
|
|
62
|
+
'md5': json['md5'],
|
|
63
|
+
'bytes': json['bytes'] == null ? undefined : json['bytes'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function VddkPropertiesToJSON(json: any): VddkProperties {
|
|
68
|
+
return VddkPropertiesToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function VddkPropertiesToJSONTyped(value?: VddkProperties | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'version': value['version'],
|
|
79
|
+
'md5': value['md5'],
|
|
80
|
+
'bytes': value['bytes'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -33,7 +33,7 @@ export * from './VMNIC.js';
|
|
|
33
33
|
export * from './VMResourceBreakdown.js';
|
|
34
34
|
export * from './VMs.js';
|
|
35
35
|
export * from './VcenterCredentials.js';
|
|
36
|
-
export * from './
|
|
36
|
+
export * from './VddkProperties.js';
|
|
37
37
|
export * from './VersionInfo.js';
|
|
38
38
|
export * from './VirtualMachine.js';
|
|
39
39
|
export * from './VirtualMachineDetail.js';
|
|
@@ -1,38 +0,0 @@
|
|
|
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: v1
|
|
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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface VddkPost200Response
|
|
16
|
-
*/
|
|
17
|
-
export interface VddkPost200Response {
|
|
18
|
-
/**
|
|
19
|
-
* md5 sum of the uploaded tarball
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof VddkPost200Response
|
|
22
|
-
*/
|
|
23
|
-
md5: string;
|
|
24
|
-
/**
|
|
25
|
-
* written bytes
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof VddkPost200Response
|
|
28
|
-
*/
|
|
29
|
-
bytes: number;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the VddkPost200Response interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfVddkPost200Response(value: object): value is VddkPost200Response;
|
|
35
|
-
export declare function VddkPost200ResponseFromJSON(json: any): VddkPost200Response;
|
|
36
|
-
export declare function VddkPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VddkPost200Response;
|
|
37
|
-
export declare function VddkPost200ResponseToJSON(json: any): VddkPost200Response;
|
|
38
|
-
export declare function VddkPost200ResponseToJSONTyped(value?: VddkPost200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,38 +0,0 @@
|
|
|
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: v1
|
|
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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface VddkPost200Response
|
|
16
|
-
*/
|
|
17
|
-
export interface VddkPost200Response {
|
|
18
|
-
/**
|
|
19
|
-
* md5 sum of the uploaded tarball
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof VddkPost200Response
|
|
22
|
-
*/
|
|
23
|
-
md5: string;
|
|
24
|
-
/**
|
|
25
|
-
* written bytes
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof VddkPost200Response
|
|
28
|
-
*/
|
|
29
|
-
bytes: number;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the VddkPost200Response interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfVddkPost200Response(value: object): value is VddkPost200Response;
|
|
35
|
-
export declare function VddkPost200ResponseFromJSON(json: any): VddkPost200Response;
|
|
36
|
-
export declare function VddkPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VddkPost200Response;
|
|
37
|
-
export declare function VddkPost200ResponseToJSON(json: any): VddkPost200Response;
|
|
38
|
-
export declare function VddkPost200ResponseToJSONTyped(value?: VddkPost200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,54 +0,0 @@
|
|
|
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: v1
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfVddkPost200Response = instanceOfVddkPost200Response;
|
|
17
|
-
exports.VddkPost200ResponseFromJSON = VddkPost200ResponseFromJSON;
|
|
18
|
-
exports.VddkPost200ResponseFromJSONTyped = VddkPost200ResponseFromJSONTyped;
|
|
19
|
-
exports.VddkPost200ResponseToJSON = VddkPost200ResponseToJSON;
|
|
20
|
-
exports.VddkPost200ResponseToJSONTyped = VddkPost200ResponseToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the VddkPost200Response interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfVddkPost200Response(value) {
|
|
25
|
-
if (!('md5' in value) || value['md5'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('bytes' in value) || value['bytes'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
function VddkPost200ResponseFromJSON(json) {
|
|
32
|
-
return VddkPost200ResponseFromJSONTyped(json, false);
|
|
33
|
-
}
|
|
34
|
-
function VddkPost200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if (json == null) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'md5': json['md5'],
|
|
40
|
-
'bytes': json['bytes'],
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function VddkPost200ResponseToJSON(json) {
|
|
44
|
-
return VddkPost200ResponseToJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
function VddkPost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
-
if (value == null) {
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
'md5': value['md5'],
|
|
52
|
-
'bytes': value['bytes'],
|
|
53
|
-
};
|
|
54
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
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: v1
|
|
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 { mapValues } from '../runtime.js';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface VddkPost200Response
|
|
20
|
-
*/
|
|
21
|
-
export interface VddkPost200Response {
|
|
22
|
-
/**
|
|
23
|
-
* md5 sum of the uploaded tarball
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof VddkPost200Response
|
|
26
|
-
*/
|
|
27
|
-
md5: string;
|
|
28
|
-
/**
|
|
29
|
-
* written bytes
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof VddkPost200Response
|
|
32
|
-
*/
|
|
33
|
-
bytes: number;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the VddkPost200Response interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfVddkPost200Response(value: object): value is VddkPost200Response {
|
|
40
|
-
if (!('md5' in value) || value['md5'] === undefined) return false;
|
|
41
|
-
if (!('bytes' in value) || value['bytes'] === undefined) return false;
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function VddkPost200ResponseFromJSON(json: any): VddkPost200Response {
|
|
46
|
-
return VddkPost200ResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function VddkPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VddkPost200Response {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'md5': json['md5'],
|
|
56
|
-
'bytes': json['bytes'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function VddkPost200ResponseToJSON(json: any): VddkPost200Response {
|
|
61
|
-
return VddkPost200ResponseToJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function VddkPost200ResponseToJSONTyped(value?: VddkPost200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
-
if (value == null) {
|
|
66
|
-
return value;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'md5': value['md5'],
|
|
72
|
-
'bytes': value['bytes'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|