@migration-planner-ui/api-client 0.0.1

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 (93) hide show
  1. package/.openapi-generator/FILES +27 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +30 -0
  4. package/README.md +46 -0
  5. package/dist/apis/AgentApi.d.ts +69 -0
  6. package/dist/apis/AgentApi.js +82 -0
  7. package/dist/apis/HealthApi.d.ts +44 -0
  8. package/dist/apis/HealthApi.js +52 -0
  9. package/dist/apis/ImageApi.d.ts +95 -0
  10. package/dist/apis/ImageApi.js +112 -0
  11. package/dist/apis/SourceApi.d.ts +162 -0
  12. package/dist/apis/SourceApi.js +201 -0
  13. package/dist/apis/UiEventsApi.d.ts +49 -0
  14. package/dist/apis/UiEventsApi.js +59 -0
  15. package/dist/apis/index.d.ts +4 -0
  16. package/dist/apis/index.js +6 -0
  17. package/dist/index.d.ts +3 -0
  18. package/dist/index.js +5 -0
  19. package/dist/models/Agent.d.ts +79 -0
  20. package/dist/models/Agent.js +75 -0
  21. package/dist/models/AgentProxy.d.ts +43 -0
  22. package/dist/models/AgentProxy.js +42 -0
  23. package/dist/models/Event.d.ts +38 -0
  24. package/dist/models/Event.js +45 -0
  25. package/dist/models/EventData.d.ts +37 -0
  26. package/dist/models/EventData.js +44 -0
  27. package/dist/models/Infra.d.ts +65 -0
  28. package/dist/models/Infra.js +62 -0
  29. package/dist/models/InfraDatastoresInner.d.ts +43 -0
  30. package/dist/models/InfraDatastoresInner.js +48 -0
  31. package/dist/models/InfraNetworksInner.d.ts +59 -0
  32. package/dist/models/InfraNetworksInner.js +57 -0
  33. package/dist/models/Inventory.d.ts +46 -0
  34. package/dist/models/Inventory.js +48 -0
  35. package/dist/models/MigrationIssuesInner.d.ts +43 -0
  36. package/dist/models/MigrationIssuesInner.js +48 -0
  37. package/dist/models/ModelError.d.ts +31 -0
  38. package/dist/models/ModelError.js +40 -0
  39. package/dist/models/PresignedUrl.d.ts +37 -0
  40. package/dist/models/PresignedUrl.js +42 -0
  41. package/dist/models/Source.d.ts +69 -0
  42. package/dist/models/Source.js +62 -0
  43. package/dist/models/SourceAgentItem.d.ts +37 -0
  44. package/dist/models/SourceAgentItem.js +44 -0
  45. package/dist/models/SourceCreate.d.ts +50 -0
  46. package/dist/models/SourceCreate.js +47 -0
  47. package/dist/models/SourceUpdateOnPrem.d.ts +38 -0
  48. package/dist/models/SourceUpdateOnPrem.js +45 -0
  49. package/dist/models/Status.d.ts +43 -0
  50. package/dist/models/Status.js +42 -0
  51. package/dist/models/VCenter.d.ts +31 -0
  52. package/dist/models/VCenter.js +40 -0
  53. package/dist/models/VMResourceBreakdown.d.ts +56 -0
  54. package/dist/models/VMResourceBreakdown.js +57 -0
  55. package/dist/models/VMResourceBreakdownHistogram.d.ts +43 -0
  56. package/dist/models/VMResourceBreakdownHistogram.js +48 -0
  57. package/dist/models/VMs.d.ts +97 -0
  58. package/dist/models/VMs.js +79 -0
  59. package/dist/models/index.d.ts +19 -0
  60. package/dist/models/index.js +21 -0
  61. package/dist/runtime.d.ts +181 -0
  62. package/dist/runtime.js +326 -0
  63. package/package.json +61 -0
  64. package/src/apis/AgentApi.ts +131 -0
  65. package/src/apis/HealthApi.ts +70 -0
  66. package/src/apis/ImageApi.ts +191 -0
  67. package/src/apis/SourceApi.ts +354 -0
  68. package/src/apis/UiEventsApi.ts +96 -0
  69. package/src/apis/index.ts +27 -0
  70. package/src/index.ts +5 -0
  71. package/src/models/Agent.ts +130 -0
  72. package/src/models/AgentProxy.ts +76 -0
  73. package/src/models/Event.ts +77 -0
  74. package/src/models/EventData.ts +70 -0
  75. package/src/models/Infra.ts +119 -0
  76. package/src/models/InfraDatastoresInner.ts +79 -0
  77. package/src/models/InfraNetworksInner.ts +99 -0
  78. package/src/models/Inventory.ts +98 -0
  79. package/src/models/MigrationIssuesInner.ts +79 -0
  80. package/src/models/ModelError.ts +61 -0
  81. package/src/models/PresignedUrl.ts +69 -0
  82. package/src/models/Source.ts +126 -0
  83. package/src/models/SourceAgentItem.ts +70 -0
  84. package/src/models/SourceCreate.ts +92 -0
  85. package/src/models/SourceUpdateOnPrem.ts +77 -0
  86. package/src/models/Status.ts +76 -0
  87. package/src/models/VCenter.ts +61 -0
  88. package/src/models/VMResourceBreakdown.ts +104 -0
  89. package/src/models/VMResourceBreakdownHistogram.ts +79 -0
  90. package/src/models/VMs.ts +163 -0
  91. package/src/models/index.ts +21 -0
  92. package/src/runtime.ts +426 -0
  93. package/tsconfig.json +14 -0
