@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,56 @@
|
|
|
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 Parameter
|
|
20
|
+
*/
|
|
21
|
+
export interface Parameter {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Parameter
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function ParameterFromJSON(json: any): Parameter {
|
|
31
|
+
return ParameterFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function ParameterFromJSONTyped(json: any, ignoreDiscriminator: boolean): Parameter {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ParameterToJSON(value?: Parameter | null): any {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'name': value.name,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
import {
|
|
17
|
+
Parameter,
|
|
18
|
+
ParameterFromJSON,
|
|
19
|
+
ParameterFromJSONTyped,
|
|
20
|
+
ParameterToJSON,
|
|
21
|
+
} from './';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ParameterSet
|
|
27
|
+
*/
|
|
28
|
+
export interface ParameterSet {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ParameterSet
|
|
33
|
+
*/
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Array<Parameter>}
|
|
38
|
+
* @memberof ParameterSet
|
|
39
|
+
*/
|
|
40
|
+
parameters: Array<Parameter>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ParameterSetFromJSON(json: any): ParameterSet {
|
|
44
|
+
return ParameterSetFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function ParameterSetFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParameterSet {
|
|
48
|
+
if ((json === undefined) || (json === null)) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'name': json['name'],
|
|
54
|
+
'parameters': ((json['parameters'] as Array<any>).map(ParameterFromJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ParameterSetToJSON(value?: ParameterSet | null): any {
|
|
59
|
+
if (value === undefined) {
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
62
|
+
if (value === null) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'name': value.name,
|
|
68
|
+
'parameters': ((value.parameters as Array<any>).map(ParameterToJSON)),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
* Represents a platform for which there are clients registered for one or more of
|
|
17
|
+
* the following APIs: Models, Datasets, Inference, Training. The strum(serialize="")
|
|
18
|
+
* attribute corresponds to the desired "platform" path parameter passed to the
|
|
19
|
+
* `get_client` method of a registrar.
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
export enum Platform {
|
|
24
|
+
HuggingFace = 'hugging-face',
|
|
25
|
+
Github = 'github',
|
|
26
|
+
Git = 'git',
|
|
27
|
+
Patra = 'patra',
|
|
28
|
+
TapisPods = 'tapis-pods',
|
|
29
|
+
TapisJobs = 'tapis-jobs',
|
|
30
|
+
S3 = 's3'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function PlatformFromJSON(json: any): Platform {
|
|
34
|
+
return PlatformFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function PlatformFromJSONTyped(json: any, ignoreDiscriminator: boolean): Platform {
|
|
38
|
+
return json as Platform;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function PlatformToJSON(value?: Platform | null): any {
|
|
42
|
+
return value as any;
|
|
43
|
+
}
|
|
44
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
import {
|
|
17
|
+
ParallelismStrategy,
|
|
18
|
+
ParallelismStrategyFromJSON,
|
|
19
|
+
ParallelismStrategyFromJSONTyped,
|
|
20
|
+
ParallelismStrategyToJSON,
|
|
21
|
+
ResourceRequirements,
|
|
22
|
+
ResourceRequirementsFromJSON,
|
|
23
|
+
ResourceRequirementsFromJSONTyped,
|
|
24
|
+
ResourceRequirementsToJSON,
|
|
25
|
+
} from './';
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @export
|
|
30
|
+
* @interface ReplicaGroup
|
|
31
|
+
*/
|
|
32
|
+
export interface ReplicaGroup {
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof ReplicaGroup
|
|
37
|
+
*/
|
|
38
|
+
count: number;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {Array<ParallelismStrategy>}
|
|
42
|
+
* @memberof ReplicaGroup
|
|
43
|
+
*/
|
|
44
|
+
parallelism_strategies: Array<ParallelismStrategy>;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {ResourceRequirements}
|
|
48
|
+
* @memberof ReplicaGroup
|
|
49
|
+
*/
|
|
50
|
+
resources: ResourceRequirements;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ReplicaGroupFromJSON(json: any): ReplicaGroup {
|
|
54
|
+
return ReplicaGroupFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ReplicaGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReplicaGroup {
|
|
58
|
+
if ((json === undefined) || (json === null)) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'count': json['count'],
|
|
64
|
+
'parallelism_strategies': ((json['parallelism_strategies'] as Array<any>).map(ParallelismStrategyFromJSON)),
|
|
65
|
+
'resources': ResourceRequirementsFromJSON(json['resources']),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function ReplicaGroupToJSON(value?: ReplicaGroup | null): any {
|
|
70
|
+
if (value === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
if (value === null) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'count': value.count,
|
|
79
|
+
'parallelism_strategies': ((value.parallelism_strategies as Array<any>).map(ParallelismStrategyToJSON)),
|
|
80
|
+
'resources': ResourceRequirementsToJSON(value.resources),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
import {
|
|
17
|
+
GpuResource,
|
|
18
|
+
GpuResourceFromJSON,
|
|
19
|
+
GpuResourceFromJSONTyped,
|
|
20
|
+
GpuResourceToJSON,
|
|
21
|
+
} from './';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ResourceRequirements
|
|
27
|
+
*/
|
|
28
|
+
export interface ResourceRequirements {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof ResourceRequirements
|
|
33
|
+
*/
|
|
34
|
+
cores?: number | null;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof ResourceRequirements
|
|
39
|
+
*/
|
|
40
|
+
disk?: number | null;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {GpuResource}
|
|
44
|
+
* @memberof ResourceRequirements
|
|
45
|
+
*/
|
|
46
|
+
gpu?: GpuResource;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof ResourceRequirements
|
|
51
|
+
*/
|
|
52
|
+
memory?: number | null;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ResourceRequirementsFromJSON(json: any): ResourceRequirements {
|
|
56
|
+
return ResourceRequirementsFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ResourceRequirementsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceRequirements {
|
|
60
|
+
if ((json === undefined) || (json === null)) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'cores': !exists(json, 'cores') ? undefined : json['cores'],
|
|
66
|
+
'disk': !exists(json, 'disk') ? undefined : json['disk'],
|
|
67
|
+
'gpu': !exists(json, 'gpu') ? undefined : GpuResourceFromJSON(json['gpu']),
|
|
68
|
+
'memory': !exists(json, 'memory') ? undefined : json['memory'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ResourceRequirementsToJSON(value?: ResourceRequirements | null): any {
|
|
73
|
+
if (value === undefined) {
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
if (value === null) {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'cores': value.cores,
|
|
82
|
+
'disk': value.disk,
|
|
83
|
+
'gpu': GpuResourceToJSON(value.gpu),
|
|
84
|
+
'memory': value.memory,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
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 RestApi
|
|
20
|
+
*/
|
|
21
|
+
export interface RestApi {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {any}
|
|
25
|
+
* @memberof RestApi
|
|
26
|
+
*/
|
|
27
|
+
spec: any | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function RestApiFromJSON(json: any): RestApi {
|
|
31
|
+
return RestApiFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function RestApiFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestApi {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
|
|
40
|
+
'spec': json['spec'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function RestApiToJSON(value?: RestApi | null): any {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'spec': value.spec,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
import {
|
|
17
|
+
Operator,
|
|
18
|
+
OperatorFromJSON,
|
|
19
|
+
OperatorFromJSONTyped,
|
|
20
|
+
OperatorToJSON,
|
|
21
|
+
} from './';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface Rule
|
|
27
|
+
*/
|
|
28
|
+
export interface Rule {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<string>}
|
|
32
|
+
* @memberof Rule
|
|
33
|
+
*/
|
|
34
|
+
field_path: Array<string>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Operator}
|
|
38
|
+
* @memberof Rule
|
|
39
|
+
*/
|
|
40
|
+
operator: Operator;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {any}
|
|
44
|
+
* @memberof Rule
|
|
45
|
+
*/
|
|
46
|
+
value: any | null;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function RuleFromJSON(json: any): Rule {
|
|
50
|
+
return RuleFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function RuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Rule {
|
|
54
|
+
if ((json === undefined) || (json === null)) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'field_path': json['field_path'],
|
|
60
|
+
'operator': OperatorFromJSON(json['operator']),
|
|
61
|
+
'value': json['value'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function RuleToJSON(value?: Rule | null): any {
|
|
66
|
+
if (value === undefined) {
|
|
67
|
+
return undefined;
|
|
68
|
+
}
|
|
69
|
+
if (value === null) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'field_path': value.field_path,
|
|
75
|
+
'operator': OperatorToJSON(value.operator),
|
|
76
|
+
'value': value.value,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
import {
|
|
17
|
+
Rule,
|
|
18
|
+
RuleFromJSON,
|
|
19
|
+
RuleFromJSONTyped,
|
|
20
|
+
RuleToJSON,
|
|
21
|
+
} from './';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface RuleSet
|
|
27
|
+
*/
|
|
28
|
+
export interface RuleSet {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof RuleSet
|
|
33
|
+
*/
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Array<Rule>}
|
|
38
|
+
* @memberof RuleSet
|
|
39
|
+
*/
|
|
40
|
+
rules: Array<Rule>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function RuleSetFromJSON(json: any): RuleSet {
|
|
44
|
+
return RuleSetFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function RuleSetFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuleSet {
|
|
48
|
+
if ((json === undefined) || (json === null)) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'name': json['name'],
|
|
54
|
+
'rules': ((json['rules'] as Array<any>).map(RuleFromJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function RuleSetToJSON(value?: RuleSet | null): any {
|
|
59
|
+
if (value === undefined) {
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
62
|
+
if (value === null) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'name': value.name,
|
|
68
|
+
'rules': ((value.rules as Array<any>).map(RuleToJSON)),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
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 ServerErrorResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface ServerErrorResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ServerErrorResponse
|
|
26
|
+
*/
|
|
27
|
+
message: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {object}
|
|
31
|
+
* @memberof ServerErrorResponse
|
|
32
|
+
*/
|
|
33
|
+
metadata: object;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {any}
|
|
37
|
+
* @memberof ServerErrorResponse
|
|
38
|
+
*/
|
|
39
|
+
result: any | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ServerErrorResponse
|
|
44
|
+
*/
|
|
45
|
+
status: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ServerErrorResponse
|
|
50
|
+
*/
|
|
51
|
+
version: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function ServerErrorResponseFromJSON(json: any): ServerErrorResponse {
|
|
55
|
+
return ServerErrorResponseFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ServerErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerErrorResponse {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'message': json['message'],
|
|
65
|
+
'metadata': json['metadata'],
|
|
66
|
+
'result': json['result'],
|
|
67
|
+
'status': json['status'],
|
|
68
|
+
'version': json['version'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ServerErrorResponseToJSON(value?: ServerErrorResponse | null): any {
|
|
73
|
+
if (value === undefined) {
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
if (value === null) {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'message': value.message,
|
|
82
|
+
'metadata': value.metadata,
|
|
83
|
+
'result': value.result,
|
|
84
|
+
'status': value.status,
|
|
85
|
+
'version': value.version,
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
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 State {
|
|
21
|
+
NotDeployed = 'NotDeployed',
|
|
22
|
+
Running = 'Running',
|
|
23
|
+
Stopped = 'Stopped',
|
|
24
|
+
Failed = 'Failed',
|
|
25
|
+
Blocked = 'Blocked',
|
|
26
|
+
Unknown = 'Unknown'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function StateFromJSON(json: any): State {
|
|
30
|
+
return StateFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function StateFromJSONTyped(json: any, ignoreDiscriminator: boolean): State {
|
|
34
|
+
return json as State;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function StateToJSON(value?: State | null): any {
|
|
38
|
+
return value as any;
|
|
39
|
+
}
|
|
40
|
+
|