@migration-planner-ui/api-client 0.0.18 → 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.
- package/.openapi-generator/FILES +2 -0
- package/dist/models/Assessment.d.ts +12 -0
- package/dist/models/Assessment.js +4 -0
- package/dist/models/Ipv4Config.d.ts +49 -0
- package/dist/models/Ipv4Config.js +52 -0
- package/dist/models/SourceCreate.d.ts +7 -0
- package/dist/models/SourceCreate.js +3 -0
- package/dist/models/SourceUpdate.d.ts +7 -0
- package/dist/models/SourceUpdate.js +3 -0
- package/dist/models/VmNetwork.d.ts +32 -0
- package/dist/models/VmNetwork.js +39 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +0 -3
- package/src/models/Assessment.ts +16 -0
- package/src/models/Ipv4Config.ts +88 -0
- package/src/models/SourceCreate.ts +14 -0
- package/src/models/SourceUpdate.ts +14 -0
- package/src/models/VmNetwork.ts +67 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -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
|
|
@@ -28,6 +28,18 @@ export interface Assessment {
|
|
|
28
28
|
* @memberof Assessment
|
|
29
29
|
*/
|
|
30
30
|
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* Owner's first name
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Assessment
|
|
35
|
+
*/
|
|
36
|
+
ownerFirstName?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Owner's last name
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Assessment
|
|
41
|
+
*/
|
|
42
|
+
ownerLastName?: string;
|
|
31
43
|
/**
|
|
32
44
|
*
|
|
33
45
|
* @type {string}
|
|
@@ -46,6 +46,8 @@ export function AssessmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
return {
|
|
47
47
|
'id': json['id'],
|
|
48
48
|
'name': json['name'],
|
|
49
|
+
'ownerFirstName': json['ownerFirstName'] == null ? undefined : json['ownerFirstName'],
|
|
50
|
+
'ownerLastName': json['ownerLastName'] == null ? undefined : json['ownerLastName'],
|
|
49
51
|
'sourceType': json['sourceType'],
|
|
50
52
|
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
51
53
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -59,6 +61,8 @@ export function AssessmentToJSON(value) {
|
|
|
59
61
|
return {
|
|
60
62
|
'id': value['id'],
|
|
61
63
|
'name': value['name'],
|
|
64
|
+
'ownerFirstName': value['ownerFirstName'],
|
|
65
|
+
'ownerLastName': value['ownerLastName'],
|
|
62
66
|
'sourceType': value['sourceType'],
|
|
63
67
|
'sourceId': value['sourceId'],
|
|
64
68
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
@@ -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
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/models/index.js
CHANGED
|
@@ -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
package/src/models/Assessment.ts
CHANGED
|
@@ -38,6 +38,18 @@ export interface Assessment {
|
|
|
38
38
|
* @memberof Assessment
|
|
39
39
|
*/
|
|
40
40
|
name: string;
|
|
41
|
+
/**
|
|
42
|
+
* Owner's first name
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof Assessment
|
|
45
|
+
*/
|
|
46
|
+
ownerFirstName?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Owner's last name
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof Assessment
|
|
51
|
+
*/
|
|
52
|
+
ownerLastName?: string;
|
|
41
53
|
/**
|
|
42
54
|
*
|
|
43
55
|
* @type {string}
|
|
@@ -100,6 +112,8 @@ export function AssessmentFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
100
112
|
|
|
101
113
|
'id': json['id'],
|
|
102
114
|
'name': json['name'],
|
|
115
|
+
'ownerFirstName': json['ownerFirstName'] == null ? undefined : json['ownerFirstName'],
|
|
116
|
+
'ownerLastName': json['ownerLastName'] == null ? undefined : json['ownerLastName'],
|
|
103
117
|
'sourceType': json['sourceType'],
|
|
104
118
|
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
105
119
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -115,6 +129,8 @@ export function AssessmentToJSON(value?: Assessment | null): any {
|
|
|
115
129
|
|
|
116
130
|
'id': value['id'],
|
|
117
131
|
'name': value['name'],
|
|
132
|
+
'ownerFirstName': value['ownerFirstName'],
|
|
133
|
+
'ownerLastName': value['ownerLastName'],
|
|
118
134
|
'sourceType': value['sourceType'],
|
|
119
135
|
'sourceId': value['sourceId'],
|
|
120
136
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
@@ -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
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -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';
|