Skip to content

Commit 2840fb8

Browse files
SDK version 20.1.1 generated
1 parent 5acbafb commit 2840fb8

File tree

10 files changed

+73
-48
lines changed

10 files changed

+73
-48
lines changed

docs/EmailAccountConfig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
**protocolType** | **String** | Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav |
99
**host** | **String** | Email account host. | [optional]
1010
**port** | **Integer** | Port. | [optional]
11-
**socketType** | **String** | Security mode for a mail client Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto |
11+
**socketType** | **String** | Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto |
1212
**authenticationTypes** | **List<String>** | Supported authentication types. Items: Email account authentication types. Enum, available values: NoAuth, OAuth2, PasswordCleartext, PasswordEncrypted, SmtpAfterPop, ClientIpAddress | [optional]
1313
**extraInfo** | [**List<NameValuePair>**](NameValuePair.md) | Extra account information. | [optional]
1414
**isValidated** | **Boolean** | Determines that configuration validated. Set to false if validation skipped. |

docs/EmailAccountRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**host** | **String** | Email account host |
88
**port** | **Integer** | Email account port |
99
**login** | **String** | Email account login |
10-
**securityOptions** | **String** | Security mode for a mail client Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto |
10+
**securityOptions** | **String** | Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto |
1111
**protocolType** | **String** | Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav |
1212
**description** | **String** | Email account description | [optional]
1313
**storageFile** | [**StorageFileLocation**](StorageFileLocation.md) | A storage file location info to store email account |

docs/EmailApi.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ Name | Type | Description | Notes
12541254

12551255
<a name="getCalendarAttachment"></a>
12561256
## **getCalendarAttachment**
1257-
> byte[] getCalendarAttachment(GetCalendarAttachmentRequestData request)
1257+
> [File](File.md) getCalendarAttachment(GetCalendarAttachmentRequestData request)
12581258
12591259
Get iCalendar document attachment by name
12601260

@@ -1276,7 +1276,7 @@ Name | Type | Description | Notes
12761276

12771277
### Return type
12781278

1279-
**byte[]**
1279+
[**File**](File.md)
12801280

