Skip to content

Commit 15b323f

Browse files
chore: sdk update
1 parent 43ad2af commit 15b323f

641 files changed

Lines changed: 1208 additions & 641 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ Class | Method | HTTP request | Description
179179
*HostingPHPApi* | [**update_php_options_v1**](docs/HostingPHPApi.md#update_php_options_v1) | **PATCH** /api/hosting/v1/accounts/{username}/websites/{domain}/php/options | Update PHP options
180180
*HostingPHPApi* | [**update_php_version_v1**](docs/HostingPHPApi.md#update_php_version_v1) | **PATCH** /api/hosting/v1/accounts/{username}/websites/{domain}/php/version | Update PHP version
181181
*HostingWebsitesApi* | [**create_website_v1**](docs/HostingWebsitesApi.md#create_website_v1) | **POST** /api/hosting/v1/websites | Create website
182+
*HostingWebsitesApi* | [**delete_website_v1**](docs/HostingWebsitesApi.md#delete_website_v1) | **DELETE** /api/hosting/v1/websites/{domain} | Delete website
182183
*HostingWebsitesApi* | [**list_websites_v1**](docs/HostingWebsitesApi.md#list_websites_v1) | **GET** /api/hosting/v1/websites | List websites
183184
*ReachContactsApi* | [**create_a_new_contact_v1**](docs/ReachContactsApi.md#create_a_new_contact_v1) | **POST** /api/reach/v1/contacts | Create a new contact
184185
*ReachContactsApi* | [**create_new_contacts_v1**](docs/ReachContactsApi.md#create_new_contacts_v1) | **POST** /api/reach/v1/profiles/{profileUuid}/contacts | Create new contacts
@@ -447,6 +448,7 @@ Class | Method | HTTP request | Description
447448
- [HostingV1PhpUpdatePhpOptionsRequestOptionsValue](docs/HostingV1PhpUpdatePhpOptionsRequestOptionsValue.md)
448449
- [HostingV1PhpUpdatePhpVersionRequest](docs/HostingV1PhpUpdatePhpVersionRequest.md)
449450
- [HostingV1WebsitesCreateWebsiteRequest](docs/HostingV1WebsitesCreateWebsiteRequest.md)
451+
- [HostingV1WebsitesDeleteWebsiteRequest](docs/HostingV1WebsitesDeleteWebsiteRequest.md)
450452
- [HostingV1WebsitesWebsiteResource](docs/HostingV1WebsitesWebsiteResource.md)
451453
- [InlineObject](docs/InlineObject.md)
452454
- [InlineObject1](docs/InlineObject1.md)
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# HostingV1WebsitesDeleteWebsiteRequest
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**confirm** | **bool** | Must be boolean true to confirm the permanent deletion of the website. |
9+
10+
## Example
11+
12+
```python
13+
from hostinger_api.models.hosting_v1_websites_delete_website_request import HostingV1WebsitesDeleteWebsiteRequest
14+
15+
# TODO update the JSON string below
16+
json = "{}"
17+
# create an instance of HostingV1WebsitesDeleteWebsiteRequest from a JSON string
18+
hosting_v1_websites_delete_website_request_instance = HostingV1WebsitesDeleteWebsiteRequest.from_json(json)
19+
# print the JSON string representation of the object
20+
print(HostingV1WebsitesDeleteWebsiteRequest.to_json())
21+
22+
# convert the object into a dict
23+
hosting_v1_websites_delete_website_request_dict = hosting_v1_websites_delete_website_request_instance.to_dict()
24+
# create an instance of HostingV1WebsitesDeleteWebsiteRequest from a dict
25+
hosting_v1_websites_delete_website_request_from_dict = HostingV1WebsitesDeleteWebsiteRequest.from_dict(hosting_v1_websites_delete_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/HostingWebsitesApi.md‎

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All URIs are relative to *https://developers.hostinger.com*
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**create_website_v1**](HostingWebsitesApi.md#create_website_v1) | **POST** /api/hosting/v1/websites | Create website
8+
[**delete_website_v1**](HostingWebsitesApi.md#delete_website_v1) | **DELETE** /api/hosting/v1/websites/{domain} | Delete website
89
[**list_websites_v1**](HostingWebsitesApi.md#list_websites_v1) | **GET** /api/hosting/v1/websites | List websites
910

1011

@@ -90,6 +91,98 @@ Name | Type | Description | Notes
9091

9192
[[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)
9293

94+
# **delete_website_v1**
95+
> CommonSuccessEmptyResource delete_website_v1(domain, hosting_v1_websites_delete_website_request)
96+
97+
Delete website
98+
99+
Permanently deletes a website and all of its data. This action is destructive
100+
and cannot be undone. Always ask the user for explicit confirmation before
101+
calling this endpoint.
102+
103+
All website files, databases and related configuration will be removed.
104+
The hosting plan itself is kept, so a new website can be created on it afterwards.
105+
106+
The confirm field must be boolean true, otherwise the request is rejected.
107+
108+
Supported websites: main and addon domain websites on web hosting plans, and
109+
Website Builder websites. Parked domains and subdomains cannot be deleted with
110+
this endpoint. The domain must be the exact website domain, not a preview
111+
domain or an alias.
112+
113+
Returns 404 when the domain does not exist or does not belong to the
114+
authenticated client.
115+
116+
Website removal is processed asynchronously and can take a few minutes to
117+
complete. The response returns before the removal finishes.
118+
119+
### Example
120+
121+
* Bearer Authentication (apiToken):
122+
123+
```python
124+
import hostinger_api
125+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
126+
from hostinger_api.models.hosting_v1_websites_delete_website_request import HostingV1WebsitesDeleteWebsiteRequest
127+
from hostinger_api.rest import ApiException
128+
from pprint import pprint
129+
130+
131+
# Configure Bearer authorization: apiToken
132+
configuration = hostinger_api.Configuration(
133+
access_token = os.environ["BEARER_TOKEN"]
134+
)
135+
136+
# Enter a context with an instance of the API client
137+
with hostinger_api.ApiClient(configuration) as api_client:
138+
# Create an instance of the API class
139+
api_instance = hostinger_api.HostingWebsitesApi(api_client)
140+
domain = 'mydomain.tld' # str | Domain name
141+
hosting_v1_websites_delete_website_request = hostinger_api.HostingV1WebsitesDeleteWebsiteRequest() # HostingV1WebsitesDeleteWebsiteRequest |
142+
143+
try:
144+
# Delete website
145+
api_response = api_instance.delete_website_v1(domain, hosting_v1_websites_delete_website_request)
146+
print("The response of HostingWebsitesApi->delete_website_v1:\n")
147+
pprint(api_response)
148+
except Exception as e:
149+
print("Exception when calling HostingWebsitesApi->delete_website_v1: %s\n" % e)
150+
```
151+
152+
153+
154+
### Parameters
155+
156+
157+
Name | Type | Description | Notes
158+
------------- | ------------- | ------------- | -------------
159+
**domain** | **str**| Domain name |
160+
**hosting_v1_websites_delete_website_request** | [**HostingV1WebsitesDeleteWebsiteRequest**](HostingV1WebsitesDeleteWebsiteRequest.md)| |
161+
162+
### Return type
163+
164+
[**CommonSuccessEmptyResource**](CommonSuccessEmptyResource.md)
165+
166+
### Authorization
167+
168+
[apiToken](../README.md#apiToken)
169+
170+
### HTTP request headers
171+
172+
- **Content-Type**: application/json
173+
- **Accept**: application/json
174+
175+
### HTTP response details
176+
177+
| Status code | Description | Response headers |
178+
|-------------|-------------|------------------|
179+
**200** | Success empty response | - |
180+
**422** | Validation error response | - |
181+
**401** | Unauthenticated response | - |
182+
**500** | Error response | - |
183+
184+
[[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)
185+
93186
# **list_websites_v1**
94187
> HostingListWebsitesV1200Response list_websites_v1(page=page, per_page=per_page, username=username, order_id=order_id, is_enabled=is_enabled, domain=domain)
95188

‎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.6.2
8+
API Version: 1.7.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.4.3"
15+
__version__ = "3.5.0"
1616

1717
# import apis into sdk package
1818
from hostinger_api.api.agency_hosting_datacenters_api import AgencyHostingDatacentersApi
@@ -237,6 +237,7 @@
237237
from hostinger_api.models.hosting_v1_php_update_php_options_request_options_value import HostingV1PhpUpdatePhpOptionsRequestOptionsValue
238238
from hostinger_api.models.hosting_v1_php_update_php_version_request import HostingV1PhpUpdatePhpVersionRequest
239239
from hostinger_api.models.hosting_v1_websites_create_website_request import HostingV1WebsitesCreateWebsiteRequest
240+
from hostinger_api.models.hosting_v1_websites_delete_website_request import HostingV1WebsitesDeleteWebsiteRequest
240241
from hostinger_api.models.hosting_v1_websites_website_resource import HostingV1WebsitesWebsiteResource
241242
from hostinger_api.models.inline_object import InlineObject
242243
from hostinger_api.models.inline_object1 import InlineObject1

‎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.6.2
6+
API Version: 1.7.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.6.2
6+
API Version: 1.7.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_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.6.2
6+
API Version: 1.7.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_website_setups_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.6.2
6+
API Version: 1.7.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_websites_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.6.2
6+
API Version: 1.7.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/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: 1.6.2
6+
API Version: 1.7.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)