@mlhub/deployments-ts-sdk 0.10.0 → 0.11.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.
@@ -9,6 +9,7 @@ src/apis/index.ts
9
9
  src/index.ts
10
10
  src/models/BadRequestResponse.ts
11
11
  src/models/DeployModelWithStrategyBody.ts
12
+ src/models/DeploymentModality.ts
12
13
  src/models/DesiredState.ts
13
14
  src/models/GpuResource.ts
14
15
  src/models/ListDeploymentStrategiesResponse.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @mlhub/deployments-ts-sdk@0.10.0
1
+ ## @mlhub/deployments-ts-sdk@0.11.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.10.0 --save
39
+ npm install @mlhub/deployments-ts-sdk@0.11.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -0,0 +1,23 @@
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
+ * @enum {string}
16
+ */
17
+ export declare enum DeploymentModality {
18
+ Batch = "Batch",
19
+ Service = "Service"
20
+ }
21
+ export declare function DeploymentModalityFromJSON(json: any): DeploymentModality;
22
+ export declare function DeploymentModalityFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeploymentModality;
23
+ export declare function DeploymentModalityToJSON(value?: DeploymentModality | null): any;
@@ -0,0 +1,38 @@
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.DeploymentModality = void 0;
17
+ exports.DeploymentModalityFromJSON = DeploymentModalityFromJSON;
18
+ exports.DeploymentModalityFromJSONTyped = DeploymentModalityFromJSONTyped;
19
+ exports.DeploymentModalityToJSON = DeploymentModalityToJSON;
20
+ /**
21
+ *
22
+ * @export
23
+ * @enum {string}
24
+ */
25
+ var DeploymentModality;
26
+ (function (DeploymentModality) {
27
+ DeploymentModality["Batch"] = "Batch";
28
+ DeploymentModality["Service"] = "Service";
29
+ })(DeploymentModality || (exports.DeploymentModality = DeploymentModality = {}));
30
+ function DeploymentModalityFromJSON(json) {
31
+ return DeploymentModalityFromJSONTyped(json, false);
32
+ }
33
+ function DeploymentModalityFromJSONTyped(json, ignoreDiscriminator) {
34
+ return json;
35
+ }
36
+ function DeploymentModalityToJSON(value) {
37
+ return value;
38
+ }
@@ -9,13 +9,19 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Parameter, Platform } from './';
12
+ import { DeploymentModality, Parameter, Platform } from './';
13
13
  /**
14
14
  *
15
15
  * @export
16
16
  * @interface Strategy
17
17
  */
18
18
  export interface Strategy {
19
+ /**
20
+ *
21
+ * @type {DeploymentModality}
22
+ * @memberof Strategy
23
+ */
24
+ deployment_modality: DeploymentModality;
19
25
  /**
20
26
  *
21
27
  * @type {string}
@@ -26,6 +26,7 @@ function StrategyFromJSONTyped(json, ignoreDiscriminator) {
26
26
  return json;
27
27
  }
28
28
  return {
29
+ 'deployment_modality': (0, _1.DeploymentModalityFromJSON)(json['deployment_modality']),
29
30
  'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
30
31
  'name': json['name'],
31
32
  'parameters': (json['parameters'].map(_1.ParameterFromJSON)),
@@ -40,6 +41,7 @@ function StrategyToJSON(value) {
40
41
  return null;
41
42
  }
42
43
  return {
44
+ 'deployment_modality': (0, _1.DeploymentModalityToJSON)(value.deployment_modality),
43
45
  'description': value.description,
44
46
  'name': value.name,
45
47
  'parameters': (value.parameters.map(_1.ParameterToJSON)),
@@ -1,5 +1,6 @@
1
1
  export * from './BadRequestResponse';
2
2
  export * from './DeployModelWithStrategyBody';
3
+ export * from './DeploymentModality';
3
4
  export * from './DesiredState';
4
5
  export * from './GpuResource';
5
6
  export * from './ListDeploymentStrategiesResponse';
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./BadRequestResponse"), exports);
20
20
  __exportStar(require("./DeployModelWithStrategyBody"), exports);
21
+ __exportStar(require("./DeploymentModality"), exports);
21
22
  __exportStar(require("./DesiredState"), exports);
22
23
  __exportStar(require("./GpuResource"), exports);
23
24
  __exportStar(require("./ListDeploymentStrategiesResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlhub/deployments-ts-sdk",
3
- "version": "0.10.0",
3
+ "version": "0.11.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,36 @@
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
+ /**
16
+ *
17
+ * @export
18
+ * @enum {string}
19
+ */
20
+ export enum DeploymentModality {
21
+ Batch = 'Batch',
22
+ Service = 'Service'
23
+ }
24
+
25
+ export function DeploymentModalityFromJSON(json: any): DeploymentModality {
26
+ return DeploymentModalityFromJSONTyped(json, false);
27
+ }
28
+
29
+ export function DeploymentModalityFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeploymentModality {
30
+ return json as DeploymentModality;
31
+ }
32
+
33
+ export function DeploymentModalityToJSON(value?: DeploymentModality | null): any {
34
+ return value as any;
35
+ }
36
+
@@ -14,6 +14,10 @@
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
16
  import {
17
+ DeploymentModality,
18
+ DeploymentModalityFromJSON,
19
+ DeploymentModalityFromJSONTyped,
20
+ DeploymentModalityToJSON,
17
21
  Parameter,
18
22
  ParameterFromJSON,
19
23
  ParameterFromJSONTyped,
@@ -30,6 +34,12 @@ import {
30
34
  * @interface Strategy
31
35
  */
32
36
  export interface Strategy {
37
+ /**
38
+ *
39
+ * @type {DeploymentModality}
40
+ * @memberof Strategy
41
+ */
42
+ deployment_modality: DeploymentModality;
33
43
  /**
34
44
  *
35
45
  * @type {string}
@@ -66,6 +76,7 @@ export function StrategyFromJSONTyped(json: any, ignoreDiscriminator: boolean):
66
76
  }
67
77
  return {
68
78
 
79
+ 'deployment_modality': DeploymentModalityFromJSON(json['deployment_modality']),
69
80
  'description': !exists(json, 'description') ? undefined : json['description'],
70
81
  'name': json['name'],
71
82
  'parameters': ((json['parameters'] as Array<any>).map(ParameterFromJSON)),
@@ -82,6 +93,7 @@ export function StrategyToJSON(value?: Strategy | null): any {
82
93
  }
83
94
  return {
84
95
 
96
+ 'deployment_modality': DeploymentModalityToJSON(value.deployment_modality),
85
97
  'description': value.description,
86
98
  'name': value.name,
87
99
  'parameters': ((value.parameters as Array<any>).map(ParameterToJSON)),
@@ -2,6 +2,7 @@
2
2
  /* eslint-disable */
3
3
  export * from './BadRequestResponse';
4
4
  export * from './DeployModelWithStrategyBody';
5
+ export * from './DeploymentModality';
5
6
  export * from './DesiredState';
6
7
  export * from './GpuResource';
7
8
  export * from './ListDeploymentStrategiesResponse';