@openshift-migration-advisor/agent-sdk 0.0.0-e4821863b141 → 0.8.0-0a190192e598

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.
@@ -36,7 +36,7 @@ docs/VMNIC.md
36
36
  docs/VMResourceBreakdown.md
37
37
  docs/VMs.md
38
38
  docs/VcenterCredentials.md
39
- docs/VddkPost200Response.md
39
+ docs/VddkProperties.md
40
40
  docs/VersionInfo.md
41
41
  docs/VirtualMachine.md
42
42
  docs/VirtualMachineDetail.md
@@ -79,7 +79,7 @@ src/models/VMNIC.ts
79
79
  src/models/VMResourceBreakdown.ts
80
80
  src/models/VMs.ts
81
81
  src/models/VcenterCredentials.ts
82
- src/models/VddkPost200Response.ts
82
+ src/models/VddkProperties.ts
83
83
  src/models/VersionInfo.ts
84
84
  src/models/VirtualMachine.ts
85
85
  src/models/VirtualMachineDetail.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/agent-sdk@0.0.0-e4821863b141
1
+ # @openshift-migration-advisor/agent-sdk@0.8.0-0a190192e598
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -61,6 +61,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
61
61
  *DefaultApi* | [**getVM**](docs/DefaultApi.md#getvm) | **GET** /vms/{id} | Get details about a vm
62
62
  *DefaultApi* | [**getVMInspectionStatus**](docs/DefaultApi.md#getvminspectionstatus) | **GET** /vms/{id}/inspector | Get inspection status for a specific VirtualMachine
63
63
  *DefaultApi* | [**getVMs**](docs/DefaultApi.md#getvms) | **GET** /vms | Get list of VMs with filtering and pagination
64
+ *DefaultApi* | [**getVddkStatus**](docs/DefaultApi.md#getvddkstatus) | **GET** /vddk | Get VDDK status
64
65
  *DefaultApi* | [**getVersion**](docs/DefaultApi.md#getversion) | **GET** /version | Get agent version information
65
66
  *DefaultApi* | [**listGroups**](docs/DefaultApi.md#listgroups) | **GET** /groups | List all groups
66
67
  *DefaultApi* | [**removeVMFromInspection**](docs/DefaultApi.md#removevmfrominspection) | **DELETE** /vms/{id}/inspector | Remove VirtualMachine from inspection queue
@@ -108,7 +109,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
108
109
  - [VMResourceBreakdown](docs/VMResourceBreakdown.md)
109
110
  - [VMs](docs/VMs.md)
110
111
  - [VcenterCredentials](docs/VcenterCredentials.md)
111
- - [VddkPost200Response](docs/VddkPost200Response.md)
112
+ - [VddkProperties](docs/VddkProperties.md)
112
113
  - [VersionInfo](docs/VersionInfo.md)
113
114
  - [VirtualMachine](docs/VirtualMachine.md)
114
115
  - [VirtualMachineDetail](docs/VirtualMachineDetail.md)
@@ -127,7 +128,7 @@ and is automatically generated by the
127
128
  [OpenAPI Generator](https://openapi-generator.tech) project:
128
129
 
129
130
  - API version: `v1`
130
- - Package version: `0.0.0-e4821863b141`
131
+ - Package version: `0.8.0-0a190192e598`
131
132
  - Generator version: `7.21.0-SNAPSHOT`
132
133
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
133
134
 
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { AgentModeRequest, AgentStatus, CollectorStartRequest, CollectorStatus, CreateGroupRequest, GetInventory200Response, Group, GroupListResponse, GroupResponse, InspectorStartRequest, InspectorStatus, UpdateGroupRequest, VddkPost200Response, VersionInfo, VirtualMachineDetail, VirtualMachineListResponse, VmInspectionStatus } from '../models/index.js';
13
+ import type { AgentModeRequest, AgentStatus, CollectorStartRequest, CollectorStatus, CreateGroupRequest, GetInventory200Response, Group, GroupListResponse, GroupResponse, InspectorStartRequest, InspectorStatus, UpdateGroupRequest, VddkProperties, VersionInfo, VirtualMachineDetail, VirtualMachineListResponse, VmInspectionStatus } from '../models/index.js';
14
14
  export interface AddVMsToInspectionRequest {
15
15
  requestBody: Array<string>;
16
16
  }
@@ -301,6 +301,24 @@ export interface DefaultApiInterface {
301
301
  * Get list of VMs with filtering and pagination
302
302
  */
303
303
  getVMs(requestParameters: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
304
+ /**
305
+ * Creates request options for getVddkStatus without sending the request
306
+ * @throws {RequiredError}
307
+ * @memberof DefaultApiInterface
308
+ */
309
+ getVddkStatusRequestOpts(): Promise<runtime.RequestOpts>;
310
+ /**
311
+ *
312
+ * @summary Get VDDK status
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ * @memberof DefaultApiInterface
316
+ */
317
+ getVddkStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
318
+ /**
319
+ * Get VDDK status
320
+ */
321
+ getVddkStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
304
322
  /**
305
323
  * Creates request options for getVersion without sending the request
306
324
  * @throws {RequiredError}
@@ -496,11 +514,11 @@ export interface DefaultApiInterface {
496
514
  * @throws {RequiredError}
497
515
  * @memberof DefaultApiInterface
498
516
  */
499
- vddkPostRaw(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkPost200Response>>;
517
+ vddkPostRaw(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
500
518
  /**
501
519
  * Upload VDDK tarball
502
520
  */
503
- vddkPost(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkPost200Response>;
521
+ vddkPost(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
504
522
  }
505
523
  /**
506
524
  *
@@ -638,6 +656,18 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
638
656
  * Get list of VMs with filtering and pagination
639
657
  */
640
658
  getVMs(requestParameters?: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
659
+ /**
660
+ * Creates request options for getVddkStatus without sending the request
661
+ */
662
+ getVddkStatusRequestOpts(): Promise<runtime.RequestOpts>;
663
+ /**
664
+ * Get VDDK status
665
+ */
666
+ getVddkStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
667
+ /**
668
+ * Get VDDK status
669
+ */
670
+ getVddkStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
641
671
  /**
642
672
  * Creates request options for getVersion without sending the request
643
673
  */
@@ -753,9 +783,9 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
753
783
  /**
754
784
  * Upload VDDK tarball
755
785
  */
756
- vddkPostRaw(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkPost200Response>>;
786
+ vddkPostRaw(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
757
787
  /**
758
788
  * Upload VDDK tarball
759
789
  */
760
- vddkPost(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkPost200Response>;
790
+ vddkPost(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
761
791
  }
@@ -466,6 +466,41 @@ class DefaultApi extends runtime.BaseAPI {
466
466
  return yield response.value();
467
467
  });
468
468
  }
469
+ /**
470
+ * Creates request options for getVddkStatus without sending the request
471
+ */
472
+ getVddkStatusRequestOpts() {
473
+ return __awaiter(this, void 0, void 0, function* () {
474
+ const queryParameters = {};
475
+ const headerParameters = {};
476
+ let urlPath = `/vddk`;
477
+ return {
478
+ path: urlPath,
479
+ method: 'GET',
480
+ headers: headerParameters,
481
+ query: queryParameters,
482
+ };
483
+ });
484
+ }
485
+ /**
486
+ * Get VDDK status
487
+ */
488
+ getVddkStatusRaw(initOverrides) {
489
+ return __awaiter(this, void 0, void 0, function* () {
490
+ const requestOptions = yield this.getVddkStatusRequestOpts();
491
+ const response = yield this.request(requestOptions, initOverrides);
492
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.VddkPropertiesFromJSON)(jsonValue));
493
+ });
494
+ }
495
+ /**
496
+ * Get VDDK status
497
+ */
498
+ getVddkStatus(initOverrides) {
499
+ return __awaiter(this, void 0, void 0, function* () {
500
+ const response = yield this.getVddkStatusRaw(initOverrides);
501
+ return yield response.value();
502
+ });
503
+ }
469
504
  /**
470
505
  * Creates request options for getVersion without sending the request
471
506
  */
@@ -862,7 +897,7 @@ class DefaultApi extends runtime.BaseAPI {
862
897
  return __awaiter(this, void 0, void 0, function* () {
863
898
  const requestOptions = yield this.vddkPostRequestOpts(requestParameters);
864
899
  const response = yield this.request(requestOptions, initOverrides);
865
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.VddkPost200ResponseFromJSON)(jsonValue));
900
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.VddkPropertiesFromJSON)(jsonValue));
866
901
  });
867
902
  }
868
903
  /**
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { AgentModeRequest, AgentStatus, CollectorStartRequest, CollectorStatus, CreateGroupRequest, GetInventory200Response, Group, GroupListResponse, GroupResponse, InspectorStartRequest, InspectorStatus, UpdateGroupRequest, VddkPost200Response, VersionInfo, VirtualMachineDetail, VirtualMachineListResponse, VmInspectionStatus } from '../models/index.js';
13
+ import type { AgentModeRequest, AgentStatus, CollectorStartRequest, CollectorStatus, CreateGroupRequest, GetInventory200Response, Group, GroupListResponse, GroupResponse, InspectorStartRequest, InspectorStatus, UpdateGroupRequest, VddkProperties, VersionInfo, VirtualMachineDetail, VirtualMachineListResponse, VmInspectionStatus } from '../models/index.js';
14
14
  export interface AddVMsToInspectionRequest {
15
15
  requestBody: Array<string>;
16
16
  }
@@ -301,6 +301,24 @@ export interface DefaultApiInterface {
301
301
  * Get list of VMs with filtering and pagination
302
302
  */
303
303
  getVMs(requestParameters: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
304
+ /**
305
+ * Creates request options for getVddkStatus without sending the request
306
+ * @throws {RequiredError}
307
+ * @memberof DefaultApiInterface
308
+ */
309
+ getVddkStatusRequestOpts(): Promise<runtime.RequestOpts>;
310
+ /**
311
+ *
312
+ * @summary Get VDDK status
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ * @memberof DefaultApiInterface
316
+ */
317
+ getVddkStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
318
+ /**
319
+ * Get VDDK status
320
+ */
321
+ getVddkStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
304
322
  /**
305
323
  * Creates request options for getVersion without sending the request
306
324
  * @throws {RequiredError}
@@ -496,11 +514,11 @@ export interface DefaultApiInterface {
496
514
  * @throws {RequiredError}
497
515
  * @memberof DefaultApiInterface
498
516
  */
499
- vddkPostRaw(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkPost200Response>>;
517
+ vddkPostRaw(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
500
518
  /**
501
519
  * Upload VDDK tarball
502
520
  */
503
- vddkPost(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkPost200Response>;
521
+ vddkPost(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
504
522
  }
505
523
  /**
506
524
  *
@@ -638,6 +656,18 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
638
656
  * Get list of VMs with filtering and pagination
639
657
  */
640
658
  getVMs(requestParameters?: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
659
+ /**
660
+ * Creates request options for getVddkStatus without sending the request
661
+ */
662
+ getVddkStatusRequestOpts(): Promise<runtime.RequestOpts>;
663
+ /**
664
+ * Get VDDK status
665
+ */
666
+ getVddkStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
667
+ /**
668
+ * Get VDDK status
669
+ */
670
+ getVddkStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
641
671
  /**
642
672
  * Creates request options for getVersion without sending the request
643
673
  */
@@ -753,9 +783,9 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
753
783
  /**
754
784
  * Upload VDDK tarball
755
785
  */
756
- vddkPostRaw(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkPost200Response>>;
786
+ vddkPostRaw(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VddkProperties>>;
757
787
  /**
758
788
  * Upload VDDK tarball
759
789
  */
760
- vddkPost(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkPost200Response>;
790
+ vddkPost(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
761
791
  }
@@ -21,7 +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 { AgentModeRequestToJSON, AgentStatusFromJSON, CollectorStartRequestToJSON, CollectorStatusFromJSON, CreateGroupRequestToJSON, GetInventory200ResponseFromJSON, GroupFromJSON, GroupListResponseFromJSON, GroupResponseFromJSON, InspectorStartRequestToJSON, InspectorStatusFromJSON, UpdateGroupRequestToJSON, VddkPost200ResponseFromJSON, VersionInfoFromJSON, VirtualMachineDetailFromJSON, VirtualMachineListResponseFromJSON, VmInspectionStatusFromJSON, } from '../models/index.js';
24
+ import { AgentModeRequestToJSON, AgentStatusFromJSON, CollectorStartRequestToJSON, CollectorStatusFromJSON, CreateGroupRequestToJSON, GetInventory200ResponseFromJSON, GroupFromJSON, GroupListResponseFromJSON, GroupResponseFromJSON, InspectorStartRequestToJSON, InspectorStatusFromJSON, UpdateGroupRequestToJSON, VddkPropertiesFromJSON, VersionInfoFromJSON, VirtualMachineDetailFromJSON, VirtualMachineListResponseFromJSON, VmInspectionStatusFromJSON, } from '../models/index.js';
25
25
  /**
26
26
  *
27
27
  */
@@ -463,6 +463,41 @@ export class DefaultApi extends runtime.BaseAPI {
463
463
  return yield response.value();
464
464
  });
465
465
  }
466
+ /**
467
+ * Creates request options for getVddkStatus without sending the request
468
+ */
469
+ getVddkStatusRequestOpts() {
470
+ return __awaiter(this, void 0, void 0, function* () {
471
+ const queryParameters = {};
472
+ const headerParameters = {};
473
+ let urlPath = `/vddk`;
474
+ return {
475
+ path: urlPath,
476
+ method: 'GET',
477
+ headers: headerParameters,
478
+ query: queryParameters,
479
+ };
480
+ });
481
+ }
482
+ /**
483
+ * Get VDDK status
484
+ */
485
+ getVddkStatusRaw(initOverrides) {
486
+ return __awaiter(this, void 0, void 0, function* () {
487
+ const requestOptions = yield this.getVddkStatusRequestOpts();
488
+ const response = yield this.request(requestOptions, initOverrides);
489
+ return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
490
+ });
491
+ }
492
+ /**
493
+ * Get VDDK status
494
+ */
495
+ getVddkStatus(initOverrides) {
496
+ return __awaiter(this, void 0, void 0, function* () {
497
+ const response = yield this.getVddkStatusRaw(initOverrides);
498
+ return yield response.value();
499
+ });
500
+ }
466
501
  /**
467
502
  * Creates request options for getVersion without sending the request
468
503
  */
@@ -859,7 +894,7 @@ export class DefaultApi extends runtime.BaseAPI {
859
894
  return __awaiter(this, void 0, void 0, function* () {
860
895
  const requestOptions = yield this.vddkPostRequestOpts(requestParameters);
861
896
  const response = yield this.request(requestOptions, initOverrides);
862
- return new runtime.JSONApiResponse(response, (jsonValue) => VddkPost200ResponseFromJSON(jsonValue));
897
+ return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
863
898
  });
864
899
  }
865
900
  /**
@@ -32,13 +32,13 @@ export interface InspectorStatus {
32
32
  * @export
33
33
  */
34
34
  export declare const InspectorStatusStateEnum: {
35
- readonly InspectorStatusStateCanceled: "ready";
36
- readonly InspectorStatusStateCanceling: "Initiating";
37
- readonly InspectorStatusStateCompleted: "running";
38
- readonly InspectorStatusStateError: "canceling";
39
- readonly InspectorStatusStateInitiating: "canceled";
40
- readonly InspectorStatusStateReady: "completed";
41
- readonly InspectorStatusStateRunning: "error";
35
+ readonly InspectorStatusStateReady: "ready";
36
+ readonly InspectorStatusStateInitiating: "Initiating";
37
+ readonly InspectorStatusStateRunning: "running";
38
+ readonly InspectorStatusStateCanceling: "canceling";
39
+ readonly InspectorStatusStateCanceled: "canceled";
40
+ readonly InspectorStatusStateCompleted: "completed";
41
+ readonly InspectorStatusStateError: "error";
42
42
  };
43
43
  export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
44
44
  /**
@@ -15,13 +15,13 @@
15
15
  * @export
16
16
  */
17
17
  export const InspectorStatusStateEnum = {
18
- InspectorStatusStateCanceled: 'ready',
19
- InspectorStatusStateCanceling: 'Initiating',
20
- InspectorStatusStateCompleted: 'running',
21
- InspectorStatusStateError: 'canceling',
22
- InspectorStatusStateInitiating: 'canceled',
23
- InspectorStatusStateReady: 'completed',
24
- InspectorStatusStateRunning: 'error'
18
+ InspectorStatusStateReady: 'ready',
19
+ InspectorStatusStateInitiating: 'Initiating',
20
+ InspectorStatusStateRunning: 'running',
21
+ InspectorStatusStateCanceling: 'canceling',
22
+ InspectorStatusStateCanceled: 'canceled',
23
+ InspectorStatusStateCompleted: 'completed',
24
+ InspectorStatusStateError: 'error'
25
25
  };
26
26
  /**
27
27
  * Check if a given object implements the InspectorStatus interface.
@@ -0,0 +1,44 @@
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 VddkProperties
16
+ */
17
+ export interface VddkProperties {
18
+ /**
19
+ * The matching vSphere Client version
20
+ * @type {string}
21
+ * @memberof VddkProperties
22
+ */
23
+ version: string;
24
+ /**
25
+ * md5 sum of the uploaded tarball
26
+ * @type {string}
27
+ * @memberof VddkProperties
28
+ */
29
+ md5: string;
30
+ /**
31
+ * provided tarball bytes
32
+ * @type {number}
33
+ * @memberof VddkProperties
34
+ */
35
+ bytes?: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the VddkProperties interface.
39
+ */
40
+ export declare function instanceOfVddkProperties(value: object): value is VddkProperties;
41
+ export declare function VddkPropertiesFromJSON(json: any): VddkProperties;
42
+ export declare function VddkPropertiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): VddkProperties;
43
+ export declare function VddkPropertiesToJSON(json: any): VddkProperties;
44
+ export declare function VddkPropertiesToJSONTyped(value?: VddkProperties | null, ignoreDiscriminator?: boolean): any;
@@ -12,35 +12,37 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  /**
15
- * Check if a given object implements the VddkPost200Response interface.
15
+ * Check if a given object implements the VddkProperties interface.
16
16
  */
17
- export function instanceOfVddkPost200Response(value) {
18
- if (!('md5' in value) || value['md5'] === undefined)
17
+ export function instanceOfVddkProperties(value) {
18
+ if (!('version' in value) || value['version'] === undefined)
19
19
  return false;
20
- if (!('bytes' in value) || value['bytes'] === undefined)
20
+ if (!('md5' in value) || value['md5'] === undefined)
21
21
  return false;
22
22
  return true;
23
23
  }
24
- export function VddkPost200ResponseFromJSON(json) {
25
- return VddkPost200ResponseFromJSONTyped(json, false);
24
+ export function VddkPropertiesFromJSON(json) {
25
+ return VddkPropertiesFromJSONTyped(json, false);
26
26
  }
27
- export function VddkPost200ResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ export function VddkPropertiesFromJSONTyped(json, ignoreDiscriminator) {
28
28
  if (json == null) {
29
29
  return json;
30
30
  }
31
31
  return {
32
+ 'version': json['version'],
32
33
  'md5': json['md5'],
33
- 'bytes': json['bytes'],
34
+ 'bytes': json['bytes'] == null ? undefined : json['bytes'],
34
35
  };
35
36
  }
36
- export function VddkPost200ResponseToJSON(json) {
37
- return VddkPost200ResponseToJSONTyped(json, false);
37
+ export function VddkPropertiesToJSON(json) {
38
+ return VddkPropertiesToJSONTyped(json, false);
38
39
  }
39
- export function VddkPost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
40
+ export function VddkPropertiesToJSONTyped(value, ignoreDiscriminator = false) {
40
41
  if (value == null) {
41
42
  return value;
42
43
  }
43
44
  return {
45
+ 'version': value['version'],
44
46
  'md5': value['md5'],
45
47
  'bytes': value['bytes'],
46
48
  };
@@ -31,7 +31,7 @@ export * from './VMNIC.js';
31
31
  export * from './VMResourceBreakdown.js';
32
32
  export * from './VMs.js';
33
33
  export * from './VcenterCredentials.js';
34
- export * from './VddkPost200Response.js';
34
+ export * from './VddkProperties.js';
35
35
  export * from './VersionInfo.js';
36
36
  export * from './VirtualMachine.js';
37
37
  export * from './VirtualMachineDetail.js';
@@ -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 './VddkPost200Response.js';
36
+ export * from './VddkProperties.js';
37
37
  export * from './VersionInfo.js';
38
38
  export * from './VirtualMachine.js';
39
39
  export * from './VirtualMachineDetail.js';
@@ -32,13 +32,13 @@ export interface InspectorStatus {
32
32
  * @export
33
33
  */
34
34
  export declare const InspectorStatusStateEnum: {
35
- readonly InspectorStatusStateCanceled: "ready";
36
- readonly InspectorStatusStateCanceling: "Initiating";
37
- readonly InspectorStatusStateCompleted: "running";
38
- readonly InspectorStatusStateError: "canceling";
39
- readonly InspectorStatusStateInitiating: "canceled";
40
- readonly InspectorStatusStateReady: "completed";
41
- readonly InspectorStatusStateRunning: "error";
35
+ readonly InspectorStatusStateReady: "ready";
36
+ readonly InspectorStatusStateInitiating: "Initiating";
37
+ readonly InspectorStatusStateRunning: "running";
38
+ readonly InspectorStatusStateCanceling: "canceling";
39
+ readonly InspectorStatusStateCanceled: "canceled";
40
+ readonly InspectorStatusStateCompleted: "completed";
41
+ readonly InspectorStatusStateError: "error";
42
42
  };
43
43
  export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
44
44
  /**
@@ -23,13 +23,13 @@ exports.InspectorStatusToJSONTyped = InspectorStatusToJSONTyped;
23
23
  * @export
24
24
  */
25
25
  exports.InspectorStatusStateEnum = {
26
- InspectorStatusStateCanceled: 'ready',
27
- InspectorStatusStateCanceling: 'Initiating',
28
- InspectorStatusStateCompleted: 'running',
29
- InspectorStatusStateError: 'canceling',
30
- InspectorStatusStateInitiating: 'canceled',
31
- InspectorStatusStateReady: 'completed',
32
- InspectorStatusStateRunning: 'error'
26
+ InspectorStatusStateReady: 'ready',
27
+ InspectorStatusStateInitiating: 'Initiating',
28
+ InspectorStatusStateRunning: 'running',
29
+ InspectorStatusStateCanceling: 'canceling',
30
+ InspectorStatusStateCanceled: 'canceled',
31
+ InspectorStatusStateCompleted: 'completed',
32
+ InspectorStatusStateError: 'error'
33
33
  };
34
34
  /**
35
35
  * Check if a given object implements the InspectorStatus interface.
@@ -0,0 +1,44 @@
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 VddkProperties
16
+ */
17
+ export interface VddkProperties {
18
+ /**
19
+ * The matching vSphere Client version
20
+ * @type {string}
21
+ * @memberof VddkProperties
22
+ */
23
+ version: string;
24
+ /**
25
+ * md5 sum of the uploaded tarball
26
+ * @type {string}
27
+ * @memberof VddkProperties
28
+ */
29
+ md5: string;
30
+ /**
31
+ * provided tarball bytes
32
+ * @type {number}
33
+ * @memberof VddkProperties
34
+ */
35
+ bytes?: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the VddkProperties interface.
39
+ */
40
+ export declare function instanceOfVddkProperties(value: object): value is VddkProperties;
41
+ export declare function VddkPropertiesFromJSON(json: any): VddkProperties;
42
+ export declare function VddkPropertiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): VddkProperties;
43
+ export declare function VddkPropertiesToJSON(json: any): VddkProperties;
44
+ export declare function VddkPropertiesToJSONTyped(value?: VddkProperties | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.instanceOfVddkProperties = instanceOfVddkProperties;
17
+ exports.VddkPropertiesFromJSON = VddkPropertiesFromJSON;
18
+ exports.VddkPropertiesFromJSONTyped = VddkPropertiesFromJSONTyped;
19
+ exports.VddkPropertiesToJSON = VddkPropertiesToJSON;
20
+ exports.VddkPropertiesToJSONTyped = VddkPropertiesToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VddkProperties interface.
23
+ */
24
+ function instanceOfVddkProperties(value) {
25
+ if (!('version' in value) || value['version'] === undefined)
26
+ return false;
27
+ if (!('md5' in value) || value['md5'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function VddkPropertiesFromJSON(json) {
32
+ return VddkPropertiesFromJSONTyped(json, false);
33
+ }
34
+ function VddkPropertiesFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'version': json['version'],
40
+ 'md5': json['md5'],
41
+ 'bytes': json['bytes'] == null ? undefined : json['bytes'],
42
+ };
43
+ }
44
+ function VddkPropertiesToJSON(json) {
45
+ return VddkPropertiesToJSONTyped(json, false);
46
+ }
47
+ function VddkPropertiesToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'version': value['version'],
53
+ 'md5': value['md5'],
54
+ 'bytes': value['bytes'],
55
+ };
56
+ }
@@ -31,7 +31,7 @@ export * from './VMNIC.js';
31
31
  export * from './VMResourceBreakdown.js';
32
32
  export * from './VMs.js';
33
33
  export * from './VcenterCredentials.js';
34
- export * from './VddkPost200Response.js';
34
+ export * from './VddkProperties.js';
35
35
  export * from './VersionInfo.js';
36
36
  export * from './VirtualMachine.js';
37
37
  export * from './VirtualMachineDetail.js';
@@ -49,7 +49,7 @@ __exportStar(require("./VMNIC.js"), exports);
49
49
  __exportStar(require("./VMResourceBreakdown.js"), exports);
50
50
  __exportStar(require("./VMs.js"), exports);
51
51
  __exportStar(require("./VcenterCredentials.js"), exports);
52
- __exportStar(require("./VddkPost200Response.js"), exports);
52
+ __exportStar(require("./VddkProperties.js"), exports);
53
53
  __exportStar(require("./VersionInfo.js"), exports);
54
54
  __exportStar(require("./VirtualMachine.js"), exports);
55
55
  __exportStar(require("./VirtualMachineDetail.js"), exports);
@@ -15,6 +15,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
15
15
  | [**getVM**](DefaultApi.md#getvm) | **GET** /vms/{id} | Get details about a vm |
16
16
  | [**getVMInspectionStatus**](DefaultApi.md#getvminspectionstatus) | **GET** /vms/{id}/inspector | Get inspection status for a specific VirtualMachine |
17
17
  | [**getVMs**](DefaultApi.md#getvms) | **GET** /vms | Get list of VMs with filtering and pagination |
18
+ | [**getVddkStatus**](DefaultApi.md#getvddkstatus) | **GET** /vddk | Get VDDK status |
18
19
  | [**getVersion**](DefaultApi.md#getversion) | **GET** /version | Get agent version information |
19
20
  | [**listGroups**](DefaultApi.md#listgroups) | **GET** /groups | List all groups |
20
21
  | [**removeVMFromInspection**](DefaultApi.md#removevmfrominspection) | **DELETE** /vms/{id}/inspector | Remove VirtualMachine from inspection queue |
@@ -759,6 +760,65 @@ No authorization required
759
760
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
760
761
 
761
762
 
763
+ ## getVddkStatus
764
+
765
+ > VddkProperties getVddkStatus()
766
+
767
+ Get VDDK status
768
+
769
+ ### Example
770
+
771
+ ```ts
772
+ import {
773
+ Configuration,
774
+ DefaultApi,
775
+ } from '@openshift-migration-advisor/agent-sdk';
776
+ import type { GetVddkStatusRequest } from '@openshift-migration-advisor/agent-sdk';
777
+
778
+ async function example() {
779
+ console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
780
+ const api = new DefaultApi();
781
+
782
+ try {
783
+ const data = await api.getVddkStatus();
784
+ console.log(data);
785
+ } catch (error) {
786
+ console.error(error);
787
+ }
788
+ }
789
+
790
+ // Run the test
791
+ example().catch(console.error);
792
+ ```
793
+
794
+ ### Parameters
795
+
796
+ This endpoint does not need any parameter.
797
+
798
+ ### Return type
799
+
800
+ [**VddkProperties**](VddkProperties.md)
801
+
802
+ ### Authorization
803
+
804
+ No authorization required
805
+
806
+ ### HTTP request headers
807
+
808
+ - **Content-Type**: Not defined
809
+ - **Accept**: `application/json`
810
+
811
+
812
+ ### HTTP response details
813
+ | Status code | Description | Response headers |
814
+ |-------------|-------------|------------------|
815
+ | **200** | Returns the current properties of the uploaded VMware VDDK tar. If the VDDK package has not been uploaded, a 404 response is returned. | - |
816
+ | **404** | Vddk not found | - |
817
+ | **500** | Internal server error | - |
818
+
819
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
820
+
821
+
762
822
  ## getVersion
763
823
 
764
824
  > VersionInfo getVersion()
@@ -1352,7 +1412,7 @@ No authorization required
1352
1412
 
1353
1413
  ## vddkPost
1354
1414
 
1355
- > VddkPost200Response vddkPost(file)
1415
+ > VddkProperties vddkPost(file)
1356
1416
 
1357
1417
  Upload VDDK tarball
1358
1418
 
@@ -1395,7 +1455,7 @@ example().catch(console.error);
1395
1455
 
1396
1456
  ### Return type
1397
1457
 
1398
- [**VddkPost200Response**](VddkPost200Response.md)
1458
+ [**VddkProperties**](VddkProperties.md)
1399
1459
 
1400
1460
  ### Authorization
1401
1461
 
@@ -1411,6 +1471,7 @@ No authorization required
1411
1471
  | Status code | Description | Response headers |
1412
1472
  |-------------|-------------|------------------|
1413
1473
  | **200** | Upload successful | - |
1474
+ | **409** | Conflict | - |
1414
1475
  | **413** | File exceeds 64MB limit | - |
1415
1476
  | **400** | Bad request | - |
1416
1477
  | **500** | Internal server error | - |
@@ -1,24 +1,26 @@
1
1
 
2
- # VddkPost200Response
2
+ # VddkProperties
3
3
 
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
+ `version` | string
9
10
  `md5` | string
10
11
  `bytes` | number
11
12
 
12
13
  ## Example
13
14
 
14
15
  ```typescript
15
- import type { VddkPost200Response } from '@openshift-migration-advisor/agent-sdk'
16
+ import type { VddkProperties } from '@openshift-migration-advisor/agent-sdk'
16
17
 
17
18
  // TODO: Update the object below with actual values
18
19
  const example = {
20
+ "version": null,
19
21
  "md5": null,
20
22
  "bytes": null,
21
- } satisfies VddkPost200Response
23
+ } satisfies VddkProperties
22
24
 
23
25
  console.log(example)
24
26
 
@@ -27,7 +29,7 @@ const exampleJSON: string = JSON.stringify(example)
27
29
  console.log(exampleJSON)
28
30
 
29
31
  // Parse the JSON string back to an object
30
- const exampleParsed = JSON.parse(exampleJSON) as VddkPost200Response
32
+ const exampleParsed = JSON.parse(exampleJSON) as VddkProperties
31
33
  console.log(exampleParsed)
32
34
  ```
33
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/agent-sdk",
3
- "version": "0.0.0-e4821863b141",
3
+ "version": "0.8.0-0a190192e598",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/agent-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -27,7 +27,7 @@ import type {
27
27
  InspectorStartRequest,
28
28
  InspectorStatus,
29
29
  UpdateGroupRequest,
30
- VddkPost200Response,
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
- VddkPost200ResponseFromJSON,
62
- VddkPost200ResponseToJSON,
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<VddkPost200Response>>;
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<VddkPost200Response>;
660
+ vddkPost(requestParameters: VddkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VddkProperties>;
640
661
 
641
662
  }
642
663
 
@@ -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
  */
@@ -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<VddkPost200Response>> {
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) => VddkPost200ResponseFromJSON(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<VddkPost200Response> {
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
  }
@@ -38,13 +38,13 @@ export interface InspectorStatus {
38
38
  * @export
39
39
  */
40
40
  export const InspectorStatusStateEnum = {
41
- InspectorStatusStateCanceled: 'ready',
42
- InspectorStatusStateCanceling: 'Initiating',
43
- InspectorStatusStateCompleted: 'running',
44
- InspectorStatusStateError: 'canceling',
45
- InspectorStatusStateInitiating: 'canceled',
46
- InspectorStatusStateReady: 'completed',
47
- InspectorStatusStateRunning: 'error'
41
+ InspectorStatusStateReady: 'ready',
42
+ InspectorStatusStateInitiating: 'Initiating',
43
+ InspectorStatusStateRunning: 'running',
44
+ InspectorStatusStateCanceling: 'canceling',
45
+ InspectorStatusStateCanceled: 'canceled',
46
+ InspectorStatusStateCompleted: 'completed',
47
+ InspectorStatusStateError: 'error'
48
48
  } as const;
49
49
  export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
50
50
 
@@ -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
+
@@ -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 './VddkPost200Response.js';
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
-