Skip to content

Commit 9b855c9

Browse files
chore: sdk update
1 parent ba16af3 commit 9b855c9

1,380 files changed

Lines changed: 3834 additions & 1365 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎README.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@ Class | Method | HTTP request | Description
214214
*EcommerceStoresApi* | [**delete_store_v1**](docs/EcommerceStoresApi.md#delete_store_v1) | **DELETE** /api/ecommerce/v1/stores/{store_id} | Delete store
215215
*EcommerceStoresApi* | [**get_store_metadata_v1**](docs/EcommerceStoresApi.md#get_store_metadata_v1) | **GET** /api/ecommerce/v1/stores/{store_id}/metadata | Get store metadata
216216
*EcommerceStoresApi* | [**get_stores_v1**](docs/EcommerceStoresApi.md#get_stores_v1) | **GET** /api/ecommerce/v1/stores | Get stores
217+
*GPUCatalogApi* | [**get_pool_groups_v1**](docs/GPUCatalogApi.md#get_pool_groups_v1) | **GET** /api/gpu/v1/pools/groups | Get pool groups
218+
*GPUCatalogApi* | [**get_pool_instance_types_v1**](docs/GPUCatalogApi.md#get_pool_instance_types_v1) | **GET** /api/gpu/v1/pools/{poolId}/instances | Get pool instance types
219+
*GPUCatalogApi* | [**get_pool_list_v1**](docs/GPUCatalogApi.md#get_pool_list_v1) | **GET** /api/gpu/v1/pools | Get pool list
220+
*GPUCatalogApi* | [**get_pool_os_templates_v1**](docs/GPUCatalogApi.md#get_pool_os_templates_v1) | **GET** /api/gpu/v1/pools/{poolId}/instances/{poolInstanceId}/os-templates | Get pool OS templates
217221
*HorizonsWebsitesApi* | [**clone_website_v1**](docs/HorizonsWebsitesApi.md#clone_website_v1) | **POST** /api/horizons/v1/websites/{websiteId}/clone | Clone website
218222
*HorizonsWebsitesApi* | [**create_website_v1**](docs/HorizonsWebsitesApi.md#create_website_v1) | **POST** /api/horizons/v1/websites | Create website
219223
*HorizonsWebsitesApi* | [**edit_website_v1**](docs/HorizonsWebsitesApi.md#edit_website_v1) | **POST** /api/horizons/v1/websites/{websiteId}/messages | Edit website
@@ -743,6 +747,11 @@ Class | Method | HTTP request | Description
743747
- [EcommerceV1VariantVariantResource](docs/EcommerceV1VariantVariantResource.md)
744748
- [EcommerceV1VariantVariantResourceOptionsInner](docs/EcommerceV1VariantVariantResourceOptionsInner.md)
745749
- [EcommerceV1VariantVariantResponseResource](docs/EcommerceV1VariantVariantResponseResource.md)
750+
- [GPUV1OsTemplateOsTemplateResource](docs/GPUV1OsTemplateOsTemplateResource.md)
751+
- [GPUV1PoolPoolGroupResource](docs/GPUV1PoolPoolGroupResource.md)
752+
- [GPUV1PoolPoolInstanceResource](docs/GPUV1PoolPoolInstanceResource.md)
753+
- [GPUV1PoolPoolResource](docs/GPUV1PoolPoolResource.md)
754+
- [GPUV1RegionRegionResource](docs/GPUV1RegionRegionResource.md)
746755
- [HorizonsV1WebsitesCreateWebsiteRequest](docs/HorizonsV1WebsitesCreateWebsiteRequest.md)
747756
- [HorizonsV1WebsitesCreateWebsiteRequestMessageInner](docs/HorizonsV1WebsitesCreateWebsiteRequestMessageInner.md)
748757
- [HorizonsV1WebsitesCreatedWebsiteResource](docs/HorizonsV1WebsitesCreatedWebsiteResource.md)

‎docs/GPUCatalogApi.md‎

Lines changed: 307 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,307 @@
1+
# hostinger_api.GPUCatalogApi
2+
3+
All URIs are relative to *https://developers.hostinger.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**get_pool_groups_v1**](GPUCatalogApi.md#get_pool_groups_v1) | **GET** /api/gpu/v1/pools/groups | Get pool groups
8+
[**get_pool_instance_types_v1**](GPUCatalogApi.md#get_pool_instance_types_v1) | **GET** /api/gpu/v1/pools/{poolId}/instances | Get pool instance types
9+
[**get_pool_list_v1**](GPUCatalogApi.md#get_pool_list_v1) | **GET** /api/gpu/v1/pools | Get pool list
10+
[**get_pool_os_templates_v1**](GPUCatalogApi.md#get_pool_os_templates_v1) | **GET** /api/gpu/v1/pools/{poolId}/instances/{poolInstanceId}/os-templates | Get pool OS templates
11+
12+
13+
# **get_pool_groups_v1**
14+
> List[GPUV1PoolPoolGroupResource] get_pool_groups_v1(currency=currency)
15+
16+
Get pool groups
17+
18+
Retrieve GPU pool groups, ordered by name.
19+
20+
Each group bundles the pools of one GPU model and lists its currently available pools,
21+
whether any of them is available and the lowest hourly price among its instance types.
22+
The price is returned even when the group is out of stock.
23+
24+
Use this endpoint to show which GPU models can be ordered and from what price.
25+
26+
### Example
27+
28+
* Bearer Authentication (apiToken):
29+
30+
```python
31+
import hostinger_api
32+
from hostinger_api.models.gpuv1_pool_pool_group_resource import GPUV1PoolPoolGroupResource
33+
from hostinger_api.rest import ApiException
34+
from pprint import pprint
35+
36+
37+
# Configure Bearer authorization: apiToken
38+
configuration = hostinger_api.Configuration(
39+
access_token = os.environ["BEARER_TOKEN"]
40+
)
41+
42+
# Enter a context with an instance of the API client
43+
with hostinger_api.ApiClient(configuration) as api_client:
44+
# Create an instance of the API class
45+
api_instance = hostinger_api.GPUCatalogApi(api_client)
46+
currency = 'EUR' # str | Currency of the returned prices, `USD` by default (optional)
47+
48+
try:
49+
# Get pool groups
50+
api_response = api_instance.get_pool_groups_v1(currency=currency)
51+
print("The response of GPUCatalogApi->get_pool_groups_v1:\n")
52+
pprint(api_response)
53+
except Exception as e:
54+
print("Exception when calling GPUCatalogApi->get_pool_groups_v1: %s\n" % e)
55+
```
56+
57+
58+
59+
### Parameters
60+
61+
62+
Name | Type | Description | Notes
63+
------------- | ------------- | ------------- | -------------
64+
**currency** | **str**| Currency of the returned prices, `USD` by default | [optional]
65+
66+
### Return type
67+
68+
[**List[GPUV1PoolPoolGroupResource]**](GPUV1PoolPoolGroupResource.md)
69+
70+
### Authorization
71+
72+
[apiToken](../README.md#apiToken)
73+
74+
### HTTP request headers
75+
76+
- **Content-Type**: Not defined
77+
- **Accept**: application/json
78+
79+
### HTTP response details
80+
81+
| Status code | Description | Response headers |
82+
|-------------|-------------|------------------|
83+
**200** | Success response | - |
84+
**401** | Unauthenticated response | - |
85+
**500** | Error response | - |
86+
87+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
88+
89+
# **get_pool_instance_types_v1**
90+
> List[GPUV1PoolPoolInstanceResource] get_pool_instance_types_v1(pool_id)
91+
92+
Get pool instance types
93+
94+
Retrieve the instance types offered by a specified GPU pool, ordered by CPU core count.
95+
96+
Each instance type describes its CPU, memory and storage, and its hourly price.
97+
Only instance types that can currently be ordered are returned.
98+
99+
Use this endpoint to choose the `pool_instance_id` for a new GPU instance.
100+
101+
### Example
102+
103+
* Bearer Authentication (apiToken):
104+
105+
```python
106+
import hostinger_api
107+
from hostinger_api.models.gpuv1_pool_pool_instance_resource import GPUV1PoolPoolInstanceResource
108+
from hostinger_api.rest import ApiException
109+
from pprint import pprint
110+
111+
112+
# Configure Bearer authorization: apiToken
113+
configuration = hostinger_api.Configuration(
114+
access_token = os.environ["BEARER_TOKEN"]
115+
)
116+
117+
# Enter a context with an instance of the API client
118+
with hostinger_api.ApiClient(configuration) as api_client:
119+
# Create an instance of the API class
120+
api_instance = hostinger_api.GPUCatalogApi(api_client)
121+
pool_id = 12 # int | GPU pool ID
122+
123+
try:
124+
# Get pool instance types
125+
api_response = api_instance.get_pool_instance_types_v1(pool_id)
126+
print("The response of GPUCatalogApi->get_pool_instance_types_v1:\n")
127+
pprint(api_response)
128+
except Exception as e:
129+
print("Exception when calling GPUCatalogApi->get_pool_instance_types_v1: %s\n" % e)
130+
```
131+
132+
133+
134+
### Parameters
135+
136+
137+
Name | Type | Description | Notes
138+
------------- | ------------- | ------------- | -------------
139+
**pool_id** | **int**| GPU pool ID |
140+
141+
### Return type
142+
143+
[**List[GPUV1PoolPoolInstanceResource]**](GPUV1PoolPoolInstanceResource.md)
144+
145+
### Authorization
146+
147+
[apiToken](../README.md#apiToken)
148+
149+
### HTTP request headers
150+
151+
- **Content-Type**: Not defined
152+
- **Accept**: application/json
153+
154+
### HTTP response details
155+
156+
| Status code | Description | Response headers |
157+
|-------------|-------------|------------------|
158+
**200** | Success response | - |
159+
**401** | Unauthenticated response | - |
160+
**500** | Error response | - |
161+
162+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
163+
164+
# **get_pool_list_v1**
165+
> List[GPUV1PoolPoolResource] get_pool_list_v1()
166+
167+
Get pool list
168+
169+
Retrieve all available GPU pools, ordered by name.
170+
171+
A pool serves GPU accelerators of one model from a single region.
172+
173+
Use this endpoint to choose a pool before listing its instance types.
174+
175+
### Example
176+
177+
* Bearer Authentication (apiToken):
178+
179+
```python
180+
import hostinger_api
181+
from hostinger_api.models.gpuv1_pool_pool_resource import GPUV1PoolPoolResource
182+
from hostinger_api.rest import ApiException
183+
from pprint import pprint
184+
185+
186+
# Configure Bearer authorization: apiToken
187+
configuration = hostinger_api.Configuration(
188+
access_token = os.environ["BEARER_TOKEN"]
189+
)
190+
191+
# Enter a context with an instance of the API client
192+
with hostinger_api.ApiClient(configuration) as api_client:
193+
# Create an instance of the API class
194+
api_instance = hostinger_api.GPUCatalogApi(api_client)
195+
196+
try:
197+
# Get pool list
198+
api_response = api_instance.get_pool_list_v1()
199+
print("The response of GPUCatalogApi->get_pool_list_v1:\n")
200+
pprint(api_response)
201+
except Exception as e:
202+
print("Exception when calling GPUCatalogApi->get_pool_list_v1: %s\n" % e)
203+
```
204+
205+
206+
207+
### Parameters
208+
209+
This endpoint does not need any parameter.
210+
211+
### Return type
212+
213+
[**List[GPUV1PoolPoolResource]**](GPUV1PoolPoolResource.md)
214+
215+
### Authorization
216+
217+
[apiToken](../README.md#apiToken)
218+
219+
### HTTP request headers
220+
221+
- **Content-Type**: Not defined
222+
- **Accept**: application/json
223+
224+
### HTTP response details
225+
226+
| Status code | Description | Response headers |
227+
|-------------|-------------|------------------|
228+
**200** | Success response | - |
229+
**401** | Unauthenticated response | - |
230+
**500** | Error response | - |
231+
232+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
233+
234+
# **get_pool_os_templates_v1**
235+
> List[GPUV1OsTemplateOsTemplateResource] get_pool_os_templates_v1(pool_id, pool_instance_id)
236+
237+
Get pool OS templates
238+
239+
Retrieve the OS templates that can be installed on a specified GPU pool instance type.
240+
241+
Use this endpoint to choose the `os_template_id` for a new GPU instance.
242+
243+
### Example
244+
245+
* Bearer Authentication (apiToken):
246+
247+
```python
248+
import hostinger_api
249+
from hostinger_api.models.gpuv1_os_template_os_template_resource import GPUV1OsTemplateOsTemplateResource
250+
from hostinger_api.rest import ApiException
251+
from pprint import pprint
252+
253+
254+
# Configure Bearer authorization: apiToken
255+
configuration = hostinger_api.Configuration(
256+
access_token = os.environ["BEARER_TOKEN"]
257+
)
258+
259+
# Enter a context with an instance of the API client
260+
with hostinger_api.ApiClient(configuration) as api_client:
261+
# Create an instance of the API class
262+
api_instance = hostinger_api.GPUCatalogApi(api_client)
263+
pool_id = 12 # int | GPU pool ID
264+
pool_instance_id = 232 # int | GPU pool instance type ID
265+
266+
try:
267+
# Get pool OS templates
268+
api_response = api_instance.get_pool_os_templates_v1(pool_id, pool_instance_id)
269+
print("The response of GPUCatalogApi->get_pool_os_templates_v1:\n")
270+
pprint(api_response)
271+
except Exception as e:
272+
print("Exception when calling GPUCatalogApi->get_pool_os_templates_v1: %s\n" % e)
273+
```
274+
275+
276+
277+
### Parameters
278+
279+
280+
Name | Type | Description | Notes
281+
------------- | ------------- | ------------- | -------------
282+
**pool_id** | **int**| GPU pool ID |
283+
**pool_instance_id** | **int**| GPU pool instance type ID |
284+
285+
### Return type
286+
287+
[**List[GPUV1OsTemplateOsTemplateResource]**](GPUV1OsTemplateOsTemplateResource.md)
288+
289+
### Authorization
290+
291+
[apiToken](../README.md#apiToken)
292+
293+
### HTTP request headers
294+
295+
- **Content-Type**: Not defined
296+
- **Accept**: application/json
297+
298+
### HTTP response details
299+
300+
| Status code | Description | Response headers |
301+
|-------------|-------------|------------------|
302+
**200** | Success response | - |
303+
**401** | Unauthenticated response | - |
304+
**500** | Error response | - |
305+
306+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
307+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# GPUV1OsTemplateOsTemplateResource
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**id** | **int** | OS template ID | [optional]
9+
**name** | **str** | | [optional]
10+
**kb_url** | **str** | Knowledge base article about the template | [optional]
11+
**image** | **str** | Icon image ID | [optional]
12+
**dark_image_id** | **str** | Dark theme icon image ID | [optional]
13+
**light_image_id** | **str** | Light theme icon image ID | [optional]
14+
15+
## Example
16+
17+
```python
18+
from hostinger_api.models.gpuv1_os_template_os_template_resource import GPUV1OsTemplateOsTemplateResource
19+
20+
# TODO update the JSON string below
21+
json = "{}"
22+
# create an instance of GPUV1OsTemplateOsTemplateResource from a JSON string
23+
gpuv1_os_template_os_template_resource_instance = GPUV1OsTemplateOsTemplateResource.from_json(json)
24+
# print the JSON string representation of the object
25+
print(GPUV1OsTemplateOsTemplateResource.to_json())
26+
27+
# convert the object into a dict
28+
gpuv1_os_template_os_template_resource_dict = gpuv1_os_template_os_template_resource_instance.to_dict()
29+
# create an instance of GPUV1OsTemplateOsTemplateResource from a dict
30+
gpuv1_os_template_os_template_resource_from_dict = GPUV1OsTemplateOsTemplateResource.from_dict(gpuv1_os_template_os_template_resource_dict)
31+
```
32+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
33+
34+

0 commit comments

Comments
 (0)