Skip to content

Commit a60abfb

Browse files
chore: sdk update
1 parent 693538c commit a60abfb

1,415 files changed

Lines changed: 2994 additions & 1409 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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ Class | Method | HTTP request | Description
218218
*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
219219
*GPUCatalogApi* | [**get_pool_list_v1**](docs/GPUCatalogApi.md#get_pool_list_v1) | **GET** /api/gpu/v1/pools | Get pool list
220220
*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
221+
*GPUExposedServicesApi* | [**create_exposed_service_v1**](docs/GPUExposedServicesApi.md#create_exposed_service_v1) | **POST** /api/gpu/v1/instances/{instanceId}/exposed-services | Create exposed service
222+
*GPUExposedServicesApi* | [**delete_exposed_service_v1**](docs/GPUExposedServicesApi.md#delete_exposed_service_v1) | **DELETE** /api/gpu/v1/instances/{instanceId}/exposed-services/{exposedServiceId} | Delete exposed service
223+
*GPUExposedServicesApi* | [**get_exposed_services_v1**](docs/GPUExposedServicesApi.md#get_exposed_services_v1) | **GET** /api/gpu/v1/instances/{instanceId}/exposed-services | Get exposed services
221224
*GPUInstancesApi* | [**create_instance_v1**](docs/GPUInstancesApi.md#create_instance_v1) | **POST** /api/gpu/v1/instances | Create instance
222225
*GPUInstancesApi* | [**delete_instance_v1**](docs/GPUInstancesApi.md#delete_instance_v1) | **DELETE** /api/gpu/v1/instances/{instanceId} | Delete instance
223226
*GPUInstancesApi* | [**get_instance_details_v1**](docs/GPUInstancesApi.md#get_instance_details_v1) | **GET** /api/gpu/v1/instances/{instanceId} | Get instance details
@@ -760,6 +763,8 @@ Class | Method | HTTP request | Description
760763
- [EcommerceV1VariantVariantResource](docs/EcommerceV1VariantVariantResource.md)
761764
- [EcommerceV1VariantVariantResourceOptionsInner](docs/EcommerceV1VariantVariantResourceOptionsInner.md)
762765
- [EcommerceV1VariantVariantResponseResource](docs/EcommerceV1VariantVariantResponseResource.md)
766+
- [GPUV1ExposedServiceExposedServiceResource](docs/GPUV1ExposedServiceExposedServiceResource.md)
767+
- [GPUV1ExposedServiceStoreRequest](docs/GPUV1ExposedServiceStoreRequest.md)
763768
- [GPUV1InstanceInstanceListResource](docs/GPUV1InstanceInstanceListResource.md)
764769
- [GPUV1InstanceInstanceResource](docs/GPUV1InstanceInstanceResource.md)
765770
- [GPUV1InstanceStoreRequest](docs/GPUV1InstanceStoreRequest.md)

‎docs/GPUExposedServicesApi.md‎

Lines changed: 242 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,242 @@
1+
# hostinger_api.GPUExposedServicesApi
2+
3+
All URIs are relative to *https://developers.hostinger.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**create_exposed_service_v1**](GPUExposedServicesApi.md#create_exposed_service_v1) | **POST** /api/gpu/v1/instances/{instanceId}/exposed-services | Create exposed service
8+
[**delete_exposed_service_v1**](GPUExposedServicesApi.md#delete_exposed_service_v1) | **DELETE** /api/gpu/v1/instances/{instanceId}/exposed-services/{exposedServiceId} | Delete exposed service
9+
[**get_exposed_services_v1**](GPUExposedServicesApi.md#get_exposed_services_v1) | **GET** /api/gpu/v1/instances/{instanceId}/exposed-services | Get exposed services
10+
11+
12+
# **create_exposed_service_v1**
13+
> CommonSuccessEmptyResource create_exposed_service_v1(instance_id, gpuv1_exposed_service_store_request)
14+
15+
Create exposed service
16+
17+
Expose a service running on a specified GPU instance to the internet.
18+
19+
The service is exposed asynchronously: a successful request returns immediately, and the service
20+
appears in the exposed services list once it gets its public hostname and external port.
21+
Fails when the instance already has the maximum of 4 exposed services.
22+
23+
Use this endpoint to make an application on your GPU instance publicly reachable.
24+
25+
### Example
26+
27+
* Bearer Authentication (apiToken):
28+
29+
```python
30+
import hostinger_api
31+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
32+
from hostinger_api.models.gpuv1_exposed_service_store_request import GPUV1ExposedServiceStoreRequest
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.GPUExposedServicesApi(api_client)
46+
instance_id = 6325 # int | GPU instance ID
47+
gpuv1_exposed_service_store_request = hostinger_api.GPUV1ExposedServiceStoreRequest() # GPUV1ExposedServiceStoreRequest |
48+
49+
try:
50+
# Create exposed service
51+
api_response = api_instance.create_exposed_service_v1(instance_id, gpuv1_exposed_service_store_request)
52+
print("The response of GPUExposedServicesApi->create_exposed_service_v1:\n")
53+
pprint(api_response)
54+
except Exception as e:
55+
print("Exception when calling GPUExposedServicesApi->create_exposed_service_v1: %s\n" % e)
56+
```
57+
58+
59+
60+
### Parameters
61+
62+
63+
Name | Type | Description | Notes
64+
------------- | ------------- | ------------- | -------------
65+
**instance_id** | **int**| GPU instance ID |
66+
**gpuv1_exposed_service_store_request** | [**GPUV1ExposedServiceStoreRequest**](GPUV1ExposedServiceStoreRequest.md)| |
67+
68+
### Return type
69+
70+
[**CommonSuccessEmptyResource**](CommonSuccessEmptyResource.md)
71+
72+
### Authorization
73+
74+
[apiToken](../README.md#apiToken)
75+
76+
### HTTP request headers
77+
78+
- **Content-Type**: application/json
79+
- **Accept**: application/json
80+
81+
### HTTP response details
82+
83+
| Status code | Description | Response headers |
84+
|-------------|-------------|------------------|
85+
**200** | Success empty response | - |
86+
**422** | Validation error response | - |
87+
**401** | Unauthenticated response | - |
88+
**500** | Error response | - |
89+
90+
[[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)
91+
92+
# **delete_exposed_service_v1**
93+
> CommonSuccessEmptyResource delete_exposed_service_v1(instance_id, exposed_service_id)
94+
95+
Delete exposed service
96+
97+
Delete a specified exposed service of a GPU instance.
98+
99+
The service is removed asynchronously: a successful request returns immediately and the service
100+
stops being reachable from the internet shortly after.
101+
102+
Use this endpoint to close public access to a service on your GPU instance.
103+
104+
### Example
105+
106+
* Bearer Authentication (apiToken):
107+
108+
```python
109+
import hostinger_api
110+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
111+
from hostinger_api.rest import ApiException
112+
from pprint import pprint
113+
114+
115+
# Configure Bearer authorization: apiToken
116+
configuration = hostinger_api.Configuration(
117+
access_token = os.environ["BEARER_TOKEN"]
118+
)
119+
120+
# Enter a context with an instance of the API client
121+
with hostinger_api.ApiClient(configuration) as api_client:
122+
# Create an instance of the API class
123+
api_instance = hostinger_api.GPUExposedServicesApi(api_client)
124+
instance_id = 6325 # int | GPU instance ID
125+
exposed_service_id = 3621 # int | Exposed service ID
126+
127+
try:
128+
# Delete exposed service
129+
api_response = api_instance.delete_exposed_service_v1(instance_id, exposed_service_id)
130+
print("The response of GPUExposedServicesApi->delete_exposed_service_v1:\n")
131+
pprint(api_response)
132+
except Exception as e:
133+
print("Exception when calling GPUExposedServicesApi->delete_exposed_service_v1: %s\n" % e)
134+
```
135+
136+
137+
138+
### Parameters
139+
140+
141+
Name | Type | Description | Notes
142+
------------- | ------------- | ------------- | -------------
143+
**instance_id** | **int**| GPU instance ID |
144+
**exposed_service_id** | **int**| Exposed service ID |
145+
146+
### Return type
147+
148+
[**CommonSuccessEmptyResource**](CommonSuccessEmptyResource.md)
149+
150+
### Authorization
151+
152+
[apiToken](../README.md#apiToken)
153+
154+
### HTTP request headers
155+
156+
- **Content-Type**: Not defined
157+
- **Accept**: application/json
158+
159+
### HTTP response details
160+
161+
| Status code | Description | Response headers |
162+
|-------------|-------------|------------------|
163+
**200** | Success empty response | - |
164+
**401** | Unauthenticated response | - |
165+
**500** | Error response | - |
166+
167+
[[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)
168+
169+
# **get_exposed_services_v1**
170+
> List[GPUV1ExposedServiceExposedServiceResource] get_exposed_services_v1(instance_id)
171+
172+
Get exposed services
173+
174+
Retrieve the services exposed on a specified GPU instance.
175+
176+
A newly created service is listed once it gets its public hostname and external port.
177+
178+
Use this endpoint to find the public address of services running on your GPU instance.
179+
180+
### Example
181+
182+
* Bearer Authentication (apiToken):
183+
184+
```python
185+
import hostinger_api
186+
from hostinger_api.models.gpuv1_exposed_service_exposed_service_resource import GPUV1ExposedServiceExposedServiceResource
187+
from hostinger_api.rest import ApiException
188+
from pprint import pprint
189+
190+
191+
# Configure Bearer authorization: apiToken
192+
configuration = hostinger_api.Configuration(
193+
access_token = os.environ["BEARER_TOKEN"]
194+
)
195+
196+
# Enter a context with an instance of the API client
197+
with hostinger_api.ApiClient(configuration) as api_client:
198+
# Create an instance of the API class
199+
api_instance = hostinger_api.GPUExposedServicesApi(api_client)
200+
instance_id = 6325 # int | GPU instance ID
201+
202+
try:
203+
# Get exposed services
204+
api_response = api_instance.get_exposed_services_v1(instance_id)
205+
print("The response of GPUExposedServicesApi->get_exposed_services_v1:\n")
206+
pprint(api_response)
207+
except Exception as e:
208+
print("Exception when calling GPUExposedServicesApi->get_exposed_services_v1: %s\n" % e)
209+
```
210+
211+
212+
213+
### Parameters
214+
215+
216+
Name | Type | Description | Notes
217+
------------- | ------------- | ------------- | -------------
218+
**instance_id** | **int**| GPU instance ID |
219+
220+
### Return type
221+
222+
[**List[GPUV1ExposedServiceExposedServiceResource]**](GPUV1ExposedServiceExposedServiceResource.md)
223+
224+
### Authorization
225+
226+
[apiToken](../README.md#apiToken)
227+
228+
### HTTP request headers
229+
230+
- **Content-Type**: Not defined
231+
- **Accept**: application/json
232+
233+
### HTTP response details
234+
235+
| Status code | Description | Response headers |
236+
|-------------|-------------|------------------|
237+
**200** | Success response | - |
238+
**401** | Unauthenticated response | - |
239+
**500** | Error response | - |
240+
241+
[[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)
242+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# GPUV1ExposedServiceExposedServiceResource
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**id** | **int** | Exposed service ID | [optional]
9+
**name** | **str** | | [optional]
10+
**hostname** | **str** | Public hostname or IP address of the service | [optional]
11+
**internal_port** | **int** | Port the service listens on inside the instance | [optional]
12+
**external_port** | **int** | Public port the service is reachable on | [optional]
13+
**protocol** | **str** | | [optional]
14+
**type** | **str** | | [optional]
15+
16+
## Example
17+
18+
```python
19+
from hostinger_api.models.gpuv1_exposed_service_exposed_service_resource import GPUV1ExposedServiceExposedServiceResource
20+
21+
# TODO update the JSON string below
22+
json = "{}"
23+
# create an instance of GPUV1ExposedServiceExposedServiceResource from a JSON string
24+
gpuv1_exposed_service_exposed_service_resource_instance = GPUV1ExposedServiceExposedServiceResource.from_json(json)
25+
# print the JSON string representation of the object
26+
print(GPUV1ExposedServiceExposedServiceResource.to_json())
27+
28+
# convert the object into a dict
29+
gpuv1_exposed_service_exposed_service_resource_dict = gpuv1_exposed_service_exposed_service_resource_instance.to_dict()
30+
# create an instance of GPUV1ExposedServiceExposedServiceResource from a dict
31+
gpuv1_exposed_service_exposed_service_resource_from_dict = GPUV1ExposedServiceExposedServiceResource.from_dict(gpuv1_exposed_service_exposed_service_resource_dict)
32+
```
33+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
34+
35+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# GPUV1ExposedServiceStoreRequest
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**name** | **str** | Service name, unique within the instance |
9+
**internal_port** | **int** | Port the service listens on inside the instance, unique within the instance |
10+
**protocol** | **str** | |
11+
**type** | **str** | |
12+
13+
## Example
14+
15+
```python
16+
from hostinger_api.models.gpuv1_exposed_service_store_request import GPUV1ExposedServiceStoreRequest
17+
18+
# TODO update the JSON string below
19+
json = "{}"
20+
# create an instance of GPUV1ExposedServiceStoreRequest from a JSON string
21+
gpuv1_exposed_service_store_request_instance = GPUV1ExposedServiceStoreRequest.from_json(json)
22+
# print the JSON string representation of the object
23+
print(GPUV1ExposedServiceStoreRequest.to_json())
24+
25+
# convert the object into a dict
26+
gpuv1_exposed_service_store_request_dict = gpuv1_exposed_service_store_request_instance.to_dict()
27+
# create an instance of GPUV1ExposedServiceStoreRequest from a dict
28+
gpuv1_exposed_service_store_request_from_dict = GPUV1ExposedServiceStoreRequest.from_dict(gpuv1_exposed_service_store_request_dict)
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)
31+
32+

‎hostinger_api/__init__.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"""
66
Hostinger API Python SDK
77
8-
API Version: 2.15.0
8+
API Version: 2.16.0
99
1010
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
1111
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
1212
""" # noqa: E501
1313

1414

15-
__version__ = "4.15.0"
15+
__version__ = "4.16.0"
1616

1717
# import apis into sdk package
1818
from hostinger_api.api.agency_hosting_cache_api import AgencyHostingCacheApi
@@ -53,6 +53,7 @@
5353
from hostinger_api.api.ecommerce_shipping_api import EcommerceShippingApi
5454
from hostinger_api.api.ecommerce_stores_api import EcommerceStoresApi
5555
from hostinger_api.api.gpu_catalog_api import GPUCatalogApi
56+
from hostinger_api.api.gpu_exposed_services_api import GPUExposedServicesApi
5657
from hostinger_api.api.gpu_instances_api import GPUInstancesApi
5758
from hostinger_api.api.horizons_websites_api import HorizonsWebsitesApi
5859
from hostinger_api.api.hosting_cdn_api import HostingCDNApi
@@ -353,6 +354,8 @@
353354
from hostinger_api.models.ecommerce_v1_variant_variant_resource import EcommerceV1VariantVariantResource
354355
from hostinger_api.models.ecommerce_v1_variant_variant_resource_options_inner import EcommerceV1VariantVariantResourceOptionsInner
355356
from hostinger_api.models.ecommerce_v1_variant_variant_response_resource import EcommerceV1VariantVariantResponseResource
357+
from hostinger_api.models.gpuv1_exposed_service_exposed_service_resource import GPUV1ExposedServiceExposedServiceResource
358+
from hostinger_api.models.gpuv1_exposed_service_store_request import GPUV1ExposedServiceStoreRequest
356359
from hostinger_api.models.gpuv1_instance_instance_list_resource import GPUV1InstanceInstanceListResource
357360
from hostinger_api.models.gpuv1_instance_instance_resource import GPUV1InstanceInstanceResource
358361
from hostinger_api.models.gpuv1_instance_store_request import GPUV1InstanceStoreRequest

‎hostinger_api/api/__init__.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
from hostinger_api.api.ecommerce_shipping_api import EcommerceShippingApi
4040
from hostinger_api.api.ecommerce_stores_api import EcommerceStoresApi
4141
from hostinger_api.api.gpu_catalog_api import GPUCatalogApi
42+
from hostinger_api.api.gpu_exposed_services_api import GPUExposedServicesApi
4243
from hostinger_api.api.gpu_instances_api import GPUInstancesApi
4344
from hostinger_api.api.horizons_websites_api import HorizonsWebsitesApi
4445
from hostinger_api.api.hosting_cdn_api import HostingCDNApi

‎hostinger_api/api/agency_hosting_cache_api.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
Hostinger API Python SDK
55
6-
API Version: 2.15.0
6+
API Version: 2.16.0
77
88
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

‎hostinger_api/api/agency_hosting_cron_jobs_api.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
Hostinger API Python SDK
55
6-
API Version: 2.15.0
6+
API Version: 2.16.0
77
88
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

‎hostinger_api/api/agency_hosting_databases_api.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
Hostinger API Python SDK
55
6-
API Version: 2.15.0
6+
API Version: 2.16.0
77
88
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

0 commit comments

Comments
 (0)