diff --git a/README.md b/README.md index 15a5fc9..3a27e63 100644 --- a/README.md +++ b/README.md @@ -1,49 +1,44 @@ -# Aspose.Email Cloud SDK for Python +# Manage Emails in Cloud via Python REST SDK [![PYPI](https://img.shields.io/pypi/v/aspose-email-cloud)](https://pypi.org/project/aspose-email-cloud/) [![License](https://img.shields.io/github/license/aspose-email-cloud/aspose-email-cloud-python)](https://pypi.org/project/aspose-email-cloud/) ![tests](https://github.com/aspose-email-cloud/aspose-email-cloud-python/workflows/tests/badge.svg) -This repository contains Aspose.Email Cloud SDK for Python source code. This SDK allows you to work with Aspose.Email Cloud REST APIs in your Python applications quickly and easily, with zero initial cost. +[Aspose.Email Cloud SDK for Python](https://products.aspose.cloud/email/python) is a REST API SDK for creating email applications that work with standard email file formats such as Outlook MSG, EML, iCalendar files and VCard. -[Aspose.Email Cloud home](https://products.aspose.cloud/email/family "Aspose.Email Cloud") +This SDK allows you to work with Aspose.Email Cloud REST APIs in your Python applications quickly and easily, with zero initial cost. + +[Aspose.Email Cloud home](https://products.aspose.cloud/email/family) [API Reference](https://apireference.aspose.cloud/email/) -# Key features +# Cloud Email Processing Features Aspose.Email Cloud is a REST API for creating email applications that work with standard email file formats. This SDK: -- Lets developers manipulate different emails’ formats such as Outlook MSG, EML, VCard, and iCalendar files -- Lets developers manipulate different emails' formats such as Outlook MSG, EML, VCard, and iCalendar files +- Lets developers manipulate different emails' formats such as Outlook MSG, EML, VCard, and iCalendar files. - Supports AI functions: - - The Business card recognition - - The Name API for parsing and handling personal names + - The Business card recognition. + - The Name API for parsing and handling personal names. - Has a built-in email client. This client provides: - - Unified REST API for different email protocols: IMAP, POP3, SMTP, EWS, WebDav - - Virtual multi-account - - Message threads (POP3 accounts are also supported) -- Email configuration discovery -- Disposable email address detection + - Unified REST API for different email protocols: IMAP, POP3, SMTP, EWS, WebDav. + - Virtual multi-account. + - Message threads (POP3 accounts are also supported). +- Email configuration discovery. +- Disposable email address detection. + +## New features in version 20.9 -## New features in version 20.7 -- New MAPI message files API with models: - - `MapiMessageDto` - represents the Microsoft Outlook message. - - `MapiCalendarDto` - represents the Microsoft Outlook calendar object. - - `MapiContactDto` - represents the Microsoft Outlook contact information. -- Improved Recurrence pattern support for CalendarDto. +Aspose.Email Cloud SDK 20.9.0 is based on a new v4.0 REST API. -See [Release notes](https://docs.aspose.cloud/display/emailcloud/Aspose.Email+Cloud+20.7+Release+Notes) +- All SDK functions are divided into groups (Email, Calendar, Contact, Client, Ai, Mapi, etc.). +- Unified file API provided for supported file types (Save, Get, Convert, AsFile, FromFile, AsMapi/AsDto). +- HierarchicalObject based API is removed. +- All models are stored in one folder/namespace. +- The request models are simplified. + +See [Release notes](https://docs.aspose.cloud/display/emailcloud/Aspose.Email+Cloud+20.9+Release+Notes). ## How to use the SDK? -The complete source code is available in the GIT repository. +The complete source code is available in the [GIT repository](https://github.com/aspose-email-cloud/aspose-email-cloud-python/tree/master/sdk/AsposeEmailCloudSdk). -Use [SDK tutorials](https://docs.aspose.cloud/display/emailcloud/SDK+Tutorials): -- [SDK setup](https://docs.aspose.cloud/display/emailcloud/SDK+setup) - installation, account setup, first API calls -- [Business Cards Recognition API](https://docs.aspose.cloud/display/emailcloud/Business+Cards+Recognition+API) - convert captured business cards and name card images, into a vCard format -- [Working with Name API](https://docs.aspose.cloud/display/emailcloud/Working+with+Name+API) - format, genderize, compare, parse, autocomplete names -- [Email Message Files](https://docs.aspose.cloud/display/emailcloud/Email+Message+Files) - Convert EML to MSG and back, edit EML files, etc. -- [Quick Start With iCalendar API](https://docs.aspose.cloud/display/emailcloud/Quick+Start+With+iCalendar+API) - Crate and edit iCalendar files -- [Quick Start With VCard API](https://docs.aspose.cloud/display/emailcloud/Quick+Start+With+VCard+API) - Create and edit VCard files, business card recognition -- [Quick Start With Email Client](https://docs.aspose.cloud/display/emailcloud/Quick+Start+With+Email+Client) - Setup builtin email client, search/fetch/send/move/delete messages -- [Email Client Threads](https://docs.aspose.cloud/display/emailcloud/Email+Client+Threads) - Fetch/Move/Delete email message threads using builtin email client -- [File converters](https://docs.aspose.cloud/display/emailcloud/Convert+Email%2C+Calendar+and+Contact+Files) +Use [SDK tutorials](https://docs.aspose.cloud/display/emailcloud/SDK+Tutorials). -SDK reference documentation is available in [this README](sdk/docs/README.md) +SDK reference documentation is available in [this README](https://github.com/aspose-email-cloud/aspose-email-cloud-python/blob/master/sdk/docs/README.md). ### Prerequisites @@ -55,50 +50,28 @@ You can use it directly in your project via the source code or get a [PYPI Packa pip install aspose-email-cloud -See more details about SDK installation in this tutorial: [SDK setup](https://docs.aspose.cloud/display/emailcloud/SDK+setup) +See more details about SDK installation in this tutorial: [SDK setup](https://docs.aspose.cloud/display/emailcloud/SDK+setup). ### Usage examples -To use the API, you should create an EmailApi object: +To use the API, you should create an EmailCloud object: ```python from AsposeEmailCloudSdk import api #EmailApi class is here from AsposeEmailCloudSdk import models #REST API models are here -from AsposeEmailCloudSdk.models import requests #Request models are here (all API calls use corresponding request model class) #... app_sid = 'Your App SID' app_key = 'Your App Key' -email_api = api.EmailApi(app_key, app_sid) +email_cloud = api.EmailCloud(app_key, app_sid) ``` #### Business cards recognition API -Use `AiBcrParseModel` method to parse business card image to VCard DTO: +Use `AiBcrApi.parse` method to parse business card image to VCard DTO: ```python -image_data = None -with open('/tmp/alex.png', 'rb') as f: - filedata = f.read() - image_data = str(base64.b64encode(filedata), 'utf-8') -result = email_api.ai_bcr_parse_model(requests.AiBcrParseModelRequest( - models.AiBcrBase64Rq(images=[models.AiBcrBase64Image(True, image_data)]))) +path = 'path/to/image/to/parse.png' +result = email_cloud.ai.bcr.parse(models.AiBcrParseRequest(image_file)) contact = result.value[0] +assert 'Parsed Display Name' in contact.display_name ``` -See more details [here](https://docs.aspose.cloud/display/emailcloud/Parse+Image+To+VCard+File) and [here](https://docs.aspose.cloud/display/emailcloud/Business+Cards+Recognition+API) - -# Licensing -All Aspose.Email Cloud SDKs, helper scripts and templates are licensed under [MIT License](LICENSE). - -# Resources -+ [**SDK Reference documentation**](sdk/docs/README.md) -+ [**Website**](https://www.aspose.cloud) -+ [**Product Home**](https://products.aspose.cloud/Email/cloud) -+ [**Documentation**](https://docs.aspose.cloud/display/Emailcloud/Home) -+ [**API Reference**](https://apireference.aspose.cloud/email/) -+ [**Free Support Forum**](https://forum.aspose.cloud/c/email) -+ [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/) -+ [**Blog**](https://blog.aspose.cloud/category/aspose-products/aspose-email-cloud/) -+ [**Git repository: Aspose.Email Cloud SDK for .Net**](https://github.com/aspose-email-cloud/aspose-email-cloud-dotnet) -+ [**Git repository: Aspose.Email Cloud SDK for Ruby**](https://github.com/aspose-email-cloud/aspose-email-cloud-ruby) -+ [**Git repository: Aspose.Email Cloud SDK for Python**](https://github.com/aspose-email-cloud/aspose-email-cloud-python) -+ [**Git repository: Aspose.Email Cloud SDK for PHP**](https://github.com/aspose-email-cloud/aspose-email-cloud-php) -+ [**Git repository: Aspose.Email Cloud SDK for Typescript**](https://github.com/aspose-email-cloud/aspose-email-cloud-node) -+ [**Git repository: Aspose.Email Cloud SDK for Java**](https://github.com/aspose-email-cloud/aspose-email-cloud-java) + +[Product Page](https://products.aspose.cloud/email/python) | [Documentation](https://docs.aspose.cloud/display/Emailcloud/Home) | [Demo](https://products.aspose.app/email/family) | [API Reference](https://apireference.aspose.cloud/email/) | [Blog](https://blog.aspose.cloud/category/email/) | [Free support](https://forum.aspose.cloud/c/email) | [Free trial](https://dashboard.aspose.cloud/#/apps) \ No newline at end of file diff --git a/sdk/AsposeEmailCloudSdk/__init__.py b/sdk/AsposeEmailCloudSdk/__init__.py index ba3eac8..7217a7d 100644 --- a/sdk/AsposeEmailCloudSdk/__init__.py +++ b/sdk/AsposeEmailCloudSdk/__init__.py @@ -26,20 +26,32 @@ from __future__ import absolute_import -# import apis into sdk package -from AsposeEmailCloudSdk.api.email_api import EmailApi - # import ApiClient from AsposeEmailCloudSdk.api_client import ApiClient from AsposeEmailCloudSdk.configuration import Configuration + +# import apis into sdk package +from AsposeEmailCloudSdk.api.ai_bcr_api import AiBcrApi +from AsposeEmailCloudSdk.api.ai_name_api import AiNameApi +from AsposeEmailCloudSdk.api.calendar_api import CalendarApi +from AsposeEmailCloudSdk.api.client_account_api import ClientAccountApi +from AsposeEmailCloudSdk.api.client_folder_api import ClientFolderApi +from AsposeEmailCloudSdk.api.client_message_api import ClientMessageApi +from AsposeEmailCloudSdk.api.client_thread_api import ClientThreadApi +from AsposeEmailCloudSdk.api.contact_api import ContactApi +from AsposeEmailCloudSdk.api.disposable_email_api import DisposableEmailApi +from AsposeEmailCloudSdk.api.email_api import EmailApi +from AsposeEmailCloudSdk.api.email_config_api import EmailConfigApi +from AsposeEmailCloudSdk.api.file_api import FileApi +from AsposeEmailCloudSdk.api.folder_api import FolderApi +from AsposeEmailCloudSdk.api.mapi_calendar_api import MapiCalendarApi +from AsposeEmailCloudSdk.api.mapi_contact_api import MapiContactApi +from AsposeEmailCloudSdk.api.mapi_message_api import MapiMessageApi +from AsposeEmailCloudSdk.api.storage_api import StorageApi # import models into sdk package -from AsposeEmailCloudSdk.models.account_base_request import AccountBaseRequest -from AsposeEmailCloudSdk.models.add_attachment_request import AddAttachmentRequest from AsposeEmailCloudSdk.models.ai_bcr_image import AiBcrImage -from AsposeEmailCloudSdk.models.ai_bcr_ocr_data import AiBcrOcrData -from AsposeEmailCloudSdk.models.ai_bcr_ocr_data_part import AiBcrOcrDataPart from AsposeEmailCloudSdk.models.ai_bcr_options import AiBcrOptions -from AsposeEmailCloudSdk.models.ai_bcr_rq import AiBcrRq +from AsposeEmailCloudSdk.models.ai_bcr_parse_storage_request import AiBcrParseStorageRequest from AsposeEmailCloudSdk.models.ai_name_component import AiNameComponent from AsposeEmailCloudSdk.models.ai_name_cultural_context import AiNameCulturalContext from AsposeEmailCloudSdk.models.ai_name_extracted import AiNameExtracted @@ -48,35 +60,31 @@ from AsposeEmailCloudSdk.models.ai_name_gender_hypothesis import AiNameGenderHypothesis from AsposeEmailCloudSdk.models.ai_name_match_result import AiNameMatchResult from AsposeEmailCloudSdk.models.ai_name_mismatch import AiNameMismatch -from AsposeEmailCloudSdk.models.ai_name_parsed_rq import AiNameParsedRq +from AsposeEmailCloudSdk.models.ai_name_parsed_request import AiNameParsedRequest from AsposeEmailCloudSdk.models.ai_name_weighted import AiNameWeighted from AsposeEmailCloudSdk.models.ai_name_weighted_variants import AiNameWeightedVariants from AsposeEmailCloudSdk.models.associated_person import AssociatedPerson from AsposeEmailCloudSdk.models.attachment_base import AttachmentBase -from AsposeEmailCloudSdk.models.base_object import BaseObject +from AsposeEmailCloudSdk.models.calendar_as_alternate_request import CalendarAsAlternateRequest +from AsposeEmailCloudSdk.models.calendar_as_file_request import CalendarAsFileRequest from AsposeEmailCloudSdk.models.calendar_dto import CalendarDto -from AsposeEmailCloudSdk.models.calendar_dto_alternate_rq import CalendarDtoAlternateRq from AsposeEmailCloudSdk.models.calendar_reminder import CalendarReminder +from AsposeEmailCloudSdk.models.client_account_base_request import ClientAccountBaseRequest +from AsposeEmailCloudSdk.models.contact_as_file_request import ContactAsFileRequest from AsposeEmailCloudSdk.models.contact_dto import ContactDto from AsposeEmailCloudSdk.models.contact_photo import ContactPhoto from AsposeEmailCloudSdk.models.content_type import ContentType from AsposeEmailCloudSdk.models.content_type_parameter import ContentTypeParameter -from AsposeEmailCloudSdk.models.create_email_request import CreateEmailRequest from AsposeEmailCloudSdk.models.customer_event import CustomerEvent from AsposeEmailCloudSdk.models.disc_usage import DiscUsage -from AsposeEmailCloudSdk.models.discover_email_config_rq import DiscoverEmailConfigRq +from AsposeEmailCloudSdk.models.discover_email_config_request import DiscoverEmailConfigRequest from AsposeEmailCloudSdk.models.email_account_config import EmailAccountConfig -from AsposeEmailCloudSdk.models.email_account_request import EmailAccountRequest from AsposeEmailCloudSdk.models.email_address import EmailAddress +from AsposeEmailCloudSdk.models.email_as_file_request import EmailAsFileRequest from AsposeEmailCloudSdk.models.email_client_account import EmailClientAccount from AsposeEmailCloudSdk.models.email_client_account_credentials import EmailClientAccountCredentials from AsposeEmailCloudSdk.models.email_client_multi_account import EmailClientMultiAccount -from AsposeEmailCloudSdk.models.email_document import EmailDocument -from AsposeEmailCloudSdk.models.email_document_response import EmailDocumentResponse from AsposeEmailCloudSdk.models.email_dto import EmailDto -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 @@ -90,11 +98,7 @@ from AsposeEmailCloudSdk.models.file_versions import FileVersions from AsposeEmailCloudSdk.models.files_list import FilesList from AsposeEmailCloudSdk.models.files_upload_result import FilesUploadResult -from AsposeEmailCloudSdk.models.hierarchical_object_request import HierarchicalObjectRequest -from AsposeEmailCloudSdk.models.hierarchical_object_response import HierarchicalObjectResponse from AsposeEmailCloudSdk.models.instant_messenger_address import InstantMessengerAddress -from AsposeEmailCloudSdk.models.link import Link -from AsposeEmailCloudSdk.models.list_response_of_ai_bcr_ocr_data import ListResponseOfAiBcrOcrData from AsposeEmailCloudSdk.models.list_response_of_ai_name_component import ListResponseOfAiNameComponent from AsposeEmailCloudSdk.models.list_response_of_ai_name_extracted import ListResponseOfAiNameExtracted from AsposeEmailCloudSdk.models.list_response_of_ai_name_gender_hypothesis import ListResponseOfAiNameGenderHypothesis @@ -102,17 +106,17 @@ 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_message_base import ListResponseOfMailMessageBase from AsposeEmailCloudSdk.models.list_response_of_mail_server_folder import ListResponseOfMailServerFolder from AsposeEmailCloudSdk.models.list_response_of_storage_file_location import ListResponseOfStorageFileLocation from AsposeEmailCloudSdk.models.list_response_of_storage_model_of_calendar_dto import ListResponseOfStorageModelOfCalendarDto from AsposeEmailCloudSdk.models.list_response_of_storage_model_of_contact_dto import ListResponseOfStorageModelOfContactDto from AsposeEmailCloudSdk.models.list_response_of_storage_model_of_email_dto import ListResponseOfStorageModelOfEmailDto -from AsposeEmailCloudSdk.models.list_response_of_string import ListResponseOfString from AsposeEmailCloudSdk.models.mail_address import MailAddress +from AsposeEmailCloudSdk.models.mail_message_base import MailMessageBase from AsposeEmailCloudSdk.models.mail_server_folder import MailServerFolder from AsposeEmailCloudSdk.models.mapi_attachment_dto import MapiAttachmentDto +from AsposeEmailCloudSdk.models.mapi_calendar_as_file_request import MapiCalendarAsFileRequest from AsposeEmailCloudSdk.models.mapi_calendar_attendees_dto import MapiCalendarAttendeesDto from AsposeEmailCloudSdk.models.mapi_calendar_event_recurrence_dto import MapiCalendarEventRecurrenceDto from AsposeEmailCloudSdk.models.mapi_calendar_exception_info_dto import MapiCalendarExceptionInfoDto @@ -120,6 +124,7 @@ from AsposeEmailCloudSdk.models.mapi_calendar_time_zone_dto import MapiCalendarTimeZoneDto from AsposeEmailCloudSdk.models.mapi_calendar_time_zone_info_dto import MapiCalendarTimeZoneInfoDto from AsposeEmailCloudSdk.models.mapi_calendar_time_zone_rule_dto import MapiCalendarTimeZoneRuleDto +from AsposeEmailCloudSdk.models.mapi_contact_as_file_request import MapiContactAsFileRequest from AsposeEmailCloudSdk.models.mapi_contact_electronic_address_dto import MapiContactElectronicAddressDto from AsposeEmailCloudSdk.models.mapi_contact_electronic_address_property_set_dto import MapiContactElectronicAddressPropertySetDto from AsposeEmailCloudSdk.models.mapi_contact_event_property_set_dto import MapiContactEventPropertySetDto @@ -131,11 +136,11 @@ from AsposeEmailCloudSdk.models.mapi_contact_professional_property_set_dto import MapiContactProfessionalPropertySetDto from AsposeEmailCloudSdk.models.mapi_contact_telephone_property_set_dto import MapiContactTelephonePropertySetDto from AsposeEmailCloudSdk.models.mapi_electronic_address_dto import MapiElectronicAddressDto +from AsposeEmailCloudSdk.models.mapi_message_as_file_request import MapiMessageAsFileRequest from AsposeEmailCloudSdk.models.mapi_message_item_base_dto import MapiMessageItemBaseDto from AsposeEmailCloudSdk.models.mapi_property_descriptor import MapiPropertyDescriptor from AsposeEmailCloudSdk.models.mapi_property_dto import MapiPropertyDto from AsposeEmailCloudSdk.models.mapi_recipient_dto import MapiRecipientDto -from AsposeEmailCloudSdk.models.mime_response import MimeResponse from AsposeEmailCloudSdk.models.name_value_pair import NameValuePair from AsposeEmailCloudSdk.models.object_exist import ObjectExist from AsposeEmailCloudSdk.models.phone_number import PhoneNumber @@ -143,61 +148,67 @@ from AsposeEmailCloudSdk.models.recurrence_pattern_dto import RecurrencePatternDto from AsposeEmailCloudSdk.models.reminder_attendee import ReminderAttendee from AsposeEmailCloudSdk.models.reminder_trigger import ReminderTrigger -from AsposeEmailCloudSdk.models.set_email_property_request import SetEmailPropertyRequest from AsposeEmailCloudSdk.models.storage_exist import StorageExist from AsposeEmailCloudSdk.models.storage_file import StorageFile -from AsposeEmailCloudSdk.models.storage_file_rq_of_email_client_account import StorageFileRqOfEmailClientAccount -from AsposeEmailCloudSdk.models.storage_file_rq_of_email_client_multi_account import StorageFileRqOfEmailClientMultiAccount from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation from AsposeEmailCloudSdk.models.storage_model_of_calendar_dto import StorageModelOfCalendarDto from AsposeEmailCloudSdk.models.storage_model_of_contact_dto import StorageModelOfContactDto +from AsposeEmailCloudSdk.models.storage_model_of_email_client_account import StorageModelOfEmailClientAccount +from AsposeEmailCloudSdk.models.storage_model_of_email_client_multi_account import StorageModelOfEmailClientMultiAccount from AsposeEmailCloudSdk.models.storage_model_of_email_dto import StorageModelOfEmailDto -from AsposeEmailCloudSdk.models.storage_model_rq_of_calendar_dto import StorageModelRqOfCalendarDto -from AsposeEmailCloudSdk.models.storage_model_rq_of_contact_dto import StorageModelRqOfContactDto -from AsposeEmailCloudSdk.models.storage_model_rq_of_email_dto import StorageModelRqOfEmailDto -from AsposeEmailCloudSdk.models.storage_model_rq_of_mapi_calendar_dto import StorageModelRqOfMapiCalendarDto -from AsposeEmailCloudSdk.models.storage_model_rq_of_mapi_contact_dto import StorageModelRqOfMapiContactDto -from AsposeEmailCloudSdk.models.storage_model_rq_of_mapi_message_dto import StorageModelRqOfMapiMessageDto +from AsposeEmailCloudSdk.models.storage_model_of_mapi_calendar_dto import StorageModelOfMapiCalendarDto +from AsposeEmailCloudSdk.models.storage_model_of_mapi_contact_dto import StorageModelOfMapiContactDto +from AsposeEmailCloudSdk.models.storage_model_of_mapi_message_dto import StorageModelOfMapiMessageDto from AsposeEmailCloudSdk.models.url import Url -from AsposeEmailCloudSdk.models.value_response import ValueResponse from AsposeEmailCloudSdk.models.value_t_of_boolean import ValueTOfBoolean -from AsposeEmailCloudSdk.models.ai_bcr_base64_image import AiBcrBase64Image -from AsposeEmailCloudSdk.models.ai_bcr_base64_rq import AiBcrBase64Rq +from AsposeEmailCloudSdk.models.value_t_of_string import ValueTOfString from AsposeEmailCloudSdk.models.ai_bcr_image_storage_file import AiBcrImageStorageFile -from AsposeEmailCloudSdk.models.ai_bcr_parse_ocr_data_rq import AiBcrParseOcrDataRq -from AsposeEmailCloudSdk.models.ai_bcr_storage_image_rq import AiBcrStorageImageRq -from AsposeEmailCloudSdk.models.ai_name_parsed_match_rq import AiNameParsedMatchRq +from AsposeEmailCloudSdk.models.ai_name_component_list import AiNameComponentList +from AsposeEmailCloudSdk.models.ai_name_extracted_list import AiNameExtractedList +from AsposeEmailCloudSdk.models.ai_name_gender_hypothesis_list import AiNameGenderHypothesisList +from AsposeEmailCloudSdk.models.ai_name_match_parsed_request import AiNameMatchParsedRequest from AsposeEmailCloudSdk.models.alternate_view import AlternateView -from AsposeEmailCloudSdk.models.append_email_account_base_request import AppendEmailAccountBaseRequest from AsposeEmailCloudSdk.models.attachment import Attachment -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.calendar_save_request import CalendarSaveRequest +from AsposeEmailCloudSdk.models.calendar_storage_list import CalendarStorageList +from AsposeEmailCloudSdk.models.client_account_save_multi_request import ClientAccountSaveMultiRequest +from AsposeEmailCloudSdk.models.client_account_save_request import ClientAccountSaveRequest +from AsposeEmailCloudSdk.models.client_folder_create_request import ClientFolderCreateRequest +from AsposeEmailCloudSdk.models.client_folder_delete_request import ClientFolderDeleteRequest +from AsposeEmailCloudSdk.models.client_message_append_request import ClientMessageAppendRequest +from AsposeEmailCloudSdk.models.client_message_base_request import ClientMessageBaseRequest +from AsposeEmailCloudSdk.models.client_message_send_request import ClientMessageSendRequest +from AsposeEmailCloudSdk.models.client_thread_base_request import ClientThreadBaseRequest +from AsposeEmailCloudSdk.models.contact_list import ContactList +from AsposeEmailCloudSdk.models.contact_save_request import ContactSaveRequest +from AsposeEmailCloudSdk.models.contact_storage_list import ContactStorageList from AsposeEmailCloudSdk.models.daily_recurrence_pattern_dto import DailyRecurrencePatternDto -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 -from AsposeEmailCloudSdk.models.discover_email_config_password import DiscoverEmailConfigPassword from AsposeEmailCloudSdk.models.email_account_config_list import EmailAccountConfigList 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_config_discover_oauth_request import EmailConfigDiscoverOauthRequest +from AsposeEmailCloudSdk.models.email_config_discover_password_request import EmailConfigDiscoverPasswordRequest +from AsposeEmailCloudSdk.models.email_list import EmailList +from AsposeEmailCloudSdk.models.email_save_request import EmailSaveRequest +from AsposeEmailCloudSdk.models.email_storage_list import EmailStorageList 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.mail_message_base64 import MailMessageBase64 +from AsposeEmailCloudSdk.models.mail_message_base_list import MailMessageBaseList +from AsposeEmailCloudSdk.models.mail_message_dto import MailMessageDto +from AsposeEmailCloudSdk.models.mail_message_mapi import MailMessageMapi +from AsposeEmailCloudSdk.models.mail_server_folder_list import MailServerFolderList from AsposeEmailCloudSdk.models.mapi_binary_property_dto import MapiBinaryPropertyDto from AsposeEmailCloudSdk.models.mapi_boolean_property_dto import MapiBooleanPropertyDto from AsposeEmailCloudSdk.models.mapi_calendar_daily_recurrence_pattern_dto import MapiCalendarDailyRecurrencePatternDto from AsposeEmailCloudSdk.models.mapi_calendar_dto import MapiCalendarDto +from AsposeEmailCloudSdk.models.mapi_calendar_save_request import MapiCalendarSaveRequest from AsposeEmailCloudSdk.models.mapi_calendar_weekly_recurrence_pattern_dto import MapiCalendarWeeklyRecurrencePatternDto from AsposeEmailCloudSdk.models.mapi_calendar_yearly_and_monthly_recurrence_pattern_dto import MapiCalendarYearlyAndMonthlyRecurrencePatternDto from AsposeEmailCloudSdk.models.mapi_contact_dto import MapiContactDto from AsposeEmailCloudSdk.models.mapi_contact_photo_dto import MapiContactPhotoDto +from AsposeEmailCloudSdk.models.mapi_contact_save_request import MapiContactSaveRequest from AsposeEmailCloudSdk.models.mapi_date_time_property_dto import MapiDateTimePropertyDto from AsposeEmailCloudSdk.models.mapi_file_as_property_dto import MapiFileAsPropertyDto from AsposeEmailCloudSdk.models.mapi_importance_property_dto import MapiImportancePropertyDto @@ -205,6 +216,7 @@ from AsposeEmailCloudSdk.models.mapi_known_property_descriptor import MapiKnownPropertyDescriptor from AsposeEmailCloudSdk.models.mapi_legacy_free_busy_property_dto import MapiLegacyFreeBusyPropertyDto from AsposeEmailCloudSdk.models.mapi_message_dto import MapiMessageDto +from AsposeEmailCloudSdk.models.mapi_message_save_request import MapiMessageSaveRequest from AsposeEmailCloudSdk.models.mapi_multi_int_property_dto import MapiMultiIntPropertyDto from AsposeEmailCloudSdk.models.mapi_multi_string_property_dto import MapiMultiStringPropertyDto from AsposeEmailCloudSdk.models.mapi_physical_address_index_property_dto import MapiPhysicalAddressIndexPropertyDto @@ -212,156 +224,85 @@ from AsposeEmailCloudSdk.models.mapi_response_type_property_dto import MapiResponseTypePropertyDto from AsposeEmailCloudSdk.models.mapi_string_property_dto import MapiStringPropertyDto from AsposeEmailCloudSdk.models.monthly_recurrence_pattern_dto import MonthlyRecurrencePatternDto -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 -from AsposeEmailCloudSdk.models.send_email_base_request import SendEmailBaseRequest -from AsposeEmailCloudSdk.models.send_email_mime_base_request import SendEmailMimeBaseRequest -from AsposeEmailCloudSdk.models.send_email_model_rq import SendEmailModelRq -from AsposeEmailCloudSdk.models.set_message_read_flag_account_base_request import SetMessageReadFlagAccountBaseRequest from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation +from AsposeEmailCloudSdk.models.storage_file_location_list import StorageFileLocationList from AsposeEmailCloudSdk.models.task_regenerating_pattern_dto import TaskRegeneratingPatternDto from AsposeEmailCloudSdk.models.weekly_recurrence_pattern_dto import WeeklyRecurrencePatternDto from AsposeEmailCloudSdk.models.yearly_recurrence_pattern_dto import YearlyRecurrencePatternDto -from AsposeEmailCloudSdk.models.ai_bcr_parse_storage_rq import AiBcrParseStorageRq -from AsposeEmailCloudSdk.models.append_email_base_request import AppendEmailBaseRequest -from AsposeEmailCloudSdk.models.append_email_mime_base_request import AppendEmailMimeBaseRequest -from AsposeEmailCloudSdk.models.append_email_model_rq import AppendEmailModelRq +from AsposeEmailCloudSdk.models.client_message_delete_request import ClientMessageDeleteRequest +from AsposeEmailCloudSdk.models.client_message_move_request import ClientMessageMoveRequest +from AsposeEmailCloudSdk.models.client_message_set_is_read_request import ClientMessageSetIsReadRequest +from AsposeEmailCloudSdk.models.client_thread_delete_request import ClientThreadDeleteRequest +from AsposeEmailCloudSdk.models.client_thread_move_request import ClientThreadMoveRequest +from AsposeEmailCloudSdk.models.client_thread_set_is_read_request import ClientThreadSetIsReadRequest from AsposeEmailCloudSdk.models.mapi_pid_lid_property_descriptor import MapiPidLidPropertyDescriptor from AsposeEmailCloudSdk.models.mapi_pid_name_property_descriptor import MapiPidNamePropertyDescriptor from AsposeEmailCloudSdk.models.mapi_pid_tag_property_descriptor import MapiPidTagPropertyDescriptor +from AsposeEmailCloudSdk.models.ai_bcr_parse_request import AiBcrParseRequest +from AsposeEmailCloudSdk.models.ai_name_complete_request import AiNameCompleteRequest +from AsposeEmailCloudSdk.models.ai_name_expand_request import AiNameExpandRequest +from AsposeEmailCloudSdk.models.ai_name_format_request import AiNameFormatRequest +from AsposeEmailCloudSdk.models.ai_name_genderize_request import AiNameGenderizeRequest +from AsposeEmailCloudSdk.models.ai_name_match_request import AiNameMatchRequest +from AsposeEmailCloudSdk.models.ai_name_parse_request import AiNameParseRequest +from AsposeEmailCloudSdk.models.ai_name_parse_email_address_request import AiNameParseEmailAddressRequest +from AsposeEmailCloudSdk.models.calendar_convert_request import CalendarConvertRequest +from AsposeEmailCloudSdk.models.calendar_from_file_request import CalendarFromFileRequest +from AsposeEmailCloudSdk.models.calendar_get_request import CalendarGetRequest +from AsposeEmailCloudSdk.models.calendar_get_as_alternate_request import CalendarGetAsAlternateRequest +from AsposeEmailCloudSdk.models.calendar_get_as_file_request import CalendarGetAsFileRequest +from AsposeEmailCloudSdk.models.calendar_get_list_request import CalendarGetListRequest +from AsposeEmailCloudSdk.models.client_account_get_request import ClientAccountGetRequest +from AsposeEmailCloudSdk.models.client_account_get_multi_request import ClientAccountGetMultiRequest +from AsposeEmailCloudSdk.models.client_folder_get_list_request import ClientFolderGetListRequest +from AsposeEmailCloudSdk.models.client_message_append_file_request import ClientMessageAppendFileRequest +from AsposeEmailCloudSdk.models.client_message_fetch_request import ClientMessageFetchRequest +from AsposeEmailCloudSdk.models.client_message_fetch_file_request import ClientMessageFetchFileRequest +from AsposeEmailCloudSdk.models.client_message_list_request import ClientMessageListRequest +from AsposeEmailCloudSdk.models.client_message_send_file_request import ClientMessageSendFileRequest +from AsposeEmailCloudSdk.models.client_thread_get_list_request import ClientThreadGetListRequest +from AsposeEmailCloudSdk.models.client_thread_get_messages_request import ClientThreadGetMessagesRequest +from AsposeEmailCloudSdk.models.contact_convert_request import ContactConvertRequest +from AsposeEmailCloudSdk.models.contact_from_file_request import ContactFromFileRequest +from AsposeEmailCloudSdk.models.contact_get_request import ContactGetRequest +from AsposeEmailCloudSdk.models.contact_get_as_file_request import ContactGetAsFileRequest +from AsposeEmailCloudSdk.models.contact_get_list_request import ContactGetListRequest +from AsposeEmailCloudSdk.models.disposable_email_is_disposable_request import DisposableEmailIsDisposableRequest +from AsposeEmailCloudSdk.models.email_convert_request import EmailConvertRequest +from AsposeEmailCloudSdk.models.email_from_file_request import EmailFromFileRequest +from AsposeEmailCloudSdk.models.email_get_request import EmailGetRequest +from AsposeEmailCloudSdk.models.email_get_as_file_request import EmailGetAsFileRequest +from AsposeEmailCloudSdk.models.email_get_list_request import EmailGetListRequest +from AsposeEmailCloudSdk.models.email_config_discover_request import EmailConfigDiscoverRequest +from AsposeEmailCloudSdk.models.copy_file_request import CopyFileRequest +from AsposeEmailCloudSdk.models.delete_file_request import DeleteFileRequest +from AsposeEmailCloudSdk.models.download_file_request import DownloadFileRequest +from AsposeEmailCloudSdk.models.move_file_request import MoveFileRequest +from AsposeEmailCloudSdk.models.upload_file_request import UploadFileRequest +from AsposeEmailCloudSdk.models.copy_folder_request import CopyFolderRequest +from AsposeEmailCloudSdk.models.create_folder_request import CreateFolderRequest +from AsposeEmailCloudSdk.models.delete_folder_request import DeleteFolderRequest +from AsposeEmailCloudSdk.models.get_files_list_request import GetFilesListRequest +from AsposeEmailCloudSdk.models.move_folder_request import MoveFolderRequest +from AsposeEmailCloudSdk.models.mapi_calendar_from_file_request import MapiCalendarFromFileRequest +from AsposeEmailCloudSdk.models.mapi_calendar_get_request import MapiCalendarGetRequest +from AsposeEmailCloudSdk.models.mapi_contact_from_file_request import MapiContactFromFileRequest +from AsposeEmailCloudSdk.models.mapi_contact_get_request import MapiContactGetRequest +from AsposeEmailCloudSdk.models.mapi_message_from_file_request import MapiMessageFromFileRequest +from AsposeEmailCloudSdk.models.mapi_message_get_request import MapiMessageGetRequest +from AsposeEmailCloudSdk.models.get_disc_usage_request import GetDiscUsageRequest +from AsposeEmailCloudSdk.models.get_file_versions_request import GetFileVersionsRequest +from AsposeEmailCloudSdk.models.object_exists_request import ObjectExistsRequest +from AsposeEmailCloudSdk.models.storage_exists_request import StorageExistsRequest + +# EmailCloud imports + +from AsposeEmailCloudSdk.api.mapi_group import MapiGroup + +from AsposeEmailCloudSdk.api.client_group import ClientGroup + +from AsposeEmailCloudSdk.api.ai_group import AiGroup + +from AsposeEmailCloudSdk.api.cloud_storage_group import CloudStorageGroup -from AsposeEmailCloudSdk.models.requests.add_calendar_attachment_request import AddCalendarAttachmentRequest -from AsposeEmailCloudSdk.models.requests.add_contact_attachment_request import AddContactAttachmentRequest -from AsposeEmailCloudSdk.models.requests.add_email_attachment_request import AddEmailAttachmentRequest -from AsposeEmailCloudSdk.models.requests.add_mapi_attachment_request import AddMapiAttachmentRequest -from AsposeEmailCloudSdk.models.requests.ai_bcr_ocr_request import AiBcrOcrRequest -from AsposeEmailCloudSdk.models.requests.ai_bcr_ocr_storage_request import AiBcrOcrStorageRequest -from AsposeEmailCloudSdk.models.requests.ai_bcr_parse_model_request import AiBcrParseModelRequest -from AsposeEmailCloudSdk.models.requests.ai_bcr_parse_ocr_data_model_request import AiBcrParseOcrDataModelRequest -from AsposeEmailCloudSdk.models.requests.ai_bcr_parse_request import AiBcrParseRequest -from AsposeEmailCloudSdk.models.requests.ai_bcr_parse_storage_request import AiBcrParseStorageRequest -from AsposeEmailCloudSdk.models.requests.ai_name_complete_request import AiNameCompleteRequest -from AsposeEmailCloudSdk.models.requests.ai_name_expand_parsed_request import AiNameExpandParsedRequest -from AsposeEmailCloudSdk.models.requests.ai_name_expand_request import AiNameExpandRequest -from AsposeEmailCloudSdk.models.requests.ai_name_format_parsed_request import AiNameFormatParsedRequest -from AsposeEmailCloudSdk.models.requests.ai_name_format_request import AiNameFormatRequest -from AsposeEmailCloudSdk.models.requests.ai_name_genderize_parsed_request import AiNameGenderizeParsedRequest -from AsposeEmailCloudSdk.models.requests.ai_name_genderize_request import AiNameGenderizeRequest -from AsposeEmailCloudSdk.models.requests.ai_name_match_parsed_request import AiNameMatchParsedRequest -from AsposeEmailCloudSdk.models.requests.ai_name_match_request import AiNameMatchRequest -from AsposeEmailCloudSdk.models.requests.ai_name_parse_email_address_request import AiNameParseEmailAddressRequest -from AsposeEmailCloudSdk.models.requests.ai_name_parse_request import AiNameParseRequest -from AsposeEmailCloudSdk.models.requests.append_email_message_request import AppendEmailMessageRequest -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_model_to_mapi_model_request import ConvertCalendarModelToMapiModelRequest -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_model_to_mapi_model_request import ConvertContactModelToMapiModelRequest -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_model_to_mapi_model_request import ConvertEmailModelToMapiModelRequest -from AsposeEmailCloudSdk.models.requests.convert_email_request import ConvertEmailRequest -from AsposeEmailCloudSdk.models.requests.convert_mapi_calendar_model_to_calendar_model_request import ConvertMapiCalendarModelToCalendarModelRequest -from AsposeEmailCloudSdk.models.requests.convert_mapi_calendar_model_to_file_request import ConvertMapiCalendarModelToFileRequest -from AsposeEmailCloudSdk.models.requests.convert_mapi_contact_model_to_contact_model_request import ConvertMapiContactModelToContactModelRequest -from AsposeEmailCloudSdk.models.requests.convert_mapi_contact_model_to_file_request import ConvertMapiContactModelToFileRequest -from AsposeEmailCloudSdk.models.requests.convert_mapi_message_model_to_email_model_request import ConvertMapiMessageModelToEmailModelRequest -from AsposeEmailCloudSdk.models.requests.convert_mapi_message_model_to_file_request import ConvertMapiMessageModelToFileRequest -from AsposeEmailCloudSdk.models.requests.copy_file_request import CopyFileRequest -from AsposeEmailCloudSdk.models.requests.copy_folder_request import CopyFolderRequest -from AsposeEmailCloudSdk.models.requests.create_calendar_request import CreateCalendarRequest -from AsposeEmailCloudSdk.models.requests.create_contact_request import CreateContactRequest -from AsposeEmailCloudSdk.models.requests.create_email_folder_request import CreateEmailFolderRequest -from AsposeEmailCloudSdk.models.requests.create_email_request import CreateEmailRequest -from AsposeEmailCloudSdk.models.requests.create_folder_request import CreateFolderRequest -from AsposeEmailCloudSdk.models.requests.create_mapi_request import CreateMapiRequest -from AsposeEmailCloudSdk.models.requests.delete_calendar_property_request import DeleteCalendarPropertyRequest -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 -from AsposeEmailCloudSdk.models.requests.delete_mapi_properties_request import DeleteMapiPropertiesRequest -from AsposeEmailCloudSdk.models.requests.discover_email_config_oauth_request import DiscoverEmailConfigOauthRequest -from AsposeEmailCloudSdk.models.requests.discover_email_config_password_request import DiscoverEmailConfigPasswordRequest -from AsposeEmailCloudSdk.models.requests.discover_email_config_request import DiscoverEmailConfigRequest -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_mapi_model_request import GetCalendarFileAsMapiModelRequest -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_mapi_model_request import GetContactFileAsMapiModelRequest -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 -from AsposeEmailCloudSdk.models.requests.get_contact_properties_request import GetContactPropertiesRequest -from AsposeEmailCloudSdk.models.requests.get_disc_usage_request import GetDiscUsageRequest -from AsposeEmailCloudSdk.models.requests.get_email_as_file_request import GetEmailAsFileRequest -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_mapi_model_request import GetEmailFileAsMapiModelRequest -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 -from AsposeEmailCloudSdk.models.requests.get_email_request import GetEmailRequest -from AsposeEmailCloudSdk.models.requests.get_files_list_request import GetFilesListRequest -from AsposeEmailCloudSdk.models.requests.get_file_versions_request import GetFileVersionsRequest -from AsposeEmailCloudSdk.models.requests.get_mapi_attachments_request import GetMapiAttachmentsRequest -from AsposeEmailCloudSdk.models.requests.get_mapi_attachment_request import GetMapiAttachmentRequest -from AsposeEmailCloudSdk.models.requests.get_mapi_calendar_model_request import GetMapiCalendarModelRequest -from AsposeEmailCloudSdk.models.requests.get_mapi_contact_model_request import GetMapiContactModelRequest -from AsposeEmailCloudSdk.models.requests.get_mapi_list_request import GetMapiListRequest -from AsposeEmailCloudSdk.models.requests.get_mapi_message_model_request import GetMapiMessageModelRequest -from AsposeEmailCloudSdk.models.requests.get_mapi_properties_request import GetMapiPropertiesRequest -from AsposeEmailCloudSdk.models.requests.is_email_address_disposable_request import IsEmailAddressDisposableRequest -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 -from AsposeEmailCloudSdk.models.requests.save_calendar_model_request import SaveCalendarModelRequest -from AsposeEmailCloudSdk.models.requests.save_contact_model_request import SaveContactModelRequest -from AsposeEmailCloudSdk.models.requests.save_email_client_account_request import SaveEmailClientAccountRequest -from AsposeEmailCloudSdk.models.requests.save_email_client_multi_account_request import SaveEmailClientMultiAccountRequest -from AsposeEmailCloudSdk.models.requests.save_email_model_request import SaveEmailModelRequest -from AsposeEmailCloudSdk.models.requests.save_mail_account_request import SaveMailAccountRequest -from AsposeEmailCloudSdk.models.requests.save_mail_o_auth_account_request import SaveMailOAuthAccountRequest -from AsposeEmailCloudSdk.models.requests.save_mapi_calendar_model_request import SaveMapiCalendarModelRequest -from AsposeEmailCloudSdk.models.requests.save_mapi_contact_model_request import SaveMapiContactModelRequest -from AsposeEmailCloudSdk.models.requests.save_mapi_message_model_request import SaveMapiMessageModelRequest -from AsposeEmailCloudSdk.models.requests.send_email_mime_request import SendEmailMimeRequest -from AsposeEmailCloudSdk.models.requests.send_email_model_request import SendEmailModelRequest -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 -from AsposeEmailCloudSdk.models.requests.update_mapi_properties_request import UpdateMapiPropertiesRequest -from AsposeEmailCloudSdk.models.requests.upload_file_request import UploadFileRequest +from AsposeEmailCloudSdk.api.email_cloud import EmailCloud \ No newline at end of file diff --git a/sdk/AsposeEmailCloudSdk/api/__init__.py b/sdk/AsposeEmailCloudSdk/api/__init__.py index c3a078c..891e952 100644 --- a/sdk/AsposeEmailCloudSdk/api/__init__.py +++ b/sdk/AsposeEmailCloudSdk/api/__init__.py @@ -27,4 +27,34 @@ from __future__ import absolute_import # import apis into api package +from AsposeEmailCloudSdk.api.ai_bcr_api import AiBcrApi +from AsposeEmailCloudSdk.api.ai_name_api import AiNameApi +from AsposeEmailCloudSdk.api.calendar_api import CalendarApi +from AsposeEmailCloudSdk.api.client_account_api import ClientAccountApi +from AsposeEmailCloudSdk.api.client_folder_api import ClientFolderApi +from AsposeEmailCloudSdk.api.client_message_api import ClientMessageApi +from AsposeEmailCloudSdk.api.client_thread_api import ClientThreadApi +from AsposeEmailCloudSdk.api.contact_api import ContactApi +from AsposeEmailCloudSdk.api.disposable_email_api import DisposableEmailApi from AsposeEmailCloudSdk.api.email_api import EmailApi +from AsposeEmailCloudSdk.api.email_config_api import EmailConfigApi +from AsposeEmailCloudSdk.api.file_api import FileApi +from AsposeEmailCloudSdk.api.folder_api import FolderApi +from AsposeEmailCloudSdk.api.mapi_calendar_api import MapiCalendarApi +from AsposeEmailCloudSdk.api.mapi_contact_api import MapiContactApi +from AsposeEmailCloudSdk.api.mapi_message_api import MapiMessageApi +from AsposeEmailCloudSdk.api.storage_api import StorageApi + + + +# EmailCloud imports + +from AsposeEmailCloudSdk.api.mapi_group import MapiGroup + +from AsposeEmailCloudSdk.api.client_group import ClientGroup + +from AsposeEmailCloudSdk.api.ai_group import AiGroup + +from AsposeEmailCloudSdk.api.cloud_storage_group import CloudStorageGroup + +from AsposeEmailCloudSdk.api.email_cloud import EmailCloud diff --git a/sdk/AsposeEmailCloudSdk/api/ai_bcr_api.py b/sdk/AsposeEmailCloudSdk/api/ai_bcr_api.py new file mode 100644 index 0000000..624ee6b --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/api/ai_bcr_api.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. +# +# ---------------------------------------------------------------------------- + +from __future__ import absolute_import + +from AsposeEmailCloudSdk.api.api_base import ApiBase +from AsposeEmailCloudSdk.models import * + + +class AiBcrApi(ApiBase): + """ + Aspose.Email Cloud API. AiBcrApi operations. + + """ + + def __init__(self, api_client): + super(AiBcrApi, self).__init__(api_client) + + def parse(self, request: AiBcrParseRequest) -> ContactList: + """Parse images to vCard document models + + + :param request: AiBcrParseRequest object with parameters + :type request: AiBcrParseRequest + :return: ContactList + """ + # verify the required parameter 'file' is set + if request.file is None: + raise ValueError("Missing the required parameter `file` when calling `parse`") + + collection_formats = {} + path = '/email/AiBcr/parse' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('countries') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.countries if request.countries is not None else '') + else: + if request.countries is not None: + query_params.append((self._lowercase_first_letter('countries'), request.countries)) + path_parameter = '{' + self._lowercase_first_letter('languages') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.languages if request.languages is not None else '') + else: + if request.languages is not None: + query_params.append((self._lowercase_first_letter('languages'), request.languages)) + path_parameter = '{' + self._lowercase_first_letter('isSingle') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.is_single if request.is_single is not None else '') + else: + if request.is_single is not None: + query_params.append((self._lowercase_first_letter('isSingle'), request.is_single)) + + form_params = [] + local_var_files = [] + if request.file is not None: + local_var_files.append((self._lowercase_first_letter('File'), request.file)) + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'ContactList') + + def parse_storage(self, request: AiBcrParseStorageRequest) -> StorageFileLocationList: + """Parse images from storage to vCard files + + :param request: Request with images located on storage + :type request: AiBcrParseStorageRequest + :return: StorageFileLocationList + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `parse_storage`") + + collection_formats = {} + path = '/email/AiBcr/parse-storage' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'StorageFileLocationList') diff --git a/sdk/AsposeEmailCloudSdk/api/ai_group.py b/sdk/AsposeEmailCloudSdk/api/ai_group.py new file mode 100644 index 0000000..409071f --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/api/ai_group.py @@ -0,0 +1,55 @@ + +# 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. +# +# ---------------------------------------------------------------------------- + +from __future__ import absolute_import +from AsposeEmailCloudSdk.api import * + +class AiGroup(object): + """ + AI powered operations. + """ + def __init__(self, api_client): + + self._bcr = AiBcrApi(api_client) + + self._name = AiNameApi(api_client) + + + @property + def bcr(self) -> AiBcrApi: + """ + AI Business card recognition operations. + """ + return self._bcr + + @property + def name(self) -> AiNameApi: + """ + AI Name operations. + """ + return self._name + diff --git a/sdk/AsposeEmailCloudSdk/api/ai_name_api.py b/sdk/AsposeEmailCloudSdk/api/ai_name_api.py new file mode 100644 index 0000000..e1c09ae --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/api/ai_name_api.py @@ -0,0 +1,689 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from __future__ import absolute_import + +from AsposeEmailCloudSdk.api.api_base import ApiBase +from AsposeEmailCloudSdk.models import * + + +class AiNameApi(ApiBase): + """ + Aspose.Email Cloud API. AiNameApi operations. + + """ + + def __init__(self, api_client): + super(AiNameApi, self).__init__(api_client) + + def complete(self, request: AiNameCompleteRequest) -> AiNameWeightedVariants: + """The call proposes k most probable names for given starting characters. + + + :param request: AiNameCompleteRequest object with parameters + :type request: AiNameCompleteRequest + :return: AiNameWeightedVariants + """ + # verify the required parameter 'name' is set + if request.name is None: + raise ValueError("Missing the required parameter `name` when calling `complete`") + + collection_formats = {} + path = '/email/AiName/complete' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('name') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.name if request.name is not None else '') + else: + if request.name is not None: + query_params.append((self._lowercase_first_letter('name'), request.name)) + path_parameter = '{' + self._lowercase_first_letter('language') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.language if request.language is not None else '') + else: + if request.language is not None: + query_params.append((self._lowercase_first_letter('language'), request.language)) + path_parameter = '{' + self._lowercase_first_letter('location') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.location if request.location is not None else '') + else: + if request.location is not None: + query_params.append((self._lowercase_first_letter('location'), request.location)) + path_parameter = '{' + self._lowercase_first_letter('encoding') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.encoding if request.encoding is not None else '') + else: + if request.encoding is not None: + query_params.append((self._lowercase_first_letter('encoding'), request.encoding)) + path_parameter = '{' + self._lowercase_first_letter('script') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.script if request.script is not None else '') + else: + if request.script is not None: + query_params.append((self._lowercase_first_letter('script'), request.script)) + path_parameter = '{' + self._lowercase_first_letter('style') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.style if request.style is not None else '') + else: + if request.style is not None: + query_params.append((self._lowercase_first_letter('style'), request.style)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'AiNameWeightedVariants') + + def expand(self, request: AiNameExpandRequest) -> AiNameWeightedVariants: + """Expands a person's name into a list of possible alternatives using options for expanding instructions. + + + :param request: AiNameExpandRequest object with parameters + :type request: AiNameExpandRequest + :return: AiNameWeightedVariants + """ + # verify the required parameter 'name' is set + if request.name is None: + raise ValueError("Missing the required parameter `name` when calling `expand`") + + collection_formats = {} + path = '/email/AiName/expand' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('name') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.name if request.name is not None else '') + else: + if request.name is not None: + query_params.append((self._lowercase_first_letter('name'), request.name)) + path_parameter = '{' + self._lowercase_first_letter('language') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.language if request.language is not None else '') + else: + if request.language is not None: + query_params.append((self._lowercase_first_letter('language'), request.language)) + path_parameter = '{' + self._lowercase_first_letter('location') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.location if request.location is not None else '') + else: + if request.location is not None: + query_params.append((self._lowercase_first_letter('location'), request.location)) + path_parameter = '{' + self._lowercase_first_letter('encoding') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.encoding if request.encoding is not None else '') + else: + if request.encoding is not None: + query_params.append((self._lowercase_first_letter('encoding'), request.encoding)) + path_parameter = '{' + self._lowercase_first_letter('script') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.script if request.script is not None else '') + else: + if request.script is not None: + query_params.append((self._lowercase_first_letter('script'), request.script)) + path_parameter = '{' + self._lowercase_first_letter('style') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.style if request.style is not None else '') + else: + if request.style is not None: + query_params.append((self._lowercase_first_letter('style'), request.style)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'AiNameWeightedVariants') + + def expand_parsed(self, request: AiNameParsedRequest) -> AiNameWeightedVariants: + """Expands a person's parsed name into a list of possible alternatives using options for expanding instructions. + + :param request: Parsed name with options. + :type request: AiNameParsedRequest + :return: AiNameWeightedVariants + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `expand_parsed`") + + collection_formats = {} + path = '/email/AiName/expand-parsed' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'AiNameWeightedVariants') + + def format(self, request: AiNameFormatRequest) -> AiNameFormatted: + """Formats a person's name in correct case and name order using options for formatting instructions. + + + :param request: AiNameFormatRequest object with parameters + :type request: AiNameFormatRequest + :return: AiNameFormatted + """ + # verify the required parameter 'name' is set + if request.name is None: + raise ValueError("Missing the required parameter `name` when calling `format`") + + collection_formats = {} + path = '/email/AiName/format' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('name') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.name if request.name is not None else '') + else: + if request.name is not None: + query_params.append((self._lowercase_first_letter('name'), request.name)) + path_parameter = '{' + self._lowercase_first_letter('language') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.language if request.language is not None else '') + else: + if request.language is not None: + query_params.append((self._lowercase_first_letter('language'), request.language)) + path_parameter = '{' + self._lowercase_first_letter('location') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.location if request.location is not None else '') + else: + if request.location is not None: + query_params.append((self._lowercase_first_letter('location'), request.location)) + path_parameter = '{' + self._lowercase_first_letter('encoding') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.encoding if request.encoding is not None else '') + else: + if request.encoding is not None: + query_params.append((self._lowercase_first_letter('encoding'), request.encoding)) + path_parameter = '{' + self._lowercase_first_letter('script') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.script if request.script is not None else '') + else: + if request.script is not None: + query_params.append((self._lowercase_first_letter('script'), request.script)) + path_parameter = '{' + self._lowercase_first_letter('format') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.format if request.format is not None else '') + else: + if request.format is not None: + query_params.append((self._lowercase_first_letter('format'), request.format)) + path_parameter = '{' + self._lowercase_first_letter('style') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.style if request.style is not None else '') + else: + if request.style is not None: + query_params.append((self._lowercase_first_letter('style'), request.style)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'AiNameFormatted') + + def format_parsed(self, request: AiNameParsedRequest) -> AiNameFormatted: + """Formats a person's parsed name in correct case and name order using options for formatting instructions. + + :param request: Parsed name with options. + :type request: AiNameParsedRequest + :return: AiNameFormatted + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `format_parsed`") + + collection_formats = {} + path = '/email/AiName/format-parsed' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'AiNameFormatted') + + def genderize(self, request: AiNameGenderizeRequest) -> AiNameGenderHypothesisList: + """Detect person's gender from name string. + + + :param request: AiNameGenderizeRequest object with parameters + :type request: AiNameGenderizeRequest + :return: AiNameGenderHypothesisList + """ + # verify the required parameter 'name' is set + if request.name is None: + raise ValueError("Missing the required parameter `name` when calling `genderize`") + + collection_formats = {} + path = '/email/AiName/genderize' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('name') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.name if request.name is not None else '') + else: + if request.name is not None: + query_params.append((self._lowercase_first_letter('name'), request.name)) + path_parameter = '{' + self._lowercase_first_letter('language') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.language if request.language is not None else '') + else: + if request.language is not None: + query_params.append((self._lowercase_first_letter('language'), request.language)) + path_parameter = '{' + self._lowercase_first_letter('location') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.location if request.location is not None else '') + else: + if request.location is not None: + query_params.append((self._lowercase_first_letter('location'), request.location)) + path_parameter = '{' + self._lowercase_first_letter('encoding') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.encoding if request.encoding is not None else '') + else: + if request.encoding is not None: + query_params.append((self._lowercase_first_letter('encoding'), request.encoding)) + path_parameter = '{' + self._lowercase_first_letter('script') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.script if request.script is not None else '') + else: + if request.script is not None: + query_params.append((self._lowercase_first_letter('script'), request.script)) + path_parameter = '{' + self._lowercase_first_letter('style') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.style if request.style is not None else '') + else: + if request.style is not None: + query_params.append((self._lowercase_first_letter('style'), request.style)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'AiNameGenderHypothesisList') + + def genderize_parsed(self, request: AiNameParsedRequest) -> AiNameGenderHypothesisList: + """Detect person's gender from parsed name. + + :param request: Gender detection request data. + :type request: AiNameParsedRequest + :return: AiNameGenderHypothesisList + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `genderize_parsed`") + + collection_formats = {} + path = '/email/AiName/genderize-parsed' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'AiNameGenderHypothesisList') + + def match(self, request: AiNameMatchRequest) -> AiNameMatchResult: + """Compare people's names. Uses options for comparing instructions. + + + :param request: AiNameMatchRequest object with parameters + :type request: AiNameMatchRequest + :return: AiNameMatchResult + """ + # verify the required parameter 'name' is set + if request.name is None: + raise ValueError("Missing the required parameter `name` when calling `match`") + # verify the required parameter 'other_name' is set + if request.other_name is None: + raise ValueError("Missing the required parameter `other_name` when calling `match`") + + collection_formats = {} + path = '/email/AiName/match' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('name') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.name if request.name is not None else '') + else: + if request.name is not None: + query_params.append((self._lowercase_first_letter('name'), request.name)) + path_parameter = '{' + self._lowercase_first_letter('otherName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.other_name if request.other_name is not None else '') + else: + if request.other_name is not None: + query_params.append((self._lowercase_first_letter('otherName'), request.other_name)) + path_parameter = '{' + self._lowercase_first_letter('language') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.language if request.language is not None else '') + else: + if request.language is not None: + query_params.append((self._lowercase_first_letter('language'), request.language)) + path_parameter = '{' + self._lowercase_first_letter('location') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.location if request.location is not None else '') + else: + if request.location is not None: + query_params.append((self._lowercase_first_letter('location'), request.location)) + path_parameter = '{' + self._lowercase_first_letter('encoding') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.encoding if request.encoding is not None else '') + else: + if request.encoding is not None: + query_params.append((self._lowercase_first_letter('encoding'), request.encoding)) + path_parameter = '{' + self._lowercase_first_letter('script') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.script if request.script is not None else '') + else: + if request.script is not None: + query_params.append((self._lowercase_first_letter('script'), request.script)) + path_parameter = '{' + self._lowercase_first_letter('style') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.style if request.style is not None else '') + else: + if request.style is not None: + query_params.append((self._lowercase_first_letter('style'), request.style)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'AiNameMatchResult') + + def match_parsed(self, request: AiNameMatchParsedRequest) -> AiNameMatchResult: + """Compare people's parsed names and attributes. Uses options for comparing instructions. + + :param request: Parsed names to match. + :type request: AiNameMatchParsedRequest + :return: AiNameMatchResult + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `match_parsed`") + + collection_formats = {} + path = '/email/AiName/match-parsed' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'AiNameMatchResult') + + def parse(self, request: AiNameParseRequest) -> AiNameComponentList: + """Parse name to components. + + + :param request: AiNameParseRequest object with parameters + :type request: AiNameParseRequest + :return: AiNameComponentList + """ + # verify the required parameter 'name' is set + if request.name is None: + raise ValueError("Missing the required parameter `name` when calling `parse`") + + collection_formats = {} + path = '/email/AiName/parse' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('name') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.name if request.name is not None else '') + else: + if request.name is not None: + query_params.append((self._lowercase_first_letter('name'), request.name)) + path_parameter = '{' + self._lowercase_first_letter('language') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.language if request.language is not None else '') + else: + if request.language is not None: + query_params.append((self._lowercase_first_letter('language'), request.language)) + path_parameter = '{' + self._lowercase_first_letter('location') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.location if request.location is not None else '') + else: + if request.location is not None: + query_params.append((self._lowercase_first_letter('location'), request.location)) + path_parameter = '{' + self._lowercase_first_letter('encoding') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.encoding if request.encoding is not None else '') + else: + if request.encoding is not None: + query_params.append((self._lowercase_first_letter('encoding'), request.encoding)) + path_parameter = '{' + self._lowercase_first_letter('script') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.script if request.script is not None else '') + else: + if request.script is not None: + query_params.append((self._lowercase_first_letter('script'), request.script)) + path_parameter = '{' + self._lowercase_first_letter('style') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.style if request.style is not None else '') + else: + if request.style is not None: + query_params.append((self._lowercase_first_letter('style'), request.style)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'AiNameComponentList') + + def parse_email_address(self, request: AiNameParseEmailAddressRequest) -> AiNameExtractedList: + """Parse person's name out of an email address. + + + :param request: AiNameParseEmailAddressRequest object with parameters + :type request: AiNameParseEmailAddressRequest + :return: AiNameExtractedList + """ + # verify the required parameter 'email_address' is set + if request.email_address is None: + raise ValueError("Missing the required parameter `email_address` when calling `parse_email_address`") + + collection_formats = {} + path = '/email/AiName/parse-email-address' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('emailAddress') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.email_address if request.email_address is not None else '') + else: + if request.email_address is not None: + query_params.append((self._lowercase_first_letter('emailAddress'), request.email_address)) + path_parameter = '{' + self._lowercase_first_letter('language') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.language if request.language is not None else '') + else: + if request.language is not None: + query_params.append((self._lowercase_first_letter('language'), request.language)) + path_parameter = '{' + self._lowercase_first_letter('location') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.location if request.location is not None else '') + else: + if request.location is not None: + query_params.append((self._lowercase_first_letter('location'), request.location)) + path_parameter = '{' + self._lowercase_first_letter('encoding') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.encoding if request.encoding is not None else '') + else: + if request.encoding is not None: + query_params.append((self._lowercase_first_letter('encoding'), request.encoding)) + path_parameter = '{' + self._lowercase_first_letter('script') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.script if request.script is not None else '') + else: + if request.script is not None: + query_params.append((self._lowercase_first_letter('script'), request.script)) + path_parameter = '{' + self._lowercase_first_letter('style') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.style if request.style is not None else '') + else: + if request.style is not None: + query_params.append((self._lowercase_first_letter('style'), request.style)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'AiNameExtractedList') diff --git a/sdk/AsposeEmailCloudSdk/api/api_base.py b/sdk/AsposeEmailCloudSdk/api/api_base.py new file mode 100644 index 0000000..b10eddf --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/api/api_base.py @@ -0,0 +1,106 @@ +import six + +from AsposeEmailCloudSdk.api_client import ApiClient +from AsposeEmailCloudSdk.rest import ApiException + + +class ApiBase(object): + def __init__(self, api_client: ApiClient): + self.api_client = api_client + + @staticmethod + def _select_header_accept(accepts): + """Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return None + + accepts = [x.lower() for x in accepts] + + if 'application/json' in accepts: + return 'application/json' + + return ', '.join(accepts) + + @staticmethod + def _select_header_content_type(content_types): + """Returns `Content-Type` based on an array of content_types provided. + + :param content_types: List of content-types. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return 'application/json' + + content_types = [x.lower() for x in content_types] + + if 'application/json' in content_types or '*/*' in content_types: + return 'application/json' + + return content_types[0] + + @staticmethod + def _lowercase_first_letter(string): + """ + Converts first letter of the string to lowercase + + :param string: initial string + :return: initial string with first character in lowercase + """ + if not string: + return string + + return string[0].lower() + string[1:] + + def _make_request(self, http_request, method, return_type): + def call_api(): + return self.api_client.call_api( + resource_path=http_request.resource_path, + method=method, + path_params=http_request.path_params, + query_params=http_request.query_params, + header_params=http_request.header_params, + body=http_request.body_params, + post_params=http_request.form_params, + files=http_request.files, + response_type=return_type, + auth_settings=http_request.auth_settings, + _return_http_data_only=http_request.return_http_data_only, + _preload_content=http_request.preload_content, + _request_timeout=http_request.request_timeout, + collection_formats=http_request.collection_formats) + + try: + return call_api() + except ApiException as ex: + if ex.code == 401: + self._request_token() + return call_api() + raise + + def _request_token(self): + config = self.api_client.configuration + request_url = "/connect/token" + form_params = [('grant_type', 'client_credentials'), ('client_id', config.api_key['app_sid']), + ('client_secret', config.api_key['api_key'])] + + header_params = {'Accept': 'application/json', 'Content-Type': 'application/x-www-form-urlencoded'} + + api_version = self.api_client.configuration.api_version + self.api_client.configuration.api_version = '' + + data = self.api_client.call_api(request_url, 'POST', + {}, + [], + header_params, + post_params=form_params, + response_type='object', + files={}, _return_http_data_only=True, + host=config.get_auth_url()) + access_token = data['access_token'] if six.PY3 else data['access_token'].encode('utf8') + self.api_client.configuration.access_token = access_token + + self.api_client.configuration.api_version = api_version diff --git a/sdk/AsposeEmailCloudSdk/api/calendar_api.py b/sdk/AsposeEmailCloudSdk/api/calendar_api.py new file mode 100644 index 0000000..00d385e --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/api/calendar_api.py @@ -0,0 +1,499 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from __future__ import absolute_import + +from AsposeEmailCloudSdk.api.api_base import ApiBase +from AsposeEmailCloudSdk.models import * + + +class CalendarApi(ApiBase): + """ + Aspose.Email Cloud API. CalendarApi operations. + + """ + + def __init__(self, api_client): + super(CalendarApi, self).__init__(api_client) + + def as_alternate(self, request: CalendarAsAlternateRequest) -> AlternateView: + """Convert iCalendar to AlternateView + + :param request: iCalendar to AlternateView request + :type request: CalendarAsAlternateRequest + :return: AlternateView + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `as_alternate`") + + collection_formats = {} + path = '/email/Calendar/as-alternate' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'AlternateView') + + def as_file(self, request: CalendarAsFileRequest) -> str: + """Converts calendar model to specified format and returns as file. + + :param request: Calendar model and format to convert. + :type request: CalendarAsFileRequest + :return: str + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `as_file`") + + collection_formats = {} + path = '/email/Calendar/as-file' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'file') + + def as_mapi(self, calendar_dto: CalendarDto) -> MapiCalendarDto: + """Converts CalendarDto to MapiCalendarDto. + + :param calendar_dto: iCalendar model calendar representation. + :type calendar_dto: CalendarDto + :return: MapiCalendarDto + """ + # verify the required parameter 'calendar_dto' is set + if calendar_dto is None: + raise ValueError("Missing the required parameter `calendar_dto` when calling `as_mapi`") + + collection_formats = {} + path = '/email/Calendar/as-mapi' + + header_params = {} + # 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']) + body_params = calendar_dto + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'MapiCalendarDto') + + def convert(self, request: CalendarConvertRequest) -> str: + """Converts calendar document to specified format and returns as file. + + + :param request: CalendarConvertRequest object with parameters + :type request: CalendarConvertRequest + :return: str + """ + # verify the required parameter 'format' is set + if request.format is None: + raise ValueError("Missing the required parameter `format` when calling `convert`") + # verify the required parameter 'file' is set + if request.file is None: + raise ValueError("Missing the required parameter `file` when calling `convert`") + + collection_formats = {} + path = '/email/Calendar/convert' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('format') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.format if request.format is not None else '') + else: + if request.format is not None: + query_params.append((self._lowercase_first_letter('format'), request.format)) + + form_params = [] + local_var_files = [] + if request.file is not None: + local_var_files.append((self._lowercase_first_letter('File'), request.file)) + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'file') + + def from_file(self, request: CalendarFromFileRequest) -> CalendarDto: + """Converts calendar document to a model representation. + + + :param request: CalendarFromFileRequest object with parameters + :type request: CalendarFromFileRequest + :return: CalendarDto + """ + # verify the required parameter 'file' is set + if request.file is None: + raise ValueError("Missing the required parameter `file` when calling `from_file`") + + collection_formats = {} + path = '/email/Calendar/from-file' + path_params = {} + + query_params = [] + + form_params = [] + local_var_files = [] + if request.file is not None: + local_var_files.append((self._lowercase_first_letter('File'), request.file)) + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'CalendarDto') + + def get(self, request: CalendarGetRequest) -> CalendarDto: + """Get calendar file from storage. + + + :param request: CalendarGetRequest object with parameters + :type request: CalendarGetRequest + :return: CalendarDto + """ + # verify the required parameter 'file_name' is set + if request.file_name is None: + raise ValueError("Missing the required parameter `file_name` when calling `get`") + + collection_formats = {} + path = '/email/Calendar' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('fileName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.file_name if request.file_name is not None else '') + else: + if request.file_name is not None: + query_params.append((self._lowercase_first_letter('fileName'), request.file_name)) + path_parameter = '{' + self._lowercase_first_letter('folder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.folder if request.folder is not None else '') + else: + if request.folder is not None: + query_params.append((self._lowercase_first_letter('folder'), request.folder)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'CalendarDto') + + def get_as_alternate(self, request: CalendarGetAsAlternateRequest) -> AlternateView: + """Get iCalendar from storage as AlternateView + + + :param request: CalendarGetAsAlternateRequest object with parameters + :type request: CalendarGetAsAlternateRequest + :return: AlternateView + """ + # verify the required parameter 'file_name' is set + if request.file_name is None: + raise ValueError("Missing the required parameter `file_name` when calling `get_as_alternate`") + # verify the required parameter 'calendar_action' is set + if request.calendar_action is None: + raise ValueError("Missing the required parameter `calendar_action` when calling `get_as_alternate`") + + collection_formats = {} + path = '/email/Calendar/as-alternate' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('fileName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.file_name if request.file_name is not None else '') + else: + if request.file_name is not None: + query_params.append((self._lowercase_first_letter('fileName'), request.file_name)) + path_parameter = '{' + self._lowercase_first_letter('calendarAction') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.calendar_action if request.calendar_action is not None else '') + else: + if request.calendar_action is not None: + query_params.append((self._lowercase_first_letter('calendarAction'), request.calendar_action)) + path_parameter = '{' + self._lowercase_first_letter('sequenceId') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.sequence_id if request.sequence_id is not None else '') + else: + if request.sequence_id is not None: + query_params.append((self._lowercase_first_letter('sequenceId'), request.sequence_id)) + path_parameter = '{' + self._lowercase_first_letter('folder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.folder if request.folder is not None else '') + else: + if request.folder is not None: + query_params.append((self._lowercase_first_letter('folder'), request.folder)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'AlternateView') + + def get_as_file(self, request: CalendarGetAsFileRequest) -> str: + """Converts calendar document from storage to specified format and returns as file. + + + :param request: CalendarGetAsFileRequest object with parameters + :type request: CalendarGetAsFileRequest + :return: str + """ + # verify the required parameter 'file_name' is set + if request.file_name is None: + raise ValueError("Missing the required parameter `file_name` when calling `get_as_file`") + # verify the required parameter 'format' is set + if request.format is None: + raise ValueError("Missing the required parameter `format` when calling `get_as_file`") + + collection_formats = {} + path = '/email/Calendar/as-file' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('fileName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.file_name if request.file_name is not None else '') + else: + if request.file_name is not None: + query_params.append((self._lowercase_first_letter('fileName'), request.file_name)) + path_parameter = '{' + self._lowercase_first_letter('format') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.format if request.format is not None else '') + else: + if request.format is not None: + query_params.append((self._lowercase_first_letter('format'), request.format)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + path_parameter = '{' + self._lowercase_first_letter('folder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.folder if request.folder is not None else '') + else: + if request.folder is not None: + query_params.append((self._lowercase_first_letter('folder'), request.folder)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'file') + + def get_list(self, request: CalendarGetListRequest) -> CalendarStorageList: + """Get iCalendar list from storage folder. + + + :param request: CalendarGetListRequest object with parameters + :type request: CalendarGetListRequest + :return: CalendarStorageList + """ + # verify the required parameter 'folder' is set + if request.folder is None: + raise ValueError("Missing the required parameter `folder` when calling `get_list`") + + collection_formats = {} + path = '/email/Calendar/list' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('folder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.folder if request.folder is not None else '') + else: + if request.folder is not None: + query_params.append((self._lowercase_first_letter('folder'), request.folder)) + path_parameter = '{' + self._lowercase_first_letter('itemsPerPage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.items_per_page if request.items_per_page is not None else '') + else: + if request.items_per_page is not None: + query_params.append((self._lowercase_first_letter('itemsPerPage'), request.items_per_page)) + path_parameter = '{' + self._lowercase_first_letter('pageNumber') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.page_number if request.page_number is not None else '') + else: + if request.page_number is not None: + query_params.append((self._lowercase_first_letter('pageNumber'), request.page_number)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'CalendarStorageList') + + def save(self, request: CalendarSaveRequest): + """Save iCalendar + + :param request: iCalendar create/update request + :type request: CalendarSaveRequest + :return: None + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `save`") + + collection_formats = {} + path = '/email/Calendar' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', None) diff --git a/sdk/AsposeEmailCloudSdk/api/client_account_api.py b/sdk/AsposeEmailCloudSdk/api/client_account_api.py new file mode 100644 index 0000000..cdd11fb --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/api/client_account_api.py @@ -0,0 +1,210 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from __future__ import absolute_import + +from AsposeEmailCloudSdk.api.api_base import ApiBase +from AsposeEmailCloudSdk.models import * + + +class ClientAccountApi(ApiBase): + """ + Aspose.Email Cloud API. ClientAccountApi operations. + + """ + + def __init__(self, api_client): + super(ClientAccountApi, self).__init__(api_client) + + def get(self, request: ClientAccountGetRequest) -> EmailClientAccount: + """Get email client account from storage. + + + :param request: ClientAccountGetRequest object with parameters + :type request: ClientAccountGetRequest + :return: EmailClientAccount + """ + # verify the required parameter 'file_name' is set + if request.file_name is None: + raise ValueError("Missing the required parameter `file_name` when calling `get`") + + collection_formats = {} + path = '/email/client/account' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('fileName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.file_name if request.file_name is not None else '') + else: + if request.file_name is not None: + query_params.append((self._lowercase_first_letter('fileName'), request.file_name)) + path_parameter = '{' + self._lowercase_first_letter('folder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.folder if request.folder is not None else '') + else: + if request.folder is not None: + query_params.append((self._lowercase_first_letter('folder'), request.folder)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'EmailClientAccount') + + def get_multi(self, request: ClientAccountGetMultiRequest) -> EmailClientMultiAccount: + """Get email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\". + + + :param request: ClientAccountGetMultiRequest object with parameters + :type request: ClientAccountGetMultiRequest + :return: EmailClientMultiAccount + """ + # verify the required parameter 'file_name' is set + if request.file_name is None: + raise ValueError("Missing the required parameter `file_name` when calling `get_multi`") + + collection_formats = {} + path = '/email/client/account/multi' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('fileName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.file_name if request.file_name is not None else '') + else: + if request.file_name is not None: + query_params.append((self._lowercase_first_letter('fileName'), request.file_name)) + path_parameter = '{' + self._lowercase_first_letter('folder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.folder if request.folder is not None else '') + else: + if request.folder is not None: + query_params.append((self._lowercase_first_letter('folder'), request.folder)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'EmailClientMultiAccount') + + def save(self, request: ClientAccountSaveRequest): + """Create/update email client account file (*.account) with credentials + + :param request: Email account information + :type request: ClientAccountSaveRequest + :return: None + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `save`") + + collection_formats = {} + path = '/email/client/account' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', None) + + def save_multi(self, request: ClientAccountSaveMultiRequest): + """Create email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\". + + :param request: Email accounts information. + :type request: ClientAccountSaveMultiRequest + :return: None + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `save_multi`") + + collection_formats = {} + path = '/email/client/account/multi' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', None) diff --git a/sdk/AsposeEmailCloudSdk/api/client_folder_api.py b/sdk/AsposeEmailCloudSdk/api/client_folder_api.py new file mode 100644 index 0000000..ea881cd --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/api/client_folder_api.py @@ -0,0 +1,160 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from __future__ import absolute_import + +from AsposeEmailCloudSdk.api.api_base import ApiBase +from AsposeEmailCloudSdk.models import * + + +class ClientFolderApi(ApiBase): + """ + Aspose.Email Cloud API. ClientFolderApi operations. + + """ + + def __init__(self, api_client): + super(ClientFolderApi, self).__init__(api_client) + + def create(self, request: ClientFolderCreateRequest): + """Create new folder in email account + + :param request: Create folder request + :type request: ClientFolderCreateRequest + :return: None + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `create`") + + collection_formats = {} + path = '/email/client/folder' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', None) + + def delete(self, request: ClientFolderDeleteRequest): + """Delete a folder in email account + + :param request: Delete folder request + :type request: ClientFolderDeleteRequest + :return: None + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `delete`") + + collection_formats = {} + path = '/email/client/folder' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'DELETE', None) + + def get_list(self, request: ClientFolderGetListRequest) -> MailServerFolderList: + """Get folders list in email account + + + :param request: ClientFolderGetListRequest object with parameters + :type request: ClientFolderGetListRequest + :return: MailServerFolderList + """ + # verify the required parameter 'account' is set + if request.account is None: + raise ValueError("Missing the required parameter `account` when calling `get_list`") + + collection_formats = {} + path = '/email/client/folder/list' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('account') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.account if request.account is not None else '') + else: + if request.account is not None: + query_params.append((self._lowercase_first_letter('account'), request.account)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + path_parameter = '{' + self._lowercase_first_letter('accountStorageFolder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.account_storage_folder if request.account_storage_folder is not None else '') + else: + if request.account_storage_folder is not None: + query_params.append((self._lowercase_first_letter('accountStorageFolder'), request.account_storage_folder)) + path_parameter = '{' + self._lowercase_first_letter('parentFolder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.parent_folder if request.parent_folder is not None else '') + else: + if request.parent_folder is not None: + query_params.append((self._lowercase_first_letter('parentFolder'), request.parent_folder)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'MailServerFolderList') diff --git a/sdk/AsposeEmailCloudSdk/api/client_group.py b/sdk/AsposeEmailCloudSdk/api/client_group.py new file mode 100644 index 0000000..4cb5bf8 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/api/client_group.py @@ -0,0 +1,73 @@ + +# 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. +# +# ---------------------------------------------------------------------------- + +from __future__ import absolute_import +from AsposeEmailCloudSdk.api import * + +class ClientGroup(object): + """ + Builtin Email client operations. + """ + def __init__(self, api_client): + + self._account = ClientAccountApi(api_client) + + self._folder = ClientFolderApi(api_client) + + self._message = ClientMessageApi(api_client) + + self._thread = ClientThreadApi(api_client) + + + @property + def account(self) -> ClientAccountApi: + """ + Email server account for built-in client operations. + """ + return self._account + + @property + def folder(self) -> ClientFolderApi: + """ + Email client folder operations. + """ + return self._folder + + @property + def message(self) -> ClientMessageApi: + """ + Email client message operations. + """ + return self._message + + @property + def thread(self) -> ClientThreadApi: + """ + Email client thread operations. + """ + return self._thread + diff --git a/sdk/AsposeEmailCloudSdk/api/client_message_api.py b/sdk/AsposeEmailCloudSdk/api/client_message_api.py new file mode 100644 index 0000000..98ddd73 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/api/client_message_api.py @@ -0,0 +1,581 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from __future__ import absolute_import + +from AsposeEmailCloudSdk.api.api_base import ApiBase +from AsposeEmailCloudSdk.models import * + + +class ClientMessageApi(ApiBase): + """ + Aspose.Email Cloud API. ClientMessageApi operations. + + """ + + def __init__(self, api_client): + super(ClientMessageApi, self).__init__(api_client) + + def append(self, request: ClientMessageAppendRequest) -> ValueTOfString: + """Add email message to specified folder in email account. + + :param request: Append email request. + :type request: ClientMessageAppendRequest + :return: ValueTOfString + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `append`") + + collection_formats = {} + path = '/email/client/message/append' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'POST', 'ValueTOfString') + + def append_file(self, request: ClientMessageAppendFileRequest) -> ValueTOfString: + """Add email message from file to specified folder in email account. + + + :param request: ClientMessageAppendFileRequest object with parameters + :type request: ClientMessageAppendFileRequest + :return: ValueTOfString + """ + # verify the required parameter 'account' is set + if request.account is None: + raise ValueError("Missing the required parameter `account` when calling `append_file`") + # verify the required parameter 'file' is set + if request.file is None: + raise ValueError("Missing the required parameter `file` when calling `append_file`") + + collection_formats = {} + path = '/email/client/message/file/append' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('account') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.account if request.account is not None else '') + else: + if request.account is not None: + query_params.append((self._lowercase_first_letter('account'), request.account)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + path_parameter = '{' + self._lowercase_first_letter('accountStorageFolder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.account_storage_folder if request.account_storage_folder is not None else '') + else: + if request.account_storage_folder is not None: + query_params.append((self._lowercase_first_letter('accountStorageFolder'), request.account_storage_folder)) + path_parameter = '{' + self._lowercase_first_letter('format') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.format if request.format is not None else '') + else: + if request.format is not None: + query_params.append((self._lowercase_first_letter('format'), request.format)) + path_parameter = '{' + self._lowercase_first_letter('folder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.folder if request.folder is not None else '') + else: + if request.folder is not None: + query_params.append((self._lowercase_first_letter('folder'), request.folder)) + path_parameter = '{' + self._lowercase_first_letter('markAsSent') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.mark_as_sent if request.mark_as_sent is not None else '') + else: + if request.mark_as_sent is not None: + query_params.append((self._lowercase_first_letter('markAsSent'), request.mark_as_sent)) + + form_params = [] + local_var_files = [] + if request.file is not None: + local_var_files.append((self._lowercase_first_letter('File'), request.file)) + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'POST', 'ValueTOfString') + + def delete(self, request: ClientMessageDeleteRequest): + """Delete message. + + :param request: Delete message request. + :type request: ClientMessageDeleteRequest + :return: None + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `delete`") + + collection_formats = {} + path = '/email/client/message' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'DELETE', None) + + def fetch(self, request: ClientMessageFetchRequest) -> MailMessageBase: + """Fetch message from email account + + + :param request: ClientMessageFetchRequest object with parameters + :type request: ClientMessageFetchRequest + :return: MailMessageBase + """ + # verify the required parameter 'message_id' is set + if request.message_id is None: + raise ValueError("Missing the required parameter `message_id` when calling `fetch`") + # verify the required parameter 'account' is set + if request.account is None: + raise ValueError("Missing the required parameter `account` when calling `fetch`") + + collection_formats = {} + path = '/email/client/message' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('messageId') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.message_id if request.message_id is not None else '') + else: + if request.message_id is not None: + query_params.append((self._lowercase_first_letter('messageId'), request.message_id)) + path_parameter = '{' + self._lowercase_first_letter('account') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.account if request.account is not None else '') + else: + if request.account is not None: + query_params.append((self._lowercase_first_letter('account'), request.account)) + path_parameter = '{' + self._lowercase_first_letter('folder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.folder if request.folder is not None else '') + else: + if request.folder is not None: + query_params.append((self._lowercase_first_letter('folder'), request.folder)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + path_parameter = '{' + self._lowercase_first_letter('accountStorageFolder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.account_storage_folder if request.account_storage_folder is not None else '') + else: + if request.account_storage_folder is not None: + query_params.append((self._lowercase_first_letter('accountStorageFolder'), request.account_storage_folder)) + path_parameter = '{' + self._lowercase_first_letter('type') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.type if request.type is not None else '') + else: + if request.type is not None: + query_params.append((self._lowercase_first_letter('type'), request.type)) + path_parameter = '{' + self._lowercase_first_letter('format') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.format if request.format is not None else '') + else: + if request.format is not None: + query_params.append((self._lowercase_first_letter('format'), request.format)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'MailMessageBase') + + def fetch_file(self, request: ClientMessageFetchFileRequest) -> str: + """Fetch message as file from email account + + + :param request: ClientMessageFetchFileRequest object with parameters + :type request: ClientMessageFetchFileRequest + :return: str + """ + # verify the required parameter 'message_id' is set + if request.message_id is None: + raise ValueError("Missing the required parameter `message_id` when calling `fetch_file`") + # verify the required parameter 'account' is set + if request.account is None: + raise ValueError("Missing the required parameter `account` when calling `fetch_file`") + + collection_formats = {} + path = '/email/client/message/file' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('messageId') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.message_id if request.message_id is not None else '') + else: + if request.message_id is not None: + query_params.append((self._lowercase_first_letter('messageId'), request.message_id)) + path_parameter = '{' + self._lowercase_first_letter('account') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.account if request.account is not None else '') + else: + if request.account is not None: + query_params.append((self._lowercase_first_letter('account'), request.account)) + path_parameter = '{' + self._lowercase_first_letter('folder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.folder if request.folder is not None else '') + else: + if request.folder is not None: + query_params.append((self._lowercase_first_letter('folder'), request.folder)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + path_parameter = '{' + self._lowercase_first_letter('accountStorageFolder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.account_storage_folder if request.account_storage_folder is not None else '') + else: + if request.account_storage_folder is not None: + query_params.append((self._lowercase_first_letter('accountStorageFolder'), request.account_storage_folder)) + path_parameter = '{' + self._lowercase_first_letter('format') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.format if request.format is not None else '') + else: + if request.format is not None: + query_params.append((self._lowercase_first_letter('format'), request.format)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'file') + + def list(self, request: ClientMessageListRequest) -> MailMessageBaseList: + """Get messages from folder, filtered by query + + The query string should have the following view. The example of a simple expression: '' '', where <Field Name> - the name of a message field through which filtering is made, <Comparison operator> - comparison operators, as their name implies, allow to compare message field and specified value, <Field value> - value to be compared with a message field. The number of simple expressions can make a compound one, ex.: ( & ) | , where \"&\" - logical-AND operator, \"|\" - logical-OR operator At present the following values are allowed as a field name (): \"To\" - represents a TO field of message, \"Text\" - represents string in the header or body of the message, \"Bcc\" - represents a BCC field of message, \"Body\" - represents a string in the body of message, \"Cc\" - represents a CC field of message, \"From\" - represents a From field of message, \"Subject\" - represents a string in the subject of message, \"InternalDate\" - represents an internal date of message, \"SentDate\" - represents a sent date of message Additionally, the following field names are allowed for IMAP-protocol: \"Answered\" - represents an /Answered flag of message \"Seen\" - represents a /Seen flag of message \"Flagged\" - represents a /Flagged flag of message \"Draft\" - represents a /Draft flag of message \"Deleted\" - represents a Deleted/ flag of message \"Recent\" - represents a Deleted/ flag of message \"MessageSize\" - represents a size (in bytes) of message Additionally, the following field names are allowed for Exchange: \"IsRead\" - Indicates whether the message has been read \"HasAttachment\" - Indicates whether or not the message has attachments \"IsSubmitted\" - Indicates whether the message has been submitted to the Outbox \"ContentClass\" - represents a content class of item Additionally, the following field names are allowed for pst/ost files: \"MessageClass\" - Represents a message class \"ContainerClass\" - Represents a folder container class \"Importance\" - Represents a message importance \"MessageSize\" - represents a size (in bytes) of message \"FolderName\" - represents a folder name \"ContentsCount\" - represents a total number of items in the folder \"UnreadContentsCount\" - represents the number of unread items in the folder. \"Subfolders\" - Indicates whether or not the folder has subfolders \"Read\" - the message is marked as having been read \"HasAttachment\" - the message has at least one attachment \"Unsent\" - the message is still being composed \"Unmodified\" - the message has not been modified since it was first saved (if unsent) or it was delivered (if sent) \"FromMe\" - the user receiving the message was also the user who sent the message \"Resend\" - the message includes a request for a resend operation with a non-delivery report \"NotifyRead\" - the user who sent the message has requested notification when a recipient first reads it \"NotifyUnread\" - the user who sent the message has requested notification when a recipient deletes it before reading or the Message object expires \"EverRead\" - the message has been read at least once The field value () can take the following values: For text fields - any string, For date type fields - the string of \"d-MMM-yyy\" format, ex. \"10-Feb-2009\", For flags (fields of boolean type) - either \"True\", or \"False\" + + :param request: ClientMessageListRequest object with parameters + :type request: ClientMessageListRequest + :return: MailMessageBaseList + """ + # verify the required parameter 'folder' is set + if request.folder is None: + raise ValueError("Missing the required parameter `folder` when calling `list`") + # verify the required parameter 'account' is set + if request.account is None: + raise ValueError("Missing the required parameter `account` when calling `list`") + + collection_formats = {} + path = '/email/client/message/list' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('folder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.folder if request.folder is not None else '') + else: + if request.folder is not None: + query_params.append((self._lowercase_first_letter('folder'), request.folder)) + path_parameter = '{' + self._lowercase_first_letter('account') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.account if request.account is not None else '') + else: + if request.account is not None: + query_params.append((self._lowercase_first_letter('account'), request.account)) + path_parameter = '{' + self._lowercase_first_letter('queryString') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.query_string if request.query_string is not None else '') + else: + if request.query_string is not None: + query_params.append((self._lowercase_first_letter('queryString'), request.query_string)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + path_parameter = '{' + self._lowercase_first_letter('accountStorageFolder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.account_storage_folder if request.account_storage_folder is not None else '') + else: + if request.account_storage_folder is not None: + query_params.append((self._lowercase_first_letter('accountStorageFolder'), request.account_storage_folder)) + path_parameter = '{' + self._lowercase_first_letter('recursive') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.recursive if request.recursive is not None else '') + else: + if request.recursive is not None: + query_params.append((self._lowercase_first_letter('recursive'), request.recursive)) + path_parameter = '{' + self._lowercase_first_letter('type') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.type if request.type is not None else '') + else: + if request.type is not None: + query_params.append((self._lowercase_first_letter('type'), request.type)) + path_parameter = '{' + self._lowercase_first_letter('format') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.format if request.format is not None else '') + else: + if request.format is not None: + query_params.append((self._lowercase_first_letter('format'), request.format)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'MailMessageBaseList') + + def move(self, request: ClientMessageMoveRequest): + """Move message to another folder. + + :param request: Move message request. + :type request: ClientMessageMoveRequest + :return: None + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `move`") + + collection_formats = {} + path = '/email/client/message/move' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', None) + + def send(self, request: ClientMessageSendRequest): + """Send an email specified by model in request. + + :param request: Send email request. + :type request: ClientMessageSendRequest + :return: None + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `send`") + + collection_formats = {} + path = '/email/client/message' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'POST', None) + + def send_file(self, request: ClientMessageSendFileRequest): + """Send an email file. + + + :param request: ClientMessageSendFileRequest object with parameters + :type request: ClientMessageSendFileRequest + :return: None + """ + # verify the required parameter 'account' is set + if request.account is None: + raise ValueError("Missing the required parameter `account` when calling `send_file`") + # verify the required parameter 'file' is set + if request.file is None: + raise ValueError("Missing the required parameter `file` when calling `send_file`") + + collection_formats = {} + path = '/email/client/message/file' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('account') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.account if request.account is not None else '') + else: + if request.account is not None: + query_params.append((self._lowercase_first_letter('account'), request.account)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + path_parameter = '{' + self._lowercase_first_letter('accountStorageFolder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.account_storage_folder if request.account_storage_folder is not None else '') + else: + if request.account_storage_folder is not None: + query_params.append((self._lowercase_first_letter('accountStorageFolder'), request.account_storage_folder)) + path_parameter = '{' + self._lowercase_first_letter('format') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.format if request.format is not None else '') + else: + if request.format is not None: + query_params.append((self._lowercase_first_letter('format'), request.format)) + + form_params = [] + local_var_files = [] + if request.file is not None: + local_var_files.append((self._lowercase_first_letter('File'), request.file)) + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'POST', None) + + def set_is_read(self, request: ClientMessageSetIsReadRequest): + """Mark message as read or unread. + + :param request: Delete message request. + :type request: ClientMessageSetIsReadRequest + :return: None + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `set_is_read`") + + collection_formats = {} + path = '/email/client/message/set-is-read' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', None) diff --git a/sdk/AsposeEmailCloudSdk/api/client_thread_api.py b/sdk/AsposeEmailCloudSdk/api/client_thread_api.py new file mode 100644 index 0000000..29ada7c --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/api/client_thread_api.py @@ -0,0 +1,275 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from __future__ import absolute_import + +from AsposeEmailCloudSdk.api.api_base import ApiBase +from AsposeEmailCloudSdk.models import * + + +class ClientThreadApi(ApiBase): + """ + Aspose.Email Cloud API. ClientThreadApi operations. + + """ + + def __init__(self, api_client): + super(ClientThreadApi, self).__init__(api_client) + + def delete(self, request: ClientThreadDeleteRequest): + """Delete thread by id. All messages from thread will also be deleted. + + :param request: Delete email thread request. + :type request: ClientThreadDeleteRequest + :return: None + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `delete`") + + collection_formats = {} + path = '/email/client/thread' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'DELETE', None) + + def get_list(self, request: ClientThreadGetListRequest) -> EmailThreadList: + """Get message threads from folder. All messages are partly fetched (without email body and some other fields). + + + :param request: ClientThreadGetListRequest object with parameters + :type request: ClientThreadGetListRequest + :return: EmailThreadList + """ + # verify the required parameter 'folder' is set + if request.folder is None: + raise ValueError("Missing the required parameter `folder` when calling `get_list`") + # verify the required parameter 'account' is set + if request.account is None: + raise ValueError("Missing the required parameter `account` when calling `get_list`") + + collection_formats = {} + path = '/email/client/thread/list' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('folder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.folder if request.folder is not None else '') + else: + if request.folder is not None: + query_params.append((self._lowercase_first_letter('folder'), request.folder)) + path_parameter = '{' + self._lowercase_first_letter('account') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.account if request.account is not None else '') + else: + if request.account is not None: + query_params.append((self._lowercase_first_letter('account'), request.account)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + path_parameter = '{' + self._lowercase_first_letter('accountStorageFolder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.account_storage_folder if request.account_storage_folder is not None else '') + else: + if request.account_storage_folder is not None: + query_params.append((self._lowercase_first_letter('accountStorageFolder'), request.account_storage_folder)) + path_parameter = '{' + self._lowercase_first_letter('updateFolderCache') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.update_folder_cache if request.update_folder_cache is not None else '') + else: + if request.update_folder_cache is not None: + query_params.append((self._lowercase_first_letter('updateFolderCache'), request.update_folder_cache)) + path_parameter = '{' + self._lowercase_first_letter('messagesCacheLimit') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.messages_cache_limit if request.messages_cache_limit is not None else '') + else: + if request.messages_cache_limit is not None: + query_params.append((self._lowercase_first_letter('messagesCacheLimit'), request.messages_cache_limit)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'EmailThreadList') + + def get_messages(self, request: ClientThreadGetMessagesRequest) -> EmailList: + """Get messages from thread by id. All messages are fully fetched. For accounts with CacheFile only cached messages will be returned. + + + :param request: ClientThreadGetMessagesRequest object with parameters + :type request: ClientThreadGetMessagesRequest + :return: EmailList + """ + # verify the required parameter 'thread_id' is set + if request.thread_id is None: + raise ValueError("Missing the required parameter `thread_id` when calling `get_messages`") + # verify the required parameter 'account' is set + if request.account is None: + raise ValueError("Missing the required parameter `account` when calling `get_messages`") + + collection_formats = {} + path = '/email/client/thread/messages' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('threadId') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.thread_id if request.thread_id is not None else '') + else: + if request.thread_id is not None: + query_params.append((self._lowercase_first_letter('threadId'), request.thread_id)) + path_parameter = '{' + self._lowercase_first_letter('account') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.account if request.account is not None else '') + else: + if request.account is not None: + query_params.append((self._lowercase_first_letter('account'), request.account)) + path_parameter = '{' + self._lowercase_first_letter('folder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.folder if request.folder is not None else '') + else: + if request.folder is not None: + query_params.append((self._lowercase_first_letter('folder'), request.folder)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + path_parameter = '{' + self._lowercase_first_letter('accountStorageFolder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.account_storage_folder if request.account_storage_folder is not None else '') + else: + if request.account_storage_folder is not None: + query_params.append((self._lowercase_first_letter('accountStorageFolder'), request.account_storage_folder)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'EmailList') + + def move(self, request: ClientThreadMoveRequest): + """Move thread to another folder. + + :param request: Move thread request. + :type request: ClientThreadMoveRequest + :return: None + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `move`") + + collection_formats = {} + path = '/email/client/thread/move' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', None) + + def set_is_read(self, request: ClientThreadSetIsReadRequest): + """Mark all messages in thread as read or unread. + + :param request: Email account specifier and IsRead flag. + :type request: ClientThreadSetIsReadRequest + :return: None + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `set_is_read`") + + collection_formats = {} + path = '/email/client/thread/set-is-read' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', None) diff --git a/sdk/AsposeEmailCloudSdk/api/cloud_storage_group.py b/sdk/AsposeEmailCloudSdk/api/cloud_storage_group.py new file mode 100644 index 0000000..9cde578 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/api/cloud_storage_group.py @@ -0,0 +1,64 @@ + +# 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. +# +# ---------------------------------------------------------------------------- + +from __future__ import absolute_import +from AsposeEmailCloudSdk.api import * + +class CloudStorageGroup(object): + """ + Cloud file storage operations. + """ + def __init__(self, api_client): + + self._file = FileApi(api_client) + + self._folder = FolderApi(api_client) + + self._storage = StorageApi(api_client) + + + @property + def file(self) -> FileApi: + """ + File operations controller + """ + return self._file + + @property + def folder(self) -> FolderApi: + """ + Folder operations controller + """ + return self._folder + + @property + def storage(self) -> StorageApi: + """ + Storage operations controller + """ + return self._storage + diff --git a/sdk/AsposeEmailCloudSdk/api/contact_api.py b/sdk/AsposeEmailCloudSdk/api/contact_api.py new file mode 100644 index 0000000..eed2a5e --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/api/contact_api.py @@ -0,0 +1,441 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from __future__ import absolute_import + +from AsposeEmailCloudSdk.api.api_base import ApiBase +from AsposeEmailCloudSdk.models import * + + +class ContactApi(ApiBase): + """ + Aspose.Email Cloud API. ContactApi operations. + + """ + + def __init__(self, api_client): + super(ContactApi, self).__init__(api_client) + + def as_file(self, request: ContactAsFileRequest) -> str: + """Converts contact model to specified format and returns as file + + :param request: Contact model and format to convert + :type request: ContactAsFileRequest + :return: str + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `as_file`") + + collection_formats = {} + path = '/email/Contact/as-file' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'file') + + def as_mapi(self, contact_dto: ContactDto) -> MapiContactDto: + """Converts ContactDto to MapiContactDto. + + :param contact_dto: Contact model to convert + :type contact_dto: ContactDto + :return: MapiContactDto + """ + # verify the required parameter 'contact_dto' is set + if contact_dto is None: + raise ValueError("Missing the required parameter `contact_dto` when calling `as_mapi`") + + collection_formats = {} + path = '/email/Contact/as-mapi' + + header_params = {} + # 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']) + body_params = contact_dto + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'MapiContactDto') + + def convert(self, request: ContactConvertRequest) -> str: + """Converts contact document to specified format and returns as file + + + :param request: ContactConvertRequest object with parameters + :type request: ContactConvertRequest + :return: str + """ + # verify the required parameter 'to_format' is set + if request.to_format is None: + raise ValueError("Missing the required parameter `to_format` when calling `convert`") + # verify the required parameter 'from_format' is set + if request.from_format is None: + raise ValueError("Missing the required parameter `from_format` when calling `convert`") + # verify the required parameter 'file' is set + if request.file is None: + raise ValueError("Missing the required parameter `file` when calling `convert`") + + collection_formats = {} + path = '/email/Contact/convert' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('toFormat') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.to_format if request.to_format is not None else '') + else: + if request.to_format is not None: + query_params.append((self._lowercase_first_letter('toFormat'), request.to_format)) + path_parameter = '{' + self._lowercase_first_letter('fromFormat') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.from_format if request.from_format is not None else '') + else: + if request.from_format is not None: + query_params.append((self._lowercase_first_letter('fromFormat'), request.from_format)) + + form_params = [] + local_var_files = [] + if request.file is not None: + local_var_files.append((self._lowercase_first_letter('File'), request.file)) + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'file') + + def from_file(self, request: ContactFromFileRequest) -> ContactDto: + """Converts contact document to a model representation + + + :param request: ContactFromFileRequest object with parameters + :type request: ContactFromFileRequest + :return: ContactDto + """ + # verify the required parameter 'format' is set + if request.format is None: + raise ValueError("Missing the required parameter `format` when calling `from_file`") + # verify the required parameter 'file' is set + if request.file is None: + raise ValueError("Missing the required parameter `file` when calling `from_file`") + + collection_formats = {} + path = '/email/Contact/from-file' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('format') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.format if request.format is not None else '') + else: + if request.format is not None: + query_params.append((self._lowercase_first_letter('format'), request.format)) + + form_params = [] + local_var_files = [] + if request.file is not None: + local_var_files.append((self._lowercase_first_letter('File'), request.file)) + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'ContactDto') + + def get(self, request: ContactGetRequest) -> ContactDto: + """Get contact document from storage. + + + :param request: ContactGetRequest object with parameters + :type request: ContactGetRequest + :return: ContactDto + """ + # verify the required parameter 'format' is set + if request.format is None: + raise ValueError("Missing the required parameter `format` when calling `get`") + # verify the required parameter 'file_name' is set + if request.file_name is None: + raise ValueError("Missing the required parameter `file_name` when calling `get`") + + collection_formats = {} + path = '/email/Contact' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('format') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.format if request.format is not None else '') + else: + if request.format is not None: + query_params.append((self._lowercase_first_letter('format'), request.format)) + path_parameter = '{' + self._lowercase_first_letter('fileName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.file_name if request.file_name is not None else '') + else: + if request.file_name is not None: + query_params.append((self._lowercase_first_letter('fileName'), request.file_name)) + path_parameter = '{' + self._lowercase_first_letter('folder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.folder if request.folder is not None else '') + else: + if request.folder is not None: + query_params.append((self._lowercase_first_letter('folder'), request.folder)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'ContactDto') + + def get_as_file(self, request: ContactGetAsFileRequest) -> str: + """Converts contact document from storage to specified format and returns as file + + + :param request: ContactGetAsFileRequest object with parameters + :type request: ContactGetAsFileRequest + :return: str + """ + # verify the required parameter 'file_name' is set + if request.file_name is None: + raise ValueError("Missing the required parameter `file_name` when calling `get_as_file`") + # verify the required parameter 'to_format' is set + if request.to_format is None: + raise ValueError("Missing the required parameter `to_format` when calling `get_as_file`") + # verify the required parameter 'from_format' is set + if request.from_format is None: + raise ValueError("Missing the required parameter `from_format` when calling `get_as_file`") + + collection_formats = {} + path = '/email/Contact/as-file' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('fileName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.file_name if request.file_name is not None else '') + else: + if request.file_name is not None: + query_params.append((self._lowercase_first_letter('fileName'), request.file_name)) + path_parameter = '{' + self._lowercase_first_letter('toFormat') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.to_format if request.to_format is not None else '') + else: + if request.to_format is not None: + query_params.append((self._lowercase_first_letter('toFormat'), request.to_format)) + path_parameter = '{' + self._lowercase_first_letter('fromFormat') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.from_format if request.from_format is not None else '') + else: + if request.from_format is not None: + query_params.append((self._lowercase_first_letter('fromFormat'), request.from_format)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + path_parameter = '{' + self._lowercase_first_letter('folder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.folder if request.folder is not None else '') + else: + if request.folder is not None: + query_params.append((self._lowercase_first_letter('folder'), request.folder)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'file') + + def get_list(self, request: ContactGetListRequest) -> ContactStorageList: + """Get contact list from storage folder. + + + :param request: ContactGetListRequest object with parameters + :type request: ContactGetListRequest + :return: ContactStorageList + """ + # verify the required parameter 'format' is set + if request.format is None: + raise ValueError("Missing the required parameter `format` when calling `get_list`") + + collection_formats = {} + path = '/email/Contact/list' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('format') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.format if request.format is not None else '') + else: + if request.format is not None: + query_params.append((self._lowercase_first_letter('format'), request.format)) + path_parameter = '{' + self._lowercase_first_letter('folder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.folder if request.folder is not None else '') + else: + if request.folder is not None: + query_params.append((self._lowercase_first_letter('folder'), request.folder)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + path_parameter = '{' + self._lowercase_first_letter('itemsPerPage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.items_per_page if request.items_per_page is not None else '') + else: + if request.items_per_page is not None: + query_params.append((self._lowercase_first_letter('itemsPerPage'), request.items_per_page)) + path_parameter = '{' + self._lowercase_first_letter('pageNumber') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.page_number if request.page_number is not None else '') + else: + if request.page_number is not None: + query_params.append((self._lowercase_first_letter('pageNumber'), request.page_number)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'ContactStorageList') + + def save(self, request: ContactSaveRequest): + """Save contact to storage. + + :param request: Create/Update contact request. + :type request: ContactSaveRequest + :return: None + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `save`") + + collection_formats = {} + path = '/email/Contact' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', None) diff --git a/sdk/AsposeEmailCloudSdk/models/requests/get_disc_usage_request.py b/sdk/AsposeEmailCloudSdk/api/disposable_email_api.py similarity index 57% rename from sdk/AsposeEmailCloudSdk/models/requests/get_disc_usage_request.py rename to sdk/AsposeEmailCloudSdk/api/disposable_email_api.py index 168ab74..ec509b2 100644 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_disc_usage_request.py +++ b/sdk/AsposeEmailCloudSdk/api/disposable_email_api.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -23,61 +23,50 @@ # DEALINGS IN THE SOFTWARE. # # ---------------------------------------------------------------------------- -##for __init__.py:from AsposeEmailCloudSdk.models.requests.get_disc_usage_request import GetDiscUsageRequest -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest +from __future__ import absolute_import + +from AsposeEmailCloudSdk.api.api_base import ApiBase from AsposeEmailCloudSdk.models import * -class GetDiscUsageRequest(BaseRequest): +class DisposableEmailApi(ApiBase): """ - Request model for get_disc_usage operation. - Initializes a new instance. + Aspose.Email Cloud API. DisposableEmailApi operations. - :param storage_name (str) """ - def __init__(self, storage_name: str = None): - """ - Request model for get_disc_usage operation. - Initializes a new instance. - - :param storage_name (str) - """ - - BaseRequest.__init__(self) - self.storage_name = storage_name + def __init__(self, api_client): + super(DisposableEmailApi, self).__init__(api_client) + + def is_disposable(self, request: DisposableEmailIsDisposableRequest) -> ValueTOfBoolean: + """Check email address is disposable - 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 + :param request: DisposableEmailIsDisposableRequest object with parameters + :type request: DisposableEmailIsDisposableRequest + :return: ValueTOfBoolean """ + # verify the required parameter 'address' is set + if request.address is None: + raise ValueError("Missing the required parameter `address` when calling `is_disposable`") collection_formats = {} - path = '/email/storage/disc' + path = '/email/disposable/is-disposable' path_params = {} query_params = [] - path_parameter = '{' + self._lowercase_first_letter('storageName') + '}' + path_parameter = '{' + self._lowercase_first_letter('address') + '}' if path_parameter in path: - path = path.replace(path_parameter, self.storage_name if self.storage_name is not None else '') + path = path.replace(path_parameter, request.address if request.address is not None else '') else: - if self.storage_name is not None: - query_params.append((self._lowercase_first_letter('storageName'), self.storage_name)) - - header_params = {} + if request.address is not None: + query_params.append((self._lowercase_first_letter('address'), request.address)) form_params = [] local_var_files = [] - body_params = None - + header_params = {} # HTTP header `Accept` header_params['Accept'] = self._select_header_accept( ['application/json']) @@ -89,5 +78,7 @@ def to_http_info(self, config): # 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) + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'ValueTOfBoolean') diff --git a/sdk/AsposeEmailCloudSdk/api/email_api.py b/sdk/AsposeEmailCloudSdk/api/email_api.py index 586e3af..0071ea5 100644 --- a/sdk/AsposeEmailCloudSdk/api/email_api.py +++ b/sdk/AsposeEmailCloudSdk/api/email_api.py @@ -26,2760 +26,407 @@ from __future__ import absolute_import -import six - -from AsposeEmailCloudSdk.api_client import ApiClient -from AsposeEmailCloudSdk.configuration import Configuration -from AsposeEmailCloudSdk.rest import ApiException +from AsposeEmailCloudSdk.api.api_base import ApiBase from AsposeEmailCloudSdk.models import * -from AsposeEmailCloudSdk.models import requests -import multiprocessing -class EmailApi(object): +class EmailApi(ApiBase): """ - Aspose.Email Cloud API + Aspose.Email Cloud API. EmailApi operations. """ - def __init__(self, app_key=None, app_sid=None, base_url=None, - api_version=None, debug=False): - """ - Initializes a new instance of the EmailApi class. - - :param app_key: The app key. - :param app_sid: The app sid. - :param base_url: The base URL. - :param api_version: API version. - :param debug: If debug mode is enabled. False by default. - :param on_premise: - True for on-premise solution with metered license usage. - False for Aspose Cloud-hosted solution usage, default. - """ - configuration = Configuration(app_key=app_key, - app_sid=app_sid, - base_url=base_url, - api_version=api_version, - debug=debug) - self.api_client = ApiClient(configuration) - - def add_calendar_attachment(self, request: requests.AddCalendarAttachmentRequest) : - """Adds an attachment to iCalendar file - - - :param request AddCalendarAttachmentRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', None) - - def add_calendar_attachment_async(self, request: requests.AddCalendarAttachmentRequest) -> multiprocessing.pool.AsyncResult: - """Adds an attachment to iCalendar file - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AddCalendarAttachmentRequest 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 add_contact_attachment(self, request: requests.AddContactAttachmentRequest) : - """Add attachment to contact document - - - :param request AddContactAttachmentRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', None) - - def add_contact_attachment_async(self, request: requests.AddContactAttachmentRequest) -> multiprocessing.pool.AsyncResult: - """Add attachment to contact document - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AddContactAttachmentRequest 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 add_email_attachment(self, request: requests.AddEmailAttachmentRequest) -> EmailDocumentResponse: - """Adds an attachment to Email document - - - :param request AddEmailAttachmentRequest object with parameters - :return: EmailDocumentResponse - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'POST', 'EmailDocumentResponse') - - def add_email_attachment_async(self, request: requests.AddEmailAttachmentRequest) -> multiprocessing.pool.AsyncResult: - """Adds an attachment to Email document - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AddEmailAttachmentRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns EmailDocumentResponse) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'POST', 'EmailDocumentResponse') - - def add_mapi_attachment(self, request: requests.AddMapiAttachmentRequest) : - """Add attachment to document - - - :param request AddMapiAttachmentRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', None) - - def add_mapi_attachment_async(self, request: requests.AddMapiAttachmentRequest) -> multiprocessing.pool.AsyncResult: - """Add attachment to document - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AddMapiAttachmentRequest 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 ai_bcr_ocr(self, request: requests.AiBcrOcrRequest) -> ListResponseOfAiBcrOcrData: - """Ocr images - - - :param request AiBcrOcrRequest object with parameters - :return: ListResponseOfAiBcrOcrData - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'POST', 'ListResponseOfAiBcrOcrData') - - def ai_bcr_ocr_async(self, request: requests.AiBcrOcrRequest) -> multiprocessing.pool.AsyncResult: - """Ocr images - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AiBcrOcrRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ListResponseOfAiBcrOcrData) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'POST', 'ListResponseOfAiBcrOcrData') - - def ai_bcr_ocr_storage(self, request: requests.AiBcrOcrStorageRequest) -> ListResponseOfAiBcrOcrData: - """Ocr images from storage - - - :param request AiBcrOcrStorageRequest object with parameters - :return: ListResponseOfAiBcrOcrData - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'POST', 'ListResponseOfAiBcrOcrData') - - def ai_bcr_ocr_storage_async(self, request: requests.AiBcrOcrStorageRequest) -> multiprocessing.pool.AsyncResult: - """Ocr images from storage - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AiBcrOcrStorageRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ListResponseOfAiBcrOcrData) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'POST', 'ListResponseOfAiBcrOcrData') - - def ai_bcr_parse(self, request: requests.AiBcrParseRequest) -> ListResponseOfHierarchicalObject: - """Parse images to vCard properties - - - :param request AiBcrParseRequest object with parameters - :return: ListResponseOfHierarchicalObject - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'POST', 'ListResponseOfHierarchicalObject') - - def ai_bcr_parse_async(self, request: requests.AiBcrParseRequest) -> multiprocessing.pool.AsyncResult: - """Parse images to vCard properties - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AiBcrParseRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ListResponseOfHierarchicalObject) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'POST', 'ListResponseOfHierarchicalObject') - - def ai_bcr_parse_model(self, request: requests.AiBcrParseModelRequest) -> ListResponseOfContactDto: - """Parse images to vCard document models - - - :param request AiBcrParseModelRequest object with parameters - :return: ListResponseOfContactDto - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'POST', 'ListResponseOfContactDto') - - def ai_bcr_parse_model_async(self, request: requests.AiBcrParseModelRequest) -> multiprocessing.pool.AsyncResult: - """Parse images to vCard document models - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AiBcrParseModelRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ListResponseOfContactDto) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'POST', 'ListResponseOfContactDto') - - def ai_bcr_parse_ocr_data_model(self, request: requests.AiBcrParseOcrDataModelRequest) -> ListResponseOfContactDto: - """Parse OCR data to vCard document models - - - :param request AiBcrParseOcrDataModelRequest object with parameters - :return: ListResponseOfContactDto - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'POST', 'ListResponseOfContactDto') - - def ai_bcr_parse_ocr_data_model_async(self, request: requests.AiBcrParseOcrDataModelRequest) -> multiprocessing.pool.AsyncResult: - """Parse OCR data to vCard document models - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AiBcrParseOcrDataModelRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ListResponseOfContactDto) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'POST', 'ListResponseOfContactDto') - - def ai_bcr_parse_storage(self, request: requests.AiBcrParseStorageRequest) -> ListResponseOfStorageFileLocation: - """Parse images from storage to vCard files - - - :param request AiBcrParseStorageRequest object with parameters - :return: ListResponseOfStorageFileLocation - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'POST', 'ListResponseOfStorageFileLocation') - - def ai_bcr_parse_storage_async(self, request: requests.AiBcrParseStorageRequest) -> multiprocessing.pool.AsyncResult: - """Parse images from storage to vCard files - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AiBcrParseStorageRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ListResponseOfStorageFileLocation) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'POST', 'ListResponseOfStorageFileLocation') - - def ai_name_complete(self, request: requests.AiNameCompleteRequest) -> AiNameWeightedVariants: - """The call proposes k most probable names for given starting characters - - - :param request AiNameCompleteRequest object with parameters - :return: AiNameWeightedVariants - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'AiNameWeightedVariants') - - def ai_name_complete_async(self, request: requests.AiNameCompleteRequest) -> multiprocessing.pool.AsyncResult: - """The call proposes k most probable names for given starting characters - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AiNameCompleteRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns AiNameWeightedVariants) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'AiNameWeightedVariants') - - def ai_name_expand(self, request: requests.AiNameExpandRequest) -> AiNameWeightedVariants: - """Expands a person's name into a list of possible alternatives using options for expanding instructions - - - :param request AiNameExpandRequest object with parameters - :return: AiNameWeightedVariants - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'AiNameWeightedVariants') - - def ai_name_expand_async(self, request: requests.AiNameExpandRequest) -> multiprocessing.pool.AsyncResult: - """Expands a person's name into a list of possible alternatives using options for expanding instructions - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AiNameExpandRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns AiNameWeightedVariants) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'AiNameWeightedVariants') - - def ai_name_expand_parsed(self, request: requests.AiNameExpandParsedRequest) -> AiNameWeightedVariants: - """Expands a person's parsed name into a list of possible alternatives using options for expanding instructions - - - :param request AiNameExpandParsedRequest object with parameters - :return: AiNameWeightedVariants - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'POST', 'AiNameWeightedVariants') - - def ai_name_expand_parsed_async(self, request: requests.AiNameExpandParsedRequest) -> multiprocessing.pool.AsyncResult: - """Expands a person's parsed name into a list of possible alternatives using options for expanding instructions - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AiNameExpandParsedRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns AiNameWeightedVariants) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'POST', 'AiNameWeightedVariants') - - def ai_name_format(self, request: requests.AiNameFormatRequest) -> AiNameFormatted: - """Formats a person's name in correct case and name order using options for formatting instructions - - - :param request AiNameFormatRequest object with parameters - :return: AiNameFormatted - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'AiNameFormatted') - - def ai_name_format_async(self, request: requests.AiNameFormatRequest) -> multiprocessing.pool.AsyncResult: - """Formats a person's name in correct case and name order using options for formatting instructions - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AiNameFormatRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns AiNameFormatted) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'AiNameFormatted') - - def ai_name_format_parsed(self, request: requests.AiNameFormatParsedRequest) -> AiNameFormatted: - """Formats a person's parsed name in correct case and name order using options for formatting instructions - - - :param request AiNameFormatParsedRequest object with parameters - :return: AiNameFormatted - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'POST', 'AiNameFormatted') - - def ai_name_format_parsed_async(self, request: requests.AiNameFormatParsedRequest) -> multiprocessing.pool.AsyncResult: - """Formats a person's parsed name in correct case and name order using options for formatting instructions - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AiNameFormatParsedRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns AiNameFormatted) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'POST', 'AiNameFormatted') - - def ai_name_genderize(self, request: requests.AiNameGenderizeRequest) -> ListResponseOfAiNameGenderHypothesis: - """Detect person's gender from name string - - - :param request AiNameGenderizeRequest object with parameters - :return: ListResponseOfAiNameGenderHypothesis - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'ListResponseOfAiNameGenderHypothesis') - - def ai_name_genderize_async(self, request: requests.AiNameGenderizeRequest) -> multiprocessing.pool.AsyncResult: - """Detect person's gender from name string - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AiNameGenderizeRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ListResponseOfAiNameGenderHypothesis) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'ListResponseOfAiNameGenderHypothesis') - - def ai_name_genderize_parsed(self, request: requests.AiNameGenderizeParsedRequest) -> ListResponseOfAiNameGenderHypothesis: - """Detect person's gender from parsed name - - - :param request AiNameGenderizeParsedRequest object with parameters - :return: ListResponseOfAiNameGenderHypothesis - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'POST', 'ListResponseOfAiNameGenderHypothesis') - - def ai_name_genderize_parsed_async(self, request: requests.AiNameGenderizeParsedRequest) -> multiprocessing.pool.AsyncResult: - """Detect person's gender from parsed name - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AiNameGenderizeParsedRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ListResponseOfAiNameGenderHypothesis) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'POST', 'ListResponseOfAiNameGenderHypothesis') - - def ai_name_match(self, request: requests.AiNameMatchRequest) -> AiNameMatchResult: - """Compare people's names. Uses options for comparing instructions - - - :param request AiNameMatchRequest object with parameters - :return: AiNameMatchResult - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'AiNameMatchResult') - - def ai_name_match_async(self, request: requests.AiNameMatchRequest) -> multiprocessing.pool.AsyncResult: - """Compare people's names. Uses options for comparing instructions - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AiNameMatchRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns AiNameMatchResult) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'AiNameMatchResult') - - def ai_name_match_parsed(self, request: requests.AiNameMatchParsedRequest) -> AiNameMatchResult: - """Compare people's parsed names and attributes. Uses options for comparing instructions - - - :param request AiNameMatchParsedRequest object with parameters - :return: AiNameMatchResult - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'POST', 'AiNameMatchResult') - - def ai_name_match_parsed_async(self, request: requests.AiNameMatchParsedRequest) -> multiprocessing.pool.AsyncResult: - """Compare people's parsed names and attributes. Uses options for comparing instructions - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AiNameMatchParsedRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns AiNameMatchResult) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'POST', 'AiNameMatchResult') - - def ai_name_parse(self, request: requests.AiNameParseRequest) -> ListResponseOfAiNameComponent: - """Parse name to components - - - :param request AiNameParseRequest object with parameters - :return: ListResponseOfAiNameComponent - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'ListResponseOfAiNameComponent') - - def ai_name_parse_async(self, request: requests.AiNameParseRequest) -> multiprocessing.pool.AsyncResult: - """Parse name to components - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AiNameParseRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ListResponseOfAiNameComponent) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'ListResponseOfAiNameComponent') - - def ai_name_parse_email_address(self, request: requests.AiNameParseEmailAddressRequest) -> ListResponseOfAiNameExtracted: - """Parse person's name out of an email address - - - :param request AiNameParseEmailAddressRequest object with parameters - :return: ListResponseOfAiNameExtracted - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'ListResponseOfAiNameExtracted') - - def ai_name_parse_email_address_async(self, request: requests.AiNameParseEmailAddressRequest) -> multiprocessing.pool.AsyncResult: - """Parse person's name out of an email address - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AiNameParseEmailAddressRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ListResponseOfAiNameExtracted) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'ListResponseOfAiNameExtracted') - - def append_email_message(self, request: requests.AppendEmailMessageRequest) -> EmailPropertyResponse: - """Adds an email from *.eml file to specified folder in email account - - - :param request AppendEmailMessageRequest object with parameters - :return: EmailPropertyResponse - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', 'EmailPropertyResponse') - - def append_email_message_async(self, request: requests.AppendEmailMessageRequest) -> multiprocessing.pool.AsyncResult: - """Adds an email from *.eml file to specified folder in email account - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AppendEmailMessageRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns EmailPropertyResponse) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'PUT', 'EmailPropertyResponse') - - def append_email_model_message(self, request: requests.AppendEmailModelMessageRequest) -> ValueResponse: - """Adds an email from model to specified folder in email account - - - :param request AppendEmailModelMessageRequest object with parameters - :return: ValueResponse - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', 'ValueResponse') - - def append_email_model_message_async(self, request: requests.AppendEmailModelMessageRequest) -> multiprocessing.pool.AsyncResult: - """Adds an email from model to specified folder in email account - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AppendEmailModelMessageRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ValueResponse) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'PUT', 'ValueResponse') - - def append_mime_message(self, request: requests.AppendMimeMessageRequest) -> ValueResponse: - """Adds an email from MIME to specified folder in email account - - - :param request AppendMimeMessageRequest object with parameters - :return: ValueResponse - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', 'ValueResponse') - - def append_mime_message_async(self, request: requests.AppendMimeMessageRequest) -> multiprocessing.pool.AsyncResult: - """Adds an email from MIME to specified folder in email account - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request AppendMimeMessageRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ValueResponse) - """ - 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 - - - :param request ConvertCalendarModelToAlternateRequest object with parameters - :return: AlternateView - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', 'AlternateView') - - def convert_calendar_model_to_alternate_async(self, request: requests.ConvertCalendarModelToAlternateRequest) -> multiprocessing.pool.AsyncResult: - """Convert iCalendar to AlternateView - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request ConvertCalendarModelToAlternateRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns AlternateView) - """ - 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_calendar_model_to_mapi_model(self, request: requests.ConvertCalendarModelToMapiModelRequest) -> MapiCalendarDto: - """Converts CalendarDto to MapiCalendarDto. - - - :param request ConvertCalendarModelToMapiModelRequest object with parameters - :return: MapiCalendarDto - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', 'MapiCalendarDto') - - def convert_calendar_model_to_mapi_model_async(self, request: requests.ConvertCalendarModelToMapiModelRequest) -> multiprocessing.pool.AsyncResult: - """Converts CalendarDto to MapiCalendarDto. - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request ConvertCalendarModelToMapiModelRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns MapiCalendarDto) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'PUT', 'MapiCalendarDto') - - 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_contact_model_to_mapi_model(self, request: requests.ConvertContactModelToMapiModelRequest) -> MapiContactDto: - """Converts ContactDto to MapiContactDto. - - - :param request ConvertContactModelToMapiModelRequest object with parameters - :return: MapiContactDto - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', 'MapiContactDto') + def __init__(self, api_client): + super(EmailApi, self).__init__(api_client) + + def as_file(self, request: EmailAsFileRequest) -> str: + """Converts Email model to specified format and returns as file. - def convert_contact_model_to_mapi_model_async(self, request: requests.ConvertContactModelToMapiModelRequest) -> multiprocessing.pool.AsyncResult: - """Converts ContactDto to MapiContactDto. - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request ConvertContactModelToMapiModelRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns MapiContactDto) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'PUT', 'MapiContactDto') - - def convert_email(self, request: requests.ConvertEmailRequest) -> str: - """Converts email document to specified format and returns as file - - - :param request ConvertEmailRequest 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_async(self, request: requests.ConvertEmailRequest) -> multiprocessing.pool.AsyncResult: - """Converts email document to specified format and returns as file - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request ConvertEmailRequest 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_model_to_file(self, request: requests.ConvertEmailModelToFileRequest) -> str: - """Converts Email model to specified format and returns as file - - - :param request ConvertEmailModelToFileRequest object with parameters + :param request: Email model and format to convert. + :type request: EmailAsFileRequest :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 convert_email_model_to_mapi_model(self, request: requests.ConvertEmailModelToMapiModelRequest) -> MapiMessageDto: + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `as_file`") + + collection_formats = {} + path = '/email/as-file' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'file') + + def as_mapi(self, email_dto: EmailDto) -> MapiMessageDto: """Converts EmailDto to MapiMessageDto. - - :param request ConvertEmailModelToMapiModelRequest object with parameters + :param email_dto: Email model to convert + :type email_dto: EmailDto :return: MapiMessageDto """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', 'MapiMessageDto') + # verify the required parameter 'email_dto' is set + if email_dto is None: + raise ValueError("Missing the required parameter `email_dto` when calling `as_mapi`") + + collection_formats = {} + path = '/email/as-mapi' + + header_params = {} + # 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']) + body_params = email_dto + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'MapiMessageDto') + + def convert(self, request: EmailConvertRequest) -> str: + """Converts email document to specified format and returns as file - def convert_email_model_to_mapi_model_async(self, request: requests.ConvertEmailModelToMapiModelRequest) -> multiprocessing.pool.AsyncResult: - """Converts EmailDto to MapiMessageDto. - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - :param request ConvertEmailModelToMapiModelRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns MapiMessageDto) + :param request: EmailConvertRequest object with parameters + :type request: EmailConvertRequest + :return: str """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'PUT', 'MapiMessageDto') - - def convert_mapi_calendar_model_to_calendar_model(self, request: requests.ConvertMapiCalendarModelToCalendarModelRequest) -> CalendarDto: - """Converts MAPI calendar model to CalendarDto model + # verify the required parameter 'from_format' is set + if request.from_format is None: + raise ValueError("Missing the required parameter `from_format` when calling `convert`") + # verify the required parameter 'to_format' is set + if request.to_format is None: + raise ValueError("Missing the required parameter `to_format` when calling `convert`") + # verify the required parameter 'file' is set + if request.file is None: + raise ValueError("Missing the required parameter `file` when calling `convert`") + + collection_formats = {} + path = '/email/convert' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('fromFormat') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.from_format if request.from_format is not None else '') + else: + if request.from_format is not None: + query_params.append((self._lowercase_first_letter('fromFormat'), request.from_format)) + path_parameter = '{' + self._lowercase_first_letter('toFormat') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.to_format if request.to_format is not None else '') + else: + if request.to_format is not None: + query_params.append((self._lowercase_first_letter('toFormat'), request.to_format)) + + form_params = [] + local_var_files = [] + if request.file is not None: + local_var_files.append((self._lowercase_first_letter('File'), request.file)) + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'file') + + def from_file(self, request: EmailFromFileRequest) -> EmailDto: + """Converts email document to a model representation - :param request ConvertMapiCalendarModelToCalendarModelRequest object with parameters - :return: CalendarDto + :param request: EmailFromFileRequest object with parameters + :type request: EmailFromFileRequest + :return: EmailDto """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', 'CalendarDto') - - def convert_mapi_calendar_model_to_calendar_model_async(self, request: requests.ConvertMapiCalendarModelToCalendarModelRequest) -> multiprocessing.pool.AsyncResult: - """Converts MAPI calendar model to CalendarDto model - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request ConvertMapiCalendarModelToCalendarModelRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns CalendarDto) + # verify the required parameter 'format' is set + if request.format is None: + raise ValueError("Missing the required parameter `format` when calling `from_file`") + # verify the required parameter 'file' is set + if request.file is None: + raise ValueError("Missing the required parameter `file` when calling `from_file`") + + collection_formats = {} + path = '/email/from-file' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('format') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.format if request.format is not None else '') + else: + if request.format is not None: + query_params.append((self._lowercase_first_letter('format'), request.format)) + + form_params = [] + local_var_files = [] + if request.file is not None: + local_var_files.append((self._lowercase_first_letter('File'), request.file)) + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'EmailDto') + + def get(self, request: EmailGetRequest) -> EmailDto: + """Get email document from storage. + + + :param request: EmailGetRequest object with parameters + :type request: EmailGetRequest + :return: EmailDto """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'PUT', 'CalendarDto') - - def convert_mapi_calendar_model_to_file(self, request: requests.ConvertMapiCalendarModelToFileRequest) -> str: - """Converts MAPI calendar model to specified format and returns as file + # verify the required parameter 'format' is set + if request.format is None: + raise ValueError("Missing the required parameter `format` when calling `get`") + # verify the required parameter 'file_name' is set + if request.file_name is None: + raise ValueError("Missing the required parameter `file_name` when calling `get`") + + collection_formats = {} + path = '/email' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('format') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.format if request.format is not None else '') + else: + if request.format is not None: + query_params.append((self._lowercase_first_letter('format'), request.format)) + path_parameter = '{' + self._lowercase_first_letter('fileName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.file_name if request.file_name is not None else '') + else: + if request.file_name is not None: + query_params.append((self._lowercase_first_letter('fileName'), request.file_name)) + path_parameter = '{' + self._lowercase_first_letter('folder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.folder if request.folder is not None else '') + else: + if request.folder is not None: + query_params.append((self._lowercase_first_letter('folder'), request.folder)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'EmailDto') + + def get_as_file(self, request: EmailGetAsFileRequest) -> str: + """Converts email document from storage to specified format and returns as file - :param request ConvertMapiCalendarModelToFileRequest object with parameters + :param request: EmailGetAsFileRequest object with parameters + :type request: EmailGetAsFileRequest :return: str """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', 'file') + # verify the required parameter 'file_name' is set + if request.file_name is None: + raise ValueError("Missing the required parameter `file_name` when calling `get_as_file`") + # verify the required parameter 'format' is set + if request.format is None: + raise ValueError("Missing the required parameter `format` when calling `get_as_file`") + + collection_formats = {} + path = '/email/as-file' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('fileName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.file_name if request.file_name is not None else '') + else: + if request.file_name is not None: + query_params.append((self._lowercase_first_letter('fileName'), request.file_name)) + path_parameter = '{' + self._lowercase_first_letter('format') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.format if request.format is not None else '') + else: + if request.format is not None: + query_params.append((self._lowercase_first_letter('format'), request.format)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + path_parameter = '{' + self._lowercase_first_letter('folder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.folder if request.folder is not None else '') + else: + if request.folder is not None: + query_params.append((self._lowercase_first_letter('folder'), request.folder)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'file') + + def get_list(self, request: EmailGetListRequest) -> EmailStorageList: + """Get email list from storage folder. - def convert_mapi_calendar_model_to_file_async(self, request: requests.ConvertMapiCalendarModelToFileRequest) -> multiprocessing.pool.AsyncResult: - """Converts MAPI calendar model to specified format and returns as file - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request ConvertMapiCalendarModelToFileRequest 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_mapi_contact_model_to_contact_model(self, request: requests.ConvertMapiContactModelToContactModelRequest) -> ContactDto: - """Converts MAPI contact model to ContactDto model - - - :param request ConvertMapiContactModelToContactModelRequest object with parameters - :return: ContactDto - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', 'ContactDto') - - def convert_mapi_contact_model_to_contact_model_async(self, request: requests.ConvertMapiContactModelToContactModelRequest) -> multiprocessing.pool.AsyncResult: - """Converts MAPI contact model to ContactDto model - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request ConvertMapiContactModelToContactModelRequest 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 convert_mapi_contact_model_to_file(self, request: requests.ConvertMapiContactModelToFileRequest) -> str: - """Converts MAPI contact model to specified format and returns as file - - - :param request ConvertMapiContactModelToFileRequest 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_mapi_contact_model_to_file_async(self, request: requests.ConvertMapiContactModelToFileRequest) -> multiprocessing.pool.AsyncResult: - """Converts MAPI contact model to specified format and returns as file - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request ConvertMapiContactModelToFileRequest 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_mapi_message_model_to_email_model(self, request: requests.ConvertMapiMessageModelToEmailModelRequest) -> EmailDto: - """Converts MAPI message model to EmailDto model - - - :param request ConvertMapiMessageModelToEmailModelRequest object with parameters - :return: EmailDto - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', 'EmailDto') - - def convert_mapi_message_model_to_email_model_async(self, request: requests.ConvertMapiMessageModelToEmailModelRequest) -> multiprocessing.pool.AsyncResult: - """Converts MAPI message model to EmailDto model - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request ConvertMapiMessageModelToEmailModelRequest 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 convert_mapi_message_model_to_file(self, request: requests.ConvertMapiMessageModelToFileRequest) -> str: - """Converts MAPI message model to specified format and returns as file - - - :param request ConvertMapiMessageModelToFileRequest 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_mapi_message_model_to_file_async(self, request: requests.ConvertMapiMessageModelToFileRequest) -> multiprocessing.pool.AsyncResult: - """Converts MAPI message model to specified format and returns as file - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request ConvertMapiMessageModelToFileRequest 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 - - - :param request CopyFileRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', None) - - def copy_file_async(self, request: requests.CopyFileRequest) -> multiprocessing.pool.AsyncResult: - """copy_file - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request CopyFileRequest 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 copy_folder(self, request: requests.CopyFolderRequest) : - """copy_folder - - - :param request CopyFolderRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', None) - - def copy_folder_async(self, request: requests.CopyFolderRequest) -> multiprocessing.pool.AsyncResult: - """copy_folder - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request CopyFolderRequest 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 create_calendar(self, request: requests.CreateCalendarRequest) : - """Create calendar file - - - :param request CreateCalendarRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', None) - - def create_calendar_async(self, request: requests.CreateCalendarRequest) -> multiprocessing.pool.AsyncResult: - """Create calendar file - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request CreateCalendarRequest 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 create_contact(self, request: requests.CreateContactRequest) : - """Create contact document - - - :param request CreateContactRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', None) - - def create_contact_async(self, request: requests.CreateContactRequest) -> multiprocessing.pool.AsyncResult: - """Create contact document - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request CreateContactRequest 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 create_email(self, request: requests.CreateEmailRequest) -> EmailDocumentResponse: - """Create an email document - - - :param request CreateEmailRequest object with parameters - :return: EmailDocumentResponse - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', 'EmailDocumentResponse') - - def create_email_async(self, request: requests.CreateEmailRequest) -> multiprocessing.pool.AsyncResult: - """Create an email document - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request CreateEmailRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns EmailDocumentResponse) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'PUT', 'EmailDocumentResponse') - - def create_email_folder(self, request: requests.CreateEmailFolderRequest) : - """Create new folder in email account - - - :param request CreateEmailFolderRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', None) - - def create_email_folder_async(self, request: requests.CreateEmailFolderRequest) -> multiprocessing.pool.AsyncResult: - """Create new folder in email account - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request CreateEmailFolderRequest 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 create_folder(self, request: requests.CreateFolderRequest) : - """create_folder - - - :param request CreateFolderRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', None) - - def create_folder_async(self, request: requests.CreateFolderRequest) -> multiprocessing.pool.AsyncResult: - """create_folder - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request CreateFolderRequest 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 create_mapi(self, request: requests.CreateMapiRequest) : - """Create new document - - - :param request CreateMapiRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', None) - - def create_mapi_async(self, request: requests.CreateMapiRequest) -> multiprocessing.pool.AsyncResult: - """Create new document - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request CreateMapiRequest 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 delete_calendar_property(self, request: requests.DeleteCalendarPropertyRequest) : - """Deletes indexed property by index and name. To delete Reminder attachment, use path ReminderAttachment/{ReminderIndex}/{AttachmentIndex} - - - :param request DeleteCalendarPropertyRequest 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_calendar_property_async(self, request: requests.DeleteCalendarPropertyRequest) -> multiprocessing.pool.AsyncResult: - """Deletes indexed property by index and name. To delete Reminder attachment, use path ReminderAttachment/{ReminderIndex}/{AttachmentIndex} - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request DeleteCalendarPropertyRequest 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_contact_property(self, request: requests.DeleteContactPropertyRequest) : - """Delete property from indexed property list - - - :param request DeleteContactPropertyRequest 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_contact_property_async(self, request: requests.DeleteContactPropertyRequest) -> multiprocessing.pool.AsyncResult: - """Delete property from indexed property list - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request DeleteContactPropertyRequest 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_email_folder(self, request: requests.DeleteEmailFolderRequest) : - """Delete a folder in email account - - - :param request DeleteEmailFolderRequest 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_folder_async(self, request: requests.DeleteEmailFolderRequest) -> multiprocessing.pool.AsyncResult: - """Delete a folder in email account - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request DeleteEmailFolderRequest 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_email_message(self, request: requests.DeleteEmailMessageRequest) : - """Delete message from email account by id - - - :param request DeleteEmailMessageRequest 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_message_async(self, request: requests.DeleteEmailMessageRequest) -> multiprocessing.pool.AsyncResult: - """Delete message from email account by id - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request DeleteEmailMessageRequest 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_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 - - - :param request DeleteFileRequest 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_file_async(self, request: requests.DeleteFileRequest) -> multiprocessing.pool.AsyncResult: - """delete_file - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request DeleteFileRequest 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_folder(self, request: requests.DeleteFolderRequest) : - """delete_folder - - - :param request DeleteFolderRequest 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_folder_async(self, request: requests.DeleteFolderRequest) -> multiprocessing.pool.AsyncResult: - """delete_folder - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request DeleteFolderRequest 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_mapi_attachment(self, request: requests.DeleteMapiAttachmentRequest) : - """Remove attachment from document - - - :param request DeleteMapiAttachmentRequest 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_mapi_attachment_async(self, request: requests.DeleteMapiAttachmentRequest) -> multiprocessing.pool.AsyncResult: - """Remove attachment from document - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request DeleteMapiAttachmentRequest 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_mapi_properties(self, request: requests.DeleteMapiPropertiesRequest) : - """Delete document properties - - - :param request DeleteMapiPropertiesRequest 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_mapi_properties_async(self, request: requests.DeleteMapiPropertiesRequest) -> multiprocessing.pool.AsyncResult: - """Delete document properties - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request DeleteMapiPropertiesRequest 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 discover_email_config(self, request: requests.DiscoverEmailConfigRequest) -> EmailAccountConfigList: - """Discover email accounts by email address. Does not validate discovered accounts. - - - :param request DiscoverEmailConfigRequest object with parameters - :return: EmailAccountConfigList - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'EmailAccountConfigList') - - def discover_email_config_async(self, request: requests.DiscoverEmailConfigRequest) -> multiprocessing.pool.AsyncResult: - """Discover email accounts by email address. Does not validate discovered accounts. - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request DiscoverEmailConfigRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns EmailAccountConfigList) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'EmailAccountConfigList') - - def discover_email_config_oauth(self, request: requests.DiscoverEmailConfigOauthRequest) -> EmailAccountConfigList: - """Discover email accounts by email address. Validates discovered accounts using OAuth 2.0. - - - :param request DiscoverEmailConfigOauthRequest object with parameters - :return: EmailAccountConfigList - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'POST', 'EmailAccountConfigList') - - def discover_email_config_oauth_async(self, request: requests.DiscoverEmailConfigOauthRequest) -> multiprocessing.pool.AsyncResult: - """Discover email accounts by email address. Validates discovered accounts using OAuth 2.0. - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request DiscoverEmailConfigOauthRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns EmailAccountConfigList) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'POST', 'EmailAccountConfigList') - - def discover_email_config_password(self, request: requests.DiscoverEmailConfigPasswordRequest) -> EmailAccountConfigList: - """Discover email accounts by email address. Validates discovered accounts using login and password. - - - :param request DiscoverEmailConfigPasswordRequest object with parameters - :return: EmailAccountConfigList - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'POST', 'EmailAccountConfigList') - - def discover_email_config_password_async(self, request: requests.DiscoverEmailConfigPasswordRequest) -> multiprocessing.pool.AsyncResult: - """Discover email accounts by email address. Validates discovered accounts using login and password. - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request DiscoverEmailConfigPasswordRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns EmailAccountConfigList) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'POST', 'EmailAccountConfigList') - - def download_file(self, request: requests.DownloadFileRequest) -> str: - """download_file - - - :param request DownloadFileRequest object with parameters - :return: str - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'file') - - def download_file_async(self, request: requests.DownloadFileRequest) -> multiprocessing.pool.AsyncResult: - """download_file - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request DownloadFileRequest 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 fetch_email_message(self, request: requests.FetchEmailMessageRequest) -> MimeResponse: - """Fetch message mime from email account - - - :param request FetchEmailMessageRequest object with parameters - :return: MimeResponse - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'MimeResponse') - - def fetch_email_message_async(self, request: requests.FetchEmailMessageRequest) -> multiprocessing.pool.AsyncResult: - """Fetch message mime from email account - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request FetchEmailMessageRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns MimeResponse) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'MimeResponse') - - def fetch_email_model(self, request: requests.FetchEmailModelRequest) -> EmailDto: - """Fetch message model from email account - - - :param request FetchEmailModelRequest object with parameters - :return: EmailDto - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'EmailDto') - - def fetch_email_model_async(self, request: requests.FetchEmailModelRequest) -> multiprocessing.pool.AsyncResult: - """Fetch message model from email account - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request FetchEmailModelRequest 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, '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 - - - :param request GetCalendarRequest object with parameters - :return: HierarchicalObject - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'HierarchicalObject') - - def get_calendar_async(self, request: requests.GetCalendarRequest) -> multiprocessing.pool.AsyncResult: - """Get calendar file properties - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetCalendarRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns HierarchicalObject) - """ - 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 - - - :param request GetCalendarAttachmentRequest 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_attachment_async(self, request: requests.GetCalendarAttachmentRequest) -> multiprocessing.pool.AsyncResult: - """Get iCalendar document attachment by name - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetCalendarAttachmentRequest 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_file_as_mapi_model(self, request: requests.GetCalendarFileAsMapiModelRequest) -> MapiCalendarDto: - """Converts calendar file to a MAPI model representation - - - :param request GetCalendarFileAsMapiModelRequest object with parameters - :return: MapiCalendarDto - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', 'MapiCalendarDto') - - def get_calendar_file_as_mapi_model_async(self, request: requests.GetCalendarFileAsMapiModelRequest) -> multiprocessing.pool.AsyncResult: - """Converts calendar file to a MAPI model representation - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetCalendarFileAsMapiModelRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns MapiCalendarDto) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'PUT', 'MapiCalendarDto') - - 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 - - - :param request GetCalendarListRequest object with parameters - :return: ListResponseOfHierarchicalObjectResponse - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'ListResponseOfHierarchicalObjectResponse') - - def get_calendar_list_async(self, request: requests.GetCalendarListRequest) -> multiprocessing.pool.AsyncResult: - """Get iCalendar files list in folder on storage - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetCalendarListRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ListResponseOfHierarchicalObjectResponse) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'ListResponseOfHierarchicalObjectResponse') - - def get_calendar_model(self, request: requests.GetCalendarModelRequest) -> CalendarDto: - """Get calendar file - - - :param request GetCalendarModelRequest object with parameters - :return: CalendarDto - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'CalendarDto') - - def get_calendar_model_async(self, request: requests.GetCalendarModelRequest) -> multiprocessing.pool.AsyncResult: - """Get calendar file - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetCalendarModelRequest 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, 'GET', 'CalendarDto') - - def get_calendar_model_as_alternate(self, request: requests.GetCalendarModelAsAlternateRequest) -> AlternateView: - """Get iCalendar from storage as AlternateView - - - :param request GetCalendarModelAsAlternateRequest object with parameters - :return: AlternateView - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'AlternateView') - - def get_calendar_model_as_alternate_async(self, request: requests.GetCalendarModelAsAlternateRequest) -> multiprocessing.pool.AsyncResult: - """Get iCalendar from storage as AlternateView - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetCalendarModelAsAlternateRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns AlternateView) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'AlternateView') - - def get_calendar_model_list(self, request: requests.GetCalendarModelListRequest) -> CalendarDtoList: - """Get iCalendar list from storage folder - - - :param request GetCalendarModelListRequest object with parameters - :return: CalendarDtoList - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'CalendarDtoList') - - def get_calendar_model_list_async(self, request: requests.GetCalendarModelListRequest) -> multiprocessing.pool.AsyncResult: - """Get iCalendar list from storage folder - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetCalendarModelListRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns CalendarDtoList) - """ - 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 - - - :param request GetContactAttachmentRequest 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_attachment_async(self, request: requests.GetContactAttachmentRequest) -> multiprocessing.pool.AsyncResult: - """Get attachment file by name - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetContactAttachmentRequest 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_file_as_mapi_model(self, request: requests.GetContactFileAsMapiModelRequest) -> MapiContactDto: - """Converts contact file to a MAPI model representation - - - :param request GetContactFileAsMapiModelRequest object with parameters - :return: MapiContactDto - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', 'MapiContactDto') - - def get_contact_file_as_mapi_model_async(self, request: requests.GetContactFileAsMapiModelRequest) -> multiprocessing.pool.AsyncResult: - """Converts contact file to a MAPI model representation - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetContactFileAsMapiModelRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns MapiContactDto) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'PUT', 'MapiContactDto') - - 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 - - - :param request GetContactListRequest object with parameters - :return: ListResponseOfHierarchicalObjectResponse - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'ListResponseOfHierarchicalObjectResponse') - - def get_contact_list_async(self, request: requests.GetContactListRequest) -> multiprocessing.pool.AsyncResult: - """Get contact list from storage folder - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetContactListRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ListResponseOfHierarchicalObjectResponse) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'ListResponseOfHierarchicalObjectResponse') - - def get_contact_model(self, request: requests.GetContactModelRequest) -> ContactDto: - """Get contact document. - - - :param request GetContactModelRequest object with parameters - :return: ContactDto - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'ContactDto') - - def get_contact_model_async(self, request: requests.GetContactModelRequest) -> multiprocessing.pool.AsyncResult: - """Get contact document. - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetContactModelRequest 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, 'GET', 'ContactDto') - - def get_contact_model_list(self, request: requests.GetContactModelListRequest) -> ContactDtoList: - """Get contact list from storage folder. - - - :param request GetContactModelListRequest object with parameters - :return: ContactDtoList - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'ContactDtoList') - - def get_contact_model_list_async(self, request: requests.GetContactModelListRequest) -> multiprocessing.pool.AsyncResult: - """Get contact list from storage folder. - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetContactModelListRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ContactDtoList) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'ContactDtoList') - - def get_contact_properties(self, request: requests.GetContactPropertiesRequest) -> HierarchicalObject: - """Get contact document properties - - - :param request GetContactPropertiesRequest object with parameters - :return: HierarchicalObject - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'HierarchicalObject') - - def get_contact_properties_async(self, request: requests.GetContactPropertiesRequest) -> multiprocessing.pool.AsyncResult: - """Get contact document properties - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetContactPropertiesRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns HierarchicalObject) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'HierarchicalObject') - - def get_disc_usage(self, request: requests.GetDiscUsageRequest) -> DiscUsage: - """get_disc_usage - - - :param request GetDiscUsageRequest object with parameters - :return: DiscUsage - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'DiscUsage') - - def get_disc_usage_async(self, request: requests.GetDiscUsageRequest) -> multiprocessing.pool.AsyncResult: - """get_disc_usage - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetDiscUsageRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns DiscUsage) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'DiscUsage') - - def get_email(self, request: requests.GetEmailRequest) -> EmailDocument: - """Get email document - - - :param request GetEmailRequest object with parameters - :return: EmailDocument - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'EmailDocument') - - def get_email_async(self, request: requests.GetEmailRequest) -> multiprocessing.pool.AsyncResult: - """Get email document - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetEmailRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns EmailDocument) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'EmailDocument') - - def get_email_as_file(self, request: requests.GetEmailAsFileRequest) -> str: - """Converts email document from storage to specified format and returns as file - - - :param request GetEmailAsFileRequest 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_email_as_file_async(self, request: requests.GetEmailAsFileRequest) -> multiprocessing.pool.AsyncResult: - """Converts email document from storage to specified format and returns as file - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetEmailAsFileRequest 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_email_attachment(self, request: requests.GetEmailAttachmentRequest) -> str: - """Get email attachment by name - - - :param request GetEmailAttachmentRequest 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_email_attachment_async(self, request: requests.GetEmailAttachmentRequest) -> multiprocessing.pool.AsyncResult: - """Get email attachment by name - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetEmailAttachmentRequest 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_email_client_account(self, request: requests.GetEmailClientAccountRequest) -> EmailClientAccount: - """Get email client account from storage - - - :param request GetEmailClientAccountRequest object with parameters - :return: EmailClientAccount - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'EmailClientAccount') - - def get_email_client_account_async(self, request: requests.GetEmailClientAccountRequest) -> multiprocessing.pool.AsyncResult: - """Get email client account from storage - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetEmailClientAccountRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns EmailClientAccount) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'EmailClientAccount') - - def get_email_client_multi_account(self, request: requests.GetEmailClientMultiAccountRequest) -> EmailClientMultiAccount: - """Get email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\". - - - :param request GetEmailClientMultiAccountRequest object with parameters - :return: EmailClientMultiAccount - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'EmailClientMultiAccount') - - def get_email_client_multi_account_async(self, request: requests.GetEmailClientMultiAccountRequest) -> multiprocessing.pool.AsyncResult: - """Get email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\". - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetEmailClientMultiAccountRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns EmailClientMultiAccount) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'EmailClientMultiAccount') - - def get_email_file_as_mapi_model(self, request: requests.GetEmailFileAsMapiModelRequest) -> MapiMessageDto: - """Converts email file to a MAPI model representation - - - :param request GetEmailFileAsMapiModelRequest object with parameters - :return: MapiMessageDto - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', 'MapiMessageDto') - - def get_email_file_as_mapi_model_async(self, request: requests.GetEmailFileAsMapiModelRequest) -> multiprocessing.pool.AsyncResult: - """Converts email file to a MAPI model representation - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetEmailFileAsMapiModelRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns MapiMessageDto) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'PUT', 'MapiMessageDto') - - 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. - - - :param request GetEmailModelRequest object with parameters - :return: EmailDto - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'EmailDto') - - def get_email_model_async(self, request: requests.GetEmailModelRequest) -> multiprocessing.pool.AsyncResult: - """Get email document. - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetEmailModelRequest 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, 'GET', 'EmailDto') - - def get_email_model_list(self, request: requests.GetEmailModelListRequest) -> EmailDtoList: - """Get email list from storage folder. - - - :param request GetEmailModelListRequest object with parameters - :return: EmailDtoList - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'EmailDtoList') - - def get_email_model_list_async(self, request: requests.GetEmailModelListRequest) -> multiprocessing.pool.AsyncResult: - """Get email list from storage folder. - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetEmailModelListRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns EmailDtoList) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'EmailDtoList') - - def get_email_property(self, request: requests.GetEmailPropertyRequest) -> EmailPropertyResponse: - """Get an email document property by its name - - - :param request GetEmailPropertyRequest object with parameters - :return: EmailPropertyResponse - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'EmailPropertyResponse') - - def get_email_property_async(self, request: requests.GetEmailPropertyRequest) -> multiprocessing.pool.AsyncResult: - """Get an email document property by its name - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetEmailPropertyRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns EmailPropertyResponse) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'EmailPropertyResponse') - - def get_file_versions(self, request: requests.GetFileVersionsRequest) -> FileVersions: - """get_file_versions - - - :param request GetFileVersionsRequest object with parameters - :return: FileVersions - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'FileVersions') - - def get_file_versions_async(self, request: requests.GetFileVersionsRequest) -> multiprocessing.pool.AsyncResult: - """get_file_versions - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetFileVersionsRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns FileVersions) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'FileVersions') - - def get_files_list(self, request: requests.GetFilesListRequest) -> FilesList: - """get_files_list - - - :param request GetFilesListRequest object with parameters - :return: FilesList - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'FilesList') - - def get_files_list_async(self, request: requests.GetFilesListRequest) -> multiprocessing.pool.AsyncResult: - """get_files_list - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetFilesListRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns FilesList) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'FilesList') - - def get_mapi_attachment(self, request: requests.GetMapiAttachmentRequest) -> str: - """Get document attachment as file stream - - - :param request GetMapiAttachmentRequest 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_mapi_attachment_async(self, request: requests.GetMapiAttachmentRequest) -> multiprocessing.pool.AsyncResult: - """Get document attachment as file stream - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetMapiAttachmentRequest 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_mapi_attachments(self, request: requests.GetMapiAttachmentsRequest) -> ListResponseOfString: - """Get document attachment list - - - :param request GetMapiAttachmentsRequest object with parameters - :return: ListResponseOfString - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'ListResponseOfString') - - def get_mapi_attachments_async(self, request: requests.GetMapiAttachmentsRequest) -> multiprocessing.pool.AsyncResult: - """Get document attachment list - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetMapiAttachmentsRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ListResponseOfString) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'ListResponseOfString') - - def get_mapi_calendar_model(self, request: requests.GetMapiCalendarModelRequest) -> MapiCalendarDto: - """Get MAPI calendar document. - - - :param request GetMapiCalendarModelRequest object with parameters - :return: MapiCalendarDto - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'MapiCalendarDto') - - def get_mapi_calendar_model_async(self, request: requests.GetMapiCalendarModelRequest) -> multiprocessing.pool.AsyncResult: - """Get MAPI calendar document. - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetMapiCalendarModelRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns MapiCalendarDto) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'MapiCalendarDto') - - def get_mapi_contact_model(self, request: requests.GetMapiContactModelRequest) -> MapiContactDto: - """Get MAPI contact document. - - - :param request GetMapiContactModelRequest object with parameters - :return: MapiContactDto - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'MapiContactDto') - - def get_mapi_contact_model_async(self, request: requests.GetMapiContactModelRequest) -> multiprocessing.pool.AsyncResult: - """Get MAPI contact document. - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetMapiContactModelRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns MapiContactDto) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'MapiContactDto') - - def get_mapi_list(self, request: requests.GetMapiListRequest) -> ListResponseOfHierarchicalObjectResponse: - """Get document list from storage folder - - - :param request GetMapiListRequest object with parameters - :return: ListResponseOfHierarchicalObjectResponse - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'ListResponseOfHierarchicalObjectResponse') - - def get_mapi_list_async(self, request: requests.GetMapiListRequest) -> multiprocessing.pool.AsyncResult: - """Get document list from storage folder - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetMapiListRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ListResponseOfHierarchicalObjectResponse) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'ListResponseOfHierarchicalObjectResponse') - - def get_mapi_message_model(self, request: requests.GetMapiMessageModelRequest) -> MapiMessageDto: - """Get MAPI message document. - - - :param request GetMapiMessageModelRequest object with parameters - :return: MapiMessageDto - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'MapiMessageDto') - - def get_mapi_message_model_async(self, request: requests.GetMapiMessageModelRequest) -> multiprocessing.pool.AsyncResult: - """Get MAPI message document. - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetMapiMessageModelRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns MapiMessageDto) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'MapiMessageDto') - - def get_mapi_properties(self, request: requests.GetMapiPropertiesRequest) -> HierarchicalObjectResponse: - """Get document properties - - - :param request GetMapiPropertiesRequest object with parameters - :return: HierarchicalObjectResponse - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'HierarchicalObjectResponse') - - def get_mapi_properties_async(self, request: requests.GetMapiPropertiesRequest) -> multiprocessing.pool.AsyncResult: - """Get document properties - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request GetMapiPropertiesRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns HierarchicalObjectResponse) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'HierarchicalObjectResponse') - - def is_email_address_disposable(self, request: requests.IsEmailAddressDisposableRequest) -> ValueTOfBoolean: - """Check email address is disposable - - - :param request IsEmailAddressDisposableRequest object with parameters - :return: ValueTOfBoolean - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'ValueTOfBoolean') - - def is_email_address_disposable_async(self, request: requests.IsEmailAddressDisposableRequest) -> multiprocessing.pool.AsyncResult: - """Check email address is disposable - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request IsEmailAddressDisposableRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ValueTOfBoolean) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'ValueTOfBoolean') - - def list_email_folders(self, request: requests.ListEmailFoldersRequest) -> ListResponseOfMailServerFolder: - """Get folders list in email account - - - :param request ListEmailFoldersRequest object with parameters - :return: ListResponseOfMailServerFolder - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'ListResponseOfMailServerFolder') - - def list_email_folders_async(self, request: requests.ListEmailFoldersRequest) -> multiprocessing.pool.AsyncResult: - """Get folders list in email account - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request ListEmailFoldersRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ListResponseOfMailServerFolder) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'ListResponseOfMailServerFolder') - - def list_email_messages(self, request: requests.ListEmailMessagesRequest) -> ListResponseOfString: - """Get messages from folder, filtered by query - - The query string should have the following view. The example of a simple expression: '' '', where <Field Name> - the name of a message field through which filtering is made, <Comparison operator> - comparison operators, as their name implies, allow to compare message field and specified value, <Field value> - value to be compared with a message field. The number of simple expressions can make a compound one, ex.: ( & ) | , where \"&\" - logical-AND operator, \"|\" - logical-OR operator At present the following values are allowed as a field name (): \"To\" - represents a TO field of message, \"Text\" - represents string in the header or body of the message, \"Bcc\" - represents a BCC field of message, \"Body\" - represents a string in the body of message, \"Cc\" - represents a CC field of message, \"From\" - represents a From field of message, \"Subject\" - represents a string in the subject of message, \"InternalDate\" - represents an internal date of message, \"SentDate\" - represents a sent date of message Additionally, the following field names are allowed for IMAP-protocol: \"Answered\" - represents an /Answered flag of message \"Seen\" - represents a /Seen flag of message \"Flagged\" - represents a /Flagged flag of message \"Draft\" - represents a /Draft flag of message \"Deleted\" - represents a Deleted/ flag of message \"Recent\" - represents a Deleted/ flag of message \"MessageSize\" - represents a size (in bytes) of message Additionally, the following field names are allowed for Exchange: \"IsRead\" - Indicates whether the message has been read \"HasAttachment\" - Indicates whether or not the message has attachments \"IsSubmitted\" - Indicates whether the message has been submitted to the Outbox \"ContentClass\" - represents a content class of item Additionally, the following field names are allowed for pst/ost files: \"MessageClass\" - Represents a message class \"ContainerClass\" - Represents a folder container class \"Importance\" - Represents a message importance \"MessageSize\" - represents a size (in bytes) of message \"FolderName\" - represents a folder name \"ContentsCount\" - represents a total number of items in the folder \"UnreadContentsCount\" - represents the number of unread items in the folder. \"Subfolders\" - Indicates whether or not the folder has subfolders \"Read\" - the message is marked as having been read \"HasAttachment\" - the message has at least one attachment \"Unsent\" - the message is still being composed \"Unmodified\" - the message has not been modified since it was first saved (if unsent) or it was delivered (if sent) \"FromMe\" - the user receiving the message was also the user who sent the message \"Resend\" - the message includes a request for a resend operation with a non-delivery report \"NotifyRead\" - the user who sent the message has requested notification when a recipient first reads it \"NotifyUnread\" - the user who sent the message has requested notification when a recipient deletes it before reading or the Message object expires \"EverRead\" - the message has been read at least once The field value () can take the following values: For text fields - any string, For date type fields - the string of \"d-MMM-yyy\" format, ex. \"10-Feb-2009\", For flags (fields of boolean type) - either \"True\", or \"False\" - - :param request ListEmailMessagesRequest object with parameters - :return: ListResponseOfString - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'ListResponseOfString') - - def list_email_messages_async(self, request: requests.ListEmailMessagesRequest) -> multiprocessing.pool.AsyncResult: - """Get messages from folder, filtered by query - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - The query string should have the following view. The example of a simple expression: '' '', where <Field Name> - the name of a message field through which filtering is made, <Comparison operator> - comparison operators, as their name implies, allow to compare message field and specified value, <Field value> - value to be compared with a message field. The number of simple expressions can make a compound one, ex.: ( & ) | , where \"&\" - logical-AND operator, \"|\" - logical-OR operator At present the following values are allowed as a field name (): \"To\" - represents a TO field of message, \"Text\" - represents string in the header or body of the message, \"Bcc\" - represents a BCC field of message, \"Body\" - represents a string in the body of message, \"Cc\" - represents a CC field of message, \"From\" - represents a From field of message, \"Subject\" - represents a string in the subject of message, \"InternalDate\" - represents an internal date of message, \"SentDate\" - represents a sent date of message Additionally, the following field names are allowed for IMAP-protocol: \"Answered\" - represents an /Answered flag of message \"Seen\" - represents a /Seen flag of message \"Flagged\" - represents a /Flagged flag of message \"Draft\" - represents a /Draft flag of message \"Deleted\" - represents a Deleted/ flag of message \"Recent\" - represents a Deleted/ flag of message \"MessageSize\" - represents a size (in bytes) of message Additionally, the following field names are allowed for Exchange: \"IsRead\" - Indicates whether the message has been read \"HasAttachment\" - Indicates whether or not the message has attachments \"IsSubmitted\" - Indicates whether the message has been submitted to the Outbox \"ContentClass\" - represents a content class of item Additionally, the following field names are allowed for pst/ost files: \"MessageClass\" - Represents a message class \"ContainerClass\" - Represents a folder container class \"Importance\" - Represents a message importance \"MessageSize\" - represents a size (in bytes) of message \"FolderName\" - represents a folder name \"ContentsCount\" - represents a total number of items in the folder \"UnreadContentsCount\" - represents the number of unread items in the folder. \"Subfolders\" - Indicates whether or not the folder has subfolders \"Read\" - the message is marked as having been read \"HasAttachment\" - the message has at least one attachment \"Unsent\" - the message is still being composed \"Unmodified\" - the message has not been modified since it was first saved (if unsent) or it was delivered (if sent) \"FromMe\" - the user receiving the message was also the user who sent the message \"Resend\" - the message includes a request for a resend operation with a non-delivery report \"NotifyRead\" - the user who sent the message has requested notification when a recipient first reads it \"NotifyUnread\" - the user who sent the message has requested notification when a recipient deletes it before reading or the Message object expires \"EverRead\" - the message has been read at least once The field value () can take the following values: For text fields - any string, For date type fields - the string of \"d-MMM-yyy\" format, ex. \"10-Feb-2009\", For flags (fields of boolean type) - either \"True\", or \"False\" - - :param request ListEmailMessagesRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ListResponseOfString) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'ListResponseOfString') - - def list_email_models(self, request: requests.ListEmailModelsRequest) -> ListResponseOfEmailDto: - """Get messages from folder, filtered by query - - The query string should have the following view. The example of a simple expression: '' '', where <Field Name> - the name of a message field through which filtering is made, <Comparison operator> - comparison operators, as their name implies, allow to compare message field and specified value, <Field value> - value to be compared with a message field. The number of simple expressions can make a compound one, ex.: ( & ) | , where \"&\" - logical-AND operator, \"|\" - logical-OR operator At present the following values are allowed as a field name (): \"To\" - represents a TO field of message, \"Text\" - represents string in the header or body of the message, \"Bcc\" - represents a BCC field of message, \"Body\" - represents a string in the body of message, \"Cc\" - represents a CC field of message, \"From\" - represents a From field of message, \"Subject\" - represents a string in the subject of message, \"InternalDate\" - represents an internal date of message, \"SentDate\" - represents a sent date of message Additionally, the following field names are allowed for IMAP-protocol: \"Answered\" - represents an /Answered flag of message \"Seen\" - represents a /Seen flag of message \"Flagged\" - represents a /Flagged flag of message \"Draft\" - represents a /Draft flag of message \"Deleted\" - represents a Deleted/ flag of message \"Recent\" - represents a Deleted/ flag of message \"MessageSize\" - represents a size (in bytes) of message Additionally, the following field names are allowed for Exchange: \"IsRead\" - Indicates whether the message has been read \"HasAttachment\" - Indicates whether or not the message has attachments \"IsSubmitted\" - Indicates whether the message has been submitted to the Outbox \"ContentClass\" - represents a content class of item Additionally, the following field names are allowed for pst/ost files: \"MessageClass\" - Represents a message class \"ContainerClass\" - Represents a folder container class \"Importance\" - Represents a message importance \"MessageSize\" - represents a size (in bytes) of message \"FolderName\" - represents a folder name \"ContentsCount\" - represents a total number of items in the folder \"UnreadContentsCount\" - represents the number of unread items in the folder. \"Subfolders\" - Indicates whether or not the folder has subfolders \"Read\" - the message is marked as having been read \"HasAttachment\" - the message has at least one attachment \"Unsent\" - the message is still being composed \"Unmodified\" - the message has not been modified since it was first saved (if unsent) or it was delivered (if sent) \"FromMe\" - the user receiving the message was also the user who sent the message \"Resend\" - the message includes a request for a resend operation with a non-delivery report \"NotifyRead\" - the user who sent the message has requested notification when a recipient first reads it \"NotifyUnread\" - the user who sent the message has requested notification when a recipient deletes it before reading or the Message object expires \"EverRead\" - the message has been read at least once The field value () can take the following values: For text fields - any string, For date type fields - the string of \"d-MMM-yyy\" format, ex. \"10-Feb-2009\", For flags (fields of boolean type) - either \"True\", or \"False\" - - :param request ListEmailModelsRequest object with parameters - :return: ListResponseOfEmailDto - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'ListResponseOfEmailDto') - - def list_email_models_async(self, request: requests.ListEmailModelsRequest) -> multiprocessing.pool.AsyncResult: - """Get messages from folder, filtered by query - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - The query string should have the following view. The example of a simple expression: '' '', where <Field Name> - the name of a message field through which filtering is made, <Comparison operator> - comparison operators, as their name implies, allow to compare message field and specified value, <Field value> - value to be compared with a message field. The number of simple expressions can make a compound one, ex.: ( & ) | , where \"&\" - logical-AND operator, \"|\" - logical-OR operator At present the following values are allowed as a field name (): \"To\" - represents a TO field of message, \"Text\" - represents string in the header or body of the message, \"Bcc\" - represents a BCC field of message, \"Body\" - represents a string in the body of message, \"Cc\" - represents a CC field of message, \"From\" - represents a From field of message, \"Subject\" - represents a string in the subject of message, \"InternalDate\" - represents an internal date of message, \"SentDate\" - represents a sent date of message Additionally, the following field names are allowed for IMAP-protocol: \"Answered\" - represents an /Answered flag of message \"Seen\" - represents a /Seen flag of message \"Flagged\" - represents a /Flagged flag of message \"Draft\" - represents a /Draft flag of message \"Deleted\" - represents a Deleted/ flag of message \"Recent\" - represents a Deleted/ flag of message \"MessageSize\" - represents a size (in bytes) of message Additionally, the following field names are allowed for Exchange: \"IsRead\" - Indicates whether the message has been read \"HasAttachment\" - Indicates whether or not the message has attachments \"IsSubmitted\" - Indicates whether the message has been submitted to the Outbox \"ContentClass\" - represents a content class of item Additionally, the following field names are allowed for pst/ost files: \"MessageClass\" - Represents a message class \"ContainerClass\" - Represents a folder container class \"Importance\" - Represents a message importance \"MessageSize\" - represents a size (in bytes) of message \"FolderName\" - represents a folder name \"ContentsCount\" - represents a total number of items in the folder \"UnreadContentsCount\" - represents the number of unread items in the folder. \"Subfolders\" - Indicates whether or not the folder has subfolders \"Read\" - the message is marked as having been read \"HasAttachment\" - the message has at least one attachment \"Unsent\" - the message is still being composed \"Unmodified\" - the message has not been modified since it was first saved (if unsent) or it was delivered (if sent) \"FromMe\" - the user receiving the message was also the user who sent the message \"Resend\" - the message includes a request for a resend operation with a non-delivery report \"NotifyRead\" - the user who sent the message has requested notification when a recipient first reads it \"NotifyUnread\" - the user who sent the message has requested notification when a recipient deletes it before reading or the Message object expires \"EverRead\" - the message has been read at least once The field value () can take the following values: For text fields - any string, For date type fields - the string of \"d-MMM-yyy\" format, ex. \"10-Feb-2009\", For flags (fields of boolean type) - either \"True\", or \"False\" - - :param request ListEmailModelsRequest 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 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 - - - :param request MoveFileRequest 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_file_async(self, request: requests.MoveFileRequest) -> multiprocessing.pool.AsyncResult: - """move_file - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request MoveFileRequest 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_folder(self, request: requests.MoveFolderRequest) : - """move_folder - - - :param request MoveFolderRequest 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_folder_async(self, request: requests.MoveFolderRequest) -> multiprocessing.pool.AsyncResult: - """move_folder - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request MoveFolderRequest 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 object_exists(self, request: requests.ObjectExistsRequest) -> ObjectExist: - """object_exists - - - :param request ObjectExistsRequest object with parameters - :return: ObjectExist - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'ObjectExist') - - def object_exists_async(self, request: requests.ObjectExistsRequest) -> multiprocessing.pool.AsyncResult: - """object_exists - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request ObjectExistsRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns ObjectExist) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'ObjectExist') - - def save_calendar_model(self, request: requests.SaveCalendarModelRequest) : - """Save iCalendar - - - :param request SaveCalendarModelRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', None) - - def save_calendar_model_async(self, request: requests.SaveCalendarModelRequest) -> multiprocessing.pool.AsyncResult: - """Save iCalendar - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request SaveCalendarModelRequest 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 save_contact_model(self, request: requests.SaveContactModelRequest) : - """Save contact. - - - :param request SaveContactModelRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', None) - - def save_contact_model_async(self, request: requests.SaveContactModelRequest) -> multiprocessing.pool.AsyncResult: - """Save contact. - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request SaveContactModelRequest 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 save_email_client_account(self, request: requests.SaveEmailClientAccountRequest) : - """Create email client account file (*.account) with any of supported credentials - - - :param request SaveEmailClientAccountRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', None) - - def save_email_client_account_async(self, request: requests.SaveEmailClientAccountRequest) -> multiprocessing.pool.AsyncResult: - """Create email client account file (*.account) with any of supported credentials - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request SaveEmailClientAccountRequest 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 save_email_client_multi_account(self, request: requests.SaveEmailClientMultiAccountRequest) : - """Create email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\". - - - :param request SaveEmailClientMultiAccountRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', None) - - def save_email_client_multi_account_async(self, request: requests.SaveEmailClientMultiAccountRequest) -> multiprocessing.pool.AsyncResult: - """Create email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\". - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request SaveEmailClientMultiAccountRequest 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 save_email_model(self, request: requests.SaveEmailModelRequest) : - """Save email document. - - - :param request SaveEmailModelRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', None) - - def save_email_model_async(self, request: requests.SaveEmailModelRequest) -> multiprocessing.pool.AsyncResult: - """Save email document. - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request SaveEmailModelRequest 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 save_mail_account(self, request: requests.SaveMailAccountRequest) : - """Create email account file (*.account) with login/password authentication - - - :param request SaveMailAccountRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'POST', None) - - def save_mail_account_async(self, request: requests.SaveMailAccountRequest) -> multiprocessing.pool.AsyncResult: - """Create email account file (*.account) with login/password authentication - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request SaveMailAccountRequest 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, 'POST', None) - - def save_mail_o_auth_account(self, request: requests.SaveMailOAuthAccountRequest) : - """Create email account file (*.account) with OAuth - - - :param request SaveMailOAuthAccountRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'POST', None) - - def save_mail_o_auth_account_async(self, request: requests.SaveMailOAuthAccountRequest) -> multiprocessing.pool.AsyncResult: - """Create email account file (*.account) with OAuth - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request SaveMailOAuthAccountRequest 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, 'POST', None) - - def save_mapi_calendar_model(self, request: requests.SaveMapiCalendarModelRequest) : - """Save MAPI Calendar to storage. - - - :param request SaveMapiCalendarModelRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', None) - - def save_mapi_calendar_model_async(self, request: requests.SaveMapiCalendarModelRequest) -> multiprocessing.pool.AsyncResult: - """Save MAPI Calendar to storage. - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request SaveMapiCalendarModelRequest 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 save_mapi_contact_model(self, request: requests.SaveMapiContactModelRequest) : - """Save MAPI Contact to storage. - - - :param request SaveMapiContactModelRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', None) - - def save_mapi_contact_model_async(self, request: requests.SaveMapiContactModelRequest) -> multiprocessing.pool.AsyncResult: - """Save MAPI Contact to storage. - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request SaveMapiContactModelRequest 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 save_mapi_message_model(self, request: requests.SaveMapiMessageModelRequest) : - """Save MAPI message to storage. - - - :param request SaveMapiMessageModelRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', None) - - def save_mapi_message_model_async(self, request: requests.SaveMapiMessageModelRequest) -> multiprocessing.pool.AsyncResult: - """Save MAPI message to storage. - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request SaveMapiMessageModelRequest 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 send_email(self, request: requests.SendEmailRequest) : - """Send an email from *.eml file located on storage - - - :param request SendEmailRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'POST', None) - - def send_email_async(self, request: requests.SendEmailRequest) -> multiprocessing.pool.AsyncResult: - """Send an email from *.eml file located on storage - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request SendEmailRequest 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, 'POST', None) - - def send_email_mime(self, request: requests.SendEmailMimeRequest) : - """Send an email specified by MIME in request - - - :param request SendEmailMimeRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'POST', None) - - def send_email_mime_async(self, request: requests.SendEmailMimeRequest) -> multiprocessing.pool.AsyncResult: - """Send an email specified by MIME in request - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request SendEmailMimeRequest 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, 'POST', None) - - def send_email_model(self, request: requests.SendEmailModelRequest) : - """Send an email specified by model in request - - - :param request SendEmailModelRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'POST', None) - - def send_email_model_async(self, request: requests.SendEmailModelRequest) -> multiprocessing.pool.AsyncResult: - """Send an email specified by model in request - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request SendEmailModelRequest 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, 'POST', None) - - def set_email_property(self, request: requests.SetEmailPropertyRequest) -> EmailPropertyResponse: - """Set email document property value - - - :param request SetEmailPropertyRequest object with parameters - :return: EmailPropertyResponse - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', 'EmailPropertyResponse') - - def set_email_property_async(self, request: requests.SetEmailPropertyRequest) -> multiprocessing.pool.AsyncResult: - """Set email document property value - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request SetEmailPropertyRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns EmailPropertyResponse) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'PUT', 'EmailPropertyResponse') - - def set_email_read_flag(self, request: requests.SetEmailReadFlagRequest) : - """Sets \"Message is read\" flag - - - :param request SetEmailReadFlagRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'POST', None) - - def set_email_read_flag_async(self, request: requests.SetEmailReadFlagRequest) -> multiprocessing.pool.AsyncResult: - """Sets \"Message is read\" flag - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request SetEmailReadFlagRequest 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, '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: - """storage_exists - - - :param request StorageExistsRequest object with parameters - :return: StorageExist - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'GET', 'StorageExist') - - def storage_exists_async(self, request: requests.StorageExistsRequest) -> multiprocessing.pool.AsyncResult: - """storage_exists - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request StorageExistsRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns StorageExist) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'GET', 'StorageExist') - - def update_calendar_properties(self, request: requests.UpdateCalendarPropertiesRequest) : - """Update calendar file properties - - - :param request UpdateCalendarPropertiesRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', None) - - def update_calendar_properties_async(self, request: requests.UpdateCalendarPropertiesRequest) -> multiprocessing.pool.AsyncResult: - """Update calendar file properties - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request UpdateCalendarPropertiesRequest 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 update_contact_properties(self, request: requests.UpdateContactPropertiesRequest) : - """Update contact document properties - - - :param request UpdateContactPropertiesRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', None) - - def update_contact_properties_async(self, request: requests.UpdateContactPropertiesRequest) -> multiprocessing.pool.AsyncResult: - """Update contact document properties - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request UpdateContactPropertiesRequest 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 update_mapi_properties(self, request: requests.UpdateMapiPropertiesRequest) : - """Update document properties - - - :param request UpdateMapiPropertiesRequest object with parameters - :return: None - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', None) - - def update_mapi_properties_async(self, request: requests.UpdateMapiPropertiesRequest) -> multiprocessing.pool.AsyncResult: - """Update document properties - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request UpdateMapiPropertiesRequest 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 upload_file(self, request: requests.UploadFileRequest) -> FilesUploadResult: - """upload_file - - - :param request UploadFileRequest object with parameters - :return: FilesUploadResult - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request(http_request, 'PUT', 'FilesUploadResult') - - def upload_file_async(self, request: requests.UploadFileRequest) -> multiprocessing.pool.AsyncResult: - """upload_file - Performs operation asynchronously. Returns multiprocessing.pool.AsyncResult - - :param request UploadFileRequest object with parameters - :return: multiprocessing.pool.AsyncResult (AsyncResult.get() returns FilesUploadResult) - """ - http_request = request.to_http_info(self.api_client.configuration) - return self.__make_request_async(http_request, 'PUT', 'FilesUploadResult') - - def __make_request(self, http_request, method, return_type): - def call_api(): - return self.api_client.call_api( - resource_path=http_request.resource_path, - method=method, - path_params=http_request.path_params, - query_params=http_request.query_params, - header_params=http_request.header_params, - body=http_request.body_params, - post_params=http_request.form_params, - files=http_request.files, - response_type=return_type, - auth_settings=http_request.auth_settings, - _return_http_data_only=http_request.return_http_data_only, - _preload_content=http_request.preload_content, - _request_timeout=http_request.request_timeout, - collection_formats=http_request.collection_formats) - - try: - return call_api() - except ApiException as ex: - if ex.code == 401: - self.__request_token() - return call_api() - raise - - def __make_request_async(self, http_request, method, return_type): - def call_api_async(): - return self.api_client.call_api_async( - resource_path=http_request.resource_path, - method=method, - path_params=http_request.path_params, - query_params=http_request.query_params, - header_params=http_request.header_params, - body=http_request.body_params, - post_params=http_request.form_params, - files=http_request.files, - response_type=return_type, - auth_settings=http_request.auth_settings, - _return_http_data_only=http_request.return_http_data_only, - _preload_content=http_request.preload_content, - _request_timeout=http_request.request_timeout, - collection_formats=http_request.collection_formats) - - try: - return call_api_async() - except ApiException as ex: - if ex.code == 401: - self.__request_token() - return call_api_async() - raise - - def __request_token(self): - config = self.api_client.configuration - request_url = "/connect/token" - form_params = [('grant_type', 'client_credentials'), ('client_id', config.api_key['app_sid']), - ('client_secret', config.api_key['api_key'])] - - header_params = {'Accept': 'application/json', 'Content-Type': 'application/x-www-form-urlencoded'} - - api_version = self.api_client.configuration.api_version - self.api_client.configuration.api_version = '' - - data = self.api_client.call_api(request_url, 'POST', - {}, - [], - header_params, - post_params=form_params, - response_type='object', - files={}, _return_http_data_only=True, - host=config.get_auth_url()) - access_token = data['access_token'] if six.PY3 else data['access_token'].encode('utf8') - self.api_client.configuration.access_token = access_token - - self.api_client.configuration.api_version = api_version + :param request: EmailGetListRequest object with parameters + :type request: EmailGetListRequest + :return: EmailStorageList + """ + # verify the required parameter 'format' is set + if request.format is None: + raise ValueError("Missing the required parameter `format` when calling `get_list`") + + collection_formats = {} + path = '/email/list' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('format') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.format if request.format is not None else '') + else: + if request.format is not None: + query_params.append((self._lowercase_first_letter('format'), request.format)) + path_parameter = '{' + self._lowercase_first_letter('folder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.folder if request.folder is not None else '') + else: + if request.folder is not None: + query_params.append((self._lowercase_first_letter('folder'), request.folder)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + path_parameter = '{' + self._lowercase_first_letter('itemsPerPage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.items_per_page if request.items_per_page is not None else '') + else: + if request.items_per_page is not None: + query_params.append((self._lowercase_first_letter('itemsPerPage'), request.items_per_page)) + path_parameter = '{' + self._lowercase_first_letter('pageNumber') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.page_number if request.page_number is not None else '') + else: + if request.page_number is not None: + query_params.append((self._lowercase_first_letter('pageNumber'), request.page_number)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'EmailStorageList') + + def save(self, request: EmailSaveRequest): + """Save email document to storage. + + :param request: Email document create/update request. + :type request: EmailSaveRequest + :return: None + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `save`") + + collection_formats = {} + path = '/email' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', None) diff --git a/sdk/AsposeEmailCloudSdk/api/email_cloud.py b/sdk/AsposeEmailCloudSdk/api/email_cloud.py new file mode 100644 index 0000000..ca79165 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/api/email_cloud.py @@ -0,0 +1,148 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from __future__ import absolute_import + +from AsposeEmailCloudSdk import Configuration, ApiClient +from AsposeEmailCloudSdk.api import * + +class EmailCloud(object): + """ + Aspose.Email Cloud API. + """ + + def __init__(self, app_key=None, app_sid=None, base_url=None, + api_version=None, debug=False): + """ + Initializes a new instance of the EmailCloud class. + + :param app_key: The app key. + :type app_key: str + :param app_sid: The app sid. + :type app_sid: str + :param base_url: The base URL. + :type base_url: str + :param api_version: API version. + :type api_version: str + :param debug: If debug mode is enabled. False by default. + :type debug: bool + """ + configuration = Configuration(app_key=app_key, + app_sid=app_sid, + base_url=base_url, + api_version=api_version, + debug=debug) + api_client = ApiClient(configuration) + + + + + self._calendar = CalendarApi(api_client) + + self._contact = ContactApi(api_client) + + self._email = EmailApi(api_client) + + self._disposable_email = DisposableEmailApi(api_client) + + self._email_config = EmailConfigApi(api_client) + + + self._mapi = MapiGroup(api_client) + + self._client = ClientGroup(api_client) + + self._ai = AiGroup(api_client) + + self._cloud_storage = CloudStorageGroup(api_client) + + + + @property + def calendar(self) -> CalendarApi: + """ + iCalendar document operations. + """ + return self._calendar + + @property + def contact(self) -> ContactApi: + """ + Contact document operations. Supported formats: VCard, MSG, WebDav + """ + return self._contact + + @property + def email(self) -> EmailApi: + """ + Email document (*.eml) operations. + """ + return self._email + + @property + def disposable_email(self) -> DisposableEmailApi: + """ + Check email address is disposable operations + """ + return self._disposable_email + + @property + def email_config(self) -> EmailConfigApi: + """ + Email server configuration discovery. + """ + return self._email_config + + + + @property + def mapi(self) -> MapiGroup: + """ + MAPI operations. + """ + return self._mapi + + @property + def client(self) -> ClientGroup: + """ + Builtin Email client operations. + """ + return self._client + + @property + def ai(self) -> AiGroup: + """ + AI powered operations. + """ + return self._ai + + @property + def cloud_storage(self) -> CloudStorageGroup: + """ + Cloud file storage operations. + """ + return self._cloud_storage + diff --git a/sdk/AsposeEmailCloudSdk/api/email_config_api.py b/sdk/AsposeEmailCloudSdk/api/email_config_api.py new file mode 100644 index 0000000..8264b50 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/api/email_config_api.py @@ -0,0 +1,148 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from __future__ import absolute_import + +from AsposeEmailCloudSdk.api.api_base import ApiBase +from AsposeEmailCloudSdk.models import * + + +class EmailConfigApi(ApiBase): + """ + Aspose.Email Cloud API. EmailConfigApi operations. + + """ + + def __init__(self, api_client): + super(EmailConfigApi, self).__init__(api_client) + + def discover(self, request: EmailConfigDiscoverRequest) -> EmailAccountConfigList: + """Discover email accounts by email address. Does not validate discovered accounts. + + + :param request: EmailConfigDiscoverRequest object with parameters + :type request: EmailConfigDiscoverRequest + :return: EmailAccountConfigList + """ + # verify the required parameter 'address' is set + if request.address is None: + raise ValueError("Missing the required parameter `address` when calling `discover`") + + collection_formats = {} + path = '/email/config/discover' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('address') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.address if request.address is not None else '') + else: + if request.address is not None: + query_params.append((self._lowercase_first_letter('address'), request.address)) + path_parameter = '{' + self._lowercase_first_letter('fastProcessing') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.fast_processing if request.fast_processing is not None else '') + else: + if request.fast_processing is not None: + query_params.append((self._lowercase_first_letter('fastProcessing'), request.fast_processing)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'EmailAccountConfigList') + + def discover_oauth(self, request: EmailConfigDiscoverOauthRequest) -> EmailAccountConfigList: + """Discover email accounts by email address. Validates discovered accounts using OAuth 2.0. + + :param request: Discover email configuration request. + :type request: EmailConfigDiscoverOauthRequest + :return: EmailAccountConfigList + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `discover_oauth`") + + collection_formats = {} + path = '/email/config/discover/oauth' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'EmailAccountConfigList') + + def discover_password(self, request: EmailConfigDiscoverPasswordRequest) -> EmailAccountConfigList: + """Discover email accounts by email address. Validates discovered accounts using login and password. + + :param request: Discover email configuration request. + :type request: EmailConfigDiscoverPasswordRequest + :return: EmailAccountConfigList + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `discover_password`") + + collection_formats = {} + path = '/email/config/discover/password' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'EmailAccountConfigList') diff --git a/sdk/AsposeEmailCloudSdk/api/file_api.py b/sdk/AsposeEmailCloudSdk/api/file_api.py new file mode 100644 index 0000000..7157871 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/api/file_api.py @@ -0,0 +1,329 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from __future__ import absolute_import + +from AsposeEmailCloudSdk.api.api_base import ApiBase +from AsposeEmailCloudSdk.models import * + + +class FileApi(ApiBase): + """ + Aspose.Email Cloud API. FileApi operations. + + """ + + def __init__(self, api_client): + super(FileApi, self).__init__(api_client) + + def copy_file(self, request: CopyFileRequest): + """Copy file + + + :param request: CopyFileRequest object with parameters + :type request: CopyFileRequest + :return: None + """ + # verify the required parameter 'src_path' is set + if request.src_path is None: + raise ValueError("Missing the required parameter `src_path` when calling `copy_file`") + # verify the required parameter 'dest_path' is set + if request.dest_path is None: + raise ValueError("Missing the required parameter `dest_path` when calling `copy_file`") + + collection_formats = {} + path = '/email/storage/file/copy/{srcPath}' + path_params = {} + if request.src_path is not None: + path_params[self._lowercase_first_letter('srcPath')] = request.src_path + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('destPath') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.dest_path if request.dest_path is not None else '') + else: + if request.dest_path is not None: + query_params.append((self._lowercase_first_letter('destPath'), request.dest_path)) + path_parameter = '{' + self._lowercase_first_letter('srcStorageName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.src_storage_name if request.src_storage_name is not None else '') + else: + if request.src_storage_name is not None: + query_params.append((self._lowercase_first_letter('srcStorageName'), request.src_storage_name)) + path_parameter = '{' + self._lowercase_first_letter('destStorageName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.dest_storage_name if request.dest_storage_name is not None else '') + else: + if request.dest_storage_name is not None: + query_params.append((self._lowercase_first_letter('destStorageName'), request.dest_storage_name)) + path_parameter = '{' + self._lowercase_first_letter('versionId') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.version_id if request.version_id is not None else '') + else: + if request.version_id is not None: + query_params.append((self._lowercase_first_letter('versionId'), request.version_id)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'PUT', None) + + def delete_file(self, request: DeleteFileRequest): + """Delete file + + + :param request: DeleteFileRequest object with parameters + :type request: DeleteFileRequest + :return: None + """ + # verify the required parameter 'path' is set + if request.path is None: + raise ValueError("Missing the required parameter `path` when calling `delete_file`") + + collection_formats = {} + path = '/email/storage/file/{path}' + path_params = {} + if request.path is not None: + path_params[self._lowercase_first_letter('path')] = request.path + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('storageName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage_name if request.storage_name is not None else '') + else: + if request.storage_name is not None: + query_params.append((self._lowercase_first_letter('storageName'), request.storage_name)) + path_parameter = '{' + self._lowercase_first_letter('versionId') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.version_id if request.version_id is not None else '') + else: + if request.version_id is not None: + query_params.append((self._lowercase_first_letter('versionId'), request.version_id)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'DELETE', None) + + def download_file(self, request: DownloadFileRequest) -> str: + """Download file + + + :param request: DownloadFileRequest object with parameters + :type request: DownloadFileRequest + :return: str + """ + # verify the required parameter 'path' is set + if request.path is None: + raise ValueError("Missing the required parameter `path` when calling `download_file`") + + collection_formats = {} + path = '/email/storage/file/{path}' + path_params = {} + if request.path is not None: + path_params[self._lowercase_first_letter('path')] = request.path + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('storageName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage_name if request.storage_name is not None else '') + else: + if request.storage_name is not None: + query_params.append((self._lowercase_first_letter('storageName'), request.storage_name)) + path_parameter = '{' + self._lowercase_first_letter('versionId') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.version_id if request.version_id is not None else '') + else: + if request.version_id is not None: + query_params.append((self._lowercase_first_letter('versionId'), request.version_id)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'file') + + def move_file(self, request: MoveFileRequest): + """Move file + + + :param request: MoveFileRequest object with parameters + :type request: MoveFileRequest + :return: None + """ + # verify the required parameter 'src_path' is set + if request.src_path is None: + raise ValueError("Missing the required parameter `src_path` when calling `move_file`") + # verify the required parameter 'dest_path' is set + if request.dest_path is None: + raise ValueError("Missing the required parameter `dest_path` when calling `move_file`") + + collection_formats = {} + path = '/email/storage/file/move/{srcPath}' + path_params = {} + if request.src_path is not None: + path_params[self._lowercase_first_letter('srcPath')] = request.src_path + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('destPath') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.dest_path if request.dest_path is not None else '') + else: + if request.dest_path is not None: + query_params.append((self._lowercase_first_letter('destPath'), request.dest_path)) + path_parameter = '{' + self._lowercase_first_letter('srcStorageName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.src_storage_name if request.src_storage_name is not None else '') + else: + if request.src_storage_name is not None: + query_params.append((self._lowercase_first_letter('srcStorageName'), request.src_storage_name)) + path_parameter = '{' + self._lowercase_first_letter('destStorageName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.dest_storage_name if request.dest_storage_name is not None else '') + else: + if request.dest_storage_name is not None: + query_params.append((self._lowercase_first_letter('destStorageName'), request.dest_storage_name)) + path_parameter = '{' + self._lowercase_first_letter('versionId') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.version_id if request.version_id is not None else '') + else: + if request.version_id is not None: + query_params.append((self._lowercase_first_letter('versionId'), request.version_id)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'PUT', None) + + def upload_file(self, request: UploadFileRequest) -> FilesUploadResult: + """Upload file + + + :param request: UploadFileRequest object with parameters + :type request: UploadFileRequest + :return: FilesUploadResult + """ + # verify the required parameter 'path' is set + if request.path is None: + raise ValueError("Missing the required parameter `path` when calling `upload_file`") + # verify the required parameter 'file' is set + if request.file is None: + raise ValueError("Missing the required parameter `file` when calling `upload_file`") + + collection_formats = {} + path = '/email/storage/file/{path}' + path_params = {} + if request.path is not None: + path_params[self._lowercase_first_letter('path')] = request.path + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('storageName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage_name if request.storage_name is not None else '') + else: + if request.storage_name is not None: + query_params.append((self._lowercase_first_letter('storageName'), request.storage_name)) + + form_params = [] + local_var_files = [] + if request.file is not None: + local_var_files.append((self._lowercase_first_letter('File'), request.file)) + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'FilesUploadResult') diff --git a/sdk/AsposeEmailCloudSdk/api/folder_api.py b/sdk/AsposeEmailCloudSdk/api/folder_api.py new file mode 100644 index 0000000..bb53fd9 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/api/folder_api.py @@ -0,0 +1,306 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from __future__ import absolute_import + +from AsposeEmailCloudSdk.api.api_base import ApiBase +from AsposeEmailCloudSdk.models import * + + +class FolderApi(ApiBase): + """ + Aspose.Email Cloud API. FolderApi operations. + + """ + + def __init__(self, api_client): + super(FolderApi, self).__init__(api_client) + + def copy_folder(self, request: CopyFolderRequest): + """Copy folder + + + :param request: CopyFolderRequest object with parameters + :type request: CopyFolderRequest + :return: None + """ + # verify the required parameter 'src_path' is set + if request.src_path is None: + raise ValueError("Missing the required parameter `src_path` when calling `copy_folder`") + # verify the required parameter 'dest_path' is set + if request.dest_path is None: + raise ValueError("Missing the required parameter `dest_path` when calling `copy_folder`") + + collection_formats = {} + path = '/email/storage/folder/copy/{srcPath}' + path_params = {} + if request.src_path is not None: + path_params[self._lowercase_first_letter('srcPath')] = request.src_path + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('destPath') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.dest_path if request.dest_path is not None else '') + else: + if request.dest_path is not None: + query_params.append((self._lowercase_first_letter('destPath'), request.dest_path)) + path_parameter = '{' + self._lowercase_first_letter('srcStorageName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.src_storage_name if request.src_storage_name is not None else '') + else: + if request.src_storage_name is not None: + query_params.append((self._lowercase_first_letter('srcStorageName'), request.src_storage_name)) + path_parameter = '{' + self._lowercase_first_letter('destStorageName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.dest_storage_name if request.dest_storage_name is not None else '') + else: + if request.dest_storage_name is not None: + query_params.append((self._lowercase_first_letter('destStorageName'), request.dest_storage_name)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'PUT', None) + + def create_folder(self, request: CreateFolderRequest): + """Create the folder + + + :param request: CreateFolderRequest object with parameters + :type request: CreateFolderRequest + :return: None + """ + # verify the required parameter 'path' is set + if request.path is None: + raise ValueError("Missing the required parameter `path` when calling `create_folder`") + + collection_formats = {} + path = '/email/storage/folder/{path}' + path_params = {} + if request.path is not None: + path_params[self._lowercase_first_letter('path')] = request.path + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('storageName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage_name if request.storage_name is not None else '') + else: + if request.storage_name is not None: + query_params.append((self._lowercase_first_letter('storageName'), request.storage_name)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'PUT', None) + + def delete_folder(self, request: DeleteFolderRequest): + """Delete folder + + + :param request: DeleteFolderRequest object with parameters + :type request: DeleteFolderRequest + :return: None + """ + # verify the required parameter 'path' is set + if request.path is None: + raise ValueError("Missing the required parameter `path` when calling `delete_folder`") + + collection_formats = {} + path = '/email/storage/folder/{path}' + path_params = {} + if request.path is not None: + path_params[self._lowercase_first_letter('path')] = request.path + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('storageName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage_name if request.storage_name is not None else '') + else: + if request.storage_name is not None: + query_params.append((self._lowercase_first_letter('storageName'), request.storage_name)) + path_parameter = '{' + self._lowercase_first_letter('recursive') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.recursive if request.recursive is not None else '') + else: + if request.recursive is not None: + query_params.append((self._lowercase_first_letter('recursive'), request.recursive)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'DELETE', None) + + def get_files_list(self, request: GetFilesListRequest) -> FilesList: + """Get all files and folders within a folder + + + :param request: GetFilesListRequest object with parameters + :type request: GetFilesListRequest + :return: FilesList + """ + # verify the required parameter 'path' is set + if request.path is None: + raise ValueError("Missing the required parameter `path` when calling `get_files_list`") + + collection_formats = {} + path = '/email/storage/folder/{path}' + path_params = {} + if request.path is not None: + path_params[self._lowercase_first_letter('path')] = request.path + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('storageName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage_name if request.storage_name is not None else '') + else: + if request.storage_name is not None: + query_params.append((self._lowercase_first_letter('storageName'), request.storage_name)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'FilesList') + + def move_folder(self, request: MoveFolderRequest): + """Move folder + + + :param request: MoveFolderRequest object with parameters + :type request: MoveFolderRequest + :return: None + """ + # verify the required parameter 'src_path' is set + if request.src_path is None: + raise ValueError("Missing the required parameter `src_path` when calling `move_folder`") + # verify the required parameter 'dest_path' is set + if request.dest_path is None: + raise ValueError("Missing the required parameter `dest_path` when calling `move_folder`") + + collection_formats = {} + path = '/email/storage/folder/move/{srcPath}' + path_params = {} + if request.src_path is not None: + path_params[self._lowercase_first_letter('srcPath')] = request.src_path + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('destPath') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.dest_path if request.dest_path is not None else '') + else: + if request.dest_path is not None: + query_params.append((self._lowercase_first_letter('destPath'), request.dest_path)) + path_parameter = '{' + self._lowercase_first_letter('srcStorageName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.src_storage_name if request.src_storage_name is not None else '') + else: + if request.src_storage_name is not None: + query_params.append((self._lowercase_first_letter('srcStorageName'), request.src_storage_name)) + path_parameter = '{' + self._lowercase_first_letter('destStorageName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.dest_storage_name if request.dest_storage_name is not None else '') + else: + if request.dest_storage_name is not None: + query_params.append((self._lowercase_first_letter('destStorageName'), request.dest_storage_name)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'PUT', None) diff --git a/sdk/AsposeEmailCloudSdk/api/mapi_calendar_api.py b/sdk/AsposeEmailCloudSdk/api/mapi_calendar_api.py new file mode 100644 index 0000000..6577a65 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/api/mapi_calendar_api.py @@ -0,0 +1,223 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from __future__ import absolute_import + +from AsposeEmailCloudSdk.api.api_base import ApiBase +from AsposeEmailCloudSdk.models import * + + +class MapiCalendarApi(ApiBase): + """ + Aspose.Email Cloud API. MapiCalendarApi operations. + + """ + + def __init__(self, api_client): + super(MapiCalendarApi, self).__init__(api_client) + + def as_calendar_dto(self, mapi_calendar_dto: MapiCalendarDto) -> CalendarDto: + """Converts MAPI calendar model to CalendarDto model. + + :param mapi_calendar_dto: MAPI calendar model to convert. + :type mapi_calendar_dto: MapiCalendarDto + :return: CalendarDto + """ + # verify the required parameter 'mapi_calendar_dto' is set + if mapi_calendar_dto is None: + raise ValueError("Missing the required parameter `mapi_calendar_dto` when calling `as_calendar_dto`") + + collection_formats = {} + path = '/email/MapiCalendar/as-calendar-dto' + + header_params = {} + # 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']) + body_params = mapi_calendar_dto + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'CalendarDto') + + def as_file(self, request: MapiCalendarAsFileRequest) -> str: + """Converts MAPI calendar model to specified format and returns as file. + + :param request: MAPI calendar model to convert. + :type request: MapiCalendarAsFileRequest + :return: str + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `as_file`") + + collection_formats = {} + path = '/email/MapiCalendar/as-file' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'file') + + def from_file(self, request: MapiCalendarFromFileRequest) -> MapiCalendarDto: + """Converts calendar file to a MAPI model representation. + + + :param request: MapiCalendarFromFileRequest object with parameters + :type request: MapiCalendarFromFileRequest + :return: MapiCalendarDto + """ + # verify the required parameter 'file' is set + if request.file is None: + raise ValueError("Missing the required parameter `file` when calling `from_file`") + + collection_formats = {} + path = '/email/MapiCalendar/from-file' + path_params = {} + + query_params = [] + + form_params = [] + local_var_files = [] + if request.file is not None: + local_var_files.append((self._lowercase_first_letter('File'), request.file)) + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'MapiCalendarDto') + + def get(self, request: MapiCalendarGetRequest) -> MapiCalendarDto: + """Get MAPI calendar document. + + + :param request: MapiCalendarGetRequest object with parameters + :type request: MapiCalendarGetRequest + :return: MapiCalendarDto + """ + # verify the required parameter 'file_name' is set + if request.file_name is None: + raise ValueError("Missing the required parameter `file_name` when calling `get`") + + collection_formats = {} + path = '/email/MapiCalendar' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('fileName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.file_name if request.file_name is not None else '') + else: + if request.file_name is not None: + query_params.append((self._lowercase_first_letter('fileName'), request.file_name)) + path_parameter = '{' + self._lowercase_first_letter('folder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.folder if request.folder is not None else '') + else: + if request.folder is not None: + query_params.append((self._lowercase_first_letter('folder'), request.folder)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'MapiCalendarDto') + + def save(self, request: MapiCalendarSaveRequest): + """Save MAPI Calendar to storage. + + :param request: Calendar create/update request. + :type request: MapiCalendarSaveRequest + :return: None + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `save`") + + collection_formats = {} + path = '/email/MapiCalendar' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', None) diff --git a/sdk/AsposeEmailCloudSdk/api/mapi_contact_api.py b/sdk/AsposeEmailCloudSdk/api/mapi_contact_api.py new file mode 100644 index 0000000..9109831 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/api/mapi_contact_api.py @@ -0,0 +1,241 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from __future__ import absolute_import + +from AsposeEmailCloudSdk.api.api_base import ApiBase +from AsposeEmailCloudSdk.models import * + + +class MapiContactApi(ApiBase): + """ + Aspose.Email Cloud API. MapiContactApi operations. + + """ + + def __init__(self, api_client): + super(MapiContactApi, self).__init__(api_client) + + def as_contact_dto(self, mapi_contact_dto: MapiContactDto) -> ContactDto: + """Converts MAPI contact model to ContactDto model. + + :param mapi_contact_dto: MAPI contact model to convert. + :type mapi_contact_dto: MapiContactDto + :return: ContactDto + """ + # verify the required parameter 'mapi_contact_dto' is set + if mapi_contact_dto is None: + raise ValueError("Missing the required parameter `mapi_contact_dto` when calling `as_contact_dto`") + + collection_formats = {} + path = '/email/MapiContact/as-contact-dto' + + header_params = {} + # 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']) + body_params = mapi_contact_dto + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'ContactDto') + + def as_file(self, request: MapiContactAsFileRequest) -> str: + """Converts MAPI contact model to specified format and returns as file. + + :param request: MAPI contact model to convert. + :type request: MapiContactAsFileRequest + :return: str + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `as_file`") + + collection_formats = {} + path = '/email/MapiContact/as-file' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'file') + + def from_file(self, request: MapiContactFromFileRequest) -> MapiContactDto: + """Converts contact file to a MAPI model representation. + + + :param request: MapiContactFromFileRequest object with parameters + :type request: MapiContactFromFileRequest + :return: MapiContactDto + """ + # verify the required parameter 'format' is set + if request.format is None: + raise ValueError("Missing the required parameter `format` when calling `from_file`") + # verify the required parameter 'file' is set + if request.file is None: + raise ValueError("Missing the required parameter `file` when calling `from_file`") + + collection_formats = {} + path = '/email/MapiContact/from-file' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('format') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.format if request.format is not None else '') + else: + if request.format is not None: + query_params.append((self._lowercase_first_letter('format'), request.format)) + + form_params = [] + local_var_files = [] + if request.file is not None: + local_var_files.append((self._lowercase_first_letter('File'), request.file)) + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'MapiContactDto') + + def get(self, request: MapiContactGetRequest) -> MapiContactDto: + """Get MAPI contact document. + + + :param request: MapiContactGetRequest object with parameters + :type request: MapiContactGetRequest + :return: MapiContactDto + """ + # verify the required parameter 'format' is set + if request.format is None: + raise ValueError("Missing the required parameter `format` when calling `get`") + # verify the required parameter 'file_name' is set + if request.file_name is None: + raise ValueError("Missing the required parameter `file_name` when calling `get`") + + collection_formats = {} + path = '/email/MapiContact' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('format') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.format if request.format is not None else '') + else: + if request.format is not None: + query_params.append((self._lowercase_first_letter('format'), request.format)) + path_parameter = '{' + self._lowercase_first_letter('fileName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.file_name if request.file_name is not None else '') + else: + if request.file_name is not None: + query_params.append((self._lowercase_first_letter('fileName'), request.file_name)) + path_parameter = '{' + self._lowercase_first_letter('folder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.folder if request.folder is not None else '') + else: + if request.folder is not None: + query_params.append((self._lowercase_first_letter('folder'), request.folder)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'MapiContactDto') + + def save(self, request: MapiContactSaveRequest): + """Save MAPI Contact to storage. + + :param request: Create/Update contact request. + :type request: MapiContactSaveRequest + :return: None + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `save`") + + collection_formats = {} + path = '/email/MapiContact' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', None) diff --git a/sdk/AsposeEmailCloudSdk/api/mapi_group.py b/sdk/AsposeEmailCloudSdk/api/mapi_group.py new file mode 100644 index 0000000..312ac11 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/api/mapi_group.py @@ -0,0 +1,64 @@ + +# 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. +# +# ---------------------------------------------------------------------------- + +from __future__ import absolute_import +from AsposeEmailCloudSdk.api import * + +class MapiGroup(object): + """ + MAPI operations. + """ + def __init__(self, api_client): + + self._calendar = MapiCalendarApi(api_client) + + self._contact = MapiContactApi(api_client) + + self._message = MapiMessageApi(api_client) + + + @property + def calendar(self) -> MapiCalendarApi: + """ + MAPI calendar operations. + """ + return self._calendar + + @property + def contact(self) -> MapiContactApi: + """ + MAPI contact operations + """ + return self._contact + + @property + def message(self) -> MapiMessageApi: + """ + MAPI message operations + """ + return self._message + diff --git a/sdk/AsposeEmailCloudSdk/api/mapi_message_api.py b/sdk/AsposeEmailCloudSdk/api/mapi_message_api.py new file mode 100644 index 0000000..a37a04d --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/api/mapi_message_api.py @@ -0,0 +1,241 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from __future__ import absolute_import + +from AsposeEmailCloudSdk.api.api_base import ApiBase +from AsposeEmailCloudSdk.models import * + + +class MapiMessageApi(ApiBase): + """ + Aspose.Email Cloud API. MapiMessageApi operations. + + """ + + def __init__(self, api_client): + super(MapiMessageApi, self).__init__(api_client) + + def as_email_dto(self, mapi_message: MapiMessageDto) -> EmailDto: + """Converts MAPI message model to EmailDto model + + :param mapi_message: MAPI message model to convert + :type mapi_message: MapiMessageDto + :return: EmailDto + """ + # verify the required parameter 'mapi_message' is set + if mapi_message is None: + raise ValueError("Missing the required parameter `mapi_message` when calling `as_email_dto`") + + collection_formats = {} + path = '/email/MapiMessage/as-email-dto' + + header_params = {} + # 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']) + body_params = mapi_message + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'EmailDto') + + def as_file(self, request: MapiMessageAsFileRequest) -> str: + """Converts MAPI message model to specified format and returns as file. + + :param request: MAPI message model to convert. + :type request: MapiMessageAsFileRequest + :return: str + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `as_file`") + + collection_formats = {} + path = '/email/MapiMessage/as-file' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'file') + + def from_file(self, request: MapiMessageFromFileRequest) -> MapiMessageDto: + """Converts email file to a MAPI model representation + + + :param request: MapiMessageFromFileRequest object with parameters + :type request: MapiMessageFromFileRequest + :return: MapiMessageDto + """ + # verify the required parameter 'format' is set + if request.format is None: + raise ValueError("Missing the required parameter `format` when calling `from_file`") + # verify the required parameter 'file' is set + if request.file is None: + raise ValueError("Missing the required parameter `file` when calling `from_file`") + + collection_formats = {} + path = '/email/MapiMessage/from-file' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('format') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.format if request.format is not None else '') + else: + if request.format is not None: + query_params.append((self._lowercase_first_letter('format'), request.format)) + + form_params = [] + local_var_files = [] + if request.file is not None: + local_var_files.append((self._lowercase_first_letter('File'), request.file)) + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'PUT', 'MapiMessageDto') + + def get(self, request: MapiMessageGetRequest) -> MapiMessageDto: + """Get MAPI message document. + + + :param request: MapiMessageGetRequest object with parameters + :type request: MapiMessageGetRequest + :return: MapiMessageDto + """ + # verify the required parameter 'format' is set + if request.format is None: + raise ValueError("Missing the required parameter `format` when calling `get`") + # verify the required parameter 'file_name' is set + if request.file_name is None: + raise ValueError("Missing the required parameter `file_name` when calling `get`") + + collection_formats = {} + path = '/email/MapiMessage' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('format') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.format if request.format is not None else '') + else: + if request.format is not None: + query_params.append((self._lowercase_first_letter('format'), request.format)) + path_parameter = '{' + self._lowercase_first_letter('fileName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.file_name if request.file_name is not None else '') + else: + if request.file_name is not None: + query_params.append((self._lowercase_first_letter('fileName'), request.file_name)) + path_parameter = '{' + self._lowercase_first_letter('folder') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.folder if request.folder is not None else '') + else: + if request.folder is not None: + query_params.append((self._lowercase_first_letter('folder'), request.folder)) + path_parameter = '{' + self._lowercase_first_letter('storage') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage if request.storage is not None else '') + else: + if request.storage is not None: + query_params.append((self._lowercase_first_letter('storage'), request.storage)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'MapiMessageDto') + + def save(self, request: MapiMessageSaveRequest): + """Save MAPI message to storage. + + :param request: Message create/update request. + :type request: MapiMessageSaveRequest + :return: None + """ + # verify the required parameter 'request' is set + if request is None: + raise ValueError("Missing the required parameter `request` when calling `save`") + + collection_formats = {} + path = '/email/MapiMessage' + + header_params = {} + # 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']) + body_params = request + # Authentication setting + auth_settings = ['JWT'] + + http_request_object = HttpRequest(path, None, None, header_params, None, body_params, None, None, auth_settings) + + return self._make_request(http_request_object, 'PUT', None) diff --git a/sdk/AsposeEmailCloudSdk/api/storage_api.py b/sdk/AsposeEmailCloudSdk/api/storage_api.py new file mode 100644 index 0000000..aa230b1 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/api/storage_api.py @@ -0,0 +1,219 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from __future__ import absolute_import + +from AsposeEmailCloudSdk.api.api_base import ApiBase +from AsposeEmailCloudSdk.models import * + + +class StorageApi(ApiBase): + """ + Aspose.Email Cloud API. StorageApi operations. + + """ + + def __init__(self, api_client): + super(StorageApi, self).__init__(api_client) + + def get_disc_usage(self, request: GetDiscUsageRequest) -> DiscUsage: + """Get disc usage + + + :param request: GetDiscUsageRequest object with parameters + :type request: GetDiscUsageRequest + :return: DiscUsage + """ + + collection_formats = {} + path = '/email/storage/disc' + path_params = {} + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('storageName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage_name if request.storage_name is not None else '') + else: + if request.storage_name is not None: + query_params.append((self._lowercase_first_letter('storageName'), request.storage_name)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'DiscUsage') + + def get_file_versions(self, request: GetFileVersionsRequest) -> FileVersions: + """Get file versions + + + :param request: GetFileVersionsRequest object with parameters + :type request: GetFileVersionsRequest + :return: FileVersions + """ + # verify the required parameter 'path' is set + if request.path is None: + raise ValueError("Missing the required parameter `path` when calling `get_file_versions`") + + collection_formats = {} + path = '/email/storage/version/{path}' + path_params = {} + if request.path is not None: + path_params[self._lowercase_first_letter('path')] = request.path + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('storageName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage_name if request.storage_name is not None else '') + else: + if request.storage_name is not None: + query_params.append((self._lowercase_first_letter('storageName'), request.storage_name)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'FileVersions') + + def object_exists(self, request: ObjectExistsRequest) -> ObjectExist: + """Check if file or folder exists + + + :param request: ObjectExistsRequest object with parameters + :type request: ObjectExistsRequest + :return: ObjectExist + """ + # verify the required parameter 'path' is set + if request.path is None: + raise ValueError("Missing the required parameter `path` when calling `object_exists`") + + collection_formats = {} + path = '/email/storage/exist/{path}' + path_params = {} + if request.path is not None: + path_params[self._lowercase_first_letter('path')] = request.path + + query_params = [] + path_parameter = '{' + self._lowercase_first_letter('storageName') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.storage_name if request.storage_name is not None else '') + else: + if request.storage_name is not None: + query_params.append((self._lowercase_first_letter('storageName'), request.storage_name)) + path_parameter = '{' + self._lowercase_first_letter('versionId') + '}' + if path_parameter in path: + path = path.replace(path_parameter, request.version_id if request.version_id is not None else '') + else: + if request.version_id is not None: + query_params.append((self._lowercase_first_letter('versionId'), request.version_id)) + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'ObjectExist') + + def exists(self, request: StorageExistsRequest) -> StorageExist: + """Check if storage exists + + + :param request: StorageExistsRequest object with parameters + :type request: StorageExistsRequest + :return: StorageExist + """ + # verify the required parameter 'storage_name' is set + if request.storage_name is None: + raise ValueError("Missing the required parameter `storage_name` when calling `exists`") + + collection_formats = {} + path = '/email/storage/{storageName}/exist' + path_params = {} + if request.storage_name is not None: + path_params[self._lowercase_first_letter('storageName')] = request.storage_name + + query_params = [] + + form_params = [] + local_var_files = [] + + header_params = {} + # 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'] + + http_request_object = HttpRequest(path, path_params, query_params, header_params, form_params, None, local_var_files, + collection_formats, auth_settings) + + return self._make_request(http_request_object, 'GET', 'StorageExist') diff --git a/sdk/AsposeEmailCloudSdk/configuration.py b/sdk/AsposeEmailCloudSdk/configuration.py index d853080..94e2d5d 100644 --- a/sdk/AsposeEmailCloudSdk/configuration.py +++ b/sdk/AsposeEmailCloudSdk/configuration.py @@ -41,7 +41,7 @@ class Configuration(object): default_base_url = 'https://api.aspose.cloud' - default_api_version = 'v3.0' + default_api_version = 'v4.0' def __init__(self, app_key=None, app_sid=None, base_url=None, api_version=None, debug=False): diff --git a/sdk/AsposeEmailCloudSdk/models/__init__.py b/sdk/AsposeEmailCloudSdk/models/__init__.py index b9fe2ae..8f6812c 100644 --- a/sdk/AsposeEmailCloudSdk/models/__init__.py +++ b/sdk/AsposeEmailCloudSdk/models/__init__.py @@ -27,13 +27,9 @@ from __future__ import absolute_import # import models into model package -from AsposeEmailCloudSdk.models.account_base_request import AccountBaseRequest -from AsposeEmailCloudSdk.models.add_attachment_request import AddAttachmentRequest from AsposeEmailCloudSdk.models.ai_bcr_image import AiBcrImage -from AsposeEmailCloudSdk.models.ai_bcr_ocr_data import AiBcrOcrData -from AsposeEmailCloudSdk.models.ai_bcr_ocr_data_part import AiBcrOcrDataPart from AsposeEmailCloudSdk.models.ai_bcr_options import AiBcrOptions -from AsposeEmailCloudSdk.models.ai_bcr_rq import AiBcrRq +from AsposeEmailCloudSdk.models.ai_bcr_parse_storage_request import AiBcrParseStorageRequest from AsposeEmailCloudSdk.models.ai_name_component import AiNameComponent from AsposeEmailCloudSdk.models.ai_name_cultural_context import AiNameCulturalContext from AsposeEmailCloudSdk.models.ai_name_extracted import AiNameExtracted @@ -42,35 +38,31 @@ from AsposeEmailCloudSdk.models.ai_name_gender_hypothesis import AiNameGenderHypothesis from AsposeEmailCloudSdk.models.ai_name_match_result import AiNameMatchResult from AsposeEmailCloudSdk.models.ai_name_mismatch import AiNameMismatch -from AsposeEmailCloudSdk.models.ai_name_parsed_rq import AiNameParsedRq +from AsposeEmailCloudSdk.models.ai_name_parsed_request import AiNameParsedRequest from AsposeEmailCloudSdk.models.ai_name_weighted import AiNameWeighted from AsposeEmailCloudSdk.models.ai_name_weighted_variants import AiNameWeightedVariants from AsposeEmailCloudSdk.models.associated_person import AssociatedPerson from AsposeEmailCloudSdk.models.attachment_base import AttachmentBase -from AsposeEmailCloudSdk.models.base_object import BaseObject +from AsposeEmailCloudSdk.models.calendar_as_alternate_request import CalendarAsAlternateRequest +from AsposeEmailCloudSdk.models.calendar_as_file_request import CalendarAsFileRequest from AsposeEmailCloudSdk.models.calendar_dto import CalendarDto -from AsposeEmailCloudSdk.models.calendar_dto_alternate_rq import CalendarDtoAlternateRq from AsposeEmailCloudSdk.models.calendar_reminder import CalendarReminder +from AsposeEmailCloudSdk.models.client_account_base_request import ClientAccountBaseRequest +from AsposeEmailCloudSdk.models.contact_as_file_request import ContactAsFileRequest from AsposeEmailCloudSdk.models.contact_dto import ContactDto from AsposeEmailCloudSdk.models.contact_photo import ContactPhoto from AsposeEmailCloudSdk.models.content_type import ContentType from AsposeEmailCloudSdk.models.content_type_parameter import ContentTypeParameter -from AsposeEmailCloudSdk.models.create_email_request import CreateEmailRequest from AsposeEmailCloudSdk.models.customer_event import CustomerEvent from AsposeEmailCloudSdk.models.disc_usage import DiscUsage -from AsposeEmailCloudSdk.models.discover_email_config_rq import DiscoverEmailConfigRq +from AsposeEmailCloudSdk.models.discover_email_config_request import DiscoverEmailConfigRequest from AsposeEmailCloudSdk.models.email_account_config import EmailAccountConfig -from AsposeEmailCloudSdk.models.email_account_request import EmailAccountRequest from AsposeEmailCloudSdk.models.email_address import EmailAddress +from AsposeEmailCloudSdk.models.email_as_file_request import EmailAsFileRequest from AsposeEmailCloudSdk.models.email_client_account import EmailClientAccount from AsposeEmailCloudSdk.models.email_client_account_credentials import EmailClientAccountCredentials from AsposeEmailCloudSdk.models.email_client_multi_account import EmailClientMultiAccount -from AsposeEmailCloudSdk.models.email_document import EmailDocument -from AsposeEmailCloudSdk.models.email_document_response import EmailDocumentResponse from AsposeEmailCloudSdk.models.email_dto import EmailDto -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 @@ -84,11 +76,7 @@ from AsposeEmailCloudSdk.models.file_versions import FileVersions from AsposeEmailCloudSdk.models.files_list import FilesList from AsposeEmailCloudSdk.models.files_upload_result import FilesUploadResult -from AsposeEmailCloudSdk.models.hierarchical_object_request import HierarchicalObjectRequest -from AsposeEmailCloudSdk.models.hierarchical_object_response import HierarchicalObjectResponse from AsposeEmailCloudSdk.models.instant_messenger_address import InstantMessengerAddress -from AsposeEmailCloudSdk.models.link import Link -from AsposeEmailCloudSdk.models.list_response_of_ai_bcr_ocr_data import ListResponseOfAiBcrOcrData from AsposeEmailCloudSdk.models.list_response_of_ai_name_component import ListResponseOfAiNameComponent from AsposeEmailCloudSdk.models.list_response_of_ai_name_extracted import ListResponseOfAiNameExtracted from AsposeEmailCloudSdk.models.list_response_of_ai_name_gender_hypothesis import ListResponseOfAiNameGenderHypothesis @@ -96,17 +84,17 @@ 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_message_base import ListResponseOfMailMessageBase from AsposeEmailCloudSdk.models.list_response_of_mail_server_folder import ListResponseOfMailServerFolder from AsposeEmailCloudSdk.models.list_response_of_storage_file_location import ListResponseOfStorageFileLocation from AsposeEmailCloudSdk.models.list_response_of_storage_model_of_calendar_dto import ListResponseOfStorageModelOfCalendarDto from AsposeEmailCloudSdk.models.list_response_of_storage_model_of_contact_dto import ListResponseOfStorageModelOfContactDto from AsposeEmailCloudSdk.models.list_response_of_storage_model_of_email_dto import ListResponseOfStorageModelOfEmailDto -from AsposeEmailCloudSdk.models.list_response_of_string import ListResponseOfString from AsposeEmailCloudSdk.models.mail_address import MailAddress +from AsposeEmailCloudSdk.models.mail_message_base import MailMessageBase from AsposeEmailCloudSdk.models.mail_server_folder import MailServerFolder from AsposeEmailCloudSdk.models.mapi_attachment_dto import MapiAttachmentDto +from AsposeEmailCloudSdk.models.mapi_calendar_as_file_request import MapiCalendarAsFileRequest from AsposeEmailCloudSdk.models.mapi_calendar_attendees_dto import MapiCalendarAttendeesDto from AsposeEmailCloudSdk.models.mapi_calendar_event_recurrence_dto import MapiCalendarEventRecurrenceDto from AsposeEmailCloudSdk.models.mapi_calendar_exception_info_dto import MapiCalendarExceptionInfoDto @@ -114,6 +102,7 @@ from AsposeEmailCloudSdk.models.mapi_calendar_time_zone_dto import MapiCalendarTimeZoneDto from AsposeEmailCloudSdk.models.mapi_calendar_time_zone_info_dto import MapiCalendarTimeZoneInfoDto from AsposeEmailCloudSdk.models.mapi_calendar_time_zone_rule_dto import MapiCalendarTimeZoneRuleDto +from AsposeEmailCloudSdk.models.mapi_contact_as_file_request import MapiContactAsFileRequest from AsposeEmailCloudSdk.models.mapi_contact_electronic_address_dto import MapiContactElectronicAddressDto from AsposeEmailCloudSdk.models.mapi_contact_electronic_address_property_set_dto import MapiContactElectronicAddressPropertySetDto from AsposeEmailCloudSdk.models.mapi_contact_event_property_set_dto import MapiContactEventPropertySetDto @@ -125,11 +114,11 @@ from AsposeEmailCloudSdk.models.mapi_contact_professional_property_set_dto import MapiContactProfessionalPropertySetDto from AsposeEmailCloudSdk.models.mapi_contact_telephone_property_set_dto import MapiContactTelephonePropertySetDto from AsposeEmailCloudSdk.models.mapi_electronic_address_dto import MapiElectronicAddressDto +from AsposeEmailCloudSdk.models.mapi_message_as_file_request import MapiMessageAsFileRequest from AsposeEmailCloudSdk.models.mapi_message_item_base_dto import MapiMessageItemBaseDto from AsposeEmailCloudSdk.models.mapi_property_descriptor import MapiPropertyDescriptor from AsposeEmailCloudSdk.models.mapi_property_dto import MapiPropertyDto from AsposeEmailCloudSdk.models.mapi_recipient_dto import MapiRecipientDto -from AsposeEmailCloudSdk.models.mime_response import MimeResponse from AsposeEmailCloudSdk.models.name_value_pair import NameValuePair from AsposeEmailCloudSdk.models.object_exist import ObjectExist from AsposeEmailCloudSdk.models.phone_number import PhoneNumber @@ -137,61 +126,67 @@ from AsposeEmailCloudSdk.models.recurrence_pattern_dto import RecurrencePatternDto from AsposeEmailCloudSdk.models.reminder_attendee import ReminderAttendee from AsposeEmailCloudSdk.models.reminder_trigger import ReminderTrigger -from AsposeEmailCloudSdk.models.set_email_property_request import SetEmailPropertyRequest from AsposeEmailCloudSdk.models.storage_exist import StorageExist from AsposeEmailCloudSdk.models.storage_file import StorageFile -from AsposeEmailCloudSdk.models.storage_file_rq_of_email_client_account import StorageFileRqOfEmailClientAccount -from AsposeEmailCloudSdk.models.storage_file_rq_of_email_client_multi_account import StorageFileRqOfEmailClientMultiAccount from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation from AsposeEmailCloudSdk.models.storage_model_of_calendar_dto import StorageModelOfCalendarDto from AsposeEmailCloudSdk.models.storage_model_of_contact_dto import StorageModelOfContactDto +from AsposeEmailCloudSdk.models.storage_model_of_email_client_account import StorageModelOfEmailClientAccount +from AsposeEmailCloudSdk.models.storage_model_of_email_client_multi_account import StorageModelOfEmailClientMultiAccount from AsposeEmailCloudSdk.models.storage_model_of_email_dto import StorageModelOfEmailDto -from AsposeEmailCloudSdk.models.storage_model_rq_of_calendar_dto import StorageModelRqOfCalendarDto -from AsposeEmailCloudSdk.models.storage_model_rq_of_contact_dto import StorageModelRqOfContactDto -from AsposeEmailCloudSdk.models.storage_model_rq_of_email_dto import StorageModelRqOfEmailDto -from AsposeEmailCloudSdk.models.storage_model_rq_of_mapi_calendar_dto import StorageModelRqOfMapiCalendarDto -from AsposeEmailCloudSdk.models.storage_model_rq_of_mapi_contact_dto import StorageModelRqOfMapiContactDto -from AsposeEmailCloudSdk.models.storage_model_rq_of_mapi_message_dto import StorageModelRqOfMapiMessageDto +from AsposeEmailCloudSdk.models.storage_model_of_mapi_calendar_dto import StorageModelOfMapiCalendarDto +from AsposeEmailCloudSdk.models.storage_model_of_mapi_contact_dto import StorageModelOfMapiContactDto +from AsposeEmailCloudSdk.models.storage_model_of_mapi_message_dto import StorageModelOfMapiMessageDto from AsposeEmailCloudSdk.models.url import Url -from AsposeEmailCloudSdk.models.value_response import ValueResponse from AsposeEmailCloudSdk.models.value_t_of_boolean import ValueTOfBoolean -from AsposeEmailCloudSdk.models.ai_bcr_base64_image import AiBcrBase64Image -from AsposeEmailCloudSdk.models.ai_bcr_base64_rq import AiBcrBase64Rq +from AsposeEmailCloudSdk.models.value_t_of_string import ValueTOfString from AsposeEmailCloudSdk.models.ai_bcr_image_storage_file import AiBcrImageStorageFile -from AsposeEmailCloudSdk.models.ai_bcr_parse_ocr_data_rq import AiBcrParseOcrDataRq -from AsposeEmailCloudSdk.models.ai_bcr_storage_image_rq import AiBcrStorageImageRq -from AsposeEmailCloudSdk.models.ai_name_parsed_match_rq import AiNameParsedMatchRq +from AsposeEmailCloudSdk.models.ai_name_component_list import AiNameComponentList +from AsposeEmailCloudSdk.models.ai_name_extracted_list import AiNameExtractedList +from AsposeEmailCloudSdk.models.ai_name_gender_hypothesis_list import AiNameGenderHypothesisList +from AsposeEmailCloudSdk.models.ai_name_match_parsed_request import AiNameMatchParsedRequest from AsposeEmailCloudSdk.models.alternate_view import AlternateView -from AsposeEmailCloudSdk.models.append_email_account_base_request import AppendEmailAccountBaseRequest from AsposeEmailCloudSdk.models.attachment import Attachment -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.calendar_save_request import CalendarSaveRequest +from AsposeEmailCloudSdk.models.calendar_storage_list import CalendarStorageList +from AsposeEmailCloudSdk.models.client_account_save_multi_request import ClientAccountSaveMultiRequest +from AsposeEmailCloudSdk.models.client_account_save_request import ClientAccountSaveRequest +from AsposeEmailCloudSdk.models.client_folder_create_request import ClientFolderCreateRequest +from AsposeEmailCloudSdk.models.client_folder_delete_request import ClientFolderDeleteRequest +from AsposeEmailCloudSdk.models.client_message_append_request import ClientMessageAppendRequest +from AsposeEmailCloudSdk.models.client_message_base_request import ClientMessageBaseRequest +from AsposeEmailCloudSdk.models.client_message_send_request import ClientMessageSendRequest +from AsposeEmailCloudSdk.models.client_thread_base_request import ClientThreadBaseRequest +from AsposeEmailCloudSdk.models.contact_list import ContactList +from AsposeEmailCloudSdk.models.contact_save_request import ContactSaveRequest +from AsposeEmailCloudSdk.models.contact_storage_list import ContactStorageList from AsposeEmailCloudSdk.models.daily_recurrence_pattern_dto import DailyRecurrencePatternDto -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 -from AsposeEmailCloudSdk.models.discover_email_config_password import DiscoverEmailConfigPassword from AsposeEmailCloudSdk.models.email_account_config_list import EmailAccountConfigList 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_config_discover_oauth_request import EmailConfigDiscoverOauthRequest +from AsposeEmailCloudSdk.models.email_config_discover_password_request import EmailConfigDiscoverPasswordRequest +from AsposeEmailCloudSdk.models.email_list import EmailList +from AsposeEmailCloudSdk.models.email_save_request import EmailSaveRequest +from AsposeEmailCloudSdk.models.email_storage_list import EmailStorageList 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.mail_message_base64 import MailMessageBase64 +from AsposeEmailCloudSdk.models.mail_message_base_list import MailMessageBaseList +from AsposeEmailCloudSdk.models.mail_message_dto import MailMessageDto +from AsposeEmailCloudSdk.models.mail_message_mapi import MailMessageMapi +from AsposeEmailCloudSdk.models.mail_server_folder_list import MailServerFolderList from AsposeEmailCloudSdk.models.mapi_binary_property_dto import MapiBinaryPropertyDto from AsposeEmailCloudSdk.models.mapi_boolean_property_dto import MapiBooleanPropertyDto from AsposeEmailCloudSdk.models.mapi_calendar_daily_recurrence_pattern_dto import MapiCalendarDailyRecurrencePatternDto from AsposeEmailCloudSdk.models.mapi_calendar_dto import MapiCalendarDto +from AsposeEmailCloudSdk.models.mapi_calendar_save_request import MapiCalendarSaveRequest from AsposeEmailCloudSdk.models.mapi_calendar_weekly_recurrence_pattern_dto import MapiCalendarWeeklyRecurrencePatternDto from AsposeEmailCloudSdk.models.mapi_calendar_yearly_and_monthly_recurrence_pattern_dto import MapiCalendarYearlyAndMonthlyRecurrencePatternDto from AsposeEmailCloudSdk.models.mapi_contact_dto import MapiContactDto from AsposeEmailCloudSdk.models.mapi_contact_photo_dto import MapiContactPhotoDto +from AsposeEmailCloudSdk.models.mapi_contact_save_request import MapiContactSaveRequest from AsposeEmailCloudSdk.models.mapi_date_time_property_dto import MapiDateTimePropertyDto from AsposeEmailCloudSdk.models.mapi_file_as_property_dto import MapiFileAsPropertyDto from AsposeEmailCloudSdk.models.mapi_importance_property_dto import MapiImportancePropertyDto @@ -199,6 +194,7 @@ from AsposeEmailCloudSdk.models.mapi_known_property_descriptor import MapiKnownPropertyDescriptor from AsposeEmailCloudSdk.models.mapi_legacy_free_busy_property_dto import MapiLegacyFreeBusyPropertyDto from AsposeEmailCloudSdk.models.mapi_message_dto import MapiMessageDto +from AsposeEmailCloudSdk.models.mapi_message_save_request import MapiMessageSaveRequest from AsposeEmailCloudSdk.models.mapi_multi_int_property_dto import MapiMultiIntPropertyDto from AsposeEmailCloudSdk.models.mapi_multi_string_property_dto import MapiMultiStringPropertyDto from AsposeEmailCloudSdk.models.mapi_physical_address_index_property_dto import MapiPhysicalAddressIndexPropertyDto @@ -206,156 +202,74 @@ from AsposeEmailCloudSdk.models.mapi_response_type_property_dto import MapiResponseTypePropertyDto from AsposeEmailCloudSdk.models.mapi_string_property_dto import MapiStringPropertyDto from AsposeEmailCloudSdk.models.monthly_recurrence_pattern_dto import MonthlyRecurrencePatternDto -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 -from AsposeEmailCloudSdk.models.send_email_base_request import SendEmailBaseRequest -from AsposeEmailCloudSdk.models.send_email_mime_base_request import SendEmailMimeBaseRequest -from AsposeEmailCloudSdk.models.send_email_model_rq import SendEmailModelRq -from AsposeEmailCloudSdk.models.set_message_read_flag_account_base_request import SetMessageReadFlagAccountBaseRequest from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation +from AsposeEmailCloudSdk.models.storage_file_location_list import StorageFileLocationList from AsposeEmailCloudSdk.models.task_regenerating_pattern_dto import TaskRegeneratingPatternDto from AsposeEmailCloudSdk.models.weekly_recurrence_pattern_dto import WeeklyRecurrencePatternDto from AsposeEmailCloudSdk.models.yearly_recurrence_pattern_dto import YearlyRecurrencePatternDto -from AsposeEmailCloudSdk.models.ai_bcr_parse_storage_rq import AiBcrParseStorageRq -from AsposeEmailCloudSdk.models.append_email_base_request import AppendEmailBaseRequest -from AsposeEmailCloudSdk.models.append_email_mime_base_request import AppendEmailMimeBaseRequest -from AsposeEmailCloudSdk.models.append_email_model_rq import AppendEmailModelRq +from AsposeEmailCloudSdk.models.client_message_delete_request import ClientMessageDeleteRequest +from AsposeEmailCloudSdk.models.client_message_move_request import ClientMessageMoveRequest +from AsposeEmailCloudSdk.models.client_message_set_is_read_request import ClientMessageSetIsReadRequest +from AsposeEmailCloudSdk.models.client_thread_delete_request import ClientThreadDeleteRequest +from AsposeEmailCloudSdk.models.client_thread_move_request import ClientThreadMoveRequest +from AsposeEmailCloudSdk.models.client_thread_set_is_read_request import ClientThreadSetIsReadRequest from AsposeEmailCloudSdk.models.mapi_pid_lid_property_descriptor import MapiPidLidPropertyDescriptor from AsposeEmailCloudSdk.models.mapi_pid_name_property_descriptor import MapiPidNamePropertyDescriptor from AsposeEmailCloudSdk.models.mapi_pid_tag_property_descriptor import MapiPidTagPropertyDescriptor - -from AsposeEmailCloudSdk.models.requests.add_calendar_attachment_request import AddCalendarAttachmentRequest -from AsposeEmailCloudSdk.models.requests.add_contact_attachment_request import AddContactAttachmentRequest -from AsposeEmailCloudSdk.models.requests.add_email_attachment_request import AddEmailAttachmentRequest -from AsposeEmailCloudSdk.models.requests.add_mapi_attachment_request import AddMapiAttachmentRequest -from AsposeEmailCloudSdk.models.requests.ai_bcr_ocr_request import AiBcrOcrRequest -from AsposeEmailCloudSdk.models.requests.ai_bcr_ocr_storage_request import AiBcrOcrStorageRequest -from AsposeEmailCloudSdk.models.requests.ai_bcr_parse_model_request import AiBcrParseModelRequest -from AsposeEmailCloudSdk.models.requests.ai_bcr_parse_ocr_data_model_request import AiBcrParseOcrDataModelRequest -from AsposeEmailCloudSdk.models.requests.ai_bcr_parse_request import AiBcrParseRequest -from AsposeEmailCloudSdk.models.requests.ai_bcr_parse_storage_request import AiBcrParseStorageRequest -from AsposeEmailCloudSdk.models.requests.ai_name_complete_request import AiNameCompleteRequest -from AsposeEmailCloudSdk.models.requests.ai_name_expand_parsed_request import AiNameExpandParsedRequest -from AsposeEmailCloudSdk.models.requests.ai_name_expand_request import AiNameExpandRequest -from AsposeEmailCloudSdk.models.requests.ai_name_format_parsed_request import AiNameFormatParsedRequest -from AsposeEmailCloudSdk.models.requests.ai_name_format_request import AiNameFormatRequest -from AsposeEmailCloudSdk.models.requests.ai_name_genderize_parsed_request import AiNameGenderizeParsedRequest -from AsposeEmailCloudSdk.models.requests.ai_name_genderize_request import AiNameGenderizeRequest -from AsposeEmailCloudSdk.models.requests.ai_name_match_parsed_request import AiNameMatchParsedRequest -from AsposeEmailCloudSdk.models.requests.ai_name_match_request import AiNameMatchRequest -from AsposeEmailCloudSdk.models.requests.ai_name_parse_email_address_request import AiNameParseEmailAddressRequest -from AsposeEmailCloudSdk.models.requests.ai_name_parse_request import AiNameParseRequest -from AsposeEmailCloudSdk.models.requests.append_email_message_request import AppendEmailMessageRequest -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_model_to_mapi_model_request import ConvertCalendarModelToMapiModelRequest -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_model_to_mapi_model_request import ConvertContactModelToMapiModelRequest -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_model_to_mapi_model_request import ConvertEmailModelToMapiModelRequest -from AsposeEmailCloudSdk.models.requests.convert_email_request import ConvertEmailRequest -from AsposeEmailCloudSdk.models.requests.convert_mapi_calendar_model_to_calendar_model_request import ConvertMapiCalendarModelToCalendarModelRequest -from AsposeEmailCloudSdk.models.requests.convert_mapi_calendar_model_to_file_request import ConvertMapiCalendarModelToFileRequest -from AsposeEmailCloudSdk.models.requests.convert_mapi_contact_model_to_contact_model_request import ConvertMapiContactModelToContactModelRequest -from AsposeEmailCloudSdk.models.requests.convert_mapi_contact_model_to_file_request import ConvertMapiContactModelToFileRequest -from AsposeEmailCloudSdk.models.requests.convert_mapi_message_model_to_email_model_request import ConvertMapiMessageModelToEmailModelRequest -from AsposeEmailCloudSdk.models.requests.convert_mapi_message_model_to_file_request import ConvertMapiMessageModelToFileRequest -from AsposeEmailCloudSdk.models.requests.copy_file_request import CopyFileRequest -from AsposeEmailCloudSdk.models.requests.copy_folder_request import CopyFolderRequest -from AsposeEmailCloudSdk.models.requests.create_calendar_request import CreateCalendarRequest -from AsposeEmailCloudSdk.models.requests.create_contact_request import CreateContactRequest -from AsposeEmailCloudSdk.models.requests.create_email_folder_request import CreateEmailFolderRequest -from AsposeEmailCloudSdk.models.requests.create_email_request import CreateEmailRequest -from AsposeEmailCloudSdk.models.requests.create_folder_request import CreateFolderRequest -from AsposeEmailCloudSdk.models.requests.create_mapi_request import CreateMapiRequest -from AsposeEmailCloudSdk.models.requests.delete_calendar_property_request import DeleteCalendarPropertyRequest -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 -from AsposeEmailCloudSdk.models.requests.delete_mapi_properties_request import DeleteMapiPropertiesRequest -from AsposeEmailCloudSdk.models.requests.discover_email_config_oauth_request import DiscoverEmailConfigOauthRequest -from AsposeEmailCloudSdk.models.requests.discover_email_config_password_request import DiscoverEmailConfigPasswordRequest -from AsposeEmailCloudSdk.models.requests.discover_email_config_request import DiscoverEmailConfigRequest -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_mapi_model_request import GetCalendarFileAsMapiModelRequest -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_mapi_model_request import GetContactFileAsMapiModelRequest -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 -from AsposeEmailCloudSdk.models.requests.get_contact_properties_request import GetContactPropertiesRequest -from AsposeEmailCloudSdk.models.requests.get_disc_usage_request import GetDiscUsageRequest -from AsposeEmailCloudSdk.models.requests.get_email_as_file_request import GetEmailAsFileRequest -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_mapi_model_request import GetEmailFileAsMapiModelRequest -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 -from AsposeEmailCloudSdk.models.requests.get_email_request import GetEmailRequest -from AsposeEmailCloudSdk.models.requests.get_files_list_request import GetFilesListRequest -from AsposeEmailCloudSdk.models.requests.get_file_versions_request import GetFileVersionsRequest -from AsposeEmailCloudSdk.models.requests.get_mapi_attachments_request import GetMapiAttachmentsRequest -from AsposeEmailCloudSdk.models.requests.get_mapi_attachment_request import GetMapiAttachmentRequest -from AsposeEmailCloudSdk.models.requests.get_mapi_calendar_model_request import GetMapiCalendarModelRequest -from AsposeEmailCloudSdk.models.requests.get_mapi_contact_model_request import GetMapiContactModelRequest -from AsposeEmailCloudSdk.models.requests.get_mapi_list_request import GetMapiListRequest -from AsposeEmailCloudSdk.models.requests.get_mapi_message_model_request import GetMapiMessageModelRequest -from AsposeEmailCloudSdk.models.requests.get_mapi_properties_request import GetMapiPropertiesRequest -from AsposeEmailCloudSdk.models.requests.is_email_address_disposable_request import IsEmailAddressDisposableRequest -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 -from AsposeEmailCloudSdk.models.requests.save_calendar_model_request import SaveCalendarModelRequest -from AsposeEmailCloudSdk.models.requests.save_contact_model_request import SaveContactModelRequest -from AsposeEmailCloudSdk.models.requests.save_email_client_account_request import SaveEmailClientAccountRequest -from AsposeEmailCloudSdk.models.requests.save_email_client_multi_account_request import SaveEmailClientMultiAccountRequest -from AsposeEmailCloudSdk.models.requests.save_email_model_request import SaveEmailModelRequest -from AsposeEmailCloudSdk.models.requests.save_mail_account_request import SaveMailAccountRequest -from AsposeEmailCloudSdk.models.requests.save_mail_o_auth_account_request import SaveMailOAuthAccountRequest -from AsposeEmailCloudSdk.models.requests.save_mapi_calendar_model_request import SaveMapiCalendarModelRequest -from AsposeEmailCloudSdk.models.requests.save_mapi_contact_model_request import SaveMapiContactModelRequest -from AsposeEmailCloudSdk.models.requests.save_mapi_message_model_request import SaveMapiMessageModelRequest -from AsposeEmailCloudSdk.models.requests.send_email_mime_request import SendEmailMimeRequest -from AsposeEmailCloudSdk.models.requests.send_email_model_request import SendEmailModelRequest -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 -from AsposeEmailCloudSdk.models.requests.update_mapi_properties_request import UpdateMapiPropertiesRequest -from AsposeEmailCloudSdk.models.requests.upload_file_request import UploadFileRequest +from AsposeEmailCloudSdk.models.http_request import HttpRequest +from AsposeEmailCloudSdk.models.ai_bcr_parse_request import AiBcrParseRequest +from AsposeEmailCloudSdk.models.ai_name_complete_request import AiNameCompleteRequest +from AsposeEmailCloudSdk.models.ai_name_expand_request import AiNameExpandRequest +from AsposeEmailCloudSdk.models.ai_name_format_request import AiNameFormatRequest +from AsposeEmailCloudSdk.models.ai_name_genderize_request import AiNameGenderizeRequest +from AsposeEmailCloudSdk.models.ai_name_match_request import AiNameMatchRequest +from AsposeEmailCloudSdk.models.ai_name_parse_request import AiNameParseRequest +from AsposeEmailCloudSdk.models.ai_name_parse_email_address_request import AiNameParseEmailAddressRequest +from AsposeEmailCloudSdk.models.calendar_convert_request import CalendarConvertRequest +from AsposeEmailCloudSdk.models.calendar_from_file_request import CalendarFromFileRequest +from AsposeEmailCloudSdk.models.calendar_get_request import CalendarGetRequest +from AsposeEmailCloudSdk.models.calendar_get_as_alternate_request import CalendarGetAsAlternateRequest +from AsposeEmailCloudSdk.models.calendar_get_as_file_request import CalendarGetAsFileRequest +from AsposeEmailCloudSdk.models.calendar_get_list_request import CalendarGetListRequest +from AsposeEmailCloudSdk.models.client_account_get_request import ClientAccountGetRequest +from AsposeEmailCloudSdk.models.client_account_get_multi_request import ClientAccountGetMultiRequest +from AsposeEmailCloudSdk.models.client_folder_get_list_request import ClientFolderGetListRequest +from AsposeEmailCloudSdk.models.client_message_append_file_request import ClientMessageAppendFileRequest +from AsposeEmailCloudSdk.models.client_message_fetch_request import ClientMessageFetchRequest +from AsposeEmailCloudSdk.models.client_message_fetch_file_request import ClientMessageFetchFileRequest +from AsposeEmailCloudSdk.models.client_message_list_request import ClientMessageListRequest +from AsposeEmailCloudSdk.models.client_message_send_file_request import ClientMessageSendFileRequest +from AsposeEmailCloudSdk.models.client_thread_get_list_request import ClientThreadGetListRequest +from AsposeEmailCloudSdk.models.client_thread_get_messages_request import ClientThreadGetMessagesRequest +from AsposeEmailCloudSdk.models.contact_convert_request import ContactConvertRequest +from AsposeEmailCloudSdk.models.contact_from_file_request import ContactFromFileRequest +from AsposeEmailCloudSdk.models.contact_get_request import ContactGetRequest +from AsposeEmailCloudSdk.models.contact_get_as_file_request import ContactGetAsFileRequest +from AsposeEmailCloudSdk.models.contact_get_list_request import ContactGetListRequest +from AsposeEmailCloudSdk.models.disposable_email_is_disposable_request import DisposableEmailIsDisposableRequest +from AsposeEmailCloudSdk.models.email_convert_request import EmailConvertRequest +from AsposeEmailCloudSdk.models.email_from_file_request import EmailFromFileRequest +from AsposeEmailCloudSdk.models.email_get_request import EmailGetRequest +from AsposeEmailCloudSdk.models.email_get_as_file_request import EmailGetAsFileRequest +from AsposeEmailCloudSdk.models.email_get_list_request import EmailGetListRequest +from AsposeEmailCloudSdk.models.email_config_discover_request import EmailConfigDiscoverRequest +from AsposeEmailCloudSdk.models.copy_file_request import CopyFileRequest +from AsposeEmailCloudSdk.models.delete_file_request import DeleteFileRequest +from AsposeEmailCloudSdk.models.download_file_request import DownloadFileRequest +from AsposeEmailCloudSdk.models.move_file_request import MoveFileRequest +from AsposeEmailCloudSdk.models.upload_file_request import UploadFileRequest +from AsposeEmailCloudSdk.models.copy_folder_request import CopyFolderRequest +from AsposeEmailCloudSdk.models.create_folder_request import CreateFolderRequest +from AsposeEmailCloudSdk.models.delete_folder_request import DeleteFolderRequest +from AsposeEmailCloudSdk.models.get_files_list_request import GetFilesListRequest +from AsposeEmailCloudSdk.models.move_folder_request import MoveFolderRequest +from AsposeEmailCloudSdk.models.mapi_calendar_from_file_request import MapiCalendarFromFileRequest +from AsposeEmailCloudSdk.models.mapi_calendar_get_request import MapiCalendarGetRequest +from AsposeEmailCloudSdk.models.mapi_contact_from_file_request import MapiContactFromFileRequest +from AsposeEmailCloudSdk.models.mapi_contact_get_request import MapiContactGetRequest +from AsposeEmailCloudSdk.models.mapi_message_from_file_request import MapiMessageFromFileRequest +from AsposeEmailCloudSdk.models.mapi_message_get_request import MapiMessageGetRequest +from AsposeEmailCloudSdk.models.get_disc_usage_request import GetDiscUsageRequest +from AsposeEmailCloudSdk.models.get_file_versions_request import GetFileVersionsRequest +from AsposeEmailCloudSdk.models.object_exists_request import ObjectExistsRequest +from AsposeEmailCloudSdk.models.storage_exists_request import StorageExistsRequest diff --git a/sdk/AsposeEmailCloudSdk/models/account_base_request.py b/sdk/AsposeEmailCloudSdk/models/account_base_request.py deleted file mode 100644 index 19635e3..0000000 --- a/sdk/AsposeEmailCloudSdk/models/account_base_request.py +++ /dev/null @@ -1,189 +0,0 @@ -# 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.storage_folder_location import StorageFolderLocation - - -class AccountBaseRequest(object): - """EmailClient accounts 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' - } - - attribute_map = { - 'first_account': 'firstAccount', - 'second_account': 'secondAccount', - 'storage_folder': 'storageFolder' - } - - 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 - :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 - """ - - self._first_account = None - self._second_account = None - self._storage_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 - - @property - def first_account(self) -> str: - """Gets the first_account of this AccountBaseRequest. - - First account storage file name - - :return: The first_account of this AccountBaseRequest. - :rtype: str - """ - return self._first_account - - @first_account.setter - def first_account(self, first_account: str): - """Sets the first_account of this AccountBaseRequest. - - First account storage file name - - :param first_account: The first_account of this AccountBaseRequest. - :type: str - """ - if first_account is None: - raise ValueError("Invalid value for `first_account`, must not be `None`") - if first_account is not None and len(first_account) < 1: - raise ValueError("Invalid value for `first_account`, length must be greater than or equal to `1`") - self._first_account = first_account - - @property - def second_account(self) -> str: - """Gets the second_account of this AccountBaseRequest. - - Additional email account (for example, FirstAccount could be IMAP, and second one could be SMTP) - - :return: The second_account of this AccountBaseRequest. - :rtype: str - """ - return self._second_account - - @second_account.setter - def second_account(self, second_account: str): - """Sets the second_account of this AccountBaseRequest. - - 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 - """ - self._second_account = second_account - - @property - def storage_folder(self) -> StorageFolderLocation: - """Gets the storage_folder of this AccountBaseRequest. - - Storage folder location of account files - - :return: The storage_folder of this AccountBaseRequest. - :rtype: StorageFolderLocation - """ - return self._storage_folder - - @storage_folder.setter - def storage_folder(self, storage_folder: StorageFolderLocation): - """Sets the storage_folder of this AccountBaseRequest. - - Storage folder location of account files - - :param storage_folder: The storage_folder of this AccountBaseRequest. - :type: StorageFolderLocation - """ - self._storage_folder = storage_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, AccountBaseRequest): - 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/add_attachment_request.py b/sdk/AsposeEmailCloudSdk/models/add_attachment_request.py deleted file mode 100644 index 52c5295..0000000 --- a/sdk/AsposeEmailCloudSdk/models/add_attachment_request.py +++ /dev/null @@ -1,157 +0,0 @@ -# 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.storage_folder_location import StorageFolderLocation - - -class AddAttachmentRequest(object): - """Add attachment 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 = { - 'document_folder': 'StorageFolderLocation', - 'attachment_folder': 'StorageFolderLocation' - } - - attribute_map = { - 'document_folder': 'documentFolder', - 'attachment_folder': 'attachmentFolder' - } - - def __init__(self, document_folder: StorageFolderLocation = None, attachment_folder: StorageFolderLocation = None): - """ - Add attachment request - :param document_folder (StorageFolderLocation) Storage folder location of document - :param attachment_folder (StorageFolderLocation) Storage folder location of an attachment - """ - - self._document_folder = None - self._attachment_folder = None - - if document_folder is not None: - self.document_folder = document_folder - if attachment_folder is not None: - self.attachment_folder = attachment_folder - - @property - def document_folder(self) -> StorageFolderLocation: - """Gets the document_folder of this AddAttachmentRequest. - - Storage folder location of document - - :return: The document_folder of this AddAttachmentRequest. - :rtype: StorageFolderLocation - """ - return self._document_folder - - @document_folder.setter - def document_folder(self, document_folder: StorageFolderLocation): - """Sets the document_folder of this AddAttachmentRequest. - - Storage folder location of document - - :param document_folder: The document_folder of this AddAttachmentRequest. - :type: StorageFolderLocation - """ - self._document_folder = document_folder - - @property - def attachment_folder(self) -> StorageFolderLocation: - """Gets the attachment_folder of this AddAttachmentRequest. - - Storage folder location of an attachment - - :return: The attachment_folder of this AddAttachmentRequest. - :rtype: StorageFolderLocation - """ - return self._attachment_folder - - @attachment_folder.setter - def attachment_folder(self, attachment_folder: StorageFolderLocation): - """Sets the attachment_folder of this AddAttachmentRequest. - - Storage folder location of an attachment - - :param attachment_folder: The attachment_folder of this AddAttachmentRequest. - :type: StorageFolderLocation - """ - self._attachment_folder = attachment_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, AddAttachmentRequest): - 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/ai_bcr_base64_rq.py b/sdk/AsposeEmailCloudSdk/models/ai_bcr_base64_rq.py deleted file mode 100644 index 01e52a5..0000000 --- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_base64_rq.py +++ /dev/null @@ -1,137 +0,0 @@ -# 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.ai_bcr_base64_image import AiBcrBase64Image -from AsposeEmailCloudSdk.models.ai_bcr_options import AiBcrOptions -from AsposeEmailCloudSdk.models.ai_bcr_rq import AiBcrRq - - -class AiBcrBase64Rq(AiBcrRq): - """Parse business card image 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 = { - 'options': 'AiBcrOptions', - 'images': 'list[AiBcrBase64Image]' - } - - attribute_map = { - 'options': 'options', - 'images': 'images' - } - - def __init__(self, options: AiBcrOptions = None, images: List[AiBcrBase64Image] = None): - """ - Parse business card image request - :param options (AiBcrOptions) Recognition options - :param images (List[AiBcrBase64Image]) Images to recognize - """ - super(AiBcrBase64Rq, self).__init__() - - self._images = None - - if options is not None: - self.options = options - if images is not None: - self.images = images - - @property - def images(self) -> List[AiBcrBase64Image]: - """Gets the images of this AiBcrBase64Rq. - - Images to recognize - - :return: The images of this AiBcrBase64Rq. - :rtype: list[AiBcrBase64Image] - """ - return self._images - - @images.setter - def images(self, images: List[AiBcrBase64Image]): - """Sets the images of this AiBcrBase64Rq. - - Images to recognize - - :param images: The images of this AiBcrBase64Rq. - :type: list[AiBcrBase64Image] - """ - self._images = images - - 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, AiBcrBase64Rq): - 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/ai_bcr_image.py b/sdk/AsposeEmailCloudSdk/models/ai_bcr_image.py index 2b939f3..4d1ddcc 100644 --- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_image.py +++ b/sdk/AsposeEmailCloudSdk/models/ai_bcr_image.py @@ -53,7 +53,8 @@ class AiBcrImage(object): def __init__(self, is_single: bool = None): """ Image 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 is_single: Determines that image contains single VCard or more. + :type is_single: bool """ self._is_single = None @@ -61,11 +62,11 @@ def __init__(self, is_single: bool = None): if is_single is not None: self.is_single = is_single + @property def is_single(self) -> bool: - """Gets the is_single of this AiBcrImage. - - Determines that image contains single VCard or more. Ignored in current version. Multiple cards on image support will be added soon + """ + Determines that image contains single VCard or more. :return: The is_single of this AiBcrImage. :rtype: bool @@ -74,9 +75,8 @@ def is_single(self) -> bool: @is_single.setter def is_single(self, is_single: bool): - """Sets the is_single of this AiBcrImage. - - Determines that image contains single VCard or more. Ignored in current version. Multiple cards on image support will be added soon + """ + Determines that image contains single VCard or more. :param is_single: The is_single of this AiBcrImage. :type: bool diff --git a/sdk/AsposeEmailCloudSdk/models/ai_bcr_image_storage_file.py b/sdk/AsposeEmailCloudSdk/models/ai_bcr_image_storage_file.py index fc16ff4..acfbc57 100644 --- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_image_storage_file.py +++ b/sdk/AsposeEmailCloudSdk/models/ai_bcr_image_storage_file.py @@ -58,8 +58,10 @@ class AiBcrImageStorageFile(AiBcrImage): def __init__(self, is_single: bool = None, file: StorageFileLocation = 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 is_single: Determines that image contains single VCard or more. + :type is_single: bool + :param file: Image location + :type file: StorageFileLocation """ super(AiBcrImageStorageFile, self).__init__() @@ -70,10 +72,10 @@ def __init__(self, is_single: bool = None, file: StorageFileLocation = None): if file is not None: self.file = file + @property def file(self) -> StorageFileLocation: - """Gets the file of this AiBcrImageStorageFile. - + """ Image location :return: The file of this AiBcrImageStorageFile. @@ -83,13 +85,14 @@ def file(self) -> StorageFileLocation: @file.setter def file(self, file: StorageFileLocation): - """Sets the file of this AiBcrImageStorageFile. - + """ Image location :param file: The file of this AiBcrImageStorageFile. :type: StorageFileLocation """ + if file is None: + raise ValueError("Invalid value for `file`, must not be `None`") self._file = file def to_dict(self): diff --git a/sdk/AsposeEmailCloudSdk/models/ai_bcr_ocr_data.py b/sdk/AsposeEmailCloudSdk/models/ai_bcr_ocr_data.py deleted file mode 100644 index 64c8ff4..0000000 --- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_ocr_data.py +++ /dev/null @@ -1,213 +0,0 @@ -# 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.ai_bcr_ocr_data_part import AiBcrOcrDataPart - - -class AiBcrOcrData(object): - """Image OCR results - """ - - """ - 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', - 'image': 'str', - 'details': 'dict(str, str)', - 'data': 'list[AiBcrOcrDataPart]' - } - - attribute_map = { - 'id': 'id', - 'image': 'image', - 'details': 'details', - 'data': 'data' - } - - def __init__(self, id: str = None, image: str = None, details: Dict[str, str] = None, data: List[AiBcrOcrDataPart] = None): - """ - Image OCR results - :param id (str) Image identifier - :param image (str) Image with possible pre-processing in Base64 - :param details (Dict[str, str]) Additional details from OCR engine - :param data (List[AiBcrOcrDataPart]) OCR results - """ - - self._id = None - self._image = None - self._details = None - self._data = None - - if id is not None: - self.id = id - if image is not None: - self.image = image - if details is not None: - self.details = details - if data is not None: - self.data = data - - @property - def id(self) -> str: - """Gets the id of this AiBcrOcrData. - - Image identifier - - :return: The id of this AiBcrOcrData. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id: str): - """Sets the id of this AiBcrOcrData. - - Image identifier - - :param id: The id of this AiBcrOcrData. - :type: str - """ - self._id = id - - @property - def image(self) -> str: - """Gets the image of this AiBcrOcrData. - - Image with possible pre-processing in Base64 - - :return: The image of this AiBcrOcrData. - :rtype: str - """ - return self._image - - @image.setter - def image(self, image: str): - """Sets the image of this AiBcrOcrData. - - Image with possible pre-processing in Base64 - - :param image: The image of this AiBcrOcrData. - :type: str - """ - self._image = image - - @property - def details(self) -> Dict[str, str]: - """Gets the details of this AiBcrOcrData. - - Additional details from OCR engine - - :return: The details of this AiBcrOcrData. - :rtype: dict(str, str) - """ - return self._details - - @details.setter - def details(self, details: Dict[str, str]): - """Sets the details of this AiBcrOcrData. - - Additional details from OCR engine - - :param details: The details of this AiBcrOcrData. - :type: dict(str, str) - """ - self._details = details - - @property - def data(self) -> List[AiBcrOcrDataPart]: - """Gets the data of this AiBcrOcrData. - - OCR results - - :return: The data of this AiBcrOcrData. - :rtype: list[AiBcrOcrDataPart] - """ - return self._data - - @data.setter - def data(self, data: List[AiBcrOcrDataPart]): - """Sets the data of this AiBcrOcrData. - - OCR results - - :param data: The data of this AiBcrOcrData. - :type: list[AiBcrOcrDataPart] - """ - self._data = data - - 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, AiBcrOcrData): - 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/ai_bcr_ocr_data_part.py b/sdk/AsposeEmailCloudSdk/models/ai_bcr_ocr_data_part.py deleted file mode 100644 index 2f6da48..0000000 --- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_ocr_data_part.py +++ /dev/null @@ -1,275 +0,0 @@ -# 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 - - -class AiBcrOcrDataPart(object): - """Recognized text block - """ - - """ - 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 = { - 'x': 'float', - 'y': 'float', - 'width': 'float', - 'height': 'float', - 'text': 'str', - 'details': 'dict(str, str)' - } - - attribute_map = { - 'x': 'x', - 'y': 'y', - 'width': 'width', - 'height': 'height', - 'text': 'text', - 'details': 'details' - } - - def __init__(self, x: float = None, y: float = None, width: float = None, height: float = None, text: str = None, details: Dict[str, str] = None): - """ - Recognized text block - :param x (float) X position of text block - :param y (float) Y position of text block - :param width (float) Width of text block - :param height (float) Height of text block - :param text (str) Recognized text - :param details (Dict[str, str]) Additional recognition result details - """ - - self._x = None - self._y = None - self._width = None - self._height = None - self._text = None - self._details = None - - if x is not None: - self.x = x - if y is not None: - self.y = y - if width is not None: - self.width = width - if height is not None: - self.height = height - if text is not None: - self.text = text - if details is not None: - self.details = details - - @property - def x(self) -> float: - """Gets the x of this AiBcrOcrDataPart. - - X position of text block - - :return: The x of this AiBcrOcrDataPart. - :rtype: float - """ - return self._x - - @x.setter - def x(self, x: float): - """Sets the x of this AiBcrOcrDataPart. - - X position of text block - - :param x: The x of this AiBcrOcrDataPart. - :type: float - """ - if x is None: - raise ValueError("Invalid value for `x`, must not be `None`") - self._x = x - - @property - def y(self) -> float: - """Gets the y of this AiBcrOcrDataPart. - - Y position of text block - - :return: The y of this AiBcrOcrDataPart. - :rtype: float - """ - return self._y - - @y.setter - def y(self, y: float): - """Sets the y of this AiBcrOcrDataPart. - - Y position of text block - - :param y: The y of this AiBcrOcrDataPart. - :type: float - """ - if y is None: - raise ValueError("Invalid value for `y`, must not be `None`") - self._y = y - - @property - def width(self) -> float: - """Gets the width of this AiBcrOcrDataPart. - - Width of text block - - :return: The width of this AiBcrOcrDataPart. - :rtype: float - """ - return self._width - - @width.setter - def width(self, width: float): - """Sets the width of this AiBcrOcrDataPart. - - Width of text block - - :param width: The width of this AiBcrOcrDataPart. - :type: float - """ - if width is None: - raise ValueError("Invalid value for `width`, must not be `None`") - self._width = width - - @property - def height(self) -> float: - """Gets the height of this AiBcrOcrDataPart. - - Height of text block - - :return: The height of this AiBcrOcrDataPart. - :rtype: float - """ - return self._height - - @height.setter - def height(self, height: float): - """Sets the height of this AiBcrOcrDataPart. - - Height of text block - - :param height: The height of this AiBcrOcrDataPart. - :type: float - """ - if height is None: - raise ValueError("Invalid value for `height`, must not be `None`") - self._height = height - - @property - def text(self) -> str: - """Gets the text of this AiBcrOcrDataPart. - - Recognized text - - :return: The text of this AiBcrOcrDataPart. - :rtype: str - """ - return self._text - - @text.setter - def text(self, text: str): - """Sets the text of this AiBcrOcrDataPart. - - Recognized text - - :param text: The text of this AiBcrOcrDataPart. - :type: str - """ - self._text = text - - @property - def details(self) -> Dict[str, str]: - """Gets the details of this AiBcrOcrDataPart. - - Additional recognition result details - - :return: The details of this AiBcrOcrDataPart. - :rtype: dict(str, str) - """ - return self._details - - @details.setter - def details(self, details: Dict[str, str]): - """Sets the details of this AiBcrOcrDataPart. - - Additional recognition result details - - :param details: The details of this AiBcrOcrDataPart. - :type: dict(str, str) - """ - self._details = details - - 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, AiBcrOcrDataPart): - 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/ai_bcr_options.py b/sdk/AsposeEmailCloudSdk/models/ai_bcr_options.py index 18b0274..d343bf7 100644 --- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_options.py +++ b/sdk/AsposeEmailCloudSdk/models/ai_bcr_options.py @@ -32,7 +32,7 @@ class AiBcrOptions(object): - """Recognition options + """Recognition options. """ """ @@ -54,9 +54,11 @@ class AiBcrOptions(object): def __init__(self, languages: str = None, countries: str = None): """ - Recognition options - :param languages (str) Comma-separated ISO-639 codes of languages (either 639-1 or 639-3; i.e. \"it\" or \"ita\" for Italian); it's \"\" by default - :param countries (str) Comma-separated codes of countries + Recognition options. + :param languages: Comma-separated ISO-639 codes of languages (either 639-1 or 639-3; i.e. \"it\" or \"ita\" for Italian); it's \"\" by default. + :type languages: str + :param countries: Comma-separated codes of countries. + :type countries: str """ self._languages = None @@ -67,11 +69,11 @@ def __init__(self, languages: str = None, countries: str = None): if countries is not None: self.countries = countries + @property def languages(self) -> str: - """Gets the languages of this AiBcrOptions. - - Comma-separated ISO-639 codes of languages (either 639-1 or 639-3; i.e. \"it\" or \"ita\" for Italian); it's \"\" by default + """ + Comma-separated ISO-639 codes of languages (either 639-1 or 639-3; i.e. \"it\" or \"ita\" for Italian); it's \"\" by default. :return: The languages of this AiBcrOptions. :rtype: str @@ -80,9 +82,8 @@ def languages(self) -> str: @languages.setter def languages(self, languages: str): - """Sets the languages of this AiBcrOptions. - - Comma-separated ISO-639 codes of languages (either 639-1 or 639-3; i.e. \"it\" or \"ita\" for Italian); it's \"\" by default + """ + Comma-separated ISO-639 codes of languages (either 639-1 or 639-3; i.e. \"it\" or \"ita\" for Italian); it's \"\" by default. :param languages: The languages of this AiBcrOptions. :type: str @@ -91,9 +92,8 @@ def languages(self, languages: str): @property def countries(self) -> str: - """Gets the countries of this AiBcrOptions. - - Comma-separated codes of countries + """ + Comma-separated codes of countries. :return: The countries of this AiBcrOptions. :rtype: str @@ -102,9 +102,8 @@ def countries(self) -> str: @countries.setter def countries(self, countries: str): - """Sets the countries of this AiBcrOptions. - - Comma-separated codes of countries + """ + Comma-separated codes of countries. :param countries: The countries of this AiBcrOptions. :type: str diff --git a/sdk/AsposeEmailCloudSdk/models/ai_bcr_parse_request.py b/sdk/AsposeEmailCloudSdk/models/ai_bcr_parse_request.py new file mode 100644 index 0000000..f70e377 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/ai_bcr_parse_request.py @@ -0,0 +1,64 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class AiBcrParseRequest(object): + """ + Request model for ai_bcr_parse operation. + Initializes a new instance. + + :param file: File to parse + :type file: str + :param countries: Comma-separated codes of countries. + :type countries: str + :param languages: Comma-separated ISO-639 codes of languages (either 639-1 or 639-3; i.e. \"it\" or \"ita\" for Italian); it's \"\" by default. + :type languages: str + :param is_single: Determines that image contains single VCard or more. + :type is_single: bool + """ + + def __init__(self, file: str, countries: str = None, languages: str = None, is_single: bool = None): + """ + Request model for ai_bcr_parse operation. + Initializes a new instance. + + :param file: File to parse + :type file: str + :param countries: Comma-separated codes of countries. + :type countries: str + :param languages: Comma-separated ISO-639 codes of languages (either 639-1 or 639-3; i.e. \"it\" or \"ita\" for Italian); it's \"\" by default. + :type languages: str + :param is_single: Determines that image contains single VCard or more. + :type is_single: bool + """ + + self.file = file + self.countries = countries + self.languages = languages + self.is_single = is_single + diff --git a/sdk/AsposeEmailCloudSdk/models/ai_bcr_parse_storage_rq.py b/sdk/AsposeEmailCloudSdk/models/ai_bcr_parse_storage_request.py similarity index 68% rename from sdk/AsposeEmailCloudSdk/models/ai_bcr_parse_storage_rq.py rename to sdk/AsposeEmailCloudSdk/models/ai_bcr_parse_storage_request.py index 641d597..79b761d 100644 --- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_parse_storage_rq.py +++ b/sdk/AsposeEmailCloudSdk/models/ai_bcr_parse_storage_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -32,11 +32,10 @@ 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): +class AiBcrParseStorageRequest(object): """Parse business card images from Storage request """ @@ -48,59 +47,104 @@ class AiBcrParseStorageRq(AiBcrStorageImageRq): and the value is json key in definition. """ swagger_types = { - 'options': 'AiBcrOptions', + 'out_folder': 'StorageFolderLocation', 'images': 'list[AiBcrImageStorageFile]', - 'out_folder': 'StorageFolderLocation' + 'options': 'AiBcrOptions' } attribute_map = { - 'options': 'options', + 'out_folder': 'outFolder', 'images': 'images', - 'out_folder': 'outFolder' + 'options': 'options' } - def __init__(self, options: AiBcrOptions = None, images: List[AiBcrImageStorageFile] = None, out_folder: StorageFolderLocation = None): + def __init__(self, out_folder: StorageFolderLocation = None, images: List[AiBcrImageStorageFile] = None, options: AiBcrOptions = 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: Parse output folder location on storage + :type out_folder: StorageFolderLocation + :param images: Images to parse. + :type images: List[AiBcrImageStorageFile] + :param options: Recognition options. + :type options: AiBcrOptions """ - super(AiBcrParseStorageRq, self).__init__() self._out_folder = None + self._images = None + self._options = None - if options is not None: - self.options = options - if images is not None: - self.images = images if out_folder is not None: self.out_folder = out_folder + if images is not None: + self.images = images + if options is not None: + self.options = options + @property def out_folder(self) -> StorageFolderLocation: - """Gets the out_folder of this AiBcrParseStorageRq. - + """ Parse output folder location on storage - :return: The out_folder of this AiBcrParseStorageRq. + :return: The out_folder of this AiBcrParseStorageRequest. :rtype: StorageFolderLocation """ return self._out_folder @out_folder.setter def out_folder(self, out_folder: StorageFolderLocation): - """Sets the out_folder of this AiBcrParseStorageRq. - + """ Parse output folder location on storage - :param out_folder: The out_folder of this AiBcrParseStorageRq. + :param out_folder: The out_folder of this AiBcrParseStorageRequest. :type: StorageFolderLocation """ if out_folder is None: raise ValueError("Invalid value for `out_folder`, must not be `None`") self._out_folder = out_folder + @property + def images(self) -> List[AiBcrImageStorageFile]: + """ + Images to parse. + + :return: The images of this AiBcrParseStorageRequest. + :rtype: list[AiBcrImageStorageFile] + """ + return self._images + + @images.setter + def images(self, images: List[AiBcrImageStorageFile]): + """ + Images to parse. + + :param images: The images of this AiBcrParseStorageRequest. + :type: list[AiBcrImageStorageFile] + """ + if images is None: + raise ValueError("Invalid value for `images`, must not be `None`") + self._images = images + + @property + def options(self) -> AiBcrOptions: + """ + Recognition options. + + :return: The options of this AiBcrParseStorageRequest. + :rtype: AiBcrOptions + """ + return self._options + + @options.setter + def options(self, options: AiBcrOptions): + """ + Recognition options. + + :param options: The options of this AiBcrParseStorageRequest. + :type: AiBcrOptions + """ + self._options = options + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -135,7 +179,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, AiBcrParseStorageRq): + if not isinstance(other, AiBcrParseStorageRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/ai_bcr_rq.py b/sdk/AsposeEmailCloudSdk/models/ai_bcr_rq.py deleted file mode 100644 index 5bcdb18..0000000 --- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_rq.py +++ /dev/null @@ -1,129 +0,0 @@ -# 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.ai_bcr_options import AiBcrOptions - - -class AiBcrRq(object): - """Business card recognition 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 = { - 'options': 'AiBcrOptions' - } - - attribute_map = { - 'options': 'options' - } - - def __init__(self, options: AiBcrOptions = None): - """ - Business card recognition request - :param options (AiBcrOptions) Recognition options - """ - - self._options = None - - if options is not None: - self.options = options - - @property - def options(self) -> AiBcrOptions: - """Gets the options of this AiBcrRq. - - Recognition options - - :return: The options of this AiBcrRq. - :rtype: AiBcrOptions - """ - return self._options - - @options.setter - def options(self, options: AiBcrOptions): - """Sets the options of this AiBcrRq. - - Recognition options - - :param options: The options of this AiBcrRq. - :type: AiBcrOptions - """ - self._options = options - - 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, AiBcrRq): - 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/ai_bcr_storage_image_rq.py b/sdk/AsposeEmailCloudSdk/models/ai_bcr_storage_image_rq.py deleted file mode 100644 index 4386d1b..0000000 --- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_storage_image_rq.py +++ /dev/null @@ -1,139 +0,0 @@ -# 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.ai_bcr_image_storage_file import AiBcrImageStorageFile -from AsposeEmailCloudSdk.models.ai_bcr_options import AiBcrOptions -from AsposeEmailCloudSdk.models.ai_bcr_rq import AiBcrRq - - -class AiBcrStorageImageRq(AiBcrRq): - """Business card images from storage for recognition - """ - - """ - 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 = { - 'options': 'AiBcrOptions', - 'images': 'list[AiBcrImageStorageFile]' - } - - attribute_map = { - 'options': 'options', - 'images': 'images' - } - - def __init__(self, options: AiBcrOptions = None, images: List[AiBcrImageStorageFile] = None): - """ - Business card images from storage for recognition - :param options (AiBcrOptions) Recognition options - :param images (List[AiBcrImageStorageFile]) List of images with business cards - """ - super(AiBcrStorageImageRq, self).__init__() - - self._images = None - - if options is not None: - self.options = options - if images is not None: - self.images = images - - @property - def images(self) -> List[AiBcrImageStorageFile]: - """Gets the images of this AiBcrStorageImageRq. - - List of images with business cards - - :return: The images of this AiBcrStorageImageRq. - :rtype: list[AiBcrImageStorageFile] - """ - return self._images - - @images.setter - def images(self, images: List[AiBcrImageStorageFile]): - """Sets the images of this AiBcrStorageImageRq. - - List of images with business cards - - :param images: The images of this AiBcrStorageImageRq. - :type: list[AiBcrImageStorageFile] - """ - if images is None: - raise ValueError("Invalid value for `images`, must not be `None`") - self._images = images - - 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, AiBcrStorageImageRq): - 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/ai_name_complete_request.py b/sdk/AsposeEmailCloudSdk/models/ai_name_complete_request.py new file mode 100644 index 0000000..ef99d6b --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_complete_request.py @@ -0,0 +1,73 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class AiNameCompleteRequest(object): + """ + Request model for ai_name_complete operation. + Initializes a new instance. + + :param name: A name to complete. + :type name: str + :param language: An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). + :type language: str + :param location: A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. + :type location: str + :param encoding: A character encoding name. + :type encoding: str + :param script: A writing system code; starts with the ISO-15924 script name. + :type script: str + :param style: Name writing style. Enum, available values: Formal, Informal, Legal, Academic + :type style: str + """ + + def __init__(self, name: str, language: str = None, location: str = None, encoding: str = None, script: str = None, style: str = None): + """ + Request model for ai_name_complete operation. + Initializes a new instance. + + :param name: A name to complete. + :type name: str + :param language: An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). + :type language: str + :param location: A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. + :type location: str + :param encoding: A character encoding name. + :type encoding: str + :param script: A writing system code; starts with the ISO-15924 script name. + :type script: str + :param style: Name writing style. Enum, available values: Formal, Informal, Legal, Academic + :type style: str + """ + + self.name = name + self.language = language + self.location = location + self.encoding = encoding + self.script = script + self.style = style diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_component.py b/sdk/AsposeEmailCloudSdk/models/ai_name_component.py index b7c91d0..3aae10e 100644 --- a/sdk/AsposeEmailCloudSdk/models/ai_name_component.py +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_component.py @@ -59,10 +59,14 @@ class AiNameComponent(object): def __init__(self, value: str = None, category: str = None, score: float = None, position: int = None): """ Parsed name component - :param value (str) Component value - :param category (str) Name component category. Enum, available values: Unknown, Mononym, Score, Format, FirstInitial, FirstName, MiddleInitial, MiddleName, MiddleNickname, MiddleSobriquet, MiddleMaidenName, MiddlePatronym, MiddleMatronym, LastInitial, LastName, LastNobiliaryParticle, LastNominalConjunction, LastPaternalSurname, LastMaternalSurname, PrefixTitle, PostfixGenerationalTitle, PostfixPostnominalLetters, ArabicIsm, ArabicKunya, ArabicNasab, ArabicSlaqab, ArabicNisbah - :param score (float) Score from 0.0 to 1.0 - :param position (int) Component position from 0 + :param value: Component value + :type value: str + :param category: Name component category. Enum, available values: Unknown, Mononym, Score, Format, FirstInitial, FirstName, MiddleInitial, MiddleName, MiddleNickname, MiddleSobriquet, MiddleMaidenName, MiddlePatronym, MiddleMatronym, LastInitial, LastName, LastNobiliaryParticle, LastNominalConjunction, LastPaternalSurname, LastMaternalSurname, PrefixTitle, PostfixGenerationalTitle, PostfixPostnominalLetters, ArabicIsm, ArabicKunya, ArabicNasab, ArabicSlaqab, ArabicNisbah + :type category: str + :param score: Score from 0.0 to 1.0 + :type score: float + :param position: Component position from 0 + :type position: int """ self._value = None @@ -79,10 +83,10 @@ def __init__(self, value: str = None, category: str = None, score: float = None, if position is not None: self.position = position + @property def value(self) -> str: - """Gets the value of this AiNameComponent. - + """ Component value :return: The value of this AiNameComponent. @@ -92,8 +96,7 @@ def value(self) -> str: @value.setter def value(self, value: str): - """Sets the value of this AiNameComponent. - + """ Component value :param value: The value of this AiNameComponent. @@ -103,8 +106,7 @@ def value(self, value: str): @property def category(self) -> str: - """Gets the category of this AiNameComponent. - + """ Name component category. Enum, available values: Unknown, Mononym, Score, Format, FirstInitial, FirstName, MiddleInitial, MiddleName, MiddleNickname, MiddleSobriquet, MiddleMaidenName, MiddlePatronym, MiddleMatronym, LastInitial, LastName, LastNobiliaryParticle, LastNominalConjunction, LastPaternalSurname, LastMaternalSurname, PrefixTitle, PostfixGenerationalTitle, PostfixPostnominalLetters, ArabicIsm, ArabicKunya, ArabicNasab, ArabicSlaqab, ArabicNisbah :return: The category of this AiNameComponent. @@ -114,8 +116,7 @@ def category(self) -> str: @category.setter def category(self, category: str): - """Sets the category of this AiNameComponent. - + """ Name component category. Enum, available values: Unknown, Mononym, Score, Format, FirstInitial, FirstName, MiddleInitial, MiddleName, MiddleNickname, MiddleSobriquet, MiddleMaidenName, MiddlePatronym, MiddleMatronym, LastInitial, LastName, LastNobiliaryParticle, LastNominalConjunction, LastPaternalSurname, LastMaternalSurname, PrefixTitle, PostfixGenerationalTitle, PostfixPostnominalLetters, ArabicIsm, ArabicKunya, ArabicNasab, ArabicSlaqab, ArabicNisbah :param category: The category of this AiNameComponent. @@ -127,8 +128,7 @@ def category(self, category: str): @property def score(self) -> float: - """Gets the score of this AiNameComponent. - + """ Score from 0.0 to 1.0 :return: The score of this AiNameComponent. @@ -138,8 +138,7 @@ def score(self) -> float: @score.setter def score(self, score: float): - """Sets the score of this AiNameComponent. - + """ Score from 0.0 to 1.0 :param score: The score of this AiNameComponent. @@ -151,8 +150,7 @@ def score(self, score: float): @property def position(self) -> int: - """Gets the position of this AiNameComponent. - + """ Component position from 0 :return: The position of this AiNameComponent. @@ -162,8 +160,7 @@ def position(self) -> int: @position.setter def position(self, position: int): - """Sets the position of this AiNameComponent. - + """ Component position from 0 :param position: The position of this AiNameComponent. diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_component_list.py b/sdk/AsposeEmailCloudSdk/models/ai_name_component_list.py new file mode 100644 index 0000000..b24593d --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_component_list.py @@ -0,0 +1,109 @@ +# 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.ai_name_component import AiNameComponent +from AsposeEmailCloudSdk.models.list_response_of_ai_name_component import ListResponseOfAiNameComponent + + +class AiNameComponentList(ListResponseOfAiNameComponent): + """List of name components + """ + + """ + 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[AiNameComponent]' + } + + attribute_map = { + 'value': 'value' + } + + def __init__(self, value: List[AiNameComponent] = None): + """ + List of name components + :param value: + :type value: List[AiNameComponent] + """ + super(AiNameComponentList, 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, AiNameComponentList): + 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/ai_name_cultural_context.py b/sdk/AsposeEmailCloudSdk/models/ai_name_cultural_context.py index 37e0e64..a4a8bb0 100644 --- a/sdk/AsposeEmailCloudSdk/models/ai_name_cultural_context.py +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_cultural_context.py @@ -61,11 +61,16 @@ class AiNameCulturalContext(object): def __init__(self, language: str = None, location: str = None, script: str = None, encoding: str = None, style: str = None): """ AiName cultural context - :param language (str) An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) - :param location (str) A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France - :param script (str) A writing system code; starts with the ISO-15924 script name - :param encoding (str) A character encoding name - :param style (str) Name writing style. Enum, available values: Formal, Informal, Legal, Academic + :param language: An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) + :type language: str + :param location: A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France + :type location: str + :param script: A writing system code; starts with the ISO-15924 script name + :type script: str + :param encoding: A character encoding name + :type encoding: str + :param style: Name writing style. Enum, available values: Formal, Informal, Legal, Academic + :type style: str """ self._language = None @@ -85,10 +90,10 @@ def __init__(self, language: str = None, location: str = None, script: str = Non if style is not None: self.style = style + @property def language(self) -> str: - """Gets the language of this AiNameCulturalContext. - + """ An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) :return: The language of this AiNameCulturalContext. @@ -98,8 +103,7 @@ def language(self) -> str: @language.setter def language(self, language: str): - """Sets the language of this AiNameCulturalContext. - + """ An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) :param language: The language of this AiNameCulturalContext. @@ -109,8 +113,7 @@ def language(self, language: str): @property def location(self) -> str: - """Gets the location of this AiNameCulturalContext. - + """ A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France :return: The location of this AiNameCulturalContext. @@ -120,8 +123,7 @@ def location(self) -> str: @location.setter def location(self, location: str): - """Sets the location of this AiNameCulturalContext. - + """ A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France :param location: The location of this AiNameCulturalContext. @@ -131,8 +133,7 @@ def location(self, location: str): @property def script(self) -> str: - """Gets the script of this AiNameCulturalContext. - + """ A writing system code; starts with the ISO-15924 script name :return: The script of this AiNameCulturalContext. @@ -142,8 +143,7 @@ def script(self) -> str: @script.setter def script(self, script: str): - """Sets the script of this AiNameCulturalContext. - + """ A writing system code; starts with the ISO-15924 script name :param script: The script of this AiNameCulturalContext. @@ -153,8 +153,7 @@ def script(self, script: str): @property def encoding(self) -> str: - """Gets the encoding of this AiNameCulturalContext. - + """ A character encoding name :return: The encoding of this AiNameCulturalContext. @@ -164,8 +163,7 @@ def encoding(self) -> str: @encoding.setter def encoding(self, encoding: str): - """Sets the encoding of this AiNameCulturalContext. - + """ A character encoding name :param encoding: The encoding of this AiNameCulturalContext. @@ -175,8 +173,7 @@ def encoding(self, encoding: str): @property def style(self) -> str: - """Gets the style of this AiNameCulturalContext. - + """ Name writing style. Enum, available values: Formal, Informal, Legal, Academic :return: The style of this AiNameCulturalContext. @@ -186,8 +183,7 @@ def style(self) -> str: @style.setter def style(self, style: str): - """Sets the style of this AiNameCulturalContext. - + """ Name writing style. Enum, available values: Formal, Informal, Legal, Academic :param style: The style of this AiNameCulturalContext. diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_expand_request.py b/sdk/AsposeEmailCloudSdk/models/ai_name_expand_request.py new file mode 100644 index 0000000..b4f7079 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_expand_request.py @@ -0,0 +1,73 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class AiNameExpandRequest(object): + """ + Request model for ai_name_expand operation. + Initializes a new instance. + + :param name: A name to expand. + :type name: str + :param language: An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). + :type language: str + :param location: A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. + :type location: str + :param encoding: A character encoding name. + :type encoding: str + :param script: A writing system code; starts with the ISO-15924 script name. + :type script: str + :param style: Name writing style. Enum, available values: Formal, Informal, Legal, Academic + :type style: str + """ + + def __init__(self, name: str, language: str = None, location: str = None, encoding: str = None, script: str = None, style: str = None): + """ + Request model for ai_name_expand operation. + Initializes a new instance. + + :param name: A name to expand. + :type name: str + :param language: An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). + :type language: str + :param location: A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. + :type location: str + :param encoding: A character encoding name. + :type encoding: str + :param script: A writing system code; starts with the ISO-15924 script name. + :type script: str + :param style: Name writing style. Enum, available values: Formal, Informal, Legal, Academic + :type style: str + """ + + self.name = name + self.language = language + self.location = location + self.encoding = encoding + self.script = script + self.style = style diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_extracted.py b/sdk/AsposeEmailCloudSdk/models/ai_name_extracted.py index dcc2a73..9494e2e 100644 --- a/sdk/AsposeEmailCloudSdk/models/ai_name_extracted.py +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_extracted.py @@ -57,8 +57,10 @@ class AiNameExtracted(object): def __init__(self, name: List[AiNameExtractedComponent] = None, score: float = None): """ Extracted name - :param name (List[AiNameExtractedComponent]) Extracted name components - :param score (float) Extracted name score + :param name: Extracted name components + :type name: List[AiNameExtractedComponent] + :param score: Extracted name score + :type score: float """ self._name = None @@ -69,10 +71,10 @@ def __init__(self, name: List[AiNameExtractedComponent] = None, score: float = N if score is not None: self.score = score + @property def name(self) -> List[AiNameExtractedComponent]: - """Gets the name of this AiNameExtracted. - + """ Extracted name components :return: The name of this AiNameExtracted. @@ -82,8 +84,7 @@ def name(self) -> List[AiNameExtractedComponent]: @name.setter def name(self, name: List[AiNameExtractedComponent]): - """Sets the name of this AiNameExtracted. - + """ Extracted name components :param name: The name of this AiNameExtracted. @@ -93,8 +94,7 @@ def name(self, name: List[AiNameExtractedComponent]): @property def score(self) -> float: - """Gets the score of this AiNameExtracted. - + """ Extracted name score :return: The score of this AiNameExtracted. @@ -104,8 +104,7 @@ def score(self) -> float: @score.setter def score(self, score: float): - """Sets the score of this AiNameExtracted. - + """ Extracted name score :param score: The score of this AiNameExtracted. diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_extracted_component.py b/sdk/AsposeEmailCloudSdk/models/ai_name_extracted_component.py index ddd8071..cf1242e 100644 --- a/sdk/AsposeEmailCloudSdk/models/ai_name_extracted_component.py +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_extracted_component.py @@ -55,8 +55,10 @@ class AiNameExtractedComponent(object): def __init__(self, category: str = None, value: str = None): """ Extracted name component - :param category (str) Extracted from email address name component category. Enum, available values: Unknown, GivenName, Surname, SomeName, NoName, Initial - :param value (str) Extracted value + :param category: Extracted from email address name component category. Enum, available values: Unknown, GivenName, Surname, SomeName, NoName, Initial + :type category: str + :param value: Extracted value + :type value: str """ self._category = None @@ -67,10 +69,10 @@ def __init__(self, category: str = None, value: str = None): if value is not None: self.value = value + @property def category(self) -> str: - """Gets the category of this AiNameExtractedComponent. - + """ Extracted from email address name component category. Enum, available values: Unknown, GivenName, Surname, SomeName, NoName, Initial :return: The category of this AiNameExtractedComponent. @@ -80,8 +82,7 @@ def category(self) -> str: @category.setter def category(self, category: str): - """Sets the category of this AiNameExtractedComponent. - + """ Extracted from email address name component category. Enum, available values: Unknown, GivenName, Surname, SomeName, NoName, Initial :param category: The category of this AiNameExtractedComponent. @@ -93,8 +94,7 @@ def category(self, category: str): @property def value(self) -> str: - """Gets the value of this AiNameExtractedComponent. - + """ Extracted value :return: The value of this AiNameExtractedComponent. @@ -104,8 +104,7 @@ def value(self) -> str: @value.setter def value(self, value: str): - """Sets the value of this AiNameExtractedComponent. - + """ Extracted value :param value: The value of this AiNameExtractedComponent. diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_extracted_list.py b/sdk/AsposeEmailCloudSdk/models/ai_name_extracted_list.py new file mode 100644 index 0000000..05905d9 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_extracted_list.py @@ -0,0 +1,109 @@ +# 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.ai_name_extracted import AiNameExtracted +from AsposeEmailCloudSdk.models.list_response_of_ai_name_extracted import ListResponseOfAiNameExtracted + + +class AiNameExtractedList(ListResponseOfAiNameExtracted): + """Extracted name list. + """ + + """ + 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[AiNameExtracted]' + } + + attribute_map = { + 'value': 'value' + } + + def __init__(self, value: List[AiNameExtracted] = None): + """ + Extracted name list. + :param value: + :type value: List[AiNameExtracted] + """ + super(AiNameExtractedList, 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, AiNameExtractedList): + 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/ai_name_format_request.py b/sdk/AsposeEmailCloudSdk/models/ai_name_format_request.py new file mode 100644 index 0000000..e4a8181 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_format_request.py @@ -0,0 +1,78 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class AiNameFormatRequest(object): + """ + Request model for ai_name_format operation. + Initializes a new instance. + + :param name: A name to format. + :type name: str + :param language: An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). + :type language: str + :param location: A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. + :type location: str + :param encoding: A character encoding name. + :type encoding: str + :param script: A writing system code; starts with the ISO-15924 script name. + :type script: str + :param format: Format of the name. Predefined format can be used by ID, or custom format can be specified. Predefined formats: /format/default/ (= '%t%F%m%N%L%p') /format/FN+LN/ (= '%F%L') /format/title+FN+LN/ (= '%t%F%L') /format/FN+MN+LN/ (= '%F%M%N%L') /format/title+FN+MN+LN/ (= '%t%F%M%N%L') /format/FN+MI+LN/ (= '%F%m%N%L') /format/title+FN+MI+LN/ (= '%t%F%m%N%L') /format/LN/ (= '%L') /format/title+LN/ (= '%t%L') /format/LN+FN+MN/ (= '%L,%F%M%N') /format/LN+title+FN+MN/ (= '%L,%t%F%M%N') /format/LN+FN+MI/ (= '%L,%F%m%N') /format/LN+title+FN+MI/ (= '%L,%t%F%m%N') Custom format string - custom combination of characters and the next term placeholders: '%t' - Title (prefix) '%F' - First name '%f' - First initial '%M' - Middle name(s) '%m' - Middle initial(s) '%N' - Nickname '%L' - Last name '%l' - Last initial '%p' - Postfix If no value for format option was provided, its default value is '%t%F%m%N%L%p' + :type format: str + :param style: Name writing style. Enum, available values: Formal, Informal, Legal, Academic + :type style: str + """ + + def __init__(self, name: str, language: str = None, location: str = None, encoding: str = None, script: str = None, format: str = None, style: str = None): + """ + Request model for ai_name_format operation. + Initializes a new instance. + + :param name: A name to format. + :type name: str + :param language: An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). + :type language: str + :param location: A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. + :type location: str + :param encoding: A character encoding name. + :type encoding: str + :param script: A writing system code; starts with the ISO-15924 script name. + :type script: str + :param format: Format of the name. Predefined format can be used by ID, or custom format can be specified. Predefined formats: /format/default/ (= '%t%F%m%N%L%p') /format/FN+LN/ (= '%F%L') /format/title+FN+LN/ (= '%t%F%L') /format/FN+MN+LN/ (= '%F%M%N%L') /format/title+FN+MN+LN/ (= '%t%F%M%N%L') /format/FN+MI+LN/ (= '%F%m%N%L') /format/title+FN+MI+LN/ (= '%t%F%m%N%L') /format/LN/ (= '%L') /format/title+LN/ (= '%t%L') /format/LN+FN+MN/ (= '%L,%F%M%N') /format/LN+title+FN+MN/ (= '%L,%t%F%M%N') /format/LN+FN+MI/ (= '%L,%F%m%N') /format/LN+title+FN+MI/ (= '%L,%t%F%m%N') Custom format string - custom combination of characters and the next term placeholders: '%t' - Title (prefix) '%F' - First name '%f' - First initial '%M' - Middle name(s) '%m' - Middle initial(s) '%N' - Nickname '%L' - Last name '%l' - Last initial '%p' - Postfix If no value for format option was provided, its default value is '%t%F%m%N%L%p' + :type format: str + :param style: Name writing style. Enum, available values: Formal, Informal, Legal, Academic + :type style: str + """ + + self.name = name + self.language = language + self.location = location + self.encoding = encoding + self.script = script + self.format = format + self.style = style diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_formatted.py b/sdk/AsposeEmailCloudSdk/models/ai_name_formatted.py index 7e9498e..f733e2f 100644 --- a/sdk/AsposeEmailCloudSdk/models/ai_name_formatted.py +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_formatted.py @@ -55,8 +55,10 @@ class AiNameFormatted(object): def __init__(self, name: str = None, comments: str = None): """ Formatted name - :param name (str) Formatted name value - :param comments (str) Usually empty; can contain extra message describing some issue occurred during the formatting + :param name: Formatted name value + :type name: str + :param comments: Usually empty; can contain extra message describing some issue occurred during the formatting + :type comments: str """ self._name = None @@ -67,10 +69,10 @@ def __init__(self, name: str = None, comments: str = None): if comments is not None: self.comments = comments + @property def name(self) -> str: - """Gets the name of this AiNameFormatted. - + """ Formatted name value :return: The name of this AiNameFormatted. @@ -80,8 +82,7 @@ def name(self) -> str: @name.setter def name(self, name: str): - """Sets the name of this AiNameFormatted. - + """ Formatted name value :param name: The name of this AiNameFormatted. @@ -91,8 +92,7 @@ def name(self, name: str): @property def comments(self) -> str: - """Gets the comments of this AiNameFormatted. - + """ Usually empty; can contain extra message describing some issue occurred during the formatting :return: The comments of this AiNameFormatted. @@ -102,8 +102,7 @@ def comments(self) -> str: @comments.setter def comments(self, comments: str): - """Sets the comments of this AiNameFormatted. - + """ Usually empty; can contain extra message describing some issue occurred during the formatting :param comments: The comments of this AiNameFormatted. diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_gender_hypothesis.py b/sdk/AsposeEmailCloudSdk/models/ai_name_gender_hypothesis.py index 2ab245e..3274bdc 100644 --- a/sdk/AsposeEmailCloudSdk/models/ai_name_gender_hypothesis.py +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_gender_hypothesis.py @@ -55,8 +55,10 @@ class AiNameGenderHypothesis(object): def __init__(self, gender: str = None, score: float = None): """ Name gender hypothesis - :param gender (str) Recognized name gender. Enum, available values: Male, Female, Unknown - :param score (float) Hypothesis score + :param gender: Recognized name gender. Enum, available values: Male, Female, Unknown + :type gender: str + :param score: Hypothesis score + :type score: float """ self._gender = None @@ -67,10 +69,10 @@ def __init__(self, gender: str = None, score: float = None): if score is not None: self.score = score + @property def gender(self) -> str: - """Gets the gender of this AiNameGenderHypothesis. - + """ Recognized name gender. Enum, available values: Male, Female, Unknown :return: The gender of this AiNameGenderHypothesis. @@ -80,8 +82,7 @@ def gender(self) -> str: @gender.setter def gender(self, gender: str): - """Sets the gender of this AiNameGenderHypothesis. - + """ Recognized name gender. Enum, available values: Male, Female, Unknown :param gender: The gender of this AiNameGenderHypothesis. @@ -93,8 +94,7 @@ def gender(self, gender: str): @property def score(self) -> float: - """Gets the score of this AiNameGenderHypothesis. - + """ Hypothesis score :return: The score of this AiNameGenderHypothesis. @@ -104,8 +104,7 @@ def score(self) -> float: @score.setter def score(self, score: float): - """Sets the score of this AiNameGenderHypothesis. - + """ Hypothesis score :param score: The score of this AiNameGenderHypothesis. diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_gender_hypothesis_list.py b/sdk/AsposeEmailCloudSdk/models/ai_name_gender_hypothesis_list.py new file mode 100644 index 0000000..b912d33 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_gender_hypothesis_list.py @@ -0,0 +1,109 @@ +# 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.ai_name_gender_hypothesis import AiNameGenderHypothesis +from AsposeEmailCloudSdk.models.list_response_of_ai_name_gender_hypothesis import ListResponseOfAiNameGenderHypothesis + + +class AiNameGenderHypothesisList(ListResponseOfAiNameGenderHypothesis): + """Hypotheses about person's gender + """ + + """ + 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[AiNameGenderHypothesis]' + } + + attribute_map = { + 'value': 'value' + } + + def __init__(self, value: List[AiNameGenderHypothesis] = None): + """ + Hypotheses about person's gender + :param value: + :type value: List[AiNameGenderHypothesis] + """ + super(AiNameGenderHypothesisList, 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, AiNameGenderHypothesisList): + 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/ai_name_genderize_request.py b/sdk/AsposeEmailCloudSdk/models/ai_name_genderize_request.py new file mode 100644 index 0000000..4889b3f --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_genderize_request.py @@ -0,0 +1,73 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class AiNameGenderizeRequest(object): + """ + Request model for ai_name_genderize operation. + Initializes a new instance. + + :param name: A name to genderize. + :type name: str + :param language: An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). + :type language: str + :param location: A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. + :type location: str + :param encoding: A character encoding name. + :type encoding: str + :param script: A writing system code; starts with the ISO-15924 script name. + :type script: str + :param style: Name writing style. Enum, available values: Formal, Informal, Legal, Academic + :type style: str + """ + + def __init__(self, name: str, language: str = None, location: str = None, encoding: str = None, script: str = None, style: str = None): + """ + Request model for ai_name_genderize operation. + Initializes a new instance. + + :param name: A name to genderize. + :type name: str + :param language: An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). + :type language: str + :param location: A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. + :type location: str + :param encoding: A character encoding name. + :type encoding: str + :param script: A writing system code; starts with the ISO-15924 script name. + :type script: str + :param style: Name writing style. Enum, available values: Formal, Informal, Legal, Academic + :type style: str + """ + + self.name = name + self.language = language + self.location = location + self.encoding = encoding + self.script = script + self.style = style diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_parsed_match_rq.py b/sdk/AsposeEmailCloudSdk/models/ai_name_match_parsed_request.py similarity index 72% rename from sdk/AsposeEmailCloudSdk/models/ai_name_parsed_match_rq.py rename to sdk/AsposeEmailCloudSdk/models/ai_name_match_parsed_request.py index f7ae6b5..ada6984 100644 --- a/sdk/AsposeEmailCloudSdk/models/ai_name_parsed_match_rq.py +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_match_parsed_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -32,10 +32,10 @@ from AsposeEmailCloudSdk.models.ai_name_component import AiNameComponent from AsposeEmailCloudSdk.models.ai_name_cultural_context import AiNameCulturalContext -from AsposeEmailCloudSdk.models.ai_name_parsed_rq import AiNameParsedRq +from AsposeEmailCloudSdk.models.ai_name_parsed_request import AiNameParsedRequest -class AiNameParsedMatchRq(AiNameParsedRq): +class AiNameMatchParsedRequest(AiNameParsedRequest): """Two parsed names to match request """ @@ -63,12 +63,16 @@ class AiNameParsedMatchRq(AiNameParsedRq): def __init__(self, cultural_context: AiNameCulturalContext = None, format: str = None, parsed_name: List[AiNameComponent] = None, other_parsed_name: List[AiNameComponent] = None): """ Two parsed names to match request - :param cultural_context (AiNameCulturalContext) AiName parser cultural context - :param format (str) Format of the name. Predefined format can be used by ID, or custom format can be specified. Predefined formats: /format/default/ (= '%t%F%m%N%L%p') /format/FN+LN/ (= '%F%L') /format/title+FN+LN/ (= '%t%F%L') /format/FN+MN+LN/ (= '%F%M%N%L') /format/title+FN+MN+LN/ (= '%t%F%M%N%L') /format/FN+MI+LN/ (= '%F%m%N%L') /format/title+FN+MI+LN/ (= '%t%F%m%N%L') /format/LN/ (= '%L') /format/title+LN/ (= '%t%L') /format/LN+FN+MN/ (= '%L,%F%M%N') /format/LN+title+FN+MN/ (= '%L,%t%F%M%N') /format/LN+FN+MI/ (= '%L,%F%m%N') /format/LN+title+FN+MI/ (= '%L,%t%F%m%N') Custom format string - custom combination of characters and the next term placeholders: '%t' - Title (prefix) '%F' - First name '%f' - First initial '%M' - Middle name(s) '%m' - Middle initial(s) '%N' - Nickname '%L' - Last name '%l' - Last initial '%p' - Postfix If no value for format option was provided, its default value is '%t%F%m%N%L%p' - :param parsed_name (List[AiNameComponent]) Parsed name - :param other_parsed_name (List[AiNameComponent]) Other parsed name to match + :param cultural_context: AiName parser cultural context + :type cultural_context: AiNameCulturalContext + :param format: Format of the name. Predefined format can be used by ID, or custom format can be specified. Predefined formats: /format/default/ (= '%t%F%m%N%L%p') /format/FN+LN/ (= '%F%L') /format/title+FN+LN/ (= '%t%F%L') /format/FN+MN+LN/ (= '%F%M%N%L') /format/title+FN+MN+LN/ (= '%t%F%M%N%L') /format/FN+MI+LN/ (= '%F%m%N%L') /format/title+FN+MI+LN/ (= '%t%F%m%N%L') /format/LN/ (= '%L') /format/title+LN/ (= '%t%L') /format/LN+FN+MN/ (= '%L,%F%M%N') /format/LN+title+FN+MN/ (= '%L,%t%F%M%N') /format/LN+FN+MI/ (= '%L,%F%m%N') /format/LN+title+FN+MI/ (= '%L,%t%F%m%N') Custom format string - custom combination of characters and the next term placeholders: '%t' - Title (prefix) '%F' - First name '%f' - First initial '%M' - Middle name(s) '%m' - Middle initial(s) '%N' - Nickname '%L' - Last name '%l' - Last initial '%p' - Postfix If no value for format option was provided, its default value is '%t%F%m%N%L%p' + :type format: str + :param parsed_name: Parsed name + :type parsed_name: List[AiNameComponent] + :param other_parsed_name: Other parsed name to match + :type other_parsed_name: List[AiNameComponent] """ - super(AiNameParsedMatchRq, self).__init__() + super(AiNameMatchParsedRequest, self).__init__() self._other_parsed_name = None @@ -81,24 +85,23 @@ def __init__(self, cultural_context: AiNameCulturalContext = None, format: str = if other_parsed_name is not None: self.other_parsed_name = other_parsed_name + @property def other_parsed_name(self) -> List[AiNameComponent]: - """Gets the other_parsed_name of this AiNameParsedMatchRq. - + """ Other parsed name to match - :return: The other_parsed_name of this AiNameParsedMatchRq. + :return: The other_parsed_name of this AiNameMatchParsedRequest. :rtype: list[AiNameComponent] """ return self._other_parsed_name @other_parsed_name.setter def other_parsed_name(self, other_parsed_name: List[AiNameComponent]): - """Sets the other_parsed_name of this AiNameParsedMatchRq. - + """ Other parsed name to match - :param other_parsed_name: The other_parsed_name of this AiNameParsedMatchRq. + :param other_parsed_name: The other_parsed_name of this AiNameMatchParsedRequest. :type: list[AiNameComponent] """ if other_parsed_name is None: @@ -139,7 +142,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, AiNameParsedMatchRq): + if not isinstance(other, AiNameMatchParsedRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_match_request.py b/sdk/AsposeEmailCloudSdk/models/ai_name_match_request.py new file mode 100644 index 0000000..cd7d12a --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_match_request.py @@ -0,0 +1,78 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class AiNameMatchRequest(object): + """ + Request model for ai_name_match operation. + Initializes a new instance. + + :param name: A name to match. + :type name: str + :param other_name: Another name to match. + :type other_name: str + :param language: An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). + :type language: str + :param location: A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. + :type location: str + :param encoding: A character encoding name. + :type encoding: str + :param script: A writing system code; starts with the ISO-15924 script name. + :type script: str + :param style: Name writing style. Enum, available values: Formal, Informal, Legal, Academic + :type style: str + """ + + def __init__(self, name: str, other_name: str, language: str = None, location: str = None, encoding: str = None, script: str = None, style: str = None): + """ + Request model for ai_name_match operation. + Initializes a new instance. + + :param name: A name to match. + :type name: str + :param other_name: Another name to match. + :type other_name: str + :param language: An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). + :type language: str + :param location: A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. + :type location: str + :param encoding: A character encoding name. + :type encoding: str + :param script: A writing system code; starts with the ISO-15924 script name. + :type script: str + :param style: Name writing style. Enum, available values: Formal, Informal, Legal, Academic + :type style: str + """ + + self.name = name + self.other_name = other_name + self.language = language + self.location = location + self.encoding = encoding + self.script = script + self.style = style diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_match_result.py b/sdk/AsposeEmailCloudSdk/models/ai_name_match_result.py index 0409c72..ce7465d 100644 --- a/sdk/AsposeEmailCloudSdk/models/ai_name_match_result.py +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_match_result.py @@ -57,8 +57,10 @@ class AiNameMatchResult(object): def __init__(self, similarity: float = None, mismatches: List[AiNameMismatch] = None): """ Two names match result - :param similarity (float) Similarity score - :param mismatches (List[AiNameMismatch]) Detailed description of mismatches + :param similarity: Similarity score + :type similarity: float + :param mismatches: Detailed description of mismatches + :type mismatches: List[AiNameMismatch] """ self._similarity = None @@ -69,10 +71,10 @@ def __init__(self, similarity: float = None, mismatches: List[AiNameMismatch] = if mismatches is not None: self.mismatches = mismatches + @property def similarity(self) -> float: - """Gets the similarity of this AiNameMatchResult. - + """ Similarity score :return: The similarity of this AiNameMatchResult. @@ -82,8 +84,7 @@ def similarity(self) -> float: @similarity.setter def similarity(self, similarity: float): - """Sets the similarity of this AiNameMatchResult. - + """ Similarity score :param similarity: The similarity of this AiNameMatchResult. @@ -95,8 +96,7 @@ def similarity(self, similarity: float): @property def mismatches(self) -> List[AiNameMismatch]: - """Gets the mismatches of this AiNameMatchResult. - + """ Detailed description of mismatches :return: The mismatches of this AiNameMatchResult. @@ -106,8 +106,7 @@ def mismatches(self) -> List[AiNameMismatch]: @mismatches.setter def mismatches(self, mismatches: List[AiNameMismatch]): - """Sets the mismatches of this AiNameMatchResult. - + """ Detailed description of mismatches :param mismatches: The mismatches of this AiNameMatchResult. diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_mismatch.py b/sdk/AsposeEmailCloudSdk/models/ai_name_mismatch.py index 0bc0922..c83d49f 100644 --- a/sdk/AsposeEmailCloudSdk/models/ai_name_mismatch.py +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_mismatch.py @@ -57,9 +57,12 @@ class AiNameMismatch(object): def __init__(self, category: str = None, similarity: float = None, explanation: str = None): """ Names mismatch detailed description - :param category (str) Mismatch type. Enum, available values: Unknown, FirstName, MiddleName, MiddleLastName, MiddleNickname, Gender, Context - :param similarity (float) Similarity score - :param explanation (str) Explanation or mismatch subtype + :param category: Mismatch type. Enum, available values: Unknown, FirstName, MiddleName, MiddleLastName, MiddleNickname, Gender, Context + :type category: str + :param similarity: Similarity score + :type similarity: float + :param explanation: Explanation or mismatch subtype + :type explanation: str """ self._category = None @@ -73,10 +76,10 @@ def __init__(self, category: str = None, similarity: float = None, explanation: if explanation is not None: self.explanation = explanation + @property def category(self) -> str: - """Gets the category of this AiNameMismatch. - + """ Mismatch type. Enum, available values: Unknown, FirstName, MiddleName, MiddleLastName, MiddleNickname, Gender, Context :return: The category of this AiNameMismatch. @@ -86,8 +89,7 @@ def category(self) -> str: @category.setter def category(self, category: str): - """Sets the category of this AiNameMismatch. - + """ Mismatch type. Enum, available values: Unknown, FirstName, MiddleName, MiddleLastName, MiddleNickname, Gender, Context :param category: The category of this AiNameMismatch. @@ -99,8 +101,7 @@ def category(self, category: str): @property def similarity(self) -> float: - """Gets the similarity of this AiNameMismatch. - + """ Similarity score :return: The similarity of this AiNameMismatch. @@ -110,8 +111,7 @@ def similarity(self) -> float: @similarity.setter def similarity(self, similarity: float): - """Sets the similarity of this AiNameMismatch. - + """ Similarity score :param similarity: The similarity of this AiNameMismatch. @@ -123,8 +123,7 @@ def similarity(self, similarity: float): @property def explanation(self) -> str: - """Gets the explanation of this AiNameMismatch. - + """ Explanation or mismatch subtype :return: The explanation of this AiNameMismatch. @@ -134,8 +133,7 @@ def explanation(self) -> str: @explanation.setter def explanation(self, explanation: str): - """Sets the explanation of this AiNameMismatch. - + """ Explanation or mismatch subtype :param explanation: The explanation of this AiNameMismatch. diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_parse_email_address_request.py b/sdk/AsposeEmailCloudSdk/models/ai_name_parse_email_address_request.py new file mode 100644 index 0000000..ef4c385 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_parse_email_address_request.py @@ -0,0 +1,74 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class AiNameParseEmailAddressRequest(object): + """ + Request model for ai_name_parse_email_address operation. + Initializes a new instance. + + :param email_address: Email address to parse. + :type email_address: str + :param language: An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). + :type language: str + :param location: A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. + :type location: str + :param encoding: A character encoding name. + :type encoding: str + :param script: A writing system code; starts with the ISO-15924 script name. + :type script: str + :param style: Name writing style. Enum, available values: Formal, Informal, Legal, Academic + :type style: str + """ + + def __init__(self, email_address: str, language: str = None, location: str = None, encoding: str = None, script: str = None, style: str = None): + """ + Request model for ai_name_parse_email_address operation. + Initializes a new instance. + + :param email_address: Email address to parse. + :type email_address: str + :param language: An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). + :type language: str + :param location: A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. + :type location: str + :param encoding: A character encoding name. + :type encoding: str + :param script: A writing system code; starts with the ISO-15924 script name. + :type script: str + :param style: Name writing style. Enum, available values: Formal, Informal, Legal, Academic + :type style: str + """ + + self.email_address = email_address + self.language = language + self.location = location + self.encoding = encoding + self.script = script + self.style = style + diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_parse_request.py b/sdk/AsposeEmailCloudSdk/models/ai_name_parse_request.py new file mode 100644 index 0000000..72733db --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_parse_request.py @@ -0,0 +1,73 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class AiNameParseRequest(object): + """ + Request model for ai_name_parse operation. + Initializes a new instance. + + :param name: A name to parse. + :type name: str + :param language: An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). + :type language: str + :param location: A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. + :type location: str + :param encoding: A character encoding name. + :type encoding: str + :param script: A writing system code; starts with the ISO-15924 script name. + :type script: str + :param style: Name writing style. Enum, available values: Formal, Informal, Legal, Academic + :type style: str + """ + + def __init__(self, name: str, language: str = None, location: str = None, encoding: str = None, script: str = None, style: str = None): + """ + Request model for ai_name_parse operation. + Initializes a new instance. + + :param name: A name to parse. + :type name: str + :param language: An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). + :type language: str + :param location: A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. + :type location: str + :param encoding: A character encoding name. + :type encoding: str + :param script: A writing system code; starts with the ISO-15924 script name. + :type script: str + :param style: Name writing style. Enum, available values: Formal, Informal, Legal, Academic + :type style: str + """ + + self.name = name + self.language = language + self.location = location + self.encoding = encoding + self.script = script + self.style = style diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_parsed_rq.py b/sdk/AsposeEmailCloudSdk/models/ai_name_parsed_request.py similarity index 79% rename from sdk/AsposeEmailCloudSdk/models/ai_name_parsed_rq.py rename to sdk/AsposeEmailCloudSdk/models/ai_name_parsed_request.py index 32d0d51..e51c8e4 100644 --- a/sdk/AsposeEmailCloudSdk/models/ai_name_parsed_rq.py +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_parsed_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -34,7 +34,7 @@ from AsposeEmailCloudSdk.models.ai_name_cultural_context import AiNameCulturalContext -class AiNameParsedRq(object): +class AiNameParsedRequest(object): """Parsed name request model """ @@ -60,9 +60,12 @@ class AiNameParsedRq(object): def __init__(self, cultural_context: AiNameCulturalContext = None, format: str = None, parsed_name: List[AiNameComponent] = None): """ Parsed name request model - :param cultural_context (AiNameCulturalContext) AiName parser cultural context - :param format (str) Format of the name. Predefined format can be used by ID, or custom format can be specified. Predefined formats: /format/default/ (= '%t%F%m%N%L%p') /format/FN+LN/ (= '%F%L') /format/title+FN+LN/ (= '%t%F%L') /format/FN+MN+LN/ (= '%F%M%N%L') /format/title+FN+MN+LN/ (= '%t%F%M%N%L') /format/FN+MI+LN/ (= '%F%m%N%L') /format/title+FN+MI+LN/ (= '%t%F%m%N%L') /format/LN/ (= '%L') /format/title+LN/ (= '%t%L') /format/LN+FN+MN/ (= '%L,%F%M%N') /format/LN+title+FN+MN/ (= '%L,%t%F%M%N') /format/LN+FN+MI/ (= '%L,%F%m%N') /format/LN+title+FN+MI/ (= '%L,%t%F%m%N') Custom format string - custom combination of characters and the next term placeholders: '%t' - Title (prefix) '%F' - First name '%f' - First initial '%M' - Middle name(s) '%m' - Middle initial(s) '%N' - Nickname '%L' - Last name '%l' - Last initial '%p' - Postfix If no value for format option was provided, its default value is '%t%F%m%N%L%p' - :param parsed_name (List[AiNameComponent]) Parsed name + :param cultural_context: AiName parser cultural context + :type cultural_context: AiNameCulturalContext + :param format: Format of the name. Predefined format can be used by ID, or custom format can be specified. Predefined formats: /format/default/ (= '%t%F%m%N%L%p') /format/FN+LN/ (= '%F%L') /format/title+FN+LN/ (= '%t%F%L') /format/FN+MN+LN/ (= '%F%M%N%L') /format/title+FN+MN+LN/ (= '%t%F%M%N%L') /format/FN+MI+LN/ (= '%F%m%N%L') /format/title+FN+MI+LN/ (= '%t%F%m%N%L') /format/LN/ (= '%L') /format/title+LN/ (= '%t%L') /format/LN+FN+MN/ (= '%L,%F%M%N') /format/LN+title+FN+MN/ (= '%L,%t%F%M%N') /format/LN+FN+MI/ (= '%L,%F%m%N') /format/LN+title+FN+MI/ (= '%L,%t%F%m%N') Custom format string - custom combination of characters and the next term placeholders: '%t' - Title (prefix) '%F' - First name '%f' - First initial '%M' - Middle name(s) '%m' - Middle initial(s) '%N' - Nickname '%L' - Last name '%l' - Last initial '%p' - Postfix If no value for format option was provided, its default value is '%t%F%m%N%L%p' + :type format: str + :param parsed_name: Parsed name + :type parsed_name: List[AiNameComponent] """ self._cultural_context = None @@ -76,68 +79,63 @@ def __init__(self, cultural_context: AiNameCulturalContext = None, format: str = if parsed_name is not None: self.parsed_name = parsed_name + @property def cultural_context(self) -> AiNameCulturalContext: - """Gets the cultural_context of this AiNameParsedRq. - + """ AiName parser cultural context - :return: The cultural_context of this AiNameParsedRq. + :return: The cultural_context of this AiNameParsedRequest. :rtype: AiNameCulturalContext """ return self._cultural_context @cultural_context.setter def cultural_context(self, cultural_context: AiNameCulturalContext): - """Sets the cultural_context of this AiNameParsedRq. - + """ AiName parser cultural context - :param cultural_context: The cultural_context of this AiNameParsedRq. + :param cultural_context: The cultural_context of this AiNameParsedRequest. :type: AiNameCulturalContext """ self._cultural_context = cultural_context @property def format(self) -> str: - """Gets the format of this AiNameParsedRq. - + """ Format of the name. Predefined format can be used by ID, or custom format can be specified. Predefined formats: /format/default/ (= '%t%F%m%N%L%p') /format/FN+LN/ (= '%F%L') /format/title+FN+LN/ (= '%t%F%L') /format/FN+MN+LN/ (= '%F%M%N%L') /format/title+FN+MN+LN/ (= '%t%F%M%N%L') /format/FN+MI+LN/ (= '%F%m%N%L') /format/title+FN+MI+LN/ (= '%t%F%m%N%L') /format/LN/ (= '%L') /format/title+LN/ (= '%t%L') /format/LN+FN+MN/ (= '%L,%F%M%N') /format/LN+title+FN+MN/ (= '%L,%t%F%M%N') /format/LN+FN+MI/ (= '%L,%F%m%N') /format/LN+title+FN+MI/ (= '%L,%t%F%m%N') Custom format string - custom combination of characters and the next term placeholders: '%t' - Title (prefix) '%F' - First name '%f' - First initial '%M' - Middle name(s) '%m' - Middle initial(s) '%N' - Nickname '%L' - Last name '%l' - Last initial '%p' - Postfix If no value for format option was provided, its default value is '%t%F%m%N%L%p' - :return: The format of this AiNameParsedRq. + :return: The format of this AiNameParsedRequest. :rtype: str """ return self._format @format.setter def format(self, format: str): - """Sets the format of this AiNameParsedRq. - + """ Format of the name. Predefined format can be used by ID, or custom format can be specified. Predefined formats: /format/default/ (= '%t%F%m%N%L%p') /format/FN+LN/ (= '%F%L') /format/title+FN+LN/ (= '%t%F%L') /format/FN+MN+LN/ (= '%F%M%N%L') /format/title+FN+MN+LN/ (= '%t%F%M%N%L') /format/FN+MI+LN/ (= '%F%m%N%L') /format/title+FN+MI+LN/ (= '%t%F%m%N%L') /format/LN/ (= '%L') /format/title+LN/ (= '%t%L') /format/LN+FN+MN/ (= '%L,%F%M%N') /format/LN+title+FN+MN/ (= '%L,%t%F%M%N') /format/LN+FN+MI/ (= '%L,%F%m%N') /format/LN+title+FN+MI/ (= '%L,%t%F%m%N') Custom format string - custom combination of characters and the next term placeholders: '%t' - Title (prefix) '%F' - First name '%f' - First initial '%M' - Middle name(s) '%m' - Middle initial(s) '%N' - Nickname '%L' - Last name '%l' - Last initial '%p' - Postfix If no value for format option was provided, its default value is '%t%F%m%N%L%p' - :param format: The format of this AiNameParsedRq. + :param format: The format of this AiNameParsedRequest. :type: str """ self._format = format @property def parsed_name(self) -> List[AiNameComponent]: - """Gets the parsed_name of this AiNameParsedRq. - + """ Parsed name - :return: The parsed_name of this AiNameParsedRq. + :return: The parsed_name of this AiNameParsedRequest. :rtype: list[AiNameComponent] """ return self._parsed_name @parsed_name.setter def parsed_name(self, parsed_name: List[AiNameComponent]): - """Sets the parsed_name of this AiNameParsedRq. - + """ Parsed name - :param parsed_name: The parsed_name of this AiNameParsedRq. + :param parsed_name: The parsed_name of this AiNameParsedRequest. :type: list[AiNameComponent] """ if parsed_name is None: @@ -178,7 +176,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, AiNameParsedRq): + if not isinstance(other, AiNameParsedRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_weighted.py b/sdk/AsposeEmailCloudSdk/models/ai_name_weighted.py index bca8bb1..767f119 100644 --- a/sdk/AsposeEmailCloudSdk/models/ai_name_weighted.py +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_weighted.py @@ -55,8 +55,10 @@ class AiNameWeighted(object): def __init__(self, name: str = None, score: float = None): """ Name with score - :param name (str) Name - :param score (float) Score of name + :param name: Name + :type name: str + :param score: Score of name + :type score: float """ self._name = None @@ -67,10 +69,10 @@ def __init__(self, name: str = None, score: float = None): if score is not None: self.score = score + @property def name(self) -> str: - """Gets the name of this AiNameWeighted. - + """ Name :return: The name of this AiNameWeighted. @@ -80,8 +82,7 @@ def name(self) -> str: @name.setter def name(self, name: str): - """Sets the name of this AiNameWeighted. - + """ Name :param name: The name of this AiNameWeighted. @@ -91,8 +92,7 @@ def name(self, name: str): @property def score(self) -> float: - """Gets the score of this AiNameWeighted. - + """ Score of name :return: The score of this AiNameWeighted. @@ -102,8 +102,7 @@ def score(self) -> float: @score.setter def score(self, score: float): - """Sets the score of this AiNameWeighted. - + """ Score of name :param score: The score of this AiNameWeighted. diff --git a/sdk/AsposeEmailCloudSdk/models/ai_name_weighted_variants.py b/sdk/AsposeEmailCloudSdk/models/ai_name_weighted_variants.py index 1f53364..f3d5b56 100644 --- a/sdk/AsposeEmailCloudSdk/models/ai_name_weighted_variants.py +++ b/sdk/AsposeEmailCloudSdk/models/ai_name_weighted_variants.py @@ -57,8 +57,10 @@ class AiNameWeightedVariants(object): def __init__(self, names: List[AiNameWeighted] = None, comments: str = None): """ Name variants - :param names (List[AiNameWeighted]) List of name variations - :param comments (str) Usually empty; can contain extra message describing some issue occurred during processing + :param names: List of name variations + :type names: List[AiNameWeighted] + :param comments: Usually empty; can contain extra message describing some issue occurred during processing + :type comments: str """ self._names = None @@ -69,10 +71,10 @@ def __init__(self, names: List[AiNameWeighted] = None, comments: str = None): if comments is not None: self.comments = comments + @property def names(self) -> List[AiNameWeighted]: - """Gets the names of this AiNameWeightedVariants. - + """ List of name variations :return: The names of this AiNameWeightedVariants. @@ -82,8 +84,7 @@ def names(self) -> List[AiNameWeighted]: @names.setter def names(self, names: List[AiNameWeighted]): - """Sets the names of this AiNameWeightedVariants. - + """ List of name variations :param names: The names of this AiNameWeightedVariants. @@ -93,8 +94,7 @@ def names(self, names: List[AiNameWeighted]): @property def comments(self) -> str: - """Gets the comments of this AiNameWeightedVariants. - + """ Usually empty; can contain extra message describing some issue occurred during processing :return: The comments of this AiNameWeightedVariants. @@ -104,8 +104,7 @@ def comments(self) -> str: @comments.setter def comments(self, comments: str): - """Sets the comments of this AiNameWeightedVariants. - + """ Usually empty; can contain extra message describing some issue occurred during processing :param comments: The comments of this AiNameWeightedVariants. diff --git a/sdk/AsposeEmailCloudSdk/models/alternate_view.py b/sdk/AsposeEmailCloudSdk/models/alternate_view.py index bb593fa..efeb009 100644 --- a/sdk/AsposeEmailCloudSdk/models/alternate_view.py +++ b/sdk/AsposeEmailCloudSdk/models/alternate_view.py @@ -67,12 +67,18 @@ class AlternateView(AttachmentBase): def __init__(self, base64_data: str = None, content_id: str = None, content_type: ContentType = None, headers: Dict[str, str] = None, base_uri: str = None, linked_resources: List[LinkedResource] = None): """ Represents the format to view a message. - :param base64_data (str) Attachment file content as Base64 string. - :param content_id (str) Attachment content id - :param content_type (ContentType) Content type - :param headers (Dict[str, str]) Attachment headers. - :param base_uri (str) Base URI. - :param linked_resources (List[LinkedResource]) Embedded resources referred to by this alternate view. + :param base64_data: Attachment file content as Base64 string. + :type base64_data: str + :param content_id: Attachment content id + :type content_id: str + :param content_type: Content type + :type content_type: ContentType + :param headers: Attachment headers. + :type headers: Dict[str, str] + :param base_uri: Base URI. + :type base_uri: str + :param linked_resources: Embedded resources referred to by this alternate view. + :type linked_resources: List[LinkedResource] """ super(AlternateView, self).__init__() @@ -92,10 +98,10 @@ def __init__(self, base64_data: str = None, content_id: str = None, content_type if linked_resources is not None: self.linked_resources = linked_resources + @property def base_uri(self) -> str: - """Gets the base_uri of this AlternateView. - + """ Base URI. :return: The base_uri of this AlternateView. @@ -105,8 +111,7 @@ def base_uri(self) -> str: @base_uri.setter def base_uri(self, base_uri: str): - """Sets the base_uri of this AlternateView. - + """ Base URI. :param base_uri: The base_uri of this AlternateView. @@ -116,8 +121,7 @@ def base_uri(self, base_uri: str): @property def linked_resources(self) -> List[LinkedResource]: - """Gets the linked_resources of this AlternateView. - + """ Embedded resources referred to by this alternate view. :return: The linked_resources of this AlternateView. @@ -127,8 +131,7 @@ def linked_resources(self) -> List[LinkedResource]: @linked_resources.setter def linked_resources(self, linked_resources: List[LinkedResource]): - """Sets the linked_resources of this AlternateView. - + """ Embedded resources referred to by this alternate view. :param linked_resources: The linked_resources of this AlternateView. diff --git a/sdk/AsposeEmailCloudSdk/models/append_email_base_request.py b/sdk/AsposeEmailCloudSdk/models/append_email_base_request.py deleted file mode 100644 index 022a8bc..0000000 --- a/sdk/AsposeEmailCloudSdk/models/append_email_base_request.py +++ /dev/null @@ -1,159 +0,0 @@ -# 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.append_email_account_base_request import AppendEmailAccountBaseRequest -from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation -from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation - - -class AppendEmailBaseRequest(AppendEmailAccountBaseRequest): - """Append email from storage file to account 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', - 'mark_as_sent': 'bool', - 'email_file': 'StorageFileLocation' - } - - attribute_map = { - 'first_account': 'firstAccount', - 'second_account': 'secondAccount', - 'storage_folder': 'storageFolder', - 'folder': 'folder', - 'mark_as_sent': 'markAsSent', - '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): - """ - Append email from storage file to account 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) 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 - """ - super(AppendEmailBaseRequest, self).__init__() - - self._email_file = 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 - if mark_as_sent is not None: - self.mark_as_sent = mark_as_sent - if email_file is not None: - self.email_file = email_file - - @property - def email_file(self) -> StorageFileLocation: - """Gets the email_file of this AppendEmailBaseRequest. - - Email document file location in storage - - :return: The email_file of this AppendEmailBaseRequest. - :rtype: StorageFileLocation - """ - return self._email_file - - @email_file.setter - def email_file(self, email_file: StorageFileLocation): - """Sets the email_file of this AppendEmailBaseRequest. - - Email document file location in storage - - :param email_file: The email_file of this AppendEmailBaseRequest. - :type: StorageFileLocation - """ - if email_file is None: - raise ValueError("Invalid value for `email_file`, must not be `None`") - self._email_file = email_file - - 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, AppendEmailBaseRequest): - 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/append_email_mime_base_request.py b/sdk/AsposeEmailCloudSdk/models/append_email_mime_base_request.py deleted file mode 100644 index 1e6e229..0000000 --- a/sdk/AsposeEmailCloudSdk/models/append_email_mime_base_request.py +++ /dev/null @@ -1,160 +0,0 @@ -# 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.append_email_account_base_request import AppendEmailAccountBaseRequest -from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation - - -class AppendEmailMimeBaseRequest(AppendEmailAccountBaseRequest): - """Append email from MIME string to account 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', - 'mark_as_sent': 'bool', - 'base64_mime_message': 'str' - } - - attribute_map = { - 'first_account': 'firstAccount', - 'second_account': 'secondAccount', - 'storage_folder': 'storageFolder', - 'folder': 'folder', - 'mark_as_sent': 'markAsSent', - 'base64_mime_message': 'base64MimeMessage' - } - - 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 - :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 base64_mime_message (str) Email document serialized as MIME string - """ - super(AppendEmailMimeBaseRequest, self).__init__() - - self._base64_mime_message = 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 - if mark_as_sent is not None: - self.mark_as_sent = mark_as_sent - if base64_mime_message is not None: - self.base64_mime_message = base64_mime_message - - @property - def base64_mime_message(self) -> str: - """Gets the base64_mime_message of this AppendEmailMimeBaseRequest. - - Email document serialized as MIME string - - :return: The base64_mime_message of this AppendEmailMimeBaseRequest. - :rtype: str - """ - return self._base64_mime_message - - @base64_mime_message.setter - def base64_mime_message(self, base64_mime_message: str): - """Sets the base64_mime_message of this AppendEmailMimeBaseRequest. - - Email document serialized as MIME string - - :param base64_mime_message: The base64_mime_message of this AppendEmailMimeBaseRequest. - :type: str - """ - if base64_mime_message is None: - raise ValueError("Invalid value for `base64_mime_message`, must not be `None`") - if base64_mime_message is not None and len(base64_mime_message) < 1: - raise ValueError("Invalid value for `base64_mime_message`, length must be greater than or equal to `1`") - self._base64_mime_message = base64_mime_message - - 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, AppendEmailMimeBaseRequest): - 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/append_email_model_rq.py b/sdk/AsposeEmailCloudSdk/models/append_email_model_rq.py deleted file mode 100644 index e9821d7..0000000 --- a/sdk/AsposeEmailCloudSdk/models/append_email_model_rq.py +++ /dev/null @@ -1,159 +0,0 @@ -# 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.append_email_account_base_request import AppendEmailAccountBaseRequest -from AsposeEmailCloudSdk.models.email_dto import EmailDto -from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation - - -class AppendEmailModelRq(AppendEmailAccountBaseRequest): - """Append email 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', - 'mark_as_sent': 'bool', - 'message': 'EmailDto' - } - - attribute_map = { - 'first_account': 'firstAccount', - 'second_account': 'secondAccount', - 'storage_folder': 'storageFolder', - 'folder': 'folder', - 'mark_as_sent': 'markAsSent', - '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): - """ - Append email 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) Email account folder to store a message - :param mark_as_sent (bool) Mark message as sent - :param message (EmailDto) Email document - """ - super(AppendEmailModelRq, self).__init__() - - self._message = 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 - if mark_as_sent is not None: - self.mark_as_sent = mark_as_sent - if message is not None: - self.message = message - - @property - def message(self) -> EmailDto: - """Gets the message of this AppendEmailModelRq. - - Email document - - :return: The message of this AppendEmailModelRq. - :rtype: EmailDto - """ - return self._message - - @message.setter - def message(self, message: EmailDto): - """Sets the message of this AppendEmailModelRq. - - Email document - - :param message: The message of this AppendEmailModelRq. - :type: EmailDto - """ - if message is None: - raise ValueError("Invalid value for `message`, must not be `None`") - self._message = message - - 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, AppendEmailModelRq): - 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/associated_person.py b/sdk/AsposeEmailCloudSdk/models/associated_person.py index 062d364..3b458d6 100644 --- a/sdk/AsposeEmailCloudSdk/models/associated_person.py +++ b/sdk/AsposeEmailCloudSdk/models/associated_person.py @@ -59,9 +59,12 @@ class AssociatedPerson(object): def __init__(self, name: str = None, category: EnumWithCustomOfAssociatedPersonCategory = None, preferred: bool = None): """ Describes associated person. - :param name (str) Associated person's name. - :param category (EnumWithCustomOfAssociatedPersonCategory) Associated person's category. - :param preferred (bool) Defines whether associated person is preferred. + :param name: Associated person's name. + :type name: str + :param category: Associated person's category. + :type category: EnumWithCustomOfAssociatedPersonCategory + :param preferred: Defines whether associated person is preferred. + :type preferred: bool """ self._name = None @@ -75,10 +78,10 @@ def __init__(self, name: str = None, category: EnumWithCustomOfAssociatedPersonC if preferred is not None: self.preferred = preferred + @property def name(self) -> str: - """Gets the name of this AssociatedPerson. - + """ Associated person's name. :return: The name of this AssociatedPerson. @@ -88,8 +91,7 @@ def name(self) -> str: @name.setter def name(self, name: str): - """Sets the name of this AssociatedPerson. - + """ Associated person's name. :param name: The name of this AssociatedPerson. @@ -99,8 +101,7 @@ def name(self, name: str): @property def category(self) -> EnumWithCustomOfAssociatedPersonCategory: - """Gets the category of this AssociatedPerson. - + """ Associated person's category. :return: The category of this AssociatedPerson. @@ -110,8 +111,7 @@ def category(self) -> EnumWithCustomOfAssociatedPersonCategory: @category.setter def category(self, category: EnumWithCustomOfAssociatedPersonCategory): - """Sets the category of this AssociatedPerson. - + """ Associated person's category. :param category: The category of this AssociatedPerson. @@ -121,8 +121,7 @@ def category(self, category: EnumWithCustomOfAssociatedPersonCategory): @property def preferred(self) -> bool: - """Gets the preferred of this AssociatedPerson. - + """ Defines whether associated person is preferred. :return: The preferred of this AssociatedPerson. @@ -132,8 +131,7 @@ def preferred(self) -> bool: @preferred.setter def preferred(self, preferred: bool): - """Sets the preferred of this AssociatedPerson. - + """ Defines whether associated person is preferred. :param preferred: The preferred of this AssociatedPerson. diff --git a/sdk/AsposeEmailCloudSdk/models/attachment.py b/sdk/AsposeEmailCloudSdk/models/attachment.py index 0cec7e9..40f6227 100644 --- a/sdk/AsposeEmailCloudSdk/models/attachment.py +++ b/sdk/AsposeEmailCloudSdk/models/attachment.py @@ -72,15 +72,24 @@ class Attachment(AttachmentBase): def __init__(self, base64_data: str = None, content_id: str = None, content_type: ContentType = None, headers: Dict[str, str] = None, content_disposition: str = None, is_embedded_message: bool = None, name: str = None, name_encoding: str = None, preferred_text_encoding: str = None): """ Document attachment. - :param base64_data (str) Attachment file content as Base64 string. - :param content_id (str) Attachment content id - :param content_type (ContentType) Content type - :param headers (Dict[str, str]) Attachment headers. - :param content_disposition (str) Content-Disposition header. Read only. - :param is_embedded_message (bool) Determines if attachment is an embedded message. Read only. - :param name (str) Attachment name. - :param name_encoding (str) Encoding of attachment name. - :param preferred_text_encoding (str) Preferred text encoding. + :param base64_data: Attachment file content as Base64 string. + :type base64_data: str + :param content_id: Attachment content id + :type content_id: str + :param content_type: Content type + :type content_type: ContentType + :param headers: Attachment headers. + :type headers: Dict[str, str] + :param content_disposition: Content-Disposition header. Read only. + :type content_disposition: str + :param is_embedded_message: Determines if attachment is an embedded message. Read only. + :type is_embedded_message: bool + :param name: Attachment name. + :type name: str + :param name_encoding: Encoding of attachment name. + :type name_encoding: str + :param preferred_text_encoding: Preferred text encoding. + :type preferred_text_encoding: str """ super(Attachment, self).__init__() @@ -109,10 +118,10 @@ def __init__(self, base64_data: str = None, content_id: str = None, content_type if preferred_text_encoding is not None: self.preferred_text_encoding = preferred_text_encoding + @property def content_disposition(self) -> str: - """Gets the content_disposition of this Attachment. - + """ Content-Disposition header. Read only. :return: The content_disposition of this Attachment. @@ -122,8 +131,7 @@ def content_disposition(self) -> str: @content_disposition.setter def content_disposition(self, content_disposition: str): - """Sets the content_disposition of this Attachment. - + """ Content-Disposition header. Read only. :param content_disposition: The content_disposition of this Attachment. @@ -133,8 +141,7 @@ def content_disposition(self, content_disposition: str): @property def is_embedded_message(self) -> bool: - """Gets the is_embedded_message of this Attachment. - + """ Determines if attachment is an embedded message. Read only. :return: The is_embedded_message of this Attachment. @@ -144,8 +151,7 @@ def is_embedded_message(self) -> bool: @is_embedded_message.setter def is_embedded_message(self, is_embedded_message: bool): - """Sets the is_embedded_message of this Attachment. - + """ Determines if attachment is an embedded message. Read only. :param is_embedded_message: The is_embedded_message of this Attachment. @@ -157,8 +163,7 @@ def is_embedded_message(self, is_embedded_message: bool): @property def name(self) -> str: - """Gets the name of this Attachment. - + """ Attachment name. :return: The name of this Attachment. @@ -168,8 +173,7 @@ def name(self) -> str: @name.setter def name(self, name: str): - """Sets the name of this Attachment. - + """ Attachment name. :param name: The name of this Attachment. @@ -179,8 +183,7 @@ def name(self, name: str): @property def name_encoding(self) -> str: - """Gets the name_encoding of this Attachment. - + """ Encoding of attachment name. :return: The name_encoding of this Attachment. @@ -190,8 +193,7 @@ def name_encoding(self) -> str: @name_encoding.setter def name_encoding(self, name_encoding: str): - """Sets the name_encoding of this Attachment. - + """ Encoding of attachment name. :param name_encoding: The name_encoding of this Attachment. @@ -201,8 +203,7 @@ def name_encoding(self, name_encoding: str): @property def preferred_text_encoding(self) -> str: - """Gets the preferred_text_encoding of this Attachment. - + """ Preferred text encoding. :return: The preferred_text_encoding of this Attachment. @@ -212,8 +213,7 @@ def preferred_text_encoding(self) -> str: @preferred_text_encoding.setter def preferred_text_encoding(self, preferred_text_encoding: str): - """Sets the preferred_text_encoding of this Attachment. - + """ Preferred text encoding. :param preferred_text_encoding: The preferred_text_encoding of this Attachment. diff --git a/sdk/AsposeEmailCloudSdk/models/attachment_base.py b/sdk/AsposeEmailCloudSdk/models/attachment_base.py index bcdd4b0..f293426 100644 --- a/sdk/AsposeEmailCloudSdk/models/attachment_base.py +++ b/sdk/AsposeEmailCloudSdk/models/attachment_base.py @@ -61,10 +61,14 @@ class AttachmentBase(object): def __init__(self, base64_data: str = None, content_id: str = None, content_type: ContentType = None, headers: Dict[str, str] = None): """ AttachmentBase class - :param base64_data (str) Attachment file content as Base64 string. - :param content_id (str) Attachment content id - :param content_type (ContentType) Content type - :param headers (Dict[str, str]) Attachment headers. + :param base64_data: Attachment file content as Base64 string. + :type base64_data: str + :param content_id: Attachment content id + :type content_id: str + :param content_type: Content type + :type content_type: ContentType + :param headers: Attachment headers. + :type headers: Dict[str, str] """ self._base64_data = None @@ -81,10 +85,10 @@ def __init__(self, base64_data: str = None, content_id: str = None, content_type if headers is not None: self.headers = headers + @property def base64_data(self) -> str: - """Gets the base64_data of this AttachmentBase. - + """ Attachment file content as Base64 string. :return: The base64_data of this AttachmentBase. @@ -94,8 +98,7 @@ def base64_data(self) -> str: @base64_data.setter def base64_data(self, base64_data: str): - """Sets the base64_data of this AttachmentBase. - + """ Attachment file content as Base64 string. :param base64_data: The base64_data of this AttachmentBase. @@ -105,8 +108,7 @@ def base64_data(self, base64_data: str): @property def content_id(self) -> str: - """Gets the content_id of this AttachmentBase. - + """ Attachment content id :return: The content_id of this AttachmentBase. @@ -116,8 +118,7 @@ def content_id(self) -> str: @content_id.setter def content_id(self, content_id: str): - """Sets the content_id of this AttachmentBase. - + """ Attachment content id :param content_id: The content_id of this AttachmentBase. @@ -127,8 +128,7 @@ def content_id(self, content_id: str): @property def content_type(self) -> ContentType: - """Gets the content_type of this AttachmentBase. - + """ Content type :return: The content_type of this AttachmentBase. @@ -138,8 +138,7 @@ def content_type(self) -> ContentType: @content_type.setter def content_type(self, content_type: ContentType): - """Sets the content_type of this AttachmentBase. - + """ Content type :param content_type: The content_type of this AttachmentBase. @@ -149,8 +148,7 @@ def content_type(self, content_type: ContentType): @property def headers(self) -> Dict[str, str]: - """Gets the headers of this AttachmentBase. - + """ Attachment headers. :return: The headers of this AttachmentBase. @@ -160,8 +158,7 @@ def headers(self) -> Dict[str, str]: @headers.setter def headers(self, headers: Dict[str, str]): - """Sets the headers of this AttachmentBase. - + """ Attachment headers. :param headers: The headers of this AttachmentBase. diff --git a/sdk/AsposeEmailCloudSdk/models/calendar_dto_alternate_rq.py b/sdk/AsposeEmailCloudSdk/models/calendar_as_alternate_request.py similarity index 80% rename from sdk/AsposeEmailCloudSdk/models/calendar_dto_alternate_rq.py rename to sdk/AsposeEmailCloudSdk/models/calendar_as_alternate_request.py index 59d204c..5ee3f67 100644 --- a/sdk/AsposeEmailCloudSdk/models/calendar_dto_alternate_rq.py +++ b/sdk/AsposeEmailCloudSdk/models/calendar_as_alternate_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -33,8 +33,8 @@ from AsposeEmailCloudSdk.models.calendar_dto import CalendarDto -class CalendarDtoAlternateRq(object): - """iCalendar document as AlternateView request +class CalendarAsAlternateRequest(object): + """Convert iCalendar to AlternateView request """ """ @@ -58,10 +58,13 @@ class CalendarDtoAlternateRq(object): def __init__(self, value: CalendarDto = None, action: str = None, sequence_id: str = None): """ - iCalendar document as AlternateView request - :param value (CalendarDto) iCalendar document model - :param action (str) iCalendar actions. Enum, available values: Create, Update, Cancel - :param sequence_id (str) iCalendar sequence id + Convert iCalendar to AlternateView request + :param value: iCalendar document model + :type value: CalendarDto + :param action: iCalendar actions. Enum, available values: Create, Update, Cancel + :type action: str + :param sequence_id: iCalendar sequence id + :type sequence_id: str """ self._value = None @@ -75,24 +78,23 @@ def __init__(self, value: CalendarDto = None, action: str = None, sequence_id: s if sequence_id is not None: self.sequence_id = sequence_id + @property def value(self) -> CalendarDto: - """Gets the value of this CalendarDtoAlternateRq. - + """ iCalendar document model - :return: The value of this CalendarDtoAlternateRq. + :return: The value of this CalendarAsAlternateRequest. :rtype: CalendarDto """ return self._value @value.setter def value(self, value: CalendarDto): - """Sets the value of this CalendarDtoAlternateRq. - + """ iCalendar document model - :param value: The value of this CalendarDtoAlternateRq. + :param value: The value of this CalendarAsAlternateRequest. :type: CalendarDto """ if value is None: @@ -101,22 +103,20 @@ def value(self, value: CalendarDto): @property def action(self) -> str: - """Gets the action of this CalendarDtoAlternateRq. - + """ iCalendar actions. Enum, available values: Create, Update, Cancel - :return: The action of this CalendarDtoAlternateRq. + :return: The action of this CalendarAsAlternateRequest. :rtype: str """ return self._action @action.setter def action(self, action: str): - """Sets the action of this CalendarDtoAlternateRq. - + """ iCalendar actions. Enum, available values: Create, Update, Cancel - :param action: The action of this CalendarDtoAlternateRq. + :param action: The action of this CalendarAsAlternateRequest. :type: str """ if action is None: @@ -127,22 +127,20 @@ def action(self, action: str): @property def sequence_id(self) -> str: - """Gets the sequence_id of this CalendarDtoAlternateRq. - + """ iCalendar sequence id - :return: The sequence_id of this CalendarDtoAlternateRq. + :return: The sequence_id of this CalendarAsAlternateRequest. :rtype: str """ return self._sequence_id @sequence_id.setter def sequence_id(self, sequence_id: str): - """Sets the sequence_id of this CalendarDtoAlternateRq. - + """ iCalendar sequence id - :param sequence_id: The sequence_id of this CalendarDtoAlternateRq. + :param sequence_id: The sequence_id of this CalendarAsAlternateRequest. :type: str """ self._sequence_id = sequence_id @@ -181,7 +179,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, CalendarDtoAlternateRq): + if not isinstance(other, CalendarAsAlternateRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_calendar_dto.py b/sdk/AsposeEmailCloudSdk/models/calendar_as_file_request.py similarity index 69% rename from sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_calendar_dto.py rename to sdk/AsposeEmailCloudSdk/models/calendar_as_file_request.py index ac615df..4ff40a5 100644 --- a/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_calendar_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/calendar_as_file_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -31,11 +31,10 @@ from datetime import datetime from AsposeEmailCloudSdk.models.calendar_dto import CalendarDto -from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation -class StorageModelRqOfCalendarDto(object): - """ +class CalendarAsFileRequest(object): + """iCalendar model to file request. """ """ @@ -46,69 +45,76 @@ class StorageModelRqOfCalendarDto(object): and the value is json key in definition. """ swagger_types = { - 'value': 'CalendarDto', - 'storage_folder': 'StorageFolderLocation' + 'format': 'str', + 'value': 'CalendarDto' } attribute_map = { - 'value': 'value', - 'storage_folder': 'storageFolder' + 'format': 'format', + 'value': 'value' } - def __init__(self, value: CalendarDto = None, storage_folder: StorageFolderLocation = None): + def __init__(self, format: str = None, value: CalendarDto = None): """ - - :param value (CalendarDto) - :param storage_folder (StorageFolderLocation) + iCalendar model to file request. + :param format: Calendar file format Enum, available values: Ics, Msg + :type format: str + :param value: iCalendar model + :type value: CalendarDto """ + self._format = None self._value = None - self._storage_folder = None + if format is not None: + self.format = format if value is not None: self.value = value - if storage_folder is not None: - self.storage_folder = storage_folder - - @property - def value(self) -> CalendarDto: - """Gets the value of this StorageModelRqOfCalendarDto. - :return: The value of this StorageModelRqOfCalendarDto. - :rtype: CalendarDto + @property + def format(self) -> str: """ - return self._value + Calendar file format Enum, available values: Ics, Msg - @value.setter - def value(self, value: CalendarDto): - """Sets the value of this StorageModelRqOfCalendarDto. + :return: The format of this CalendarAsFileRequest. + :rtype: str + """ + return self._format + @format.setter + def format(self, format: str): + """ + Calendar file format Enum, available values: Ics, Msg - :param value: The value of this StorageModelRqOfCalendarDto. - :type: CalendarDto + :param format: The format of this CalendarAsFileRequest. + :type: str """ - self._value = value + if format is None: + raise ValueError("Invalid value for `format`, must not be `None`") + self._format = format @property - def storage_folder(self) -> StorageFolderLocation: - """Gets the storage_folder of this StorageModelRqOfCalendarDto. - - - :return: The storage_folder of this StorageModelRqOfCalendarDto. - :rtype: StorageFolderLocation + def value(self) -> CalendarDto: """ - return self._storage_folder + iCalendar model - @storage_folder.setter - def storage_folder(self, storage_folder: StorageFolderLocation): - """Sets the storage_folder of this StorageModelRqOfCalendarDto. + :return: The value of this CalendarAsFileRequest. + :rtype: CalendarDto + """ + return self._value + @value.setter + def value(self, value: CalendarDto): + """ + iCalendar model - :param storage_folder: The storage_folder of this StorageModelRqOfCalendarDto. - :type: StorageFolderLocation + :param value: The value of this CalendarAsFileRequest. + :type: CalendarDto """ - self._storage_folder = storage_folder + if value is None: + raise ValueError("Invalid value for `value`, must not be `None`") + self._value = value def to_dict(self): """Returns the model properties as a dict""" @@ -144,7 +150,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, StorageModelRqOfCalendarDto): + if not isinstance(other, CalendarAsFileRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/calendar_convert_request.py b/sdk/AsposeEmailCloudSdk/models/calendar_convert_request.py new file mode 100644 index 0000000..bb127d9 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/calendar_convert_request.py @@ -0,0 +1,53 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class CalendarConvertRequest(object): + """ + Request model for calendar_convert operation. + Initializes a new instance. + + :param format: File format. Enum, available values: Ics, Msg + :type format: str + :param file: File to convert + :type file: str + """ + + def __init__(self, format: str, file: str): + """ + Request model for calendar_convert operation. + Initializes a new instance. + + :param format: File format. Enum, available values: Ics, Msg + :type format: str + :param file: File to convert + :type file: str + """ + + self.format = format + self.file = file diff --git a/sdk/AsposeEmailCloudSdk/models/calendar_dto.py b/sdk/AsposeEmailCloudSdk/models/calendar_dto.py index abc10bf..a2c6ebd 100644 --- a/sdk/AsposeEmailCloudSdk/models/calendar_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/calendar_dto.py @@ -100,28 +100,50 @@ class CalendarDto(object): def __init__(self, attachments: List[Attachment] = None, attendees: List[MailAddress] = None, description: str = None, end_date: datetime = None, end_time_zone: str = None, flags: List[str] = None, is_description_html: bool = None, location: str = None, method: str = None, microsoft_busy_status: str = None, microsoft_intended_status: str = None, optional_attendees: List[MailAddress] = None, organizer: MailAddress = None, recurrence_string: str = None, recurrence: RecurrencePatternDto = None, reminders: List[CalendarReminder] = None, sequence_id: str = None, start_date: datetime = None, start_time_zone: str = None, status: str = None, summary: str = None, transparency: str = None): """ iCalendar document representation. - :param attachments (List[Attachment]) Document attachments. - :param attendees (List[MailAddress]) Event attendees. - :param description (str) Description. - :param end_date (datetime) End date. - :param end_time_zone (str) End time zone. - :param flags (List[str]) Appointment flags. - :param is_description_html (bool) Indicates if description is in HTML format. - :param location (str) Location. - :param method (str) Defines the iCalendar object method type associated with the calendar document. Enum, available values: None, Publish, Request, Reply, Add, Cancel, Refresh, Counter, DeclineCounter - :param microsoft_busy_status (str) Specifies the BUSY status. Enum, available values: NotDefined, Free, Tentative, Busy, Oof - :param microsoft_intended_status (str) Specifies the INTENDED status. Enum, available values: NotDefined, Free, Tentative, Busy, Oof - :param optional_attendees (List[MailAddress]) Optional attendees. - :param organizer (MailAddress) Event organizer. - :param recurrence_string (str) Deprecated, use 'Recurrence' property. String representation of recurrence pattern (See iCalendar RFC, \"Recurrence rule\" section). For example: For daily recurrence: \"FREQ=DAILY;COUNT=10;WKST=MO\" For monthly recurrence: \"BYSETPOS=1;BYDAY=MO,TU,WE,TH,FR;FREQ=MONTHLY;INTERVAL=10;WKST=MO\" For yearly recurrence: \"BYMONTHDAY=30;BYMONTH=1;FREQ=YEARLY;WKST=MO\" - :param recurrence (RecurrencePatternDto) Recurrence pattern - :param reminders (List[CalendarReminder]) Reminders. - :param sequence_id (str) The sequence id. Read only. - :param start_date (datetime) Start date. - :param start_time_zone (str) Start time zone. - :param status (str) Defines the overall status or confirmation for the calendar document. Enum, available values: NotDefined, Cancelled, Tentative, Confirmed - :param summary (str) Summary. - :param transparency (str) Specifies whether or not this appointment is intended to be visible in availability searches. Enum, available values: NotDefined, Transparent, Opaque + :param attachments: Document attachments. + :type attachments: List[Attachment] + :param attendees: Event attendees. + :type attendees: List[MailAddress] + :param description: Description. + :type description: str + :param end_date: End date. + :type end_date: datetime + :param end_time_zone: End time zone. + :type end_time_zone: str + :param flags: Appointment flags. + :type flags: List[str] + :param is_description_html: Indicates if description is in HTML format. + :type is_description_html: bool + :param location: Location. + :type location: str + :param method: Defines the iCalendar object method type associated with the calendar document. Enum, available values: None, Publish, Request, Reply, Add, Cancel, Refresh, Counter, DeclineCounter + :type method: str + :param microsoft_busy_status: Specifies the BUSY status. Enum, available values: NotDefined, Free, Tentative, Busy, Oof + :type microsoft_busy_status: str + :param microsoft_intended_status: Specifies the INTENDED status. Enum, available values: NotDefined, Free, Tentative, Busy, Oof + :type microsoft_intended_status: str + :param optional_attendees: Optional attendees. + :type optional_attendees: List[MailAddress] + :param organizer: Event organizer. + :type organizer: MailAddress + :param recurrence_string: Deprecated, use 'Recurrence' property. String representation of recurrence pattern (See iCalendar RFC, \"Recurrence rule\" section). For example: For daily recurrence: \"FREQ=DAILY;COUNT=10;WKST=MO\" For monthly recurrence: \"BYSETPOS=1;BYDAY=MO,TU,WE,TH,FR;FREQ=MONTHLY;INTERVAL=10;WKST=MO\" For yearly recurrence: \"BYMONTHDAY=30;BYMONTH=1;FREQ=YEARLY;WKST=MO\" + :type recurrence_string: str + :param recurrence: Recurrence pattern + :type recurrence: RecurrencePatternDto + :param reminders: Reminders. + :type reminders: List[CalendarReminder] + :param sequence_id: The sequence id. Read only. + :type sequence_id: str + :param start_date: Start date. + :type start_date: datetime + :param start_time_zone: Start time zone. + :type start_time_zone: str + :param status: Defines the overall status or confirmation for the calendar document. Enum, available values: NotDefined, Cancelled, Tentative, Confirmed + :type status: str + :param summary: Summary. + :type summary: str + :param transparency: Specifies whether or not this appointment is intended to be visible in availability searches. Enum, available values: NotDefined, Transparent, Opaque + :type transparency: str """ self._attachments = None @@ -192,10 +214,10 @@ def __init__(self, attachments: List[Attachment] = None, attendees: List[MailAdd if transparency is not None: self.transparency = transparency + @property def attachments(self) -> List[Attachment]: - """Gets the attachments of this CalendarDto. - + """ Document attachments. :return: The attachments of this CalendarDto. @@ -205,8 +227,7 @@ def attachments(self) -> List[Attachment]: @attachments.setter def attachments(self, attachments: List[Attachment]): - """Sets the attachments of this CalendarDto. - + """ Document attachments. :param attachments: The attachments of this CalendarDto. @@ -216,8 +237,7 @@ def attachments(self, attachments: List[Attachment]): @property def attendees(self) -> List[MailAddress]: - """Gets the attendees of this CalendarDto. - + """ Event attendees. :return: The attendees of this CalendarDto. @@ -227,8 +247,7 @@ def attendees(self) -> List[MailAddress]: @attendees.setter def attendees(self, attendees: List[MailAddress]): - """Sets the attendees of this CalendarDto. - + """ Event attendees. :param attendees: The attendees of this CalendarDto. @@ -240,8 +259,7 @@ def attendees(self, attendees: List[MailAddress]): @property def description(self) -> str: - """Gets the description of this CalendarDto. - + """ Description. :return: The description of this CalendarDto. @@ -251,8 +269,7 @@ def description(self) -> str: @description.setter def description(self, description: str): - """Sets the description of this CalendarDto. - + """ Description. :param description: The description of this CalendarDto. @@ -262,8 +279,7 @@ def description(self, description: str): @property def end_date(self) -> datetime: - """Gets the end_date of this CalendarDto. - + """ End date. :return: The end_date of this CalendarDto. @@ -273,8 +289,7 @@ def end_date(self) -> datetime: @end_date.setter def end_date(self, end_date: datetime): - """Sets the end_date of this CalendarDto. - + """ End date. :param end_date: The end_date of this CalendarDto. @@ -286,8 +301,7 @@ def end_date(self, end_date: datetime): @property def end_time_zone(self) -> str: - """Gets the end_time_zone of this CalendarDto. - + """ End time zone. :return: The end_time_zone of this CalendarDto. @@ -297,8 +311,7 @@ def end_time_zone(self) -> str: @end_time_zone.setter def end_time_zone(self, end_time_zone: str): - """Sets the end_time_zone of this CalendarDto. - + """ End time zone. :param end_time_zone: The end_time_zone of this CalendarDto. @@ -308,8 +321,7 @@ def end_time_zone(self, end_time_zone: str): @property def flags(self) -> List[str]: - """Gets the flags of this CalendarDto. - + """ Appointment flags. Items: Enumerates iCalendar flags. Enum, available values: None, AllDayEvent :return: The flags of this CalendarDto. @@ -319,8 +331,7 @@ def flags(self) -> List[str]: @flags.setter def flags(self, flags: List[str]): - """Sets the flags of this CalendarDto. - + """ Appointment flags. Items: Enumerates iCalendar flags. Enum, available values: None, AllDayEvent :param flags: The flags of this CalendarDto. @@ -330,8 +341,7 @@ def flags(self, flags: List[str]): @property def is_description_html(self) -> bool: - """Gets the is_description_html of this CalendarDto. - + """ Indicates if description is in HTML format. :return: The is_description_html of this CalendarDto. @@ -341,8 +351,7 @@ def is_description_html(self) -> bool: @is_description_html.setter def is_description_html(self, is_description_html: bool): - """Sets the is_description_html of this CalendarDto. - + """ Indicates if description is in HTML format. :param is_description_html: The is_description_html of this CalendarDto. @@ -354,8 +363,7 @@ def is_description_html(self, is_description_html: bool): @property def location(self) -> str: - """Gets the location of this CalendarDto. - + """ Location. :return: The location of this CalendarDto. @@ -365,8 +373,7 @@ def location(self) -> str: @location.setter def location(self, location: str): - """Sets the location of this CalendarDto. - + """ Location. :param location: The location of this CalendarDto. @@ -380,8 +387,7 @@ def location(self, location: str): @property def method(self) -> str: - """Gets the method of this CalendarDto. - + """ Defines the iCalendar object method type associated with the calendar document. Enum, available values: None, Publish, Request, Reply, Add, Cancel, Refresh, Counter, DeclineCounter :return: The method of this CalendarDto. @@ -391,8 +397,7 @@ def method(self) -> str: @method.setter def method(self, method: str): - """Sets the method of this CalendarDto. - + """ Defines the iCalendar object method type associated with the calendar document. Enum, available values: None, Publish, Request, Reply, Add, Cancel, Refresh, Counter, DeclineCounter :param method: The method of this CalendarDto. @@ -404,8 +409,7 @@ def method(self, method: str): @property def microsoft_busy_status(self) -> str: - """Gets the microsoft_busy_status of this CalendarDto. - + """ Specifies the BUSY status. Enum, available values: NotDefined, Free, Tentative, Busy, Oof :return: The microsoft_busy_status of this CalendarDto. @@ -415,8 +419,7 @@ def microsoft_busy_status(self) -> str: @microsoft_busy_status.setter def microsoft_busy_status(self, microsoft_busy_status: str): - """Sets the microsoft_busy_status of this CalendarDto. - + """ Specifies the BUSY status. Enum, available values: NotDefined, Free, Tentative, Busy, Oof :param microsoft_busy_status: The microsoft_busy_status of this CalendarDto. @@ -428,8 +431,7 @@ def microsoft_busy_status(self, microsoft_busy_status: str): @property def microsoft_intended_status(self) -> str: - """Gets the microsoft_intended_status of this CalendarDto. - + """ Specifies the INTENDED status. Enum, available values: NotDefined, Free, Tentative, Busy, Oof :return: The microsoft_intended_status of this CalendarDto. @@ -439,8 +441,7 @@ def microsoft_intended_status(self) -> str: @microsoft_intended_status.setter def microsoft_intended_status(self, microsoft_intended_status: str): - """Sets the microsoft_intended_status of this CalendarDto. - + """ Specifies the INTENDED status. Enum, available values: NotDefined, Free, Tentative, Busy, Oof :param microsoft_intended_status: The microsoft_intended_status of this CalendarDto. @@ -452,8 +453,7 @@ def microsoft_intended_status(self, microsoft_intended_status: str): @property def optional_attendees(self) -> List[MailAddress]: - """Gets the optional_attendees of this CalendarDto. - + """ Optional attendees. :return: The optional_attendees of this CalendarDto. @@ -463,8 +463,7 @@ def optional_attendees(self) -> List[MailAddress]: @optional_attendees.setter def optional_attendees(self, optional_attendees: List[MailAddress]): - """Sets the optional_attendees of this CalendarDto. - + """ Optional attendees. :param optional_attendees: The optional_attendees of this CalendarDto. @@ -474,8 +473,7 @@ def optional_attendees(self, optional_attendees: List[MailAddress]): @property def organizer(self) -> MailAddress: - """Gets the organizer of this CalendarDto. - + """ Event organizer. :return: The organizer of this CalendarDto. @@ -485,8 +483,7 @@ def organizer(self) -> MailAddress: @organizer.setter def organizer(self, organizer: MailAddress): - """Sets the organizer of this CalendarDto. - + """ Event organizer. :param organizer: The organizer of this CalendarDto. @@ -498,8 +495,7 @@ def organizer(self, organizer: MailAddress): @property def recurrence_string(self) -> str: - """Gets the recurrence_string of this CalendarDto. - + """ Deprecated, use 'Recurrence' property. String representation of recurrence pattern (See iCalendar RFC, \"Recurrence rule\" section). For example: For daily recurrence: \"FREQ=DAILY;COUNT=10;WKST=MO\" For monthly recurrence: \"BYSETPOS=1;BYDAY=MO,TU,WE,TH,FR;FREQ=MONTHLY;INTERVAL=10;WKST=MO\" For yearly recurrence: \"BYMONTHDAY=30;BYMONTH=1;FREQ=YEARLY;WKST=MO\" :return: The recurrence_string of this CalendarDto. @@ -509,8 +505,7 @@ def recurrence_string(self) -> str: @recurrence_string.setter def recurrence_string(self, recurrence_string: str): - """Sets the recurrence_string of this CalendarDto. - + """ Deprecated, use 'Recurrence' property. String representation of recurrence pattern (See iCalendar RFC, \"Recurrence rule\" section). For example: For daily recurrence: \"FREQ=DAILY;COUNT=10;WKST=MO\" For monthly recurrence: \"BYSETPOS=1;BYDAY=MO,TU,WE,TH,FR;FREQ=MONTHLY;INTERVAL=10;WKST=MO\" For yearly recurrence: \"BYMONTHDAY=30;BYMONTH=1;FREQ=YEARLY;WKST=MO\" :param recurrence_string: The recurrence_string of this CalendarDto. @@ -520,8 +515,7 @@ def recurrence_string(self, recurrence_string: str): @property def recurrence(self) -> RecurrencePatternDto: - """Gets the recurrence of this CalendarDto. - + """ Recurrence pattern :return: The recurrence of this CalendarDto. @@ -531,8 +525,7 @@ def recurrence(self) -> RecurrencePatternDto: @recurrence.setter def recurrence(self, recurrence: RecurrencePatternDto): - """Sets the recurrence of this CalendarDto. - + """ Recurrence pattern :param recurrence: The recurrence of this CalendarDto. @@ -542,8 +535,7 @@ def recurrence(self, recurrence: RecurrencePatternDto): @property def reminders(self) -> List[CalendarReminder]: - """Gets the reminders of this CalendarDto. - + """ Reminders. :return: The reminders of this CalendarDto. @@ -553,8 +545,7 @@ def reminders(self) -> List[CalendarReminder]: @reminders.setter def reminders(self, reminders: List[CalendarReminder]): - """Sets the reminders of this CalendarDto. - + """ Reminders. :param reminders: The reminders of this CalendarDto. @@ -564,8 +555,7 @@ def reminders(self, reminders: List[CalendarReminder]): @property def sequence_id(self) -> str: - """Gets the sequence_id of this CalendarDto. - + """ The sequence id. Read only. :return: The sequence_id of this CalendarDto. @@ -575,8 +565,7 @@ def sequence_id(self) -> str: @sequence_id.setter def sequence_id(self, sequence_id: str): - """Sets the sequence_id of this CalendarDto. - + """ The sequence id. Read only. :param sequence_id: The sequence_id of this CalendarDto. @@ -586,8 +575,7 @@ def sequence_id(self, sequence_id: str): @property def start_date(self) -> datetime: - """Gets the start_date of this CalendarDto. - + """ Start date. :return: The start_date of this CalendarDto. @@ -597,8 +585,7 @@ def start_date(self) -> datetime: @start_date.setter def start_date(self, start_date: datetime): - """Sets the start_date of this CalendarDto. - + """ Start date. :param start_date: The start_date of this CalendarDto. @@ -610,8 +597,7 @@ def start_date(self, start_date: datetime): @property def start_time_zone(self) -> str: - """Gets the start_time_zone of this CalendarDto. - + """ Start time zone. :return: The start_time_zone of this CalendarDto. @@ -621,8 +607,7 @@ def start_time_zone(self) -> str: @start_time_zone.setter def start_time_zone(self, start_time_zone: str): - """Sets the start_time_zone of this CalendarDto. - + """ Start time zone. :param start_time_zone: The start_time_zone of this CalendarDto. @@ -632,8 +617,7 @@ def start_time_zone(self, start_time_zone: str): @property def status(self) -> str: - """Gets the status of this CalendarDto. - + """ Defines the overall status or confirmation for the calendar document. Enum, available values: NotDefined, Cancelled, Tentative, Confirmed :return: The status of this CalendarDto. @@ -643,8 +627,7 @@ def status(self) -> str: @status.setter def status(self, status: str): - """Sets the status of this CalendarDto. - + """ Defines the overall status or confirmation for the calendar document. Enum, available values: NotDefined, Cancelled, Tentative, Confirmed :param status: The status of this CalendarDto. @@ -656,8 +639,7 @@ def status(self, status: str): @property def summary(self) -> str: - """Gets the summary of this CalendarDto. - + """ Summary. :return: The summary of this CalendarDto. @@ -667,8 +649,7 @@ def summary(self) -> str: @summary.setter def summary(self, summary: str): - """Sets the summary of this CalendarDto. - + """ Summary. :param summary: The summary of this CalendarDto. @@ -678,8 +659,7 @@ def summary(self, summary: str): @property def transparency(self) -> str: - """Gets the transparency of this CalendarDto. - + """ Specifies whether or not this appointment is intended to be visible in availability searches. Enum, available values: NotDefined, Transparent, Opaque :return: The transparency of this CalendarDto. @@ -689,8 +669,7 @@ def transparency(self) -> str: @transparency.setter def transparency(self, transparency: str): - """Sets the transparency of this CalendarDto. - + """ Specifies whether or not this appointment is intended to be visible in availability searches. Enum, available values: NotDefined, Transparent, Opaque :param transparency: The transparency of this CalendarDto. diff --git a/sdk/AsposeEmailCloudSdk/models/calendar_from_file_request.py b/sdk/AsposeEmailCloudSdk/models/calendar_from_file_request.py new file mode 100644 index 0000000..9d0cb05 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/calendar_from_file_request.py @@ -0,0 +1,48 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class CalendarFromFileRequest(object): + """ + Request model for calendar_from_file operation. + Initializes a new instance. + + :param file: File to convert + :type file: str + """ + + def __init__(self, file: str): + """ + Request model for calendar_from_file operation. + Initializes a new instance. + + :param file: File to convert + :type file: str + """ + + self.file = file diff --git a/sdk/AsposeEmailCloudSdk/models/calendar_get_as_alternate_request.py b/sdk/AsposeEmailCloudSdk/models/calendar_get_as_alternate_request.py new file mode 100644 index 0000000..8d42022 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/calendar_get_as_alternate_request.py @@ -0,0 +1,68 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class CalendarGetAsAlternateRequest(object): + """ + Request model for calendar_get_as_alternate operation. + Initializes a new instance. + + :param file_name: iCalendar file name in storage + :type file_name: str + :param calendar_action: iCalendar method type Enum, available values: Create, Update, Cancel + :type calendar_action: str + :param sequence_id: The sequence id + :type sequence_id: str + :param folder: Path to folder in storage + :type folder: str + :param storage: Storage name + :type storage: str + """ + + def __init__(self, file_name: str, calendar_action: str, sequence_id: str = None, folder: str = None, storage: str = None): + """ + Request model for calendar_get_as_alternate operation. + Initializes a new instance. + + :param file_name: iCalendar file name in storage + :type file_name: str + :param calendar_action: iCalendar method type Enum, available values: Create, Update, Cancel + :type calendar_action: str + :param sequence_id: The sequence id + :type sequence_id: str + :param folder: Path to folder in storage + :type folder: str + :param storage: Storage name + :type storage: str + """ + + self.file_name = file_name + self.calendar_action = calendar_action + self.sequence_id = sequence_id + self.folder = folder + self.storage = storage diff --git a/sdk/AsposeEmailCloudSdk/models/calendar_get_as_file_request.py b/sdk/AsposeEmailCloudSdk/models/calendar_get_as_file_request.py new file mode 100644 index 0000000..8ac78b6 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/calendar_get_as_file_request.py @@ -0,0 +1,63 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class CalendarGetAsFileRequest(object): + """ + Request model for calendar_get_as_file operation. + Initializes a new instance. + + :param file_name: Calendar document file name. + :type file_name: str + :param format: File format. Enum, available values: Ics, Msg + :type format: str + :param storage: Storage name. + :type storage: str + :param folder: Path to folder in storage. + :type folder: str + """ + + def __init__(self, file_name: str, format: str, storage: str = None, folder: str = None): + """ + Request model for calendar_get_as_file operation. + Initializes a new instance. + + :param file_name: Calendar document file name. + :type file_name: str + :param format: File format. Enum, available values: Ics, Msg + :type format: str + :param storage: Storage name. + :type storage: str + :param folder: Path to folder in storage. + :type folder: str + """ + + self.file_name = file_name + self.format = format + self.storage = storage + self.folder = folder diff --git a/sdk/AsposeEmailCloudSdk/models/calendar_get_list_request.py b/sdk/AsposeEmailCloudSdk/models/calendar_get_list_request.py new file mode 100644 index 0000000..5c2a614 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/calendar_get_list_request.py @@ -0,0 +1,64 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class CalendarGetListRequest(object): + """ + Request model for calendar_get_list operation. + Initializes a new instance. + + :param folder: Path to folder in storage. + :type folder: str + :param items_per_page: Count of items on page. + :type items_per_page: int + :param page_number: Page number. + :type page_number: int + :param storage: Storage name. + :type storage: str + """ + + def __init__(self, folder: str, items_per_page: int = None, page_number: int = None, storage: str = None): + """ + Request model for calendar_get_list operation. + Initializes a new instance. + + :param folder: Path to folder in storage. + :type folder: str + :param items_per_page: Count of items on page. + :type items_per_page: int + :param page_number: Page number. + :type page_number: int + :param storage: Storage name. + :type storage: str + """ + + self.folder = folder + self.items_per_page = items_per_page + self.page_number = page_number + self.storage = storage + diff --git a/sdk/AsposeEmailCloudSdk/models/calendar_get_request.py b/sdk/AsposeEmailCloudSdk/models/calendar_get_request.py new file mode 100644 index 0000000..293080e --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/calendar_get_request.py @@ -0,0 +1,58 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class CalendarGetRequest(object): + """ + Request model for calendar_get operation. + Initializes a new instance. + + :param file_name: iCalendar file name in storage. + :type file_name: str + :param folder: Path to folder in storage. + :type folder: str + :param storage: Storage name. + :type storage: str + """ + + def __init__(self, file_name: str, folder: str = None, storage: str = None): + """ + Request model for calendar_get operation. + Initializes a new instance. + + :param file_name: iCalendar file name in storage. + :type file_name: str + :param folder: Path to folder in storage. + :type folder: str + :param storage: Storage name. + :type storage: str + """ + + self.file_name = file_name + self.folder = folder + self.storage = storage diff --git a/sdk/AsposeEmailCloudSdk/models/calendar_reminder.py b/sdk/AsposeEmailCloudSdk/models/calendar_reminder.py index 777c170..8391e8e 100644 --- a/sdk/AsposeEmailCloudSdk/models/calendar_reminder.py +++ b/sdk/AsposeEmailCloudSdk/models/calendar_reminder.py @@ -70,14 +70,22 @@ class CalendarReminder(object): def __init__(self, action: str = None, attachments: List[str] = None, attendees: List[ReminderAttendee] = None, description: str = None, duration: int = None, repeat: int = None, summary: str = None, trigger: ReminderTrigger = None): """ Provides a grouping of component properties that define an alarm. - :param action (str) Defines the action to be invoked when an alarm is triggered. Enum, available values: Audio, Display, Email, Procedure, None - :param attachments (List[str]) Collection of Reminder Attachments. Could be an absolute URI or Base64 string representation of attachment content - :param attendees (List[ReminderAttendee]) Contains collection of ReminderAttendee objects. - :param description (str) Provides a more complete description of the alarm. - :param duration (int) Specifies the delay period in ticks, after which the alarm will repeat. - :param repeat (int) Defines the number of time the alarm should be repeated, after the initial trigger. - :param summary (str) Defines a short summary or subject for the alarm. - :param trigger (ReminderTrigger) Specifies when an alarm will trigger. + :param action: Defines the action to be invoked when an alarm is triggered. Enum, available values: Audio, Display, Email, Procedure, None + :type action: str + :param attachments: Collection of Reminder Attachments. Could be an absolute URI or Base64 string representation of attachment content + :type attachments: List[str] + :param attendees: Contains collection of ReminderAttendee objects. + :type attendees: List[ReminderAttendee] + :param description: Provides a more complete description of the alarm. + :type description: str + :param duration: Specifies the delay period in ticks, after which the alarm will repeat. + :type duration: int + :param repeat: Defines the number of time the alarm should be repeated, after the initial trigger. + :type repeat: int + :param summary: Defines a short summary or subject for the alarm. + :type summary: str + :param trigger: Specifies when an alarm will trigger. + :type trigger: ReminderTrigger """ self._action = None @@ -106,10 +114,10 @@ def __init__(self, action: str = None, attachments: List[str] = None, attendees: if trigger is not None: self.trigger = trigger + @property def action(self) -> str: - """Gets the action of this CalendarReminder. - + """ Defines the action to be invoked when an alarm is triggered. Enum, available values: Audio, Display, Email, Procedure, None :return: The action of this CalendarReminder. @@ -119,8 +127,7 @@ def action(self) -> str: @action.setter def action(self, action: str): - """Sets the action of this CalendarReminder. - + """ Defines the action to be invoked when an alarm is triggered. Enum, available values: Audio, Display, Email, Procedure, None :param action: The action of this CalendarReminder. @@ -132,8 +139,7 @@ def action(self, action: str): @property def attachments(self) -> List[str]: - """Gets the attachments of this CalendarReminder. - + """ Collection of Reminder Attachments. Could be an absolute URI or Base64 string representation of attachment content :return: The attachments of this CalendarReminder. @@ -143,8 +149,7 @@ def attachments(self) -> List[str]: @attachments.setter def attachments(self, attachments: List[str]): - """Sets the attachments of this CalendarReminder. - + """ Collection of Reminder Attachments. Could be an absolute URI or Base64 string representation of attachment content :param attachments: The attachments of this CalendarReminder. @@ -154,8 +159,7 @@ def attachments(self, attachments: List[str]): @property def attendees(self) -> List[ReminderAttendee]: - """Gets the attendees of this CalendarReminder. - + """ Contains collection of ReminderAttendee objects. :return: The attendees of this CalendarReminder. @@ -165,8 +169,7 @@ def attendees(self) -> List[ReminderAttendee]: @attendees.setter def attendees(self, attendees: List[ReminderAttendee]): - """Sets the attendees of this CalendarReminder. - + """ Contains collection of ReminderAttendee objects. :param attendees: The attendees of this CalendarReminder. @@ -176,8 +179,7 @@ def attendees(self, attendees: List[ReminderAttendee]): @property def description(self) -> str: - """Gets the description of this CalendarReminder. - + """ Provides a more complete description of the alarm. :return: The description of this CalendarReminder. @@ -187,8 +189,7 @@ def description(self) -> str: @description.setter def description(self, description: str): - """Sets the description of this CalendarReminder. - + """ Provides a more complete description of the alarm. :param description: The description of this CalendarReminder. @@ -198,8 +199,7 @@ def description(self, description: str): @property def duration(self) -> int: - """Gets the duration of this CalendarReminder. - + """ Specifies the delay period in ticks, after which the alarm will repeat. :return: The duration of this CalendarReminder. @@ -209,8 +209,7 @@ def duration(self) -> int: @duration.setter def duration(self, duration: int): - """Sets the duration of this CalendarReminder. - + """ Specifies the delay period in ticks, after which the alarm will repeat. :param duration: The duration of this CalendarReminder. @@ -220,8 +219,7 @@ def duration(self, duration: int): @property def repeat(self) -> int: - """Gets the repeat of this CalendarReminder. - + """ Defines the number of time the alarm should be repeated, after the initial trigger. :return: The repeat of this CalendarReminder. @@ -231,8 +229,7 @@ def repeat(self) -> int: @repeat.setter def repeat(self, repeat: int): - """Sets the repeat of this CalendarReminder. - + """ Defines the number of time the alarm should be repeated, after the initial trigger. :param repeat: The repeat of this CalendarReminder. @@ -244,8 +241,7 @@ def repeat(self, repeat: int): @property def summary(self) -> str: - """Gets the summary of this CalendarReminder. - + """ Defines a short summary or subject for the alarm. :return: The summary of this CalendarReminder. @@ -255,8 +251,7 @@ def summary(self) -> str: @summary.setter def summary(self, summary: str): - """Sets the summary of this CalendarReminder. - + """ Defines a short summary or subject for the alarm. :param summary: The summary of this CalendarReminder. @@ -266,8 +261,7 @@ def summary(self, summary: str): @property def trigger(self) -> ReminderTrigger: - """Gets the trigger of this CalendarReminder. - + """ Specifies when an alarm will trigger. :return: The trigger of this CalendarReminder. @@ -277,8 +271,7 @@ def trigger(self) -> ReminderTrigger: @trigger.setter def trigger(self, trigger: ReminderTrigger): - """Sets the trigger of this CalendarReminder. - + """ Specifies when an alarm will trigger. :param trigger: The trigger of this CalendarReminder. diff --git a/sdk/AsposeEmailCloudSdk/models/primitive_object.py b/sdk/AsposeEmailCloudSdk/models/calendar_save_request.py similarity index 64% rename from sdk/AsposeEmailCloudSdk/models/primitive_object.py rename to sdk/AsposeEmailCloudSdk/models/calendar_save_request.py index 7328b15..4daed57 100644 --- a/sdk/AsposeEmailCloudSdk/models/primitive_object.py +++ b/sdk/AsposeEmailCloudSdk/models/calendar_save_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -30,11 +30,13 @@ from typing import List, Set, Dict, Tuple, Optional from datetime import datetime -from AsposeEmailCloudSdk.models.base_object import BaseObject +from AsposeEmailCloudSdk.models.calendar_dto import CalendarDto +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation +from AsposeEmailCloudSdk.models.storage_model_of_calendar_dto import StorageModelOfCalendarDto -class PrimitiveObject(BaseObject): - """Simple property object +class CalendarSaveRequest(StorageModelOfCalendarDto): + """Save iCalendar to storage request. """ """ @@ -45,56 +47,60 @@ class PrimitiveObject(BaseObject): and the value is json key in definition. """ swagger_types = { - 'name': 'str', - 'type': 'str', - 'value': 'str' + 'storage_file': 'StorageFileLocation', + 'value': 'CalendarDto', + 'format': 'str' } attribute_map = { - 'name': 'name', - 'type': 'type', - 'value': 'value' + 'storage_file': 'storageFile', + 'value': 'value', + 'format': 'format' } - def __init__(self, name: str = None, type: str = None, value: str = None): + def __init__(self, storage_file: StorageFileLocation = None, value: CalendarDto = None, format: str = None): """ - Simple property object - :param name (str) Gets or sets the name of an object. - :param type (str) Property type. Used for deserialization purposes - :param value (str) Property value + Save iCalendar to storage request. + :param storage_file: + :type storage_file: StorageFileLocation + :param value: + :type value: CalendarDto + :param format: Calendar file format Enum, available values: Ics, Msg + :type format: str """ - super(PrimitiveObject, self).__init__() + super(CalendarSaveRequest, self).__init__() - self._value = None + self._format = None - if name is not None: - self.name = name - if type is not None: - self.type = type + if storage_file is not None: + self.storage_file = storage_file if value is not None: self.value = value + if format is not None: + self.format = format - @property - def value(self) -> str: - """Gets the value of this PrimitiveObject. - Property value + @property + def format(self) -> str: + """ + Calendar file format Enum, available values: Ics, Msg - :return: The value of this PrimitiveObject. + :return: The format of this CalendarSaveRequest. :rtype: str """ - return self._value + return self._format - @value.setter - def value(self, value: str): - """Sets the value of this PrimitiveObject. - - Property value + @format.setter + def format(self, format: str): + """ + Calendar file format Enum, available values: Ics, Msg - :param value: The value of this PrimitiveObject. + :param format: The format of this CalendarSaveRequest. :type: str """ - self._value = value + if format is None: + raise ValueError("Invalid value for `format`, must not be `None`") + self._format = format def to_dict(self): """Returns the model properties as a dict""" @@ -130,7 +136,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, PrimitiveObject): + if not isinstance(other, CalendarSaveRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/calendar_dto_list.py b/sdk/AsposeEmailCloudSdk/models/calendar_storage_list.py similarity index 88% rename from sdk/AsposeEmailCloudSdk/models/calendar_dto_list.py rename to sdk/AsposeEmailCloudSdk/models/calendar_storage_list.py index 9854a14..204dfb9 100644 --- a/sdk/AsposeEmailCloudSdk/models/calendar_dto_list.py +++ b/sdk/AsposeEmailCloudSdk/models/calendar_storage_list.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -34,8 +34,8 @@ from AsposeEmailCloudSdk.models.storage_model_of_calendar_dto import StorageModelOfCalendarDto -class CalendarDtoList(ListResponseOfStorageModelOfCalendarDto): - """List of iCalendar documents +class CalendarStorageList(ListResponseOfStorageModelOfCalendarDto): + """iCalendar models list with corresponding storage locations. """ """ @@ -55,14 +55,16 @@ class CalendarDtoList(ListResponseOfStorageModelOfCalendarDto): def __init__(self, value: List[StorageModelOfCalendarDto] = None): """ - List of iCalendar documents - :param value (List[StorageModelOfCalendarDto]) + iCalendar models list with corresponding storage locations. + :param value: + :type value: List[StorageModelOfCalendarDto] """ - super(CalendarDtoList, self).__init__() + super(CalendarStorageList, self).__init__() if value is not None: self.value = value + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -97,7 +99,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, CalendarDtoList): + if not isinstance(other, CalendarStorageList): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/ai_bcr_parse_ocr_data_rq.py b/sdk/AsposeEmailCloudSdk/models/client_account_base_request.py similarity index 65% rename from sdk/AsposeEmailCloudSdk/models/ai_bcr_parse_ocr_data_rq.py rename to sdk/AsposeEmailCloudSdk/models/client_account_base_request.py index d723955..91d77f5 100644 --- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_parse_ocr_data_rq.py +++ b/sdk/AsposeEmailCloudSdk/models/client_account_base_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -30,13 +30,11 @@ from typing import List, Set, Dict, Tuple, Optional from datetime import datetime -from AsposeEmailCloudSdk.models.ai_bcr_ocr_data import AiBcrOcrData -from AsposeEmailCloudSdk.models.ai_bcr_options import AiBcrOptions -from AsposeEmailCloudSdk.models.ai_bcr_rq import AiBcrRq +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation -class AiBcrParseOcrDataRq(AiBcrRq): - """Parse ocr data request +class ClientAccountBaseRequest(object): + """Base request for Email client. Stores information about email account location. """ """ @@ -47,53 +45,47 @@ class AiBcrParseOcrDataRq(AiBcrRq): and the value is json key in definition. """ swagger_types = { - 'options': 'AiBcrOptions', - 'data': 'list[AiBcrOcrData]' + 'account_location': 'StorageFileLocation' } attribute_map = { - 'options': 'options', - 'data': 'data' + 'account_location': 'accountLocation' } - def __init__(self, options: AiBcrOptions = None, data: List[AiBcrOcrData] = None): + def __init__(self, account_location: StorageFileLocation = None): """ - Parse ocr data request - :param options (AiBcrOptions) Recognition options - :param data (List[AiBcrOcrData]) OCR data + Base request for Email client. Stores information about email account location. + :param account_location: Email client account configuration location on storage. + :type account_location: StorageFileLocation """ - super(AiBcrParseOcrDataRq, self).__init__() - self._data = None + self._account_location = None - if options is not None: - self.options = options - if data is not None: - self.data = data + if account_location is not None: + self.account_location = account_location - @property - def data(self) -> List[AiBcrOcrData]: - """Gets the data of this AiBcrParseOcrDataRq. - - OCR data - :return: The data of this AiBcrParseOcrDataRq. - :rtype: list[AiBcrOcrData] + @property + def account_location(self) -> StorageFileLocation: """ - return self._data + Email client account configuration location on storage. - @data.setter - def data(self, data: List[AiBcrOcrData]): - """Sets the data of this AiBcrParseOcrDataRq. + :return: The account_location of this ClientAccountBaseRequest. + :rtype: StorageFileLocation + """ + return self._account_location - OCR data + @account_location.setter + def account_location(self, account_location: StorageFileLocation): + """ + Email client account configuration location on storage. - :param data: The data of this AiBcrParseOcrDataRq. - :type: list[AiBcrOcrData] + :param account_location: The account_location of this ClientAccountBaseRequest. + :type: StorageFileLocation """ - if data is None: - raise ValueError("Invalid value for `data`, must not be `None`") - self._data = data + if account_location is None: + raise ValueError("Invalid value for `account_location`, must not be `None`") + self._account_location = account_location def to_dict(self): """Returns the model properties as a dict""" @@ -129,7 +121,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, AiBcrParseOcrDataRq): + if not isinstance(other, ClientAccountBaseRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/client_account_get_multi_request.py b/sdk/AsposeEmailCloudSdk/models/client_account_get_multi_request.py new file mode 100644 index 0000000..35ea9de --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/client_account_get_multi_request.py @@ -0,0 +1,59 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class ClientAccountGetMultiRequest(object): + """ + Request model for client_account_get_multi operation. + Initializes a new instance. + + :param file_name: File name on storage + :type file_name: str + :param folder: Folder on storage + :type folder: str + :param storage: Storage name + :type storage: str + """ + + def __init__(self, file_name: str, folder: str = None, storage: str = None): + """ + Request model for client_account_get_multi operation. + Initializes a new instance. + + :param file_name: File name on storage + :type file_name: str + :param folder: Folder on storage + :type folder: str + :param storage: Storage name + :type storage: str + """ + + self.file_name = file_name + self.folder = folder + self.storage = storage + diff --git a/sdk/AsposeEmailCloudSdk/models/client_account_get_request.py b/sdk/AsposeEmailCloudSdk/models/client_account_get_request.py new file mode 100644 index 0000000..a50b082 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/client_account_get_request.py @@ -0,0 +1,58 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class ClientAccountGetRequest(object): + """ + Request model for client_account_get operation. + Initializes a new instance. + + :param file_name: File name on storage. + :type file_name: str + :param folder: Folder on storage. + :type folder: str + :param storage: Storage name. + :type storage: str + """ + + def __init__(self, file_name: str, folder: str = None, storage: str = None): + """ + Request model for client_account_get operation. + Initializes a new instance. + + :param file_name: File name on storage. + :type file_name: str + :param folder: Folder on storage. + :type folder: str + :param storage: Storage name. + :type storage: str + """ + + self.file_name = file_name + self.folder = folder + self.storage = storage diff --git a/sdk/AsposeEmailCloudSdk/models/client_account_save_multi_request.py b/sdk/AsposeEmailCloudSdk/models/client_account_save_multi_request.py new file mode 100644 index 0000000..cf77a10 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/client_account_save_multi_request.py @@ -0,0 +1,116 @@ +# 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_client_multi_account import EmailClientMultiAccount +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation +from AsposeEmailCloudSdk.models.storage_model_of_email_client_multi_account import StorageModelOfEmailClientMultiAccount + + +class ClientAccountSaveMultiRequest(StorageModelOfEmailClientMultiAccount): + """Email client multi account save 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 = { + 'storage_file': 'StorageFileLocation', + 'value': 'EmailClientMultiAccount' + } + + attribute_map = { + 'storage_file': 'storageFile', + 'value': 'value' + } + + def __init__(self, storage_file: StorageFileLocation = None, value: EmailClientMultiAccount = None): + """ + Email client multi account save request. + :param storage_file: + :type storage_file: StorageFileLocation + :param value: + :type value: EmailClientMultiAccount + """ + super(ClientAccountSaveMultiRequest, self).__init__() + + if storage_file is not None: + self.storage_file = storage_file + 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, ClientAccountSaveMultiRequest): + 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/client_account_save_request.py similarity index 75% rename from sdk/AsposeEmailCloudSdk/models/list_response_of_hierarchical_object.py rename to sdk/AsposeEmailCloudSdk/models/client_account_save_request.py index 7341c8d..c341e38 100644 --- a/sdk/AsposeEmailCloudSdk/models/list_response_of_hierarchical_object.py +++ b/sdk/AsposeEmailCloudSdk/models/client_account_save_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -30,11 +30,13 @@ from typing import List, Set, Dict, Tuple, Optional from datetime import datetime -from AsposeEmailCloudSdk.models.hierarchical_object import HierarchicalObject +from AsposeEmailCloudSdk.models.email_client_account import EmailClientAccount +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation +from AsposeEmailCloudSdk.models.storage_model_of_email_client_account import StorageModelOfEmailClientAccount -class ListResponseOfHierarchicalObject(object): - """ +class ClientAccountSaveRequest(StorageModelOfEmailClientAccount): + """Email client account save request """ """ @@ -45,43 +47,30 @@ class ListResponseOfHierarchicalObject(object): and the value is json key in definition. """ swagger_types = { - 'value': 'list[HierarchicalObject]' + 'storage_file': 'StorageFileLocation', + 'value': 'EmailClientAccount' } attribute_map = { + 'storage_file': 'storageFile', 'value': 'value' } - def __init__(self, value: List[HierarchicalObject] = None): + def __init__(self, storage_file: StorageFileLocation = None, value: EmailClientAccount = None): """ - - :param value (List[HierarchicalObject]) + Email client account save request + :param storage_file: + :type storage_file: StorageFileLocation + :param value: + :type value: EmailClientAccount """ + super(ClientAccountSaveRequest, self).__init__() - self._value = None - + if storage_file is not None: + self.storage_file = storage_file if value is not None: self.value = value - @property - def value(self) -> List[HierarchicalObject]: - """Gets the value of this ListResponseOfHierarchicalObject. - - - :return: The value of this ListResponseOfHierarchicalObject. - :rtype: list[HierarchicalObject] - """ - return self._value - - @value.setter - def value(self, value: List[HierarchicalObject]): - """Sets the value of this ListResponseOfHierarchicalObject. - - - :param value: The value of this ListResponseOfHierarchicalObject. - :type: list[HierarchicalObject] - """ - self._value = value def to_dict(self): """Returns the model properties as a dict""" @@ -117,7 +106,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ListResponseOfHierarchicalObject): + if not isinstance(other, ClientAccountSaveRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/create_folder_base_request.py b/sdk/AsposeEmailCloudSdk/models/client_folder_create_request.py similarity index 55% rename from sdk/AsposeEmailCloudSdk/models/create_folder_base_request.py rename to sdk/AsposeEmailCloudSdk/models/client_folder_create_request.py index 43e7008..4ab23b0 100644 --- a/sdk/AsposeEmailCloudSdk/models/create_folder_base_request.py +++ b/sdk/AsposeEmailCloudSdk/models/client_folder_create_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -30,12 +30,12 @@ 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 +from AsposeEmailCloudSdk.models.client_account_base_request import ClientAccountBaseRequest +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation -class CreateFolderBaseRequest(AccountBaseRequest): - """Create folder request +class ClientFolderCreateRequest(ClientAccountBaseRequest): + """Email Client create folder request. """ """ @@ -46,93 +46,83 @@ class CreateFolderBaseRequest(AccountBaseRequest): and the value is json key in definition. """ swagger_types = { - 'first_account': 'str', - 'second_account': 'str', - 'storage_folder': 'StorageFolderLocation', - 'folder': 'str', - 'parent_folder': 'str' + 'account_location': 'StorageFileLocation', + 'parent_folder': 'str', + 'folder_name': 'str' } attribute_map = { - 'first_account': 'firstAccount', - 'second_account': 'secondAccount', - 'storage_folder': 'storageFolder', - 'folder': 'folder', - 'parent_folder': 'parentFolder' + 'account_location': 'accountLocation', + 'parent_folder': 'parentFolder', + 'folder_name': 'folderName' } - def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, folder: str = None, parent_folder: str = None): + def __init__(self, account_location: StorageFileLocation = None, parent_folder: str = None, folder_name: str = None): """ - Create folder 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) Folder name - :param parent_folder (str) Parent folder path + Email Client create folder request. + :param account_location: Email client account configuration location on storage. + :type account_location: StorageFileLocation + :param parent_folder: Path to parent folder. + :type parent_folder: str + :param folder_name: Folder name. + :type folder_name: str """ - super(CreateFolderBaseRequest, self).__init__() + super(ClientFolderCreateRequest, self).__init__() - self._folder = None self._parent_folder = None + self._folder_name = 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 + if account_location is not None: + self.account_location = account_location if parent_folder is not None: self.parent_folder = parent_folder + if folder_name is not None: + self.folder_name = folder_name - @property - def folder(self) -> str: - """Gets the folder of this CreateFolderBaseRequest. - Folder name + @property + def parent_folder(self) -> str: + """ + Path to parent folder. - :return: The folder of this CreateFolderBaseRequest. + :return: The parent_folder of this ClientFolderCreateRequest. :rtype: str """ - return self._folder - - @folder.setter - def folder(self, folder: str): - """Sets the folder of this CreateFolderBaseRequest. + return self._parent_folder - Folder name + @parent_folder.setter + def parent_folder(self, parent_folder: str): + """ + Path to parent folder. - :param folder: The folder of this CreateFolderBaseRequest. + :param parent_folder: The parent_folder of this ClientFolderCreateRequest. :type: str """ - if folder is None: - raise ValueError("Invalid value for `folder`, must not be `None`") - if folder is not None and len(folder) < 1: - raise ValueError("Invalid value for `folder`, length must be greater than or equal to `1`") - self._folder = folder + self._parent_folder = parent_folder @property - def parent_folder(self) -> str: - """Gets the parent_folder of this CreateFolderBaseRequest. - - Parent folder path + def folder_name(self) -> str: + """ + Folder name. - :return: The parent_folder of this CreateFolderBaseRequest. + :return: The folder_name of this ClientFolderCreateRequest. :rtype: str """ - return self._parent_folder + return self._folder_name - @parent_folder.setter - def parent_folder(self, parent_folder: str): - """Sets the parent_folder of this CreateFolderBaseRequest. - - Parent folder path + @folder_name.setter + def folder_name(self, folder_name: str): + """ + Folder name. - :param parent_folder: The parent_folder of this CreateFolderBaseRequest. + :param folder_name: The folder_name of this ClientFolderCreateRequest. :type: str """ - self._parent_folder = parent_folder + if folder_name is None: + raise ValueError("Invalid value for `folder_name`, must not be `None`") + if folder_name is not None and len(folder_name) < 1: + raise ValueError("Invalid value for `folder_name`, length must be greater than or equal to `1`") + self._folder_name = folder_name def to_dict(self): """Returns the model properties as a dict""" @@ -168,7 +158,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, CreateFolderBaseRequest): + if not isinstance(other, ClientFolderCreateRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/base_object.py b/sdk/AsposeEmailCloudSdk/models/client_folder_delete_request.py similarity index 64% rename from sdk/AsposeEmailCloudSdk/models/base_object.py rename to sdk/AsposeEmailCloudSdk/models/client_folder_delete_request.py index 1deed18..fb43cf0 100644 --- a/sdk/AsposeEmailCloudSdk/models/base_object.py +++ b/sdk/AsposeEmailCloudSdk/models/client_folder_delete_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -30,9 +30,12 @@ from typing import List, Set, Dict, Tuple, Optional from datetime import datetime +from AsposeEmailCloudSdk.models.client_account_base_request import ClientAccountBaseRequest +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation -class BaseObject(object): - """Base property object + +class ClientFolderDeleteRequest(ClientAccountBaseRequest): + """Email client delete folder request. """ """ @@ -43,73 +46,56 @@ class BaseObject(object): and the value is json key in definition. """ swagger_types = { - 'name': 'str', - 'type': 'str' + 'account_location': 'StorageFileLocation', + 'folder': 'str' } attribute_map = { - 'name': 'name', - 'type': 'type' + 'account_location': 'accountLocation', + 'folder': 'folder' } - def __init__(self, name: str = None, type: str = None): + def __init__(self, account_location: StorageFileLocation = None, folder: str = None): """ - Base property object - :param name (str) Gets or sets the name of an object. - :param type (str) Property type. Used for deserialization purposes + Email client delete folder request. + :param account_location: Email client account configuration location on storage. + :type account_location: StorageFileLocation + :param folder: Path to folder to delete. + :type folder: str """ + super(ClientFolderDeleteRequest, self).__init__() - self._name = None - self._type = self.__class__.__name__ - - if name is not None: - self.name = name - if type is not None: - self.type = type - - @property - def name(self) -> str: - """Gets the name of this BaseObject. - - Gets or sets the name of an object. - - :return: The name of this BaseObject. - :rtype: str - """ - return self._name + self._folder = None - @name.setter - def name(self, name: str): - """Sets the name of this BaseObject. + if account_location is not None: + self.account_location = account_location + if folder is not None: + self.folder = folder - Gets or sets the name of an object. - - :param name: The name of this BaseObject. - :type: str - """ - self._name = name @property - def type(self) -> str: - """Gets the type of this BaseObject. - - Property type. Used for deserialization purposes + def folder(self) -> str: + """ + Path to folder to delete. - :return: The type of this BaseObject. + :return: The folder of this ClientFolderDeleteRequest. :rtype: str """ - return self.__class__.__name__ - - @type.setter - def type(self, type: str): - """Sets the type of this BaseObject. + return self._folder - Property type. Used for deserialization purposes + @folder.setter + def folder(self, folder: str): + """ + Path to folder to delete. - :param type: The type of this BaseObject. + :param folder: The folder of this ClientFolderDeleteRequest. :type: str """ - self._type = self.__class__.__name__ + if folder is None: + raise ValueError("Invalid value for `folder`, must not be `None`") + if folder is not None and len(folder) < 1: + raise ValueError("Invalid value for `folder`, length must be greater than or equal to `1`") + self._folder = folder def to_dict(self): """Returns the model properties as a dict""" @@ -145,7 +131,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, BaseObject): + if not isinstance(other, ClientFolderDeleteRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/client_folder_get_list_request.py b/sdk/AsposeEmailCloudSdk/models/client_folder_get_list_request.py new file mode 100644 index 0000000..9bb5149 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/client_folder_get_list_request.py @@ -0,0 +1,64 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class ClientFolderGetListRequest(object): + """ + Request model for client_folder_get_list operation. + Initializes a new instance. + + :param account: Email account + :type account: str + :param storage: Storage name where account file located + :type storage: str + :param account_storage_folder: Folder in storage where account file located + :type account_storage_folder: str + :param parent_folder: Folder in which subfolders should be listed + :type parent_folder: str + """ + + def __init__(self, account: str, storage: str = None, account_storage_folder: str = None, parent_folder: str = None): + """ + Request model for client_folder_get_list operation. + Initializes a new instance. + + :param account: Email account + :type account: str + :param storage: Storage name where account file located + :type storage: str + :param account_storage_folder: Folder in storage where account file located + :type account_storage_folder: str + :param parent_folder: Folder in which subfolders should be listed + :type parent_folder: str + """ + + self.account = account + self.storage = storage + self.account_storage_folder = account_storage_folder + self.parent_folder = parent_folder + diff --git a/sdk/AsposeEmailCloudSdk/models/client_message_append_file_request.py b/sdk/AsposeEmailCloudSdk/models/client_message_append_file_request.py new file mode 100644 index 0000000..4beb7e1 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/client_message_append_file_request.py @@ -0,0 +1,78 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class ClientMessageAppendFileRequest(object): + """ + Request model for client_message_append_file operation. + Initializes a new instance. + + :param account: Email account. + :type account: str + :param file: Message file to append. + :type file: str + :param storage: Storage name where account file located. + :type storage: str + :param account_storage_folder: Folder in storage where account file located. + :type account_storage_folder: str + :param format: Email file format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + :param folder: Path to folder on email server to append message to. + :type folder: str + :param mark_as_sent: Determines that appended message should be market as sent or not. + :type mark_as_sent: bool + """ + + def __init__(self, account: str, file: str, storage: str = None, account_storage_folder: str = None, format: str = None, folder: str = None, mark_as_sent: bool = None): + """ + Request model for client_message_append_file operation. + Initializes a new instance. + + :param account: Email account. + :type account: str + :param file: Message file to append. + :type file: str + :param storage: Storage name where account file located. + :type storage: str + :param account_storage_folder: Folder in storage where account file located. + :type account_storage_folder: str + :param format: Email file format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + :param folder: Path to folder on email server to append message to. + :type folder: str + :param mark_as_sent: Determines that appended message should be market as sent or not. + :type mark_as_sent: bool + """ + + self.account = account + self.file = file + self.storage = storage + self.account_storage_folder = account_storage_folder + self.format = format + self.folder = folder + self.mark_as_sent = mark_as_sent diff --git a/sdk/AsposeEmailCloudSdk/models/append_email_account_base_request.py b/sdk/AsposeEmailCloudSdk/models/client_message_append_request.py similarity index 58% rename from sdk/AsposeEmailCloudSdk/models/append_email_account_base_request.py rename to sdk/AsposeEmailCloudSdk/models/client_message_append_request.py index a00fc85..16775f3 100644 --- a/sdk/AsposeEmailCloudSdk/models/append_email_account_base_request.py +++ b/sdk/AsposeEmailCloudSdk/models/client_message_append_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -30,12 +30,13 @@ 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 +from AsposeEmailCloudSdk.models.client_account_base_request import ClientAccountBaseRequest +from AsposeEmailCloudSdk.models.mail_message_base import MailMessageBase +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation -class AppendEmailAccountBaseRequest(AccountBaseRequest): - """Append email to account request +class ClientMessageAppendRequest(ClientAccountBaseRequest): + """Email client append message request. """ """ @@ -46,90 +47,105 @@ class AppendEmailAccountBaseRequest(AccountBaseRequest): and the value is json key in definition. """ swagger_types = { - 'first_account': 'str', - 'second_account': 'str', - 'storage_folder': 'StorageFolderLocation', + 'account_location': 'StorageFileLocation', 'folder': 'str', + 'message': 'MailMessageBase', 'mark_as_sent': 'bool' } attribute_map = { - 'first_account': 'firstAccount', - 'second_account': 'secondAccount', - 'storage_folder': 'storageFolder', + 'account_location': 'accountLocation', 'folder': 'folder', + 'message': 'message', 'mark_as_sent': 'markAsSent' } - def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, folder: str = None, mark_as_sent: bool = None): + def __init__(self, account_location: StorageFileLocation = None, folder: str = None, message: MailMessageBase = None, mark_as_sent: bool = None): """ - Append email to account 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) Email account folder to store a message - :param mark_as_sent (bool) Mark message as sent + Email client append message request. + :param account_location: Email client account configuration location on storage. + :type account_location: StorageFileLocation + :param folder: Path to folder on email server to append message to. + :type folder: str + :param message: Message to append. + :type message: MailMessageBase + :param mark_as_sent: Determines that appended message should be market as sent or not. + :type mark_as_sent: bool """ - super(AppendEmailAccountBaseRequest, self).__init__() + super(ClientMessageAppendRequest, self).__init__() self._folder = None + self._message = None self._mark_as_sent = 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 account_location is not None: + self.account_location = account_location if folder is not None: self.folder = folder + if message is not None: + self.message = message if mark_as_sent is not None: self.mark_as_sent = mark_as_sent + @property def folder(self) -> str: - """Gets the folder of this AppendEmailAccountBaseRequest. - - Email account folder to store a message + """ + Path to folder on email server to append message to. - :return: The folder of this AppendEmailAccountBaseRequest. + :return: The folder of this ClientMessageAppendRequest. :rtype: str """ return self._folder @folder.setter def folder(self, folder: str): - """Sets the folder of this AppendEmailAccountBaseRequest. - - Email account folder to store a message + """ + Path to folder on email server to append message to. - :param folder: The folder of this AppendEmailAccountBaseRequest. + :param folder: The folder of this ClientMessageAppendRequest. :type: str """ - if folder is None: - raise ValueError("Invalid value for `folder`, must not be `None`") - if folder is not None and len(folder) < 1: - raise ValueError("Invalid value for `folder`, length must be greater than or equal to `1`") self._folder = folder @property - def mark_as_sent(self) -> bool: - """Gets the mark_as_sent of this AppendEmailAccountBaseRequest. + def message(self) -> MailMessageBase: + """ + Message to append. + + :return: The message of this ClientMessageAppendRequest. + :rtype: MailMessageBase + """ + return self._message - Mark message as sent + @message.setter + def message(self, message: MailMessageBase): + """ + Message to append. + + :param message: The message of this ClientMessageAppendRequest. + :type: MailMessageBase + """ + if message is None: + raise ValueError("Invalid value for `message`, must not be `None`") + self._message = message - :return: The mark_as_sent of this AppendEmailAccountBaseRequest. + @property + def mark_as_sent(self) -> bool: + """ + Determines that appended message should be market as sent or not. + + :return: The mark_as_sent of this ClientMessageAppendRequest. :rtype: bool """ return self._mark_as_sent @mark_as_sent.setter def mark_as_sent(self, mark_as_sent: bool): - """Sets the mark_as_sent of this AppendEmailAccountBaseRequest. - - Mark message as sent + """ + Determines that appended message should be market as sent or not. - :param mark_as_sent: The mark_as_sent of this AppendEmailAccountBaseRequest. + :param mark_as_sent: The mark_as_sent of this ClientMessageAppendRequest. :type: bool """ if mark_as_sent is None: @@ -170,7 +186,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, AppendEmailAccountBaseRequest): + if not isinstance(other, ClientMessageAppendRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/client_message_base_request.py b/sdk/AsposeEmailCloudSdk/models/client_message_base_request.py new file mode 100644 index 0000000..8465d0c --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/client_message_base_request.py @@ -0,0 +1,141 @@ +# 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.client_account_base_request import ClientAccountBaseRequest +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation + + +class ClientMessageBaseRequest(ClientAccountBaseRequest): + """Email client 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 = { + 'account_location': 'StorageFileLocation', + 'message_id': 'str' + } + + attribute_map = { + 'account_location': 'accountLocation', + 'message_id': 'messageId' + } + + def __init__(self, account_location: StorageFileLocation = None, message_id: str = None): + """ + Email client message request. + :param account_location: Email client account configuration location on storage. + :type account_location: StorageFileLocation + :param message_id: Message identifier. + :type message_id: str + """ + super(ClientMessageBaseRequest, self).__init__() + + self._message_id = None + + if account_location is not None: + self.account_location = account_location + if message_id is not None: + self.message_id = message_id + + + @property + def message_id(self) -> str: + """ + Message identifier. + + :return: The message_id of this ClientMessageBaseRequest. + :rtype: str + """ + return self._message_id + + @message_id.setter + def message_id(self, message_id: str): + """ + Message identifier. + + :param message_id: The message_id of this ClientMessageBaseRequest. + :type: str + """ + if message_id is None: + raise ValueError("Invalid value for `message_id`, must not be `None`") + if message_id is not None and len(message_id) < 1: + raise ValueError("Invalid value for `message_id`, length must be greater than or equal to `1`") + self._message_id = message_id + + 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, ClientMessageBaseRequest): + 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_email_thread_account_rq.py b/sdk/AsposeEmailCloudSdk/models/client_message_delete_request.py similarity index 64% rename from sdk/AsposeEmailCloudSdk/models/delete_email_thread_account_rq.py rename to sdk/AsposeEmailCloudSdk/models/client_message_delete_request.py index 57612fc..d7b77fb 100644 --- a/sdk/AsposeEmailCloudSdk/models/delete_email_thread_account_rq.py +++ b/sdk/AsposeEmailCloudSdk/models/client_message_delete_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -30,12 +30,12 @@ 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 +from AsposeEmailCloudSdk.models.client_message_base_request import ClientMessageBaseRequest +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation -class DeleteEmailThreadAccountRq(AccountBaseRequest): - """Delete thread request +class ClientMessageDeleteRequest(ClientMessageBaseRequest): + """Email client delete message request. """ """ @@ -46,58 +46,55 @@ class DeleteEmailThreadAccountRq(AccountBaseRequest): and the value is json key in definition. """ swagger_types = { - 'first_account': 'str', - 'second_account': 'str', - 'storage_folder': 'StorageFolderLocation', + 'account_location': 'StorageFileLocation', + 'message_id': 'str', 'folder': 'str' } attribute_map = { - 'first_account': 'firstAccount', - 'second_account': 'secondAccount', - 'storage_folder': 'storageFolder', + 'account_location': 'accountLocation', + 'message_id': 'messageId', 'folder': 'folder' } - def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, folder: str = None): + def __init__(self, account_location: StorageFileLocation = None, message_id: str = 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 + Email client delete message request. + :param account_location: Email client account configuration location on storage. + :type account_location: StorageFileLocation + :param message_id: Message identifier. + :type message_id: str + :param folder: Folder to delete message from. + :type folder: str """ - super(DeleteEmailThreadAccountRq, self).__init__() + super(ClientMessageDeleteRequest, 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 account_location is not None: + self.account_location = account_location + if message_id is not None: + self.message_id = message_id 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 + """ + Folder to delete message from. - :return: The folder of this DeleteEmailThreadAccountRq. + :return: The folder of this ClientMessageDeleteRequest. :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 + """ + Folder to delete message from. - :param folder: The folder of this DeleteEmailThreadAccountRq. + :param folder: The folder of this ClientMessageDeleteRequest. :type: str """ self._folder = folder @@ -136,7 +133,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, DeleteEmailThreadAccountRq): + if not isinstance(other, ClientMessageDeleteRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/client_message_fetch_file_request.py b/sdk/AsposeEmailCloudSdk/models/client_message_fetch_file_request.py new file mode 100644 index 0000000..9cae2ce --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/client_message_fetch_file_request.py @@ -0,0 +1,73 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class ClientMessageFetchFileRequest(object): + """ + Request model for client_message_fetch_file operation. + Initializes a new instance. + + :param message_id: Message identifier + :type message_id: str + :param account: Email account + :type account: str + :param folder: Account folder to fetch from (should be specified for some protocols such as IMAP) + :type folder: str + :param storage: Storage name where account file located. + :type storage: str + :param account_storage_folder: Folder in storage where account file located. + :type account_storage_folder: str + :param format: Fetched message file format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + """ + + def __init__(self, message_id: str, account: str, folder: str = None, storage: str = None, account_storage_folder: str = None, format: str = None): + """ + Request model for client_message_fetch_file operation. + Initializes a new instance. + + :param message_id: Message identifier + :type message_id: str + :param account: Email account + :type account: str + :param folder: Account folder to fetch from (should be specified for some protocols such as IMAP) + :type folder: str + :param storage: Storage name where account file located. + :type storage: str + :param account_storage_folder: Folder in storage where account file located. + :type account_storage_folder: str + :param format: Fetched message file format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + """ + + self.message_id = message_id + self.account = account + self.folder = folder + self.storage = storage + self.account_storage_folder = account_storage_folder + self.format = format diff --git a/sdk/AsposeEmailCloudSdk/models/client_message_fetch_request.py b/sdk/AsposeEmailCloudSdk/models/client_message_fetch_request.py new file mode 100644 index 0000000..cc81310 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/client_message_fetch_request.py @@ -0,0 +1,78 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class ClientMessageFetchRequest(object): + """ + Request model for client_message_fetch operation. + Initializes a new instance. + + :param message_id: Message identifier + :type message_id: str + :param account: Email account + :type account: str + :param folder: Account folder to fetch from (should be specified for some protocols such as IMAP) + :type folder: str + :param storage: Storage name where account file located. + :type storage: str + :param account_storage_folder: Folder in storage where account file located. + :type account_storage_folder: str + :param type: MailMessageBase type. Using this property you can fetch message in different formats (as EmailDto, MapiMessageDto or a file represented as Base64 string). Enum, available values: Dto, Mapi, Base64 + :type type: str + :param format: Base64 data format. Used only if type is set to Base64. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + """ + + def __init__(self, message_id: str, account: str, folder: str = None, storage: str = None, account_storage_folder: str = None, type: str = None, format: str = None): + """ + Request model for client_message_fetch operation. + Initializes a new instance. + + :param message_id: Message identifier + :type message_id: str + :param account: Email account + :type account: str + :param folder: Account folder to fetch from (should be specified for some protocols such as IMAP) + :type folder: str + :param storage: Storage name where account file located. + :type storage: str + :param account_storage_folder: Folder in storage where account file located. + :type account_storage_folder: str + :param type: MailMessageBase type. Using this property you can fetch message in different formats (as EmailDto, MapiMessageDto or a file represented as Base64 string). Enum, available values: Dto, Mapi, Base64 + :type type: str + :param format: Base64 data format. Used only if type is set to Base64. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + """ + + self.message_id = message_id + self.account = account + self.folder = folder + self.storage = storage + self.account_storage_folder = account_storage_folder + self.type = type + self.format = format diff --git a/sdk/AsposeEmailCloudSdk/models/client_message_list_request.py b/sdk/AsposeEmailCloudSdk/models/client_message_list_request.py new file mode 100644 index 0000000..87939a1 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/client_message_list_request.py @@ -0,0 +1,83 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class ClientMessageListRequest(object): + """ + Request model for client_message_list operation. + Initializes a new instance. + + :param folder: A folder in email account + :type folder: str + :param account: Email account + :type account: str + :param query_string: A MailQuery search string + :type query_string: str + :param storage: Storage name where account file located + :type storage: str + :param account_storage_folder: Folder in storage where account file located + :type account_storage_folder: str + :param recursive: Specifies that should message be searched in subfolders recursively + :type recursive: bool + :param type: MailMessageBase type. Using this property you can get messages in different formats (as EmailDto, MapiMessageDto or a file represented as Base64 string). Enum, available values: Dto, Mapi, Base64 + :type type: str + :param format: Base64 data format. Used only if type is set to Base64. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + """ + + def __init__(self, folder: str, account: str, query_string: str = None, storage: str = None, account_storage_folder: str = None, recursive: bool = None, type: str = None, format: str = None): + """ + Request model for client_message_list operation. + Initializes a new instance. + + :param folder: A folder in email account + :type folder: str + :param account: Email account + :type account: str + :param query_string: A MailQuery search string + :type query_string: str + :param storage: Storage name where account file located + :type storage: str + :param account_storage_folder: Folder in storage where account file located + :type account_storage_folder: str + :param recursive: Specifies that should message be searched in subfolders recursively + :type recursive: bool + :param type: MailMessageBase type. Using this property you can get messages in different formats (as EmailDto, MapiMessageDto or a file represented as Base64 string). Enum, available values: Dto, Mapi, Base64 + :type type: str + :param format: Base64 data format. Used only if type is set to Base64. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + """ + + self.folder = folder + self.account = account + self.query_string = query_string + self.storage = storage + self.account_storage_folder = account_storage_folder + self.recursive = recursive + self.type = type + self.format = format diff --git a/sdk/AsposeEmailCloudSdk/models/move_email_message_rq.py b/sdk/AsposeEmailCloudSdk/models/client_message_move_request.py similarity index 58% rename from sdk/AsposeEmailCloudSdk/models/move_email_message_rq.py rename to sdk/AsposeEmailCloudSdk/models/client_message_move_request.py index 690f2e4..772f15a 100644 --- a/sdk/AsposeEmailCloudSdk/models/move_email_message_rq.py +++ b/sdk/AsposeEmailCloudSdk/models/client_message_move_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -30,12 +30,12 @@ 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 +from AsposeEmailCloudSdk.models.client_message_base_request import ClientMessageBaseRequest +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation -class MoveEmailMessageRq(AccountBaseRequest): - """Move email message request +class ClientMessageMoveRequest(ClientMessageBaseRequest): + """Email client move message request. """ """ @@ -46,45 +46,38 @@ class MoveEmailMessageRq(AccountBaseRequest): and the value is json key in definition. """ swagger_types = { - 'first_account': 'str', - 'second_account': 'str', - 'storage_folder': 'StorageFolderLocation', + 'account_location': 'StorageFileLocation', 'message_id': 'str', 'source_folder': 'str', 'destination_folder': 'str' } attribute_map = { - 'first_account': 'firstAccount', - 'second_account': 'secondAccount', - 'storage_folder': 'storageFolder', + 'account_location': 'accountLocation', '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): + def __init__(self, account_location: StorageFileLocation = 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 + Email client move message request. + :param account_location: Email client account configuration location on storage. + :type account_location: StorageFileLocation + :param message_id: Message identifier. + :type message_id: str + :param source_folder: Folder to move message from. + :type source_folder: str + :param destination_folder: Folder to move message to. + :type destination_folder: str """ - super(MoveEmailMessageRq, self).__init__() + super(ClientMessageMoveRequest, 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 account_location is not None: + self.account_location = account_location if message_id is not None: self.message_id = message_id if source_folder is not None: @@ -92,70 +85,49 @@ def __init__(self, first_account: str = None, second_account: str = None, storag 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 + """ + Folder to move message from. - :return: The source_folder of this MoveEmailMessageRq. + :return: The source_folder of this ClientMessageMoveRequest. :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 + """ + Folder to move message from. - :param source_folder: The source_folder of this MoveEmailMessageRq. + :param source_folder: The source_folder of this ClientMessageMoveRequest. :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 + """ + Folder to move message to. - :return: The destination_folder of this MoveEmailMessageRq. + :return: The destination_folder of this ClientMessageMoveRequest. :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 + """ + Folder to move message to. - :param destination_folder: The destination_folder of this MoveEmailMessageRq. + :param destination_folder: The destination_folder of this ClientMessageMoveRequest. :type: str """ + if destination_folder is None: + raise ValueError("Invalid value for `destination_folder`, must not be `None`") + if destination_folder is not None and len(destination_folder) < 1: + raise ValueError("Invalid value for `destination_folder`, length must be greater than or equal to `1`") self._destination_folder = destination_folder def to_dict(self): @@ -192,7 +164,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, MoveEmailMessageRq): + if not isinstance(other, ClientMessageMoveRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/client_message_send_file_request.py b/sdk/AsposeEmailCloudSdk/models/client_message_send_file_request.py new file mode 100644 index 0000000..7a2f860 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/client_message_send_file_request.py @@ -0,0 +1,69 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class ClientMessageSendFileRequest(object): + """ + Request model for client_message_send_file operation. + Initializes a new instance. + + :param account: Email account + :type account: str + :param file: File to send + :type file: str + :param storage: Storage name where account file located. + :type storage: str + :param account_storage_folder: Folder in storage where account file located. + :type account_storage_folder: str + :param format: Email file format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + """ + + def __init__(self, account: str, file: str, storage: str = None, account_storage_folder: str = None, format: str = None): + """ + Request model for client_message_send_file operation. + Initializes a new instance. + + :param account: Email account + :type account: str + :param file: File to send + :type file: str + :param storage: Storage name where account file located. + :type storage: str + :param account_storage_folder: Folder in storage where account file located. + :type account_storage_folder: str + :param format: Email file format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + """ + + self.account = account + self.file = file + self.storage = storage + self.account_storage_folder = account_storage_folder + self.format = format + diff --git a/sdk/AsposeEmailCloudSdk/models/send_email_model_rq.py b/sdk/AsposeEmailCloudSdk/models/client_message_send_request.py similarity index 64% rename from sdk/AsposeEmailCloudSdk/models/send_email_model_rq.py rename to sdk/AsposeEmailCloudSdk/models/client_message_send_request.py index c8eb11c..4ff5735 100644 --- a/sdk/AsposeEmailCloudSdk/models/send_email_model_rq.py +++ b/sdk/AsposeEmailCloudSdk/models/client_message_send_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -30,13 +30,13 @@ from typing import List, Set, Dict, Tuple, Optional 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 +from AsposeEmailCloudSdk.models.client_account_base_request import ClientAccountBaseRequest +from AsposeEmailCloudSdk.models.mail_message_base import MailMessageBase +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation -class SendEmailModelRq(AccountBaseRequest): - """Send email model request +class ClientMessageSendRequest(ClientAccountBaseRequest): + """Email client send message request. """ """ @@ -47,60 +47,53 @@ class SendEmailModelRq(AccountBaseRequest): and the value is json key in definition. """ swagger_types = { - 'first_account': 'str', - 'second_account': 'str', - 'storage_folder': 'StorageFolderLocation', - 'message': 'EmailDto' + 'account_location': 'StorageFileLocation', + 'message': 'MailMessageBase' } attribute_map = { - 'first_account': 'firstAccount', - 'second_account': 'secondAccount', - 'storage_folder': 'storageFolder', + 'account_location': 'accountLocation', 'message': 'message' } - def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, message: EmailDto = None): + def __init__(self, account_location: StorageFileLocation = None, message: MailMessageBase = None): """ - Send email model 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 (EmailDto) Message to send + Email client send message request. + :param account_location: Email client account configuration location on storage. + :type account_location: StorageFileLocation + :param message: Message to send + :type message: MailMessageBase """ - super(SendEmailModelRq, self).__init__() + super(ClientMessageSendRequest, self).__init__() self._message = 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 account_location is not None: + self.account_location = account_location if message is not None: self.message = message - @property - def message(self) -> EmailDto: - """Gets the message of this SendEmailModelRq. + @property + def message(self) -> MailMessageBase: + """ Message to send - :return: The message of this SendEmailModelRq. - :rtype: EmailDto + :return: The message of this ClientMessageSendRequest. + :rtype: MailMessageBase """ return self._message @message.setter - def message(self, message: EmailDto): - """Sets the message of this SendEmailModelRq. - + def message(self, message: MailMessageBase): + """ Message to send - :param message: The message of this SendEmailModelRq. - :type: EmailDto + :param message: The message of this ClientMessageSendRequest. + :type: MailMessageBase """ + if message is None: + raise ValueError("Invalid value for `message`, must not be `None`") self._message = message def to_dict(self): @@ -137,7 +130,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, SendEmailModelRq): + if not isinstance(other, ClientMessageSendRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/email_properties.py b/sdk/AsposeEmailCloudSdk/models/client_message_set_is_read_request.py similarity index 61% rename from sdk/AsposeEmailCloudSdk/models/email_properties.py rename to sdk/AsposeEmailCloudSdk/models/client_message_set_is_read_request.py index 885c66a..02c2f8c 100644 --- a/sdk/AsposeEmailCloudSdk/models/email_properties.py +++ b/sdk/AsposeEmailCloudSdk/models/client_message_set_is_read_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -30,12 +30,12 @@ from typing import List, Set, Dict, Tuple, Optional from datetime import datetime -from AsposeEmailCloudSdk.models.email_property import EmailProperty -from AsposeEmailCloudSdk.models.link import Link +from AsposeEmailCloudSdk.models.client_message_base_request import ClientMessageBaseRequest +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation -class EmailProperties(object): - """Email list properties. +class ClientMessageSetIsReadRequest(ClientMessageBaseRequest): + """Email client mark message is read/unread request. """ """ @@ -46,75 +46,60 @@ class EmailProperties(object): and the value is json key in definition. """ swagger_types = { - 'link': 'Link', - 'list': 'list[EmailProperty]' + 'account_location': 'StorageFileLocation', + 'message_id': 'str', + 'is_read': 'bool' } attribute_map = { - 'link': 'link', - 'list': 'list' + 'account_location': 'accountLocation', + 'message_id': 'messageId', + 'is_read': 'isRead' } - def __init__(self, link: Link = None, list: List[EmailProperty] = None): + def __init__(self, account_location: StorageFileLocation = None, message_id: str = None, is_read: bool = None): """ - Email list properties. - :param link (Link) Gets or sets link that originate from this document. - :param list (List[EmailProperty]) List of properties + Email client mark message is read/unread request. + :param account_location: Email client account configuration location on storage. + :type account_location: StorageFileLocation + :param message_id: Message identifier. + :type message_id: str + :param is_read: Message is read flag. + :type is_read: bool """ + super(ClientMessageSetIsReadRequest, self).__init__() - self._link = None - self._list = None + self._is_read = None - if link is not None: - self.link = link - if list is not None: - self.list = list + if account_location is not None: + self.account_location = account_location + if message_id is not None: + self.message_id = message_id + if is_read is not None: + self.is_read = is_read - @property - def link(self) -> Link: - """Gets the link of this EmailProperties. - - Gets or sets link that originate from this document. - :return: The link of this EmailProperties. - :rtype: Link + @property + def is_read(self) -> bool: """ - return self._link - - @link.setter - def link(self, link: Link): - """Sets the link of this EmailProperties. - - Gets or sets link that originate from this document. + Message is read flag. - :param link: The link of this EmailProperties. - :type: Link + :return: The is_read of this ClientMessageSetIsReadRequest. + :rtype: bool """ - self._link = link + return self._is_read - @property - def list(self) -> List[EmailProperty]: - """Gets the list of this EmailProperties. - - List of properties - - :return: The list of this EmailProperties. - :rtype: list[EmailProperty] + @is_read.setter + def is_read(self, is_read: bool): """ - return self._list - - @list.setter - def list(self, list: List[EmailProperty]): - """Sets the list of this EmailProperties. - - List of properties + Message is read flag. - :param list: The list of this EmailProperties. - :type: list[EmailProperty] + :param is_read: The is_read of this ClientMessageSetIsReadRequest. + :type: bool """ - if list is None: - raise ValueError("Invalid value for `list`, must not be `None`") - self._list = list + if is_read is None: + raise ValueError("Invalid value for `is_read`, must not be `None`") + self._is_read = is_read def to_dict(self): """Returns the model properties as a dict""" @@ -150,7 +135,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, EmailProperties): + if not isinstance(other, ClientMessageSetIsReadRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/ai_bcr_base64_image.py b/sdk/AsposeEmailCloudSdk/models/client_thread_base_request.py similarity index 63% rename from sdk/AsposeEmailCloudSdk/models/ai_bcr_base64_image.py rename to sdk/AsposeEmailCloudSdk/models/client_thread_base_request.py index 2edbe39..ea8fa1a 100644 --- a/sdk/AsposeEmailCloudSdk/models/ai_bcr_base64_image.py +++ b/sdk/AsposeEmailCloudSdk/models/client_thread_base_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -30,11 +30,12 @@ from typing import List, Set, Dict, Tuple, Optional from datetime import datetime -from AsposeEmailCloudSdk.models.ai_bcr_image import AiBcrImage +from AsposeEmailCloudSdk.models.client_account_base_request import ClientAccountBaseRequest +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation -class AiBcrBase64Image(AiBcrImage): - """Image to recognize +class ClientThreadBaseRequest(ClientAccountBaseRequest): + """Email client thread request. """ """ @@ -45,51 +46,56 @@ class AiBcrBase64Image(AiBcrImage): and the value is json key in definition. """ swagger_types = { - 'is_single': 'bool', - 'base64_data': 'str' + 'account_location': 'StorageFileLocation', + 'thread_id': 'str' } attribute_map = { - 'is_single': 'isSingle', - 'base64_data': 'base64Data' + 'account_location': 'accountLocation', + 'thread_id': 'threadId' } - def __init__(self, is_single: bool = None, base64_data: str = None): + def __init__(self, account_location: StorageFileLocation = None, thread_id: str = None): """ - Image to recognize - :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 base64_data (str) Image data in base64 + Email client thread request. + :param account_location: Email client account configuration location on storage. + :type account_location: StorageFileLocation + :param thread_id: Thread identifier. + :type thread_id: str """ - super(AiBcrBase64Image, self).__init__() + super(ClientThreadBaseRequest, self).__init__() - self._base64_data = None + self._thread_id = None - if is_single is not None: - self.is_single = is_single - if base64_data is not None: - self.base64_data = base64_data + if account_location is not None: + self.account_location = account_location + if thread_id is not None: + self.thread_id = thread_id - @property - def base64_data(self) -> str: - """Gets the base64_data of this AiBcrBase64Image. - Image data in base64 + @property + def thread_id(self) -> str: + """ + Thread identifier. - :return: The base64_data of this AiBcrBase64Image. + :return: The thread_id of this ClientThreadBaseRequest. :rtype: str """ - return self._base64_data + return self._thread_id - @base64_data.setter - def base64_data(self, base64_data: str): - """Sets the base64_data of this AiBcrBase64Image. - - Image data in base64 + @thread_id.setter + def thread_id(self, thread_id: str): + """ + Thread identifier. - :param base64_data: The base64_data of this AiBcrBase64Image. + :param thread_id: The thread_id of this ClientThreadBaseRequest. :type: str """ - self._base64_data = base64_data + if thread_id is None: + raise ValueError("Invalid value for `thread_id`, must not be `None`") + if thread_id is not None and len(thread_id) < 1: + raise ValueError("Invalid value for `thread_id`, length must be greater than or equal to `1`") + self._thread_id = thread_id def to_dict(self): """Returns the model properties as a dict""" @@ -125,7 +131,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, AiBcrBase64Image): + if not isinstance(other, ClientThreadBaseRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/client_thread_delete_request.py b/sdk/AsposeEmailCloudSdk/models/client_thread_delete_request.py new file mode 100644 index 0000000..2e74075 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/client_thread_delete_request.py @@ -0,0 +1,143 @@ +# 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.client_thread_base_request import ClientThreadBaseRequest +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation + + +class ClientThreadDeleteRequest(ClientThreadBaseRequest): + """Delete email client 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 = { + 'account_location': 'StorageFileLocation', + 'thread_id': 'str', + 'folder': 'str' + } + + attribute_map = { + 'account_location': 'accountLocation', + 'thread_id': 'threadId', + 'folder': 'folder' + } + + def __init__(self, account_location: StorageFileLocation = None, thread_id: str = None, folder: str = None): + """ + Delete email client thread request. + :param account_location: Email client account configuration location on storage. + :type account_location: StorageFileLocation + :param thread_id: Thread identifier. + :type thread_id: str + :param folder: Folder on email server, where thread is stored. + :type folder: str + """ + super(ClientThreadDeleteRequest, self).__init__() + + self._folder = None + + if account_location is not None: + self.account_location = account_location + if thread_id is not None: + self.thread_id = thread_id + if folder is not None: + self.folder = folder + + + @property + def folder(self) -> str: + """ + Folder on email server, where thread is stored. + + :return: The folder of this ClientThreadDeleteRequest. + :rtype: str + """ + return self._folder + + @folder.setter + def folder(self, folder: str): + """ + Folder on email server, where thread is stored. + + :param folder: The folder of this ClientThreadDeleteRequest. + :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, ClientThreadDeleteRequest): + 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/client_thread_get_list_request.py b/sdk/AsposeEmailCloudSdk/models/client_thread_get_list_request.py new file mode 100644 index 0000000..9373a96 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/client_thread_get_list_request.py @@ -0,0 +1,73 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class ClientThreadGetListRequest(object): + """ + Request model for client_thread_get_list operation. + Initializes a new instance. + + :param folder: A folder in email account. + :type folder: str + :param account: Email account + :type account: str + :param storage: Storage name where account file located + :type storage: str + :param account_storage_folder: Folder in storage where account file located + :type account_storage_folder: str + :param update_folder_cache: 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 + :type update_folder_cache: bool + :param messages_cache_limit: Limit messages cache size if CacheFile is used. Ignored in accounts without limits support + :type messages_cache_limit: int + """ + + def __init__(self, folder: str, account: str, storage: str = None, account_storage_folder: str = None, update_folder_cache: bool = None, messages_cache_limit: int = None): + """ + Request model for client_thread_get_list operation. + Initializes a new instance. + + :param folder: A folder in email account. + :type folder: str + :param account: Email account + :type account: str + :param storage: Storage name where account file located + :type storage: str + :param account_storage_folder: Folder in storage where account file located + :type account_storage_folder: str + :param update_folder_cache: 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 + :type update_folder_cache: bool + :param messages_cache_limit: Limit messages cache size if CacheFile is used. Ignored in accounts without limits support + :type messages_cache_limit: int + """ + + self.folder = folder + self.account = account + self.storage = storage + self.account_storage_folder = account_storage_folder + self.update_folder_cache = update_folder_cache + self.messages_cache_limit = messages_cache_limit diff --git a/sdk/AsposeEmailCloudSdk/models/client_thread_get_messages_request.py b/sdk/AsposeEmailCloudSdk/models/client_thread_get_messages_request.py new file mode 100644 index 0000000..c265a79 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/client_thread_get_messages_request.py @@ -0,0 +1,69 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class ClientThreadGetMessagesRequest(object): + """ + Request model for client_thread_get_messages operation. + Initializes a new instance. + + :param thread_id: Thread identifier + :type thread_id: str + :param account: Email account + :type account: str + :param folder: Specifies account folder to get thread from + :type folder: str + :param storage: Storage name where account file located + :type storage: str + :param account_storage_folder: Folder in storage where account file located + :type account_storage_folder: str + """ + + def __init__(self, thread_id: str, account: str, folder: str = None, storage: str = None, account_storage_folder: str = None): + """ + Request model for client_thread_get_messages operation. + Initializes a new instance. + + :param thread_id: Thread identifier + :type thread_id: str + :param account: Email account + :type account: str + :param folder: Specifies account folder to get thread from + :type folder: str + :param storage: Storage name where account file located + :type storage: str + :param account_storage_folder: Folder in storage where account file located + :type account_storage_folder: str + """ + + self.thread_id = thread_id + self.account = account + self.folder = folder + self.storage = storage + self.account_storage_folder = account_storage_folder + diff --git a/sdk/AsposeEmailCloudSdk/models/move_email_thread_rq.py b/sdk/AsposeEmailCloudSdk/models/client_thread_move_request.py similarity index 66% rename from sdk/AsposeEmailCloudSdk/models/move_email_thread_rq.py rename to sdk/AsposeEmailCloudSdk/models/client_thread_move_request.py index 5bb93f1..c6d37cb 100644 --- a/sdk/AsposeEmailCloudSdk/models/move_email_thread_rq.py +++ b/sdk/AsposeEmailCloudSdk/models/client_thread_move_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -30,12 +30,12 @@ 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 +from AsposeEmailCloudSdk.models.client_thread_base_request import ClientThreadBaseRequest +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation -class MoveEmailThreadRq(AccountBaseRequest): - """Email thread move request +class ClientThreadMoveRequest(ClientThreadBaseRequest): + """Email client move thread request. """ """ @@ -46,60 +46,61 @@ class MoveEmailThreadRq(AccountBaseRequest): and the value is json key in definition. """ swagger_types = { - 'first_account': 'str', - 'second_account': 'str', - 'storage_folder': 'StorageFolderLocation', + 'account_location': 'StorageFileLocation', + 'thread_id': 'str', 'destination_folder': 'str' } attribute_map = { - 'first_account': 'firstAccount', - 'second_account': 'secondAccount', - 'storage_folder': 'storageFolder', + 'account_location': 'accountLocation', + 'thread_id': 'threadId', 'destination_folder': 'destinationFolder' } - def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, destination_folder: str = None): + def __init__(self, account_location: StorageFileLocation = None, thread_id: str = 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 + Email client move thread request. + :param account_location: Email client account configuration location on storage. + :type account_location: StorageFileLocation + :param thread_id: Thread identifier. + :type thread_id: str + :param destination_folder: Email account folder to move thread to. + :type destination_folder: str """ - super(MoveEmailThreadRq, self).__init__() + super(ClientThreadMoveRequest, 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 account_location is not None: + self.account_location = account_location + if thread_id is not None: + self.thread_id = thread_id 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 + """ + Email account folder to move thread to. - :return: The destination_folder of this MoveEmailThreadRq. + :return: The destination_folder of this ClientThreadMoveRequest. :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 + """ + Email account folder to move thread to. - :param destination_folder: The destination_folder of this MoveEmailThreadRq. + :param destination_folder: The destination_folder of this ClientThreadMoveRequest. :type: str """ + if destination_folder is None: + raise ValueError("Invalid value for `destination_folder`, must not be `None`") + if destination_folder is not None and len(destination_folder) < 1: + raise ValueError("Invalid value for `destination_folder`, length must be greater than or equal to `1`") self._destination_folder = destination_folder def to_dict(self): @@ -136,7 +137,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, MoveEmailThreadRq): + if not isinstance(other, ClientThreadMoveRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/email_thread_read_flag_rq.py b/sdk/AsposeEmailCloudSdk/models/client_thread_set_is_read_request.py similarity index 62% rename from sdk/AsposeEmailCloudSdk/models/email_thread_read_flag_rq.py rename to sdk/AsposeEmailCloudSdk/models/client_thread_set_is_read_request.py index 7c06b26..d7966cd 100644 --- a/sdk/AsposeEmailCloudSdk/models/email_thread_read_flag_rq.py +++ b/sdk/AsposeEmailCloudSdk/models/client_thread_set_is_read_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -30,12 +30,12 @@ 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 +from AsposeEmailCloudSdk.models.client_thread_base_request import ClientThreadBaseRequest +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation -class EmailThreadReadFlagRq(AccountBaseRequest): - """Request to mark all messages in thread as read or unread +class ClientThreadSetIsReadRequest(ClientThreadBaseRequest): + """Mark thread messages as read or unread request. """ """ @@ -46,64 +46,62 @@ class EmailThreadReadFlagRq(AccountBaseRequest): and the value is json key in definition. """ swagger_types = { - 'first_account': 'str', - 'second_account': 'str', - 'storage_folder': 'StorageFolderLocation', + 'account_location': 'StorageFileLocation', + 'thread_id': 'str', 'is_read': 'bool', 'folder': 'str' } attribute_map = { - 'first_account': 'firstAccount', - 'second_account': 'secondAccount', - 'storage_folder': 'storageFolder', + 'account_location': 'accountLocation', + 'thread_id': 'threadId', '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): + def __init__(self, account_location: StorageFileLocation = None, thread_id: str = 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 + Mark thread messages as read or unread request. + :param account_location: Email client account configuration location on storage. + :type account_location: StorageFileLocation + :param thread_id: Thread identifier. + :type thread_id: str + :param is_read: Message is read flag. + :type is_read: bool + :param folder: Folder on email server, where thread is stored. + :type folder: str """ - super(EmailThreadReadFlagRq, self).__init__() + super(ClientThreadSetIsReadRequest, 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 account_location is not None: + self.account_location = account_location + if thread_id is not None: + self.thread_id = thread_id 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 + """ + Message is read flag. - :return: The is_read of this EmailThreadReadFlagRq. + :return: The is_read of this ClientThreadSetIsReadRequest. :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 + """ + Message is read flag. - :param is_read: The is_read of this EmailThreadReadFlagRq. + :param is_read: The is_read of this ClientThreadSetIsReadRequest. :type: bool """ if is_read is None: @@ -112,22 +110,20 @@ def is_read(self, is_read: bool): @property def folder(self) -> str: - """Gets the folder of this EmailThreadReadFlagRq. - - Specifies account folder to get thread from + """ + Folder on email server, where thread is stored. - :return: The folder of this EmailThreadReadFlagRq. + :return: The folder of this ClientThreadSetIsReadRequest. :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 + """ + Folder on email server, where thread is stored. - :param folder: The folder of this EmailThreadReadFlagRq. + :param folder: The folder of this ClientThreadSetIsReadRequest. :type: str """ self._folder = folder @@ -166,7 +162,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, EmailThreadReadFlagRq): + if not isinstance(other, ClientThreadSetIsReadRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_contact_dto.py b/sdk/AsposeEmailCloudSdk/models/contact_as_file_request.py similarity index 68% rename from sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_contact_dto.py rename to sdk/AsposeEmailCloudSdk/models/contact_as_file_request.py index 790cb1f..73a27cd 100644 --- a/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_contact_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/contact_as_file_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -31,11 +31,10 @@ from datetime import datetime from AsposeEmailCloudSdk.models.contact_dto import ContactDto -from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation -class StorageModelRqOfContactDto(object): - """ +class ContactAsFileRequest(object): + """Convert contact model to file request. """ """ @@ -46,69 +45,76 @@ class StorageModelRqOfContactDto(object): and the value is json key in definition. """ swagger_types = { - 'value': 'ContactDto', - 'storage_folder': 'StorageFolderLocation' + 'format': 'str', + 'value': 'ContactDto' } attribute_map = { - 'value': 'value', - 'storage_folder': 'storageFolder' + 'format': 'format', + 'value': 'value' } - def __init__(self, value: ContactDto = None, storage_folder: StorageFolderLocation = None): + def __init__(self, format: str = None, value: ContactDto = None): """ - - :param value (ContactDto) - :param storage_folder (StorageFolderLocation) + Convert contact model to file request. + :param format: Enumerates contact formats. Enum, available values: VCard, WebDav, Msg + :type format: str + :param value: Contact model. + :type value: ContactDto """ + self._format = None self._value = None - self._storage_folder = None + if format is not None: + self.format = format if value is not None: self.value = value - if storage_folder is not None: - self.storage_folder = storage_folder - - @property - def value(self) -> ContactDto: - """Gets the value of this StorageModelRqOfContactDto. - :return: The value of this StorageModelRqOfContactDto. - :rtype: ContactDto + @property + def format(self) -> str: """ - return self._value + Enumerates contact formats. Enum, available values: VCard, WebDav, Msg - @value.setter - def value(self, value: ContactDto): - """Sets the value of this StorageModelRqOfContactDto. + :return: The format of this ContactAsFileRequest. + :rtype: str + """ + return self._format + @format.setter + def format(self, format: str): + """ + Enumerates contact formats. Enum, available values: VCard, WebDav, Msg - :param value: The value of this StorageModelRqOfContactDto. - :type: ContactDto + :param format: The format of this ContactAsFileRequest. + :type: str """ - self._value = value + if format is None: + raise ValueError("Invalid value for `format`, must not be `None`") + self._format = format @property - def storage_folder(self) -> StorageFolderLocation: - """Gets the storage_folder of this StorageModelRqOfContactDto. - - - :return: The storage_folder of this StorageModelRqOfContactDto. - :rtype: StorageFolderLocation + def value(self) -> ContactDto: """ - return self._storage_folder + Contact model. - @storage_folder.setter - def storage_folder(self, storage_folder: StorageFolderLocation): - """Sets the storage_folder of this StorageModelRqOfContactDto. + :return: The value of this ContactAsFileRequest. + :rtype: ContactDto + """ + return self._value + @value.setter + def value(self, value: ContactDto): + """ + Contact model. - :param storage_folder: The storage_folder of this StorageModelRqOfContactDto. - :type: StorageFolderLocation + :param value: The value of this ContactAsFileRequest. + :type: ContactDto """ - self._storage_folder = storage_folder + if value is None: + raise ValueError("Invalid value for `value`, must not be `None`") + self._value = value def to_dict(self): """Returns the model properties as a dict""" @@ -144,7 +150,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, StorageModelRqOfContactDto): + if not isinstance(other, ContactAsFileRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/contact_convert_request.py b/sdk/AsposeEmailCloudSdk/models/contact_convert_request.py new file mode 100644 index 0000000..84e8646 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/contact_convert_request.py @@ -0,0 +1,58 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class ContactConvertRequest(object): + """ + Request model for contact_convert operation. + Initializes a new instance. + + :param to_format: File format to convert to Enum, available values: VCard, WebDav, Msg + :type to_format: str + :param from_format: File format to convert from Enum, available values: VCard, WebDav, Msg + :type from_format: str + :param file: File to convert + :type file: str + """ + + def __init__(self, to_format: str, from_format: str, file: str): + """ + Request model for contact_convert operation. + Initializes a new instance. + + :param to_format: File format to convert to Enum, available values: VCard, WebDav, Msg + :type to_format: str + :param from_format: File format to convert from Enum, available values: VCard, WebDav, Msg + :type from_format: str + :param file: File to convert + :type file: str + """ + + self.to_format = to_format + self.from_format = from_format + self.file = file diff --git a/sdk/AsposeEmailCloudSdk/models/contact_dto.py b/sdk/AsposeEmailCloudSdk/models/contact_dto.py index cb15750..63923f1 100644 --- a/sdk/AsposeEmailCloudSdk/models/contact_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/contact_dto.py @@ -133,42 +133,78 @@ class ContactDto(object): def __init__(self, associated_persons: List[AssociatedPerson] = None, attachments: List[Attachment] = None, company_name: str = None, computer_network_name: str = None, customer_id: str = None, department_name: str = None, display_name: str = None, email_addresses: List[EmailAddress] = None, events: List[CustomerEvent] = None, file_as: str = None, file_as_mapping: str = None, free_busy_location: str = None, gender: str = None, given_name: str = None, government_id_number: str = None, hobbies: str = None, initials: str = None, instant_messengers: List[InstantMessengerAddress] = None, job_title: str = None, language: str = None, location: str = None, middle_name: str = None, nickname: str = None, notes: str = None, notes_format: str = None, office_location: str = None, organizational_id_number: str = None, phone_numbers: List[PhoneNumber] = None, photo: ContactPhoto = None, physical_addresses: List[PostalAddress] = None, preferred_text_encoding: str = None, prefix: str = None, profession: str = None, suffix: str = None, surname: str = None, urls: List[Url] = None): """ VCard document representation. - :param associated_persons (List[AssociatedPerson]) Associated persons. - :param attachments (List[Attachment]) Document attachments. - :param company_name (str) Company name. - :param computer_network_name (str) Computer network. - :param customer_id (str) Customer id. - :param department_name (str) Department name. - :param display_name (str) Display name. - :param email_addresses (List[EmailAddress]) Person's email addresses. - :param events (List[CustomerEvent]) Person's events. - :param file_as (str) A name used for sorting. - :param file_as_mapping (str) Specifies how to generate and recompute the value of the dispidFileAs property when other contact name properties change. Coincides MS-OXPROPS revision 16.2 from 7/31/2014. Enum, available values: Empty, DisplayName, FirstName, LastName, Organization, LastFirstMiddle, OrgLastFirstMiddle, LastFirstMiddleOrg, LastFirstMiddle2, LastFirstMiddle3, OrgLastFirstMiddle2, OrgLastFirstMiddle3, LastFirstMiddleOrg2, LastFirstMiddleOrg3, LastFirstMiddleGen, FirstMiddleLastGen, LastFirstMiddleGen2, BestMatch, AccordingToLocale, None - :param free_busy_location (str) URL path from which a client can retrieve free/busy information for the contact as an iCal file. - :param gender (str) Enum defines gender of a person. Enum, available values: Unspecified, Female, Male - :param given_name (str) Person's given name. - :param government_id_number (str) Government id number. - :param hobbies (str) Person's hobbies. - :param initials (str) Person's initials. - :param instant_messengers (List[InstantMessengerAddress]) Person's instant messenger addresses. - :param job_title (str) Person's job title. - :param language (str) Language. - :param location (str) Person's location. - :param middle_name (str) Person's middle name. - :param nickname (str) Person's nickname. - :param notes (str) Notes. - :param notes_format (str) Defines format of a text. Enum, available values: Text, Html - :param office_location (str) Office location. - :param organizational_id_number (str) Contains an identifier for the mail user used within the mail user's organization. - :param phone_numbers (List[PhoneNumber]) Person's phone numbers. - :param photo (ContactPhoto) Person's photo. - :param physical_addresses (List[PostalAddress]) Person's physical addresses. - :param preferred_text_encoding (str) Encoding for all text properties. - :param prefix (str) A prefix of a full name such like Mr.(mister), Dr.(doctor) and so on. - :param profession (str) A job position of a person in a company. - :param suffix (str) A suffix of a full name such like Jr.(junior), Sr.(senior) and so on. - :param surname (str) Person's surname. - :param urls (List[Url]) Person's urls. + :param associated_persons: Associated persons. + :type associated_persons: List[AssociatedPerson] + :param attachments: Document attachments. + :type attachments: List[Attachment] + :param company_name: Company name. + :type company_name: str + :param computer_network_name: Computer network. + :type computer_network_name: str + :param customer_id: Customer id. + :type customer_id: str + :param department_name: Department name. + :type department_name: str + :param display_name: Display name. + :type display_name: str + :param email_addresses: Person's email addresses. + :type email_addresses: List[EmailAddress] + :param events: Person's events. + :type events: List[CustomerEvent] + :param file_as: A name used for sorting. + :type file_as: str + :param file_as_mapping: Specifies how to generate and recompute the value of the dispidFileAs property when other contact name properties change. Coincides MS-OXPROPS revision 16.2 from 7/31/2014. Enum, available values: Empty, DisplayName, FirstName, LastName, Organization, LastFirstMiddle, OrgLastFirstMiddle, LastFirstMiddleOrg, LastFirstMiddle2, LastFirstMiddle3, OrgLastFirstMiddle2, OrgLastFirstMiddle3, LastFirstMiddleOrg2, LastFirstMiddleOrg3, LastFirstMiddleGen, FirstMiddleLastGen, LastFirstMiddleGen2, BestMatch, AccordingToLocale, None + :type file_as_mapping: str + :param free_busy_location: URL path from which a client can retrieve free/busy information for the contact as an iCal file. + :type free_busy_location: str + :param gender: Enum defines gender of a person. Enum, available values: Unspecified, Female, Male + :type gender: str + :param given_name: Person's given name. + :type given_name: str + :param government_id_number: Government id number. + :type government_id_number: str + :param hobbies: Person's hobbies. + :type hobbies: str + :param initials: Person's initials. + :type initials: str + :param instant_messengers: Person's instant messenger addresses. + :type instant_messengers: List[InstantMessengerAddress] + :param job_title: Person's job title. + :type job_title: str + :param language: Language. + :type language: str + :param location: Person's location. + :type location: str + :param middle_name: Person's middle name. + :type middle_name: str + :param nickname: Person's nickname. + :type nickname: str + :param notes: Notes. + :type notes: str + :param notes_format: Defines format of a text. Enum, available values: Text, Html + :type notes_format: str + :param office_location: Office location. + :type office_location: str + :param organizational_id_number: Contains an identifier for the mail user used within the mail user's organization. + :type organizational_id_number: str + :param phone_numbers: Person's phone numbers. + :type phone_numbers: List[PhoneNumber] + :param photo: Person's photo. + :type photo: ContactPhoto + :param physical_addresses: Person's physical addresses. + :type physical_addresses: List[PostalAddress] + :param preferred_text_encoding: Encoding for all text properties. + :type preferred_text_encoding: str + :param prefix: A prefix of a full name such like Mr.(mister), Dr.(doctor) and so on. + :type prefix: str + :param profession: A job position of a person in a company. + :type profession: str + :param suffix: A suffix of a full name such like Jr.(junior), Sr.(senior) and so on. + :type suffix: str + :param surname: Person's surname. + :type surname: str + :param urls: Person's urls. + :type urls: List[Url] """ self._associated_persons = None @@ -281,10 +317,10 @@ def __init__(self, associated_persons: List[AssociatedPerson] = None, attachment if urls is not None: self.urls = urls + @property def associated_persons(self) -> List[AssociatedPerson]: - """Gets the associated_persons of this ContactDto. - + """ Associated persons. :return: The associated_persons of this ContactDto. @@ -294,8 +330,7 @@ def associated_persons(self) -> List[AssociatedPerson]: @associated_persons.setter def associated_persons(self, associated_persons: List[AssociatedPerson]): - """Sets the associated_persons of this ContactDto. - + """ Associated persons. :param associated_persons: The associated_persons of this ContactDto. @@ -305,8 +340,7 @@ def associated_persons(self, associated_persons: List[AssociatedPerson]): @property def attachments(self) -> List[Attachment]: - """Gets the attachments of this ContactDto. - + """ Document attachments. :return: The attachments of this ContactDto. @@ -316,8 +350,7 @@ def attachments(self) -> List[Attachment]: @attachments.setter def attachments(self, attachments: List[Attachment]): - """Sets the attachments of this ContactDto. - + """ Document attachments. :param attachments: The attachments of this ContactDto. @@ -327,8 +360,7 @@ def attachments(self, attachments: List[Attachment]): @property def company_name(self) -> str: - """Gets the company_name of this ContactDto. - + """ Company name. :return: The company_name of this ContactDto. @@ -338,8 +370,7 @@ def company_name(self) -> str: @company_name.setter def company_name(self, company_name: str): - """Sets the company_name of this ContactDto. - + """ Company name. :param company_name: The company_name of this ContactDto. @@ -349,8 +380,7 @@ def company_name(self, company_name: str): @property def computer_network_name(self) -> str: - """Gets the computer_network_name of this ContactDto. - + """ Computer network. :return: The computer_network_name of this ContactDto. @@ -360,8 +390,7 @@ def computer_network_name(self) -> str: @computer_network_name.setter def computer_network_name(self, computer_network_name: str): - """Sets the computer_network_name of this ContactDto. - + """ Computer network. :param computer_network_name: The computer_network_name of this ContactDto. @@ -371,8 +400,7 @@ def computer_network_name(self, computer_network_name: str): @property def customer_id(self) -> str: - """Gets the customer_id of this ContactDto. - + """ Customer id. :return: The customer_id of this ContactDto. @@ -382,8 +410,7 @@ def customer_id(self) -> str: @customer_id.setter def customer_id(self, customer_id: str): - """Sets the customer_id of this ContactDto. - + """ Customer id. :param customer_id: The customer_id of this ContactDto. @@ -393,8 +420,7 @@ def customer_id(self, customer_id: str): @property def department_name(self) -> str: - """Gets the department_name of this ContactDto. - + """ Department name. :return: The department_name of this ContactDto. @@ -404,8 +430,7 @@ def department_name(self) -> str: @department_name.setter def department_name(self, department_name: str): - """Sets the department_name of this ContactDto. - + """ Department name. :param department_name: The department_name of this ContactDto. @@ -415,8 +440,7 @@ def department_name(self, department_name: str): @property def display_name(self) -> str: - """Gets the display_name of this ContactDto. - + """ Display name. :return: The display_name of this ContactDto. @@ -426,8 +450,7 @@ def display_name(self) -> str: @display_name.setter def display_name(self, display_name: str): - """Sets the display_name of this ContactDto. - + """ Display name. :param display_name: The display_name of this ContactDto. @@ -437,8 +460,7 @@ def display_name(self, display_name: str): @property def email_addresses(self) -> List[EmailAddress]: - """Gets the email_addresses of this ContactDto. - + """ Person's email addresses. :return: The email_addresses of this ContactDto. @@ -448,8 +470,7 @@ def email_addresses(self) -> List[EmailAddress]: @email_addresses.setter def email_addresses(self, email_addresses: List[EmailAddress]): - """Sets the email_addresses of this ContactDto. - + """ Person's email addresses. :param email_addresses: The email_addresses of this ContactDto. @@ -459,8 +480,7 @@ def email_addresses(self, email_addresses: List[EmailAddress]): @property def events(self) -> List[CustomerEvent]: - """Gets the events of this ContactDto. - + """ Person's events. :return: The events of this ContactDto. @@ -470,8 +490,7 @@ def events(self) -> List[CustomerEvent]: @events.setter def events(self, events: List[CustomerEvent]): - """Sets the events of this ContactDto. - + """ Person's events. :param events: The events of this ContactDto. @@ -481,8 +500,7 @@ def events(self, events: List[CustomerEvent]): @property def file_as(self) -> str: - """Gets the file_as of this ContactDto. - + """ A name used for sorting. :return: The file_as of this ContactDto. @@ -492,8 +510,7 @@ def file_as(self) -> str: @file_as.setter def file_as(self, file_as: str): - """Sets the file_as of this ContactDto. - + """ A name used for sorting. :param file_as: The file_as of this ContactDto. @@ -503,8 +520,7 @@ def file_as(self, file_as: str): @property def file_as_mapping(self) -> str: - """Gets the file_as_mapping of this ContactDto. - + """ Specifies how to generate and recompute the value of the dispidFileAs property when other contact name properties change. Coincides MS-OXPROPS revision 16.2 from 7/31/2014. Enum, available values: Empty, DisplayName, FirstName, LastName, Organization, LastFirstMiddle, OrgLastFirstMiddle, LastFirstMiddleOrg, LastFirstMiddle2, LastFirstMiddle3, OrgLastFirstMiddle2, OrgLastFirstMiddle3, LastFirstMiddleOrg2, LastFirstMiddleOrg3, LastFirstMiddleGen, FirstMiddleLastGen, LastFirstMiddleGen2, BestMatch, AccordingToLocale, None :return: The file_as_mapping of this ContactDto. @@ -514,8 +530,7 @@ def file_as_mapping(self) -> str: @file_as_mapping.setter def file_as_mapping(self, file_as_mapping: str): - """Sets the file_as_mapping of this ContactDto. - + """ Specifies how to generate and recompute the value of the dispidFileAs property when other contact name properties change. Coincides MS-OXPROPS revision 16.2 from 7/31/2014. Enum, available values: Empty, DisplayName, FirstName, LastName, Organization, LastFirstMiddle, OrgLastFirstMiddle, LastFirstMiddleOrg, LastFirstMiddle2, LastFirstMiddle3, OrgLastFirstMiddle2, OrgLastFirstMiddle3, LastFirstMiddleOrg2, LastFirstMiddleOrg3, LastFirstMiddleGen, FirstMiddleLastGen, LastFirstMiddleGen2, BestMatch, AccordingToLocale, None :param file_as_mapping: The file_as_mapping of this ContactDto. @@ -527,8 +542,7 @@ def file_as_mapping(self, file_as_mapping: str): @property def free_busy_location(self) -> str: - """Gets the free_busy_location of this ContactDto. - + """ URL path from which a client can retrieve free/busy information for the contact as an iCal file. :return: The free_busy_location of this ContactDto. @@ -538,8 +552,7 @@ def free_busy_location(self) -> str: @free_busy_location.setter def free_busy_location(self, free_busy_location: str): - """Sets the free_busy_location of this ContactDto. - + """ URL path from which a client can retrieve free/busy information for the contact as an iCal file. :param free_busy_location: The free_busy_location of this ContactDto. @@ -549,8 +562,7 @@ def free_busy_location(self, free_busy_location: str): @property def gender(self) -> str: - """Gets the gender of this ContactDto. - + """ Enum defines gender of a person. Enum, available values: Unspecified, Female, Male :return: The gender of this ContactDto. @@ -560,8 +572,7 @@ def gender(self) -> str: @gender.setter def gender(self, gender: str): - """Sets the gender of this ContactDto. - + """ Enum defines gender of a person. Enum, available values: Unspecified, Female, Male :param gender: The gender of this ContactDto. @@ -573,8 +584,7 @@ def gender(self, gender: str): @property def given_name(self) -> str: - """Gets the given_name of this ContactDto. - + """ Person's given name. :return: The given_name of this ContactDto. @@ -584,8 +594,7 @@ def given_name(self) -> str: @given_name.setter def given_name(self, given_name: str): - """Sets the given_name of this ContactDto. - + """ Person's given name. :param given_name: The given_name of this ContactDto. @@ -595,8 +604,7 @@ def given_name(self, given_name: str): @property def government_id_number(self) -> str: - """Gets the government_id_number of this ContactDto. - + """ Government id number. :return: The government_id_number of this ContactDto. @@ -606,8 +614,7 @@ def government_id_number(self) -> str: @government_id_number.setter def government_id_number(self, government_id_number: str): - """Sets the government_id_number of this ContactDto. - + """ Government id number. :param government_id_number: The government_id_number of this ContactDto. @@ -617,8 +624,7 @@ def government_id_number(self, government_id_number: str): @property def hobbies(self) -> str: - """Gets the hobbies of this ContactDto. - + """ Person's hobbies. :return: The hobbies of this ContactDto. @@ -628,8 +634,7 @@ def hobbies(self) -> str: @hobbies.setter def hobbies(self, hobbies: str): - """Sets the hobbies of this ContactDto. - + """ Person's hobbies. :param hobbies: The hobbies of this ContactDto. @@ -639,8 +644,7 @@ def hobbies(self, hobbies: str): @property def initials(self) -> str: - """Gets the initials of this ContactDto. - + """ Person's initials. :return: The initials of this ContactDto. @@ -650,8 +654,7 @@ def initials(self) -> str: @initials.setter def initials(self, initials: str): - """Sets the initials of this ContactDto. - + """ Person's initials. :param initials: The initials of this ContactDto. @@ -661,8 +664,7 @@ def initials(self, initials: str): @property def instant_messengers(self) -> List[InstantMessengerAddress]: - """Gets the instant_messengers of this ContactDto. - + """ Person's instant messenger addresses. :return: The instant_messengers of this ContactDto. @@ -672,8 +674,7 @@ def instant_messengers(self) -> List[InstantMessengerAddress]: @instant_messengers.setter def instant_messengers(self, instant_messengers: List[InstantMessengerAddress]): - """Sets the instant_messengers of this ContactDto. - + """ Person's instant messenger addresses. :param instant_messengers: The instant_messengers of this ContactDto. @@ -683,8 +684,7 @@ def instant_messengers(self, instant_messengers: List[InstantMessengerAddress]): @property def job_title(self) -> str: - """Gets the job_title of this ContactDto. - + """ Person's job title. :return: The job_title of this ContactDto. @@ -694,8 +694,7 @@ def job_title(self) -> str: @job_title.setter def job_title(self, job_title: str): - """Sets the job_title of this ContactDto. - + """ Person's job title. :param job_title: The job_title of this ContactDto. @@ -705,8 +704,7 @@ def job_title(self, job_title: str): @property def language(self) -> str: - """Gets the language of this ContactDto. - + """ Language. :return: The language of this ContactDto. @@ -716,8 +714,7 @@ def language(self) -> str: @language.setter def language(self, language: str): - """Sets the language of this ContactDto. - + """ Language. :param language: The language of this ContactDto. @@ -727,8 +724,7 @@ def language(self, language: str): @property def location(self) -> str: - """Gets the location of this ContactDto. - + """ Person's location. :return: The location of this ContactDto. @@ -738,8 +734,7 @@ def location(self) -> str: @location.setter def location(self, location: str): - """Sets the location of this ContactDto. - + """ Person's location. :param location: The location of this ContactDto. @@ -749,8 +744,7 @@ def location(self, location: str): @property def middle_name(self) -> str: - """Gets the middle_name of this ContactDto. - + """ Person's middle name. :return: The middle_name of this ContactDto. @@ -760,8 +754,7 @@ def middle_name(self) -> str: @middle_name.setter def middle_name(self, middle_name: str): - """Sets the middle_name of this ContactDto. - + """ Person's middle name. :param middle_name: The middle_name of this ContactDto. @@ -771,8 +764,7 @@ def middle_name(self, middle_name: str): @property def nickname(self) -> str: - """Gets the nickname of this ContactDto. - + """ Person's nickname. :return: The nickname of this ContactDto. @@ -782,8 +774,7 @@ def nickname(self) -> str: @nickname.setter def nickname(self, nickname: str): - """Sets the nickname of this ContactDto. - + """ Person's nickname. :param nickname: The nickname of this ContactDto. @@ -793,8 +784,7 @@ def nickname(self, nickname: str): @property def notes(self) -> str: - """Gets the notes of this ContactDto. - + """ Notes. :return: The notes of this ContactDto. @@ -804,8 +794,7 @@ def notes(self) -> str: @notes.setter def notes(self, notes: str): - """Sets the notes of this ContactDto. - + """ Notes. :param notes: The notes of this ContactDto. @@ -815,8 +804,7 @@ def notes(self, notes: str): @property def notes_format(self) -> str: - """Gets the notes_format of this ContactDto. - + """ Defines format of a text. Enum, available values: Text, Html :return: The notes_format of this ContactDto. @@ -826,8 +814,7 @@ def notes_format(self) -> str: @notes_format.setter def notes_format(self, notes_format: str): - """Sets the notes_format of this ContactDto. - + """ Defines format of a text. Enum, available values: Text, Html :param notes_format: The notes_format of this ContactDto. @@ -839,8 +826,7 @@ def notes_format(self, notes_format: str): @property def office_location(self) -> str: - """Gets the office_location of this ContactDto. - + """ Office location. :return: The office_location of this ContactDto. @@ -850,8 +836,7 @@ def office_location(self) -> str: @office_location.setter def office_location(self, office_location: str): - """Sets the office_location of this ContactDto. - + """ Office location. :param office_location: The office_location of this ContactDto. @@ -861,8 +846,7 @@ def office_location(self, office_location: str): @property def organizational_id_number(self) -> str: - """Gets the organizational_id_number of this ContactDto. - + """ Contains an identifier for the mail user used within the mail user's organization. :return: The organizational_id_number of this ContactDto. @@ -872,8 +856,7 @@ def organizational_id_number(self) -> str: @organizational_id_number.setter def organizational_id_number(self, organizational_id_number: str): - """Sets the organizational_id_number of this ContactDto. - + """ Contains an identifier for the mail user used within the mail user's organization. :param organizational_id_number: The organizational_id_number of this ContactDto. @@ -883,8 +866,7 @@ def organizational_id_number(self, organizational_id_number: str): @property def phone_numbers(self) -> List[PhoneNumber]: - """Gets the phone_numbers of this ContactDto. - + """ Person's phone numbers. :return: The phone_numbers of this ContactDto. @@ -894,8 +876,7 @@ def phone_numbers(self) -> List[PhoneNumber]: @phone_numbers.setter def phone_numbers(self, phone_numbers: List[PhoneNumber]): - """Sets the phone_numbers of this ContactDto. - + """ Person's phone numbers. :param phone_numbers: The phone_numbers of this ContactDto. @@ -905,8 +886,7 @@ def phone_numbers(self, phone_numbers: List[PhoneNumber]): @property def photo(self) -> ContactPhoto: - """Gets the photo of this ContactDto. - + """ Person's photo. :return: The photo of this ContactDto. @@ -916,8 +896,7 @@ def photo(self) -> ContactPhoto: @photo.setter def photo(self, photo: ContactPhoto): - """Sets the photo of this ContactDto. - + """ Person's photo. :param photo: The photo of this ContactDto. @@ -927,8 +906,7 @@ def photo(self, photo: ContactPhoto): @property def physical_addresses(self) -> List[PostalAddress]: - """Gets the physical_addresses of this ContactDto. - + """ Person's physical addresses. :return: The physical_addresses of this ContactDto. @@ -938,8 +916,7 @@ def physical_addresses(self) -> List[PostalAddress]: @physical_addresses.setter def physical_addresses(self, physical_addresses: List[PostalAddress]): - """Sets the physical_addresses of this ContactDto. - + """ Person's physical addresses. :param physical_addresses: The physical_addresses of this ContactDto. @@ -949,8 +926,7 @@ def physical_addresses(self, physical_addresses: List[PostalAddress]): @property def preferred_text_encoding(self) -> str: - """Gets the preferred_text_encoding of this ContactDto. - + """ Encoding for all text properties. :return: The preferred_text_encoding of this ContactDto. @@ -960,8 +936,7 @@ def preferred_text_encoding(self) -> str: @preferred_text_encoding.setter def preferred_text_encoding(self, preferred_text_encoding: str): - """Sets the preferred_text_encoding of this ContactDto. - + """ Encoding for all text properties. :param preferred_text_encoding: The preferred_text_encoding of this ContactDto. @@ -971,8 +946,7 @@ def preferred_text_encoding(self, preferred_text_encoding: str): @property def prefix(self) -> str: - """Gets the prefix of this ContactDto. - + """ A prefix of a full name such like Mr.(mister), Dr.(doctor) and so on. :return: The prefix of this ContactDto. @@ -982,8 +956,7 @@ def prefix(self) -> str: @prefix.setter def prefix(self, prefix: str): - """Sets the prefix of this ContactDto. - + """ A prefix of a full name such like Mr.(mister), Dr.(doctor) and so on. :param prefix: The prefix of this ContactDto. @@ -993,8 +966,7 @@ def prefix(self, prefix: str): @property def profession(self) -> str: - """Gets the profession of this ContactDto. - + """ A job position of a person in a company. :return: The profession of this ContactDto. @@ -1004,8 +976,7 @@ def profession(self) -> str: @profession.setter def profession(self, profession: str): - """Sets the profession of this ContactDto. - + """ A job position of a person in a company. :param profession: The profession of this ContactDto. @@ -1015,8 +986,7 @@ def profession(self, profession: str): @property def suffix(self) -> str: - """Gets the suffix of this ContactDto. - + """ A suffix of a full name such like Jr.(junior), Sr.(senior) and so on. :return: The suffix of this ContactDto. @@ -1026,8 +996,7 @@ def suffix(self) -> str: @suffix.setter def suffix(self, suffix: str): - """Sets the suffix of this ContactDto. - + """ A suffix of a full name such like Jr.(junior), Sr.(senior) and so on. :param suffix: The suffix of this ContactDto. @@ -1037,8 +1006,7 @@ def suffix(self, suffix: str): @property def surname(self) -> str: - """Gets the surname of this ContactDto. - + """ Person's surname. :return: The surname of this ContactDto. @@ -1048,8 +1016,7 @@ def surname(self) -> str: @surname.setter def surname(self, surname: str): - """Sets the surname of this ContactDto. - + """ Person's surname. :param surname: The surname of this ContactDto. @@ -1059,8 +1026,7 @@ def surname(self, surname: str): @property def urls(self) -> List[Url]: - """Gets the urls of this ContactDto. - + """ Person's urls. :return: The urls of this ContactDto. @@ -1070,8 +1036,7 @@ def urls(self) -> List[Url]: @urls.setter def urls(self, urls: List[Url]): - """Sets the urls of this ContactDto. - + """ Person's urls. :param urls: The urls of this ContactDto. diff --git a/sdk/AsposeEmailCloudSdk/models/contact_from_file_request.py b/sdk/AsposeEmailCloudSdk/models/contact_from_file_request.py new file mode 100644 index 0000000..de0145b --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/contact_from_file_request.py @@ -0,0 +1,53 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class ContactFromFileRequest(object): + """ + Request model for contact_from_file operation. + Initializes a new instance. + + :param format: File format Enum, available values: VCard, WebDav, Msg + :type format: str + :param file: File to convert + :type file: str + """ + + def __init__(self, format: str, file: str): + """ + Request model for contact_from_file operation. + Initializes a new instance. + + :param format: File format Enum, available values: VCard, WebDav, Msg + :type format: str + :param file: File to convert + :type file: str + """ + + self.format = format + self.file = file diff --git a/sdk/AsposeEmailCloudSdk/models/contact_get_as_file_request.py b/sdk/AsposeEmailCloudSdk/models/contact_get_as_file_request.py new file mode 100644 index 0000000..231ddf6 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/contact_get_as_file_request.py @@ -0,0 +1,68 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class ContactGetAsFileRequest(object): + """ + Request model for contact_get_as_file operation. + Initializes a new instance. + + :param file_name: Calendar document file name + :type file_name: str + :param to_format: File format Enum, available values: VCard, WebDav, Msg + :type to_format: str + :param from_format: File format to convert from Enum, available values: VCard, WebDav, Msg + :type from_format: str + :param storage: Storage name + :type storage: str + :param folder: Path to folder in storage + :type folder: str + """ + + def __init__(self, file_name: str, to_format: str, from_format: str, storage: str = None, folder: str = None): + """ + Request model for contact_get_as_file operation. + Initializes a new instance. + + :param file_name: Calendar document file name + :type file_name: str + :param to_format: File format Enum, available values: VCard, WebDav, Msg + :type to_format: str + :param from_format: File format to convert from Enum, available values: VCard, WebDav, Msg + :type from_format: str + :param storage: Storage name + :type storage: str + :param folder: Path to folder in storage + :type folder: str + """ + + self.file_name = file_name + self.to_format = to_format + self.from_format = from_format + self.storage = storage + self.folder = folder diff --git a/sdk/AsposeEmailCloudSdk/models/contact_get_list_request.py b/sdk/AsposeEmailCloudSdk/models/contact_get_list_request.py new file mode 100644 index 0000000..4076045 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/contact_get_list_request.py @@ -0,0 +1,69 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class ContactGetListRequest(object): + """ + Request model for contact_get_list operation. + Initializes a new instance. + + :param format: Contact document format. Enum, available values: VCard, WebDav, Msg + :type format: str + :param folder: Path to folder in storage. + :type folder: str + :param storage: Storage name. + :type storage: str + :param items_per_page: Count of items on page. + :type items_per_page: int + :param page_number: Page number. + :type page_number: int + """ + + def __init__(self, format: str, folder: str = None, storage: str = None, items_per_page: int = None, page_number: int = None): + """ + Request model for contact_get_list operation. + Initializes a new instance. + + :param format: Contact document format. Enum, available values: VCard, WebDav, Msg + :type format: str + :param folder: Path to folder in storage. + :type folder: str + :param storage: Storage name. + :type storage: str + :param items_per_page: Count of items on page. + :type items_per_page: int + :param page_number: Page number. + :type page_number: int + """ + + self.format = format + self.folder = folder + self.storage = storage + self.items_per_page = items_per_page + self.page_number = page_number + diff --git a/sdk/AsposeEmailCloudSdk/models/contact_get_request.py b/sdk/AsposeEmailCloudSdk/models/contact_get_request.py new file mode 100644 index 0000000..8bdc6fc --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/contact_get_request.py @@ -0,0 +1,63 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class ContactGetRequest(object): + """ + Request model for contact_get operation. + Initializes a new instance. + + :param format: Contact document format. Enum, available values: VCard, WebDav, Msg + :type format: str + :param file_name: Contact document file name. + :type file_name: str + :param folder: Path to folder in storage. + :type folder: str + :param storage: Storage name. + :type storage: str + """ + + def __init__(self, format: str, file_name: str, folder: str = None, storage: str = None): + """ + Request model for contact_get operation. + Initializes a new instance. + + :param format: Contact document format. Enum, available values: VCard, WebDav, Msg + :type format: str + :param file_name: Contact document file name. + :type file_name: str + :param folder: Path to folder in storage. + :type folder: str + :param storage: Storage name. + :type storage: str + """ + + self.format = format + self.file_name = file_name + self.folder = folder + self.storage = storage diff --git a/sdk/AsposeEmailCloudSdk/models/contact_list.py b/sdk/AsposeEmailCloudSdk/models/contact_list.py new file mode 100644 index 0000000..e2b86e6 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/contact_list.py @@ -0,0 +1,109 @@ +# 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.contact_dto import ContactDto +from AsposeEmailCloudSdk.models.list_response_of_contact_dto import ListResponseOfContactDto + + +class ContactList(ListResponseOfContactDto): + """List of VCard documents + """ + + """ + 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[ContactDto]' + } + + attribute_map = { + 'value': 'value' + } + + def __init__(self, value: List[ContactDto] = None): + """ + List of VCard documents + :param value: + :type value: List[ContactDto] + """ + super(ContactList, 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, ContactList): + 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/contact_photo.py b/sdk/AsposeEmailCloudSdk/models/contact_photo.py index 3d4072a..e49d46a 100644 --- a/sdk/AsposeEmailCloudSdk/models/contact_photo.py +++ b/sdk/AsposeEmailCloudSdk/models/contact_photo.py @@ -54,29 +54,27 @@ class ContactPhoto(object): 'discriminator': 'discriminator' } - def __init__(self, photo_image_format: str = None, base64_data: str = None, discriminator: str = None): + def __init__(self, photo_image_format: str = None, base64_data: str = None): """ Person's photo. - :param photo_image_format (str) MapiContact photo image format. Enum, available values: Undefined, Jpeg, Gif, Wmf, Bmp, Tiff - :param base64_data (str) Photo serialized as base64 string. - :param discriminator (str) + :param photo_image_format: MapiContact photo image format. Enum, available values: Undefined, Jpeg, Gif, Wmf, Bmp, Tiff + :type photo_image_format: str + :param base64_data: Photo serialized as base64 string. + :type base64_data: str """ self._photo_image_format = None self._base64_data = None - self._discriminator = self.__class__.__name__ if photo_image_format is not None: self.photo_image_format = photo_image_format if base64_data is not None: self.base64_data = base64_data - if discriminator is not None: - self.discriminator = discriminator + @property def photo_image_format(self) -> str: - """Gets the photo_image_format of this ContactPhoto. - + """ MapiContact photo image format. Enum, available values: Undefined, Jpeg, Gif, Wmf, Bmp, Tiff :return: The photo_image_format of this ContactPhoto. @@ -86,8 +84,7 @@ def photo_image_format(self) -> str: @photo_image_format.setter def photo_image_format(self, photo_image_format: str): - """Sets the photo_image_format of this ContactPhoto. - + """ MapiContact photo image format. Enum, available values: Undefined, Jpeg, Gif, Wmf, Bmp, Tiff :param photo_image_format: The photo_image_format of this ContactPhoto. @@ -99,8 +96,7 @@ def photo_image_format(self, photo_image_format: str): @property def base64_data(self) -> str: - """Gets the base64_data of this ContactPhoto. - + """ Photo serialized as base64 string. :return: The base64_data of this ContactPhoto. @@ -110,19 +106,22 @@ def base64_data(self) -> str: @base64_data.setter def base64_data(self, base64_data: str): - """Sets the base64_data of this ContactPhoto. - + """ Photo serialized as base64 string. :param base64_data: The base64_data of this ContactPhoto. :type: str """ + if base64_data is None: + raise ValueError("Invalid value for `base64_data`, must not be `None`") + if base64_data is not None and len(base64_data) < 1: + raise ValueError("Invalid value for `base64_data`, length must be greater than or equal to `1`") self._base64_data = base64_data @property def discriminator(self) -> str: - """Gets the discriminator of this ContactPhoto. - + """ + Gets the discriminator of this ContactPhoto. :return: The discriminator of this ContactPhoto. :rtype: str @@ -131,15 +130,13 @@ def discriminator(self) -> str: @discriminator.setter def discriminator(self, discriminator: str): - """Sets the discriminator of this ContactPhoto. - + """ + Sets the discriminator of this ContactPhoto. :param discriminator: The discriminator of this ContactPhoto. :type: str """ - if discriminator is None: - raise ValueError("Invalid value for `discriminator`, must not be `None`") - self._discriminator = self.__class__.__name__ + pass # setter is ignored for discriminator property def to_dict(self): """Returns the model properties as a dict""" diff --git a/sdk/AsposeEmailCloudSdk/models/contact_save_request.py b/sdk/AsposeEmailCloudSdk/models/contact_save_request.py new file mode 100644 index 0000000..8c33846 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/contact_save_request.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.contact_dto import ContactDto +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation +from AsposeEmailCloudSdk.models.storage_model_of_contact_dto import StorageModelOfContactDto + + +class ContactSaveRequest(StorageModelOfContactDto): + """Contact save to storage 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 = { + 'storage_file': 'StorageFileLocation', + 'value': 'ContactDto', + 'format': 'str' + } + + attribute_map = { + 'storage_file': 'storageFile', + 'value': 'value', + 'format': 'format' + } + + def __init__(self, storage_file: StorageFileLocation = None, value: ContactDto = None, format: str = None): + """ + Contact save to storage request + :param storage_file: + :type storage_file: StorageFileLocation + :param value: + :type value: ContactDto + :param format: Enumerates contact formats. Enum, available values: VCard, WebDav, Msg + :type format: str + """ + super(ContactSaveRequest, self).__init__() + + self._format = None + + if storage_file is not None: + self.storage_file = storage_file + if value is not None: + self.value = value + if format is not None: + self.format = format + + + @property + def format(self) -> str: + """ + Enumerates contact formats. Enum, available values: VCard, WebDav, Msg + + :return: The format of this ContactSaveRequest. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format: str): + """ + Enumerates contact formats. Enum, available values: VCard, WebDav, Msg + + :param format: The format of this ContactSaveRequest. + :type: str + """ + if format is None: + raise ValueError("Invalid value for `format`, must not be `None`") + self._format = format + + 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, ContactSaveRequest): + 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/contact_dto_list.py b/sdk/AsposeEmailCloudSdk/models/contact_storage_list.py similarity index 88% rename from sdk/AsposeEmailCloudSdk/models/contact_dto_list.py rename to sdk/AsposeEmailCloudSdk/models/contact_storage_list.py index 1f75d68..57799f8 100644 --- a/sdk/AsposeEmailCloudSdk/models/contact_dto_list.py +++ b/sdk/AsposeEmailCloudSdk/models/contact_storage_list.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -34,8 +34,8 @@ from AsposeEmailCloudSdk.models.storage_model_of_contact_dto import StorageModelOfContactDto -class ContactDtoList(ListResponseOfStorageModelOfContactDto): - """List of contact documents +class ContactStorageList(ListResponseOfStorageModelOfContactDto): + """Contact models list with corresponding storage locations. """ """ @@ -55,14 +55,16 @@ class ContactDtoList(ListResponseOfStorageModelOfContactDto): def __init__(self, value: List[StorageModelOfContactDto] = None): """ - List of contact documents - :param value (List[StorageModelOfContactDto]) + Contact models list with corresponding storage locations. + :param value: + :type value: List[StorageModelOfContactDto] """ - super(ContactDtoList, self).__init__() + super(ContactStorageList, self).__init__() if value is not None: self.value = value + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -97,7 +99,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ContactDtoList): + if not isinstance(other, ContactStorageList): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/content_type.py b/sdk/AsposeEmailCloudSdk/models/content_type.py index 08eb45d..d012986 100644 --- a/sdk/AsposeEmailCloudSdk/models/content_type.py +++ b/sdk/AsposeEmailCloudSdk/models/content_type.py @@ -63,11 +63,16 @@ class ContentType(object): def __init__(self, boundary: str = None, char_set: str = None, media_type: str = None, name: str = None, parameters: List[ContentTypeParameter] = None): """ Represents a Content-Type header. - :param boundary (str) The boundary parameter included in the Content-Type header. - :param char_set (str) CharSet parameter. - :param media_type (str) The internet media type. - :param name (str) Name parameter. - :param parameters (List[ContentTypeParameter]) Full list of parameters + :param boundary: The boundary parameter included in the Content-Type header. + :type boundary: str + :param char_set: CharSet parameter. + :type char_set: str + :param media_type: The internet media type. + :type media_type: str + :param name: Name parameter. + :type name: str + :param parameters: Full list of parameters + :type parameters: List[ContentTypeParameter] """ self._boundary = None @@ -87,10 +92,10 @@ def __init__(self, boundary: str = None, char_set: str = None, media_type: str = if parameters is not None: self.parameters = parameters + @property def boundary(self) -> str: - """Gets the boundary of this ContentType. - + """ The boundary parameter included in the Content-Type header. :return: The boundary of this ContentType. @@ -100,8 +105,7 @@ def boundary(self) -> str: @boundary.setter def boundary(self, boundary: str): - """Sets the boundary of this ContentType. - + """ The boundary parameter included in the Content-Type header. :param boundary: The boundary of this ContentType. @@ -111,8 +115,7 @@ def boundary(self, boundary: str): @property def char_set(self) -> str: - """Gets the char_set of this ContentType. - + """ CharSet parameter. :return: The char_set of this ContentType. @@ -122,8 +125,7 @@ def char_set(self) -> str: @char_set.setter def char_set(self, char_set: str): - """Sets the char_set of this ContentType. - + """ CharSet parameter. :param char_set: The char_set of this ContentType. @@ -133,8 +135,7 @@ def char_set(self, char_set: str): @property def media_type(self) -> str: - """Gets the media_type of this ContentType. - + """ The internet media type. :return: The media_type of this ContentType. @@ -144,8 +145,7 @@ def media_type(self) -> str: @media_type.setter def media_type(self, media_type: str): - """Sets the media_type of this ContentType. - + """ The internet media type. :param media_type: The media_type of this ContentType. @@ -155,8 +155,7 @@ def media_type(self, media_type: str): @property def name(self) -> str: - """Gets the name of this ContentType. - + """ Name parameter. :return: The name of this ContentType. @@ -166,8 +165,7 @@ def name(self) -> str: @name.setter def name(self, name: str): - """Sets the name of this ContentType. - + """ Name parameter. :param name: The name of this ContentType. @@ -177,8 +175,7 @@ def name(self, name: str): @property def parameters(self) -> List[ContentTypeParameter]: - """Gets the parameters of this ContentType. - + """ Full list of parameters :return: The parameters of this ContentType. @@ -188,8 +185,7 @@ def parameters(self) -> List[ContentTypeParameter]: @parameters.setter def parameters(self, parameters: List[ContentTypeParameter]): - """Sets the parameters of this ContentType. - + """ Full list of parameters :param parameters: The parameters of this ContentType. diff --git a/sdk/AsposeEmailCloudSdk/models/content_type_parameter.py b/sdk/AsposeEmailCloudSdk/models/content_type_parameter.py index 7e1bf1a..ddabbb4 100644 --- a/sdk/AsposeEmailCloudSdk/models/content_type_parameter.py +++ b/sdk/AsposeEmailCloudSdk/models/content_type_parameter.py @@ -55,8 +55,10 @@ class ContentTypeParameter(object): def __init__(self, name: str = None, value: str = None): """ Content-Type header parameter - :param name (str) Parameter name - :param value (str) Parameter value + :param name: Parameter name + :type name: str + :param value: Parameter value + :type value: str """ self._name = None @@ -67,10 +69,10 @@ def __init__(self, name: str = None, value: str = None): if value is not None: self.value = value + @property def name(self) -> str: - """Gets the name of this ContentTypeParameter. - + """ Parameter name :return: The name of this ContentTypeParameter. @@ -80,8 +82,7 @@ def name(self) -> str: @name.setter def name(self, name: str): - """Sets the name of this ContentTypeParameter. - + """ Parameter name :param name: The name of this ContentTypeParameter. @@ -91,8 +92,7 @@ def name(self, name: str): @property def value(self) -> str: - """Gets the value of this ContentTypeParameter. - + """ Parameter value :return: The value of this ContentTypeParameter. @@ -102,8 +102,7 @@ def value(self) -> str: @value.setter def value(self, value: str): - """Sets the value of this ContentTypeParameter. - + """ Parameter value :param value: The value of this ContentTypeParameter. diff --git a/sdk/AsposeEmailCloudSdk/models/copy_file_request.py b/sdk/AsposeEmailCloudSdk/models/copy_file_request.py new file mode 100644 index 0000000..37f890b --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/copy_file_request.py @@ -0,0 +1,68 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class CopyFileRequest(object): + """ + Request model for copy_file operation. + Initializes a new instance. + + :param src_path: Source file path e.g. '/folder/file.ext' + :type src_path: str + :param dest_path: Destination file path + :type dest_path: str + :param src_storage_name: Source storage name + :type src_storage_name: str + :param dest_storage_name: Destination storage name + :type dest_storage_name: str + :param version_id: File version ID to copy + :type 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): + """ + Request model for copy_file operation. + Initializes a new instance. + + :param src_path: Source file path e.g. '/folder/file.ext' + :type src_path: str + :param dest_path: Destination file path + :type dest_path: str + :param src_storage_name: Source storage name + :type src_storage_name: str + :param dest_storage_name: Destination storage name + :type dest_storage_name: str + :param version_id: File version ID to copy + :type version_id: str + """ + + self.src_path = src_path + self.dest_path = dest_path + self.src_storage_name = src_storage_name + self.dest_storage_name = dest_storage_name + self.version_id = version_id diff --git a/sdk/AsposeEmailCloudSdk/models/copy_folder_request.py b/sdk/AsposeEmailCloudSdk/models/copy_folder_request.py new file mode 100644 index 0000000..4e4cf1c --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/copy_folder_request.py @@ -0,0 +1,63 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class CopyFolderRequest(object): + """ + Request model for copy_folder operation. + Initializes a new instance. + + :param src_path: Source folder path e.g. '/src' + :type src_path: str + :param dest_path: Destination folder path e.g. '/dst' + :type dest_path: str + :param src_storage_name: Source storage name + :type src_storage_name: str + :param dest_storage_name: Destination storage name + :type dest_storage_name: str + """ + + def __init__(self, src_path: str, dest_path: str, src_storage_name: str = None, dest_storage_name: str = None): + """ + Request model for copy_folder operation. + Initializes a new instance. + + :param src_path: Source folder path e.g. '/src' + :type src_path: str + :param dest_path: Destination folder path e.g. '/dst' + :type dest_path: str + :param src_storage_name: Source storage name + :type src_storage_name: str + :param dest_storage_name: Destination storage name + :type dest_storage_name: str + """ + + self.src_path = src_path + self.dest_path = dest_path + self.src_storage_name = src_storage_name + self.dest_storage_name = dest_storage_name diff --git a/sdk/AsposeEmailCloudSdk/models/create_email_request.py b/sdk/AsposeEmailCloudSdk/models/create_email_request.py deleted file mode 100644 index 68b2b2b..0000000 --- a/sdk/AsposeEmailCloudSdk/models/create_email_request.py +++ /dev/null @@ -1,160 +0,0 @@ -# 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_document import EmailDocument -from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation - - -class CreateEmailRequest(object): - """Create email document 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 = { - 'email_document': 'EmailDocument', - 'storage_folder': 'StorageFolderLocation' - } - - attribute_map = { - 'email_document': 'emailDocument', - 'storage_folder': 'storageFolder' - } - - def __init__(self, email_document: EmailDocument = None, storage_folder: StorageFolderLocation = None): - """ - Create email document request - :param email_document (EmailDocument) An email document that should be created - :param storage_folder (StorageFolderLocation) Email document location in storage - """ - - self._email_document = None - self._storage_folder = None - - if email_document is not None: - self.email_document = email_document - if storage_folder is not None: - self.storage_folder = storage_folder - - @property - def email_document(self) -> EmailDocument: - """Gets the email_document of this CreateEmailRequest. - - An email document that should be created - - :return: The email_document of this CreateEmailRequest. - :rtype: EmailDocument - """ - return self._email_document - - @email_document.setter - def email_document(self, email_document: EmailDocument): - """Sets the email_document of this CreateEmailRequest. - - An email document that should be created - - :param email_document: The email_document of this CreateEmailRequest. - :type: EmailDocument - """ - if email_document is None: - raise ValueError("Invalid value for `email_document`, must not be `None`") - self._email_document = email_document - - @property - def storage_folder(self) -> StorageFolderLocation: - """Gets the storage_folder of this CreateEmailRequest. - - Email document location in storage - - :return: The storage_folder of this CreateEmailRequest. - :rtype: StorageFolderLocation - """ - return self._storage_folder - - @storage_folder.setter - def storage_folder(self, storage_folder: StorageFolderLocation): - """Sets the storage_folder of this CreateEmailRequest. - - Email document location in storage - - :param storage_folder: The storage_folder of this CreateEmailRequest. - :type: StorageFolderLocation - """ - self._storage_folder = storage_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, CreateEmailRequest): - 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/create_folder_request.py b/sdk/AsposeEmailCloudSdk/models/create_folder_request.py new file mode 100644 index 0000000..10bb3c3 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/create_folder_request.py @@ -0,0 +1,53 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class CreateFolderRequest(object): + """ + Request model for create_folder operation. + Initializes a new instance. + + :param path: Folder path to create e.g. 'folder_1/folder_2/' + :type path: str + :param storage_name: Storage name + :type storage_name: str + """ + + def __init__(self, path: str, storage_name: str = None): + """ + Request model for create_folder operation. + Initializes a new instance. + + :param path: Folder path to create e.g. 'folder_1/folder_2/' + :type path: str + :param storage_name: Storage name + :type storage_name: str + """ + + self.path = path + self.storage_name = storage_name diff --git a/sdk/AsposeEmailCloudSdk/models/customer_event.py b/sdk/AsposeEmailCloudSdk/models/customer_event.py index ac4bc0b..985a3aa 100644 --- a/sdk/AsposeEmailCloudSdk/models/customer_event.py +++ b/sdk/AsposeEmailCloudSdk/models/customer_event.py @@ -57,8 +57,10 @@ class CustomerEvent(object): def __init__(self, category: EnumWithCustomOfEventCategory = None, _date: datetime = None): """ Event. - :param category (EnumWithCustomOfEventCategory) Event category. - :param _date (datetime) Event date. + :param category: Event category. + :type category: EnumWithCustomOfEventCategory + :param _date: Event date. + :type _date: datetime """ self._category = None @@ -69,10 +71,10 @@ def __init__(self, category: EnumWithCustomOfEventCategory = None, _date: dateti if _date is not None: self._date = _date + @property def category(self) -> EnumWithCustomOfEventCategory: - """Gets the category of this CustomerEvent. - + """ Event category. :return: The category of this CustomerEvent. @@ -82,8 +84,7 @@ def category(self) -> EnumWithCustomOfEventCategory: @category.setter def category(self, category: EnumWithCustomOfEventCategory): - """Sets the category of this CustomerEvent. - + """ Event category. :param category: The category of this CustomerEvent. @@ -93,8 +94,7 @@ def category(self, category: EnumWithCustomOfEventCategory): @property def _date(self) -> datetime: - """Gets the _date of this CustomerEvent. - + """ Event date. :return: The _date of this CustomerEvent. @@ -104,8 +104,7 @@ def _date(self) -> datetime: @_date.setter def _date(self, _date: datetime): - """Sets the _date of this CustomerEvent. - + """ Event date. :param _date: The _date of this CustomerEvent. diff --git a/sdk/AsposeEmailCloudSdk/models/daily_recurrence_pattern_dto.py b/sdk/AsposeEmailCloudSdk/models/daily_recurrence_pattern_dto.py index 6feba9a..41f7db5 100644 --- a/sdk/AsposeEmailCloudSdk/models/daily_recurrence_pattern_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/daily_recurrence_pattern_dto.py @@ -60,14 +60,17 @@ class DailyRecurrencePatternDto(RecurrencePatternDto): 'discriminator': 'discriminator' } - def __init__(self, interval: int = None, occurs: int = None, end_date: datetime = None, week_start: str = None, discriminator: str = None): + def __init__(self, interval: int = None, occurs: int = None, end_date: datetime = None, week_start: str = None): """ Daily recurrence. - :param interval (int) Number of recurrence units. - :param occurs (int) Number of occurrences of the recurrence pattern. - :param end_date (datetime) End date. - :param week_start (str) Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay - :param discriminator (str) + :param interval: Number of recurrence units. + :type interval: int + :param occurs: Number of occurrences of the recurrence pattern. + :type occurs: int + :param end_date: End date. + :type end_date: datetime + :param week_start: Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay + :type week_start: str """ super(DailyRecurrencePatternDto, self).__init__() @@ -79,8 +82,7 @@ def __init__(self, interval: int = None, occurs: int = None, end_date: datetime self.end_date = end_date if week_start is not None: self.week_start = week_start - if discriminator is not None: - self.discriminator = discriminator + def to_dict(self): """Returns the model properties as a dict""" diff --git a/sdk/AsposeEmailCloudSdk/models/delete_file_request.py b/sdk/AsposeEmailCloudSdk/models/delete_file_request.py new file mode 100644 index 0000000..8584eae --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/delete_file_request.py @@ -0,0 +1,58 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class DeleteFileRequest(object): + """ + Request model for delete_file operation. + Initializes a new instance. + + :param path: File path e.g. '/folder/file.ext' + :type path: str + :param storage_name: Storage name + :type storage_name: str + :param version_id: File version ID to delete + :type version_id: str + """ + + 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: File path e.g. '/folder/file.ext' + :type path: str + :param storage_name: Storage name + :type storage_name: str + :param version_id: File version ID to delete + :type version_id: str + """ + + self.path = path + self.storage_name = storage_name + self.version_id = version_id diff --git a/sdk/AsposeEmailCloudSdk/models/delete_folder_base_request.py b/sdk/AsposeEmailCloudSdk/models/delete_folder_base_request.py deleted file mode 100644 index 6a699e1..0000000 --- a/sdk/AsposeEmailCloudSdk/models/delete_folder_base_request.py +++ /dev/null @@ -1,180 +0,0 @@ -# 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 DeleteFolderBaseRequest(AccountBaseRequest): - """Delete folder 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', - 'delete_permanently': 'bool' - } - - attribute_map = { - 'first_account': 'firstAccount', - 'second_account': 'secondAccount', - 'storage_folder': 'storageFolder', - 'folder': 'folder', - 'delete_permanently': 'deletePermanently' - } - - 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 - :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 - """ - super(DeleteFolderBaseRequest, self).__init__() - - self._folder = None - self._delete_permanently = 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 - if delete_permanently is not None: - self.delete_permanently = delete_permanently - - @property - def folder(self) -> str: - """Gets the folder of this DeleteFolderBaseRequest. - - Folder name - - :return: The folder of this DeleteFolderBaseRequest. - :rtype: str - """ - return self._folder - - @folder.setter - def folder(self, folder: str): - """Sets the folder of this DeleteFolderBaseRequest. - - Folder name - - :param folder: The folder of this DeleteFolderBaseRequest. - :type: str - """ - if folder is None: - raise ValueError("Invalid value for `folder`, must not be `None`") - if folder is not None and len(folder) < 1: - raise ValueError("Invalid value for `folder`, length must be greater than or equal to `1`") - self._folder = folder - - @property - def delete_permanently(self) -> bool: - """Gets the delete_permanently of this DeleteFolderBaseRequest. - - Specifies that folder should be deleted permanently - - :return: The delete_permanently of this DeleteFolderBaseRequest. - :rtype: bool - """ - return self._delete_permanently - - @delete_permanently.setter - def delete_permanently(self, delete_permanently: bool): - """Sets the delete_permanently of this DeleteFolderBaseRequest. - - Specifies that folder should be deleted permanently - - :param delete_permanently: The delete_permanently of this DeleteFolderBaseRequest. - :type: bool - """ - if delete_permanently is None: - raise ValueError("Invalid value for `delete_permanently`, must not be `None`") - self._delete_permanently = delete_permanently - - 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, DeleteFolderBaseRequest): - 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_request.py b/sdk/AsposeEmailCloudSdk/models/delete_folder_request.py new file mode 100644 index 0000000..8d4bfe4 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/delete_folder_request.py @@ -0,0 +1,58 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class DeleteFolderRequest(object): + """ + Request model for delete_folder operation. + Initializes a new instance. + + :param path: Folder path e.g. '/folder' + :type path: str + :param storage_name: Storage name + :type storage_name: str + :param recursive: Enable to delete folders, subfolders and files + :type recursive: bool + """ + + def __init__(self, path: str, storage_name: str = None, recursive: bool = None): + """ + Request model for delete_folder operation. + Initializes a new instance. + + :param path: Folder path e.g. '/folder' + :type path: str + :param storage_name: Storage name + :type storage_name: str + :param recursive: Enable to delete folders, subfolders and files + :type recursive: bool + """ + + self.path = path + self.storage_name = storage_name + self.recursive = recursive diff --git a/sdk/AsposeEmailCloudSdk/models/delete_message_base_request.py b/sdk/AsposeEmailCloudSdk/models/delete_message_base_request.py deleted file mode 100644 index 54678b7..0000000 --- a/sdk/AsposeEmailCloudSdk/models/delete_message_base_request.py +++ /dev/null @@ -1,208 +0,0 @@ -# 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 DeleteMessageBaseRequest(AccountBaseRequest): - """Delete 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', - 'folder': 'str', - 'delete_permanently': 'bool' - } - - attribute_map = { - 'first_account': 'firstAccount', - '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, folder: str = None, delete_permanently: bool = None): - """ - Delete 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 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: - 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 folder is not None: - self.folder = folder - if delete_permanently is not None: - self.delete_permanently = delete_permanently - - @property - def message_id(self) -> str: - """Gets the message_id of this DeleteMessageBaseRequest. - - Message identifier - - :return: The message_id of this DeleteMessageBaseRequest. - :rtype: str - """ - return self._message_id - - @message_id.setter - def message_id(self, message_id: str): - """Sets the message_id of this DeleteMessageBaseRequest. - - Message identifier - - :param message_id: The message_id of this DeleteMessageBaseRequest. - :type: str - """ - if message_id is None: - raise ValueError("Invalid value for `message_id`, must not be `None`") - if message_id is not None and len(message_id) < 1: - 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. - - Specifies that message should be deleted permanently - - :return: The delete_permanently of this DeleteMessageBaseRequest. - :rtype: bool - """ - return self._delete_permanently - - @delete_permanently.setter - def delete_permanently(self, delete_permanently: bool): - """Sets the delete_permanently of this DeleteMessageBaseRequest. - - Specifies that message should be deleted permanently - - :param delete_permanently: The delete_permanently of this DeleteMessageBaseRequest. - :type: bool - """ - if delete_permanently is None: - raise ValueError("Invalid value for `delete_permanently`, must not be `None`") - self._delete_permanently = delete_permanently - - 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, DeleteMessageBaseRequest): - 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/disc_usage.py b/sdk/AsposeEmailCloudSdk/models/disc_usage.py index 2c8daa6..3e5e53b 100644 --- a/sdk/AsposeEmailCloudSdk/models/disc_usage.py +++ b/sdk/AsposeEmailCloudSdk/models/disc_usage.py @@ -32,7 +32,7 @@ class DiscUsage(object): - """ + """Class for disc space information. """ """ @@ -54,9 +54,11 @@ class DiscUsage(object): def __init__(self, used_size: int = None, total_size: int = None): """ - - :param used_size (int) - :param total_size (int) + Class for disc space information. + :param used_size: Application used disc space. + :type used_size: int + :param total_size: Total disc space. + :type total_size: int """ self._used_size = None @@ -67,10 +69,11 @@ def __init__(self, used_size: int = None, total_size: int = None): if total_size is not None: self.total_size = total_size + @property 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 @@ -79,8 +82,8 @@ def used_size(self) -> int: @used_size.setter 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 @@ -91,8 +94,8 @@ def used_size(self, used_size: int): @property def total_size(self) -> int: - """Gets the total_size of this DiscUsage. - + """ + Total disc space. :return: The total_size of this DiscUsage. :rtype: int @@ -101,8 +104,8 @@ def total_size(self) -> int: @total_size.setter 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_rq.py b/sdk/AsposeEmailCloudSdk/models/discover_email_config_request.py similarity index 84% rename from sdk/AsposeEmailCloudSdk/models/discover_email_config_rq.py rename to sdk/AsposeEmailCloudSdk/models/discover_email_config_request.py index 43e765a..b370e73 100644 --- a/sdk/AsposeEmailCloudSdk/models/discover_email_config_rq.py +++ b/sdk/AsposeEmailCloudSdk/models/discover_email_config_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -31,7 +31,7 @@ from datetime import datetime -class DiscoverEmailConfigRq(object): +class DiscoverEmailConfigRequest(object): """Discover email configuration request. """ @@ -57,9 +57,12 @@ class DiscoverEmailConfigRq(object): def __init__(self, address: str = None, fast_processing: bool = None, login: str = None): """ Discover email configuration request. - :param address (str) Email address to discover. - :param fast_processing (bool) Turns on fast processing. All discover systems will run in parallel. First discovered result will be returned. - :param login (str) Email account login. If not specified, address used as a login. + :param address: Email address to discover. + :type address: str + :param fast_processing: Turns on fast processing. All discover systems will run in parallel. First discovered result will be returned. + :type fast_processing: bool + :param login: Email account login. If not specified, address used as a login. + :type login: str """ self._address = None @@ -73,24 +76,23 @@ def __init__(self, address: str = None, fast_processing: bool = None, login: str if login is not None: self.login = login + @property def address(self) -> str: - """Gets the address of this DiscoverEmailConfigRq. - + """ Email address to discover. - :return: The address of this DiscoverEmailConfigRq. + :return: The address of this DiscoverEmailConfigRequest. :rtype: str """ return self._address @address.setter def address(self, address: str): - """Sets the address of this DiscoverEmailConfigRq. - + """ Email address to discover. - :param address: The address of this DiscoverEmailConfigRq. + :param address: The address of this DiscoverEmailConfigRequest. :type: str """ if address is None: @@ -101,22 +103,20 @@ def address(self, address: str): @property def fast_processing(self) -> bool: - """Gets the fast_processing of this DiscoverEmailConfigRq. - + """ Turns on fast processing. All discover systems will run in parallel. First discovered result will be returned. - :return: The fast_processing of this DiscoverEmailConfigRq. + :return: The fast_processing of this DiscoverEmailConfigRequest. :rtype: bool """ return self._fast_processing @fast_processing.setter def fast_processing(self, fast_processing: bool): - """Sets the fast_processing of this DiscoverEmailConfigRq. - + """ Turns on fast processing. All discover systems will run in parallel. First discovered result will be returned. - :param fast_processing: The fast_processing of this DiscoverEmailConfigRq. + :param fast_processing: The fast_processing of this DiscoverEmailConfigRequest. :type: bool """ if fast_processing is None: @@ -125,22 +125,20 @@ def fast_processing(self, fast_processing: bool): @property def login(self) -> str: - """Gets the login of this DiscoverEmailConfigRq. - + """ Email account login. If not specified, address used as a login. - :return: The login of this DiscoverEmailConfigRq. + :return: The login of this DiscoverEmailConfigRequest. :rtype: str """ return self._login @login.setter def login(self, login: str): - """Sets the login of this DiscoverEmailConfigRq. - + """ Email account login. If not specified, address used as a login. - :param login: The login of this DiscoverEmailConfigRq. + :param login: The login of this DiscoverEmailConfigRequest. :type: str """ self._login = login @@ -179,7 +177,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, DiscoverEmailConfigRq): + if not isinstance(other, DiscoverEmailConfigRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/disposable_email_is_disposable_request.py b/sdk/AsposeEmailCloudSdk/models/disposable_email_is_disposable_request.py new file mode 100644 index 0000000..7f96ff3 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/disposable_email_is_disposable_request.py @@ -0,0 +1,49 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class DisposableEmailIsDisposableRequest(object): + """ + Request model for disposable_email_is_disposable operation. + Initializes a new instance. + + :param address: An email address to check + :type address: str + """ + + def __init__(self, address: str): + """ + Request model for disposable_email_is_disposable operation. + Initializes a new instance. + + :param address: An email address to check + :type address: str + """ + + self.address = address + diff --git a/sdk/AsposeEmailCloudSdk/models/download_file_request.py b/sdk/AsposeEmailCloudSdk/models/download_file_request.py new file mode 100644 index 0000000..d276ce8 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/download_file_request.py @@ -0,0 +1,58 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class DownloadFileRequest(object): + """ + Request model for download_file operation. + Initializes a new instance. + + :param path: File path e.g. '/folder/file.ext' + :type path: str + :param storage_name: Storage name + :type storage_name: str + :param version_id: File version ID to download + :type version_id: str + """ + + 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: File path e.g. '/folder/file.ext' + :type path: str + :param storage_name: Storage name + :type storage_name: str + :param version_id: File version ID to download + :type version_id: str + """ + + self.path = path + self.storage_name = storage_name + self.version_id = version_id diff --git a/sdk/AsposeEmailCloudSdk/models/email_account_config.py b/sdk/AsposeEmailCloudSdk/models/email_account_config.py index 6248b8f..2587459 100644 --- a/sdk/AsposeEmailCloudSdk/models/email_account_config.py +++ b/sdk/AsposeEmailCloudSdk/models/email_account_config.py @@ -69,14 +69,22 @@ class EmailAccountConfig(object): def __init__(self, display_name: str = None, protocol_type: str = None, host: str = None, port: int = None, socket_type: str = None, authentication_types: List[str] = None, extra_info: List[NameValuePair] = None, is_validated: bool = None): """ Email account configuration. - :param display_name (str) Email account display name - :param protocol_type (str) Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav - :param host (str) Email account host. - :param port (int) Port. - :param socket_type (str) Email account security mode Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto - :param authentication_types (List[str]) Supported authentication types. - :param extra_info (List[NameValuePair]) Extra account information. - :param is_validated (bool) Determines that configuration validated. Set to false if validation skipped. + :param display_name: Email account display name + :type display_name: str + :param protocol_type: Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav + :type protocol_type: str + :param host: Email account host. + :type host: str + :param port: Port. + :type port: int + :param socket_type: Email account security mode Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto + :type socket_type: str + :param authentication_types: Supported authentication types. + :type authentication_types: List[str] + :param extra_info: Extra account information. + :type extra_info: List[NameValuePair] + :param is_validated: Determines that configuration validated. Set to false if validation skipped. + :type is_validated: bool """ self._display_name = None @@ -105,10 +113,10 @@ def __init__(self, display_name: str = None, protocol_type: str = None, host: st if is_validated is not None: self.is_validated = is_validated + @property def display_name(self) -> str: - """Gets the display_name of this EmailAccountConfig. - + """ Email account display name :return: The display_name of this EmailAccountConfig. @@ -118,8 +126,7 @@ def display_name(self) -> str: @display_name.setter def display_name(self, display_name: str): - """Sets the display_name of this EmailAccountConfig. - + """ Email account display name :param display_name: The display_name of this EmailAccountConfig. @@ -129,8 +136,7 @@ def display_name(self, display_name: str): @property def protocol_type(self) -> str: - """Gets the protocol_type of this EmailAccountConfig. - + """ Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav :return: The protocol_type of this EmailAccountConfig. @@ -140,8 +146,7 @@ def protocol_type(self) -> str: @protocol_type.setter def protocol_type(self, protocol_type: str): - """Sets the protocol_type of this EmailAccountConfig. - + """ Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav :param protocol_type: The protocol_type of this EmailAccountConfig. @@ -153,8 +158,7 @@ def protocol_type(self, protocol_type: str): @property def host(self) -> str: - """Gets the host of this EmailAccountConfig. - + """ Email account host. :return: The host of this EmailAccountConfig. @@ -164,8 +168,7 @@ def host(self) -> str: @host.setter def host(self, host: str): - """Sets the host of this EmailAccountConfig. - + """ Email account host. :param host: The host of this EmailAccountConfig. @@ -175,8 +178,7 @@ def host(self, host: str): @property def port(self) -> int: - """Gets the port of this EmailAccountConfig. - + """ Port. :return: The port of this EmailAccountConfig. @@ -186,8 +188,7 @@ def port(self) -> int: @port.setter def port(self, port: int): - """Sets the port of this EmailAccountConfig. - + """ Port. :param port: The port of this EmailAccountConfig. @@ -197,8 +198,7 @@ def port(self, port: int): @property def socket_type(self) -> str: - """Gets the socket_type of this EmailAccountConfig. - + """ Email account security mode Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto :return: The socket_type of this EmailAccountConfig. @@ -208,8 +208,7 @@ def socket_type(self) -> str: @socket_type.setter def socket_type(self, socket_type: str): - """Sets the socket_type of this EmailAccountConfig. - + """ Email account security mode Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto :param socket_type: The socket_type of this EmailAccountConfig. @@ -221,8 +220,7 @@ def socket_type(self, socket_type: str): @property def authentication_types(self) -> List[str]: - """Gets the authentication_types of this EmailAccountConfig. - + """ Supported authentication types. Items: Email account authentication types. Enum, available values: NoAuth, OAuth2, PasswordCleartext, PasswordEncrypted, SmtpAfterPop, ClientIpAddress :return: The authentication_types of this EmailAccountConfig. @@ -232,8 +230,7 @@ def authentication_types(self) -> List[str]: @authentication_types.setter def authentication_types(self, authentication_types: List[str]): - """Sets the authentication_types of this EmailAccountConfig. - + """ Supported authentication types. Items: Email account authentication types. Enum, available values: NoAuth, OAuth2, PasswordCleartext, PasswordEncrypted, SmtpAfterPop, ClientIpAddress :param authentication_types: The authentication_types of this EmailAccountConfig. @@ -243,8 +240,7 @@ def authentication_types(self, authentication_types: List[str]): @property def extra_info(self) -> List[NameValuePair]: - """Gets the extra_info of this EmailAccountConfig. - + """ Extra account information. :return: The extra_info of this EmailAccountConfig. @@ -254,8 +250,7 @@ def extra_info(self) -> List[NameValuePair]: @extra_info.setter def extra_info(self, extra_info: List[NameValuePair]): - """Sets the extra_info of this EmailAccountConfig. - + """ Extra account information. :param extra_info: The extra_info of this EmailAccountConfig. @@ -265,8 +260,7 @@ def extra_info(self, extra_info: List[NameValuePair]): @property def is_validated(self) -> bool: - """Gets the is_validated of this EmailAccountConfig. - + """ Determines that configuration validated. Set to false if validation skipped. :return: The is_validated of this EmailAccountConfig. @@ -276,8 +270,7 @@ def is_validated(self) -> bool: @is_validated.setter def is_validated(self, is_validated: bool): - """Sets the is_validated of this EmailAccountConfig. - + """ Determines that configuration validated. Set to false if validation skipped. :param is_validated: The is_validated of this EmailAccountConfig. diff --git a/sdk/AsposeEmailCloudSdk/models/email_account_config_list.py b/sdk/AsposeEmailCloudSdk/models/email_account_config_list.py index aa570bf..3d0a599 100644 --- a/sdk/AsposeEmailCloudSdk/models/email_account_config_list.py +++ b/sdk/AsposeEmailCloudSdk/models/email_account_config_list.py @@ -56,13 +56,15 @@ class EmailAccountConfigList(ListResponseOfEmailAccountConfig): def __init__(self, value: List[EmailAccountConfig] = None): """ List of email accounts - :param value (List[EmailAccountConfig]) + :param value: + :type value: List[EmailAccountConfig] """ super(EmailAccountConfigList, self).__init__() if value is not None: self.value = value + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/sdk/AsposeEmailCloudSdk/models/email_account_request.py b/sdk/AsposeEmailCloudSdk/models/email_account_request.py deleted file mode 100644 index 4abfe9d..0000000 --- a/sdk/AsposeEmailCloudSdk/models/email_account_request.py +++ /dev/null @@ -1,317 +0,0 @@ -# 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.storage_file_location import StorageFileLocation - - -class EmailAccountRequest(object): - """Email account settings 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 = { - 'host': 'str', - 'port': 'int', - 'login': 'str', - 'security_options': 'str', - 'protocol_type': 'str', - 'description': 'str', - 'storage_file': 'StorageFileLocation' - } - - attribute_map = { - 'host': 'host', - 'port': 'port', - 'login': 'login', - 'security_options': 'securityOptions', - 'protocol_type': 'protocolType', - 'description': 'description', - 'storage_file': 'storageFile' - } - - def __init__(self, host: str = None, port: int = None, login: str = None, security_options: str = None, protocol_type: str = None, description: str = None, storage_file: StorageFileLocation = None): - """ - Email account settings request - :param host (str) Email account host - :param port (int) Email account port - :param login (str) Email account login - :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 description (str) Email account description - :param storage_file (StorageFileLocation) A storage file location info to store email account - """ - - self._host = None - self._port = None - self._login = None - self._security_options = None - self._protocol_type = None - self._description = None - self._storage_file = None - - if host is not None: - self.host = host - if port is not None: - self.port = port - if login is not None: - self.login = login - if security_options is not None: - self.security_options = security_options - if protocol_type is not None: - self.protocol_type = protocol_type - if description is not None: - self.description = description - if storage_file is not None: - self.storage_file = storage_file - - @property - def host(self) -> str: - """Gets the host of this EmailAccountRequest. - - Email account host - - :return: The host of this EmailAccountRequest. - :rtype: str - """ - return self._host - - @host.setter - def host(self, host: str): - """Sets the host of this EmailAccountRequest. - - Email account host - - :param host: The host of this EmailAccountRequest. - :type: str - """ - if host is None: - raise ValueError("Invalid value for `host`, must not be `None`") - if host is not None and len(host) < 1: - raise ValueError("Invalid value for `host`, length must be greater than or equal to `1`") - self._host = host - - @property - def port(self) -> int: - """Gets the port of this EmailAccountRequest. - - Email account port - - :return: The port of this EmailAccountRequest. - :rtype: int - """ - return self._port - - @port.setter - def port(self, port: int): - """Sets the port of this EmailAccountRequest. - - Email account port - - :param port: The port of this EmailAccountRequest. - :type: int - """ - if port is None: - raise ValueError("Invalid value for `port`, must not be `None`") - self._port = port - - @property - def login(self) -> str: - """Gets the login of this EmailAccountRequest. - - Email account login - - :return: The login of this EmailAccountRequest. - :rtype: str - """ - return self._login - - @login.setter - def login(self, login: str): - """Sets the login of this EmailAccountRequest. - - Email account login - - :param login: The login of this EmailAccountRequest. - :type: str - """ - if login is None: - raise ValueError("Invalid value for `login`, must not be `None`") - if login is not None and len(login) < 1: - raise ValueError("Invalid value for `login`, length must be greater than or equal to `1`") - self._login = login - - @property - def security_options(self) -> str: - """Gets the security_options of this EmailAccountRequest. - - Email account security mode Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto - - :return: The security_options of this EmailAccountRequest. - :rtype: str - """ - return self._security_options - - @security_options.setter - def security_options(self, security_options: str): - """Sets the security_options of this EmailAccountRequest. - - Email account security mode Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto - - :param security_options: The security_options of this EmailAccountRequest. - :type: str - """ - if security_options is None: - raise ValueError("Invalid value for `security_options`, must not be `None`") - if security_options is not None and len(security_options) < 1: - raise ValueError("Invalid value for `security_options`, length must be greater than or equal to `1`") - self._security_options = security_options - - @property - def protocol_type(self) -> str: - """Gets the protocol_type of this EmailAccountRequest. - - Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav - - :return: The protocol_type of this EmailAccountRequest. - :rtype: str - """ - return self._protocol_type - - @protocol_type.setter - def protocol_type(self, protocol_type: str): - """Sets the protocol_type of this EmailAccountRequest. - - Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav - - :param protocol_type: The protocol_type of this EmailAccountRequest. - :type: str - """ - if protocol_type is None: - raise ValueError("Invalid value for `protocol_type`, must not be `None`") - if protocol_type is not None and len(protocol_type) < 1: - raise ValueError("Invalid value for `protocol_type`, length must be greater than or equal to `1`") - self._protocol_type = protocol_type - - @property - def description(self) -> str: - """Gets the description of this EmailAccountRequest. - - Email account description - - :return: The description of this EmailAccountRequest. - :rtype: str - """ - return self._description - - @description.setter - def description(self, description: str): - """Sets the description of this EmailAccountRequest. - - Email account description - - :param description: The description of this EmailAccountRequest. - :type: str - """ - self._description = description - - @property - def storage_file(self) -> StorageFileLocation: - """Gets the storage_file of this EmailAccountRequest. - - A storage file location info to store email account - - :return: The storage_file of this EmailAccountRequest. - :rtype: StorageFileLocation - """ - return self._storage_file - - @storage_file.setter - def storage_file(self, storage_file: StorageFileLocation): - """Sets the storage_file of this EmailAccountRequest. - - A storage file location info to store email account - - :param storage_file: The storage_file of this EmailAccountRequest. - :type: StorageFileLocation - """ - if storage_file is None: - raise ValueError("Invalid value for `storage_file`, must not be `None`") - self._storage_file = storage_file - - 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, EmailAccountRequest): - 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_address.py b/sdk/AsposeEmailCloudSdk/models/email_address.py index 6ad45c1..490cb20 100644 --- a/sdk/AsposeEmailCloudSdk/models/email_address.py +++ b/sdk/AsposeEmailCloudSdk/models/email_address.py @@ -65,12 +65,18 @@ class EmailAddress(object): 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. - :param display_name (str) Display name. - :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 + :param category: Address category. + :type category: EnumWithCustomOfEmailAddressCategory + :param display_name: Display name. + :type display_name: str + :param preferred: Defines whether email address is preferred. + :type preferred: bool + :param routing_type: A routing type for an email. + :type routing_type: str + :param address: Email address. + :type address: str + :param original_address_string: The original e-mail address string + :type original_address_string: str """ self._category = None @@ -93,10 +99,10 @@ def __init__(self, category: EnumWithCustomOfEmailAddressCategory = None, displa if original_address_string is not None: self.original_address_string = original_address_string + @property def category(self) -> EnumWithCustomOfEmailAddressCategory: - """Gets the category of this EmailAddress. - + """ Address category. :return: The category of this EmailAddress. @@ -106,8 +112,7 @@ def category(self) -> EnumWithCustomOfEmailAddressCategory: @category.setter def category(self, category: EnumWithCustomOfEmailAddressCategory): - """Sets the category of this EmailAddress. - + """ Address category. :param category: The category of this EmailAddress. @@ -117,8 +122,7 @@ def category(self, category: EnumWithCustomOfEmailAddressCategory): @property def display_name(self) -> str: - """Gets the display_name of this EmailAddress. - + """ Display name. :return: The display_name of this EmailAddress. @@ -128,8 +132,7 @@ def display_name(self) -> str: @display_name.setter def display_name(self, display_name: str): - """Sets the display_name of this EmailAddress. - + """ Display name. :param display_name: The display_name of this EmailAddress. @@ -139,8 +142,7 @@ def display_name(self, display_name: str): @property def preferred(self) -> bool: - """Gets the preferred of this EmailAddress. - + """ Defines whether email address is preferred. :return: The preferred of this EmailAddress. @@ -150,8 +152,7 @@ def preferred(self) -> bool: @preferred.setter def preferred(self, preferred: bool): - """Sets the preferred of this EmailAddress. - + """ Defines whether email address is preferred. :param preferred: The preferred of this EmailAddress. @@ -163,8 +164,7 @@ def preferred(self, preferred: bool): @property def routing_type(self) -> str: - """Gets the routing_type of this EmailAddress. - + """ A routing type for an email. :return: The routing_type of this EmailAddress. @@ -174,8 +174,7 @@ def routing_type(self) -> str: @routing_type.setter def routing_type(self, routing_type: str): - """Sets the routing_type of this EmailAddress. - + """ A routing type for an email. :param routing_type: The routing_type of this EmailAddress. @@ -185,8 +184,7 @@ def routing_type(self, routing_type: str): @property def address(self) -> str: - """Gets the address of this EmailAddress. - + """ Email address. :return: The address of this EmailAddress. @@ -196,19 +194,21 @@ def address(self) -> str: @address.setter def address(self, address: str): - """Sets the address of this EmailAddress. - + """ Email address. :param address: The address of this EmailAddress. :type: str """ + if address is None: + raise ValueError("Invalid value for `address`, must not be `None`") + if address is not None and len(address) < 1: + raise ValueError("Invalid value for `address`, length must be greater than or equal to `1`") 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. @@ -218,8 +218,7 @@ def original_address_string(self) -> str: @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. diff --git a/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_email_dto.py b/sdk/AsposeEmailCloudSdk/models/email_as_file_request.py similarity index 68% rename from sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_email_dto.py rename to sdk/AsposeEmailCloudSdk/models/email_as_file_request.py index 8e9512d..938c9fa 100644 --- a/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_email_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/email_as_file_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -31,11 +31,10 @@ from datetime import datetime from AsposeEmailCloudSdk.models.email_dto import EmailDto -from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation -class StorageModelRqOfEmailDto(object): - """ +class EmailAsFileRequest(object): + """Convert email model to file request. """ """ @@ -46,69 +45,76 @@ class StorageModelRqOfEmailDto(object): and the value is json key in definition. """ swagger_types = { - 'value': 'EmailDto', - 'storage_folder': 'StorageFolderLocation' + 'format': 'str', + 'value': 'EmailDto' } attribute_map = { - 'value': 'value', - 'storage_folder': 'storageFolder' + 'format': 'format', + 'value': 'value' } - def __init__(self, value: EmailDto = None, storage_folder: StorageFolderLocation = None): + def __init__(self, format: str = None, value: EmailDto = None): """ - - :param value (EmailDto) - :param storage_folder (StorageFolderLocation) + Convert email model to file request. + :param format: Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + :param value: Email model. + :type value: EmailDto """ + self._format = None self._value = None - self._storage_folder = None + if format is not None: + self.format = format if value is not None: self.value = value - if storage_folder is not None: - self.storage_folder = storage_folder - - @property - def value(self) -> EmailDto: - """Gets the value of this StorageModelRqOfEmailDto. - :return: The value of this StorageModelRqOfEmailDto. - :rtype: EmailDto + @property + def format(self) -> str: """ - return self._value + Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft - @value.setter - def value(self, value: EmailDto): - """Sets the value of this StorageModelRqOfEmailDto. + :return: The format of this EmailAsFileRequest. + :rtype: str + """ + return self._format + @format.setter + def format(self, format: str): + """ + Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft - :param value: The value of this StorageModelRqOfEmailDto. - :type: EmailDto + :param format: The format of this EmailAsFileRequest. + :type: str """ - self._value = value + if format is None: + raise ValueError("Invalid value for `format`, must not be `None`") + self._format = format @property - def storage_folder(self) -> StorageFolderLocation: - """Gets the storage_folder of this StorageModelRqOfEmailDto. - - - :return: The storage_folder of this StorageModelRqOfEmailDto. - :rtype: StorageFolderLocation + def value(self) -> EmailDto: """ - return self._storage_folder + Email model. - @storage_folder.setter - def storage_folder(self, storage_folder: StorageFolderLocation): - """Sets the storage_folder of this StorageModelRqOfEmailDto. + :return: The value of this EmailAsFileRequest. + :rtype: EmailDto + """ + return self._value + @value.setter + def value(self, value: EmailDto): + """ + Email model. - :param storage_folder: The storage_folder of this StorageModelRqOfEmailDto. - :type: StorageFolderLocation + :param value: The value of this EmailAsFileRequest. + :type: EmailDto """ - self._storage_folder = storage_folder + if value is None: + raise ValueError("Invalid value for `value`, must not be `None`") + self._value = value def to_dict(self): """Returns the model properties as a dict""" @@ -144,7 +150,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, StorageModelRqOfEmailDto): + if not isinstance(other, EmailAsFileRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/email_client_account.py b/sdk/AsposeEmailCloudSdk/models/email_client_account.py index 7ffce35..7f60629 100644 --- a/sdk/AsposeEmailCloudSdk/models/email_client_account.py +++ b/sdk/AsposeEmailCloudSdk/models/email_client_account.py @@ -66,12 +66,18 @@ class EmailClientAccount(object): 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 - :param port (int) Mail server port - :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 + :param host: Mail server host name or IP address + :type host: str + :param port: Mail server port + :type port: int + :param security_options: Email account security mode Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto + :type security_options: str + :param protocol_type: Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav + :type protocol_type: str + :param credentials: Email client account credentials + :type credentials: EmailClientAccountCredentials + :param cache_file: File with messages cache. Used to provide extra functions, which are not supported by account + :type cache_file: StorageFileLocation """ self._host = None @@ -94,10 +100,10 @@ def __init__(self, host: str = None, port: int = None, security_options: str = N if cache_file is not None: self.cache_file = cache_file + @property def host(self) -> str: - """Gets the host of this EmailClientAccount. - + """ Mail server host name or IP address :return: The host of this EmailClientAccount. @@ -107,8 +113,7 @@ def host(self) -> str: @host.setter def host(self, host: str): - """Sets the host of this EmailClientAccount. - + """ Mail server host name or IP address :param host: The host of this EmailClientAccount. @@ -122,8 +127,7 @@ def host(self, host: str): @property def port(self) -> int: - """Gets the port of this EmailClientAccount. - + """ Mail server port :return: The port of this EmailClientAccount. @@ -133,8 +137,7 @@ def port(self) -> int: @port.setter def port(self, port: int): - """Sets the port of this EmailClientAccount. - + """ Mail server port :param port: The port of this EmailClientAccount. @@ -150,8 +153,7 @@ def port(self, port: int): @property def security_options(self) -> str: - """Gets the security_options of this EmailClientAccount. - + """ Email account security mode Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto :return: The security_options of this EmailClientAccount. @@ -161,8 +163,7 @@ def security_options(self) -> str: @security_options.setter def security_options(self, security_options: str): - """Sets the security_options of this EmailClientAccount. - + """ Email account security mode Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto :param security_options: The security_options of this EmailClientAccount. @@ -174,8 +175,7 @@ def security_options(self, security_options: str): @property def protocol_type(self) -> str: - """Gets the protocol_type of this EmailClientAccount. - + """ Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav :return: The protocol_type of this EmailClientAccount. @@ -185,8 +185,7 @@ def protocol_type(self) -> str: @protocol_type.setter def protocol_type(self, protocol_type: str): - """Sets the protocol_type of this EmailClientAccount. - + """ Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav :param protocol_type: The protocol_type of this EmailClientAccount. @@ -198,8 +197,7 @@ def protocol_type(self, protocol_type: str): @property def credentials(self) -> EmailClientAccountCredentials: - """Gets the credentials of this EmailClientAccount. - + """ Email client account credentials :return: The credentials of this EmailClientAccount. @@ -209,8 +207,7 @@ def credentials(self) -> EmailClientAccountCredentials: @credentials.setter def credentials(self, credentials: EmailClientAccountCredentials): - """Sets the credentials of this EmailClientAccount. - + """ Email client account credentials :param credentials: The credentials of this EmailClientAccount. @@ -222,8 +219,7 @@ def credentials(self, credentials: EmailClientAccountCredentials): @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. @@ -233,8 +229,7 @@ def cache_file(self) -> StorageFileLocation: @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. diff --git a/sdk/AsposeEmailCloudSdk/models/email_client_account_credentials.py b/sdk/AsposeEmailCloudSdk/models/email_client_account_credentials.py index 397b40d..e0e80d3 100644 --- a/sdk/AsposeEmailCloudSdk/models/email_client_account_credentials.py +++ b/sdk/AsposeEmailCloudSdk/models/email_client_account_credentials.py @@ -52,25 +52,22 @@ class EmailClientAccountCredentials(object): 'discriminator': 'discriminator' } - def __init__(self, login: str = None, discriminator: str = None): + def __init__(self, login: str = None): """ Represents email client account credentials - :param login (str) Email client account login - :param discriminator (str) + :param login: Email client account login + :type login: str """ self._login = None - self._discriminator = self.__class__.__name__ if login is not None: self.login = login - if discriminator is not None: - self.discriminator = discriminator + @property def login(self) -> str: - """Gets the login of this EmailClientAccountCredentials. - + """ Email client account login :return: The login of this EmailClientAccountCredentials. @@ -80,8 +77,7 @@ def login(self) -> str: @login.setter def login(self, login: str): - """Sets the login of this EmailClientAccountCredentials. - + """ Email client account login :param login: The login of this EmailClientAccountCredentials. @@ -95,8 +91,8 @@ def login(self, login: str): @property def discriminator(self) -> str: - """Gets the discriminator of this EmailClientAccountCredentials. - + """ + Gets the discriminator of this EmailClientAccountCredentials. :return: The discriminator of this EmailClientAccountCredentials. :rtype: str @@ -105,15 +101,13 @@ def discriminator(self) -> str: @discriminator.setter def discriminator(self, discriminator: str): - """Sets the discriminator of this EmailClientAccountCredentials. - + """ + Sets the discriminator of this EmailClientAccountCredentials. :param discriminator: The discriminator of this EmailClientAccountCredentials. :type: str """ - if discriminator is None: - raise ValueError("Invalid value for `discriminator`, must not be `None`") - self._discriminator = self.__class__.__name__ + pass # setter is ignored for discriminator property def to_dict(self): """Returns the model properties as a dict""" diff --git a/sdk/AsposeEmailCloudSdk/models/email_client_account_oauth_credentials.py b/sdk/AsposeEmailCloudSdk/models/email_client_account_oauth_credentials.py index c832743..af1fb9f 100644 --- a/sdk/AsposeEmailCloudSdk/models/email_client_account_oauth_credentials.py +++ b/sdk/AsposeEmailCloudSdk/models/email_client_account_oauth_credentials.py @@ -62,15 +62,19 @@ class EmailClientAccountOauthCredentials(EmailClientAccountCredentials): 'request_url': 'requestUrl' } - def __init__(self, login: str = None, discriminator: str = None, client_id: str = None, client_secret: str = None, refresh_token: str = None, request_url: str = None): + def __init__(self, login: str = None, client_id: str = None, client_secret: str = None, refresh_token: str = None, request_url: str = None): """ Represents email client account OAuth 2.0 credentials - :param login (str) Email client account login - :param discriminator (str) - :param client_id (str) The client ID obtained from the Google Cloud Console during application registration. - :param client_secret (str) The client secret obtained during application registration. - :param refresh_token (str) OAuth 2.0 refresh token - :param request_url (str) The url to obtain access token. If not specified, will try to discover from email client account host. + :param login: Email client account login + :type login: str + :param client_id: The client ID obtained from the Google Cloud Console during application registration. + :type client_id: str + :param client_secret: The client secret obtained during application registration. + :type client_secret: str + :param refresh_token: OAuth 2.0 refresh token + :type refresh_token: str + :param request_url: The url to obtain access token. If not specified, will try to discover from email client account host. + :type request_url: str """ super(EmailClientAccountOauthCredentials, self).__init__() @@ -81,8 +85,6 @@ def __init__(self, login: str = None, discriminator: str = None, client_id: str if login is not None: self.login = login - if discriminator is not None: - self.discriminator = discriminator if client_id is not None: self.client_id = client_id if client_secret is not None: @@ -92,10 +94,10 @@ def __init__(self, login: str = None, discriminator: str = None, client_id: str if request_url is not None: self.request_url = request_url + @property def client_id(self) -> str: - """Gets the client_id of this EmailClientAccountOauthCredentials. - + """ The client ID obtained from the Google Cloud Console during application registration. :return: The client_id of this EmailClientAccountOauthCredentials. @@ -105,8 +107,7 @@ def client_id(self) -> str: @client_id.setter def client_id(self, client_id: str): - """Sets the client_id of this EmailClientAccountOauthCredentials. - + """ The client ID obtained from the Google Cloud Console during application registration. :param client_id: The client_id of this EmailClientAccountOauthCredentials. @@ -120,8 +121,7 @@ def client_id(self, client_id: str): @property def client_secret(self) -> str: - """Gets the client_secret of this EmailClientAccountOauthCredentials. - + """ The client secret obtained during application registration. :return: The client_secret of this EmailClientAccountOauthCredentials. @@ -131,8 +131,7 @@ def client_secret(self) -> str: @client_secret.setter def client_secret(self, client_secret: str): - """Sets the client_secret of this EmailClientAccountOauthCredentials. - + """ The client secret obtained during application registration. :param client_secret: The client_secret of this EmailClientAccountOauthCredentials. @@ -146,8 +145,7 @@ def client_secret(self, client_secret: str): @property def refresh_token(self) -> str: - """Gets the refresh_token of this EmailClientAccountOauthCredentials. - + """ OAuth 2.0 refresh token :return: The refresh_token of this EmailClientAccountOauthCredentials. @@ -157,8 +155,7 @@ def refresh_token(self) -> str: @refresh_token.setter def refresh_token(self, refresh_token: str): - """Sets the refresh_token of this EmailClientAccountOauthCredentials. - + """ OAuth 2.0 refresh token :param refresh_token: The refresh_token of this EmailClientAccountOauthCredentials. @@ -172,8 +169,7 @@ def refresh_token(self, refresh_token: str): @property def request_url(self) -> str: - """Gets the request_url of this EmailClientAccountOauthCredentials. - + """ The url to obtain access token. If not specified, will try to discover from email client account host. :return: The request_url of this EmailClientAccountOauthCredentials. @@ -183,8 +179,7 @@ def request_url(self) -> str: @request_url.setter def request_url(self, request_url: str): - """Sets the request_url of this EmailClientAccountOauthCredentials. - + """ The url to obtain access token. If not specified, will try to discover from email client account host. :param request_url: The request_url of this EmailClientAccountOauthCredentials. diff --git a/sdk/AsposeEmailCloudSdk/models/email_client_account_password_credentials.py b/sdk/AsposeEmailCloudSdk/models/email_client_account_password_credentials.py index bd0c233..3224ceb 100644 --- a/sdk/AsposeEmailCloudSdk/models/email_client_account_password_credentials.py +++ b/sdk/AsposeEmailCloudSdk/models/email_client_account_password_credentials.py @@ -56,12 +56,13 @@ class EmailClientAccountPasswordCredentials(EmailClientAccountCredentials): 'password': 'password' } - def __init__(self, login: str = None, discriminator: str = None, password: str = None): + def __init__(self, login: str = None, password: str = None): """ Represents email client account password credentials - :param login (str) Email client account login - :param discriminator (str) - :param password (str) Email client account password + :param login: Email client account login + :type login: str + :param password: Email client account password + :type password: str """ super(EmailClientAccountPasswordCredentials, self).__init__() @@ -69,15 +70,13 @@ def __init__(self, login: str = None, discriminator: str = None, password: str = if login is not None: self.login = login - if discriminator is not None: - self.discriminator = discriminator if password is not None: self.password = password + @property def password(self) -> str: - """Gets the password of this EmailClientAccountPasswordCredentials. - + """ Email client account password :return: The password of this EmailClientAccountPasswordCredentials. @@ -87,8 +86,7 @@ def password(self) -> str: @password.setter def password(self, password: str): - """Sets the password of this EmailClientAccountPasswordCredentials. - + """ Email client account password :param password: The password of this EmailClientAccountPasswordCredentials. diff --git a/sdk/AsposeEmailCloudSdk/models/email_client_multi_account.py b/sdk/AsposeEmailCloudSdk/models/email_client_multi_account.py index e59574a..a623fe8 100644 --- a/sdk/AsposeEmailCloudSdk/models/email_client_multi_account.py +++ b/sdk/AsposeEmailCloudSdk/models/email_client_multi_account.py @@ -57,8 +57,10 @@ class EmailClientMultiAccount(object): def __init__(self, receive_accounts: List[EmailClientAccount] = None, send_account: EmailClientAccount = None): """ Email client virtual account, which contains several accounts - :param receive_accounts (List[EmailClientAccount]) Email client receive accounts - :param send_account (EmailClientAccount) Email client send account + :param receive_accounts: Email client receive accounts + :type receive_accounts: List[EmailClientAccount] + :param send_account: Email client send account + :type send_account: EmailClientAccount """ self._receive_accounts = None @@ -69,10 +71,10 @@ def __init__(self, receive_accounts: List[EmailClientAccount] = None, send_accou if send_account is not None: self.send_account = send_account + @property def receive_accounts(self) -> List[EmailClientAccount]: - """Gets the receive_accounts of this EmailClientMultiAccount. - + """ Email client receive accounts :return: The receive_accounts of this EmailClientMultiAccount. @@ -82,8 +84,7 @@ def receive_accounts(self) -> List[EmailClientAccount]: @receive_accounts.setter def receive_accounts(self, receive_accounts: List[EmailClientAccount]): - """Sets the receive_accounts of this EmailClientMultiAccount. - + """ Email client receive accounts :param receive_accounts: The receive_accounts of this EmailClientMultiAccount. @@ -95,8 +96,7 @@ def receive_accounts(self, receive_accounts: List[EmailClientAccount]): @property def send_account(self) -> EmailClientAccount: - """Gets the send_account of this EmailClientMultiAccount. - + """ Email client send account :return: The send_account of this EmailClientMultiAccount. @@ -106,8 +106,7 @@ def send_account(self) -> EmailClientAccount: @send_account.setter def send_account(self, send_account: EmailClientAccount): - """Sets the send_account of this EmailClientMultiAccount. - + """ Email client send account :param send_account: The send_account of this EmailClientMultiAccount. diff --git a/sdk/AsposeEmailCloudSdk/models/discover_email_config_oauth.py b/sdk/AsposeEmailCloudSdk/models/email_config_discover_oauth_request.py similarity index 76% rename from sdk/AsposeEmailCloudSdk/models/discover_email_config_oauth.py rename to sdk/AsposeEmailCloudSdk/models/email_config_discover_oauth_request.py index 853c1fc..84596d4 100644 --- a/sdk/AsposeEmailCloudSdk/models/discover_email_config_oauth.py +++ b/sdk/AsposeEmailCloudSdk/models/email_config_discover_oauth_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -30,10 +30,10 @@ from typing import List, Set, Dict, Tuple, Optional from datetime import datetime -from AsposeEmailCloudSdk.models.discover_email_config_rq import DiscoverEmailConfigRq +from AsposeEmailCloudSdk.models.discover_email_config_request import DiscoverEmailConfigRequest -class DiscoverEmailConfigOauth(DiscoverEmailConfigRq): +class EmailConfigDiscoverOauthRequest(DiscoverEmailConfigRequest): """ """ @@ -67,15 +67,22 @@ class DiscoverEmailConfigOauth(DiscoverEmailConfigRq): def __init__(self, address: str = None, fast_processing: bool = None, login: str = None, client_id: str = None, client_secret: str = None, refresh_token: str = None, request_url: str = None): """ - :param address (str) Email address to discover. - :param fast_processing (bool) Turns on fast processing. All discover systems will run in parallel. First discovered result will be returned. - :param login (str) Email account login. If not specified, address used as a login. - :param client_id (str) OAuth client id. - :param client_secret (str) OAuth client secret. - :param refresh_token (str) OAuth refresh token. - :param request_url (str) The url to obtain access token. If not specified, will be discovered from email configuration. + :param address: Email address to discover. + :type address: str + :param fast_processing: Turns on fast processing. All discover systems will run in parallel. First discovered result will be returned. + :type fast_processing: bool + :param login: Email account login. If not specified, address used as a login. + :type login: str + :param client_id: OAuth client id. + :type client_id: str + :param client_secret: OAuth client secret. + :type client_secret: str + :param refresh_token: OAuth refresh token. + :type refresh_token: str + :param request_url: The url to obtain access token. If not specified, will be discovered from email configuration. + :type request_url: str """ - super(DiscoverEmailConfigOauth, self).__init__() + super(EmailConfigDiscoverOauthRequest, self).__init__() self._client_id = None self._client_secret = None @@ -97,24 +104,23 @@ def __init__(self, address: str = None, fast_processing: bool = None, login: str if request_url is not None: self.request_url = request_url + @property def client_id(self) -> str: - """Gets the client_id of this DiscoverEmailConfigOauth. - + """ OAuth client id. - :return: The client_id of this DiscoverEmailConfigOauth. + :return: The client_id of this EmailConfigDiscoverOauthRequest. :rtype: str """ return self._client_id @client_id.setter def client_id(self, client_id: str): - """Sets the client_id of this DiscoverEmailConfigOauth. - + """ OAuth client id. - :param client_id: The client_id of this DiscoverEmailConfigOauth. + :param client_id: The client_id of this EmailConfigDiscoverOauthRequest. :type: str """ if client_id is None: @@ -125,22 +131,20 @@ def client_id(self, client_id: str): @property def client_secret(self) -> str: - """Gets the client_secret of this DiscoverEmailConfigOauth. - + """ OAuth client secret. - :return: The client_secret of this DiscoverEmailConfigOauth. + :return: The client_secret of this EmailConfigDiscoverOauthRequest. :rtype: str """ return self._client_secret @client_secret.setter def client_secret(self, client_secret: str): - """Sets the client_secret of this DiscoverEmailConfigOauth. - + """ OAuth client secret. - :param client_secret: The client_secret of this DiscoverEmailConfigOauth. + :param client_secret: The client_secret of this EmailConfigDiscoverOauthRequest. :type: str """ if client_secret is None: @@ -151,22 +155,20 @@ def client_secret(self, client_secret: str): @property def refresh_token(self) -> str: - """Gets the refresh_token of this DiscoverEmailConfigOauth. - + """ OAuth refresh token. - :return: The refresh_token of this DiscoverEmailConfigOauth. + :return: The refresh_token of this EmailConfigDiscoverOauthRequest. :rtype: str """ return self._refresh_token @refresh_token.setter def refresh_token(self, refresh_token: str): - """Sets the refresh_token of this DiscoverEmailConfigOauth. - + """ OAuth refresh token. - :param refresh_token: The refresh_token of this DiscoverEmailConfigOauth. + :param refresh_token: The refresh_token of this EmailConfigDiscoverOauthRequest. :type: str """ if refresh_token is None: @@ -177,22 +179,20 @@ def refresh_token(self, refresh_token: str): @property def request_url(self) -> str: - """Gets the request_url of this DiscoverEmailConfigOauth. - + """ The url to obtain access token. If not specified, will be discovered from email configuration. - :return: The request_url of this DiscoverEmailConfigOauth. + :return: The request_url of this EmailConfigDiscoverOauthRequest. :rtype: str """ return self._request_url @request_url.setter def request_url(self, request_url: str): - """Sets the request_url of this DiscoverEmailConfigOauth. - + """ The url to obtain access token. If not specified, will be discovered from email configuration. - :param request_url: The request_url of this DiscoverEmailConfigOauth. + :param request_url: The request_url of this EmailConfigDiscoverOauthRequest. :type: str """ self._request_url = request_url @@ -231,7 +231,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, DiscoverEmailConfigOauth): + if not isinstance(other, EmailConfigDiscoverOauthRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/discover_email_config_password.py b/sdk/AsposeEmailCloudSdk/models/email_config_discover_password_request.py similarity index 80% rename from sdk/AsposeEmailCloudSdk/models/discover_email_config_password.py rename to sdk/AsposeEmailCloudSdk/models/email_config_discover_password_request.py index 9109a80..9963ce0 100644 --- a/sdk/AsposeEmailCloudSdk/models/discover_email_config_password.py +++ b/sdk/AsposeEmailCloudSdk/models/email_config_discover_password_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -30,10 +30,10 @@ from typing import List, Set, Dict, Tuple, Optional from datetime import datetime -from AsposeEmailCloudSdk.models.discover_email_config_rq import DiscoverEmailConfigRq +from AsposeEmailCloudSdk.models.discover_email_config_request import DiscoverEmailConfigRequest -class DiscoverEmailConfigPassword(DiscoverEmailConfigRq): +class EmailConfigDiscoverPasswordRequest(DiscoverEmailConfigRequest): """ """ @@ -61,12 +61,16 @@ class DiscoverEmailConfigPassword(DiscoverEmailConfigRq): def __init__(self, address: str = None, fast_processing: bool = None, login: str = None, password: str = None): """ - :param address (str) Email address to discover. - :param fast_processing (bool) Turns on fast processing. All discover systems will run in parallel. First discovered result will be returned. - :param login (str) Email account login. If not specified, address used as a login. - :param password (str) Email account password. + :param address: Email address to discover. + :type address: str + :param fast_processing: Turns on fast processing. All discover systems will run in parallel. First discovered result will be returned. + :type fast_processing: bool + :param login: Email account login. If not specified, address used as a login. + :type login: str + :param password: Email account password. + :type password: str """ - super(DiscoverEmailConfigPassword, self).__init__() + super(EmailConfigDiscoverPasswordRequest, self).__init__() self._password = None @@ -79,24 +83,23 @@ def __init__(self, address: str = None, fast_processing: bool = None, login: str if password is not None: self.password = password + @property def password(self) -> str: - """Gets the password of this DiscoverEmailConfigPassword. - + """ Email account password. - :return: The password of this DiscoverEmailConfigPassword. + :return: The password of this EmailConfigDiscoverPasswordRequest. :rtype: str """ return self._password @password.setter def password(self, password: str): - """Sets the password of this DiscoverEmailConfigPassword. - + """ Email account password. - :param password: The password of this DiscoverEmailConfigPassword. + :param password: The password of this EmailConfigDiscoverPasswordRequest. :type: str """ if password is None: @@ -139,7 +142,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, DiscoverEmailConfigPassword): + if not isinstance(other, EmailConfigDiscoverPasswordRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/email_config_discover_request.py b/sdk/AsposeEmailCloudSdk/models/email_config_discover_request.py new file mode 100644 index 0000000..884e84e --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/email_config_discover_request.py @@ -0,0 +1,54 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class EmailConfigDiscoverRequest(object): + """ + Request model for email_config_discover operation. + Initializes a new instance. + + :param address: Email address. + :type address: str + :param fast_processing: Turns on fast processing. All discover systems will run in parallel. First discovered result will be returned. + :type fast_processing: bool + """ + + def __init__(self, address: str, fast_processing: bool = None): + """ + Request model for email_config_discover operation. + Initializes a new instance. + + :param address: Email address. + :type address: str + :param fast_processing: Turns on fast processing. All discover systems will run in parallel. First discovered result will be returned. + :type fast_processing: bool + """ + + self.address = address + self.fast_processing = fast_processing + diff --git a/sdk/AsposeEmailCloudSdk/models/email_convert_request.py b/sdk/AsposeEmailCloudSdk/models/email_convert_request.py new file mode 100644 index 0000000..e96834c --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/email_convert_request.py @@ -0,0 +1,58 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class EmailConvertRequest(object): + """ + Request model for email_convert operation. + Initializes a new instance. + + :param from_format: File format to convert to Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type from_format: str + :param to_format: File format to convert from Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type to_format: str + :param file: File to convert + :type file: str + """ + + def __init__(self, from_format: str, to_format: str, file: str): + """ + Request model for email_convert operation. + Initializes a new instance. + + :param from_format: File format to convert to Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type from_format: str + :param to_format: File format to convert from Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type to_format: str + :param file: File to convert + :type file: str + """ + + self.from_format = from_format + self.to_format = to_format + self.file = file diff --git a/sdk/AsposeEmailCloudSdk/models/email_document.py b/sdk/AsposeEmailCloudSdk/models/email_document.py deleted file mode 100644 index 7fdb5eb..0000000 --- a/sdk/AsposeEmailCloudSdk/models/email_document.py +++ /dev/null @@ -1,160 +0,0 @@ -# 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_properties import EmailProperties -from AsposeEmailCloudSdk.models.link import Link - - -class EmailDocument(object): - """Represents Email document DTO. - """ - - """ - 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 = { - 'links': 'list[Link]', - 'document_properties': 'EmailProperties' - } - - attribute_map = { - 'links': 'links', - 'document_properties': 'documentProperties' - } - - def __init__(self, links: List[Link] = None, document_properties: EmailProperties = None): - """ - Represents Email document DTO. - :param links (List[Link]) Links that originate from this document. - :param document_properties (EmailProperties) List of document properties. - """ - - self._links = None - self._document_properties = None - - if links is not None: - self.links = links - if document_properties is not None: - self.document_properties = document_properties - - @property - def links(self) -> List[Link]: - """Gets the links of this EmailDocument. - - Links that originate from this document. - - :return: The links of this EmailDocument. - :rtype: list[Link] - """ - return self._links - - @links.setter - def links(self, links: List[Link]): - """Sets the links of this EmailDocument. - - Links that originate from this document. - - :param links: The links of this EmailDocument. - :type: list[Link] - """ - self._links = links - - @property - def document_properties(self) -> EmailProperties: - """Gets the document_properties of this EmailDocument. - - List of document properties. - - :return: The document_properties of this EmailDocument. - :rtype: EmailProperties - """ - return self._document_properties - - @document_properties.setter - def document_properties(self, document_properties: EmailProperties): - """Sets the document_properties of this EmailDocument. - - List of document properties. - - :param document_properties: The document_properties of this EmailDocument. - :type: EmailProperties - """ - if document_properties is None: - raise ValueError("Invalid value for `document_properties`, must not be `None`") - self._document_properties = document_properties - - 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, EmailDocument): - 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_document_response.py b/sdk/AsposeEmailCloudSdk/models/email_document_response.py deleted file mode 100644 index d74aad6..0000000 --- a/sdk/AsposeEmailCloudSdk/models/email_document_response.py +++ /dev/null @@ -1,129 +0,0 @@ -# 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_document import EmailDocument - - -class EmailDocumentResponse(object): - """An email document response - """ - - """ - 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 = { - 'document': 'EmailDocument' - } - - attribute_map = { - 'document': 'document' - } - - def __init__(self, document: EmailDocument = None): - """ - An email document response - :param document (EmailDocument) An email document requested - """ - - self._document = None - - if document is not None: - self.document = document - - @property - def document(self) -> EmailDocument: - """Gets the document of this EmailDocumentResponse. - - An email document requested - - :return: The document of this EmailDocumentResponse. - :rtype: EmailDocument - """ - return self._document - - @document.setter - def document(self, document: EmailDocument): - """Sets the document of this EmailDocumentResponse. - - An email document requested - - :param document: The document of this EmailDocumentResponse. - :type: EmailDocument - """ - self._document = document - - 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, EmailDocumentResponse): - 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_dto.py b/sdk/AsposeEmailCloudSdk/models/email_dto.py index 1e8d3c6..c6fb6fd 100644 --- a/sdk/AsposeEmailCloudSdk/models/email_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/email_dto.py @@ -120,38 +120,70 @@ class EmailDto(object): def __init__(self, alternate_views: List[AlternateView] = None, attachments: List[Attachment] = None, bcc: List[MailAddress] = None, body: str = None, body_encoding: str = None, body_type: str = None, cc: List[MailAddress] = None, _date: datetime = None, delivery_notification_options: List[str] = None, _from: MailAddress = None, headers: Dict[str, str] = None, html_body: str = None, html_body_text: str = None, is_body_html: bool = None, is_draft: bool = None, is_encrypted: bool = None, is_signed: bool = None, linked_resources: List[LinkedResource] = None, message_id: str = None, original_is_tnef: bool = None, preferred_text_encoding: str = None, priority: str = None, read_receipt_to: List[MailAddress] = None, reply_to_list: List[MailAddress] = None, reverse_path: MailAddress = None, sender: MailAddress = None, sensitivity: str = None, subject: str = None, subject_encoding: str = None, time_zone_offset: int = None, to: List[MailAddress] = None, x_mailer: str = None): """ Email message representation. - :param alternate_views (List[AlternateView]) Collection of alternate views of message. - :param attachments (List[Attachment]) Email message attachments. - :param bcc (List[MailAddress]) BCC recipients. - :param body (str) Email message body as plain text. - :param body_encoding (str) Body encoding. - :param body_type (str) The content type of message body. Enum, available values: PlainText, Html, Rtf - :param cc (List[MailAddress]) CC recipients. - :param _date (datetime) Message date. - :param delivery_notification_options (List[str]) Delivery notifications. - :param _from (MailAddress) From address. - :param headers (Dict[str, str]) Document headers. - :param html_body (str) HTML body. - :param html_body_text (str) Html body as plain text. Read only. - :param is_body_html (bool) Indicates whether the message body is in Html. - :param is_draft (bool) Indicates whether or not a message has been sent. - :param is_encrypted (bool) Indicates whether the message is encrypted. Read only. - :param is_signed (bool) Indicates whether the message is signed. Read only. - :param linked_resources (List[LinkedResource]) Linked resources of message. - :param message_id (str) Message id. - :param original_is_tnef (bool) Indicates whether original EML message is in TNEF format. Read only. - :param preferred_text_encoding (str) Preferred encoding. - :param priority (str) Email priority status. Enum, available values: High, Low, Normal - :param read_receipt_to (List[MailAddress]) Read receipt addresses. - :param reply_to_list (List[MailAddress]) The list of addresses to reply to for the mail message. - :param reverse_path (MailAddress) ReversePath address. - :param sender (MailAddress) Sender address. - :param sensitivity (str) Specifies the sensitivity of a MailMessage. Enum, available values: None, Normal, Personal, Private, CompanyConfidential - :param subject (str) Message subject. - :param subject_encoding (str) Subject encoding. - :param time_zone_offset (int) Coordinated Universal Time (UTC) offset for the message dates. This property defines the time zone difference, between the local time and UTC represented as count of ticks (10 000 per millisecond). - :param to (List[MailAddress]) The address collection that contains the recipients of message. - :param x_mailer (str) The X-Mailer the software that created the e-mail message. + :param alternate_views: Collection of alternate views of message. + :type alternate_views: List[AlternateView] + :param attachments: Email message attachments. + :type attachments: List[Attachment] + :param bcc: BCC recipients. + :type bcc: List[MailAddress] + :param body: Email message body as plain text. + :type body: str + :param body_encoding: Body encoding. + :type body_encoding: str + :param body_type: The content type of message body. Enum, available values: PlainText, Html, Rtf + :type body_type: str + :param cc: CC recipients. + :type cc: List[MailAddress] + :param _date: Message date. + :type _date: datetime + :param delivery_notification_options: Delivery notifications. + :type delivery_notification_options: List[str] + :param _from: From address. + :type _from: MailAddress + :param headers: Document headers. + :type headers: Dict[str, str] + :param html_body: HTML body. + :type html_body: str + :param html_body_text: Html body as plain text. Read only. + :type html_body_text: str + :param is_body_html: Indicates whether the message body is in Html. + :type is_body_html: bool + :param is_draft: Indicates whether or not a message has been sent. + :type is_draft: bool + :param is_encrypted: Indicates whether the message is encrypted. Read only. + :type is_encrypted: bool + :param is_signed: Indicates whether the message is signed. Read only. + :type is_signed: bool + :param linked_resources: Linked resources of message. + :type linked_resources: List[LinkedResource] + :param message_id: Message id. + :type message_id: str + :param original_is_tnef: Indicates whether original EML message is in TNEF format. Read only. + :type original_is_tnef: bool + :param preferred_text_encoding: Preferred encoding. + :type preferred_text_encoding: str + :param priority: Email priority status. Enum, available values: High, Low, Normal + :type priority: str + :param read_receipt_to: Read receipt addresses. + :type read_receipt_to: List[MailAddress] + :param reply_to_list: The list of addresses to reply to for the mail message. + :type reply_to_list: List[MailAddress] + :param reverse_path: ReversePath address. + :type reverse_path: MailAddress + :param sender: Sender address. + :type sender: MailAddress + :param sensitivity: Specifies the sensitivity of a MailMessage. Enum, available values: None, Normal, Personal, Private, CompanyConfidential + :type sensitivity: str + :param subject: Message subject. + :type subject: str + :param subject_encoding: Subject encoding. + :type subject_encoding: str + :param time_zone_offset: Coordinated Universal Time (UTC) offset for the message dates. This property defines the time zone difference, between the local time and UTC represented as count of ticks (10 000 per millisecond). + :type time_zone_offset: int + :param to: The address collection that contains the recipients of message. + :type to: List[MailAddress] + :param x_mailer: The X-Mailer the software that created the e-mail message. + :type x_mailer: str """ self._alternate_views = None @@ -252,10 +284,10 @@ def __init__(self, alternate_views: List[AlternateView] = None, attachments: Lis if x_mailer is not None: self.x_mailer = x_mailer + @property def alternate_views(self) -> List[AlternateView]: - """Gets the alternate_views of this EmailDto. - + """ Collection of alternate views of message. :return: The alternate_views of this EmailDto. @@ -265,8 +297,7 @@ def alternate_views(self) -> List[AlternateView]: @alternate_views.setter def alternate_views(self, alternate_views: List[AlternateView]): - """Sets the alternate_views of this EmailDto. - + """ Collection of alternate views of message. :param alternate_views: The alternate_views of this EmailDto. @@ -276,8 +307,7 @@ def alternate_views(self, alternate_views: List[AlternateView]): @property def attachments(self) -> List[Attachment]: - """Gets the attachments of this EmailDto. - + """ Email message attachments. :return: The attachments of this EmailDto. @@ -287,8 +317,7 @@ def attachments(self) -> List[Attachment]: @attachments.setter def attachments(self, attachments: List[Attachment]): - """Sets the attachments of this EmailDto. - + """ Email message attachments. :param attachments: The attachments of this EmailDto. @@ -298,8 +327,7 @@ def attachments(self, attachments: List[Attachment]): @property def bcc(self) -> List[MailAddress]: - """Gets the bcc of this EmailDto. - + """ BCC recipients. :return: The bcc of this EmailDto. @@ -309,8 +337,7 @@ def bcc(self) -> List[MailAddress]: @bcc.setter def bcc(self, bcc: List[MailAddress]): - """Sets the bcc of this EmailDto. - + """ BCC recipients. :param bcc: The bcc of this EmailDto. @@ -320,8 +347,7 @@ def bcc(self, bcc: List[MailAddress]): @property def body(self) -> str: - """Gets the body of this EmailDto. - + """ Email message body as plain text. :return: The body of this EmailDto. @@ -331,8 +357,7 @@ def body(self) -> str: @body.setter def body(self, body: str): - """Sets the body of this EmailDto. - + """ Email message body as plain text. :param body: The body of this EmailDto. @@ -342,8 +367,7 @@ def body(self, body: str): @property def body_encoding(self) -> str: - """Gets the body_encoding of this EmailDto. - + """ Body encoding. :return: The body_encoding of this EmailDto. @@ -353,8 +377,7 @@ def body_encoding(self) -> str: @body_encoding.setter def body_encoding(self, body_encoding: str): - """Sets the body_encoding of this EmailDto. - + """ Body encoding. :param body_encoding: The body_encoding of this EmailDto. @@ -364,8 +387,7 @@ def body_encoding(self, body_encoding: str): @property def body_type(self) -> str: - """Gets the body_type of this EmailDto. - + """ The content type of message body. Enum, available values: PlainText, Html, Rtf :return: The body_type of this EmailDto. @@ -375,8 +397,7 @@ def body_type(self) -> str: @body_type.setter def body_type(self, body_type: str): - """Sets the body_type of this EmailDto. - + """ The content type of message body. Enum, available values: PlainText, Html, Rtf :param body_type: The body_type of this EmailDto. @@ -388,8 +409,7 @@ def body_type(self, body_type: str): @property def cc(self) -> List[MailAddress]: - """Gets the cc of this EmailDto. - + """ CC recipients. :return: The cc of this EmailDto. @@ -399,8 +419,7 @@ def cc(self) -> List[MailAddress]: @cc.setter def cc(self, cc: List[MailAddress]): - """Sets the cc of this EmailDto. - + """ CC recipients. :param cc: The cc of this EmailDto. @@ -410,8 +429,7 @@ def cc(self, cc: List[MailAddress]): @property def _date(self) -> datetime: - """Gets the _date of this EmailDto. - + """ Message date. :return: The _date of this EmailDto. @@ -421,8 +439,7 @@ def _date(self) -> datetime: @_date.setter def _date(self, _date: datetime): - """Sets the _date of this EmailDto. - + """ Message date. :param _date: The _date of this EmailDto. @@ -434,8 +451,7 @@ def _date(self, _date: datetime): @property def delivery_notification_options(self) -> List[str]: - """Gets the delivery_notification_options of this EmailDto. - + """ Delivery notifications. Items: Email delivery notification options. Enum, available values: Delay, Never, None, OnFailure, OnSuccess :return: The delivery_notification_options of this EmailDto. @@ -445,8 +461,7 @@ def delivery_notification_options(self) -> List[str]: @delivery_notification_options.setter def delivery_notification_options(self, delivery_notification_options: List[str]): - """Sets the delivery_notification_options of this EmailDto. - + """ Delivery notifications. Items: Email delivery notification options. Enum, available values: Delay, Never, None, OnFailure, OnSuccess :param delivery_notification_options: The delivery_notification_options of this EmailDto. @@ -456,8 +471,7 @@ def delivery_notification_options(self, delivery_notification_options: List[str] @property def _from(self) -> MailAddress: - """Gets the _from of this EmailDto. - + """ From address. :return: The _from of this EmailDto. @@ -467,8 +481,7 @@ def _from(self) -> MailAddress: @_from.setter def _from(self, _from: MailAddress): - """Sets the _from of this EmailDto. - + """ From address. :param _from: The _from of this EmailDto. @@ -478,8 +491,7 @@ def _from(self, _from: MailAddress): @property def headers(self) -> Dict[str, str]: - """Gets the headers of this EmailDto. - + """ Document headers. :return: The headers of this EmailDto. @@ -489,8 +501,7 @@ def headers(self) -> Dict[str, str]: @headers.setter def headers(self, headers: Dict[str, str]): - """Sets the headers of this EmailDto. - + """ Document headers. :param headers: The headers of this EmailDto. @@ -500,8 +511,7 @@ def headers(self, headers: Dict[str, str]): @property def html_body(self) -> str: - """Gets the html_body of this EmailDto. - + """ HTML body. :return: The html_body of this EmailDto. @@ -511,8 +521,7 @@ def html_body(self) -> str: @html_body.setter def html_body(self, html_body: str): - """Sets the html_body of this EmailDto. - + """ HTML body. :param html_body: The html_body of this EmailDto. @@ -522,8 +531,7 @@ def html_body(self, html_body: str): @property def html_body_text(self) -> str: - """Gets the html_body_text of this EmailDto. - + """ Html body as plain text. Read only. :return: The html_body_text of this EmailDto. @@ -533,8 +541,7 @@ def html_body_text(self) -> str: @html_body_text.setter def html_body_text(self, html_body_text: str): - """Sets the html_body_text of this EmailDto. - + """ Html body as plain text. Read only. :param html_body_text: The html_body_text of this EmailDto. @@ -544,8 +551,7 @@ def html_body_text(self, html_body_text: str): @property def is_body_html(self) -> bool: - """Gets the is_body_html of this EmailDto. - + """ Indicates whether the message body is in Html. :return: The is_body_html of this EmailDto. @@ -555,8 +561,7 @@ def is_body_html(self) -> bool: @is_body_html.setter def is_body_html(self, is_body_html: bool): - """Sets the is_body_html of this EmailDto. - + """ Indicates whether the message body is in Html. :param is_body_html: The is_body_html of this EmailDto. @@ -568,8 +573,7 @@ def is_body_html(self, is_body_html: bool): @property def is_draft(self) -> bool: - """Gets the is_draft of this EmailDto. - + """ Indicates whether or not a message has been sent. :return: The is_draft of this EmailDto. @@ -579,8 +583,7 @@ def is_draft(self) -> bool: @is_draft.setter def is_draft(self, is_draft: bool): - """Sets the is_draft of this EmailDto. - + """ Indicates whether or not a message has been sent. :param is_draft: The is_draft of this EmailDto. @@ -592,8 +595,7 @@ def is_draft(self, is_draft: bool): @property def is_encrypted(self) -> bool: - """Gets the is_encrypted of this EmailDto. - + """ Indicates whether the message is encrypted. Read only. :return: The is_encrypted of this EmailDto. @@ -603,8 +605,7 @@ def is_encrypted(self) -> bool: @is_encrypted.setter def is_encrypted(self, is_encrypted: bool): - """Sets the is_encrypted of this EmailDto. - + """ Indicates whether the message is encrypted. Read only. :param is_encrypted: The is_encrypted of this EmailDto. @@ -616,8 +617,7 @@ def is_encrypted(self, is_encrypted: bool): @property def is_signed(self) -> bool: - """Gets the is_signed of this EmailDto. - + """ Indicates whether the message is signed. Read only. :return: The is_signed of this EmailDto. @@ -627,8 +627,7 @@ def is_signed(self) -> bool: @is_signed.setter def is_signed(self, is_signed: bool): - """Sets the is_signed of this EmailDto. - + """ Indicates whether the message is signed. Read only. :param is_signed: The is_signed of this EmailDto. @@ -640,8 +639,7 @@ def is_signed(self, is_signed: bool): @property def linked_resources(self) -> List[LinkedResource]: - """Gets the linked_resources of this EmailDto. - + """ Linked resources of message. :return: The linked_resources of this EmailDto. @@ -651,8 +649,7 @@ def linked_resources(self) -> List[LinkedResource]: @linked_resources.setter def linked_resources(self, linked_resources: List[LinkedResource]): - """Sets the linked_resources of this EmailDto. - + """ Linked resources of message. :param linked_resources: The linked_resources of this EmailDto. @@ -662,8 +659,7 @@ def linked_resources(self, linked_resources: List[LinkedResource]): @property def message_id(self) -> str: - """Gets the message_id of this EmailDto. - + """ Message id. :return: The message_id of this EmailDto. @@ -673,8 +669,7 @@ def message_id(self) -> str: @message_id.setter def message_id(self, message_id: str): - """Sets the message_id of this EmailDto. - + """ Message id. :param message_id: The message_id of this EmailDto. @@ -684,8 +679,7 @@ def message_id(self, message_id: str): @property def original_is_tnef(self) -> bool: - """Gets the original_is_tnef of this EmailDto. - + """ Indicates whether original EML message is in TNEF format. Read only. :return: The original_is_tnef of this EmailDto. @@ -695,8 +689,7 @@ def original_is_tnef(self) -> bool: @original_is_tnef.setter def original_is_tnef(self, original_is_tnef: bool): - """Sets the original_is_tnef of this EmailDto. - + """ Indicates whether original EML message is in TNEF format. Read only. :param original_is_tnef: The original_is_tnef of this EmailDto. @@ -708,8 +701,7 @@ def original_is_tnef(self, original_is_tnef: bool): @property def preferred_text_encoding(self) -> str: - """Gets the preferred_text_encoding of this EmailDto. - + """ Preferred encoding. :return: The preferred_text_encoding of this EmailDto. @@ -719,8 +711,7 @@ def preferred_text_encoding(self) -> str: @preferred_text_encoding.setter def preferred_text_encoding(self, preferred_text_encoding: str): - """Sets the preferred_text_encoding of this EmailDto. - + """ Preferred encoding. :param preferred_text_encoding: The preferred_text_encoding of this EmailDto. @@ -730,8 +721,7 @@ def preferred_text_encoding(self, preferred_text_encoding: str): @property def priority(self) -> str: - """Gets the priority of this EmailDto. - + """ Email priority status. Enum, available values: High, Low, Normal :return: The priority of this EmailDto. @@ -741,8 +731,7 @@ def priority(self) -> str: @priority.setter def priority(self, priority: str): - """Sets the priority of this EmailDto. - + """ Email priority status. Enum, available values: High, Low, Normal :param priority: The priority of this EmailDto. @@ -754,8 +743,7 @@ def priority(self, priority: str): @property def read_receipt_to(self) -> List[MailAddress]: - """Gets the read_receipt_to of this EmailDto. - + """ Read receipt addresses. :return: The read_receipt_to of this EmailDto. @@ -765,8 +753,7 @@ def read_receipt_to(self) -> List[MailAddress]: @read_receipt_to.setter def read_receipt_to(self, read_receipt_to: List[MailAddress]): - """Sets the read_receipt_to of this EmailDto. - + """ Read receipt addresses. :param read_receipt_to: The read_receipt_to of this EmailDto. @@ -776,8 +763,7 @@ def read_receipt_to(self, read_receipt_to: List[MailAddress]): @property def reply_to_list(self) -> List[MailAddress]: - """Gets the reply_to_list of this EmailDto. - + """ The list of addresses to reply to for the mail message. :return: The reply_to_list of this EmailDto. @@ -787,8 +773,7 @@ def reply_to_list(self) -> List[MailAddress]: @reply_to_list.setter def reply_to_list(self, reply_to_list: List[MailAddress]): - """Sets the reply_to_list of this EmailDto. - + """ The list of addresses to reply to for the mail message. :param reply_to_list: The reply_to_list of this EmailDto. @@ -798,8 +783,7 @@ def reply_to_list(self, reply_to_list: List[MailAddress]): @property def reverse_path(self) -> MailAddress: - """Gets the reverse_path of this EmailDto. - + """ ReversePath address. :return: The reverse_path of this EmailDto. @@ -809,8 +793,7 @@ def reverse_path(self) -> MailAddress: @reverse_path.setter def reverse_path(self, reverse_path: MailAddress): - """Sets the reverse_path of this EmailDto. - + """ ReversePath address. :param reverse_path: The reverse_path of this EmailDto. @@ -820,8 +803,7 @@ def reverse_path(self, reverse_path: MailAddress): @property def sender(self) -> MailAddress: - """Gets the sender of this EmailDto. - + """ Sender address. :return: The sender of this EmailDto. @@ -831,8 +813,7 @@ def sender(self) -> MailAddress: @sender.setter def sender(self, sender: MailAddress): - """Sets the sender of this EmailDto. - + """ Sender address. :param sender: The sender of this EmailDto. @@ -842,8 +823,7 @@ def sender(self, sender: MailAddress): @property def sensitivity(self) -> str: - """Gets the sensitivity of this EmailDto. - + """ Specifies the sensitivity of a MailMessage. Enum, available values: None, Normal, Personal, Private, CompanyConfidential :return: The sensitivity of this EmailDto. @@ -853,8 +833,7 @@ def sensitivity(self) -> str: @sensitivity.setter def sensitivity(self, sensitivity: str): - """Sets the sensitivity of this EmailDto. - + """ Specifies the sensitivity of a MailMessage. Enum, available values: None, Normal, Personal, Private, CompanyConfidential :param sensitivity: The sensitivity of this EmailDto. @@ -866,8 +845,7 @@ def sensitivity(self, sensitivity: str): @property def subject(self) -> str: - """Gets the subject of this EmailDto. - + """ Message subject. :return: The subject of this EmailDto. @@ -877,8 +855,7 @@ def subject(self) -> str: @subject.setter def subject(self, subject: str): - """Sets the subject of this EmailDto. - + """ Message subject. :param subject: The subject of this EmailDto. @@ -888,8 +865,7 @@ def subject(self, subject: str): @property def subject_encoding(self) -> str: - """Gets the subject_encoding of this EmailDto. - + """ Subject encoding. :return: The subject_encoding of this EmailDto. @@ -899,8 +875,7 @@ def subject_encoding(self) -> str: @subject_encoding.setter def subject_encoding(self, subject_encoding: str): - """Sets the subject_encoding of this EmailDto. - + """ Subject encoding. :param subject_encoding: The subject_encoding of this EmailDto. @@ -910,8 +885,7 @@ def subject_encoding(self, subject_encoding: str): @property def time_zone_offset(self) -> int: - """Gets the time_zone_offset of this EmailDto. - + """ Coordinated Universal Time (UTC) offset for the message dates. This property defines the time zone difference, between the local time and UTC represented as count of ticks (10 000 per millisecond). :return: The time_zone_offset of this EmailDto. @@ -921,8 +895,7 @@ def time_zone_offset(self) -> int: @time_zone_offset.setter def time_zone_offset(self, time_zone_offset: int): - """Sets the time_zone_offset of this EmailDto. - + """ Coordinated Universal Time (UTC) offset for the message dates. This property defines the time zone difference, between the local time and UTC represented as count of ticks (10 000 per millisecond). :param time_zone_offset: The time_zone_offset of this EmailDto. @@ -932,8 +905,7 @@ def time_zone_offset(self, time_zone_offset: int): @property def to(self) -> List[MailAddress]: - """Gets the to of this EmailDto. - + """ The address collection that contains the recipients of message. :return: The to of this EmailDto. @@ -943,8 +915,7 @@ def to(self) -> List[MailAddress]: @to.setter def to(self, to: List[MailAddress]): - """Sets the to of this EmailDto. - + """ The address collection that contains the recipients of message. :param to: The to of this EmailDto. @@ -954,8 +925,7 @@ def to(self, to: List[MailAddress]): @property def x_mailer(self) -> str: - """Gets the x_mailer of this EmailDto. - + """ The X-Mailer the software that created the e-mail message. :return: The x_mailer of this EmailDto. @@ -965,8 +935,7 @@ def x_mailer(self) -> str: @x_mailer.setter def x_mailer(self, x_mailer: str): - """Sets the x_mailer of this EmailDto. - + """ The X-Mailer the software that created the e-mail message. :param x_mailer: The x_mailer of this EmailDto. diff --git a/sdk/AsposeEmailCloudSdk/models/email_from_file_request.py b/sdk/AsposeEmailCloudSdk/models/email_from_file_request.py new file mode 100644 index 0000000..9f08f23 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/email_from_file_request.py @@ -0,0 +1,53 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class EmailFromFileRequest(object): + """ + Request model for email_from_file operation. + Initializes a new instance. + + :param format: Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + :param file: File to convert + :type file: str + """ + + def __init__(self, format: str, file: str): + """ + Request model for email_from_file operation. + Initializes a new instance. + + :param format: Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + :param file: File to convert + :type file: str + """ + + self.format = format + self.file = file diff --git a/sdk/AsposeEmailCloudSdk/models/email_get_as_file_request.py b/sdk/AsposeEmailCloudSdk/models/email_get_as_file_request.py new file mode 100644 index 0000000..2bb38ad --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/email_get_as_file_request.py @@ -0,0 +1,63 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class EmailGetAsFileRequest(object): + """ + Request model for email_get_as_file operation. + Initializes a new instance. + + :param file_name: Email document file name + :type file_name: str + :param format: File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + :param storage: Storage name + :type storage: str + :param folder: Path to folder in storage + :type folder: str + """ + + def __init__(self, file_name: str, format: str, storage: str = None, folder: str = None): + """ + Request model for email_get_as_file operation. + Initializes a new instance. + + :param file_name: Email document file name + :type file_name: str + :param format: File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + :param storage: Storage name + :type storage: str + :param folder: Path to folder in storage + :type folder: str + """ + + self.file_name = file_name + self.format = format + self.storage = storage + self.folder = folder diff --git a/sdk/AsposeEmailCloudSdk/models/email_get_list_request.py b/sdk/AsposeEmailCloudSdk/models/email_get_list_request.py new file mode 100644 index 0000000..e9caecb --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/email_get_list_request.py @@ -0,0 +1,69 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class EmailGetListRequest(object): + """ + Request model for email_get_list operation. + Initializes a new instance. + + :param format: Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + :param folder: Path to folder in storage. + :type folder: str + :param storage: Storage name. + :type storage: str + :param items_per_page: Count of items on page. + :type items_per_page: int + :param page_number: Page number. + :type page_number: int + """ + + def __init__(self, format: str, folder: str = None, storage: str = None, items_per_page: int = None, page_number: int = None): + """ + Request model for email_get_list operation. + Initializes a new instance. + + :param format: Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + :param folder: Path to folder in storage. + :type folder: str + :param storage: Storage name. + :type storage: str + :param items_per_page: Count of items on page. + :type items_per_page: int + :param page_number: Page number. + :type page_number: int + """ + + self.format = format + self.folder = folder + self.storage = storage + self.items_per_page = items_per_page + self.page_number = page_number + diff --git a/sdk/AsposeEmailCloudSdk/models/email_get_request.py b/sdk/AsposeEmailCloudSdk/models/email_get_request.py new file mode 100644 index 0000000..30c2065 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/email_get_request.py @@ -0,0 +1,63 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class EmailGetRequest(object): + """ + Request model for email_get operation. + Initializes a new instance. + + :param format: Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + :param file_name: Email document file name. + :type file_name: str + :param folder: Path to folder in storage. + :type folder: str + :param storage: Storage name. + :type storage: str + """ + + def __init__(self, format: str, file_name: str, folder: str = None, storage: str = None): + """ + Request model for email_get operation. + Initializes a new instance. + + :param format: Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + :param file_name: Email document file name. + :type file_name: str + :param folder: Path to folder in storage. + :type folder: str + :param storage: Storage name. + :type storage: str + """ + + self.format = format + self.file_name = file_name + self.folder = folder + self.storage = storage diff --git a/sdk/AsposeEmailCloudSdk/models/email_list.py b/sdk/AsposeEmailCloudSdk/models/email_list.py new file mode 100644 index 0000000..74d10ce --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/email_list.py @@ -0,0 +1,109 @@ +# 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 +from AsposeEmailCloudSdk.models.list_response_of_email_dto import ListResponseOfEmailDto + + +class EmailList(ListResponseOfEmailDto): + """Email document list. + """ + + """ + 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[EmailDto]' + } + + attribute_map = { + 'value': 'value' + } + + def __init__(self, value: List[EmailDto] = None): + """ + Email document list. + :param value: + :type value: List[EmailDto] + """ + super(EmailList, 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, EmailList): + 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_property_response.py b/sdk/AsposeEmailCloudSdk/models/email_property_response.py deleted file mode 100644 index 59e56d4..0000000 --- a/sdk/AsposeEmailCloudSdk/models/email_property_response.py +++ /dev/null @@ -1,129 +0,0 @@ -# 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_property import EmailProperty - - -class EmailPropertyResponse(object): - """Email property response. - """ - - """ - 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 = { - 'email_property': 'EmailProperty' - } - - attribute_map = { - 'email_property': 'emailProperty' - } - - def __init__(self, email_property: EmailProperty = None): - """ - Email property response. - :param email_property (EmailProperty) Gets or sets email property. - """ - - self._email_property = None - - if email_property is not None: - self.email_property = email_property - - @property - def email_property(self) -> EmailProperty: - """Gets the email_property of this EmailPropertyResponse. - - Gets or sets email property. - - :return: The email_property of this EmailPropertyResponse. - :rtype: EmailProperty - """ - return self._email_property - - @email_property.setter - def email_property(self, email_property: EmailProperty): - """Sets the email_property of this EmailPropertyResponse. - - Gets or sets email property. - - :param email_property: The email_property of this EmailPropertyResponse. - :type: EmailProperty - """ - self._email_property = email_property - - 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, EmailPropertyResponse): - 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_save_request.py b/sdk/AsposeEmailCloudSdk/models/email_save_request.py new file mode 100644 index 0000000..c93ecf2 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/email_save_request.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.email_dto import EmailDto +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation +from AsposeEmailCloudSdk.models.storage_model_of_email_dto import StorageModelOfEmailDto + + +class EmailSaveRequest(StorageModelOfEmailDto): + """Email save to storage 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 = { + 'storage_file': 'StorageFileLocation', + 'value': 'EmailDto', + 'format': 'str' + } + + attribute_map = { + 'storage_file': 'storageFile', + 'value': 'value', + 'format': 'format' + } + + def __init__(self, storage_file: StorageFileLocation = None, value: EmailDto = None, format: str = None): + """ + Email save to storage request + :param storage_file: + :type storage_file: StorageFileLocation + :param value: + :type value: EmailDto + :param format: Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + """ + super(EmailSaveRequest, self).__init__() + + self._format = None + + if storage_file is not None: + self.storage_file = storage_file + if value is not None: + self.value = value + if format is not None: + self.format = format + + + @property + def format(self) -> str: + """ + Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + + :return: The format of this EmailSaveRequest. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format: str): + """ + Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + + :param format: The format of this EmailSaveRequest. + :type: str + """ + if format is None: + raise ValueError("Invalid value for `format`, must not be `None`") + self._format = format + + 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, EmailSaveRequest): + 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_dto_list.py b/sdk/AsposeEmailCloudSdk/models/email_storage_list.py similarity index 88% rename from sdk/AsposeEmailCloudSdk/models/email_dto_list.py rename to sdk/AsposeEmailCloudSdk/models/email_storage_list.py index abc4d37..5ebbba3 100644 --- a/sdk/AsposeEmailCloudSdk/models/email_dto_list.py +++ b/sdk/AsposeEmailCloudSdk/models/email_storage_list.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -34,8 +34,8 @@ from AsposeEmailCloudSdk.models.storage_model_of_email_dto import StorageModelOfEmailDto -class EmailDtoList(ListResponseOfStorageModelOfEmailDto): - """List of email documents from storage +class EmailStorageList(ListResponseOfStorageModelOfEmailDto): + """Email models list with corresponding storage locations. """ """ @@ -55,14 +55,16 @@ class EmailDtoList(ListResponseOfStorageModelOfEmailDto): def __init__(self, value: List[StorageModelOfEmailDto] = None): """ - List of email documents from storage - :param value (List[StorageModelOfEmailDto]) + Email models list with corresponding storage locations. + :param value: + :type value: List[StorageModelOfEmailDto] """ - super(EmailDtoList, self).__init__() + super(EmailStorageList, self).__init__() if value is not None: self.value = value + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -97,7 +99,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, EmailDtoList): + if not isinstance(other, EmailStorageList): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/email_thread.py b/sdk/AsposeEmailCloudSdk/models/email_thread.py index 106ff1b..3b35dde 100644 --- a/sdk/AsposeEmailCloudSdk/models/email_thread.py +++ b/sdk/AsposeEmailCloudSdk/models/email_thread.py @@ -61,10 +61,14 @@ class EmailThread(object): 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 + :param id: Thread identifier + :type id: str + :param subject: Thread subject + :type subject: str + :param messages: List of messages in thread + :type messages: List[EmailDto] + :param folder: Thread folder location + :type folder: str """ self._id = None @@ -81,10 +85,10 @@ def __init__(self, id: str = None, subject: str = None, messages: List[EmailDto] 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. @@ -94,8 +98,7 @@ def id(self) -> str: @id.setter def id(self, id: str): - """Sets the id of this EmailThread. - + """ Thread identifier :param id: The id of this EmailThread. @@ -105,8 +108,7 @@ def id(self, id: str): @property def subject(self) -> str: - """Gets the subject of this EmailThread. - + """ Thread subject :return: The subject of this EmailThread. @@ -116,8 +118,7 @@ def subject(self) -> str: @subject.setter def subject(self, subject: str): - """Sets the subject of this EmailThread. - + """ Thread subject :param subject: The subject of this EmailThread. @@ -127,8 +128,7 @@ def subject(self, subject: str): @property def messages(self) -> List[EmailDto]: - """Gets the messages of this EmailThread. - + """ List of messages in thread :return: The messages of this EmailThread. @@ -138,8 +138,7 @@ def messages(self) -> List[EmailDto]: @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. @@ -149,8 +148,7 @@ def messages(self, messages: List[EmailDto]): @property def folder(self) -> str: - """Gets the folder of this EmailThread. - + """ Thread folder location :return: The folder of this EmailThread. @@ -160,8 +158,7 @@ def folder(self) -> str: @folder.setter def folder(self, folder: str): - """Sets the folder of this EmailThread. - + """ Thread folder location :param folder: The folder of this EmailThread. diff --git a/sdk/AsposeEmailCloudSdk/models/email_thread_list.py b/sdk/AsposeEmailCloudSdk/models/email_thread_list.py index bb93c43..aa191c5 100644 --- a/sdk/AsposeEmailCloudSdk/models/email_thread_list.py +++ b/sdk/AsposeEmailCloudSdk/models/email_thread_list.py @@ -56,13 +56,15 @@ class EmailThreadList(ListResponseOfEmailThread): def __init__(self, value: List[EmailThread] = None): """ List of email threads - :param value (List[EmailThread]) + :param value: + :type 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 = {} 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 694eb2b..af6876d 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 @@ -55,8 +55,10 @@ class EnumWithCustomOfAssociatedPersonCategory(object): def __init__(self, value: str = None, description: str = None): """ - :param value (str) Associated person's category. Enum, available values: Spouse, Child, Mother, Father, Parent, Brother, Sister, Friend, Relative, Manager, Assistant, ReferredBy, Partner, DomesticPartner, Custom - :param description (str) + :param value: Associated person's category. Enum, available values: Spouse, Child, Mother, Father, Parent, Brother, Sister, Friend, Relative, Manager, Assistant, ReferredBy, Partner, DomesticPartner, Custom + :type value: str + :param description: + :type description: str """ self._value = None @@ -67,10 +69,10 @@ def __init__(self, value: str = None, description: str = None): if description is not None: self.description = description + @property def value(self) -> str: - """Gets the value of this EnumWithCustomOfAssociatedPersonCategory. - + """ Associated person's category. Enum, available values: Spouse, Child, Mother, Father, Parent, Brother, Sister, Friend, Relative, Manager, Assistant, ReferredBy, Partner, DomesticPartner, Custom :return: The value of this EnumWithCustomOfAssociatedPersonCategory. @@ -80,8 +82,7 @@ def value(self) -> str: @value.setter def value(self, value: str): - """Sets the value of this EnumWithCustomOfAssociatedPersonCategory. - + """ Associated person's category. Enum, available values: Spouse, Child, Mother, Father, Parent, Brother, Sister, Friend, Relative, Manager, Assistant, ReferredBy, Partner, DomesticPartner, Custom :param value: The value of this EnumWithCustomOfAssociatedPersonCategory. @@ -89,12 +90,14 @@ def value(self, value: str): """ if value is None: raise ValueError("Invalid value for `value`, must not be `None`") + if value is not None and len(value) < 1: + raise ValueError("Invalid value for `value`, length must be greater than or equal to `1`") self._value = value @property def description(self) -> str: - """Gets the description of this EnumWithCustomOfAssociatedPersonCategory. - + """ + Gets the description of this EnumWithCustomOfAssociatedPersonCategory. :return: The description of this EnumWithCustomOfAssociatedPersonCategory. :rtype: str @@ -103,8 +106,8 @@ def description(self) -> str: @description.setter def description(self, description: str): - """Sets the description of this EnumWithCustomOfAssociatedPersonCategory. - + """ + Sets the description of this EnumWithCustomOfAssociatedPersonCategory. :param description: The description of this EnumWithCustomOfAssociatedPersonCategory. :type: str 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 95b4b24..87b539c 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 @@ -55,8 +55,10 @@ class EnumWithCustomOfEmailAddressCategory(object): def __init__(self, value: str = None, description: str = None): """ - :param value (str) Represents category for an email address. Enum, available values: Home, Work, Custom, Email1, Email2, Email3 - :param description (str) + :param value: Represents category for an email address. Enum, available values: Home, Work, Custom, Email1, Email2, Email3 + :type value: str + :param description: + :type description: str """ self._value = None @@ -67,10 +69,10 @@ def __init__(self, value: str = None, description: str = None): if description is not None: self.description = description + @property def value(self) -> str: - """Gets the value of this EnumWithCustomOfEmailAddressCategory. - + """ Represents category for an email address. Enum, available values: Home, Work, Custom, Email1, Email2, Email3 :return: The value of this EnumWithCustomOfEmailAddressCategory. @@ -80,8 +82,7 @@ def value(self) -> str: @value.setter def value(self, value: str): - """Sets the value of this EnumWithCustomOfEmailAddressCategory. - + """ Represents category for an email address. Enum, available values: Home, Work, Custom, Email1, Email2, Email3 :param value: The value of this EnumWithCustomOfEmailAddressCategory. @@ -89,12 +90,14 @@ def value(self, value: str): """ if value is None: raise ValueError("Invalid value for `value`, must not be `None`") + if value is not None and len(value) < 1: + raise ValueError("Invalid value for `value`, length must be greater than or equal to `1`") self._value = value @property def description(self) -> str: - """Gets the description of this EnumWithCustomOfEmailAddressCategory. - + """ + Gets the description of this EnumWithCustomOfEmailAddressCategory. :return: The description of this EnumWithCustomOfEmailAddressCategory. :rtype: str @@ -103,8 +106,8 @@ def description(self) -> str: @description.setter def description(self, description: str): - """Sets the description of this EnumWithCustomOfEmailAddressCategory. - + """ + Sets the description of this EnumWithCustomOfEmailAddressCategory. :param description: The description of this EnumWithCustomOfEmailAddressCategory. :type: str 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 f987f48..1b4d03f 100644 --- a/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_event_category.py +++ b/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_event_category.py @@ -55,8 +55,10 @@ class EnumWithCustomOfEventCategory(object): def __init__(self, value: str = None, description: str = None): """ - :param value (str) Event category. Enum, available values: Custom, Birthday, Anniversary - :param description (str) + :param value: Event category. Enum, available values: Custom, Birthday, Anniversary + :type value: str + :param description: + :type description: str """ self._value = None @@ -67,10 +69,10 @@ def __init__(self, value: str = None, description: str = None): if description is not None: self.description = description + @property def value(self) -> str: - """Gets the value of this EnumWithCustomOfEventCategory. - + """ Event category. Enum, available values: Custom, Birthday, Anniversary :return: The value of this EnumWithCustomOfEventCategory. @@ -80,8 +82,7 @@ def value(self) -> str: @value.setter def value(self, value: str): - """Sets the value of this EnumWithCustomOfEventCategory. - + """ Event category. Enum, available values: Custom, Birthday, Anniversary :param value: The value of this EnumWithCustomOfEventCategory. @@ -89,12 +90,14 @@ def value(self, value: str): """ if value is None: raise ValueError("Invalid value for `value`, must not be `None`") + if value is not None and len(value) < 1: + raise ValueError("Invalid value for `value`, length must be greater than or equal to `1`") self._value = value @property def description(self) -> str: - """Gets the description of this EnumWithCustomOfEventCategory. - + """ + Gets the description of this EnumWithCustomOfEventCategory. :return: The description of this EnumWithCustomOfEventCategory. :rtype: str @@ -103,8 +106,8 @@ def description(self) -> str: @description.setter def description(self, description: str): - """Sets the description of this EnumWithCustomOfEventCategory. - + """ + Sets the description of this EnumWithCustomOfEventCategory. :param description: The description of this EnumWithCustomOfEventCategory. :type: str 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 285050d..d43a63b 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 @@ -55,8 +55,10 @@ class EnumWithCustomOfInstantMessengerCategory(object): def __init__(self, value: str = None, description: str = None): """ - :param value (str) Instant messenger address category. Enum, available values: GoogleTalk, Aim, Yahoo, Skype, Qq, Msn, Icq, Jabber, Custom, ImAddress1, ImAddress2, ImAddress3 - :param description (str) + :param value: Instant messenger address category. Enum, available values: GoogleTalk, Aim, Yahoo, Skype, Qq, Msn, Icq, Jabber, Custom, ImAddress1, ImAddress2, ImAddress3 + :type value: str + :param description: + :type description: str """ self._value = None @@ -67,10 +69,10 @@ def __init__(self, value: str = None, description: str = None): if description is not None: self.description = description + @property def value(self) -> str: - """Gets the value of this EnumWithCustomOfInstantMessengerCategory. - + """ Instant messenger address category. Enum, available values: GoogleTalk, Aim, Yahoo, Skype, Qq, Msn, Icq, Jabber, Custom, ImAddress1, ImAddress2, ImAddress3 :return: The value of this EnumWithCustomOfInstantMessengerCategory. @@ -80,8 +82,7 @@ def value(self) -> str: @value.setter def value(self, value: str): - """Sets the value of this EnumWithCustomOfInstantMessengerCategory. - + """ Instant messenger address category. Enum, available values: GoogleTalk, Aim, Yahoo, Skype, Qq, Msn, Icq, Jabber, Custom, ImAddress1, ImAddress2, ImAddress3 :param value: The value of this EnumWithCustomOfInstantMessengerCategory. @@ -89,12 +90,14 @@ def value(self, value: str): """ if value is None: raise ValueError("Invalid value for `value`, must not be `None`") + if value is not None and len(value) < 1: + raise ValueError("Invalid value for `value`, length must be greater than or equal to `1`") self._value = value @property def description(self) -> str: - """Gets the description of this EnumWithCustomOfInstantMessengerCategory. - + """ + Gets the description of this EnumWithCustomOfInstantMessengerCategory. :return: The description of this EnumWithCustomOfInstantMessengerCategory. :rtype: str @@ -103,8 +106,8 @@ def description(self) -> str: @description.setter def description(self, description: str): - """Sets the description of this EnumWithCustomOfInstantMessengerCategory. - + """ + Sets the description of this EnumWithCustomOfInstantMessengerCategory. :param description: The description of this EnumWithCustomOfInstantMessengerCategory. :type: str 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 d5ebd85..1d65b3f 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 @@ -55,8 +55,10 @@ class EnumWithCustomOfPhoneNumberCategory(object): def __init__(self, value: str = None, description: str = None): """ - :param value (str) Phone number category. Enum, available values: Custom, Home, Work, Office, Mobile, Fax, HomeFax, WorkFax, Pager, Car, Isdn, Telex, Callback, Radio, Company, TtyTdd, Assistant, Primary - :param description (str) + :param value: Phone number category. Enum, available values: Custom, Home, Work, Office, Mobile, Fax, HomeFax, WorkFax, Pager, Car, Isdn, Telex, Callback, Radio, Company, TtyTdd, Assistant, Primary + :type value: str + :param description: + :type description: str """ self._value = None @@ -67,10 +69,10 @@ def __init__(self, value: str = None, description: str = None): if description is not None: self.description = description + @property def value(self) -> str: - """Gets the value of this EnumWithCustomOfPhoneNumberCategory. - + """ Phone number category. Enum, available values: Custom, Home, Work, Office, Mobile, Fax, HomeFax, WorkFax, Pager, Car, Isdn, Telex, Callback, Radio, Company, TtyTdd, Assistant, Primary :return: The value of this EnumWithCustomOfPhoneNumberCategory. @@ -80,8 +82,7 @@ def value(self) -> str: @value.setter def value(self, value: str): - """Sets the value of this EnumWithCustomOfPhoneNumberCategory. - + """ Phone number category. Enum, available values: Custom, Home, Work, Office, Mobile, Fax, HomeFax, WorkFax, Pager, Car, Isdn, Telex, Callback, Radio, Company, TtyTdd, Assistant, Primary :param value: The value of this EnumWithCustomOfPhoneNumberCategory. @@ -89,12 +90,14 @@ def value(self, value: str): """ if value is None: raise ValueError("Invalid value for `value`, must not be `None`") + if value is not None and len(value) < 1: + raise ValueError("Invalid value for `value`, length must be greater than or equal to `1`") self._value = value @property def description(self) -> str: - """Gets the description of this EnumWithCustomOfPhoneNumberCategory. - + """ + Gets the description of this EnumWithCustomOfPhoneNumberCategory. :return: The description of this EnumWithCustomOfPhoneNumberCategory. :rtype: str @@ -103,8 +106,8 @@ def description(self) -> str: @description.setter def description(self, description: str): - """Sets the description of this EnumWithCustomOfPhoneNumberCategory. - + """ + Sets the description of this EnumWithCustomOfPhoneNumberCategory. :param description: The description of this EnumWithCustomOfPhoneNumberCategory. :type: str 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 fd57b2a..9051118 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 @@ -55,8 +55,10 @@ class EnumWithCustomOfPostalAddressCategory(object): def __init__(self, value: str = None, description: str = None): """ - :param value (str) Address category. Enum, available values: Home, Work, Custom - :param description (str) + :param value: Address category. Enum, available values: Home, Work, Custom + :type value: str + :param description: + :type description: str """ self._value = None @@ -67,10 +69,10 @@ def __init__(self, value: str = None, description: str = None): if description is not None: self.description = description + @property def value(self) -> str: - """Gets the value of this EnumWithCustomOfPostalAddressCategory. - + """ Address category. Enum, available values: Home, Work, Custom :return: The value of this EnumWithCustomOfPostalAddressCategory. @@ -80,8 +82,7 @@ def value(self) -> str: @value.setter def value(self, value: str): - """Sets the value of this EnumWithCustomOfPostalAddressCategory. - + """ Address category. Enum, available values: Home, Work, Custom :param value: The value of this EnumWithCustomOfPostalAddressCategory. @@ -89,12 +90,14 @@ def value(self, value: str): """ if value is None: raise ValueError("Invalid value for `value`, must not be `None`") + if value is not None and len(value) < 1: + raise ValueError("Invalid value for `value`, length must be greater than or equal to `1`") self._value = value @property def description(self) -> str: - """Gets the description of this EnumWithCustomOfPostalAddressCategory. - + """ + Gets the description of this EnumWithCustomOfPostalAddressCategory. :return: The description of this EnumWithCustomOfPostalAddressCategory. :rtype: str @@ -103,8 +106,8 @@ def description(self) -> str: @description.setter def description(self, description: str): - """Sets the description of this EnumWithCustomOfPostalAddressCategory. - + """ + Sets the description of this EnumWithCustomOfPostalAddressCategory. :param description: The description of this EnumWithCustomOfPostalAddressCategory. :type: str 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 862e639..aa82131 100644 --- a/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_url_category.py +++ b/sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_url_category.py @@ -55,8 +55,10 @@ class EnumWithCustomOfUrlCategory(object): def __init__(self, value: str = None, description: str = None): """ - :param value (str) Url category. Enum, available values: Profile, HomePage, Home, Work, Blog, Ftp, Custom - :param description (str) + :param value: Url category. Enum, available values: Profile, HomePage, Home, Work, Blog, Ftp, Custom + :type value: str + :param description: + :type description: str """ self._value = None @@ -67,10 +69,10 @@ def __init__(self, value: str = None, description: str = None): if description is not None: self.description = description + @property def value(self) -> str: - """Gets the value of this EnumWithCustomOfUrlCategory. - + """ Url category. Enum, available values: Profile, HomePage, Home, Work, Blog, Ftp, Custom :return: The value of this EnumWithCustomOfUrlCategory. @@ -80,8 +82,7 @@ def value(self) -> str: @value.setter def value(self, value: str): - """Sets the value of this EnumWithCustomOfUrlCategory. - + """ Url category. Enum, available values: Profile, HomePage, Home, Work, Blog, Ftp, Custom :param value: The value of this EnumWithCustomOfUrlCategory. @@ -89,12 +90,14 @@ def value(self, value: str): """ if value is None: raise ValueError("Invalid value for `value`, must not be `None`") + if value is not None and len(value) < 1: + raise ValueError("Invalid value for `value`, length must be greater than or equal to `1`") self._value = value @property def description(self) -> str: - """Gets the description of this EnumWithCustomOfUrlCategory. - + """ + Gets the description of this EnumWithCustomOfUrlCategory. :return: The description of this EnumWithCustomOfUrlCategory. :rtype: str @@ -103,8 +106,8 @@ def description(self) -> str: @description.setter def description(self, description: str): - """Sets the description of this EnumWithCustomOfUrlCategory. - + """ + Sets the description of this EnumWithCustomOfUrlCategory. :param description: The description of this EnumWithCustomOfUrlCategory. :type: str diff --git a/sdk/AsposeEmailCloudSdk/models/error.py b/sdk/AsposeEmailCloudSdk/models/error.py index b08269b..f522337 100644 --- a/sdk/AsposeEmailCloudSdk/models/error.py +++ b/sdk/AsposeEmailCloudSdk/models/error.py @@ -34,7 +34,7 @@ class Error(object): - """ + """Error """ """ @@ -60,11 +60,15 @@ class Error(object): def __init__(self, code: str = None, message: str = None, description: str = None, inner_error: ErrorDetails = None): """ - - :param code (str) - :param message (str) - :param description (str) - :param inner_error (ErrorDetails) + Error + :param code: Code + :type code: str + :param message: Message + :type message: str + :param description: Description + :type description: str + :param inner_error: Inner Error + :type inner_error: ErrorDetails """ self._code = None @@ -81,10 +85,11 @@ def __init__(self, code: str = None, message: str = None, description: str = Non if inner_error is not None: self.inner_error = inner_error + @property def code(self) -> str: - """Gets the code of this Error. - + """ + Code :return: The code of this Error. :rtype: str @@ -93,8 +98,8 @@ def code(self) -> str: @code.setter def code(self, code: str): - """Sets the code of this Error. - + """ + Code :param code: The code of this Error. :type: str @@ -103,8 +108,8 @@ def code(self, code: str): @property def message(self) -> str: - """Gets the message of this Error. - + """ + Message :return: The message of this Error. :rtype: str @@ -113,8 +118,8 @@ def message(self) -> str: @message.setter def message(self, message: str): - """Sets the message of this Error. - + """ + Message :param message: The message of this Error. :type: str @@ -123,8 +128,8 @@ def message(self, message: str): @property def description(self) -> str: - """Gets the description of this Error. - + """ + Description :return: The description of this Error. :rtype: str @@ -133,8 +138,8 @@ def description(self) -> str: @description.setter def description(self, description: str): - """Sets the description of this Error. - + """ + Description :param description: The description of this Error. :type: str @@ -143,8 +148,8 @@ def description(self, description: str): @property def inner_error(self) -> ErrorDetails: - """Gets the inner_error of this Error. - + """ + Inner Error :return: The inner_error of this Error. :rtype: ErrorDetails @@ -153,8 +158,8 @@ def inner_error(self) -> ErrorDetails: @inner_error.setter 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 7c92346..c3d4b26 100644 --- a/sdk/AsposeEmailCloudSdk/models/error_details.py +++ b/sdk/AsposeEmailCloudSdk/models/error_details.py @@ -32,7 +32,7 @@ class ErrorDetails(object): - """ + """The error details """ """ @@ -54,9 +54,11 @@ class ErrorDetails(object): def __init__(self, request_id: str = None, _date: datetime = None): """ - - :param request_id (str) - :param _date (datetime) + The error details + :param request_id: The request id + :type request_id: str + :param _date: Date + :type _date: datetime """ self._request_id = None @@ -67,10 +69,11 @@ def __init__(self, request_id: str = None, _date: datetime = None): if _date is not None: self._date = _date + @property def request_id(self) -> str: - """Gets the request_id of this ErrorDetails. - + """ + The request id :return: The request_id of this ErrorDetails. :rtype: str @@ -79,8 +82,8 @@ def request_id(self) -> str: @request_id.setter 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 @@ -89,8 +92,8 @@ def request_id(self, request_id: str): @property def _date(self) -> datetime: - """Gets the _date of this ErrorDetails. - + """ + Date :return: The _date of this ErrorDetails. :rtype: datetime @@ -99,8 +102,8 @@ def _date(self) -> datetime: @_date.setter 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 62a41f7..72254eb 100644 --- a/sdk/AsposeEmailCloudSdk/models/file_version.py +++ b/sdk/AsposeEmailCloudSdk/models/file_version.py @@ -34,7 +34,7 @@ class FileVersion(StorageFile): - """ + """File Version """ """ @@ -66,14 +66,21 @@ 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): """ - - :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) + File Version + :param name: File or folder name. + :type name: str + :param is_folder: True if it is a folder. + :type is_folder: bool + :param modified_date: File or folder last modified DateTime. + :type modified_date: datetime + :param size: File or folder size. + :type size: int + :param path: File or folder path. + :type path: str + :param version_id: File Version ID. + :type version_id: str + :param is_latest: Specifies whether the file is (true) or is not (false) the latest version of an file. + :type is_latest: bool """ super(FileVersion, self).__init__() @@ -95,10 +102,11 @@ def __init__(self, name: str = None, is_folder: bool = None, modified_date: date if is_latest is not None: self.is_latest = is_latest + @property def version_id(self) -> str: - """Gets the version_id of this FileVersion. - + """ + File Version ID. :return: The version_id of this FileVersion. :rtype: str @@ -107,8 +115,8 @@ def version_id(self) -> str: @version_id.setter 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 @@ -117,8 +125,8 @@ def version_id(self, version_id: str): @property 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 @@ -127,8 +135,8 @@ def is_latest(self) -> bool: @is_latest.setter 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 d171a07..6bb92a0 100644 --- a/sdk/AsposeEmailCloudSdk/models/file_versions.py +++ b/sdk/AsposeEmailCloudSdk/models/file_versions.py @@ -34,7 +34,7 @@ class FileVersions(object): - """ + """File versions FileVersion. """ """ @@ -54,8 +54,9 @@ class FileVersions(object): def __init__(self, value: List[FileVersion] = None): """ - - :param value (List[FileVersion]) + File versions FileVersion. + :param value: File versions FileVersion. + :type value: List[FileVersion] """ self._value = None @@ -63,10 +64,11 @@ def __init__(self, value: List[FileVersion] = None): if value is not None: self.value = value + @property def value(self) -> List[FileVersion]: - """Gets the value of this FileVersions. - + """ + File versions FileVersion. :return: The value of this FileVersions. :rtype: list[FileVersion] @@ -75,8 +77,8 @@ def value(self) -> List[FileVersion]: @value.setter 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 d2adbe3..04560f8 100644 --- a/sdk/AsposeEmailCloudSdk/models/files_list.py +++ b/sdk/AsposeEmailCloudSdk/models/files_list.py @@ -34,7 +34,7 @@ class FilesList(object): - """ + """Files list """ """ @@ -54,8 +54,9 @@ class FilesList(object): def __init__(self, value: List[StorageFile] = None): """ - - :param value (List[StorageFile]) + Files list + :param value: Files and folders contained by folder StorageFile. + :type value: List[StorageFile] """ self._value = None @@ -63,10 +64,11 @@ def __init__(self, value: List[StorageFile] = None): if value is not None: self.value = value + @property 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] @@ -75,8 +77,8 @@ def value(self) -> List[StorageFile]: @value.setter 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 cec1ce5..5eaa38c 100644 --- a/sdk/AsposeEmailCloudSdk/models/files_upload_result.py +++ b/sdk/AsposeEmailCloudSdk/models/files_upload_result.py @@ -34,7 +34,7 @@ class FilesUploadResult(object): - """ + """File upload result """ """ @@ -56,9 +56,11 @@ class FilesUploadResult(object): def __init__(self, uploaded: List[str] = None, errors: List[Error] = None): """ - - :param uploaded (List[str]) - :param errors (List[Error]) + File upload result + :param uploaded: List of uploaded file names + :type uploaded: List[str] + :param errors: List of errors. + :type errors: List[Error] """ self._uploaded = None @@ -69,10 +71,11 @@ def __init__(self, uploaded: List[str] = None, errors: List[Error] = None): if errors is not None: self.errors = errors + @property 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] @@ -81,8 +84,8 @@ def uploaded(self) -> List[str]: @uploaded.setter 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] @@ -91,8 +94,8 @@ def uploaded(self, uploaded: List[str]): @property def errors(self) -> List[Error]: - """Gets the errors of this FilesUploadResult. - + """ + List of errors. :return: The errors of this FilesUploadResult. :rtype: list[Error] @@ -101,8 +104,8 @@ def errors(self) -> List[Error]: @errors.setter 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/get_disc_usage_request.py b/sdk/AsposeEmailCloudSdk/models/get_disc_usage_request.py new file mode 100644 index 0000000..837d42e --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/get_disc_usage_request.py @@ -0,0 +1,48 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class GetDiscUsageRequest(object): + """ + Request model for get_disc_usage operation. + Initializes a new instance. + + :param storage_name: Storage name + :type storage_name: str + """ + + def __init__(self, storage_name: str = None): + """ + Request model for get_disc_usage operation. + Initializes a new instance. + + :param storage_name: Storage name + :type storage_name: str + """ + + self.storage_name = storage_name diff --git a/sdk/AsposeEmailCloudSdk/models/get_file_versions_request.py b/sdk/AsposeEmailCloudSdk/models/get_file_versions_request.py new file mode 100644 index 0000000..a635dd1 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/get_file_versions_request.py @@ -0,0 +1,53 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class GetFileVersionsRequest(object): + """ + Request model for get_file_versions operation. + Initializes a new instance. + + :param path: File path e.g. '/file.ext' + :type path: str + :param storage_name: Storage name + :type storage_name: str + """ + + def __init__(self, path: str, storage_name: str = None): + """ + Request model for get_file_versions operation. + Initializes a new instance. + + :param path: File path e.g. '/file.ext' + :type path: str + :param storage_name: Storage name + :type storage_name: str + """ + + self.path = path + self.storage_name = storage_name diff --git a/sdk/AsposeEmailCloudSdk/models/get_files_list_request.py b/sdk/AsposeEmailCloudSdk/models/get_files_list_request.py new file mode 100644 index 0000000..5148542 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/get_files_list_request.py @@ -0,0 +1,53 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class GetFilesListRequest(object): + """ + Request model for get_files_list operation. + Initializes a new instance. + + :param path: Folder path e.g. '/folder' + :type path: str + :param storage_name: Storage name + :type storage_name: str + """ + + def __init__(self, path: str, storage_name: str = None): + """ + Request model for get_files_list operation. + Initializes a new instance. + + :param path: Folder path e.g. '/folder' + :type path: str + :param storage_name: Storage name + :type storage_name: str + """ + + self.path = path + self.storage_name = storage_name diff --git a/sdk/AsposeEmailCloudSdk/models/hierarchical_object.py b/sdk/AsposeEmailCloudSdk/models/hierarchical_object.py deleted file mode 100644 index bbf26e7..0000000 --- a/sdk/AsposeEmailCloudSdk/models/hierarchical_object.py +++ /dev/null @@ -1,140 +0,0 @@ -# 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.base_object import BaseObject - - -class HierarchicalObject(BaseObject): - """Objects' properties hierarchical representation - """ - - """ - 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 = { - 'name': 'str', - 'type': 'str', - 'internal_properties': 'list[BaseObject]' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'internal_properties': 'internalProperties' - } - - def __init__(self, name: str = None, type: str = None, internal_properties: List[BaseObject] = None): - """ - Objects' properties hierarchical representation - :param name (str) Gets or sets the name of an object. - :param type (str) Property type. Used for deserialization purposes - :param internal_properties (List[BaseObject]) List of internal properties - """ - super(HierarchicalObject, self).__init__() - - self._internal_properties = None - - if name is not None: - self.name = name - if type is not None: - self.type = type - if internal_properties is not None: - self.internal_properties = internal_properties - - @property - def internal_properties(self) -> List[BaseObject]: - """Gets the internal_properties of this HierarchicalObject. - - List of internal properties - - :return: The internal_properties of this HierarchicalObject. - :rtype: list[BaseObject] - """ - return self._internal_properties - - @internal_properties.setter - def internal_properties(self, internal_properties: List[BaseObject]): - """Sets the internal_properties of this HierarchicalObject. - - List of internal properties - - :param internal_properties: The internal_properties of this HierarchicalObject. - :type: list[BaseObject] - """ - self._internal_properties = internal_properties - - 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, HierarchicalObject): - 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/hierarchical_object_request.py b/sdk/AsposeEmailCloudSdk/models/hierarchical_object_request.py deleted file mode 100644 index 116f583..0000000 --- a/sdk/AsposeEmailCloudSdk/models/hierarchical_object_request.py +++ /dev/null @@ -1,160 +0,0 @@ -# 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.hierarchical_object import HierarchicalObject -from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation - - -class HierarchicalObjectRequest(object): - """Object represented as hierarchical properties 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 = { - 'hierarchical_object': 'HierarchicalObject', - 'storage_folder': 'StorageFolderLocation' - } - - attribute_map = { - 'hierarchical_object': 'hierarchicalObject', - 'storage_folder': 'storageFolder' - } - - def __init__(self, hierarchical_object: HierarchicalObject = None, storage_folder: StorageFolderLocation = None): - """ - Object represented as hierarchical properties request - :param hierarchical_object (HierarchicalObject) Hierarchical properties of document - :param storage_folder (StorageFolderLocation) Document location in storage - """ - - self._hierarchical_object = None - self._storage_folder = None - - if hierarchical_object is not None: - self.hierarchical_object = hierarchical_object - if storage_folder is not None: - self.storage_folder = storage_folder - - @property - def hierarchical_object(self) -> HierarchicalObject: - """Gets the hierarchical_object of this HierarchicalObjectRequest. - - Hierarchical properties of document - - :return: The hierarchical_object of this HierarchicalObjectRequest. - :rtype: HierarchicalObject - """ - return self._hierarchical_object - - @hierarchical_object.setter - def hierarchical_object(self, hierarchical_object: HierarchicalObject): - """Sets the hierarchical_object of this HierarchicalObjectRequest. - - Hierarchical properties of document - - :param hierarchical_object: The hierarchical_object of this HierarchicalObjectRequest. - :type: HierarchicalObject - """ - if hierarchical_object is None: - raise ValueError("Invalid value for `hierarchical_object`, must not be `None`") - self._hierarchical_object = hierarchical_object - - @property - def storage_folder(self) -> StorageFolderLocation: - """Gets the storage_folder of this HierarchicalObjectRequest. - - Document location in storage - - :return: The storage_folder of this HierarchicalObjectRequest. - :rtype: StorageFolderLocation - """ - return self._storage_folder - - @storage_folder.setter - def storage_folder(self, storage_folder: StorageFolderLocation): - """Sets the storage_folder of this HierarchicalObjectRequest. - - Document location in storage - - :param storage_folder: The storage_folder of this HierarchicalObjectRequest. - :type: StorageFolderLocation - """ - self._storage_folder = storage_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, HierarchicalObjectRequest): - 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/requests/http_request.py b/sdk/AsposeEmailCloudSdk/models/http_request.py similarity index 100% rename from sdk/AsposeEmailCloudSdk/models/requests/http_request.py rename to sdk/AsposeEmailCloudSdk/models/http_request.py diff --git a/sdk/AsposeEmailCloudSdk/models/indexed_hierarchical_object.py b/sdk/AsposeEmailCloudSdk/models/indexed_hierarchical_object.py deleted file mode 100644 index f893236..0000000 --- a/sdk/AsposeEmailCloudSdk/models/indexed_hierarchical_object.py +++ /dev/null @@ -1,170 +0,0 @@ -# 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.base_object import BaseObject - - -class IndexedHierarchicalObject(BaseObject): - """Indexed hierarchical property - """ - - """ - 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 = { - 'name': 'str', - 'type': 'str', - 'index': 'int', - 'internal_properties': 'list[BaseObject]' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'index': 'index', - 'internal_properties': 'internalProperties' - } - - def __init__(self, name: str = None, type: str = None, index: int = None, internal_properties: List[BaseObject] = None): - """ - Indexed hierarchical property - :param name (str) Gets or sets the name of an object. - :param type (str) Property type. Used for deserialization purposes - :param index (int) Index of property in list - :param internal_properties (List[BaseObject]) List of internal properties - """ - super(IndexedHierarchicalObject, self).__init__() - - self._index = None - self._internal_properties = None - - if name is not None: - self.name = name - if type is not None: - self.type = type - if index is not None: - self.index = index - if internal_properties is not None: - self.internal_properties = internal_properties - - @property - def index(self) -> int: - """Gets the index of this IndexedHierarchicalObject. - - Index of property in list - - :return: The index of this IndexedHierarchicalObject. - :rtype: int - """ - return self._index - - @index.setter - def index(self, index: int): - """Sets the index of this IndexedHierarchicalObject. - - Index of property in list - - :param index: The index of this IndexedHierarchicalObject. - :type: int - """ - if index is None: - raise ValueError("Invalid value for `index`, must not be `None`") - self._index = index - - @property - def internal_properties(self) -> List[BaseObject]: - """Gets the internal_properties of this IndexedHierarchicalObject. - - List of internal properties - - :return: The internal_properties of this IndexedHierarchicalObject. - :rtype: list[BaseObject] - """ - return self._internal_properties - - @internal_properties.setter - def internal_properties(self, internal_properties: List[BaseObject]): - """Sets the internal_properties of this IndexedHierarchicalObject. - - List of internal properties - - :param internal_properties: The internal_properties of this IndexedHierarchicalObject. - :type: list[BaseObject] - """ - self._internal_properties = internal_properties - - 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, IndexedHierarchicalObject): - 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/indexed_primitive_object.py b/sdk/AsposeEmailCloudSdk/models/indexed_primitive_object.py deleted file mode 100644 index a4fc8b5..0000000 --- a/sdk/AsposeEmailCloudSdk/models/indexed_primitive_object.py +++ /dev/null @@ -1,170 +0,0 @@ -# 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.base_object import BaseObject - - -class IndexedPrimitiveObject(BaseObject): - """Simple indexed property - """ - - """ - 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 = { - 'name': 'str', - 'type': 'str', - 'index': 'int', - 'value': 'str' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'index': 'index', - 'value': 'value' - } - - def __init__(self, name: str = None, type: str = None, index: int = None, value: str = None): - """ - Simple indexed property - :param name (str) Gets or sets the name of an object. - :param type (str) Property type. Used for deserialization purposes - :param index (int) Index of property in list - :param value (str) Gets or sets the name of a property. - """ - super(IndexedPrimitiveObject, self).__init__() - - self._index = None - self._value = None - - if name is not None: - self.name = name - if type is not None: - self.type = type - if index is not None: - self.index = index - if value is not None: - self.value = value - - @property - def index(self) -> int: - """Gets the index of this IndexedPrimitiveObject. - - Index of property in list - - :return: The index of this IndexedPrimitiveObject. - :rtype: int - """ - return self._index - - @index.setter - def index(self, index: int): - """Sets the index of this IndexedPrimitiveObject. - - Index of property in list - - :param index: The index of this IndexedPrimitiveObject. - :type: int - """ - if index is None: - raise ValueError("Invalid value for `index`, must not be `None`") - self._index = index - - @property - def value(self) -> str: - """Gets the value of this IndexedPrimitiveObject. - - Gets or sets the name of a property. - - :return: The value of this IndexedPrimitiveObject. - :rtype: str - """ - return self._value - - @value.setter - def value(self, value: str): - """Sets the value of this IndexedPrimitiveObject. - - Gets or sets the name of a property. - - :param value: The value of this IndexedPrimitiveObject. - :type: str - """ - 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, IndexedPrimitiveObject): - 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/instant_messenger_address.py b/sdk/AsposeEmailCloudSdk/models/instant_messenger_address.py index 006579f..96853f4 100644 --- a/sdk/AsposeEmailCloudSdk/models/instant_messenger_address.py +++ b/sdk/AsposeEmailCloudSdk/models/instant_messenger_address.py @@ -59,9 +59,12 @@ class InstantMessengerAddress(object): def __init__(self, category: EnumWithCustomOfInstantMessengerCategory = None, address: str = None, preferred: bool = None): """ Instant messenger address. - :param category (EnumWithCustomOfInstantMessengerCategory) Address category. - :param address (str) Address. - :param preferred (bool) Determines whether this address is preferred. + :param category: Address category. + :type category: EnumWithCustomOfInstantMessengerCategory + :param address: Address. + :type address: str + :param preferred: Determines whether this address is preferred. + :type preferred: bool """ self._category = None @@ -75,10 +78,10 @@ def __init__(self, category: EnumWithCustomOfInstantMessengerCategory = None, ad if preferred is not None: self.preferred = preferred + @property def category(self) -> EnumWithCustomOfInstantMessengerCategory: - """Gets the category of this InstantMessengerAddress. - + """ Address category. :return: The category of this InstantMessengerAddress. @@ -88,8 +91,7 @@ def category(self) -> EnumWithCustomOfInstantMessengerCategory: @category.setter def category(self, category: EnumWithCustomOfInstantMessengerCategory): - """Sets the category of this InstantMessengerAddress. - + """ Address category. :param category: The category of this InstantMessengerAddress. @@ -99,8 +101,7 @@ def category(self, category: EnumWithCustomOfInstantMessengerCategory): @property def address(self) -> str: - """Gets the address of this InstantMessengerAddress. - + """ Address. :return: The address of this InstantMessengerAddress. @@ -110,8 +111,7 @@ def address(self) -> str: @address.setter def address(self, address: str): - """Sets the address of this InstantMessengerAddress. - + """ Address. :param address: The address of this InstantMessengerAddress. @@ -121,8 +121,7 @@ def address(self, address: str): @property def preferred(self) -> bool: - """Gets the preferred of this InstantMessengerAddress. - + """ Determines whether this address is preferred. :return: The preferred of this InstantMessengerAddress. @@ -132,8 +131,7 @@ def preferred(self) -> bool: @preferred.setter def preferred(self, preferred: bool): - """Sets the preferred of this InstantMessengerAddress. - + """ Determines whether this address is preferred. :param preferred: The preferred of this InstantMessengerAddress. diff --git a/sdk/AsposeEmailCloudSdk/models/link.py b/sdk/AsposeEmailCloudSdk/models/link.py deleted file mode 100644 index ef4cf03..0000000 --- a/sdk/AsposeEmailCloudSdk/models/link.py +++ /dev/null @@ -1,211 +0,0 @@ -# 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 - - -class Link(object): - """Provides information for the object link. This is supposed to be an atom:link, therefore it should have all attributes specified here http://tools.ietf.org/html/rfc4287#section-4.2.7 - """ - - """ - 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 = { - 'href': 'str', - 'rel': 'str', - 'type': 'str', - 'title': 'str' - } - - attribute_map = { - 'href': 'href', - 'rel': 'rel', - 'type': 'type', - 'title': 'title' - } - - def __init__(self, href: str = None, rel: str = None, type: str = None, title: str = None): - """ - Provides information for the object link. This is supposed to be an atom:link, therefore it should have all attributes specified here http://tools.ietf.org/html/rfc4287#section-4.2.7 - :param href (str) The \"href\" attribute contains the link's IRI. atom:link elements MUST have an href attribute, whose value MUST be a IRI reference - :param rel (str) atom:link elements MAY have a \"rel\" attribute that indicates the link relation type. If the \"rel\" attribute is not present, the link element MUST be interpreted as if the link relation type is \"alternate\". - :param type (str) On the link element, the \"type\" attribute's value is an advisory media type: it is a hint about the type of the representation that is expected to be returned when the value of the href attribute is dereferenced. Note that the type attribute does not override the actual media type returned with the representation. - :param title (str) The \"title\" attribute conveys human-readable information about the link. The content of the \"title\" attribute is Language-Sensitive. - """ - - self._href = None - self._rel = None - self._type = None - self._title = None - - if href is not None: - self.href = href - if rel is not None: - self.rel = rel - if type is not None: - self.type = type - if title is not None: - self.title = title - - @property - def href(self) -> str: - """Gets the href of this Link. - - The \"href\" attribute contains the link's IRI. atom:link elements MUST have an href attribute, whose value MUST be a IRI reference - - :return: The href of this Link. - :rtype: str - """ - return self._href - - @href.setter - def href(self, href: str): - """Sets the href of this Link. - - The \"href\" attribute contains the link's IRI. atom:link elements MUST have an href attribute, whose value MUST be a IRI reference - - :param href: The href of this Link. - :type: str - """ - self._href = href - - @property - def rel(self) -> str: - """Gets the rel of this Link. - - atom:link elements MAY have a \"rel\" attribute that indicates the link relation type. If the \"rel\" attribute is not present, the link element MUST be interpreted as if the link relation type is \"alternate\". - - :return: The rel of this Link. - :rtype: str - """ - return self._rel - - @rel.setter - def rel(self, rel: str): - """Sets the rel of this Link. - - atom:link elements MAY have a \"rel\" attribute that indicates the link relation type. If the \"rel\" attribute is not present, the link element MUST be interpreted as if the link relation type is \"alternate\". - - :param rel: The rel of this Link. - :type: str - """ - self._rel = rel - - @property - def type(self) -> str: - """Gets the type of this Link. - - On the link element, the \"type\" attribute's value is an advisory media type: it is a hint about the type of the representation that is expected to be returned when the value of the href attribute is dereferenced. Note that the type attribute does not override the actual media type returned with the representation. - - :return: The type of this Link. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type: str): - """Sets the type of this Link. - - On the link element, the \"type\" attribute's value is an advisory media type: it is a hint about the type of the representation that is expected to be returned when the value of the href attribute is dereferenced. Note that the type attribute does not override the actual media type returned with the representation. - - :param type: The type of this Link. - :type: str - """ - self._type = type - - @property - def title(self) -> str: - """Gets the title of this Link. - - The \"title\" attribute conveys human-readable information about the link. The content of the \"title\" attribute is Language-Sensitive. - - :return: The title of this Link. - :rtype: str - """ - return self._title - - @title.setter - def title(self, title: str): - """Sets the title of this Link. - - The \"title\" attribute conveys human-readable information about the link. The content of the \"title\" attribute is Language-Sensitive. - - :param title: The title of this Link. - :type: str - """ - self._title = title - - 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, Link): - 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/linked_resource.py b/sdk/AsposeEmailCloudSdk/models/linked_resource.py index 13688c7..fbfb8e7 100644 --- a/sdk/AsposeEmailCloudSdk/models/linked_resource.py +++ b/sdk/AsposeEmailCloudSdk/models/linked_resource.py @@ -64,11 +64,16 @@ class LinkedResource(AttachmentBase): def __init__(self, base64_data: str = None, content_id: str = None, content_type: ContentType = None, headers: Dict[str, str] = None, content_link: str = None): """ Represents an embedded resource in a message. - :param base64_data (str) Attachment file content as Base64 string. - :param content_id (str) Attachment content id - :param content_type (ContentType) Content type - :param headers (Dict[str, str]) Attachment headers. - :param content_link (str) URI that the resource must match. + :param base64_data: Attachment file content as Base64 string. + :type base64_data: str + :param content_id: Attachment content id + :type content_id: str + :param content_type: Content type + :type content_type: ContentType + :param headers: Attachment headers. + :type headers: Dict[str, str] + :param content_link: URI that the resource must match. + :type content_link: str """ super(LinkedResource, self).__init__() @@ -85,10 +90,10 @@ def __init__(self, base64_data: str = None, content_id: str = None, content_type if content_link is not None: self.content_link = content_link + @property def content_link(self) -> str: - """Gets the content_link of this LinkedResource. - + """ URI that the resource must match. :return: The content_link of this LinkedResource. @@ -98,8 +103,7 @@ def content_link(self) -> str: @content_link.setter def content_link(self, content_link: str): - """Sets the content_link of this LinkedResource. - + """ URI that the resource must match. :param content_link: The content_link of this LinkedResource. 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 f8ed7e0..82a2966 100644 --- a/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_name_component.py +++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_name_component.py @@ -55,7 +55,8 @@ class ListResponseOfAiNameComponent(object): def __init__(self, value: List[AiNameComponent] = None): """ - :param value (List[AiNameComponent]) + :param value: + :type value: List[AiNameComponent] """ self._value = None @@ -63,10 +64,11 @@ def __init__(self, value: List[AiNameComponent] = None): if value is not None: self.value = value + @property def value(self) -> List[AiNameComponent]: - """Gets the value of this ListResponseOfAiNameComponent. - + """ + Gets the value of this ListResponseOfAiNameComponent. :return: The value of this ListResponseOfAiNameComponent. :rtype: list[AiNameComponent] @@ -75,8 +77,8 @@ def value(self) -> List[AiNameComponent]: @value.setter def value(self, value: List[AiNameComponent]): - """Sets the value of this ListResponseOfAiNameComponent. - + """ + Sets the value of this ListResponseOfAiNameComponent. :param value: The value of this ListResponseOfAiNameComponent. :type: list[AiNameComponent] 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 3930daa..b76ebfe 100644 --- a/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_name_extracted.py +++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_name_extracted.py @@ -55,7 +55,8 @@ class ListResponseOfAiNameExtracted(object): def __init__(self, value: List[AiNameExtracted] = None): """ - :param value (List[AiNameExtracted]) + :param value: + :type value: List[AiNameExtracted] """ self._value = None @@ -63,10 +64,11 @@ def __init__(self, value: List[AiNameExtracted] = None): if value is not None: self.value = value + @property def value(self) -> List[AiNameExtracted]: - """Gets the value of this ListResponseOfAiNameExtracted. - + """ + Gets the value of this ListResponseOfAiNameExtracted. :return: The value of this ListResponseOfAiNameExtracted. :rtype: list[AiNameExtracted] @@ -75,8 +77,8 @@ def value(self) -> List[AiNameExtracted]: @value.setter def value(self, value: List[AiNameExtracted]): - """Sets the value of this ListResponseOfAiNameExtracted. - + """ + Sets the value of this ListResponseOfAiNameExtracted. :param value: The value of this ListResponseOfAiNameExtracted. :type: list[AiNameExtracted] 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 1245f54..5c846f5 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 @@ -55,7 +55,8 @@ class ListResponseOfAiNameGenderHypothesis(object): def __init__(self, value: List[AiNameGenderHypothesis] = None): """ - :param value (List[AiNameGenderHypothesis]) + :param value: + :type value: List[AiNameGenderHypothesis] """ self._value = None @@ -63,10 +64,11 @@ def __init__(self, value: List[AiNameGenderHypothesis] = None): if value is not None: self.value = value + @property def value(self) -> List[AiNameGenderHypothesis]: - """Gets the value of this ListResponseOfAiNameGenderHypothesis. - + """ + Gets the value of this ListResponseOfAiNameGenderHypothesis. :return: The value of this ListResponseOfAiNameGenderHypothesis. :rtype: list[AiNameGenderHypothesis] @@ -75,8 +77,8 @@ def value(self) -> List[AiNameGenderHypothesis]: @value.setter def value(self, value: List[AiNameGenderHypothesis]): - """Sets the value of this ListResponseOfAiNameGenderHypothesis. - + """ + Sets the value of this ListResponseOfAiNameGenderHypothesis. :param value: The value of this ListResponseOfAiNameGenderHypothesis. :type: list[AiNameGenderHypothesis] diff --git a/sdk/AsposeEmailCloudSdk/models/list_response_of_contact_dto.py b/sdk/AsposeEmailCloudSdk/models/list_response_of_contact_dto.py index bd2a26b..345124e 100644 --- a/sdk/AsposeEmailCloudSdk/models/list_response_of_contact_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_contact_dto.py @@ -55,7 +55,8 @@ class ListResponseOfContactDto(object): def __init__(self, value: List[ContactDto] = None): """ - :param value (List[ContactDto]) + :param value: + :type value: List[ContactDto] """ self._value = None @@ -63,10 +64,11 @@ def __init__(self, value: List[ContactDto] = None): if value is not None: self.value = value + @property def value(self) -> List[ContactDto]: - """Gets the value of this ListResponseOfContactDto. - + """ + Gets the value of this ListResponseOfContactDto. :return: The value of this ListResponseOfContactDto. :rtype: list[ContactDto] @@ -75,8 +77,8 @@ def value(self) -> List[ContactDto]: @value.setter def value(self, value: List[ContactDto]): - """Sets the value of this ListResponseOfContactDto. - + """ + Sets the value of this ListResponseOfContactDto. :param value: The value of this ListResponseOfContactDto. :type: list[ContactDto] 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 2a87ce9..d17225e 100644 --- a/sdk/AsposeEmailCloudSdk/models/list_response_of_email_account_config.py +++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_email_account_config.py @@ -55,7 +55,8 @@ class ListResponseOfEmailAccountConfig(object): def __init__(self, value: List[EmailAccountConfig] = None): """ - :param value (List[EmailAccountConfig]) + :param value: + :type value: List[EmailAccountConfig] """ self._value = None @@ -63,10 +64,11 @@ def __init__(self, value: List[EmailAccountConfig] = None): if value is not None: self.value = value + @property def value(self) -> List[EmailAccountConfig]: - """Gets the value of this ListResponseOfEmailAccountConfig. - + """ + Gets the value of this ListResponseOfEmailAccountConfig. :return: The value of this ListResponseOfEmailAccountConfig. :rtype: list[EmailAccountConfig] @@ -75,8 +77,8 @@ def value(self) -> List[EmailAccountConfig]: @value.setter def value(self, value: List[EmailAccountConfig]): - """Sets the value of this ListResponseOfEmailAccountConfig. - + """ + Sets the value of this ListResponseOfEmailAccountConfig. :param value: The value of this ListResponseOfEmailAccountConfig. :type: list[EmailAccountConfig] diff --git a/sdk/AsposeEmailCloudSdk/models/list_response_of_email_dto.py b/sdk/AsposeEmailCloudSdk/models/list_response_of_email_dto.py index 38afd65..9e0585b 100644 --- a/sdk/AsposeEmailCloudSdk/models/list_response_of_email_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_email_dto.py @@ -55,7 +55,8 @@ class ListResponseOfEmailDto(object): def __init__(self, value: List[EmailDto] = None): """ - :param value (List[EmailDto]) + :param value: + :type value: List[EmailDto] """ self._value = None @@ -63,10 +64,11 @@ def __init__(self, value: List[EmailDto] = None): if value is not None: self.value = value + @property def value(self) -> List[EmailDto]: - """Gets the value of this ListResponseOfEmailDto. - + """ + Gets the value of this ListResponseOfEmailDto. :return: The value of this ListResponseOfEmailDto. :rtype: list[EmailDto] @@ -75,8 +77,8 @@ def value(self) -> List[EmailDto]: @value.setter def value(self, value: List[EmailDto]): - """Sets the value of this ListResponseOfEmailDto. - + """ + Sets the value of this ListResponseOfEmailDto. :param value: The value of this ListResponseOfEmailDto. :type: list[EmailDto] diff --git a/sdk/AsposeEmailCloudSdk/models/list_response_of_email_thread.py b/sdk/AsposeEmailCloudSdk/models/list_response_of_email_thread.py index 86ff08c..89f966a 100644 --- a/sdk/AsposeEmailCloudSdk/models/list_response_of_email_thread.py +++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_email_thread.py @@ -55,7 +55,8 @@ class ListResponseOfEmailThread(object): def __init__(self, value: List[EmailThread] = None): """ - :param value (List[EmailThread]) + :param value: + :type value: List[EmailThread] """ self._value = None @@ -63,10 +64,11 @@ def __init__(self, value: List[EmailThread] = None): if value is not None: self.value = value + @property def value(self) -> List[EmailThread]: - """Gets the value of this ListResponseOfEmailThread. - + """ + Gets the value of this ListResponseOfEmailThread. :return: The value of this ListResponseOfEmailThread. :rtype: list[EmailThread] @@ -75,8 +77,8 @@ def value(self) -> List[EmailThread]: @value.setter def value(self, value: List[EmailThread]): - """Sets the value of this ListResponseOfEmailThread. - + """ + Sets the value of this ListResponseOfEmailThread. :param value: The value of this ListResponseOfEmailThread. :type: list[EmailThread] diff --git a/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_bcr_ocr_data.py b/sdk/AsposeEmailCloudSdk/models/list_response_of_mail_message_base.py similarity index 79% rename from sdk/AsposeEmailCloudSdk/models/list_response_of_ai_bcr_ocr_data.py rename to sdk/AsposeEmailCloudSdk/models/list_response_of_mail_message_base.py index 28623c4..d16623d 100644 --- a/sdk/AsposeEmailCloudSdk/models/list_response_of_ai_bcr_ocr_data.py +++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_mail_message_base.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -30,10 +30,10 @@ from typing import List, Set, Dict, Tuple, Optional from datetime import datetime -from AsposeEmailCloudSdk.models.ai_bcr_ocr_data import AiBcrOcrData +from AsposeEmailCloudSdk.models.mail_message_base import MailMessageBase -class ListResponseOfAiBcrOcrData(object): +class ListResponseOfMailMessageBase(object): """ """ @@ -45,17 +45,18 @@ class ListResponseOfAiBcrOcrData(object): and the value is json key in definition. """ swagger_types = { - 'value': 'list[AiBcrOcrData]' + 'value': 'list[MailMessageBase]' } attribute_map = { 'value': 'value' } - def __init__(self, value: List[AiBcrOcrData] = None): + def __init__(self, value: List[MailMessageBase] = None): """ - :param value (List[AiBcrOcrData]) + :param value: + :type value: List[MailMessageBase] """ self._value = None @@ -63,23 +64,24 @@ def __init__(self, value: List[AiBcrOcrData] = None): if value is not None: self.value = value - @property - def value(self) -> List[AiBcrOcrData]: - """Gets the value of this ListResponseOfAiBcrOcrData. + @property + def value(self) -> List[MailMessageBase]: + """ + Gets the value of this ListResponseOfMailMessageBase. - :return: The value of this ListResponseOfAiBcrOcrData. - :rtype: list[AiBcrOcrData] + :return: The value of this ListResponseOfMailMessageBase. + :rtype: list[MailMessageBase] """ return self._value @value.setter - def value(self, value: List[AiBcrOcrData]): - """Sets the value of this ListResponseOfAiBcrOcrData. - + def value(self, value: List[MailMessageBase]): + """ + Sets the value of this ListResponseOfMailMessageBase. - :param value: The value of this ListResponseOfAiBcrOcrData. - :type: list[AiBcrOcrData] + :param value: The value of this ListResponseOfMailMessageBase. + :type: list[MailMessageBase] """ self._value = value @@ -117,7 +119,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ListResponseOfAiBcrOcrData): + if not isinstance(other, ListResponseOfMailMessageBase): return False return self.__dict__ == other.__dict__ 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 eb6a40e..23a1fe8 100644 --- a/sdk/AsposeEmailCloudSdk/models/list_response_of_mail_server_folder.py +++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_mail_server_folder.py @@ -55,7 +55,8 @@ class ListResponseOfMailServerFolder(object): def __init__(self, value: List[MailServerFolder] = None): """ - :param value (List[MailServerFolder]) + :param value: + :type value: List[MailServerFolder] """ self._value = None @@ -63,10 +64,11 @@ def __init__(self, value: List[MailServerFolder] = None): if value is not None: self.value = value + @property def value(self) -> List[MailServerFolder]: - """Gets the value of this ListResponseOfMailServerFolder. - + """ + Gets the value of this ListResponseOfMailServerFolder. :return: The value of this ListResponseOfMailServerFolder. :rtype: list[MailServerFolder] @@ -75,8 +77,8 @@ def value(self) -> List[MailServerFolder]: @value.setter def value(self, value: List[MailServerFolder]): - """Sets the value of this ListResponseOfMailServerFolder. - + """ + Sets the value of this ListResponseOfMailServerFolder. :param value: The value of this ListResponseOfMailServerFolder. :type: list[MailServerFolder] 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 ae43391..136ff18 100644 --- a/sdk/AsposeEmailCloudSdk/models/list_response_of_storage_file_location.py +++ b/sdk/AsposeEmailCloudSdk/models/list_response_of_storage_file_location.py @@ -55,7 +55,8 @@ class ListResponseOfStorageFileLocation(object): def __init__(self, value: List[StorageFileLocation] = None): """ - :param value (List[StorageFileLocation]) + :param value: + :type value: List[StorageFileLocation] """ self._value = None @@ -63,10 +64,11 @@ def __init__(self, value: List[StorageFileLocation] = None): if value is not None: self.value = value + @property def value(self) -> List[StorageFileLocation]: - """Gets the value of this ListResponseOfStorageFileLocation. - + """ + Gets the value of this ListResponseOfStorageFileLocation. :return: The value of this ListResponseOfStorageFileLocation. :rtype: list[StorageFileLocation] @@ -75,8 +77,8 @@ def value(self) -> List[StorageFileLocation]: @value.setter def value(self, value: List[StorageFileLocation]): - """Sets the value of this ListResponseOfStorageFileLocation. - + """ + Sets the value of this ListResponseOfStorageFileLocation. :param value: The value of this ListResponseOfStorageFileLocation. :type: list[StorageFileLocation] 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 58bd81c..00a80c8 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 @@ -55,7 +55,8 @@ class ListResponseOfStorageModelOfCalendarDto(object): def __init__(self, value: List[StorageModelOfCalendarDto] = None): """ - :param value (List[StorageModelOfCalendarDto]) + :param value: + :type value: List[StorageModelOfCalendarDto] """ self._value = None @@ -63,10 +64,11 @@ def __init__(self, value: List[StorageModelOfCalendarDto] = None): if value is not None: self.value = value + @property def value(self) -> List[StorageModelOfCalendarDto]: - """Gets the value of this ListResponseOfStorageModelOfCalendarDto. - + """ + Gets the value of this ListResponseOfStorageModelOfCalendarDto. :return: The value of this ListResponseOfStorageModelOfCalendarDto. :rtype: list[StorageModelOfCalendarDto] @@ -75,8 +77,8 @@ def value(self) -> List[StorageModelOfCalendarDto]: @value.setter def value(self, value: List[StorageModelOfCalendarDto]): - """Sets the value of this ListResponseOfStorageModelOfCalendarDto. - + """ + Sets the value of this ListResponseOfStorageModelOfCalendarDto. :param value: The value of this ListResponseOfStorageModelOfCalendarDto. :type: list[StorageModelOfCalendarDto] 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 f39508e..63099a6 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 @@ -55,7 +55,8 @@ class ListResponseOfStorageModelOfContactDto(object): def __init__(self, value: List[StorageModelOfContactDto] = None): """ - :param value (List[StorageModelOfContactDto]) + :param value: + :type value: List[StorageModelOfContactDto] """ self._value = None @@ -63,10 +64,11 @@ def __init__(self, value: List[StorageModelOfContactDto] = None): if value is not None: self.value = value + @property def value(self) -> List[StorageModelOfContactDto]: - """Gets the value of this ListResponseOfStorageModelOfContactDto. - + """ + Gets the value of this ListResponseOfStorageModelOfContactDto. :return: The value of this ListResponseOfStorageModelOfContactDto. :rtype: list[StorageModelOfContactDto] @@ -75,8 +77,8 @@ def value(self) -> List[StorageModelOfContactDto]: @value.setter def value(self, value: List[StorageModelOfContactDto]): - """Sets the value of this ListResponseOfStorageModelOfContactDto. - + """ + Sets the value of this ListResponseOfStorageModelOfContactDto. :param value: The value of this ListResponseOfStorageModelOfContactDto. :type: list[StorageModelOfContactDto] 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 36d91c3..0522a66 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 @@ -55,7 +55,8 @@ class ListResponseOfStorageModelOfEmailDto(object): def __init__(self, value: List[StorageModelOfEmailDto] = None): """ - :param value (List[StorageModelOfEmailDto]) + :param value: + :type value: List[StorageModelOfEmailDto] """ self._value = None @@ -63,10 +64,11 @@ def __init__(self, value: List[StorageModelOfEmailDto] = None): if value is not None: self.value = value + @property def value(self) -> List[StorageModelOfEmailDto]: - """Gets the value of this ListResponseOfStorageModelOfEmailDto. - + """ + Gets the value of this ListResponseOfStorageModelOfEmailDto. :return: The value of this ListResponseOfStorageModelOfEmailDto. :rtype: list[StorageModelOfEmailDto] @@ -75,8 +77,8 @@ def value(self) -> List[StorageModelOfEmailDto]: @value.setter def value(self, value: List[StorageModelOfEmailDto]): - """Sets the value of this ListResponseOfStorageModelOfEmailDto. - + """ + Sets the value of this ListResponseOfStorageModelOfEmailDto. :param value: The value of this ListResponseOfStorageModelOfEmailDto. :type: list[StorageModelOfEmailDto] diff --git a/sdk/AsposeEmailCloudSdk/models/mail_address.py b/sdk/AsposeEmailCloudSdk/models/mail_address.py index ea29fb1..182b956 100644 --- a/sdk/AsposeEmailCloudSdk/models/mail_address.py +++ b/sdk/AsposeEmailCloudSdk/models/mail_address.py @@ -59,10 +59,14 @@ class MailAddress(object): 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 + :param display_name: Display name + :type display_name: str + :param address: Address + :type address: str + :param participation_status: Identifies the participation status for the calendar user. Enum, available values: NeedsAction, Accepted, Declined, Tentative, Delegated + :type participation_status: str + :param original_address_string: The original e-mail address string + :type original_address_string: str """ self._display_name = None @@ -79,10 +83,10 @@ def __init__(self, display_name: str = None, address: str = None, participation_ if original_address_string is not None: self.original_address_string = original_address_string + @property def display_name(self) -> str: - """Gets the display_name of this MailAddress. - + """ Display name :return: The display_name of this MailAddress. @@ -92,8 +96,7 @@ def display_name(self) -> str: @display_name.setter def display_name(self, display_name: str): - """Sets the display_name of this MailAddress. - + """ Display name :param display_name: The display_name of this MailAddress. @@ -103,8 +106,7 @@ def display_name(self, display_name: str): @property def address(self) -> str: - """Gets the address of this MailAddress. - + """ Address :return: The address of this MailAddress. @@ -114,8 +116,7 @@ def address(self) -> str: @address.setter def address(self, address: str): - """Sets the address of this MailAddress. - + """ Address :param address: The address of this MailAddress. @@ -125,8 +126,7 @@ def address(self, address: str): @property def participation_status(self) -> str: - """Gets the participation_status of this MailAddress. - + """ Identifies the participation status for the calendar user. Enum, available values: NeedsAction, Accepted, Declined, Tentative, Delegated :return: The participation_status of this MailAddress. @@ -136,8 +136,7 @@ def participation_status(self) -> str: @participation_status.setter def participation_status(self, participation_status: str): - """Sets the participation_status of this MailAddress. - + """ Identifies the participation status for the calendar user. Enum, available values: NeedsAction, Accepted, Declined, Tentative, Delegated :param participation_status: The participation_status of this MailAddress. @@ -149,8 +148,7 @@ def participation_status(self, participation_status: str): @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. @@ -160,8 +158,7 @@ def original_address_string(self) -> str: @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. diff --git a/sdk/AsposeEmailCloudSdk/models/mime_response.py b/sdk/AsposeEmailCloudSdk/models/mail_message_base.py similarity index 77% rename from sdk/AsposeEmailCloudSdk/models/mime_response.py rename to sdk/AsposeEmailCloudSdk/models/mail_message_base.py index 78f122b..8f9e8c7 100644 --- a/sdk/AsposeEmailCloudSdk/models/mime_response.py +++ b/sdk/AsposeEmailCloudSdk/models/mail_message_base.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -31,8 +31,8 @@ from datetime import datetime -class MimeResponse(object): - """Email document property DTO. +class MailMessageBase(object): + """Universal object that stores email messages in different formats. """ """ @@ -43,45 +43,38 @@ class MimeResponse(object): and the value is json key in definition. """ swagger_types = { - 'mime': 'str' + 'discriminator': 'str' } attribute_map = { - 'mime': 'mime' + 'discriminator': 'discriminator' } - def __init__(self, mime: str = None): + def __init__(self): """ - Email document property DTO. - :param mime (str) Gets or sets base64 encoded mime content. + Universal object that stores email messages in different formats. """ - self._mime = None - - if mime is not None: - self.mime = mime @property - def mime(self) -> str: - """Gets the mime of this MimeResponse. - - Gets or sets base64 encoded mime content. + def discriminator(self) -> str: + """ + Gets the discriminator of this MailMessageBase. - :return: The mime of this MimeResponse. + :return: The discriminator of this MailMessageBase. :rtype: str """ - return self._mime + return self.__class__.__name__ - @mime.setter - def mime(self, mime: str): - """Sets the mime of this MimeResponse. - - Gets or sets base64 encoded mime content. + @discriminator.setter + def discriminator(self, discriminator: str): + """ + Sets the discriminator of this MailMessageBase. - :param mime: The mime of this MimeResponse. + :param discriminator: The discriminator of this MailMessageBase. :type: str """ - self._mime = mime + pass # setter is ignored for discriminator property def to_dict(self): """Returns the model properties as a dict""" @@ -117,7 +110,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, MimeResponse): + if not isinstance(other, MailMessageBase): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/email_property.py b/sdk/AsposeEmailCloudSdk/models/mail_message_base64.py similarity index 56% rename from sdk/AsposeEmailCloudSdk/models/email_property.py rename to sdk/AsposeEmailCloudSdk/models/mail_message_base64.py index 2a886fc..e5e9df0 100644 --- a/sdk/AsposeEmailCloudSdk/models/email_property.py +++ b/sdk/AsposeEmailCloudSdk/models/mail_message_base64.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -30,11 +30,11 @@ from typing import List, Set, Dict, Tuple, Optional from datetime import datetime -from AsposeEmailCloudSdk.models.link import Link +from AsposeEmailCloudSdk.models.mail_message_base import MailMessageBase -class EmailProperty(object): - """Email property. +class MailMessageBase64(MailMessageBase): + """Email message represented as file, encoded to Base64 format. """ """ @@ -45,107 +45,80 @@ class EmailProperty(object): and the value is json key in definition. """ swagger_types = { - 'link': 'Link', - 'name': 'str', - 'value': 'object' + 'discriminator': 'str', + 'value_base64': 'str', + 'format': 'str' } attribute_map = { - 'link': 'link', - 'name': 'name', - 'value': 'value' + 'discriminator': 'discriminator', + 'value_base64': 'valueBase64', + 'format': 'format' } - def __init__(self, link: Link = None, name: str = None, value: object = None): + def __init__(self, value_base64: str = None, format: str = None): """ - Email property. - :param link (Link) Link to property - :param name (str) Property name - :param value (object) Property value + Email message represented as file, encoded to Base64 format. + :param value_base64: Email message file data encoded to Base64 string. + :type value_base64: str + :param format: Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str """ + super(MailMessageBase64, self).__init__() - self._link = None - self._name = None - self._value = None + self._value_base64 = None + self._format = None + if value_base64 is not None: + self.value_base64 = value_base64 + if format is not None: + self.format = format - if link is not None: - self.link = link - if name is not None: - self.name = name - if value is not None: - self.value = value @property - def link(self) -> Link: - """Gets the link of this EmailProperty. - - Link to property - - :return: The link of this EmailProperty. - :rtype: Link + def value_base64(self) -> str: """ - return self._link - - @link.setter - def link(self, link: Link): - """Sets the link of this EmailProperty. - - Link to property - - :param link: The link of this EmailProperty. - :type: Link - """ - self._link = link - - @property - def name(self) -> str: - """Gets the name of this EmailProperty. - - Property name + Email message file data encoded to Base64 string. - :return: The name of this EmailProperty. + :return: The value_base64 of this MailMessageBase64. :rtype: str """ - return self._name + return self._value_base64 - @name.setter - def name(self, name: str): - """Sets the name of this EmailProperty. - - Property name + @value_base64.setter + def value_base64(self, value_base64: str): + """ + Email message file data encoded to Base64 string. - :param name: The name of this EmailProperty. + :param value_base64: The value_base64 of this MailMessageBase64. :type: str """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") - if name is not None and len(name) < 1: - raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") - self._name = name + if value_base64 is None: + raise ValueError("Invalid value for `value_base64`, must not be `None`") + if value_base64 is not None and len(value_base64) < 1: + raise ValueError("Invalid value for `value_base64`, length must be greater than or equal to `1`") + self._value_base64 = value_base64 @property - def value(self) -> object: - """Gets the value of this EmailProperty. - - Property value - - :return: The value of this EmailProperty. - :rtype: object + def format(self) -> str: """ - return self._value + Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft - @value.setter - def value(self, value: object): - """Sets the value of this EmailProperty. + :return: The format of this MailMessageBase64. + :rtype: str + """ + return self._format - Property value + @format.setter + def format(self, format: str): + """ + Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft - :param value: The value of this EmailProperty. - :type: object + :param format: The format of this MailMessageBase64. + :type: str """ - if value is None: - raise ValueError("Invalid value for `value`, must not be `None`") - self._value = value + if format is None: + raise ValueError("Invalid value for `format`, must not be `None`") + self._format = format def to_dict(self): """Returns the model properties as a dict""" @@ -181,7 +154,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, EmailProperty): + if not isinstance(other, MailMessageBase64): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/mail_message_base_list.py b/sdk/AsposeEmailCloudSdk/models/mail_message_base_list.py new file mode 100644 index 0000000..0ffc1cd --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/mail_message_base_list.py @@ -0,0 +1,109 @@ +# 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.list_response_of_mail_message_base import ListResponseOfMailMessageBase +from AsposeEmailCloudSdk.models.mail_message_base import MailMessageBase + + +class MailMessageBaseList(ListResponseOfMailMessageBase): + """List of messages. + """ + + """ + 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[MailMessageBase]' + } + + attribute_map = { + 'value': 'value' + } + + def __init__(self, value: List[MailMessageBase] = None): + """ + List of messages. + :param value: + :type value: List[MailMessageBase] + """ + super(MailMessageBaseList, 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, MailMessageBaseList): + 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_response.py b/sdk/AsposeEmailCloudSdk/models/mail_message_dto.py similarity index 74% rename from sdk/AsposeEmailCloudSdk/models/list_response_of_hierarchical_object_response.py rename to sdk/AsposeEmailCloudSdk/models/mail_message_dto.py index 04cf1de..0061038 100644 --- a/sdk/AsposeEmailCloudSdk/models/list_response_of_hierarchical_object_response.py +++ b/sdk/AsposeEmailCloudSdk/models/mail_message_dto.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -30,11 +30,12 @@ from typing import List, Set, Dict, Tuple, Optional from datetime import datetime -from AsposeEmailCloudSdk.models.hierarchical_object_response import HierarchicalObjectResponse +from AsposeEmailCloudSdk.models.email_dto import EmailDto +from AsposeEmailCloudSdk.models.mail_message_base import MailMessageBase -class ListResponseOfHierarchicalObjectResponse(object): - """ +class MailMessageDto(MailMessageBase): + """Represents email message, stored as an EmailDto object. """ """ @@ -45,42 +46,48 @@ class ListResponseOfHierarchicalObjectResponse(object): and the value is json key in definition. """ swagger_types = { - 'value': 'list[HierarchicalObjectResponse]' + 'discriminator': 'str', + 'value': 'EmailDto' } attribute_map = { + 'discriminator': 'discriminator', 'value': 'value' } - def __init__(self, value: List[HierarchicalObjectResponse] = None): + def __init__(self, value: EmailDto = None): """ - - :param value (List[HierarchicalObjectResponse]) + Represents email message, stored as an EmailDto object. + :param value: Message document object. + :type value: EmailDto """ + super(MailMessageDto, self).__init__() self._value = None - if value is not None: self.value = value - @property - def value(self) -> List[HierarchicalObjectResponse]: - """Gets the value of this ListResponseOfHierarchicalObjectResponse. + @property + def value(self) -> EmailDto: + """ + Message document object. - :return: The value of this ListResponseOfHierarchicalObjectResponse. - :rtype: list[HierarchicalObjectResponse] + :return: The value of this MailMessageDto. + :rtype: EmailDto """ return self._value @value.setter - def value(self, value: List[HierarchicalObjectResponse]): - """Sets the value of this ListResponseOfHierarchicalObjectResponse. - + def value(self, value: EmailDto): + """ + Message document object. - :param value: The value of this ListResponseOfHierarchicalObjectResponse. - :type: list[HierarchicalObjectResponse] + :param value: The value of this MailMessageDto. + :type: EmailDto """ + if value is None: + raise ValueError("Invalid value for `value`, must not be `None`") self._value = value def to_dict(self): @@ -117,7 +124,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ListResponseOfHierarchicalObjectResponse): + if not isinstance(other, MailMessageDto): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/mail_message_mapi.py b/sdk/AsposeEmailCloudSdk/models/mail_message_mapi.py new file mode 100644 index 0000000..d9e6a43 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/mail_message_mapi.py @@ -0,0 +1,134 @@ +# 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.mail_message_base import MailMessageBase +from AsposeEmailCloudSdk.models.mapi_message_dto import MapiMessageDto + + +class MailMessageMapi(MailMessageBase): + """Email message represented as MAPI 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 = { + 'discriminator': 'str', + 'value': 'MapiMessageDto' + } + + attribute_map = { + 'discriminator': 'discriminator', + 'value': 'value' + } + + def __init__(self, value: MapiMessageDto = None): + """ + Email message represented as MAPI object. + :param value: Email message object. + :type value: MapiMessageDto + """ + super(MailMessageMapi, self).__init__() + + self._value = None + if value is not None: + self.value = value + + + @property + def value(self) -> MapiMessageDto: + """ + Email message object. + + :return: The value of this MailMessageMapi. + :rtype: MapiMessageDto + """ + return self._value + + @value.setter + def value(self, value: MapiMessageDto): + """ + Email message object. + + :param value: The value of this MailMessageMapi. + :type: MapiMessageDto + """ + if value is None: + raise ValueError("Invalid value for `value`, must not be `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, MailMessageMapi): + 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/mail_server_folder.py b/sdk/AsposeEmailCloudSdk/models/mail_server_folder.py index 40aadab..030216d 100644 --- a/sdk/AsposeEmailCloudSdk/models/mail_server_folder.py +++ b/sdk/AsposeEmailCloudSdk/models/mail_server_folder.py @@ -55,8 +55,10 @@ class MailServerFolder(object): def __init__(self, name: str = None, id: str = None): """ Email account folder - :param name (str) Gets or sets mail folder name - :param id (str) Gets or sets mail folder id + :param name: Gets or sets mail folder name + :type name: str + :param id: Gets or sets mail folder id + :type id: str """ self._name = None @@ -67,10 +69,10 @@ def __init__(self, name: str = None, id: str = None): if id is not None: self.id = id + @property def name(self) -> str: - """Gets the name of this MailServerFolder. - + """ Gets or sets mail folder name :return: The name of this MailServerFolder. @@ -80,8 +82,7 @@ def name(self) -> str: @name.setter def name(self, name: str): - """Sets the name of this MailServerFolder. - + """ Gets or sets mail folder name :param name: The name of this MailServerFolder. @@ -91,8 +92,7 @@ def name(self, name: str): @property def id(self) -> str: - """Gets the id of this MailServerFolder. - + """ Gets or sets mail folder id :return: The id of this MailServerFolder. @@ -102,8 +102,7 @@ def id(self) -> str: @id.setter def id(self, id: str): - """Sets the id of this MailServerFolder. - + """ Gets or sets mail folder id :param id: The id of this MailServerFolder. diff --git a/sdk/AsposeEmailCloudSdk/models/mail_server_folder_list.py b/sdk/AsposeEmailCloudSdk/models/mail_server_folder_list.py new file mode 100644 index 0000000..b9546f8 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/mail_server_folder_list.py @@ -0,0 +1,109 @@ +# 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.list_response_of_mail_server_folder import ListResponseOfMailServerFolder +from AsposeEmailCloudSdk.models.mail_server_folder import MailServerFolder + + +class MailServerFolderList(ListResponseOfMailServerFolder): + """List of email client folders. + """ + + """ + 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[MailServerFolder]' + } + + attribute_map = { + 'value': 'value' + } + + def __init__(self, value: List[MailServerFolder] = None): + """ + List of email client folders. + :param value: + :type value: List[MailServerFolder] + """ + super(MailServerFolderList, 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, MailServerFolderList): + 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/mapi_attachment_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_attachment_dto.py index 74ef7f3..4bd6a41 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_attachment_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_attachment_dto.py @@ -55,8 +55,10 @@ class MapiAttachmentDto(object): def __init__(self, name: str = None, data_base64: str = None): """ Mapi attachment - :param name (str) Attachment's name - :param data_base64 (str) Attachment data represented as Base64 string. + :param name: Attachment's name + :type name: str + :param data_base64: Attachment data represented as Base64 string. + :type data_base64: str """ self._name = None @@ -67,10 +69,10 @@ def __init__(self, name: str = None, data_base64: str = None): if data_base64 is not None: self.data_base64 = data_base64 + @property def name(self) -> str: - """Gets the name of this MapiAttachmentDto. - + """ Attachment's name :return: The name of this MapiAttachmentDto. @@ -80,8 +82,7 @@ def name(self) -> str: @name.setter def name(self, name: str): - """Sets the name of this MapiAttachmentDto. - + """ Attachment's name :param name: The name of this MapiAttachmentDto. @@ -91,8 +92,7 @@ def name(self, name: str): @property def data_base64(self) -> str: - """Gets the data_base64 of this MapiAttachmentDto. - + """ Attachment data represented as Base64 string. :return: The data_base64 of this MapiAttachmentDto. @@ -102,8 +102,7 @@ def data_base64(self) -> str: @data_base64.setter def data_base64(self, data_base64: str): - """Sets the data_base64 of this MapiAttachmentDto. - + """ Attachment data represented as Base64 string. :param data_base64: The data_base64 of this MapiAttachmentDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_binary_property_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_binary_property_dto.py index 3985e0b..8db6472 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_binary_property_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_binary_property_dto.py @@ -57,12 +57,13 @@ class MapiBinaryPropertyDto(MapiPropertyDto): 'value_base64': 'valueBase64' } - def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str = None, value_base64: str = None): + def __init__(self, descriptor: MapiPropertyDescriptor = None, value_base64: str = None): """ Mapi property with Binary value represented as a Base64 string - :param descriptor (MapiPropertyDescriptor) Property descriptor - :param discriminator (str) - :param value_base64 (str) Property value converted to Base64 + :param descriptor: Property descriptor + :type descriptor: MapiPropertyDescriptor + :param value_base64: Property value converted to Base64 + :type value_base64: str """ super(MapiBinaryPropertyDto, self).__init__() @@ -70,15 +71,13 @@ def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str if descriptor is not None: self.descriptor = descriptor - if discriminator is not None: - self.discriminator = discriminator if value_base64 is not None: self.value_base64 = value_base64 + @property def value_base64(self) -> str: - """Gets the value_base64 of this MapiBinaryPropertyDto. - + """ Property value converted to Base64 :return: The value_base64 of this MapiBinaryPropertyDto. @@ -88,8 +87,7 @@ def value_base64(self) -> str: @value_base64.setter def value_base64(self, value_base64: str): - """Sets the value_base64 of this MapiBinaryPropertyDto. - + """ Property value converted to Base64 :param value_base64: The value_base64 of this MapiBinaryPropertyDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_boolean_property_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_boolean_property_dto.py index f48832f..0d2b9ba 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_boolean_property_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_boolean_property_dto.py @@ -57,12 +57,13 @@ class MapiBooleanPropertyDto(MapiPropertyDto): 'value': 'value' } - def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str = None, value: bool = None): + def __init__(self, descriptor: MapiPropertyDescriptor = None, value: bool = None): """ Mapi property with Boolean value - :param descriptor (MapiPropertyDescriptor) Property descriptor - :param discriminator (str) - :param value (bool) Property value + :param descriptor: Property descriptor + :type descriptor: MapiPropertyDescriptor + :param value: Property value + :type value: bool """ super(MapiBooleanPropertyDto, self).__init__() @@ -70,15 +71,13 @@ def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str if descriptor is not None: self.descriptor = descriptor - if discriminator is not None: - self.discriminator = discriminator if value is not None: self.value = value + @property def value(self) -> bool: - """Gets the value of this MapiBooleanPropertyDto. - + """ Property value :return: The value of this MapiBooleanPropertyDto. @@ -88,8 +87,7 @@ def value(self) -> bool: @value.setter def value(self, value: bool): - """Sets the value of this MapiBooleanPropertyDto. - + """ Property value :param value: The value of this MapiBooleanPropertyDto. diff --git a/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_mapi_calendar_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_as_file_request.py similarity index 68% rename from sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_mapi_calendar_dto.py rename to sdk/AsposeEmailCloudSdk/models/mapi_calendar_as_file_request.py index e74b013..1c854bb 100644 --- a/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_mapi_calendar_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_as_file_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -31,11 +31,10 @@ from datetime import datetime from AsposeEmailCloudSdk.models.mapi_calendar_dto import MapiCalendarDto -from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation -class StorageModelRqOfMapiCalendarDto(object): - """ +class MapiCalendarAsFileRequest(object): + """Convert MapiCalendar to file request. """ """ @@ -46,69 +45,76 @@ class StorageModelRqOfMapiCalendarDto(object): and the value is json key in definition. """ swagger_types = { - 'value': 'MapiCalendarDto', - 'storage_folder': 'StorageFolderLocation' + 'format': 'str', + 'value': 'MapiCalendarDto' } attribute_map = { - 'value': 'value', - 'storage_folder': 'storageFolder' + 'format': 'format', + 'value': 'value' } - def __init__(self, value: MapiCalendarDto = None, storage_folder: StorageFolderLocation = None): + def __init__(self, format: str = None, value: MapiCalendarDto = None): """ - - :param value (MapiCalendarDto) - :param storage_folder (StorageFolderLocation) + Convert MapiCalendar to file request. + :param format: Calendar file format Enum, available values: Ics, Msg + :type format: str + :param value: MAPI calendar model. + :type value: MapiCalendarDto """ + self._format = None self._value = None - self._storage_folder = None + if format is not None: + self.format = format if value is not None: self.value = value - if storage_folder is not None: - self.storage_folder = storage_folder - - @property - def value(self) -> MapiCalendarDto: - """Gets the value of this StorageModelRqOfMapiCalendarDto. - :return: The value of this StorageModelRqOfMapiCalendarDto. - :rtype: MapiCalendarDto + @property + def format(self) -> str: """ - return self._value + Calendar file format Enum, available values: Ics, Msg - @value.setter - def value(self, value: MapiCalendarDto): - """Sets the value of this StorageModelRqOfMapiCalendarDto. + :return: The format of this MapiCalendarAsFileRequest. + :rtype: str + """ + return self._format + @format.setter + def format(self, format: str): + """ + Calendar file format Enum, available values: Ics, Msg - :param value: The value of this StorageModelRqOfMapiCalendarDto. - :type: MapiCalendarDto + :param format: The format of this MapiCalendarAsFileRequest. + :type: str """ - self._value = value + if format is None: + raise ValueError("Invalid value for `format`, must not be `None`") + self._format = format @property - def storage_folder(self) -> StorageFolderLocation: - """Gets the storage_folder of this StorageModelRqOfMapiCalendarDto. - - - :return: The storage_folder of this StorageModelRqOfMapiCalendarDto. - :rtype: StorageFolderLocation + def value(self) -> MapiCalendarDto: """ - return self._storage_folder + MAPI calendar model. - @storage_folder.setter - def storage_folder(self, storage_folder: StorageFolderLocation): - """Sets the storage_folder of this StorageModelRqOfMapiCalendarDto. + :return: The value of this MapiCalendarAsFileRequest. + :rtype: MapiCalendarDto + """ + return self._value + @value.setter + def value(self, value: MapiCalendarDto): + """ + MAPI calendar model. - :param storage_folder: The storage_folder of this StorageModelRqOfMapiCalendarDto. - :type: StorageFolderLocation + :param value: The value of this MapiCalendarAsFileRequest. + :type: MapiCalendarDto """ - self._storage_folder = storage_folder + if value is None: + raise ValueError("Invalid value for `value`, must not be `None`") + self._value = value def to_dict(self): """Returns the model properties as a dict""" @@ -144,7 +150,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, StorageModelRqOfMapiCalendarDto): + if not isinstance(other, MapiCalendarAsFileRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_attendees_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_attendees_dto.py index 064519b..39fe46f 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_attendees_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_attendees_dto.py @@ -61,10 +61,14 @@ class MapiCalendarAttendeesDto(object): def __init__(self, appointment_recipients: List[MapiRecipientDto] = None, appointment_unsendable_recipients: List[MapiRecipientDto] = None, not_allow_propose: bool = None, response_requested: bool = None): """ Mapi calendar attendees. - :param appointment_recipients (List[MapiRecipientDto]) List of attendees. - :param appointment_unsendable_recipients (List[MapiRecipientDto]) List of unsendable attendees. - :param not_allow_propose (bool) Value indicating whether attendees are not allowed to propose a new date and/or time for the meeting. - :param response_requested (bool) Value indicating whether a response is requested to a Message object. + :param appointment_recipients: List of attendees. + :type appointment_recipients: List[MapiRecipientDto] + :param appointment_unsendable_recipients: List of unsendable attendees. + :type appointment_unsendable_recipients: List[MapiRecipientDto] + :param not_allow_propose: Value indicating whether attendees are not allowed to propose a new date and/or time for the meeting. + :type not_allow_propose: bool + :param response_requested: Value indicating whether a response is requested to a Message object. + :type response_requested: bool """ self._appointment_recipients = None @@ -81,10 +85,10 @@ def __init__(self, appointment_recipients: List[MapiRecipientDto] = None, appoin if response_requested is not None: self.response_requested = response_requested + @property def appointment_recipients(self) -> List[MapiRecipientDto]: - """Gets the appointment_recipients of this MapiCalendarAttendeesDto. - + """ List of attendees. :return: The appointment_recipients of this MapiCalendarAttendeesDto. @@ -94,8 +98,7 @@ def appointment_recipients(self) -> List[MapiRecipientDto]: @appointment_recipients.setter def appointment_recipients(self, appointment_recipients: List[MapiRecipientDto]): - """Sets the appointment_recipients of this MapiCalendarAttendeesDto. - + """ List of attendees. :param appointment_recipients: The appointment_recipients of this MapiCalendarAttendeesDto. @@ -105,8 +108,7 @@ def appointment_recipients(self, appointment_recipients: List[MapiRecipientDto]) @property def appointment_unsendable_recipients(self) -> List[MapiRecipientDto]: - """Gets the appointment_unsendable_recipients of this MapiCalendarAttendeesDto. - + """ List of unsendable attendees. :return: The appointment_unsendable_recipients of this MapiCalendarAttendeesDto. @@ -116,8 +118,7 @@ def appointment_unsendable_recipients(self) -> List[MapiRecipientDto]: @appointment_unsendable_recipients.setter def appointment_unsendable_recipients(self, appointment_unsendable_recipients: List[MapiRecipientDto]): - """Sets the appointment_unsendable_recipients of this MapiCalendarAttendeesDto. - + """ List of unsendable attendees. :param appointment_unsendable_recipients: The appointment_unsendable_recipients of this MapiCalendarAttendeesDto. @@ -127,8 +128,7 @@ def appointment_unsendable_recipients(self, appointment_unsendable_recipients: L @property def not_allow_propose(self) -> bool: - """Gets the not_allow_propose of this MapiCalendarAttendeesDto. - + """ Value indicating whether attendees are not allowed to propose a new date and/or time for the meeting. :return: The not_allow_propose of this MapiCalendarAttendeesDto. @@ -138,8 +138,7 @@ def not_allow_propose(self) -> bool: @not_allow_propose.setter def not_allow_propose(self, not_allow_propose: bool): - """Sets the not_allow_propose of this MapiCalendarAttendeesDto. - + """ Value indicating whether attendees are not allowed to propose a new date and/or time for the meeting. :param not_allow_propose: The not_allow_propose of this MapiCalendarAttendeesDto. @@ -151,8 +150,7 @@ def not_allow_propose(self, not_allow_propose: bool): @property def response_requested(self) -> bool: - """Gets the response_requested of this MapiCalendarAttendeesDto. - + """ Value indicating whether a response is requested to a Message object. :return: The response_requested of this MapiCalendarAttendeesDto. @@ -162,8 +160,7 @@ def response_requested(self) -> bool: @response_requested.setter def response_requested(self, response_requested: bool): - """Sets the response_requested of this MapiCalendarAttendeesDto. - + """ Value indicating whether a response is requested to a Message object. :param response_requested: The response_requested of this MapiCalendarAttendeesDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_daily_recurrence_pattern_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_daily_recurrence_pattern_dto.py index 316ad53..109e564 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_daily_recurrence_pattern_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_daily_recurrence_pattern_dto.py @@ -81,24 +81,37 @@ class MapiCalendarDailyRecurrencePatternDto(MapiCalendarRecurrencePatternDto): 'day_of_week': 'dayOfWeek' } - def __init__(self, calendar_type: str = None, deleted_instance_dates: List[datetime] = None, end_date: datetime = None, end_type: str = None, exceptions: List[MapiCalendarExceptionInfoDto] = None, frequency: str = None, modified_instance_dates: List[datetime] = None, occurrence_count: int = None, pattern_type: str = None, period: int = None, sliding_flag: bool = None, start_date: datetime = None, week_start_day: str = None, discriminator: str = None, day_of_week: List[str] = None): + def __init__(self, calendar_type: str = None, deleted_instance_dates: List[datetime] = None, end_date: datetime = None, end_type: str = None, exceptions: List[MapiCalendarExceptionInfoDto] = None, frequency: str = None, modified_instance_dates: List[datetime] = None, occurrence_count: int = None, pattern_type: str = None, period: int = None, sliding_flag: bool = None, start_date: datetime = None, week_start_day: str = None, day_of_week: List[str] = None): """ Represents the daily recurrence pattern of the mapi calendar. - :param calendar_type (str) Enumerated the calendar type of the mapi recurrence Enum, available values: Default, CalGregorian, CalGregorianUs, CalJapan, CalTaiwan, CalKorea, CalHijri, CalThai, CalHebrew, CalGregorianMeFrench, CalGregorianArabic, CalGregorianXLitEnglish, CalGregorianXLitFrench, CalLunarJapanese, CalChineseLunar, CalSaka, CalLunarEtoChn, CalLunarEtoKor, CalLunarRokuyou, CalLunarKorean, CalUmAlQura - :param deleted_instance_dates (List[datetime]) An array of dates, each of which is the original instance date of either a deleted instance or a modified instance for this recurrence. - :param end_date (datetime) End date of an item recurrence pattern. - :param end_type (str) Enumerates the ending type for the recurrence. Enum, available values: None, EndAfterDate, EndAfterNOccurrences, NeverEnd - :param exceptions (List[MapiCalendarExceptionInfoDto]) An exception specifies changes to an instance of a recurring series. - :param frequency (str) Enumerates mapi calendar recurrence frequency Enum, available values: None, Daily, Weekly, Monthly, Yearly - :param modified_instance_dates (List[datetime]) An array of dates, each of which is the date of a modified instance. - :param occurrence_count (int) Number of occurrences in a recurrence. - :param pattern_type (str) Enumerates the mapi calendar recurrence pattern types Enum, available values: Day, Week, Month, MonthEnd, MonthNth, HjMonth, HjMonthNth, HjMonthEnd - :param period (int) Interval at which the meeting pattern repeats. - :param sliding_flag (bool) Defines whether pattern is sliding or not. - :param start_date (datetime) Start date of an item recurrence pattern. - :param week_start_day (str) Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday - :param discriminator (str) - :param day_of_week (List[str]) Days of week at which the event occurs. + :param calendar_type: Enumerated the calendar type of the mapi recurrence Enum, available values: Default, CalGregorian, CalGregorianUs, CalJapan, CalTaiwan, CalKorea, CalHijri, CalThai, CalHebrew, CalGregorianMeFrench, CalGregorianArabic, CalGregorianXLitEnglish, CalGregorianXLitFrench, CalLunarJapanese, CalChineseLunar, CalSaka, CalLunarEtoChn, CalLunarEtoKor, CalLunarRokuyou, CalLunarKorean, CalUmAlQura + :type calendar_type: str + :param deleted_instance_dates: An array of dates, each of which is the original instance date of either a deleted instance or a modified instance for this recurrence. + :type deleted_instance_dates: List[datetime] + :param end_date: End date of an item recurrence pattern. + :type end_date: datetime + :param end_type: Enumerates the ending type for the recurrence. Enum, available values: None, EndAfterDate, EndAfterNOccurrences, NeverEnd + :type end_type: str + :param exceptions: An exception specifies changes to an instance of a recurring series. + :type exceptions: List[MapiCalendarExceptionInfoDto] + :param frequency: Enumerates mapi calendar recurrence frequency Enum, available values: None, Daily, Weekly, Monthly, Yearly + :type frequency: str + :param modified_instance_dates: An array of dates, each of which is the date of a modified instance. + :type modified_instance_dates: List[datetime] + :param occurrence_count: Number of occurrences in a recurrence. + :type occurrence_count: int + :param pattern_type: Enumerates the mapi calendar recurrence pattern types Enum, available values: Day, Week, Month, MonthEnd, MonthNth, HjMonth, HjMonthNth, HjMonthEnd + :type pattern_type: str + :param period: Interval at which the meeting pattern repeats. + :type period: int + :param sliding_flag: Defines whether pattern is sliding or not. + :type sliding_flag: bool + :param start_date: Start date of an item recurrence pattern. + :type start_date: datetime + :param week_start_day: Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday + :type week_start_day: str + :param day_of_week: Days of week at which the event occurs. + :type day_of_week: List[str] """ super(MapiCalendarDailyRecurrencePatternDto, self).__init__() @@ -130,15 +143,13 @@ def __init__(self, calendar_type: str = None, deleted_instance_dates: List[datet self.start_date = start_date if week_start_day is not None: self.week_start_day = week_start_day - if discriminator is not None: - self.discriminator = discriminator if day_of_week is not None: self.day_of_week = day_of_week + @property def day_of_week(self) -> List[str]: - """Gets the day_of_week of this MapiCalendarDailyRecurrencePatternDto. - + """ Days of week at which the event occurs. Items: Enumerates the days of week of the mapi calendar recurrence pattern Enum, available values: Saturday, Friday, Thursday, Wednesday, Tuesday, Monday, Sunday :return: The day_of_week of this MapiCalendarDailyRecurrencePatternDto. @@ -148,8 +159,7 @@ def day_of_week(self) -> List[str]: @day_of_week.setter def day_of_week(self, day_of_week: List[str]): - """Sets the day_of_week of this MapiCalendarDailyRecurrencePatternDto. - + """ Days of week at which the event occurs. Items: Enumerates the days of week of the mapi calendar recurrence pattern Enum, available values: Saturday, Friday, Thursday, Wednesday, Tuesday, Monday, Sunday :param day_of_week: The day_of_week of this MapiCalendarDailyRecurrencePatternDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_dto.py index 640ffb6..e2cd82c 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_dto.py @@ -127,44 +127,77 @@ class MapiCalendarDto(MapiMessageItemBaseDto): 'organizer': 'organizer' } - def __init__(self, attachments: List[MapiAttachmentDto] = None, billing: str = None, body: str = None, body_html: str = None, body_rtf: str = None, body_type: str = None, categories: List[str] = None, companies: List[str] = None, item_id: str = None, message_class: str = None, mileage: str = None, recipients: List[MapiRecipientDto] = None, sensitivity: str = None, subject: str = None, subject_prefix: str = None, properties: List[MapiPropertyDto] = None, discriminator: str = None, appointment_counter_proposal: bool = None, attendees: MapiCalendarAttendeesDto = None, busy_status: str = None, client_intent: List[str] = None, end_date: datetime = None, end_date_time_zone: MapiCalendarTimeZoneDto = None, is_all_day: bool = None, key_words: str = None, location: str = None, recurrence: MapiCalendarEventRecurrenceDto = None, reminder_delta: int = None, reminder_file_parameter: str = None, reminder_set: bool = None, sequence: int = None, start_date: datetime = None, start_date_time_zone: MapiCalendarTimeZoneDto = None, uid: str = None, organizer: MapiElectronicAddressDto = None): + def __init__(self, attachments: List[MapiAttachmentDto] = None, billing: str = None, body: str = None, body_html: str = None, body_rtf: str = None, body_type: str = None, categories: List[str] = None, companies: List[str] = None, item_id: str = None, message_class: str = None, mileage: str = None, recipients: List[MapiRecipientDto] = None, sensitivity: str = None, subject: str = None, subject_prefix: str = None, properties: List[MapiPropertyDto] = None, appointment_counter_proposal: bool = None, attendees: MapiCalendarAttendeesDto = None, busy_status: str = None, client_intent: List[str] = None, end_date: datetime = None, end_date_time_zone: MapiCalendarTimeZoneDto = None, is_all_day: bool = None, key_words: str = None, location: str = None, recurrence: MapiCalendarEventRecurrenceDto = None, reminder_delta: int = None, reminder_file_parameter: str = None, reminder_set: bool = None, sequence: int = None, start_date: datetime = None, start_date_time_zone: MapiCalendarTimeZoneDto = None, uid: str = None, organizer: MapiElectronicAddressDto = None): """ Represents the mapi calendar object - :param attachments (List[MapiAttachmentDto]) Message item attachments. - :param billing (str) Billing information associated with an item. - :param body (str) Message text. - :param body_html (str) Gets the BodyRtf of the message converted to HTML, if present, otherwise an empty string. - :param body_rtf (str) RTF formatted message text. - :param body_type (str) The content type of message body. Enum, available values: PlainText, Html, Rtf - :param categories (List[str]) Contains keywords or categories for the message object. - :param companies (List[str]) Contains the names of the companies that are associated with an item. - :param item_id (str) The item id, uses with a server. - :param message_class (str) Case-sensitive string that identifies the sender-defined message class, such as IPM.Note. The message class specifies the type, purpose, or content of the message. - :param mileage (str) Contains the mileage information that is associated with an item. - :param recipients (List[MapiRecipientDto]) Recipients of the message. - :param sensitivity (str) Contains values that indicate the message sensitivity. Enum, available values: None, Personal, Private, CompanyConfidential - :param subject (str) Subject of the message. - :param subject_prefix (str) Subject prefix that typically indicates some action on a message, such as \"FW: \" for forwarding. - :param properties (List[MapiPropertyDto]) List of MAPI properties - :param discriminator (str) - :param appointment_counter_proposal (bool) Value indicating whether a Meeting Response object is a counter proposal. - :param attendees (MapiCalendarAttendeesDto) Attendees - :param busy_status (str) Enumerates the mapi calendar possible busy status Enum, available values: Free, Tentative, Busy, OutOfOffice - :param client_intent (List[str]) Actions the user has taken on this Meeting object. - :param end_date (datetime) End date and time of the event. If the date is not set, default value for DateTime is returned. - :param end_date_time_zone (MapiCalendarTimeZoneDto) Time zone information that indicates the time zone of the EndDate property. - :param is_all_day (bool) Value indicating whether the event is an all-day event. - :param key_words (str) Categories of the calendar object. - :param location (str) Location of the event. - :param recurrence (MapiCalendarEventRecurrenceDto) Recurrence properties. - :param reminder_delta (int) Interval, in minutes, between the time at which the reminder first becomes overdue and the start time of the Calendar object. - :param reminder_file_parameter (str) Full path of the sound that a client SHOULD play when the reminder becomes overdue. - :param reminder_set (bool) Value indicating whether a reminder is set on the object. - :param sequence (int) Sequence number. - :param start_date (datetime) Start date and time of the event. If the date is not set, default value for DateTime is returned. - :param start_date_time_zone (MapiCalendarTimeZoneDto) Time zone information that indicates the time zone of the StartDate property. - :param uid (str) Unique identifier. - :param organizer (MapiElectronicAddressDto) Organizer + :param attachments: Message item attachments. + :type attachments: List[MapiAttachmentDto] + :param billing: Billing information associated with an item. + :type billing: str + :param body: Message text. + :type body: str + :param body_html: Gets the BodyRtf of the message converted to HTML, if present, otherwise an empty string. + :type body_html: str + :param body_rtf: RTF formatted message text. + :type body_rtf: str + :param body_type: The content type of message body. Enum, available values: PlainText, Html, Rtf + :type body_type: str + :param categories: Contains keywords or categories for the message object. + :type categories: List[str] + :param companies: Contains the names of the companies that are associated with an item. + :type companies: List[str] + :param item_id: The item id, uses with a server. + :type item_id: str + :param message_class: Case-sensitive string that identifies the sender-defined message class, such as IPM.Note. The message class specifies the type, purpose, or content of the message. + :type message_class: str + :param mileage: Contains the mileage information that is associated with an item. + :type mileage: str + :param recipients: Recipients of the message. + :type recipients: List[MapiRecipientDto] + :param sensitivity: Contains values that indicate the message sensitivity. Enum, available values: None, Personal, Private, CompanyConfidential + :type sensitivity: str + :param subject: Subject of the message. + :type subject: str + :param subject_prefix: Subject prefix that typically indicates some action on a message, such as \"FW: \" for forwarding. + :type subject_prefix: str + :param properties: List of MAPI properties + :type properties: List[MapiPropertyDto] + :param appointment_counter_proposal: Value indicating whether a Meeting Response object is a counter proposal. + :type appointment_counter_proposal: bool + :param attendees: Attendees + :type attendees: MapiCalendarAttendeesDto + :param busy_status: Enumerates the mapi calendar possible busy status Enum, available values: Free, Tentative, Busy, OutOfOffice + :type busy_status: str + :param client_intent: Actions the user has taken on this Meeting object. + :type client_intent: List[str] + :param end_date: End date and time of the event. If the date is not set, default value for DateTime is returned. + :type end_date: datetime + :param end_date_time_zone: Time zone information that indicates the time zone of the EndDate property. + :type end_date_time_zone: MapiCalendarTimeZoneDto + :param is_all_day: Value indicating whether the event is an all-day event. + :type is_all_day: bool + :param key_words: Categories of the calendar object. + :type key_words: str + :param location: Location of the event. + :type location: str + :param recurrence: Recurrence properties. + :type recurrence: MapiCalendarEventRecurrenceDto + :param reminder_delta: Interval, in minutes, between the time at which the reminder first becomes overdue and the start time of the Calendar object. + :type reminder_delta: int + :param reminder_file_parameter: Full path of the sound that a client SHOULD play when the reminder becomes overdue. + :type reminder_file_parameter: str + :param reminder_set: Value indicating whether a reminder is set on the object. + :type reminder_set: bool + :param sequence: Sequence number. + :type sequence: int + :param start_date: Start date and time of the event. If the date is not set, default value for DateTime is returned. + :type start_date: datetime + :param start_date_time_zone: Time zone information that indicates the time zone of the StartDate property. + :type start_date_time_zone: MapiCalendarTimeZoneDto + :param uid: Unique identifier. + :type uid: str + :param organizer: Organizer + :type organizer: MapiElectronicAddressDto """ super(MapiCalendarDto, self).__init__() @@ -219,8 +252,6 @@ def __init__(self, attachments: List[MapiAttachmentDto] = None, billing: str = N self.subject_prefix = subject_prefix if properties is not None: self.properties = properties - if discriminator is not None: - self.discriminator = discriminator if appointment_counter_proposal is not None: self.appointment_counter_proposal = appointment_counter_proposal if attendees is not None: @@ -258,10 +289,10 @@ def __init__(self, attachments: List[MapiAttachmentDto] = None, billing: str = N if organizer is not None: self.organizer = organizer + @property def appointment_counter_proposal(self) -> bool: - """Gets the appointment_counter_proposal of this MapiCalendarDto. - + """ Value indicating whether a Meeting Response object is a counter proposal. :return: The appointment_counter_proposal of this MapiCalendarDto. @@ -271,8 +302,7 @@ def appointment_counter_proposal(self) -> bool: @appointment_counter_proposal.setter def appointment_counter_proposal(self, appointment_counter_proposal: bool): - """Sets the appointment_counter_proposal of this MapiCalendarDto. - + """ Value indicating whether a Meeting Response object is a counter proposal. :param appointment_counter_proposal: The appointment_counter_proposal of this MapiCalendarDto. @@ -284,8 +314,7 @@ def appointment_counter_proposal(self, appointment_counter_proposal: bool): @property def attendees(self) -> MapiCalendarAttendeesDto: - """Gets the attendees of this MapiCalendarDto. - + """ Attendees :return: The attendees of this MapiCalendarDto. @@ -295,8 +324,7 @@ def attendees(self) -> MapiCalendarAttendeesDto: @attendees.setter def attendees(self, attendees: MapiCalendarAttendeesDto): - """Sets the attendees of this MapiCalendarDto. - + """ Attendees :param attendees: The attendees of this MapiCalendarDto. @@ -306,8 +334,7 @@ def attendees(self, attendees: MapiCalendarAttendeesDto): @property def busy_status(self) -> str: - """Gets the busy_status of this MapiCalendarDto. - + """ Enumerates the mapi calendar possible busy status Enum, available values: Free, Tentative, Busy, OutOfOffice :return: The busy_status of this MapiCalendarDto. @@ -317,8 +344,7 @@ def busy_status(self) -> str: @busy_status.setter def busy_status(self, busy_status: str): - """Sets the busy_status of this MapiCalendarDto. - + """ Enumerates the mapi calendar possible busy status Enum, available values: Free, Tentative, Busy, OutOfOffice :param busy_status: The busy_status of this MapiCalendarDto. @@ -330,8 +356,7 @@ def busy_status(self, busy_status: str): @property def client_intent(self) -> List[str]: - """Gets the client_intent of this MapiCalendarDto. - + """ Actions the user has taken on this Meeting object. Items: Enumerates the actions the user can taken on the Meeting object Enum, available values: Manager, Delegate, DeletedWithNoResponse, DeletedExceptionWithNoResponse, RespondedTentative, RespondedAccept, RespondedDecline, ModifiedStartTime, ModifiedEndTime, ModifiedLocation, RespondedExceptionDecline, Canceled, ExceptionCanceled :return: The client_intent of this MapiCalendarDto. @@ -341,8 +366,7 @@ def client_intent(self) -> List[str]: @client_intent.setter def client_intent(self, client_intent: List[str]): - """Sets the client_intent of this MapiCalendarDto. - + """ Actions the user has taken on this Meeting object. Items: Enumerates the actions the user can taken on the Meeting object Enum, available values: Manager, Delegate, DeletedWithNoResponse, DeletedExceptionWithNoResponse, RespondedTentative, RespondedAccept, RespondedDecline, ModifiedStartTime, ModifiedEndTime, ModifiedLocation, RespondedExceptionDecline, Canceled, ExceptionCanceled :param client_intent: The client_intent of this MapiCalendarDto. @@ -352,8 +376,7 @@ def client_intent(self, client_intent: List[str]): @property def end_date(self) -> datetime: - """Gets the end_date of this MapiCalendarDto. - + """ End date and time of the event. If the date is not set, default value for DateTime is returned. :return: The end_date of this MapiCalendarDto. @@ -363,8 +386,7 @@ def end_date(self) -> datetime: @end_date.setter def end_date(self, end_date: datetime): - """Sets the end_date of this MapiCalendarDto. - + """ End date and time of the event. If the date is not set, default value for DateTime is returned. :param end_date: The end_date of this MapiCalendarDto. @@ -376,8 +398,7 @@ def end_date(self, end_date: datetime): @property def end_date_time_zone(self) -> MapiCalendarTimeZoneDto: - """Gets the end_date_time_zone of this MapiCalendarDto. - + """ Time zone information that indicates the time zone of the EndDate property. :return: The end_date_time_zone of this MapiCalendarDto. @@ -387,8 +408,7 @@ def end_date_time_zone(self) -> MapiCalendarTimeZoneDto: @end_date_time_zone.setter def end_date_time_zone(self, end_date_time_zone: MapiCalendarTimeZoneDto): - """Sets the end_date_time_zone of this MapiCalendarDto. - + """ Time zone information that indicates the time zone of the EndDate property. :param end_date_time_zone: The end_date_time_zone of this MapiCalendarDto. @@ -398,8 +418,7 @@ def end_date_time_zone(self, end_date_time_zone: MapiCalendarTimeZoneDto): @property def is_all_day(self) -> bool: - """Gets the is_all_day of this MapiCalendarDto. - + """ Value indicating whether the event is an all-day event. :return: The is_all_day of this MapiCalendarDto. @@ -409,8 +428,7 @@ def is_all_day(self) -> bool: @is_all_day.setter def is_all_day(self, is_all_day: bool): - """Sets the is_all_day of this MapiCalendarDto. - + """ Value indicating whether the event is an all-day event. :param is_all_day: The is_all_day of this MapiCalendarDto. @@ -422,8 +440,7 @@ def is_all_day(self, is_all_day: bool): @property def key_words(self) -> str: - """Gets the key_words of this MapiCalendarDto. - + """ Categories of the calendar object. :return: The key_words of this MapiCalendarDto. @@ -433,8 +450,7 @@ def key_words(self) -> str: @key_words.setter def key_words(self, key_words: str): - """Sets the key_words of this MapiCalendarDto. - + """ Categories of the calendar object. :param key_words: The key_words of this MapiCalendarDto. @@ -444,8 +460,7 @@ def key_words(self, key_words: str): @property def location(self) -> str: - """Gets the location of this MapiCalendarDto. - + """ Location of the event. :return: The location of this MapiCalendarDto. @@ -455,8 +470,7 @@ def location(self) -> str: @location.setter def location(self, location: str): - """Sets the location of this MapiCalendarDto. - + """ Location of the event. :param location: The location of this MapiCalendarDto. @@ -466,8 +480,7 @@ def location(self, location: str): @property def recurrence(self) -> MapiCalendarEventRecurrenceDto: - """Gets the recurrence of this MapiCalendarDto. - + """ Recurrence properties. :return: The recurrence of this MapiCalendarDto. @@ -477,8 +490,7 @@ def recurrence(self) -> MapiCalendarEventRecurrenceDto: @recurrence.setter def recurrence(self, recurrence: MapiCalendarEventRecurrenceDto): - """Sets the recurrence of this MapiCalendarDto. - + """ Recurrence properties. :param recurrence: The recurrence of this MapiCalendarDto. @@ -488,8 +500,7 @@ def recurrence(self, recurrence: MapiCalendarEventRecurrenceDto): @property def reminder_delta(self) -> int: - """Gets the reminder_delta of this MapiCalendarDto. - + """ Interval, in minutes, between the time at which the reminder first becomes overdue and the start time of the Calendar object. :return: The reminder_delta of this MapiCalendarDto. @@ -499,8 +510,7 @@ def reminder_delta(self) -> int: @reminder_delta.setter def reminder_delta(self, reminder_delta: int): - """Sets the reminder_delta of this MapiCalendarDto. - + """ Interval, in minutes, between the time at which the reminder first becomes overdue and the start time of the Calendar object. :param reminder_delta: The reminder_delta of this MapiCalendarDto. @@ -512,8 +522,7 @@ def reminder_delta(self, reminder_delta: int): @property def reminder_file_parameter(self) -> str: - """Gets the reminder_file_parameter of this MapiCalendarDto. - + """ Full path of the sound that a client SHOULD play when the reminder becomes overdue. :return: The reminder_file_parameter of this MapiCalendarDto. @@ -523,8 +532,7 @@ def reminder_file_parameter(self) -> str: @reminder_file_parameter.setter def reminder_file_parameter(self, reminder_file_parameter: str): - """Sets the reminder_file_parameter of this MapiCalendarDto. - + """ Full path of the sound that a client SHOULD play when the reminder becomes overdue. :param reminder_file_parameter: The reminder_file_parameter of this MapiCalendarDto. @@ -534,8 +542,7 @@ def reminder_file_parameter(self, reminder_file_parameter: str): @property def reminder_set(self) -> bool: - """Gets the reminder_set of this MapiCalendarDto. - + """ Value indicating whether a reminder is set on the object. :return: The reminder_set of this MapiCalendarDto. @@ -545,8 +552,7 @@ def reminder_set(self) -> bool: @reminder_set.setter def reminder_set(self, reminder_set: bool): - """Sets the reminder_set of this MapiCalendarDto. - + """ Value indicating whether a reminder is set on the object. :param reminder_set: The reminder_set of this MapiCalendarDto. @@ -558,8 +564,7 @@ def reminder_set(self, reminder_set: bool): @property def sequence(self) -> int: - """Gets the sequence of this MapiCalendarDto. - + """ Sequence number. :return: The sequence of this MapiCalendarDto. @@ -569,8 +574,7 @@ def sequence(self) -> int: @sequence.setter def sequence(self, sequence: int): - """Sets the sequence of this MapiCalendarDto. - + """ Sequence number. :param sequence: The sequence of this MapiCalendarDto. @@ -582,8 +586,7 @@ def sequence(self, sequence: int): @property def start_date(self) -> datetime: - """Gets the start_date of this MapiCalendarDto. - + """ Start date and time of the event. If the date is not set, default value for DateTime is returned. :return: The start_date of this MapiCalendarDto. @@ -593,8 +596,7 @@ def start_date(self) -> datetime: @start_date.setter def start_date(self, start_date: datetime): - """Sets the start_date of this MapiCalendarDto. - + """ Start date and time of the event. If the date is not set, default value for DateTime is returned. :param start_date: The start_date of this MapiCalendarDto. @@ -606,8 +608,7 @@ def start_date(self, start_date: datetime): @property def start_date_time_zone(self) -> MapiCalendarTimeZoneDto: - """Gets the start_date_time_zone of this MapiCalendarDto. - + """ Time zone information that indicates the time zone of the StartDate property. :return: The start_date_time_zone of this MapiCalendarDto. @@ -617,8 +618,7 @@ def start_date_time_zone(self) -> MapiCalendarTimeZoneDto: @start_date_time_zone.setter def start_date_time_zone(self, start_date_time_zone: MapiCalendarTimeZoneDto): - """Sets the start_date_time_zone of this MapiCalendarDto. - + """ Time zone information that indicates the time zone of the StartDate property. :param start_date_time_zone: The start_date_time_zone of this MapiCalendarDto. @@ -628,8 +628,7 @@ def start_date_time_zone(self, start_date_time_zone: MapiCalendarTimeZoneDto): @property def uid(self) -> str: - """Gets the uid of this MapiCalendarDto. - + """ Unique identifier. :return: The uid of this MapiCalendarDto. @@ -639,8 +638,7 @@ def uid(self) -> str: @uid.setter def uid(self, uid: str): - """Sets the uid of this MapiCalendarDto. - + """ Unique identifier. :param uid: The uid of this MapiCalendarDto. @@ -650,8 +648,7 @@ def uid(self, uid: str): @property def organizer(self) -> MapiElectronicAddressDto: - """Gets the organizer of this MapiCalendarDto. - + """ Organizer :return: The organizer of this MapiCalendarDto. @@ -661,8 +658,7 @@ def organizer(self) -> MapiElectronicAddressDto: @organizer.setter def organizer(self, organizer: MapiElectronicAddressDto): - """Sets the organizer of this MapiCalendarDto. - + """ Organizer :param organizer: The organizer of this MapiCalendarDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_event_recurrence_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_event_recurrence_dto.py index 335b442..68b31b3 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_event_recurrence_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_event_recurrence_dto.py @@ -66,12 +66,18 @@ class MapiCalendarEventRecurrenceDto(object): def __init__(self, appointment_time_zone_definition_recur: MapiCalendarTimeZoneDto = None, clip_end: datetime = None, clip_start: datetime = None, is_exception: bool = None, recurrence_pattern: MapiCalendarRecurrencePatternDto = None, time_zone_struct: MapiCalendarTimeZoneDto = None): """ Recurrence properties of calendar object. - :param appointment_time_zone_definition_recur (MapiCalendarTimeZoneDto) Time zone information that describes how to convert the meeting date and time on a recurring series to and from UTC. - :param clip_end (datetime) Date of the last instance. - :param clip_start (datetime) Date of the first instance. - :param is_exception (bool) Value indicating whether the object represents an exception. - :param recurrence_pattern (MapiCalendarRecurrencePatternDto) Recurrence pattern. - :param time_zone_struct (MapiCalendarTimeZoneDto) Time zone information for a recurring meeting. + :param appointment_time_zone_definition_recur: Time zone information that describes how to convert the meeting date and time on a recurring series to and from UTC. + :type appointment_time_zone_definition_recur: MapiCalendarTimeZoneDto + :param clip_end: Date of the last instance. + :type clip_end: datetime + :param clip_start: Date of the first instance. + :type clip_start: datetime + :param is_exception: Value indicating whether the object represents an exception. + :type is_exception: bool + :param recurrence_pattern: Recurrence pattern. + :type recurrence_pattern: MapiCalendarRecurrencePatternDto + :param time_zone_struct: Time zone information for a recurring meeting. + :type time_zone_struct: MapiCalendarTimeZoneDto """ self._appointment_time_zone_definition_recur = None @@ -94,10 +100,10 @@ def __init__(self, appointment_time_zone_definition_recur: MapiCalendarTimeZoneD if time_zone_struct is not None: self.time_zone_struct = time_zone_struct + @property def appointment_time_zone_definition_recur(self) -> MapiCalendarTimeZoneDto: - """Gets the appointment_time_zone_definition_recur of this MapiCalendarEventRecurrenceDto. - + """ Time zone information that describes how to convert the meeting date and time on a recurring series to and from UTC. :return: The appointment_time_zone_definition_recur of this MapiCalendarEventRecurrenceDto. @@ -107,8 +113,7 @@ def appointment_time_zone_definition_recur(self) -> MapiCalendarTimeZoneDto: @appointment_time_zone_definition_recur.setter def appointment_time_zone_definition_recur(self, appointment_time_zone_definition_recur: MapiCalendarTimeZoneDto): - """Sets the appointment_time_zone_definition_recur of this MapiCalendarEventRecurrenceDto. - + """ Time zone information that describes how to convert the meeting date and time on a recurring series to and from UTC. :param appointment_time_zone_definition_recur: The appointment_time_zone_definition_recur of this MapiCalendarEventRecurrenceDto. @@ -118,8 +123,7 @@ def appointment_time_zone_definition_recur(self, appointment_time_zone_definitio @property def clip_end(self) -> datetime: - """Gets the clip_end of this MapiCalendarEventRecurrenceDto. - + """ Date of the last instance. :return: The clip_end of this MapiCalendarEventRecurrenceDto. @@ -129,8 +133,7 @@ def clip_end(self) -> datetime: @clip_end.setter def clip_end(self, clip_end: datetime): - """Sets the clip_end of this MapiCalendarEventRecurrenceDto. - + """ Date of the last instance. :param clip_end: The clip_end of this MapiCalendarEventRecurrenceDto. @@ -142,8 +145,7 @@ def clip_end(self, clip_end: datetime): @property def clip_start(self) -> datetime: - """Gets the clip_start of this MapiCalendarEventRecurrenceDto. - + """ Date of the first instance. :return: The clip_start of this MapiCalendarEventRecurrenceDto. @@ -153,8 +155,7 @@ def clip_start(self) -> datetime: @clip_start.setter def clip_start(self, clip_start: datetime): - """Sets the clip_start of this MapiCalendarEventRecurrenceDto. - + """ Date of the first instance. :param clip_start: The clip_start of this MapiCalendarEventRecurrenceDto. @@ -166,8 +167,7 @@ def clip_start(self, clip_start: datetime): @property def is_exception(self) -> bool: - """Gets the is_exception of this MapiCalendarEventRecurrenceDto. - + """ Value indicating whether the object represents an exception. :return: The is_exception of this MapiCalendarEventRecurrenceDto. @@ -177,8 +177,7 @@ def is_exception(self) -> bool: @is_exception.setter def is_exception(self, is_exception: bool): - """Sets the is_exception of this MapiCalendarEventRecurrenceDto. - + """ Value indicating whether the object represents an exception. :param is_exception: The is_exception of this MapiCalendarEventRecurrenceDto. @@ -190,8 +189,7 @@ def is_exception(self, is_exception: bool): @property def recurrence_pattern(self) -> MapiCalendarRecurrencePatternDto: - """Gets the recurrence_pattern of this MapiCalendarEventRecurrenceDto. - + """ Recurrence pattern. :return: The recurrence_pattern of this MapiCalendarEventRecurrenceDto. @@ -201,8 +199,7 @@ def recurrence_pattern(self) -> MapiCalendarRecurrencePatternDto: @recurrence_pattern.setter def recurrence_pattern(self, recurrence_pattern: MapiCalendarRecurrencePatternDto): - """Sets the recurrence_pattern of this MapiCalendarEventRecurrenceDto. - + """ Recurrence pattern. :param recurrence_pattern: The recurrence_pattern of this MapiCalendarEventRecurrenceDto. @@ -212,8 +209,7 @@ def recurrence_pattern(self, recurrence_pattern: MapiCalendarRecurrencePatternDt @property def time_zone_struct(self) -> MapiCalendarTimeZoneDto: - """Gets the time_zone_struct of this MapiCalendarEventRecurrenceDto. - + """ Time zone information for a recurring meeting. :return: The time_zone_struct of this MapiCalendarEventRecurrenceDto. @@ -223,8 +219,7 @@ def time_zone_struct(self) -> MapiCalendarTimeZoneDto: @time_zone_struct.setter def time_zone_struct(self, time_zone_struct: MapiCalendarTimeZoneDto): - """Sets the time_zone_struct of this MapiCalendarEventRecurrenceDto. - + """ Time zone information for a recurring meeting. :param time_zone_struct: The time_zone_struct of this MapiCalendarEventRecurrenceDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_exception_info_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_exception_info_dto.py index 3021104..2ffc637 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_exception_info_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_exception_info_dto.py @@ -81,20 +81,34 @@ class MapiCalendarExceptionInfoDto(object): def __init__(self, attachments: List[MapiAttachmentDto] = None, body: str = None, busy_status: str = None, end_date_time: datetime = None, has_attachment: bool = None, location: str = None, meeting_type: str = None, original_start_date: datetime = None, override_flags: List[str] = None, reminder_delta: int = None, reminder_set: bool = None, start_date_time: datetime = None, subject: str = None, sub_type: int = None): """ An exception specifies changes to an instance of a recurring series. - :param attachments (List[MapiAttachmentDto]) Attachments in the recurrence exception. - :param body (str) Body. - :param busy_status (str) Enumerates the mapi calendar possible busy status Enum, available values: Free, Tentative, Busy, OutOfOffice - :param end_date_time (datetime) End date. - :param has_attachment (bool) Value of this field specifies whether the Exception Embedded Message object contains attachments. - :param location (str) Location. - :param meeting_type (str) Enumerates the appointment state Enum, available values: Meeting, Received, Canceled - :param original_start_date (datetime) Original start date. - :param override_flags (List[str]) Override flags. - :param reminder_delta (int) Reminder delta. - :param reminder_set (bool) Value for the PidLidReminderSet property. - :param start_date_time (datetime) Start date. - :param subject (str) Subject. - :param sub_type (int) SubType. + :param attachments: Attachments in the recurrence exception. + :type attachments: List[MapiAttachmentDto] + :param body: Body. + :type body: str + :param busy_status: Enumerates the mapi calendar possible busy status Enum, available values: Free, Tentative, Busy, OutOfOffice + :type busy_status: str + :param end_date_time: End date. + :type end_date_time: datetime + :param has_attachment: Value of this field specifies whether the Exception Embedded Message object contains attachments. + :type has_attachment: bool + :param location: Location. + :type location: str + :param meeting_type: Enumerates the appointment state Enum, available values: Meeting, Received, Canceled + :type meeting_type: str + :param original_start_date: Original start date. + :type original_start_date: datetime + :param override_flags: Override flags. + :type override_flags: List[str] + :param reminder_delta: Reminder delta. + :type reminder_delta: int + :param reminder_set: Value for the PidLidReminderSet property. + :type reminder_set: bool + :param start_date_time: Start date. + :type start_date_time: datetime + :param subject: Subject. + :type subject: str + :param sub_type: SubType. + :type sub_type: int """ self._attachments = None @@ -141,10 +155,10 @@ def __init__(self, attachments: List[MapiAttachmentDto] = None, body: str = None if sub_type is not None: self.sub_type = sub_type + @property def attachments(self) -> List[MapiAttachmentDto]: - """Gets the attachments of this MapiCalendarExceptionInfoDto. - + """ Attachments in the recurrence exception. :return: The attachments of this MapiCalendarExceptionInfoDto. @@ -154,8 +168,7 @@ def attachments(self) -> List[MapiAttachmentDto]: @attachments.setter def attachments(self, attachments: List[MapiAttachmentDto]): - """Sets the attachments of this MapiCalendarExceptionInfoDto. - + """ Attachments in the recurrence exception. :param attachments: The attachments of this MapiCalendarExceptionInfoDto. @@ -165,8 +178,7 @@ def attachments(self, attachments: List[MapiAttachmentDto]): @property def body(self) -> str: - """Gets the body of this MapiCalendarExceptionInfoDto. - + """ Body. :return: The body of this MapiCalendarExceptionInfoDto. @@ -176,8 +188,7 @@ def body(self) -> str: @body.setter def body(self, body: str): - """Sets the body of this MapiCalendarExceptionInfoDto. - + """ Body. :param body: The body of this MapiCalendarExceptionInfoDto. @@ -187,8 +198,7 @@ def body(self, body: str): @property def busy_status(self) -> str: - """Gets the busy_status of this MapiCalendarExceptionInfoDto. - + """ Enumerates the mapi calendar possible busy status Enum, available values: Free, Tentative, Busy, OutOfOffice :return: The busy_status of this MapiCalendarExceptionInfoDto. @@ -198,8 +208,7 @@ def busy_status(self) -> str: @busy_status.setter def busy_status(self, busy_status: str): - """Sets the busy_status of this MapiCalendarExceptionInfoDto. - + """ Enumerates the mapi calendar possible busy status Enum, available values: Free, Tentative, Busy, OutOfOffice :param busy_status: The busy_status of this MapiCalendarExceptionInfoDto. @@ -211,8 +220,7 @@ def busy_status(self, busy_status: str): @property def end_date_time(self) -> datetime: - """Gets the end_date_time of this MapiCalendarExceptionInfoDto. - + """ End date. :return: The end_date_time of this MapiCalendarExceptionInfoDto. @@ -222,8 +230,7 @@ def end_date_time(self) -> datetime: @end_date_time.setter def end_date_time(self, end_date_time: datetime): - """Sets the end_date_time of this MapiCalendarExceptionInfoDto. - + """ End date. :param end_date_time: The end_date_time of this MapiCalendarExceptionInfoDto. @@ -235,8 +242,7 @@ def end_date_time(self, end_date_time: datetime): @property def has_attachment(self) -> bool: - """Gets the has_attachment of this MapiCalendarExceptionInfoDto. - + """ Value of this field specifies whether the Exception Embedded Message object contains attachments. :return: The has_attachment of this MapiCalendarExceptionInfoDto. @@ -246,8 +252,7 @@ def has_attachment(self) -> bool: @has_attachment.setter def has_attachment(self, has_attachment: bool): - """Sets the has_attachment of this MapiCalendarExceptionInfoDto. - + """ Value of this field specifies whether the Exception Embedded Message object contains attachments. :param has_attachment: The has_attachment of this MapiCalendarExceptionInfoDto. @@ -259,8 +264,7 @@ def has_attachment(self, has_attachment: bool): @property def location(self) -> str: - """Gets the location of this MapiCalendarExceptionInfoDto. - + """ Location. :return: The location of this MapiCalendarExceptionInfoDto. @@ -270,8 +274,7 @@ def location(self) -> str: @location.setter def location(self, location: str): - """Sets the location of this MapiCalendarExceptionInfoDto. - + """ Location. :param location: The location of this MapiCalendarExceptionInfoDto. @@ -281,8 +284,7 @@ def location(self, location: str): @property def meeting_type(self) -> str: - """Gets the meeting_type of this MapiCalendarExceptionInfoDto. - + """ Enumerates the appointment state Enum, available values: Meeting, Received, Canceled :return: The meeting_type of this MapiCalendarExceptionInfoDto. @@ -292,8 +294,7 @@ def meeting_type(self) -> str: @meeting_type.setter def meeting_type(self, meeting_type: str): - """Sets the meeting_type of this MapiCalendarExceptionInfoDto. - + """ Enumerates the appointment state Enum, available values: Meeting, Received, Canceled :param meeting_type: The meeting_type of this MapiCalendarExceptionInfoDto. @@ -305,8 +306,7 @@ def meeting_type(self, meeting_type: str): @property def original_start_date(self) -> datetime: - """Gets the original_start_date of this MapiCalendarExceptionInfoDto. - + """ Original start date. :return: The original_start_date of this MapiCalendarExceptionInfoDto. @@ -316,8 +316,7 @@ def original_start_date(self) -> datetime: @original_start_date.setter def original_start_date(self, original_start_date: datetime): - """Sets the original_start_date of this MapiCalendarExceptionInfoDto. - + """ Original start date. :param original_start_date: The original_start_date of this MapiCalendarExceptionInfoDto. @@ -329,8 +328,7 @@ def original_start_date(self, original_start_date: datetime): @property def override_flags(self) -> List[str]: - """Gets the override_flags of this MapiCalendarExceptionInfoDto. - + """ Override flags. Items: Specifies what data in the MapiCalendarOverride structure has a value different from the recurring series. Enum, available values: Subject, MeetingType, ReminderDelta, Reminder, Location, BusyStatus, Attachment, Subtype, AppointmentColor, ExceptionalBody :return: The override_flags of this MapiCalendarExceptionInfoDto. @@ -340,8 +338,7 @@ def override_flags(self) -> List[str]: @override_flags.setter def override_flags(self, override_flags: List[str]): - """Sets the override_flags of this MapiCalendarExceptionInfoDto. - + """ Override flags. Items: Specifies what data in the MapiCalendarOverride structure has a value different from the recurring series. Enum, available values: Subject, MeetingType, ReminderDelta, Reminder, Location, BusyStatus, Attachment, Subtype, AppointmentColor, ExceptionalBody :param override_flags: The override_flags of this MapiCalendarExceptionInfoDto. @@ -351,8 +348,7 @@ def override_flags(self, override_flags: List[str]): @property def reminder_delta(self) -> int: - """Gets the reminder_delta of this MapiCalendarExceptionInfoDto. - + """ Reminder delta. :return: The reminder_delta of this MapiCalendarExceptionInfoDto. @@ -362,8 +358,7 @@ def reminder_delta(self) -> int: @reminder_delta.setter def reminder_delta(self, reminder_delta: int): - """Sets the reminder_delta of this MapiCalendarExceptionInfoDto. - + """ Reminder delta. :param reminder_delta: The reminder_delta of this MapiCalendarExceptionInfoDto. @@ -375,8 +370,7 @@ def reminder_delta(self, reminder_delta: int): @property def reminder_set(self) -> bool: - """Gets the reminder_set of this MapiCalendarExceptionInfoDto. - + """ Value for the PidLidReminderSet property. :return: The reminder_set of this MapiCalendarExceptionInfoDto. @@ -386,8 +380,7 @@ def reminder_set(self) -> bool: @reminder_set.setter def reminder_set(self, reminder_set: bool): - """Sets the reminder_set of this MapiCalendarExceptionInfoDto. - + """ Value for the PidLidReminderSet property. :param reminder_set: The reminder_set of this MapiCalendarExceptionInfoDto. @@ -399,8 +392,7 @@ def reminder_set(self, reminder_set: bool): @property def start_date_time(self) -> datetime: - """Gets the start_date_time of this MapiCalendarExceptionInfoDto. - + """ Start date. :return: The start_date_time of this MapiCalendarExceptionInfoDto. @@ -410,8 +402,7 @@ def start_date_time(self) -> datetime: @start_date_time.setter def start_date_time(self, start_date_time: datetime): - """Sets the start_date_time of this MapiCalendarExceptionInfoDto. - + """ Start date. :param start_date_time: The start_date_time of this MapiCalendarExceptionInfoDto. @@ -423,8 +414,7 @@ def start_date_time(self, start_date_time: datetime): @property def subject(self) -> str: - """Gets the subject of this MapiCalendarExceptionInfoDto. - + """ Subject. :return: The subject of this MapiCalendarExceptionInfoDto. @@ -434,8 +424,7 @@ def subject(self) -> str: @subject.setter def subject(self, subject: str): - """Sets the subject of this MapiCalendarExceptionInfoDto. - + """ Subject. :param subject: The subject of this MapiCalendarExceptionInfoDto. @@ -445,8 +434,7 @@ def subject(self, subject: str): @property def sub_type(self) -> int: - """Gets the sub_type of this MapiCalendarExceptionInfoDto. - + """ SubType. :return: The sub_type of this MapiCalendarExceptionInfoDto. @@ -456,8 +444,7 @@ def sub_type(self) -> int: @sub_type.setter def sub_type(self, sub_type: int): - """Sets the sub_type of this MapiCalendarExceptionInfoDto. - + """ SubType. :param sub_type: The sub_type of this MapiCalendarExceptionInfoDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_from_file_request.py b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_from_file_request.py new file mode 100644 index 0000000..d47785c --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_from_file_request.py @@ -0,0 +1,48 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class MapiCalendarFromFileRequest(object): + """ + Request model for mapi_calendar_from_file operation. + Initializes a new instance. + + :param file: File to convert + :type file: str + """ + + def __init__(self, file: str): + """ + Request model for mapi_calendar_from_file operation. + Initializes a new instance. + + :param file: File to convert + :type file: str + """ + + self.file = file diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_get_request.py b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_get_request.py new file mode 100644 index 0000000..0a67e9e --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_get_request.py @@ -0,0 +1,59 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class MapiCalendarGetRequest(object): + """ + Request model for mapi_calendar_get operation. + Initializes a new instance. + + :param file_name: Calendar file name in storage. + :type file_name: str + :param folder: Path to folder in storage. + :type folder: str + :param storage: Storage name. + :type storage: str + """ + + def __init__(self, file_name: str, folder: str = None, storage: str = None): + """ + Request model for mapi_calendar_get operation. + Initializes a new instance. + + :param file_name: Calendar file name in storage. + :type file_name: str + :param folder: Path to folder in storage. + :type folder: str + :param storage: Storage name. + :type storage: str + """ + + self.file_name = file_name + self.folder = folder + self.storage = storage + diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_recurrence_pattern_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_recurrence_pattern_dto.py index 3e463cd..10529f0 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_recurrence_pattern_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_recurrence_pattern_dto.py @@ -78,23 +78,35 @@ class MapiCalendarRecurrencePatternDto(object): 'discriminator': 'discriminator' } - def __init__(self, calendar_type: str = None, deleted_instance_dates: List[datetime] = None, end_date: datetime = None, end_type: str = None, exceptions: List[MapiCalendarExceptionInfoDto] = None, frequency: str = None, modified_instance_dates: List[datetime] = None, occurrence_count: int = None, pattern_type: str = None, period: int = None, sliding_flag: bool = None, start_date: datetime = None, week_start_day: str = None, discriminator: str = None): + def __init__(self, calendar_type: str = None, deleted_instance_dates: List[datetime] = None, end_date: datetime = None, end_type: str = None, exceptions: List[MapiCalendarExceptionInfoDto] = None, frequency: str = None, modified_instance_dates: List[datetime] = None, occurrence_count: int = None, pattern_type: str = None, period: int = None, sliding_flag: bool = None, start_date: datetime = None, week_start_day: str = None): """ Mapi recurrence pattern. - :param calendar_type (str) Enumerated the calendar type of the mapi recurrence Enum, available values: Default, CalGregorian, CalGregorianUs, CalJapan, CalTaiwan, CalKorea, CalHijri, CalThai, CalHebrew, CalGregorianMeFrench, CalGregorianArabic, CalGregorianXLitEnglish, CalGregorianXLitFrench, CalLunarJapanese, CalChineseLunar, CalSaka, CalLunarEtoChn, CalLunarEtoKor, CalLunarRokuyou, CalLunarKorean, CalUmAlQura - :param deleted_instance_dates (List[datetime]) An array of dates, each of which is the original instance date of either a deleted instance or a modified instance for this recurrence. - :param end_date (datetime) End date of an item recurrence pattern. - :param end_type (str) Enumerates the ending type for the recurrence. Enum, available values: None, EndAfterDate, EndAfterNOccurrences, NeverEnd - :param exceptions (List[MapiCalendarExceptionInfoDto]) An exception specifies changes to an instance of a recurring series. - :param frequency (str) Enumerates mapi calendar recurrence frequency Enum, available values: None, Daily, Weekly, Monthly, Yearly - :param modified_instance_dates (List[datetime]) An array of dates, each of which is the date of a modified instance. - :param occurrence_count (int) Number of occurrences in a recurrence. - :param pattern_type (str) Enumerates the mapi calendar recurrence pattern types Enum, available values: Day, Week, Month, MonthEnd, MonthNth, HjMonth, HjMonthNth, HjMonthEnd - :param period (int) Interval at which the meeting pattern repeats. - :param sliding_flag (bool) Defines whether pattern is sliding or not. - :param start_date (datetime) Start date of an item recurrence pattern. - :param week_start_day (str) Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday - :param discriminator (str) + :param calendar_type: Enumerated the calendar type of the mapi recurrence Enum, available values: Default, CalGregorian, CalGregorianUs, CalJapan, CalTaiwan, CalKorea, CalHijri, CalThai, CalHebrew, CalGregorianMeFrench, CalGregorianArabic, CalGregorianXLitEnglish, CalGregorianXLitFrench, CalLunarJapanese, CalChineseLunar, CalSaka, CalLunarEtoChn, CalLunarEtoKor, CalLunarRokuyou, CalLunarKorean, CalUmAlQura + :type calendar_type: str + :param deleted_instance_dates: An array of dates, each of which is the original instance date of either a deleted instance or a modified instance for this recurrence. + :type deleted_instance_dates: List[datetime] + :param end_date: End date of an item recurrence pattern. + :type end_date: datetime + :param end_type: Enumerates the ending type for the recurrence. Enum, available values: None, EndAfterDate, EndAfterNOccurrences, NeverEnd + :type end_type: str + :param exceptions: An exception specifies changes to an instance of a recurring series. + :type exceptions: List[MapiCalendarExceptionInfoDto] + :param frequency: Enumerates mapi calendar recurrence frequency Enum, available values: None, Daily, Weekly, Monthly, Yearly + :type frequency: str + :param modified_instance_dates: An array of dates, each of which is the date of a modified instance. + :type modified_instance_dates: List[datetime] + :param occurrence_count: Number of occurrences in a recurrence. + :type occurrence_count: int + :param pattern_type: Enumerates the mapi calendar recurrence pattern types Enum, available values: Day, Week, Month, MonthEnd, MonthNth, HjMonth, HjMonthNth, HjMonthEnd + :type pattern_type: str + :param period: Interval at which the meeting pattern repeats. + :type period: int + :param sliding_flag: Defines whether pattern is sliding or not. + :type sliding_flag: bool + :param start_date: Start date of an item recurrence pattern. + :type start_date: datetime + :param week_start_day: Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday + :type week_start_day: str """ self._calendar_type = None @@ -110,7 +122,6 @@ def __init__(self, calendar_type: str = None, deleted_instance_dates: List[datet self._sliding_flag = None self._start_date = None self._week_start_day = None - self._discriminator = self.__class__.__name__ if calendar_type is not None: self.calendar_type = calendar_type @@ -138,13 +149,11 @@ def __init__(self, calendar_type: str = None, deleted_instance_dates: List[datet self.start_date = start_date if week_start_day is not None: self.week_start_day = week_start_day - if discriminator is not None: - self.discriminator = discriminator + @property def calendar_type(self) -> str: - """Gets the calendar_type of this MapiCalendarRecurrencePatternDto. - + """ Enumerated the calendar type of the mapi recurrence Enum, available values: Default, CalGregorian, CalGregorianUs, CalJapan, CalTaiwan, CalKorea, CalHijri, CalThai, CalHebrew, CalGregorianMeFrench, CalGregorianArabic, CalGregorianXLitEnglish, CalGregorianXLitFrench, CalLunarJapanese, CalChineseLunar, CalSaka, CalLunarEtoChn, CalLunarEtoKor, CalLunarRokuyou, CalLunarKorean, CalUmAlQura :return: The calendar_type of this MapiCalendarRecurrencePatternDto. @@ -154,8 +163,7 @@ def calendar_type(self) -> str: @calendar_type.setter def calendar_type(self, calendar_type: str): - """Sets the calendar_type of this MapiCalendarRecurrencePatternDto. - + """ Enumerated the calendar type of the mapi recurrence Enum, available values: Default, CalGregorian, CalGregorianUs, CalJapan, CalTaiwan, CalKorea, CalHijri, CalThai, CalHebrew, CalGregorianMeFrench, CalGregorianArabic, CalGregorianXLitEnglish, CalGregorianXLitFrench, CalLunarJapanese, CalChineseLunar, CalSaka, CalLunarEtoChn, CalLunarEtoKor, CalLunarRokuyou, CalLunarKorean, CalUmAlQura :param calendar_type: The calendar_type of this MapiCalendarRecurrencePatternDto. @@ -167,8 +175,7 @@ def calendar_type(self, calendar_type: str): @property def deleted_instance_dates(self) -> List[datetime]: - """Gets the deleted_instance_dates of this MapiCalendarRecurrencePatternDto. - + """ An array of dates, each of which is the original instance date of either a deleted instance or a modified instance for this recurrence. :return: The deleted_instance_dates of this MapiCalendarRecurrencePatternDto. @@ -178,8 +185,7 @@ def deleted_instance_dates(self) -> List[datetime]: @deleted_instance_dates.setter def deleted_instance_dates(self, deleted_instance_dates: List[datetime]): - """Sets the deleted_instance_dates of this MapiCalendarRecurrencePatternDto. - + """ An array of dates, each of which is the original instance date of either a deleted instance or a modified instance for this recurrence. :param deleted_instance_dates: The deleted_instance_dates of this MapiCalendarRecurrencePatternDto. @@ -189,8 +195,7 @@ def deleted_instance_dates(self, deleted_instance_dates: List[datetime]): @property def end_date(self) -> datetime: - """Gets the end_date of this MapiCalendarRecurrencePatternDto. - + """ End date of an item recurrence pattern. :return: The end_date of this MapiCalendarRecurrencePatternDto. @@ -200,8 +205,7 @@ def end_date(self) -> datetime: @end_date.setter def end_date(self, end_date: datetime): - """Sets the end_date of this MapiCalendarRecurrencePatternDto. - + """ End date of an item recurrence pattern. :param end_date: The end_date of this MapiCalendarRecurrencePatternDto. @@ -213,8 +217,7 @@ def end_date(self, end_date: datetime): @property def end_type(self) -> str: - """Gets the end_type of this MapiCalendarRecurrencePatternDto. - + """ Enumerates the ending type for the recurrence. Enum, available values: None, EndAfterDate, EndAfterNOccurrences, NeverEnd :return: The end_type of this MapiCalendarRecurrencePatternDto. @@ -224,8 +227,7 @@ def end_type(self) -> str: @end_type.setter def end_type(self, end_type: str): - """Sets the end_type of this MapiCalendarRecurrencePatternDto. - + """ Enumerates the ending type for the recurrence. Enum, available values: None, EndAfterDate, EndAfterNOccurrences, NeverEnd :param end_type: The end_type of this MapiCalendarRecurrencePatternDto. @@ -237,8 +239,7 @@ def end_type(self, end_type: str): @property def exceptions(self) -> List[MapiCalendarExceptionInfoDto]: - """Gets the exceptions of this MapiCalendarRecurrencePatternDto. - + """ An exception specifies changes to an instance of a recurring series. :return: The exceptions of this MapiCalendarRecurrencePatternDto. @@ -248,8 +249,7 @@ def exceptions(self) -> List[MapiCalendarExceptionInfoDto]: @exceptions.setter def exceptions(self, exceptions: List[MapiCalendarExceptionInfoDto]): - """Sets the exceptions of this MapiCalendarRecurrencePatternDto. - + """ An exception specifies changes to an instance of a recurring series. :param exceptions: The exceptions of this MapiCalendarRecurrencePatternDto. @@ -259,8 +259,7 @@ def exceptions(self, exceptions: List[MapiCalendarExceptionInfoDto]): @property def frequency(self) -> str: - """Gets the frequency of this MapiCalendarRecurrencePatternDto. - + """ Enumerates mapi calendar recurrence frequency Enum, available values: None, Daily, Weekly, Monthly, Yearly :return: The frequency of this MapiCalendarRecurrencePatternDto. @@ -270,8 +269,7 @@ def frequency(self) -> str: @frequency.setter def frequency(self, frequency: str): - """Sets the frequency of this MapiCalendarRecurrencePatternDto. - + """ Enumerates mapi calendar recurrence frequency Enum, available values: None, Daily, Weekly, Monthly, Yearly :param frequency: The frequency of this MapiCalendarRecurrencePatternDto. @@ -283,8 +281,7 @@ def frequency(self, frequency: str): @property def modified_instance_dates(self) -> List[datetime]: - """Gets the modified_instance_dates of this MapiCalendarRecurrencePatternDto. - + """ An array of dates, each of which is the date of a modified instance. :return: The modified_instance_dates of this MapiCalendarRecurrencePatternDto. @@ -294,8 +291,7 @@ def modified_instance_dates(self) -> List[datetime]: @modified_instance_dates.setter def modified_instance_dates(self, modified_instance_dates: List[datetime]): - """Sets the modified_instance_dates of this MapiCalendarRecurrencePatternDto. - + """ An array of dates, each of which is the date of a modified instance. :param modified_instance_dates: The modified_instance_dates of this MapiCalendarRecurrencePatternDto. @@ -305,8 +301,7 @@ def modified_instance_dates(self, modified_instance_dates: List[datetime]): @property def occurrence_count(self) -> int: - """Gets the occurrence_count of this MapiCalendarRecurrencePatternDto. - + """ Number of occurrences in a recurrence. :return: The occurrence_count of this MapiCalendarRecurrencePatternDto. @@ -316,8 +311,7 @@ def occurrence_count(self) -> int: @occurrence_count.setter def occurrence_count(self, occurrence_count: int): - """Sets the occurrence_count of this MapiCalendarRecurrencePatternDto. - + """ Number of occurrences in a recurrence. :param occurrence_count: The occurrence_count of this MapiCalendarRecurrencePatternDto. @@ -329,8 +323,7 @@ def occurrence_count(self, occurrence_count: int): @property def pattern_type(self) -> str: - """Gets the pattern_type of this MapiCalendarRecurrencePatternDto. - + """ Enumerates the mapi calendar recurrence pattern types Enum, available values: Day, Week, Month, MonthEnd, MonthNth, HjMonth, HjMonthNth, HjMonthEnd :return: The pattern_type of this MapiCalendarRecurrencePatternDto. @@ -340,8 +333,7 @@ def pattern_type(self) -> str: @pattern_type.setter def pattern_type(self, pattern_type: str): - """Sets the pattern_type of this MapiCalendarRecurrencePatternDto. - + """ Enumerates the mapi calendar recurrence pattern types Enum, available values: Day, Week, Month, MonthEnd, MonthNth, HjMonth, HjMonthNth, HjMonthEnd :param pattern_type: The pattern_type of this MapiCalendarRecurrencePatternDto. @@ -353,8 +345,7 @@ def pattern_type(self, pattern_type: str): @property def period(self) -> int: - """Gets the period of this MapiCalendarRecurrencePatternDto. - + """ Interval at which the meeting pattern repeats. :return: The period of this MapiCalendarRecurrencePatternDto. @@ -364,8 +355,7 @@ def period(self) -> int: @period.setter def period(self, period: int): - """Sets the period of this MapiCalendarRecurrencePatternDto. - + """ Interval at which the meeting pattern repeats. :param period: The period of this MapiCalendarRecurrencePatternDto. @@ -377,8 +367,7 @@ def period(self, period: int): @property def sliding_flag(self) -> bool: - """Gets the sliding_flag of this MapiCalendarRecurrencePatternDto. - + """ Defines whether pattern is sliding or not. :return: The sliding_flag of this MapiCalendarRecurrencePatternDto. @@ -388,8 +377,7 @@ def sliding_flag(self) -> bool: @sliding_flag.setter def sliding_flag(self, sliding_flag: bool): - """Sets the sliding_flag of this MapiCalendarRecurrencePatternDto. - + """ Defines whether pattern is sliding or not. :param sliding_flag: The sliding_flag of this MapiCalendarRecurrencePatternDto. @@ -401,8 +389,7 @@ def sliding_flag(self, sliding_flag: bool): @property def start_date(self) -> datetime: - """Gets the start_date of this MapiCalendarRecurrencePatternDto. - + """ Start date of an item recurrence pattern. :return: The start_date of this MapiCalendarRecurrencePatternDto. @@ -412,8 +399,7 @@ def start_date(self) -> datetime: @start_date.setter def start_date(self, start_date: datetime): - """Sets the start_date of this MapiCalendarRecurrencePatternDto. - + """ Start date of an item recurrence pattern. :param start_date: The start_date of this MapiCalendarRecurrencePatternDto. @@ -425,8 +411,7 @@ def start_date(self, start_date: datetime): @property def week_start_day(self) -> str: - """Gets the week_start_day of this MapiCalendarRecurrencePatternDto. - + """ Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday :return: The week_start_day of this MapiCalendarRecurrencePatternDto. @@ -436,8 +421,7 @@ def week_start_day(self) -> str: @week_start_day.setter def week_start_day(self, week_start_day: str): - """Sets the week_start_day of this MapiCalendarRecurrencePatternDto. - + """ Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday :param week_start_day: The week_start_day of this MapiCalendarRecurrencePatternDto. @@ -449,8 +433,8 @@ def week_start_day(self, week_start_day: str): @property def discriminator(self) -> str: - """Gets the discriminator of this MapiCalendarRecurrencePatternDto. - + """ + Gets the discriminator of this MapiCalendarRecurrencePatternDto. :return: The discriminator of this MapiCalendarRecurrencePatternDto. :rtype: str @@ -459,15 +443,13 @@ def discriminator(self) -> str: @discriminator.setter def discriminator(self, discriminator: str): - """Sets the discriminator of this MapiCalendarRecurrencePatternDto. - + """ + Sets the discriminator of this MapiCalendarRecurrencePatternDto. :param discriminator: The discriminator of this MapiCalendarRecurrencePatternDto. :type: str """ - if discriminator is None: - raise ValueError("Invalid value for `discriminator`, must not be `None`") - self._discriminator = self.__class__.__name__ + pass # setter is ignored for discriminator property def to_dict(self): """Returns the model properties as a dict""" diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_save_request.py b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_save_request.py new file mode 100644 index 0000000..03f35ec --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_save_request.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.mapi_calendar_dto import MapiCalendarDto +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation +from AsposeEmailCloudSdk.models.storage_model_of_mapi_calendar_dto import StorageModelOfMapiCalendarDto + + +class MapiCalendarSaveRequest(StorageModelOfMapiCalendarDto): + """Save MapiCalendar to storage 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 = { + 'storage_file': 'StorageFileLocation', + 'value': 'MapiCalendarDto', + 'format': 'str' + } + + attribute_map = { + 'storage_file': 'storageFile', + 'value': 'value', + 'format': 'format' + } + + def __init__(self, storage_file: StorageFileLocation = None, value: MapiCalendarDto = None, format: str = None): + """ + Save MapiCalendar to storage request. + :param storage_file: + :type storage_file: StorageFileLocation + :param value: + :type value: MapiCalendarDto + :param format: Calendar file format Enum, available values: Ics, Msg + :type format: str + """ + super(MapiCalendarSaveRequest, self).__init__() + + self._format = None + + if storage_file is not None: + self.storage_file = storage_file + if value is not None: + self.value = value + if format is not None: + self.format = format + + + @property + def format(self) -> str: + """ + Calendar file format Enum, available values: Ics, Msg + + :return: The format of this MapiCalendarSaveRequest. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format: str): + """ + Calendar file format Enum, available values: Ics, Msg + + :param format: The format of this MapiCalendarSaveRequest. + :type: str + """ + if format is None: + raise ValueError("Invalid value for `format`, must not be `None`") + self._format = format + + 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, MapiCalendarSaveRequest): + 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/mapi_calendar_time_zone_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_time_zone_dto.py index ea20699..2e52284 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_time_zone_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_time_zone_dto.py @@ -57,8 +57,10 @@ class MapiCalendarTimeZoneDto(object): def __init__(self, key_name: str = None, time_zone_rules: List[MapiCalendarTimeZoneInfoDto] = None): """ Represents the mapi calendar time zone information. - :param key_name (str) Human-readable description of the time zone. - :param time_zone_rules (List[MapiCalendarTimeZoneInfoDto]) Time zone rules + :param key_name: Human-readable description of the time zone. + :type key_name: str + :param time_zone_rules: Time zone rules + :type time_zone_rules: List[MapiCalendarTimeZoneInfoDto] """ self._key_name = None @@ -69,10 +71,10 @@ def __init__(self, key_name: str = None, time_zone_rules: List[MapiCalendarTimeZ if time_zone_rules is not None: self.time_zone_rules = time_zone_rules + @property def key_name(self) -> str: - """Gets the key_name of this MapiCalendarTimeZoneDto. - + """ Human-readable description of the time zone. :return: The key_name of this MapiCalendarTimeZoneDto. @@ -82,8 +84,7 @@ def key_name(self) -> str: @key_name.setter def key_name(self, key_name: str): - """Sets the key_name of this MapiCalendarTimeZoneDto. - + """ Human-readable description of the time zone. :param key_name: The key_name of this MapiCalendarTimeZoneDto. @@ -93,8 +94,7 @@ def key_name(self, key_name: str): @property def time_zone_rules(self) -> List[MapiCalendarTimeZoneInfoDto]: - """Gets the time_zone_rules of this MapiCalendarTimeZoneDto. - + """ Time zone rules :return: The time_zone_rules of this MapiCalendarTimeZoneDto. @@ -104,8 +104,7 @@ def time_zone_rules(self) -> List[MapiCalendarTimeZoneInfoDto]: @time_zone_rules.setter def time_zone_rules(self, time_zone_rules: List[MapiCalendarTimeZoneInfoDto]): - """Sets the time_zone_rules of this MapiCalendarTimeZoneDto. - + """ Time zone rules :param time_zone_rules: The time_zone_rules of this MapiCalendarTimeZoneDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_time_zone_info_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_time_zone_info_dto.py index e943431..1af9fde 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_time_zone_info_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_time_zone_info_dto.py @@ -67,13 +67,20 @@ class MapiCalendarTimeZoneInfoDto(object): def __init__(self, bias: int = None, daylight_bias: int = None, daylight_date: MapiCalendarTimeZoneRuleDto = None, standard_bias: int = None, standard_date: MapiCalendarTimeZoneRuleDto = None, time_zone_flags: List[str] = None, year: int = None): """ Represents the mapi calendar time zone rule. - :param bias (int) Time zone's offset in minutes from UTC. - :param daylight_bias (int) Offset in minutes from lBias during daylight saving time. - :param daylight_date (MapiCalendarTimeZoneRuleDto) Date and local time that indicate when to begin using the DaylightBias. - :param standard_bias (int) Offset in minutes from lBias during standard time. - :param standard_date (MapiCalendarTimeZoneRuleDto) Date and local time that indicate when to begin using the StandardBias. - :param time_zone_flags (List[str]) Individual bit flags that specify information about this TimeZoneRule. - :param year (int) Year in which this rule is scheduled to take effect. + :param bias: Time zone's offset in minutes from UTC. + :type bias: int + :param daylight_bias: Offset in minutes from lBias during daylight saving time. + :type daylight_bias: int + :param daylight_date: Date and local time that indicate when to begin using the DaylightBias. + :type daylight_date: MapiCalendarTimeZoneRuleDto + :param standard_bias: Offset in minutes from lBias during standard time. + :type standard_bias: int + :param standard_date: Date and local time that indicate when to begin using the StandardBias. + :type standard_date: MapiCalendarTimeZoneRuleDto + :param time_zone_flags: Individual bit flags that specify information about this TimeZoneRule. + :type time_zone_flags: List[str] + :param year: Year in which this rule is scheduled to take effect. + :type year: int """ self._bias = None @@ -99,10 +106,10 @@ def __init__(self, bias: int = None, daylight_bias: int = None, daylight_date: M if year is not None: self.year = year + @property def bias(self) -> int: - """Gets the bias of this MapiCalendarTimeZoneInfoDto. - + """ Time zone's offset in minutes from UTC. :return: The bias of this MapiCalendarTimeZoneInfoDto. @@ -112,8 +119,7 @@ def bias(self) -> int: @bias.setter def bias(self, bias: int): - """Sets the bias of this MapiCalendarTimeZoneInfoDto. - + """ Time zone's offset in minutes from UTC. :param bias: The bias of this MapiCalendarTimeZoneInfoDto. @@ -125,8 +131,7 @@ def bias(self, bias: int): @property def daylight_bias(self) -> int: - """Gets the daylight_bias of this MapiCalendarTimeZoneInfoDto. - + """ Offset in minutes from lBias during daylight saving time. :return: The daylight_bias of this MapiCalendarTimeZoneInfoDto. @@ -136,8 +141,7 @@ def daylight_bias(self) -> int: @daylight_bias.setter def daylight_bias(self, daylight_bias: int): - """Sets the daylight_bias of this MapiCalendarTimeZoneInfoDto. - + """ Offset in minutes from lBias during daylight saving time. :param daylight_bias: The daylight_bias of this MapiCalendarTimeZoneInfoDto. @@ -149,8 +153,7 @@ def daylight_bias(self, daylight_bias: int): @property def daylight_date(self) -> MapiCalendarTimeZoneRuleDto: - """Gets the daylight_date of this MapiCalendarTimeZoneInfoDto. - + """ Date and local time that indicate when to begin using the DaylightBias. :return: The daylight_date of this MapiCalendarTimeZoneInfoDto. @@ -160,8 +163,7 @@ def daylight_date(self) -> MapiCalendarTimeZoneRuleDto: @daylight_date.setter def daylight_date(self, daylight_date: MapiCalendarTimeZoneRuleDto): - """Sets the daylight_date of this MapiCalendarTimeZoneInfoDto. - + """ Date and local time that indicate when to begin using the DaylightBias. :param daylight_date: The daylight_date of this MapiCalendarTimeZoneInfoDto. @@ -171,8 +173,7 @@ def daylight_date(self, daylight_date: MapiCalendarTimeZoneRuleDto): @property def standard_bias(self) -> int: - """Gets the standard_bias of this MapiCalendarTimeZoneInfoDto. - + """ Offset in minutes from lBias during standard time. :return: The standard_bias of this MapiCalendarTimeZoneInfoDto. @@ -182,8 +183,7 @@ def standard_bias(self) -> int: @standard_bias.setter def standard_bias(self, standard_bias: int): - """Sets the standard_bias of this MapiCalendarTimeZoneInfoDto. - + """ Offset in minutes from lBias during standard time. :param standard_bias: The standard_bias of this MapiCalendarTimeZoneInfoDto. @@ -195,8 +195,7 @@ def standard_bias(self, standard_bias: int): @property def standard_date(self) -> MapiCalendarTimeZoneRuleDto: - """Gets the standard_date of this MapiCalendarTimeZoneInfoDto. - + """ Date and local time that indicate when to begin using the StandardBias. :return: The standard_date of this MapiCalendarTimeZoneInfoDto. @@ -206,8 +205,7 @@ def standard_date(self) -> MapiCalendarTimeZoneRuleDto: @standard_date.setter def standard_date(self, standard_date: MapiCalendarTimeZoneRuleDto): - """Sets the standard_date of this MapiCalendarTimeZoneInfoDto. - + """ Date and local time that indicate when to begin using the StandardBias. :param standard_date: The standard_date of this MapiCalendarTimeZoneInfoDto. @@ -217,8 +215,7 @@ def standard_date(self, standard_date: MapiCalendarTimeZoneRuleDto): @property def time_zone_flags(self) -> List[str]: - """Gets the time_zone_flags of this MapiCalendarTimeZoneInfoDto. - + """ Individual bit flags that specify information about this TimeZoneRule. Items: Enumerates the individual bit flags that specify information about TimeZoneRule Enum, available values: TzRuleFlagRecurCurrentTzReg, TzRuleFlagEffectiveTzReg :return: The time_zone_flags of this MapiCalendarTimeZoneInfoDto. @@ -228,8 +225,7 @@ def time_zone_flags(self) -> List[str]: @time_zone_flags.setter def time_zone_flags(self, time_zone_flags: List[str]): - """Sets the time_zone_flags of this MapiCalendarTimeZoneInfoDto. - + """ Individual bit flags that specify information about this TimeZoneRule. Items: Enumerates the individual bit flags that specify information about TimeZoneRule Enum, available values: TzRuleFlagRecurCurrentTzReg, TzRuleFlagEffectiveTzReg :param time_zone_flags: The time_zone_flags of this MapiCalendarTimeZoneInfoDto. @@ -239,8 +235,7 @@ def time_zone_flags(self, time_zone_flags: List[str]): @property def year(self) -> int: - """Gets the year of this MapiCalendarTimeZoneInfoDto. - + """ Year in which this rule is scheduled to take effect. :return: The year of this MapiCalendarTimeZoneInfoDto. @@ -250,8 +245,7 @@ def year(self) -> int: @year.setter def year(self, year: int): - """Sets the year of this MapiCalendarTimeZoneInfoDto. - + """ Year in which this rule is scheduled to take effect. :param year: The year of this MapiCalendarTimeZoneInfoDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_time_zone_rule_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_time_zone_rule_dto.py index 2ecfa4c..b655054 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_time_zone_rule_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_time_zone_rule_dto.py @@ -69,15 +69,24 @@ class MapiCalendarTimeZoneRuleDto(object): def __init__(self, _date: datetime = None, day_of_week: str = None, hour: int = None, milliseconds: int = None, minute: int = None, month: int = None, position: str = None, seconds: int = None, year: int = None): """ Represents time zone rule that indicate when to begin using the Standard/Daylight time. - :param _date (datetime) Date and time that indicate when to begin using the Standard/Daylight time. - :param day_of_week (str) Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday - :param hour (int) Hour. - :param milliseconds (int) Milliseconds. - :param minute (int) Minute. - :param month (int) Month. - :param position (str) Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last - :param seconds (int) Seconds. - :param year (int) Year. + :param _date: Date and time that indicate when to begin using the Standard/Daylight time. + :type _date: datetime + :param day_of_week: Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday + :type day_of_week: str + :param hour: Hour. + :type hour: int + :param milliseconds: Milliseconds. + :type milliseconds: int + :param minute: Minute. + :type minute: int + :param month: Month. + :type month: int + :param position: Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last + :type position: str + :param seconds: Seconds. + :type seconds: int + :param year: Year. + :type year: int """ self.__date = None @@ -109,10 +118,10 @@ def __init__(self, _date: datetime = None, day_of_week: str = None, hour: int = if year is not None: self.year = year + @property def _date(self) -> datetime: - """Gets the _date of this MapiCalendarTimeZoneRuleDto. - + """ Date and time that indicate when to begin using the Standard/Daylight time. :return: The _date of this MapiCalendarTimeZoneRuleDto. @@ -122,8 +131,7 @@ def _date(self) -> datetime: @_date.setter def _date(self, _date: datetime): - """Sets the _date of this MapiCalendarTimeZoneRuleDto. - + """ Date and time that indicate when to begin using the Standard/Daylight time. :param _date: The _date of this MapiCalendarTimeZoneRuleDto. @@ -135,8 +143,7 @@ def _date(self, _date: datetime): @property def day_of_week(self) -> str: - """Gets the day_of_week of this MapiCalendarTimeZoneRuleDto. - + """ Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday :return: The day_of_week of this MapiCalendarTimeZoneRuleDto. @@ -146,8 +153,7 @@ def day_of_week(self) -> str: @day_of_week.setter def day_of_week(self, day_of_week: str): - """Sets the day_of_week of this MapiCalendarTimeZoneRuleDto. - + """ Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday :param day_of_week: The day_of_week of this MapiCalendarTimeZoneRuleDto. @@ -159,8 +165,7 @@ def day_of_week(self, day_of_week: str): @property def hour(self) -> int: - """Gets the hour of this MapiCalendarTimeZoneRuleDto. - + """ Hour. :return: The hour of this MapiCalendarTimeZoneRuleDto. @@ -170,8 +175,7 @@ def hour(self) -> int: @hour.setter def hour(self, hour: int): - """Sets the hour of this MapiCalendarTimeZoneRuleDto. - + """ Hour. :param hour: The hour of this MapiCalendarTimeZoneRuleDto. @@ -183,8 +187,7 @@ def hour(self, hour: int): @property def milliseconds(self) -> int: - """Gets the milliseconds of this MapiCalendarTimeZoneRuleDto. - + """ Milliseconds. :return: The milliseconds of this MapiCalendarTimeZoneRuleDto. @@ -194,8 +197,7 @@ def milliseconds(self) -> int: @milliseconds.setter def milliseconds(self, milliseconds: int): - """Sets the milliseconds of this MapiCalendarTimeZoneRuleDto. - + """ Milliseconds. :param milliseconds: The milliseconds of this MapiCalendarTimeZoneRuleDto. @@ -207,8 +209,7 @@ def milliseconds(self, milliseconds: int): @property def minute(self) -> int: - """Gets the minute of this MapiCalendarTimeZoneRuleDto. - + """ Minute. :return: The minute of this MapiCalendarTimeZoneRuleDto. @@ -218,8 +219,7 @@ def minute(self) -> int: @minute.setter def minute(self, minute: int): - """Sets the minute of this MapiCalendarTimeZoneRuleDto. - + """ Minute. :param minute: The minute of this MapiCalendarTimeZoneRuleDto. @@ -231,8 +231,7 @@ def minute(self, minute: int): @property def month(self) -> int: - """Gets the month of this MapiCalendarTimeZoneRuleDto. - + """ Month. :return: The month of this MapiCalendarTimeZoneRuleDto. @@ -242,8 +241,7 @@ def month(self) -> int: @month.setter def month(self, month: int): - """Sets the month of this MapiCalendarTimeZoneRuleDto. - + """ Month. :param month: The month of this MapiCalendarTimeZoneRuleDto. @@ -251,12 +249,15 @@ def month(self, month: int): """ if month is None: raise ValueError("Invalid value for `month`, must not be `None`") + if month is not None and month > 12: + raise ValueError("Invalid value for `month`, must be a value less than or equal to `12`") + if month is not None and month < 0: + raise ValueError("Invalid value for `month`, must be a value greater than or equal to `0`") self._month = month @property def position(self) -> str: - """Gets the position of this MapiCalendarTimeZoneRuleDto. - + """ Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last :return: The position of this MapiCalendarTimeZoneRuleDto. @@ -266,8 +267,7 @@ def position(self) -> str: @position.setter def position(self, position: str): - """Sets the position of this MapiCalendarTimeZoneRuleDto. - + """ Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last :param position: The position of this MapiCalendarTimeZoneRuleDto. @@ -279,8 +279,7 @@ def position(self, position: str): @property def seconds(self) -> int: - """Gets the seconds of this MapiCalendarTimeZoneRuleDto. - + """ Seconds. :return: The seconds of this MapiCalendarTimeZoneRuleDto. @@ -290,8 +289,7 @@ def seconds(self) -> int: @seconds.setter def seconds(self, seconds: int): - """Sets the seconds of this MapiCalendarTimeZoneRuleDto. - + """ Seconds. :param seconds: The seconds of this MapiCalendarTimeZoneRuleDto. @@ -303,8 +301,7 @@ def seconds(self, seconds: int): @property def year(self) -> int: - """Gets the year of this MapiCalendarTimeZoneRuleDto. - + """ Year. :return: The year of this MapiCalendarTimeZoneRuleDto. @@ -314,8 +311,7 @@ def year(self) -> int: @year.setter def year(self, year: int): - """Sets the year of this MapiCalendarTimeZoneRuleDto. - + """ Year. :param year: The year of this MapiCalendarTimeZoneRuleDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_weekly_recurrence_pattern_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_weekly_recurrence_pattern_dto.py index 3b3d94c..be224a8 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_weekly_recurrence_pattern_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_weekly_recurrence_pattern_dto.py @@ -81,24 +81,37 @@ class MapiCalendarWeeklyRecurrencePatternDto(MapiCalendarRecurrencePatternDto): 'day_of_week': 'dayOfWeek' } - def __init__(self, calendar_type: str = None, deleted_instance_dates: List[datetime] = None, end_date: datetime = None, end_type: str = None, exceptions: List[MapiCalendarExceptionInfoDto] = None, frequency: str = None, modified_instance_dates: List[datetime] = None, occurrence_count: int = None, pattern_type: str = None, period: int = None, sliding_flag: bool = None, start_date: datetime = None, week_start_day: str = None, discriminator: str = None, day_of_week: List[str] = None): + def __init__(self, calendar_type: str = None, deleted_instance_dates: List[datetime] = None, end_date: datetime = None, end_type: str = None, exceptions: List[MapiCalendarExceptionInfoDto] = None, frequency: str = None, modified_instance_dates: List[datetime] = None, occurrence_count: int = None, pattern_type: str = None, period: int = None, sliding_flag: bool = None, start_date: datetime = None, week_start_day: str = None, day_of_week: List[str] = None): """ Represents the weekly recurrence pattern of the mapi calendar - :param calendar_type (str) Enumerated the calendar type of the mapi recurrence Enum, available values: Default, CalGregorian, CalGregorianUs, CalJapan, CalTaiwan, CalKorea, CalHijri, CalThai, CalHebrew, CalGregorianMeFrench, CalGregorianArabic, CalGregorianXLitEnglish, CalGregorianXLitFrench, CalLunarJapanese, CalChineseLunar, CalSaka, CalLunarEtoChn, CalLunarEtoKor, CalLunarRokuyou, CalLunarKorean, CalUmAlQura - :param deleted_instance_dates (List[datetime]) An array of dates, each of which is the original instance date of either a deleted instance or a modified instance for this recurrence. - :param end_date (datetime) End date of an item recurrence pattern. - :param end_type (str) Enumerates the ending type for the recurrence. Enum, available values: None, EndAfterDate, EndAfterNOccurrences, NeverEnd - :param exceptions (List[MapiCalendarExceptionInfoDto]) An exception specifies changes to an instance of a recurring series. - :param frequency (str) Enumerates mapi calendar recurrence frequency Enum, available values: None, Daily, Weekly, Monthly, Yearly - :param modified_instance_dates (List[datetime]) An array of dates, each of which is the date of a modified instance. - :param occurrence_count (int) Number of occurrences in a recurrence. - :param pattern_type (str) Enumerates the mapi calendar recurrence pattern types Enum, available values: Day, Week, Month, MonthEnd, MonthNth, HjMonth, HjMonthNth, HjMonthEnd - :param period (int) Interval at which the meeting pattern repeats. - :param sliding_flag (bool) Defines whether pattern is sliding or not. - :param start_date (datetime) Start date of an item recurrence pattern. - :param week_start_day (str) Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday - :param discriminator (str) - :param day_of_week (List[str]) Days of week at which the event occurs. + :param calendar_type: Enumerated the calendar type of the mapi recurrence Enum, available values: Default, CalGregorian, CalGregorianUs, CalJapan, CalTaiwan, CalKorea, CalHijri, CalThai, CalHebrew, CalGregorianMeFrench, CalGregorianArabic, CalGregorianXLitEnglish, CalGregorianXLitFrench, CalLunarJapanese, CalChineseLunar, CalSaka, CalLunarEtoChn, CalLunarEtoKor, CalLunarRokuyou, CalLunarKorean, CalUmAlQura + :type calendar_type: str + :param deleted_instance_dates: An array of dates, each of which is the original instance date of either a deleted instance or a modified instance for this recurrence. + :type deleted_instance_dates: List[datetime] + :param end_date: End date of an item recurrence pattern. + :type end_date: datetime + :param end_type: Enumerates the ending type for the recurrence. Enum, available values: None, EndAfterDate, EndAfterNOccurrences, NeverEnd + :type end_type: str + :param exceptions: An exception specifies changes to an instance of a recurring series. + :type exceptions: List[MapiCalendarExceptionInfoDto] + :param frequency: Enumerates mapi calendar recurrence frequency Enum, available values: None, Daily, Weekly, Monthly, Yearly + :type frequency: str + :param modified_instance_dates: An array of dates, each of which is the date of a modified instance. + :type modified_instance_dates: List[datetime] + :param occurrence_count: Number of occurrences in a recurrence. + :type occurrence_count: int + :param pattern_type: Enumerates the mapi calendar recurrence pattern types Enum, available values: Day, Week, Month, MonthEnd, MonthNth, HjMonth, HjMonthNth, HjMonthEnd + :type pattern_type: str + :param period: Interval at which the meeting pattern repeats. + :type period: int + :param sliding_flag: Defines whether pattern is sliding or not. + :type sliding_flag: bool + :param start_date: Start date of an item recurrence pattern. + :type start_date: datetime + :param week_start_day: Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday + :type week_start_day: str + :param day_of_week: Days of week at which the event occurs. + :type day_of_week: List[str] """ super(MapiCalendarWeeklyRecurrencePatternDto, self).__init__() @@ -130,15 +143,13 @@ def __init__(self, calendar_type: str = None, deleted_instance_dates: List[datet self.start_date = start_date if week_start_day is not None: self.week_start_day = week_start_day - if discriminator is not None: - self.discriminator = discriminator if day_of_week is not None: self.day_of_week = day_of_week + @property def day_of_week(self) -> List[str]: - """Gets the day_of_week of this MapiCalendarWeeklyRecurrencePatternDto. - + """ Days of week at which the event occurs. Items: Enumerates the days of week of the mapi calendar recurrence pattern Enum, available values: Saturday, Friday, Thursday, Wednesday, Tuesday, Monday, Sunday :return: The day_of_week of this MapiCalendarWeeklyRecurrencePatternDto. @@ -148,8 +159,7 @@ def day_of_week(self) -> List[str]: @day_of_week.setter def day_of_week(self, day_of_week: List[str]): - """Sets the day_of_week of this MapiCalendarWeeklyRecurrencePatternDto. - + """ Days of week at which the event occurs. Items: Enumerates the days of week of the mapi calendar recurrence pattern Enum, available values: Saturday, Friday, Thursday, Wednesday, Tuesday, Monday, Sunday :param day_of_week: The day_of_week of this MapiCalendarWeeklyRecurrencePatternDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_yearly_and_monthly_recurrence_pattern_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_yearly_and_monthly_recurrence_pattern_dto.py index 3508ac6..924a4fe 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_calendar_yearly_and_monthly_recurrence_pattern_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_calendar_yearly_and_monthly_recurrence_pattern_dto.py @@ -85,26 +85,41 @@ class MapiCalendarYearlyAndMonthlyRecurrencePatternDto(MapiCalendarRecurrencePat 'position': 'position' } - def __init__(self, calendar_type: str = None, deleted_instance_dates: List[datetime] = None, end_date: datetime = None, end_type: str = None, exceptions: List[MapiCalendarExceptionInfoDto] = None, frequency: str = None, modified_instance_dates: List[datetime] = None, occurrence_count: int = None, pattern_type: str = None, period: int = None, sliding_flag: bool = None, start_date: datetime = None, week_start_day: str = None, discriminator: str = None, day: int = None, day_of_week: List[str] = None, position: str = None): + def __init__(self, calendar_type: str = None, deleted_instance_dates: List[datetime] = None, end_date: datetime = None, end_type: str = None, exceptions: List[MapiCalendarExceptionInfoDto] = None, frequency: str = None, modified_instance_dates: List[datetime] = None, occurrence_count: int = None, pattern_type: str = None, period: int = None, sliding_flag: bool = None, start_date: datetime = None, week_start_day: str = None, day: int = None, day_of_week: List[str] = None, position: str = None): """ Represents the yearly and monthly recurrence pattern of the mapi calendar - :param calendar_type (str) Enumerated the calendar type of the mapi recurrence Enum, available values: Default, CalGregorian, CalGregorianUs, CalJapan, CalTaiwan, CalKorea, CalHijri, CalThai, CalHebrew, CalGregorianMeFrench, CalGregorianArabic, CalGregorianXLitEnglish, CalGregorianXLitFrench, CalLunarJapanese, CalChineseLunar, CalSaka, CalLunarEtoChn, CalLunarEtoKor, CalLunarRokuyou, CalLunarKorean, CalUmAlQura - :param deleted_instance_dates (List[datetime]) An array of dates, each of which is the original instance date of either a deleted instance or a modified instance for this recurrence. - :param end_date (datetime) End date of an item recurrence pattern. - :param end_type (str) Enumerates the ending type for the recurrence. Enum, available values: None, EndAfterDate, EndAfterNOccurrences, NeverEnd - :param exceptions (List[MapiCalendarExceptionInfoDto]) An exception specifies changes to an instance of a recurring series. - :param frequency (str) Enumerates mapi calendar recurrence frequency Enum, available values: None, Daily, Weekly, Monthly, Yearly - :param modified_instance_dates (List[datetime]) An array of dates, each of which is the date of a modified instance. - :param occurrence_count (int) Number of occurrences in a recurrence. - :param pattern_type (str) Enumerates the mapi calendar recurrence pattern types Enum, available values: Day, Week, Month, MonthEnd, MonthNth, HjMonth, HjMonthNth, HjMonthEnd - :param period (int) Interval at which the meeting pattern repeats. - :param sliding_flag (bool) Defines whether pattern is sliding or not. - :param start_date (datetime) Start date of an item recurrence pattern. - :param week_start_day (str) Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday - :param discriminator (str) - :param day (int) Day of the month on which the recurrence falls. - :param day_of_week (List[str]) Days of week at which the event occurs. - :param position (str) Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last + :param calendar_type: Enumerated the calendar type of the mapi recurrence Enum, available values: Default, CalGregorian, CalGregorianUs, CalJapan, CalTaiwan, CalKorea, CalHijri, CalThai, CalHebrew, CalGregorianMeFrench, CalGregorianArabic, CalGregorianXLitEnglish, CalGregorianXLitFrench, CalLunarJapanese, CalChineseLunar, CalSaka, CalLunarEtoChn, CalLunarEtoKor, CalLunarRokuyou, CalLunarKorean, CalUmAlQura + :type calendar_type: str + :param deleted_instance_dates: An array of dates, each of which is the original instance date of either a deleted instance or a modified instance for this recurrence. + :type deleted_instance_dates: List[datetime] + :param end_date: End date of an item recurrence pattern. + :type end_date: datetime + :param end_type: Enumerates the ending type for the recurrence. Enum, available values: None, EndAfterDate, EndAfterNOccurrences, NeverEnd + :type end_type: str + :param exceptions: An exception specifies changes to an instance of a recurring series. + :type exceptions: List[MapiCalendarExceptionInfoDto] + :param frequency: Enumerates mapi calendar recurrence frequency Enum, available values: None, Daily, Weekly, Monthly, Yearly + :type frequency: str + :param modified_instance_dates: An array of dates, each of which is the date of a modified instance. + :type modified_instance_dates: List[datetime] + :param occurrence_count: Number of occurrences in a recurrence. + :type occurrence_count: int + :param pattern_type: Enumerates the mapi calendar recurrence pattern types Enum, available values: Day, Week, Month, MonthEnd, MonthNth, HjMonth, HjMonthNth, HjMonthEnd + :type pattern_type: str + :param period: Interval at which the meeting pattern repeats. + :type period: int + :param sliding_flag: Defines whether pattern is sliding or not. + :type sliding_flag: bool + :param start_date: Start date of an item recurrence pattern. + :type start_date: datetime + :param week_start_day: Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday + :type week_start_day: str + :param day: Day of the month on which the recurrence falls. + :type day: int + :param day_of_week: Days of week at which the event occurs. + :type day_of_week: List[str] + :param position: Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last + :type position: str """ super(MapiCalendarYearlyAndMonthlyRecurrencePatternDto, self).__init__() @@ -138,8 +153,6 @@ def __init__(self, calendar_type: str = None, deleted_instance_dates: List[datet self.start_date = start_date if week_start_day is not None: self.week_start_day = week_start_day - if discriminator is not None: - self.discriminator = discriminator if day is not None: self.day = day if day_of_week is not None: @@ -147,10 +160,10 @@ def __init__(self, calendar_type: str = None, deleted_instance_dates: List[datet if position is not None: self.position = position + @property def day(self) -> int: - """Gets the day of this MapiCalendarYearlyAndMonthlyRecurrencePatternDto. - + """ Day of the month on which the recurrence falls. :return: The day of this MapiCalendarYearlyAndMonthlyRecurrencePatternDto. @@ -160,8 +173,7 @@ def day(self) -> int: @day.setter def day(self, day: int): - """Sets the day of this MapiCalendarYearlyAndMonthlyRecurrencePatternDto. - + """ Day of the month on which the recurrence falls. :param day: The day of this MapiCalendarYearlyAndMonthlyRecurrencePatternDto. @@ -173,8 +185,7 @@ def day(self, day: int): @property def day_of_week(self) -> List[str]: - """Gets the day_of_week of this MapiCalendarYearlyAndMonthlyRecurrencePatternDto. - + """ Days of week at which the event occurs. Items: Enumerates the days of week of the mapi calendar recurrence pattern Enum, available values: Saturday, Friday, Thursday, Wednesday, Tuesday, Monday, Sunday :return: The day_of_week of this MapiCalendarYearlyAndMonthlyRecurrencePatternDto. @@ -184,8 +195,7 @@ def day_of_week(self) -> List[str]: @day_of_week.setter def day_of_week(self, day_of_week: List[str]): - """Sets the day_of_week of this MapiCalendarYearlyAndMonthlyRecurrencePatternDto. - + """ Days of week at which the event occurs. Items: Enumerates the days of week of the mapi calendar recurrence pattern Enum, available values: Saturday, Friday, Thursday, Wednesday, Tuesday, Monday, Sunday :param day_of_week: The day_of_week of this MapiCalendarYearlyAndMonthlyRecurrencePatternDto. @@ -195,8 +205,7 @@ def day_of_week(self, day_of_week: List[str]): @property def position(self) -> str: - """Gets the position of this MapiCalendarYearlyAndMonthlyRecurrencePatternDto. - + """ Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last :return: The position of this MapiCalendarYearlyAndMonthlyRecurrencePatternDto. @@ -206,8 +215,7 @@ def position(self) -> str: @position.setter def position(self, position: str): - """Sets the position of this MapiCalendarYearlyAndMonthlyRecurrencePatternDto. - + """ Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last :param position: The position of this MapiCalendarYearlyAndMonthlyRecurrencePatternDto. diff --git a/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_mapi_contact_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_contact_as_file_request.py similarity index 68% rename from sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_mapi_contact_dto.py rename to sdk/AsposeEmailCloudSdk/models/mapi_contact_as_file_request.py index 7b7e05f..f93ec2f 100644 --- a/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_mapi_contact_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_contact_as_file_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -31,11 +31,10 @@ from datetime import datetime from AsposeEmailCloudSdk.models.mapi_contact_dto import MapiContactDto -from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation -class StorageModelRqOfMapiContactDto(object): - """ +class MapiContactAsFileRequest(object): + """Convert MapiContact to file request. """ """ @@ -46,69 +45,76 @@ class StorageModelRqOfMapiContactDto(object): and the value is json key in definition. """ swagger_types = { - 'value': 'MapiContactDto', - 'storage_folder': 'StorageFolderLocation' + 'format': 'str', + 'value': 'MapiContactDto' } attribute_map = { - 'value': 'value', - 'storage_folder': 'storageFolder' + 'format': 'format', + 'value': 'value' } - def __init__(self, value: MapiContactDto = None, storage_folder: StorageFolderLocation = None): + def __init__(self, format: str = None, value: MapiContactDto = None): """ - - :param value (MapiContactDto) - :param storage_folder (StorageFolderLocation) + Convert MapiContact to file request. + :param format: Enumerates contact formats. Enum, available values: VCard, WebDav, Msg + :type format: str + :param value: MAPI contact model. + :type value: MapiContactDto """ + self._format = None self._value = None - self._storage_folder = None + if format is not None: + self.format = format if value is not None: self.value = value - if storage_folder is not None: - self.storage_folder = storage_folder - - @property - def value(self) -> MapiContactDto: - """Gets the value of this StorageModelRqOfMapiContactDto. - :return: The value of this StorageModelRqOfMapiContactDto. - :rtype: MapiContactDto + @property + def format(self) -> str: """ - return self._value + Enumerates contact formats. Enum, available values: VCard, WebDav, Msg - @value.setter - def value(self, value: MapiContactDto): - """Sets the value of this StorageModelRqOfMapiContactDto. + :return: The format of this MapiContactAsFileRequest. + :rtype: str + """ + return self._format + @format.setter + def format(self, format: str): + """ + Enumerates contact formats. Enum, available values: VCard, WebDav, Msg - :param value: The value of this StorageModelRqOfMapiContactDto. - :type: MapiContactDto + :param format: The format of this MapiContactAsFileRequest. + :type: str """ - self._value = value + if format is None: + raise ValueError("Invalid value for `format`, must not be `None`") + self._format = format @property - def storage_folder(self) -> StorageFolderLocation: - """Gets the storage_folder of this StorageModelRqOfMapiContactDto. - - - :return: The storage_folder of this StorageModelRqOfMapiContactDto. - :rtype: StorageFolderLocation + def value(self) -> MapiContactDto: """ - return self._storage_folder + MAPI contact model. - @storage_folder.setter - def storage_folder(self, storage_folder: StorageFolderLocation): - """Sets the storage_folder of this StorageModelRqOfMapiContactDto. + :return: The value of this MapiContactAsFileRequest. + :rtype: MapiContactDto + """ + return self._value + @value.setter + def value(self, value: MapiContactDto): + """ + MAPI contact model. - :param storage_folder: The storage_folder of this StorageModelRqOfMapiContactDto. - :type: StorageFolderLocation + :param value: The value of this MapiContactAsFileRequest. + :type: MapiContactDto """ - self._storage_folder = storage_folder + if value is None: + raise ValueError("Invalid value for `value`, must not be `None`") + self._value = value def to_dict(self): """Returns the model properties as a dict""" @@ -144,7 +150,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, StorageModelRqOfMapiContactDto): + if not isinstance(other, MapiContactAsFileRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_contact_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_contact_dto.py index 15dbbed..6a531ce 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_contact_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_contact_dto.py @@ -114,35 +114,59 @@ class MapiContactDto(MapiMessageItemBaseDto): 'telephones': 'telephones' } - def __init__(self, attachments: List[MapiAttachmentDto] = None, billing: str = None, body: str = None, body_html: str = None, body_rtf: str = None, body_type: str = None, categories: List[str] = None, companies: List[str] = None, item_id: str = None, message_class: str = None, mileage: str = None, recipients: List[MapiRecipientDto] = None, sensitivity: str = None, subject: str = None, subject_prefix: str = None, properties: List[MapiPropertyDto] = None, discriminator: str = None, electronic_addresses: MapiContactElectronicAddressPropertySetDto = None, events: MapiContactEventPropertySetDto = None, name_info: MapiContactNamePropertySetDto = None, other_fields: MapiContactOtherPropertySetDto = None, personal_info: MapiContactPersonalInfoPropertySetDto = None, photo: MapiContactPhotoDto = None, physical_addresses: MapiContactPhysicalAddressPropertySetDto = None, professional_info: MapiContactProfessionalPropertySetDto = None, telephones: MapiContactTelephonePropertySetDto = None): + def __init__(self, attachments: List[MapiAttachmentDto] = None, billing: str = None, body: str = None, body_html: str = None, body_rtf: str = None, body_type: str = None, categories: List[str] = None, companies: List[str] = None, item_id: str = None, message_class: str = None, mileage: str = None, recipients: List[MapiRecipientDto] = None, sensitivity: str = None, subject: str = None, subject_prefix: str = None, properties: List[MapiPropertyDto] = None, electronic_addresses: MapiContactElectronicAddressPropertySetDto = None, events: MapiContactEventPropertySetDto = None, name_info: MapiContactNamePropertySetDto = None, other_fields: MapiContactOtherPropertySetDto = None, personal_info: MapiContactPersonalInfoPropertySetDto = None, photo: MapiContactPhotoDto = None, physical_addresses: MapiContactPhysicalAddressPropertySetDto = None, professional_info: MapiContactProfessionalPropertySetDto = None, telephones: MapiContactTelephonePropertySetDto = None): """ Represents outlook contact information. - :param attachments (List[MapiAttachmentDto]) Message item attachments. - :param billing (str) Billing information associated with an item. - :param body (str) Message text. - :param body_html (str) Gets the BodyRtf of the message converted to HTML, if present, otherwise an empty string. - :param body_rtf (str) RTF formatted message text. - :param body_type (str) The content type of message body. Enum, available values: PlainText, Html, Rtf - :param categories (List[str]) Contains keywords or categories for the message object. - :param companies (List[str]) Contains the names of the companies that are associated with an item. - :param item_id (str) The item id, uses with a server. - :param message_class (str) Case-sensitive string that identifies the sender-defined message class, such as IPM.Note. The message class specifies the type, purpose, or content of the message. - :param mileage (str) Contains the mileage information that is associated with an item. - :param recipients (List[MapiRecipientDto]) Recipients of the message. - :param sensitivity (str) Contains values that indicate the message sensitivity. Enum, available values: None, Personal, Private, CompanyConfidential - :param subject (str) Subject of the message. - :param subject_prefix (str) Subject prefix that typically indicates some action on a message, such as \"FW: \" for forwarding. - :param properties (List[MapiPropertyDto]) List of MAPI properties - :param discriminator (str) - :param electronic_addresses (MapiContactElectronicAddressPropertySetDto) Specify properties for up to three different e-mail addresses and three different fax addresses. - :param events (MapiContactEventPropertySetDto) Specify events associated with a contact. - :param name_info (MapiContactNamePropertySetDto) The properties are used to specify the name of the person represented by the contact. - :param other_fields (MapiContactOtherPropertySetDto) Specify other fields of contact. - :param personal_info (MapiContactPersonalInfoPropertySetDto) Specify other additional contact information. - :param photo (MapiContactPhotoDto) Contact photo. - :param physical_addresses (MapiContactPhysicalAddressPropertySetDto) Specify three physical addresses: Home Address, Work Address, and Other Address. One of the addresses can be marked as the Mailing Address. - :param professional_info (MapiContactProfessionalPropertySetDto) Properties are used to store professional details for the person represented by the contact. - :param telephones (MapiContactTelephonePropertySetDto) Specify telephone numbers for the contact. + :param attachments: Message item attachments. + :type attachments: List[MapiAttachmentDto] + :param billing: Billing information associated with an item. + :type billing: str + :param body: Message text. + :type body: str + :param body_html: Gets the BodyRtf of the message converted to HTML, if present, otherwise an empty string. + :type body_html: str + :param body_rtf: RTF formatted message text. + :type body_rtf: str + :param body_type: The content type of message body. Enum, available values: PlainText, Html, Rtf + :type body_type: str + :param categories: Contains keywords or categories for the message object. + :type categories: List[str] + :param companies: Contains the names of the companies that are associated with an item. + :type companies: List[str] + :param item_id: The item id, uses with a server. + :type item_id: str + :param message_class: Case-sensitive string that identifies the sender-defined message class, such as IPM.Note. The message class specifies the type, purpose, or content of the message. + :type message_class: str + :param mileage: Contains the mileage information that is associated with an item. + :type mileage: str + :param recipients: Recipients of the message. + :type recipients: List[MapiRecipientDto] + :param sensitivity: Contains values that indicate the message sensitivity. Enum, available values: None, Personal, Private, CompanyConfidential + :type sensitivity: str + :param subject: Subject of the message. + :type subject: str + :param subject_prefix: Subject prefix that typically indicates some action on a message, such as \"FW: \" for forwarding. + :type subject_prefix: str + :param properties: List of MAPI properties + :type properties: List[MapiPropertyDto] + :param electronic_addresses: Specify properties for up to three different e-mail addresses and three different fax addresses. + :type electronic_addresses: MapiContactElectronicAddressPropertySetDto + :param events: Specify events associated with a contact. + :type events: MapiContactEventPropertySetDto + :param name_info: The properties are used to specify the name of the person represented by the contact. + :type name_info: MapiContactNamePropertySetDto + :param other_fields: Specify other fields of contact. + :type other_fields: MapiContactOtherPropertySetDto + :param personal_info: Specify other additional contact information. + :type personal_info: MapiContactPersonalInfoPropertySetDto + :param photo: Contact photo. + :type photo: MapiContactPhotoDto + :param physical_addresses: Specify three physical addresses: Home Address, Work Address, and Other Address. One of the addresses can be marked as the Mailing Address. + :type physical_addresses: MapiContactPhysicalAddressPropertySetDto + :param professional_info: Properties are used to store professional details for the person represented by the contact. + :type professional_info: MapiContactProfessionalPropertySetDto + :param telephones: Specify telephone numbers for the contact. + :type telephones: MapiContactTelephonePropertySetDto """ super(MapiContactDto, self).__init__() @@ -188,8 +212,6 @@ def __init__(self, attachments: List[MapiAttachmentDto] = None, billing: str = N self.subject_prefix = subject_prefix if properties is not None: self.properties = properties - if discriminator is not None: - self.discriminator = discriminator if electronic_addresses is not None: self.electronic_addresses = electronic_addresses if events is not None: @@ -209,10 +231,10 @@ def __init__(self, attachments: List[MapiAttachmentDto] = None, billing: str = N if telephones is not None: self.telephones = telephones + @property def electronic_addresses(self) -> MapiContactElectronicAddressPropertySetDto: - """Gets the electronic_addresses of this MapiContactDto. - + """ Specify properties for up to three different e-mail addresses and three different fax addresses. :return: The electronic_addresses of this MapiContactDto. @@ -222,8 +244,7 @@ def electronic_addresses(self) -> MapiContactElectronicAddressPropertySetDto: @electronic_addresses.setter def electronic_addresses(self, electronic_addresses: MapiContactElectronicAddressPropertySetDto): - """Sets the electronic_addresses of this MapiContactDto. - + """ Specify properties for up to three different e-mail addresses and three different fax addresses. :param electronic_addresses: The electronic_addresses of this MapiContactDto. @@ -233,8 +254,7 @@ def electronic_addresses(self, electronic_addresses: MapiContactElectronicAddres @property def events(self) -> MapiContactEventPropertySetDto: - """Gets the events of this MapiContactDto. - + """ Specify events associated with a contact. :return: The events of this MapiContactDto. @@ -244,8 +264,7 @@ def events(self) -> MapiContactEventPropertySetDto: @events.setter def events(self, events: MapiContactEventPropertySetDto): - """Sets the events of this MapiContactDto. - + """ Specify events associated with a contact. :param events: The events of this MapiContactDto. @@ -255,8 +274,7 @@ def events(self, events: MapiContactEventPropertySetDto): @property def name_info(self) -> MapiContactNamePropertySetDto: - """Gets the name_info of this MapiContactDto. - + """ The properties are used to specify the name of the person represented by the contact. :return: The name_info of this MapiContactDto. @@ -266,8 +284,7 @@ def name_info(self) -> MapiContactNamePropertySetDto: @name_info.setter def name_info(self, name_info: MapiContactNamePropertySetDto): - """Sets the name_info of this MapiContactDto. - + """ The properties are used to specify the name of the person represented by the contact. :param name_info: The name_info of this MapiContactDto. @@ -277,8 +294,7 @@ def name_info(self, name_info: MapiContactNamePropertySetDto): @property def other_fields(self) -> MapiContactOtherPropertySetDto: - """Gets the other_fields of this MapiContactDto. - + """ Specify other fields of contact. :return: The other_fields of this MapiContactDto. @@ -288,8 +304,7 @@ def other_fields(self) -> MapiContactOtherPropertySetDto: @other_fields.setter def other_fields(self, other_fields: MapiContactOtherPropertySetDto): - """Sets the other_fields of this MapiContactDto. - + """ Specify other fields of contact. :param other_fields: The other_fields of this MapiContactDto. @@ -299,8 +314,7 @@ def other_fields(self, other_fields: MapiContactOtherPropertySetDto): @property def personal_info(self) -> MapiContactPersonalInfoPropertySetDto: - """Gets the personal_info of this MapiContactDto. - + """ Specify other additional contact information. :return: The personal_info of this MapiContactDto. @@ -310,8 +324,7 @@ def personal_info(self) -> MapiContactPersonalInfoPropertySetDto: @personal_info.setter def personal_info(self, personal_info: MapiContactPersonalInfoPropertySetDto): - """Sets the personal_info of this MapiContactDto. - + """ Specify other additional contact information. :param personal_info: The personal_info of this MapiContactDto. @@ -321,8 +334,7 @@ def personal_info(self, personal_info: MapiContactPersonalInfoPropertySetDto): @property def photo(self) -> MapiContactPhotoDto: - """Gets the photo of this MapiContactDto. - + """ Contact photo. :return: The photo of this MapiContactDto. @@ -332,8 +344,7 @@ def photo(self) -> MapiContactPhotoDto: @photo.setter def photo(self, photo: MapiContactPhotoDto): - """Sets the photo of this MapiContactDto. - + """ Contact photo. :param photo: The photo of this MapiContactDto. @@ -343,8 +354,7 @@ def photo(self, photo: MapiContactPhotoDto): @property def physical_addresses(self) -> MapiContactPhysicalAddressPropertySetDto: - """Gets the physical_addresses of this MapiContactDto. - + """ Specify three physical addresses: Home Address, Work Address, and Other Address. One of the addresses can be marked as the Mailing Address. :return: The physical_addresses of this MapiContactDto. @@ -354,8 +364,7 @@ def physical_addresses(self) -> MapiContactPhysicalAddressPropertySetDto: @physical_addresses.setter def physical_addresses(self, physical_addresses: MapiContactPhysicalAddressPropertySetDto): - """Sets the physical_addresses of this MapiContactDto. - + """ Specify three physical addresses: Home Address, Work Address, and Other Address. One of the addresses can be marked as the Mailing Address. :param physical_addresses: The physical_addresses of this MapiContactDto. @@ -365,8 +374,7 @@ def physical_addresses(self, physical_addresses: MapiContactPhysicalAddressPrope @property def professional_info(self) -> MapiContactProfessionalPropertySetDto: - """Gets the professional_info of this MapiContactDto. - + """ Properties are used to store professional details for the person represented by the contact. :return: The professional_info of this MapiContactDto. @@ -376,8 +384,7 @@ def professional_info(self) -> MapiContactProfessionalPropertySetDto: @professional_info.setter def professional_info(self, professional_info: MapiContactProfessionalPropertySetDto): - """Sets the professional_info of this MapiContactDto. - + """ Properties are used to store professional details for the person represented by the contact. :param professional_info: The professional_info of this MapiContactDto. @@ -387,8 +394,7 @@ def professional_info(self, professional_info: MapiContactProfessionalPropertySe @property def telephones(self) -> MapiContactTelephonePropertySetDto: - """Gets the telephones of this MapiContactDto. - + """ Specify telephone numbers for the contact. :return: The telephones of this MapiContactDto. @@ -398,8 +404,7 @@ def telephones(self) -> MapiContactTelephonePropertySetDto: @telephones.setter def telephones(self, telephones: MapiContactTelephonePropertySetDto): - """Sets the telephones of this MapiContactDto. - + """ Specify telephone numbers for the contact. :param telephones: The telephones of this MapiContactDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_contact_electronic_address_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_contact_electronic_address_dto.py index e3ad8ad..e9e3491 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_contact_electronic_address_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_contact_electronic_address_dto.py @@ -63,12 +63,18 @@ class MapiContactElectronicAddressDto(object): def __init__(self, address_type: str = None, display_name: str = None, email_address: str = None, fax_number: str = None, is_empty: bool = None, original_display_name: str = None): """ Refers to the group of properties that define the e-mail address or fax address for a contact. - :param address_type (str) Address type of an electronic address - :param display_name (str) User-readable display name for the e-mail address - :param email_address (str) E-mail address of the contact - :param fax_number (str) Telephone number of the mail user's primary fax machine - :param is_empty (bool) Shows if MapiContactElectronicAddress is empty - :param original_display_name (str) SMTP e-mail address that corresponds to the e-mail address for the Contact object. + :param address_type: Address type of an electronic address + :type address_type: str + :param display_name: User-readable display name for the e-mail address + :type display_name: str + :param email_address: E-mail address of the contact + :type email_address: str + :param fax_number: Telephone number of the mail user's primary fax machine + :type fax_number: str + :param is_empty: Shows if MapiContactElectronicAddress is empty + :type is_empty: bool + :param original_display_name: SMTP e-mail address that corresponds to the e-mail address for the Contact object. + :type original_display_name: str """ self._address_type = None @@ -91,10 +97,10 @@ def __init__(self, address_type: str = None, display_name: str = None, email_add if original_display_name is not None: self.original_display_name = original_display_name + @property def address_type(self) -> str: - """Gets the address_type of this MapiContactElectronicAddressDto. - + """ Address type of an electronic address :return: The address_type of this MapiContactElectronicAddressDto. @@ -104,8 +110,7 @@ def address_type(self) -> str: @address_type.setter def address_type(self, address_type: str): - """Sets the address_type of this MapiContactElectronicAddressDto. - + """ Address type of an electronic address :param address_type: The address_type of this MapiContactElectronicAddressDto. @@ -115,8 +120,7 @@ def address_type(self, address_type: str): @property def display_name(self) -> str: - """Gets the display_name of this MapiContactElectronicAddressDto. - + """ User-readable display name for the e-mail address :return: The display_name of this MapiContactElectronicAddressDto. @@ -126,8 +130,7 @@ def display_name(self) -> str: @display_name.setter def display_name(self, display_name: str): - """Sets the display_name of this MapiContactElectronicAddressDto. - + """ User-readable display name for the e-mail address :param display_name: The display_name of this MapiContactElectronicAddressDto. @@ -137,8 +140,7 @@ def display_name(self, display_name: str): @property def email_address(self) -> str: - """Gets the email_address of this MapiContactElectronicAddressDto. - + """ E-mail address of the contact :return: The email_address of this MapiContactElectronicAddressDto. @@ -148,8 +150,7 @@ def email_address(self) -> str: @email_address.setter def email_address(self, email_address: str): - """Sets the email_address of this MapiContactElectronicAddressDto. - + """ E-mail address of the contact :param email_address: The email_address of this MapiContactElectronicAddressDto. @@ -159,8 +160,7 @@ def email_address(self, email_address: str): @property def fax_number(self) -> str: - """Gets the fax_number of this MapiContactElectronicAddressDto. - + """ Telephone number of the mail user's primary fax machine :return: The fax_number of this MapiContactElectronicAddressDto. @@ -170,8 +170,7 @@ def fax_number(self) -> str: @fax_number.setter def fax_number(self, fax_number: str): - """Sets the fax_number of this MapiContactElectronicAddressDto. - + """ Telephone number of the mail user's primary fax machine :param fax_number: The fax_number of this MapiContactElectronicAddressDto. @@ -181,8 +180,7 @@ def fax_number(self, fax_number: str): @property def is_empty(self) -> bool: - """Gets the is_empty of this MapiContactElectronicAddressDto. - + """ Shows if MapiContactElectronicAddress is empty :return: The is_empty of this MapiContactElectronicAddressDto. @@ -192,8 +190,7 @@ def is_empty(self) -> bool: @is_empty.setter def is_empty(self, is_empty: bool): - """Sets the is_empty of this MapiContactElectronicAddressDto. - + """ Shows if MapiContactElectronicAddress is empty :param is_empty: The is_empty of this MapiContactElectronicAddressDto. @@ -205,8 +202,7 @@ def is_empty(self, is_empty: bool): @property def original_display_name(self) -> str: - """Gets the original_display_name of this MapiContactElectronicAddressDto. - + """ SMTP e-mail address that corresponds to the e-mail address for the Contact object. :return: The original_display_name of this MapiContactElectronicAddressDto. @@ -216,8 +212,7 @@ def original_display_name(self) -> str: @original_display_name.setter def original_display_name(self, original_display_name: str): - """Sets the original_display_name of this MapiContactElectronicAddressDto. - + """ SMTP e-mail address that corresponds to the e-mail address for the Contact object. :param original_display_name: The original_display_name of this MapiContactElectronicAddressDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_contact_electronic_address_property_set_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_contact_electronic_address_property_set_dto.py index a5d80af..1e929a6 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_contact_electronic_address_property_set_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_contact_electronic_address_property_set_dto.py @@ -71,15 +71,24 @@ class MapiContactElectronicAddressPropertySetDto(object): def __init__(self, business_fax: MapiContactElectronicAddressDto = None, default_email_address: MapiContactElectronicAddressDto = None, email1: MapiContactElectronicAddressDto = None, email2: MapiContactElectronicAddressDto = None, email3: MapiContactElectronicAddressDto = None, home_fax: MapiContactElectronicAddressDto = None, is_empty: bool = None, primary_fax: MapiContactElectronicAddressDto = None, use_autocomplete: bool = None): """ Specify properties for up to three different e-mail addresses (Email1, Email2, and Email3) and three different fax addresses (Primary Fax, Business Fax, and Home Fax) - :param business_fax (MapiContactElectronicAddressDto) Refers to the group of properties that define the business fax address for a contact. - :param default_email_address (MapiContactElectronicAddressDto) Default value of electronic address Uses when user does not set any electronic address if UseAutocomplete property is set 'true' - :param email1 (MapiContactElectronicAddressDto) Refers to the group of properties that define the first e-mail address for a contact. - :param email2 (MapiContactElectronicAddressDto) Refers to the group of properties that define the second e-mail address for a contact. - :param email3 (MapiContactElectronicAddressDto) Refers to the group of properties that define the third e-mail address for a contact. - :param home_fax (MapiContactElectronicAddressDto) Refers to the group of properties that define the home fax address for a contact. - :param is_empty (bool) Shows if MapiContactElectronicAddressPropertySetDto is empty - :param primary_fax (MapiContactElectronicAddressDto) Refers to the group of properties that define the primary fax address for a contact. - :param use_autocomplete (bool) Indicates that one electronic address is completed automatically in case if user does not set any electronic address + :param business_fax: Refers to the group of properties that define the business fax address for a contact. + :type business_fax: MapiContactElectronicAddressDto + :param default_email_address: Default value of electronic address Uses when user does not set any electronic address if UseAutocomplete property is set 'true' + :type default_email_address: MapiContactElectronicAddressDto + :param email1: Refers to the group of properties that define the first e-mail address for a contact. + :type email1: MapiContactElectronicAddressDto + :param email2: Refers to the group of properties that define the second e-mail address for a contact. + :type email2: MapiContactElectronicAddressDto + :param email3: Refers to the group of properties that define the third e-mail address for a contact. + :type email3: MapiContactElectronicAddressDto + :param home_fax: Refers to the group of properties that define the home fax address for a contact. + :type home_fax: MapiContactElectronicAddressDto + :param is_empty: Shows if MapiContactElectronicAddressPropertySetDto is empty + :type is_empty: bool + :param primary_fax: Refers to the group of properties that define the primary fax address for a contact. + :type primary_fax: MapiContactElectronicAddressDto + :param use_autocomplete: Indicates that one electronic address is completed automatically in case if user does not set any electronic address + :type use_autocomplete: bool """ self._business_fax = None @@ -111,10 +120,10 @@ def __init__(self, business_fax: MapiContactElectronicAddressDto = None, default if use_autocomplete is not None: self.use_autocomplete = use_autocomplete + @property def business_fax(self) -> MapiContactElectronicAddressDto: - """Gets the business_fax of this MapiContactElectronicAddressPropertySetDto. - + """ Refers to the group of properties that define the business fax address for a contact. :return: The business_fax of this MapiContactElectronicAddressPropertySetDto. @@ -124,8 +133,7 @@ def business_fax(self) -> MapiContactElectronicAddressDto: @business_fax.setter def business_fax(self, business_fax: MapiContactElectronicAddressDto): - """Sets the business_fax of this MapiContactElectronicAddressPropertySetDto. - + """ Refers to the group of properties that define the business fax address for a contact. :param business_fax: The business_fax of this MapiContactElectronicAddressPropertySetDto. @@ -135,8 +143,7 @@ def business_fax(self, business_fax: MapiContactElectronicAddressDto): @property def default_email_address(self) -> MapiContactElectronicAddressDto: - """Gets the default_email_address of this MapiContactElectronicAddressPropertySetDto. - + """ Default value of electronic address Uses when user does not set any electronic address if UseAutocomplete property is set 'true' :return: The default_email_address of this MapiContactElectronicAddressPropertySetDto. @@ -146,8 +153,7 @@ def default_email_address(self) -> MapiContactElectronicAddressDto: @default_email_address.setter def default_email_address(self, default_email_address: MapiContactElectronicAddressDto): - """Sets the default_email_address of this MapiContactElectronicAddressPropertySetDto. - + """ Default value of electronic address Uses when user does not set any electronic address if UseAutocomplete property is set 'true' :param default_email_address: The default_email_address of this MapiContactElectronicAddressPropertySetDto. @@ -157,8 +163,7 @@ def default_email_address(self, default_email_address: MapiContactElectronicAddr @property def email1(self) -> MapiContactElectronicAddressDto: - """Gets the email1 of this MapiContactElectronicAddressPropertySetDto. - + """ Refers to the group of properties that define the first e-mail address for a contact. :return: The email1 of this MapiContactElectronicAddressPropertySetDto. @@ -168,8 +173,7 @@ def email1(self) -> MapiContactElectronicAddressDto: @email1.setter def email1(self, email1: MapiContactElectronicAddressDto): - """Sets the email1 of this MapiContactElectronicAddressPropertySetDto. - + """ Refers to the group of properties that define the first e-mail address for a contact. :param email1: The email1 of this MapiContactElectronicAddressPropertySetDto. @@ -179,8 +183,7 @@ def email1(self, email1: MapiContactElectronicAddressDto): @property def email2(self) -> MapiContactElectronicAddressDto: - """Gets the email2 of this MapiContactElectronicAddressPropertySetDto. - + """ Refers to the group of properties that define the second e-mail address for a contact. :return: The email2 of this MapiContactElectronicAddressPropertySetDto. @@ -190,8 +193,7 @@ def email2(self) -> MapiContactElectronicAddressDto: @email2.setter def email2(self, email2: MapiContactElectronicAddressDto): - """Sets the email2 of this MapiContactElectronicAddressPropertySetDto. - + """ Refers to the group of properties that define the second e-mail address for a contact. :param email2: The email2 of this MapiContactElectronicAddressPropertySetDto. @@ -201,8 +203,7 @@ def email2(self, email2: MapiContactElectronicAddressDto): @property def email3(self) -> MapiContactElectronicAddressDto: - """Gets the email3 of this MapiContactElectronicAddressPropertySetDto. - + """ Refers to the group of properties that define the third e-mail address for a contact. :return: The email3 of this MapiContactElectronicAddressPropertySetDto. @@ -212,8 +213,7 @@ def email3(self) -> MapiContactElectronicAddressDto: @email3.setter def email3(self, email3: MapiContactElectronicAddressDto): - """Sets the email3 of this MapiContactElectronicAddressPropertySetDto. - + """ Refers to the group of properties that define the third e-mail address for a contact. :param email3: The email3 of this MapiContactElectronicAddressPropertySetDto. @@ -223,8 +223,7 @@ def email3(self, email3: MapiContactElectronicAddressDto): @property def home_fax(self) -> MapiContactElectronicAddressDto: - """Gets the home_fax of this MapiContactElectronicAddressPropertySetDto. - + """ Refers to the group of properties that define the home fax address for a contact. :return: The home_fax of this MapiContactElectronicAddressPropertySetDto. @@ -234,8 +233,7 @@ def home_fax(self) -> MapiContactElectronicAddressDto: @home_fax.setter def home_fax(self, home_fax: MapiContactElectronicAddressDto): - """Sets the home_fax of this MapiContactElectronicAddressPropertySetDto. - + """ Refers to the group of properties that define the home fax address for a contact. :param home_fax: The home_fax of this MapiContactElectronicAddressPropertySetDto. @@ -245,8 +243,7 @@ def home_fax(self, home_fax: MapiContactElectronicAddressDto): @property def is_empty(self) -> bool: - """Gets the is_empty of this MapiContactElectronicAddressPropertySetDto. - + """ Shows if MapiContactElectronicAddressPropertySetDto is empty :return: The is_empty of this MapiContactElectronicAddressPropertySetDto. @@ -256,8 +253,7 @@ def is_empty(self) -> bool: @is_empty.setter def is_empty(self, is_empty: bool): - """Sets the is_empty of this MapiContactElectronicAddressPropertySetDto. - + """ Shows if MapiContactElectronicAddressPropertySetDto is empty :param is_empty: The is_empty of this MapiContactElectronicAddressPropertySetDto. @@ -269,8 +265,7 @@ def is_empty(self, is_empty: bool): @property def primary_fax(self) -> MapiContactElectronicAddressDto: - """Gets the primary_fax of this MapiContactElectronicAddressPropertySetDto. - + """ Refers to the group of properties that define the primary fax address for a contact. :return: The primary_fax of this MapiContactElectronicAddressPropertySetDto. @@ -280,8 +275,7 @@ def primary_fax(self) -> MapiContactElectronicAddressDto: @primary_fax.setter def primary_fax(self, primary_fax: MapiContactElectronicAddressDto): - """Sets the primary_fax of this MapiContactElectronicAddressPropertySetDto. - + """ Refers to the group of properties that define the primary fax address for a contact. :param primary_fax: The primary_fax of this MapiContactElectronicAddressPropertySetDto. @@ -291,8 +285,7 @@ def primary_fax(self, primary_fax: MapiContactElectronicAddressDto): @property def use_autocomplete(self) -> bool: - """Gets the use_autocomplete of this MapiContactElectronicAddressPropertySetDto. - + """ Indicates that one electronic address is completed automatically in case if user does not set any electronic address :return: The use_autocomplete of this MapiContactElectronicAddressPropertySetDto. @@ -302,8 +295,7 @@ def use_autocomplete(self) -> bool: @use_autocomplete.setter def use_autocomplete(self, use_autocomplete: bool): - """Sets the use_autocomplete of this MapiContactElectronicAddressPropertySetDto. - + """ Indicates that one electronic address is completed automatically in case if user does not set any electronic address :param use_autocomplete: The use_autocomplete of this MapiContactElectronicAddressPropertySetDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_contact_event_property_set_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_contact_event_property_set_dto.py index 38f94c7..bcc349f 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_contact_event_property_set_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_contact_event_property_set_dto.py @@ -55,8 +55,10 @@ class MapiContactEventPropertySetDto(object): def __init__(self, birthday: datetime = None, wedding_anniversary: datetime = None): """ Specify events associated with a contact. - :param birthday (datetime) Specifies the birthday of the contact. - :param wedding_anniversary (datetime) Specifies the wedding anniversary of the contact. + :param birthday: Specifies the birthday of the contact. + :type birthday: datetime + :param wedding_anniversary: Specifies the wedding anniversary of the contact. + :type wedding_anniversary: datetime """ self._birthday = None @@ -67,10 +69,10 @@ def __init__(self, birthday: datetime = None, wedding_anniversary: datetime = No if wedding_anniversary is not None: self.wedding_anniversary = wedding_anniversary + @property def birthday(self) -> datetime: - """Gets the birthday of this MapiContactEventPropertySetDto. - + """ Specifies the birthday of the contact. :return: The birthday of this MapiContactEventPropertySetDto. @@ -80,8 +82,7 @@ def birthday(self) -> datetime: @birthday.setter def birthday(self, birthday: datetime): - """Sets the birthday of this MapiContactEventPropertySetDto. - + """ Specifies the birthday of the contact. :param birthday: The birthday of this MapiContactEventPropertySetDto. @@ -93,8 +94,7 @@ def birthday(self, birthday: datetime): @property def wedding_anniversary(self) -> datetime: - """Gets the wedding_anniversary of this MapiContactEventPropertySetDto. - + """ Specifies the wedding anniversary of the contact. :return: The wedding_anniversary of this MapiContactEventPropertySetDto. @@ -104,8 +104,7 @@ def wedding_anniversary(self) -> datetime: @wedding_anniversary.setter def wedding_anniversary(self, wedding_anniversary: datetime): - """Sets the wedding_anniversary of this MapiContactEventPropertySetDto. - + """ Specifies the wedding anniversary of the contact. :param wedding_anniversary: The wedding_anniversary of this MapiContactEventPropertySetDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_contact_from_file_request.py b/sdk/AsposeEmailCloudSdk/models/mapi_contact_from_file_request.py new file mode 100644 index 0000000..764240e --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/mapi_contact_from_file_request.py @@ -0,0 +1,53 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class MapiContactFromFileRequest(object): + """ + Request model for mapi_contact_from_file operation. + Initializes a new instance. + + :param format: File format Enum, available values: VCard, WebDav, Msg + :type format: str + :param file: File to convert + :type file: str + """ + + def __init__(self, format: str, file: str): + """ + Request model for mapi_contact_from_file operation. + Initializes a new instance. + + :param format: File format Enum, available values: VCard, WebDav, Msg + :type format: str + :param file: File to convert + :type file: str + """ + + self.format = format + self.file = file diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_contact_get_request.py b/sdk/AsposeEmailCloudSdk/models/mapi_contact_get_request.py new file mode 100644 index 0000000..fd60cfb --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/mapi_contact_get_request.py @@ -0,0 +1,64 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class MapiContactGetRequest(object): + """ + Request model for mapi_contact_get operation. + Initializes a new instance. + + :param format: Contact document format. Enum, available values: VCard, WebDav, Msg + :type format: str + :param file_name: Contact document file name. + :type file_name: str + :param folder: Path to folder in storage. + :type folder: str + :param storage: Storage name. + :type storage: str + """ + + def __init__(self, format: str, file_name: str, folder: str = None, storage: str = None): + """ + Request model for mapi_contact_get operation. + Initializes a new instance. + + :param format: Contact document format. Enum, available values: VCard, WebDav, Msg + :type format: str + :param file_name: Contact document file name. + :type file_name: str + :param folder: Path to folder in storage. + :type folder: str + :param storage: Storage name. + :type storage: str + """ + + self.format = format + self.file_name = file_name + self.folder = folder + self.storage = storage + diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_contact_name_property_set_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_contact_name_property_set_dto.py index 069b91d..f02490d 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_contact_name_property_set_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_contact_name_property_set_dto.py @@ -71,16 +71,26 @@ class MapiContactNamePropertySetDto(object): def __init__(self, display_name: str = None, display_name_prefix: str = None, file_under: str = None, file_under_id: int = None, generation: str = None, given_name: str = None, initials: str = None, middle_name: str = None, nickname: str = None, surname: str = None): """ The properties are used to specify the name of the person represented by the contact - :param display_name (str) Full name of the contact - :param display_name_prefix (str) Title of the contact - :param file_under (str) Name under which to file this contact when displaying a list of contacts - :param file_under_id (int) Value specifying how to generate and recompute the property when other properties are changed - :param generation (str) Generation suffix of the contact - :param given_name (str) Given name (first name) of the contact - :param initials (str) Initials of the contact - :param middle_name (str) Middle name of the contact - :param nickname (str) Nickname of the contact - :param surname (str) Surname (family name) of the contact + :param display_name: Full name of the contact + :type display_name: str + :param display_name_prefix: Title of the contact + :type display_name_prefix: str + :param file_under: Name under which to file this contact when displaying a list of contacts + :type file_under: str + :param file_under_id: Value specifying how to generate and recompute the property when other properties are changed + :type file_under_id: int + :param generation: Generation suffix of the contact + :type generation: str + :param given_name: Given name (first name) of the contact + :type given_name: str + :param initials: Initials of the contact + :type initials: str + :param middle_name: Middle name of the contact + :type middle_name: str + :param nickname: Nickname of the contact + :type nickname: str + :param surname: Surname (family name) of the contact + :type surname: str """ self._display_name = None @@ -115,10 +125,10 @@ def __init__(self, display_name: str = None, display_name_prefix: str = None, fi if surname is not None: self.surname = surname + @property def display_name(self) -> str: - """Gets the display_name of this MapiContactNamePropertySetDto. - + """ Full name of the contact :return: The display_name of this MapiContactNamePropertySetDto. @@ -128,8 +138,7 @@ def display_name(self) -> str: @display_name.setter def display_name(self, display_name: str): - """Sets the display_name of this MapiContactNamePropertySetDto. - + """ Full name of the contact :param display_name: The display_name of this MapiContactNamePropertySetDto. @@ -139,8 +148,7 @@ def display_name(self, display_name: str): @property def display_name_prefix(self) -> str: - """Gets the display_name_prefix of this MapiContactNamePropertySetDto. - + """ Title of the contact :return: The display_name_prefix of this MapiContactNamePropertySetDto. @@ -150,8 +158,7 @@ def display_name_prefix(self) -> str: @display_name_prefix.setter def display_name_prefix(self, display_name_prefix: str): - """Sets the display_name_prefix of this MapiContactNamePropertySetDto. - + """ Title of the contact :param display_name_prefix: The display_name_prefix of this MapiContactNamePropertySetDto. @@ -161,8 +168,7 @@ def display_name_prefix(self, display_name_prefix: str): @property def file_under(self) -> str: - """Gets the file_under of this MapiContactNamePropertySetDto. - + """ Name under which to file this contact when displaying a list of contacts :return: The file_under of this MapiContactNamePropertySetDto. @@ -172,8 +178,7 @@ def file_under(self) -> str: @file_under.setter def file_under(self, file_under: str): - """Sets the file_under of this MapiContactNamePropertySetDto. - + """ Name under which to file this contact when displaying a list of contacts :param file_under: The file_under of this MapiContactNamePropertySetDto. @@ -183,8 +188,7 @@ def file_under(self, file_under: str): @property def file_under_id(self) -> int: - """Gets the file_under_id of this MapiContactNamePropertySetDto. - + """ Value specifying how to generate and recompute the property when other properties are changed :return: The file_under_id of this MapiContactNamePropertySetDto. @@ -194,8 +198,7 @@ def file_under_id(self) -> int: @file_under_id.setter def file_under_id(self, file_under_id: int): - """Sets the file_under_id of this MapiContactNamePropertySetDto. - + """ Value specifying how to generate and recompute the property when other properties are changed :param file_under_id: The file_under_id of this MapiContactNamePropertySetDto. @@ -207,8 +210,7 @@ def file_under_id(self, file_under_id: int): @property def generation(self) -> str: - """Gets the generation of this MapiContactNamePropertySetDto. - + """ Generation suffix of the contact :return: The generation of this MapiContactNamePropertySetDto. @@ -218,8 +220,7 @@ def generation(self) -> str: @generation.setter def generation(self, generation: str): - """Sets the generation of this MapiContactNamePropertySetDto. - + """ Generation suffix of the contact :param generation: The generation of this MapiContactNamePropertySetDto. @@ -229,8 +230,7 @@ def generation(self, generation: str): @property def given_name(self) -> str: - """Gets the given_name of this MapiContactNamePropertySetDto. - + """ Given name (first name) of the contact :return: The given_name of this MapiContactNamePropertySetDto. @@ -240,8 +240,7 @@ def given_name(self) -> str: @given_name.setter def given_name(self, given_name: str): - """Sets the given_name of this MapiContactNamePropertySetDto. - + """ Given name (first name) of the contact :param given_name: The given_name of this MapiContactNamePropertySetDto. @@ -251,8 +250,7 @@ def given_name(self, given_name: str): @property def initials(self) -> str: - """Gets the initials of this MapiContactNamePropertySetDto. - + """ Initials of the contact :return: The initials of this MapiContactNamePropertySetDto. @@ -262,8 +260,7 @@ def initials(self) -> str: @initials.setter def initials(self, initials: str): - """Sets the initials of this MapiContactNamePropertySetDto. - + """ Initials of the contact :param initials: The initials of this MapiContactNamePropertySetDto. @@ -273,8 +270,7 @@ def initials(self, initials: str): @property def middle_name(self) -> str: - """Gets the middle_name of this MapiContactNamePropertySetDto. - + """ Middle name of the contact :return: The middle_name of this MapiContactNamePropertySetDto. @@ -284,8 +280,7 @@ def middle_name(self) -> str: @middle_name.setter def middle_name(self, middle_name: str): - """Sets the middle_name of this MapiContactNamePropertySetDto. - + """ Middle name of the contact :param middle_name: The middle_name of this MapiContactNamePropertySetDto. @@ -295,8 +290,7 @@ def middle_name(self, middle_name: str): @property def nickname(self) -> str: - """Gets the nickname of this MapiContactNamePropertySetDto. - + """ Nickname of the contact :return: The nickname of this MapiContactNamePropertySetDto. @@ -306,8 +300,7 @@ def nickname(self) -> str: @nickname.setter def nickname(self, nickname: str): - """Sets the nickname of this MapiContactNamePropertySetDto. - + """ Nickname of the contact :param nickname: The nickname of this MapiContactNamePropertySetDto. @@ -317,8 +310,7 @@ def nickname(self, nickname: str): @property def surname(self) -> str: - """Gets the surname of this MapiContactNamePropertySetDto. - + """ Surname (family name) of the contact :return: The surname of this MapiContactNamePropertySetDto. @@ -328,8 +320,7 @@ def surname(self) -> str: @surname.setter def surname(self, surname: str): - """Sets the surname of this MapiContactNamePropertySetDto. - + """ Surname (family name) of the contact :param surname: The surname of this MapiContactNamePropertySetDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_contact_other_property_set_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_contact_other_property_set_dto.py index a031870..cb168c4 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_contact_other_property_set_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_contact_other_property_set_dto.py @@ -67,14 +67,22 @@ class MapiContactOtherPropertySetDto(object): def __init__(self, private: bool = None, journal: bool = None, reminder_time: datetime = None, reminder_topic: str = None, user_field1: str = None, user_field2: str = None, user_field3: str = None, user_field4: str = None): """ The properties are used to specify additional properties of contact. - :param private (bool) Indicates whether the end-user wants this message object hidden from other users who have access to the message object. - :param journal (bool) Specifies whether to create a journal for each action associated with this contact. - :param reminder_time (datetime) Specifies the initial signal time for a reminder. - :param reminder_topic (str) Represents the status of a meeting request. - :param user_field1 (str) Specifies the first field on the contact that is intended for miscellaneous use for the contact. - :param user_field2 (str) Specifies the second field on the contact that is intended for miscellaneous use for the contact. - :param user_field3 (str) Specifies the third field on the contact that is intended for miscellaneous use for the contact. - :param user_field4 (str) Specifies the forth field on the contact that is intended for miscellaneous use for the contact. + :param private: Indicates whether the end-user wants this message object hidden from other users who have access to the message object. + :type private: bool + :param journal: Specifies whether to create a journal for each action associated with this contact. + :type journal: bool + :param reminder_time: Specifies the initial signal time for a reminder. + :type reminder_time: datetime + :param reminder_topic: Represents the status of a meeting request. + :type reminder_topic: str + :param user_field1: Specifies the first field on the contact that is intended for miscellaneous use for the contact. + :type user_field1: str + :param user_field2: Specifies the second field on the contact that is intended for miscellaneous use for the contact. + :type user_field2: str + :param user_field3: Specifies the third field on the contact that is intended for miscellaneous use for the contact. + :type user_field3: str + :param user_field4: Specifies the forth field on the contact that is intended for miscellaneous use for the contact. + :type user_field4: str """ self._private = None @@ -103,10 +111,10 @@ def __init__(self, private: bool = None, journal: bool = None, reminder_time: da if user_field4 is not None: self.user_field4 = user_field4 + @property def private(self) -> bool: - """Gets the private of this MapiContactOtherPropertySetDto. - + """ Indicates whether the end-user wants this message object hidden from other users who have access to the message object. :return: The private of this MapiContactOtherPropertySetDto. @@ -116,8 +124,7 @@ def private(self) -> bool: @private.setter def private(self, private: bool): - """Sets the private of this MapiContactOtherPropertySetDto. - + """ Indicates whether the end-user wants this message object hidden from other users who have access to the message object. :param private: The private of this MapiContactOtherPropertySetDto. @@ -129,8 +136,7 @@ def private(self, private: bool): @property def journal(self) -> bool: - """Gets the journal of this MapiContactOtherPropertySetDto. - + """ Specifies whether to create a journal for each action associated with this contact. :return: The journal of this MapiContactOtherPropertySetDto. @@ -140,8 +146,7 @@ def journal(self) -> bool: @journal.setter def journal(self, journal: bool): - """Sets the journal of this MapiContactOtherPropertySetDto. - + """ Specifies whether to create a journal for each action associated with this contact. :param journal: The journal of this MapiContactOtherPropertySetDto. @@ -153,8 +158,7 @@ def journal(self, journal: bool): @property def reminder_time(self) -> datetime: - """Gets the reminder_time of this MapiContactOtherPropertySetDto. - + """ Specifies the initial signal time for a reminder. :return: The reminder_time of this MapiContactOtherPropertySetDto. @@ -164,8 +168,7 @@ def reminder_time(self) -> datetime: @reminder_time.setter def reminder_time(self, reminder_time: datetime): - """Sets the reminder_time of this MapiContactOtherPropertySetDto. - + """ Specifies the initial signal time for a reminder. :param reminder_time: The reminder_time of this MapiContactOtherPropertySetDto. @@ -177,8 +180,7 @@ def reminder_time(self, reminder_time: datetime): @property def reminder_topic(self) -> str: - """Gets the reminder_topic of this MapiContactOtherPropertySetDto. - + """ Represents the status of a meeting request. :return: The reminder_topic of this MapiContactOtherPropertySetDto. @@ -188,8 +190,7 @@ def reminder_topic(self) -> str: @reminder_topic.setter def reminder_topic(self, reminder_topic: str): - """Sets the reminder_topic of this MapiContactOtherPropertySetDto. - + """ Represents the status of a meeting request. :param reminder_topic: The reminder_topic of this MapiContactOtherPropertySetDto. @@ -199,8 +200,7 @@ def reminder_topic(self, reminder_topic: str): @property def user_field1(self) -> str: - """Gets the user_field1 of this MapiContactOtherPropertySetDto. - + """ Specifies the first field on the contact that is intended for miscellaneous use for the contact. :return: The user_field1 of this MapiContactOtherPropertySetDto. @@ -210,8 +210,7 @@ def user_field1(self) -> str: @user_field1.setter def user_field1(self, user_field1: str): - """Sets the user_field1 of this MapiContactOtherPropertySetDto. - + """ Specifies the first field on the contact that is intended for miscellaneous use for the contact. :param user_field1: The user_field1 of this MapiContactOtherPropertySetDto. @@ -221,8 +220,7 @@ def user_field1(self, user_field1: str): @property def user_field2(self) -> str: - """Gets the user_field2 of this MapiContactOtherPropertySetDto. - + """ Specifies the second field on the contact that is intended for miscellaneous use for the contact. :return: The user_field2 of this MapiContactOtherPropertySetDto. @@ -232,8 +230,7 @@ def user_field2(self) -> str: @user_field2.setter def user_field2(self, user_field2: str): - """Sets the user_field2 of this MapiContactOtherPropertySetDto. - + """ Specifies the second field on the contact that is intended for miscellaneous use for the contact. :param user_field2: The user_field2 of this MapiContactOtherPropertySetDto. @@ -243,8 +240,7 @@ def user_field2(self, user_field2: str): @property def user_field3(self) -> str: - """Gets the user_field3 of this MapiContactOtherPropertySetDto. - + """ Specifies the third field on the contact that is intended for miscellaneous use for the contact. :return: The user_field3 of this MapiContactOtherPropertySetDto. @@ -254,8 +250,7 @@ def user_field3(self) -> str: @user_field3.setter def user_field3(self, user_field3: str): - """Sets the user_field3 of this MapiContactOtherPropertySetDto. - + """ Specifies the third field on the contact that is intended for miscellaneous use for the contact. :param user_field3: The user_field3 of this MapiContactOtherPropertySetDto. @@ -265,8 +260,7 @@ def user_field3(self, user_field3: str): @property def user_field4(self) -> str: - """Gets the user_field4 of this MapiContactOtherPropertySetDto. - + """ Specifies the forth field on the contact that is intended for miscellaneous use for the contact. :return: The user_field4 of this MapiContactOtherPropertySetDto. @@ -276,8 +270,7 @@ def user_field4(self) -> str: @user_field4.setter def user_field4(self, user_field4: str): - """Sets the user_field4 of this MapiContactOtherPropertySetDto. - + """ Specifies the forth field on the contact that is intended for miscellaneous use for the contact. :param user_field4: The user_field4 of this MapiContactOtherPropertySetDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_contact_personal_info_property_set_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_contact_personal_info_property_set_dto.py index ef812b7..b7b36be 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_contact_personal_info_property_set_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_contact_personal_info_property_set_dto.py @@ -89,25 +89,44 @@ class MapiContactPersonalInfoPropertySetDto(object): def __init__(self, spouse_name: str = None, personal_home_page: str = None, language: str = None, notes: str = None, hobbies: str = None, location: str = None, instant_messaging_address: str = None, organizational_id_number: str = None, customer_id: str = None, government_id_number: str = None, free_busy_location: str = None, account: str = None, html: str = None, business_home_page: str = None, ftp_site: str = None, computer_network_name: str = None, gender: str = None, referred_by_name: str = None, children: List[str] = None): """ Specify other additional contact information. - :param spouse_name (str) Specifies the name of the contact's spouse/partner - :param personal_home_page (str) Specifies the contact's personal web page URL - :param language (str) Specifies the language that the contact uses - :param notes (str) Specifies the additional notes - :param hobbies (str) Specifies the hobbies of the contact - :param location (str) Specifies the location of the contact - :param instant_messaging_address (str) Specifies the contact's instant messaging address - :param organizational_id_number (str) Specifies an organizational ID number for the contact - :param customer_id (str) Specifies the contact's customer ID number - :param government_id_number (str) Specifies the contact's government ID number - :param free_busy_location (str) Specifies a URL path from which a client can retrieve free/busy information for the contact as an iCal file - :param account (str) Specifies the account name of the contact - :param html (str) Specifies the contact's business web page URL - :param business_home_page (str) Specifies the contact's business web page URL - :param ftp_site (str) Specifies the contact's File Transfer Protocol (FTP) URL - :param computer_network_name (str) Specifies the name of the network to which the contact's computer is connected - :param gender (str) Gender of the contact Enum, available values: Unspecified, Female, Male - :param referred_by_name (str) Specifies the name of the person who referred this contact to the user - :param children (List[str]) Contains a list of names of children. + :param spouse_name: Specifies the name of the contact's spouse/partner + :type spouse_name: str + :param personal_home_page: Specifies the contact's personal web page URL + :type personal_home_page: str + :param language: Specifies the language that the contact uses + :type language: str + :param notes: Specifies the additional notes + :type notes: str + :param hobbies: Specifies the hobbies of the contact + :type hobbies: str + :param location: Specifies the location of the contact + :type location: str + :param instant_messaging_address: Specifies the contact's instant messaging address + :type instant_messaging_address: str + :param organizational_id_number: Specifies an organizational ID number for the contact + :type organizational_id_number: str + :param customer_id: Specifies the contact's customer ID number + :type customer_id: str + :param government_id_number: Specifies the contact's government ID number + :type government_id_number: str + :param free_busy_location: Specifies a URL path from which a client can retrieve free/busy information for the contact as an iCal file + :type free_busy_location: str + :param account: Specifies the account name of the contact + :type account: str + :param html: Specifies the contact's business web page URL + :type html: str + :param business_home_page: Specifies the contact's business web page URL + :type business_home_page: str + :param ftp_site: Specifies the contact's File Transfer Protocol (FTP) URL + :type ftp_site: str + :param computer_network_name: Specifies the name of the network to which the contact's computer is connected + :type computer_network_name: str + :param gender: Gender of the contact Enum, available values: Unspecified, Female, Male + :type gender: str + :param referred_by_name: Specifies the name of the person who referred this contact to the user + :type referred_by_name: str + :param children: Contains a list of names of children. + :type children: List[str] """ self._spouse_name = None @@ -169,10 +188,10 @@ def __init__(self, spouse_name: str = None, personal_home_page: str = None, lang if children is not None: self.children = children + @property def spouse_name(self) -> str: - """Gets the spouse_name of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the name of the contact's spouse/partner :return: The spouse_name of this MapiContactPersonalInfoPropertySetDto. @@ -182,8 +201,7 @@ def spouse_name(self) -> str: @spouse_name.setter def spouse_name(self, spouse_name: str): - """Sets the spouse_name of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the name of the contact's spouse/partner :param spouse_name: The spouse_name of this MapiContactPersonalInfoPropertySetDto. @@ -193,8 +211,7 @@ def spouse_name(self, spouse_name: str): @property def personal_home_page(self) -> str: - """Gets the personal_home_page of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the contact's personal web page URL :return: The personal_home_page of this MapiContactPersonalInfoPropertySetDto. @@ -204,8 +221,7 @@ def personal_home_page(self) -> str: @personal_home_page.setter def personal_home_page(self, personal_home_page: str): - """Sets the personal_home_page of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the contact's personal web page URL :param personal_home_page: The personal_home_page of this MapiContactPersonalInfoPropertySetDto. @@ -215,8 +231,7 @@ def personal_home_page(self, personal_home_page: str): @property def language(self) -> str: - """Gets the language of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the language that the contact uses :return: The language of this MapiContactPersonalInfoPropertySetDto. @@ -226,8 +241,7 @@ def language(self) -> str: @language.setter def language(self, language: str): - """Sets the language of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the language that the contact uses :param language: The language of this MapiContactPersonalInfoPropertySetDto. @@ -237,8 +251,7 @@ def language(self, language: str): @property def notes(self) -> str: - """Gets the notes of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the additional notes :return: The notes of this MapiContactPersonalInfoPropertySetDto. @@ -248,8 +261,7 @@ def notes(self) -> str: @notes.setter def notes(self, notes: str): - """Sets the notes of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the additional notes :param notes: The notes of this MapiContactPersonalInfoPropertySetDto. @@ -259,8 +271,7 @@ def notes(self, notes: str): @property def hobbies(self) -> str: - """Gets the hobbies of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the hobbies of the contact :return: The hobbies of this MapiContactPersonalInfoPropertySetDto. @@ -270,8 +281,7 @@ def hobbies(self) -> str: @hobbies.setter def hobbies(self, hobbies: str): - """Sets the hobbies of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the hobbies of the contact :param hobbies: The hobbies of this MapiContactPersonalInfoPropertySetDto. @@ -281,8 +291,7 @@ def hobbies(self, hobbies: str): @property def location(self) -> str: - """Gets the location of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the location of the contact :return: The location of this MapiContactPersonalInfoPropertySetDto. @@ -292,8 +301,7 @@ def location(self) -> str: @location.setter def location(self, location: str): - """Sets the location of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the location of the contact :param location: The location of this MapiContactPersonalInfoPropertySetDto. @@ -303,8 +311,7 @@ def location(self, location: str): @property def instant_messaging_address(self) -> str: - """Gets the instant_messaging_address of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the contact's instant messaging address :return: The instant_messaging_address of this MapiContactPersonalInfoPropertySetDto. @@ -314,8 +321,7 @@ def instant_messaging_address(self) -> str: @instant_messaging_address.setter def instant_messaging_address(self, instant_messaging_address: str): - """Sets the instant_messaging_address of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the contact's instant messaging address :param instant_messaging_address: The instant_messaging_address of this MapiContactPersonalInfoPropertySetDto. @@ -325,8 +331,7 @@ def instant_messaging_address(self, instant_messaging_address: str): @property def organizational_id_number(self) -> str: - """Gets the organizational_id_number of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies an organizational ID number for the contact :return: The organizational_id_number of this MapiContactPersonalInfoPropertySetDto. @@ -336,8 +341,7 @@ def organizational_id_number(self) -> str: @organizational_id_number.setter def organizational_id_number(self, organizational_id_number: str): - """Sets the organizational_id_number of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies an organizational ID number for the contact :param organizational_id_number: The organizational_id_number of this MapiContactPersonalInfoPropertySetDto. @@ -347,8 +351,7 @@ def organizational_id_number(self, organizational_id_number: str): @property def customer_id(self) -> str: - """Gets the customer_id of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the contact's customer ID number :return: The customer_id of this MapiContactPersonalInfoPropertySetDto. @@ -358,8 +361,7 @@ def customer_id(self) -> str: @customer_id.setter def customer_id(self, customer_id: str): - """Sets the customer_id of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the contact's customer ID number :param customer_id: The customer_id of this MapiContactPersonalInfoPropertySetDto. @@ -369,8 +371,7 @@ def customer_id(self, customer_id: str): @property def government_id_number(self) -> str: - """Gets the government_id_number of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the contact's government ID number :return: The government_id_number of this MapiContactPersonalInfoPropertySetDto. @@ -380,8 +381,7 @@ def government_id_number(self) -> str: @government_id_number.setter def government_id_number(self, government_id_number: str): - """Sets the government_id_number of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the contact's government ID number :param government_id_number: The government_id_number of this MapiContactPersonalInfoPropertySetDto. @@ -391,8 +391,7 @@ def government_id_number(self, government_id_number: str): @property def free_busy_location(self) -> str: - """Gets the free_busy_location of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies a URL path from which a client can retrieve free/busy information for the contact as an iCal file :return: The free_busy_location of this MapiContactPersonalInfoPropertySetDto. @@ -402,8 +401,7 @@ def free_busy_location(self) -> str: @free_busy_location.setter def free_busy_location(self, free_busy_location: str): - """Sets the free_busy_location of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies a URL path from which a client can retrieve free/busy information for the contact as an iCal file :param free_busy_location: The free_busy_location of this MapiContactPersonalInfoPropertySetDto. @@ -413,8 +411,7 @@ def free_busy_location(self, free_busy_location: str): @property def account(self) -> str: - """Gets the account of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the account name of the contact :return: The account of this MapiContactPersonalInfoPropertySetDto. @@ -424,8 +421,7 @@ def account(self) -> str: @account.setter def account(self, account: str): - """Sets the account of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the account name of the contact :param account: The account of this MapiContactPersonalInfoPropertySetDto. @@ -435,8 +431,7 @@ def account(self, account: str): @property def html(self) -> str: - """Gets the html of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the contact's business web page URL :return: The html of this MapiContactPersonalInfoPropertySetDto. @@ -446,8 +441,7 @@ def html(self) -> str: @html.setter def html(self, html: str): - """Sets the html of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the contact's business web page URL :param html: The html of this MapiContactPersonalInfoPropertySetDto. @@ -457,8 +451,7 @@ def html(self, html: str): @property def business_home_page(self) -> str: - """Gets the business_home_page of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the contact's business web page URL :return: The business_home_page of this MapiContactPersonalInfoPropertySetDto. @@ -468,8 +461,7 @@ def business_home_page(self) -> str: @business_home_page.setter def business_home_page(self, business_home_page: str): - """Sets the business_home_page of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the contact's business web page URL :param business_home_page: The business_home_page of this MapiContactPersonalInfoPropertySetDto. @@ -479,8 +471,7 @@ def business_home_page(self, business_home_page: str): @property def ftp_site(self) -> str: - """Gets the ftp_site of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the contact's File Transfer Protocol (FTP) URL :return: The ftp_site of this MapiContactPersonalInfoPropertySetDto. @@ -490,8 +481,7 @@ def ftp_site(self) -> str: @ftp_site.setter def ftp_site(self, ftp_site: str): - """Sets the ftp_site of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the contact's File Transfer Protocol (FTP) URL :param ftp_site: The ftp_site of this MapiContactPersonalInfoPropertySetDto. @@ -501,8 +491,7 @@ def ftp_site(self, ftp_site: str): @property def computer_network_name(self) -> str: - """Gets the computer_network_name of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the name of the network to which the contact's computer is connected :return: The computer_network_name of this MapiContactPersonalInfoPropertySetDto. @@ -512,8 +501,7 @@ def computer_network_name(self) -> str: @computer_network_name.setter def computer_network_name(self, computer_network_name: str): - """Sets the computer_network_name of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the name of the network to which the contact's computer is connected :param computer_network_name: The computer_network_name of this MapiContactPersonalInfoPropertySetDto. @@ -523,8 +511,7 @@ def computer_network_name(self, computer_network_name: str): @property def gender(self) -> str: - """Gets the gender of this MapiContactPersonalInfoPropertySetDto. - + """ Gender of the contact Enum, available values: Unspecified, Female, Male :return: The gender of this MapiContactPersonalInfoPropertySetDto. @@ -534,8 +521,7 @@ def gender(self) -> str: @gender.setter def gender(self, gender: str): - """Sets the gender of this MapiContactPersonalInfoPropertySetDto. - + """ Gender of the contact Enum, available values: Unspecified, Female, Male :param gender: The gender of this MapiContactPersonalInfoPropertySetDto. @@ -547,8 +533,7 @@ def gender(self, gender: str): @property def referred_by_name(self) -> str: - """Gets the referred_by_name of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the name of the person who referred this contact to the user :return: The referred_by_name of this MapiContactPersonalInfoPropertySetDto. @@ -558,8 +543,7 @@ def referred_by_name(self) -> str: @referred_by_name.setter def referred_by_name(self, referred_by_name: str): - """Sets the referred_by_name of this MapiContactPersonalInfoPropertySetDto. - + """ Specifies the name of the person who referred this contact to the user :param referred_by_name: The referred_by_name of this MapiContactPersonalInfoPropertySetDto. @@ -569,8 +553,7 @@ def referred_by_name(self, referred_by_name: str): @property def children(self) -> List[str]: - """Gets the children of this MapiContactPersonalInfoPropertySetDto. - + """ Contains a list of names of children. :return: The children of this MapiContactPersonalInfoPropertySetDto. @@ -580,8 +563,7 @@ def children(self) -> List[str]: @children.setter def children(self, children: List[str]): - """Sets the children of this MapiContactPersonalInfoPropertySetDto. - + """ Contains a list of names of children. :param children: The children of this MapiContactPersonalInfoPropertySetDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_contact_photo_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_contact_photo_dto.py index a76716b..e2629fe 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_contact_photo_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_contact_photo_dto.py @@ -56,12 +56,13 @@ class MapiContactPhotoDto(ContactPhoto): 'discriminator': 'discriminator' } - def __init__(self, photo_image_format: str = None, base64_data: str = None, discriminator: str = None): + def __init__(self, photo_image_format: str = None, base64_data: str = None): """ Contains data and type of contact's photo. - :param photo_image_format (str) MapiContact photo image format. Enum, available values: Undefined, Jpeg, Gif, Wmf, Bmp, Tiff - :param base64_data (str) Photo serialized as base64 string. - :param discriminator (str) + :param photo_image_format: MapiContact photo image format. Enum, available values: Undefined, Jpeg, Gif, Wmf, Bmp, Tiff + :type photo_image_format: str + :param base64_data: Photo serialized as base64 string. + :type base64_data: str """ super(MapiContactPhotoDto, self).__init__() @@ -69,8 +70,7 @@ def __init__(self, photo_image_format: str = None, base64_data: str = None, disc self.photo_image_format = photo_image_format if base64_data is not None: self.base64_data = base64_data - if discriminator is not None: - self.discriminator = discriminator + def to_dict(self): """Returns the model properties as a dict""" diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_contact_physical_address_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_contact_physical_address_dto.py index 62b9cb3..92d46cd 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_contact_physical_address_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_contact_physical_address_dto.py @@ -69,15 +69,24 @@ class MapiContactPhysicalAddressDto(object): def __init__(self, is_mailing_address: bool = None, street: str = None, city: str = None, state_or_province: str = None, postal_code: str = None, country: str = None, country_code: str = None, address: str = None, post_office_box: str = None): """ Refers to the group of properties that define physical address for a contact. - :param is_mailing_address (bool) Gets or sets a value indicating whether this address is mailing address - :param street (str) Specifies the street portion of the contact's address - :param city (str) Specifies the city or locality portion of the contact's address - :param state_or_province (str) Specifies the state or province portion of the contact's address - :param postal_code (str) Specifies the postal code (ZIP code) portion of the contact's address - :param country (str) Specifies the country or region portion of the contact's address - :param country_code (str) Specifies the country code portion of the contact's address - :param address (str) Specifies the complete address of the contact's address - :param post_office_box (str) Gets or sets the post office box + :param is_mailing_address: Gets or sets a value indicating whether this address is mailing address + :type is_mailing_address: bool + :param street: Specifies the street portion of the contact's address + :type street: str + :param city: Specifies the city or locality portion of the contact's address + :type city: str + :param state_or_province: Specifies the state or province portion of the contact's address + :type state_or_province: str + :param postal_code: Specifies the postal code (ZIP code) portion of the contact's address + :type postal_code: str + :param country: Specifies the country or region portion of the contact's address + :type country: str + :param country_code: Specifies the country code portion of the contact's address + :type country_code: str + :param address: Specifies the complete address of the contact's address + :type address: str + :param post_office_box: Gets or sets the post office box + :type post_office_box: str """ self._is_mailing_address = None @@ -109,10 +118,10 @@ def __init__(self, is_mailing_address: bool = None, street: str = None, city: st if post_office_box is not None: self.post_office_box = post_office_box + @property def is_mailing_address(self) -> bool: - """Gets the is_mailing_address of this MapiContactPhysicalAddressDto. - + """ Gets or sets a value indicating whether this address is mailing address :return: The is_mailing_address of this MapiContactPhysicalAddressDto. @@ -122,8 +131,7 @@ def is_mailing_address(self) -> bool: @is_mailing_address.setter def is_mailing_address(self, is_mailing_address: bool): - """Sets the is_mailing_address of this MapiContactPhysicalAddressDto. - + """ Gets or sets a value indicating whether this address is mailing address :param is_mailing_address: The is_mailing_address of this MapiContactPhysicalAddressDto. @@ -135,8 +143,7 @@ def is_mailing_address(self, is_mailing_address: bool): @property def street(self) -> str: - """Gets the street of this MapiContactPhysicalAddressDto. - + """ Specifies the street portion of the contact's address :return: The street of this MapiContactPhysicalAddressDto. @@ -146,8 +153,7 @@ def street(self) -> str: @street.setter def street(self, street: str): - """Sets the street of this MapiContactPhysicalAddressDto. - + """ Specifies the street portion of the contact's address :param street: The street of this MapiContactPhysicalAddressDto. @@ -157,8 +163,7 @@ def street(self, street: str): @property def city(self) -> str: - """Gets the city of this MapiContactPhysicalAddressDto. - + """ Specifies the city or locality portion of the contact's address :return: The city of this MapiContactPhysicalAddressDto. @@ -168,8 +173,7 @@ def city(self) -> str: @city.setter def city(self, city: str): - """Sets the city of this MapiContactPhysicalAddressDto. - + """ Specifies the city or locality portion of the contact's address :param city: The city of this MapiContactPhysicalAddressDto. @@ -179,8 +183,7 @@ def city(self, city: str): @property def state_or_province(self) -> str: - """Gets the state_or_province of this MapiContactPhysicalAddressDto. - + """ Specifies the state or province portion of the contact's address :return: The state_or_province of this MapiContactPhysicalAddressDto. @@ -190,8 +193,7 @@ def state_or_province(self) -> str: @state_or_province.setter def state_or_province(self, state_or_province: str): - """Sets the state_or_province of this MapiContactPhysicalAddressDto. - + """ Specifies the state or province portion of the contact's address :param state_or_province: The state_or_province of this MapiContactPhysicalAddressDto. @@ -201,8 +203,7 @@ def state_or_province(self, state_or_province: str): @property def postal_code(self) -> str: - """Gets the postal_code of this MapiContactPhysicalAddressDto. - + """ Specifies the postal code (ZIP code) portion of the contact's address :return: The postal_code of this MapiContactPhysicalAddressDto. @@ -212,8 +213,7 @@ def postal_code(self) -> str: @postal_code.setter def postal_code(self, postal_code: str): - """Sets the postal_code of this MapiContactPhysicalAddressDto. - + """ Specifies the postal code (ZIP code) portion of the contact's address :param postal_code: The postal_code of this MapiContactPhysicalAddressDto. @@ -223,8 +223,7 @@ def postal_code(self, postal_code: str): @property def country(self) -> str: - """Gets the country of this MapiContactPhysicalAddressDto. - + """ Specifies the country or region portion of the contact's address :return: The country of this MapiContactPhysicalAddressDto. @@ -234,8 +233,7 @@ def country(self) -> str: @country.setter def country(self, country: str): - """Sets the country of this MapiContactPhysicalAddressDto. - + """ Specifies the country or region portion of the contact's address :param country: The country of this MapiContactPhysicalAddressDto. @@ -245,8 +243,7 @@ def country(self, country: str): @property def country_code(self) -> str: - """Gets the country_code of this MapiContactPhysicalAddressDto. - + """ Specifies the country code portion of the contact's address :return: The country_code of this MapiContactPhysicalAddressDto. @@ -256,8 +253,7 @@ def country_code(self) -> str: @country_code.setter def country_code(self, country_code: str): - """Sets the country_code of this MapiContactPhysicalAddressDto. - + """ Specifies the country code portion of the contact's address :param country_code: The country_code of this MapiContactPhysicalAddressDto. @@ -267,8 +263,7 @@ def country_code(self, country_code: str): @property def address(self) -> str: - """Gets the address of this MapiContactPhysicalAddressDto. - + """ Specifies the complete address of the contact's address :return: The address of this MapiContactPhysicalAddressDto. @@ -278,8 +273,7 @@ def address(self) -> str: @address.setter def address(self, address: str): - """Sets the address of this MapiContactPhysicalAddressDto. - + """ Specifies the complete address of the contact's address :param address: The address of this MapiContactPhysicalAddressDto. @@ -289,8 +283,7 @@ def address(self, address: str): @property def post_office_box(self) -> str: - """Gets the post_office_box of this MapiContactPhysicalAddressDto. - + """ Gets or sets the post office box :return: The post_office_box of this MapiContactPhysicalAddressDto. @@ -300,8 +293,7 @@ def post_office_box(self) -> str: @post_office_box.setter def post_office_box(self, post_office_box: str): - """Sets the post_office_box of this MapiContactPhysicalAddressDto. - + """ Gets or sets the post office box :param post_office_box: The post_office_box of this MapiContactPhysicalAddressDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_contact_physical_address_property_set_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_contact_physical_address_property_set_dto.py index de51914..02efae1 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_contact_physical_address_property_set_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_contact_physical_address_property_set_dto.py @@ -59,9 +59,12 @@ class MapiContactPhysicalAddressPropertySetDto(object): def __init__(self, work_address: MapiContactPhysicalAddressDto = None, home_address: MapiContactPhysicalAddressDto = None, other_address: MapiContactPhysicalAddressDto = None): """ Specify three physical addresses: Home Address, Work Address, and Other Address. One of the addresses can be marked as the Mailing Address - :param work_address (MapiContactPhysicalAddressDto) Specifies the address of the contact's work - :param home_address (MapiContactPhysicalAddressDto) Specifies the address of the contact's home - :param other_address (MapiContactPhysicalAddressDto) Specifies the other contact's address + :param work_address: Specifies the address of the contact's work + :type work_address: MapiContactPhysicalAddressDto + :param home_address: Specifies the address of the contact's home + :type home_address: MapiContactPhysicalAddressDto + :param other_address: Specifies the other contact's address + :type other_address: MapiContactPhysicalAddressDto """ self._work_address = None @@ -75,10 +78,10 @@ def __init__(self, work_address: MapiContactPhysicalAddressDto = None, home_addr if other_address is not None: self.other_address = other_address + @property def work_address(self) -> MapiContactPhysicalAddressDto: - """Gets the work_address of this MapiContactPhysicalAddressPropertySetDto. - + """ Specifies the address of the contact's work :return: The work_address of this MapiContactPhysicalAddressPropertySetDto. @@ -88,8 +91,7 @@ def work_address(self) -> MapiContactPhysicalAddressDto: @work_address.setter def work_address(self, work_address: MapiContactPhysicalAddressDto): - """Sets the work_address of this MapiContactPhysicalAddressPropertySetDto. - + """ Specifies the address of the contact's work :param work_address: The work_address of this MapiContactPhysicalAddressPropertySetDto. @@ -99,8 +101,7 @@ def work_address(self, work_address: MapiContactPhysicalAddressDto): @property def home_address(self) -> MapiContactPhysicalAddressDto: - """Gets the home_address of this MapiContactPhysicalAddressPropertySetDto. - + """ Specifies the address of the contact's home :return: The home_address of this MapiContactPhysicalAddressPropertySetDto. @@ -110,8 +111,7 @@ def home_address(self) -> MapiContactPhysicalAddressDto: @home_address.setter def home_address(self, home_address: MapiContactPhysicalAddressDto): - """Sets the home_address of this MapiContactPhysicalAddressPropertySetDto. - + """ Specifies the address of the contact's home :param home_address: The home_address of this MapiContactPhysicalAddressPropertySetDto. @@ -121,8 +121,7 @@ def home_address(self, home_address: MapiContactPhysicalAddressDto): @property def other_address(self) -> MapiContactPhysicalAddressDto: - """Gets the other_address of this MapiContactPhysicalAddressPropertySetDto. - + """ Specifies the other contact's address :return: The other_address of this MapiContactPhysicalAddressPropertySetDto. @@ -132,8 +131,7 @@ def other_address(self) -> MapiContactPhysicalAddressDto: @other_address.setter def other_address(self, other_address: MapiContactPhysicalAddressDto): - """Sets the other_address of this MapiContactPhysicalAddressPropertySetDto. - + """ Specifies the other contact's address :param other_address: The other_address of this MapiContactPhysicalAddressPropertySetDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_contact_professional_property_set_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_contact_professional_property_set_dto.py index 7399559..5100337 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_contact_professional_property_set_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_contact_professional_property_set_dto.py @@ -65,13 +65,20 @@ class MapiContactProfessionalPropertySetDto(object): def __init__(self, title: str = None, company_name: str = None, department_name: str = None, office_location: str = None, manager_name: str = None, assistant: str = None, profession: str = None): """ Properties are used to store professional details for the person represented by the contact - :param title (str) Gets or sets the job title of the contact - :param company_name (str) Gets or sets the company that employs the contact - :param department_name (str) Gets or sets the name of the department to which the contact belongs - :param office_location (str) Gets or sets the location of the office that the contact works in - :param manager_name (str) Gets or sets the name of the contact's manager - :param assistant (str) Gets or sets the name of the contact's assistant - :param profession (str) Gets or sets the profession of the contact + :param title: Gets or sets the job title of the contact + :type title: str + :param company_name: Gets or sets the company that employs the contact + :type company_name: str + :param department_name: Gets or sets the name of the department to which the contact belongs + :type department_name: str + :param office_location: Gets or sets the location of the office that the contact works in + :type office_location: str + :param manager_name: Gets or sets the name of the contact's manager + :type manager_name: str + :param assistant: Gets or sets the name of the contact's assistant + :type assistant: str + :param profession: Gets or sets the profession of the contact + :type profession: str """ self._title = None @@ -97,10 +104,10 @@ def __init__(self, title: str = None, company_name: str = None, department_name: if profession is not None: self.profession = profession + @property def title(self) -> str: - """Gets the title of this MapiContactProfessionalPropertySetDto. - + """ Gets or sets the job title of the contact :return: The title of this MapiContactProfessionalPropertySetDto. @@ -110,8 +117,7 @@ def title(self) -> str: @title.setter def title(self, title: str): - """Sets the title of this MapiContactProfessionalPropertySetDto. - + """ Gets or sets the job title of the contact :param title: The title of this MapiContactProfessionalPropertySetDto. @@ -121,8 +127,7 @@ def title(self, title: str): @property def company_name(self) -> str: - """Gets the company_name of this MapiContactProfessionalPropertySetDto. - + """ Gets or sets the company that employs the contact :return: The company_name of this MapiContactProfessionalPropertySetDto. @@ -132,8 +137,7 @@ def company_name(self) -> str: @company_name.setter def company_name(self, company_name: str): - """Sets the company_name of this MapiContactProfessionalPropertySetDto. - + """ Gets or sets the company that employs the contact :param company_name: The company_name of this MapiContactProfessionalPropertySetDto. @@ -143,8 +147,7 @@ def company_name(self, company_name: str): @property def department_name(self) -> str: - """Gets the department_name of this MapiContactProfessionalPropertySetDto. - + """ Gets or sets the name of the department to which the contact belongs :return: The department_name of this MapiContactProfessionalPropertySetDto. @@ -154,8 +157,7 @@ def department_name(self) -> str: @department_name.setter def department_name(self, department_name: str): - """Sets the department_name of this MapiContactProfessionalPropertySetDto. - + """ Gets or sets the name of the department to which the contact belongs :param department_name: The department_name of this MapiContactProfessionalPropertySetDto. @@ -165,8 +167,7 @@ def department_name(self, department_name: str): @property def office_location(self) -> str: - """Gets the office_location of this MapiContactProfessionalPropertySetDto. - + """ Gets or sets the location of the office that the contact works in :return: The office_location of this MapiContactProfessionalPropertySetDto. @@ -176,8 +177,7 @@ def office_location(self) -> str: @office_location.setter def office_location(self, office_location: str): - """Sets the office_location of this MapiContactProfessionalPropertySetDto. - + """ Gets or sets the location of the office that the contact works in :param office_location: The office_location of this MapiContactProfessionalPropertySetDto. @@ -187,8 +187,7 @@ def office_location(self, office_location: str): @property def manager_name(self) -> str: - """Gets the manager_name of this MapiContactProfessionalPropertySetDto. - + """ Gets or sets the name of the contact's manager :return: The manager_name of this MapiContactProfessionalPropertySetDto. @@ -198,8 +197,7 @@ def manager_name(self) -> str: @manager_name.setter def manager_name(self, manager_name: str): - """Sets the manager_name of this MapiContactProfessionalPropertySetDto. - + """ Gets or sets the name of the contact's manager :param manager_name: The manager_name of this MapiContactProfessionalPropertySetDto. @@ -209,8 +207,7 @@ def manager_name(self, manager_name: str): @property def assistant(self) -> str: - """Gets the assistant of this MapiContactProfessionalPropertySetDto. - + """ Gets or sets the name of the contact's assistant :return: The assistant of this MapiContactProfessionalPropertySetDto. @@ -220,8 +217,7 @@ def assistant(self) -> str: @assistant.setter def assistant(self, assistant: str): - """Sets the assistant of this MapiContactProfessionalPropertySetDto. - + """ Gets or sets the name of the contact's assistant :param assistant: The assistant of this MapiContactProfessionalPropertySetDto. @@ -231,8 +227,7 @@ def assistant(self, assistant: str): @property def profession(self) -> str: - """Gets the profession of this MapiContactProfessionalPropertySetDto. - + """ Gets or sets the profession of the contact :return: The profession of this MapiContactProfessionalPropertySetDto. @@ -242,8 +237,7 @@ def profession(self) -> str: @profession.setter def profession(self, profession: str): - """Sets the profession of this MapiContactProfessionalPropertySetDto. - + """ Gets or sets the profession of the contact :param profession: The profession of this MapiContactProfessionalPropertySetDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_contact_save_request.py b/sdk/AsposeEmailCloudSdk/models/mapi_contact_save_request.py new file mode 100644 index 0000000..59dc20d --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/mapi_contact_save_request.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.mapi_contact_dto import MapiContactDto +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation +from AsposeEmailCloudSdk.models.storage_model_of_mapi_contact_dto import StorageModelOfMapiContactDto + + +class MapiContactSaveRequest(StorageModelOfMapiContactDto): + """MapiContact save to storage 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 = { + 'storage_file': 'StorageFileLocation', + 'value': 'MapiContactDto', + 'format': 'str' + } + + attribute_map = { + 'storage_file': 'storageFile', + 'value': 'value', + 'format': 'format' + } + + def __init__(self, storage_file: StorageFileLocation = None, value: MapiContactDto = None, format: str = None): + """ + MapiContact save to storage request. + :param storage_file: + :type storage_file: StorageFileLocation + :param value: + :type value: MapiContactDto + :param format: Enumerates contact formats. Enum, available values: VCard, WebDav, Msg + :type format: str + """ + super(MapiContactSaveRequest, self).__init__() + + self._format = None + + if storage_file is not None: + self.storage_file = storage_file + if value is not None: + self.value = value + if format is not None: + self.format = format + + + @property + def format(self) -> str: + """ + Enumerates contact formats. Enum, available values: VCard, WebDav, Msg + + :return: The format of this MapiContactSaveRequest. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format: str): + """ + Enumerates contact formats. Enum, available values: VCard, WebDav, Msg + + :param format: The format of this MapiContactSaveRequest. + :type: str + """ + if format is None: + raise ValueError("Invalid value for `format`, must not be `None`") + self._format = format + + 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, MapiContactSaveRequest): + 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/mapi_contact_telephone_property_set_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_contact_telephone_property_set_dto.py index d5274d13..9a1d83f 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_contact_telephone_property_set_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_contact_telephone_property_set_dto.py @@ -89,25 +89,44 @@ class MapiContactTelephonePropertySetDto(object): def __init__(self, is_empty: bool = None, default_telephone_number: str = None, use_autocomplete: bool = None, callback_telephone_number: str = None, business_telephone_number: str = None, home_telephone_number: str = None, primary_telephone_number: str = None, business2_telephone_number: str = None, mobile_telephone_number: str = None, radio_telephone_number: str = None, car_telephone_number: str = None, other_telephone_number: str = None, assistant_telephone_number: str = None, home2_telephone_number: str = None, tty_tdd_phone_number: str = None, company_main_telephone_number: str = None, telex_number: str = None, isdn_number: str = None, pager_telephone_number: str = None): """ Specify optional telephone numbers for the contact. - :param is_empty (bool) Shows if MapiContactTelephonePropertySet is empty - :param default_telephone_number (str) Default value of electronic address Uses when user does not set any electronic address if UseAutocomplete property is set 'true' - :param use_autocomplete (bool) Indicates that one electronic address is completed automatically in case if user does not set any electronic address - :param callback_telephone_number (str) Gets or sets the callback telephone number - :param business_telephone_number (str) Gets or sets the business telephone number - :param home_telephone_number (str) Gets or sets the home telephone number - :param primary_telephone_number (str) Gets or sets the primary telephone number - :param business2_telephone_number (str) Gets or sets the second business telephone number - :param mobile_telephone_number (str) Gets or sets the mobile telephone number - :param radio_telephone_number (str) Gets or sets the radio telephone number - :param car_telephone_number (str) Gets or sets the car telephone number - :param other_telephone_number (str) Gets or sets an alternate telephone number - :param assistant_telephone_number (str) Gets or sets the telephone number of the contact's assistant - :param home2_telephone_number (str) Gets or sets a second home telephone number - :param tty_tdd_phone_number (str) Gets or sets the telephone number for the contact's text telephone (TTY) or telecommunication device for the deaf (TDD) - :param company_main_telephone_number (str) Gets or sets the company phone number - :param telex_number (str) Gets or sets the telex number - :param isdn_number (str) Gets or sets the integrated services digital network (ISDN) number - :param pager_telephone_number (str) Gets or sets a pager telephone number + :param is_empty: Shows if MapiContactTelephonePropertySet is empty + :type is_empty: bool + :param default_telephone_number: Default value of electronic address Uses when user does not set any electronic address if UseAutocomplete property is set 'true' + :type default_telephone_number: str + :param use_autocomplete: Indicates that one electronic address is completed automatically in case if user does not set any electronic address + :type use_autocomplete: bool + :param callback_telephone_number: Gets or sets the callback telephone number + :type callback_telephone_number: str + :param business_telephone_number: Gets or sets the business telephone number + :type business_telephone_number: str + :param home_telephone_number: Gets or sets the home telephone number + :type home_telephone_number: str + :param primary_telephone_number: Gets or sets the primary telephone number + :type primary_telephone_number: str + :param business2_telephone_number: Gets or sets the second business telephone number + :type business2_telephone_number: str + :param mobile_telephone_number: Gets or sets the mobile telephone number + :type mobile_telephone_number: str + :param radio_telephone_number: Gets or sets the radio telephone number + :type radio_telephone_number: str + :param car_telephone_number: Gets or sets the car telephone number + :type car_telephone_number: str + :param other_telephone_number: Gets or sets an alternate telephone number + :type other_telephone_number: str + :param assistant_telephone_number: Gets or sets the telephone number of the contact's assistant + :type assistant_telephone_number: str + :param home2_telephone_number: Gets or sets a second home telephone number + :type home2_telephone_number: str + :param tty_tdd_phone_number: Gets or sets the telephone number for the contact's text telephone (TTY) or telecommunication device for the deaf (TDD) + :type tty_tdd_phone_number: str + :param company_main_telephone_number: Gets or sets the company phone number + :type company_main_telephone_number: str + :param telex_number: Gets or sets the telex number + :type telex_number: str + :param isdn_number: Gets or sets the integrated services digital network (ISDN) number + :type isdn_number: str + :param pager_telephone_number: Gets or sets a pager telephone number + :type pager_telephone_number: str """ self._is_empty = None @@ -169,10 +188,10 @@ def __init__(self, is_empty: bool = None, default_telephone_number: str = None, if pager_telephone_number is not None: self.pager_telephone_number = pager_telephone_number + @property def is_empty(self) -> bool: - """Gets the is_empty of this MapiContactTelephonePropertySetDto. - + """ Shows if MapiContactTelephonePropertySet is empty :return: The is_empty of this MapiContactTelephonePropertySetDto. @@ -182,8 +201,7 @@ def is_empty(self) -> bool: @is_empty.setter def is_empty(self, is_empty: bool): - """Sets the is_empty of this MapiContactTelephonePropertySetDto. - + """ Shows if MapiContactTelephonePropertySet is empty :param is_empty: The is_empty of this MapiContactTelephonePropertySetDto. @@ -195,8 +213,7 @@ def is_empty(self, is_empty: bool): @property def default_telephone_number(self) -> str: - """Gets the default_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Default value of electronic address Uses when user does not set any electronic address if UseAutocomplete property is set 'true' :return: The default_telephone_number of this MapiContactTelephonePropertySetDto. @@ -206,8 +223,7 @@ def default_telephone_number(self) -> str: @default_telephone_number.setter def default_telephone_number(self, default_telephone_number: str): - """Sets the default_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Default value of electronic address Uses when user does not set any electronic address if UseAutocomplete property is set 'true' :param default_telephone_number: The default_telephone_number of this MapiContactTelephonePropertySetDto. @@ -217,8 +233,7 @@ def default_telephone_number(self, default_telephone_number: str): @property def use_autocomplete(self) -> bool: - """Gets the use_autocomplete of this MapiContactTelephonePropertySetDto. - + """ Indicates that one electronic address is completed automatically in case if user does not set any electronic address :return: The use_autocomplete of this MapiContactTelephonePropertySetDto. @@ -228,8 +243,7 @@ def use_autocomplete(self) -> bool: @use_autocomplete.setter def use_autocomplete(self, use_autocomplete: bool): - """Sets the use_autocomplete of this MapiContactTelephonePropertySetDto. - + """ Indicates that one electronic address is completed automatically in case if user does not set any electronic address :param use_autocomplete: The use_autocomplete of this MapiContactTelephonePropertySetDto. @@ -241,8 +255,7 @@ def use_autocomplete(self, use_autocomplete: bool): @property def callback_telephone_number(self) -> str: - """Gets the callback_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the callback telephone number :return: The callback_telephone_number of this MapiContactTelephonePropertySetDto. @@ -252,8 +265,7 @@ def callback_telephone_number(self) -> str: @callback_telephone_number.setter def callback_telephone_number(self, callback_telephone_number: str): - """Sets the callback_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the callback telephone number :param callback_telephone_number: The callback_telephone_number of this MapiContactTelephonePropertySetDto. @@ -263,8 +275,7 @@ def callback_telephone_number(self, callback_telephone_number: str): @property def business_telephone_number(self) -> str: - """Gets the business_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the business telephone number :return: The business_telephone_number of this MapiContactTelephonePropertySetDto. @@ -274,8 +285,7 @@ def business_telephone_number(self) -> str: @business_telephone_number.setter def business_telephone_number(self, business_telephone_number: str): - """Sets the business_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the business telephone number :param business_telephone_number: The business_telephone_number of this MapiContactTelephonePropertySetDto. @@ -285,8 +295,7 @@ def business_telephone_number(self, business_telephone_number: str): @property def home_telephone_number(self) -> str: - """Gets the home_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the home telephone number :return: The home_telephone_number of this MapiContactTelephonePropertySetDto. @@ -296,8 +305,7 @@ def home_telephone_number(self) -> str: @home_telephone_number.setter def home_telephone_number(self, home_telephone_number: str): - """Sets the home_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the home telephone number :param home_telephone_number: The home_telephone_number of this MapiContactTelephonePropertySetDto. @@ -307,8 +315,7 @@ def home_telephone_number(self, home_telephone_number: str): @property def primary_telephone_number(self) -> str: - """Gets the primary_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the primary telephone number :return: The primary_telephone_number of this MapiContactTelephonePropertySetDto. @@ -318,8 +325,7 @@ def primary_telephone_number(self) -> str: @primary_telephone_number.setter def primary_telephone_number(self, primary_telephone_number: str): - """Sets the primary_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the primary telephone number :param primary_telephone_number: The primary_telephone_number of this MapiContactTelephonePropertySetDto. @@ -329,8 +335,7 @@ def primary_telephone_number(self, primary_telephone_number: str): @property def business2_telephone_number(self) -> str: - """Gets the business2_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the second business telephone number :return: The business2_telephone_number of this MapiContactTelephonePropertySetDto. @@ -340,8 +345,7 @@ def business2_telephone_number(self) -> str: @business2_telephone_number.setter def business2_telephone_number(self, business2_telephone_number: str): - """Sets the business2_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the second business telephone number :param business2_telephone_number: The business2_telephone_number of this MapiContactTelephonePropertySetDto. @@ -351,8 +355,7 @@ def business2_telephone_number(self, business2_telephone_number: str): @property def mobile_telephone_number(self) -> str: - """Gets the mobile_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the mobile telephone number :return: The mobile_telephone_number of this MapiContactTelephonePropertySetDto. @@ -362,8 +365,7 @@ def mobile_telephone_number(self) -> str: @mobile_telephone_number.setter def mobile_telephone_number(self, mobile_telephone_number: str): - """Sets the mobile_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the mobile telephone number :param mobile_telephone_number: The mobile_telephone_number of this MapiContactTelephonePropertySetDto. @@ -373,8 +375,7 @@ def mobile_telephone_number(self, mobile_telephone_number: str): @property def radio_telephone_number(self) -> str: - """Gets the radio_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the radio telephone number :return: The radio_telephone_number of this MapiContactTelephonePropertySetDto. @@ -384,8 +385,7 @@ def radio_telephone_number(self) -> str: @radio_telephone_number.setter def radio_telephone_number(self, radio_telephone_number: str): - """Sets the radio_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the radio telephone number :param radio_telephone_number: The radio_telephone_number of this MapiContactTelephonePropertySetDto. @@ -395,8 +395,7 @@ def radio_telephone_number(self, radio_telephone_number: str): @property def car_telephone_number(self) -> str: - """Gets the car_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the car telephone number :return: The car_telephone_number of this MapiContactTelephonePropertySetDto. @@ -406,8 +405,7 @@ def car_telephone_number(self) -> str: @car_telephone_number.setter def car_telephone_number(self, car_telephone_number: str): - """Sets the car_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the car telephone number :param car_telephone_number: The car_telephone_number of this MapiContactTelephonePropertySetDto. @@ -417,8 +415,7 @@ def car_telephone_number(self, car_telephone_number: str): @property def other_telephone_number(self) -> str: - """Gets the other_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets an alternate telephone number :return: The other_telephone_number of this MapiContactTelephonePropertySetDto. @@ -428,8 +425,7 @@ def other_telephone_number(self) -> str: @other_telephone_number.setter def other_telephone_number(self, other_telephone_number: str): - """Sets the other_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets an alternate telephone number :param other_telephone_number: The other_telephone_number of this MapiContactTelephonePropertySetDto. @@ -439,8 +435,7 @@ def other_telephone_number(self, other_telephone_number: str): @property def assistant_telephone_number(self) -> str: - """Gets the assistant_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the telephone number of the contact's assistant :return: The assistant_telephone_number of this MapiContactTelephonePropertySetDto. @@ -450,8 +445,7 @@ def assistant_telephone_number(self) -> str: @assistant_telephone_number.setter def assistant_telephone_number(self, assistant_telephone_number: str): - """Sets the assistant_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the telephone number of the contact's assistant :param assistant_telephone_number: The assistant_telephone_number of this MapiContactTelephonePropertySetDto. @@ -461,8 +455,7 @@ def assistant_telephone_number(self, assistant_telephone_number: str): @property def home2_telephone_number(self) -> str: - """Gets the home2_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets a second home telephone number :return: The home2_telephone_number of this MapiContactTelephonePropertySetDto. @@ -472,8 +465,7 @@ def home2_telephone_number(self) -> str: @home2_telephone_number.setter def home2_telephone_number(self, home2_telephone_number: str): - """Sets the home2_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets a second home telephone number :param home2_telephone_number: The home2_telephone_number of this MapiContactTelephonePropertySetDto. @@ -483,8 +475,7 @@ def home2_telephone_number(self, home2_telephone_number: str): @property def tty_tdd_phone_number(self) -> str: - """Gets the tty_tdd_phone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the telephone number for the contact's text telephone (TTY) or telecommunication device for the deaf (TDD) :return: The tty_tdd_phone_number of this MapiContactTelephonePropertySetDto. @@ -494,8 +485,7 @@ def tty_tdd_phone_number(self) -> str: @tty_tdd_phone_number.setter def tty_tdd_phone_number(self, tty_tdd_phone_number: str): - """Sets the tty_tdd_phone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the telephone number for the contact's text telephone (TTY) or telecommunication device for the deaf (TDD) :param tty_tdd_phone_number: The tty_tdd_phone_number of this MapiContactTelephonePropertySetDto. @@ -505,8 +495,7 @@ def tty_tdd_phone_number(self, tty_tdd_phone_number: str): @property def company_main_telephone_number(self) -> str: - """Gets the company_main_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the company phone number :return: The company_main_telephone_number of this MapiContactTelephonePropertySetDto. @@ -516,8 +505,7 @@ def company_main_telephone_number(self) -> str: @company_main_telephone_number.setter def company_main_telephone_number(self, company_main_telephone_number: str): - """Sets the company_main_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the company phone number :param company_main_telephone_number: The company_main_telephone_number of this MapiContactTelephonePropertySetDto. @@ -527,8 +515,7 @@ def company_main_telephone_number(self, company_main_telephone_number: str): @property def telex_number(self) -> str: - """Gets the telex_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the telex number :return: The telex_number of this MapiContactTelephonePropertySetDto. @@ -538,8 +525,7 @@ def telex_number(self) -> str: @telex_number.setter def telex_number(self, telex_number: str): - """Sets the telex_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the telex number :param telex_number: The telex_number of this MapiContactTelephonePropertySetDto. @@ -549,8 +535,7 @@ def telex_number(self, telex_number: str): @property def isdn_number(self) -> str: - """Gets the isdn_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the integrated services digital network (ISDN) number :return: The isdn_number of this MapiContactTelephonePropertySetDto. @@ -560,8 +545,7 @@ def isdn_number(self) -> str: @isdn_number.setter def isdn_number(self, isdn_number: str): - """Sets the isdn_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets the integrated services digital network (ISDN) number :param isdn_number: The isdn_number of this MapiContactTelephonePropertySetDto. @@ -571,8 +555,7 @@ def isdn_number(self, isdn_number: str): @property def pager_telephone_number(self) -> str: - """Gets the pager_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets a pager telephone number :return: The pager_telephone_number of this MapiContactTelephonePropertySetDto. @@ -582,8 +565,7 @@ def pager_telephone_number(self) -> str: @pager_telephone_number.setter def pager_telephone_number(self, pager_telephone_number: str): - """Sets the pager_telephone_number of this MapiContactTelephonePropertySetDto. - + """ Gets or sets a pager telephone number :param pager_telephone_number: The pager_telephone_number of this MapiContactTelephonePropertySetDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_date_time_property_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_date_time_property_dto.py index 46d8f2a..1b6d43d 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_date_time_property_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_date_time_property_dto.py @@ -57,12 +57,13 @@ class MapiDateTimePropertyDto(MapiPropertyDto): 'value': 'value' } - def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str = None, value: datetime = None): + def __init__(self, descriptor: MapiPropertyDescriptor = None, value: datetime = None): """ Mapi property with DateTime value - :param descriptor (MapiPropertyDescriptor) Property descriptor - :param discriminator (str) - :param value (datetime) Property value + :param descriptor: Property descriptor + :type descriptor: MapiPropertyDescriptor + :param value: Property value + :type value: datetime """ super(MapiDateTimePropertyDto, self).__init__() @@ -70,15 +71,13 @@ def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str if descriptor is not None: self.descriptor = descriptor - if discriminator is not None: - self.discriminator = discriminator if value is not None: self.value = value + @property def value(self) -> datetime: - """Gets the value of this MapiDateTimePropertyDto. - + """ Property value :return: The value of this MapiDateTimePropertyDto. @@ -88,8 +87,7 @@ def value(self) -> datetime: @value.setter def value(self, value: datetime): - """Sets the value of this MapiDateTimePropertyDto. - + """ Property value :param value: The value of this MapiDateTimePropertyDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_electronic_address_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_electronic_address_dto.py index f16a3a5..f802442 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_electronic_address_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_electronic_address_dto.py @@ -61,11 +61,16 @@ class MapiElectronicAddressDto(object): def __init__(self, address_type: str = None, email_address: str = None, display_name: str = None, fax_number: str = None, original_display_name: str = None): """ Refers to the group of properties that define the e-mail address or fax address. - :param address_type (str) Address type. - :param email_address (str) Email address. - :param display_name (str) User-readable display name for the e-mail address. - :param fax_number (str) Telephone number of the mail user's primary fax machine. - :param original_display_name (str) SMTP e-mail address that corresponds to the e-mail address. + :param address_type: Address type. + :type address_type: str + :param email_address: Email address. + :type email_address: str + :param display_name: User-readable display name for the e-mail address. + :type display_name: str + :param fax_number: Telephone number of the mail user's primary fax machine. + :type fax_number: str + :param original_display_name: SMTP e-mail address that corresponds to the e-mail address. + :type original_display_name: str """ self._address_type = None @@ -85,10 +90,10 @@ def __init__(self, address_type: str = None, email_address: str = None, display_ if original_display_name is not None: self.original_display_name = original_display_name + @property def address_type(self) -> str: - """Gets the address_type of this MapiElectronicAddressDto. - + """ Address type. :return: The address_type of this MapiElectronicAddressDto. @@ -98,8 +103,7 @@ def address_type(self) -> str: @address_type.setter def address_type(self, address_type: str): - """Sets the address_type of this MapiElectronicAddressDto. - + """ Address type. :param address_type: The address_type of this MapiElectronicAddressDto. @@ -109,8 +113,7 @@ def address_type(self, address_type: str): @property def email_address(self) -> str: - """Gets the email_address of this MapiElectronicAddressDto. - + """ Email address. :return: The email_address of this MapiElectronicAddressDto. @@ -120,8 +123,7 @@ def email_address(self) -> str: @email_address.setter def email_address(self, email_address: str): - """Sets the email_address of this MapiElectronicAddressDto. - + """ Email address. :param email_address: The email_address of this MapiElectronicAddressDto. @@ -131,8 +133,7 @@ def email_address(self, email_address: str): @property def display_name(self) -> str: - """Gets the display_name of this MapiElectronicAddressDto. - + """ User-readable display name for the e-mail address. :return: The display_name of this MapiElectronicAddressDto. @@ -142,8 +143,7 @@ def display_name(self) -> str: @display_name.setter def display_name(self, display_name: str): - """Sets the display_name of this MapiElectronicAddressDto. - + """ User-readable display name for the e-mail address. :param display_name: The display_name of this MapiElectronicAddressDto. @@ -153,8 +153,7 @@ def display_name(self, display_name: str): @property def fax_number(self) -> str: - """Gets the fax_number of this MapiElectronicAddressDto. - + """ Telephone number of the mail user's primary fax machine. :return: The fax_number of this MapiElectronicAddressDto. @@ -164,8 +163,7 @@ def fax_number(self) -> str: @fax_number.setter def fax_number(self, fax_number: str): - """Sets the fax_number of this MapiElectronicAddressDto. - + """ Telephone number of the mail user's primary fax machine. :param fax_number: The fax_number of this MapiElectronicAddressDto. @@ -175,8 +173,7 @@ def fax_number(self, fax_number: str): @property def original_display_name(self) -> str: - """Gets the original_display_name of this MapiElectronicAddressDto. - + """ SMTP e-mail address that corresponds to the e-mail address. :return: The original_display_name of this MapiElectronicAddressDto. @@ -186,8 +183,7 @@ def original_display_name(self) -> str: @original_display_name.setter def original_display_name(self, original_display_name: str): - """Sets the original_display_name of this MapiElectronicAddressDto. - + """ SMTP e-mail address that corresponds to the e-mail address. :param original_display_name: The original_display_name of this MapiElectronicAddressDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_file_as_property_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_file_as_property_dto.py index 861300b..4b981b2 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_file_as_property_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_file_as_property_dto.py @@ -57,12 +57,13 @@ class MapiFileAsPropertyDto(MapiPropertyDto): 'value': 'value' } - def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str = None, value: str = None): + def __init__(self, descriptor: MapiPropertyDescriptor = None, value: str = None): """ Mapi property with FileAsMapping value - :param descriptor (MapiPropertyDescriptor) Property descriptor - :param discriminator (str) - :param value (str) Defines how to construct what is displayed for a contact in the FileAs property. Enum, available values: None, LastCommaFirst, FirstSpaceLast, Company, LastCommaFirstCompany, CompanyLastFirst, LastFirst, LastFirstCompany, CompanyLastCommaFirst, LastFirstSuffix, LastSpaceFirstCompany, CompanyLastSpaceFirst, LastSpaceFirst, DisplayName, FirstName, LastFirstMiddleSuffix, LastName, Empty + :param descriptor: Property descriptor + :type descriptor: MapiPropertyDescriptor + :param value: Defines how to construct what is displayed for a contact in the FileAs property. Enum, available values: None, LastCommaFirst, FirstSpaceLast, Company, LastCommaFirstCompany, CompanyLastFirst, LastFirst, LastFirstCompany, CompanyLastCommaFirst, LastFirstSuffix, LastSpaceFirstCompany, CompanyLastSpaceFirst, LastSpaceFirst, DisplayName, FirstName, LastFirstMiddleSuffix, LastName, Empty + :type value: str """ super(MapiFileAsPropertyDto, self).__init__() @@ -70,15 +71,13 @@ def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str if descriptor is not None: self.descriptor = descriptor - if discriminator is not None: - self.discriminator = discriminator if value is not None: self.value = value + @property def value(self) -> str: - """Gets the value of this MapiFileAsPropertyDto. - + """ Defines how to construct what is displayed for a contact in the FileAs property. Enum, available values: None, LastCommaFirst, FirstSpaceLast, Company, LastCommaFirstCompany, CompanyLastFirst, LastFirst, LastFirstCompany, CompanyLastCommaFirst, LastFirstSuffix, LastSpaceFirstCompany, CompanyLastSpaceFirst, LastSpaceFirst, DisplayName, FirstName, LastFirstMiddleSuffix, LastName, Empty :return: The value of this MapiFileAsPropertyDto. @@ -88,8 +87,7 @@ def value(self) -> str: @value.setter def value(self, value: str): - """Sets the value of this MapiFileAsPropertyDto. - + """ Defines how to construct what is displayed for a contact in the FileAs property. Enum, available values: None, LastCommaFirst, FirstSpaceLast, Company, LastCommaFirstCompany, CompanyLastFirst, LastFirst, LastFirstCompany, CompanyLastCommaFirst, LastFirstSuffix, LastSpaceFirstCompany, CompanyLastSpaceFirst, LastSpaceFirst, DisplayName, FirstName, LastFirstMiddleSuffix, LastName, Empty :param value: The value of this MapiFileAsPropertyDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_importance_property_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_importance_property_dto.py index 3f12c29..a135cbe 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_importance_property_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_importance_property_dto.py @@ -57,12 +57,13 @@ class MapiImportancePropertyDto(MapiPropertyDto): 'value': 'value' } - def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str = None, value: str = None): + def __init__(self, descriptor: MapiPropertyDescriptor = None, value: str = None): """ Mapi property with ImportanceChoicesType value - :param descriptor (MapiPropertyDescriptor) Property descriptor - :param discriminator (str) - :param value (str) Levels of importance for an item. Enum, available values: Low, Normal, High + :param descriptor: Property descriptor + :type descriptor: MapiPropertyDescriptor + :param value: Levels of importance for an item. Enum, available values: Low, Normal, High + :type value: str """ super(MapiImportancePropertyDto, self).__init__() @@ -70,15 +71,13 @@ def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str if descriptor is not None: self.descriptor = descriptor - if discriminator is not None: - self.discriminator = discriminator if value is not None: self.value = value + @property def value(self) -> str: - """Gets the value of this MapiImportancePropertyDto. - + """ Levels of importance for an item. Enum, available values: Low, Normal, High :return: The value of this MapiImportancePropertyDto. @@ -88,8 +87,7 @@ def value(self) -> str: @value.setter def value(self, value: str): - """Sets the value of this MapiImportancePropertyDto. - + """ Levels of importance for an item. Enum, available values: Low, Normal, High :param value: The value of this MapiImportancePropertyDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_int_property_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_int_property_dto.py index eaa51ae..f170144 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_int_property_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_int_property_dto.py @@ -57,12 +57,13 @@ class MapiIntPropertyDto(MapiPropertyDto): 'value': 'value' } - def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str = None, value: int = None): + def __init__(self, descriptor: MapiPropertyDescriptor = None, value: int = None): """ Mapi property with Integer value - :param descriptor (MapiPropertyDescriptor) Property descriptor - :param discriminator (str) - :param value (int) Property value + :param descriptor: Property descriptor + :type descriptor: MapiPropertyDescriptor + :param value: Property value + :type value: int """ super(MapiIntPropertyDto, self).__init__() @@ -70,15 +71,13 @@ def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str if descriptor is not None: self.descriptor = descriptor - if discriminator is not None: - self.discriminator = discriminator if value is not None: self.value = value + @property def value(self) -> int: - """Gets the value of this MapiIntPropertyDto. - + """ Property value :return: The value of this MapiIntPropertyDto. @@ -88,8 +87,7 @@ def value(self) -> int: @value.setter def value(self, value: int): - """Sets the value of this MapiIntPropertyDto. - + """ Property value :param value: The value of this MapiIntPropertyDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_known_property_descriptor.py b/sdk/AsposeEmailCloudSdk/models/mapi_known_property_descriptor.py index 0826486..dd9b2d0 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_known_property_descriptor.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_known_property_descriptor.py @@ -54,25 +54,22 @@ class MapiKnownPropertyDescriptor(MapiPropertyDescriptor): 'name': 'name' } - def __init__(self, discriminator: str = None, name: str = None): + def __init__(self, name: str = None): """ Known Mapi Property descriptor - :param discriminator (str) - :param name (str) Known property name. See all known properties here: https://apireference.aspose.com/email/net/aspose.email.mapi/knownpropertylist/fields/index Possible values: Mileage, ObjectUri, GDataContactVersion, GDataPhotoVersion, AddressBookProviderArrayType, AddressBookProviderEmailList, AddressCountryCode, AgingDontAgeMe, AllAttendeesString, AllowExternalCheck, AnniversaryEventEntryId, AppointmentAuxiliaryFlags, AppointmentColor, AppointmentCounterProposal, AppointmentDuration, AppointmentEndDate, AppointmentEndTime, AppointmentEndWhole, AppointmentLastSequence, AppointmentMessageClass, AppointmentNotAllowPropose, AppointmentProposalNumber, AppointmentProposedDuration, AppointmentProposedEndWhole, AppointmentProposedStartWhole, AppointmentRecur, AppointmentReplyName, AppointmentReplyTime, AppointmentSequence, AppointmentSequenceTime, AppointmentStartDate, AppointmentStartTime, AppointmentStartWhole, AppointmentStateFlags, AppointmentSubType, AppointmentTimeZoneDefinitionEndDisplay, AppointmentTimeZoneDefinitionRecur, AppointmentTimeZoneDefinitionStartDisplay, AppointmentUnsendableRecipients, AppointmentUpdateTime, AttendeeCriticalChange, AutoFillLocation, AutoLog, AutoProcessState, AutoStartCheck, Billing, BirthdayEventEntryId, BirthdayLocal, BusinessCardCardPicture, BusinessCardDisplayDefinition, BusyStatus, CalendarType, Categories, CcAttendeesString, ChangeHighlight, Classification, ClassificationDescription, ClassificationGuid, ClassificationKeep, Classified, CleanGlobalObjectId, ClientIntent, ClipEnd, ClipStart, CollaborateDoc, CommonEnd, CommonStart, Companies, ConferencingCheck, ConferencingType, ContactCharacterSet, ContactItemData, ContactLinkedGlobalAddressListEntryId, ContactLinkEntry, ContactLinkGlobalAddressListLinkId, ContactLinkGlobalAddressListLinkState, ContactLinkLinkRejectHistory, ContactLinkName, ContactLinkSearchKey, ContactLinkSMTPAddressCache, Contacts, ContactUserField1, ContactUserField2, ContactUserField3, ContactUserField4, ConversationActionLastAppliedTime, ConversationActionMaxDeliveryTime, ConversationActionMoveFolderEid, ConversationActionMoveStoreEid, ConversationActionVersion, ConversationProcessed, CurrentVersion, CurrentVersionName, DayInterval, DayOfMonth, DelegateMail, Department, Directory, DistributionListChecksum, DistributionListMembers, DistributionListName, DistributionListOneOffMembers, DistributionListStream, Email1AddressType, Email1DisplayName, Email1EmailAddress, Email1OriginalDisplayName, Email1OriginalEntryId, Email2AddressType, Email2DisplayName, Email2EmailAddress, Email2OriginalDisplayName, Email2OriginalEntryId, Email3AddressType, Email3DisplayName, Email3EmailAddress, Email3OriginalDisplayName, Email3OriginalEntryId, EndRecurrenceDate, EndRecurrenceTime, ExceptionReplaceTime, Fax1AddressType, Fax1EmailAddress, Fax1OriginalDisplayName, Fax1OriginalEntryId, Fax2AddressType, Fax2EmailAddress, Fax2OriginalDisplayName, Fax2OriginalEntryId, Fax3AddressType, Fax3EmailAddress, Fax3OriginalDisplayName, Fax3OriginalEntryId, FExceptionalAttendees, FExceptionalBody, FileUnder, FileUnderId, FileUnderList, FInvited, FlagRequest, FlagString, ForwardInstance, ForwardNotificationRecipients, FOthersAppointment, FreeBusyLocation, GlobalObjectId, HasPicture, HomeAddress, HomeAddressCountryCode, Html, ICalendarDayOfWeekMask, InboundICalStream, InfoPathFormName, InstantMessagingAddress, IntendedBusyStatus, InternetAccountName, InternetAccountStamp, IsContactLinked, IsException, IsRecurring, IsSilent, LinkedTaskItems, Location, LogDocumentPosted, LogDocumentPrinted, LogDocumentRouted, LogDocumentSaved, LogDuration, LogEnd, LogFlags, LogStart, LogType, LogTypeDesc, MeetingType, MeetingWorkspaceUrl, MonthInterval, MonthOfYear, MonthOfYearMask, NetShowUrl, NoEndDateFlag, NonSendableBcc, NonSendableCc, NonSendableTo, NonSendBccTrackStatus, NonSendCcTrackStatus, NonSendToTrackStatus, NoteColor, NoteHeight, NoteWidth, NoteX, NoteY, Occurrences, OldLocation, OldRecurrenceType, OldWhenEndWhole, OldWhenStartWhole, OnlinePassword, OptionalAttendees, OrganizerAlias, OriginalStoreEntryId, OtherAddress, OtherAddressCountryCode, OwnerCriticalChange, OwnerName, PendingStateForSiteMailboxDocument, PercentComplete, PostalAddressId, PostRssChannel, PostRssChannelLink, PostRssItemGuid, PostRssItemHash, PostRssItemLink, PostRssItemXml, PostRssSubscription, Private, PromptSendUpdate, RecurrenceDuration, RecurrencePattern, RecurrenceType, Recurring, ReferenceEntryId, ReminderDelta, ReminderFileParameter, ReminderOverride, ReminderPlaySound, ReminderSet, ReminderSignalTime, ReminderTime, ReminderTimeDate, ReminderTimeTime, ReminderType, RemoteStatus, RequiredAttendees, ResourceAttendees, ResponseStatus, ServerProcessed, ServerProcessingActions, SharingAnonymity, SharingBindingEntryId, SharingBrowseUrl, SharingCapabilities, SharingConfigurationUrl, SharingDataRangeEnd, SharingDataRangeStart, SharingDetail, SharingExtensionXml, SharingFilter, SharingFlags, SharingFlavor, SharingFolderEntryId, SharingIndexEntryId, SharingInitiatorEntryId, SharingInitiatorName, SharingInitiatorSmtp, SharingInstanceGuid, SharingLastAutoSyncTime, SharingLastSyncTime, SharingLocalComment, SharingLocalLastModificationTime, SharingLocalName, SharingLocalPath, SharingLocalStoreUid, SharingLocalType, SharingLocalUid, SharingOriginalMessageEntryId, SharingParentBindingEntryId, SharingParticipants, SharingPermissions, SharingProviderExtension, SharingProviderGuid, SharingProviderName, SharingProviderUrl, SharingRangeEnd, SharingRangeStart, SharingReciprocation, SharingRemoteByteSize, SharingRemoteComment, SharingRemoteCrc, SharingRemoteLastModificationTime, SharingRemoteMessageCount, SharingRemoteName, SharingRemotePass, SharingRemotePath, SharingRemoteStoreUid, SharingRemoteType, SharingRemoteUid, SharingRemoteUser, SharingRemoteVersion, SharingResponseTime, SharingResponseType, SharingRoamLog, SharingStart, SharingStatus, SharingStop, SharingSyncFlags, SharingSyncInterval, SharingTimeToLive, SharingTimeToLiveAuto, SharingWorkingHoursDays, SharingWorkingHoursEnd, SharingWorkingHoursStart, SharingWorkingHoursTimeZone, SideEffects, SingleBodyICal, SmartNoAttach, SpamOriginalFolder, StartRecurrenceDate, StartRecurrenceTime, TaskAcceptanceState, TaskAccepted, TaskActualEffort, TaskAssigner, TaskAssigners, TaskComplete, TaskCustomFlags, TaskDateCompleted, TaskDeadOccurrence, TaskDueDate, TaskEstimatedEffort, TaskFCreator, TaskFFixOffline, TaskFRecurring, TaskGlobalId, TaskHistory, TaskLastDelegate, TaskLastUpdate, TaskLastUser, TaskMode, TaskMultipleRecipients, TaskNoCompute, TaskOrdinal, TaskOwner, TaskOwnership, TaskRecurrence, TaskResetReminder, TaskRole, TaskStartDate, TaskState, TaskStatus, TaskStatusOnComplete, TaskUpdates, TaskVersion, TeamTask, TimeZone, TimeZoneDescription, TimeZoneStruct, ToAttendeesString, ToDoOrdinalDate, ToDoSubOrdinal, ToDoTitle, UseTnef, ValidFlagStringProof, VerbResponse, VerbStream, WeddingAnniversaryLocal, WeekInterval, Where, WorkAddress, WorkAddressCity, WorkAddressCountry, WorkAddressCountryCode, WorkAddressPostalCode, WorkAddressPostOfficeBox, WorkAddressState, WorkAddressStreet, YearInterval, YomiCompanyName, YomiFirstName, YomiLastName, AcceptLanguage, ApplicationName, AttachmentMacContentType, AttachmentMacInfo, AudioNotes, Author, AutomaticSpeechRecognitionData, ByteCount, CalendarAttendeeRole, CalendarBusystatus, CalendarContact, CalendarContactUrl, CalendarCreated, CalendarDescriptionUrl, CalendarDuration, CalendarExceptionDate, CalendarExceptionRule, CalendarGeoLatitude, CalendarGeoLongitude, CalendarInstanceType, CalendarIsOrganizer, CalendarLastModified, CalendarLocationUrl, CalendarMeetingStatus, CalendarMethod, CalendarProductId, CalendarRecurrenceIdRange, CalendarReminderOffset, CalendarResources, CalendarRsvp, CalendarSequence, CalendarTimeZone, CalendarTimeZoneId, CalendarTransparent, CalendarUid, CalendarVersion, Category, CharacterCount, Comments, Company, ContentBase, ContentClass, ContentType, CreateDateTimeReadOnly, CrossReference, DavId, DavIsCollection, DavIsStructuredDocument, DavParentName, DavUid, DocumentParts, EditTime, ExchangeIntendedBusyStatus, ExchangeJunkEmailMoveStamp, ExchangeModifyExceptionStructure, ExchangeNoModifyExceptions, ExchangePatternEnd, ExchangePatternStart, ExchangeReminderInterval, ExchDatabaseSchema, ExchDataExpectedContentClass, ExchDataSchemaCollectionReference, ExtractedAddresses, ExtractedContacts, ExtractedEmails, ExtractedMeetings, ExtractedPhones, ExtractedTasks, ExtractedUrls, From, HeadingPairs, HiddenCount, HttpmailCalendar, HttpmailHtmlDescription, HttpmailSendMessage, ICalendarRecurrenceDate, ICalendarRecurrenceRule, InternetSubject, Keywords, LastAuthor, LastPrinted, LastSaveDateTime, LineCount, LinksDirty, LocationUrl, Manager, MultimediaClipCount, NoteCount, OMSAccountGuid, OMSMobileModel, OMSScheduleTime, OMSServiceType, OMSSourceType, PageCount, ParagraphCount, PhishingStamp, PresentationFormat, QuarantineOriginalSender, RevisionNumber, RightsManagementLicense, Scale, Security, SlideCount, Subject, Template, Thumbnail, Title, WordCount, XCallId, XFaxNumberOfPages, XRequireProtectedPlayOnPhone, XSenderTelephoneNumber, XSharingBrowseUrl, XSharingCapabilities, XSharingConfigUrl, XSharingExendedCaps, XSharingFlavor, XSharingInstanceGuid, XSharingLocalType, XSharingProviderGuid, XSharingProviderName, XSharingProviderUrl, XSharingRemoteName, XSharingRemotePath, XSharingRemoteStoreUid, XSharingRemoteType, XSharingRemoteUid, XVoiceMessageAttachmentOrder, XVoiceMessageDuration, XVoiceMessageSenderName, Access, AccessControlListData, AccessLevel, Account, AdditionalRenEntryIds, AdditionalRenEntryIdsEx, AddressBookAuthorizedSenders, AddressBookContainerId, AddressBookDeliveryContentLength, AddressBookDisplayNamePrintable, AddressBookDisplayTypeExtended, AddressBookDistributionListExternalMemberCount, AddressBookDistributionListMemberCount, AddressBookDistributionListMemberSubmitAccepted, AddressBookDistributionListMemberSubmitRejected, AddressBookDistributionListRejectMessagesFromDLMembers, AddressBookEntryId, AddressBookExtensionAttribute1, AddressBookExtensionAttribute10, AddressBookExtensionAttribute11, AddressBookExtensionAttribute12, AddressBookExtensionAttribute13, AddressBookExtensionAttribute14, AddressBookExtensionAttribute15, AddressBookExtensionAttribute2, AddressBookExtensionAttribute3, AddressBookExtensionAttribute4, AddressBookExtensionAttribute5, AddressBookExtensionAttribute6, AddressBookExtensionAttribute7, AddressBookExtensionAttribute8, AddressBookExtensionAttribute9, AddressBookFolderPathname, AddressBookHierarchicalChildDepartments, AddressBookHierarchicalDepartmentMembers, AddressBookHierarchicalIsHierarchicalGroup, AddressBookHierarchicalParentDepartment, AddressBookHierarchicalRootDepartment, AddressBookHierarchicalShowInDepartments, AddressBookHomeMessageDatabase, AddressBookIsMaster, AddressBookIsMemberOfDistributionList, AddressBookManageDistributionList, AddressBookManager, AddressBookManagerDistinguishedName, AddressBookMember, AddressBookMessageId, AddressBookModerationEnabled, AddressBookNetworkAddress, AddressBookObjectDistinguishedName, AddressBookObjectGuid, AddressBookOrganizationalUnitRootDistinguishedName, AddressBookOwner, AddressBookOwnerBackLink, AddressBookParentEntryId, AddressBookPhoneticCompanyName, AddressBookPhoneticDepartmentName, AddressBookPhoneticDisplayName, AddressBookPhoneticGivenName, AddressBookPhoneticSurname, AddressBookProxyAddresses, AddressBookPublicDelegates, AddressBookReports, AddressBookRoomCapacity, AddressBookRoomContainers, AddressBookRoomDescription, AddressBookSenderHintTranslations, AddressBookSeniorityIndex, AddressBookTargetAddress, AddressBookUnauthorizedSenders, AddressBookX509Certificate, AddressType, AlternateRecipientAllowed, Anr, ArchiveDate, ArchivePeriod, ArchiveTag, Assistant, AssistantTelephoneNumber, Associated, AttachAdditionalInformation, AttachContentBase, AttachContentId, AttachContentLocation, AttachDataBinary, AttachDataObject, AttachEncoding, AttachExtension, AttachFilename, AttachFlags, AttachLongFilename, AttachLongPathname, AttachmentContactPhoto, AttachmentFlags, AttachmentHidden, AttachmentLinkId, AttachMethod, AttachMimeTag, AttachNumber, AttachPathname, AttachPayloadClass, AttachPayloadProviderGuidString, AttachRendering, AttachSize, AttachTag, AttachTransportName, AttributeHidden, AttributeReadOnly, AutoForwardComment, AutoForwarded, AutoResponseSuppress, Birthday, BlockStatus, Body, BodyContentId, BodyContentLocation, BodyHtml, Business2TelephoneNumber, Business2TelephoneNumbers, BusinessFaxNumber, BusinessHomePage, BusinessTelephoneNumber, CallbackTelephoneNumber, CallId, CarTelephoneNumber, CdoRecurrenceid, ChangeKey, ChangeNumber, ChildrensNames, ClientActions, ClientSubmitTime, CodePageId, Comment, CompanyMainTelephoneNumber, CompanyName, ComputerNetworkName, ConflictEntryId, ContainerClass, ContainerContents, ContainerFlags, ContainerHierarchy, ContentCount, ContentFilterSpamConfidenceLevel, ContentUnreadCount, ConversationId, ConversationIndex, ConversationIndexTracking, ConversationTopic, Country, CreationTime, CreatorEntryId, CreatorName, CustomerId, DamBackPatched, DamOriginalEntryId, DefaultPostMessageClass, DeferredActionMessageOriginalEntryId, DeferredDeliveryTime, DeferredSendNumber, DeferredSendTime, DeferredSendUnits, DelegatedByRule, DelegateFlags, DeleteAfterSubmit, DeletedCountTotal, DeletedOn, DeliverTime, DepartmentName, Depth, DisplayBcc, DisplayCc, DisplayName, DisplayNamePrefix, DisplayTo, DisplayType, DisplayTypeEx, EmailAddress, EndDate, EntryId, ExceptionEndTime, TagExceptionReplaceTime, ExceptionStartTime, ExchangeNTSecurityDescriptor, ExpiryNumber, ExpiryTime, ExpiryUnits, ExtendedFolderFlags, ExtendedRuleMessageActions, ExtendedRuleMessageCondition, ExtendedRuleSizeLimit, FaxNumberOfPages, FlagCompleteTime, FlagStatus, FlatUrlName, FolderAssociatedContents, FolderId, FolderFlags, FolderType, FollowupIcon, FreeBusyCountMonths, FreeBusyEntryIds, FreeBusyMessageEmailAddress, FreeBusyPublishEnd, FreeBusyPublishStart, FreeBusyRangeTimestamp, FtpSite, GatewayNeedsToRefresh, Gender, Generation, GivenName, GovernmentIdNumber, HasAttachments, HasDeferredActionMessages, HasNamedProperties, HasRules, HierarchyChangeNumber, HierRev, Hobbies, Home2TelephoneNumber, Home2TelephoneNumbers, HomeAddressCity, HomeAddressCountry, HomeAddressPostalCode, HomeAddressPostOfficeBox, HomeAddressStateOrProvince, HomeAddressStreet, HomeFaxNumber, HomeTelephoneNumber, TagHtml, ICalendarEndTime, ICalendarReminderNextTime, ICalendarStartTime, IconIndex, Importance, InConflict, InitialDetailsPane, Initials, InReplyToId, InstanceKey, InstanceNum, InstID, InternetCodepage, InternetMailOverrideFormat, InternetMessageId, InternetReferences, IpmAppointmentEntryId, IpmContactEntryId, IpmDraftsEntryId, IpmJournalEntryId, IpmNoteEntryId, IpmTaskEntryId, IsdnNumber, JunkAddRecipientsToSafeSendersList, JunkIncludeContacts, JunkPermanentlyDelete, JunkPhishingEnableLinks, JunkThreshold, Keyword, Language, LastModificationTime, LastModifierEntryId, LastModifierName, LastVerbExecuted, LastVerbExecutionTime, ListHelp, ListSubscribe, ListUnsubscribe, LocalCommitTime, LocalCommitTimeMax, LocaleId, Locality, TagLocation, MailboxOwnerEntryId, MailboxOwnerName, ManagerName, MappingSignature, MaximumSubmitMessageSize, MemberId, MemberName, MemberRights, MessageAttachments, MessageCcMe, MessageClass, MessageCodepage, MessageDeliveryTime, MessageEditorFormat, MessageFlags, MessageHandlingSystemCommonName, MessageLocaleId, MessageRecipientMe, MessageRecipients, MessageSize, MessageSizeExtended, MessageStatus, MessageSubmissionId, MessageToMe, Mid, MiddleName, MimeSkeleton, MobileTelephoneNumber, NativeBody, NextSendAcct, Nickname, NonDeliveryReportDiagCode, NonDeliveryReportReasonCode, NonDeliveryReportStatusCode, NonReceiptNotificationRequested, NormalizedSubject, ObjectType, OfficeLocation, OfflineAddressBookContainerGuid, OfflineAddressBookDistinguishedName, OfflineAddressBookMessageClass, OfflineAddressBookName, OfflineAddressBookSequence, OfflineAddressBookTruncatedProperties, OrdinalMost, OrganizationalIdNumber, OriginalAuthorEntryId, OriginalAuthorName, OriginalDeliveryTime, OriginalDisplayBcc, OriginalDisplayCc, OriginalDisplayTo, OriginalEntryId, OriginalMessageClass, OriginalMessageId, OriginalSenderAddressType, OriginalSenderEmailAddress, OriginalSenderEntryId, OriginalSenderName, OriginalSenderSearchKey, OriginalSensitivity, OriginalSentRepresentingAddressType, OriginalSentRepresentingEmailAddress, OriginalSentRepresentingEntryId, OriginalSentRepresentingName, OriginalSentRepresentingSearchKey, OriginalSubject, OriginalSubmitTime, OriginatorDeliveryReportRequested, OriginatorNonDeliveryReportRequested, OscSyncEnabled, OtherAddressCity, OtherAddressCountry, OtherAddressPostalCode, OtherAddressPostOfficeBox, OtherAddressStateOrProvince, OtherAddressStreet, OtherTelephoneNumber, OutOfOfficeState, OwnerAppointmentId, PagerTelephoneNumber, ParentEntryId, ParentFolderId, ParentKey, ParentSourceKey, PersonalHomePage, PolicyTag, PostalAddress, PostalCode, PostOfficeBox, PredecessorChangeList, PrimaryFaxNumber, PrimarySendAccount, PrimaryTelephoneNumber, Priority, Processed, Profession, ProhibitReceiveQuota, ProhibitSendQuota, PurportedSenderDomain, RadioTelephoneNumber, Read, ReadReceiptAddressType, ReadReceiptEmailAddress, ReadReceiptEntryId, ReadReceiptName, ReadReceiptRequested, ReadReceiptSearchKey, ReadReceiptSmtpAddress, ReceiptTime, ReceivedByAddressType, ReceivedByEmailAddress, ReceivedByEntryId, ReceivedByName, ReceivedBySearchKey, ReceivedBySmtpAddress, ReceivedRepresentingAddressType, ReceivedRepresentingEmailAddress, ReceivedRepresentingEntryId, ReceivedRepresentingName, ReceivedRepresentingSearchKey, ReceivedRepresentingSmtpAddress, RecipientDisplayName, RecipientEntryId, RecipientFlags, RecipientOrder, RecipientProposed, RecipientProposedEndTime, RecipientProposedStartTime, RecipientReassignmentProhibited, RecipientTrackStatus, RecipientTrackStatusTime, RecipientType, RecordKey, ReferredByName, RemindersOnlineEntryId, RemoteMessageTransferAgent, RenderingPosition, ReplyRecipientEntries, ReplyRecipientNames, ReplyRequested, ReplyTemplateId, ReplyTime, ReportDisposition, ReportDispositionMode, ReportEntryId, ReportingMessageTransferAgent, ReportName, ReportSearchKey, ReportTag, ReportText, ReportTime, ResolveMethod, ResponseRequested, Responsibility, RetentionDate, RetentionFlags, RetentionPeriod, Rights, RoamingDatatypes, RoamingDictionary, RoamingXmlStream, Rowid, RowType, RtfCompressed, RtfInSync, RuleActionNumber, RuleActions, RuleActionType, RuleCondition, RuleError, RuleFolderEntryId, RuleId, RuleIds, RuleLevel, RuleMessageLevel, RuleMessageName, RuleMessageProvider, RuleMessageProviderData, RuleMessageSequence, RuleMessageState, RuleMessageUserFlags, RuleName, RuleProvider, RuleProviderData, RuleSequence, RuleState, RuleUserFlags, RwRulesStream, ScheduleInfoAppointmentTombstone, ScheduleInfoAutoAcceptAppointments, ScheduleInfoDelegateEntryIds, ScheduleInfoDelegateNames, ScheduleInfoDelegateNamesW, ScheduleInfoDelegatorWantsCopy, ScheduleInfoDelegatorWantsInfo, ScheduleInfoDisallowOverlappingAppts, ScheduleInfoDisallowRecurringAppts, ScheduleInfoDontMailDelegates, ScheduleInfoFreeBusy, ScheduleInfoFreeBusyAway, ScheduleInfoFreeBusyBusy, ScheduleInfoFreeBusyMerged, ScheduleInfoFreeBusyTentative, ScheduleInfoMonthsAway, ScheduleInfoMonthsBusy, ScheduleInfoMonthsMerged, ScheduleInfoMonthsTentative, ScheduleInfoResourceType, SchedulePlusFreeBusyEntryId, ScriptData, SearchFolderDefinition, SearchFolderEfpFlags, SearchFolderExpiration, SearchFolderId, SearchFolderLastUsed, SearchFolderRecreateInfo, SearchFolderStorageType, SearchFolderTag, SearchFolderTemplateId, SearchKey, SecurityDescriptorAsXml, Selectable, SenderAddressType, SenderEmailAddress, SenderEntryId, SenderIdStatus, SenderName, SenderSearchKey, SenderSmtpAddress, SenderTelephoneNumber, SendInternetEncoding, SendRichInfo, Sensitivity, SentMailSvrEID, SentRepresentingAddressType, SentRepresentingEmailAddress, SentRepresentingEntryId, SentRepresentingFlags, SentRepresentingName, SentRepresentingSearchKey, SentRepresentingSmtpAddress, SmtpAddress, SortLocaleId, SourceKey, SpokenName, SpouseName, StartDate, StartDateEtc, StateOrProvince, StoreEntryId, StoreState, StoreSupportMask, StreetAddress, Subfolders, TagSubject, SubjectPrefix, SupplementaryInfo, Surname, SwappedToDoData, SwappedToDoStore, TargetEntryId, TelecommunicationsDeviceForDeafTelephoneNumber, TelexNumber, TemplateData, Templateid, TextAttachmentCharset, ThumbnailPhoto, TagTitle, TnefCorrelationKey, ToDoItemFlags, TransmittableDisplayName, TransportMessageHeaders, TrustSender, UserCertificate, UserEntryId, UserX509Certificate, ViewDescriptorBinary, ViewDescriptorName, ViewDescriptorStrings, ViewDescriptorVersion, VoiceMessageAttachmentOrder, VoiceMessageDuration, VoiceMessageSenderName, WeddingAnniversary, WlinkAddressBookEID, WlinkAddressBookStoreEID, WlinkCalendarColor, WlinkClientID, WlinkEntryId, WlinkFlags, WlinkFolderType, WlinkGroupClsid, WlinkGroupHeaderID, WlinkGroupName, WlinkOrdinal, WlinkRecordKey, WlinkROGroupType, WlinkSaveStamp, WlinkSection, WlinkStoreEntryId, WlinkType, Abstract, ActiveUserEntryid, AddrbookForLocalSiteEntryid, AddressBookDisplayName, ArrivalTime, AssocMessageSize, AssocMessageSizeExtended, AssocMsgWAttachCount, AttachOnAssocMsgCount, AttachOnNormalMsgCount, AutoAddNewSubs, BilateralInfo, CachedColumnCount, CategCount, ChangeAdvisor, ChangeNotificationGuid, Collector, ContactCount, ContentSearchKey, ContentsSynchronizer, DeletedAssocMessageSizeExtended, DeletedAssocMsgCount, DeletedFolderCount, DeletedMessageSizeExtended, DeletedMsgCount, DeletedNormalMessageSizeExtended, DesignInProgress, DisableFullFidelity, DisableWinsock, DlReportFlags, EformsForLocaleEntryid, EformsLocaleId, EformsRegistryEntryid, EmsAbAccessCategory, EmsAbActivationSchedule, EmsAbActivationStyle, EmsAbAddressEntryDisplayTable, EmsAbAddressEntryDisplayTableMsdos, EmsAbAddressSyntax, EmsAbAddressType, EmsAbAdmd, EmsAbAdminDescription, EmsAbAdminDisplayName, EmsAbAdminExtensionDll, EmsAbAliasedObjectName, EmsAbAliasedObjectNameO, EmsAbAltRecipient, EmsAbAltRecipientBl, EmsAbAltRecipientBlO, EmsAbAltRecipientO, EmsAbAncestorId, EmsAbAnonymousAccess, EmsAbAnonymousAccount, EmsAbAssocNtAccount, EmsAbAssocProtocolCfgNntp, EmsAbAssocProtocolCfgNntpO, EmsAbAssocRemoteDxa, EmsAbAssocRemoteDxaO, EmsAbAssociationLifetime, EmsAbAttributeCertificate, EmsAbAuthOrigBl, EmsAbAuthOrigBlO, EmsAbAuthenticationToUse, EmsAbAuthorityRevocationList, EmsAbAuthorizedDomain, EmsAbAuthorizedPassword, EmsAbAuthorizedPasswordConfirm, EmsAbAuthorizedUser, EmsAbAutoreply, EmsAbAutoreplyMessage, EmsAbAutoreplySubject, EmsAbAvailableAuthorizationPackages, EmsAbAvailableDistributions, EmsAbBridgeheadServers, EmsAbBridgeheadServersO, EmsAbBusinessCategory, EmsAbBusinessRoles, EmsAbCaCertificate, EmsAbCanCreatePf, EmsAbCanCreatePfBl, EmsAbCanCreatePfBlO, EmsAbCanCreatePfDl, EmsAbCanCreatePfDlBl, EmsAbCanCreatePfDlBlO, EmsAbCanCreatePfDlO, EmsAbCanCreatePfO, EmsAbCanNotCreatePf, EmsAbCanNotCreatePfBl, EmsAbCanNotCreatePfBlO, EmsAbCanNotCreatePfDl, EmsAbCanNotCreatePfDlBl, EmsAbCanNotCreatePfDlBlO, EmsAbCanNotCreatePfDlO, EmsAbCanNotCreatePfO, EmsAbCanPreserveDns, EmsAbCertificateChainV3, EmsAbCertificateRevocationList, EmsAbCertificateRevocationListV1, EmsAbCertificateRevocationListV3, EmsAbCharacterSet, EmsAbCharacterSetList, EmsAbChildRdns, EmsAbClientAccessEnabled, EmsAbClockAlertOffset, EmsAbClockAlertRepair, EmsAbClockWarningOffset, EmsAbClockWarningRepair, EmsAbCompromisedKeyList, EmsAbComputerName, EmsAbConnectedDomains, EmsAbConnectionListFilter, EmsAbConnectionListFilterType, EmsAbConnectionType, EmsAbContainerInfo, EmsAbContentType, EmsAbControlMsgFolderId, EmsAbControlMsgRules, EmsAbCost, EmsAbCountryName, EmsAbCrossCertificateCrl, EmsAbCrossCertificatePair, EmsAbDefaultMessageFormat, EmsAbDelegateUser, EmsAbDelivEits, EmsAbDelivExtContTypes, EmsAbDeliverAndRedirect, EmsAbDeliveryMechanism, EmsAbDeltaRevocationList, EmsAbDescription, EmsAbDestinationIndicator, EmsAbDiagnosticRegKey, EmsAbDisableDeferredCommit, EmsAbDisabledGatewayProxy, EmsAbDisplayNameOverride, EmsAbDisplayNameSuffix, EmsAbDlMemRejectPermsBl, EmsAbDlMemRejectPermsBlO, EmsAbDlMemberRule, EmsAbDmdName, EmsAbDoOabVersion, EmsAbDomainDefAltRecip, EmsAbDomainDefAltRecipO, EmsAbDomainName, EmsAbDsaSignature, EmsAbDxaAdminCopy, EmsAbDxaAdminForward, EmsAbDxaAdminUpdate, EmsAbDxaAppendReqcn, EmsAbDxaConfContainerList, EmsAbDxaConfContainerListO, EmsAbDxaConfReqTime, EmsAbDxaConfSeq, EmsAbDxaConfSeqUsn, EmsAbDxaExchangeOptions, EmsAbDxaExportNow, EmsAbDxaFlags, EmsAbDxaImpSeq, EmsAbDxaImpSeqTime, EmsAbDxaImpSeqUsn, EmsAbDxaImportNow, EmsAbDxaInTemplateMap, EmsAbDxaLocalAdmin, EmsAbDxaLocalAdminO, EmsAbDxaLoggingLevel, EmsAbDxaNativeAddressType, EmsAbDxaOutTemplateMap, EmsAbDxaPassword, EmsAbDxaPrevExchangeOptions, EmsAbDxaPrevExportNativeOnly, EmsAbDxaPrevInExchangeSensitivity, EmsAbDxaPrevRemoteEntries, EmsAbDxaPrevRemoteEntriesO, EmsAbDxaPrevReplicationSensitivity, EmsAbDxaPrevTemplateOptions, EmsAbDxaPrevTypes, EmsAbDxaRecipientCp, EmsAbDxaRemoteClient, EmsAbDxaRemoteClientO, EmsAbDxaReqSeq, EmsAbDxaReqSeqTime, EmsAbDxaReqSeqUsn, EmsAbDxaReqname, EmsAbDxaSvrSeq, EmsAbDxaSvrSeqTime, EmsAbDxaSvrSeqUsn, EmsAbDxaTask, EmsAbDxaTemplateOptions, EmsAbDxaTemplateTimestamp, EmsAbDxaTypes, EmsAbDxaUnconfContainerList, EmsAbDxaUnconfContainerListO, EmsAbEmployeeNumber, EmsAbEmployeeType, EmsAbEnableCompatibility, EmsAbEnabled, EmsAbEnabledAuthorizationPackages, EmsAbEnabledProtocolCfg, EmsAbEnabledProtocols, EmsAbEncapsulationMethod, EmsAbEncrypt, EmsAbEncryptAlgListNa, EmsAbEncryptAlgListOther, EmsAbEncryptAlgSelectedNa, EmsAbEncryptAlgSelectedOther, EmsAbExpandDlsLocally, EmsAbExpirationTime, EmsAbExportContainers, EmsAbExportContainersO, EmsAbExportCustomRecipients, EmsAbExtendedCharsAllowed, EmsAbExtensionData, EmsAbExtensionName, EmsAbExtensionNameInherited, EmsAbFacsimileTelephoneNumber, EmsAbFileVersion, EmsAbFilterLocalAddresses, EmsAbFoldersContainer, EmsAbFoldersContainerO, EmsAbFormData, EmsAbForwardingAddress, EmsAbGarbageCollPeriod, EmsAbGatewayLocalCred, EmsAbGatewayLocalDesig, EmsAbGatewayProxy, EmsAbGatewayRoutingTree, EmsAbGenerationQualifier, EmsAbGroupByAttr1, EmsAbGroupByAttr2, EmsAbGroupByAttr3, EmsAbGroupByAttr4, EmsAbGroupByAttrValueDn, EmsAbGroupByAttrValueDnO, EmsAbGroupByAttrValueStr, EmsAbGwartLastModified, EmsAbHasFullReplicaNcs, EmsAbHasFullReplicaNcsO, EmsAbHasMasterNcs, EmsAbHasMasterNcsO, EmsAbHelpData16, EmsAbHelpData32, EmsAbHelpFileName, EmsAbHeuristics, EmsAbHideDlMembership, EmsAbHideFromAddressBook, EmsAbHierarchyPath, EmsAbHomeMdbBl, EmsAbHomeMdbBlO, EmsAbHomeMta, EmsAbHomeMtaO, EmsAbHomePublicServer, EmsAbHomePublicServerO, EmsAbHouseIdentifier, EmsAbHttpPubAbAttributes, EmsAbHttpPubGal, EmsAbHttpPubGalLimit, EmsAbHttpPubPf, EmsAbHttpServers, EmsAbImportContainer, EmsAbImportContainerO, EmsAbImportSensitivity, EmsAbImportedFrom, EmsAbInboundAcceptAll, EmsAbInboundDn, EmsAbInboundDnO, EmsAbInboundHost, EmsAbInboundNewsfeed, EmsAbInboundNewsfeedType, EmsAbInboundSites, EmsAbInboundSitesO, EmsAbIncomingMsgSizeLimit, EmsAbIncomingPassword, EmsAbInsadmin, EmsAbInsadminO, EmsAbInstanceType, EmsAbInternationalIsdnNumber, EmsAbInvocationId, EmsAbIsDeleted, EmsAbIsSingleValued, EmsAbKccStatus, EmsAbKmServer, EmsAbKmServerO, EmsAbKnowledgeInformation, EmsAbLabeleduri, EmsAbLanguage, EmsAbLanguageIso639, EmsAbLdapDisplayName, EmsAbLdapSearchCfg, EmsAbLineWrap, EmsAbLinkId, EmsAbListPublicFolders, EmsAbLocalBridgeHead, EmsAbLocalBridgeHeadAddress, EmsAbLocalInitialTurn, EmsAbLocalScope, EmsAbLocalScopeO, EmsAbLogFilename, EmsAbLogRolloverInterval, EmsAbMailDrop, EmsAbMaintainAutoreplyHistory, EmsAbMapiDisplayType, EmsAbMapiId, EmsAbMaximumObjectId, EmsAbMdbBackoffInterval, EmsAbMdbMsgTimeOutPeriod, EmsAbMdbOverQuotaLimit, EmsAbMdbStorageQuota, EmsAbMdbUnreadLimit, EmsAbMdbUseDefaults, EmsAbMessageTrackingEnabled, EmsAbMimeTypes, EmsAbModerated, EmsAbModerator, EmsAbMonitorClock, EmsAbMonitorServers, EmsAbMonitorServices, EmsAbMonitoredConfigurations, EmsAbMonitoredConfigurationsO, EmsAbMonitoredServers, EmsAbMonitoredServersO, EmsAbMonitoredServices, EmsAbMonitoringAlertDelay, EmsAbMonitoringAlertUnits, EmsAbMonitoringAvailabilityStyle, EmsAbMonitoringAvailabilityWindow, EmsAbMonitoringCachedViaMail, EmsAbMonitoringCachedViaMailO, EmsAbMonitoringCachedViaRpc, EmsAbMonitoringCachedViaRpcO, EmsAbMonitoringEscalationProcedure, EmsAbMonitoringHotsitePollInterval, EmsAbMonitoringHotsitePollUnits, EmsAbMonitoringMailUpdateInterval, EmsAbMonitoringMailUpdateUnits, EmsAbMonitoringNormalPollInterval, EmsAbMonitoringNormalPollUnits, EmsAbMonitoringRecipients, EmsAbMonitoringRecipientsNdr, EmsAbMonitoringRecipientsNdrO, EmsAbMonitoringRecipientsO, EmsAbMonitoringRpcUpdateInterval, EmsAbMonitoringRpcUpdateUnits, EmsAbMonitoringWarningDelay, EmsAbMonitoringWarningUnits, EmsAbMtaLocalCred, EmsAbMtaLocalDesig, EmsAbNAddress, EmsAbNAddressType, EmsAbNewsfeedType, EmsAbNewsgroup, EmsAbNewsgroupList, EmsAbNntpCharacterSet, EmsAbNntpContentFormat, EmsAbNntpDistributions, EmsAbNntpDistributionsFlag, EmsAbNntpNewsfeeds, EmsAbNntpNewsfeedsO, EmsAbNtMachineName, EmsAbNtSecurityDescriptor, EmsAbNumOfOpenRetries, EmsAbNumOfTransferRetries, EmsAbObjViewContainers, EmsAbObjViewContainersO, EmsAbObjectClassCategory, EmsAbObjectOid, EmsAbObjectVersion, EmsAbOffLineAbContainers, EmsAbOffLineAbContainersO, EmsAbOffLineAbSchedule, EmsAbOffLineAbServer, EmsAbOffLineAbServerO, EmsAbOffLineAbStyle, EmsAbOidType, EmsAbOmObjectClass, EmsAbOmSyntax, EmsAbOofReplyToOriginator, EmsAbOpenRetryInterval, EmsAbOrganizationName, EmsAbOrganizationalUnitName, EmsAbOriginalDisplayTable, EmsAbOriginalDisplayTableMsdos, EmsAbOtherRecips, EmsAbOutboundHost, EmsAbOutboundHostType, EmsAbOutboundNewsfeed, EmsAbOutboundSites, EmsAbOutboundSitesO, EmsAbOutgoingMsgSizeLimit, EmsAbOverrideNntpContentFormat, EmsAbOwaServer, EmsAbPSelector, EmsAbPSelectorInbound, EmsAbPerMsgDialogDisplayTable, EmsAbPerRecipDialogDisplayTable, EmsAbPeriodRepSyncTimes, EmsAbPeriodReplStagger, EmsAbPersonalTitle, EmsAbPfContacts, EmsAbPfContactsO, EmsAbPopCharacterSet, EmsAbPopContentFormat, EmsAbPortNumber, EmsAbPostalAddress, EmsAbPreferredDeliveryMethod, EmsAbPreserveInternetContent, EmsAbPrmd, EmsAbPromoExpiration, EmsAbProtocolSettings, EmsAbProxyGenerationEnabled, EmsAbProxyGeneratorDll, EmsAbPublicDelegatesBl, EmsAbPublicDelegatesBlO, EmsAbQuotaNotificationSchedule, EmsAbQuotaNotificationStyle, EmsAbRangeLower, EmsAbRangeUpper, EmsAbRasAccount, EmsAbRasCallbackNumber, EmsAbRasPassword, EmsAbRasPhoneNumber, EmsAbRasPhonebookEntryName, EmsAbRasRemoteSrvrName, EmsAbReferralList, EmsAbRegisteredAddress, EmsAbRemoteBridgeHead, EmsAbRemoteBridgeHeadAddress, EmsAbRemoteOutBhServer, EmsAbRemoteOutBhServerO, EmsAbRemoteSite, EmsAbRemoteSiteO, EmsAbReplicatedObjectVersion, EmsAbReplicationMailMsgSize, EmsAbReplicationSensitivity, EmsAbReplicationStagger, EmsAbReportToOriginator, EmsAbReportToOwner, EmsAbReqSeq, EmsAbRequireSsl, EmsAbResponsibleLocalDxa, EmsAbResponsibleLocalDxaO, EmsAbReturnExactMsgSize, EmsAbRidServer, EmsAbRidServerO, EmsAbRoleOccupant, EmsAbRoleOccupantO, EmsAbRootNewsgroupsFolderId, EmsAbRoutingList, EmsAbRtsCheckpointSize, EmsAbRtsRecoveryTimeout, EmsAbRtsWindowSize, EmsAbRunsOn, EmsAbRunsOnO, EmsAbSSelector, EmsAbSSelectorInbound, EmsAbSchemaFlags, EmsAbSchemaVersion, EmsAbSearchFlags, EmsAbSearchGuide, EmsAbSecurityPolicy, EmsAbSecurityProtocol, EmsAbSeeAlso, EmsAbSeeAlsoO, EmsAbSendEmailMessage, EmsAbSendTnef, EmsAbSerialNumber, EmsAbServer, EmsAbServiceActionFirst, EmsAbServiceActionOther, EmsAbServiceActionSecond, EmsAbServiceRestartDelay, EmsAbServiceRestartMessage, EmsAbSessionDisconnectTimer, EmsAbSiteAffinity, EmsAbSiteFolderGuid, EmsAbSiteFolderServer, EmsAbSiteFolderServerO, EmsAbSiteProxySpace, EmsAbSmimeAlgListNa, EmsAbSmimeAlgListOther, EmsAbSmimeAlgSelectedNa, EmsAbSmimeAlgSelectedOther, EmsAbSpaceLastComputed, EmsAbStreetAddress, EmsAbSubRefs, EmsAbSubRefsO, EmsAbSubSite, EmsAbSubmissionContLength, EmsAbSupportSmimeSignatures, EmsAbSupportedAlgorithms, EmsAbSupportedApplicationContext, EmsAbSupportingStack, EmsAbSupportingStackBl, EmsAbSupportingStackBlO, EmsAbSupportingStackO, EmsAbTSelector, EmsAbTSelectorInbound, EmsAbTargetMtas, EmsAbTelephoneNumber, EmsAbTelephonePersonalPager, EmsAbTeletexTerminalIdentifier, EmsAbTempAssocThreshold, EmsAbTombstoneLifetime, EmsAbTrackingLogPathName, EmsAbTransRetryMins, EmsAbTransTimeoutMins, EmsAbTransferRetryInterval, EmsAbTransferTimeoutNonUrgent, EmsAbTransferTimeoutNormal, EmsAbTransferTimeoutUrgent, EmsAbTranslationTableUsed, EmsAbTransportExpeditedData, EmsAbTrustLevel, EmsAbTurnRequestThreshold, EmsAbTwoWayAlternateFacility, EmsAbType, EmsAbUnauthOrigBl, EmsAbUnauthOrigBlO, EmsAbUseServerValues, EmsAbUseSiteValues, EmsAbUsenetSiteName, EmsAbUserPassword, EmsAbUsnChanged, EmsAbUsnCreated, EmsAbUsnDsaLastObjRemoved, EmsAbUsnIntersite, EmsAbUsnLastObjRem, EmsAbUsnSource, EmsAbViewContainer1, EmsAbViewContainer2, EmsAbViewContainer3, EmsAbViewDefinition, EmsAbViewFlags, EmsAbViewSite, EmsAbVoiceMailFlags, EmsAbVoiceMailGreetings, EmsAbVoiceMailPassword, EmsAbVoiceMailRecordedName, EmsAbVoiceMailRecordingLength, EmsAbVoiceMailSpeed, EmsAbVoiceMailSystemGuid, EmsAbVoiceMailUserId, EmsAbVoiceMailVolume, EmsAbWwwHomePage, EmsAbX121Address, EmsAbX25CallUserDataIncoming, EmsAbX25CallUserDataOutgoing, EmsAbX25FacilitiesDataIncoming, EmsAbX25FacilitiesDataOutgoing, EmsAbX25LeasedLinePort, EmsAbX25LeasedOrSwitched, EmsAbX25RemoteMtaPhone, EmsAbX400AttachmentType, EmsAbX400SelectorSyntax, EmsAbX500AccessControlList, EmsAbX500Nc, EmsAbX500Rdn, EmsAbXmitTimeoutNonUrgent, EmsAbXmitTimeoutNormal, EmsAbXmitTimeoutUrgent, EventsRootFolderEntryid, ExcessStorageUsed, ExtendedAclData, FastTransfer, FavoritesDefaultName, FolderChildCount, FolderDesignFlags, FolderPathname, ForeignId, ForeignReportId, ForeignSubjectId, FreeBusyForLocalSiteEntryid, GwAdminOperations, GwMtsinEntryid, GwMtsoutEntryid, HasModeratorRules, HierarchyServer, HierarchySynchronizer, ImapInternalDate, InTransit, InboundNewsfeedDn, InternetCharset, InternetNewsgroupName, IpmDafEntryid, IpmFavoritesEntryid, IpmPublicFoldersEntryid, IsNewsgroup, IsNewsgroupAnchor, LastAccessTime, LastFullBackup, LastLogoffTime, LastLogonTime, LongtermEntryidFromTable, MessageProcessed, MessageSiteName, MoveToFolderEntryid, MoveToStoreEntryid, MsgBodyId, MtsSubjectId, NewSubsGetAutoAdd, NewsfeedInfo, NewsgroupComponent, NewsgroupRootFolderEntryid, NntpArticleFolderEntryid, NntpControlFolderEntryid, NonIpmSubtreeEntryid, NormalMessageSize, NormalMessageSizeExtended, NormalMsgWAttachCount, NtUserName, OfflineAddrbookEntryid, OfflineFlags, OfflineMessageEntryid, OldestDeletedOn, OriginatorAddr, OriginatorAddrtype, OriginatorEntryid, OriginatorName, OstEncryption, OutboundNewsfeedDn, OverallAgeLimit, OverallMsgAgeLimit, OwaUrl, OwnerCount, P1Content, P1ContentType, PreventMsgCreate, Preview, PreviewUnread, ProfileAbFilesPath, ProfileAddrInfo, ProfileAllpubComment, ProfileAllpubDisplayName, ProfileBindingOrder, ProfileConfigFlags, ProfileConnectFlags, ProfileFavfldComment, ProfileFavfldDisplayName, ProfileHomeServer, ProfileHomeServerAddrs, ProfileHomeServerDn, ProfileMailbox, ProfileMaxRestrict, ProfileMoab, ProfileMoabGuid, ProfileMoabSeq, ProfileOfflineInfo, ProfileOfflineStorePath, ProfileOpenFlags, ProfileOptionsData, ProfileSecureMailbox, ProfileServer, ProfileServerDn, ProfileTransportFlags, ProfileType, ProfileUiState, ProfileUnresolvedName, ProfileUnresolvedServer, ProfileUser, ProfileVersion, PstEncryption, PstPath, PstPwSzOld, PstRememberPw, PublicFolderEntryid, PublishInAddressBook, RecipientNumber, RecipientOnAssocMsgCount, RecipientOnNormalMsgCount, ReplicaList, ReplicaServer, ReplicaVersion, ReplicationAlwaysInterval, ReplicationMessagePriority, ReplicationMsgSize, ReplicationSchedule, ReplicationStyle, ReplyRecipientSmtpProxies, ReportDestinationEntryid, ReportDestinationName, RestrictionCount, RetentionAgeLimit, RuleTriggerHistory, RulesData, RulesTable, ScheduleFolderEntryid, SecureInSite, SecureOrigination, StorageLimitInformation, StorageQuotaLimit, StoreOffline, StoreSlowlink, SubjectTraceInfo, SvrGeneratingQuotaMsg, SynchronizeFlags, SysConfigFolderEntryid, TestLineSpeed, TraceInfo, TransferEnabled, UserName, X400EnvelopeType, AbDefaultDir, AbDefaultPab, AbProviderId, AbProviders, AbSearchPath, AbSearchPathUpdate, AlternateRecipient, AssocContentCount, AttachmentX400Parameters, AuthorizingUsers, BodyCrc, CommonViewsEntryid, ContactAddrtypes, ContactDefaultAddressIndex, ContactEmailAddresses, ContactEntryids, ContactVersion, ContainerModifyVersion, ContentConfidentialityAlgorithmId, ContentCorrelator, ContentIdentifier, ContentIntegrityCheck, ContentLength, ContentReturnRequested, ContentsSortOrder, ControlFlags, ControlId, ControlStructure, ControlType, ConversationKey, ConversionEits, ConversionProhibited, ConversionWithLossProhibited, ConvertedEits, Correlate, CorrelateMtsid, CreateTemplates, CreationVersion, ExCurrentVersion, DefCreateDl, DefCreateMailuser, DefaultProfile, DefaultStore, DefaultViewEntryid, Delegation, DeliveryPoint, Deltax, Deltay, DetailsTable, DiscVal, DiscardReason, DiscloseRecipients, DisclosureOfRecipients, DiscreteValues, DlExpansionHistory, DlExpansionProhibited, ExplicitConversion, FilteringHooks, FinderEntryid, FormCategory, FormCategorySub, FormClsid, FormContactName, FormDesignerGuid, FormDesignerName, FormHidden, FormHostMap, FormMessageBehavior, FormVersion, HeaderFolderEntryid, Icon, IdentityDisplay, IdentityEntryid, IdentitySearchKey, ImplicitConversionProhibited, IncompleteCopy, InternetApproved, InternetArticleNumber, InternetControl, InternetDistribution, InternetFollowupTo, InternetLines, InternetNewsgroups, InternetNntpPath, InternetOrganization, InternetPrecedence, IpmId, IpmOutboxEntryid, IpmOutboxSearchKey, IpmReturnRequested, IpmSentmailEntryid, IpmSentmailSearchKey, IpmSubtreeEntryid, IpmSubtreeSearchKey, IpmWastebasketEntryid, IpmWastebasketSearchKey, Languages, LatestDeliveryTime, MailPermission, MdbProvider, MessageDeliveryId, MessageDownloadTime, MessageSecurityLabel, MessageToken, MiniIcon, ModifyVersion, NewsgroupName, NntpXref, NonReceiptReason, ObsoletedIpms, OriginCheck, OriginalAuthorAddrtype, OriginalAuthorEmailAddress, OriginalAuthorSearchKey, OriginalDisplayName, OriginalEits, OriginalSearchKey, OriginallyIntendedRecipAddrtype, OriginallyIntendedRecipEmailAddress, OriginallyIntendedRecipEntryid, OriginallyIntendedRecipientName, OriginatingMtaCertificate, OriginatorAndDlExpansionHistory, OriginatorCertificate, OriginatorRequestedAlternateRecipient, OriginatorReturnAddress, OwnStoreEntryid, ParentDisplay, PhysicalDeliveryBureauFaxDelivery, PhysicalDeliveryMode, PhysicalDeliveryReportRequest, PhysicalForwardingAddress, PhysicalForwardingAddressRequested, PhysicalForwardingProhibited, PhysicalRenditionAttributes, PostFolderEntries, PostFolderNames, PostReplyDenied, PostReplyFolderEntries, PostReplyFolderNames, Preprocess, PrimaryCapability, ProfileName, ProofOfDelivery, ProofOfDeliveryRequested, ProofOfSubmission, ProofOfSubmissionRequested, ProviderDisplay, ProviderDllName, ProviderOrdinal, ProviderSubmitTime, ProviderUid, ReceiveFolderSettings, RecipientCertificate, RecipientNumberForAdvice, RecipientStatus, RedirectionHistory, RegisteredMailType, RelatedIpms, RemoteProgress, RemoteProgressText, RemoteValidateOk, ReportingDlName, ReportingMtaCertificate, RequestedDeliveryMethod, ResourceFlags, ResourceMethods, ResourcePath, ResourceType, ReturnedIpm, RtfSyncBodyCount, RtfSyncBodyCrc, RtfSyncBodyTag, RtfSyncPrefixCount, RtfSyncTrailingCount, Search, ExSecurity, SentmailEntryid, ServiceDeleteFiles, ServiceDllName, ServiceEntryName, ServiceExtraUids, ServiceName, ServiceSupportFiles, ServiceUid, Services, SpoolerStatus, Status, StatusCode, StatusString, StoreProviders, StoreRecordKey, SubjectIpm, SubmitFlags, Supersedes, TransportKey, TransportProviders, TransportStatus, TypeOfMtsUser, ValidFolderMask, ViewsEntryid, X400ContentType, X400DeferredDeliveryCancel, Xpos, Ypos + :param name: Known property name. See all known properties here: https://apireference.aspose.com/email/net/aspose.email.mapi/knownpropertylist/fields/index Possible values: Mileage, ObjectUri, GDataContactVersion, GDataPhotoVersion, AddressBookProviderArrayType, AddressBookProviderEmailList, AddressCountryCode, AgingDontAgeMe, AllAttendeesString, AllowExternalCheck, AnniversaryEventEntryId, AppointmentAuxiliaryFlags, AppointmentColor, AppointmentCounterProposal, AppointmentDuration, AppointmentEndDate, AppointmentEndTime, AppointmentEndWhole, AppointmentLastSequence, AppointmentMessageClass, AppointmentNotAllowPropose, AppointmentProposalNumber, AppointmentProposedDuration, AppointmentProposedEndWhole, AppointmentProposedStartWhole, AppointmentRecur, AppointmentReplyName, AppointmentReplyTime, AppointmentSequence, AppointmentSequenceTime, AppointmentStartDate, AppointmentStartTime, AppointmentStartWhole, AppointmentStateFlags, AppointmentSubType, AppointmentTimeZoneDefinitionEndDisplay, AppointmentTimeZoneDefinitionRecur, AppointmentTimeZoneDefinitionStartDisplay, AppointmentUnsendableRecipients, AppointmentUpdateTime, AttendeeCriticalChange, AutoFillLocation, AutoLog, AutoProcessState, AutoStartCheck, Billing, BirthdayEventEntryId, BirthdayLocal, BusinessCardCardPicture, BusinessCardDisplayDefinition, BusyStatus, CalendarType, Categories, CcAttendeesString, ChangeHighlight, Classification, ClassificationDescription, ClassificationGuid, ClassificationKeep, Classified, CleanGlobalObjectId, ClientIntent, ClipEnd, ClipStart, CollaborateDoc, CommonEnd, CommonStart, Companies, ConferencingCheck, ConferencingType, ContactCharacterSet, ContactItemData, ContactLinkedGlobalAddressListEntryId, ContactLinkEntry, ContactLinkGlobalAddressListLinkId, ContactLinkGlobalAddressListLinkState, ContactLinkLinkRejectHistory, ContactLinkName, ContactLinkSearchKey, ContactLinkSMTPAddressCache, Contacts, ContactUserField1, ContactUserField2, ContactUserField3, ContactUserField4, ConversationActionLastAppliedTime, ConversationActionMaxDeliveryTime, ConversationActionMoveFolderEid, ConversationActionMoveStoreEid, ConversationActionVersion, ConversationProcessed, CurrentVersion, CurrentVersionName, DayInterval, DayOfMonth, DelegateMail, Department, Directory, DistributionListChecksum, DistributionListMembers, DistributionListName, DistributionListOneOffMembers, DistributionListStream, Email1AddressType, Email1DisplayName, Email1EmailAddress, Email1OriginalDisplayName, Email1OriginalEntryId, Email2AddressType, Email2DisplayName, Email2EmailAddress, Email2OriginalDisplayName, Email2OriginalEntryId, Email3AddressType, Email3DisplayName, Email3EmailAddress, Email3OriginalDisplayName, Email3OriginalEntryId, EndRecurrenceDate, EndRecurrenceTime, ExceptionReplaceTime, Fax1AddressType, Fax1EmailAddress, Fax1OriginalDisplayName, Fax1OriginalEntryId, Fax2AddressType, Fax2EmailAddress, Fax2OriginalDisplayName, Fax2OriginalEntryId, Fax3AddressType, Fax3EmailAddress, Fax3OriginalDisplayName, Fax3OriginalEntryId, FExceptionalAttendees, FExceptionalBody, FileUnder, FileUnderId, FileUnderList, FInvited, FlagRequest, FlagString, ForwardInstance, ForwardNotificationRecipients, FOthersAppointment, FreeBusyLocation, GlobalObjectId, HasPicture, HomeAddress, HomeAddressCountryCode, Html, ICalendarDayOfWeekMask, InboundICalStream, InfoPathFormName, InstantMessagingAddress, IntendedBusyStatus, InternetAccountName, InternetAccountStamp, IsContactLinked, IsException, IsRecurring, IsSilent, LinkedTaskItems, Location, LogDocumentPosted, LogDocumentPrinted, LogDocumentRouted, LogDocumentSaved, LogDuration, LogEnd, LogFlags, LogStart, LogType, LogTypeDesc, MeetingType, MeetingWorkspaceUrl, MonthInterval, MonthOfYear, MonthOfYearMask, NetShowUrl, NoEndDateFlag, NonSendableBcc, NonSendableCc, NonSendableTo, NonSendBccTrackStatus, NonSendCcTrackStatus, NonSendToTrackStatus, NoteColor, NoteHeight, NoteWidth, NoteX, NoteY, Occurrences, OldLocation, OldRecurrenceType, OldWhenEndWhole, OldWhenStartWhole, OnlinePassword, OptionalAttendees, OrganizerAlias, OriginalStoreEntryId, OtherAddress, OtherAddressCountryCode, OwnerCriticalChange, OwnerName, PendingStateForSiteMailboxDocument, PercentComplete, PostalAddressId, PostRssChannel, PostRssChannelLink, PostRssItemGuid, PostRssItemHash, PostRssItemLink, PostRssItemXml, PostRssSubscription, Private, PromptSendUpdate, RecurrenceDuration, RecurrencePattern, RecurrenceType, Recurring, ReferenceEntryId, ReminderDelta, ReminderFileParameter, ReminderOverride, ReminderPlaySound, ReminderSet, ReminderSignalTime, ReminderTime, ReminderTimeDate, ReminderTimeTime, ReminderType, RemoteStatus, RequiredAttendees, ResourceAttendees, ResponseStatus, ServerProcessed, ServerProcessingActions, SharingAnonymity, SharingBindingEntryId, SharingBrowseUrl, SharingCapabilities, SharingConfigurationUrl, SharingDataRangeEnd, SharingDataRangeStart, SharingDetail, SharingExtensionXml, SharingFilter, SharingFlags, SharingFlavor, SharingFolderEntryId, SharingIndexEntryId, SharingInitiatorEntryId, SharingInitiatorName, SharingInitiatorSmtp, SharingInstanceGuid, SharingLastAutoSyncTime, SharingLastSyncTime, SharingLocalComment, SharingLocalLastModificationTime, SharingLocalName, SharingLocalPath, SharingLocalStoreUid, SharingLocalType, SharingLocalUid, SharingOriginalMessageEntryId, SharingParentBindingEntryId, SharingParticipants, SharingPermissions, SharingProviderExtension, SharingProviderGuid, SharingProviderName, SharingProviderUrl, SharingRangeEnd, SharingRangeStart, SharingReciprocation, SharingRemoteByteSize, SharingRemoteComment, SharingRemoteCrc, SharingRemoteLastModificationTime, SharingRemoteMessageCount, SharingRemoteName, SharingRemotePass, SharingRemotePath, SharingRemoteStoreUid, SharingRemoteType, SharingRemoteUid, SharingRemoteUser, SharingRemoteVersion, SharingResponseTime, SharingResponseType, SharingRoamLog, SharingStart, SharingStatus, SharingStop, SharingSyncFlags, SharingSyncInterval, SharingTimeToLive, SharingTimeToLiveAuto, SharingWorkingHoursDays, SharingWorkingHoursEnd, SharingWorkingHoursStart, SharingWorkingHoursTimeZone, SideEffects, SingleBodyICal, SmartNoAttach, SpamOriginalFolder, StartRecurrenceDate, StartRecurrenceTime, TaskAcceptanceState, TaskAccepted, TaskActualEffort, TaskAssigner, TaskAssigners, TaskComplete, TaskCustomFlags, TaskDateCompleted, TaskDeadOccurrence, TaskDueDate, TaskEstimatedEffort, TaskFCreator, TaskFFixOffline, TaskFRecurring, TaskGlobalId, TaskHistory, TaskLastDelegate, TaskLastUpdate, TaskLastUser, TaskMode, TaskMultipleRecipients, TaskNoCompute, TaskOrdinal, TaskOwner, TaskOwnership, TaskRecurrence, TaskResetReminder, TaskRole, TaskStartDate, TaskState, TaskStatus, TaskStatusOnComplete, TaskUpdates, TaskVersion, TeamTask, TimeZone, TimeZoneDescription, TimeZoneStruct, ToAttendeesString, ToDoOrdinalDate, ToDoSubOrdinal, ToDoTitle, UseTnef, ValidFlagStringProof, VerbResponse, VerbStream, WeddingAnniversaryLocal, WeekInterval, Where, WorkAddress, WorkAddressCity, WorkAddressCountry, WorkAddressCountryCode, WorkAddressPostalCode, WorkAddressPostOfficeBox, WorkAddressState, WorkAddressStreet, YearInterval, YomiCompanyName, YomiFirstName, YomiLastName, AcceptLanguage, ApplicationName, AttachmentMacContentType, AttachmentMacInfo, AudioNotes, Author, AutomaticSpeechRecognitionData, ByteCount, CalendarAttendeeRole, CalendarBusystatus, CalendarContact, CalendarContactUrl, CalendarCreated, CalendarDescriptionUrl, CalendarDuration, CalendarExceptionDate, CalendarExceptionRule, CalendarGeoLatitude, CalendarGeoLongitude, CalendarInstanceType, CalendarIsOrganizer, CalendarLastModified, CalendarLocationUrl, CalendarMeetingStatus, CalendarMethod, CalendarProductId, CalendarRecurrenceIdRange, CalendarReminderOffset, CalendarResources, CalendarRsvp, CalendarSequence, CalendarTimeZone, CalendarTimeZoneId, CalendarTransparent, CalendarUid, CalendarVersion, Category, CharacterCount, Comments, Company, ContentBase, ContentClass, ContentType, CreateDateTimeReadOnly, CrossReference, DavId, DavIsCollection, DavIsStructuredDocument, DavParentName, DavUid, DocumentParts, EditTime, ExchangeIntendedBusyStatus, ExchangeJunkEmailMoveStamp, ExchangeModifyExceptionStructure, ExchangeNoModifyExceptions, ExchangePatternEnd, ExchangePatternStart, ExchangeReminderInterval, ExchDatabaseSchema, ExchDataExpectedContentClass, ExchDataSchemaCollectionReference, ExtractedAddresses, ExtractedContacts, ExtractedEmails, ExtractedMeetings, ExtractedPhones, ExtractedTasks, ExtractedUrls, From, HeadingPairs, HiddenCount, HttpmailCalendar, HttpmailHtmlDescription, HttpmailSendMessage, ICalendarRecurrenceDate, ICalendarRecurrenceRule, InternetSubject, Keywords, LastAuthor, LastPrinted, LastSaveDateTime, LineCount, LinksDirty, LocationUrl, Manager, MultimediaClipCount, NoteCount, OMSAccountGuid, OMSMobileModel, OMSScheduleTime, OMSServiceType, OMSSourceType, PageCount, ParagraphCount, PhishingStamp, PresentationFormat, QuarantineOriginalSender, RevisionNumber, RightsManagementLicense, Scale, Security, SlideCount, Subject, Template, Thumbnail, Title, WordCount, XCallId, XFaxNumberOfPages, XRequireProtectedPlayOnPhone, XSenderTelephoneNumber, XSharingBrowseUrl, XSharingCapabilities, XSharingConfigUrl, XSharingExendedCaps, XSharingFlavor, XSharingInstanceGuid, XSharingLocalType, XSharingProviderGuid, XSharingProviderName, XSharingProviderUrl, XSharingRemoteName, XSharingRemotePath, XSharingRemoteStoreUid, XSharingRemoteType, XSharingRemoteUid, XVoiceMessageAttachmentOrder, XVoiceMessageDuration, XVoiceMessageSenderName, Access, AccessControlListData, AccessLevel, Account, AdditionalRenEntryIds, AdditionalRenEntryIdsEx, AddressBookAuthorizedSenders, AddressBookContainerId, AddressBookDeliveryContentLength, AddressBookDisplayNamePrintable, AddressBookDisplayTypeExtended, AddressBookDistributionListExternalMemberCount, AddressBookDistributionListMemberCount, AddressBookDistributionListMemberSubmitAccepted, AddressBookDistributionListMemberSubmitRejected, AddressBookDistributionListRejectMessagesFromDLMembers, AddressBookEntryId, AddressBookExtensionAttribute1, AddressBookExtensionAttribute10, AddressBookExtensionAttribute11, AddressBookExtensionAttribute12, AddressBookExtensionAttribute13, AddressBookExtensionAttribute14, AddressBookExtensionAttribute15, AddressBookExtensionAttribute2, AddressBookExtensionAttribute3, AddressBookExtensionAttribute4, AddressBookExtensionAttribute5, AddressBookExtensionAttribute6, AddressBookExtensionAttribute7, AddressBookExtensionAttribute8, AddressBookExtensionAttribute9, AddressBookFolderPathname, AddressBookHierarchicalChildDepartments, AddressBookHierarchicalDepartmentMembers, AddressBookHierarchicalIsHierarchicalGroup, AddressBookHierarchicalParentDepartment, AddressBookHierarchicalRootDepartment, AddressBookHierarchicalShowInDepartments, AddressBookHomeMessageDatabase, AddressBookIsMaster, AddressBookIsMemberOfDistributionList, AddressBookManageDistributionList, AddressBookManager, AddressBookManagerDistinguishedName, AddressBookMember, AddressBookMessageId, AddressBookModerationEnabled, AddressBookNetworkAddress, AddressBookObjectDistinguishedName, AddressBookObjectGuid, AddressBookOrganizationalUnitRootDistinguishedName, AddressBookOwner, AddressBookOwnerBackLink, AddressBookParentEntryId, AddressBookPhoneticCompanyName, AddressBookPhoneticDepartmentName, AddressBookPhoneticDisplayName, AddressBookPhoneticGivenName, AddressBookPhoneticSurname, AddressBookProxyAddresses, AddressBookPublicDelegates, AddressBookReports, AddressBookRoomCapacity, AddressBookRoomContainers, AddressBookRoomDescription, AddressBookSenderHintTranslations, AddressBookSeniorityIndex, AddressBookTargetAddress, AddressBookUnauthorizedSenders, AddressBookX509Certificate, AddressType, AlternateRecipientAllowed, Anr, ArchiveDate, ArchivePeriod, ArchiveTag, Assistant, AssistantTelephoneNumber, Associated, AttachAdditionalInformation, AttachContentBase, AttachContentId, AttachContentLocation, AttachDataBinary, AttachDataObject, AttachEncoding, AttachExtension, AttachFilename, AttachFlags, AttachLongFilename, AttachLongPathname, AttachmentContactPhoto, AttachmentFlags, AttachmentHidden, AttachmentLinkId, AttachMethod, AttachMimeTag, AttachNumber, AttachPathname, AttachPayloadClass, AttachPayloadProviderGuidString, AttachRendering, AttachSize, AttachTag, AttachTransportName, AttributeHidden, AttributeReadOnly, AutoForwardComment, AutoForwarded, AutoResponseSuppress, Birthday, BlockStatus, Body, BodyContentId, BodyContentLocation, BodyHtml, Business2TelephoneNumber, Business2TelephoneNumbers, BusinessFaxNumber, BusinessHomePage, BusinessTelephoneNumber, CallbackTelephoneNumber, CallId, CarTelephoneNumber, CdoRecurrenceid, ChangeKey, ChangeNumber, ChildrensNames, ClientActions, ClientSubmitTime, CodePageId, Comment, CompanyMainTelephoneNumber, CompanyName, ComputerNetworkName, ConflictEntryId, ContainerClass, ContainerContents, ContainerFlags, ContainerHierarchy, ContentCount, ContentFilterSpamConfidenceLevel, ContentUnreadCount, ConversationId, ConversationIndex, ConversationIndexTracking, ConversationTopic, Country, CreationTime, CreatorEntryId, CreatorName, CustomerId, DamBackPatched, DamOriginalEntryId, DefaultPostMessageClass, DeferredActionMessageOriginalEntryId, DeferredDeliveryTime, DeferredSendNumber, DeferredSendTime, DeferredSendUnits, DelegatedByRule, DelegateFlags, DeleteAfterSubmit, DeletedCountTotal, DeletedOn, DeliverTime, DepartmentName, Depth, DisplayBcc, DisplayCc, DisplayName, DisplayNamePrefix, DisplayTo, DisplayType, DisplayTypeEx, EmailAddress, EndDate, EntryId, ExceptionEndTime, TagExceptionReplaceTime, ExceptionStartTime, ExchangeNTSecurityDescriptor, ExpiryNumber, ExpiryTime, ExpiryUnits, ExtendedFolderFlags, ExtendedRuleMessageActions, ExtendedRuleMessageCondition, ExtendedRuleSizeLimit, FaxNumberOfPages, FlagCompleteTime, FlagStatus, FlatUrlName, FolderAssociatedContents, FolderId, FolderFlags, FolderType, FollowupIcon, FreeBusyCountMonths, FreeBusyEntryIds, FreeBusyMessageEmailAddress, FreeBusyPublishEnd, FreeBusyPublishStart, FreeBusyRangeTimestamp, FtpSite, GatewayNeedsToRefresh, Gender, Generation, GivenName, GovernmentIdNumber, HasAttachments, HasDeferredActionMessages, HasNamedProperties, HasRules, HierarchyChangeNumber, HierRev, Hobbies, Home2TelephoneNumber, Home2TelephoneNumbers, HomeAddressCity, HomeAddressCountry, HomeAddressPostalCode, HomeAddressPostOfficeBox, HomeAddressStateOrProvince, HomeAddressStreet, HomeFaxNumber, HomeTelephoneNumber, TagHtml, ICalendarEndTime, ICalendarReminderNextTime, ICalendarStartTime, IconIndex, Importance, InConflict, InitialDetailsPane, Initials, InReplyToId, InstanceKey, InstanceNum, InstID, InternetCodepage, InternetMailOverrideFormat, InternetMessageId, InternetReferences, IpmAppointmentEntryId, IpmContactEntryId, IpmDraftsEntryId, IpmJournalEntryId, IpmNoteEntryId, IpmTaskEntryId, IsdnNumber, JunkAddRecipientsToSafeSendersList, JunkIncludeContacts, JunkPermanentlyDelete, JunkPhishingEnableLinks, JunkThreshold, Keyword, Language, LastModificationTime, LastModifierEntryId, LastModifierName, LastVerbExecuted, LastVerbExecutionTime, ListHelp, ListSubscribe, ListUnsubscribe, LocalCommitTime, LocalCommitTimeMax, LocaleId, Locality, TagLocation, MailboxOwnerEntryId, MailboxOwnerName, ManagerName, MappingSignature, MaximumSubmitMessageSize, MemberId, MemberName, MemberRights, MessageAttachments, MessageCcMe, MessageClass, MessageCodepage, MessageDeliveryTime, MessageEditorFormat, MessageFlags, MessageHandlingSystemCommonName, MessageLocaleId, MessageRecipientMe, MessageRecipients, MessageSize, MessageSizeExtended, MessageStatus, MessageSubmissionId, MessageToMe, Mid, MiddleName, MimeSkeleton, MobileTelephoneNumber, NativeBody, NextSendAcct, Nickname, NonDeliveryReportDiagCode, NonDeliveryReportReasonCode, NonDeliveryReportStatusCode, NonReceiptNotificationRequested, NormalizedSubject, ObjectType, OfficeLocation, OfflineAddressBookContainerGuid, OfflineAddressBookDistinguishedName, OfflineAddressBookMessageClass, OfflineAddressBookName, OfflineAddressBookSequence, OfflineAddressBookTruncatedProperties, OrdinalMost, OrganizationalIdNumber, OriginalAuthorEntryId, OriginalAuthorName, OriginalDeliveryTime, OriginalDisplayBcc, OriginalDisplayCc, OriginalDisplayTo, OriginalEntryId, OriginalMessageClass, OriginalMessageId, OriginalSenderAddressType, OriginalSenderEmailAddress, OriginalSenderEntryId, OriginalSenderName, OriginalSenderSearchKey, OriginalSensitivity, OriginalSentRepresentingAddressType, OriginalSentRepresentingEmailAddress, OriginalSentRepresentingEntryId, OriginalSentRepresentingName, OriginalSentRepresentingSearchKey, OriginalSubject, OriginalSubmitTime, OriginatorDeliveryReportRequested, OriginatorNonDeliveryReportRequested, OscSyncEnabled, OtherAddressCity, OtherAddressCountry, OtherAddressPostalCode, OtherAddressPostOfficeBox, OtherAddressStateOrProvince, OtherAddressStreet, OtherTelephoneNumber, OutOfOfficeState, OwnerAppointmentId, PagerTelephoneNumber, ParentEntryId, ParentFolderId, ParentKey, ParentSourceKey, PersonalHomePage, PolicyTag, PostalAddress, PostalCode, PostOfficeBox, PredecessorChangeList, PrimaryFaxNumber, PrimarySendAccount, PrimaryTelephoneNumber, Priority, Processed, Profession, ProhibitReceiveQuota, ProhibitSendQuota, PurportedSenderDomain, RadioTelephoneNumber, Read, ReadReceiptAddressType, ReadReceiptEmailAddress, ReadReceiptEntryId, ReadReceiptName, ReadReceiptRequested, ReadReceiptSearchKey, ReadReceiptSmtpAddress, ReceiptTime, ReceivedByAddressType, ReceivedByEmailAddress, ReceivedByEntryId, ReceivedByName, ReceivedBySearchKey, ReceivedBySmtpAddress, ReceivedRepresentingAddressType, ReceivedRepresentingEmailAddress, ReceivedRepresentingEntryId, ReceivedRepresentingName, ReceivedRepresentingSearchKey, ReceivedRepresentingSmtpAddress, RecipientDisplayName, RecipientEntryId, RecipientFlags, RecipientOrder, RecipientProposed, RecipientProposedEndTime, RecipientProposedStartTime, RecipientReassignmentProhibited, RecipientTrackStatus, RecipientTrackStatusTime, RecipientType, RecordKey, ReferredByName, RemindersOnlineEntryId, RemoteMessageTransferAgent, RenderingPosition, ReplyRecipientEntries, ReplyRecipientNames, ReplyRequested, ReplyTemplateId, ReplyTime, ReportDisposition, ReportDispositionMode, ReportEntryId, ReportingMessageTransferAgent, ReportName, ReportSearchKey, ReportTag, ReportText, ReportTime, ResolveMethod, ResponseRequested, Responsibility, RetentionDate, RetentionFlags, RetentionPeriod, Rights, RoamingDatatypes, RoamingDictionary, RoamingXmlStream, Rowid, RowType, RtfCompressed, RtfInSync, RuleActionNumber, RuleActions, RuleActionType, RuleCondition, RuleError, RuleFolderEntryId, RuleId, RuleIds, RuleLevel, RuleMessageLevel, RuleMessageName, RuleMessageProvider, RuleMessageProviderData, RuleMessageSequence, RuleMessageState, RuleMessageUserFlags, RuleName, RuleProvider, RuleProviderData, RuleSequence, RuleState, RuleUserFlags, RwRulesStream, ScheduleInfoAppointmentTombstone, ScheduleInfoAutoAcceptAppointments, ScheduleInfoDelegateEntryIds, ScheduleInfoDelegateNames, ScheduleInfoDelegateNamesW, ScheduleInfoDelegatorWantsCopy, ScheduleInfoDelegatorWantsInfo, ScheduleInfoDisallowOverlappingAppts, ScheduleInfoDisallowRecurringAppts, ScheduleInfoDontMailDelegates, ScheduleInfoFreeBusy, ScheduleInfoFreeBusyAway, ScheduleInfoFreeBusyBusy, ScheduleInfoFreeBusyMerged, ScheduleInfoFreeBusyTentative, ScheduleInfoMonthsAway, ScheduleInfoMonthsBusy, ScheduleInfoMonthsMerged, ScheduleInfoMonthsTentative, ScheduleInfoResourceType, SchedulePlusFreeBusyEntryId, ScriptData, SearchFolderDefinition, SearchFolderEfpFlags, SearchFolderExpiration, SearchFolderId, SearchFolderLastUsed, SearchFolderRecreateInfo, SearchFolderStorageType, SearchFolderTag, SearchFolderTemplateId, SearchKey, SecurityDescriptorAsXml, Selectable, SenderAddressType, SenderEmailAddress, SenderEntryId, SenderIdStatus, SenderName, SenderSearchKey, SenderSmtpAddress, SenderTelephoneNumber, SendInternetEncoding, SendRichInfo, Sensitivity, SentMailSvrEID, SentRepresentingAddressType, SentRepresentingEmailAddress, SentRepresentingEntryId, SentRepresentingFlags, SentRepresentingName, SentRepresentingSearchKey, SentRepresentingSmtpAddress, SmtpAddress, SortLocaleId, SourceKey, SpokenName, SpouseName, StartDate, StartDateEtc, StateOrProvince, StoreEntryId, StoreState, StoreSupportMask, StreetAddress, Subfolders, TagSubject, SubjectPrefix, SupplementaryInfo, Surname, SwappedToDoData, SwappedToDoStore, TargetEntryId, TelecommunicationsDeviceForDeafTelephoneNumber, TelexNumber, TemplateData, Templateid, TextAttachmentCharset, ThumbnailPhoto, TagTitle, TnefCorrelationKey, ToDoItemFlags, TransmittableDisplayName, TransportMessageHeaders, TrustSender, UserCertificate, UserEntryId, UserX509Certificate, ViewDescriptorBinary, ViewDescriptorName, ViewDescriptorStrings, ViewDescriptorVersion, VoiceMessageAttachmentOrder, VoiceMessageDuration, VoiceMessageSenderName, WeddingAnniversary, WlinkAddressBookEID, WlinkAddressBookStoreEID, WlinkCalendarColor, WlinkClientID, WlinkEntryId, WlinkFlags, WlinkFolderType, WlinkGroupClsid, WlinkGroupHeaderID, WlinkGroupName, WlinkOrdinal, WlinkRecordKey, WlinkROGroupType, WlinkSaveStamp, WlinkSection, WlinkStoreEntryId, WlinkType, Abstract, ActiveUserEntryid, AddrbookForLocalSiteEntryid, AddressBookDisplayName, ArrivalTime, AssocMessageSize, AssocMessageSizeExtended, AssocMsgWAttachCount, AttachOnAssocMsgCount, AttachOnNormalMsgCount, AutoAddNewSubs, BilateralInfo, CachedColumnCount, CategCount, ChangeAdvisor, ChangeNotificationGuid, Collector, ContactCount, ContentSearchKey, ContentsSynchronizer, DeletedAssocMessageSizeExtended, DeletedAssocMsgCount, DeletedFolderCount, DeletedMessageSizeExtended, DeletedMsgCount, DeletedNormalMessageSizeExtended, DesignInProgress, DisableFullFidelity, DisableWinsock, DlReportFlags, EformsForLocaleEntryid, EformsLocaleId, EformsRegistryEntryid, EmsAbAccessCategory, EmsAbActivationSchedule, EmsAbActivationStyle, EmsAbAddressEntryDisplayTable, EmsAbAddressEntryDisplayTableMsdos, EmsAbAddressSyntax, EmsAbAddressType, EmsAbAdmd, EmsAbAdminDescription, EmsAbAdminDisplayName, EmsAbAdminExtensionDll, EmsAbAliasedObjectName, EmsAbAliasedObjectNameO, EmsAbAltRecipient, EmsAbAltRecipientBl, EmsAbAltRecipientBlO, EmsAbAltRecipientO, EmsAbAncestorId, EmsAbAnonymousAccess, EmsAbAnonymousAccount, EmsAbAssocNtAccount, EmsAbAssocProtocolCfgNntp, EmsAbAssocProtocolCfgNntpO, EmsAbAssocRemoteDxa, EmsAbAssocRemoteDxaO, EmsAbAssociationLifetime, EmsAbAttributeCertificate, EmsAbAuthOrigBl, EmsAbAuthOrigBlO, EmsAbAuthenticationToUse, EmsAbAuthorityRevocationList, EmsAbAuthorizedDomain, EmsAbAuthorizedPassword, EmsAbAuthorizedPasswordConfirm, EmsAbAuthorizedUser, EmsAbAutoreply, EmsAbAutoreplyMessage, EmsAbAutoreplySubject, EmsAbAvailableAuthorizationPackages, EmsAbAvailableDistributions, EmsAbBridgeheadServers, EmsAbBridgeheadServersO, EmsAbBusinessCategory, EmsAbBusinessRoles, EmsAbCaCertificate, EmsAbCanCreatePf, EmsAbCanCreatePfBl, EmsAbCanCreatePfBlO, EmsAbCanCreatePfDl, EmsAbCanCreatePfDlBl, EmsAbCanCreatePfDlBlO, EmsAbCanCreatePfDlO, EmsAbCanCreatePfO, EmsAbCanNotCreatePf, EmsAbCanNotCreatePfBl, EmsAbCanNotCreatePfBlO, EmsAbCanNotCreatePfDl, EmsAbCanNotCreatePfDlBl, EmsAbCanNotCreatePfDlBlO, EmsAbCanNotCreatePfDlO, EmsAbCanNotCreatePfO, EmsAbCanPreserveDns, EmsAbCertificateChainV3, EmsAbCertificateRevocationList, EmsAbCertificateRevocationListV1, EmsAbCertificateRevocationListV3, EmsAbCharacterSet, EmsAbCharacterSetList, EmsAbChildRdns, EmsAbClientAccessEnabled, EmsAbClockAlertOffset, EmsAbClockAlertRepair, EmsAbClockWarningOffset, EmsAbClockWarningRepair, EmsAbCompromisedKeyList, EmsAbComputerName, EmsAbConnectedDomains, EmsAbConnectionListFilter, EmsAbConnectionListFilterType, EmsAbConnectionType, EmsAbContainerInfo, EmsAbContentType, EmsAbControlMsgFolderId, EmsAbControlMsgRules, EmsAbCost, EmsAbCountryName, EmsAbCrossCertificateCrl, EmsAbCrossCertificatePair, EmsAbDefaultMessageFormat, EmsAbDelegateUser, EmsAbDelivEits, EmsAbDelivExtContTypes, EmsAbDeliverAndRedirect, EmsAbDeliveryMechanism, EmsAbDeltaRevocationList, EmsAbDescription, EmsAbDestinationIndicator, EmsAbDiagnosticRegKey, EmsAbDisableDeferredCommit, EmsAbDisabledGatewayProxy, EmsAbDisplayNameOverride, EmsAbDisplayNameSuffix, EmsAbDlMemRejectPermsBl, EmsAbDlMemRejectPermsBlO, EmsAbDlMemberRule, EmsAbDmdName, EmsAbDoOabVersion, EmsAbDomainDefAltRecip, EmsAbDomainDefAltRecipO, EmsAbDomainName, EmsAbDsaSignature, EmsAbDxaAdminCopy, EmsAbDxaAdminForward, EmsAbDxaAdminUpdate, EmsAbDxaAppendReqcn, EmsAbDxaConfContainerList, EmsAbDxaConfContainerListO, EmsAbDxaConfReqTime, EmsAbDxaConfSeq, EmsAbDxaConfSeqUsn, EmsAbDxaExchangeOptions, EmsAbDxaExportNow, EmsAbDxaFlags, EmsAbDxaImpSeq, EmsAbDxaImpSeqTime, EmsAbDxaImpSeqUsn, EmsAbDxaImportNow, EmsAbDxaInTemplateMap, EmsAbDxaLocalAdmin, EmsAbDxaLocalAdminO, EmsAbDxaLoggingLevel, EmsAbDxaNativeAddressType, EmsAbDxaOutTemplateMap, EmsAbDxaPassword, EmsAbDxaPrevExchangeOptions, EmsAbDxaPrevExportNativeOnly, EmsAbDxaPrevInExchangeSensitivity, EmsAbDxaPrevRemoteEntries, EmsAbDxaPrevRemoteEntriesO, EmsAbDxaPrevReplicationSensitivity, EmsAbDxaPrevTemplateOptions, EmsAbDxaPrevTypes, EmsAbDxaRecipientCp, EmsAbDxaRemoteClient, EmsAbDxaRemoteClientO, EmsAbDxaReqSeq, EmsAbDxaReqSeqTime, EmsAbDxaReqSeqUsn, EmsAbDxaReqname, EmsAbDxaSvrSeq, EmsAbDxaSvrSeqTime, EmsAbDxaSvrSeqUsn, EmsAbDxaTask, EmsAbDxaTemplateOptions, EmsAbDxaTemplateTimestamp, EmsAbDxaTypes, EmsAbDxaUnconfContainerList, EmsAbDxaUnconfContainerListO, EmsAbEmployeeNumber, EmsAbEmployeeType, EmsAbEnableCompatibility, EmsAbEnabled, EmsAbEnabledAuthorizationPackages, EmsAbEnabledProtocolCfg, EmsAbEnabledProtocols, EmsAbEncapsulationMethod, EmsAbEncrypt, EmsAbEncryptAlgListNa, EmsAbEncryptAlgListOther, EmsAbEncryptAlgSelectedNa, EmsAbEncryptAlgSelectedOther, EmsAbExpandDlsLocally, EmsAbExpirationTime, EmsAbExportContainers, EmsAbExportContainersO, EmsAbExportCustomRecipients, EmsAbExtendedCharsAllowed, EmsAbExtensionData, EmsAbExtensionName, EmsAbExtensionNameInherited, EmsAbFacsimileTelephoneNumber, EmsAbFileVersion, EmsAbFilterLocalAddresses, EmsAbFoldersContainer, EmsAbFoldersContainerO, EmsAbFormData, EmsAbForwardingAddress, EmsAbGarbageCollPeriod, EmsAbGatewayLocalCred, EmsAbGatewayLocalDesig, EmsAbGatewayProxy, EmsAbGatewayRoutingTree, EmsAbGenerationQualifier, EmsAbGroupByAttr1, EmsAbGroupByAttr2, EmsAbGroupByAttr3, EmsAbGroupByAttr4, EmsAbGroupByAttrValueDn, EmsAbGroupByAttrValueDnO, EmsAbGroupByAttrValueStr, EmsAbGwartLastModified, EmsAbHasFullReplicaNcs, EmsAbHasFullReplicaNcsO, EmsAbHasMasterNcs, EmsAbHasMasterNcsO, EmsAbHelpData16, EmsAbHelpData32, EmsAbHelpFileName, EmsAbHeuristics, EmsAbHideDlMembership, EmsAbHideFromAddressBook, EmsAbHierarchyPath, EmsAbHomeMdbBl, EmsAbHomeMdbBlO, EmsAbHomeMta, EmsAbHomeMtaO, EmsAbHomePublicServer, EmsAbHomePublicServerO, EmsAbHouseIdentifier, EmsAbHttpPubAbAttributes, EmsAbHttpPubGal, EmsAbHttpPubGalLimit, EmsAbHttpPubPf, EmsAbHttpServers, EmsAbImportContainer, EmsAbImportContainerO, EmsAbImportSensitivity, EmsAbImportedFrom, EmsAbInboundAcceptAll, EmsAbInboundDn, EmsAbInboundDnO, EmsAbInboundHost, EmsAbInboundNewsfeed, EmsAbInboundNewsfeedType, EmsAbInboundSites, EmsAbInboundSitesO, EmsAbIncomingMsgSizeLimit, EmsAbIncomingPassword, EmsAbInsadmin, EmsAbInsadminO, EmsAbInstanceType, EmsAbInternationalIsdnNumber, EmsAbInvocationId, EmsAbIsDeleted, EmsAbIsSingleValued, EmsAbKccStatus, EmsAbKmServer, EmsAbKmServerO, EmsAbKnowledgeInformation, EmsAbLabeleduri, EmsAbLanguage, EmsAbLanguageIso639, EmsAbLdapDisplayName, EmsAbLdapSearchCfg, EmsAbLineWrap, EmsAbLinkId, EmsAbListPublicFolders, EmsAbLocalBridgeHead, EmsAbLocalBridgeHeadAddress, EmsAbLocalInitialTurn, EmsAbLocalScope, EmsAbLocalScopeO, EmsAbLogFilename, EmsAbLogRolloverInterval, EmsAbMailDrop, EmsAbMaintainAutoreplyHistory, EmsAbMapiDisplayType, EmsAbMapiId, EmsAbMaximumObjectId, EmsAbMdbBackoffInterval, EmsAbMdbMsgTimeOutPeriod, EmsAbMdbOverQuotaLimit, EmsAbMdbStorageQuota, EmsAbMdbUnreadLimit, EmsAbMdbUseDefaults, EmsAbMessageTrackingEnabled, EmsAbMimeTypes, EmsAbModerated, EmsAbModerator, EmsAbMonitorClock, EmsAbMonitorServers, EmsAbMonitorServices, EmsAbMonitoredConfigurations, EmsAbMonitoredConfigurationsO, EmsAbMonitoredServers, EmsAbMonitoredServersO, EmsAbMonitoredServices, EmsAbMonitoringAlertDelay, EmsAbMonitoringAlertUnits, EmsAbMonitoringAvailabilityStyle, EmsAbMonitoringAvailabilityWindow, EmsAbMonitoringCachedViaMail, EmsAbMonitoringCachedViaMailO, EmsAbMonitoringCachedViaRpc, EmsAbMonitoringCachedViaRpcO, EmsAbMonitoringEscalationProcedure, EmsAbMonitoringHotsitePollInterval, EmsAbMonitoringHotsitePollUnits, EmsAbMonitoringMailUpdateInterval, EmsAbMonitoringMailUpdateUnits, EmsAbMonitoringNormalPollInterval, EmsAbMonitoringNormalPollUnits, EmsAbMonitoringRecipients, EmsAbMonitoringRecipientsNdr, EmsAbMonitoringRecipientsNdrO, EmsAbMonitoringRecipientsO, EmsAbMonitoringRpcUpdateInterval, EmsAbMonitoringRpcUpdateUnits, EmsAbMonitoringWarningDelay, EmsAbMonitoringWarningUnits, EmsAbMtaLocalCred, EmsAbMtaLocalDesig, EmsAbNAddress, EmsAbNAddressType, EmsAbNewsfeedType, EmsAbNewsgroup, EmsAbNewsgroupList, EmsAbNntpCharacterSet, EmsAbNntpContentFormat, EmsAbNntpDistributions, EmsAbNntpDistributionsFlag, EmsAbNntpNewsfeeds, EmsAbNntpNewsfeedsO, EmsAbNtMachineName, EmsAbNtSecurityDescriptor, EmsAbNumOfOpenRetries, EmsAbNumOfTransferRetries, EmsAbObjViewContainers, EmsAbObjViewContainersO, EmsAbObjectClassCategory, EmsAbObjectOid, EmsAbObjectVersion, EmsAbOffLineAbContainers, EmsAbOffLineAbContainersO, EmsAbOffLineAbSchedule, EmsAbOffLineAbServer, EmsAbOffLineAbServerO, EmsAbOffLineAbStyle, EmsAbOidType, EmsAbOmObjectClass, EmsAbOmSyntax, EmsAbOofReplyToOriginator, EmsAbOpenRetryInterval, EmsAbOrganizationName, EmsAbOrganizationalUnitName, EmsAbOriginalDisplayTable, EmsAbOriginalDisplayTableMsdos, EmsAbOtherRecips, EmsAbOutboundHost, EmsAbOutboundHostType, EmsAbOutboundNewsfeed, EmsAbOutboundSites, EmsAbOutboundSitesO, EmsAbOutgoingMsgSizeLimit, EmsAbOverrideNntpContentFormat, EmsAbOwaServer, EmsAbPSelector, EmsAbPSelectorInbound, EmsAbPerMsgDialogDisplayTable, EmsAbPerRecipDialogDisplayTable, EmsAbPeriodRepSyncTimes, EmsAbPeriodReplStagger, EmsAbPersonalTitle, EmsAbPfContacts, EmsAbPfContactsO, EmsAbPopCharacterSet, EmsAbPopContentFormat, EmsAbPortNumber, EmsAbPostalAddress, EmsAbPreferredDeliveryMethod, EmsAbPreserveInternetContent, EmsAbPrmd, EmsAbPromoExpiration, EmsAbProtocolSettings, EmsAbProxyGenerationEnabled, EmsAbProxyGeneratorDll, EmsAbPublicDelegatesBl, EmsAbPublicDelegatesBlO, EmsAbQuotaNotificationSchedule, EmsAbQuotaNotificationStyle, EmsAbRangeLower, EmsAbRangeUpper, EmsAbRasAccount, EmsAbRasCallbackNumber, EmsAbRasPassword, EmsAbRasPhoneNumber, EmsAbRasPhonebookEntryName, EmsAbRasRemoteSrvrName, EmsAbReferralList, EmsAbRegisteredAddress, EmsAbRemoteBridgeHead, EmsAbRemoteBridgeHeadAddress, EmsAbRemoteOutBhServer, EmsAbRemoteOutBhServerO, EmsAbRemoteSite, EmsAbRemoteSiteO, EmsAbReplicatedObjectVersion, EmsAbReplicationMailMsgSize, EmsAbReplicationSensitivity, EmsAbReplicationStagger, EmsAbReportToOriginator, EmsAbReportToOwner, EmsAbReqSeq, EmsAbRequireSsl, EmsAbResponsibleLocalDxa, EmsAbResponsibleLocalDxaO, EmsAbReturnExactMsgSize, EmsAbRidServer, EmsAbRidServerO, EmsAbRoleOccupant, EmsAbRoleOccupantO, EmsAbRootNewsgroupsFolderId, EmsAbRoutingList, EmsAbRtsCheckpointSize, EmsAbRtsRecoveryTimeout, EmsAbRtsWindowSize, EmsAbRunsOn, EmsAbRunsOnO, EmsAbSSelector, EmsAbSSelectorInbound, EmsAbSchemaFlags, EmsAbSchemaVersion, EmsAbSearchFlags, EmsAbSearchGuide, EmsAbSecurityPolicy, EmsAbSecurityProtocol, EmsAbSeeAlso, EmsAbSeeAlsoO, EmsAbSendEmailMessage, EmsAbSendTnef, EmsAbSerialNumber, EmsAbServer, EmsAbServiceActionFirst, EmsAbServiceActionOther, EmsAbServiceActionSecond, EmsAbServiceRestartDelay, EmsAbServiceRestartMessage, EmsAbSessionDisconnectTimer, EmsAbSiteAffinity, EmsAbSiteFolderGuid, EmsAbSiteFolderServer, EmsAbSiteFolderServerO, EmsAbSiteProxySpace, EmsAbSmimeAlgListNa, EmsAbSmimeAlgListOther, EmsAbSmimeAlgSelectedNa, EmsAbSmimeAlgSelectedOther, EmsAbSpaceLastComputed, EmsAbStreetAddress, EmsAbSubRefs, EmsAbSubRefsO, EmsAbSubSite, EmsAbSubmissionContLength, EmsAbSupportSmimeSignatures, EmsAbSupportedAlgorithms, EmsAbSupportedApplicationContext, EmsAbSupportingStack, EmsAbSupportingStackBl, EmsAbSupportingStackBlO, EmsAbSupportingStackO, EmsAbTSelector, EmsAbTSelectorInbound, EmsAbTargetMtas, EmsAbTelephoneNumber, EmsAbTelephonePersonalPager, EmsAbTeletexTerminalIdentifier, EmsAbTempAssocThreshold, EmsAbTombstoneLifetime, EmsAbTrackingLogPathName, EmsAbTransRetryMins, EmsAbTransTimeoutMins, EmsAbTransferRetryInterval, EmsAbTransferTimeoutNonUrgent, EmsAbTransferTimeoutNormal, EmsAbTransferTimeoutUrgent, EmsAbTranslationTableUsed, EmsAbTransportExpeditedData, EmsAbTrustLevel, EmsAbTurnRequestThreshold, EmsAbTwoWayAlternateFacility, EmsAbType, EmsAbUnauthOrigBl, EmsAbUnauthOrigBlO, EmsAbUseServerValues, EmsAbUseSiteValues, EmsAbUsenetSiteName, EmsAbUserPassword, EmsAbUsnChanged, EmsAbUsnCreated, EmsAbUsnDsaLastObjRemoved, EmsAbUsnIntersite, EmsAbUsnLastObjRem, EmsAbUsnSource, EmsAbViewContainer1, EmsAbViewContainer2, EmsAbViewContainer3, EmsAbViewDefinition, EmsAbViewFlags, EmsAbViewSite, EmsAbVoiceMailFlags, EmsAbVoiceMailGreetings, EmsAbVoiceMailPassword, EmsAbVoiceMailRecordedName, EmsAbVoiceMailRecordingLength, EmsAbVoiceMailSpeed, EmsAbVoiceMailSystemGuid, EmsAbVoiceMailUserId, EmsAbVoiceMailVolume, EmsAbWwwHomePage, EmsAbX121Address, EmsAbX25CallUserDataIncoming, EmsAbX25CallUserDataOutgoing, EmsAbX25FacilitiesDataIncoming, EmsAbX25FacilitiesDataOutgoing, EmsAbX25LeasedLinePort, EmsAbX25LeasedOrSwitched, EmsAbX25RemoteMtaPhone, EmsAbX400AttachmentType, EmsAbX400SelectorSyntax, EmsAbX500AccessControlList, EmsAbX500Nc, EmsAbX500Rdn, EmsAbXmitTimeoutNonUrgent, EmsAbXmitTimeoutNormal, EmsAbXmitTimeoutUrgent, EventsRootFolderEntryid, ExcessStorageUsed, ExtendedAclData, FastTransfer, FavoritesDefaultName, FolderChildCount, FolderDesignFlags, FolderPathname, ForeignId, ForeignReportId, ForeignSubjectId, FreeBusyForLocalSiteEntryid, GwAdminOperations, GwMtsinEntryid, GwMtsoutEntryid, HasModeratorRules, HierarchyServer, HierarchySynchronizer, ImapInternalDate, InTransit, InboundNewsfeedDn, InternetCharset, InternetNewsgroupName, IpmDafEntryid, IpmFavoritesEntryid, IpmPublicFoldersEntryid, IsNewsgroup, IsNewsgroupAnchor, LastAccessTime, LastFullBackup, LastLogoffTime, LastLogonTime, LongtermEntryidFromTable, MessageProcessed, MessageSiteName, MoveToFolderEntryid, MoveToStoreEntryid, MsgBodyId, MtsSubjectId, NewSubsGetAutoAdd, NewsfeedInfo, NewsgroupComponent, NewsgroupRootFolderEntryid, NntpArticleFolderEntryid, NntpControlFolderEntryid, NonIpmSubtreeEntryid, NormalMessageSize, NormalMessageSizeExtended, NormalMsgWAttachCount, NtUserName, OfflineAddrbookEntryid, OfflineFlags, OfflineMessageEntryid, OldestDeletedOn, OriginatorAddr, OriginatorAddrtype, OriginatorEntryid, OriginatorName, OstEncryption, OutboundNewsfeedDn, OverallAgeLimit, OverallMsgAgeLimit, OwaUrl, OwnerCount, P1Content, P1ContentType, PreventMsgCreate, Preview, PreviewUnread, ProfileAbFilesPath, ProfileAddrInfo, ProfileAllpubComment, ProfileAllpubDisplayName, ProfileBindingOrder, ProfileConfigFlags, ProfileConnectFlags, ProfileFavfldComment, ProfileFavfldDisplayName, ProfileHomeServer, ProfileHomeServerAddrs, ProfileHomeServerDn, ProfileMailbox, ProfileMaxRestrict, ProfileMoab, ProfileMoabGuid, ProfileMoabSeq, ProfileOfflineInfo, ProfileOfflineStorePath, ProfileOpenFlags, ProfileOptionsData, ProfileSecureMailbox, ProfileServer, ProfileServerDn, ProfileTransportFlags, ProfileType, ProfileUiState, ProfileUnresolvedName, ProfileUnresolvedServer, ProfileUser, ProfileVersion, PstEncryption, PstPath, PstPwSzOld, PstRememberPw, PublicFolderEntryid, PublishInAddressBook, RecipientNumber, RecipientOnAssocMsgCount, RecipientOnNormalMsgCount, ReplicaList, ReplicaServer, ReplicaVersion, ReplicationAlwaysInterval, ReplicationMessagePriority, ReplicationMsgSize, ReplicationSchedule, ReplicationStyle, ReplyRecipientSmtpProxies, ReportDestinationEntryid, ReportDestinationName, RestrictionCount, RetentionAgeLimit, RuleTriggerHistory, RulesData, RulesTable, ScheduleFolderEntryid, SecureInSite, SecureOrigination, StorageLimitInformation, StorageQuotaLimit, StoreOffline, StoreSlowlink, SubjectTraceInfo, SvrGeneratingQuotaMsg, SynchronizeFlags, SysConfigFolderEntryid, TestLineSpeed, TraceInfo, TransferEnabled, UserName, X400EnvelopeType, AbDefaultDir, AbDefaultPab, AbProviderId, AbProviders, AbSearchPath, AbSearchPathUpdate, AlternateRecipient, AssocContentCount, AttachmentX400Parameters, AuthorizingUsers, BodyCrc, CommonViewsEntryid, ContactAddrtypes, ContactDefaultAddressIndex, ContactEmailAddresses, ContactEntryids, ContactVersion, ContainerModifyVersion, ContentConfidentialityAlgorithmId, ContentCorrelator, ContentIdentifier, ContentIntegrityCheck, ContentLength, ContentReturnRequested, ContentsSortOrder, ControlFlags, ControlId, ControlStructure, ControlType, ConversationKey, ConversionEits, ConversionProhibited, ConversionWithLossProhibited, ConvertedEits, Correlate, CorrelateMtsid, CreateTemplates, CreationVersion, ExCurrentVersion, DefCreateDl, DefCreateMailuser, DefaultProfile, DefaultStore, DefaultViewEntryid, Delegation, DeliveryPoint, Deltax, Deltay, DetailsTable, DiscVal, DiscardReason, DiscloseRecipients, DisclosureOfRecipients, DiscreteValues, DlExpansionHistory, DlExpansionProhibited, ExplicitConversion, FilteringHooks, FinderEntryid, FormCategory, FormCategorySub, FormClsid, FormContactName, FormDesignerGuid, FormDesignerName, FormHidden, FormHostMap, FormMessageBehavior, FormVersion, HeaderFolderEntryid, Icon, IdentityDisplay, IdentityEntryid, IdentitySearchKey, ImplicitConversionProhibited, IncompleteCopy, InternetApproved, InternetArticleNumber, InternetControl, InternetDistribution, InternetFollowupTo, InternetLines, InternetNewsgroups, InternetNntpPath, InternetOrganization, InternetPrecedence, IpmId, IpmOutboxEntryid, IpmOutboxSearchKey, IpmReturnRequested, IpmSentmailEntryid, IpmSentmailSearchKey, IpmSubtreeEntryid, IpmSubtreeSearchKey, IpmWastebasketEntryid, IpmWastebasketSearchKey, Languages, LatestDeliveryTime, MailPermission, MdbProvider, MessageDeliveryId, MessageDownloadTime, MessageSecurityLabel, MessageToken, MiniIcon, ModifyVersion, NewsgroupName, NntpXref, NonReceiptReason, ObsoletedIpms, OriginCheck, OriginalAuthorAddrtype, OriginalAuthorEmailAddress, OriginalAuthorSearchKey, OriginalDisplayName, OriginalEits, OriginalSearchKey, OriginallyIntendedRecipAddrtype, OriginallyIntendedRecipEmailAddress, OriginallyIntendedRecipEntryid, OriginallyIntendedRecipientName, OriginatingMtaCertificate, OriginatorAndDlExpansionHistory, OriginatorCertificate, OriginatorRequestedAlternateRecipient, OriginatorReturnAddress, OwnStoreEntryid, ParentDisplay, PhysicalDeliveryBureauFaxDelivery, PhysicalDeliveryMode, PhysicalDeliveryReportRequest, PhysicalForwardingAddress, PhysicalForwardingAddressRequested, PhysicalForwardingProhibited, PhysicalRenditionAttributes, PostFolderEntries, PostFolderNames, PostReplyDenied, PostReplyFolderEntries, PostReplyFolderNames, Preprocess, PrimaryCapability, ProfileName, ProofOfDelivery, ProofOfDeliveryRequested, ProofOfSubmission, ProofOfSubmissionRequested, ProviderDisplay, ProviderDllName, ProviderOrdinal, ProviderSubmitTime, ProviderUid, ReceiveFolderSettings, RecipientCertificate, RecipientNumberForAdvice, RecipientStatus, RedirectionHistory, RegisteredMailType, RelatedIpms, RemoteProgress, RemoteProgressText, RemoteValidateOk, ReportingDlName, ReportingMtaCertificate, RequestedDeliveryMethod, ResourceFlags, ResourceMethods, ResourcePath, ResourceType, ReturnedIpm, RtfSyncBodyCount, RtfSyncBodyCrc, RtfSyncBodyTag, RtfSyncPrefixCount, RtfSyncTrailingCount, Search, ExSecurity, SentmailEntryid, ServiceDeleteFiles, ServiceDllName, ServiceEntryName, ServiceExtraUids, ServiceName, ServiceSupportFiles, ServiceUid, Services, SpoolerStatus, Status, StatusCode, StatusString, StoreProviders, StoreRecordKey, SubjectIpm, SubmitFlags, Supersedes, TransportKey, TransportProviders, TransportStatus, TypeOfMtsUser, ValidFolderMask, ViewsEntryid, X400ContentType, X400DeferredDeliveryCancel, Xpos, Ypos + :type name: str """ super(MapiKnownPropertyDescriptor, self).__init__() self._name = None - - if discriminator is not None: - self.discriminator = discriminator if name is not None: self.name = name + @property def name(self) -> str: - """Gets the name of this MapiKnownPropertyDescriptor. - + """ Known property name. See all known properties here: https://apireference.aspose.com/email/net/aspose.email.mapi/knownpropertylist/fields/index Possible values: Mileage, ObjectUri, GDataContactVersion, GDataPhotoVersion, AddressBookProviderArrayType, AddressBookProviderEmailList, AddressCountryCode, AgingDontAgeMe, AllAttendeesString, AllowExternalCheck, AnniversaryEventEntryId, AppointmentAuxiliaryFlags, AppointmentColor, AppointmentCounterProposal, AppointmentDuration, AppointmentEndDate, AppointmentEndTime, AppointmentEndWhole, AppointmentLastSequence, AppointmentMessageClass, AppointmentNotAllowPropose, AppointmentProposalNumber, AppointmentProposedDuration, AppointmentProposedEndWhole, AppointmentProposedStartWhole, AppointmentRecur, AppointmentReplyName, AppointmentReplyTime, AppointmentSequence, AppointmentSequenceTime, AppointmentStartDate, AppointmentStartTime, AppointmentStartWhole, AppointmentStateFlags, AppointmentSubType, AppointmentTimeZoneDefinitionEndDisplay, AppointmentTimeZoneDefinitionRecur, AppointmentTimeZoneDefinitionStartDisplay, AppointmentUnsendableRecipients, AppointmentUpdateTime, AttendeeCriticalChange, AutoFillLocation, AutoLog, AutoProcessState, AutoStartCheck, Billing, BirthdayEventEntryId, BirthdayLocal, BusinessCardCardPicture, BusinessCardDisplayDefinition, BusyStatus, CalendarType, Categories, CcAttendeesString, ChangeHighlight, Classification, ClassificationDescription, ClassificationGuid, ClassificationKeep, Classified, CleanGlobalObjectId, ClientIntent, ClipEnd, ClipStart, CollaborateDoc, CommonEnd, CommonStart, Companies, ConferencingCheck, ConferencingType, ContactCharacterSet, ContactItemData, ContactLinkedGlobalAddressListEntryId, ContactLinkEntry, ContactLinkGlobalAddressListLinkId, ContactLinkGlobalAddressListLinkState, ContactLinkLinkRejectHistory, ContactLinkName, ContactLinkSearchKey, ContactLinkSMTPAddressCache, Contacts, ContactUserField1, ContactUserField2, ContactUserField3, ContactUserField4, ConversationActionLastAppliedTime, ConversationActionMaxDeliveryTime, ConversationActionMoveFolderEid, ConversationActionMoveStoreEid, ConversationActionVersion, ConversationProcessed, CurrentVersion, CurrentVersionName, DayInterval, DayOfMonth, DelegateMail, Department, Directory, DistributionListChecksum, DistributionListMembers, DistributionListName, DistributionListOneOffMembers, DistributionListStream, Email1AddressType, Email1DisplayName, Email1EmailAddress, Email1OriginalDisplayName, Email1OriginalEntryId, Email2AddressType, Email2DisplayName, Email2EmailAddress, Email2OriginalDisplayName, Email2OriginalEntryId, Email3AddressType, Email3DisplayName, Email3EmailAddress, Email3OriginalDisplayName, Email3OriginalEntryId, EndRecurrenceDate, EndRecurrenceTime, ExceptionReplaceTime, Fax1AddressType, Fax1EmailAddress, Fax1OriginalDisplayName, Fax1OriginalEntryId, Fax2AddressType, Fax2EmailAddress, Fax2OriginalDisplayName, Fax2OriginalEntryId, Fax3AddressType, Fax3EmailAddress, Fax3OriginalDisplayName, Fax3OriginalEntryId, FExceptionalAttendees, FExceptionalBody, FileUnder, FileUnderId, FileUnderList, FInvited, FlagRequest, FlagString, ForwardInstance, ForwardNotificationRecipients, FOthersAppointment, FreeBusyLocation, GlobalObjectId, HasPicture, HomeAddress, HomeAddressCountryCode, Html, ICalendarDayOfWeekMask, InboundICalStream, InfoPathFormName, InstantMessagingAddress, IntendedBusyStatus, InternetAccountName, InternetAccountStamp, IsContactLinked, IsException, IsRecurring, IsSilent, LinkedTaskItems, Location, LogDocumentPosted, LogDocumentPrinted, LogDocumentRouted, LogDocumentSaved, LogDuration, LogEnd, LogFlags, LogStart, LogType, LogTypeDesc, MeetingType, MeetingWorkspaceUrl, MonthInterval, MonthOfYear, MonthOfYearMask, NetShowUrl, NoEndDateFlag, NonSendableBcc, NonSendableCc, NonSendableTo, NonSendBccTrackStatus, NonSendCcTrackStatus, NonSendToTrackStatus, NoteColor, NoteHeight, NoteWidth, NoteX, NoteY, Occurrences, OldLocation, OldRecurrenceType, OldWhenEndWhole, OldWhenStartWhole, OnlinePassword, OptionalAttendees, OrganizerAlias, OriginalStoreEntryId, OtherAddress, OtherAddressCountryCode, OwnerCriticalChange, OwnerName, PendingStateForSiteMailboxDocument, PercentComplete, PostalAddressId, PostRssChannel, PostRssChannelLink, PostRssItemGuid, PostRssItemHash, PostRssItemLink, PostRssItemXml, PostRssSubscription, Private, PromptSendUpdate, RecurrenceDuration, RecurrencePattern, RecurrenceType, Recurring, ReferenceEntryId, ReminderDelta, ReminderFileParameter, ReminderOverride, ReminderPlaySound, ReminderSet, ReminderSignalTime, ReminderTime, ReminderTimeDate, ReminderTimeTime, ReminderType, RemoteStatus, RequiredAttendees, ResourceAttendees, ResponseStatus, ServerProcessed, ServerProcessingActions, SharingAnonymity, SharingBindingEntryId, SharingBrowseUrl, SharingCapabilities, SharingConfigurationUrl, SharingDataRangeEnd, SharingDataRangeStart, SharingDetail, SharingExtensionXml, SharingFilter, SharingFlags, SharingFlavor, SharingFolderEntryId, SharingIndexEntryId, SharingInitiatorEntryId, SharingInitiatorName, SharingInitiatorSmtp, SharingInstanceGuid, SharingLastAutoSyncTime, SharingLastSyncTime, SharingLocalComment, SharingLocalLastModificationTime, SharingLocalName, SharingLocalPath, SharingLocalStoreUid, SharingLocalType, SharingLocalUid, SharingOriginalMessageEntryId, SharingParentBindingEntryId, SharingParticipants, SharingPermissions, SharingProviderExtension, SharingProviderGuid, SharingProviderName, SharingProviderUrl, SharingRangeEnd, SharingRangeStart, SharingReciprocation, SharingRemoteByteSize, SharingRemoteComment, SharingRemoteCrc, SharingRemoteLastModificationTime, SharingRemoteMessageCount, SharingRemoteName, SharingRemotePass, SharingRemotePath, SharingRemoteStoreUid, SharingRemoteType, SharingRemoteUid, SharingRemoteUser, SharingRemoteVersion, SharingResponseTime, SharingResponseType, SharingRoamLog, SharingStart, SharingStatus, SharingStop, SharingSyncFlags, SharingSyncInterval, SharingTimeToLive, SharingTimeToLiveAuto, SharingWorkingHoursDays, SharingWorkingHoursEnd, SharingWorkingHoursStart, SharingWorkingHoursTimeZone, SideEffects, SingleBodyICal, SmartNoAttach, SpamOriginalFolder, StartRecurrenceDate, StartRecurrenceTime, TaskAcceptanceState, TaskAccepted, TaskActualEffort, TaskAssigner, TaskAssigners, TaskComplete, TaskCustomFlags, TaskDateCompleted, TaskDeadOccurrence, TaskDueDate, TaskEstimatedEffort, TaskFCreator, TaskFFixOffline, TaskFRecurring, TaskGlobalId, TaskHistory, TaskLastDelegate, TaskLastUpdate, TaskLastUser, TaskMode, TaskMultipleRecipients, TaskNoCompute, TaskOrdinal, TaskOwner, TaskOwnership, TaskRecurrence, TaskResetReminder, TaskRole, TaskStartDate, TaskState, TaskStatus, TaskStatusOnComplete, TaskUpdates, TaskVersion, TeamTask, TimeZone, TimeZoneDescription, TimeZoneStruct, ToAttendeesString, ToDoOrdinalDate, ToDoSubOrdinal, ToDoTitle, UseTnef, ValidFlagStringProof, VerbResponse, VerbStream, WeddingAnniversaryLocal, WeekInterval, Where, WorkAddress, WorkAddressCity, WorkAddressCountry, WorkAddressCountryCode, WorkAddressPostalCode, WorkAddressPostOfficeBox, WorkAddressState, WorkAddressStreet, YearInterval, YomiCompanyName, YomiFirstName, YomiLastName, AcceptLanguage, ApplicationName, AttachmentMacContentType, AttachmentMacInfo, AudioNotes, Author, AutomaticSpeechRecognitionData, ByteCount, CalendarAttendeeRole, CalendarBusystatus, CalendarContact, CalendarContactUrl, CalendarCreated, CalendarDescriptionUrl, CalendarDuration, CalendarExceptionDate, CalendarExceptionRule, CalendarGeoLatitude, CalendarGeoLongitude, CalendarInstanceType, CalendarIsOrganizer, CalendarLastModified, CalendarLocationUrl, CalendarMeetingStatus, CalendarMethod, CalendarProductId, CalendarRecurrenceIdRange, CalendarReminderOffset, CalendarResources, CalendarRsvp, CalendarSequence, CalendarTimeZone, CalendarTimeZoneId, CalendarTransparent, CalendarUid, CalendarVersion, Category, CharacterCount, Comments, Company, ContentBase, ContentClass, ContentType, CreateDateTimeReadOnly, CrossReference, DavId, DavIsCollection, DavIsStructuredDocument, DavParentName, DavUid, DocumentParts, EditTime, ExchangeIntendedBusyStatus, ExchangeJunkEmailMoveStamp, ExchangeModifyExceptionStructure, ExchangeNoModifyExceptions, ExchangePatternEnd, ExchangePatternStart, ExchangeReminderInterval, ExchDatabaseSchema, ExchDataExpectedContentClass, ExchDataSchemaCollectionReference, ExtractedAddresses, ExtractedContacts, ExtractedEmails, ExtractedMeetings, ExtractedPhones, ExtractedTasks, ExtractedUrls, From, HeadingPairs, HiddenCount, HttpmailCalendar, HttpmailHtmlDescription, HttpmailSendMessage, ICalendarRecurrenceDate, ICalendarRecurrenceRule, InternetSubject, Keywords, LastAuthor, LastPrinted, LastSaveDateTime, LineCount, LinksDirty, LocationUrl, Manager, MultimediaClipCount, NoteCount, OMSAccountGuid, OMSMobileModel, OMSScheduleTime, OMSServiceType, OMSSourceType, PageCount, ParagraphCount, PhishingStamp, PresentationFormat, QuarantineOriginalSender, RevisionNumber, RightsManagementLicense, Scale, Security, SlideCount, Subject, Template, Thumbnail, Title, WordCount, XCallId, XFaxNumberOfPages, XRequireProtectedPlayOnPhone, XSenderTelephoneNumber, XSharingBrowseUrl, XSharingCapabilities, XSharingConfigUrl, XSharingExendedCaps, XSharingFlavor, XSharingInstanceGuid, XSharingLocalType, XSharingProviderGuid, XSharingProviderName, XSharingProviderUrl, XSharingRemoteName, XSharingRemotePath, XSharingRemoteStoreUid, XSharingRemoteType, XSharingRemoteUid, XVoiceMessageAttachmentOrder, XVoiceMessageDuration, XVoiceMessageSenderName, Access, AccessControlListData, AccessLevel, Account, AdditionalRenEntryIds, AdditionalRenEntryIdsEx, AddressBookAuthorizedSenders, AddressBookContainerId, AddressBookDeliveryContentLength, AddressBookDisplayNamePrintable, AddressBookDisplayTypeExtended, AddressBookDistributionListExternalMemberCount, AddressBookDistributionListMemberCount, AddressBookDistributionListMemberSubmitAccepted, AddressBookDistributionListMemberSubmitRejected, AddressBookDistributionListRejectMessagesFromDLMembers, AddressBookEntryId, AddressBookExtensionAttribute1, AddressBookExtensionAttribute10, AddressBookExtensionAttribute11, AddressBookExtensionAttribute12, AddressBookExtensionAttribute13, AddressBookExtensionAttribute14, AddressBookExtensionAttribute15, AddressBookExtensionAttribute2, AddressBookExtensionAttribute3, AddressBookExtensionAttribute4, AddressBookExtensionAttribute5, AddressBookExtensionAttribute6, AddressBookExtensionAttribute7, AddressBookExtensionAttribute8, AddressBookExtensionAttribute9, AddressBookFolderPathname, AddressBookHierarchicalChildDepartments, AddressBookHierarchicalDepartmentMembers, AddressBookHierarchicalIsHierarchicalGroup, AddressBookHierarchicalParentDepartment, AddressBookHierarchicalRootDepartment, AddressBookHierarchicalShowInDepartments, AddressBookHomeMessageDatabase, AddressBookIsMaster, AddressBookIsMemberOfDistributionList, AddressBookManageDistributionList, AddressBookManager, AddressBookManagerDistinguishedName, AddressBookMember, AddressBookMessageId, AddressBookModerationEnabled, AddressBookNetworkAddress, AddressBookObjectDistinguishedName, AddressBookObjectGuid, AddressBookOrganizationalUnitRootDistinguishedName, AddressBookOwner, AddressBookOwnerBackLink, AddressBookParentEntryId, AddressBookPhoneticCompanyName, AddressBookPhoneticDepartmentName, AddressBookPhoneticDisplayName, AddressBookPhoneticGivenName, AddressBookPhoneticSurname, AddressBookProxyAddresses, AddressBookPublicDelegates, AddressBookReports, AddressBookRoomCapacity, AddressBookRoomContainers, AddressBookRoomDescription, AddressBookSenderHintTranslations, AddressBookSeniorityIndex, AddressBookTargetAddress, AddressBookUnauthorizedSenders, AddressBookX509Certificate, AddressType, AlternateRecipientAllowed, Anr, ArchiveDate, ArchivePeriod, ArchiveTag, Assistant, AssistantTelephoneNumber, Associated, AttachAdditionalInformation, AttachContentBase, AttachContentId, AttachContentLocation, AttachDataBinary, AttachDataObject, AttachEncoding, AttachExtension, AttachFilename, AttachFlags, AttachLongFilename, AttachLongPathname, AttachmentContactPhoto, AttachmentFlags, AttachmentHidden, AttachmentLinkId, AttachMethod, AttachMimeTag, AttachNumber, AttachPathname, AttachPayloadClass, AttachPayloadProviderGuidString, AttachRendering, AttachSize, AttachTag, AttachTransportName, AttributeHidden, AttributeReadOnly, AutoForwardComment, AutoForwarded, AutoResponseSuppress, Birthday, BlockStatus, Body, BodyContentId, BodyContentLocation, BodyHtml, Business2TelephoneNumber, Business2TelephoneNumbers, BusinessFaxNumber, BusinessHomePage, BusinessTelephoneNumber, CallbackTelephoneNumber, CallId, CarTelephoneNumber, CdoRecurrenceid, ChangeKey, ChangeNumber, ChildrensNames, ClientActions, ClientSubmitTime, CodePageId, Comment, CompanyMainTelephoneNumber, CompanyName, ComputerNetworkName, ConflictEntryId, ContainerClass, ContainerContents, ContainerFlags, ContainerHierarchy, ContentCount, ContentFilterSpamConfidenceLevel, ContentUnreadCount, ConversationId, ConversationIndex, ConversationIndexTracking, ConversationTopic, Country, CreationTime, CreatorEntryId, CreatorName, CustomerId, DamBackPatched, DamOriginalEntryId, DefaultPostMessageClass, DeferredActionMessageOriginalEntryId, DeferredDeliveryTime, DeferredSendNumber, DeferredSendTime, DeferredSendUnits, DelegatedByRule, DelegateFlags, DeleteAfterSubmit, DeletedCountTotal, DeletedOn, DeliverTime, DepartmentName, Depth, DisplayBcc, DisplayCc, DisplayName, DisplayNamePrefix, DisplayTo, DisplayType, DisplayTypeEx, EmailAddress, EndDate, EntryId, ExceptionEndTime, TagExceptionReplaceTime, ExceptionStartTime, ExchangeNTSecurityDescriptor, ExpiryNumber, ExpiryTime, ExpiryUnits, ExtendedFolderFlags, ExtendedRuleMessageActions, ExtendedRuleMessageCondition, ExtendedRuleSizeLimit, FaxNumberOfPages, FlagCompleteTime, FlagStatus, FlatUrlName, FolderAssociatedContents, FolderId, FolderFlags, FolderType, FollowupIcon, FreeBusyCountMonths, FreeBusyEntryIds, FreeBusyMessageEmailAddress, FreeBusyPublishEnd, FreeBusyPublishStart, FreeBusyRangeTimestamp, FtpSite, GatewayNeedsToRefresh, Gender, Generation, GivenName, GovernmentIdNumber, HasAttachments, HasDeferredActionMessages, HasNamedProperties, HasRules, HierarchyChangeNumber, HierRev, Hobbies, Home2TelephoneNumber, Home2TelephoneNumbers, HomeAddressCity, HomeAddressCountry, HomeAddressPostalCode, HomeAddressPostOfficeBox, HomeAddressStateOrProvince, HomeAddressStreet, HomeFaxNumber, HomeTelephoneNumber, TagHtml, ICalendarEndTime, ICalendarReminderNextTime, ICalendarStartTime, IconIndex, Importance, InConflict, InitialDetailsPane, Initials, InReplyToId, InstanceKey, InstanceNum, InstID, InternetCodepage, InternetMailOverrideFormat, InternetMessageId, InternetReferences, IpmAppointmentEntryId, IpmContactEntryId, IpmDraftsEntryId, IpmJournalEntryId, IpmNoteEntryId, IpmTaskEntryId, IsdnNumber, JunkAddRecipientsToSafeSendersList, JunkIncludeContacts, JunkPermanentlyDelete, JunkPhishingEnableLinks, JunkThreshold, Keyword, Language, LastModificationTime, LastModifierEntryId, LastModifierName, LastVerbExecuted, LastVerbExecutionTime, ListHelp, ListSubscribe, ListUnsubscribe, LocalCommitTime, LocalCommitTimeMax, LocaleId, Locality, TagLocation, MailboxOwnerEntryId, MailboxOwnerName, ManagerName, MappingSignature, MaximumSubmitMessageSize, MemberId, MemberName, MemberRights, MessageAttachments, MessageCcMe, MessageClass, MessageCodepage, MessageDeliveryTime, MessageEditorFormat, MessageFlags, MessageHandlingSystemCommonName, MessageLocaleId, MessageRecipientMe, MessageRecipients, MessageSize, MessageSizeExtended, MessageStatus, MessageSubmissionId, MessageToMe, Mid, MiddleName, MimeSkeleton, MobileTelephoneNumber, NativeBody, NextSendAcct, Nickname, NonDeliveryReportDiagCode, NonDeliveryReportReasonCode, NonDeliveryReportStatusCode, NonReceiptNotificationRequested, NormalizedSubject, ObjectType, OfficeLocation, OfflineAddressBookContainerGuid, OfflineAddressBookDistinguishedName, OfflineAddressBookMessageClass, OfflineAddressBookName, OfflineAddressBookSequence, OfflineAddressBookTruncatedProperties, OrdinalMost, OrganizationalIdNumber, OriginalAuthorEntryId, OriginalAuthorName, OriginalDeliveryTime, OriginalDisplayBcc, OriginalDisplayCc, OriginalDisplayTo, OriginalEntryId, OriginalMessageClass, OriginalMessageId, OriginalSenderAddressType, OriginalSenderEmailAddress, OriginalSenderEntryId, OriginalSenderName, OriginalSenderSearchKey, OriginalSensitivity, OriginalSentRepresentingAddressType, OriginalSentRepresentingEmailAddress, OriginalSentRepresentingEntryId, OriginalSentRepresentingName, OriginalSentRepresentingSearchKey, OriginalSubject, OriginalSubmitTime, OriginatorDeliveryReportRequested, OriginatorNonDeliveryReportRequested, OscSyncEnabled, OtherAddressCity, OtherAddressCountry, OtherAddressPostalCode, OtherAddressPostOfficeBox, OtherAddressStateOrProvince, OtherAddressStreet, OtherTelephoneNumber, OutOfOfficeState, OwnerAppointmentId, PagerTelephoneNumber, ParentEntryId, ParentFolderId, ParentKey, ParentSourceKey, PersonalHomePage, PolicyTag, PostalAddress, PostalCode, PostOfficeBox, PredecessorChangeList, PrimaryFaxNumber, PrimarySendAccount, PrimaryTelephoneNumber, Priority, Processed, Profession, ProhibitReceiveQuota, ProhibitSendQuota, PurportedSenderDomain, RadioTelephoneNumber, Read, ReadReceiptAddressType, ReadReceiptEmailAddress, ReadReceiptEntryId, ReadReceiptName, ReadReceiptRequested, ReadReceiptSearchKey, ReadReceiptSmtpAddress, ReceiptTime, ReceivedByAddressType, ReceivedByEmailAddress, ReceivedByEntryId, ReceivedByName, ReceivedBySearchKey, ReceivedBySmtpAddress, ReceivedRepresentingAddressType, ReceivedRepresentingEmailAddress, ReceivedRepresentingEntryId, ReceivedRepresentingName, ReceivedRepresentingSearchKey, ReceivedRepresentingSmtpAddress, RecipientDisplayName, RecipientEntryId, RecipientFlags, RecipientOrder, RecipientProposed, RecipientProposedEndTime, RecipientProposedStartTime, RecipientReassignmentProhibited, RecipientTrackStatus, RecipientTrackStatusTime, RecipientType, RecordKey, ReferredByName, RemindersOnlineEntryId, RemoteMessageTransferAgent, RenderingPosition, ReplyRecipientEntries, ReplyRecipientNames, ReplyRequested, ReplyTemplateId, ReplyTime, ReportDisposition, ReportDispositionMode, ReportEntryId, ReportingMessageTransferAgent, ReportName, ReportSearchKey, ReportTag, ReportText, ReportTime, ResolveMethod, ResponseRequested, Responsibility, RetentionDate, RetentionFlags, RetentionPeriod, Rights, RoamingDatatypes, RoamingDictionary, RoamingXmlStream, Rowid, RowType, RtfCompressed, RtfInSync, RuleActionNumber, RuleActions, RuleActionType, RuleCondition, RuleError, RuleFolderEntryId, RuleId, RuleIds, RuleLevel, RuleMessageLevel, RuleMessageName, RuleMessageProvider, RuleMessageProviderData, RuleMessageSequence, RuleMessageState, RuleMessageUserFlags, RuleName, RuleProvider, RuleProviderData, RuleSequence, RuleState, RuleUserFlags, RwRulesStream, ScheduleInfoAppointmentTombstone, ScheduleInfoAutoAcceptAppointments, ScheduleInfoDelegateEntryIds, ScheduleInfoDelegateNames, ScheduleInfoDelegateNamesW, ScheduleInfoDelegatorWantsCopy, ScheduleInfoDelegatorWantsInfo, ScheduleInfoDisallowOverlappingAppts, ScheduleInfoDisallowRecurringAppts, ScheduleInfoDontMailDelegates, ScheduleInfoFreeBusy, ScheduleInfoFreeBusyAway, ScheduleInfoFreeBusyBusy, ScheduleInfoFreeBusyMerged, ScheduleInfoFreeBusyTentative, ScheduleInfoMonthsAway, ScheduleInfoMonthsBusy, ScheduleInfoMonthsMerged, ScheduleInfoMonthsTentative, ScheduleInfoResourceType, SchedulePlusFreeBusyEntryId, ScriptData, SearchFolderDefinition, SearchFolderEfpFlags, SearchFolderExpiration, SearchFolderId, SearchFolderLastUsed, SearchFolderRecreateInfo, SearchFolderStorageType, SearchFolderTag, SearchFolderTemplateId, SearchKey, SecurityDescriptorAsXml, Selectable, SenderAddressType, SenderEmailAddress, SenderEntryId, SenderIdStatus, SenderName, SenderSearchKey, SenderSmtpAddress, SenderTelephoneNumber, SendInternetEncoding, SendRichInfo, Sensitivity, SentMailSvrEID, SentRepresentingAddressType, SentRepresentingEmailAddress, SentRepresentingEntryId, SentRepresentingFlags, SentRepresentingName, SentRepresentingSearchKey, SentRepresentingSmtpAddress, SmtpAddress, SortLocaleId, SourceKey, SpokenName, SpouseName, StartDate, StartDateEtc, StateOrProvince, StoreEntryId, StoreState, StoreSupportMask, StreetAddress, Subfolders, TagSubject, SubjectPrefix, SupplementaryInfo, Surname, SwappedToDoData, SwappedToDoStore, TargetEntryId, TelecommunicationsDeviceForDeafTelephoneNumber, TelexNumber, TemplateData, Templateid, TextAttachmentCharset, ThumbnailPhoto, TagTitle, TnefCorrelationKey, ToDoItemFlags, TransmittableDisplayName, TransportMessageHeaders, TrustSender, UserCertificate, UserEntryId, UserX509Certificate, ViewDescriptorBinary, ViewDescriptorName, ViewDescriptorStrings, ViewDescriptorVersion, VoiceMessageAttachmentOrder, VoiceMessageDuration, VoiceMessageSenderName, WeddingAnniversary, WlinkAddressBookEID, WlinkAddressBookStoreEID, WlinkCalendarColor, WlinkClientID, WlinkEntryId, WlinkFlags, WlinkFolderType, WlinkGroupClsid, WlinkGroupHeaderID, WlinkGroupName, WlinkOrdinal, WlinkRecordKey, WlinkROGroupType, WlinkSaveStamp, WlinkSection, WlinkStoreEntryId, WlinkType, Abstract, ActiveUserEntryid, AddrbookForLocalSiteEntryid, AddressBookDisplayName, ArrivalTime, AssocMessageSize, AssocMessageSizeExtended, AssocMsgWAttachCount, AttachOnAssocMsgCount, AttachOnNormalMsgCount, AutoAddNewSubs, BilateralInfo, CachedColumnCount, CategCount, ChangeAdvisor, ChangeNotificationGuid, Collector, ContactCount, ContentSearchKey, ContentsSynchronizer, DeletedAssocMessageSizeExtended, DeletedAssocMsgCount, DeletedFolderCount, DeletedMessageSizeExtended, DeletedMsgCount, DeletedNormalMessageSizeExtended, DesignInProgress, DisableFullFidelity, DisableWinsock, DlReportFlags, EformsForLocaleEntryid, EformsLocaleId, EformsRegistryEntryid, EmsAbAccessCategory, EmsAbActivationSchedule, EmsAbActivationStyle, EmsAbAddressEntryDisplayTable, EmsAbAddressEntryDisplayTableMsdos, EmsAbAddressSyntax, EmsAbAddressType, EmsAbAdmd, EmsAbAdminDescription, EmsAbAdminDisplayName, EmsAbAdminExtensionDll, EmsAbAliasedObjectName, EmsAbAliasedObjectNameO, EmsAbAltRecipient, EmsAbAltRecipientBl, EmsAbAltRecipientBlO, EmsAbAltRecipientO, EmsAbAncestorId, EmsAbAnonymousAccess, EmsAbAnonymousAccount, EmsAbAssocNtAccount, EmsAbAssocProtocolCfgNntp, EmsAbAssocProtocolCfgNntpO, EmsAbAssocRemoteDxa, EmsAbAssocRemoteDxaO, EmsAbAssociationLifetime, EmsAbAttributeCertificate, EmsAbAuthOrigBl, EmsAbAuthOrigBlO, EmsAbAuthenticationToUse, EmsAbAuthorityRevocationList, EmsAbAuthorizedDomain, EmsAbAuthorizedPassword, EmsAbAuthorizedPasswordConfirm, EmsAbAuthorizedUser, EmsAbAutoreply, EmsAbAutoreplyMessage, EmsAbAutoreplySubject, EmsAbAvailableAuthorizationPackages, EmsAbAvailableDistributions, EmsAbBridgeheadServers, EmsAbBridgeheadServersO, EmsAbBusinessCategory, EmsAbBusinessRoles, EmsAbCaCertificate, EmsAbCanCreatePf, EmsAbCanCreatePfBl, EmsAbCanCreatePfBlO, EmsAbCanCreatePfDl, EmsAbCanCreatePfDlBl, EmsAbCanCreatePfDlBlO, EmsAbCanCreatePfDlO, EmsAbCanCreatePfO, EmsAbCanNotCreatePf, EmsAbCanNotCreatePfBl, EmsAbCanNotCreatePfBlO, EmsAbCanNotCreatePfDl, EmsAbCanNotCreatePfDlBl, EmsAbCanNotCreatePfDlBlO, EmsAbCanNotCreatePfDlO, EmsAbCanNotCreatePfO, EmsAbCanPreserveDns, EmsAbCertificateChainV3, EmsAbCertificateRevocationList, EmsAbCertificateRevocationListV1, EmsAbCertificateRevocationListV3, EmsAbCharacterSet, EmsAbCharacterSetList, EmsAbChildRdns, EmsAbClientAccessEnabled, EmsAbClockAlertOffset, EmsAbClockAlertRepair, EmsAbClockWarningOffset, EmsAbClockWarningRepair, EmsAbCompromisedKeyList, EmsAbComputerName, EmsAbConnectedDomains, EmsAbConnectionListFilter, EmsAbConnectionListFilterType, EmsAbConnectionType, EmsAbContainerInfo, EmsAbContentType, EmsAbControlMsgFolderId, EmsAbControlMsgRules, EmsAbCost, EmsAbCountryName, EmsAbCrossCertificateCrl, EmsAbCrossCertificatePair, EmsAbDefaultMessageFormat, EmsAbDelegateUser, EmsAbDelivEits, EmsAbDelivExtContTypes, EmsAbDeliverAndRedirect, EmsAbDeliveryMechanism, EmsAbDeltaRevocationList, EmsAbDescription, EmsAbDestinationIndicator, EmsAbDiagnosticRegKey, EmsAbDisableDeferredCommit, EmsAbDisabledGatewayProxy, EmsAbDisplayNameOverride, EmsAbDisplayNameSuffix, EmsAbDlMemRejectPermsBl, EmsAbDlMemRejectPermsBlO, EmsAbDlMemberRule, EmsAbDmdName, EmsAbDoOabVersion, EmsAbDomainDefAltRecip, EmsAbDomainDefAltRecipO, EmsAbDomainName, EmsAbDsaSignature, EmsAbDxaAdminCopy, EmsAbDxaAdminForward, EmsAbDxaAdminUpdate, EmsAbDxaAppendReqcn, EmsAbDxaConfContainerList, EmsAbDxaConfContainerListO, EmsAbDxaConfReqTime, EmsAbDxaConfSeq, EmsAbDxaConfSeqUsn, EmsAbDxaExchangeOptions, EmsAbDxaExportNow, EmsAbDxaFlags, EmsAbDxaImpSeq, EmsAbDxaImpSeqTime, EmsAbDxaImpSeqUsn, EmsAbDxaImportNow, EmsAbDxaInTemplateMap, EmsAbDxaLocalAdmin, EmsAbDxaLocalAdminO, EmsAbDxaLoggingLevel, EmsAbDxaNativeAddressType, EmsAbDxaOutTemplateMap, EmsAbDxaPassword, EmsAbDxaPrevExchangeOptions, EmsAbDxaPrevExportNativeOnly, EmsAbDxaPrevInExchangeSensitivity, EmsAbDxaPrevRemoteEntries, EmsAbDxaPrevRemoteEntriesO, EmsAbDxaPrevReplicationSensitivity, EmsAbDxaPrevTemplateOptions, EmsAbDxaPrevTypes, EmsAbDxaRecipientCp, EmsAbDxaRemoteClient, EmsAbDxaRemoteClientO, EmsAbDxaReqSeq, EmsAbDxaReqSeqTime, EmsAbDxaReqSeqUsn, EmsAbDxaReqname, EmsAbDxaSvrSeq, EmsAbDxaSvrSeqTime, EmsAbDxaSvrSeqUsn, EmsAbDxaTask, EmsAbDxaTemplateOptions, EmsAbDxaTemplateTimestamp, EmsAbDxaTypes, EmsAbDxaUnconfContainerList, EmsAbDxaUnconfContainerListO, EmsAbEmployeeNumber, EmsAbEmployeeType, EmsAbEnableCompatibility, EmsAbEnabled, EmsAbEnabledAuthorizationPackages, EmsAbEnabledProtocolCfg, EmsAbEnabledProtocols, EmsAbEncapsulationMethod, EmsAbEncrypt, EmsAbEncryptAlgListNa, EmsAbEncryptAlgListOther, EmsAbEncryptAlgSelectedNa, EmsAbEncryptAlgSelectedOther, EmsAbExpandDlsLocally, EmsAbExpirationTime, EmsAbExportContainers, EmsAbExportContainersO, EmsAbExportCustomRecipients, EmsAbExtendedCharsAllowed, EmsAbExtensionData, EmsAbExtensionName, EmsAbExtensionNameInherited, EmsAbFacsimileTelephoneNumber, EmsAbFileVersion, EmsAbFilterLocalAddresses, EmsAbFoldersContainer, EmsAbFoldersContainerO, EmsAbFormData, EmsAbForwardingAddress, EmsAbGarbageCollPeriod, EmsAbGatewayLocalCred, EmsAbGatewayLocalDesig, EmsAbGatewayProxy, EmsAbGatewayRoutingTree, EmsAbGenerationQualifier, EmsAbGroupByAttr1, EmsAbGroupByAttr2, EmsAbGroupByAttr3, EmsAbGroupByAttr4, EmsAbGroupByAttrValueDn, EmsAbGroupByAttrValueDnO, EmsAbGroupByAttrValueStr, EmsAbGwartLastModified, EmsAbHasFullReplicaNcs, EmsAbHasFullReplicaNcsO, EmsAbHasMasterNcs, EmsAbHasMasterNcsO, EmsAbHelpData16, EmsAbHelpData32, EmsAbHelpFileName, EmsAbHeuristics, EmsAbHideDlMembership, EmsAbHideFromAddressBook, EmsAbHierarchyPath, EmsAbHomeMdbBl, EmsAbHomeMdbBlO, EmsAbHomeMta, EmsAbHomeMtaO, EmsAbHomePublicServer, EmsAbHomePublicServerO, EmsAbHouseIdentifier, EmsAbHttpPubAbAttributes, EmsAbHttpPubGal, EmsAbHttpPubGalLimit, EmsAbHttpPubPf, EmsAbHttpServers, EmsAbImportContainer, EmsAbImportContainerO, EmsAbImportSensitivity, EmsAbImportedFrom, EmsAbInboundAcceptAll, EmsAbInboundDn, EmsAbInboundDnO, EmsAbInboundHost, EmsAbInboundNewsfeed, EmsAbInboundNewsfeedType, EmsAbInboundSites, EmsAbInboundSitesO, EmsAbIncomingMsgSizeLimit, EmsAbIncomingPassword, EmsAbInsadmin, EmsAbInsadminO, EmsAbInstanceType, EmsAbInternationalIsdnNumber, EmsAbInvocationId, EmsAbIsDeleted, EmsAbIsSingleValued, EmsAbKccStatus, EmsAbKmServer, EmsAbKmServerO, EmsAbKnowledgeInformation, EmsAbLabeleduri, EmsAbLanguage, EmsAbLanguageIso639, EmsAbLdapDisplayName, EmsAbLdapSearchCfg, EmsAbLineWrap, EmsAbLinkId, EmsAbListPublicFolders, EmsAbLocalBridgeHead, EmsAbLocalBridgeHeadAddress, EmsAbLocalInitialTurn, EmsAbLocalScope, EmsAbLocalScopeO, EmsAbLogFilename, EmsAbLogRolloverInterval, EmsAbMailDrop, EmsAbMaintainAutoreplyHistory, EmsAbMapiDisplayType, EmsAbMapiId, EmsAbMaximumObjectId, EmsAbMdbBackoffInterval, EmsAbMdbMsgTimeOutPeriod, EmsAbMdbOverQuotaLimit, EmsAbMdbStorageQuota, EmsAbMdbUnreadLimit, EmsAbMdbUseDefaults, EmsAbMessageTrackingEnabled, EmsAbMimeTypes, EmsAbModerated, EmsAbModerator, EmsAbMonitorClock, EmsAbMonitorServers, EmsAbMonitorServices, EmsAbMonitoredConfigurations, EmsAbMonitoredConfigurationsO, EmsAbMonitoredServers, EmsAbMonitoredServersO, EmsAbMonitoredServices, EmsAbMonitoringAlertDelay, EmsAbMonitoringAlertUnits, EmsAbMonitoringAvailabilityStyle, EmsAbMonitoringAvailabilityWindow, EmsAbMonitoringCachedViaMail, EmsAbMonitoringCachedViaMailO, EmsAbMonitoringCachedViaRpc, EmsAbMonitoringCachedViaRpcO, EmsAbMonitoringEscalationProcedure, EmsAbMonitoringHotsitePollInterval, EmsAbMonitoringHotsitePollUnits, EmsAbMonitoringMailUpdateInterval, EmsAbMonitoringMailUpdateUnits, EmsAbMonitoringNormalPollInterval, EmsAbMonitoringNormalPollUnits, EmsAbMonitoringRecipients, EmsAbMonitoringRecipientsNdr, EmsAbMonitoringRecipientsNdrO, EmsAbMonitoringRecipientsO, EmsAbMonitoringRpcUpdateInterval, EmsAbMonitoringRpcUpdateUnits, EmsAbMonitoringWarningDelay, EmsAbMonitoringWarningUnits, EmsAbMtaLocalCred, EmsAbMtaLocalDesig, EmsAbNAddress, EmsAbNAddressType, EmsAbNewsfeedType, EmsAbNewsgroup, EmsAbNewsgroupList, EmsAbNntpCharacterSet, EmsAbNntpContentFormat, EmsAbNntpDistributions, EmsAbNntpDistributionsFlag, EmsAbNntpNewsfeeds, EmsAbNntpNewsfeedsO, EmsAbNtMachineName, EmsAbNtSecurityDescriptor, EmsAbNumOfOpenRetries, EmsAbNumOfTransferRetries, EmsAbObjViewContainers, EmsAbObjViewContainersO, EmsAbObjectClassCategory, EmsAbObjectOid, EmsAbObjectVersion, EmsAbOffLineAbContainers, EmsAbOffLineAbContainersO, EmsAbOffLineAbSchedule, EmsAbOffLineAbServer, EmsAbOffLineAbServerO, EmsAbOffLineAbStyle, EmsAbOidType, EmsAbOmObjectClass, EmsAbOmSyntax, EmsAbOofReplyToOriginator, EmsAbOpenRetryInterval, EmsAbOrganizationName, EmsAbOrganizationalUnitName, EmsAbOriginalDisplayTable, EmsAbOriginalDisplayTableMsdos, EmsAbOtherRecips, EmsAbOutboundHost, EmsAbOutboundHostType, EmsAbOutboundNewsfeed, EmsAbOutboundSites, EmsAbOutboundSitesO, EmsAbOutgoingMsgSizeLimit, EmsAbOverrideNntpContentFormat, EmsAbOwaServer, EmsAbPSelector, EmsAbPSelectorInbound, EmsAbPerMsgDialogDisplayTable, EmsAbPerRecipDialogDisplayTable, EmsAbPeriodRepSyncTimes, EmsAbPeriodReplStagger, EmsAbPersonalTitle, EmsAbPfContacts, EmsAbPfContactsO, EmsAbPopCharacterSet, EmsAbPopContentFormat, EmsAbPortNumber, EmsAbPostalAddress, EmsAbPreferredDeliveryMethod, EmsAbPreserveInternetContent, EmsAbPrmd, EmsAbPromoExpiration, EmsAbProtocolSettings, EmsAbProxyGenerationEnabled, EmsAbProxyGeneratorDll, EmsAbPublicDelegatesBl, EmsAbPublicDelegatesBlO, EmsAbQuotaNotificationSchedule, EmsAbQuotaNotificationStyle, EmsAbRangeLower, EmsAbRangeUpper, EmsAbRasAccount, EmsAbRasCallbackNumber, EmsAbRasPassword, EmsAbRasPhoneNumber, EmsAbRasPhonebookEntryName, EmsAbRasRemoteSrvrName, EmsAbReferralList, EmsAbRegisteredAddress, EmsAbRemoteBridgeHead, EmsAbRemoteBridgeHeadAddress, EmsAbRemoteOutBhServer, EmsAbRemoteOutBhServerO, EmsAbRemoteSite, EmsAbRemoteSiteO, EmsAbReplicatedObjectVersion, EmsAbReplicationMailMsgSize, EmsAbReplicationSensitivity, EmsAbReplicationStagger, EmsAbReportToOriginator, EmsAbReportToOwner, EmsAbReqSeq, EmsAbRequireSsl, EmsAbResponsibleLocalDxa, EmsAbResponsibleLocalDxaO, EmsAbReturnExactMsgSize, EmsAbRidServer, EmsAbRidServerO, EmsAbRoleOccupant, EmsAbRoleOccupantO, EmsAbRootNewsgroupsFolderId, EmsAbRoutingList, EmsAbRtsCheckpointSize, EmsAbRtsRecoveryTimeout, EmsAbRtsWindowSize, EmsAbRunsOn, EmsAbRunsOnO, EmsAbSSelector, EmsAbSSelectorInbound, EmsAbSchemaFlags, EmsAbSchemaVersion, EmsAbSearchFlags, EmsAbSearchGuide, EmsAbSecurityPolicy, EmsAbSecurityProtocol, EmsAbSeeAlso, EmsAbSeeAlsoO, EmsAbSendEmailMessage, EmsAbSendTnef, EmsAbSerialNumber, EmsAbServer, EmsAbServiceActionFirst, EmsAbServiceActionOther, EmsAbServiceActionSecond, EmsAbServiceRestartDelay, EmsAbServiceRestartMessage, EmsAbSessionDisconnectTimer, EmsAbSiteAffinity, EmsAbSiteFolderGuid, EmsAbSiteFolderServer, EmsAbSiteFolderServerO, EmsAbSiteProxySpace, EmsAbSmimeAlgListNa, EmsAbSmimeAlgListOther, EmsAbSmimeAlgSelectedNa, EmsAbSmimeAlgSelectedOther, EmsAbSpaceLastComputed, EmsAbStreetAddress, EmsAbSubRefs, EmsAbSubRefsO, EmsAbSubSite, EmsAbSubmissionContLength, EmsAbSupportSmimeSignatures, EmsAbSupportedAlgorithms, EmsAbSupportedApplicationContext, EmsAbSupportingStack, EmsAbSupportingStackBl, EmsAbSupportingStackBlO, EmsAbSupportingStackO, EmsAbTSelector, EmsAbTSelectorInbound, EmsAbTargetMtas, EmsAbTelephoneNumber, EmsAbTelephonePersonalPager, EmsAbTeletexTerminalIdentifier, EmsAbTempAssocThreshold, EmsAbTombstoneLifetime, EmsAbTrackingLogPathName, EmsAbTransRetryMins, EmsAbTransTimeoutMins, EmsAbTransferRetryInterval, EmsAbTransferTimeoutNonUrgent, EmsAbTransferTimeoutNormal, EmsAbTransferTimeoutUrgent, EmsAbTranslationTableUsed, EmsAbTransportExpeditedData, EmsAbTrustLevel, EmsAbTurnRequestThreshold, EmsAbTwoWayAlternateFacility, EmsAbType, EmsAbUnauthOrigBl, EmsAbUnauthOrigBlO, EmsAbUseServerValues, EmsAbUseSiteValues, EmsAbUsenetSiteName, EmsAbUserPassword, EmsAbUsnChanged, EmsAbUsnCreated, EmsAbUsnDsaLastObjRemoved, EmsAbUsnIntersite, EmsAbUsnLastObjRem, EmsAbUsnSource, EmsAbViewContainer1, EmsAbViewContainer2, EmsAbViewContainer3, EmsAbViewDefinition, EmsAbViewFlags, EmsAbViewSite, EmsAbVoiceMailFlags, EmsAbVoiceMailGreetings, EmsAbVoiceMailPassword, EmsAbVoiceMailRecordedName, EmsAbVoiceMailRecordingLength, EmsAbVoiceMailSpeed, EmsAbVoiceMailSystemGuid, EmsAbVoiceMailUserId, EmsAbVoiceMailVolume, EmsAbWwwHomePage, EmsAbX121Address, EmsAbX25CallUserDataIncoming, EmsAbX25CallUserDataOutgoing, EmsAbX25FacilitiesDataIncoming, EmsAbX25FacilitiesDataOutgoing, EmsAbX25LeasedLinePort, EmsAbX25LeasedOrSwitched, EmsAbX25RemoteMtaPhone, EmsAbX400AttachmentType, EmsAbX400SelectorSyntax, EmsAbX500AccessControlList, EmsAbX500Nc, EmsAbX500Rdn, EmsAbXmitTimeoutNonUrgent, EmsAbXmitTimeoutNormal, EmsAbXmitTimeoutUrgent, EventsRootFolderEntryid, ExcessStorageUsed, ExtendedAclData, FastTransfer, FavoritesDefaultName, FolderChildCount, FolderDesignFlags, FolderPathname, ForeignId, ForeignReportId, ForeignSubjectId, FreeBusyForLocalSiteEntryid, GwAdminOperations, GwMtsinEntryid, GwMtsoutEntryid, HasModeratorRules, HierarchyServer, HierarchySynchronizer, ImapInternalDate, InTransit, InboundNewsfeedDn, InternetCharset, InternetNewsgroupName, IpmDafEntryid, IpmFavoritesEntryid, IpmPublicFoldersEntryid, IsNewsgroup, IsNewsgroupAnchor, LastAccessTime, LastFullBackup, LastLogoffTime, LastLogonTime, LongtermEntryidFromTable, MessageProcessed, MessageSiteName, MoveToFolderEntryid, MoveToStoreEntryid, MsgBodyId, MtsSubjectId, NewSubsGetAutoAdd, NewsfeedInfo, NewsgroupComponent, NewsgroupRootFolderEntryid, NntpArticleFolderEntryid, NntpControlFolderEntryid, NonIpmSubtreeEntryid, NormalMessageSize, NormalMessageSizeExtended, NormalMsgWAttachCount, NtUserName, OfflineAddrbookEntryid, OfflineFlags, OfflineMessageEntryid, OldestDeletedOn, OriginatorAddr, OriginatorAddrtype, OriginatorEntryid, OriginatorName, OstEncryption, OutboundNewsfeedDn, OverallAgeLimit, OverallMsgAgeLimit, OwaUrl, OwnerCount, P1Content, P1ContentType, PreventMsgCreate, Preview, PreviewUnread, ProfileAbFilesPath, ProfileAddrInfo, ProfileAllpubComment, ProfileAllpubDisplayName, ProfileBindingOrder, ProfileConfigFlags, ProfileConnectFlags, ProfileFavfldComment, ProfileFavfldDisplayName, ProfileHomeServer, ProfileHomeServerAddrs, ProfileHomeServerDn, ProfileMailbox, ProfileMaxRestrict, ProfileMoab, ProfileMoabGuid, ProfileMoabSeq, ProfileOfflineInfo, ProfileOfflineStorePath, ProfileOpenFlags, ProfileOptionsData, ProfileSecureMailbox, ProfileServer, ProfileServerDn, ProfileTransportFlags, ProfileType, ProfileUiState, ProfileUnresolvedName, ProfileUnresolvedServer, ProfileUser, ProfileVersion, PstEncryption, PstPath, PstPwSzOld, PstRememberPw, PublicFolderEntryid, PublishInAddressBook, RecipientNumber, RecipientOnAssocMsgCount, RecipientOnNormalMsgCount, ReplicaList, ReplicaServer, ReplicaVersion, ReplicationAlwaysInterval, ReplicationMessagePriority, ReplicationMsgSize, ReplicationSchedule, ReplicationStyle, ReplyRecipientSmtpProxies, ReportDestinationEntryid, ReportDestinationName, RestrictionCount, RetentionAgeLimit, RuleTriggerHistory, RulesData, RulesTable, ScheduleFolderEntryid, SecureInSite, SecureOrigination, StorageLimitInformation, StorageQuotaLimit, StoreOffline, StoreSlowlink, SubjectTraceInfo, SvrGeneratingQuotaMsg, SynchronizeFlags, SysConfigFolderEntryid, TestLineSpeed, TraceInfo, TransferEnabled, UserName, X400EnvelopeType, AbDefaultDir, AbDefaultPab, AbProviderId, AbProviders, AbSearchPath, AbSearchPathUpdate, AlternateRecipient, AssocContentCount, AttachmentX400Parameters, AuthorizingUsers, BodyCrc, CommonViewsEntryid, ContactAddrtypes, ContactDefaultAddressIndex, ContactEmailAddresses, ContactEntryids, ContactVersion, ContainerModifyVersion, ContentConfidentialityAlgorithmId, ContentCorrelator, ContentIdentifier, ContentIntegrityCheck, ContentLength, ContentReturnRequested, ContentsSortOrder, ControlFlags, ControlId, ControlStructure, ControlType, ConversationKey, ConversionEits, ConversionProhibited, ConversionWithLossProhibited, ConvertedEits, Correlate, CorrelateMtsid, CreateTemplates, CreationVersion, ExCurrentVersion, DefCreateDl, DefCreateMailuser, DefaultProfile, DefaultStore, DefaultViewEntryid, Delegation, DeliveryPoint, Deltax, Deltay, DetailsTable, DiscVal, DiscardReason, DiscloseRecipients, DisclosureOfRecipients, DiscreteValues, DlExpansionHistory, DlExpansionProhibited, ExplicitConversion, FilteringHooks, FinderEntryid, FormCategory, FormCategorySub, FormClsid, FormContactName, FormDesignerGuid, FormDesignerName, FormHidden, FormHostMap, FormMessageBehavior, FormVersion, HeaderFolderEntryid, Icon, IdentityDisplay, IdentityEntryid, IdentitySearchKey, ImplicitConversionProhibited, IncompleteCopy, InternetApproved, InternetArticleNumber, InternetControl, InternetDistribution, InternetFollowupTo, InternetLines, InternetNewsgroups, InternetNntpPath, InternetOrganization, InternetPrecedence, IpmId, IpmOutboxEntryid, IpmOutboxSearchKey, IpmReturnRequested, IpmSentmailEntryid, IpmSentmailSearchKey, IpmSubtreeEntryid, IpmSubtreeSearchKey, IpmWastebasketEntryid, IpmWastebasketSearchKey, Languages, LatestDeliveryTime, MailPermission, MdbProvider, MessageDeliveryId, MessageDownloadTime, MessageSecurityLabel, MessageToken, MiniIcon, ModifyVersion, NewsgroupName, NntpXref, NonReceiptReason, ObsoletedIpms, OriginCheck, OriginalAuthorAddrtype, OriginalAuthorEmailAddress, OriginalAuthorSearchKey, OriginalDisplayName, OriginalEits, OriginalSearchKey, OriginallyIntendedRecipAddrtype, OriginallyIntendedRecipEmailAddress, OriginallyIntendedRecipEntryid, OriginallyIntendedRecipientName, OriginatingMtaCertificate, OriginatorAndDlExpansionHistory, OriginatorCertificate, OriginatorRequestedAlternateRecipient, OriginatorReturnAddress, OwnStoreEntryid, ParentDisplay, PhysicalDeliveryBureauFaxDelivery, PhysicalDeliveryMode, PhysicalDeliveryReportRequest, PhysicalForwardingAddress, PhysicalForwardingAddressRequested, PhysicalForwardingProhibited, PhysicalRenditionAttributes, PostFolderEntries, PostFolderNames, PostReplyDenied, PostReplyFolderEntries, PostReplyFolderNames, Preprocess, PrimaryCapability, ProfileName, ProofOfDelivery, ProofOfDeliveryRequested, ProofOfSubmission, ProofOfSubmissionRequested, ProviderDisplay, ProviderDllName, ProviderOrdinal, ProviderSubmitTime, ProviderUid, ReceiveFolderSettings, RecipientCertificate, RecipientNumberForAdvice, RecipientStatus, RedirectionHistory, RegisteredMailType, RelatedIpms, RemoteProgress, RemoteProgressText, RemoteValidateOk, ReportingDlName, ReportingMtaCertificate, RequestedDeliveryMethod, ResourceFlags, ResourceMethods, ResourcePath, ResourceType, ReturnedIpm, RtfSyncBodyCount, RtfSyncBodyCrc, RtfSyncBodyTag, RtfSyncPrefixCount, RtfSyncTrailingCount, Search, ExSecurity, SentmailEntryid, ServiceDeleteFiles, ServiceDllName, ServiceEntryName, ServiceExtraUids, ServiceName, ServiceSupportFiles, ServiceUid, Services, SpoolerStatus, Status, StatusCode, StatusString, StoreProviders, StoreRecordKey, SubjectIpm, SubmitFlags, Supersedes, TransportKey, TransportProviders, TransportStatus, TypeOfMtsUser, ValidFolderMask, ViewsEntryid, X400ContentType, X400DeferredDeliveryCancel, Xpos, Ypos :return: The name of this MapiKnownPropertyDescriptor. @@ -82,13 +79,16 @@ def name(self) -> str: @name.setter def name(self, name: str): - """Sets the name of this MapiKnownPropertyDescriptor. - + """ Known property name. See all known properties here: https://apireference.aspose.com/email/net/aspose.email.mapi/knownpropertylist/fields/index Possible values: Mileage, ObjectUri, GDataContactVersion, GDataPhotoVersion, AddressBookProviderArrayType, AddressBookProviderEmailList, AddressCountryCode, AgingDontAgeMe, AllAttendeesString, AllowExternalCheck, AnniversaryEventEntryId, AppointmentAuxiliaryFlags, AppointmentColor, AppointmentCounterProposal, AppointmentDuration, AppointmentEndDate, AppointmentEndTime, AppointmentEndWhole, AppointmentLastSequence, AppointmentMessageClass, AppointmentNotAllowPropose, AppointmentProposalNumber, AppointmentProposedDuration, AppointmentProposedEndWhole, AppointmentProposedStartWhole, AppointmentRecur, AppointmentReplyName, AppointmentReplyTime, AppointmentSequence, AppointmentSequenceTime, AppointmentStartDate, AppointmentStartTime, AppointmentStartWhole, AppointmentStateFlags, AppointmentSubType, AppointmentTimeZoneDefinitionEndDisplay, AppointmentTimeZoneDefinitionRecur, AppointmentTimeZoneDefinitionStartDisplay, AppointmentUnsendableRecipients, AppointmentUpdateTime, AttendeeCriticalChange, AutoFillLocation, AutoLog, AutoProcessState, AutoStartCheck, Billing, BirthdayEventEntryId, BirthdayLocal, BusinessCardCardPicture, BusinessCardDisplayDefinition, BusyStatus, CalendarType, Categories, CcAttendeesString, ChangeHighlight, Classification, ClassificationDescription, ClassificationGuid, ClassificationKeep, Classified, CleanGlobalObjectId, ClientIntent, ClipEnd, ClipStart, CollaborateDoc, CommonEnd, CommonStart, Companies, ConferencingCheck, ConferencingType, ContactCharacterSet, ContactItemData, ContactLinkedGlobalAddressListEntryId, ContactLinkEntry, ContactLinkGlobalAddressListLinkId, ContactLinkGlobalAddressListLinkState, ContactLinkLinkRejectHistory, ContactLinkName, ContactLinkSearchKey, ContactLinkSMTPAddressCache, Contacts, ContactUserField1, ContactUserField2, ContactUserField3, ContactUserField4, ConversationActionLastAppliedTime, ConversationActionMaxDeliveryTime, ConversationActionMoveFolderEid, ConversationActionMoveStoreEid, ConversationActionVersion, ConversationProcessed, CurrentVersion, CurrentVersionName, DayInterval, DayOfMonth, DelegateMail, Department, Directory, DistributionListChecksum, DistributionListMembers, DistributionListName, DistributionListOneOffMembers, DistributionListStream, Email1AddressType, Email1DisplayName, Email1EmailAddress, Email1OriginalDisplayName, Email1OriginalEntryId, Email2AddressType, Email2DisplayName, Email2EmailAddress, Email2OriginalDisplayName, Email2OriginalEntryId, Email3AddressType, Email3DisplayName, Email3EmailAddress, Email3OriginalDisplayName, Email3OriginalEntryId, EndRecurrenceDate, EndRecurrenceTime, ExceptionReplaceTime, Fax1AddressType, Fax1EmailAddress, Fax1OriginalDisplayName, Fax1OriginalEntryId, Fax2AddressType, Fax2EmailAddress, Fax2OriginalDisplayName, Fax2OriginalEntryId, Fax3AddressType, Fax3EmailAddress, Fax3OriginalDisplayName, Fax3OriginalEntryId, FExceptionalAttendees, FExceptionalBody, FileUnder, FileUnderId, FileUnderList, FInvited, FlagRequest, FlagString, ForwardInstance, ForwardNotificationRecipients, FOthersAppointment, FreeBusyLocation, GlobalObjectId, HasPicture, HomeAddress, HomeAddressCountryCode, Html, ICalendarDayOfWeekMask, InboundICalStream, InfoPathFormName, InstantMessagingAddress, IntendedBusyStatus, InternetAccountName, InternetAccountStamp, IsContactLinked, IsException, IsRecurring, IsSilent, LinkedTaskItems, Location, LogDocumentPosted, LogDocumentPrinted, LogDocumentRouted, LogDocumentSaved, LogDuration, LogEnd, LogFlags, LogStart, LogType, LogTypeDesc, MeetingType, MeetingWorkspaceUrl, MonthInterval, MonthOfYear, MonthOfYearMask, NetShowUrl, NoEndDateFlag, NonSendableBcc, NonSendableCc, NonSendableTo, NonSendBccTrackStatus, NonSendCcTrackStatus, NonSendToTrackStatus, NoteColor, NoteHeight, NoteWidth, NoteX, NoteY, Occurrences, OldLocation, OldRecurrenceType, OldWhenEndWhole, OldWhenStartWhole, OnlinePassword, OptionalAttendees, OrganizerAlias, OriginalStoreEntryId, OtherAddress, OtherAddressCountryCode, OwnerCriticalChange, OwnerName, PendingStateForSiteMailboxDocument, PercentComplete, PostalAddressId, PostRssChannel, PostRssChannelLink, PostRssItemGuid, PostRssItemHash, PostRssItemLink, PostRssItemXml, PostRssSubscription, Private, PromptSendUpdate, RecurrenceDuration, RecurrencePattern, RecurrenceType, Recurring, ReferenceEntryId, ReminderDelta, ReminderFileParameter, ReminderOverride, ReminderPlaySound, ReminderSet, ReminderSignalTime, ReminderTime, ReminderTimeDate, ReminderTimeTime, ReminderType, RemoteStatus, RequiredAttendees, ResourceAttendees, ResponseStatus, ServerProcessed, ServerProcessingActions, SharingAnonymity, SharingBindingEntryId, SharingBrowseUrl, SharingCapabilities, SharingConfigurationUrl, SharingDataRangeEnd, SharingDataRangeStart, SharingDetail, SharingExtensionXml, SharingFilter, SharingFlags, SharingFlavor, SharingFolderEntryId, SharingIndexEntryId, SharingInitiatorEntryId, SharingInitiatorName, SharingInitiatorSmtp, SharingInstanceGuid, SharingLastAutoSyncTime, SharingLastSyncTime, SharingLocalComment, SharingLocalLastModificationTime, SharingLocalName, SharingLocalPath, SharingLocalStoreUid, SharingLocalType, SharingLocalUid, SharingOriginalMessageEntryId, SharingParentBindingEntryId, SharingParticipants, SharingPermissions, SharingProviderExtension, SharingProviderGuid, SharingProviderName, SharingProviderUrl, SharingRangeEnd, SharingRangeStart, SharingReciprocation, SharingRemoteByteSize, SharingRemoteComment, SharingRemoteCrc, SharingRemoteLastModificationTime, SharingRemoteMessageCount, SharingRemoteName, SharingRemotePass, SharingRemotePath, SharingRemoteStoreUid, SharingRemoteType, SharingRemoteUid, SharingRemoteUser, SharingRemoteVersion, SharingResponseTime, SharingResponseType, SharingRoamLog, SharingStart, SharingStatus, SharingStop, SharingSyncFlags, SharingSyncInterval, SharingTimeToLive, SharingTimeToLiveAuto, SharingWorkingHoursDays, SharingWorkingHoursEnd, SharingWorkingHoursStart, SharingWorkingHoursTimeZone, SideEffects, SingleBodyICal, SmartNoAttach, SpamOriginalFolder, StartRecurrenceDate, StartRecurrenceTime, TaskAcceptanceState, TaskAccepted, TaskActualEffort, TaskAssigner, TaskAssigners, TaskComplete, TaskCustomFlags, TaskDateCompleted, TaskDeadOccurrence, TaskDueDate, TaskEstimatedEffort, TaskFCreator, TaskFFixOffline, TaskFRecurring, TaskGlobalId, TaskHistory, TaskLastDelegate, TaskLastUpdate, TaskLastUser, TaskMode, TaskMultipleRecipients, TaskNoCompute, TaskOrdinal, TaskOwner, TaskOwnership, TaskRecurrence, TaskResetReminder, TaskRole, TaskStartDate, TaskState, TaskStatus, TaskStatusOnComplete, TaskUpdates, TaskVersion, TeamTask, TimeZone, TimeZoneDescription, TimeZoneStruct, ToAttendeesString, ToDoOrdinalDate, ToDoSubOrdinal, ToDoTitle, UseTnef, ValidFlagStringProof, VerbResponse, VerbStream, WeddingAnniversaryLocal, WeekInterval, Where, WorkAddress, WorkAddressCity, WorkAddressCountry, WorkAddressCountryCode, WorkAddressPostalCode, WorkAddressPostOfficeBox, WorkAddressState, WorkAddressStreet, YearInterval, YomiCompanyName, YomiFirstName, YomiLastName, AcceptLanguage, ApplicationName, AttachmentMacContentType, AttachmentMacInfo, AudioNotes, Author, AutomaticSpeechRecognitionData, ByteCount, CalendarAttendeeRole, CalendarBusystatus, CalendarContact, CalendarContactUrl, CalendarCreated, CalendarDescriptionUrl, CalendarDuration, CalendarExceptionDate, CalendarExceptionRule, CalendarGeoLatitude, CalendarGeoLongitude, CalendarInstanceType, CalendarIsOrganizer, CalendarLastModified, CalendarLocationUrl, CalendarMeetingStatus, CalendarMethod, CalendarProductId, CalendarRecurrenceIdRange, CalendarReminderOffset, CalendarResources, CalendarRsvp, CalendarSequence, CalendarTimeZone, CalendarTimeZoneId, CalendarTransparent, CalendarUid, CalendarVersion, Category, CharacterCount, Comments, Company, ContentBase, ContentClass, ContentType, CreateDateTimeReadOnly, CrossReference, DavId, DavIsCollection, DavIsStructuredDocument, DavParentName, DavUid, DocumentParts, EditTime, ExchangeIntendedBusyStatus, ExchangeJunkEmailMoveStamp, ExchangeModifyExceptionStructure, ExchangeNoModifyExceptions, ExchangePatternEnd, ExchangePatternStart, ExchangeReminderInterval, ExchDatabaseSchema, ExchDataExpectedContentClass, ExchDataSchemaCollectionReference, ExtractedAddresses, ExtractedContacts, ExtractedEmails, ExtractedMeetings, ExtractedPhones, ExtractedTasks, ExtractedUrls, From, HeadingPairs, HiddenCount, HttpmailCalendar, HttpmailHtmlDescription, HttpmailSendMessage, ICalendarRecurrenceDate, ICalendarRecurrenceRule, InternetSubject, Keywords, LastAuthor, LastPrinted, LastSaveDateTime, LineCount, LinksDirty, LocationUrl, Manager, MultimediaClipCount, NoteCount, OMSAccountGuid, OMSMobileModel, OMSScheduleTime, OMSServiceType, OMSSourceType, PageCount, ParagraphCount, PhishingStamp, PresentationFormat, QuarantineOriginalSender, RevisionNumber, RightsManagementLicense, Scale, Security, SlideCount, Subject, Template, Thumbnail, Title, WordCount, XCallId, XFaxNumberOfPages, XRequireProtectedPlayOnPhone, XSenderTelephoneNumber, XSharingBrowseUrl, XSharingCapabilities, XSharingConfigUrl, XSharingExendedCaps, XSharingFlavor, XSharingInstanceGuid, XSharingLocalType, XSharingProviderGuid, XSharingProviderName, XSharingProviderUrl, XSharingRemoteName, XSharingRemotePath, XSharingRemoteStoreUid, XSharingRemoteType, XSharingRemoteUid, XVoiceMessageAttachmentOrder, XVoiceMessageDuration, XVoiceMessageSenderName, Access, AccessControlListData, AccessLevel, Account, AdditionalRenEntryIds, AdditionalRenEntryIdsEx, AddressBookAuthorizedSenders, AddressBookContainerId, AddressBookDeliveryContentLength, AddressBookDisplayNamePrintable, AddressBookDisplayTypeExtended, AddressBookDistributionListExternalMemberCount, AddressBookDistributionListMemberCount, AddressBookDistributionListMemberSubmitAccepted, AddressBookDistributionListMemberSubmitRejected, AddressBookDistributionListRejectMessagesFromDLMembers, AddressBookEntryId, AddressBookExtensionAttribute1, AddressBookExtensionAttribute10, AddressBookExtensionAttribute11, AddressBookExtensionAttribute12, AddressBookExtensionAttribute13, AddressBookExtensionAttribute14, AddressBookExtensionAttribute15, AddressBookExtensionAttribute2, AddressBookExtensionAttribute3, AddressBookExtensionAttribute4, AddressBookExtensionAttribute5, AddressBookExtensionAttribute6, AddressBookExtensionAttribute7, AddressBookExtensionAttribute8, AddressBookExtensionAttribute9, AddressBookFolderPathname, AddressBookHierarchicalChildDepartments, AddressBookHierarchicalDepartmentMembers, AddressBookHierarchicalIsHierarchicalGroup, AddressBookHierarchicalParentDepartment, AddressBookHierarchicalRootDepartment, AddressBookHierarchicalShowInDepartments, AddressBookHomeMessageDatabase, AddressBookIsMaster, AddressBookIsMemberOfDistributionList, AddressBookManageDistributionList, AddressBookManager, AddressBookManagerDistinguishedName, AddressBookMember, AddressBookMessageId, AddressBookModerationEnabled, AddressBookNetworkAddress, AddressBookObjectDistinguishedName, AddressBookObjectGuid, AddressBookOrganizationalUnitRootDistinguishedName, AddressBookOwner, AddressBookOwnerBackLink, AddressBookParentEntryId, AddressBookPhoneticCompanyName, AddressBookPhoneticDepartmentName, AddressBookPhoneticDisplayName, AddressBookPhoneticGivenName, AddressBookPhoneticSurname, AddressBookProxyAddresses, AddressBookPublicDelegates, AddressBookReports, AddressBookRoomCapacity, AddressBookRoomContainers, AddressBookRoomDescription, AddressBookSenderHintTranslations, AddressBookSeniorityIndex, AddressBookTargetAddress, AddressBookUnauthorizedSenders, AddressBookX509Certificate, AddressType, AlternateRecipientAllowed, Anr, ArchiveDate, ArchivePeriod, ArchiveTag, Assistant, AssistantTelephoneNumber, Associated, AttachAdditionalInformation, AttachContentBase, AttachContentId, AttachContentLocation, AttachDataBinary, AttachDataObject, AttachEncoding, AttachExtension, AttachFilename, AttachFlags, AttachLongFilename, AttachLongPathname, AttachmentContactPhoto, AttachmentFlags, AttachmentHidden, AttachmentLinkId, AttachMethod, AttachMimeTag, AttachNumber, AttachPathname, AttachPayloadClass, AttachPayloadProviderGuidString, AttachRendering, AttachSize, AttachTag, AttachTransportName, AttributeHidden, AttributeReadOnly, AutoForwardComment, AutoForwarded, AutoResponseSuppress, Birthday, BlockStatus, Body, BodyContentId, BodyContentLocation, BodyHtml, Business2TelephoneNumber, Business2TelephoneNumbers, BusinessFaxNumber, BusinessHomePage, BusinessTelephoneNumber, CallbackTelephoneNumber, CallId, CarTelephoneNumber, CdoRecurrenceid, ChangeKey, ChangeNumber, ChildrensNames, ClientActions, ClientSubmitTime, CodePageId, Comment, CompanyMainTelephoneNumber, CompanyName, ComputerNetworkName, ConflictEntryId, ContainerClass, ContainerContents, ContainerFlags, ContainerHierarchy, ContentCount, ContentFilterSpamConfidenceLevel, ContentUnreadCount, ConversationId, ConversationIndex, ConversationIndexTracking, ConversationTopic, Country, CreationTime, CreatorEntryId, CreatorName, CustomerId, DamBackPatched, DamOriginalEntryId, DefaultPostMessageClass, DeferredActionMessageOriginalEntryId, DeferredDeliveryTime, DeferredSendNumber, DeferredSendTime, DeferredSendUnits, DelegatedByRule, DelegateFlags, DeleteAfterSubmit, DeletedCountTotal, DeletedOn, DeliverTime, DepartmentName, Depth, DisplayBcc, DisplayCc, DisplayName, DisplayNamePrefix, DisplayTo, DisplayType, DisplayTypeEx, EmailAddress, EndDate, EntryId, ExceptionEndTime, TagExceptionReplaceTime, ExceptionStartTime, ExchangeNTSecurityDescriptor, ExpiryNumber, ExpiryTime, ExpiryUnits, ExtendedFolderFlags, ExtendedRuleMessageActions, ExtendedRuleMessageCondition, ExtendedRuleSizeLimit, FaxNumberOfPages, FlagCompleteTime, FlagStatus, FlatUrlName, FolderAssociatedContents, FolderId, FolderFlags, FolderType, FollowupIcon, FreeBusyCountMonths, FreeBusyEntryIds, FreeBusyMessageEmailAddress, FreeBusyPublishEnd, FreeBusyPublishStart, FreeBusyRangeTimestamp, FtpSite, GatewayNeedsToRefresh, Gender, Generation, GivenName, GovernmentIdNumber, HasAttachments, HasDeferredActionMessages, HasNamedProperties, HasRules, HierarchyChangeNumber, HierRev, Hobbies, Home2TelephoneNumber, Home2TelephoneNumbers, HomeAddressCity, HomeAddressCountry, HomeAddressPostalCode, HomeAddressPostOfficeBox, HomeAddressStateOrProvince, HomeAddressStreet, HomeFaxNumber, HomeTelephoneNumber, TagHtml, ICalendarEndTime, ICalendarReminderNextTime, ICalendarStartTime, IconIndex, Importance, InConflict, InitialDetailsPane, Initials, InReplyToId, InstanceKey, InstanceNum, InstID, InternetCodepage, InternetMailOverrideFormat, InternetMessageId, InternetReferences, IpmAppointmentEntryId, IpmContactEntryId, IpmDraftsEntryId, IpmJournalEntryId, IpmNoteEntryId, IpmTaskEntryId, IsdnNumber, JunkAddRecipientsToSafeSendersList, JunkIncludeContacts, JunkPermanentlyDelete, JunkPhishingEnableLinks, JunkThreshold, Keyword, Language, LastModificationTime, LastModifierEntryId, LastModifierName, LastVerbExecuted, LastVerbExecutionTime, ListHelp, ListSubscribe, ListUnsubscribe, LocalCommitTime, LocalCommitTimeMax, LocaleId, Locality, TagLocation, MailboxOwnerEntryId, MailboxOwnerName, ManagerName, MappingSignature, MaximumSubmitMessageSize, MemberId, MemberName, MemberRights, MessageAttachments, MessageCcMe, MessageClass, MessageCodepage, MessageDeliveryTime, MessageEditorFormat, MessageFlags, MessageHandlingSystemCommonName, MessageLocaleId, MessageRecipientMe, MessageRecipients, MessageSize, MessageSizeExtended, MessageStatus, MessageSubmissionId, MessageToMe, Mid, MiddleName, MimeSkeleton, MobileTelephoneNumber, NativeBody, NextSendAcct, Nickname, NonDeliveryReportDiagCode, NonDeliveryReportReasonCode, NonDeliveryReportStatusCode, NonReceiptNotificationRequested, NormalizedSubject, ObjectType, OfficeLocation, OfflineAddressBookContainerGuid, OfflineAddressBookDistinguishedName, OfflineAddressBookMessageClass, OfflineAddressBookName, OfflineAddressBookSequence, OfflineAddressBookTruncatedProperties, OrdinalMost, OrganizationalIdNumber, OriginalAuthorEntryId, OriginalAuthorName, OriginalDeliveryTime, OriginalDisplayBcc, OriginalDisplayCc, OriginalDisplayTo, OriginalEntryId, OriginalMessageClass, OriginalMessageId, OriginalSenderAddressType, OriginalSenderEmailAddress, OriginalSenderEntryId, OriginalSenderName, OriginalSenderSearchKey, OriginalSensitivity, OriginalSentRepresentingAddressType, OriginalSentRepresentingEmailAddress, OriginalSentRepresentingEntryId, OriginalSentRepresentingName, OriginalSentRepresentingSearchKey, OriginalSubject, OriginalSubmitTime, OriginatorDeliveryReportRequested, OriginatorNonDeliveryReportRequested, OscSyncEnabled, OtherAddressCity, OtherAddressCountry, OtherAddressPostalCode, OtherAddressPostOfficeBox, OtherAddressStateOrProvince, OtherAddressStreet, OtherTelephoneNumber, OutOfOfficeState, OwnerAppointmentId, PagerTelephoneNumber, ParentEntryId, ParentFolderId, ParentKey, ParentSourceKey, PersonalHomePage, PolicyTag, PostalAddress, PostalCode, PostOfficeBox, PredecessorChangeList, PrimaryFaxNumber, PrimarySendAccount, PrimaryTelephoneNumber, Priority, Processed, Profession, ProhibitReceiveQuota, ProhibitSendQuota, PurportedSenderDomain, RadioTelephoneNumber, Read, ReadReceiptAddressType, ReadReceiptEmailAddress, ReadReceiptEntryId, ReadReceiptName, ReadReceiptRequested, ReadReceiptSearchKey, ReadReceiptSmtpAddress, ReceiptTime, ReceivedByAddressType, ReceivedByEmailAddress, ReceivedByEntryId, ReceivedByName, ReceivedBySearchKey, ReceivedBySmtpAddress, ReceivedRepresentingAddressType, ReceivedRepresentingEmailAddress, ReceivedRepresentingEntryId, ReceivedRepresentingName, ReceivedRepresentingSearchKey, ReceivedRepresentingSmtpAddress, RecipientDisplayName, RecipientEntryId, RecipientFlags, RecipientOrder, RecipientProposed, RecipientProposedEndTime, RecipientProposedStartTime, RecipientReassignmentProhibited, RecipientTrackStatus, RecipientTrackStatusTime, RecipientType, RecordKey, ReferredByName, RemindersOnlineEntryId, RemoteMessageTransferAgent, RenderingPosition, ReplyRecipientEntries, ReplyRecipientNames, ReplyRequested, ReplyTemplateId, ReplyTime, ReportDisposition, ReportDispositionMode, ReportEntryId, ReportingMessageTransferAgent, ReportName, ReportSearchKey, ReportTag, ReportText, ReportTime, ResolveMethod, ResponseRequested, Responsibility, RetentionDate, RetentionFlags, RetentionPeriod, Rights, RoamingDatatypes, RoamingDictionary, RoamingXmlStream, Rowid, RowType, RtfCompressed, RtfInSync, RuleActionNumber, RuleActions, RuleActionType, RuleCondition, RuleError, RuleFolderEntryId, RuleId, RuleIds, RuleLevel, RuleMessageLevel, RuleMessageName, RuleMessageProvider, RuleMessageProviderData, RuleMessageSequence, RuleMessageState, RuleMessageUserFlags, RuleName, RuleProvider, RuleProviderData, RuleSequence, RuleState, RuleUserFlags, RwRulesStream, ScheduleInfoAppointmentTombstone, ScheduleInfoAutoAcceptAppointments, ScheduleInfoDelegateEntryIds, ScheduleInfoDelegateNames, ScheduleInfoDelegateNamesW, ScheduleInfoDelegatorWantsCopy, ScheduleInfoDelegatorWantsInfo, ScheduleInfoDisallowOverlappingAppts, ScheduleInfoDisallowRecurringAppts, ScheduleInfoDontMailDelegates, ScheduleInfoFreeBusy, ScheduleInfoFreeBusyAway, ScheduleInfoFreeBusyBusy, ScheduleInfoFreeBusyMerged, ScheduleInfoFreeBusyTentative, ScheduleInfoMonthsAway, ScheduleInfoMonthsBusy, ScheduleInfoMonthsMerged, ScheduleInfoMonthsTentative, ScheduleInfoResourceType, SchedulePlusFreeBusyEntryId, ScriptData, SearchFolderDefinition, SearchFolderEfpFlags, SearchFolderExpiration, SearchFolderId, SearchFolderLastUsed, SearchFolderRecreateInfo, SearchFolderStorageType, SearchFolderTag, SearchFolderTemplateId, SearchKey, SecurityDescriptorAsXml, Selectable, SenderAddressType, SenderEmailAddress, SenderEntryId, SenderIdStatus, SenderName, SenderSearchKey, SenderSmtpAddress, SenderTelephoneNumber, SendInternetEncoding, SendRichInfo, Sensitivity, SentMailSvrEID, SentRepresentingAddressType, SentRepresentingEmailAddress, SentRepresentingEntryId, SentRepresentingFlags, SentRepresentingName, SentRepresentingSearchKey, SentRepresentingSmtpAddress, SmtpAddress, SortLocaleId, SourceKey, SpokenName, SpouseName, StartDate, StartDateEtc, StateOrProvince, StoreEntryId, StoreState, StoreSupportMask, StreetAddress, Subfolders, TagSubject, SubjectPrefix, SupplementaryInfo, Surname, SwappedToDoData, SwappedToDoStore, TargetEntryId, TelecommunicationsDeviceForDeafTelephoneNumber, TelexNumber, TemplateData, Templateid, TextAttachmentCharset, ThumbnailPhoto, TagTitle, TnefCorrelationKey, ToDoItemFlags, TransmittableDisplayName, TransportMessageHeaders, TrustSender, UserCertificate, UserEntryId, UserX509Certificate, ViewDescriptorBinary, ViewDescriptorName, ViewDescriptorStrings, ViewDescriptorVersion, VoiceMessageAttachmentOrder, VoiceMessageDuration, VoiceMessageSenderName, WeddingAnniversary, WlinkAddressBookEID, WlinkAddressBookStoreEID, WlinkCalendarColor, WlinkClientID, WlinkEntryId, WlinkFlags, WlinkFolderType, WlinkGroupClsid, WlinkGroupHeaderID, WlinkGroupName, WlinkOrdinal, WlinkRecordKey, WlinkROGroupType, WlinkSaveStamp, WlinkSection, WlinkStoreEntryId, WlinkType, Abstract, ActiveUserEntryid, AddrbookForLocalSiteEntryid, AddressBookDisplayName, ArrivalTime, AssocMessageSize, AssocMessageSizeExtended, AssocMsgWAttachCount, AttachOnAssocMsgCount, AttachOnNormalMsgCount, AutoAddNewSubs, BilateralInfo, CachedColumnCount, CategCount, ChangeAdvisor, ChangeNotificationGuid, Collector, ContactCount, ContentSearchKey, ContentsSynchronizer, DeletedAssocMessageSizeExtended, DeletedAssocMsgCount, DeletedFolderCount, DeletedMessageSizeExtended, DeletedMsgCount, DeletedNormalMessageSizeExtended, DesignInProgress, DisableFullFidelity, DisableWinsock, DlReportFlags, EformsForLocaleEntryid, EformsLocaleId, EformsRegistryEntryid, EmsAbAccessCategory, EmsAbActivationSchedule, EmsAbActivationStyle, EmsAbAddressEntryDisplayTable, EmsAbAddressEntryDisplayTableMsdos, EmsAbAddressSyntax, EmsAbAddressType, EmsAbAdmd, EmsAbAdminDescription, EmsAbAdminDisplayName, EmsAbAdminExtensionDll, EmsAbAliasedObjectName, EmsAbAliasedObjectNameO, EmsAbAltRecipient, EmsAbAltRecipientBl, EmsAbAltRecipientBlO, EmsAbAltRecipientO, EmsAbAncestorId, EmsAbAnonymousAccess, EmsAbAnonymousAccount, EmsAbAssocNtAccount, EmsAbAssocProtocolCfgNntp, EmsAbAssocProtocolCfgNntpO, EmsAbAssocRemoteDxa, EmsAbAssocRemoteDxaO, EmsAbAssociationLifetime, EmsAbAttributeCertificate, EmsAbAuthOrigBl, EmsAbAuthOrigBlO, EmsAbAuthenticationToUse, EmsAbAuthorityRevocationList, EmsAbAuthorizedDomain, EmsAbAuthorizedPassword, EmsAbAuthorizedPasswordConfirm, EmsAbAuthorizedUser, EmsAbAutoreply, EmsAbAutoreplyMessage, EmsAbAutoreplySubject, EmsAbAvailableAuthorizationPackages, EmsAbAvailableDistributions, EmsAbBridgeheadServers, EmsAbBridgeheadServersO, EmsAbBusinessCategory, EmsAbBusinessRoles, EmsAbCaCertificate, EmsAbCanCreatePf, EmsAbCanCreatePfBl, EmsAbCanCreatePfBlO, EmsAbCanCreatePfDl, EmsAbCanCreatePfDlBl, EmsAbCanCreatePfDlBlO, EmsAbCanCreatePfDlO, EmsAbCanCreatePfO, EmsAbCanNotCreatePf, EmsAbCanNotCreatePfBl, EmsAbCanNotCreatePfBlO, EmsAbCanNotCreatePfDl, EmsAbCanNotCreatePfDlBl, EmsAbCanNotCreatePfDlBlO, EmsAbCanNotCreatePfDlO, EmsAbCanNotCreatePfO, EmsAbCanPreserveDns, EmsAbCertificateChainV3, EmsAbCertificateRevocationList, EmsAbCertificateRevocationListV1, EmsAbCertificateRevocationListV3, EmsAbCharacterSet, EmsAbCharacterSetList, EmsAbChildRdns, EmsAbClientAccessEnabled, EmsAbClockAlertOffset, EmsAbClockAlertRepair, EmsAbClockWarningOffset, EmsAbClockWarningRepair, EmsAbCompromisedKeyList, EmsAbComputerName, EmsAbConnectedDomains, EmsAbConnectionListFilter, EmsAbConnectionListFilterType, EmsAbConnectionType, EmsAbContainerInfo, EmsAbContentType, EmsAbControlMsgFolderId, EmsAbControlMsgRules, EmsAbCost, EmsAbCountryName, EmsAbCrossCertificateCrl, EmsAbCrossCertificatePair, EmsAbDefaultMessageFormat, EmsAbDelegateUser, EmsAbDelivEits, EmsAbDelivExtContTypes, EmsAbDeliverAndRedirect, EmsAbDeliveryMechanism, EmsAbDeltaRevocationList, EmsAbDescription, EmsAbDestinationIndicator, EmsAbDiagnosticRegKey, EmsAbDisableDeferredCommit, EmsAbDisabledGatewayProxy, EmsAbDisplayNameOverride, EmsAbDisplayNameSuffix, EmsAbDlMemRejectPermsBl, EmsAbDlMemRejectPermsBlO, EmsAbDlMemberRule, EmsAbDmdName, EmsAbDoOabVersion, EmsAbDomainDefAltRecip, EmsAbDomainDefAltRecipO, EmsAbDomainName, EmsAbDsaSignature, EmsAbDxaAdminCopy, EmsAbDxaAdminForward, EmsAbDxaAdminUpdate, EmsAbDxaAppendReqcn, EmsAbDxaConfContainerList, EmsAbDxaConfContainerListO, EmsAbDxaConfReqTime, EmsAbDxaConfSeq, EmsAbDxaConfSeqUsn, EmsAbDxaExchangeOptions, EmsAbDxaExportNow, EmsAbDxaFlags, EmsAbDxaImpSeq, EmsAbDxaImpSeqTime, EmsAbDxaImpSeqUsn, EmsAbDxaImportNow, EmsAbDxaInTemplateMap, EmsAbDxaLocalAdmin, EmsAbDxaLocalAdminO, EmsAbDxaLoggingLevel, EmsAbDxaNativeAddressType, EmsAbDxaOutTemplateMap, EmsAbDxaPassword, EmsAbDxaPrevExchangeOptions, EmsAbDxaPrevExportNativeOnly, EmsAbDxaPrevInExchangeSensitivity, EmsAbDxaPrevRemoteEntries, EmsAbDxaPrevRemoteEntriesO, EmsAbDxaPrevReplicationSensitivity, EmsAbDxaPrevTemplateOptions, EmsAbDxaPrevTypes, EmsAbDxaRecipientCp, EmsAbDxaRemoteClient, EmsAbDxaRemoteClientO, EmsAbDxaReqSeq, EmsAbDxaReqSeqTime, EmsAbDxaReqSeqUsn, EmsAbDxaReqname, EmsAbDxaSvrSeq, EmsAbDxaSvrSeqTime, EmsAbDxaSvrSeqUsn, EmsAbDxaTask, EmsAbDxaTemplateOptions, EmsAbDxaTemplateTimestamp, EmsAbDxaTypes, EmsAbDxaUnconfContainerList, EmsAbDxaUnconfContainerListO, EmsAbEmployeeNumber, EmsAbEmployeeType, EmsAbEnableCompatibility, EmsAbEnabled, EmsAbEnabledAuthorizationPackages, EmsAbEnabledProtocolCfg, EmsAbEnabledProtocols, EmsAbEncapsulationMethod, EmsAbEncrypt, EmsAbEncryptAlgListNa, EmsAbEncryptAlgListOther, EmsAbEncryptAlgSelectedNa, EmsAbEncryptAlgSelectedOther, EmsAbExpandDlsLocally, EmsAbExpirationTime, EmsAbExportContainers, EmsAbExportContainersO, EmsAbExportCustomRecipients, EmsAbExtendedCharsAllowed, EmsAbExtensionData, EmsAbExtensionName, EmsAbExtensionNameInherited, EmsAbFacsimileTelephoneNumber, EmsAbFileVersion, EmsAbFilterLocalAddresses, EmsAbFoldersContainer, EmsAbFoldersContainerO, EmsAbFormData, EmsAbForwardingAddress, EmsAbGarbageCollPeriod, EmsAbGatewayLocalCred, EmsAbGatewayLocalDesig, EmsAbGatewayProxy, EmsAbGatewayRoutingTree, EmsAbGenerationQualifier, EmsAbGroupByAttr1, EmsAbGroupByAttr2, EmsAbGroupByAttr3, EmsAbGroupByAttr4, EmsAbGroupByAttrValueDn, EmsAbGroupByAttrValueDnO, EmsAbGroupByAttrValueStr, EmsAbGwartLastModified, EmsAbHasFullReplicaNcs, EmsAbHasFullReplicaNcsO, EmsAbHasMasterNcs, EmsAbHasMasterNcsO, EmsAbHelpData16, EmsAbHelpData32, EmsAbHelpFileName, EmsAbHeuristics, EmsAbHideDlMembership, EmsAbHideFromAddressBook, EmsAbHierarchyPath, EmsAbHomeMdbBl, EmsAbHomeMdbBlO, EmsAbHomeMta, EmsAbHomeMtaO, EmsAbHomePublicServer, EmsAbHomePublicServerO, EmsAbHouseIdentifier, EmsAbHttpPubAbAttributes, EmsAbHttpPubGal, EmsAbHttpPubGalLimit, EmsAbHttpPubPf, EmsAbHttpServers, EmsAbImportContainer, EmsAbImportContainerO, EmsAbImportSensitivity, EmsAbImportedFrom, EmsAbInboundAcceptAll, EmsAbInboundDn, EmsAbInboundDnO, EmsAbInboundHost, EmsAbInboundNewsfeed, EmsAbInboundNewsfeedType, EmsAbInboundSites, EmsAbInboundSitesO, EmsAbIncomingMsgSizeLimit, EmsAbIncomingPassword, EmsAbInsadmin, EmsAbInsadminO, EmsAbInstanceType, EmsAbInternationalIsdnNumber, EmsAbInvocationId, EmsAbIsDeleted, EmsAbIsSingleValued, EmsAbKccStatus, EmsAbKmServer, EmsAbKmServerO, EmsAbKnowledgeInformation, EmsAbLabeleduri, EmsAbLanguage, EmsAbLanguageIso639, EmsAbLdapDisplayName, EmsAbLdapSearchCfg, EmsAbLineWrap, EmsAbLinkId, EmsAbListPublicFolders, EmsAbLocalBridgeHead, EmsAbLocalBridgeHeadAddress, EmsAbLocalInitialTurn, EmsAbLocalScope, EmsAbLocalScopeO, EmsAbLogFilename, EmsAbLogRolloverInterval, EmsAbMailDrop, EmsAbMaintainAutoreplyHistory, EmsAbMapiDisplayType, EmsAbMapiId, EmsAbMaximumObjectId, EmsAbMdbBackoffInterval, EmsAbMdbMsgTimeOutPeriod, EmsAbMdbOverQuotaLimit, EmsAbMdbStorageQuota, EmsAbMdbUnreadLimit, EmsAbMdbUseDefaults, EmsAbMessageTrackingEnabled, EmsAbMimeTypes, EmsAbModerated, EmsAbModerator, EmsAbMonitorClock, EmsAbMonitorServers, EmsAbMonitorServices, EmsAbMonitoredConfigurations, EmsAbMonitoredConfigurationsO, EmsAbMonitoredServers, EmsAbMonitoredServersO, EmsAbMonitoredServices, EmsAbMonitoringAlertDelay, EmsAbMonitoringAlertUnits, EmsAbMonitoringAvailabilityStyle, EmsAbMonitoringAvailabilityWindow, EmsAbMonitoringCachedViaMail, EmsAbMonitoringCachedViaMailO, EmsAbMonitoringCachedViaRpc, EmsAbMonitoringCachedViaRpcO, EmsAbMonitoringEscalationProcedure, EmsAbMonitoringHotsitePollInterval, EmsAbMonitoringHotsitePollUnits, EmsAbMonitoringMailUpdateInterval, EmsAbMonitoringMailUpdateUnits, EmsAbMonitoringNormalPollInterval, EmsAbMonitoringNormalPollUnits, EmsAbMonitoringRecipients, EmsAbMonitoringRecipientsNdr, EmsAbMonitoringRecipientsNdrO, EmsAbMonitoringRecipientsO, EmsAbMonitoringRpcUpdateInterval, EmsAbMonitoringRpcUpdateUnits, EmsAbMonitoringWarningDelay, EmsAbMonitoringWarningUnits, EmsAbMtaLocalCred, EmsAbMtaLocalDesig, EmsAbNAddress, EmsAbNAddressType, EmsAbNewsfeedType, EmsAbNewsgroup, EmsAbNewsgroupList, EmsAbNntpCharacterSet, EmsAbNntpContentFormat, EmsAbNntpDistributions, EmsAbNntpDistributionsFlag, EmsAbNntpNewsfeeds, EmsAbNntpNewsfeedsO, EmsAbNtMachineName, EmsAbNtSecurityDescriptor, EmsAbNumOfOpenRetries, EmsAbNumOfTransferRetries, EmsAbObjViewContainers, EmsAbObjViewContainersO, EmsAbObjectClassCategory, EmsAbObjectOid, EmsAbObjectVersion, EmsAbOffLineAbContainers, EmsAbOffLineAbContainersO, EmsAbOffLineAbSchedule, EmsAbOffLineAbServer, EmsAbOffLineAbServerO, EmsAbOffLineAbStyle, EmsAbOidType, EmsAbOmObjectClass, EmsAbOmSyntax, EmsAbOofReplyToOriginator, EmsAbOpenRetryInterval, EmsAbOrganizationName, EmsAbOrganizationalUnitName, EmsAbOriginalDisplayTable, EmsAbOriginalDisplayTableMsdos, EmsAbOtherRecips, EmsAbOutboundHost, EmsAbOutboundHostType, EmsAbOutboundNewsfeed, EmsAbOutboundSites, EmsAbOutboundSitesO, EmsAbOutgoingMsgSizeLimit, EmsAbOverrideNntpContentFormat, EmsAbOwaServer, EmsAbPSelector, EmsAbPSelectorInbound, EmsAbPerMsgDialogDisplayTable, EmsAbPerRecipDialogDisplayTable, EmsAbPeriodRepSyncTimes, EmsAbPeriodReplStagger, EmsAbPersonalTitle, EmsAbPfContacts, EmsAbPfContactsO, EmsAbPopCharacterSet, EmsAbPopContentFormat, EmsAbPortNumber, EmsAbPostalAddress, EmsAbPreferredDeliveryMethod, EmsAbPreserveInternetContent, EmsAbPrmd, EmsAbPromoExpiration, EmsAbProtocolSettings, EmsAbProxyGenerationEnabled, EmsAbProxyGeneratorDll, EmsAbPublicDelegatesBl, EmsAbPublicDelegatesBlO, EmsAbQuotaNotificationSchedule, EmsAbQuotaNotificationStyle, EmsAbRangeLower, EmsAbRangeUpper, EmsAbRasAccount, EmsAbRasCallbackNumber, EmsAbRasPassword, EmsAbRasPhoneNumber, EmsAbRasPhonebookEntryName, EmsAbRasRemoteSrvrName, EmsAbReferralList, EmsAbRegisteredAddress, EmsAbRemoteBridgeHead, EmsAbRemoteBridgeHeadAddress, EmsAbRemoteOutBhServer, EmsAbRemoteOutBhServerO, EmsAbRemoteSite, EmsAbRemoteSiteO, EmsAbReplicatedObjectVersion, EmsAbReplicationMailMsgSize, EmsAbReplicationSensitivity, EmsAbReplicationStagger, EmsAbReportToOriginator, EmsAbReportToOwner, EmsAbReqSeq, EmsAbRequireSsl, EmsAbResponsibleLocalDxa, EmsAbResponsibleLocalDxaO, EmsAbReturnExactMsgSize, EmsAbRidServer, EmsAbRidServerO, EmsAbRoleOccupant, EmsAbRoleOccupantO, EmsAbRootNewsgroupsFolderId, EmsAbRoutingList, EmsAbRtsCheckpointSize, EmsAbRtsRecoveryTimeout, EmsAbRtsWindowSize, EmsAbRunsOn, EmsAbRunsOnO, EmsAbSSelector, EmsAbSSelectorInbound, EmsAbSchemaFlags, EmsAbSchemaVersion, EmsAbSearchFlags, EmsAbSearchGuide, EmsAbSecurityPolicy, EmsAbSecurityProtocol, EmsAbSeeAlso, EmsAbSeeAlsoO, EmsAbSendEmailMessage, EmsAbSendTnef, EmsAbSerialNumber, EmsAbServer, EmsAbServiceActionFirst, EmsAbServiceActionOther, EmsAbServiceActionSecond, EmsAbServiceRestartDelay, EmsAbServiceRestartMessage, EmsAbSessionDisconnectTimer, EmsAbSiteAffinity, EmsAbSiteFolderGuid, EmsAbSiteFolderServer, EmsAbSiteFolderServerO, EmsAbSiteProxySpace, EmsAbSmimeAlgListNa, EmsAbSmimeAlgListOther, EmsAbSmimeAlgSelectedNa, EmsAbSmimeAlgSelectedOther, EmsAbSpaceLastComputed, EmsAbStreetAddress, EmsAbSubRefs, EmsAbSubRefsO, EmsAbSubSite, EmsAbSubmissionContLength, EmsAbSupportSmimeSignatures, EmsAbSupportedAlgorithms, EmsAbSupportedApplicationContext, EmsAbSupportingStack, EmsAbSupportingStackBl, EmsAbSupportingStackBlO, EmsAbSupportingStackO, EmsAbTSelector, EmsAbTSelectorInbound, EmsAbTargetMtas, EmsAbTelephoneNumber, EmsAbTelephonePersonalPager, EmsAbTeletexTerminalIdentifier, EmsAbTempAssocThreshold, EmsAbTombstoneLifetime, EmsAbTrackingLogPathName, EmsAbTransRetryMins, EmsAbTransTimeoutMins, EmsAbTransferRetryInterval, EmsAbTransferTimeoutNonUrgent, EmsAbTransferTimeoutNormal, EmsAbTransferTimeoutUrgent, EmsAbTranslationTableUsed, EmsAbTransportExpeditedData, EmsAbTrustLevel, EmsAbTurnRequestThreshold, EmsAbTwoWayAlternateFacility, EmsAbType, EmsAbUnauthOrigBl, EmsAbUnauthOrigBlO, EmsAbUseServerValues, EmsAbUseSiteValues, EmsAbUsenetSiteName, EmsAbUserPassword, EmsAbUsnChanged, EmsAbUsnCreated, EmsAbUsnDsaLastObjRemoved, EmsAbUsnIntersite, EmsAbUsnLastObjRem, EmsAbUsnSource, EmsAbViewContainer1, EmsAbViewContainer2, EmsAbViewContainer3, EmsAbViewDefinition, EmsAbViewFlags, EmsAbViewSite, EmsAbVoiceMailFlags, EmsAbVoiceMailGreetings, EmsAbVoiceMailPassword, EmsAbVoiceMailRecordedName, EmsAbVoiceMailRecordingLength, EmsAbVoiceMailSpeed, EmsAbVoiceMailSystemGuid, EmsAbVoiceMailUserId, EmsAbVoiceMailVolume, EmsAbWwwHomePage, EmsAbX121Address, EmsAbX25CallUserDataIncoming, EmsAbX25CallUserDataOutgoing, EmsAbX25FacilitiesDataIncoming, EmsAbX25FacilitiesDataOutgoing, EmsAbX25LeasedLinePort, EmsAbX25LeasedOrSwitched, EmsAbX25RemoteMtaPhone, EmsAbX400AttachmentType, EmsAbX400SelectorSyntax, EmsAbX500AccessControlList, EmsAbX500Nc, EmsAbX500Rdn, EmsAbXmitTimeoutNonUrgent, EmsAbXmitTimeoutNormal, EmsAbXmitTimeoutUrgent, EventsRootFolderEntryid, ExcessStorageUsed, ExtendedAclData, FastTransfer, FavoritesDefaultName, FolderChildCount, FolderDesignFlags, FolderPathname, ForeignId, ForeignReportId, ForeignSubjectId, FreeBusyForLocalSiteEntryid, GwAdminOperations, GwMtsinEntryid, GwMtsoutEntryid, HasModeratorRules, HierarchyServer, HierarchySynchronizer, ImapInternalDate, InTransit, InboundNewsfeedDn, InternetCharset, InternetNewsgroupName, IpmDafEntryid, IpmFavoritesEntryid, IpmPublicFoldersEntryid, IsNewsgroup, IsNewsgroupAnchor, LastAccessTime, LastFullBackup, LastLogoffTime, LastLogonTime, LongtermEntryidFromTable, MessageProcessed, MessageSiteName, MoveToFolderEntryid, MoveToStoreEntryid, MsgBodyId, MtsSubjectId, NewSubsGetAutoAdd, NewsfeedInfo, NewsgroupComponent, NewsgroupRootFolderEntryid, NntpArticleFolderEntryid, NntpControlFolderEntryid, NonIpmSubtreeEntryid, NormalMessageSize, NormalMessageSizeExtended, NormalMsgWAttachCount, NtUserName, OfflineAddrbookEntryid, OfflineFlags, OfflineMessageEntryid, OldestDeletedOn, OriginatorAddr, OriginatorAddrtype, OriginatorEntryid, OriginatorName, OstEncryption, OutboundNewsfeedDn, OverallAgeLimit, OverallMsgAgeLimit, OwaUrl, OwnerCount, P1Content, P1ContentType, PreventMsgCreate, Preview, PreviewUnread, ProfileAbFilesPath, ProfileAddrInfo, ProfileAllpubComment, ProfileAllpubDisplayName, ProfileBindingOrder, ProfileConfigFlags, ProfileConnectFlags, ProfileFavfldComment, ProfileFavfldDisplayName, ProfileHomeServer, ProfileHomeServerAddrs, ProfileHomeServerDn, ProfileMailbox, ProfileMaxRestrict, ProfileMoab, ProfileMoabGuid, ProfileMoabSeq, ProfileOfflineInfo, ProfileOfflineStorePath, ProfileOpenFlags, ProfileOptionsData, ProfileSecureMailbox, ProfileServer, ProfileServerDn, ProfileTransportFlags, ProfileType, ProfileUiState, ProfileUnresolvedName, ProfileUnresolvedServer, ProfileUser, ProfileVersion, PstEncryption, PstPath, PstPwSzOld, PstRememberPw, PublicFolderEntryid, PublishInAddressBook, RecipientNumber, RecipientOnAssocMsgCount, RecipientOnNormalMsgCount, ReplicaList, ReplicaServer, ReplicaVersion, ReplicationAlwaysInterval, ReplicationMessagePriority, ReplicationMsgSize, ReplicationSchedule, ReplicationStyle, ReplyRecipientSmtpProxies, ReportDestinationEntryid, ReportDestinationName, RestrictionCount, RetentionAgeLimit, RuleTriggerHistory, RulesData, RulesTable, ScheduleFolderEntryid, SecureInSite, SecureOrigination, StorageLimitInformation, StorageQuotaLimit, StoreOffline, StoreSlowlink, SubjectTraceInfo, SvrGeneratingQuotaMsg, SynchronizeFlags, SysConfigFolderEntryid, TestLineSpeed, TraceInfo, TransferEnabled, UserName, X400EnvelopeType, AbDefaultDir, AbDefaultPab, AbProviderId, AbProviders, AbSearchPath, AbSearchPathUpdate, AlternateRecipient, AssocContentCount, AttachmentX400Parameters, AuthorizingUsers, BodyCrc, CommonViewsEntryid, ContactAddrtypes, ContactDefaultAddressIndex, ContactEmailAddresses, ContactEntryids, ContactVersion, ContainerModifyVersion, ContentConfidentialityAlgorithmId, ContentCorrelator, ContentIdentifier, ContentIntegrityCheck, ContentLength, ContentReturnRequested, ContentsSortOrder, ControlFlags, ControlId, ControlStructure, ControlType, ConversationKey, ConversionEits, ConversionProhibited, ConversionWithLossProhibited, ConvertedEits, Correlate, CorrelateMtsid, CreateTemplates, CreationVersion, ExCurrentVersion, DefCreateDl, DefCreateMailuser, DefaultProfile, DefaultStore, DefaultViewEntryid, Delegation, DeliveryPoint, Deltax, Deltay, DetailsTable, DiscVal, DiscardReason, DiscloseRecipients, DisclosureOfRecipients, DiscreteValues, DlExpansionHistory, DlExpansionProhibited, ExplicitConversion, FilteringHooks, FinderEntryid, FormCategory, FormCategorySub, FormClsid, FormContactName, FormDesignerGuid, FormDesignerName, FormHidden, FormHostMap, FormMessageBehavior, FormVersion, HeaderFolderEntryid, Icon, IdentityDisplay, IdentityEntryid, IdentitySearchKey, ImplicitConversionProhibited, IncompleteCopy, InternetApproved, InternetArticleNumber, InternetControl, InternetDistribution, InternetFollowupTo, InternetLines, InternetNewsgroups, InternetNntpPath, InternetOrganization, InternetPrecedence, IpmId, IpmOutboxEntryid, IpmOutboxSearchKey, IpmReturnRequested, IpmSentmailEntryid, IpmSentmailSearchKey, IpmSubtreeEntryid, IpmSubtreeSearchKey, IpmWastebasketEntryid, IpmWastebasketSearchKey, Languages, LatestDeliveryTime, MailPermission, MdbProvider, MessageDeliveryId, MessageDownloadTime, MessageSecurityLabel, MessageToken, MiniIcon, ModifyVersion, NewsgroupName, NntpXref, NonReceiptReason, ObsoletedIpms, OriginCheck, OriginalAuthorAddrtype, OriginalAuthorEmailAddress, OriginalAuthorSearchKey, OriginalDisplayName, OriginalEits, OriginalSearchKey, OriginallyIntendedRecipAddrtype, OriginallyIntendedRecipEmailAddress, OriginallyIntendedRecipEntryid, OriginallyIntendedRecipientName, OriginatingMtaCertificate, OriginatorAndDlExpansionHistory, OriginatorCertificate, OriginatorRequestedAlternateRecipient, OriginatorReturnAddress, OwnStoreEntryid, ParentDisplay, PhysicalDeliveryBureauFaxDelivery, PhysicalDeliveryMode, PhysicalDeliveryReportRequest, PhysicalForwardingAddress, PhysicalForwardingAddressRequested, PhysicalForwardingProhibited, PhysicalRenditionAttributes, PostFolderEntries, PostFolderNames, PostReplyDenied, PostReplyFolderEntries, PostReplyFolderNames, Preprocess, PrimaryCapability, ProfileName, ProofOfDelivery, ProofOfDeliveryRequested, ProofOfSubmission, ProofOfSubmissionRequested, ProviderDisplay, ProviderDllName, ProviderOrdinal, ProviderSubmitTime, ProviderUid, ReceiveFolderSettings, RecipientCertificate, RecipientNumberForAdvice, RecipientStatus, RedirectionHistory, RegisteredMailType, RelatedIpms, RemoteProgress, RemoteProgressText, RemoteValidateOk, ReportingDlName, ReportingMtaCertificate, RequestedDeliveryMethod, ResourceFlags, ResourceMethods, ResourcePath, ResourceType, ReturnedIpm, RtfSyncBodyCount, RtfSyncBodyCrc, RtfSyncBodyTag, RtfSyncPrefixCount, RtfSyncTrailingCount, Search, ExSecurity, SentmailEntryid, ServiceDeleteFiles, ServiceDllName, ServiceEntryName, ServiceExtraUids, ServiceName, ServiceSupportFiles, ServiceUid, Services, SpoolerStatus, Status, StatusCode, StatusString, StoreProviders, StoreRecordKey, SubjectIpm, SubmitFlags, Supersedes, TransportKey, TransportProviders, TransportStatus, TypeOfMtsUser, ValidFolderMask, ViewsEntryid, X400ContentType, X400DeferredDeliveryCancel, Xpos, Ypos :param name: The name of this MapiKnownPropertyDescriptor. :type: str """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + if name is not None and len(name) < 1: + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") self._name = name def to_dict(self): diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_legacy_free_busy_property_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_legacy_free_busy_property_dto.py index dbe43b4..630f8cc 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_legacy_free_busy_property_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_legacy_free_busy_property_dto.py @@ -57,12 +57,13 @@ class MapiLegacyFreeBusyPropertyDto(MapiPropertyDto): 'value': 'value' } - def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str = None, value: str = None): + def __init__(self, descriptor: MapiPropertyDescriptor = None, value: str = None): """ Mapi property with LegacyFreeBusyType value - :param descriptor (MapiPropertyDescriptor) Property descriptor - :param discriminator (str) - :param value (str) Represents the free/busy status for a calendar event. Enum, available values: Free, Tentative, Busy, Oof, WorkingElsewhere, NoData + :param descriptor: Property descriptor + :type descriptor: MapiPropertyDescriptor + :param value: Represents the free/busy status for a calendar event. Enum, available values: Free, Tentative, Busy, Oof, WorkingElsewhere, NoData + :type value: str """ super(MapiLegacyFreeBusyPropertyDto, self).__init__() @@ -70,15 +71,13 @@ def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str if descriptor is not None: self.descriptor = descriptor - if discriminator is not None: - self.discriminator = discriminator if value is not None: self.value = value + @property def value(self) -> str: - """Gets the value of this MapiLegacyFreeBusyPropertyDto. - + """ Represents the free/busy status for a calendar event. Enum, available values: Free, Tentative, Busy, Oof, WorkingElsewhere, NoData :return: The value of this MapiLegacyFreeBusyPropertyDto. @@ -88,8 +87,7 @@ def value(self) -> str: @value.setter def value(self, value: str): - """Sets the value of this MapiLegacyFreeBusyPropertyDto. - + """ Represents the free/busy status for a calendar event. Enum, available values: Free, Tentative, Busy, Oof, WorkingElsewhere, NoData :param value: The value of this MapiLegacyFreeBusyPropertyDto. diff --git a/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_mapi_message_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_message_as_file_request.py similarity index 67% rename from sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_mapi_message_dto.py rename to sdk/AsposeEmailCloudSdk/models/mapi_message_as_file_request.py index 2d6a671..c7ab3eb 100644 --- a/sdk/AsposeEmailCloudSdk/models/storage_model_rq_of_mapi_message_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_message_as_file_request.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -31,11 +31,10 @@ from datetime import datetime from AsposeEmailCloudSdk.models.mapi_message_dto import MapiMessageDto -from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation -class StorageModelRqOfMapiMessageDto(object): - """ +class MapiMessageAsFileRequest(object): + """Convert MapiMessage to file request. """ """ @@ -46,69 +45,76 @@ class StorageModelRqOfMapiMessageDto(object): and the value is json key in definition. """ swagger_types = { - 'value': 'MapiMessageDto', - 'storage_folder': 'StorageFolderLocation' + 'format': 'str', + 'value': 'MapiMessageDto' } attribute_map = { - 'value': 'value', - 'storage_folder': 'storageFolder' + 'format': 'format', + 'value': 'value' } - def __init__(self, value: MapiMessageDto = None, storage_folder: StorageFolderLocation = None): + def __init__(self, format: str = None, value: MapiMessageDto = None): """ - - :param value (MapiMessageDto) - :param storage_folder (StorageFolderLocation) + Convert MapiMessage to file request. + :param format: Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + :param value: MAPI message model. + :type value: MapiMessageDto """ + self._format = None self._value = None - self._storage_folder = None + if format is not None: + self.format = format if value is not None: self.value = value - if storage_folder is not None: - self.storage_folder = storage_folder - - @property - def value(self) -> MapiMessageDto: - """Gets the value of this StorageModelRqOfMapiMessageDto. - :return: The value of this StorageModelRqOfMapiMessageDto. - :rtype: MapiMessageDto + @property + def format(self) -> str: """ - return self._value + Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft - @value.setter - def value(self, value: MapiMessageDto): - """Sets the value of this StorageModelRqOfMapiMessageDto. + :return: The format of this MapiMessageAsFileRequest. + :rtype: str + """ + return self._format + @format.setter + def format(self, format: str): + """ + Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft - :param value: The value of this StorageModelRqOfMapiMessageDto. - :type: MapiMessageDto + :param format: The format of this MapiMessageAsFileRequest. + :type: str """ - self._value = value + if format is None: + raise ValueError("Invalid value for `format`, must not be `None`") + self._format = format @property - def storage_folder(self) -> StorageFolderLocation: - """Gets the storage_folder of this StorageModelRqOfMapiMessageDto. - - - :return: The storage_folder of this StorageModelRqOfMapiMessageDto. - :rtype: StorageFolderLocation + def value(self) -> MapiMessageDto: """ - return self._storage_folder + MAPI message model. - @storage_folder.setter - def storage_folder(self, storage_folder: StorageFolderLocation): - """Sets the storage_folder of this StorageModelRqOfMapiMessageDto. + :return: The value of this MapiMessageAsFileRequest. + :rtype: MapiMessageDto + """ + return self._value + @value.setter + def value(self, value: MapiMessageDto): + """ + MAPI message model. - :param storage_folder: The storage_folder of this StorageModelRqOfMapiMessageDto. - :type: StorageFolderLocation + :param value: The value of this MapiMessageAsFileRequest. + :type: MapiMessageDto """ - self._storage_folder = storage_folder + if value is None: + raise ValueError("Invalid value for `value`, must not be `None`") + self._value = value def to_dict(self): """Returns the model properties as a dict""" @@ -144,7 +150,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, StorageModelRqOfMapiMessageDto): + if not isinstance(other, MapiMessageAsFileRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_message_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_message_dto.py index be6c197..2d109d6 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_message_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_message_dto.py @@ -137,51 +137,91 @@ class MapiMessageDto(MapiMessageItemBaseDto): 'transport_message_headers': 'transportMessageHeaders' } - def __init__(self, attachments: List[MapiAttachmentDto] = None, billing: str = None, body: str = None, body_html: str = None, body_rtf: str = None, body_type: str = None, categories: List[str] = None, companies: List[str] = None, item_id: str = None, message_class: str = None, mileage: str = None, recipients: List[MapiRecipientDto] = None, sensitivity: str = None, subject: str = None, subject_prefix: str = None, properties: List[MapiPropertyDto] = None, discriminator: str = None, message_body: str = None, client_submit_time: datetime = None, conversation_topic: str = None, delivery_time: datetime = None, display_bcc: str = None, display_cc: str = None, display_name: str = None, display_name_prefix: str = None, display_to: str = None, flags: List[str] = None, headers: Dict[str, str] = None, internet_message_id: str = None, message_format: str = None, normalized_subject: str = None, read_receipt_requested: bool = None, reply_to: str = None, sender_address_type: str = None, sender_email_address: str = None, sender_name: str = None, sender_smtp_address: str = None, sent_representing_address_type: str = None, sent_representing_email_address: str = None, sent_representing_name: str = None, sent_representing_smtp_address: str = None, transport_message_headers: str = None): + def __init__(self, attachments: List[MapiAttachmentDto] = None, billing: str = None, body: str = None, body_html: str = None, body_rtf: str = None, body_type: str = None, categories: List[str] = None, companies: List[str] = None, item_id: str = None, message_class: str = None, mileage: str = None, recipients: List[MapiRecipientDto] = None, sensitivity: str = None, subject: str = None, subject_prefix: str = None, properties: List[MapiPropertyDto] = None, message_body: str = None, client_submit_time: datetime = None, conversation_topic: str = None, delivery_time: datetime = None, display_bcc: str = None, display_cc: str = None, display_name: str = None, display_name_prefix: str = None, display_to: str = None, flags: List[str] = None, headers: Dict[str, str] = None, internet_message_id: str = None, message_format: str = None, normalized_subject: str = None, read_receipt_requested: bool = None, reply_to: str = None, sender_address_type: str = None, sender_email_address: str = None, sender_name: str = None, sender_smtp_address: str = None, sent_representing_address_type: str = None, sent_representing_email_address: str = None, sent_representing_name: str = None, sent_representing_smtp_address: str = None, transport_message_headers: str = None): """ Represents an Outlook Message format document. - :param attachments (List[MapiAttachmentDto]) Message item attachments. - :param billing (str) Billing information associated with an item. - :param body (str) Message text. - :param body_html (str) Gets the BodyRtf of the message converted to HTML, if present, otherwise an empty string. - :param body_rtf (str) RTF formatted message text. - :param body_type (str) The content type of message body. Enum, available values: PlainText, Html, Rtf - :param categories (List[str]) Contains keywords or categories for the message object. - :param companies (List[str]) Contains the names of the companies that are associated with an item. - :param item_id (str) The item id, uses with a server. - :param message_class (str) Case-sensitive string that identifies the sender-defined message class, such as IPM.Note. The message class specifies the type, purpose, or content of the message. - :param mileage (str) Contains the mileage information that is associated with an item. - :param recipients (List[MapiRecipientDto]) Recipients of the message. - :param sensitivity (str) Contains values that indicate the message sensitivity. Enum, available values: None, Personal, Private, CompanyConfidential - :param subject (str) Subject of the message. - :param subject_prefix (str) Subject prefix that typically indicates some action on a message, such as \"FW: \" for forwarding. - :param properties (List[MapiPropertyDto]) List of MAPI properties - :param discriminator (str) - :param message_body (str) Message text - :param client_submit_time (datetime) Date and time the message sender submitted a message. - :param conversation_topic (str) Topic of the first message in a conversation thread. - :param delivery_time (datetime) Date and time a message was delivered. - :param display_bcc (str) List of the display names of any blind carbon copy (BCC) message recipients, separated by semicolons (;). - :param display_cc (str) List of the display names of any carbon copy (CC) message recipients, separated by semicolons (;). - :param display_name (str) Display name for the message. - :param display_name_prefix (str) Prefix of the display name. - :param display_to (str) List of the display names of the primary (To) message recipients, separated by semicolons (;). - :param flags (List[str]) Message flags. - :param headers (Dict[str, str]) Transport message headers - :param internet_message_id (str) Internet message id of the message. - :param message_format (str) Represents outlook message format. Enum, available values: Ascii, Unicode - :param normalized_subject (str) Normalized subject of the message. - :param read_receipt_requested (bool) Value indicating whether the read receipt is requested. - :param reply_to (str) Reply to names. - :param sender_address_type (str) Message sender's e-mail address type. - :param sender_email_address (str) Message sender's e-mail address. - :param sender_name (str) Message sender's display name. - :param sender_smtp_address (str) Message sender's e-mail address. - :param sent_representing_address_type (str) Address type for the messaging user represented by the sender. - :param sent_representing_email_address (str) E-mail address for the messaging user represented by the sender. - :param sent_representing_name (str) Display name for the messaging user represented by the sender. - :param sent_representing_smtp_address (str) E-mail address for the messaging user represented by the sender. - :param transport_message_headers (str) Transport-specific message envelope information. + :param attachments: Message item attachments. + :type attachments: List[MapiAttachmentDto] + :param billing: Billing information associated with an item. + :type billing: str + :param body: Message text. + :type body: str + :param body_html: Gets the BodyRtf of the message converted to HTML, if present, otherwise an empty string. + :type body_html: str + :param body_rtf: RTF formatted message text. + :type body_rtf: str + :param body_type: The content type of message body. Enum, available values: PlainText, Html, Rtf + :type body_type: str + :param categories: Contains keywords or categories for the message object. + :type categories: List[str] + :param companies: Contains the names of the companies that are associated with an item. + :type companies: List[str] + :param item_id: The item id, uses with a server. + :type item_id: str + :param message_class: Case-sensitive string that identifies the sender-defined message class, such as IPM.Note. The message class specifies the type, purpose, or content of the message. + :type message_class: str + :param mileage: Contains the mileage information that is associated with an item. + :type mileage: str + :param recipients: Recipients of the message. + :type recipients: List[MapiRecipientDto] + :param sensitivity: Contains values that indicate the message sensitivity. Enum, available values: None, Personal, Private, CompanyConfidential + :type sensitivity: str + :param subject: Subject of the message. + :type subject: str + :param subject_prefix: Subject prefix that typically indicates some action on a message, such as \"FW: \" for forwarding. + :type subject_prefix: str + :param properties: List of MAPI properties + :type properties: List[MapiPropertyDto] + :param message_body: Message text + :type message_body: str + :param client_submit_time: Date and time the message sender submitted a message. + :type client_submit_time: datetime + :param conversation_topic: Topic of the first message in a conversation thread. + :type conversation_topic: str + :param delivery_time: Date and time a message was delivered. + :type delivery_time: datetime + :param display_bcc: List of the display names of any blind carbon copy (BCC) message recipients, separated by semicolons (;). + :type display_bcc: str + :param display_cc: List of the display names of any carbon copy (CC) message recipients, separated by semicolons (;). + :type display_cc: str + :param display_name: Display name for the message. + :type display_name: str + :param display_name_prefix: Prefix of the display name. + :type display_name_prefix: str + :param display_to: List of the display names of the primary (To) message recipients, separated by semicolons (;). + :type display_to: str + :param flags: Message flags. + :type flags: List[str] + :param headers: Transport message headers + :type headers: Dict[str, str] + :param internet_message_id: Internet message id of the message. + :type internet_message_id: str + :param message_format: Represents outlook message format. Enum, available values: Ascii, Unicode + :type message_format: str + :param normalized_subject: Normalized subject of the message. + :type normalized_subject: str + :param read_receipt_requested: Value indicating whether the read receipt is requested. + :type read_receipt_requested: bool + :param reply_to: Reply to names. + :type reply_to: str + :param sender_address_type: Message sender's e-mail address type. + :type sender_address_type: str + :param sender_email_address: Message sender's e-mail address. + :type sender_email_address: str + :param sender_name: Message sender's display name. + :type sender_name: str + :param sender_smtp_address: Message sender's e-mail address. + :type sender_smtp_address: str + :param sent_representing_address_type: Address type for the messaging user represented by the sender. + :type sent_representing_address_type: str + :param sent_representing_email_address: E-mail address for the messaging user represented by the sender. + :type sent_representing_email_address: str + :param sent_representing_name: Display name for the messaging user represented by the sender. + :type sent_representing_name: str + :param sent_representing_smtp_address: E-mail address for the messaging user represented by the sender. + :type sent_representing_smtp_address: str + :param transport_message_headers: Transport-specific message envelope information. + :type transport_message_headers: str """ super(MapiMessageDto, self).__init__() @@ -243,8 +283,6 @@ def __init__(self, attachments: List[MapiAttachmentDto] = None, billing: str = N self.subject_prefix = subject_prefix if properties is not None: self.properties = properties - if discriminator is not None: - self.discriminator = discriminator if message_body is not None: self.message_body = message_body if client_submit_time is not None: @@ -296,10 +334,10 @@ def __init__(self, attachments: List[MapiAttachmentDto] = None, billing: str = N if transport_message_headers is not None: self.transport_message_headers = transport_message_headers + @property def message_body(self) -> str: - """Gets the message_body of this MapiMessageDto. - + """ Message text :return: The message_body of this MapiMessageDto. @@ -309,8 +347,7 @@ def message_body(self) -> str: @message_body.setter def message_body(self, message_body: str): - """Sets the message_body of this MapiMessageDto. - + """ Message text :param message_body: The message_body of this MapiMessageDto. @@ -320,8 +357,7 @@ def message_body(self, message_body: str): @property def client_submit_time(self) -> datetime: - """Gets the client_submit_time of this MapiMessageDto. - + """ Date and time the message sender submitted a message. :return: The client_submit_time of this MapiMessageDto. @@ -331,8 +367,7 @@ def client_submit_time(self) -> datetime: @client_submit_time.setter def client_submit_time(self, client_submit_time: datetime): - """Sets the client_submit_time of this MapiMessageDto. - + """ Date and time the message sender submitted a message. :param client_submit_time: The client_submit_time of this MapiMessageDto. @@ -344,8 +379,7 @@ def client_submit_time(self, client_submit_time: datetime): @property def conversation_topic(self) -> str: - """Gets the conversation_topic of this MapiMessageDto. - + """ Topic of the first message in a conversation thread. :return: The conversation_topic of this MapiMessageDto. @@ -355,8 +389,7 @@ def conversation_topic(self) -> str: @conversation_topic.setter def conversation_topic(self, conversation_topic: str): - """Sets the conversation_topic of this MapiMessageDto. - + """ Topic of the first message in a conversation thread. :param conversation_topic: The conversation_topic of this MapiMessageDto. @@ -366,8 +399,7 @@ def conversation_topic(self, conversation_topic: str): @property def delivery_time(self) -> datetime: - """Gets the delivery_time of this MapiMessageDto. - + """ Date and time a message was delivered. :return: The delivery_time of this MapiMessageDto. @@ -377,8 +409,7 @@ def delivery_time(self) -> datetime: @delivery_time.setter def delivery_time(self, delivery_time: datetime): - """Sets the delivery_time of this MapiMessageDto. - + """ Date and time a message was delivered. :param delivery_time: The delivery_time of this MapiMessageDto. @@ -390,8 +421,7 @@ def delivery_time(self, delivery_time: datetime): @property def display_bcc(self) -> str: - """Gets the display_bcc of this MapiMessageDto. - + """ List of the display names of any blind carbon copy (BCC) message recipients, separated by semicolons (;). :return: The display_bcc of this MapiMessageDto. @@ -401,8 +431,7 @@ def display_bcc(self) -> str: @display_bcc.setter def display_bcc(self, display_bcc: str): - """Sets the display_bcc of this MapiMessageDto. - + """ List of the display names of any blind carbon copy (BCC) message recipients, separated by semicolons (;). :param display_bcc: The display_bcc of this MapiMessageDto. @@ -412,8 +441,7 @@ def display_bcc(self, display_bcc: str): @property def display_cc(self) -> str: - """Gets the display_cc of this MapiMessageDto. - + """ List of the display names of any carbon copy (CC) message recipients, separated by semicolons (;). :return: The display_cc of this MapiMessageDto. @@ -423,8 +451,7 @@ def display_cc(self) -> str: @display_cc.setter def display_cc(self, display_cc: str): - """Sets the display_cc of this MapiMessageDto. - + """ List of the display names of any carbon copy (CC) message recipients, separated by semicolons (;). :param display_cc: The display_cc of this MapiMessageDto. @@ -434,8 +461,7 @@ def display_cc(self, display_cc: str): @property def display_name(self) -> str: - """Gets the display_name of this MapiMessageDto. - + """ Display name for the message. :return: The display_name of this MapiMessageDto. @@ -445,8 +471,7 @@ def display_name(self) -> str: @display_name.setter def display_name(self, display_name: str): - """Sets the display_name of this MapiMessageDto. - + """ Display name for the message. :param display_name: The display_name of this MapiMessageDto. @@ -456,8 +481,7 @@ def display_name(self, display_name: str): @property def display_name_prefix(self) -> str: - """Gets the display_name_prefix of this MapiMessageDto. - + """ Prefix of the display name. :return: The display_name_prefix of this MapiMessageDto. @@ -467,8 +491,7 @@ def display_name_prefix(self) -> str: @display_name_prefix.setter def display_name_prefix(self, display_name_prefix: str): - """Sets the display_name_prefix of this MapiMessageDto. - + """ Prefix of the display name. :param display_name_prefix: The display_name_prefix of this MapiMessageDto. @@ -478,8 +501,7 @@ def display_name_prefix(self, display_name_prefix: str): @property def display_to(self) -> str: - """Gets the display_to of this MapiMessageDto. - + """ List of the display names of the primary (To) message recipients, separated by semicolons (;). :return: The display_to of this MapiMessageDto. @@ -489,8 +511,7 @@ def display_to(self) -> str: @display_to.setter def display_to(self, display_to: str): - """Sets the display_to of this MapiMessageDto. - + """ List of the display names of the primary (To) message recipients, separated by semicolons (;). :param display_to: The display_to of this MapiMessageDto. @@ -500,8 +521,7 @@ def display_to(self, display_to: str): @property def flags(self) -> List[str]: - """Gets the flags of this MapiMessageDto. - + """ Message flags. Items: Mapi message flags. Enum, available values: MsgFlagZero, MsgFlagRead, MsgFlagUnmodified, MsgFlagSubmit, MsgFlagUnsent, MsgFlagHasAttach, MsgFlagFromMe, MsgFlagAssociated, MsgFlagResend, MsgFlagNotifyRead, MsgFlagNotifyUnread, MsgFlagEverRead, MsgFlagOriginX400, MsgFlagOriginInternet, MsgFlagOriginMiscExt :return: The flags of this MapiMessageDto. @@ -511,8 +531,7 @@ def flags(self) -> List[str]: @flags.setter def flags(self, flags: List[str]): - """Sets the flags of this MapiMessageDto. - + """ Message flags. Items: Mapi message flags. Enum, available values: MsgFlagZero, MsgFlagRead, MsgFlagUnmodified, MsgFlagSubmit, MsgFlagUnsent, MsgFlagHasAttach, MsgFlagFromMe, MsgFlagAssociated, MsgFlagResend, MsgFlagNotifyRead, MsgFlagNotifyUnread, MsgFlagEverRead, MsgFlagOriginX400, MsgFlagOriginInternet, MsgFlagOriginMiscExt :param flags: The flags of this MapiMessageDto. @@ -522,8 +541,7 @@ def flags(self, flags: List[str]): @property def headers(self) -> Dict[str, str]: - """Gets the headers of this MapiMessageDto. - + """ Transport message headers :return: The headers of this MapiMessageDto. @@ -533,8 +551,7 @@ def headers(self) -> Dict[str, str]: @headers.setter def headers(self, headers: Dict[str, str]): - """Sets the headers of this MapiMessageDto. - + """ Transport message headers :param headers: The headers of this MapiMessageDto. @@ -544,8 +561,7 @@ def headers(self, headers: Dict[str, str]): @property def internet_message_id(self) -> str: - """Gets the internet_message_id of this MapiMessageDto. - + """ Internet message id of the message. :return: The internet_message_id of this MapiMessageDto. @@ -555,8 +571,7 @@ def internet_message_id(self) -> str: @internet_message_id.setter def internet_message_id(self, internet_message_id: str): - """Sets the internet_message_id of this MapiMessageDto. - + """ Internet message id of the message. :param internet_message_id: The internet_message_id of this MapiMessageDto. @@ -566,8 +581,7 @@ def internet_message_id(self, internet_message_id: str): @property def message_format(self) -> str: - """Gets the message_format of this MapiMessageDto. - + """ Represents outlook message format. Enum, available values: Ascii, Unicode :return: The message_format of this MapiMessageDto. @@ -577,8 +591,7 @@ def message_format(self) -> str: @message_format.setter def message_format(self, message_format: str): - """Sets the message_format of this MapiMessageDto. - + """ Represents outlook message format. Enum, available values: Ascii, Unicode :param message_format: The message_format of this MapiMessageDto. @@ -590,8 +603,7 @@ def message_format(self, message_format: str): @property def normalized_subject(self) -> str: - """Gets the normalized_subject of this MapiMessageDto. - + """ Normalized subject of the message. :return: The normalized_subject of this MapiMessageDto. @@ -601,8 +613,7 @@ def normalized_subject(self) -> str: @normalized_subject.setter def normalized_subject(self, normalized_subject: str): - """Sets the normalized_subject of this MapiMessageDto. - + """ Normalized subject of the message. :param normalized_subject: The normalized_subject of this MapiMessageDto. @@ -612,8 +623,7 @@ def normalized_subject(self, normalized_subject: str): @property def read_receipt_requested(self) -> bool: - """Gets the read_receipt_requested of this MapiMessageDto. - + """ Value indicating whether the read receipt is requested. :return: The read_receipt_requested of this MapiMessageDto. @@ -623,8 +633,7 @@ def read_receipt_requested(self) -> bool: @read_receipt_requested.setter def read_receipt_requested(self, read_receipt_requested: bool): - """Sets the read_receipt_requested of this MapiMessageDto. - + """ Value indicating whether the read receipt is requested. :param read_receipt_requested: The read_receipt_requested of this MapiMessageDto. @@ -636,8 +645,7 @@ def read_receipt_requested(self, read_receipt_requested: bool): @property def reply_to(self) -> str: - """Gets the reply_to of this MapiMessageDto. - + """ Reply to names. :return: The reply_to of this MapiMessageDto. @@ -647,8 +655,7 @@ def reply_to(self) -> str: @reply_to.setter def reply_to(self, reply_to: str): - """Sets the reply_to of this MapiMessageDto. - + """ Reply to names. :param reply_to: The reply_to of this MapiMessageDto. @@ -658,8 +665,7 @@ def reply_to(self, reply_to: str): @property def sender_address_type(self) -> str: - """Gets the sender_address_type of this MapiMessageDto. - + """ Message sender's e-mail address type. :return: The sender_address_type of this MapiMessageDto. @@ -669,8 +675,7 @@ def sender_address_type(self) -> str: @sender_address_type.setter def sender_address_type(self, sender_address_type: str): - """Sets the sender_address_type of this MapiMessageDto. - + """ Message sender's e-mail address type. :param sender_address_type: The sender_address_type of this MapiMessageDto. @@ -680,8 +685,7 @@ def sender_address_type(self, sender_address_type: str): @property def sender_email_address(self) -> str: - """Gets the sender_email_address of this MapiMessageDto. - + """ Message sender's e-mail address. :return: The sender_email_address of this MapiMessageDto. @@ -691,8 +695,7 @@ def sender_email_address(self) -> str: @sender_email_address.setter def sender_email_address(self, sender_email_address: str): - """Sets the sender_email_address of this MapiMessageDto. - + """ Message sender's e-mail address. :param sender_email_address: The sender_email_address of this MapiMessageDto. @@ -702,8 +705,7 @@ def sender_email_address(self, sender_email_address: str): @property def sender_name(self) -> str: - """Gets the sender_name of this MapiMessageDto. - + """ Message sender's display name. :return: The sender_name of this MapiMessageDto. @@ -713,8 +715,7 @@ def sender_name(self) -> str: @sender_name.setter def sender_name(self, sender_name: str): - """Sets the sender_name of this MapiMessageDto. - + """ Message sender's display name. :param sender_name: The sender_name of this MapiMessageDto. @@ -724,8 +725,7 @@ def sender_name(self, sender_name: str): @property def sender_smtp_address(self) -> str: - """Gets the sender_smtp_address of this MapiMessageDto. - + """ Message sender's e-mail address. :return: The sender_smtp_address of this MapiMessageDto. @@ -735,8 +735,7 @@ def sender_smtp_address(self) -> str: @sender_smtp_address.setter def sender_smtp_address(self, sender_smtp_address: str): - """Sets the sender_smtp_address of this MapiMessageDto. - + """ Message sender's e-mail address. :param sender_smtp_address: The sender_smtp_address of this MapiMessageDto. @@ -746,8 +745,7 @@ def sender_smtp_address(self, sender_smtp_address: str): @property def sent_representing_address_type(self) -> str: - """Gets the sent_representing_address_type of this MapiMessageDto. - + """ Address type for the messaging user represented by the sender. :return: The sent_representing_address_type of this MapiMessageDto. @@ -757,8 +755,7 @@ def sent_representing_address_type(self) -> str: @sent_representing_address_type.setter def sent_representing_address_type(self, sent_representing_address_type: str): - """Sets the sent_representing_address_type of this MapiMessageDto. - + """ Address type for the messaging user represented by the sender. :param sent_representing_address_type: The sent_representing_address_type of this MapiMessageDto. @@ -768,8 +765,7 @@ def sent_representing_address_type(self, sent_representing_address_type: str): @property def sent_representing_email_address(self) -> str: - """Gets the sent_representing_email_address of this MapiMessageDto. - + """ E-mail address for the messaging user represented by the sender. :return: The sent_representing_email_address of this MapiMessageDto. @@ -779,8 +775,7 @@ def sent_representing_email_address(self) -> str: @sent_representing_email_address.setter def sent_representing_email_address(self, sent_representing_email_address: str): - """Sets the sent_representing_email_address of this MapiMessageDto. - + """ E-mail address for the messaging user represented by the sender. :param sent_representing_email_address: The sent_representing_email_address of this MapiMessageDto. @@ -790,8 +785,7 @@ def sent_representing_email_address(self, sent_representing_email_address: str): @property def sent_representing_name(self) -> str: - """Gets the sent_representing_name of this MapiMessageDto. - + """ Display name for the messaging user represented by the sender. :return: The sent_representing_name of this MapiMessageDto. @@ -801,8 +795,7 @@ def sent_representing_name(self) -> str: @sent_representing_name.setter def sent_representing_name(self, sent_representing_name: str): - """Sets the sent_representing_name of this MapiMessageDto. - + """ Display name for the messaging user represented by the sender. :param sent_representing_name: The sent_representing_name of this MapiMessageDto. @@ -812,8 +805,7 @@ def sent_representing_name(self, sent_representing_name: str): @property def sent_representing_smtp_address(self) -> str: - """Gets the sent_representing_smtp_address of this MapiMessageDto. - + """ E-mail address for the messaging user represented by the sender. :return: The sent_representing_smtp_address of this MapiMessageDto. @@ -823,8 +815,7 @@ def sent_representing_smtp_address(self) -> str: @sent_representing_smtp_address.setter def sent_representing_smtp_address(self, sent_representing_smtp_address: str): - """Sets the sent_representing_smtp_address of this MapiMessageDto. - + """ E-mail address for the messaging user represented by the sender. :param sent_representing_smtp_address: The sent_representing_smtp_address of this MapiMessageDto. @@ -834,8 +825,7 @@ def sent_representing_smtp_address(self, sent_representing_smtp_address: str): @property def transport_message_headers(self) -> str: - """Gets the transport_message_headers of this MapiMessageDto. - + """ Transport-specific message envelope information. :return: The transport_message_headers of this MapiMessageDto. @@ -845,8 +835,7 @@ def transport_message_headers(self) -> str: @transport_message_headers.setter def transport_message_headers(self, transport_message_headers: str): - """Sets the transport_message_headers of this MapiMessageDto. - + """ Transport-specific message envelope information. :param transport_message_headers: The transport_message_headers of this MapiMessageDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_message_from_file_request.py b/sdk/AsposeEmailCloudSdk/models/mapi_message_from_file_request.py new file mode 100644 index 0000000..e651751 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/mapi_message_from_file_request.py @@ -0,0 +1,53 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class MapiMessageFromFileRequest(object): + """ + Request model for mapi_message_from_file operation. + Initializes a new instance. + + :param format: File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + :param file: File to convert + :type file: str + """ + + def __init__(self, format: str, file: str): + """ + Request model for mapi_message_from_file operation. + Initializes a new instance. + + :param format: File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + :param file: File to convert + :type file: str + """ + + self.format = format + self.file = file diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_message_get_request.py b/sdk/AsposeEmailCloudSdk/models/mapi_message_get_request.py new file mode 100644 index 0000000..dfa1e88 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/mapi_message_get_request.py @@ -0,0 +1,64 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class MapiMessageGetRequest(object): + """ + Request model for mapi_message_get operation. + Initializes a new instance. + + :param format: Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + :param file_name: Email document file name. + :type file_name: str + :param folder: Path to folder in storage. + :type folder: str + :param storage: Storage name. + :type storage: str + """ + + def __init__(self, format: str, file_name: str, folder: str = None, storage: str = None): + """ + Request model for mapi_message_get operation. + Initializes a new instance. + + :param format: Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + :param file_name: Email document file name. + :type file_name: str + :param folder: Path to folder in storage. + :type folder: str + :param storage: Storage name. + :type storage: str + """ + + self.format = format + self.file_name = file_name + self.folder = folder + self.storage = storage + diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_message_item_base_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_message_item_base_dto.py index b12c4e2..6c4a60b 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_message_item_base_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_message_item_base_dto.py @@ -86,26 +86,41 @@ class MapiMessageItemBaseDto(object): 'discriminator': 'discriminator' } - def __init__(self, attachments: List[MapiAttachmentDto] = None, billing: str = None, body: str = None, body_html: str = None, body_rtf: str = None, body_type: str = None, categories: List[str] = None, companies: List[str] = None, item_id: str = None, message_class: str = None, mileage: str = None, recipients: List[MapiRecipientDto] = None, sensitivity: str = None, subject: str = None, subject_prefix: str = None, properties: List[MapiPropertyDto] = None, discriminator: str = None): + def __init__(self, attachments: List[MapiAttachmentDto] = None, billing: str = None, body: str = None, body_html: str = None, body_rtf: str = None, body_type: str = None, categories: List[str] = None, companies: List[str] = None, item_id: str = None, message_class: str = None, mileage: str = None, recipients: List[MapiRecipientDto] = None, sensitivity: str = None, subject: str = None, subject_prefix: str = None, properties: List[MapiPropertyDto] = None): """ Base Dto for MapiMessage, MapiCalendar or MapiContact - :param attachments (List[MapiAttachmentDto]) Message item attachments. - :param billing (str) Billing information associated with an item. - :param body (str) Message text. - :param body_html (str) Gets the BodyRtf of the message converted to HTML, if present, otherwise an empty string. - :param body_rtf (str) RTF formatted message text. - :param body_type (str) The content type of message body. Enum, available values: PlainText, Html, Rtf - :param categories (List[str]) Contains keywords or categories for the message object. - :param companies (List[str]) Contains the names of the companies that are associated with an item. - :param item_id (str) The item id, uses with a server. - :param message_class (str) Case-sensitive string that identifies the sender-defined message class, such as IPM.Note. The message class specifies the type, purpose, or content of the message. - :param mileage (str) Contains the mileage information that is associated with an item. - :param recipients (List[MapiRecipientDto]) Recipients of the message. - :param sensitivity (str) Contains values that indicate the message sensitivity. Enum, available values: None, Personal, Private, CompanyConfidential - :param subject (str) Subject of the message. - :param subject_prefix (str) Subject prefix that typically indicates some action on a message, such as \"FW: \" for forwarding. - :param properties (List[MapiPropertyDto]) List of MAPI properties - :param discriminator (str) + :param attachments: Message item attachments. + :type attachments: List[MapiAttachmentDto] + :param billing: Billing information associated with an item. + :type billing: str + :param body: Message text. + :type body: str + :param body_html: Gets the BodyRtf of the message converted to HTML, if present, otherwise an empty string. + :type body_html: str + :param body_rtf: RTF formatted message text. + :type body_rtf: str + :param body_type: The content type of message body. Enum, available values: PlainText, Html, Rtf + :type body_type: str + :param categories: Contains keywords or categories for the message object. + :type categories: List[str] + :param companies: Contains the names of the companies that are associated with an item. + :type companies: List[str] + :param item_id: The item id, uses with a server. + :type item_id: str + :param message_class: Case-sensitive string that identifies the sender-defined message class, such as IPM.Note. The message class specifies the type, purpose, or content of the message. + :type message_class: str + :param mileage: Contains the mileage information that is associated with an item. + :type mileage: str + :param recipients: Recipients of the message. + :type recipients: List[MapiRecipientDto] + :param sensitivity: Contains values that indicate the message sensitivity. Enum, available values: None, Personal, Private, CompanyConfidential + :type sensitivity: str + :param subject: Subject of the message. + :type subject: str + :param subject_prefix: Subject prefix that typically indicates some action on a message, such as \"FW: \" for forwarding. + :type subject_prefix: str + :param properties: List of MAPI properties + :type properties: List[MapiPropertyDto] """ self._attachments = None @@ -124,7 +139,6 @@ def __init__(self, attachments: List[MapiAttachmentDto] = None, billing: str = N self._subject = None self._subject_prefix = None self._properties = None - self._discriminator = self.__class__.__name__ if attachments is not None: self.attachments = attachments @@ -158,13 +172,11 @@ def __init__(self, attachments: List[MapiAttachmentDto] = None, billing: str = N self.subject_prefix = subject_prefix if properties is not None: self.properties = properties - if discriminator is not None: - self.discriminator = discriminator + @property def attachments(self) -> List[MapiAttachmentDto]: - """Gets the attachments of this MapiMessageItemBaseDto. - + """ Message item attachments. :return: The attachments of this MapiMessageItemBaseDto. @@ -174,8 +186,7 @@ def attachments(self) -> List[MapiAttachmentDto]: @attachments.setter def attachments(self, attachments: List[MapiAttachmentDto]): - """Sets the attachments of this MapiMessageItemBaseDto. - + """ Message item attachments. :param attachments: The attachments of this MapiMessageItemBaseDto. @@ -185,8 +196,7 @@ def attachments(self, attachments: List[MapiAttachmentDto]): @property def billing(self) -> str: - """Gets the billing of this MapiMessageItemBaseDto. - + """ Billing information associated with an item. :return: The billing of this MapiMessageItemBaseDto. @@ -196,8 +206,7 @@ def billing(self) -> str: @billing.setter def billing(self, billing: str): - """Sets the billing of this MapiMessageItemBaseDto. - + """ Billing information associated with an item. :param billing: The billing of this MapiMessageItemBaseDto. @@ -207,8 +216,7 @@ def billing(self, billing: str): @property def body(self) -> str: - """Gets the body of this MapiMessageItemBaseDto. - + """ Message text. :return: The body of this MapiMessageItemBaseDto. @@ -218,8 +226,7 @@ def body(self) -> str: @body.setter def body(self, body: str): - """Sets the body of this MapiMessageItemBaseDto. - + """ Message text. :param body: The body of this MapiMessageItemBaseDto. @@ -229,8 +236,7 @@ def body(self, body: str): @property def body_html(self) -> str: - """Gets the body_html of this MapiMessageItemBaseDto. - + """ Gets the BodyRtf of the message converted to HTML, if present, otherwise an empty string. :return: The body_html of this MapiMessageItemBaseDto. @@ -240,8 +246,7 @@ def body_html(self) -> str: @body_html.setter def body_html(self, body_html: str): - """Sets the body_html of this MapiMessageItemBaseDto. - + """ Gets the BodyRtf of the message converted to HTML, if present, otherwise an empty string. :param body_html: The body_html of this MapiMessageItemBaseDto. @@ -251,8 +256,7 @@ def body_html(self, body_html: str): @property def body_rtf(self) -> str: - """Gets the body_rtf of this MapiMessageItemBaseDto. - + """ RTF formatted message text. :return: The body_rtf of this MapiMessageItemBaseDto. @@ -262,8 +266,7 @@ def body_rtf(self) -> str: @body_rtf.setter def body_rtf(self, body_rtf: str): - """Sets the body_rtf of this MapiMessageItemBaseDto. - + """ RTF formatted message text. :param body_rtf: The body_rtf of this MapiMessageItemBaseDto. @@ -273,8 +276,7 @@ def body_rtf(self, body_rtf: str): @property def body_type(self) -> str: - """Gets the body_type of this MapiMessageItemBaseDto. - + """ The content type of message body. Enum, available values: PlainText, Html, Rtf :return: The body_type of this MapiMessageItemBaseDto. @@ -284,8 +286,7 @@ def body_type(self) -> str: @body_type.setter def body_type(self, body_type: str): - """Sets the body_type of this MapiMessageItemBaseDto. - + """ The content type of message body. Enum, available values: PlainText, Html, Rtf :param body_type: The body_type of this MapiMessageItemBaseDto. @@ -297,8 +298,7 @@ def body_type(self, body_type: str): @property def categories(self) -> List[str]: - """Gets the categories of this MapiMessageItemBaseDto. - + """ Contains keywords or categories for the message object. :return: The categories of this MapiMessageItemBaseDto. @@ -308,8 +308,7 @@ def categories(self) -> List[str]: @categories.setter def categories(self, categories: List[str]): - """Sets the categories of this MapiMessageItemBaseDto. - + """ Contains keywords or categories for the message object. :param categories: The categories of this MapiMessageItemBaseDto. @@ -319,8 +318,7 @@ def categories(self, categories: List[str]): @property def companies(self) -> List[str]: - """Gets the companies of this MapiMessageItemBaseDto. - + """ Contains the names of the companies that are associated with an item. :return: The companies of this MapiMessageItemBaseDto. @@ -330,8 +328,7 @@ def companies(self) -> List[str]: @companies.setter def companies(self, companies: List[str]): - """Sets the companies of this MapiMessageItemBaseDto. - + """ Contains the names of the companies that are associated with an item. :param companies: The companies of this MapiMessageItemBaseDto. @@ -341,8 +338,7 @@ def companies(self, companies: List[str]): @property def item_id(self) -> str: - """Gets the item_id of this MapiMessageItemBaseDto. - + """ The item id, uses with a server. :return: The item_id of this MapiMessageItemBaseDto. @@ -352,8 +348,7 @@ def item_id(self) -> str: @item_id.setter def item_id(self, item_id: str): - """Sets the item_id of this MapiMessageItemBaseDto. - + """ The item id, uses with a server. :param item_id: The item_id of this MapiMessageItemBaseDto. @@ -363,8 +358,7 @@ def item_id(self, item_id: str): @property def message_class(self) -> str: - """Gets the message_class of this MapiMessageItemBaseDto. - + """ Case-sensitive string that identifies the sender-defined message class, such as IPM.Note. The message class specifies the type, purpose, or content of the message. :return: The message_class of this MapiMessageItemBaseDto. @@ -374,8 +368,7 @@ def message_class(self) -> str: @message_class.setter def message_class(self, message_class: str): - """Sets the message_class of this MapiMessageItemBaseDto. - + """ Case-sensitive string that identifies the sender-defined message class, such as IPM.Note. The message class specifies the type, purpose, or content of the message. :param message_class: The message_class of this MapiMessageItemBaseDto. @@ -385,8 +378,7 @@ def message_class(self, message_class: str): @property def mileage(self) -> str: - """Gets the mileage of this MapiMessageItemBaseDto. - + """ Contains the mileage information that is associated with an item. :return: The mileage of this MapiMessageItemBaseDto. @@ -396,8 +388,7 @@ def mileage(self) -> str: @mileage.setter def mileage(self, mileage: str): - """Sets the mileage of this MapiMessageItemBaseDto. - + """ Contains the mileage information that is associated with an item. :param mileage: The mileage of this MapiMessageItemBaseDto. @@ -407,8 +398,7 @@ def mileage(self, mileage: str): @property def recipients(self) -> List[MapiRecipientDto]: - """Gets the recipients of this MapiMessageItemBaseDto. - + """ Recipients of the message. :return: The recipients of this MapiMessageItemBaseDto. @@ -418,8 +408,7 @@ def recipients(self) -> List[MapiRecipientDto]: @recipients.setter def recipients(self, recipients: List[MapiRecipientDto]): - """Sets the recipients of this MapiMessageItemBaseDto. - + """ Recipients of the message. :param recipients: The recipients of this MapiMessageItemBaseDto. @@ -429,8 +418,7 @@ def recipients(self, recipients: List[MapiRecipientDto]): @property def sensitivity(self) -> str: - """Gets the sensitivity of this MapiMessageItemBaseDto. - + """ Contains values that indicate the message sensitivity. Enum, available values: None, Personal, Private, CompanyConfidential :return: The sensitivity of this MapiMessageItemBaseDto. @@ -440,8 +428,7 @@ def sensitivity(self) -> str: @sensitivity.setter def sensitivity(self, sensitivity: str): - """Sets the sensitivity of this MapiMessageItemBaseDto. - + """ Contains values that indicate the message sensitivity. Enum, available values: None, Personal, Private, CompanyConfidential :param sensitivity: The sensitivity of this MapiMessageItemBaseDto. @@ -453,8 +440,7 @@ def sensitivity(self, sensitivity: str): @property def subject(self) -> str: - """Gets the subject of this MapiMessageItemBaseDto. - + """ Subject of the message. :return: The subject of this MapiMessageItemBaseDto. @@ -464,8 +450,7 @@ def subject(self) -> str: @subject.setter def subject(self, subject: str): - """Sets the subject of this MapiMessageItemBaseDto. - + """ Subject of the message. :param subject: The subject of this MapiMessageItemBaseDto. @@ -475,8 +460,7 @@ def subject(self, subject: str): @property def subject_prefix(self) -> str: - """Gets the subject_prefix of this MapiMessageItemBaseDto. - + """ Subject prefix that typically indicates some action on a message, such as \"FW: \" for forwarding. :return: The subject_prefix of this MapiMessageItemBaseDto. @@ -486,8 +470,7 @@ def subject_prefix(self) -> str: @subject_prefix.setter def subject_prefix(self, subject_prefix: str): - """Sets the subject_prefix of this MapiMessageItemBaseDto. - + """ Subject prefix that typically indicates some action on a message, such as \"FW: \" for forwarding. :param subject_prefix: The subject_prefix of this MapiMessageItemBaseDto. @@ -497,8 +480,7 @@ def subject_prefix(self, subject_prefix: str): @property def properties(self) -> List[MapiPropertyDto]: - """Gets the properties of this MapiMessageItemBaseDto. - + """ List of MAPI properties :return: The properties of this MapiMessageItemBaseDto. @@ -508,8 +490,7 @@ def properties(self) -> List[MapiPropertyDto]: @properties.setter def properties(self, properties: List[MapiPropertyDto]): - """Sets the properties of this MapiMessageItemBaseDto. - + """ List of MAPI properties :param properties: The properties of this MapiMessageItemBaseDto. @@ -519,8 +500,8 @@ def properties(self, properties: List[MapiPropertyDto]): @property def discriminator(self) -> str: - """Gets the discriminator of this MapiMessageItemBaseDto. - + """ + Gets the discriminator of this MapiMessageItemBaseDto. :return: The discriminator of this MapiMessageItemBaseDto. :rtype: str @@ -529,15 +510,13 @@ def discriminator(self) -> str: @discriminator.setter def discriminator(self, discriminator: str): - """Sets the discriminator of this MapiMessageItemBaseDto. - + """ + Sets the discriminator of this MapiMessageItemBaseDto. :param discriminator: The discriminator of this MapiMessageItemBaseDto. :type: str """ - if discriminator is None: - raise ValueError("Invalid value for `discriminator`, must not be `None`") - self._discriminator = self.__class__.__name__ + pass # setter is ignored for discriminator property def to_dict(self): """Returns the model properties as a dict""" diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_message_save_request.py b/sdk/AsposeEmailCloudSdk/models/mapi_message_save_request.py new file mode 100644 index 0000000..badb119 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/mapi_message_save_request.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.mapi_message_dto import MapiMessageDto +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation +from AsposeEmailCloudSdk.models.storage_model_of_mapi_message_dto import StorageModelOfMapiMessageDto + + +class MapiMessageSaveRequest(StorageModelOfMapiMessageDto): + """MapiMessage save to storage 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 = { + 'storage_file': 'StorageFileLocation', + 'value': 'MapiMessageDto', + 'format': 'str' + } + + attribute_map = { + 'storage_file': 'storageFile', + 'value': 'value', + 'format': 'format' + } + + def __init__(self, storage_file: StorageFileLocation = None, value: MapiMessageDto = None, format: str = None): + """ + MapiMessage save to storage request. + :param storage_file: + :type storage_file: StorageFileLocation + :param value: + :type value: MapiMessageDto + :param format: Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + :type format: str + """ + super(MapiMessageSaveRequest, self).__init__() + + self._format = None + + if storage_file is not None: + self.storage_file = storage_file + if value is not None: + self.value = value + if format is not None: + self.format = format + + + @property + def format(self) -> str: + """ + Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + + :return: The format of this MapiMessageSaveRequest. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format: str): + """ + Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft + + :param format: The format of this MapiMessageSaveRequest. + :type: str + """ + if format is None: + raise ValueError("Invalid value for `format`, must not be `None`") + self._format = format + + 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, MapiMessageSaveRequest): + 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/mapi_multi_int_property_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_multi_int_property_dto.py index 57d41e5..eecbd0f 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_multi_int_property_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_multi_int_property_dto.py @@ -57,12 +57,13 @@ class MapiMultiIntPropertyDto(MapiPropertyDto): 'values': 'values' } - def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str = None, values: List[int] = None): + def __init__(self, descriptor: MapiPropertyDescriptor = None, values: List[int] = None): """ Mapi property with Multiple Integer values - :param descriptor (MapiPropertyDescriptor) Property descriptor - :param discriminator (str) - :param values (List[int]) Property values + :param descriptor: Property descriptor + :type descriptor: MapiPropertyDescriptor + :param values: Property values + :type values: List[int] """ super(MapiMultiIntPropertyDto, self).__init__() @@ -70,15 +71,13 @@ def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str if descriptor is not None: self.descriptor = descriptor - if discriminator is not None: - self.discriminator = discriminator if values is not None: self.values = values + @property def values(self) -> List[int]: - """Gets the values of this MapiMultiIntPropertyDto. - + """ Property values :return: The values of this MapiMultiIntPropertyDto. @@ -88,8 +87,7 @@ def values(self) -> List[int]: @values.setter def values(self, values: List[int]): - """Sets the values of this MapiMultiIntPropertyDto. - + """ Property values :param values: The values of this MapiMultiIntPropertyDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_multi_string_property_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_multi_string_property_dto.py index 492bb65..a36b88e 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_multi_string_property_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_multi_string_property_dto.py @@ -57,12 +57,13 @@ class MapiMultiStringPropertyDto(MapiPropertyDto): 'values': 'values' } - def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str = None, values: List[str] = None): + def __init__(self, descriptor: MapiPropertyDescriptor = None, values: List[str] = None): """ Mapi property with Multiple String values - :param descriptor (MapiPropertyDescriptor) Property descriptor - :param discriminator (str) - :param values (List[str]) Property values + :param descriptor: Property descriptor + :type descriptor: MapiPropertyDescriptor + :param values: Property values + :type values: List[str] """ super(MapiMultiStringPropertyDto, self).__init__() @@ -70,15 +71,13 @@ def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str if descriptor is not None: self.descriptor = descriptor - if discriminator is not None: - self.discriminator = discriminator if values is not None: self.values = values + @property def values(self) -> List[str]: - """Gets the values of this MapiMultiStringPropertyDto. - + """ Property values :return: The values of this MapiMultiStringPropertyDto. @@ -88,8 +87,7 @@ def values(self) -> List[str]: @values.setter def values(self, values: List[str]): - """Sets the values of this MapiMultiStringPropertyDto. - + """ Property values :param values: The values of this MapiMultiStringPropertyDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_physical_address_index_property_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_physical_address_index_property_dto.py index 1d555de..b4831bd 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_physical_address_index_property_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_physical_address_index_property_dto.py @@ -57,12 +57,13 @@ class MapiPhysicalAddressIndexPropertyDto(MapiPropertyDto): 'value': 'value' } - def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str = None, value: str = None): + def __init__(self, descriptor: MapiPropertyDescriptor = None, value: str = None): """ Mapi property with PhysicalAddressIndexType value - :param descriptor (MapiPropertyDescriptor) Property descriptor - :param discriminator (str) - :param value (str) Identifies the display types for physical addresses. Enum, available values: None, Home, Business, Other + :param descriptor: Property descriptor + :type descriptor: MapiPropertyDescriptor + :param value: Identifies the display types for physical addresses. Enum, available values: None, Home, Business, Other + :type value: str """ super(MapiPhysicalAddressIndexPropertyDto, self).__init__() @@ -70,15 +71,13 @@ def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str if descriptor is not None: self.descriptor = descriptor - if discriminator is not None: - self.discriminator = discriminator if value is not None: self.value = value + @property def value(self) -> str: - """Gets the value of this MapiPhysicalAddressIndexPropertyDto. - + """ Identifies the display types for physical addresses. Enum, available values: None, Home, Business, Other :return: The value of this MapiPhysicalAddressIndexPropertyDto. @@ -88,8 +87,7 @@ def value(self) -> str: @value.setter def value(self, value: str): - """Sets the value of this MapiPhysicalAddressIndexPropertyDto. - + """ Identifies the display types for physical addresses. Enum, available values: None, Home, Business, Other :param value: The value of this MapiPhysicalAddressIndexPropertyDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_pid_lid_property_descriptor.py b/sdk/AsposeEmailCloudSdk/models/mapi_pid_lid_property_descriptor.py index ee91666..07d54f3 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_pid_lid_property_descriptor.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_pid_lid_property_descriptor.py @@ -64,24 +64,26 @@ class MapiPidLidPropertyDescriptor(MapiPidPropertyDescriptor): 'property_set': 'propertySet' } - def __init__(self, discriminator: str = None, canonical_name: str = None, data_type: str = None, multiple_values_data_type: bool = None, name: str = None, long_id: int = None, property_set: str = None): + def __init__(self, canonical_name: str = None, data_type: str = None, multiple_values_data_type: bool = None, name: str = None, long_id: int = None, property_set: str = None): """ Property identified by an unsigned 32-bit quantity along with a property set - :param discriminator (str) - :param canonical_name (str) The name used to refer to the property in the documentation. The prefix of the canonical name identifies the basic characteristics of a property to the implementer. The canonical naming structure uses three categories that are denoted by the following prefixes to the canonical property name: * PidLid prefix: Properties identified by an unsigned 32-bit quantity along with a property set. * PidName prefix: Properties identified by a string name along with a property set. * PidTag prefix: Properties identified by an unsigned 16-bit quantity. - :param data_type (str) [MS-OXCDATA]: Data Structures Enum, available values: Unspecified, Null, Integer16, Integer32, Floating32, Floating64, Currency, FloatingTime, ErrorCode, Boolean, Integer64, String, String8, Time, Guid, ServerId, Restriction, RuleAction, Binary, MultipleInteger16, MultipleInteger32, MultipleFloating32, MultipleFloating64, MultipleCurrency, MultipleFloatingTime, MultipleBoolean, MultipleInteger64, MultipleString, MultipleString8, MultipleTime, MultipleGuid, MultipleBinary, Object - :param multiple_values_data_type (bool) Indicates if data type contains of multiple values - :param name (str) A string that identifies the property - :param long_id (int) An unsigned 32-bit quantity that, along with the property set, identifies a named property. - :param property_set (str) A GUID that identifies a group of properties with a similar purpose. + :param canonical_name: The name used to refer to the property in the documentation. The prefix of the canonical name identifies the basic characteristics of a property to the implementer. The canonical naming structure uses three categories that are denoted by the following prefixes to the canonical property name: * PidLid prefix: Properties identified by an unsigned 32-bit quantity along with a property set. * PidName prefix: Properties identified by a string name along with a property set. * PidTag prefix: Properties identified by an unsigned 16-bit quantity. + :type canonical_name: str + :param data_type: [MS-OXCDATA]: Data Structures Enum, available values: Unspecified, Null, Integer16, Integer32, Floating32, Floating64, Currency, FloatingTime, ErrorCode, Boolean, Integer64, String, String8, Time, Guid, ServerId, Restriction, RuleAction, Binary, MultipleInteger16, MultipleInteger32, MultipleFloating32, MultipleFloating64, MultipleCurrency, MultipleFloatingTime, MultipleBoolean, MultipleInteger64, MultipleString, MultipleString8, MultipleTime, MultipleGuid, MultipleBinary, Object + :type data_type: str + :param multiple_values_data_type: Indicates if data type contains of multiple values + :type multiple_values_data_type: bool + :param name: A string that identifies the property + :type name: str + :param long_id: An unsigned 32-bit quantity that, along with the property set, identifies a named property. + :type long_id: int + :param property_set: A GUID that identifies a group of properties with a similar purpose. + :type property_set: str """ super(MapiPidLidPropertyDescriptor, self).__init__() self._long_id = None self._property_set = None - - if discriminator is not None: - self.discriminator = discriminator if canonical_name is not None: self.canonical_name = canonical_name if data_type is not None: @@ -95,10 +97,10 @@ def __init__(self, discriminator: str = None, canonical_name: str = None, data_t if property_set is not None: self.property_set = property_set + @property def long_id(self) -> int: - """Gets the long_id of this MapiPidLidPropertyDescriptor. - + """ An unsigned 32-bit quantity that, along with the property set, identifies a named property. :return: The long_id of this MapiPidLidPropertyDescriptor. @@ -108,8 +110,7 @@ def long_id(self) -> int: @long_id.setter def long_id(self, long_id: int): - """Sets the long_id of this MapiPidLidPropertyDescriptor. - + """ An unsigned 32-bit quantity that, along with the property set, identifies a named property. :param long_id: The long_id of this MapiPidLidPropertyDescriptor. @@ -121,8 +122,7 @@ def long_id(self, long_id: int): @property def property_set(self) -> str: - """Gets the property_set of this MapiPidLidPropertyDescriptor. - + """ A GUID that identifies a group of properties with a similar purpose. :return: The property_set of this MapiPidLidPropertyDescriptor. @@ -132,8 +132,7 @@ def property_set(self) -> str: @property_set.setter def property_set(self, property_set: str): - """Sets the property_set of this MapiPidLidPropertyDescriptor. - + """ A GUID that identifies a group of properties with a similar purpose. :param property_set: The property_set of this MapiPidLidPropertyDescriptor. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_pid_name_property_descriptor.py b/sdk/AsposeEmailCloudSdk/models/mapi_pid_name_property_descriptor.py index 4548b88..1e036f0 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_pid_name_property_descriptor.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_pid_name_property_descriptor.py @@ -62,22 +62,23 @@ class MapiPidNamePropertyDescriptor(MapiPidPropertyDescriptor): 'property_set': 'propertySet' } - def __init__(self, discriminator: str = None, canonical_name: str = None, data_type: str = None, multiple_values_data_type: bool = None, name: str = None, property_set: str = None): + def __init__(self, canonical_name: str = None, data_type: str = None, multiple_values_data_type: bool = None, name: str = None, property_set: str = None): """ Property identified by a string name along with a property set - :param discriminator (str) - :param canonical_name (str) The name used to refer to the property in the documentation. The prefix of the canonical name identifies the basic characteristics of a property to the implementer. The canonical naming structure uses three categories that are denoted by the following prefixes to the canonical property name: * PidLid prefix: Properties identified by an unsigned 32-bit quantity along with a property set. * PidName prefix: Properties identified by a string name along with a property set. * PidTag prefix: Properties identified by an unsigned 16-bit quantity. - :param data_type (str) [MS-OXCDATA]: Data Structures Enum, available values: Unspecified, Null, Integer16, Integer32, Floating32, Floating64, Currency, FloatingTime, ErrorCode, Boolean, Integer64, String, String8, Time, Guid, ServerId, Restriction, RuleAction, Binary, MultipleInteger16, MultipleInteger32, MultipleFloating32, MultipleFloating64, MultipleCurrency, MultipleFloatingTime, MultipleBoolean, MultipleInteger64, MultipleString, MultipleString8, MultipleTime, MultipleGuid, MultipleBinary, Object - :param multiple_values_data_type (bool) Indicates if data type contains of multiple values - :param name (str) A string that identifies the property - :param property_set (str) A GUID that identifies a group of properties with a similar purpose. + :param canonical_name: The name used to refer to the property in the documentation. The prefix of the canonical name identifies the basic characteristics of a property to the implementer. The canonical naming structure uses three categories that are denoted by the following prefixes to the canonical property name: * PidLid prefix: Properties identified by an unsigned 32-bit quantity along with a property set. * PidName prefix: Properties identified by a string name along with a property set. * PidTag prefix: Properties identified by an unsigned 16-bit quantity. + :type canonical_name: str + :param data_type: [MS-OXCDATA]: Data Structures Enum, available values: Unspecified, Null, Integer16, Integer32, Floating32, Floating64, Currency, FloatingTime, ErrorCode, Boolean, Integer64, String, String8, Time, Guid, ServerId, Restriction, RuleAction, Binary, MultipleInteger16, MultipleInteger32, MultipleFloating32, MultipleFloating64, MultipleCurrency, MultipleFloatingTime, MultipleBoolean, MultipleInteger64, MultipleString, MultipleString8, MultipleTime, MultipleGuid, MultipleBinary, Object + :type data_type: str + :param multiple_values_data_type: Indicates if data type contains of multiple values + :type multiple_values_data_type: bool + :param name: A string that identifies the property + :type name: str + :param property_set: A GUID that identifies a group of properties with a similar purpose. + :type property_set: str """ super(MapiPidNamePropertyDescriptor, self).__init__() self._property_set = None - - if discriminator is not None: - self.discriminator = discriminator if canonical_name is not None: self.canonical_name = canonical_name if data_type is not None: @@ -89,10 +90,10 @@ def __init__(self, discriminator: str = None, canonical_name: str = None, data_t if property_set is not None: self.property_set = property_set + @property def property_set(self) -> str: - """Gets the property_set of this MapiPidNamePropertyDescriptor. - + """ A GUID that identifies a group of properties with a similar purpose. :return: The property_set of this MapiPidNamePropertyDescriptor. @@ -102,8 +103,7 @@ def property_set(self) -> str: @property_set.setter def property_set(self, property_set: str): - """Sets the property_set of this MapiPidNamePropertyDescriptor. - + """ A GUID that identifies a group of properties with a similar purpose. :param property_set: The property_set of this MapiPidNamePropertyDescriptor. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_pid_property_descriptor.py b/sdk/AsposeEmailCloudSdk/models/mapi_pid_property_descriptor.py index 8483dba..cd4572d 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_pid_property_descriptor.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_pid_property_descriptor.py @@ -60,14 +60,17 @@ class MapiPidPropertyDescriptor(MapiPropertyDescriptor): 'name': 'name' } - def __init__(self, discriminator: str = None, canonical_name: str = None, data_type: str = None, multiple_values_data_type: bool = None, name: str = None): + def __init__(self, canonical_name: str = None, data_type: str = None, multiple_values_data_type: bool = None, name: str = None): """ Mapi pid property descriptor base class - :param discriminator (str) - :param canonical_name (str) The name used to refer to the property in the documentation. The prefix of the canonical name identifies the basic characteristics of a property to the implementer. The canonical naming structure uses three categories that are denoted by the following prefixes to the canonical property name: * PidLid prefix: Properties identified by an unsigned 32-bit quantity along with a property set. * PidName prefix: Properties identified by a string name along with a property set. * PidTag prefix: Properties identified by an unsigned 16-bit quantity. - :param data_type (str) [MS-OXCDATA]: Data Structures Enum, available values: Unspecified, Null, Integer16, Integer32, Floating32, Floating64, Currency, FloatingTime, ErrorCode, Boolean, Integer64, String, String8, Time, Guid, ServerId, Restriction, RuleAction, Binary, MultipleInteger16, MultipleInteger32, MultipleFloating32, MultipleFloating64, MultipleCurrency, MultipleFloatingTime, MultipleBoolean, MultipleInteger64, MultipleString, MultipleString8, MultipleTime, MultipleGuid, MultipleBinary, Object - :param multiple_values_data_type (bool) Indicates if data type contains of multiple values - :param name (str) A string that identifies the property + :param canonical_name: The name used to refer to the property in the documentation. The prefix of the canonical name identifies the basic characteristics of a property to the implementer. The canonical naming structure uses three categories that are denoted by the following prefixes to the canonical property name: * PidLid prefix: Properties identified by an unsigned 32-bit quantity along with a property set. * PidName prefix: Properties identified by a string name along with a property set. * PidTag prefix: Properties identified by an unsigned 16-bit quantity. + :type canonical_name: str + :param data_type: [MS-OXCDATA]: Data Structures Enum, available values: Unspecified, Null, Integer16, Integer32, Floating32, Floating64, Currency, FloatingTime, ErrorCode, Boolean, Integer64, String, String8, Time, Guid, ServerId, Restriction, RuleAction, Binary, MultipleInteger16, MultipleInteger32, MultipleFloating32, MultipleFloating64, MultipleCurrency, MultipleFloatingTime, MultipleBoolean, MultipleInteger64, MultipleString, MultipleString8, MultipleTime, MultipleGuid, MultipleBinary, Object + :type data_type: str + :param multiple_values_data_type: Indicates if data type contains of multiple values + :type multiple_values_data_type: bool + :param name: A string that identifies the property + :type name: str """ super(MapiPidPropertyDescriptor, self).__init__() @@ -75,9 +78,6 @@ def __init__(self, discriminator: str = None, canonical_name: str = None, data_t self._data_type = None self._multiple_values_data_type = None self._name = None - - if discriminator is not None: - self.discriminator = discriminator if canonical_name is not None: self.canonical_name = canonical_name if data_type is not None: @@ -87,10 +87,10 @@ def __init__(self, discriminator: str = None, canonical_name: str = None, data_t if name is not None: self.name = name + @property def canonical_name(self) -> str: - """Gets the canonical_name of this MapiPidPropertyDescriptor. - + """ The name used to refer to the property in the documentation. The prefix of the canonical name identifies the basic characteristics of a property to the implementer. The canonical naming structure uses three categories that are denoted by the following prefixes to the canonical property name: * PidLid prefix: Properties identified by an unsigned 32-bit quantity along with a property set. * PidName prefix: Properties identified by a string name along with a property set. * PidTag prefix: Properties identified by an unsigned 16-bit quantity. :return: The canonical_name of this MapiPidPropertyDescriptor. @@ -100,8 +100,7 @@ def canonical_name(self) -> str: @canonical_name.setter def canonical_name(self, canonical_name: str): - """Sets the canonical_name of this MapiPidPropertyDescriptor. - + """ The name used to refer to the property in the documentation. The prefix of the canonical name identifies the basic characteristics of a property to the implementer. The canonical naming structure uses three categories that are denoted by the following prefixes to the canonical property name: * PidLid prefix: Properties identified by an unsigned 32-bit quantity along with a property set. * PidName prefix: Properties identified by a string name along with a property set. * PidTag prefix: Properties identified by an unsigned 16-bit quantity. :param canonical_name: The canonical_name of this MapiPidPropertyDescriptor. @@ -111,8 +110,7 @@ def canonical_name(self, canonical_name: str): @property def data_type(self) -> str: - """Gets the data_type of this MapiPidPropertyDescriptor. - + """ [MS-OXCDATA]: Data Structures Enum, available values: Unspecified, Null, Integer16, Integer32, Floating32, Floating64, Currency, FloatingTime, ErrorCode, Boolean, Integer64, String, String8, Time, Guid, ServerId, Restriction, RuleAction, Binary, MultipleInteger16, MultipleInteger32, MultipleFloating32, MultipleFloating64, MultipleCurrency, MultipleFloatingTime, MultipleBoolean, MultipleInteger64, MultipleString, MultipleString8, MultipleTime, MultipleGuid, MultipleBinary, Object :return: The data_type of this MapiPidPropertyDescriptor. @@ -122,8 +120,7 @@ def data_type(self) -> str: @data_type.setter def data_type(self, data_type: str): - """Sets the data_type of this MapiPidPropertyDescriptor. - + """ [MS-OXCDATA]: Data Structures Enum, available values: Unspecified, Null, Integer16, Integer32, Floating32, Floating64, Currency, FloatingTime, ErrorCode, Boolean, Integer64, String, String8, Time, Guid, ServerId, Restriction, RuleAction, Binary, MultipleInteger16, MultipleInteger32, MultipleFloating32, MultipleFloating64, MultipleCurrency, MultipleFloatingTime, MultipleBoolean, MultipleInteger64, MultipleString, MultipleString8, MultipleTime, MultipleGuid, MultipleBinary, Object :param data_type: The data_type of this MapiPidPropertyDescriptor. @@ -135,8 +132,7 @@ def data_type(self, data_type: str): @property def multiple_values_data_type(self) -> bool: - """Gets the multiple_values_data_type of this MapiPidPropertyDescriptor. - + """ Indicates if data type contains of multiple values :return: The multiple_values_data_type of this MapiPidPropertyDescriptor. @@ -146,8 +142,7 @@ def multiple_values_data_type(self) -> bool: @multiple_values_data_type.setter def multiple_values_data_type(self, multiple_values_data_type: bool): - """Sets the multiple_values_data_type of this MapiPidPropertyDescriptor. - + """ Indicates if data type contains of multiple values :param multiple_values_data_type: The multiple_values_data_type of this MapiPidPropertyDescriptor. @@ -159,8 +154,7 @@ def multiple_values_data_type(self, multiple_values_data_type: bool): @property def name(self) -> str: - """Gets the name of this MapiPidPropertyDescriptor. - + """ A string that identifies the property :return: The name of this MapiPidPropertyDescriptor. @@ -170,8 +164,7 @@ def name(self) -> str: @name.setter def name(self, name: str): - """Sets the name of this MapiPidPropertyDescriptor. - + """ A string that identifies the property :param name: The name of this MapiPidPropertyDescriptor. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_pid_tag_property_descriptor.py b/sdk/AsposeEmailCloudSdk/models/mapi_pid_tag_property_descriptor.py index 7fc0bc6..19c49f2 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_pid_tag_property_descriptor.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_pid_tag_property_descriptor.py @@ -64,24 +64,26 @@ class MapiPidTagPropertyDescriptor(MapiPidPropertyDescriptor): 'tag': 'tag' } - def __init__(self, discriminator: str = None, canonical_name: str = None, data_type: str = None, multiple_values_data_type: bool = None, name: str = None, id: int = None, tag: int = None): + def __init__(self, canonical_name: str = None, data_type: str = None, multiple_values_data_type: bool = None, name: str = None, id: int = None, tag: int = None): """ A property that is defined by a 16-bit property ID and a 16-bit property type. The property ID for a tagged property is in the range 0x001 - 0x7FFF. Property IDs in the range 0x8000 - 0x8FFF are reserved for assignment to named properties - :param discriminator (str) - :param canonical_name (str) The name used to refer to the property in the documentation. The prefix of the canonical name identifies the basic characteristics of a property to the implementer. The canonical naming structure uses three categories that are denoted by the following prefixes to the canonical property name: * PidLid prefix: Properties identified by an unsigned 32-bit quantity along with a property set. * PidName prefix: Properties identified by a string name along with a property set. * PidTag prefix: Properties identified by an unsigned 16-bit quantity. - :param data_type (str) [MS-OXCDATA]: Data Structures Enum, available values: Unspecified, Null, Integer16, Integer32, Floating32, Floating64, Currency, FloatingTime, ErrorCode, Boolean, Integer64, String, String8, Time, Guid, ServerId, Restriction, RuleAction, Binary, MultipleInteger16, MultipleInteger32, MultipleFloating32, MultipleFloating64, MultipleCurrency, MultipleFloatingTime, MultipleBoolean, MultipleInteger64, MultipleString, MultipleString8, MultipleTime, MultipleGuid, MultipleBinary, Object - :param multiple_values_data_type (bool) Indicates if data type contains of multiple values - :param name (str) A string that identifies the property - :param id (int) An unsigned 16-bit quantity that identifies a tagged property. Property IDs are not necessarily unique. With the exception of property IDs in the range from 0x6800 to 0x7BFF, the combination of property ID and data type are unique. Property IDs in the range from 0x6800 to 0x7BFF are defined by the message class. - :param tag (int) A property tag is a 32-bit number that contains a unique property identifier in bits 16 through 31 and a property type in bits 0 through 15. + :param canonical_name: The name used to refer to the property in the documentation. The prefix of the canonical name identifies the basic characteristics of a property to the implementer. The canonical naming structure uses three categories that are denoted by the following prefixes to the canonical property name: * PidLid prefix: Properties identified by an unsigned 32-bit quantity along with a property set. * PidName prefix: Properties identified by a string name along with a property set. * PidTag prefix: Properties identified by an unsigned 16-bit quantity. + :type canonical_name: str + :param data_type: [MS-OXCDATA]: Data Structures Enum, available values: Unspecified, Null, Integer16, Integer32, Floating32, Floating64, Currency, FloatingTime, ErrorCode, Boolean, Integer64, String, String8, Time, Guid, ServerId, Restriction, RuleAction, Binary, MultipleInteger16, MultipleInteger32, MultipleFloating32, MultipleFloating64, MultipleCurrency, MultipleFloatingTime, MultipleBoolean, MultipleInteger64, MultipleString, MultipleString8, MultipleTime, MultipleGuid, MultipleBinary, Object + :type data_type: str + :param multiple_values_data_type: Indicates if data type contains of multiple values + :type multiple_values_data_type: bool + :param name: A string that identifies the property + :type name: str + :param id: An unsigned 16-bit quantity that identifies a tagged property. Property IDs are not necessarily unique. With the exception of property IDs in the range from 0x6800 to 0x7BFF, the combination of property ID and data type are unique. Property IDs in the range from 0x6800 to 0x7BFF are defined by the message class. + :type id: int + :param tag: A property tag is a 32-bit number that contains a unique property identifier in bits 16 through 31 and a property type in bits 0 through 15. + :type tag: int """ super(MapiPidTagPropertyDescriptor, self).__init__() self._id = None self._tag = None - - if discriminator is not None: - self.discriminator = discriminator if canonical_name is not None: self.canonical_name = canonical_name if data_type is not None: @@ -95,10 +97,10 @@ def __init__(self, discriminator: str = None, canonical_name: str = None, data_t if tag is not None: self.tag = tag + @property def id(self) -> int: - """Gets the id of this MapiPidTagPropertyDescriptor. - + """ An unsigned 16-bit quantity that identifies a tagged property. Property IDs are not necessarily unique. With the exception of property IDs in the range from 0x6800 to 0x7BFF, the combination of property ID and data type are unique. Property IDs in the range from 0x6800 to 0x7BFF are defined by the message class. :return: The id of this MapiPidTagPropertyDescriptor. @@ -108,8 +110,7 @@ def id(self) -> int: @id.setter def id(self, id: int): - """Sets the id of this MapiPidTagPropertyDescriptor. - + """ An unsigned 16-bit quantity that identifies a tagged property. Property IDs are not necessarily unique. With the exception of property IDs in the range from 0x6800 to 0x7BFF, the combination of property ID and data type are unique. Property IDs in the range from 0x6800 to 0x7BFF are defined by the message class. :param id: The id of this MapiPidTagPropertyDescriptor. @@ -121,8 +122,7 @@ def id(self, id: int): @property def tag(self) -> int: - """Gets the tag of this MapiPidTagPropertyDescriptor. - + """ A property tag is a 32-bit number that contains a unique property identifier in bits 16 through 31 and a property type in bits 0 through 15. :return: The tag of this MapiPidTagPropertyDescriptor. @@ -132,8 +132,7 @@ def tag(self) -> int: @tag.setter def tag(self, tag: int): - """Sets the tag of this MapiPidTagPropertyDescriptor. - + """ A property tag is a 32-bit number that contains a unique property identifier in bits 16 through 31 and a property type in bits 0 through 15. :param tag: The tag of this MapiPidTagPropertyDescriptor. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_property_descriptor.py b/sdk/AsposeEmailCloudSdk/models/mapi_property_descriptor.py index fa87bc0..16bbf31 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_property_descriptor.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_property_descriptor.py @@ -50,21 +50,16 @@ class MapiPropertyDescriptor(object): 'discriminator': 'discriminator' } - def __init__(self, discriminator: str = None): + def __init__(self): """ Mapi property descriptor - :param discriminator (str) """ - self._discriminator = self.__class__.__name__ - - if discriminator is not None: - self.discriminator = discriminator @property def discriminator(self) -> str: - """Gets the discriminator of this MapiPropertyDescriptor. - + """ + Gets the discriminator of this MapiPropertyDescriptor. :return: The discriminator of this MapiPropertyDescriptor. :rtype: str @@ -73,15 +68,13 @@ def discriminator(self) -> str: @discriminator.setter def discriminator(self, discriminator: str): - """Sets the discriminator of this MapiPropertyDescriptor. - + """ + Sets the discriminator of this MapiPropertyDescriptor. :param discriminator: The discriminator of this MapiPropertyDescriptor. :type: str """ - if discriminator is None: - raise ValueError("Invalid value for `discriminator`, must not be `None`") - self._discriminator = self.__class__.__name__ + pass # setter is ignored for discriminator property def to_dict(self): """Returns the model properties as a dict""" diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_property_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_property_dto.py index 35a2cd3..e4fa0cb 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_property_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_property_dto.py @@ -54,25 +54,22 @@ class MapiPropertyDto(object): 'discriminator': 'discriminator' } - def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str = None): + def __init__(self, descriptor: MapiPropertyDescriptor = None): """ Mapi property - :param descriptor (MapiPropertyDescriptor) Property descriptor - :param discriminator (str) + :param descriptor: Property descriptor + :type descriptor: MapiPropertyDescriptor """ self._descriptor = None - self._discriminator = self.__class__.__name__ if descriptor is not None: self.descriptor = descriptor - if discriminator is not None: - self.discriminator = discriminator + @property def descriptor(self) -> MapiPropertyDescriptor: - """Gets the descriptor of this MapiPropertyDto. - + """ Property descriptor :return: The descriptor of this MapiPropertyDto. @@ -82,8 +79,7 @@ def descriptor(self) -> MapiPropertyDescriptor: @descriptor.setter def descriptor(self, descriptor: MapiPropertyDescriptor): - """Sets the descriptor of this MapiPropertyDto. - + """ Property descriptor :param descriptor: The descriptor of this MapiPropertyDto. @@ -93,8 +89,8 @@ def descriptor(self, descriptor: MapiPropertyDescriptor): @property def discriminator(self) -> str: - """Gets the discriminator of this MapiPropertyDto. - + """ + Gets the discriminator of this MapiPropertyDto. :return: The discriminator of this MapiPropertyDto. :rtype: str @@ -103,15 +99,13 @@ def discriminator(self) -> str: @discriminator.setter def discriminator(self, discriminator: str): - """Sets the discriminator of this MapiPropertyDto. - + """ + Sets the discriminator of this MapiPropertyDto. :param discriminator: The discriminator of this MapiPropertyDto. :type: str """ - if discriminator is None: - raise ValueError("Invalid value for `discriminator`, must not be `None`") - self._discriminator = self.__class__.__name__ + pass # setter is ignored for discriminator property def to_dict(self): """Returns the model properties as a dict""" diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_recipient_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_recipient_dto.py index a21a422..15afa30 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_recipient_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_recipient_dto.py @@ -59,10 +59,14 @@ class MapiRecipientDto(object): def __init__(self, email_address: str = None, address_type: str = None, display_name: str = None, recipient_type: str = None): """ Represents the recipient information in the Microsoft Outlook Message. - :param email_address (str) Email address of the message recipient or sender. - :param address_type (str) Type of the address of the message recipient or sender. - :param display_name (str) Display name of the message recipient or sender. - :param recipient_type (str) Represent the PR_RECIPIENT_TYPE property which contains the recipient type for a message recipient. Enum, available values: Unknown, MapiBcc, MapiCc, MapiP1, MapiSubmitted, MapiTo + :param email_address: Email address of the message recipient or sender. + :type email_address: str + :param address_type: Type of the address of the message recipient or sender. + :type address_type: str + :param display_name: Display name of the message recipient or sender. + :type display_name: str + :param recipient_type: Represent the PR_RECIPIENT_TYPE property which contains the recipient type for a message recipient. Enum, available values: Unknown, MapiBcc, MapiCc, MapiP1, MapiSubmitted, MapiTo + :type recipient_type: str """ self._email_address = None @@ -79,10 +83,10 @@ def __init__(self, email_address: str = None, address_type: str = None, display_ if recipient_type is not None: self.recipient_type = recipient_type + @property def email_address(self) -> str: - """Gets the email_address of this MapiRecipientDto. - + """ Email address of the message recipient or sender. :return: The email_address of this MapiRecipientDto. @@ -92,8 +96,7 @@ def email_address(self) -> str: @email_address.setter def email_address(self, email_address: str): - """Sets the email_address of this MapiRecipientDto. - + """ Email address of the message recipient or sender. :param email_address: The email_address of this MapiRecipientDto. @@ -103,8 +106,7 @@ def email_address(self, email_address: str): @property def address_type(self) -> str: - """Gets the address_type of this MapiRecipientDto. - + """ Type of the address of the message recipient or sender. :return: The address_type of this MapiRecipientDto. @@ -114,8 +116,7 @@ def address_type(self) -> str: @address_type.setter def address_type(self, address_type: str): - """Sets the address_type of this MapiRecipientDto. - + """ Type of the address of the message recipient or sender. :param address_type: The address_type of this MapiRecipientDto. @@ -125,8 +126,7 @@ def address_type(self, address_type: str): @property def display_name(self) -> str: - """Gets the display_name of this MapiRecipientDto. - + """ Display name of the message recipient or sender. :return: The display_name of this MapiRecipientDto. @@ -136,8 +136,7 @@ def display_name(self) -> str: @display_name.setter def display_name(self, display_name: str): - """Sets the display_name of this MapiRecipientDto. - + """ Display name of the message recipient or sender. :param display_name: The display_name of this MapiRecipientDto. @@ -147,8 +146,7 @@ def display_name(self, display_name: str): @property def recipient_type(self) -> str: - """Gets the recipient_type of this MapiRecipientDto. - + """ Represent the PR_RECIPIENT_TYPE property which contains the recipient type for a message recipient. Enum, available values: Unknown, MapiBcc, MapiCc, MapiP1, MapiSubmitted, MapiTo :return: The recipient_type of this MapiRecipientDto. @@ -158,8 +156,7 @@ def recipient_type(self) -> str: @recipient_type.setter def recipient_type(self, recipient_type: str): - """Sets the recipient_type of this MapiRecipientDto. - + """ Represent the PR_RECIPIENT_TYPE property which contains the recipient type for a message recipient. Enum, available values: Unknown, MapiBcc, MapiCc, MapiP1, MapiSubmitted, MapiTo :param recipient_type: The recipient_type of this MapiRecipientDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_response_type_property_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_response_type_property_dto.py index 0b6e8ad..38d1910 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_response_type_property_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_response_type_property_dto.py @@ -57,12 +57,13 @@ class MapiResponseTypePropertyDto(MapiPropertyDto): 'value': 'value' } - def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str = None, value: str = None): + def __init__(self, descriptor: MapiPropertyDescriptor = None, value: str = None): """ Mapi property with response type value - :param descriptor (MapiPropertyDescriptor) Property descriptor - :param discriminator (str) - :param value (str) Represents the types of recipient responses that are received for a meeting. Enum, available values: Unknown, Organizer, Tentative, Accept, Decline, NoResponseReceived + :param descriptor: Property descriptor + :type descriptor: MapiPropertyDescriptor + :param value: Represents the types of recipient responses that are received for a meeting. Enum, available values: Unknown, Organizer, Tentative, Accept, Decline, NoResponseReceived + :type value: str """ super(MapiResponseTypePropertyDto, self).__init__() @@ -70,15 +71,13 @@ def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str if descriptor is not None: self.descriptor = descriptor - if discriminator is not None: - self.discriminator = discriminator if value is not None: self.value = value + @property def value(self) -> str: - """Gets the value of this MapiResponseTypePropertyDto. - + """ Represents the types of recipient responses that are received for a meeting. Enum, available values: Unknown, Organizer, Tentative, Accept, Decline, NoResponseReceived :return: The value of this MapiResponseTypePropertyDto. @@ -88,8 +87,7 @@ def value(self) -> str: @value.setter def value(self, value: str): - """Sets the value of this MapiResponseTypePropertyDto. - + """ Represents the types of recipient responses that are received for a meeting. Enum, available values: Unknown, Organizer, Tentative, Accept, Decline, NoResponseReceived :param value: The value of this MapiResponseTypePropertyDto. diff --git a/sdk/AsposeEmailCloudSdk/models/mapi_string_property_dto.py b/sdk/AsposeEmailCloudSdk/models/mapi_string_property_dto.py index e0255a9..c668b96 100644 --- a/sdk/AsposeEmailCloudSdk/models/mapi_string_property_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/mapi_string_property_dto.py @@ -57,12 +57,13 @@ class MapiStringPropertyDto(MapiPropertyDto): 'value': 'value' } - def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str = None, value: str = None): + def __init__(self, descriptor: MapiPropertyDescriptor = None, value: str = None): """ Mapi property with string value - :param descriptor (MapiPropertyDescriptor) Property descriptor - :param discriminator (str) - :param value (str) Property value + :param descriptor: Property descriptor + :type descriptor: MapiPropertyDescriptor + :param value: Property value + :type value: str """ super(MapiStringPropertyDto, self).__init__() @@ -70,15 +71,13 @@ def __init__(self, descriptor: MapiPropertyDescriptor = None, discriminator: str if descriptor is not None: self.descriptor = descriptor - if discriminator is not None: - self.discriminator = discriminator if value is not None: self.value = value + @property def value(self) -> str: - """Gets the value of this MapiStringPropertyDto. - + """ Property value :return: The value of this MapiStringPropertyDto. @@ -88,8 +87,7 @@ def value(self) -> str: @value.setter def value(self, value: str): - """Sets the value of this MapiStringPropertyDto. - + """ Property value :param value: The value of this MapiStringPropertyDto. diff --git a/sdk/AsposeEmailCloudSdk/models/monthly_recurrence_pattern_dto.py b/sdk/AsposeEmailCloudSdk/models/monthly_recurrence_pattern_dto.py index 10e5cd0..9f87499 100644 --- a/sdk/AsposeEmailCloudSdk/models/monthly_recurrence_pattern_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/monthly_recurrence_pattern_dto.py @@ -66,17 +66,23 @@ class MonthlyRecurrencePatternDto(RecurrencePatternDto): 'start_position': 'startPosition' } - def __init__(self, interval: int = None, occurs: int = None, end_date: datetime = None, week_start: str = None, discriminator: str = None, start_day: str = None, start_offset: int = None, start_position: str = None): + def __init__(self, interval: int = None, occurs: int = None, end_date: datetime = None, week_start: str = None, start_day: str = None, start_offset: int = None, start_position: str = None): """ Monthly recurrence pattern. - :param interval (int) Number of recurrence units. - :param occurs (int) Number of occurrences of the recurrence pattern. - :param end_date (datetime) End date. - :param week_start (str) Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay - :param discriminator (str) - :param start_day (str) Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay - :param start_offset (int) Start offset. - :param start_position (str) Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last + :param interval: Number of recurrence units. + :type interval: int + :param occurs: Number of occurrences of the recurrence pattern. + :type occurs: int + :param end_date: End date. + :type end_date: datetime + :param week_start: Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay + :type week_start: str + :param start_day: Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay + :type start_day: str + :param start_offset: Start offset. + :type start_offset: int + :param start_position: Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last + :type start_position: str """ super(MonthlyRecurrencePatternDto, self).__init__() @@ -92,8 +98,6 @@ def __init__(self, interval: int = None, occurs: int = None, end_date: datetime self.end_date = end_date if week_start is not None: self.week_start = week_start - if discriminator is not None: - self.discriminator = discriminator if start_day is not None: self.start_day = start_day if start_offset is not None: @@ -101,10 +105,10 @@ def __init__(self, interval: int = None, occurs: int = None, end_date: datetime if start_position is not None: self.start_position = start_position + @property def start_day(self) -> str: - """Gets the start_day of this MonthlyRecurrencePatternDto. - + """ Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay :return: The start_day of this MonthlyRecurrencePatternDto. @@ -114,8 +118,7 @@ def start_day(self) -> str: @start_day.setter def start_day(self, start_day: str): - """Sets the start_day of this MonthlyRecurrencePatternDto. - + """ Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay :param start_day: The start_day of this MonthlyRecurrencePatternDto. @@ -127,8 +130,7 @@ def start_day(self, start_day: str): @property def start_offset(self) -> int: - """Gets the start_offset of this MonthlyRecurrencePatternDto. - + """ Start offset. :return: The start_offset of this MonthlyRecurrencePatternDto. @@ -138,8 +140,7 @@ def start_offset(self) -> int: @start_offset.setter def start_offset(self, start_offset: int): - """Sets the start_offset of this MonthlyRecurrencePatternDto. - + """ Start offset. :param start_offset: The start_offset of this MonthlyRecurrencePatternDto. @@ -151,8 +152,7 @@ def start_offset(self, start_offset: int): @property def start_position(self) -> str: - """Gets the start_position of this MonthlyRecurrencePatternDto. - + """ Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last :return: The start_position of this MonthlyRecurrencePatternDto. @@ -162,8 +162,7 @@ def start_position(self) -> str: @start_position.setter def start_position(self, start_position: str): - """Sets the start_position of this MonthlyRecurrencePatternDto. - + """ Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last :param start_position: The start_position of this MonthlyRecurrencePatternDto. diff --git a/sdk/AsposeEmailCloudSdk/models/move_file_request.py b/sdk/AsposeEmailCloudSdk/models/move_file_request.py new file mode 100644 index 0000000..779fca4 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/move_file_request.py @@ -0,0 +1,68 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class MoveFileRequest(object): + """ + Request model for move_file operation. + Initializes a new instance. + + :param src_path: Source file path e.g. '/src.ext' + :type src_path: str + :param dest_path: Destination file path e.g. '/dest.ext' + :type dest_path: str + :param src_storage_name: Source storage name + :type src_storage_name: str + :param dest_storage_name: Destination storage name + :type dest_storage_name: str + :param version_id: File version ID to move + :type 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): + """ + Request model for move_file operation. + Initializes a new instance. + + :param src_path: Source file path e.g. '/src.ext' + :type src_path: str + :param dest_path: Destination file path e.g. '/dest.ext' + :type dest_path: str + :param src_storage_name: Source storage name + :type src_storage_name: str + :param dest_storage_name: Destination storage name + :type dest_storage_name: str + :param version_id: File version ID to move + :type version_id: str + """ + + self.src_path = src_path + self.dest_path = dest_path + self.src_storage_name = src_storage_name + self.dest_storage_name = dest_storage_name + self.version_id = version_id diff --git a/sdk/AsposeEmailCloudSdk/models/move_folder_request.py b/sdk/AsposeEmailCloudSdk/models/move_folder_request.py new file mode 100644 index 0000000..77c6c23 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/move_folder_request.py @@ -0,0 +1,64 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class MoveFolderRequest(object): + """ + Request model for move_folder operation. + Initializes a new instance. + + :param src_path: Folder path to move e.g. '/folder' + :type src_path: str + :param dest_path: Destination folder path to move to e.g '/dst' + :type dest_path: str + :param src_storage_name: Source storage name + :type src_storage_name: str + :param dest_storage_name: Destination storage name + :type dest_storage_name: str + """ + + def __init__(self, src_path: str, dest_path: str, src_storage_name: str = None, dest_storage_name: str = None): + """ + Request model for move_folder operation. + Initializes a new instance. + + :param src_path: Folder path to move e.g. '/folder' + :type src_path: str + :param dest_path: Destination folder path to move to e.g '/dst' + :type dest_path: str + :param src_storage_name: Source storage name + :type src_storage_name: str + :param dest_storage_name: Destination storage name + :type dest_storage_name: str + """ + + self.src_path = src_path + self.dest_path = dest_path + self.src_storage_name = src_storage_name + self.dest_storage_name = dest_storage_name + diff --git a/sdk/AsposeEmailCloudSdk/models/name_value_pair.py b/sdk/AsposeEmailCloudSdk/models/name_value_pair.py index 792bca9..611e230 100644 --- a/sdk/AsposeEmailCloudSdk/models/name_value_pair.py +++ b/sdk/AsposeEmailCloudSdk/models/name_value_pair.py @@ -55,8 +55,10 @@ class NameValuePair(object): def __init__(self, name: str = None, value: str = None): """ Name-Value property - :param name (str) Property name - :param value (str) Property value + :param name: Property name + :type name: str + :param value: Property value + :type value: str """ self._name = None @@ -67,10 +69,10 @@ def __init__(self, name: str = None, value: str = None): if value is not None: self.value = value + @property def name(self) -> str: - """Gets the name of this NameValuePair. - + """ Property name :return: The name of this NameValuePair. @@ -80,8 +82,7 @@ def name(self) -> str: @name.setter def name(self, name: str): - """Sets the name of this NameValuePair. - + """ Property name :param name: The name of this NameValuePair. @@ -91,8 +92,7 @@ def name(self, name: str): @property def value(self) -> str: - """Gets the value of this NameValuePair. - + """ Property value :return: The value of this NameValuePair. @@ -102,8 +102,7 @@ def value(self) -> str: @value.setter def value(self, value: str): - """Sets the value of this NameValuePair. - + """ Property value :param value: The value of this NameValuePair. diff --git a/sdk/AsposeEmailCloudSdk/models/object_exist.py b/sdk/AsposeEmailCloudSdk/models/object_exist.py index 722fcf3..1c47b9f 100644 --- a/sdk/AsposeEmailCloudSdk/models/object_exist.py +++ b/sdk/AsposeEmailCloudSdk/models/object_exist.py @@ -32,7 +32,7 @@ class ObjectExist(object): - """ + """Object exists """ """ @@ -54,9 +54,11 @@ class ObjectExist(object): def __init__(self, exists: bool = None, is_folder: bool = None): """ - - :param exists (bool) - :param is_folder (bool) + Object exists + :param exists: Indicates that the file or folder exists. + :type exists: bool + :param is_folder: True if it is a folder, false if it is a file. + :type is_folder: bool """ self._exists = None @@ -67,10 +69,11 @@ def __init__(self, exists: bool = None, is_folder: bool = None): if is_folder is not None: self.is_folder = is_folder + @property 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 @@ -79,8 +82,8 @@ def exists(self) -> bool: @exists.setter 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 @@ -91,8 +94,8 @@ def exists(self, exists: bool): @property 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 @@ -101,8 +104,8 @@ def is_folder(self) -> bool: @is_folder.setter 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/object_exists_request.py b/sdk/AsposeEmailCloudSdk/models/object_exists_request.py new file mode 100644 index 0000000..7944ce2 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/object_exists_request.py @@ -0,0 +1,58 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class ObjectExistsRequest(object): + """ + Request model for object_exists operation. + Initializes a new instance. + + :param path: File or folder path e.g. '/file.ext' or '/folder' + :type path: str + :param storage_name: Storage name + :type storage_name: str + :param version_id: File version ID + :type version_id: str + """ + + 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: File or folder path e.g. '/file.ext' or '/folder' + :type path: str + :param storage_name: Storage name + :type storage_name: str + :param version_id: File version ID + :type version_id: str + """ + + self.path = path + self.storage_name = storage_name + self.version_id = version_id diff --git a/sdk/AsposeEmailCloudSdk/models/phone_number.py b/sdk/AsposeEmailCloudSdk/models/phone_number.py index 07eb45b..540d93a 100644 --- a/sdk/AsposeEmailCloudSdk/models/phone_number.py +++ b/sdk/AsposeEmailCloudSdk/models/phone_number.py @@ -59,9 +59,12 @@ class PhoneNumber(object): def __init__(self, category: EnumWithCustomOfPhoneNumberCategory = None, number: str = None, preferred: bool = None): """ A phone number. - :param category (EnumWithCustomOfPhoneNumberCategory) Phone number category. - :param number (str) Phone number. - :param preferred (bool) Defines whether phone number is preferred. + :param category: Phone number category. + :type category: EnumWithCustomOfPhoneNumberCategory + :param number: Phone number. + :type number: str + :param preferred: Defines whether phone number is preferred. + :type preferred: bool """ self._category = None @@ -75,10 +78,10 @@ def __init__(self, category: EnumWithCustomOfPhoneNumberCategory = None, number: if preferred is not None: self.preferred = preferred + @property def category(self) -> EnumWithCustomOfPhoneNumberCategory: - """Gets the category of this PhoneNumber. - + """ Phone number category. :return: The category of this PhoneNumber. @@ -88,8 +91,7 @@ def category(self) -> EnumWithCustomOfPhoneNumberCategory: @category.setter def category(self, category: EnumWithCustomOfPhoneNumberCategory): - """Sets the category of this PhoneNumber. - + """ Phone number category. :param category: The category of this PhoneNumber. @@ -99,8 +101,7 @@ def category(self, category: EnumWithCustomOfPhoneNumberCategory): @property def number(self) -> str: - """Gets the number of this PhoneNumber. - + """ Phone number. :return: The number of this PhoneNumber. @@ -110,8 +111,7 @@ def number(self) -> str: @number.setter def number(self, number: str): - """Sets the number of this PhoneNumber. - + """ Phone number. :param number: The number of this PhoneNumber. @@ -121,8 +121,7 @@ def number(self, number: str): @property def preferred(self) -> bool: - """Gets the preferred of this PhoneNumber. - + """ Defines whether phone number is preferred. :return: The preferred of this PhoneNumber. @@ -132,8 +131,7 @@ def preferred(self) -> bool: @preferred.setter def preferred(self, preferred: bool): - """Sets the preferred of this PhoneNumber. - + """ Defines whether phone number is preferred. :param preferred: The preferred of this PhoneNumber. diff --git a/sdk/AsposeEmailCloudSdk/models/postal_address.py b/sdk/AsposeEmailCloudSdk/models/postal_address.py index 0b3891e..68c484a 100644 --- a/sdk/AsposeEmailCloudSdk/models/postal_address.py +++ b/sdk/AsposeEmailCloudSdk/models/postal_address.py @@ -75,17 +75,28 @@ class PostalAddress(object): def __init__(self, address: str = None, category: EnumWithCustomOfPostalAddressCategory = None, city: str = None, country: str = None, country_code: str = None, is_mailing_address: bool = None, postal_code: str = None, post_office_box: str = None, preferred: bool = None, state_or_province: str = None, street: str = None): """ A postal address - :param address (str) Address. - :param category (EnumWithCustomOfPostalAddressCategory) Address category. - :param city (str) Address's city. - :param country (str) Address's country. - :param country_code (str) Country code. - :param is_mailing_address (bool) Defines whether address may be used for mailing. - :param postal_code (str) Postal code. - :param post_office_box (str) Post Office box. - :param preferred (bool) Defines whether postal address is preferred. - :param state_or_province (str) Address's region. - :param street (str) Address's street. + :param address: Address. + :type address: str + :param category: Address category. + :type category: EnumWithCustomOfPostalAddressCategory + :param city: Address's city. + :type city: str + :param country: Address's country. + :type country: str + :param country_code: Country code. + :type country_code: str + :param is_mailing_address: Defines whether address may be used for mailing. + :type is_mailing_address: bool + :param postal_code: Postal code. + :type postal_code: str + :param post_office_box: Post Office box. + :type post_office_box: str + :param preferred: Defines whether postal address is preferred. + :type preferred: bool + :param state_or_province: Address's region. + :type state_or_province: str + :param street: Address's street. + :type street: str """ self._address = None @@ -123,10 +134,10 @@ def __init__(self, address: str = None, category: EnumWithCustomOfPostalAddressC if street is not None: self.street = street + @property def address(self) -> str: - """Gets the address of this PostalAddress. - + """ Address. :return: The address of this PostalAddress. @@ -136,8 +147,7 @@ def address(self) -> str: @address.setter def address(self, address: str): - """Sets the address of this PostalAddress. - + """ Address. :param address: The address of this PostalAddress. @@ -147,8 +157,7 @@ def address(self, address: str): @property def category(self) -> EnumWithCustomOfPostalAddressCategory: - """Gets the category of this PostalAddress. - + """ Address category. :return: The category of this PostalAddress. @@ -158,8 +167,7 @@ def category(self) -> EnumWithCustomOfPostalAddressCategory: @category.setter def category(self, category: EnumWithCustomOfPostalAddressCategory): - """Sets the category of this PostalAddress. - + """ Address category. :param category: The category of this PostalAddress. @@ -169,8 +177,7 @@ def category(self, category: EnumWithCustomOfPostalAddressCategory): @property def city(self) -> str: - """Gets the city of this PostalAddress. - + """ Address's city. :return: The city of this PostalAddress. @@ -180,8 +187,7 @@ def city(self) -> str: @city.setter def city(self, city: str): - """Sets the city of this PostalAddress. - + """ Address's city. :param city: The city of this PostalAddress. @@ -191,8 +197,7 @@ def city(self, city: str): @property def country(self) -> str: - """Gets the country of this PostalAddress. - + """ Address's country. :return: The country of this PostalAddress. @@ -202,8 +207,7 @@ def country(self) -> str: @country.setter def country(self, country: str): - """Sets the country of this PostalAddress. - + """ Address's country. :param country: The country of this PostalAddress. @@ -213,8 +217,7 @@ def country(self, country: str): @property def country_code(self) -> str: - """Gets the country_code of this PostalAddress. - + """ Country code. :return: The country_code of this PostalAddress. @@ -224,8 +227,7 @@ def country_code(self) -> str: @country_code.setter def country_code(self, country_code: str): - """Sets the country_code of this PostalAddress. - + """ Country code. :param country_code: The country_code of this PostalAddress. @@ -235,8 +237,7 @@ def country_code(self, country_code: str): @property def is_mailing_address(self) -> bool: - """Gets the is_mailing_address of this PostalAddress. - + """ Defines whether address may be used for mailing. :return: The is_mailing_address of this PostalAddress. @@ -246,8 +247,7 @@ def is_mailing_address(self) -> bool: @is_mailing_address.setter def is_mailing_address(self, is_mailing_address: bool): - """Sets the is_mailing_address of this PostalAddress. - + """ Defines whether address may be used for mailing. :param is_mailing_address: The is_mailing_address of this PostalAddress. @@ -259,8 +259,7 @@ def is_mailing_address(self, is_mailing_address: bool): @property def postal_code(self) -> str: - """Gets the postal_code of this PostalAddress. - + """ Postal code. :return: The postal_code of this PostalAddress. @@ -270,8 +269,7 @@ def postal_code(self) -> str: @postal_code.setter def postal_code(self, postal_code: str): - """Sets the postal_code of this PostalAddress. - + """ Postal code. :param postal_code: The postal_code of this PostalAddress. @@ -281,8 +279,7 @@ def postal_code(self, postal_code: str): @property def post_office_box(self) -> str: - """Gets the post_office_box of this PostalAddress. - + """ Post Office box. :return: The post_office_box of this PostalAddress. @@ -292,8 +289,7 @@ def post_office_box(self) -> str: @post_office_box.setter def post_office_box(self, post_office_box: str): - """Sets the post_office_box of this PostalAddress. - + """ Post Office box. :param post_office_box: The post_office_box of this PostalAddress. @@ -303,8 +299,7 @@ def post_office_box(self, post_office_box: str): @property def preferred(self) -> bool: - """Gets the preferred of this PostalAddress. - + """ Defines whether postal address is preferred. :return: The preferred of this PostalAddress. @@ -314,8 +309,7 @@ def preferred(self) -> bool: @preferred.setter def preferred(self, preferred: bool): - """Sets the preferred of this PostalAddress. - + """ Defines whether postal address is preferred. :param preferred: The preferred of this PostalAddress. @@ -327,8 +321,7 @@ def preferred(self, preferred: bool): @property def state_or_province(self) -> str: - """Gets the state_or_province of this PostalAddress. - + """ Address's region. :return: The state_or_province of this PostalAddress. @@ -338,8 +331,7 @@ def state_or_province(self) -> str: @state_or_province.setter def state_or_province(self, state_or_province: str): - """Sets the state_or_province of this PostalAddress. - + """ Address's region. :param state_or_province: The state_or_province of this PostalAddress. @@ -349,8 +341,7 @@ def state_or_province(self, state_or_province: str): @property def street(self) -> str: - """Gets the street of this PostalAddress. - + """ Address's street. :return: The street of this PostalAddress. @@ -360,8 +351,7 @@ def street(self) -> str: @street.setter def street(self, street: str): - """Sets the street of this PostalAddress. - + """ Address's street. :param street: The street of this PostalAddress. diff --git a/sdk/AsposeEmailCloudSdk/models/recurrence_pattern_dto.py b/sdk/AsposeEmailCloudSdk/models/recurrence_pattern_dto.py index ad1e5c2..e55c255 100644 --- a/sdk/AsposeEmailCloudSdk/models/recurrence_pattern_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/recurrence_pattern_dto.py @@ -58,21 +58,23 @@ class RecurrencePatternDto(object): 'discriminator': 'discriminator' } - def __init__(self, interval: int = None, occurs: int = None, end_date: datetime = None, week_start: str = None, discriminator: str = None): + def __init__(self, interval: int = None, occurs: int = None, end_date: datetime = None, week_start: str = None): """ iCalendar recurrence pattern. - :param interval (int) Number of recurrence units. - :param occurs (int) Number of occurrences of the recurrence pattern. - :param end_date (datetime) End date. - :param week_start (str) Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay - :param discriminator (str) + :param interval: Number of recurrence units. + :type interval: int + :param occurs: Number of occurrences of the recurrence pattern. + :type occurs: int + :param end_date: End date. + :type end_date: datetime + :param week_start: Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay + :type week_start: str """ self._interval = None self._occurs = None self._end_date = None self._week_start = None - self._discriminator = self.__class__.__name__ if interval is not None: self.interval = interval @@ -82,13 +84,11 @@ def __init__(self, interval: int = None, occurs: int = None, end_date: datetime self.end_date = end_date if week_start is not None: self.week_start = week_start - if discriminator is not None: - self.discriminator = discriminator + @property def interval(self) -> int: - """Gets the interval of this RecurrencePatternDto. - + """ Number of recurrence units. :return: The interval of this RecurrencePatternDto. @@ -98,8 +98,7 @@ def interval(self) -> int: @interval.setter def interval(self, interval: int): - """Sets the interval of this RecurrencePatternDto. - + """ Number of recurrence units. :param interval: The interval of this RecurrencePatternDto. @@ -111,8 +110,7 @@ def interval(self, interval: int): @property def occurs(self) -> int: - """Gets the occurs of this RecurrencePatternDto. - + """ Number of occurrences of the recurrence pattern. :return: The occurs of this RecurrencePatternDto. @@ -122,8 +120,7 @@ def occurs(self) -> int: @occurs.setter def occurs(self, occurs: int): - """Sets the occurs of this RecurrencePatternDto. - + """ Number of occurrences of the recurrence pattern. :param occurs: The occurs of this RecurrencePatternDto. @@ -135,8 +132,7 @@ def occurs(self, occurs: int): @property def end_date(self) -> datetime: - """Gets the end_date of this RecurrencePatternDto. - + """ End date. :return: The end_date of this RecurrencePatternDto. @@ -146,8 +142,7 @@ def end_date(self) -> datetime: @end_date.setter def end_date(self, end_date: datetime): - """Sets the end_date of this RecurrencePatternDto. - + """ End date. :param end_date: The end_date of this RecurrencePatternDto. @@ -159,8 +154,7 @@ def end_date(self, end_date: datetime): @property def week_start(self) -> str: - """Gets the week_start of this RecurrencePatternDto. - + """ Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay :return: The week_start of this RecurrencePatternDto. @@ -170,8 +164,7 @@ def week_start(self) -> str: @week_start.setter def week_start(self, week_start: str): - """Sets the week_start of this RecurrencePatternDto. - + """ Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay :param week_start: The week_start of this RecurrencePatternDto. @@ -183,8 +176,8 @@ def week_start(self, week_start: str): @property def discriminator(self) -> str: - """Gets the discriminator of this RecurrencePatternDto. - + """ + Gets the discriminator of this RecurrencePatternDto. :return: The discriminator of this RecurrencePatternDto. :rtype: str @@ -193,15 +186,13 @@ def discriminator(self) -> str: @discriminator.setter def discriminator(self, discriminator: str): - """Sets the discriminator of this RecurrencePatternDto. - + """ + Sets the discriminator of this RecurrencePatternDto. :param discriminator: The discriminator of this RecurrencePatternDto. :type: str """ - if discriminator is None: - raise ValueError("Invalid value for `discriminator`, must not be `None`") - self._discriminator = self.__class__.__name__ + pass # setter is ignored for discriminator property def to_dict(self): """Returns the model properties as a dict""" diff --git a/sdk/AsposeEmailCloudSdk/models/reminder_attendee.py b/sdk/AsposeEmailCloudSdk/models/reminder_attendee.py index 0c55eda..6b979b2 100644 --- a/sdk/AsposeEmailCloudSdk/models/reminder_attendee.py +++ b/sdk/AsposeEmailCloudSdk/models/reminder_attendee.py @@ -53,7 +53,8 @@ class ReminderAttendee(object): def __init__(self, address: str = None): """ Defines an \"Attendee\" within a alarm. - :param address (str) Contains the email address. + :param address: Contains the email address. + :type address: str """ self._address = None @@ -61,10 +62,10 @@ def __init__(self, address: str = None): if address is not None: self.address = address + @property def address(self) -> str: - """Gets the address of this ReminderAttendee. - + """ Contains the email address. :return: The address of this ReminderAttendee. @@ -74,13 +75,16 @@ def address(self) -> str: @address.setter def address(self, address: str): - """Sets the address of this ReminderAttendee. - + """ Contains the email address. :param address: The address of this ReminderAttendee. :type: str """ + if address is None: + raise ValueError("Invalid value for `address`, must not be `None`") + if address is not None and len(address) < 1: + raise ValueError("Invalid value for `address`, length must be greater than or equal to `1`") self._address = address def to_dict(self): diff --git a/sdk/AsposeEmailCloudSdk/models/reminder_trigger.py b/sdk/AsposeEmailCloudSdk/models/reminder_trigger.py index d3fb92c..cab3623 100644 --- a/sdk/AsposeEmailCloudSdk/models/reminder_trigger.py +++ b/sdk/AsposeEmailCloudSdk/models/reminder_trigger.py @@ -57,9 +57,12 @@ class ReminderTrigger(object): def __init__(self, date_time: datetime = None, duration: int = None, related: str = None): """ Specifies when an alarm will trigger. - :param date_time (datetime) A trigger set to an absolute date/time. - :param duration (int) Specifies a relative time in ticks for the trigger of the alarm. - :param related (str) Specify the relationship of the alarm trigger with respect to the start or end of the event. Enum, available values: Start, End + :param date_time: A trigger set to an absolute date/time. + :type date_time: datetime + :param duration: Specifies a relative time in ticks for the trigger of the alarm. + :type duration: int + :param related: Specify the relationship of the alarm trigger with respect to the start or end of the event. Enum, available values: Start, End + :type related: str """ self._date_time = None @@ -73,10 +76,10 @@ def __init__(self, date_time: datetime = None, duration: int = None, related: st if related is not None: self.related = related + @property def date_time(self) -> datetime: - """Gets the date_time of this ReminderTrigger. - + """ A trigger set to an absolute date/time. :return: The date_time of this ReminderTrigger. @@ -86,8 +89,7 @@ def date_time(self) -> datetime: @date_time.setter def date_time(self, date_time: datetime): - """Sets the date_time of this ReminderTrigger. - + """ A trigger set to an absolute date/time. :param date_time: The date_time of this ReminderTrigger. @@ -99,8 +101,7 @@ def date_time(self, date_time: datetime): @property def duration(self) -> int: - """Gets the duration of this ReminderTrigger. - + """ Specifies a relative time in ticks for the trigger of the alarm. :return: The duration of this ReminderTrigger. @@ -110,8 +111,7 @@ def duration(self) -> int: @duration.setter def duration(self, duration: int): - """Sets the duration of this ReminderTrigger. - + """ Specifies a relative time in ticks for the trigger of the alarm. :param duration: The duration of this ReminderTrigger. @@ -121,8 +121,7 @@ def duration(self, duration: int): @property def related(self) -> str: - """Gets the related of this ReminderTrigger. - + """ Specify the relationship of the alarm trigger with respect to the start or end of the event. Enum, available values: Start, End :return: The related of this ReminderTrigger. @@ -132,8 +131,7 @@ def related(self) -> str: @related.setter def related(self, related: str): - """Sets the related of this ReminderTrigger. - + """ Specify the relationship of the alarm trigger with respect to the start or end of the event. Enum, available values: Start, End :param related: The related of this ReminderTrigger. diff --git a/sdk/AsposeEmailCloudSdk/models/requests/__init__.py b/sdk/AsposeEmailCloudSdk/models/requests/__init__.py deleted file mode 100644 index 77d298b..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/__init__.py +++ /dev/null @@ -1,160 +0,0 @@ -# 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. -# -# ---------------------------------------------------------------------------- - -from __future__ import absolute_import - -from AsposeEmailCloudSdk.models.requests.add_calendar_attachment_request import AddCalendarAttachmentRequest -from AsposeEmailCloudSdk.models.requests.add_contact_attachment_request import AddContactAttachmentRequest -from AsposeEmailCloudSdk.models.requests.add_email_attachment_request import AddEmailAttachmentRequest -from AsposeEmailCloudSdk.models.requests.add_mapi_attachment_request import AddMapiAttachmentRequest -from AsposeEmailCloudSdk.models.requests.ai_bcr_ocr_request import AiBcrOcrRequest -from AsposeEmailCloudSdk.models.requests.ai_bcr_ocr_storage_request import AiBcrOcrStorageRequest -from AsposeEmailCloudSdk.models.requests.ai_bcr_parse_model_request import AiBcrParseModelRequest -from AsposeEmailCloudSdk.models.requests.ai_bcr_parse_ocr_data_model_request import AiBcrParseOcrDataModelRequest -from AsposeEmailCloudSdk.models.requests.ai_bcr_parse_request import AiBcrParseRequest -from AsposeEmailCloudSdk.models.requests.ai_bcr_parse_storage_request import AiBcrParseStorageRequest -from AsposeEmailCloudSdk.models.requests.ai_name_complete_request import AiNameCompleteRequest -from AsposeEmailCloudSdk.models.requests.ai_name_expand_parsed_request import AiNameExpandParsedRequest -from AsposeEmailCloudSdk.models.requests.ai_name_expand_request import AiNameExpandRequest -from AsposeEmailCloudSdk.models.requests.ai_name_format_parsed_request import AiNameFormatParsedRequest -from AsposeEmailCloudSdk.models.requests.ai_name_format_request import AiNameFormatRequest -from AsposeEmailCloudSdk.models.requests.ai_name_genderize_parsed_request import AiNameGenderizeParsedRequest -from AsposeEmailCloudSdk.models.requests.ai_name_genderize_request import AiNameGenderizeRequest -from AsposeEmailCloudSdk.models.requests.ai_name_match_parsed_request import AiNameMatchParsedRequest -from AsposeEmailCloudSdk.models.requests.ai_name_match_request import AiNameMatchRequest -from AsposeEmailCloudSdk.models.requests.ai_name_parse_email_address_request import AiNameParseEmailAddressRequest -from AsposeEmailCloudSdk.models.requests.ai_name_parse_request import AiNameParseRequest -from AsposeEmailCloudSdk.models.requests.append_email_message_request import AppendEmailMessageRequest -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_model_to_mapi_model_request import ConvertCalendarModelToMapiModelRequest -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_model_to_mapi_model_request import ConvertContactModelToMapiModelRequest -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_model_to_mapi_model_request import ConvertEmailModelToMapiModelRequest -from AsposeEmailCloudSdk.models.requests.convert_email_request import ConvertEmailRequest -from AsposeEmailCloudSdk.models.requests.convert_mapi_calendar_model_to_calendar_model_request import ConvertMapiCalendarModelToCalendarModelRequest -from AsposeEmailCloudSdk.models.requests.convert_mapi_calendar_model_to_file_request import ConvertMapiCalendarModelToFileRequest -from AsposeEmailCloudSdk.models.requests.convert_mapi_contact_model_to_contact_model_request import ConvertMapiContactModelToContactModelRequest -from AsposeEmailCloudSdk.models.requests.convert_mapi_contact_model_to_file_request import ConvertMapiContactModelToFileRequest -from AsposeEmailCloudSdk.models.requests.convert_mapi_message_model_to_email_model_request import ConvertMapiMessageModelToEmailModelRequest -from AsposeEmailCloudSdk.models.requests.convert_mapi_message_model_to_file_request import ConvertMapiMessageModelToFileRequest -from AsposeEmailCloudSdk.models.requests.copy_file_request import CopyFileRequest -from AsposeEmailCloudSdk.models.requests.copy_folder_request import CopyFolderRequest -from AsposeEmailCloudSdk.models.requests.create_calendar_request import CreateCalendarRequest -from AsposeEmailCloudSdk.models.requests.create_contact_request import CreateContactRequest -from AsposeEmailCloudSdk.models.requests.create_email_folder_request import CreateEmailFolderRequest -from AsposeEmailCloudSdk.models.requests.create_email_request import CreateEmailRequest -from AsposeEmailCloudSdk.models.requests.create_folder_request import CreateFolderRequest -from AsposeEmailCloudSdk.models.requests.create_mapi_request import CreateMapiRequest -from AsposeEmailCloudSdk.models.requests.delete_calendar_property_request import DeleteCalendarPropertyRequest -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 -from AsposeEmailCloudSdk.models.requests.delete_mapi_properties_request import DeleteMapiPropertiesRequest -from AsposeEmailCloudSdk.models.requests.discover_email_config_oauth_request import DiscoverEmailConfigOauthRequest -from AsposeEmailCloudSdk.models.requests.discover_email_config_password_request import DiscoverEmailConfigPasswordRequest -from AsposeEmailCloudSdk.models.requests.discover_email_config_request import DiscoverEmailConfigRequest -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_mapi_model_request import GetCalendarFileAsMapiModelRequest -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_mapi_model_request import GetContactFileAsMapiModelRequest -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 -from AsposeEmailCloudSdk.models.requests.get_contact_properties_request import GetContactPropertiesRequest -from AsposeEmailCloudSdk.models.requests.get_disc_usage_request import GetDiscUsageRequest -from AsposeEmailCloudSdk.models.requests.get_email_as_file_request import GetEmailAsFileRequest -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_mapi_model_request import GetEmailFileAsMapiModelRequest -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 -from AsposeEmailCloudSdk.models.requests.get_email_request import GetEmailRequest -from AsposeEmailCloudSdk.models.requests.get_files_list_request import GetFilesListRequest -from AsposeEmailCloudSdk.models.requests.get_file_versions_request import GetFileVersionsRequest -from AsposeEmailCloudSdk.models.requests.get_mapi_attachments_request import GetMapiAttachmentsRequest -from AsposeEmailCloudSdk.models.requests.get_mapi_attachment_request import GetMapiAttachmentRequest -from AsposeEmailCloudSdk.models.requests.get_mapi_calendar_model_request import GetMapiCalendarModelRequest -from AsposeEmailCloudSdk.models.requests.get_mapi_contact_model_request import GetMapiContactModelRequest -from AsposeEmailCloudSdk.models.requests.get_mapi_list_request import GetMapiListRequest -from AsposeEmailCloudSdk.models.requests.get_mapi_message_model_request import GetMapiMessageModelRequest -from AsposeEmailCloudSdk.models.requests.get_mapi_properties_request import GetMapiPropertiesRequest -from AsposeEmailCloudSdk.models.requests.is_email_address_disposable_request import IsEmailAddressDisposableRequest -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 -from AsposeEmailCloudSdk.models.requests.save_calendar_model_request import SaveCalendarModelRequest -from AsposeEmailCloudSdk.models.requests.save_contact_model_request import SaveContactModelRequest -from AsposeEmailCloudSdk.models.requests.save_email_client_account_request import SaveEmailClientAccountRequest -from AsposeEmailCloudSdk.models.requests.save_email_client_multi_account_request import SaveEmailClientMultiAccountRequest -from AsposeEmailCloudSdk.models.requests.save_email_model_request import SaveEmailModelRequest -from AsposeEmailCloudSdk.models.requests.save_mail_account_request import SaveMailAccountRequest -from AsposeEmailCloudSdk.models.requests.save_mail_o_auth_account_request import SaveMailOAuthAccountRequest -from AsposeEmailCloudSdk.models.requests.save_mapi_calendar_model_request import SaveMapiCalendarModelRequest -from AsposeEmailCloudSdk.models.requests.save_mapi_contact_model_request import SaveMapiContactModelRequest -from AsposeEmailCloudSdk.models.requests.save_mapi_message_model_request import SaveMapiMessageModelRequest -from AsposeEmailCloudSdk.models.requests.send_email_mime_request import SendEmailMimeRequest -from AsposeEmailCloudSdk.models.requests.send_email_model_request import SendEmailModelRequest -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 -from AsposeEmailCloudSdk.models.requests.update_mapi_properties_request import UpdateMapiPropertiesRequest -from AsposeEmailCloudSdk.models.requests.upload_file_request import UploadFileRequest diff --git a/sdk/AsposeEmailCloudSdk/models/requests/add_calendar_attachment_request.py b/sdk/AsposeEmailCloudSdk/models/requests/add_calendar_attachment_request.py deleted file mode 100644 index 1d022c1..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/add_calendar_attachment_request.py +++ /dev/null @@ -1,108 +0,0 @@ -# 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.add_calendar_attachment_request import AddCalendarAttachmentRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AddCalendarAttachmentRequest(BaseRequest): - """ - Request model for add_calendar_attachment operation. - Initializes a new instance. - - :param name (str) Calendar file name in storage - :param attachment (str) Attachment file name in storage - :param request (AddAttachmentRequest) Storage name and folder path for calendar and attachment files - """ - - def __init__(self, name: str, attachment: str, request: AddAttachmentRequest): - """ - Request model for add_calendar_attachment operation. - Initializes a new instance. - - :param name (str) Calendar file name in storage - :param attachment (str) Attachment file name in storage - :param request (AddAttachmentRequest) Storage name and folder path for calendar and attachment files - """ - - BaseRequest.__init__(self) - self.name = name - self.attachment = attachment - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `add_calendar_attachment`") - # verify the required parameter 'attachment' is set - if self.attachment is None: - raise ValueError("Missing the required parameter `attachment` when calling `add_calendar_attachment`") - # verify the required parameter 'request' is set - if self.request is None: - raise ValueError("Missing the required parameter `request` when calling `add_calendar_attachment`") - - collection_formats = {} - path = '/email/Calendar/{name}/attachments/{attachment}' - path_params = {} - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - if self.attachment is not None: - path_params[self._lowercase_first_letter('attachment')] = self.attachment - - 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/add_contact_attachment_request.py b/sdk/AsposeEmailCloudSdk/models/requests/add_contact_attachment_request.py deleted file mode 100644 index 1ccc61c..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/add_contact_attachment_request.py +++ /dev/null @@ -1,116 +0,0 @@ -# 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.add_contact_attachment_request import AddContactAttachmentRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AddContactAttachmentRequest(BaseRequest): - """ - Request model for add_contact_attachment operation. - Initializes a new instance. - - :param format (str) Contact document format Enum, available values: VCard, WebDav, Msg - :param name (str) Contact document file name - :param attachment (str) Attachment name - :param request (AddAttachmentRequest) Add attachment request - """ - - def __init__(self, format: str, name: str, attachment: str, request: AddAttachmentRequest): - """ - Request model for add_contact_attachment operation. - Initializes a new instance. - - :param format (str) Contact document format Enum, available values: VCard, WebDav, Msg - :param name (str) Contact document file name - :param attachment (str) Attachment name - :param request (AddAttachmentRequest) Add attachment request - """ - - BaseRequest.__init__(self) - self.format = format - self.name = name - self.attachment = attachment - 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 'format' is set - if self.format is None: - raise ValueError("Missing the required parameter `format` when calling `add_contact_attachment`") - # verify the required parameter 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `add_contact_attachment`") - # verify the required parameter 'attachment' is set - if self.attachment is None: - raise ValueError("Missing the required parameter `attachment` when calling `add_contact_attachment`") - # verify the required parameter 'request' is set - if self.request is None: - raise ValueError("Missing the required parameter `request` when calling `add_contact_attachment`") - - collection_formats = {} - path = '/email/Contact/{format}/{name}/attachments/{attachment}' - path_params = {} - if self.format is not None: - path_params[self._lowercase_first_letter('format')] = self.format - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - if self.attachment is not None: - path_params[self._lowercase_first_letter('attachment')] = self.attachment - - 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/add_email_attachment_request.py b/sdk/AsposeEmailCloudSdk/models/requests/add_email_attachment_request.py deleted file mode 100644 index 9da43a9..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/add_email_attachment_request.py +++ /dev/null @@ -1,108 +0,0 @@ -# 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.add_email_attachment_request import AddEmailAttachmentRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AddEmailAttachmentRequest(BaseRequest): - """ - Request model for add_email_attachment operation. - Initializes a new instance. - - :param attachment_name (str) Attachment file name - :param file_name (str) Email document file name - :param request (AddAttachmentRequest) Storage info to specify location of email document and attachment files - """ - - def __init__(self, attachment_name: str, file_name: str, request: AddAttachmentRequest): - """ - Request model for add_email_attachment operation. - Initializes a new instance. - - :param attachment_name (str) Attachment file name - :param file_name (str) Email document file name - :param request (AddAttachmentRequest) Storage info to specify location of email document and attachment files - """ - - BaseRequest.__init__(self) - self.attachment_name = attachment_name - self.file_name = file_name - 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 'attachment_name' is set - if self.attachment_name is None: - raise ValueError("Missing the required parameter `attachment_name` when calling `add_email_attachment`") - # verify the required parameter 'file_name' is set - if self.file_name is None: - raise ValueError("Missing the required parameter `file_name` when calling `add_email_attachment`") - # verify the required parameter 'request' is set - if self.request is None: - raise ValueError("Missing the required parameter `request` when calling `add_email_attachment`") - - collection_formats = {} - path = '/email/{fileName}/attachments/{attachmentName}' - path_params = {} - if self.attachment_name is not None: - path_params[self._lowercase_first_letter('attachmentName')] = self.attachment_name - if self.file_name is not None: - path_params[self._lowercase_first_letter('fileName')] = self.file_name - - 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/add_mapi_attachment_request.py b/sdk/AsposeEmailCloudSdk/models/requests/add_mapi_attachment_request.py deleted file mode 100644 index 6edc99c..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/add_mapi_attachment_request.py +++ /dev/null @@ -1,108 +0,0 @@ -# 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.add_mapi_attachment_request import AddMapiAttachmentRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AddMapiAttachmentRequest(BaseRequest): - """ - Request model for add_mapi_attachment operation. - Initializes a new instance. - - :param name (str) Document file name - :param attachment (str) Attachment file name - :param request (AddAttachmentRequest) Add attachment request - """ - - def __init__(self, name: str, attachment: str, request: AddAttachmentRequest): - """ - Request model for add_mapi_attachment operation. - Initializes a new instance. - - :param name (str) Document file name - :param attachment (str) Attachment file name - :param request (AddAttachmentRequest) Add attachment request - """ - - BaseRequest.__init__(self) - self.name = name - self.attachment = attachment - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `add_mapi_attachment`") - # verify the required parameter 'attachment' is set - if self.attachment is None: - raise ValueError("Missing the required parameter `attachment` when calling `add_mapi_attachment`") - # verify the required parameter 'request' is set - if self.request is None: - raise ValueError("Missing the required parameter `request` when calling `add_mapi_attachment`") - - collection_formats = {} - path = '/email/Mapi/{name}/attachments/{attachment}' - path_params = {} - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - if self.attachment is not None: - path_params[self._lowercase_first_letter('attachment')] = self.attachment - - 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/ai_bcr_ocr_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_ocr_request.py deleted file mode 100644 index e6f8779..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_ocr_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.ai_bcr_ocr_request import AiBcrOcrRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AiBcrOcrRequest(BaseRequest): - """ - Request model for ai_bcr_ocr operation. - Initializes a new instance. - - :param rq (AiBcrBase64Rq) Request with base64 images data - """ - - def __init__(self, rq: AiBcrBase64Rq): - """ - Request model for ai_bcr_ocr operation. - Initializes a new instance. - - :param rq (AiBcrBase64Rq) Request with base64 images data - """ - - BaseRequest.__init__(self) - self.rq = rq - - 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 'rq' is set - if self.rq is None: - raise ValueError("Missing the required parameter `rq` when calling `ai_bcr_ocr`") - - collection_formats = {} - path = '/email/AiBcr/ocr' - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.rq is not None: - body_params = self.rq - - # 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/ai_bcr_ocr_storage_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_ocr_storage_request.py deleted file mode 100644 index 4d2ccab..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_ocr_storage_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.ai_bcr_ocr_storage_request import AiBcrOcrStorageRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AiBcrOcrStorageRequest(BaseRequest): - """ - Request model for ai_bcr_ocr_storage operation. - Initializes a new instance. - - :param rq (AiBcrStorageImageRq) Request with images located on storage - """ - - def __init__(self, rq: AiBcrStorageImageRq): - """ - Request model for ai_bcr_ocr_storage operation. - Initializes a new instance. - - :param rq (AiBcrStorageImageRq) Request with images located on storage - """ - - BaseRequest.__init__(self) - self.rq = rq - - 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 'rq' is set - if self.rq is None: - raise ValueError("Missing the required parameter `rq` when calling `ai_bcr_ocr_storage`") - - collection_formats = {} - path = '/email/AiBcr/ocr-storage' - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.rq is not None: - body_params = self.rq - - # 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/ai_bcr_parse_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_model_request.py deleted file mode 100644 index 6147430..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_model_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.ai_bcr_parse_model_request import AiBcrParseModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AiBcrParseModelRequest(BaseRequest): - """ - Request model for ai_bcr_parse_model operation. - Initializes a new instance. - - :param rq (AiBcrBase64Rq) Request with base64 images data - """ - - def __init__(self, rq: AiBcrBase64Rq): - """ - Request model for ai_bcr_parse_model operation. - Initializes a new instance. - - :param rq (AiBcrBase64Rq) Request with base64 images data - """ - - BaseRequest.__init__(self) - self.rq = rq - - 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 'rq' is set - if self.rq is None: - raise ValueError("Missing the required parameter `rq` when calling `ai_bcr_parse_model`") - - collection_formats = {} - path = '/email/AiBcr/parse-model' - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.rq is not None: - body_params = self.rq - - # 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/ai_bcr_parse_ocr_data_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_ocr_data_model_request.py deleted file mode 100644 index 0662d3c..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_ocr_data_model_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.ai_bcr_parse_ocr_data_model_request import AiBcrParseOcrDataModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AiBcrParseOcrDataModelRequest(BaseRequest): - """ - Request model for ai_bcr_parse_ocr_data_model operation. - Initializes a new instance. - - :param rq (AiBcrParseOcrDataRq) - """ - - def __init__(self, rq: AiBcrParseOcrDataRq): - """ - Request model for ai_bcr_parse_ocr_data_model operation. - Initializes a new instance. - - :param rq (AiBcrParseOcrDataRq) - """ - - BaseRequest.__init__(self) - self.rq = rq - - 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 'rq' is set - if self.rq is None: - raise ValueError("Missing the required parameter `rq` when calling `ai_bcr_parse_ocr_data_model`") - - collection_formats = {} - path = '/email/AiBcr/parse-ocr-data-model' - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.rq is not None: - body_params = self.rq - - # 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/ai_bcr_parse_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_request.py deleted file mode 100644 index 15f4212..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.ai_bcr_parse_request import AiBcrParseRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AiBcrParseRequest(BaseRequest): - """ - Request model for ai_bcr_parse operation. - Initializes a new instance. - - :param rq (AiBcrBase64Rq) Request with base64 images data - """ - - def __init__(self, rq: AiBcrBase64Rq): - """ - Request model for ai_bcr_parse operation. - Initializes a new instance. - - :param rq (AiBcrBase64Rq) Request with base64 images data - """ - - BaseRequest.__init__(self) - self.rq = rq - - 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 'rq' is set - if self.rq is None: - raise ValueError("Missing the required parameter `rq` when calling `ai_bcr_parse`") - - collection_formats = {} - path = '/email/AiBcr/parse' - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.rq is not None: - body_params = self.rq - - # 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/ai_bcr_parse_storage_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_storage_request.py deleted file mode 100644 index 09df44b..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/ai_bcr_parse_storage_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.ai_bcr_parse_storage_request import AiBcrParseStorageRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AiBcrParseStorageRequest(BaseRequest): - """ - Request model for ai_bcr_parse_storage operation. - Initializes a new instance. - - :param rq (AiBcrParseStorageRq) Request with images located on storage - """ - - def __init__(self, rq: AiBcrParseStorageRq): - """ - Request model for ai_bcr_parse_storage operation. - Initializes a new instance. - - :param rq (AiBcrParseStorageRq) Request with images located on storage - """ - - BaseRequest.__init__(self) - self.rq = rq - - 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 'rq' is set - if self.rq is None: - raise ValueError("Missing the required parameter `rq` when calling `ai_bcr_parse_storage`") - - collection_formats = {} - path = '/email/AiBcr/parse-storage' - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.rq is not None: - body_params = self.rq - - # 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/ai_name_complete_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_complete_request.py deleted file mode 100644 index 2ae9eab..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_complete_request.py +++ /dev/null @@ -1,141 +0,0 @@ -# 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.ai_name_complete_request import AiNameCompleteRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AiNameCompleteRequest(BaseRequest): - """ - Request model for ai_name_complete operation. - Initializes a new instance. - - :param name (str) A name to complete (required) - :param language (str) An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) - :param location (str) A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France - :param encoding (str) A character encoding name - :param script (str) A writing system code; starts with the ISO-15924 script name - :param style (str) Name writing style. Enum, available values: Formal, Informal, Legal, Academic - """ - - def __init__(self, name: str, language: str = None, location: str = None, encoding: str = None, script: str = None, style: str = None): - """ - Request model for ai_name_complete operation. - Initializes a new instance. - - :param name (str) A name to complete (required) - :param language (str) An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) - :param location (str) A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France - :param encoding (str) A character encoding name - :param script (str) A writing system code; starts with the ISO-15924 script name - :param style (str) Name writing style. Enum, available values: Formal, Informal, Legal, Academic - """ - - BaseRequest.__init__(self) - self.name = name - self.language = language - self.location = location - self.encoding = encoding - self.script = script - self.style = style - - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `ai_name_complete`") - - collection_formats = {} - path = '/email/AiName/complete' - path_params = {} - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('name') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.name if self.name is not None else '') - else: - if self.name is not None: - query_params.append((self._lowercase_first_letter('name'), self.name)) - path_parameter = '{' + self._lowercase_first_letter('language') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.language if self.language is not None else '') - else: - if self.language is not None: - query_params.append((self._lowercase_first_letter('language'), self.language)) - path_parameter = '{' + self._lowercase_first_letter('location') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.location if self.location is not None else '') - else: - if self.location is not None: - query_params.append((self._lowercase_first_letter('location'), self.location)) - path_parameter = '{' + self._lowercase_first_letter('encoding') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.encoding if self.encoding is not None else '') - else: - if self.encoding is not None: - query_params.append((self._lowercase_first_letter('encoding'), self.encoding)) - path_parameter = '{' + self._lowercase_first_letter('script') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.script if self.script is not None else '') - else: - if self.script is not None: - query_params.append((self._lowercase_first_letter('script'), self.script)) - path_parameter = '{' + self._lowercase_first_letter('style') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.style if self.style is not None else '') - else: - if self.style is not None: - query_params.append((self._lowercase_first_letter('style'), self.style)) - - 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/ai_name_expand_parsed_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_expand_parsed_request.py deleted file mode 100644 index fca1846..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_expand_parsed_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.ai_name_expand_parsed_request import AiNameExpandParsedRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AiNameExpandParsedRequest(BaseRequest): - """ - Request model for ai_name_expand_parsed operation. - Initializes a new instance. - - :param rq (AiNameParsedRq) Parsed name with options - """ - - def __init__(self, rq: AiNameParsedRq): - """ - Request model for ai_name_expand_parsed operation. - Initializes a new instance. - - :param rq (AiNameParsedRq) Parsed name with options - """ - - BaseRequest.__init__(self) - self.rq = rq - - 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 'rq' is set - if self.rq is None: - raise ValueError("Missing the required parameter `rq` when calling `ai_name_expand_parsed`") - - collection_formats = {} - path = '/email/AiName/expand-parsed' - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.rq is not None: - body_params = self.rq - - # 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/ai_name_expand_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_expand_request.py deleted file mode 100644 index 97ca3d0..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_expand_request.py +++ /dev/null @@ -1,141 +0,0 @@ -# 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.ai_name_expand_request import AiNameExpandRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AiNameExpandRequest(BaseRequest): - """ - Request model for ai_name_expand operation. - Initializes a new instance. - - :param name (str) A name to format (required) - :param language (str) An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) - :param location (str) A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France - :param encoding (str) A character encoding name - :param script (str) A writing system code; starts with the ISO-15924 script name - :param style (str) Name writing style. Enum, available values: Formal, Informal, Legal, Academic - """ - - def __init__(self, name: str, language: str = None, location: str = None, encoding: str = None, script: str = None, style: str = None): - """ - Request model for ai_name_expand operation. - Initializes a new instance. - - :param name (str) A name to format (required) - :param language (str) An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) - :param location (str) A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France - :param encoding (str) A character encoding name - :param script (str) A writing system code; starts with the ISO-15924 script name - :param style (str) Name writing style. Enum, available values: Formal, Informal, Legal, Academic - """ - - BaseRequest.__init__(self) - self.name = name - self.language = language - self.location = location - self.encoding = encoding - self.script = script - self.style = style - - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `ai_name_expand`") - - collection_formats = {} - path = '/email/AiName/expand' - path_params = {} - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('name') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.name if self.name is not None else '') - else: - if self.name is not None: - query_params.append((self._lowercase_first_letter('name'), self.name)) - path_parameter = '{' + self._lowercase_first_letter('language') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.language if self.language is not None else '') - else: - if self.language is not None: - query_params.append((self._lowercase_first_letter('language'), self.language)) - path_parameter = '{' + self._lowercase_first_letter('location') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.location if self.location is not None else '') - else: - if self.location is not None: - query_params.append((self._lowercase_first_letter('location'), self.location)) - path_parameter = '{' + self._lowercase_first_letter('encoding') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.encoding if self.encoding is not None else '') - else: - if self.encoding is not None: - query_params.append((self._lowercase_first_letter('encoding'), self.encoding)) - path_parameter = '{' + self._lowercase_first_letter('script') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.script if self.script is not None else '') - else: - if self.script is not None: - query_params.append((self._lowercase_first_letter('script'), self.script)) - path_parameter = '{' + self._lowercase_first_letter('style') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.style if self.style is not None else '') - else: - if self.style is not None: - query_params.append((self._lowercase_first_letter('style'), self.style)) - - 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/ai_name_format_parsed_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_format_parsed_request.py deleted file mode 100644 index 1920555..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_format_parsed_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.ai_name_format_parsed_request import AiNameFormatParsedRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AiNameFormatParsedRequest(BaseRequest): - """ - Request model for ai_name_format_parsed operation. - Initializes a new instance. - - :param rq (AiNameParsedRq) Parsed name with options - """ - - def __init__(self, rq: AiNameParsedRq): - """ - Request model for ai_name_format_parsed operation. - Initializes a new instance. - - :param rq (AiNameParsedRq) Parsed name with options - """ - - BaseRequest.__init__(self) - self.rq = rq - - 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 'rq' is set - if self.rq is None: - raise ValueError("Missing the required parameter `rq` when calling `ai_name_format_parsed`") - - collection_formats = {} - path = '/email/AiName/format-parsed' - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.rq is not None: - body_params = self.rq - - # 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/ai_name_format_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_format_request.py deleted file mode 100644 index e250e74..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_format_request.py +++ /dev/null @@ -1,150 +0,0 @@ -# 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.ai_name_format_request import AiNameFormatRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AiNameFormatRequest(BaseRequest): - """ - Request model for ai_name_format operation. - Initializes a new instance. - - :param name (str) A name to format (required) - :param language (str) An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) - :param location (str) A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France - :param encoding (str) A character encoding name - :param script (str) A writing system code; starts with the ISO-15924 script name - :param format (str) Format of the name. Predefined format can be used by ID, or custom format can be specified. Predefined formats: /format/default/ (= '%t%F%m%N%L%p') /format/FN+LN/ (= '%F%L') /format/title+FN+LN/ (= '%t%F%L') /format/FN+MN+LN/ (= '%F%M%N%L') /format/title+FN+MN+LN/ (= '%t%F%M%N%L') /format/FN+MI+LN/ (= '%F%m%N%L') /format/title+FN+MI+LN/ (= '%t%F%m%N%L') /format/LN/ (= '%L') /format/title+LN/ (= '%t%L') /format/LN+FN+MN/ (= '%L,%F%M%N') /format/LN+title+FN+MN/ (= '%L,%t%F%M%N') /format/LN+FN+MI/ (= '%L,%F%m%N') /format/LN+title+FN+MI/ (= '%L,%t%F%m%N') Custom format string - custom combination of characters and the next term placeholders: '%t' - Title (prefix) '%F' - First name '%f' - First initial '%M' - Middle name(s) '%m' - Middle initial(s) '%N' - Nickname '%L' - Last name '%l' - Last initial '%p' - Postfix If no value for format option was provided, its default value is '%t%F%m%N%L%p' - :param style (str) Name writing style. Enum, available values: Formal, Informal, Legal, Academic - """ - - def __init__(self, name: str, language: str = None, location: str = None, encoding: str = None, script: str = None, format: str = None, style: str = None): - """ - Request model for ai_name_format operation. - Initializes a new instance. - - :param name (str) A name to format (required) - :param language (str) An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) - :param location (str) A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France - :param encoding (str) A character encoding name - :param script (str) A writing system code; starts with the ISO-15924 script name - :param format (str) Format of the name. Predefined format can be used by ID, or custom format can be specified. Predefined formats: /format/default/ (= '%t%F%m%N%L%p') /format/FN+LN/ (= '%F%L') /format/title+FN+LN/ (= '%t%F%L') /format/FN+MN+LN/ (= '%F%M%N%L') /format/title+FN+MN+LN/ (= '%t%F%M%N%L') /format/FN+MI+LN/ (= '%F%m%N%L') /format/title+FN+MI+LN/ (= '%t%F%m%N%L') /format/LN/ (= '%L') /format/title+LN/ (= '%t%L') /format/LN+FN+MN/ (= '%L,%F%M%N') /format/LN+title+FN+MN/ (= '%L,%t%F%M%N') /format/LN+FN+MI/ (= '%L,%F%m%N') /format/LN+title+FN+MI/ (= '%L,%t%F%m%N') Custom format string - custom combination of characters and the next term placeholders: '%t' - Title (prefix) '%F' - First name '%f' - First initial '%M' - Middle name(s) '%m' - Middle initial(s) '%N' - Nickname '%L' - Last name '%l' - Last initial '%p' - Postfix If no value for format option was provided, its default value is '%t%F%m%N%L%p' - :param style (str) Name writing style. Enum, available values: Formal, Informal, Legal, Academic - """ - - BaseRequest.__init__(self) - self.name = name - self.language = language - self.location = location - self.encoding = encoding - self.script = script - self.format = format - self.style = style - - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `ai_name_format`") - - collection_formats = {} - path = '/email/AiName/format' - path_params = {} - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('name') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.name if self.name is not None else '') - else: - if self.name is not None: - query_params.append((self._lowercase_first_letter('name'), self.name)) - path_parameter = '{' + self._lowercase_first_letter('language') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.language if self.language is not None else '') - else: - if self.language is not None: - query_params.append((self._lowercase_first_letter('language'), self.language)) - path_parameter = '{' + self._lowercase_first_letter('location') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.location if self.location is not None else '') - else: - if self.location is not None: - query_params.append((self._lowercase_first_letter('location'), self.location)) - path_parameter = '{' + self._lowercase_first_letter('encoding') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.encoding if self.encoding is not None else '') - else: - if self.encoding is not None: - query_params.append((self._lowercase_first_letter('encoding'), self.encoding)) - path_parameter = '{' + self._lowercase_first_letter('script') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.script if self.script is not None else '') - else: - if self.script is not None: - query_params.append((self._lowercase_first_letter('script'), self.script)) - path_parameter = '{' + self._lowercase_first_letter('format') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.format if self.format is not None else '') - else: - if self.format is not None: - query_params.append((self._lowercase_first_letter('format'), self.format)) - path_parameter = '{' + self._lowercase_first_letter('style') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.style if self.style is not None else '') - else: - if self.style is not None: - query_params.append((self._lowercase_first_letter('style'), self.style)) - - 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/ai_name_genderize_parsed_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_genderize_parsed_request.py deleted file mode 100644 index f66a209..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_genderize_parsed_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.ai_name_genderize_parsed_request import AiNameGenderizeParsedRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AiNameGenderizeParsedRequest(BaseRequest): - """ - Request model for ai_name_genderize_parsed operation. - Initializes a new instance. - - :param rq (AiNameParsedRq) Gender detection request data - """ - - def __init__(self, rq: AiNameParsedRq): - """ - Request model for ai_name_genderize_parsed operation. - Initializes a new instance. - - :param rq (AiNameParsedRq) Gender detection request data - """ - - BaseRequest.__init__(self) - self.rq = rq - - 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 'rq' is set - if self.rq is None: - raise ValueError("Missing the required parameter `rq` when calling `ai_name_genderize_parsed`") - - collection_formats = {} - path = '/email/AiName/genderize-parsed' - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.rq is not None: - body_params = self.rq - - # 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/ai_name_genderize_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_genderize_request.py deleted file mode 100644 index 047c124..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_genderize_request.py +++ /dev/null @@ -1,141 +0,0 @@ -# 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.ai_name_genderize_request import AiNameGenderizeRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AiNameGenderizeRequest(BaseRequest): - """ - Request model for ai_name_genderize operation. - Initializes a new instance. - - :param name (str) A name to parse (required) - :param language (str) An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) - :param location (str) A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France - :param encoding (str) A character encoding name - :param script (str) A writing system code; starts with the ISO-15924 script name - :param style (str) Name writing style. Enum, available values: Formal, Informal, Legal, Academic - """ - - def __init__(self, name: str, language: str = None, location: str = None, encoding: str = None, script: str = None, style: str = None): - """ - Request model for ai_name_genderize operation. - Initializes a new instance. - - :param name (str) A name to parse (required) - :param language (str) An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) - :param location (str) A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France - :param encoding (str) A character encoding name - :param script (str) A writing system code; starts with the ISO-15924 script name - :param style (str) Name writing style. Enum, available values: Formal, Informal, Legal, Academic - """ - - BaseRequest.__init__(self) - self.name = name - self.language = language - self.location = location - self.encoding = encoding - self.script = script - self.style = style - - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `ai_name_genderize`") - - collection_formats = {} - path = '/email/AiName/genderize' - path_params = {} - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('name') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.name if self.name is not None else '') - else: - if self.name is not None: - query_params.append((self._lowercase_first_letter('name'), self.name)) - path_parameter = '{' + self._lowercase_first_letter('language') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.language if self.language is not None else '') - else: - if self.language is not None: - query_params.append((self._lowercase_first_letter('language'), self.language)) - path_parameter = '{' + self._lowercase_first_letter('location') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.location if self.location is not None else '') - else: - if self.location is not None: - query_params.append((self._lowercase_first_letter('location'), self.location)) - path_parameter = '{' + self._lowercase_first_letter('encoding') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.encoding if self.encoding is not None else '') - else: - if self.encoding is not None: - query_params.append((self._lowercase_first_letter('encoding'), self.encoding)) - path_parameter = '{' + self._lowercase_first_letter('script') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.script if self.script is not None else '') - else: - if self.script is not None: - query_params.append((self._lowercase_first_letter('script'), self.script)) - path_parameter = '{' + self._lowercase_first_letter('style') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.style if self.style is not None else '') - else: - if self.style is not None: - query_params.append((self._lowercase_first_letter('style'), self.style)) - - 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/ai_name_match_parsed_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_match_parsed_request.py deleted file mode 100644 index 01157fa..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_match_parsed_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.ai_name_match_parsed_request import AiNameMatchParsedRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AiNameMatchParsedRequest(BaseRequest): - """ - Request model for ai_name_match_parsed operation. - Initializes a new instance. - - :param rq (AiNameParsedMatchRq) Parsed names to match - """ - - def __init__(self, rq: AiNameParsedMatchRq): - """ - Request model for ai_name_match_parsed operation. - Initializes a new instance. - - :param rq (AiNameParsedMatchRq) Parsed names to match - """ - - BaseRequest.__init__(self) - self.rq = rq - - 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 'rq' is set - if self.rq is None: - raise ValueError("Missing the required parameter `rq` when calling `ai_name_match_parsed`") - - collection_formats = {} - path = '/email/AiName/match-parsed' - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.rq is not None: - body_params = self.rq - - # 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/ai_name_match_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_match_request.py deleted file mode 100644 index 18f533a..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_match_request.py +++ /dev/null @@ -1,153 +0,0 @@ -# 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.ai_name_match_request import AiNameMatchRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AiNameMatchRequest(BaseRequest): - """ - Request model for ai_name_match operation. - Initializes a new instance. - - :param name (str) A name to match (required) - :param other_name (str) Another name to match (required) - :param language (str) An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) - :param location (str) A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France - :param encoding (str) A character encoding name - :param script (str) A writing system code; starts with the ISO-15924 script name - :param style (str) Name writing style. Enum, available values: Formal, Informal, Legal, Academic - """ - - def __init__(self, name: str, other_name: str, language: str = None, location: str = None, encoding: str = None, script: str = None, style: str = None): - """ - Request model for ai_name_match operation. - Initializes a new instance. - - :param name (str) A name to match (required) - :param other_name (str) Another name to match (required) - :param language (str) An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) - :param location (str) A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France - :param encoding (str) A character encoding name - :param script (str) A writing system code; starts with the ISO-15924 script name - :param style (str) Name writing style. Enum, available values: Formal, Informal, Legal, Academic - """ - - BaseRequest.__init__(self) - self.name = name - self.other_name = other_name - self.language = language - self.location = location - self.encoding = encoding - self.script = script - self.style = style - - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `ai_name_match`") - # verify the required parameter 'other_name' is set - if self.other_name is None: - raise ValueError("Missing the required parameter `other_name` when calling `ai_name_match`") - - collection_formats = {} - path = '/email/AiName/match' - path_params = {} - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('name') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.name if self.name is not None else '') - else: - if self.name is not None: - query_params.append((self._lowercase_first_letter('name'), self.name)) - path_parameter = '{' + self._lowercase_first_letter('otherName') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.other_name if self.other_name is not None else '') - else: - if self.other_name is not None: - query_params.append((self._lowercase_first_letter('otherName'), self.other_name)) - path_parameter = '{' + self._lowercase_first_letter('language') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.language if self.language is not None else '') - else: - if self.language is not None: - query_params.append((self._lowercase_first_letter('language'), self.language)) - path_parameter = '{' + self._lowercase_first_letter('location') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.location if self.location is not None else '') - else: - if self.location is not None: - query_params.append((self._lowercase_first_letter('location'), self.location)) - path_parameter = '{' + self._lowercase_first_letter('encoding') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.encoding if self.encoding is not None else '') - else: - if self.encoding is not None: - query_params.append((self._lowercase_first_letter('encoding'), self.encoding)) - path_parameter = '{' + self._lowercase_first_letter('script') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.script if self.script is not None else '') - else: - if self.script is not None: - query_params.append((self._lowercase_first_letter('script'), self.script)) - path_parameter = '{' + self._lowercase_first_letter('style') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.style if self.style is not None else '') - else: - if self.style is not None: - query_params.append((self._lowercase_first_letter('style'), self.style)) - - 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/ai_name_parse_email_address_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_parse_email_address_request.py deleted file mode 100644 index 176a3c3..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_parse_email_address_request.py +++ /dev/null @@ -1,141 +0,0 @@ -# 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.ai_name_parse_email_address_request import AiNameParseEmailAddressRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AiNameParseEmailAddressRequest(BaseRequest): - """ - Request model for ai_name_parse_email_address operation. - Initializes a new instance. - - :param email_address (str) Email address to parse (required) - :param language (str) An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) - :param location (str) A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France - :param encoding (str) A character encoding name - :param script (str) A writing system code; starts with the ISO-15924 script name - :param style (str) Name writing style. Enum, available values: Formal, Informal, Legal, Academic - """ - - def __init__(self, email_address: str, language: str = None, location: str = None, encoding: str = None, script: str = None, style: str = None): - """ - Request model for ai_name_parse_email_address operation. - Initializes a new instance. - - :param email_address (str) Email address to parse (required) - :param language (str) An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) - :param location (str) A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France - :param encoding (str) A character encoding name - :param script (str) A writing system code; starts with the ISO-15924 script name - :param style (str) Name writing style. Enum, available values: Formal, Informal, Legal, Academic - """ - - BaseRequest.__init__(self) - self.email_address = email_address - self.language = language - self.location = location - self.encoding = encoding - self.script = script - self.style = style - - 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 'email_address' is set - if self.email_address is None: - raise ValueError("Missing the required parameter `email_address` when calling `ai_name_parse_email_address`") - - collection_formats = {} - path = '/email/AiName/parse-email-address' - path_params = {} - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('emailAddress') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.email_address if self.email_address is not None else '') - else: - if self.email_address is not None: - query_params.append((self._lowercase_first_letter('emailAddress'), self.email_address)) - path_parameter = '{' + self._lowercase_first_letter('language') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.language if self.language is not None else '') - else: - if self.language is not None: - query_params.append((self._lowercase_first_letter('language'), self.language)) - path_parameter = '{' + self._lowercase_first_letter('location') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.location if self.location is not None else '') - else: - if self.location is not None: - query_params.append((self._lowercase_first_letter('location'), self.location)) - path_parameter = '{' + self._lowercase_first_letter('encoding') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.encoding if self.encoding is not None else '') - else: - if self.encoding is not None: - query_params.append((self._lowercase_first_letter('encoding'), self.encoding)) - path_parameter = '{' + self._lowercase_first_letter('script') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.script if self.script is not None else '') - else: - if self.script is not None: - query_params.append((self._lowercase_first_letter('script'), self.script)) - path_parameter = '{' + self._lowercase_first_letter('style') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.style if self.style is not None else '') - else: - if self.style is not None: - query_params.append((self._lowercase_first_letter('style'), self.style)) - - 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/ai_name_parse_request.py b/sdk/AsposeEmailCloudSdk/models/requests/ai_name_parse_request.py deleted file mode 100644 index 05a9999..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/ai_name_parse_request.py +++ /dev/null @@ -1,141 +0,0 @@ -# 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.ai_name_parse_request import AiNameParseRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AiNameParseRequest(BaseRequest): - """ - Request model for ai_name_parse operation. - Initializes a new instance. - - :param name (str) A name to parse (required) - :param language (str) An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) - :param location (str) A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France - :param encoding (str) A character encoding name - :param script (str) A writing system code; starts with the ISO-15924 script name - :param style (str) Name writing style Enum, available values: Formal, Informal, Legal, Academic - """ - - def __init__(self, name: str, language: str = None, location: str = None, encoding: str = None, script: str = None, style: str = None): - """ - Request model for ai_name_parse operation. - Initializes a new instance. - - :param name (str) A name to parse (required) - :param language (str) An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) - :param location (str) A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France - :param encoding (str) A character encoding name - :param script (str) A writing system code; starts with the ISO-15924 script name - :param style (str) Name writing style Enum, available values: Formal, Informal, Legal, Academic - """ - - BaseRequest.__init__(self) - self.name = name - self.language = language - self.location = location - self.encoding = encoding - self.script = script - self.style = style - - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `ai_name_parse`") - - collection_formats = {} - path = '/email/AiName/parse' - path_params = {} - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('name') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.name if self.name is not None else '') - else: - if self.name is not None: - query_params.append((self._lowercase_first_letter('name'), self.name)) - path_parameter = '{' + self._lowercase_first_letter('language') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.language if self.language is not None else '') - else: - if self.language is not None: - query_params.append((self._lowercase_first_letter('language'), self.language)) - path_parameter = '{' + self._lowercase_first_letter('location') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.location if self.location is not None else '') - else: - if self.location is not None: - query_params.append((self._lowercase_first_letter('location'), self.location)) - path_parameter = '{' + self._lowercase_first_letter('encoding') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.encoding if self.encoding is not None else '') - else: - if self.encoding is not None: - query_params.append((self._lowercase_first_letter('encoding'), self.encoding)) - path_parameter = '{' + self._lowercase_first_letter('script') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.script if self.script is not None else '') - else: - if self.script is not None: - query_params.append((self._lowercase_first_letter('script'), self.script)) - path_parameter = '{' + self._lowercase_first_letter('style') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.style if self.style is not None else '') - else: - if self.style is not None: - query_params.append((self._lowercase_first_letter('style'), self.style)) - - 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/append_email_message_request.py b/sdk/AsposeEmailCloudSdk/models/requests/append_email_message_request.py deleted file mode 100644 index b2a6bdf..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/append_email_message_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.append_email_message_request import AppendEmailMessageRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AppendEmailMessageRequest(BaseRequest): - """ - Request model for append_email_message operation. - Initializes a new instance. - - :param request (AppendEmailBaseRequest) Append email request - """ - - def __init__(self, request: AppendEmailBaseRequest): - """ - Request model for append_email_message operation. - Initializes a new instance. - - :param request (AppendEmailBaseRequest) Append email request - """ - - 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 `append_email_message`") - - collection_formats = {} - path = '/email/client/Append' - 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/append_email_model_message_request.py b/sdk/AsposeEmailCloudSdk/models/requests/append_email_model_message_request.py deleted file mode 100644 index 8208d37..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/append_email_model_message_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.append_email_model_message_request import AppendEmailModelMessageRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AppendEmailModelMessageRequest(BaseRequest): - """ - Request model for append_email_model_message operation. - Initializes a new instance. - - :param rq (AppendEmailModelRq) Append email request - """ - - def __init__(self, rq: AppendEmailModelRq): - """ - Request model for append_email_model_message operation. - Initializes a new instance. - - :param rq (AppendEmailModelRq) Append email request - """ - - BaseRequest.__init__(self) - self.rq = rq - - 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 'rq' is set - if self.rq is None: - raise ValueError("Missing the required parameter `rq` when calling `append_email_model_message`") - - collection_formats = {} - path = '/email/client/AppendModel' - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.rq is not None: - body_params = self.rq - - # 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/append_mime_message_request.py b/sdk/AsposeEmailCloudSdk/models/requests/append_mime_message_request.py deleted file mode 100644 index 22abe85..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/append_mime_message_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.append_mime_message_request import AppendMimeMessageRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class AppendMimeMessageRequest(BaseRequest): - """ - Request model for append_mime_message operation. - Initializes a new instance. - - :param request (AppendEmailMimeBaseRequest) Append email request - """ - - def __init__(self, request: AppendEmailMimeBaseRequest): - """ - Request model for append_mime_message operation. - Initializes a new instance. - - :param request (AppendEmailMimeBaseRequest) Append email request - """ - - 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 `append_mime_message`") - - collection_formats = {} - path = '/email/client/AppendMime' - 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/base_request.py b/sdk/AsposeEmailCloudSdk/models/requests/base_request.py deleted file mode 100644 index 79491f2..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/base_request.py +++ /dev/null @@ -1,90 +0,0 @@ -# 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. -# -# ---------------------------------------------------------------------------- - -from abc import ABCMeta, abstractmethod - - -class BaseRequest(object): - __metaclass__ = ABCMeta - - @abstractmethod - def to_http_info(self, config): - """ - Prepares initial info for HTTP request - - :param config: API configuration. - :type: AsposeEmailCloudSdk.Configuration - :return: http_request configured http request - :rtype: Configuration.models.requests.HttpRequest - """ - pass - - @staticmethod - def _select_header_accept(accepts): - """Returns `Accept` based on an array of accepts provided. - - :param accepts: List of headers. - :return: Accept (e.g. application/json). - """ - if not accepts: - return None - - accepts = [x.lower() for x in accepts] - - if 'application/json' in accepts: - return 'application/json' - - return ', '.join(accepts) - - @staticmethod - def _select_header_content_type(content_types): - """Returns `Content-Type` based on an array of content_types provided. - - :param content_types: List of content-types. - :return: Content-Type (e.g. application/json). - """ - if not content_types: - return 'application/json' - - content_types = [x.lower() for x in content_types] - - if 'application/json' in content_types or '*/*' in content_types: - return 'application/json' - - return content_types[0] - - @staticmethod - def _lowercase_first_letter(string): - """ - Converts first letter of the string to lowercase - - :param string: initial string - :return: initial string with first character in lowercase - """ - if not string: - return string - - return string[0].lower() + string[1:] 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 deleted file mode 100644 index 3aefd25..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/convert_calendar_model_to_alternate_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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_alternate_request import ConvertCalendarModelToAlternateRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class ConvertCalendarModelToAlternateRequest(BaseRequest): - """ - Request model for convert_calendar_model_to_alternate operation. - Initializes a new instance. - - :param rq (CalendarDtoAlternateRq) iCalendar to AlternateView request - """ - - def __init__(self, rq: CalendarDtoAlternateRq): - """ - Request model for convert_calendar_model_to_alternate operation. - Initializes a new instance. - - :param rq (CalendarDtoAlternateRq) iCalendar to AlternateView request - """ - - BaseRequest.__init__(self) - self.rq = rq - - 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 'rq' is set - if self.rq is None: - raise ValueError("Missing the required parameter `rq` when calling `convert_calendar_model_to_alternate`") - - collection_formats = {} - path = '/email/CalendarModel/as-alternate' - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.rq is not None: - body_params = self.rq - - # 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/convert_calendar_model_to_file_request.py b/sdk/AsposeEmailCloudSdk/models/requests/convert_calendar_model_to_file_request.py deleted file mode 100644 index c24a0ea..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/convert_calendar_model_to_file_request.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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_model_to_mapi_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/convert_calendar_model_to_mapi_model_request.py deleted file mode 100644 index 996ca84..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/convert_calendar_model_to_mapi_model_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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_mapi_model_request import ConvertCalendarModelToMapiModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class ConvertCalendarModelToMapiModelRequest(BaseRequest): - """ - Request model for convert_calendar_model_to_mapi_model operation. - Initializes a new instance. - - :param calendar_dto (CalendarDto) iCalendar model calendar representation - """ - - def __init__(self, calendar_dto: CalendarDto): - """ - Request model for convert_calendar_model_to_mapi_model operation. - Initializes a new instance. - - :param calendar_dto (CalendarDto) iCalendar model calendar representation - """ - - BaseRequest.__init__(self) - 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 'calendar_dto' is set - if self.calendar_dto is None: - raise ValueError("Missing the required parameter `calendar_dto` when calling `convert_calendar_model_to_mapi_model`") - - collection_formats = {} - path = '/email/CalendarModel/model-as-mapi-model' - path_params = {} - - 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( - ['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/convert_calendar_request.py b/sdk/AsposeEmailCloudSdk/models/requests/convert_calendar_request.py deleted file mode 100644 index 693f171..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/convert_calendar_request.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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 deleted file mode 100644 index fc14c26..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/convert_contact_model_to_file_request.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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_model_to_mapi_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/convert_contact_model_to_mapi_model_request.py deleted file mode 100644 index 82961fb..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/convert_contact_model_to_mapi_model_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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_mapi_model_request import ConvertContactModelToMapiModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class ConvertContactModelToMapiModelRequest(BaseRequest): - """ - Request model for convert_contact_model_to_mapi_model operation. - Initializes a new instance. - - :param contact_dto (ContactDto) Contact model to convert - """ - - def __init__(self, contact_dto: ContactDto): - """ - Request model for convert_contact_model_to_mapi_model operation. - Initializes a new instance. - - :param contact_dto (ContactDto) Contact model to convert - """ - - BaseRequest.__init__(self) - 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 'contact_dto' is set - if self.contact_dto is None: - raise ValueError("Missing the required parameter `contact_dto` when calling `convert_contact_model_to_mapi_model`") - - collection_formats = {} - path = '/email/ContactModel/model-as-mapi-model' - path_params = {} - - 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( - ['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/convert_contact_request.py b/sdk/AsposeEmailCloudSdk/models/requests/convert_contact_request.py deleted file mode 100644 index a5a9d19..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/convert_contact_request.py +++ /dev/null @@ -1,108 +0,0 @@ -# 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 deleted file mode 100644 index 16ea062..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/convert_email_model_to_file_request.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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, Tnef - :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, Tnef - :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_model_to_mapi_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/convert_email_model_to_mapi_model_request.py deleted file mode 100644 index b84f9f0..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/convert_email_model_to_mapi_model_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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_mapi_model_request import ConvertEmailModelToMapiModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class ConvertEmailModelToMapiModelRequest(BaseRequest): - """ - Request model for convert_email_model_to_mapi_model operation. - Initializes a new instance. - - :param email_dto (EmailDto) Email model to convert - """ - - def __init__(self, email_dto: EmailDto): - """ - Request model for convert_email_model_to_mapi_model operation. - Initializes a new instance. - - :param email_dto (EmailDto) Email model to convert - """ - - BaseRequest.__init__(self) - 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 'email_dto' is set - if self.email_dto is None: - raise ValueError("Missing the required parameter `email_dto` when calling `convert_email_model_to_mapi_model`") - - collection_formats = {} - path = '/email/model/model-as-mapi-model' - path_params = {} - - 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( - ['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/convert_email_request.py b/sdk/AsposeEmailCloudSdk/models/requests/convert_email_request.py deleted file mode 100644 index ece5edc..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/convert_email_request.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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_request import ConvertEmailRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class ConvertEmailRequest(BaseRequest): - """ - Request model for convert_email operation. - Initializes a new instance. - - :param format (str) File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef - :param file (str) File to convert - """ - - def __init__(self, format: str, file: str): - """ - Request model for convert_email operation. - Initializes a new instance. - - :param format (str) File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef - :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_email`") - # verify the required parameter 'file' is set - if self.file is None: - raise ValueError("Missing the required parameter `file` when calling `convert_email`") - - collection_formats = {} - path = '/email/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_mapi_calendar_model_to_calendar_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/convert_mapi_calendar_model_to_calendar_model_request.py deleted file mode 100644 index 2ff522f..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/convert_mapi_calendar_model_to_calendar_model_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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_mapi_calendar_model_to_calendar_model_request import ConvertMapiCalendarModelToCalendarModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class ConvertMapiCalendarModelToCalendarModelRequest(BaseRequest): - """ - Request model for convert_mapi_calendar_model_to_calendar_model operation. - Initializes a new instance. - - :param mapi_calendar_dto (MapiCalendarDto) MAPI calendar model to convert - """ - - def __init__(self, mapi_calendar_dto: MapiCalendarDto): - """ - Request model for convert_mapi_calendar_model_to_calendar_model operation. - Initializes a new instance. - - :param mapi_calendar_dto (MapiCalendarDto) MAPI calendar model to convert - """ - - BaseRequest.__init__(self) - self.mapi_calendar_dto = mapi_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 'mapi_calendar_dto' is set - if self.mapi_calendar_dto is None: - raise ValueError("Missing the required parameter `mapi_calendar_dto` when calling `convert_mapi_calendar_model_to_calendar_model`") - - collection_formats = {} - path = '/email/MapiCalendar/model-as-calendar-model' - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.mapi_calendar_dto is not None: - body_params = self.mapi_calendar_dto - - # 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/convert_mapi_calendar_model_to_file_request.py b/sdk/AsposeEmailCloudSdk/models/requests/convert_mapi_calendar_model_to_file_request.py deleted file mode 100644 index e6ca3e8..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/convert_mapi_calendar_model_to_file_request.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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_mapi_calendar_model_to_file_request import ConvertMapiCalendarModelToFileRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class ConvertMapiCalendarModelToFileRequest(BaseRequest): - """ - Request model for convert_mapi_calendar_model_to_file operation. - Initializes a new instance. - - :param destination_format (str) File format Enum, available values: Ics, Msg - :param mapi_calendar_dto (MapiCalendarDto) MAPI calendar model to convert - """ - - def __init__(self, destination_format: str, mapi_calendar_dto: MapiCalendarDto): - """ - Request model for convert_mapi_calendar_model_to_file operation. - Initializes a new instance. - - :param destination_format (str) File format Enum, available values: Ics, Msg - :param mapi_calendar_dto (MapiCalendarDto) MAPI calendar model to convert - """ - - BaseRequest.__init__(self) - self.destination_format = destination_format - self.mapi_calendar_dto = mapi_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 'destination_format' is set - if self.destination_format is None: - raise ValueError("Missing the required parameter `destination_format` when calling `convert_mapi_calendar_model_to_file`") - # verify the required parameter 'mapi_calendar_dto' is set - if self.mapi_calendar_dto is None: - raise ValueError("Missing the required parameter `mapi_calendar_dto` when calling `convert_mapi_calendar_model_to_file`") - - collection_formats = {} - path = '/email/MapiCalendar/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.mapi_calendar_dto is not None: - body_params = self.mapi_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_mapi_contact_model_to_contact_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/convert_mapi_contact_model_to_contact_model_request.py deleted file mode 100644 index 145ea5d..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/convert_mapi_contact_model_to_contact_model_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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_mapi_contact_model_to_contact_model_request import ConvertMapiContactModelToContactModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class ConvertMapiContactModelToContactModelRequest(BaseRequest): - """ - Request model for convert_mapi_contact_model_to_contact_model operation. - Initializes a new instance. - - :param mapi_contact_dto (MapiContactDto) MAPI contact model to convert - """ - - def __init__(self, mapi_contact_dto: MapiContactDto): - """ - Request model for convert_mapi_contact_model_to_contact_model operation. - Initializes a new instance. - - :param mapi_contact_dto (MapiContactDto) MAPI contact model to convert - """ - - BaseRequest.__init__(self) - self.mapi_contact_dto = mapi_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 'mapi_contact_dto' is set - if self.mapi_contact_dto is None: - raise ValueError("Missing the required parameter `mapi_contact_dto` when calling `convert_mapi_contact_model_to_contact_model`") - - collection_formats = {} - path = '/email/MapiContact/model-as-contact-model' - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.mapi_contact_dto is not None: - body_params = self.mapi_contact_dto - - # 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/convert_mapi_contact_model_to_file_request.py b/sdk/AsposeEmailCloudSdk/models/requests/convert_mapi_contact_model_to_file_request.py deleted file mode 100644 index ec9d601..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/convert_mapi_contact_model_to_file_request.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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_mapi_contact_model_to_file_request import ConvertMapiContactModelToFileRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class ConvertMapiContactModelToFileRequest(BaseRequest): - """ - Request model for convert_mapi_contact_model_to_file operation. - Initializes a new instance. - - :param destination_format (str) File format Enum, available values: VCard, WebDav, Msg - :param mapi_contact_dto (MapiContactDto) MAPI contact model to convert - """ - - def __init__(self, destination_format: str, mapi_contact_dto: MapiContactDto): - """ - Request model for convert_mapi_contact_model_to_file operation. - Initializes a new instance. - - :param destination_format (str) File format Enum, available values: VCard, WebDav, Msg - :param mapi_contact_dto (MapiContactDto) MAPI contact model to convert - """ - - BaseRequest.__init__(self) - self.destination_format = destination_format - self.mapi_contact_dto = mapi_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_mapi_contact_model_to_file`") - # verify the required parameter 'mapi_contact_dto' is set - if self.mapi_contact_dto is None: - raise ValueError("Missing the required parameter `mapi_contact_dto` when calling `convert_mapi_contact_model_to_file`") - - collection_formats = {} - path = '/email/MapiContact/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.mapi_contact_dto is not None: - body_params = self.mapi_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_mapi_message_model_to_email_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/convert_mapi_message_model_to_email_model_request.py deleted file mode 100644 index 10081c3..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/convert_mapi_message_model_to_email_model_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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_mapi_message_model_to_email_model_request import ConvertMapiMessageModelToEmailModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class ConvertMapiMessageModelToEmailModelRequest(BaseRequest): - """ - Request model for convert_mapi_message_model_to_email_model operation. - Initializes a new instance. - - :param mapi_message (MapiMessageDto) MAPI message model to convert - """ - - def __init__(self, mapi_message: MapiMessageDto): - """ - Request model for convert_mapi_message_model_to_email_model operation. - Initializes a new instance. - - :param mapi_message (MapiMessageDto) MAPI message model to convert - """ - - BaseRequest.__init__(self) - self.mapi_message = mapi_message - - 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 'mapi_message' is set - if self.mapi_message is None: - raise ValueError("Missing the required parameter `mapi_message` when calling `convert_mapi_message_model_to_email_model`") - - collection_formats = {} - path = '/email/MapiMessage/model-as-email-model' - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.mapi_message is not None: - body_params = self.mapi_message - - # 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/convert_mapi_message_model_to_file_request.py b/sdk/AsposeEmailCloudSdk/models/requests/convert_mapi_message_model_to_file_request.py deleted file mode 100644 index cdd3a07..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/convert_mapi_message_model_to_file_request.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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_mapi_message_model_to_file_request import ConvertMapiMessageModelToFileRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class ConvertMapiMessageModelToFileRequest(BaseRequest): - """ - Request model for convert_mapi_message_model_to_file operation. - Initializes a new instance. - - :param destination_format (str) File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef - :param mapi_message (MapiMessageDto) MAPI message model to convert - """ - - def __init__(self, destination_format: str, mapi_message: MapiMessageDto): - """ - Request model for convert_mapi_message_model_to_file operation. - Initializes a new instance. - - :param destination_format (str) File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef - :param mapi_message (MapiMessageDto) MAPI message model to convert - """ - - BaseRequest.__init__(self) - self.destination_format = destination_format - self.mapi_message = mapi_message - - 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_mapi_message_model_to_file`") - # verify the required parameter 'mapi_message' is set - if self.mapi_message is None: - raise ValueError("Missing the required parameter `mapi_message` when calling `convert_mapi_message_model_to_file`") - - collection_formats = {} - path = '/email/MapiMessage/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.mapi_message is not None: - body_params = self.mapi_message - - # 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/copy_file_request.py b/sdk/AsposeEmailCloudSdk/models/requests/copy_file_request.py deleted file mode 100644 index 78e381f..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/copy_file_request.py +++ /dev/null @@ -1,131 +0,0 @@ -# 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.copy_file_request import CopyFileRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class CopyFileRequest(BaseRequest): - """ - Request model for copy_file operation. - Initializes a new instance. - - :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): - """ - Request model for copy_file operation. - Initializes a new instance. - - :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) - self.src_path = src_path - self.dest_path = dest_path - self.src_storage_name = src_storage_name - self.dest_storage_name = dest_storage_name - self.version_id = version_id - - 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 'src_path' is set - if self.src_path is None: - raise ValueError("Missing the required parameter `src_path` when calling `copy_file`") - # verify the required parameter 'dest_path' is set - if self.dest_path is None: - raise ValueError("Missing the required parameter `dest_path` when calling `copy_file`") - - collection_formats = {} - path = '/email/storage/file/copy/{srcPath}' - path_params = {} - if self.src_path is not None: - path_params[self._lowercase_first_letter('srcPath')] = self.src_path - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('destPath') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.dest_path if self.dest_path is not None else '') - else: - if self.dest_path is not None: - query_params.append((self._lowercase_first_letter('destPath'), self.dest_path)) - path_parameter = '{' + self._lowercase_first_letter('srcStorageName') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.src_storage_name if self.src_storage_name is not None else '') - else: - if self.src_storage_name is not None: - query_params.append((self._lowercase_first_letter('srcStorageName'), self.src_storage_name)) - path_parameter = '{' + self._lowercase_first_letter('destStorageName') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.dest_storage_name if self.dest_storage_name is not None else '') - else: - if self.dest_storage_name is not None: - query_params.append((self._lowercase_first_letter('destStorageName'), self.dest_storage_name)) - path_parameter = '{' + self._lowercase_first_letter('versionId') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.version_id if self.version_id is not None else '') - else: - if self.version_id is not None: - query_params.append((self._lowercase_first_letter('versionId'), self.version_id)) - - 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/copy_folder_request.py b/sdk/AsposeEmailCloudSdk/models/requests/copy_folder_request.py deleted file mode 100644 index de1e166..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/copy_folder_request.py +++ /dev/null @@ -1,122 +0,0 @@ -# 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.copy_folder_request import CopyFolderRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class CopyFolderRequest(BaseRequest): - """ - Request model for copy_folder operation. - Initializes a new instance. - - :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): - """ - Request model for copy_folder operation. - Initializes a new instance. - - :param src_path (str) - :param dest_path (str) - :param src_storage_name (str) - :param dest_storage_name (str) - """ - - BaseRequest.__init__(self) - self.src_path = src_path - self.dest_path = dest_path - self.src_storage_name = src_storage_name - self.dest_storage_name = dest_storage_name - - 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 'src_path' is set - if self.src_path is None: - raise ValueError("Missing the required parameter `src_path` when calling `copy_folder`") - # verify the required parameter 'dest_path' is set - if self.dest_path is None: - raise ValueError("Missing the required parameter `dest_path` when calling `copy_folder`") - - collection_formats = {} - path = '/email/storage/folder/copy/{srcPath}' - path_params = {} - if self.src_path is not None: - path_params[self._lowercase_first_letter('srcPath')] = self.src_path - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('destPath') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.dest_path if self.dest_path is not None else '') - else: - if self.dest_path is not None: - query_params.append((self._lowercase_first_letter('destPath'), self.dest_path)) - path_parameter = '{' + self._lowercase_first_letter('srcStorageName') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.src_storage_name if self.src_storage_name is not None else '') - else: - if self.src_storage_name is not None: - query_params.append((self._lowercase_first_letter('srcStorageName'), self.src_storage_name)) - path_parameter = '{' + self._lowercase_first_letter('destStorageName') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.dest_storage_name if self.dest_storage_name is not None else '') - else: - if self.dest_storage_name is not None: - query_params.append((self._lowercase_first_letter('destStorageName'), self.dest_storage_name)) - - 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/create_calendar_request.py b/sdk/AsposeEmailCloudSdk/models/requests/create_calendar_request.py deleted file mode 100644 index 8c9a5b7..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/create_calendar_request.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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.create_calendar_request import CreateCalendarRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class CreateCalendarRequest(BaseRequest): - """ - Request model for create_calendar operation. - Initializes a new instance. - - :param name (str) Calendar file name in storage - :param request (HierarchicalObjectRequest) - """ - - def __init__(self, name: str, request: HierarchicalObjectRequest): - """ - Request model for create_calendar operation. - Initializes a new instance. - - :param name (str) Calendar file name in storage - :param request (HierarchicalObjectRequest) - """ - - BaseRequest.__init__(self) - self.name = name - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `create_calendar`") - # verify the required parameter 'request' is set - if self.request is None: - raise ValueError("Missing the required parameter `request` when calling `create_calendar`") - - collection_formats = {} - path = '/email/Calendar/{name}' - path_params = {} - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - 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/create_contact_request.py b/sdk/AsposeEmailCloudSdk/models/requests/create_contact_request.py deleted file mode 100644 index 95dbaf5..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/create_contact_request.py +++ /dev/null @@ -1,108 +0,0 @@ -# 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.create_contact_request import CreateContactRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class CreateContactRequest(BaseRequest): - """ - Request model for create_contact operation. - Initializes a new instance. - - :param format (str) Contact document format Enum, available values: VCard, WebDav, Msg - :param name (str) Contact document file name - :param request (HierarchicalObjectRequest) Create contact request - """ - - def __init__(self, format: str, name: str, request: HierarchicalObjectRequest): - """ - Request model for create_contact operation. - Initializes a new instance. - - :param format (str) Contact document format Enum, available values: VCard, WebDav, Msg - :param name (str) Contact document file name - :param request (HierarchicalObjectRequest) Create contact request - """ - - BaseRequest.__init__(self) - self.format = format - self.name = name - 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 'format' is set - if self.format is None: - raise ValueError("Missing the required parameter `format` when calling `create_contact`") - # verify the required parameter 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `create_contact`") - # verify the required parameter 'request' is set - if self.request is None: - raise ValueError("Missing the required parameter `request` when calling `create_contact`") - - collection_formats = {} - path = '/email/Contact/{format}/{name}' - path_params = {} - if self.format is not None: - path_params[self._lowercase_first_letter('format')] = self.format - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - 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/create_email_folder_request.py b/sdk/AsposeEmailCloudSdk/models/requests/create_email_folder_request.py deleted file mode 100644 index f872f41..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/create_email_folder_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.create_email_folder_request import CreateEmailFolderRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class CreateEmailFolderRequest(BaseRequest): - """ - Request model for create_email_folder operation. - Initializes a new instance. - - :param request (CreateFolderBaseRequest) Create folder request - """ - - def __init__(self, request: CreateFolderBaseRequest): - """ - Request model for create_email_folder operation. - Initializes a new instance. - - :param request (CreateFolderBaseRequest) Create folder request - """ - - 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 `create_email_folder`") - - collection_formats = {} - path = '/email/client/CreateFolder' - 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/create_email_request.py b/sdk/AsposeEmailCloudSdk/models/requests/create_email_request.py deleted file mode 100644 index 4974ab8..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/create_email_request.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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.create_email_request import CreateEmailRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class CreateEmailRequest(BaseRequest): - """ - Request model for create_email operation. - Initializes a new instance. - - :param file_name (str) Email document file name in storage - :param request (CreateEmailRequest) An email document and optional Storage info to specify where the file should be located - """ - - def __init__(self, file_name: str, request: CreateEmailRequest): - """ - Request model for create_email operation. - Initializes a new instance. - - :param file_name (str) Email document file name in storage - :param request (CreateEmailRequest) An email document and optional Storage info to specify where the file should be located - """ - - BaseRequest.__init__(self) - self.file_name = file_name - 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 'file_name' is set - if self.file_name is None: - raise ValueError("Missing the required parameter `file_name` when calling `create_email`") - # verify the required parameter 'request' is set - if self.request is None: - raise ValueError("Missing the required parameter `request` when calling `create_email`") - - collection_formats = {} - path = '/email/{fileName}' - path_params = {} - if self.file_name is not None: - path_params[self._lowercase_first_letter('fileName')] = self.file_name - - 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/create_folder_request.py b/sdk/AsposeEmailCloudSdk/models/requests/create_folder_request.py deleted file mode 100644 index dc3151f..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/create_folder_request.py +++ /dev/null @@ -1,101 +0,0 @@ -# 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.create_folder_request import CreateFolderRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class CreateFolderRequest(BaseRequest): - """ - Request model for create_folder operation. - Initializes a new instance. - - :param path (str) - :param storage_name (str) - """ - - def __init__(self, path: str, storage_name: str = None): - """ - Request model for create_folder operation. - Initializes a new instance. - - :param path (str) - :param storage_name (str) - """ - - BaseRequest.__init__(self) - self.path = path - self.storage_name = storage_name - - 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 'path' is set - if self.path is None: - raise ValueError("Missing the required parameter `path` when calling `create_folder`") - - collection_formats = {} - path = '/email/storage/folder/{path}' - path_params = {} - if self.path is not None: - path_params[self._lowercase_first_letter('path')] = self.path - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('storageName') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.storage_name if self.storage_name is not None else '') - else: - if self.storage_name is not None: - query_params.append((self._lowercase_first_letter('storageName'), self.storage_name)) - - 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/create_mapi_request.py b/sdk/AsposeEmailCloudSdk/models/requests/create_mapi_request.py deleted file mode 100644 index c652f65..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/create_mapi_request.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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.create_mapi_request import CreateMapiRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class CreateMapiRequest(BaseRequest): - """ - Request model for create_mapi operation. - Initializes a new instance. - - :param name (str) Document file name - :param request (HierarchicalObjectRequest) Create document request - """ - - def __init__(self, name: str, request: HierarchicalObjectRequest): - """ - Request model for create_mapi operation. - Initializes a new instance. - - :param name (str) Document file name - :param request (HierarchicalObjectRequest) Create document request - """ - - BaseRequest.__init__(self) - self.name = name - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `create_mapi`") - # verify the required parameter 'request' is set - if self.request is None: - raise ValueError("Missing the required parameter `request` when calling `create_mapi`") - - collection_formats = {} - path = '/email/Mapi/{name}' - path_params = {} - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - 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_calendar_property_request.py b/sdk/AsposeEmailCloudSdk/models/requests/delete_calendar_property_request.py deleted file mode 100644 index 50f4c53..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/delete_calendar_property_request.py +++ /dev/null @@ -1,116 +0,0 @@ -# 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_calendar_property_request import DeleteCalendarPropertyRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class DeleteCalendarPropertyRequest(BaseRequest): - """ - Request model for delete_calendar_property operation. - Initializes a new instance. - - :param name (str) iCalendar file name in storage - :param member_name (str) Indexed property name - :param index (str) Property index path - :param request (StorageFolderLocation) Storage detail to specify iCalendar file location - """ - - def __init__(self, name: str, member_name: str, index: str, request: StorageFolderLocation): - """ - Request model for delete_calendar_property operation. - Initializes a new instance. - - :param name (str) iCalendar file name in storage - :param member_name (str) Indexed property name - :param index (str) Property index path - :param request (StorageFolderLocation) Storage detail to specify iCalendar file location - """ - - BaseRequest.__init__(self) - self.name = name - self.member_name = member_name - self.index = index - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `delete_calendar_property`") - # verify the required parameter 'member_name' is set - if self.member_name is None: - raise ValueError("Missing the required parameter `member_name` when calling `delete_calendar_property`") - # verify the required parameter 'index' is set - if self.index is None: - raise ValueError("Missing the required parameter `index` when calling `delete_calendar_property`") - # verify the required parameter 'request' is set - if self.request is None: - raise ValueError("Missing the required parameter `request` when calling `delete_calendar_property`") - - collection_formats = {} - path = '/email/Calendar/{name}/properties/{memberName}/{index}' - path_params = {} - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - if self.member_name is not None: - path_params[self._lowercase_first_letter('memberName')] = self.member_name - if self.index is not None: - path_params[self._lowercase_first_letter('index')] = self.index - - 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_contact_property_request.py b/sdk/AsposeEmailCloudSdk/models/requests/delete_contact_property_request.py deleted file mode 100644 index 1f06eb7..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/delete_contact_property_request.py +++ /dev/null @@ -1,124 +0,0 @@ -# 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_contact_property_request import DeleteContactPropertyRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class DeleteContactPropertyRequest(BaseRequest): - """ - Request model for delete_contact_property operation. - Initializes a new instance. - - :param format (str) Contact document format Enum, available values: VCard, WebDav, Msg - :param name (str) Contact document file name - :param member_name (str) Indexed property name - :param index (int) Property index - :param folder (StorageFolderLocation) Calendar document location in storage information - """ - - def __init__(self, format: str, name: str, member_name: str, index: int, folder: StorageFolderLocation): - """ - Request model for delete_contact_property operation. - Initializes a new instance. - - :param format (str) Contact document format Enum, available values: VCard, WebDav, Msg - :param name (str) Contact document file name - :param member_name (str) Indexed property name - :param index (int) Property index - :param folder (StorageFolderLocation) Calendar document location in storage information - """ - - BaseRequest.__init__(self) - self.format = format - self.name = name - self.member_name = member_name - self.index = index - 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 'format' is set - if self.format is None: - raise ValueError("Missing the required parameter `format` when calling `delete_contact_property`") - # verify the required parameter 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `delete_contact_property`") - # verify the required parameter 'member_name' is set - if self.member_name is None: - raise ValueError("Missing the required parameter `member_name` when calling `delete_contact_property`") - # verify the required parameter 'index' is set - if self.index is None: - raise ValueError("Missing the required parameter `index` when calling `delete_contact_property`") - # verify the required parameter 'folder' is set - if self.folder is None: - raise ValueError("Missing the required parameter `folder` when calling `delete_contact_property`") - - collection_formats = {} - path = '/email/Contact/{format}/{name}/properties/{memberName}/{index}' - path_params = {} - if self.format is not None: - path_params[self._lowercase_first_letter('format')] = self.format - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - if self.member_name is not None: - path_params[self._lowercase_first_letter('memberName')] = self.member_name - if self.index is not None: - path_params[self._lowercase_first_letter('index')] = self.index - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.folder is not None: - body_params = self.folder - - # 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_email_folder_request.py b/sdk/AsposeEmailCloudSdk/models/requests/delete_email_folder_request.py deleted file mode 100644 index 76b9d94..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/delete_email_folder_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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_folder_request import DeleteEmailFolderRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class DeleteEmailFolderRequest(BaseRequest): - """ - Request model for delete_email_folder operation. - Initializes a new instance. - - :param request (DeleteFolderBaseRequest) Delete folder request - """ - - def __init__(self, request: DeleteFolderBaseRequest): - """ - Request model for delete_email_folder operation. - Initializes a new instance. - - :param request (DeleteFolderBaseRequest) Delete folder request - """ - - 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 `delete_email_folder`") - - collection_formats = {} - path = '/email/client/DeleteFolder' - 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/delete_email_message_request.py b/sdk/AsposeEmailCloudSdk/models/requests/delete_email_message_request.py deleted file mode 100644 index d3c5f59..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/delete_email_message_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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_message_request import DeleteEmailMessageRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class DeleteEmailMessageRequest(BaseRequest): - """ - Request model for delete_email_message operation. - Initializes a new instance. - - :param request (DeleteMessageBaseRequest) Delete message request - """ - - def __init__(self, request: DeleteMessageBaseRequest): - """ - Request model for delete_email_message operation. - Initializes a new instance. - - :param request (DeleteMessageBaseRequest) Delete message request - """ - - 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 `delete_email_message`") - - collection_formats = {} - path = '/email/client/DeleteMessage' - 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/delete_email_thread_request.py b/sdk/AsposeEmailCloudSdk/models/requests/delete_email_thread_request.py deleted file mode 100644 index a75691f..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/delete_email_thread_request.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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 deleted file mode 100644 index d772b92..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/delete_file_request.py +++ /dev/null @@ -1,110 +0,0 @@ -# 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_file_request import DeleteFileRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class DeleteFileRequest(BaseRequest): - """ - Request model for delete_file operation. - Initializes a new instance. - - :param path (str) - :param storage_name (str) - :param version_id (str) - """ - - 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) - :param storage_name (str) - :param version_id (str) - """ - - BaseRequest.__init__(self) - self.path = path - self.storage_name = storage_name - self.version_id = version_id - - 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 'path' is set - if self.path is None: - raise ValueError("Missing the required parameter `path` when calling `delete_file`") - - collection_formats = {} - path = '/email/storage/file/{path}' - path_params = {} - if self.path is not None: - path_params[self._lowercase_first_letter('path')] = self.path - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('storageName') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.storage_name if self.storage_name is not None else '') - else: - if self.storage_name is not None: - query_params.append((self._lowercase_first_letter('storageName'), self.storage_name)) - path_parameter = '{' + self._lowercase_first_letter('versionId') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.version_id if self.version_id is not None else '') - else: - if self.version_id is not None: - query_params.append((self._lowercase_first_letter('versionId'), self.version_id)) - - 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/delete_folder_request.py b/sdk/AsposeEmailCloudSdk/models/requests/delete_folder_request.py deleted file mode 100644 index 644e5dc..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/delete_folder_request.py +++ /dev/null @@ -1,110 +0,0 @@ -# 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_folder_request import DeleteFolderRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class DeleteFolderRequest(BaseRequest): - """ - Request model for delete_folder operation. - Initializes a new instance. - - :param path (str) - :param storage_name (str) - :param recursive (bool) - """ - - 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) - :param storage_name (str) - :param recursive (bool) - """ - - BaseRequest.__init__(self) - self.path = path - self.storage_name = storage_name - self.recursive = recursive - - 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 'path' is set - if self.path is None: - raise ValueError("Missing the required parameter `path` when calling `delete_folder`") - - collection_formats = {} - path = '/email/storage/folder/{path}' - path_params = {} - if self.path is not None: - path_params[self._lowercase_first_letter('path')] = self.path - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('storageName') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.storage_name if self.storage_name is not None else '') - else: - if self.storage_name is not None: - query_params.append((self._lowercase_first_letter('storageName'), self.storage_name)) - path_parameter = '{' + self._lowercase_first_letter('recursive') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.recursive if self.recursive is not None else '') - else: - if self.recursive is not None: - query_params.append((self._lowercase_first_letter('recursive'), self.recursive)) - - 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/delete_mapi_attachment_request.py b/sdk/AsposeEmailCloudSdk/models/requests/delete_mapi_attachment_request.py deleted file mode 100644 index b3a9d4c..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/delete_mapi_attachment_request.py +++ /dev/null @@ -1,108 +0,0 @@ -# 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_mapi_attachment_request import DeleteMapiAttachmentRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class DeleteMapiAttachmentRequest(BaseRequest): - """ - Request model for delete_mapi_attachment operation. - Initializes a new instance. - - :param name (str) Document file name - :param attachment (str) Attachment name or index - :param storage (StorageFolderLocation) Document file storage location info - """ - - def __init__(self, name: str, attachment: str, storage: StorageFolderLocation): - """ - Request model for delete_mapi_attachment operation. - Initializes a new instance. - - :param name (str) Document file name - :param attachment (str) Attachment name or index - :param storage (StorageFolderLocation) Document file storage location info - """ - - BaseRequest.__init__(self) - self.name = name - self.attachment = attachment - self.storage = storage - - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `delete_mapi_attachment`") - # verify the required parameter 'attachment' is set - if self.attachment is None: - raise ValueError("Missing the required parameter `attachment` when calling `delete_mapi_attachment`") - # verify the required parameter 'storage' is set - if self.storage is None: - raise ValueError("Missing the required parameter `storage` when calling `delete_mapi_attachment`") - - collection_formats = {} - path = '/email/Mapi/{name}/attachments/{attachment}' - path_params = {} - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - if self.attachment is not None: - path_params[self._lowercase_first_letter('attachment')] = self.attachment - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.storage is not None: - body_params = self.storage - - # 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_mapi_properties_request.py b/sdk/AsposeEmailCloudSdk/models/requests/delete_mapi_properties_request.py deleted file mode 100644 index 0666ba3..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/delete_mapi_properties_request.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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_mapi_properties_request import DeleteMapiPropertiesRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class DeleteMapiPropertiesRequest(BaseRequest): - """ - Request model for delete_mapi_properties operation. - Initializes a new instance. - - :param name (str) Document file name - :param request (HierarchicalObjectRequest) Properties that should be deleted - """ - - def __init__(self, name: str, request: HierarchicalObjectRequest): - """ - Request model for delete_mapi_properties operation. - Initializes a new instance. - - :param name (str) Document file name - :param request (HierarchicalObjectRequest) Properties that should be deleted - """ - - BaseRequest.__init__(self) - self.name = name - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `delete_mapi_properties`") - # verify the required parameter 'request' is set - if self.request is None: - raise ValueError("Missing the required parameter `request` when calling `delete_mapi_properties`") - - collection_formats = {} - path = '/email/Mapi/{name}/properties' - path_params = {} - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - 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/discover_email_config_oauth_request.py b/sdk/AsposeEmailCloudSdk/models/requests/discover_email_config_oauth_request.py deleted file mode 100644 index 9d25517..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/discover_email_config_oauth_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.discover_email_config_oauth_request import DiscoverEmailConfigOauthRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class DiscoverEmailConfigOauthRequest(BaseRequest): - """ - Request model for discover_email_config_oauth operation. - Initializes a new instance. - - :param rq (DiscoverEmailConfigOauth) Discover email configuration request. - """ - - def __init__(self, rq: DiscoverEmailConfigOauth): - """ - Request model for discover_email_config_oauth operation. - Initializes a new instance. - - :param rq (DiscoverEmailConfigOauth) Discover email configuration request. - """ - - BaseRequest.__init__(self) - self.rq = rq - - 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 'rq' is set - if self.rq is None: - raise ValueError("Missing the required parameter `rq` when calling `discover_email_config_oauth`") - - collection_formats = {} - path = '/email/config/discover/oauth' - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.rq is not None: - body_params = self.rq - - # 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/discover_email_config_password_request.py b/sdk/AsposeEmailCloudSdk/models/requests/discover_email_config_password_request.py deleted file mode 100644 index 20fdf57..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/discover_email_config_password_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.discover_email_config_password_request import DiscoverEmailConfigPasswordRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class DiscoverEmailConfigPasswordRequest(BaseRequest): - """ - Request model for discover_email_config_password operation. - Initializes a new instance. - - :param rq (DiscoverEmailConfigPassword) Discover email configuration request. - """ - - def __init__(self, rq: DiscoverEmailConfigPassword): - """ - Request model for discover_email_config_password operation. - Initializes a new instance. - - :param rq (DiscoverEmailConfigPassword) Discover email configuration request. - """ - - BaseRequest.__init__(self) - self.rq = rq - - 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 'rq' is set - if self.rq is None: - raise ValueError("Missing the required parameter `rq` when calling `discover_email_config_password`") - - collection_formats = {} - path = '/email/config/discover/password' - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.rq is not None: - body_params = self.rq - - # 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/discover_email_config_request.py b/sdk/AsposeEmailCloudSdk/models/requests/discover_email_config_request.py deleted file mode 100644 index 6f16289..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/discover_email_config_request.py +++ /dev/null @@ -1,105 +0,0 @@ -# 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.discover_email_config_request import DiscoverEmailConfigRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class DiscoverEmailConfigRequest(BaseRequest): - """ - Request model for discover_email_config operation. - Initializes a new instance. - - :param address (str) Email address - :param fast_processing (bool) Turns on fast processing. All discover systems will run in parallel. First discovered result will be returned - """ - - def __init__(self, address: str, fast_processing: bool = None): - """ - Request model for discover_email_config operation. - Initializes a new instance. - - :param address (str) Email address - :param fast_processing (bool) Turns on fast processing. All discover systems will run in parallel. First discovered result will be returned - """ - - BaseRequest.__init__(self) - self.address = address - self.fast_processing = fast_processing - - 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 'address' is set - if self.address is None: - raise ValueError("Missing the required parameter `address` when calling `discover_email_config`") - - collection_formats = {} - path = '/email/config/discover' - path_params = {} - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('address') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.address if self.address is not None else '') - else: - if self.address is not None: - query_params.append((self._lowercase_first_letter('address'), self.address)) - path_parameter = '{' + self._lowercase_first_letter('fastProcessing') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.fast_processing if self.fast_processing is not None else '') - else: - if self.fast_processing is not None: - query_params.append((self._lowercase_first_letter('fastProcessing'), self.fast_processing)) - - 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/download_file_request.py b/sdk/AsposeEmailCloudSdk/models/requests/download_file_request.py deleted file mode 100644 index d3a9783..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/download_file_request.py +++ /dev/null @@ -1,110 +0,0 @@ -# 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.download_file_request import DownloadFileRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class DownloadFileRequest(BaseRequest): - """ - Request model for download_file operation. - Initializes a new instance. - - :param path (str) - :param storage_name (str) - :param version_id (str) - """ - - 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) - :param storage_name (str) - :param version_id (str) - """ - - BaseRequest.__init__(self) - self.path = path - self.storage_name = storage_name - self.version_id = version_id - - 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 'path' is set - if self.path is None: - raise ValueError("Missing the required parameter `path` when calling `download_file`") - - collection_formats = {} - path = '/email/storage/file/{path}' - path_params = {} - if self.path is not None: - path_params[self._lowercase_first_letter('path')] = self.path - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('storageName') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.storage_name if self.storage_name is not None else '') - else: - if self.storage_name is not None: - query_params.append((self._lowercase_first_letter('storageName'), self.storage_name)) - path_parameter = '{' + self._lowercase_first_letter('versionId') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.version_id if self.version_id is not None else '') - else: - if self.version_id is not None: - query_params.append((self._lowercase_first_letter('versionId'), self.version_id)) - - 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/fetch_email_message_request.py b/sdk/AsposeEmailCloudSdk/models/requests/fetch_email_message_request.py deleted file mode 100644 index 88d6804..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/fetch_email_message_request.py +++ /dev/null @@ -1,144 +0,0 @@ -# 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_message_request import FetchEmailMessageRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class FetchEmailMessageRequest(BaseRequest): - """ - 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 (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, 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 (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 - """ - - BaseRequest.__init__(self) - 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 - - 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 'message_id' is set - if self.message_id is None: - raise ValueError("Missing the required parameter `message_id` when calling `fetch_email_message`") - # 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_message`") - - collection_formats = {} - path = '/email/client/Fetch' - path_params = {} - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('messageId') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.message_id if self.message_id is not None else '') - else: - if self.message_id is not None: - query_params.append((self._lowercase_first_letter('messageId'), self.message_id)) - 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/fetch_email_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/fetch_email_model_request.py deleted file mode 100644 index f42d422..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/fetch_email_model_request.py +++ /dev/null @@ -1,144 +0,0 @@ -# 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_model_request import FetchEmailModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class FetchEmailModelRequest(BaseRequest): - """ - 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 (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, 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 (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 - """ - - BaseRequest.__init__(self) - 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 - - 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 'message_id' is set - if self.message_id is None: - raise ValueError("Missing the required parameter `message_id` when calling `fetch_email_model`") - # 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_model`") - - collection_formats = {} - path = '/email/client/FetchModel' - path_params = {} - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('messageId') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.message_id if self.message_id is not None else '') - else: - if self.message_id is not None: - query_params.append((self._lowercase_first_letter('messageId'), self.message_id)) - 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/fetch_email_thread_messages_request.py b/sdk/AsposeEmailCloudSdk/models/requests/fetch_email_thread_messages_request.py deleted file mode 100644 index 21c7a71..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/fetch_email_thread_messages_request.py +++ /dev/null @@ -1,140 +0,0 @@ -# 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 deleted file mode 100644 index 9e0ad4f..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_as_file_request.py +++ /dev/null @@ -1,118 +0,0 @@ -# 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 deleted file mode 100644 index d86a402..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_attachment_request.py +++ /dev/null @@ -1,118 +0,0 @@ -# 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_attachment_request import GetCalendarAttachmentRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetCalendarAttachmentRequest(BaseRequest): - """ - Request model for get_calendar_attachment operation. - Initializes a new instance. - - :param name (str) iCalendar document file name - :param attachment (str) Attachment name or index - :param folder (str) Path to folder in storage - :param storage (str) Storage name - """ - - def __init__(self, name: str, attachment: str, folder: str = None, storage: str = None): - """ - Request model for get_calendar_attachment operation. - Initializes a new instance. - - :param name (str) iCalendar document file name - :param attachment (str) Attachment name or index - :param folder (str) Path to folder in storage - :param storage (str) Storage name - """ - - BaseRequest.__init__(self) - self.name = name - self.attachment = attachment - self.folder = folder - self.storage = storage - - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `get_calendar_attachment`") - # verify the required parameter 'attachment' is set - if self.attachment is None: - raise ValueError("Missing the required parameter `attachment` when calling `get_calendar_attachment`") - - collection_formats = {} - path = '/email/Calendar/{name}/attachments/{attachment}' - path_params = {} - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - if self.attachment is not None: - path_params[self._lowercase_first_letter('attachment')] = self.attachment - - 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('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)) - - 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_file_as_mapi_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_file_as_mapi_model_request.py deleted file mode 100644 index 94b25f5..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_file_as_mapi_model_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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_mapi_model_request import GetCalendarFileAsMapiModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetCalendarFileAsMapiModelRequest(BaseRequest): - """ - Request model for get_calendar_file_as_mapi_model operation. - Initializes a new instance. - - :param file (str) File to convert - """ - - def __init__(self, file: str): - """ - Request model for get_calendar_file_as_mapi_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_mapi_model`") - - collection_formats = {} - path = '/email/MapiCalendar/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_file_as_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_file_as_model_request.py deleted file mode 100644 index 2451aa9..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_file_as_model_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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 deleted file mode 100644 index 98babba..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_list_request.py +++ /dev/null @@ -1,129 +0,0 @@ -# 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_list_request import GetCalendarListRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetCalendarListRequest(BaseRequest): - """ - Request model for get_calendar_list operation. - Initializes a new instance. - - :param folder (str) Path to folder in storage - :param items_per_page (int) Count of items on page - :param page_number (int) Page number - :param storage (str) Storage name - """ - - def __init__(self, folder: str, items_per_page: int, page_number: int, storage: str = None): - """ - Request model for get_calendar_list operation. - Initializes a new instance. - - :param folder (str) Path to folder in storage - :param items_per_page (int) Count of items on page - :param page_number (int) Page number - :param storage (str) Storage name - """ - - BaseRequest.__init__(self) - self.folder = folder - self.items_per_page = items_per_page - self.page_number = page_number - self.storage = storage - - 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 `get_calendar_list`") - # verify the required parameter 'items_per_page' is set - if self.items_per_page is None: - raise ValueError("Missing the required parameter `items_per_page` when calling `get_calendar_list`") - # verify the required parameter 'page_number' is set - if self.page_number is None: - raise ValueError("Missing the required parameter `page_number` when calling `get_calendar_list`") - - collection_formats = {} - path = '/email/Calendar' - 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('itemsPerPage') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.items_per_page if self.items_per_page is not None else '') - else: - if self.items_per_page is not None: - query_params.append((self._lowercase_first_letter('itemsPerPage'), self.items_per_page)) - path_parameter = '{' + self._lowercase_first_letter('pageNumber') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.page_number if self.page_number is not None else '') - else: - if self.page_number is not None: - query_params.append((self._lowercase_first_letter('pageNumber'), self.page_number)) - 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)) - - 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_model_as_alternate_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_model_as_alternate_request.py deleted file mode 100644 index 24f9c51..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_model_as_alternate_request.py +++ /dev/null @@ -1,127 +0,0 @@ -# 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_model_as_alternate_request import GetCalendarModelAsAlternateRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetCalendarModelAsAlternateRequest(BaseRequest): - """ - Request model for get_calendar_model_as_alternate operation. - Initializes a new instance. - - :param name (str) iCalendar file name in storage - :param calendar_action (str) iCalendar method type Enum, available values: Create, Update, Cancel - :param sequence_id (str) The sequence id - :param folder (str) Path to folder in storage - :param storage (str) Storage name - """ - - def __init__(self, name: str, calendar_action: str, sequence_id: str = None, folder: str = None, storage: str = None): - """ - Request model for get_calendar_model_as_alternate operation. - Initializes a new instance. - - :param name (str) iCalendar file name in storage - :param calendar_action (str) iCalendar method type Enum, available values: Create, Update, Cancel - :param sequence_id (str) The sequence id - :param folder (str) Path to folder in storage - :param storage (str) Storage name - """ - - BaseRequest.__init__(self) - self.name = name - self.calendar_action = calendar_action - self.sequence_id = sequence_id - self.folder = folder - self.storage = storage - - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `get_calendar_model_as_alternate`") - # verify the required parameter 'calendar_action' is set - if self.calendar_action is None: - raise ValueError("Missing the required parameter `calendar_action` when calling `get_calendar_model_as_alternate`") - - collection_formats = {} - path = '/email/CalendarModel/{name}/as-alternate/{calendarAction}' - path_params = {} - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - if self.calendar_action is not None: - path_params[self._lowercase_first_letter('calendarAction')] = self.calendar_action - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('sequenceId') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.sequence_id if self.sequence_id is not None else '') - else: - if self.sequence_id is not None: - query_params.append((self._lowercase_first_letter('sequenceId'), self.sequence_id)) - 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)) - - 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_model_list_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_model_list_request.py deleted file mode 100644 index ef35adb..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_model_list_request.py +++ /dev/null @@ -1,123 +0,0 @@ -# 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_model_list_request import GetCalendarModelListRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetCalendarModelListRequest(BaseRequest): - """ - Request model for get_calendar_model_list operation. - Initializes a new instance. - - :param folder (str) Path to folder in storage - :param items_per_page (int) Count of items on page - :param page_number (int) Page number - :param storage (str) Storage name - """ - - def __init__(self, folder: str, items_per_page: int = None, page_number: int = None, storage: str = None): - """ - Request model for get_calendar_model_list operation. - Initializes a new instance. - - :param folder (str) Path to folder in storage - :param items_per_page (int) Count of items on page - :param page_number (int) Page number - :param storage (str) Storage name - """ - - BaseRequest.__init__(self) - self.folder = folder - self.items_per_page = items_per_page - self.page_number = page_number - self.storage = storage - - 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 `get_calendar_model_list`") - - collection_formats = {} - path = '/email/CalendarModel' - 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('itemsPerPage') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.items_per_page if self.items_per_page is not None else '') - else: - if self.items_per_page is not None: - query_params.append((self._lowercase_first_letter('itemsPerPage'), self.items_per_page)) - path_parameter = '{' + self._lowercase_first_letter('pageNumber') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.page_number if self.page_number is not None else '') - else: - if self.page_number is not None: - query_params.append((self._lowercase_first_letter('pageNumber'), self.page_number)) - 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)) - - 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_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_model_request.py deleted file mode 100644 index ba85bd1..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_model_request.py +++ /dev/null @@ -1,110 +0,0 @@ -# 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_model_request import GetCalendarModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetCalendarModelRequest(BaseRequest): - """ - Request model for get_calendar_model operation. - Initializes a new instance. - - :param name (str) iCalendar file name in storage - :param folder (str) Path to folder in storage - :param storage (str) Storage name - """ - - def __init__(self, name: str, folder: str = None, storage: str = None): - """ - Request model for get_calendar_model operation. - Initializes a new instance. - - :param name (str) iCalendar file name in storage - :param folder (str) Path to folder in storage - :param storage (str) Storage name - """ - - BaseRequest.__init__(self) - self.name = name - self.folder = folder - self.storage = storage - - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `get_calendar_model`") - - collection_formats = {} - path = '/email/CalendarModel/{name}' - path_params = {} - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - 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('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)) - - 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_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_request.py deleted file mode 100644 index 51548da..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_calendar_request.py +++ /dev/null @@ -1,110 +0,0 @@ -# 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_request import GetCalendarRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetCalendarRequest(BaseRequest): - """ - Request model for get_calendar operation. - Initializes a new instance. - - :param name (str) iCalendar file name in storage - :param folder (str) Path to folder in storage - :param storage (str) Storage name - """ - - def __init__(self, name: str, folder: str = None, storage: str = None): - """ - Request model for get_calendar operation. - Initializes a new instance. - - :param name (str) iCalendar file name in storage - :param folder (str) Path to folder in storage - :param storage (str) Storage name - """ - - BaseRequest.__init__(self) - self.name = name - self.folder = folder - self.storage = storage - - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `get_calendar`") - - collection_formats = {} - path = '/email/Calendar/{name}/properties' - path_params = {} - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - 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('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)) - - 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_contact_as_file_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_contact_as_file_request.py deleted file mode 100644 index 12f6d67..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_contact_as_file_request.py +++ /dev/null @@ -1,126 +0,0 @@ -# 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 deleted file mode 100644 index 048969a..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_contact_attachment_request.py +++ /dev/null @@ -1,126 +0,0 @@ -# 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_attachment_request import GetContactAttachmentRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetContactAttachmentRequest(BaseRequest): - """ - Request model for get_contact_attachment operation. - Initializes a new instance. - - :param format (str) Contact document format. Enum, available values: VCard, WebDav, Msg - :param name (str) Contact document file name - :param attachment (str) Attachment name or index - :param folder (str) Path to folder in storage - :param storage (str) Storage name - """ - - def __init__(self, format: str, name: str, attachment: str, folder: str = None, storage: str = None): - """ - Request model for get_contact_attachment operation. - Initializes a new instance. - - :param format (str) Contact document format. Enum, available values: VCard, WebDav, Msg - :param name (str) Contact document file name - :param attachment (str) Attachment name or index - :param folder (str) Path to folder in storage - :param storage (str) Storage name - """ - - BaseRequest.__init__(self) - self.format = format - self.name = name - self.attachment = attachment - self.folder = folder - self.storage = storage - - 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_attachment`") - # verify the required parameter 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `get_contact_attachment`") - # verify the required parameter 'attachment' is set - if self.attachment is None: - raise ValueError("Missing the required parameter `attachment` when calling `get_contact_attachment`") - - collection_formats = {} - path = '/email/Contact/{format}/{name}/attachments/{attachment}' - path_params = {} - if self.format is not None: - path_params[self._lowercase_first_letter('format')] = self.format - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - if self.attachment is not None: - path_params[self._lowercase_first_letter('attachment')] = self.attachment - - 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('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)) - - 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_file_as_mapi_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_contact_file_as_mapi_model_request.py deleted file mode 100644 index 8d5de2f..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_contact_file_as_mapi_model_request.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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_mapi_model_request import GetContactFileAsMapiModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetContactFileAsMapiModelRequest(BaseRequest): - """ - Request model for get_contact_file_as_mapi_model operation. - Initializes a new instance. - - :param file_format (str) File format Enum, available values: VCard, WebDav, Msg - :param file (str) File to convert - """ - - def __init__(self, file_format: str, file: str): - """ - Request model for get_contact_file_as_mapi_model operation. - Initializes a new instance. - - :param file_format (str) File format Enum, available values: VCard, WebDav, Msg - :param file (str) File to convert - """ - - BaseRequest.__init__(self) - self.file_format = file_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 'file_format' is set - if self.file_format is None: - raise ValueError("Missing the required parameter `file_format` when calling `get_contact_file_as_mapi_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_mapi_model`") - - collection_formats = {} - path = '/email/MapiContact/{fileFormat}/file-as-model' - path_params = {} - if self.file_format is not None: - path_params[self._lowercase_first_letter('fileFormat')] = self.file_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_file_as_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_contact_file_as_model_request.py deleted file mode 100644 index b4003ad..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_contact_file_as_model_request.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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 deleted file mode 100644 index fcb466a..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_contact_list_request.py +++ /dev/null @@ -1,128 +0,0 @@ -# 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_list_request import GetContactListRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetContactListRequest(BaseRequest): - """ - Request model for get_contact_list operation. - Initializes a new instance. - - :param format (str) Contact document format. Enum, available values: VCard, WebDav, Msg - :param folder (str) Path to folder in storage - :param storage (str) Storage name - :param items_per_page (int) Count of items on page - :param page_number (int) Page number - """ - - def __init__(self, format: str, folder: str = None, storage: str = None, items_per_page: int = None, page_number: int = None): - """ - Request model for get_contact_list operation. - Initializes a new instance. - - :param format (str) Contact document format. Enum, available values: VCard, WebDav, Msg - :param folder (str) Path to folder in storage - :param storage (str) Storage name - :param items_per_page (int) Count of items on page - :param page_number (int) Page number - """ - - BaseRequest.__init__(self) - self.format = format - self.folder = folder - self.storage = storage - self.items_per_page = items_per_page - self.page_number = page_number - - 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_list`") - - collection_formats = {} - path = '/email/Contact/{format}' - path_params = {} - if self.format is not None: - path_params[self._lowercase_first_letter('format')] = self.format - - 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('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('itemsPerPage') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.items_per_page if self.items_per_page is not None else '') - else: - if self.items_per_page is not None: - query_params.append((self._lowercase_first_letter('itemsPerPage'), self.items_per_page)) - path_parameter = '{' + self._lowercase_first_letter('pageNumber') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.page_number if self.page_number is not None else '') - else: - if self.page_number is not None: - query_params.append((self._lowercase_first_letter('pageNumber'), self.page_number)) - - 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_contact_model_list_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_contact_model_list_request.py deleted file mode 100644 index fec1138..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_contact_model_list_request.py +++ /dev/null @@ -1,128 +0,0 @@ -# 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_model_list_request import GetContactModelListRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetContactModelListRequest(BaseRequest): - """ - Request model for get_contact_model_list operation. - Initializes a new instance. - - :param format (str) Contact document format. Enum, available values: VCard, WebDav, Msg - :param folder (str) Path to folder in storage. - :param storage (str) Storage name. - :param items_per_page (int) Count of items on page. - :param page_number (int) Page number. - """ - - def __init__(self, format: str, folder: str = None, storage: str = None, items_per_page: int = None, page_number: int = None): - """ - Request model for get_contact_model_list operation. - Initializes a new instance. - - :param format (str) Contact document format. Enum, available values: VCard, WebDav, Msg - :param folder (str) Path to folder in storage. - :param storage (str) Storage name. - :param items_per_page (int) Count of items on page. - :param page_number (int) Page number. - """ - - BaseRequest.__init__(self) - self.format = format - self.folder = folder - self.storage = storage - self.items_per_page = items_per_page - self.page_number = page_number - - 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_model_list`") - - collection_formats = {} - path = '/email/ContactModel/{format}' - path_params = {} - if self.format is not None: - path_params[self._lowercase_first_letter('format')] = self.format - - 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('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('itemsPerPage') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.items_per_page if self.items_per_page is not None else '') - else: - if self.items_per_page is not None: - query_params.append((self._lowercase_first_letter('itemsPerPage'), self.items_per_page)) - path_parameter = '{' + self._lowercase_first_letter('pageNumber') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.page_number if self.page_number is not None else '') - else: - if self.page_number is not None: - query_params.append((self._lowercase_first_letter('pageNumber'), self.page_number)) - - 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_contact_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_contact_model_request.py deleted file mode 100644 index a5a07df..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_contact_model_request.py +++ /dev/null @@ -1,118 +0,0 @@ -# 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_model_request import GetContactModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetContactModelRequest(BaseRequest): - """ - Request model for get_contact_model operation. - Initializes a new instance. - - :param format (str) Contact document format. Enum, available values: VCard, WebDav, Msg - :param name (str) Contact document file name. - :param folder (str) Path to folder in storage. - :param storage (str) Storage name. - """ - - def __init__(self, format: str, name: str, folder: str = None, storage: str = None): - """ - Request model for get_contact_model operation. - Initializes a new instance. - - :param format (str) Contact document format. Enum, available values: VCard, WebDav, Msg - :param name (str) Contact document file name. - :param folder (str) Path to folder in storage. - :param storage (str) Storage name. - """ - - BaseRequest.__init__(self) - self.format = format - self.name = name - self.folder = folder - self.storage = storage - - 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_model`") - # verify the required parameter 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `get_contact_model`") - - collection_formats = {} - path = '/email/ContactModel/{format}/{name}' - path_params = {} - if self.format is not None: - path_params[self._lowercase_first_letter('format')] = self.format - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - 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('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)) - - 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_contact_properties_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_contact_properties_request.py deleted file mode 100644 index b98c580..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_contact_properties_request.py +++ /dev/null @@ -1,118 +0,0 @@ -# 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_properties_request import GetContactPropertiesRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetContactPropertiesRequest(BaseRequest): - """ - Request model for get_contact_properties operation. - Initializes a new instance. - - :param format (str) Contact document format. Enum, available values: VCard, WebDav, Msg - :param name (str) Contact document file name - :param folder (str) Path to folder in storage - :param storage (str) Storage name - """ - - def __init__(self, format: str, name: str, folder: str = None, storage: str = None): - """ - Request model for get_contact_properties operation. - Initializes a new instance. - - :param format (str) Contact document format. Enum, available values: VCard, WebDav, Msg - :param name (str) Contact document file name - :param folder (str) Path to folder in storage - :param storage (str) Storage name - """ - - BaseRequest.__init__(self) - self.format = format - self.name = name - self.folder = folder - self.storage = storage - - 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_properties`") - # verify the required parameter 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `get_contact_properties`") - - collection_formats = {} - path = '/email/Contact/{format}/{name}/properties' - path_params = {} - if self.format is not None: - path_params[self._lowercase_first_letter('format')] = self.format - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - 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('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)) - - 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_email_as_file_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_email_as_file_request.py deleted file mode 100644 index 86bfc5c..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_email_as_file_request.py +++ /dev/null @@ -1,118 +0,0 @@ -# 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_as_file_request import GetEmailAsFileRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetEmailAsFileRequest(BaseRequest): - """ - Request model for get_email_as_file operation. - Initializes a new instance. - - :param file_name (str) Email document file name - :param format (str) File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef - :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_email_as_file operation. - Initializes a new instance. - - :param file_name (str) Email document file name - :param format (str) File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef - :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_email_as_file`") - # verify the required parameter 'format' is set - if self.format is None: - raise ValueError("Missing the required parameter `format` when calling `get_email_as_file`") - - collection_formats = {} - path = '/email/{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_email_attachment_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_email_attachment_request.py deleted file mode 100644 index 699bb4a..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_email_attachment_request.py +++ /dev/null @@ -1,118 +0,0 @@ -# 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_attachment_request import GetEmailAttachmentRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetEmailAttachmentRequest(BaseRequest): - """ - Request model for get_email_attachment operation. - Initializes a new instance. - - :param attachment (str) Attachment name - :param file_name (str) Email document file name - :param storage (str) Storage name - :param folder (str) Path to folder in storage - """ - - def __init__(self, attachment: str, file_name: str, storage: str = None, folder: str = None): - """ - Request model for get_email_attachment operation. - Initializes a new instance. - - :param attachment (str) Attachment name - :param file_name (str) Email document file name - :param storage (str) Storage name - :param folder (str) Path to folder in storage - """ - - BaseRequest.__init__(self) - self.attachment = attachment - self.file_name = file_name - 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 'attachment' is set - if self.attachment is None: - raise ValueError("Missing the required parameter `attachment` when calling `get_email_attachment`") - # 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_email_attachment`") - - collection_formats = {} - path = '/email/{fileName}/attachments/{attachment}' - path_params = {} - if self.attachment is not None: - path_params[self._lowercase_first_letter('attachment')] = self.attachment - if self.file_name is not None: - path_params[self._lowercase_first_letter('fileName')] = self.file_name - - 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_email_client_account_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_email_client_account_request.py deleted file mode 100644 index a963921..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_email_client_account_request.py +++ /dev/null @@ -1,120 +0,0 @@ -# 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_client_account_request import GetEmailClientAccountRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetEmailClientAccountRequest(BaseRequest): - """ - Request model for get_email_client_account operation. - Initializes a new instance. - - :param name (str) File name on storage - :param folder (str) Folder on storage - :param storage (str) Storage name - """ - - def __init__(self, name: str, folder: str, storage: str): - """ - Request model for get_email_client_account operation. - Initializes a new instance. - - :param name (str) File name on storage - :param folder (str) Folder on storage - :param storage (str) Storage name - """ - - BaseRequest.__init__(self) - self.name = name - self.folder = folder - self.storage = storage - - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `get_email_client_account`") - # verify the required parameter 'folder' is set - if self.folder is None: - raise ValueError("Missing the required parameter `folder` when calling `get_email_client_account`") - # verify the required parameter 'storage' is set - if self.storage is None: - raise ValueError("Missing the required parameter `storage` when calling `get_email_client_account`") - - collection_formats = {} - path = '/email/client/email-client-account' - path_params = {} - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('name') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.name if self.name is not None else '') - else: - if self.name is not None: - query_params.append((self._lowercase_first_letter('name'), self.name)) - 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)) - - 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_email_client_multi_account_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_email_client_multi_account_request.py deleted file mode 100644 index 2f2255a..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_email_client_multi_account_request.py +++ /dev/null @@ -1,120 +0,0 @@ -# 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_client_multi_account_request import GetEmailClientMultiAccountRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetEmailClientMultiAccountRequest(BaseRequest): - """ - Request model for get_email_client_multi_account operation. - Initializes a new instance. - - :param name (str) File name on storage - :param folder (str) Folder on storage - :param storage (str) Storage name - """ - - def __init__(self, name: str, folder: str, storage: str): - """ - Request model for get_email_client_multi_account operation. - Initializes a new instance. - - :param name (str) File name on storage - :param folder (str) Folder on storage - :param storage (str) Storage name - """ - - BaseRequest.__init__(self) - self.name = name - self.folder = folder - self.storage = storage - - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `get_email_client_multi_account`") - # verify the required parameter 'folder' is set - if self.folder is None: - raise ValueError("Missing the required parameter `folder` when calling `get_email_client_multi_account`") - # verify the required parameter 'storage' is set - if self.storage is None: - raise ValueError("Missing the required parameter `storage` when calling `get_email_client_multi_account`") - - collection_formats = {} - path = '/email/client/multi-account' - path_params = {} - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('name') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.name if self.name is not None else '') - else: - if self.name is not None: - query_params.append((self._lowercase_first_letter('name'), self.name)) - 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)) - - 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_email_file_as_mapi_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_email_file_as_mapi_model_request.py deleted file mode 100644 index ea1662a..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_email_file_as_mapi_model_request.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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_mapi_model_request import GetEmailFileAsMapiModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetEmailFileAsMapiModelRequest(BaseRequest): - """ - Request model for get_email_file_as_mapi_model operation. - Initializes a new instance. - - :param file_format (str) File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef - :param file (str) File to convert - """ - - def __init__(self, file_format: str, file: str): - """ - Request model for get_email_file_as_mapi_model operation. - Initializes a new instance. - - :param file_format (str) File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef - :param file (str) File to convert - """ - - BaseRequest.__init__(self) - self.file_format = file_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 'file_format' is set - if self.file_format is None: - raise ValueError("Missing the required parameter `file_format` when calling `get_email_file_as_mapi_model`") - # 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_mapi_model`") - - collection_formats = {} - path = '/email/MapiMessage/{fileFormat}/file-as-model' - path_params = {} - if self.file_format is not None: - path_params[self._lowercase_first_letter('fileFormat')] = self.file_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_email_file_as_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_email_file_as_model_request.py deleted file mode 100644 index c0f993e..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_email_file_as_model_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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 deleted file mode 100644 index 2f7c964..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_email_model_list_request.py +++ /dev/null @@ -1,128 +0,0 @@ -# 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_model_list_request import GetEmailModelListRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetEmailModelListRequest(BaseRequest): - """ - Request model for get_email_model_list operation. - Initializes a new instance. - - :param format (str) Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef - :param folder (str) Path to folder in storage. - :param storage (str) Storage name. - :param items_per_page (int) Count of items on page. - :param page_number (int) Page number. - """ - - def __init__(self, format: str, folder: str = None, storage: str = None, items_per_page: int = None, page_number: int = None): - """ - Request model for get_email_model_list operation. - Initializes a new instance. - - :param format (str) Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef - :param folder (str) Path to folder in storage. - :param storage (str) Storage name. - :param items_per_page (int) Count of items on page. - :param page_number (int) Page number. - """ - - BaseRequest.__init__(self) - self.format = format - self.folder = folder - self.storage = storage - self.items_per_page = items_per_page - self.page_number = page_number - - 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_email_model_list`") - - collection_formats = {} - path = '/email/model/{format}' - path_params = {} - if self.format is not None: - path_params[self._lowercase_first_letter('format')] = self.format - - 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('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('itemsPerPage') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.items_per_page if self.items_per_page is not None else '') - else: - if self.items_per_page is not None: - query_params.append((self._lowercase_first_letter('itemsPerPage'), self.items_per_page)) - path_parameter = '{' + self._lowercase_first_letter('pageNumber') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.page_number if self.page_number is not None else '') - else: - if self.page_number is not None: - query_params.append((self._lowercase_first_letter('pageNumber'), self.page_number)) - - 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_email_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_email_model_request.py deleted file mode 100644 index 19c9148..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_email_model_request.py +++ /dev/null @@ -1,118 +0,0 @@ -# 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_model_request import GetEmailModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetEmailModelRequest(BaseRequest): - """ - Request model for get_email_model operation. - Initializes a new instance. - - :param format (str) Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef - :param name (str) Email document file name. - :param folder (str) Path to folder in storage. - :param storage (str) Storage name. - """ - - def __init__(self, format: str, name: str, folder: str = None, storage: str = None): - """ - Request model for get_email_model operation. - Initializes a new instance. - - :param format (str) Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef - :param name (str) Email document file name. - :param folder (str) Path to folder in storage. - :param storage (str) Storage name. - """ - - BaseRequest.__init__(self) - self.format = format - self.name = name - self.folder = folder - self.storage = storage - - 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_email_model`") - # verify the required parameter 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `get_email_model`") - - collection_formats = {} - path = '/email/model/{format}/{name}' - path_params = {} - if self.format is not None: - path_params[self._lowercase_first_letter('format')] = self.format - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - 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('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)) - - 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_email_property_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_email_property_request.py deleted file mode 100644 index 280cf6f..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_email_property_request.py +++ /dev/null @@ -1,118 +0,0 @@ -# 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_property_request import GetEmailPropertyRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetEmailPropertyRequest(BaseRequest): - """ - Request model for get_email_property operation. - Initializes a new instance. - - :param property_name (str) A property name - :param file_name (str) Email document file name - :param storage (str) Storage name - :param folder (str) Path to folder in storage - """ - - def __init__(self, property_name: str, file_name: str, storage: str = None, folder: str = None): - """ - Request model for get_email_property operation. - Initializes a new instance. - - :param property_name (str) A property name - :param file_name (str) Email document file name - :param storage (str) Storage name - :param folder (str) Path to folder in storage - """ - - BaseRequest.__init__(self) - self.property_name = property_name - self.file_name = file_name - 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 'property_name' is set - if self.property_name is None: - raise ValueError("Missing the required parameter `property_name` when calling `get_email_property`") - # 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_email_property`") - - collection_formats = {} - path = '/email/{fileName}/properties/{propertyName}' - path_params = {} - if self.property_name is not None: - path_params[self._lowercase_first_letter('propertyName')] = self.property_name - if self.file_name is not None: - path_params[self._lowercase_first_letter('fileName')] = self.file_name - - 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( - ['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_email_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_email_request.py deleted file mode 100644 index 0fb60b1..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_email_request.py +++ /dev/null @@ -1,110 +0,0 @@ -# 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_request import GetEmailRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetEmailRequest(BaseRequest): - """ - Request model for get_email operation. - Initializes a new instance. - - :param file_name (str) Email document file name in storage - :param storage (str) Storage name - :param folder (str) Path to folder in storage - """ - - def __init__(self, file_name: str, storage: str = None, folder: str = None): - """ - Request model for get_email operation. - Initializes a new instance. - - :param file_name (str) Email document file name in storage - :param storage (str) Storage name - :param folder (str) Path to folder in storage - """ - - BaseRequest.__init__(self) - self.file_name = file_name - 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_email`") - - collection_formats = {} - path = '/email/{fileName}' - path_params = {} - if self.file_name is not None: - path_params[self._lowercase_first_letter('fileName')] = self.file_name - - 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( - ['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_file_versions_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_file_versions_request.py deleted file mode 100644 index 138c45a..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_file_versions_request.py +++ /dev/null @@ -1,101 +0,0 @@ -# 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_file_versions_request import GetFileVersionsRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetFileVersionsRequest(BaseRequest): - """ - Request model for get_file_versions operation. - Initializes a new instance. - - :param path (str) - :param storage_name (str) - """ - - def __init__(self, path: str, storage_name: str = None): - """ - Request model for get_file_versions operation. - Initializes a new instance. - - :param path (str) - :param storage_name (str) - """ - - BaseRequest.__init__(self) - self.path = path - self.storage_name = storage_name - - 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 'path' is set - if self.path is None: - raise ValueError("Missing the required parameter `path` when calling `get_file_versions`") - - collection_formats = {} - path = '/email/storage/version/{path}' - path_params = {} - if self.path is not None: - path_params[self._lowercase_first_letter('path')] = self.path - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('storageName') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.storage_name if self.storage_name is not None else '') - else: - if self.storage_name is not None: - query_params.append((self._lowercase_first_letter('storageName'), self.storage_name)) - - 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_files_list_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_files_list_request.py deleted file mode 100644 index d2eb5c6..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_files_list_request.py +++ /dev/null @@ -1,101 +0,0 @@ -# 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_files_list_request import GetFilesListRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetFilesListRequest(BaseRequest): - """ - Request model for get_files_list operation. - Initializes a new instance. - - :param path (str) - :param storage_name (str) - """ - - def __init__(self, path: str, storage_name: str = None): - """ - Request model for get_files_list operation. - Initializes a new instance. - - :param path (str) - :param storage_name (str) - """ - - BaseRequest.__init__(self) - self.path = path - self.storage_name = storage_name - - 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 'path' is set - if self.path is None: - raise ValueError("Missing the required parameter `path` when calling `get_files_list`") - - collection_formats = {} - path = '/email/storage/folder/{path}' - path_params = {} - if self.path is not None: - path_params[self._lowercase_first_letter('path')] = self.path - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('storageName') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.storage_name if self.storage_name is not None else '') - else: - if self.storage_name is not None: - query_params.append((self._lowercase_first_letter('storageName'), self.storage_name)) - - 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_mapi_attachment_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_attachment_request.py deleted file mode 100644 index c343805..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_attachment_request.py +++ /dev/null @@ -1,118 +0,0 @@ -# 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_mapi_attachment_request import GetMapiAttachmentRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetMapiAttachmentRequest(BaseRequest): - """ - Request model for get_mapi_attachment operation. - Initializes a new instance. - - :param name (str) Document file name - :param attachment (str) Attachment name or index - :param folder (str) Path to folder in storage - :param storage (str) Storage name - """ - - def __init__(self, name: str, attachment: str, folder: str = None, storage: str = None): - """ - Request model for get_mapi_attachment operation. - Initializes a new instance. - - :param name (str) Document file name - :param attachment (str) Attachment name or index - :param folder (str) Path to folder in storage - :param storage (str) Storage name - """ - - BaseRequest.__init__(self) - self.name = name - self.attachment = attachment - self.folder = folder - self.storage = storage - - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `get_mapi_attachment`") - # verify the required parameter 'attachment' is set - if self.attachment is None: - raise ValueError("Missing the required parameter `attachment` when calling `get_mapi_attachment`") - - collection_formats = {} - path = '/email/Mapi/{name}/attachments/{attachment}' - path_params = {} - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - if self.attachment is not None: - path_params[self._lowercase_first_letter('attachment')] = self.attachment - - 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('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)) - - 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_mapi_attachments_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_attachments_request.py deleted file mode 100644 index 1d72861..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_attachments_request.py +++ /dev/null @@ -1,110 +0,0 @@ -# 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_mapi_attachments_request import GetMapiAttachmentsRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetMapiAttachmentsRequest(BaseRequest): - """ - Request model for get_mapi_attachments operation. - Initializes a new instance. - - :param name (str) Document file name - :param folder (str) Path to folder in storage - :param storage (str) Storage name - """ - - def __init__(self, name: str, folder: str = None, storage: str = None): - """ - Request model for get_mapi_attachments operation. - Initializes a new instance. - - :param name (str) Document file name - :param folder (str) Path to folder in storage - :param storage (str) Storage name - """ - - BaseRequest.__init__(self) - self.name = name - self.folder = folder - self.storage = storage - - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `get_mapi_attachments`") - - collection_formats = {} - path = '/email/Mapi/{name}/attachments' - path_params = {} - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - 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('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)) - - 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_mapi_calendar_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_calendar_model_request.py deleted file mode 100644 index ce45afa..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_calendar_model_request.py +++ /dev/null @@ -1,110 +0,0 @@ -# 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_mapi_calendar_model_request import GetMapiCalendarModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetMapiCalendarModelRequest(BaseRequest): - """ - Request model for get_mapi_calendar_model operation. - Initializes a new instance. - - :param name (str) Calendar file name in storage - :param folder (str) Path to folder in storage - :param storage (str) Storage name - """ - - def __init__(self, name: str, folder: str = None, storage: str = None): - """ - Request model for get_mapi_calendar_model operation. - Initializes a new instance. - - :param name (str) Calendar file name in storage - :param folder (str) Path to folder in storage - :param storage (str) Storage name - """ - - BaseRequest.__init__(self) - self.name = name - self.folder = folder - self.storage = storage - - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `get_mapi_calendar_model`") - - collection_formats = {} - path = '/email/MapiCalendar/{name}' - path_params = {} - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - 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('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)) - - 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_mapi_contact_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_contact_model_request.py deleted file mode 100644 index 9cffd49..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_contact_model_request.py +++ /dev/null @@ -1,118 +0,0 @@ -# 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_mapi_contact_model_request import GetMapiContactModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetMapiContactModelRequest(BaseRequest): - """ - Request model for get_mapi_contact_model operation. - Initializes a new instance. - - :param format (str) Contact document format. Enum, available values: VCard, WebDav, Msg - :param name (str) Contact document file name. - :param folder (str) Path to folder in storage. - :param storage (str) Storage name. - """ - - def __init__(self, format: str, name: str, folder: str = None, storage: str = None): - """ - Request model for get_mapi_contact_model operation. - Initializes a new instance. - - :param format (str) Contact document format. Enum, available values: VCard, WebDav, Msg - :param name (str) Contact document file name. - :param folder (str) Path to folder in storage. - :param storage (str) Storage name. - """ - - BaseRequest.__init__(self) - self.format = format - self.name = name - self.folder = folder - self.storage = storage - - 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_mapi_contact_model`") - # verify the required parameter 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `get_mapi_contact_model`") - - collection_formats = {} - path = '/email/MapiContact/{format}/{name}' - path_params = {} - if self.format is not None: - path_params[self._lowercase_first_letter('format')] = self.format - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - 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('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)) - - 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_mapi_list_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_list_request.py deleted file mode 100644 index 263c665..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_list_request.py +++ /dev/null @@ -1,120 +0,0 @@ -# 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_mapi_list_request import GetMapiListRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetMapiListRequest(BaseRequest): - """ - Request model for get_mapi_list operation. - Initializes a new instance. - - :param folder (str) Path to folder in storage - :param storage (str) Storage name - :param items_per_page (int) Count of items on page - :param page_number (int) Page number - """ - - def __init__(self, folder: str = None, storage: str = None, items_per_page: int = None, page_number: int = None): - """ - Request model for get_mapi_list operation. - Initializes a new instance. - - :param folder (str) Path to folder in storage - :param storage (str) Storage name - :param items_per_page (int) Count of items on page - :param page_number (int) Page number - """ - - BaseRequest.__init__(self) - self.folder = folder - self.storage = storage - self.items_per_page = items_per_page - self.page_number = page_number - - 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 - """ - - collection_formats = {} - path = '/email/Mapi' - 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('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('itemsPerPage') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.items_per_page if self.items_per_page is not None else '') - else: - if self.items_per_page is not None: - query_params.append((self._lowercase_first_letter('itemsPerPage'), self.items_per_page)) - path_parameter = '{' + self._lowercase_first_letter('pageNumber') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.page_number if self.page_number is not None else '') - else: - if self.page_number is not None: - query_params.append((self._lowercase_first_letter('pageNumber'), self.page_number)) - - 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_mapi_message_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_message_model_request.py deleted file mode 100644 index 4e911c1..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_message_model_request.py +++ /dev/null @@ -1,118 +0,0 @@ -# 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_mapi_message_model_request import GetMapiMessageModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetMapiMessageModelRequest(BaseRequest): - """ - Request model for get_mapi_message_model operation. - Initializes a new instance. - - :param format (str) Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef - :param name (str) Email document file name. - :param folder (str) Path to folder in storage. - :param storage (str) Storage name. - """ - - def __init__(self, format: str, name: str, folder: str = None, storage: str = None): - """ - Request model for get_mapi_message_model operation. - Initializes a new instance. - - :param format (str) Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef - :param name (str) Email document file name. - :param folder (str) Path to folder in storage. - :param storage (str) Storage name. - """ - - BaseRequest.__init__(self) - self.format = format - self.name = name - self.folder = folder - self.storage = storage - - 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_mapi_message_model`") - # verify the required parameter 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `get_mapi_message_model`") - - collection_formats = {} - path = '/email/MapiMessage/{format}/{name}' - path_params = {} - if self.format is not None: - path_params[self._lowercase_first_letter('format')] = self.format - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - 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('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)) - - 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_mapi_properties_request.py b/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_properties_request.py deleted file mode 100644 index 2469ada..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/get_mapi_properties_request.py +++ /dev/null @@ -1,110 +0,0 @@ -# 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_mapi_properties_request import GetMapiPropertiesRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class GetMapiPropertiesRequest(BaseRequest): - """ - Request model for get_mapi_properties operation. - Initializes a new instance. - - :param name (str) Document file name - :param folder (str) Path to folder in storage - :param storage (str) Storage name - """ - - def __init__(self, name: str, folder: str = None, storage: str = None): - """ - Request model for get_mapi_properties operation. - Initializes a new instance. - - :param name (str) Document file name - :param folder (str) Path to folder in storage - :param storage (str) Storage name - """ - - BaseRequest.__init__(self) - self.name = name - self.folder = folder - self.storage = storage - - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `get_mapi_properties`") - - collection_formats = {} - path = '/email/Mapi/{name}/properties' - path_params = {} - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - 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('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)) - - 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/is_email_address_disposable_request.py b/sdk/AsposeEmailCloudSdk/models/requests/is_email_address_disposable_request.py deleted file mode 100644 index b697ccd..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/is_email_address_disposable_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.is_email_address_disposable_request import IsEmailAddressDisposableRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class IsEmailAddressDisposableRequest(BaseRequest): - """ - Request model for is_email_address_disposable operation. - Initializes a new instance. - - :param address (str) An email address to check - """ - - def __init__(self, address: str): - """ - Request model for is_email_address_disposable operation. - Initializes a new instance. - - :param address (str) An email address to check - """ - - BaseRequest.__init__(self) - self.address = address - - 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 'address' is set - if self.address is None: - raise ValueError("Missing the required parameter `address` when calling `is_email_address_disposable`") - - collection_formats = {} - path = '/email/disposable/isDisposable/{address}' - path_params = {} - if self.address is not None: - path_params[self._lowercase_first_letter('address')] = self.address - - query_params = [] - - 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/list_email_folders_request.py b/sdk/AsposeEmailCloudSdk/models/requests/list_email_folders_request.py deleted file mode 100644 index 4e37474..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/list_email_folders_request.py +++ /dev/null @@ -1,132 +0,0 @@ -# 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_folders_request import ListEmailFoldersRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class ListEmailFoldersRequest(BaseRequest): - """ - Request model for list_email_folders operation. - Initializes a new instance. - - :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 parent_folder (str) Folder in which subfolders should be listed - """ - - def __init__(self, first_account: str, second_account: str = None, storage: str = None, storage_folder: str = None, parent_folder: str = None): - """ - Request model for list_email_folders operation. - Initializes a new instance. - - :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 parent_folder (str) Folder in which subfolders should be listed - """ - - BaseRequest.__init__(self) - self.first_account = first_account - self.second_account = second_account - self.storage = storage - self.storage_folder = storage_folder - self.parent_folder = parent_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 'first_account' is set - if self.first_account is None: - raise ValueError("Missing the required parameter `first_account` when calling `list_email_folders`") - - collection_formats = {} - path = '/email/client/ListFolders' - path_params = {} - - 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('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('parentFolder') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.parent_folder if self.parent_folder is not None else '') - else: - if self.parent_folder is not None: - query_params.append((self._lowercase_first_letter('parentFolder'), self.parent_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/list_email_messages_request.py b/sdk/AsposeEmailCloudSdk/models/requests/list_email_messages_request.py deleted file mode 100644 index 55c853f..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/list_email_messages_request.py +++ /dev/null @@ -1,156 +0,0 @@ -# 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_messages_request import ListEmailMessagesRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class ListEmailMessagesRequest(BaseRequest): - """ - Request model for list_email_messages 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 (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): - """ - Request model for list_email_messages 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 (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 - """ - - BaseRequest.__init__(self) - self.folder = folder - self.query_string = query_string - self.first_account = first_account - self.second_account = second_account - self.storage = storage - self.storage_folder = storage_folder - self.recursive = recursive - - 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_messages`") - # 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_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 `list_email_messages`") - - collection_formats = {} - path = '/email/client/ListMessages' - 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('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('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('recursive') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.recursive if self.recursive is not None else '') - else: - if self.recursive is not None: - query_params.append((self._lowercase_first_letter('recursive'), self.recursive)) - - 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/list_email_models_request.py b/sdk/AsposeEmailCloudSdk/models/requests/list_email_models_request.py deleted file mode 100644 index c9a8dc5..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/list_email_models_request.py +++ /dev/null @@ -1,153 +0,0 @@ -# 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_models_request import ListEmailModelsRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class ListEmailModelsRequest(BaseRequest): - """ - Request model for list_email_models operation. - Initializes a new instance. - - :param folder (str) A folder in email account - :param first_account (str) Email 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, 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 first_account (str) Email 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 - """ - - BaseRequest.__init__(self) - self.folder = folder - self.first_account = first_account - self.query_string = query_string - self.second_account = second_account - self.storage = storage - self.storage_folder = storage_folder - self.recursive = recursive - - 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_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`") - - collection_formats = {} - path = '/email/client/ListMessagesModel' - 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('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 '') - 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('recursive') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.recursive if self.recursive is not None else '') - else: - if self.recursive is not None: - query_params.append((self._lowercase_first_letter('recursive'), self.recursive)) - - 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/list_email_threads_request.py b/sdk/AsposeEmailCloudSdk/models/requests/list_email_threads_request.py deleted file mode 100644 index a244e4a..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/list_email_threads_request.py +++ /dev/null @@ -1,153 +0,0 @@ -# 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 deleted file mode 100644 index 00d8be7..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/move_email_message_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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 deleted file mode 100644 index 4f76075..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/move_email_thread_request.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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 deleted file mode 100644 index f8fd627..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/move_file_request.py +++ /dev/null @@ -1,131 +0,0 @@ -# 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_file_request import MoveFileRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class MoveFileRequest(BaseRequest): - """ - Request model for move_file operation. - Initializes a new instance. - - :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): - """ - Request model for move_file operation. - Initializes a new instance. - - :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) - self.src_path = src_path - self.dest_path = dest_path - self.src_storage_name = src_storage_name - self.dest_storage_name = dest_storage_name - self.version_id = version_id - - 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 'src_path' is set - if self.src_path is None: - raise ValueError("Missing the required parameter `src_path` when calling `move_file`") - # verify the required parameter 'dest_path' is set - if self.dest_path is None: - raise ValueError("Missing the required parameter `dest_path` when calling `move_file`") - - collection_formats = {} - path = '/email/storage/file/move/{srcPath}' - path_params = {} - if self.src_path is not None: - path_params[self._lowercase_first_letter('srcPath')] = self.src_path - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('destPath') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.dest_path if self.dest_path is not None else '') - else: - if self.dest_path is not None: - query_params.append((self._lowercase_first_letter('destPath'), self.dest_path)) - path_parameter = '{' + self._lowercase_first_letter('srcStorageName') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.src_storage_name if self.src_storage_name is not None else '') - else: - if self.src_storage_name is not None: - query_params.append((self._lowercase_first_letter('srcStorageName'), self.src_storage_name)) - path_parameter = '{' + self._lowercase_first_letter('destStorageName') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.dest_storage_name if self.dest_storage_name is not None else '') - else: - if self.dest_storage_name is not None: - query_params.append((self._lowercase_first_letter('destStorageName'), self.dest_storage_name)) - path_parameter = '{' + self._lowercase_first_letter('versionId') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.version_id if self.version_id is not None else '') - else: - if self.version_id is not None: - query_params.append((self._lowercase_first_letter('versionId'), self.version_id)) - - 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_folder_request.py b/sdk/AsposeEmailCloudSdk/models/requests/move_folder_request.py deleted file mode 100644 index 401fd9c..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/move_folder_request.py +++ /dev/null @@ -1,122 +0,0 @@ -# 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_folder_request import MoveFolderRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class MoveFolderRequest(BaseRequest): - """ - Request model for move_folder operation. - Initializes a new instance. - - :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): - """ - Request model for move_folder operation. - Initializes a new instance. - - :param src_path (str) - :param dest_path (str) - :param src_storage_name (str) - :param dest_storage_name (str) - """ - - BaseRequest.__init__(self) - self.src_path = src_path - self.dest_path = dest_path - self.src_storage_name = src_storage_name - self.dest_storage_name = dest_storage_name - - 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 'src_path' is set - if self.src_path is None: - raise ValueError("Missing the required parameter `src_path` when calling `move_folder`") - # verify the required parameter 'dest_path' is set - if self.dest_path is None: - raise ValueError("Missing the required parameter `dest_path` when calling `move_folder`") - - collection_formats = {} - path = '/email/storage/folder/move/{srcPath}' - path_params = {} - if self.src_path is not None: - path_params[self._lowercase_first_letter('srcPath')] = self.src_path - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('destPath') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.dest_path if self.dest_path is not None else '') - else: - if self.dest_path is not None: - query_params.append((self._lowercase_first_letter('destPath'), self.dest_path)) - path_parameter = '{' + self._lowercase_first_letter('srcStorageName') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.src_storage_name if self.src_storage_name is not None else '') - else: - if self.src_storage_name is not None: - query_params.append((self._lowercase_first_letter('srcStorageName'), self.src_storage_name)) - path_parameter = '{' + self._lowercase_first_letter('destStorageName') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.dest_storage_name if self.dest_storage_name is not None else '') - else: - if self.dest_storage_name is not None: - query_params.append((self._lowercase_first_letter('destStorageName'), self.dest_storage_name)) - - 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/object_exists_request.py b/sdk/AsposeEmailCloudSdk/models/requests/object_exists_request.py deleted file mode 100644 index c0fa910..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/object_exists_request.py +++ /dev/null @@ -1,110 +0,0 @@ -# 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.object_exists_request import ObjectExistsRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class ObjectExistsRequest(BaseRequest): - """ - Request model for object_exists operation. - Initializes a new instance. - - :param path (str) - :param storage_name (str) - :param version_id (str) - """ - - 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) - :param storage_name (str) - :param version_id (str) - """ - - BaseRequest.__init__(self) - self.path = path - self.storage_name = storage_name - self.version_id = version_id - - 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 'path' is set - if self.path is None: - raise ValueError("Missing the required parameter `path` when calling `object_exists`") - - collection_formats = {} - path = '/email/storage/exist/{path}' - path_params = {} - if self.path is not None: - path_params[self._lowercase_first_letter('path')] = self.path - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('storageName') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.storage_name if self.storage_name is not None else '') - else: - if self.storage_name is not None: - query_params.append((self._lowercase_first_letter('storageName'), self.storage_name)) - path_parameter = '{' + self._lowercase_first_letter('versionId') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.version_id if self.version_id is not None else '') - else: - if self.version_id is not None: - query_params.append((self._lowercase_first_letter('versionId'), self.version_id)) - - 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/save_calendar_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/save_calendar_model_request.py deleted file mode 100644 index 86ad636..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/save_calendar_model_request.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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.save_calendar_model_request import SaveCalendarModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class SaveCalendarModelRequest(BaseRequest): - """ - Request model for save_calendar_model operation. - Initializes a new instance. - - :param name (str) iCalendar file name in storage - :param rq (StorageModelRqOfCalendarDto) Calendar update request - """ - - def __init__(self, name: str, rq: StorageModelRqOfCalendarDto): - """ - Request model for save_calendar_model operation. - Initializes a new instance. - - :param name (str) iCalendar file name in storage - :param rq (StorageModelRqOfCalendarDto) Calendar update request - """ - - BaseRequest.__init__(self) - self.name = name - self.rq = rq - - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `save_calendar_model`") - # verify the required parameter 'rq' is set - if self.rq is None: - raise ValueError("Missing the required parameter `rq` when calling `save_calendar_model`") - - collection_formats = {} - path = '/email/CalendarModel/{name}' - path_params = {} - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.rq is not None: - body_params = self.rq - - # 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/save_contact_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/save_contact_model_request.py deleted file mode 100644 index c016ca6..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/save_contact_model_request.py +++ /dev/null @@ -1,108 +0,0 @@ -# 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.save_contact_model_request import SaveContactModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class SaveContactModelRequest(BaseRequest): - """ - Request model for save_contact_model operation. - Initializes a new instance. - - :param format (str) Contact document format. Enum, available values: VCard, WebDav, Msg - :param name (str) Contact document file name. - :param rq (StorageModelRqOfContactDto) Create/Update contact request. - """ - - def __init__(self, format: str, name: str, rq: StorageModelRqOfContactDto): - """ - Request model for save_contact_model operation. - Initializes a new instance. - - :param format (str) Contact document format. Enum, available values: VCard, WebDav, Msg - :param name (str) Contact document file name. - :param rq (StorageModelRqOfContactDto) Create/Update contact request. - """ - - BaseRequest.__init__(self) - self.format = format - self.name = name - self.rq = rq - - 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 `save_contact_model`") - # verify the required parameter 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `save_contact_model`") - # verify the required parameter 'rq' is set - if self.rq is None: - raise ValueError("Missing the required parameter `rq` when calling `save_contact_model`") - - collection_formats = {} - path = '/email/ContactModel/{format}/{name}' - path_params = {} - if self.format is not None: - path_params[self._lowercase_first_letter('format')] = self.format - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.rq is not None: - body_params = self.rq - - # 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/save_email_client_account_request.py b/sdk/AsposeEmailCloudSdk/models/requests/save_email_client_account_request.py deleted file mode 100644 index 2b878df..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/save_email_client_account_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.save_email_client_account_request import SaveEmailClientAccountRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class SaveEmailClientAccountRequest(BaseRequest): - """ - Request model for save_email_client_account operation. - Initializes a new instance. - - :param request (StorageFileRqOfEmailClientAccount) Email account information - """ - - def __init__(self, request: StorageFileRqOfEmailClientAccount): - """ - Request model for save_email_client_account operation. - Initializes a new instance. - - :param request (StorageFileRqOfEmailClientAccount) Email account information - """ - - 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 `save_email_client_account`") - - collection_formats = {} - path = '/email/client/email-client-account' - 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/save_email_client_multi_account_request.py b/sdk/AsposeEmailCloudSdk/models/requests/save_email_client_multi_account_request.py deleted file mode 100644 index 2963675..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/save_email_client_multi_account_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.save_email_client_multi_account_request import SaveEmailClientMultiAccountRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class SaveEmailClientMultiAccountRequest(BaseRequest): - """ - Request model for save_email_client_multi_account operation. - Initializes a new instance. - - :param request (StorageFileRqOfEmailClientMultiAccount) Email accounts information - """ - - def __init__(self, request: StorageFileRqOfEmailClientMultiAccount): - """ - Request model for save_email_client_multi_account operation. - Initializes a new instance. - - :param request (StorageFileRqOfEmailClientMultiAccount) Email accounts information - """ - - 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 `save_email_client_multi_account`") - - collection_formats = {} - path = '/email/client/multi-account' - 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/save_email_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/save_email_model_request.py deleted file mode 100644 index 5694f51..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/save_email_model_request.py +++ /dev/null @@ -1,108 +0,0 @@ -# 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.save_email_model_request import SaveEmailModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class SaveEmailModelRequest(BaseRequest): - """ - Request model for save_email_model operation. - Initializes a new instance. - - :param format (str) File format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef - :param name (str) Email document file name in storage. - :param rq (StorageModelRqOfEmailDto) Email document create/update request. - """ - - def __init__(self, format: str, name: str, rq: StorageModelRqOfEmailDto): - """ - Request model for save_email_model operation. - Initializes a new instance. - - :param format (str) File format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef - :param name (str) Email document file name in storage. - :param rq (StorageModelRqOfEmailDto) Email document create/update request. - """ - - BaseRequest.__init__(self) - self.format = format - self.name = name - self.rq = rq - - 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 `save_email_model`") - # verify the required parameter 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `save_email_model`") - # verify the required parameter 'rq' is set - if self.rq is None: - raise ValueError("Missing the required parameter `rq` when calling `save_email_model`") - - collection_formats = {} - path = '/email/model/{format}/{name}' - path_params = {} - if self.format is not None: - path_params[self._lowercase_first_letter('format')] = self.format - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.rq is not None: - body_params = self.rq - - # 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/save_mail_account_request.py b/sdk/AsposeEmailCloudSdk/models/requests/save_mail_account_request.py deleted file mode 100644 index 93c5467..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/save_mail_account_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.save_mail_account_request import SaveMailAccountRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class SaveMailAccountRequest(BaseRequest): - """ - Request model for save_mail_account operation. - Initializes a new instance. - - :param request (SaveEmailAccountRequest) Email account information - """ - - def __init__(self, request: SaveEmailAccountRequest): - """ - Request model for save_mail_account operation. - Initializes a new instance. - - :param request (SaveEmailAccountRequest) Email account information - """ - - 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 `save_mail_account`") - - collection_formats = {} - path = '/email/client/SaveMailAccount' - 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/save_mail_o_auth_account_request.py b/sdk/AsposeEmailCloudSdk/models/requests/save_mail_o_auth_account_request.py deleted file mode 100644 index c47b0f4..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/save_mail_o_auth_account_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.save_mail_o_auth_account_request import SaveMailOAuthAccountRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class SaveMailOAuthAccountRequest(BaseRequest): - """ - Request model for save_mail_o_auth_account operation. - Initializes a new instance. - - :param request (SaveOAuthEmailAccountRequest) Email account information - """ - - def __init__(self, request: SaveOAuthEmailAccountRequest): - """ - Request model for save_mail_o_auth_account operation. - Initializes a new instance. - - :param request (SaveOAuthEmailAccountRequest) Email account information - """ - - 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 `save_mail_o_auth_account`") - - collection_formats = {} - path = '/email/client/SaveMailOAuthAccount' - 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/save_mapi_calendar_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/save_mapi_calendar_model_request.py deleted file mode 100644 index 9ab9ec2..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/save_mapi_calendar_model_request.py +++ /dev/null @@ -1,108 +0,0 @@ -# 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.save_mapi_calendar_model_request import SaveMapiCalendarModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class SaveMapiCalendarModelRequest(BaseRequest): - """ - Request model for save_mapi_calendar_model operation. - Initializes a new instance. - - :param name (str) Calendar file name in storage - :param format (str) File format Enum, available values: Ics, Msg - :param rq (StorageModelRqOfMapiCalendarDto) Calendar update request - """ - - def __init__(self, name: str, format: str, rq: StorageModelRqOfMapiCalendarDto): - """ - Request model for save_mapi_calendar_model operation. - Initializes a new instance. - - :param name (str) Calendar file name in storage - :param format (str) File format Enum, available values: Ics, Msg - :param rq (StorageModelRqOfMapiCalendarDto) Calendar update request - """ - - BaseRequest.__init__(self) - self.name = name - self.format = format - self.rq = rq - - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `save_mapi_calendar_model`") - # verify the required parameter 'format' is set - if self.format is None: - raise ValueError("Missing the required parameter `format` when calling `save_mapi_calendar_model`") - # verify the required parameter 'rq' is set - if self.rq is None: - raise ValueError("Missing the required parameter `rq` when calling `save_mapi_calendar_model`") - - collection_formats = {} - path = '/email/MapiCalendar/{format}/{name}' - path_params = {} - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - 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.rq is not None: - body_params = self.rq - - # 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/save_mapi_contact_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/save_mapi_contact_model_request.py deleted file mode 100644 index c9099a8..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/save_mapi_contact_model_request.py +++ /dev/null @@ -1,108 +0,0 @@ -# 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.save_mapi_contact_model_request import SaveMapiContactModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class SaveMapiContactModelRequest(BaseRequest): - """ - Request model for save_mapi_contact_model operation. - Initializes a new instance. - - :param format (str) Contact document format. Enum, available values: VCard, WebDav, Msg - :param name (str) Contact document file name. - :param rq (StorageModelRqOfMapiContactDto) Create/Update contact request. - """ - - def __init__(self, format: str, name: str, rq: StorageModelRqOfMapiContactDto): - """ - Request model for save_mapi_contact_model operation. - Initializes a new instance. - - :param format (str) Contact document format. Enum, available values: VCard, WebDav, Msg - :param name (str) Contact document file name. - :param rq (StorageModelRqOfMapiContactDto) Create/Update contact request. - """ - - BaseRequest.__init__(self) - self.format = format - self.name = name - self.rq = rq - - 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 `save_mapi_contact_model`") - # verify the required parameter 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `save_mapi_contact_model`") - # verify the required parameter 'rq' is set - if self.rq is None: - raise ValueError("Missing the required parameter `rq` when calling `save_mapi_contact_model`") - - collection_formats = {} - path = '/email/MapiContact/{format}/{name}' - path_params = {} - if self.format is not None: - path_params[self._lowercase_first_letter('format')] = self.format - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.rq is not None: - body_params = self.rq - - # 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/save_mapi_message_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/save_mapi_message_model_request.py deleted file mode 100644 index 6fd1334..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/save_mapi_message_model_request.py +++ /dev/null @@ -1,108 +0,0 @@ -# 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.save_mapi_message_model_request import SaveMapiMessageModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class SaveMapiMessageModelRequest(BaseRequest): - """ - Request model for save_mapi_message_model operation. - Initializes a new instance. - - :param format (str) File format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef - :param name (str) Message file name in storage. - :param rq (StorageModelRqOfMapiMessageDto) Message create/update request. - """ - - def __init__(self, format: str, name: str, rq: StorageModelRqOfMapiMessageDto): - """ - Request model for save_mapi_message_model operation. - Initializes a new instance. - - :param format (str) File format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef - :param name (str) Message file name in storage. - :param rq (StorageModelRqOfMapiMessageDto) Message create/update request. - """ - - BaseRequest.__init__(self) - self.format = format - self.name = name - self.rq = rq - - 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 `save_mapi_message_model`") - # verify the required parameter 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `save_mapi_message_model`") - # verify the required parameter 'rq' is set - if self.rq is None: - raise ValueError("Missing the required parameter `rq` when calling `save_mapi_message_model`") - - collection_formats = {} - path = '/email/MapiMessage/{format}/{name}' - path_params = {} - if self.format is not None: - path_params[self._lowercase_first_letter('format')] = self.format - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.rq is not None: - body_params = self.rq - - # 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/send_email_mime_request.py b/sdk/AsposeEmailCloudSdk/models/requests/send_email_mime_request.py deleted file mode 100644 index 92e852e..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/send_email_mime_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.send_email_mime_request import SendEmailMimeRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class SendEmailMimeRequest(BaseRequest): - """ - Request model for send_email_mime operation. - Initializes a new instance. - - :param request (SendEmailMimeBaseRequest) Send email request - """ - - def __init__(self, request: SendEmailMimeBaseRequest): - """ - Request model for send_email_mime operation. - Initializes a new instance. - - :param request (SendEmailMimeBaseRequest) Send email request - """ - - 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 `send_email_mime`") - - collection_formats = {} - path = '/email/client/SendMime' - 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/send_email_model_request.py b/sdk/AsposeEmailCloudSdk/models/requests/send_email_model_request.py deleted file mode 100644 index 612222f..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/send_email_model_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.send_email_model_request import SendEmailModelRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class SendEmailModelRequest(BaseRequest): - """ - Request model for send_email_model operation. - Initializes a new instance. - - :param rq (SendEmailModelRq) Send email request - """ - - def __init__(self, rq: SendEmailModelRq): - """ - Request model for send_email_model operation. - Initializes a new instance. - - :param rq (SendEmailModelRq) Send email request - """ - - BaseRequest.__init__(self) - self.rq = rq - - 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 'rq' is set - if self.rq is None: - raise ValueError("Missing the required parameter `rq` when calling `send_email_model`") - - collection_formats = {} - path = '/email/client/SendModel' - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = [] - - body_params = None - if self.rq is not None: - body_params = self.rq - - # 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/send_email_request.py b/sdk/AsposeEmailCloudSdk/models/requests/send_email_request.py deleted file mode 100644 index c81d1b9..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/send_email_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.send_email_request import SendEmailRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class SendEmailRequest(BaseRequest): - """ - Request model for send_email operation. - Initializes a new instance. - - :param request (SendEmailBaseRequest) Send email request - """ - - def __init__(self, request: SendEmailBaseRequest): - """ - Request model for send_email operation. - Initializes a new instance. - - :param request (SendEmailBaseRequest) Send email request - """ - - 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 `send_email`") - - collection_formats = {} - path = '/email/client/Send' - 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/set_email_property_request.py b/sdk/AsposeEmailCloudSdk/models/requests/set_email_property_request.py deleted file mode 100644 index 3976cbe..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/set_email_property_request.py +++ /dev/null @@ -1,108 +0,0 @@ -# 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_property_request import SetEmailPropertyRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class SetEmailPropertyRequest(BaseRequest): - """ - Request model for set_email_property operation. - Initializes a new instance. - - :param property_name (str) A property name that should be changed - :param file_name (str) Email document file name - :param request (SetEmailPropertyRequest) A property that should be changed and optional Storage info to specify where the file located - """ - - def __init__(self, property_name: str, file_name: str, request: SetEmailPropertyRequest): - """ - Request model for set_email_property operation. - Initializes a new instance. - - :param property_name (str) A property name that should be changed - :param file_name (str) Email document file name - :param request (SetEmailPropertyRequest) A property that should be changed and optional Storage info to specify where the file located - """ - - BaseRequest.__init__(self) - self.property_name = property_name - self.file_name = file_name - 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 'property_name' is set - if self.property_name is None: - raise ValueError("Missing the required parameter `property_name` when calling `set_email_property`") - # verify the required parameter 'file_name' is set - if self.file_name is None: - raise ValueError("Missing the required parameter `file_name` when calling `set_email_property`") - # verify the required parameter 'request' is set - if self.request is None: - raise ValueError("Missing the required parameter `request` when calling `set_email_property`") - - collection_formats = {} - path = '/email/{fileName}/properties/{propertyName}' - path_params = {} - if self.property_name is not None: - path_params[self._lowercase_first_letter('propertyName')] = self.property_name - if self.file_name is not None: - path_params[self._lowercase_first_letter('fileName')] = self.file_name - - 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/set_email_read_flag_request.py b/sdk/AsposeEmailCloudSdk/models/requests/set_email_read_flag_request.py deleted file mode 100644 index 5f6b2c9..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/set_email_read_flag_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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_read_flag_request import SetEmailReadFlagRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class SetEmailReadFlagRequest(BaseRequest): - """ - Request model for set_email_read_flag operation. - Initializes a new instance. - - :param request (SetMessageReadFlagAccountBaseRequest) Message is read request - """ - - def __init__(self, request: SetMessageReadFlagAccountBaseRequest): - """ - Request model for set_email_read_flag operation. - Initializes a new instance. - - :param request (SetMessageReadFlagAccountBaseRequest) Message is read request - """ - - 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 `set_email_read_flag`") - - collection_formats = {} - path = '/email/client/SetReadFlag' - 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/set_email_thread_read_flag_request.py b/sdk/AsposeEmailCloudSdk/models/requests/set_email_thread_read_flag_request.py deleted file mode 100644 index 5369ea6..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/set_email_thread_read_flag_request.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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 deleted file mode 100644 index 37ae6a8..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/storage_exists_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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.storage_exists_request import StorageExistsRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class StorageExistsRequest(BaseRequest): - """ - Request model for storage_exists operation. - Initializes a new instance. - - :param storage_name (str) - """ - - def __init__(self, storage_name: str): - """ - Request model for storage_exists operation. - Initializes a new instance. - - :param storage_name (str) - """ - - BaseRequest.__init__(self) - self.storage_name = storage_name - - 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 'storage_name' is set - if self.storage_name is None: - raise ValueError("Missing the required parameter `storage_name` when calling `storage_exists`") - - collection_formats = {} - path = '/email/storage/{storageName}/exist' - path_params = {} - if self.storage_name is not None: - path_params[self._lowercase_first_letter('storageName')] = self.storage_name - - query_params = [] - - 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/update_calendar_properties_request.py b/sdk/AsposeEmailCloudSdk/models/requests/update_calendar_properties_request.py deleted file mode 100644 index a04e9c2..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/update_calendar_properties_request.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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.update_calendar_properties_request import UpdateCalendarPropertiesRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class UpdateCalendarPropertiesRequest(BaseRequest): - """ - Request model for update_calendar_properties operation. - Initializes a new instance. - - :param name (str) iCalendar file name in storage - :param request (HierarchicalObjectRequest) Calendar properties update request - """ - - def __init__(self, name: str, request: HierarchicalObjectRequest): - """ - Request model for update_calendar_properties operation. - Initializes a new instance. - - :param name (str) iCalendar file name in storage - :param request (HierarchicalObjectRequest) Calendar properties update request - """ - - BaseRequest.__init__(self) - self.name = name - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `update_calendar_properties`") - # verify the required parameter 'request' is set - if self.request is None: - raise ValueError("Missing the required parameter `request` when calling `update_calendar_properties`") - - collection_formats = {} - path = '/email/Calendar/{name}/properties' - path_params = {} - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - 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/update_contact_properties_request.py b/sdk/AsposeEmailCloudSdk/models/requests/update_contact_properties_request.py deleted file mode 100644 index 4bab81c..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/update_contact_properties_request.py +++ /dev/null @@ -1,108 +0,0 @@ -# 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.update_contact_properties_request import UpdateContactPropertiesRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class UpdateContactPropertiesRequest(BaseRequest): - """ - Request model for update_contact_properties operation. - Initializes a new instance. - - :param format (str) Contact document format Enum, available values: VCard, WebDav, Msg - :param name (str) Contact document file name - :param request (HierarchicalObjectRequest) Properties that should be updated/added - """ - - def __init__(self, format: str, name: str, request: HierarchicalObjectRequest): - """ - Request model for update_contact_properties operation. - Initializes a new instance. - - :param format (str) Contact document format Enum, available values: VCard, WebDav, Msg - :param name (str) Contact document file name - :param request (HierarchicalObjectRequest) Properties that should be updated/added - """ - - BaseRequest.__init__(self) - self.format = format - self.name = name - 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 'format' is set - if self.format is None: - raise ValueError("Missing the required parameter `format` when calling `update_contact_properties`") - # verify the required parameter 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `update_contact_properties`") - # verify the required parameter 'request' is set - if self.request is None: - raise ValueError("Missing the required parameter `request` when calling `update_contact_properties`") - - collection_formats = {} - path = '/email/Contact/{format}/{name}/properties' - path_params = {} - if self.format is not None: - path_params[self._lowercase_first_letter('format')] = self.format - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - 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/update_mapi_properties_request.py b/sdk/AsposeEmailCloudSdk/models/requests/update_mapi_properties_request.py deleted file mode 100644 index 93ec9d1..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/update_mapi_properties_request.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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.update_mapi_properties_request import UpdateMapiPropertiesRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class UpdateMapiPropertiesRequest(BaseRequest): - """ - Request model for update_mapi_properties operation. - Initializes a new instance. - - :param name (str) Document file name - :param request (HierarchicalObjectRequest) Properties that should be updated/added - """ - - def __init__(self, name: str, request: HierarchicalObjectRequest): - """ - Request model for update_mapi_properties operation. - Initializes a new instance. - - :param name (str) Document file name - :param request (HierarchicalObjectRequest) Properties that should be updated/added - """ - - BaseRequest.__init__(self) - self.name = name - 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 'name' is set - if self.name is None: - raise ValueError("Missing the required parameter `name` when calling `update_mapi_properties`") - # verify the required parameter 'request' is set - if self.request is None: - raise ValueError("Missing the required parameter `request` when calling `update_mapi_properties`") - - collection_formats = {} - path = '/email/Mapi/{name}/properties' - path_params = {} - if self.name is not None: - path_params[self._lowercase_first_letter('name')] = self.name - - 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/upload_file_request.py b/sdk/AsposeEmailCloudSdk/models/requests/upload_file_request.py deleted file mode 100644 index 141ed31..0000000 --- a/sdk/AsposeEmailCloudSdk/models/requests/upload_file_request.py +++ /dev/null @@ -1,110 +0,0 @@ -# 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.upload_file_request import UploadFileRequest - -from AsposeEmailCloudSdk.models.requests.base_request import BaseRequest -from AsposeEmailCloudSdk.models.requests.http_request import HttpRequest -from AsposeEmailCloudSdk.models import * - - -class UploadFileRequest(BaseRequest): - """ - Request model for upload_file operation. - Initializes a new instance. - - :param path (str) - :param file (str) File to upload - :param storage_name (str) - """ - - def __init__(self, path: str, file: str, storage_name: str = None): - """ - Request model for upload_file operation. - Initializes a new instance. - - :param path (str) - :param file (str) File to upload - :param storage_name (str) - """ - - BaseRequest.__init__(self) - self.path = path - self.file = file - self.storage_name = storage_name - - 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 'path' is set - if self.path is None: - raise ValueError("Missing the required parameter `path` when calling `upload_file`") - # verify the required parameter 'file' is set - if self.file is None: - raise ValueError("Missing the required parameter `file` when calling `upload_file`") - - collection_formats = {} - path = '/email/storage/file/{path}' - path_params = {} - if self.path is not None: - path_params[self._lowercase_first_letter('path')] = self.path - - query_params = [] - path_parameter = '{' + self._lowercase_first_letter('storageName') + '}' - if path_parameter in path: - path = path.replace(path_parameter, self.storage_name if self.storage_name is not None else '') - else: - if self.storage_name is not None: - query_params.append((self._lowercase_first_letter('storageName'), self.storage_name)) - - 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/save_email_account_request.py b/sdk/AsposeEmailCloudSdk/models/save_email_account_request.py deleted file mode 100644 index bba9d8b..0000000 --- a/sdk/AsposeEmailCloudSdk/models/save_email_account_request.py +++ /dev/null @@ -1,170 +0,0 @@ -# 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_account_request import EmailAccountRequest -from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation - - -class SaveEmailAccountRequest(EmailAccountRequest): - """Save email account settings with login/password authentication 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 = { - 'host': 'str', - 'port': 'int', - 'login': 'str', - 'security_options': 'str', - 'protocol_type': 'str', - 'description': 'str', - 'storage_file': 'StorageFileLocation', - 'password': 'str' - } - - attribute_map = { - 'host': 'host', - 'port': 'port', - 'login': 'login', - 'security_options': 'securityOptions', - 'protocol_type': 'protocolType', - 'description': 'description', - 'storage_file': 'storageFile', - 'password': 'password' - } - - def __init__(self, host: str = None, port: int = None, login: str = None, security_options: str = None, protocol_type: str = None, description: str = None, storage_file: StorageFileLocation = None, password: str = None): - """ - Save email account settings with login/password authentication request - :param host (str) Email account host - :param port (int) Email account port - :param login (str) Email account login - :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 description (str) Email account description - :param storage_file (StorageFileLocation) A storage file location info to store email account - :param password (str) Email account password - """ - super(SaveEmailAccountRequest, self).__init__() - - self._password = None - - if host is not None: - self.host = host - if port is not None: - self.port = port - if login is not None: - self.login = login - if security_options is not None: - self.security_options = security_options - if protocol_type is not None: - self.protocol_type = protocol_type - if description is not None: - self.description = description - if storage_file is not None: - self.storage_file = storage_file - if password is not None: - self.password = password - - @property - def password(self) -> str: - """Gets the password of this SaveEmailAccountRequest. - - Email account password - - :return: The password of this SaveEmailAccountRequest. - :rtype: str - """ - return self._password - - @password.setter - def password(self, password: str): - """Sets the password of this SaveEmailAccountRequest. - - Email account password - - :param password: The password of this SaveEmailAccountRequest. - :type: str - """ - if password is None: - raise ValueError("Invalid value for `password`, must not be `None`") - if password is not None and len(password) < 1: - raise ValueError("Invalid value for `password`, length must be greater than or equal to `1`") - self._password = password - - 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, SaveEmailAccountRequest): - 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/save_o_auth_email_account_request.py b/sdk/AsposeEmailCloudSdk/models/save_o_auth_email_account_request.py deleted file mode 100644 index 7744212..0000000 --- a/sdk/AsposeEmailCloudSdk/models/save_o_auth_email_account_request.py +++ /dev/null @@ -1,262 +0,0 @@ -# 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_account_request import EmailAccountRequest -from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation - - -class SaveOAuthEmailAccountRequest(EmailAccountRequest): - """Save email account settings with OAuth 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 = { - 'host': 'str', - 'port': 'int', - 'login': 'str', - 'security_options': 'str', - 'protocol_type': 'str', - 'description': 'str', - 'storage_file': 'StorageFileLocation', - 'client_id': 'str', - 'client_secret': 'str', - 'refresh_token': 'str', - 'request_url': 'str' - } - - attribute_map = { - 'host': 'host', - 'port': 'port', - 'login': 'login', - 'security_options': 'securityOptions', - 'protocol_type': 'protocolType', - 'description': 'description', - 'storage_file': 'storageFile', - 'client_id': 'clientId', - 'client_secret': 'clientSecret', - 'refresh_token': 'refreshToken', - 'request_url': 'requestUrl' - } - - def __init__(self, host: str = None, port: int = None, login: str = None, security_options: str = None, protocol_type: str = None, description: str = None, storage_file: StorageFileLocation = None, client_id: str = None, client_secret: str = None, refresh_token: str = None, request_url: str = None): - """ - Save email account settings with OAuth request - :param host (str) Email account host - :param port (int) Email account port - :param login (str) Email account login - :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 description (str) Email account description - :param storage_file (StorageFileLocation) A storage file location info to store email account - :param client_id (str) OAuth client identifier - :param client_secret (str) OAuth client secret - :param refresh_token (str) OAuth refresh token - :param request_url (str) The url to obtain access token. If not specified, will try to discover from email account host. - """ - super(SaveOAuthEmailAccountRequest, self).__init__() - - self._client_id = None - self._client_secret = None - self._refresh_token = None - self._request_url = None - - if host is not None: - self.host = host - if port is not None: - self.port = port - if login is not None: - self.login = login - if security_options is not None: - self.security_options = security_options - if protocol_type is not None: - self.protocol_type = protocol_type - if description is not None: - self.description = description - if storage_file is not None: - self.storage_file = storage_file - if client_id is not None: - self.client_id = client_id - if client_secret is not None: - self.client_secret = client_secret - if refresh_token is not None: - self.refresh_token = refresh_token - if request_url is not None: - self.request_url = request_url - - @property - def client_id(self) -> str: - """Gets the client_id of this SaveOAuthEmailAccountRequest. - - OAuth client identifier - - :return: The client_id of this SaveOAuthEmailAccountRequest. - :rtype: str - """ - return self._client_id - - @client_id.setter - def client_id(self, client_id: str): - """Sets the client_id of this SaveOAuthEmailAccountRequest. - - OAuth client identifier - - :param client_id: The client_id of this SaveOAuthEmailAccountRequest. - :type: str - """ - if client_id is None: - raise ValueError("Invalid value for `client_id`, must not be `None`") - if client_id is not None and len(client_id) < 1: - raise ValueError("Invalid value for `client_id`, length must be greater than or equal to `1`") - self._client_id = client_id - - @property - def client_secret(self) -> str: - """Gets the client_secret of this SaveOAuthEmailAccountRequest. - - OAuth client secret - - :return: The client_secret of this SaveOAuthEmailAccountRequest. - :rtype: str - """ - return self._client_secret - - @client_secret.setter - def client_secret(self, client_secret: str): - """Sets the client_secret of this SaveOAuthEmailAccountRequest. - - OAuth client secret - - :param client_secret: The client_secret of this SaveOAuthEmailAccountRequest. - :type: str - """ - if client_secret is None: - raise ValueError("Invalid value for `client_secret`, must not be `None`") - if client_secret is not None and len(client_secret) < 1: - raise ValueError("Invalid value for `client_secret`, length must be greater than or equal to `1`") - self._client_secret = client_secret - - @property - def refresh_token(self) -> str: - """Gets the refresh_token of this SaveOAuthEmailAccountRequest. - - OAuth refresh token - - :return: The refresh_token of this SaveOAuthEmailAccountRequest. - :rtype: str - """ - return self._refresh_token - - @refresh_token.setter - def refresh_token(self, refresh_token: str): - """Sets the refresh_token of this SaveOAuthEmailAccountRequest. - - OAuth refresh token - - :param refresh_token: The refresh_token of this SaveOAuthEmailAccountRequest. - :type: str - """ - if refresh_token is None: - raise ValueError("Invalid value for `refresh_token`, must not be `None`") - if refresh_token is not None and len(refresh_token) < 1: - raise ValueError("Invalid value for `refresh_token`, length must be greater than or equal to `1`") - self._refresh_token = refresh_token - - @property - def request_url(self) -> str: - """Gets the request_url of this SaveOAuthEmailAccountRequest. - - The url to obtain access token. If not specified, will try to discover from email account host. - - :return: The request_url of this SaveOAuthEmailAccountRequest. - :rtype: str - """ - return self._request_url - - @request_url.setter - def request_url(self, request_url: str): - """Sets the request_url of this SaveOAuthEmailAccountRequest. - - The url to obtain access token. If not specified, will try to discover from email account host. - - :param request_url: The request_url of this SaveOAuthEmailAccountRequest. - :type: str - """ - self._request_url = request_url - - 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, SaveOAuthEmailAccountRequest): - 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/send_email_base_request.py b/sdk/AsposeEmailCloudSdk/models/send_email_base_request.py deleted file mode 100644 index ff1d4a2..0000000 --- a/sdk/AsposeEmailCloudSdk/models/send_email_base_request.py +++ /dev/null @@ -1,149 +0,0 @@ -# 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_file_location import StorageFileLocation -from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation - - -class SendEmailBaseRequest(AccountBaseRequest): - """Send email file 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', - 'email_file': 'StorageFileLocation' - } - - attribute_map = { - 'first_account': 'firstAccount', - 'second_account': 'secondAccount', - 'storage_folder': 'storageFolder', - 'email_file': 'emailFile' - } - - def __init__(self, first_account: str = None, second_account: str = None, storage_folder: StorageFolderLocation = None, email_file: StorageFileLocation = None): - """ - Send email file 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 email_file (StorageFileLocation) Email document (*.eml) file location in storage - """ - super(SendEmailBaseRequest, self).__init__() - - self._email_file = 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 email_file is not None: - self.email_file = email_file - - @property - def email_file(self) -> StorageFileLocation: - """Gets the email_file of this SendEmailBaseRequest. - - Email document (*.eml) file location in storage - - :return: The email_file of this SendEmailBaseRequest. - :rtype: StorageFileLocation - """ - return self._email_file - - @email_file.setter - def email_file(self, email_file: StorageFileLocation): - """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 - """ - if email_file is None: - raise ValueError("Invalid value for `email_file`, must not be `None`") - self._email_file = email_file - - 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, SendEmailBaseRequest): - 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/send_email_mime_base_request.py b/sdk/AsposeEmailCloudSdk/models/send_email_mime_base_request.py deleted file mode 100644 index 8eef46a..0000000 --- a/sdk/AsposeEmailCloudSdk/models/send_email_mime_base_request.py +++ /dev/null @@ -1,150 +0,0 @@ -# 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 SendEmailMimeBaseRequest(AccountBaseRequest): - """Send email MIME 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', - 'base64_mime_message': 'str' - } - - attribute_map = { - 'first_account': 'firstAccount', - 'second_account': 'secondAccount', - 'storage_folder': 'storageFolder', - 'base64_mime_message': 'base64MimeMessage' - } - - 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 - :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 - """ - super(SendEmailMimeBaseRequest, self).__init__() - - self._base64_mime_message = 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 base64_mime_message is not None: - self.base64_mime_message = base64_mime_message - - @property - def base64_mime_message(self) -> str: - """Gets the base64_mime_message of this SendEmailMimeBaseRequest. - - Email document serialized as MIME - - :return: The base64_mime_message of this SendEmailMimeBaseRequest. - :rtype: str - """ - return self._base64_mime_message - - @base64_mime_message.setter - def base64_mime_message(self, base64_mime_message: str): - """Sets the base64_mime_message of this SendEmailMimeBaseRequest. - - Email document serialized as MIME - - :param base64_mime_message: The base64_mime_message of this SendEmailMimeBaseRequest. - :type: str - """ - if base64_mime_message is None: - raise ValueError("Invalid value for `base64_mime_message`, must not be `None`") - if base64_mime_message is not None and len(base64_mime_message) < 1: - raise ValueError("Invalid value for `base64_mime_message`, length must be greater than or equal to `1`") - self._base64_mime_message = base64_mime_message - - 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, SendEmailMimeBaseRequest): - 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/set_email_property_request.py b/sdk/AsposeEmailCloudSdk/models/set_email_property_request.py deleted file mode 100644 index 7bf6ed4..0000000 --- a/sdk/AsposeEmailCloudSdk/models/set_email_property_request.py +++ /dev/null @@ -1,160 +0,0 @@ -# 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_property import EmailProperty -from AsposeEmailCloudSdk.models.storage_folder_location import StorageFolderLocation - - -class SetEmailPropertyRequest(object): - """Update email document property 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 = { - 'email_property': 'EmailProperty', - 'storage_folder': 'StorageFolderLocation' - } - - attribute_map = { - 'email_property': 'emailProperty', - 'storage_folder': 'storageFolder' - } - - def __init__(self, email_property: EmailProperty = None, storage_folder: StorageFolderLocation = None): - """ - Update email document property request - :param email_property (EmailProperty) An email property that should be updated - :param storage_folder (StorageFolderLocation) An email document location in storage - """ - - self._email_property = None - self._storage_folder = None - - if email_property is not None: - self.email_property = email_property - if storage_folder is not None: - self.storage_folder = storage_folder - - @property - def email_property(self) -> EmailProperty: - """Gets the email_property of this SetEmailPropertyRequest. - - An email property that should be updated - - :return: The email_property of this SetEmailPropertyRequest. - :rtype: EmailProperty - """ - return self._email_property - - @email_property.setter - def email_property(self, email_property: EmailProperty): - """Sets the email_property of this SetEmailPropertyRequest. - - An email property that should be updated - - :param email_property: The email_property of this SetEmailPropertyRequest. - :type: EmailProperty - """ - if email_property is None: - raise ValueError("Invalid value for `email_property`, must not be `None`") - self._email_property = email_property - - @property - def storage_folder(self) -> StorageFolderLocation: - """Gets the storage_folder of this SetEmailPropertyRequest. - - An email document location in storage - - :return: The storage_folder of this SetEmailPropertyRequest. - :rtype: StorageFolderLocation - """ - return self._storage_folder - - @storage_folder.setter - def storage_folder(self, storage_folder: StorageFolderLocation): - """Sets the storage_folder of this SetEmailPropertyRequest. - - An email document location in storage - - :param storage_folder: The storage_folder of this SetEmailPropertyRequest. - :type: StorageFolderLocation - """ - self._storage_folder = storage_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, SetEmailPropertyRequest): - 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/set_message_read_flag_account_base_request.py b/sdk/AsposeEmailCloudSdk/models/set_message_read_flag_account_base_request.py deleted file mode 100644 index ce503ea..0000000 --- a/sdk/AsposeEmailCloudSdk/models/set_message_read_flag_account_base_request.py +++ /dev/null @@ -1,180 +0,0 @@ -# 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 SetMessageReadFlagAccountBaseRequest(AccountBaseRequest): - """Set message is read 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', - 'is_read': 'bool' - } - - attribute_map = { - 'first_account': 'firstAccount', - 'second_account': 'secondAccount', - 'storage_folder': 'storageFolder', - 'message_id': 'messageId', - 'is_read': 'isRead' - } - - 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 - :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 - """ - super(SetMessageReadFlagAccountBaseRequest, self).__init__() - - self._message_id = None - self._is_read = 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 is_read is not None: - self.is_read = is_read - - @property - def message_id(self) -> str: - """Gets the message_id of this SetMessageReadFlagAccountBaseRequest. - - Message identifier - - :return: The message_id of this SetMessageReadFlagAccountBaseRequest. - :rtype: str - """ - return self._message_id - - @message_id.setter - def message_id(self, message_id: str): - """Sets the message_id of this SetMessageReadFlagAccountBaseRequest. - - Message identifier - - :param message_id: The message_id of this SetMessageReadFlagAccountBaseRequest. - :type: str - """ - if message_id is None: - raise ValueError("Invalid value for `message_id`, must not be `None`") - if message_id is not None and len(message_id) < 1: - raise ValueError("Invalid value for `message_id`, length must be greater than or equal to `1`") - self._message_id = message_id - - @property - def is_read(self) -> bool: - """Gets the is_read of this SetMessageReadFlagAccountBaseRequest. - - Specifies that message should be marked read or unread - - :return: The is_read of this SetMessageReadFlagAccountBaseRequest. - :rtype: bool - """ - return self._is_read - - @is_read.setter - def is_read(self, is_read: bool): - """Sets the is_read of this SetMessageReadFlagAccountBaseRequest. - - Specifies that message should be marked read or unread - - :param is_read: The is_read of this SetMessageReadFlagAccountBaseRequest. - :type: bool - """ - if is_read is None: - raise ValueError("Invalid value for `is_read`, must not be `None`") - self._is_read = is_read - - 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, SetMessageReadFlagAccountBaseRequest): - 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/storage_exist.py b/sdk/AsposeEmailCloudSdk/models/storage_exist.py index 6c836d5..b27b610 100644 --- a/sdk/AsposeEmailCloudSdk/models/storage_exist.py +++ b/sdk/AsposeEmailCloudSdk/models/storage_exist.py @@ -32,7 +32,7 @@ class StorageExist(object): - """ + """Storage exists """ """ @@ -52,8 +52,9 @@ class StorageExist(object): def __init__(self, exists: bool = None): """ - - :param exists (bool) + Storage exists + :param exists: Shows that the storage exists. + :type exists: bool """ self._exists = None @@ -61,10 +62,11 @@ def __init__(self, exists: bool = None): if exists is not None: self.exists = exists + @property def exists(self) -> bool: - """Gets the exists of this StorageExist. - + """ + Shows that the storage exists. :return: The exists of this StorageExist. :rtype: bool @@ -73,8 +75,8 @@ def exists(self) -> bool: @exists.setter 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_exists_request.py b/sdk/AsposeEmailCloudSdk/models/storage_exists_request.py new file mode 100644 index 0000000..0437cba --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/storage_exists_request.py @@ -0,0 +1,49 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class StorageExistsRequest(object): + """ + Request model for storage_exists operation. + Initializes a new instance. + + :param storage_name: Storage name + :type storage_name: str + """ + + def __init__(self, storage_name: str): + """ + Request model for storage_exists operation. + Initializes a new instance. + + :param storage_name: Storage name + :type storage_name: str + """ + + self.storage_name = storage_name + diff --git a/sdk/AsposeEmailCloudSdk/models/storage_file.py b/sdk/AsposeEmailCloudSdk/models/storage_file.py index 07a8b6b..c280d17 100644 --- a/sdk/AsposeEmailCloudSdk/models/storage_file.py +++ b/sdk/AsposeEmailCloudSdk/models/storage_file.py @@ -32,7 +32,7 @@ class StorageFile(object): - """ + """File or folder information """ """ @@ -60,12 +60,17 @@ class StorageFile(object): def __init__(self, name: str = None, is_folder: bool = None, modified_date: datetime = None, size: int = None, path: str = None): """ - - :param name (str) - :param is_folder (bool) - :param modified_date (datetime) - :param size (int) - :param path (str) + File or folder information + :param name: File or folder name. + :type name: str + :param is_folder: True if it is a folder. + :type is_folder: bool + :param modified_date: File or folder last modified DateTime. + :type modified_date: datetime + :param size: File or folder size. + :type size: int + :param path: File or folder path. + :type path: str """ self._name = None @@ -85,10 +90,11 @@ def __init__(self, name: str = None, is_folder: bool = None, modified_date: date if path is not None: self.path = path + @property def name(self) -> str: - """Gets the name of this StorageFile. - + """ + File or folder name. :return: The name of this StorageFile. :rtype: str @@ -97,8 +103,8 @@ def name(self) -> str: @name.setter def name(self, name: str): - """Sets the name of this StorageFile. - + """ + File or folder name. :param name: The name of this StorageFile. :type: str @@ -107,8 +113,8 @@ def name(self, name: str): @property 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 @@ -117,8 +123,8 @@ def is_folder(self) -> bool: @is_folder.setter 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 @@ -129,8 +135,8 @@ def is_folder(self, is_folder: bool): @property 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 @@ -139,8 +145,8 @@ def modified_date(self) -> datetime: @modified_date.setter 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 @@ -149,8 +155,8 @@ def modified_date(self, modified_date: datetime): @property def size(self) -> int: - """Gets the size of this StorageFile. - + """ + File or folder size. :return: The size of this StorageFile. :rtype: int @@ -159,8 +165,8 @@ def size(self) -> int: @size.setter def size(self, size: int): - """Sets the size of this StorageFile. - + """ + File or folder size. :param size: The size of this StorageFile. :type: int @@ -171,8 +177,8 @@ def size(self, size: int): @property def path(self) -> str: - """Gets the path of this StorageFile. - + """ + File or folder path. :return: The path of this StorageFile. :rtype: str @@ -181,8 +187,8 @@ def path(self) -> str: @path.setter 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 11d9531..945795b 100644 --- a/sdk/AsposeEmailCloudSdk/models/storage_file_location.py +++ b/sdk/AsposeEmailCloudSdk/models/storage_file_location.py @@ -59,9 +59,12 @@ class StorageFileLocation(StorageFolderLocation): def __init__(self, storage: str = None, folder_path: str = None, file_name: str = None): """ A storage file location information - :param storage (str) A storage name - :param folder_path (str) A path to a folder in specified storage - :param file_name (str) A file name in storage + :param storage: A storage name + :type storage: str + :param folder_path: A path to a folder in specified storage + :type folder_path: str + :param file_name: A file name in storage + :type file_name: str """ super(StorageFileLocation, self).__init__() @@ -74,10 +77,10 @@ def __init__(self, storage: str = None, folder_path: str = None, file_name: str if file_name is not None: self.file_name = file_name + @property def file_name(self) -> str: - """Gets the file_name of this StorageFileLocation. - + """ A file name in storage :return: The file_name of this StorageFileLocation. @@ -87,8 +90,7 @@ def file_name(self) -> str: @file_name.setter def file_name(self, file_name: str): - """Sets the file_name of this StorageFileLocation. - + """ A file name in storage :param file_name: The file_name of this StorageFileLocation. diff --git a/sdk/AsposeEmailCloudSdk/models/list_response_of_string.py b/sdk/AsposeEmailCloudSdk/models/storage_file_location_list.py similarity index 80% rename from sdk/AsposeEmailCloudSdk/models/list_response_of_string.py rename to sdk/AsposeEmailCloudSdk/models/storage_file_location_list.py index 8d409e5..d401f78 100644 --- a/sdk/AsposeEmailCloudSdk/models/list_response_of_string.py +++ b/sdk/AsposeEmailCloudSdk/models/storage_file_location_list.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -30,9 +30,12 @@ from typing import List, Set, Dict, Tuple, Optional from datetime import datetime +from AsposeEmailCloudSdk.models.list_response_of_storage_file_location import ListResponseOfStorageFileLocation +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation -class ListResponseOfString(object): - """ + +class StorageFileLocationList(ListResponseOfStorageFileLocation): + """List of files located on storage. """ """ @@ -43,43 +46,24 @@ class ListResponseOfString(object): and the value is json key in definition. """ swagger_types = { - 'value': 'list[str]' + 'value': 'list[StorageFileLocation]' } attribute_map = { 'value': 'value' } - def __init__(self, value: List[str] = None): + def __init__(self, value: List[StorageFileLocation] = None): """ - - :param value (List[str]) + List of files located on storage. + :param value: + :type value: List[StorageFileLocation] """ - - self._value = None + super(StorageFileLocationList, self).__init__() if value is not None: self.value = value - @property - def value(self) -> List[str]: - """Gets the value of this ListResponseOfString. - - - :return: The value of this ListResponseOfString. - :rtype: list[str] - """ - return self._value - - @value.setter - def value(self, value: List[str]): - """Sets the value of this ListResponseOfString. - - - :param value: The value of this ListResponseOfString. - :type: list[str] - """ - self._value = value def to_dict(self): """Returns the model properties as a dict""" @@ -115,7 +99,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ListResponseOfString): + if not isinstance(other, StorageFileLocationList): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/storage_folder_location.py b/sdk/AsposeEmailCloudSdk/models/storage_folder_location.py index b55a23b..6f608cc 100644 --- a/sdk/AsposeEmailCloudSdk/models/storage_folder_location.py +++ b/sdk/AsposeEmailCloudSdk/models/storage_folder_location.py @@ -55,8 +55,10 @@ class StorageFolderLocation(object): def __init__(self, storage: str = None, folder_path: str = None): """ A storage folder location information - :param storage (str) A storage name - :param folder_path (str) A path to a folder in specified storage + :param storage: A storage name + :type storage: str + :param folder_path: A path to a folder in specified storage + :type folder_path: str """ self._storage = None @@ -67,10 +69,10 @@ def __init__(self, storage: str = None, folder_path: str = None): if folder_path is not None: self.folder_path = folder_path + @property def storage(self) -> str: - """Gets the storage of this StorageFolderLocation. - + """ A storage name :return: The storage of this StorageFolderLocation. @@ -80,8 +82,7 @@ def storage(self) -> str: @storage.setter def storage(self, storage: str): - """Sets the storage of this StorageFolderLocation. - + """ A storage name :param storage: The storage of this StorageFolderLocation. @@ -91,8 +92,7 @@ def storage(self, storage: str): @property def folder_path(self) -> str: - """Gets the folder_path of this StorageFolderLocation. - + """ A path to a folder in specified storage :return: The folder_path of this StorageFolderLocation. @@ -102,8 +102,7 @@ def folder_path(self) -> str: @folder_path.setter def folder_path(self, folder_path: str): - """Sets the folder_path of this StorageFolderLocation. - + """ A path to a folder in specified storage :param folder_path: The folder_path of this StorageFolderLocation. diff --git a/sdk/AsposeEmailCloudSdk/models/storage_model_of_calendar_dto.py b/sdk/AsposeEmailCloudSdk/models/storage_model_of_calendar_dto.py index bbb8e5a..519bd69 100644 --- a/sdk/AsposeEmailCloudSdk/models/storage_model_of_calendar_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/storage_model_of_calendar_dto.py @@ -58,8 +58,10 @@ class StorageModelOfCalendarDto(object): def __init__(self, storage_file: StorageFileLocation = None, value: CalendarDto = None): """ - :param storage_file (StorageFileLocation) - :param value (CalendarDto) + :param storage_file: + :type storage_file: StorageFileLocation + :param value: + :type value: CalendarDto """ self._storage_file = None @@ -70,10 +72,11 @@ def __init__(self, storage_file: StorageFileLocation = None, value: CalendarDto if value is not None: self.value = value + @property def storage_file(self) -> StorageFileLocation: - """Gets the storage_file of this StorageModelOfCalendarDto. - + """ + Gets the storage_file of this StorageModelOfCalendarDto. :return: The storage_file of this StorageModelOfCalendarDto. :rtype: StorageFileLocation @@ -82,18 +85,20 @@ def storage_file(self) -> StorageFileLocation: @storage_file.setter def storage_file(self, storage_file: StorageFileLocation): - """Sets the storage_file of this StorageModelOfCalendarDto. - + """ + Sets the storage_file of this StorageModelOfCalendarDto. :param storage_file: The storage_file of this StorageModelOfCalendarDto. :type: StorageFileLocation """ + if storage_file is None: + raise ValueError("Invalid value for `storage_file`, must not be `None`") self._storage_file = storage_file @property def value(self) -> CalendarDto: - """Gets the value of this StorageModelOfCalendarDto. - + """ + Gets the value of this StorageModelOfCalendarDto. :return: The value of this StorageModelOfCalendarDto. :rtype: CalendarDto @@ -102,12 +107,14 @@ def value(self) -> CalendarDto: @value.setter def value(self, value: CalendarDto): - """Sets the value of this StorageModelOfCalendarDto. - + """ + Sets the value of this StorageModelOfCalendarDto. :param value: The value of this StorageModelOfCalendarDto. :type: CalendarDto """ + if value is None: + raise ValueError("Invalid value for `value`, must not be `None`") self._value = value def to_dict(self): diff --git a/sdk/AsposeEmailCloudSdk/models/storage_model_of_contact_dto.py b/sdk/AsposeEmailCloudSdk/models/storage_model_of_contact_dto.py index f45b0c4..030725b 100644 --- a/sdk/AsposeEmailCloudSdk/models/storage_model_of_contact_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/storage_model_of_contact_dto.py @@ -58,8 +58,10 @@ class StorageModelOfContactDto(object): def __init__(self, storage_file: StorageFileLocation = None, value: ContactDto = None): """ - :param storage_file (StorageFileLocation) - :param value (ContactDto) + :param storage_file: + :type storage_file: StorageFileLocation + :param value: + :type value: ContactDto """ self._storage_file = None @@ -70,10 +72,11 @@ def __init__(self, storage_file: StorageFileLocation = None, value: ContactDto = if value is not None: self.value = value + @property def storage_file(self) -> StorageFileLocation: - """Gets the storage_file of this StorageModelOfContactDto. - + """ + Gets the storage_file of this StorageModelOfContactDto. :return: The storage_file of this StorageModelOfContactDto. :rtype: StorageFileLocation @@ -82,18 +85,20 @@ def storage_file(self) -> StorageFileLocation: @storage_file.setter def storage_file(self, storage_file: StorageFileLocation): - """Sets the storage_file of this StorageModelOfContactDto. - + """ + Sets the storage_file of this StorageModelOfContactDto. :param storage_file: The storage_file of this StorageModelOfContactDto. :type: StorageFileLocation """ + if storage_file is None: + raise ValueError("Invalid value for `storage_file`, must not be `None`") self._storage_file = storage_file @property def value(self) -> ContactDto: - """Gets the value of this StorageModelOfContactDto. - + """ + Gets the value of this StorageModelOfContactDto. :return: The value of this StorageModelOfContactDto. :rtype: ContactDto @@ -102,12 +107,14 @@ def value(self) -> ContactDto: @value.setter def value(self, value: ContactDto): - """Sets the value of this StorageModelOfContactDto. - + """ + Sets the value of this StorageModelOfContactDto. :param value: The value of this StorageModelOfContactDto. :type: ContactDto """ + if value is None: + raise ValueError("Invalid value for `value`, must not be `None`") self._value = value def to_dict(self): diff --git a/sdk/AsposeEmailCloudSdk/models/storage_file_rq_of_email_client_account.py b/sdk/AsposeEmailCloudSdk/models/storage_model_of_email_client_account.py similarity index 74% rename from sdk/AsposeEmailCloudSdk/models/storage_file_rq_of_email_client_account.py rename to sdk/AsposeEmailCloudSdk/models/storage_model_of_email_client_account.py index 924cb09..fce39de 100644 --- a/sdk/AsposeEmailCloudSdk/models/storage_file_rq_of_email_client_account.py +++ b/sdk/AsposeEmailCloudSdk/models/storage_model_of_email_client_account.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -34,7 +34,7 @@ from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation -class StorageFileRqOfEmailClientAccount(object): +class StorageModelOfEmailClientAccount(object): """ """ @@ -46,70 +46,77 @@ class StorageFileRqOfEmailClientAccount(object): and the value is json key in definition. """ swagger_types = { - 'value': 'EmailClientAccount', - 'storage_file': 'StorageFileLocation' + 'storage_file': 'StorageFileLocation', + 'value': 'EmailClientAccount' } attribute_map = { - 'value': 'value', - 'storage_file': 'storageFile' + 'storage_file': 'storageFile', + 'value': 'value' } - def __init__(self, value: EmailClientAccount = None, storage_file: StorageFileLocation = None): + def __init__(self, storage_file: StorageFileLocation = None, value: EmailClientAccount = None): """ - :param value (EmailClientAccount) - :param storage_file (StorageFileLocation) + :param storage_file: + :type storage_file: StorageFileLocation + :param value: + :type value: EmailClientAccount """ - self._value = None self._storage_file = None + self._value = None - if value is not None: - self.value = value if storage_file is not None: self.storage_file = storage_file + if value is not None: + self.value = value - @property - def value(self) -> EmailClientAccount: - """Gets the value of this StorageFileRqOfEmailClientAccount. - - - :return: The value of this StorageFileRqOfEmailClientAccount. - :rtype: EmailClientAccount - """ - return self._value - - @value.setter - def value(self, value: EmailClientAccount): - """Sets the value of this StorageFileRqOfEmailClientAccount. - - - :param value: The value of this StorageFileRqOfEmailClientAccount. - :type: EmailClientAccount - """ - self._value = value @property def storage_file(self) -> StorageFileLocation: - """Gets the storage_file of this StorageFileRqOfEmailClientAccount. - + """ + Gets the storage_file of this StorageModelOfEmailClientAccount. - :return: The storage_file of this StorageFileRqOfEmailClientAccount. + :return: The storage_file of this StorageModelOfEmailClientAccount. :rtype: StorageFileLocation """ return self._storage_file @storage_file.setter def storage_file(self, storage_file: StorageFileLocation): - """Sets the storage_file of this StorageFileRqOfEmailClientAccount. - + """ + Sets the storage_file of this StorageModelOfEmailClientAccount. - :param storage_file: The storage_file of this StorageFileRqOfEmailClientAccount. + :param storage_file: The storage_file of this StorageModelOfEmailClientAccount. :type: StorageFileLocation """ + if storage_file is None: + raise ValueError("Invalid value for `storage_file`, must not be `None`") self._storage_file = storage_file + @property + def value(self) -> EmailClientAccount: + """ + Gets the value of this StorageModelOfEmailClientAccount. + + :return: The value of this StorageModelOfEmailClientAccount. + :rtype: EmailClientAccount + """ + return self._value + + @value.setter + def value(self, value: EmailClientAccount): + """ + Sets the value of this StorageModelOfEmailClientAccount. + + :param value: The value of this StorageModelOfEmailClientAccount. + :type: EmailClientAccount + """ + if value is None: + raise ValueError("Invalid value for `value`, must not be `None`") + self._value = value + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -144,7 +151,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, StorageFileRqOfEmailClientAccount): + if not isinstance(other, StorageModelOfEmailClientAccount): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/storage_file_rq_of_email_client_multi_account.py b/sdk/AsposeEmailCloudSdk/models/storage_model_of_email_client_multi_account.py similarity index 74% rename from sdk/AsposeEmailCloudSdk/models/storage_file_rq_of_email_client_multi_account.py rename to sdk/AsposeEmailCloudSdk/models/storage_model_of_email_client_multi_account.py index acac715..0323970 100644 --- a/sdk/AsposeEmailCloudSdk/models/storage_file_rq_of_email_client_multi_account.py +++ b/sdk/AsposeEmailCloudSdk/models/storage_model_of_email_client_multi_account.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -34,7 +34,7 @@ from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation -class StorageFileRqOfEmailClientMultiAccount(object): +class StorageModelOfEmailClientMultiAccount(object): """ """ @@ -46,70 +46,77 @@ class StorageFileRqOfEmailClientMultiAccount(object): and the value is json key in definition. """ swagger_types = { - 'value': 'EmailClientMultiAccount', - 'storage_file': 'StorageFileLocation' + 'storage_file': 'StorageFileLocation', + 'value': 'EmailClientMultiAccount' } attribute_map = { - 'value': 'value', - 'storage_file': 'storageFile' + 'storage_file': 'storageFile', + 'value': 'value' } - def __init__(self, value: EmailClientMultiAccount = None, storage_file: StorageFileLocation = None): + def __init__(self, storage_file: StorageFileLocation = None, value: EmailClientMultiAccount = None): """ - :param value (EmailClientMultiAccount) - :param storage_file (StorageFileLocation) + :param storage_file: + :type storage_file: StorageFileLocation + :param value: + :type value: EmailClientMultiAccount """ - self._value = None self._storage_file = None + self._value = None - if value is not None: - self.value = value if storage_file is not None: self.storage_file = storage_file + if value is not None: + self.value = value - @property - def value(self) -> EmailClientMultiAccount: - """Gets the value of this StorageFileRqOfEmailClientMultiAccount. - - - :return: The value of this StorageFileRqOfEmailClientMultiAccount. - :rtype: EmailClientMultiAccount - """ - return self._value - - @value.setter - def value(self, value: EmailClientMultiAccount): - """Sets the value of this StorageFileRqOfEmailClientMultiAccount. - - - :param value: The value of this StorageFileRqOfEmailClientMultiAccount. - :type: EmailClientMultiAccount - """ - self._value = value @property def storage_file(self) -> StorageFileLocation: - """Gets the storage_file of this StorageFileRqOfEmailClientMultiAccount. - + """ + Gets the storage_file of this StorageModelOfEmailClientMultiAccount. - :return: The storage_file of this StorageFileRqOfEmailClientMultiAccount. + :return: The storage_file of this StorageModelOfEmailClientMultiAccount. :rtype: StorageFileLocation """ return self._storage_file @storage_file.setter def storage_file(self, storage_file: StorageFileLocation): - """Sets the storage_file of this StorageFileRqOfEmailClientMultiAccount. - + """ + Sets the storage_file of this StorageModelOfEmailClientMultiAccount. - :param storage_file: The storage_file of this StorageFileRqOfEmailClientMultiAccount. + :param storage_file: The storage_file of this StorageModelOfEmailClientMultiAccount. :type: StorageFileLocation """ + if storage_file is None: + raise ValueError("Invalid value for `storage_file`, must not be `None`") self._storage_file = storage_file + @property + def value(self) -> EmailClientMultiAccount: + """ + Gets the value of this StorageModelOfEmailClientMultiAccount. + + :return: The value of this StorageModelOfEmailClientMultiAccount. + :rtype: EmailClientMultiAccount + """ + return self._value + + @value.setter + def value(self, value: EmailClientMultiAccount): + """ + Sets the value of this StorageModelOfEmailClientMultiAccount. + + :param value: The value of this StorageModelOfEmailClientMultiAccount. + :type: EmailClientMultiAccount + """ + if value is None: + raise ValueError("Invalid value for `value`, must not be `None`") + self._value = value + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -144,7 +151,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, StorageFileRqOfEmailClientMultiAccount): + if not isinstance(other, StorageModelOfEmailClientMultiAccount): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/storage_model_of_email_dto.py b/sdk/AsposeEmailCloudSdk/models/storage_model_of_email_dto.py index 770fe77..1274a24 100644 --- a/sdk/AsposeEmailCloudSdk/models/storage_model_of_email_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/storage_model_of_email_dto.py @@ -58,8 +58,10 @@ class StorageModelOfEmailDto(object): def __init__(self, storage_file: StorageFileLocation = None, value: EmailDto = None): """ - :param storage_file (StorageFileLocation) - :param value (EmailDto) + :param storage_file: + :type storage_file: StorageFileLocation + :param value: + :type value: EmailDto """ self._storage_file = None @@ -70,10 +72,11 @@ def __init__(self, storage_file: StorageFileLocation = None, value: EmailDto = N if value is not None: self.value = value + @property def storage_file(self) -> StorageFileLocation: - """Gets the storage_file of this StorageModelOfEmailDto. - + """ + Gets the storage_file of this StorageModelOfEmailDto. :return: The storage_file of this StorageModelOfEmailDto. :rtype: StorageFileLocation @@ -82,18 +85,20 @@ def storage_file(self) -> StorageFileLocation: @storage_file.setter def storage_file(self, storage_file: StorageFileLocation): - """Sets the storage_file of this StorageModelOfEmailDto. - + """ + Sets the storage_file of this StorageModelOfEmailDto. :param storage_file: The storage_file of this StorageModelOfEmailDto. :type: StorageFileLocation """ + if storage_file is None: + raise ValueError("Invalid value for `storage_file`, must not be `None`") self._storage_file = storage_file @property def value(self) -> EmailDto: - """Gets the value of this StorageModelOfEmailDto. - + """ + Gets the value of this StorageModelOfEmailDto. :return: The value of this StorageModelOfEmailDto. :rtype: EmailDto @@ -102,12 +107,14 @@ def value(self) -> EmailDto: @value.setter def value(self, value: EmailDto): - """Sets the value of this StorageModelOfEmailDto. - + """ + Sets the value of this StorageModelOfEmailDto. :param value: The value of this StorageModelOfEmailDto. :type: EmailDto """ + if value is None: + raise ValueError("Invalid value for `value`, must not be `None`") self._value = value def to_dict(self): diff --git a/sdk/AsposeEmailCloudSdk/models/hierarchical_object_response.py b/sdk/AsposeEmailCloudSdk/models/storage_model_of_mapi_calendar_dto.py similarity index 63% rename from sdk/AsposeEmailCloudSdk/models/hierarchical_object_response.py rename to sdk/AsposeEmailCloudSdk/models/storage_model_of_mapi_calendar_dto.py index 9cb31e7..f03202f 100644 --- a/sdk/AsposeEmailCloudSdk/models/hierarchical_object_response.py +++ b/sdk/AsposeEmailCloudSdk/models/storage_model_of_mapi_calendar_dto.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -30,12 +30,12 @@ from typing import List, Set, Dict, Tuple, Optional from datetime import datetime -from AsposeEmailCloudSdk.models.hierarchical_object import HierarchicalObject +from AsposeEmailCloudSdk.models.mapi_calendar_dto import MapiCalendarDto from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation -class HierarchicalObjectResponse(object): - """Document represented as hierarchical set of properties response +class StorageModelOfMapiCalendarDto(object): + """ """ """ @@ -46,74 +46,77 @@ class HierarchicalObjectResponse(object): and the value is json key in definition. """ swagger_types = { - 'hierarchical_object': 'HierarchicalObject', - 'storage_file': 'StorageFileLocation' + 'storage_file': 'StorageFileLocation', + 'value': 'MapiCalendarDto' } attribute_map = { - 'hierarchical_object': 'hierarchicalObject', - 'storage_file': 'storageFile' + 'storage_file': 'storageFile', + 'value': 'value' } - def __init__(self, hierarchical_object: HierarchicalObject = None, storage_file: StorageFileLocation = None): + def __init__(self, storage_file: StorageFileLocation = None, value: MapiCalendarDto = None): """ - Document represented as hierarchical set of properties response - :param hierarchical_object (HierarchicalObject) Document properties - :param storage_file (StorageFileLocation) Document location in storage + + :param storage_file: + :type storage_file: StorageFileLocation + :param value: + :type value: MapiCalendarDto """ - self._hierarchical_object = None self._storage_file = None + self._value = None - if hierarchical_object is not None: - self.hierarchical_object = hierarchical_object if storage_file is not None: self.storage_file = storage_file + if value is not None: + self.value = value - @property - def hierarchical_object(self) -> HierarchicalObject: - """Gets the hierarchical_object of this HierarchicalObjectResponse. - - Document properties - - :return: The hierarchical_object of this HierarchicalObjectResponse. - :rtype: HierarchicalObject - """ - return self._hierarchical_object - - @hierarchical_object.setter - def hierarchical_object(self, hierarchical_object: HierarchicalObject): - """Sets the hierarchical_object of this HierarchicalObjectResponse. - - Document properties - - :param hierarchical_object: The hierarchical_object of this HierarchicalObjectResponse. - :type: HierarchicalObject - """ - self._hierarchical_object = hierarchical_object @property def storage_file(self) -> StorageFileLocation: - """Gets the storage_file of this HierarchicalObjectResponse. - - Document location in storage + """ + Gets the storage_file of this StorageModelOfMapiCalendarDto. - :return: The storage_file of this HierarchicalObjectResponse. + :return: The storage_file of this StorageModelOfMapiCalendarDto. :rtype: StorageFileLocation """ return self._storage_file @storage_file.setter def storage_file(self, storage_file: StorageFileLocation): - """Sets the storage_file of this HierarchicalObjectResponse. - - Document location in storage + """ + Sets the storage_file of this StorageModelOfMapiCalendarDto. - :param storage_file: The storage_file of this HierarchicalObjectResponse. + :param storage_file: The storage_file of this StorageModelOfMapiCalendarDto. :type: StorageFileLocation """ + if storage_file is None: + raise ValueError("Invalid value for `storage_file`, must not be `None`") self._storage_file = storage_file + @property + def value(self) -> MapiCalendarDto: + """ + Gets the value of this StorageModelOfMapiCalendarDto. + + :return: The value of this StorageModelOfMapiCalendarDto. + :rtype: MapiCalendarDto + """ + return self._value + + @value.setter + def value(self, value: MapiCalendarDto): + """ + Sets the value of this StorageModelOfMapiCalendarDto. + + :param value: The value of this StorageModelOfMapiCalendarDto. + :type: MapiCalendarDto + """ + if value is None: + raise ValueError("Invalid value for `value`, must not be `None`") + self._value = value + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -148,7 +151,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, HierarchicalObjectResponse): + if not isinstance(other, StorageModelOfMapiCalendarDto): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/storage_model_of_mapi_contact_dto.py b/sdk/AsposeEmailCloudSdk/models/storage_model_of_mapi_contact_dto.py new file mode 100644 index 0000000..32487db --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/storage_model_of_mapi_contact_dto.py @@ -0,0 +1,161 @@ +# 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.mapi_contact_dto import MapiContactDto +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation + + +class StorageModelOfMapiContactDto(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 = { + 'storage_file': 'StorageFileLocation', + 'value': 'MapiContactDto' + } + + attribute_map = { + 'storage_file': 'storageFile', + 'value': 'value' + } + + def __init__(self, storage_file: StorageFileLocation = None, value: MapiContactDto = None): + """ + + :param storage_file: + :type storage_file: StorageFileLocation + :param value: + :type value: MapiContactDto + """ + + self._storage_file = None + self._value = None + + if storage_file is not None: + self.storage_file = storage_file + if value is not None: + self.value = value + + + @property + def storage_file(self) -> StorageFileLocation: + """ + Gets the storage_file of this StorageModelOfMapiContactDto. + + :return: The storage_file of this StorageModelOfMapiContactDto. + :rtype: StorageFileLocation + """ + return self._storage_file + + @storage_file.setter + def storage_file(self, storage_file: StorageFileLocation): + """ + Sets the storage_file of this StorageModelOfMapiContactDto. + + :param storage_file: The storage_file of this StorageModelOfMapiContactDto. + :type: StorageFileLocation + """ + if storage_file is None: + raise ValueError("Invalid value for `storage_file`, must not be `None`") + self._storage_file = storage_file + + @property + def value(self) -> MapiContactDto: + """ + Gets the value of this StorageModelOfMapiContactDto. + + :return: The value of this StorageModelOfMapiContactDto. + :rtype: MapiContactDto + """ + return self._value + + @value.setter + def value(self, value: MapiContactDto): + """ + Sets the value of this StorageModelOfMapiContactDto. + + :param value: The value of this StorageModelOfMapiContactDto. + :type: MapiContactDto + """ + if value is None: + raise ValueError("Invalid value for `value`, must not be `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, StorageModelOfMapiContactDto): + 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/storage_model_of_mapi_message_dto.py b/sdk/AsposeEmailCloudSdk/models/storage_model_of_mapi_message_dto.py new file mode 100644 index 0000000..3a795b2 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/storage_model_of_mapi_message_dto.py @@ -0,0 +1,161 @@ +# 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.mapi_message_dto import MapiMessageDto +from AsposeEmailCloudSdk.models.storage_file_location import StorageFileLocation + + +class StorageModelOfMapiMessageDto(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 = { + 'storage_file': 'StorageFileLocation', + 'value': 'MapiMessageDto' + } + + attribute_map = { + 'storage_file': 'storageFile', + 'value': 'value' + } + + def __init__(self, storage_file: StorageFileLocation = None, value: MapiMessageDto = None): + """ + + :param storage_file: + :type storage_file: StorageFileLocation + :param value: + :type value: MapiMessageDto + """ + + self._storage_file = None + self._value = None + + if storage_file is not None: + self.storage_file = storage_file + if value is not None: + self.value = value + + + @property + def storage_file(self) -> StorageFileLocation: + """ + Gets the storage_file of this StorageModelOfMapiMessageDto. + + :return: The storage_file of this StorageModelOfMapiMessageDto. + :rtype: StorageFileLocation + """ + return self._storage_file + + @storage_file.setter + def storage_file(self, storage_file: StorageFileLocation): + """ + Sets the storage_file of this StorageModelOfMapiMessageDto. + + :param storage_file: The storage_file of this StorageModelOfMapiMessageDto. + :type: StorageFileLocation + """ + if storage_file is None: + raise ValueError("Invalid value for `storage_file`, must not be `None`") + self._storage_file = storage_file + + @property + def value(self) -> MapiMessageDto: + """ + Gets the value of this StorageModelOfMapiMessageDto. + + :return: The value of this StorageModelOfMapiMessageDto. + :rtype: MapiMessageDto + """ + return self._value + + @value.setter + def value(self, value: MapiMessageDto): + """ + Sets the value of this StorageModelOfMapiMessageDto. + + :param value: The value of this StorageModelOfMapiMessageDto. + :type: MapiMessageDto + """ + if value is None: + raise ValueError("Invalid value for `value`, must not be `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, StorageModelOfMapiMessageDto): + 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/task_regenerating_pattern_dto.py b/sdk/AsposeEmailCloudSdk/models/task_regenerating_pattern_dto.py index cae1f2b..3a5a4b9 100644 --- a/sdk/AsposeEmailCloudSdk/models/task_regenerating_pattern_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/task_regenerating_pattern_dto.py @@ -62,15 +62,19 @@ class TaskRegeneratingPatternDto(RecurrencePatternDto): 'regenerating_type': 'regeneratingType' } - def __init__(self, interval: int = None, occurs: int = None, end_date: datetime = None, week_start: str = None, discriminator: str = None, regenerating_type: str = None): + def __init__(self, interval: int = None, occurs: int = None, end_date: datetime = None, week_start: str = None, regenerating_type: str = None): """ Represents the regenerating recurrence pattern that specifies how many days, weeks, months or years after the completion of the current task the next occurrence will be due. - :param interval (int) Number of recurrence units. - :param occurs (int) Number of occurrences of the recurrence pattern. - :param end_date (datetime) End date. - :param week_start (str) Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay - :param discriminator (str) - :param regenerating_type (str) Enumerates the types of regenerating pattern. Enum, available values: Daily, Weekly, Monthly, Yearly + :param interval: Number of recurrence units. + :type interval: int + :param occurs: Number of occurrences of the recurrence pattern. + :type occurs: int + :param end_date: End date. + :type end_date: datetime + :param week_start: Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay + :type week_start: str + :param regenerating_type: Enumerates the types of regenerating pattern. Enum, available values: Daily, Weekly, Monthly, Yearly + :type regenerating_type: str """ super(TaskRegeneratingPatternDto, self).__init__() @@ -84,15 +88,13 @@ def __init__(self, interval: int = None, occurs: int = None, end_date: datetime self.end_date = end_date if week_start is not None: self.week_start = week_start - if discriminator is not None: - self.discriminator = discriminator if regenerating_type is not None: self.regenerating_type = regenerating_type + @property def regenerating_type(self) -> str: - """Gets the regenerating_type of this TaskRegeneratingPatternDto. - + """ Enumerates the types of regenerating pattern. Enum, available values: Daily, Weekly, Monthly, Yearly :return: The regenerating_type of this TaskRegeneratingPatternDto. @@ -102,8 +104,7 @@ def regenerating_type(self) -> str: @regenerating_type.setter def regenerating_type(self, regenerating_type: str): - """Sets the regenerating_type of this TaskRegeneratingPatternDto. - + """ Enumerates the types of regenerating pattern. Enum, available values: Daily, Weekly, Monthly, Yearly :param regenerating_type: The regenerating_type of this TaskRegeneratingPatternDto. diff --git a/sdk/AsposeEmailCloudSdk/models/upload_file_request.py b/sdk/AsposeEmailCloudSdk/models/upload_file_request.py new file mode 100644 index 0000000..172c469 --- /dev/null +++ b/sdk/AsposeEmailCloudSdk/models/upload_file_request.py @@ -0,0 +1,59 @@ +# 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. +# +# ---------------------------------------------------------------------------- + +from AsposeEmailCloudSdk.models import * + + +class UploadFileRequest(object): + """ + Request model for upload_file operation. + Initializes a new instance. + + :param path: 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. + :type path: str + :param file: File to upload + :type file: str + :param storage_name: Storage name + :type storage_name: str + """ + + def __init__(self, path: str, file: str, storage_name: str = None): + """ + Request model for upload_file operation. + Initializes a new instance. + + :param path: 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. + :type path: str + :param file: File to upload + :type file: str + :param storage_name: Storage name + :type storage_name: str + """ + + self.path = path + self.file = file + self.storage_name = storage_name + diff --git a/sdk/AsposeEmailCloudSdk/models/url.py b/sdk/AsposeEmailCloudSdk/models/url.py index 77203d8..890e6bb 100644 --- a/sdk/AsposeEmailCloudSdk/models/url.py +++ b/sdk/AsposeEmailCloudSdk/models/url.py @@ -59,9 +59,12 @@ class Url(object): def __init__(self, category: EnumWithCustomOfUrlCategory = None, preferred: bool = None, href: str = None): """ Url and its category. - :param category (EnumWithCustomOfUrlCategory) Url category. - :param preferred (bool) Defines whether url is preferred. - :param href (str) URL. + :param category: Url category. + :type category: EnumWithCustomOfUrlCategory + :param preferred: Defines whether url is preferred. + :type preferred: bool + :param href: URL. + :type href: str """ self._category = None @@ -75,10 +78,10 @@ def __init__(self, category: EnumWithCustomOfUrlCategory = None, preferred: bool if href is not None: self.href = href + @property def category(self) -> EnumWithCustomOfUrlCategory: - """Gets the category of this Url. - + """ Url category. :return: The category of this Url. @@ -88,8 +91,7 @@ def category(self) -> EnumWithCustomOfUrlCategory: @category.setter def category(self, category: EnumWithCustomOfUrlCategory): - """Sets the category of this Url. - + """ Url category. :param category: The category of this Url. @@ -99,8 +101,7 @@ def category(self, category: EnumWithCustomOfUrlCategory): @property def preferred(self) -> bool: - """Gets the preferred of this Url. - + """ Defines whether url is preferred. :return: The preferred of this Url. @@ -110,8 +111,7 @@ def preferred(self) -> bool: @preferred.setter def preferred(self, preferred: bool): - """Sets the preferred of this Url. - + """ Defines whether url is preferred. :param preferred: The preferred of this Url. @@ -123,8 +123,7 @@ def preferred(self, preferred: bool): @property def href(self) -> str: - """Gets the href of this Url. - + """ URL. :return: The href of this Url. @@ -134,8 +133,7 @@ def href(self) -> str: @href.setter def href(self, href: str): - """Sets the href of this Url. - + """ URL. :param href: The href of this Url. diff --git a/sdk/AsposeEmailCloudSdk/models/value_t_of_boolean.py b/sdk/AsposeEmailCloudSdk/models/value_t_of_boolean.py index 01f58db..3c9f0d3 100644 --- a/sdk/AsposeEmailCloudSdk/models/value_t_of_boolean.py +++ b/sdk/AsposeEmailCloudSdk/models/value_t_of_boolean.py @@ -53,7 +53,8 @@ class ValueTOfBoolean(object): def __init__(self, value: bool = None): """ - :param value (bool) + :param value: + :type value: bool """ self._value = None @@ -61,10 +62,11 @@ def __init__(self, value: bool = None): if value is not None: self.value = value + @property def value(self) -> bool: - """Gets the value of this ValueTOfBoolean. - + """ + Gets the value of this ValueTOfBoolean. :return: The value of this ValueTOfBoolean. :rtype: bool @@ -73,8 +75,8 @@ def value(self) -> bool: @value.setter def value(self, value: bool): - """Sets the value of this ValueTOfBoolean. - + """ + Sets the value of this ValueTOfBoolean. :param value: The value of this ValueTOfBoolean. :type: bool diff --git a/sdk/AsposeEmailCloudSdk/models/value_response.py b/sdk/AsposeEmailCloudSdk/models/value_t_of_string.py similarity index 83% rename from sdk/AsposeEmailCloudSdk/models/value_response.py rename to sdk/AsposeEmailCloudSdk/models/value_t_of_string.py index d3717be..f5b73d9 100644 --- a/sdk/AsposeEmailCloudSdk/models/value_response.py +++ b/sdk/AsposeEmailCloudSdk/models/value_t_of_string.py @@ -1,6 +1,6 @@ # coding: utf-8 # ---------------------------------------------------------------------------- -# +# # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # # @@ -31,8 +31,8 @@ from datetime import datetime -class ValueResponse(object): - """String value object +class ValueTOfString(object): + """ """ """ @@ -52,8 +52,9 @@ class ValueResponse(object): def __init__(self, value: str = None): """ - String value object - :param value (str) Gets or sets string content. + + :param value: + :type value: str """ self._value = None @@ -61,26 +62,29 @@ def __init__(self, value: str = None): if value is not None: self.value = value + @property def value(self) -> str: - """Gets the value of this ValueResponse. - - Gets or sets string content. + """ + Gets the value of this ValueTOfString. - :return: The value of this ValueResponse. + :return: The value of this ValueTOfString. :rtype: str """ return self._value @value.setter def value(self, value: str): - """Sets the value of this ValueResponse. - - Gets or sets string content. + """ + Sets the value of this ValueTOfString. - :param value: The value of this ValueResponse. + :param value: The value of this ValueTOfString. :type: str """ + if value is None: + raise ValueError("Invalid value for `value`, must not be `None`") + if value is not None and len(value) < 1: + raise ValueError("Invalid value for `value`, length must be greater than or equal to `1`") self._value = value def to_dict(self): @@ -117,7 +121,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ValueResponse): + if not isinstance(other, ValueTOfString): return False return self.__dict__ == other.__dict__ diff --git a/sdk/AsposeEmailCloudSdk/models/weekly_recurrence_pattern_dto.py b/sdk/AsposeEmailCloudSdk/models/weekly_recurrence_pattern_dto.py index 1d760e7..81f4a97 100644 --- a/sdk/AsposeEmailCloudSdk/models/weekly_recurrence_pattern_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/weekly_recurrence_pattern_dto.py @@ -62,15 +62,19 @@ class WeeklyRecurrencePatternDto(RecurrencePatternDto): 'start_days': 'startDays' } - def __init__(self, interval: int = None, occurs: int = None, end_date: datetime = None, week_start: str = None, discriminator: str = None, start_days: List[str] = None): + def __init__(self, interval: int = None, occurs: int = None, end_date: datetime = None, week_start: str = None, start_days: List[str] = None): """ Weekly recurrence pattern. - :param interval (int) Number of recurrence units. - :param occurs (int) Number of occurrences of the recurrence pattern. - :param end_date (datetime) End date. - :param week_start (str) Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay - :param discriminator (str) - :param start_days (List[str]) Start days + :param interval: Number of recurrence units. + :type interval: int + :param occurs: Number of occurrences of the recurrence pattern. + :type occurs: int + :param end_date: End date. + :type end_date: datetime + :param week_start: Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay + :type week_start: str + :param start_days: Start days + :type start_days: List[str] """ super(WeeklyRecurrencePatternDto, self).__init__() @@ -84,15 +88,13 @@ def __init__(self, interval: int = None, occurs: int = None, end_date: datetime self.end_date = end_date if week_start is not None: self.week_start = week_start - if discriminator is not None: - self.discriminator = discriminator if start_days is not None: self.start_days = start_days + @property def start_days(self) -> List[str]: - """Gets the start_days of this WeeklyRecurrencePatternDto. - + """ Start days Items: Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay :return: The start_days of this WeeklyRecurrencePatternDto. @@ -102,8 +104,7 @@ def start_days(self) -> List[str]: @start_days.setter def start_days(self, start_days: List[str]): - """Sets the start_days of this WeeklyRecurrencePatternDto. - + """ Start days Items: Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay :param start_days: The start_days of this WeeklyRecurrencePatternDto. diff --git a/sdk/AsposeEmailCloudSdk/models/yearly_recurrence_pattern_dto.py b/sdk/AsposeEmailCloudSdk/models/yearly_recurrence_pattern_dto.py index 40fff3d..c088d99 100644 --- a/sdk/AsposeEmailCloudSdk/models/yearly_recurrence_pattern_dto.py +++ b/sdk/AsposeEmailCloudSdk/models/yearly_recurrence_pattern_dto.py @@ -68,18 +68,25 @@ class YearlyRecurrencePatternDto(RecurrencePatternDto): 'start_position': 'startPosition' } - def __init__(self, interval: int = None, occurs: int = None, end_date: datetime = None, week_start: str = None, discriminator: str = None, start_day: str = None, start_month: str = None, start_offset: int = None, start_position: str = None): + def __init__(self, interval: int = None, occurs: int = None, end_date: datetime = None, week_start: str = None, start_day: str = None, start_month: str = None, start_offset: int = None, start_position: str = None): """ Yearly recurrence pattern. - :param interval (int) Number of recurrence units. - :param occurs (int) Number of occurrences of the recurrence pattern. - :param end_date (datetime) End date. - :param week_start (str) Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay - :param discriminator (str) - :param start_day (str) Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay - :param start_month (str) Represents a calendar month. Enum, available values: None, January, February, March, April, May, June, July, August, September, October, November, December - :param start_offset (int) Start offset. - :param start_position (str) Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last + :param interval: Number of recurrence units. + :type interval: int + :param occurs: Number of occurrences of the recurrence pattern. + :type occurs: int + :param end_date: End date. + :type end_date: datetime + :param week_start: Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay + :type week_start: str + :param start_day: Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay + :type start_day: str + :param start_month: Represents a calendar month. Enum, available values: None, January, February, March, April, May, June, July, August, September, October, November, December + :type start_month: str + :param start_offset: Start offset. + :type start_offset: int + :param start_position: Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last + :type start_position: str """ super(YearlyRecurrencePatternDto, self).__init__() @@ -96,8 +103,6 @@ def __init__(self, interval: int = None, occurs: int = None, end_date: datetime self.end_date = end_date if week_start is not None: self.week_start = week_start - if discriminator is not None: - self.discriminator = discriminator if start_day is not None: self.start_day = start_day if start_month is not None: @@ -107,10 +112,10 @@ def __init__(self, interval: int = None, occurs: int = None, end_date: datetime if start_position is not None: self.start_position = start_position + @property def start_day(self) -> str: - """Gets the start_day of this YearlyRecurrencePatternDto. - + """ Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay :return: The start_day of this YearlyRecurrencePatternDto. @@ -120,8 +125,7 @@ def start_day(self) -> str: @start_day.setter def start_day(self, start_day: str): - """Sets the start_day of this YearlyRecurrencePatternDto. - + """ Represents the day of the week. Enum, available values: None, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Day, WeekDay, WeekendDay :param start_day: The start_day of this YearlyRecurrencePatternDto. @@ -133,8 +137,7 @@ def start_day(self, start_day: str): @property def start_month(self) -> str: - """Gets the start_month of this YearlyRecurrencePatternDto. - + """ Represents a calendar month. Enum, available values: None, January, February, March, April, May, June, July, August, September, October, November, December :return: The start_month of this YearlyRecurrencePatternDto. @@ -144,8 +147,7 @@ def start_month(self) -> str: @start_month.setter def start_month(self, start_month: str): - """Sets the start_month of this YearlyRecurrencePatternDto. - + """ Represents a calendar month. Enum, available values: None, January, February, March, April, May, June, July, August, September, October, November, December :param start_month: The start_month of this YearlyRecurrencePatternDto. @@ -157,8 +159,7 @@ def start_month(self, start_month: str): @property def start_offset(self) -> int: - """Gets the start_offset of this YearlyRecurrencePatternDto. - + """ Start offset. :return: The start_offset of this YearlyRecurrencePatternDto. @@ -168,8 +169,7 @@ def start_offset(self) -> int: @start_offset.setter def start_offset(self, start_offset: int): - """Sets the start_offset of this YearlyRecurrencePatternDto. - + """ Start offset. :param start_offset: The start_offset of this YearlyRecurrencePatternDto. @@ -181,8 +181,7 @@ def start_offset(self, start_offset: int): @property def start_position(self) -> str: - """Gets the start_position of this YearlyRecurrencePatternDto. - + """ Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last :return: The start_position of this YearlyRecurrencePatternDto. @@ -192,8 +191,7 @@ def start_position(self) -> str: @start_position.setter def start_position(self, start_position: str): - """Sets the start_position of this YearlyRecurrencePatternDto. - + """ Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last :param start_position: The start_position of this YearlyRecurrencePatternDto. diff --git a/sdk/AsposeEmailCloudSdk/rest.py b/sdk/AsposeEmailCloudSdk/rest.py index 848dd9e..1c5cc7b 100644 --- a/sdk/AsposeEmailCloudSdk/rest.py +++ b/sdk/AsposeEmailCloudSdk/rest.py @@ -646,9 +646,7 @@ def __deserialize_model(data, klass): return data #try get derived class by type field - type_attribute = 'type' - if (not hasattr(klass, type_attribute)): - type_attribute = 'discriminator' + type_attribute = 'discriminator' if (hasattr(klass, type_attribute) and type_attribute in data): type_name = data[type_attribute] sub_klass = getattr(AsposeEmailCloudSdk.models, type_name, None) @@ -659,6 +657,7 @@ def __deserialize_model(data, klass): if klass.swagger_types is not None: for attr, attr_type in six.iteritems(klass.swagger_types): if (data is not None and + not attr == type_attribute and klass.attribute_map[attr][0].lower() + klass.attribute_map[attr][1:] in data and isinstance(data, (list, dict))): diff --git a/sdk/docs/AccountBaseRequest.md b/sdk/docs/AccountBaseRequest.md deleted file mode 100644 index 29007a7..0000000 --- a/sdk/docs/AccountBaseRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# AsposeEmailCloudSdk.models.AccountBaseRequest -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**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] - - - -[[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/AddAttachmentRequest.md b/sdk/docs/AddAttachmentRequest.md deleted file mode 100644 index 8b277df..0000000 --- a/sdk/docs/AddAttachmentRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.AddAttachmentRequest -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**document_folder** | [**StorageFolderLocation**](StorageFolderLocation.md) | Storage folder location of document | [optional] -**attachment_folder** | [**StorageFolderLocation**](StorageFolderLocation.md) | Storage folder location of an attachment | [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/AiBcrApi.md b/sdk/docs/AiBcrApi.md new file mode 100644 index 0000000..9bb3801 --- /dev/null +++ b/sdk/docs/AiBcrApi.md @@ -0,0 +1,53 @@ +# AsposeEmailCloudSdk.AiBcrApi + + + +# parse + +```python +parse(self, request: AiBcrParseRequest) +``` + +Parse images to vCard document models + +### Return type + +ContactList + +### request Parameter +```python +AiBcrParseRequest( + file, + countries, + languages, + is_single) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file** | **str** | File to parse | + **countries** | **str** | Comma-separated codes of countries. | [optional] [default to ] + **languages** | **str** | Comma-separated ISO-639 codes of languages (either 639-1 or 639-3; i.e. \"it\" or \"ita\" for Italian); it's \"\" by default. | [optional] [default to ] + **is_single** | **bool** | Determines that image contains single VCard or more. | [optional] [default to true] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# parse_storage + +```python +parse_storage(self, AiBcrParseStorageRequest request) +``` + +Parse images from storage to vCard files + +### Return type + +[**StorageFileLocationList**](StorageFileLocationList.md) + +### request Parameter + +See parameter model documentation at [AiBcrParseStorageRequest](AiBcrParseStorageRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + diff --git a/sdk/docs/AiBcrApi_list.md b/sdk/docs/AiBcrApi_list.md new file mode 100644 index 0000000..26db5a6 --- /dev/null +++ b/sdk/docs/AiBcrApi_list.md @@ -0,0 +1,9 @@ + +## Documentation for AiBcrApi operations + +All URIs are relative to *https://api.aspose.cloud/v4.0* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**parse**](AiBcrApi.md#parse)| **PUT** /email/AiBcr/parse| Parse images to vCard document models +[**parse_storage**](AiBcrApi.md#parse_storage)| **PUT** /email/AiBcr/parse-storage| Parse images from storage to vCard files diff --git a/sdk/docs/AiBcrBase64Image.md b/sdk/docs/AiBcrBase64Image.md deleted file mode 100644 index d8a3255..0000000 --- a/sdk/docs/AiBcrBase64Image.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.AiBcrBase64Image -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**base64_data** | **str** | Image data in base64 | [optional] - - Parent class: [AiBcrImage](AiBcrImage.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/AiBcrBase64Rq.md b/sdk/docs/AiBcrBase64Rq.md deleted file mode 100644 index c20628b..0000000 --- a/sdk/docs/AiBcrBase64Rq.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.AiBcrBase64Rq -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**images** | [**list[AiBcrBase64Image]**](AiBcrBase64Image.md) | Images to recognize | [optional] - - Parent class: [AiBcrRq](AiBcrRq.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/AiBcrImage.md b/sdk/docs/AiBcrImage.md index ae5e2bf..1b391f2 100644 --- a/sdk/docs/AiBcrImage.md +++ b/sdk/docs/AiBcrImage.md @@ -2,10 +2,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**is_single** | **bool** | Determines that image contains single VCard or more. Ignored in current version. Multiple cards on image support will be added soon | +**is_single** | **bool** | Determines that image contains single VCard or more. | -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/AiBcrImageStorageFile.md b/sdk/docs/AiBcrImageStorageFile.md index da5df2f..2093bd2 100644 --- a/sdk/docs/AiBcrImageStorageFile.md +++ b/sdk/docs/AiBcrImageStorageFile.md @@ -2,10 +2,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**file** | [**StorageFileLocation**](StorageFileLocation.md) | Image location | [optional] +**file** | [**StorageFileLocation**](StorageFileLocation.md) | Image location | Parent class: [AiBcrImage](AiBcrImage.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/AiBcrOcrData.md b/sdk/docs/AiBcrOcrData.md deleted file mode 100644 index 876c04c..0000000 --- a/sdk/docs/AiBcrOcrData.md +++ /dev/null @@ -1,14 +0,0 @@ -# AsposeEmailCloudSdk.models.AiBcrOcrData -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str** | Image identifier | [optional] -**image** | **str** | Image with possible pre-processing in Base64 | [optional] -**details** | **dict(str, str)** | Additional details from OCR engine | [optional] -**data** | [**list[AiBcrOcrDataPart]**](AiBcrOcrDataPart.md) | OCR results | [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/AiBcrOcrDataPart.md b/sdk/docs/AiBcrOcrDataPart.md deleted file mode 100644 index a3287fe..0000000 --- a/sdk/docs/AiBcrOcrDataPart.md +++ /dev/null @@ -1,16 +0,0 @@ -# AsposeEmailCloudSdk.models.AiBcrOcrDataPart -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**x** | **float** | X position of text block | -**y** | **float** | Y position of text block | -**width** | **float** | Width of text block | -**height** | **float** | Height of text block | -**text** | **str** | Recognized text | [optional] -**details** | **dict(str, str)** | Additional recognition result details | [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/AiBcrOptions.md b/sdk/docs/AiBcrOptions.md index 1c1b71c..bce768f 100644 --- a/sdk/docs/AiBcrOptions.md +++ b/sdk/docs/AiBcrOptions.md @@ -2,11 +2,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**languages** | **str** | Comma-separated ISO-639 codes of languages (either 639-1 or 639-3; i.e. \"it\" or \"ita\" for Italian); it's \"\" by default | [optional] -**countries** | **str** | Comma-separated codes of countries | [optional] +**languages** | **str** | Comma-separated ISO-639 codes of languages (either 639-1 or 639-3; i.e. \"it\" or \"ita\" for Italian); it's \"\" by default. | [optional] +**countries** | **str** | Comma-separated codes of countries. | [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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/AiBcrParseOcrDataRq.md b/sdk/docs/AiBcrParseOcrDataRq.md deleted file mode 100644 index 809be11..0000000 --- a/sdk/docs/AiBcrParseOcrDataRq.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.AiBcrParseOcrDataRq -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**list[AiBcrOcrData]**](AiBcrOcrData.md) | OCR data | - - Parent class: [AiBcrRq](AiBcrRq.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/AiBcrParseStorageRequest.md b/sdk/docs/AiBcrParseStorageRequest.md new file mode 100644 index 0000000..c0ae169 --- /dev/null +++ b/sdk/docs/AiBcrParseStorageRequest.md @@ -0,0 +1,13 @@ +# AsposeEmailCloudSdk.models.AiBcrParseStorageRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**out_folder** | [**StorageFolderLocation**](StorageFolderLocation.md) | Parse output folder location on storage | +**images** | [**list[AiBcrImageStorageFile]**](AiBcrImageStorageFile.md) | Images to parse. | +**options** | [**AiBcrOptions**](AiBcrOptions.md) | Recognition options. | [optional] + + + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/AiBcrParseStorageRq.md b/sdk/docs/AiBcrParseStorageRq.md deleted file mode 100644 index b8d7635..0000000 --- a/sdk/docs/AiBcrParseStorageRq.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.AiBcrParseStorageRq -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**out_folder** | [**StorageFolderLocation**](StorageFolderLocation.md) | Parse output folder location on storage | - - Parent class: [AiBcrStorageImageRq](AiBcrStorageImageRq.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/AiBcrRq.md b/sdk/docs/AiBcrRq.md deleted file mode 100644 index 8cc71ef..0000000 --- a/sdk/docs/AiBcrRq.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.AiBcrRq -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**options** | [**AiBcrOptions**](AiBcrOptions.md) | Recognition options | [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/AiBcrStorageImageRq.md b/sdk/docs/AiBcrStorageImageRq.md deleted file mode 100644 index 4da8acf..0000000 --- a/sdk/docs/AiBcrStorageImageRq.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.AiBcrStorageImageRq -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**images** | [**list[AiBcrImageStorageFile]**](AiBcrImageStorageFile.md) | List of images with business cards | - - Parent class: [AiBcrRq](AiBcrRq.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/AiGroup.md b/sdk/docs/AiGroup.md new file mode 100644 index 0000000..ca00df8 --- /dev/null +++ b/sdk/docs/AiGroup.md @@ -0,0 +1,7 @@ +# EmailCloud.Ai +AI powered operations. + +API | Description +--- | ----------- +[EmailCloud.ai.**bcr**](AiBcrApi_list.md) | AI Business card recognition operations. +[EmailCloud.ai.**name**](AiNameApi_list.md) | AI Name operations. diff --git a/sdk/docs/AiNameApi.md b/sdk/docs/AiNameApi.md new file mode 100644 index 0000000..1c12a1b --- /dev/null +++ b/sdk/docs/AiNameApi.md @@ -0,0 +1,328 @@ +# AsposeEmailCloudSdk.AiNameApi + + + +# complete + +```python +complete(self, request: AiNameCompleteRequest) +``` + +The call proposes k most probable names for given starting characters. + +### Return type + +AiNameWeightedVariants + +### request Parameter +```python +AiNameCompleteRequest( + name, + language, + location, + encoding, + script, + style) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str** | A name to complete. | + **language** | **str** | An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). | [optional] [default to ] + **location** | **str** | A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. | [optional] [default to ] + **encoding** | **str** | A character encoding name. | [optional] [default to ] + **script** | **str** | A writing system code; starts with the ISO-15924 script name. | [optional] [default to ] + **style** | **str** | Name writing style. Enum, available values: Formal, Informal, Legal, Academic | [optional] [default to 0] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# expand + +```python +expand(self, request: AiNameExpandRequest) +``` + +Expands a person's name into a list of possible alternatives using options for expanding instructions. + +### Return type + +AiNameWeightedVariants + +### request Parameter +```python +AiNameExpandRequest( + name, + language, + location, + encoding, + script, + style) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str** | A name to expand. | + **language** | **str** | An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). | [optional] [default to ] + **location** | **str** | A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. | [optional] [default to ] + **encoding** | **str** | A character encoding name. | [optional] [default to ] + **script** | **str** | A writing system code; starts with the ISO-15924 script name. | [optional] [default to ] + **style** | **str** | Name writing style. Enum, available values: Formal, Informal, Legal, Academic | [optional] [default to 0] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# expand_parsed + +```python +expand_parsed(self, AiNameParsedRequest request) +``` + +Expands a person's parsed name into a list of possible alternatives using options for expanding instructions. + +### Return type + +[**AiNameWeightedVariants**](AiNameWeightedVariants.md) + +### request Parameter + +See parameter model documentation at [AiNameParsedRequest](AiNameParsedRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# format + +```python +format(self, request: AiNameFormatRequest) +``` + +Formats a person's name in correct case and name order using options for formatting instructions. + +### Return type + +AiNameFormatted + +### request Parameter +```python +AiNameFormatRequest( + name, + language, + location, + encoding, + script, + format, + style) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str** | A name to format. | + **language** | **str** | An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). | [optional] [default to ] + **location** | **str** | A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. | [optional] [default to ] + **encoding** | **str** | A character encoding name. | [optional] [default to ] + **script** | **str** | A writing system code; starts with the ISO-15924 script name. | [optional] [default to ] + **format** | **str** | Format of the name. Predefined format can be used by ID, or custom format can be specified. Predefined formats: /format/default/ (= '%t%F%m%N%L%p') /format/FN+LN/ (= '%F%L') /format/title+FN+LN/ (= '%t%F%L') /format/FN+MN+LN/ (= '%F%M%N%L') /format/title+FN+MN+LN/ (= '%t%F%M%N%L') /format/FN+MI+LN/ (= '%F%m%N%L') /format/title+FN+MI+LN/ (= '%t%F%m%N%L') /format/LN/ (= '%L') /format/title+LN/ (= '%t%L') /format/LN+FN+MN/ (= '%L,%F%M%N') /format/LN+title+FN+MN/ (= '%L,%t%F%M%N') /format/LN+FN+MI/ (= '%L,%F%m%N') /format/LN+title+FN+MI/ (= '%L,%t%F%m%N') Custom format string - custom combination of characters and the next term placeholders: '%t' - Title (prefix) '%F' - First name '%f' - First initial '%M' - Middle name(s) '%m' - Middle initial(s) '%N' - Nickname '%L' - Last name '%l' - Last initial '%p' - Postfix If no value for format option was provided, its default value is '%t%F%m%N%L%p' | [optional] [default to ] + **style** | **str** | Name writing style. Enum, available values: Formal, Informal, Legal, Academic | [optional] [default to 0] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# format_parsed + +```python +format_parsed(self, AiNameParsedRequest request) +``` + +Formats a person's parsed name in correct case and name order using options for formatting instructions. + +### Return type + +[**AiNameFormatted**](AiNameFormatted.md) + +### request Parameter + +See parameter model documentation at [AiNameParsedRequest](AiNameParsedRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# genderize + +```python +genderize(self, request: AiNameGenderizeRequest) +``` + +Detect person's gender from name string. + +### Return type + +AiNameGenderHypothesisList + +### request Parameter +```python +AiNameGenderizeRequest( + name, + language, + location, + encoding, + script, + style) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str** | A name to genderize. | + **language** | **str** | An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). | [optional] [default to ] + **location** | **str** | A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. | [optional] [default to ] + **encoding** | **str** | A character encoding name. | [optional] [default to ] + **script** | **str** | A writing system code; starts with the ISO-15924 script name. | [optional] [default to ] + **style** | **str** | Name writing style. Enum, available values: Formal, Informal, Legal, Academic | [optional] [default to 0] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# genderize_parsed + +```python +genderize_parsed(self, AiNameParsedRequest request) +``` + +Detect person's gender from parsed name. + +### Return type + +[**AiNameGenderHypothesisList**](AiNameGenderHypothesisList.md) + +### request Parameter + +See parameter model documentation at [AiNameParsedRequest](AiNameParsedRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# match + +```python +match(self, request: AiNameMatchRequest) +``` + +Compare people's names. Uses options for comparing instructions. + +### Return type + +AiNameMatchResult + +### request Parameter +```python +AiNameMatchRequest( + name, + other_name, + language, + location, + encoding, + script, + style) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str** | A name to match. | + **other_name** | **str** | Another name to match. | + **language** | **str** | An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). | [optional] [default to ] + **location** | **str** | A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. | [optional] [default to ] + **encoding** | **str** | A character encoding name. | [optional] [default to ] + **script** | **str** | A writing system code; starts with the ISO-15924 script name. | [optional] [default to ] + **style** | **str** | Name writing style. Enum, available values: Formal, Informal, Legal, Academic | [optional] [default to 0] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# match_parsed + +```python +match_parsed(self, AiNameMatchParsedRequest request) +``` + +Compare people's parsed names and attributes. Uses options for comparing instructions. + +### Return type + +[**AiNameMatchResult**](AiNameMatchResult.md) + +### request Parameter + +See parameter model documentation at [AiNameMatchParsedRequest](AiNameMatchParsedRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# parse + +```python +parse(self, request: AiNameParseRequest) +``` + +Parse name to components. + +### Return type + +AiNameComponentList + +### request Parameter +```python +AiNameParseRequest( + name, + language, + location, + encoding, + script, + style) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str** | A name to parse. | + **language** | **str** | An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). | [optional] [default to ] + **location** | **str** | A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. | [optional] [default to ] + **encoding** | **str** | A character encoding name. | [optional] [default to ] + **script** | **str** | A writing system code; starts with the ISO-15924 script name. | [optional] [default to ] + **style** | **str** | Name writing style. Enum, available values: Formal, Informal, Legal, Academic | [optional] [default to 0] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# parse_email_address + +```python +parse_email_address(self, request: AiNameParseEmailAddressRequest) +``` + +Parse person's name out of an email address. + +### Return type + +AiNameExtractedList + +### request Parameter +```python +AiNameParseEmailAddressRequest( + email_address, + language, + location, + encoding, + script, + style) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **email_address** | **str** | Email address to parse. | + **language** | **str** | An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian). | [optional] [default to ] + **location** | **str** | A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France. | [optional] [default to ] + **encoding** | **str** | A character encoding name. | [optional] [default to ] + **script** | **str** | A writing system code; starts with the ISO-15924 script name. | [optional] [default to ] + **style** | **str** | Name writing style. Enum, available values: Formal, Informal, Legal, Academic | [optional] [default to 0] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + diff --git a/sdk/docs/AiNameApi_list.md b/sdk/docs/AiNameApi_list.md new file mode 100644 index 0000000..a740780 --- /dev/null +++ b/sdk/docs/AiNameApi_list.md @@ -0,0 +1,18 @@ + +## Documentation for AiNameApi operations + +All URIs are relative to *https://api.aspose.cloud/v4.0* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**complete**](AiNameApi.md#complete)| **GET** /email/AiName/complete| The call proposes k most probable names for given starting characters. +[**expand**](AiNameApi.md#expand)| **GET** /email/AiName/expand| Expands a person's name into a list of possible alternatives using options for expanding instructions. +[**expand_parsed**](AiNameApi.md#expand_parsed)| **PUT** /email/AiName/expand-parsed| Expands a person's parsed name into a list of possible alternatives using options for expanding instructions. +[**format**](AiNameApi.md#format)| **GET** /email/AiName/format| Formats a person's name in correct case and name order using options for formatting instructions. +[**format_parsed**](AiNameApi.md#format_parsed)| **PUT** /email/AiName/format-parsed| Formats a person's parsed name in correct case and name order using options for formatting instructions. +[**genderize**](AiNameApi.md#genderize)| **GET** /email/AiName/genderize| Detect person's gender from name string. +[**genderize_parsed**](AiNameApi.md#genderize_parsed)| **PUT** /email/AiName/genderize-parsed| Detect person's gender from parsed name. +[**match**](AiNameApi.md#match)| **GET** /email/AiName/match| Compare people's names. Uses options for comparing instructions. +[**match_parsed**](AiNameApi.md#match_parsed)| **PUT** /email/AiName/match-parsed| Compare people's parsed names and attributes. Uses options for comparing instructions. +[**parse**](AiNameApi.md#parse)| **GET** /email/AiName/parse| Parse name to components. +[**parse_email_address**](AiNameApi.md#parse_email_address)| **GET** /email/AiName/parse-email-address| Parse person's name out of an email address. diff --git a/sdk/docs/AiNameComponent.md b/sdk/docs/AiNameComponent.md index 8cfd939..ef86a69 100644 --- a/sdk/docs/AiNameComponent.md +++ b/sdk/docs/AiNameComponent.md @@ -9,6 +9,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/AiNameComponentList.md b/sdk/docs/AiNameComponentList.md new file mode 100644 index 0000000..7bd4050 --- /dev/null +++ b/sdk/docs/AiNameComponentList.md @@ -0,0 +1,10 @@ +# AsposeEmailCloudSdk.models.AiNameComponentList +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + + Parent class: [ListResponseOfAiNameComponent](ListResponseOfAiNameComponent.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/AiNameCulturalContext.md b/sdk/docs/AiNameCulturalContext.md index c797fd7..d2d78da 100644 --- a/sdk/docs/AiNameCulturalContext.md +++ b/sdk/docs/AiNameCulturalContext.md @@ -10,6 +10,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/AiNameExtracted.md b/sdk/docs/AiNameExtracted.md index 36aa307..a207eee 100644 --- a/sdk/docs/AiNameExtracted.md +++ b/sdk/docs/AiNameExtracted.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/AiNameExtractedComponent.md b/sdk/docs/AiNameExtractedComponent.md index 1db13c5..348367d 100644 --- a/sdk/docs/AiNameExtractedComponent.md +++ b/sdk/docs/AiNameExtractedComponent.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/AiNameExtractedList.md b/sdk/docs/AiNameExtractedList.md new file mode 100644 index 0000000..f28f7ce --- /dev/null +++ b/sdk/docs/AiNameExtractedList.md @@ -0,0 +1,10 @@ +# AsposeEmailCloudSdk.models.AiNameExtractedList +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + + Parent class: [ListResponseOfAiNameExtracted](ListResponseOfAiNameExtracted.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/AiNameFormatted.md b/sdk/docs/AiNameFormatted.md index 6ff1246..4b7ee82 100644 --- a/sdk/docs/AiNameFormatted.md +++ b/sdk/docs/AiNameFormatted.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/AiNameGenderHypothesis.md b/sdk/docs/AiNameGenderHypothesis.md index 9d7ec2a..9c64d76 100644 --- a/sdk/docs/AiNameGenderHypothesis.md +++ b/sdk/docs/AiNameGenderHypothesis.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/AiNameGenderHypothesisList.md b/sdk/docs/AiNameGenderHypothesisList.md new file mode 100644 index 0000000..8870c28 --- /dev/null +++ b/sdk/docs/AiNameGenderHypothesisList.md @@ -0,0 +1,10 @@ +# AsposeEmailCloudSdk.models.AiNameGenderHypothesisList +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + + Parent class: [ListResponseOfAiNameGenderHypothesis](ListResponseOfAiNameGenderHypothesis.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/AiNameMatchParsedRequest.md b/sdk/docs/AiNameMatchParsedRequest.md new file mode 100644 index 0000000..fb2c475 --- /dev/null +++ b/sdk/docs/AiNameMatchParsedRequest.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.AiNameMatchParsedRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**other_parsed_name** | [**list[AiNameComponent]**](AiNameComponent.md) | Other parsed name to match | + + Parent class: [AiNameParsedRequest](AiNameParsedRequest.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/AiNameMatchResult.md b/sdk/docs/AiNameMatchResult.md index b7aa86a..32072a1 100644 --- a/sdk/docs/AiNameMatchResult.md +++ b/sdk/docs/AiNameMatchResult.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/AiNameMismatch.md b/sdk/docs/AiNameMismatch.md index 9d98d63..5e21bce 100644 --- a/sdk/docs/AiNameMismatch.md +++ b/sdk/docs/AiNameMismatch.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/AiNameParsedMatchRq.md b/sdk/docs/AiNameParsedMatchRq.md deleted file mode 100644 index 4e2e7fa..0000000 --- a/sdk/docs/AiNameParsedMatchRq.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.AiNameParsedMatchRq -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**other_parsed_name** | [**list[AiNameComponent]**](AiNameComponent.md) | Other parsed name to match | - - Parent class: [AiNameParsedRq](AiNameParsedRq.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/AiNameParsedRq.md b/sdk/docs/AiNameParsedRequest.md similarity index 89% rename from sdk/docs/AiNameParsedRq.md rename to sdk/docs/AiNameParsedRequest.md index 8f81768..cd9df85 100644 --- a/sdk/docs/AiNameParsedRq.md +++ b/sdk/docs/AiNameParsedRequest.md @@ -1,4 +1,4 @@ -# AsposeEmailCloudSdk.models.AiNameParsedRq +# AsposeEmailCloudSdk.models.AiNameParsedRequest ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- @@ -8,6 +8,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/AiNameWeighted.md b/sdk/docs/AiNameWeighted.md index 5f496bf..b947371 100644 --- a/sdk/docs/AiNameWeighted.md +++ b/sdk/docs/AiNameWeighted.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/AiNameWeightedVariants.md b/sdk/docs/AiNameWeightedVariants.md index 038d834..753d4c1 100644 --- a/sdk/docs/AiNameWeightedVariants.md +++ b/sdk/docs/AiNameWeightedVariants.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/AlternateView.md b/sdk/docs/AlternateView.md index 7110ff7..d43a2f9 100644 --- a/sdk/docs/AlternateView.md +++ b/sdk/docs/AlternateView.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes Parent class: [AttachmentBase](AttachmentBase.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/AppendEmailAccountBaseRequest.md b/sdk/docs/AppendEmailAccountBaseRequest.md deleted file mode 100644 index 4ec9fef..0000000 --- a/sdk/docs/AppendEmailAccountBaseRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.AppendEmailAccountBaseRequest -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**folder** | **str** | Email account folder to store a message | -**mark_as_sent** | **bool** | Mark message as sent | - - 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/AppendEmailBaseRequest.md b/sdk/docs/AppendEmailBaseRequest.md deleted file mode 100644 index 6eca56a..0000000 --- a/sdk/docs/AppendEmailBaseRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.AppendEmailBaseRequest -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email_file** | [**StorageFileLocation**](StorageFileLocation.md) | Email document file location in storage | - - Parent class: [AppendEmailAccountBaseRequest](AppendEmailAccountBaseRequest.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/AppendEmailMimeBaseRequest.md b/sdk/docs/AppendEmailMimeBaseRequest.md deleted file mode 100644 index fdf1b34..0000000 --- a/sdk/docs/AppendEmailMimeBaseRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.AppendEmailMimeBaseRequest -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**base64_mime_message** | **str** | Email document serialized as MIME string | - - Parent class: [AppendEmailAccountBaseRequest](AppendEmailAccountBaseRequest.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/AppendEmailModelRq.md b/sdk/docs/AppendEmailModelRq.md deleted file mode 100644 index 51920ba..0000000 --- a/sdk/docs/AppendEmailModelRq.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.AppendEmailModelRq -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | [**EmailDto**](EmailDto.md) | Email document | - - Parent class: [AppendEmailAccountBaseRequest](AppendEmailAccountBaseRequest.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/AssociatedPerson.md b/sdk/docs/AssociatedPerson.md index f9103ea..046dbd8 100644 --- a/sdk/docs/AssociatedPerson.md +++ b/sdk/docs/AssociatedPerson.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/Attachment.md b/sdk/docs/Attachment.md index eb77db0..0f0856c 100644 --- a/sdk/docs/Attachment.md +++ b/sdk/docs/Attachment.md @@ -10,6 +10,6 @@ Name | Type | Description | Notes Parent class: [AttachmentBase](AttachmentBase.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/AttachmentBase.md b/sdk/docs/AttachmentBase.md index a2847ff..fffefad 100644 --- a/sdk/docs/AttachmentBase.md +++ b/sdk/docs/AttachmentBase.md @@ -9,6 +9,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/BaseObject.md b/sdk/docs/BaseObject.md deleted file mode 100644 index ce59925..0000000 --- a/sdk/docs/BaseObject.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.BaseObject -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Gets or sets the name of an object. | [optional] -**type** | **str** | Property type. Used for deserialization purposes | [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/CalendarApi.md b/sdk/docs/CalendarApi.md new file mode 100644 index 0000000..80eb3a1 --- /dev/null +++ b/sdk/docs/CalendarApi.md @@ -0,0 +1,255 @@ +# AsposeEmailCloudSdk.CalendarApi + + + +# as_alternate + +```python +as_alternate(self, CalendarAsAlternateRequest request) +``` + +Convert iCalendar to AlternateView + +### Return type + +[**AlternateView**](AlternateView.md) + +### request Parameter + +See parameter model documentation at [CalendarAsAlternateRequest](CalendarAsAlternateRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# as_file + +```python +as_file(self, CalendarAsFileRequest request) +``` + +Converts calendar model to specified format and returns as file. + +### Return type + +**Stream** + +### request Parameter + +See parameter model documentation at [CalendarAsFileRequest](CalendarAsFileRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# as_mapi + +```python +as_mapi(self, CalendarDto calendar_dto) +``` + +Converts CalendarDto to MapiCalendarDto. + +### Return type + +[**MapiCalendarDto**](MapiCalendarDto.md) + +### calendar_dto Parameter + +See parameter model documentation at [CalendarDto](CalendarDto.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# convert + +```python +convert(self, request: CalendarConvertRequest) +``` + +Converts calendar document to specified format and returns as file. + +### Return type + +str + +### request Parameter +```python +CalendarConvertRequest( + format, + file) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **format** | **str** | File format. Enum, available values: Ics, Msg | + **file** | **str** | File to convert | + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# from_file + +```python +from_file(self, request: CalendarFromFileRequest) +``` + +Converts calendar document to a model representation. + +### Return type + +CalendarDto + +### request Parameter +```python +CalendarFromFileRequest( + file) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file** | **str** | File to convert | + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# get + +```python +get(self, request: CalendarGetRequest) +``` + +Get calendar file from storage. + +### Return type + +CalendarDto + +### request Parameter +```python +CalendarGetRequest( + file_name, + folder, + storage) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file_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 Model list]](Models.md) [[Back to README]](README.md) + + +# get_as_alternate + +```python +get_as_alternate(self, request: CalendarGetAsAlternateRequest) +``` + +Get iCalendar from storage as AlternateView + +### Return type + +AlternateView + +### request Parameter +```python +CalendarGetAsAlternateRequest( + file_name, + calendar_action, + sequence_id, + folder, + storage) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file_name** | **str** | iCalendar file name in storage | + **calendar_action** | **str** | iCalendar method type Enum, available values: Create, Update, Cancel | + **sequence_id** | **str** | The sequence id | [optional] + **folder** | **str** | Path to folder in storage | [optional] + **storage** | **str** | Storage name | [optional] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# get_as_file + +```python +get_as_file(self, request: CalendarGetAsFileRequest) +``` + +Converts calendar document from storage to specified format and returns as file. + +### Return type + +str + +### request Parameter +```python +CalendarGetAsFileRequest( + file_name, + format, + storage, + 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 Model list]](Models.md) [[Back to README]](README.md) + + +# get_list + +```python +get_list(self, request: CalendarGetListRequest) +``` + +Get iCalendar list from storage folder. + +### Return type + +CalendarStorageList + +### request Parameter +```python +CalendarGetListRequest( + folder, + items_per_page, + page_number, + storage) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **folder** | **str** | Path to folder in storage. | + **items_per_page** | **int** | Count of items on page. | [optional] [default to 10] + **page_number** | **int** | Page number. | [optional] [default to 0] + **storage** | **str** | Storage name. | [optional] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# save + +```python +save(self, CalendarSaveRequest request) +``` + +Save iCalendar + +### Return type + +void (empty response body) + +### request Parameter + +See parameter model documentation at [CalendarSaveRequest](CalendarSaveRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + diff --git a/sdk/docs/CalendarApi_list.md b/sdk/docs/CalendarApi_list.md new file mode 100644 index 0000000..2b58338 --- /dev/null +++ b/sdk/docs/CalendarApi_list.md @@ -0,0 +1,17 @@ + +## Documentation for CalendarApi operations + +All URIs are relative to *https://api.aspose.cloud/v4.0* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**as_alternate**](CalendarApi.md#as_alternate)| **PUT** /email/Calendar/as-alternate| Convert iCalendar to AlternateView +[**as_file**](CalendarApi.md#as_file)| **PUT** /email/Calendar/as-file| Converts calendar model to specified format and returns as file. +[**as_mapi**](CalendarApi.md#as_mapi)| **PUT** /email/Calendar/as-mapi| Converts CalendarDto to MapiCalendarDto. +[**convert**](CalendarApi.md#convert)| **PUT** /email/Calendar/convert| Converts calendar document to specified format and returns as file. +[**from_file**](CalendarApi.md#from_file)| **PUT** /email/Calendar/from-file| Converts calendar document to a model representation. +[**get**](CalendarApi.md#get)| **GET** /email/Calendar| Get calendar file from storage. +[**get_as_alternate**](CalendarApi.md#get_as_alternate)| **GET** /email/Calendar/as-alternate| Get iCalendar from storage as AlternateView +[**get_as_file**](CalendarApi.md#get_as_file)| **GET** /email/Calendar/as-file| Converts calendar document from storage to specified format and returns as file. +[**get_list**](CalendarApi.md#get_list)| **GET** /email/Calendar/list| Get iCalendar list from storage folder. +[**save**](CalendarApi.md#save)| **PUT** /email/Calendar| Save iCalendar diff --git a/sdk/docs/CalendarDtoAlternateRq.md b/sdk/docs/CalendarAsAlternateRequest.md similarity index 64% rename from sdk/docs/CalendarDtoAlternateRq.md rename to sdk/docs/CalendarAsAlternateRequest.md index c440607..ca5e7e4 100644 --- a/sdk/docs/CalendarDtoAlternateRq.md +++ b/sdk/docs/CalendarAsAlternateRequest.md @@ -1,4 +1,4 @@ -# AsposeEmailCloudSdk.models.CalendarDtoAlternateRq +# AsposeEmailCloudSdk.models.CalendarAsAlternateRequest ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- @@ -8,6 +8,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/CalendarAsFileRequest.md b/sdk/docs/CalendarAsFileRequest.md new file mode 100644 index 0000000..6dec9cf --- /dev/null +++ b/sdk/docs/CalendarAsFileRequest.md @@ -0,0 +1,12 @@ +# AsposeEmailCloudSdk.models.CalendarAsFileRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format** | **str** | Calendar file format Enum, available values: Ics, Msg | +**value** | [**CalendarDto**](CalendarDto.md) | iCalendar model | + + + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/CalendarDto.md b/sdk/docs/CalendarDto.md index 0e460c8..aa51a94 100644 --- a/sdk/docs/CalendarDto.md +++ b/sdk/docs/CalendarDto.md @@ -27,6 +27,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/CalendarReminder.md b/sdk/docs/CalendarReminder.md index b1b1b81..e54dd7a 100644 --- a/sdk/docs/CalendarReminder.md +++ b/sdk/docs/CalendarReminder.md @@ -13,6 +13,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/CalendarSaveRequest.md b/sdk/docs/CalendarSaveRequest.md new file mode 100644 index 0000000..263beb5 --- /dev/null +++ b/sdk/docs/CalendarSaveRequest.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.CalendarSaveRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format** | **str** | Calendar file format Enum, available values: Ics, Msg | + + Parent class: [StorageModelOfCalendarDto](StorageModelOfCalendarDto.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/CalendarDtoList.md b/sdk/docs/CalendarStorageList.md similarity index 51% rename from sdk/docs/CalendarDtoList.md rename to sdk/docs/CalendarStorageList.md index 46d9684..ab303a7 100644 --- a/sdk/docs/CalendarDtoList.md +++ b/sdk/docs/CalendarStorageList.md @@ -1,10 +1,10 @@ -# AsposeEmailCloudSdk.models.CalendarDtoList +# AsposeEmailCloudSdk.models.CalendarStorageList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- Parent class: [ListResponseOfStorageModelOfCalendarDto](ListResponseOfStorageModelOfCalendarDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ClientAccountApi.md b/sdk/docs/ClientAccountApi.md new file mode 100644 index 0000000..3480e12 --- /dev/null +++ b/sdk/docs/ClientAccountApi.md @@ -0,0 +1,99 @@ +# AsposeEmailCloudSdk.ClientAccountApi + + + +# get + +```python +get(self, request: ClientAccountGetRequest) +``` + +Get email client account from storage. + +### Return type + +EmailClientAccount + +### request Parameter +```python +ClientAccountGetRequest( + file_name, + folder, + storage) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file_name** | **str** | File name on storage. | + **folder** | **str** | Folder on storage. | [optional] + **storage** | **str** | Storage name. | [optional] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# get_multi + +```python +get_multi(self, request: ClientAccountGetMultiRequest) +``` + +Get email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\". + +### Return type + +EmailClientMultiAccount + +### request Parameter +```python +ClientAccountGetMultiRequest( + file_name, + folder, + storage) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file_name** | **str** | File name on storage | + **folder** | **str** | Folder on storage | [optional] + **storage** | **str** | Storage name | [optional] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# save + +```python +save(self, ClientAccountSaveRequest request) +``` + +Create/update email client account file (*.account) with credentials + +### Return type + +void (empty response body) + +### request Parameter + +See parameter model documentation at [ClientAccountSaveRequest](ClientAccountSaveRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# save_multi + +```python +save_multi(self, ClientAccountSaveMultiRequest request) +``` + +Create email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\". + +### Return type + +void (empty response body) + +### request Parameter + +See parameter model documentation at [ClientAccountSaveMultiRequest](ClientAccountSaveMultiRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + diff --git a/sdk/docs/ClientAccountApi_list.md b/sdk/docs/ClientAccountApi_list.md new file mode 100644 index 0000000..a0ef72d --- /dev/null +++ b/sdk/docs/ClientAccountApi_list.md @@ -0,0 +1,11 @@ + +## Documentation for ClientAccountApi operations + +All URIs are relative to *https://api.aspose.cloud/v4.0* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get**](ClientAccountApi.md#get)| **GET** /email/client/account| Get email client account from storage. +[**get_multi**](ClientAccountApi.md#get_multi)| **GET** /email/client/account/multi| Get email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\". +[**save**](ClientAccountApi.md#save)| **PUT** /email/client/account| Create/update email client account file (*.account) with credentials +[**save_multi**](ClientAccountApi.md#save_multi)| **PUT** /email/client/account/multi| Create email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\". diff --git a/sdk/docs/ClientAccountBaseRequest.md b/sdk/docs/ClientAccountBaseRequest.md new file mode 100644 index 0000000..1c689cc --- /dev/null +++ b/sdk/docs/ClientAccountBaseRequest.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.ClientAccountBaseRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_location** | [**StorageFileLocation**](StorageFileLocation.md) | Email client account configuration location on storage. | + + + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/ClientAccountSaveMultiRequest.md b/sdk/docs/ClientAccountSaveMultiRequest.md new file mode 100644 index 0000000..9ed8102 --- /dev/null +++ b/sdk/docs/ClientAccountSaveMultiRequest.md @@ -0,0 +1,10 @@ +# AsposeEmailCloudSdk.models.ClientAccountSaveMultiRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + + Parent class: [StorageModelOfEmailClientMultiAccount](StorageModelOfEmailClientMultiAccount.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/ClientAccountSaveRequest.md b/sdk/docs/ClientAccountSaveRequest.md new file mode 100644 index 0000000..f016831 --- /dev/null +++ b/sdk/docs/ClientAccountSaveRequest.md @@ -0,0 +1,10 @@ +# AsposeEmailCloudSdk.models.ClientAccountSaveRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + + Parent class: [StorageModelOfEmailClientAccount](StorageModelOfEmailClientAccount.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/ClientFolderApi.md b/sdk/docs/ClientFolderApi.md new file mode 100644 index 0000000..bff40dc --- /dev/null +++ b/sdk/docs/ClientFolderApi.md @@ -0,0 +1,72 @@ +# AsposeEmailCloudSdk.ClientFolderApi + + + +# create + +```python +create(self, ClientFolderCreateRequest request) +``` + +Create new folder in email account + +### Return type + +void (empty response body) + +### request Parameter + +See parameter model documentation at [ClientFolderCreateRequest](ClientFolderCreateRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# delete + +```python +delete(self, ClientFolderDeleteRequest request) +``` + +Delete a folder in email account + +### Return type + +void (empty response body) + +### request Parameter + +See parameter model documentation at [ClientFolderDeleteRequest](ClientFolderDeleteRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# get_list + +```python +get_list(self, request: ClientFolderGetListRequest) +``` + +Get folders list in email account + +### Return type + +MailServerFolderList + +### request Parameter +```python +ClientFolderGetListRequest( + account, + storage, + account_storage_folder, + parent_folder) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str** | Email account | + **storage** | **str** | Storage name where account file located | [optional] + **account_storage_folder** | **str** | Folder in storage where account file located | [optional] + **parent_folder** | **str** | Folder in which subfolders should be listed | [optional] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + diff --git a/sdk/docs/ClientFolderApi_list.md b/sdk/docs/ClientFolderApi_list.md new file mode 100644 index 0000000..c5188a4 --- /dev/null +++ b/sdk/docs/ClientFolderApi_list.md @@ -0,0 +1,10 @@ + +## Documentation for ClientFolderApi operations + +All URIs are relative to *https://api.aspose.cloud/v4.0* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create**](ClientFolderApi.md#create)| **PUT** /email/client/folder| Create new folder in email account +[**delete**](ClientFolderApi.md#delete)| **DELETE** /email/client/folder| Delete a folder in email account +[**get_list**](ClientFolderApi.md#get_list)| **GET** /email/client/folder/list| Get folders list in email account diff --git a/sdk/docs/ClientFolderCreateRequest.md b/sdk/docs/ClientFolderCreateRequest.md new file mode 100644 index 0000000..39f2a10 --- /dev/null +++ b/sdk/docs/ClientFolderCreateRequest.md @@ -0,0 +1,12 @@ +# AsposeEmailCloudSdk.models.ClientFolderCreateRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**parent_folder** | **str** | Path to parent folder. | [optional] +**folder_name** | **str** | Folder name. | + + Parent class: [ClientAccountBaseRequest](ClientAccountBaseRequest.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/ClientFolderDeleteRequest.md b/sdk/docs/ClientFolderDeleteRequest.md new file mode 100644 index 0000000..4fac1fd --- /dev/null +++ b/sdk/docs/ClientFolderDeleteRequest.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.ClientFolderDeleteRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**folder** | **str** | Path to folder to delete. | + + Parent class: [ClientAccountBaseRequest](ClientAccountBaseRequest.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/ClientGroup.md b/sdk/docs/ClientGroup.md new file mode 100644 index 0000000..31b93be --- /dev/null +++ b/sdk/docs/ClientGroup.md @@ -0,0 +1,9 @@ +# EmailCloud.Client +Builtin Email client operations. + +API | Description +--- | ----------- +[EmailCloud.client.**account**](ClientAccountApi_list.md) | Email server account for built-in client operations. +[EmailCloud.client.**folder**](ClientFolderApi_list.md) | Email client folder operations. +[EmailCloud.client.**message**](ClientMessageApi_list.md) | Email client message operations. +[EmailCloud.client.**thread**](ClientThreadApi_list.md) | Email client thread operations. diff --git a/sdk/docs/ClientMessageApi.md b/sdk/docs/ClientMessageApi.md new file mode 100644 index 0000000..275bcbc --- /dev/null +++ b/sdk/docs/ClientMessageApi.md @@ -0,0 +1,281 @@ +# AsposeEmailCloudSdk.ClientMessageApi + + + +# append + +```python +append(self, ClientMessageAppendRequest request) +``` + +Add email message to specified folder in email account. + +### Return type + +[**ValueTOfString**](ValueTOfString.md) + +### request Parameter + +See parameter model documentation at [ClientMessageAppendRequest](ClientMessageAppendRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# append_file + +```python +append_file(self, request: ClientMessageAppendFileRequest) +``` + +Add email message from file to specified folder in email account. + +### Return type + +ValueTOfString + +### request Parameter +```python +ClientMessageAppendFileRequest( + account, + file, + storage, + account_storage_folder, + format, + folder, + mark_as_sent) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str** | Email account. | + **file** | **str** | Message file to append. | + **storage** | **str** | Storage name where account file located. | [optional] + **account_storage_folder** | **str** | Folder in storage where account file located. | [optional] + **format** | **str** | Email file format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | [optional] [default to 0] + **folder** | **str** | Path to folder on email server to append message to. | [optional] + **mark_as_sent** | **bool** | Determines that appended message should be market as sent or not. | [optional] [default to true] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# delete + +```python +delete(self, ClientMessageDeleteRequest request) +``` + +Delete message. + +### Return type + +void (empty response body) + +### request Parameter + +See parameter model documentation at [ClientMessageDeleteRequest](ClientMessageDeleteRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# fetch + +```python +fetch(self, request: ClientMessageFetchRequest) +``` + +Fetch message from email account + +### Return type + +MailMessageBase + +### request Parameter +```python +ClientMessageFetchRequest( + message_id, + account, + folder, + storage, + account_storage_folder, + type, + format) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **message_id** | **str** | Message identifier | + **account** | **str** | Email account | + **folder** | **str** | Account folder to fetch from (should be specified for some protocols such as IMAP) | [optional] + **storage** | **str** | Storage name where account file located. | [optional] + **account_storage_folder** | **str** | Folder in storage where account file located. | [optional] + **type** | **str** | MailMessageBase type. Using this property you can fetch message in different formats (as EmailDto, MapiMessageDto or a file represented as Base64 string). Enum, available values: Dto, Mapi, Base64 | [optional] [default to 0] + **format** | **str** | Base64 data format. Used only if type is set to Base64. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | [optional] [default to 0] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# fetch_file + +```python +fetch_file(self, request: ClientMessageFetchFileRequest) +``` + +Fetch message as file from email account + +### Return type + +str + +### request Parameter +```python +ClientMessageFetchFileRequest( + message_id, + account, + folder, + storage, + account_storage_folder, + format) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **message_id** | **str** | Message identifier | + **account** | **str** | Email account | + **folder** | **str** | Account folder to fetch from (should be specified for some protocols such as IMAP) | [optional] + **storage** | **str** | Storage name where account file located. | [optional] + **account_storage_folder** | **str** | Folder in storage where account file located. | [optional] + **format** | **str** | Fetched message file format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | [optional] [default to 0] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# list + +```python +list(self, request: ClientMessageListRequest) +``` + +Get messages from folder, filtered by query + +The query string should have the following view. The example of a simple expression: '' '', where <Field Name> - the name of a message field through which filtering is made, <Comparison operator> - comparison operators, as their name implies, allow to compare message field and specified value, <Field value> - value to be compared with a message field. The number of simple expressions can make a compound one, ex.: ( & ) | , where \"&\" - logical-AND operator, \"|\" - logical-OR operator At present the following values are allowed as a field name (): \"To\" - represents a TO field of message, \"Text\" - represents string in the header or body of the message, \"Bcc\" - represents a BCC field of message, \"Body\" - represents a string in the body of message, \"Cc\" - represents a CC field of message, \"From\" - represents a From field of message, \"Subject\" - represents a string in the subject of message, \"InternalDate\" - represents an internal date of message, \"SentDate\" - represents a sent date of message Additionally, the following field names are allowed for IMAP-protocol: \"Answered\" - represents an /Answered flag of message \"Seen\" - represents a /Seen flag of message \"Flagged\" - represents a /Flagged flag of message \"Draft\" - represents a /Draft flag of message \"Deleted\" - represents a Deleted/ flag of message \"Recent\" - represents a Deleted/ flag of message \"MessageSize\" - represents a size (in bytes) of message Additionally, the following field names are allowed for Exchange: \"IsRead\" - Indicates whether the message has been read \"HasAttachment\" - Indicates whether or not the message has attachments \"IsSubmitted\" - Indicates whether the message has been submitted to the Outbox \"ContentClass\" - represents a content class of item Additionally, the following field names are allowed for pst/ost files: \"MessageClass\" - Represents a message class \"ContainerClass\" - Represents a folder container class \"Importance\" - Represents a message importance \"MessageSize\" - represents a size (in bytes) of message \"FolderName\" - represents a folder name \"ContentsCount\" - represents a total number of items in the folder \"UnreadContentsCount\" - represents the number of unread items in the folder. \"Subfolders\" - Indicates whether or not the folder has subfolders \"Read\" - the message is marked as having been read \"HasAttachment\" - the message has at least one attachment \"Unsent\" - the message is still being composed \"Unmodified\" - the message has not been modified since it was first saved (if unsent) or it was delivered (if sent) \"FromMe\" - the user receiving the message was also the user who sent the message \"Resend\" - the message includes a request for a resend operation with a non-delivery report \"NotifyRead\" - the user who sent the message has requested notification when a recipient first reads it \"NotifyUnread\" - the user who sent the message has requested notification when a recipient deletes it before reading or the Message object expires \"EverRead\" - the message has been read at least once The field value () can take the following values: For text fields - any string, For date type fields - the string of \"d-MMM-yyy\" format, ex. \"10-Feb-2009\", For flags (fields of boolean type) - either \"True\", or \"False\" + +### Return type + +MailMessageBaseList + +### request Parameter +```python +ClientMessageListRequest( + folder, + account, + query_string, + storage, + account_storage_folder, + recursive, + type, + format) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **folder** | **str** | A folder in email account | + **account** | **str** | Email account | + **query_string** | **str** | A MailQuery search string | [optional] + **storage** | **str** | Storage name where account file located | [optional] + **account_storage_folder** | **str** | Folder in storage where account file located | [optional] + **recursive** | **bool** | Specifies that should message be searched in subfolders recursively | [optional] [default to false] + **type** | **str** | MailMessageBase type. Using this property you can get messages in different formats (as EmailDto, MapiMessageDto or a file represented as Base64 string). Enum, available values: Dto, Mapi, Base64 | [optional] [default to 0] + **format** | **str** | Base64 data format. Used only if type is set to Base64. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | [optional] [default to 0] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# move + +```python +move(self, ClientMessageMoveRequest request) +``` + +Move message to another folder. + +### Return type + +void (empty response body) + +### request Parameter + +See parameter model documentation at [ClientMessageMoveRequest](ClientMessageMoveRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# send + +```python +send(self, ClientMessageSendRequest request) +``` + +Send an email specified by model in request. + +### Return type + +void (empty response body) + +### request Parameter + +See parameter model documentation at [ClientMessageSendRequest](ClientMessageSendRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# send_file + +```python +send_file(self, request: ClientMessageSendFileRequest) +``` + +Send an email file. + +### Return type + +None + +### request Parameter +```python +ClientMessageSendFileRequest( + account, + file, + storage, + account_storage_folder, + format) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str** | Email account | + **file** | **str** | File to send | + **storage** | **str** | Storage name where account file located. | [optional] + **account_storage_folder** | **str** | Folder in storage where account file located. | [optional] + **format** | **str** | Email file format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | [optional] [default to 0] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# set_is_read + +```python +set_is_read(self, ClientMessageSetIsReadRequest request) +``` + +Mark message as read or unread. + +### Return type + +void (empty response body) + +### request Parameter + +See parameter model documentation at [ClientMessageSetIsReadRequest](ClientMessageSetIsReadRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + diff --git a/sdk/docs/ClientMessageApi_list.md b/sdk/docs/ClientMessageApi_list.md new file mode 100644 index 0000000..2e310c8 --- /dev/null +++ b/sdk/docs/ClientMessageApi_list.md @@ -0,0 +1,17 @@ + +## Documentation for ClientMessageApi operations + +All URIs are relative to *https://api.aspose.cloud/v4.0* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**append**](ClientMessageApi.md#append)| **POST** /email/client/message/append| Add email message to specified folder in email account. +[**append_file**](ClientMessageApi.md#append_file)| **POST** /email/client/message/file/append| Add email message from file to specified folder in email account. +[**delete**](ClientMessageApi.md#delete)| **DELETE** /email/client/message| Delete message. +[**fetch**](ClientMessageApi.md#fetch)| **GET** /email/client/message| Fetch message from email account +[**fetch_file**](ClientMessageApi.md#fetch_file)| **GET** /email/client/message/file| Fetch message as file from email account +[**list**](ClientMessageApi.md#list)| **GET** /email/client/message/list| Get messages from folder, filtered by query +[**move**](ClientMessageApi.md#move)| **PUT** /email/client/message/move| Move message to another folder. +[**send**](ClientMessageApi.md#send)| **POST** /email/client/message| Send an email specified by model in request. +[**send_file**](ClientMessageApi.md#send_file)| **POST** /email/client/message/file| Send an email file. +[**set_is_read**](ClientMessageApi.md#set_is_read)| **PUT** /email/client/message/set-is-read| Mark message as read or unread. diff --git a/sdk/docs/ClientMessageAppendRequest.md b/sdk/docs/ClientMessageAppendRequest.md new file mode 100644 index 0000000..7d92a06 --- /dev/null +++ b/sdk/docs/ClientMessageAppendRequest.md @@ -0,0 +1,13 @@ +# AsposeEmailCloudSdk.models.ClientMessageAppendRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**folder** | **str** | Path to folder on email server to append message to. | [optional] +**message** | [**MailMessageBase**](MailMessageBase.md) | Message to append. | +**mark_as_sent** | **bool** | Determines that appended message should be market as sent or not. | + + Parent class: [ClientAccountBaseRequest](ClientAccountBaseRequest.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/ClientMessageBaseRequest.md b/sdk/docs/ClientMessageBaseRequest.md new file mode 100644 index 0000000..907ebd9 --- /dev/null +++ b/sdk/docs/ClientMessageBaseRequest.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.ClientMessageBaseRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message_id** | **str** | Message identifier. | + + Parent class: [ClientAccountBaseRequest](ClientAccountBaseRequest.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/ClientMessageDeleteRequest.md b/sdk/docs/ClientMessageDeleteRequest.md new file mode 100644 index 0000000..ed546fa --- /dev/null +++ b/sdk/docs/ClientMessageDeleteRequest.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.ClientMessageDeleteRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**folder** | **str** | Folder to delete message from. | [optional] + + Parent class: [ClientMessageBaseRequest](ClientMessageBaseRequest.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/ClientMessageMoveRequest.md b/sdk/docs/ClientMessageMoveRequest.md new file mode 100644 index 0000000..fa70267 --- /dev/null +++ b/sdk/docs/ClientMessageMoveRequest.md @@ -0,0 +1,12 @@ +# AsposeEmailCloudSdk.models.ClientMessageMoveRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**source_folder** | **str** | Folder to move message from. | [optional] +**destination_folder** | **str** | Folder to move message to. | + + Parent class: [ClientMessageBaseRequest](ClientMessageBaseRequest.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/ClientMessageSendRequest.md b/sdk/docs/ClientMessageSendRequest.md new file mode 100644 index 0000000..c724626 --- /dev/null +++ b/sdk/docs/ClientMessageSendRequest.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.ClientMessageSendRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | [**MailMessageBase**](MailMessageBase.md) | Message to send | + + Parent class: [ClientAccountBaseRequest](ClientAccountBaseRequest.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/ClientMessageSetIsReadRequest.md b/sdk/docs/ClientMessageSetIsReadRequest.md new file mode 100644 index 0000000..f1069c8 --- /dev/null +++ b/sdk/docs/ClientMessageSetIsReadRequest.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.ClientMessageSetIsReadRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_read** | **bool** | Message is read flag. | + + Parent class: [ClientMessageBaseRequest](ClientMessageBaseRequest.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/ClientThreadApi.md b/sdk/docs/ClientThreadApi.md new file mode 100644 index 0000000..f1aacb0 --- /dev/null +++ b/sdk/docs/ClientThreadApi.md @@ -0,0 +1,128 @@ +# AsposeEmailCloudSdk.ClientThreadApi + + + +# delete + +```python +delete(self, ClientThreadDeleteRequest request) +``` + +Delete thread by id. All messages from thread will also be deleted. + +### Return type + +void (empty response body) + +### request Parameter + +See parameter model documentation at [ClientThreadDeleteRequest](ClientThreadDeleteRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# get_list + +```python +get_list(self, request: ClientThreadGetListRequest) +``` + +Get message threads from folder. All messages are partly fetched (without email body and some other fields). + +### Return type + +EmailThreadList + +### request Parameter +```python +ClientThreadGetListRequest( + folder, + account, + storage, + account_storage_folder, + update_folder_cache, + messages_cache_limit) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **folder** | **str** | A folder in email account. | + **account** | **str** | Email account | + **storage** | **str** | Storage name where account file located | [optional] + **account_storage_folder** | **str** | Folder in storage where account file 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 Model list]](Models.md) [[Back to README]](README.md) + + +# get_messages + +```python +get_messages(self, request: ClientThreadGetMessagesRequest) +``` + +Get messages from thread by id. All messages are fully fetched. For accounts with CacheFile only cached messages will be returned. + +### Return type + +EmailList + +### request Parameter +```python +ClientThreadGetMessagesRequest( + thread_id, + account, + folder, + storage, + account_storage_folder) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **thread_id** | **str** | Thread identifier | + **account** | **str** | Email account | + **folder** | **str** | Specifies account folder to get thread from | [optional] + **storage** | **str** | Storage name where account file located | [optional] + **account_storage_folder** | **str** | Folder in storage where account file located | [optional] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# move + +```python +move(self, ClientThreadMoveRequest request) +``` + +Move thread to another folder. + +### Return type + +void (empty response body) + +### request Parameter + +See parameter model documentation at [ClientThreadMoveRequest](ClientThreadMoveRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# set_is_read + +```python +set_is_read(self, ClientThreadSetIsReadRequest request) +``` + +Mark all messages in thread as read or unread. + +### Return type + +void (empty response body) + +### request Parameter + +See parameter model documentation at [ClientThreadSetIsReadRequest](ClientThreadSetIsReadRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + diff --git a/sdk/docs/ClientThreadApi_list.md b/sdk/docs/ClientThreadApi_list.md new file mode 100644 index 0000000..a96ba1f --- /dev/null +++ b/sdk/docs/ClientThreadApi_list.md @@ -0,0 +1,12 @@ + +## Documentation for ClientThreadApi operations + +All URIs are relative to *https://api.aspose.cloud/v4.0* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete**](ClientThreadApi.md#delete)| **DELETE** /email/client/thread| Delete thread by id. All messages from thread will also be deleted. +[**get_list**](ClientThreadApi.md#get_list)| **GET** /email/client/thread/list| Get message threads from folder. All messages are partly fetched (without email body and some other fields). +[**get_messages**](ClientThreadApi.md#get_messages)| **GET** /email/client/thread/messages| Get messages from thread by id. All messages are fully fetched. For accounts with CacheFile only cached messages will be returned. +[**move**](ClientThreadApi.md#move)| **PUT** /email/client/thread/move| Move thread to another folder. +[**set_is_read**](ClientThreadApi.md#set_is_read)| **PUT** /email/client/thread/set-is-read| Mark all messages in thread as read or unread. diff --git a/sdk/docs/ClientThreadBaseRequest.md b/sdk/docs/ClientThreadBaseRequest.md new file mode 100644 index 0000000..bef719b --- /dev/null +++ b/sdk/docs/ClientThreadBaseRequest.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.ClientThreadBaseRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**thread_id** | **str** | Thread identifier. | + + Parent class: [ClientAccountBaseRequest](ClientAccountBaseRequest.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/ClientThreadDeleteRequest.md b/sdk/docs/ClientThreadDeleteRequest.md new file mode 100644 index 0000000..d443480 --- /dev/null +++ b/sdk/docs/ClientThreadDeleteRequest.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.ClientThreadDeleteRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**folder** | **str** | Folder on email server, where thread is stored. | [optional] + + Parent class: [ClientThreadBaseRequest](ClientThreadBaseRequest.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/ClientThreadMoveRequest.md b/sdk/docs/ClientThreadMoveRequest.md new file mode 100644 index 0000000..b84791e --- /dev/null +++ b/sdk/docs/ClientThreadMoveRequest.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.ClientThreadMoveRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**destination_folder** | **str** | Email account folder to move thread to. | + + Parent class: [ClientThreadBaseRequest](ClientThreadBaseRequest.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/ClientThreadSetIsReadRequest.md b/sdk/docs/ClientThreadSetIsReadRequest.md new file mode 100644 index 0000000..e6845dc --- /dev/null +++ b/sdk/docs/ClientThreadSetIsReadRequest.md @@ -0,0 +1,12 @@ +# AsposeEmailCloudSdk.models.ClientThreadSetIsReadRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_read** | **bool** | Message is read flag. | +**folder** | **str** | Folder on email server, where thread is stored. | [optional] + + Parent class: [ClientThreadBaseRequest](ClientThreadBaseRequest.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/CloudStorageGroup.md b/sdk/docs/CloudStorageGroup.md new file mode 100644 index 0000000..5ffdedb --- /dev/null +++ b/sdk/docs/CloudStorageGroup.md @@ -0,0 +1,8 @@ +# EmailCloud.CloudStorage +Cloud file storage operations. + +API | Description +--- | ----------- +[EmailCloud.cloud_storage.**file**](FileApi_list.md) | File operations controller +[EmailCloud.cloud_storage.**folder**](FolderApi_list.md) | Folder operations controller +[EmailCloud.cloud_storage.**storage**](StorageApi_list.md) | Storage operations controller diff --git a/sdk/docs/ContactApi.md b/sdk/docs/ContactApi.md new file mode 100644 index 0000000..c642662 --- /dev/null +++ b/sdk/docs/ContactApi.md @@ -0,0 +1,213 @@ +# AsposeEmailCloudSdk.ContactApi + + + +# as_file + +```python +as_file(self, ContactAsFileRequest request) +``` + +Converts contact model to specified format and returns as file + +### Return type + +**Stream** + +### request Parameter + +See parameter model documentation at [ContactAsFileRequest](ContactAsFileRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# as_mapi + +```python +as_mapi(self, ContactDto contact_dto) +``` + +Converts ContactDto to MapiContactDto. + +### Return type + +[**MapiContactDto**](MapiContactDto.md) + +### contact_dto Parameter + +See parameter model documentation at [ContactDto](ContactDto.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# convert + +```python +convert(self, request: ContactConvertRequest) +``` + +Converts contact document to specified format and returns as file + +### Return type + +str + +### request Parameter +```python +ContactConvertRequest( + to_format, + from_format, + file) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **to_format** | **str** | File format to convert to Enum, available values: VCard, WebDav, Msg | + **from_format** | **str** | File format to convert from Enum, available values: VCard, WebDav, Msg | + **file** | **str** | File to convert | + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# from_file + +```python +from_file(self, request: ContactFromFileRequest) +``` + +Converts contact document to a model representation + +### Return type + +ContactDto + +### request Parameter +```python +ContactFromFileRequest( + format, + file) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **format** | **str** | File format Enum, available values: VCard, WebDav, Msg | + **file** | **str** | File to convert | + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# get + +```python +get(self, request: ContactGetRequest) +``` + +Get contact document from storage. + +### Return type + +ContactDto + +### request Parameter +```python +ContactGetRequest( + format, + file_name, + folder, + storage) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **format** | **str** | Contact document format. Enum, available values: VCard, WebDav, Msg | + **file_name** | **str** | Contact document file name. | + **folder** | **str** | Path to folder in storage. | [optional] + **storage** | **str** | Storage name. | [optional] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# get_as_file + +```python +get_as_file(self, request: ContactGetAsFileRequest) +``` + +Converts contact document from storage to specified format and returns as file + +### Return type + +str + +### request Parameter +```python +ContactGetAsFileRequest( + file_name, + to_format, + from_format, + storage, + folder) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file_name** | **str** | Calendar document file name | + **to_format** | **str** | File format Enum, available values: VCard, WebDav, Msg | + **from_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 Model list]](Models.md) [[Back to README]](README.md) + + +# get_list + +```python +get_list(self, request: ContactGetListRequest) +``` + +Get contact list from storage folder. + +### Return type + +ContactStorageList + +### request Parameter +```python +ContactGetListRequest( + format, + folder, + storage, + items_per_page, + page_number) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **format** | **str** | Contact document format. Enum, available values: VCard, WebDav, Msg | + **folder** | **str** | Path to folder in storage. | [optional] + **storage** | **str** | Storage name. | [optional] + **items_per_page** | **int** | Count of items on page. | [optional] [default to 10] + **page_number** | **int** | Page number. | [optional] [default to 0] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# save + +```python +save(self, ContactSaveRequest request) +``` + +Save contact to storage. + +### Return type + +void (empty response body) + +### request Parameter + +See parameter model documentation at [ContactSaveRequest](ContactSaveRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + diff --git a/sdk/docs/ContactApi_list.md b/sdk/docs/ContactApi_list.md new file mode 100644 index 0000000..0f083e3 --- /dev/null +++ b/sdk/docs/ContactApi_list.md @@ -0,0 +1,15 @@ + +## Documentation for ContactApi operations + +All URIs are relative to *https://api.aspose.cloud/v4.0* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**as_file**](ContactApi.md#as_file)| **PUT** /email/Contact/as-file| Converts contact model to specified format and returns as file +[**as_mapi**](ContactApi.md#as_mapi)| **PUT** /email/Contact/as-mapi| Converts ContactDto to MapiContactDto. +[**convert**](ContactApi.md#convert)| **PUT** /email/Contact/convert| Converts contact document to specified format and returns as file +[**from_file**](ContactApi.md#from_file)| **PUT** /email/Contact/from-file| Converts contact document to a model representation +[**get**](ContactApi.md#get)| **GET** /email/Contact| Get contact document from storage. +[**get_as_file**](ContactApi.md#get_as_file)| **GET** /email/Contact/as-file| Converts contact document from storage to specified format and returns as file +[**get_list**](ContactApi.md#get_list)| **GET** /email/Contact/list| Get contact list from storage folder. +[**save**](ContactApi.md#save)| **PUT** /email/Contact| Save contact to storage. diff --git a/sdk/docs/ContactAsFileRequest.md b/sdk/docs/ContactAsFileRequest.md new file mode 100644 index 0000000..b45c45e --- /dev/null +++ b/sdk/docs/ContactAsFileRequest.md @@ -0,0 +1,12 @@ +# AsposeEmailCloudSdk.models.ContactAsFileRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format** | **str** | Enumerates contact formats. Enum, available values: VCard, WebDav, Msg | +**value** | [**ContactDto**](ContactDto.md) | Contact model. | + + + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/ContactDto.md b/sdk/docs/ContactDto.md index 689bdf1..33d189e 100644 --- a/sdk/docs/ContactDto.md +++ b/sdk/docs/ContactDto.md @@ -41,6 +41,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ContactList.md b/sdk/docs/ContactList.md new file mode 100644 index 0000000..e5b7df8 --- /dev/null +++ b/sdk/docs/ContactList.md @@ -0,0 +1,10 @@ +# AsposeEmailCloudSdk.models.ContactList +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + + Parent class: [ListResponseOfContactDto](ListResponseOfContactDto.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/ContactPhoto.md b/sdk/docs/ContactPhoto.md index 80cb9ca..e721135 100644 --- a/sdk/docs/ContactPhoto.md +++ b/sdk/docs/ContactPhoto.md @@ -3,11 +3,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **photo_image_format** | **str** | MapiContact photo image format. Enum, available values: Undefined, Jpeg, Gif, Wmf, Bmp, Tiff | -**base64_data** | **str** | Photo serialized as base64 string. | [optional] +**base64_data** | **str** | Photo serialized as base64 string. | **discriminator** | **str** | | -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ContactSaveRequest.md b/sdk/docs/ContactSaveRequest.md new file mode 100644 index 0000000..684bbbe --- /dev/null +++ b/sdk/docs/ContactSaveRequest.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.ContactSaveRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format** | **str** | Enumerates contact formats. Enum, available values: VCard, WebDav, Msg | + + Parent class: [StorageModelOfContactDto](StorageModelOfContactDto.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/ContactDtoList.md b/sdk/docs/ContactStorageList.md similarity index 51% rename from sdk/docs/ContactDtoList.md rename to sdk/docs/ContactStorageList.md index 0b1e7ee..7dbc545 100644 --- a/sdk/docs/ContactDtoList.md +++ b/sdk/docs/ContactStorageList.md @@ -1,10 +1,10 @@ -# AsposeEmailCloudSdk.models.ContactDtoList +# AsposeEmailCloudSdk.models.ContactStorageList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- Parent class: [ListResponseOfStorageModelOfContactDto](ListResponseOfStorageModelOfContactDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ContentType.md b/sdk/docs/ContentType.md index a5eb506..a5f1b26 100644 --- a/sdk/docs/ContentType.md +++ b/sdk/docs/ContentType.md @@ -10,6 +10,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ContentTypeParameter.md b/sdk/docs/ContentTypeParameter.md index 3916f61..2950aca 100644 --- a/sdk/docs/ContentTypeParameter.md +++ b/sdk/docs/ContentTypeParameter.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/CreateEmailRequest.md b/sdk/docs/CreateEmailRequest.md deleted file mode 100644 index 5f3f524..0000000 --- a/sdk/docs/CreateEmailRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.CreateEmailRequest -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email_document** | [**EmailDocument**](EmailDocument.md) | An email document that should be created | -**storage_folder** | [**StorageFolderLocation**](StorageFolderLocation.md) | Email document location in storage | [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/CreateFolderBaseRequest.md b/sdk/docs/CreateFolderBaseRequest.md deleted file mode 100644 index 121951f..0000000 --- a/sdk/docs/CreateFolderBaseRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.CreateFolderBaseRequest -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**folder** | **str** | Folder name | -**parent_folder** | **str** | Parent folder path | [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/CustomerEvent.md b/sdk/docs/CustomerEvent.md index 59f18ba..4464b16 100644 --- a/sdk/docs/CustomerEvent.md +++ b/sdk/docs/CustomerEvent.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/DailyRecurrencePatternDto.md b/sdk/docs/DailyRecurrencePatternDto.md index b5df339..bb29a97 100644 --- a/sdk/docs/DailyRecurrencePatternDto.md +++ b/sdk/docs/DailyRecurrencePatternDto.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes Parent class: [RecurrencePatternDto](RecurrencePatternDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/DeleteEmailThreadAccountRq.md b/sdk/docs/DeleteEmailThreadAccountRq.md deleted file mode 100644 index 8fef0c8..0000000 --- a/sdk/docs/DeleteEmailThreadAccountRq.md +++ /dev/null @@ -1,11 +0,0 @@ -# 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/DeleteFolderBaseRequest.md b/sdk/docs/DeleteFolderBaseRequest.md deleted file mode 100644 index e7f2b46..0000000 --- a/sdk/docs/DeleteFolderBaseRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.DeleteFolderBaseRequest -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**folder** | **str** | Folder name | -**delete_permanently** | **bool** | Specifies that folder should be deleted permanently | - - 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 deleted file mode 100644 index 5aca86a..0000000 --- a/sdk/docs/DeleteMessageBaseRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# AsposeEmailCloudSdk.models.DeleteMessageBaseRequest -## Properties -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) - -[[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/DiscUsage.md b/sdk/docs/DiscUsage.md index 3057ab3..08c52aa 100644 --- a/sdk/docs/DiscUsage.md +++ b/sdk/docs/DiscUsage.md @@ -2,11 +2,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**used_size** | **int** | | -**total_size** | **int** | | +**used_size** | **int** | Application used disc space. | +**total_size** | **int** | Total disc space. | -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/DiscoverEmailConfigPassword.md b/sdk/docs/DiscoverEmailConfigPassword.md deleted file mode 100644 index 107092e..0000000 --- a/sdk/docs/DiscoverEmailConfigPassword.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.DiscoverEmailConfigPassword -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**password** | **str** | Email account password. | - - Parent class: [DiscoverEmailConfigRq](DiscoverEmailConfigRq.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/DiscoverEmailConfigRq.md b/sdk/docs/DiscoverEmailConfigRequest.md similarity index 68% rename from sdk/docs/DiscoverEmailConfigRq.md rename to sdk/docs/DiscoverEmailConfigRequest.md index c0d3642..43fe086 100644 --- a/sdk/docs/DiscoverEmailConfigRq.md +++ b/sdk/docs/DiscoverEmailConfigRequest.md @@ -1,4 +1,4 @@ -# AsposeEmailCloudSdk.models.DiscoverEmailConfigRq +# AsposeEmailCloudSdk.models.DiscoverEmailConfigRequest ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- @@ -8,6 +8,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/DisposableEmailApi.md b/sdk/docs/DisposableEmailApi.md new file mode 100644 index 0000000..9ca0647 --- /dev/null +++ b/sdk/docs/DisposableEmailApi.md @@ -0,0 +1,28 @@ +# AsposeEmailCloudSdk.DisposableEmailApi + + + +# is_disposable + +```python +is_disposable(self, request: DisposableEmailIsDisposableRequest) +``` + +Check email address is disposable + +### Return type + +ValueTOfBoolean + +### request Parameter +```python +DisposableEmailIsDisposableRequest( + address) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **address** | **str** | An email address to check | + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + diff --git a/sdk/docs/DisposableEmailApi_list.md b/sdk/docs/DisposableEmailApi_list.md new file mode 100644 index 0000000..3b00b7c --- /dev/null +++ b/sdk/docs/DisposableEmailApi_list.md @@ -0,0 +1,8 @@ + +## Documentation for DisposableEmailApi operations + +All URIs are relative to *https://api.aspose.cloud/v4.0* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**is_disposable**](DisposableEmailApi.md#is_disposable)| **GET** /email/disposable/is-disposable| Check email address is disposable diff --git a/sdk/docs/EmailAccountConfig.md b/sdk/docs/EmailAccountConfig.md index 5b219a9..e808a42 100644 --- a/sdk/docs/EmailAccountConfig.md +++ b/sdk/docs/EmailAccountConfig.md @@ -13,6 +13,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/EmailAccountConfigList.md b/sdk/docs/EmailAccountConfigList.md index 405dadb..b0b5bb9 100644 --- a/sdk/docs/EmailAccountConfigList.md +++ b/sdk/docs/EmailAccountConfigList.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes Parent class: [ListResponseOfEmailAccountConfig](ListResponseOfEmailAccountConfig.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/EmailAccountRequest.md b/sdk/docs/EmailAccountRequest.md deleted file mode 100644 index 8baac2f..0000000 --- a/sdk/docs/EmailAccountRequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# AsposeEmailCloudSdk.models.EmailAccountRequest -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**host** | **str** | Email account host | -**port** | **int** | Email account port | -**login** | **str** | Email account login | -**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 | -**description** | **str** | Email account description | [optional] -**storage_file** | [**StorageFileLocation**](StorageFileLocation.md) | A storage file location info to store email account | - - - -[[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/EmailAddress.md b/sdk/docs/EmailAddress.md index 7dc81bc..3100c38 100644 --- a/sdk/docs/EmailAddress.md +++ b/sdk/docs/EmailAddress.md @@ -6,11 +6,11 @@ Name | Type | Description | Notes **display_name** | **str** | Display name. | [optional] **preferred** | **bool** | Defines whether email address is preferred. | **routing_type** | **str** | A routing type for an email. | [optional] -**address** | **str** | Email address. | [optional] +**address** | **str** | Email address. | **original_address_string** | **str** | The original e-mail address string | [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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/EmailApi.md b/sdk/docs/EmailApi.md index 762bfdf..735278d 100644 --- a/sdk/docs/EmailApi.md +++ b/sdk/docs/EmailApi.md @@ -1,9772 +1,211 @@ # AsposeEmailCloudSdk.EmailApi - -# **add_calendar_attachment** -> add_calendar_attachment(self, add_calendar_attachment_request) + + +# as_file -Adds an attachment to iCalendar file - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - name, - attachment, - request) -``` - -### Usage -```python -EmailApi.add_calendar_attachment( - AddCalendarAttachmentRequest( - name, - attachment, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Calendar file name in storage | - **attachment** | **str**| Attachment file name in storage | - **request** | [**AddAttachmentRequest**](AddAttachmentRequest.md)| Storage name and folder path for calendar and attachment files | - -[[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) - - -# **add_calendar_attachment_async** -> add_calendar_attachment_async(self, add_calendar_attachment_request) - -Adds an attachment to iCalendar file - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -add_calendar_attachment_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - name, - attachment, - request) -``` - -### Usage -```python -EmailApi.add_calendar_attachment_async( - AddCalendarAttachmentRequest( - name, - attachment, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Calendar file name in storage | - **attachment** | **str**| Attachment file name in storage | - **request** | [**AddAttachmentRequest**](AddAttachmentRequest.md)| Storage name and folder path for calendar and attachment files | - -[[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) - - -# **add_contact_attachment** -> add_contact_attachment(self, add_contact_attachment_request) - -Add attachment to contact document - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - format, - name, - attachment, - request) -``` - -### Usage -```python -EmailApi.add_contact_attachment( - AddContactAttachmentRequest( - format, - name, - attachment, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format Enum, available values: VCard, WebDav, Msg | - **name** | **str**| Contact document file name | - **attachment** | **str**| Attachment name | - **request** | [**AddAttachmentRequest**](AddAttachmentRequest.md)| Add attachment 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) - - -# **add_contact_attachment_async** -> add_contact_attachment_async(self, add_contact_attachment_request) - -Add attachment to contact document - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -add_contact_attachment_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - format, - name, - attachment, - request) -``` - -### Usage -```python -EmailApi.add_contact_attachment_async( - AddContactAttachmentRequest( - format, - name, - attachment, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format Enum, available values: VCard, WebDav, Msg | - **name** | **str**| Contact document file name | - **attachment** | **str**| Attachment name | - **request** | [**AddAttachmentRequest**](AddAttachmentRequest.md)| Add attachment 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) - - -# **add_email_attachment** -> add_email_attachment(self, add_email_attachment_request) - -Adds an attachment to Email document - -### Return type - -[**EmailDocumentResponse**](EmailDocumentResponse.md) - -### Request Parameters -```python -__init__(self, - attachment_name, - file_name, - request) -``` - -### Usage -```python -EmailApi.add_email_attachment( - AddEmailAttachmentRequest( - attachment_name, - file_name, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **attachment_name** | **str**| Attachment file name | - **file_name** | **str**| Email document file name | - **request** | [**AddAttachmentRequest**](AddAttachmentRequest.md)| Storage info to specify location of email document and attachment files | - -[[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) - - -# **add_email_attachment_async** -> add_email_attachment_async(self, add_email_attachment_request) - -Adds an attachment to Email document - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -add_email_attachment_async(request).get() returns [**EmailDocumentResponse**](EmailDocumentResponse.md) - -### Request Parameters -```python -__init__(self, - attachment_name, - file_name, - request) -``` - -### Usage -```python -EmailApi.add_email_attachment_async( - AddEmailAttachmentRequest( - attachment_name, - file_name, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **attachment_name** | **str**| Attachment file name | - **file_name** | **str**| Email document file name | - **request** | [**AddAttachmentRequest**](AddAttachmentRequest.md)| Storage info to specify location of email document and attachment files | - -[[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) - - -# **add_mapi_attachment** -> add_mapi_attachment(self, add_mapi_attachment_request) - -Add attachment to document - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - name, - attachment, - request) -``` - -### Usage -```python -EmailApi.add_mapi_attachment( - AddMapiAttachmentRequest( - name, - attachment, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Document file name | - **attachment** | **str**| Attachment file name | - **request** | [**AddAttachmentRequest**](AddAttachmentRequest.md)| Add attachment 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) - - -# **add_mapi_attachment_async** -> add_mapi_attachment_async(self, add_mapi_attachment_request) - -Add attachment to document - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -add_mapi_attachment_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - name, - attachment, - request) -``` - -### Usage -```python -EmailApi.add_mapi_attachment_async( - AddMapiAttachmentRequest( - name, - attachment, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Document file name | - **attachment** | **str**| Attachment file name | - **request** | [**AddAttachmentRequest**](AddAttachmentRequest.md)| Add attachment 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) - - -# **ai_bcr_ocr** -> ai_bcr_ocr(self, ai_bcr_ocr_request) - -Ocr images - -### Return type - -[**ListResponseOfAiBcrOcrData**](ListResponseOfAiBcrOcrData.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.ai_bcr_ocr( - AiBcrOcrRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AiBcrBase64Rq**](AiBcrBase64Rq.md)| Request with base64 images data | - -[[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) - - -# **ai_bcr_ocr_async** -> ai_bcr_ocr_async(self, ai_bcr_ocr_request) - -Ocr images - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -ai_bcr_ocr_async(request).get() returns [**ListResponseOfAiBcrOcrData**](ListResponseOfAiBcrOcrData.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.ai_bcr_ocr_async( - AiBcrOcrRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AiBcrBase64Rq**](AiBcrBase64Rq.md)| Request with base64 images data | - -[[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) - - -# **ai_bcr_ocr_storage** -> ai_bcr_ocr_storage(self, ai_bcr_ocr_storage_request) - -Ocr images from storage - -### Return type - -[**ListResponseOfAiBcrOcrData**](ListResponseOfAiBcrOcrData.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.ai_bcr_ocr_storage( - AiBcrOcrStorageRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AiBcrStorageImageRq**](AiBcrStorageImageRq.md)| Request with images located on storage | - -[[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) - - -# **ai_bcr_ocr_storage_async** -> ai_bcr_ocr_storage_async(self, ai_bcr_ocr_storage_request) - -Ocr images from storage - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -ai_bcr_ocr_storage_async(request).get() returns [**ListResponseOfAiBcrOcrData**](ListResponseOfAiBcrOcrData.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.ai_bcr_ocr_storage_async( - AiBcrOcrStorageRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AiBcrStorageImageRq**](AiBcrStorageImageRq.md)| Request with images located on storage | - -[[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) - - -# **ai_bcr_parse** -> ai_bcr_parse(self, ai_bcr_parse_request) - -Parse images to vCard properties - -### Return type - -[**ListResponseOfHierarchicalObject**](ListResponseOfHierarchicalObject.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.ai_bcr_parse( - AiBcrParseRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AiBcrBase64Rq**](AiBcrBase64Rq.md)| Request with base64 images data | - -[[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) - - -# **ai_bcr_parse_async** -> ai_bcr_parse_async(self, ai_bcr_parse_request) - -Parse images to vCard properties - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -ai_bcr_parse_async(request).get() returns [**ListResponseOfHierarchicalObject**](ListResponseOfHierarchicalObject.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.ai_bcr_parse_async( - AiBcrParseRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AiBcrBase64Rq**](AiBcrBase64Rq.md)| Request with base64 images data | - -[[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) - - -# **ai_bcr_parse_model** -> ai_bcr_parse_model(self, ai_bcr_parse_model_request) - -Parse images to vCard document models - -### Return type - -[**ListResponseOfContactDto**](ListResponseOfContactDto.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.ai_bcr_parse_model( - AiBcrParseModelRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AiBcrBase64Rq**](AiBcrBase64Rq.md)| Request with base64 images data | - -[[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) - - -# **ai_bcr_parse_model_async** -> ai_bcr_parse_model_async(self, ai_bcr_parse_model_request) - -Parse images to vCard document models - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -ai_bcr_parse_model_async(request).get() returns [**ListResponseOfContactDto**](ListResponseOfContactDto.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.ai_bcr_parse_model_async( - AiBcrParseModelRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AiBcrBase64Rq**](AiBcrBase64Rq.md)| Request with base64 images data | - -[[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) - - -# **ai_bcr_parse_ocr_data_model** -> ai_bcr_parse_ocr_data_model(self, ai_bcr_parse_ocr_data_model_request) - -Parse OCR data to vCard document models - -### Return type - -[**ListResponseOfContactDto**](ListResponseOfContactDto.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.ai_bcr_parse_ocr_data_model( - AiBcrParseOcrDataModelRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AiBcrParseOcrDataRq**](AiBcrParseOcrDataRq.md)| | - -[[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) - - -# **ai_bcr_parse_ocr_data_model_async** -> ai_bcr_parse_ocr_data_model_async(self, ai_bcr_parse_ocr_data_model_request) - -Parse OCR data to vCard document models - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -ai_bcr_parse_ocr_data_model_async(request).get() returns [**ListResponseOfContactDto**](ListResponseOfContactDto.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.ai_bcr_parse_ocr_data_model_async( - AiBcrParseOcrDataModelRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AiBcrParseOcrDataRq**](AiBcrParseOcrDataRq.md)| | - -[[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) - - -# **ai_bcr_parse_storage** -> ai_bcr_parse_storage(self, ai_bcr_parse_storage_request) - -Parse images from storage to vCard files - -### Return type - -[**ListResponseOfStorageFileLocation**](ListResponseOfStorageFileLocation.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.ai_bcr_parse_storage( - AiBcrParseStorageRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AiBcrParseStorageRq**](AiBcrParseStorageRq.md)| Request with images located on storage | - -[[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) - - -# **ai_bcr_parse_storage_async** -> ai_bcr_parse_storage_async(self, ai_bcr_parse_storage_request) - -Parse images from storage to vCard files - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -ai_bcr_parse_storage_async(request).get() returns [**ListResponseOfStorageFileLocation**](ListResponseOfStorageFileLocation.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.ai_bcr_parse_storage_async( - AiBcrParseStorageRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AiBcrParseStorageRq**](AiBcrParseStorageRq.md)| Request with images located on storage | - -[[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) - - -# **ai_name_complete** -> ai_name_complete(self, ai_name_complete_request) - -The call proposes k most probable names for given starting characters - -### Return type - -[**AiNameWeightedVariants**](AiNameWeightedVariants.md) - -### Request Parameters -```python -__init__(self, - name, - language=language, - location=location, - encoding=encoding, - script=script, - style=style) -``` - -### Usage -```python -EmailApi.ai_name_complete( - AiNameCompleteRequest( - name, - language=language, - location=location, - encoding=encoding, - script=script, - style=style)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| A name to complete (required) | - **language** | **str**| An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) | [optional] [default to ] - **location** | **str**| A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France | [optional] [default to ] - **encoding** | **str**| A character encoding name | [optional] [default to ] - **script** | **str**| A writing system code; starts with the ISO-15924 script name | [optional] [default to ] - **style** | **str**| Name writing style. Enum, available values: Formal, Informal, Legal, Academic | [optional] [default to 0] - -[[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) - - -# **ai_name_complete_async** -> ai_name_complete_async(self, ai_name_complete_request) - -The call proposes k most probable names for given starting characters - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -ai_name_complete_async(request).get() returns [**AiNameWeightedVariants**](AiNameWeightedVariants.md) - -### Request Parameters -```python -__init__(self, - name, - language=language, - location=location, - encoding=encoding, - script=script, - style=style) -``` - -### Usage -```python -EmailApi.ai_name_complete_async( - AiNameCompleteRequest( - name, - language=language, - location=location, - encoding=encoding, - script=script, - style=style)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| A name to complete (required) | - **language** | **str**| An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) | [optional] [default to ] - **location** | **str**| A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France | [optional] [default to ] - **encoding** | **str**| A character encoding name | [optional] [default to ] - **script** | **str**| A writing system code; starts with the ISO-15924 script name | [optional] [default to ] - **style** | **str**| Name writing style. Enum, available values: Formal, Informal, Legal, Academic | [optional] [default to 0] - -[[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) - - -# **ai_name_expand** -> ai_name_expand(self, ai_name_expand_request) - -Expands a person's name into a list of possible alternatives using options for expanding instructions - -### Return type - -[**AiNameWeightedVariants**](AiNameWeightedVariants.md) - -### Request Parameters -```python -__init__(self, - name, - language=language, - location=location, - encoding=encoding, - script=script, - style=style) -``` - -### Usage -```python -EmailApi.ai_name_expand( - AiNameExpandRequest( - name, - language=language, - location=location, - encoding=encoding, - script=script, - style=style)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| A name to format (required) | - **language** | **str**| An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) | [optional] [default to ] - **location** | **str**| A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France | [optional] [default to ] - **encoding** | **str**| A character encoding name | [optional] [default to ] - **script** | **str**| A writing system code; starts with the ISO-15924 script name | [optional] [default to ] - **style** | **str**| Name writing style. Enum, available values: Formal, Informal, Legal, Academic | [optional] [default to 0] - -[[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) - - -# **ai_name_expand_async** -> ai_name_expand_async(self, ai_name_expand_request) - -Expands a person's name into a list of possible alternatives using options for expanding instructions - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -ai_name_expand_async(request).get() returns [**AiNameWeightedVariants**](AiNameWeightedVariants.md) - -### Request Parameters -```python -__init__(self, - name, - language=language, - location=location, - encoding=encoding, - script=script, - style=style) -``` - -### Usage -```python -EmailApi.ai_name_expand_async( - AiNameExpandRequest( - name, - language=language, - location=location, - encoding=encoding, - script=script, - style=style)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| A name to format (required) | - **language** | **str**| An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) | [optional] [default to ] - **location** | **str**| A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France | [optional] [default to ] - **encoding** | **str**| A character encoding name | [optional] [default to ] - **script** | **str**| A writing system code; starts with the ISO-15924 script name | [optional] [default to ] - **style** | **str**| Name writing style. Enum, available values: Formal, Informal, Legal, Academic | [optional] [default to 0] - -[[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) - - -# **ai_name_expand_parsed** -> ai_name_expand_parsed(self, ai_name_expand_parsed_request) - -Expands a person's parsed name into a list of possible alternatives using options for expanding instructions - -### Return type - -[**AiNameWeightedVariants**](AiNameWeightedVariants.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.ai_name_expand_parsed( - AiNameExpandParsedRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AiNameParsedRq**](AiNameParsedRq.md)| Parsed name with options | - -[[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) - - -# **ai_name_expand_parsed_async** -> ai_name_expand_parsed_async(self, ai_name_expand_parsed_request) - -Expands a person's parsed name into a list of possible alternatives using options for expanding instructions - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -ai_name_expand_parsed_async(request).get() returns [**AiNameWeightedVariants**](AiNameWeightedVariants.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.ai_name_expand_parsed_async( - AiNameExpandParsedRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AiNameParsedRq**](AiNameParsedRq.md)| Parsed name with options | - -[[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) - - -# **ai_name_format** -> ai_name_format(self, ai_name_format_request) - -Formats a person's name in correct case and name order using options for formatting instructions - -### Return type - -[**AiNameFormatted**](AiNameFormatted.md) - -### Request Parameters -```python -__init__(self, - name, - language=language, - location=location, - encoding=encoding, - script=script, - format=format, - style=style) -``` - -### Usage -```python -EmailApi.ai_name_format( - AiNameFormatRequest( - name, - language=language, - location=location, - encoding=encoding, - script=script, - format=format, - style=style)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| A name to format (required) | - **language** | **str**| An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) | [optional] [default to ] - **location** | **str**| A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France | [optional] [default to ] - **encoding** | **str**| A character encoding name | [optional] [default to ] - **script** | **str**| A writing system code; starts with the ISO-15924 script name | [optional] [default to ] - **format** | **str**| Format of the name. Predefined format can be used by ID, or custom format can be specified. Predefined formats: /format/default/ (= '%t%F%m%N%L%p') /format/FN+LN/ (= '%F%L') /format/title+FN+LN/ (= '%t%F%L') /format/FN+MN+LN/ (= '%F%M%N%L') /format/title+FN+MN+LN/ (= '%t%F%M%N%L') /format/FN+MI+LN/ (= '%F%m%N%L') /format/title+FN+MI+LN/ (= '%t%F%m%N%L') /format/LN/ (= '%L') /format/title+LN/ (= '%t%L') /format/LN+FN+MN/ (= '%L,%F%M%N') /format/LN+title+FN+MN/ (= '%L,%t%F%M%N') /format/LN+FN+MI/ (= '%L,%F%m%N') /format/LN+title+FN+MI/ (= '%L,%t%F%m%N') Custom format string - custom combination of characters and the next term placeholders: '%t' - Title (prefix) '%F' - First name '%f' - First initial '%M' - Middle name(s) '%m' - Middle initial(s) '%N' - Nickname '%L' - Last name '%l' - Last initial '%p' - Postfix If no value for format option was provided, its default value is '%t%F%m%N%L%p' | [optional] [default to ] - **style** | **str**| Name writing style. Enum, available values: Formal, Informal, Legal, Academic | [optional] [default to 0] - -[[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) - - -# **ai_name_format_async** -> ai_name_format_async(self, ai_name_format_request) - -Formats a person's name in correct case and name order using options for formatting instructions - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -ai_name_format_async(request).get() returns [**AiNameFormatted**](AiNameFormatted.md) - -### Request Parameters -```python -__init__(self, - name, - language=language, - location=location, - encoding=encoding, - script=script, - format=format, - style=style) -``` - -### Usage -```python -EmailApi.ai_name_format_async( - AiNameFormatRequest( - name, - language=language, - location=location, - encoding=encoding, - script=script, - format=format, - style=style)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| A name to format (required) | - **language** | **str**| An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) | [optional] [default to ] - **location** | **str**| A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France | [optional] [default to ] - **encoding** | **str**| A character encoding name | [optional] [default to ] - **script** | **str**| A writing system code; starts with the ISO-15924 script name | [optional] [default to ] - **format** | **str**| Format of the name. Predefined format can be used by ID, or custom format can be specified. Predefined formats: /format/default/ (= '%t%F%m%N%L%p') /format/FN+LN/ (= '%F%L') /format/title+FN+LN/ (= '%t%F%L') /format/FN+MN+LN/ (= '%F%M%N%L') /format/title+FN+MN+LN/ (= '%t%F%M%N%L') /format/FN+MI+LN/ (= '%F%m%N%L') /format/title+FN+MI+LN/ (= '%t%F%m%N%L') /format/LN/ (= '%L') /format/title+LN/ (= '%t%L') /format/LN+FN+MN/ (= '%L,%F%M%N') /format/LN+title+FN+MN/ (= '%L,%t%F%M%N') /format/LN+FN+MI/ (= '%L,%F%m%N') /format/LN+title+FN+MI/ (= '%L,%t%F%m%N') Custom format string - custom combination of characters and the next term placeholders: '%t' - Title (prefix) '%F' - First name '%f' - First initial '%M' - Middle name(s) '%m' - Middle initial(s) '%N' - Nickname '%L' - Last name '%l' - Last initial '%p' - Postfix If no value for format option was provided, its default value is '%t%F%m%N%L%p' | [optional] [default to ] - **style** | **str**| Name writing style. Enum, available values: Formal, Informal, Legal, Academic | [optional] [default to 0] - -[[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) - - -# **ai_name_format_parsed** -> ai_name_format_parsed(self, ai_name_format_parsed_request) - -Formats a person's parsed name in correct case and name order using options for formatting instructions - -### Return type - -[**AiNameFormatted**](AiNameFormatted.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.ai_name_format_parsed( - AiNameFormatParsedRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AiNameParsedRq**](AiNameParsedRq.md)| Parsed name with options | - -[[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) - - -# **ai_name_format_parsed_async** -> ai_name_format_parsed_async(self, ai_name_format_parsed_request) - -Formats a person's parsed name in correct case and name order using options for formatting instructions - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -ai_name_format_parsed_async(request).get() returns [**AiNameFormatted**](AiNameFormatted.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.ai_name_format_parsed_async( - AiNameFormatParsedRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AiNameParsedRq**](AiNameParsedRq.md)| Parsed name with options | - -[[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) - - -# **ai_name_genderize** -> ai_name_genderize(self, ai_name_genderize_request) - -Detect person's gender from name string - -### Return type - -[**ListResponseOfAiNameGenderHypothesis**](ListResponseOfAiNameGenderHypothesis.md) - -### Request Parameters -```python -__init__(self, - name, - language=language, - location=location, - encoding=encoding, - script=script, - style=style) -``` - -### Usage -```python -EmailApi.ai_name_genderize( - AiNameGenderizeRequest( - name, - language=language, - location=location, - encoding=encoding, - script=script, - style=style)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| A name to parse (required) | - **language** | **str**| An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) | [optional] [default to ] - **location** | **str**| A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France | [optional] [default to ] - **encoding** | **str**| A character encoding name | [optional] [default to ] - **script** | **str**| A writing system code; starts with the ISO-15924 script name | [optional] [default to ] - **style** | **str**| Name writing style. Enum, available values: Formal, Informal, Legal, Academic | [optional] [default to 0] - -[[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) - - -# **ai_name_genderize_async** -> ai_name_genderize_async(self, ai_name_genderize_request) - -Detect person's gender from name string - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -ai_name_genderize_async(request).get() returns [**ListResponseOfAiNameGenderHypothesis**](ListResponseOfAiNameGenderHypothesis.md) - -### Request Parameters -```python -__init__(self, - name, - language=language, - location=location, - encoding=encoding, - script=script, - style=style) -``` - -### Usage -```python -EmailApi.ai_name_genderize_async( - AiNameGenderizeRequest( - name, - language=language, - location=location, - encoding=encoding, - script=script, - style=style)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| A name to parse (required) | - **language** | **str**| An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) | [optional] [default to ] - **location** | **str**| A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France | [optional] [default to ] - **encoding** | **str**| A character encoding name | [optional] [default to ] - **script** | **str**| A writing system code; starts with the ISO-15924 script name | [optional] [default to ] - **style** | **str**| Name writing style. Enum, available values: Formal, Informal, Legal, Academic | [optional] [default to 0] - -[[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) - - -# **ai_name_genderize_parsed** -> ai_name_genderize_parsed(self, ai_name_genderize_parsed_request) - -Detect person's gender from parsed name - -### Return type - -[**ListResponseOfAiNameGenderHypothesis**](ListResponseOfAiNameGenderHypothesis.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.ai_name_genderize_parsed( - AiNameGenderizeParsedRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AiNameParsedRq**](AiNameParsedRq.md)| Gender detection request data | - -[[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) - - -# **ai_name_genderize_parsed_async** -> ai_name_genderize_parsed_async(self, ai_name_genderize_parsed_request) - -Detect person's gender from parsed name - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -ai_name_genderize_parsed_async(request).get() returns [**ListResponseOfAiNameGenderHypothesis**](ListResponseOfAiNameGenderHypothesis.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.ai_name_genderize_parsed_async( - AiNameGenderizeParsedRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AiNameParsedRq**](AiNameParsedRq.md)| Gender detection request data | - -[[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) - - -# **ai_name_match** -> ai_name_match(self, ai_name_match_request) - -Compare people's names. Uses options for comparing instructions - -### Return type - -[**AiNameMatchResult**](AiNameMatchResult.md) - -### Request Parameters -```python -__init__(self, - name, - other_name, - language=language, - location=location, - encoding=encoding, - script=script, - style=style) -``` - -### Usage -```python -EmailApi.ai_name_match( - AiNameMatchRequest( - name, - other_name, - language=language, - location=location, - encoding=encoding, - script=script, - style=style)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| A name to match (required) | - **other_name** | **str**| Another name to match (required) | - **language** | **str**| An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) | [optional] [default to ] - **location** | **str**| A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France | [optional] [default to ] - **encoding** | **str**| A character encoding name | [optional] [default to ] - **script** | **str**| A writing system code; starts with the ISO-15924 script name | [optional] [default to ] - **style** | **str**| Name writing style. Enum, available values: Formal, Informal, Legal, Academic | [optional] [default to 0] - -[[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) - - -# **ai_name_match_async** -> ai_name_match_async(self, ai_name_match_request) - -Compare people's names. Uses options for comparing instructions - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -ai_name_match_async(request).get() returns [**AiNameMatchResult**](AiNameMatchResult.md) - -### Request Parameters -```python -__init__(self, - name, - other_name, - language=language, - location=location, - encoding=encoding, - script=script, - style=style) -``` - -### Usage -```python -EmailApi.ai_name_match_async( - AiNameMatchRequest( - name, - other_name, - language=language, - location=location, - encoding=encoding, - script=script, - style=style)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| A name to match (required) | - **other_name** | **str**| Another name to match (required) | - **language** | **str**| An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) | [optional] [default to ] - **location** | **str**| A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France | [optional] [default to ] - **encoding** | **str**| A character encoding name | [optional] [default to ] - **script** | **str**| A writing system code; starts with the ISO-15924 script name | [optional] [default to ] - **style** | **str**| Name writing style. Enum, available values: Formal, Informal, Legal, Academic | [optional] [default to 0] - -[[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) - - -# **ai_name_match_parsed** -> ai_name_match_parsed(self, ai_name_match_parsed_request) - -Compare people's parsed names and attributes. Uses options for comparing instructions - -### Return type - -[**AiNameMatchResult**](AiNameMatchResult.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.ai_name_match_parsed( - AiNameMatchParsedRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AiNameParsedMatchRq**](AiNameParsedMatchRq.md)| Parsed names to match | - -[[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) - - -# **ai_name_match_parsed_async** -> ai_name_match_parsed_async(self, ai_name_match_parsed_request) - -Compare people's parsed names and attributes. Uses options for comparing instructions - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -ai_name_match_parsed_async(request).get() returns [**AiNameMatchResult**](AiNameMatchResult.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.ai_name_match_parsed_async( - AiNameMatchParsedRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AiNameParsedMatchRq**](AiNameParsedMatchRq.md)| Parsed names to match | - -[[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) - - -# **ai_name_parse** -> ai_name_parse(self, ai_name_parse_request) - -Parse name to components - -### Return type - -[**ListResponseOfAiNameComponent**](ListResponseOfAiNameComponent.md) - -### Request Parameters -```python -__init__(self, - name, - language=language, - location=location, - encoding=encoding, - script=script, - style=style) -``` - -### Usage -```python -EmailApi.ai_name_parse( - AiNameParseRequest( - name, - language=language, - location=location, - encoding=encoding, - script=script, - style=style)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| A name to parse (required) | - **language** | **str**| An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) | [optional] [default to ] - **location** | **str**| A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France | [optional] [default to ] - **encoding** | **str**| A character encoding name | [optional] [default to ] - **script** | **str**| A writing system code; starts with the ISO-15924 script name | [optional] [default to ] - **style** | **str**| Name writing style Enum, available values: Formal, Informal, Legal, Academic | [optional] [default to 0] - -[[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) - - -# **ai_name_parse_async** -> ai_name_parse_async(self, ai_name_parse_request) - -Parse name to components - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -ai_name_parse_async(request).get() returns [**ListResponseOfAiNameComponent**](ListResponseOfAiNameComponent.md) - -### Request Parameters -```python -__init__(self, - name, - language=language, - location=location, - encoding=encoding, - script=script, - style=style) -``` - -### Usage -```python -EmailApi.ai_name_parse_async( - AiNameParseRequest( - name, - language=language, - location=location, - encoding=encoding, - script=script, - style=style)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| A name to parse (required) | - **language** | **str**| An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) | [optional] [default to ] - **location** | **str**| A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France | [optional] [default to ] - **encoding** | **str**| A character encoding name | [optional] [default to ] - **script** | **str**| A writing system code; starts with the ISO-15924 script name | [optional] [default to ] - **style** | **str**| Name writing style Enum, available values: Formal, Informal, Legal, Academic | [optional] [default to 0] - -[[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) - - -# **ai_name_parse_email_address** -> ai_name_parse_email_address(self, ai_name_parse_email_address_request) - -Parse person's name out of an email address - -### Return type - -[**ListResponseOfAiNameExtracted**](ListResponseOfAiNameExtracted.md) - -### Request Parameters -```python -__init__(self, - email_address, - language=language, - location=location, - encoding=encoding, - script=script, - style=style) -``` - -### Usage -```python -EmailApi.ai_name_parse_email_address( - AiNameParseEmailAddressRequest( - email_address, - language=language, - location=location, - encoding=encoding, - script=script, - style=style)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **email_address** | **str**| Email address to parse (required) | - **language** | **str**| An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) | [optional] [default to ] - **location** | **str**| A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France | [optional] [default to ] - **encoding** | **str**| A character encoding name | [optional] [default to ] - **script** | **str**| A writing system code; starts with the ISO-15924 script name | [optional] [default to ] - **style** | **str**| Name writing style. Enum, available values: Formal, Informal, Legal, Academic | [optional] [default to 0] - -[[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) - - -# **ai_name_parse_email_address_async** -> ai_name_parse_email_address_async(self, ai_name_parse_email_address_request) - -Parse person's name out of an email address - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -ai_name_parse_email_address_async(request).get() returns [**ListResponseOfAiNameExtracted**](ListResponseOfAiNameExtracted.md) - -### Request Parameters -```python -__init__(self, - email_address, - language=language, - location=location, - encoding=encoding, - script=script, - style=style) -``` - -### Usage -```python -EmailApi.ai_name_parse_email_address_async( - AiNameParseEmailAddressRequest( - email_address, - language=language, - location=location, - encoding=encoding, - script=script, - style=style)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **email_address** | **str**| Email address to parse (required) | - **language** | **str**| An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian) | [optional] [default to ] - **location** | **str**| A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France | [optional] [default to ] - **encoding** | **str**| A character encoding name | [optional] [default to ] - **script** | **str**| A writing system code; starts with the ISO-15924 script name | [optional] [default to ] - **style** | **str**| Name writing style. Enum, available values: Formal, Informal, Legal, Academic | [optional] [default to 0] - -[[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) - - -# **append_email_message** -> append_email_message(self, append_email_message_request) - -Adds an email from *.eml file to specified folder in email account - -### Return type - -[**EmailPropertyResponse**](EmailPropertyResponse.md) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage -```python -EmailApi.append_email_message( - AppendEmailMessageRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**AppendEmailBaseRequest**](AppendEmailBaseRequest.md)| Append email 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) - - -# **append_email_message_async** -> append_email_message_async(self, append_email_message_request) - -Adds an email from *.eml file to specified folder in email account - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -append_email_message_async(request).get() returns [**EmailPropertyResponse**](EmailPropertyResponse.md) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage -```python -EmailApi.append_email_message_async( - AppendEmailMessageRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**AppendEmailBaseRequest**](AppendEmailBaseRequest.md)| Append email 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) - - -# **append_email_model_message** -> append_email_model_message(self, append_email_model_message_request) - -Adds an email from model to specified folder in email account - -### Return type - -[**ValueResponse**](ValueResponse.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.append_email_model_message( - AppendEmailModelMessageRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AppendEmailModelRq**](AppendEmailModelRq.md)| Append email 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) - - -# **append_email_model_message_async** -> append_email_model_message_async(self, append_email_model_message_request) - -Adds an email from model to specified folder in email account - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -append_email_model_message_async(request).get() returns [**ValueResponse**](ValueResponse.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.append_email_model_message_async( - AppendEmailModelMessageRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**AppendEmailModelRq**](AppendEmailModelRq.md)| Append email 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) - - -# **append_mime_message** -> append_mime_message(self, append_mime_message_request) - -Adds an email from MIME to specified folder in email account - -### Return type - -[**ValueResponse**](ValueResponse.md) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage -```python -EmailApi.append_mime_message( - AppendMimeMessageRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**AppendEmailMimeBaseRequest**](AppendEmailMimeBaseRequest.md)| Append email 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) - - -# **append_mime_message_async** -> append_mime_message_async(self, append_mime_message_request) - -Adds an email from MIME to specified folder in email account - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -append_mime_message_async(request).get() returns [**ValueResponse**](ValueResponse.md) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage -```python -EmailApi.append_mime_message_async( - AppendMimeMessageRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**AppendEmailMimeBaseRequest**](AppendEmailMimeBaseRequest.md)| Append email 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) - - -# **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) - -Convert iCalendar to AlternateView - -### Return type - -[**AlternateView**](AlternateView.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.convert_calendar_model_to_alternate( - ConvertCalendarModelToAlternateRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**CalendarDtoAlternateRq**](CalendarDtoAlternateRq.md)| iCalendar to AlternateView 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) - - -# **convert_calendar_model_to_alternate_async** -> convert_calendar_model_to_alternate_async(self, convert_calendar_model_to_alternate_request) - -Convert iCalendar to AlternateView - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -convert_calendar_model_to_alternate_async(request).get() returns [**AlternateView**](AlternateView.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.convert_calendar_model_to_alternate_async( - ConvertCalendarModelToAlternateRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**CalendarDtoAlternateRq**](CalendarDtoAlternateRq.md)| iCalendar to AlternateView 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) - - -# **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_calendar_model_to_mapi_model** -> convert_calendar_model_to_mapi_model(self, convert_calendar_model_to_mapi_model_request) - -Converts CalendarDto to MapiCalendarDto. - -### Return type - -[**MapiCalendarDto**](MapiCalendarDto.md) - -### Request Parameters -```python -__init__(self, - calendar_dto) -``` - -### Usage -```python -EmailApi.convert_calendar_model_to_mapi_model( - ConvertCalendarModelToMapiModelRequest( - calendar_dto)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **calendar_dto** | [**CalendarDto**](CalendarDto.md)| iCalendar model calendar representation | - -[[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_mapi_model_async** -> convert_calendar_model_to_mapi_model_async(self, convert_calendar_model_to_mapi_model_request) - -Converts CalendarDto to MapiCalendarDto. - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -convert_calendar_model_to_mapi_model_async(request).get() returns [**MapiCalendarDto**](MapiCalendarDto.md) - -### Request Parameters -```python -__init__(self, - calendar_dto) -``` - -### Usage -```python -EmailApi.convert_calendar_model_to_mapi_model_async( - ConvertCalendarModelToMapiModelRequest( - calendar_dto)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **calendar_dto** | [**CalendarDto**](CalendarDto.md)| iCalendar model calendar representation | - -[[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_contact_model_to_mapi_model** -> convert_contact_model_to_mapi_model(self, convert_contact_model_to_mapi_model_request) - -Converts ContactDto to MapiContactDto. - -### Return type - -[**MapiContactDto**](MapiContactDto.md) - -### Request Parameters -```python -__init__(self, - contact_dto) -``` - -### Usage -```python -EmailApi.convert_contact_model_to_mapi_model( - ConvertContactModelToMapiModelRequest( - contact_dto)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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_mapi_model_async** -> convert_contact_model_to_mapi_model_async(self, convert_contact_model_to_mapi_model_request) - -Converts ContactDto to MapiContactDto. - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -convert_contact_model_to_mapi_model_async(request).get() returns [**MapiContactDto**](MapiContactDto.md) - -### Request Parameters -```python -__init__(self, - contact_dto) -``` - -### Usage -```python -EmailApi.convert_contact_model_to_mapi_model_async( - ConvertContactModelToMapiModelRequest( - contact_dto)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - -Converts email document to specified format and returns as file - -### Return type - -**file** - -### Request Parameters -```python -__init__(self, - format, - file) -``` - -### Usage -```python -EmailApi.convert_email( - ConvertEmailRequest( - format, - file)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | - **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_async** -> convert_email_async(self, convert_email_request) - -Converts email document to specified format and returns as file - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -convert_email_async(request).get() returns **file** - -### Request Parameters -```python -__init__(self, - format, - file) -``` - -### Usage -```python -EmailApi.convert_email_async( - ConvertEmailRequest( - format, - file)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | - **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, Tnef | - **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, Tnef | - **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_mapi_model** -> convert_email_model_to_mapi_model(self, convert_email_model_to_mapi_model_request) - -Converts EmailDto to MapiMessageDto. - -### Return type - -[**MapiMessageDto**](MapiMessageDto.md) - -### Request Parameters -```python -__init__(self, - email_dto) -``` - -### Usage -```python -EmailApi.convert_email_model_to_mapi_model( - ConvertEmailModelToMapiModelRequest( - email_dto)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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_mapi_model_async** -> convert_email_model_to_mapi_model_async(self, convert_email_model_to_mapi_model_request) - -Converts EmailDto to MapiMessageDto. - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -convert_email_model_to_mapi_model_async(request).get() returns [**MapiMessageDto**](MapiMessageDto.md) - -### Request Parameters -```python -__init__(self, - email_dto) -``` - -### Usage -```python -EmailApi.convert_email_model_to_mapi_model_async( - ConvertEmailModelToMapiModelRequest( - email_dto)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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_mapi_calendar_model_to_calendar_model** -> convert_mapi_calendar_model_to_calendar_model(self, convert_mapi_calendar_model_to_calendar_model_request) - -Converts MAPI calendar model to CalendarDto model - -### Return type - -[**CalendarDto**](CalendarDto.md) - -### Request Parameters -```python -__init__(self, - mapi_calendar_dto) -``` - -### Usage -```python -EmailApi.convert_mapi_calendar_model_to_calendar_model( - ConvertMapiCalendarModelToCalendarModelRequest( - mapi_calendar_dto)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **mapi_calendar_dto** | [**MapiCalendarDto**](MapiCalendarDto.md)| MAPI 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_mapi_calendar_model_to_calendar_model_async** -> convert_mapi_calendar_model_to_calendar_model_async(self, convert_mapi_calendar_model_to_calendar_model_request) - -Converts MAPI calendar model to CalendarDto model - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -convert_mapi_calendar_model_to_calendar_model_async(request).get() returns [**CalendarDto**](CalendarDto.md) - -### Request Parameters -```python -__init__(self, - mapi_calendar_dto) -``` - -### Usage -```python -EmailApi.convert_mapi_calendar_model_to_calendar_model_async( - ConvertMapiCalendarModelToCalendarModelRequest( - mapi_calendar_dto)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **mapi_calendar_dto** | [**MapiCalendarDto**](MapiCalendarDto.md)| MAPI 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_mapi_calendar_model_to_file** -> convert_mapi_calendar_model_to_file(self, convert_mapi_calendar_model_to_file_request) - -Converts MAPI calendar model to specified format and returns as file - -### Return type - -**file** - -### Request Parameters -```python -__init__(self, - destination_format, - mapi_calendar_dto) -``` - -### Usage -```python -EmailApi.convert_mapi_calendar_model_to_file( - ConvertMapiCalendarModelToFileRequest( - destination_format, - mapi_calendar_dto)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **destination_format** | **str**| File format Enum, available values: Ics, Msg | - **mapi_calendar_dto** | [**MapiCalendarDto**](MapiCalendarDto.md)| MAPI 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_mapi_calendar_model_to_file_async** -> convert_mapi_calendar_model_to_file_async(self, convert_mapi_calendar_model_to_file_request) - -Converts MAPI calendar model to specified format and returns as file - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -convert_mapi_calendar_model_to_file_async(request).get() returns **file** - -### Request Parameters -```python -__init__(self, - destination_format, - mapi_calendar_dto) -``` - -### Usage -```python -EmailApi.convert_mapi_calendar_model_to_file_async( - ConvertMapiCalendarModelToFileRequest( - destination_format, - mapi_calendar_dto)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **destination_format** | **str**| File format Enum, available values: Ics, Msg | - **mapi_calendar_dto** | [**MapiCalendarDto**](MapiCalendarDto.md)| MAPI 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_mapi_contact_model_to_contact_model** -> convert_mapi_contact_model_to_contact_model(self, convert_mapi_contact_model_to_contact_model_request) - -Converts MAPI contact model to ContactDto model - -### Return type - -[**ContactDto**](ContactDto.md) - -### Request Parameters -```python -__init__(self, - mapi_contact_dto) -``` - -### Usage -```python -EmailApi.convert_mapi_contact_model_to_contact_model( - ConvertMapiContactModelToContactModelRequest( - mapi_contact_dto)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **mapi_contact_dto** | [**MapiContactDto**](MapiContactDto.md)| MAPI 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_mapi_contact_model_to_contact_model_async** -> convert_mapi_contact_model_to_contact_model_async(self, convert_mapi_contact_model_to_contact_model_request) - -Converts MAPI contact model to ContactDto model - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -convert_mapi_contact_model_to_contact_model_async(request).get() returns [**ContactDto**](ContactDto.md) - -### Request Parameters -```python -__init__(self, - mapi_contact_dto) -``` - -### Usage -```python -EmailApi.convert_mapi_contact_model_to_contact_model_async( - ConvertMapiContactModelToContactModelRequest( - mapi_contact_dto)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **mapi_contact_dto** | [**MapiContactDto**](MapiContactDto.md)| MAPI 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_mapi_contact_model_to_file** -> convert_mapi_contact_model_to_file(self, convert_mapi_contact_model_to_file_request) - -Converts MAPI contact model to specified format and returns as file - -### Return type - -**file** - -### Request Parameters -```python -__init__(self, - destination_format, - mapi_contact_dto) -``` - -### Usage -```python -EmailApi.convert_mapi_contact_model_to_file( - ConvertMapiContactModelToFileRequest( - destination_format, - mapi_contact_dto)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **destination_format** | **str**| File format Enum, available values: VCard, WebDav, Msg | - **mapi_contact_dto** | [**MapiContactDto**](MapiContactDto.md)| MAPI 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_mapi_contact_model_to_file_async** -> convert_mapi_contact_model_to_file_async(self, convert_mapi_contact_model_to_file_request) - -Converts MAPI contact model to specified format and returns as file - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -convert_mapi_contact_model_to_file_async(request).get() returns **file** - -### Request Parameters -```python -__init__(self, - destination_format, - mapi_contact_dto) -``` - -### Usage -```python -EmailApi.convert_mapi_contact_model_to_file_async( - ConvertMapiContactModelToFileRequest( - destination_format, - mapi_contact_dto)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **destination_format** | **str**| File format Enum, available values: VCard, WebDav, Msg | - **mapi_contact_dto** | [**MapiContactDto**](MapiContactDto.md)| MAPI 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_mapi_message_model_to_email_model** -> convert_mapi_message_model_to_email_model(self, convert_mapi_message_model_to_email_model_request) - -Converts MAPI message model to EmailDto model - -### Return type - -[**EmailDto**](EmailDto.md) - -### Request Parameters -```python -__init__(self, - mapi_message) -``` - -### Usage -```python -EmailApi.convert_mapi_message_model_to_email_model( - ConvertMapiMessageModelToEmailModelRequest( - mapi_message)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **mapi_message** | [**MapiMessageDto**](MapiMessageDto.md)| MAPI message 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_mapi_message_model_to_email_model_async** -> convert_mapi_message_model_to_email_model_async(self, convert_mapi_message_model_to_email_model_request) - -Converts MAPI message model to EmailDto model - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -convert_mapi_message_model_to_email_model_async(request).get() returns [**EmailDto**](EmailDto.md) - -### Request Parameters -```python -__init__(self, - mapi_message) -``` - -### Usage -```python -EmailApi.convert_mapi_message_model_to_email_model_async( - ConvertMapiMessageModelToEmailModelRequest( - mapi_message)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **mapi_message** | [**MapiMessageDto**](MapiMessageDto.md)| MAPI message 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_mapi_message_model_to_file** -> convert_mapi_message_model_to_file(self, convert_mapi_message_model_to_file_request) - -Converts MAPI message model to specified format and returns as file - -### Return type - -**file** - -### Request Parameters -```python -__init__(self, - destination_format, - mapi_message) -``` - -### Usage -```python -EmailApi.convert_mapi_message_model_to_file( - ConvertMapiMessageModelToFileRequest( - destination_format, - mapi_message)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **destination_format** | **str**| File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | - **mapi_message** | [**MapiMessageDto**](MapiMessageDto.md)| MAPI message 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_mapi_message_model_to_file_async** -> convert_mapi_message_model_to_file_async(self, convert_mapi_message_model_to_file_request) - -Converts MAPI message model to specified format and returns as file - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -convert_mapi_message_model_to_file_async(request).get() returns **file** - -### Request Parameters -```python -__init__(self, - destination_format, - mapi_message) -``` - -### Usage -```python -EmailApi.convert_mapi_message_model_to_file_async( - ConvertMapiMessageModelToFileRequest( - destination_format, - mapi_message)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **destination_format** | **str**| File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | - **mapi_message** | [**MapiMessageDto**](MapiMessageDto.md)| MAPI message 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) - - -# **copy_file** -> copy_file(self, copy_file_request) - - - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - src_path, - dest_path, - src_storage_name=src_storage_name, - dest_storage_name=dest_storage_name, - version_id=version_id) -``` - -### Usage -```python -EmailApi.copy_file( - CopyFileRequest( - src_path, - dest_path, - src_storage_name=src_storage_name, - dest_storage_name=dest_storage_name, - version_id=version_id)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **copy_file_async** -> copy_file_async(self, copy_file_request) - - - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -copy_file_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - src_path, - dest_path, - src_storage_name=src_storage_name, - dest_storage_name=dest_storage_name, - version_id=version_id) -``` - -### Usage -```python -EmailApi.copy_file_async( - CopyFileRequest( - src_path, - dest_path, - src_storage_name=src_storage_name, - dest_storage_name=dest_storage_name, - version_id=version_id)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **copy_folder** -> copy_folder(self, copy_folder_request) - - - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - src_path, - dest_path, - src_storage_name=src_storage_name, - dest_storage_name=dest_storage_name) -``` - -### Usage -```python -EmailApi.copy_folder( - CopyFolderRequest( - src_path, - dest_path, - src_storage_name=src_storage_name, - dest_storage_name=dest_storage_name)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **copy_folder_async** -> copy_folder_async(self, copy_folder_request) - - - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -copy_folder_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - src_path, - dest_path, - src_storage_name=src_storage_name, - dest_storage_name=dest_storage_name) -``` - -### Usage -```python -EmailApi.copy_folder_async( - CopyFolderRequest( - src_path, - dest_path, - src_storage_name=src_storage_name, - dest_storage_name=dest_storage_name)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **create_calendar** -> create_calendar(self, create_calendar_request) - -Create calendar file - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - name, - request) -``` - -### Usage -```python -EmailApi.create_calendar( - CreateCalendarRequest( - name, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Calendar file name in storage | - **request** | [**HierarchicalObjectRequest**](HierarchicalObjectRequest.md)| | - -[[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) - - -# **create_calendar_async** -> create_calendar_async(self, create_calendar_request) - -Create calendar file - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -create_calendar_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - name, - request) -``` - -### Usage -```python -EmailApi.create_calendar_async( - CreateCalendarRequest( - name, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Calendar file name in storage | - **request** | [**HierarchicalObjectRequest**](HierarchicalObjectRequest.md)| | - -[[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) - - -# **create_contact** -> create_contact(self, create_contact_request) - -Create contact document - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - format, - name, - request) -``` - -### Usage -```python -EmailApi.create_contact( - CreateContactRequest( - format, - name, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format Enum, available values: VCard, WebDav, Msg | - **name** | **str**| Contact document file name | - **request** | [**HierarchicalObjectRequest**](HierarchicalObjectRequest.md)| Create contact 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) - - -# **create_contact_async** -> create_contact_async(self, create_contact_request) - -Create contact document - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -create_contact_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - format, - name, - request) -``` - -### Usage -```python -EmailApi.create_contact_async( - CreateContactRequest( - format, - name, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format Enum, available values: VCard, WebDav, Msg | - **name** | **str**| Contact document file name | - **request** | [**HierarchicalObjectRequest**](HierarchicalObjectRequest.md)| Create contact 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) - - -# **create_email** -> create_email(self, create_email_request) - -Create an email document - -### Return type - -[**EmailDocumentResponse**](EmailDocumentResponse.md) - -### Request Parameters -```python -__init__(self, - file_name, - request) -``` - -### Usage -```python -EmailApi.create_email( - CreateEmailRequest( - file_name, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **file_name** | **str**| Email document file name in storage | - **request** | [**CreateEmailRequest**](CreateEmailRequest.md)| An email document and optional Storage info to specify where the file should be located | - -[[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) - - -# **create_email_async** -> create_email_async(self, create_email_request) - -Create an email document - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -create_email_async(request).get() returns [**EmailDocumentResponse**](EmailDocumentResponse.md) - -### Request Parameters -```python -__init__(self, - file_name, - request) -``` - -### Usage -```python -EmailApi.create_email_async( - CreateEmailRequest( - file_name, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **file_name** | **str**| Email document file name in storage | - **request** | [**CreateEmailRequest**](CreateEmailRequest.md)| An email document and optional Storage info to specify where the file should be located | - -[[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) - - -# **create_email_folder** -> create_email_folder(self, create_email_folder_request) - -Create new folder in email account - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage -```python -EmailApi.create_email_folder( - CreateEmailFolderRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**CreateFolderBaseRequest**](CreateFolderBaseRequest.md)| Create folder 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) - - -# **create_email_folder_async** -> create_email_folder_async(self, create_email_folder_request) - -Create new folder in email account - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -create_email_folder_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage -```python -EmailApi.create_email_folder_async( - CreateEmailFolderRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**CreateFolderBaseRequest**](CreateFolderBaseRequest.md)| Create folder 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) - - -# **create_folder** -> create_folder(self, create_folder_request) - - - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - path, - storage_name=storage_name) -``` - -### Usage -```python -EmailApi.create_folder( - CreateFolderRequest( - path, - storage_name=storage_name)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **create_folder_async** -> create_folder_async(self, create_folder_request) - - - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -create_folder_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - path, - storage_name=storage_name) -``` - -### Usage -```python -EmailApi.create_folder_async( - CreateFolderRequest( - path, - storage_name=storage_name)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **create_mapi** -> create_mapi(self, create_mapi_request) - -Create new document - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - name, - request) -``` - -### Usage -```python -EmailApi.create_mapi( - CreateMapiRequest( - name, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Document file name | - **request** | [**HierarchicalObjectRequest**](HierarchicalObjectRequest.md)| Create document 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) - - -# **create_mapi_async** -> create_mapi_async(self, create_mapi_request) - -Create new document - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -create_mapi_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - name, - request) -``` - -### Usage -```python -EmailApi.create_mapi_async( - CreateMapiRequest( - name, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Document file name | - **request** | [**HierarchicalObjectRequest**](HierarchicalObjectRequest.md)| Create document 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) - - -# **delete_calendar_property** -> delete_calendar_property(self, delete_calendar_property_request) - -Deletes indexed property by index and name. To delete Reminder attachment, use path ReminderAttachment/{ReminderIndex}/{AttachmentIndex} - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - name, - member_name, - index, - request) -``` - -### Usage -```python -EmailApi.delete_calendar_property( - DeleteCalendarPropertyRequest( - name, - member_name, - index, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| iCalendar file name in storage | - **member_name** | **str**| Indexed property name | - **index** | **str**| Property index path | - **request** | [**StorageFolderLocation**](StorageFolderLocation.md)| Storage detail to specify iCalendar file location | - -[[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_calendar_property_async** -> delete_calendar_property_async(self, delete_calendar_property_request) - -Deletes indexed property by index and name. To delete Reminder attachment, use path ReminderAttachment/{ReminderIndex}/{AttachmentIndex} - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -delete_calendar_property_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - name, - member_name, - index, - request) -``` - -### Usage -```python -EmailApi.delete_calendar_property_async( - DeleteCalendarPropertyRequest( - name, - member_name, - index, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| iCalendar file name in storage | - **member_name** | **str**| Indexed property name | - **index** | **str**| Property index path | - **request** | [**StorageFolderLocation**](StorageFolderLocation.md)| Storage detail to specify iCalendar file location | - -[[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_contact_property** -> delete_contact_property(self, delete_contact_property_request) - -Delete property from indexed property list - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - format, - name, - member_name, - index, - folder) -``` - -### Usage -```python -EmailApi.delete_contact_property( - DeleteContactPropertyRequest( - format, - name, - member_name, - index, - folder)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format Enum, available values: VCard, WebDav, Msg | - **name** | **str**| Contact document file name | - **member_name** | **str**| Indexed property name | - **index** | **int**| Property index | - **folder** | [**StorageFolderLocation**](StorageFolderLocation.md)| Calendar document location in storage information | - -[[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_contact_property_async** -> delete_contact_property_async(self, delete_contact_property_request) - -Delete property from indexed property list - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -delete_contact_property_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - format, - name, - member_name, - index, - folder) -``` - -### Usage -```python -EmailApi.delete_contact_property_async( - DeleteContactPropertyRequest( - format, - name, - member_name, - index, - folder)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format Enum, available values: VCard, WebDav, Msg | - **name** | **str**| Contact document file name | - **member_name** | **str**| Indexed property name | - **index** | **int**| Property index | - **folder** | [**StorageFolderLocation**](StorageFolderLocation.md)| Calendar document location in storage information | - -[[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_folder** -> delete_email_folder(self, delete_email_folder_request) - -Delete a folder in email account - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage -```python -EmailApi.delete_email_folder( - DeleteEmailFolderRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**DeleteFolderBaseRequest**](DeleteFolderBaseRequest.md)| Delete folder 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) - - -# **delete_email_folder_async** -> delete_email_folder_async(self, delete_email_folder_request) - -Delete a folder in email account - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -delete_email_folder_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage -```python -EmailApi.delete_email_folder_async( - DeleteEmailFolderRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**DeleteFolderBaseRequest**](DeleteFolderBaseRequest.md)| Delete folder 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) - - -# **delete_email_message** -> delete_email_message(self, delete_email_message_request) - -Delete message from email account by id - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage -```python -EmailApi.delete_email_message( - DeleteEmailMessageRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**DeleteMessageBaseRequest**](DeleteMessageBaseRequest.md)| Delete message 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) - - -# **delete_email_message_async** -> delete_email_message_async(self, delete_email_message_request) - -Delete message from email account by id - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -delete_email_message_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage -```python -EmailApi.delete_email_message_async( - DeleteEmailMessageRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**DeleteMessageBaseRequest**](DeleteMessageBaseRequest.md)| Delete message 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) - - -# **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) - - - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - path, - storage_name=storage_name, - version_id=version_id) -``` - -### Usage -```python -EmailApi.delete_file( - DeleteFileRequest( - path, - storage_name=storage_name, - version_id=version_id)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **delete_file_async** -> delete_file_async(self, delete_file_request) - - - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -delete_file_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - path, - storage_name=storage_name, - version_id=version_id) -``` - -### Usage -```python -EmailApi.delete_file_async( - DeleteFileRequest( - path, - storage_name=storage_name, - version_id=version_id)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **delete_folder** -> delete_folder(self, delete_folder_request) - - - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - path, - storage_name=storage_name, - recursive=recursive) -``` - -### Usage -```python -EmailApi.delete_folder( - DeleteFolderRequest( - path, - storage_name=storage_name, - recursive=recursive)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **delete_folder_async** -> delete_folder_async(self, delete_folder_request) - - - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -delete_folder_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - path, - storage_name=storage_name, - recursive=recursive) -``` - -### Usage -```python -EmailApi.delete_folder_async( - DeleteFolderRequest( - path, - storage_name=storage_name, - recursive=recursive)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **delete_mapi_attachment** -> delete_mapi_attachment(self, delete_mapi_attachment_request) - -Remove attachment from document - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - name, - attachment, - storage) -``` - -### Usage -```python -EmailApi.delete_mapi_attachment( - DeleteMapiAttachmentRequest( - name, - attachment, - storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Document file name | - **attachment** | **str**| Attachment name or index | - **storage** | [**StorageFolderLocation**](StorageFolderLocation.md)| Document file storage location info | - -[[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_mapi_attachment_async** -> delete_mapi_attachment_async(self, delete_mapi_attachment_request) - -Remove attachment from document - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -delete_mapi_attachment_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - name, - attachment, - storage) -``` - -### Usage -```python -EmailApi.delete_mapi_attachment_async( - DeleteMapiAttachmentRequest( - name, - attachment, - storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Document file name | - **attachment** | **str**| Attachment name or index | - **storage** | [**StorageFolderLocation**](StorageFolderLocation.md)| Document file storage location info | - -[[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_mapi_properties** -> delete_mapi_properties(self, delete_mapi_properties_request) - -Delete document properties - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - name, - request) -``` - -### Usage -```python -EmailApi.delete_mapi_properties( - DeleteMapiPropertiesRequest( - name, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Document file name | - **request** | [**HierarchicalObjectRequest**](HierarchicalObjectRequest.md)| Properties that should be deleted | - -[[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_mapi_properties_async** -> delete_mapi_properties_async(self, delete_mapi_properties_request) - -Delete document properties - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -delete_mapi_properties_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - name, - request) -``` - -### Usage -```python -EmailApi.delete_mapi_properties_async( - DeleteMapiPropertiesRequest( - name, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Document file name | - **request** | [**HierarchicalObjectRequest**](HierarchicalObjectRequest.md)| Properties that should be deleted | - -[[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) - - -# **discover_email_config** -> discover_email_config(self, discover_email_config_request) - -Discover email accounts by email address. Does not validate discovered accounts. - -### Return type - -[**EmailAccountConfigList**](EmailAccountConfigList.md) - -### Request Parameters -```python -__init__(self, - address, - fast_processing=fast_processing) -``` - -### Usage -```python -EmailApi.discover_email_config( - DiscoverEmailConfigRequest( - address, - fast_processing=fast_processing)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **address** | **str**| Email address | - **fast_processing** | **bool**| Turns on fast processing. All discover systems will run in parallel. First discovered result will be returned | [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) - - -# **discover_email_config_async** -> discover_email_config_async(self, discover_email_config_request) - -Discover email accounts by email address. Does not validate discovered accounts. - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -discover_email_config_async(request).get() returns [**EmailAccountConfigList**](EmailAccountConfigList.md) - -### Request Parameters -```python -__init__(self, - address, - fast_processing=fast_processing) -``` - -### Usage -```python -EmailApi.discover_email_config_async( - DiscoverEmailConfigRequest( - address, - fast_processing=fast_processing)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **address** | **str**| Email address | - **fast_processing** | **bool**| Turns on fast processing. All discover systems will run in parallel. First discovered result will be returned | [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) - - -# **discover_email_config_oauth** -> discover_email_config_oauth(self, discover_email_config_oauth_request) - -Discover email accounts by email address. Validates discovered accounts using OAuth 2.0. - -### Return type - -[**EmailAccountConfigList**](EmailAccountConfigList.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.discover_email_config_oauth( - DiscoverEmailConfigOauthRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**DiscoverEmailConfigOauth**](DiscoverEmailConfigOauth.md)| Discover email configuration 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) - - -# **discover_email_config_oauth_async** -> discover_email_config_oauth_async(self, discover_email_config_oauth_request) - -Discover email accounts by email address. Validates discovered accounts using OAuth 2.0. - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -discover_email_config_oauth_async(request).get() returns [**EmailAccountConfigList**](EmailAccountConfigList.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.discover_email_config_oauth_async( - DiscoverEmailConfigOauthRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**DiscoverEmailConfigOauth**](DiscoverEmailConfigOauth.md)| Discover email configuration 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) - - -# **discover_email_config_password** -> discover_email_config_password(self, discover_email_config_password_request) - -Discover email accounts by email address. Validates discovered accounts using login and password. - -### Return type - -[**EmailAccountConfigList**](EmailAccountConfigList.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.discover_email_config_password( - DiscoverEmailConfigPasswordRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**DiscoverEmailConfigPassword**](DiscoverEmailConfigPassword.md)| Discover email configuration 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) - - -# **discover_email_config_password_async** -> discover_email_config_password_async(self, discover_email_config_password_request) - -Discover email accounts by email address. Validates discovered accounts using login and password. - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -discover_email_config_password_async(request).get() returns [**EmailAccountConfigList**](EmailAccountConfigList.md) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.discover_email_config_password_async( - DiscoverEmailConfigPasswordRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**DiscoverEmailConfigPassword**](DiscoverEmailConfigPassword.md)| Discover email configuration 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) - - -# **download_file** -> download_file(self, download_file_request) - - - -### Return type - -**file** - -### Request Parameters -```python -__init__(self, - path, - storage_name=storage_name, - version_id=version_id) -``` - -### Usage -```python -EmailApi.download_file( - DownloadFileRequest( - path, - storage_name=storage_name, - version_id=version_id)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **download_file_async** -> download_file_async(self, download_file_request) - - - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -download_file_async(request).get() returns **file** - -### Request Parameters -```python -__init__(self, - path, - storage_name=storage_name, - version_id=version_id) -``` - -### Usage -```python -EmailApi.download_file_async( - DownloadFileRequest( - path, - storage_name=storage_name, - version_id=version_id)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **fetch_email_message** -> fetch_email_message(self, fetch_email_message_request) - -Fetch message mime from email account - -### Return type - -[**MimeResponse**](MimeResponse.md) - -### Request Parameters -```python -__init__(self, - message_id, - first_account, - second_account=second_account, - folder=folder, - storage=storage, - storage_folder=storage_folder) -``` - -### Usage -```python -EmailApi.fetch_email_message( - FetchEmailMessageRequest( - message_id, - first_account, - second_account=second_account, - folder=folder, - storage=storage, - storage_folder=storage_folder)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **message_id** | **str**| Message 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**| 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_message_async** -> fetch_email_message_async(self, fetch_email_message_request) - -Fetch message mime from email account - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -fetch_email_message_async(request).get() returns [**MimeResponse**](MimeResponse.md) - -### Request Parameters -```python -__init__(self, - message_id, - first_account, - second_account=second_account, - folder=folder, - storage=storage, - storage_folder=storage_folder) -``` - -### Usage -```python -EmailApi.fetch_email_message_async( - FetchEmailMessageRequest( - message_id, - first_account, - second_account=second_account, - folder=folder, - storage=storage, - storage_folder=storage_folder)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **message_id** | **str**| Message 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**| 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_model** -> fetch_email_model(self, fetch_email_model_request) - -Fetch message model from email account - -### Return type - -[**EmailDto**](EmailDto.md) - -### Request Parameters -```python -__init__(self, - message_id, - first_account, - second_account=second_account, - folder=folder, - storage=storage, - storage_folder=storage_folder) -``` - -### Usage -```python -EmailApi.fetch_email_model( - FetchEmailModelRequest( - message_id, - first_account, - second_account=second_account, - folder=folder, - storage=storage, - storage_folder=storage_folder)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **message_id** | **str**| Message 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**| 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_model_async** -> fetch_email_model_async(self, fetch_email_model_request) - -Fetch message model from email account - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -fetch_email_model_async(request).get() returns [**EmailDto**](EmailDto.md) - -### Request Parameters -```python -__init__(self, - message_id, - first_account, - second_account=second_account, - folder=folder, - storage=storage, - storage_folder=storage_folder) -``` - -### Usage -```python -EmailApi.fetch_email_model_async( - FetchEmailModelRequest( - message_id, - first_account, - second_account=second_account, - folder=folder, - storage=storage, - storage_folder=storage_folder)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **message_id** | **str**| Message 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**| 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] - -[[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** -> get_calendar(self, get_calendar_request) - -Get calendar file properties - -### Return type - -[**HierarchicalObject**](HierarchicalObject.md) - -### Request Parameters -```python -__init__(self, - name, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_calendar( - 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_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_as_file_async** -> get_calendar_as_file_async(self, get_calendar_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_calendar_as_file_async(request).get() returns **file** - -### Request Parameters -```python -__init__(self, - file_name, - format, - storage=storage, - folder=folder) -``` - -### Usage -```python -EmailApi.get_calendar_as_file_async( - 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_attachment** -> get_calendar_attachment(self, get_calendar_attachment_request) - -Get iCalendar document attachment by name - -### Return type - -**file** - -### Request Parameters -```python -__init__(self, - name, - attachment, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_calendar_attachment( - GetCalendarAttachmentRequest( - name, - attachment, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| iCalendar document file name | - **attachment** | **str**| Attachment name or index | - **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_attachment_async** -> get_calendar_attachment_async(self, get_calendar_attachment_request) - -Get iCalendar document attachment by name - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_calendar_attachment_async(request).get() returns **file** - -### Request Parameters -```python -__init__(self, - name, - attachment, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_calendar_attachment_async( - GetCalendarAttachmentRequest( - name, - attachment, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| iCalendar document file name | - **attachment** | **str**| Attachment name or index | - **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_file_as_mapi_model** -> get_calendar_file_as_mapi_model(self, get_calendar_file_as_mapi_model_request) - -Converts calendar file to a MAPI model representation - -### Return type - -[**MapiCalendarDto**](MapiCalendarDto.md) - -### Request Parameters -```python -__init__(self, - file) -``` - -### Usage -```python -EmailApi.get_calendar_file_as_mapi_model( - GetCalendarFileAsMapiModelRequest( - 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_mapi_model_async** -> get_calendar_file_as_mapi_model_async(self, get_calendar_file_as_mapi_model_request) - -Converts calendar file to a MAPI model representation - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_calendar_file_as_mapi_model_async(request).get() returns [**MapiCalendarDto**](MapiCalendarDto.md) - -### Request Parameters -```python -__init__(self, - file) -``` - -### Usage -```python -EmailApi.get_calendar_file_as_mapi_model_async( - GetCalendarFileAsMapiModelRequest( - 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** -> 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) - -Get iCalendar files list in folder on storage - -### Return type - -[**ListResponseOfHierarchicalObjectResponse**](ListResponseOfHierarchicalObjectResponse.md) - -### Request Parameters -```python -__init__(self, - folder, - items_per_page, - page_number, - storage=storage) -``` - -### Usage -```python -EmailApi.get_calendar_list( - GetCalendarListRequest( - folder, - items_per_page, - page_number, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **folder** | **str**| Path to folder in storage | - **items_per_page** | **int**| Count of items on page | - **page_number** | **int**| Page number | - **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_list_async** -> get_calendar_list_async(self, get_calendar_list_request) - -Get iCalendar files list in folder on storage - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_calendar_list_async(request).get() returns [**ListResponseOfHierarchicalObjectResponse**](ListResponseOfHierarchicalObjectResponse.md) - -### Request Parameters -```python -__init__(self, - folder, - items_per_page, - page_number, - storage=storage) -``` - -### Usage -```python -EmailApi.get_calendar_list_async( - GetCalendarListRequest( - folder, - items_per_page, - page_number, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **folder** | **str**| Path to folder in storage | - **items_per_page** | **int**| Count of items on page | - **page_number** | **int**| Page number | - **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_model** -> get_calendar_model(self, get_calendar_model_request) - -Get calendar file - -### Return type - -[**CalendarDto**](CalendarDto.md) - -### Request Parameters -```python -__init__(self, - name, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_calendar_model( - GetCalendarModelRequest( - 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_model_async** -> get_calendar_model_async(self, get_calendar_model_request) - -Get calendar file - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_calendar_model_async(request).get() returns [**CalendarDto**](CalendarDto.md) - -### Request Parameters -```python -__init__(self, - name, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_calendar_model_async( - GetCalendarModelRequest( - 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_model_as_alternate** -> get_calendar_model_as_alternate(self, get_calendar_model_as_alternate_request) - -Get iCalendar from storage as AlternateView - -### Return type - -[**AlternateView**](AlternateView.md) - -### Request Parameters -```python -__init__(self, - name, - calendar_action, - sequence_id=sequence_id, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_calendar_model_as_alternate( - GetCalendarModelAsAlternateRequest( - name, - calendar_action, - sequence_id=sequence_id, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| iCalendar file name in storage | - **calendar_action** | **str**| iCalendar method type Enum, available values: Create, Update, Cancel | - **sequence_id** | **str**| The sequence id | [optional] - **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_model_as_alternate_async** -> get_calendar_model_as_alternate_async(self, get_calendar_model_as_alternate_request) - -Get iCalendar from storage as AlternateView - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_calendar_model_as_alternate_async(request).get() returns [**AlternateView**](AlternateView.md) - -### Request Parameters -```python -__init__(self, - name, - calendar_action, - sequence_id=sequence_id, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_calendar_model_as_alternate_async( - GetCalendarModelAsAlternateRequest( - name, - calendar_action, - sequence_id=sequence_id, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| iCalendar file name in storage | - **calendar_action** | **str**| iCalendar method type Enum, available values: Create, Update, Cancel | - **sequence_id** | **str**| The sequence id | [optional] - **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_model_list** -> get_calendar_model_list(self, get_calendar_model_list_request) - -Get iCalendar list from storage folder - -### Return type - -[**CalendarDtoList**](CalendarDtoList.md) - -### Request Parameters -```python -__init__(self, - folder, - items_per_page=items_per_page, - page_number=page_number, - storage=storage) -``` - -### Usage -```python -EmailApi.get_calendar_model_list( - GetCalendarModelListRequest( - folder, - items_per_page=items_per_page, - page_number=page_number, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **folder** | **str**| Path to folder in storage | - **items_per_page** | **int**| Count of items on page | [optional] [default to 10] - **page_number** | **int**| Page number | [optional] [default to 0] - **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_model_list_async** -> get_calendar_model_list_async(self, get_calendar_model_list_request) - -Get iCalendar list from storage folder - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_calendar_model_list_async(request).get() returns [**CalendarDtoList**](CalendarDtoList.md) - -### Request Parameters -```python -__init__(self, - folder, - items_per_page=items_per_page, - page_number=page_number, - storage=storage) -``` - -### Usage -```python -EmailApi.get_calendar_model_list_async( - GetCalendarModelListRequest( - folder, - items_per_page=items_per_page, - page_number=page_number, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **folder** | **str**| Path to folder in storage | - **items_per_page** | **int**| Count of items on page | [optional] [default to 10] - **page_number** | **int**| Page number | [optional] [default to 0] - **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_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) - -Get attachment file by name - -### Return type - -**file** - -### Request Parameters -```python -__init__(self, - format, - name, - attachment, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_contact_attachment( - GetContactAttachmentRequest( - format, - name, - attachment, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format. Enum, available values: VCard, WebDav, Msg | - **name** | **str**| Contact document file name | - **attachment** | **str**| Attachment name or index | - **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_contact_attachment_async** -> get_contact_attachment_async(self, get_contact_attachment_request) - -Get attachment file by name - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_contact_attachment_async(request).get() returns **file** - -### Request Parameters -```python -__init__(self, - format, - name, - attachment, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_contact_attachment_async( - GetContactAttachmentRequest( - format, - name, - attachment, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format. Enum, available values: VCard, WebDav, Msg | - **name** | **str**| Contact document file name | - **attachment** | **str**| Attachment name or index | - **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_contact_file_as_mapi_model** -> get_contact_file_as_mapi_model(self, get_contact_file_as_mapi_model_request) - -Converts contact file to a MAPI model representation - -### Return type - -[**MapiContactDto**](MapiContactDto.md) - -### Request Parameters -```python -__init__(self, - file_format, - file) -``` - -### Usage -```python -EmailApi.get_contact_file_as_mapi_model( - GetContactFileAsMapiModelRequest( - file_format, - file)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **file_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_mapi_model_async** -> get_contact_file_as_mapi_model_async(self, get_contact_file_as_mapi_model_request) - -Converts contact file to a MAPI model representation - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_contact_file_as_mapi_model_async(request).get() returns [**MapiContactDto**](MapiContactDto.md) - -### Request Parameters -```python -__init__(self, - file_format, - file) -``` - -### Usage -```python -EmailApi.get_contact_file_as_mapi_model_async( - GetContactFileAsMapiModelRequest( - file_format, - file)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **file_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** -> 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) - -Get contact list from storage folder - -### Return type - -[**ListResponseOfHierarchicalObjectResponse**](ListResponseOfHierarchicalObjectResponse.md) - -### Request Parameters -```python -__init__(self, - format, - folder=folder, - storage=storage, - items_per_page=items_per_page, - page_number=page_number) -``` - -### Usage -```python -EmailApi.get_contact_list( - GetContactListRequest( - format, - folder=folder, - storage=storage, - items_per_page=items_per_page, - page_number=page_number)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format. Enum, available values: VCard, WebDav, Msg | - **folder** | **str**| Path to folder in storage | [optional] - **storage** | **str**| Storage name | [optional] - **items_per_page** | **int**| Count of items on page | [optional] [default to 10] - **page_number** | **int**| Page number | [optional] [default to 0] - -[[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_async** -> get_contact_list_async(self, get_contact_list_request) - -Get contact list from storage folder - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_contact_list_async(request).get() returns [**ListResponseOfHierarchicalObjectResponse**](ListResponseOfHierarchicalObjectResponse.md) - -### Request Parameters -```python -__init__(self, - format, - folder=folder, - storage=storage, - items_per_page=items_per_page, - page_number=page_number) -``` - -### Usage -```python -EmailApi.get_contact_list_async( - GetContactListRequest( - format, - folder=folder, - storage=storage, - items_per_page=items_per_page, - page_number=page_number)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format. Enum, available values: VCard, WebDav, Msg | - **folder** | **str**| Path to folder in storage | [optional] - **storage** | **str**| Storage name | [optional] - **items_per_page** | **int**| Count of items on page | [optional] [default to 10] - **page_number** | **int**| Page number | [optional] [default to 0] - -[[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_model** -> get_contact_model(self, get_contact_model_request) - -Get contact document. - -### Return type - -[**ContactDto**](ContactDto.md) - -### Request Parameters -```python -__init__(self, - format, - name, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_contact_model( - GetContactModelRequest( - format, - name, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format. Enum, available values: VCard, WebDav, Msg | - **name** | **str**| Contact document file name. | - **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_contact_model_async** -> get_contact_model_async(self, get_contact_model_request) - -Get contact document. - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_contact_model_async(request).get() returns [**ContactDto**](ContactDto.md) - -### Request Parameters -```python -__init__(self, - format, - name, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_contact_model_async( - GetContactModelRequest( - format, - name, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format. Enum, available values: VCard, WebDav, Msg | - **name** | **str**| Contact document file name. | - **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_contact_model_list** -> get_contact_model_list(self, get_contact_model_list_request) - -Get contact list from storage folder. - -### Return type - -[**ContactDtoList**](ContactDtoList.md) - -### Request Parameters -```python -__init__(self, - format, - folder=folder, - storage=storage, - items_per_page=items_per_page, - page_number=page_number) -``` - -### Usage -```python -EmailApi.get_contact_model_list( - GetContactModelListRequest( - format, - folder=folder, - storage=storage, - items_per_page=items_per_page, - page_number=page_number)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format. Enum, available values: VCard, WebDav, Msg | - **folder** | **str**| Path to folder in storage. | [optional] - **storage** | **str**| Storage name. | [optional] - **items_per_page** | **int**| Count of items on page. | [optional] [default to 10] - **page_number** | **int**| Page number. | [optional] [default to 0] - -[[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_model_list_async** -> get_contact_model_list_async(self, get_contact_model_list_request) - -Get contact list from storage folder. - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_contact_model_list_async(request).get() returns [**ContactDtoList**](ContactDtoList.md) - -### Request Parameters -```python -__init__(self, - format, - folder=folder, - storage=storage, - items_per_page=items_per_page, - page_number=page_number) -``` - -### Usage -```python -EmailApi.get_contact_model_list_async( - GetContactModelListRequest( - format, - folder=folder, - storage=storage, - items_per_page=items_per_page, - page_number=page_number)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format. Enum, available values: VCard, WebDav, Msg | - **folder** | **str**| Path to folder in storage. | [optional] - **storage** | **str**| Storage name. | [optional] - **items_per_page** | **int**| Count of items on page. | [optional] [default to 10] - **page_number** | **int**| Page number. | [optional] [default to 0] - -[[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_properties** -> get_contact_properties(self, get_contact_properties_request) - -Get contact document properties - -### Return type - -[**HierarchicalObject**](HierarchicalObject.md) - -### Request Parameters -```python -__init__(self, - format, - name, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_contact_properties( - GetContactPropertiesRequest( - format, - name, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format. Enum, available values: VCard, WebDav, Msg | - **name** | **str**| Contact document file name | - **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_contact_properties_async** -> get_contact_properties_async(self, get_contact_properties_request) - -Get contact document properties - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_contact_properties_async(request).get() returns [**HierarchicalObject**](HierarchicalObject.md) - -### Request Parameters -```python -__init__(self, - format, - name, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_contact_properties_async( - GetContactPropertiesRequest( - format, - name, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format. Enum, available values: VCard, WebDav, Msg | - **name** | **str**| Contact document file name | - **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_disc_usage** -> get_disc_usage(self, get_disc_usage_request) - - - -### Return type - -[**DiscUsage**](DiscUsage.md) - -### Request Parameters -```python -__init__(self, - storage_name=storage_name) -``` - -### Usage -```python -EmailApi.get_disc_usage( - GetDiscUsageRequest( - storage_name=storage_name)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **get_disc_usage_async** -> get_disc_usage_async(self, get_disc_usage_request) - - - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_disc_usage_async(request).get() returns [**DiscUsage**](DiscUsage.md) - -### Request Parameters -```python -__init__(self, - storage_name=storage_name) -``` - -### Usage -```python -EmailApi.get_disc_usage_async( - GetDiscUsageRequest( - storage_name=storage_name)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **get_email** -> get_email(self, get_email_request) - -Get email document - -### Return type - -[**EmailDocument**](EmailDocument.md) - -### Request Parameters -```python -__init__(self, - file_name, - storage=storage, - folder=folder) -``` - -### Usage -```python -EmailApi.get_email( - GetEmailRequest( - file_name, - storage=storage, - folder=folder)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **file_name** | **str**| Email document file name in storage | - **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_email_async** -> get_email_async(self, get_email_request) - -Get email document - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_email_async(request).get() returns [**EmailDocument**](EmailDocument.md) - -### Request Parameters -```python -__init__(self, - file_name, - storage=storage, - folder=folder) -``` - -### Usage -```python -EmailApi.get_email_async( - GetEmailRequest( - file_name, - storage=storage, - folder=folder)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **file_name** | **str**| Email document file name in storage | - **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_email_as_file** -> get_email_as_file(self, get_email_as_file_request) - -Converts email 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_email_as_file( - GetEmailAsFileRequest( - file_name, - format, - storage=storage, - folder=folder)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **file_name** | **str**| Email document file name | - **format** | **str**| File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | - **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_email_as_file_async** -> get_email_as_file_async(self, get_email_as_file_request) - -Converts email document from storage to specified format and returns as file - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_email_as_file_async(request).get() returns **file** - -### Request Parameters -```python -__init__(self, - file_name, - format, - storage=storage, - folder=folder) -``` - -### Usage -```python -EmailApi.get_email_as_file_async( - GetEmailAsFileRequest( - file_name, - format, - storage=storage, - folder=folder)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **file_name** | **str**| Email document file name | - **format** | **str**| File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | - **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_email_attachment** -> get_email_attachment(self, get_email_attachment_request) - -Get email attachment by name - -### Return type - -**file** - -### Request Parameters -```python -__init__(self, - attachment, - file_name, - storage=storage, - folder=folder) -``` - -### Usage -```python -EmailApi.get_email_attachment( - GetEmailAttachmentRequest( - attachment, - file_name, - storage=storage, - folder=folder)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **attachment** | **str**| Attachment name | - **file_name** | **str**| Email document file name | - **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_email_attachment_async** -> get_email_attachment_async(self, get_email_attachment_request) - -Get email attachment by name - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_email_attachment_async(request).get() returns **file** - -### Request Parameters -```python -__init__(self, - attachment, - file_name, - storage=storage, - folder=folder) -``` - -### Usage -```python -EmailApi.get_email_attachment_async( - GetEmailAttachmentRequest( - attachment, - file_name, - storage=storage, - folder=folder)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **attachment** | **str**| Attachment name | - **file_name** | **str**| Email document file name | - **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_email_client_account** -> get_email_client_account(self, get_email_client_account_request) - -Get email client account from storage - -### Return type - -[**EmailClientAccount**](EmailClientAccount.md) - -### Request Parameters -```python -__init__(self, - name, - folder, - storage) -``` - -### Usage -```python -EmailApi.get_email_client_account( - GetEmailClientAccountRequest( - 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_client_account_async** -> get_email_client_account_async(self, get_email_client_account_request) - -Get email client account from storage - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_email_client_account_async(request).get() returns [**EmailClientAccount**](EmailClientAccount.md) - -### Request Parameters -```python -__init__(self, - name, - folder, - storage) -``` - -### Usage -```python -EmailApi.get_email_client_account_async( - GetEmailClientAccountRequest( - 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_client_multi_account** -> get_email_client_multi_account(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\". - -### Return type - -[**EmailClientMultiAccount**](EmailClientMultiAccount.md) - -### Request Parameters -```python -__init__(self, - name, - folder, - storage) -``` - -### Usage -```python -EmailApi.get_email_client_multi_account( - 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_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_mapi_model** -> get_email_file_as_mapi_model(self, get_email_file_as_mapi_model_request) - -Converts email file to a MAPI model representation - -### Return type - -[**MapiMessageDto**](MapiMessageDto.md) - -### Request Parameters -```python -__init__(self, - file_format, - file) -``` - -### Usage -```python -EmailApi.get_email_file_as_mapi_model( - GetEmailFileAsMapiModelRequest( - file_format, - file)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **file_format** | **str**| File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | - **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_file_as_mapi_model_async** -> get_email_file_as_mapi_model_async(self, get_email_file_as_mapi_model_request) - -Converts email file to a MAPI model representation - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_email_file_as_mapi_model_async(request).get() returns [**MapiMessageDto**](MapiMessageDto.md) - -### Request Parameters -```python -__init__(self, - file_format, - file) -``` - -### Usage -```python -EmailApi.get_email_file_as_mapi_model_async( - GetEmailFileAsMapiModelRequest( - file_format, - file)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **file_format** | **str**| File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | - **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_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_file_as_model_async** -> get_email_file_as_model_async(self, get_email_file_as_model_request) - -Converts email document to a model representation - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_email_file_as_model_async(request).get() returns [**EmailDto**](EmailDto.md) - -### Request Parameters -```python -__init__(self, - file) -``` - -### Usage -```python -EmailApi.get_email_file_as_model_async( - 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_model** -> get_email_model(self, get_email_model_request) - -Get email document. - -### Return type - -[**EmailDto**](EmailDto.md) - -### Request Parameters -```python -__init__(self, - format, - name, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_email_model( - GetEmailModelRequest( - format, - name, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | - **name** | **str**| Email document file name. | - **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_email_model_async** -> get_email_model_async(self, get_email_model_request) - -Get email document. - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_email_model_async(request).get() returns [**EmailDto**](EmailDto.md) - -### Request Parameters -```python -__init__(self, - format, - name, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_email_model_async( - GetEmailModelRequest( - format, - name, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | - **name** | **str**| Email document file name. | - **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_email_model_list** -> get_email_model_list(self, get_email_model_list_request) - -Get email list from storage folder. - -### Return type - -[**EmailDtoList**](EmailDtoList.md) - -### Request Parameters -```python -__init__(self, - format, - folder=folder, - storage=storage, - items_per_page=items_per_page, - page_number=page_number) -``` - -### Usage -```python -EmailApi.get_email_model_list( - GetEmailModelListRequest( - format, - folder=folder, - storage=storage, - items_per_page=items_per_page, - page_number=page_number)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | - **folder** | **str**| Path to folder in storage. | [optional] - **storage** | **str**| Storage name. | [optional] - **items_per_page** | **int**| Count of items on page. | [optional] [default to 10] - **page_number** | **int**| Page number. | [optional] [default to 0] - -[[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_model_list_async** -> get_email_model_list_async(self, get_email_model_list_request) - -Get email list from storage folder. - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_email_model_list_async(request).get() returns [**EmailDtoList**](EmailDtoList.md) - -### Request Parameters -```python -__init__(self, - format, - folder=folder, - storage=storage, - items_per_page=items_per_page, - page_number=page_number) -``` - -### Usage -```python -EmailApi.get_email_model_list_async( - GetEmailModelListRequest( - format, - folder=folder, - storage=storage, - items_per_page=items_per_page, - page_number=page_number)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | - **folder** | **str**| Path to folder in storage. | [optional] - **storage** | **str**| Storage name. | [optional] - **items_per_page** | **int**| Count of items on page. | [optional] [default to 10] - **page_number** | **int**| Page number. | [optional] [default to 0] - -[[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_property** -> get_email_property(self, get_email_property_request) - -Get an email document property by its name - -### Return type - -[**EmailPropertyResponse**](EmailPropertyResponse.md) - -### Request Parameters -```python -__init__(self, - property_name, - file_name, - storage=storage, - folder=folder) -``` - -### Usage -```python -EmailApi.get_email_property( - GetEmailPropertyRequest( - property_name, - file_name, - storage=storage, - folder=folder)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_name** | **str**| A property name | - **file_name** | **str**| Email document file name | - **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_email_property_async** -> get_email_property_async(self, get_email_property_request) - -Get an email document property by its name - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_email_property_async(request).get() returns [**EmailPropertyResponse**](EmailPropertyResponse.md) - -### Request Parameters -```python -__init__(self, - property_name, - file_name, - storage=storage, - folder=folder) -``` - -### Usage -```python -EmailApi.get_email_property_async( - GetEmailPropertyRequest( - property_name, - file_name, - storage=storage, - folder=folder)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_name** | **str**| A property name | - **file_name** | **str**| Email document file name | - **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_file_versions** -> get_file_versions(self, get_file_versions_request) - - - -### Return type - -[**FileVersions**](FileVersions.md) - -### Request Parameters -```python -__init__(self, - path, - storage_name=storage_name) -``` - -### Usage -```python -EmailApi.get_file_versions( - GetFileVersionsRequest( - path, - storage_name=storage_name)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **get_file_versions_async** -> get_file_versions_async(self, get_file_versions_request) - - - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_file_versions_async(request).get() returns [**FileVersions**](FileVersions.md) - -### Request Parameters -```python -__init__(self, - path, - storage_name=storage_name) -``` - -### Usage -```python -EmailApi.get_file_versions_async( - GetFileVersionsRequest( - path, - storage_name=storage_name)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **get_files_list** -> get_files_list(self, get_files_list_request) - - - -### Return type - -[**FilesList**](FilesList.md) - -### Request Parameters -```python -__init__(self, - path, - storage_name=storage_name) -``` - -### Usage -```python -EmailApi.get_files_list( - GetFilesListRequest( - path, - storage_name=storage_name)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **get_files_list_async** -> get_files_list_async(self, get_files_list_request) - - - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_files_list_async(request).get() returns [**FilesList**](FilesList.md) - -### Request Parameters -```python -__init__(self, - path, - storage_name=storage_name) -``` - -### Usage -```python -EmailApi.get_files_list_async( - GetFilesListRequest( - path, - storage_name=storage_name)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **get_mapi_attachment** -> get_mapi_attachment(self, get_mapi_attachment_request) - -Get document attachment as file stream - -### Return type - -**file** - -### Request Parameters -```python -__init__(self, - name, - attachment, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_mapi_attachment( - GetMapiAttachmentRequest( - name, - attachment, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Document file name | - **attachment** | **str**| Attachment name or index | - **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_mapi_attachment_async** -> get_mapi_attachment_async(self, get_mapi_attachment_request) - -Get document attachment as file stream - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_mapi_attachment_async(request).get() returns **file** - -### Request Parameters -```python -__init__(self, - name, - attachment, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_mapi_attachment_async( - GetMapiAttachmentRequest( - name, - attachment, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Document file name | - **attachment** | **str**| Attachment name or index | - **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_mapi_attachments** -> get_mapi_attachments(self, get_mapi_attachments_request) - -Get document attachment list - -### Return type - -[**ListResponseOfString**](ListResponseOfString.md) - -### Request Parameters -```python -__init__(self, - name, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_mapi_attachments( - GetMapiAttachmentsRequest( - name, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Document file name | - **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_mapi_attachments_async** -> get_mapi_attachments_async(self, get_mapi_attachments_request) - -Get document attachment list - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_mapi_attachments_async(request).get() returns [**ListResponseOfString**](ListResponseOfString.md) - -### Request Parameters -```python -__init__(self, - name, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_mapi_attachments_async( - GetMapiAttachmentsRequest( - name, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Document file name | - **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_mapi_calendar_model** -> get_mapi_calendar_model(self, get_mapi_calendar_model_request) - -Get MAPI calendar document. - -### Return type - -[**MapiCalendarDto**](MapiCalendarDto.md) - -### Request Parameters -```python -__init__(self, - name, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_mapi_calendar_model( - GetMapiCalendarModelRequest( - name, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Calendar 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_mapi_calendar_model_async** -> get_mapi_calendar_model_async(self, get_mapi_calendar_model_request) - -Get MAPI calendar document. - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_mapi_calendar_model_async(request).get() returns [**MapiCalendarDto**](MapiCalendarDto.md) - -### Request Parameters -```python -__init__(self, - name, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_mapi_calendar_model_async( - GetMapiCalendarModelRequest( - name, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Calendar 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_mapi_contact_model** -> get_mapi_contact_model(self, get_mapi_contact_model_request) - -Get MAPI contact document. - -### Return type - -[**MapiContactDto**](MapiContactDto.md) - -### Request Parameters -```python -__init__(self, - format, - name, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_mapi_contact_model( - GetMapiContactModelRequest( - format, - name, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format. Enum, available values: VCard, WebDav, Msg | - **name** | **str**| Contact document file name. | - **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_mapi_contact_model_async** -> get_mapi_contact_model_async(self, get_mapi_contact_model_request) - -Get MAPI contact document. - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_mapi_contact_model_async(request).get() returns [**MapiContactDto**](MapiContactDto.md) - -### Request Parameters -```python -__init__(self, - format, - name, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_mapi_contact_model_async( - GetMapiContactModelRequest( - format, - name, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format. Enum, available values: VCard, WebDav, Msg | - **name** | **str**| Contact document file name. | - **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_mapi_list** -> get_mapi_list(self, get_mapi_list_request) - -Get document list from storage folder - -### Return type - -[**ListResponseOfHierarchicalObjectResponse**](ListResponseOfHierarchicalObjectResponse.md) - -### Request Parameters -```python -__init__(self, - folder=folder, - storage=storage, - items_per_page=items_per_page, - page_number=page_number) -``` - -### Usage -```python -EmailApi.get_mapi_list( - GetMapiListRequest( - folder=folder, - storage=storage, - items_per_page=items_per_page, - page_number=page_number)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **folder** | **str**| Path to folder in storage | [optional] - **storage** | **str**| Storage name | [optional] - **items_per_page** | **int**| Count of items on page | [optional] [default to 10] - **page_number** | **int**| Page number | [optional] [default to 0] - -[[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_mapi_list_async** -> get_mapi_list_async(self, get_mapi_list_request) - -Get document list from storage folder - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_mapi_list_async(request).get() returns [**ListResponseOfHierarchicalObjectResponse**](ListResponseOfHierarchicalObjectResponse.md) - -### Request Parameters -```python -__init__(self, - folder=folder, - storage=storage, - items_per_page=items_per_page, - page_number=page_number) -``` - -### Usage -```python -EmailApi.get_mapi_list_async( - GetMapiListRequest( - folder=folder, - storage=storage, - items_per_page=items_per_page, - page_number=page_number)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **folder** | **str**| Path to folder in storage | [optional] - **storage** | **str**| Storage name | [optional] - **items_per_page** | **int**| Count of items on page | [optional] [default to 10] - **page_number** | **int**| Page number | [optional] [default to 0] - -[[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_mapi_message_model** -> get_mapi_message_model(self, get_mapi_message_model_request) - -Get MAPI message document. - -### Return type - -[**MapiMessageDto**](MapiMessageDto.md) - -### Request Parameters -```python -__init__(self, - format, - name, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_mapi_message_model( - GetMapiMessageModelRequest( - format, - name, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | - **name** | **str**| Email document file name. | - **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_mapi_message_model_async** -> get_mapi_message_model_async(self, get_mapi_message_model_request) - -Get MAPI message document. - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_mapi_message_model_async(request).get() returns [**MapiMessageDto**](MapiMessageDto.md) - -### Request Parameters -```python -__init__(self, - format, - name, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_mapi_message_model_async( - GetMapiMessageModelRequest( - format, - name, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | - **name** | **str**| Email document file name. | - **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_mapi_properties** -> get_mapi_properties(self, get_mapi_properties_request) - -Get document properties - -### Return type - -[**HierarchicalObjectResponse**](HierarchicalObjectResponse.md) - -### Request Parameters -```python -__init__(self, - name, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_mapi_properties( - GetMapiPropertiesRequest( - name, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Document file name | - **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_mapi_properties_async** -> get_mapi_properties_async(self, get_mapi_properties_request) - -Get document properties - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -get_mapi_properties_async(request).get() returns [**HierarchicalObjectResponse**](HierarchicalObjectResponse.md) - -### Request Parameters -```python -__init__(self, - name, - folder=folder, - storage=storage) -``` - -### Usage -```python -EmailApi.get_mapi_properties_async( - GetMapiPropertiesRequest( - name, - folder=folder, - storage=storage)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Document file name | - **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) - - -# **is_email_address_disposable** -> is_email_address_disposable(self, is_email_address_disposable_request) - -Check email address is disposable - -### Return type - -[**ValueTOfBoolean**](ValueTOfBoolean.md) - -### Request Parameters -```python -__init__(self, - address) -``` - -### Usage -```python -EmailApi.is_email_address_disposable( - IsEmailAddressDisposableRequest( - address)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **address** | **str**| An email address to check | - -[[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) - - -# **is_email_address_disposable_async** -> is_email_address_disposable_async(self, is_email_address_disposable_request) - -Check email address is disposable - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -is_email_address_disposable_async(request).get() returns [**ValueTOfBoolean**](ValueTOfBoolean.md) - -### Request Parameters -```python -__init__(self, - address) -``` - -### Usage -```python -EmailApi.is_email_address_disposable_async( - IsEmailAddressDisposableRequest( - address)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **address** | **str**| An email address to check | - -[[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_folders** -> list_email_folders(self, list_email_folders_request) - -Get folders list in email account - -### Return type - -[**ListResponseOfMailServerFolder**](ListResponseOfMailServerFolder.md) - -### Request Parameters -```python -__init__(self, - first_account, - second_account=second_account, - storage=storage, - storage_folder=storage_folder, - parent_folder=parent_folder) -``` - -### Usage -```python -EmailApi.list_email_folders( - ListEmailFoldersRequest( - first_account, - second_account=second_account, - storage=storage, - storage_folder=storage_folder, - parent_folder=parent_folder)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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] - **parent_folder** | **str**| Folder in which subfolders should be listed | [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) - - -# **list_email_folders_async** -> list_email_folders_async(self, list_email_folders_request) - -Get folders list in email account - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -list_email_folders_async(request).get() returns [**ListResponseOfMailServerFolder**](ListResponseOfMailServerFolder.md) - -### Request Parameters -```python -__init__(self, - first_account, - second_account=second_account, - storage=storage, - storage_folder=storage_folder, - parent_folder=parent_folder) -``` - -### Usage -```python -EmailApi.list_email_folders_async( - ListEmailFoldersRequest( - first_account, - second_account=second_account, - storage=storage, - storage_folder=storage_folder, - parent_folder=parent_folder)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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] - **parent_folder** | **str**| Folder in which subfolders should be listed | [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) - - -# **list_email_messages** -> list_email_messages(self, list_email_messages_request) - -Get messages from folder, filtered by query - -The query string should have the following view. The example of a simple expression: '' '', where <Field Name> - the name of a message field through which filtering is made, <Comparison operator> - comparison operators, as their name implies, allow to compare message field and specified value, <Field value> - value to be compared with a message field. The number of simple expressions can make a compound one, ex.: ( & ) | , where \"&\" - logical-AND operator, \"|\" - logical-OR operator At present the following values are allowed as a field name (): \"To\" - represents a TO field of message, \"Text\" - represents string in the header or body of the message, \"Bcc\" - represents a BCC field of message, \"Body\" - represents a string in the body of message, \"Cc\" - represents a CC field of message, \"From\" - represents a From field of message, \"Subject\" - represents a string in the subject of message, \"InternalDate\" - represents an internal date of message, \"SentDate\" - represents a sent date of message Additionally, the following field names are allowed for IMAP-protocol: \"Answered\" - represents an /Answered flag of message \"Seen\" - represents a /Seen flag of message \"Flagged\" - represents a /Flagged flag of message \"Draft\" - represents a /Draft flag of message \"Deleted\" - represents a Deleted/ flag of message \"Recent\" - represents a Deleted/ flag of message \"MessageSize\" - represents a size (in bytes) of message Additionally, the following field names are allowed for Exchange: \"IsRead\" - Indicates whether the message has been read \"HasAttachment\" - Indicates whether or not the message has attachments \"IsSubmitted\" - Indicates whether the message has been submitted to the Outbox \"ContentClass\" - represents a content class of item Additionally, the following field names are allowed for pst/ost files: \"MessageClass\" - Represents a message class \"ContainerClass\" - Represents a folder container class \"Importance\" - Represents a message importance \"MessageSize\" - represents a size (in bytes) of message \"FolderName\" - represents a folder name \"ContentsCount\" - represents a total number of items in the folder \"UnreadContentsCount\" - represents the number of unread items in the folder. \"Subfolders\" - Indicates whether or not the folder has subfolders \"Read\" - the message is marked as having been read \"HasAttachment\" - the message has at least one attachment \"Unsent\" - the message is still being composed \"Unmodified\" - the message has not been modified since it was first saved (if unsent) or it was delivered (if sent) \"FromMe\" - the user receiving the message was also the user who sent the message \"Resend\" - the message includes a request for a resend operation with a non-delivery report \"NotifyRead\" - the user who sent the message has requested notification when a recipient first reads it \"NotifyUnread\" - the user who sent the message has requested notification when a recipient deletes it before reading or the Message object expires \"EverRead\" - the message has been read at least once The field value () can take the following values: For text fields - any string, For date type fields - the string of \"d-MMM-yyy\" format, ex. \"10-Feb-2009\", For flags (fields of boolean type) - either \"True\", or \"False\" - -### Return type - -[**ListResponseOfString**](ListResponseOfString.md) - -### Request Parameters -```python -__init__(self, - folder, - query_string, - first_account, - second_account=second_account, - storage=storage, - storage_folder=storage_folder, - recursive=recursive) -``` - -### Usage -```python -EmailApi.list_email_messages( - ListEmailMessagesRequest( - folder, - query_string, - first_account, - second_account=second_account, - storage=storage, - storage_folder=storage_folder, - recursive=recursive)) -``` - - -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 (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_messages_async** -> list_email_messages_async(self, list_email_messages_request) - -Get messages from folder, filtered by query - -Performs operation asynchronously. - -The query string should have the following view. The example of a simple expression: '' '', where <Field Name> - the name of a message field through which filtering is made, <Comparison operator> - comparison operators, as their name implies, allow to compare message field and specified value, <Field value> - value to be compared with a message field. The number of simple expressions can make a compound one, ex.: ( & ) | , where \"&\" - logical-AND operator, \"|\" - logical-OR operator At present the following values are allowed as a field name (): \"To\" - represents a TO field of message, \"Text\" - represents string in the header or body of the message, \"Bcc\" - represents a BCC field of message, \"Body\" - represents a string in the body of message, \"Cc\" - represents a CC field of message, \"From\" - represents a From field of message, \"Subject\" - represents a string in the subject of message, \"InternalDate\" - represents an internal date of message, \"SentDate\" - represents a sent date of message Additionally, the following field names are allowed for IMAP-protocol: \"Answered\" - represents an /Answered flag of message \"Seen\" - represents a /Seen flag of message \"Flagged\" - represents a /Flagged flag of message \"Draft\" - represents a /Draft flag of message \"Deleted\" - represents a Deleted/ flag of message \"Recent\" - represents a Deleted/ flag of message \"MessageSize\" - represents a size (in bytes) of message Additionally, the following field names are allowed for Exchange: \"IsRead\" - Indicates whether the message has been read \"HasAttachment\" - Indicates whether or not the message has attachments \"IsSubmitted\" - Indicates whether the message has been submitted to the Outbox \"ContentClass\" - represents a content class of item Additionally, the following field names are allowed for pst/ost files: \"MessageClass\" - Represents a message class \"ContainerClass\" - Represents a folder container class \"Importance\" - Represents a message importance \"MessageSize\" - represents a size (in bytes) of message \"FolderName\" - represents a folder name \"ContentsCount\" - represents a total number of items in the folder \"UnreadContentsCount\" - represents the number of unread items in the folder. \"Subfolders\" - Indicates whether or not the folder has subfolders \"Read\" - the message is marked as having been read \"HasAttachment\" - the message has at least one attachment \"Unsent\" - the message is still being composed \"Unmodified\" - the message has not been modified since it was first saved (if unsent) or it was delivered (if sent) \"FromMe\" - the user receiving the message was also the user who sent the message \"Resend\" - the message includes a request for a resend operation with a non-delivery report \"NotifyRead\" - the user who sent the message has requested notification when a recipient first reads it \"NotifyUnread\" - the user who sent the message has requested notification when a recipient deletes it before reading or the Message object expires \"EverRead\" - the message has been read at least once The field value () can take the following values: For text fields - any string, For date type fields - the string of \"d-MMM-yyy\" format, ex. \"10-Feb-2009\", For flags (fields of boolean type) - either \"True\", or \"False\" - -### Return type - -Returns multiprocessing.pool.AsyncResult. -list_email_messages_async(request).get() returns [**ListResponseOfString**](ListResponseOfString.md) - -### Request Parameters -```python -__init__(self, - folder, - query_string, - first_account, - second_account=second_account, - storage=storage, - storage_folder=storage_folder, - recursive=recursive) -``` - -### Usage -```python -EmailApi.list_email_messages_async( - ListEmailMessagesRequest( - folder, - query_string, - first_account, - second_account=second_account, - storage=storage, - storage_folder=storage_folder, - recursive=recursive)) -``` - - -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 (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_models** -> list_email_models(self, list_email_models_request) - -Get messages from folder, filtered by query - -The query string should have the following view. The example of a simple expression: '' '', where <Field Name> - the name of a message field through which filtering is made, <Comparison operator> - comparison operators, as their name implies, allow to compare message field and specified value, <Field value> - value to be compared with a message field. The number of simple expressions can make a compound one, ex.: ( & ) | , where \"&\" - logical-AND operator, \"|\" - logical-OR operator At present the following values are allowed as a field name (): \"To\" - represents a TO field of message, \"Text\" - represents string in the header or body of the message, \"Bcc\" - represents a BCC field of message, \"Body\" - represents a string in the body of message, \"Cc\" - represents a CC field of message, \"From\" - represents a From field of message, \"Subject\" - represents a string in the subject of message, \"InternalDate\" - represents an internal date of message, \"SentDate\" - represents a sent date of message Additionally, the following field names are allowed for IMAP-protocol: \"Answered\" - represents an /Answered flag of message \"Seen\" - represents a /Seen flag of message \"Flagged\" - represents a /Flagged flag of message \"Draft\" - represents a /Draft flag of message \"Deleted\" - represents a Deleted/ flag of message \"Recent\" - represents a Deleted/ flag of message \"MessageSize\" - represents a size (in bytes) of message Additionally, the following field names are allowed for Exchange: \"IsRead\" - Indicates whether the message has been read \"HasAttachment\" - Indicates whether or not the message has attachments \"IsSubmitted\" - Indicates whether the message has been submitted to the Outbox \"ContentClass\" - represents a content class of item Additionally, the following field names are allowed for pst/ost files: \"MessageClass\" - Represents a message class \"ContainerClass\" - Represents a folder container class \"Importance\" - Represents a message importance \"MessageSize\" - represents a size (in bytes) of message \"FolderName\" - represents a folder name \"ContentsCount\" - represents a total number of items in the folder \"UnreadContentsCount\" - represents the number of unread items in the folder. \"Subfolders\" - Indicates whether or not the folder has subfolders \"Read\" - the message is marked as having been read \"HasAttachment\" - the message has at least one attachment \"Unsent\" - the message is still being composed \"Unmodified\" - the message has not been modified since it was first saved (if unsent) or it was delivered (if sent) \"FromMe\" - the user receiving the message was also the user who sent the message \"Resend\" - the message includes a request for a resend operation with a non-delivery report \"NotifyRead\" - the user who sent the message has requested notification when a recipient first reads it \"NotifyUnread\" - the user who sent the message has requested notification when a recipient deletes it before reading or the Message object expires \"EverRead\" - the message has been read at least once The field value () can take the following values: For text fields - any string, For date type fields - the string of \"d-MMM-yyy\" format, ex. \"10-Feb-2009\", For flags (fields of boolean type) - either \"True\", or \"False\" - -### Return type - -[**ListResponseOfEmailDto**](ListResponseOfEmailDto.md) - -### Request Parameters -```python -__init__(self, - folder, - first_account, - query_string=query_string, - second_account=second_account, - storage=storage, - storage_folder=storage_folder, - recursive=recursive) -``` - -### Usage -```python -EmailApi.list_email_models( - ListEmailModelsRequest( - folder, - first_account, - query_string=query_string, - second_account=second_account, - storage=storage, - storage_folder=storage_folder, - recursive=recursive)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **folder** | **str**| A folder in email account | - **first_account** | **str**| Email account | - **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_models_async** -> list_email_models_async(self, list_email_models_request) - -Get messages from folder, filtered by query - -Performs operation asynchronously. - -The query string should have the following view. The example of a simple expression: '' '', where <Field Name> - the name of a message field through which filtering is made, <Comparison operator> - comparison operators, as their name implies, allow to compare message field and specified value, <Field value> - value to be compared with a message field. The number of simple expressions can make a compound one, ex.: ( & ) | , where \"&\" - logical-AND operator, \"|\" - logical-OR operator At present the following values are allowed as a field name (): \"To\" - represents a TO field of message, \"Text\" - represents string in the header or body of the message, \"Bcc\" - represents a BCC field of message, \"Body\" - represents a string in the body of message, \"Cc\" - represents a CC field of message, \"From\" - represents a From field of message, \"Subject\" - represents a string in the subject of message, \"InternalDate\" - represents an internal date of message, \"SentDate\" - represents a sent date of message Additionally, the following field names are allowed for IMAP-protocol: \"Answered\" - represents an /Answered flag of message \"Seen\" - represents a /Seen flag of message \"Flagged\" - represents a /Flagged flag of message \"Draft\" - represents a /Draft flag of message \"Deleted\" - represents a Deleted/ flag of message \"Recent\" - represents a Deleted/ flag of message \"MessageSize\" - represents a size (in bytes) of message Additionally, the following field names are allowed for Exchange: \"IsRead\" - Indicates whether the message has been read \"HasAttachment\" - Indicates whether or not the message has attachments \"IsSubmitted\" - Indicates whether the message has been submitted to the Outbox \"ContentClass\" - represents a content class of item Additionally, the following field names are allowed for pst/ost files: \"MessageClass\" - Represents a message class \"ContainerClass\" - Represents a folder container class \"Importance\" - Represents a message importance \"MessageSize\" - represents a size (in bytes) of message \"FolderName\" - represents a folder name \"ContentsCount\" - represents a total number of items in the folder \"UnreadContentsCount\" - represents the number of unread items in the folder. \"Subfolders\" - Indicates whether or not the folder has subfolders \"Read\" - the message is marked as having been read \"HasAttachment\" - the message has at least one attachment \"Unsent\" - the message is still being composed \"Unmodified\" - the message has not been modified since it was first saved (if unsent) or it was delivered (if sent) \"FromMe\" - the user receiving the message was also the user who sent the message \"Resend\" - the message includes a request for a resend operation with a non-delivery report \"NotifyRead\" - the user who sent the message has requested notification when a recipient first reads it \"NotifyUnread\" - the user who sent the message has requested notification when a recipient deletes it before reading or the Message object expires \"EverRead\" - the message has been read at least once The field value () can take the following values: For text fields - any string, For date type fields - the string of \"d-MMM-yyy\" format, ex. \"10-Feb-2009\", For flags (fields of boolean type) - either \"True\", or \"False\" - -### Return type - -Returns multiprocessing.pool.AsyncResult. -list_email_models_async(request).get() returns [**ListResponseOfEmailDto**](ListResponseOfEmailDto.md) - -### Request Parameters -```python -__init__(self, - folder, - first_account, - query_string=query_string, - second_account=second_account, - storage=storage, - storage_folder=storage_folder, - recursive=recursive) -``` - -### Usage -```python -EmailApi.list_email_models_async( - ListEmailModelsRequest( - folder, - first_account, - query_string=query_string, - second_account=second_account, - storage=storage, - storage_folder=storage_folder, - recursive=recursive)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **folder** | **str**| A folder in email account | - **first_account** | **str**| Email account | - **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) - - - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - src_path, - dest_path, - src_storage_name=src_storage_name, - dest_storage_name=dest_storage_name, - version_id=version_id) -``` - -### Usage -```python -EmailApi.move_file( - MoveFileRequest( - src_path, - dest_path, - src_storage_name=src_storage_name, - dest_storage_name=dest_storage_name, - version_id=version_id)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **move_file_async** -> move_file_async(self, move_file_request) - - - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -move_file_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - src_path, - dest_path, - src_storage_name=src_storage_name, - dest_storage_name=dest_storage_name, - version_id=version_id) -``` - -### Usage -```python -EmailApi.move_file_async( - MoveFileRequest( - src_path, - dest_path, - src_storage_name=src_storage_name, - dest_storage_name=dest_storage_name, - version_id=version_id)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **move_folder** -> move_folder(self, move_folder_request) - - - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - src_path, - dest_path, - src_storage_name=src_storage_name, - dest_storage_name=dest_storage_name) -``` - -### Usage -```python -EmailApi.move_folder( - MoveFolderRequest( - src_path, - dest_path, - src_storage_name=src_storage_name, - dest_storage_name=dest_storage_name)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **move_folder_async** -> move_folder_async(self, move_folder_request) - - - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -move_folder_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - src_path, - dest_path, - src_storage_name=src_storage_name, - dest_storage_name=dest_storage_name) -``` - -### Usage -```python -EmailApi.move_folder_async( - MoveFolderRequest( - src_path, - dest_path, - src_storage_name=src_storage_name, - dest_storage_name=dest_storage_name)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **object_exists** -> object_exists(self, object_exists_request) - - - -### Return type - -[**ObjectExist**](ObjectExist.md) - -### Request Parameters -```python -__init__(self, - path, - storage_name=storage_name, - version_id=version_id) -``` - -### Usage -```python -EmailApi.object_exists( - ObjectExistsRequest( - path, - storage_name=storage_name, - version_id=version_id)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **object_exists_async** -> object_exists_async(self, object_exists_request) - - - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -object_exists_async(request).get() returns [**ObjectExist**](ObjectExist.md) - -### Request Parameters -```python -__init__(self, - path, - storage_name=storage_name, - version_id=version_id) -``` - -### Usage -```python -EmailApi.object_exists_async( - ObjectExistsRequest( - path, - storage_name=storage_name, - version_id=version_id)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **save_calendar_model** -> save_calendar_model(self, save_calendar_model_request) - -Save iCalendar - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - name, - rq) -``` - -### Usage -```python -EmailApi.save_calendar_model( - SaveCalendarModelRequest( - name, - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| iCalendar file name in storage | - **rq** | [**StorageModelRqOfCalendarDto**](StorageModelRqOfCalendarDto.md)| Calendar 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) - - -# **save_calendar_model_async** -> save_calendar_model_async(self, save_calendar_model_request) - -Save iCalendar - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -save_calendar_model_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - name, - rq) -``` - -### Usage -```python -EmailApi.save_calendar_model_async( - SaveCalendarModelRequest( - name, - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| iCalendar file name in storage | - **rq** | [**StorageModelRqOfCalendarDto**](StorageModelRqOfCalendarDto.md)| Calendar 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) - - -# **save_contact_model** -> save_contact_model(self, save_contact_model_request) - -Save contact. - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - format, - name, - rq) -``` - -### Usage -```python -EmailApi.save_contact_model( - SaveContactModelRequest( - format, - name, - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format. Enum, available values: VCard, WebDav, Msg | - **name** | **str**| Contact document file name. | - **rq** | [**StorageModelRqOfContactDto**](StorageModelRqOfContactDto.md)| Create/Update contact 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) - - -# **save_contact_model_async** -> save_contact_model_async(self, save_contact_model_request) - -Save contact. - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -save_contact_model_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - format, - name, - rq) -``` - -### Usage -```python -EmailApi.save_contact_model_async( - SaveContactModelRequest( - format, - name, - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format. Enum, available values: VCard, WebDav, Msg | - **name** | **str**| Contact document file name. | - **rq** | [**StorageModelRqOfContactDto**](StorageModelRqOfContactDto.md)| Create/Update contact 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) - - -# **save_email_client_account** -> save_email_client_account(self, save_email_client_account_request) - -Create email client account file (*.account) with any of supported credentials - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage -```python -EmailApi.save_email_client_account( - SaveEmailClientAccountRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**StorageFileRqOfEmailClientAccount**](StorageFileRqOfEmailClientAccount.md)| Email account information | - -[[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) - - -# **save_email_client_account_async** -> save_email_client_account_async(self, save_email_client_account_request) - -Create email client account file (*.account) with any of supported credentials - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -save_email_client_account_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage -```python -EmailApi.save_email_client_account_async( - SaveEmailClientAccountRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**StorageFileRqOfEmailClientAccount**](StorageFileRqOfEmailClientAccount.md)| Email account information | - -[[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) - - -# **save_email_client_multi_account** -> save_email_client_multi_account(self, save_email_client_multi_account_request) - -Create email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\". - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage -```python -EmailApi.save_email_client_multi_account( - SaveEmailClientMultiAccountRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**StorageFileRqOfEmailClientMultiAccount**](StorageFileRqOfEmailClientMultiAccount.md)| Email accounts information | - -[[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) - - -# **save_email_client_multi_account_async** -> save_email_client_multi_account_async(self, save_email_client_multi_account_request) - -Create 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. -save_email_client_multi_account_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage -```python -EmailApi.save_email_client_multi_account_async( - SaveEmailClientMultiAccountRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**StorageFileRqOfEmailClientMultiAccount**](StorageFileRqOfEmailClientMultiAccount.md)| Email accounts information | - -[[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) - - -# **save_email_model** -> save_email_model(self, save_email_model_request) - -Save email document. - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - format, - name, - rq) -``` - -### Usage -```python -EmailApi.save_email_model( - SaveEmailModelRequest( - format, - name, - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| File format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | - **name** | **str**| Email document file name in storage. | - **rq** | [**StorageModelRqOfEmailDto**](StorageModelRqOfEmailDto.md)| Email document create/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) - - -# **save_email_model_async** -> save_email_model_async(self, save_email_model_request) - -Save email document. - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -save_email_model_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - format, - name, - rq) -``` - -### Usage -```python -EmailApi.save_email_model_async( - SaveEmailModelRequest( - format, - name, - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| File format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | - **name** | **str**| Email document file name in storage. | - **rq** | [**StorageModelRqOfEmailDto**](StorageModelRqOfEmailDto.md)| Email document create/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) - - -# **save_mail_account** -> save_mail_account(self, save_mail_account_request) - -Create email account file (*.account) with login/password authentication - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage -```python -EmailApi.save_mail_account( - SaveMailAccountRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**SaveEmailAccountRequest**](SaveEmailAccountRequest.md)| Email account information | - -[[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) - - -# **save_mail_account_async** -> save_mail_account_async(self, save_mail_account_request) - -Create email account file (*.account) with login/password authentication - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -save_mail_account_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage -```python -EmailApi.save_mail_account_async( - SaveMailAccountRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**SaveEmailAccountRequest**](SaveEmailAccountRequest.md)| Email account information | - -[[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) - - -# **save_mail_o_auth_account** -> save_mail_o_auth_account(self, save_mail_o_auth_account_request) - -Create email account file (*.account) with OAuth - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage -```python -EmailApi.save_mail_o_auth_account( - SaveMailOAuthAccountRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**SaveOAuthEmailAccountRequest**](SaveOAuthEmailAccountRequest.md)| Email account information | - -[[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) - - -# **save_mail_o_auth_account_async** -> save_mail_o_auth_account_async(self, save_mail_o_auth_account_request) - -Create email account file (*.account) with OAuth - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -save_mail_o_auth_account_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage -```python -EmailApi.save_mail_o_auth_account_async( - SaveMailOAuthAccountRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**SaveOAuthEmailAccountRequest**](SaveOAuthEmailAccountRequest.md)| Email account information | - -[[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) - - -# **save_mapi_calendar_model** -> save_mapi_calendar_model(self, save_mapi_calendar_model_request) - -Save MAPI Calendar to storage. - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - name, - format, - rq) -``` - -### Usage -```python -EmailApi.save_mapi_calendar_model( - SaveMapiCalendarModelRequest( - name, - format, - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Calendar file name in storage | - **format** | **str**| File format Enum, available values: Ics, Msg | - **rq** | [**StorageModelRqOfMapiCalendarDto**](StorageModelRqOfMapiCalendarDto.md)| Calendar 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) - - -# **save_mapi_calendar_model_async** -> save_mapi_calendar_model_async(self, save_mapi_calendar_model_request) - -Save MAPI Calendar to storage. - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -save_mapi_calendar_model_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - name, - format, - rq) -``` - -### Usage -```python -EmailApi.save_mapi_calendar_model_async( - SaveMapiCalendarModelRequest( - name, - format, - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Calendar file name in storage | - **format** | **str**| File format Enum, available values: Ics, Msg | - **rq** | [**StorageModelRqOfMapiCalendarDto**](StorageModelRqOfMapiCalendarDto.md)| Calendar 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) - - -# **save_mapi_contact_model** -> save_mapi_contact_model(self, save_mapi_contact_model_request) - -Save MAPI Contact to storage. - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - format, - name, - rq) -``` - -### Usage -```python -EmailApi.save_mapi_contact_model( - SaveMapiContactModelRequest( - format, - name, - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format. Enum, available values: VCard, WebDav, Msg | - **name** | **str**| Contact document file name. | - **rq** | [**StorageModelRqOfMapiContactDto**](StorageModelRqOfMapiContactDto.md)| Create/Update contact 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) - - -# **save_mapi_contact_model_async** -> save_mapi_contact_model_async(self, save_mapi_contact_model_request) - -Save MAPI Contact to storage. - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -save_mapi_contact_model_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - format, - name, - rq) -``` - -### Usage -```python -EmailApi.save_mapi_contact_model_async( - SaveMapiContactModelRequest( - format, - name, - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format. Enum, available values: VCard, WebDav, Msg | - **name** | **str**| Contact document file name. | - **rq** | [**StorageModelRqOfMapiContactDto**](StorageModelRqOfMapiContactDto.md)| Create/Update contact 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) - - -# **save_mapi_message_model** -> save_mapi_message_model(self, save_mapi_message_model_request) - -Save MAPI message to storage. - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - format, - name, - rq) -``` - -### Usage -```python -EmailApi.save_mapi_message_model( - SaveMapiMessageModelRequest( - format, - name, - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| File format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | - **name** | **str**| Message file name in storage. | - **rq** | [**StorageModelRqOfMapiMessageDto**](StorageModelRqOfMapiMessageDto.md)| Message create/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) - - -# **save_mapi_message_model_async** -> save_mapi_message_model_async(self, save_mapi_message_model_request) - -Save MAPI message to storage. - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -save_mapi_message_model_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - format, - name, - rq) -``` - -### Usage -```python -EmailApi.save_mapi_message_model_async( - SaveMapiMessageModelRequest( - format, - name, - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| File format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | - **name** | **str**| Message file name in storage. | - **rq** | [**StorageModelRqOfMapiMessageDto**](StorageModelRqOfMapiMessageDto.md)| Message create/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) - - -# **send_email** -> send_email(self, send_email_request) - -Send an email from *.eml file located on storage - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage -```python -EmailApi.send_email( - SendEmailRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**SendEmailBaseRequest**](SendEmailBaseRequest.md)| Send email 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) - - -# **send_email_async** -> send_email_async(self, send_email_request) - -Send an email from *.eml file located on storage - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -send_email_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage -```python -EmailApi.send_email_async( - SendEmailRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**SendEmailBaseRequest**](SendEmailBaseRequest.md)| Send email 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) - - -# **send_email_mime** -> send_email_mime(self, send_email_mime_request) - -Send an email specified by MIME in request - -### Return type - -void (empty response body) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage -```python -EmailApi.send_email_mime( - SendEmailMimeRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**SendEmailMimeBaseRequest**](SendEmailMimeBaseRequest.md)| Send email 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) - - -# **send_email_mime_async** -> send_email_mime_async(self, send_email_mime_request) - -Send an email specified by MIME in request - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -send_email_mime_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - request) -``` - -### Usage ```python -EmailApi.send_email_mime_async( - SendEmailMimeRequest( - request)) +as_file(self, EmailAsFileRequest request) ``` - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**SendEmailMimeBaseRequest**](SendEmailMimeBaseRequest.md)| Send email 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) - - -# **send_email_model** -> send_email_model(self, send_email_model_request) - -Send an email specified by model in request +Converts Email model to specified format and returns as file. ### Return type -void (empty response body) - -### Request Parameters -```python -__init__(self, - rq) -``` - -### Usage -```python -EmailApi.send_email_model( - SendEmailModelRequest( - rq)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**SendEmailModelRq**](SendEmailModelRq.md)| Send email 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) - - -# **send_email_model_async** -> send_email_model_async(self, send_email_model_request) - -Send an email specified by model in request +**Stream** -Performs operation asynchronously. +### request Parameter -### Return type - -Returns multiprocessing.pool.AsyncResult. -send_email_model_async(request).get() returns void (empty response body) +See parameter model documentation at [EmailAsFileRequest](EmailAsFileRequest.md) -### Request Parameters -```python -__init__(self, - rq) -``` +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# as_mapi -### Usage ```python -EmailApi.send_email_model_async( - SendEmailModelRequest( - rq)) +as_mapi(self, EmailDto email_dto) ``` - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rq** | [**SendEmailModelRq**](SendEmailModelRq.md)| Send email 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) - - -# **set_email_property** -> set_email_property(self, set_email_property_request) - -Set email document property value +Converts EmailDto to MapiMessageDto. ### Return type -[**EmailPropertyResponse**](EmailPropertyResponse.md) - -### Request Parameters -```python -__init__(self, - property_name, - file_name, - request) -``` - -### Usage -```python -EmailApi.set_email_property( - SetEmailPropertyRequest( - property_name, - file_name, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_name** | **str**| A property name that should be changed | - **file_name** | **str**| Email document file name | - **request** | [**SetEmailPropertyRequest**](SetEmailPropertyRequest.md)| A property that should be changed and optional Storage info to specify where the file located | - -[[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_property_async** -> set_email_property_async(self, set_email_property_request) - -Set email document property value - -Performs operation asynchronously. +[**MapiMessageDto**](MapiMessageDto.md) -### Return type +### email_dto Parameter -Returns multiprocessing.pool.AsyncResult. -set_email_property_async(request).get() returns [**EmailPropertyResponse**](EmailPropertyResponse.md) +See parameter model documentation at [EmailDto](EmailDto.md) -### Request Parameters -```python -__init__(self, - property_name, - file_name, - request) -``` +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# convert -### Usage ```python -EmailApi.set_email_property_async( - SetEmailPropertyRequest( - property_name, - file_name, - request)) +convert(self, request: EmailConvertRequest) ``` - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_name** | **str**| A property name that should be changed | - **file_name** | **str**| Email document file name | - **request** | [**SetEmailPropertyRequest**](SetEmailPropertyRequest.md)| A property that should be changed and optional Storage info to specify where the file located | - -[[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_read_flag** -> set_email_read_flag(self, set_email_read_flag_request) - -Sets \"Message is read\" flag +Converts email document to specified format and returns as file ### Return type -void (empty response body) - -### Request Parameters -```python -__init__(self, - request) -``` +str -### Usage +### request Parameter ```python -EmailApi.set_email_read_flag( - SetEmailReadFlagRequest( - request)) +EmailConvertRequest( + from_format, + to_format, + file) ``` - Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **request** | [**SetMessageReadFlagAccountBaseRequest**](SetMessageReadFlagAccountBaseRequest.md)| Message is read 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) - - -# **set_email_read_flag_async** -> set_email_read_flag_async(self, set_email_read_flag_request) + **from_format** | **str** | File format to convert to Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | + **to_format** | **str** | File format to convert from Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | + **file** | **str** | File to convert | -Sets \"Message is read\" flag +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# from_file -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -set_email_read_flag_async(request).get() returns void (empty response body) - -### Request Parameters ```python -__init__(self, - request) +from_file(self, request: EmailFromFileRequest) ``` -### Usage -```python -EmailApi.set_email_read_flag_async( - SetEmailReadFlagRequest( - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request** | [**SetMessageReadFlagAccountBaseRequest**](SetMessageReadFlagAccountBaseRequest.md)| Message is read 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) - - -# **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 +Converts email document to a model representation ### Return type -void (empty response body) - -### Request Parameters -```python -__init__(self, - thread_id, - request) -``` +EmailDto -### Usage +### request Parameter ```python -EmailApi.set_email_thread_read_flag( - SetEmailThreadReadFlagRequest( - thread_id, - request)) +EmailFromFileRequest( + format, + file) ``` - 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. + **format** | **str** | Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | + **file** | **str** | File to convert | -### 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) -``` +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# get -### Usage ```python -EmailApi.set_email_thread_read_flag_async( - SetEmailThreadReadFlagRequest( - thread_id, - request)) +get(self, request: EmailGetRequest) ``` - -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) - - +Get email document from storage. ### Return type -[**StorageExist**](StorageExist.md) +EmailDto -### Request Parameters +### request Parameter ```python -__init__(self, - storage_name) -``` - -### Usage -```python -EmailApi.storage_exists( - StorageExistsRequest( - storage_name)) +EmailGetRequest( + format, + file_name, + folder, + storage) ``` - Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **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) - - -# **storage_exists_async** -> storage_exists_async(self, storage_exists_request) - - - -Performs operation asynchronously. - -### Return type + **format** | **str** | Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | + **file_name** | **str** | Email document file name. | + **folder** | **str** | Path to folder in storage. | [optional] + **storage** | **str** | Storage name. | [optional] -Returns multiprocessing.pool.AsyncResult. -storage_exists_async(request).get() returns [**StorageExist**](StorageExist.md) +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# get_as_file -### Request Parameters ```python -__init__(self, - storage_name) +get_as_file(self, request: EmailGetAsFileRequest) ``` -### Usage -```python -EmailApi.storage_exists_async( - StorageExistsRequest( - storage_name)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **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) - - -# **update_calendar_properties** -> update_calendar_properties(self, update_calendar_properties_request) - -Update calendar file properties +Converts email document from storage to specified format and returns as file ### Return type -void (empty response body) - -### Request Parameters -```python -__init__(self, - name, - request) -``` +str -### Usage +### request Parameter ```python -EmailApi.update_calendar_properties( - UpdateCalendarPropertiesRequest( - name, - request)) +EmailGetAsFileRequest( + file_name, + format, + storage, + folder) ``` - Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| iCalendar file name in storage | - **request** | [**HierarchicalObjectRequest**](HierarchicalObjectRequest.md)| Calendar properties update request | + **file_name** | **str** | Email document file name | + **format** | **str** | File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | + **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) +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# get_list - -# **update_calendar_properties_async** -> update_calendar_properties_async(self, update_calendar_properties_request) - -Update calendar file properties - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -update_calendar_properties_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - name, - request) -``` - -### Usage ```python -EmailApi.update_calendar_properties_async( - UpdateCalendarPropertiesRequest( - name, - request)) +get_list(self, request: EmailGetListRequest) ``` - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| iCalendar file name in storage | - **request** | [**HierarchicalObjectRequest**](HierarchicalObjectRequest.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) - - -# **update_contact_properties** -> update_contact_properties(self, update_contact_properties_request) - -Update contact document properties +Get email list from storage folder. ### Return type -void (empty response body) - -### Request Parameters -```python -__init__(self, - format, - name, - request) -``` +EmailStorageList -### Usage +### request Parameter ```python -EmailApi.update_contact_properties( - UpdateContactPropertiesRequest( - format, - name, - request)) +EmailGetListRequest( + format, + folder, + storage, + items_per_page, + page_number) ``` - Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format Enum, available values: VCard, WebDav, Msg | - **name** | **str**| Contact document file name | - **request** | [**HierarchicalObjectRequest**](HierarchicalObjectRequest.md)| Properties that should be updated/added | - -[[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) - - -# **update_contact_properties_async** -> update_contact_properties_async(self, update_contact_properties_request) - -Update contact document properties + **format** | **str** | Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | + **folder** | **str** | Path to folder in storage. | [optional] + **storage** | **str** | Storage name. | [optional] + **items_per_page** | **int** | Count of items on page. | [optional] [default to 10] + **page_number** | **int** | Page number. | [optional] [default to 0] -Performs operation asynchronously. +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# save -### Return type - -Returns multiprocessing.pool.AsyncResult. -update_contact_properties_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - format, - name, - request) -``` - -### Usage ```python -EmailApi.update_contact_properties_async( - UpdateContactPropertiesRequest( - format, - name, - request)) +save(self, EmailSaveRequest request) ``` - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **format** | **str**| Contact document format Enum, available values: VCard, WebDav, Msg | - **name** | **str**| Contact document file name | - **request** | [**HierarchicalObjectRequest**](HierarchicalObjectRequest.md)| Properties that should be updated/added | - -[[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) - - -# **update_mapi_properties** -> update_mapi_properties(self, update_mapi_properties_request) - -Update document properties +Save email document to storage. ### Return type void (empty response body) -### Request Parameters -```python -__init__(self, - name, - request) -``` - -### Usage -```python -EmailApi.update_mapi_properties( - UpdateMapiPropertiesRequest( - name, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Document file name | - **request** | [**HierarchicalObjectRequest**](HierarchicalObjectRequest.md)| Properties that should be updated/added | - -[[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) - - -# **update_mapi_properties_async** -> update_mapi_properties_async(self, update_mapi_properties_request) - -Update document properties - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -update_mapi_properties_async(request).get() returns void (empty response body) - -### Request Parameters -```python -__init__(self, - name, - request) -``` - -### Usage -```python -EmailApi.update_mapi_properties_async( - UpdateMapiPropertiesRequest( - name, - request)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Document file name | - **request** | [**HierarchicalObjectRequest**](HierarchicalObjectRequest.md)| Properties that should be updated/added | - -[[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) - - -# **upload_file** -> upload_file(self, upload_file_request) +### request Parameter +See parameter model documentation at [EmailSaveRequest](EmailSaveRequest.md) - -### Return type - -[**FilesUploadResult**](FilesUploadResult.md) - -### Request Parameters -```python -__init__(self, - path, - file, - storage_name=storage_name) -``` - -### Usage -```python -EmailApi.upload_file( - UploadFileRequest( - path, - file, - storage_name=storage_name)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **path** | **str**| | - **file** | **file**| File to upload | - **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) - - -# **upload_file_async** -> upload_file_async(self, upload_file_request) - - - -Performs operation asynchronously. - -### Return type - -Returns multiprocessing.pool.AsyncResult. -upload_file_async(request).get() returns [**FilesUploadResult**](FilesUploadResult.md) - -### Request Parameters -```python -__init__(self, - path, - file, - storage_name=storage_name) -``` - -### Usage -```python -EmailApi.upload_file_async( - UploadFileRequest( - path, - file, - storage_name=storage_name)) -``` - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **path** | **str**| | - **file** | **file**| File to upload | - **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) +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/EmailApi_list.md b/sdk/docs/EmailApi_list.md new file mode 100644 index 0000000..e765293 --- /dev/null +++ b/sdk/docs/EmailApi_list.md @@ -0,0 +1,15 @@ + +## Documentation for EmailApi operations + +All URIs are relative to *https://api.aspose.cloud/v4.0* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**as_file**](EmailApi.md#as_file)| **PUT** /email/as-file| Converts Email model to specified format and returns as file. +[**as_mapi**](EmailApi.md#as_mapi)| **PUT** /email/as-mapi| Converts EmailDto to MapiMessageDto. +[**convert**](EmailApi.md#convert)| **PUT** /email/convert| Converts email document to specified format and returns as file +[**from_file**](EmailApi.md#from_file)| **PUT** /email/from-file| Converts email document to a model representation +[**get**](EmailApi.md#get)| **GET** /email| Get email document from storage. +[**get_as_file**](EmailApi.md#get_as_file)| **GET** /email/as-file| Converts email document from storage to specified format and returns as file +[**get_list**](EmailApi.md#get_list)| **GET** /email/list| Get email list from storage folder. +[**save**](EmailApi.md#save)| **PUT** /email| Save email document to storage. diff --git a/sdk/docs/EmailAsFileRequest.md b/sdk/docs/EmailAsFileRequest.md new file mode 100644 index 0000000..9453e34 --- /dev/null +++ b/sdk/docs/EmailAsFileRequest.md @@ -0,0 +1,12 @@ +# AsposeEmailCloudSdk.models.EmailAsFileRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format** | **str** | Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | +**value** | [**EmailDto**](EmailDto.md) | Email model. | + + + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/EmailClientAccount.md b/sdk/docs/EmailClientAccount.md index defea7d..1c01756 100644 --- a/sdk/docs/EmailClientAccount.md +++ b/sdk/docs/EmailClientAccount.md @@ -11,6 +11,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/EmailClientAccountCredentials.md b/sdk/docs/EmailClientAccountCredentials.md index 722a589..7f320a2 100644 --- a/sdk/docs/EmailClientAccountCredentials.md +++ b/sdk/docs/EmailClientAccountCredentials.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/EmailClientAccountOauthCredentials.md b/sdk/docs/EmailClientAccountOauthCredentials.md index 48b307f..6a9c2a4 100644 --- a/sdk/docs/EmailClientAccountOauthCredentials.md +++ b/sdk/docs/EmailClientAccountOauthCredentials.md @@ -9,6 +9,6 @@ Name | Type | Description | Notes Parent class: [EmailClientAccountCredentials](EmailClientAccountCredentials.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/EmailClientAccountPasswordCredentials.md b/sdk/docs/EmailClientAccountPasswordCredentials.md index 6a8d21a..5b68f02 100644 --- a/sdk/docs/EmailClientAccountPasswordCredentials.md +++ b/sdk/docs/EmailClientAccountPasswordCredentials.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes Parent class: [EmailClientAccountCredentials](EmailClientAccountCredentials.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/EmailClientMultiAccount.md b/sdk/docs/EmailClientMultiAccount.md index 1a7329b..e46dd80 100644 --- a/sdk/docs/EmailClientMultiAccount.md +++ b/sdk/docs/EmailClientMultiAccount.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/EmailConfigApi.md b/sdk/docs/EmailConfigApi.md new file mode 100644 index 0000000..49c6e5f --- /dev/null +++ b/sdk/docs/EmailConfigApi.md @@ -0,0 +1,68 @@ +# AsposeEmailCloudSdk.EmailConfigApi + + + +# discover + +```python +discover(self, request: EmailConfigDiscoverRequest) +``` + +Discover email accounts by email address. Does not validate discovered accounts. + +### Return type + +EmailAccountConfigList + +### request Parameter +```python +EmailConfigDiscoverRequest( + address, + fast_processing) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **address** | **str** | Email address. | + **fast_processing** | **bool** | Turns on fast processing. All discover systems will run in parallel. First discovered result will be returned. | [optional] [default to false] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# discover_oauth + +```python +discover_oauth(self, EmailConfigDiscoverOauthRequest request) +``` + +Discover email accounts by email address. Validates discovered accounts using OAuth 2.0. + +### Return type + +[**EmailAccountConfigList**](EmailAccountConfigList.md) + +### request Parameter + +See parameter model documentation at [EmailConfigDiscoverOauthRequest](EmailConfigDiscoverOauthRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# discover_password + +```python +discover_password(self, EmailConfigDiscoverPasswordRequest request) +``` + +Discover email accounts by email address. Validates discovered accounts using login and password. + +### Return type + +[**EmailAccountConfigList**](EmailAccountConfigList.md) + +### request Parameter + +See parameter model documentation at [EmailConfigDiscoverPasswordRequest](EmailConfigDiscoverPasswordRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + diff --git a/sdk/docs/EmailConfigApi_list.md b/sdk/docs/EmailConfigApi_list.md new file mode 100644 index 0000000..b9864ac --- /dev/null +++ b/sdk/docs/EmailConfigApi_list.md @@ -0,0 +1,10 @@ + +## Documentation for EmailConfigApi operations + +All URIs are relative to *https://api.aspose.cloud/v4.0* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**discover**](EmailConfigApi.md#discover)| **GET** /email/config/discover| Discover email accounts by email address. Does not validate discovered accounts. +[**discover_oauth**](EmailConfigApi.md#discover_oauth)| **PUT** /email/config/discover/oauth| Discover email accounts by email address. Validates discovered accounts using OAuth 2.0. +[**discover_password**](EmailConfigApi.md#discover_password)| **PUT** /email/config/discover/password| Discover email accounts by email address. Validates discovered accounts using login and password. diff --git a/sdk/docs/DiscoverEmailConfigOauth.md b/sdk/docs/EmailConfigDiscoverOauthRequest.md similarity index 62% rename from sdk/docs/DiscoverEmailConfigOauth.md rename to sdk/docs/EmailConfigDiscoverOauthRequest.md index ededc00..a4c37e9 100644 --- a/sdk/docs/DiscoverEmailConfigOauth.md +++ b/sdk/docs/EmailConfigDiscoverOauthRequest.md @@ -1,4 +1,4 @@ -# AsposeEmailCloudSdk.models.DiscoverEmailConfigOauth +# AsposeEmailCloudSdk.models.EmailConfigDiscoverOauthRequest ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- @@ -7,8 +7,8 @@ Name | Type | Description | Notes **refresh_token** | **str** | OAuth refresh token. | **request_url** | **str** | The url to obtain access token. If not specified, will be discovered from email configuration. | [optional] - Parent class: [DiscoverEmailConfigRq](DiscoverEmailConfigRq.md) + Parent class: [DiscoverEmailConfigRequest](DiscoverEmailConfigRequest.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/EmailConfigDiscoverPasswordRequest.md b/sdk/docs/EmailConfigDiscoverPasswordRequest.md new file mode 100644 index 0000000..cb0b555 --- /dev/null +++ b/sdk/docs/EmailConfigDiscoverPasswordRequest.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.EmailConfigDiscoverPasswordRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**password** | **str** | Email account password. | + + Parent class: [DiscoverEmailConfigRequest](DiscoverEmailConfigRequest.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/EmailDocument.md b/sdk/docs/EmailDocument.md deleted file mode 100644 index a65bfda..0000000 --- a/sdk/docs/EmailDocument.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.EmailDocument -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**links** | [**list[Link]**](Link.md) | Links that originate from this document. | [optional] -**document_properties** | [**EmailProperties**](EmailProperties.md) | List of document properties. | - - - -[[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/EmailDocumentResponse.md b/sdk/docs/EmailDocumentResponse.md deleted file mode 100644 index bc9d947..0000000 --- a/sdk/docs/EmailDocumentResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.EmailDocumentResponse -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**document** | [**EmailDocument**](EmailDocument.md) | An email document requested | [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/EmailDto.md b/sdk/docs/EmailDto.md index 7bda8fc..7e65eaa 100644 --- a/sdk/docs/EmailDto.md +++ b/sdk/docs/EmailDto.md @@ -37,6 +37,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/EmailList.md b/sdk/docs/EmailList.md new file mode 100644 index 0000000..3aba2c9 --- /dev/null +++ b/sdk/docs/EmailList.md @@ -0,0 +1,10 @@ +# AsposeEmailCloudSdk.models.EmailList +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + + Parent class: [ListResponseOfEmailDto](ListResponseOfEmailDto.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/EmailProperties.md b/sdk/docs/EmailProperties.md deleted file mode 100644 index cd89009..0000000 --- a/sdk/docs/EmailProperties.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.EmailProperties -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**link** | [**Link**](Link.md) | Gets or sets link that originate from this document. | [optional] -**list** | [**list[EmailProperty]**](EmailProperty.md) | List of properties | - - - -[[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/EmailProperty.md b/sdk/docs/EmailProperty.md deleted file mode 100644 index 1b23c15..0000000 --- a/sdk/docs/EmailProperty.md +++ /dev/null @@ -1,13 +0,0 @@ -# AsposeEmailCloudSdk.models.EmailProperty -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**link** | [**Link**](Link.md) | Link to property | [optional] -**name** | **str** | Property name | -**value** | **object** | Property value | - - - -[[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/EmailPropertyResponse.md b/sdk/docs/EmailPropertyResponse.md deleted file mode 100644 index 396c2b1..0000000 --- a/sdk/docs/EmailPropertyResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.EmailPropertyResponse -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email_property** | [**EmailProperty**](EmailProperty.md) | Gets or sets email property. | [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/EmailSaveRequest.md b/sdk/docs/EmailSaveRequest.md new file mode 100644 index 0000000..45c00bf --- /dev/null +++ b/sdk/docs/EmailSaveRequest.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.EmailSaveRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format** | **str** | Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | + + Parent class: [StorageModelOfEmailDto](StorageModelOfEmailDto.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/EmailDtoList.md b/sdk/docs/EmailStorageList.md similarity index 51% rename from sdk/docs/EmailDtoList.md rename to sdk/docs/EmailStorageList.md index 55f19e9..334f48d 100644 --- a/sdk/docs/EmailDtoList.md +++ b/sdk/docs/EmailStorageList.md @@ -1,10 +1,10 @@ -# AsposeEmailCloudSdk.models.EmailDtoList +# AsposeEmailCloudSdk.models.EmailStorageList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- Parent class: [ListResponseOfStorageModelOfEmailDto](ListResponseOfStorageModelOfEmailDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/EmailThread.md b/sdk/docs/EmailThread.md index d2546b1..f6efa48 100644 --- a/sdk/docs/EmailThread.md +++ b/sdk/docs/EmailThread.md @@ -9,6 +9,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/EmailThreadList.md b/sdk/docs/EmailThreadList.md index 48ac793..ddfa99c 100644 --- a/sdk/docs/EmailThreadList.md +++ b/sdk/docs/EmailThreadList.md @@ -5,6 +5,6 @@ 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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/EmailThreadReadFlagRq.md b/sdk/docs/EmailThreadReadFlagRq.md deleted file mode 100644 index 67030a8..0000000 --- a/sdk/docs/EmailThreadReadFlagRq.md +++ /dev/null @@ -1,12 +0,0 @@ -# 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/EnumWithCustomOfAssociatedPersonCategory.md b/sdk/docs/EnumWithCustomOfAssociatedPersonCategory.md index e9a1071..7295f97 100644 --- a/sdk/docs/EnumWithCustomOfAssociatedPersonCategory.md +++ b/sdk/docs/EnumWithCustomOfAssociatedPersonCategory.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/EnumWithCustomOfEmailAddressCategory.md b/sdk/docs/EnumWithCustomOfEmailAddressCategory.md index 33ac4d7..38dcfe0 100644 --- a/sdk/docs/EnumWithCustomOfEmailAddressCategory.md +++ b/sdk/docs/EnumWithCustomOfEmailAddressCategory.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/EnumWithCustomOfEventCategory.md b/sdk/docs/EnumWithCustomOfEventCategory.md index fce57e4..bf22230 100644 --- a/sdk/docs/EnumWithCustomOfEventCategory.md +++ b/sdk/docs/EnumWithCustomOfEventCategory.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/EnumWithCustomOfInstantMessengerCategory.md b/sdk/docs/EnumWithCustomOfInstantMessengerCategory.md index 02000b2..e434653 100644 --- a/sdk/docs/EnumWithCustomOfInstantMessengerCategory.md +++ b/sdk/docs/EnumWithCustomOfInstantMessengerCategory.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/EnumWithCustomOfPhoneNumberCategory.md b/sdk/docs/EnumWithCustomOfPhoneNumberCategory.md index ca1b993..0e2d77c 100644 --- a/sdk/docs/EnumWithCustomOfPhoneNumberCategory.md +++ b/sdk/docs/EnumWithCustomOfPhoneNumberCategory.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/EnumWithCustomOfPostalAddressCategory.md b/sdk/docs/EnumWithCustomOfPostalAddressCategory.md index c2c0581..53c44e2 100644 --- a/sdk/docs/EnumWithCustomOfPostalAddressCategory.md +++ b/sdk/docs/EnumWithCustomOfPostalAddressCategory.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/EnumWithCustomOfUrlCategory.md b/sdk/docs/EnumWithCustomOfUrlCategory.md index a2f6a24..622c093 100644 --- a/sdk/docs/EnumWithCustomOfUrlCategory.md +++ b/sdk/docs/EnumWithCustomOfUrlCategory.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/Error.md b/sdk/docs/Error.md index ca4fb41..14b3763 100644 --- a/sdk/docs/Error.md +++ b/sdk/docs/Error.md @@ -2,13 +2,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**code** | **str** | | [optional] -**message** | **str** | | [optional] -**description** | **str** | | [optional] -**inner_error** | [**ErrorDetails**](ErrorDetails.md) | | [optional] +**code** | **str** | Code | [optional] +**message** | **str** | Message | [optional] +**description** | **str** | Description | [optional] +**inner_error** | [**ErrorDetails**](ErrorDetails.md) | Inner Error | [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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ErrorDetails.md b/sdk/docs/ErrorDetails.md index 556d419..bd0524f 100644 --- a/sdk/docs/ErrorDetails.md +++ b/sdk/docs/ErrorDetails.md @@ -2,11 +2,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**request_id** | **str** | | [optional] -**_date** | **datetime** | | +**request_id** | **str** | The request id | [optional] +**_date** | **datetime** | Date | -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/FileApi.md b/sdk/docs/FileApi.md new file mode 100644 index 0000000..8244d76 --- /dev/null +++ b/sdk/docs/FileApi.md @@ -0,0 +1,156 @@ +# AsposeEmailCloudSdk.FileApi + + + +# copy_file + +```python +copy_file(self, request: CopyFileRequest) +``` + +Copy file + +### Return type + +None + +### request Parameter +```python +CopyFileRequest( + src_path, + dest_path, + src_storage_name, + dest_storage_name, + version_id) +``` + +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] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# delete_file + +```python +delete_file(self, request: DeleteFileRequest) +``` + +Delete file + +### Return type + +None + +### request Parameter +```python +DeleteFileRequest( + path, + storage_name, + version_id) +``` + +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] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# download_file + +```python +download_file(self, request: DownloadFileRequest) +``` + +Download file + +### Return type + +str + +### request Parameter +```python +DownloadFileRequest( + path, + storage_name, + version_id) +``` + +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] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# move_file + +```python +move_file(self, request: MoveFileRequest) +``` + +Move file + +### Return type + +None + +### request Parameter +```python +MoveFileRequest( + src_path, + dest_path, + src_storage_name, + dest_storage_name, + version_id) +``` + +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] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# upload_file + +```python +upload_file(self, request: UploadFileRequest) +``` + +Upload file + +### Return type + +FilesUploadResult + +### request Parameter +```python +UploadFileRequest( + path, + file, + storage_name) +``` + +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. | + **file** | **str** | File to upload | + **storage_name** | **str** | Storage name | [optional] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + diff --git a/sdk/docs/FileApi_list.md b/sdk/docs/FileApi_list.md new file mode 100644 index 0000000..2e5ba59 --- /dev/null +++ b/sdk/docs/FileApi_list.md @@ -0,0 +1,12 @@ + +## Documentation for FileApi operations + +All URIs are relative to *https://api.aspose.cloud/v4.0* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**copy_file**](FileApi.md#copy_file)| **PUT** /email/storage/file/copy/{srcPath}| Copy file +[**delete_file**](FileApi.md#delete_file)| **DELETE** /email/storage/file/{path}| Delete file +[**download_file**](FileApi.md#download_file)| **GET** /email/storage/file/{path}| Download file +[**move_file**](FileApi.md#move_file)| **PUT** /email/storage/file/move/{srcPath}| Move file +[**upload_file**](FileApi.md#upload_file)| **PUT** /email/storage/file/{path}| Upload file diff --git a/sdk/docs/FileVersion.md b/sdk/docs/FileVersion.md index 8899fd0..33cad68 100644 --- a/sdk/docs/FileVersion.md +++ b/sdk/docs/FileVersion.md @@ -2,11 +2,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**version_id** | **str** | | [optional] -**is_latest** | **bool** | | +**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. | Parent class: [StorageFile](StorageFile.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/FileVersions.md b/sdk/docs/FileVersions.md index 6adc935..2155024 100644 --- a/sdk/docs/FileVersions.md +++ b/sdk/docs/FileVersions.md @@ -2,10 +2,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | [**list[FileVersion]**](FileVersion.md) | | [optional] +**value** | [**list[FileVersion]**](FileVersion.md) | File versions FileVersion. | [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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/FilesList.md b/sdk/docs/FilesList.md index f95846b..e306967 100644 --- a/sdk/docs/FilesList.md +++ b/sdk/docs/FilesList.md @@ -2,10 +2,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | [**list[StorageFile]**](StorageFile.md) | | [optional] +**value** | [**list[StorageFile]**](StorageFile.md) | Files and folders contained by folder StorageFile. | [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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/FilesUploadResult.md b/sdk/docs/FilesUploadResult.md index 907ead2..64c161a 100644 --- a/sdk/docs/FilesUploadResult.md +++ b/sdk/docs/FilesUploadResult.md @@ -2,11 +2,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**uploaded** | **list[str]** | | [optional] -**errors** | [**list[Error]**](Error.md) | | [optional] +**uploaded** | **list[str]** | List of uploaded file names | [optional] +**errors** | [**list[Error]**](Error.md) | List of errors. | [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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/FolderApi.md b/sdk/docs/FolderApi.md new file mode 100644 index 0000000..bbb8d2c --- /dev/null +++ b/sdk/docs/FolderApi.md @@ -0,0 +1,148 @@ +# AsposeEmailCloudSdk.FolderApi + + + +# copy_folder + +```python +copy_folder(self, request: CopyFolderRequest) +``` + +Copy folder + +### Return type + +None + +### request Parameter +```python +CopyFolderRequest( + src_path, + dest_path, + src_storage_name, + dest_storage_name) +``` + +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] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# create_folder + +```python +create_folder(self, request: CreateFolderRequest) +``` + +Create the folder + +### Return type + +None + +### request Parameter +```python +CreateFolderRequest( + path, + storage_name) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str** | Folder path to create e.g. 'folder_1/folder_2/' | + **storage_name** | **str** | Storage name | [optional] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# delete_folder + +```python +delete_folder(self, request: DeleteFolderRequest) +``` + +Delete folder + +### Return type + +None + +### request Parameter +```python +DeleteFolderRequest( + path, + storage_name, + recursive) +``` + +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] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# get_files_list + +```python +get_files_list(self, request: GetFilesListRequest) +``` + +Get all files and folders within a folder + +### Return type + +FilesList + +### request Parameter +```python +GetFilesListRequest( + path, + storage_name) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str** | Folder path e.g. '/folder' | + **storage_name** | **str** | Storage name | [optional] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# move_folder + +```python +move_folder(self, request: MoveFolderRequest) +``` + +Move folder + +### Return type + +None + +### request Parameter +```python +MoveFolderRequest( + src_path, + dest_path, + src_storage_name, + dest_storage_name) +``` + +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] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + diff --git a/sdk/docs/FolderApi_list.md b/sdk/docs/FolderApi_list.md new file mode 100644 index 0000000..942da5b --- /dev/null +++ b/sdk/docs/FolderApi_list.md @@ -0,0 +1,12 @@ + +## Documentation for FolderApi operations + +All URIs are relative to *https://api.aspose.cloud/v4.0* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**copy_folder**](FolderApi.md#copy_folder)| **PUT** /email/storage/folder/copy/{srcPath}| Copy folder +[**create_folder**](FolderApi.md#create_folder)| **PUT** /email/storage/folder/{path}| Create the folder +[**delete_folder**](FolderApi.md#delete_folder)| **DELETE** /email/storage/folder/{path}| Delete folder +[**get_files_list**](FolderApi.md#get_files_list)| **GET** /email/storage/folder/{path}| Get all files and folders within a folder +[**move_folder**](FolderApi.md#move_folder)| **PUT** /email/storage/folder/move/{srcPath}| Move folder diff --git a/sdk/docs/HierarchicalObject.md b/sdk/docs/HierarchicalObject.md deleted file mode 100644 index 462c561..0000000 --- a/sdk/docs/HierarchicalObject.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.HierarchicalObject -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**internal_properties** | [**list[BaseObject]**](BaseObject.md) | List of internal properties | [optional] - - Parent class: [BaseObject](BaseObject.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/HierarchicalObjectRequest.md b/sdk/docs/HierarchicalObjectRequest.md deleted file mode 100644 index cfa9588..0000000 --- a/sdk/docs/HierarchicalObjectRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.HierarchicalObjectRequest -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hierarchical_object** | [**HierarchicalObject**](HierarchicalObject.md) | Hierarchical properties of document | -**storage_folder** | [**StorageFolderLocation**](StorageFolderLocation.md) | Document location in storage | [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/HierarchicalObjectResponse.md b/sdk/docs/HierarchicalObjectResponse.md deleted file mode 100644 index 103a5ee..0000000 --- a/sdk/docs/HierarchicalObjectResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.HierarchicalObjectResponse -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hierarchical_object** | [**HierarchicalObject**](HierarchicalObject.md) | Document properties | [optional] -**storage_file** | [**StorageFileLocation**](StorageFileLocation.md) | Document location in storage | [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/IndexedHierarchicalObject.md b/sdk/docs/IndexedHierarchicalObject.md deleted file mode 100644 index 6400eb5..0000000 --- a/sdk/docs/IndexedHierarchicalObject.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.IndexedHierarchicalObject -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**index** | **int** | Index of property in list | -**internal_properties** | [**list[BaseObject]**](BaseObject.md) | List of internal properties | [optional] - - Parent class: [BaseObject](BaseObject.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/IndexedPrimitiveObject.md b/sdk/docs/IndexedPrimitiveObject.md deleted file mode 100644 index 93d67b5..0000000 --- a/sdk/docs/IndexedPrimitiveObject.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.IndexedPrimitiveObject -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**index** | **int** | Index of property in list | -**value** | **str** | Gets or sets the name of a property. | [optional] - - Parent class: [BaseObject](BaseObject.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/InstantMessengerAddress.md b/sdk/docs/InstantMessengerAddress.md index b898d18..23b740b 100644 --- a/sdk/docs/InstantMessengerAddress.md +++ b/sdk/docs/InstantMessengerAddress.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/Link.md b/sdk/docs/Link.md deleted file mode 100644 index 11e0e84..0000000 --- a/sdk/docs/Link.md +++ /dev/null @@ -1,14 +0,0 @@ -# AsposeEmailCloudSdk.models.Link -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**href** | **str** | The \"href\" attribute contains the link's IRI. atom:link elements MUST have an href attribute, whose value MUST be a IRI reference | [optional] -**rel** | **str** | atom:link elements MAY have a \"rel\" attribute that indicates the link relation type. If the \"rel\" attribute is not present, the link element MUST be interpreted as if the link relation type is \"alternate\". | [optional] -**type** | **str** | On the link element, the \"type\" attribute's value is an advisory media type: it is a hint about the type of the representation that is expected to be returned when the value of the href attribute is dereferenced. Note that the type attribute does not override the actual media type returned with the representation. | [optional] -**title** | **str** | The \"title\" attribute conveys human-readable information about the link. The content of the \"title\" attribute is Language-Sensitive. | [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/LinkedResource.md b/sdk/docs/LinkedResource.md index 17e4e5d..ee3f1de 100644 --- a/sdk/docs/LinkedResource.md +++ b/sdk/docs/LinkedResource.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes Parent class: [AttachmentBase](AttachmentBase.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ListResponseOfAiBcrOcrData.md b/sdk/docs/ListResponseOfAiBcrOcrData.md deleted file mode 100644 index a80c052..0000000 --- a/sdk/docs/ListResponseOfAiBcrOcrData.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.ListResponseOfAiBcrOcrData -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**list[AiBcrOcrData]**](AiBcrOcrData.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/ListResponseOfAiNameComponent.md b/sdk/docs/ListResponseOfAiNameComponent.md index 098a615..43d5c39 100644 --- a/sdk/docs/ListResponseOfAiNameComponent.md +++ b/sdk/docs/ListResponseOfAiNameComponent.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ListResponseOfAiNameExtracted.md b/sdk/docs/ListResponseOfAiNameExtracted.md index a560115..9a14381 100644 --- a/sdk/docs/ListResponseOfAiNameExtracted.md +++ b/sdk/docs/ListResponseOfAiNameExtracted.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ListResponseOfAiNameGenderHypothesis.md b/sdk/docs/ListResponseOfAiNameGenderHypothesis.md index b54cae7..8286c32 100644 --- a/sdk/docs/ListResponseOfAiNameGenderHypothesis.md +++ b/sdk/docs/ListResponseOfAiNameGenderHypothesis.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ListResponseOfContactDto.md b/sdk/docs/ListResponseOfContactDto.md index 42b308c..528716f 100644 --- a/sdk/docs/ListResponseOfContactDto.md +++ b/sdk/docs/ListResponseOfContactDto.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ListResponseOfEmailAccountConfig.md b/sdk/docs/ListResponseOfEmailAccountConfig.md index 3e77112..6995300 100644 --- a/sdk/docs/ListResponseOfEmailAccountConfig.md +++ b/sdk/docs/ListResponseOfEmailAccountConfig.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ListResponseOfEmailDto.md b/sdk/docs/ListResponseOfEmailDto.md index c3a6cc5..160735d 100644 --- a/sdk/docs/ListResponseOfEmailDto.md +++ b/sdk/docs/ListResponseOfEmailDto.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ListResponseOfEmailThread.md b/sdk/docs/ListResponseOfEmailThread.md index c3b853d..9aacdd3 100644 --- a/sdk/docs/ListResponseOfEmailThread.md +++ b/sdk/docs/ListResponseOfEmailThread.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ListResponseOfHierarchicalObject.md b/sdk/docs/ListResponseOfHierarchicalObject.md deleted file mode 100644 index fac9b47..0000000 --- a/sdk/docs/ListResponseOfHierarchicalObject.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.ListResponseOfHierarchicalObject -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**list[HierarchicalObject]**](HierarchicalObject.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/ListResponseOfHierarchicalObjectResponse.md b/sdk/docs/ListResponseOfHierarchicalObjectResponse.md deleted file mode 100644 index 9ea6977..0000000 --- a/sdk/docs/ListResponseOfHierarchicalObjectResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.ListResponseOfHierarchicalObjectResponse -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**list[HierarchicalObjectResponse]**](HierarchicalObjectResponse.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/ListResponseOfMailMessageBase.md b/sdk/docs/ListResponseOfMailMessageBase.md new file mode 100644 index 0000000..0e7e190 --- /dev/null +++ b/sdk/docs/ListResponseOfMailMessageBase.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.ListResponseOfMailMessageBase +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | [**list[MailMessageBase]**](MailMessageBase.md) | | [optional] + + + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/ListResponseOfMailServerFolder.md b/sdk/docs/ListResponseOfMailServerFolder.md index 823efee..b5e4c13 100644 --- a/sdk/docs/ListResponseOfMailServerFolder.md +++ b/sdk/docs/ListResponseOfMailServerFolder.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ListResponseOfStorageFileLocation.md b/sdk/docs/ListResponseOfStorageFileLocation.md index c1fb1b6..0929da2 100644 --- a/sdk/docs/ListResponseOfStorageFileLocation.md +++ b/sdk/docs/ListResponseOfStorageFileLocation.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ListResponseOfStorageModelOfCalendarDto.md b/sdk/docs/ListResponseOfStorageModelOfCalendarDto.md index c148bc0..cd24561 100644 --- a/sdk/docs/ListResponseOfStorageModelOfCalendarDto.md +++ b/sdk/docs/ListResponseOfStorageModelOfCalendarDto.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ListResponseOfStorageModelOfContactDto.md b/sdk/docs/ListResponseOfStorageModelOfContactDto.md index ca518bb..442ebe5 100644 --- a/sdk/docs/ListResponseOfStorageModelOfContactDto.md +++ b/sdk/docs/ListResponseOfStorageModelOfContactDto.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ListResponseOfStorageModelOfEmailDto.md b/sdk/docs/ListResponseOfStorageModelOfEmailDto.md index 4b89f88..9182970 100644 --- a/sdk/docs/ListResponseOfStorageModelOfEmailDto.md +++ b/sdk/docs/ListResponseOfStorageModelOfEmailDto.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ListResponseOfString.md b/sdk/docs/ListResponseOfString.md deleted file mode 100644 index 8ea0710..0000000 --- a/sdk/docs/ListResponseOfString.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.ListResponseOfString -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **list[str]** | | [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 133317c..5ff0c36 100644 --- a/sdk/docs/MailAddress.md +++ b/sdk/docs/MailAddress.md @@ -9,6 +9,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MailMessageBase.md b/sdk/docs/MailMessageBase.md new file mode 100644 index 0000000..0419d53 --- /dev/null +++ b/sdk/docs/MailMessageBase.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.MailMessageBase +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**discriminator** | **str** | | + + + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/MailMessageBase64.md b/sdk/docs/MailMessageBase64.md new file mode 100644 index 0000000..8c151ae --- /dev/null +++ b/sdk/docs/MailMessageBase64.md @@ -0,0 +1,12 @@ +# AsposeEmailCloudSdk.models.MailMessageBase64 +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value_base64** | **str** | Email message file data encoded to Base64 string. | +**format** | **str** | Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | + + Parent class: [MailMessageBase](MailMessageBase.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/MailMessageBaseList.md b/sdk/docs/MailMessageBaseList.md new file mode 100644 index 0000000..c03810b --- /dev/null +++ b/sdk/docs/MailMessageBaseList.md @@ -0,0 +1,10 @@ +# AsposeEmailCloudSdk.models.MailMessageBaseList +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + + Parent class: [ListResponseOfMailMessageBase](ListResponseOfMailMessageBase.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/MailMessageDto.md b/sdk/docs/MailMessageDto.md new file mode 100644 index 0000000..ae283c7 --- /dev/null +++ b/sdk/docs/MailMessageDto.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.MailMessageDto +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | [**EmailDto**](EmailDto.md) | Message document object. | + + Parent class: [MailMessageBase](MailMessageBase.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/MailMessageMapi.md b/sdk/docs/MailMessageMapi.md new file mode 100644 index 0000000..cbc1fa8 --- /dev/null +++ b/sdk/docs/MailMessageMapi.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.MailMessageMapi +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | [**MapiMessageDto**](MapiMessageDto.md) | Email message object. | + + Parent class: [MailMessageBase](MailMessageBase.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/MailServerFolder.md b/sdk/docs/MailServerFolder.md index 054c306..3cc961e 100644 --- a/sdk/docs/MailServerFolder.md +++ b/sdk/docs/MailServerFolder.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MailServerFolderList.md b/sdk/docs/MailServerFolderList.md new file mode 100644 index 0000000..f1e10bd --- /dev/null +++ b/sdk/docs/MailServerFolderList.md @@ -0,0 +1,10 @@ +# AsposeEmailCloudSdk.models.MailServerFolderList +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + + Parent class: [ListResponseOfMailServerFolder](ListResponseOfMailServerFolder.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/MapiAttachmentDto.md b/sdk/docs/MapiAttachmentDto.md index 3d04103..c1a866a 100644 --- a/sdk/docs/MapiAttachmentDto.md +++ b/sdk/docs/MapiAttachmentDto.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiBinaryPropertyDto.md b/sdk/docs/MapiBinaryPropertyDto.md index 60d3181..548f194 100644 --- a/sdk/docs/MapiBinaryPropertyDto.md +++ b/sdk/docs/MapiBinaryPropertyDto.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes Parent class: [MapiPropertyDto](MapiPropertyDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiBooleanPropertyDto.md b/sdk/docs/MapiBooleanPropertyDto.md index 84fb830..1c15750 100644 --- a/sdk/docs/MapiBooleanPropertyDto.md +++ b/sdk/docs/MapiBooleanPropertyDto.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes Parent class: [MapiPropertyDto](MapiPropertyDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiCalendarApi.md b/sdk/docs/MapiCalendarApi.md new file mode 100644 index 0000000..718c98a --- /dev/null +++ b/sdk/docs/MapiCalendarApi.md @@ -0,0 +1,114 @@ +# AsposeEmailCloudSdk.MapiCalendarApi + + + +# as_calendar_dto + +```python +as_calendar_dto(self, MapiCalendarDto mapi_calendar_dto) +``` + +Converts MAPI calendar model to CalendarDto model. + +### Return type + +[**CalendarDto**](CalendarDto.md) + +### mapi_calendar_dto Parameter + +See parameter model documentation at [MapiCalendarDto](MapiCalendarDto.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# as_file + +```python +as_file(self, MapiCalendarAsFileRequest request) +``` + +Converts MAPI calendar model to specified format and returns as file. + +### Return type + +**Stream** + +### request Parameter + +See parameter model documentation at [MapiCalendarAsFileRequest](MapiCalendarAsFileRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# from_file + +```python +from_file(self, request: MapiCalendarFromFileRequest) +``` + +Converts calendar file to a MAPI model representation. + +### Return type + +MapiCalendarDto + +### request Parameter +```python +MapiCalendarFromFileRequest( + file) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file** | **str** | File to convert | + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# get + +```python +get(self, request: MapiCalendarGetRequest) +``` + +Get MAPI calendar document. + +### Return type + +MapiCalendarDto + +### request Parameter +```python +MapiCalendarGetRequest( + file_name, + folder, + storage) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file_name** | **str** | Calendar file name in storage. | + **folder** | **str** | Path to folder in storage. | [optional] + **storage** | **str** | Storage name. | [optional] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# save + +```python +save(self, MapiCalendarSaveRequest request) +``` + +Save MAPI Calendar to storage. + +### Return type + +void (empty response body) + +### request Parameter + +See parameter model documentation at [MapiCalendarSaveRequest](MapiCalendarSaveRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + diff --git a/sdk/docs/MapiCalendarApi_list.md b/sdk/docs/MapiCalendarApi_list.md new file mode 100644 index 0000000..3de251c --- /dev/null +++ b/sdk/docs/MapiCalendarApi_list.md @@ -0,0 +1,12 @@ + +## Documentation for MapiCalendarApi operations + +All URIs are relative to *https://api.aspose.cloud/v4.0* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**as_calendar_dto**](MapiCalendarApi.md#as_calendar_dto)| **PUT** /email/MapiCalendar/as-calendar-dto| Converts MAPI calendar model to CalendarDto model. +[**as_file**](MapiCalendarApi.md#as_file)| **PUT** /email/MapiCalendar/as-file| Converts MAPI calendar model to specified format and returns as file. +[**from_file**](MapiCalendarApi.md#from_file)| **PUT** /email/MapiCalendar/from-file| Converts calendar file to a MAPI model representation. +[**get**](MapiCalendarApi.md#get)| **GET** /email/MapiCalendar| Get MAPI calendar document. +[**save**](MapiCalendarApi.md#save)| **PUT** /email/MapiCalendar| Save MAPI Calendar to storage. diff --git a/sdk/docs/MapiCalendarAsFileRequest.md b/sdk/docs/MapiCalendarAsFileRequest.md new file mode 100644 index 0000000..b40c711 --- /dev/null +++ b/sdk/docs/MapiCalendarAsFileRequest.md @@ -0,0 +1,12 @@ +# AsposeEmailCloudSdk.models.MapiCalendarAsFileRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format** | **str** | Calendar file format Enum, available values: Ics, Msg | +**value** | [**MapiCalendarDto**](MapiCalendarDto.md) | MAPI calendar model. | + + + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/MapiCalendarAttendeesDto.md b/sdk/docs/MapiCalendarAttendeesDto.md index 01c3511..c833692 100644 --- a/sdk/docs/MapiCalendarAttendeesDto.md +++ b/sdk/docs/MapiCalendarAttendeesDto.md @@ -9,6 +9,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiCalendarDailyRecurrencePatternDto.md b/sdk/docs/MapiCalendarDailyRecurrencePatternDto.md index 9d94bd7..f4f2527 100644 --- a/sdk/docs/MapiCalendarDailyRecurrencePatternDto.md +++ b/sdk/docs/MapiCalendarDailyRecurrencePatternDto.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes Parent class: [MapiCalendarRecurrencePatternDto](MapiCalendarRecurrencePatternDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiCalendarDto.md b/sdk/docs/MapiCalendarDto.md index 445c0de..839d4e9 100644 --- a/sdk/docs/MapiCalendarDto.md +++ b/sdk/docs/MapiCalendarDto.md @@ -23,6 +23,6 @@ Name | Type | Description | Notes Parent class: [MapiMessageItemBaseDto](MapiMessageItemBaseDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiCalendarEventRecurrenceDto.md b/sdk/docs/MapiCalendarEventRecurrenceDto.md index 658592c..e5b2e6e 100644 --- a/sdk/docs/MapiCalendarEventRecurrenceDto.md +++ b/sdk/docs/MapiCalendarEventRecurrenceDto.md @@ -11,6 +11,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiCalendarExceptionInfoDto.md b/sdk/docs/MapiCalendarExceptionInfoDto.md index aa0b533..9b601b5 100644 --- a/sdk/docs/MapiCalendarExceptionInfoDto.md +++ b/sdk/docs/MapiCalendarExceptionInfoDto.md @@ -19,6 +19,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiCalendarRecurrencePatternDto.md b/sdk/docs/MapiCalendarRecurrencePatternDto.md index c7e6840..c426931 100644 --- a/sdk/docs/MapiCalendarRecurrencePatternDto.md +++ b/sdk/docs/MapiCalendarRecurrencePatternDto.md @@ -19,6 +19,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiCalendarSaveRequest.md b/sdk/docs/MapiCalendarSaveRequest.md new file mode 100644 index 0000000..8479da6 --- /dev/null +++ b/sdk/docs/MapiCalendarSaveRequest.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.MapiCalendarSaveRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format** | **str** | Calendar file format Enum, available values: Ics, Msg | + + Parent class: [StorageModelOfMapiCalendarDto](StorageModelOfMapiCalendarDto.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/MapiCalendarTimeZoneDto.md b/sdk/docs/MapiCalendarTimeZoneDto.md index b904e4e..a3a2283 100644 --- a/sdk/docs/MapiCalendarTimeZoneDto.md +++ b/sdk/docs/MapiCalendarTimeZoneDto.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiCalendarTimeZoneInfoDto.md b/sdk/docs/MapiCalendarTimeZoneInfoDto.md index 4104c95..30e3f0c 100644 --- a/sdk/docs/MapiCalendarTimeZoneInfoDto.md +++ b/sdk/docs/MapiCalendarTimeZoneInfoDto.md @@ -12,6 +12,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiCalendarTimeZoneRuleDto.md b/sdk/docs/MapiCalendarTimeZoneRuleDto.md index 7aac43e..fb7799a 100644 --- a/sdk/docs/MapiCalendarTimeZoneRuleDto.md +++ b/sdk/docs/MapiCalendarTimeZoneRuleDto.md @@ -14,6 +14,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiCalendarWeeklyRecurrencePatternDto.md b/sdk/docs/MapiCalendarWeeklyRecurrencePatternDto.md index dfffa01..824cef8 100644 --- a/sdk/docs/MapiCalendarWeeklyRecurrencePatternDto.md +++ b/sdk/docs/MapiCalendarWeeklyRecurrencePatternDto.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes Parent class: [MapiCalendarRecurrencePatternDto](MapiCalendarRecurrencePatternDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiCalendarYearlyAndMonthlyRecurrencePatternDto.md b/sdk/docs/MapiCalendarYearlyAndMonthlyRecurrencePatternDto.md index 7a52b79..81bff96 100644 --- a/sdk/docs/MapiCalendarYearlyAndMonthlyRecurrencePatternDto.md +++ b/sdk/docs/MapiCalendarYearlyAndMonthlyRecurrencePatternDto.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes Parent class: [MapiCalendarRecurrencePatternDto](MapiCalendarRecurrencePatternDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiContactApi.md b/sdk/docs/MapiContactApi.md new file mode 100644 index 0000000..67eabb5 --- /dev/null +++ b/sdk/docs/MapiContactApi.md @@ -0,0 +1,118 @@ +# AsposeEmailCloudSdk.MapiContactApi + + + +# as_contact_dto + +```python +as_contact_dto(self, MapiContactDto mapi_contact_dto) +``` + +Converts MAPI contact model to ContactDto model. + +### Return type + +[**ContactDto**](ContactDto.md) + +### mapi_contact_dto Parameter + +See parameter model documentation at [MapiContactDto](MapiContactDto.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# as_file + +```python +as_file(self, MapiContactAsFileRequest request) +``` + +Converts MAPI contact model to specified format and returns as file. + +### Return type + +**Stream** + +### request Parameter + +See parameter model documentation at [MapiContactAsFileRequest](MapiContactAsFileRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# from_file + +```python +from_file(self, request: MapiContactFromFileRequest) +``` + +Converts contact file to a MAPI model representation. + +### Return type + +MapiContactDto + +### request Parameter +```python +MapiContactFromFileRequest( + format, + file) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **format** | **str** | File format Enum, available values: VCard, WebDav, Msg | + **file** | **str** | File to convert | + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# get + +```python +get(self, request: MapiContactGetRequest) +``` + +Get MAPI contact document. + +### Return type + +MapiContactDto + +### request Parameter +```python +MapiContactGetRequest( + format, + file_name, + folder, + storage) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **format** | **str** | Contact document format. Enum, available values: VCard, WebDav, Msg | + **file_name** | **str** | Contact document file name. | + **folder** | **str** | Path to folder in storage. | [optional] + **storage** | **str** | Storage name. | [optional] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# save + +```python +save(self, MapiContactSaveRequest request) +``` + +Save MAPI Contact to storage. + +### Return type + +void (empty response body) + +### request Parameter + +See parameter model documentation at [MapiContactSaveRequest](MapiContactSaveRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + diff --git a/sdk/docs/MapiContactApi_list.md b/sdk/docs/MapiContactApi_list.md new file mode 100644 index 0000000..a9ba54b --- /dev/null +++ b/sdk/docs/MapiContactApi_list.md @@ -0,0 +1,12 @@ + +## Documentation for MapiContactApi operations + +All URIs are relative to *https://api.aspose.cloud/v4.0* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**as_contact_dto**](MapiContactApi.md#as_contact_dto)| **PUT** /email/MapiContact/as-contact-dto| Converts MAPI contact model to ContactDto model. +[**as_file**](MapiContactApi.md#as_file)| **PUT** /email/MapiContact/as-file| Converts MAPI contact model to specified format and returns as file. +[**from_file**](MapiContactApi.md#from_file)| **PUT** /email/MapiContact/from-file| Converts contact file to a MAPI model representation. +[**get**](MapiContactApi.md#get)| **GET** /email/MapiContact| Get MAPI contact document. +[**save**](MapiContactApi.md#save)| **PUT** /email/MapiContact| Save MAPI Contact to storage. diff --git a/sdk/docs/MapiContactAsFileRequest.md b/sdk/docs/MapiContactAsFileRequest.md new file mode 100644 index 0000000..0cc927c --- /dev/null +++ b/sdk/docs/MapiContactAsFileRequest.md @@ -0,0 +1,12 @@ +# AsposeEmailCloudSdk.models.MapiContactAsFileRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format** | **str** | Enumerates contact formats. Enum, available values: VCard, WebDav, Msg | +**value** | [**MapiContactDto**](MapiContactDto.md) | MAPI contact model. | + + + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/MapiContactDto.md b/sdk/docs/MapiContactDto.md index d0c819f..56b7328 100644 --- a/sdk/docs/MapiContactDto.md +++ b/sdk/docs/MapiContactDto.md @@ -14,6 +14,6 @@ Name | Type | Description | Notes Parent class: [MapiMessageItemBaseDto](MapiMessageItemBaseDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiContactElectronicAddressDto.md b/sdk/docs/MapiContactElectronicAddressDto.md index b31d313..8e5d7e3 100644 --- a/sdk/docs/MapiContactElectronicAddressDto.md +++ b/sdk/docs/MapiContactElectronicAddressDto.md @@ -11,6 +11,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiContactElectronicAddressPropertySetDto.md b/sdk/docs/MapiContactElectronicAddressPropertySetDto.md index 9fe4951..1a97e36 100644 --- a/sdk/docs/MapiContactElectronicAddressPropertySetDto.md +++ b/sdk/docs/MapiContactElectronicAddressPropertySetDto.md @@ -14,6 +14,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiContactEventPropertySetDto.md b/sdk/docs/MapiContactEventPropertySetDto.md index 26365f8..f84af56 100644 --- a/sdk/docs/MapiContactEventPropertySetDto.md +++ b/sdk/docs/MapiContactEventPropertySetDto.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiContactNamePropertySetDto.md b/sdk/docs/MapiContactNamePropertySetDto.md index 591da1a..495b9cb 100644 --- a/sdk/docs/MapiContactNamePropertySetDto.md +++ b/sdk/docs/MapiContactNamePropertySetDto.md @@ -15,6 +15,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiContactOtherPropertySetDto.md b/sdk/docs/MapiContactOtherPropertySetDto.md index bf0e901..3518c97 100644 --- a/sdk/docs/MapiContactOtherPropertySetDto.md +++ b/sdk/docs/MapiContactOtherPropertySetDto.md @@ -13,6 +13,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiContactPersonalInfoPropertySetDto.md b/sdk/docs/MapiContactPersonalInfoPropertySetDto.md index e25e50c..fdb4172 100644 --- a/sdk/docs/MapiContactPersonalInfoPropertySetDto.md +++ b/sdk/docs/MapiContactPersonalInfoPropertySetDto.md @@ -24,6 +24,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiContactPhotoDto.md b/sdk/docs/MapiContactPhotoDto.md index 7f0433e..19c4d83 100644 --- a/sdk/docs/MapiContactPhotoDto.md +++ b/sdk/docs/MapiContactPhotoDto.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes Parent class: [ContactPhoto](ContactPhoto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiContactPhysicalAddressDto.md b/sdk/docs/MapiContactPhysicalAddressDto.md index 4ae8d33..94ed620 100644 --- a/sdk/docs/MapiContactPhysicalAddressDto.md +++ b/sdk/docs/MapiContactPhysicalAddressDto.md @@ -14,6 +14,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiContactPhysicalAddressPropertySetDto.md b/sdk/docs/MapiContactPhysicalAddressPropertySetDto.md index e418e5a..02ae863 100644 --- a/sdk/docs/MapiContactPhysicalAddressPropertySetDto.md +++ b/sdk/docs/MapiContactPhysicalAddressPropertySetDto.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiContactProfessionalPropertySetDto.md b/sdk/docs/MapiContactProfessionalPropertySetDto.md index 08eeaa6..1851e32 100644 --- a/sdk/docs/MapiContactProfessionalPropertySetDto.md +++ b/sdk/docs/MapiContactProfessionalPropertySetDto.md @@ -12,6 +12,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiContactSaveRequest.md b/sdk/docs/MapiContactSaveRequest.md new file mode 100644 index 0000000..796e771 --- /dev/null +++ b/sdk/docs/MapiContactSaveRequest.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.MapiContactSaveRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format** | **str** | Enumerates contact formats. Enum, available values: VCard, WebDav, Msg | + + Parent class: [StorageModelOfMapiContactDto](StorageModelOfMapiContactDto.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/MapiContactTelephonePropertySetDto.md b/sdk/docs/MapiContactTelephonePropertySetDto.md index f008bc8..ad74ab3 100644 --- a/sdk/docs/MapiContactTelephonePropertySetDto.md +++ b/sdk/docs/MapiContactTelephonePropertySetDto.md @@ -24,6 +24,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiDateTimePropertyDto.md b/sdk/docs/MapiDateTimePropertyDto.md index da996a0..0e1bfb0 100644 --- a/sdk/docs/MapiDateTimePropertyDto.md +++ b/sdk/docs/MapiDateTimePropertyDto.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes Parent class: [MapiPropertyDto](MapiPropertyDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiElectronicAddressDto.md b/sdk/docs/MapiElectronicAddressDto.md index 90f767f..cab2657 100644 --- a/sdk/docs/MapiElectronicAddressDto.md +++ b/sdk/docs/MapiElectronicAddressDto.md @@ -10,6 +10,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiFileAsPropertyDto.md b/sdk/docs/MapiFileAsPropertyDto.md index ed29cc9..ec53dac 100644 --- a/sdk/docs/MapiFileAsPropertyDto.md +++ b/sdk/docs/MapiFileAsPropertyDto.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes Parent class: [MapiPropertyDto](MapiPropertyDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiGroup.md b/sdk/docs/MapiGroup.md new file mode 100644 index 0000000..1e8aa05 --- /dev/null +++ b/sdk/docs/MapiGroup.md @@ -0,0 +1,8 @@ +# EmailCloud.Mapi +MAPI operations. + +API | Description +--- | ----------- +[EmailCloud.mapi.**calendar**](MapiCalendarApi_list.md) | MAPI calendar operations. +[EmailCloud.mapi.**contact**](MapiContactApi_list.md) | MAPI contact operations +[EmailCloud.mapi.**message**](MapiMessageApi_list.md) | MAPI message operations diff --git a/sdk/docs/MapiImportancePropertyDto.md b/sdk/docs/MapiImportancePropertyDto.md index 1a16667..06c7b5a 100644 --- a/sdk/docs/MapiImportancePropertyDto.md +++ b/sdk/docs/MapiImportancePropertyDto.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes Parent class: [MapiPropertyDto](MapiPropertyDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiIntPropertyDto.md b/sdk/docs/MapiIntPropertyDto.md index 362967f..3fb9e25 100644 --- a/sdk/docs/MapiIntPropertyDto.md +++ b/sdk/docs/MapiIntPropertyDto.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes Parent class: [MapiPropertyDto](MapiPropertyDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiKnownPropertyDescriptor.md b/sdk/docs/MapiKnownPropertyDescriptor.md index cce3ffc..83ccafe 100644 --- a/sdk/docs/MapiKnownPropertyDescriptor.md +++ b/sdk/docs/MapiKnownPropertyDescriptor.md @@ -2,10 +2,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Known property name. See all known properties here: https://apireference.aspose.com/email/net/aspose.email.mapi/knownpropertylist/fields/index Possible values: Mileage, ObjectUri, GDataContactVersion, GDataPhotoVersion, AddressBookProviderArrayType, AddressBookProviderEmailList, AddressCountryCode, AgingDontAgeMe, AllAttendeesString, AllowExternalCheck, AnniversaryEventEntryId, AppointmentAuxiliaryFlags, AppointmentColor, AppointmentCounterProposal, AppointmentDuration, AppointmentEndDate, AppointmentEndTime, AppointmentEndWhole, AppointmentLastSequence, AppointmentMessageClass, AppointmentNotAllowPropose, AppointmentProposalNumber, AppointmentProposedDuration, AppointmentProposedEndWhole, AppointmentProposedStartWhole, AppointmentRecur, AppointmentReplyName, AppointmentReplyTime, AppointmentSequence, AppointmentSequenceTime, AppointmentStartDate, AppointmentStartTime, AppointmentStartWhole, AppointmentStateFlags, AppointmentSubType, AppointmentTimeZoneDefinitionEndDisplay, AppointmentTimeZoneDefinitionRecur, AppointmentTimeZoneDefinitionStartDisplay, AppointmentUnsendableRecipients, AppointmentUpdateTime, AttendeeCriticalChange, AutoFillLocation, AutoLog, AutoProcessState, AutoStartCheck, Billing, BirthdayEventEntryId, BirthdayLocal, BusinessCardCardPicture, BusinessCardDisplayDefinition, BusyStatus, CalendarType, Categories, CcAttendeesString, ChangeHighlight, Classification, ClassificationDescription, ClassificationGuid, ClassificationKeep, Classified, CleanGlobalObjectId, ClientIntent, ClipEnd, ClipStart, CollaborateDoc, CommonEnd, CommonStart, Companies, ConferencingCheck, ConferencingType, ContactCharacterSet, ContactItemData, ContactLinkedGlobalAddressListEntryId, ContactLinkEntry, ContactLinkGlobalAddressListLinkId, ContactLinkGlobalAddressListLinkState, ContactLinkLinkRejectHistory, ContactLinkName, ContactLinkSearchKey, ContactLinkSMTPAddressCache, Contacts, ContactUserField1, ContactUserField2, ContactUserField3, ContactUserField4, ConversationActionLastAppliedTime, ConversationActionMaxDeliveryTime, ConversationActionMoveFolderEid, ConversationActionMoveStoreEid, ConversationActionVersion, ConversationProcessed, CurrentVersion, CurrentVersionName, DayInterval, DayOfMonth, DelegateMail, Department, Directory, DistributionListChecksum, DistributionListMembers, DistributionListName, DistributionListOneOffMembers, DistributionListStream, Email1AddressType, Email1DisplayName, Email1EmailAddress, Email1OriginalDisplayName, Email1OriginalEntryId, Email2AddressType, Email2DisplayName, Email2EmailAddress, Email2OriginalDisplayName, Email2OriginalEntryId, Email3AddressType, Email3DisplayName, Email3EmailAddress, Email3OriginalDisplayName, Email3OriginalEntryId, EndRecurrenceDate, EndRecurrenceTime, ExceptionReplaceTime, Fax1AddressType, Fax1EmailAddress, Fax1OriginalDisplayName, Fax1OriginalEntryId, Fax2AddressType, Fax2EmailAddress, Fax2OriginalDisplayName, Fax2OriginalEntryId, Fax3AddressType, Fax3EmailAddress, Fax3OriginalDisplayName, Fax3OriginalEntryId, FExceptionalAttendees, FExceptionalBody, FileUnder, FileUnderId, FileUnderList, FInvited, FlagRequest, FlagString, ForwardInstance, ForwardNotificationRecipients, FOthersAppointment, FreeBusyLocation, GlobalObjectId, HasPicture, HomeAddress, HomeAddressCountryCode, Html, ICalendarDayOfWeekMask, InboundICalStream, InfoPathFormName, InstantMessagingAddress, IntendedBusyStatus, InternetAccountName, InternetAccountStamp, IsContactLinked, IsException, IsRecurring, IsSilent, LinkedTaskItems, Location, LogDocumentPosted, LogDocumentPrinted, LogDocumentRouted, LogDocumentSaved, LogDuration, LogEnd, LogFlags, LogStart, LogType, LogTypeDesc, MeetingType, MeetingWorkspaceUrl, MonthInterval, MonthOfYear, MonthOfYearMask, NetShowUrl, NoEndDateFlag, NonSendableBcc, NonSendableCc, NonSendableTo, NonSendBccTrackStatus, NonSendCcTrackStatus, NonSendToTrackStatus, NoteColor, NoteHeight, NoteWidth, NoteX, NoteY, Occurrences, OldLocation, OldRecurrenceType, OldWhenEndWhole, OldWhenStartWhole, OnlinePassword, OptionalAttendees, OrganizerAlias, OriginalStoreEntryId, OtherAddress, OtherAddressCountryCode, OwnerCriticalChange, OwnerName, PendingStateForSiteMailboxDocument, PercentComplete, PostalAddressId, PostRssChannel, PostRssChannelLink, PostRssItemGuid, PostRssItemHash, PostRssItemLink, PostRssItemXml, PostRssSubscription, Private, PromptSendUpdate, RecurrenceDuration, RecurrencePattern, RecurrenceType, Recurring, ReferenceEntryId, ReminderDelta, ReminderFileParameter, ReminderOverride, ReminderPlaySound, ReminderSet, ReminderSignalTime, ReminderTime, ReminderTimeDate, ReminderTimeTime, ReminderType, RemoteStatus, RequiredAttendees, ResourceAttendees, ResponseStatus, ServerProcessed, ServerProcessingActions, SharingAnonymity, SharingBindingEntryId, SharingBrowseUrl, SharingCapabilities, SharingConfigurationUrl, SharingDataRangeEnd, SharingDataRangeStart, SharingDetail, SharingExtensionXml, SharingFilter, SharingFlags, SharingFlavor, SharingFolderEntryId, SharingIndexEntryId, SharingInitiatorEntryId, SharingInitiatorName, SharingInitiatorSmtp, SharingInstanceGuid, SharingLastAutoSyncTime, SharingLastSyncTime, SharingLocalComment, SharingLocalLastModificationTime, SharingLocalName, SharingLocalPath, SharingLocalStoreUid, SharingLocalType, SharingLocalUid, SharingOriginalMessageEntryId, SharingParentBindingEntryId, SharingParticipants, SharingPermissions, SharingProviderExtension, SharingProviderGuid, SharingProviderName, SharingProviderUrl, SharingRangeEnd, SharingRangeStart, SharingReciprocation, SharingRemoteByteSize, SharingRemoteComment, SharingRemoteCrc, SharingRemoteLastModificationTime, SharingRemoteMessageCount, SharingRemoteName, SharingRemotePass, SharingRemotePath, SharingRemoteStoreUid, SharingRemoteType, SharingRemoteUid, SharingRemoteUser, SharingRemoteVersion, SharingResponseTime, SharingResponseType, SharingRoamLog, SharingStart, SharingStatus, SharingStop, SharingSyncFlags, SharingSyncInterval, SharingTimeToLive, SharingTimeToLiveAuto, SharingWorkingHoursDays, SharingWorkingHoursEnd, SharingWorkingHoursStart, SharingWorkingHoursTimeZone, SideEffects, SingleBodyICal, SmartNoAttach, SpamOriginalFolder, StartRecurrenceDate, StartRecurrenceTime, TaskAcceptanceState, TaskAccepted, TaskActualEffort, TaskAssigner, TaskAssigners, TaskComplete, TaskCustomFlags, TaskDateCompleted, TaskDeadOccurrence, TaskDueDate, TaskEstimatedEffort, TaskFCreator, TaskFFixOffline, TaskFRecurring, TaskGlobalId, TaskHistory, TaskLastDelegate, TaskLastUpdate, TaskLastUser, TaskMode, TaskMultipleRecipients, TaskNoCompute, TaskOrdinal, TaskOwner, TaskOwnership, TaskRecurrence, TaskResetReminder, TaskRole, TaskStartDate, TaskState, TaskStatus, TaskStatusOnComplete, TaskUpdates, TaskVersion, TeamTask, TimeZone, TimeZoneDescription, TimeZoneStruct, ToAttendeesString, ToDoOrdinalDate, ToDoSubOrdinal, ToDoTitle, UseTnef, ValidFlagStringProof, VerbResponse, VerbStream, WeddingAnniversaryLocal, WeekInterval, Where, WorkAddress, WorkAddressCity, WorkAddressCountry, WorkAddressCountryCode, WorkAddressPostalCode, WorkAddressPostOfficeBox, WorkAddressState, WorkAddressStreet, YearInterval, YomiCompanyName, YomiFirstName, YomiLastName, AcceptLanguage, ApplicationName, AttachmentMacContentType, AttachmentMacInfo, AudioNotes, Author, AutomaticSpeechRecognitionData, ByteCount, CalendarAttendeeRole, CalendarBusystatus, CalendarContact, CalendarContactUrl, CalendarCreated, CalendarDescriptionUrl, CalendarDuration, CalendarExceptionDate, CalendarExceptionRule, CalendarGeoLatitude, CalendarGeoLongitude, CalendarInstanceType, CalendarIsOrganizer, CalendarLastModified, CalendarLocationUrl, CalendarMeetingStatus, CalendarMethod, CalendarProductId, CalendarRecurrenceIdRange, CalendarReminderOffset, CalendarResources, CalendarRsvp, CalendarSequence, CalendarTimeZone, CalendarTimeZoneId, CalendarTransparent, CalendarUid, CalendarVersion, Category, CharacterCount, Comments, Company, ContentBase, ContentClass, ContentType, CreateDateTimeReadOnly, CrossReference, DavId, DavIsCollection, DavIsStructuredDocument, DavParentName, DavUid, DocumentParts, EditTime, ExchangeIntendedBusyStatus, ExchangeJunkEmailMoveStamp, ExchangeModifyExceptionStructure, ExchangeNoModifyExceptions, ExchangePatternEnd, ExchangePatternStart, ExchangeReminderInterval, ExchDatabaseSchema, ExchDataExpectedContentClass, ExchDataSchemaCollectionReference, ExtractedAddresses, ExtractedContacts, ExtractedEmails, ExtractedMeetings, ExtractedPhones, ExtractedTasks, ExtractedUrls, From, HeadingPairs, HiddenCount, HttpmailCalendar, HttpmailHtmlDescription, HttpmailSendMessage, ICalendarRecurrenceDate, ICalendarRecurrenceRule, InternetSubject, Keywords, LastAuthor, LastPrinted, LastSaveDateTime, LineCount, LinksDirty, LocationUrl, Manager, MultimediaClipCount, NoteCount, OMSAccountGuid, OMSMobileModel, OMSScheduleTime, OMSServiceType, OMSSourceType, PageCount, ParagraphCount, PhishingStamp, PresentationFormat, QuarantineOriginalSender, RevisionNumber, RightsManagementLicense, Scale, Security, SlideCount, Subject, Template, Thumbnail, Title, WordCount, XCallId, XFaxNumberOfPages, XRequireProtectedPlayOnPhone, XSenderTelephoneNumber, XSharingBrowseUrl, XSharingCapabilities, XSharingConfigUrl, XSharingExendedCaps, XSharingFlavor, XSharingInstanceGuid, XSharingLocalType, XSharingProviderGuid, XSharingProviderName, XSharingProviderUrl, XSharingRemoteName, XSharingRemotePath, XSharingRemoteStoreUid, XSharingRemoteType, XSharingRemoteUid, XVoiceMessageAttachmentOrder, XVoiceMessageDuration, XVoiceMessageSenderName, Access, AccessControlListData, AccessLevel, Account, AdditionalRenEntryIds, AdditionalRenEntryIdsEx, AddressBookAuthorizedSenders, AddressBookContainerId, AddressBookDeliveryContentLength, AddressBookDisplayNamePrintable, AddressBookDisplayTypeExtended, AddressBookDistributionListExternalMemberCount, AddressBookDistributionListMemberCount, AddressBookDistributionListMemberSubmitAccepted, AddressBookDistributionListMemberSubmitRejected, AddressBookDistributionListRejectMessagesFromDLMembers, AddressBookEntryId, AddressBookExtensionAttribute1, AddressBookExtensionAttribute10, AddressBookExtensionAttribute11, AddressBookExtensionAttribute12, AddressBookExtensionAttribute13, AddressBookExtensionAttribute14, AddressBookExtensionAttribute15, AddressBookExtensionAttribute2, AddressBookExtensionAttribute3, AddressBookExtensionAttribute4, AddressBookExtensionAttribute5, AddressBookExtensionAttribute6, AddressBookExtensionAttribute7, AddressBookExtensionAttribute8, AddressBookExtensionAttribute9, AddressBookFolderPathname, AddressBookHierarchicalChildDepartments, AddressBookHierarchicalDepartmentMembers, AddressBookHierarchicalIsHierarchicalGroup, AddressBookHierarchicalParentDepartment, AddressBookHierarchicalRootDepartment, AddressBookHierarchicalShowInDepartments, AddressBookHomeMessageDatabase, AddressBookIsMaster, AddressBookIsMemberOfDistributionList, AddressBookManageDistributionList, AddressBookManager, AddressBookManagerDistinguishedName, AddressBookMember, AddressBookMessageId, AddressBookModerationEnabled, AddressBookNetworkAddress, AddressBookObjectDistinguishedName, AddressBookObjectGuid, AddressBookOrganizationalUnitRootDistinguishedName, AddressBookOwner, AddressBookOwnerBackLink, AddressBookParentEntryId, AddressBookPhoneticCompanyName, AddressBookPhoneticDepartmentName, AddressBookPhoneticDisplayName, AddressBookPhoneticGivenName, AddressBookPhoneticSurname, AddressBookProxyAddresses, AddressBookPublicDelegates, AddressBookReports, AddressBookRoomCapacity, AddressBookRoomContainers, AddressBookRoomDescription, AddressBookSenderHintTranslations, AddressBookSeniorityIndex, AddressBookTargetAddress, AddressBookUnauthorizedSenders, AddressBookX509Certificate, AddressType, AlternateRecipientAllowed, Anr, ArchiveDate, ArchivePeriod, ArchiveTag, Assistant, AssistantTelephoneNumber, Associated, AttachAdditionalInformation, AttachContentBase, AttachContentId, AttachContentLocation, AttachDataBinary, AttachDataObject, AttachEncoding, AttachExtension, AttachFilename, AttachFlags, AttachLongFilename, AttachLongPathname, AttachmentContactPhoto, AttachmentFlags, AttachmentHidden, AttachmentLinkId, AttachMethod, AttachMimeTag, AttachNumber, AttachPathname, AttachPayloadClass, AttachPayloadProviderGuidString, AttachRendering, AttachSize, AttachTag, AttachTransportName, AttributeHidden, AttributeReadOnly, AutoForwardComment, AutoForwarded, AutoResponseSuppress, Birthday, BlockStatus, Body, BodyContentId, BodyContentLocation, BodyHtml, Business2TelephoneNumber, Business2TelephoneNumbers, BusinessFaxNumber, BusinessHomePage, BusinessTelephoneNumber, CallbackTelephoneNumber, CallId, CarTelephoneNumber, CdoRecurrenceid, ChangeKey, ChangeNumber, ChildrensNames, ClientActions, ClientSubmitTime, CodePageId, Comment, CompanyMainTelephoneNumber, CompanyName, ComputerNetworkName, ConflictEntryId, ContainerClass, ContainerContents, ContainerFlags, ContainerHierarchy, ContentCount, ContentFilterSpamConfidenceLevel, ContentUnreadCount, ConversationId, ConversationIndex, ConversationIndexTracking, ConversationTopic, Country, CreationTime, CreatorEntryId, CreatorName, CustomerId, DamBackPatched, DamOriginalEntryId, DefaultPostMessageClass, DeferredActionMessageOriginalEntryId, DeferredDeliveryTime, DeferredSendNumber, DeferredSendTime, DeferredSendUnits, DelegatedByRule, DelegateFlags, DeleteAfterSubmit, DeletedCountTotal, DeletedOn, DeliverTime, DepartmentName, Depth, DisplayBcc, DisplayCc, DisplayName, DisplayNamePrefix, DisplayTo, DisplayType, DisplayTypeEx, EmailAddress, EndDate, EntryId, ExceptionEndTime, TagExceptionReplaceTime, ExceptionStartTime, ExchangeNTSecurityDescriptor, ExpiryNumber, ExpiryTime, ExpiryUnits, ExtendedFolderFlags, ExtendedRuleMessageActions, ExtendedRuleMessageCondition, ExtendedRuleSizeLimit, FaxNumberOfPages, FlagCompleteTime, FlagStatus, FlatUrlName, FolderAssociatedContents, FolderId, FolderFlags, FolderType, FollowupIcon, FreeBusyCountMonths, FreeBusyEntryIds, FreeBusyMessageEmailAddress, FreeBusyPublishEnd, FreeBusyPublishStart, FreeBusyRangeTimestamp, FtpSite, GatewayNeedsToRefresh, Gender, Generation, GivenName, GovernmentIdNumber, HasAttachments, HasDeferredActionMessages, HasNamedProperties, HasRules, HierarchyChangeNumber, HierRev, Hobbies, Home2TelephoneNumber, Home2TelephoneNumbers, HomeAddressCity, HomeAddressCountry, HomeAddressPostalCode, HomeAddressPostOfficeBox, HomeAddressStateOrProvince, HomeAddressStreet, HomeFaxNumber, HomeTelephoneNumber, TagHtml, ICalendarEndTime, ICalendarReminderNextTime, ICalendarStartTime, IconIndex, Importance, InConflict, InitialDetailsPane, Initials, InReplyToId, InstanceKey, InstanceNum, InstID, InternetCodepage, InternetMailOverrideFormat, InternetMessageId, InternetReferences, IpmAppointmentEntryId, IpmContactEntryId, IpmDraftsEntryId, IpmJournalEntryId, IpmNoteEntryId, IpmTaskEntryId, IsdnNumber, JunkAddRecipientsToSafeSendersList, JunkIncludeContacts, JunkPermanentlyDelete, JunkPhishingEnableLinks, JunkThreshold, Keyword, Language, LastModificationTime, LastModifierEntryId, LastModifierName, LastVerbExecuted, LastVerbExecutionTime, ListHelp, ListSubscribe, ListUnsubscribe, LocalCommitTime, LocalCommitTimeMax, LocaleId, Locality, TagLocation, MailboxOwnerEntryId, MailboxOwnerName, ManagerName, MappingSignature, MaximumSubmitMessageSize, MemberId, MemberName, MemberRights, MessageAttachments, MessageCcMe, MessageClass, MessageCodepage, MessageDeliveryTime, MessageEditorFormat, MessageFlags, MessageHandlingSystemCommonName, MessageLocaleId, MessageRecipientMe, MessageRecipients, MessageSize, MessageSizeExtended, MessageStatus, MessageSubmissionId, MessageToMe, Mid, MiddleName, MimeSkeleton, MobileTelephoneNumber, NativeBody, NextSendAcct, Nickname, NonDeliveryReportDiagCode, NonDeliveryReportReasonCode, NonDeliveryReportStatusCode, NonReceiptNotificationRequested, NormalizedSubject, ObjectType, OfficeLocation, OfflineAddressBookContainerGuid, OfflineAddressBookDistinguishedName, OfflineAddressBookMessageClass, OfflineAddressBookName, OfflineAddressBookSequence, OfflineAddressBookTruncatedProperties, OrdinalMost, OrganizationalIdNumber, OriginalAuthorEntryId, OriginalAuthorName, OriginalDeliveryTime, OriginalDisplayBcc, OriginalDisplayCc, OriginalDisplayTo, OriginalEntryId, OriginalMessageClass, OriginalMessageId, OriginalSenderAddressType, OriginalSenderEmailAddress, OriginalSenderEntryId, OriginalSenderName, OriginalSenderSearchKey, OriginalSensitivity, OriginalSentRepresentingAddressType, OriginalSentRepresentingEmailAddress, OriginalSentRepresentingEntryId, OriginalSentRepresentingName, OriginalSentRepresentingSearchKey, OriginalSubject, OriginalSubmitTime, OriginatorDeliveryReportRequested, OriginatorNonDeliveryReportRequested, OscSyncEnabled, OtherAddressCity, OtherAddressCountry, OtherAddressPostalCode, OtherAddressPostOfficeBox, OtherAddressStateOrProvince, OtherAddressStreet, OtherTelephoneNumber, OutOfOfficeState, OwnerAppointmentId, PagerTelephoneNumber, ParentEntryId, ParentFolderId, ParentKey, ParentSourceKey, PersonalHomePage, PolicyTag, PostalAddress, PostalCode, PostOfficeBox, PredecessorChangeList, PrimaryFaxNumber, PrimarySendAccount, PrimaryTelephoneNumber, Priority, Processed, Profession, ProhibitReceiveQuota, ProhibitSendQuota, PurportedSenderDomain, RadioTelephoneNumber, Read, ReadReceiptAddressType, ReadReceiptEmailAddress, ReadReceiptEntryId, ReadReceiptName, ReadReceiptRequested, ReadReceiptSearchKey, ReadReceiptSmtpAddress, ReceiptTime, ReceivedByAddressType, ReceivedByEmailAddress, ReceivedByEntryId, ReceivedByName, ReceivedBySearchKey, ReceivedBySmtpAddress, ReceivedRepresentingAddressType, ReceivedRepresentingEmailAddress, ReceivedRepresentingEntryId, ReceivedRepresentingName, ReceivedRepresentingSearchKey, ReceivedRepresentingSmtpAddress, RecipientDisplayName, RecipientEntryId, RecipientFlags, RecipientOrder, RecipientProposed, RecipientProposedEndTime, RecipientProposedStartTime, RecipientReassignmentProhibited, RecipientTrackStatus, RecipientTrackStatusTime, RecipientType, RecordKey, ReferredByName, RemindersOnlineEntryId, RemoteMessageTransferAgent, RenderingPosition, ReplyRecipientEntries, ReplyRecipientNames, ReplyRequested, ReplyTemplateId, ReplyTime, ReportDisposition, ReportDispositionMode, ReportEntryId, ReportingMessageTransferAgent, ReportName, ReportSearchKey, ReportTag, ReportText, ReportTime, ResolveMethod, ResponseRequested, Responsibility, RetentionDate, RetentionFlags, RetentionPeriod, Rights, RoamingDatatypes, RoamingDictionary, RoamingXmlStream, Rowid, RowType, RtfCompressed, RtfInSync, RuleActionNumber, RuleActions, RuleActionType, RuleCondition, RuleError, RuleFolderEntryId, RuleId, RuleIds, RuleLevel, RuleMessageLevel, RuleMessageName, RuleMessageProvider, RuleMessageProviderData, RuleMessageSequence, RuleMessageState, RuleMessageUserFlags, RuleName, RuleProvider, RuleProviderData, RuleSequence, RuleState, RuleUserFlags, RwRulesStream, ScheduleInfoAppointmentTombstone, ScheduleInfoAutoAcceptAppointments, ScheduleInfoDelegateEntryIds, ScheduleInfoDelegateNames, ScheduleInfoDelegateNamesW, ScheduleInfoDelegatorWantsCopy, ScheduleInfoDelegatorWantsInfo, ScheduleInfoDisallowOverlappingAppts, ScheduleInfoDisallowRecurringAppts, ScheduleInfoDontMailDelegates, ScheduleInfoFreeBusy, ScheduleInfoFreeBusyAway, ScheduleInfoFreeBusyBusy, ScheduleInfoFreeBusyMerged, ScheduleInfoFreeBusyTentative, ScheduleInfoMonthsAway, ScheduleInfoMonthsBusy, ScheduleInfoMonthsMerged, ScheduleInfoMonthsTentative, ScheduleInfoResourceType, SchedulePlusFreeBusyEntryId, ScriptData, SearchFolderDefinition, SearchFolderEfpFlags, SearchFolderExpiration, SearchFolderId, SearchFolderLastUsed, SearchFolderRecreateInfo, SearchFolderStorageType, SearchFolderTag, SearchFolderTemplateId, SearchKey, SecurityDescriptorAsXml, Selectable, SenderAddressType, SenderEmailAddress, SenderEntryId, SenderIdStatus, SenderName, SenderSearchKey, SenderSmtpAddress, SenderTelephoneNumber, SendInternetEncoding, SendRichInfo, Sensitivity, SentMailSvrEID, SentRepresentingAddressType, SentRepresentingEmailAddress, SentRepresentingEntryId, SentRepresentingFlags, SentRepresentingName, SentRepresentingSearchKey, SentRepresentingSmtpAddress, SmtpAddress, SortLocaleId, SourceKey, SpokenName, SpouseName, StartDate, StartDateEtc, StateOrProvince, StoreEntryId, StoreState, StoreSupportMask, StreetAddress, Subfolders, TagSubject, SubjectPrefix, SupplementaryInfo, Surname, SwappedToDoData, SwappedToDoStore, TargetEntryId, TelecommunicationsDeviceForDeafTelephoneNumber, TelexNumber, TemplateData, Templateid, TextAttachmentCharset, ThumbnailPhoto, TagTitle, TnefCorrelationKey, ToDoItemFlags, TransmittableDisplayName, TransportMessageHeaders, TrustSender, UserCertificate, UserEntryId, UserX509Certificate, ViewDescriptorBinary, ViewDescriptorName, ViewDescriptorStrings, ViewDescriptorVersion, VoiceMessageAttachmentOrder, VoiceMessageDuration, VoiceMessageSenderName, WeddingAnniversary, WlinkAddressBookEID, WlinkAddressBookStoreEID, WlinkCalendarColor, WlinkClientID, WlinkEntryId, WlinkFlags, WlinkFolderType, WlinkGroupClsid, WlinkGroupHeaderID, WlinkGroupName, WlinkOrdinal, WlinkRecordKey, WlinkROGroupType, WlinkSaveStamp, WlinkSection, WlinkStoreEntryId, WlinkType, Abstract, ActiveUserEntryid, AddrbookForLocalSiteEntryid, AddressBookDisplayName, ArrivalTime, AssocMessageSize, AssocMessageSizeExtended, AssocMsgWAttachCount, AttachOnAssocMsgCount, AttachOnNormalMsgCount, AutoAddNewSubs, BilateralInfo, CachedColumnCount, CategCount, ChangeAdvisor, ChangeNotificationGuid, Collector, ContactCount, ContentSearchKey, ContentsSynchronizer, DeletedAssocMessageSizeExtended, DeletedAssocMsgCount, DeletedFolderCount, DeletedMessageSizeExtended, DeletedMsgCount, DeletedNormalMessageSizeExtended, DesignInProgress, DisableFullFidelity, DisableWinsock, DlReportFlags, EformsForLocaleEntryid, EformsLocaleId, EformsRegistryEntryid, EmsAbAccessCategory, EmsAbActivationSchedule, EmsAbActivationStyle, EmsAbAddressEntryDisplayTable, EmsAbAddressEntryDisplayTableMsdos, EmsAbAddressSyntax, EmsAbAddressType, EmsAbAdmd, EmsAbAdminDescription, EmsAbAdminDisplayName, EmsAbAdminExtensionDll, EmsAbAliasedObjectName, EmsAbAliasedObjectNameO, EmsAbAltRecipient, EmsAbAltRecipientBl, EmsAbAltRecipientBlO, EmsAbAltRecipientO, EmsAbAncestorId, EmsAbAnonymousAccess, EmsAbAnonymousAccount, EmsAbAssocNtAccount, EmsAbAssocProtocolCfgNntp, EmsAbAssocProtocolCfgNntpO, EmsAbAssocRemoteDxa, EmsAbAssocRemoteDxaO, EmsAbAssociationLifetime, EmsAbAttributeCertificate, EmsAbAuthOrigBl, EmsAbAuthOrigBlO, EmsAbAuthenticationToUse, EmsAbAuthorityRevocationList, EmsAbAuthorizedDomain, EmsAbAuthorizedPassword, EmsAbAuthorizedPasswordConfirm, EmsAbAuthorizedUser, EmsAbAutoreply, EmsAbAutoreplyMessage, EmsAbAutoreplySubject, EmsAbAvailableAuthorizationPackages, EmsAbAvailableDistributions, EmsAbBridgeheadServers, EmsAbBridgeheadServersO, EmsAbBusinessCategory, EmsAbBusinessRoles, EmsAbCaCertificate, EmsAbCanCreatePf, EmsAbCanCreatePfBl, EmsAbCanCreatePfBlO, EmsAbCanCreatePfDl, EmsAbCanCreatePfDlBl, EmsAbCanCreatePfDlBlO, EmsAbCanCreatePfDlO, EmsAbCanCreatePfO, EmsAbCanNotCreatePf, EmsAbCanNotCreatePfBl, EmsAbCanNotCreatePfBlO, EmsAbCanNotCreatePfDl, EmsAbCanNotCreatePfDlBl, EmsAbCanNotCreatePfDlBlO, EmsAbCanNotCreatePfDlO, EmsAbCanNotCreatePfO, EmsAbCanPreserveDns, EmsAbCertificateChainV3, EmsAbCertificateRevocationList, EmsAbCertificateRevocationListV1, EmsAbCertificateRevocationListV3, EmsAbCharacterSet, EmsAbCharacterSetList, EmsAbChildRdns, EmsAbClientAccessEnabled, EmsAbClockAlertOffset, EmsAbClockAlertRepair, EmsAbClockWarningOffset, EmsAbClockWarningRepair, EmsAbCompromisedKeyList, EmsAbComputerName, EmsAbConnectedDomains, EmsAbConnectionListFilter, EmsAbConnectionListFilterType, EmsAbConnectionType, EmsAbContainerInfo, EmsAbContentType, EmsAbControlMsgFolderId, EmsAbControlMsgRules, EmsAbCost, EmsAbCountryName, EmsAbCrossCertificateCrl, EmsAbCrossCertificatePair, EmsAbDefaultMessageFormat, EmsAbDelegateUser, EmsAbDelivEits, EmsAbDelivExtContTypes, EmsAbDeliverAndRedirect, EmsAbDeliveryMechanism, EmsAbDeltaRevocationList, EmsAbDescription, EmsAbDestinationIndicator, EmsAbDiagnosticRegKey, EmsAbDisableDeferredCommit, EmsAbDisabledGatewayProxy, EmsAbDisplayNameOverride, EmsAbDisplayNameSuffix, EmsAbDlMemRejectPermsBl, EmsAbDlMemRejectPermsBlO, EmsAbDlMemberRule, EmsAbDmdName, EmsAbDoOabVersion, EmsAbDomainDefAltRecip, EmsAbDomainDefAltRecipO, EmsAbDomainName, EmsAbDsaSignature, EmsAbDxaAdminCopy, EmsAbDxaAdminForward, EmsAbDxaAdminUpdate, EmsAbDxaAppendReqcn, EmsAbDxaConfContainerList, EmsAbDxaConfContainerListO, EmsAbDxaConfReqTime, EmsAbDxaConfSeq, EmsAbDxaConfSeqUsn, EmsAbDxaExchangeOptions, EmsAbDxaExportNow, EmsAbDxaFlags, EmsAbDxaImpSeq, EmsAbDxaImpSeqTime, EmsAbDxaImpSeqUsn, EmsAbDxaImportNow, EmsAbDxaInTemplateMap, EmsAbDxaLocalAdmin, EmsAbDxaLocalAdminO, EmsAbDxaLoggingLevel, EmsAbDxaNativeAddressType, EmsAbDxaOutTemplateMap, EmsAbDxaPassword, EmsAbDxaPrevExchangeOptions, EmsAbDxaPrevExportNativeOnly, EmsAbDxaPrevInExchangeSensitivity, EmsAbDxaPrevRemoteEntries, EmsAbDxaPrevRemoteEntriesO, EmsAbDxaPrevReplicationSensitivity, EmsAbDxaPrevTemplateOptions, EmsAbDxaPrevTypes, EmsAbDxaRecipientCp, EmsAbDxaRemoteClient, EmsAbDxaRemoteClientO, EmsAbDxaReqSeq, EmsAbDxaReqSeqTime, EmsAbDxaReqSeqUsn, EmsAbDxaReqname, EmsAbDxaSvrSeq, EmsAbDxaSvrSeqTime, EmsAbDxaSvrSeqUsn, EmsAbDxaTask, EmsAbDxaTemplateOptions, EmsAbDxaTemplateTimestamp, EmsAbDxaTypes, EmsAbDxaUnconfContainerList, EmsAbDxaUnconfContainerListO, EmsAbEmployeeNumber, EmsAbEmployeeType, EmsAbEnableCompatibility, EmsAbEnabled, EmsAbEnabledAuthorizationPackages, EmsAbEnabledProtocolCfg, EmsAbEnabledProtocols, EmsAbEncapsulationMethod, EmsAbEncrypt, EmsAbEncryptAlgListNa, EmsAbEncryptAlgListOther, EmsAbEncryptAlgSelectedNa, EmsAbEncryptAlgSelectedOther, EmsAbExpandDlsLocally, EmsAbExpirationTime, EmsAbExportContainers, EmsAbExportContainersO, EmsAbExportCustomRecipients, EmsAbExtendedCharsAllowed, EmsAbExtensionData, EmsAbExtensionName, EmsAbExtensionNameInherited, EmsAbFacsimileTelephoneNumber, EmsAbFileVersion, EmsAbFilterLocalAddresses, EmsAbFoldersContainer, EmsAbFoldersContainerO, EmsAbFormData, EmsAbForwardingAddress, EmsAbGarbageCollPeriod, EmsAbGatewayLocalCred, EmsAbGatewayLocalDesig, EmsAbGatewayProxy, EmsAbGatewayRoutingTree, EmsAbGenerationQualifier, EmsAbGroupByAttr1, EmsAbGroupByAttr2, EmsAbGroupByAttr3, EmsAbGroupByAttr4, EmsAbGroupByAttrValueDn, EmsAbGroupByAttrValueDnO, EmsAbGroupByAttrValueStr, EmsAbGwartLastModified, EmsAbHasFullReplicaNcs, EmsAbHasFullReplicaNcsO, EmsAbHasMasterNcs, EmsAbHasMasterNcsO, EmsAbHelpData16, EmsAbHelpData32, EmsAbHelpFileName, EmsAbHeuristics, EmsAbHideDlMembership, EmsAbHideFromAddressBook, EmsAbHierarchyPath, EmsAbHomeMdbBl, EmsAbHomeMdbBlO, EmsAbHomeMta, EmsAbHomeMtaO, EmsAbHomePublicServer, EmsAbHomePublicServerO, EmsAbHouseIdentifier, EmsAbHttpPubAbAttributes, EmsAbHttpPubGal, EmsAbHttpPubGalLimit, EmsAbHttpPubPf, EmsAbHttpServers, EmsAbImportContainer, EmsAbImportContainerO, EmsAbImportSensitivity, EmsAbImportedFrom, EmsAbInboundAcceptAll, EmsAbInboundDn, EmsAbInboundDnO, EmsAbInboundHost, EmsAbInboundNewsfeed, EmsAbInboundNewsfeedType, EmsAbInboundSites, EmsAbInboundSitesO, EmsAbIncomingMsgSizeLimit, EmsAbIncomingPassword, EmsAbInsadmin, EmsAbInsadminO, EmsAbInstanceType, EmsAbInternationalIsdnNumber, EmsAbInvocationId, EmsAbIsDeleted, EmsAbIsSingleValued, EmsAbKccStatus, EmsAbKmServer, EmsAbKmServerO, EmsAbKnowledgeInformation, EmsAbLabeleduri, EmsAbLanguage, EmsAbLanguageIso639, EmsAbLdapDisplayName, EmsAbLdapSearchCfg, EmsAbLineWrap, EmsAbLinkId, EmsAbListPublicFolders, EmsAbLocalBridgeHead, EmsAbLocalBridgeHeadAddress, EmsAbLocalInitialTurn, EmsAbLocalScope, EmsAbLocalScopeO, EmsAbLogFilename, EmsAbLogRolloverInterval, EmsAbMailDrop, EmsAbMaintainAutoreplyHistory, EmsAbMapiDisplayType, EmsAbMapiId, EmsAbMaximumObjectId, EmsAbMdbBackoffInterval, EmsAbMdbMsgTimeOutPeriod, EmsAbMdbOverQuotaLimit, EmsAbMdbStorageQuota, EmsAbMdbUnreadLimit, EmsAbMdbUseDefaults, EmsAbMessageTrackingEnabled, EmsAbMimeTypes, EmsAbModerated, EmsAbModerator, EmsAbMonitorClock, EmsAbMonitorServers, EmsAbMonitorServices, EmsAbMonitoredConfigurations, EmsAbMonitoredConfigurationsO, EmsAbMonitoredServers, EmsAbMonitoredServersO, EmsAbMonitoredServices, EmsAbMonitoringAlertDelay, EmsAbMonitoringAlertUnits, EmsAbMonitoringAvailabilityStyle, EmsAbMonitoringAvailabilityWindow, EmsAbMonitoringCachedViaMail, EmsAbMonitoringCachedViaMailO, EmsAbMonitoringCachedViaRpc, EmsAbMonitoringCachedViaRpcO, EmsAbMonitoringEscalationProcedure, EmsAbMonitoringHotsitePollInterval, EmsAbMonitoringHotsitePollUnits, EmsAbMonitoringMailUpdateInterval, EmsAbMonitoringMailUpdateUnits, EmsAbMonitoringNormalPollInterval, EmsAbMonitoringNormalPollUnits, EmsAbMonitoringRecipients, EmsAbMonitoringRecipientsNdr, EmsAbMonitoringRecipientsNdrO, EmsAbMonitoringRecipientsO, EmsAbMonitoringRpcUpdateInterval, EmsAbMonitoringRpcUpdateUnits, EmsAbMonitoringWarningDelay, EmsAbMonitoringWarningUnits, EmsAbMtaLocalCred, EmsAbMtaLocalDesig, EmsAbNAddress, EmsAbNAddressType, EmsAbNewsfeedType, EmsAbNewsgroup, EmsAbNewsgroupList, EmsAbNntpCharacterSet, EmsAbNntpContentFormat, EmsAbNntpDistributions, EmsAbNntpDistributionsFlag, EmsAbNntpNewsfeeds, EmsAbNntpNewsfeedsO, EmsAbNtMachineName, EmsAbNtSecurityDescriptor, EmsAbNumOfOpenRetries, EmsAbNumOfTransferRetries, EmsAbObjViewContainers, EmsAbObjViewContainersO, EmsAbObjectClassCategory, EmsAbObjectOid, EmsAbObjectVersion, EmsAbOffLineAbContainers, EmsAbOffLineAbContainersO, EmsAbOffLineAbSchedule, EmsAbOffLineAbServer, EmsAbOffLineAbServerO, EmsAbOffLineAbStyle, EmsAbOidType, EmsAbOmObjectClass, EmsAbOmSyntax, EmsAbOofReplyToOriginator, EmsAbOpenRetryInterval, EmsAbOrganizationName, EmsAbOrganizationalUnitName, EmsAbOriginalDisplayTable, EmsAbOriginalDisplayTableMsdos, EmsAbOtherRecips, EmsAbOutboundHost, EmsAbOutboundHostType, EmsAbOutboundNewsfeed, EmsAbOutboundSites, EmsAbOutboundSitesO, EmsAbOutgoingMsgSizeLimit, EmsAbOverrideNntpContentFormat, EmsAbOwaServer, EmsAbPSelector, EmsAbPSelectorInbound, EmsAbPerMsgDialogDisplayTable, EmsAbPerRecipDialogDisplayTable, EmsAbPeriodRepSyncTimes, EmsAbPeriodReplStagger, EmsAbPersonalTitle, EmsAbPfContacts, EmsAbPfContactsO, EmsAbPopCharacterSet, EmsAbPopContentFormat, EmsAbPortNumber, EmsAbPostalAddress, EmsAbPreferredDeliveryMethod, EmsAbPreserveInternetContent, EmsAbPrmd, EmsAbPromoExpiration, EmsAbProtocolSettings, EmsAbProxyGenerationEnabled, EmsAbProxyGeneratorDll, EmsAbPublicDelegatesBl, EmsAbPublicDelegatesBlO, EmsAbQuotaNotificationSchedule, EmsAbQuotaNotificationStyle, EmsAbRangeLower, EmsAbRangeUpper, EmsAbRasAccount, EmsAbRasCallbackNumber, EmsAbRasPassword, EmsAbRasPhoneNumber, EmsAbRasPhonebookEntryName, EmsAbRasRemoteSrvrName, EmsAbReferralList, EmsAbRegisteredAddress, EmsAbRemoteBridgeHead, EmsAbRemoteBridgeHeadAddress, EmsAbRemoteOutBhServer, EmsAbRemoteOutBhServerO, EmsAbRemoteSite, EmsAbRemoteSiteO, EmsAbReplicatedObjectVersion, EmsAbReplicationMailMsgSize, EmsAbReplicationSensitivity, EmsAbReplicationStagger, EmsAbReportToOriginator, EmsAbReportToOwner, EmsAbReqSeq, EmsAbRequireSsl, EmsAbResponsibleLocalDxa, EmsAbResponsibleLocalDxaO, EmsAbReturnExactMsgSize, EmsAbRidServer, EmsAbRidServerO, EmsAbRoleOccupant, EmsAbRoleOccupantO, EmsAbRootNewsgroupsFolderId, EmsAbRoutingList, EmsAbRtsCheckpointSize, EmsAbRtsRecoveryTimeout, EmsAbRtsWindowSize, EmsAbRunsOn, EmsAbRunsOnO, EmsAbSSelector, EmsAbSSelectorInbound, EmsAbSchemaFlags, EmsAbSchemaVersion, EmsAbSearchFlags, EmsAbSearchGuide, EmsAbSecurityPolicy, EmsAbSecurityProtocol, EmsAbSeeAlso, EmsAbSeeAlsoO, EmsAbSendEmailMessage, EmsAbSendTnef, EmsAbSerialNumber, EmsAbServer, EmsAbServiceActionFirst, EmsAbServiceActionOther, EmsAbServiceActionSecond, EmsAbServiceRestartDelay, EmsAbServiceRestartMessage, EmsAbSessionDisconnectTimer, EmsAbSiteAffinity, EmsAbSiteFolderGuid, EmsAbSiteFolderServer, EmsAbSiteFolderServerO, EmsAbSiteProxySpace, EmsAbSmimeAlgListNa, EmsAbSmimeAlgListOther, EmsAbSmimeAlgSelectedNa, EmsAbSmimeAlgSelectedOther, EmsAbSpaceLastComputed, EmsAbStreetAddress, EmsAbSubRefs, EmsAbSubRefsO, EmsAbSubSite, EmsAbSubmissionContLength, EmsAbSupportSmimeSignatures, EmsAbSupportedAlgorithms, EmsAbSupportedApplicationContext, EmsAbSupportingStack, EmsAbSupportingStackBl, EmsAbSupportingStackBlO, EmsAbSupportingStackO, EmsAbTSelector, EmsAbTSelectorInbound, EmsAbTargetMtas, EmsAbTelephoneNumber, EmsAbTelephonePersonalPager, EmsAbTeletexTerminalIdentifier, EmsAbTempAssocThreshold, EmsAbTombstoneLifetime, EmsAbTrackingLogPathName, EmsAbTransRetryMins, EmsAbTransTimeoutMins, EmsAbTransferRetryInterval, EmsAbTransferTimeoutNonUrgent, EmsAbTransferTimeoutNormal, EmsAbTransferTimeoutUrgent, EmsAbTranslationTableUsed, EmsAbTransportExpeditedData, EmsAbTrustLevel, EmsAbTurnRequestThreshold, EmsAbTwoWayAlternateFacility, EmsAbType, EmsAbUnauthOrigBl, EmsAbUnauthOrigBlO, EmsAbUseServerValues, EmsAbUseSiteValues, EmsAbUsenetSiteName, EmsAbUserPassword, EmsAbUsnChanged, EmsAbUsnCreated, EmsAbUsnDsaLastObjRemoved, EmsAbUsnIntersite, EmsAbUsnLastObjRem, EmsAbUsnSource, EmsAbViewContainer1, EmsAbViewContainer2, EmsAbViewContainer3, EmsAbViewDefinition, EmsAbViewFlags, EmsAbViewSite, EmsAbVoiceMailFlags, EmsAbVoiceMailGreetings, EmsAbVoiceMailPassword, EmsAbVoiceMailRecordedName, EmsAbVoiceMailRecordingLength, EmsAbVoiceMailSpeed, EmsAbVoiceMailSystemGuid, EmsAbVoiceMailUserId, EmsAbVoiceMailVolume, EmsAbWwwHomePage, EmsAbX121Address, EmsAbX25CallUserDataIncoming, EmsAbX25CallUserDataOutgoing, EmsAbX25FacilitiesDataIncoming, EmsAbX25FacilitiesDataOutgoing, EmsAbX25LeasedLinePort, EmsAbX25LeasedOrSwitched, EmsAbX25RemoteMtaPhone, EmsAbX400AttachmentType, EmsAbX400SelectorSyntax, EmsAbX500AccessControlList, EmsAbX500Nc, EmsAbX500Rdn, EmsAbXmitTimeoutNonUrgent, EmsAbXmitTimeoutNormal, EmsAbXmitTimeoutUrgent, EventsRootFolderEntryid, ExcessStorageUsed, ExtendedAclData, FastTransfer, FavoritesDefaultName, FolderChildCount, FolderDesignFlags, FolderPathname, ForeignId, ForeignReportId, ForeignSubjectId, FreeBusyForLocalSiteEntryid, GwAdminOperations, GwMtsinEntryid, GwMtsoutEntryid, HasModeratorRules, HierarchyServer, HierarchySynchronizer, ImapInternalDate, InTransit, InboundNewsfeedDn, InternetCharset, InternetNewsgroupName, IpmDafEntryid, IpmFavoritesEntryid, IpmPublicFoldersEntryid, IsNewsgroup, IsNewsgroupAnchor, LastAccessTime, LastFullBackup, LastLogoffTime, LastLogonTime, LongtermEntryidFromTable, MessageProcessed, MessageSiteName, MoveToFolderEntryid, MoveToStoreEntryid, MsgBodyId, MtsSubjectId, NewSubsGetAutoAdd, NewsfeedInfo, NewsgroupComponent, NewsgroupRootFolderEntryid, NntpArticleFolderEntryid, NntpControlFolderEntryid, NonIpmSubtreeEntryid, NormalMessageSize, NormalMessageSizeExtended, NormalMsgWAttachCount, NtUserName, OfflineAddrbookEntryid, OfflineFlags, OfflineMessageEntryid, OldestDeletedOn, OriginatorAddr, OriginatorAddrtype, OriginatorEntryid, OriginatorName, OstEncryption, OutboundNewsfeedDn, OverallAgeLimit, OverallMsgAgeLimit, OwaUrl, OwnerCount, P1Content, P1ContentType, PreventMsgCreate, Preview, PreviewUnread, ProfileAbFilesPath, ProfileAddrInfo, ProfileAllpubComment, ProfileAllpubDisplayName, ProfileBindingOrder, ProfileConfigFlags, ProfileConnectFlags, ProfileFavfldComment, ProfileFavfldDisplayName, ProfileHomeServer, ProfileHomeServerAddrs, ProfileHomeServerDn, ProfileMailbox, ProfileMaxRestrict, ProfileMoab, ProfileMoabGuid, ProfileMoabSeq, ProfileOfflineInfo, ProfileOfflineStorePath, ProfileOpenFlags, ProfileOptionsData, ProfileSecureMailbox, ProfileServer, ProfileServerDn, ProfileTransportFlags, ProfileType, ProfileUiState, ProfileUnresolvedName, ProfileUnresolvedServer, ProfileUser, ProfileVersion, PstEncryption, PstPath, PstPwSzOld, PstRememberPw, PublicFolderEntryid, PublishInAddressBook, RecipientNumber, RecipientOnAssocMsgCount, RecipientOnNormalMsgCount, ReplicaList, ReplicaServer, ReplicaVersion, ReplicationAlwaysInterval, ReplicationMessagePriority, ReplicationMsgSize, ReplicationSchedule, ReplicationStyle, ReplyRecipientSmtpProxies, ReportDestinationEntryid, ReportDestinationName, RestrictionCount, RetentionAgeLimit, RuleTriggerHistory, RulesData, RulesTable, ScheduleFolderEntryid, SecureInSite, SecureOrigination, StorageLimitInformation, StorageQuotaLimit, StoreOffline, StoreSlowlink, SubjectTraceInfo, SvrGeneratingQuotaMsg, SynchronizeFlags, SysConfigFolderEntryid, TestLineSpeed, TraceInfo, TransferEnabled, UserName, X400EnvelopeType, AbDefaultDir, AbDefaultPab, AbProviderId, AbProviders, AbSearchPath, AbSearchPathUpdate, AlternateRecipient, AssocContentCount, AttachmentX400Parameters, AuthorizingUsers, BodyCrc, CommonViewsEntryid, ContactAddrtypes, ContactDefaultAddressIndex, ContactEmailAddresses, ContactEntryids, ContactVersion, ContainerModifyVersion, ContentConfidentialityAlgorithmId, ContentCorrelator, ContentIdentifier, ContentIntegrityCheck, ContentLength, ContentReturnRequested, ContentsSortOrder, ControlFlags, ControlId, ControlStructure, ControlType, ConversationKey, ConversionEits, ConversionProhibited, ConversionWithLossProhibited, ConvertedEits, Correlate, CorrelateMtsid, CreateTemplates, CreationVersion, ExCurrentVersion, DefCreateDl, DefCreateMailuser, DefaultProfile, DefaultStore, DefaultViewEntryid, Delegation, DeliveryPoint, Deltax, Deltay, DetailsTable, DiscVal, DiscardReason, DiscloseRecipients, DisclosureOfRecipients, DiscreteValues, DlExpansionHistory, DlExpansionProhibited, ExplicitConversion, FilteringHooks, FinderEntryid, FormCategory, FormCategorySub, FormClsid, FormContactName, FormDesignerGuid, FormDesignerName, FormHidden, FormHostMap, FormMessageBehavior, FormVersion, HeaderFolderEntryid, Icon, IdentityDisplay, IdentityEntryid, IdentitySearchKey, ImplicitConversionProhibited, IncompleteCopy, InternetApproved, InternetArticleNumber, InternetControl, InternetDistribution, InternetFollowupTo, InternetLines, InternetNewsgroups, InternetNntpPath, InternetOrganization, InternetPrecedence, IpmId, IpmOutboxEntryid, IpmOutboxSearchKey, IpmReturnRequested, IpmSentmailEntryid, IpmSentmailSearchKey, IpmSubtreeEntryid, IpmSubtreeSearchKey, IpmWastebasketEntryid, IpmWastebasketSearchKey, Languages, LatestDeliveryTime, MailPermission, MdbProvider, MessageDeliveryId, MessageDownloadTime, MessageSecurityLabel, MessageToken, MiniIcon, ModifyVersion, NewsgroupName, NntpXref, NonReceiptReason, ObsoletedIpms, OriginCheck, OriginalAuthorAddrtype, OriginalAuthorEmailAddress, OriginalAuthorSearchKey, OriginalDisplayName, OriginalEits, OriginalSearchKey, OriginallyIntendedRecipAddrtype, OriginallyIntendedRecipEmailAddress, OriginallyIntendedRecipEntryid, OriginallyIntendedRecipientName, OriginatingMtaCertificate, OriginatorAndDlExpansionHistory, OriginatorCertificate, OriginatorRequestedAlternateRecipient, OriginatorReturnAddress, OwnStoreEntryid, ParentDisplay, PhysicalDeliveryBureauFaxDelivery, PhysicalDeliveryMode, PhysicalDeliveryReportRequest, PhysicalForwardingAddress, PhysicalForwardingAddressRequested, PhysicalForwardingProhibited, PhysicalRenditionAttributes, PostFolderEntries, PostFolderNames, PostReplyDenied, PostReplyFolderEntries, PostReplyFolderNames, Preprocess, PrimaryCapability, ProfileName, ProofOfDelivery, ProofOfDeliveryRequested, ProofOfSubmission, ProofOfSubmissionRequested, ProviderDisplay, ProviderDllName, ProviderOrdinal, ProviderSubmitTime, ProviderUid, ReceiveFolderSettings, RecipientCertificate, RecipientNumberForAdvice, RecipientStatus, RedirectionHistory, RegisteredMailType, RelatedIpms, RemoteProgress, RemoteProgressText, RemoteValidateOk, ReportingDlName, ReportingMtaCertificate, RequestedDeliveryMethod, ResourceFlags, ResourceMethods, ResourcePath, ResourceType, ReturnedIpm, RtfSyncBodyCount, RtfSyncBodyCrc, RtfSyncBodyTag, RtfSyncPrefixCount, RtfSyncTrailingCount, Search, ExSecurity, SentmailEntryid, ServiceDeleteFiles, ServiceDllName, ServiceEntryName, ServiceExtraUids, ServiceName, ServiceSupportFiles, ServiceUid, Services, SpoolerStatus, Status, StatusCode, StatusString, StoreProviders, StoreRecordKey, SubjectIpm, SubmitFlags, Supersedes, TransportKey, TransportProviders, TransportStatus, TypeOfMtsUser, ValidFolderMask, ViewsEntryid, X400ContentType, X400DeferredDeliveryCancel, Xpos, Ypos | [optional] +**name** | **str** | Known property name. See all known properties here: https://apireference.aspose.com/email/net/aspose.email.mapi/knownpropertylist/fields/index Possible values: Mileage, ObjectUri, GDataContactVersion, GDataPhotoVersion, AddressBookProviderArrayType, AddressBookProviderEmailList, AddressCountryCode, AgingDontAgeMe, AllAttendeesString, AllowExternalCheck, AnniversaryEventEntryId, AppointmentAuxiliaryFlags, AppointmentColor, AppointmentCounterProposal, AppointmentDuration, AppointmentEndDate, AppointmentEndTime, AppointmentEndWhole, AppointmentLastSequence, AppointmentMessageClass, AppointmentNotAllowPropose, AppointmentProposalNumber, AppointmentProposedDuration, AppointmentProposedEndWhole, AppointmentProposedStartWhole, AppointmentRecur, AppointmentReplyName, AppointmentReplyTime, AppointmentSequence, AppointmentSequenceTime, AppointmentStartDate, AppointmentStartTime, AppointmentStartWhole, AppointmentStateFlags, AppointmentSubType, AppointmentTimeZoneDefinitionEndDisplay, AppointmentTimeZoneDefinitionRecur, AppointmentTimeZoneDefinitionStartDisplay, AppointmentUnsendableRecipients, AppointmentUpdateTime, AttendeeCriticalChange, AutoFillLocation, AutoLog, AutoProcessState, AutoStartCheck, Billing, BirthdayEventEntryId, BirthdayLocal, BusinessCardCardPicture, BusinessCardDisplayDefinition, BusyStatus, CalendarType, Categories, CcAttendeesString, ChangeHighlight, Classification, ClassificationDescription, ClassificationGuid, ClassificationKeep, Classified, CleanGlobalObjectId, ClientIntent, ClipEnd, ClipStart, CollaborateDoc, CommonEnd, CommonStart, Companies, ConferencingCheck, ConferencingType, ContactCharacterSet, ContactItemData, ContactLinkedGlobalAddressListEntryId, ContactLinkEntry, ContactLinkGlobalAddressListLinkId, ContactLinkGlobalAddressListLinkState, ContactLinkLinkRejectHistory, ContactLinkName, ContactLinkSearchKey, ContactLinkSMTPAddressCache, Contacts, ContactUserField1, ContactUserField2, ContactUserField3, ContactUserField4, ConversationActionLastAppliedTime, ConversationActionMaxDeliveryTime, ConversationActionMoveFolderEid, ConversationActionMoveStoreEid, ConversationActionVersion, ConversationProcessed, CurrentVersion, CurrentVersionName, DayInterval, DayOfMonth, DelegateMail, Department, Directory, DistributionListChecksum, DistributionListMembers, DistributionListName, DistributionListOneOffMembers, DistributionListStream, Email1AddressType, Email1DisplayName, Email1EmailAddress, Email1OriginalDisplayName, Email1OriginalEntryId, Email2AddressType, Email2DisplayName, Email2EmailAddress, Email2OriginalDisplayName, Email2OriginalEntryId, Email3AddressType, Email3DisplayName, Email3EmailAddress, Email3OriginalDisplayName, Email3OriginalEntryId, EndRecurrenceDate, EndRecurrenceTime, ExceptionReplaceTime, Fax1AddressType, Fax1EmailAddress, Fax1OriginalDisplayName, Fax1OriginalEntryId, Fax2AddressType, Fax2EmailAddress, Fax2OriginalDisplayName, Fax2OriginalEntryId, Fax3AddressType, Fax3EmailAddress, Fax3OriginalDisplayName, Fax3OriginalEntryId, FExceptionalAttendees, FExceptionalBody, FileUnder, FileUnderId, FileUnderList, FInvited, FlagRequest, FlagString, ForwardInstance, ForwardNotificationRecipients, FOthersAppointment, FreeBusyLocation, GlobalObjectId, HasPicture, HomeAddress, HomeAddressCountryCode, Html, ICalendarDayOfWeekMask, InboundICalStream, InfoPathFormName, InstantMessagingAddress, IntendedBusyStatus, InternetAccountName, InternetAccountStamp, IsContactLinked, IsException, IsRecurring, IsSilent, LinkedTaskItems, Location, LogDocumentPosted, LogDocumentPrinted, LogDocumentRouted, LogDocumentSaved, LogDuration, LogEnd, LogFlags, LogStart, LogType, LogTypeDesc, MeetingType, MeetingWorkspaceUrl, MonthInterval, MonthOfYear, MonthOfYearMask, NetShowUrl, NoEndDateFlag, NonSendableBcc, NonSendableCc, NonSendableTo, NonSendBccTrackStatus, NonSendCcTrackStatus, NonSendToTrackStatus, NoteColor, NoteHeight, NoteWidth, NoteX, NoteY, Occurrences, OldLocation, OldRecurrenceType, OldWhenEndWhole, OldWhenStartWhole, OnlinePassword, OptionalAttendees, OrganizerAlias, OriginalStoreEntryId, OtherAddress, OtherAddressCountryCode, OwnerCriticalChange, OwnerName, PendingStateForSiteMailboxDocument, PercentComplete, PostalAddressId, PostRssChannel, PostRssChannelLink, PostRssItemGuid, PostRssItemHash, PostRssItemLink, PostRssItemXml, PostRssSubscription, Private, PromptSendUpdate, RecurrenceDuration, RecurrencePattern, RecurrenceType, Recurring, ReferenceEntryId, ReminderDelta, ReminderFileParameter, ReminderOverride, ReminderPlaySound, ReminderSet, ReminderSignalTime, ReminderTime, ReminderTimeDate, ReminderTimeTime, ReminderType, RemoteStatus, RequiredAttendees, ResourceAttendees, ResponseStatus, ServerProcessed, ServerProcessingActions, SharingAnonymity, SharingBindingEntryId, SharingBrowseUrl, SharingCapabilities, SharingConfigurationUrl, SharingDataRangeEnd, SharingDataRangeStart, SharingDetail, SharingExtensionXml, SharingFilter, SharingFlags, SharingFlavor, SharingFolderEntryId, SharingIndexEntryId, SharingInitiatorEntryId, SharingInitiatorName, SharingInitiatorSmtp, SharingInstanceGuid, SharingLastAutoSyncTime, SharingLastSyncTime, SharingLocalComment, SharingLocalLastModificationTime, SharingLocalName, SharingLocalPath, SharingLocalStoreUid, SharingLocalType, SharingLocalUid, SharingOriginalMessageEntryId, SharingParentBindingEntryId, SharingParticipants, SharingPermissions, SharingProviderExtension, SharingProviderGuid, SharingProviderName, SharingProviderUrl, SharingRangeEnd, SharingRangeStart, SharingReciprocation, SharingRemoteByteSize, SharingRemoteComment, SharingRemoteCrc, SharingRemoteLastModificationTime, SharingRemoteMessageCount, SharingRemoteName, SharingRemotePass, SharingRemotePath, SharingRemoteStoreUid, SharingRemoteType, SharingRemoteUid, SharingRemoteUser, SharingRemoteVersion, SharingResponseTime, SharingResponseType, SharingRoamLog, SharingStart, SharingStatus, SharingStop, SharingSyncFlags, SharingSyncInterval, SharingTimeToLive, SharingTimeToLiveAuto, SharingWorkingHoursDays, SharingWorkingHoursEnd, SharingWorkingHoursStart, SharingWorkingHoursTimeZone, SideEffects, SingleBodyICal, SmartNoAttach, SpamOriginalFolder, StartRecurrenceDate, StartRecurrenceTime, TaskAcceptanceState, TaskAccepted, TaskActualEffort, TaskAssigner, TaskAssigners, TaskComplete, TaskCustomFlags, TaskDateCompleted, TaskDeadOccurrence, TaskDueDate, TaskEstimatedEffort, TaskFCreator, TaskFFixOffline, TaskFRecurring, TaskGlobalId, TaskHistory, TaskLastDelegate, TaskLastUpdate, TaskLastUser, TaskMode, TaskMultipleRecipients, TaskNoCompute, TaskOrdinal, TaskOwner, TaskOwnership, TaskRecurrence, TaskResetReminder, TaskRole, TaskStartDate, TaskState, TaskStatus, TaskStatusOnComplete, TaskUpdates, TaskVersion, TeamTask, TimeZone, TimeZoneDescription, TimeZoneStruct, ToAttendeesString, ToDoOrdinalDate, ToDoSubOrdinal, ToDoTitle, UseTnef, ValidFlagStringProof, VerbResponse, VerbStream, WeddingAnniversaryLocal, WeekInterval, Where, WorkAddress, WorkAddressCity, WorkAddressCountry, WorkAddressCountryCode, WorkAddressPostalCode, WorkAddressPostOfficeBox, WorkAddressState, WorkAddressStreet, YearInterval, YomiCompanyName, YomiFirstName, YomiLastName, AcceptLanguage, ApplicationName, AttachmentMacContentType, AttachmentMacInfo, AudioNotes, Author, AutomaticSpeechRecognitionData, ByteCount, CalendarAttendeeRole, CalendarBusystatus, CalendarContact, CalendarContactUrl, CalendarCreated, CalendarDescriptionUrl, CalendarDuration, CalendarExceptionDate, CalendarExceptionRule, CalendarGeoLatitude, CalendarGeoLongitude, CalendarInstanceType, CalendarIsOrganizer, CalendarLastModified, CalendarLocationUrl, CalendarMeetingStatus, CalendarMethod, CalendarProductId, CalendarRecurrenceIdRange, CalendarReminderOffset, CalendarResources, CalendarRsvp, CalendarSequence, CalendarTimeZone, CalendarTimeZoneId, CalendarTransparent, CalendarUid, CalendarVersion, Category, CharacterCount, Comments, Company, ContentBase, ContentClass, ContentType, CreateDateTimeReadOnly, CrossReference, DavId, DavIsCollection, DavIsStructuredDocument, DavParentName, DavUid, DocumentParts, EditTime, ExchangeIntendedBusyStatus, ExchangeJunkEmailMoveStamp, ExchangeModifyExceptionStructure, ExchangeNoModifyExceptions, ExchangePatternEnd, ExchangePatternStart, ExchangeReminderInterval, ExchDatabaseSchema, ExchDataExpectedContentClass, ExchDataSchemaCollectionReference, ExtractedAddresses, ExtractedContacts, ExtractedEmails, ExtractedMeetings, ExtractedPhones, ExtractedTasks, ExtractedUrls, From, HeadingPairs, HiddenCount, HttpmailCalendar, HttpmailHtmlDescription, HttpmailSendMessage, ICalendarRecurrenceDate, ICalendarRecurrenceRule, InternetSubject, Keywords, LastAuthor, LastPrinted, LastSaveDateTime, LineCount, LinksDirty, LocationUrl, Manager, MultimediaClipCount, NoteCount, OMSAccountGuid, OMSMobileModel, OMSScheduleTime, OMSServiceType, OMSSourceType, PageCount, ParagraphCount, PhishingStamp, PresentationFormat, QuarantineOriginalSender, RevisionNumber, RightsManagementLicense, Scale, Security, SlideCount, Subject, Template, Thumbnail, Title, WordCount, XCallId, XFaxNumberOfPages, XRequireProtectedPlayOnPhone, XSenderTelephoneNumber, XSharingBrowseUrl, XSharingCapabilities, XSharingConfigUrl, XSharingExendedCaps, XSharingFlavor, XSharingInstanceGuid, XSharingLocalType, XSharingProviderGuid, XSharingProviderName, XSharingProviderUrl, XSharingRemoteName, XSharingRemotePath, XSharingRemoteStoreUid, XSharingRemoteType, XSharingRemoteUid, XVoiceMessageAttachmentOrder, XVoiceMessageDuration, XVoiceMessageSenderName, Access, AccessControlListData, AccessLevel, Account, AdditionalRenEntryIds, AdditionalRenEntryIdsEx, AddressBookAuthorizedSenders, AddressBookContainerId, AddressBookDeliveryContentLength, AddressBookDisplayNamePrintable, AddressBookDisplayTypeExtended, AddressBookDistributionListExternalMemberCount, AddressBookDistributionListMemberCount, AddressBookDistributionListMemberSubmitAccepted, AddressBookDistributionListMemberSubmitRejected, AddressBookDistributionListRejectMessagesFromDLMembers, AddressBookEntryId, AddressBookExtensionAttribute1, AddressBookExtensionAttribute10, AddressBookExtensionAttribute11, AddressBookExtensionAttribute12, AddressBookExtensionAttribute13, AddressBookExtensionAttribute14, AddressBookExtensionAttribute15, AddressBookExtensionAttribute2, AddressBookExtensionAttribute3, AddressBookExtensionAttribute4, AddressBookExtensionAttribute5, AddressBookExtensionAttribute6, AddressBookExtensionAttribute7, AddressBookExtensionAttribute8, AddressBookExtensionAttribute9, AddressBookFolderPathname, AddressBookHierarchicalChildDepartments, AddressBookHierarchicalDepartmentMembers, AddressBookHierarchicalIsHierarchicalGroup, AddressBookHierarchicalParentDepartment, AddressBookHierarchicalRootDepartment, AddressBookHierarchicalShowInDepartments, AddressBookHomeMessageDatabase, AddressBookIsMaster, AddressBookIsMemberOfDistributionList, AddressBookManageDistributionList, AddressBookManager, AddressBookManagerDistinguishedName, AddressBookMember, AddressBookMessageId, AddressBookModerationEnabled, AddressBookNetworkAddress, AddressBookObjectDistinguishedName, AddressBookObjectGuid, AddressBookOrganizationalUnitRootDistinguishedName, AddressBookOwner, AddressBookOwnerBackLink, AddressBookParentEntryId, AddressBookPhoneticCompanyName, AddressBookPhoneticDepartmentName, AddressBookPhoneticDisplayName, AddressBookPhoneticGivenName, AddressBookPhoneticSurname, AddressBookProxyAddresses, AddressBookPublicDelegates, AddressBookReports, AddressBookRoomCapacity, AddressBookRoomContainers, AddressBookRoomDescription, AddressBookSenderHintTranslations, AddressBookSeniorityIndex, AddressBookTargetAddress, AddressBookUnauthorizedSenders, AddressBookX509Certificate, AddressType, AlternateRecipientAllowed, Anr, ArchiveDate, ArchivePeriod, ArchiveTag, Assistant, AssistantTelephoneNumber, Associated, AttachAdditionalInformation, AttachContentBase, AttachContentId, AttachContentLocation, AttachDataBinary, AttachDataObject, AttachEncoding, AttachExtension, AttachFilename, AttachFlags, AttachLongFilename, AttachLongPathname, AttachmentContactPhoto, AttachmentFlags, AttachmentHidden, AttachmentLinkId, AttachMethod, AttachMimeTag, AttachNumber, AttachPathname, AttachPayloadClass, AttachPayloadProviderGuidString, AttachRendering, AttachSize, AttachTag, AttachTransportName, AttributeHidden, AttributeReadOnly, AutoForwardComment, AutoForwarded, AutoResponseSuppress, Birthday, BlockStatus, Body, BodyContentId, BodyContentLocation, BodyHtml, Business2TelephoneNumber, Business2TelephoneNumbers, BusinessFaxNumber, BusinessHomePage, BusinessTelephoneNumber, CallbackTelephoneNumber, CallId, CarTelephoneNumber, CdoRecurrenceid, ChangeKey, ChangeNumber, ChildrensNames, ClientActions, ClientSubmitTime, CodePageId, Comment, CompanyMainTelephoneNumber, CompanyName, ComputerNetworkName, ConflictEntryId, ContainerClass, ContainerContents, ContainerFlags, ContainerHierarchy, ContentCount, ContentFilterSpamConfidenceLevel, ContentUnreadCount, ConversationId, ConversationIndex, ConversationIndexTracking, ConversationTopic, Country, CreationTime, CreatorEntryId, CreatorName, CustomerId, DamBackPatched, DamOriginalEntryId, DefaultPostMessageClass, DeferredActionMessageOriginalEntryId, DeferredDeliveryTime, DeferredSendNumber, DeferredSendTime, DeferredSendUnits, DelegatedByRule, DelegateFlags, DeleteAfterSubmit, DeletedCountTotal, DeletedOn, DeliverTime, DepartmentName, Depth, DisplayBcc, DisplayCc, DisplayName, DisplayNamePrefix, DisplayTo, DisplayType, DisplayTypeEx, EmailAddress, EndDate, EntryId, ExceptionEndTime, TagExceptionReplaceTime, ExceptionStartTime, ExchangeNTSecurityDescriptor, ExpiryNumber, ExpiryTime, ExpiryUnits, ExtendedFolderFlags, ExtendedRuleMessageActions, ExtendedRuleMessageCondition, ExtendedRuleSizeLimit, FaxNumberOfPages, FlagCompleteTime, FlagStatus, FlatUrlName, FolderAssociatedContents, FolderId, FolderFlags, FolderType, FollowupIcon, FreeBusyCountMonths, FreeBusyEntryIds, FreeBusyMessageEmailAddress, FreeBusyPublishEnd, FreeBusyPublishStart, FreeBusyRangeTimestamp, FtpSite, GatewayNeedsToRefresh, Gender, Generation, GivenName, GovernmentIdNumber, HasAttachments, HasDeferredActionMessages, HasNamedProperties, HasRules, HierarchyChangeNumber, HierRev, Hobbies, Home2TelephoneNumber, Home2TelephoneNumbers, HomeAddressCity, HomeAddressCountry, HomeAddressPostalCode, HomeAddressPostOfficeBox, HomeAddressStateOrProvince, HomeAddressStreet, HomeFaxNumber, HomeTelephoneNumber, TagHtml, ICalendarEndTime, ICalendarReminderNextTime, ICalendarStartTime, IconIndex, Importance, InConflict, InitialDetailsPane, Initials, InReplyToId, InstanceKey, InstanceNum, InstID, InternetCodepage, InternetMailOverrideFormat, InternetMessageId, InternetReferences, IpmAppointmentEntryId, IpmContactEntryId, IpmDraftsEntryId, IpmJournalEntryId, IpmNoteEntryId, IpmTaskEntryId, IsdnNumber, JunkAddRecipientsToSafeSendersList, JunkIncludeContacts, JunkPermanentlyDelete, JunkPhishingEnableLinks, JunkThreshold, Keyword, Language, LastModificationTime, LastModifierEntryId, LastModifierName, LastVerbExecuted, LastVerbExecutionTime, ListHelp, ListSubscribe, ListUnsubscribe, LocalCommitTime, LocalCommitTimeMax, LocaleId, Locality, TagLocation, MailboxOwnerEntryId, MailboxOwnerName, ManagerName, MappingSignature, MaximumSubmitMessageSize, MemberId, MemberName, MemberRights, MessageAttachments, MessageCcMe, MessageClass, MessageCodepage, MessageDeliveryTime, MessageEditorFormat, MessageFlags, MessageHandlingSystemCommonName, MessageLocaleId, MessageRecipientMe, MessageRecipients, MessageSize, MessageSizeExtended, MessageStatus, MessageSubmissionId, MessageToMe, Mid, MiddleName, MimeSkeleton, MobileTelephoneNumber, NativeBody, NextSendAcct, Nickname, NonDeliveryReportDiagCode, NonDeliveryReportReasonCode, NonDeliveryReportStatusCode, NonReceiptNotificationRequested, NormalizedSubject, ObjectType, OfficeLocation, OfflineAddressBookContainerGuid, OfflineAddressBookDistinguishedName, OfflineAddressBookMessageClass, OfflineAddressBookName, OfflineAddressBookSequence, OfflineAddressBookTruncatedProperties, OrdinalMost, OrganizationalIdNumber, OriginalAuthorEntryId, OriginalAuthorName, OriginalDeliveryTime, OriginalDisplayBcc, OriginalDisplayCc, OriginalDisplayTo, OriginalEntryId, OriginalMessageClass, OriginalMessageId, OriginalSenderAddressType, OriginalSenderEmailAddress, OriginalSenderEntryId, OriginalSenderName, OriginalSenderSearchKey, OriginalSensitivity, OriginalSentRepresentingAddressType, OriginalSentRepresentingEmailAddress, OriginalSentRepresentingEntryId, OriginalSentRepresentingName, OriginalSentRepresentingSearchKey, OriginalSubject, OriginalSubmitTime, OriginatorDeliveryReportRequested, OriginatorNonDeliveryReportRequested, OscSyncEnabled, OtherAddressCity, OtherAddressCountry, OtherAddressPostalCode, OtherAddressPostOfficeBox, OtherAddressStateOrProvince, OtherAddressStreet, OtherTelephoneNumber, OutOfOfficeState, OwnerAppointmentId, PagerTelephoneNumber, ParentEntryId, ParentFolderId, ParentKey, ParentSourceKey, PersonalHomePage, PolicyTag, PostalAddress, PostalCode, PostOfficeBox, PredecessorChangeList, PrimaryFaxNumber, PrimarySendAccount, PrimaryTelephoneNumber, Priority, Processed, Profession, ProhibitReceiveQuota, ProhibitSendQuota, PurportedSenderDomain, RadioTelephoneNumber, Read, ReadReceiptAddressType, ReadReceiptEmailAddress, ReadReceiptEntryId, ReadReceiptName, ReadReceiptRequested, ReadReceiptSearchKey, ReadReceiptSmtpAddress, ReceiptTime, ReceivedByAddressType, ReceivedByEmailAddress, ReceivedByEntryId, ReceivedByName, ReceivedBySearchKey, ReceivedBySmtpAddress, ReceivedRepresentingAddressType, ReceivedRepresentingEmailAddress, ReceivedRepresentingEntryId, ReceivedRepresentingName, ReceivedRepresentingSearchKey, ReceivedRepresentingSmtpAddress, RecipientDisplayName, RecipientEntryId, RecipientFlags, RecipientOrder, RecipientProposed, RecipientProposedEndTime, RecipientProposedStartTime, RecipientReassignmentProhibited, RecipientTrackStatus, RecipientTrackStatusTime, RecipientType, RecordKey, ReferredByName, RemindersOnlineEntryId, RemoteMessageTransferAgent, RenderingPosition, ReplyRecipientEntries, ReplyRecipientNames, ReplyRequested, ReplyTemplateId, ReplyTime, ReportDisposition, ReportDispositionMode, ReportEntryId, ReportingMessageTransferAgent, ReportName, ReportSearchKey, ReportTag, ReportText, ReportTime, ResolveMethod, ResponseRequested, Responsibility, RetentionDate, RetentionFlags, RetentionPeriod, Rights, RoamingDatatypes, RoamingDictionary, RoamingXmlStream, Rowid, RowType, RtfCompressed, RtfInSync, RuleActionNumber, RuleActions, RuleActionType, RuleCondition, RuleError, RuleFolderEntryId, RuleId, RuleIds, RuleLevel, RuleMessageLevel, RuleMessageName, RuleMessageProvider, RuleMessageProviderData, RuleMessageSequence, RuleMessageState, RuleMessageUserFlags, RuleName, RuleProvider, RuleProviderData, RuleSequence, RuleState, RuleUserFlags, RwRulesStream, ScheduleInfoAppointmentTombstone, ScheduleInfoAutoAcceptAppointments, ScheduleInfoDelegateEntryIds, ScheduleInfoDelegateNames, ScheduleInfoDelegateNamesW, ScheduleInfoDelegatorWantsCopy, ScheduleInfoDelegatorWantsInfo, ScheduleInfoDisallowOverlappingAppts, ScheduleInfoDisallowRecurringAppts, ScheduleInfoDontMailDelegates, ScheduleInfoFreeBusy, ScheduleInfoFreeBusyAway, ScheduleInfoFreeBusyBusy, ScheduleInfoFreeBusyMerged, ScheduleInfoFreeBusyTentative, ScheduleInfoMonthsAway, ScheduleInfoMonthsBusy, ScheduleInfoMonthsMerged, ScheduleInfoMonthsTentative, ScheduleInfoResourceType, SchedulePlusFreeBusyEntryId, ScriptData, SearchFolderDefinition, SearchFolderEfpFlags, SearchFolderExpiration, SearchFolderId, SearchFolderLastUsed, SearchFolderRecreateInfo, SearchFolderStorageType, SearchFolderTag, SearchFolderTemplateId, SearchKey, SecurityDescriptorAsXml, Selectable, SenderAddressType, SenderEmailAddress, SenderEntryId, SenderIdStatus, SenderName, SenderSearchKey, SenderSmtpAddress, SenderTelephoneNumber, SendInternetEncoding, SendRichInfo, Sensitivity, SentMailSvrEID, SentRepresentingAddressType, SentRepresentingEmailAddress, SentRepresentingEntryId, SentRepresentingFlags, SentRepresentingName, SentRepresentingSearchKey, SentRepresentingSmtpAddress, SmtpAddress, SortLocaleId, SourceKey, SpokenName, SpouseName, StartDate, StartDateEtc, StateOrProvince, StoreEntryId, StoreState, StoreSupportMask, StreetAddress, Subfolders, TagSubject, SubjectPrefix, SupplementaryInfo, Surname, SwappedToDoData, SwappedToDoStore, TargetEntryId, TelecommunicationsDeviceForDeafTelephoneNumber, TelexNumber, TemplateData, Templateid, TextAttachmentCharset, ThumbnailPhoto, TagTitle, TnefCorrelationKey, ToDoItemFlags, TransmittableDisplayName, TransportMessageHeaders, TrustSender, UserCertificate, UserEntryId, UserX509Certificate, ViewDescriptorBinary, ViewDescriptorName, ViewDescriptorStrings, ViewDescriptorVersion, VoiceMessageAttachmentOrder, VoiceMessageDuration, VoiceMessageSenderName, WeddingAnniversary, WlinkAddressBookEID, WlinkAddressBookStoreEID, WlinkCalendarColor, WlinkClientID, WlinkEntryId, WlinkFlags, WlinkFolderType, WlinkGroupClsid, WlinkGroupHeaderID, WlinkGroupName, WlinkOrdinal, WlinkRecordKey, WlinkROGroupType, WlinkSaveStamp, WlinkSection, WlinkStoreEntryId, WlinkType, Abstract, ActiveUserEntryid, AddrbookForLocalSiteEntryid, AddressBookDisplayName, ArrivalTime, AssocMessageSize, AssocMessageSizeExtended, AssocMsgWAttachCount, AttachOnAssocMsgCount, AttachOnNormalMsgCount, AutoAddNewSubs, BilateralInfo, CachedColumnCount, CategCount, ChangeAdvisor, ChangeNotificationGuid, Collector, ContactCount, ContentSearchKey, ContentsSynchronizer, DeletedAssocMessageSizeExtended, DeletedAssocMsgCount, DeletedFolderCount, DeletedMessageSizeExtended, DeletedMsgCount, DeletedNormalMessageSizeExtended, DesignInProgress, DisableFullFidelity, DisableWinsock, DlReportFlags, EformsForLocaleEntryid, EformsLocaleId, EformsRegistryEntryid, EmsAbAccessCategory, EmsAbActivationSchedule, EmsAbActivationStyle, EmsAbAddressEntryDisplayTable, EmsAbAddressEntryDisplayTableMsdos, EmsAbAddressSyntax, EmsAbAddressType, EmsAbAdmd, EmsAbAdminDescription, EmsAbAdminDisplayName, EmsAbAdminExtensionDll, EmsAbAliasedObjectName, EmsAbAliasedObjectNameO, EmsAbAltRecipient, EmsAbAltRecipientBl, EmsAbAltRecipientBlO, EmsAbAltRecipientO, EmsAbAncestorId, EmsAbAnonymousAccess, EmsAbAnonymousAccount, EmsAbAssocNtAccount, EmsAbAssocProtocolCfgNntp, EmsAbAssocProtocolCfgNntpO, EmsAbAssocRemoteDxa, EmsAbAssocRemoteDxaO, EmsAbAssociationLifetime, EmsAbAttributeCertificate, EmsAbAuthOrigBl, EmsAbAuthOrigBlO, EmsAbAuthenticationToUse, EmsAbAuthorityRevocationList, EmsAbAuthorizedDomain, EmsAbAuthorizedPassword, EmsAbAuthorizedPasswordConfirm, EmsAbAuthorizedUser, EmsAbAutoreply, EmsAbAutoreplyMessage, EmsAbAutoreplySubject, EmsAbAvailableAuthorizationPackages, EmsAbAvailableDistributions, EmsAbBridgeheadServers, EmsAbBridgeheadServersO, EmsAbBusinessCategory, EmsAbBusinessRoles, EmsAbCaCertificate, EmsAbCanCreatePf, EmsAbCanCreatePfBl, EmsAbCanCreatePfBlO, EmsAbCanCreatePfDl, EmsAbCanCreatePfDlBl, EmsAbCanCreatePfDlBlO, EmsAbCanCreatePfDlO, EmsAbCanCreatePfO, EmsAbCanNotCreatePf, EmsAbCanNotCreatePfBl, EmsAbCanNotCreatePfBlO, EmsAbCanNotCreatePfDl, EmsAbCanNotCreatePfDlBl, EmsAbCanNotCreatePfDlBlO, EmsAbCanNotCreatePfDlO, EmsAbCanNotCreatePfO, EmsAbCanPreserveDns, EmsAbCertificateChainV3, EmsAbCertificateRevocationList, EmsAbCertificateRevocationListV1, EmsAbCertificateRevocationListV3, EmsAbCharacterSet, EmsAbCharacterSetList, EmsAbChildRdns, EmsAbClientAccessEnabled, EmsAbClockAlertOffset, EmsAbClockAlertRepair, EmsAbClockWarningOffset, EmsAbClockWarningRepair, EmsAbCompromisedKeyList, EmsAbComputerName, EmsAbConnectedDomains, EmsAbConnectionListFilter, EmsAbConnectionListFilterType, EmsAbConnectionType, EmsAbContainerInfo, EmsAbContentType, EmsAbControlMsgFolderId, EmsAbControlMsgRules, EmsAbCost, EmsAbCountryName, EmsAbCrossCertificateCrl, EmsAbCrossCertificatePair, EmsAbDefaultMessageFormat, EmsAbDelegateUser, EmsAbDelivEits, EmsAbDelivExtContTypes, EmsAbDeliverAndRedirect, EmsAbDeliveryMechanism, EmsAbDeltaRevocationList, EmsAbDescription, EmsAbDestinationIndicator, EmsAbDiagnosticRegKey, EmsAbDisableDeferredCommit, EmsAbDisabledGatewayProxy, EmsAbDisplayNameOverride, EmsAbDisplayNameSuffix, EmsAbDlMemRejectPermsBl, EmsAbDlMemRejectPermsBlO, EmsAbDlMemberRule, EmsAbDmdName, EmsAbDoOabVersion, EmsAbDomainDefAltRecip, EmsAbDomainDefAltRecipO, EmsAbDomainName, EmsAbDsaSignature, EmsAbDxaAdminCopy, EmsAbDxaAdminForward, EmsAbDxaAdminUpdate, EmsAbDxaAppendReqcn, EmsAbDxaConfContainerList, EmsAbDxaConfContainerListO, EmsAbDxaConfReqTime, EmsAbDxaConfSeq, EmsAbDxaConfSeqUsn, EmsAbDxaExchangeOptions, EmsAbDxaExportNow, EmsAbDxaFlags, EmsAbDxaImpSeq, EmsAbDxaImpSeqTime, EmsAbDxaImpSeqUsn, EmsAbDxaImportNow, EmsAbDxaInTemplateMap, EmsAbDxaLocalAdmin, EmsAbDxaLocalAdminO, EmsAbDxaLoggingLevel, EmsAbDxaNativeAddressType, EmsAbDxaOutTemplateMap, EmsAbDxaPassword, EmsAbDxaPrevExchangeOptions, EmsAbDxaPrevExportNativeOnly, EmsAbDxaPrevInExchangeSensitivity, EmsAbDxaPrevRemoteEntries, EmsAbDxaPrevRemoteEntriesO, EmsAbDxaPrevReplicationSensitivity, EmsAbDxaPrevTemplateOptions, EmsAbDxaPrevTypes, EmsAbDxaRecipientCp, EmsAbDxaRemoteClient, EmsAbDxaRemoteClientO, EmsAbDxaReqSeq, EmsAbDxaReqSeqTime, EmsAbDxaReqSeqUsn, EmsAbDxaReqname, EmsAbDxaSvrSeq, EmsAbDxaSvrSeqTime, EmsAbDxaSvrSeqUsn, EmsAbDxaTask, EmsAbDxaTemplateOptions, EmsAbDxaTemplateTimestamp, EmsAbDxaTypes, EmsAbDxaUnconfContainerList, EmsAbDxaUnconfContainerListO, EmsAbEmployeeNumber, EmsAbEmployeeType, EmsAbEnableCompatibility, EmsAbEnabled, EmsAbEnabledAuthorizationPackages, EmsAbEnabledProtocolCfg, EmsAbEnabledProtocols, EmsAbEncapsulationMethod, EmsAbEncrypt, EmsAbEncryptAlgListNa, EmsAbEncryptAlgListOther, EmsAbEncryptAlgSelectedNa, EmsAbEncryptAlgSelectedOther, EmsAbExpandDlsLocally, EmsAbExpirationTime, EmsAbExportContainers, EmsAbExportContainersO, EmsAbExportCustomRecipients, EmsAbExtendedCharsAllowed, EmsAbExtensionData, EmsAbExtensionName, EmsAbExtensionNameInherited, EmsAbFacsimileTelephoneNumber, EmsAbFileVersion, EmsAbFilterLocalAddresses, EmsAbFoldersContainer, EmsAbFoldersContainerO, EmsAbFormData, EmsAbForwardingAddress, EmsAbGarbageCollPeriod, EmsAbGatewayLocalCred, EmsAbGatewayLocalDesig, EmsAbGatewayProxy, EmsAbGatewayRoutingTree, EmsAbGenerationQualifier, EmsAbGroupByAttr1, EmsAbGroupByAttr2, EmsAbGroupByAttr3, EmsAbGroupByAttr4, EmsAbGroupByAttrValueDn, EmsAbGroupByAttrValueDnO, EmsAbGroupByAttrValueStr, EmsAbGwartLastModified, EmsAbHasFullReplicaNcs, EmsAbHasFullReplicaNcsO, EmsAbHasMasterNcs, EmsAbHasMasterNcsO, EmsAbHelpData16, EmsAbHelpData32, EmsAbHelpFileName, EmsAbHeuristics, EmsAbHideDlMembership, EmsAbHideFromAddressBook, EmsAbHierarchyPath, EmsAbHomeMdbBl, EmsAbHomeMdbBlO, EmsAbHomeMta, EmsAbHomeMtaO, EmsAbHomePublicServer, EmsAbHomePublicServerO, EmsAbHouseIdentifier, EmsAbHttpPubAbAttributes, EmsAbHttpPubGal, EmsAbHttpPubGalLimit, EmsAbHttpPubPf, EmsAbHttpServers, EmsAbImportContainer, EmsAbImportContainerO, EmsAbImportSensitivity, EmsAbImportedFrom, EmsAbInboundAcceptAll, EmsAbInboundDn, EmsAbInboundDnO, EmsAbInboundHost, EmsAbInboundNewsfeed, EmsAbInboundNewsfeedType, EmsAbInboundSites, EmsAbInboundSitesO, EmsAbIncomingMsgSizeLimit, EmsAbIncomingPassword, EmsAbInsadmin, EmsAbInsadminO, EmsAbInstanceType, EmsAbInternationalIsdnNumber, EmsAbInvocationId, EmsAbIsDeleted, EmsAbIsSingleValued, EmsAbKccStatus, EmsAbKmServer, EmsAbKmServerO, EmsAbKnowledgeInformation, EmsAbLabeleduri, EmsAbLanguage, EmsAbLanguageIso639, EmsAbLdapDisplayName, EmsAbLdapSearchCfg, EmsAbLineWrap, EmsAbLinkId, EmsAbListPublicFolders, EmsAbLocalBridgeHead, EmsAbLocalBridgeHeadAddress, EmsAbLocalInitialTurn, EmsAbLocalScope, EmsAbLocalScopeO, EmsAbLogFilename, EmsAbLogRolloverInterval, EmsAbMailDrop, EmsAbMaintainAutoreplyHistory, EmsAbMapiDisplayType, EmsAbMapiId, EmsAbMaximumObjectId, EmsAbMdbBackoffInterval, EmsAbMdbMsgTimeOutPeriod, EmsAbMdbOverQuotaLimit, EmsAbMdbStorageQuota, EmsAbMdbUnreadLimit, EmsAbMdbUseDefaults, EmsAbMessageTrackingEnabled, EmsAbMimeTypes, EmsAbModerated, EmsAbModerator, EmsAbMonitorClock, EmsAbMonitorServers, EmsAbMonitorServices, EmsAbMonitoredConfigurations, EmsAbMonitoredConfigurationsO, EmsAbMonitoredServers, EmsAbMonitoredServersO, EmsAbMonitoredServices, EmsAbMonitoringAlertDelay, EmsAbMonitoringAlertUnits, EmsAbMonitoringAvailabilityStyle, EmsAbMonitoringAvailabilityWindow, EmsAbMonitoringCachedViaMail, EmsAbMonitoringCachedViaMailO, EmsAbMonitoringCachedViaRpc, EmsAbMonitoringCachedViaRpcO, EmsAbMonitoringEscalationProcedure, EmsAbMonitoringHotsitePollInterval, EmsAbMonitoringHotsitePollUnits, EmsAbMonitoringMailUpdateInterval, EmsAbMonitoringMailUpdateUnits, EmsAbMonitoringNormalPollInterval, EmsAbMonitoringNormalPollUnits, EmsAbMonitoringRecipients, EmsAbMonitoringRecipientsNdr, EmsAbMonitoringRecipientsNdrO, EmsAbMonitoringRecipientsO, EmsAbMonitoringRpcUpdateInterval, EmsAbMonitoringRpcUpdateUnits, EmsAbMonitoringWarningDelay, EmsAbMonitoringWarningUnits, EmsAbMtaLocalCred, EmsAbMtaLocalDesig, EmsAbNAddress, EmsAbNAddressType, EmsAbNewsfeedType, EmsAbNewsgroup, EmsAbNewsgroupList, EmsAbNntpCharacterSet, EmsAbNntpContentFormat, EmsAbNntpDistributions, EmsAbNntpDistributionsFlag, EmsAbNntpNewsfeeds, EmsAbNntpNewsfeedsO, EmsAbNtMachineName, EmsAbNtSecurityDescriptor, EmsAbNumOfOpenRetries, EmsAbNumOfTransferRetries, EmsAbObjViewContainers, EmsAbObjViewContainersO, EmsAbObjectClassCategory, EmsAbObjectOid, EmsAbObjectVersion, EmsAbOffLineAbContainers, EmsAbOffLineAbContainersO, EmsAbOffLineAbSchedule, EmsAbOffLineAbServer, EmsAbOffLineAbServerO, EmsAbOffLineAbStyle, EmsAbOidType, EmsAbOmObjectClass, EmsAbOmSyntax, EmsAbOofReplyToOriginator, EmsAbOpenRetryInterval, EmsAbOrganizationName, EmsAbOrganizationalUnitName, EmsAbOriginalDisplayTable, EmsAbOriginalDisplayTableMsdos, EmsAbOtherRecips, EmsAbOutboundHost, EmsAbOutboundHostType, EmsAbOutboundNewsfeed, EmsAbOutboundSites, EmsAbOutboundSitesO, EmsAbOutgoingMsgSizeLimit, EmsAbOverrideNntpContentFormat, EmsAbOwaServer, EmsAbPSelector, EmsAbPSelectorInbound, EmsAbPerMsgDialogDisplayTable, EmsAbPerRecipDialogDisplayTable, EmsAbPeriodRepSyncTimes, EmsAbPeriodReplStagger, EmsAbPersonalTitle, EmsAbPfContacts, EmsAbPfContactsO, EmsAbPopCharacterSet, EmsAbPopContentFormat, EmsAbPortNumber, EmsAbPostalAddress, EmsAbPreferredDeliveryMethod, EmsAbPreserveInternetContent, EmsAbPrmd, EmsAbPromoExpiration, EmsAbProtocolSettings, EmsAbProxyGenerationEnabled, EmsAbProxyGeneratorDll, EmsAbPublicDelegatesBl, EmsAbPublicDelegatesBlO, EmsAbQuotaNotificationSchedule, EmsAbQuotaNotificationStyle, EmsAbRangeLower, EmsAbRangeUpper, EmsAbRasAccount, EmsAbRasCallbackNumber, EmsAbRasPassword, EmsAbRasPhoneNumber, EmsAbRasPhonebookEntryName, EmsAbRasRemoteSrvrName, EmsAbReferralList, EmsAbRegisteredAddress, EmsAbRemoteBridgeHead, EmsAbRemoteBridgeHeadAddress, EmsAbRemoteOutBhServer, EmsAbRemoteOutBhServerO, EmsAbRemoteSite, EmsAbRemoteSiteO, EmsAbReplicatedObjectVersion, EmsAbReplicationMailMsgSize, EmsAbReplicationSensitivity, EmsAbReplicationStagger, EmsAbReportToOriginator, EmsAbReportToOwner, EmsAbReqSeq, EmsAbRequireSsl, EmsAbResponsibleLocalDxa, EmsAbResponsibleLocalDxaO, EmsAbReturnExactMsgSize, EmsAbRidServer, EmsAbRidServerO, EmsAbRoleOccupant, EmsAbRoleOccupantO, EmsAbRootNewsgroupsFolderId, EmsAbRoutingList, EmsAbRtsCheckpointSize, EmsAbRtsRecoveryTimeout, EmsAbRtsWindowSize, EmsAbRunsOn, EmsAbRunsOnO, EmsAbSSelector, EmsAbSSelectorInbound, EmsAbSchemaFlags, EmsAbSchemaVersion, EmsAbSearchFlags, EmsAbSearchGuide, EmsAbSecurityPolicy, EmsAbSecurityProtocol, EmsAbSeeAlso, EmsAbSeeAlsoO, EmsAbSendEmailMessage, EmsAbSendTnef, EmsAbSerialNumber, EmsAbServer, EmsAbServiceActionFirst, EmsAbServiceActionOther, EmsAbServiceActionSecond, EmsAbServiceRestartDelay, EmsAbServiceRestartMessage, EmsAbSessionDisconnectTimer, EmsAbSiteAffinity, EmsAbSiteFolderGuid, EmsAbSiteFolderServer, EmsAbSiteFolderServerO, EmsAbSiteProxySpace, EmsAbSmimeAlgListNa, EmsAbSmimeAlgListOther, EmsAbSmimeAlgSelectedNa, EmsAbSmimeAlgSelectedOther, EmsAbSpaceLastComputed, EmsAbStreetAddress, EmsAbSubRefs, EmsAbSubRefsO, EmsAbSubSite, EmsAbSubmissionContLength, EmsAbSupportSmimeSignatures, EmsAbSupportedAlgorithms, EmsAbSupportedApplicationContext, EmsAbSupportingStack, EmsAbSupportingStackBl, EmsAbSupportingStackBlO, EmsAbSupportingStackO, EmsAbTSelector, EmsAbTSelectorInbound, EmsAbTargetMtas, EmsAbTelephoneNumber, EmsAbTelephonePersonalPager, EmsAbTeletexTerminalIdentifier, EmsAbTempAssocThreshold, EmsAbTombstoneLifetime, EmsAbTrackingLogPathName, EmsAbTransRetryMins, EmsAbTransTimeoutMins, EmsAbTransferRetryInterval, EmsAbTransferTimeoutNonUrgent, EmsAbTransferTimeoutNormal, EmsAbTransferTimeoutUrgent, EmsAbTranslationTableUsed, EmsAbTransportExpeditedData, EmsAbTrustLevel, EmsAbTurnRequestThreshold, EmsAbTwoWayAlternateFacility, EmsAbType, EmsAbUnauthOrigBl, EmsAbUnauthOrigBlO, EmsAbUseServerValues, EmsAbUseSiteValues, EmsAbUsenetSiteName, EmsAbUserPassword, EmsAbUsnChanged, EmsAbUsnCreated, EmsAbUsnDsaLastObjRemoved, EmsAbUsnIntersite, EmsAbUsnLastObjRem, EmsAbUsnSource, EmsAbViewContainer1, EmsAbViewContainer2, EmsAbViewContainer3, EmsAbViewDefinition, EmsAbViewFlags, EmsAbViewSite, EmsAbVoiceMailFlags, EmsAbVoiceMailGreetings, EmsAbVoiceMailPassword, EmsAbVoiceMailRecordedName, EmsAbVoiceMailRecordingLength, EmsAbVoiceMailSpeed, EmsAbVoiceMailSystemGuid, EmsAbVoiceMailUserId, EmsAbVoiceMailVolume, EmsAbWwwHomePage, EmsAbX121Address, EmsAbX25CallUserDataIncoming, EmsAbX25CallUserDataOutgoing, EmsAbX25FacilitiesDataIncoming, EmsAbX25FacilitiesDataOutgoing, EmsAbX25LeasedLinePort, EmsAbX25LeasedOrSwitched, EmsAbX25RemoteMtaPhone, EmsAbX400AttachmentType, EmsAbX400SelectorSyntax, EmsAbX500AccessControlList, EmsAbX500Nc, EmsAbX500Rdn, EmsAbXmitTimeoutNonUrgent, EmsAbXmitTimeoutNormal, EmsAbXmitTimeoutUrgent, EventsRootFolderEntryid, ExcessStorageUsed, ExtendedAclData, FastTransfer, FavoritesDefaultName, FolderChildCount, FolderDesignFlags, FolderPathname, ForeignId, ForeignReportId, ForeignSubjectId, FreeBusyForLocalSiteEntryid, GwAdminOperations, GwMtsinEntryid, GwMtsoutEntryid, HasModeratorRules, HierarchyServer, HierarchySynchronizer, ImapInternalDate, InTransit, InboundNewsfeedDn, InternetCharset, InternetNewsgroupName, IpmDafEntryid, IpmFavoritesEntryid, IpmPublicFoldersEntryid, IsNewsgroup, IsNewsgroupAnchor, LastAccessTime, LastFullBackup, LastLogoffTime, LastLogonTime, LongtermEntryidFromTable, MessageProcessed, MessageSiteName, MoveToFolderEntryid, MoveToStoreEntryid, MsgBodyId, MtsSubjectId, NewSubsGetAutoAdd, NewsfeedInfo, NewsgroupComponent, NewsgroupRootFolderEntryid, NntpArticleFolderEntryid, NntpControlFolderEntryid, NonIpmSubtreeEntryid, NormalMessageSize, NormalMessageSizeExtended, NormalMsgWAttachCount, NtUserName, OfflineAddrbookEntryid, OfflineFlags, OfflineMessageEntryid, OldestDeletedOn, OriginatorAddr, OriginatorAddrtype, OriginatorEntryid, OriginatorName, OstEncryption, OutboundNewsfeedDn, OverallAgeLimit, OverallMsgAgeLimit, OwaUrl, OwnerCount, P1Content, P1ContentType, PreventMsgCreate, Preview, PreviewUnread, ProfileAbFilesPath, ProfileAddrInfo, ProfileAllpubComment, ProfileAllpubDisplayName, ProfileBindingOrder, ProfileConfigFlags, ProfileConnectFlags, ProfileFavfldComment, ProfileFavfldDisplayName, ProfileHomeServer, ProfileHomeServerAddrs, ProfileHomeServerDn, ProfileMailbox, ProfileMaxRestrict, ProfileMoab, ProfileMoabGuid, ProfileMoabSeq, ProfileOfflineInfo, ProfileOfflineStorePath, ProfileOpenFlags, ProfileOptionsData, ProfileSecureMailbox, ProfileServer, ProfileServerDn, ProfileTransportFlags, ProfileType, ProfileUiState, ProfileUnresolvedName, ProfileUnresolvedServer, ProfileUser, ProfileVersion, PstEncryption, PstPath, PstPwSzOld, PstRememberPw, PublicFolderEntryid, PublishInAddressBook, RecipientNumber, RecipientOnAssocMsgCount, RecipientOnNormalMsgCount, ReplicaList, ReplicaServer, ReplicaVersion, ReplicationAlwaysInterval, ReplicationMessagePriority, ReplicationMsgSize, ReplicationSchedule, ReplicationStyle, ReplyRecipientSmtpProxies, ReportDestinationEntryid, ReportDestinationName, RestrictionCount, RetentionAgeLimit, RuleTriggerHistory, RulesData, RulesTable, ScheduleFolderEntryid, SecureInSite, SecureOrigination, StorageLimitInformation, StorageQuotaLimit, StoreOffline, StoreSlowlink, SubjectTraceInfo, SvrGeneratingQuotaMsg, SynchronizeFlags, SysConfigFolderEntryid, TestLineSpeed, TraceInfo, TransferEnabled, UserName, X400EnvelopeType, AbDefaultDir, AbDefaultPab, AbProviderId, AbProviders, AbSearchPath, AbSearchPathUpdate, AlternateRecipient, AssocContentCount, AttachmentX400Parameters, AuthorizingUsers, BodyCrc, CommonViewsEntryid, ContactAddrtypes, ContactDefaultAddressIndex, ContactEmailAddresses, ContactEntryids, ContactVersion, ContainerModifyVersion, ContentConfidentialityAlgorithmId, ContentCorrelator, ContentIdentifier, ContentIntegrityCheck, ContentLength, ContentReturnRequested, ContentsSortOrder, ControlFlags, ControlId, ControlStructure, ControlType, ConversationKey, ConversionEits, ConversionProhibited, ConversionWithLossProhibited, ConvertedEits, Correlate, CorrelateMtsid, CreateTemplates, CreationVersion, ExCurrentVersion, DefCreateDl, DefCreateMailuser, DefaultProfile, DefaultStore, DefaultViewEntryid, Delegation, DeliveryPoint, Deltax, Deltay, DetailsTable, DiscVal, DiscardReason, DiscloseRecipients, DisclosureOfRecipients, DiscreteValues, DlExpansionHistory, DlExpansionProhibited, ExplicitConversion, FilteringHooks, FinderEntryid, FormCategory, FormCategorySub, FormClsid, FormContactName, FormDesignerGuid, FormDesignerName, FormHidden, FormHostMap, FormMessageBehavior, FormVersion, HeaderFolderEntryid, Icon, IdentityDisplay, IdentityEntryid, IdentitySearchKey, ImplicitConversionProhibited, IncompleteCopy, InternetApproved, InternetArticleNumber, InternetControl, InternetDistribution, InternetFollowupTo, InternetLines, InternetNewsgroups, InternetNntpPath, InternetOrganization, InternetPrecedence, IpmId, IpmOutboxEntryid, IpmOutboxSearchKey, IpmReturnRequested, IpmSentmailEntryid, IpmSentmailSearchKey, IpmSubtreeEntryid, IpmSubtreeSearchKey, IpmWastebasketEntryid, IpmWastebasketSearchKey, Languages, LatestDeliveryTime, MailPermission, MdbProvider, MessageDeliveryId, MessageDownloadTime, MessageSecurityLabel, MessageToken, MiniIcon, ModifyVersion, NewsgroupName, NntpXref, NonReceiptReason, ObsoletedIpms, OriginCheck, OriginalAuthorAddrtype, OriginalAuthorEmailAddress, OriginalAuthorSearchKey, OriginalDisplayName, OriginalEits, OriginalSearchKey, OriginallyIntendedRecipAddrtype, OriginallyIntendedRecipEmailAddress, OriginallyIntendedRecipEntryid, OriginallyIntendedRecipientName, OriginatingMtaCertificate, OriginatorAndDlExpansionHistory, OriginatorCertificate, OriginatorRequestedAlternateRecipient, OriginatorReturnAddress, OwnStoreEntryid, ParentDisplay, PhysicalDeliveryBureauFaxDelivery, PhysicalDeliveryMode, PhysicalDeliveryReportRequest, PhysicalForwardingAddress, PhysicalForwardingAddressRequested, PhysicalForwardingProhibited, PhysicalRenditionAttributes, PostFolderEntries, PostFolderNames, PostReplyDenied, PostReplyFolderEntries, PostReplyFolderNames, Preprocess, PrimaryCapability, ProfileName, ProofOfDelivery, ProofOfDeliveryRequested, ProofOfSubmission, ProofOfSubmissionRequested, ProviderDisplay, ProviderDllName, ProviderOrdinal, ProviderSubmitTime, ProviderUid, ReceiveFolderSettings, RecipientCertificate, RecipientNumberForAdvice, RecipientStatus, RedirectionHistory, RegisteredMailType, RelatedIpms, RemoteProgress, RemoteProgressText, RemoteValidateOk, ReportingDlName, ReportingMtaCertificate, RequestedDeliveryMethod, ResourceFlags, ResourceMethods, ResourcePath, ResourceType, ReturnedIpm, RtfSyncBodyCount, RtfSyncBodyCrc, RtfSyncBodyTag, RtfSyncPrefixCount, RtfSyncTrailingCount, Search, ExSecurity, SentmailEntryid, ServiceDeleteFiles, ServiceDllName, ServiceEntryName, ServiceExtraUids, ServiceName, ServiceSupportFiles, ServiceUid, Services, SpoolerStatus, Status, StatusCode, StatusString, StoreProviders, StoreRecordKey, SubjectIpm, SubmitFlags, Supersedes, TransportKey, TransportProviders, TransportStatus, TypeOfMtsUser, ValidFolderMask, ViewsEntryid, X400ContentType, X400DeferredDeliveryCancel, Xpos, Ypos | Parent class: [MapiPropertyDescriptor](MapiPropertyDescriptor.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiLegacyFreeBusyPropertyDto.md b/sdk/docs/MapiLegacyFreeBusyPropertyDto.md index afb7aba..0e716d6 100644 --- a/sdk/docs/MapiLegacyFreeBusyPropertyDto.md +++ b/sdk/docs/MapiLegacyFreeBusyPropertyDto.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes Parent class: [MapiPropertyDto](MapiPropertyDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiMessageApi.md b/sdk/docs/MapiMessageApi.md new file mode 100644 index 0000000..243e341 --- /dev/null +++ b/sdk/docs/MapiMessageApi.md @@ -0,0 +1,118 @@ +# AsposeEmailCloudSdk.MapiMessageApi + + + +# as_email_dto + +```python +as_email_dto(self, MapiMessageDto mapi_message) +``` + +Converts MAPI message model to EmailDto model + +### Return type + +[**EmailDto**](EmailDto.md) + +### mapi_message Parameter + +See parameter model documentation at [MapiMessageDto](MapiMessageDto.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# as_file + +```python +as_file(self, MapiMessageAsFileRequest request) +``` + +Converts MAPI message model to specified format and returns as file. + +### Return type + +**Stream** + +### request Parameter + +See parameter model documentation at [MapiMessageAsFileRequest](MapiMessageAsFileRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# from_file + +```python +from_file(self, request: MapiMessageFromFileRequest) +``` + +Converts email file to a MAPI model representation + +### Return type + +MapiMessageDto + +### request Parameter +```python +MapiMessageFromFileRequest( + format, + file) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **format** | **str** | File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | + **file** | **str** | File to convert | + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# get + +```python +get(self, request: MapiMessageGetRequest) +``` + +Get MAPI message document. + +### Return type + +MapiMessageDto + +### request Parameter +```python +MapiMessageGetRequest( + format, + file_name, + folder, + storage) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **format** | **str** | Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | + **file_name** | **str** | Email document file name. | + **folder** | **str** | Path to folder in storage. | [optional] + **storage** | **str** | Storage name. | [optional] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# save + +```python +save(self, MapiMessageSaveRequest request) +``` + +Save MAPI message to storage. + +### Return type + +void (empty response body) + +### request Parameter + +See parameter model documentation at [MapiMessageSaveRequest](MapiMessageSaveRequest.md) + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + diff --git a/sdk/docs/MapiMessageApi_list.md b/sdk/docs/MapiMessageApi_list.md new file mode 100644 index 0000000..9df24f4 --- /dev/null +++ b/sdk/docs/MapiMessageApi_list.md @@ -0,0 +1,12 @@ + +## Documentation for MapiMessageApi operations + +All URIs are relative to *https://api.aspose.cloud/v4.0* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**as_email_dto**](MapiMessageApi.md#as_email_dto)| **PUT** /email/MapiMessage/as-email-dto| Converts MAPI message model to EmailDto model +[**as_file**](MapiMessageApi.md#as_file)| **PUT** /email/MapiMessage/as-file| Converts MAPI message model to specified format and returns as file. +[**from_file**](MapiMessageApi.md#from_file)| **PUT** /email/MapiMessage/from-file| Converts email file to a MAPI model representation +[**get**](MapiMessageApi.md#get)| **GET** /email/MapiMessage| Get MAPI message document. +[**save**](MapiMessageApi.md#save)| **PUT** /email/MapiMessage| Save MAPI message to storage. diff --git a/sdk/docs/MapiMessageAsFileRequest.md b/sdk/docs/MapiMessageAsFileRequest.md new file mode 100644 index 0000000..1df6425 --- /dev/null +++ b/sdk/docs/MapiMessageAsFileRequest.md @@ -0,0 +1,12 @@ +# AsposeEmailCloudSdk.models.MapiMessageAsFileRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format** | **str** | Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | +**value** | [**MapiMessageDto**](MapiMessageDto.md) | MAPI message model. | + + + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/MapiMessageDto.md b/sdk/docs/MapiMessageDto.md index b2db712..272a49d 100644 --- a/sdk/docs/MapiMessageDto.md +++ b/sdk/docs/MapiMessageDto.md @@ -30,6 +30,6 @@ Name | Type | Description | Notes Parent class: [MapiMessageItemBaseDto](MapiMessageItemBaseDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiMessageItemBaseDto.md b/sdk/docs/MapiMessageItemBaseDto.md index 4a47f13..1f49066 100644 --- a/sdk/docs/MapiMessageItemBaseDto.md +++ b/sdk/docs/MapiMessageItemBaseDto.md @@ -22,6 +22,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiMessageSaveRequest.md b/sdk/docs/MapiMessageSaveRequest.md new file mode 100644 index 0000000..f81ec4d --- /dev/null +++ b/sdk/docs/MapiMessageSaveRequest.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.MapiMessageSaveRequest +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format** | **str** | Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | + + Parent class: [StorageModelOfMapiMessageDto](StorageModelOfMapiMessageDto.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/MapiMultiIntPropertyDto.md b/sdk/docs/MapiMultiIntPropertyDto.md index f46a4fd..24fd3c3 100644 --- a/sdk/docs/MapiMultiIntPropertyDto.md +++ b/sdk/docs/MapiMultiIntPropertyDto.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes Parent class: [MapiPropertyDto](MapiPropertyDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiMultiStringPropertyDto.md b/sdk/docs/MapiMultiStringPropertyDto.md index 948ab68..fd0bea0 100644 --- a/sdk/docs/MapiMultiStringPropertyDto.md +++ b/sdk/docs/MapiMultiStringPropertyDto.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes Parent class: [MapiPropertyDto](MapiPropertyDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiPhysicalAddressIndexPropertyDto.md b/sdk/docs/MapiPhysicalAddressIndexPropertyDto.md index 4037c01..9d83145 100644 --- a/sdk/docs/MapiPhysicalAddressIndexPropertyDto.md +++ b/sdk/docs/MapiPhysicalAddressIndexPropertyDto.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes Parent class: [MapiPropertyDto](MapiPropertyDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiPidLidPropertyDescriptor.md b/sdk/docs/MapiPidLidPropertyDescriptor.md index c8f1ca4..5cdba65 100644 --- a/sdk/docs/MapiPidLidPropertyDescriptor.md +++ b/sdk/docs/MapiPidLidPropertyDescriptor.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes Parent class: [MapiPidPropertyDescriptor](MapiPidPropertyDescriptor.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiPidNamePropertyDescriptor.md b/sdk/docs/MapiPidNamePropertyDescriptor.md index f3af50d..a78c33f 100644 --- a/sdk/docs/MapiPidNamePropertyDescriptor.md +++ b/sdk/docs/MapiPidNamePropertyDescriptor.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes Parent class: [MapiPidPropertyDescriptor](MapiPidPropertyDescriptor.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiPidPropertyDescriptor.md b/sdk/docs/MapiPidPropertyDescriptor.md index c3ee9a7..c794a2f 100644 --- a/sdk/docs/MapiPidPropertyDescriptor.md +++ b/sdk/docs/MapiPidPropertyDescriptor.md @@ -9,6 +9,6 @@ Name | Type | Description | Notes Parent class: [MapiPropertyDescriptor](MapiPropertyDescriptor.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiPidTagPropertyDescriptor.md b/sdk/docs/MapiPidTagPropertyDescriptor.md index ea303ba..f94b00b 100644 --- a/sdk/docs/MapiPidTagPropertyDescriptor.md +++ b/sdk/docs/MapiPidTagPropertyDescriptor.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes Parent class: [MapiPidPropertyDescriptor](MapiPidPropertyDescriptor.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiPropertyDescriptor.md b/sdk/docs/MapiPropertyDescriptor.md index 9de5601..97e09cc 100644 --- a/sdk/docs/MapiPropertyDescriptor.md +++ b/sdk/docs/MapiPropertyDescriptor.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiPropertyDto.md b/sdk/docs/MapiPropertyDto.md index 371199c..90fc72f 100644 --- a/sdk/docs/MapiPropertyDto.md +++ b/sdk/docs/MapiPropertyDto.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiRecipientDto.md b/sdk/docs/MapiRecipientDto.md index f8d3619..9021f46 100644 --- a/sdk/docs/MapiRecipientDto.md +++ b/sdk/docs/MapiRecipientDto.md @@ -9,6 +9,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiResponseTypePropertyDto.md b/sdk/docs/MapiResponseTypePropertyDto.md index 34698ec..723a50e 100644 --- a/sdk/docs/MapiResponseTypePropertyDto.md +++ b/sdk/docs/MapiResponseTypePropertyDto.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes Parent class: [MapiPropertyDto](MapiPropertyDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MapiStringPropertyDto.md b/sdk/docs/MapiStringPropertyDto.md index 9baf2ed..68fc718 100644 --- a/sdk/docs/MapiStringPropertyDto.md +++ b/sdk/docs/MapiStringPropertyDto.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes Parent class: [MapiPropertyDto](MapiPropertyDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MimeResponse.md b/sdk/docs/MimeResponse.md deleted file mode 100644 index a2e0f0c..0000000 --- a/sdk/docs/MimeResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.MimeResponse -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mime** | **str** | Gets or sets base64 encoded mime content. | [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/Models.md b/sdk/docs/Models.md new file mode 100644 index 0000000..2b3bf48 --- /dev/null +++ b/sdk/docs/Models.md @@ -0,0 +1,192 @@ +## Documentation for Models + + - [AsposeEmailCloudSdk.models.AiBcrImage](AiBcrImage.md) + - [AsposeEmailCloudSdk.models.AiBcrOptions](AiBcrOptions.md) + - [AsposeEmailCloudSdk.models.AiBcrParseStorageRequest](AiBcrParseStorageRequest.md) + - [AsposeEmailCloudSdk.models.AiNameComponent](AiNameComponent.md) + - [AsposeEmailCloudSdk.models.AiNameCulturalContext](AiNameCulturalContext.md) + - [AsposeEmailCloudSdk.models.AiNameExtracted](AiNameExtracted.md) + - [AsposeEmailCloudSdk.models.AiNameExtractedComponent](AiNameExtractedComponent.md) + - [AsposeEmailCloudSdk.models.AiNameFormatted](AiNameFormatted.md) + - [AsposeEmailCloudSdk.models.AiNameGenderHypothesis](AiNameGenderHypothesis.md) + - [AsposeEmailCloudSdk.models.AiNameMatchResult](AiNameMatchResult.md) + - [AsposeEmailCloudSdk.models.AiNameMismatch](AiNameMismatch.md) + - [AsposeEmailCloudSdk.models.AiNameParsedRequest](AiNameParsedRequest.md) + - [AsposeEmailCloudSdk.models.AiNameWeighted](AiNameWeighted.md) + - [AsposeEmailCloudSdk.models.AiNameWeightedVariants](AiNameWeightedVariants.md) + - [AsposeEmailCloudSdk.models.AssociatedPerson](AssociatedPerson.md) + - [AsposeEmailCloudSdk.models.AttachmentBase](AttachmentBase.md) + - [AsposeEmailCloudSdk.models.CalendarAsAlternateRequest](CalendarAsAlternateRequest.md) + - [AsposeEmailCloudSdk.models.CalendarAsFileRequest](CalendarAsFileRequest.md) + - [AsposeEmailCloudSdk.models.CalendarDto](CalendarDto.md) + - [AsposeEmailCloudSdk.models.CalendarReminder](CalendarReminder.md) + - [AsposeEmailCloudSdk.models.ClientAccountBaseRequest](ClientAccountBaseRequest.md) + - [AsposeEmailCloudSdk.models.ContactAsFileRequest](ContactAsFileRequest.md) + - [AsposeEmailCloudSdk.models.ContactDto](ContactDto.md) + - [AsposeEmailCloudSdk.models.ContactPhoto](ContactPhoto.md) + - [AsposeEmailCloudSdk.models.ContentType](ContentType.md) + - [AsposeEmailCloudSdk.models.ContentTypeParameter](ContentTypeParameter.md) + - [AsposeEmailCloudSdk.models.CustomerEvent](CustomerEvent.md) + - [AsposeEmailCloudSdk.models.DiscUsage](DiscUsage.md) + - [AsposeEmailCloudSdk.models.DiscoverEmailConfigRequest](DiscoverEmailConfigRequest.md) + - [AsposeEmailCloudSdk.models.EmailAccountConfig](EmailAccountConfig.md) + - [AsposeEmailCloudSdk.models.EmailAddress](EmailAddress.md) + - [AsposeEmailCloudSdk.models.EmailAsFileRequest](EmailAsFileRequest.md) + - [AsposeEmailCloudSdk.models.EmailClientAccount](EmailClientAccount.md) + - [AsposeEmailCloudSdk.models.EmailClientAccountCredentials](EmailClientAccountCredentials.md) + - [AsposeEmailCloudSdk.models.EmailClientMultiAccount](EmailClientMultiAccount.md) + - [AsposeEmailCloudSdk.models.EmailDto](EmailDto.md) + - [AsposeEmailCloudSdk.models.EmailThread](EmailThread.md) + - [AsposeEmailCloudSdk.models.EnumWithCustomOfAssociatedPersonCategory](EnumWithCustomOfAssociatedPersonCategory.md) + - [AsposeEmailCloudSdk.models.EnumWithCustomOfEmailAddressCategory](EnumWithCustomOfEmailAddressCategory.md) + - [AsposeEmailCloudSdk.models.EnumWithCustomOfEventCategory](EnumWithCustomOfEventCategory.md) + - [AsposeEmailCloudSdk.models.EnumWithCustomOfInstantMessengerCategory](EnumWithCustomOfInstantMessengerCategory.md) + - [AsposeEmailCloudSdk.models.EnumWithCustomOfPhoneNumberCategory](EnumWithCustomOfPhoneNumberCategory.md) + - [AsposeEmailCloudSdk.models.EnumWithCustomOfPostalAddressCategory](EnumWithCustomOfPostalAddressCategory.md) + - [AsposeEmailCloudSdk.models.EnumWithCustomOfUrlCategory](EnumWithCustomOfUrlCategory.md) + - [AsposeEmailCloudSdk.models.Error](Error.md) + - [AsposeEmailCloudSdk.models.ErrorDetails](ErrorDetails.md) + - [AsposeEmailCloudSdk.models.FileVersions](FileVersions.md) + - [AsposeEmailCloudSdk.models.FilesList](FilesList.md) + - [AsposeEmailCloudSdk.models.FilesUploadResult](FilesUploadResult.md) + - [AsposeEmailCloudSdk.models.InstantMessengerAddress](InstantMessengerAddress.md) + - [AsposeEmailCloudSdk.models.ListResponseOfAiNameComponent](ListResponseOfAiNameComponent.md) + - [AsposeEmailCloudSdk.models.ListResponseOfAiNameExtracted](ListResponseOfAiNameExtracted.md) + - [AsposeEmailCloudSdk.models.ListResponseOfAiNameGenderHypothesis](ListResponseOfAiNameGenderHypothesis.md) + - [AsposeEmailCloudSdk.models.ListResponseOfContactDto](ListResponseOfContactDto.md) + - [AsposeEmailCloudSdk.models.ListResponseOfEmailAccountConfig](ListResponseOfEmailAccountConfig.md) + - [AsposeEmailCloudSdk.models.ListResponseOfEmailDto](ListResponseOfEmailDto.md) + - [AsposeEmailCloudSdk.models.ListResponseOfEmailThread](ListResponseOfEmailThread.md) + - [AsposeEmailCloudSdk.models.ListResponseOfMailMessageBase](ListResponseOfMailMessageBase.md) + - [AsposeEmailCloudSdk.models.ListResponseOfMailServerFolder](ListResponseOfMailServerFolder.md) + - [AsposeEmailCloudSdk.models.ListResponseOfStorageFileLocation](ListResponseOfStorageFileLocation.md) + - [AsposeEmailCloudSdk.models.ListResponseOfStorageModelOfCalendarDto](ListResponseOfStorageModelOfCalendarDto.md) + - [AsposeEmailCloudSdk.models.ListResponseOfStorageModelOfContactDto](ListResponseOfStorageModelOfContactDto.md) + - [AsposeEmailCloudSdk.models.ListResponseOfStorageModelOfEmailDto](ListResponseOfStorageModelOfEmailDto.md) + - [AsposeEmailCloudSdk.models.MailAddress](MailAddress.md) + - [AsposeEmailCloudSdk.models.MailMessageBase](MailMessageBase.md) + - [AsposeEmailCloudSdk.models.MailServerFolder](MailServerFolder.md) + - [AsposeEmailCloudSdk.models.MapiAttachmentDto](MapiAttachmentDto.md) + - [AsposeEmailCloudSdk.models.MapiCalendarAsFileRequest](MapiCalendarAsFileRequest.md) + - [AsposeEmailCloudSdk.models.MapiCalendarAttendeesDto](MapiCalendarAttendeesDto.md) + - [AsposeEmailCloudSdk.models.MapiCalendarEventRecurrenceDto](MapiCalendarEventRecurrenceDto.md) + - [AsposeEmailCloudSdk.models.MapiCalendarExceptionInfoDto](MapiCalendarExceptionInfoDto.md) + - [AsposeEmailCloudSdk.models.MapiCalendarRecurrencePatternDto](MapiCalendarRecurrencePatternDto.md) + - [AsposeEmailCloudSdk.models.MapiCalendarTimeZoneDto](MapiCalendarTimeZoneDto.md) + - [AsposeEmailCloudSdk.models.MapiCalendarTimeZoneInfoDto](MapiCalendarTimeZoneInfoDto.md) + - [AsposeEmailCloudSdk.models.MapiCalendarTimeZoneRuleDto](MapiCalendarTimeZoneRuleDto.md) + - [AsposeEmailCloudSdk.models.MapiContactAsFileRequest](MapiContactAsFileRequest.md) + - [AsposeEmailCloudSdk.models.MapiContactElectronicAddressDto](MapiContactElectronicAddressDto.md) + - [AsposeEmailCloudSdk.models.MapiContactElectronicAddressPropertySetDto](MapiContactElectronicAddressPropertySetDto.md) + - [AsposeEmailCloudSdk.models.MapiContactEventPropertySetDto](MapiContactEventPropertySetDto.md) + - [AsposeEmailCloudSdk.models.MapiContactNamePropertySetDto](MapiContactNamePropertySetDto.md) + - [AsposeEmailCloudSdk.models.MapiContactOtherPropertySetDto](MapiContactOtherPropertySetDto.md) + - [AsposeEmailCloudSdk.models.MapiContactPersonalInfoPropertySetDto](MapiContactPersonalInfoPropertySetDto.md) + - [AsposeEmailCloudSdk.models.MapiContactPhysicalAddressDto](MapiContactPhysicalAddressDto.md) + - [AsposeEmailCloudSdk.models.MapiContactPhysicalAddressPropertySetDto](MapiContactPhysicalAddressPropertySetDto.md) + - [AsposeEmailCloudSdk.models.MapiContactProfessionalPropertySetDto](MapiContactProfessionalPropertySetDto.md) + - [AsposeEmailCloudSdk.models.MapiContactTelephonePropertySetDto](MapiContactTelephonePropertySetDto.md) + - [AsposeEmailCloudSdk.models.MapiElectronicAddressDto](MapiElectronicAddressDto.md) + - [AsposeEmailCloudSdk.models.MapiMessageAsFileRequest](MapiMessageAsFileRequest.md) + - [AsposeEmailCloudSdk.models.MapiMessageItemBaseDto](MapiMessageItemBaseDto.md) + - [AsposeEmailCloudSdk.models.MapiPropertyDescriptor](MapiPropertyDescriptor.md) + - [AsposeEmailCloudSdk.models.MapiPropertyDto](MapiPropertyDto.md) + - [AsposeEmailCloudSdk.models.MapiRecipientDto](MapiRecipientDto.md) + - [AsposeEmailCloudSdk.models.NameValuePair](NameValuePair.md) + - [AsposeEmailCloudSdk.models.ObjectExist](ObjectExist.md) + - [AsposeEmailCloudSdk.models.PhoneNumber](PhoneNumber.md) + - [AsposeEmailCloudSdk.models.PostalAddress](PostalAddress.md) + - [AsposeEmailCloudSdk.models.RecurrencePatternDto](RecurrencePatternDto.md) + - [AsposeEmailCloudSdk.models.ReminderAttendee](ReminderAttendee.md) + - [AsposeEmailCloudSdk.models.ReminderTrigger](ReminderTrigger.md) + - [AsposeEmailCloudSdk.models.StorageExist](StorageExist.md) + - [AsposeEmailCloudSdk.models.StorageFile](StorageFile.md) + - [AsposeEmailCloudSdk.models.StorageFolderLocation](StorageFolderLocation.md) + - [AsposeEmailCloudSdk.models.StorageModelOfCalendarDto](StorageModelOfCalendarDto.md) + - [AsposeEmailCloudSdk.models.StorageModelOfContactDto](StorageModelOfContactDto.md) + - [AsposeEmailCloudSdk.models.StorageModelOfEmailClientAccount](StorageModelOfEmailClientAccount.md) + - [AsposeEmailCloudSdk.models.StorageModelOfEmailClientMultiAccount](StorageModelOfEmailClientMultiAccount.md) + - [AsposeEmailCloudSdk.models.StorageModelOfEmailDto](StorageModelOfEmailDto.md) + - [AsposeEmailCloudSdk.models.StorageModelOfMapiCalendarDto](StorageModelOfMapiCalendarDto.md) + - [AsposeEmailCloudSdk.models.StorageModelOfMapiContactDto](StorageModelOfMapiContactDto.md) + - [AsposeEmailCloudSdk.models.StorageModelOfMapiMessageDto](StorageModelOfMapiMessageDto.md) + - [AsposeEmailCloudSdk.models.Url](Url.md) + - [AsposeEmailCloudSdk.models.ValueTOfBoolean](ValueTOfBoolean.md) + - [AsposeEmailCloudSdk.models.ValueTOfString](ValueTOfString.md) + - [AsposeEmailCloudSdk.models.AiBcrImageStorageFile](AiBcrImageStorageFile.md) + - [AsposeEmailCloudSdk.models.AiNameComponentList](AiNameComponentList.md) + - [AsposeEmailCloudSdk.models.AiNameExtractedList](AiNameExtractedList.md) + - [AsposeEmailCloudSdk.models.AiNameGenderHypothesisList](AiNameGenderHypothesisList.md) + - [AsposeEmailCloudSdk.models.AiNameMatchParsedRequest](AiNameMatchParsedRequest.md) + - [AsposeEmailCloudSdk.models.AlternateView](AlternateView.md) + - [AsposeEmailCloudSdk.models.Attachment](Attachment.md) + - [AsposeEmailCloudSdk.models.CalendarSaveRequest](CalendarSaveRequest.md) + - [AsposeEmailCloudSdk.models.CalendarStorageList](CalendarStorageList.md) + - [AsposeEmailCloudSdk.models.ClientAccountSaveMultiRequest](ClientAccountSaveMultiRequest.md) + - [AsposeEmailCloudSdk.models.ClientAccountSaveRequest](ClientAccountSaveRequest.md) + - [AsposeEmailCloudSdk.models.ClientFolderCreateRequest](ClientFolderCreateRequest.md) + - [AsposeEmailCloudSdk.models.ClientFolderDeleteRequest](ClientFolderDeleteRequest.md) + - [AsposeEmailCloudSdk.models.ClientMessageAppendRequest](ClientMessageAppendRequest.md) + - [AsposeEmailCloudSdk.models.ClientMessageBaseRequest](ClientMessageBaseRequest.md) + - [AsposeEmailCloudSdk.models.ClientMessageSendRequest](ClientMessageSendRequest.md) + - [AsposeEmailCloudSdk.models.ClientThreadBaseRequest](ClientThreadBaseRequest.md) + - [AsposeEmailCloudSdk.models.ContactList](ContactList.md) + - [AsposeEmailCloudSdk.models.ContactSaveRequest](ContactSaveRequest.md) + - [AsposeEmailCloudSdk.models.ContactStorageList](ContactStorageList.md) + - [AsposeEmailCloudSdk.models.DailyRecurrencePatternDto](DailyRecurrencePatternDto.md) + - [AsposeEmailCloudSdk.models.EmailAccountConfigList](EmailAccountConfigList.md) + - [AsposeEmailCloudSdk.models.EmailClientAccountOauthCredentials](EmailClientAccountOauthCredentials.md) + - [AsposeEmailCloudSdk.models.EmailClientAccountPasswordCredentials](EmailClientAccountPasswordCredentials.md) + - [AsposeEmailCloudSdk.models.EmailConfigDiscoverOauthRequest](EmailConfigDiscoverOauthRequest.md) + - [AsposeEmailCloudSdk.models.EmailConfigDiscoverPasswordRequest](EmailConfigDiscoverPasswordRequest.md) + - [AsposeEmailCloudSdk.models.EmailList](EmailList.md) + - [AsposeEmailCloudSdk.models.EmailSaveRequest](EmailSaveRequest.md) + - [AsposeEmailCloudSdk.models.EmailStorageList](EmailStorageList.md) + - [AsposeEmailCloudSdk.models.EmailThreadList](EmailThreadList.md) + - [AsposeEmailCloudSdk.models.FileVersion](FileVersion.md) + - [AsposeEmailCloudSdk.models.LinkedResource](LinkedResource.md) + - [AsposeEmailCloudSdk.models.MailMessageBase64](MailMessageBase64.md) + - [AsposeEmailCloudSdk.models.MailMessageBaseList](MailMessageBaseList.md) + - [AsposeEmailCloudSdk.models.MailMessageDto](MailMessageDto.md) + - [AsposeEmailCloudSdk.models.MailMessageMapi](MailMessageMapi.md) + - [AsposeEmailCloudSdk.models.MailServerFolderList](MailServerFolderList.md) + - [AsposeEmailCloudSdk.models.MapiBinaryPropertyDto](MapiBinaryPropertyDto.md) + - [AsposeEmailCloudSdk.models.MapiBooleanPropertyDto](MapiBooleanPropertyDto.md) + - [AsposeEmailCloudSdk.models.MapiCalendarDailyRecurrencePatternDto](MapiCalendarDailyRecurrencePatternDto.md) + - [AsposeEmailCloudSdk.models.MapiCalendarDto](MapiCalendarDto.md) + - [AsposeEmailCloudSdk.models.MapiCalendarSaveRequest](MapiCalendarSaveRequest.md) + - [AsposeEmailCloudSdk.models.MapiCalendarWeeklyRecurrencePatternDto](MapiCalendarWeeklyRecurrencePatternDto.md) + - [AsposeEmailCloudSdk.models.MapiCalendarYearlyAndMonthlyRecurrencePatternDto](MapiCalendarYearlyAndMonthlyRecurrencePatternDto.md) + - [AsposeEmailCloudSdk.models.MapiContactDto](MapiContactDto.md) + - [AsposeEmailCloudSdk.models.MapiContactPhotoDto](MapiContactPhotoDto.md) + - [AsposeEmailCloudSdk.models.MapiContactSaveRequest](MapiContactSaveRequest.md) + - [AsposeEmailCloudSdk.models.MapiDateTimePropertyDto](MapiDateTimePropertyDto.md) + - [AsposeEmailCloudSdk.models.MapiFileAsPropertyDto](MapiFileAsPropertyDto.md) + - [AsposeEmailCloudSdk.models.MapiImportancePropertyDto](MapiImportancePropertyDto.md) + - [AsposeEmailCloudSdk.models.MapiIntPropertyDto](MapiIntPropertyDto.md) + - [AsposeEmailCloudSdk.models.MapiKnownPropertyDescriptor](MapiKnownPropertyDescriptor.md) + - [AsposeEmailCloudSdk.models.MapiLegacyFreeBusyPropertyDto](MapiLegacyFreeBusyPropertyDto.md) + - [AsposeEmailCloudSdk.models.MapiMessageDto](MapiMessageDto.md) + - [AsposeEmailCloudSdk.models.MapiMessageSaveRequest](MapiMessageSaveRequest.md) + - [AsposeEmailCloudSdk.models.MapiMultiIntPropertyDto](MapiMultiIntPropertyDto.md) + - [AsposeEmailCloudSdk.models.MapiMultiStringPropertyDto](MapiMultiStringPropertyDto.md) + - [AsposeEmailCloudSdk.models.MapiPhysicalAddressIndexPropertyDto](MapiPhysicalAddressIndexPropertyDto.md) + - [AsposeEmailCloudSdk.models.MapiPidPropertyDescriptor](MapiPidPropertyDescriptor.md) + - [AsposeEmailCloudSdk.models.MapiResponseTypePropertyDto](MapiResponseTypePropertyDto.md) + - [AsposeEmailCloudSdk.models.MapiStringPropertyDto](MapiStringPropertyDto.md) + - [AsposeEmailCloudSdk.models.MonthlyRecurrencePatternDto](MonthlyRecurrencePatternDto.md) + - [AsposeEmailCloudSdk.models.StorageFileLocation](StorageFileLocation.md) + - [AsposeEmailCloudSdk.models.StorageFileLocationList](StorageFileLocationList.md) + - [AsposeEmailCloudSdk.models.TaskRegeneratingPatternDto](TaskRegeneratingPatternDto.md) + - [AsposeEmailCloudSdk.models.WeeklyRecurrencePatternDto](WeeklyRecurrencePatternDto.md) + - [AsposeEmailCloudSdk.models.YearlyRecurrencePatternDto](YearlyRecurrencePatternDto.md) + - [AsposeEmailCloudSdk.models.ClientMessageDeleteRequest](ClientMessageDeleteRequest.md) + - [AsposeEmailCloudSdk.models.ClientMessageMoveRequest](ClientMessageMoveRequest.md) + - [AsposeEmailCloudSdk.models.ClientMessageSetIsReadRequest](ClientMessageSetIsReadRequest.md) + - [AsposeEmailCloudSdk.models.ClientThreadDeleteRequest](ClientThreadDeleteRequest.md) + - [AsposeEmailCloudSdk.models.ClientThreadMoveRequest](ClientThreadMoveRequest.md) + - [AsposeEmailCloudSdk.models.ClientThreadSetIsReadRequest](ClientThreadSetIsReadRequest.md) + - [AsposeEmailCloudSdk.models.MapiPidLidPropertyDescriptor](MapiPidLidPropertyDescriptor.md) + - [AsposeEmailCloudSdk.models.MapiPidNamePropertyDescriptor](MapiPidNamePropertyDescriptor.md) + - [AsposeEmailCloudSdk.models.MapiPidTagPropertyDescriptor](MapiPidTagPropertyDescriptor.md) + diff --git a/sdk/docs/MonthlyRecurrencePatternDto.md b/sdk/docs/MonthlyRecurrencePatternDto.md index 3ba0707..d25b503 100644 --- a/sdk/docs/MonthlyRecurrencePatternDto.md +++ b/sdk/docs/MonthlyRecurrencePatternDto.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes Parent class: [RecurrencePatternDto](RecurrencePatternDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/MoveEmailMessageRq.md b/sdk/docs/MoveEmailMessageRq.md deleted file mode 100644 index 314917e..0000000 --- a/sdk/docs/MoveEmailMessageRq.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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 deleted file mode 100644 index 5e89e41..0000000 --- a/sdk/docs/MoveEmailThreadRq.md +++ /dev/null @@ -1,11 +0,0 @@ -# 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/NameValuePair.md b/sdk/docs/NameValuePair.md index 2838c4a..eee0cee 100644 --- a/sdk/docs/NameValuePair.md +++ b/sdk/docs/NameValuePair.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ObjectExist.md b/sdk/docs/ObjectExist.md index 191ae3a..b9d7c55 100644 --- a/sdk/docs/ObjectExist.md +++ b/sdk/docs/ObjectExist.md @@ -2,11 +2,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**exists** | **bool** | | -**is_folder** | **bool** | | +**exists** | **bool** | Indicates that the file or folder exists. | +**is_folder** | **bool** | True if it is a folder, false if it is a file. | -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/PhoneNumber.md b/sdk/docs/PhoneNumber.md index f0a961a..a98e2d5 100644 --- a/sdk/docs/PhoneNumber.md +++ b/sdk/docs/PhoneNumber.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/PostalAddress.md b/sdk/docs/PostalAddress.md index 41cb981..8f4be87 100644 --- a/sdk/docs/PostalAddress.md +++ b/sdk/docs/PostalAddress.md @@ -16,6 +16,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/PrimitiveObject.md b/sdk/docs/PrimitiveObject.md deleted file mode 100644 index 8781be7..0000000 --- a/sdk/docs/PrimitiveObject.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.PrimitiveObject -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | Property value | [optional] - - Parent class: [BaseObject](BaseObject.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/README.md b/sdk/docs/README.md index 8b6fac9..4b009fe 100644 --- a/sdk/docs/README.md +++ b/sdk/docs/README.md @@ -1,474 +1,28 @@ -## Documentation for API endpoints +# Reference documentation for Aspose.Email Cloud API -All URIs are relative to *https://api.aspose.cloud/v3.0* +`EmailCloud` is the main API class. It provides an access to all of Aspose.Email Cloud functions. +`app_key` and `app_sid` credentials should be obtained from [dashboard](https://dashboard.aspose.cloud/#/) to use `EmailCloud`: -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*EmailApi* | [**add_calendar_attachment**](EmailApi.md#add_calendar_attachment) | **PUT** /email/Calendar/{name}/attachments/{attachment} | Adds an attachment to iCalendar file -*EmailApi* | [**add_calendar_attachment_async**](EmailApi.md#add_calendar_attachment_async) | **PUT** /email/Calendar/{name}/attachments/{attachment} | Adds an attachment to iCalendar file -*EmailApi* | [**add_contact_attachment**](EmailApi.md#add_contact_attachment) | **PUT** /email/Contact/{format}/{name}/attachments/{attachment} | Add attachment to contact document -*EmailApi* | [**add_contact_attachment_async**](EmailApi.md#add_contact_attachment_async) | **PUT** /email/Contact/{format}/{name}/attachments/{attachment} | Add attachment to contact document -*EmailApi* | [**add_email_attachment**](EmailApi.md#add_email_attachment) | **POST** /email/{fileName}/attachments/{attachmentName} | Adds an attachment to Email document -*EmailApi* | [**add_email_attachment_async**](EmailApi.md#add_email_attachment_async) | **POST** /email/{fileName}/attachments/{attachmentName} | Adds an attachment to Email document -*EmailApi* | [**add_mapi_attachment**](EmailApi.md#add_mapi_attachment) | **PUT** /email/Mapi/{name}/attachments/{attachment} | Add attachment to document -*EmailApi* | [**add_mapi_attachment_async**](EmailApi.md#add_mapi_attachment_async) | **PUT** /email/Mapi/{name}/attachments/{attachment} | Add attachment to document -*EmailApi* | [**ai_bcr_ocr**](EmailApi.md#ai_bcr_ocr) | **POST** /email/AiBcr/ocr | Ocr images -*EmailApi* | [**ai_bcr_ocr_async**](EmailApi.md#ai_bcr_ocr_async) | **POST** /email/AiBcr/ocr | Ocr images -*EmailApi* | [**ai_bcr_ocr_storage**](EmailApi.md#ai_bcr_ocr_storage) | **POST** /email/AiBcr/ocr-storage | Ocr images from storage -*EmailApi* | [**ai_bcr_ocr_storage_async**](EmailApi.md#ai_bcr_ocr_storage_async) | **POST** /email/AiBcr/ocr-storage | Ocr images from storage -*EmailApi* | [**ai_bcr_parse**](EmailApi.md#ai_bcr_parse) | **POST** /email/AiBcr/parse | Parse images to vCard properties -*EmailApi* | [**ai_bcr_parse_async**](EmailApi.md#ai_bcr_parse_async) | **POST** /email/AiBcr/parse | Parse images to vCard properties -*EmailApi* | [**ai_bcr_parse_model**](EmailApi.md#ai_bcr_parse_model) | **POST** /email/AiBcr/parse-model | Parse images to vCard document models -*EmailApi* | [**ai_bcr_parse_model_async**](EmailApi.md#ai_bcr_parse_model_async) | **POST** /email/AiBcr/parse-model | Parse images to vCard document models -*EmailApi* | [**ai_bcr_parse_ocr_data_model**](EmailApi.md#ai_bcr_parse_ocr_data_model) | **POST** /email/AiBcr/parse-ocr-data-model | Parse OCR data to vCard document models -*EmailApi* | [**ai_bcr_parse_ocr_data_model_async**](EmailApi.md#ai_bcr_parse_ocr_data_model_async) | **POST** /email/AiBcr/parse-ocr-data-model | Parse OCR data to vCard document models -*EmailApi* | [**ai_bcr_parse_storage**](EmailApi.md#ai_bcr_parse_storage) | **POST** /email/AiBcr/parse-storage | Parse images from storage to vCard files -*EmailApi* | [**ai_bcr_parse_storage_async**](EmailApi.md#ai_bcr_parse_storage_async) | **POST** /email/AiBcr/parse-storage | Parse images from storage to vCard files -*EmailApi* | [**ai_name_complete**](EmailApi.md#ai_name_complete) | **GET** /email/AiName/complete | The call proposes k most probable names for given starting characters -*EmailApi* | [**ai_name_complete_async**](EmailApi.md#ai_name_complete_async) | **GET** /email/AiName/complete | The call proposes k most probable names for given starting characters -*EmailApi* | [**ai_name_expand**](EmailApi.md#ai_name_expand) | **GET** /email/AiName/expand | Expands a person's name into a list of possible alternatives using options for expanding instructions -*EmailApi* | [**ai_name_expand_async**](EmailApi.md#ai_name_expand_async) | **GET** /email/AiName/expand | Expands a person's name into a list of possible alternatives using options for expanding instructions -*EmailApi* | [**ai_name_expand_parsed**](EmailApi.md#ai_name_expand_parsed) | **POST** /email/AiName/expand-parsed | Expands a person's parsed name into a list of possible alternatives using options for expanding instructions -*EmailApi* | [**ai_name_expand_parsed_async**](EmailApi.md#ai_name_expand_parsed_async) | **POST** /email/AiName/expand-parsed | Expands a person's parsed name into a list of possible alternatives using options for expanding instructions -*EmailApi* | [**ai_name_format**](EmailApi.md#ai_name_format) | **GET** /email/AiName/format | Formats a person's name in correct case and name order using options for formatting instructions -*EmailApi* | [**ai_name_format_async**](EmailApi.md#ai_name_format_async) | **GET** /email/AiName/format | Formats a person's name in correct case and name order using options for formatting instructions -*EmailApi* | [**ai_name_format_parsed**](EmailApi.md#ai_name_format_parsed) | **POST** /email/AiName/format-parsed | Formats a person's parsed name in correct case and name order using options for formatting instructions -*EmailApi* | [**ai_name_format_parsed_async**](EmailApi.md#ai_name_format_parsed_async) | **POST** /email/AiName/format-parsed | Formats a person's parsed name in correct case and name order using options for formatting instructions -*EmailApi* | [**ai_name_genderize**](EmailApi.md#ai_name_genderize) | **GET** /email/AiName/genderize | Detect person's gender from name string -*EmailApi* | [**ai_name_genderize_async**](EmailApi.md#ai_name_genderize_async) | **GET** /email/AiName/genderize | Detect person's gender from name string -*EmailApi* | [**ai_name_genderize_parsed**](EmailApi.md#ai_name_genderize_parsed) | **POST** /email/AiName/genderize-parsed | Detect person's gender from parsed name -*EmailApi* | [**ai_name_genderize_parsed_async**](EmailApi.md#ai_name_genderize_parsed_async) | **POST** /email/AiName/genderize-parsed | Detect person's gender from parsed name -*EmailApi* | [**ai_name_match**](EmailApi.md#ai_name_match) | **GET** /email/AiName/match | Compare people's names. Uses options for comparing instructions -*EmailApi* | [**ai_name_match_async**](EmailApi.md#ai_name_match_async) | **GET** /email/AiName/match | Compare people's names. Uses options for comparing instructions -*EmailApi* | [**ai_name_match_parsed**](EmailApi.md#ai_name_match_parsed) | **POST** /email/AiName/match-parsed | Compare people's parsed names and attributes. Uses options for comparing instructions -*EmailApi* | [**ai_name_match_parsed_async**](EmailApi.md#ai_name_match_parsed_async) | **POST** /email/AiName/match-parsed | Compare people's parsed names and attributes. Uses options for comparing instructions -*EmailApi* | [**ai_name_parse**](EmailApi.md#ai_name_parse) | **GET** /email/AiName/parse | Parse name to components -*EmailApi* | [**ai_name_parse_async**](EmailApi.md#ai_name_parse_async) | **GET** /email/AiName/parse | Parse name to components -*EmailApi* | [**ai_name_parse_email_address**](EmailApi.md#ai_name_parse_email_address) | **GET** /email/AiName/parse-email-address | Parse person's name out of an email address -*EmailApi* | [**ai_name_parse_email_address_async**](EmailApi.md#ai_name_parse_email_address_async) | **GET** /email/AiName/parse-email-address | Parse person's name out of an email address -*EmailApi* | [**append_email_message**](EmailApi.md#append_email_message) | **PUT** /email/client/Append | Adds an email from *.eml file to specified folder in email account -*EmailApi* | [**append_email_message_async**](EmailApi.md#append_email_message_async) | **PUT** /email/client/Append | Adds an email from *.eml file to specified folder in email account -*EmailApi* | [**append_email_model_message**](EmailApi.md#append_email_model_message) | **PUT** /email/client/AppendModel | Adds an email from model to specified folder in email account -*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_calendar_model_to_mapi_model**](EmailApi.md#convert_calendar_model_to_mapi_model) | **PUT** /email/CalendarModel/model-as-mapi-model | Converts CalendarDto to MapiCalendarDto. -*EmailApi* | [**convert_calendar_model_to_mapi_model_async**](EmailApi.md#convert_calendar_model_to_mapi_model_async) | **PUT** /email/CalendarModel/model-as-mapi-model | Converts CalendarDto to MapiCalendarDto. -*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_contact_model_to_mapi_model**](EmailApi.md#convert_contact_model_to_mapi_model) | **PUT** /email/ContactModel/model-as-mapi-model | Converts ContactDto to MapiContactDto. -*EmailApi* | [**convert_contact_model_to_mapi_model_async**](EmailApi.md#convert_contact_model_to_mapi_model_async) | **PUT** /email/ContactModel/model-as-mapi-model | Converts ContactDto to MapiContactDto. -*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* | [**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* | [**convert_email_model_to_mapi_model**](EmailApi.md#convert_email_model_to_mapi_model) | **PUT** /email/model/model-as-mapi-model | Converts EmailDto to MapiMessageDto. -*EmailApi* | [**convert_email_model_to_mapi_model_async**](EmailApi.md#convert_email_model_to_mapi_model_async) | **PUT** /email/model/model-as-mapi-model | Converts EmailDto to MapiMessageDto. -*EmailApi* | [**convert_mapi_calendar_model_to_calendar_model**](EmailApi.md#convert_mapi_calendar_model_to_calendar_model) | **PUT** /email/MapiCalendar/model-as-calendar-model | Converts MAPI calendar model to CalendarDto model -*EmailApi* | [**convert_mapi_calendar_model_to_calendar_model_async**](EmailApi.md#convert_mapi_calendar_model_to_calendar_model_async) | **PUT** /email/MapiCalendar/model-as-calendar-model | Converts MAPI calendar model to CalendarDto model -*EmailApi* | [**convert_mapi_calendar_model_to_file**](EmailApi.md#convert_mapi_calendar_model_to_file) | **PUT** /email/MapiCalendar/model-as-file/{destinationFormat} | Converts MAPI calendar model to specified format and returns as file -*EmailApi* | [**convert_mapi_calendar_model_to_file_async**](EmailApi.md#convert_mapi_calendar_model_to_file_async) | **PUT** /email/MapiCalendar/model-as-file/{destinationFormat} | Converts MAPI calendar model to specified format and returns as file -*EmailApi* | [**convert_mapi_contact_model_to_contact_model**](EmailApi.md#convert_mapi_contact_model_to_contact_model) | **PUT** /email/MapiContact/model-as-contact-model | Converts MAPI contact model to ContactDto model -*EmailApi* | [**convert_mapi_contact_model_to_contact_model_async**](EmailApi.md#convert_mapi_contact_model_to_contact_model_async) | **PUT** /email/MapiContact/model-as-contact-model | Converts MAPI contact model to ContactDto model -*EmailApi* | [**convert_mapi_contact_model_to_file**](EmailApi.md#convert_mapi_contact_model_to_file) | **PUT** /email/MapiContact/model-as-file/{destinationFormat} | Converts MAPI contact model to specified format and returns as file -*EmailApi* | [**convert_mapi_contact_model_to_file_async**](EmailApi.md#convert_mapi_contact_model_to_file_async) | **PUT** /email/MapiContact/model-as-file/{destinationFormat} | Converts MAPI contact model to specified format and returns as file -*EmailApi* | [**convert_mapi_message_model_to_email_model**](EmailApi.md#convert_mapi_message_model_to_email_model) | **PUT** /email/MapiMessage/model-as-email-model | Converts MAPI message model to EmailDto model -*EmailApi* | [**convert_mapi_message_model_to_email_model_async**](EmailApi.md#convert_mapi_message_model_to_email_model_async) | **PUT** /email/MapiMessage/model-as-email-model | Converts MAPI message model to EmailDto model -*EmailApi* | [**convert_mapi_message_model_to_file**](EmailApi.md#convert_mapi_message_model_to_file) | **PUT** /email/MapiMessage/model-as-file/{destinationFormat} | Converts MAPI message model to specified format and returns as file -*EmailApi* | [**convert_mapi_message_model_to_file_async**](EmailApi.md#convert_mapi_message_model_to_file_async) | **PUT** /email/MapiMessage/model-as-file/{destinationFormat} | Converts MAPI message 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 -*EmailApi* | [**create_contact_async**](EmailApi.md#create_contact_async) | **PUT** /email/Contact/{format}/{name} | Create contact document -*EmailApi* | [**create_email**](EmailApi.md#create_email) | **PUT** /email/{fileName} | Create an email document -*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} | -*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} -*EmailApi* | [**delete_calendar_property_async**](EmailApi.md#delete_calendar_property_async) | **DELETE** /email/Calendar/{name}/properties/{memberName}/{index} | Deletes indexed property by index and name. To delete Reminder attachment, use path ReminderAttachment/{ReminderIndex}/{AttachmentIndex} -*EmailApi* | [**delete_contact_property**](EmailApi.md#delete_contact_property) | **DELETE** /email/Contact/{format}/{name}/properties/{memberName}/{index} | Delete property from indexed property list -*EmailApi* | [**delete_contact_property_async**](EmailApi.md#delete_contact_property_async) | **DELETE** /email/Contact/{format}/{name}/properties/{memberName}/{index} | Delete property from indexed property list -*EmailApi* | [**delete_email_folder**](EmailApi.md#delete_email_folder) | **DELETE** /email/client/DeleteFolder | Delete a folder in email account -*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_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 -*EmailApi* | [**delete_mapi_properties_async**](EmailApi.md#delete_mapi_properties_async) | **DELETE** /email/Mapi/{name}/properties | Delete document properties -*EmailApi* | [**discover_email_config**](EmailApi.md#discover_email_config) | **GET** /email/config/discover | Discover email accounts by email address. Does not validate discovered accounts. -*EmailApi* | [**discover_email_config_async**](EmailApi.md#discover_email_config_async) | **GET** /email/config/discover | Discover email accounts by email address. Does not validate discovered accounts. -*EmailApi* | [**discover_email_config_oauth**](EmailApi.md#discover_email_config_oauth) | **POST** /email/config/discover/oauth | Discover email accounts by email address. Validates discovered accounts using OAuth 2.0. -*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} | -*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_mapi_model**](EmailApi.md#get_calendar_file_as_mapi_model) | **PUT** /email/MapiCalendar/file-as-model | Converts calendar file to a MAPI model representation -*EmailApi* | [**get_calendar_file_as_mapi_model_async**](EmailApi.md#get_calendar_file_as_mapi_model_async) | **PUT** /email/MapiCalendar/file-as-model | Converts calendar file to a MAPI model representation -*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 -*EmailApi* | [**get_calendar_model_async**](EmailApi.md#get_calendar_model_async) | **GET** /email/CalendarModel/{name} | Get calendar file -*EmailApi* | [**get_calendar_model_as_alternate**](EmailApi.md#get_calendar_model_as_alternate) | **GET** /email/CalendarModel/{name}/as-alternate/{calendarAction} | Get iCalendar from storage as AlternateView -*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_mapi_model**](EmailApi.md#get_contact_file_as_mapi_model) | **PUT** /email/MapiContact/{fileFormat}/file-as-model | Converts contact file to a MAPI model representation -*EmailApi* | [**get_contact_file_as_mapi_model_async**](EmailApi.md#get_contact_file_as_mapi_model_async) | **PUT** /email/MapiContact/{fileFormat}/file-as-model | Converts contact file to a MAPI model representation -*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. -*EmailApi* | [**get_contact_model_async**](EmailApi.md#get_contact_model_async) | **GET** /email/ContactModel/{format}/{name} | Get contact document. -*EmailApi* | [**get_contact_model_list**](EmailApi.md#get_contact_model_list) | **GET** /email/ContactModel/{format} | Get contact list from storage folder. -*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 | -*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 -*EmailApi* | [**get_email_as_file_async**](EmailApi.md#get_email_as_file_async) | **GET** /email/{fileName}/as-file/{format} | Converts email document from storage to specified format and returns as file -*EmailApi* | [**get_email_attachment**](EmailApi.md#get_email_attachment) | **GET** /email/{fileName}/attachments/{attachment} | Get email attachment by name -*EmailApi* | [**get_email_attachment_async**](EmailApi.md#get_email_attachment_async) | **GET** /email/{fileName}/attachments/{attachment} | Get email attachment by name -*EmailApi* | [**get_email_client_account**](EmailApi.md#get_email_client_account) | **GET** /email/client/email-client-account | Get email client account from storage -*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_mapi_model**](EmailApi.md#get_email_file_as_mapi_model) | **PUT** /email/MapiMessage/{fileFormat}/file-as-model | Converts email file to a MAPI model representation -*EmailApi* | [**get_email_file_as_mapi_model_async**](EmailApi.md#get_email_file_as_mapi_model_async) | **PUT** /email/MapiMessage/{fileFormat}/file-as-model | Converts email file to a MAPI model representation -*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} | -*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 -*EmailApi* | [**get_mapi_attachments_async**](EmailApi.md#get_mapi_attachments_async) | **GET** /email/Mapi/{name}/attachments | Get document attachment list -*EmailApi* | [**get_mapi_calendar_model**](EmailApi.md#get_mapi_calendar_model) | **GET** /email/MapiCalendar/{name} | Get MAPI calendar document. -*EmailApi* | [**get_mapi_calendar_model_async**](EmailApi.md#get_mapi_calendar_model_async) | **GET** /email/MapiCalendar/{name} | Get MAPI calendar document. -*EmailApi* | [**get_mapi_contact_model**](EmailApi.md#get_mapi_contact_model) | **GET** /email/MapiContact/{format}/{name} | Get MAPI contact document. -*EmailApi* | [**get_mapi_contact_model_async**](EmailApi.md#get_mapi_contact_model_async) | **GET** /email/MapiContact/{format}/{name} | Get MAPI contact document. -*EmailApi* | [**get_mapi_list**](EmailApi.md#get_mapi_list) | **GET** /email/Mapi | Get document list from storage folder -*EmailApi* | [**get_mapi_list_async**](EmailApi.md#get_mapi_list_async) | **GET** /email/Mapi | Get document list from storage folder -*EmailApi* | [**get_mapi_message_model**](EmailApi.md#get_mapi_message_model) | **GET** /email/MapiMessage/{format}/{name} | Get MAPI message document. -*EmailApi* | [**get_mapi_message_model_async**](EmailApi.md#get_mapi_message_model_async) | **GET** /email/MapiMessage/{format}/{name} | Get MAPI message document. -*EmailApi* | [**get_mapi_properties**](EmailApi.md#get_mapi_properties) | **GET** /email/Mapi/{name}/properties | Get document properties -*EmailApi* | [**get_mapi_properties_async**](EmailApi.md#get_mapi_properties_async) | **GET** /email/Mapi/{name}/properties | Get document properties -*EmailApi* | [**is_email_address_disposable**](EmailApi.md#is_email_address_disposable) | **GET** /email/disposable/isDisposable/{address} | Check email address is disposable -*EmailApi* | [**is_email_address_disposable_async**](EmailApi.md#is_email_address_disposable_async) | **GET** /email/disposable/isDisposable/{address} | Check email address is disposable -*EmailApi* | [**list_email_folders**](EmailApi.md#list_email_folders) | **GET** /email/client/ListFolders | Get folders list in email account -*EmailApi* | [**list_email_folders_async**](EmailApi.md#list_email_folders_async) | **GET** /email/client/ListFolders | Get folders list in email account -*EmailApi* | [**list_email_messages**](EmailApi.md#list_email_messages) | **GET** /email/client/ListMessages | Get messages from folder, filtered by query -*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* | [**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. -*EmailApi* | [**save_contact_model_async**](EmailApi.md#save_contact_model_async) | **PUT** /email/ContactModel/{format}/{name} | Save contact. -*EmailApi* | [**save_email_client_account**](EmailApi.md#save_email_client_account) | **PUT** /email/client/email-client-account | Create email client account file (*.account) with any of supported credentials -*EmailApi* | [**save_email_client_account_async**](EmailApi.md#save_email_client_account_async) | **PUT** /email/client/email-client-account | Create email client account file (*.account) with any of supported credentials -*EmailApi* | [**save_email_client_multi_account**](EmailApi.md#save_email_client_multi_account) | **PUT** /email/client/multi-account | Create email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\". -*EmailApi* | [**save_email_client_multi_account_async**](EmailApi.md#save_email_client_multi_account_async) | **PUT** /email/client/multi-account | Create email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\". -*EmailApi* | [**save_email_model**](EmailApi.md#save_email_model) | **PUT** /email/model/{format}/{name} | Save email document. -*EmailApi* | [**save_email_model_async**](EmailApi.md#save_email_model_async) | **PUT** /email/model/{format}/{name} | Save email document. -*EmailApi* | [**save_mail_account**](EmailApi.md#save_mail_account) | **POST** /email/client/SaveMailAccount | Create email account file (*.account) with login/password authentication -*EmailApi* | [**save_mail_account_async**](EmailApi.md#save_mail_account_async) | **POST** /email/client/SaveMailAccount | Create email account file (*.account) with login/password authentication -*EmailApi* | [**save_mail_o_auth_account**](EmailApi.md#save_mail_o_auth_account) | **POST** /email/client/SaveMailOAuthAccount | Create email account file (*.account) with OAuth -*EmailApi* | [**save_mail_o_auth_account_async**](EmailApi.md#save_mail_o_auth_account_async) | **POST** /email/client/SaveMailOAuthAccount | Create email account file (*.account) with OAuth -*EmailApi* | [**save_mapi_calendar_model**](EmailApi.md#save_mapi_calendar_model) | **PUT** /email/MapiCalendar/{format}/{name} | Save MAPI Calendar to storage. -*EmailApi* | [**save_mapi_calendar_model_async**](EmailApi.md#save_mapi_calendar_model_async) | **PUT** /email/MapiCalendar/{format}/{name} | Save MAPI Calendar to storage. -*EmailApi* | [**save_mapi_contact_model**](EmailApi.md#save_mapi_contact_model) | **PUT** /email/MapiContact/{format}/{name} | Save MAPI Contact to storage. -*EmailApi* | [**save_mapi_contact_model_async**](EmailApi.md#save_mapi_contact_model_async) | **PUT** /email/MapiContact/{format}/{name} | Save MAPI Contact to storage. -*EmailApi* | [**save_mapi_message_model**](EmailApi.md#save_mapi_message_model) | **PUT** /email/MapiMessage/{format}/{name} | Save MAPI message to storage. -*EmailApi* | [**save_mapi_message_model_async**](EmailApi.md#save_mapi_message_model_async) | **PUT** /email/MapiMessage/{format}/{name} | Save MAPI message to storage. -*EmailApi* | [**send_email**](EmailApi.md#send_email) | **POST** /email/client/Send | Send an email from *.eml file located on storage -*EmailApi* | [**send_email_async**](EmailApi.md#send_email_async) | **POST** /email/client/Send | Send an email from *.eml file located on storage -*EmailApi* | [**send_email_mime**](EmailApi.md#send_email_mime) | **POST** /email/client/SendMime | Send an email specified by MIME in request -*EmailApi* | [**send_email_mime_async**](EmailApi.md#send_email_mime_async) | **POST** /email/client/SendMime | Send an email specified by MIME in request -*EmailApi* | [**send_email_model**](EmailApi.md#send_email_model) | **POST** /email/client/SendModel | Send an email specified by model in request -*EmailApi* | [**send_email_model_async**](EmailApi.md#send_email_model_async) | **POST** /email/client/SendModel | Send an email specified by model in request -*EmailApi* | [**set_email_property**](EmailApi.md#set_email_property) | **PUT** /email/{fileName}/properties/{propertyName} | Set email document property value -*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* | [**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} | -*EmailApi* | [**upload_file_async**](EmailApi.md#upload_file_async) | **PUT** /email/storage/file/{path} | +```python +app_key = 'Your App Key' +app_sid = 'Your App SID' +api = EmailCloud(app_key, app_sid) +``` -## Documentation for Models +All Aspose.Email Cloud functions are divided into groups and represented as `EmailCloud` fields: - - [AsposeEmailCloudSdk.models.AccountBaseRequest](AccountBaseRequest.md) - - [AsposeEmailCloudSdk.models.AddAttachmentRequest](AddAttachmentRequest.md) - - [AsposeEmailCloudSdk.models.AiBcrImage](AiBcrImage.md) - - [AsposeEmailCloudSdk.models.AiBcrOcrData](AiBcrOcrData.md) - - [AsposeEmailCloudSdk.models.AiBcrOcrDataPart](AiBcrOcrDataPart.md) - - [AsposeEmailCloudSdk.models.AiBcrOptions](AiBcrOptions.md) - - [AsposeEmailCloudSdk.models.AiBcrRq](AiBcrRq.md) - - [AsposeEmailCloudSdk.models.AiNameComponent](AiNameComponent.md) - - [AsposeEmailCloudSdk.models.AiNameCulturalContext](AiNameCulturalContext.md) - - [AsposeEmailCloudSdk.models.AiNameExtracted](AiNameExtracted.md) - - [AsposeEmailCloudSdk.models.AiNameExtractedComponent](AiNameExtractedComponent.md) - - [AsposeEmailCloudSdk.models.AiNameFormatted](AiNameFormatted.md) - - [AsposeEmailCloudSdk.models.AiNameGenderHypothesis](AiNameGenderHypothesis.md) - - [AsposeEmailCloudSdk.models.AiNameMatchResult](AiNameMatchResult.md) - - [AsposeEmailCloudSdk.models.AiNameMismatch](AiNameMismatch.md) - - [AsposeEmailCloudSdk.models.AiNameParsedRq](AiNameParsedRq.md) - - [AsposeEmailCloudSdk.models.AiNameWeighted](AiNameWeighted.md) - - [AsposeEmailCloudSdk.models.AiNameWeightedVariants](AiNameWeightedVariants.md) - - [AsposeEmailCloudSdk.models.AssociatedPerson](AssociatedPerson.md) - - [AsposeEmailCloudSdk.models.AttachmentBase](AttachmentBase.md) - - [AsposeEmailCloudSdk.models.BaseObject](BaseObject.md) - - [AsposeEmailCloudSdk.models.CalendarDto](CalendarDto.md) - - [AsposeEmailCloudSdk.models.CalendarDtoAlternateRq](CalendarDtoAlternateRq.md) - - [AsposeEmailCloudSdk.models.CalendarReminder](CalendarReminder.md) - - [AsposeEmailCloudSdk.models.ContactDto](ContactDto.md) - - [AsposeEmailCloudSdk.models.ContactPhoto](ContactPhoto.md) - - [AsposeEmailCloudSdk.models.ContentType](ContentType.md) - - [AsposeEmailCloudSdk.models.ContentTypeParameter](ContentTypeParameter.md) - - [AsposeEmailCloudSdk.models.CreateEmailRequest](CreateEmailRequest.md) - - [AsposeEmailCloudSdk.models.CustomerEvent](CustomerEvent.md) - - [AsposeEmailCloudSdk.models.DiscUsage](DiscUsage.md) - - [AsposeEmailCloudSdk.models.DiscoverEmailConfigRq](DiscoverEmailConfigRq.md) - - [AsposeEmailCloudSdk.models.EmailAccountConfig](EmailAccountConfig.md) - - [AsposeEmailCloudSdk.models.EmailAccountRequest](EmailAccountRequest.md) - - [AsposeEmailCloudSdk.models.EmailAddress](EmailAddress.md) - - [AsposeEmailCloudSdk.models.EmailClientAccount](EmailClientAccount.md) - - [AsposeEmailCloudSdk.models.EmailClientAccountCredentials](EmailClientAccountCredentials.md) - - [AsposeEmailCloudSdk.models.EmailClientMultiAccount](EmailClientMultiAccount.md) - - [AsposeEmailCloudSdk.models.EmailDocument](EmailDocument.md) - - [AsposeEmailCloudSdk.models.EmailDocumentResponse](EmailDocumentResponse.md) - - [AsposeEmailCloudSdk.models.EmailDto](EmailDto.md) - - [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) - - [AsposeEmailCloudSdk.models.EnumWithCustomOfInstantMessengerCategory](EnumWithCustomOfInstantMessengerCategory.md) - - [AsposeEmailCloudSdk.models.EnumWithCustomOfPhoneNumberCategory](EnumWithCustomOfPhoneNumberCategory.md) - - [AsposeEmailCloudSdk.models.EnumWithCustomOfPostalAddressCategory](EnumWithCustomOfPostalAddressCategory.md) - - [AsposeEmailCloudSdk.models.EnumWithCustomOfUrlCategory](EnumWithCustomOfUrlCategory.md) - - [AsposeEmailCloudSdk.models.Error](Error.md) - - [AsposeEmailCloudSdk.models.ErrorDetails](ErrorDetails.md) - - [AsposeEmailCloudSdk.models.FileVersions](FileVersions.md) - - [AsposeEmailCloudSdk.models.FilesList](FilesList.md) - - [AsposeEmailCloudSdk.models.FilesUploadResult](FilesUploadResult.md) - - [AsposeEmailCloudSdk.models.HierarchicalObjectRequest](HierarchicalObjectRequest.md) - - [AsposeEmailCloudSdk.models.HierarchicalObjectResponse](HierarchicalObjectResponse.md) - - [AsposeEmailCloudSdk.models.InstantMessengerAddress](InstantMessengerAddress.md) - - [AsposeEmailCloudSdk.models.Link](Link.md) - - [AsposeEmailCloudSdk.models.ListResponseOfAiBcrOcrData](ListResponseOfAiBcrOcrData.md) - - [AsposeEmailCloudSdk.models.ListResponseOfAiNameComponent](ListResponseOfAiNameComponent.md) - - [AsposeEmailCloudSdk.models.ListResponseOfAiNameExtracted](ListResponseOfAiNameExtracted.md) - - [AsposeEmailCloudSdk.models.ListResponseOfAiNameGenderHypothesis](ListResponseOfAiNameGenderHypothesis.md) - - [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) - - [AsposeEmailCloudSdk.models.ListResponseOfStorageFileLocation](ListResponseOfStorageFileLocation.md) - - [AsposeEmailCloudSdk.models.ListResponseOfStorageModelOfCalendarDto](ListResponseOfStorageModelOfCalendarDto.md) - - [AsposeEmailCloudSdk.models.ListResponseOfStorageModelOfContactDto](ListResponseOfStorageModelOfContactDto.md) - - [AsposeEmailCloudSdk.models.ListResponseOfStorageModelOfEmailDto](ListResponseOfStorageModelOfEmailDto.md) - - [AsposeEmailCloudSdk.models.ListResponseOfString](ListResponseOfString.md) - - [AsposeEmailCloudSdk.models.MailAddress](MailAddress.md) - - [AsposeEmailCloudSdk.models.MailServerFolder](MailServerFolder.md) - - [AsposeEmailCloudSdk.models.MapiAttachmentDto](MapiAttachmentDto.md) - - [AsposeEmailCloudSdk.models.MapiCalendarAttendeesDto](MapiCalendarAttendeesDto.md) - - [AsposeEmailCloudSdk.models.MapiCalendarEventRecurrenceDto](MapiCalendarEventRecurrenceDto.md) - - [AsposeEmailCloudSdk.models.MapiCalendarExceptionInfoDto](MapiCalendarExceptionInfoDto.md) - - [AsposeEmailCloudSdk.models.MapiCalendarRecurrencePatternDto](MapiCalendarRecurrencePatternDto.md) - - [AsposeEmailCloudSdk.models.MapiCalendarTimeZoneDto](MapiCalendarTimeZoneDto.md) - - [AsposeEmailCloudSdk.models.MapiCalendarTimeZoneInfoDto](MapiCalendarTimeZoneInfoDto.md) - - [AsposeEmailCloudSdk.models.MapiCalendarTimeZoneRuleDto](MapiCalendarTimeZoneRuleDto.md) - - [AsposeEmailCloudSdk.models.MapiContactElectronicAddressDto](MapiContactElectronicAddressDto.md) - - [AsposeEmailCloudSdk.models.MapiContactElectronicAddressPropertySetDto](MapiContactElectronicAddressPropertySetDto.md) - - [AsposeEmailCloudSdk.models.MapiContactEventPropertySetDto](MapiContactEventPropertySetDto.md) - - [AsposeEmailCloudSdk.models.MapiContactNamePropertySetDto](MapiContactNamePropertySetDto.md) - - [AsposeEmailCloudSdk.models.MapiContactOtherPropertySetDto](MapiContactOtherPropertySetDto.md) - - [AsposeEmailCloudSdk.models.MapiContactPersonalInfoPropertySetDto](MapiContactPersonalInfoPropertySetDto.md) - - [AsposeEmailCloudSdk.models.MapiContactPhysicalAddressDto](MapiContactPhysicalAddressDto.md) - - [AsposeEmailCloudSdk.models.MapiContactPhysicalAddressPropertySetDto](MapiContactPhysicalAddressPropertySetDto.md) - - [AsposeEmailCloudSdk.models.MapiContactProfessionalPropertySetDto](MapiContactProfessionalPropertySetDto.md) - - [AsposeEmailCloudSdk.models.MapiContactTelephonePropertySetDto](MapiContactTelephonePropertySetDto.md) - - [AsposeEmailCloudSdk.models.MapiElectronicAddressDto](MapiElectronicAddressDto.md) - - [AsposeEmailCloudSdk.models.MapiMessageItemBaseDto](MapiMessageItemBaseDto.md) - - [AsposeEmailCloudSdk.models.MapiPropertyDescriptor](MapiPropertyDescriptor.md) - - [AsposeEmailCloudSdk.models.MapiPropertyDto](MapiPropertyDto.md) - - [AsposeEmailCloudSdk.models.MapiRecipientDto](MapiRecipientDto.md) - - [AsposeEmailCloudSdk.models.MimeResponse](MimeResponse.md) - - [AsposeEmailCloudSdk.models.NameValuePair](NameValuePair.md) - - [AsposeEmailCloudSdk.models.ObjectExist](ObjectExist.md) - - [AsposeEmailCloudSdk.models.PhoneNumber](PhoneNumber.md) - - [AsposeEmailCloudSdk.models.PostalAddress](PostalAddress.md) - - [AsposeEmailCloudSdk.models.RecurrencePatternDto](RecurrencePatternDto.md) - - [AsposeEmailCloudSdk.models.ReminderAttendee](ReminderAttendee.md) - - [AsposeEmailCloudSdk.models.ReminderTrigger](ReminderTrigger.md) - - [AsposeEmailCloudSdk.models.SetEmailPropertyRequest](SetEmailPropertyRequest.md) - - [AsposeEmailCloudSdk.models.StorageExist](StorageExist.md) - - [AsposeEmailCloudSdk.models.StorageFile](StorageFile.md) - - [AsposeEmailCloudSdk.models.StorageFileRqOfEmailClientAccount](StorageFileRqOfEmailClientAccount.md) - - [AsposeEmailCloudSdk.models.StorageFileRqOfEmailClientMultiAccount](StorageFileRqOfEmailClientMultiAccount.md) - - [AsposeEmailCloudSdk.models.StorageFolderLocation](StorageFolderLocation.md) - - [AsposeEmailCloudSdk.models.StorageModelOfCalendarDto](StorageModelOfCalendarDto.md) - - [AsposeEmailCloudSdk.models.StorageModelOfContactDto](StorageModelOfContactDto.md) - - [AsposeEmailCloudSdk.models.StorageModelOfEmailDto](StorageModelOfEmailDto.md) - - [AsposeEmailCloudSdk.models.StorageModelRqOfCalendarDto](StorageModelRqOfCalendarDto.md) - - [AsposeEmailCloudSdk.models.StorageModelRqOfContactDto](StorageModelRqOfContactDto.md) - - [AsposeEmailCloudSdk.models.StorageModelRqOfEmailDto](StorageModelRqOfEmailDto.md) - - [AsposeEmailCloudSdk.models.StorageModelRqOfMapiCalendarDto](StorageModelRqOfMapiCalendarDto.md) - - [AsposeEmailCloudSdk.models.StorageModelRqOfMapiContactDto](StorageModelRqOfMapiContactDto.md) - - [AsposeEmailCloudSdk.models.StorageModelRqOfMapiMessageDto](StorageModelRqOfMapiMessageDto.md) - - [AsposeEmailCloudSdk.models.Url](Url.md) - - [AsposeEmailCloudSdk.models.ValueResponse](ValueResponse.md) - - [AsposeEmailCloudSdk.models.ValueTOfBoolean](ValueTOfBoolean.md) - - [AsposeEmailCloudSdk.models.AiBcrBase64Image](AiBcrBase64Image.md) - - [AsposeEmailCloudSdk.models.AiBcrBase64Rq](AiBcrBase64Rq.md) - - [AsposeEmailCloudSdk.models.AiBcrImageStorageFile](AiBcrImageStorageFile.md) - - [AsposeEmailCloudSdk.models.AiBcrParseOcrDataRq](AiBcrParseOcrDataRq.md) - - [AsposeEmailCloudSdk.models.AiBcrStorageImageRq](AiBcrStorageImageRq.md) - - [AsposeEmailCloudSdk.models.AiNameParsedMatchRq](AiNameParsedMatchRq.md) - - [AsposeEmailCloudSdk.models.AlternateView](AlternateView.md) - - [AsposeEmailCloudSdk.models.AppendEmailAccountBaseRequest](AppendEmailAccountBaseRequest.md) - - [AsposeEmailCloudSdk.models.Attachment](Attachment.md) - - [AsposeEmailCloudSdk.models.CalendarDtoList](CalendarDtoList.md) - - [AsposeEmailCloudSdk.models.ContactDtoList](ContactDtoList.md) - - [AsposeEmailCloudSdk.models.CreateFolderBaseRequest](CreateFolderBaseRequest.md) - - [AsposeEmailCloudSdk.models.DailyRecurrencePatternDto](DailyRecurrencePatternDto.md) - - [AsposeEmailCloudSdk.models.DeleteEmailThreadAccountRq](DeleteEmailThreadAccountRq.md) - - [AsposeEmailCloudSdk.models.DeleteFolderBaseRequest](DeleteFolderBaseRequest.md) - - [AsposeEmailCloudSdk.models.DeleteMessageBaseRequest](DeleteMessageBaseRequest.md) - - [AsposeEmailCloudSdk.models.DiscoverEmailConfigOauth](DiscoverEmailConfigOauth.md) - - [AsposeEmailCloudSdk.models.DiscoverEmailConfigPassword](DiscoverEmailConfigPassword.md) - - [AsposeEmailCloudSdk.models.EmailAccountConfigList](EmailAccountConfigList.md) - - [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.MapiBinaryPropertyDto](MapiBinaryPropertyDto.md) - - [AsposeEmailCloudSdk.models.MapiBooleanPropertyDto](MapiBooleanPropertyDto.md) - - [AsposeEmailCloudSdk.models.MapiCalendarDailyRecurrencePatternDto](MapiCalendarDailyRecurrencePatternDto.md) - - [AsposeEmailCloudSdk.models.MapiCalendarDto](MapiCalendarDto.md) - - [AsposeEmailCloudSdk.models.MapiCalendarWeeklyRecurrencePatternDto](MapiCalendarWeeklyRecurrencePatternDto.md) - - [AsposeEmailCloudSdk.models.MapiCalendarYearlyAndMonthlyRecurrencePatternDto](MapiCalendarYearlyAndMonthlyRecurrencePatternDto.md) - - [AsposeEmailCloudSdk.models.MapiContactDto](MapiContactDto.md) - - [AsposeEmailCloudSdk.models.MapiContactPhotoDto](MapiContactPhotoDto.md) - - [AsposeEmailCloudSdk.models.MapiDateTimePropertyDto](MapiDateTimePropertyDto.md) - - [AsposeEmailCloudSdk.models.MapiFileAsPropertyDto](MapiFileAsPropertyDto.md) - - [AsposeEmailCloudSdk.models.MapiImportancePropertyDto](MapiImportancePropertyDto.md) - - [AsposeEmailCloudSdk.models.MapiIntPropertyDto](MapiIntPropertyDto.md) - - [AsposeEmailCloudSdk.models.MapiKnownPropertyDescriptor](MapiKnownPropertyDescriptor.md) - - [AsposeEmailCloudSdk.models.MapiLegacyFreeBusyPropertyDto](MapiLegacyFreeBusyPropertyDto.md) - - [AsposeEmailCloudSdk.models.MapiMessageDto](MapiMessageDto.md) - - [AsposeEmailCloudSdk.models.MapiMultiIntPropertyDto](MapiMultiIntPropertyDto.md) - - [AsposeEmailCloudSdk.models.MapiMultiStringPropertyDto](MapiMultiStringPropertyDto.md) - - [AsposeEmailCloudSdk.models.MapiPhysicalAddressIndexPropertyDto](MapiPhysicalAddressIndexPropertyDto.md) - - [AsposeEmailCloudSdk.models.MapiPidPropertyDescriptor](MapiPidPropertyDescriptor.md) - - [AsposeEmailCloudSdk.models.MapiResponseTypePropertyDto](MapiResponseTypePropertyDto.md) - - [AsposeEmailCloudSdk.models.MapiStringPropertyDto](MapiStringPropertyDto.md) - - [AsposeEmailCloudSdk.models.MonthlyRecurrencePatternDto](MonthlyRecurrencePatternDto.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) - - [AsposeEmailCloudSdk.models.SendEmailBaseRequest](SendEmailBaseRequest.md) - - [AsposeEmailCloudSdk.models.SendEmailMimeBaseRequest](SendEmailMimeBaseRequest.md) - - [AsposeEmailCloudSdk.models.SendEmailModelRq](SendEmailModelRq.md) - - [AsposeEmailCloudSdk.models.SetMessageReadFlagAccountBaseRequest](SetMessageReadFlagAccountBaseRequest.md) - - [AsposeEmailCloudSdk.models.StorageFileLocation](StorageFileLocation.md) - - [AsposeEmailCloudSdk.models.TaskRegeneratingPatternDto](TaskRegeneratingPatternDto.md) - - [AsposeEmailCloudSdk.models.WeeklyRecurrencePatternDto](WeeklyRecurrencePatternDto.md) - - [AsposeEmailCloudSdk.models.YearlyRecurrencePatternDto](YearlyRecurrencePatternDto.md) - - [AsposeEmailCloudSdk.models.AiBcrParseStorageRq](AiBcrParseStorageRq.md) - - [AsposeEmailCloudSdk.models.AppendEmailBaseRequest](AppendEmailBaseRequest.md) - - [AsposeEmailCloudSdk.models.AppendEmailMimeBaseRequest](AppendEmailMimeBaseRequest.md) - - [AsposeEmailCloudSdk.models.AppendEmailModelRq](AppendEmailModelRq.md) - - [AsposeEmailCloudSdk.models.MapiPidLidPropertyDescriptor](MapiPidLidPropertyDescriptor.md) - - [AsposeEmailCloudSdk.models.MapiPidNamePropertyDescriptor](MapiPidNamePropertyDescriptor.md) - - [AsposeEmailCloudSdk.models.MapiPidTagPropertyDescriptor](MapiPidTagPropertyDescriptor.md) +API | Description +--- | ----------- +[EmailCloud.**mapi**](MapiGroup.md) | MAPI operations. +[EmailCloud.**client**](ClientGroup.md) | Builtin Email client operations. +[EmailCloud.**ai**](AiGroup.md) | AI powered operations. +[EmailCloud.**cloud_storage**](CloudStorageGroup.md) | Cloud file storage operations. +[EmailCloud.**calendar**](CalendarApi_list.md) | iCalendar document operations. +[EmailCloud.**contact**](ContactApi_list.md) | Contact document operations. Supported formats: VCard, MSG, WebDav +[EmailCloud.**email**](EmailApi_list.md) | Email document (*.eml) operations. +[EmailCloud.**disposable_email**](DisposableEmailApi_list.md) | Check email address is disposable operations +[EmailCloud.**email_config**](EmailConfigApi_list.md) | Email server configuration discovery. + +List of all available models is available in [Models.md](Models.md) file. \ No newline at end of file diff --git a/sdk/docs/RecurrencePatternDto.md b/sdk/docs/RecurrencePatternDto.md index 375bff2..3450928 100644 --- a/sdk/docs/RecurrencePatternDto.md +++ b/sdk/docs/RecurrencePatternDto.md @@ -10,6 +10,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ReminderAttendee.md b/sdk/docs/ReminderAttendee.md index 7c5f0f2..4986565 100644 --- a/sdk/docs/ReminderAttendee.md +++ b/sdk/docs/ReminderAttendee.md @@ -2,10 +2,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**address** | **str** | Contains the email address. | [optional] +**address** | **str** | Contains the email address. | -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ReminderTrigger.md b/sdk/docs/ReminderTrigger.md index 9c552b5..2dfdc9c 100644 --- a/sdk/docs/ReminderTrigger.md +++ b/sdk/docs/ReminderTrigger.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/SaveEmailAccountRequest.md b/sdk/docs/SaveEmailAccountRequest.md deleted file mode 100644 index cf41aad..0000000 --- a/sdk/docs/SaveEmailAccountRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.SaveEmailAccountRequest -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**password** | **str** | Email account password | - - Parent class: [EmailAccountRequest](EmailAccountRequest.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/SaveOAuthEmailAccountRequest.md b/sdk/docs/SaveOAuthEmailAccountRequest.md deleted file mode 100644 index 0f26972..0000000 --- a/sdk/docs/SaveOAuthEmailAccountRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# AsposeEmailCloudSdk.models.SaveOAuthEmailAccountRequest -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_id** | **str** | OAuth client identifier | -**client_secret** | **str** | OAuth client secret | -**refresh_token** | **str** | OAuth refresh token | -**request_url** | **str** | The url to obtain access token. If not specified, will try to discover from email account host. | [optional] - - Parent class: [EmailAccountRequest](EmailAccountRequest.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/SendEmailBaseRequest.md b/sdk/docs/SendEmailBaseRequest.md deleted file mode 100644 index 97e1670..0000000 --- a/sdk/docs/SendEmailBaseRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.SendEmailBaseRequest -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email_file** | [**StorageFileLocation**](StorageFileLocation.md) | Email document (*.eml) file location in storage | - - 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/SendEmailMimeBaseRequest.md b/sdk/docs/SendEmailMimeBaseRequest.md deleted file mode 100644 index 78f787b..0000000 --- a/sdk/docs/SendEmailMimeBaseRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.SendEmailMimeBaseRequest -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**base64_mime_message** | **str** | Email document serialized as MIME | - - 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/SendEmailModelRq.md b/sdk/docs/SendEmailModelRq.md deleted file mode 100644 index d15b248..0000000 --- a/sdk/docs/SendEmailModelRq.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.SendEmailModelRq -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | [**EmailDto**](EmailDto.md) | Message to send | [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/SetEmailPropertyRequest.md b/sdk/docs/SetEmailPropertyRequest.md deleted file mode 100644 index 4e355c1..0000000 --- a/sdk/docs/SetEmailPropertyRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.SetEmailPropertyRequest -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email_property** | [**EmailProperty**](EmailProperty.md) | An email property that should be updated | -**storage_folder** | [**StorageFolderLocation**](StorageFolderLocation.md) | An email document location in storage | [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/SetMessageReadFlagAccountBaseRequest.md b/sdk/docs/SetMessageReadFlagAccountBaseRequest.md deleted file mode 100644 index 4463032..0000000 --- a/sdk/docs/SetMessageReadFlagAccountBaseRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.SetMessageReadFlagAccountBaseRequest -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message_id** | **str** | Message identifier | -**is_read** | **bool** | Specifies that message should be marked read or unread | - - 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/StorageApi.md b/sdk/docs/StorageApi.md new file mode 100644 index 0000000..b5d10de --- /dev/null +++ b/sdk/docs/StorageApi.md @@ -0,0 +1,109 @@ +# AsposeEmailCloudSdk.StorageApi + + + +# get_disc_usage + +```python +get_disc_usage(self, request: GetDiscUsageRequest) +``` + +Get disc usage + +### Return type + +DiscUsage + +### request Parameter +```python +GetDiscUsageRequest( + storage_name) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storage_name** | **str** | Storage name | [optional] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# get_file_versions + +```python +get_file_versions(self, request: GetFileVersionsRequest) +``` + +Get file versions + +### Return type + +FileVersions + +### request Parameter +```python +GetFileVersionsRequest( + path, + storage_name) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str** | File path e.g. '/file.ext' | + **storage_name** | **str** | Storage name | [optional] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# object_exists + +```python +object_exists(self, request: ObjectExistsRequest) +``` + +Check if file or folder exists + +### Return type + +ObjectExist + +### request Parameter +```python +ObjectExistsRequest( + path, + storage_name, + version_id) +``` + +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] + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + + +# exists + +```python +exists(self, request: StorageExistsRequest) +``` + +Check if storage exists + +### Return type + +StorageExist + +### request Parameter +```python +StorageExistsRequest( + storage_name) +``` + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storage_name** | **str** | Storage name | + +[[Back to top]](#) [[Back to Model list]](Models.md) [[Back to README]](README.md) + diff --git a/sdk/docs/StorageApi_list.md b/sdk/docs/StorageApi_list.md new file mode 100644 index 0000000..29212a2 --- /dev/null +++ b/sdk/docs/StorageApi_list.md @@ -0,0 +1,11 @@ + +## Documentation for StorageApi operations + +All URIs are relative to *https://api.aspose.cloud/v4.0* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_disc_usage**](StorageApi.md#get_disc_usage)| **GET** /email/storage/disc| Get disc usage +[**get_file_versions**](StorageApi.md#get_file_versions)| **GET** /email/storage/version/{path}| Get file versions +[**object_exists**](StorageApi.md#object_exists)| **GET** /email/storage/exist/{path}| Check if file or folder exists +[**exists**](StorageApi.md#exists)| **GET** /email/storage/{storageName}/exist| Check if storage exists diff --git a/sdk/docs/StorageExist.md b/sdk/docs/StorageExist.md index 5d58c63..6b55561 100644 --- a/sdk/docs/StorageExist.md +++ b/sdk/docs/StorageExist.md @@ -2,10 +2,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**exists** | **bool** | | +**exists** | **bool** | Shows that the storage exists. | -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/StorageFile.md b/sdk/docs/StorageFile.md index e69d4d1..cd85f6f 100644 --- a/sdk/docs/StorageFile.md +++ b/sdk/docs/StorageFile.md @@ -2,14 +2,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | | [optional] -**is_folder** | **bool** | | -**modified_date** | **datetime** | | [optional] -**size** | **int** | | -**path** | **str** | | [optional] +**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] -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/StorageFileLocation.md b/sdk/docs/StorageFileLocation.md index 29633ef..8b4b640 100644 --- a/sdk/docs/StorageFileLocation.md +++ b/sdk/docs/StorageFileLocation.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes Parent class: [StorageFolderLocation](StorageFolderLocation.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/StorageFileLocationList.md b/sdk/docs/StorageFileLocationList.md new file mode 100644 index 0000000..6ec1d8f --- /dev/null +++ b/sdk/docs/StorageFileLocationList.md @@ -0,0 +1,10 @@ +# AsposeEmailCloudSdk.models.StorageFileLocationList +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + + Parent class: [ListResponseOfStorageFileLocation](ListResponseOfStorageFileLocation.md) + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/StorageFileRqOfEmailClientAccount.md b/sdk/docs/StorageFileRqOfEmailClientAccount.md deleted file mode 100644 index 9de1aee..0000000 --- a/sdk/docs/StorageFileRqOfEmailClientAccount.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.StorageFileRqOfEmailClientAccount -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**EmailClientAccount**](EmailClientAccount.md) | | [optional] -**storage_file** | [**StorageFileLocation**](StorageFileLocation.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/StorageFileRqOfEmailClientMultiAccount.md b/sdk/docs/StorageFileRqOfEmailClientMultiAccount.md deleted file mode 100644 index c2b5c1a..0000000 --- a/sdk/docs/StorageFileRqOfEmailClientMultiAccount.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.StorageFileRqOfEmailClientMultiAccount -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**EmailClientMultiAccount**](EmailClientMultiAccount.md) | | [optional] -**storage_file** | [**StorageFileLocation**](StorageFileLocation.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/StorageFolderLocation.md b/sdk/docs/StorageFolderLocation.md index f601913..002cb01 100644 --- a/sdk/docs/StorageFolderLocation.md +++ b/sdk/docs/StorageFolderLocation.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/StorageModelOfCalendarDto.md b/sdk/docs/StorageModelOfCalendarDto.md index 94a379a..82b547b 100644 --- a/sdk/docs/StorageModelOfCalendarDto.md +++ b/sdk/docs/StorageModelOfCalendarDto.md @@ -2,11 +2,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**storage_file** | [**StorageFileLocation**](StorageFileLocation.md) | | [optional] -**value** | [**CalendarDto**](CalendarDto.md) | | [optional] +**storage_file** | [**StorageFileLocation**](StorageFileLocation.md) | | +**value** | [**CalendarDto**](CalendarDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/StorageModelOfContactDto.md b/sdk/docs/StorageModelOfContactDto.md index ab6b592..31cd362 100644 --- a/sdk/docs/StorageModelOfContactDto.md +++ b/sdk/docs/StorageModelOfContactDto.md @@ -2,11 +2,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**storage_file** | [**StorageFileLocation**](StorageFileLocation.md) | | [optional] -**value** | [**ContactDto**](ContactDto.md) | | [optional] +**storage_file** | [**StorageFileLocation**](StorageFileLocation.md) | | +**value** | [**ContactDto**](ContactDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/StorageModelOfEmailClientAccount.md b/sdk/docs/StorageModelOfEmailClientAccount.md new file mode 100644 index 0000000..e92102e --- /dev/null +++ b/sdk/docs/StorageModelOfEmailClientAccount.md @@ -0,0 +1,12 @@ +# AsposeEmailCloudSdk.models.StorageModelOfEmailClientAccount +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**storage_file** | [**StorageFileLocation**](StorageFileLocation.md) | | +**value** | [**EmailClientAccount**](EmailClientAccount.md) | | + + + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/StorageModelOfEmailClientMultiAccount.md b/sdk/docs/StorageModelOfEmailClientMultiAccount.md new file mode 100644 index 0000000..d972b8a --- /dev/null +++ b/sdk/docs/StorageModelOfEmailClientMultiAccount.md @@ -0,0 +1,12 @@ +# AsposeEmailCloudSdk.models.StorageModelOfEmailClientMultiAccount +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**storage_file** | [**StorageFileLocation**](StorageFileLocation.md) | | +**value** | [**EmailClientMultiAccount**](EmailClientMultiAccount.md) | | + + + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/StorageModelOfEmailDto.md b/sdk/docs/StorageModelOfEmailDto.md index 5f23610..9ecce13 100644 --- a/sdk/docs/StorageModelOfEmailDto.md +++ b/sdk/docs/StorageModelOfEmailDto.md @@ -2,11 +2,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**storage_file** | [**StorageFileLocation**](StorageFileLocation.md) | | [optional] -**value** | [**EmailDto**](EmailDto.md) | | [optional] +**storage_file** | [**StorageFileLocation**](StorageFileLocation.md) | | +**value** | [**EmailDto**](EmailDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/StorageModelOfMapiCalendarDto.md b/sdk/docs/StorageModelOfMapiCalendarDto.md new file mode 100644 index 0000000..c8acf3f --- /dev/null +++ b/sdk/docs/StorageModelOfMapiCalendarDto.md @@ -0,0 +1,12 @@ +# AsposeEmailCloudSdk.models.StorageModelOfMapiCalendarDto +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**storage_file** | [**StorageFileLocation**](StorageFileLocation.md) | | +**value** | [**MapiCalendarDto**](MapiCalendarDto.md) | | + + + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/StorageModelOfMapiContactDto.md b/sdk/docs/StorageModelOfMapiContactDto.md new file mode 100644 index 0000000..1b1d6df --- /dev/null +++ b/sdk/docs/StorageModelOfMapiContactDto.md @@ -0,0 +1,12 @@ +# AsposeEmailCloudSdk.models.StorageModelOfMapiContactDto +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**storage_file** | [**StorageFileLocation**](StorageFileLocation.md) | | +**value** | [**MapiContactDto**](MapiContactDto.md) | | + + + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/StorageModelOfMapiMessageDto.md b/sdk/docs/StorageModelOfMapiMessageDto.md new file mode 100644 index 0000000..da95392 --- /dev/null +++ b/sdk/docs/StorageModelOfMapiMessageDto.md @@ -0,0 +1,12 @@ +# AsposeEmailCloudSdk.models.StorageModelOfMapiMessageDto +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**storage_file** | [**StorageFileLocation**](StorageFileLocation.md) | | +**value** | [**MapiMessageDto**](MapiMessageDto.md) | | + + + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/StorageModelRqOfCalendarDto.md b/sdk/docs/StorageModelRqOfCalendarDto.md deleted file mode 100644 index 95332df..0000000 --- a/sdk/docs/StorageModelRqOfCalendarDto.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.StorageModelRqOfCalendarDto -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**CalendarDto**](CalendarDto.md) | | [optional] -**storage_folder** | [**StorageFolderLocation**](StorageFolderLocation.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/StorageModelRqOfContactDto.md b/sdk/docs/StorageModelRqOfContactDto.md deleted file mode 100644 index f7a7350..0000000 --- a/sdk/docs/StorageModelRqOfContactDto.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.StorageModelRqOfContactDto -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**ContactDto**](ContactDto.md) | | [optional] -**storage_folder** | [**StorageFolderLocation**](StorageFolderLocation.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/StorageModelRqOfEmailDto.md b/sdk/docs/StorageModelRqOfEmailDto.md deleted file mode 100644 index 687e5bc..0000000 --- a/sdk/docs/StorageModelRqOfEmailDto.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.StorageModelRqOfEmailDto -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**EmailDto**](EmailDto.md) | | [optional] -**storage_folder** | [**StorageFolderLocation**](StorageFolderLocation.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/StorageModelRqOfMapiCalendarDto.md b/sdk/docs/StorageModelRqOfMapiCalendarDto.md deleted file mode 100644 index 36d459e..0000000 --- a/sdk/docs/StorageModelRqOfMapiCalendarDto.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.StorageModelRqOfMapiCalendarDto -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**MapiCalendarDto**](MapiCalendarDto.md) | | [optional] -**storage_folder** | [**StorageFolderLocation**](StorageFolderLocation.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/StorageModelRqOfMapiContactDto.md b/sdk/docs/StorageModelRqOfMapiContactDto.md deleted file mode 100644 index 8954d90..0000000 --- a/sdk/docs/StorageModelRqOfMapiContactDto.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.StorageModelRqOfMapiContactDto -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**MapiContactDto**](MapiContactDto.md) | | [optional] -**storage_folder** | [**StorageFolderLocation**](StorageFolderLocation.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/StorageModelRqOfMapiMessageDto.md b/sdk/docs/StorageModelRqOfMapiMessageDto.md deleted file mode 100644 index b2e801d..0000000 --- a/sdk/docs/StorageModelRqOfMapiMessageDto.md +++ /dev/null @@ -1,12 +0,0 @@ -# AsposeEmailCloudSdk.models.StorageModelRqOfMapiMessageDto -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**MapiMessageDto**](MapiMessageDto.md) | | [optional] -**storage_folder** | [**StorageFolderLocation**](StorageFolderLocation.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/TaskRegeneratingPatternDto.md b/sdk/docs/TaskRegeneratingPatternDto.md index f9b0bf6..349e3f4 100644 --- a/sdk/docs/TaskRegeneratingPatternDto.md +++ b/sdk/docs/TaskRegeneratingPatternDto.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes Parent class: [RecurrencePatternDto](RecurrencePatternDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/Url.md b/sdk/docs/Url.md index 93ec09c..c1f8b60 100644 --- a/sdk/docs/Url.md +++ b/sdk/docs/Url.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ValueResponse.md b/sdk/docs/ValueResponse.md deleted file mode 100644 index 84f5166..0000000 --- a/sdk/docs/ValueResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# AsposeEmailCloudSdk.models.ValueResponse -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | Gets or sets string content. | [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/ValueTOfBoolean.md b/sdk/docs/ValueTOfBoolean.md index 379c179..32f991e 100644 --- a/sdk/docs/ValueTOfBoolean.md +++ b/sdk/docs/ValueTOfBoolean.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/ValueTOfString.md b/sdk/docs/ValueTOfString.md new file mode 100644 index 0000000..51c36d5 --- /dev/null +++ b/sdk/docs/ValueTOfString.md @@ -0,0 +1,11 @@ +# AsposeEmailCloudSdk.models.ValueTOfString +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **str** | | + + + +[[Back to Model list]](Models.md) [[Back to README]](README.md) + + diff --git a/sdk/docs/WeeklyRecurrencePatternDto.md b/sdk/docs/WeeklyRecurrencePatternDto.md index afbeb58..4d9e1b6 100644 --- a/sdk/docs/WeeklyRecurrencePatternDto.md +++ b/sdk/docs/WeeklyRecurrencePatternDto.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes Parent class: [RecurrencePatternDto](RecurrencePatternDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/docs/YearlyRecurrencePatternDto.md b/sdk/docs/YearlyRecurrencePatternDto.md index bdc0c2e..6a1832d 100644 --- a/sdk/docs/YearlyRecurrencePatternDto.md +++ b/sdk/docs/YearlyRecurrencePatternDto.md @@ -9,6 +9,6 @@ Name | Type | Description | Notes Parent class: [RecurrencePatternDto](RecurrencePatternDto.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) +[[Back to Model list]](Models.md) [[Back to README]](README.md) diff --git a/sdk/setup.py b/sdk/setup.py index cfa8e91..fb72982 100644 --- a/sdk/setup.py +++ b/sdk/setup.py @@ -8,7 +8,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "aspose-email-cloud" -VERSION = "20.7.0" +VERSION = "20.9.0.139" # To install the library, run the following # # python setup.py install diff --git a/tests/conftest.py b/tests/conftest.py index 2089e6f..9ebc546 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -5,49 +5,15 @@ sys.path.append(os.path.join(os.path.dirname(__file__), "../sdk")) from AsposeEmailCloudSdk import api, models -from AsposeEmailCloudSdk.models import requests import pytest -from datetime import timedelta, datetime class EmailApiData: - def __init__(self, email_api: api.EmailApi, folder, storage): - self.email = email_api # type: api.EmailApi + def __init__(self, email_cloud: api.EmailCloud, folder, storage): + self.api = email_cloud self.folder = folder self.storage = storage - def create_calendar(self, start_date_param=None): - """ - :return: string - """ - name = str(uuid.uuid4()) + '.ics' - start_date = ( - start_date_param if start_date_param is not None - else datetime.today() + timedelta(days=1)) - end_date = start_date + timedelta(hours=1) - request = requests.CreateCalendarRequest( - name, - models.HierarchicalObjectRequest( - models.HierarchicalObject('CALENDAR', internal_properties=[ - models.PrimitiveObject(name="LOCATION", value="location"), - models.PrimitiveObject("STARTDATE", None, start_date.isoformat()), - models.PrimitiveObject("ENDDATE", None, end_date.isoformat()), - models.HierarchicalObject("ORGANIZER", None, internal_properties=[ - models.PrimitiveObject("ADDRESS", value="organizer@am.ru"), - models.PrimitiveObject("DISPLAYNAME", value="Piu Man") - ]), - models.HierarchicalObject("ATTENDEES", internal_properties=[ - models.IndexedHierarchicalObject("ATTENDEE", index=0, internal_properties=[ - models.PrimitiveObject("ADDRESS", value="attendee@am.ru"), - models.PrimitiveObject("DISPLAYNAME", value="Attendee Name") - ]) - ]) - ]), - self.storage_folder() - )) - self.email.create_calendar(request) - return name - def storage_folder(self): return models.StorageFolderLocation(self.storage, self.folder) @@ -68,15 +34,15 @@ def td(request): app_sid = config["appsid"] app_key = config["appkey"] api_base_url = config.get("apibaseurl", "https://api-qa.aspose.cloud") - email_api = api.EmailApi(app_key, app_sid, api_base_url, 'v3.0') + email_cloud = api.EmailCloud(app_key, app_sid, api_base_url) auth_url = config.get("authurl") if auth_url: - email_api.api_client.configuration.auth_url = auth_url + email_cloud.email.api_client.configuration.auth_url = auth_url folder = str(uuid.uuid4()) storage = 'First Storage' - email_api.create_folder(requests.CreateFolderRequest(folder, storage)) - yield EmailApiData(email_api, folder, storage) - email_api.delete_folder(requests.DeleteFolderRequest(folder, storage, True)) + email_cloud.cloud_storage.folder.create_folder(models.CreateFolderRequest(folder, storage)) + yield EmailApiData(email_cloud, folder, storage) + email_cloud.cloud_storage.folder.delete_folder(models.DeleteFolderRequest(folder, storage, True)) def _get_config(request): diff --git a/tests/tests/ai_test.py b/tests/tests/ai_test.py index 20b18cf..ad3ad53 100644 --- a/tests/tests/ai_test.py +++ b/tests/tests/ai_test.py @@ -1,4 +1,3 @@ -import base64 import functools import os import sys @@ -8,7 +7,6 @@ sys.path.append(os.path.join(os.path.dirname(__file__), "../../sdk")) from AsposeEmailCloudSdk import models -from AsposeEmailCloudSdk.models import requests from conftest import EmailApiData @@ -18,58 +16,42 @@ def test_ai_bcr_parse_storage(td: EmailApiData): 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 - td.email.upload_file(requests.UploadFileRequest(storage_location, image_file, td.storage)) + td.api.cloud_storage.file.upload_file(models.UploadFileRequest(storage_location, image_file, td.storage)) out_folder = str(uuid.uuid4()) out_folder_path = td.folder + "/" + out_folder - td.email.create_folder(requests.CreateFolderRequest(out_folder_path, td.storage)) + td.api.cloud_storage.folder.create_folder(models.CreateFolderRequest(out_folder_path, td.storage)) # 2) Call business card recognition action - result = td.email.ai_bcr_parse_storage(requests.AiBcrParseStorageRequest( - models.AiBcrParseStorageRq( + result = td.api.ai.bcr.parse_storage(models.AiBcrParseStorageRequest( images=[models.AiBcrImageStorageFile(True, models.StorageFileLocation(td.storage, td.folder, file_name))], out_folder=models.StorageFolderLocation( - td.storage, out_folder_path)))) # type: models.ListResponseOfStorageFileLocation + td.storage, out_folder_path))) # 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] # 4) Download VCard file, produced by recognition method, check it contains text "Thomas" - downloaded = td.email.download_file(requests.DownloadFileRequest( + downloaded = td.api.cloud_storage.file.download_file(models.DownloadFileRequest( contact_file.folder_path + "/" + contact_file.file_name, td.storage)) with open(downloaded, 'r') as f: 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 - assert len(contact_properties.internal_properties) >= 3 @pytest.mark.ai def test_ai_bcr_parse(td: EmailApiData): image_file = os.path.join(os.path.dirname(__file__), '..', 'data', 'test_single_0001.png') - with open(image_file, 'rb') as f: - 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 + result = td.api.ai.bcr.parse(models.AiBcrParseRequest(image_file)) 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] # type: models.PrimitiveObject - assert 'Thomas' in display_name.value + assert 'Thomas' in result.value[0].display_name @pytest.mark.ai @pytest.mark.pipeline def test_ai_name_genderize(td: EmailApiData): """ Test name gender detection """ - result = td.email.ai_name_genderize( - requests.AiNameGenderizeRequest('John Cane')) # type: models.ListResponseOfAiNameGenderHypothesis + result = td.api.ai.name.genderize(models.AiNameGenderizeRequest('John Cane')) assert len(result.value) >= 1 assert result.value[0].gender == 'Male' @@ -77,10 +59,7 @@ def test_ai_name_genderize(td: EmailApiData): @pytest.mark.ai @pytest.mark.pipeline def test_ai_name_format(td: EmailApiData): - result = td.email.ai_name_format( - requests.AiNameFormatRequest( - 'Mr. John Michael Cane', - format='%t%L%f%m')) # type: models.AiNameFormatted + result = td.api.ai.name.format(models.AiNameFormatRequest('Mr. John Michael Cane', format='%t%L%f%m')) assert result.name == 'Mr. Cane J. M.' @@ -89,8 +68,7 @@ def test_ai_name_format(td: EmailApiData): def test_ai_name_match(td: EmailApiData): first = 'John Michael Cane' second = 'Cane J.' - result = td.email.ai_name_match( - requests.AiNameMatchRequest(first, second)) # type: models.AiNameMatchResult + result = td.api.ai.name.match(models.AiNameMatchRequest(first, second)) assert result.similarity >= 0.5 @@ -98,8 +76,7 @@ def test_ai_name_match(td: EmailApiData): @pytest.mark.pipeline def test_ai_name_expand(td: EmailApiData): name = 'Smith Bobby' - result = td.email.ai_name_expand( - requests.AiNameExpandRequest(name)) # type: models.AiNameWeightedVariants + result = td.api.ai.name.expand(models.AiNameExpandRequest(name)) expanded_names = list(weighted.name for weighted in result.names) assert 'Mr. Smith' in expanded_names assert 'B. Smith' in expanded_names @@ -109,8 +86,7 @@ def test_ai_name_expand(td: EmailApiData): @pytest.mark.pipeline def test_ai_name_complete(td: EmailApiData): prefix = 'Dav' - result = td.email.ai_name_complete( - requests.AiNameCompleteRequest(prefix)) # type: models.AiNameWeightedVariants + result = td.api.ai.name.complete(models.AiNameCompleteRequest(prefix)) names = list(prefix + weighted.name for weighted in result.names) assert 'David' in names assert 'Dave' in names @@ -121,24 +97,10 @@ def test_ai_name_complete(td: EmailApiData): @pytest.mark.pipeline def test_ai_name_parse_email_address(td: EmailApiData): address = 'john-cane@gmail.com' - result = td.email.ai_name_parse_email_address( - requests.AiNameParseEmailAddressRequest(address)) + result = td.api.ai.name.parse_email_address(models.AiNameParseEmailAddressRequest(address)) names = (extracted.name for extracted in result.value) 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.ai -def test_ai_bcr_parse_model(td: EmailApiData): - image_file = os.path.join(os.path.dirname(__file__), '..', 'data', 'test_single_0001.png') - with open(image_file, 'rb') as f: - 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 - first_vcard = result.value[0] - assert 'Thomas' in first_vcard.display_name diff --git a/tests/tests/calendar_test.py b/tests/tests/calendar_test.py index 951903e..072c6c1 100644 --- a/tests/tests/calendar_test.py +++ b/tests/tests/calendar_test.py @@ -2,83 +2,27 @@ import sys import uuid -import dateutil.parser import pytest sys.path.append(os.path.join(os.path.dirname(__file__), "../../sdk")) from AsposeEmailCloudSdk import models -from AsposeEmailCloudSdk.models import requests from conftest import EmailApiData from datetime import timedelta, datetime -from dateutil import tz - - -@pytest.mark.pipeline -def test_hierarchical(td: EmailApiData): - """ - HierarchicalObject serialization and deserialization test. - This test checks that BaseObject.Type field filled automatically by SDK - and properly used in serialization and deserialization - """ - calendar_file = td.create_calendar() - 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 - # noinspection PyTypeChecker - first = primitive_properties[0] # type: models.PrimitiveObject - assert first.value is not None - - -@pytest.mark.pipeline -def test_async(td: EmailApiData): - """ - Asynchronous API call test - """ - calendar_file = td.create_calendar() - calendar = td.email.get_calendar_async(requests.GetCalendarRequest(calendar_file, td.folder, td.storage)).get() - assert calendar.name == 'CALENDAR' - - -@pytest.mark.pipeline -def test_date_time(td: EmailApiData): - """ - Test datetime serialization and deserialization. - Checks that SDK and Backend do not change datetime during processing. - In most cases developer should carefully serialize and deserialize datetime - """ - start_date = datetime.today() + timedelta(days=1) - start_date = start_date.replace(microsecond=0, tzinfo=tz.tzutc()) - calendar_storage = td.create_calendar(start_date) - calendar = td.email.get_calendar(requests.GetCalendarRequest( - calendar_storage, - td.folder, - 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.pipeline def test_create_calendar_email(td: EmailApiData): calendar = calendar_dto() - - folder_location = models.StorageFolderLocation(td.storage, td.folder) calendar_file = str(uuid.uuid4()) + '.ics' - td.email.save_calendar_model( - requests.SaveCalendarModelRequest( - calendar_file, - models.StorageModelRqOfCalendarDto(calendar, folder_location))) - exist_result = td.email.object_exists( - requests.ObjectExistsRequest(td.folder + '/' + calendar_file, td.storage)) + td.api.calendar.save( + models.CalendarSaveRequest( + models.StorageFileLocation(td.storage, td.folder, calendar_file), + calendar, "Ics")) + exist_result = td.api.cloud_storage.storage.object_exists( + models.ObjectExistsRequest(td.folder + '/' + calendar_file, td.storage)) assert exist_result.exists - alternate = td.email.convert_calendar_model_to_alternate( - requests.ConvertCalendarModelToAlternateRequest( - models.CalendarDtoAlternateRq(calendar, 'Create'))) + alternate = td.api.calendar.as_alternate(models.CalendarAsAlternateRequest(calendar, "Create")) email = models.EmailDto( alternate_views=[alternate], @@ -89,13 +33,12 @@ def test_create_calendar_email(td: EmailApiData): body='Some body') email_file = str(uuid.uuid4()) + '.eml' - td.email.save_email_model( - requests.SaveEmailModelRequest( - 'Eml', email_file, - models.StorageModelRqOfEmailDto(email, folder_location))) + td.api.email.save(models.EmailSaveRequest( + models.StorageFileLocation(td.storage, td.folder, email_file), + email, 'Eml')) - downloaded = td.email.download_file( - requests.DownloadFileRequest( + downloaded = td.api.cloud_storage.file.download_file( + models.DownloadFileRequest( td.folder + '/' + email_file, td.storage)) with open(downloaded, 'r') as f: @@ -105,28 +48,27 @@ def test_create_calendar_email(td: EmailApiData): @pytest.mark.pipeline def test_calendar_converter(td: EmailApiData): - email = td.email + email = td.api # Create DTO with specified location: calendar = calendar_dto() # We can convert this DTO to a MAPI or ICS file - mapi = email.convert_calendar_model_to_file(requests.ConvertCalendarModelToFileRequest('Msg', calendar)) + mapi = email.calendar.as_file(models.CalendarAsFileRequest('Msg', calendar)) # Let's convert this file to ICS format: - ics = email.convert_calendar(requests.ConvertCalendarRequest('Ics', mapi)) + ics = email.calendar.convert(models.CalendarConvertRequest('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 calendar.location in file_data # We can also convert the file back to a CalendarDto - dto = email.get_calendar_file_as_model(requests.GetCalendarFileAsModelRequest(ics)) + dto = email.calendar.from_file(models.CalendarFromFileRequest(ics)) assert calendar.location == dto.location @pytest.mark.pipeline def test_convert_model_to_mapi_model(td: EmailApiData): calendar = calendar_dto() - mapi_calendar = td.email.convert_calendar_model_to_mapi_model( - requests.ConvertCalendarModelToMapiModelRequest(calendar)) + mapi_calendar = td.api.calendar.as_mapi(calendar) assert calendar.location == mapi_calendar.location assert 'MapiCalendarDailyRecurrencePatternDto' == mapi_calendar.recurrence.recurrence_pattern.discriminator diff --git a/tests/tests/contact_test.py b/tests/tests/contact_test.py index 3a0cad8..12e4184 100644 --- a/tests/tests/contact_test.py +++ b/tests/tests/contact_test.py @@ -6,65 +6,38 @@ sys.path.append(os.path.join(os.path.dirname(__file__), "../../sdk")) from AsposeEmailCloudSdk import models -from AsposeEmailCloudSdk.models import requests from conftest import EmailApiData @pytest.mark.pipeline -def test_contact_format(td: EmailApiData): - """ - Contact format specified as Enum, but SDK represents it as a string. - Test checks that value parsing works properly - """ - for contact_format in ['vcard', 'msg']: - extension = '.vcf' if contact_format == 'vcard' else '.msg' - name = str(uuid.uuid4()) + extension - td.email.create_contact( - requests.CreateContactRequest( - contact_format, - name, - models.HierarchicalObjectRequest( - models.HierarchicalObject('CONTACT', internal_properties=[]), - models.StorageFolderLocation(td.storage, td.folder)))) - object_exist = td.email.object_exists(requests.ObjectExistsRequest( - td.folder + "/" + name, - td.storage)) - assert object_exist.exists - - -@pytest.mark.pipeline -def test_contact_model(td: EmailApiData): +def test_contact_save(td: EmailApiData): contact = contact_dto() contact_file = str(uuid.uuid4()) + '.vcf' - td.email.save_contact_model( - requests.SaveContactModelRequest( - 'VCard', contact_file, - models.StorageModelRqOfContactDto( - contact, - models.StorageFolderLocation(td.storage, td.folder)))) - exist_result = td.email.object_exists( - requests.ObjectExistsRequest(td.folder + '/' + contact_file, td.storage)) + td.api.contact.save( + models.ContactSaveRequest( + models.StorageFileLocation(td.storage, td.folder, contact_file), + contact, 'VCard')) + exist_result = td.api.cloud_storage.storage.object_exists( + models.ObjectExistsRequest(td.folder + '/' + contact_file, td.storage)) assert exist_result.exists @pytest.mark.pipeline def test_contact_converter(td: EmailApiData): - email = td.email contact = contact_dto() - mapi = email.convert_contact_model_to_file(requests.ConvertContactModelToFileRequest('Msg', contact)) - vcard = email.convert_contact(requests.ConvertContactRequest('VCard', 'Msg', mapi)) + mapi = td.api.contact.as_file(models.ContactAsFileRequest('Msg', contact)) + vcard = td.api.contact.convert(models.ContactConvertRequest('VCard', 'Msg', mapi)) with open(vcard, 'r') as f: file_data = f.read() assert contact.surname in file_data - dto = email.get_contact_file_as_model(requests.GetContactFileAsModelRequest('VCard', vcard)) + dto = td.api.contact.from_file(models.ContactFromFileRequest('VCard', vcard)) assert contact.surname == dto.surname @pytest.mark.pipeline def test_convert_model_to_mapi_model(td: EmailApiData): contact = contact_dto() - mapi_contact = td.email.convert_contact_model_to_mapi_model( - requests.ConvertContactModelToMapiModelRequest(contact)) + mapi_contact = td.api.contact.as_mapi(contact) assert contact.surname == mapi_contact.name_info.surname diff --git a/tests/tests/email_model_test.py b/tests/tests/email_test.py similarity index 68% rename from tests/tests/email_model_test.py rename to tests/tests/email_test.py index 90e11be..19c43e5 100644 --- a/tests/tests/email_model_test.py +++ b/tests/tests/email_test.py @@ -5,29 +5,26 @@ sys.path.append(os.path.join(os.path.dirname(__file__), "../../sdk")) from AsposeEmailCloudSdk import models -from AsposeEmailCloudSdk.models import requests from datetime import datetime from conftest import EmailApiData @pytest.mark.pipeline def test_email_converter(td: EmailApiData): - email = td.email email_document = email_dto() - mapi = email.convert_email_model_to_file(requests.ConvertEmailModelToFileRequest('Msg', email_document)) - eml = email.convert_email(requests.ConvertEmailRequest('Eml', mapi)) + mapi = td.api.email.as_file(models.EmailAsFileRequest('Msg', email_document)) + eml = td.api.email.convert(models.EmailConvertRequest('Msg', 'Eml', mapi)) with open(eml, 'r') as f: file_data = f.read() assert email_document._from.address in file_data - dto = email.get_email_file_as_model(requests.GetEmailFileAsModelRequest(eml)) + dto = td.api.email.from_file(models.EmailFromFileRequest('Eml', eml)) assert email_document._from.address == dto._from.address @pytest.mark.pipeline def test_convert_model_to_mapi_model(td: EmailApiData): email_document = email_dto() - mapi_message = td.email.convert_email_model_to_mapi_model( - requests.ConvertEmailModelToMapiModelRequest(email_document)) + mapi_message = td.api.email.as_mapi(email_document) assert email_document.subject == mapi_message.subject diff --git a/tests/tests/hierarchical_mapi_test.py b/tests/tests/hierarchical_mapi_test.py deleted file mode 100644 index 892f99f..0000000 --- a/tests/tests/hierarchical_mapi_test.py +++ /dev/null @@ -1,57 +0,0 @@ -import os -import sys -import uuid - -import pytest - -sys.path.append(os.path.join(os.path.dirname(__file__), "../../sdk")) -from AsposeEmailCloudSdk import models -from AsposeEmailCloudSdk.models import requests -from conftest import EmailApiData - - -@pytest.mark.pipeline -def test_create_mapi(td: EmailApiData): - name = str(uuid.uuid4()) + '.msg' - td.email.create_mapi(requests.CreateMapiRequest( - name, - models.HierarchicalObjectRequest( - models.HierarchicalObject('IPM.Contact', internal_properties=[ - models.PrimitiveObject("Tag:'PidTagMessageClass':0x1A:String", None, "IPM.Contact"), - models.PrimitiveObject("Tag:'PidTagSubject':0x37:String"), - models.PrimitiveObject("Tag:'PidTagSubjectPrefix':0x3D:String"), - models.PrimitiveObject("Tag:'PidTagMessageFlags':0xE07:Integer32", value="8"), - models.PrimitiveObject("Tag:'PidTagNormalizedSubject':0xE1D:String"), - models.PrimitiveObject("Tag:'PidTagBody':0x1000:String"), - models.PrimitiveObject("Tag:'PidTagStoreSupportMask':0x340D:Integer32", value="265849"), - models.PrimitiveObject("Tag:'PidTagSurname':0x3A11:String", value="Surname"), - models.PrimitiveObject("Tag:'PidTagOtherTelephoneNumber':0x3A1F:String", value="+79123456789"), - models.PrimitiveObject("Tag:'':0x6662:Integer32", value="0"), - models.PrimitiveObject( - "Lid:'PidLidAddressBookProviderArrayType':0x8029:Integer32:00062004-0000-0000-c000-000000000046", - value="1")]), - 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: EmailApiData): - name = td.create_calendar() - attachment = td.create_calendar() - td.email.add_mapi_attachment(requests.AddMapiAttachmentRequest( - name, attachment, models.AddAttachmentRequest( - models.StorageFolderLocation(td.storage, td.folder), - models.StorageFolderLocation(td.storage, td.folder)))) - attachment_downloaded = td.email.get_calendar_attachment(requests.GetCalendarAttachmentRequest( - name, attachment, td.folder, td.storage)) - with open(attachment_downloaded, 'r') as f: - file_data = f.read() - assert 'Aspose Ltd' in file_data - - -@pytest.mark.pipeline -def test_mapi_get_properties(td: EmailApiData): - name = td.create_calendar() - properties = td.email.get_mapi_properties(requests.GetMapiPropertiesRequest( - name, td.folder, td.storage)) - assert 'IPM.Schedule' in properties.hierarchical_object.name diff --git a/tests/tests/mapi_calendar_test.py b/tests/tests/mapi_calendar_test.py index c3e9051..c60f60b 100644 --- a/tests/tests/mapi_calendar_test.py +++ b/tests/tests/mapi_calendar_test.py @@ -7,15 +7,13 @@ sys.path.append(os.path.join(os.path.dirname(__file__), "../../sdk")) from AsposeEmailCloudSdk import models -from AsposeEmailCloudSdk.models import requests from conftest import EmailApiData @pytest.mark.pipeline def test_mapi_model_to_general_model(td: EmailApiData): mapi_calendar = mapi_calendar_dto() - calendar = td.email.convert_mapi_calendar_model_to_calendar_model( - requests.ConvertMapiCalendarModelToCalendarModelRequest(mapi_calendar)) + calendar = td.api.mapi.calendar.as_calendar_dto(mapi_calendar) assert mapi_calendar.subject == calendar.summary assert mapi_calendar.location == calendar.location @@ -23,13 +21,11 @@ def test_mapi_model_to_general_model(td: EmailApiData): @pytest.mark.pipeline def test_mapi_model_to_file(td: EmailApiData): mapi_calendar = mapi_calendar_dto() - ics_file = td.email.convert_mapi_calendar_model_to_file( - requests.ConvertMapiCalendarModelToFileRequest('Ics', mapi_calendar)) + ics_file = td.api.mapi.calendar.as_file(models.MapiCalendarAsFileRequest('Ics', mapi_calendar)) with open(ics_file, 'r') as f: file_data = f.read() assert mapi_calendar.location in file_data - mapi_calendar_converted = td.email.get_calendar_file_as_mapi_model( - requests.GetCalendarFileAsMapiModelRequest(ics_file)) + mapi_calendar_converted = td.api.mapi.calendar.from_file(models.MapiCalendarFromFileRequest(ics_file)) assert mapi_calendar.location == mapi_calendar_converted.location @@ -37,12 +33,11 @@ def test_mapi_model_to_file(td: EmailApiData): def test_storage_support(td: EmailApiData): file_name = str(uuid.uuid4()) + '.msg' mapi_calendar = mapi_calendar_dto() - td.email.save_mapi_calendar_model( - requests.SaveMapiCalendarModelRequest( - file_name, 'Msg', - models.StorageModelRqOfMapiCalendarDto(mapi_calendar, td.storage_folder()))) - mapi_calendar_from_storage = td.email.get_mapi_calendar_model( - requests.GetMapiCalendarModelRequest(file_name, td.folder, td.storage)) + td.api.mapi.calendar.save(models.MapiCalendarSaveRequest( + models.StorageFileLocation(td.storage, td.folder, file_name), + mapi_calendar, 'Msg')) + mapi_calendar_from_storage = td.api.mapi.calendar.get( + models.MapiCalendarGetRequest(file_name, td.folder, td.storage)) assert mapi_calendar.location == mapi_calendar_from_storage.location diff --git a/tests/tests/mapi_contact_test.py b/tests/tests/mapi_contact_test.py index e24ee46..f6b6853 100644 --- a/tests/tests/mapi_contact_test.py +++ b/tests/tests/mapi_contact_test.py @@ -6,16 +6,13 @@ sys.path.append(os.path.join(os.path.dirname(__file__), "../../sdk")) from AsposeEmailCloudSdk import models -from AsposeEmailCloudSdk.models import requests from conftest import EmailApiData @pytest.mark.pipeline def test_mapi_model_to_general_model(td: EmailApiData): mapi_contact = mapi_contact_dto() - contact = td.email.convert_mapi_contact_model_to_contact_model( - requests.ConvertMapiContactModelToContactModelRequest(mapi_contact)) - + contact = td.api.mapi.contact.as_contact_dto(mapi_contact) assert mapi_contact.name_info.given_name == contact.given_name assert mapi_contact.name_info.surname == contact.surname @@ -23,13 +20,11 @@ def test_mapi_model_to_general_model(td: EmailApiData): @pytest.mark.pipeline def test_mapi_model_to_file(td: EmailApiData): mapi_contact = mapi_contact_dto() - vcard_file = td.email.convert_mapi_contact_model_to_file( - requests.ConvertMapiContactModelToFileRequest('VCard', mapi_contact)) + vcard_file = td.api.mapi.contact.as_file(models.MapiContactAsFileRequest('VCard', mapi_contact)) with open(vcard_file, 'r') as f: file_data = f.read() assert mapi_contact.name_info.given_name in file_data - mapi_contact_converted = td.email.get_contact_file_as_mapi_model( - requests.GetContactFileAsMapiModelRequest('VCard', vcard_file)) + mapi_contact_converted = td.api.mapi.contact.from_file(models.MapiContactFromFileRequest('VCard', vcard_file)) assert mapi_contact.name_info.surname == mapi_contact_converted.name_info.surname @@ -37,14 +32,11 @@ def test_mapi_model_to_file(td: EmailApiData): def test_storage_support(td: EmailApiData): file_name = str(uuid.uuid4()) + '.msg' mapi_contact = mapi_contact_dto() - - td.email.save_mapi_contact_model( - requests.SaveMapiContactModelRequest( - 'Msg', file_name, - models.StorageModelRqOfMapiContactDto(mapi_contact, td.storage_folder()))) - - mapi_contact_from_storage = td.email.get_mapi_contact_model( - requests.GetMapiContactModelRequest('Msg', file_name, td.folder, td.storage)) + td.api.mapi.contact.save(models.MapiContactSaveRequest( + models.StorageFileLocation(td.storage, td.folder, file_name), + mapi_contact, 'Msg')) + mapi_contact_from_storage = td.api.mapi.contact.get( + models.MapiContactGetRequest('Msg', file_name, td.folder, td.storage)) assert mapi_contact.name_info.surname == mapi_contact_from_storage.name_info.surname diff --git a/tests/tests/mapi_message_test.py b/tests/tests/mapi_message_test.py index 37722c4..86bb0e0 100644 --- a/tests/tests/mapi_message_test.py +++ b/tests/tests/mapi_message_test.py @@ -8,16 +8,13 @@ from datetime import datetime sys.path.append(os.path.join(os.path.dirname(__file__), "../../sdk")) from AsposeEmailCloudSdk import models -from AsposeEmailCloudSdk.models import requests from conftest import EmailApiData @pytest.mark.pipeline def test_mapi_model_to_general_model(td: EmailApiData): mapi_message = mapi_message_dto() - email = td.email.convert_mapi_message_model_to_email_model( - requests.ConvertMapiMessageModelToEmailModelRequest(mapi_message)) - + email = td.api.mapi.message.as_email_dto(mapi_message) assert mapi_message.subject == email.subject assert mapi_message.body == email.body @@ -25,15 +22,11 @@ def test_mapi_model_to_general_model(td: EmailApiData): @pytest.mark.pipeline def test_mapi_model_to_file(td: EmailApiData): mapi_message = mapi_message_dto() - eml_file = td.email.convert_mapi_message_model_to_file( - requests.ConvertMapiMessageModelToFileRequest('Eml', mapi_message)) - + eml_file = td.api.mapi.message.as_file(models.MapiMessageAsFileRequest('Eml', mapi_message)) with open(eml_file, 'r') as f: file_data = f.read() assert mapi_message.subject in file_data - mapi_message_converted = td.email.get_email_file_as_mapi_model( - requests.GetEmailFileAsMapiModelRequest('Eml', eml_file)) - + mapi_message_converted = td.api.mapi.message.from_file(models.MapiMessageFromFileRequest('Eml', eml_file)) assert mapi_message.subject == mapi_message_converted.subject # Subject is also available as MapiPropertyDto: # There are different Property descriptors supported. @@ -49,12 +42,11 @@ def test_mapi_model_to_file(td: EmailApiData): def test_storage_support(td: EmailApiData): file_name = str(uuid.uuid4()) + '.msg' mapi_message = mapi_message_dto() - td.email.save_mapi_message_model( - requests.SaveMapiMessageModelRequest( - 'Msg', file_name, - models.StorageModelRqOfMapiMessageDto(mapi_message, td.storage_folder()))) - mapi_message_from_storage = td.email.get_mapi_message_model( - requests.GetMapiMessageModelRequest('Msg', file_name, td.folder, td.storage)) + td.api.mapi.message.save(models.MapiMessageSaveRequest( + models.StorageFileLocation(td.storage, td.folder, file_name), + mapi_message, 'Msg')) + mapi_message_from_storage = td.api.mapi.message.get( + models.MapiMessageGetRequest('Msg', file_name, td.folder, td.storage)) assert mapi_message.subject == mapi_message_from_storage.subject diff --git a/tests/tests/other_test.py b/tests/tests/other_test.py index c08bb78..969fb24 100644 --- a/tests/tests/other_test.py +++ b/tests/tests/other_test.py @@ -6,7 +6,6 @@ sys.path.append(os.path.join(os.path.dirname(__file__), "../../sdk")) from AsposeEmailCloudSdk import models -from AsposeEmailCloudSdk.models import requests from conftest import EmailApiData @@ -18,8 +17,8 @@ def test_file(td: EmailApiData): sample = os.path.join(os.path.dirname(__file__), '..', 'data', 'sample.ics') file_name = str(uuid.uuid4()) + ".ics" storage_location = td.folder + "/" + file_name - td.email.upload_file(requests.UploadFileRequest(storage_location, sample, td.storage)) - downloaded = td.email.download_file(requests.DownloadFileRequest(storage_location, td.storage)) + td.api.cloud_storage.file.upload_file(models.UploadFileRequest(storage_location, sample, td.storage)) + downloaded = td.api.cloud_storage.file.download_file(models.DownloadFileRequest(storage_location, td.storage)) with open(downloaded, 'r') as f: file_data = f.read() assert 'Broadway' in file_data @@ -27,7 +26,7 @@ def test_file(td: EmailApiData): @pytest.mark.pipeline def test_discover_email_config(td: EmailApiData): - configs = td.email.discover_email_config(requests.DiscoverEmailConfigRequest('example@gmail.com', True)) + configs = td.api.email_config.discover(models.EmailConfigDiscoverRequest('example@gmail.com', True)) assert len(configs.value) >= 2 smtp = list(filter(lambda x: x.protocol_type == 'SMTP', configs.value))[0] # type: models.EmailAccountConfig assert smtp.host == 'smtp.gmail.com' @@ -35,11 +34,10 @@ def test_discover_email_config(td: EmailApiData): @pytest.mark.pipeline def test_is_disposable_email(td: EmailApiData): - disposable = td.email.is_email_address_disposable( - requests.IsEmailAddressDisposableRequest('example@mailcatch.com')) + disposable = td.api.disposable_email.is_disposable( + models.DisposableEmailIsDisposableRequest('example@mailcatch.com')) assert disposable.value - regular = td.email.is_email_address_disposable( - requests.IsEmailAddressDisposableRequest('example@gmail.com')) + regular = td.api.disposable_email.is_disposable(models.DisposableEmailIsDisposableRequest('example@gmail.com')) assert not regular.value @@ -51,16 +49,12 @@ def test_email_client_account(td: EmailApiData): 'SSLAuto', 'SMTP', models.EmailClientAccountPasswordCredentials( - 'login', None, 'password')) + 'login', 'password')) name = str(uuid.uuid4()) + '.account' - td.email.save_email_client_account( - requests.SaveEmailClientAccountRequest( - models.StorageFileRqOfEmailClientAccount( - account, models.StorageFileLocation( - td.storage, td.folder, name)))) - result = td.email.get_email_client_account( - requests.GetEmailClientAccountRequest( - name, td.folder, td.storage)) + td.api.client.account.save(models.ClientAccountSaveRequest( + models.StorageFileLocation(td.storage, td.folder, name), + account)) + result = td.api.client.account.get(models.ClientAccountGetRequest(name, td.folder, td.storage)) assert account.host == result.host # noinspection PyTypeChecker account_credentials = account.credentials # type: models.EmailClientAccountPasswordCredentials @@ -76,25 +70,21 @@ def test_email_client_multi_account(td: EmailApiData): multi_account = models.EmailClientMultiAccount( [models.EmailClientAccount('imap.gmail.com', 993, 'SSLAuto', 'IMAP', models.EmailClientAccountPasswordCredentials( - 'example@gmail.com', None, 'password')), + 'example@gmail.com', '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'))) + 'example@gmail.com', 'password'))) file_name = str(uuid.uuid4()) + '.multi.account' - folder = td.folder - storage = td.storage - email = td.email # Save multi account - email.save_email_client_multi_account(requests.SaveEmailClientMultiAccountRequest( - models.StorageFileRqOfEmailClientMultiAccount( - multi_account, - models.StorageFileLocation(storage, folder, file_name)))) + td.api.client.account.save_multi(models.ClientAccountSaveMultiRequest( + models.StorageFileLocation(td.storage, td.folder, file_name), + multi_account)) # Get multi account object from storage - multi_account_from_storage = email.get_email_client_multi_account(requests.GetEmailClientMultiAccountRequest( - file_name, folder, storage)) + multi_account_from_storage = td.api.client.account.get_multi(models.ClientAccountGetMultiRequest( + file_name, td.folder, td.storage)) assert len(multi_account_from_storage.receive_accounts) == 2 assert (multi_account_from_storage.send_account.credentials.discriminator ==