@migration-planner-ui/api-client 0.0.31 → 0.0.33

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 (212) hide show
  1. package/README.md +145 -28
  2. package/dist/apis/AssessmentApi.d.ts +5 -4
  3. package/dist/apis/AssessmentApi.d.ts.map +1 -0
  4. package/dist/apis/AssessmentApi.js +17 -9
  5. package/dist/apis/HealthApi.d.ts +4 -3
  6. package/dist/apis/HealthApi.d.ts.map +1 -0
  7. package/dist/apis/HealthApi.js +5 -4
  8. package/dist/apis/ImageApi.d.ts +5 -4
  9. package/dist/apis/ImageApi.d.ts.map +1 -0
  10. package/dist/apis/ImageApi.js +10 -6
  11. package/dist/apis/InfoApi.d.ts +5 -4
  12. package/dist/apis/InfoApi.d.ts.map +1 -0
  13. package/dist/apis/InfoApi.js +6 -5
  14. package/dist/apis/JobApi.d.ts +5 -4
  15. package/dist/apis/JobApi.d.ts.map +1 -0
  16. package/dist/apis/JobApi.js +12 -7
  17. package/dist/apis/SourceApi.d.ts +5 -4
  18. package/dist/apis/SourceApi.d.ts.map +1 -0
  19. package/dist/apis/SourceApi.js +22 -11
  20. package/dist/apis/index.d.ts +7 -7
  21. package/dist/apis/index.d.ts.map +1 -0
  22. package/dist/apis/index.js +6 -7
  23. package/dist/index.d.ts +4 -3
  24. package/dist/index.d.ts.map +1 -0
  25. package/dist/index.js +3 -3
  26. package/dist/models/Agent.d.ts +5 -3
  27. package/dist/models/Agent.d.ts.map +1 -0
  28. package/dist/models/Agent.js +8 -5
  29. package/dist/models/AgentProxy.d.ts +5 -3
  30. package/dist/models/AgentProxy.d.ts.map +1 -0
  31. package/dist/models/AgentProxy.js +6 -3
  32. package/dist/models/Assessment.d.ts +7 -5
  33. package/dist/models/Assessment.d.ts.map +1 -0
  34. package/dist/models/Assessment.js +10 -7
  35. package/dist/models/AssessmentForm.d.ts +6 -4
  36. package/dist/models/AssessmentForm.d.ts.map +1 -0
  37. package/dist/models/AssessmentForm.js +7 -4
  38. package/dist/models/AssessmentUpdate.d.ts +5 -3
  39. package/dist/models/AssessmentUpdate.d.ts.map +1 -0
  40. package/dist/models/AssessmentUpdate.js +6 -3
  41. package/dist/models/Datastore.d.ts +5 -3
  42. package/dist/models/Datastore.d.ts.map +1 -0
  43. package/dist/models/Datastore.js +6 -3
  44. package/dist/models/DiskSizeTierSummary.d.ts +5 -3
  45. package/dist/models/DiskSizeTierSummary.d.ts.map +1 -0
  46. package/dist/models/DiskSizeTierSummary.js +6 -3
  47. package/dist/models/DiskTypeSummary.d.ts +5 -3
  48. package/dist/models/DiskTypeSummary.d.ts.map +1 -0
  49. package/dist/models/DiskTypeSummary.js +6 -3
  50. package/dist/models/Histogram.d.ts +5 -3
  51. package/dist/models/Histogram.d.ts.map +1 -0
  52. package/dist/models/Histogram.js +6 -3
  53. package/dist/models/Host.d.ts +5 -3
  54. package/dist/models/Host.d.ts.map +1 -0
  55. package/dist/models/Host.js +6 -3
  56. package/dist/models/Info.d.ts +5 -3
  57. package/dist/models/Info.d.ts.map +1 -0
  58. package/dist/models/Info.js +6 -3
  59. package/dist/models/Infra.d.ts +11 -9
  60. package/dist/models/Infra.d.ts.map +1 -0
  61. package/dist/models/Infra.js +13 -10
  62. package/dist/models/Inventory.d.ts +7 -5
  63. package/dist/models/Inventory.d.ts.map +1 -0
  64. package/dist/models/Inventory.js +10 -7
  65. package/dist/models/InventoryData.d.ts +8 -6
  66. package/dist/models/InventoryData.d.ts.map +1 -0
  67. package/dist/models/InventoryData.js +9 -6
  68. package/dist/models/Ipv4Config.d.ts +5 -3
  69. package/dist/models/Ipv4Config.d.ts.map +1 -0
  70. package/dist/models/Ipv4Config.js +6 -3
  71. package/dist/models/Job.d.ts +6 -4
  72. package/dist/models/Job.d.ts.map +1 -0
  73. package/dist/models/Job.js +7 -4
  74. package/dist/models/JobStatus.d.ts +4 -2
  75. package/dist/models/JobStatus.d.ts.map +1 -0
  76. package/dist/models/JobStatus.js +5 -2
  77. package/dist/models/Label.d.ts +5 -3
  78. package/dist/models/Label.d.ts.map +1 -0
  79. package/dist/models/Label.js +6 -3
  80. package/dist/models/MigrationIssue.d.ts +5 -3
  81. package/dist/models/MigrationIssue.d.ts.map +1 -0
  82. package/dist/models/MigrationIssue.js +6 -3
  83. package/dist/models/ModelError.d.ts +5 -3
  84. package/dist/models/ModelError.d.ts.map +1 -0
  85. package/dist/models/ModelError.js +6 -3
  86. package/dist/models/Network.d.ts +5 -3
  87. package/dist/models/Network.d.ts.map +1 -0
  88. package/dist/models/Network.js +6 -3
  89. package/dist/models/OsInfo.d.ts +5 -3
  90. package/dist/models/OsInfo.d.ts.map +1 -0
  91. package/dist/models/OsInfo.js +6 -3
  92. package/dist/models/PresignedUrl.d.ts +5 -3
  93. package/dist/models/PresignedUrl.d.ts.map +1 -0
  94. package/dist/models/PresignedUrl.js +7 -4
  95. package/dist/models/Snapshot.d.ts +6 -4
  96. package/dist/models/Snapshot.d.ts.map +1 -0
  97. package/dist/models/Snapshot.js +8 -5
  98. package/dist/models/Source.d.ts +9 -7
  99. package/dist/models/Source.d.ts.map +1 -0
  100. package/dist/models/Source.js +12 -9
  101. package/dist/models/SourceCreate.d.ts +8 -6
  102. package/dist/models/SourceCreate.d.ts.map +1 -0
  103. package/dist/models/SourceCreate.js +9 -6
  104. package/dist/models/SourceInfra.d.ts +7 -5
  105. package/dist/models/SourceInfra.d.ts.map +1 -0
  106. package/dist/models/SourceInfra.js +8 -5
  107. package/dist/models/SourceUpdate.d.ts +8 -6
  108. package/dist/models/SourceUpdate.d.ts.map +1 -0
  109. package/dist/models/SourceUpdate.js +9 -6
  110. package/dist/models/Status.d.ts +5 -3
  111. package/dist/models/Status.d.ts.map +1 -0
  112. package/dist/models/Status.js +6 -3
  113. package/dist/models/UpdateInventory.d.ts +6 -4
  114. package/dist/models/UpdateInventory.d.ts.map +1 -0
  115. package/dist/models/UpdateInventory.js +7 -4
  116. package/dist/models/VCenter.d.ts +5 -3
  117. package/dist/models/VCenter.d.ts.map +1 -0
  118. package/dist/models/VCenter.js +6 -3
  119. package/dist/models/VMResourceBreakdown.d.ts +6 -4
  120. package/dist/models/VMResourceBreakdown.d.ts.map +1 -0
  121. package/dist/models/VMResourceBreakdown.js +7 -4
  122. package/dist/models/VMs.d.ts +13 -11
  123. package/dist/models/VMs.d.ts.map +1 -0
  124. package/dist/models/VMs.js +16 -13
  125. package/dist/models/VmNetwork.d.ts +6 -4
  126. package/dist/models/VmNetwork.d.ts.map +1 -0
  127. package/dist/models/VmNetwork.js +7 -4
  128. package/dist/models/index.d.ts +35 -34
  129. package/dist/models/index.d.ts.map +1 -0
  130. package/dist/models/index.js +34 -34
  131. package/dist/runtime.d.ts +7 -3
  132. package/dist/runtime.d.ts.map +1 -0
  133. package/dist/runtime.js +11 -3
  134. package/package.json +19 -9
  135. package/.openapi-generator/FILES +0 -44
  136. package/.openapi-generator/VERSION +0 -1
  137. package/.openapi-generator-ignore +0 -30
  138. package/dist/apis/AgentApi.d.ts +0 -69
  139. package/dist/apis/AgentApi.js +0 -82
  140. package/dist/models/Event.d.ts +0 -38
  141. package/dist/models/Event.js +0 -45
  142. package/dist/models/EventData.d.ts +0 -37
  143. package/dist/models/EventData.js +0 -44
  144. package/dist/models/InfraDatastoresInner.d.ts +0 -43
  145. package/dist/models/InfraDatastoresInner.js +0 -48
  146. package/dist/models/InfraNetworksInner.d.ts +0 -59
  147. package/dist/models/InfraNetworksInner.js +0 -57
  148. package/dist/models/MigrationIssuesInner.d.ts +0 -43
  149. package/dist/models/MigrationIssuesInner.js +0 -48
  150. package/dist/models/SourceAgentItem.d.ts +0 -37
  151. package/dist/models/SourceAgentItem.js +0 -44
  152. package/dist/models/SourceUpdateOnPrem.d.ts +0 -38
  153. package/dist/models/SourceUpdateOnPrem.js +0 -45
  154. package/dist/models/UploadRvtoolsFile200Response.d.ts +0 -31
  155. package/dist/models/UploadRvtoolsFile200Response.js +0 -38
  156. package/dist/models/VMResourceBreakdownHistogram.d.ts +0 -43
  157. package/dist/models/VMResourceBreakdownHistogram.js +0 -48
  158. package/src/apis/AgentApi.ts +0 -131
  159. package/src/apis/AssessmentApi.ts +0 -303
  160. package/src/apis/HealthApi.ts +0 -70
  161. package/src/apis/ImageApi.ts +0 -140
  162. package/src/apis/InfoApi.ts +0 -78
  163. package/src/apis/JobApi.ts +0 -226
  164. package/src/apis/SourceApi.ts +0 -411
  165. package/src/apis/index.ts +0 -50
  166. package/src/index.ts +0 -5
  167. package/src/models/Agent.ts +0 -130
  168. package/src/models/AgentProxy.ts +0 -76
  169. package/src/models/Assessment.ts +0 -140
  170. package/src/models/AssessmentForm.ts +0 -96
  171. package/src/models/AssessmentUpdate.ts +0 -60
  172. package/src/models/Datastore.ts +0 -132
  173. package/src/models/DiskSizeTierSummary.ts +0 -70
  174. package/src/models/DiskTypeSummary.ts +0 -70
  175. package/src/models/Event.ts +0 -77
  176. package/src/models/EventData.ts +0 -70
  177. package/src/models/Histogram.ts +0 -79
  178. package/src/models/Host.ts +0 -102
  179. package/src/models/Info.ts +0 -70
  180. package/src/models/Infra.ts +0 -174
  181. package/src/models/InfraDatastoresInner.ts +0 -79
  182. package/src/models/InfraNetworksInner.ts +0 -99
  183. package/src/models/Inventory.ts +0 -83
  184. package/src/models/InventoryData.ts +0 -97
  185. package/src/models/Ipv4Config.ts +0 -88
  186. package/src/models/Job.ts +0 -95
  187. package/src/models/JobStatus.ts +0 -60
  188. package/src/models/Label.ts +0 -70
  189. package/src/models/MigrationIssue.ts +0 -87
  190. package/src/models/MigrationIssuesInner.ts +0 -79
  191. package/src/models/ModelError.ts +0 -69
  192. package/src/models/Network.ts +0 -107
  193. package/src/models/OsInfo.ts +0 -78
  194. package/src/models/PresignedUrl.ts +0 -69
  195. package/src/models/Snapshot.ts +0 -77
  196. package/src/models/Source.ts +0 -154
  197. package/src/models/SourceAgentItem.ts +0 -70
  198. package/src/models/SourceCreate.ts +0 -120
  199. package/src/models/SourceInfra.ts +0 -89
  200. package/src/models/SourceUpdate.ts +0 -119
  201. package/src/models/SourceUpdateOnPrem.ts +0 -77
  202. package/src/models/Status.ts +0 -76
  203. package/src/models/UpdateInventory.ts +0 -77
  204. package/src/models/UploadRvtoolsFile200Response.ts +0 -60
  205. package/src/models/VCenter.ts +0 -61
  206. package/src/models/VMResourceBreakdown.ts +0 -104
  207. package/src/models/VMResourceBreakdownHistogram.ts +0 -79
  208. package/src/models/VMs.ts +0 -229
  209. package/src/models/VmNetwork.ts +0 -67
  210. package/src/models/index.ts +0 -36
  211. package/src/runtime.ts +0 -426
  212. package/tsconfig.json +0 -14
