@gpuai/sdk 0.3.13 → 0.3.15
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 +28 -0
- package/README.md +34 -9
- package/dist/apis/AutolaunchApi.d.ts +109 -0
- package/dist/apis/AutolaunchApi.js +286 -0
- package/dist/apis/BillingApi.d.ts +15 -0
- package/dist/apis/BillingApi.js +45 -0
- package/dist/apis/MarketApi.d.ts +56 -0
- package/dist/apis/MarketApi.js +112 -0
- package/dist/apis/WatchApi.d.ts +109 -0
- package/dist/apis/WatchApi.js +286 -0
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +3 -0
- package/dist/esm/apis/AutolaunchApi.d.ts +109 -0
- package/dist/esm/apis/AutolaunchApi.js +282 -0
- package/dist/esm/apis/BillingApi.d.ts +15 -0
- package/dist/esm/apis/BillingApi.js +45 -0
- package/dist/esm/apis/MarketApi.d.ts +56 -0
- package/dist/esm/apis/MarketApi.js +108 -0
- package/dist/esm/apis/WatchApi.d.ts +109 -0
- package/dist/esm/apis/WatchApi.js +282 -0
- package/dist/esm/apis/index.d.ts +3 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/models/AutolaunchRule.d.ts +181 -0
- package/dist/esm/models/AutolaunchRule.js +142 -0
- package/dist/esm/models/AutolaunchRuleCreate.d.ts +105 -0
- package/dist/esm/models/AutolaunchRuleCreate.js +84 -0
- package/dist/esm/models/AutolaunchRuleDisarm.d.ts +34 -0
- package/dist/esm/models/AutolaunchRuleDisarm.js +43 -0
- package/dist/esm/models/AutolaunchRulePage.d.ts +39 -0
- package/dist/esm/models/AutolaunchRulePage.js +48 -0
- package/dist/esm/models/Balance.d.ts +65 -0
- package/dist/esm/models/Balance.js +63 -0
- package/dist/esm/models/MarketHistoryPoint.d.ts +59 -0
- package/dist/esm/models/MarketHistoryPoint.js +55 -0
- package/dist/esm/models/MarketHistoryResponse.d.ts +60 -0
- package/dist/esm/models/MarketHistoryResponse.js +60 -0
- package/dist/esm/models/Problem.d.ts +1 -0
- package/dist/esm/models/Problem.js +1 -0
- package/dist/esm/models/WatchRule.d.ts +141 -0
- package/dist/esm/models/WatchRule.js +117 -0
- package/dist/esm/models/WatchRuleCreate.d.ts +87 -0
- package/dist/esm/models/WatchRuleCreate.js +72 -0
- package/dist/esm/models/WatchRulePage.d.ts +39 -0
- package/dist/esm/models/WatchRulePage.js +48 -0
- package/dist/esm/models/WatchRuleUpdate.d.ts +86 -0
- package/dist/esm/models/WatchRuleUpdate.js +68 -0
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/models/AutolaunchRule.d.ts +181 -0
- package/dist/models/AutolaunchRule.js +150 -0
- package/dist/models/AutolaunchRuleCreate.d.ts +105 -0
- package/dist/models/AutolaunchRuleCreate.js +92 -0
- package/dist/models/AutolaunchRuleDisarm.d.ts +34 -0
- package/dist/models/AutolaunchRuleDisarm.js +50 -0
- package/dist/models/AutolaunchRulePage.d.ts +39 -0
- package/dist/models/AutolaunchRulePage.js +55 -0
- package/dist/models/Balance.d.ts +65 -0
- package/dist/models/Balance.js +70 -0
- package/dist/models/MarketHistoryPoint.d.ts +59 -0
- package/dist/models/MarketHistoryPoint.js +62 -0
- package/dist/models/MarketHistoryResponse.d.ts +60 -0
- package/dist/models/MarketHistoryResponse.js +67 -0
- package/dist/models/Problem.d.ts +1 -0
- package/dist/models/Problem.js +1 -0
- package/dist/models/WatchRule.d.ts +141 -0
- package/dist/models/WatchRule.js +125 -0
- package/dist/models/WatchRuleCreate.d.ts +87 -0
- package/dist/models/WatchRuleCreate.js +80 -0
- package/dist/models/WatchRulePage.d.ts +39 -0
- package/dist/models/WatchRulePage.js +55 -0
- package/dist/models/WatchRuleUpdate.d.ts +86 -0
- package/dist/models/WatchRuleUpdate.js +76 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/docs/AutolaunchApi.md +390 -0
- package/docs/AutolaunchRule.md +69 -0
- package/docs/AutolaunchRuleCreate.md +50 -0
- package/docs/AutolaunchRuleDisarm.md +35 -0
- package/docs/AutolaunchRulePage.md +36 -0
- package/docs/Balance.md +45 -0
- package/docs/BillingApi.md +66 -0
- package/docs/MarketApi.md +98 -0
- package/docs/MarketHistoryPoint.md +43 -0
- package/docs/MarketHistoryResponse.md +43 -0
- package/docs/WatchApi.md +389 -0
- package/docs/WatchRule.md +61 -0
- package/docs/WatchRuleCreate.md +46 -0
- package/docs/WatchRulePage.md +36 -0
- package/docs/WatchRuleUpdate.md +47 -0
- package/package.json +1 -1
- package/src/apis/AutolaunchApi.ts +360 -0
- package/src/apis/BillingApi.ts +52 -0
- package/src/apis/MarketApi.ts +136 -0
- package/src/apis/WatchApi.ts +360 -0
- package/src/apis/index.ts +3 -0
- package/src/models/AutolaunchRule.ts +270 -0
- package/src/models/AutolaunchRuleCreate.ts +162 -0
- package/src/models/AutolaunchRuleDisarm.ts +68 -0
- package/src/models/AutolaunchRulePage.ts +83 -0
- package/src/models/Balance.ts +114 -0
- package/src/models/MarketHistoryPoint.ts +103 -0
- package/src/models/MarketHistoryResponse.ts +113 -0
- package/src/models/Problem.ts +1 -0
- package/src/models/WatchRule.ts +219 -0
- package/src/models/WatchRuleCreate.ts +138 -0
- package/src/models/WatchRulePage.ts +83 -0
- package/src/models/WatchRuleUpdate.ts +135 -0
- package/src/models/index.ts +11 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* GPU.ai Public Developer API
|
|
6
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@gpu.ai
|
|
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.WatchRuleCreateConditionKindEnum = exports.WatchRuleCreateCapacityClassEnum = void 0;
|
|
17
|
+
exports.instanceOfWatchRuleCreate = instanceOfWatchRuleCreate;
|
|
18
|
+
exports.WatchRuleCreateFromJSON = WatchRuleCreateFromJSON;
|
|
19
|
+
exports.WatchRuleCreateFromJSONTyped = WatchRuleCreateFromJSONTyped;
|
|
20
|
+
exports.WatchRuleCreateToJSON = WatchRuleCreateToJSON;
|
|
21
|
+
exports.WatchRuleCreateToJSONTyped = WatchRuleCreateToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.WatchRuleCreateCapacityClassEnum = {
|
|
26
|
+
Secure: 'secure',
|
|
27
|
+
Community: 'community'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.WatchRuleCreateConditionKindEnum = {
|
|
33
|
+
PriceUnder: 'price_under',
|
|
34
|
+
InStock: 'in_stock',
|
|
35
|
+
CountAtLeast: 'count_at_least'
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the WatchRuleCreate interface.
|
|
39
|
+
*/
|
|
40
|
+
function instanceOfWatchRuleCreate(value) {
|
|
41
|
+
if ((!('gpuModel' in value) && !('gpu_model' in value)) || (value['gpuModel'] === undefined && value['gpu_model'] === undefined))
|
|
42
|
+
return false;
|
|
43
|
+
if ((!('conditionKind' in value) && !('condition_kind' in value)) || (value['conditionKind'] === undefined && value['condition_kind'] === undefined))
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function WatchRuleCreateFromJSON(json) {
|
|
48
|
+
return WatchRuleCreateFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function WatchRuleCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'gpuModel': json['gpu_model'],
|
|
56
|
+
'region': json['region'] === undefined ? undefined : json['region'] === null ? null : json['region'],
|
|
57
|
+
'capacityClass': json['capacity_class'] === undefined ? undefined : json['capacity_class'] === null ? null : json['capacity_class'],
|
|
58
|
+
'conditionKind': json['condition_kind'],
|
|
59
|
+
'threshold': json['threshold'] === undefined ? undefined : json['threshold'] === null ? null : json['threshold'],
|
|
60
|
+
'webhookEndpointOverrideId': json['webhook_endpoint_override_id'] === undefined ? undefined : json['webhook_endpoint_override_id'] === null ? null : json['webhook_endpoint_override_id'],
|
|
61
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function WatchRuleCreateToJSON(json) {
|
|
65
|
+
return WatchRuleCreateToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
function WatchRuleCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'gpu_model': value['gpuModel'],
|
|
73
|
+
'region': value['region'],
|
|
74
|
+
'capacity_class': value['capacityClass'],
|
|
75
|
+
'condition_kind': value['conditionKind'],
|
|
76
|
+
'threshold': value['threshold'],
|
|
77
|
+
'webhook_endpoint_override_id': value['webhookEndpointOverrideId'],
|
|
78
|
+
'enabled': value['enabled'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GPU.ai Public Developer API
|
|
3
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@gpu.ai
|
|
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 type { WatchRule } from './WatchRule';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WatchRulePage
|
|
17
|
+
*/
|
|
18
|
+
export interface WatchRulePage {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<WatchRule>}
|
|
22
|
+
* @memberof WatchRulePage
|
|
23
|
+
*/
|
|
24
|
+
data: Array<WatchRule>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof WatchRulePage
|
|
29
|
+
*/
|
|
30
|
+
nextCursor: string | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the WatchRulePage interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfWatchRulePage(value: object): value is WatchRulePage;
|
|
36
|
+
export declare function WatchRulePageFromJSON(json: any): WatchRulePage;
|
|
37
|
+
export declare function WatchRulePageFromJSONTyped(json: any, ignoreDiscriminator: boolean): WatchRulePage;
|
|
38
|
+
export declare function WatchRulePageToJSON(json: any): WatchRulePage;
|
|
39
|
+
export declare function WatchRulePageToJSONTyped(value?: WatchRulePage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* GPU.ai Public Developer API
|
|
6
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@gpu.ai
|
|
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.instanceOfWatchRulePage = instanceOfWatchRulePage;
|
|
17
|
+
exports.WatchRulePageFromJSON = WatchRulePageFromJSON;
|
|
18
|
+
exports.WatchRulePageFromJSONTyped = WatchRulePageFromJSONTyped;
|
|
19
|
+
exports.WatchRulePageToJSON = WatchRulePageToJSON;
|
|
20
|
+
exports.WatchRulePageToJSONTyped = WatchRulePageToJSONTyped;
|
|
21
|
+
const WatchRule_1 = require("./WatchRule");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the WatchRulePage interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfWatchRulePage(value) {
|
|
26
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if ((!('nextCursor' in value) && !('next_cursor' in value)) || (value['nextCursor'] === undefined && value['next_cursor'] === undefined))
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function WatchRulePageFromJSON(json) {
|
|
33
|
+
return WatchRulePageFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function WatchRulePageFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'data': (json['data'].map(WatchRule_1.WatchRuleFromJSON)),
|
|
41
|
+
'nextCursor': json['next_cursor'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function WatchRulePageToJSON(json) {
|
|
45
|
+
return WatchRulePageToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function WatchRulePageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'data': (value['data'].map(WatchRule_1.WatchRuleToJSON)),
|
|
53
|
+
'next_cursor': value['nextCursor'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GPU.ai Public Developer API
|
|
3
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@gpu.ai
|
|
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
|
+
* Partial update. An absent key keeps the stored value; an explicit null on region, capacity_class or webhook_endpoint_override_id clears it. The merged rule is re-validated as a whole.
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WatchRuleUpdate
|
|
17
|
+
*/
|
|
18
|
+
export interface WatchRuleUpdate {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof WatchRuleUpdate
|
|
23
|
+
*/
|
|
24
|
+
gpuModel?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof WatchRuleUpdate
|
|
29
|
+
*/
|
|
30
|
+
region?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {WatchRuleUpdateCapacityClassEnum}
|
|
34
|
+
* @memberof WatchRuleUpdate
|
|
35
|
+
*/
|
|
36
|
+
capacityClass?: WatchRuleUpdateCapacityClassEnum | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {WatchRuleUpdateConditionKindEnum}
|
|
40
|
+
* @memberof WatchRuleUpdate
|
|
41
|
+
*/
|
|
42
|
+
conditionKind?: WatchRuleUpdateConditionKindEnum;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof WatchRuleUpdate
|
|
47
|
+
*/
|
|
48
|
+
threshold?: number | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof WatchRuleUpdate
|
|
53
|
+
*/
|
|
54
|
+
webhookEndpointOverrideId?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof WatchRuleUpdate
|
|
59
|
+
*/
|
|
60
|
+
enabled?: boolean;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const WatchRuleUpdateCapacityClassEnum: {
|
|
66
|
+
readonly Secure: "secure";
|
|
67
|
+
readonly Community: "community";
|
|
68
|
+
};
|
|
69
|
+
export type WatchRuleUpdateCapacityClassEnum = typeof WatchRuleUpdateCapacityClassEnum[keyof typeof WatchRuleUpdateCapacityClassEnum];
|
|
70
|
+
/**
|
|
71
|
+
* @export
|
|
72
|
+
*/
|
|
73
|
+
export declare const WatchRuleUpdateConditionKindEnum: {
|
|
74
|
+
readonly PriceUnder: "price_under";
|
|
75
|
+
readonly InStock: "in_stock";
|
|
76
|
+
readonly CountAtLeast: "count_at_least";
|
|
77
|
+
};
|
|
78
|
+
export type WatchRuleUpdateConditionKindEnum = typeof WatchRuleUpdateConditionKindEnum[keyof typeof WatchRuleUpdateConditionKindEnum];
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the WatchRuleUpdate interface.
|
|
81
|
+
*/
|
|
82
|
+
export declare function instanceOfWatchRuleUpdate(value: object): value is WatchRuleUpdate;
|
|
83
|
+
export declare function WatchRuleUpdateFromJSON(json: any): WatchRuleUpdate;
|
|
84
|
+
export declare function WatchRuleUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): WatchRuleUpdate;
|
|
85
|
+
export declare function WatchRuleUpdateToJSON(json: any): WatchRuleUpdate;
|
|
86
|
+
export declare function WatchRuleUpdateToJSONTyped(value?: WatchRuleUpdate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* GPU.ai Public Developer API
|
|
6
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@gpu.ai
|
|
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.WatchRuleUpdateConditionKindEnum = exports.WatchRuleUpdateCapacityClassEnum = void 0;
|
|
17
|
+
exports.instanceOfWatchRuleUpdate = instanceOfWatchRuleUpdate;
|
|
18
|
+
exports.WatchRuleUpdateFromJSON = WatchRuleUpdateFromJSON;
|
|
19
|
+
exports.WatchRuleUpdateFromJSONTyped = WatchRuleUpdateFromJSONTyped;
|
|
20
|
+
exports.WatchRuleUpdateToJSON = WatchRuleUpdateToJSON;
|
|
21
|
+
exports.WatchRuleUpdateToJSONTyped = WatchRuleUpdateToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.WatchRuleUpdateCapacityClassEnum = {
|
|
26
|
+
Secure: 'secure',
|
|
27
|
+
Community: 'community'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.WatchRuleUpdateConditionKindEnum = {
|
|
33
|
+
PriceUnder: 'price_under',
|
|
34
|
+
InStock: 'in_stock',
|
|
35
|
+
CountAtLeast: 'count_at_least'
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the WatchRuleUpdate interface.
|
|
39
|
+
*/
|
|
40
|
+
function instanceOfWatchRuleUpdate(value) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function WatchRuleUpdateFromJSON(json) {
|
|
44
|
+
return WatchRuleUpdateFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function WatchRuleUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'gpuModel': json['gpu_model'] == null ? undefined : json['gpu_model'],
|
|
52
|
+
'region': json['region'] === undefined ? undefined : json['region'] === null ? null : json['region'],
|
|
53
|
+
'capacityClass': json['capacity_class'] === undefined ? undefined : json['capacity_class'] === null ? null : json['capacity_class'],
|
|
54
|
+
'conditionKind': json['condition_kind'] == null ? undefined : json['condition_kind'],
|
|
55
|
+
'threshold': json['threshold'] === undefined ? undefined : json['threshold'] === null ? null : json['threshold'],
|
|
56
|
+
'webhookEndpointOverrideId': json['webhook_endpoint_override_id'] === undefined ? undefined : json['webhook_endpoint_override_id'] === null ? null : json['webhook_endpoint_override_id'],
|
|
57
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function WatchRuleUpdateToJSON(json) {
|
|
61
|
+
return WatchRuleUpdateToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function WatchRuleUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'gpu_model': value['gpuModel'],
|
|
69
|
+
'region': value['region'],
|
|
70
|
+
'capacity_class': value['capacityClass'],
|
|
71
|
+
'condition_kind': value['conditionKind'],
|
|
72
|
+
'threshold': value['threshold'],
|
|
73
|
+
'webhook_endpoint_override_id': value['webhookEndpointOverrideId'],
|
|
74
|
+
'enabled': value['enabled'],
|
|
75
|
+
};
|
|
76
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export * from './AutolaunchRule';
|
|
2
|
+
export * from './AutolaunchRuleCreate';
|
|
3
|
+
export * from './AutolaunchRuleDisarm';
|
|
4
|
+
export * from './AutolaunchRulePage';
|
|
5
|
+
export * from './Balance';
|
|
1
6
|
export * from './ChatChoice';
|
|
2
7
|
export * from './ChatCompletionRequest';
|
|
3
8
|
export * from './ChatCompletionResponse';
|
|
@@ -45,6 +50,8 @@ export * from './InstancePage';
|
|
|
45
50
|
export * from './ListCommunityMachines200Response';
|
|
46
51
|
export * from './ListDeposits200Response';
|
|
47
52
|
export * from './ListRegistryCredentials200Response';
|
|
53
|
+
export * from './MarketHistoryPoint';
|
|
54
|
+
export * from './MarketHistoryResponse';
|
|
48
55
|
export * from './Model';
|
|
49
56
|
export * from './ModelList';
|
|
50
57
|
export * from './ModelParametersInner';
|
|
@@ -77,5 +84,9 @@ export * from './VMImage';
|
|
|
77
84
|
export * from './VideoCreateRequest';
|
|
78
85
|
export * from './VideoJob';
|
|
79
86
|
export * from './VideoList';
|
|
87
|
+
export * from './WatchRule';
|
|
88
|
+
export * from './WatchRuleCreate';
|
|
89
|
+
export * from './WatchRulePage';
|
|
90
|
+
export * from './WatchRuleUpdate';
|
|
80
91
|
export * from './WebhookEndpoint';
|
|
81
92
|
export * from './WebhookEndpointPage';
|
package/dist/models/index.js
CHANGED
|
@@ -16,6 +16,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./AutolaunchRule"), exports);
|
|
20
|
+
__exportStar(require("./AutolaunchRuleCreate"), exports);
|
|
21
|
+
__exportStar(require("./AutolaunchRuleDisarm"), exports);
|
|
22
|
+
__exportStar(require("./AutolaunchRulePage"), exports);
|
|
23
|
+
__exportStar(require("./Balance"), exports);
|
|
19
24
|
__exportStar(require("./ChatChoice"), exports);
|
|
20
25
|
__exportStar(require("./ChatCompletionRequest"), exports);
|
|
21
26
|
__exportStar(require("./ChatCompletionResponse"), exports);
|
|
@@ -63,6 +68,8 @@ __exportStar(require("./InstancePage"), exports);
|
|
|
63
68
|
__exportStar(require("./ListCommunityMachines200Response"), exports);
|
|
64
69
|
__exportStar(require("./ListDeposits200Response"), exports);
|
|
65
70
|
__exportStar(require("./ListRegistryCredentials200Response"), exports);
|
|
71
|
+
__exportStar(require("./MarketHistoryPoint"), exports);
|
|
72
|
+
__exportStar(require("./MarketHistoryResponse"), exports);
|
|
66
73
|
__exportStar(require("./Model"), exports);
|
|
67
74
|
__exportStar(require("./ModelList"), exports);
|
|
68
75
|
__exportStar(require("./ModelParametersInner"), exports);
|
|
@@ -95,5 +102,9 @@ __exportStar(require("./VMImage"), exports);
|
|
|
95
102
|
__exportStar(require("./VideoCreateRequest"), exports);
|
|
96
103
|
__exportStar(require("./VideoJob"), exports);
|
|
97
104
|
__exportStar(require("./VideoList"), exports);
|
|
105
|
+
__exportStar(require("./WatchRule"), exports);
|
|
106
|
+
__exportStar(require("./WatchRuleCreate"), exports);
|
|
107
|
+
__exportStar(require("./WatchRulePage"), exports);
|
|
108
|
+
__exportStar(require("./WatchRuleUpdate"), exports);
|
|
98
109
|
__exportStar(require("./WebhookEndpoint"), exports);
|
|
99
110
|
__exportStar(require("./WebhookEndpointPage"), exports);
|