Skip to content

Commit da1fa12

Browse files
chore: sdk update
1 parent 381f484 commit da1fa12

1,250 files changed

Lines changed: 2303 additions & 1257 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
@@ -289,6 +289,7 @@ Class | Method | HTTP request | Description
289289
*HostingWebsitesApi* | [**deploy_static_site_archive_v1**](docs/HostingWebsitesApi.md#deploy_static_site_archive_v1) | **POST** /api/hosting/v1/accounts/{username}/websites/{domain}/deploy | Deploy static site archive
290290
*HostingWebsitesApi* | [**list_website_setups_v1**](docs/HostingWebsitesApi.md#list_website_setups_v1) | **GET** /api/hosting/v1/onboardings | List website setups
291291
*HostingWebsitesApi* | [**list_websites_v1**](docs/HostingWebsitesApi.md#list_websites_v1) | **GET** /api/hosting/v1/websites | List websites
292+
*HostingWebsitesApi* | [**start_website_setup_v1**](docs/HostingWebsitesApi.md#start_website_setup_v1) | **POST** /api/hosting/v1/orders/{order_id}/onboardings | Start website setup
292293
*MailAPITokensApi* | [**create_api_token_v1**](docs/MailAPITokensApi.md#create_api_token_v1) | **POST** /api/mail/v1/orders/{orderId}/api-tokens | Create API token
293294
*MailAPITokensApi* | [**list_api_tokens_v1**](docs/MailAPITokensApi.md#list_api_tokens_v1) | **GET** /api/mail/v1/api-tokens | List API tokens
294295
*MailAPITokensApi* | [**revoke_api_token_v1**](docs/MailAPITokensApi.md#revoke_api_token_v1) | **DELETE** /api/mail/v1/api-tokens/{tokenId} | Revoke API token
@@ -772,6 +773,9 @@ Class | Method | HTTP request | Description
772773
- [HostingV1NodeJsUpdateBuildSettingsRequest](docs/HostingV1NodeJsUpdateBuildSettingsRequest.md)
773774
- [HostingV1NodeJsVulnerabilityResource](docs/HostingV1NodeJsVulnerabilityResource.md)
774775
- [HostingV1OnboardingsOnboardingResource](docs/HostingV1OnboardingsOnboardingResource.md)
776+
- [HostingV1OnboardingsStartOnboardingRequest](docs/HostingV1OnboardingsStartOnboardingRequest.md)
777+
- [HostingV1OnboardingsStartOnboardingRequestWordpress](docs/HostingV1OnboardingsStartOnboardingRequestWordpress.md)
778+
- [HostingV1OnboardingsStartOnboardingRequestWordpressAdmin](docs/HostingV1OnboardingsStartOnboardingRequestWordpressAdmin.md)
775779
- [HostingV1OrdersOrderResource](docs/HostingV1OrdersOrderResource.md)
776780
- [HostingV1OrdersPlanResource](docs/HostingV1OrdersPlanResource.md)
777781
- [HostingV1PhpPhpDetailsResource](docs/HostingV1PhpPhpDetailsResource.md)

‎docs/HostingV1OnboardingsOnboardingResource.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**domain** | **str** | Domain of the website being set up. |
99
**username** | **str** | Hosting account username. |
10+
**type** | **str** | Website type requested for the setup: `wordpress`, `headless_wordpress`, `headless_ecommerce` or `headless_pocketbase`. `null` for an empty website. Setups started outside this API may report other legacy types. | [optional]
1011
**status** | **str** | `running` while the website is still being set up, `completed` once the setup has finished, `failed` when it stopped before finishing or has not reported progress for over an hour. |
1112
**created_at** | **datetime** | When the setup was requested. |
1213
**updated_at** | **datetime** | When the setup last reported progress. |
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# HostingV1OnboardingsStartOnboardingRequest
2+
3+
Website type, domain and WordPress settings for a new website setup
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**type** | **str** | Website type. Omit or `null` for an empty website. `wordpress` installs WordPress in the website root and requires `wordpress`. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory with generated credentials. | [optional]
10+
**domain** | **str** | Customer-owned domain. Cannot start with \"www.\". Omit or `null` to set the website up on a generated temporary free subdomain. | [optional]
11+
**wordpress** | [**HostingV1OnboardingsStartOnboardingRequestWordpress**](HostingV1OnboardingsStartOnboardingRequestWordpress.md) | | [optional]
12+
13+
## Example
14+
15+
```python
16+
from hostinger_api.models.hosting_v1_onboardings_start_onboarding_request import HostingV1OnboardingsStartOnboardingRequest
17+
18+
# TODO update the JSON string below
19+
json = "{}"
20+
# create an instance of HostingV1OnboardingsStartOnboardingRequest from a JSON string
21+
hosting_v1_onboardings_start_onboarding_request_instance = HostingV1OnboardingsStartOnboardingRequest.from_json(json)
22+
# print the JSON string representation of the object
23+
print(HostingV1OnboardingsStartOnboardingRequest.to_json())
24+
25+
# convert the object into a dict
26+
hosting_v1_onboardings_start_onboarding_request_dict = hosting_v1_onboardings_start_onboarding_request_instance.to_dict()
27+
# create an instance of HostingV1OnboardingsStartOnboardingRequest from a dict
28+
hosting_v1_onboardings_start_onboarding_request_from_dict = HostingV1OnboardingsStartOnboardingRequest.from_dict(hosting_v1_onboardings_start_onboarding_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+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# HostingV1OnboardingsStartOnboardingRequestWordpress
2+
3+
WordPress install settings. Required when `type` is `wordpress`, not allowed otherwise. The site title is the domain.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**language** | **str** | WordPress locale, for example `en_US` or `lt_LT`. Defaults to `en_US` when omitted. | [optional]
10+
**is_ai_builder** | **bool** | When `true`, installs the Hostinger AI theme (`hostinger-ai-theme`). Defaults to `false` when omitted. | [optional]
11+
**admin** | [**HostingV1OnboardingsStartOnboardingRequestWordpressAdmin**](HostingV1OnboardingsStartOnboardingRequestWordpressAdmin.md) | |
12+
13+
## Example
14+
15+
```python
16+
from hostinger_api.models.hosting_v1_onboardings_start_onboarding_request_wordpress import HostingV1OnboardingsStartOnboardingRequestWordpress
17+
18+
# TODO update the JSON string below
19+
json = "{}"
20+
# create an instance of HostingV1OnboardingsStartOnboardingRequestWordpress from a JSON string
21+
hosting_v1_onboardings_start_onboarding_request_wordpress_instance = HostingV1OnboardingsStartOnboardingRequestWordpress.from_json(json)
22+
# print the JSON string representation of the object
23+
print(HostingV1OnboardingsStartOnboardingRequestWordpress.to_json())
24+
25+
# convert the object into a dict
26+
hosting_v1_onboardings_start_onboarding_request_wordpress_dict = hosting_v1_onboardings_start_onboarding_request_wordpress_instance.to_dict()
27+
# create an instance of HostingV1OnboardingsStartOnboardingRequestWordpress from a dict
28+
hosting_v1_onboardings_start_onboarding_request_wordpress_from_dict = HostingV1OnboardingsStartOnboardingRequestWordpress.from_dict(hosting_v1_onboardings_start_onboarding_request_wordpress_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+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# HostingV1OnboardingsStartOnboardingRequestWordpressAdmin
2+
3+
WordPress administrator account
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**user** | **str** | WordPress admin username (letters, numbers, and underscore) |
10+
**password** | **str** | WordPress admin password (8-50 characters, mixed case, a digit, and not compromised) |
11+
**email** | **str** | WordPress admin email address |
12+
13+
## Example
14+
15+
```python
16+
from hostinger_api.models.hosting_v1_onboardings_start_onboarding_request_wordpress_admin import HostingV1OnboardingsStartOnboardingRequestWordpressAdmin
17+
18+
# TODO update the JSON string below
19+
json = "{}"
20+
# create an instance of HostingV1OnboardingsStartOnboardingRequestWordpressAdmin from a JSON string
21+
hosting_v1_onboardings_start_onboarding_request_wordpress_admin_instance = HostingV1OnboardingsStartOnboardingRequestWordpressAdmin.from_json(json)
22+
# print the JSON string representation of the object
23+
print(HostingV1OnboardingsStartOnboardingRequestWordpressAdmin.to_json())
24+
25+
# convert the object into a dict
26+
hosting_v1_onboardings_start_onboarding_request_wordpress_admin_dict = hosting_v1_onboardings_start_onboarding_request_wordpress_admin_instance.to_dict()
27+
# create an instance of HostingV1OnboardingsStartOnboardingRequestWordpressAdmin from a dict
28+
hosting_v1_onboardings_start_onboarding_request_wordpress_admin_from_dict = HostingV1OnboardingsStartOnboardingRequestWordpressAdmin.from_dict(hosting_v1_onboardings_start_onboarding_request_wordpress_admin_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+

‎docs/HostingWebsitesApi.md‎

Lines changed: 112 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Method | HTTP request | Description
99
[**deploy_static_site_archive_v1**](HostingWebsitesApi.md#deploy_static_site_archive_v1) | **POST** /api/hosting/v1/accounts/{username}/websites/{domain}/deploy | Deploy static site archive
1010
[**list_website_setups_v1**](HostingWebsitesApi.md#list_website_setups_v1) | **GET** /api/hosting/v1/onboardings | List website setups
1111
[**list_websites_v1**](HostingWebsitesApi.md#list_websites_v1) | **GET** /api/hosting/v1/websites | List websites
12+
[**start_website_setup_v1**](HostingWebsitesApi.md#start_website_setup_v1) | **POST** /api/hosting/v1/orders/{order_id}/onboardings | Start website setup
1213

1314

1415
# **create_website_v1**
@@ -277,21 +278,25 @@ Name | Type | Description | Notes
277278
[[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)
278279

279280
# **list_website_setups_v1**
280-
> List[HostingV1OnboardingsOnboardingResource] list_website_setups_v1(domain=domain)
281+
> List[HostingV1OnboardingsOnboardingResource] list_website_setups_v1(order_id=order_id, subscription_id=subscription_id, domain=domain)
281282
282283
List website setups
283284

284285
Returns the website setups started in the last 24 hours for the hosting accounts
285-
accessible to the authenticated client, newest first.
286-
287-
Meant for polling right after creating a website: the website shows up in the
288-
websites list before its server-side setup has finished, and while the setup is
289-
`running` endpoints that operate on that website may respond with `404` or `409`.
290-
Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for
291-
`status: completed` before uploading files, deploying or creating databases.
286+
accessible to the authenticated client, newest first. Narrow the list with the
287+
`order_id`, `subscription_id` or `domain` filters.
288+
289+
Meant for polling right after creating a website or starting a website setup: the
290+
website shows up in the websites list before its server-side setup has finished, and
291+
while the setup is `running` endpoints that operate on that website may respond with
292+
`404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and
293+
wait for `status: completed` before uploading files, deploying or creating databases.
292294
`failed` means the setup stopped before finishing or has not reported progress for
293295
over an hour. Setups older than 24 hours are not listed.
294296

297+
`type` is the website type the setup was started with (`wordpress`, `headless_wordpress`,
298+
`headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
299+
295300
### Example
296301

297302
* Bearer Authentication (apiToken):
@@ -312,11 +317,13 @@ configuration = hostinger_api.Configuration(
312317
with hostinger_api.ApiClient(configuration) as api_client:
313318
# Create an instance of the API class
314319
api_instance = hostinger_api.HostingWebsitesApi(api_client)
320+
order_id = 123 # int | Order ID (optional)
321+
subscription_id = 'sub_abc123' # str | Filter by hosting order subscription ID (optional)
315322
domain = 'example.com' # str | Filter by domain name (exact match) (optional)
316323

317324
try:
318325
# List website setups
319-
api_response = api_instance.list_website_setups_v1(domain=domain)
326+
api_response = api_instance.list_website_setups_v1(order_id=order_id, subscription_id=subscription_id, domain=domain)
320327
print("The response of HostingWebsitesApi->list_website_setups_v1:\n")
321328
pprint(api_response)
322329
except Exception as e:
@@ -330,6 +337,8 @@ with hostinger_api.ApiClient(configuration) as api_client:
330337

331338
Name | Type | Description | Notes
332339
------------- | ------------- | ------------- | -------------
340+
**order_id** | **int**| Order ID | [optional]
341+
**subscription_id** | **str**| Filter by hosting order subscription ID | [optional]
333342
**domain** | **str**| Filter by domain name (exact match) | [optional]
334343

335344
### Return type
@@ -460,3 +469,97 @@ Name | Type | Description | Notes
460469

461470
[[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)
462471

472+
# **start_website_setup_v1**
473+
> HostingV1OnboardingsOnboardingResource start_website_setup_v1(order_id, hosting_v1_onboardings_start_onboarding_request)
474+
475+
Start website setup
476+
477+
Starts a website setup on a Web or Cloud hosting order and returns the created setup
478+
right away; the website itself is provisioned asynchronously. Poll the list website
479+
setups endpoint with the `domain` filter every 10 to 15 seconds and wait for
480+
`status: completed` before uploading files, deploying or creating databases.
481+
482+
Omit `type` for an empty website. `type: wordpress` installs WordPress in the website
483+
root with the admin user, email and password from `wordpress`, the domain as the site
484+
title, and `en_US` when `wordpress.language` is omitted. The headless types
485+
(`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless
486+
website; `headless_wordpress` additionally installs WordPress into the `cms` directory
487+
of the website root with generated credentials.
488+
489+
Omit `domain` to set the website up on a generated temporary free subdomain.
490+
491+
The order must already have a hosting account: to create the first website on a new
492+
hosting plan use the create website endpoint, which takes the `datacenter_code`.
493+
Returns 404 when the order does not exist or is not accessible to the authenticated
494+
client, and 409 with a `Retry-After` header while a setup for the same domain is still
495+
running.
496+
497+
### Example
498+
499+
* Bearer Authentication (apiToken):
500+
501+
```python
502+
import hostinger_api
503+
from hostinger_api.models.hosting_v1_onboardings_onboarding_resource import HostingV1OnboardingsOnboardingResource
504+
from hostinger_api.models.hosting_v1_onboardings_start_onboarding_request import HostingV1OnboardingsStartOnboardingRequest
505+
from hostinger_api.rest import ApiException
506+
from pprint import pprint
507+
508+
509+
# Configure Bearer authorization: apiToken
510+
configuration = hostinger_api.Configuration(
511+
access_token = os.environ["BEARER_TOKEN"]
512+
)
513+
514+
# Enter a context with an instance of the API client
515+
with hostinger_api.ApiClient(configuration) as api_client:
516+
# Create an instance of the API class
517+
api_instance = hostinger_api.HostingWebsitesApi(api_client)
518+
order_id = 12345 # int | Hosting order ID. List orders to find available IDs.
519+
hosting_v1_onboardings_start_onboarding_request = hostinger_api.HostingV1OnboardingsStartOnboardingRequest() # HostingV1OnboardingsStartOnboardingRequest |
520+
521+
try:
522+
# Start website setup
523+
api_response = api_instance.start_website_setup_v1(order_id, hosting_v1_onboardings_start_onboarding_request)
524+
print("The response of HostingWebsitesApi->start_website_setup_v1:\n")
525+
pprint(api_response)
526+
except Exception as e:
527+
print("Exception when calling HostingWebsitesApi->start_website_setup_v1: %s\n" % e)
528+
```
529+
530+
531+
532+
### Parameters
533+
534+
535+
Name | Type | Description | Notes
536+
------------- | ------------- | ------------- | -------------
537+
**order_id** | **int**| Hosting order ID. List orders to find available IDs. |
538+
**hosting_v1_onboardings_start_onboarding_request** | [**HostingV1OnboardingsStartOnboardingRequest**](HostingV1OnboardingsStartOnboardingRequest.md)| |
539+
540+
### Return type
541+
542+
[**HostingV1OnboardingsOnboardingResource**](HostingV1OnboardingsOnboardingResource.md)
543+
544+
### Authorization
545+
546+
[apiToken](../README.md#apiToken)
547+
548+
### HTTP request headers
549+
550+
- **Content-Type**: application/json
551+
- **Accept**: application/json
552+
553+
### HTTP response details
554+
555+
| Status code | Description | Response headers |
556+
|-------------|-------------|------------------|
557+
**201** | Created response | - |
558+
**422** | Validation error response | - |
559+
**401** | Unauthenticated response | - |
560+
**404** | Error response | - |
561+
**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> |
562+
**500** | Error response | - |
563+
564+
[[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)
565+

‎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.58.3
8+
API Version: 1.59.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__ = "3.56.3"
15+
__version__ = "3.57.0"
1616

1717
# import apis into sdk package
1818
from hostinger_api.api.agency_hosting_cache_api import AgencyHostingCacheApi
@@ -403,6 +403,9 @@
403403
from hostinger_api.models.hosting_v1_node_js_update_build_settings_request import HostingV1NodeJsUpdateBuildSettingsRequest
404404
from hostinger_api.models.hosting_v1_node_js_vulnerability_resource import HostingV1NodeJsVulnerabilityResource
405405
from hostinger_api.models.hosting_v1_onboardings_onboarding_resource import HostingV1OnboardingsOnboardingResource
406+
from hostinger_api.models.hosting_v1_onboardings_start_onboarding_request import HostingV1OnboardingsStartOnboardingRequest
407+
from hostinger_api.models.hosting_v1_onboardings_start_onboarding_request_wordpress import HostingV1OnboardingsStartOnboardingRequestWordpress
408+
from hostinger_api.models.hosting_v1_onboardings_start_onboarding_request_wordpress_admin import HostingV1OnboardingsStartOnboardingRequestWordpressAdmin
406409
from hostinger_api.models.hosting_v1_orders_order_resource import HostingV1OrdersOrderResource
407410
from hostinger_api.models.hosting_v1_orders_plan_resource import HostingV1OrdersPlanResource
408411
from hostinger_api.models.hosting_v1_php_php_details_resource import HostingV1PhpPhpDetailsResource

‎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.58.3
6+
API Version: 1.59.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: 1.58.3
6+
API Version: 1.59.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: 1.58.3
6+
API Version: 1.59.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)