Skip to content

Commit cbea7be

Browse files
committed
Updated: 2025-01-09
1 parent 9fc7707 commit cbea7be

22 files changed

Lines changed: 676 additions & 25 deletions

.openapi-generator/FILES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ docs/CreateFolderInStorageRequest.md
9797
docs/CreateInstance.md
9898
docs/CreateKey201Response.md
9999
docs/CreateKeyRequest.md
100+
docs/CreateMultipleDomainMailboxes201Response.md
101+
docs/CreateMultipleDomainMailboxesRequest.md
100102
docs/CreateNetworkDrive.md
101103
docs/CreateNetworkDrive201Response.md
102104
docs/CreateProject.md
@@ -503,6 +505,8 @@ test/test_create_folder_in_storage_request.py
503505
test/test_create_instance.py
504506
test/test_create_key201_response.py
505507
test/test_create_key_request.py
508+
test/test_create_multiple_domain_mailboxes201_response.py
509+
test/test_create_multiple_domain_mailboxes_request.py
506510
test/test_create_network_drive.py
507511
test/test_create_network_drive201_response.py
508512
test/test_create_project.py
@@ -924,6 +928,8 @@ timeweb_cloud_api/models/create_folder_in_storage_request.py
924928
timeweb_cloud_api/models/create_instance.py
925929
timeweb_cloud_api/models/create_key201_response.py
926930
timeweb_cloud_api/models/create_key_request.py
931+
timeweb_cloud_api/models/create_multiple_domain_mailboxes201_response.py
932+
timeweb_cloud_api/models/create_multiple_domain_mailboxes_request.py
927933
timeweb_cloud_api/models/create_network_drive.py
928934
timeweb_cloud_api/models/create_network_drive201_response.py
929935
timeweb_cloud_api/models/create_project.py

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ Class | Method | HTTP request | Description
401401
*KubernetesApi* | [**update_cluster**](docs/KubernetesApi.md#update_cluster) | **PATCH** /api/v1/k8s/clusters/{cluster_id} | Обновление информации о кластере
402402
*LocationsApi* | [**get_locations**](docs/LocationsApi.md#get_locations) | **GET** /api/v2/locations | Получение списка локаций
403403
*MailApi* | [**create_domain_mailbox**](docs/MailApi.md#create_domain_mailbox) | **POST** /api/v1/mail/domains/{domain} | Создание почтового ящика
404+
*MailApi* | [**create_multiple_domain_mailboxes**](docs/MailApi.md#create_multiple_domain_mailboxes) | **POST** /api/v1/mail/domains/{domain}/batch | Множественное создание почтовых ящиков
404405
*MailApi* | [**delete_mailbox**](docs/MailApi.md#delete_mailbox) | **DELETE** /api/v1/mail/domains/{domain}/mailboxes/{mailbox} | Удаление почтового ящика
405406
*MailApi* | [**get_domain_mail_info**](docs/MailApi.md#get_domain_mail_info) | **GET** /api/v1/mail/domains/{domain}/info | Получение почтовой информации о домене
406407
*MailApi* | [**get_domain_mailboxes**](docs/MailApi.md#get_domain_mailboxes) | **GET** /api/v1/mail/domains/{domain} | Получение списка почтовых ящиков домена
@@ -608,6 +609,8 @@ Class | Method | HTTP request | Description
608609
- [CreateInstance](docs/CreateInstance.md)
609610
- [CreateKey201Response](docs/CreateKey201Response.md)
610611
- [CreateKeyRequest](docs/CreateKeyRequest.md)
612+
- [CreateMultipleDomainMailboxes201Response](docs/CreateMultipleDomainMailboxes201Response.md)
613+
- [CreateMultipleDomainMailboxesRequest](docs/CreateMultipleDomainMailboxesRequest.md)
611614
- [CreateNetworkDrive](docs/CreateNetworkDrive.md)
612615
- [CreateNetworkDrive201Response](docs/CreateNetworkDrive201Response.md)
613616
- [CreateProject](docs/CreateProject.md)

docs/APIKeysApi.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ Name | Type | Description | Notes
8888
**400** | | - |
8989
**401** | | - |
9090
**403** | | - |
91-
**404** | | - |
9291
**429** | | - |
9392
**500** | | - |
9493

@@ -245,7 +244,6 @@ This endpoint does not need any parameter.
245244
**400** | | - |
246245
**401** | | - |
247246
**403** | | - |
248-
**404** | | - |
249247
**429** | | - |
250248
**500** | | - |
251249

docs/AccountApi.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,6 @@ This endpoint does not need any parameter.
414414
**400** | | - |
415415
**401** | | - |
416416
**403** | | - |
417-
**404** | | - |
418417
**429** | | - |
419418
**500** | | - |
420419

@@ -644,7 +643,6 @@ This endpoint does not need any parameter.
644643
**400** | | - |
645644
**401** | | - |
646645
**403** | | - |
647-
**404** | | - |
648646
**429** | | - |
649647
**500** | | - |
650648

@@ -722,7 +720,6 @@ This endpoint does not need any parameter.
722720
**400** | | - |
723721
**401** | | - |
724722
**403** | | - |
725-
**404** | | - |
726723
**429** | | - |
727724
**500** | | - |
728725

@@ -960,6 +957,7 @@ Name | Type | Description | Notes
960957
**200** | Ответ будет представлять собой объект JSON c ключом `notification_settings`. | - |
961958
**400** | | - |
962959
**401** | | - |
960+
**403** | | - |
963961
**429** | | - |
964962
**500** | | - |
965963

docs/CreateApiKey.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Name | Type | Description | Notes
77
**name** | **object** | Имя, установленное для токена. |
88
**expire** | **object** | Значение времени, указанное в комбинированном формате даты и времени ISO8601, которое представляет, когда истекает токен. | [optional]
99
**is_able_to_delete** | **object** | Это логическое значение, которое показывает, можно ли удалять управляемые сервисы при помощи данного токена без подтверждения через Телеграм, когда это подтверждение включено. | [optional]
10+
**roles** | **object** | Роли, которые могут быть назначены токену. | [optional]
11+
**projects** | **object** | Список идентификаторов проектов, к которым привязан токен. Если передан null - доступ к проектам не ограничен. | [optional]
1012

1113
## Example
1214

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# CreateMultipleDomainMailboxes201Response
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**mailboxes** | **object** | |
8+
9+
## Example
10+
11+
```python
12+
from timeweb_cloud_api.models.create_multiple_domain_mailboxes201_response import CreateMultipleDomainMailboxes201Response
13+
14+
# TODO update the JSON string below
15+
json = "{}"
16+
# create an instance of CreateMultipleDomainMailboxes201Response from a JSON string
17+
create_multiple_domain_mailboxes201_response_instance = CreateMultipleDomainMailboxes201Response.from_json(json)
18+
# print the JSON string representation of the object
19+
print CreateMultipleDomainMailboxes201Response.to_json()
20+
21+
# convert the object into a dict
22+
create_multiple_domain_mailboxes201_response_dict = create_multiple_domain_mailboxes201_response_instance.to_dict()
23+
# create an instance of CreateMultipleDomainMailboxes201Response from a dict
24+
create_multiple_domain_mailboxes201_response_form_dict = create_multiple_domain_mailboxes201_response.from_dict(create_multiple_domain_mailboxes201_response_dict)
25+
```
26+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
27+
28+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# CreateMultipleDomainMailboxesRequest
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**mailboxes** | **object** | Массив объектов с данными почтовых ящиков |
8+
9+
## Example
10+
11+
```python
12+
from timeweb_cloud_api.models.create_multiple_domain_mailboxes_request import CreateMultipleDomainMailboxesRequest
13+
14+
# TODO update the JSON string below
15+
json = "{}"
16+
# create an instance of CreateMultipleDomainMailboxesRequest from a JSON string
17+
create_multiple_domain_mailboxes_request_instance = CreateMultipleDomainMailboxesRequest.from_json(json)
18+
# print the JSON string representation of the object
19+
print CreateMultipleDomainMailboxesRequest.to_json()
20+
21+
# convert the object into a dict
22+
create_multiple_domain_mailboxes_request_dict = create_multiple_domain_mailboxes_request_instance.to_dict()
23+
# create an instance of CreateMultipleDomainMailboxesRequest from a dict
24+
create_multiple_domain_mailboxes_request_form_dict = create_multiple_domain_mailboxes_request.from_dict(create_multiple_domain_mailboxes_request_dict)
25+
```
26+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
27+
28+

docs/MailApi.md

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All URIs are relative to *https://api.timeweb.cloud*
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**create_domain_mailbox**](MailApi.md#create_domain_mailbox) | **POST** /api/v1/mail/domains/{domain} | Создание почтового ящика
8+
[**create_multiple_domain_mailboxes**](MailApi.md#create_multiple_domain_mailboxes) | **POST** /api/v1/mail/domains/{domain}/batch | Множественное создание почтовых ящиков
89
[**delete_mailbox**](MailApi.md#delete_mailbox) | **DELETE** /api/v1/mail/domains/{domain}/mailboxes/{mailbox} | Удаление почтового ящика
910
[**get_domain_mail_info**](MailApi.md#get_domain_mail_info) | **GET** /api/v1/mail/domains/{domain}/info | Получение почтовой информации о домене
1011
[**get_domain_mailboxes**](MailApi.md#get_domain_mailboxes) | **GET** /api/v1/mail/domains/{domain} | Получение списка почтовых ящиков домена
@@ -94,6 +95,93 @@ Name | Type | Description | Notes
9495
**201** | Ответ будет представлять собой объект JSON c ключом `mailbox`. | - |
9596
**400** | | - |
9697
**401** | | - |
98+
**403** | | - |
99+
**404** | | - |
100+
**429** | | - |
101+
**500** | | - |
102+
103+
[[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)
104+
105+
# **create_multiple_domain_mailboxes**
106+
> CreateMultipleDomainMailboxes201Response create_multiple_domain_mailboxes(domain, create_multiple_domain_mailboxes_request)
107+
108+
Множественное создание почтовых ящиков
109+
110+
Чтобы создать почтовый ящики, отправьте POST-запрос на `/api/v1/mail/domains/{domain}/batch`.
111+
112+
### Example
113+
114+
* Bearer (JWT) Authentication (Bearer):
115+
```python
116+
import time
117+
import os
118+
import timeweb_cloud_api
119+
from timeweb_cloud_api.models.create_multiple_domain_mailboxes201_response import CreateMultipleDomainMailboxes201Response
120+
from timeweb_cloud_api.models.create_multiple_domain_mailboxes_request import CreateMultipleDomainMailboxesRequest
121+
from timeweb_cloud_api.rest import ApiException
122+
from pprint import pprint
123+
124+
# Defining the host is optional and defaults to https://api.timeweb.cloud
125+
# See configuration.py for a list of all supported configuration parameters.
126+
configuration = timeweb_cloud_api.Configuration(
127+
host = "https://api.timeweb.cloud"
128+
)
129+
130+
# The client must configure the authentication and authorization parameters
131+
# in accordance with the API server security policy.
132+
# Examples for each auth method are provided below, use the example that
133+
# satisfies your auth use case.
134+
135+
# Configure Bearer authorization (JWT): Bearer
136+
configuration = timeweb_cloud_api.Configuration(
137+
access_token = os.environ["BEARER_TOKEN"]
138+
)
139+
140+
# Enter a context with an instance of the API client
141+
with timeweb_cloud_api.ApiClient(configuration) as api_client:
142+
# Create an instance of the API class
143+
api_instance = timeweb_cloud_api.MailApi(api_client)
144+
domain = somedomain.ru # object | Полное имя домена
145+
create_multiple_domain_mailboxes_request = timeweb_cloud_api.CreateMultipleDomainMailboxesRequest() # CreateMultipleDomainMailboxesRequest |
146+
147+
try:
148+
# Множественное создание почтовых ящиков
149+
api_response = api_instance.create_multiple_domain_mailboxes(domain, create_multiple_domain_mailboxes_request)
150+
print("The response of MailApi->create_multiple_domain_mailboxes:\n")
151+
pprint(api_response)
152+
except Exception as e:
153+
print("Exception when calling MailApi->create_multiple_domain_mailboxes: %s\n" % e)
154+
```
155+
156+
157+
### Parameters
158+
159+
Name | Type | Description | Notes
160+
------------- | ------------- | ------------- | -------------
161+
**domain** | [**object**](.md)| Полное имя домена |
162+
**create_multiple_domain_mailboxes_request** | [**CreateMultipleDomainMailboxesRequest**](CreateMultipleDomainMailboxesRequest.md)| |
163+
164+
### Return type
165+
166+
[**CreateMultipleDomainMailboxes201Response**](CreateMultipleDomainMailboxes201Response.md)
167+
168+
### Authorization
169+
170+
[Bearer](../README.md#Bearer)
171+
172+
### HTTP request headers
173+
174+
- **Content-Type**: application/json
175+
- **Accept**: application/json
176+
177+
### HTTP response details
178+
| Status code | Description | Response headers |
179+
|-------------|-------------|------------------|
180+
**201** | Ответ будет представлять собой объект JSON c ключом `mailboxes`. | - |
181+
**400** | | - |
182+
**401** | | - |
183+
**403** | | - |
184+
**404** | | - |
97185
**429** | | - |
98186
**500** | | - |
99187

@@ -173,6 +261,8 @@ void (empty response body)
173261
**204** | Успешное удаление почтового ящика | - |
174262
**400** | | - |
175263
**401** | | - |
264+
**403** | | - |
265+
**404** | | - |
176266
**429** | | - |
177267
**500** | | - |
178268

@@ -253,6 +343,8 @@ Name | Type | Description | Notes
253343
**200** | Ответ будет представлять собой объект JSON c ключом `domain_info`. | - |
254344
**400** | | - |
255345
**401** | | - |
346+
**403** | | - |
347+
**404** | | - |
256348
**429** | | - |
257349
**500** | | - |
258350

@@ -339,6 +431,8 @@ Name | Type | Description | Notes
339431
**200** | Ответ будет представлять собой объект JSON c ключом `mailboxes`. | - |
340432
**400** | | - |
341433
**401** | | - |
434+
**403** | | - |
435+
**404** | | - |
342436
**429** | | - |
343437
**500** | | - |
344438

@@ -415,6 +509,7 @@ This endpoint does not need any parameter.
415509
**200** | Ответ будет представлять собой объект JSON c ключом `quota`. | - |
416510
**400** | | - |
417511
**401** | | - |
512+
**403** | | - |
418513
**429** | | - |
419514
**500** | | - |
420515

@@ -497,6 +592,8 @@ Name | Type | Description | Notes
497592
**200** | Ответ будет представлять собой объект JSON c ключом `mailbox`. | - |
498593
**400** | | - |
499594
**401** | | - |
595+
**403** | | - |
596+
**404** | | - |
500597
**429** | | - |
501598
**500** | | - |
502599

@@ -581,6 +678,7 @@ Name | Type | Description | Notes
581678
**200** | Ответ будет представлять собой объект JSON c ключом `mailboxes`. | - |
582679
**400** | | - |
583680
**401** | | - |
681+
**403** | | - |
584682
**429** | | - |
585683
**500** | | - |
586684

@@ -664,6 +762,8 @@ Name | Type | Description | Notes
664762
**200** | Ответ будет представлять собой объект JSON c ключом `domain_info`. | - |
665763
**400** | | - |
666764
**401** | | - |
765+
**403** | | - |
766+
**404** | | - |
667767
**429** | | - |
668768
**500** | | - |
669769

@@ -745,6 +845,7 @@ Name | Type | Description | Notes
745845
**200** | Ответ будет представлять собой объект JSON c ключом `quota`. | - |
746846
**400** | | - |
747847
**401** | | - |
848+
**403** | | - |
748849
**429** | | - |
749850
**500** | | - |
750851

@@ -830,6 +931,8 @@ Name | Type | Description | Notes
830931
**200** | Ответ будет представлять собой объект JSON c ключом `mailbox`. | - |
831932
**400** | | - |
832933
**401** | | - |
934+
**403** | | - |
935+
**404** | | - |
833936
**429** | | - |
834937
**500** | | - |
835938

0 commit comments

Comments
 (0)