@migration-planner-ui/api-client 0.0.19 → 0.0.20

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.
@@ -16,6 +16,7 @@ src/models/Host.ts
16
16
  src/models/Info.ts
17
17
  src/models/Infra.ts
18
18
  src/models/Inventory.ts
19
+ src/models/Ipv4Config.ts
19
20
  src/models/Label.ts
20
21
  src/models/MigrationIssue.ts
21
22
  src/models/ModelError.ts
@@ -32,5 +33,6 @@ src/models/UploadRvtoolsFile200Response.ts
32
33
  src/models/VCenter.ts
33
34
  src/models/VMResourceBreakdown.ts
34
35
  src/models/VMs.ts
36
+ src/models/VmNetwork.ts
35
37
  src/models/index.ts
36
38
  src/runtime.ts
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Migration Planner API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: undefined
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 Ipv4Config
16
+ */
17
+ export interface Ipv4Config {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof Ipv4Config
22
+ */
23
+ ipAddress: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof Ipv4Config
28
+ */
29
+ subnetMask: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof Ipv4Config
34
+ */
35
+ defaultGateway: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof Ipv4Config
40
+ */
41
+ dns: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the Ipv4Config interface.
45
+ */
46
+ export declare function instanceOfIpv4Config(value: object): value is Ipv4Config;
47
+ export declare function Ipv4ConfigFromJSON(json: any): Ipv4Config;
48
+ export declare function Ipv4ConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ipv4Config;
49
+ export declare function Ipv4ConfigToJSON(value?: Ipv4Config | null): any;
@@ -0,0 +1,52 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Migration Planner API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: undefined
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
+ * Check if a given object implements the Ipv4Config interface.
16
+ */
17
+ export function instanceOfIpv4Config(value) {
18
+ if (!('ipAddress' in value) || value['ipAddress'] === undefined)
19
+ return false;
20
+ if (!('subnetMask' in value) || value['subnetMask'] === undefined)
21
+ return false;
22
+ if (!('defaultGateway' in value) || value['defaultGateway'] === undefined)
23
+ return false;
24
+ if (!('dns' in value) || value['dns'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function Ipv4ConfigFromJSON(json) {
29
+ return Ipv4ConfigFromJSONTyped(json, false);
30
+ }
31
+ export function Ipv4ConfigFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'ipAddress': json['ipAddress'],
37
+ 'subnetMask': json['subnetMask'],
38
+ 'defaultGateway': json['defaultGateway'],
39
+ 'dns': json['dns'],
40
+ };
41
+ }
42
+ export function Ipv4ConfigToJSON(value) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'ipAddress': value['ipAddress'],
48
+ 'subnetMask': value['subnetMask'],
49
+ 'defaultGateway': value['defaultGateway'],
50
+ 'dns': value['dns'],
51
+ };
52
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { VmNetwork } from './VmNetwork';
12
13
  import type { AgentProxy } from './AgentProxy';
13
14
  import type { Label } from './Label';
14
15
  /**
@@ -41,6 +42,12 @@ export interface SourceCreate {
41
42
  * @memberof SourceCreate
42
43
  */
43
44
  certificateChain?: string | null;
45
+ /**
46
+ *
47
+ * @type {VmNetwork}
48
+ * @memberof SourceCreate
49
+ */
50
+ network?: VmNetwork;
44
51
  /**
45
52
  *
46
53
  * @type {Array<Label>}
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { VmNetworkFromJSON, VmNetworkToJSON, } from './VmNetwork';
14
15
  import { AgentProxyFromJSON, AgentProxyToJSON, } from './AgentProxy';
15
16
  import { LabelFromJSON, LabelToJSON, } from './Label';
16
17
  /**
@@ -33,6 +34,7 @@ export function SourceCreateFromJSONTyped(json, ignoreDiscriminator) {
33
34
  'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
34
35
  'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
35
36
  'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
37
+ 'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
36
38
  'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
37
39
  };
38
40
  }
@@ -45,6 +47,7 @@ export function SourceCreateToJSON(value) {
45
47
  'sshPublicKey': value['sshPublicKey'],
46
48
  'proxy': AgentProxyToJSON(value['proxy']),
47
49
  'certificateChain': value['certificateChain'],
50
+ 'network': VmNetworkToJSON(value['network']),
48
51
  'labels': value['labels'] == null ? undefined : (value['labels'].map(LabelToJSON)),
49
52
  };
50
53
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { VmNetwork } from './VmNetwork';
12
13
  import type { AgentProxy } from './AgentProxy';
13
14
  import type { Label } from './Label';
14
15
  /**
@@ -47,6 +48,12 @@ export interface SourceUpdate {
47
48
  * @memberof SourceUpdate
48
49
  */
49
50
  proxy?: AgentProxy;
51
+ /**
52
+ *
53
+ * @type {VmNetwork}
54
+ * @memberof SourceUpdate
55
+ */
56
+ network?: VmNetwork;
50
57
  }
