@mlhub/models-ts-sdk 0.0.0

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 (132) hide show
  1. package/.openapi-generator/FILES +48 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +45 -0
  5. package/dist/apis/ArtifactsApi.d.ts +37 -0
  6. package/dist/apis/ArtifactsApi.js +158 -0
  7. package/dist/apis/IngestionsApi.d.ts +37 -0
  8. package/dist/apis/IngestionsApi.js +158 -0
  9. package/dist/apis/MetadataApi.d.ts +30 -0
  10. package/dist/apis/MetadataApi.js +122 -0
  11. package/dist/apis/PlatformsApi.d.ts +74 -0
  12. package/dist/apis/PlatformsApi.js +306 -0
  13. package/dist/apis/PublicationsApi.d.ts +60 -0
  14. package/dist/apis/PublicationsApi.js +251 -0
  15. package/dist/apis/index.d.ts +5 -0
  16. package/dist/apis/index.js +12 -0
  17. package/dist/index.d.ts +3 -0
  18. package/dist/index.js +10 -0
  19. package/dist/models/Accelerator.d.ts +46 -0
  20. package/dist/models/Accelerator.js +48 -0
  21. package/dist/models/Artifact.d.ts +46 -0
  22. package/dist/models/Artifact.js +47 -0
  23. package/dist/models/ArtifactIngestion.d.ts +70 -0
  24. package/dist/models/ArtifactIngestion.js +56 -0
  25. package/dist/models/ArtifactIngestionStatus.d.ts +30 -0
  26. package/dist/models/ArtifactIngestionStatus.js +44 -0
  27. package/dist/models/ArtifactPublication.d.ts +70 -0
  28. package/dist/models/ArtifactPublication.js +56 -0
  29. package/dist/models/ArtifactPublicationStatus.d.ts +31 -0
  30. package/dist/models/ArtifactPublicationStatus.js +45 -0
  31. package/dist/models/ArtifactType.d.ts +23 -0
  32. package/dist/models/ArtifactType.js +37 -0
  33. package/dist/models/BadRequestResponse.d.ts +51 -0
  34. package/dist/models/BadRequestResponse.js +48 -0
  35. package/dist/models/CreateModelMetadataResponse.d.ts +51 -0
  36. package/dist/models/CreateModelMetadataResponse.js +48 -0
  37. package/dist/models/DiscoverModelsByPlatformResponse.d.ts +51 -0
  38. package/dist/models/DiscoverModelsByPlatformResponse.js +48 -0
  39. package/dist/models/DiscoveryCriteria.d.ts +34 -0
  40. package/dist/models/DiscoveryCriteria.js +44 -0
  41. package/dist/models/GetModelArtifactResponse.d.ts +52 -0
  42. package/dist/models/GetModelArtifactResponse.js +49 -0
  43. package/dist/models/GetModelByPlatformResponse.d.ts +51 -0
  44. package/dist/models/GetModelByPlatformResponse.js +48 -0
  45. package/dist/models/GetModelIngestionResponse.d.ts +52 -0
  46. package/dist/models/GetModelIngestionResponse.js +49 -0
  47. package/dist/models/GetModelPublicationResponse.d.ts +52 -0
  48. package/dist/models/GetModelPublicationResponse.js +49 -0
  49. package/dist/models/HardwareRequirements.d.ts +52 -0
  50. package/dist/models/HardwareRequirements.js +50 -0
  51. package/dist/models/IngestArtifactRequest.d.ts +45 -0
  52. package/dist/models/IngestArtifactRequest.js +47 -0
  53. package/dist/models/IngestModelArtifactResponse.d.ts +52 -0
  54. package/dist/models/IngestModelArtifactResponse.js +49 -0
  55. package/dist/models/ListModelArtifactResponse.d.ts +52 -0
  56. package/dist/models/ListModelArtifactResponse.js +49 -0
  57. package/dist/models/ListModelIngestionsResponse.d.ts +52 -0
  58. package/dist/models/ListModelIngestionsResponse.js +49 -0
  59. package/dist/models/ListModelPublicationsForArtifactResponse.d.ts +52 -0
  60. package/dist/models/ListModelPublicationsForArtifactResponse.js +49 -0
  61. package/dist/models/ListModelPublicationsResponse.d.ts +52 -0
  62. package/dist/models/ListModelPublicationsResponse.js +49 -0
  63. package/dist/models/ListModelsByPlatformResponse.d.ts +53 -0
  64. package/dist/models/ListModelsByPlatformResponse.js +48 -0
  65. package/dist/models/ListPlatformsResponse.d.ts +52 -0
  66. package/dist/models/ListPlatformsResponse.js +49 -0
  67. package/dist/models/ModelIO.d.ts +33 -0
  68. package/dist/models/ModelIO.js +43 -0
  69. package/dist/models/ModelMetadata.d.ts +239 -0
  70. package/dist/models/ModelMetadata.js +112 -0
  71. package/dist/models/NotFoundResponse.d.ts +51 -0
  72. package/dist/models/NotFoundResponse.js +48 -0
  73. package/dist/models/Platform.d.ts +30 -0
  74. package/dist/models/Platform.js +44 -0
  75. package/dist/models/PlatformDetails.d.ts +34 -0
  76. package/dist/models/PlatformDetails.js +43 -0
  77. package/dist/models/PublishArtifactRequest.d.ts +33 -0
  78. package/dist/models/PublishArtifactRequest.js +43 -0
  79. package/dist/models/PublishModelArtifactResponse.d.ts +52 -0
  80. package/dist/models/PublishModelArtifactResponse.js +49 -0
  81. package/dist/models/ServerErrorResponse.d.ts +51 -0
  82. package/dist/models/ServerErrorResponse.js +48 -0
  83. package/dist/models/SystemRequirement.d.ts +33 -0
  84. package/dist/models/SystemRequirement.js +42 -0
  85. package/dist/models/index.d.ts +33 -0
  86. package/dist/models/index.js +40 -0
  87. package/dist/runtime.d.ts +140 -0
  88. package/dist/runtime.js +420 -0
  89. package/package.json +15 -0
  90. package/src/apis/ArtifactsApi.ts +100 -0
  91. package/src/apis/IngestionsApi.ts +100 -0
  92. package/src/apis/MetadataApi.ts +82 -0
  93. package/src/apis/PlatformsApi.ts +246 -0
  94. package/src/apis/PublicationsApi.ts +185 -0
  95. package/src/apis/index.ts +7 -0
  96. package/src/index.ts +5 -0
  97. package/src/models/Accelerator.ts +87 -0
  98. package/src/models/Artifact.ts +87 -0
  99. package/src/models/ArtifactIngestion.ts +119 -0
  100. package/src/models/ArtifactIngestionStatus.ts +43 -0
  101. package/src/models/ArtifactPublication.ts +119 -0
  102. package/src/models/ArtifactPublicationStatus.ts +44 -0
  103. package/src/models/ArtifactType.ts +36 -0
  104. package/src/models/BadRequestResponse.ts +88 -0
  105. package/src/models/CreateModelMetadataResponse.ts +88 -0
  106. package/src/models/DiscoverModelsByPlatformResponse.ts +88 -0
  107. package/src/models/DiscoveryCriteria.ts +71 -0
  108. package/src/models/GetModelArtifactResponse.ts +95 -0
  109. package/src/models/GetModelByPlatformResponse.ts +88 -0
  110. package/src/models/GetModelIngestionResponse.ts +95 -0
  111. package/src/models/GetModelPublicationResponse.ts +95 -0
  112. package/src/models/HardwareRequirements.ts +95 -0
  113. package/src/models/IngestArtifactRequest.ts +80 -0
  114. package/src/models/IngestModelArtifactResponse.ts +95 -0
  115. package/src/models/ListModelArtifactResponse.ts +95 -0
  116. package/src/models/ListModelIngestionsResponse.ts +95 -0
  117. package/src/models/ListModelPublicationsForArtifactResponse.ts +95 -0
  118. package/src/models/ListModelPublicationsResponse.ts +95 -0
  119. package/src/models/ListModelsByPlatformResponse.ts +88 -0
  120. package/src/models/ListPlatformsResponse.ts +95 -0
  121. package/src/models/ModelIO.ts +64 -0
  122. package/src/models/ModelMetadata.ts +348 -0
  123. package/src/models/NotFoundResponse.ts +88 -0
  124. package/src/models/Platform.ts +43 -0
  125. package/src/models/PlatformDetails.ts +71 -0
  126. package/src/models/PublishArtifactRequest.ts +64 -0
  127. package/src/models/PublishModelArtifactResponse.ts +95 -0
  128. package/src/models/ServerErrorResponse.ts +88 -0
  129. package/src/models/SystemRequirement.ts +64 -0
  130. package/src/models/index.ts +35 -0
  131. package/src/runtime.ts +320 -0
  132. package/tsconfig.json +20 -0
