@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,43 @@
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 MigrationIssuesInner
16
+ */
17
+ export interface MigrationIssuesInner {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MigrationIssuesInner
22
+ */
23
+ label: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof MigrationIssuesInner
28
+ */
29
+ assessment: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof MigrationIssuesInner
34
+ */
35
+ count: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the MigrationIssuesInner interface.
39
+ */
40
+ export declare function instanceOfMigrationIssuesInner(value: object): value is MigrationIssuesInner;
41
+ export declare function MigrationIssuesInnerFromJSON(json: any): MigrationIssuesInner;
42
+ export declare function MigrationIssuesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationIssuesInner;
43
+ export declare function MigrationIssuesInnerToJSON(value?: MigrationIssuesInner | null): any;
@@ -0,0 +1,48 @@
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 MigrationIssuesInner interface.
16
+ */
17
+ export function instanceOfMigrationIssuesInner(value) {
18
+ if (!('label' in value) || value['label'] === undefined)
19
+ return false;
20
+ if (!('assessment' in value) || value['assessment'] === undefined)
21
+ return false;
22
+ if (!('count' in value) || value['count'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function MigrationIssuesInnerFromJSON(json) {
27
+ return MigrationIssuesInnerFromJSONTyped(json, false);
28
+ }
29
+ export function MigrationIssuesInnerFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'label': json['label'],
35
+ 'assessment': json['assessment'],
36
+ 'count': json['count'],
37
+ };
38
+ }
39
+ export function MigrationIssuesInnerToJSON(value) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'label': value['label'],
45
+ 'assessment': value['assessment'],
46
+ 'count': value['count'],
47
+ };
48
+ }
@@ -0,0 +1,31 @@
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 ModelError
16
+ */
17
+ export interface ModelError {
18
+ /**
19
+ * Error message
20
+ * @type {string}
21
+ * @memberof ModelError
22
+ */
23
+ message: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ModelError interface.
27
+ */
28
+ export declare function instanceOfModelError(value: object): value is ModelError;
29
+ export declare function ModelErrorFromJSON(json: any): ModelError;
30
+ export declare function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError;
31
+ export declare function ModelErrorToJSON(value?: ModelError | null): any;
@@ -0,0 +1,40 @@
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 ModelError interface.
16
+ */
17
+ export function instanceOfModelError(value) {
18
+ if (!('message' in value) || value['message'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function ModelErrorFromJSON(json) {
23
+ return ModelErrorFromJSONTyped(json, false);
24
+ }
25
+ export function ModelErrorFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'message': json['message'],
31
+ };
32
+ }
33
+ export function ModelErrorToJSON(value) {
34
+ if (value == null) {
35
+ return value;
36
+ }
37
+ return {
38
+ 'message': value['message'],
39
+ };
40
+ }
@@ -0,0 +1,37 @@
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 PresignedUrl
16
+ */
17
+ export interface PresignedUrl {
18
+ /**
19
+ * Pre-signed URL for downloading the source discovery image.
20
+ * @type {string}
21
+ * @memberof PresignedUrl
22
+ */
23
+ url: string;
24
+ /**
25
+ * Expiration time for the URL token.
26
+ * @type {Date}
27
+ * @memberof PresignedUrl
28
+ */
29
+ expiresAt?: Date;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PresignedUrl interface.
33
+ */
34
+ export declare function instanceOfPresignedUrl(value: object): value is PresignedUrl;
35
+ export declare function PresignedUrlFromJSON(json: any): PresignedUrl;
36
+ export declare function PresignedUrlFromJSONTyped(json: any, ignoreDiscriminator: boolean): PresignedUrl;
37
+ export declare function PresignedUrlToJSON(value?: PresignedUrl | null): any;
@@ -0,0 +1,42 @@
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 PresignedUrl interface.
16
+ */
17
+ export function instanceOfPresignedUrl(value) {
18
+ if (!('url' in value) || value['url'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function PresignedUrlFromJSON(json) {
23
+ return PresignedUrlFromJSONTyped(json, false);
24
+ }
25
+ export function PresignedUrlFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'url': json['url'],
31
+ 'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
32
+ };
33
+ }
34
+ export function PresignedUrlToJSON(value) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'url': value['url'],
40
+ 'expires_at': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
41
+ };
42
+ }
@@ -0,0 +1,69 @@
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 { Agent } from './Agent';
13
+ import type { Inventory } from './Inventory';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface Source
18
+ */
19
+ export interface Source {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof Source
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof Source
30
+ */
31
+ name: string;
32
+ /**
33
+ *
34
+ * @type {Inventory}
35
+ * @memberof Source
36
+ */
37
+ inventory?: Inventory;
38
+ /**
39
+ *
40
+ * @type {Date}
41
+ * @memberof Source
42
+ */
43
+ createdAt: Date;
44
+ /**
45
+ *
46
+ * @type {Date}
47
+ * @memberof Source
48
+ */
49
+ updatedAt: Date;
50
+ /**
51
+ *
52
+ * @type {boolean}
53
+ * @memberof Source
54
+ */
55
+ onPremises: boolean;
56
+ /**
57
+ *
58
+ * @type {Agent}
59
+ * @memberof Source
60
+ */
61
+ agent?: Agent;
62
+ }
63
+ /**
64
+ * Check if a given object implements the Source interface.
65
+ */
66
+ export declare function instanceOfSource(value: object): value is Source;
67
+ export declare function SourceFromJSON(json: any): Source;
68
+ export declare function SourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Source;
69
+ export declare function SourceToJSON(value?: Source | null): any;
@@ -0,0 +1,62 @@
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 { AgentFromJSON, AgentToJSON, } from './Agent';
15
+ import { InventoryFromJSON, InventoryToJSON, } from './Inventory';
16
+ /**
17
+ * Check if a given object implements the Source interface.
18
+ */
19
+ export function instanceOfSource(value) {
20
+ if (!('id' in value) || value['id'] === undefined)
21
+ return false;
22
+ if (!('name' in value) || value['name'] === undefined)
23
+ return false;
24
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
25
+ return false;
26
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
27
+ return false;
28
+ if (!('onPremises' in value) || value['onPremises'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function SourceFromJSON(json) {
33
+ return SourceFromJSONTyped(json, false);
34
+ }
35
+ export function SourceFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'id': json['id'],
41
+ 'name': json['name'],
42
+ 'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
43
+ 'createdAt': (new Date(json['createdAt'])),
44
+ 'updatedAt': (new Date(json['updatedAt'])),
45
+ 'onPremises': json['onPremises'],
46
+ 'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
47
+ };
48
+ }
49
+ export function SourceToJSON(value) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'id': value['id'],
55
+ 'name': value['name'],
56
+ 'inventory': InventoryToJSON(value['inventory']),
57
+ 'createdAt': ((value['createdAt']).toISOString()),
58
+ 'updatedAt': ((value['updatedAt']).toISOString()),
59
+ 'onPremises': value['onPremises'],
60
+ 'agent': AgentToJSON(value['agent']),
61
+ };
62
+ }
@@ -0,0 +1,37 @@
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 SourceAgentItem
16
+ */
17
+ export interface SourceAgentItem {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SourceAgentItem
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof SourceAgentItem
28
+ */
29
+ associated: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the SourceAgentItem interface.
33
+ */
34
+ export declare function instanceOfSourceAgentItem(value: object): value is SourceAgentItem;
35
+ export declare function SourceAgentItemFromJSON(json: any): SourceAgentItem;
36
+ export declare function SourceAgentItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceAgentItem;
37
+ export declare function SourceAgentItemToJSON(value?: SourceAgentItem | null): any;
@@ -0,0 +1,44 @@
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 SourceAgentItem interface.
16
+ */
17
+ export function instanceOfSourceAgentItem(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('associated' in value) || value['associated'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function SourceAgentItemFromJSON(json) {
25
+ return SourceAgentItemFromJSONTyped(json, false);
26
+ }
27
+ export function SourceAgentItemFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'id': json['id'],
33
+ 'associated': json['associated'],
34
+ };
35
+ }
36
+ export function SourceAgentItemToJSON(value) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'id': value['id'],
42
+ 'associated': value['associated'],
43
+ };
44
+ }
@@ -0,0 +1,50 @@
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 { AgentProxy } from './AgentProxy';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SourceCreate
17
+ */
18
+ export interface SourceCreate {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof SourceCreate
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof SourceCreate
29
+ */
30
+ sshPublicKey?: string;
31
+ /**
32
+ *
33
+ * @type {AgentProxy}
34
+ * @memberof SourceCreate
35
+ */
36
+ proxy?: AgentProxy;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof SourceCreate
41
+ */
42
+ certificateChain?: string;
43
+ }
44
+ /**
45
+ * Check if a given object implements the SourceCreate interface.
46
+ */
47
+ export declare function instanceOfSourceCreate(value: object): value is SourceCreate;
48
+ export declare function SourceCreateFromJSON(json: any): SourceCreate;
49
+ export declare function SourceCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceCreate;
50
+ export declare function SourceCreateToJSON(value?: SourceCreate | null): any;
@@ -0,0 +1,47 @@
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 { AgentProxyFromJSON, AgentProxyToJSON, } from './AgentProxy';
15
+ /**
16
+ * Check if a given object implements the SourceCreate interface.
17
+ */
18
+ export function instanceOfSourceCreate(value) {
19
+ if (!('name' in value) || value['name'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function SourceCreateFromJSON(json) {
24
+ return SourceCreateFromJSONTyped(json, false);
25
+ }
26
+ export function SourceCreateFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'name': json['name'],
32
+ 'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
33
+ 'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
34
+ 'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
35
+ };
36
+ }
37
+ export function SourceCreateToJSON(value) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'name': value['name'],
43
+ 'sshPublicKey': value['sshPublicKey'],
44
+ 'proxy': AgentProxyToJSON(value['proxy']),
45
+ 'certificateChain': value['certificateChain'],
46
+ };
47
+ }
@@ -0,0 +1,38 @@
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 { Inventory } from './Inventory';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SourceUpdateOnPrem
17
+ */
18
+ export interface SourceUpdateOnPrem {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof SourceUpdateOnPrem
23
+ */
24
+ agentId: string;
25
+ /**
26
+ *
27
+ * @type {Inventory}
28
+ * @memberof SourceUpdateOnPrem
29
+ */
30
+ inventory: Inventory;
31
+ }
32
+ /**
33
+ * Check if a given object implements the SourceUpdateOnPrem interface.
34
+ */
35
+ export declare function instanceOfSourceUpdateOnPrem(value: object): value is SourceUpdateOnPrem;
36
+ export declare function SourceUpdateOnPremFromJSON(json: any): SourceUpdateOnPrem;
37
+ export declare function SourceUpdateOnPremFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceUpdateOnPrem;
38
+ export declare function SourceUpdateOnPremToJSON(value?: SourceUpdateOnPrem | null): any;
@@ -0,0 +1,45 @@
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 { InventoryFromJSON, InventoryToJSON, } from './Inventory';
15
+ /**
16
+ * Check if a given object implements the SourceUpdateOnPrem interface.
17
+ */
18
+ export function instanceOfSourceUpdateOnPrem(value) {
19
+ if (!('agentId' in value) || value['agentId'] === undefined)
20
+ return false;
21
+ if (!('inventory' in value) || value['inventory'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function SourceUpdateOnPremFromJSON(json) {
26
+ return SourceUpdateOnPremFromJSONTyped(json, false);
27
+ }
28
+ export function SourceUpdateOnPremFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'agentId': json['agentId'],
34
+ 'inventory': InventoryFromJSON(json['inventory']),
35
+ };
36
+ }
37
+ export function SourceUpdateOnPremToJSON(value) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'agentId': value['agentId'],
43
+ 'inventory': InventoryToJSON(value['inventory']),
44
+ };
45
+ }
@@ -0,0 +1,43 @@
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
+ * Status is a return value for calls that don't return other objects.
14
+ * @export
15
+ * @interface Status
16
+ */
17
+ export interface Status {
18
+ /**
19
+ * A human-readable description of the status of this operation.
20
+ * @type {string}
21
+ * @memberof Status
22
+ */
23
+ message?: string;
24
+ /**
25
+ * 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.
26
+ * @type {string}
27
+ * @memberof Status
28
+ */
29
+ reason?: string;
30
+ /**
31
+ * 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
32
+ * @type {string}
33
+ * @memberof Status
34
+ */
35
+ status?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the Status interface.
39
+ */
40
+ export declare function instanceOfStatus(value: object): value is Status;
41
+ export declare function StatusFromJSON(json: any): Status;
42
+ export declare function StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): Status;
43
+ export declare function StatusToJSON(value?: Status | null): any;