@mlhub/deployments-ts-sdk 0.9.0 → 0.10.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.
- package/README.md +2 -2
- package/dist/apis/DeploymentsApi.d.ts +0 -14
- package/dist/apis/DeploymentsApi.js +2 -29
- package/package.json +1 -1
- package/src/apis/DeploymentsApi.ts +1 -40
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @mlhub/deployments-ts-sdk@0.
|
|
1
|
+
## @mlhub/deployments-ts-sdk@0.10.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.
|
|
39
|
+
npm install @mlhub/deployments-ts-sdk@0.10.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -14,12 +14,6 @@ import { DeployModelWithStrategyBody, ModelDeploymentResponse, Platform } from '
|
|
|
14
14
|
export interface DeployModelWithStrategyRequest {
|
|
15
15
|
platform: Platform;
|
|
16
16
|
strategyName: string;
|
|
17
|
-
name: string;
|
|
18
|
-
description: string | null;
|
|
19
|
-
modelName: string;
|
|
20
|
-
modelAuthor: string;
|
|
21
|
-
params: any;
|
|
22
|
-
scope: DeployModelWithStrategyScopeEnum;
|
|
23
17
|
deployModelWithStrategyBody: DeployModelWithStrategyBody;
|
|
24
18
|
}
|
|
25
19
|
export interface StartModelDeploymentRequest {
|
|
@@ -68,11 +62,3 @@ export declare class DeploymentsApi extends runtime.BaseAPI {
|
|
|
68
62
|
*/
|
|
69
63
|
undeployModelDeployment(requestParameters: UndeployModelDeploymentRequest, initOverrides?: RequestInit): Promise<ModelDeploymentResponse>;
|
|
70
64
|
}
|
|
71
|
-
/**
|
|
72
|
-
* @export
|
|
73
|
-
* @enum {string}
|
|
74
|
-
*/
|
|
75
|
-
export declare enum DeployModelWithStrategyScopeEnum {
|
|
76
|
-
Tenant = "tenant",
|
|
77
|
-
Global = "global"
|
|
78
|
-
}
|
|
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.
|
|
67
|
+
exports.DeploymentsApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var models_1 = require("../models");
|
|
70
70
|
/**
|
|
@@ -90,24 +90,6 @@ var DeploymentsApi = /** @class */ (function (_super) {
|
|
|
90
90
|
if (requestParameters.strategyName === null || requestParameters.strategyName === undefined) {
|
|
91
91
|
throw new runtime.RequiredError('strategyName', 'Required parameter requestParameters.strategyName was null or undefined when calling deployModelWithStrategy.');
|
|
92
92
|
}
|
|
93
|
-
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
94
|
-
throw new runtime.RequiredError('name', 'Required parameter requestParameters.name was null or undefined when calling deployModelWithStrategy.');
|
|
95
|
-
}
|
|
96
|
-
if (requestParameters.description === null || requestParameters.description === undefined) {
|
|
97
|
-
throw new runtime.RequiredError('description', 'Required parameter requestParameters.description was null or undefined when calling deployModelWithStrategy.');
|
|
98
|
-
}
|
|
99
|
-
if (requestParameters.modelName === null || requestParameters.modelName === undefined) {
|
|
100
|
-
throw new runtime.RequiredError('modelName', 'Required parameter requestParameters.modelName was null or undefined when calling deployModelWithStrategy.');
|
|
101
|
-
}
|
|
102
|
-
if (requestParameters.modelAuthor === null || requestParameters.modelAuthor === undefined) {
|
|
103
|
-
throw new runtime.RequiredError('modelAuthor', 'Required parameter requestParameters.modelAuthor was null or undefined when calling deployModelWithStrategy.');
|
|
104
|
-
}
|
|
105
|
-
if (requestParameters.params === null || requestParameters.params === undefined) {
|
|
106
|
-
throw new runtime.RequiredError('params', 'Required parameter requestParameters.params was null or undefined when calling deployModelWithStrategy.');
|
|
107
|
-
}
|
|
108
|
-
if (requestParameters.scope === null || requestParameters.scope === undefined) {
|
|
109
|
-
throw new runtime.RequiredError('scope', 'Required parameter requestParameters.scope was null or undefined when calling deployModelWithStrategy.');
|
|
110
|
-
}
|
|
111
93
|
if (requestParameters.deployModelWithStrategyBody === null || requestParameters.deployModelWithStrategyBody === undefined) {
|
|
112
94
|
throw new runtime.RequiredError('deployModelWithStrategyBody', 'Required parameter requestParameters.deployModelWithStrategyBody was null or undefined when calling deployModelWithStrategy.');
|
|
113
95
|
}
|
|
@@ -115,7 +97,7 @@ var DeploymentsApi = /** @class */ (function (_super) {
|
|
|
115
97
|
headerParameters = {};
|
|
116
98
|
headerParameters['Content-Type'] = 'application/json';
|
|
117
99
|
return [4 /*yield*/, this.request({
|
|
118
|
-
path: "/deployments-api/platforms/{platform}/strategies/{strategy_name}".replace("{".concat("platform", "}"), encodeURIComponent(String(requestParameters.platform))).replace("{".concat("strategy_name", "}"), encodeURIComponent(String(requestParameters.strategyName)))
|
|
100
|
+
path: "/deployments-api/platforms/{platform}/strategies/{strategy_name}".replace("{".concat("platform", "}"), encodeURIComponent(String(requestParameters.platform))).replace("{".concat("strategy_name", "}"), encodeURIComponent(String(requestParameters.strategyName))),
|
|
119
101
|
method: 'POST',
|
|
120
102
|
headers: headerParameters,
|
|
121
103
|
query: queryParameters,
|
|
@@ -280,12 +262,3 @@ var DeploymentsApi = /** @class */ (function (_super) {
|
|
|
280
262
|
return DeploymentsApi;
|
|
281
263
|
}(runtime.BaseAPI));
|
|
282
264
|
exports.DeploymentsApi = DeploymentsApi;
|
|
283
|
-
/**
|
|
284
|
-
* @export
|
|
285
|
-
* @enum {string}
|
|
286
|
-
*/
|
|
287
|
-
var DeployModelWithStrategyScopeEnum;
|
|
288
|
-
(function (DeployModelWithStrategyScopeEnum) {
|
|
289
|
-
DeployModelWithStrategyScopeEnum["Tenant"] = "tenant";
|
|
290
|
-
DeployModelWithStrategyScopeEnum["Global"] = "global";
|
|
291
|
-
})(DeployModelWithStrategyScopeEnum || (exports.DeployModelWithStrategyScopeEnum = DeployModelWithStrategyScopeEnum = {}));
|
package/package.json
CHANGED
|
@@ -38,12 +38,6 @@ import {
|
|
|
38
38
|
export interface DeployModelWithStrategyRequest {
|
|
39
39
|
platform: Platform;
|
|
40
40
|
strategyName: string;
|
|
41
|
-
name: string;
|
|
42
|
-
description: string | null;
|
|
43
|
-
modelName: string;
|
|
44
|
-
modelAuthor: string;
|
|
45
|
-
params: any;
|
|
46
|
-
scope: DeployModelWithStrategyScopeEnum;
|
|
47
41
|
deployModelWithStrategyBody: DeployModelWithStrategyBody;
|
|
48
42
|
}
|
|
49
43
|
|
|
@@ -76,30 +70,6 @@ export class DeploymentsApi extends runtime.BaseAPI {
|
|
|
76
70
|
throw new runtime.RequiredError('strategyName','Required parameter requestParameters.strategyName was null or undefined when calling deployModelWithStrategy.');
|
|
77
71
|
}
|
|
78
72
|
|
|
79
|
-
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
80
|
-
throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling deployModelWithStrategy.');
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
if (requestParameters.description === null || requestParameters.description === undefined) {
|
|
84
|
-
throw new runtime.RequiredError('description','Required parameter requestParameters.description was null or undefined when calling deployModelWithStrategy.');
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
if (requestParameters.modelName === null || requestParameters.modelName === undefined) {
|
|
88
|
-
throw new runtime.RequiredError('modelName','Required parameter requestParameters.modelName was null or undefined when calling deployModelWithStrategy.');
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
if (requestParameters.modelAuthor === null || requestParameters.modelAuthor === undefined) {
|
|
92
|
-
throw new runtime.RequiredError('modelAuthor','Required parameter requestParameters.modelAuthor was null or undefined when calling deployModelWithStrategy.');
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
if (requestParameters.params === null || requestParameters.params === undefined) {
|
|
96
|
-
throw new runtime.RequiredError('params','Required parameter requestParameters.params was null or undefined when calling deployModelWithStrategy.');
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
if (requestParameters.scope === null || requestParameters.scope === undefined) {
|
|
100
|
-
throw new runtime.RequiredError('scope','Required parameter requestParameters.scope was null or undefined when calling deployModelWithStrategy.');
|
|
101
|
-
}
|
|
102
|
-
|
|
103
73
|
if (requestParameters.deployModelWithStrategyBody === null || requestParameters.deployModelWithStrategyBody === undefined) {
|
|
104
74
|
throw new runtime.RequiredError('deployModelWithStrategyBody','Required parameter requestParameters.deployModelWithStrategyBody was null or undefined when calling deployModelWithStrategy.');
|
|
105
75
|
}
|
|
@@ -111,7 +81,7 @@ export class DeploymentsApi extends runtime.BaseAPI {
|
|
|
111
81
|
headerParameters['Content-Type'] = 'application/json';
|
|
112
82
|
|
|
113
83
|
const response = await this.request({
|
|
114
|
-
path: `/deployments-api/platforms/{platform}/strategies/{strategy_name}`.replace(`{${"platform"}}`, encodeURIComponent(String(requestParameters.platform))).replace(`{${"strategy_name"}}`, encodeURIComponent(String(requestParameters.strategyName)))
|
|
84
|
+
path: `/deployments-api/platforms/{platform}/strategies/{strategy_name}`.replace(`{${"platform"}}`, encodeURIComponent(String(requestParameters.platform))).replace(`{${"strategy_name"}}`, encodeURIComponent(String(requestParameters.strategyName))),
|
|
115
85
|
method: 'POST',
|
|
116
86
|
headers: headerParameters,
|
|
117
87
|
query: queryParameters,
|
|
@@ -220,12 +190,3 @@ export class DeploymentsApi extends runtime.BaseAPI {
|
|
|
220
190
|
}
|
|
221
191
|
|
|
222
192
|
}
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* @export
|
|
226
|
-
* @enum {string}
|
|
227
|
-
*/
|
|
228
|
-
export enum DeployModelWithStrategyScopeEnum {
|
|
229
|
-
Tenant = 'tenant',
|
|
230
|
-
Global = 'global'
|
|
231
|
-
}
|