Skip to content

Commit f71ef53

Browse files
chore: sdk update
1 parent 49efe8f commit f71ef53

1,431 files changed

Lines changed: 1969 additions & 1431 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ Class | Method | HTTP request | Description
230230
*GPUExposedServicesApi* | [**get_exposed_services_v1**](docs/GPUExposedServicesApi.md#get_exposed_services_v1) | **GET** /api/gpu/v1/instances/{instanceId}/exposed-services | Get exposed services
231231
*GPUInstancesApi* | [**create_instance_v1**](docs/GPUInstancesApi.md#create_instance_v1) | **POST** /api/gpu/v1/instances | Create instance
232232
*GPUInstancesApi* | [**delete_instance_v1**](docs/GPUInstancesApi.md#delete_instance_v1) | **DELETE** /api/gpu/v1/instances/{instanceId} | Delete instance
233+
*GPUInstancesApi* | [**get_instance_credentials_v1**](docs/GPUInstancesApi.md#get_instance_credentials_v1) | **GET** /api/gpu/v1/instances/{instanceId}/credentials | Get instance credentials
233234
*GPUInstancesApi* | [**get_instance_details_v1**](docs/GPUInstancesApi.md#get_instance_details_v1) | **GET** /api/gpu/v1/instances/{instanceId} | Get instance details
234235
*GPUInstancesApi* | [**get_instance_metrics_v1**](docs/GPUInstancesApi.md#get_instance_metrics_v1) | **GET** /api/gpu/v1/instances/{instanceId}/metrics | Get instance metrics
235236
*GPUInstancesApi* | [**get_instances_v1**](docs/GPUInstancesApi.md#get_instances_v1) | **GET** /api/gpu/v1/instances | Get instances
@@ -784,6 +785,7 @@ Class | Method | HTTP request | Description
784785
- [EcommerceV1WebhookWebhookSecretResource](docs/EcommerceV1WebhookWebhookSecretResource.md)
785786
- [GPUV1ExposedServiceExposedServiceResource](docs/GPUV1ExposedServiceExposedServiceResource.md)
786787
- [GPUV1ExposedServiceStoreRequest](docs/GPUV1ExposedServiceStoreRequest.md)
788+
- [GPUV1InstanceCredentialsResource](docs/GPUV1InstanceCredentialsResource.md)
787789
- [GPUV1InstanceInstanceListResource](docs/GPUV1InstanceInstanceListResource.md)
788790
- [GPUV1InstanceInstanceResource](docs/GPUV1InstanceInstanceResource.md)
789791
- [GPUV1InstanceStoreRequest](docs/GPUV1InstanceStoreRequest.md)

‎docs/GPUInstancesApi.md‎

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**create_instance_v1**](GPUInstancesApi.md#create_instance_v1) | **POST** /api/gpu/v1/instances | Create instance
88
[**delete_instance_v1**](GPUInstancesApi.md#delete_instance_v1) | **DELETE** /api/gpu/v1/instances/{instanceId} | Delete instance
9+
[**get_instance_credentials_v1**](GPUInstancesApi.md#get_instance_credentials_v1) | **GET** /api/gpu/v1/instances/{instanceId}/credentials | Get instance credentials
910
[**get_instance_details_v1**](GPUInstancesApi.md#get_instance_details_v1) | **GET** /api/gpu/v1/instances/{instanceId} | Get instance details
1011
[**get_instance_metrics_v1**](GPUInstancesApi.md#get_instance_metrics_v1) | **GET** /api/gpu/v1/instances/{instanceId}/metrics | Get instance metrics
1112
[**get_instances_v1**](GPUInstancesApi.md#get_instances_v1) | **GET** /api/gpu/v1/instances | Get instances
@@ -169,6 +170,83 @@ Name | Type | Description | Notes
169170

170171
[[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)
171172

173+
# **get_instance_credentials_v1**
174+
> GPUV1InstanceCredentialsResource get_instance_credentials_v1(instance_id)
175+
176+
Get instance credentials
177+
178+
Retrieve SSH connection credentials (hostname, port, username and password) of a specified GPU instance.
179+
180+
Credentials become available once the instance is provisioned; until then the endpoint responds with
181+
`409 Conflict`, so retry later.
182+
183+
Use this endpoint to connect to a GPU instance over SSH.
184+
185+
### Example
186+
187+
* Bearer Authentication (apiToken):
188+
189+
```python
190+
import hostinger_api
191+
from hostinger_api.models.gpuv1_instance_credentials_resource import GPUV1InstanceCredentialsResource
192+
from hostinger_api.rest import ApiException
193+
from pprint import pprint
194+
195+
196+
# Configure Bearer authorization: apiToken
197+
configuration = hostinger_api.Configuration(
198+
access_token = os.environ["BEARER_TOKEN"]
199+
)
200+
201+
# Enter a context with an instance of the API client
202+
with hostinger_api.ApiClient(configuration) as api_client:
203+
# Create an instance of the API class
204+
api_instance = hostinger_api.GPUInstancesApi(api_client)
205+
instance_id = 6325 # int | GPU instance ID
206+
207+
try:
208+
# Get instance credentials
209+
api_response = api_instance.get_instance_credentials_v1(instance_id)
210+
print("The response of GPUInstancesApi->get_instance_credentials_v1:\n")
211+
pprint(api_response)
212+
except Exception as e:
213+
print("Exception when calling GPUInstancesApi->get_instance_credentials_v1: %s\n" % e)
214+
```
215+
216+
217+
218+
### Parameters
219+
220+
221+
Name | Type | Description | Notes
222+
------------- | ------------- | ------------- | -------------
223+
**instance_id** | **int**| GPU instance ID |
224+
225+
### Return type
226+
227+
[**GPUV1InstanceCredentialsResource**](GPUV1InstanceCredentialsResource.md)
228+
229+
### Authorization
230+
231+
[apiToken](../README.md#apiToken)
232+
233+
### HTTP request headers
234+
235+
- **Content-Type**: Not defined
236+
- **Accept**: application/json
237+
238+
### HTTP response details
239+
240+
| Status code | Description | Response headers |
241+
|-------------|-------------|------------------|
242+
**200** | Success response | - |
243+
**401** | Unauthenticated response | - |
244+
**404** | Error response | - |
245+
**409** | Conflict response. &#x60;Retry-After&#x60;, when present, is the number of seconds to wait before retrying. | * Retry-After - Seconds to wait before retrying the request <br> |
246+
**500** | Error response | - |
247+
248+
[[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)
249+
172250
# **get_instance_details_v1**
173251
> GPUV1InstanceInstanceResource get_instance_details_v1(instance_id)
174252
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# GPUV1InstanceCredentialsResource
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**hostname** | **str** | SSH host | [optional]
9+
**port** | **int** | SSH port | [optional]
10+
**username** | **str** | SSH username | [optional]
11+
**password** | **str** | SSH password | [optional]
12+
13+
## Example
14+
15+
```python
16+
from hostinger_api.models.gpuv1_instance_credentials_resource import GPUV1InstanceCredentialsResource
17+
18+
# TODO update the JSON string below
19+
json = "{}"
20+
# create an instance of GPUV1InstanceCredentialsResource from a JSON string
21+
gpuv1_instance_credentials_resource_instance = GPUV1InstanceCredentialsResource.from_json(json)
22+
# print the JSON string representation of the object
23+
print(GPUV1InstanceCredentialsResource.to_json())
24+
25+
# convert the object into a dict
26+
gpuv1_instance_credentials_resource_dict = gpuv1_instance_credentials_resource_instance.to_dict()
27+
# create an instance of GPUV1InstanceCredentialsResource from a dict
28+
gpuv1_instance_credentials_resource_from_dict = GPUV1InstanceCredentialsResource.from_dict(gpuv1_instance_credentials_resource_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: 3 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: 3.7.0
8+
API Version: 3.8.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__ = "5.7.0"
15+
__version__ = "5.8.0"
1616

1717
# import apis into sdk package
1818
from hostinger_api.api.agency_hosting_cache_api import AgencyHostingCacheApi
@@ -369,6 +369,7 @@
369369
from hostinger_api.models.ecommerce_v1_webhook_webhook_secret_resource import EcommerceV1WebhookWebhookSecretResource
370370
from hostinger_api.models.gpuv1_exposed_service_exposed_service_resource import GPUV1ExposedServiceExposedServiceResource
371371
from hostinger_api.models.gpuv1_exposed_service_store_request import GPUV1ExposedServiceStoreRequest
372+
from hostinger_api.models.gpuv1_instance_credentials_resource import GPUV1InstanceCredentialsResource
372373
from hostinger_api.models.gpuv1_instance_instance_list_resource import GPUV1InstanceInstanceListResource
373374
from hostinger_api.models.gpuv1_instance_instance_resource import GPUV1InstanceInstanceResource
374375
from hostinger_api.models.gpuv1_instance_store_request import GPUV1InstanceStoreRequest

‎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: 3.7.0
6+
API Version: 3.8.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: 3.7.0
6+
API Version: 3.8.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: 3.7.0
6+
API Version: 3.8.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_datacenters_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: 3.7.0
6+
API Version: 3.8.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_domains_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: 3.7.0
6+
API Version: 3.8.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_files_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: 3.7.0
6+
API Version: 3.8.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)