Skip to content

Commit 117aaf9

Browse files
SDK version 20.2.1 generated
1 parent 8576c24 commit 117aaf9

File tree

9 files changed

+607
-0
lines changed

9 files changed

+607
-0
lines changed

docs/EmailApi.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,6 +1668,32 @@ Name | Type | Description | Notes
16681668

16691669
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to API README]](README.md)
16701670

1671+
<a name="getEmailClientMultiAccount"></a>
1672+
## **getEmailClientMultiAccount**
1673+
> void getEmailClientMultiAccount(GetEmailClientMultiAccountRequestData request)
1674+
1675+
Get email client multi account file (*.multi.account). Will respond error if file extension is not \&quot;.multi.account\&quot;.
1676+
1677+
### **GetEmailClientMultiAccountRequestData** Parameters
1678+
```java
1679+
public GetEmailClientMultiAccountRequestData(
1680+
String name,
1681+
String folder,
1682+
String storage)
1683+
```
1684+
1685+
Name | Type | Description | Notes
1686+
------------- | ------------- | ------------- | -------------
1687+
**name** | **String**| File name on storage |
1688+
**folder** | **String**| Folder on storage |
1689+
**storage** | **String**| Storage name |
1690+
1691+
### Return type
1692+
1693+
void (empty response body)
1694+
1695+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to API README]](README.md)
1696+
16711697
<a name="getEmailModel"></a>
16721698
## **getEmailModel**
16731699
> [EmailDto](EmailDto.md) getEmailModel(GetEmailModelRequestData request)
@@ -2190,6 +2216,28 @@ void (empty response body)
21902216

21912217
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to API README]](README.md)
21922218

2219+
<a name="saveEmailClientMultiAccount"></a>
2220+
## **saveEmailClientMultiAccount**
2221+
> void saveEmailClientMultiAccount(SaveEmailClientMultiAccountRequestData request)
2222+
2223+
Create email client multi account file (*.multi.account). Will respond error if file extension is not \&quot;.multi.account\&quot;.
2224+
2225+
### **SaveEmailClientMultiAccountRequestData** Parameters
2226+
```java
2227+
public SaveEmailClientMultiAccountRequestData(
2228+
StorageFileRqOfEmailClientMultiAccount request)
2229+
```
2230+
2231+
Name | Type | Description | Notes
2232+
------------- | ------------- | ------------- | -------------
2233+
**request** | [**StorageFileRqOfEmailClientMultiAccount**](StorageFileRqOfEmailClientMultiAccount.md)| Email accounts information |
2234+
2235+
### Return type
2236+
2237+
void (empty response body)
2238+
2239+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to API README]](README.md)
2240+
21932241
<a name="saveEmailModel"></a>
21942242
## **saveEmailModel**
21952243
> void saveEmailModel(SaveEmailModelRequestData request)

docs/EmailClientMultiAccount.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
# com.aspose.email.cloud.sdk.model.EmailClientMultiAccount
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**receiveAccounts** | [**List&lt;EmailClientAccount&gt;**](EmailClientAccount.md) | Email client receive accounts |
8+
**sendAccount** | [**EmailClientAccount**](EmailClientAccount.md) | Email client send account | [optional]
9+
10+
11+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to API README]](README.md)
12+

