Skip to content

Commit 35b7f0d

Browse files
chore: sdk update
1 parent e898ef4 commit 35b7f0d

811 files changed

Lines changed: 3184 additions & 799 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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ Class | Method | HTTP request | Description
205205
*MailAPITokensApi* | [**create_api_token_v1**](docs/MailAPITokensApi.md#create_api_token_v1) | **POST** /api/mail/v1/orders/{orderId}/api-tokens | Create API token
206206
*MailAPITokensApi* | [**list_api_tokens_v1**](docs/MailAPITokensApi.md#list_api_tokens_v1) | **GET** /api/mail/v1/api-tokens | List API tokens
207207
*MailAPITokensApi* | [**revoke_api_token_v1**](docs/MailAPITokensApi.md#revoke_api_token_v1) | **DELETE** /api/mail/v1/api-tokens/{tokenId} | Revoke API token
208+
*MailAutorepliesApi* | [**create_autoreply_v1**](docs/MailAutorepliesApi.md#create_autoreply_v1) | **POST** /api/mail/v1/mailboxes/{mailboxId}/autoreplies | Create autoreply
209+
*MailAutorepliesApi* | [**delete_autoreply_v1**](docs/MailAutorepliesApi.md#delete_autoreply_v1) | **DELETE** /api/mail/v1/autoreplies/{autoreplyId} | Delete autoreply
210+
*MailAutorepliesApi* | [**list_autoreplies_v1**](docs/MailAutorepliesApi.md#list_autoreplies_v1) | **GET** /api/mail/v1/orders/{orderId}/autoreplies | List autoreplies
211+
*MailAutorepliesApi* | [**update_autoreply_v1**](docs/MailAutorepliesApi.md#update_autoreply_v1) | **PUT** /api/mail/v1/autoreplies/{autoreplyId} | Update autoreply
208212
*MailLogsApi* | [**list_access_logs_v1**](docs/MailLogsApi.md#list_access_logs_v1) | **GET** /api/mail/v1/orders/{orderId}/logs/access | List access logs
209213
*MailLogsApi* | [**list_action_logs_v1**](docs/MailLogsApi.md#list_action_logs_v1) | **GET** /api/mail/v1/orders/{orderId}/logs/action | List action logs
210214
*MailLogsApi* | [**list_inbound_logs_v1**](docs/MailLogsApi.md#list_inbound_logs_v1) | **GET** /api/mail/v1/orders/{orderId}/logs/inbound | List inbound logs
@@ -524,6 +528,7 @@ Class | Method | HTTP request | Description
524528
- [MailListAPITokensV1200Response](docs/MailListAPITokensV1200Response.md)
525529
- [MailListAccessLogsV1200Response](docs/MailListAccessLogsV1200Response.md)
526530
- [MailListActionLogsV1200Response](docs/MailListActionLogsV1200Response.md)
531+
- [MailListAutorepliesV1200Response](docs/MailListAutorepliesV1200Response.md)
527532
- [MailListInboundLogsV1200Response](docs/MailListInboundLogsV1200Response.md)
528533
- [MailListMailboxActionLogsV1200Response](docs/MailListMailboxActionLogsV1200Response.md)
529534
- [MailListMailboxesV1200Response](docs/MailListMailboxesV1200Response.md)
@@ -534,6 +539,8 @@ Class | Method | HTTP request | Description
534539
- [MailV1ApiTokensApiTokenMailboxResource](docs/MailV1ApiTokensApiTokenMailboxResource.md)
535540
- [MailV1ApiTokensApiTokenResource](docs/MailV1ApiTokensApiTokenResource.md)
536541
- [MailV1ApiTokensApiTokenScopeResource](docs/MailV1ApiTokensApiTokenScopeResource.md)
542+
- [MailV1AutorepliesAutoreplyMailboxResource](docs/MailV1AutorepliesAutoreplyMailboxResource.md)
543+
- [MailV1AutorepliesAutoreplyResource](docs/MailV1AutorepliesAutoreplyResource.md)
537544
- [MailV1LogsAccessAccessLogResource](docs/MailV1LogsAccessAccessLogResource.md)
538545
- [MailV1LogsActionActionLogResource](docs/MailV1LogsActionActionLogResource.md)
539546
- [MailV1LogsCommonDeliveryLogRelayEventResource](docs/MailV1LogsCommonDeliveryLogRelayEventResource.md)
@@ -555,6 +562,7 @@ Class | Method | HTTP request | Description
555562
- [MailV1SchemaCreateMailboxRequestSchema](docs/MailV1SchemaCreateMailboxRequestSchema.md)
556563
- [MailV1SchemaCreateWebhookRequestSchema](docs/MailV1SchemaCreateWebhookRequestSchema.md)
557564
- [MailV1SchemaUpdateWebhookRequestSchema](docs/MailV1SchemaUpdateWebhookRequestSchema.md)
565+
- [MailV1SchemaUpsertAutoreplyRequestSchema](docs/MailV1SchemaUpsertAutoreplyRequestSchema.md)
558566
- [MailV1WebhooksWebhookCreatedResource](docs/MailV1WebhooksWebhookCreatedResource.md)
559567
- [MailV1WebhooksWebhookDeliveryLogResource](docs/MailV1WebhooksWebhookDeliveryLogResource.md)
560568
- [MailV1WebhooksWebhookMailboxResource](docs/MailV1WebhooksWebhookMailboxResource.md)

docs/MailAutorepliesApi.md

Lines changed: 318 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,318 @@
1+
# hostinger_api.MailAutorepliesApi
2+
3+
All URIs are relative to *https://developers.hostinger.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**create_autoreply_v1**](MailAutorepliesApi.md#create_autoreply_v1) | **POST** /api/mail/v1/mailboxes/{mailboxId}/autoreplies | Create autoreply
8+
[**delete_autoreply_v1**](MailAutorepliesApi.md#delete_autoreply_v1) | **DELETE** /api/mail/v1/autoreplies/{autoreplyId} | Delete autoreply
9+
[**list_autoreplies_v1**](MailAutorepliesApi.md#list_autoreplies_v1) | **GET** /api/mail/v1/orders/{orderId}/autoreplies | List autoreplies
10+
[**update_autoreply_v1**](MailAutorepliesApi.md#update_autoreply_v1) | **PUT** /api/mail/v1/autoreplies/{autoreplyId} | Update autoreply
11+
12+
13+
# **create_autoreply_v1**
14+
> MailV1AutorepliesAutoreplyResource create_autoreply_v1(mailbox_id, mail_v1_schema_upsert_autoreply_request_schema)
15+
16+
Create autoreply
17+
18+
Create an automatic reply for the given mailbox. A mailbox can have
19+
only one autoreply. Omit `starts_at` to activate the autoreply
20+
immediately and omit `ends_at` to keep it active indefinitely.
21+
22+
### Example
23+
24+
* Bearer Authentication (apiToken):
25+
26+
```python
27+
import hostinger_api
28+
from hostinger_api.models.mail_v1_autoreplies_autoreply_resource import MailV1AutorepliesAutoreplyResource
29+
from hostinger_api.models.mail_v1_schema_upsert_autoreply_request_schema import MailV1SchemaUpsertAutoreplyRequestSchema
30+
from hostinger_api.rest import ApiException
31+
from pprint import pprint
32+
33+
34+
# Configure Bearer authorization: apiToken
35+
configuration = hostinger_api.Configuration(
36+
access_token = os.environ["BEARER_TOKEN"]
37+
)
38+
39+
# Enter a context with an instance of the API client
40+
with hostinger_api.ApiClient(configuration) as api_client:
41+
# Create an instance of the API class
42+
api_instance = hostinger_api.MailAutorepliesApi(api_client)
43+
mailbox_id = 'AC1a2b3c4d5e6f7g' # str | Mailbox resource ID
44+
mail_v1_schema_upsert_autoreply_request_schema = hostinger_api.MailV1SchemaUpsertAutoreplyRequestSchema() # MailV1SchemaUpsertAutoreplyRequestSchema |
45+
46+
try:
47+
# Create autoreply
48+
api_response = api_instance.create_autoreply_v1(mailbox_id, mail_v1_schema_upsert_autoreply_request_schema)
49+
print("The response of MailAutorepliesApi->create_autoreply_v1:\n")
50+
pprint(api_response)
51+
except Exception as e:
52+
print("Exception when calling MailAutorepliesApi->create_autoreply_v1: %s\n" % e)
53+
```
54+
55+
56+
57+
### Parameters
58+
59+
60+
Name | Type | Description | Notes
61+
------------- | ------------- | ------------- | -------------
62+
**mailbox_id** | **str**| Mailbox resource ID |
63+
**mail_v1_schema_upsert_autoreply_request_schema** | [**MailV1SchemaUpsertAutoreplyRequestSchema**](MailV1SchemaUpsertAutoreplyRequestSchema.md)| |
64+
65+
### Return type
66+
67+
[**MailV1AutorepliesAutoreplyResource**](MailV1AutorepliesAutoreplyResource.md)
68+
69+
### Authorization
70+
71+
[apiToken](../README.md#apiToken)
72+
73+
### HTTP request headers
74+
75+
- **Content-Type**: application/json
76+
- **Accept**: application/json
77+
78+
### HTTP response details
79+
80+
| Status code | Description | Response headers |
81+
|-------------|-------------|------------------|
82+
**201** | Created response | - |
83+
**401** | Unauthenticated response | - |
84+
**404** | Error response | - |
85+
**409** | Error response | - |
86+
**422** | Error response | - |
87+
**500** | Error response | - |
88+
89+
[[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)
90+
91+
# **delete_autoreply_v1**
92+
> CommonSuccessEmptyResource delete_autoreply_v1(autoreply_id)
93+
94+
Delete autoreply
95+
96+
Delete the autoreply of a mailbox. The mailbox stops sending
97+
automatic replies immediately.
98+
99+
### Example
100+
101+
* Bearer Authentication (apiToken):
102+
103+
```python
104+
import hostinger_api
105+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
106+
from hostinger_api.rest import ApiException
107+
from pprint import pprint
108+
109+
110+
# Configure Bearer authorization: apiToken
111+
configuration = hostinger_api.Configuration(
112+
access_token = os.environ["BEARER_TOKEN"]
113+
)
114+
115+
# Enter a context with an instance of the API client
116+
with hostinger_api.ApiClient(configuration) as api_client:
117+
# Create an instance of the API class
118+
api_instance = hostinger_api.MailAutorepliesApi(api_client)
119+
autoreply_id = 'AR1a2b3c4d5e6f7g' # str | Autoreply resource ID
120+
121+
try:
122+
# Delete autoreply
123+
api_response = api_instance.delete_autoreply_v1(autoreply_id)
124+
print("The response of MailAutorepliesApi->delete_autoreply_v1:\n")
125+
pprint(api_response)
126+
except Exception as e:
127+
print("Exception when calling MailAutorepliesApi->delete_autoreply_v1: %s\n" % e)
128+
```
129+
130+
131+
132+
### Parameters
133+
134+
135+
Name | Type | Description | Notes
136+
------------- | ------------- | ------------- | -------------
137+
**autoreply_id** | **str**| Autoreply resource ID |
138+
139+
### Return type
140+
141+
[**CommonSuccessEmptyResource**](CommonSuccessEmptyResource.md)
142+
143+
### Authorization
144+
145+
[apiToken](../README.md#apiToken)
146+
147+
### HTTP request headers
148+
149+
- **Content-Type**: Not defined
150+
- **Accept**: application/json
151+
152+
### HTTP response details
153+
154+
| Status code | Description | Response headers |
155+
|-------------|-------------|------------------|
156+
**200** | Success response | - |
157+
**401** | Unauthenticated response | - |
158+
**404** | Error response | - |
159+
**422** | Error response | - |
160+
**500** | Error response | - |
161+
162+
[[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)
163+
164+
# **list_autoreplies_v1**
165+
> MailListAutorepliesV1200Response list_autoreplies_v1(order_id, page=page, per_page=per_page)
166+
167+
List autoreplies
168+
169+
Retrieve a paginated list of autoreplies across all mailboxes of a
170+
mail order.
171+
172+
### Example
173+
174+
* Bearer Authentication (apiToken):
175+
176+
```python
177+
import hostinger_api
178+
from hostinger_api.models.mail_list_autoreplies_v1200_response import MailListAutorepliesV1200Response
179+
from hostinger_api.rest import ApiException
180+
from pprint import pprint
181+
182+
183+
# Configure Bearer authorization: apiToken
184+
configuration = hostinger_api.Configuration(
185+
access_token = os.environ["BEARER_TOKEN"]
186+
)
187+
188+
# Enter a context with an instance of the API client
189+
with hostinger_api.ApiClient(configuration) as api_client:
190+
# Create an instance of the API class
191+
api_instance = hostinger_api.MailAutorepliesApi(api_client)
192+
order_id = 'OR1a2b3c4d5e6f7g' # str | Order resource ID
193+
page = 1 # int | Page number (optional)
194+
per_page = 25 # int | Number of items per page (optional) (default to 25)
195+
196+
try:
197+
# List autoreplies
198+
api_response = api_instance.list_autoreplies_v1(order_id, page=page, per_page=per_page)
199+
print("The response of MailAutorepliesApi->list_autoreplies_v1:\n")
200+
pprint(api_response)
201+
except Exception as e:
202+
print("Exception when calling MailAutorepliesApi->list_autoreplies_v1: %s\n" % e)
203+
```
204+
205+
206+
207+
### Parameters
208+
209+
210+
Name | Type | Description | Notes
211+
------------- | ------------- | ------------- | -------------
212+
**order_id** | **str**| Order resource ID |
213+
**page** | **int**| Page number | [optional]
214+
**per_page** | **int**| Number of items per page | [optional] [default to 25]
215+
216+
### Return type
217+
218+
[**MailListAutorepliesV1200Response**](MailListAutorepliesV1200Response.md)
219+
220+
### Authorization
221+
222+
[apiToken](../README.md#apiToken)
223+
224+
### HTTP request headers
225+
226+
- **Content-Type**: Not defined
227+
- **Accept**: application/json
228+
229+
### HTTP response details
230+
231+
| Status code | Description | Response headers |
232+
|-------------|-------------|------------------|
233+
**200** | Success response | - |
234+
**401** | Unauthenticated response | - |
235+
**404** | Error response | - |
236+
**422** | Error response | - |
237+
**500** | Error response | - |
238+
239+
[[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)
240+
241+
# **update_autoreply_v1**
242+
> MailV1AutorepliesAutoreplyResource update_autoreply_v1(autoreply_id, mail_v1_schema_upsert_autoreply_request_schema)
243+
244+
Update autoreply
245+
246+
Replace the autoreply with the given content and schedule. Omitted
247+
optional fields are cleared: omit `starts_at` to activate the
248+
autoreply immediately and omit `ends_at` to keep it active
249+
indefinitely.
250+
251+
### Example
252+
253+
* Bearer Authentication (apiToken):
254+
255+
```python
256+
import hostinger_api
257+
from hostinger_api.models.mail_v1_autoreplies_autoreply_resource import MailV1AutorepliesAutoreplyResource
258+
from hostinger_api.models.mail_v1_schema_upsert_autoreply_request_schema import MailV1SchemaUpsertAutoreplyRequestSchema
259+
from hostinger_api.rest import ApiException
260+
from pprint import pprint
261+
262+
263+
# Configure Bearer authorization: apiToken
264+
configuration = hostinger_api.Configuration(
265+
access_token = os.environ["BEARER_TOKEN"]
266+
)
267+
268+
# Enter a context with an instance of the API client
269+
with hostinger_api.ApiClient(configuration) as api_client:
270+
# Create an instance of the API class
271+
api_instance = hostinger_api.MailAutorepliesApi(api_client)
272+
autoreply_id = 'AR1a2b3c4d5e6f7g' # str | Autoreply resource ID
273+
mail_v1_schema_upsert_autoreply_request_schema = hostinger_api.MailV1SchemaUpsertAutoreplyRequestSchema() # MailV1SchemaUpsertAutoreplyRequestSchema |
274+
275+
try:
276+
# Update autoreply
277+
api_response = api_instance.update_autoreply_v1(autoreply_id, mail_v1_schema_upsert_autoreply_request_schema)
278+
print("The response of MailAutorepliesApi->update_autoreply_v1:\n")
279+
pprint(api_response)
280+
except Exception as e:
281+
print("Exception when calling MailAutorepliesApi->update_autoreply_v1: %s\n" % e)
282+
```
283+
284+
285+
286+
### Parameters
287+
288+
289+
Name | Type | Description | Notes
290+
------------- | ------------- | ------------- | -------------
291+
**autoreply_id** | **str**| Autoreply resource ID |
292+
**mail_v1_schema_upsert_autoreply_request_schema** | [**MailV1SchemaUpsertAutoreplyRequestSchema**](MailV1SchemaUpsertAutoreplyRequestSchema.md)| |
293+
294+
### Return type
295+
296+
[**MailV1AutorepliesAutoreplyResource**](MailV1AutorepliesAutoreplyResource.md)
297+
298+
### Authorization
299+
300+
[apiToken](../README.md#apiToken)
301+
302+
### HTTP request headers
303+
304+
- **Content-Type**: application/json
305+
- **Accept**: application/json
306+
307+
### HTTP response details
308+
309+
| Status code | Description | Response headers |
310+
|-------------|-------------|------------------|
311+
**200** | Success response | - |
312+
**401** | Unauthenticated response | - |
313+
**404** | Error response | - |
314+
**422** | Error response | - |
315+
**500** | Error response | - |
316+
317+
[[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)
318+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# MailListAutorepliesV1200Response
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**data** | [**List[MailV1AutorepliesAutoreplyResource]**](MailV1AutorepliesAutoreplyResource.md) | Array of [`Mail.V1.Autoreplies.AutoreplyResource`](#model/mailv1autorepliesautoreplyresource) | [optional]
9+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional]
10+
11+
## Example
12+
13+
```python
14+
from hostinger_api.models.mail_list_autoreplies_v1200_response import MailListAutorepliesV1200Response
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of MailListAutorepliesV1200Response from a JSON string
19+
mail_list_autoreplies_v1200_response_instance = MailListAutorepliesV1200Response.from_json(json)
20+
# print the JSON string representation of the object
21+
print(MailListAutorepliesV1200Response.to_json())
22+
23+
# convert the object into a dict
24+
mail_list_autoreplies_v1200_response_dict = mail_list_autoreplies_v1200_response_instance.to_dict()
25+
# create an instance of MailListAutorepliesV1200Response from a dict
26+
mail_list_autoreplies_v1200_response_from_dict = MailListAutorepliesV1200Response.from_dict(mail_list_autoreplies_v1200_response_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

0 commit comments

Comments
 (0)