@@ -1,154 +0,0 @@
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 { SourceInfra } from './SourceInfra';
17
- import {
18
- SourceInfraFromJSON,
19
- SourceInfraFromJSONTyped,
20
- SourceInfraToJSON,
21
- } from './SourceInfra';
22
- import type { Agent } from './Agent';
23
- import {
24
- AgentFromJSON,
25
- AgentFromJSONTyped,
26
- AgentToJSON,
27
- } from './Agent';
28
- import type { Label } from './Label';
29
- import {
30
- LabelFromJSON,
31
- LabelFromJSONTyped,
32
- LabelToJSON,
33
- } from './Label';
34
- import type { Inventory } from './Inventory';
35
- import {
36
- InventoryFromJSON,
37
- InventoryFromJSONTyped,
38
- InventoryToJSON,
39
- } from './Inventory';
40
-
41
- /**
42
- *
43
- * @export
44
- * @interface Source
45
- */
46
- export interface Source {
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof Source
51
- */
52
- id: string;
53
- /**
54
- *
55
- * @type {string}
56
- * @memberof Source
57
- */
58
- name: string;
59
- /**
60
- *
61
- * @type {Inventory}
62
- * @memberof Source
63
- */
64
- inventory?: Inventory;
65
- /**
66
- *
67
- * @type {Date}
68
- * @memberof Source
69
- */
70
- createdAt: Date;
71
- /**
72
- *
73
- * @type {Date}
74
- * @memberof Source
75
- */
76
- updatedAt: Date;
77
- /**
78
- *
79
- * @type {boolean}
80
- * @memberof Source
81
- */
82
- onPremises: boolean;
83
- /**
84
- *
85
- * @type {Agent}
86
- * @memberof Source
87
- */
88
- agent?: Agent;
89
- /**
90
- *
91
- * @type {Array<Label>}
92
- * @memberof Source
93
- */
94
- labels?: Array<Label>;
95
- /**
96
- *
97
- * @type {SourceInfra}
98
- * @memberof Source
99
- */
100
- infra?: SourceInfra;
101
- }
102
-
103
- /**
104
- * Check if a given object implements the Source interface.
105
- */
106
- export function instanceOfSource(value: object): value is Source {
107
- if (!('id' in value) || value['id'] === undefined) return false;
108
- if (!('name' in value) || value['name'] === undefined) return false;
109
- if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
110
- if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
111
- if (!('onPremises' in value) || value['onPremises'] === undefined) return false;
112
- return true;
113
- }
114
-
115
- export function SourceFromJSON(json: any): Source {
116
- return SourceFromJSONTyped(json, false);
117
- }
118
-
119
- export function SourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Source {
120
- if (json == null) {
121
- return json;
122
- }
123
- return {
124
-
125
- 'id': json['id'],
126
- 'name': json['name'],
127
- 'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
128
- 'createdAt': (new Date(json['createdAt'])),
129
- 'updatedAt': (new Date(json['updatedAt'])),
130
- 'onPremises': json['onPremises'],
131
- 'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
132
- 'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(LabelFromJSON)),
133
- 'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
134
- };
135
- }
136
-
137
- export function SourceToJSON(value?: Source | null): any {
138
- if (value == null) {
139
- return value;
140
- }
141
- return {
142
-
143
- 'id': value['id'],
144
- 'name': value['name'],
145
- 'inventory': InventoryToJSON(value['inventory']),
146
- 'createdAt': ((value['createdAt']).toISOString()),
147
- 'updatedAt': ((value['updatedAt']).toISOString()),
148
- 'onPremises': value['onPremises'],
149
- 'agent': AgentToJSON(value['agent']),
150
- 'labels': value['labels'] == null ? undefined : ((value['labels'] as Array<any>).map(LabelToJSON)),
151
- 'infra': SourceInfraToJSON(value['infra']),
152
- };
153
- }
154
-
@@ -1,70 +0,0 @@
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 SourceAgentItem
20
- */
21
- export interface SourceAgentItem {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof SourceAgentItem
26
- */
27
- id: string;
28
- /**
29
- *
30
- * @type {boolean}
31
- * @memberof SourceAgentItem
32
- */
33
- associated: boolean;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the SourceAgentItem interface.
38
- */
39
- export function instanceOfSourceAgentItem(value: object): value is SourceAgentItem {
40
- if (!('id' in value) || value['id'] === undefined) return false;
41
- if (!('associated' in value) || value['associated'] === undefined) return false;
42
- return true;
43
- }
44
-
45
- export function SourceAgentItemFromJSON(json: any): SourceAgentItem {
46
- return SourceAgentItemFromJSONTyped(json, false);
47
- }
48
-
49
- export function SourceAgentItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceAgentItem {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'id': json['id'],
56
- 'associated': json['associated'],
57
- };
58
- }
59
-
60
- export function SourceAgentItemToJSON(value?: SourceAgentItem | null): any {
61
- if (value == null) {
62
- return value;
63
- }
64
- return {
65
-
66
- 'id': value['id'],
67
- 'associated': value['associated'],
68
- };
69
- }
70
-
@@ -1,120 +0,0 @@
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 { VmNetwork } from './VmNetwork';
17
- import {
18
- VmNetworkFromJSON,
19
- VmNetworkFromJSONTyped,
20
- VmNetworkToJSON,
21
- } from './VmNetwork';
22
- import type { AgentProxy } from './AgentProxy';
23
- import {
24
- AgentProxyFromJSON,
25
- AgentProxyFromJSONTyped,
26
- AgentProxyToJSON,
27
- } from './AgentProxy';
28
- import type { Label } from './Label';
29
- import {
30
- LabelFromJSON,
31
- LabelFromJSONTyped,
32
- LabelToJSON,
33
- } from './Label';
34
-
35
- /**
36
- *
37
- * @export
38
- * @interface SourceCreate
39
- */
40
- export interface SourceCreate {
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof SourceCreate
45
- */
46
- name: string;
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof SourceCreate
51
- */
52
- sshPublicKey?: string | null;
53
- /**
54
- *
55
- * @type {AgentProxy}
56
- * @memberof SourceCreate
57
- */
58
- proxy?: AgentProxy;
59
- /**
60
- *
61
- * @type {string}
62
- * @memberof SourceCreate
63
- */
64
- certificateChain?: string | null;
65
- /**
66
- *
67
- * @type {VmNetwork}
68
- * @memberof SourceCreate
69
- */
70
- network?: VmNetwork;
71
- /**
72
- *
73
- * @type {Array<Label>}
74
- * @memberof SourceCreate
75
- */
76
- labels?: Array<Label>;
77
- }
78
-
79
- /**
80
- * Check if a given object implements the SourceCreate interface.
81
- */
82
- export function instanceOfSourceCreate(value: object): value is SourceCreate {
83
- if (!('name' in value) || value['name'] === undefined) return false;
84
- return true;
85
- }
86
-
87
- export function SourceCreateFromJSON(json: any): SourceCreate {
88
- return SourceCreateFromJSONTyped(json, false);
89
- }
90
-
91
- export function SourceCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceCreate {
92
- if (json == null) {
93
- return json;
94
- }
95
- return {
96
-
97
- 'name': json['name'],
98
- 'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
99
- 'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
100
- 'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
101
- 'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
102
- 'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(LabelFromJSON)),
103
- };
104
- }
105
-
106
- export function SourceCreateToJSON(value?: SourceCreate | null): any {
107
- if (value == null) {
108
- return value;
109
- }
110
- return {
111
-
112
- 'name': value['name'],
113
- 'sshPublicKey': value['sshPublicKey'],
114
- 'proxy': AgentProxyToJSON(value['proxy']),
115
- 'certificateChain': value['certificateChain'],
116
- 'network': VmNetworkToJSON(value['network']),
117
- 'labels': value['labels'] == null ? undefined : ((value['labels'] as Array<any>).map(LabelToJSON)),
118
- };
119
- }
120
-
@@ -1,89 +0,0 @@
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 { VmNetwork } from './VmNetwork';
17
- import {
18
- VmNetworkFromJSON,
19
- VmNetworkFromJSONTyped,
20
- VmNetworkToJSON,
21
- } from './VmNetwork';
22
- import type { AgentProxy } from './AgentProxy';
23
- import {
24
- AgentProxyFromJSON,
25
- AgentProxyFromJSONTyped,
26
- AgentProxyToJSON,
27
- } from './AgentProxy';
28
-
29
- /**
30
- *
31
- * @export
32
- * @interface SourceInfra
33
- */
34
- export interface SourceInfra {
35
- /**
36
- *
37
- * @type {AgentProxy}
38
- * @memberof SourceInfra
39
- */
40
- proxy?: AgentProxy;
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof SourceInfra
45
- */
46
- sshPublicKey?: string | null;
47
- /**
48
- *
49
- * @type {VmNetwork}
50
- * @memberof SourceInfra
51
- */
52
- vmNetwork?: VmNetwork;
53
- }
54
-
55
- /**
56
- * Check if a given object implements the SourceInfra interface.
57
- */
58
- export function instanceOfSourceInfra(value: object): value is SourceInfra {
59
- return true;
60
- }
61
-
62
- export function SourceInfraFromJSON(json: any): SourceInfra {
63
- return SourceInfraFromJSONTyped(json, false);
64
- }
65
-
66
- export function SourceInfraFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceInfra {
67
- if (json == null) {
68
- return json;
69
- }
70
- return {
71
-
72
- 'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
73
- 'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
74
- 'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
75
- };
76
- }
77
-
78
- export function SourceInfraToJSON(value?: SourceInfra | null): any {
79
- if (value == null) {
80
- return value;
81
- }
82
- return {
83
-
84
- 'proxy': AgentProxyToJSON(value['proxy']),
85
- 'sshPublicKey': value['sshPublicKey'],
86
- 'vmNetwork': VmNetworkToJSON(value['vmNetwork']),
87
- };
88
- }
89
-
@@ -1,119 +0,0 @@
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 { VmNetwork } from './VmNetwork';
17
- import {
18
- VmNetworkFromJSON,
19
- VmNetworkFromJSONTyped,
20
- VmNetworkToJSON,
21
- } from './VmNetwork';
22
- import type { AgentProxy } from './AgentProxy';
23
- import {
24
- AgentProxyFromJSON,
25
- AgentProxyFromJSONTyped,
26
- AgentProxyToJSON,
27
- } from './AgentProxy';
28
- import type { Label } from './Label';
29
- import {
30
- LabelFromJSON,
31
- LabelFromJSONTyped,
32
- LabelToJSON,
33
- } from './Label';
34
-
35
- /**
36
- *
37
- * @export
38
- * @interface SourceUpdate
39
- */
40
- export interface SourceUpdate {
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof SourceUpdate
45
- */
46
- name?: string;
47
- /**
48
- *
49
- * @type {Array<Label>}
50
- * @memberof SourceUpdate
51
- */
52
- labels?: Array<Label>;
53
- /**
54
- *
55
- * @type {string}
56
- * @memberof SourceUpdate
57
- */
58
- sshPublicKey?: string | null;
59
- /**
60
- *
61
- * @type {string}
62
- * @memberof SourceUpdate
63
- */
64
- certificateChain?: string | null;
65
- /**
66
- *
67
- * @type {AgentProxy}
68
- * @memberof SourceUpdate
69
- */
70
- proxy?: AgentProxy;
71
- /**
72
- *
73
- * @type {VmNetwork}
74
- * @memberof SourceUpdate
75
- */
76
- network?: VmNetwork;
77
- }
78
-
79
- /**
80
- * Check if a given object implements the SourceUpdate interface.
81
- */
82
- export function instanceOfSourceUpdate(value: object): value is SourceUpdate {
83
- return true;
84
- }
85
-
86
- export function SourceUpdateFromJSON(json: any): SourceUpdate {
87
- return SourceUpdateFromJSONTyped(json, false);
88
- }
89
-
90
- export function SourceUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceUpdate {
91
- if (json == null) {
92
- return json;
93
- }
94
- return {
95
-
96
- 'name': json['name'] == null ? undefined : json['name'],
97
- 'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(LabelFromJSON)),
98
- 'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
99
- 'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
100
- 'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
101
- 'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
102
- };
103
- }
104
-
105
- export function SourceUpdateToJSON(value?: SourceUpdate | null): any {
106
- if (value == null) {
107
- return value;
108
- }
109
- return {
110
-
111
- 'name': value['name'],
112
- 'labels': value['labels'] == null ? undefined : ((value['labels'] as Array<any>).map(LabelToJSON)),
113
- 'sshPublicKey': value['sshPublicKey'],
114
- 'certificateChain': value['certificateChain'],
115
- 'proxy': AgentProxyToJSON(value['proxy']),
116
- 'network': VmNetworkToJSON(value['network']),
117
- };
118
- }
119
-
@@ -1,77 +0,0 @@
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 { Inventory } from './Inventory';
17
- import {
18
- InventoryFromJSON,
19
- InventoryFromJSONTyped,
20
- InventoryToJSON,
21
- } from './Inventory';
22
-
23
- /**
24
- *
25
- * @export
26
- * @interface SourceUpdateOnPrem
27
- */
28
- export interface SourceUpdateOnPrem {
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof SourceUpdateOnPrem
33
- */
34
- agentId: string;
35
- /**
36
- *
37
- * @type {Inventory}
38
- * @memberof SourceUpdateOnPrem
39
- */
40
- inventory: Inventory;
41
- }
42
-
43
- /**
44
- * Check if a given object implements the SourceUpdateOnPrem interface.
45
- */
46
- export function instanceOfSourceUpdateOnPrem(value: object): value is SourceUpdateOnPrem {
47
- if (!('agentId' in value) || value['agentId'] === undefined) return false;
48
- if (!('inventory' in value) || value['inventory'] === undefined) return false;
49
- return true;
50
- }
51
-
52
- export function SourceUpdateOnPremFromJSON(json: any): SourceUpdateOnPrem {
53
- return SourceUpdateOnPremFromJSONTyped(json, false);
54
- }
55
-
56
- export function SourceUpdateOnPremFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceUpdateOnPrem {
57
- if (json == null) {
58
- return json;
59
- }
60
- return {
61
-
62
- 'agentId': json['agentId'],
63
- 'inventory': InventoryFromJSON(json['inventory']),
64
- };
65
- }
66
-
67
- export function SourceUpdateOnPremToJSON(value?: SourceUpdateOnPrem | null): any {
68
- if (value == null) {
69
- return value;
70
- }
71
- return {
72
-
73
- 'agentId': value['agentId'],
74
- 'inventory': InventoryToJSON(value['inventory']),
75
- };
76
- }
77
-
@@ -1,76 +0,0 @@
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
- * Status is a return value for calls that don't return other objects.
18
- * @export
19
- * @interface Status
20
- */
21
- export interface Status {
22
- /**
23
- * A human-readable description of the status of this operation.
24
- * @type {string}
25
- * @memberof Status
26
- */
27
- message?: string;
28
- /**
29
- * A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.
30
- * @type {string}
31
- * @memberof Status
32
- */
33
- reason?: string;
34
- /**
35
- * Status of the operation. One of: "Success" or "Failure". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
36
- * @type {string}
37
- * @memberof Status
38
- */
39
- status?: string;
40
- }
41
-
42
- /**
43
- * Check if a given object implements the Status interface.
44
- */
45
- export function instanceOfStatus(value: object): value is Status {
46
- return true;
47
- }
48
-
49
- export function StatusFromJSON(json: any): Status {
50
- return StatusFromJSONTyped(json, false);
51
- }
52
-
53
- export function StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): Status {
54
- if (json == null) {
55
- return json;
56
- }
57
- return {
58
-
59
- 'message': json['message'] == null ? undefined : json['message'],
60
- 'reason': json['reason'] == null ? undefined : json['reason'],
61
- 'status': json['status'] == null ? undefined : json['status'],
62
- };
63
- }
64
-
65
- export function StatusToJSON(value?: Status | null): any {
66
- if (value == null) {
67
- return value;
68
- }
69
- return {
70
-
71
- 'message': value['message'],
72
- 'reason': value['reason'],
73
- 'status': value['status'],
74
- };
75
- }
76
-