diff --git a/sdk/AsposeEmailCloudSdk/__init__.py b/sdk/AsposeEmailCloudSdk/__init__.py
index 531ca94..ae65d9a 100644
--- a/sdk/AsposeEmailCloudSdk/__init__.py
+++ b/sdk/AsposeEmailCloudSdk/__init__.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -77,6 +77,7 @@
from AsposeEmailCloudSdk.models.email_properties import EmailProperties
from AsposeEmailCloudSdk.models.email_property import EmailProperty
from AsposeEmailCloudSdk.models.email_property_response import EmailPropertyResponse
+from AsposeEmailCloudSdk.models.email_thread import EmailThread
from AsposeEmailCloudSdk.models.enum_with_custom_of_associated_person_category import EnumWithCustomOfAssociatedPersonCategory
from AsposeEmailCloudSdk.models.enum_with_custom_of_email_address_category import EnumWithCustomOfEmailAddressCategory
from AsposeEmailCloudSdk.models.enum_with_custom_of_event_category import EnumWithCustomOfEventCategory
@@ -100,6 +101,7 @@
from AsposeEmailCloudSdk.models.list_response_of_contact_dto import ListResponseOfContactDto
from AsposeEmailCloudSdk.models.list_response_of_email_account_config import ListResponseOfEmailAccountConfig
from AsposeEmailCloudSdk.models.list_response_of_email_dto import ListResponseOfEmailDto
+from AsposeEmailCloudSdk.models.list_response_of_email_thread import ListResponseOfEmailThread
from AsposeEmailCloudSdk.models.list_response_of_hierarchical_object import ListResponseOfHierarchicalObject
from AsposeEmailCloudSdk.models.list_response_of_hierarchical_object_response import ListResponseOfHierarchicalObjectResponse
from AsposeEmailCloudSdk.models.list_response_of_mail_server_folder import ListResponseOfMailServerFolder
@@ -144,6 +146,7 @@
from AsposeEmailCloudSdk.models.calendar_dto_list import CalendarDtoList
from AsposeEmailCloudSdk.models.contact_dto_list import ContactDtoList
from AsposeEmailCloudSdk.models.create_folder_base_request import CreateFolderBaseRequest
+from AsposeEmailCloudSdk.models.delete_email_thread_account_rq import DeleteEmailThreadAccountRq
from AsposeEmailCloudSdk.models.delete_folder_base_request import DeleteFolderBaseRequest
from AsposeEmailCloudSdk.models.delete_message_base_request import DeleteMessageBaseRequest
from AsposeEmailCloudSdk.models.discover_email_config_oauth import DiscoverEmailConfigOauth
@@ -152,11 +155,15 @@
from AsposeEmailCloudSdk.models.email_client_account_oauth_credentials import EmailClientAccountOauthCredentials
from AsposeEmailCloudSdk.models.email_client_account_password_credentials import EmailClientAccountPasswordCredentials
from AsposeEmailCloudSdk.models.email_dto_list import EmailDtoList
+from AsposeEmailCloudSdk.models.email_thread_list import EmailThreadList
+from AsposeEmailCloudSdk.models.email_thread_read_flag_rq import EmailThreadReadFlagRq
from AsposeEmailCloudSdk.models.file_version import FileVersion
from AsposeEmailCloudSdk.models.hierarchical_object import HierarchicalObject
from AsposeEmailCloudSdk.models.indexed_hierarchical_object import IndexedHierarchicalObject
from AsposeEmailCloudSdk.models.indexed_primitive_object import IndexedPrimitiveObject
from AsposeEmailCloudSdk.models.linked_resource import LinkedResource
+from AsposeEmailCloudSdk.models.move_email_message_rq import MoveEmailMessageRq
+from AsposeEmailCloudSdk.models.move_email_thread_rq import MoveEmailThreadRq
from AsposeEmailCloudSdk.models.primitive_object import PrimitiveObject
from AsposeEmailCloudSdk.models.save_email_account_request import SaveEmailAccountRequest
from AsposeEmailCloudSdk.models.save_o_auth_email_account_request import SaveOAuthEmailAccountRequest
@@ -195,6 +202,11 @@
from AsposeEmailCloudSdk.models.requests.append_email_model_message_request import AppendEmailModelMessageRequest
from AsposeEmailCloudSdk.models.requests.append_mime_message_request import AppendMimeMessageRequest
from AsposeEmailCloudSdk.models.requests.convert_calendar_model_to_alternate_request import ConvertCalendarModelToAlternateRequest
+from AsposeEmailCloudSdk.models.requests.convert_calendar_model_to_file_request import ConvertCalendarModelToFileRequest
+from AsposeEmailCloudSdk.models.requests.convert_calendar_request import ConvertCalendarRequest
+from AsposeEmailCloudSdk.models.requests.convert_contact_model_to_file_request import ConvertContactModelToFileRequest
+from AsposeEmailCloudSdk.models.requests.convert_contact_request import ConvertContactRequest
+from AsposeEmailCloudSdk.models.requests.convert_email_model_to_file_request import ConvertEmailModelToFileRequest
from AsposeEmailCloudSdk.models.requests.convert_email_request import ConvertEmailRequest
from AsposeEmailCloudSdk.models.requests.copy_file_request import CopyFileRequest
from AsposeEmailCloudSdk.models.requests.copy_folder_request import CopyFolderRequest
@@ -208,6 +220,7 @@
from AsposeEmailCloudSdk.models.requests.delete_contact_property_request import DeleteContactPropertyRequest
from AsposeEmailCloudSdk.models.requests.delete_email_folder_request import DeleteEmailFolderRequest
from AsposeEmailCloudSdk.models.requests.delete_email_message_request import DeleteEmailMessageRequest
+from AsposeEmailCloudSdk.models.requests.delete_email_thread_request import DeleteEmailThreadRequest
from AsposeEmailCloudSdk.models.requests.delete_file_request import DeleteFileRequest
from AsposeEmailCloudSdk.models.requests.delete_folder_request import DeleteFolderRequest
from AsposeEmailCloudSdk.models.requests.delete_mapi_attachment_request import DeleteMapiAttachmentRequest
@@ -218,13 +231,18 @@
from AsposeEmailCloudSdk.models.requests.download_file_request import DownloadFileRequest
from AsposeEmailCloudSdk.models.requests.fetch_email_message_request import FetchEmailMessageRequest
from AsposeEmailCloudSdk.models.requests.fetch_email_model_request import FetchEmailModelRequest
+from AsposeEmailCloudSdk.models.requests.fetch_email_thread_messages_request import FetchEmailThreadMessagesRequest
+from AsposeEmailCloudSdk.models.requests.get_calendar_as_file_request import GetCalendarAsFileRequest
from AsposeEmailCloudSdk.models.requests.get_calendar_attachment_request import GetCalendarAttachmentRequest
+from AsposeEmailCloudSdk.models.requests.get_calendar_file_as_model_request import GetCalendarFileAsModelRequest
from AsposeEmailCloudSdk.models.requests.get_calendar_list_request import GetCalendarListRequest
from AsposeEmailCloudSdk.models.requests.get_calendar_model_as_alternate_request import GetCalendarModelAsAlternateRequest
from AsposeEmailCloudSdk.models.requests.get_calendar_model_list_request import GetCalendarModelListRequest
from AsposeEmailCloudSdk.models.requests.get_calendar_model_request import GetCalendarModelRequest
from AsposeEmailCloudSdk.models.requests.get_calendar_request import GetCalendarRequest
+from AsposeEmailCloudSdk.models.requests.get_contact_as_file_request import GetContactAsFileRequest
from AsposeEmailCloudSdk.models.requests.get_contact_attachment_request import GetContactAttachmentRequest
+from AsposeEmailCloudSdk.models.requests.get_contact_file_as_model_request import GetContactFileAsModelRequest
from AsposeEmailCloudSdk.models.requests.get_contact_list_request import GetContactListRequest
from AsposeEmailCloudSdk.models.requests.get_contact_model_list_request import GetContactModelListRequest
from AsposeEmailCloudSdk.models.requests.get_contact_model_request import GetContactModelRequest
@@ -234,6 +252,7 @@
from AsposeEmailCloudSdk.models.requests.get_email_attachment_request import GetEmailAttachmentRequest
from AsposeEmailCloudSdk.models.requests.get_email_client_account_request import GetEmailClientAccountRequest
from AsposeEmailCloudSdk.models.requests.get_email_client_multi_account_request import GetEmailClientMultiAccountRequest
+from AsposeEmailCloudSdk.models.requests.get_email_file_as_model_request import GetEmailFileAsModelRequest
from AsposeEmailCloudSdk.models.requests.get_email_model_list_request import GetEmailModelListRequest
from AsposeEmailCloudSdk.models.requests.get_email_model_request import GetEmailModelRequest
from AsposeEmailCloudSdk.models.requests.get_email_property_request import GetEmailPropertyRequest
@@ -248,6 +267,9 @@
from AsposeEmailCloudSdk.models.requests.list_email_folders_request import ListEmailFoldersRequest
from AsposeEmailCloudSdk.models.requests.list_email_messages_request import ListEmailMessagesRequest
from AsposeEmailCloudSdk.models.requests.list_email_models_request import ListEmailModelsRequest
+from AsposeEmailCloudSdk.models.requests.list_email_threads_request import ListEmailThreadsRequest
+from AsposeEmailCloudSdk.models.requests.move_email_message_request import MoveEmailMessageRequest
+from AsposeEmailCloudSdk.models.requests.move_email_thread_request import MoveEmailThreadRequest
from AsposeEmailCloudSdk.models.requests.move_file_request import MoveFileRequest
from AsposeEmailCloudSdk.models.requests.move_folder_request import MoveFolderRequest
from AsposeEmailCloudSdk.models.requests.object_exists_request import ObjectExistsRequest
@@ -263,6 +285,7 @@
from AsposeEmailCloudSdk.models.requests.send_email_request import SendEmailRequest
from AsposeEmailCloudSdk.models.requests.set_email_property_request import SetEmailPropertyRequest
from AsposeEmailCloudSdk.models.requests.set_email_read_flag_request import SetEmailReadFlagRequest
+from AsposeEmailCloudSdk.models.requests.set_email_thread_read_flag_request import SetEmailThreadReadFlagRequest
from AsposeEmailCloudSdk.models.requests.storage_exists_request import StorageExistsRequest
from AsposeEmailCloudSdk.models.requests.update_calendar_properties_request import UpdateCalendarPropertiesRequest
from AsposeEmailCloudSdk.models.requests.update_contact_properties_request import UpdateContactPropertiesRequest
diff --git a/sdk/AsposeEmailCloudSdk/api/__init__.py b/sdk/AsposeEmailCloudSdk/api/__init__.py
index c302c42..c3a078c 100644
--- a/sdk/AsposeEmailCloudSdk/api/__init__.py
+++ b/sdk/AsposeEmailCloudSdk/api/__init__.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/api/email_api.py b/sdk/AsposeEmailCloudSdk/api/email_api.py
index 963f984..1d10169 100644
--- a/sdk/AsposeEmailCloudSdk/api/email_api.py
+++ b/sdk/AsposeEmailCloudSdk/api/email_api.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -543,6 +543,26 @@ def append_mime_message_async(self, request: requests.AppendMimeMessageRequest)
http_request = request.to_http_info(self.api_client.configuration)
return self.__make_request_async(http_request, 'PUT', 'ValueResponse')
+ def convert_calendar(self, request: requests.ConvertCalendarRequest) -> str:
+ """Converts calendar document to specified format and returns as file
+
+
+ :param request ConvertCalendarRequest object with parameters
+ :return: str
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request(http_request, 'PUT', 'file')
+
+ def convert_calendar_async(self, request: requests.ConvertCalendarRequest) -> multiprocessing.pool.AsyncResult:
+ """Converts calendar document to specified format and returns as file
+ Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
+
+ :param request ConvertCalendarRequest object with parameters
+ :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns file)
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request_async(http_request, 'PUT', 'file')
+
def convert_calendar_model_to_alternate(self, request: requests.ConvertCalendarModelToAlternateRequest) -> AlternateView:
"""Convert iCalendar to AlternateView
@@ -563,6 +583,66 @@ def convert_calendar_model_to_alternate_async(self, request: requests.ConvertCal
http_request = request.to_http_info(self.api_client.configuration)
return self.__make_request_async(http_request, 'PUT', 'AlternateView')
+ def convert_calendar_model_to_file(self, request: requests.ConvertCalendarModelToFileRequest) -> str:
+ """Converts calendar model to specified format and returns as file
+
+
+ :param request ConvertCalendarModelToFileRequest object with parameters
+ :return: str
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request(http_request, 'PUT', 'file')
+
+ def convert_calendar_model_to_file_async(self, request: requests.ConvertCalendarModelToFileRequest) -> multiprocessing.pool.AsyncResult:
+ """Converts calendar model to specified format and returns as file
+ Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
+
+ :param request ConvertCalendarModelToFileRequest object with parameters
+ :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns file)
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request_async(http_request, 'PUT', 'file')
+
+ def convert_contact(self, request: requests.ConvertContactRequest) -> str:
+ """Converts contact document to specified format and returns as file
+
+
+ :param request ConvertContactRequest object with parameters
+ :return: str
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request(http_request, 'PUT', 'file')
+
+ def convert_contact_async(self, request: requests.ConvertContactRequest) -> multiprocessing.pool.AsyncResult:
+ """Converts contact document to specified format and returns as file
+ Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
+
+ :param request ConvertContactRequest object with parameters
+ :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns file)
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request_async(http_request, 'PUT', 'file')
+
+ def convert_contact_model_to_file(self, request: requests.ConvertContactModelToFileRequest) -> str:
+ """Converts contact model to specified format and returns as file
+
+
+ :param request ConvertContactModelToFileRequest object with parameters
+ :return: str
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request(http_request, 'PUT', 'file')
+
+ def convert_contact_model_to_file_async(self, request: requests.ConvertContactModelToFileRequest) -> multiprocessing.pool.AsyncResult:
+ """Converts contact model to specified format and returns as file
+ Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
+
+ :param request ConvertContactModelToFileRequest object with parameters
+ :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns file)
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request_async(http_request, 'PUT', 'file')
+
def convert_email(self, request: requests.ConvertEmailRequest) -> str:
"""Converts email document to specified format and returns as file
@@ -583,8 +663,28 @@ def convert_email_async(self, request: requests.ConvertEmailRequest) -> multipro
http_request = request.to_http_info(self.api_client.configuration)
return self.__make_request_async(http_request, 'PUT', 'file')
+ def convert_email_model_to_file(self, request: requests.ConvertEmailModelToFileRequest) -> str:
+ """Converts Email model to specified format and returns as file
+
+
+ :param request ConvertEmailModelToFileRequest object with parameters
+ :return: str
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request(http_request, 'PUT', 'file')
+
+ def convert_email_model_to_file_async(self, request: requests.ConvertEmailModelToFileRequest) -> multiprocessing.pool.AsyncResult:
+ """Converts Email model to specified format and returns as file
+ Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
+
+ :param request ConvertEmailModelToFileRequest object with parameters
+ :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns file)
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request_async(http_request, 'PUT', 'file')
+
def copy_file(self, request: requests.CopyFileRequest) :
- """Copy file
+ """copy_file
:param request CopyFileRequest object with parameters
@@ -594,7 +694,7 @@ def copy_file(self, request: requests.CopyFileRequest) :
return self.__make_request(http_request, 'PUT', None)
def copy_file_async(self, request: requests.CopyFileRequest) -> multiprocessing.pool.AsyncResult:
- """Copy file
+ """copy_file
Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
:param request CopyFileRequest object with parameters
@@ -604,7 +704,7 @@ def copy_file_async(self, request: requests.CopyFileRequest) -> multiprocessing.
return self.__make_request_async(http_request, 'PUT', None)
def copy_folder(self, request: requests.CopyFolderRequest) :
- """Copy folder
+ """copy_folder
:param request CopyFolderRequest object with parameters
@@ -614,7 +714,7 @@ def copy_folder(self, request: requests.CopyFolderRequest) :
return self.__make_request(http_request, 'PUT', None)
def copy_folder_async(self, request: requests.CopyFolderRequest) -> multiprocessing.pool.AsyncResult:
- """Copy folder
+ """copy_folder
Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
:param request CopyFolderRequest object with parameters
@@ -704,7 +804,7 @@ def create_email_folder_async(self, request: requests.CreateEmailFolderRequest)
return self.__make_request_async(http_request, 'PUT', None)
def create_folder(self, request: requests.CreateFolderRequest) :
- """Create the folder
+ """create_folder
:param request CreateFolderRequest object with parameters
@@ -714,7 +814,7 @@ def create_folder(self, request: requests.CreateFolderRequest) :
return self.__make_request(http_request, 'PUT', None)
def create_folder_async(self, request: requests.CreateFolderRequest) -> multiprocessing.pool.AsyncResult:
- """Create the folder
+ """create_folder
Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
:param request CreateFolderRequest object with parameters
@@ -823,8 +923,28 @@ def delete_email_message_async(self, request: requests.DeleteEmailMessageRequest
http_request = request.to_http_info(self.api_client.configuration)
return self.__make_request_async(http_request, 'DELETE', None)
+ def delete_email_thread(self, request: requests.DeleteEmailThreadRequest) :
+ """Delete thread by id. All messages from thread will also be deleted
+
+
+ :param request DeleteEmailThreadRequest object with parameters
+ :return: None
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request(http_request, 'DELETE', None)
+
+ def delete_email_thread_async(self, request: requests.DeleteEmailThreadRequest) -> multiprocessing.pool.AsyncResult:
+ """Delete thread by id. All messages from thread will also be deleted
+ Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
+
+ :param request DeleteEmailThreadRequest object with parameters
+ :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns None)
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request_async(http_request, 'DELETE', None)
+
def delete_file(self, request: requests.DeleteFileRequest) :
- """Delete file
+ """delete_file
:param request DeleteFileRequest object with parameters
@@ -834,7 +954,7 @@ def delete_file(self, request: requests.DeleteFileRequest) :
return self.__make_request(http_request, 'DELETE', None)
def delete_file_async(self, request: requests.DeleteFileRequest) -> multiprocessing.pool.AsyncResult:
- """Delete file
+ """delete_file
Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
:param request DeleteFileRequest object with parameters
@@ -844,7 +964,7 @@ def delete_file_async(self, request: requests.DeleteFileRequest) -> multiprocess
return self.__make_request_async(http_request, 'DELETE', None)
def delete_folder(self, request: requests.DeleteFolderRequest) :
- """Delete folder
+ """delete_folder
:param request DeleteFolderRequest object with parameters
@@ -854,7 +974,7 @@ def delete_folder(self, request: requests.DeleteFolderRequest) :
return self.__make_request(http_request, 'DELETE', None)
def delete_folder_async(self, request: requests.DeleteFolderRequest) -> multiprocessing.pool.AsyncResult:
- """Delete folder
+ """delete_folder
Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
:param request DeleteFolderRequest object with parameters
@@ -964,7 +1084,7 @@ def discover_email_config_password_async(self, request: requests.DiscoverEmailCo
return self.__make_request_async(http_request, 'POST', 'EmailAccountConfigList')
def download_file(self, request: requests.DownloadFileRequest) -> str:
- """Download file
+ """download_file
:param request DownloadFileRequest object with parameters
@@ -974,7 +1094,7 @@ def download_file(self, request: requests.DownloadFileRequest) -> str:
return self.__make_request(http_request, 'GET', 'file')
def download_file_async(self, request: requests.DownloadFileRequest) -> multiprocessing.pool.AsyncResult:
- """Download file
+ """download_file
Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
:param request DownloadFileRequest object with parameters
@@ -1023,6 +1143,26 @@ def fetch_email_model_async(self, request: requests.FetchEmailModelRequest) -> m
http_request = request.to_http_info(self.api_client.configuration)
return self.__make_request_async(http_request, 'GET', 'EmailDto')
+ def fetch_email_thread_messages(self, request: requests.FetchEmailThreadMessagesRequest) -> ListResponseOfEmailDto:
+ """Get messages from thread by id. All messages are fully fetched. For accounts with CacheFile only cached messages will be returned.
+
+
+ :param request FetchEmailThreadMessagesRequest object with parameters
+ :return: ListResponseOfEmailDto
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request(http_request, 'GET', 'ListResponseOfEmailDto')
+
+ def fetch_email_thread_messages_async(self, request: requests.FetchEmailThreadMessagesRequest) -> multiprocessing.pool.AsyncResult:
+ """Get messages from thread by id. All messages are fully fetched. For accounts with CacheFile only cached messages will be returned.
+ Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
+
+ :param request FetchEmailThreadMessagesRequest object with parameters
+ :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ListResponseOfEmailDto)
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request_async(http_request, 'GET', 'ListResponseOfEmailDto')
+
def get_calendar(self, request: requests.GetCalendarRequest) -> HierarchicalObject:
"""Get calendar file properties
@@ -1043,6 +1183,26 @@ def get_calendar_async(self, request: requests.GetCalendarRequest) -> multiproce
http_request = request.to_http_info(self.api_client.configuration)
return self.__make_request_async(http_request, 'GET', 'HierarchicalObject')
+ def get_calendar_as_file(self, request: requests.GetCalendarAsFileRequest) -> str:
+ """Converts calendar document from storage to specified format and returns as file
+
+
+ :param request GetCalendarAsFileRequest object with parameters
+ :return: str
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request(http_request, 'GET', 'file')
+
+ def get_calendar_as_file_async(self, request: requests.GetCalendarAsFileRequest) -> multiprocessing.pool.AsyncResult:
+ """Converts calendar document from storage to specified format and returns as file
+ Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
+
+ :param request GetCalendarAsFileRequest object with parameters
+ :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns file)
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request_async(http_request, 'GET', 'file')
+
def get_calendar_attachment(self, request: requests.GetCalendarAttachmentRequest) -> str:
"""Get iCalendar document attachment by name
@@ -1063,6 +1223,26 @@ def get_calendar_attachment_async(self, request: requests.GetCalendarAttachmentR
http_request = request.to_http_info(self.api_client.configuration)
return self.__make_request_async(http_request, 'GET', 'file')
+ def get_calendar_file_as_model(self, request: requests.GetCalendarFileAsModelRequest) -> CalendarDto:
+ """Converts calendar document to a model representation
+
+
+ :param request GetCalendarFileAsModelRequest object with parameters
+ :return: CalendarDto
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request(http_request, 'PUT', 'CalendarDto')
+
+ def get_calendar_file_as_model_async(self, request: requests.GetCalendarFileAsModelRequest) -> multiprocessing.pool.AsyncResult:
+ """Converts calendar document to a model representation
+ Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
+
+ :param request GetCalendarFileAsModelRequest object with parameters
+ :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns CalendarDto)
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request_async(http_request, 'PUT', 'CalendarDto')
+
def get_calendar_list(self, request: requests.GetCalendarListRequest) -> ListResponseOfHierarchicalObjectResponse:
"""Get iCalendar files list in folder on storage
@@ -1143,6 +1323,26 @@ def get_calendar_model_list_async(self, request: requests.GetCalendarModelListRe
http_request = request.to_http_info(self.api_client.configuration)
return self.__make_request_async(http_request, 'GET', 'CalendarDtoList')
+ def get_contact_as_file(self, request: requests.GetContactAsFileRequest) -> str:
+ """Converts calendar document from storage to specified format and returns as file
+
+
+ :param request GetContactAsFileRequest object with parameters
+ :return: str
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request(http_request, 'GET', 'file')
+
+ def get_contact_as_file_async(self, request: requests.GetContactAsFileRequest) -> multiprocessing.pool.AsyncResult:
+ """Converts calendar document from storage to specified format and returns as file
+ Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
+
+ :param request GetContactAsFileRequest object with parameters
+ :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns file)
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request_async(http_request, 'GET', 'file')
+
def get_contact_attachment(self, request: requests.GetContactAttachmentRequest) -> str:
"""Get attachment file by name
@@ -1163,6 +1363,26 @@ def get_contact_attachment_async(self, request: requests.GetContactAttachmentReq
http_request = request.to_http_info(self.api_client.configuration)
return self.__make_request_async(http_request, 'GET', 'file')
+ def get_contact_file_as_model(self, request: requests.GetContactFileAsModelRequest) -> ContactDto:
+ """Converts contact document to a model representation
+
+
+ :param request GetContactFileAsModelRequest object with parameters
+ :return: ContactDto
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request(http_request, 'PUT', 'ContactDto')
+
+ def get_contact_file_as_model_async(self, request: requests.GetContactFileAsModelRequest) -> multiprocessing.pool.AsyncResult:
+ """Converts contact document to a model representation
+ Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
+
+ :param request GetContactFileAsModelRequest object with parameters
+ :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ContactDto)
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request_async(http_request, 'PUT', 'ContactDto')
+
def get_contact_list(self, request: requests.GetContactListRequest) -> ListResponseOfHierarchicalObjectResponse:
"""Get contact list from storage folder
@@ -1244,7 +1464,7 @@ def get_contact_properties_async(self, request: requests.GetContactPropertiesReq
return self.__make_request_async(http_request, 'GET', 'HierarchicalObject')
def get_disc_usage(self, request: requests.GetDiscUsageRequest) -> DiscUsage:
- """Get disc usage
+ """get_disc_usage
:param request GetDiscUsageRequest object with parameters
@@ -1254,7 +1474,7 @@ def get_disc_usage(self, request: requests.GetDiscUsageRequest) -> DiscUsage:
return self.__make_request(http_request, 'GET', 'DiscUsage')
def get_disc_usage_async(self, request: requests.GetDiscUsageRequest) -> multiprocessing.pool.AsyncResult:
- """Get disc usage
+ """get_disc_usage
Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
:param request GetDiscUsageRequest object with parameters
@@ -1363,6 +1583,26 @@ def get_email_client_multi_account_async(self, request: requests.GetEmailClientM
http_request = request.to_http_info(self.api_client.configuration)
return self.__make_request_async(http_request, 'GET', 'EmailClientMultiAccount')
+ def get_email_file_as_model(self, request: requests.GetEmailFileAsModelRequest) -> EmailDto:
+ """Converts email document to a model representation
+
+
+ :param request GetEmailFileAsModelRequest object with parameters
+ :return: EmailDto
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request(http_request, 'PUT', 'EmailDto')
+
+ def get_email_file_as_model_async(self, request: requests.GetEmailFileAsModelRequest) -> multiprocessing.pool.AsyncResult:
+ """Converts email document to a model representation
+ Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
+
+ :param request GetEmailFileAsModelRequest object with parameters
+ :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns EmailDto)
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request_async(http_request, 'PUT', 'EmailDto')
+
def get_email_model(self, request: requests.GetEmailModelRequest) -> EmailDto:
"""Get email document.
@@ -1424,7 +1664,7 @@ def get_email_property_async(self, request: requests.GetEmailPropertyRequest) ->
return self.__make_request_async(http_request, 'GET', 'EmailPropertyResponse')
def get_file_versions(self, request: requests.GetFileVersionsRequest) -> FileVersions:
- """Get file versions
+ """get_file_versions
:param request GetFileVersionsRequest object with parameters
@@ -1434,7 +1674,7 @@ def get_file_versions(self, request: requests.GetFileVersionsRequest) -> FileVe
return self.__make_request(http_request, 'GET', 'FileVersions')
def get_file_versions_async(self, request: requests.GetFileVersionsRequest) -> multiprocessing.pool.AsyncResult:
- """Get file versions
+ """get_file_versions
Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
:param request GetFileVersionsRequest object with parameters
@@ -1444,7 +1684,7 @@ def get_file_versions_async(self, request: requests.GetFileVersionsRequest) -> m
return self.__make_request_async(http_request, 'GET', 'FileVersions')
def get_files_list(self, request: requests.GetFilesListRequest) -> FilesList:
- """Get all files and folders within a folder
+ """get_files_list
:param request GetFilesListRequest object with parameters
@@ -1454,7 +1694,7 @@ def get_files_list(self, request: requests.GetFilesListRequest) -> FilesList:
return self.__make_request(http_request, 'GET', 'FilesList')
def get_files_list_async(self, request: requests.GetFilesListRequest) -> multiprocessing.pool.AsyncResult:
- """Get all files and folders within a folder
+ """get_files_list
Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
:param request GetFilesListRequest object with parameters
@@ -1627,8 +1867,68 @@ def list_email_models_async(self, request: requests.ListEmailModelsRequest) -> m
http_request = request.to_http_info(self.api_client.configuration)
return self.__make_request_async(http_request, 'GET', 'ListResponseOfEmailDto')
+ def list_email_threads(self, request: requests.ListEmailThreadsRequest) -> EmailThreadList:
+ """Get message threads from folder. All messages are partly fetched (without email body and other fields)
+
+
+ :param request ListEmailThreadsRequest object with parameters
+ :return: EmailThreadList
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request(http_request, 'GET', 'EmailThreadList')
+
+ def list_email_threads_async(self, request: requests.ListEmailThreadsRequest) -> multiprocessing.pool.AsyncResult:
+ """Get message threads from folder. All messages are partly fetched (without email body and other fields)
+ Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
+
+ :param request ListEmailThreadsRequest object with parameters
+ :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns EmailThreadList)
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request_async(http_request, 'GET', 'EmailThreadList')
+
+ def move_email_message(self, request: requests.MoveEmailMessageRequest) :
+ """Move message to another folder
+
+
+ :param request MoveEmailMessageRequest object with parameters
+ :return: None
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request(http_request, 'PUT', None)
+
+ def move_email_message_async(self, request: requests.MoveEmailMessageRequest) -> multiprocessing.pool.AsyncResult:
+ """Move message to another folder
+ Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
+
+ :param request MoveEmailMessageRequest object with parameters
+ :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns None)
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request_async(http_request, 'PUT', None)
+
+ def move_email_thread(self, request: requests.MoveEmailThreadRequest) :
+ """Move thread to another folder
+
+
+ :param request MoveEmailThreadRequest object with parameters
+ :return: None
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request(http_request, 'PUT', None)
+
+ def move_email_thread_async(self, request: requests.MoveEmailThreadRequest) -> multiprocessing.pool.AsyncResult:
+ """Move thread to another folder
+ Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
+
+ :param request MoveEmailThreadRequest object with parameters
+ :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns None)
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request_async(http_request, 'PUT', None)
+
def move_file(self, request: requests.MoveFileRequest) :
- """Move file
+ """move_file
:param request MoveFileRequest object with parameters
@@ -1638,7 +1938,7 @@ def move_file(self, request: requests.MoveFileRequest) :
return self.__make_request(http_request, 'PUT', None)
def move_file_async(self, request: requests.MoveFileRequest) -> multiprocessing.pool.AsyncResult:
- """Move file
+ """move_file
Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
:param request MoveFileRequest object with parameters
@@ -1648,7 +1948,7 @@ def move_file_async(self, request: requests.MoveFileRequest) -> multiprocessing.
return self.__make_request_async(http_request, 'PUT', None)
def move_folder(self, request: requests.MoveFolderRequest) :
- """Move folder
+ """move_folder
:param request MoveFolderRequest object with parameters
@@ -1658,7 +1958,7 @@ def move_folder(self, request: requests.MoveFolderRequest) :
return self.__make_request(http_request, 'PUT', None)
def move_folder_async(self, request: requests.MoveFolderRequest) -> multiprocessing.pool.AsyncResult:
- """Move folder
+ """move_folder
Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
:param request MoveFolderRequest object with parameters
@@ -1668,7 +1968,7 @@ def move_folder_async(self, request: requests.MoveFolderRequest) -> multiprocess
return self.__make_request_async(http_request, 'PUT', None)
def object_exists(self, request: requests.ObjectExistsRequest) -> ObjectExist:
- """Check if file or folder exists
+ """object_exists
:param request ObjectExistsRequest object with parameters
@@ -1678,7 +1978,7 @@ def object_exists(self, request: requests.ObjectExistsRequest) -> ObjectExist:
return self.__make_request(http_request, 'GET', 'ObjectExist')
def object_exists_async(self, request: requests.ObjectExistsRequest) -> multiprocessing.pool.AsyncResult:
- """Check if file or folder exists
+ """object_exists
Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
:param request ObjectExistsRequest object with parameters
@@ -1927,8 +2227,28 @@ def set_email_read_flag_async(self, request: requests.SetEmailReadFlagRequest) -
http_request = request.to_http_info(self.api_client.configuration)
return self.__make_request_async(http_request, 'POST', None)
+ def set_email_thread_read_flag(self, request: requests.SetEmailThreadReadFlagRequest) :
+ """Mark all messages in thread as read or unread
+
+
+ :param request SetEmailThreadReadFlagRequest object with parameters
+ :return: None
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request(http_request, 'PUT', None)
+
+ def set_email_thread_read_flag_async(self, request: requests.SetEmailThreadReadFlagRequest) -> multiprocessing.pool.AsyncResult:
+ """Mark all messages in thread as read or unread
+ Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
+
+ :param request SetEmailThreadReadFlagRequest object with parameters
+ :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns None)
+ """
+ http_request = request.to_http_info(self.api_client.configuration)
+ return self.__make_request_async(http_request, 'PUT', None)
+
def storage_exists(self, request: requests.StorageExistsRequest) -> StorageExist:
- """Check if storage exists
+ """storage_exists
:param request StorageExistsRequest object with parameters
@@ -1938,7 +2258,7 @@ def storage_exists(self, request: requests.StorageExistsRequest) -> StorageExis
return self.__make_request(http_request, 'GET', 'StorageExist')
def storage_exists_async(self, request: requests.StorageExistsRequest) -> multiprocessing.pool.AsyncResult:
- """Check if storage exists
+ """storage_exists
Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
:param request StorageExistsRequest object with parameters
@@ -2008,7 +2328,7 @@ def update_mapi_properties_async(self, request: requests.UpdateMapiPropertiesReq
return self.__make_request_async(http_request, 'PUT', None)
def upload_file(self, request: requests.UploadFileRequest) -> FilesUploadResult:
- """Upload file
+ """upload_file
:param request UploadFileRequest object with parameters
@@ -2018,7 +2338,7 @@ def upload_file(self, request: requests.UploadFileRequest) -> FilesUploadResult
return self.__make_request(http_request, 'PUT', 'FilesUploadResult')
def upload_file_async(self, request: requests.UploadFileRequest) -> multiprocessing.pool.AsyncResult:
- """Upload file
+ """upload_file
Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult
:param request UploadFileRequest object with parameters
diff --git a/sdk/AsposeEmailCloudSdk/api_client.py b/sdk/AsposeEmailCloudSdk/api_client.py
index f1d71b8..b64d013 100644
--- a/sdk/AsposeEmailCloudSdk/api_client.py
+++ b/sdk/AsposeEmailCloudSdk/api_client.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/configuration.py b/sdk/AsposeEmailCloudSdk/configuration.py
index 0cb4e04..d853080 100644
--- a/sdk/AsposeEmailCloudSdk/configuration.py
+++ b/sdk/AsposeEmailCloudSdk/configuration.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/__init__.py b/sdk/AsposeEmailCloudSdk/models/__init__.py
index 3d11ae4..41d8f67 100644
--- a/sdk/AsposeEmailCloudSdk/models/__init__.py
+++ b/sdk/AsposeEmailCloudSdk/models/__init__.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -71,6 +71,7 @@
from AsposeEmailCloudSdk.models.email_properties import EmailProperties
from AsposeEmailCloudSdk.models.email_property import EmailProperty
from AsposeEmailCloudSdk.models.email_property_response import EmailPropertyResponse
+from AsposeEmailCloudSdk.models.email_thread import EmailThread
from AsposeEmailCloudSdk.models.enum_with_custom_of_associated_person_category import EnumWithCustomOfAssociatedPersonCategory
from AsposeEmailCloudSdk.models.enum_with_custom_of_email_address_category import EnumWithCustomOfEmailAddressCategory
from AsposeEmailCloudSdk.models.enum_with_custom_of_event_category import EnumWithCustomOfEventCategory
@@ -94,6 +95,7 @@
from AsposeEmailCloudSdk.models.list_response_of_contact_dto import ListResponseOfContactDto
from AsposeEmailCloudSdk.models.list_response_of_email_account_config import ListResponseOfEmailAccountConfig
from AsposeEmailCloudSdk.models.list_response_of_email_dto import ListResponseOfEmailDto
+from AsposeEmailCloudSdk.models.list_response_of_email_thread import ListResponseOfEmailThread
from AsposeEmailCloudSdk.models.list_response_of_hierarchical_object import ListResponseOfHierarchicalObject
from AsposeEmailCloudSdk.models.list_response_of_hierarchical_object_response import ListResponseOfHierarchicalObjectResponse
from AsposeEmailCloudSdk.models.list_response_of_mail_server_folder import ListResponseOfMailServerFolder
@@ -138,6 +140,7 @@
from AsposeEmailCloudSdk.models.calendar_dto_list import CalendarDtoList
from AsposeEmailCloudSdk.models.contact_dto_list import ContactDtoList
from AsposeEmailCloudSdk.models.create_folder_base_request import CreateFolderBaseRequest
+from AsposeEmailCloudSdk.models.delete_email_thread_account_rq import DeleteEmailThreadAccountRq
from AsposeEmailCloudSdk.models.delete_folder_base_request import DeleteFolderBaseRequest
from AsposeEmailCloudSdk.models.delete_message_base_request import DeleteMessageBaseRequest
from AsposeEmailCloudSdk.models.discover_email_config_oauth import DiscoverEmailConfigOauth
@@ -146,11 +149,15 @@
from AsposeEmailCloudSdk.models.email_client_account_oauth_credentials import EmailClientAccountOauthCredentials
from AsposeEmailCloudSdk.models.email_client_account_password_credentials import EmailClientAccountPasswordCredentials
from AsposeEmailCloudSdk.models.email_dto_list import EmailDtoList
+from AsposeEmailCloudSdk.models.email_thread_list import EmailThreadList
+from AsposeEmailCloudSdk.models.email_thread_read_flag_rq import EmailThreadReadFlagRq
from AsposeEmailCloudSdk.models.file_version import FileVersion
from AsposeEmailCloudSdk.models.hierarchical_object import HierarchicalObject
from AsposeEmailCloudSdk.models.indexed_hierarchical_object import IndexedHierarchicalObject
from AsposeEmailCloudSdk.models.indexed_primitive_object import IndexedPrimitiveObject
from AsposeEmailCloudSdk.models.linked_resource import LinkedResource
+from AsposeEmailCloudSdk.models.move_email_message_rq import MoveEmailMessageRq
+from AsposeEmailCloudSdk.models.move_email_thread_rq import MoveEmailThreadRq
from AsposeEmailCloudSdk.models.primitive_object import PrimitiveObject
from AsposeEmailCloudSdk.models.save_email_account_request import SaveEmailAccountRequest
from AsposeEmailCloudSdk.models.save_o_auth_email_account_request import SaveOAuthEmailAccountRequest
@@ -189,6 +196,11 @@
from AsposeEmailCloudSdk.models.requests.append_email_model_message_request import AppendEmailModelMessageRequest
from AsposeEmailCloudSdk.models.requests.append_mime_message_request import AppendMimeMessageRequest
from AsposeEmailCloudSdk.models.requests.convert_calendar_model_to_alternate_request import ConvertCalendarModelToAlternateRequest
+from AsposeEmailCloudSdk.models.requests.convert_calendar_model_to_file_request import ConvertCalendarModelToFileRequest
+from AsposeEmailCloudSdk.models.requests.convert_calendar_request import ConvertCalendarRequest
+from AsposeEmailCloudSdk.models.requests.convert_contact_model_to_file_request import ConvertContactModelToFileRequest
+from AsposeEmailCloudSdk.models.requests.convert_contact_request import ConvertContactRequest
+from AsposeEmailCloudSdk.models.requests.convert_email_model_to_file_request import ConvertEmailModelToFileRequest
from AsposeEmailCloudSdk.models.requests.convert_email_request import ConvertEmailRequest
from AsposeEmailCloudSdk.models.requests.copy_file_request import CopyFileRequest
from AsposeEmailCloudSdk.models.requests.copy_folder_request import CopyFolderRequest
@@ -202,6 +214,7 @@
from AsposeEmailCloudSdk.models.requests.delete_contact_property_request import DeleteContactPropertyRequest
from AsposeEmailCloudSdk.models.requests.delete_email_folder_request import DeleteEmailFolderRequest
from AsposeEmailCloudSdk.models.requests.delete_email_message_request import DeleteEmailMessageRequest
+from AsposeEmailCloudSdk.models.requests.delete_email_thread_request import DeleteEmailThreadRequest
from AsposeEmailCloudSdk.models.requests.delete_file_request import DeleteFileRequest
from AsposeEmailCloudSdk.models.requests.delete_folder_request import DeleteFolderRequest
from AsposeEmailCloudSdk.models.requests.delete_mapi_attachment_request import DeleteMapiAttachmentRequest
@@ -212,13 +225,18 @@
from AsposeEmailCloudSdk.models.requests.download_file_request import DownloadFileRequest
from AsposeEmailCloudSdk.models.requests.fetch_email_message_request import FetchEmailMessageRequest
from AsposeEmailCloudSdk.models.requests.fetch_email_model_request import FetchEmailModelRequest
+from AsposeEmailCloudSdk.models.requests.fetch_email_thread_messages_request import FetchEmailThreadMessagesRequest
+from AsposeEmailCloudSdk.models.requests.get_calendar_as_file_request import GetCalendarAsFileRequest
from AsposeEmailCloudSdk.models.requests.get_calendar_attachment_request import GetCalendarAttachmentRequest
+from AsposeEmailCloudSdk.models.requests.get_calendar_file_as_model_request import GetCalendarFileAsModelRequest
from AsposeEmailCloudSdk.models.requests.get_calendar_list_request import GetCalendarListRequest
from AsposeEmailCloudSdk.models.requests.get_calendar_model_as_alternate_request import GetCalendarModelAsAlternateRequest
from AsposeEmailCloudSdk.models.requests.get_calendar_model_list_request import GetCalendarModelListRequest
from AsposeEmailCloudSdk.models.requests.get_calendar_model_request import GetCalendarModelRequest
from AsposeEmailCloudSdk.models.requests.get_calendar_request import GetCalendarRequest
+from AsposeEmailCloudSdk.models.requests.get_contact_as_file_request import GetContactAsFileRequest
from AsposeEmailCloudSdk.models.requests.get_contact_attachment_request import GetContactAttachmentRequest
+from AsposeEmailCloudSdk.models.requests.get_contact_file_as_model_request import GetContactFileAsModelRequest
from AsposeEmailCloudSdk.models.requests.get_contact_list_request import GetContactListRequest
from AsposeEmailCloudSdk.models.requests.get_contact_model_list_request import GetContactModelListRequest
from AsposeEmailCloudSdk.models.requests.get_contact_model_request import GetContactModelRequest
@@ -228,6 +246,7 @@
from AsposeEmailCloudSdk.models.requests.get_email_attachment_request import GetEmailAttachmentRequest
from AsposeEmailCloudSdk.models.requests.get_email_client_account_request import GetEmailClientAccountRequest
from AsposeEmailCloudSdk.models.requests.get_email_client_multi_account_request import GetEmailClientMultiAccountRequest
+from AsposeEmailCloudSdk.models.requests.get_email_file_as_model_request import GetEmailFileAsModelRequest
from AsposeEmailCloudSdk.models.requests.get_email_model_list_request import GetEmailModelListRequest
from AsposeEmailCloudSdk.models.requests.get_email_model_request import GetEmailModelRequest
from AsposeEmailCloudSdk.models.requests.get_email_property_request import GetEmailPropertyRequest
@@ -242,6 +261,9 @@
from AsposeEmailCloudSdk.models.requests.list_email_folders_request import ListEmailFoldersRequest
from AsposeEmailCloudSdk.models.requests.list_email_messages_request import ListEmailMessagesRequest
from AsposeEmailCloudSdk.models.requests.list_email_models_request import ListEmailModelsRequest
+from AsposeEmailCloudSdk.models.requests.list_email_threads_request import ListEmailThreadsRequest
+from AsposeEmailCloudSdk.models.requests.move_email_message_request import MoveEmailMessageRequest
+from AsposeEmailCloudSdk.models.requests.move_email_thread_request import MoveEmailThreadRequest
from AsposeEmailCloudSdk.models.requests.move_file_request import MoveFileRequest
from AsposeEmailCloudSdk.models.requests.move_folder_request import MoveFolderRequest
from AsposeEmailCloudSdk.models.requests.object_exists_request import ObjectExistsRequest
@@ -257,6 +279,7 @@
from AsposeEmailCloudSdk.models.requests.send_email_request import SendEmailRequest
from AsposeEmailCloudSdk.models.requests.set_email_property_request import SetEmailPropertyRequest
from AsposeEmailCloudSdk.models.requests.set_email_read_flag_request import SetEmailReadFlagRequest
+from AsposeEmailCloudSdk.models.requests.set_email_thread_read_flag_request import SetEmailThreadReadFlagRequest
from AsposeEmailCloudSdk.models.requests.storage_exists_request import StorageExistsRequest
from AsposeEmailCloudSdk.models.requests.update_calendar_properties_request import UpdateCalendarPropertiesRequest
from AsposeEmailCloudSdk.models.requests.update_contact_properties_request import UpdateContactPropertiesRequest
diff --git a/sdk/AsposeEmailCloudSdk/models/account_base_request.py b/sdk/AsposeEmailCloudSdk/models/account_base_request.py
index 331cdd9..19635e3 100644
--- a/sdk/AsposeEmailCloudSdk/models/account_base_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/account_base_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -59,8 +59,8 @@ class AccountBaseRequest(object):
def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None):
"""
EmailClient accounts request
- :param first_account (str) First account storage file name for receiving emails (or universal one)
- :param second_account (str) Second account storage file name for sending emails (ignored if first is universal)
+ :param first_account (str) First account storage file name
+ :param second_account (str) Additional email account (for example, FirstAccount could be IMAP, and second one could be SMTP)
:param storage_folder (StorageFolderLocation) Storage folder location of account files
"""
@@ -79,7 +79,7 @@ def __init__(self, first_account: str = None, second_account: str = None, storag
def first_account(self) -> str:
"""Gets the first_account of this AccountBaseRequest.
- First account storage file name for receiving emails (or universal one)
+ First account storage file name
:return: The first_account of this AccountBaseRequest.
:rtype: str
@@ -90,7 +90,7 @@ def first_account(self) -> str:
def first_account(self, first_account: str):
"""Sets the first_account of this AccountBaseRequest.
- First account storage file name for receiving emails (or universal one)
+ First account storage file name
:param first_account: The first_account of this AccountBaseRequest.
:type: str
@@ -105,7 +105,7 @@ def first_account(self, first_account: str):
def second_account(self) -> str:
"""Gets the second_account of this AccountBaseRequest.
- Second account storage file name for sending emails (ignored if first is universal)
+ Additional email account (for example, FirstAccount could be IMAP, and second one could be SMTP)
:return: The second_account of this AccountBaseRequest.
:rtype: str
@@ -116,7 +116,7 @@ def second_account(self) -> str:
def second_account(self, second_account: str):
"""Sets the second_account of this AccountBaseRequest.
- Second account storage file name for sending emails (ignored if first is universal)
+ Additional email account (for example, FirstAccount could be IMAP, and second one could be SMTP)
:param second_account: The second_account of this AccountBaseRequest.
:type: str
diff --git a/sdk/AsposeEmailCloudSdk/models/add_attachment_request.py b/sdk/AsposeEmailCloudSdk/models/add_attachment_request.py
index d63fad8..52c5295 100644
--- a/sdk/AsposeEmailCloudSdk/models/add_attachment_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/add_attachment_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_bcr_base64_image.py b/sdk/AsposeEmailCloudSdk/models/ai_bcr_base64_image.py
index 19133c6..2edbe39 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_base64_image.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_bcr_base64_image.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_bcr_base64_rq.py b/sdk/AsposeEmailCloudSdk/models/ai_bcr_base64_rq.py
index 6181655..01e52a5 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_base64_rq.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_bcr_base64_rq.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_bcr_image.py b/sdk/AsposeEmailCloudSdk/models/ai_bcr_image.py
index 974da6e..2b939f3 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_image.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_bcr_image.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_bcr_image_storage_file.py b/sdk/AsposeEmailCloudSdk/models/ai_bcr_image_storage_file.py
index 6c8906f..aacdc9b 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_image_storage_file.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_bcr_image_storage_file.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -31,7 +31,6 @@
from datetime import datetime
from AsposeEmailCloudSdk.models.ai_bcr_image import AiBcrImage
-from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation
class AiBcrImageStorageFile(AiBcrImage):
@@ -47,7 +46,7 @@ class AiBcrImageStorageFile(AiBcrImage):
"""
swagger_types = {
'is_single': 'bool',
- 'file': 'StorageFileLocation'
+ 'file': 'object'
}
attribute_map = {
@@ -55,11 +54,11 @@ class AiBcrImageStorageFile(AiBcrImage):
'file': 'file'
}
- def __init__(self, is_single: bool = None, file: StorageFileLocation = None):
+ def __init__(self, is_single: bool = None, file: object = None):
"""
Image from storage for recognition
:param is_single (bool) Determines that image contains single VCard or more. Ignored in current version. Multiple cards on image support will be added soon
- :param file (StorageFileLocation) Image location
+ :param file (object) Image location
"""
super(AiBcrImageStorageFile, self).__init__()
@@ -71,24 +70,24 @@ def __init__(self, is_single: bool = None, file: StorageFileLocation = None):
self.file = file
@property
- def file(self) -> StorageFileLocation:
+ def file(self) -> object:
"""Gets the file of this AiBcrImageStorageFile.
Image location
:return: The file of this AiBcrImageStorageFile.
- :rtype: StorageFileLocation
+ :rtype: object
"""
return self._file
@file.setter
- def file(self, file: StorageFileLocation):
+ def file(self, file: object):
"""Sets the file of this AiBcrImageStorageFile.
Image location
:param file: The file of this AiBcrImageStorageFile.
- :type: StorageFileLocation
+ :type: object
"""
self._file = file
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_bcr_ocr_data.py b/sdk/AsposeEmailCloudSdk/models/ai_bcr_ocr_data.py
index fd23c39..64c8ff4 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_ocr_data.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_bcr_ocr_data.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_bcr_ocr_data_part.py b/sdk/AsposeEmailCloudSdk/models/ai_bcr_ocr_data_part.py
index 391bf60..2f6da48 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_ocr_data_part.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_bcr_ocr_data_part.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_bcr_options.py b/sdk/AsposeEmailCloudSdk/models/ai_bcr_options.py
index 4dbaca1..18b0274 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_options.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_bcr_options.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_bcr_parse_ocr_data_rq.py b/sdk/AsposeEmailCloudSdk/models/ai_bcr_parse_ocr_data_rq.py
index 5273859..d723955 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_parse_ocr_data_rq.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_bcr_parse_ocr_data_rq.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_bcr_parse_storage_rq.py b/sdk/AsposeEmailCloudSdk/models/ai_bcr_parse_storage_rq.py
index 1559c48..1215f16 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_parse_storage_rq.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_bcr_parse_storage_rq.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -33,7 +33,6 @@
from AsposeEmailCloudSdk.models.ai_bcr_image_storage_file import AiBcrImageStorageFile
from AsposeEmailCloudSdk.models.ai_bcr_options import AiBcrOptions
from AsposeEmailCloudSdk.models.ai_bcr_storage_image_rq import AiBcrStorageImageRq
-from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation
class AiBcrParseStorageRq(AiBcrStorageImageRq):
@@ -50,7 +49,7 @@ class AiBcrParseStorageRq(AiBcrStorageImageRq):
swagger_types = {
'options': 'AiBcrOptions',
'images': 'list[AiBcrImageStorageFile]',
- 'out_folder': 'StorageFolderLocation'
+ 'out_folder': 'object'
}
attribute_map = {
@@ -59,12 +58,12 @@ class AiBcrParseStorageRq(AiBcrStorageImageRq):
'out_folder': 'outFolder'
}
- def __init__(self, options: AiBcrOptions = None, images: List[AiBcrImageStorageFile] = None, out_folder: StorageFolderLocation = None):
+ def __init__(self, options: AiBcrOptions = None, images: List[AiBcrImageStorageFile] = None, out_folder: object = None):
"""
Parse business card images from Storage request
:param options (AiBcrOptions) Recognition options
:param images (List[AiBcrImageStorageFile]) List of images with business cards
- :param out_folder (StorageFolderLocation) Parse output folder location on storage
+ :param out_folder (object) Parse output folder location on storage
"""
super(AiBcrParseStorageRq, self).__init__()
@@ -78,24 +77,24 @@ def __init__(self, options: AiBcrOptions = None, images: List[AiBcrImageStorageF
self.out_folder = out_folder
@property
- def out_folder(self) -> StorageFolderLocation:
+ def out_folder(self) -> object:
"""Gets the out_folder of this AiBcrParseStorageRq.
Parse output folder location on storage
:return: The out_folder of this AiBcrParseStorageRq.
- :rtype: StorageFolderLocation
+ :rtype: object
"""
return self._out_folder
@out_folder.setter
- def out_folder(self, out_folder: StorageFolderLocation):
+ def out_folder(self, out_folder: object):
"""Sets the out_folder of this AiBcrParseStorageRq.
Parse output folder location on storage
:param out_folder: The out_folder of this AiBcrParseStorageRq.
- :type: StorageFolderLocation
+ :type: object
"""
if out_folder is None:
raise ValueError("Invalid value for `out_folder`, must not be `None`")
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_bcr_rq.py b/sdk/AsposeEmailCloudSdk/models/ai_bcr_rq.py
index 1911d91..5bcdb18 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_rq.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_bcr_rq.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_bcr_storage_image_rq.py b/sdk/AsposeEmailCloudSdk/models/ai_bcr_storage_image_rq.py
index 75536af..4386d1b 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_storage_image_rq.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_bcr_storage_image_rq.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_component.py b/sdk/AsposeEmailCloudSdk/models/ai_name_component.py
index 4cc09ca..b7c91d0 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_name_component.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_name_component.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_cultural_context.py b/sdk/AsposeEmailCloudSdk/models/ai_name_cultural_context.py
index 792e640..37e0e64 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_name_cultural_context.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_name_cultural_context.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_extracted.py b/sdk/AsposeEmailCloudSdk/models/ai_name_extracted.py
index 4e4c4f1..dcc2a73 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_name_extracted.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_name_extracted.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_extracted_component.py b/sdk/AsposeEmailCloudSdk/models/ai_name_extracted_component.py
index d67dafe..ddd8071 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_name_extracted_component.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_name_extracted_component.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_formatted.py b/sdk/AsposeEmailCloudSdk/models/ai_name_formatted.py
index a3919e4..7e9498e 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_name_formatted.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_name_formatted.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_gender_hypothesis.py b/sdk/AsposeEmailCloudSdk/models/ai_name_gender_hypothesis.py
index a0d4b7c..2ab245e 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_name_gender_hypothesis.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_name_gender_hypothesis.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_match_result.py b/sdk/AsposeEmailCloudSdk/models/ai_name_match_result.py
index c959de0..0409c72 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_name_match_result.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_name_match_result.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_mismatch.py b/sdk/AsposeEmailCloudSdk/models/ai_name_mismatch.py
index f7e601b..0bc0922 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_name_mismatch.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_name_mismatch.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_parsed_match_rq.py b/sdk/AsposeEmailCloudSdk/models/ai_name_parsed_match_rq.py
index 61a7060..f7ae6b5 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_name_parsed_match_rq.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_name_parsed_match_rq.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_parsed_rq.py b/sdk/AsposeEmailCloudSdk/models/ai_name_parsed_rq.py
index 2becbdc..32d0d51 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_name_parsed_rq.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_name_parsed_rq.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_weighted.py b/sdk/AsposeEmailCloudSdk/models/ai_name_weighted.py
index 2d1ef9f..bca8bb1 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_name_weighted.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_name_weighted.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_weighted_variants.py b/sdk/AsposeEmailCloudSdk/models/ai_name_weighted_variants.py
index 66e22d1..1f53364 100644
--- a/sdk/AsposeEmailCloudSdk/models/ai_name_weighted_variants.py
+++ b/sdk/AsposeEmailCloudSdk/models/ai_name_weighted_variants.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/alternate_view.py b/sdk/AsposeEmailCloudSdk/models/alternate_view.py
index ab11063..bb593fa 100644
--- a/sdk/AsposeEmailCloudSdk/models/alternate_view.py
+++ b/sdk/AsposeEmailCloudSdk/models/alternate_view.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/append_email_account_base_request.py b/sdk/AsposeEmailCloudSdk/models/append_email_account_base_request.py
index 862b56e..a00fc85 100644
--- a/sdk/AsposeEmailCloudSdk/models/append_email_account_base_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/append_email_account_base_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -64,8 +64,8 @@ class AppendEmailAccountBaseRequest(AccountBaseRequest):
def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, folder: str = None, mark_as_sent: bool = None):
"""
Append email to account request
- :param first_account (str) First account storage file name for receiving emails (or universal one)
- :param second_account (str) Second account storage file name for sending emails (ignored if first is universal)
+ :param first_account (str) First account storage file name
+ :param second_account (str) Additional email account (for example, FirstAccount could be IMAP, and second one could be SMTP)
:param storage_folder (StorageFolderLocation) Storage folder location of account files
:param folder (str) Email account folder to store a message
:param mark_as_sent (bool) Mark message as sent
diff --git a/sdk/AsposeEmailCloudSdk/models/append_email_base_request.py b/sdk/AsposeEmailCloudSdk/models/append_email_base_request.py
index 13be876..53fb01d 100644
--- a/sdk/AsposeEmailCloudSdk/models/append_email_base_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/append_email_base_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -31,7 +31,6 @@
from datetime import datetime
from AsposeEmailCloudSdk.models.append_email_account_base_request import AppendEmailAccountBaseRequest
-from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation
from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation
@@ -52,7 +51,7 @@ class AppendEmailBaseRequest(AppendEmailAccountBaseRequest):
'storage_folder': 'StorageFolderLocation',
'folder': 'str',
'mark_as_sent': 'bool',
- 'email_file': 'StorageFileLocation'
+ 'email_file': 'object'
}
attribute_map = {
@@ -64,15 +63,15 @@ class AppendEmailBaseRequest(AppendEmailAccountBaseRequest):
'email_file': 'emailFile'
}
- def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, folder: str = None, mark_as_sent: bool = None, email_file: StorageFileLocation = None):
+ def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, folder: str = None, mark_as_sent: bool = None, email_file: object = None):
"""
Append email from storage file to account request
- :param first_account (str) First account storage file name for receiving emails (or universal one)
- :param second_account (str) Second account storage file name for sending emails (ignored if first is universal)
+ :param first_account (str) First account storage file name
+ :param second_account (str) Additional email account (for example, FirstAccount could be IMAP, and second one could be SMTP)
:param storage_folder (StorageFolderLocation) Storage folder location of account files
:param folder (str) Email account folder to store a message
:param mark_as_sent (bool) Mark message as sent
- :param email_file (StorageFileLocation) Email document file location in storage
+ :param email_file (object) Email document file location in storage
"""
super(AppendEmailBaseRequest, self).__init__()
@@ -92,24 +91,24 @@ def __init__(self, first_account: str = None, second_account: str = None, storag
self.email_file = email_file
@property
- def email_file(self) -> StorageFileLocation:
+ def email_file(self) -> object:
"""Gets the email_file of this AppendEmailBaseRequest.
Email document file location in storage
:return: The email_file of this AppendEmailBaseRequest.
- :rtype: StorageFileLocation
+ :rtype: object
"""
return self._email_file
@email_file.setter
- def email_file(self, email_file: StorageFileLocation):
+ def email_file(self, email_file: object):
"""Sets the email_file of this AppendEmailBaseRequest.
Email document file location in storage
:param email_file: The email_file of this AppendEmailBaseRequest.
- :type: StorageFileLocation
+ :type: object
"""
if email_file is None:
raise ValueError("Invalid value for `email_file`, must not be `None`")
diff --git a/sdk/AsposeEmailCloudSdk/models/append_email_mime_base_request.py b/sdk/AsposeEmailCloudSdk/models/append_email_mime_base_request.py
index d52b879..1e6e229 100644
--- a/sdk/AsposeEmailCloudSdk/models/append_email_mime_base_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/append_email_mime_base_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -66,8 +66,8 @@ class AppendEmailMimeBaseRequest(AppendEmailAccountBaseRequest):
def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, folder: str = None, mark_as_sent: bool = None, base64_mime_message: str = None):
"""
Append email from MIME string to account request
- :param first_account (str) First account storage file name for receiving emails (or universal one)
- :param second_account (str) Second account storage file name for sending emails (ignored if first is universal)
+ :param first_account (str) First account storage file name
+ :param second_account (str) Additional email account (for example, FirstAccount could be IMAP, and second one could be SMTP)
:param storage_folder (StorageFolderLocation) Storage folder location of account files
:param folder (str) Email account folder to store a message
:param mark_as_sent (bool) Mark message as sent
diff --git a/sdk/AsposeEmailCloudSdk/models/append_email_model_rq.py b/sdk/AsposeEmailCloudSdk/models/append_email_model_rq.py
index db6855f..57a03fa 100644
--- a/sdk/AsposeEmailCloudSdk/models/append_email_model_rq.py
+++ b/sdk/AsposeEmailCloudSdk/models/append_email_model_rq.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -31,7 +31,6 @@
from datetime import datetime
from AsposeEmailCloudSdk.models.append_email_account_base_request import AppendEmailAccountBaseRequest
-from AsposeEmailCloudSdk.models.email_dto import EmailDto
from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation
@@ -52,7 +51,7 @@ class AppendEmailModelRq(AppendEmailAccountBaseRequest):
'storage_folder': 'StorageFolderLocation',
'folder': 'str',
'mark_as_sent': 'bool',
- 'message': 'EmailDto'
+ 'message': 'object'
}
attribute_map = {
@@ -64,15 +63,15 @@ class AppendEmailModelRq(AppendEmailAccountBaseRequest):
'message': 'message'
}
- def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, folder: str = None, mark_as_sent: bool = None, message: EmailDto = None):
+ def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, folder: str = None, mark_as_sent: bool = None, message: object = None):
"""
Append email request
- :param first_account (str) First account storage file name for receiving emails (or universal one)
- :param second_account (str) Second account storage file name for sending emails (ignored if first is universal)
+ :param first_account (str) First account storage file name
+ :param second_account (str) Additional email account (for example, FirstAccount could be IMAP, and second one could be SMTP)
:param storage_folder (StorageFolderLocation) Storage folder location of account files
:param folder (str) Email account folder to store a message
:param mark_as_sent (bool) Mark message as sent
- :param message (EmailDto) Email document
+ :param message (object) Email document
"""
super(AppendEmailModelRq, self).__init__()
@@ -92,24 +91,24 @@ def __init__(self, first_account: str = None, second_account: str = None, storag
self.message = message
@property
- def message(self) -> EmailDto:
+ def message(self) -> object:
"""Gets the message of this AppendEmailModelRq.
Email document
:return: The message of this AppendEmailModelRq.
- :rtype: EmailDto
+ :rtype: object
"""
return self._message
@message.setter
- def message(self, message: EmailDto):
+ def message(self, message: object):
"""Sets the message of this AppendEmailModelRq.
Email document
:param message: The message of this AppendEmailModelRq.
- :type: EmailDto
+ :type: object
"""
if message is None:
raise ValueError("Invalid value for `message`, must not be `None`")
diff --git a/sdk/AsposeEmailCloudSdk/models/associated_person.py b/sdk/AsposeEmailCloudSdk/models/associated_person.py
index fc039a2..062d364 100644
--- a/sdk/AsposeEmailCloudSdk/models/associated_person.py
+++ b/sdk/AsposeEmailCloudSdk/models/associated_person.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/attachment.py b/sdk/AsposeEmailCloudSdk/models/attachment.py
index c7a1f42..0cec7e9 100644
--- a/sdk/AsposeEmailCloudSdk/models/attachment.py
+++ b/sdk/AsposeEmailCloudSdk/models/attachment.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/attachment_base.py b/sdk/AsposeEmailCloudSdk/models/attachment_base.py
index e7f980d..bcdd4b0 100644
--- a/sdk/AsposeEmailCloudSdk/models/attachment_base.py
+++ b/sdk/AsposeEmailCloudSdk/models/attachment_base.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/base_object.py b/sdk/AsposeEmailCloudSdk/models/base_object.py
index 26df1b5..1deed18 100644
--- a/sdk/AsposeEmailCloudSdk/models/base_object.py
+++ b/sdk/AsposeEmailCloudSdk/models/base_object.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/calendar_dto.py b/sdk/AsposeEmailCloudSdk/models/calendar_dto.py
index 25b740c..eba65ab 100644
--- a/sdk/AsposeEmailCloudSdk/models/calendar_dto.py
+++ b/sdk/AsposeEmailCloudSdk/models/calendar_dto.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/calendar_dto_alternate_rq.py b/sdk/AsposeEmailCloudSdk/models/calendar_dto_alternate_rq.py
index ae8ab21..59d204c 100644
--- a/sdk/AsposeEmailCloudSdk/models/calendar_dto_alternate_rq.py
+++ b/sdk/AsposeEmailCloudSdk/models/calendar_dto_alternate_rq.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/calendar_dto_list.py b/sdk/AsposeEmailCloudSdk/models/calendar_dto_list.py
index 034a588..9854a14 100644
--- a/sdk/AsposeEmailCloudSdk/models/calendar_dto_list.py
+++ b/sdk/AsposeEmailCloudSdk/models/calendar_dto_list.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/calendar_reminder.py b/sdk/AsposeEmailCloudSdk/models/calendar_reminder.py
index f284ff1..777c170 100644
--- a/sdk/AsposeEmailCloudSdk/models/calendar_reminder.py
+++ b/sdk/AsposeEmailCloudSdk/models/calendar_reminder.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/contact_dto.py b/sdk/AsposeEmailCloudSdk/models/contact_dto.py
index 51f8612..cb15750 100644
--- a/sdk/AsposeEmailCloudSdk/models/contact_dto.py
+++ b/sdk/AsposeEmailCloudSdk/models/contact_dto.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/contact_dto_list.py b/sdk/AsposeEmailCloudSdk/models/contact_dto_list.py
index dc24862..1f75d68 100644
--- a/sdk/AsposeEmailCloudSdk/models/contact_dto_list.py
+++ b/sdk/AsposeEmailCloudSdk/models/contact_dto_list.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/contact_photo.py b/sdk/AsposeEmailCloudSdk/models/contact_photo.py
index f335276..db0d54b 100644
--- a/sdk/AsposeEmailCloudSdk/models/contact_photo.py
+++ b/sdk/AsposeEmailCloudSdk/models/contact_photo.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/content_type.py b/sdk/AsposeEmailCloudSdk/models/content_type.py
index 92befa1..08eb45d 100644
--- a/sdk/AsposeEmailCloudSdk/models/content_type.py
+++ b/sdk/AsposeEmailCloudSdk/models/content_type.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/content_type_parameter.py b/sdk/AsposeEmailCloudSdk/models/content_type_parameter.py
index d0a6ff9..7e1bf1a 100644
--- a/sdk/AsposeEmailCloudSdk/models/content_type_parameter.py
+++ b/sdk/AsposeEmailCloudSdk/models/content_type_parameter.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/create_email_request.py b/sdk/AsposeEmailCloudSdk/models/create_email_request.py
index 3a14d9d..68b2b2b 100644
--- a/sdk/AsposeEmailCloudSdk/models/create_email_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/create_email_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/create_folder_base_request.py b/sdk/AsposeEmailCloudSdk/models/create_folder_base_request.py
index 8dfb4b8..43e7008 100644
--- a/sdk/AsposeEmailCloudSdk/models/create_folder_base_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/create_folder_base_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -64,8 +64,8 @@ class CreateFolderBaseRequest(AccountBaseRequest):
def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, folder: str = None, parent_folder: str = None):
"""
Create folder request
- :param first_account (str) First account storage file name for receiving emails (or universal one)
- :param second_account (str) Second account storage file name for sending emails (ignored if first is universal)
+ :param first_account (str) First account storage file name
+ :param second_account (str) Additional email account (for example, FirstAccount could be IMAP, and second one could be SMTP)
:param storage_folder (StorageFolderLocation) Storage folder location of account files
:param folder (str) Folder name
:param parent_folder (str) Parent folder path
diff --git a/sdk/AsposeEmailCloudSdk/models/customer_event.py b/sdk/AsposeEmailCloudSdk/models/customer_event.py
index 9d8947b..ac4bc0b 100644
--- a/sdk/AsposeEmailCloudSdk/models/customer_event.py
+++ b/sdk/AsposeEmailCloudSdk/models/customer_event.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/delete_email_thread_account_rq.py b/sdk/AsposeEmailCloudSdk/models/delete_email_thread_account_rq.py
new file mode 100644
index 0000000..57612fc
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/delete_email_thread_account_rq.py
@@ -0,0 +1,146 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+
+import pprint
+import re
+import six
+from typing import List, Set, Dict, Tuple, Optional
+from datetime import datetime
+
+from AsposeEmailCloudSdk.models.account_base_request import AccountBaseRequest
+from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation
+
+
+class DeleteEmailThreadAccountRq(AccountBaseRequest):
+ """Delete thread request
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'first_account': 'str',
+ 'second_account': 'str',
+ 'storage_folder': 'StorageFolderLocation',
+ 'folder': 'str'
+ }
+
+ attribute_map = {
+ 'first_account': 'firstAccount',
+ 'second_account': 'secondAccount',
+ 'storage_folder': 'storageFolder',
+ 'folder': 'folder'
+ }
+
+ def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, folder: str = None):
+ """
+ Delete thread request
+ :param first_account (str) First account storage file name
+ :param second_account (str) Additional email account (for example, FirstAccount could be IMAP, and second one could be SMTP)
+ :param storage_folder (StorageFolderLocation) Storage folder location of account files
+ :param folder (str) Specifies account folder to get thread from
+ """
+ super(DeleteEmailThreadAccountRq, self).__init__()
+
+ self._folder = None
+
+ if first_account is not None:
+ self.first_account = first_account
+ if second_account is not None:
+ self.second_account = second_account
+ if storage_folder is not None:
+ self.storage_folder = storage_folder
+ if folder is not None:
+ self.folder = folder
+
+ @property
+ def folder(self) -> str:
+ """Gets the folder of this DeleteEmailThreadAccountRq.
+
+ Specifies account folder to get thread from
+
+ :return: The folder of this DeleteEmailThreadAccountRq.
+ :rtype: str
+ """
+ return self._folder
+
+ @folder.setter
+ def folder(self, folder: str):
+ """Sets the folder of this DeleteEmailThreadAccountRq.
+
+ Specifies account folder to get thread from
+
+ :param folder: The folder of this DeleteEmailThreadAccountRq.
+ :type: str
+ """
+ self._folder = folder
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, DeleteEmailThreadAccountRq):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/sdk/AsposeEmailCloudSdk/models/delete_folder_base_request.py b/sdk/AsposeEmailCloudSdk/models/delete_folder_base_request.py
index f3edde1..6a699e1 100644
--- a/sdk/AsposeEmailCloudSdk/models/delete_folder_base_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/delete_folder_base_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -64,8 +64,8 @@ class DeleteFolderBaseRequest(AccountBaseRequest):
def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, folder: str = None, delete_permanently: bool = None):
"""
Delete folder request
- :param first_account (str) First account storage file name for receiving emails (or universal one)
- :param second_account (str) Second account storage file name for sending emails (ignored if first is universal)
+ :param first_account (str) First account storage file name
+ :param second_account (str) Additional email account (for example, FirstAccount could be IMAP, and second one could be SMTP)
:param storage_folder (StorageFolderLocation) Storage folder location of account files
:param folder (str) Folder name
:param delete_permanently (bool) Specifies that folder should be deleted permanently
diff --git a/sdk/AsposeEmailCloudSdk/models/delete_message_base_request.py b/sdk/AsposeEmailCloudSdk/models/delete_message_base_request.py
index c943bd8..54678b7 100644
--- a/sdk/AsposeEmailCloudSdk/models/delete_message_base_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/delete_message_base_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -50,6 +50,7 @@ class DeleteMessageBaseRequest(AccountBaseRequest):
'second_account': 'str',
'storage_folder': 'StorageFolderLocation',
'message_id': 'str',
+ 'folder': 'str',
'delete_permanently': 'bool'
}
@@ -58,21 +59,24 @@ class DeleteMessageBaseRequest(AccountBaseRequest):
'second_account': 'secondAccount',
'storage_folder': 'storageFolder',
'message_id': 'messageId',
+ 'folder': 'folder',
'delete_permanently': 'deletePermanently'
}
- def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, message_id: str = None, delete_permanently: bool = None):
+ def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, message_id: str = None, folder: str = None, delete_permanently: bool = None):
"""
Delete message request
- :param first_account (str) First account storage file name for receiving emails (or universal one)
- :param second_account (str) Second account storage file name for sending emails (ignored if first is universal)
+ :param first_account (str) First account storage file name
+ :param second_account (str) Additional email account (for example, FirstAccount could be IMAP, and second one could be SMTP)
:param storage_folder (StorageFolderLocation) Storage folder location of account files
:param message_id (str) Message identifier
+ :param folder (str) Account folder where message located. Should be specified for some accounts
:param delete_permanently (bool) Specifies that message should be deleted permanently
"""
super(DeleteMessageBaseRequest, self).__init__()
self._message_id = None
+ self._folder = None
self._delete_permanently = None
if first_account is not None:
@@ -83,6 +87,8 @@ def __init__(self, first_account: str = None, second_account: str = None, storag
self.storage_folder = storage_folder
if message_id is not None:
self.message_id = message_id
+ if folder is not None:
+ self.folder = folder
if delete_permanently is not None:
self.delete_permanently = delete_permanently
@@ -112,6 +118,28 @@ def message_id(self, message_id: str):
raise ValueError("Invalid value for `message_id`, length must be greater than or equal to `1`")
self._message_id = message_id
+ @property
+ def folder(self) -> str:
+ """Gets the folder of this DeleteMessageBaseRequest.
+
+ Account folder where message located. Should be specified for some accounts
+
+ :return: The folder of this DeleteMessageBaseRequest.
+ :rtype: str
+ """
+ return self._folder
+
+ @folder.setter
+ def folder(self, folder: str):
+ """Sets the folder of this DeleteMessageBaseRequest.
+
+ Account folder where message located. Should be specified for some accounts
+
+ :param folder: The folder of this DeleteMessageBaseRequest.
+ :type: str
+ """
+ self._folder = folder
+
@property
def delete_permanently(self) -> bool:
"""Gets the delete_permanently of this DeleteMessageBaseRequest.
diff --git a/sdk/AsposeEmailCloudSdk/models/disc_usage.py b/sdk/AsposeEmailCloudSdk/models/disc_usage.py
index b3fa93d..2c8daa6 100644
--- a/sdk/AsposeEmailCloudSdk/models/disc_usage.py
+++ b/sdk/AsposeEmailCloudSdk/models/disc_usage.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -32,7 +32,7 @@
class DiscUsage(object):
- """Class for disc space information.
+ """
"""
"""
@@ -54,9 +54,9 @@ class DiscUsage(object):
def __init__(self, used_size: int = None, total_size: int = None):
"""
- Class for disc space information.
- :param used_size (int) Application used disc space.
- :param total_size (int) Total disc space.
+
+ :param used_size (int)
+ :param total_size (int)
"""
self._used_size = None
@@ -71,7 +71,6 @@ def __init__(self, used_size: int = None, total_size: int = None):
def used_size(self) -> int:
"""Gets the used_size of this DiscUsage.
- Application used disc space.
:return: The used_size of this DiscUsage.
:rtype: int
@@ -82,7 +81,6 @@ def used_size(self) -> int:
def used_size(self, used_size: int):
"""Sets the used_size of this DiscUsage.
- Application used disc space.
:param used_size: The used_size of this DiscUsage.
:type: int
@@ -95,7 +93,6 @@ def used_size(self, used_size: int):
def total_size(self) -> int:
"""Gets the total_size of this DiscUsage.
- Total disc space.
:return: The total_size of this DiscUsage.
:rtype: int
@@ -106,7 +103,6 @@ def total_size(self) -> int:
def total_size(self, total_size: int):
"""Sets the total_size of this DiscUsage.
- Total disc space.
:param total_size: The total_size of this DiscUsage.
:type: int
diff --git a/sdk/AsposeEmailCloudSdk/models/discover_email_config_oauth.py b/sdk/AsposeEmailCloudSdk/models/discover_email_config_oauth.py
index 316ce0f..853c1fc 100644
--- a/sdk/AsposeEmailCloudSdk/models/discover_email_config_oauth.py
+++ b/sdk/AsposeEmailCloudSdk/models/discover_email_config_oauth.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/discover_email_config_password.py b/sdk/AsposeEmailCloudSdk/models/discover_email_config_password.py
index 4dd9e23..9109a80 100644
--- a/sdk/AsposeEmailCloudSdk/models/discover_email_config_password.py
+++ b/sdk/AsposeEmailCloudSdk/models/discover_email_config_password.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/discover_email_config_rq.py b/sdk/AsposeEmailCloudSdk/models/discover_email_config_rq.py
index 1f9cc9e..43e765a 100644
--- a/sdk/AsposeEmailCloudSdk/models/discover_email_config_rq.py
+++ b/sdk/AsposeEmailCloudSdk/models/discover_email_config_rq.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/email_account_config.py b/sdk/AsposeEmailCloudSdk/models/email_account_config.py
index 6e85846..6248b8f 100644
--- a/sdk/AsposeEmailCloudSdk/models/email_account_config.py
+++ b/sdk/AsposeEmailCloudSdk/models/email_account_config.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/email_account_config_list.py b/sdk/AsposeEmailCloudSdk/models/email_account_config_list.py
index 1322ba1..aa570bf 100644
--- a/sdk/AsposeEmailCloudSdk/models/email_account_config_list.py
+++ b/sdk/AsposeEmailCloudSdk/models/email_account_config_list.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/email_account_request.py b/sdk/AsposeEmailCloudSdk/models/email_account_request.py
index c82b6e1..4abfe9d 100644
--- a/sdk/AsposeEmailCloudSdk/models/email_account_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/email_account_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/email_address.py b/sdk/AsposeEmailCloudSdk/models/email_address.py
index c22bbef..6ad45c1 100644
--- a/sdk/AsposeEmailCloudSdk/models/email_address.py
+++ b/sdk/AsposeEmailCloudSdk/models/email_address.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -49,7 +49,8 @@ class EmailAddress(object):
'display_name': 'str',
'preferred': 'bool',
'routing_type': 'str',
- 'address': 'str'
+ 'address': 'str',
+ 'original_address_string': 'str'
}
attribute_map = {
@@ -57,10 +58,11 @@ class EmailAddress(object):
'display_name': 'displayName',
'preferred': 'preferred',
'routing_type': 'routingType',
- 'address': 'address'
+ 'address': 'address',
+ 'original_address_string': 'originalAddressString'
}
- def __init__(self, category: EnumWithCustomOfEmailAddressCategory = None, display_name: str = None, preferred: bool = None, routing_type: str = None, address: str = None):
+ def __init__(self, category: EnumWithCustomOfEmailAddressCategory = None, display_name: str = None, preferred: bool = None, routing_type: str = None, address: str = None, original_address_string: str = None):
"""
Email address.
:param category (EnumWithCustomOfEmailAddressCategory) Address category.
@@ -68,6 +70,7 @@ def __init__(self, category: EnumWithCustomOfEmailAddressCategory = None, displa
:param preferred (bool) Defines whether email address is preferred.
:param routing_type (str) A routing type for an email.
:param address (str) Email address.
+ :param original_address_string (str) The original e-mail address string
"""
self._category = None
@@ -75,6 +78,7 @@ def __init__(self, category: EnumWithCustomOfEmailAddressCategory = None, displa
self._preferred = None
self._routing_type = None
self._address = None
+ self._original_address_string = None
if category is not None:
self.category = category
@@ -86,6 +90,8 @@ def __init__(self, category: EnumWithCustomOfEmailAddressCategory = None, displa
self.routing_type = routing_type
if address is not None:
self.address = address
+ if original_address_string is not None:
+ self.original_address_string = original_address_string
@property
def category(self) -> EnumWithCustomOfEmailAddressCategory:
@@ -199,6 +205,28 @@ def address(self, address: str):
"""
self._address = address
+ @property
+ def original_address_string(self) -> str:
+ """Gets the original_address_string of this EmailAddress.
+
+ The original e-mail address string
+
+ :return: The original_address_string of this EmailAddress.
+ :rtype: str
+ """
+ return self._original_address_string
+
+ @original_address_string.setter
+ def original_address_string(self, original_address_string: str):
+ """Sets the original_address_string of this EmailAddress.
+
+ The original e-mail address string
+
+ :param original_address_string: The original_address_string of this EmailAddress.
+ :type: str
+ """
+ self._original_address_string = original_address_string
+
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
diff --git a/sdk/AsposeEmailCloudSdk/models/email_client_account.py b/sdk/AsposeEmailCloudSdk/models/email_client_account.py
index d8b534a..7ffce35 100644
--- a/sdk/AsposeEmailCloudSdk/models/email_client_account.py
+++ b/sdk/AsposeEmailCloudSdk/models/email_client_account.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -31,6 +31,7 @@
from datetime import datetime
from AsposeEmailCloudSdk.models.email_client_account_credentials import EmailClientAccountCredentials
+from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation
class EmailClientAccount(object):
@@ -49,7 +50,8 @@ class EmailClientAccount(object):
'port': 'int',
'security_options': 'str',
'protocol_type': 'str',
- 'credentials': 'EmailClientAccountCredentials'
+ 'credentials': 'EmailClientAccountCredentials',
+ 'cache_file': 'StorageFileLocation'
}
attribute_map = {
@@ -57,10 +59,11 @@ class EmailClientAccount(object):
'port': 'port',
'security_options': 'securityOptions',
'protocol_type': 'protocolType',
- 'credentials': 'credentials'
+ 'credentials': 'credentials',
+ 'cache_file': 'cacheFile'
}
- def __init__(self, host: str = None, port: int = None, security_options: str = None, protocol_type: str = None, credentials: EmailClientAccountCredentials = None):
+ def __init__(self, host: str = None, port: int = None, security_options: str = None, protocol_type: str = None, credentials: EmailClientAccountCredentials = None, cache_file: StorageFileLocation = None):
"""
A universal email client account
:param host (str) Mail server host name or IP address
@@ -68,6 +71,7 @@ def __init__(self, host: str = None, port: int = None, security_options: str = N
:param security_options (str) Email account security mode Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
:param protocol_type (str) Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav
:param credentials (EmailClientAccountCredentials) Email client account credentials
+ :param cache_file (StorageFileLocation) File with messages cache. Used to provide extra functions, which are not supported by account
"""
self._host = None
@@ -75,6 +79,7 @@ def __init__(self, host: str = None, port: int = None, security_options: str = N
self._security_options = None
self._protocol_type = None
self._credentials = None
+ self._cache_file = None
if host is not None:
self.host = host
@@ -86,6 +91,8 @@ def __init__(self, host: str = None, port: int = None, security_options: str = N
self.protocol_type = protocol_type
if credentials is not None:
self.credentials = credentials
+ if cache_file is not None:
+ self.cache_file = cache_file
@property
def host(self) -> str:
@@ -213,6 +220,28 @@ def credentials(self, credentials: EmailClientAccountCredentials):
raise ValueError("Invalid value for `credentials`, must not be `None`")
self._credentials = credentials
+ @property
+ def cache_file(self) -> StorageFileLocation:
+ """Gets the cache_file of this EmailClientAccount.
+
+ File with messages cache. Used to provide extra functions, which are not supported by account
+
+ :return: The cache_file of this EmailClientAccount.
+ :rtype: StorageFileLocation
+ """
+ return self._cache_file
+
+ @cache_file.setter
+ def cache_file(self, cache_file: StorageFileLocation):
+ """Sets the cache_file of this EmailClientAccount.
+
+ File with messages cache. Used to provide extra functions, which are not supported by account
+
+ :param cache_file: The cache_file of this EmailClientAccount.
+ :type: StorageFileLocation
+ """
+ self._cache_file = cache_file
+
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
diff --git a/sdk/AsposeEmailCloudSdk/models/email_client_account_credentials.py b/sdk/AsposeEmailCloudSdk/models/email_client_account_credentials.py
index b638ef6..397b40d 100644
--- a/sdk/AsposeEmailCloudSdk/models/email_client_account_credentials.py
+++ b/sdk/AsposeEmailCloudSdk/models/email_client_account_credentials.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/email_client_account_oauth_credentials.py b/sdk/AsposeEmailCloudSdk/models/email_client_account_oauth_credentials.py
index d0582ea..c832743 100644
--- a/sdk/AsposeEmailCloudSdk/models/email_client_account_oauth_credentials.py
+++ b/sdk/AsposeEmailCloudSdk/models/email_client_account_oauth_credentials.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/email_client_account_password_credentials.py b/sdk/AsposeEmailCloudSdk/models/email_client_account_password_credentials.py
index d773d51..bd0c233 100644
--- a/sdk/AsposeEmailCloudSdk/models/email_client_account_password_credentials.py
+++ b/sdk/AsposeEmailCloudSdk/models/email_client_account_password_credentials.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/email_client_multi_account.py b/sdk/AsposeEmailCloudSdk/models/email_client_multi_account.py
index 277bada..e59574a 100644
--- a/sdk/AsposeEmailCloudSdk/models/email_client_multi_account.py
+++ b/sdk/AsposeEmailCloudSdk/models/email_client_multi_account.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/email_document.py b/sdk/AsposeEmailCloudSdk/models/email_document.py
index a00afeb..7fdb5eb 100644
--- a/sdk/AsposeEmailCloudSdk/models/email_document.py
+++ b/sdk/AsposeEmailCloudSdk/models/email_document.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/email_document_response.py b/sdk/AsposeEmailCloudSdk/models/email_document_response.py
index d4a6dd3..d74aad6 100644
--- a/sdk/AsposeEmailCloudSdk/models/email_document_response.py
+++ b/sdk/AsposeEmailCloudSdk/models/email_document_response.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/email_dto.py b/sdk/AsposeEmailCloudSdk/models/email_dto.py
index f3242a7..1e8d3c6 100644
--- a/sdk/AsposeEmailCloudSdk/models/email_dto.py
+++ b/sdk/AsposeEmailCloudSdk/models/email_dto.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/email_dto_list.py b/sdk/AsposeEmailCloudSdk/models/email_dto_list.py
index 7445a9c..abc4d37 100644
--- a/sdk/AsposeEmailCloudSdk/models/email_dto_list.py
+++ b/sdk/AsposeEmailCloudSdk/models/email_dto_list.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -35,7 +35,7 @@
class EmailDtoList(ListResponseOfStorageModelOfEmailDto):
- """List of email documents
+ """List of email documents from storage
"""
"""
@@ -55,7 +55,7 @@ class EmailDtoList(ListResponseOfStorageModelOfEmailDto):
def __init__(self, value: List[StorageModelOfEmailDto] = None):
"""
- List of email documents
+ List of email documents from storage
:param value (List[StorageModelOfEmailDto])
"""
super(EmailDtoList, self).__init__()
diff --git a/sdk/AsposeEmailCloudSdk/models/email_properties.py b/sdk/AsposeEmailCloudSdk/models/email_properties.py
index 8af5865..885c66a 100644
--- a/sdk/AsposeEmailCloudSdk/models/email_properties.py
+++ b/sdk/AsposeEmailCloudSdk/models/email_properties.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/email_property.py b/sdk/AsposeEmailCloudSdk/models/email_property.py
index 57bd2de..2a886fc 100644
--- a/sdk/AsposeEmailCloudSdk/models/email_property.py
+++ b/sdk/AsposeEmailCloudSdk/models/email_property.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/email_property_response.py b/sdk/AsposeEmailCloudSdk/models/email_property_response.py
index 95c16f7..59e56d4 100644
--- a/sdk/AsposeEmailCloudSdk/models/email_property_response.py
+++ b/sdk/AsposeEmailCloudSdk/models/email_property_response.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/email_thread.py b/sdk/AsposeEmailCloudSdk/models/email_thread.py
new file mode 100644
index 0000000..106ff1b
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/email_thread.py
@@ -0,0 +1,213 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+
+import pprint
+import re
+import six
+from typing import List, Set, Dict, Tuple, Optional
+from datetime import datetime
+
+from AsposeEmailCloudSdk.models.email_dto import EmailDto
+
+
+class EmailThread(object):
+ """Email messages thread
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'id': 'str',
+ 'subject': 'str',
+ 'messages': 'list[EmailDto]',
+ 'folder': 'str'
+ }
+
+ attribute_map = {
+ 'id': 'id',
+ 'subject': 'subject',
+ 'messages': 'messages',
+ 'folder': 'folder'
+ }
+
+ def __init__(self, id: str = None, subject: str = None, messages: List[EmailDto] = None, folder: str = None):
+ """
+ Email messages thread
+ :param id (str) Thread identifier
+ :param subject (str) Thread subject
+ :param messages (List[EmailDto]) List of messages in thread
+ :param folder (str) Thread folder location
+ """
+
+ self._id = None
+ self._subject = None
+ self._messages = None
+ self._folder = None
+
+ if id is not None:
+ self.id = id
+ if subject is not None:
+ self.subject = subject
+ if messages is not None:
+ self.messages = messages
+ if folder is not None:
+ self.folder = folder
+
+ @property
+ def id(self) -> str:
+ """Gets the id of this EmailThread.
+
+ Thread identifier
+
+ :return: The id of this EmailThread.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id: str):
+ """Sets the id of this EmailThread.
+
+ Thread identifier
+
+ :param id: The id of this EmailThread.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def subject(self) -> str:
+ """Gets the subject of this EmailThread.
+
+ Thread subject
+
+ :return: The subject of this EmailThread.
+ :rtype: str
+ """
+ return self._subject
+
+ @subject.setter
+ def subject(self, subject: str):
+ """Sets the subject of this EmailThread.
+
+ Thread subject
+
+ :param subject: The subject of this EmailThread.
+ :type: str
+ """
+ self._subject = subject
+
+ @property
+ def messages(self) -> List[EmailDto]:
+ """Gets the messages of this EmailThread.
+
+ List of messages in thread
+
+ :return: The messages of this EmailThread.
+ :rtype: list[EmailDto]
+ """
+ return self._messages
+
+ @messages.setter
+ def messages(self, messages: List[EmailDto]):
+ """Sets the messages of this EmailThread.
+
+ List of messages in thread
+
+ :param messages: The messages of this EmailThread.
+ :type: list[EmailDto]
+ """
+ self._messages = messages
+
+ @property
+ def folder(self) -> str:
+ """Gets the folder of this EmailThread.
+
+ Thread folder location
+
+ :return: The folder of this EmailThread.
+ :rtype: str
+ """
+ return self._folder
+
+ @folder.setter
+ def folder(self, folder: str):
+ """Sets the folder of this EmailThread.
+
+ Thread folder location
+
+ :param folder: The folder of this EmailThread.
+ :type: str
+ """
+ self._folder = folder
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, EmailThread):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/sdk/AsposeEmailCloudSdk/models/email_thread_list.py b/sdk/AsposeEmailCloudSdk/models/email_thread_list.py
new file mode 100644
index 0000000..bb93c43
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/email_thread_list.py
@@ -0,0 +1,107 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+
+import pprint
+import re
+import six
+from typing import List, Set, Dict, Tuple, Optional
+from datetime import datetime
+
+from AsposeEmailCloudSdk.models.email_thread import EmailThread
+from AsposeEmailCloudSdk.models.list_response_of_email_thread import ListResponseOfEmailThread
+
+
+class EmailThreadList(ListResponseOfEmailThread):
+ """List of email threads
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'value': 'list[EmailThread]'
+ }
+
+ attribute_map = {
+ 'value': 'value'
+ }
+
+ def __init__(self, value: List[EmailThread] = None):
+ """
+ List of email threads
+ :param value (List[EmailThread])
+ """
+ super(EmailThreadList, self).__init__()
+
+ if value is not None:
+ self.value = value
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, EmailThreadList):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/sdk/AsposeEmailCloudSdk/models/email_thread_read_flag_rq.py b/sdk/AsposeEmailCloudSdk/models/email_thread_read_flag_rq.py
new file mode 100644
index 0000000..7c06b26
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/email_thread_read_flag_rq.py
@@ -0,0 +1,176 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+
+import pprint
+import re
+import six
+from typing import List, Set, Dict, Tuple, Optional
+from datetime import datetime
+
+from AsposeEmailCloudSdk.models.account_base_request import AccountBaseRequest
+from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation
+
+
+class EmailThreadReadFlagRq(AccountBaseRequest):
+ """Request to mark all messages in thread as read or unread
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'first_account': 'str',
+ 'second_account': 'str',
+ 'storage_folder': 'StorageFolderLocation',
+ 'is_read': 'bool',
+ 'folder': 'str'
+ }
+
+ attribute_map = {
+ 'first_account': 'firstAccount',
+ 'second_account': 'secondAccount',
+ 'storage_folder': 'storageFolder',
+ 'is_read': 'isRead',
+ 'folder': 'folder'
+ }
+
+ def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, is_read: bool = None, folder: str = None):
+ """
+ Request to mark all messages in thread as read or unread
+ :param first_account (str) First account storage file name
+ :param second_account (str) Additional email account (for example, FirstAccount could be IMAP, and second one could be SMTP)
+ :param storage_folder (StorageFolderLocation) Storage folder location of account files
+ :param is_read (bool) Read flag to set. \"true\" by default
+ :param folder (str) Specifies account folder to get thread from
+ """
+ super(EmailThreadReadFlagRq, self).__init__()
+
+ self._is_read = None
+ self._folder = None
+
+ if first_account is not None:
+ self.first_account = first_account
+ if second_account is not None:
+ self.second_account = second_account
+ if storage_folder is not None:
+ self.storage_folder = storage_folder
+ if is_read is not None:
+ self.is_read = is_read
+ if folder is not None:
+ self.folder = folder
+
+ @property
+ def is_read(self) -> bool:
+ """Gets the is_read of this EmailThreadReadFlagRq.
+
+ Read flag to set. \"true\" by default
+
+ :return: The is_read of this EmailThreadReadFlagRq.
+ :rtype: bool
+ """
+ return self._is_read
+
+ @is_read.setter
+ def is_read(self, is_read: bool):
+ """Sets the is_read of this EmailThreadReadFlagRq.
+
+ Read flag to set. \"true\" by default
+
+ :param is_read: The is_read of this EmailThreadReadFlagRq.
+ :type: bool
+ """
+ if is_read is None:
+ raise ValueError("Invalid value for `is_read`, must not be `None`")
+ self._is_read = is_read
+
+ @property
+ def folder(self) -> str:
+ """Gets the folder of this EmailThreadReadFlagRq.
+
+ Specifies account folder to get thread from
+
+ :return: The folder of this EmailThreadReadFlagRq.
+ :rtype: str
+ """
+ return self._folder
+
+ @folder.setter
+ def folder(self, folder: str):
+ """Sets the folder of this EmailThreadReadFlagRq.
+
+ Specifies account folder to get thread from
+
+ :param folder: The folder of this EmailThreadReadFlagRq.
+ :type: str
+ """
+ self._folder = folder
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, EmailThreadReadFlagRq):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_associated_person_category.py b/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_associated_person_category.py
index 86afdeb..694eb2b 100644
--- a/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_associated_person_category.py
+++ b/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_associated_person_category.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_email_address_category.py b/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_email_address_category.py
index d464795..95b4b24 100644
--- a/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_email_address_category.py
+++ b/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_email_address_category.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_event_category.py b/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_event_category.py
index fa01d40..f987f48 100644
--- a/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_event_category.py
+++ b/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_event_category.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_instant_messenger_category.py b/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_instant_messenger_category.py
index eae739b..285050d 100644
--- a/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_instant_messenger_category.py
+++ b/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_instant_messenger_category.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_phone_number_category.py b/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_phone_number_category.py
index 2dc389b..d5ebd85 100644
--- a/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_phone_number_category.py
+++ b/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_phone_number_category.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_postal_address_category.py b/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_postal_address_category.py
index b53e432..fd57b2a 100644
--- a/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_postal_address_category.py
+++ b/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_postal_address_category.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_url_category.py b/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_url_category.py
index 7fb1aae..862e639 100644
--- a/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_url_category.py
+++ b/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_url_category.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/error.py b/sdk/AsposeEmailCloudSdk/models/error.py
index fd1ba46..b08269b 100644
--- a/sdk/AsposeEmailCloudSdk/models/error.py
+++ b/sdk/AsposeEmailCloudSdk/models/error.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -34,7 +34,7 @@
class Error(object):
- """Error
+ """
"""
"""
@@ -60,11 +60,11 @@ class Error(object):
def __init__(self, code: str = None, message: str = None, description: str = None, inner_error: ErrorDetails = None):
"""
- Error
- :param code (str) Code
- :param message (str) Message
- :param description (str) Description
- :param inner_error (ErrorDetails) Inner Error
+
+ :param code (str)
+ :param message (str)
+ :param description (str)
+ :param inner_error (ErrorDetails)
"""
self._code = None
@@ -85,7 +85,6 @@ def __init__(self, code: str = None, message: str = None, description: str = Non
def code(self) -> str:
"""Gets the code of this Error.
- Code
:return: The code of this Error.
:rtype: str
@@ -96,7 +95,6 @@ def code(self) -> str:
def code(self, code: str):
"""Sets the code of this Error.
- Code
:param code: The code of this Error.
:type: str
@@ -107,7 +105,6 @@ def code(self, code: str):
def message(self) -> str:
"""Gets the message of this Error.
- Message
:return: The message of this Error.
:rtype: str
@@ -118,7 +115,6 @@ def message(self) -> str:
def message(self, message: str):
"""Sets the message of this Error.
- Message
:param message: The message of this Error.
:type: str
@@ -129,7 +125,6 @@ def message(self, message: str):
def description(self) -> str:
"""Gets the description of this Error.
- Description
:return: The description of this Error.
:rtype: str
@@ -140,7 +135,6 @@ def description(self) -> str:
def description(self, description: str):
"""Sets the description of this Error.
- Description
:param description: The description of this Error.
:type: str
@@ -151,7 +145,6 @@ def description(self, description: str):
def inner_error(self) -> ErrorDetails:
"""Gets the inner_error of this Error.
- Inner Error
:return: The inner_error of this Error.
:rtype: ErrorDetails
@@ -162,7 +155,6 @@ def inner_error(self) -> ErrorDetails:
def inner_error(self, inner_error: ErrorDetails):
"""Sets the inner_error of this Error.
- Inner Error
:param inner_error: The inner_error of this Error.
:type: ErrorDetails
diff --git a/sdk/AsposeEmailCloudSdk/models/error_details.py b/sdk/AsposeEmailCloudSdk/models/error_details.py
index 3423d49..7c92346 100644
--- a/sdk/AsposeEmailCloudSdk/models/error_details.py
+++ b/sdk/AsposeEmailCloudSdk/models/error_details.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -32,7 +32,7 @@
class ErrorDetails(object):
- """The error details
+ """
"""
"""
@@ -54,9 +54,9 @@ class ErrorDetails(object):
def __init__(self, request_id: str = None, _date: datetime = None):
"""
- The error details
- :param request_id (str) The request id
- :param _date (datetime) Date
+
+ :param request_id (str)
+ :param _date (datetime)
"""
self._request_id = None
@@ -71,7 +71,6 @@ def __init__(self, request_id: str = None, _date: datetime = None):
def request_id(self) -> str:
"""Gets the request_id of this ErrorDetails.
- The request id
:return: The request_id of this ErrorDetails.
:rtype: str
@@ -82,7 +81,6 @@ def request_id(self) -> str:
def request_id(self, request_id: str):
"""Sets the request_id of this ErrorDetails.
- The request id
:param request_id: The request_id of this ErrorDetails.
:type: str
@@ -93,7 +91,6 @@ def request_id(self, request_id: str):
def _date(self) -> datetime:
"""Gets the _date of this ErrorDetails.
- Date
:return: The _date of this ErrorDetails.
:rtype: datetime
@@ -104,7 +101,6 @@ def _date(self) -> datetime:
def _date(self, _date: datetime):
"""Sets the _date of this ErrorDetails.
- Date
:param _date: The _date of this ErrorDetails.
:type: datetime
diff --git a/sdk/AsposeEmailCloudSdk/models/file_version.py b/sdk/AsposeEmailCloudSdk/models/file_version.py
index 6652841..62a41f7 100644
--- a/sdk/AsposeEmailCloudSdk/models/file_version.py
+++ b/sdk/AsposeEmailCloudSdk/models/file_version.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -34,7 +34,7 @@
class FileVersion(StorageFile):
- """File Version
+ """
"""
"""
@@ -66,14 +66,14 @@ class FileVersion(StorageFile):
def __init__(self, name: str = None, is_folder: bool = None, modified_date: datetime = None, size: int = None, path: str = None, version_id: str = None, is_latest: bool = None):
"""
- File Version
- :param name (str) File or folder name.
- :param is_folder (bool) True if it is a folder.
- :param modified_date (datetime) File or folder last modified DateTime.
- :param size (int) File or folder size.
- :param path (str) File or folder path.
- :param version_id (str) File Version ID.
- :param is_latest (bool) Specifies whether the file is (true) or is not (false) the latest version of an file.
+
+ :param name (str)
+ :param is_folder (bool)
+ :param modified_date (datetime)
+ :param size (int)
+ :param path (str)
+ :param version_id (str)
+ :param is_latest (bool)
"""
super(FileVersion, self).__init__()
@@ -99,7 +99,6 @@ def __init__(self, name: str = None, is_folder: bool = None, modified_date: date
def version_id(self) -> str:
"""Gets the version_id of this FileVersion.
- File Version ID.
:return: The version_id of this FileVersion.
:rtype: str
@@ -110,7 +109,6 @@ def version_id(self) -> str:
def version_id(self, version_id: str):
"""Sets the version_id of this FileVersion.
- File Version ID.
:param version_id: The version_id of this FileVersion.
:type: str
@@ -121,7 +119,6 @@ def version_id(self, version_id: str):
def is_latest(self) -> bool:
"""Gets the is_latest of this FileVersion.
- Specifies whether the file is (true) or is not (false) the latest version of an file.
:return: The is_latest of this FileVersion.
:rtype: bool
@@ -132,7 +129,6 @@ def is_latest(self) -> bool:
def is_latest(self, is_latest: bool):
"""Sets the is_latest of this FileVersion.
- Specifies whether the file is (true) or is not (false) the latest version of an file.
:param is_latest: The is_latest of this FileVersion.
:type: bool
diff --git a/sdk/AsposeEmailCloudSdk/models/file_versions.py b/sdk/AsposeEmailCloudSdk/models/file_versions.py
index 2008282..d171a07 100644
--- a/sdk/AsposeEmailCloudSdk/models/file_versions.py
+++ b/sdk/AsposeEmailCloudSdk/models/file_versions.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -34,7 +34,7 @@
class FileVersions(object):
- """File versions FileVersion.
+ """
"""
"""
@@ -54,8 +54,8 @@ class FileVersions(object):
def __init__(self, value: List[FileVersion] = None):
"""
- File versions FileVersion.
- :param value (List[FileVersion]) File versions FileVersion.
+
+ :param value (List[FileVersion])
"""
self._value = None
@@ -67,7 +67,6 @@ def __init__(self, value: List[FileVersion] = None):
def value(self) -> List[FileVersion]:
"""Gets the value of this FileVersions.
- File versions FileVersion.
:return: The value of this FileVersions.
:rtype: list[FileVersion]
@@ -78,7 +77,6 @@ def value(self) -> List[FileVersion]:
def value(self, value: List[FileVersion]):
"""Sets the value of this FileVersions.
- File versions FileVersion.
:param value: The value of this FileVersions.
:type: list[FileVersion]
diff --git a/sdk/AsposeEmailCloudSdk/models/files_list.py b/sdk/AsposeEmailCloudSdk/models/files_list.py
index 2990767..d2adbe3 100644
--- a/sdk/AsposeEmailCloudSdk/models/files_list.py
+++ b/sdk/AsposeEmailCloudSdk/models/files_list.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -34,7 +34,7 @@
class FilesList(object):
- """Files list
+ """
"""
"""
@@ -54,8 +54,8 @@ class FilesList(object):
def __init__(self, value: List[StorageFile] = None):
"""
- Files list
- :param value (List[StorageFile]) Files and folders contained by folder StorageFile.
+
+ :param value (List[StorageFile])
"""
self._value = None
@@ -67,7 +67,6 @@ def __init__(self, value: List[StorageFile] = None):
def value(self) -> List[StorageFile]:
"""Gets the value of this FilesList.
- Files and folders contained by folder StorageFile.
:return: The value of this FilesList.
:rtype: list[StorageFile]
@@ -78,7 +77,6 @@ def value(self) -> List[StorageFile]:
def value(self, value: List[StorageFile]):
"""Sets the value of this FilesList.
- Files and folders contained by folder StorageFile.
:param value: The value of this FilesList.
:type: list[StorageFile]
diff --git a/sdk/AsposeEmailCloudSdk/models/files_upload_result.py b/sdk/AsposeEmailCloudSdk/models/files_upload_result.py
index d9bbae8..cec1ce5 100644
--- a/sdk/AsposeEmailCloudSdk/models/files_upload_result.py
+++ b/sdk/AsposeEmailCloudSdk/models/files_upload_result.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -34,7 +34,7 @@
class FilesUploadResult(object):
- """File upload result
+ """
"""
"""
@@ -56,9 +56,9 @@ class FilesUploadResult(object):
def __init__(self, uploaded: List[str] = None, errors: List[Error] = None):
"""
- File upload result
- :param uploaded (List[str]) List of uploaded file names
- :param errors (List[Error]) List of errors.
+
+ :param uploaded (List[str])
+ :param errors (List[Error])
"""
self._uploaded = None
@@ -73,7 +73,6 @@ def __init__(self, uploaded: List[str] = None, errors: List[Error] = None):
def uploaded(self) -> List[str]:
"""Gets the uploaded of this FilesUploadResult.
- List of uploaded file names
:return: The uploaded of this FilesUploadResult.
:rtype: list[str]
@@ -84,7 +83,6 @@ def uploaded(self) -> List[str]:
def uploaded(self, uploaded: List[str]):
"""Sets the uploaded of this FilesUploadResult.
- List of uploaded file names
:param uploaded: The uploaded of this FilesUploadResult.
:type: list[str]
@@ -95,7 +93,6 @@ def uploaded(self, uploaded: List[str]):
def errors(self) -> List[Error]:
"""Gets the errors of this FilesUploadResult.
- List of errors.
:return: The errors of this FilesUploadResult.
:rtype: list[Error]
@@ -106,7 +103,6 @@ def errors(self) -> List[Error]:
def errors(self, errors: List[Error]):
"""Sets the errors of this FilesUploadResult.
- List of errors.
:param errors: The errors of this FilesUploadResult.
:type: list[Error]
diff --git a/sdk/AsposeEmailCloudSdk/models/hierarchical_object.py b/sdk/AsposeEmailCloudSdk/models/hierarchical_object.py
index 3aa38d6..bbf26e7 100644
--- a/sdk/AsposeEmailCloudSdk/models/hierarchical_object.py
+++ b/sdk/AsposeEmailCloudSdk/models/hierarchical_object.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/hierarchical_object_request.py b/sdk/AsposeEmailCloudSdk/models/hierarchical_object_request.py
index 4b7a759..116f583 100644
--- a/sdk/AsposeEmailCloudSdk/models/hierarchical_object_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/hierarchical_object_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/hierarchical_object_response.py b/sdk/AsposeEmailCloudSdk/models/hierarchical_object_response.py
index 10707b3..9cb31e7 100644
--- a/sdk/AsposeEmailCloudSdk/models/hierarchical_object_response.py
+++ b/sdk/AsposeEmailCloudSdk/models/hierarchical_object_response.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/indexed_hierarchical_object.py b/sdk/AsposeEmailCloudSdk/models/indexed_hierarchical_object.py
index f57cd00..f893236 100644
--- a/sdk/AsposeEmailCloudSdk/models/indexed_hierarchical_object.py
+++ b/sdk/AsposeEmailCloudSdk/models/indexed_hierarchical_object.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/indexed_primitive_object.py b/sdk/AsposeEmailCloudSdk/models/indexed_primitive_object.py
index e8800d7..a4fc8b5 100644
--- a/sdk/AsposeEmailCloudSdk/models/indexed_primitive_object.py
+++ b/sdk/AsposeEmailCloudSdk/models/indexed_primitive_object.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/instant_messenger_address.py b/sdk/AsposeEmailCloudSdk/models/instant_messenger_address.py
index f821cc8..006579f 100644
--- a/sdk/AsposeEmailCloudSdk/models/instant_messenger_address.py
+++ b/sdk/AsposeEmailCloudSdk/models/instant_messenger_address.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/link.py b/sdk/AsposeEmailCloudSdk/models/link.py
index 26f6d23..ef4cf03 100644
--- a/sdk/AsposeEmailCloudSdk/models/link.py
+++ b/sdk/AsposeEmailCloudSdk/models/link.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/linked_resource.py b/sdk/AsposeEmailCloudSdk/models/linked_resource.py
index 92bdeaa..13688c7 100644
--- a/sdk/AsposeEmailCloudSdk/models/linked_resource.py
+++ b/sdk/AsposeEmailCloudSdk/models/linked_resource.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_bcr_ocr_data.py b/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_bcr_ocr_data.py
index d5e0408..28623c4 100644
--- a/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_bcr_ocr_data.py
+++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_bcr_ocr_data.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_name_component.py b/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_name_component.py
index 9221202..f8ed7e0 100644
--- a/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_name_component.py
+++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_name_component.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_name_extracted.py b/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_name_extracted.py
index f4d9ef6..3930daa 100644
--- a/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_name_extracted.py
+++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_name_extracted.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_name_gender_hypothesis.py b/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_name_gender_hypothesis.py
index 215971d..1245f54 100644
--- a/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_name_gender_hypothesis.py
+++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_name_gender_hypothesis.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/list_response_of_contact_dto.py b/sdk/AsposeEmailCloudSdk/models/list_response_of_contact_dto.py
index 2535b5f..bd2a26b 100644
--- a/sdk/AsposeEmailCloudSdk/models/list_response_of_contact_dto.py
+++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_contact_dto.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/list_response_of_email_account_config.py b/sdk/AsposeEmailCloudSdk/models/list_response_of_email_account_config.py
index 4594cd6..2a87ce9 100644
--- a/sdk/AsposeEmailCloudSdk/models/list_response_of_email_account_config.py
+++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_email_account_config.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/list_response_of_email_dto.py b/sdk/AsposeEmailCloudSdk/models/list_response_of_email_dto.py
index 755a41f..38afd65 100644
--- a/sdk/AsposeEmailCloudSdk/models/list_response_of_email_dto.py
+++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_email_dto.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/list_response_of_email_thread.py b/sdk/AsposeEmailCloudSdk/models/list_response_of_email_thread.py
new file mode 100644
index 0000000..86ff08c
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_email_thread.py
@@ -0,0 +1,127 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+
+import pprint
+import re
+import six
+from typing import List, Set, Dict, Tuple, Optional
+from datetime import datetime
+
+from AsposeEmailCloudSdk.models.email_thread import EmailThread
+
+
+class ListResponseOfEmailThread(object):
+ """
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'value': 'list[EmailThread]'
+ }
+
+ attribute_map = {
+ 'value': 'value'
+ }
+
+ def __init__(self, value: List[EmailThread] = None):
+ """
+
+ :param value (List[EmailThread])
+ """
+
+ self._value = None
+
+ if value is not None:
+ self.value = value
+
+ @property
+ def value(self) -> List[EmailThread]:
+ """Gets the value of this ListResponseOfEmailThread.
+
+
+ :return: The value of this ListResponseOfEmailThread.
+ :rtype: list[EmailThread]
+ """
+ return self._value
+
+ @value.setter
+ def value(self, value: List[EmailThread]):
+ """Sets the value of this ListResponseOfEmailThread.
+
+
+ :param value: The value of this ListResponseOfEmailThread.
+ :type: list[EmailThread]
+ """
+ self._value = value
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ListResponseOfEmailThread):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/sdk/AsposeEmailCloudSdk/models/list_response_of_hierarchical_object.py b/sdk/AsposeEmailCloudSdk/models/list_response_of_hierarchical_object.py
index 7731263..7341c8d 100644
--- a/sdk/AsposeEmailCloudSdk/models/list_response_of_hierarchical_object.py
+++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_hierarchical_object.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/list_response_of_hierarchical_object_response.py b/sdk/AsposeEmailCloudSdk/models/list_response_of_hierarchical_object_response.py
index 7f010cb..04cf1de 100644
--- a/sdk/AsposeEmailCloudSdk/models/list_response_of_hierarchical_object_response.py
+++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_hierarchical_object_response.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/list_response_of_mail_server_folder.py b/sdk/AsposeEmailCloudSdk/models/list_response_of_mail_server_folder.py
index 776ecac..eb6a40e 100644
--- a/sdk/AsposeEmailCloudSdk/models/list_response_of_mail_server_folder.py
+++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_mail_server_folder.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/list_response_of_storage_file_location.py b/sdk/AsposeEmailCloudSdk/models/list_response_of_storage_file_location.py
index 75f907a..ae43391 100644
--- a/sdk/AsposeEmailCloudSdk/models/list_response_of_storage_file_location.py
+++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_storage_file_location.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/list_response_of_storage_model_of_calendar_dto.py b/sdk/AsposeEmailCloudSdk/models/list_response_of_storage_model_of_calendar_dto.py
index e404a1f..58bd81c 100644
--- a/sdk/AsposeEmailCloudSdk/models/list_response_of_storage_model_of_calendar_dto.py
+++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_storage_model_of_calendar_dto.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/list_response_of_storage_model_of_contact_dto.py b/sdk/AsposeEmailCloudSdk/models/list_response_of_storage_model_of_contact_dto.py
index b229ba7..f39508e 100644
--- a/sdk/AsposeEmailCloudSdk/models/list_response_of_storage_model_of_contact_dto.py
+++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_storage_model_of_contact_dto.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/list_response_of_storage_model_of_email_dto.py b/sdk/AsposeEmailCloudSdk/models/list_response_of_storage_model_of_email_dto.py
index b974dce..36d91c3 100644
--- a/sdk/AsposeEmailCloudSdk/models/list_response_of_storage_model_of_email_dto.py
+++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_storage_model_of_email_dto.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/list_response_of_string.py b/sdk/AsposeEmailCloudSdk/models/list_response_of_string.py
index 1142f58..8d409e5 100644
--- a/sdk/AsposeEmailCloudSdk/models/list_response_of_string.py
+++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_string.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/mail_address.py b/sdk/AsposeEmailCloudSdk/models/mail_address.py
index 656b372..ea29fb1 100644
--- a/sdk/AsposeEmailCloudSdk/models/mail_address.py
+++ b/sdk/AsposeEmailCloudSdk/models/mail_address.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -45,26 +45,30 @@ class MailAddress(object):
swagger_types = {
'display_name': 'str',
'address': 'str',
- 'participation_status': 'str'
+ 'participation_status': 'str',
+ 'original_address_string': 'str'
}
attribute_map = {
'display_name': 'displayName',
'address': 'address',
- 'participation_status': 'participationStatus'
+ 'participation_status': 'participationStatus',
+ 'original_address_string': 'originalAddressString'
}
- def __init__(self, display_name: str = None, address: str = None, participation_status: str = None):
+ def __init__(self, display_name: str = None, address: str = None, participation_status: str = None, original_address_string: str = None):
"""
Represents the address of a message.
:param display_name (str) Display name
:param address (str) Address
:param participation_status (str) Identifies the participation status for the calendar user. Enum, available values: NeedsAction, Accepted, Declined, Tentative, Delegated
+ :param original_address_string (str) The original e-mail address string
"""
self._display_name = None
self._address = None
self._participation_status = None
+ self._original_address_string = None
if display_name is not None:
self.display_name = display_name
@@ -72,6 +76,8 @@ def __init__(self, display_name: str = None, address: str = None, participation_
self.address = address
if participation_status is not None:
self.participation_status = participation_status
+ if original_address_string is not None:
+ self.original_address_string = original_address_string
@property
def display_name(self) -> str:
@@ -141,6 +147,28 @@ def participation_status(self, participation_status: str):
raise ValueError("Invalid value for `participation_status`, must not be `None`")
self._participation_status = participation_status
+ @property
+ def original_address_string(self) -> str:
+ """Gets the original_address_string of this MailAddress.
+
+ The original e-mail address string
+
+ :return: The original_address_string of this MailAddress.
+ :rtype: str
+ """
+ return self._original_address_string
+
+ @original_address_string.setter
+ def original_address_string(self, original_address_string: str):
+ """Sets the original_address_string of this MailAddress.
+
+ The original e-mail address string
+
+ :param original_address_string: The original_address_string of this MailAddress.
+ :type: str
+ """
+ self._original_address_string = original_address_string
+
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
diff --git a/sdk/AsposeEmailCloudSdk/models/mail_server_folder.py b/sdk/AsposeEmailCloudSdk/models/mail_server_folder.py
index 64147c9..40aadab 100644
--- a/sdk/AsposeEmailCloudSdk/models/mail_server_folder.py
+++ b/sdk/AsposeEmailCloudSdk/models/mail_server_folder.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/mime_response.py b/sdk/AsposeEmailCloudSdk/models/mime_response.py
index 42ce9e4..78f122b 100644
--- a/sdk/AsposeEmailCloudSdk/models/mime_response.py
+++ b/sdk/AsposeEmailCloudSdk/models/mime_response.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/move_email_message_rq.py b/sdk/AsposeEmailCloudSdk/models/move_email_message_rq.py
new file mode 100644
index 0000000..690f2e4
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/move_email_message_rq.py
@@ -0,0 +1,202 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+
+import pprint
+import re
+import six
+from typing import List, Set, Dict, Tuple, Optional
+from datetime import datetime
+
+from AsposeEmailCloudSdk.models.account_base_request import AccountBaseRequest
+from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation
+
+
+class MoveEmailMessageRq(AccountBaseRequest):
+ """Move email message request
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'first_account': 'str',
+ 'second_account': 'str',
+ 'storage_folder': 'StorageFolderLocation',
+ 'message_id': 'str',
+ 'source_folder': 'str',
+ 'destination_folder': 'str'
+ }
+
+ attribute_map = {
+ 'first_account': 'firstAccount',
+ 'second_account': 'secondAccount',
+ 'storage_folder': 'storageFolder',
+ 'message_id': 'messageId',
+ 'source_folder': 'sourceFolder',
+ 'destination_folder': 'destinationFolder'
+ }
+
+ def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, message_id: str = None, source_folder: str = None, destination_folder: str = None):
+ """
+ Move email message request
+ :param first_account (str) First account storage file name
+ :param second_account (str) Additional email account (for example, FirstAccount could be IMAP, and second one could be SMTP)
+ :param storage_folder (StorageFolderLocation) Storage folder location of account files
+ :param message_id (str) Message identifier
+ :param source_folder (str) Message source folder. Account root folder by default
+ :param destination_folder (str) Folder in email account to move message to
+ """
+ super(MoveEmailMessageRq, self).__init__()
+
+ self._message_id = None
+ self._source_folder = None
+ self._destination_folder = None
+
+ if first_account is not None:
+ self.first_account = first_account
+ if second_account is not None:
+ self.second_account = second_account
+ if storage_folder is not None:
+ self.storage_folder = storage_folder
+ if message_id is not None:
+ self.message_id = message_id
+ if source_folder is not None:
+ self.source_folder = source_folder
+ if destination_folder is not None:
+ self.destination_folder = destination_folder
+
+ @property
+ def message_id(self) -> str:
+ """Gets the message_id of this MoveEmailMessageRq.
+
+ Message identifier
+
+ :return: The message_id of this MoveEmailMessageRq.
+ :rtype: str
+ """
+ return self._message_id
+
+ @message_id.setter
+ def message_id(self, message_id: str):
+ """Sets the message_id of this MoveEmailMessageRq.
+
+ Message identifier
+
+ :param message_id: The message_id of this MoveEmailMessageRq.
+ :type: str
+ """
+ self._message_id = message_id
+
+ @property
+ def source_folder(self) -> str:
+ """Gets the source_folder of this MoveEmailMessageRq.
+
+ Message source folder. Account root folder by default
+
+ :return: The source_folder of this MoveEmailMessageRq.
+ :rtype: str
+ """
+ return self._source_folder
+
+ @source_folder.setter
+ def source_folder(self, source_folder: str):
+ """Sets the source_folder of this MoveEmailMessageRq.
+
+ Message source folder. Account root folder by default
+
+ :param source_folder: The source_folder of this MoveEmailMessageRq.
+ :type: str
+ """
+ self._source_folder = source_folder
+
+ @property
+ def destination_folder(self) -> str:
+ """Gets the destination_folder of this MoveEmailMessageRq.
+
+ Folder in email account to move message to
+
+ :return: The destination_folder of this MoveEmailMessageRq.
+ :rtype: str
+ """
+ return self._destination_folder
+
+ @destination_folder.setter
+ def destination_folder(self, destination_folder: str):
+ """Sets the destination_folder of this MoveEmailMessageRq.
+
+ Folder in email account to move message to
+
+ :param destination_folder: The destination_folder of this MoveEmailMessageRq.
+ :type: str
+ """
+ self._destination_folder = destination_folder
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, MoveEmailMessageRq):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/sdk/AsposeEmailCloudSdk/models/move_email_thread_rq.py b/sdk/AsposeEmailCloudSdk/models/move_email_thread_rq.py
new file mode 100644
index 0000000..5bb93f1
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/move_email_thread_rq.py
@@ -0,0 +1,146 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+
+import pprint
+import re
+import six
+from typing import List, Set, Dict, Tuple, Optional
+from datetime import datetime
+
+from AsposeEmailCloudSdk.models.account_base_request import AccountBaseRequest
+from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation
+
+
+class MoveEmailThreadRq(AccountBaseRequest):
+ """Email thread move request
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'first_account': 'str',
+ 'second_account': 'str',
+ 'storage_folder': 'StorageFolderLocation',
+ 'destination_folder': 'str'
+ }
+
+ attribute_map = {
+ 'first_account': 'firstAccount',
+ 'second_account': 'secondAccount',
+ 'storage_folder': 'storageFolder',
+ 'destination_folder': 'destinationFolder'
+ }
+
+ def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, destination_folder: str = None):
+ """
+ Email thread move request
+ :param first_account (str) First account storage file name
+ :param second_account (str) Additional email account (for example, FirstAccount could be IMAP, and second one could be SMTP)
+ :param storage_folder (StorageFolderLocation) Storage folder location of account files
+ :param destination_folder (str) Email account folder to move thread to
+ """
+ super(MoveEmailThreadRq, self).__init__()
+
+ self._destination_folder = None
+
+ if first_account is not None:
+ self.first_account = first_account
+ if second_account is not None:
+ self.second_account = second_account
+ if storage_folder is not None:
+ self.storage_folder = storage_folder
+ if destination_folder is not None:
+ self.destination_folder = destination_folder
+
+ @property
+ def destination_folder(self) -> str:
+ """Gets the destination_folder of this MoveEmailThreadRq.
+
+ Email account folder to move thread to
+
+ :return: The destination_folder of this MoveEmailThreadRq.
+ :rtype: str
+ """
+ return self._destination_folder
+
+ @destination_folder.setter
+ def destination_folder(self, destination_folder: str):
+ """Sets the destination_folder of this MoveEmailThreadRq.
+
+ Email account folder to move thread to
+
+ :param destination_folder: The destination_folder of this MoveEmailThreadRq.
+ :type: str
+ """
+ self._destination_folder = destination_folder
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, MoveEmailThreadRq):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/sdk/AsposeEmailCloudSdk/models/name_value_pair.py b/sdk/AsposeEmailCloudSdk/models/name_value_pair.py
index 8291674..792bca9 100644
--- a/sdk/AsposeEmailCloudSdk/models/name_value_pair.py
+++ b/sdk/AsposeEmailCloudSdk/models/name_value_pair.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/object_exist.py b/sdk/AsposeEmailCloudSdk/models/object_exist.py
index 007253d..722fcf3 100644
--- a/sdk/AsposeEmailCloudSdk/models/object_exist.py
+++ b/sdk/AsposeEmailCloudSdk/models/object_exist.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -32,7 +32,7 @@
class ObjectExist(object):
- """Object exists
+ """
"""
"""
@@ -54,9 +54,9 @@ class ObjectExist(object):
def __init__(self, exists: bool = None, is_folder: bool = None):
"""
- Object exists
- :param exists (bool) Indicates that the file or folder exists.
- :param is_folder (bool) True if it is a folder, false if it is a file.
+
+ :param exists (bool)
+ :param is_folder (bool)
"""
self._exists = None
@@ -71,7 +71,6 @@ def __init__(self, exists: bool = None, is_folder: bool = None):
def exists(self) -> bool:
"""Gets the exists of this ObjectExist.
- Indicates that the file or folder exists.
:return: The exists of this ObjectExist.
:rtype: bool
@@ -82,7 +81,6 @@ def exists(self) -> bool:
def exists(self, exists: bool):
"""Sets the exists of this ObjectExist.
- Indicates that the file or folder exists.
:param exists: The exists of this ObjectExist.
:type: bool
@@ -95,7 +93,6 @@ def exists(self, exists: bool):
def is_folder(self) -> bool:
"""Gets the is_folder of this ObjectExist.
- True if it is a folder, false if it is a file.
:return: The is_folder of this ObjectExist.
:rtype: bool
@@ -106,7 +103,6 @@ def is_folder(self) -> bool:
def is_folder(self, is_folder: bool):
"""Sets the is_folder of this ObjectExist.
- True if it is a folder, false if it is a file.
:param is_folder: The is_folder of this ObjectExist.
:type: bool
diff --git a/sdk/AsposeEmailCloudSdk/models/phone_number.py b/sdk/AsposeEmailCloudSdk/models/phone_number.py
index f283a32..07eb45b 100644
--- a/sdk/AsposeEmailCloudSdk/models/phone_number.py
+++ b/sdk/AsposeEmailCloudSdk/models/phone_number.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/postal_address.py b/sdk/AsposeEmailCloudSdk/models/postal_address.py
index bbe4cca..0b3891e 100644
--- a/sdk/AsposeEmailCloudSdk/models/postal_address.py
+++ b/sdk/AsposeEmailCloudSdk/models/postal_address.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/primitive_object.py b/sdk/AsposeEmailCloudSdk/models/primitive_object.py
index 8d13594..7328b15 100644
--- a/sdk/AsposeEmailCloudSdk/models/primitive_object.py
+++ b/sdk/AsposeEmailCloudSdk/models/primitive_object.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/reminder_attendee.py b/sdk/AsposeEmailCloudSdk/models/reminder_attendee.py
index 12a9091..0c55eda 100644
--- a/sdk/AsposeEmailCloudSdk/models/reminder_attendee.py
+++ b/sdk/AsposeEmailCloudSdk/models/reminder_attendee.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/reminder_trigger.py b/sdk/AsposeEmailCloudSdk/models/reminder_trigger.py
index db80052..d3fb92c 100644
--- a/sdk/AsposeEmailCloudSdk/models/reminder_trigger.py
+++ b/sdk/AsposeEmailCloudSdk/models/reminder_trigger.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/__init__.py b/sdk/AsposeEmailCloudSdk/models/requests/__init__.py
index 53db293..97edcd6 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/__init__.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/__init__.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -51,6 +51,11 @@
from AsposeEmailCloudSdk.models.requests.append_email_model_message_request import AppendEmailModelMessageRequest
from AsposeEmailCloudSdk.models.requests.append_mime_message_request import AppendMimeMessageRequest
from AsposeEmailCloudSdk.models.requests.convert_calendar_model_to_alternate_request import ConvertCalendarModelToAlternateRequest
+from AsposeEmailCloudSdk.models.requests.convert_calendar_model_to_file_request import ConvertCalendarModelToFileRequest
+from AsposeEmailCloudSdk.models.requests.convert_calendar_request import ConvertCalendarRequest
+from AsposeEmailCloudSdk.models.requests.convert_contact_model_to_file_request import ConvertContactModelToFileRequest
+from AsposeEmailCloudSdk.models.requests.convert_contact_request import ConvertContactRequest
+from AsposeEmailCloudSdk.models.requests.convert_email_model_to_file_request import ConvertEmailModelToFileRequest
from AsposeEmailCloudSdk.models.requests.convert_email_request import ConvertEmailRequest
from AsposeEmailCloudSdk.models.requests.copy_file_request import CopyFileRequest
from AsposeEmailCloudSdk.models.requests.copy_folder_request import CopyFolderRequest
@@ -64,6 +69,7 @@
from AsposeEmailCloudSdk.models.requests.delete_contact_property_request import DeleteContactPropertyRequest
from AsposeEmailCloudSdk.models.requests.delete_email_folder_request import DeleteEmailFolderRequest
from AsposeEmailCloudSdk.models.requests.delete_email_message_request import DeleteEmailMessageRequest
+from AsposeEmailCloudSdk.models.requests.delete_email_thread_request import DeleteEmailThreadRequest
from AsposeEmailCloudSdk.models.requests.delete_file_request import DeleteFileRequest
from AsposeEmailCloudSdk.models.requests.delete_folder_request import DeleteFolderRequest
from AsposeEmailCloudSdk.models.requests.delete_mapi_attachment_request import DeleteMapiAttachmentRequest
@@ -74,13 +80,18 @@
from AsposeEmailCloudSdk.models.requests.download_file_request import DownloadFileRequest
from AsposeEmailCloudSdk.models.requests.fetch_email_message_request import FetchEmailMessageRequest
from AsposeEmailCloudSdk.models.requests.fetch_email_model_request import FetchEmailModelRequest
+from AsposeEmailCloudSdk.models.requests.fetch_email_thread_messages_request import FetchEmailThreadMessagesRequest
+from AsposeEmailCloudSdk.models.requests.get_calendar_as_file_request import GetCalendarAsFileRequest
from AsposeEmailCloudSdk.models.requests.get_calendar_attachment_request import GetCalendarAttachmentRequest
+from AsposeEmailCloudSdk.models.requests.get_calendar_file_as_model_request import GetCalendarFileAsModelRequest
from AsposeEmailCloudSdk.models.requests.get_calendar_list_request import GetCalendarListRequest
from AsposeEmailCloudSdk.models.requests.get_calendar_model_as_alternate_request import GetCalendarModelAsAlternateRequest
from AsposeEmailCloudSdk.models.requests.get_calendar_model_list_request import GetCalendarModelListRequest
from AsposeEmailCloudSdk.models.requests.get_calendar_model_request import GetCalendarModelRequest
from AsposeEmailCloudSdk.models.requests.get_calendar_request import GetCalendarRequest
+from AsposeEmailCloudSdk.models.requests.get_contact_as_file_request import GetContactAsFileRequest
from AsposeEmailCloudSdk.models.requests.get_contact_attachment_request import GetContactAttachmentRequest
+from AsposeEmailCloudSdk.models.requests.get_contact_file_as_model_request import GetContactFileAsModelRequest
from AsposeEmailCloudSdk.models.requests.get_contact_list_request import GetContactListRequest
from AsposeEmailCloudSdk.models.requests.get_contact_model_list_request import GetContactModelListRequest
from AsposeEmailCloudSdk.models.requests.get_contact_model_request import GetContactModelRequest
@@ -90,6 +101,7 @@
from AsposeEmailCloudSdk.models.requests.get_email_attachment_request import GetEmailAttachmentRequest
from AsposeEmailCloudSdk.models.requests.get_email_client_account_request import GetEmailClientAccountRequest
from AsposeEmailCloudSdk.models.requests.get_email_client_multi_account_request import GetEmailClientMultiAccountRequest
+from AsposeEmailCloudSdk.models.requests.get_email_file_as_model_request import GetEmailFileAsModelRequest
from AsposeEmailCloudSdk.models.requests.get_email_model_list_request import GetEmailModelListRequest
from AsposeEmailCloudSdk.models.requests.get_email_model_request import GetEmailModelRequest
from AsposeEmailCloudSdk.models.requests.get_email_property_request import GetEmailPropertyRequest
@@ -104,6 +116,9 @@
from AsposeEmailCloudSdk.models.requests.list_email_folders_request import ListEmailFoldersRequest
from AsposeEmailCloudSdk.models.requests.list_email_messages_request import ListEmailMessagesRequest
from AsposeEmailCloudSdk.models.requests.list_email_models_request import ListEmailModelsRequest
+from AsposeEmailCloudSdk.models.requests.list_email_threads_request import ListEmailThreadsRequest
+from AsposeEmailCloudSdk.models.requests.move_email_message_request import MoveEmailMessageRequest
+from AsposeEmailCloudSdk.models.requests.move_email_thread_request import MoveEmailThreadRequest
from AsposeEmailCloudSdk.models.requests.move_file_request import MoveFileRequest
from AsposeEmailCloudSdk.models.requests.move_folder_request import MoveFolderRequest
from AsposeEmailCloudSdk.models.requests.object_exists_request import ObjectExistsRequest
@@ -119,6 +134,7 @@
from AsposeEmailCloudSdk.models.requests.send_email_request import SendEmailRequest
from AsposeEmailCloudSdk.models.requests.set_email_property_request import SetEmailPropertyRequest
from AsposeEmailCloudSdk.models.requests.set_email_read_flag_request import SetEmailReadFlagRequest
+from AsposeEmailCloudSdk.models.requests.set_email_thread_read_flag_request import SetEmailThreadReadFlagRequest
from AsposeEmailCloudSdk.models.requests.storage_exists_request import StorageExistsRequest
from AsposeEmailCloudSdk.models.requests.update_calendar_properties_request import UpdateCalendarPropertiesRequest
from AsposeEmailCloudSdk.models.requests.update_contact_properties_request import UpdateContactPropertiesRequest
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/add_calendar_attachment_request.py b/sdk/AsposeEmailCloudSdk/models/requests/add_calendar_attachment_request.py
index 2c69ba0..1d022c1 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/add_calendar_attachment_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/add_calendar_attachment_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/add_contact_attachment_request.py b/sdk/AsposeEmailCloudSdk/models/requests/add_contact_attachment_request.py
index 1ad9006..1ccc61c 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/add_contact_attachment_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/add_contact_attachment_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/add_email_attachment_request.py b/sdk/AsposeEmailCloudSdk/models/requests/add_email_attachment_request.py
index 665ea80..9da43a9 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/add_email_attachment_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/add_email_attachment_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/add_mapi_attachment_request.py b/sdk/AsposeEmailCloudSdk/models/requests/add_mapi_attachment_request.py
index 9265f1c..6edc99c 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/add_mapi_attachment_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/add_mapi_attachment_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_ocr_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_ocr_request.py
index 4d38856..e6f8779 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_ocr_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_ocr_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_ocr_storage_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_ocr_storage_request.py
index b773c9d..4d2ccab 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_ocr_storage_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_ocr_storage_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_model_request.py
index d2556f9..6147430 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_model_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_model_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_ocr_data_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_ocr_data_model_request.py
index 33bbea4..0662d3c 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_ocr_data_model_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_ocr_data_model_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_request.py
index c0062a7..15f4212 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_storage_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_storage_request.py
index ff61e22..09df44b 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_storage_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_storage_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_complete_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_complete_request.py
index b5226fa..2ae9eab 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_complete_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_complete_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_expand_parsed_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_expand_parsed_request.py
index f697398..fca1846 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_expand_parsed_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_expand_parsed_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_expand_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_expand_request.py
index 9a6b1dd..97ca3d0 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_expand_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_expand_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_format_parsed_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_format_parsed_request.py
index 463c17a..1920555 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_format_parsed_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_format_parsed_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_format_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_format_request.py
index 5f8f63e..e250e74 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_format_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_format_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_genderize_parsed_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_genderize_parsed_request.py
index 0d04887..f66a209 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_genderize_parsed_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_genderize_parsed_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_genderize_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_genderize_request.py
index 8b58522..047c124 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_genderize_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_genderize_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_match_parsed_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_match_parsed_request.py
index 9027a8c..01157fa 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_match_parsed_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_match_parsed_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_match_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_match_request.py
index 26c9fc1..18f533a 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_match_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_match_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_parse_email_address_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_parse_email_address_request.py
index 74b7e60..176a3c3 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_parse_email_address_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_parse_email_address_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_parse_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_parse_request.py
index 426151f..05a9999 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_parse_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_parse_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/append_email_message_request.py b/sdk/AsposeEmailCloudSdk/models/requests/append_email_message_request.py
index 86ab6b5..b2a6bdf 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/append_email_message_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/append_email_message_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/append_email_model_message_request.py b/sdk/AsposeEmailCloudSdk/models/requests/append_email_model_message_request.py
index 12967b9..8208d37 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/append_email_model_message_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/append_email_model_message_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/append_mime_message_request.py b/sdk/AsposeEmailCloudSdk/models/requests/append_mime_message_request.py
index 432eeee..22abe85 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/append_mime_message_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/append_mime_message_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/base_request.py b/sdk/AsposeEmailCloudSdk/models/requests/base_request.py
index bc8cfb9..79491f2 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/base_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/base_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/convert_calendar_model_to_alternate_request.py b/sdk/AsposeEmailCloudSdk/models/requests/convert_calendar_model_to_alternate_request.py
index ed19f33..3aefd25 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/convert_calendar_model_to_alternate_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/convert_calendar_model_to_alternate_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/convert_calendar_model_to_file_request.py b/sdk/AsposeEmailCloudSdk/models/requests/convert_calendar_model_to_file_request.py
new file mode 100644
index 0000000..c24a0ea
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/requests/convert_calendar_model_to_file_request.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+##for __init__.py:from AsposeEmailCloudSdk.models.requests.convert_calendar_model_to_file_request import ConvertCalendarModelToFileRequest
+
+from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest
+from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest
+from AsposeEmailCloudSdk.models import *
+
+
+class ConvertCalendarModelToFileRequest(BaseRequest):
+ """
+ Request model for convert_calendar_model_to_file operation.
+ Initializes a new instance.
+
+ :param format (str) File format Enum, available values: Ics, Msg
+ :param calendar_dto (CalendarDto) Calendar model to convert
+ """
+
+ def __init__(self, format: str, calendar_dto: CalendarDto):
+ """
+ Request model for convert_calendar_model_to_file operation.
+ Initializes a new instance.
+
+ :param format (str) File format Enum, available values: Ics, Msg
+ :param calendar_dto (CalendarDto) Calendar model to convert
+ """
+
+ BaseRequest.__init__(self)
+ self.format = format
+ self.calendar_dto = calendar_dto
+
+ def to_http_info(self, config):
+ """
+ Prepares initial info for HTTP request
+
+ :param config: Email API configuration
+ :type: AsposeEmailCloudSdk.Configuration
+ :return: http_request configured http request
+ :rtype: Configuration.models.requests.HttpRequest
+ """
+ # verify the required parameter 'format' is set
+ if self.format is None:
+ raise ValueError("Missing the required parameter `format` when calling `convert_calendar_model_to_file`")
+ # verify the required parameter 'calendar_dto' is set
+ if self.calendar_dto is None:
+ raise ValueError("Missing the required parameter `calendar_dto` when calling `convert_calendar_model_to_file`")
+
+ collection_formats = {}
+ path = '/email/CalendarModel/model-as-file/{format}'
+ path_params = {}
+ if self.format is not None:
+ path_params[self._lowercase_first_letter('format')] = self.format
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = []
+
+ body_params = None
+ if self.calendar_dto is not None:
+ body_params = self.calendar_dto
+
+ # HTTP header `Accept`
+ header_params['Accept'] = self._select_header_accept(
+ ['multipart/form-data'])
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self._select_header_content_type(
+ ['application/json'])
+
+ # Authentication setting
+ auth_settings = ['JWT']
+
+ return HttpRequest(path, path_params, query_params, header_params, form_params, body_params, local_var_files,
+ collection_formats, auth_settings)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/convert_calendar_request.py b/sdk/AsposeEmailCloudSdk/models/requests/convert_calendar_request.py
new file mode 100644
index 0000000..693f171
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/requests/convert_calendar_request.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+##for __init__.py:from AsposeEmailCloudSdk.models.requests.convert_calendar_request import ConvertCalendarRequest
+
+from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest
+from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest
+from AsposeEmailCloudSdk.models import *
+
+
+class ConvertCalendarRequest(BaseRequest):
+ """
+ Request model for convert_calendar operation.
+ Initializes a new instance.
+
+ :param format (str) File format Enum, available values: Ics, Msg
+ :param file (str) File to convert
+ """
+
+ def __init__(self, format: str, file: str):
+ """
+ Request model for convert_calendar operation.
+ Initializes a new instance.
+
+ :param format (str) File format Enum, available values: Ics, Msg
+ :param file (str) File to convert
+ """
+
+ BaseRequest.__init__(self)
+ self.format = format
+ self.file = file
+
+ def to_http_info(self, config):
+ """
+ Prepares initial info for HTTP request
+
+ :param config: Email API configuration
+ :type: AsposeEmailCloudSdk.Configuration
+ :return: http_request configured http request
+ :rtype: Configuration.models.requests.HttpRequest
+ """
+ # verify the required parameter 'format' is set
+ if self.format is None:
+ raise ValueError("Missing the required parameter `format` when calling `convert_calendar`")
+ # verify the required parameter 'file' is set
+ if self.file is None:
+ raise ValueError("Missing the required parameter `file` when calling `convert_calendar`")
+
+ collection_formats = {}
+ path = '/email/CalendarModel/convert/{format}'
+ path_params = {}
+ if self.format is not None:
+ path_params[self._lowercase_first_letter('format')] = self.format
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = []
+ if self.file is not None:
+ local_var_files.append((self._lowercase_first_letter('File'), self.file))
+
+ body_params = None
+
+ # HTTP header `Accept`
+ header_params['Accept'] = self._select_header_accept(
+ ['multipart/form-data'])
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self._select_header_content_type(
+ ['multipart/form-data'])
+
+ # Authentication setting
+ auth_settings = ['JWT']
+
+ return HttpRequest(path, path_params, query_params, header_params, form_params, body_params, local_var_files,
+ collection_formats, auth_settings)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/convert_contact_model_to_file_request.py b/sdk/AsposeEmailCloudSdk/models/requests/convert_contact_model_to_file_request.py
new file mode 100644
index 0000000..fc14c26
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/requests/convert_contact_model_to_file_request.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+##for __init__.py:from AsposeEmailCloudSdk.models.requests.convert_contact_model_to_file_request import ConvertContactModelToFileRequest
+
+from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest
+from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest
+from AsposeEmailCloudSdk.models import *
+
+
+class ConvertContactModelToFileRequest(BaseRequest):
+ """
+ Request model for convert_contact_model_to_file operation.
+ Initializes a new instance.
+
+ :param destination_format (str) File format Enum, available values: VCard, WebDav, Msg
+ :param contact_dto (ContactDto) Contact model to convert
+ """
+
+ def __init__(self, destination_format: str, contact_dto: ContactDto):
+ """
+ Request model for convert_contact_model_to_file operation.
+ Initializes a new instance.
+
+ :param destination_format (str) File format Enum, available values: VCard, WebDav, Msg
+ :param contact_dto (ContactDto) Contact model to convert
+ """
+
+ BaseRequest.__init__(self)
+ self.destination_format = destination_format
+ self.contact_dto = contact_dto
+
+ def to_http_info(self, config):
+ """
+ Prepares initial info for HTTP request
+
+ :param config: Email API configuration
+ :type: AsposeEmailCloudSdk.Configuration
+ :return: http_request configured http request
+ :rtype: Configuration.models.requests.HttpRequest
+ """
+ # verify the required parameter 'destination_format' is set
+ if self.destination_format is None:
+ raise ValueError("Missing the required parameter `destination_format` when calling `convert_contact_model_to_file`")
+ # verify the required parameter 'contact_dto' is set
+ if self.contact_dto is None:
+ raise ValueError("Missing the required parameter `contact_dto` when calling `convert_contact_model_to_file`")
+
+ collection_formats = {}
+ path = '/email/ContactModel/model-as-file/{destinationFormat}'
+ path_params = {}
+ if self.destination_format is not None:
+ path_params[self._lowercase_first_letter('destinationFormat')] = self.destination_format
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = []
+
+ body_params = None
+ if self.contact_dto is not None:
+ body_params = self.contact_dto
+
+ # HTTP header `Accept`
+ header_params['Accept'] = self._select_header_accept(
+ ['multipart/form-data'])
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self._select_header_content_type(
+ ['application/json'])
+
+ # Authentication setting
+ auth_settings = ['JWT']
+
+ return HttpRequest(path, path_params, query_params, header_params, form_params, body_params, local_var_files,
+ collection_formats, auth_settings)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/convert_contact_request.py b/sdk/AsposeEmailCloudSdk/models/requests/convert_contact_request.py
new file mode 100644
index 0000000..a5a9d19
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/requests/convert_contact_request.py
@@ -0,0 +1,108 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+##for __init__.py:from AsposeEmailCloudSdk.models.requests.convert_contact_request import ConvertContactRequest
+
+from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest
+from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest
+from AsposeEmailCloudSdk.models import *
+
+
+class ConvertContactRequest(BaseRequest):
+ """
+ Request model for convert_contact operation.
+ Initializes a new instance.
+
+ :param destination_format (str) File format to convert to Enum, available values: VCard, WebDav, Msg
+ :param format (str) File format to convert from Enum, available values: VCard, WebDav, Msg
+ :param file (str) File to convert
+ """
+
+ def __init__(self, destination_format: str, format: str, file: str):
+ """
+ Request model for convert_contact operation.
+ Initializes a new instance.
+
+ :param destination_format (str) File format to convert to Enum, available values: VCard, WebDav, Msg
+ :param format (str) File format to convert from Enum, available values: VCard, WebDav, Msg
+ :param file (str) File to convert
+ """
+
+ BaseRequest.__init__(self)
+ self.destination_format = destination_format
+ self.format = format
+ self.file = file
+
+ def to_http_info(self, config):
+ """
+ Prepares initial info for HTTP request
+
+ :param config: Email API configuration
+ :type: AsposeEmailCloudSdk.Configuration
+ :return: http_request configured http request
+ :rtype: Configuration.models.requests.HttpRequest
+ """
+ # verify the required parameter 'destination_format' is set
+ if self.destination_format is None:
+ raise ValueError("Missing the required parameter `destination_format` when calling `convert_contact`")
+ # verify the required parameter 'format' is set
+ if self.format is None:
+ raise ValueError("Missing the required parameter `format` when calling `convert_contact`")
+ # verify the required parameter 'file' is set
+ if self.file is None:
+ raise ValueError("Missing the required parameter `file` when calling `convert_contact`")
+
+ collection_formats = {}
+ path = '/email/ContactModel/{format}/convert/{destinationFormat}'
+ path_params = {}
+ if self.destination_format is not None:
+ path_params[self._lowercase_first_letter('destinationFormat')] = self.destination_format
+ if self.format is not None:
+ path_params[self._lowercase_first_letter('format')] = self.format
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = []
+ if self.file is not None:
+ local_var_files.append((self._lowercase_first_letter('File'), self.file))
+
+ body_params = None
+
+ # HTTP header `Accept`
+ header_params['Accept'] = self._select_header_accept(
+ ['multipart/form-data'])
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self._select_header_content_type(
+ ['multipart/form-data'])
+
+ # Authentication setting
+ auth_settings = ['JWT']
+
+ return HttpRequest(path, path_params, query_params, header_params, form_params, body_params, local_var_files,
+ collection_formats, auth_settings)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/convert_email_model_to_file_request.py b/sdk/AsposeEmailCloudSdk/models/requests/convert_email_model_to_file_request.py
new file mode 100644
index 0000000..492d458
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/requests/convert_email_model_to_file_request.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+##for __init__.py:from AsposeEmailCloudSdk.models.requests.convert_email_model_to_file_request import ConvertEmailModelToFileRequest
+
+from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest
+from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest
+from AsposeEmailCloudSdk.models import *
+
+
+class ConvertEmailModelToFileRequest(BaseRequest):
+ """
+ Request model for convert_email_model_to_file operation.
+ Initializes a new instance.
+
+ :param destination_format (str) File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
+ :param email_dto (EmailDto) Email model to convert
+ """
+
+ def __init__(self, destination_format: str, email_dto: EmailDto):
+ """
+ Request model for convert_email_model_to_file operation.
+ Initializes a new instance.
+
+ :param destination_format (str) File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
+ :param email_dto (EmailDto) Email model to convert
+ """
+
+ BaseRequest.__init__(self)
+ self.destination_format = destination_format
+ self.email_dto = email_dto
+
+ def to_http_info(self, config):
+ """
+ Prepares initial info for HTTP request
+
+ :param config: Email API configuration
+ :type: AsposeEmailCloudSdk.Configuration
+ :return: http_request configured http request
+ :rtype: Configuration.models.requests.HttpRequest
+ """
+ # verify the required parameter 'destination_format' is set
+ if self.destination_format is None:
+ raise ValueError("Missing the required parameter `destination_format` when calling `convert_email_model_to_file`")
+ # verify the required parameter 'email_dto' is set
+ if self.email_dto is None:
+ raise ValueError("Missing the required parameter `email_dto` when calling `convert_email_model_to_file`")
+
+ collection_formats = {}
+ path = '/email/model/model-as-file/{destinationFormat}'
+ path_params = {}
+ if self.destination_format is not None:
+ path_params[self._lowercase_first_letter('destinationFormat')] = self.destination_format
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = []
+
+ body_params = None
+ if self.email_dto is not None:
+ body_params = self.email_dto
+
+ # HTTP header `Accept`
+ header_params['Accept'] = self._select_header_accept(
+ ['multipart/form-data'])
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self._select_header_content_type(
+ ['application/json'])
+
+ # Authentication setting
+ auth_settings = ['JWT']
+
+ return HttpRequest(path, path_params, query_params, header_params, form_params, body_params, local_var_files,
+ collection_formats, auth_settings)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/convert_email_request.py b/sdk/AsposeEmailCloudSdk/models/requests/convert_email_request.py
index ff8811e..5059a0e 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/convert_email_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/convert_email_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -36,7 +36,7 @@ class ConvertEmailRequest(BaseRequest):
Initializes a new instance.
:param format (str) File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
- :param file (str) File to upload
+ :param file (str) File to convert
"""
def __init__(self, format: str, file: str):
@@ -45,7 +45,7 @@ def __init__(self, format: str, file: str):
Initializes a new instance.
:param format (str) File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
- :param file (str) File to upload
+ :param file (str) File to convert
"""
BaseRequest.__init__(self)
@@ -87,11 +87,11 @@ def to_http_info(self, config):
# HTTP header `Accept`
header_params['Accept'] = self._select_header_accept(
- ['application/json'])
+ ['multipart/form-data'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self._select_header_content_type(
- ['application/json'])
+ ['multipart/form-data'])
# Authentication setting
auth_settings = ['JWT']
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/copy_file_request.py b/sdk/AsposeEmailCloudSdk/models/requests/copy_file_request.py
index e163c8f..78e381f 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/copy_file_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/copy_file_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -35,11 +35,11 @@ class CopyFileRequest(BaseRequest):
Request model for copy_file operation.
Initializes a new instance.
- :param src_path (str) Source file path e.g. '/folder/file.ext'
- :param dest_path (str) Destination file path
- :param src_storage_name (str) Source storage name
- :param dest_storage_name (str) Destination storage name
- :param version_id (str) File version ID to copy
+ :param src_path (str)
+ :param dest_path (str)
+ :param src_storage_name (str)
+ :param dest_storage_name (str)
+ :param version_id (str)
"""
def __init__(self, src_path: str, dest_path: str, src_storage_name: str = None, dest_storage_name: str = None, version_id: str = None):
@@ -47,11 +47,11 @@ def __init__(self, src_path: str, dest_path: str, src_storage_name: str = None,
Request model for copy_file operation.
Initializes a new instance.
- :param src_path (str) Source file path e.g. '/folder/file.ext'
- :param dest_path (str) Destination file path
- :param src_storage_name (str) Source storage name
- :param dest_storage_name (str) Destination storage name
- :param version_id (str) File version ID to copy
+ :param src_path (str)
+ :param dest_path (str)
+ :param src_storage_name (str)
+ :param dest_storage_name (str)
+ :param version_id (str)
"""
BaseRequest.__init__(self)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/copy_folder_request.py b/sdk/AsposeEmailCloudSdk/models/requests/copy_folder_request.py
index d6e6ce9..de1e166 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/copy_folder_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/copy_folder_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -35,10 +35,10 @@ class CopyFolderRequest(BaseRequest):
Request model for copy_folder operation.
Initializes a new instance.
- :param src_path (str) Source folder path e.g. '/src'
- :param dest_path (str) Destination folder path e.g. '/dst'
- :param src_storage_name (str) Source storage name
- :param dest_storage_name (str) Destination storage name
+ :param src_path (str)
+ :param dest_path (str)
+ :param src_storage_name (str)
+ :param dest_storage_name (str)
"""
def __init__(self, src_path: str, dest_path: str, src_storage_name: str = None, dest_storage_name: str = None):
@@ -46,10 +46,10 @@ def __init__(self, src_path: str, dest_path: str, src_storage_name: str = None,
Request model for copy_folder operation.
Initializes a new instance.
- :param src_path (str) Source folder path e.g. '/src'
- :param dest_path (str) Destination folder path e.g. '/dst'
- :param src_storage_name (str) Source storage name
- :param dest_storage_name (str) Destination storage name
+ :param src_path (str)
+ :param dest_path (str)
+ :param src_storage_name (str)
+ :param dest_storage_name (str)
"""
BaseRequest.__init__(self)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/create_calendar_request.py b/sdk/AsposeEmailCloudSdk/models/requests/create_calendar_request.py
index 78ab9ff..8c9a5b7 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/create_calendar_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/create_calendar_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/create_contact_request.py b/sdk/AsposeEmailCloudSdk/models/requests/create_contact_request.py
index 7f7c1b3..95dbaf5 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/create_contact_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/create_contact_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/create_email_folder_request.py b/sdk/AsposeEmailCloudSdk/models/requests/create_email_folder_request.py
index 4712337..f872f41 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/create_email_folder_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/create_email_folder_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/create_email_request.py b/sdk/AsposeEmailCloudSdk/models/requests/create_email_request.py
index 67857d8..4974ab8 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/create_email_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/create_email_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/create_folder_request.py b/sdk/AsposeEmailCloudSdk/models/requests/create_folder_request.py
index 544969f..dc3151f 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/create_folder_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/create_folder_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -35,8 +35,8 @@ class CreateFolderRequest(BaseRequest):
Request model for create_folder operation.
Initializes a new instance.
- :param path (str) Folder path to create e.g. 'folder_1/folder_2/'
- :param storage_name (str) Storage name
+ :param path (str)
+ :param storage_name (str)
"""
def __init__(self, path: str, storage_name: str = None):
@@ -44,8 +44,8 @@ def __init__(self, path: str, storage_name: str = None):
Request model for create_folder operation.
Initializes a new instance.
- :param path (str) Folder path to create e.g. 'folder_1/folder_2/'
- :param storage_name (str) Storage name
+ :param path (str)
+ :param storage_name (str)
"""
BaseRequest.__init__(self)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/create_mapi_request.py b/sdk/AsposeEmailCloudSdk/models/requests/create_mapi_request.py
index abb7800..c652f65 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/create_mapi_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/create_mapi_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/delete_calendar_property_request.py b/sdk/AsposeEmailCloudSdk/models/requests/delete_calendar_property_request.py
index de0fe17..50f4c53 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/delete_calendar_property_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/delete_calendar_property_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/delete_contact_property_request.py b/sdk/AsposeEmailCloudSdk/models/requests/delete_contact_property_request.py
index 1f42a72..1f06eb7 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/delete_contact_property_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/delete_contact_property_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/delete_email_folder_request.py b/sdk/AsposeEmailCloudSdk/models/requests/delete_email_folder_request.py
index df57cf2..76b9d94 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/delete_email_folder_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/delete_email_folder_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/delete_email_message_request.py b/sdk/AsposeEmailCloudSdk/models/requests/delete_email_message_request.py
index 15090d2..d3c5f59 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/delete_email_message_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/delete_email_message_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/delete_email_thread_request.py b/sdk/AsposeEmailCloudSdk/models/requests/delete_email_thread_request.py
new file mode 100644
index 0000000..a75691f
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/requests/delete_email_thread_request.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+##for __init__.py:from AsposeEmailCloudSdk.models.requests.delete_email_thread_request import DeleteEmailThreadRequest
+
+from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest
+from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest
+from AsposeEmailCloudSdk.models import *
+
+
+class DeleteEmailThreadRequest(BaseRequest):
+ """
+ Request model for delete_email_thread operation.
+ Initializes a new instance.
+
+ :param thread_id (str) Thread id
+ :param request (DeleteEmailThreadAccountRq) Email account specifier
+ """
+
+ def __init__(self, thread_id: str, request: DeleteEmailThreadAccountRq):
+ """
+ Request model for delete_email_thread operation.
+ Initializes a new instance.
+
+ :param thread_id (str) Thread id
+ :param request (DeleteEmailThreadAccountRq) Email account specifier
+ """
+
+ BaseRequest.__init__(self)
+ self.thread_id = thread_id
+ self.request = request
+
+ def to_http_info(self, config):
+ """
+ Prepares initial info for HTTP request
+
+ :param config: Email API configuration
+ :type: AsposeEmailCloudSdk.Configuration
+ :return: http_request configured http request
+ :rtype: Configuration.models.requests.HttpRequest
+ """
+ # verify the required parameter 'thread_id' is set
+ if self.thread_id is None:
+ raise ValueError("Missing the required parameter `thread_id` when calling `delete_email_thread`")
+ # verify the required parameter 'request' is set
+ if self.request is None:
+ raise ValueError("Missing the required parameter `request` when calling `delete_email_thread`")
+
+ collection_formats = {}
+ path = '/email/client/threads/{threadId}'
+ path_params = {}
+ if self.thread_id is not None:
+ path_params[self._lowercase_first_letter('threadId')] = self.thread_id
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = []
+
+ body_params = None
+ if self.request is not None:
+ body_params = self.request
+
+ # HTTP header `Accept`
+ header_params['Accept'] = self._select_header_accept(
+ ['application/json'])
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self._select_header_content_type(
+ ['application/json'])
+
+ # Authentication setting
+ auth_settings = ['JWT']
+
+ return HttpRequest(path, path_params, query_params, header_params, form_params, body_params, local_var_files,
+ collection_formats, auth_settings)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/delete_file_request.py b/sdk/AsposeEmailCloudSdk/models/requests/delete_file_request.py
index 24f1281..d772b92 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/delete_file_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/delete_file_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -35,9 +35,9 @@ class DeleteFileRequest(BaseRequest):
Request model for delete_file operation.
Initializes a new instance.
- :param path (str) File path e.g. '/folder/file.ext'
- :param storage_name (str) Storage name
- :param version_id (str) File version ID to delete
+ :param path (str)
+ :param storage_name (str)
+ :param version_id (str)
"""
def __init__(self, path: str, storage_name: str = None, version_id: str = None):
@@ -45,9 +45,9 @@ def __init__(self, path: str, storage_name: str = None, version_id: str = None):
Request model for delete_file operation.
Initializes a new instance.
- :param path (str) File path e.g. '/folder/file.ext'
- :param storage_name (str) Storage name
- :param version_id (str) File version ID to delete
+ :param path (str)
+ :param storage_name (str)
+ :param version_id (str)
"""
BaseRequest.__init__(self)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/delete_folder_request.py b/sdk/AsposeEmailCloudSdk/models/requests/delete_folder_request.py
index 512bb44..644e5dc 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/delete_folder_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/delete_folder_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -35,9 +35,9 @@ class DeleteFolderRequest(BaseRequest):
Request model for delete_folder operation.
Initializes a new instance.
- :param path (str) Folder path e.g. '/folder'
- :param storage_name (str) Storage name
- :param recursive (bool) Enable to delete folders, subfolders and files
+ :param path (str)
+ :param storage_name (str)
+ :param recursive (bool)
"""
def __init__(self, path: str, storage_name: str = None, recursive: bool = None):
@@ -45,9 +45,9 @@ def __init__(self, path: str, storage_name: str = None, recursive: bool = None):
Request model for delete_folder operation.
Initializes a new instance.
- :param path (str) Folder path e.g. '/folder'
- :param storage_name (str) Storage name
- :param recursive (bool) Enable to delete folders, subfolders and files
+ :param path (str)
+ :param storage_name (str)
+ :param recursive (bool)
"""
BaseRequest.__init__(self)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/delete_mapi_attachment_request.py b/sdk/AsposeEmailCloudSdk/models/requests/delete_mapi_attachment_request.py
index 33139df..b3a9d4c 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/delete_mapi_attachment_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/delete_mapi_attachment_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/delete_mapi_properties_request.py b/sdk/AsposeEmailCloudSdk/models/requests/delete_mapi_properties_request.py
index f1e9ad3..0666ba3 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/delete_mapi_properties_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/delete_mapi_properties_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/discover_email_config_oauth_request.py b/sdk/AsposeEmailCloudSdk/models/requests/discover_email_config_oauth_request.py
index 29c5189..9d25517 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/discover_email_config_oauth_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/discover_email_config_oauth_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/discover_email_config_password_request.py b/sdk/AsposeEmailCloudSdk/models/requests/discover_email_config_password_request.py
index 356f46b..20fdf57 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/discover_email_config_password_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/discover_email_config_password_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/discover_email_config_request.py b/sdk/AsposeEmailCloudSdk/models/requests/discover_email_config_request.py
index 7c6fa81..6f16289 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/discover_email_config_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/discover_email_config_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/download_file_request.py b/sdk/AsposeEmailCloudSdk/models/requests/download_file_request.py
index 87d88ae..d3a9783 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/download_file_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/download_file_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -35,9 +35,9 @@ class DownloadFileRequest(BaseRequest):
Request model for download_file operation.
Initializes a new instance.
- :param path (str) File path e.g. '/folder/file.ext'
- :param storage_name (str) Storage name
- :param version_id (str) File version ID to download
+ :param path (str)
+ :param storage_name (str)
+ :param version_id (str)
"""
def __init__(self, path: str, storage_name: str = None, version_id: str = None):
@@ -45,9 +45,9 @@ def __init__(self, path: str, storage_name: str = None, version_id: str = None):
Request model for download_file operation.
Initializes a new instance.
- :param path (str) File path e.g. '/folder/file.ext'
- :param storage_name (str) Storage name
- :param version_id (str) File version ID to download
+ :param path (str)
+ :param storage_name (str)
+ :param version_id (str)
"""
BaseRequest.__init__(self)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/fetch_email_message_request.py b/sdk/AsposeEmailCloudSdk/models/requests/fetch_email_message_request.py
index ac72ad8..88d6804 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/fetch_email_message_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/fetch_email_message_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -37,19 +37,21 @@ class FetchEmailMessageRequest(BaseRequest):
:param message_id (str) Message identifier
:param first_account (str) Email account
- :param second_account (str) Additional email account (should be specified for POP/IMAP accounts and should be SMTP account)
+ :param second_account (str) Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP)
+ :param folder (str) Account folder to fetch from (should be specified for some protocols such as IMAP)
:param storage (str) Storage name where account file(s) located
:param storage_folder (str) Folder in storage where account file(s) located
"""
- def __init__(self, message_id: str, first_account: str, second_account: str = None, storage: str = None, storage_folder: str = None):
+ def __init__(self, message_id: str, first_account: str, second_account: str = None, folder: str = None, storage: str = None, storage_folder: str = None):
"""
Request model for fetch_email_message operation.
Initializes a new instance.
:param message_id (str) Message identifier
:param first_account (str) Email account
- :param second_account (str) Additional email account (should be specified for POP/IMAP accounts and should be SMTP account)
+ :param second_account (str) Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP)
+ :param folder (str) Account folder to fetch from (should be specified for some protocols such as IMAP)
:param storage (str) Storage name where account file(s) located
:param storage_folder (str) Folder in storage where account file(s) located
"""
@@ -58,6 +60,7 @@ def __init__(self, message_id: str, first_account: str, second_account: str = No
self.message_id = message_id
self.first_account = first_account
self.second_account = second_account
+ self.folder = folder
self.storage = storage
self.storage_folder = storage_folder
@@ -100,6 +103,12 @@ def to_http_info(self, config):
else:
if self.second_account is not None:
query_params.append((self._lowercase_first_letter('secondAccount'), self.second_account))
+ path_parameter = '{' + self._lowercase_first_letter('folder') + '}'
+ if path_parameter in path:
+ path = path.replace(path_parameter, self.folder if self.folder is not None else '')
+ else:
+ if self.folder is not None:
+ query_params.append((self._lowercase_first_letter('folder'), self.folder))
path_parameter = '{' + self._lowercase_first_letter('storage') + '}'
if path_parameter in path:
path = path.replace(path_parameter, self.storage if self.storage is not None else '')
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/fetch_email_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/fetch_email_model_request.py
index 0d21549..f42d422 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/fetch_email_model_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/fetch_email_model_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -37,19 +37,21 @@ class FetchEmailModelRequest(BaseRequest):
:param message_id (str) Message identifier
:param first_account (str) Email account
- :param second_account (str) Additional email account (should be specified for POP/IMAP accounts and should be SMTP account)
+ :param second_account (str) Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP)
+ :param folder (str) Account folder to fetch from (should be specified for some protocols such as IMAP)
:param storage (str) Storage name where account file(s) located
:param storage_folder (str) Folder in storage where account file(s) located
"""
- def __init__(self, message_id: str, first_account: str, second_account: str = None, storage: str = None, storage_folder: str = None):
+ def __init__(self, message_id: str, first_account: str, second_account: str = None, folder: str = None, storage: str = None, storage_folder: str = None):
"""
Request model for fetch_email_model operation.
Initializes a new instance.
:param message_id (str) Message identifier
:param first_account (str) Email account
- :param second_account (str) Additional email account (should be specified for POP/IMAP accounts and should be SMTP account)
+ :param second_account (str) Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP)
+ :param folder (str) Account folder to fetch from (should be specified for some protocols such as IMAP)
:param storage (str) Storage name where account file(s) located
:param storage_folder (str) Folder in storage where account file(s) located
"""
@@ -58,6 +60,7 @@ def __init__(self, message_id: str, first_account: str, second_account: str = No
self.message_id = message_id
self.first_account = first_account
self.second_account = second_account
+ self.folder = folder
self.storage = storage
self.storage_folder = storage_folder
@@ -100,6 +103,12 @@ def to_http_info(self, config):
else:
if self.second_account is not None:
query_params.append((self._lowercase_first_letter('secondAccount'), self.second_account))
+ path_parameter = '{' + self._lowercase_first_letter('folder') + '}'
+ if path_parameter in path:
+ path = path.replace(path_parameter, self.folder if self.folder is not None else '')
+ else:
+ if self.folder is not None:
+ query_params.append((self._lowercase_first_letter('folder'), self.folder))
path_parameter = '{' + self._lowercase_first_letter('storage') + '}'
if path_parameter in path:
path = path.replace(path_parameter, self.storage if self.storage is not None else '')
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/fetch_email_thread_messages_request.py b/sdk/AsposeEmailCloudSdk/models/requests/fetch_email_thread_messages_request.py
new file mode 100644
index 0000000..21c7a71
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/requests/fetch_email_thread_messages_request.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+##for __init__.py:from AsposeEmailCloudSdk.models.requests.fetch_email_thread_messages_request import FetchEmailThreadMessagesRequest
+
+from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest
+from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest
+from AsposeEmailCloudSdk.models import *
+
+
+class FetchEmailThreadMessagesRequest(BaseRequest):
+ """
+ Request model for fetch_email_thread_messages operation.
+ Initializes a new instance.
+
+ :param thread_id (str) Thread identifier
+ :param first_account (str) Email account
+ :param second_account (str) Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP)
+ :param folder (str) Specifies account folder to get thread from
+ :param storage (str) Storage name where account file(s) located
+ :param storage_folder (str) Folder in storage where account file(s) located
+ """
+
+ def __init__(self, thread_id: str, first_account: str, second_account: str = None, folder: str = None, storage: str = None, storage_folder: str = None):
+ """
+ Request model for fetch_email_thread_messages operation.
+ Initializes a new instance.
+
+ :param thread_id (str) Thread identifier
+ :param first_account (str) Email account
+ :param second_account (str) Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP)
+ :param folder (str) Specifies account folder to get thread from
+ :param storage (str) Storage name where account file(s) located
+ :param storage_folder (str) Folder in storage where account file(s) located
+ """
+
+ BaseRequest.__init__(self)
+ self.thread_id = thread_id
+ self.first_account = first_account
+ self.second_account = second_account
+ self.folder = folder
+ self.storage = storage
+ self.storage_folder = storage_folder
+
+ def to_http_info(self, config):
+ """
+ Prepares initial info for HTTP request
+
+ :param config: Email API configuration
+ :type: AsposeEmailCloudSdk.Configuration
+ :return: http_request configured http request
+ :rtype: Configuration.models.requests.HttpRequest
+ """
+ # verify the required parameter 'thread_id' is set
+ if self.thread_id is None:
+ raise ValueError("Missing the required parameter `thread_id` when calling `fetch_email_thread_messages`")
+ # verify the required parameter 'first_account' is set
+ if self.first_account is None:
+ raise ValueError("Missing the required parameter `first_account` when calling `fetch_email_thread_messages`")
+
+ collection_formats = {}
+ path = '/email/client/threads/{threadId}/messages'
+ path_params = {}
+ if self.thread_id is not None:
+ path_params[self._lowercase_first_letter('threadId')] = self.thread_id
+
+ query_params = []
+ path_parameter = '{' + self._lowercase_first_letter('firstAccount') + '}'
+ if path_parameter in path:
+ path = path.replace(path_parameter, self.first_account if self.first_account is not None else '')
+ else:
+ if self.first_account is not None:
+ query_params.append((self._lowercase_first_letter('firstAccount'), self.first_account))
+ path_parameter = '{' + self._lowercase_first_letter('secondAccount') + '}'
+ if path_parameter in path:
+ path = path.replace(path_parameter, self.second_account if self.second_account is not None else '')
+ else:
+ if self.second_account is not None:
+ query_params.append((self._lowercase_first_letter('secondAccount'), self.second_account))
+ path_parameter = '{' + self._lowercase_first_letter('folder') + '}'
+ if path_parameter in path:
+ path = path.replace(path_parameter, self.folder if self.folder is not None else '')
+ else:
+ if self.folder is not None:
+ query_params.append((self._lowercase_first_letter('folder'), self.folder))
+ path_parameter = '{' + self._lowercase_first_letter('storage') + '}'
+ if path_parameter in path:
+ path = path.replace(path_parameter, self.storage if self.storage is not None else '')
+ else:
+ if self.storage is not None:
+ query_params.append((self._lowercase_first_letter('storage'), self.storage))
+ path_parameter = '{' + self._lowercase_first_letter('storageFolder') + '}'
+ if path_parameter in path:
+ path = path.replace(path_parameter, self.storage_folder if self.storage_folder is not None else '')
+ else:
+ if self.storage_folder is not None:
+ query_params.append((self._lowercase_first_letter('storageFolder'), self.storage_folder))
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = []
+
+ body_params = None
+
+ # HTTP header `Accept`
+ header_params['Accept'] = self._select_header_accept(
+ ['application/json'])
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self._select_header_content_type(
+ ['application/json'])
+
+ # Authentication setting
+ auth_settings = ['JWT']
+
+ return HttpRequest(path, path_params, query_params, header_params, form_params, body_params, local_var_files,
+ collection_formats, auth_settings)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_as_file_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_as_file_request.py
new file mode 100644
index 0000000..9e0ad4f
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_as_file_request.py
@@ -0,0 +1,118 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+##for __init__.py:from AsposeEmailCloudSdk.models.requests.get_calendar_as_file_request import GetCalendarAsFileRequest
+
+from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest
+from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest
+from AsposeEmailCloudSdk.models import *
+
+
+class GetCalendarAsFileRequest(BaseRequest):
+ """
+ Request model for get_calendar_as_file operation.
+ Initializes a new instance.
+
+ :param file_name (str) Calendar document file name
+ :param format (str) File format Enum, available values: Ics, Msg
+ :param storage (str) Storage name
+ :param folder (str) Path to folder in storage
+ """
+
+ def __init__(self, file_name: str, format: str, storage: str = None, folder: str = None):
+ """
+ Request model for get_calendar_as_file operation.
+ Initializes a new instance.
+
+ :param file_name (str) Calendar document file name
+ :param format (str) File format Enum, available values: Ics, Msg
+ :param storage (str) Storage name
+ :param folder (str) Path to folder in storage
+ """
+
+ BaseRequest.__init__(self)
+ self.file_name = file_name
+ self.format = format
+ self.storage = storage
+ self.folder = folder
+
+ def to_http_info(self, config):
+ """
+ Prepares initial info for HTTP request
+
+ :param config: Email API configuration
+ :type: AsposeEmailCloudSdk.Configuration
+ :return: http_request configured http request
+ :rtype: Configuration.models.requests.HttpRequest
+ """
+ # verify the required parameter 'file_name' is set
+ if self.file_name is None:
+ raise ValueError("Missing the required parameter `file_name` when calling `get_calendar_as_file`")
+ # verify the required parameter 'format' is set
+ if self.format is None:
+ raise ValueError("Missing the required parameter `format` when calling `get_calendar_as_file`")
+
+ collection_formats = {}
+ path = '/email/CalendarModel/{fileName}/as-file/{format}'
+ path_params = {}
+ if self.file_name is not None:
+ path_params[self._lowercase_first_letter('fileName')] = self.file_name
+ if self.format is not None:
+ path_params[self._lowercase_first_letter('format')] = self.format
+
+ query_params = []
+ path_parameter = '{' + self._lowercase_first_letter('storage') + '}'
+ if path_parameter in path:
+ path = path.replace(path_parameter, self.storage if self.storage is not None else '')
+ else:
+ if self.storage is not None:
+ query_params.append((self._lowercase_first_letter('storage'), self.storage))
+ path_parameter = '{' + self._lowercase_first_letter('folder') + '}'
+ if path_parameter in path:
+ path = path.replace(path_parameter, self.folder if self.folder is not None else '')
+ else:
+ if self.folder is not None:
+ query_params.append((self._lowercase_first_letter('folder'), self.folder))
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = []
+
+ body_params = None
+
+ # HTTP header `Accept`
+ header_params['Accept'] = self._select_header_accept(
+ ['multipart/form-data'])
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self._select_header_content_type(
+ ['application/json'])
+
+ # Authentication setting
+ auth_settings = ['JWT']
+
+ return HttpRequest(path, path_params, query_params, header_params, form_params, body_params, local_var_files,
+ collection_formats, auth_settings)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_attachment_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_attachment_request.py
index d0cd2bd..d86a402 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_attachment_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_attachment_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_file_as_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_file_as_model_request.py
new file mode 100644
index 0000000..2451aa9
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_file_as_model_request.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+##for __init__.py:from AsposeEmailCloudSdk.models.requests.get_calendar_file_as_model_request import GetCalendarFileAsModelRequest
+
+from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest
+from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest
+from AsposeEmailCloudSdk.models import *
+
+
+class GetCalendarFileAsModelRequest(BaseRequest):
+ """
+ Request model for get_calendar_file_as_model operation.
+ Initializes a new instance.
+
+ :param file (str) File to convert
+ """
+
+ def __init__(self, file: str):
+ """
+ Request model for get_calendar_file_as_model operation.
+ Initializes a new instance.
+
+ :param file (str) File to convert
+ """
+
+ BaseRequest.__init__(self)
+ self.file = file
+
+ def to_http_info(self, config):
+ """
+ Prepares initial info for HTTP request
+
+ :param config: Email API configuration
+ :type: AsposeEmailCloudSdk.Configuration
+ :return: http_request configured http request
+ :rtype: Configuration.models.requests.HttpRequest
+ """
+ # verify the required parameter 'file' is set
+ if self.file is None:
+ raise ValueError("Missing the required parameter `file` when calling `get_calendar_file_as_model`")
+
+ collection_formats = {}
+ path = '/email/CalendarModel/file-as-model'
+ path_params = {}
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = []
+ if self.file is not None:
+ local_var_files.append((self._lowercase_first_letter('File'), self.file))
+
+ body_params = None
+
+ # HTTP header `Accept`
+ header_params['Accept'] = self._select_header_accept(
+ ['application/json'])
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self._select_header_content_type(
+ ['multipart/form-data'])
+
+ # Authentication setting
+ auth_settings = ['JWT']
+
+ return HttpRequest(path, path_params, query_params, header_params, form_params, body_params, local_var_files,
+ collection_formats, auth_settings)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_list_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_list_request.py
index fd56972..98babba 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_list_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_list_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_model_as_alternate_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_model_as_alternate_request.py
index 916edf3..24f9c51 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_model_as_alternate_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_model_as_alternate_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_model_list_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_model_list_request.py
index a62707f..ef35adb 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_model_list_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_model_list_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_model_request.py
index 245611b..ba85bd1 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_model_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_model_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_request.py
index a204306..51548da 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_contact_as_file_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_contact_as_file_request.py
new file mode 100644
index 0000000..12f6d67
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_contact_as_file_request.py
@@ -0,0 +1,126 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+##for __init__.py:from AsposeEmailCloudSdk.models.requests.get_contact_as_file_request import GetContactAsFileRequest
+
+from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest
+from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest
+from AsposeEmailCloudSdk.models import *
+
+
+class GetContactAsFileRequest(BaseRequest):
+ """
+ Request model for get_contact_as_file operation.
+ Initializes a new instance.
+
+ :param file_name (str) Calendar document file name
+ :param destination_format (str) File format Enum, available values: VCard, WebDav, Msg
+ :param format (str) File format to convert from Enum, available values: VCard, WebDav, Msg
+ :param storage (str) Storage name
+ :param folder (str) Path to folder in storage
+ """
+
+ def __init__(self, file_name: str, destination_format: str, format: str, storage: str = None, folder: str = None):
+ """
+ Request model for get_contact_as_file operation.
+ Initializes a new instance.
+
+ :param file_name (str) Calendar document file name
+ :param destination_format (str) File format Enum, available values: VCard, WebDav, Msg
+ :param format (str) File format to convert from Enum, available values: VCard, WebDav, Msg
+ :param storage (str) Storage name
+ :param folder (str) Path to folder in storage
+ """
+
+ BaseRequest.__init__(self)
+ self.file_name = file_name
+ self.destination_format = destination_format
+ self.format = format
+ self.storage = storage
+ self.folder = folder
+
+ def to_http_info(self, config):
+ """
+ Prepares initial info for HTTP request
+
+ :param config: Email API configuration
+ :type: AsposeEmailCloudSdk.Configuration
+ :return: http_request configured http request
+ :rtype: Configuration.models.requests.HttpRequest
+ """
+ # verify the required parameter 'file_name' is set
+ if self.file_name is None:
+ raise ValueError("Missing the required parameter `file_name` when calling `get_contact_as_file`")
+ # verify the required parameter 'destination_format' is set
+ if self.destination_format is None:
+ raise ValueError("Missing the required parameter `destination_format` when calling `get_contact_as_file`")
+ # verify the required parameter 'format' is set
+ if self.format is None:
+ raise ValueError("Missing the required parameter `format` when calling `get_contact_as_file`")
+
+ collection_formats = {}
+ path = '/email/ContactModel/{format}/{fileName}/as-file/{destinationFormat}'
+ path_params = {}
+ if self.file_name is not None:
+ path_params[self._lowercase_first_letter('fileName')] = self.file_name
+ if self.destination_format is not None:
+ path_params[self._lowercase_first_letter('destinationFormat')] = self.destination_format
+ if self.format is not None:
+ path_params[self._lowercase_first_letter('format')] = self.format
+
+ query_params = []
+ path_parameter = '{' + self._lowercase_first_letter('storage') + '}'
+ if path_parameter in path:
+ path = path.replace(path_parameter, self.storage if self.storage is not None else '')
+ else:
+ if self.storage is not None:
+ query_params.append((self._lowercase_first_letter('storage'), self.storage))
+ path_parameter = '{' + self._lowercase_first_letter('folder') + '}'
+ if path_parameter in path:
+ path = path.replace(path_parameter, self.folder if self.folder is not None else '')
+ else:
+ if self.folder is not None:
+ query_params.append((self._lowercase_first_letter('folder'), self.folder))
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = []
+
+ body_params = None
+
+ # HTTP header `Accept`
+ header_params['Accept'] = self._select_header_accept(
+ ['multipart/form-data'])
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self._select_header_content_type(
+ ['application/json'])
+
+ # Authentication setting
+ auth_settings = ['JWT']
+
+ return HttpRequest(path, path_params, query_params, header_params, form_params, body_params, local_var_files,
+ collection_formats, auth_settings)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_contact_attachment_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_contact_attachment_request.py
index d3803ab..048969a 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_contact_attachment_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_contact_attachment_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_contact_file_as_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_contact_file_as_model_request.py
new file mode 100644
index 0000000..b4003ad
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_contact_file_as_model_request.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+##for __init__.py:from AsposeEmailCloudSdk.models.requests.get_contact_file_as_model_request import GetContactFileAsModelRequest
+
+from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest
+from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest
+from AsposeEmailCloudSdk.models import *
+
+
+class GetContactFileAsModelRequest(BaseRequest):
+ """
+ Request model for get_contact_file_as_model operation.
+ Initializes a new instance.
+
+ :param format (str) File format Enum, available values: VCard, WebDav, Msg
+ :param file (str) File to convert
+ """
+
+ def __init__(self, format: str, file: str):
+ """
+ Request model for get_contact_file_as_model operation.
+ Initializes a new instance.
+
+ :param format (str) File format Enum, available values: VCard, WebDav, Msg
+ :param file (str) File to convert
+ """
+
+ BaseRequest.__init__(self)
+ self.format = format
+ self.file = file
+
+ def to_http_info(self, config):
+ """
+ Prepares initial info for HTTP request
+
+ :param config: Email API configuration
+ :type: AsposeEmailCloudSdk.Configuration
+ :return: http_request configured http request
+ :rtype: Configuration.models.requests.HttpRequest
+ """
+ # verify the required parameter 'format' is set
+ if self.format is None:
+ raise ValueError("Missing the required parameter `format` when calling `get_contact_file_as_model`")
+ # verify the required parameter 'file' is set
+ if self.file is None:
+ raise ValueError("Missing the required parameter `file` when calling `get_contact_file_as_model`")
+
+ collection_formats = {}
+ path = '/email/ContactModel/{format}/file-as-model'
+ path_params = {}
+ if self.format is not None:
+ path_params[self._lowercase_first_letter('format')] = self.format
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = []
+ if self.file is not None:
+ local_var_files.append((self._lowercase_first_letter('File'), self.file))
+
+ body_params = None
+
+ # HTTP header `Accept`
+ header_params['Accept'] = self._select_header_accept(
+ ['application/json'])
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self._select_header_content_type(
+ ['multipart/form-data'])
+
+ # Authentication setting
+ auth_settings = ['JWT']
+
+ return HttpRequest(path, path_params, query_params, header_params, form_params, body_params, local_var_files,
+ collection_formats, auth_settings)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_contact_list_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_contact_list_request.py
index dc348cf..fcb466a 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_contact_list_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_contact_list_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_contact_model_list_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_contact_model_list_request.py
index e4acf34..fec1138 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_contact_model_list_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_contact_model_list_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_contact_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_contact_model_request.py
index 21ff4b3..a5a07df 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_contact_model_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_contact_model_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_contact_properties_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_contact_properties_request.py
index b57539a..b98c580 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_contact_properties_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_contact_properties_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_disc_usage_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_disc_usage_request.py
index c8c0426..168ab74 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_disc_usage_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_disc_usage_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -35,7 +35,7 @@ class GetDiscUsageRequest(BaseRequest):
Request model for get_disc_usage operation.
Initializes a new instance.
- :param storage_name (str) Storage name
+ :param storage_name (str)
"""
def __init__(self, storage_name: str = None):
@@ -43,7 +43,7 @@ def __init__(self, storage_name: str = None):
Request model for get_disc_usage operation.
Initializes a new instance.
- :param storage_name (str) Storage name
+ :param storage_name (str)
"""
BaseRequest.__init__(self)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_email_as_file_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_email_as_file_request.py
index 49c5970..801cbbc 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_email_as_file_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_email_as_file_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_email_attachment_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_email_attachment_request.py
index 39f5e93..699bb4a 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_email_attachment_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_email_attachment_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_email_client_account_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_email_client_account_request.py
index 1f60a20..a963921 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_email_client_account_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_email_client_account_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_email_client_multi_account_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_email_client_multi_account_request.py
index 5ebca80..2f2255a 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_email_client_multi_account_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_email_client_multi_account_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_email_file_as_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_email_file_as_model_request.py
new file mode 100644
index 0000000..c0f993e
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_email_file_as_model_request.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+##for __init__.py:from AsposeEmailCloudSdk.models.requests.get_email_file_as_model_request import GetEmailFileAsModelRequest
+
+from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest
+from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest
+from AsposeEmailCloudSdk.models import *
+
+
+class GetEmailFileAsModelRequest(BaseRequest):
+ """
+ Request model for get_email_file_as_model operation.
+ Initializes a new instance.
+
+ :param file (str) File to convert
+ """
+
+ def __init__(self, file: str):
+ """
+ Request model for get_email_file_as_model operation.
+ Initializes a new instance.
+
+ :param file (str) File to convert
+ """
+
+ BaseRequest.__init__(self)
+ self.file = file
+
+ def to_http_info(self, config):
+ """
+ Prepares initial info for HTTP request
+
+ :param config: Email API configuration
+ :type: AsposeEmailCloudSdk.Configuration
+ :return: http_request configured http request
+ :rtype: Configuration.models.requests.HttpRequest
+ """
+ # verify the required parameter 'file' is set
+ if self.file is None:
+ raise ValueError("Missing the required parameter `file` when calling `get_email_file_as_model`")
+
+ collection_formats = {}
+ path = '/email/model/file-as-model'
+ path_params = {}
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = []
+ if self.file is not None:
+ local_var_files.append((self._lowercase_first_letter('File'), self.file))
+
+ body_params = None
+
+ # HTTP header `Accept`
+ header_params['Accept'] = self._select_header_accept(
+ ['application/json'])
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self._select_header_content_type(
+ ['multipart/form-data'])
+
+ # Authentication setting
+ auth_settings = ['JWT']
+
+ return HttpRequest(path, path_params, query_params, header_params, form_params, body_params, local_var_files,
+ collection_formats, auth_settings)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_email_model_list_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_email_model_list_request.py
index a6bb1fd..19db785 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_email_model_list_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_email_model_list_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_email_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_email_model_request.py
index 5f22c9d..083aa82 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_email_model_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_email_model_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_email_property_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_email_property_request.py
index 5e2ca9e..280cf6f 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_email_property_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_email_property_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_email_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_email_request.py
index 5bf2d37..0fb60b1 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_email_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_email_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_file_versions_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_file_versions_request.py
index 0c5ba5f..138c45a 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_file_versions_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_file_versions_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -35,8 +35,8 @@ class GetFileVersionsRequest(BaseRequest):
Request model for get_file_versions operation.
Initializes a new instance.
- :param path (str) File path e.g. '/file.ext'
- :param storage_name (str) Storage name
+ :param path (str)
+ :param storage_name (str)
"""
def __init__(self, path: str, storage_name: str = None):
@@ -44,8 +44,8 @@ def __init__(self, path: str, storage_name: str = None):
Request model for get_file_versions operation.
Initializes a new instance.
- :param path (str) File path e.g. '/file.ext'
- :param storage_name (str) Storage name
+ :param path (str)
+ :param storage_name (str)
"""
BaseRequest.__init__(self)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_files_list_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_files_list_request.py
index 2912f3d..d2eb5c6 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_files_list_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_files_list_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -35,8 +35,8 @@ class GetFilesListRequest(BaseRequest):
Request model for get_files_list operation.
Initializes a new instance.
- :param path (str) Folder path e.g. '/folder'
- :param storage_name (str) Storage name
+ :param path (str)
+ :param storage_name (str)
"""
def __init__(self, path: str, storage_name: str = None):
@@ -44,8 +44,8 @@ def __init__(self, path: str, storage_name: str = None):
Request model for get_files_list operation.
Initializes a new instance.
- :param path (str) Folder path e.g. '/folder'
- :param storage_name (str) Storage name
+ :param path (str)
+ :param storage_name (str)
"""
BaseRequest.__init__(self)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_attachment_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_attachment_request.py
index 0af74c7..c343805 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_attachment_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_attachment_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_attachments_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_attachments_request.py
index fa13d13..1d72861 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_attachments_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_attachments_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_list_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_list_request.py
index a60d9c8..263c665 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_list_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_list_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_properties_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_properties_request.py
index 5798343..2469ada 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_properties_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_properties_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/http_request.py b/sdk/AsposeEmailCloudSdk/models/requests/http_request.py
index d18ed5b..a61f0f8 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/http_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/http_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/is_email_address_disposable_request.py b/sdk/AsposeEmailCloudSdk/models/requests/is_email_address_disposable_request.py
index c995926..b697ccd 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/is_email_address_disposable_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/is_email_address_disposable_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/list_email_folders_request.py b/sdk/AsposeEmailCloudSdk/models/requests/list_email_folders_request.py
index 7098732..4e37474 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/list_email_folders_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/list_email_folders_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -36,7 +36,7 @@ class ListEmailFoldersRequest(BaseRequest):
Initializes a new instance.
:param first_account (str) Email account
- :param second_account (str) Additional email account (should be specified for POP/IMAP accounts and should be SMTP account)
+ :param second_account (str) Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP)
:param storage (str) Storage name where account file(s) located
:param storage_folder (str) Folder in storage where account file(s) located
:param parent_folder (str) Folder in which subfolders should be listed
@@ -48,7 +48,7 @@ def __init__(self, first_account: str, second_account: str = None, storage: str
Initializes a new instance.
:param first_account (str) Email account
- :param second_account (str) Additional email account (should be specified for POP/IMAP accounts and should be SMTP account)
+ :param second_account (str) Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP)
:param storage (str) Storage name where account file(s) located
:param storage_folder (str) Folder in storage where account file(s) located
:param parent_folder (str) Folder in which subfolders should be listed
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/list_email_messages_request.py b/sdk/AsposeEmailCloudSdk/models/requests/list_email_messages_request.py
index 9fe116c..55c853f 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/list_email_messages_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/list_email_messages_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -38,7 +38,7 @@ class ListEmailMessagesRequest(BaseRequest):
:param folder (str) A folder in email account
:param query_string (str) A MailQuery search string
:param first_account (str) Email account
- :param second_account (str) Additional email account (should be specified for POP/IMAP accounts and should be SMTP account)
+ :param second_account (str) Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP)
:param storage (str) Storage name where account file(s) located
:param storage_folder (str) Folder in storage where account file(s) located
:param recursive (bool) Specifies that should message be searched in subfolders recursively
@@ -52,7 +52,7 @@ def __init__(self, folder: str, query_string: str, first_account: str, second_ac
:param folder (str) A folder in email account
:param query_string (str) A MailQuery search string
:param first_account (str) Email account
- :param second_account (str) Additional email account (should be specified for POP/IMAP accounts and should be SMTP account)
+ :param second_account (str) Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP)
:param storage (str) Storage name where account file(s) located
:param storage_folder (str) Folder in storage where account file(s) located
:param recursive (bool) Specifies that should message be searched in subfolders recursively
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/list_email_models_request.py b/sdk/AsposeEmailCloudSdk/models/requests/list_email_models_request.py
index 1dd5bd9..c9a8dc5 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/list_email_models_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/list_email_models_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -36,23 +36,23 @@ class ListEmailModelsRequest(BaseRequest):
Initializes a new instance.
:param folder (str) A folder in email account
- :param query_string (str) A MailQuery search string
:param first_account (str) Email account
- :param second_account (str) Additional email account (should be specified for POP/IMAP accounts and should be SMTP account)
+ :param query_string (str) A MailQuery search string
+ :param second_account (str) Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP)
:param storage (str) Storage name where account file(s) located
:param storage_folder (str) Folder in storage where account file(s) located
:param recursive (bool) Specifies that should message be searched in subfolders recursively
"""
- def __init__(self, folder: str, query_string: str, first_account: str, second_account: str = None, storage: str = None, storage_folder: str = None, recursive: bool = None):
+ def __init__(self, folder: str, first_account: str, query_string: str = None, second_account: str = None, storage: str = None, storage_folder: str = None, recursive: bool = None):
"""
Request model for list_email_models operation.
Initializes a new instance.
:param folder (str) A folder in email account
- :param query_string (str) A MailQuery search string
:param first_account (str) Email account
- :param second_account (str) Additional email account (should be specified for POP/IMAP accounts and should be SMTP account)
+ :param query_string (str) A MailQuery search string
+ :param second_account (str) Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP)
:param storage (str) Storage name where account file(s) located
:param storage_folder (str) Folder in storage where account file(s) located
:param recursive (bool) Specifies that should message be searched in subfolders recursively
@@ -60,8 +60,8 @@ def __init__(self, folder: str, query_string: str, first_account: str, second_ac
BaseRequest.__init__(self)
self.folder = folder
- self.query_string = query_string
self.first_account = first_account
+ self.query_string = query_string
self.second_account = second_account
self.storage = storage
self.storage_folder = storage_folder
@@ -79,9 +79,6 @@ def to_http_info(self, config):
# verify the required parameter 'folder' is set
if self.folder is None:
raise ValueError("Missing the required parameter `folder` when calling `list_email_models`")
- # verify the required parameter 'query_string' is set
- if self.query_string is None:
- raise ValueError("Missing the required parameter `query_string` when calling `list_email_models`")
# verify the required parameter 'first_account' is set
if self.first_account is None:
raise ValueError("Missing the required parameter `first_account` when calling `list_email_models`")
@@ -97,18 +94,18 @@ def to_http_info(self, config):
else:
if self.folder is not None:
query_params.append((self._lowercase_first_letter('folder'), self.folder))
- path_parameter = '{' + self._lowercase_first_letter('queryString') + '}'
- if path_parameter in path:
- path = path.replace(path_parameter, self.query_string if self.query_string is not None else '')
- else:
- if self.query_string is not None:
- query_params.append((self._lowercase_first_letter('queryString'), self.query_string))
path_parameter = '{' + self._lowercase_first_letter('firstAccount') + '}'
if path_parameter in path:
path = path.replace(path_parameter, self.first_account if self.first_account is not None else '')
else:
if self.first_account is not None:
query_params.append((self._lowercase_first_letter('firstAccount'), self.first_account))
+ path_parameter = '{' + self._lowercase_first_letter('queryString') + '}'
+ if path_parameter in path:
+ path = path.replace(path_parameter, self.query_string if self.query_string is not None else '')
+ else:
+ if self.query_string is not None:
+ query_params.append((self._lowercase_first_letter('queryString'), self.query_string))
path_parameter = '{' + self._lowercase_first_letter('secondAccount') + '}'
if path_parameter in path:
path = path.replace(path_parameter, self.second_account if self.second_account is not None else '')
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/list_email_threads_request.py b/sdk/AsposeEmailCloudSdk/models/requests/list_email_threads_request.py
new file mode 100644
index 0000000..a244e4a
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/requests/list_email_threads_request.py
@@ -0,0 +1,153 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+##for __init__.py:from AsposeEmailCloudSdk.models.requests.list_email_threads_request import ListEmailThreadsRequest
+
+from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest
+from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest
+from AsposeEmailCloudSdk.models import *
+
+
+class ListEmailThreadsRequest(BaseRequest):
+ """
+ Request model for list_email_threads operation.
+ Initializes a new instance.
+
+ :param folder (str) A folder in email account.
+ :param first_account (str) Email account
+ :param second_account (str) Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP)
+ :param storage (str) Storage name where account file(s) located
+ :param storage_folder (str) Folder in storage where account file(s) located
+ :param update_folder_cache (bool) This parameter is only used in accounts with CacheFile. If true - get new messages and update threads cache for given folder. If false, get only threads from cache without any calls to an email account
+ :param messages_cache_limit (int) Limit messages cache size if CacheFile is used. Ignored in accounts without limits support
+ """
+
+ def __init__(self, folder: str, first_account: str, second_account: str = None, storage: str = None, storage_folder: str = None, update_folder_cache: bool = None, messages_cache_limit: int = None):
+ """
+ Request model for list_email_threads operation.
+ Initializes a new instance.
+
+ :param folder (str) A folder in email account.
+ :param first_account (str) Email account
+ :param second_account (str) Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP)
+ :param storage (str) Storage name where account file(s) located
+ :param storage_folder (str) Folder in storage where account file(s) located
+ :param update_folder_cache (bool) This parameter is only used in accounts with CacheFile. If true - get new messages and update threads cache for given folder. If false, get only threads from cache without any calls to an email account
+ :param messages_cache_limit (int) Limit messages cache size if CacheFile is used. Ignored in accounts without limits support
+ """
+
+ BaseRequest.__init__(self)
+ self.folder = folder
+ self.first_account = first_account
+ self.second_account = second_account
+ self.storage = storage
+ self.storage_folder = storage_folder
+ self.update_folder_cache = update_folder_cache
+ self.messages_cache_limit = messages_cache_limit
+
+ def to_http_info(self, config):
+ """
+ Prepares initial info for HTTP request
+
+ :param config: Email API configuration
+ :type: AsposeEmailCloudSdk.Configuration
+ :return: http_request configured http request
+ :rtype: Configuration.models.requests.HttpRequest
+ """
+ # verify the required parameter 'folder' is set
+ if self.folder is None:
+ raise ValueError("Missing the required parameter `folder` when calling `list_email_threads`")
+ # verify the required parameter 'first_account' is set
+ if self.first_account is None:
+ raise ValueError("Missing the required parameter `first_account` when calling `list_email_threads`")
+
+ collection_formats = {}
+ path = '/email/client/threads'
+ path_params = {}
+
+ query_params = []
+ path_parameter = '{' + self._lowercase_first_letter('folder') + '}'
+ if path_parameter in path:
+ path = path.replace(path_parameter, self.folder if self.folder is not None else '')
+ else:
+ if self.folder is not None:
+ query_params.append((self._lowercase_first_letter('folder'), self.folder))
+ path_parameter = '{' + self._lowercase_first_letter('firstAccount') + '}'
+ if path_parameter in path:
+ path = path.replace(path_parameter, self.first_account if self.first_account is not None else '')
+ else:
+ if self.first_account is not None:
+ query_params.append((self._lowercase_first_letter('firstAccount'), self.first_account))
+ path_parameter = '{' + self._lowercase_first_letter('secondAccount') + '}'
+ if path_parameter in path:
+ path = path.replace(path_parameter, self.second_account if self.second_account is not None else '')
+ else:
+ if self.second_account is not None:
+ query_params.append((self._lowercase_first_letter('secondAccount'), self.second_account))
+ path_parameter = '{' + self._lowercase_first_letter('storage') + '}'
+ if path_parameter in path:
+ path = path.replace(path_parameter, self.storage if self.storage is not None else '')
+ else:
+ if self.storage is not None:
+ query_params.append((self._lowercase_first_letter('storage'), self.storage))
+ path_parameter = '{' + self._lowercase_first_letter('storageFolder') + '}'
+ if path_parameter in path:
+ path = path.replace(path_parameter, self.storage_folder if self.storage_folder is not None else '')
+ else:
+ if self.storage_folder is not None:
+ query_params.append((self._lowercase_first_letter('storageFolder'), self.storage_folder))
+ path_parameter = '{' + self._lowercase_first_letter('updateFolderCache') + '}'
+ if path_parameter in path:
+ path = path.replace(path_parameter, self.update_folder_cache if self.update_folder_cache is not None else '')
+ else:
+ if self.update_folder_cache is not None:
+ query_params.append((self._lowercase_first_letter('updateFolderCache'), self.update_folder_cache))
+ path_parameter = '{' + self._lowercase_first_letter('messagesCacheLimit') + '}'
+ if path_parameter in path:
+ path = path.replace(path_parameter, self.messages_cache_limit if self.messages_cache_limit is not None else '')
+ else:
+ if self.messages_cache_limit is not None:
+ query_params.append((self._lowercase_first_letter('messagesCacheLimit'), self.messages_cache_limit))
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = []
+
+ body_params = None
+
+ # HTTP header `Accept`
+ header_params['Accept'] = self._select_header_accept(
+ ['application/json'])
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self._select_header_content_type(
+ ['application/json'])
+
+ # Authentication setting
+ auth_settings = ['JWT']
+
+ return HttpRequest(path, path_params, query_params, header_params, form_params, body_params, local_var_files,
+ collection_formats, auth_settings)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/move_email_message_request.py b/sdk/AsposeEmailCloudSdk/models/requests/move_email_message_request.py
new file mode 100644
index 0000000..00d8be7
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/requests/move_email_message_request.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+##for __init__.py:from AsposeEmailCloudSdk.models.requests.move_email_message_request import MoveEmailMessageRequest
+
+from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest
+from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest
+from AsposeEmailCloudSdk.models import *
+
+
+class MoveEmailMessageRequest(BaseRequest):
+ """
+ Request model for move_email_message operation.
+ Initializes a new instance.
+
+ :param request (MoveEmailMessageRq) Email account, folder and message specifier
+ """
+
+ def __init__(self, request: MoveEmailMessageRq):
+ """
+ Request model for move_email_message operation.
+ Initializes a new instance.
+
+ :param request (MoveEmailMessageRq) Email account, folder and message specifier
+ """
+
+ BaseRequest.__init__(self)
+ self.request = request
+
+ def to_http_info(self, config):
+ """
+ Prepares initial info for HTTP request
+
+ :param config: Email API configuration
+ :type: AsposeEmailCloudSdk.Configuration
+ :return: http_request configured http request
+ :rtype: Configuration.models.requests.HttpRequest
+ """
+ # verify the required parameter 'request' is set
+ if self.request is None:
+ raise ValueError("Missing the required parameter `request` when calling `move_email_message`")
+
+ collection_formats = {}
+ path = '/email/client/move'
+ path_params = {}
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = []
+
+ body_params = None
+ if self.request is not None:
+ body_params = self.request
+
+ # HTTP header `Accept`
+ header_params['Accept'] = self._select_header_accept(
+ ['application/json'])
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self._select_header_content_type(
+ ['application/json'])
+
+ # Authentication setting
+ auth_settings = ['JWT']
+
+ return HttpRequest(path, path_params, query_params, header_params, form_params, body_params, local_var_files,
+ collection_formats, auth_settings)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/move_email_thread_request.py b/sdk/AsposeEmailCloudSdk/models/requests/move_email_thread_request.py
new file mode 100644
index 0000000..4f76075
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/requests/move_email_thread_request.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+##for __init__.py:from AsposeEmailCloudSdk.models.requests.move_email_thread_request import MoveEmailThreadRequest
+
+from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest
+from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest
+from AsposeEmailCloudSdk.models import *
+
+
+class MoveEmailThreadRequest(BaseRequest):
+ """
+ Request model for move_email_thread operation.
+ Initializes a new instance.
+
+ :param thread_id (str) Thread identifier
+ :param request (MoveEmailThreadRq) Move thread request
+ """
+
+ def __init__(self, thread_id: str, request: MoveEmailThreadRq):
+ """
+ Request model for move_email_thread operation.
+ Initializes a new instance.
+
+ :param thread_id (str) Thread identifier
+ :param request (MoveEmailThreadRq) Move thread request
+ """
+
+ BaseRequest.__init__(self)
+ self.thread_id = thread_id
+ self.request = request
+
+ def to_http_info(self, config):
+ """
+ Prepares initial info for HTTP request
+
+ :param config: Email API configuration
+ :type: AsposeEmailCloudSdk.Configuration
+ :return: http_request configured http request
+ :rtype: Configuration.models.requests.HttpRequest
+ """
+ # verify the required parameter 'thread_id' is set
+ if self.thread_id is None:
+ raise ValueError("Missing the required parameter `thread_id` when calling `move_email_thread`")
+ # verify the required parameter 'request' is set
+ if self.request is None:
+ raise ValueError("Missing the required parameter `request` when calling `move_email_thread`")
+
+ collection_formats = {}
+ path = '/email/client/threads/{threadId}/move'
+ path_params = {}
+ if self.thread_id is not None:
+ path_params[self._lowercase_first_letter('threadId')] = self.thread_id
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = []
+
+ body_params = None
+ if self.request is not None:
+ body_params = self.request
+
+ # HTTP header `Accept`
+ header_params['Accept'] = self._select_header_accept(
+ ['application/json'])
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self._select_header_content_type(
+ ['application/json'])
+
+ # Authentication setting
+ auth_settings = ['JWT']
+
+ return HttpRequest(path, path_params, query_params, header_params, form_params, body_params, local_var_files,
+ collection_formats, auth_settings)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/move_file_request.py b/sdk/AsposeEmailCloudSdk/models/requests/move_file_request.py
index ede2fe0..f8fd627 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/move_file_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/move_file_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -35,11 +35,11 @@ class MoveFileRequest(BaseRequest):
Request model for move_file operation.
Initializes a new instance.
- :param src_path (str) Source file path e.g. '/src.ext'
- :param dest_path (str) Destination file path e.g. '/dest.ext'
- :param src_storage_name (str) Source storage name
- :param dest_storage_name (str) Destination storage name
- :param version_id (str) File version ID to move
+ :param src_path (str)
+ :param dest_path (str)
+ :param src_storage_name (str)
+ :param dest_storage_name (str)
+ :param version_id (str)
"""
def __init__(self, src_path: str, dest_path: str, src_storage_name: str = None, dest_storage_name: str = None, version_id: str = None):
@@ -47,11 +47,11 @@ def __init__(self, src_path: str, dest_path: str, src_storage_name: str = None,
Request model for move_file operation.
Initializes a new instance.
- :param src_path (str) Source file path e.g. '/src.ext'
- :param dest_path (str) Destination file path e.g. '/dest.ext'
- :param src_storage_name (str) Source storage name
- :param dest_storage_name (str) Destination storage name
- :param version_id (str) File version ID to move
+ :param src_path (str)
+ :param dest_path (str)
+ :param src_storage_name (str)
+ :param dest_storage_name (str)
+ :param version_id (str)
"""
BaseRequest.__init__(self)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/move_folder_request.py b/sdk/AsposeEmailCloudSdk/models/requests/move_folder_request.py
index e4ac899..401fd9c 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/move_folder_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/move_folder_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -35,10 +35,10 @@ class MoveFolderRequest(BaseRequest):
Request model for move_folder operation.
Initializes a new instance.
- :param src_path (str) Folder path to move e.g. '/folder'
- :param dest_path (str) Destination folder path to move to e.g '/dst'
- :param src_storage_name (str) Source storage name
- :param dest_storage_name (str) Destination storage name
+ :param src_path (str)
+ :param dest_path (str)
+ :param src_storage_name (str)
+ :param dest_storage_name (str)
"""
def __init__(self, src_path: str, dest_path: str, src_storage_name: str = None, dest_storage_name: str = None):
@@ -46,10 +46,10 @@ def __init__(self, src_path: str, dest_path: str, src_storage_name: str = None,
Request model for move_folder operation.
Initializes a new instance.
- :param src_path (str) Folder path to move e.g. '/folder'
- :param dest_path (str) Destination folder path to move to e.g '/dst'
- :param src_storage_name (str) Source storage name
- :param dest_storage_name (str) Destination storage name
+ :param src_path (str)
+ :param dest_path (str)
+ :param src_storage_name (str)
+ :param dest_storage_name (str)
"""
BaseRequest.__init__(self)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/object_exists_request.py b/sdk/AsposeEmailCloudSdk/models/requests/object_exists_request.py
index f555b04..c0fa910 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/object_exists_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/object_exists_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -35,9 +35,9 @@ class ObjectExistsRequest(BaseRequest):
Request model for object_exists operation.
Initializes a new instance.
- :param path (str) File or folder path e.g. '/file.ext' or '/folder'
- :param storage_name (str) Storage name
- :param version_id (str) File version ID
+ :param path (str)
+ :param storage_name (str)
+ :param version_id (str)
"""
def __init__(self, path: str, storage_name: str = None, version_id: str = None):
@@ -45,9 +45,9 @@ def __init__(self, path: str, storage_name: str = None, version_id: str = None):
Request model for object_exists operation.
Initializes a new instance.
- :param path (str) File or folder path e.g. '/file.ext' or '/folder'
- :param storage_name (str) Storage name
- :param version_id (str) File version ID
+ :param path (str)
+ :param storage_name (str)
+ :param version_id (str)
"""
BaseRequest.__init__(self)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/save_calendar_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/save_calendar_model_request.py
index 95a99ed..e0f8e8c 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/save_calendar_model_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/save_calendar_model_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/save_contact_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/save_contact_model_request.py
index b9f47ca..e96c131 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/save_contact_model_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/save_contact_model_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/save_email_client_account_request.py b/sdk/AsposeEmailCloudSdk/models/requests/save_email_client_account_request.py
index 458cf6f..2b878df 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/save_email_client_account_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/save_email_client_account_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/save_email_client_multi_account_request.py b/sdk/AsposeEmailCloudSdk/models/requests/save_email_client_multi_account_request.py
index 4515bdb..2963675 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/save_email_client_multi_account_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/save_email_client_multi_account_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/save_email_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/save_email_model_request.py
index 9b8938f..5481574 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/save_email_model_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/save_email_model_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -36,7 +36,7 @@ class SaveEmailModelRequest(BaseRequest):
Initializes a new instance.
:param format (str) File format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
- :param name (str) iCalendar file name in storage.
+ :param name (str) Email document file name in storage.
:param rq (StorageModelRqOfEmailDto) Calendar properties update request.
"""
@@ -46,7 +46,7 @@ def __init__(self, format: str, name: str, rq: StorageModelRqOfEmailDto):
Initializes a new instance.
:param format (str) File format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
- :param name (str) iCalendar file name in storage.
+ :param name (str) Email document file name in storage.
:param rq (StorageModelRqOfEmailDto) Calendar properties update request.
"""
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/save_mail_account_request.py b/sdk/AsposeEmailCloudSdk/models/requests/save_mail_account_request.py
index e6a4298..93c5467 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/save_mail_account_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/save_mail_account_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/save_mail_o_auth_account_request.py b/sdk/AsposeEmailCloudSdk/models/requests/save_mail_o_auth_account_request.py
index 50778e6..c47b0f4 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/save_mail_o_auth_account_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/save_mail_o_auth_account_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/send_email_mime_request.py b/sdk/AsposeEmailCloudSdk/models/requests/send_email_mime_request.py
index 9ecac66..92e852e 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/send_email_mime_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/send_email_mime_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/send_email_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/send_email_model_request.py
index 325749d..612222f 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/send_email_model_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/send_email_model_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/send_email_request.py b/sdk/AsposeEmailCloudSdk/models/requests/send_email_request.py
index b927e53..c81d1b9 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/send_email_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/send_email_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/set_email_property_request.py b/sdk/AsposeEmailCloudSdk/models/requests/set_email_property_request.py
index 3807ff3..3976cbe 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/set_email_property_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/set_email_property_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/set_email_read_flag_request.py b/sdk/AsposeEmailCloudSdk/models/requests/set_email_read_flag_request.py
index f367c03..5f6b2c9 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/set_email_read_flag_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/set_email_read_flag_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/set_email_thread_read_flag_request.py b/sdk/AsposeEmailCloudSdk/models/requests/set_email_thread_read_flag_request.py
new file mode 100644
index 0000000..5369ea6
--- /dev/null
+++ b/sdk/AsposeEmailCloudSdk/models/requests/set_email_thread_read_flag_request.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+# ----------------------------------------------------------------------------
+#
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
+#
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# ----------------------------------------------------------------------------
+##for __init__.py:from AsposeEmailCloudSdk.models.requests.set_email_thread_read_flag_request import SetEmailThreadReadFlagRequest
+
+from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest
+from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest
+from AsposeEmailCloudSdk.models import *
+
+
+class SetEmailThreadReadFlagRequest(BaseRequest):
+ """
+ Request model for set_email_thread_read_flag operation.
+ Initializes a new instance.
+
+ :param thread_id (str) Thread id
+ :param request (EmailThreadReadFlagRq) Email account specifier and IsRead flag
+ """
+
+ def __init__(self, thread_id: str, request: EmailThreadReadFlagRq):
+ """
+ Request model for set_email_thread_read_flag operation.
+ Initializes a new instance.
+
+ :param thread_id (str) Thread id
+ :param request (EmailThreadReadFlagRq) Email account specifier and IsRead flag
+ """
+
+ BaseRequest.__init__(self)
+ self.thread_id = thread_id
+ self.request = request
+
+ def to_http_info(self, config):
+ """
+ Prepares initial info for HTTP request
+
+ :param config: Email API configuration
+ :type: AsposeEmailCloudSdk.Configuration
+ :return: http_request configured http request
+ :rtype: Configuration.models.requests.HttpRequest
+ """
+ # verify the required parameter 'thread_id' is set
+ if self.thread_id is None:
+ raise ValueError("Missing the required parameter `thread_id` when calling `set_email_thread_read_flag`")
+ # verify the required parameter 'request' is set
+ if self.request is None:
+ raise ValueError("Missing the required parameter `request` when calling `set_email_thread_read_flag`")
+
+ collection_formats = {}
+ path = '/email/client/threads/{threadId}/read-flag'
+ path_params = {}
+ if self.thread_id is not None:
+ path_params[self._lowercase_first_letter('threadId')] = self.thread_id
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = []
+
+ body_params = None
+ if self.request is not None:
+ body_params = self.request
+
+ # HTTP header `Accept`
+ header_params['Accept'] = self._select_header_accept(
+ ['application/json'])
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self._select_header_content_type(
+ ['application/json'])
+
+ # Authentication setting
+ auth_settings = ['JWT']
+
+ return HttpRequest(path, path_params, query_params, header_params, form_params, body_params, local_var_files,
+ collection_formats, auth_settings)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/storage_exists_request.py b/sdk/AsposeEmailCloudSdk/models/requests/storage_exists_request.py
index 646abfe..37ae6a8 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/storage_exists_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/storage_exists_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -35,7 +35,7 @@ class StorageExistsRequest(BaseRequest):
Request model for storage_exists operation.
Initializes a new instance.
- :param storage_name (str) Storage name
+ :param storage_name (str)
"""
def __init__(self, storage_name: str):
@@ -43,7 +43,7 @@ def __init__(self, storage_name: str):
Request model for storage_exists operation.
Initializes a new instance.
- :param storage_name (str) Storage name
+ :param storage_name (str)
"""
BaseRequest.__init__(self)
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/update_calendar_properties_request.py b/sdk/AsposeEmailCloudSdk/models/requests/update_calendar_properties_request.py
index 61baa46..a04e9c2 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/update_calendar_properties_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/update_calendar_properties_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/update_contact_properties_request.py b/sdk/AsposeEmailCloudSdk/models/requests/update_contact_properties_request.py
index 46428d1..4bab81c 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/update_contact_properties_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/update_contact_properties_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/update_mapi_properties_request.py b/sdk/AsposeEmailCloudSdk/models/requests/update_mapi_properties_request.py
index cc23da4..93ec9d1 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/update_mapi_properties_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/update_mapi_properties_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/requests/upload_file_request.py b/sdk/AsposeEmailCloudSdk/models/requests/upload_file_request.py
index 1e39e17..141ed31 100644
--- a/sdk/AsposeEmailCloudSdk/models/requests/upload_file_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/requests/upload_file_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -35,9 +35,9 @@ class UploadFileRequest(BaseRequest):
Request model for upload_file operation.
Initializes a new instance.
- :param path (str) Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header.
+ :param path (str)
:param file (str) File to upload
- :param storage_name (str) Storage name
+ :param storage_name (str)
"""
def __init__(self, path: str, file: str, storage_name: str = None):
@@ -45,9 +45,9 @@ def __init__(self, path: str, file: str, storage_name: str = None):
Request model for upload_file operation.
Initializes a new instance.
- :param path (str) Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header.
+ :param path (str)
:param file (str) File to upload
- :param storage_name (str) Storage name
+ :param storage_name (str)
"""
BaseRequest.__init__(self)
diff --git a/sdk/AsposeEmailCloudSdk/models/save_email_account_request.py b/sdk/AsposeEmailCloudSdk/models/save_email_account_request.py
index 29555d9..bba9d8b 100644
--- a/sdk/AsposeEmailCloudSdk/models/save_email_account_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/save_email_account_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/save_o_auth_email_account_request.py b/sdk/AsposeEmailCloudSdk/models/save_o_auth_email_account_request.py
index ddbf889..7744212 100644
--- a/sdk/AsposeEmailCloudSdk/models/save_o_auth_email_account_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/save_o_auth_email_account_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/send_email_base_request.py b/sdk/AsposeEmailCloudSdk/models/send_email_base_request.py
index 7944103..ed03282 100644
--- a/sdk/AsposeEmailCloudSdk/models/send_email_base_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/send_email_base_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -31,7 +31,6 @@
from datetime import datetime
from AsposeEmailCloudSdk.models.account_base_request import AccountBaseRequest
-from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation
from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation
@@ -50,7 +49,7 @@ class SendEmailBaseRequest(AccountBaseRequest):
'first_account': 'str',
'second_account': 'str',
'storage_folder': 'StorageFolderLocation',
- 'email_file': 'StorageFileLocation'
+ 'email_file': 'object'
}
attribute_map = {
@@ -60,13 +59,13 @@ class SendEmailBaseRequest(AccountBaseRequest):
'email_file': 'emailFile'
}
- def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, email_file: StorageFileLocation = None):
+ def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, email_file: object = None):
"""
Send email file request
- :param first_account (str) First account storage file name for receiving emails (or universal one)
- :param second_account (str) Second account storage file name for sending emails (ignored if first is universal)
+ :param first_account (str) First account storage file name
+ :param second_account (str) Additional email account (for example, FirstAccount could be IMAP, and second one could be SMTP)
:param storage_folder (StorageFolderLocation) Storage folder location of account files
- :param email_file (StorageFileLocation) Email document (*.eml) file location in storage
+ :param email_file (object) Email document (*.eml) file location in storage
"""
super(SendEmailBaseRequest, self).__init__()
@@ -82,24 +81,24 @@ def __init__(self, first_account: str = None, second_account: str = None, storag
self.email_file = email_file
@property
- def email_file(self) -> StorageFileLocation:
+ def email_file(self) -> object:
"""Gets the email_file of this SendEmailBaseRequest.
Email document (*.eml) file location in storage
:return: The email_file of this SendEmailBaseRequest.
- :rtype: StorageFileLocation
+ :rtype: object
"""
return self._email_file
@email_file.setter
- def email_file(self, email_file: StorageFileLocation):
+ def email_file(self, email_file: object):
"""Sets the email_file of this SendEmailBaseRequest.
Email document (*.eml) file location in storage
:param email_file: The email_file of this SendEmailBaseRequest.
- :type: StorageFileLocation
+ :type: object
"""
if email_file is None:
raise ValueError("Invalid value for `email_file`, must not be `None`")
diff --git a/sdk/AsposeEmailCloudSdk/models/send_email_mime_base_request.py b/sdk/AsposeEmailCloudSdk/models/send_email_mime_base_request.py
index ad8272b..8eef46a 100644
--- a/sdk/AsposeEmailCloudSdk/models/send_email_mime_base_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/send_email_mime_base_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -62,8 +62,8 @@ class SendEmailMimeBaseRequest(AccountBaseRequest):
def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, base64_mime_message: str = None):
"""
Send email MIME request
- :param first_account (str) First account storage file name for receiving emails (or universal one)
- :param second_account (str) Second account storage file name for sending emails (ignored if first is universal)
+ :param first_account (str) First account storage file name
+ :param second_account (str) Additional email account (for example, FirstAccount could be IMAP, and second one could be SMTP)
:param storage_folder (StorageFolderLocation) Storage folder location of account files
:param base64_mime_message (str) Email document serialized as MIME
"""
diff --git a/sdk/AsposeEmailCloudSdk/models/send_email_model_rq.py b/sdk/AsposeEmailCloudSdk/models/send_email_model_rq.py
index c234670..20b4532 100644
--- a/sdk/AsposeEmailCloudSdk/models/send_email_model_rq.py
+++ b/sdk/AsposeEmailCloudSdk/models/send_email_model_rq.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -31,7 +31,6 @@
from datetime import datetime
from AsposeEmailCloudSdk.models.account_base_request import AccountBaseRequest
-from AsposeEmailCloudSdk.models.email_dto import EmailDto
from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation
@@ -50,7 +49,7 @@ class SendEmailModelRq(AccountBaseRequest):
'first_account': 'str',
'second_account': 'str',
'storage_folder': 'StorageFolderLocation',
- 'message': 'EmailDto'
+ 'message': 'object'
}
attribute_map = {
@@ -60,13 +59,13 @@ class SendEmailModelRq(AccountBaseRequest):
'message': 'message'
}
- def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, message: EmailDto = None):
+ def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, message: object = None):
"""
Send email model request
- :param first_account (str) First account storage file name for receiving emails (or universal one)
- :param second_account (str) Second account storage file name for sending emails (ignored if first is universal)
+ :param first_account (str) First account storage file name
+ :param second_account (str) Additional email account (for example, FirstAccount could be IMAP, and second one could be SMTP)
:param storage_folder (StorageFolderLocation) Storage folder location of account files
- :param message (EmailDto) Message to send
+ :param message (object) Message to send
"""
super(SendEmailModelRq, self).__init__()
@@ -82,24 +81,24 @@ def __init__(self, first_account: str = None, second_account: str = None, storag
self.message = message
@property
- def message(self) -> EmailDto:
+ def message(self) -> object:
"""Gets the message of this SendEmailModelRq.
Message to send
:return: The message of this SendEmailModelRq.
- :rtype: EmailDto
+ :rtype: object
"""
return self._message
@message.setter
- def message(self, message: EmailDto):
+ def message(self, message: object):
"""Sets the message of this SendEmailModelRq.
Message to send
:param message: The message of this SendEmailModelRq.
- :type: EmailDto
+ :type: object
"""
self._message = message
diff --git a/sdk/AsposeEmailCloudSdk/models/set_email_property_request.py b/sdk/AsposeEmailCloudSdk/models/set_email_property_request.py
index 5e09479..7bf6ed4 100644
--- a/sdk/AsposeEmailCloudSdk/models/set_email_property_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/set_email_property_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/set_message_read_flag_account_base_request.py b/sdk/AsposeEmailCloudSdk/models/set_message_read_flag_account_base_request.py
index 51a00d0..ce503ea 100644
--- a/sdk/AsposeEmailCloudSdk/models/set_message_read_flag_account_base_request.py
+++ b/sdk/AsposeEmailCloudSdk/models/set_message_read_flag_account_base_request.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -64,8 +64,8 @@ class SetMessageReadFlagAccountBaseRequest(AccountBaseRequest):
def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, message_id: str = None, is_read: bool = None):
"""
Set message is read request
- :param first_account (str) First account storage file name for receiving emails (or universal one)
- :param second_account (str) Second account storage file name for sending emails (ignored if first is universal)
+ :param first_account (str) First account storage file name
+ :param second_account (str) Additional email account (for example, FirstAccount could be IMAP, and second one could be SMTP)
:param storage_folder (StorageFolderLocation) Storage folder location of account files
:param message_id (str) Message identifier
:param is_read (bool) Specifies that message should be marked read or unread
diff --git a/sdk/AsposeEmailCloudSdk/models/storage_exist.py b/sdk/AsposeEmailCloudSdk/models/storage_exist.py
index 35b1193..6c836d5 100644
--- a/sdk/AsposeEmailCloudSdk/models/storage_exist.py
+++ b/sdk/AsposeEmailCloudSdk/models/storage_exist.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -32,7 +32,7 @@
class StorageExist(object):
- """Storage exists
+ """
"""
"""
@@ -52,8 +52,8 @@ class StorageExist(object):
def __init__(self, exists: bool = None):
"""
- Storage exists
- :param exists (bool) Shows that the storage exists.
+
+ :param exists (bool)
"""
self._exists = None
@@ -65,7 +65,6 @@ def __init__(self, exists: bool = None):
def exists(self) -> bool:
"""Gets the exists of this StorageExist.
- Shows that the storage exists.
:return: The exists of this StorageExist.
:rtype: bool
@@ -76,7 +75,6 @@ def exists(self) -> bool:
def exists(self, exists: bool):
"""Sets the exists of this StorageExist.
- Shows that the storage exists.
:param exists: The exists of this StorageExist.
:type: bool
diff --git a/sdk/AsposeEmailCloudSdk/models/storage_file.py b/sdk/AsposeEmailCloudSdk/models/storage_file.py
index 9d2456c..07a8b6b 100644
--- a/sdk/AsposeEmailCloudSdk/models/storage_file.py
+++ b/sdk/AsposeEmailCloudSdk/models/storage_file.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -32,7 +32,7 @@
class StorageFile(object):
- """File or folder information
+ """
"""
"""
@@ -60,12 +60,12 @@ class StorageFile(object):
def __init__(self, name: str = None, is_folder: bool = None, modified_date: datetime = None, size: int = None, path: str = None):
"""
- File or folder information
- :param name (str) File or folder name.
- :param is_folder (bool) True if it is a folder.
- :param modified_date (datetime) File or folder last modified DateTime.
- :param size (int) File or folder size.
- :param path (str) File or folder path.
+
+ :param name (str)
+ :param is_folder (bool)
+ :param modified_date (datetime)
+ :param size (int)
+ :param path (str)
"""
self._name = None
@@ -89,7 +89,6 @@ def __init__(self, name: str = None, is_folder: bool = None, modified_date: date
def name(self) -> str:
"""Gets the name of this StorageFile.
- File or folder name.
:return: The name of this StorageFile.
:rtype: str
@@ -100,7 +99,6 @@ def name(self) -> str:
def name(self, name: str):
"""Sets the name of this StorageFile.
- File or folder name.
:param name: The name of this StorageFile.
:type: str
@@ -111,7 +109,6 @@ def name(self, name: str):
def is_folder(self) -> bool:
"""Gets the is_folder of this StorageFile.
- True if it is a folder.
:return: The is_folder of this StorageFile.
:rtype: bool
@@ -122,7 +119,6 @@ def is_folder(self) -> bool:
def is_folder(self, is_folder: bool):
"""Sets the is_folder of this StorageFile.
- True if it is a folder.
:param is_folder: The is_folder of this StorageFile.
:type: bool
@@ -135,7 +131,6 @@ def is_folder(self, is_folder: bool):
def modified_date(self) -> datetime:
"""Gets the modified_date of this StorageFile.
- File or folder last modified DateTime.
:return: The modified_date of this StorageFile.
:rtype: datetime
@@ -146,7 +141,6 @@ def modified_date(self) -> datetime:
def modified_date(self, modified_date: datetime):
"""Sets the modified_date of this StorageFile.
- File or folder last modified DateTime.
:param modified_date: The modified_date of this StorageFile.
:type: datetime
@@ -157,7 +151,6 @@ def modified_date(self, modified_date: datetime):
def size(self) -> int:
"""Gets the size of this StorageFile.
- File or folder size.
:return: The size of this StorageFile.
:rtype: int
@@ -168,7 +161,6 @@ def size(self) -> int:
def size(self, size: int):
"""Sets the size of this StorageFile.
- File or folder size.
:param size: The size of this StorageFile.
:type: int
@@ -181,7 +173,6 @@ def size(self, size: int):
def path(self) -> str:
"""Gets the path of this StorageFile.
- File or folder path.
:return: The path of this StorageFile.
:rtype: str
@@ -192,7 +183,6 @@ def path(self) -> str:
def path(self, path: str):
"""Sets the path of this StorageFile.
- File or folder path.
:param path: The path of this StorageFile.
:type: str
diff --git a/sdk/AsposeEmailCloudSdk/models/storage_file_location.py b/sdk/AsposeEmailCloudSdk/models/storage_file_location.py
index 643661b..11d9531 100644
--- a/sdk/AsposeEmailCloudSdk/models/storage_file_location.py
+++ b/sdk/AsposeEmailCloudSdk/models/storage_file_location.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/storage_file_rq_of_email_client_account.py b/sdk/AsposeEmailCloudSdk/models/storage_file_rq_of_email_client_account.py
index dd85a6c..924cb09 100644
--- a/sdk/AsposeEmailCloudSdk/models/storage_file_rq_of_email_client_account.py
+++ b/sdk/AsposeEmailCloudSdk/models/storage_file_rq_of_email_client_account.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/storage_file_rq_of_email_client_multi_account.py b/sdk/AsposeEmailCloudSdk/models/storage_file_rq_of_email_client_multi_account.py
index 2b683a6..acac715 100644
--- a/sdk/AsposeEmailCloudSdk/models/storage_file_rq_of_email_client_multi_account.py
+++ b/sdk/AsposeEmailCloudSdk/models/storage_file_rq_of_email_client_multi_account.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/storage_folder_location.py b/sdk/AsposeEmailCloudSdk/models/storage_folder_location.py
index f3b0623..b55a23b 100644
--- a/sdk/AsposeEmailCloudSdk/models/storage_folder_location.py
+++ b/sdk/AsposeEmailCloudSdk/models/storage_folder_location.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/storage_model_of_calendar_dto.py b/sdk/AsposeEmailCloudSdk/models/storage_model_of_calendar_dto.py
index 56a3435..bbb8e5a 100644
--- a/sdk/AsposeEmailCloudSdk/models/storage_model_of_calendar_dto.py
+++ b/sdk/AsposeEmailCloudSdk/models/storage_model_of_calendar_dto.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/storage_model_of_contact_dto.py b/sdk/AsposeEmailCloudSdk/models/storage_model_of_contact_dto.py
index 3b9e11e..f45b0c4 100644
--- a/sdk/AsposeEmailCloudSdk/models/storage_model_of_contact_dto.py
+++ b/sdk/AsposeEmailCloudSdk/models/storage_model_of_contact_dto.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/storage_model_of_email_dto.py b/sdk/AsposeEmailCloudSdk/models/storage_model_of_email_dto.py
index 72fe05b..770fe77 100644
--- a/sdk/AsposeEmailCloudSdk/models/storage_model_of_email_dto.py
+++ b/sdk/AsposeEmailCloudSdk/models/storage_model_of_email_dto.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_calendar_dto.py b/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_calendar_dto.py
index a902ee2..ac615df 100644
--- a/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_calendar_dto.py
+++ b/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_calendar_dto.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_contact_dto.py b/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_contact_dto.py
index 49851f7..790cb1f 100644
--- a/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_contact_dto.py
+++ b/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_contact_dto.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_email_dto.py b/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_email_dto.py
index 1260ff4..8e9512d 100644
--- a/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_email_dto.py
+++ b/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_email_dto.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/url.py b/sdk/AsposeEmailCloudSdk/models/url.py
index d668b31..77203d8 100644
--- a/sdk/AsposeEmailCloudSdk/models/url.py
+++ b/sdk/AsposeEmailCloudSdk/models/url.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/value_response.py b/sdk/AsposeEmailCloudSdk/models/value_response.py
index ad84b2b..d3717be 100644
--- a/sdk/AsposeEmailCloudSdk/models/value_response.py
+++ b/sdk/AsposeEmailCloudSdk/models/value_response.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/models/value_t_of_boolean.py b/sdk/AsposeEmailCloudSdk/models/value_t_of_boolean.py
index b764198..01f58db 100644
--- a/sdk/AsposeEmailCloudSdk/models/value_t_of_boolean.py
+++ b/sdk/AsposeEmailCloudSdk/models/value_t_of_boolean.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/AsposeEmailCloudSdk/rest.py b/sdk/AsposeEmailCloudSdk/rest.py
index 95e6386..848dd9e 100644
--- a/sdk/AsposeEmailCloudSdk/rest.py
+++ b/sdk/AsposeEmailCloudSdk/rest.py
@@ -1,7 +1,7 @@
# coding: utf-8
# ----------------------------------------------------------------------------
#
-# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
+# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/sdk/docs/AccountBaseRequest.md b/sdk/docs/AccountBaseRequest.md
index 6aee243..29007a7 100644
--- a/sdk/docs/AccountBaseRequest.md
+++ b/sdk/docs/AccountBaseRequest.md
@@ -2,8 +2,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**first_account** | **str** | First account storage file name for receiving emails (or universal one) |
-**second_account** | **str** | Second account storage file name for sending emails (ignored if first is universal) | [optional]
+**first_account** | **str** | First account storage file name |
+**second_account** | **str** | Additional email account (for example, FirstAccount could be IMAP, and second one could be SMTP) | [optional]
**storage_folder** | [**StorageFolderLocation**](StorageFolderLocation.md) | Storage folder location of account files | [optional]
diff --git a/sdk/docs/AiBcrImageStorageFile.md b/sdk/docs/AiBcrImageStorageFile.md
index da5df2f..bd465cf 100644
--- a/sdk/docs/AiBcrImageStorageFile.md
+++ b/sdk/docs/AiBcrImageStorageFile.md
@@ -2,7 +2,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**file** | [**StorageFileLocation**](StorageFileLocation.md) | Image location | [optional]
+**file** | **object** | Image location | [optional]
Parent class: [AiBcrImage](AiBcrImage.md)
diff --git a/sdk/docs/AiBcrParseStorageRq.md b/sdk/docs/AiBcrParseStorageRq.md
index b8d7635..eb2752f 100644
--- a/sdk/docs/AiBcrParseStorageRq.md
+++ b/sdk/docs/AiBcrParseStorageRq.md
@@ -2,7 +2,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**out_folder** | [**StorageFolderLocation**](StorageFolderLocation.md) | Parse output folder location on storage |
+**out_folder** | **object** | Parse output folder location on storage |
Parent class: [AiBcrStorageImageRq](AiBcrStorageImageRq.md)
diff --git a/sdk/docs/AppendEmailBaseRequest.md b/sdk/docs/AppendEmailBaseRequest.md
index 6eca56a..4002b49 100644
--- a/sdk/docs/AppendEmailBaseRequest.md
+++ b/sdk/docs/AppendEmailBaseRequest.md
@@ -2,7 +2,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**email_file** | [**StorageFileLocation**](StorageFileLocation.md) | Email document file location in storage |
+**email_file** | **object** | Email document file location in storage |
Parent class: [AppendEmailAccountBaseRequest](AppendEmailAccountBaseRequest.md)
diff --git a/sdk/docs/AppendEmailModelRq.md b/sdk/docs/AppendEmailModelRq.md
index 51920ba..e18fa79 100644
--- a/sdk/docs/AppendEmailModelRq.md
+++ b/sdk/docs/AppendEmailModelRq.md
@@ -2,7 +2,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**message** | [**EmailDto**](EmailDto.md) | Email document |
+**message** | **object** | Email document |
Parent class: [AppendEmailAccountBaseRequest](AppendEmailAccountBaseRequest.md)
diff --git a/sdk/docs/DeleteEmailThreadAccountRq.md b/sdk/docs/DeleteEmailThreadAccountRq.md
new file mode 100644
index 0000000..8fef0c8
--- /dev/null
+++ b/sdk/docs/DeleteEmailThreadAccountRq.md
@@ -0,0 +1,11 @@
+# AsposeEmailCloudSdk.models.DeleteEmailThreadAccountRq
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**folder** | **str** | Specifies account folder to get thread from | [optional]
+
+ Parent class: [AccountBaseRequest](AccountBaseRequest.md)
+
+[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
+
+
diff --git a/sdk/docs/DeleteMessageBaseRequest.md b/sdk/docs/DeleteMessageBaseRequest.md
index 81a23fc..5aca86a 100644
--- a/sdk/docs/DeleteMessageBaseRequest.md
+++ b/sdk/docs/DeleteMessageBaseRequest.md
@@ -3,6 +3,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message_id** | **str** | Message identifier |
+**folder** | **str** | Account folder where message located. Should be specified for some accounts | [optional]
**delete_permanently** | **bool** | Specifies that message should be deleted permanently |
Parent class: [AccountBaseRequest](AccountBaseRequest.md)
diff --git a/sdk/docs/DiscUsage.md b/sdk/docs/DiscUsage.md
index 1d5bc3d..3057ab3 100644
--- a/sdk/docs/DiscUsage.md
+++ b/sdk/docs/DiscUsage.md
@@ -2,8 +2,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**used_size** | **int** | Application used disc space. |
-**total_size** | **int** | Total disc space. |
+**used_size** | **int** | |
+**total_size** | **int** | |
diff --git a/sdk/docs/EmailAddress.md b/sdk/docs/EmailAddress.md
index 044f8f3..7dc81bc 100644
--- a/sdk/docs/EmailAddress.md
+++ b/sdk/docs/EmailAddress.md
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
**preferred** | **bool** | Defines whether email address is preferred. |
**routing_type** | **str** | A routing type for an email. | [optional]
**address** | **str** | Email address. | [optional]
+**original_address_string** | **str** | The original e-mail address string | [optional]
diff --git a/sdk/docs/EmailApi.md b/sdk/docs/EmailApi.md
index 573beeb..c252f2b 100644
--- a/sdk/docs/EmailApi.md
+++ b/sdk/docs/EmailApi.md
@@ -1788,6 +1788,75 @@ Name | Type | Description | Notes
[[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)
+
+# **convert_calendar**
+> convert_calendar(self, convert_calendar_request)
+
+Converts calendar document to specified format and returns as file
+
+### Return type
+
+**file**
+
+### Request Parameters
+```python
+__init__(self,
+ format,
+ file)
+```
+
+### Usage
+```python
+EmailApi.convert_calendar(
+ ConvertCalendarRequest(
+ format,
+ file))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **format** | **str**| File format Enum, available values: Ics, Msg |
+ **file** | **file**| File to convert |
+
+[[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)
+
+
+# **convert_calendar_async**
+> convert_calendar_async(self, convert_calendar_request)
+
+Converts calendar document to specified format and returns as file
+
+Performs operation asynchronously.
+
+### Return type
+
+Returns multiprocessing.pool.AsyncResult.
+convert_calendar_async(request).get() returns **file**
+
+### Request Parameters
+```python
+__init__(self,
+ format,
+ file)
+```
+
+### Usage
+```python
+EmailApi.convert_calendar_async(
+ ConvertCalendarRequest(
+ format,
+ file))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **format** | **str**| File format Enum, available values: Ics, Msg |
+ **file** | **file**| File to convert |
+
+[[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)
+
# **convert_calendar_model_to_alternate**
> convert_calendar_model_to_alternate(self, convert_calendar_model_to_alternate_request)
@@ -1851,6 +1920,219 @@ Name | Type | Description | Notes
[[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)
+
+# **convert_calendar_model_to_file**
+> convert_calendar_model_to_file(self, convert_calendar_model_to_file_request)
+
+Converts calendar model to specified format and returns as file
+
+### Return type
+
+**file**
+
+### Request Parameters
+```python
+__init__(self,
+ format,
+ calendar_dto)
+```
+
+### Usage
+```python
+EmailApi.convert_calendar_model_to_file(
+ ConvertCalendarModelToFileRequest(
+ format,
+ calendar_dto))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **format** | **str**| File format Enum, available values: Ics, Msg |
+ **calendar_dto** | [**CalendarDto**](CalendarDto.md)| Calendar model to convert |
+
+[[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)
+
+
+# **convert_calendar_model_to_file_async**
+> convert_calendar_model_to_file_async(self, convert_calendar_model_to_file_request)
+
+Converts calendar model to specified format and returns as file
+
+Performs operation asynchronously.
+
+### Return type
+
+Returns multiprocessing.pool.AsyncResult.
+convert_calendar_model_to_file_async(request).get() returns **file**
+
+### Request Parameters
+```python
+__init__(self,
+ format,
+ calendar_dto)
+```
+
+### Usage
+```python
+EmailApi.convert_calendar_model_to_file_async(
+ ConvertCalendarModelToFileRequest(
+ format,
+ calendar_dto))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **format** | **str**| File format Enum, available values: Ics, Msg |
+ **calendar_dto** | [**CalendarDto**](CalendarDto.md)| Calendar model to convert |
+
+[[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)
+
+
+# **convert_contact**
+> convert_contact(self, convert_contact_request)
+
+Converts contact document to specified format and returns as file
+
+### Return type
+
+**file**
+
+### Request Parameters
+```python
+__init__(self,
+ destination_format,
+ format,
+ file)
+```
+
+### Usage
+```python
+EmailApi.convert_contact(
+ ConvertContactRequest(
+ destination_format,
+ format,
+ file))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **destination_format** | **str**| File format to convert to Enum, available values: VCard, WebDav, Msg |
+ **format** | **str**| File format to convert from Enum, available values: VCard, WebDav, Msg |
+ **file** | **file**| File to convert |
+
+[[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)
+
+
+# **convert_contact_async**
+> convert_contact_async(self, convert_contact_request)
+
+Converts contact document to specified format and returns as file
+
+Performs operation asynchronously.
+
+### Return type
+
+Returns multiprocessing.pool.AsyncResult.
+convert_contact_async(request).get() returns **file**
+
+### Request Parameters
+```python
+__init__(self,
+ destination_format,
+ format,
+ file)
+```
+
+### Usage
+```python
+EmailApi.convert_contact_async(
+ ConvertContactRequest(
+ destination_format,
+ format,
+ file))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **destination_format** | **str**| File format to convert to Enum, available values: VCard, WebDav, Msg |
+ **format** | **str**| File format to convert from Enum, available values: VCard, WebDav, Msg |
+ **file** | **file**| File to convert |
+
+[[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)
+
+
+# **convert_contact_model_to_file**
+> convert_contact_model_to_file(self, convert_contact_model_to_file_request)
+
+Converts contact model to specified format and returns as file
+
+### Return type
+
+**file**
+
+### Request Parameters
+```python
+__init__(self,
+ destination_format,
+ contact_dto)
+```
+
+### Usage
+```python
+EmailApi.convert_contact_model_to_file(
+ ConvertContactModelToFileRequest(
+ destination_format,
+ contact_dto))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **destination_format** | **str**| File format Enum, available values: VCard, WebDav, Msg |
+ **contact_dto** | [**ContactDto**](ContactDto.md)| Contact model to convert |
+
+[[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)
+
+
+# **convert_contact_model_to_file_async**
+> convert_contact_model_to_file_async(self, convert_contact_model_to_file_request)
+
+Converts contact model to specified format and returns as file
+
+Performs operation asynchronously.
+
+### Return type
+
+Returns multiprocessing.pool.AsyncResult.
+convert_contact_model_to_file_async(request).get() returns **file**
+
+### Request Parameters
+```python
+__init__(self,
+ destination_format,
+ contact_dto)
+```
+
+### Usage
+```python
+EmailApi.convert_contact_model_to_file_async(
+ ConvertContactModelToFileRequest(
+ destination_format,
+ contact_dto))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **destination_format** | **str**| File format Enum, available values: VCard, WebDav, Msg |
+ **contact_dto** | [**ContactDto**](ContactDto.md)| Contact model to convert |
+
+[[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)
+
# **convert_email**
> convert_email(self, convert_email_request)
@@ -1859,7 +2141,7 @@ Converts email document to specified format and returns as file
### Return type
-[**file**](file.md)
+**file**
### Request Parameters
```python
@@ -1880,7 +2162,7 @@ EmailApi.convert_email(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**format** | **str**| File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html |
- **file** | **file**| File to upload |
+ **file** | **file**| File to convert |
[[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)
@@ -1895,7 +2177,7 @@ Performs operation asynchronously.
### Return type
Returns multiprocessing.pool.AsyncResult.
-convert_email_async(request).get() returns [**file**](file.md)
+convert_email_async(request).get() returns **file**
### Request Parameters
```python
@@ -1916,7 +2198,76 @@ EmailApi.convert_email_async(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**format** | **str**| File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html |
- **file** | **file**| File to upload |
+ **file** | **file**| File to convert |
+
+[[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)
+
+
+# **convert_email_model_to_file**
+> convert_email_model_to_file(self, convert_email_model_to_file_request)
+
+Converts Email model to specified format and returns as file
+
+### Return type
+
+**file**
+
+### Request Parameters
+```python
+__init__(self,
+ destination_format,
+ email_dto)
+```
+
+### Usage
+```python
+EmailApi.convert_email_model_to_file(
+ ConvertEmailModelToFileRequest(
+ destination_format,
+ email_dto))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **destination_format** | **str**| File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html |
+ **email_dto** | [**EmailDto**](EmailDto.md)| Email model to convert |
+
+[[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)
+
+
+# **convert_email_model_to_file_async**
+> convert_email_model_to_file_async(self, convert_email_model_to_file_request)
+
+Converts Email model to specified format and returns as file
+
+Performs operation asynchronously.
+
+### Return type
+
+Returns multiprocessing.pool.AsyncResult.
+convert_email_model_to_file_async(request).get() returns **file**
+
+### Request Parameters
+```python
+__init__(self,
+ destination_format,
+ email_dto)
+```
+
+### Usage
+```python
+EmailApi.convert_email_model_to_file_async(
+ ConvertEmailModelToFileRequest(
+ destination_format,
+ email_dto))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **destination_format** | **str**| File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html |
+ **email_dto** | [**EmailDto**](EmailDto.md)| Email model to convert |
[[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)
@@ -1924,7 +2275,7 @@ Name | Type | Description | Notes
# **copy_file**
> copy_file(self, copy_file_request)
-Copy file
+
### Return type
@@ -1954,11 +2305,11 @@ EmailApi.copy_file(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **src_path** | **str**| Source file path e.g. '/folder/file.ext' |
- **dest_path** | **str**| Destination file path |
- **src_storage_name** | **str**| Source storage name | [optional]
- **dest_storage_name** | **str**| Destination storage name | [optional]
- **version_id** | **str**| File version ID to copy | [optional]
+ **src_path** | **str**| |
+ **dest_path** | **str**| |
+ **src_storage_name** | **str**| | [optional]
+ **dest_storage_name** | **str**| | [optional]
+ **version_id** | **str**| | [optional]
[[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)
@@ -1966,7 +2317,7 @@ Name | Type | Description | Notes
# **copy_file_async**
> copy_file_async(self, copy_file_request)
-Copy file
+
Performs operation asynchronously.
@@ -1999,11 +2350,11 @@ EmailApi.copy_file_async(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **src_path** | **str**| Source file path e.g. '/folder/file.ext' |
- **dest_path** | **str**| Destination file path |
- **src_storage_name** | **str**| Source storage name | [optional]
- **dest_storage_name** | **str**| Destination storage name | [optional]
- **version_id** | **str**| File version ID to copy | [optional]
+ **src_path** | **str**| |
+ **dest_path** | **str**| |
+ **src_storage_name** | **str**| | [optional]
+ **dest_storage_name** | **str**| | [optional]
+ **version_id** | **str**| | [optional]
[[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)
@@ -2011,7 +2362,7 @@ Name | Type | Description | Notes
# **copy_folder**
> copy_folder(self, copy_folder_request)
-Copy folder
+
### Return type
@@ -2039,10 +2390,10 @@ EmailApi.copy_folder(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **src_path** | **str**| Source folder path e.g. '/src' |
- **dest_path** | **str**| Destination folder path e.g. '/dst' |
- **src_storage_name** | **str**| Source storage name | [optional]
- **dest_storage_name** | **str**| Destination storage name | [optional]
+ **src_path** | **str**| |
+ **dest_path** | **str**| |
+ **src_storage_name** | **str**| | [optional]
+ **dest_storage_name** | **str**| | [optional]
[[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)
@@ -2050,7 +2401,7 @@ Name | Type | Description | Notes
# **copy_folder_async**
> copy_folder_async(self, copy_folder_request)
-Copy folder
+
Performs operation asynchronously.
@@ -2081,10 +2432,10 @@ EmailApi.copy_folder_async(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **src_path** | **str**| Source folder path e.g. '/src' |
- **dest_path** | **str**| Destination folder path e.g. '/dst' |
- **src_storage_name** | **str**| Source storage name | [optional]
- **dest_storage_name** | **str**| Destination storage name | [optional]
+ **src_path** | **str**| |
+ **dest_path** | **str**| |
+ **src_storage_name** | **str**| | [optional]
+ **dest_storage_name** | **str**| | [optional]
[[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)
@@ -2368,7 +2719,7 @@ Name | Type | Description | Notes
# **create_folder**
> create_folder(self, create_folder_request)
-Create the folder
+
### Return type
@@ -2392,8 +2743,8 @@ EmailApi.create_folder(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **path** | **str**| Folder path to create e.g. 'folder_1/folder_2/' |
- **storage_name** | **str**| Storage name | [optional]
+ **path** | **str**| |
+ **storage_name** | **str**| | [optional]
[[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)
@@ -2401,7 +2752,7 @@ Name | Type | Description | Notes
# **create_folder_async**
> create_folder_async(self, create_folder_request)
-Create the folder
+
Performs operation asynchronously.
@@ -2428,8 +2779,8 @@ EmailApi.create_folder_async(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **path** | **str**| Folder path to create e.g. 'folder_1/folder_2/' |
- **storage_name** | **str**| Storage name | [optional]
+ **path** | **str**| |
+ **storage_name** | **str**| | [optional]
[[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)
@@ -2796,11 +3147,80 @@ Name | Type | Description | Notes
[[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)
+
+# **delete_email_thread**
+> delete_email_thread(self, delete_email_thread_request)
+
+Delete thread by id. All messages from thread will also be deleted
+
+### Return type
+
+void (empty response body)
+
+### Request Parameters
+```python
+__init__(self,
+ thread_id,
+ request)
+```
+
+### Usage
+```python
+EmailApi.delete_email_thread(
+ DeleteEmailThreadRequest(
+ thread_id,
+ request))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **thread_id** | **str**| Thread id |
+ **request** | [**DeleteEmailThreadAccountRq**](DeleteEmailThreadAccountRq.md)| Email account specifier |
+
+[[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)
+
+
+# **delete_email_thread_async**
+> delete_email_thread_async(self, delete_email_thread_request)
+
+Delete thread by id. All messages from thread will also be deleted
+
+Performs operation asynchronously.
+
+### Return type
+
+Returns multiprocessing.pool.AsyncResult.
+delete_email_thread_async(request).get() returns void (empty response body)
+
+### Request Parameters
+```python
+__init__(self,
+ thread_id,
+ request)
+```
+
+### Usage
+```python
+EmailApi.delete_email_thread_async(
+ DeleteEmailThreadRequest(
+ thread_id,
+ request))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **thread_id** | **str**| Thread id |
+ **request** | [**DeleteEmailThreadAccountRq**](DeleteEmailThreadAccountRq.md)| Email account specifier |
+
+[[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)
+
# **delete_file**
> delete_file(self, delete_file_request)
-Delete file
+
### Return type
@@ -2826,9 +3246,9 @@ EmailApi.delete_file(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **path** | **str**| File path e.g. '/folder/file.ext' |
- **storage_name** | **str**| Storage name | [optional]
- **version_id** | **str**| File version ID to delete | [optional]
+ **path** | **str**| |
+ **storage_name** | **str**| | [optional]
+ **version_id** | **str**| | [optional]
[[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)
@@ -2836,7 +3256,7 @@ Name | Type | Description | Notes
# **delete_file_async**
> delete_file_async(self, delete_file_request)
-Delete file
+
Performs operation asynchronously.
@@ -2865,9 +3285,9 @@ EmailApi.delete_file_async(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **path** | **str**| File path e.g. '/folder/file.ext' |
- **storage_name** | **str**| Storage name | [optional]
- **version_id** | **str**| File version ID to delete | [optional]
+ **path** | **str**| |
+ **storage_name** | **str**| | [optional]
+ **version_id** | **str**| | [optional]
[[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)
@@ -2875,7 +3295,7 @@ Name | Type | Description | Notes
# **delete_folder**
> delete_folder(self, delete_folder_request)
-Delete folder
+
### Return type
@@ -2901,9 +3321,9 @@ EmailApi.delete_folder(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **path** | **str**| Folder path e.g. '/folder' |
- **storage_name** | **str**| Storage name | [optional]
- **recursive** | **bool**| Enable to delete folders, subfolders and files | [optional] [default to false]
+ **path** | **str**| |
+ **storage_name** | **str**| | [optional]
+ **recursive** | **bool**| | [optional] [default to false]
[[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)
@@ -2911,7 +3331,7 @@ Name | Type | Description | Notes
# **delete_folder_async**
> delete_folder_async(self, delete_folder_request)
-Delete folder
+
Performs operation asynchronously.
@@ -2940,9 +3360,9 @@ EmailApi.delete_folder_async(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **path** | **str**| Folder path e.g. '/folder' |
- **storage_name** | **str**| Storage name | [optional]
- **recursive** | **bool**| Enable to delete folders, subfolders and files | [optional] [default to false]
+ **path** | **str**| |
+ **storage_name** | **str**| | [optional]
+ **recursive** | **bool**| | [optional] [default to false]
[[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)
@@ -3289,7 +3709,7 @@ Name | Type | Description | Notes
# **download_file**
> download_file(self, download_file_request)
-Download file
+
### Return type
@@ -3315,9 +3735,9 @@ EmailApi.download_file(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **path** | **str**| File path e.g. '/folder/file.ext' |
- **storage_name** | **str**| Storage name | [optional]
- **version_id** | **str**| File version ID to download | [optional]
+ **path** | **str**| |
+ **storage_name** | **str**| | [optional]
+ **version_id** | **str**| | [optional]
[[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)
@@ -3325,7 +3745,7 @@ Name | Type | Description | Notes
# **download_file_async**
> download_file_async(self, download_file_request)
-Download file
+
Performs operation asynchronously.
@@ -3354,9 +3774,9 @@ EmailApi.download_file_async(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **path** | **str**| File path e.g. '/folder/file.ext' |
- **storage_name** | **str**| Storage name | [optional]
- **version_id** | **str**| File version ID to download | [optional]
+ **path** | **str**| |
+ **storage_name** | **str**| | [optional]
+ **version_id** | **str**| | [optional]
[[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)
@@ -3376,6 +3796,7 @@ __init__(self,
message_id,
first_account,
second_account=second_account,
+ folder=folder,
storage=storage,
storage_folder=storage_folder)
```
@@ -3387,6 +3808,7 @@ EmailApi.fetch_email_message(
message_id,
first_account,
second_account=second_account,
+ folder=folder,
storage=storage,
storage_folder=storage_folder))
```
@@ -3396,7 +3818,8 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**message_id** | **str**| Message identifier |
**first_account** | **str**| Email account |
- **second_account** | **str**| Additional email account (should be specified for POP/IMAP accounts and should be SMTP account) | [optional]
+ **second_account** | **str**| Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP) | [optional]
+ **folder** | **str**| Account folder to fetch from (should be specified for some protocols such as IMAP) | [optional]
**storage** | **str**| Storage name where account file(s) located | [optional]
**storage_folder** | **str**| Folder in storage where account file(s) located | [optional]
@@ -3421,6 +3844,7 @@ __init__(self,
message_id,
first_account,
second_account=second_account,
+ folder=folder,
storage=storage,
storage_folder=storage_folder)
```
@@ -3432,6 +3856,7 @@ EmailApi.fetch_email_message_async(
message_id,
first_account,
second_account=second_account,
+ folder=folder,
storage=storage,
storage_folder=storage_folder))
```
@@ -3441,7 +3866,8 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**message_id** | **str**| Message identifier |
**first_account** | **str**| Email account |
- **second_account** | **str**| Additional email account (should be specified for POP/IMAP accounts and should be SMTP account) | [optional]
+ **second_account** | **str**| Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP) | [optional]
+ **folder** | **str**| Account folder to fetch from (should be specified for some protocols such as IMAP) | [optional]
**storage** | **str**| Storage name where account file(s) located | [optional]
**storage_folder** | **str**| Folder in storage where account file(s) located | [optional]
@@ -3463,6 +3889,7 @@ __init__(self,
message_id,
first_account,
second_account=second_account,
+ folder=folder,
storage=storage,
storage_folder=storage_folder)
```
@@ -3474,6 +3901,7 @@ EmailApi.fetch_email_model(
message_id,
first_account,
second_account=second_account,
+ folder=folder,
storage=storage,
storage_folder=storage_folder))
```
@@ -3483,7 +3911,8 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**message_id** | **str**| Message identifier |
**first_account** | **str**| Email account |
- **second_account** | **str**| Additional email account (should be specified for POP/IMAP accounts and should be SMTP account) | [optional]
+ **second_account** | **str**| Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP) | [optional]
+ **folder** | **str**| Account folder to fetch from (should be specified for some protocols such as IMAP) | [optional]
**storage** | **str**| Storage name where account file(s) located | [optional]
**storage_folder** | **str**| Folder in storage where account file(s) located | [optional]
@@ -3508,6 +3937,7 @@ __init__(self,
message_id,
first_account,
second_account=second_account,
+ folder=folder,
storage=storage,
storage_folder=storage_folder)
```
@@ -3519,6 +3949,7 @@ EmailApi.fetch_email_model_async(
message_id,
first_account,
second_account=second_account,
+ folder=folder,
storage=storage,
storage_folder=storage_folder))
```
@@ -3528,7 +3959,101 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**message_id** | **str**| Message identifier |
**first_account** | **str**| Email account |
- **second_account** | **str**| Additional email account (should be specified for POP/IMAP accounts and should be SMTP account) | [optional]
+ **second_account** | **str**| Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP) | [optional]
+ **folder** | **str**| Account folder to fetch from (should be specified for some protocols such as IMAP) | [optional]
+ **storage** | **str**| Storage name where account file(s) located | [optional]
+ **storage_folder** | **str**| Folder in storage where account file(s) located | [optional]
+
+[[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)
+
+
+# **fetch_email_thread_messages**
+> fetch_email_thread_messages(self, fetch_email_thread_messages_request)
+
+Get messages from thread by id. All messages are fully fetched. For accounts with CacheFile only cached messages will be returned.
+
+### Return type
+
+[**ListResponseOfEmailDto**](ListResponseOfEmailDto.md)
+
+### Request Parameters
+```python
+__init__(self,
+ thread_id,
+ first_account,
+ second_account=second_account,
+ folder=folder,
+ storage=storage,
+ storage_folder=storage_folder)
+```
+
+### Usage
+```python
+EmailApi.fetch_email_thread_messages(
+ FetchEmailThreadMessagesRequest(
+ thread_id,
+ first_account,
+ second_account=second_account,
+ folder=folder,
+ storage=storage,
+ storage_folder=storage_folder))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **thread_id** | **str**| Thread identifier |
+ **first_account** | **str**| Email account |
+ **second_account** | **str**| Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP) | [optional]
+ **folder** | **str**| Specifies account folder to get thread from | [optional]
+ **storage** | **str**| Storage name where account file(s) located | [optional]
+ **storage_folder** | **str**| Folder in storage where account file(s) located | [optional]
+
+[[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)
+
+
+# **fetch_email_thread_messages_async**
+> fetch_email_thread_messages_async(self, fetch_email_thread_messages_request)
+
+Get messages from thread by id. All messages are fully fetched. For accounts with CacheFile only cached messages will be returned.
+
+Performs operation asynchronously.
+
+### Return type
+
+Returns multiprocessing.pool.AsyncResult.
+fetch_email_thread_messages_async(request).get() returns [**ListResponseOfEmailDto**](ListResponseOfEmailDto.md)
+
+### Request Parameters
+```python
+__init__(self,
+ thread_id,
+ first_account,
+ second_account=second_account,
+ folder=folder,
+ storage=storage,
+ storage_folder=storage_folder)
+```
+
+### Usage
+```python
+EmailApi.fetch_email_thread_messages_async(
+ FetchEmailThreadMessagesRequest(
+ thread_id,
+ first_account,
+ second_account=second_account,
+ folder=folder,
+ storage=storage,
+ storage_folder=storage_folder))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **thread_id** | **str**| Thread identifier |
+ **first_account** | **str**| Email account |
+ **second_account** | **str**| Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP) | [optional]
+ **folder** | **str**| Specifies account folder to get thread from | [optional]
**storage** | **str**| Storage name where account file(s) located | [optional]
**storage_folder** | **str**| Folder in storage where account file(s) located | [optional]
@@ -3564,48 +4089,129 @@ EmailApi.get_calendar(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **name** | **str**| iCalendar file name in storage |
- **folder** | **str**| Path to folder in storage | [optional]
+ **name** | **str**| iCalendar file name in storage |
+ **folder** | **str**| Path to folder in storage | [optional]
+ **storage** | **str**| Storage name | [optional]
+
+[[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)
+
+
+# **get_calendar_async**
+> get_calendar_async(self, get_calendar_request)
+
+Get calendar file properties
+
+Performs operation asynchronously.
+
+### Return type
+
+Returns multiprocessing.pool.AsyncResult.
+get_calendar_async(request).get() returns [**HierarchicalObject**](HierarchicalObject.md)
+
+### Request Parameters
+```python
+__init__(self,
+ name,
+ folder=folder,
+ storage=storage)
+```
+
+### Usage
+```python
+EmailApi.get_calendar_async(
+ GetCalendarRequest(
+ name,
+ folder=folder,
+ storage=storage))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **name** | **str**| iCalendar file name in storage |
+ **folder** | **str**| Path to folder in storage | [optional]
+ **storage** | **str**| Storage name | [optional]
+
+[[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)
+
+
+# **get_calendar_as_file**
+> get_calendar_as_file(self, get_calendar_as_file_request)
+
+Converts calendar document from storage to specified format and returns as file
+
+### Return type
+
+**file**
+
+### Request Parameters
+```python
+__init__(self,
+ file_name,
+ format,
+ storage=storage,
+ folder=folder)
+```
+
+### Usage
+```python
+EmailApi.get_calendar_as_file(
+ GetCalendarAsFileRequest(
+ file_name,
+ format,
+ storage=storage,
+ folder=folder))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **file_name** | **str**| Calendar document file name |
+ **format** | **str**| File format Enum, available values: Ics, Msg |
**storage** | **str**| Storage name | [optional]
+ **folder** | **str**| Path to folder in storage | [optional]
[[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)
-
-# **get_calendar_async**
-> get_calendar_async(self, get_calendar_request)
+
+# **get_calendar_as_file_async**
+> get_calendar_as_file_async(self, get_calendar_as_file_request)
-Get calendar file properties
+Converts calendar document from storage to specified format and returns as file
Performs operation asynchronously.
### Return type
Returns multiprocessing.pool.AsyncResult.
-get_calendar_async(request).get() returns [**HierarchicalObject**](HierarchicalObject.md)
+get_calendar_as_file_async(request).get() returns **file**
### Request Parameters
```python
__init__(self,
- name,
- folder=folder,
- storage=storage)
+ file_name,
+ format,
+ storage=storage,
+ folder=folder)
```
### Usage
```python
-EmailApi.get_calendar_async(
- GetCalendarRequest(
- name,
- folder=folder,
- storage=storage))
+EmailApi.get_calendar_as_file_async(
+ GetCalendarAsFileRequest(
+ file_name,
+ format,
+ storage=storage,
+ folder=folder))
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **name** | **str**| iCalendar file name in storage |
- **folder** | **str**| Path to folder in storage | [optional]
+ **file_name** | **str**| Calendar document file name |
+ **format** | **str**| File format Enum, available values: Ics, Msg |
**storage** | **str**| Storage name | [optional]
+ **folder** | **str**| Path to folder in storage | [optional]
[[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)
@@ -3690,6 +4296,69 @@ Name | Type | Description | Notes
[[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)
+
+# **get_calendar_file_as_model**
+> get_calendar_file_as_model(self, get_calendar_file_as_model_request)
+
+Converts calendar document to a model representation
+
+### Return type
+
+[**CalendarDto**](CalendarDto.md)
+
+### Request Parameters
+```python
+__init__(self,
+ file)
+```
+
+### Usage
+```python
+EmailApi.get_calendar_file_as_model(
+ GetCalendarFileAsModelRequest(
+ file))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **file** | **file**| File to convert |
+
+[[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)
+
+
+# **get_calendar_file_as_model_async**
+> get_calendar_file_as_model_async(self, get_calendar_file_as_model_request)
+
+Converts calendar document to a model representation
+
+Performs operation asynchronously.
+
+### Return type
+
+Returns multiprocessing.pool.AsyncResult.
+get_calendar_file_as_model_async(request).get() returns [**CalendarDto**](CalendarDto.md)
+
+### Request Parameters
+```python
+__init__(self,
+ file)
+```
+
+### Usage
+```python
+EmailApi.get_calendar_file_as_model_async(
+ GetCalendarFileAsModelRequest(
+ file))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **file** | **file**| File to convert |
+
+[[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)
+
# **get_calendar_list**
> get_calendar_list(self, get_calendar_list_request)
@@ -4014,6 +4683,93 @@ Name | Type | Description | Notes
[[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)
+
+# **get_contact_as_file**
+> get_contact_as_file(self, get_contact_as_file_request)
+
+Converts calendar document from storage to specified format and returns as file
+
+### Return type
+
+**file**
+
+### Request Parameters
+```python
+__init__(self,
+ file_name,
+ destination_format,
+ format,
+ storage=storage,
+ folder=folder)
+```
+
+### Usage
+```python
+EmailApi.get_contact_as_file(
+ GetContactAsFileRequest(
+ file_name,
+ destination_format,
+ format,
+ storage=storage,
+ folder=folder))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **file_name** | **str**| Calendar document file name |
+ **destination_format** | **str**| File format Enum, available values: VCard, WebDav, Msg |
+ **format** | **str**| File format to convert from Enum, available values: VCard, WebDav, Msg |
+ **storage** | **str**| Storage name | [optional]
+ **folder** | **str**| Path to folder in storage | [optional]
+
+[[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)
+
+
+# **get_contact_as_file_async**
+> get_contact_as_file_async(self, get_contact_as_file_request)
+
+Converts calendar document from storage to specified format and returns as file
+
+Performs operation asynchronously.
+
+### Return type
+
+Returns multiprocessing.pool.AsyncResult.
+get_contact_as_file_async(request).get() returns **file**
+
+### Request Parameters
+```python
+__init__(self,
+ file_name,
+ destination_format,
+ format,
+ storage=storage,
+ folder=folder)
+```
+
+### Usage
+```python
+EmailApi.get_contact_as_file_async(
+ GetContactAsFileRequest(
+ file_name,
+ destination_format,
+ format,
+ storage=storage,
+ folder=folder))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **file_name** | **str**| Calendar document file name |
+ **destination_format** | **str**| File format Enum, available values: VCard, WebDav, Msg |
+ **format** | **str**| File format to convert from Enum, available values: VCard, WebDav, Msg |
+ **storage** | **str**| Storage name | [optional]
+ **folder** | **str**| Path to folder in storage | [optional]
+
+[[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)
+
# **get_contact_attachment**
> get_contact_attachment(self, get_contact_attachment_request)
@@ -4101,6 +4857,75 @@ Name | Type | Description | Notes
[[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)
+
+# **get_contact_file_as_model**
+> get_contact_file_as_model(self, get_contact_file_as_model_request)
+
+Converts contact document to a model representation
+
+### Return type
+
+[**ContactDto**](ContactDto.md)
+
+### Request Parameters
+```python
+__init__(self,
+ format,
+ file)
+```
+
+### Usage
+```python
+EmailApi.get_contact_file_as_model(
+ GetContactFileAsModelRequest(
+ format,
+ file))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **format** | **str**| File format Enum, available values: VCard, WebDav, Msg |
+ **file** | **file**| File to convert |
+
+[[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)
+
+
+# **get_contact_file_as_model_async**
+> get_contact_file_as_model_async(self, get_contact_file_as_model_request)
+
+Converts contact document to a model representation
+
+Performs operation asynchronously.
+
+### Return type
+
+Returns multiprocessing.pool.AsyncResult.
+get_contact_file_as_model_async(request).get() returns [**ContactDto**](ContactDto.md)
+
+### Request Parameters
+```python
+__init__(self,
+ format,
+ file)
+```
+
+### Usage
+```python
+EmailApi.get_contact_file_as_model_async(
+ GetContactFileAsModelRequest(
+ format,
+ file))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **format** | **str**| File format Enum, available values: VCard, WebDav, Msg |
+ **file** | **file**| File to convert |
+
+[[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)
+
# **get_contact_list**
> get_contact_list(self, get_contact_list_request)
@@ -4441,7 +5266,7 @@ Name | Type | Description | Notes
# **get_disc_usage**
> get_disc_usage(self, get_disc_usage_request)
-Get disc usage
+
### Return type
@@ -4463,7 +5288,7 @@ EmailApi.get_disc_usage(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **storage_name** | **str**| Storage name | [optional]
+ **storage_name** | **str**| | [optional]
[[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)
@@ -4471,7 +5296,7 @@ Name | Type | Description | Notes
# **get_disc_usage_async**
> get_disc_usage_async(self, get_disc_usage_request)
-Get disc usage
+
Performs operation asynchronously.
@@ -4496,7 +5321,7 @@ EmailApi.get_disc_usage_async(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **storage_name** | **str**| Storage name | [optional]
+ **storage_name** | **str**| | [optional]
[[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)
@@ -4842,48 +5667,111 @@ EmailApi.get_email_client_multi_account(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **name** | **str**| File name on storage |
- **folder** | **str**| Folder on storage |
- **storage** | **str**| Storage name |
+ **name** | **str**| File name on storage |
+ **folder** | **str**| Folder on storage |
+ **storage** | **str**| Storage name |
+
+[[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)
+
+
+# **get_email_client_multi_account_async**
+> get_email_client_multi_account_async(self, get_email_client_multi_account_request)
+
+Get email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\".
+
+Performs operation asynchronously.
+
+### Return type
+
+Returns multiprocessing.pool.AsyncResult.
+get_email_client_multi_account_async(request).get() returns [**EmailClientMultiAccount**](EmailClientMultiAccount.md)
+
+### Request Parameters
+```python
+__init__(self,
+ name,
+ folder,
+ storage)
+```
+
+### Usage
+```python
+EmailApi.get_email_client_multi_account_async(
+ GetEmailClientMultiAccountRequest(
+ name,
+ folder,
+ storage))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **name** | **str**| File name on storage |
+ **folder** | **str**| Folder on storage |
+ **storage** | **str**| Storage name |
+
+[[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)
+
+
+# **get_email_file_as_model**
+> get_email_file_as_model(self, get_email_file_as_model_request)
+
+Converts email document to a model representation
+
+### Return type
+
+[**EmailDto**](EmailDto.md)
+
+### Request Parameters
+```python
+__init__(self,
+ file)
+```
+
+### Usage
+```python
+EmailApi.get_email_file_as_model(
+ GetEmailFileAsModelRequest(
+ file))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **file** | **file**| File to convert |
[[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)
-
-# **get_email_client_multi_account_async**
-> get_email_client_multi_account_async(self, get_email_client_multi_account_request)
+
+# **get_email_file_as_model_async**
+> get_email_file_as_model_async(self, get_email_file_as_model_request)
-Get email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\".
+Converts email document to a model representation
Performs operation asynchronously.
### Return type
Returns multiprocessing.pool.AsyncResult.
-get_email_client_multi_account_async(request).get() returns [**EmailClientMultiAccount**](EmailClientMultiAccount.md)
+get_email_file_as_model_async(request).get() returns [**EmailDto**](EmailDto.md)
### Request Parameters
```python
__init__(self,
- name,
- folder,
- storage)
+ file)
```
### Usage
```python
-EmailApi.get_email_client_multi_account_async(
- GetEmailClientMultiAccountRequest(
- name,
- folder,
- storage))
+EmailApi.get_email_file_as_model_async(
+ GetEmailFileAsModelRequest(
+ file))
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **name** | **str**| File name on storage |
- **folder** | **str**| Folder on storage |
- **storage** | **str**| Storage name |
+ **file** | **file**| File to convert |
[[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)
@@ -5140,7 +6028,7 @@ Name | Type | Description | Notes
# **get_file_versions**
> get_file_versions(self, get_file_versions_request)
-Get file versions
+
### Return type
@@ -5164,8 +6052,8 @@ EmailApi.get_file_versions(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **path** | **str**| File path e.g. '/file.ext' |
- **storage_name** | **str**| Storage name | [optional]
+ **path** | **str**| |
+ **storage_name** | **str**| | [optional]
[[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)
@@ -5173,7 +6061,7 @@ Name | Type | Description | Notes
# **get_file_versions_async**
> get_file_versions_async(self, get_file_versions_request)
-Get file versions
+
Performs operation asynchronously.
@@ -5200,8 +6088,8 @@ EmailApi.get_file_versions_async(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **path** | **str**| File path e.g. '/file.ext' |
- **storage_name** | **str**| Storage name | [optional]
+ **path** | **str**| |
+ **storage_name** | **str**| | [optional]
[[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)
@@ -5209,7 +6097,7 @@ Name | Type | Description | Notes
# **get_files_list**
> get_files_list(self, get_files_list_request)
-Get all files and folders within a folder
+
### Return type
@@ -5233,8 +6121,8 @@ EmailApi.get_files_list(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **path** | **str**| Folder path e.g. '/folder' |
- **storage_name** | **str**| Storage name | [optional]
+ **path** | **str**| |
+ **storage_name** | **str**| | [optional]
[[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)
@@ -5242,7 +6130,7 @@ Name | Type | Description | Notes
# **get_files_list_async**
> get_files_list_async(self, get_files_list_request)
-Get all files and folders within a folder
+
Performs operation asynchronously.
@@ -5269,8 +6157,8 @@ EmailApi.get_files_list_async(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **path** | **str**| Folder path e.g. '/folder' |
- **storage_name** | **str**| Storage name | [optional]
+ **path** | **str**| |
+ **storage_name** | **str**| | [optional]
[[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)
@@ -5684,7 +6572,7 @@ EmailApi.list_email_folders(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**first_account** | **str**| Email account |
- **second_account** | **str**| Additional email account (should be specified for POP/IMAP accounts and should be SMTP account) | [optional]
+ **second_account** | **str**| Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP) | [optional]
**storage** | **str**| Storage name where account file(s) located | [optional]
**storage_folder** | **str**| Folder in storage where account file(s) located | [optional]
**parent_folder** | **str**| Folder in which subfolders should be listed | [optional]
@@ -5729,7 +6617,7 @@ EmailApi.list_email_folders_async(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**first_account** | **str**| Email account |
- **second_account** | **str**| Additional email account (should be specified for POP/IMAP accounts and should be SMTP account) | [optional]
+ **second_account** | **str**| Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP) | [optional]
**storage** | **str**| Storage name where account file(s) located | [optional]
**storage_folder** | **str**| Folder in storage where account file(s) located | [optional]
**parent_folder** | **str**| Folder in which subfolders should be listed | [optional]
@@ -5779,7 +6667,7 @@ Name | Type | Description | Notes
**folder** | **str**| A folder in email account |
**query_string** | **str**| A MailQuery search string |
**first_account** | **str**| Email account |
- **second_account** | **str**| Additional email account (should be specified for POP/IMAP accounts and should be SMTP account) | [optional]
+ **second_account** | **str**| Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP) | [optional]
**storage** | **str**| Storage name where account file(s) located | [optional]
**storage_folder** | **str**| Folder in storage where account file(s) located | [optional]
**recursive** | **bool**| Specifies that should message be searched in subfolders recursively | [optional] [default to false]
@@ -5832,7 +6720,7 @@ Name | Type | Description | Notes
**folder** | **str**| A folder in email account |
**query_string** | **str**| A MailQuery search string |
**first_account** | **str**| Email account |
- **second_account** | **str**| Additional email account (should be specified for POP/IMAP accounts and should be SMTP account) | [optional]
+ **second_account** | **str**| Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP) | [optional]
**storage** | **str**| Storage name where account file(s) located | [optional]
**storage_folder** | **str**| Folder in storage where account file(s) located | [optional]
**recursive** | **bool**| Specifies that should message be searched in subfolders recursively | [optional] [default to false]
@@ -5855,8 +6743,8 @@ The query string should have the following view. The example of a simple ex
```python
__init__(self,
folder,
- query_string,
first_account,
+ query_string=query_string,
second_account=second_account,
storage=storage,
storage_folder=storage_folder,
@@ -5868,8 +6756,8 @@ __init__(self,
EmailApi.list_email_models(
ListEmailModelsRequest(
folder,
- query_string,
first_account,
+ query_string=query_string,
second_account=second_account,
storage=storage,
storage_folder=storage_folder,
@@ -5880,9 +6768,9 @@ EmailApi.list_email_models(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**folder** | **str**| A folder in email account |
- **query_string** | **str**| A MailQuery search string |
**first_account** | **str**| Email account |
- **second_account** | **str**| Additional email account (should be specified for POP/IMAP accounts and should be SMTP account) | [optional]
+ **query_string** | **str**| A MailQuery search string | [optional]
+ **second_account** | **str**| Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP) | [optional]
**storage** | **str**| Storage name where account file(s) located | [optional]
**storage_folder** | **str**| Folder in storage where account file(s) located | [optional]
**recursive** | **bool**| Specifies that should message be searched in subfolders recursively | [optional] [default to false]
@@ -5908,8 +6796,8 @@ list_email_models_async(request).get() returns [**ListResponseOfEmailDto**](List
```python
__init__(self,
folder,
- query_string,
first_account,
+ query_string=query_string,
second_account=second_account,
storage=storage,
storage_folder=storage_folder,
@@ -5921,8 +6809,8 @@ __init__(self,
EmailApi.list_email_models_async(
ListEmailModelsRequest(
folder,
- query_string,
first_account,
+ query_string=query_string,
second_account=second_account,
storage=storage,
storage_folder=storage_folder,
@@ -5933,20 +6821,251 @@ EmailApi.list_email_models_async(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**folder** | **str**| A folder in email account |
- **query_string** | **str**| A MailQuery search string |
**first_account** | **str**| Email account |
- **second_account** | **str**| Additional email account (should be specified for POP/IMAP accounts and should be SMTP account) | [optional]
+ **query_string** | **str**| A MailQuery search string | [optional]
+ **second_account** | **str**| Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP) | [optional]
**storage** | **str**| Storage name where account file(s) located | [optional]
**storage_folder** | **str**| Folder in storage where account file(s) located | [optional]
**recursive** | **bool**| Specifies that should message be searched in subfolders recursively | [optional] [default to false]
[[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)
+
+# **list_email_threads**
+> list_email_threads(self, list_email_threads_request)
+
+Get message threads from folder. All messages are partly fetched (without email body and other fields)
+
+### Return type
+
+[**EmailThreadList**](EmailThreadList.md)
+
+### Request Parameters
+```python
+__init__(self,
+ folder,
+ first_account,
+ second_account=second_account,
+ storage=storage,
+ storage_folder=storage_folder,
+ update_folder_cache=update_folder_cache,
+ messages_cache_limit=messages_cache_limit)
+```
+
+### Usage
+```python
+EmailApi.list_email_threads(
+ ListEmailThreadsRequest(
+ folder,
+ first_account,
+ second_account=second_account,
+ storage=storage,
+ storage_folder=storage_folder,
+ update_folder_cache=update_folder_cache,
+ messages_cache_limit=messages_cache_limit))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **folder** | **str**| A folder in email account. |
+ **first_account** | **str**| Email account |
+ **second_account** | **str**| Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP) | [optional]
+ **storage** | **str**| Storage name where account file(s) located | [optional]
+ **storage_folder** | **str**| Folder in storage where account file(s) located | [optional]
+ **update_folder_cache** | **bool**| This parameter is only used in accounts with CacheFile. If true - get new messages and update threads cache for given folder. If false, get only threads from cache without any calls to an email account | [optional] [default to true]
+ **messages_cache_limit** | **int**| Limit messages cache size if CacheFile is used. Ignored in accounts without limits support | [optional] [default to 200]
+
+[[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)
+
+
+# **list_email_threads_async**
+> list_email_threads_async(self, list_email_threads_request)
+
+Get message threads from folder. All messages are partly fetched (without email body and other fields)
+
+Performs operation asynchronously.
+
+### Return type
+
+Returns multiprocessing.pool.AsyncResult.
+list_email_threads_async(request).get() returns [**EmailThreadList**](EmailThreadList.md)
+
+### Request Parameters
+```python
+__init__(self,
+ folder,
+ first_account,
+ second_account=second_account,
+ storage=storage,
+ storage_folder=storage_folder,
+ update_folder_cache=update_folder_cache,
+ messages_cache_limit=messages_cache_limit)
+```
+
+### Usage
+```python
+EmailApi.list_email_threads_async(
+ ListEmailThreadsRequest(
+ folder,
+ first_account,
+ second_account=second_account,
+ storage=storage,
+ storage_folder=storage_folder,
+ update_folder_cache=update_folder_cache,
+ messages_cache_limit=messages_cache_limit))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **folder** | **str**| A folder in email account. |
+ **first_account** | **str**| Email account |
+ **second_account** | **str**| Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP) | [optional]
+ **storage** | **str**| Storage name where account file(s) located | [optional]
+ **storage_folder** | **str**| Folder in storage where account file(s) located | [optional]
+ **update_folder_cache** | **bool**| This parameter is only used in accounts with CacheFile. If true - get new messages and update threads cache for given folder. If false, get only threads from cache without any calls to an email account | [optional] [default to true]
+ **messages_cache_limit** | **int**| Limit messages cache size if CacheFile is used. Ignored in accounts without limits support | [optional] [default to 200]
+
+[[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)
+
+
+# **move_email_message**
+> move_email_message(self, move_email_message_request)
+
+Move message to another folder
+
+### Return type
+
+void (empty response body)
+
+### Request Parameters
+```python
+__init__(self,
+ request)
+```
+
+### Usage
+```python
+EmailApi.move_email_message(
+ MoveEmailMessageRequest(
+ request))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **request** | [**MoveEmailMessageRq**](MoveEmailMessageRq.md)| Email account, folder and message specifier |
+
+[[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)
+
+
+# **move_email_message_async**
+> move_email_message_async(self, move_email_message_request)
+
+Move message to another folder
+
+Performs operation asynchronously.
+
+### Return type
+
+Returns multiprocessing.pool.AsyncResult.
+move_email_message_async(request).get() returns void (empty response body)
+
+### Request Parameters
+```python
+__init__(self,
+ request)
+```
+
+### Usage
+```python
+EmailApi.move_email_message_async(
+ MoveEmailMessageRequest(
+ request))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **request** | [**MoveEmailMessageRq**](MoveEmailMessageRq.md)| Email account, folder and message specifier |
+
+[[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)
+
+
+# **move_email_thread**
+> move_email_thread(self, move_email_thread_request)
+
+Move thread to another folder
+
+### Return type
+
+void (empty response body)
+
+### Request Parameters
+```python
+__init__(self,
+ thread_id,
+ request)
+```
+
+### Usage
+```python
+EmailApi.move_email_thread(
+ MoveEmailThreadRequest(
+ thread_id,
+ request))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **thread_id** | **str**| Thread identifier |
+ **request** | [**MoveEmailThreadRq**](MoveEmailThreadRq.md)| Move thread request |
+
+[[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)
+
+
+# **move_email_thread_async**
+> move_email_thread_async(self, move_email_thread_request)
+
+Move thread to another folder
+
+Performs operation asynchronously.
+
+### Return type
+
+Returns multiprocessing.pool.AsyncResult.
+move_email_thread_async(request).get() returns void (empty response body)
+
+### Request Parameters
+```python
+__init__(self,
+ thread_id,
+ request)
+```
+
+### Usage
+```python
+EmailApi.move_email_thread_async(
+ MoveEmailThreadRequest(
+ thread_id,
+ request))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **thread_id** | **str**| Thread identifier |
+ **request** | [**MoveEmailThreadRq**](MoveEmailThreadRq.md)| Move thread request |
+
+[[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)
+
# **move_file**
> move_file(self, move_file_request)
-Move file
+
### Return type
@@ -5976,11 +7095,11 @@ EmailApi.move_file(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **src_path** | **str**| Source file path e.g. '/src.ext' |
- **dest_path** | **str**| Destination file path e.g. '/dest.ext' |
- **src_storage_name** | **str**| Source storage name | [optional]
- **dest_storage_name** | **str**| Destination storage name | [optional]
- **version_id** | **str**| File version ID to move | [optional]
+ **src_path** | **str**| |
+ **dest_path** | **str**| |
+ **src_storage_name** | **str**| | [optional]
+ **dest_storage_name** | **str**| | [optional]
+ **version_id** | **str**| | [optional]
[[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)
@@ -5988,7 +7107,7 @@ Name | Type | Description | Notes
# **move_file_async**
> move_file_async(self, move_file_request)
-Move file
+
Performs operation asynchronously.
@@ -6021,11 +7140,11 @@ EmailApi.move_file_async(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **src_path** | **str**| Source file path e.g. '/src.ext' |
- **dest_path** | **str**| Destination file path e.g. '/dest.ext' |
- **src_storage_name** | **str**| Source storage name | [optional]
- **dest_storage_name** | **str**| Destination storage name | [optional]
- **version_id** | **str**| File version ID to move | [optional]
+ **src_path** | **str**| |
+ **dest_path** | **str**| |
+ **src_storage_name** | **str**| | [optional]
+ **dest_storage_name** | **str**| | [optional]
+ **version_id** | **str**| | [optional]
[[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)
@@ -6033,7 +7152,7 @@ Name | Type | Description | Notes
# **move_folder**
> move_folder(self, move_folder_request)
-Move folder
+
### Return type
@@ -6061,10 +7180,10 @@ EmailApi.move_folder(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **src_path** | **str**| Folder path to move e.g. '/folder' |
- **dest_path** | **str**| Destination folder path to move to e.g '/dst' |
- **src_storage_name** | **str**| Source storage name | [optional]
- **dest_storage_name** | **str**| Destination storage name | [optional]
+ **src_path** | **str**| |
+ **dest_path** | **str**| |
+ **src_storage_name** | **str**| | [optional]
+ **dest_storage_name** | **str**| | [optional]
[[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)
@@ -6072,7 +7191,7 @@ Name | Type | Description | Notes
# **move_folder_async**
> move_folder_async(self, move_folder_request)
-Move folder
+
Performs operation asynchronously.
@@ -6103,10 +7222,10 @@ EmailApi.move_folder_async(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **src_path** | **str**| Folder path to move e.g. '/folder' |
- **dest_path** | **str**| Destination folder path to move to e.g '/dst' |
- **src_storage_name** | **str**| Source storage name | [optional]
- **dest_storage_name** | **str**| Destination storage name | [optional]
+ **src_path** | **str**| |
+ **dest_path** | **str**| |
+ **src_storage_name** | **str**| | [optional]
+ **dest_storage_name** | **str**| | [optional]
[[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)
@@ -6114,7 +7233,7 @@ Name | Type | Description | Notes
# **object_exists**
> object_exists(self, object_exists_request)
-Check if file or folder exists
+
### Return type
@@ -6140,9 +7259,9 @@ EmailApi.object_exists(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **path** | **str**| File or folder path e.g. '/file.ext' or '/folder' |
- **storage_name** | **str**| Storage name | [optional]
- **version_id** | **str**| File version ID | [optional]
+ **path** | **str**| |
+ **storage_name** | **str**| | [optional]
+ **version_id** | **str**| | [optional]
[[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)
@@ -6150,7 +7269,7 @@ Name | Type | Description | Notes
# **object_exists_async**
> object_exists_async(self, object_exists_request)
-Check if file or folder exists
+
Performs operation asynchronously.
@@ -6179,9 +7298,9 @@ EmailApi.object_exists_async(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **path** | **str**| File or folder path e.g. '/file.ext' or '/folder' |
- **storage_name** | **str**| Storage name | [optional]
- **version_id** | **str**| File version ID | [optional]
+ **path** | **str**| |
+ **storage_name** | **str**| | [optional]
+ **version_id** | **str**| | [optional]
[[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)
@@ -6486,7 +7605,7 @@ EmailApi.save_email_model(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**format** | **str**| File format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html |
- **name** | **str**| iCalendar file name in storage. |
+ **name** | **str**| Email document file name in storage. |
**rq** | [**StorageModelRqOfEmailDto**](StorageModelRqOfEmailDto.md)| Calendar properties update request. |
[[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)
@@ -6525,7 +7644,7 @@ EmailApi.save_email_model_async(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**format** | **str**| File format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html |
- **name** | **str**| iCalendar file name in storage. |
+ **name** | **str**| Email document file name in storage. |
**rq** | [**StorageModelRqOfEmailDto**](StorageModelRqOfEmailDto.md)| Calendar properties update request. |
[[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)
@@ -6983,11 +8102,80 @@ Name | Type | Description | Notes
[[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)
+
+# **set_email_thread_read_flag**
+> set_email_thread_read_flag(self, set_email_thread_read_flag_request)
+
+Mark all messages in thread as read or unread
+
+### Return type
+
+void (empty response body)
+
+### Request Parameters
+```python
+__init__(self,
+ thread_id,
+ request)
+```
+
+### Usage
+```python
+EmailApi.set_email_thread_read_flag(
+ SetEmailThreadReadFlagRequest(
+ thread_id,
+ request))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **thread_id** | **str**| Thread id |
+ **request** | [**EmailThreadReadFlagRq**](EmailThreadReadFlagRq.md)| Email account specifier and IsRead flag |
+
+[[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)
+
+
+# **set_email_thread_read_flag_async**
+> set_email_thread_read_flag_async(self, set_email_thread_read_flag_request)
+
+Mark all messages in thread as read or unread
+
+Performs operation asynchronously.
+
+### Return type
+
+Returns multiprocessing.pool.AsyncResult.
+set_email_thread_read_flag_async(request).get() returns void (empty response body)
+
+### Request Parameters
+```python
+__init__(self,
+ thread_id,
+ request)
+```
+
+### Usage
+```python
+EmailApi.set_email_thread_read_flag_async(
+ SetEmailThreadReadFlagRequest(
+ thread_id,
+ request))
+```
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **thread_id** | **str**| Thread id |
+ **request** | [**EmailThreadReadFlagRq**](EmailThreadReadFlagRq.md)| Email account specifier and IsRead flag |
+
+[[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)
+
# **storage_exists**
> storage_exists(self, storage_exists_request)
-Check if storage exists
+
### Return type
@@ -7009,7 +8197,7 @@ EmailApi.storage_exists(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **storage_name** | **str**| Storage name |
+ **storage_name** | **str**| |
[[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)
@@ -7017,7 +8205,7 @@ Name | Type | Description | Notes
# **storage_exists_async**
> storage_exists_async(self, storage_exists_request)
-Check if storage exists
+
Performs operation asynchronously.
@@ -7042,7 +8230,7 @@ EmailApi.storage_exists_async(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **storage_name** | **str**| Storage name |
+ **storage_name** | **str**| |
[[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)
@@ -7263,7 +8451,7 @@ Name | Type | Description | Notes
# **upload_file**
> upload_file(self, upload_file_request)
-Upload file
+
### Return type
@@ -7289,9 +8477,9 @@ EmailApi.upload_file(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **path** | **str**| Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header. |
+ **path** | **str**| |
**file** | **file**| File to upload |
- **storage_name** | **str**| Storage name | [optional]
+ **storage_name** | **str**| | [optional]
[[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)
@@ -7299,7 +8487,7 @@ Name | Type | Description | Notes
# **upload_file_async**
> upload_file_async(self, upload_file_request)
-Upload file
+
Performs operation asynchronously.
@@ -7328,9 +8516,9 @@ EmailApi.upload_file_async(
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **path** | **str**| Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header. |
+ **path** | **str**| |
**file** | **file**| File to upload |
- **storage_name** | **str**| Storage name | [optional]
+ **storage_name** | **str**| | [optional]
[[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)
diff --git a/sdk/docs/EmailClientAccount.md b/sdk/docs/EmailClientAccount.md
index 3c88dfa..defea7d 100644
--- a/sdk/docs/EmailClientAccount.md
+++ b/sdk/docs/EmailClientAccount.md
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
**security_options** | **str** | Email account security mode Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto |
**protocol_type** | **str** | Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav |
**credentials** | [**EmailClientAccountCredentials**](EmailClientAccountCredentials.md) | Email client account credentials |
+**cache_file** | [**StorageFileLocation**](StorageFileLocation.md) | File with messages cache. Used to provide extra functions, which are not supported by account | [optional]
diff --git a/sdk/docs/EmailThread.md b/sdk/docs/EmailThread.md
new file mode 100644
index 0000000..d2546b1
--- /dev/null
+++ b/sdk/docs/EmailThread.md
@@ -0,0 +1,14 @@
+# AsposeEmailCloudSdk.models.EmailThread
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | Thread identifier | [optional]
+**subject** | **str** | Thread subject | [optional]
+**messages** | [**list[EmailDto]**](EmailDto.md) | List of messages in thread | [optional]
+**folder** | **str** | Thread folder location | [optional]
+
+
+
+[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
+
+
diff --git a/sdk/docs/EmailThreadList.md b/sdk/docs/EmailThreadList.md
new file mode 100644
index 0000000..48ac793
--- /dev/null
+++ b/sdk/docs/EmailThreadList.md
@@ -0,0 +1,10 @@
+# AsposeEmailCloudSdk.models.EmailThreadList
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+ Parent class: [ListResponseOfEmailThread](ListResponseOfEmailThread.md)
+
+[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
+
+
diff --git a/sdk/docs/EmailThreadReadFlagRq.md b/sdk/docs/EmailThreadReadFlagRq.md
new file mode 100644
index 0000000..67030a8
--- /dev/null
+++ b/sdk/docs/EmailThreadReadFlagRq.md
@@ -0,0 +1,12 @@
+# AsposeEmailCloudSdk.models.EmailThreadReadFlagRq
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**is_read** | **bool** | Read flag to set. \"true\" by default |
+**folder** | **str** | Specifies account folder to get thread from | [optional]
+
+ Parent class: [AccountBaseRequest](AccountBaseRequest.md)
+
+[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
+
+
diff --git a/sdk/docs/Error.md b/sdk/docs/Error.md
index e1576b1..ca4fb41 100644
--- a/sdk/docs/Error.md
+++ b/sdk/docs/Error.md
@@ -2,10 +2,10 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**code** | **str** | Code | [optional]
-**message** | **str** | Message | [optional]
-**description** | **str** | Description | [optional]
-**inner_error** | [**ErrorDetails**](ErrorDetails.md) | Inner Error | [optional]
+**code** | **str** | | [optional]
+**message** | **str** | | [optional]
+**description** | **str** | | [optional]
+**inner_error** | [**ErrorDetails**](ErrorDetails.md) | | [optional]
diff --git a/sdk/docs/ErrorDetails.md b/sdk/docs/ErrorDetails.md
index 7372c87..556d419 100644
--- a/sdk/docs/ErrorDetails.md
+++ b/sdk/docs/ErrorDetails.md
@@ -2,8 +2,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**request_id** | **str** | The request id | [optional]
-**_date** | **datetime** | Date |
+**request_id** | **str** | | [optional]
+**_date** | **datetime** | |
diff --git a/sdk/docs/FileVersion.md b/sdk/docs/FileVersion.md
index aacacd8..8899fd0 100644
--- a/sdk/docs/FileVersion.md
+++ b/sdk/docs/FileVersion.md
@@ -2,8 +2,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**version_id** | **str** | File Version ID. | [optional]
-**is_latest** | **bool** | Specifies whether the file is (true) or is not (false) the latest version of an file. |
+**version_id** | **str** | | [optional]
+**is_latest** | **bool** | |
Parent class: [StorageFile](StorageFile.md)
diff --git a/sdk/docs/FileVersions.md b/sdk/docs/FileVersions.md
index 46d9c23..6adc935 100644
--- a/sdk/docs/FileVersions.md
+++ b/sdk/docs/FileVersions.md
@@ -2,7 +2,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**value** | [**list[FileVersion]**](FileVersion.md) | File versions FileVersion. | [optional]
+**value** | [**list[FileVersion]**](FileVersion.md) | | [optional]
diff --git a/sdk/docs/FilesList.md b/sdk/docs/FilesList.md
index e25bd40..f95846b 100644
--- a/sdk/docs/FilesList.md
+++ b/sdk/docs/FilesList.md
@@ -2,7 +2,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**value** | [**list[StorageFile]**](StorageFile.md) | Files and folders contained by folder StorageFile. | [optional]
+**value** | [**list[StorageFile]**](StorageFile.md) | | [optional]
diff --git a/sdk/docs/FilesUploadResult.md b/sdk/docs/FilesUploadResult.md
index 9a075d3..907ead2 100644
--- a/sdk/docs/FilesUploadResult.md
+++ b/sdk/docs/FilesUploadResult.md
@@ -2,8 +2,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**uploaded** | **list[str]** | List of uploaded file names | [optional]
-**errors** | [**list[Error]**](Error.md) | List of errors. | [optional]
+**uploaded** | **list[str]** | | [optional]
+**errors** | [**list[Error]**](Error.md) | | [optional]
diff --git a/sdk/docs/ListResponseOfEmailThread.md b/sdk/docs/ListResponseOfEmailThread.md
new file mode 100644
index 0000000..c3b853d
--- /dev/null
+++ b/sdk/docs/ListResponseOfEmailThread.md
@@ -0,0 +1,11 @@
+# AsposeEmailCloudSdk.models.ListResponseOfEmailThread
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**value** | [**list[EmailThread]**](EmailThread.md) | | [optional]
+
+
+
+[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
+
+
diff --git a/sdk/docs/MailAddress.md b/sdk/docs/MailAddress.md
index 787cb79..133317c 100644
--- a/sdk/docs/MailAddress.md
+++ b/sdk/docs/MailAddress.md
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
**display_name** | **str** | Display name | [optional]
**address** | **str** | Address | [optional]
**participation_status** | **str** | Identifies the participation status for the calendar user. Enum, available values: NeedsAction, Accepted, Declined, Tentative, Delegated |
+**original_address_string** | **str** | The original e-mail address string | [optional]
diff --git a/sdk/docs/MoveEmailMessageRq.md b/sdk/docs/MoveEmailMessageRq.md
new file mode 100644
index 0000000..314917e
--- /dev/null
+++ b/sdk/docs/MoveEmailMessageRq.md
@@ -0,0 +1,13 @@
+# AsposeEmailCloudSdk.models.MoveEmailMessageRq
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message_id** | **str** | Message identifier | [optional]
+**source_folder** | **str** | Message source folder. Account root folder by default | [optional]
+**destination_folder** | **str** | Folder in email account to move message to | [optional]
+
+ Parent class: [AccountBaseRequest](AccountBaseRequest.md)
+
+[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
+
+
diff --git a/sdk/docs/MoveEmailThreadRq.md b/sdk/docs/MoveEmailThreadRq.md
new file mode 100644
index 0000000..5e89e41
--- /dev/null
+++ b/sdk/docs/MoveEmailThreadRq.md
@@ -0,0 +1,11 @@
+# AsposeEmailCloudSdk.models.MoveEmailThreadRq
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**destination_folder** | **str** | Email account folder to move thread to | [optional]
+
+ Parent class: [AccountBaseRequest](AccountBaseRequest.md)
+
+[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
+
+
diff --git a/sdk/docs/ObjectExist.md b/sdk/docs/ObjectExist.md
index ffab9cc..191ae3a 100644
--- a/sdk/docs/ObjectExist.md
+++ b/sdk/docs/ObjectExist.md
@@ -2,8 +2,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**exists** | **bool** | Indicates that the file or folder exists. |
-**is_folder** | **bool** | True if it is a folder, false if it is a file. |
+**exists** | **bool** | |
+**is_folder** | **bool** | |
diff --git a/sdk/docs/README.md b/sdk/docs/README.md
index 7a0dd81..ff4aec3 100644
--- a/sdk/docs/README.md
+++ b/sdk/docs/README.md
@@ -52,14 +52,24 @@ Class | Method | HTTP request | Description
*EmailApi* | [**append_email_model_message_async**](EmailApi.md#append_email_model_message_async) | **PUT** /email/client/AppendModel | Adds an email from model to specified folder in email account
*EmailApi* | [**append_mime_message**](EmailApi.md#append_mime_message) | **PUT** /email/client/AppendMime | Adds an email from MIME to specified folder in email account
*EmailApi* | [**append_mime_message_async**](EmailApi.md#append_mime_message_async) | **PUT** /email/client/AppendMime | Adds an email from MIME to specified folder in email account
+*EmailApi* | [**convert_calendar**](EmailApi.md#convert_calendar) | **PUT** /email/CalendarModel/convert/{format} | Converts calendar document to specified format and returns as file
+*EmailApi* | [**convert_calendar_async**](EmailApi.md#convert_calendar_async) | **PUT** /email/CalendarModel/convert/{format} | Converts calendar document to specified format and returns as file
*EmailApi* | [**convert_calendar_model_to_alternate**](EmailApi.md#convert_calendar_model_to_alternate) | **PUT** /email/CalendarModel/as-alternate | Convert iCalendar to AlternateView
*EmailApi* | [**convert_calendar_model_to_alternate_async**](EmailApi.md#convert_calendar_model_to_alternate_async) | **PUT** /email/CalendarModel/as-alternate | Convert iCalendar to AlternateView
+*EmailApi* | [**convert_calendar_model_to_file**](EmailApi.md#convert_calendar_model_to_file) | **PUT** /email/CalendarModel/model-as-file/{format} | Converts calendar model to specified format and returns as file
+*EmailApi* | [**convert_calendar_model_to_file_async**](EmailApi.md#convert_calendar_model_to_file_async) | **PUT** /email/CalendarModel/model-as-file/{format} | Converts calendar model to specified format and returns as file
+*EmailApi* | [**convert_contact**](EmailApi.md#convert_contact) | **PUT** /email/ContactModel/{format}/convert/{destinationFormat} | Converts contact document to specified format and returns as file
+*EmailApi* | [**convert_contact_async**](EmailApi.md#convert_contact_async) | **PUT** /email/ContactModel/{format}/convert/{destinationFormat} | Converts contact document to specified format and returns as file
+*EmailApi* | [**convert_contact_model_to_file**](EmailApi.md#convert_contact_model_to_file) | **PUT** /email/ContactModel/model-as-file/{destinationFormat} | Converts contact model to specified format and returns as file
+*EmailApi* | [**convert_contact_model_to_file_async**](EmailApi.md#convert_contact_model_to_file_async) | **PUT** /email/ContactModel/model-as-file/{destinationFormat} | Converts contact model to specified format and returns as file
*EmailApi* | [**convert_email**](EmailApi.md#convert_email) | **PUT** /email/convert/{format} | Converts email document to specified format and returns as file
*EmailApi* | [**convert_email_async**](EmailApi.md#convert_email_async) | **PUT** /email/convert/{format} | Converts email document to specified format and returns as file
-*EmailApi* | [**copy_file**](EmailApi.md#copy_file) | **PUT** /email/storage/file/copy/{srcPath} | Copy file
-*EmailApi* | [**copy_file_async**](EmailApi.md#copy_file_async) | **PUT** /email/storage/file/copy/{srcPath} | Copy file
-*EmailApi* | [**copy_folder**](EmailApi.md#copy_folder) | **PUT** /email/storage/folder/copy/{srcPath} | Copy folder
-*EmailApi* | [**copy_folder_async**](EmailApi.md#copy_folder_async) | **PUT** /email/storage/folder/copy/{srcPath} | Copy folder
+*EmailApi* | [**convert_email_model_to_file**](EmailApi.md#convert_email_model_to_file) | **PUT** /email/model/model-as-file/{destinationFormat} | Converts Email model to specified format and returns as file
+*EmailApi* | [**convert_email_model_to_file_async**](EmailApi.md#convert_email_model_to_file_async) | **PUT** /email/model/model-as-file/{destinationFormat} | Converts Email model to specified format and returns as file
+*EmailApi* | [**copy_file**](EmailApi.md#copy_file) | **PUT** /email/storage/file/copy/{srcPath} |
+*EmailApi* | [**copy_file_async**](EmailApi.md#copy_file_async) | **PUT** /email/storage/file/copy/{srcPath} |
+*EmailApi* | [**copy_folder**](EmailApi.md#copy_folder) | **PUT** /email/storage/folder/copy/{srcPath} |
+*EmailApi* | [**copy_folder_async**](EmailApi.md#copy_folder_async) | **PUT** /email/storage/folder/copy/{srcPath} |
*EmailApi* | [**create_calendar**](EmailApi.md#create_calendar) | **PUT** /email/Calendar/{name} | Create calendar file
*EmailApi* | [**create_calendar_async**](EmailApi.md#create_calendar_async) | **PUT** /email/Calendar/{name} | Create calendar file
*EmailApi* | [**create_contact**](EmailApi.md#create_contact) | **PUT** /email/Contact/{format}/{name} | Create contact document
@@ -68,8 +78,8 @@ Class | Method | HTTP request | Description
*EmailApi* | [**create_email_async**](EmailApi.md#create_email_async) | **PUT** /email/{fileName} | Create an email document
*EmailApi* | [**create_email_folder**](EmailApi.md#create_email_folder) | **PUT** /email/client/CreateFolder | Create new folder in email account
*EmailApi* | [**create_email_folder_async**](EmailApi.md#create_email_folder_async) | **PUT** /email/client/CreateFolder | Create new folder in email account
-*EmailApi* | [**create_folder**](EmailApi.md#create_folder) | **PUT** /email/storage/folder/{path} | Create the folder
-*EmailApi* | [**create_folder_async**](EmailApi.md#create_folder_async) | **PUT** /email/storage/folder/{path} | Create the folder
+*EmailApi* | [**create_folder**](EmailApi.md#create_folder) | **PUT** /email/storage/folder/{path} |
+*EmailApi* | [**create_folder_async**](EmailApi.md#create_folder_async) | **PUT** /email/storage/folder/{path} |
*EmailApi* | [**create_mapi**](EmailApi.md#create_mapi) | **PUT** /email/Mapi/{name} | Create new document
*EmailApi* | [**create_mapi_async**](EmailApi.md#create_mapi_async) | **PUT** /email/Mapi/{name} | Create new document
*EmailApi* | [**delete_calendar_property**](EmailApi.md#delete_calendar_property) | **DELETE** /email/Calendar/{name}/properties/{memberName}/{index} | Deletes indexed property by index and name. To delete Reminder attachment, use path ReminderAttachment/{ReminderIndex}/{AttachmentIndex}
@@ -80,10 +90,12 @@ Class | Method | HTTP request | Description
*EmailApi* | [**delete_email_folder_async**](EmailApi.md#delete_email_folder_async) | **DELETE** /email/client/DeleteFolder | Delete a folder in email account
*EmailApi* | [**delete_email_message**](EmailApi.md#delete_email_message) | **DELETE** /email/client/DeleteMessage | Delete message from email account by id
*EmailApi* | [**delete_email_message_async**](EmailApi.md#delete_email_message_async) | **DELETE** /email/client/DeleteMessage | Delete message from email account by id
-*EmailApi* | [**delete_file**](EmailApi.md#delete_file) | **DELETE** /email/storage/file/{path} | Delete file
-*EmailApi* | [**delete_file_async**](EmailApi.md#delete_file_async) | **DELETE** /email/storage/file/{path} | Delete file
-*EmailApi* | [**delete_folder**](EmailApi.md#delete_folder) | **DELETE** /email/storage/folder/{path} | Delete folder
-*EmailApi* | [**delete_folder_async**](EmailApi.md#delete_folder_async) | **DELETE** /email/storage/folder/{path} | Delete folder
+*EmailApi* | [**delete_email_thread**](EmailApi.md#delete_email_thread) | **DELETE** /email/client/threads/{threadId} | Delete thread by id. All messages from thread will also be deleted
+*EmailApi* | [**delete_email_thread_async**](EmailApi.md#delete_email_thread_async) | **DELETE** /email/client/threads/{threadId} | Delete thread by id. All messages from thread will also be deleted
+*EmailApi* | [**delete_file**](EmailApi.md#delete_file) | **DELETE** /email/storage/file/{path} |
+*EmailApi* | [**delete_file_async**](EmailApi.md#delete_file_async) | **DELETE** /email/storage/file/{path} |
+*EmailApi* | [**delete_folder**](EmailApi.md#delete_folder) | **DELETE** /email/storage/folder/{path} |
+*EmailApi* | [**delete_folder_async**](EmailApi.md#delete_folder_async) | **DELETE** /email/storage/folder/{path} |
*EmailApi* | [**delete_mapi_attachment**](EmailApi.md#delete_mapi_attachment) | **DELETE** /email/Mapi/{name}/attachments/{attachment} | Remove attachment from document
*EmailApi* | [**delete_mapi_attachment_async**](EmailApi.md#delete_mapi_attachment_async) | **DELETE** /email/Mapi/{name}/attachments/{attachment} | Remove attachment from document
*EmailApi* | [**delete_mapi_properties**](EmailApi.md#delete_mapi_properties) | **DELETE** /email/Mapi/{name}/properties | Delete document properties
@@ -94,16 +106,22 @@ Class | Method | HTTP request | Description
*EmailApi* | [**discover_email_config_oauth_async**](EmailApi.md#discover_email_config_oauth_async) | **POST** /email/config/discover/oauth | Discover email accounts by email address. Validates discovered accounts using OAuth 2.0.
*EmailApi* | [**discover_email_config_password**](EmailApi.md#discover_email_config_password) | **POST** /email/config/discover/password | Discover email accounts by email address. Validates discovered accounts using login and password.
*EmailApi* | [**discover_email_config_password_async**](EmailApi.md#discover_email_config_password_async) | **POST** /email/config/discover/password | Discover email accounts by email address. Validates discovered accounts using login and password.
-*EmailApi* | [**download_file**](EmailApi.md#download_file) | **GET** /email/storage/file/{path} | Download file
-*EmailApi* | [**download_file_async**](EmailApi.md#download_file_async) | **GET** /email/storage/file/{path} | Download file
+*EmailApi* | [**download_file**](EmailApi.md#download_file) | **GET** /email/storage/file/{path} |
+*EmailApi* | [**download_file_async**](EmailApi.md#download_file_async) | **GET** /email/storage/file/{path} |
*EmailApi* | [**fetch_email_message**](EmailApi.md#fetch_email_message) | **GET** /email/client/Fetch | Fetch message mime from email account
*EmailApi* | [**fetch_email_message_async**](EmailApi.md#fetch_email_message_async) | **GET** /email/client/Fetch | Fetch message mime from email account
*EmailApi* | [**fetch_email_model**](EmailApi.md#fetch_email_model) | **GET** /email/client/FetchModel | Fetch message model from email account
*EmailApi* | [**fetch_email_model_async**](EmailApi.md#fetch_email_model_async) | **GET** /email/client/FetchModel | Fetch message model from email account
+*EmailApi* | [**fetch_email_thread_messages**](EmailApi.md#fetch_email_thread_messages) | **GET** /email/client/threads/{threadId}/messages | Get messages from thread by id. All messages are fully fetched. For accounts with CacheFile only cached messages will be returned.
+*EmailApi* | [**fetch_email_thread_messages_async**](EmailApi.md#fetch_email_thread_messages_async) | **GET** /email/client/threads/{threadId}/messages | Get messages from thread by id. All messages are fully fetched. For accounts with CacheFile only cached messages will be returned.
*EmailApi* | [**get_calendar**](EmailApi.md#get_calendar) | **GET** /email/Calendar/{name}/properties | Get calendar file properties
*EmailApi* | [**get_calendar_async**](EmailApi.md#get_calendar_async) | **GET** /email/Calendar/{name}/properties | Get calendar file properties
+*EmailApi* | [**get_calendar_as_file**](EmailApi.md#get_calendar_as_file) | **GET** /email/CalendarModel/{fileName}/as-file/{format} | Converts calendar document from storage to specified format and returns as file
+*EmailApi* | [**get_calendar_as_file_async**](EmailApi.md#get_calendar_as_file_async) | **GET** /email/CalendarModel/{fileName}/as-file/{format} | Converts calendar document from storage to specified format and returns as file
*EmailApi* | [**get_calendar_attachment**](EmailApi.md#get_calendar_attachment) | **GET** /email/Calendar/{name}/attachments/{attachment} | Get iCalendar document attachment by name
*EmailApi* | [**get_calendar_attachment_async**](EmailApi.md#get_calendar_attachment_async) | **GET** /email/Calendar/{name}/attachments/{attachment} | Get iCalendar document attachment by name
+*EmailApi* | [**get_calendar_file_as_model**](EmailApi.md#get_calendar_file_as_model) | **PUT** /email/CalendarModel/file-as-model | Converts calendar document to a model representation
+*EmailApi* | [**get_calendar_file_as_model_async**](EmailApi.md#get_calendar_file_as_model_async) | **PUT** /email/CalendarModel/file-as-model | Converts calendar document to a model representation
*EmailApi* | [**get_calendar_list**](EmailApi.md#get_calendar_list) | **GET** /email/Calendar | Get iCalendar files list in folder on storage
*EmailApi* | [**get_calendar_list_async**](EmailApi.md#get_calendar_list_async) | **GET** /email/Calendar | Get iCalendar files list in folder on storage
*EmailApi* | [**get_calendar_model**](EmailApi.md#get_calendar_model) | **GET** /email/CalendarModel/{name} | Get calendar file
@@ -112,8 +130,12 @@ Class | Method | HTTP request | Description
*EmailApi* | [**get_calendar_model_as_alternate_async**](EmailApi.md#get_calendar_model_as_alternate_async) | **GET** /email/CalendarModel/{name}/as-alternate/{calendarAction} | Get iCalendar from storage as AlternateView
*EmailApi* | [**get_calendar_model_list**](EmailApi.md#get_calendar_model_list) | **GET** /email/CalendarModel | Get iCalendar list from storage folder
*EmailApi* | [**get_calendar_model_list_async**](EmailApi.md#get_calendar_model_list_async) | **GET** /email/CalendarModel | Get iCalendar list from storage folder
+*EmailApi* | [**get_contact_as_file**](EmailApi.md#get_contact_as_file) | **GET** /email/ContactModel/{format}/{fileName}/as-file/{destinationFormat} | Converts calendar document from storage to specified format and returns as file
+*EmailApi* | [**get_contact_as_file_async**](EmailApi.md#get_contact_as_file_async) | **GET** /email/ContactModel/{format}/{fileName}/as-file/{destinationFormat} | Converts calendar document from storage to specified format and returns as file
*EmailApi* | [**get_contact_attachment**](EmailApi.md#get_contact_attachment) | **GET** /email/Contact/{format}/{name}/attachments/{attachment} | Get attachment file by name
*EmailApi* | [**get_contact_attachment_async**](EmailApi.md#get_contact_attachment_async) | **GET** /email/Contact/{format}/{name}/attachments/{attachment} | Get attachment file by name
+*EmailApi* | [**get_contact_file_as_model**](EmailApi.md#get_contact_file_as_model) | **PUT** /email/ContactModel/{format}/file-as-model | Converts contact document to a model representation
+*EmailApi* | [**get_contact_file_as_model_async**](EmailApi.md#get_contact_file_as_model_async) | **PUT** /email/ContactModel/{format}/file-as-model | Converts contact document to a model representation
*EmailApi* | [**get_contact_list**](EmailApi.md#get_contact_list) | **GET** /email/Contact/{format} | Get contact list from storage folder
*EmailApi* | [**get_contact_list_async**](EmailApi.md#get_contact_list_async) | **GET** /email/Contact/{format} | Get contact list from storage folder
*EmailApi* | [**get_contact_model**](EmailApi.md#get_contact_model) | **GET** /email/ContactModel/{format}/{name} | Get contact document.
@@ -122,8 +144,8 @@ Class | Method | HTTP request | Description
*EmailApi* | [**get_contact_model_list_async**](EmailApi.md#get_contact_model_list_async) | **GET** /email/ContactModel/{format} | Get contact list from storage folder.
*EmailApi* | [**get_contact_properties**](EmailApi.md#get_contact_properties) | **GET** /email/Contact/{format}/{name}/properties | Get contact document properties
*EmailApi* | [**get_contact_properties_async**](EmailApi.md#get_contact_properties_async) | **GET** /email/Contact/{format}/{name}/properties | Get contact document properties
-*EmailApi* | [**get_disc_usage**](EmailApi.md#get_disc_usage) | **GET** /email/storage/disc | Get disc usage
-*EmailApi* | [**get_disc_usage_async**](EmailApi.md#get_disc_usage_async) | **GET** /email/storage/disc | Get disc usage
+*EmailApi* | [**get_disc_usage**](EmailApi.md#get_disc_usage) | **GET** /email/storage/disc |
+*EmailApi* | [**get_disc_usage_async**](EmailApi.md#get_disc_usage_async) | **GET** /email/storage/disc |
*EmailApi* | [**get_email**](EmailApi.md#get_email) | **GET** /email/{fileName} | Get email document
*EmailApi* | [**get_email_async**](EmailApi.md#get_email_async) | **GET** /email/{fileName} | Get email document
*EmailApi* | [**get_email_as_file**](EmailApi.md#get_email_as_file) | **GET** /email/{fileName}/as-file/{format} | Converts email document from storage to specified format and returns as file
@@ -134,16 +156,18 @@ Class | Method | HTTP request | Description
*EmailApi* | [**get_email_client_account_async**](EmailApi.md#get_email_client_account_async) | **GET** /email/client/email-client-account | Get email client account from storage
*EmailApi* | [**get_email_client_multi_account**](EmailApi.md#get_email_client_multi_account) | **GET** /email/client/multi-account | Get email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\".
*EmailApi* | [**get_email_client_multi_account_async**](EmailApi.md#get_email_client_multi_account_async) | **GET** /email/client/multi-account | Get email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\".
+*EmailApi* | [**get_email_file_as_model**](EmailApi.md#get_email_file_as_model) | **PUT** /email/model/file-as-model | Converts email document to a model representation
+*EmailApi* | [**get_email_file_as_model_async**](EmailApi.md#get_email_file_as_model_async) | **PUT** /email/model/file-as-model | Converts email document to a model representation
*EmailApi* | [**get_email_model**](EmailApi.md#get_email_model) | **GET** /email/model/{format}/{name} | Get email document.
*EmailApi* | [**get_email_model_async**](EmailApi.md#get_email_model_async) | **GET** /email/model/{format}/{name} | Get email document.
*EmailApi* | [**get_email_model_list**](EmailApi.md#get_email_model_list) | **GET** /email/model/{format} | Get email list from storage folder.
*EmailApi* | [**get_email_model_list_async**](EmailApi.md#get_email_model_list_async) | **GET** /email/model/{format} | Get email list from storage folder.
*EmailApi* | [**get_email_property**](EmailApi.md#get_email_property) | **GET** /email/{fileName}/properties/{propertyName} | Get an email document property by its name
*EmailApi* | [**get_email_property_async**](EmailApi.md#get_email_property_async) | **GET** /email/{fileName}/properties/{propertyName} | Get an email document property by its name
-*EmailApi* | [**get_file_versions**](EmailApi.md#get_file_versions) | **GET** /email/storage/version/{path} | Get file versions
-*EmailApi* | [**get_file_versions_async**](EmailApi.md#get_file_versions_async) | **GET** /email/storage/version/{path} | Get file versions
-*EmailApi* | [**get_files_list**](EmailApi.md#get_files_list) | **GET** /email/storage/folder/{path} | Get all files and folders within a folder
-*EmailApi* | [**get_files_list_async**](EmailApi.md#get_files_list_async) | **GET** /email/storage/folder/{path} | Get all files and folders within a folder
+*EmailApi* | [**get_file_versions**](EmailApi.md#get_file_versions) | **GET** /email/storage/version/{path} |
+*EmailApi* | [**get_file_versions_async**](EmailApi.md#get_file_versions_async) | **GET** /email/storage/version/{path} |
+*EmailApi* | [**get_files_list**](EmailApi.md#get_files_list) | **GET** /email/storage/folder/{path} |
+*EmailApi* | [**get_files_list_async**](EmailApi.md#get_files_list_async) | **GET** /email/storage/folder/{path} |
*EmailApi* | [**get_mapi_attachment**](EmailApi.md#get_mapi_attachment) | **GET** /email/Mapi/{name}/attachments/{attachment} | Get document attachment as file stream
*EmailApi* | [**get_mapi_attachment_async**](EmailApi.md#get_mapi_attachment_async) | **GET** /email/Mapi/{name}/attachments/{attachment} | Get document attachment as file stream
*EmailApi* | [**get_mapi_attachments**](EmailApi.md#get_mapi_attachments) | **GET** /email/Mapi/{name}/attachments | Get document attachment list
@@ -160,12 +184,18 @@ Class | Method | HTTP request | Description
*EmailApi* | [**list_email_messages_async**](EmailApi.md#list_email_messages_async) | **GET** /email/client/ListMessages | Get messages from folder, filtered by query
*EmailApi* | [**list_email_models**](EmailApi.md#list_email_models) | **GET** /email/client/ListMessagesModel | Get messages from folder, filtered by query
*EmailApi* | [**list_email_models_async**](EmailApi.md#list_email_models_async) | **GET** /email/client/ListMessagesModel | Get messages from folder, filtered by query
-*EmailApi* | [**move_file**](EmailApi.md#move_file) | **PUT** /email/storage/file/move/{srcPath} | Move file
-*EmailApi* | [**move_file_async**](EmailApi.md#move_file_async) | **PUT** /email/storage/file/move/{srcPath} | Move file
-*EmailApi* | [**move_folder**](EmailApi.md#move_folder) | **PUT** /email/storage/folder/move/{srcPath} | Move folder
-*EmailApi* | [**move_folder_async**](EmailApi.md#move_folder_async) | **PUT** /email/storage/folder/move/{srcPath} | Move folder
-*EmailApi* | [**object_exists**](EmailApi.md#object_exists) | **GET** /email/storage/exist/{path} | Check if file or folder exists
-*EmailApi* | [**object_exists_async**](EmailApi.md#object_exists_async) | **GET** /email/storage/exist/{path} | Check if file or folder exists
+*EmailApi* | [**list_email_threads**](EmailApi.md#list_email_threads) | **GET** /email/client/threads | Get message threads from folder. All messages are partly fetched (without email body and other fields)
+*EmailApi* | [**list_email_threads_async**](EmailApi.md#list_email_threads_async) | **GET** /email/client/threads | Get message threads from folder. All messages are partly fetched (without email body and other fields)
+*EmailApi* | [**move_email_message**](EmailApi.md#move_email_message) | **PUT** /email/client/move | Move message to another folder
+*EmailApi* | [**move_email_message_async**](EmailApi.md#move_email_message_async) | **PUT** /email/client/move | Move message to another folder
+*EmailApi* | [**move_email_thread**](EmailApi.md#move_email_thread) | **PUT** /email/client/threads/{threadId}/move | Move thread to another folder
+*EmailApi* | [**move_email_thread_async**](EmailApi.md#move_email_thread_async) | **PUT** /email/client/threads/{threadId}/move | Move thread to another folder
+*EmailApi* | [**move_file**](EmailApi.md#move_file) | **PUT** /email/storage/file/move/{srcPath} |
+*EmailApi* | [**move_file_async**](EmailApi.md#move_file_async) | **PUT** /email/storage/file/move/{srcPath} |
+*EmailApi* | [**move_folder**](EmailApi.md#move_folder) | **PUT** /email/storage/folder/move/{srcPath} |
+*EmailApi* | [**move_folder_async**](EmailApi.md#move_folder_async) | **PUT** /email/storage/folder/move/{srcPath} |
+*EmailApi* | [**object_exists**](EmailApi.md#object_exists) | **GET** /email/storage/exist/{path} |
+*EmailApi* | [**object_exists_async**](EmailApi.md#object_exists_async) | **GET** /email/storage/exist/{path} |
*EmailApi* | [**save_calendar_model**](EmailApi.md#save_calendar_model) | **PUT** /email/CalendarModel/{name} | Save iCalendar
*EmailApi* | [**save_calendar_model_async**](EmailApi.md#save_calendar_model_async) | **PUT** /email/CalendarModel/{name} | Save iCalendar
*EmailApi* | [**save_contact_model**](EmailApi.md#save_contact_model) | **PUT** /email/ContactModel/{format}/{name} | Save contact.
@@ -190,16 +220,18 @@ Class | Method | HTTP request | Description
*EmailApi* | [**set_email_property_async**](EmailApi.md#set_email_property_async) | **PUT** /email/{fileName}/properties/{propertyName} | Set email document property value
*EmailApi* | [**set_email_read_flag**](EmailApi.md#set_email_read_flag) | **POST** /email/client/SetReadFlag | Sets \"Message is read\" flag
*EmailApi* | [**set_email_read_flag_async**](EmailApi.md#set_email_read_flag_async) | **POST** /email/client/SetReadFlag | Sets \"Message is read\" flag
-*EmailApi* | [**storage_exists**](EmailApi.md#storage_exists) | **GET** /email/storage/{storageName}/exist | Check if storage exists
-*EmailApi* | [**storage_exists_async**](EmailApi.md#storage_exists_async) | **GET** /email/storage/{storageName}/exist | Check if storage exists
+*EmailApi* | [**set_email_thread_read_flag**](EmailApi.md#set_email_thread_read_flag) | **PUT** /email/client/threads/{threadId}/read-flag | Mark all messages in thread as read or unread
+*EmailApi* | [**set_email_thread_read_flag_async**](EmailApi.md#set_email_thread_read_flag_async) | **PUT** /email/client/threads/{threadId}/read-flag | Mark all messages in thread as read or unread
+*EmailApi* | [**storage_exists**](EmailApi.md#storage_exists) | **GET** /email/storage/{storageName}/exist |
+*EmailApi* | [**storage_exists_async**](EmailApi.md#storage_exists_async) | **GET** /email/storage/{storageName}/exist |
*EmailApi* | [**update_calendar_properties**](EmailApi.md#update_calendar_properties) | **PUT** /email/Calendar/{name}/properties | Update calendar file properties
*EmailApi* | [**update_calendar_properties_async**](EmailApi.md#update_calendar_properties_async) | **PUT** /email/Calendar/{name}/properties | Update calendar file properties
*EmailApi* | [**update_contact_properties**](EmailApi.md#update_contact_properties) | **PUT** /email/Contact/{format}/{name}/properties | Update contact document properties
*EmailApi* | [**update_contact_properties_async**](EmailApi.md#update_contact_properties_async) | **PUT** /email/Contact/{format}/{name}/properties | Update contact document properties
*EmailApi* | [**update_mapi_properties**](EmailApi.md#update_mapi_properties) | **PUT** /email/Mapi/{name}/properties | Update document properties
*EmailApi* | [**update_mapi_properties_async**](EmailApi.md#update_mapi_properties_async) | **PUT** /email/Mapi/{name}/properties | Update document properties
-*EmailApi* | [**upload_file**](EmailApi.md#upload_file) | **PUT** /email/storage/file/{path} | Upload file
-*EmailApi* | [**upload_file_async**](EmailApi.md#upload_file_async) | **PUT** /email/storage/file/{path} | Upload file
+*EmailApi* | [**upload_file**](EmailApi.md#upload_file) | **PUT** /email/storage/file/{path} |
+*EmailApi* | [**upload_file_async**](EmailApi.md#upload_file_async) | **PUT** /email/storage/file/{path} |
## Documentation for Models
@@ -248,6 +280,7 @@ Class | Method | HTTP request | Description
- [AsposeEmailCloudSdk.models.EmailProperties](EmailProperties.md)
- [AsposeEmailCloudSdk.models.EmailProperty](EmailProperty.md)
- [AsposeEmailCloudSdk.models.EmailPropertyResponse](EmailPropertyResponse.md)
+ - [AsposeEmailCloudSdk.models.EmailThread](EmailThread.md)
- [AsposeEmailCloudSdk.models.EnumWithCustomOfAssociatedPersonCategory](EnumWithCustomOfAssociatedPersonCategory.md)
- [AsposeEmailCloudSdk.models.EnumWithCustomOfEmailAddressCategory](EnumWithCustomOfEmailAddressCategory.md)
- [AsposeEmailCloudSdk.models.EnumWithCustomOfEventCategory](EnumWithCustomOfEventCategory.md)
@@ -271,6 +304,7 @@ Class | Method | HTTP request | Description
- [AsposeEmailCloudSdk.models.ListResponseOfContactDto](ListResponseOfContactDto.md)
- [AsposeEmailCloudSdk.models.ListResponseOfEmailAccountConfig](ListResponseOfEmailAccountConfig.md)
- [AsposeEmailCloudSdk.models.ListResponseOfEmailDto](ListResponseOfEmailDto.md)
+ - [AsposeEmailCloudSdk.models.ListResponseOfEmailThread](ListResponseOfEmailThread.md)
- [AsposeEmailCloudSdk.models.ListResponseOfHierarchicalObject](ListResponseOfHierarchicalObject.md)
- [AsposeEmailCloudSdk.models.ListResponseOfHierarchicalObjectResponse](ListResponseOfHierarchicalObjectResponse.md)
- [AsposeEmailCloudSdk.models.ListResponseOfMailServerFolder](ListResponseOfMailServerFolder.md)
@@ -315,6 +349,7 @@ Class | Method | HTTP request | Description
- [AsposeEmailCloudSdk.models.CalendarDtoList](CalendarDtoList.md)
- [AsposeEmailCloudSdk.models.ContactDtoList](ContactDtoList.md)
- [AsposeEmailCloudSdk.models.CreateFolderBaseRequest](CreateFolderBaseRequest.md)
+ - [AsposeEmailCloudSdk.models.DeleteEmailThreadAccountRq](DeleteEmailThreadAccountRq.md)
- [AsposeEmailCloudSdk.models.DeleteFolderBaseRequest](DeleteFolderBaseRequest.md)
- [AsposeEmailCloudSdk.models.DeleteMessageBaseRequest](DeleteMessageBaseRequest.md)
- [AsposeEmailCloudSdk.models.DiscoverEmailConfigOauth](DiscoverEmailConfigOauth.md)
@@ -323,11 +358,15 @@ Class | Method | HTTP request | Description
- [AsposeEmailCloudSdk.models.EmailClientAccountOauthCredentials](EmailClientAccountOauthCredentials.md)
- [AsposeEmailCloudSdk.models.EmailClientAccountPasswordCredentials](EmailClientAccountPasswordCredentials.md)
- [AsposeEmailCloudSdk.models.EmailDtoList](EmailDtoList.md)
+ - [AsposeEmailCloudSdk.models.EmailThreadList](EmailThreadList.md)
+ - [AsposeEmailCloudSdk.models.EmailThreadReadFlagRq](EmailThreadReadFlagRq.md)
- [AsposeEmailCloudSdk.models.FileVersion](FileVersion.md)
- [AsposeEmailCloudSdk.models.HierarchicalObject](HierarchicalObject.md)
- [AsposeEmailCloudSdk.models.IndexedHierarchicalObject](IndexedHierarchicalObject.md)
- [AsposeEmailCloudSdk.models.IndexedPrimitiveObject](IndexedPrimitiveObject.md)
- [AsposeEmailCloudSdk.models.LinkedResource](LinkedResource.md)
+ - [AsposeEmailCloudSdk.models.MoveEmailMessageRq](MoveEmailMessageRq.md)
+ - [AsposeEmailCloudSdk.models.MoveEmailThreadRq](MoveEmailThreadRq.md)
- [AsposeEmailCloudSdk.models.PrimitiveObject](PrimitiveObject.md)
- [AsposeEmailCloudSdk.models.SaveEmailAccountRequest](SaveEmailAccountRequest.md)
- [AsposeEmailCloudSdk.models.SaveOAuthEmailAccountRequest](SaveOAuthEmailAccountRequest.md)
diff --git a/sdk/docs/SendEmailBaseRequest.md b/sdk/docs/SendEmailBaseRequest.md
index 97e1670..56ca898 100644
--- a/sdk/docs/SendEmailBaseRequest.md
+++ b/sdk/docs/SendEmailBaseRequest.md
@@ -2,7 +2,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**email_file** | [**StorageFileLocation**](StorageFileLocation.md) | Email document (*.eml) file location in storage |
+**email_file** | **object** | Email document (*.eml) file location in storage |
Parent class: [AccountBaseRequest](AccountBaseRequest.md)
diff --git a/sdk/docs/SendEmailModelRq.md b/sdk/docs/SendEmailModelRq.md
index d15b248..afd25c1 100644
--- a/sdk/docs/SendEmailModelRq.md
+++ b/sdk/docs/SendEmailModelRq.md
@@ -2,7 +2,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**message** | [**EmailDto**](EmailDto.md) | Message to send | [optional]
+**message** | **object** | Message to send | [optional]
Parent class: [AccountBaseRequest](AccountBaseRequest.md)
diff --git a/sdk/docs/StorageExist.md b/sdk/docs/StorageExist.md
index f3ca6a0..5d58c63 100644
--- a/sdk/docs/StorageExist.md
+++ b/sdk/docs/StorageExist.md
@@ -2,7 +2,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**exists** | **bool** | Shows that the storage exists. |
+**exists** | **bool** | |
diff --git a/sdk/docs/StorageFile.md b/sdk/docs/StorageFile.md
index eeccddc..e69d4d1 100644
--- a/sdk/docs/StorageFile.md
+++ b/sdk/docs/StorageFile.md
@@ -2,11 +2,11 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **str** | File or folder name. | [optional]
-**is_folder** | **bool** | True if it is a folder. |
-**modified_date** | **datetime** | File or folder last modified DateTime. | [optional]
-**size** | **int** | File or folder size. |
-**path** | **str** | File or folder path. | [optional]
+**name** | **str** | | [optional]
+**is_folder** | **bool** | |
+**modified_date** | **datetime** | | [optional]
+**size** | **int** | |
+**path** | **str** | | [optional]
diff --git a/sdk/setup.py b/sdk/setup.py
index 929ff51..b666a36 100644
--- a/sdk/setup.py
+++ b/sdk/setup.py
@@ -1,46 +1,46 @@
-# coding: utf-8
-
-"""
- Aspose.Email Cloud is a REST API for creating email applications that work with common email file formats. It lets developers manipulate message formats such as Outlook MSG, EML and MHT files.
-"""
-
-
-from setuptools import setup, find_packages # noqa: H301
-
-NAME = "aspose-email-cloud"
-VERSION = "20.3.0"
-# To install the library, run the following
-#
-# python setup.py install
-#
-# prerequisite: setuptools
-# http://pypi.python.org/pypi/setuptools
-
-REQUIRES = [
- "certifi>=2017.4.17",
- "python-dateutil>=2.1",
- "six>=1.10",
- "urllib3>=1.23"
-]
-from os import path
-this_directory = path.abspath(path.dirname(__file__))
-with open(path.join(this_directory, "..", 'README.md'), encoding='utf-8') as f:
- long_description = f.read()
-
-setup(
- name=NAME,
- version=VERSION,
- url='https://products.aspose.cloud/email/family',
- classifiers = [
- 'License :: OSI Approved :: MIT License',
- ],
- license = "License :: OSI Approved :: MIT License",
- description="Aspose.Email Cloud API",
- author_email="",
- keywords=["Swagger", "Aspose.Email Cloud API"],
- install_requires=REQUIRES,
- packages=find_packages(),
- include_package_data=True,
- long_description=long_description,
- long_description_content_type='text/markdown',
-)
+# coding: utf-8
+
+"""
+ Aspose.Email Cloud is a REST API for creating email applications that work with common email file formats. It lets developers manipulate message formats such as Outlook MSG, EML and MHT files.
+"""
+
+
+from setuptools import setup, find_packages # noqa: H301
+
+NAME = "aspose-email-cloud"
+VERSION = "20.5.0.93"
+# To install the library, run the following
+#
+# python setup.py install
+#
+# prerequisite: setuptools
+# http://pypi.python.org/pypi/setuptools
+
+REQUIRES = [
+ "certifi>=2017.4.17",
+ "python-dateutil>=2.1",
+ "six>=1.10",
+ "urllib3>=1.23"
+]
+from os import path
+this_directory = path.abspath(path.dirname(__file__))
+with open(path.join(this_directory, "..", 'README.md'), encoding='utf-8') as f:
+ long_description = f.read()
+
+setup(
+ name=NAME,
+ version=VERSION,
+ url='https://products.aspose.cloud/email/family',
+ classifiers = [
+ 'License :: OSI Approved :: MIT License',
+ ],
+ license = "License :: OSI Approved :: MIT License",
+ description="Aspose.Email Cloud API",
+ author_email="",
+ keywords=["Swagger", "Aspose.Email Cloud API"],
+ install_requires=REQUIRES,
+ packages=find_packages(),
+ include_package_data=True,
+ long_description=long_description,
+ long_description_content_type='text/markdown',
+)
diff --git a/tests/tests/sdk_test.py b/tests/tests/sdk_test.py
index b7dd88b..cd21842 100644
--- a/tests/tests/sdk_test.py
+++ b/tests/tests/sdk_test.py
@@ -1,11 +1,20 @@
-import sys, os, pytest, uuid, base64, functools, dateutil.parser
+import base64
+import functools
+import os
+import sys
+import uuid
+
+import dateutil.parser
+import pytest
+
sys.path.append(os.path.join(os.path.dirname(__file__), "../../sdk"))
-from AsposeEmailCloudSdk import api, models
+from AsposeEmailCloudSdk import models
from AsposeEmailCloudSdk.models import requests
from datetime import timedelta, datetime
from conftest import TestData
from dateutil import tz
+
@pytest.mark.pipeline
def test_hierarchical(td: TestData):
"""
@@ -13,23 +22,27 @@ def test_hierarchical(td: TestData):
This test checks that BaseObject.Type field filled automatically by SDK
and properly used in serialization and deserialization
"""
- calendarFile = _create_calendar(td)
- calendar = td.email.get_calendar(requests.GetCalendarRequest(calendarFile, td.folder, td.storage))
+ calendar_file = _create_calendar(td)
+ calendar = td.email.get_calendar(requests.GetCalendarRequest(calendar_file, td.folder, td.storage))
assert calendar.name == 'CALENDAR'
assert calendar.type == 'HierarchicalObject'
primitive_properties = list(filter(lambda x: x.type == 'PrimitiveObject', calendar.internal_properties))
assert len(primitive_properties) >= 3
- assert primitive_properties[0].value is not None
+ # noinspection PyTypeChecker
+ first = primitive_properties[0] # type: models.PrimitiveObject
+ assert first.value is not None
+
@pytest.mark.pipeline
def test_async(td: TestData):
"""
Asynchronous API call test
"""
- calendarFile = _create_calendar(td)
- calendar = td.email.get_calendar_async(requests.GetCalendarRequest(calendarFile, td.folder, td.storage)).get()
+ calendar_file = _create_calendar(td)
+ calendar = td.email.get_calendar_async(requests.GetCalendarRequest(calendar_file, td.folder, td.storage)).get()
assert calendar.name == 'CALENDAR'
+
@pytest.mark.pipeline
def test_file(td: TestData):
"""
@@ -39,11 +52,11 @@ def test_file(td: TestData):
file_name = str(uuid.uuid4()) + ".ics"
storage_location = td.folder + "/" + file_name
td.email.upload_file(requests.UploadFileRequest(storage_location, sample, td.storage))
- rq = requests.UploadFileRequest(storage_location, sample, td.storage)
downloaded = td.email.download_file(requests.DownloadFileRequest(storage_location, td.storage))
with open(downloaded, 'r') as f:
- filedata = f.read()
- assert 'Broadway' in filedata
+ file_data = f.read()
+ assert 'Broadway' in file_data
+
@pytest.mark.pipeline
def test_contact_format(td: TestData):
@@ -67,6 +80,7 @@ def test_contact_format(td: TestData):
assert object_exist.exists
pass
+
@pytest.mark.pipeline
def test_date_time(td: TestData):
"""
@@ -80,15 +94,18 @@ def test_date_time(td: TestData):
calendar = td.email.get_calendar(requests.GetCalendarRequest(
calendar_storage,
td.folder,
- td.storage)) # type: models.HierarchicalObject
- start_date_property = list(filter(lambda item: item.name == 'STARTDATE', calendar.internal_properties))[0]
+ td.storage)) # type: models.HierarchicalObject
+ # noinspection PyTypeChecker
+ start_date_property = list(
+ filter(lambda item: item.name == 'STARTDATE', calendar.internal_properties))[0] # type: models.PrimitiveObject
fact_start_date = dateutil.parser.parse(start_date_property.value)
assert start_date == fact_start_date
+
@pytest.mark.ai
@pytest.mark.pipeline
def test_ai_bcr_parse_storage(td: TestData):
- file_name = str(uuid.uuid4())+ ".png"
+ file_name = str(uuid.uuid4()) + ".png"
image_file = os.path.join(os.path.dirname(__file__), '..', 'data', 'test_single_0001.png')
# 1) Upload business card image to storage
storage_location = td.folder + "/" + file_name
@@ -101,87 +118,97 @@ def test_ai_bcr_parse_storage(td: TestData):
result = td.email.ai_bcr_parse_storage(requests.AiBcrParseStorageRequest(
models.AiBcrParseStorageRq(
images=[models.AiBcrImageStorageFile(True, models.StorageFileLocation(td.storage, td.folder, file_name))],
- out_folder=models.StorageFolderLocation(td.storage, out_folder_path)))) # type: models.ListResponseOfStorageFileLocation
+ out_folder=models.StorageFolderLocation(
+ td.storage, out_folder_path)))) # type: models.ListResponseOfStorageFileLocation
# Check that only one file produced
assert len(result.value) == 1
# 3) Get file name from recognition result
- contact_file = result.value[0] # type: models.StorageFileLocation
+ contact_file = result.value[0] # type: models.StorageFileLocation
# 4) Download VCard file, produced by recognition method, check it contains text "Thomas"
downloaded = td.email.download_file(requests.DownloadFileRequest(
contact_file.folder_path + "/" + contact_file.file_name,
td.storage))
with open(downloaded, 'r') as f:
- filedata = f.read()
- assert 'Thomas' in filedata
+ file_data = f.read()
+ assert 'Thomas' in file_data
# 5) Get VCard object properties list, check that there are 3 properties or more
contact_properties = td.email.get_contact_properties(requests.GetContactPropertiesRequest(
- 'VCard', contact_file.file_name, contact_file.folder_path, contact_file.storage)) # type: models.HierarchicalObject
+ 'VCard', contact_file.file_name, contact_file.folder_path,
+ contact_file.storage)) # type: models.HierarchicalObject
assert len(contact_properties.internal_properties) >= 3
+
@pytest.mark.ai
@pytest.mark.pipeline
def test_ai_bcr_parse(td: TestData):
image_file = os.path.join(os.path.dirname(__file__), '..', 'data', 'test_single_0001.png')
- image_data = None
with open(image_file, 'rb') as f:
- filedata = f.read()
- image_data = str(base64.b64encode(filedata), 'utf-8')
+ file_data = f.read()
+ image_data = str(base64.b64encode(file_data), 'utf-8')
result = td.email.ai_bcr_parse(requests.AiBcrParseRequest(
- models.AiBcrBase64Rq(images=[models.AiBcrBase64Image(True, image_data)]))) # type: models.ListResponseOfHierarchicalObject
+ models.AiBcrBase64Rq(
+ images=[models.AiBcrBase64Image(True, image_data)]))) # type: models.ListResponseOfHierarchicalObject
assert len(result.value) == 1
+ # noinspection PyTypeChecker
display_name = list(filter(
lambda prop: prop.type == 'PrimitiveObject' and prop.name == 'DISPLAYNAME',
- result.value[0].internal_properties))[0]
+ result.value[0].internal_properties))[0] # type: models.PrimitiveObject
assert 'Thomas' in display_name.value
+
@pytest.mark.ai
@pytest.mark.pipeline
def test_ai_name_genderize(td: TestData):
""" Test name gender detection """
result = td.email.ai_name_genderize(
- requests.AiNameGenderizeRequest('John Cane')) # type: models.ListResponseOfAiNameGenderHypothesis
+ requests.AiNameGenderizeRequest('John Cane')) # type: models.ListResponseOfAiNameGenderHypothesis
assert len(result.value) >= 1
assert result.value[0].gender == 'Male'
+
@pytest.mark.ai
@pytest.mark.pipeline
def test_ai_name_format(td: TestData):
result = td.email.ai_name_format(
requests.AiNameFormatRequest(
'Mr. John Michael Cane',
- format='%t%L%f%m')) # type: models.AiNameFormatted
+ format='%t%L%f%m')) # type: models.AiNameFormatted
assert result.name == 'Mr. Cane J. M.'
+
@pytest.mark.ai
@pytest.mark.pipeline
def test_ai_name_match(td: TestData):
first = 'John Michael Cane'
second = 'Cane J.'
result = td.email.ai_name_match(
- requests.AiNameMatchRequest(first, second)) # type: models.AiNameMatchResult
+ requests.AiNameMatchRequest(first, second)) # type: models.AiNameMatchResult
assert result.similarity >= 0.5
+
@pytest.mark.ai
@pytest.mark.pipeline
def test_ai_name_expand(td: TestData):
name = 'Smith Bobby'
result = td.email.ai_name_expand(
- requests.AiNameExpandRequest(name)) # type: models.AiNameWeightedVariants
- expandedNames = list(weighted.name for weighted in result.names)
- assert 'Mr. Smith' in expandedNames
- assert 'B. Smith' in expandedNames
+ requests.AiNameExpandRequest(name)) # type: models.AiNameWeightedVariants
+ expanded_names = list(weighted.name for weighted in result.names)
+ assert 'Mr. Smith' in expanded_names
+ assert 'B. Smith' in expanded_names
+
@pytest.mark.ai
@pytest.mark.pipeline
def test_ai_name_complete(td: TestData):
prefix = 'Dav'
result = td.email.ai_name_complete(
- requests.AiNameCompleteRequest(prefix)) # type: models.AiNameWeightedVariants
+ requests.AiNameCompleteRequest(prefix)) # type: models.AiNameWeightedVariants
names = list(prefix + weighted.name for weighted in result.names)
assert 'David' in names
assert 'Dave' in names
assert 'Davis' in names
+
@pytest.mark.ai
@pytest.mark.pipeline
def test_ai_name_parse_email_address(td: TestData):
@@ -189,12 +216,13 @@ def test_ai_name_parse_email_address(td: TestData):
result = td.email.ai_name_parse_email_address(
requests.AiNameParseEmailAddressRequest(address))
names = (extracted.name for extracted in result.value)
- extracted_values = list(functools.reduce(lambda a,b: a+b, names))
+ extracted_values = list(functools.reduce(lambda a, b: a + b, names))
given_name = next((x for x in extracted_values if x.category == 'GivenName'))
surname = next((x for x in extracted_values if x.category == 'Surname'))
assert given_name.value == 'John'
assert surname.value == 'Cane'
+
@pytest.mark.pipeline
def test_create_calendar_email(td: TestData):
calendar = models.CalendarDto()
@@ -228,7 +256,7 @@ def test_create_calendar_email(td: TestData):
subject='Some subject',
body='Some body')
- email_file = str(uuid.uuid4())+ '.eml'
+ email_file = str(uuid.uuid4()) + '.eml'
td.email.save_email_model(
requests.SaveEmailModelRequest(
'Eml', email_file,
@@ -258,7 +286,7 @@ def test_contact_model(td: TestData):
models.EnumWithCustomOfPhoneNumberCategory('Work'),
'+49211424721', True)])
- contact_file = str(uuid.uuid4())+ '.vcf'
+ contact_file = str(uuid.uuid4()) + '.vcf'
td.email.save_contact_model(
requests.SaveContactModelRequest(
'VCard', contact_file,
@@ -269,14 +297,14 @@ def test_contact_model(td: TestData):
requests.ObjectExistsRequest(td.folder + '/' + contact_file, td.storage))
assert exist_result.exists
+
@pytest.mark.ai
@pytest.mark.pipeline
def test_ai_bcr_parse_model(td: TestData):
image_file = os.path.join(os.path.dirname(__file__), '..', 'data', 'test_single_0001.png')
- image_data = None
with open(image_file, 'rb') as f:
- filedata = f.read()
- image_data = str(base64.b64encode(filedata), 'utf-8')
+ file_data = f.read()
+ image_data = str(base64.b64encode(file_data), 'utf-8')
result = td.email.ai_bcr_parse_model(requests.AiBcrParseModelRequest(
models.AiBcrBase64Rq(images=[models.AiBcrBase64Image(True, image_data)])))
assert len(result.value) == 1
@@ -288,12 +316,13 @@ def test_ai_bcr_parse_model(td: TestData):
def test_discover_email_config(td: TestData):
configs = td.email.discover_email_config(requests.DiscoverEmailConfigRequest('example@gmail.com', True))
assert len(configs.value) >= 2
- smtp = list(filter(lambda x: x.protocol_type == 'SMTP', configs.value))[0] #type: models.EmailAccountConfig
+ smtp = list(filter(lambda x: x.protocol_type == 'SMTP', configs.value))[0] # type: models.EmailAccountConfig
assert smtp.host == 'smtp.gmail.com'
+
@pytest.mark.pipeline
def test_create_mapi(td: TestData):
- name = str(uuid.uuid4())+ '.msg'
+ name = str(uuid.uuid4()) + '.msg'
td.email.create_mapi(requests.CreateMapiRequest(
name,
models.HierarchicalObjectRequest(
@@ -314,6 +343,7 @@ def test_create_mapi(td: TestData):
models.StorageFolderLocation(td.storage, td.folder))))
assert td.email.object_exists(requests.ObjectExistsRequest(td.folder + '/' + name, td.storage)).exists
+
@pytest.mark.pipeline
def test_mapi_add_attachment(td: TestData):
name = _create_calendar(td)
@@ -325,8 +355,9 @@ def test_mapi_add_attachment(td: TestData):
attachment_downloaded = td.email.get_calendar_attachment(requests.GetCalendarAttachmentRequest(
name, attachment, td.folder, td.storage))
with open(attachment_downloaded, 'r') as f:
- filedata = f.read()
- assert 'Aspose Ltd' in filedata
+ file_data = f.read()
+ assert 'Aspose Ltd' in file_data
+
@pytest.mark.pipeline
def test_mapi_get_properties(td: TestData):
@@ -335,6 +366,7 @@ def test_mapi_get_properties(td: TestData):
name, td.folder, td.storage))
assert 'IPM.Schedule' in properties.hierarchical_object.name
+
@pytest.mark.pipeline
def test_is_disposable_email(td: TestData):
disposable = td.email.is_email_address_disposable(
@@ -344,6 +376,7 @@ def test_is_disposable_email(td: TestData):
requests.IsEmailAddressDisposableRequest('example@gmail.com'))
assert not regular.value
+
@pytest.mark.pipeline
def test_email_client_account(td: TestData):
account = models.EmailClientAccount(
@@ -353,7 +386,7 @@ def test_email_client_account(td: TestData):
'SMTP',
models.EmailClientAccountPasswordCredentials(
'login', None, 'password'))
- name = str(uuid.uuid4())+ '.account'
+ name = str(uuid.uuid4()) + '.account'
td.email.save_email_client_account(
requests.SaveEmailClientAccountRequest(
models.StorageFileRqOfEmailClientAccount(
@@ -363,22 +396,27 @@ def test_email_client_account(td: TestData):
requests.GetEmailClientAccountRequest(
name, td.folder, td.storage))
assert account.host == result.host
- assert account.credentials.discriminator == result.credentials.discriminator
- assert account.credentials.password == result.credentials.password
+ # noinspection PyTypeChecker
+ account_credentials = account.credentials # type: models.EmailClientAccountPasswordCredentials
+ # noinspection PyTypeChecker
+ result_credentials = result.credentials # type: models.EmailClientAccountPasswordCredentials
+ assert account_credentials.discriminator == result.credentials.discriminator
+ assert account_credentials.password == result_credentials.password
+
@pytest.mark.pipeline
def test_email_client_multi_account(td: TestData):
# Create multi account object
multi_account = models.EmailClientMultiAccount(
[models.EmailClientAccount('imap.gmail.com', 993, 'SSLAuto', 'IMAP',
- models.EmailClientAccountPasswordCredentials(
- 'example@gmail.com', None, 'password')),
- models.EmailClientAccount('exchange.outlook.com', 443, 'SSLAuto', 'EWS',
- models.EmailClientAccountOauthCredentials(
- 'example@outlook.com', None, 'client_id', 'client_secret', 'refresh_token'))],
+ models.EmailClientAccountPasswordCredentials(
+ 'example@gmail.com', None, 'password')),
+ models.EmailClientAccount('exchange.outlook.com', 443, 'SSLAuto', 'EWS',
+ models.EmailClientAccountOauthCredentials(
+ 'example@outlook.com', None, 'client_id', 'client_secret', 'refresh_token'))],
models.EmailClientAccount('smtp.gmail.com', 465, 'SSLAuto', 'SMTP',
- models.EmailClientAccountPasswordCredentials(
- 'example@gmail.com', None, 'password')))
+ models.EmailClientAccountPasswordCredentials(
+ 'example@gmail.com', None, 'password')))
file_name = str(uuid.uuid4()) + '.multi.account'
folder = td.folder
storage = td.storage
@@ -394,10 +432,75 @@ def test_email_client_multi_account(td: TestData):
assert len(multi_account_from_storage.receive_accounts) == 2
assert (multi_account_from_storage.send_account.credentials.discriminator ==
- multi_account.send_account.credentials.discriminator)
+ multi_account.send_account.credentials.discriminator)
+
+
+@pytest.mark.pipeline
+def test_calendar_converter(td: TestData):
+ email = td.email
+ location = 'Some location'
+ # Create DTO with specified location:
+ calendar_dto = models.CalendarDto()
+ calendar_dto.location = location
+ calendar_dto.summary = 'Some summary'
+ calendar_dto.description = 'Some description'
+ calendar_dto.start_date = datetime.today()
+ calendar_dto.end_date = datetime.today()
+ calendar_dto.organizer = models.MailAddress(address='organizer@aspose.com')
+ calendar_dto.attendees = [models.MailAddress(address='attendee@aspose.com')]
+ # We can convert this DTO to a MAPI or ICS file
+ mapi = email.convert_calendar_model_to_file(requests.ConvertCalendarModelToFileRequest('Msg', calendar_dto))
+ # Let's convert this file to ICS format:
+ ics = email.convert_calendar(requests.ConvertCalendarRequest('Ics', mapi))
+ # ICS is a text format. We can read the file to a string and check that it
+ # contains specified location as a substring:
+ with open(ics, 'r') as f:
+ file_data = f.read()
+ assert location in file_data
+ # We can also convert the file back to a CalendarDto
+ dto = email.get_calendar_file_as_model(requests.GetCalendarFileAsModelRequest(ics))
+ assert location == dto.location
+
+
+@pytest.mark.pipeline
+def test_contact_converter(td: TestData):
+ email = td.email
+ surname = 'Cane'
+ contact_dto = models.ContactDto()
+ contact_dto.surname = surname
+ contact_dto.given_name = 'John'
+ contact_dto.email_addresses = [models.EmailAddress(address='address@aspose.com')]
+ contact_dto.phone_numbers = [models.PhoneNumber(number='+473253657534')]
+ mapi = email.convert_contact_model_to_file(requests.ConvertContactModelToFileRequest('Msg', contact_dto))
+ vcard = email.convert_contact(requests.ConvertContactRequest('VCard', 'Msg', mapi))
+ with open(vcard, 'r') as f:
+ file_data = f.read()
+ assert surname in file_data
+ dto = email.get_contact_file_as_model(requests.GetContactFileAsModelRequest('VCard', vcard))
+ assert surname == dto.surname
+
+
+@pytest.mark.pipeline
+def test_email_converter(td: TestData):
+ email = td.email
+ _from = 'from@aspose.com'
+ email_dto = models.EmailDto()
+ email_dto._from = models.MailAddress(address=_from)
+ email_dto.to = [models.MailAddress(address='to@aspose.com')]
+ email_dto.subject = 'Some subject'
+ email_dto.body = 'Some body'
+ email_dto._date = datetime.today()
+ mapi = email.convert_email_model_to_file(requests.ConvertEmailModelToFileRequest('Msg', email_dto))
+ eml = email.convert_email(requests.ConvertEmailRequest('Eml', mapi))
+ with open(eml, 'r') as f:
+ file_data = f.read()
+ assert _from in file_data
+ dto = email.get_email_file_as_model(requests.GetEmailFileAsModelRequest(eml))
+ assert _from == dto._from.address
+
def _create_calendar(td, start_date_param=None):
- name = str(uuid.uuid4())+ '.ics'
+ name = str(uuid.uuid4()) + '.ics'
start_date = (
start_date_param if start_date_param is not None
else datetime.today() + timedelta(days=1))
@@ -420,7 +523,7 @@ def _create_calendar(td, start_date_param=None):
])
])
]),
- models.StorageFolderLocation(td.storage, td.folder)
- ))
+ models.StorageFolderLocation(td.storage, td.folder)
+ ))
td.email.create_calendar(request)
- return name
\ No newline at end of file
+ return name