Skip to content

Commit 35f57d7

Browse files
committed
feature: typescript sdk release
1 parent c20d6cb commit 35f57d7

File tree

160 files changed

+530
-164
lines changed

Some content is hidden

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

160 files changed

+530
-164
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ Class | Method | HTTP request | Description
128128
*VPSSnapshotsApi* | [**delete_snapshot_v1**](docs/VPSSnapshotsApi.md#delete_snapshot_v1) | **DELETE** /api/vps/v1/virtual-machines/{virtualMachineId}/snapshot | Delete snapshot
129129
*VPSSnapshotsApi* | [**get_snapshot_v1**](docs/VPSSnapshotsApi.md#get_snapshot_v1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/snapshot | Get snapshot
130130
*VPSSnapshotsApi* | [**restore_snapshot_v1**](docs/VPSSnapshotsApi.md#restore_snapshot_v1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/snapshot/restore | Restore snapshot
131+
*VPSVirtualMachineApi* | [**get_attached_public_keys_v1**](docs/VPSVirtualMachineApi.md#get_attached_public_keys_v1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/public-keys | Get attached public keys
131132
*VPSVirtualMachineApi* | [**get_metrics_v1**](docs/VPSVirtualMachineApi.md#get_metrics_v1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/metrics | Get metrics
132133
*VPSVirtualMachineApi* | [**get_virtual_machine_list_v1**](docs/VPSVirtualMachineApi.md#get_virtual_machine_list_v1) | **GET** /api/vps/v1/virtual-machines | Get virtual machine list
133134
*VPSVirtualMachineApi* | [**get_virtual_machine_v1**](docs/VPSVirtualMachineApi.md#get_virtual_machine_v1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId} | Get virtual machine

docs/VPSVirtualMachineApi.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All URIs are relative to *https://developers.hostinger.com*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7+
[**get_attached_public_keys_v1**](VPSVirtualMachineApi.md#get_attached_public_keys_v1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/public-keys | Get attached public keys
78
[**get_metrics_v1**](VPSVirtualMachineApi.md#get_metrics_v1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/metrics | Get metrics
89
[**get_virtual_machine_list_v1**](VPSVirtualMachineApi.md#get_virtual_machine_list_v1) | **GET** /api/vps/v1/virtual-machines | Get virtual machine list
910
[**get_virtual_machine_v1**](VPSVirtualMachineApi.md#get_virtual_machine_v1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId} | Get virtual machine
@@ -19,6 +20,78 @@ Method | HTTP request | Description
1920
[**stop_virtual_machine_v1**](VPSVirtualMachineApi.md#stop_virtual_machine_v1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/stop | Stop virtual machine
2021

2122

23+
# **get_attached_public_keys_v1**
24+
> VPSGetPublicKeyListV1200Response get_attached_public_keys_v1(virtual_machine_id, page=page)
25+
26+
Get attached public keys
27+
28+
This endpoint retrieves a list of public keys attached to a specified virtual machine.
29+
30+
### Example
31+
32+
* Bearer Authentication (apiToken):
33+
34+
```python
35+
import hostinger_api
36+
from hostinger_api.models.vps_get_public_key_list_v1200_response import VPSGetPublicKeyListV1200Response
37+
from hostinger_api.rest import ApiException
38+
from pprint import pprint
39+
40+
41+
# Configure Bearer authorization: apiToken
42+
configuration = hostinger_api.Configuration(
43+
access_token = os.environ["BEARER_TOKEN"]
44+
)
45+
46+
# Enter a context with an instance of the API client
47+
with hostinger_api.ApiClient(configuration) as api_client:
48+
# Create an instance of the API class
49+
api_instance = hostinger_api.VPSVirtualMachineApi(api_client)
50+
virtual_machine_id = 1268054 # int | Virtual Machine ID
51+
page = 1 # int | Page number (optional)
52+
53+
try:
54+
# Get attached public keys
55+
api_response = api_instance.get_attached_public_keys_v1(virtual_machine_id, page=page)
56+
print("The response of VPSVirtualMachineApi->get_attached_public_keys_v1:\n")
57+
pprint(api_response)
58+
except Exception as e:
59+
print("Exception when calling VPSVirtualMachineApi->get_attached_public_keys_v1: %s\n" % e)
60+
```
61+
62+
63+
64+
### Parameters
65+
66+
67+
Name | Type | Description | Notes
68+
------------- | ------------- | ------------- | -------------
69+
**virtual_machine_id** | **int**| Virtual Machine ID |
70+
**page** | **int**| Page number | [optional]
71+
72+
### Return type
73+
74+
[**VPSGetPublicKeyListV1200Response**](VPSGetPublicKeyListV1200Response.md)
75+
76+
### Authorization
77+
78+
[apiToken](../README.md#apiToken)
79+
80+
### HTTP request headers
81+
82+
- **Content-Type**: Not defined
83+
- **Accept**: application/json
84+
85+
### HTTP response details
86+
87+
| Status code | Description | Response headers |
88+
|-------------|-------------|------------------|
89+
**200** | Success response | - |
90+
**401** | Unauthenticated | - |
91+
**500** | Error response | - |
92+
93+
[[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)
94+
2295
# **get_metrics_v1**
2396
> VPSV1MetricsMetricsCollection get_metrics_v1(virtual_machine_id, vpsv1_virtual_machine_metric_get_request)
2497

hostinger_api/__init__.py

Lines changed: 2 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: 0.0.5
8+
API Version: 0.0.6
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__ = "0.0.2"
15+
__version__ = "0.0.3"
1616

1717
# import apis into sdk package
1818
from hostinger_api.api.billing_catalog_api import BillingCatalogApi

hostinger_api/api/billing_catalog_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: 0.0.5
6+
API Version: 0.0.6
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/billing_orders_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: 0.0.5
6+
API Version: 0.0.6
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/billing_payment_methods_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: 0.0.5
6+
API Version: 0.0.6
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/billing_subscriptions_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: 0.0.5
6+
API Version: 0.0.6
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/domains_portfolio_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: 0.0.5
6+
API Version: 0.0.6
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/vps_actions_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: 0.0.5
6+
API Version: 0.0.6
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/vps_backups_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: 0.0.5
6+
API Version: 0.0.6
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)