Skip to content

Commit

Permalink
Release Aspose.Cells Cloud SDK 24.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xuejianzhangd committed Aug 13, 2024
1 parent a4f60e0 commit b7a82c9
Show file tree
Hide file tree
Showing 13 changed files with 731 additions and 7 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![](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)
![](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)

# Java package for Aspose.Cells Cloud

Expand All @@ -17,12 +17,11 @@ Enhance your Java applications with the [Aspose.Cells Cloud](https://products.as
- Import/Export: Facilitates importing data from various sources into spreadsheets and exporting spreadsheet data to other formats.
- 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.

## Feature & Enhancements in Version 24.7
## Feature & Enhancements in Version 24.8

Full list of issues covering all changes in this release:

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

## Support file format

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

# Release history version

## Enhancements in Version 24.7

- Add a new feature about adding text content.
- Add get access token by client id and client secret.

## Enhancements in Version 24.6

- Optimize the data conversion applied steps.
Expand Down
18 changes: 18 additions & 0 deletions docs/api/post-trim-content.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# **postTrimContent API**



```bash

POST http://api.aspose.cloud/v3.0//cells/trimcontent

```

## The request parameters of **postTrimContent** API are:

| Parameter Name | Type | Path/Query String/HTTPBody | Description |
| :- | :- | :- |:- |
|trimContentOptions|Class|Body||


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.
11 changes: 11 additions & 0 deletions docs/model/scope-item.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# **scopeItem**



## **Properties**

| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
| :- | :- | :- |:- | :- | :- |
|WorksheetName|String|true|false | ||
|Ranges|Array|true|false | ||

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# **searchScopeOptionsType**
# **scopeOptionsType**



Expand Down
11 changes: 11 additions & 0 deletions docs/model/scope-options.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# **scopeOptions**



## **Properties**

| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
| :- | :- | :- |:- | :- | :- |
|Scope|String|true|false | ||
|ScopeItems|Array|true|false | ||

19 changes: 19 additions & 0 deletions docs/model/trim-content-options.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# **trimContentOptions**



## **Properties**

| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
| :- | :- | :- |:- | :- | :- |
|DataSource|Class|true|false | ||
|FileInfo|Class|true|false | ||
|TrimContent|String|true|false | ||
|TrimLeading|Boolean|true|false | ||
|TrimTrailing|Boolean|true|false | ||
|TrimSpaceBetweenWordTo1|Boolean|true|false | ||
|TrimNonBreakingSpaces|Boolean|true|false | ||
|RemoveExtraLineBreaks|Boolean|true|false | ||
|RemoveAllLineBreaks|Boolean|true|false | ||
|ScopeOptions|Class|true|false | ||

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>aspose-cells-cloud</artifactId>
<packaging>jar</packaging>
<name>aspose-cells-cloud</name>
<version>24.7</version>
<version>24.8</version>
<url>https://github.com/aspose-cells-cloud/aspose-cells-cloud-java</url>
<scm>
<connection>scm:git:git@github.com:aspose-cells-cloud/aspose-cells-cloud-java</connection>
Expand Down
54 changes: 54 additions & 0 deletions src/main/java/com/aspose/cloud/cells/api/CellsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -13840,6 +13840,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
}


@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call postTrimContentValidateBeforeCall(PostTrimContentRequest request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, IOException {
return request.buildHttpRequest(apiClient, progressListener, progressRequestListener, true);
}

public FileInfo postTrimContent(PostTrimContentRequest request) throws ApiException, IOException {
try {
ApiResponse< FileInfo > resp = postTrimContentWithHttpInfo(request);
return resp.getData();
}
catch (ApiException ex) {
if (ex.getCode() == apiClient.getNotAuthCode()) {
apiClient.requestToken();
ApiResponse< FileInfo > resp = postTrimContentWithHttpInfo(request);
return resp.getData();
}
throw ex;
}
}

private ApiResponse< FileInfo > postTrimContentWithHttpInfo(PostTrimContentRequest request) throws ApiException, IOException {
com.squareup.okhttp.Call call = postTrimContentValidateBeforeCall(request, null, null);
Type localVarReturnType = new TypeToken< FileInfo >(){}.getType();
return apiClient.execute(call, localVarReturnType);
}

public com.squareup.okhttp.Call postTrimContentAsync( PostTrimContentRequest request, final ApiCallback< FileInfo > callback) throws ApiException, IOException {

ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;

if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};

progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}

com.squareup.okhttp.Call call = postTrimContentValidateBeforeCall(request, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken< FileInfo >(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}


@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call getWorkbookDefaultStyleValidateBeforeCall(GetWorkbookDefaultStyleRequest request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, IOException {
return request.buildHttpRequest(apiClient, progressListener, progressRequestListener, true);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/aspose/cloud/cells/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public ApiClient() {
this.lenientDatetimeFormat = true;

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

// Setup authentications (key: authentication name, value:
// authentication).
Expand Down
116 changes: 116 additions & 0 deletions src/main/java/com/aspose/cloud/cells/model/ScopeItem.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
/*
* --------------------------------------------------------------------------------
* <copyright company="Aspose" file="ScopeItem.java">
* Copyright (c) 2024 Aspose.Cells Cloud
* </copyright>
* <summary>
* 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.
* </summary>
* --------------------------------------------------------------------------------
*/

package com.aspose.cloud.cells.model;

import java.util.Objects;
import io.swagger.annotations.ApiModelProperty;
import com.aspose.cloud.cells.model.*;
import java.util.ArrayList;
import java.util.List;
import com.google.gson.annotations.SerializedName;
import java.time.OffsetDateTime;


public class ScopeItem {
@SerializedName("WorksheetName")
private String worksheetName ;

public ScopeItem worksheetName(String worksheetName) {
this.worksheetName = worksheetName;
return this;
}

@ApiModelProperty(value = "")
public String getWorksheetName() {
return worksheetName;
}

public void setWorksheetName(String worksheetName) {
this.worksheetName = worksheetName;
}

@SerializedName("Ranges")
private List<String> ranges ;

public ScopeItem ranges(List<String> ranges) {
this.ranges = ranges;
return this;
}

@ApiModelProperty(value = "")
public List<String> getRanges() {
return ranges;
}

public void setRanges(List<String> ranges) {
this.ranges = ranges;
}

@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}

ScopeItem scopeItem = (ScopeItem) o;
return
Objects.equals(this.worksheetName, scopeItem.worksheetName) &&
Objects.equals(this.ranges, scopeItem.ranges);
}

@Override
public int hashCode() {
return Objects.hash(worksheetName, ranges);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ScopeItem {\n");
sb.append(" worksheetName: ").append(toIndentedString(getWorksheetName())).append("\n");
sb.append(" ranges: ").append(toIndentedString(getRanges())).append("\n");
sb.append("}");
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}


}

Loading

0 comments on commit b7a82c9

Please sign in to comment.