Skip to content

Commit da3e01e

Browse files
chore: sdk update
1 parent da1fa12 commit da3e01e

1,250 files changed

Lines changed: 1495 additions & 1264 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,7 @@ Class | Method | HTTP request | Description
704704
- [HorizonsV1WebsitesCreatedWebsiteResource](docs/HorizonsV1WebsitesCreatedWebsiteResource.md)
705705
- [HorizonsV1WebsitesEditWebsiteRequest](docs/HorizonsV1WebsitesEditWebsiteRequest.md)
706706
- [HorizonsV1WebsitesEditWebsiteRequestMessageInner](docs/HorizonsV1WebsitesEditWebsiteRequestMessageInner.md)
707+
- [HorizonsV1WebsitesPublishWebsiteRequest](docs/HorizonsV1WebsitesPublishWebsiteRequest.md)
707708
- [HorizonsV1WebsitesPublishedWebsiteResource](docs/HorizonsV1WebsitesPublishedWebsiteResource.md)
708709
- [HorizonsV1WebsitesWebsiteResource](docs/HorizonsV1WebsitesWebsiteResource.md)
709710
- [HorizonsV1WebsitesWebsiteUrlResource](docs/HorizonsV1WebsitesWebsiteUrlResource.md)
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# HorizonsV1WebsitesPublishWebsiteRequest
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**is_template** | **bool** | Set to true to publish the website as a template: its published pages show a \"Use template\" banner that copies the website into the visitor's own account. Set to false to remove the banner. Leave it out to keep the current setting. | [optional]
9+
10+
## Example
11+
12+
```python
13+
from hostinger_api.models.horizons_v1_websites_publish_website_request import HorizonsV1WebsitesPublishWebsiteRequest
14+
15+
# TODO update the JSON string below
16+
json = "{}"
17+
# create an instance of HorizonsV1WebsitesPublishWebsiteRequest from a JSON string
18+
horizons_v1_websites_publish_website_request_instance = HorizonsV1WebsitesPublishWebsiteRequest.from_json(json)
19+
# print the JSON string representation of the object
20+
print(HorizonsV1WebsitesPublishWebsiteRequest.to_json())
21+
22+
# convert the object into a dict
23+
horizons_v1_websites_publish_website_request_dict = horizons_v1_websites_publish_website_request_instance.to_dict()
24+
# create an instance of HorizonsV1WebsitesPublishWebsiteRequest from a dict
25+
horizons_v1_websites_publish_website_request_from_dict = HorizonsV1WebsitesPublishWebsiteRequest.from_dict(horizons_v1_websites_publish_website_request_dict)
26+
```
27+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
28+
29+

‎docs/HorizonsV1WebsitesWebsiteUrlResource.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**website_url** | **str** | The website URL for the user to access their website in Hostinger Horizons interface |
9+
**published_at** | **datetime** | When the website was last published, or null if it has never been published | [optional]
10+
**is_template** | **bool** | Whether the website is published as a template, so its published pages show a \"Use template\" banner | [optional]
11+
**is_in_progress** | **bool** | Whether Hostinger Horizons is still generating changes or publishing the website. Publishing is refused while it is true, and editing while changes are being generated. An unfinished template migration also refuses publishing, with its own error, without setting this flag. | [optional]
12+
**has_ecommerce_store** | **bool** | Whether the website has an ecommerce store | [optional]
913

1014
## Example
1115

‎docs/HorizonsWebsitesApi.md‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,10 @@ Get website
356356
Get the link for the user to open their website in Hostinger Horizons interface.\n
357357
Use this tool when the user wants the link to an existing website, or when you need its
358358
website URL before or after editing it.\n
359+
`is_in_progress` is true while changes are being generated or the website is being published;
360+
wait until it is false before publishing. `published_at` is when the website was last published,
361+
`is_template` is whether its published pages show the "Use template" banner, and
362+
`has_ecommerce_store` is whether it has an online store.\n
359363
Websites can be edited with the `Edit website` tool, or by the user in Hostinger Horizons
360364
interface in the provided website URL.
361365

