@gpuai/sdk 0.3.4 → 0.3.5
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 +10 -0
- package/README.md +9 -2
- package/dist/apis/RegistryCredentialsApi.d.ts +66 -0
- package/dist/apis/RegistryCredentialsApi.js +173 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/RegistryCredentialsApi.d.ts +66 -0
- package/dist/esm/apis/RegistryCredentialsApi.js +169 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/CreateInstanceRequest.d.ts +25 -0
- package/dist/esm/models/CreateInstanceRequest.js +9 -0
- package/dist/esm/models/CreateInstanceRequestPortsInner.d.ts +52 -0
- package/dist/esm/models/CreateInstanceRequestPortsInner.js +56 -0
- package/dist/esm/models/CreateRegistryCredentialRequest.d.ts +50 -0
- package/dist/esm/models/CreateRegistryCredentialRequest.js +55 -0
- package/dist/esm/models/ListRegistryCredentials200Response.d.ts +33 -0
- package/dist/esm/models/ListRegistryCredentials200Response.js +42 -0
- package/dist/esm/models/RegistryCredential.d.ts +56 -0
- package/dist/esm/models/RegistryCredential.js +49 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/CreateInstanceRequest.d.ts +25 -0
- package/dist/models/CreateInstanceRequest.js +9 -0
- package/dist/models/CreateInstanceRequestPortsInner.d.ts +52 -0
- package/dist/models/CreateInstanceRequestPortsInner.js +64 -0
- package/dist/models/CreateRegistryCredentialRequest.d.ts +50 -0
- package/dist/models/CreateRegistryCredentialRequest.js +62 -0
- package/dist/models/ListRegistryCredentials200Response.d.ts +33 -0
- package/dist/models/ListRegistryCredentials200Response.js +49 -0
- package/dist/models/RegistryCredential.d.ts +56 -0
- package/dist/models/RegistryCredential.js +56 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/CreateInstanceRequest.md +8 -0
- package/docs/CreateInstanceRequestPortsInner.md +38 -0
- package/docs/CreateRegistryCredentialRequest.md +40 -0
- package/docs/ListRegistryCredentials200Response.md +34 -0
- package/docs/RegistryCredential.md +43 -0
- package/docs/RegistryCredentialsApi.md +220 -0
- package/package.json +1 -1
- package/src/apis/RegistryCredentialsApi.ts +206 -0
- package/src/apis/index.ts +1 -0
- package/src/models/CreateInstanceRequest.ts +40 -0
- package/src/models/CreateInstanceRequestPortsInner.ts +94 -0
- package/src/models/CreateRegistryCredentialRequest.ts +93 -0
- package/src/models/ListRegistryCredentials200Response.ts +73 -0
- package/src/models/RegistryCredential.ts +97 -0
- package/src/models/index.ts +4 -0
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { CreateInstanceRequestPortsInnerFromJSON, CreateInstanceRequestPortsInnerToJSON, } from './CreateInstanceRequestPortsInner';
|
|
14
15
|
/**
|
|
15
16
|
* @export
|
|
16
17
|
*/
|
|
@@ -52,6 +53,10 @@ export function CreateInstanceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
53
|
'diskGb': json['disk_gb'] == null ? undefined : json['disk_gb'],
|
|
53
54
|
'env': json['env'] == null ? undefined : json['env'],
|
|
54
55
|
'image': json['image'] == null ? undefined : json['image'],
|
|
56
|
+
'registryCredentialId': json['registry_credential_id'] == null ? undefined : json['registry_credential_id'],
|
|
57
|
+
'entrypoint': json['entrypoint'] == null ? undefined : json['entrypoint'],
|
|
58
|
+
'cmd': json['cmd'] == null ? undefined : json['cmd'],
|
|
59
|
+
'ports': json['ports'] == null ? undefined : (json['ports'].map(CreateInstanceRequestPortsInnerFromJSON)),
|
|
55
60
|
};
|
|
56
61
|
}
|
|
57
62
|
export function CreateInstanceRequestToJSON(json) {
|
|
@@ -76,5 +81,9 @@ export function CreateInstanceRequestToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
76
81
|
'disk_gb': value['diskGb'],
|
|
77
82
|
'env': value['env'],
|
|
78
83
|
'image': value['image'],
|
|
84
|
+
'registry_credential_id': value['registryCredentialId'],
|
|
85
|
+
'entrypoint': value['entrypoint'],
|
|
86
|
+
'cmd': value['cmd'],
|
|
87
|
+
'ports': value['ports'] == null ? undefined : (value['ports'].map(CreateInstanceRequestPortsInnerToJSON)),
|
|
79
88
|
};
|
|
80
89
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 CreateInstanceRequestPortsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateInstanceRequestPortsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CreateInstanceRequestPortsInner
|
|
22
|
+
*/
|
|
23
|
+
port: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {CreateInstanceRequestPortsInnerProtocolEnum}
|
|
27
|
+
* @memberof CreateInstanceRequestPortsInner
|
|
28
|
+
*/
|
|
29
|
+
protocol: CreateInstanceRequestPortsInnerProtocolEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof CreateInstanceRequestPortsInner
|
|
34
|
+
*/
|
|
35
|
+
primary?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const CreateInstanceRequestPortsInnerProtocolEnum: {
|
|
41
|
+
readonly Http: "http";
|
|
42
|
+
readonly Tcp: "tcp";
|
|
43
|
+
};
|
|
44
|
+
export type CreateInstanceRequestPortsInnerProtocolEnum = typeof CreateInstanceRequestPortsInnerProtocolEnum[keyof typeof CreateInstanceRequestPortsInnerProtocolEnum];
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the CreateInstanceRequestPortsInner interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfCreateInstanceRequestPortsInner(value: object): value is CreateInstanceRequestPortsInner;
|
|
49
|
+
export declare function CreateInstanceRequestPortsInnerFromJSON(json: any): CreateInstanceRequestPortsInner;
|
|
50
|
+
export declare function CreateInstanceRequestPortsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateInstanceRequestPortsInner;
|
|
51
|
+
export declare function CreateInstanceRequestPortsInnerToJSON(json: any): CreateInstanceRequestPortsInner;
|
|
52
|
+
export declare function CreateInstanceRequestPortsInnerToJSONTyped(value?: CreateInstanceRequestPortsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const CreateInstanceRequestPortsInnerProtocolEnum = {
|
|
18
|
+
Http: 'http',
|
|
19
|
+
Tcp: 'tcp'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateInstanceRequestPortsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfCreateInstanceRequestPortsInner(value) {
|
|
25
|
+
if (!('port' in value) || value['port'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('protocol' in value) || value['protocol'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function CreateInstanceRequestPortsInnerFromJSON(json) {
|
|
32
|
+
return CreateInstanceRequestPortsInnerFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function CreateInstanceRequestPortsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'port': json['port'],
|
|
40
|
+
'protocol': json['protocol'],
|
|
41
|
+
'primary': json['primary'] == null ? undefined : json['primary'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function CreateInstanceRequestPortsInnerToJSON(json) {
|
|
45
|
+
return CreateInstanceRequestPortsInnerToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function CreateInstanceRequestPortsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'port': value['port'],
|
|
53
|
+
'protocol': value['protocol'],
|
|
54
|
+
'primary': value['primary'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 CreateRegistryCredentialRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateRegistryCredentialRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Org-unique handle (at most 64 characters).
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateRegistryCredentialRequest
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Registry host the login belongs to.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateRegistryCredentialRequest
|
|
28
|
+
*/
|
|
29
|
+
registry: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateRegistryCredentialRequest
|
|
34
|
+
*/
|
|
35
|
+
username: string;
|
|
36
|
+
/**
|
|
37
|
+
* Registry password or access token. Write-only.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateRegistryCredentialRequest
|
|
40
|
+
*/
|
|
41
|
+
password: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the CreateRegistryCredentialRequest interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfCreateRegistryCredentialRequest(value: object): value is CreateRegistryCredentialRequest;
|
|
47
|
+
export declare function CreateRegistryCredentialRequestFromJSON(json: any): CreateRegistryCredentialRequest;
|
|
48
|
+
export declare function CreateRegistryCredentialRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRegistryCredentialRequest;
|
|
49
|
+
export declare function CreateRegistryCredentialRequestToJSON(json: any): CreateRegistryCredentialRequest;
|
|
50
|
+
export declare function CreateRegistryCredentialRequestToJSONTyped(value?: CreateRegistryCredentialRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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 CreateRegistryCredentialRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateRegistryCredentialRequest(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('registry' in value) || value['registry'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('username' in value) || value['username'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function CreateRegistryCredentialRequestFromJSON(json) {
|
|
29
|
+
return CreateRegistryCredentialRequestFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function CreateRegistryCredentialRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'name': json['name'],
|
|
37
|
+
'registry': json['registry'],
|
|
38
|
+
'username': json['username'],
|
|
39
|
+
'password': json['password'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function CreateRegistryCredentialRequestToJSON(json) {
|
|
43
|
+
return CreateRegistryCredentialRequestToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function CreateRegistryCredentialRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'name': value['name'],
|
|
51
|
+
'registry': value['registry'],
|
|
52
|
+
'username': value['username'],
|
|
53
|
+
'password': value['password'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { RegistryCredential } from './RegistryCredential';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListRegistryCredentials200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ListRegistryCredentials200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<RegistryCredential>}
|
|
22
|
+
* @memberof ListRegistryCredentials200Response
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<RegistryCredential>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ListRegistryCredentials200Response interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfListRegistryCredentials200Response(value: object): value is ListRegistryCredentials200Response;
|
|
30
|
+
export declare function ListRegistryCredentials200ResponseFromJSON(json: any): ListRegistryCredentials200Response;
|
|
31
|
+
export declare function ListRegistryCredentials200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListRegistryCredentials200Response;
|
|
32
|
+
export declare function ListRegistryCredentials200ResponseToJSON(json: any): ListRegistryCredentials200Response;
|
|
33
|
+
export declare function ListRegistryCredentials200ResponseToJSONTyped(value?: ListRegistryCredentials200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
import { RegistryCredentialFromJSON, RegistryCredentialToJSON, } from './RegistryCredential';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ListRegistryCredentials200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfListRegistryCredentials200Response(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function ListRegistryCredentials200ResponseFromJSON(json) {
|
|
22
|
+
return ListRegistryCredentials200ResponseFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function ListRegistryCredentials200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'data': json['data'] == null ? undefined : (json['data'].map(RegistryCredentialFromJSON)),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function ListRegistryCredentials200ResponseToJSON(json) {
|
|
33
|
+
return ListRegistryCredentials200ResponseToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function ListRegistryCredentials200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'data': value['data'] == null ? undefined : (value['data'].map(RegistryCredentialToJSON)),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
* A stored private-registry login (metadata only — the password is write-only and encrypted at rest).
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RegistryCredential
|
|
16
|
+
*/
|
|
17
|
+
export interface RegistryCredential {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RegistryCredential
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RegistryCredential
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RegistryCredential
|
|
34
|
+
*/
|
|
35
|
+
registry?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof RegistryCredential
|
|
40
|
+
*/
|
|
41
|
+
username?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof RegistryCredential
|
|
46
|
+
*/
|
|
47
|
+
createdAt?: Date;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the RegistryCredential interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfRegistryCredential(value: object): value is RegistryCredential;
|
|
53
|
+
export declare function RegistryCredentialFromJSON(json: any): RegistryCredential;
|
|
54
|
+
export declare function RegistryCredentialFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegistryCredential;
|
|
55
|
+
export declare function RegistryCredentialToJSON(json: any): RegistryCredential;
|
|
56
|
+
export declare function RegistryCredentialToJSONTyped(value?: RegistryCredential | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 RegistryCredential interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfRegistryCredential(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function RegistryCredentialFromJSON(json) {
|
|
21
|
+
return RegistryCredentialFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function RegistryCredentialFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
29
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
30
|
+
'registry': json['registry'] == null ? undefined : json['registry'],
|
|
31
|
+
'username': json['username'] == null ? undefined : json['username'],
|
|
32
|
+
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function RegistryCredentialToJSON(json) {
|
|
36
|
+
return RegistryCredentialToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function RegistryCredentialToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': value['id'],
|
|
44
|
+
'name': value['name'],
|
|
45
|
+
'registry': value['registry'],
|
|
46
|
+
'username': value['username'],
|
|
47
|
+
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -12,6 +12,8 @@ export * from './CreateFineTuningJobRequestGpuai';
|
|
|
12
12
|
export * from './CreateFineTuningJobRequestMethod';
|
|
13
13
|
export * from './CreateFineTuningJobRequestMethodLora';
|
|
14
14
|
export * from './CreateInstanceRequest';
|
|
15
|
+
export * from './CreateInstanceRequestPortsInner';
|
|
16
|
+
export * from './CreateRegistryCredentialRequest';
|
|
15
17
|
export * from './CreateSshKeyRequest';
|
|
16
18
|
export * from './CreateWebhookEndpointRequest';
|
|
17
19
|
export * from './CryptoDeposit';
|
|
@@ -37,6 +39,7 @@ export * from './InstanceConnection';
|
|
|
37
39
|
export * from './InstancePage';
|
|
38
40
|
export * from './ListCommunityMachines200Response';
|
|
39
41
|
export * from './ListDeposits200Response';
|
|
42
|
+
export * from './ListRegistryCredentials200Response';
|
|
40
43
|
export * from './Model';
|
|
41
44
|
export * from './ModelList';
|
|
42
45
|
export * from './ModelParametersInner';
|
|
@@ -50,6 +53,7 @@ export * from './Pricing';
|
|
|
50
53
|
export * from './PricingPage';
|
|
51
54
|
export * from './Problem';
|
|
52
55
|
export * from './RegisterCommunityMachineRequest';
|
|
56
|
+
export * from './RegistryCredential';
|
|
53
57
|
export * from './SSHKey';
|
|
54
58
|
export * from './SSHKeyPage';
|
|
55
59
|
export * from './SpendingLimit';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -14,6 +14,8 @@ export * from './CreateFineTuningJobRequestGpuai';
|
|
|
14
14
|
export * from './CreateFineTuningJobRequestMethod';
|
|
15
15
|
export * from './CreateFineTuningJobRequestMethodLora';
|
|
16
16
|
export * from './CreateInstanceRequest';
|
|
17
|
+
export * from './CreateInstanceRequestPortsInner';
|
|
18
|
+
export * from './CreateRegistryCredentialRequest';
|
|
17
19
|
export * from './CreateSshKeyRequest';
|
|
18
20
|
export * from './CreateWebhookEndpointRequest';
|
|
19
21
|
export * from './CryptoDeposit';
|
|
@@ -39,6 +41,7 @@ export * from './InstanceConnection';
|
|
|
39
41
|
export * from './InstancePage';
|
|
40
42
|
export * from './ListCommunityMachines200Response';
|
|
41
43
|
export * from './ListDeposits200Response';
|
|
44
|
+
export * from './ListRegistryCredentials200Response';
|
|
42
45
|
export * from './Model';
|
|
43
46
|
export * from './ModelList';
|
|
44
47
|
export * from './ModelParametersInner';
|
|
@@ -52,6 +55,7 @@ export * from './Pricing';
|
|
|
52
55
|
export * from './PricingPage';
|
|
53
56
|
export * from './Problem';
|
|
54
57
|
export * from './RegisterCommunityMachineRequest';
|
|
58
|
+
export * from './RegistryCredential';
|
|
55
59
|
export * from './SSHKey';
|
|
56
60
|
export * from './SSHKeyPage';
|
|
57
61
|
export * from './SpendingLimit';
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { CreateInstanceRequestPortsInner } from './CreateInstanceRequestPortsInner';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -101,6 +102,30 @@ export interface CreateInstanceRequest {
|
|
|
101
102
|
* @memberof CreateInstanceRequest
|
|
102
103
|
*/
|
|
103
104
|
image?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Stored registry-credential id (POST /v1/registry-credentials) for pulling a PRIVATE `image`. The credential's registry must match the image's registry (422 otherwise); wrong logins fail the pre-flight with 422 `image_unavailable` before anything is provisioned. Requires `image`.
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof CreateInstanceRequest
|
|
109
|
+
*/
|
|
110
|
+
registryCredentialId?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Override the image's ENTRYPOINT (docker semantics — also drops the image CMD unless `cmd` is given). Omit to use the image's own. At most 32 arguments / 4KB. Requires `image`.
|
|
113
|
+
* @type {Array<string>}
|
|
114
|
+
* @memberof CreateInstanceRequest
|
|
115
|
+
*/
|
|
116
|
+
entrypoint?: Array<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Override the image's CMD. Omit to use the image's own (or none, when `entrypoint` is overridden). Requires `image`.
|
|
119
|
+
* @type {Array<string>}
|
|
120
|
+
* @memberof CreateInstanceRequest
|
|
121
|
+
*/
|
|
122
|
+
cmd?: Array<string>;
|
|
123
|
+
/**
|
|
124
|
+
* Container ports to expose on a custom-image launch (at most 10; port 22 is reserved). At most one entry may be `primary` — it must be http and is served at the instance's app URL (`https://<id>.apps.gpu.ai`) behind the per-instance basic-auth login. Requires `image`.
|
|
125
|
+
* @type {Array<CreateInstanceRequestPortsInner>}
|
|
126
|
+
* @memberof CreateInstanceRequest
|
|
127
|
+
*/
|
|
128
|
+
ports?: Array<CreateInstanceRequestPortsInner>;
|
|
104
129
|
}
|
|
105
130
|
/**
|
|
106
131
|
* @export
|
|
@@ -19,6 +19,7 @@ exports.CreateInstanceRequestFromJSON = CreateInstanceRequestFromJSON;
|
|
|
19
19
|
exports.CreateInstanceRequestFromJSONTyped = CreateInstanceRequestFromJSONTyped;
|
|
20
20
|
exports.CreateInstanceRequestToJSON = CreateInstanceRequestToJSON;
|
|
21
21
|
exports.CreateInstanceRequestToJSONTyped = CreateInstanceRequestToJSONTyped;
|
|
22
|
+
const CreateInstanceRequestPortsInner_1 = require("./CreateInstanceRequestPortsInner");
|
|
22
23
|
/**
|
|
23
24
|
* @export
|
|
24
25
|
*/
|
|
@@ -60,6 +61,10 @@ function CreateInstanceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
61
|
'diskGb': json['disk_gb'] == null ? undefined : json['disk_gb'],
|
|
61
62
|
'env': json['env'] == null ? undefined : json['env'],
|
|
62
63
|
'image': json['image'] == null ? undefined : json['image'],
|
|
64
|
+
'registryCredentialId': json['registry_credential_id'] == null ? undefined : json['registry_credential_id'],
|
|
65
|
+
'entrypoint': json['entrypoint'] == null ? undefined : json['entrypoint'],
|
|
66
|
+
'cmd': json['cmd'] == null ? undefined : json['cmd'],
|
|
67
|
+
'ports': json['ports'] == null ? undefined : (json['ports'].map(CreateInstanceRequestPortsInner_1.CreateInstanceRequestPortsInnerFromJSON)),
|
|
63
68
|
};
|
|
64
69
|
}
|
|
65
70
|
function CreateInstanceRequestToJSON(json) {
|
|
@@ -84,5 +89,9 @@ function CreateInstanceRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
84
89
|
'disk_gb': value['diskGb'],
|
|
85
90
|
'env': value['env'],
|
|
86
91
|
'image': value['image'],
|
|
92
|
+
'registry_credential_id': value['registryCredentialId'],
|
|
93
|
+
'entrypoint': value['entrypoint'],
|
|
94
|
+
'cmd': value['cmd'],
|
|
95
|
+
'ports': value['ports'] == null ? undefined : (value['ports'].map(CreateInstanceRequestPortsInner_1.CreateInstanceRequestPortsInnerToJSON)),
|
|
87
96
|
};
|
|
88
97
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 CreateInstanceRequestPortsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateInstanceRequestPortsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CreateInstanceRequestPortsInner
|
|
22
|
+
*/
|
|
23
|
+
port: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {CreateInstanceRequestPortsInnerProtocolEnum}
|
|
27
|
+
* @memberof CreateInstanceRequestPortsInner
|
|
28
|
+
*/
|
|
29
|
+
protocol: CreateInstanceRequestPortsInnerProtocolEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof CreateInstanceRequestPortsInner
|
|
34
|
+
*/
|
|
35
|
+
primary?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const CreateInstanceRequestPortsInnerProtocolEnum: {
|
|
41
|
+
readonly Http: "http";
|
|
42
|
+
readonly Tcp: "tcp";
|
|
43
|
+
};
|
|
44
|
+
export type CreateInstanceRequestPortsInnerProtocolEnum = typeof CreateInstanceRequestPortsInnerProtocolEnum[keyof typeof CreateInstanceRequestPortsInnerProtocolEnum];
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the CreateInstanceRequestPortsInner interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfCreateInstanceRequestPortsInner(value: object): value is CreateInstanceRequestPortsInner;
|
|
49
|
+
export declare function CreateInstanceRequestPortsInnerFromJSON(json: any): CreateInstanceRequestPortsInner;
|
|
50
|
+
export declare function CreateInstanceRequestPortsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateInstanceRequestPortsInner;
|
|
51
|
+
export declare function CreateInstanceRequestPortsInnerToJSON(json: any): CreateInstanceRequestPortsInner;
|
|
52
|
+
export declare function CreateInstanceRequestPortsInnerToJSONTyped(value?: CreateInstanceRequestPortsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.CreateInstanceRequestPortsInnerProtocolEnum = void 0;
|
|
17
|
+
exports.instanceOfCreateInstanceRequestPortsInner = instanceOfCreateInstanceRequestPortsInner;
|
|
18
|
+
exports.CreateInstanceRequestPortsInnerFromJSON = CreateInstanceRequestPortsInnerFromJSON;
|
|
19
|
+
exports.CreateInstanceRequestPortsInnerFromJSONTyped = CreateInstanceRequestPortsInnerFromJSONTyped;
|
|
20
|
+
exports.CreateInstanceRequestPortsInnerToJSON = CreateInstanceRequestPortsInnerToJSON;
|
|
21
|
+
exports.CreateInstanceRequestPortsInnerToJSONTyped = CreateInstanceRequestPortsInnerToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CreateInstanceRequestPortsInnerProtocolEnum = {
|
|
26
|
+
Http: 'http',
|
|
27
|
+
Tcp: 'tcp'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the CreateInstanceRequestPortsInner interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfCreateInstanceRequestPortsInner(value) {
|
|
33
|
+
if (!('port' in value) || value['port'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('protocol' in value) || value['protocol'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function CreateInstanceRequestPortsInnerFromJSON(json) {
|
|
40
|
+
return CreateInstanceRequestPortsInnerFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function CreateInstanceRequestPortsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'port': json['port'],
|
|
48
|
+
'protocol': json['protocol'],
|
|
49
|
+
'primary': json['primary'] == null ? undefined : json['primary'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function CreateInstanceRequestPortsInnerToJSON(json) {
|
|
53
|
+
return CreateInstanceRequestPortsInnerToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function CreateInstanceRequestPortsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'port': value['port'],
|
|
61
|
+
'protocol': value['protocol'],
|
|
62
|
+
'primary': value['primary'],
|
|
63
|
+
};
|
|
64
|
+
}
|