Skip to content

Commit b7a82c9

Browse files
committed
Release Aspose.Cells Cloud SDK 24.8.0
1 parent a4f60e0 commit b7a82c9

File tree

13 files changed

+731
-7
lines changed

13 files changed

+731
-7
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-java)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-java/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-java/24.7)
1+
![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-java)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-java/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-java/24.8)
22

33
# Java package for Aspose.Cells Cloud
44

@@ -17,12 +17,11 @@ Enhance your Java applications with the [Aspose.Cells Cloud](https://products.as
1717
- Import/Export: Facilitates importing data from various sources into spreadsheets and exporting spreadsheet data to other formats.
1818
- Security Management: Offers a range of security features like data encryption, access control, and permission management to safeguard the security and integrity of spreadsheet data.
1919

20-
## Feature & Enhancements in Version 24.7
20+
## Feature & Enhancements in Version 24.8
2121

2222
Full list of issues covering all changes in this release:
2323

24-
- Add a new feature about adding text content.
25-
- Add get access token by client id and client secret.
24+
- Add the text trim feature on Cells Cloud Services.
2625

2726
## Support file format
2827

@@ -111,6 +110,11 @@ File response = cellsApi.putConvertWorkbook(request);
111110

112111
# Release history version
113112

113+
## Enhancements in Version 24.7
114+
115+
- Add a new feature about adding text content.
116+
- Add get access token by client id and client secret.
117+
114118
## Enhancements in Version 24.6
115119

116120
- Optimize the data conversion applied steps.

docs/api/post-trim-content.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# **postTrimContent API**
2+
3+
4+
5+
```bash
6+
7+
POST http://api.aspose.cloud/v3.0//cells/trimcontent
8+
9+
```
10+
11+
## The request parameters of **postTrimContent** API are:
12+
13+
| Parameter Name | Type | Path/Query String/HTTPBody | Description |
14+
| :- | :- | :- |:- |
15+
|trimContentOptions|Class|Body||
16+
17+
18+
The [OpenAPI Specification](https://reference.aspose.cloud/cells/#/TextProcessingController/PostTrimContent) defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.

docs/model/scope-item.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# **scopeItem**
2+
3+
4+
5+
## **Properties**
6+
7+
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
8+
| :- | :- | :- |:- | :- | :- |
9+
|WorksheetName|String|true|false | ||
10+
|Ranges|Array|true|false | ||
11+

docs/model/search-scope-options-type.md renamed to docs/model/scope-options-type.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# **searchScopeOptionsType**
1+
# **scopeOptionsType**
22

33

44

docs/model/scope-options.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# **scopeOptions**
2+
3+
4+
5+
## **Properties**
6+
7+
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
8+
| :- | :- | :- |:- | :- | :- |
9+
|Scope|String|true|false | ||
10+
|ScopeItems|Array|true|false | ||
11+

docs/model/trim-content-options.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# **trimContentOptions**
2+
3+
4+
5+
## **Properties**
6+
7+
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
8+
| :- | :- | :- |:- | :- | :- |
9+
|DataSource|Class|true|false | ||
10+
|FileInfo|Class|true|false | ||
11+
|TrimContent|String|true|false | ||
12+
|TrimLeading|Boolean|true|false | ||
13+
|TrimTrailing|Boolean|true|false | ||
14+
|TrimSpaceBetweenWordTo1|Boolean|true|false | ||
15+
|TrimNonBreakingSpaces|Boolean|true|false | ||
16+
|RemoveExtraLineBreaks|Boolean|true|false | ||
17+
|RemoveAllLineBreaks|Boolean|true|false | ||
18+
|ScopeOptions|Class|true|false | ||
19+

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>aspose-cells-cloud</artifactId>
66
<packaging>jar</packaging>
77
<name>aspose-cells-cloud</name>
8-
<version>24.7</version>
8+
<version>24.8</version>
99
<url>https://github.com/aspose-cells-cloud/aspose-cells-cloud-java</url>
1010
<scm>
1111
<connection>scm:git:git@github.com:aspose-cells-cloud/aspose-cells-cloud-java</connection>

src/main/java/com/aspose/cloud/cells/api/CellsApi.java

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13840,6 +13840,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
1384013840
}
1384113841

1384213842

13843+
@SuppressWarnings("rawtypes")
13844+
private com.squareup.okhttp.Call postTrimContentValidateBeforeCall(PostTrimContentRequest request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, IOException {
13845+
return request.buildHttpRequest(apiClient, progressListener, progressRequestListener, true);
13846+
}
13847+
13848+
public FileInfo postTrimContent(PostTrimContentRequest request) throws ApiException, IOException {
13849+
try {
13850+
ApiResponse< FileInfo > resp = postTrimContentWithHttpInfo(request);
13851+
return resp.getData();
13852+
}
13853+
catch (ApiException ex) {
13854+
if (ex.getCode() == apiClient.getNotAuthCode()) {
13855+
apiClient.requestToken();
13856+
ApiResponse< FileInfo > resp = postTrimContentWithHttpInfo(request);
13857+
return resp.getData();
13858+
}
13859+
throw ex;
13860+
}
13861+
}
13862+
13863+
private ApiResponse< FileInfo > postTrimContentWithHttpInfo(PostTrimContentRequest request) throws ApiException, IOException {
13864+
com.squareup.okhttp.Call call = postTrimContentValidateBeforeCall(request, null, null);
13865+
Type localVarReturnType = new TypeToken< FileInfo >(){}.getType();
13866+
return apiClient.execute(call, localVarReturnType);
13867+
}
13868+
13869+
public com.squareup.okhttp.Call postTrimContentAsync( PostTrimContentRequest request, final ApiCallback< FileInfo > callback) throws ApiException, IOException {
13870+
13871+
ProgressResponseBody.ProgressListener progressListener = null;
13872+
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
13873+
13874+
if (callback != null) {
13875+
progressListener = new ProgressResponseBody.ProgressListener() {
13876+
@Override
13877+
public void update(long bytesRead, long contentLength, boolean done) {
13878+
callback.onDownloadProgress(bytesRead, contentLength, done);
13879+
}
13880+
};
13881+
13882+
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
13883+
@Override
13884+
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
13885+
callback.onUploadProgress(bytesWritten, contentLength, done);
13886+
}
13887+
};
13888+
}
13889+
13890+
com.squareup.okhttp.Call call = postTrimContentValidateBeforeCall(request, progressListener, progressRequestListener);
13891+
Type localVarReturnType = new TypeToken< FileInfo >(){}.getType();
13892+
apiClient.executeAsync(call, localVarReturnType, callback);
13893+
return call;
13894+
}
13895+
13896+
1384313897
@SuppressWarnings("rawtypes")
1384413898
private com.squareup.okhttp.Call getWorkbookDefaultStyleValidateBeforeCall(GetWorkbookDefaultStyleRequest request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, IOException {
1384513899
return request.buildHttpRequest(apiClient, progressListener, progressRequestListener, true);

src/main/java/com/aspose/cloud/cells/client/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public ApiClient() {
186186
this.lenientDatetimeFormat = true;
187187

188188
// Set default User-Agent.
189-
setUserAgent("CellsCloud-SDK/24.7/java");
189+
setUserAgent("CellsCloud-SDK/24.8/java");
190190

191191
// Setup authentications (key: authentication name, value:
192192
// authentication).
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="ScopeItem.java">
4+
* Copyright (c) 2024 Aspose.Cells Cloud
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.cloud.cells.model;
29+
30+
import java.util.Objects;
31+
import io.swagger.annotations.ApiModelProperty;
32+
import com.aspose.cloud.cells.model.*;
33+
import java.util.ArrayList;
34+
import java.util.List;
35+
import com.google.gson.annotations.SerializedName;
36+
import java.time.OffsetDateTime;
37+
38+
39+
public class ScopeItem {
40+
@SerializedName("WorksheetName")
41+
private String worksheetName ;
42+
43+
public ScopeItem worksheetName(String worksheetName) {
44+
this.worksheetName = worksheetName;
45+
return this;
46+
}
47+
48+
@ApiModelProperty(value = "")
49+
public String getWorksheetName() {
50+
return worksheetName;
51+
}
52+
53+
public void setWorksheetName(String worksheetName) {
54+
this.worksheetName = worksheetName;
55+
}
56+
57+
@SerializedName("Ranges")
58+
private List<String> ranges ;
59+
60+
public ScopeItem ranges(List<String> ranges) {
61+
this.ranges = ranges;
62+
return this;
63+
}
64+
65+
@ApiModelProperty(value = "")
66+
public List<String> getRanges() {
67+
return ranges;
68+
}
69+
70+
public void setRanges(List<String> ranges) {
71+
this.ranges = ranges;
72+
}
73+
74+
@Override
75+
public boolean equals(java.lang.Object o) {
76+
if (this == o) {
77+
return true;
78+
}
79+
if (o == null || getClass() != o.getClass()) {
80+
return false;
81+
}
82+
83+
ScopeItem scopeItem = (ScopeItem) o;
84+
return
85+
Objects.equals(this.worksheetName, scopeItem.worksheetName) &&
86+
Objects.equals(this.ranges, scopeItem.ranges);
87+
}
88+
89+
@Override
90+
public int hashCode() {
91+
return Objects.hash(worksheetName, ranges);
92+
}
93+
@Override
94+
public String toString() {
95+
StringBuilder sb = new StringBuilder();
96+
sb.append("class ScopeItem {\n");
97+
sb.append(" worksheetName: ").append(toIndentedString(getWorksheetName())).append("\n");
98+
sb.append(" ranges: ").append(toIndentedString(getRanges())).append("\n");
99+
sb.append("}");
100+
return sb.toString();
101+
}
102+
103+
/**
104+
* Convert the given object to string with each line indented by 4 spaces
105+
* (except the first line).
106+
*/
107+
private String toIndentedString(java.lang.Object o) {
108+
if (o == null) {
109+
return "null";
110+
}
111+
return o.toString().replace("\n", "\n ");
112+
}
113+
114+
115+
}
116+

0 commit comments

Comments
 (0)