51
58
  /**
52
59
  * Check if a given object implements the SourceUpdate interface.
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { VmNetworkFromJSON, VmNetworkToJSON, } from './VmNetwork';
14
15
  import { AgentProxyFromJSON, AgentProxyToJSON, } from './AgentProxy';
15
16
  import { LabelFromJSON, LabelToJSON, } from './Label';
16
17
  /**
@@ -32,6 +33,7 @@ export function SourceUpdateFromJSONTyped(json, ignoreDiscriminator) {
32
33
  'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
33
34
  'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
34
35
  'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
36
+ 'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
35
37
  };
36
38
  }
37
39
  export function SourceUpdateToJSON(value) {
@@ -44,5 +46,6 @@ export function SourceUpdateToJSON(value) {
44
46
  'sshPublicKey': value['sshPublicKey'],
45
47
  'certificateChain': value['certificateChain'],
46
48
  'proxy': AgentProxyToJSON(value['proxy']),
49
+ 'network': VmNetworkToJSON(value['network']),
47
50
  };
48
51
  }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Migration Planner API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: undefined
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 { Ipv4Config } from './Ipv4Config';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface VmNetwork
17
+ */
18
+ export interface VmNetwork {
19
+ /**
20
+ *
21
+ * @type {Ipv4Config}
22
+ * @memberof VmNetwork
23
+ */
24
+ ipv4?: Ipv4Config;
25
+ }
26
+ /**
27
+ * Check if a given object implements the VmNetwork interface.
28
+ */
29
+ export declare function instanceOfVmNetwork(value: object): value is VmNetwork;
30
+ export declare function VmNetworkFromJSON(json: any): VmNetwork;
31
+ export declare function VmNetworkFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmNetwork;
32
+ export declare function VmNetworkToJSON(value?: VmNetwork | null): any;
@@ -0,0 +1,39 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Migration Planner API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: undefined
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 { Ipv4ConfigFromJSON, Ipv4ConfigToJSON, } from './Ipv4Config';
15
+ /**
16
+ * Check if a given object implements the VmNetwork interface.
17
+ */
18
+ export function instanceOfVmNetwork(value) {
19
+ return true;
20
+ }
21
+ export function VmNetworkFromJSON(json) {
22
+ return VmNetworkFromJSONTyped(json, false);
23
+ }
24
+ export function VmNetworkFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'ipv4': json['ipv4'] == null ? undefined : Ipv4ConfigFromJSON(json['ipv4']),
30
+ };
31
+ }
32
+ export function VmNetworkToJSON(value) {
33
+ if (value == null) {
34
+ return value;
35
+ }
36
+ return {
37
+ 'ipv4': Ipv4ConfigToJSON(value['ipv4']),
38
+ };
39
+ }
@@ -9,6 +9,7 @@ export * from './Host';
9
9
  export * from './Info';
10
10
  export * from './Infra';
11
11
  export * from './Inventory';
12
+ export * from './Ipv4Config';
12
13
  export * from './Label';
