Skip to content

Commit cc7f4c8

Browse files
chore: sdk update
1 parent e399b0f commit cc7f4c8

1,042 files changed

Lines changed: 1045 additions & 1466 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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ Class | Method | HTTP request | Description
220220
*HostingFilesApi* | [**generate_upload_urlv1**](docs/HostingFilesApi.md#generate_upload_urlv1) | **POST** /api/hosting/v1/files/upload-urls | Generate upload URL
221221
*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
222222
*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
223-
*HostingNodeJSApi* | [**create_node_js_build_from_archive_v1**](docs/HostingNodeJSApi.md#create_node_js_build_from_archive_v1) | **POST** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archive | Create NodeJS build from archive
224223
*HostingNodeJSApi* | [**get_node_js_build_logs_v1**](docs/HostingNodeJSApi.md#get_node_js_build_logs_v1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/logs | Get NodeJS build logs
225224
*HostingNodeJSApi* | [**get_node_js_build_settings_from_archive_v1**](docs/HostingNodeJSApi.md#get_node_js_build_settings_from_archive_v1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-archive | Get Node.js build settings from archive
226225
*HostingNodeJSApi* | [**list_node_js_builds_v1**](docs/HostingNodeJSApi.md#list_node_js_builds_v1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds | List NodeJS builds

‎docs/HostingNodeJSApi.md‎

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

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**create_node_js_build_from_archive_v1**](HostingNodeJSApi.md#create_node_js_build_from_archive_v1) | **POST** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archive | Create NodeJS build from archive
87
[**get_node_js_build_logs_v1**](HostingNodeJSApi.md#get_node_js_build_logs_v1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/logs | Get NodeJS build logs
98
[**get_node_js_build_settings_from_archive_v1**](HostingNodeJSApi.md#get_node_js_build_settings_from_archive_v1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-archive | Get Node.js build settings from archive
109
[**list_node_js_builds_v1**](HostingNodeJSApi.md#list_node_js_builds_v1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds | List NodeJS builds
@@ -14,104 +13,6 @@ Method | HTTP request | Description
1413
[**start_node_js_build_v1**](HostingNodeJSApi.md#start_node_js_build_v1) | **POST** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds | Start Node.js build
1514

1615

17-
# **create_node_js_build_from_archive_v1**
18-
> HostingV1NodeJsBuildResource create_node_js_build_from_archive_v1(username, domain, hosting_v1_node_js_create_from_archive_request)
19-
20-
Create NodeJS build from archive
21-
22-
Upload a project archive, auto-detect build settings, and immediately start a Node.js build.
23-
24-
WARNING: on success this overwrites the website's existing contents and cannot be
25-
undone — verify this is intended before calling this endpoint.
26-
27-
This is the recommended single-step approach for deploying a Node.js application.
28-
The archive is uploaded to the website's file storage, build settings are auto-detected
29-
from the package.json inside the archive, and the build process starts automatically.
30-
Optional override fields take precedence over auto-detected values.
31-
Maximum archive size is 50MB.
32-
33-
Before archiving, exclude `node_modules/` and any build output directories
34-
(e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build
35-
process runs the install step automatically, and including them unnecessarily
36-
increases the archive size. This also helps keep the archive well under the 50MB limit.
37-
38-
Example (zip):
39-
```
40-
zip -r archive.zip . --exclude "node_modules/*" --exclude "dist/*"
41-
```
42-
43-
The returned build `uuid` can be used to poll progress and retrieve logs via
44-
the `Get Node.js Build Logs` endpoint.
45-
46-
### Example
47-
48-
* Bearer Authentication (apiToken):
49-
50-
```python
51-
import hostinger_api
52-
from hostinger_api.models.hosting_v1_node_js_build_resource import HostingV1NodeJsBuildResource
53-
from hostinger_api.models.hosting_v1_node_js_create_from_archive_request import HostingV1NodeJsCreateFromArchiveRequest
54-
from hostinger_api.rest import ApiException
55-
from pprint import pprint
56-
57-
58-
# Configure Bearer authorization: apiToken
59-
configuration = hostinger_api.Configuration(
60-
access_token = os.environ["BEARER_TOKEN"]
61-
)
62-
63-
# Enter a context with an instance of the API client
64-
with hostinger_api.ApiClient(configuration) as api_client:
65-
# Create an instance of the API class
66-
api_instance = hostinger_api.HostingNodeJSApi(api_client)
67-
username = 'u123456789' # str |
68-
domain = 'mydomain.tld' # str | Domain name
69-
hosting_v1_node_js_create_from_archive_request = hostinger_api.HostingV1NodeJsCreateFromArchiveRequest() # HostingV1NodeJsCreateFromArchiveRequest |
70-
71-
try:
72-
# Create NodeJS build from archive
73-
api_response = api_instance.create_node_js_build_from_archive_v1(username, domain, hosting_v1_node_js_create_from_archive_request)
74-
print("The response of HostingNodeJSApi->create_node_js_build_from_archive_v1:\n")
75-
pprint(api_response)
76-
except Exception as e:
77-
print("Exception when calling HostingNodeJSApi->create_node_js_build_from_archive_v1: %s\n" % e)
78-
```
79-
80-
81-
82-
### Parameters
83-
84-
85-
Name | Type | Description | Notes
86-
------------- | ------------- | ------------- | -------------
87-
**username** | **str**| |
88-
**domain** | **str**| Domain name |
89-
**hosting_v1_node_js_create_from_archive_request** | [**HostingV1NodeJsCreateFromArchiveRequest**](HostingV1NodeJsCreateFromArchiveRequest.md)| |
90-
91-
### Return type
92-
93-
[**HostingV1NodeJsBuildResource**](HostingV1NodeJsBuildResource.md)
94-
95-
### Authorization
96-
97-
[apiToken](../README.md#apiToken)
98-
99-
### HTTP request headers
100-
101-
- **Content-Type**: application/json
102-
- **Accept**: application/json
103-
104-
### HTTP response details
105-
106-
| Status code | Description | Response headers |
107-
|-------------|-------------|------------------|
108-
**200** | Success response | - |
109-
**422** | Validation error response | - |
110-
**401** | Unauthenticated response | - |
111-
**500** | Error response | - |
112-
113-
[[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)
114-
11516
# **get_node_js_build_logs_v1**
11617
> HostingV1NodeJsBuildLogsResource get_node_js_build_logs_v1(username, domain, uuid, from_line=from_line)
11718

‎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: 1.42.0
8+
API Version: 1.42.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.39.0"
15+
__version__ = "3.39.1"
1616

1717
# import apis into sdk package
1818
from hostinger_api.api.agency_hosting_cache_api import AgencyHostingCacheApi

‎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.42.0
6+
API Version: 1.42.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.42.0
6+
API Version: 1.42.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.42.0
6+
API Version: 1.42.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.42.0
6+
API Version: 1.42.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_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: 1.42.0
6+
API Version: 1.42.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_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: 1.42.0
6+
API Version: 1.42.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_metrics_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.42.0
6+
API Version: 1.42.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)