@gpuai/sdk 0.3.18 → 0.4.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 +40 -0
- package/README.md +36 -2
- package/dist/apis/BillingApi.d.ts +70 -0
- package/dist/apis/BillingApi.js +197 -0
- package/dist/apis/FunctionsApi.d.ts +228 -0
- package/dist/apis/FunctionsApi.js +627 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/BillingApi.d.ts +70 -0
- package/dist/esm/apis/BillingApi.js +197 -0
- package/dist/esm/apis/FunctionsApi.d.ts +228 -0
- package/dist/esm/apis/FunctionsApi.js +623 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AutolaunchRule.d.ts +2 -1
- package/dist/esm/models/BillingDetails.d.ts +98 -0
- package/dist/esm/models/BillingDetails.js +85 -0
- package/dist/esm/models/CreateFunctionRequest.d.ts +32 -0
- package/dist/esm/models/CreateFunctionRequest.js +43 -0
- package/dist/esm/models/CreateFunctionRunRequest.d.ts +38 -0
- package/dist/esm/models/CreateFunctionRunRequest.js +45 -0
- package/dist/esm/models/CreateFunctionVersionRequest.d.ts +110 -0
- package/dist/esm/models/CreateFunctionVersionRequest.js +79 -0
- package/dist/esm/models/Function.d.ts +163 -0
- package/dist/esm/models/Function.js +109 -0
- package/dist/esm/models/FunctionList.d.ts +33 -0
- package/dist/esm/models/FunctionList.js +44 -0
- package/dist/esm/models/FunctionReplicaCounts.d.ts +44 -0
- package/dist/esm/models/FunctionReplicaCounts.js +51 -0
- package/dist/esm/models/FunctionRun.d.ts +130 -0
- package/dist/esm/models/FunctionRun.js +94 -0
- package/dist/esm/models/FunctionRunError.d.ts +44 -0
- package/dist/esm/models/FunctionRunError.js +49 -0
- package/dist/esm/models/FunctionRunList.d.ts +39 -0
- package/dist/esm/models/FunctionRunList.js +48 -0
- package/dist/esm/models/FunctionRunLogChunk.d.ts +59 -0
- package/dist/esm/models/FunctionRunLogChunk.js +63 -0
- package/dist/esm/models/FunctionRunLogs.d.ts +45 -0
- package/dist/esm/models/FunctionRunLogs.js +52 -0
- package/dist/esm/models/FunctionUpload.d.ts +51 -0
- package/dist/esm/models/FunctionUpload.js +59 -0
- package/dist/esm/models/FunctionVersion.d.ts +137 -0
- package/dist/esm/models/FunctionVersion.js +109 -0
- package/dist/esm/models/Invoice.d.ts +68 -0
- package/dist/esm/models/Invoice.js +67 -0
- package/dist/esm/models/InvoiceList.d.ts +45 -0
- package/dist/esm/models/InvoiceList.js +50 -0
- package/dist/esm/models/ModelPricing.d.ts +46 -0
- package/dist/esm/models/ModelPricing.js +21 -0
- package/dist/esm/models/ModelRate.d.ts +62 -0
- package/dist/esm/models/ModelRate.js +51 -0
- package/dist/esm/models/PeakWindow.d.ts +38 -0
- package/dist/esm/models/PeakWindow.js +47 -0
- package/dist/esm/models/UpdateBillingDetailsRequest.d.ts +80 -0
- package/dist/esm/models/UpdateBillingDetailsRequest.js +57 -0
- package/dist/esm/models/index.d.ts +19 -0
- package/dist/esm/models/index.js +19 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AutolaunchRule.d.ts +2 -1
- package/dist/models/BillingDetails.d.ts +98 -0
- package/dist/models/BillingDetails.js +92 -0
- package/dist/models/CreateFunctionRequest.d.ts +32 -0
- package/dist/models/CreateFunctionRequest.js +50 -0
- package/dist/models/CreateFunctionRunRequest.d.ts +38 -0
- package/dist/models/CreateFunctionRunRequest.js +52 -0
- package/dist/models/CreateFunctionVersionRequest.d.ts +110 -0
- package/dist/models/CreateFunctionVersionRequest.js +86 -0
- package/dist/models/Function.d.ts +163 -0
- package/dist/models/Function.js +117 -0
- package/dist/models/FunctionList.d.ts +33 -0
- package/dist/models/FunctionList.js +51 -0
- package/dist/models/FunctionReplicaCounts.d.ts +44 -0
- package/dist/models/FunctionReplicaCounts.js +58 -0
- package/dist/models/FunctionRun.d.ts +130 -0
- package/dist/models/FunctionRun.js +102 -0
- package/dist/models/FunctionRunError.d.ts +44 -0
- package/dist/models/FunctionRunError.js +56 -0
- package/dist/models/FunctionRunList.d.ts +39 -0
- package/dist/models/FunctionRunList.js +55 -0
- package/dist/models/FunctionRunLogChunk.d.ts +59 -0
- package/dist/models/FunctionRunLogChunk.js +71 -0
- package/dist/models/FunctionRunLogs.d.ts +45 -0
- package/dist/models/FunctionRunLogs.js +59 -0
- package/dist/models/FunctionUpload.d.ts +51 -0
- package/dist/models/FunctionUpload.js +67 -0
- package/dist/models/FunctionVersion.d.ts +137 -0
- package/dist/models/FunctionVersion.js +117 -0
- package/dist/models/Invoice.d.ts +68 -0
- package/dist/models/Invoice.js +74 -0
- package/dist/models/InvoiceList.d.ts +45 -0
- package/dist/models/InvoiceList.js +57 -0
- package/dist/models/ModelPricing.d.ts +46 -0
- package/dist/models/ModelPricing.js +22 -0
- package/dist/models/ModelRate.d.ts +62 -0
- package/dist/models/ModelRate.js +58 -0
- package/dist/models/PeakWindow.d.ts +38 -0
- package/dist/models/PeakWindow.js +54 -0
- package/dist/models/UpdateBillingDetailsRequest.d.ts +80 -0
- package/dist/models/UpdateBillingDetailsRequest.js +64 -0
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.js +19 -0
- package/dist/runtime.js +1 -1
- package/docs/BillingApi.md +299 -0
- package/docs/BillingDetails.md +56 -0
- package/docs/CreateFunctionRequest.md +34 -0
- package/docs/CreateFunctionRunRequest.md +36 -0
- package/docs/CreateFunctionVersionRequest.md +60 -0
- package/docs/Function.md +75 -0
- package/docs/FunctionList.md +34 -0
- package/docs/FunctionReplicaCounts.md +39 -0
- package/docs/FunctionRun.md +63 -0
- package/docs/FunctionRunError.md +38 -0
- package/docs/FunctionRunList.md +36 -0
- package/docs/FunctionRunLogChunk.md +40 -0
- package/docs/FunctionRunLogs.md +38 -0
- package/docs/FunctionUpload.md +38 -0
- package/docs/FunctionVersion.md +66 -0
- package/docs/FunctionsApi.md +880 -0
- package/docs/Invoice.md +46 -0
- package/docs/InvoiceList.md +38 -0
- package/docs/ModelPricing.md +12 -0
- package/docs/ModelRate.md +45 -0
- package/docs/PeakWindow.md +37 -0
- package/docs/UpdateBillingDetailsRequest.md +50 -0
- package/package.json +1 -1
- package/src/apis/BillingApi.ts +247 -0
- package/src/apis/FunctionsApi.ts +828 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AutolaunchRule.ts +2 -1
- package/src/models/BillingDetails.ts +164 -0
- package/src/models/CreateFunctionRequest.ts +66 -0
- package/src/models/CreateFunctionRunRequest.ts +74 -0
- package/src/models/CreateFunctionVersionRequest.ts +175 -0
- package/src/models/Function.ts +255 -0
- package/src/models/FunctionList.ts +74 -0
- package/src/models/FunctionReplicaCounts.ts +84 -0
- package/src/models/FunctionRun.ts +207 -0
- package/src/models/FunctionRunError.ts +83 -0
- package/src/models/FunctionRunList.ts +83 -0
- package/src/models/FunctionRunLogChunk.ts +105 -0
- package/src/models/FunctionRunLogs.ts +92 -0
- package/src/models/FunctionUpload.ts +96 -0
- package/src/models/FunctionVersion.ts +226 -0
- package/src/models/Invoice.ts +120 -0
- package/src/models/InvoiceList.ts +91 -0
- package/src/models/ModelPricing.ts +74 -0
- package/src/models/ModelRate.ts +105 -0
- package/src/models/PeakWindow.ts +75 -0
- package/src/models/UpdateBillingDetailsRequest.ts +129 -0
- package/src/models/index.ts +19 -0
- package/src/runtime.ts +1 -1
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BillingDetails
|
|
16
|
+
*/
|
|
17
|
+
export interface BillingDetails {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BillingDetails
|
|
22
|
+
*/
|
|
23
|
+
legalName: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BillingDetails
|
|
28
|
+
*/
|
|
29
|
+
addressLine1: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BillingDetails
|
|
34
|
+
*/
|
|
35
|
+
addressLine2: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BillingDetails
|
|
40
|
+
*/
|
|
41
|
+
city: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof BillingDetails
|
|
46
|
+
*/
|
|
47
|
+
region: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof BillingDetails
|
|
52
|
+
*/
|
|
53
|
+
postalCode: string;
|
|
54
|
+
/**
|
|
55
|
+
* ISO 3166-1 alpha-2 code, or empty.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof BillingDetails
|
|
58
|
+
*/
|
|
59
|
+
country: string;
|
|
60
|
+
/**
|
|
61
|
+
* eu_vat, gb_vat, ch_vat, no_vat, us_ein, ca_bn, au_abn, nz_gst, in_gst, sg_uen, jp_cn, kr_brn, ae_trn, sa_vat, br_cnpj, mx_rfc or other. Empty when no Tax ID is stored.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof BillingDetails
|
|
64
|
+
*/
|
|
65
|
+
taxIdType: string;
|
|
66
|
+
/**
|
|
67
|
+
* The stored Tax ID, masked. Empty when none is stored.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof BillingDetails
|
|
70
|
+
*/
|
|
71
|
+
taxIdMasked: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof BillingDetails
|
|
76
|
+
*/
|
|
77
|
+
hasTaxId: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* False when this deployment cannot store a Tax ID.
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof BillingDetails
|
|
82
|
+
*/
|
|
83
|
+
taxIdEnabled: boolean;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Date}
|
|
87
|
+
* @memberof BillingDetails
|
|
88
|
+
*/
|
|
89
|
+
updatedAt?: Date;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Check if a given object implements the BillingDetails interface.
|
|
93
|
+
*/
|
|
94
|
+
export declare function instanceOfBillingDetails(value: object): value is BillingDetails;
|
|
95
|
+
export declare function BillingDetailsFromJSON(json: any): BillingDetails;
|
|
96
|
+
export declare function BillingDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingDetails;
|
|
97
|
+
export declare function BillingDetailsToJSON(json: any): BillingDetails;
|
|
98
|
+
export declare function BillingDetailsToJSONTyped(value?: BillingDetails | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GPU.ai Public Developer API
|
|
5
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@gpu.ai
|
|
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
|
+
* Check if a given object implements the BillingDetails interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfBillingDetails(value) {
|
|
18
|
+
if ((!('legalName' in value) && !('legal_name' in value)) || (value['legalName'] === undefined && value['legal_name'] === undefined))
|
|
19
|
+
return false;
|
|
20
|
+
if ((!('addressLine1' in value) && !('address_line1' in value)) || (value['addressLine1'] === undefined && value['address_line1'] === undefined))
|
|
21
|
+
return false;
|
|
22
|
+
if ((!('addressLine2' in value) && !('address_line2' in value)) || (value['addressLine2'] === undefined && value['address_line2'] === undefined))
|
|
23
|
+
return false;
|
|
24
|
+
if (!('city' in value) || value['city'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('region' in value) || value['region'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if ((!('postalCode' in value) && !('postal_code' in value)) || (value['postalCode'] === undefined && value['postal_code'] === undefined))
|
|
29
|
+
return false;
|
|
30
|
+
if (!('country' in value) || value['country'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if ((!('taxIdType' in value) && !('tax_id_type' in value)) || (value['taxIdType'] === undefined && value['tax_id_type'] === undefined))
|
|
33
|
+
return false;
|
|
34
|
+
if ((!('taxIdMasked' in value) && !('tax_id_masked' in value)) || (value['taxIdMasked'] === undefined && value['tax_id_masked'] === undefined))
|
|
35
|
+
return false;
|
|
36
|
+
if ((!('hasTaxId' in value) && !('has_tax_id' in value)) || (value['hasTaxId'] === undefined && value['has_tax_id'] === undefined))
|
|
37
|
+
return false;
|
|
38
|
+
if ((!('taxIdEnabled' in value) && !('tax_id_enabled' in value)) || (value['taxIdEnabled'] === undefined && value['tax_id_enabled'] === undefined))
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
export function BillingDetailsFromJSON(json) {
|
|
43
|
+
return BillingDetailsFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function BillingDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'legalName': json['legal_name'],
|
|
51
|
+
'addressLine1': json['address_line1'],
|
|
52
|
+
'addressLine2': json['address_line2'],
|
|
53
|
+
'city': json['city'],
|
|
54
|
+
'region': json['region'],
|
|
55
|
+
'postalCode': json['postal_code'],
|
|
56
|
+
'country': json['country'],
|
|
57
|
+
'taxIdType': json['tax_id_type'],
|
|
58
|
+
'taxIdMasked': json['tax_id_masked'],
|
|
59
|
+
'hasTaxId': json['has_tax_id'],
|
|
60
|
+
'taxIdEnabled': json['tax_id_enabled'],
|
|
61
|
+
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export function BillingDetailsToJSON(json) {
|
|
65
|
+
return BillingDetailsToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
export function BillingDetailsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'legal_name': value['legalName'],
|
|
73
|
+
'address_line1': value['addressLine1'],
|
|
74
|
+
'address_line2': value['addressLine2'],
|
|
75
|
+
'city': value['city'],
|
|
76
|
+
'region': value['region'],
|
|
77
|
+
'postal_code': value['postalCode'],
|
|
78
|
+
'country': value['country'],
|
|
79
|
+
'tax_id_type': value['taxIdType'],
|
|
80
|
+
'tax_id_masked': value['taxIdMasked'],
|
|
81
|
+
'has_tax_id': value['hasTaxId'],
|
|
82
|
+
'tax_id_enabled': value['taxIdEnabled'],
|
|
83
|
+
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateFunctionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateFunctionRequest {
|
|
18
|
+
/**
|
|
19
|
+
* A letter, then letters, digits, underscores or hyphens; 63 characters at most.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateFunctionRequest
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CreateFunctionRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfCreateFunctionRequest(value: object): value is CreateFunctionRequest;
|
|
29
|
+
export declare function CreateFunctionRequestFromJSON(json: any): CreateFunctionRequest;
|
|
30
|
+
export declare function CreateFunctionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFunctionRequest;
|
|
31
|
+
export declare function CreateFunctionRequestToJSON(json: any): CreateFunctionRequest;
|
|
32
|
+
export declare function CreateFunctionRequestToJSONTyped(value?: CreateFunctionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GPU.ai Public Developer API
|
|
5
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@gpu.ai
|
|
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
|
+
* Check if a given object implements the CreateFunctionRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateFunctionRequest(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function CreateFunctionRequestFromJSON(json) {
|
|
23
|
+
return CreateFunctionRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function CreateFunctionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'name': json['name'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function CreateFunctionRequestToJSON(json) {
|
|
34
|
+
return CreateFunctionRequestToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function CreateFunctionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'name': value['name'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateFunctionRunRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateFunctionRunRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The version to run. Omit to run the function's current version.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateFunctionRunRequest
|
|
22
|
+
*/
|
|
23
|
+
versionId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The pickled (args, kwargs) of the call, base64-encoded. 4 MB at most before encoding.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateFunctionRunRequest
|
|
28
|
+
*/
|
|
29
|
+
input: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CreateFunctionRunRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCreateFunctionRunRequest(value: object): value is CreateFunctionRunRequest;
|
|
35
|
+
export declare function CreateFunctionRunRequestFromJSON(json: any): CreateFunctionRunRequest;
|
|
36
|
+
export declare function CreateFunctionRunRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFunctionRunRequest;
|
|
37
|
+
export declare function CreateFunctionRunRequestToJSON(json: any): CreateFunctionRunRequest;
|
|
38
|
+
export declare function CreateFunctionRunRequestToJSONTyped(value?: CreateFunctionRunRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GPU.ai Public Developer API
|
|
5
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@gpu.ai
|
|
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
|
+
* Check if a given object implements the CreateFunctionRunRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateFunctionRunRequest(value) {
|
|
18
|
+
if (!('input' in value) || value['input'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function CreateFunctionRunRequestFromJSON(json) {
|
|
23
|
+
return CreateFunctionRunRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function CreateFunctionRunRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'versionId': json['version_id'] == null ? undefined : json['version_id'],
|
|
31
|
+
'input': json['input'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function CreateFunctionRunRequestToJSON(json) {
|
|
35
|
+
return CreateFunctionRunRequestToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function CreateFunctionRunRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'version_id': value['versionId'],
|
|
43
|
+
'input': value['input'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateFunctionVersionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateFunctionVersionRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Lowercase hex SHA-256 over the code and everything declared about it.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateFunctionVersionRequest
|
|
22
|
+
*/
|
|
23
|
+
contentHash: string;
|
|
24
|
+
/**
|
|
25
|
+
* Lowercase hex SHA-256 of the pickled function.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateFunctionVersionRequest
|
|
28
|
+
*/
|
|
29
|
+
bundleSha256: string;
|
|
30
|
+
/**
|
|
31
|
+
* Size of the pickled function. 64 MB at most.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof CreateFunctionVersionRequest
|
|
34
|
+
*/
|
|
35
|
+
bundleBytes: number;
|
|
36
|
+
/**
|
|
37
|
+
* The Python minor version the function was pickled with, such as "3.11".
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateFunctionVersionRequest
|
|
40
|
+
*/
|
|
41
|
+
pythonVersion: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreateFunctionVersionRequest
|
|
46
|
+
*/
|
|
47
|
+
cloudpickleVersion: string;
|
|
48
|
+
/**
|
|
49
|
+
* Requirements to install on the machine. Options (anything starting with "-") are refused.
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof CreateFunctionVersionRequest
|
|
52
|
+
*/
|
|
53
|
+
pip?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
* A GPU type from GET /gpu-types. Omit to use the cheapest GPU that fits.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CreateFunctionVersionRequest
|
|
58
|
+
*/
|
|
59
|
+
gpu?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof CreateFunctionVersionRequest
|
|
64
|
+
*/
|
|
65
|
+
gpuCount?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Least VRAM per GPU, used when gpu is omitted.
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof CreateFunctionVersionRequest
|
|
70
|
+
*/
|
|
71
|
+
minVramGb?: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<string>}
|
|
75
|
+
* @memberof CreateFunctionVersionRequest
|
|
76
|
+
*/
|
|
77
|
+
regions?: Array<string>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof CreateFunctionVersionRequest
|
|
82
|
+
*/
|
|
83
|
+
maxPricePerHour?: number;
|
|
84
|
+
/**
|
|
85
|
+
* Seconds one call may run. 1 to 86400.
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof CreateFunctionVersionRequest
|
|
88
|
+
*/
|
|
89
|
+
timeout: number;
|
|
90
|
+
/**
|
|
91
|
+
* Seconds a machine stays ready after a call. 0 releases it at once.
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof CreateFunctionVersionRequest
|
|
94
|
+
*/
|
|
95
|
+
idleTimeout?: number;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof CreateFunctionVersionRequest
|
|
100
|
+
*/
|
|
101
|
+
maxConcurrency?: number;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Check if a given object implements the CreateFunctionVersionRequest interface.
|
|
105
|
+
*/
|
|
106
|
+
export declare function instanceOfCreateFunctionVersionRequest(value: object): value is CreateFunctionVersionRequest;
|
|
107
|
+
export declare function CreateFunctionVersionRequestFromJSON(json: any): CreateFunctionVersionRequest;
|
|
108
|
+
export declare function CreateFunctionVersionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFunctionVersionRequest;
|
|
109
|
+
export declare function CreateFunctionVersionRequestToJSON(json: any): CreateFunctionVersionRequest;
|
|
110
|
+
export declare function CreateFunctionVersionRequestToJSONTyped(value?: CreateFunctionVersionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GPU.ai Public Developer API
|
|
5
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@gpu.ai
|
|
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
|
+
* Check if a given object implements the CreateFunctionVersionRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateFunctionVersionRequest(value) {
|
|
18
|
+
if ((!('contentHash' in value) && !('content_hash' in value)) || (value['contentHash'] === undefined && value['content_hash'] === undefined))
|
|
19
|
+
return false;
|
|
20
|
+
if ((!('bundleSha256' in value) && !('bundle_sha256' in value)) || (value['bundleSha256'] === undefined && value['bundle_sha256'] === undefined))
|
|
21
|
+
return false;
|
|
22
|
+
if ((!('bundleBytes' in value) && !('bundle_bytes' in value)) || (value['bundleBytes'] === undefined && value['bundle_bytes'] === undefined))
|
|
23
|
+
return false;
|
|
24
|
+
if ((!('pythonVersion' in value) && !('python_version' in value)) || (value['pythonVersion'] === undefined && value['python_version'] === undefined))
|
|
25
|
+
return false;
|
|
26
|
+
if ((!('cloudpickleVersion' in value) && !('cloudpickle_version' in value)) || (value['cloudpickleVersion'] === undefined && value['cloudpickle_version'] === undefined))
|
|
27
|
+
return false;
|
|
28
|
+
if (!('timeout' in value) || value['timeout'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function CreateFunctionVersionRequestFromJSON(json) {
|
|
33
|
+
return CreateFunctionVersionRequestFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function CreateFunctionVersionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'contentHash': json['content_hash'],
|
|
41
|
+
'bundleSha256': json['bundle_sha256'],
|
|
42
|
+
'bundleBytes': json['bundle_bytes'],
|
|
43
|
+
'pythonVersion': json['python_version'],
|
|
44
|
+
'cloudpickleVersion': json['cloudpickle_version'],
|
|
45
|
+
'pip': json['pip'] == null ? undefined : json['pip'],
|
|
46
|
+
'gpu': json['gpu'] == null ? undefined : json['gpu'],
|
|
47
|
+
'gpuCount': json['gpu_count'] == null ? undefined : json['gpu_count'],
|
|
48
|
+
'minVramGb': json['min_vram_gb'] == null ? undefined : json['min_vram_gb'],
|
|
49
|
+
'regions': json['regions'] == null ? undefined : json['regions'],
|
|
50
|
+
'maxPricePerHour': json['max_price_per_hour'] == null ? undefined : json['max_price_per_hour'],
|
|
51
|
+
'timeout': json['timeout'],
|
|
52
|
+
'idleTimeout': json['idle_timeout'] == null ? undefined : json['idle_timeout'],
|
|
53
|
+
'maxConcurrency': json['max_concurrency'] == null ? undefined : json['max_concurrency'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export function CreateFunctionVersionRequestToJSON(json) {
|
|
57
|
+
return CreateFunctionVersionRequestToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
export function CreateFunctionVersionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'content_hash': value['contentHash'],
|
|
65
|
+
'bundle_sha256': value['bundleSha256'],
|
|
66
|
+
'bundle_bytes': value['bundleBytes'],
|
|
67
|
+
'python_version': value['pythonVersion'],
|
|
68
|
+
'cloudpickle_version': value['cloudpickleVersion'],
|
|
69
|
+
'pip': value['pip'],
|
|
70
|
+
'gpu': value['gpu'],
|
|
71
|
+
'gpu_count': value['gpuCount'],
|
|
72
|
+
'min_vram_gb': value['minVramGb'],
|
|
73
|
+
'regions': value['regions'],
|
|
74
|
+
'max_price_per_hour': value['maxPricePerHour'],
|
|
75
|
+
'timeout': value['timeout'],
|
|
76
|
+
'idle_timeout': value['idleTimeout'],
|
|
77
|
+
'max_concurrency': value['maxConcurrency'],
|
|
78
|
+
};
|
|
79
|
+
}
|