@mlhub/deployments-ts-sdk 0.1.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/.openapi-generator/FILES +38 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +45 -0
- package/dist/apis/DeploymentsApi.d.ts +64 -0
- package/dist/apis/DeploymentsApi.js +264 -0
- package/dist/apis/StrategiesApi.d.ts +26 -0
- package/dist/apis/StrategiesApi.js +121 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +20 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/BadRequestResponse.d.ts +51 -0
- package/dist/models/BadRequestResponse.js +48 -0
- package/dist/models/ClientStrategySet.d.ts +52 -0
- package/dist/models/ClientStrategySet.js +50 -0
- package/dist/models/DeployModelWithStrategyBody.d.ts +39 -0
- package/dist/models/DeployModelWithStrategyBody.js +44 -0
- package/dist/models/DesiredState.d.ts +24 -0
- package/dist/models/DesiredState.js +39 -0
- package/dist/models/GpuResource.d.ts +39 -0
- package/dist/models/GpuResource.js +45 -0
- package/dist/models/ListDeploymentStrategiesResponse.d.ts +52 -0
- package/dist/models/ListDeploymentStrategiesResponse.js +49 -0
- package/dist/models/ModelDeployment.d.ts +126 -0
- package/dist/models/ModelDeployment.js +74 -0
- package/dist/models/ModelDeploymentInterface.d.ts +21 -0
- package/dist/models/ModelDeploymentInterface.js +48 -0
- package/dist/models/ModelDeploymentInterfaceOneOf.d.ts +28 -0
- package/dist/models/ModelDeploymentInterfaceOneOf.js +41 -0
- package/dist/models/ModelDeploymentResponse.d.ts +52 -0
- package/dist/models/ModelDeploymentResponse.js +49 -0
- package/dist/models/ModelReference.d.ts +33 -0
- package/dist/models/ModelReference.js +42 -0
- package/dist/models/NotFoundResponse.d.ts +51 -0
- package/dist/models/NotFoundResponse.js +48 -0
- package/dist/models/Operator.d.ts +33 -0
- package/dist/models/Operator.js +48 -0
- package/dist/models/ParallelismStrategy.d.ts +25 -0
- package/dist/models/ParallelismStrategy.js +40 -0
- package/dist/models/Parameter.d.ts +27 -0
- package/dist/models/Parameter.js +40 -0
- package/dist/models/ParameterSet.d.ts +34 -0
- package/dist/models/ParameterSet.js +43 -0
- package/dist/models/Platform.d.ts +31 -0
- package/dist/models/Platform.js +46 -0
- package/dist/models/ReplicaGroup.d.ts +40 -0
- package/dist/models/ReplicaGroup.js +45 -0
- package/dist/models/ResourceRequirements.d.ts +46 -0
- package/dist/models/ResourceRequirements.js +48 -0
- package/dist/models/RestApi.d.ts +27 -0
- package/dist/models/RestApi.js +40 -0
- package/dist/models/Rule.d.ts +40 -0
- package/dist/models/Rule.js +45 -0
- package/dist/models/RuleSet.d.ts +34 -0
- package/dist/models/RuleSet.js +43 -0
- package/dist/models/ServerErrorResponse.d.ts +51 -0
- package/dist/models/ServerErrorResponse.js +48 -0
- package/dist/models/State.d.ts +27 -0
- package/dist/models/State.js +42 -0
- package/dist/models/Strategy.d.ts +46 -0
- package/dist/models/Strategy.js +48 -0
- package/dist/models/Visibility.d.ts +23 -0
- package/dist/models/Visibility.js +38 -0
- package/dist/models/index.d.ts +26 -0
- package/dist/models/index.js +44 -0
- package/dist/runtime.d.ts +140 -0
- package/dist/runtime.js +430 -0
- package/package.json +15 -0
- package/src/apis/DeploymentsApi.ts +192 -0
- package/src/apis/StrategiesApi.ts +63 -0
- package/src/apis/index.ts +4 -0
- package/src/index.ts +5 -0
- package/src/models/BadRequestResponse.ts +88 -0
- package/src/models/ClientStrategySet.ts +107 -0
- package/src/models/DeployModelWithStrategyBody.ts +72 -0
- package/src/models/DesiredState.ts +37 -0
- package/src/models/GpuResource.ts +72 -0
- package/src/models/ListDeploymentStrategiesResponse.ts +95 -0
- package/src/models/ModelDeployment.ts +215 -0
- package/src/models/ModelDeploymentInterface.ts +48 -0
- package/src/models/ModelDeploymentInterfaceOneOf.ts +63 -0
- package/src/models/ModelDeploymentResponse.ts +95 -0
- package/src/models/ModelReference.ts +64 -0
- package/src/models/NotFoundResponse.ts +88 -0
- package/src/models/Operator.ts +46 -0
- package/src/models/ParallelismStrategy.ts +38 -0
- package/src/models/Parameter.ts +56 -0
- package/src/models/ParameterSet.ts +71 -0
- package/src/models/Platform.ts +44 -0
- package/src/models/ReplicaGroup.ts +83 -0
- package/src/models/ResourceRequirements.ts +87 -0
- package/src/models/RestApi.ts +56 -0
- package/src/models/Rule.ts +79 -0
- package/src/models/RuleSet.ts +71 -0
- package/src/models/ServerErrorResponse.ts +88 -0
- package/src/models/State.ts +40 -0
- package/src/models/Strategy.ts +91 -0
- package/src/models/Visibility.ts +36 -0
- package/src/models/index.ts +28 -0
- package/src/runtime.ts +320 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,51 @@
|
|
|
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 BadRequestResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface BadRequestResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BadRequestResponse
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof BadRequestResponse
|
|
28
|
+
*/
|
|
29
|
+
metadata: object;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {any}
|
|
33
|
+
* @memberof BadRequestResponse
|
|
34
|
+
*/
|
|
35
|
+
result: any | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof BadRequestResponse
|
|
40
|
+
*/
|
|
41
|
+
status: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof BadRequestResponse
|
|
46
|
+
*/
|
|
47
|
+
version: string;
|
|
48
|
+
}
|
|
49
|
+
export declare function BadRequestResponseFromJSON(json: any): BadRequestResponse;
|
|
50
|
+
export declare function BadRequestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BadRequestResponse;
|
|
51
|
+
export declare function BadRequestResponseToJSON(value?: BadRequestResponse | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.BadRequestResponseFromJSON = BadRequestResponseFromJSON;
|
|
17
|
+
exports.BadRequestResponseFromJSONTyped = BadRequestResponseFromJSONTyped;
|
|
18
|
+
exports.BadRequestResponseToJSON = BadRequestResponseToJSON;
|
|
19
|
+
function BadRequestResponseFromJSON(json) {
|
|
20
|
+
return BadRequestResponseFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
function BadRequestResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'message': json['message'],
|
|
28
|
+
'metadata': json['metadata'],
|
|
29
|
+
'result': json['result'],
|
|
30
|
+
'status': json['status'],
|
|
31
|
+
'version': json['version'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function BadRequestResponseToJSON(value) {
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (value === null) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'message': value.message,
|
|
43
|
+
'metadata': value.metadata,
|
|
44
|
+
'result': value.result,
|
|
45
|
+
'status': value.status,
|
|
46
|
+
'version': value.version,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
import { ParameterSet, Platform, RuleSet, Strategy } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ClientStrategySet
|
|
17
|
+
*/
|
|
18
|
+
export interface ClientStrategySet {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ClientStrategySet
|
|
23
|
+
*/
|
|
24
|
+
description?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<ParameterSet>}
|
|
28
|
+
* @memberof ClientStrategySet
|
|
29
|
+
*/
|
|
30
|
+
parameter_sets?: Array<ParameterSet> | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Platform}
|
|
34
|
+
* @memberof ClientStrategySet
|
|
35
|
+
*/
|
|
36
|
+
platform: Platform;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<RuleSet>}
|
|
40
|
+
* @memberof ClientStrategySet
|
|
41
|
+
*/
|
|
42
|
+
rule_sets?: Array<RuleSet> | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<Strategy>}
|
|
46
|
+
* @memberof ClientStrategySet
|
|
47
|
+
*/
|
|
48
|
+
strategies: Array<Strategy>;
|
|
49
|
+
}
|
|
50
|
+
export declare function ClientStrategySetFromJSON(json: any): ClientStrategySet;
|
|
51
|
+
export declare function ClientStrategySetFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientStrategySet;
|
|
52
|
+
export declare function ClientStrategySetToJSON(value?: ClientStrategySet | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.ClientStrategySetFromJSON = ClientStrategySetFromJSON;
|
|
17
|
+
exports.ClientStrategySetFromJSONTyped = ClientStrategySetFromJSONTyped;
|
|
18
|
+
exports.ClientStrategySetToJSON = ClientStrategySetToJSON;
|
|
19
|
+
var runtime_1 = require("../runtime");
|
|
20
|
+
var _1 = require("./");
|
|
21
|
+
function ClientStrategySetFromJSON(json) {
|
|
22
|
+
return ClientStrategySetFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
function ClientStrategySetFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if ((json === undefined) || (json === null)) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
30
|
+
'parameter_sets': !(0, runtime_1.exists)(json, 'parameter_sets') ? undefined : (json['parameter_sets'] === null ? null : json['parameter_sets'].map(_1.ParameterSetFromJSON)),
|
|
31
|
+
'platform': (0, _1.PlatformFromJSON)(json['platform']),
|
|
32
|
+
'rule_sets': !(0, runtime_1.exists)(json, 'rule_sets') ? undefined : (json['rule_sets'] === null ? null : json['rule_sets'].map(_1.RuleSetFromJSON)),
|
|
33
|
+
'strategies': (json['strategies'].map(_1.StrategyFromJSON)),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function ClientStrategySetToJSON(value) {
|
|
37
|
+
if (value === undefined) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
if (value === null) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'description': value.description,
|
|
45
|
+
'parameter_sets': value.parameter_sets === undefined ? undefined : (value.parameter_sets === null ? null : value.parameter_sets.map(_1.ParameterSetToJSON)),
|
|
46
|
+
'platform': (0, _1.PlatformToJSON)(value.platform),
|
|
47
|
+
'rule_sets': value.rule_sets === undefined ? undefined : (value.rule_sets === null ? null : value.rule_sets.map(_1.RuleSetToJSON)),
|
|
48
|
+
'strategies': (value.strategies.map(_1.StrategyToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 DeployModelWithStrategyBody
|
|
16
|
+
*/
|
|
17
|
+
export interface DeployModelWithStrategyBody {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DeployModelWithStrategyBody
|
|
22
|
+
*/
|
|
23
|
+
model_author: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DeployModelWithStrategyBody
|
|
28
|
+
*/
|
|
29
|
+
model_name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {any}
|
|
33
|
+
* @memberof DeployModelWithStrategyBody
|
|
34
|
+
*/
|
|
35
|
+
params: any | null;
|
|
36
|
+
}
|
|
37
|
+
export declare function DeployModelWithStrategyBodyFromJSON(json: any): DeployModelWithStrategyBody;
|
|
38
|
+
export declare function DeployModelWithStrategyBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeployModelWithStrategyBody;
|
|
39
|
+
export declare function DeployModelWithStrategyBodyToJSON(value?: DeployModelWithStrategyBody | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
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.DeployModelWithStrategyBodyFromJSON = DeployModelWithStrategyBodyFromJSON;
|
|
17
|
+
exports.DeployModelWithStrategyBodyFromJSONTyped = DeployModelWithStrategyBodyFromJSONTyped;
|
|
18
|
+
exports.DeployModelWithStrategyBodyToJSON = DeployModelWithStrategyBodyToJSON;
|
|
19
|
+
function DeployModelWithStrategyBodyFromJSON(json) {
|
|
20
|
+
return DeployModelWithStrategyBodyFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
function DeployModelWithStrategyBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'model_author': json['model_author'],
|
|
28
|
+
'model_name': json['model_name'],
|
|
29
|
+
'params': json['params'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function DeployModelWithStrategyBodyToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'model_author': value.model_author,
|
|
41
|
+
'model_name': value.model_name,
|
|
42
|
+
'params': value.params,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 DesiredState {
|
|
18
|
+
Running = "Running",
|
|
19
|
+
Stopped = "Stopped",
|
|
20
|
+
NotDeployed = "NotDeployed"
|
|
21
|
+
}
|
|
22
|
+
export declare function DesiredStateFromJSON(json: any): DesiredState;
|
|
23
|
+
export declare function DesiredStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): DesiredState;
|
|
24
|
+
export declare function DesiredStateToJSON(value?: DesiredState | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
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.DesiredState = void 0;
|
|
17
|
+
exports.DesiredStateFromJSON = DesiredStateFromJSON;
|
|
18
|
+
exports.DesiredStateFromJSONTyped = DesiredStateFromJSONTyped;
|
|
19
|
+
exports.DesiredStateToJSON = DesiredStateToJSON;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @enum {string}
|
|
24
|
+
*/
|
|
25
|
+
var DesiredState;
|
|
26
|
+
(function (DesiredState) {
|
|
27
|
+
DesiredState["Running"] = "Running";
|
|
28
|
+
DesiredState["Stopped"] = "Stopped";
|
|
29
|
+
DesiredState["NotDeployed"] = "NotDeployed";
|
|
30
|
+
})(DesiredState || (exports.DesiredState = DesiredState = {}));
|
|
31
|
+
function DesiredStateFromJSON(json) {
|
|
32
|
+
return DesiredStateFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function DesiredStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
function DesiredStateToJSON(value) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 GpuResource
|
|
16
|
+
*/
|
|
17
|
+
export interface GpuResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GpuResource
|
|
22
|
+
*/
|
|
23
|
+
gpu_type?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof GpuResource
|
|
28
|
+
*/
|
|
29
|
+
memory?: number | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GpuResource
|
|
34
|
+
*/
|
|
35
|
+
vendor?: string | null;
|
|
36
|
+
}
|
|
37
|
+
export declare function GpuResourceFromJSON(json: any): GpuResource;
|
|
38
|
+
export declare function GpuResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GpuResource;
|
|
39
|
+
export declare function GpuResourceToJSON(value?: GpuResource | null): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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.GpuResourceFromJSON = GpuResourceFromJSON;
|
|
17
|
+
exports.GpuResourceFromJSONTyped = GpuResourceFromJSONTyped;
|
|
18
|
+
exports.GpuResourceToJSON = GpuResourceToJSON;
|
|
19
|
+
var runtime_1 = require("../runtime");
|
|
20
|
+
function GpuResourceFromJSON(json) {
|
|
21
|
+
return GpuResourceFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
function GpuResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'gpu_type': !(0, runtime_1.exists)(json, 'gpu_type') ? undefined : json['gpu_type'],
|
|
29
|
+
'memory': !(0, runtime_1.exists)(json, 'memory') ? undefined : json['memory'],
|
|
30
|
+
'vendor': !(0, runtime_1.exists)(json, 'vendor') ? undefined : json['vendor'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function GpuResourceToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'gpu_type': value.gpu_type,
|
|
42
|
+
'memory': value.memory,
|
|
43
|
+
'vendor': value.vendor,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
import { ClientStrategySet } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListDeploymentStrategiesResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ListDeploymentStrategiesResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ListDeploymentStrategiesResponse
|
|
23
|
+
*/
|
|
24
|
+
message: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {object}
|
|
28
|
+
* @memberof ListDeploymentStrategiesResponse
|
|
29
|
+
*/
|
|
30
|
+
metadata: object;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<ClientStrategySet>}
|
|
34
|
+
* @memberof ListDeploymentStrategiesResponse
|
|
35
|
+
*/
|
|
36
|
+
result: Array<ClientStrategySet>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ListDeploymentStrategiesResponse
|
|
41
|
+
*/
|
|
42
|
+
status: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ListDeploymentStrategiesResponse
|
|
47
|
+
*/
|
|
48
|
+
version: string;
|
|
49
|
+
}
|
|
50
|
+
export declare function ListDeploymentStrategiesResponseFromJSON(json: any): ListDeploymentStrategiesResponse;
|
|
51
|
+
export declare function ListDeploymentStrategiesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListDeploymentStrategiesResponse;
|
|
52
|
+
export declare function ListDeploymentStrategiesResponseToJSON(value?: ListDeploymentStrategiesResponse | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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.ListDeploymentStrategiesResponseFromJSON = ListDeploymentStrategiesResponseFromJSON;
|
|
17
|
+
exports.ListDeploymentStrategiesResponseFromJSONTyped = ListDeploymentStrategiesResponseFromJSONTyped;
|
|
18
|
+
exports.ListDeploymentStrategiesResponseToJSON = ListDeploymentStrategiesResponseToJSON;
|
|
19
|
+
var _1 = require("./");
|
|
20
|
+
function ListDeploymentStrategiesResponseFromJSON(json) {
|
|
21
|
+
return ListDeploymentStrategiesResponseFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
function ListDeploymentStrategiesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'message': json['message'],
|
|
29
|
+
'metadata': json['metadata'],
|
|
30
|
+
'result': (json['result'].map(_1.ClientStrategySetFromJSON)),
|
|
31
|
+
'status': json['status'],
|
|
32
|
+
'version': json['version'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function ListDeploymentStrategiesResponseToJSON(value) {
|
|
36
|
+
if (value === undefined) {
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
if (value === null) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'message': value.message,
|
|
44
|
+
'metadata': value.metadata,
|
|
45
|
+
'result': (value.result.map(_1.ClientStrategySetToJSON)),
|
|
46
|
+
'status': value.status,
|
|
47
|
+
'version': value.version,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
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
|
+
import { DesiredState, ModelDeploymentInterface, ModelReference, Platform, ReplicaGroup, State, Visibility } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ModelDeployment
|
|
17
|
+
*/
|
|
18
|
+
export interface ModelDeployment {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ModelDeployment
|
|
23
|
+
*/
|
|
24
|
+
created_at: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ModelDeploymentInterface}
|
|
28
|
+
* @memberof ModelDeployment
|
|
29
|
+
*/
|
|
30
|
+
deployment_interface?: ModelDeploymentInterface;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ModelDeployment
|
|
35
|
+
*/
|
|
36
|
+
deployment_strategy?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {DesiredState}
|
|
40
|
+
* @memberof ModelDeployment
|
|
41
|
+
*/
|
|
42
|
+
desired_state: DesiredState;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ModelDeployment
|
|
47
|
+
*/
|
|
48
|
+
id: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ModelDeployment
|
|
53
|
+
*/
|
|
54
|
+
last_desired_state_change: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ModelDeployment
|
|
59
|
+
*/
|
|
60
|
+
last_message?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ModelDeployment
|
|
65
|
+
*/
|
|
66
|
+
last_modified: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof ModelDeployment
|
|
71
|
+
*/
|
|
72
|
+
last_state_change: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {{ [key: string]: any; }}
|
|
76
|
+
* @memberof ModelDeployment
|
|
77
|
+
*/
|
|
78
|
+
metadata?: {
|
|
79
|
+
[key: string]: any;
|
|
80
|
+
} | null;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {ModelReference}
|
|
84
|
+
* @memberof ModelDeployment
|
|
85
|
+
*/
|
|
86
|
+
model: ModelReference;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof ModelDeployment
|
|
91
|
+
*/
|
|
92
|
+
owner: string;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {Platform}
|
|
96
|
+
* @memberof ModelDeployment
|
|
97
|
+
*/
|
|
98
|
+
platform: Platform;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {ReplicaGroup}
|
|
102
|
+
* @memberof ModelDeployment
|
|
103
|
+
*/
|
|
104
|
+
replicas?: ReplicaGroup;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {number}
|
|
108
|
+
* @memberof ModelDeployment
|
|
109
|
+
*/
|
|
110
|
+
revision: number;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {State}
|
|
114
|
+
* @memberof ModelDeployment
|
|
115
|
+
*/
|
|
116
|
+
state: State;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {Visibility}
|
|
120
|
+
* @memberof ModelDeployment
|
|
121
|
+
*/
|
|
122
|
+
visibility: Visibility;
|
|
123
|
+
}
|
|
124
|
+
export declare function ModelDeploymentFromJSON(json: any): ModelDeployment;
|
|
125
|
+
export declare function ModelDeploymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelDeployment;
|
|
126
|
+
export declare function ModelDeploymentToJSON(value?: ModelDeployment | null): any;
|