@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,40 @@
|
|
|
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.ParameterFromJSON = ParameterFromJSON;
|
|
17
|
+
exports.ParameterFromJSONTyped = ParameterFromJSONTyped;
|
|
18
|
+
exports.ParameterToJSON = ParameterToJSON;
|
|
19
|
+
function ParameterFromJSON(json) {
|
|
20
|
+
return ParameterFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
function ParameterFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'name': json['name'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function ParameterToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'name': value.name,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { Parameter } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ParameterSet
|
|
17
|
+
*/
|
|
18
|
+
export interface ParameterSet {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ParameterSet
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<Parameter>}
|
|
28
|
+
* @memberof ParameterSet
|
|
29
|
+
*/
|
|
30
|
+
parameters: Array<Parameter>;
|
|
31
|
+
}
|
|
32
|
+
export declare function ParameterSetFromJSON(json: any): ParameterSet;
|
|
33
|
+
export declare function ParameterSetFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParameterSet;
|
|
34
|
+
export declare function ParameterSetToJSON(value?: ParameterSet | null): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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.ParameterSetFromJSON = ParameterSetFromJSON;
|
|
17
|
+
exports.ParameterSetFromJSONTyped = ParameterSetFromJSONTyped;
|
|
18
|
+
exports.ParameterSetToJSON = ParameterSetToJSON;
|
|
19
|
+
var _1 = require("./");
|
|
20
|
+
function ParameterSetFromJSON(json) {
|
|
21
|
+
return ParameterSetFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
function ParameterSetFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'name': json['name'],
|
|
29
|
+
'parameters': (json['parameters'].map(_1.ParameterFromJSON)),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function ParameterSetToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': value.name,
|
|
41
|
+
'parameters': (value.parameters.map(_1.ParameterToJSON)),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
* Represents a platform for which there are clients registered for one or more of
|
|
14
|
+
* the following APIs: Models, Datasets, Inference, Training. The strum(serialize="")
|
|
15
|
+
* attribute corresponds to the desired "platform" path parameter passed to the
|
|
16
|
+
* `get_client` method of a registrar.
|
|
17
|
+
* @export
|
|
18
|
+
* @enum {string}
|
|
19
|
+
*/
|
|
20
|
+
export declare enum Platform {
|
|
21
|
+
HuggingFace = "hugging-face",
|
|
22
|
+
Github = "github",
|
|
23
|
+
Git = "git",
|
|
24
|
+
Patra = "patra",
|
|
25
|
+
TapisPods = "tapis-pods",
|
|
26
|
+
TapisJobs = "tapis-jobs",
|
|
27
|
+
S3 = "s3"
|
|
28
|
+
}
|
|
29
|
+
export declare function PlatformFromJSON(json: any): Platform;
|
|
30
|
+
export declare function PlatformFromJSONTyped(json: any, ignoreDiscriminator: boolean): Platform;
|
|
31
|
+
export declare function PlatformToJSON(value?: Platform | null): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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.Platform = void 0;
|
|
17
|
+
exports.PlatformFromJSON = PlatformFromJSON;
|
|
18
|
+
exports.PlatformFromJSONTyped = PlatformFromJSONTyped;
|
|
19
|
+
exports.PlatformToJSON = PlatformToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Represents a platform for which there are clients registered for one or more of
|
|
22
|
+
* the following APIs: Models, Datasets, Inference, Training. The strum(serialize="")
|
|
23
|
+
* attribute corresponds to the desired "platform" path parameter passed to the
|
|
24
|
+
* `get_client` method of a registrar.
|
|
25
|
+
* @export
|
|
26
|
+
* @enum {string}
|
|
27
|
+
*/
|
|
28
|
+
var Platform;
|
|
29
|
+
(function (Platform) {
|
|
30
|
+
Platform["HuggingFace"] = "hugging-face";
|
|
31
|
+
Platform["Github"] = "github";
|
|
32
|
+
Platform["Git"] = "git";
|
|
33
|
+
Platform["Patra"] = "patra";
|
|
34
|
+
Platform["TapisPods"] = "tapis-pods";
|
|
35
|
+
Platform["TapisJobs"] = "tapis-jobs";
|
|
36
|
+
Platform["S3"] = "s3";
|
|
37
|
+
})(Platform || (exports.Platform = Platform = {}));
|
|
38
|
+
function PlatformFromJSON(json) {
|
|
39
|
+
return PlatformFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function PlatformFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
function PlatformToJSON(value) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { ParallelismStrategy, ResourceRequirements } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ReplicaGroup
|
|
17
|
+
*/
|
|
18
|
+
export interface ReplicaGroup {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof ReplicaGroup
|
|
23
|
+
*/
|
|
24
|
+
count: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<ParallelismStrategy>}
|
|
28
|
+
* @memberof ReplicaGroup
|
|
29
|
+
*/
|
|
30
|
+
parallelism_strategies: Array<ParallelismStrategy>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ResourceRequirements}
|
|
34
|
+
* @memberof ReplicaGroup
|
|
35
|
+
*/
|
|
36
|
+
resources: ResourceRequirements;
|
|
37
|
+
}
|
|
38
|
+
export declare function ReplicaGroupFromJSON(json: any): ReplicaGroup;
|
|
39
|
+
export declare function ReplicaGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReplicaGroup;
|
|
40
|
+
export declare function ReplicaGroupToJSON(value?: ReplicaGroup | 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.ReplicaGroupFromJSON = ReplicaGroupFromJSON;
|
|
17
|
+
exports.ReplicaGroupFromJSONTyped = ReplicaGroupFromJSONTyped;
|
|
18
|
+
exports.ReplicaGroupToJSON = ReplicaGroupToJSON;
|
|
19
|
+
var _1 = require("./");
|
|
20
|
+
function ReplicaGroupFromJSON(json) {
|
|
21
|
+
return ReplicaGroupFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
function ReplicaGroupFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'count': json['count'],
|
|
29
|
+
'parallelism_strategies': (json['parallelism_strategies'].map(_1.ParallelismStrategyFromJSON)),
|
|
30
|
+
'resources': (0, _1.ResourceRequirementsFromJSON)(json['resources']),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function ReplicaGroupToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'count': value.count,
|
|
42
|
+
'parallelism_strategies': (value.parallelism_strategies.map(_1.ParallelismStrategyToJSON)),
|
|
43
|
+
'resources': (0, _1.ResourceRequirementsToJSON)(value.resources),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { GpuResource } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ResourceRequirements
|
|
17
|
+
*/
|
|
18
|
+
export interface ResourceRequirements {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof ResourceRequirements
|
|
23
|
+
*/
|
|
24
|
+
cores?: number | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ResourceRequirements
|
|
29
|
+
*/
|
|
30
|
+
disk?: number | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {GpuResource}
|
|
34
|
+
* @memberof ResourceRequirements
|
|
35
|
+
*/
|
|
36
|
+
gpu?: GpuResource;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ResourceRequirements
|
|
41
|
+
*/
|
|
42
|
+
memory?: number | null;
|
|
43
|
+
}
|
|
44
|
+
export declare function ResourceRequirementsFromJSON(json: any): ResourceRequirements;
|
|
45
|
+
export declare function ResourceRequirementsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceRequirements;
|
|
46
|
+
export declare function ResourceRequirementsToJSON(value?: ResourceRequirements | 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.ResourceRequirementsFromJSON = ResourceRequirementsFromJSON;
|
|
17
|
+
exports.ResourceRequirementsFromJSONTyped = ResourceRequirementsFromJSONTyped;
|
|
18
|
+
exports.ResourceRequirementsToJSON = ResourceRequirementsToJSON;
|
|
19
|
+
var runtime_1 = require("../runtime");
|
|
20
|
+
var _1 = require("./");
|
|
21
|
+
function ResourceRequirementsFromJSON(json) {
|
|
22
|
+
return ResourceRequirementsFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
function ResourceRequirementsFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if ((json === undefined) || (json === null)) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'cores': !(0, runtime_1.exists)(json, 'cores') ? undefined : json['cores'],
|
|
30
|
+
'disk': !(0, runtime_1.exists)(json, 'disk') ? undefined : json['disk'],
|
|
31
|
+
'gpu': !(0, runtime_1.exists)(json, 'gpu') ? undefined : (0, _1.GpuResourceFromJSON)(json['gpu']),
|
|
32
|
+
'memory': !(0, runtime_1.exists)(json, 'memory') ? undefined : json['memory'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function ResourceRequirementsToJSON(value) {
|
|
36
|
+
if (value === undefined) {
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
if (value === null) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'cores': value.cores,
|
|
44
|
+
'disk': value.disk,
|
|
45
|
+
'gpu': (0, _1.GpuResourceToJSON)(value.gpu),
|
|
46
|
+
'memory': value.memory,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 RestApi
|
|
16
|
+
*/
|
|
17
|
+
export interface RestApi {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {any}
|
|
21
|
+
* @memberof RestApi
|
|
22
|
+
*/
|
|
23
|
+
spec: any | null;
|
|
24
|
+
}
|
|
25
|
+
export declare function RestApiFromJSON(json: any): RestApi;
|
|
26
|
+
export declare function RestApiFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestApi;
|
|
27
|
+
export declare function RestApiToJSON(value?: RestApi | null): any;
|
|
@@ -0,0 +1,40 @@
|
|
|
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.RestApiFromJSON = RestApiFromJSON;
|
|
17
|
+
exports.RestApiFromJSONTyped = RestApiFromJSONTyped;
|
|
18
|
+
exports.RestApiToJSON = RestApiToJSON;
|
|
19
|
+
function RestApiFromJSON(json) {
|
|
20
|
+
return RestApiFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
function RestApiFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'spec': json['spec'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function RestApiToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'spec': value.spec,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { Operator } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Rule
|
|
17
|
+
*/
|
|
18
|
+
export interface Rule {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<string>}
|
|
22
|
+
* @memberof Rule
|
|
23
|
+
*/
|
|
24
|
+
field_path: Array<string>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Operator}
|
|
28
|
+
* @memberof Rule
|
|
29
|
+
*/
|
|
30
|
+
operator: Operator;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {any}
|
|
34
|
+
* @memberof Rule
|
|
35
|
+
*/
|
|
36
|
+
value: any | null;
|
|
37
|
+
}
|
|
38
|
+
export declare function RuleFromJSON(json: any): Rule;
|
|
39
|
+
export declare function RuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Rule;
|
|
40
|
+
export declare function RuleToJSON(value?: Rule | 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.RuleFromJSON = RuleFromJSON;
|
|
17
|
+
exports.RuleFromJSONTyped = RuleFromJSONTyped;
|
|
18
|
+
exports.RuleToJSON = RuleToJSON;
|
|
19
|
+
var _1 = require("./");
|
|
20
|
+
function RuleFromJSON(json) {
|
|
21
|
+
return RuleFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
function RuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'field_path': json['field_path'],
|
|
29
|
+
'operator': (0, _1.OperatorFromJSON)(json['operator']),
|
|
30
|
+
'value': json['value'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function RuleToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'field_path': value.field_path,
|
|
42
|
+
'operator': (0, _1.OperatorToJSON)(value.operator),
|
|
43
|
+
'value': value.value,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { Rule } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RuleSet
|
|
17
|
+
*/
|
|
18
|
+
export interface RuleSet {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RuleSet
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<Rule>}
|
|
28
|
+
* @memberof RuleSet
|
|
29
|
+
*/
|
|
30
|
+
rules: Array<Rule>;
|
|
31
|
+
}
|
|
32
|
+
export declare function RuleSetFromJSON(json: any): RuleSet;
|
|
33
|
+
export declare function RuleSetFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleSet;
|
|
34
|
+
export declare function RuleSetToJSON(value?: RuleSet | null): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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.RuleSetFromJSON = RuleSetFromJSON;
|
|
17
|
+
exports.RuleSetFromJSONTyped = RuleSetFromJSONTyped;
|
|
18
|
+
exports.RuleSetToJSON = RuleSetToJSON;
|
|
19
|
+
var _1 = require("./");
|
|
20
|
+
function RuleSetFromJSON(json) {
|
|
21
|
+
return RuleSetFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
function RuleSetFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'name': json['name'],
|
|
29
|
+
'rules': (json['rules'].map(_1.RuleFromJSON)),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function RuleSetToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': value.name,
|
|
41
|
+
'rules': (value.rules.map(_1.RuleToJSON)),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -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 ServerErrorResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface ServerErrorResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ServerErrorResponse
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof ServerErrorResponse
|
|
28
|
+
*/
|
|
29
|
+
metadata: object;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {any}
|
|
33
|
+
* @memberof ServerErrorResponse
|
|
34
|
+
*/
|
|
35
|
+
result: any | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ServerErrorResponse
|
|
40
|
+
*/
|
|
41
|
+
status: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ServerErrorResponse
|
|
46
|
+
*/
|
|
47
|
+
version: string;
|
|
48
|
+
}
|
|
49
|
+
export declare function ServerErrorResponseFromJSON(json: any): ServerErrorResponse;
|
|
50
|
+
export declare function ServerErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerErrorResponse;
|
|
51
|
+
export declare function ServerErrorResponseToJSON(value?: ServerErrorResponse | null): any;
|