Skip to content

Commit 0b7f363

Browse files
chore: sdk update
1 parent 20dcef0 commit 0b7f363

1,203 files changed

Lines changed: 2469 additions & 1197 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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ Class | Method | HTTP request | Description
240240
*HostingFilesApi* | [**generate_upload_urlv1**](docs/HostingFilesApi.md#generate_upload_urlv1) | **POST** /api/hosting/v1/files/upload-urls | Generate upload URL
241241
*HostingFilesApi* | [**get_website_file_content_v1**](docs/HostingFilesApi.md#get_website_file_content_v1) | **GET** /api/hosting/v1/accounts/{username}/domains/{domain}/files/content | Get website file content
242242
*HostingFilesApi* | [**list_website_files_and_directories_v1**](docs/HostingFilesApi.md#list_website_files_and_directories_v1) | **GET** /api/hosting/v1/accounts/{username}/domains/{domain}/files | List website files and directories
243+
*HostingGitApi* | [**list_git_installation_repositories_v1**](docs/HostingGitApi.md#list_git_installation_repositories_v1) | **GET** /api/hosting/v1/git/installations/{uuid}/repositories | List Git installation repositories
244+
*HostingGitApi* | [**list_git_installations_v1**](docs/HostingGitApi.md#list_git_installations_v1) | **GET** /api/hosting/v1/git/installations | List Git installations
243245
*HostingNodeJSApi* | [**analyse_failed_node_js_build_v1**](docs/HostingNodeJSApi.md#analyse_failed_node_js_build_v1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/analysis | Analyse failed Node.js build
244246
*HostingNodeJSApi* | [**clear_node_js_runtime_logs_v1**](docs/HostingNodeJSApi.md#clear_node_js_runtime_logs_v1) | **DELETE** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/runtime-logs | Clear Node.js runtime logs
245247
*HostingNodeJSApi* | [**get_node_js_build_details_v1**](docs/HostingNodeJSApi.md#get_node_js_build_details_v1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid} | Get Node.js build details
@@ -715,6 +717,8 @@ Class | Method | HTTP request | Description
715717
- [HostingV1FilesFilesResourceItemsInner](docs/HostingV1FilesFilesResourceItemsInner.md)
716718
- [HostingV1FilesGenerateUploadUrlRequest](docs/HostingV1FilesGenerateUploadUrlRequest.md)
717719
- [HostingV1FilesUploadUrlResource](docs/HostingV1FilesUploadUrlResource.md)
720+
- [HostingV1GitGitInstallationResource](docs/HostingV1GitGitInstallationResource.md)
721+
- [HostingV1GitGitRepositoryResource](docs/HostingV1GitGitRepositoryResource.md)
718722
- [HostingV1NodeJsBuildAnalysisResource](docs/HostingV1NodeJsBuildAnalysisResource.md)
719723
- [HostingV1NodeJsBuildLogsResource](docs/HostingV1NodeJsBuildLogsResource.md)
720724
- [HostingV1NodeJsBuildOptionsResource](docs/HostingV1NodeJsBuildOptionsResource.md)

‎docs/HostingGitApi.md‎

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
# hostinger_api.HostingGitApi
2+
3+
All URIs are relative to *https://developers.hostinger.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**list_git_installation_repositories_v1**](HostingGitApi.md#list_git_installation_repositories_v1) | **GET** /api/hosting/v1/git/installations/{uuid}/repositories | List Git installation repositories
8+
[**list_git_installations_v1**](HostingGitApi.md#list_git_installations_v1) | **GET** /api/hosting/v1/git/installations | List Git installations
9+
10+
11+
# **list_git_installation_repositories_v1**
12+
> List[HostingV1GitGitRepositoryResource] list_git_installation_repositories_v1(uuid)
13+
14+
List Git installation repositories
15+
16+
Lists the repositories the Git installation can access, read live from the provider. Works
17+
for github and gitlab installations. Use an active installation: a suspended or pending one
18+
is still queried and the call fails with whatever the provider answers. The list is cut at
19+
the first 500 repositories in the order the provider returns them; when the account has
20+
more, name the repository directly instead of searching this list.
21+
22+
`owner`, `name` and `default_branch` identify a repository and a branch to deploy. Returns
23+
404 when the installation does not belong to the customer. Limited to 10 calls per minute
24+
per API client (429 above that).
25+
26+
### Example
27+
28+
* Bearer Authentication (apiToken):
29+
30+
```python
31+
import hostinger_api
32+
from hostinger_api.models.hosting_v1_git_git_repository_resource import HostingV1GitGitRepositoryResource
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.HostingGitApi(api_client)
46+
uuid = '018f5e2a-1234-7890-abcd-1234567890ab' # str | Git installation UUID from the List Git installations endpoint
47+
48+
try:
49+
# List Git installation repositories
50+
api_response = api_instance.list_git_installation_repositories_v1(uuid)
51+
print("The response of HostingGitApi->list_git_installation_repositories_v1:\n")
52+
pprint(api_response)
53+
except Exception as e:
54+
print("Exception when calling HostingGitApi->list_git_installation_repositories_v1: %s\n" % e)
55+
```
56+
57+
58+
59+
### Parameters
60+
61+
62+
Name | Type | Description | Notes
63+
------------- | ------------- | ------------- | -------------
64+
**uuid** | **str**| Git installation UUID from the List Git installations endpoint |
65+
66+
### Return type
67+
68+
[**List[HostingV1GitGitRepositoryResource]**](HostingV1GitGitRepositoryResource.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+
**404** | Error response | - |
85+
**429** | Error response | - |
86+
**401** | Unauthenticated response | - |
87+
**500** | Error response | - |
88+
89+
[[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)
90+
91+
# **list_git_installations_v1**
92+
> List[HostingV1GitGitInstallationResource] list_git_installations_v1(provider=provider, status=status)
93+
94+
List Git installations
95+
96+
Lists the Git provider accounts the customer has connected. Only installations with status
97+
`active` are returned unless the `status` filter says otherwise.
98+
99+
An empty list means the customer has no active installation. Check `status=suspended` and
100+
`status=pending` as well. If there is none at all, GitHub has to be connected once in hPanel
101+
(Websites, Manage, Advanced, Git, Connect GitHub; or Add Website, Node.js Web App, Import Git
102+
Repository, Continue with GitHub); this endpoint then lists the new installation.
103+
104+
Use `uuid` as the path parameter of `List Git installation repositories`.
105+
106+
### Example
107+
108+
* Bearer Authentication (apiToken):
109+
110+
```python
111+
import hostinger_api
112+
from hostinger_api.models.hosting_v1_git_git_installation_resource import HostingV1GitGitInstallationResource
113+
from hostinger_api.rest import ApiException
114+
from pprint import pprint
115+
116+
117+
# Configure Bearer authorization: apiToken
118+
configuration = hostinger_api.Configuration(
119+
access_token = os.environ["BEARER_TOKEN"]
120+
)
121+
122+
# Enter a context with an instance of the API client
123+
with hostinger_api.ApiClient(configuration) as api_client:
124+
# Create an instance of the API class
125+
api_instance = hostinger_api.HostingGitApi(api_client)
126+
provider = 'github' # str | Filter by Git provider (optional)
127+
status = active # str | Filter by installation status (optional) (default to active)
128+
129+
try:
130+
# List Git installations
131+
api_response = api_instance.list_git_installations_v1(provider=provider, status=status)
132+
print("The response of HostingGitApi->list_git_installations_v1:\n")
133+
pprint(api_response)
134+
except Exception as e:
135+
print("Exception when calling HostingGitApi->list_git_installations_v1: %s\n" % e)
136+
```
137+
138+
139+
140+
### Parameters
141+
142+
143+
Name | Type | Description | Notes
144+
------------- | ------------- | ------------- | -------------
145+
**provider** | **str**| Filter by Git provider | [optional]
146+
**status** | **str**| Filter by installation status | [optional] [default to active]
147+
148+
### Return type
149+
150+
[**List[HostingV1GitGitInstallationResource]**](HostingV1GitGitInstallationResource.md)
151+
152+
### Authorization
153+
154+
[apiToken](../README.md#apiToken)
155+
156+
### HTTP request headers
157+
158+
- **Content-Type**: Not defined
159+
- **Accept**: application/json
160+
161+
### HTTP response details
162+
163+
| Status code | Description | Response headers |
164+
|-------------|-------------|------------------|
165+
**200** | Success response | - |
166+
**422** | Validation error response | - |
167+
**401** | Unauthenticated response | - |
168+
**500** | Error response | - |
169+
170+
[[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)
171+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# HostingV1GitGitInstallationResource
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**uuid** | **str** | Installation identifier. Use it as the path parameter of List Git installation repositories. |
9+
**provider** | **str** | Git provider the account belongs to |
10+
**account_login** | **str** | Login of the connected provider account (user or organization) |
11+
**account_type** | **str** | Whether the connected account is a user or an organization |
12+
**account_avatar_url** | **str** | Avatar URL of the connected provider account |
13+
**status** | **str** | Installation status. Only active installations are listed unless the status filter says otherwise. |
14+
**installed_at** | **datetime** | When the provider app was installed on the account |
15+
**created_at** | **datetime** | When the installation record was created |
16+
**has_oauth** | **bool** | True when the GitHub user account has a stored OAuth token whose refresh token is still valid, false when the token is missing or its refresh token expired. Null for organization accounts and for providers other than GitHub. |
17+
18+
## Example
19+
20+
```python
21+
from hostinger_api.models.hosting_v1_git_git_installation_resource import HostingV1GitGitInstallationResource
22+
23+
# TODO update the JSON string below
24+
json = "{}"
25+
# create an instance of HostingV1GitGitInstallationResource from a JSON string
26+
hosting_v1_git_git_installation_resource_instance = HostingV1GitGitInstallationResource.from_json(json)
27+
# print the JSON string representation of the object
28+
print(HostingV1GitGitInstallationResource.to_json())
29+
30+
# convert the object into a dict
31+
hosting_v1_git_git_installation_resource_dict = hosting_v1_git_git_installation_resource_instance.to_dict()
32+
# create an instance of HostingV1GitGitInstallationResource from a dict
33+
hosting_v1_git_git_installation_resource_from_dict = HostingV1GitGitInstallationResource.from_dict(hosting_v1_git_git_installation_resource_dict)
34+
```
35+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
36+
37+
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# HostingV1GitGitRepositoryResource
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**id** | **int** | Repository identifier assigned by the Git provider |
9+
**name** | **str** | Repository name without the .git suffix |
10+
**full_name** | **str** | Owner and repository name joined with a slash |
11+
**owner** | **str** | Repository owner login |
12+
**is_private** | **bool** | Whether the repository is private |
13+
**html_url** | **str** | Repository page URL |
14+
**clone_url** | **str** | HTTPS clone URL |
15+
**default_branch** | **str** | Default branch of the repository |
16+
17+
## Example
18+
19+
```python
20+
from hostinger_api.models.hosting_v1_git_git_repository_resource import HostingV1GitGitRepositoryResource
21+
22+
# TODO update the JSON string below
23+
json = "{}"
24+
# create an instance of HostingV1GitGitRepositoryResource from a JSON string
25+
hosting_v1_git_git_repository_resource_instance = HostingV1GitGitRepositoryResource.from_json(json)
26+
# print the JSON string representation of the object
27+
print(HostingV1GitGitRepositoryResource.to_json())
28+
29+
# convert the object into a dict
30+
hosting_v1_git_git_repository_resource_dict = hosting_v1_git_git_repository_resource_instance.to_dict()
31+
# create an instance of HostingV1GitGitRepositoryResource from a dict
32+
hosting_v1_git_git_repository_resource_from_dict = HostingV1GitGitRepositoryResource.from_dict(hosting_v1_git_git_repository_resource_dict)
33+
```
34+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
35+
36+

‎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: 1.52.0
8+
API Version: 1.52.1
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__ = "3.50.0"
15+
__version__ = "3.50.1"
1616

1717
# import apis into sdk package
1818
from hostinger_api.api.agency_hosting_cache_api import AgencyHostingCacheApi
@@ -56,6 +56,7 @@
5656
from hostinger_api.api.hosting_datacenters_api import HostingDatacentersApi
5757
from hostinger_api.api.hosting_domains_api import HostingDomainsApi
5858
from hostinger_api.api.hosting_files_api import HostingFilesApi
59+
from hostinger_api.api.hosting_git_api import HostingGitApi
5960
from hostinger_api.api.hosting_node_js_api import HostingNodeJSApi
6061
from hostinger_api.api.hosting_orders_api import HostingOrdersApi
6162
from hostinger_api.api.hosting_php_api import HostingPHPApi
@@ -363,6 +364,8 @@
363364
from hostinger_api.models.hosting_v1_files_files_resource_items_inner import HostingV1FilesFilesResourceItemsInner
364365
from hostinger_api.models.hosting_v1_files_generate_upload_url_request import HostingV1FilesGenerateUploadUrlRequest
365366
from hostinger_api.models.hosting_v1_files_upload_url_resource import HostingV1FilesUploadUrlResource
367+
from hostinger_api.models.hosting_v1_git_git_installation_resource import HostingV1GitGitInstallationResource
368+
from hostinger_api.models.hosting_v1_git_git_repository_resource import HostingV1GitGitRepositoryResource
366369
from hostinger_api.models.hosting_v1_node_js_build_analysis_resource import HostingV1NodeJsBuildAnalysisResource
367370
from hostinger_api.models.hosting_v1_node_js_build_logs_resource import HostingV1NodeJsBuildLogsResource
368371
from hostinger_api.models.hosting_v1_node_js_build_options_resource import HostingV1NodeJsBuildOptionsResource

‎hostinger_api/api/__init__.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
from hostinger_api.api.hosting_datacenters_api import HostingDatacentersApi
4343
from hostinger_api.api.hosting_domains_api import HostingDomainsApi
4444
from hostinger_api.api.hosting_files_api import HostingFilesApi
45+
from hostinger_api.api.hosting_git_api import HostingGitApi
4546
from hostinger_api.api.hosting_node_js_api import HostingNodeJSApi
4647
from hostinger_api.api.hosting_orders_api import HostingOrdersApi
4748
from hostinger_api.api.hosting_php_api import HostingPHPApi

‎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: 1.52.0
6+
API Version: 1.52.1
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: 1.52.0
6+
API Version: 1.52.1
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: 1.52.0
6+
API Version: 1.52.1
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: 1.52.0
6+
API Version: 1.52.1
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)