Skip to content

Commit 12f4a8a

Browse files
SDK version 20.2.0 generated
1 parent a980be8 commit 12f4a8a

File tree

4 files changed

+29
-54
lines changed

4 files changed

+29
-54
lines changed

docs/EmailApi.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ public CreateEmailRequestData(
790790
Name | Type | Description | Notes
791791
------------- | ------------- | ------------- | -------------
792792
**fileName** | **String**| Email document file name in storage |
793-
**request** | [**CreateEmailRequest**](CreateEmailRequest.md)| An email document and optional Storage info to specify where the file should be located |
793+
**request** | [**CreateEmailRequest**](CreateEmailRequest.md)| An email document and optional Storage info to specify where the file should be located |
794794

795795
### Return type
796796

@@ -1254,7 +1254,7 @@ Name | Type | Description | Notes
12541254

12551255
<a name="getCalendarAttachment"></a>
12561256
## **getCalendarAttachment**
1257-
> [File](File.md) getCalendarAttachment(GetCalendarAttachmentRequestData request)
1257+
> byte[] 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-
[**File**](File.md)
1279+
**byte[]**
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-
> [File](File.md) getContactAttachment(GetContactAttachmentRequestData request)
1397+
> byte[] 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-
[**File**](File.md)
1421+
**byte[]**
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-
> [File](File.md) getEmailAsFile(GetEmailAsFileRequestData request)
1591+
> byte[] 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-
[**File**](File.md)
1613+
**byte[]**
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-
> [File](File.md) getEmailAttachment(GetEmailAttachmentRequestData request)
1619+
> byte[] 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-
[**File**](File.md)
1641+
**byte[]**
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-
> [File](File.md) getMapiAttachment(GetMapiAttachmentRequestData request)
1781+
> byte[] 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-
[**File**](File.md)
1803+
**byte[]**
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

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<artifactId>aspose-email-cloud</artifactId>
55
<packaging>jar</packaging>
66
<name>aspose-email-cloud</name>
7-
<version>20.1.1</version>
7+
<version>20.2.0</version>
88
<url>https://github.com/aspose-email-cloud/aspose-email-cloud-java</url>
99
<description>Aspose.Email Cloud SDK</description>
1010
<licenses>

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

Lines changed: 15 additions & 40 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 File
2449+
* @return byte[]
24502450
* @throws ApiException
24512451
*/
2452-
public File getCalendarAttachment(GetCalendarAttachmentRequestData request) throws ApiException
2452+
public byte[] getCalendarAttachment(GetCalendarAttachmentRequestData request) throws ApiException
24532453
{
24542454
try {
24552455
// verify the required parameter 'request.name' is set
@@ -2478,13 +2478,8 @@ public File getCalendarAttachment(GetCalendarAttachmentRequestData request) thro
24782478
null,
24792479
formParams);
24802480

2481+
return response;
24812482

2482-
if (response == null)
2483-
{
2484-
return null;
2485-
}
2486-
2487-
return SerializationHelper.deserialize(new String(response), File.class);
24882483
} catch(ApiException exception) {
24892484
throw exception;
24902485
} catch(Exception exception) {
@@ -2692,10 +2687,10 @@ public CalendarDtoList getCalendarModelList(GetCalendarModelListRequestData requ
26922687
* Get attachment file by name
26932688
*
26942689
* @param request Holds parameters for this request invocation.
2695-
* @return File
2690+
* @return byte[]
26962691
* @throws ApiException
26972692
*/
2698-
public File getContactAttachment(GetContactAttachmentRequestData request) throws ApiException
2693+
public byte[] getContactAttachment(GetContactAttachmentRequestData request) throws ApiException
26992694
{
27002695
try {
27012696
// verify the required parameter 'request.format' is set
@@ -2729,13 +2724,8 @@ public File getContactAttachment(GetContactAttachmentRequestData request) throws
27292724
null,
27302725
formParams);
27312726

2727+
return response;
27322728

2733-
if (response == null)
2734-
{
2735-
return null;
2736-
}
2737-
2738-
return SerializationHelper.deserialize(new String(response), File.class);
27392729
} catch(ApiException exception) {
27402730
throw exception;
27412731
} catch(Exception exception) {
@@ -3025,10 +3015,10 @@ public EmailDocument getEmail(GetEmailRequestData request) throws ApiException
30253015
* Converts email document from storage to specified format and returns as file
30263016
*
30273017
* @param request Holds parameters for this request invocation.
3028-
* @return File
3018+
* @return byte[]
30293019
* @throws ApiException
30303020
*/
3031-
public File getEmailAsFile(GetEmailAsFileRequestData request) throws ApiException
3021+
public byte[] getEmailAsFile(GetEmailAsFileRequestData request) throws ApiException
30323022
{
30333023
try {
30343024
// verify the required parameter 'request.fileName' is set
@@ -3057,13 +3047,8 @@ public File getEmailAsFile(GetEmailAsFileRequestData request) throws ApiExceptio
30573047
null,
30583048
formParams);
30593049

3050+
return response;
30603051

3061-
if (response == null)
3062-
{
3063-
return null;
3064-
}
3065-
3066-
return SerializationHelper.deserialize(new String(response), File.class);
30673052
} catch(ApiException exception) {
30683053
throw exception;
30693054
} catch(Exception exception) {
@@ -3075,10 +3060,10 @@ public File getEmailAsFile(GetEmailAsFileRequestData request) throws ApiExceptio
30753060
* Get email attachment by name
30763061
*
30773062
* @param request Holds parameters for this request invocation.
3078-
* @return File
3063+
* @return byte[]
30793064
* @throws ApiException
30803065
*/
3081-
public File getEmailAttachment(GetEmailAttachmentRequestData request) throws ApiException
3066+
public byte[] getEmailAttachment(GetEmailAttachmentRequestData request) throws ApiException
30823067
{
30833068
try {
30843069
// verify the required parameter 'request.attachment' is set
@@ -3107,13 +3092,8 @@ public File getEmailAttachment(GetEmailAttachmentRequestData request) throws Api
31073092
null,
31083093
formParams);
31093094

3095+
return response;
31103096

3111-
if (response == null)
3112-
{
3113-
return null;
3114-
}
3115-
3116-
return SerializationHelper.deserialize(new String(response), File.class);
31173097
} catch(ApiException exception) {
31183098
throw exception;
31193099
} catch(Exception exception) {
@@ -3360,10 +3340,10 @@ public FilesList getFilesList(GetFilesListRequestData request) throws ApiExcepti
33603340
* Get document attachment as file stream
33613341
*
33623342
* @param request Holds parameters for this request invocation.
3363-
* @return File
3343+
* @return byte[]
33643344
* @throws ApiException
33653345
*/
3366-
public File getMapiAttachment(GetMapiAttachmentRequestData request) throws ApiException
3346+
public byte[] getMapiAttachment(GetMapiAttachmentRequestData request) throws ApiException
33673347
{
33683348
try {
33693349
// verify the required parameter 'request.name' is set
@@ -3392,13 +3372,8 @@ public File getMapiAttachment(GetMapiAttachmentRequestData request) throws ApiEx
33923372
null,
33933373
formParams);
33943374

3375+
return response;
33953376

3396-
if (response == null)
3397-
{
3398-
return null;
3399-
}
3400-
3401-
return SerializationHelper.deserialize(new String(response), File.class);
34023377
} catch(ApiException exception) {
34033378
throw exception;
34043379
} catch(Exception exception) {

src/main/java/com/aspose/email/cloud/sdk/model/requests/CreateEmailRequestData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class CreateEmailRequestData
3737
/**
3838
* Initializes a new instance of the CreateEmailRequestData class.
3939
* @param fileName Email document file name in storage
40-
* @param request An email document and optional Storage info to specify where the file should be located
40+
* @param request An email document and optional Storage info to specify where the file should be located
4141
**/
4242
public CreateEmailRequestData(String fileName, CreateEmailRequest request)
4343
{
@@ -51,7 +51,7 @@ public CreateEmailRequestData(String fileName, CreateEmailRequest request)
5151
public String fileName;
5252

5353
/**
54-
* An email document and optional Storage info to specify where the file should be located
54+
* An email document and optional Storage info to specify where the file should be located
5555
**/
5656
public CreateEmailRequest request;
5757
}

0 commit comments

Comments
 (0)