13
14
  export * from './MigrationIssue';
14
15
  export * from './ModelError';
@@ -25,3 +26,4 @@ export * from './UploadRvtoolsFile200Response';
25
26
  export * from './VCenter';
26
27
  export * from './VMResourceBreakdown';
27
28
  export * from './VMs';
29
+ export * from './VmNetwork';
@@ -11,6 +11,7 @@ export * from './Host';
11
11
  export * from './Info';
12
12
  export * from './Infra';
13
13
  export * from './Inventory';
14
+ export * from './Ipv4Config';
14
15
  export * from './Label';
15
16
  export * from './MigrationIssue';
16
17
  export * from './ModelError';
@@ -27,3 +28,4 @@ export * from './UploadRvtoolsFile200Response';
27
28
  export * from './VCenter';
28
29
  export * from './VMResourceBreakdown';
29
30
  export * from './VMs';
31
+ export * from './VmNetwork';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@migration-planner-ui/api-client",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "OpenAPI client for the Migration Planner API",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -21,10 +21,7 @@ import type {
21
21
  } from '../models/index';
22
22
  import {
23
23
  AssessmentFromJSON,
24
- AssessmentToJSON,
25
- AssessmentFormFromJSON,
26
24
  AssessmentFormToJSON,
27
- AssessmentUpdateFromJSON,
28
25
  AssessmentUpdateToJSON,
29
26
  } from '../models/index';
30
27
 
