@migration-planner-ui/api-client 0.0.9 → 0.0.10

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.
Files changed (50) hide show
  1. package/.openapi-generator/FILES +7 -3
  2. package/dist/apis/SourceApi.d.ts +26 -1
  3. package/dist/apis/SourceApi.js +51 -1
  4. package/dist/models/AgentProxy.d.ts +3 -3
  5. package/dist/models/Histogram.d.ts +43 -0
  6. package/dist/models/Histogram.js +48 -0
  7. package/dist/models/Host.d.ts +37 -0
  8. package/dist/models/Host.js +44 -0
  9. package/dist/models/Infra.d.ts +22 -3
  10. package/dist/models/Infra.js +16 -3
  11. package/dist/models/Inventory.js +9 -6
  12. package/dist/models/Label.d.ts +37 -0
  13. package/dist/models/Label.js +44 -0
  14. package/dist/models/MigrationIssue.d.ts +49 -0
  15. package/dist/models/MigrationIssue.js +50 -0
  16. package/dist/models/Network.d.ts +59 -0
  17. package/dist/models/Network.js +57 -0
  18. package/dist/models/OsInfo.d.ts +37 -0
  19. package/dist/models/OsInfo.js +44 -0
  20. package/dist/models/Source.d.ts +7 -0
  21. package/dist/models/Source.js +3 -0
  22. package/dist/models/SourceCreate.d.ts +2 -2
  23. package/dist/models/UploadRvtoolsFile200Response.d.ts +31 -0
  24. package/dist/models/UploadRvtoolsFile200Response.js +38 -0
  25. package/dist/models/VMResourceBreakdown.d.ts +3 -3
  26. package/dist/models/VMResourceBreakdown.js +3 -3
  27. package/dist/models/VMs.d.ts +15 -5
  28. package/dist/models/VMs.js +18 -13
  29. package/dist/models/index.d.ts +10 -6
  30. package/dist/models/index.js +10 -6
  31. package/package.json +1 -1
  32. package/src/apis/SourceApi.ts +84 -0
  33. package/src/models/AgentProxy.ts +3 -3
  34. package/src/models/Histogram.ts +79 -0
  35. package/src/models/Host.ts +70 -0
  36. package/src/models/Infra.ts +42 -9
  37. package/src/models/Inventory.ts +6 -6
  38. package/src/models/Label.ts +70 -0
  39. package/src/models/MigrationIssue.ts +87 -0
  40. package/src/models/Network.ts +99 -0
  41. package/src/models/OsInfo.ts +70 -0
  42. package/src/models/Source.ts +14 -0
  43. package/src/models/SourceCreate.ts +2 -2
  44. package/src/models/UploadRvtoolsFile200Response.ts +60 -0
  45. package/src/models/VMResourceBreakdown.ts +9 -9
  46. package/src/models/VMs.ts +36 -21
  47. package/src/models/index.ts +10 -6
  48. package/dist/apis/UiEventsApi.d.ts +0 -49
  49. package/dist/apis/UiEventsApi.js +0 -59
  50. package/src/apis/UiEventsApi.ts +0 -96
@@ -24,19 +24,19 @@ export interface AgentProxy {
24
24
  * @type {string}
25
25
  * @memberof AgentProxy
26
26
  */
27
- httpUrl?: string;
27
+ httpUrl?: string | null;
28
28
  /**
29
29
  *
30
30
  * @type {string}
31
31
  * @memberof AgentProxy
32
32
  */
33
- httpsUrl?: string;
33
+ httpsUrl?: string | null;
34
34
  /**
35
35
  *
36
36
  * @type {string}
37
37
  * @memberof AgentProxy
38
38
  */
39
- noProxy?: string;
39
+ noProxy?: string | null;
40
40
  }
41
41
 
