@openshift-migration-advisor/agent-sdk 0.8.0-a3f90da0e31d → 0.8.0-adc7901d9658

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.
@@ -13,6 +13,21 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime.js';
16
+ import type { VddkProperties } from './VddkProperties.js';
17
+ import {
18
+ VddkPropertiesFromJSON,
19
+ VddkPropertiesFromJSONTyped,
20
+ VddkPropertiesToJSON,
21
+ VddkPropertiesToJSONTyped,
22
+ } from './VddkProperties.js';
23
+ import type { VcenterCredentials } from './VcenterCredentials.js';
24
+ import {
25
+ VcenterCredentialsFromJSON,
26
+ VcenterCredentialsFromJSONTyped,
27
+ VcenterCredentialsToJSON,
28
+ VcenterCredentialsToJSONTyped,
29
+ } from './VcenterCredentials.js';
30
+
16
31
  /**
17
32
  *
18
33
  * @export
@@ -25,6 +40,18 @@ export interface InspectorStatus {
25
40
  * @memberof InspectorStatus
26
41
  */
27
42
  state: InspectorStatusStateEnum;
43
+ /**
44
+ *
45
+ * @type {VcenterCredentials}
46
+ * @memberof InspectorStatus
47
+ */
48
+ credentials?: VcenterCredentials;
49
+ /**
50
+ *
51
+ * @type {VddkProperties}
52
+ * @memberof InspectorStatus
53
+ */
54
+ vddk?: VddkProperties;
28
55
  /**
29
56
  * Error message when state is error
30
57
  * @type {string}
@@ -67,6 +94,8 @@ export function InspectorStatusFromJSONTyped(json: any, ignoreDiscriminator: boo
67
94
  return {
68
95
 
69
96
  'state': json['state'],
97
+ 'credentials': json['credentials'] == null ? undefined : VcenterCredentialsFromJSON(json['credentials']),
98
+ 'vddk': json['vddk'] == null ? undefined : VddkPropertiesFromJSON(json['vddk']),
70
99
  'error': json['error'] == null ? undefined : json['error'],
71
100
  };
72
101
  }
@@ -83,6 +112,8 @@ export function InspectorStatusToJSONTyped(value?: InspectorStatus | null, ignor
83
112
  return {
84
113
 
85
114
  'state': value['state'],
115
+ 'credentials': VcenterCredentialsToJSON(value['credentials']),
116
+ 'vddk': VddkPropertiesToJSON(value['vddk']),
86
117
  'error': value['error'],
87
118
  };
88
119
  }
@@ -0,0 +1,66 @@
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
+ * Array of VirtualMachine id
18
+ * @export
19
+ * @interface StartInspectionRequest
20
+ */
21
+ export interface StartInspectionRequest {
22
+ /**
23
+ *
24
+ * @type {Array<string>}
25
+ * @memberof StartInspectionRequest
26
+ */
27
+ vmIds: Array<string>;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the StartInspectionRequest interface.
32
+ */
33
+ export function instanceOfStartInspectionRequest(value: object): value is StartInspectionRequest {
34
+ if (!('vmIds' in value) || value['vmIds'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function StartInspectionRequestFromJSON(json: any): StartInspectionRequest {
39
+ return StartInspectionRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function StartInspectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartInspectionRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'vmIds': json['vmIds'],
49
+ };
50
+ }
51
+
52
+ export function StartInspectionRequestToJSON(json: any): StartInspectionRequest {
53
+ return StartInspectionRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function StartInspectionRequestToJSONTyped(value?: StartInspectionRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'vmIds': value['vmIds'],
64
+ };
65
+ }
66
+
@@ -16,13 +16,13 @@ export * from './GuestNetwork.js';
16
16
  export * from './Histogram.js';
17
17
  export * from './Host.js';
18
18
  export * from './Infra.js';
19
- export * from './InspectorStartRequest.js';
20
19
  export * from './InspectorStatus.js';
21
20
  export * from './Inventory.js';
22
21
  export * from './InventoryData.js';
23
22
  export * from './MigrationIssue.js';
24
23
  export * from './Network.js';
25
24
  export * from './OsInfo.js';
25
+ export * from './StartInspectionRequest.js';
26
26
  export * from './UpdateGroupRequest.js';
27
27
  export * from './UpdateInventory.js';
28
28
  export * from './VCenter.js';
@@ -1,39 +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
- import type { VcenterCredentials } from './VcenterCredentials.js';
13
- /**
14
- *
15
- * @export
16
- * @interface InspectorStartRequest
17
- */
18
- export interface InspectorStartRequest {
19
- /**
20
- *
21
- * @type {VcenterCredentials}
22
- * @memberof InspectorStartRequest
23
- */
24
- vcenterCredentials: VcenterCredentials;
25
- /**
26
- * Array of VirtualMachine id
27
- * @type {Array<string>}
28
- * @memberof InspectorStartRequest
29
- */
30
- vmIds: Array<string>;
31
- }
32
- /**
33
- * Check if a given object implements the InspectorStartRequest interface.
34
- */
35
- export declare function instanceOfInspectorStartRequest(value: object): value is InspectorStartRequest;
36
- export declare function InspectorStartRequestFromJSON(json: any): InspectorStartRequest;
37
- export declare function InspectorStartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InspectorStartRequest;
38
- export declare function InspectorStartRequestToJSON(json: any): InspectorStartRequest;
39
- export declare function InspectorStartRequestToJSONTyped(value?: InspectorStartRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,48 +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
- import { VcenterCredentialsFromJSON, VcenterCredentialsToJSON, } from './VcenterCredentials.js';
15
- /**
16
- * Check if a given object implements the InspectorStartRequest interface.
17
- */
18
- export function instanceOfInspectorStartRequest(value) {
19
- if (!('vcenterCredentials' in value) || value['vcenterCredentials'] === undefined)
20
- return false;
21
- if (!('vmIds' in value) || value['vmIds'] === undefined)
22
- return false;
23
- return true;
24
- }
25
- export function InspectorStartRequestFromJSON(json) {
26
- return InspectorStartRequestFromJSONTyped(json, false);
27
- }
28
- export function InspectorStartRequestFromJSONTyped(json, ignoreDiscriminator) {
29
- if (json == null) {
30
- return json;
31
- }
32
- return {
33
- 'vcenterCredentials': VcenterCredentialsFromJSON(json['VcenterCredentials']),
34
- 'vmIds': json['vmIds'],
35
- };
36
- }
37
- export function InspectorStartRequestToJSON(json) {
38
- return InspectorStartRequestToJSONTyped(json, false);
39
- }
40
- export function InspectorStartRequestToJSONTyped(value, ignoreDiscriminator = false) {
41
- if (value == null) {
42
- return value;
43
- }
44
- return {
45
- 'VcenterCredentials': VcenterCredentialsToJSON(value['vcenterCredentials']),
46
- 'vmIds': value['vmIds'],
47
- };
48
- }
@@ -1,39 +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
- import type { VcenterCredentials } from './VcenterCredentials.js';
13
- /**
14
- *
15
- * @export
16
- * @interface InspectorStartRequest
17
- */
18
- export interface InspectorStartRequest {
19
- /**
20
- *
21
- * @type {VcenterCredentials}
22
- * @memberof InspectorStartRequest
23
- */
24
- vcenterCredentials: VcenterCredentials;
25
- /**
26
- * Array of VirtualMachine id
27
- * @type {Array<string>}
28
- * @memberof InspectorStartRequest
29
- */
30
- vmIds: Array<string>;
31
- }
32
- /**
33
- * Check if a given object implements the InspectorStartRequest interface.
34
- */
35
- export declare function instanceOfInspectorStartRequest(value: object): value is InspectorStartRequest;
36
- export declare function InspectorStartRequestFromJSON(json: any): InspectorStartRequest;
37
- export declare function InspectorStartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InspectorStartRequest;
38
- export declare function InspectorStartRequestToJSON(json: any): InspectorStartRequest;
39
- export declare function InspectorStartRequestToJSONTyped(value?: InspectorStartRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,55 +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.instanceOfInspectorStartRequest = instanceOfInspectorStartRequest;
17
- exports.InspectorStartRequestFromJSON = InspectorStartRequestFromJSON;
18
- exports.InspectorStartRequestFromJSONTyped = InspectorStartRequestFromJSONTyped;
19
- exports.InspectorStartRequestToJSON = InspectorStartRequestToJSON;
20
- exports.InspectorStartRequestToJSONTyped = InspectorStartRequestToJSONTyped;
21
- const VcenterCredentials_js_1 = require("./VcenterCredentials.js");
22
- /**
23
- * Check if a given object implements the InspectorStartRequest interface.
24
- */
25
- function instanceOfInspectorStartRequest(value) {
26
- if (!('vcenterCredentials' in value) || value['vcenterCredentials'] === undefined)
27
- return false;
28
- if (!('vmIds' in value) || value['vmIds'] === undefined)
29
- return false;
30
- return true;
31
- }
32
- function InspectorStartRequestFromJSON(json) {
33
- return InspectorStartRequestFromJSONTyped(json, false);
34
- }
35
- function InspectorStartRequestFromJSONTyped(json, ignoreDiscriminator) {
36
- if (json == null) {
37
- return json;
38
- }
39
- return {
40
- 'vcenterCredentials': (0, VcenterCredentials_js_1.VcenterCredentialsFromJSON)(json['VcenterCredentials']),
41
- 'vmIds': json['vmIds'],
42
- };
43
- }
44
- function InspectorStartRequestToJSON(json) {
45
- return InspectorStartRequestToJSONTyped(json, false);
46
- }
47
- function InspectorStartRequestToJSONTyped(value, ignoreDiscriminator = false) {
48
- if (value == null) {
49
- return value;
50
- }
51
- return {
52
- 'VcenterCredentials': (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(value['vcenterCredentials']),
53
- 'vmIds': value['vmIds'],
54
- };
55
- }
@@ -1,83 +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
- import type { VcenterCredentials } from './VcenterCredentials.js';
17
- import {
18
- VcenterCredentialsFromJSON,
19
- VcenterCredentialsFromJSONTyped,
20
- VcenterCredentialsToJSON,
21
- VcenterCredentialsToJSONTyped,
22
- } from './VcenterCredentials.js';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface InspectorStartRequest
28
- */
29
- export interface InspectorStartRequest {
30
- /**
31
- *
32
- * @type {VcenterCredentials}
33
- * @memberof InspectorStartRequest
34
- */
35
- vcenterCredentials: VcenterCredentials;
36
- /**
37
- * Array of VirtualMachine id
38
- * @type {Array<string>}
39
- * @memberof InspectorStartRequest
40
- */
41
- vmIds: Array<string>;
42
- }
43
-
44
- /**
45
- * Check if a given object implements the InspectorStartRequest interface.
46
- */
47
- export function instanceOfInspectorStartRequest(value: object): value is InspectorStartRequest {
48
- if (!('vcenterCredentials' in value) || value['vcenterCredentials'] === undefined) return false;
49
- if (!('vmIds' in value) || value['vmIds'] === undefined) return false;
50
- return true;
51
- }
52
-
53
- export function InspectorStartRequestFromJSON(json: any): InspectorStartRequest {
54
- return InspectorStartRequestFromJSONTyped(json, false);
55
- }
56
-
57
- export function InspectorStartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InspectorStartRequest {
58
- if (json == null) {
59
- return json;
60
- }
61
- return {
62
-
63
- 'vcenterCredentials': VcenterCredentialsFromJSON(json['VcenterCredentials']),
64
- 'vmIds': json['vmIds'],
65
- };
66
- }
67
-
68
- export function InspectorStartRequestToJSON(json: any): InspectorStartRequest {
69
- return InspectorStartRequestToJSONTyped(json, false);
70
- }
71
-
72
- export function InspectorStartRequestToJSONTyped(value?: InspectorStartRequest | null, ignoreDiscriminator: boolean = false): any {
73
- if (value == null) {
74
- return value;
75
- }
76
-
77
- return {
78
-
79
- 'VcenterCredentials': VcenterCredentialsToJSON(value['vcenterCredentials']),
80
- 'vmIds': value['vmIds'],
81
- };
82
- }
83
-