@@ -0,0 +1,88 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Migration Planner API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: undefined
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';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface Ipv4Config
20
+ */
21
+ export interface Ipv4Config {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Ipv4Config
26
+ */
27
+ ipAddress: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Ipv4Config
32
+ */
33
+ subnetMask: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof Ipv4Config
38
+ */
39
+ defaultGateway: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof Ipv4Config
44
+ */
45
+ dns: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the Ipv4Config interface.
50
+ */
51
+ export function instanceOfIpv4Config(value: object): value is Ipv4Config {
52
+ if (!('ipAddress' in value) || value['ipAddress'] === undefined) return false;
53
+ if (!('subnetMask' in value) || value['subnetMask'] === undefined) return false;
54
+ if (!('defaultGateway' in value) || value['defaultGateway'] === undefined) return false;
55
+ if (!('dns' in value) || value['dns'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function Ipv4ConfigFromJSON(json: any): Ipv4Config {
60
+ return Ipv4ConfigFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function Ipv4ConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ipv4Config {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'ipAddress': json['ipAddress'],
70
+ 'subnetMask': json['subnetMask'],
71
+ 'defaultGateway': json['defaultGateway'],
72
+ 'dns': json['dns'],
73
+ };
74
+ }
75
+
76
+ export function Ipv4ConfigToJSON(value?: Ipv4Config | null): any {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+ return {
81
+
82
+ 'ipAddress': value['ipAddress'],
83
+ 'subnetMask': value['subnetMask'],
84
+ 'defaultGateway': value['defaultGateway'],
85
+ 'dns': value['dns'],
86
+ };
87
+ }
88
+
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { VmNetwork } from './VmNetwork';
17
+ import {
18
+ VmNetworkFromJSON,
19
+ VmNetworkFromJSONTyped,
20
+ VmNetworkToJSON,
21
+ } from './VmNetwork';
16
22
  import type { AgentProxy } from './AgentProxy';
17
23
  import {
18
24
  AgentProxyFromJSON,
@@ -56,6 +62,12 @@ export interface SourceCreate {
56
62
  * @memberof SourceCreate
57
63
  */
58
64
  certificateChain?: string | null;
65
+ /**
66
+ *
67
+ * @type {VmNetwork}
68
+ * @memberof SourceCreate
69
+ */
70
+ network?: VmNetwork;
59
71
  /**
60
72
  *
61
73
  * @type {Array<Label>}
@@ -86,6 +98,7 @@ export function SourceCreateFromJSONTyped(json: any, ignoreDiscriminator: boolea
86
98
  'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
87
99
  'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
88
100
  'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
101
+ 'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
89
102
  'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(LabelFromJSON)),
90
103
  };
91
104
  }
@@ -100,6 +113,7 @@ export function SourceCreateToJSON(value?: SourceCreate | null): any {
100
113
  'sshPublicKey': value['sshPublicKey'],
101
114
  'proxy': AgentProxyToJSON(value['proxy']),
102
115
  'certificateChain': value['certificateChain'],
116
+ 'network': VmNetworkToJSON(value['network']),
103
117
  'labels': value['labels'] == null ? undefined : ((value['labels'] as Array<any>).map(LabelToJSON)),
104
118
  };
105
119
  }
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { VmNetwork } from './VmNetwork';
17
+ import {
18
+ VmNetworkFromJSON,
19
+ VmNetworkFromJSONTyped,
20
+ VmNetworkToJSON,
21
+ } from './VmNetwork';
16
22
  import type { AgentProxy } from './AgentProxy';
17
23
  import {
18
24
  AgentProxyFromJSON,
@@ -62,6 +68,12 @@ export interface SourceUpdate {
62
68
  * @memberof SourceUpdate
63
69
  */
64
70
  proxy?: AgentProxy;
71
+ /**
72
+ *
73
+ * @type {VmNetwork}
74
+ * @memberof SourceUpdate
75
+ */
76
+ network?: VmNetwork;
65
77
  }
66
78
 
67
79
  /**
@@ -86,6 +98,7 @@ export function SourceUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolea
86
98
  'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
87
99
  'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
88
100
  'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
101
+ 'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
89
102
  };
90
103
  }
91
104
 
@@ -100,6 +113,7 @@ export function SourceUpdateToJSON(value?: SourceUpdate | null): any {
100
113
  'sshPublicKey': value['sshPublicKey'],
101
114
  'certificateChain': value['certificateChain'],
102
115
  'proxy': AgentProxyToJSON(value['proxy']),
116
+ 'network': VmNetworkToJSON(value['network']),
103
117
  };
104
118
  }
105
119
 
@@ -0,0 +1,67 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Migration Planner API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: undefined
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';
16
+ import type { Ipv4Config } from './Ipv4Config';
17
+ import {
18
+ Ipv4ConfigFromJSON,
19
+ Ipv4ConfigFromJSONTyped,
20
+ Ipv4ConfigToJSON,
21
+ } from './Ipv4Config';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface VmNetwork
27
+ */
28
+ export interface VmNetwork {
29
+ /**
30
+ *
31
+ * @type {Ipv4Config}
32
+ * @memberof VmNetwork
33
+ */
34
+ ipv4?: Ipv4Config;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the VmNetwork interface.
39
+ */
40
+ export function instanceOfVmNetwork(value: object): value is VmNetwork {
41
+ return true;
42
+ }
43
+
44
+ export function VmNetworkFromJSON(json: any): VmNetwork {
45
+ return VmNetworkFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function VmNetworkFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmNetwork {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'ipv4': json['ipv4'] == null ? undefined : Ipv4ConfigFromJSON(json['ipv4']),
55
+ };
56
+ }
57
+
58
+ export function VmNetworkToJSON(value?: VmNetwork | null): any {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+
64
+ 'ipv4': Ipv4ConfigToJSON(value['ipv4']),
65
+ };
66
+ }
67
+
@@ -11,6 +11,7 @@ export * from './Host';
11
11
  export * from './Info';
12
12
  export * from './Infra';
13
13
  export * from './Inventory';
14
+ export * from './Ipv4Config';
14
15
  export * from './Label';
15
16
  export * from './MigrationIssue';
16
17
  export * from './ModelError';
@@ -27,3 +28,4 @@ export * from './UploadRvtoolsFile200Response';
27
28
  export * from './VCenter';
28
29
  export * from './VMResourceBreakdown';
29
30
  export * from './VMs';
31
+ export * from './VmNetwork';