@@ -423,14 +427,17 @@ Name | Type | Description | Notes
423427
[[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)
424428

425429
# **publish_website_v1**
426-
> HorizonsV1WebsitesPublishedWebsiteResource publish_website_v1(website_id)
430+
> HorizonsV1WebsitesPublishedWebsiteResource publish_website_v1(website_id, horizons_v1_websites_publish_website_request=horizons_v1_websites_publish_website_request)
427431
428432
Publish website
429433

430434
Publish a Hostinger Horizons website so its latest changes go live.\n
431435
Use this tool when the user asks to publish, deploy or make their website live.\n
432436
This tool starts the publish process and returns the URL the website will be live on.
433437
Publishing happens asynchronously and takes a few minutes.\n
438+
Set `is_template` only when the user explicitly asks to share the website as a template:
439+
true adds a "Use template" banner to its published pages that copies the website into the
440+
visitor's own account, and false removes it. Leave it out to keep the current setting.\n
434441
After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing
435442
that the website is being published and you should provide the published URL to the user immediately.
436443

@@ -440,6 +447,7 @@ that the website is being published and you should provide the published URL to
440447

441448
```python
442449
import hostinger_api
450+
from hostinger_api.models.horizons_v1_websites_publish_website_request import HorizonsV1WebsitesPublishWebsiteRequest
443451
from hostinger_api.models.horizons_v1_websites_published_website_resource import HorizonsV1WebsitesPublishedWebsiteResource
444452
from hostinger_api.rest import ApiException
445453
from pprint import pprint
@@ -455,10 +463,11 @@ with hostinger_api.ApiClient(configuration) as api_client:
455463
# Create an instance of the API class
456464
api_instance = hostinger_api.HorizonsWebsitesApi(api_client)
457465
website_id = '123e4567-e89b-12d3-a456-426614174000' # str | The website ID
466+
horizons_v1_websites_publish_website_request = hostinger_api.HorizonsV1WebsitesPublishWebsiteRequest() # HorizonsV1WebsitesPublishWebsiteRequest | (optional)
458467

459468
try:
460469
# Publish website
461-
api_response = api_instance.publish_website_v1(website_id)
470+
api_response = api_instance.publish_website_v1(website_id, horizons_v1_websites_publish_website_request=horizons_v1_websites_publish_website_request)
462471
print("The response of HorizonsWebsitesApi->publish_website_v1:\n")
463472
pprint(api_response)
464473
except Exception as e:
@@ -473,6 +482,7 @@ with hostinger_api.ApiClient(configuration) as api_client:
473482
Name | Type | Description | Notes
474483
------------- | ------------- | ------------- | -------------
475484
**website_id** | **str**| The website ID |
485+
**horizons_v1_websites_publish_website_request** | [**HorizonsV1WebsitesPublishWebsiteRequest**](HorizonsV1WebsitesPublishWebsiteRequest.md)| | [optional]
476486

477487
### Return type
478488

@@ -484,14 +494,15 @@ Name | Type | Description | Notes
484494

485495
### HTTP request headers
486496

487-
- **Content-Type**: Not defined
497+
- **Content-Type**: application/json
488498
- **Accept**: application/json
489499

490500
### HTTP response details
491501

492502
| Status code | Description | Response headers |
493503
|-------------|-------------|------------------|
494504
**200** | Success response | - |
505+
**422** | Validation error response | - |
495506
**401** | Unauthenticated response | - |
496507
**500** | Error response | - |
497508

‎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: 1.59.0
8+
API Version: 1.60.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.57.0"
15+
__version__ = "3.58.0"
1616

1717
# import apis into sdk package
1818
from hostinger_api.api.agency_hosting_cache_api import AgencyHostingCacheApi
@@ -334,6 +334,7 @@
334334
from hostinger_api.models.horizons_v1_websites_created_website_resource import HorizonsV1WebsitesCreatedWebsiteResource
335335
from hostinger_api.models.horizons_v1_websites_edit_website_request import HorizonsV1WebsitesEditWebsiteRequest
336336
from hostinger_api.models.horizons_v1_websites_edit_website_request_message_inner import HorizonsV1WebsitesEditWebsiteRequestMessageInner
337+
from hostinger_api.models.horizons_v1_websites_publish_website_request import HorizonsV1WebsitesPublishWebsiteRequest
337338
from hostinger_api.models.horizons_v1_websites_published_website_resource import HorizonsV1WebsitesPublishedWebsiteResource
338339
from hostinger_api.models.horizons_v1_websites_website_resource import HorizonsV1WebsitesWebsiteResource
339340
from hostinger_api.models.horizons_v1_websites_website_url_resource import HorizonsV1WebsitesWebsiteUrlResource

‎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.59.0
6+
API Version: 1.60.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.59.0
6+
API Version: 1.60.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.59.0
6+
API Version: 1.60.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: 1.59.0
6+
API Version: 1.60.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: 1.59.0
6+
API Version: 1.60.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)