Skip to content

Commit e172331

Browse files
SDK version 21.3.0.132 generated
1 parent e8d9ed1 commit e172331

File tree

5 files changed

+39
-11
lines changed

5 files changed

+39
-11
lines changed

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,12 @@ Aspose.Email Cloud is a REST API for creating email applications that work with
2222
- Email configuration discovery.
2323
- Disposable email address detection.
2424

25-
## What's new in version 20.12
25+
## Enhancements in Version 21.3
2626

27-
Aspose.Email Cloud 20.12.0 comes with SDK breaking changes:
28-
- AppKey renamed to ClientSecret.
29-
- AppSID renamed to ClientId.
27+
- IMAP native threads support added to the built-in Email client.
28+
- New field ClientThreadMoveRequest.SourceFolder added to specify a folder to move a thread from.
3029

31-
Some [SDK reference documentation](https://docs.aspose.cloud/email/reference-api/) improvements were made.
32-
33-
See [Release notes](https://docs.aspose.cloud/email/aspose-email-cloud-20-12-release-notes/).
30+
See [Release notes](https://docs.aspose.cloud/email/aspose-email-cloud-21-3-release-notes/).
3431

3532
## How to use the SDK?
3633
The complete source code is available in the [GIT repository](https://github.com/aspose-email-cloud/aspose-email-cloud-python/tree/master/sdk/AsposeEmailCloudSdk).

sdk/AsposeEmailCloudSdk/models/client_thread_move_request.py

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,18 @@ class ClientThreadMoveRequest(ClientThreadBaseRequest):
4848
swagger_types = {
4949
'account_location': 'StorageFileLocation',
5050
'thread_id': 'str',
51-
'destination_folder': 'str'
51+
'destination_folder': 'str',
52+
'source_folder': 'str'
5253
}
5354

5455
attribute_map = {
5556
'account_location': 'accountLocation',
5657
'thread_id': 'threadId',
57-
'destination_folder': 'destinationFolder'
58+
'destination_folder': 'destinationFolder',
59+
'source_folder': 'sourceFolder'
5860
}
5961

60-
def __init__(self, account_location: StorageFileLocation = None, thread_id: str = None, destination_folder: str = None):
62+
def __init__(self, account_location: StorageFileLocation = None, thread_id: str = None, destination_folder: str = None, source_folder: str = None):
6163
"""
6264
Email client move thread request.
6365
:param account_location: Email client account configuration location on storage.
@@ -66,17 +68,22 @@ def __init__(self, account_location: StorageFileLocation = None, thread_id: str
6668
:type thread_id: str
6769
:param destination_folder: Email account folder to move thread to.
6870
:type destination_folder: str
71+
:param source_folder: Email account folder to move thread from.
72+
:type source_folder: str
6973
"""
7074
super(ClientThreadMoveRequest, self).__init__()
7175

7276
self._destination_folder = None
77+
self._source_folder = None
7378

7479
if account_location is not None:
7580
self.account_location = account_location
7681
if thread_id is not None:
7782
self.thread_id = thread_id
7883
if destination_folder is not None:
7984
self.destination_folder = destination_folder
85+
if source_folder is not None:
86+
self.source_folder = source_folder
8087

8188

8289
@property
@@ -103,6 +110,26 @@ def destination_folder(self, destination_folder: str):
103110
raise ValueError("Invalid value for `destination_folder`, length must be greater than or equal to `1`")
104111
self._destination_folder = destination_folder
105112

113+
@property
114+
def source_folder(self) -> str:
115+
"""
116+
Email account folder to move thread from.
117+
118+
:return: The source_folder of this ClientThreadMoveRequest.
119+
:rtype: str
120+
"""
121+
return self._source_folder
122+
123+
@source_folder.setter
124+
def source_folder(self, source_folder: str):
125+
"""
126+
Email account folder to move thread from.
127+
128+
:param source_folder: The source_folder of this ClientThreadMoveRequest.
129+
:type: str
130+
"""
131+
self._source_folder = source_folder
132+
106133
def to_dict(self):
107134
"""Returns the model properties as a dict"""
108135
result = {}

sdk/docs/ClientThreadApi.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ See parameter model documentation at [ClientThreadMoveRequest](ClientThreadMoveR
271271
```python
272272
request = models.ClientThreadMoveRequest(
273273
destination_folder='INBOX/SubFolder',
274+
source_folder='INBOX',
274275
thread_id='5',
275276
account_location=models.StorageFileLocation(
276277
file_name='email.account',
@@ -295,6 +296,7 @@ api = EmailCloud(client_secret, client_id)
295296
// Prepare parameters:
296297
request = models.ClientThreadMoveRequest(
297298
destination_folder='INBOX/SubFolder',
299+
source_folder='INBOX',
298300
thread_id='5',
299301
account_location=models.StorageFileLocation(
300302
file_name='email.account',

sdk/docs/ClientThreadMoveRequest.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Email client move thread request.
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**destination_folder** |**str** |Email account folder to move thread to. |
9+
**source_folder** |**str** |Email account folder to move thread from. |[optional]
910

1011
Parent class: [ClientThreadBaseRequest](ClientThreadBaseRequest.md)
1112

@@ -14,6 +15,7 @@ Parent class: [ClientThreadBaseRequest](ClientThreadBaseRequest.md)
1415
```python
1516
client_thread_move_request = models.ClientThreadMoveRequest(
1617
destination_folder='INBOX/SubFolder',
18+
source_folder='INBOX',
1719
thread_id='5',
1820
account_location=models.StorageFileLocation(
1921
file_name='email.account',

sdk/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from setuptools import setup, find_packages # noqa: H301
99

1010
NAME = "aspose-email-cloud"
11-
VERSION = "20.12.0.131"
11+
VERSION = "21.3.0.132"
1212
# To install the library, run the following
1313
#
1414
# python setup.py install

0 commit comments

Comments
 (0)