@mlhub/deployments-ts-sdk 0.14.0 → 0.16.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.
@@ -7,6 +7,7 @@ src/apis/DeploymentsApi.ts
7
7
  src/apis/StrategiesApi.ts
8
8
  src/apis/index.ts
9
9
  src/index.ts
10
+ src/models/Argument.ts
10
11
  src/models/BadRequestResponse.ts
11
12
  src/models/Choice.ts
12
13
  src/models/DeployModelWithStrategyBody.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @mlhub/deployments-ts-sdk@0.14.0
1
+ ## @mlhub/deployments-ts-sdk@0.16.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @mlhub/deployments-ts-sdk@0.14.0 --save
39
+ npm install @mlhub/deployments-ts-sdk@0.16.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -0,0 +1,33 @@
1
+ /**
2
+ * MLHub Deployments API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
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 Argument
16
+ */
17
+ export interface Argument {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof Argument
22
+ */
23
+ parameter_name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof Argument
28
+ */
29
+ value: string;
30
+ }
31
+ export declare function ArgumentFromJSON(json: any): Argument;
32
+ export declare function ArgumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Argument;
33
+ export declare function ArgumentToJSON(value?: Argument | null): any;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * MLHub Deployments API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ArgumentFromJSON = ArgumentFromJSON;
17
+ exports.ArgumentFromJSONTyped = ArgumentFromJSONTyped;
18
+ exports.ArgumentToJSON = ArgumentToJSON;
19
+ function ArgumentFromJSON(json) {
20
+ return ArgumentFromJSONTyped(json, false);
21
+ }
22
+ function ArgumentFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'parameter_name': json['parameter_name'],
28
+ 'value': json['value'],
29
+ };
30
+ }
31
+ function ArgumentToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'parameter_name': value.parameter_name,
40
+ 'value': value.value,
41
+ };
42
+ }
@@ -9,13 +9,19 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { DeploymentModality, ParallelismStrategy, Scope } from './';
12
+ import { Argument, DeploymentModality, ParallelismStrategy, Scope } from './';
13
13
  /**
14
14
  *
15
15
  * @export
16
16
  * @interface DeployModelWithStrategyBody
17
17
  */
