@mlhub/deployments-ts-sdk 0.6.0 → 0.8.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 +0 -5
- package/README.md +2 -2
- package/dist/models/ListDeploymentStrategiesResponse.d.ts +3 -3
- package/dist/models/ListDeploymentStrategiesResponse.js +2 -2
- package/dist/models/Strategy.d.ts +5 -5
- package/dist/models/Strategy.js +4 -4
- package/dist/models/index.d.ts +0 -5
- package/dist/models/index.js +0 -5
- package/package.json +1 -1
- package/src/models/ListDeploymentStrategiesResponse.ts +8 -8
- package/src/models/Strategy.ts +16 -16
- package/src/models/index.ts +0 -5
- package/dist/models/ClientStrategySet.d.ts +0 -52
- package/dist/models/ClientStrategySet.js +0 -50
- package/dist/models/Operator.d.ts +0 -33
- package/dist/models/Operator.js +0 -48
- package/dist/models/ParameterSet.d.ts +0 -34
- package/dist/models/ParameterSet.js +0 -43
- package/dist/models/Rule.d.ts +0 -40
- package/dist/models/Rule.js +0 -45
- package/dist/models/RuleSet.d.ts +0 -34
- package/dist/models/RuleSet.js +0 -43
- package/src/models/ClientStrategySet.ts +0 -107
- package/src/models/Operator.ts +0 -46
- package/src/models/ParameterSet.ts +0 -71
- package/src/models/Rule.ts +0 -79
- package/src/models/RuleSet.ts +0 -71
package/.openapi-generator/FILES
CHANGED
|
@@ -8,7 +8,6 @@ src/apis/StrategiesApi.ts
|
|
|
8
8
|
src/apis/index.ts
|
|
9
9
|
src/index.ts
|
|
10
10
|
src/models/BadRequestResponse.ts
|
|
11
|
-
src/models/ClientStrategySet.ts
|
|
12
11
|
src/models/DeployModelWithStrategyBody.ts
|
|
13
12
|
src/models/DesiredState.ts
|
|
14
13
|
src/models/GpuResource.ts
|
|
@@ -19,17 +18,13 @@ src/models/ModelDeploymentInterfaceOneOf.ts
|
|
|
19
18
|
src/models/ModelDeploymentResponse.ts
|
|
20
19
|
src/models/ModelReference.ts
|
|
21
20
|
src/models/NotFoundResponse.ts
|
|
22
|
-
src/models/Operator.ts
|
|
23
21
|
src/models/ParallelismStrategy.ts
|
|
24
22
|
src/models/Parameter.ts
|
|
25
|
-
src/models/ParameterSet.ts
|
|
26
23
|
src/models/ParameterType.ts
|
|
27
24
|
src/models/Platform.ts
|
|
28
25
|
src/models/ReplicaGroup.ts
|
|
29
26
|
src/models/ResourceRequirements.ts
|
|
30
27
|
src/models/RestApi.ts
|
|
31
|
-
src/models/Rule.ts
|
|
32
|
-
src/models/RuleSet.ts
|
|
33
28
|
src/models/ServerErrorResponse.ts
|
|
34
29
|
src/models/State.ts
|
|
35
30
|
src/models/Strategy.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @mlhub/deployments-ts-sdk@0.
|
|
1
|
+
## @mlhub/deployments-ts-sdk@0.8.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.8.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { Strategy } from './';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -30,10 +30,10 @@ export interface ListDeploymentStrategiesResponse {
|
|
|
30
30
|
metadata: object;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
|
-
* @type {Array<
|
|
33
|
+
* @type {Array<Strategy>}
|
|
34
34
|
* @memberof ListDeploymentStrategiesResponse
|
|
35
35
|
*/
|
|
36
|
-
result: Array<
|
|
36
|
+
result: Array<Strategy>;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {number}
|
|
@@ -27,7 +27,7 @@ function ListDeploymentStrategiesResponseFromJSONTyped(json, ignoreDiscriminator
|
|
|
27
27
|
return {
|
|
28
28
|
'message': json['message'],
|
|
29
29
|
'metadata': json['metadata'],
|
|
30
|
-
'result': (json['result'].map(_1.
|
|
30
|
+
'result': (json['result'].map(_1.StrategyFromJSON)),
|
|
31
31
|
'status': json['status'],
|
|
32
32
|
'version': json['version'],
|
|
33
33
|
};
|
|
@@ -42,7 +42,7 @@ function ListDeploymentStrategiesResponseToJSON(value) {
|
|
|
42
42
|
return {
|
|
43
43
|
'message': value.message,
|
|
44
44
|
'metadata': value.metadata,
|
|
45
|
-
'result': (value.result.map(_1.
|
|
45
|
+
'result': (value.result.map(_1.StrategyToJSON)),
|
|
46
46
|
'status': value.status,
|
|
47
47
|
'version': value.version,
|
|
48
48
|
};
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { Parameter, Platform } from './';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -30,16 +30,16 @@ export interface Strategy {
|
|
|
30
30
|
name: string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
|
-
* @type {
|
|
33
|
+
* @type {Array<Parameter>}
|
|
34
34
|
* @memberof Strategy
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
parameters: Array<Parameter>;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
-
* @type {
|
|
39
|
+
* @type {Platform}
|
|
40
40
|
* @memberof Strategy
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
platform: Platform;
|
|
43
43
|
}
|
|
44
44
|
export declare function StrategyFromJSON(json: any): Strategy;
|
|
45
45
|
export declare function StrategyFromJSONTyped(json: any, ignoreDiscriminator: boolean): Strategy;
|
package/dist/models/Strategy.js
CHANGED
|
@@ -28,8 +28,8 @@ function StrategyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
return {
|
|
29
29
|
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
30
30
|
'name': json['name'],
|
|
31
|
-
'
|
|
32
|
-
'
|
|
31
|
+
'parameters': (json['parameters'].map(_1.ParameterFromJSON)),
|
|
32
|
+
'platform': (0, _1.PlatformFromJSON)(json['platform']),
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
function StrategyToJSON(value) {
|
|
@@ -42,7 +42,7 @@ function StrategyToJSON(value) {
|
|
|
42
42
|
return {
|
|
43
43
|
'description': value.description,
|
|
44
44
|
'name': value.name,
|
|
45
|
-
'
|
|
46
|
-
'
|
|
45
|
+
'parameters': (value.parameters.map(_1.ParameterToJSON)),
|
|
46
|
+
'platform': (0, _1.PlatformToJSON)(value.platform),
|
|
47
47
|
};
|
|
48
48
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './BadRequestResponse';
|
|
2
|
-
export * from './ClientStrategySet';
|
|
3
2
|
export * from './DeployModelWithStrategyBody';
|
|
4
3
|
export * from './DesiredState';
|
|
5
4
|
export * from './GpuResource';
|
|
@@ -10,17 +9,13 @@ export * from './ModelDeploymentInterfaceOneOf';
|
|
|
10
9
|
export * from './ModelDeploymentResponse';
|
|
11
10
|
export * from './ModelReference';
|
|
12
11
|
export * from './NotFoundResponse';
|
|
13
|
-
export * from './Operator';
|
|
14
12
|
export * from './ParallelismStrategy';
|
|
15
13
|
export * from './Parameter';
|
|
16
|
-
export * from './ParameterSet';
|
|
17
14
|
export * from './ParameterType';
|
|
18
15
|
export * from './Platform';
|
|
19
16
|
export * from './ReplicaGroup';
|
|
20
17
|
export * from './ResourceRequirements';
|
|
21
18
|
export * from './RestApi';
|
|
22
|
-
export * from './Rule';
|
|
23
|
-
export * from './RuleSet';
|
|
24
19
|
export * from './ServerErrorResponse';
|
|
25
20
|
export * from './State';
|
|
26
21
|
export * from './Strategy';
|
package/dist/models/index.js
CHANGED
|
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./BadRequestResponse"), exports);
|
|
20
|
-
__exportStar(require("./ClientStrategySet"), exports);
|
|
21
20
|
__exportStar(require("./DeployModelWithStrategyBody"), exports);
|
|
22
21
|
__exportStar(require("./DesiredState"), exports);
|
|
23
22
|
__exportStar(require("./GpuResource"), exports);
|
|
@@ -28,17 +27,13 @@ __exportStar(require("./ModelDeploymentInterfaceOneOf"), exports);
|
|
|
28
27
|
__exportStar(require("./ModelDeploymentResponse"), exports);
|
|
29
28
|
__exportStar(require("./ModelReference"), exports);
|
|
30
29
|
__exportStar(require("./NotFoundResponse"), exports);
|
|
31
|
-
__exportStar(require("./Operator"), exports);
|
|
32
30
|
__exportStar(require("./ParallelismStrategy"), exports);
|
|
33
31
|
__exportStar(require("./Parameter"), exports);
|
|
34
|
-
__exportStar(require("./ParameterSet"), exports);
|
|
35
32
|
__exportStar(require("./ParameterType"), exports);
|
|
36
33
|
__exportStar(require("./Platform"), exports);
|
|
37
34
|
__exportStar(require("./ReplicaGroup"), exports);
|
|
38
35
|
__exportStar(require("./ResourceRequirements"), exports);
|
|
39
36
|
__exportStar(require("./RestApi"), exports);
|
|
40
|
-
__exportStar(require("./Rule"), exports);
|
|
41
|
-
__exportStar(require("./RuleSet"), exports);
|
|
42
37
|
__exportStar(require("./ServerErrorResponse"), exports);
|
|
43
38
|
__exportStar(require("./State"), exports);
|
|
44
39
|
__exportStar(require("./Strategy"), exports);
|
package/package.json
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
Strategy,
|
|
18
|
+
StrategyFromJSON,
|
|
19
|
+
StrategyFromJSONTyped,
|
|
20
|
+
StrategyToJSON,
|
|
21
21
|
} from './';
|
|
22
22
|
|
|
23
23
|
/**
|
|
@@ -40,10 +40,10 @@ export interface ListDeploymentStrategiesResponse {
|
|
|
40
40
|
metadata: object;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {Array<
|
|
43
|
+
* @type {Array<Strategy>}
|
|
44
44
|
* @memberof ListDeploymentStrategiesResponse
|
|
45
45
|
*/
|
|
46
|
-
result: Array<
|
|
46
|
+
result: Array<Strategy>;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {number}
|
|
@@ -70,7 +70,7 @@ export function ListDeploymentStrategiesResponseFromJSONTyped(json: any, ignoreD
|
|
|
70
70
|
|
|
71
71
|
'message': json['message'],
|
|
72
72
|
'metadata': json['metadata'],
|
|
73
|
-
'result': ((json['result'] as Array<any>).map(
|
|
73
|
+
'result': ((json['result'] as Array<any>).map(StrategyFromJSON)),
|
|
74
74
|
'status': json['status'],
|
|
75
75
|
'version': json['version'],
|
|
76
76
|
};
|
|
@@ -87,7 +87,7 @@ export function ListDeploymentStrategiesResponseToJSON(value?: ListDeploymentStr
|
|
|
87
87
|
|
|
88
88
|
'message': value.message,
|
|
89
89
|
'metadata': value.metadata,
|
|
90
|
-
'result': ((value.result as Array<any>).map(
|
|
90
|
+
'result': ((value.result as Array<any>).map(StrategyToJSON)),
|
|
91
91
|
'status': value.status,
|
|
92
92
|
'version': value.version,
|
|
93
93
|
};
|
package/src/models/Strategy.ts
CHANGED
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
Parameter,
|
|
18
|
+
ParameterFromJSON,
|
|
19
|
+
ParameterFromJSONTyped,
|
|
20
|
+
ParameterToJSON,
|
|
21
|
+
Platform,
|
|
22
|
+
PlatformFromJSON,
|
|
23
|
+
PlatformFromJSONTyped,
|
|
24
|
+
PlatformToJSON,
|
|
25
25
|
} from './';
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -44,16 +44,16 @@ export interface Strategy {
|
|
|
44
44
|
name: string;
|
|
45
45
|
/**
|
|
46
46
|
*
|
|
47
|
-
* @type {
|
|
47
|
+
* @type {Array<Parameter>}
|
|
48
48
|
* @memberof Strategy
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
parameters: Array<Parameter>;
|
|
51
51
|
/**
|
|
52
52
|
*
|
|
53
|
-
* @type {
|
|
53
|
+
* @type {Platform}
|
|
54
54
|
* @memberof Strategy
|
|
55
55
|
*/
|
|
56
|
-
|
|
56
|
+
platform: Platform;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
export function StrategyFromJSON(json: any): Strategy {
|
|
@@ -68,8 +68,8 @@ export function StrategyFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
68
68
|
|
|
69
69
|
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
70
70
|
'name': json['name'],
|
|
71
|
-
'
|
|
72
|
-
'
|
|
71
|
+
'parameters': ((json['parameters'] as Array<any>).map(ParameterFromJSON)),
|
|
72
|
+
'platform': PlatformFromJSON(json['platform']),
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -84,8 +84,8 @@ export function StrategyToJSON(value?: Strategy | null): any {
|
|
|
84
84
|
|
|
85
85
|
'description': value.description,
|
|
86
86
|
'name': value.name,
|
|
87
|
-
'
|
|
88
|
-
'
|
|
87
|
+
'parameters': ((value.parameters as Array<any>).map(ParameterToJSON)),
|
|
88
|
+
'platform': PlatformToJSON(value.platform),
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
|
package/src/models/index.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './BadRequestResponse';
|
|
4
|
-
export * from './ClientStrategySet';
|
|
5
4
|
export * from './DeployModelWithStrategyBody';
|
|
6
5
|
export * from './DesiredState';
|
|
7
6
|
export * from './GpuResource';
|
|
@@ -12,17 +11,13 @@ export * from './ModelDeploymentInterfaceOneOf';
|
|
|
12
11
|
export * from './ModelDeploymentResponse';
|
|
13
12
|
export * from './ModelReference';
|
|
14
13
|
export * from './NotFoundResponse';
|
|
15
|
-
export * from './Operator';
|
|
16
14
|
export * from './ParallelismStrategy';
|
|
17
15
|
export * from './Parameter';
|
|
18
|
-
export * from './ParameterSet';
|
|
19
16
|
export * from './ParameterType';
|
|
20
17
|
export * from './Platform';
|
|
21
18
|
export * from './ReplicaGroup';
|
|
22
19
|
export * from './ResourceRequirements';
|
|
23
20
|
export * from './RestApi';
|
|
24
|
-
export * from './Rule';
|
|
25
|
-
export * from './RuleSet';
|
|
26
21
|
export * from './ServerErrorResponse';
|
|
27
22
|
export * from './State';
|
|
28
23
|
export * from './Strategy';
|
|
@@ -1,52 +0,0 @@
|
|
|
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;
|
|
@@ -1,50 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
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 Operator {
|
|
18
|
-
Eq = "Eq",
|
|
19
|
-
Neq = "Neq",
|
|
20
|
-
Gte = "Gte",
|
|
21
|
-
Lte = "Lte",
|
|
22
|
-
Gt = "Gt",
|
|
23
|
-
Lt = "Lt",
|
|
24
|
-
In = "In",
|
|
25
|
-
Contains = "Contains",
|
|
26
|
-
NotIn = "NotIn",
|
|
27
|
-
NoneIn = "NoneIn",
|
|
28
|
-
AnyIn = "AnyIn",
|
|
29
|
-
AllIn = "AllIn"
|
|
30
|
-
}
|
|
31
|
-
export declare function OperatorFromJSON(json: any): Operator;
|
|
32
|
-
export declare function OperatorFromJSONTyped(json: any, ignoreDiscriminator: boolean): Operator;
|
|
33
|
-
export declare function OperatorToJSON(value?: Operator | null): any;
|
package/dist/models/Operator.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
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.Operator = void 0;
|
|
17
|
-
exports.OperatorFromJSON = OperatorFromJSON;
|
|
18
|
-
exports.OperatorFromJSONTyped = OperatorFromJSONTyped;
|
|
19
|
-
exports.OperatorToJSON = OperatorToJSON;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @export
|
|
23
|
-
* @enum {string}
|
|
24
|
-
*/
|
|
25
|
-
var Operator;
|
|
26
|
-
(function (Operator) {
|
|
27
|
-
Operator["Eq"] = "Eq";
|
|
28
|
-
Operator["Neq"] = "Neq";
|
|
29
|
-
Operator["Gte"] = "Gte";
|
|
30
|
-
Operator["Lte"] = "Lte";
|
|
31
|
-
Operator["Gt"] = "Gt";
|
|
32
|
-
Operator["Lt"] = "Lt";
|
|
33
|
-
Operator["In"] = "In";
|
|
34
|
-
Operator["Contains"] = "Contains";
|
|
35
|
-
Operator["NotIn"] = "NotIn";
|
|
36
|
-
Operator["NoneIn"] = "NoneIn";
|
|
37
|
-
Operator["AnyIn"] = "AnyIn";
|
|
38
|
-
Operator["AllIn"] = "AllIn";
|
|
39
|
-
})(Operator || (exports.Operator = Operator = {}));
|
|
40
|
-
function OperatorFromJSON(json) {
|
|
41
|
-
return OperatorFromJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function OperatorFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
function OperatorToJSON(value) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
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;
|
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
}
|
package/dist/models/Rule.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
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;
|
package/dist/models/Rule.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
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
|
-
}
|
package/dist/models/RuleSet.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
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;
|
package/dist/models/RuleSet.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
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
|
-
ParameterSet,
|
|
18
|
-
ParameterSetFromJSON,
|
|
19
|
-
ParameterSetFromJSONTyped,
|
|
20
|
-
ParameterSetToJSON,
|
|
21
|
-
Platform,
|
|
22
|
-
PlatformFromJSON,
|
|
23
|
-
PlatformFromJSONTyped,
|
|
24
|
-
PlatformToJSON,
|
|
25
|
-
RuleSet,
|
|
26
|
-
RuleSetFromJSON,
|
|
27
|
-
RuleSetFromJSONTyped,
|
|
28
|
-
RuleSetToJSON,
|
|
29
|
-
Strategy,
|
|
30
|
-
StrategyFromJSON,
|
|
31
|
-
StrategyFromJSONTyped,
|
|
32
|
-
StrategyToJSON,
|
|
33
|
-
} from './';
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @export
|
|
38
|
-
* @interface ClientStrategySet
|
|
39
|
-
*/
|
|
40
|
-
export interface ClientStrategySet {
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof ClientStrategySet
|
|
45
|
-
*/
|
|
46
|
-
description?: string | null;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @type {Array<ParameterSet>}
|
|
50
|
-
* @memberof ClientStrategySet
|
|
51
|
-
*/
|
|
52
|
-
parameter_sets?: Array<ParameterSet> | null;
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @type {Platform}
|
|
56
|
-
* @memberof ClientStrategySet
|
|
57
|
-
*/
|
|
58
|
-
platform: Platform;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @type {Array<RuleSet>}
|
|
62
|
-
* @memberof ClientStrategySet
|
|
63
|
-
*/
|
|
64
|
-
rule_sets?: Array<RuleSet> | null;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {Array<Strategy>}
|
|
68
|
-
* @memberof ClientStrategySet
|
|
69
|
-
*/
|
|
70
|
-
strategies: Array<Strategy>;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function ClientStrategySetFromJSON(json: any): ClientStrategySet {
|
|
74
|
-
return ClientStrategySetFromJSONTyped(json, false);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function ClientStrategySetFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientStrategySet {
|
|
78
|
-
if ((json === undefined) || (json === null)) {
|
|
79
|
-
return json;
|
|
80
|
-
}
|
|
81
|
-
return {
|
|
82
|
-
|
|
83
|
-
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
84
|
-
'parameter_sets': !exists(json, 'parameter_sets') ? undefined : (json['parameter_sets'] === null ? null : (json['parameter_sets'] as Array<any>).map(ParameterSetFromJSON)),
|
|
85
|
-
'platform': PlatformFromJSON(json['platform']),
|
|
86
|
-
'rule_sets': !exists(json, 'rule_sets') ? undefined : (json['rule_sets'] === null ? null : (json['rule_sets'] as Array<any>).map(RuleSetFromJSON)),
|
|
87
|
-
'strategies': ((json['strategies'] as Array<any>).map(StrategyFromJSON)),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export function ClientStrategySetToJSON(value?: ClientStrategySet | null): any {
|
|
92
|
-
if (value === undefined) {
|
|
93
|
-
return undefined;
|
|
94
|
-
}
|
|
95
|
-
if (value === null) {
|
|
96
|
-
return null;
|
|
97
|
-
}
|
|
98
|
-
return {
|
|
99
|
-
|
|
100
|
-
'description': value.description,
|
|
101
|
-
'parameter_sets': value.parameter_sets === undefined ? undefined : (value.parameter_sets === null ? null : (value.parameter_sets as Array<any>).map(ParameterSetToJSON)),
|
|
102
|
-
'platform': PlatformToJSON(value.platform),
|
|
103
|
-
'rule_sets': value.rule_sets === undefined ? undefined : (value.rule_sets === null ? null : (value.rule_sets as Array<any>).map(RuleSetToJSON)),
|
|
104
|
-
'strategies': ((value.strategies as Array<any>).map(StrategyToJSON)),
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
|
package/src/models/Operator.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
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 Operator {
|
|
21
|
-
Eq = 'Eq',
|
|
22
|
-
Neq = 'Neq',
|
|
23
|
-
Gte = 'Gte',
|
|
24
|
-
Lte = 'Lte',
|
|
25
|
-
Gt = 'Gt',
|
|
26
|
-
Lt = 'Lt',
|
|
27
|
-
In = 'In',
|
|
28
|
-
Contains = 'Contains',
|
|
29
|
-
NotIn = 'NotIn',
|
|
30
|
-
NoneIn = 'NoneIn',
|
|
31
|
-
AnyIn = 'AnyIn',
|
|
32
|
-
AllIn = 'AllIn'
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export function OperatorFromJSON(json: any): Operator {
|
|
36
|
-
return OperatorFromJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function OperatorFromJSONTyped(json: any, ignoreDiscriminator: boolean): Operator {
|
|
40
|
-
return json as Operator;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function OperatorToJSON(value?: Operator | null): any {
|
|
44
|
-
return value as any;
|
|
45
|
-
}
|
|
46
|
-
|
|
@@ -1,71 +0,0 @@
|
|
|
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
|
-
|
package/src/models/Rule.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
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
|
-
|
package/src/models/RuleSet.ts
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
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
|
-
|