42
42
  /**
@@ -0,0 +1,79 @@
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 Histogram
20
+ */
21
+ export interface Histogram {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof Histogram
26
+ */
27
+ minValue: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof Histogram
32
+ */
33
+ step: number;
34
+ /**
35
+ *
36
+ * @type {Array<number>}
37
+ * @memberof Histogram
38
+ */
39
+ data: Array<number>;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the Histogram interface.
44
+ */
45
+ export function instanceOfHistogram(value: object): value is Histogram {
46
+ if (!('minValue' in value) || value['minValue'] === undefined) return false;
47
+ if (!('step' in value) || value['step'] === undefined) return false;
48
+ if (!('data' in value) || value['data'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function HistogramFromJSON(json: any): Histogram {
53
+ return HistogramFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function HistogramFromJSONTyped(json: any, ignoreDiscriminator: boolean): Histogram {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'minValue': json['minValue'],
63
+ 'step': json['step'],
64
+ 'data': json['data'],
65
+ };
66
+ }
67
+
68
+ export function HistogramToJSON(value?: Histogram | null): any {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+
74
+ 'minValue': value['minValue'],
75
+ 'step': value['step'],
76
+ 'data': value['data'],
77
+ };
78
+ }
79
+
@@ -0,0 +1,70 @@
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 Host
20
+ */
21
+ export interface Host {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Host
26
+ */
27
+ vendor: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Host
32
+ */
33
+ model: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the Host interface.
38
+ */
39
+ export function instanceOfHost(value: object): value is Host {
40
+ if (!('vendor' in value) || value['vendor'] === undefined) return false;
41
+ if (!('model' in value) || value['model'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function HostFromJSON(json: any): Host {
46
+ return HostFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function HostFromJSONTyped(json: any, ignoreDiscriminator: boolean): Host {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'vendor': json['vendor'],
56
+ 'model': json['model'],
57
+ };
58
+ }
59
+
60
+ export function HostToJSON(value?: Host | null): any {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+
66
+ 'vendor': value['vendor'],
67
+ 'model': value['model'],
68
+ };
69
+ }
70
+
@@ -19,12 +19,18 @@ import {
19
19
  DatastoreFromJSONTyped,
20
20
  DatastoreToJSON,
21
21
  } from './Datastore';
22
- import type { InfraNetworksInner } from './InfraNetworksInner';
22
+ import type { Network } from './Network';
23
23
  import {
24
- InfraNetworksInnerFromJSON,
25
- InfraNetworksInnerFromJSONTyped,
26
- InfraNetworksInnerToJSON,
27
- } from './InfraNetworksInner';
24
+ NetworkFromJSON,
25
+ NetworkFromJSONTyped,
26
+ NetworkToJSON,
27
+ } from './Network';
28
+ import type { Host } from './Host';
29
+ import {
30
+ HostFromJSON,
31
+ HostFromJSONTyped,
32
+ HostToJSON,
33
+ } from './Host';
28
34
 
29
35
  /**
30
36
  *
@@ -38,12 +44,30 @@ export interface Infra {
38
44
  * @memberof Infra
39
45
  */
40
46
  totalHosts: number;
47
+ /**
48
+ *
49
+ * @type {number}
50
+ * @memberof Infra
51
+ */
52
+ totalDatacenters: number;
41
53
  /**
42
54
  *
43
55
  * @type {number}
44
56
  * @memberof Infra
45
57
  */
46
58
  totalClusters: number;
59
+ /**
60
+ *
61
+ * @type {Array<number>}
62
+ * @memberof Infra
63
+ */
64
+ clustersPerDatacenter: Array<number>;
65
+ /**
66
+ *
67
+ * @type {Array<Host>}
68
+ * @memberof Infra
69
+ */
70
+ hosts: Array<Host>;
47
71
  /**
48
72
  *
49
73
  * @type {Array<number>}
@@ -58,10 +82,10 @@ export interface Infra {
58
82
  hostPowerStates: { [key: string]: number; };
59
83
  /**
60
84
  *
61
- * @type {Array<InfraNetworksInner>}
85
+ * @type {Array<Network>}
62
86
  * @memberof Infra
63
87
  */
64
- networks: Array<InfraNetworksInner>;
88
+ networks: Array<Network>;
65
89
  /**
66
90
  *
67
91
  * @type {Array<Datastore>}
@@ -75,7 +99,10 @@ export interface Infra {
75
99
  */
76
100
  export function instanceOfInfra(value: object): value is Infra {
77
101
  if (!('totalHosts' in value) || value['totalHosts'] === undefined) return false;
102
+ if (!('totalDatacenters' in value) || value['totalDatacenters'] === undefined) return false;
78
103
  if (!('totalClusters' in value) || value['totalClusters'] === undefined) return false;
104
+ if (!('clustersPerDatacenter' in value) || value['clustersPerDatacenter'] === undefined) return false;
105
+ if (!('hosts' in value) || value['hosts'] === undefined) return false;
79
106
  if (!('hostsPerCluster' in value) || value['hostsPerCluster'] === undefined) return false;
80
107
  if (!('hostPowerStates' in value) || value['hostPowerStates'] === undefined) return false;
81
108
  if (!('networks' in value) || value['networks'] === undefined) return false;
@@ -94,10 +121,13 @@ export function InfraFromJSONTyped(json: any, ignoreDiscriminator: boolean): Inf
94
121
  return {
95
122
 
96
123
  'totalHosts': json['totalHosts'],
124
+ 'totalDatacenters': json['totalDatacenters'],
97
125
  'totalClusters': json['totalClusters'],
126
+ 'clustersPerDatacenter': json['clustersPerDatacenter'],
127
+ 'hosts': ((json['hosts'] as Array<any>).map(HostFromJSON)),
98
128
  'hostsPerCluster': json['hostsPerCluster'],
99
129
  'hostPowerStates': json['hostPowerStates'],
100
- 'networks': ((json['networks'] as Array<any>).map(InfraNetworksInnerFromJSON)),
130
+ 'networks': ((json['networks'] as Array<any>).map(NetworkFromJSON)),
101
131
  'datastores': ((json['datastores'] as Array<any>).map(DatastoreFromJSON)),
102
132
  };
103
133
  }
@@ -109,10 +139,13 @@ export function InfraToJSON(value?: Infra | null): any {
109
139
  return {
110
140
 
111
141
  'totalHosts': value['totalHosts'],
142
+ 'totalDatacenters': value['totalDatacenters'],
112
143
  'totalClusters': value['totalClusters'],
144
+ 'clustersPerDatacenter': value['clustersPerDatacenter'],
145
+ 'hosts': ((value['hosts'] as Array<any>).map(HostToJSON)),
113
146
  'hostsPerCluster': value['hostsPerCluster'],
114
147
  'hostPowerStates': value['hostPowerStates'],
115
- 'networks': ((value['networks'] as Array<any>).map(InfraNetworksInnerToJSON)),
148
+ 'networks': ((value['networks'] as Array<any>).map(NetworkToJSON)),
116
149
  'datastores': ((value['datastores'] as Array<any>).map(DatastoreToJSON)),
117
150
  };
118
151
  }
@@ -78,9 +78,9 @@ export function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
78
78
  }
79
79
  return {
80
80
 
81
- 'vcenter': json['vcenter'],
82
- 'vms': json['vms'],
83
- 'infra': json['infra'],
81
+ 'vcenter': VCenterFromJSON(json['vcenter']),
82
+ 'vms': VMsFromJSON(json['vms']),
83
+ 'infra': InfraFromJSON(json['infra']),
84
84
  };
85
85
  }
86
86
 
@@ -90,9 +90,9 @@ export function InventoryToJSON(value?: Inventory | null): any {
90
90
  }
91
91
  return {
92
92
 
93
- 'vcenter': value['vcenter'],
94
- 'vms': value['vms'],
95
- 'infra': value['infra'],
93
+ 'vcenter': VCenterToJSON(value['vcenter']),
94
+ 'vms': VMsToJSON(value['vms']),
95
+ 'infra': InfraToJSON(value['infra']),
96
96
  };
97
97
  }
98
98
 
@@ -0,0 +1,70 @@
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 Label
20
+ */
21
+ export interface Label {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Label
26
+ */
27
+ key: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Label
32
+ */
33
+ value: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the Label interface.
38
+ */
39
+ export function instanceOfLabel(value: object): value is Label {
40
+ if (!('key' in value) || value['key'] === undefined) return false;
41
+ if (!('value' in value) || value['value'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function LabelFromJSON(json: any): Label {
46
+ return LabelFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function LabelFromJSONTyped(json: any, ignoreDiscriminator: boolean): Label {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'key': json['key'],
56
+ 'value': json['value'],
57
+ };
58
+ }
59
+
60
+ export function LabelToJSON(value?: Label | null): any {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+
66
+ 'key': value['key'],
67
+ 'value': value['value'],
68
+ };
69
+ }
70
+
@@ -0,0 +1,87 @@
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 MigrationIssue
20
+ */
21
+ export interface MigrationIssue {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof MigrationIssue
26
+ */
27
+ id?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof MigrationIssue
32
+ */
33
+ label: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof MigrationIssue
38
+ */
39
+ assessment: string;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof MigrationIssue
44
+ */
45
+ count: number;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the MigrationIssue interface.
50
+ */
51
+ export function instanceOfMigrationIssue(value: object): value is MigrationIssue {
52
+ if (!('label' in value) || value['label'] === undefined) return false;
53
+ if (!('assessment' in value) || value['assessment'] === undefined) return false;
54
+ if (!('count' in value) || value['count'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function MigrationIssueFromJSON(json: any): MigrationIssue {
59
+ return MigrationIssueFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function MigrationIssueFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationIssue {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'id': json['id'] == null ? undefined : json['id'],
69
+ 'label': json['label'],
70
+ 'assessment': json['assessment'],
71
+ 'count': json['count'],
72
+ };
73
+ }
74
+
75
+ export function MigrationIssueToJSON(value?: MigrationIssue | null): any {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+ return {
80
+
81
+ 'id': value['id'],
82
+ 'label': value['label'],
83
+ 'assessment': value['assessment'],
84
+ 'count': value['count'],
85
+ };
86
+ }
87
+
@@ -0,0 +1,99 @@
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 Network
20
+ */
21
+ export interface Network {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Network
26
+ */
27
+ type: NetworkTypeEnum;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Network
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof Network
38
+ */
39
+ vlanId?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof Network
44
+ */
45
+ dvswitch?: string;
46
+ }
47
+
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const NetworkTypeEnum = {
53
+ Standard: 'standard',
54
+ Distributed: 'distributed',
55
+ Dvswitch: 'dvswitch',
56
+ Unsupported: 'unsupported'
57
+ } as const;
58
+ export type NetworkTypeEnum = typeof NetworkTypeEnum[keyof typeof NetworkTypeEnum];
59
+
60
+
61
+ /**
62
+ * Check if a given object implements the Network interface.
63
+ */
64
+ export function instanceOfNetwork(value: object): value is Network {
65
+ if (!('type' in value) || value['type'] === undefined) return false;
66
+ if (!('name' in value) || value['name'] === undefined) return false;
67
+ return true;
68
+ }
69
+
70
+ export function NetworkFromJSON(json: any): Network {
71
+ return NetworkFromJSONTyped(json, false);
72
+ }
73
+
74
+ export function NetworkFromJSONTyped(json: any, ignoreDiscriminator: boolean): Network {
75
+ if (json == null) {
76
+ return json;
77
+ }
78
+ return {
79
+
80
+ 'type': json['type'],
81
+ 'name': json['name'],
82
+ 'vlanId': json['vlanId'] == null ? undefined : json['vlanId'],
83
+ 'dvswitch': json['dvswitch'] == null ? undefined : json['dvswitch'],
84
+ };
85
+ }
86
+
87
+ export function NetworkToJSON(value?: Network | null): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+ return {
92
+
93
+ 'type': value['type'],
94
+ 'name': value['name'],
95
+ 'vlanId': value['vlanId'],
96
+ 'dvswitch': value['dvswitch'],
97
+ };
98
+ }
99
+
@@ -0,0 +1,70 @@
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 OsInfo
20
+ */
21
+ export interface OsInfo {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof OsInfo
26
+ */
27
+ count: number;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof OsInfo
32
+ */
33
+ supported: boolean;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the OsInfo interface.
38
+ */
39
+ export function instanceOfOsInfo(value: object): value is OsInfo {
40
+ if (!('count' in value) || value['count'] === undefined) return false;
41
+ if (!('supported' in value) || value['supported'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function OsInfoFromJSON(json: any): OsInfo {
46
+ return OsInfoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function OsInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsInfo {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'count': json['count'],
56
+ 'supported': json['supported'],
57
+ };
58
+ }
59
+
60
+ export function OsInfoToJSON(value?: OsInfo | null): any {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+
66
+ 'count': value['count'],
67
+ 'supported': value['supported'],
68
+ };
69
+ }
70
+
@@ -19,6 +19,12 @@ import {
19
19
  AgentFromJSONTyped,
20
20
  AgentToJSON,
21
21
  } from './Agent';
22
+ import type { Label } from './Label';
23
+ import {
24
+ LabelFromJSON,
25
+ LabelFromJSONTyped,
26
+ LabelToJSON,
27
+ } from './Label';
22
28
  import type { Inventory } from './Inventory';
23
29
  import {
24
30
  InventoryFromJSON,
@@ -74,6 +80,12 @@ export interface Source {
74
80
  * @memberof Source
75
81
  */
76
82
  agent?: Agent;
83
+ /**
84
+ *
85
+ * @type {Array<Label>}
86
+ * @memberof Source
87
+ */
88
+ labels?: Array<Label>;
77
89
  }
78
90
 
79
91
  /**
@@ -105,6 +117,7 @@ export function SourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): So
105
117
  'updatedAt': (new Date(json['updatedAt'])),
106
118
  'onPremises': json['onPremises'],
107
119
  'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
120
+ 'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(LabelFromJSON)),
108
121
  };
109
122
  }
110
123
 
@@ -121,6 +134,7 @@ export function SourceToJSON(value?: Source | null): any {
121
134
  'updatedAt': ((value['updatedAt']).toISOString()),
122
135
  'onPremises': value['onPremises'],
123
136
  'agent': AgentToJSON(value['agent']),
137
+ 'labels': value['labels'] == null ? undefined : ((value['labels'] as Array<any>).map(LabelToJSON)),
124
138
  };
125
139
  }
126
140
 
@@ -37,7 +37,7 @@ export interface SourceCreate {
37
37
  * @type {string}
38
38
  * @memberof SourceCreate
39
39
  */
40
- sshPublicKey?: string;
40
+ sshPublicKey?: string | null;
41
41
  /**
42
42
  *
43
43
  * @type {AgentProxy}
@@ -49,7 +49,7 @@ export interface SourceCreate {
49
49
  * @type {string}
50
50
  * @memberof SourceCreate
51
51
  */
52
- certificateChain?: string;
52
+ certificateChain?: string | null;
53
53
  }
54
54
 
55
55
  /**