12811281
[[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)
12821282

@@ -1394,7 +1394,7 @@ Name | Type | Description | Notes
13941394

13951395
<a name="getContactAttachment"></a>
13961396
## **getContactAttachment**
1397-
> byte[] getContactAttachment(GetContactAttachmentRequestData request)
1397+
> [File](File.md) getContactAttachment(GetContactAttachmentRequestData request)
13981398
13991399
Get attachment file by name
14001400

@@ -1418,7 +1418,7 @@ Name | Type | Description | Notes
14181418

14191419
### Return type
14201420

1421-
**byte[]**
1421+
[**File**](File.md)
14221422

14231423
[[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)
14241424

@@ -1588,7 +1588,7 @@ Name | Type | Description | Notes
15881588

15891589
<a name="getEmailAsFile"></a>
15901590
## **getEmailAsFile**
1591-
> byte[] getEmailAsFile(GetEmailAsFileRequestData request)
1591+
> [File](File.md) getEmailAsFile(GetEmailAsFileRequestData request)
15921592
15931593
Converts email document from storage to specified format and returns as file
15941594

@@ -1610,13 +1610,13 @@ Name | Type | Description | Notes
16101610

16111611
### Return type
16121612

1613-
**byte[]**
1613+
[**File**](File.md)
16141614

16151615
[[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)
16161616

16171617
<a name="getEmailAttachment"></a>
16181618
## **getEmailAttachment**
1619-
> byte[] getEmailAttachment(GetEmailAttachmentRequestData request)
1619+
> [File](File.md) getEmailAttachment(GetEmailAttachmentRequestData request)
16201620
16211621
Get email attachment by name
16221622

@@ -1638,7 +1638,7 @@ Name | Type | Description | Notes
16381638

16391639
### Return type
16401640

1641-
**byte[]**
1641+
[**File**](File.md)
16421642

16431643
[[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)
16441644

@@ -1778,7 +1778,7 @@ Name | Type | Description | Notes
17781778

17791779
<a name="getMapiAttachment"></a>
17801780
## **getMapiAttachment**
1781-
> byte[] getMapiAttachment(GetMapiAttachmentRequestData request)
1781+
> [File](File.md) getMapiAttachment(GetMapiAttachmentRequestData request)
17821782
17831783
Get document attachment as file stream
17841784

@@ -1800,7 +1800,7 @@ Name | Type | Description | Notes
18001800

18011801
### Return type
18021802

1803-
**byte[]**
1803+
[**File**](File.md)
18041804

18051805
[[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)
18061806

docs/NameValuePair.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**value** | **String** | Name of the property | [optional]
8-
**name** | **String** | Value of the property | [optional]
7+
**value** | **String** | | [optional]
8+
**name** | **String** | | [optional]
99

1010

1111
[[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)

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

Lines changed: 40 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2446,10 +2446,10 @@ public HierarchicalObject getCalendar(GetCalendarRequestData request) throws Api
24462446
* Get iCalendar document attachment by name
24472447
*
24482448
* @param request Holds parameters for this request invocation.
2449-
* @return byte[]
2449+
* @return File
24502450
* @throws ApiException
24512451
*/
2452-
public byte[] getCalendarAttachment(GetCalendarAttachmentRequestData request) throws ApiException
2452+
public File getCalendarAttachment(GetCalendarAttachmentRequestData request) throws ApiException
24532453
{
24542454
try {
24552455
// verify the required parameter 'request.name' is set
@@ -2478,8 +2478,13 @@ public byte[] getCalendarAttachment(GetCalendarAttachmentRequestData request) th
24782478
null,
24792479
formParams);
24802480

2481-
return response;
24822481

2482+
if (response == null)
2483+
{
2484+
return null;
2485+
}
2486+
2487+
return SerializationHelper.deserialize(new String(response), File.class);
24832488
} catch(ApiException exception) {
24842489
throw exception;
24852490
} catch(Exception exception) {
@@ -2687,10 +2692,10 @@ public CalendarDtoList getCalendarModelList(GetCalendarModelListRequestData requ
26872692
* Get attachment file by name
26882693
*
26892694
* @param request Holds parameters for this request invocation.
2690-
* @return byte[]
2695+
* @return File
26912696
* @throws ApiException
26922697
*/
2693-
public byte[] getContactAttachment(GetContactAttachmentRequestData request) throws ApiException
2698+
public File getContactAttachment(GetContactAttachmentRequestData request) throws ApiException
26942699
{
26952700
try {
26962701
// verify the required parameter 'request.format' is set
@@ -2724,8 +2729,13 @@ public byte[] getContactAttachment(GetContactAttachmentRequestData request) thro
27242729
null,
27252730
formParams);
27262731

2727-
return response;
27282732

2733+
if (response == null)
2734+
{
2735+
return null;
2736+
}
2737+
2738+
return SerializationHelper.deserialize(new String(response), File.class);
27292739
} catch(ApiException exception) {
27302740
throw exception;
27312741
} catch(Exception exception) {
@@ -3015,10 +3025,10 @@ public EmailDocument getEmail(GetEmailRequestData request) throws ApiException
30153025
* Converts email document from storage to specified format and returns as file
30163026
*
30173027
* @param request Holds parameters for this request invocation.
3018-
* @return byte[]
3028+
* @return File
30193029
* @throws ApiException
30203030
*/
3021-
public byte[] getEmailAsFile(GetEmailAsFileRequestData request) throws ApiException
3031+
public File getEmailAsFile(GetEmailAsFileRequestData request) throws ApiException
30223032
{
30233033
try {
30243034
// verify the required parameter 'request.fileName' is set
@@ -3047,8 +3057,13 @@ public byte[] getEmailAsFile(GetEmailAsFileRequestData request) throws ApiExcept
30473057
null,
30483058
formParams);
30493059

3050-
return response;
30513060

3061+
if (response == null)
3062+
{
3063+
return null;
3064+
}
3065+
3066+
return SerializationHelper.deserialize(new String(response), File.class);
30523067
} catch(ApiException exception) {
30533068
throw exception;
30543069
} catch(Exception exception) {
@@ -3060,10 +3075,10 @@ public byte[] getEmailAsFile(GetEmailAsFileRequestData request) throws ApiExcept
30603075
* Get email attachment by name
30613076
*
30623077
* @param request Holds parameters for this request invocation.
3063-
* @return byte[]
3078+
* @return File
30643079
* @throws ApiException
30653080
*/
3066-
public byte[] getEmailAttachment(GetEmailAttachmentRequestData request) throws ApiException
3081+
public File getEmailAttachment(GetEmailAttachmentRequestData request) throws ApiException
30673082
{
30683083
try {
30693084
// verify the required parameter 'request.attachment' is set
@@ -3092,8 +3107,13 @@ public byte[] getEmailAttachment(GetEmailAttachmentRequestData request) throws A
30923107
null,
30933108
formParams);
30943109

3095-
return response;
30963110

3111+
if (response == null)
3112+
{
3113+
return null;
3114+
}
3115+
3116+
return SerializationHelper.deserialize(new String(response), File.class);
30973117
} catch(ApiException exception) {
30983118
throw exception;
30993119
} catch(Exception exception) {
@@ -3340,10 +3360,10 @@ public FilesList getFilesList(GetFilesListRequestData request) throws ApiExcepti
33403360
* Get document attachment as file stream
33413361
*
33423362
* @param request Holds parameters for this request invocation.
3343-
* @return byte[]
3363+
* @return File
33443364
* @throws ApiException
33453365
*/
3346-
public byte[] getMapiAttachment(GetMapiAttachmentRequestData request) throws ApiException
3366+
public File getMapiAttachment(GetMapiAttachmentRequestData request) throws ApiException
33473367
{
33483368
try {
33493369
// verify the required parameter 'request.name' is set
@@ -3372,8 +3392,13 @@ public byte[] getMapiAttachment(GetMapiAttachmentRequestData request) throws Api
33723392
null,
33733393
formParams);
33743394

3375-
return response;
33763395

3396+
if (response == null)
3397+
{
3398+
return null;
3399+
}
3400+
3401+
return SerializationHelper.deserialize(new String(response), File.class);
33773402
} catch(ApiException exception) {
33783403
throw exception;
33793404
} catch(Exception exception) {

src/main/java/com/aspose/email/cloud/sdk/model/EmailAccountConfig.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public void setPort(Integer port) {
173173

174174
/**
175175
* Set socketType and return this.
176-
* @param socketType Security mode for a mail client Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
176+
* @param socketType Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
177177
* @return this
178178
**/
179179
public EmailAccountConfig socketType(String socketType) {
@@ -182,7 +182,7 @@ public EmailAccountConfig socketType(String socketType) {
182182
}
183183

184184
/**
185-
* Security mode for a mail client Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
185+
* Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
186186
* @return socketType
187187
**/
188188
public String getSocketType() {
@@ -191,7 +191,7 @@ public String getSocketType() {
191191

192192
/**
193193
* Set socketType.
194-
* @param socketType Security mode for a mail client Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
194+
* @param socketType Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
195195
**/
196196
public void setSocketType(String socketType) {
197197
this.socketType = socketType;
@@ -363,7 +363,7 @@ public EmailAccountConfig() {
363363
* @param protocolType Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav
364364
* @param host Email account host.
365365
* @param port Port.
366-
* @param socketType Security mode for a mail client Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
366+
* @param socketType Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
367367
* @param authenticationTypes Supported authentication types. Items: Email account authentication types. Enum, available values: NoAuth, OAuth2, PasswordCleartext, PasswordEncrypted, SmtpAfterPop, ClientIpAddress
368368
* @param extraInfo Extra account information.
369369
* @param isValidated Determines that configuration validated. Set to false if validation skipped.

src/main/java/com/aspose/email/cloud/sdk/model/EmailAccountRequest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public void setLogin(String login) {
144144

145145
/**
146146
* Set securityOptions and return this.
147-
* @param securityOptions Security mode for a mail client Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
147+
* @param securityOptions Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
148148
* @return this
149149
**/
150150
public EmailAccountRequest securityOptions(String securityOptions) {
@@ -153,7 +153,7 @@ public EmailAccountRequest securityOptions(String securityOptions) {
153153
}
154154

155155
/**
156-
* Security mode for a mail client Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
156+
* Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
157157
* @return securityOptions
158158
**/
159159
public String getSecurityOptions() {
@@ -162,7 +162,7 @@ public String getSecurityOptions() {
162162

163163
/**
164164
* Set securityOptions.
165-
* @param securityOptions Security mode for a mail client Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
165+
* @param securityOptions Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
166166
**/
167167
public void setSecurityOptions(String securityOptions) {
168168
this.securityOptions = securityOptions;
@@ -307,7 +307,7 @@ public EmailAccountRequest() {
307307
* @param host Email account host
308308
* @param port Email account port
309309
* @param login Email account login
310-
* @param securityOptions Security mode for a mail client Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
310+
* @param securityOptions Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
311311
* @param protocolType Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav
312312
* @param description Email account description
313313
* @param storageFile A storage file location info to store email account

0 commit comments

Comments
 (0)