18
18
  export interface DeployModelWithStrategyBody {
19
+ /**
20
+ *
21
+ * @type {Array<Argument>}
22
+ * @memberof DeployModelWithStrategyBody
23
+ */
24
+ arguments?: Array<Argument> | null;
19
25
  /**
20
26
  *
21
27
  * @type {DeploymentModality}
@@ -52,12 +58,6 @@ export interface DeployModelWithStrategyBody {
52
58
  * @memberof DeployModelWithStrategyBody
53
59
  */
54
60
  parallelism_strategies?: Array<ParallelismStrategy> | null;
55
- /**
56
- *
57
- * @type {any}
58
- * @memberof DeployModelWithStrategyBody
59
- */
60
- params: any | null;
61
61
  /**
62
62
  *
63
63
  * @type {number}
@@ -26,13 +26,13 @@ function DeployModelWithStrategyBodyFromJSONTyped(json, ignoreDiscriminator) {
26
26
  return json;
27
27
  }
28
28
  return {
29
+ 'arguments': !(0, runtime_1.exists)(json, 'arguments') ? undefined : (json['arguments'] === null ? null : json['arguments'].map(_1.ArgumentFromJSON)),
29
30
  'deployment_modality': (0, _1.DeploymentModalityFromJSON)(json['deployment_modality']),
30
31
  'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
31
32
  'model_author': json['model_author'],
32
33
  'model_name': json['model_name'],
33
34
  'name': json['name'],
34
35
  'parallelism_strategies': !(0, runtime_1.exists)(json, 'parallelism_strategies') ? undefined : (json['parallelism_strategies'] === null ? null : json['parallelism_strategies'].map(_1.ParallelismStrategyFromJSON)),
35
- 'params': json['params'],
36
36
  'replicas': !(0, runtime_1.exists)(json, 'replicas') ? undefined : json['replicas'],
37
37
  'scope': !(0, runtime_1.exists)(json, 'scope') ? undefined : (0, _1.ScopeFromJSON)(json['scope']),
38
38
  };
@@ -45,13 +45,13 @@ function DeployModelWithStrategyBodyToJSON(value) {
45
45
  return null;
46
46
  }
47
47
  return {
48
+ 'arguments': value.arguments === undefined ? undefined : (value.arguments === null ? null : value.arguments.map(_1.ArgumentToJSON)),
48
49
  'deployment_modality': (0, _1.DeploymentModalityToJSON)(value.deployment_modality),
49
50
  'description': value.description,
50
51
  'model_author': value.model_author,
51
52
  'model_name': value.model_name,
52
53
  'name': value.name,
53
54
  'parallelism_strategies': value.parallelism_strategies === undefined ? undefined : (value.parallelism_strategies === null ? null : value.parallelism_strategies.map(_1.ParallelismStrategyToJSON)),
54
- 'params': value.params,
55
55
  'replicas': value.replicas,
56
56
  'scope': (0, _1.ScopeToJSON)(value.scope),
57
57
  };
@@ -1,3 +1,4 @@
1
+ export * from './Argument';
1
2
  export * from './BadRequestResponse';
2
3
  export * from './Choice';
3
4
  export * from './DeployModelWithStrategyBody';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
+ __exportStar(require("./Argument"), exports);
19
20
  __exportStar(require("./BadRequestResponse"), exports);
20
21
  __exportStar(require("./Choice"), exports);
21
22
  __exportStar(require("./DeployModelWithStrategyBody"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlhub/deployments-ts-sdk",
3
- "version": "0.14.0",
3
+ "version": "0.16.0",
4
4
  "description": "OpenAPI client for @mlhub/deployments-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "main": "./dist/index.js",
@@ -0,0 +1,64 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MLHub Deployments 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 Argument
20
+ */
21
+ export interface Argument {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Argument
26
+ */
27
+ parameter_name: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Argument
32
+ */
33
+ value: string;
34
+ }
35
+
36
+ export function ArgumentFromJSON(json: any): Argument {
37
+ return ArgumentFromJSONTyped(json, false);
38
+ }
39
+
40
+ export function ArgumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Argument {
41
+ if ((json === undefined) || (json === null)) {
42
+ return json;
43
+ }
44
+ return {
45
+
46
+ 'parameter_name': json['parameter_name'],
47
+ 'value': json['value'],
48
+ };
49
+ }
50
+
51
+ export function ArgumentToJSON(value?: Argument | null): any {
52
+ if (value === undefined) {
53
+ return undefined;
54
+ }
55
+ if (value === null) {
56
+ return null;
57
+ }
58
+ return {
59
+
60
+ 'parameter_name': value.parameter_name,
61
+ 'value': value.value,
62
+ };
63
+ }
64
+
@@ -14,6 +14,10 @@
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
16
  import {
17
+ Argument,
18
+ ArgumentFromJSON,
19
+ ArgumentFromJSONTyped,
20
+ ArgumentToJSON,
17
21
  DeploymentModality,
18
22
  DeploymentModalityFromJSON,
19
23
  DeploymentModalityFromJSONTyped,
@@ -34,6 +38,12 @@ import {
34
38
  * @interface DeployModelWithStrategyBody
35
39
  */
36
40
  export interface DeployModelWithStrategyBody {
41
+ /**
42
+ *
43
+ * @type {Array<Argument>}
44
+ * @memberof DeployModelWithStrategyBody
45
+ */
46
+ arguments?: Array<Argument> | null;
37
47
  /**
38
48
  *
39
49
  * @type {DeploymentModality}
@@ -70,12 +80,6 @@ export interface DeployModelWithStrategyBody {
70
80
  * @memberof DeployModelWithStrategyBody
71
81
  */
72
82
  parallelism_strategies?: Array<ParallelismStrategy> | null;
73
- /**
74
- *
75
- * @type {any}
76
- * @memberof DeployModelWithStrategyBody
77
- */
78
- params: any | null;
79
83
  /**
80
84
  *
81
85
  * @type {number}
@@ -100,13 +104,13 @@ export function DeployModelWithStrategyBodyFromJSONTyped(json: any, ignoreDiscri
100
104
  }
101
105
  return {
102
106
 
107
+ 'arguments': !exists(json, 'arguments') ? undefined : (json['arguments'] === null ? null : (json['arguments'] as Array<any>).map(ArgumentFromJSON)),
103
108
  'deployment_modality': DeploymentModalityFromJSON(json['deployment_modality']),
104
109
  'description': !exists(json, 'description') ? undefined : json['description'],
105
110
  'model_author': json['model_author'],
106
111
  'model_name': json['model_name'],
107
112
  'name': json['name'],
108
113
  'parallelism_strategies': !exists(json, 'parallelism_strategies') ? undefined : (json['parallelism_strategies'] === null ? null : (json['parallelism_strategies'] as Array<any>).map(ParallelismStrategyFromJSON)),
109
- 'params': json['params'],
110
114
  'replicas': !exists(json, 'replicas') ? undefined : json['replicas'],
111
115
  'scope': !exists(json, 'scope') ? undefined : ScopeFromJSON(json['scope']),
112
116
  };
@@ -121,13 +125,13 @@ export function DeployModelWithStrategyBodyToJSON(value?: DeployModelWithStrateg
121
125
  }
122
126
  return {
123
127
 
128
+ 'arguments': value.arguments === undefined ? undefined : (value.arguments === null ? null : (value.arguments as Array<any>).map(ArgumentToJSON)),
124
129
  'deployment_modality': DeploymentModalityToJSON(value.deployment_modality),
125
130
  'description': value.description,
126
131
  'model_author': value.model_author,
127
132
  'model_name': value.model_name,
128
133
  'name': value.name,
129
134
  'parallelism_strategies': value.parallelism_strategies === undefined ? undefined : (value.parallelism_strategies === null ? null : (value.parallelism_strategies as Array<any>).map(ParallelismStrategyToJSON)),
130
- 'params': value.params,
131
135
  'replicas': value.replicas,
132
136
  'scope': ScopeToJSON(value.scope),
133
137
  };
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './Argument';
3
4
  export * from './BadRequestResponse';
4
5
  export * from './Choice';
5
6
  export * from './DeployModelWithStrategyBody';