Skip to content

Commit eda3fd3

Browse files
chore: sdk update
1 parent ddc3034 commit eda3fd3

713 files changed

Lines changed: 1627 additions & 713 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,9 @@ Class | Method | HTTP request | Description
198198
*HostingWebsitesApi* | [**create_website_v1**](docs/HostingWebsitesApi.md#create_website_v1) | **POST** /api/hosting/v1/websites | Create website
199199
*HostingWebsitesApi* | [**delete_website_v1**](docs/HostingWebsitesApi.md#delete_website_v1) | **DELETE** /api/hosting/v1/websites/{domain} | Delete website
200200
*HostingWebsitesApi* | [**list_websites_v1**](docs/HostingWebsitesApi.md#list_websites_v1) | **GET** /api/hosting/v1/websites | List websites
201+
*MailMailboxesApi* | [**change_mailbox_password_v1**](docs/MailMailboxesApi.md#change_mailbox_password_v1) | **PATCH** /api/mail/v1/mailboxes/{mailboxId}/password | Change mailbox password
201202
*MailMailboxesApi* | [**create_mailbox_v1**](docs/MailMailboxesApi.md#create_mailbox_v1) | **POST** /api/mail/v1/orders/{orderId}/mailboxes | Create mailbox
203+
*MailMailboxesApi* | [**delete_mailbox_v1**](docs/MailMailboxesApi.md#delete_mailbox_v1) | **DELETE** /api/mail/v1/mailboxes/{mailboxId} | Delete mailbox
202204
*MailMailboxesApi* | [**get_mailbox_list_v1**](docs/MailMailboxesApi.md#get_mailbox_list_v1) | **GET** /api/mail/v1/orders/{orderId}/mailboxes | Get mailbox list
203205
*MailOrdersApi* | [**get_mail_order_list_v1**](docs/MailOrdersApi.md#get_mail_order_list_v1) | **GET** /api/mail/v1/orders | Get mail order list
204206
*ReachContactsApi* | [**create_a_new_contact_v1**](docs/ReachContactsApi.md#create_a_new_contact_v1) | **POST** /api/reach/v1/contacts | Create a new contact
@@ -500,6 +502,7 @@ Class | Method | HTTP request | Description
500502
- [MailV1OrdersOrderDomainResource](docs/MailV1OrdersOrderDomainResource.md)
501503
- [MailV1OrdersOrderPlanResource](docs/MailV1OrdersOrderPlanResource.md)
502504
- [MailV1OrdersOrderResource](docs/MailV1OrdersOrderResource.md)
505+
- [MailV1SchemaChangeMailboxPasswordRequestSchema](docs/MailV1SchemaChangeMailboxPasswordRequestSchema.md)
503506
- [MailV1SchemaCreateMailboxRequestSchema](docs/MailV1SchemaCreateMailboxRequestSchema.md)
504507
- [ReachListContactsV1200Response](docs/ReachListContactsV1200Response.md)
505508
- [ReachListProfileSegmentContactsV1200Response](docs/ReachListProfileSegmentContactsV1200Response.md)

docs/MailMailboxesApi.md

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

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7+
[**change_mailbox_password_v1**](MailMailboxesApi.md#change_mailbox_password_v1) | **PATCH** /api/mail/v1/mailboxes/{mailboxId}/password | Change mailbox password
78
[**create_mailbox_v1**](MailMailboxesApi.md#create_mailbox_v1) | **POST** /api/mail/v1/orders/{orderId}/mailboxes | Create mailbox
9+
[**delete_mailbox_v1**](MailMailboxesApi.md#delete_mailbox_v1) | **DELETE** /api/mail/v1/mailboxes/{mailboxId} | Delete mailbox
810
[**get_mailbox_list_v1**](MailMailboxesApi.md#get_mailbox_list_v1) | **GET** /api/mail/v1/orders/{orderId}/mailboxes | Get mailbox list
911

1012

13+
# **change_mailbox_password_v1**
14+
> CommonSuccessEmptyResource change_mailbox_password_v1(mailbox_id, mail_v1_schema_change_mailbox_password_request_schema)
15+
16+
Change mailbox password
17+
18+
Change the password of a mailbox.
19+
20+
### Example
21+
22+
* Bearer Authentication (apiToken):
23+
24+
```python
25+
import hostinger_api
26+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
27+
from hostinger_api.models.mail_v1_schema_change_mailbox_password_request_schema import MailV1SchemaChangeMailboxPasswordRequestSchema
28+
from hostinger_api.rest import ApiException
29+
from pprint import pprint
30+
31+
32+
# Configure Bearer authorization: apiToken
33+
configuration = hostinger_api.Configuration(
34+
access_token = os.environ["BEARER_TOKEN"]
35+
)
36+
37+
# Enter a context with an instance of the API client
38+
with hostinger_api.ApiClient(configuration) as api_client:
39+
# Create an instance of the API class
40+
api_instance = hostinger_api.MailMailboxesApi(api_client)
41+
mailbox_id = 'AC1a2b3c4d5e6f7g' # str | Mailbox resource ID
42+
mail_v1_schema_change_mailbox_password_request_schema = hostinger_api.MailV1SchemaChangeMailboxPasswordRequestSchema() # MailV1SchemaChangeMailboxPasswordRequestSchema |
43+
44+
try:
45+
# Change mailbox password
46+
api_response = api_instance.change_mailbox_password_v1(mailbox_id, mail_v1_schema_change_mailbox_password_request_schema)
47+
print("The response of MailMailboxesApi->change_mailbox_password_v1:\n")
48+
pprint(api_response)
49+
except Exception as e:
50+
print("Exception when calling MailMailboxesApi->change_mailbox_password_v1: %s\n" % e)
51+
```
52+
53+
54+
55+
### Parameters
56+
57+
58+
Name | Type | Description | Notes
59+
------------- | ------------- | ------------- | -------------
60+
**mailbox_id** | **str**| Mailbox resource ID |
61+
**mail_v1_schema_change_mailbox_password_request_schema** | [**MailV1SchemaChangeMailboxPasswordRequestSchema**](MailV1SchemaChangeMailboxPasswordRequestSchema.md)| |
62+
63+
### Return type
64+
65+
[**CommonSuccessEmptyResource**](CommonSuccessEmptyResource.md)
66+
67+
### Authorization
68+
69+
[apiToken](../README.md#apiToken)
70+
71+
### HTTP request headers
72+
73+
- **Content-Type**: application/json
74+
- **Accept**: application/json
75+
76+
### HTTP response details
77+
78+
| Status code | Description | Response headers |
79+
|-------------|-------------|------------------|
80+
**200** | Success response | - |
81+
**401** | Unauthenticated response | - |
82+
**400** | Error response | - |
83+
**404** | Error response | - |
84+
**422** | Error response | - |
85+
**500** | Error response | - |
86+
87+
[[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)
88+
1189
# **create_mailbox_v1**
1290
> MailV1MailboxesMailboxResource create_mailbox_v1(order_id, mail_v1_schema_create_mailbox_request_schema)
1391
@@ -85,6 +163,79 @@ Name | Type | Description | Notes
85163

86164
[[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)
87165

166+
# **delete_mailbox_v1**
167+
> CommonSuccessEmptyResource delete_mailbox_v1(mailbox_id)
168+
169+
Delete mailbox
170+
171+
Delete a mailbox. The mailbox is soft-deleted and stays restorable
172+
for a limited period before it is permanently removed.
173+
174+
### Example
175+
176+
* Bearer Authentication (apiToken):
177+
178+
```python
179+
import hostinger_api
180+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
181+
from hostinger_api.rest import ApiException
182+
from pprint import pprint
183+
184+
185+
# Configure Bearer authorization: apiToken
186+
configuration = hostinger_api.Configuration(
187+
access_token = os.environ["BEARER_TOKEN"]
188+
)
189+
190+
# Enter a context with an instance of the API client
191+
with hostinger_api.ApiClient(configuration) as api_client:
192+
# Create an instance of the API class
193+
api_instance = hostinger_api.MailMailboxesApi(api_client)
194+
mailbox_id = 'AC1a2b3c4d5e6f7g' # str | Mailbox resource ID
195+
196+
try:
197+
# Delete mailbox
198+
api_response = api_instance.delete_mailbox_v1(mailbox_id)
199+
print("The response of MailMailboxesApi->delete_mailbox_v1:\n")
200+
pprint(api_response)
201+
except Exception as e:
202+
print("Exception when calling MailMailboxesApi->delete_mailbox_v1: %s\n" % e)
203+
```
204+
205+
206+
207+
### Parameters
208+
209+
210+
Name | Type | Description | Notes
211+
------------- | ------------- | ------------- | -------------
212+
**mailbox_id** | **str**| Mailbox resource ID |
213+
214+
### Return type
215+
216+
[**CommonSuccessEmptyResource**](CommonSuccessEmptyResource.md)
217+
218+
### Authorization
219+
220+
[apiToken](../README.md#apiToken)
221+
222+
### HTTP request headers
223+
224+
- **Content-Type**: Not defined
225+
- **Accept**: application/json
226+
227+
### HTTP response details
228+
229+
| Status code | Description | Response headers |
230+
|-------------|-------------|------------------|
231+
**200** | Success response | - |
232+
**401** | Unauthenticated response | - |
233+
**404** | Error response | - |
234+
**409** | Error response | - |
235+
**500** | Error response | - |
236+
237+
[[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)
238+
88239
# **get_mailbox_list_v1**
89240
> MailGetMailboxListV1200Response get_mailbox_list_v1(order_id, search=search, sort=sort, page=page, per_page=per_page)
90241
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# MailV1SchemaChangeMailboxPasswordRequestSchema
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**password** | **str** | New mailbox password. Minimum 8 characters with uppercase, lowercase, number and special character; must not be a commonly used password. |
9+
10+
## Example
11+
12+
```python
13+
from hostinger_api.models.mail_v1_schema_change_mailbox_password_request_schema import MailV1SchemaChangeMailboxPasswordRequestSchema
14+
15+
# TODO update the JSON string below
16+
json = "{}"
17+
# create an instance of MailV1SchemaChangeMailboxPasswordRequestSchema from a JSON string
18+
mail_v1_schema_change_mailbox_password_request_schema_instance = MailV1SchemaChangeMailboxPasswordRequestSchema.from_json(json)
19+
# print the JSON string representation of the object
20+
print(MailV1SchemaChangeMailboxPasswordRequestSchema.to_json())
21+
22+
# convert the object into a dict
23+
mail_v1_schema_change_mailbox_password_request_schema_dict = mail_v1_schema_change_mailbox_password_request_schema_instance.to_dict()
24+
# create an instance of MailV1SchemaChangeMailboxPasswordRequestSchema from a dict
25+
mail_v1_schema_change_mailbox_password_request_schema_from_dict = MailV1SchemaChangeMailboxPasswordRequestSchema.from_dict(mail_v1_schema_change_mailbox_password_request_schema_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+

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.13.0
8+
API Version: 1.14.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.11.0"
15+
__version__ = "3.12.0"
1616

1717
# import apis into sdk package
1818
from hostinger_api.api.agency_hosting_cache_api import AgencyHostingCacheApi
@@ -276,6 +276,7 @@
276276
from hostinger_api.models.mail_v1_orders_order_domain_resource import MailV1OrdersOrderDomainResource
277277
from hostinger_api.models.mail_v1_orders_order_plan_resource import MailV1OrdersOrderPlanResource
278278
from hostinger_api.models.mail_v1_orders_order_resource import MailV1OrdersOrderResource
279+
from hostinger_api.models.mail_v1_schema_change_mailbox_password_request_schema import MailV1SchemaChangeMailboxPasswordRequestSchema
279280
from hostinger_api.models.mail_v1_schema_create_mailbox_request_schema import MailV1SchemaCreateMailboxRequestSchema
280281
from hostinger_api.models.reach_list_contacts_v1200_response import ReachListContactsV1200Response
281282
from hostinger_api.models.reach_list_profile_segment_contacts_v1200_response import ReachListProfileSegmentContactsV1200Response

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.13.0
6+
API Version: 1.14.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.13.0
6+
API Version: 1.14.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.13.0
6+
API Version: 1.14.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.13.0
6+
API Version: 1.14.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.13.0
6+
API Version: 1.14.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.13.0
6+
API Version: 1.14.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)