hostinger-api-sdk 2.14.2 → 2.16.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 +1019 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +658 -1
- package/dist/api.js +689 -14
- 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 +658 -1
- package/dist/esm/api.js +668 -1
- 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/GPUExposedServicesApi.md +177 -0
- package/docs/GPUInstancesApi.md +272 -0
- package/docs/GPUV1ExposedServiceExposedServiceResource.md +32 -0
- package/docs/GPUV1ExposedServiceStoreRequest.md +26 -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/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# GPUV1InstanceStoreRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**pool_instance_id** | **number** | Instance type ID from the pool instance types list | [default to undefined]
|
|
9
|
+
**os_template_id** | **number** | OS template ID available for the selected instance type | [default to undefined]
|
|
10
|
+
**name** | **string** | Instance name, unique among your instances. Letters, numbers, dashes and underscores only | [default to undefined]
|
|
11
|
+
**public_keys** | **Array<string>** | SSH public keys to add to the instance | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { GPUV1InstanceStoreRequest } from '@hostinger/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: GPUV1InstanceStoreRequest = {
|
|
19
|
+
pool_instance_id,
|
|
20
|
+
os_template_id,
|
|
21
|
+
name,
|
|
22
|
+
public_keys,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# GPUV1MetricsMetricsResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**timestamp** | **number** | Unix timestamp of the measurement | [optional] [default to undefined]
|
|
9
|
+
**cpu_percentage** | **number** | CPU utilisation in percent | [optional] [default to undefined]
|
|
10
|
+
**memory_used** | **number** | Used memory in bytes | [optional] [default to undefined]
|
|
11
|
+
**gpu_percentage** | **number** | GPU utilisation in percent | [optional] [default to undefined]
|
|
12
|
+
**gpu_memory_used** | **number** | Used GPU memory in bytes | [optional] [default to undefined]
|
|
13
|
+
**gpu_tflops** | **number** | GPU throughput in TFLOPS | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { GPUV1MetricsMetricsResource } from '@hostinger/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: GPUV1MetricsMetricsResource = {
|
|
21
|
+
timestamp,
|
|
22
|
+
cpu_percentage,
|
|
23
|
+
memory_used,
|
|
24
|
+
gpu_percentage,
|
|
25
|
+
gpu_memory_used,
|
|
26
|
+
gpu_tflops,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# GPUV1SshKeySshKeyResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | SSH key ID | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**public_key** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { GPUV1SshKeySshKeyResource } from '@hostinger/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: GPUV1SshKeySshKeyResource = {
|
|
18
|
+
id,
|
|
19
|
+
name,
|
|
20
|
+
public_key,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.16.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
|