@@ -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 InfraNetworksInner
20
+ */
21
+ export interface InfraNetworksInner {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof InfraNetworksInner
26
+ */
27
+ type: InfraNetworksInnerTypeEnum;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof InfraNetworksInner
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof InfraNetworksInner
38
+ */
39
+ vlanId?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof InfraNetworksInner
44
+ */
45
+ dvswitch?: string;
46
+ }
47
+
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const InfraNetworksInnerTypeEnum = {
53
+ Standard: 'standard',
54
+ Distributed: 'distributed',
55
+ Dvswitch: 'dvswitch',
56
+ Unsupported: 'unsupported'
57
+ } as const;
58
+ export type InfraNetworksInnerTypeEnum = typeof InfraNetworksInnerTypeEnum[keyof typeof InfraNetworksInnerTypeEnum];
59
+
60
+
61
+ /**
62
+ * Check if a given object implements the InfraNetworksInner interface.
63
+ */
64
+ export function instanceOfInfraNetworksInner(value: object): value is InfraNetworksInner {
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 InfraNetworksInnerFromJSON(json: any): InfraNetworksInner {
71
+ return InfraNetworksInnerFromJSONTyped(json, false);
72
+ }
73
+
74
+ export function InfraNetworksInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): InfraNetworksInner {
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 InfraNetworksInnerToJSON(value?: InfraNetworksInner | 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,98 @@
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 { VCenter } from './VCenter';
17
+ import {
18
+ VCenterFromJSON,
19
+ VCenterFromJSONTyped,
20
+ VCenterToJSON,
21
+ } from './VCenter';
22
+ import type { Infra } from './Infra';
23
+ import {
24
+ InfraFromJSON,
25
+ InfraFromJSONTyped,
26
+ InfraToJSON,
27
+ } from './Infra';
28
+ import type { VMs } from './VMs';
29
+ import {
30
+ VMsFromJSON,
31
+ VMsFromJSONTyped,
32
+ VMsToJSON,
33
+ } from './VMs';
34
+
35
+ /**
36
+ *
37
+ * @export
38
+ * @interface Inventory
39
+ */
40
+ export interface Inventory {
41
+ /**
42
+ *
43
+ * @type {VCenter}
44
+ * @memberof Inventory
45
+ */
46
+ vcenter: VCenter;
47
+ /**
48
+ *
49
+ * @type {VMs}
50
+ * @memberof Inventory
51
+ */
52
+ vms: VMs;
53
+ /**
54
+ *
55
+ * @type {Infra}
56
+ * @memberof Inventory
57
+ */
58
+ infra: Infra;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the Inventory interface.
63
+ */
64
+ export function instanceOfInventory(value: object): value is Inventory {
65
+ if (!('vcenter' in value) || value['vcenter'] === undefined) return false;
66
+ if (!('vms' in value) || value['vms'] === undefined) return false;
67
+ if (!('infra' in value) || value['infra'] === undefined) return false;
68
+ return true;
69
+ }
70
+
71
+ export function InventoryFromJSON(json: any): Inventory {
72
+ return InventoryFromJSONTyped(json, false);
73
+ }
74
+
75
+ export function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): Inventory {
76
+ if (json == null) {
77
+ return json;
78
+ }
79
+ return {
80
+
81
+ 'vcenter': json['vcenter'],
82
+ 'vms': json['vms'],
83
+ 'infra': json['infra'],
84
+ };
85
+ }
86
+
87
+ export function InventoryToJSON(value?: Inventory | null): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+ return {
92
+
93
+ 'vcenter': value['vcenter'],
94
+ 'vms': value['vms'],
95
+ 'infra': value['infra'],
96
+ };
97
+ }
98
+
@@ -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 MigrationIssuesInner
20
+ */
21
+ export interface MigrationIssuesInner {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof MigrationIssuesInner
26
+ */
27
+ label: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof MigrationIssuesInner
32
+ */
33
+ assessment: string;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof MigrationIssuesInner
38
+ */
39
+ count: number;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the MigrationIssuesInner interface.
44
+ */
45
+ export function instanceOfMigrationIssuesInner(value: object): value is MigrationIssuesInner {
46
+ if (!('label' in value) || value['label'] === undefined) return false;
47
+ if (!('assessment' in value) || value['assessment'] === undefined) return false;
48
+ if (!('count' in value) || value['count'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function MigrationIssuesInnerFromJSON(json: any): MigrationIssuesInner {
53
+ return MigrationIssuesInnerFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function MigrationIssuesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationIssuesInner {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'label': json['label'],
63
+ 'assessment': json['assessment'],
64
+ 'count': json['count'],
65
+ };
66
+ }
67
+
68
+ export function MigrationIssuesInnerToJSON(value?: MigrationIssuesInner | null): any {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+
74
+ 'label': value['label'],
75
+ 'assessment': value['assessment'],
76
+ 'count': value['count'],
77
+ };
78
+ }
79
+
@@ -0,0 +1,61 @@
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 ModelError
20
+ */
21
+ export interface ModelError {
22
+ /**
23
+ * Error message
24
+ * @type {string}
25
+ * @memberof ModelError
26
+ */
27
+ message: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ModelError interface.
32
+ */
33
+ export function instanceOfModelError(value: object): value is ModelError {
34
+ if (!('message' in value) || value['message'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ModelErrorFromJSON(json: any): ModelError {
39
+ return ModelErrorFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'message': json['message'],
49
+ };
50
+ }
51
+
52
+ export function ModelErrorToJSON(value?: ModelError | null): any {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+
58
+ 'message': value['message'],
59
+ };
60
+ }
61
+
@@ -0,0 +1,69 @@
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 PresignedUrl
20
+ */
21
+ export interface PresignedUrl {
22
+ /**
23
+ * Pre-signed URL for downloading the source discovery image.
24
+ * @type {string}
25
+ * @memberof PresignedUrl
26
+ */
27
+ url: string;
28
+ /**
29
+ * Expiration time for the URL token.
30
+ * @type {Date}
31
+ * @memberof PresignedUrl
32
+ */
33
+ expiresAt?: Date;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the PresignedUrl interface.
38
+ */
39
+ export function instanceOfPresignedUrl(value: object): value is PresignedUrl {
40
+ if (!('url' in value) || value['url'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function PresignedUrlFromJSON(json: any): PresignedUrl {
45
+ return PresignedUrlFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function PresignedUrlFromJSONTyped(json: any, ignoreDiscriminator: boolean): PresignedUrl {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'url': json['url'],
55
+ 'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
56
+ };
57
+ }
58
+
59
+ export function PresignedUrlToJSON(value?: PresignedUrl | null): any {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+
65
+ 'url': value['url'],
66
+ 'expires_at': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
67
+ };
68
+ }
69
+
@@ -0,0 +1,126 @@
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 { Agent } from './Agent';
17
+ import {
18
+ AgentFromJSON,
19
+ AgentFromJSONTyped,
20
+ AgentToJSON,
21
+ } from './Agent';
22
+ import type { Inventory } from './Inventory';
23
+ import {
24
+ InventoryFromJSON,
25
+ InventoryFromJSONTyped,
26
+ InventoryToJSON,
27
+ } from './Inventory';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface Source
33
+ */
34
+ export interface Source {
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof Source
39
+ */
40
+ id: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof Source
45
+ */
46
+ name: string;
47
+ /**
48
+ *
49
+ * @type {Inventory}
50
+ * @memberof Source
51
+ */
52
+ inventory?: Inventory;
53
+ /**
54
+ *
55
+ * @type {Date}
56
+ * @memberof Source
57
+ */
58
+ createdAt: Date;
59
+ /**
60
+ *
61
+ * @type {Date}
62
+ * @memberof Source
63
+ */
64
+ updatedAt: Date;
65
+ /**
66
+ *
67
+ * @type {boolean}
68
+ * @memberof Source
69
+ */
70
+ onPremises: boolean;
71
+ /**
72
+ *
73
+ * @type {Agent}
74
+ * @memberof Source
75
+ */
76
+ agent?: Agent;
77
+ }
78
+
79
+ /**
80
+ * Check if a given object implements the Source interface.
81
+ */
82
+ export function instanceOfSource(value: object): value is Source {
83
+ if (!('id' in value) || value['id'] === undefined) return false;
84
+ if (!('name' in value) || value['name'] === undefined) return false;
85
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
86
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
87
+ if (!('onPremises' in value) || value['onPremises'] === undefined) return false;
88
+ return true;
89
+ }
90
+
91
+ export function SourceFromJSON(json: any): Source {
92
+ return SourceFromJSONTyped(json, false);
93
+ }
94
+
95
+ export function SourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Source {
96
+ if (json == null) {
97
+ return json;
98
+ }
99
+ return {
100
+
101
+ 'id': json['id'],
102
+ 'name': json['name'],
103
+ 'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
104
+ 'createdAt': (new Date(json['createdAt'])),
105
+ 'updatedAt': (new Date(json['updatedAt'])),
106
+ 'onPremises': json['onPremises'],
107
+ 'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
108
+ };
109
+ }
110
+
111
+ export function SourceToJSON(value?: Source | null): any {
112
+ if (value == null) {
113
+ return value;
114
+ }
115
+ return {
116
+
117
+ 'id': value['id'],
118
+ 'name': value['name'],
119
+ 'inventory': InventoryToJSON(value['inventory']),
120
+ 'createdAt': ((value['createdAt']).toISOString()),
121
+ 'updatedAt': ((value['updatedAt']).toISOString()),
122
+ 'onPremises': value['onPremises'],
123
+ 'agent': AgentToJSON(value['agent']),
124
+ };
125
+ }
126
+
@@ -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 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
+
@@ -0,0 +1,92 @@
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 { AgentProxy } from './AgentProxy';
17
+ import {
18
+ AgentProxyFromJSON,
19
+ AgentProxyFromJSONTyped,
20
+ AgentProxyToJSON,
21
+ } from './AgentProxy';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface SourceCreate
27
+ */
28
+ export interface SourceCreate {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof SourceCreate
33
+ */
34
+ name: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof SourceCreate
39
+ */
40
+ sshPublicKey?: string;
41
+ /**
42
+ *
43
+ * @type {AgentProxy}
44
+ * @memberof SourceCreate
45
+ */
46
+ proxy?: AgentProxy;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof SourceCreate
51
+ */
52
+ certificateChain?: string;
53
+ }
54
+
55
+ /**
56
+ * Check if a given object implements the SourceCreate interface.
57
+ */
58
+ export function instanceOfSourceCreate(value: object): value is SourceCreate {
59
+ if (!('name' in value) || value['name'] === undefined) return false;
60
+ return true;
61
+ }
62
+
63
+ export function SourceCreateFromJSON(json: any): SourceCreate {
64
+ return SourceCreateFromJSONTyped(json, false);
65
+ }
66
+
67
+ export function SourceCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceCreate {
68
+ if (json == null) {
69
+ return json;
70
+ }
71
+ return {
72
+
73
+ 'name': json['name'],
74
+ 'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
75
+ 'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
76
+ 'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
77
+ };
78
+ }
79
+
80
+ export function SourceCreateToJSON(value?: SourceCreate | null): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+ return {
85
+
86
+ 'name': value['name'],
87
+ 'sshPublicKey': value['sshPublicKey'],
88
+ 'proxy': AgentProxyToJSON(value['proxy']),
89
+ 'certificateChain': value['certificateChain'],
90
+ };
91
+ }
92
+