hostinger-api-sdk 2.14.1 → 2.15.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/README.md +2 -2
- package/api.ts +684 -9
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +467 -9
- package/dist/api.js +432 -22
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +467 -9
- package/dist/esm/api.js +415 -9
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/GPUInstancesApi.md +272 -0
- package/docs/GPUV1InstanceInstanceListResource.md +32 -0
- package/docs/GPUV1InstanceInstanceResource.md +34 -0
- package/docs/GPUV1InstanceStoreRequest.md +26 -0
- package/docs/GPUV1MetricsMetricsResource.md +30 -0
- package/docs/GPUV1SshKeySshKeyResource.md +24 -0
- package/docs/HostingPocketBaseApi.md +2 -2
- package/docs/HostingV1PocketBaseBackendResource.md +4 -0
- package/docs/HostingV1PocketBaseInstanceResource.md +4 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.15.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -7011,6 +7011,226 @@ export interface EcommerceV1VariantVariantResponseResource {
|
|
|
7011
7011
|
*/
|
|
7012
7012
|
'data': EcommerceV1VariantVariantResource;
|
|
7013
7013
|
}
|
|
7014
|
+
/**
|
|
7015
|
+
*
|
|
7016
|
+
* @export
|
|
7017
|
+
* @interface GPUV1InstanceInstanceListResource
|
|
7018
|
+
*/
|
|
7019
|
+
export interface GPUV1InstanceInstanceListResource {
|
|
7020
|
+
/**
|
|
7021
|
+
* GPU instance ID
|
|
7022
|
+
* @type {number}
|
|
7023
|
+
* @memberof GPUV1InstanceInstanceListResource
|
|
7024
|
+
*/
|
|
7025
|
+
'id': number;
|
|
7026
|
+
/**
|
|
7027
|
+
*
|
|
7028
|
+
* @type {string}
|
|
7029
|
+
* @memberof GPUV1InstanceInstanceListResource
|
|
7030
|
+
*/
|
|
7031
|
+
'name': string;
|
|
7032
|
+
/**
|
|
7033
|
+
*
|
|
7034
|
+
* @type {string}
|
|
7035
|
+
* @memberof GPUV1InstanceInstanceListResource
|
|
7036
|
+
*/
|
|
7037
|
+
'status': GPUV1InstanceInstanceListResourceStatusEnum;
|
|
7038
|
+
/**
|
|
7039
|
+
* Whether an action is in progress on the instance
|
|
7040
|
+
* @type {string}
|
|
7041
|
+
* @memberof GPUV1InstanceInstanceListResource
|
|
7042
|
+
*/
|
|
7043
|
+
'action_lock': GPUV1InstanceInstanceListResourceActionLockEnum;
|
|
7044
|
+
/**
|
|
7045
|
+
*
|
|
7046
|
+
* @type {GPUV1PoolPoolResource}
|
|
7047
|
+
* @memberof GPUV1InstanceInstanceListResource
|
|
7048
|
+
*/
|
|
7049
|
+
'pool': GPUV1PoolPoolResource;
|
|
7050
|
+
/**
|
|
7051
|
+
*
|
|
7052
|
+
* @type {GPUV1PoolPoolInstanceResource}
|
|
7053
|
+
* @memberof GPUV1InstanceInstanceListResource
|
|
7054
|
+
*/
|
|
7055
|
+
'pool_instance': GPUV1PoolPoolInstanceResource;
|
|
7056
|
+
/**
|
|
7057
|
+
*
|
|
7058
|
+
* @type {GPUV1OsTemplateOsTemplateResource}
|
|
7059
|
+
* @memberof GPUV1InstanceInstanceListResource
|
|
7060
|
+
*/
|
|
7061
|
+
'os_template': GPUV1OsTemplateOsTemplateResource;
|
|
7062
|
+
}
|
|
7063
|
+
|
|
7064
|
+
export const GPUV1InstanceInstanceListResourceStatusEnum = {
|
|
7065
|
+
Created: 'created',
|
|
7066
|
+
Creating: 'creating',
|
|
7067
|
+
Running: 'running',
|
|
7068
|
+
Stopped: 'stopped',
|
|
7069
|
+
Destroying: 'destroying',
|
|
7070
|
+
Destroyed: 'destroyed',
|
|
7071
|
+
InsufficientFunds: 'insufficient_funds',
|
|
7072
|
+
Error: 'error',
|
|
7073
|
+
Abuse: 'abuse'
|
|
7074
|
+
} as const;
|
|
7075
|
+
|
|
7076
|
+
export type GPUV1InstanceInstanceListResourceStatusEnum = typeof GPUV1InstanceInstanceListResourceStatusEnum[keyof typeof GPUV1InstanceInstanceListResourceStatusEnum];
|
|
7077
|
+
export const GPUV1InstanceInstanceListResourceActionLockEnum = {
|
|
7078
|
+
Unlocked: 'unlocked',
|
|
7079
|
+
Locked: 'locked'
|
|
7080
|
+
} as const;
|
|
7081
|
+
|
|
7082
|
+
export type GPUV1InstanceInstanceListResourceActionLockEnum = typeof GPUV1InstanceInstanceListResourceActionLockEnum[keyof typeof GPUV1InstanceInstanceListResourceActionLockEnum];
|
|
7083
|
+
|
|
7084
|
+
/**
|
|
7085
|
+
*
|
|
7086
|
+
* @export
|
|
7087
|
+
* @interface GPUV1InstanceInstanceResource
|
|
7088
|
+
*/
|
|
7089
|
+
export interface GPUV1InstanceInstanceResource {
|
|
7090
|
+
/**
|
|
7091
|
+
* GPU instance ID
|
|
7092
|
+
* @type {number}
|
|
7093
|
+
* @memberof GPUV1InstanceInstanceResource
|
|
7094
|
+
*/
|
|
7095
|
+
'id': number;
|
|
7096
|
+
/**
|
|
7097
|
+
*
|
|
7098
|
+
* @type {string}
|
|
7099
|
+
* @memberof GPUV1InstanceInstanceResource
|
|
7100
|
+
*/
|
|
7101
|
+
'name': string;
|
|
7102
|
+
/**
|
|
7103
|
+
*
|
|
7104
|
+
* @type {string}
|
|
7105
|
+
* @memberof GPUV1InstanceInstanceResource
|
|
7106
|
+
*/
|
|
7107
|
+
'status': GPUV1InstanceInstanceResourceStatusEnum;
|
|
7108
|
+
/**
|
|
7109
|
+
* Whether an action is in progress on the instance
|
|
7110
|
+
* @type {string}
|
|
7111
|
+
* @memberof GPUV1InstanceInstanceResource
|
|
7112
|
+
*/
|
|
7113
|
+
'action_lock': GPUV1InstanceInstanceResourceActionLockEnum;
|
|
7114
|
+
/**
|
|
7115
|
+
*
|
|
7116
|
+
* @type {GPUV1PoolPoolResource}
|
|
7117
|
+
* @memberof GPUV1InstanceInstanceResource
|
|
7118
|
+
*/
|
|
7119
|
+
'pool': GPUV1PoolPoolResource;
|
|
7120
|
+
/**
|
|
7121
|
+
*
|
|
7122
|
+
* @type {GPUV1PoolPoolInstanceResource}
|
|
7123
|
+
* @memberof GPUV1InstanceInstanceResource
|
|
7124
|
+
*/
|
|
7125
|
+
'pool_instance': GPUV1PoolPoolInstanceResource;
|
|
7126
|
+
/**
|
|
7127
|
+
*
|
|
7128
|
+
* @type {GPUV1OsTemplateOsTemplateResource}
|
|
7129
|
+
* @memberof GPUV1InstanceInstanceResource
|
|
7130
|
+
*/
|
|
7131
|
+
'os_template': GPUV1OsTemplateOsTemplateResource;
|
|
7132
|
+
/**
|
|
7133
|
+
* Array of [`GPU.V1.SshKey.SshKeyResource`](#model/gpuv1sshkeysshkeyresource)
|
|
7134
|
+
* @type {Array<GPUV1SshKeySshKeyResource>}
|
|
7135
|
+
* @memberof GPUV1InstanceInstanceResource
|
|
7136
|
+
*/
|
|
7137
|
+
'ssh_keys': Array<GPUV1SshKeySshKeyResource>;
|
|
7138
|
+
}
|
|
7139
|
+
|
|
7140
|
+
export const GPUV1InstanceInstanceResourceStatusEnum = {
|
|
7141
|
+
Created: 'created',
|
|
7142
|
+
Creating: 'creating',
|
|
7143
|
+
Running: 'running',
|
|
7144
|
+
Stopped: 'stopped',
|
|
7145
|
+
Destroying: 'destroying',
|
|
7146
|
+
Destroyed: 'destroyed',
|
|
7147
|
+
InsufficientFunds: 'insufficient_funds',
|
|
7148
|
+
Error: 'error',
|
|
7149
|
+
Abuse: 'abuse'
|
|
7150
|
+
} as const;
|
|
7151
|
+
|
|
7152
|
+
export type GPUV1InstanceInstanceResourceStatusEnum = typeof GPUV1InstanceInstanceResourceStatusEnum[keyof typeof GPUV1InstanceInstanceResourceStatusEnum];
|
|
7153
|
+
export const GPUV1InstanceInstanceResourceActionLockEnum = {
|
|
7154
|
+
Unlocked: 'unlocked',
|
|
7155
|
+
Locked: 'locked'
|
|
7156
|
+
} as const;
|
|
7157
|
+
|
|
7158
|
+
export type GPUV1InstanceInstanceResourceActionLockEnum = typeof GPUV1InstanceInstanceResourceActionLockEnum[keyof typeof GPUV1InstanceInstanceResourceActionLockEnum];
|
|
7159
|
+
|
|
7160
|
+
/**
|
|
7161
|
+
*
|
|
7162
|
+
* @export
|
|
7163
|
+
* @interface GPUV1InstanceStoreRequest
|
|
7164
|
+
*/
|
|
7165
|
+
export interface GPUV1InstanceStoreRequest {
|
|
7166
|
+
/**
|
|
7167
|
+
* Instance type ID from the pool instance types list
|
|
7168
|
+
* @type {number}
|
|
7169
|
+
* @memberof GPUV1InstanceStoreRequest
|
|
7170
|
+
*/
|
|
7171
|
+
'pool_instance_id': number;
|
|
7172
|
+
/**
|
|
7173
|
+
* OS template ID available for the selected instance type
|
|
7174
|
+
* @type {number}
|
|
7175
|
+
* @memberof GPUV1InstanceStoreRequest
|
|
7176
|
+
*/
|
|
7177
|
+
'os_template_id': number;
|
|
7178
|
+
/**
|
|
7179
|
+
* Instance name, unique among your instances. Letters, numbers, dashes and underscores only
|
|
7180
|
+
* @type {string}
|
|
7181
|
+
* @memberof GPUV1InstanceStoreRequest
|
|
7182
|
+
*/
|
|
7183
|
+
'name': string;
|
|
7184
|
+
/**
|
|
7185
|
+
* SSH public keys to add to the instance
|
|
7186
|
+
* @type {Array<string>}
|
|
7187
|
+
* @memberof GPUV1InstanceStoreRequest
|
|
7188
|
+
*/
|
|
7189
|
+
'public_keys': Array<string>;
|
|
7190
|
+
}
|
|
7191
|
+
/**
|
|
7192
|
+
*
|
|
7193
|
+
* @export
|
|
7194
|
+
* @interface GPUV1MetricsMetricsResource
|
|
7195
|
+
*/
|
|
7196
|
+
export interface GPUV1MetricsMetricsResource {
|
|
7197
|
+
/**
|
|
7198
|
+
* Unix timestamp of the measurement
|
|
7199
|
+
* @type {number}
|
|
7200
|
+
* @memberof GPUV1MetricsMetricsResource
|
|
7201
|
+
*/
|
|
7202
|
+
'timestamp': number;
|
|
7203
|
+
/**
|
|
7204
|
+
* CPU utilisation in percent
|
|
7205
|
+
* @type {number}
|
|
7206
|
+
* @memberof GPUV1MetricsMetricsResource
|
|
7207
|
+
*/
|
|
7208
|
+
'cpu_percentage': number;
|
|
7209
|
+
/**
|
|
7210
|
+
* Used memory in bytes
|
|
7211
|
+
* @type {number}
|
|
7212
|
+
* @memberof GPUV1MetricsMetricsResource
|
|
7213
|
+
*/
|
|
7214
|
+
'memory_used': number;
|
|
7215
|
+
/**
|
|
7216
|
+
* GPU utilisation in percent
|
|
7217
|
+
* @type {number}
|
|
7218
|
+
* @memberof GPUV1MetricsMetricsResource
|
|
7219
|
+
*/
|
|
7220
|
+
'gpu_percentage': number;
|
|
7221
|
+
/**
|
|
7222
|
+
* Used GPU memory in bytes
|
|
7223
|
+
* @type {number}
|
|
7224
|
+
* @memberof GPUV1MetricsMetricsResource
|
|
7225
|
+
*/
|
|
7226
|
+
'gpu_memory_used': number;
|
|
7227
|
+
/**
|
|
7228
|
+
* GPU throughput in TFLOPS
|
|
7229
|
+
* @type {number}
|
|
7230
|
+
* @memberof GPUV1MetricsMetricsResource
|
|
7231
|
+
*/
|
|
7232
|
+
'gpu_tflops': number;
|
|
7233
|
+
}
|
|
7014
7234
|
/**
|
|
7015
7235
|
*
|
|
7016
7236
|
* @export
|
|
@@ -7220,6 +7440,31 @@ export interface GPUV1RegionRegionResource {
|
|
|
7220
7440
|
*/
|
|
7221
7441
|
'country': string;
|
|
7222
7442
|
}
|
|
7443
|
+
/**
|
|
7444
|
+
*
|
|
7445
|
+
* @export
|
|
7446
|
+
* @interface GPUV1SshKeySshKeyResource
|
|
7447
|
+
*/
|
|
7448
|
+
export interface GPUV1SshKeySshKeyResource {
|
|
7449
|
+
/**
|
|
7450
|
+
* SSH key ID
|
|
7451
|
+
* @type {number}
|
|
7452
|
+
* @memberof GPUV1SshKeySshKeyResource
|
|
7453
|
+
*/
|
|
7454
|
+
'id': number;
|
|
7455
|
+
/**
|
|
7456
|
+
*
|
|
7457
|
+
* @type {string}
|
|
7458
|
+
* @memberof GPUV1SshKeySshKeyResource
|
|
7459
|
+
*/
|
|
7460
|
+
'name': string | null;
|
|
7461
|
+
/**
|
|
7462
|
+
*
|
|
7463
|
+
* @type {string}
|
|
7464
|
+
* @memberof GPUV1SshKeySshKeyResource
|
|
7465
|
+
*/
|
|
7466
|
+
'public_key': string;
|
|
7467
|
+
}
|
|
7223
7468
|
/**
|
|
7224
7469
|
*
|
|
7225
7470
|
* @export
|
|
@@ -10440,6 +10685,18 @@ export interface HostingV1PocketBaseBackendResource {
|
|
|
10440
10685
|
* @memberof HostingV1PocketBaseBackendResource
|
|
10441
10686
|
*/
|
|
10442
10687
|
'state': HostingV1PocketBaseBackendResourceStateEnum | null;
|
|
10688
|
+
/**
|
|
10689
|
+
* Why the last start did not succeed, set only while `state` is `failed`. `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running; `start_failed` is any other cause.
|
|
10690
|
+
* @type {string}
|
|
10691
|
+
* @memberof HostingV1PocketBaseBackendResource
|
|
10692
|
+
*/
|
|
10693
|
+
'failure_reason': HostingV1PocketBaseBackendResourceFailureReasonEnum | null;
|
|
10694
|
+
/**
|
|
10695
|
+
* Seconds until Hostinger tries to start the instance again, set only while `state` is `failed`. Null when the next try is due now.
|
|
10696
|
+
* @type {number}
|
|
10697
|
+
* @memberof HostingV1PocketBaseBackendResource
|
|
10698
|
+
*/
|
|
10699
|
+
'retry_after_seconds': number | null;
|
|
10443
10700
|
/**
|
|
10444
10701
|
* PocketBase version
|
|
10445
10702
|
* @type {string}
|
|
@@ -10466,6 +10723,12 @@ export const HostingV1PocketBaseBackendResourceStateEnum = {
|
|
|
10466
10723
|
} as const;
|
|
10467
10724
|
|
|
10468
10725
|
export type HostingV1PocketBaseBackendResourceStateEnum = typeof HostingV1PocketBaseBackendResourceStateEnum[keyof typeof HostingV1PocketBaseBackendResourceStateEnum];
|
|
10726
|
+
export const HostingV1PocketBaseBackendResourceFailureReasonEnum = {
|
|
10727
|
+
ProcessLimit: 'process_limit',
|
|
10728
|
+
StartFailed: 'start_failed'
|
|
10729
|
+
} as const;
|
|
10730
|
+
|
|
10731
|
+
export type HostingV1PocketBaseBackendResourceFailureReasonEnum = typeof HostingV1PocketBaseBackendResourceFailureReasonEnum[keyof typeof HostingV1PocketBaseBackendResourceFailureReasonEnum];
|
|
10469
10732
|
|
|
10470
10733
|
/**
|
|
10471
10734
|
*
|
|
@@ -10522,6 +10785,18 @@ export interface HostingV1PocketBaseInstanceResource {
|
|
|
10522
10785
|
* @memberof HostingV1PocketBaseInstanceResource
|
|
10523
10786
|
*/
|
|
10524
10787
|
'state': HostingV1PocketBaseInstanceResourceStateEnum | null;
|
|
10788
|
+
/**
|
|
10789
|
+
* Why the last start did not succeed, set only while `state` is `failed`. `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running; `start_failed` is any other cause.
|
|
10790
|
+
* @type {string}
|
|
10791
|
+
* @memberof HostingV1PocketBaseInstanceResource
|
|
10792
|
+
*/
|
|
10793
|
+
'failure_reason': HostingV1PocketBaseInstanceResourceFailureReasonEnum | null;
|
|
10794
|
+
/**
|
|
10795
|
+
* Seconds until Hostinger tries to start the instance again, set only while `state` is `failed`. Null when the next try is due now.
|
|
10796
|
+
* @type {number}
|
|
10797
|
+
* @memberof HostingV1PocketBaseInstanceResource
|
|
10798
|
+
*/
|
|
10799
|
+
'retry_after_seconds': number | null;
|
|
10525
10800
|
/**
|
|
10526
10801
|
* PocketBase version
|
|
10527
10802
|
* @type {string}
|
|
@@ -10548,6 +10823,12 @@ export const HostingV1PocketBaseInstanceResourceStateEnum = {
|
|
|
10548
10823
|
} as const;
|
|
10549
10824
|
|
|
10550
10825
|
export type HostingV1PocketBaseInstanceResourceStateEnum = typeof HostingV1PocketBaseInstanceResourceStateEnum[keyof typeof HostingV1PocketBaseInstanceResourceStateEnum];
|
|
10826
|
+
export const HostingV1PocketBaseInstanceResourceFailureReasonEnum = {
|
|
10827
|
+
ProcessLimit: 'process_limit',
|
|
10828
|
+
StartFailed: 'start_failed'
|
|
10829
|
+
} as const;
|
|
10830
|
+
|
|
10831
|
+
export type HostingV1PocketBaseInstanceResourceFailureReasonEnum = typeof HostingV1PocketBaseInstanceResourceFailureReasonEnum[keyof typeof HostingV1PocketBaseInstanceResourceFailureReasonEnum];
|
|
10551
10832
|
|
|
10552
10833
|
/**
|
|
10553
10834
|
*
|
|
@@ -31856,6 +32137,400 @@ export const GetPoolGroupsV1CurrencyEnum = {
|
|
|
31856
32137
|
export type GetPoolGroupsV1CurrencyEnum = typeof GetPoolGroupsV1CurrencyEnum[keyof typeof GetPoolGroupsV1CurrencyEnum];
|
|
31857
32138
|
|
|
31858
32139
|
|
|
32140
|
+
/**
|
|
32141
|
+
* GPUInstancesApi - axios parameter creator
|
|
32142
|
+
* @export
|
|
32143
|
+
*/
|
|
32144
|
+
export const GPUInstancesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32145
|
+
return {
|
|
32146
|
+
/**
|
|
32147
|
+
* Create a new GPU instance. Pick `pool_instance_id` from the pool instance types list and `os_template_id` from the OS templates available for that instance type. Your account must have enough credits to run the instance for its first hour. The instance is created asynchronously: a successful request returns immediately, and the instance appears in the instance list while its `status` moves from `created` through `creating` to `running`. Use this endpoint to provision GPU compute.
|
|
32148
|
+
* @summary Create instance
|
|
32149
|
+
* @param {GPUV1InstanceStoreRequest} gPUV1InstanceStoreRequest
|
|
32150
|
+
* @param {*} [options] Override http request option.
|
|
32151
|
+
* @throws {RequiredError}
|
|
32152
|
+
*/
|
|
32153
|
+
createInstanceV1: async (gPUV1InstanceStoreRequest: GPUV1InstanceStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32154
|
+
// verify required parameter 'gPUV1InstanceStoreRequest' is not null or undefined
|
|
32155
|
+
assertParamExists('createInstanceV1', 'gPUV1InstanceStoreRequest', gPUV1InstanceStoreRequest)
|
|
32156
|
+
const localVarPath = `/api/gpu/v1/instances`;
|
|
32157
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32158
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32159
|
+
let baseOptions;
|
|
32160
|
+
if (configuration) {
|
|
32161
|
+
baseOptions = configuration.baseOptions;
|
|
32162
|
+
}
|
|
32163
|
+
|
|
32164
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
32165
|
+
const localVarHeaderParameter = {} as any;
|
|
32166
|
+
const localVarQueryParameter = {} as any;
|
|
32167
|
+
|
|
32168
|
+
// authentication apiToken required
|
|
32169
|
+
// http bearer authentication required
|
|
32170
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
32171
|
+
|
|
32172
|
+
|
|
32173
|
+
|
|
32174
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
32175
|
+
|
|
32176
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32177
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32178
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32179
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gPUV1InstanceStoreRequest, localVarRequestOptions, configuration)
|
|
32180
|
+
|
|
32181
|
+
return {
|
|
32182
|
+
url: toPathString(localVarUrlObj),
|
|
32183
|
+
options: localVarRequestOptions,
|
|
32184
|
+
};
|
|
32185
|
+
},
|
|
32186
|
+
/**
|
|
32187
|
+
* Delete a specified GPU instance. The instance is destroyed asynchronously: a successful request returns immediately and the instance `status` moves to `destroying`. Deleting fails while the instance is in `created`, `destroying`, `destroyed` or `abuse` status, or while another action is in progress on it. Use this endpoint to stop billing for a GPU instance you no longer need.
|
|
32188
|
+
* @summary Delete instance
|
|
32189
|
+
* @param {number} instanceId GPU instance ID
|
|
32190
|
+
* @param {*} [options] Override http request option.
|
|
32191
|
+
* @throws {RequiredError}
|
|
32192
|
+
*/
|
|
32193
|
+
deleteInstanceV1: async (instanceId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32194
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
32195
|
+
assertParamExists('deleteInstanceV1', 'instanceId', instanceId)
|
|
32196
|
+
const localVarPath = `/api/gpu/v1/instances/{instanceId}`
|
|
32197
|
+
.replace(`{${"instanceId"}}`, encodePathParam('instanceId', instanceId));
|
|
32198
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32199
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32200
|
+
let baseOptions;
|
|
32201
|
+
if (configuration) {
|
|
32202
|
+
baseOptions = configuration.baseOptions;
|
|
32203
|
+
}
|
|
32204
|
+
|
|
32205
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
32206
|
+
const localVarHeaderParameter = {} as any;
|
|
32207
|
+
const localVarQueryParameter = {} as any;
|
|
32208
|
+
|
|
32209
|
+
// authentication apiToken required
|
|
32210
|
+
// http bearer authentication required
|
|
32211
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
32212
|
+
|
|
32213
|
+
|
|
32214
|
+
|
|
32215
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32216
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32217
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32218
|
+
|
|
32219
|
+
return {
|
|
32220
|
+
url: toPathString(localVarUrlObj),
|
|
32221
|
+
options: localVarRequestOptions,
|
|
32222
|
+
};
|
|
32223
|
+
},
|
|
32224
|
+
/**
|
|
32225
|
+
* Retrieve detailed information about a specified GPU instance, including its SSH keys. Use this endpoint to follow the instance `status` after creating or deleting it.
|
|
32226
|
+
* @summary Get instance details
|
|
32227
|
+
* @param {number} instanceId GPU instance ID
|
|
32228
|
+
* @param {*} [options] Override http request option.
|
|
32229
|
+
* @throws {RequiredError}
|
|
32230
|
+
*/
|
|
32231
|
+
getInstanceDetailsV1: async (instanceId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32232
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
32233
|
+
assertParamExists('getInstanceDetailsV1', 'instanceId', instanceId)
|
|
32234
|
+
const localVarPath = `/api/gpu/v1/instances/{instanceId}`
|
|
32235
|
+
.replace(`{${"instanceId"}}`, encodePathParam('instanceId', instanceId));
|
|
32236
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32237
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32238
|
+
let baseOptions;
|
|
32239
|
+
if (configuration) {
|
|
32240
|
+
baseOptions = configuration.baseOptions;
|
|
32241
|
+
}
|
|
32242
|
+
|
|
32243
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
32244
|
+
const localVarHeaderParameter = {} as any;
|
|
32245
|
+
const localVarQueryParameter = {} as any;
|
|
32246
|
+
|
|
32247
|
+
// authentication apiToken required
|
|
32248
|
+
// http bearer authentication required
|
|
32249
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
32250
|
+
|
|
32251
|
+
|
|
32252
|
+
|
|
32253
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32254
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32255
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32256
|
+
|
|
32257
|
+
return {
|
|
32258
|
+
url: toPathString(localVarUrlObj),
|
|
32259
|
+
options: localVarRequestOptions,
|
|
32260
|
+
};
|
|
32261
|
+
},
|
|
32262
|
+
/**
|
|
32263
|
+
* Retrieve utilisation metrics of a specified GPU instance for the last hour. Each data point contains CPU, memory and GPU utilisation, used GPU memory and GPU throughput. The list is empty until the instance is provisioned. Use this endpoint to monitor GPU instance load.
|
|
32264
|
+
* @summary Get instance metrics
|
|
32265
|
+
* @param {number} instanceId GPU instance ID
|
|
32266
|
+
* @param {*} [options] Override http request option.
|
|
32267
|
+
* @throws {RequiredError}
|
|
32268
|
+
*/
|
|
32269
|
+
getInstanceMetricsV1: async (instanceId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32270
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
32271
|
+
assertParamExists('getInstanceMetricsV1', 'instanceId', instanceId)
|
|
32272
|
+
const localVarPath = `/api/gpu/v1/instances/{instanceId}/metrics`
|
|
32273
|
+
.replace(`{${"instanceId"}}`, encodePathParam('instanceId', instanceId));
|
|
32274
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32275
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32276
|
+
let baseOptions;
|
|
32277
|
+
if (configuration) {
|
|
32278
|
+
baseOptions = configuration.baseOptions;
|
|
32279
|
+
}
|
|
32280
|
+
|
|
32281
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
32282
|
+
const localVarHeaderParameter = {} as any;
|
|
32283
|
+
const localVarQueryParameter = {} as any;
|
|
32284
|
+
|
|
32285
|
+
// authentication apiToken required
|
|
32286
|
+
// http bearer authentication required
|
|
32287
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
32288
|
+
|
|
32289
|
+
|
|
32290
|
+
|
|
32291
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32292
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32293
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32294
|
+
|
|
32295
|
+
return {
|
|
32296
|
+
url: toPathString(localVarUrlObj),
|
|
32297
|
+
options: localVarRequestOptions,
|
|
32298
|
+
};
|
|
32299
|
+
},
|
|
32300
|
+
/**
|
|
32301
|
+
* Retrieve all GPU instances of your account. Use this endpoint to view your GPU instances with their status, pool, instance type and OS template.
|
|
32302
|
+
* @summary Get instances
|
|
32303
|
+
* @param {*} [options] Override http request option.
|
|
32304
|
+
* @throws {RequiredError}
|
|
32305
|
+
*/
|
|
32306
|
+
getInstancesV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32307
|
+
const localVarPath = `/api/gpu/v1/instances`;
|
|
32308
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32309
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32310
|
+
let baseOptions;
|
|
32311
|
+
if (configuration) {
|
|
32312
|
+
baseOptions = configuration.baseOptions;
|
|
32313
|
+
}
|
|
32314
|
+
|
|
32315
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
32316
|
+
const localVarHeaderParameter = {} as any;
|
|
32317
|
+
const localVarQueryParameter = {} as any;
|
|
32318
|
+
|
|
32319
|
+
// authentication apiToken required
|
|
32320
|
+
// http bearer authentication required
|
|
32321
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
32322
|
+
|
|
32323
|
+
|
|
32324
|
+
|
|
32325
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32326
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32327
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32328
|
+
|
|
32329
|
+
return {
|
|
32330
|
+
url: toPathString(localVarUrlObj),
|
|
32331
|
+
options: localVarRequestOptions,
|
|
32332
|
+
};
|
|
32333
|
+
},
|
|
32334
|
+
}
|
|
32335
|
+
};
|
|
32336
|
+
|
|
32337
|
+
/**
|
|
32338
|
+
* GPUInstancesApi - functional programming interface
|
|
32339
|
+
* @export
|
|
32340
|
+
*/
|
|
32341
|
+
export const GPUInstancesApiFp = function(configuration?: Configuration) {
|
|
32342
|
+
const localVarAxiosParamCreator = GPUInstancesApiAxiosParamCreator(configuration)
|
|
32343
|
+
return {
|
|
32344
|
+
/**
|
|
32345
|
+
* Create a new GPU instance. Pick `pool_instance_id` from the pool instance types list and `os_template_id` from the OS templates available for that instance type. Your account must have enough credits to run the instance for its first hour. The instance is created asynchronously: a successful request returns immediately, and the instance appears in the instance list while its `status` moves from `created` through `creating` to `running`. Use this endpoint to provision GPU compute.
|
|
32346
|
+
* @summary Create instance
|
|
32347
|
+
* @param {GPUV1InstanceStoreRequest} gPUV1InstanceStoreRequest
|
|
32348
|
+
* @param {*} [options] Override http request option.
|
|
32349
|
+
* @throws {RequiredError}
|
|
32350
|
+
*/
|
|
32351
|
+
async createInstanceV1(gPUV1InstanceStoreRequest: GPUV1InstanceStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
32352
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createInstanceV1(gPUV1InstanceStoreRequest, options);
|
|
32353
|
+
const localVarOperationServerBasePath = operationServerMap['GPUInstancesApi.createInstanceV1']?.[0]?.url;
|
|
32354
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32355
|
+
},
|
|
32356
|
+
/**
|
|
32357
|
+
* Delete a specified GPU instance. The instance is destroyed asynchronously: a successful request returns immediately and the instance `status` moves to `destroying`. Deleting fails while the instance is in `created`, `destroying`, `destroyed` or `abuse` status, or while another action is in progress on it. Use this endpoint to stop billing for a GPU instance you no longer need.
|
|
32358
|
+
* @summary Delete instance
|
|
32359
|
+
* @param {number} instanceId GPU instance ID
|
|
32360
|
+
* @param {*} [options] Override http request option.
|
|
32361
|
+
* @throws {RequiredError}
|
|
32362
|
+
*/
|
|
32363
|
+
async deleteInstanceV1(instanceId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
32364
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInstanceV1(instanceId, options);
|
|
32365
|
+
const localVarOperationServerBasePath = operationServerMap['GPUInstancesApi.deleteInstanceV1']?.[0]?.url;
|
|
32366
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32367
|
+
},
|
|
32368
|
+
/**
|
|
32369
|
+
* Retrieve detailed information about a specified GPU instance, including its SSH keys. Use this endpoint to follow the instance `status` after creating or deleting it.
|
|
32370
|
+
* @summary Get instance details
|
|
32371
|
+
* @param {number} instanceId GPU instance ID
|
|
32372
|
+
* @param {*} [options] Override http request option.
|
|
32373
|
+
* @throws {RequiredError}
|
|
32374
|
+
*/
|
|
32375
|
+
async getInstanceDetailsV1(instanceId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GPUV1InstanceInstanceResource>> {
|
|
32376
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInstanceDetailsV1(instanceId, options);
|
|
32377
|
+
const localVarOperationServerBasePath = operationServerMap['GPUInstancesApi.getInstanceDetailsV1']?.[0]?.url;
|
|
32378
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32379
|
+
},
|
|
32380
|
+
/**
|
|
32381
|
+
* Retrieve utilisation metrics of a specified GPU instance for the last hour. Each data point contains CPU, memory and GPU utilisation, used GPU memory and GPU throughput. The list is empty until the instance is provisioned. Use this endpoint to monitor GPU instance load.
|
|
32382
|
+
* @summary Get instance metrics
|
|
32383
|
+
* @param {number} instanceId GPU instance ID
|
|
32384
|
+
* @param {*} [options] Override http request option.
|
|
32385
|
+
* @throws {RequiredError}
|
|
32386
|
+
*/
|
|
32387
|
+
async getInstanceMetricsV1(instanceId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1MetricsMetricsResource>>> {
|
|
32388
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInstanceMetricsV1(instanceId, options);
|
|
32389
|
+
const localVarOperationServerBasePath = operationServerMap['GPUInstancesApi.getInstanceMetricsV1']?.[0]?.url;
|
|
32390
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32391
|
+
},
|
|
32392
|
+
/**
|
|
32393
|
+
* Retrieve all GPU instances of your account. Use this endpoint to view your GPU instances with their status, pool, instance type and OS template.
|
|
32394
|
+
* @summary Get instances
|
|
32395
|
+
* @param {*} [options] Override http request option.
|
|
32396
|
+
* @throws {RequiredError}
|
|
32397
|
+
*/
|
|
32398
|
+
async getInstancesV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1InstanceInstanceListResource>>> {
|
|
32399
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInstancesV1(options);
|
|
32400
|
+
const localVarOperationServerBasePath = operationServerMap['GPUInstancesApi.getInstancesV1']?.[0]?.url;
|
|
32401
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32402
|
+
},
|
|
32403
|
+
}
|
|
32404
|
+
};
|
|
32405
|
+
|
|
32406
|
+
/**
|
|
32407
|
+
* GPUInstancesApi - factory interface
|
|
32408
|
+
* @export
|
|
32409
|
+
*/
|
|
32410
|
+
export const GPUInstancesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
32411
|
+
const localVarFp = GPUInstancesApiFp(configuration)
|
|
32412
|
+
return {
|
|
32413
|
+
/**
|
|
32414
|
+
* Create a new GPU instance. Pick `pool_instance_id` from the pool instance types list and `os_template_id` from the OS templates available for that instance type. Your account must have enough credits to run the instance for its first hour. The instance is created asynchronously: a successful request returns immediately, and the instance appears in the instance list while its `status` moves from `created` through `creating` to `running`. Use this endpoint to provision GPU compute.
|
|
32415
|
+
* @summary Create instance
|
|
32416
|
+
* @param {GPUV1InstanceStoreRequest} gPUV1InstanceStoreRequest
|
|
32417
|
+
* @param {*} [options] Override http request option.
|
|
32418
|
+
* @throws {RequiredError}
|
|
32419
|
+
*/
|
|
32420
|
+
createInstanceV1(gPUV1InstanceStoreRequest: GPUV1InstanceStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
32421
|
+
return localVarFp.createInstanceV1(gPUV1InstanceStoreRequest, options).then((request) => request(axios, basePath));
|
|
32422
|
+
},
|
|
32423
|
+
/**
|
|
32424
|
+
* Delete a specified GPU instance. The instance is destroyed asynchronously: a successful request returns immediately and the instance `status` moves to `destroying`. Deleting fails while the instance is in `created`, `destroying`, `destroyed` or `abuse` status, or while another action is in progress on it. Use this endpoint to stop billing for a GPU instance you no longer need.
|
|
32425
|
+
* @summary Delete instance
|
|
32426
|
+
* @param {number} instanceId GPU instance ID
|
|
32427
|
+
* @param {*} [options] Override http request option.
|
|
32428
|
+
* @throws {RequiredError}
|
|
32429
|
+
*/
|
|
32430
|
+
deleteInstanceV1(instanceId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
32431
|
+
return localVarFp.deleteInstanceV1(instanceId, options).then((request) => request(axios, basePath));
|
|
32432
|
+
},
|
|
32433
|
+
/**
|
|
32434
|
+
* Retrieve detailed information about a specified GPU instance, including its SSH keys. Use this endpoint to follow the instance `status` after creating or deleting it.
|
|
32435
|
+
* @summary Get instance details
|
|
32436
|
+
* @param {number} instanceId GPU instance ID
|
|
32437
|
+
* @param {*} [options] Override http request option.
|
|
32438
|
+
* @throws {RequiredError}
|
|
32439
|
+
*/
|
|
32440
|
+
getInstanceDetailsV1(instanceId: number, options?: RawAxiosRequestConfig): AxiosPromise<GPUV1InstanceInstanceResource> {
|
|
32441
|
+
return localVarFp.getInstanceDetailsV1(instanceId, options).then((request) => request(axios, basePath));
|
|
32442
|
+
},
|
|
32443
|
+
/**
|
|
32444
|
+
* Retrieve utilisation metrics of a specified GPU instance for the last hour. Each data point contains CPU, memory and GPU utilisation, used GPU memory and GPU throughput. The list is empty until the instance is provisioned. Use this endpoint to monitor GPU instance load.
|
|
32445
|
+
* @summary Get instance metrics
|
|
32446
|
+
* @param {number} instanceId GPU instance ID
|
|
32447
|
+
* @param {*} [options] Override http request option.
|
|
32448
|
+
* @throws {RequiredError}
|
|
32449
|
+
*/
|
|
32450
|
+
getInstanceMetricsV1(instanceId: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1MetricsMetricsResource>> {
|
|
32451
|
+
return localVarFp.getInstanceMetricsV1(instanceId, options).then((request) => request(axios, basePath));
|
|
32452
|
+
},
|
|
32453
|
+
/**
|
|
32454
|
+
* Retrieve all GPU instances of your account. Use this endpoint to view your GPU instances with their status, pool, instance type and OS template.
|
|
32455
|
+
* @summary Get instances
|
|
32456
|
+
* @param {*} [options] Override http request option.
|
|
32457
|
+
* @throws {RequiredError}
|
|
32458
|
+
*/
|
|
32459
|
+
getInstancesV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1InstanceInstanceListResource>> {
|
|
32460
|
+
return localVarFp.getInstancesV1(options).then((request) => request(axios, basePath));
|
|
32461
|
+
},
|
|
32462
|
+
};
|
|
32463
|
+
};
|
|
32464
|
+
|
|
32465
|
+
/**
|
|
32466
|
+
* GPUInstancesApi - object-oriented interface
|
|
32467
|
+
* @export
|
|
32468
|
+
* @class GPUInstancesApi
|
|
32469
|
+
* @extends {BaseAPI}
|
|
32470
|
+
*/
|
|
32471
|
+
export class GPUInstancesApi extends BaseAPI {
|
|
32472
|
+
/**
|
|
32473
|
+
* Create a new GPU instance. Pick `pool_instance_id` from the pool instance types list and `os_template_id` from the OS templates available for that instance type. Your account must have enough credits to run the instance for its first hour. The instance is created asynchronously: a successful request returns immediately, and the instance appears in the instance list while its `status` moves from `created` through `creating` to `running`. Use this endpoint to provision GPU compute.
|
|
32474
|
+
* @summary Create instance
|
|
32475
|
+
* @param {GPUV1InstanceStoreRequest} gPUV1InstanceStoreRequest
|
|
32476
|
+
* @param {*} [options] Override http request option.
|
|
32477
|
+
* @throws {RequiredError}
|
|
32478
|
+
* @memberof GPUInstancesApi
|
|
32479
|
+
*/
|
|
32480
|
+
public createInstanceV1(gPUV1InstanceStoreRequest: GPUV1InstanceStoreRequest, options?: RawAxiosRequestConfig) {
|
|
32481
|
+
return GPUInstancesApiFp(this.configuration).createInstanceV1(gPUV1InstanceStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
32482
|
+
}
|
|
32483
|
+
|
|
32484
|
+
/**
|
|
32485
|
+
* Delete a specified GPU instance. The instance is destroyed asynchronously: a successful request returns immediately and the instance `status` moves to `destroying`. Deleting fails while the instance is in `created`, `destroying`, `destroyed` or `abuse` status, or while another action is in progress on it. Use this endpoint to stop billing for a GPU instance you no longer need.
|
|
32486
|
+
* @summary Delete instance
|
|
32487
|
+
* @param {number} instanceId GPU instance ID
|
|
32488
|
+
* @param {*} [options] Override http request option.
|
|
32489
|
+
* @throws {RequiredError}
|
|
32490
|
+
* @memberof GPUInstancesApi
|
|
32491
|
+
*/
|
|
32492
|
+
public deleteInstanceV1(instanceId: number, options?: RawAxiosRequestConfig) {
|
|
32493
|
+
return GPUInstancesApiFp(this.configuration).deleteInstanceV1(instanceId, options).then((request) => request(this.axios, this.basePath));
|
|
32494
|
+
}
|
|
32495
|
+
|
|
32496
|
+
/**
|
|
32497
|
+
* Retrieve detailed information about a specified GPU instance, including its SSH keys. Use this endpoint to follow the instance `status` after creating or deleting it.
|
|
32498
|
+
* @summary Get instance details
|
|
32499
|
+
* @param {number} instanceId GPU instance ID
|
|
32500
|
+
* @param {*} [options] Override http request option.
|
|
32501
|
+
* @throws {RequiredError}
|
|
32502
|
+
* @memberof GPUInstancesApi
|
|
32503
|
+
*/
|
|
32504
|
+
public getInstanceDetailsV1(instanceId: number, options?: RawAxiosRequestConfig) {
|
|
32505
|
+
return GPUInstancesApiFp(this.configuration).getInstanceDetailsV1(instanceId, options).then((request) => request(this.axios, this.basePath));
|
|
32506
|
+
}
|
|
32507
|
+
|
|
32508
|
+
/**
|
|
32509
|
+
* Retrieve utilisation metrics of a specified GPU instance for the last hour. Each data point contains CPU, memory and GPU utilisation, used GPU memory and GPU throughput. The list is empty until the instance is provisioned. Use this endpoint to monitor GPU instance load.
|
|
32510
|
+
* @summary Get instance metrics
|
|
32511
|
+
* @param {number} instanceId GPU instance ID
|
|
32512
|
+
* @param {*} [options] Override http request option.
|
|
32513
|
+
* @throws {RequiredError}
|
|
32514
|
+
* @memberof GPUInstancesApi
|
|
32515
|
+
*/
|
|
32516
|
+
public getInstanceMetricsV1(instanceId: number, options?: RawAxiosRequestConfig) {
|
|
32517
|
+
return GPUInstancesApiFp(this.configuration).getInstanceMetricsV1(instanceId, options).then((request) => request(this.axios, this.basePath));
|
|
32518
|
+
}
|
|
32519
|
+
|
|
32520
|
+
/**
|
|
32521
|
+
* Retrieve all GPU instances of your account. Use this endpoint to view your GPU instances with their status, pool, instance type and OS template.
|
|
32522
|
+
* @summary Get instances
|
|
32523
|
+
* @param {*} [options] Override http request option.
|
|
32524
|
+
* @throws {RequiredError}
|
|
32525
|
+
* @memberof GPUInstancesApi
|
|
32526
|
+
*/
|
|
32527
|
+
public getInstancesV1(options?: RawAxiosRequestConfig) {
|
|
32528
|
+
return GPUInstancesApiFp(this.configuration).getInstancesV1(options).then((request) => request(this.axios, this.basePath));
|
|
32529
|
+
}
|
|
32530
|
+
}
|
|
32531
|
+
|
|
32532
|
+
|
|
32533
|
+
|
|
31859
32534
|
/**
|
|
31860
32535
|
* HorizonsWebsitesApi - axios parameter creator
|
|
31861
32536
|
* @export
|
|
@@ -38655,7 +39330,7 @@ export const HostingPocketBaseApiAxiosParamCreator = function (configuration?: C
|
|
|
38655
39330
|
};
|
|
38656
39331
|
},
|
|
38657
39332
|
/**
|
|
38658
|
-
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy
|
|
39333
|
+
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
38659
39334
|
* @summary Get PocketBase backend
|
|
38660
39335
|
* @param {string} username
|
|
38661
39336
|
* @param {string} domain Domain name
|
|
@@ -38697,7 +39372,7 @@ export const HostingPocketBaseApiAxiosParamCreator = function (configuration?: C
|
|
|
38697
39372
|
};
|
|
38698
39373
|
},
|
|
38699
39374
|
/**
|
|
38700
|
-
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy
|
|
39375
|
+
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
38701
39376
|
* @summary List account PocketBase backends
|
|
38702
39377
|
* @param {string} username
|
|
38703
39378
|
* @param {*} [options] Override http request option.
|
|
@@ -38818,7 +39493,7 @@ export const HostingPocketBaseApiFp = function(configuration?: Configuration) {
|
|
|
38818
39493
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
38819
39494
|
},
|
|
38820
39495
|
/**
|
|
38821
|
-
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy
|
|
39496
|
+
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
38822
39497
|
* @summary Get PocketBase backend
|
|
38823
39498
|
* @param {string} username
|
|
38824
39499
|
* @param {string} domain Domain name
|
|
@@ -38831,7 +39506,7 @@ export const HostingPocketBaseApiFp = function(configuration?: Configuration) {
|
|
|
38831
39506
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
38832
39507
|
},
|
|
38833
39508
|
/**
|
|
38834
|
-
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy
|
|
39509
|
+
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
38835
39510
|
* @summary List account PocketBase backends
|
|
38836
39511
|
* @param {string} username
|
|
38837
39512
|
* @param {*} [options] Override http request option.
|
|
@@ -38890,7 +39565,7 @@ export const HostingPocketBaseApiFactory = function (configuration?: Configurati
|
|
|
38890
39565
|
return localVarFp.deletePocketBaseBackendV1(username, domain, options).then((request) => request(axios, basePath));
|
|
38891
39566
|
},
|
|
38892
39567
|
/**
|
|
38893
|
-
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy
|
|
39568
|
+
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
38894
39569
|
* @summary Get PocketBase backend
|
|
38895
39570
|
* @param {string} username
|
|
38896
39571
|
* @param {string} domain Domain name
|
|
@@ -38901,7 +39576,7 @@ export const HostingPocketBaseApiFactory = function (configuration?: Configurati
|
|
|
38901
39576
|
return localVarFp.getPocketBaseBackendV1(username, domain, options).then((request) => request(axios, basePath));
|
|
38902
39577
|
},
|
|
38903
39578
|
/**
|
|
38904
|
-
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy
|
|
39579
|
+
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
38905
39580
|
* @summary List account PocketBase backends
|
|
38906
39581
|
* @param {string} username
|
|
38907
39582
|
* @param {*} [options] Override http request option.
|
|
@@ -38960,7 +39635,7 @@ export class HostingPocketBaseApi extends BaseAPI {
|
|
|
38960
39635
|
}
|
|
38961
39636
|
|
|
38962
39637
|
/**
|
|
38963
|
-
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy
|
|
39638
|
+
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
38964
39639
|
* @summary Get PocketBase backend
|
|
38965
39640
|
* @param {string} username
|
|
38966
39641
|
* @param {string} domain Domain name
|
|
@@ -38973,7 +39648,7 @@ export class HostingPocketBaseApi extends BaseAPI {
|
|
|
38973
39648
|
}
|
|
38974
39649
|
|
|
38975
39650
|
/**
|
|
38976
|
-
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy
|
|
39651
|
+
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
38977
39652
|
* @summary List account PocketBase backends
|
|
38978
39653
|
* @param {string} username
|
|
38979
39654
|
* @param {*} [options] Override http request option.
|