docs/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Class | Method | HTTP request | Description
7171
*EmailApi* | [**getEmailAsFile**](EmailApi.md#getemailasfile) | **GET** /email/{fileName}/as-file/{format} | Converts email document from storage to specified format and returns as file
7272
*EmailApi* | [**getEmailAttachment**](EmailApi.md#getemailattachment) | **GET** /email/{fileName}/attachments/{attachment} | Get email attachment by name
7373
*EmailApi* | [**getEmailClientAccount**](EmailApi.md#getemailclientaccount) | **GET** /email/client/email-client-account | Get email client account from storage
74+
*EmailApi* | [**getEmailClientMultiAccount**](EmailApi.md#getemailclientmultiaccount) | **GET** /email/client/multi-account | Get email client multi account file (*.multi.account). Will respond error if file extension is not \&quot;.multi.account\&quot;.
7475
*EmailApi* | [**getEmailModel**](EmailApi.md#getemailmodel) | **GET** /email/model/{format}/{name} | Get email document.
7576
*EmailApi* | [**getEmailModelList**](EmailApi.md#getemailmodellist) | **GET** /email/model/{format} | Get email list from storage folder.
7677
*EmailApi* | [**getEmailProperty**](EmailApi.md#getemailproperty) | **GET** /email/{fileName}/properties/{propertyName} | Get an email document property by its name
@@ -90,6 +91,7 @@ Class | Method | HTTP request | Description
9091
*EmailApi* | [**saveCalendarModel**](EmailApi.md#savecalendarmodel) | **PUT** /email/CalendarModel/{name} | Save iCalendar
9192
*EmailApi* | [**saveContactModel**](EmailApi.md#savecontactmodel) | **PUT** /email/ContactModel/{format}/{name} | Save contact.
9293
*EmailApi* | [**saveEmailClientAccount**](EmailApi.md#saveemailclientaccount) | **PUT** /email/client/email-client-account | Create email client account file (*.account) with any of supported credentials
94+
*EmailApi* | [**saveEmailClientMultiAccount**](EmailApi.md#saveemailclientmultiaccount) | **PUT** /email/client/multi-account | Create email client multi account file (*.multi.account). Will respond error if file extension is not \&quot;.multi.account\&quot;.
9395
*EmailApi* | [**saveEmailModel**](EmailApi.md#saveemailmodel) | **PUT** /email/model/{format}/{name} | Save email document.
9496
*EmailApi* | [**saveMailAccount**](EmailApi.md#savemailaccount) | **POST** /email/client/SaveMailAccount | Create email account file (*.account) with login/password authentication
9597
*EmailApi* | [**saveMailOAuthAccount**](EmailApi.md#savemailoauthaccount) | **POST** /email/client/SaveMailOAuthAccount | Create email account file (*.account) with OAuth
@@ -145,6 +147,7 @@ Class | Method | HTTP request | Description
145147
- [com.aspose.email.cloud.sdk.model.EmailAddress](EmailAddress.md)
146148
- [com.aspose.email.cloud.sdk.model.EmailClientAccount](EmailClientAccount.md)
147149
- [com.aspose.email.cloud.sdk.model.EmailClientAccountCredentials](EmailClientAccountCredentials.md)
150+
- [com.aspose.email.cloud.sdk.model.EmailClientMultiAccount](EmailClientMultiAccount.md)
148151
- [com.aspose.email.cloud.sdk.model.EmailDocument](EmailDocument.md)
149152
- [com.aspose.email.cloud.sdk.model.EmailDocumentResponse](EmailDocumentResponse.md)
150153
- [com.aspose.email.cloud.sdk.model.EmailDto](EmailDto.md)
@@ -195,6 +198,7 @@ Class | Method | HTTP request | Description
195198
- [com.aspose.email.cloud.sdk.model.StorageExist](StorageExist.md)
196199
- [com.aspose.email.cloud.sdk.model.StorageFile](StorageFile.md)
197200
- [com.aspose.email.cloud.sdk.model.StorageFileRqOfEmailClientAccount](StorageFileRqOfEmailClientAccount.md)
201+
- [com.aspose.email.cloud.sdk.model.StorageFileRqOfEmailClientMultiAccount](StorageFileRqOfEmailClientMultiAccount.md)
198202
- [com.aspose.email.cloud.sdk.model.StorageFolderLocation](StorageFolderLocation.md)
199203
- [com.aspose.email.cloud.sdk.model.StorageModelOfCalendarDto](StorageModelOfCalendarDto.md)
200204
- [com.aspose.email.cloud.sdk.model.StorageModelOfContactDto](StorageModelOfContactDto.md)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
# com.aspose.email.cloud.sdk.model.StorageFileRqOfEmailClientMultiAccount
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**value** | [**EmailClientMultiAccount**](EmailClientMultiAccount.md) | | [optional]
8+
**storageFile** | [**StorageFileLocation**](StorageFileLocation.md) | | [optional]
9+
10+
11+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to API README]](README.md)
12+

src/main/java/com/aspose/email/cloud/sdk/api/EmailApi.java

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3154,6 +3154,51 @@ public EmailClientAccount getEmailClientAccount(GetEmailClientAccountRequestData
31543154
}
31553155
}
31563156

3157+
/**
3158+
* Get email client multi account file (*.multi.account). Will respond error if file extension is not \&quot;.multi.account\&quot;.
3159+
*
3160+
* @param request Holds parameters for this request invocation.
3161+
* @throws ApiException
3162+
*/
3163+
public void getEmailClientMultiAccount(GetEmailClientMultiAccountRequestData request) throws ApiException
3164+
{
3165+
try {
3166+
// verify the required parameter 'request.name' is set
3167+
if (request.name== null) {
3168+
throw new ApiException(400, "Missing the required parameter 'request.name' when calling getEmailClientMultiAccount");
3169+
}
3170+
// verify the required parameter 'request.folder' is set
3171+
if (request.folder== null) {
3172+
throw new ApiException(400, "Missing the required parameter 'request.folder' when calling getEmailClientMultiAccount");
3173+
}
3174+
// verify the required parameter 'request.storage' is set
3175+
if (request.storage== null) {
3176+
throw new ApiException(400, "Missing the required parameter 'request.storage' when calling getEmailClientMultiAccount");
3177+
}
3178+
// create path and map variables
3179+
String resourcePath = this.Configuration.getApiRootUrl() + "/email/client/multi-account";
3180+
3181+
HashMap<String, Object> formParams = new HashMap<String, Object>();
3182+
3183+
resourcePath = UrlHelper.addQueryParameterToUrl(resourcePath, "name", request.name);
3184+
resourcePath = UrlHelper.addQueryParameterToUrl(resourcePath, "folder", request.folder);
3185+
resourcePath = UrlHelper.addQueryParameterToUrl(resourcePath, "storage", request.storage);
3186+
3187+
3188+
this.apiInvoker.invokeApi(
3189+
resourcePath,
3190+
"GET",
3191+
null,
3192+
null,
3193+
formParams);
3194+
3195+
} catch(ApiException exception) {
3196+
throw exception;
3197+
} catch(Exception exception) {
3198+
throw new ApiException(400, exception.getMessage());
3199+
}
3200+
}
3201+
31573202
/**
31583203
* Get email document.
31593204
*
@@ -4026,6 +4071,43 @@ public void saveEmailClientAccount(SaveEmailClientAccountRequestData request) th
40264071
}
40274072
}
40284073

4074+
/**
4075+
* Create email client multi account file (*.multi.account). Will respond error if file extension is not \&quot;.multi.account\&quot;.
4076+
*
4077+
* @param request Holds parameters for this request invocation.
4078+
* @throws ApiException
4079+
*/
4080+
public void saveEmailClientMultiAccount(SaveEmailClientMultiAccountRequestData request) throws ApiException
4081+
{
4082+
try {
4083+
// verify the required parameter 'request.request' is set
4084+
if (request.request== null) {
4085+
throw new ApiException(400, "Missing the required parameter 'request.request' when calling saveEmailClientMultiAccount");
4086+
}
4087+
// create path and map variables
4088+
String resourcePath = this.Configuration.getApiRootUrl() + "/email/client/multi-account";
4089+
4090+
HashMap<String, Object> formParams = new HashMap<String, Object>();
4091+
4092+
4093+
String postBody = null;
4094+
4095+
postBody = SerializationHelper.serialize(request.request);
4096+
4097+
this.apiInvoker.invokeApi(
4098+
resourcePath,
4099+
"PUT",
4100+
postBody,
4101+
null,
4102+
formParams);
4103+
4104+
} catch(ApiException exception) {
4105+
throw exception;
4106+
} catch(Exception exception) {
4107+
throw new ApiException(400, exception.getMessage());
4108+
}
4109+
}
4110+
40294111
/**
40304112
* Save email document.
40314113
*
Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
/*
2+
* --------------------------------------------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="EmailClientMultiAccount.java">
4+
* Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
5+
* </copyright>
6+
* <summary>
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
* SOFTWARE.
24+
* </summary>
25+
* --------------------------------------------------------------------------------------------------------------------
26+
*/
27+
28+
package com.aspose.email.cloud.sdk.model;
29+
30+
import org.apache.commons.lang3.ObjectUtils;
31+
import java.util.Date;
32+
import java.util.ArrayList;
33+
import java.util.List;
34+
import java.util.Map;
35+
import java.util.HashMap;
36+
import com.fasterxml.jackson.annotation.JsonProperty;
37+
import com.google.gson.annotations.*;
38+
import com.google.gson.*;
39+
import com.google.gson.stream.*;
40+
import java.io.*;
41+
42+
/**
43+
* Email client virtual account, which contains several accounts
44+
*/
45+
public class EmailClientMultiAccount {
46+
@JsonProperty("receiveAccounts")
47+
private List<EmailClientAccount> receiveAccounts = new ArrayList<EmailClientAccount>();
48+
49+
@JsonProperty("sendAccount")
50+
private EmailClientAccount sendAccount = null;
51+
52+
/**
53+
* Set receiveAccounts and return this.
54+
* @param receiveAccounts Email client receive accounts
55+
* @return this
56+
**/
57+
public EmailClientMultiAccount receiveAccounts(List<EmailClientAccount> receiveAccounts) {
58+
this.receiveAccounts = receiveAccounts;
59+
return this;
60+
}
61+
/**
62+
* Add an item to receiveAccounts and return this.
63+
* @param receiveAccountsItem An item of: Email client receive accounts
64+
* @return this
65+
**/
66+
public EmailClientMultiAccount addReceiveAccountsItem(EmailClientAccount receiveAccountsItem) {
67+
this.receiveAccounts.add(receiveAccountsItem);
68+
return this;
69+
}
70+
71+
/**
72+
* Email client receive accounts
73+
* @return receiveAccounts
74+
**/
75+
public List<EmailClientAccount> getReceiveAccounts() {
76+
return receiveAccounts;
77+
}
78+
79+
/**
80+
* Set receiveAccounts.
81+
* @param receiveAccounts Email client receive accounts
82+
**/
83+
public void setReceiveAccounts(List<EmailClientAccount> receiveAccounts) {
84+
this.receiveAccounts = receiveAccounts;
85+
}
86+
87+
/**
88+
* Set sendAccount and return this.
89+
* @param sendAccount Email client send account
90+
* @return this
91+
**/
92+
public EmailClientMultiAccount sendAccount(EmailClientAccount sendAccount) {
93+
this.sendAccount = sendAccount;
94+
return this;
95+
}
96+
97+
/**
98+
* Email client send account
99+
* @return sendAccount
100+
**/
101+
public EmailClientAccount getSendAccount() {
102+
return sendAccount;
103+
}
104+
105+
/**
106+
* Set sendAccount.
107+
* @param sendAccount Email client send account
108+
**/
109+
public void setSendAccount(EmailClientAccount sendAccount) {
110+
this.sendAccount = sendAccount;
111+
}
112+
113+
114+
@Override
115+
public boolean equals(java.lang.Object o) {
116+
if (this == o) {
117+
return true;
118+
}
119+
if (o == null || getClass() != o.getClass()) {
120+
return false;
121+
}
122+
EmailClientMultiAccount emailClientMultiAccount = (EmailClientMultiAccount) o;
123+
return ObjectUtils.equals(this.receiveAccounts, emailClientMultiAccount.receiveAccounts) &&
124+
ObjectUtils.equals(this.sendAccount, emailClientMultiAccount.sendAccount);
125+
}
126+
127+
@Override
128+
public int hashCode() {
129+
return ObjectUtils.hashCodeMulti(receiveAccounts, sendAccount);
130+
}
131+
132+
133+
@Override
134+
public String toString() {
135+
StringBuilder sb = new StringBuilder();
136+
sb.append("class EmailClientMultiAccount {\n");
137+
138+
sb.append(" receiveAccounts: ").append(toIndentedString(getReceiveAccounts())).append("\n");
139+
sb.append(" sendAccount: ").append(toIndentedString(getSendAccount())).append("\n");
140+
sb.append("}");
141+
return sb.toString();
142+
}
143+
144+
/**
145+
* Convert the given object to string with each line indented by 4 spaces
146+
* (except the first line).
147+
*/
148+
private String toIndentedString(java.lang.Object o) {
149+
if (o == null) {
150+
return "null";
151+
}
152+
return o.toString().replace("\n", "\n ");
153+
}
154+
155+
public EmailClientMultiAccount() {
156+
super();
157+
}
158+
159+
/**
160+
* Initializes a new instance of the EmailClientMultiAccount
161+
* @param receiveAccounts Email client receive accounts
162+
* @param sendAccount Email client send account
163+
*/
164+
public EmailClientMultiAccount(List<EmailClientAccount> receiveAccounts, EmailClientAccount sendAccount) {
165+
super();
166+
setReceiveAccounts(receiveAccounts);
167+
setSendAccount(sendAccount);
168+
}
169+
170+
}
171+

0 commit comments

Comments
 (0)