@@ -0,0 +1,87 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MLHub Models API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
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 { exists, mapValues } from '../runtime';
16
+ import {
17
+ ArtifactType,
18
+ ArtifactTypeFromJSON,
19
+ ArtifactTypeFromJSONTyped,
20
+ ArtifactTypeToJSON,
21
+ } from './';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface Artifact
27
+ */
28
+ export interface Artifact {
29
+ /**
30
+ *
31
+ * @type {ArtifactType}
32
+ * @memberof Artifact
33
+ */
34
+ artifact_type: ArtifactType;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof Artifact
39
+ */
40
+ created_at: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof Artifact
45
+ */
46
+ id: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof Artifact
51
+ */
52
+ last_modified: string;
53
+ }
54
+
55
+ export function ArtifactFromJSON(json: any): Artifact {
56
+ return ArtifactFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function ArtifactFromJSONTyped(json: any, ignoreDiscriminator: boolean): Artifact {
60
+ if ((json === undefined) || (json === null)) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'artifact_type': ArtifactTypeFromJSON(json['artifact_type']),
66
+ 'created_at': json['created_at'],
67
+ 'id': json['id'],
68
+ 'last_modified': json['last_modified'],
69
+ };
70
+ }
71
+
72
+ export function ArtifactToJSON(value?: Artifact | null): any {
73
+ if (value === undefined) {
74
+ return undefined;
75
+ }
76
+ if (value === null) {
77
+ return null;
78
+ }
79
+ return {
80
+
81
+ 'artifact_type': ArtifactTypeToJSON(value.artifact_type),
82
+ 'created_at': value.created_at,
83
+ 'id': value.id,
84
+ 'last_modified': value.last_modified,
85
+ };
86
+ }
87
+
@@ -0,0 +1,119 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MLHub Models API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
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 { exists, mapValues } from '../runtime';
16
+ import {
17
+ ArtifactIngestionStatus,
18
+ ArtifactIngestionStatusFromJSON,
19
+ ArtifactIngestionStatusFromJSONTyped,
20
+ ArtifactIngestionStatusToJSON,
21
+ } from './';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ArtifactIngestion
27
+ */
28
+ export interface ArtifactIngestion {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof ArtifactIngestion
33
+ */
34
+ artifact_id: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof ArtifactIngestion
39
+ */
40
+ created_at: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof ArtifactIngestion
45
+ */
46
+ id: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof ArtifactIngestion
51
+ */
52
+ last_message?: string | null;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof ArtifactIngestion
57
+ */
58
+ last_modified: string;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof ArtifactIngestion
63
+ */
64
+ platform: string;
65
+ /**
66
+ *
67
+ * @type {ArtifactIngestionStatus}
68
+ * @memberof ArtifactIngestion
69
+ */
70
+ status: ArtifactIngestionStatus;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof ArtifactIngestion
75
+ */
76
+ webhook_url?: string | null;
77
+ }
78
+
79
+ export function ArtifactIngestionFromJSON(json: any): ArtifactIngestion {
80
+ return ArtifactIngestionFromJSONTyped(json, false);
81
+ }
82
+
83
+ export function ArtifactIngestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactIngestion {
84
+ if ((json === undefined) || (json === null)) {
85
+ return json;
86
+ }
87
+ return {
88
+
89
+ 'artifact_id': json['artifact_id'],
90
+ 'created_at': json['created_at'],
91
+ 'id': json['id'],
92
+ 'last_message': !exists(json, 'last_message') ? undefined : json['last_message'],
93
+ 'last_modified': json['last_modified'],
94
+ 'platform': json['platform'],
95
+ 'status': ArtifactIngestionStatusFromJSON(json['status']),
96
+ 'webhook_url': !exists(json, 'webhook_url') ? undefined : json['webhook_url'],
97
+ };
98
+ }
99
+
100
+ export function ArtifactIngestionToJSON(value?: ArtifactIngestion | null): any {
101
+ if (value === undefined) {
102
+ return undefined;
103
+ }
104
+ if (value === null) {
105
+ return null;
106
+ }
107
+ return {
108
+
109
+ 'artifact_id': value.artifact_id,
110
+ 'created_at': value.created_at,
111
+ 'id': value.id,
112
+ 'last_message': value.last_message,
113
+ 'last_modified': value.last_modified,
114
+ 'platform': value.platform,
115
+ 'status': ArtifactIngestionStatusToJSON(value.status),
116
+ 'webhook_url': value.webhook_url,
117
+ };
118
+ }
119
+
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MLHub Models API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
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
+ /**
16
+ *
17
+ * @export
18
+ * @enum {string}
19
+ */
20
+ export enum ArtifactIngestionStatus {
21
+ Submitted = 'Submitted',
22
+ Resubmitted = 'Resubmitted',
23
+ Pending = 'Pending',
24
+ Downloading = 'Downloading',
25
+ Downloaded = 'Downloaded',
26
+ Archiving = 'Archiving',
27
+ Archived = 'Archived',
28
+ Finished = 'Finished',
29
+ Failed = 'Failed'
30
+ }
31
+
32
+ export function ArtifactIngestionStatusFromJSON(json: any): ArtifactIngestionStatus {
33
+ return ArtifactIngestionStatusFromJSONTyped(json, false);
34
+ }
35
+
36
+ export function ArtifactIngestionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactIngestionStatus {
37
+ return json as ArtifactIngestionStatus;
38
+ }
39
+
40
+ export function ArtifactIngestionStatusToJSON(value?: ArtifactIngestionStatus | null): any {
41
+ return value as any;
42
+ }
43
+
@@ -0,0 +1,119 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MLHub Models API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
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 { exists, mapValues } from '../runtime';
16
+ import {
17
+ ArtifactPublicationStatus,
18
+ ArtifactPublicationStatusFromJSON,
19
+ ArtifactPublicationStatusFromJSONTyped,
20
+ ArtifactPublicationStatusToJSON,
21
+ } from './';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ArtifactPublication
27
+ */
28
+ export interface ArtifactPublication {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof ArtifactPublication
33
+ */
34
+ artifact_id: string;
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof ArtifactPublication
39
+ */
40
+ attempts: number;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof ArtifactPublication
45
+ */
46
+ created_at: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof ArtifactPublication
51
+ */
52
+ id: string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof ArtifactPublication
57
+ */
58
+ last_message?: string | null;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof ArtifactPublication
63
+ */
64
+ last_modified: string;
65
+ /**
66
+ *
67
+ * @type {ArtifactPublicationStatus}
68
+ * @memberof ArtifactPublication
69
+ */
70
+ status: ArtifactPublicationStatus;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof ArtifactPublication
75
+ */
76
+ target_platform: string;
77
+ }
78
+
79
+ export function ArtifactPublicationFromJSON(json: any): ArtifactPublication {
80
+ return ArtifactPublicationFromJSONTyped(json, false);
81
+ }
82
+
83
+ export function ArtifactPublicationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactPublication {
84
+ if ((json === undefined) || (json === null)) {
85
+ return json;
86
+ }
87
+ return {
88
+
89
+ 'artifact_id': json['artifact_id'],
90
+ 'attempts': json['attempts'],
91
+ 'created_at': json['created_at'],
92
+ 'id': json['id'],
93
+ 'last_message': !exists(json, 'last_message') ? undefined : json['last_message'],
94
+ 'last_modified': json['last_modified'],
95
+ 'status': ArtifactPublicationStatusFromJSON(json['status']),
96
+ 'target_platform': json['target_platform'],
97
+ };
98
+ }
99
+
100
+ export function ArtifactPublicationToJSON(value?: ArtifactPublication | null): any {
101
+ if (value === undefined) {
102
+ return undefined;
103
+ }
104
+ if (value === null) {
105
+ return null;
106
+ }
107
+ return {
108
+
109
+ 'artifact_id': value.artifact_id,
110
+ 'attempts': value.attempts,
111
+ 'created_at': value.created_at,
112
+ 'id': value.id,
113
+ 'last_message': value.last_message,
114
+ 'last_modified': value.last_modified,
115
+ 'status': ArtifactPublicationStatusToJSON(value.status),
116
+ 'target_platform': value.target_platform,
117
+ };
118
+ }
119
+
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MLHub Models API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
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
+ /**
16
+ *
17
+ * @export
18
+ * @enum {string}
19
+ */
20
+ export enum ArtifactPublicationStatus {
21
+ Submitted = 'Submitted',
22
+ Pending = 'Pending',
23
+ Extracting = 'Extracting',
24
+ Extracted = 'Extracted',
25
+ PublishingMetadata = 'PublishingMetadata',
26
+ PublishedMetadata = 'PublishedMetadata',
27
+ PublishingArtifact = 'PublishingArtifact',
28
+ PublishedArtifact = 'PublishedArtifact',
29
+ Finished = 'Finished',
30
+ Failed = 'Failed'
31
+ }
32
+
33
+ export function ArtifactPublicationStatusFromJSON(json: any): ArtifactPublicationStatus {
34
+ return ArtifactPublicationStatusFromJSONTyped(json, false);
35
+ }
36
+
37
+ export function ArtifactPublicationStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactPublicationStatus {
38
+ return json as ArtifactPublicationStatus;
39
+ }
40
+
41
+ export function ArtifactPublicationStatusToJSON(value?: ArtifactPublicationStatus | null): any {
42
+ return value as any;
43
+ }
44
+
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MLHub Models API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
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
+ /**
16
+ *
17
+ * @export
18
+ * @enum {string}
19
+ */
20
+ export enum ArtifactType {
21
+ Model = 'Model',
22
+ Dataset = 'Dataset'
23
+ }
24
+
25
+ export function ArtifactTypeFromJSON(json: any): ArtifactType {
26
+ return ArtifactTypeFromJSONTyped(json, false);
27
+ }
28
+
29
+ export function ArtifactTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactType {
30
+ return json as ArtifactType;
31
+ }
32
+
33
+ export function ArtifactTypeToJSON(value?: ArtifactType | null): any {
34
+ return value as any;
35
+ }
36
+
@@ -0,0 +1,88 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MLHub Models API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
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 { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface BadRequestResponse
20
+ */
21
+ export interface BadRequestResponse {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof BadRequestResponse
26
+ */
27
+ message: string;
28
+ /**
29
+ *
30
+ * @type {object}
31
+ * @memberof BadRequestResponse
32
+ */
33
+ metadata: object;
34
+ /**
35
+ *
36
+ * @type {any}
37
+ * @memberof BadRequestResponse
38
+ */
39
+ result: any | null;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof BadRequestResponse
44
+ */
45
+ status: number;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof BadRequestResponse
50
+ */
51
+ version: string;
52
+ }
53
+
54
+ export function BadRequestResponseFromJSON(json: any): BadRequestResponse {
55
+ return BadRequestResponseFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function BadRequestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BadRequestResponse {
59
+ if ((json === undefined) || (json === null)) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'message': json['message'],
65
+ 'metadata': json['metadata'],
66
+ 'result': json['result'],
67
+ 'status': json['status'],
68
+ 'version': json['version'],
69
+ };
70
+ }
71
+
72
+ export function BadRequestResponseToJSON(value?: BadRequestResponse | null): any {
73
+ if (value === undefined) {
74
+ return undefined;
75
+ }
76
+ if (value === null) {
77
+ return null;
78
+ }
79
+ return {
80
+
81
+ 'message': value.message,
82
+ 'metadata': value.metadata,
83
+ 'result': value.result,
84
+ 'status': value.status,
85
+ 'version': value.version,
86
+ };
87
+ }
88
+
@@ -0,0 +1,88 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MLHub Models API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
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 { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CreateModelMetadataResponse
20
+ */
21
+ export interface CreateModelMetadataResponse {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CreateModelMetadataResponse
26
+ */
27
+ message: string;
28
+ /**
29
+ *
30
+ * @type {object}
31
+ * @memberof CreateModelMetadataResponse
32
+ */
33
+ metadata: object;
34
+ /**
35
+ *
36
+ * @type {object}
37
+ * @memberof CreateModelMetadataResponse
38
+ */
39
+ result: object;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof CreateModelMetadataResponse
44
+ */
45
+ status: number;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof CreateModelMetadataResponse
50
+ */
51
+ version: string;
52
+ }
53
+
54
+ export function CreateModelMetadataResponseFromJSON(json: any): CreateModelMetadataResponse {
55
+ return CreateModelMetadataResponseFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function CreateModelMetadataResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateModelMetadataResponse {
59
+ if ((json === undefined) || (json === null)) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'message': json['message'],
65
+ 'metadata': json['metadata'],
66
+ 'result': json['result'],
67
+ 'status': json['status'],
68
+ 'version': json['version'],
69
+ };
70
+ }
71
+
72
+ export function CreateModelMetadataResponseToJSON(value?: CreateModelMetadataResponse | null): any {
73
+ if (value === undefined) {
74
+ return undefined;
75
+ }
76
+ if (value === null) {
77
+ return null;
78
+ }
79
+ return {
80
+
81
+ 'message': value.message,
82
+ 'metadata': value.metadata,
83
+ 'result': value.result,
84
+ 'status': value.status,
85
+ 'version': value.version,
86
+ };
87
+ }
88
+