Skip to content

Commit

Permalink
Release Aspose.Cells Cloud SDK 24.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xuejianzhangd committed Jun 21, 2024
1 parent 7796ff7 commit 0bc1411
Show file tree
Hide file tree
Showing 30 changed files with 502 additions and 480 deletions.
99 changes: 99 additions & 0 deletions Examples/Example_PostDataTransformation.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
package com.aspose.cloud.cells.api;

import com.aspose.cloud.cells.client.*;
import com.aspose.cloud.cells.model.*;
import com.aspose.cloud.cells.request.*;

import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import java.io.File;
import java.util.HashMap;

public class ExamplePostDataTransformation {
private CellsApi api;
public ExamplePostDataTransformation(){
try {
api = new CellsApi(
System.getenv("CellsCloudClientId"),
System.getenv("CellsCloudClientSecret"),
"v3.0",
System.getenv("CellsCloudApiBaseUrl")
);
} catch (ApiException e) {
e.printStackTrace();
}
}

public void Run(){
try{
String remoteFolder = "TestData/In";

String localName = "BookTableL2W.xlsx";
String remoteName = "BookTableL2W.xlsx";

UploadFileRequest uploadFileRequest = new UploadFileRequest();
uploadFileRequest.setPath( remoteFolder + "/" + remoteName );
uploadFileRequest.setStorageName( "");
HashMap<String,File> files = new HashMap<String,File>();
files.put( localName , new File(localName ));
uploadFileRequest.setUploadFiles(files);
cellsApi.uploadFile(uploadFileRequest);

PostDataTransformationRequest request = new PostDataTransformationRequest();
DataTransformationRequest dataTransformationRequest = new DataTransformationRequest();
LoadData loadData = new LoadData();
LoadTo loadTo = new LoadTo();
loadTo.setBeginColumnIndex(2);


loadTo.setBeginRowIndex(3);


loadTo.setWorksheet("L2W");

loadData.setLoadTo(loadTo);


DataQuery dataQuery = new DataQuery();
dataQuery.setName("DataQuery");


DataItem dataItem = new DataItem();
dataItem.setDataItemType("Table");


dataItem.setValue("Table1");

dataQuery.setDataItem(dataItem);


DataSource dataSource = new DataSource();
dataSource.setDataSourceType("CloudFileSystem");


dataSource.setDataPath("BookTableL2W.xlsx");

dataQuery.setDataSource(dataSource);


dataQuery.setDataSourceDataType("ListObject");

loadData.setDataQuery(dataQuery);

dataTransformationRequest.setLoadData(loadData);


ArrayList<AppliedStep> dataTransformationRequestAppliedSteps = new ArrayList<AppliedStep>();
dataTransformationRequest.setAppliedSteps(dataTransformationRequestAppliedSteps);

request.setDataTransformationRequest(dataTransformationRequest);

this.api.postDataTransformation(request);

} catch (ApiException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
15 changes: 10 additions & 5 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.5)
![](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.6)

# Java package for Aspose.Cells Cloud

Expand All @@ -17,13 +17,12 @@ 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.5
## Feature & Enhancements in Version 24.6

Full list of issues covering all changes in this release:

- Add merge queries method for loading data of data transformation.
- Optimize chart data model.
- Update obtaining access token address.
- Optimize the data conversion applied steps.
- Optimize load data function of data transformation.

## Support file format

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

# Release history version

## Enhancements in Version 24.5

- Add merge queries method for loading data of data transformation.
- Optimize chart data model.
- Update obtaining access token address.

## Enhancements in Version 24.4

- Support data transformation function for Aspose.Cells Cloud Services.
Expand Down
Binary file added TestData/BookTableL2W.xlsx
Binary file not shown.
6 changes: 3 additions & 3 deletions docs/model/abstract-calculation-monitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Monitor for user to track the progress of formula calculation.

| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
| :- | :- | :- |:- | :- | :- |
|OriginalValue|Class|true|false | |Gets the old value of the calculated cell. Should be used only in and . |
|ValueChanged|Boolean|true|false | |Whether the cell's value has been changed after the calculation. Should be used only in . |
|CalculatedValue|Class|true|false | |Gets the newly calculated value of the cell. Should be used only in . |
|OriginalValue|Class|true|false | |Gets the old value of the calculated cell. Should be used only in and . |
|ValueChanged|Boolean|true|false | |Whether the cell's value has been changed after the calculation. Should be used only in . |
|CalculatedValue|Class|true|false | |Gets the newly calculated value of the cell. Should be used only in . |

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# **queryDataSourceDataType**
# **appliedOperateType**


Operation type.

## **Properties**

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# **queryDataSource**
# **appliedOperate**


A data operation that is used to obtain a query of data.

## **Properties**

| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
| :- | :- | :- |:- | :- | :- |
|DataSourceDataType|String|true|false | ||
|DataFile|Class|true|false | ||
|DataSource|String|true|false | ||
|AppliedOperateType|String|true|false | ||

11 changes: 11 additions & 0 deletions docs/model/applied-step.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# **appliedStep**

Each data manipulation step that is performed when you get the query data.

## **Properties**

| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
| :- | :- | :- |:- | :- | :- |
|StepName|String|true|false | |Data manipulation step name.|
|AppliedOperate|Class|true|false | |Data manipulation name.|

14 changes: 14 additions & 0 deletions docs/model/data-query.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# **dataQuery**

Data query.

## **Properties**

| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
| :- | :- | :- |:- | :- | :- |
|Name|String|true|false | |Define a name for data query. Unique identification.|
|DataSourceDataType|String|true|false | |The specific data object type. When the value is File, DataItem is invalid.|
|DataSource|Class|true|false | |Indicates the source of the mount data.|
|FileInfo|Class|true|false | |When data souce is request files, FileInfo store the contents of the file.|
|DataItem|Class|true|false | |The specific data object type and name.|

11 changes: 6 additions & 5 deletions docs/model/data-transformation-request.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# **dataTransformationRequest**


Data Transformation Request

## **Properties**

| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
| :- | :- | :- |:- | :- | :- |
|FileInfo|Class|true|false | ||
|Transformation|Class|true|false | ||
|LoadData|Class|true|false | ||
|FileInfo|Class|true|false | |Indicates the source of the mount data.|
|DataSource|Class|true|false | |Indicates the source of the mount data.|
|LoadData|Class|true|false | |Indicates load data.|
|AppliedSteps|Container|true|false | |Indicates applied step list. |
|Region|String|true|false | ||
|OutFormat|String|true|false | ||
|OutFormat|String|true|false | |Indicates output format |

2 changes: 1 addition & 1 deletion docs/model/join-type.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# **joinType**


Join Type.

## **Properties**

Expand Down
5 changes: 1 addition & 4 deletions docs/model/load-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,5 @@ Loading data information.
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
| :- | :- | :- |:- | :- | :- |
|LoadTo|Class|true|false | |Indicates begin position for loading data. |
|DataSource|Class|true|false | |Indicates the source of the mount data.|
|FileInfo|Class|true|false | |When data souce is request files, FileInfo store the contents of the file.|
|DataItem|Class|true|false | |The specific data object type and name.|
|MergeQueries|Class|true|false | ||
|DataQuery|Class|true|false | |Indicates data query for data loading. |

8 changes: 4 additions & 4 deletions docs/model/load-to.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# **loadTo**


A description of the location to which the data is mounted.

## **Properties**

| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
| :- | :- | :- |:- | :- | :- |
|Worksheet|String|true|false | ||
|beginRowIndex|Integer|true|false | ||
|beginColumnIndex|Integer|true|false | ||
|Worksheet|String|true|false | |The worksheet name.|
|beginRowIndex|Integer|true|false | |The begin row index of worksheet.|
|beginColumnIndex|Integer|true|false | |The begin column index of worksheet.|

15 changes: 6 additions & 9 deletions docs/model/merge-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ Represents merge quesies.

| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
| :- | :- | :- |:- | :- | :- |
|DataSourceA|Class|true|false | |Indicates the source of the mount data.|
|FileInfoA|Class|true|false | ||
|DataItemA|Class|true|false | |Represents data item.|
|DataAIndexField|String|true|false | |Represents index field of DataA|
|DataSourceB|Class|true|false | |Indicates the source of the mount data.|
|FileInfoB|Class|true|false | ||
|DataItemB|Class|true|false | |Represents data item.|
|DataBIndexField|String|true|false | |Represents index field of DataB|
|JoinType|String|true|false | ||
|DataQueryNameA|String|true|false | |Indicates the name of the data query , it is matched in the data query set.|
|DataAIndexField|String|true|false | |Represents index field of DataA.|
|DataQueryNameB|String|true|false | |Indicates the name of the data query , it is matched in the data query set.|
|DataBIndexField|String|true|false | |Represents index field of DataB.|
|JoinType|String|true|false | |Represents ethods of data consolidation.|
|AppliedOperateType|String|true|false | ||

7 changes: 4 additions & 3 deletions docs/model/pivot-column.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# **pivotColumn**


Represents pivot column for data table.

## **Properties**

| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
| :- | :- | :- |:- | :- | :- |
|PivotColumnName|String|true|false | ||
|ValueColumnNames|Container|true|false | ||
|PivotColumnName|String|true|false | |Represents pivot column name.|
|ValueColumnNames|Container|true|false | |Represents column name that sets the column's value to the value of the pivot column.|
|AppliedOperateType|String|true|false | ||

9 changes: 9 additions & 0 deletions docs/model/query-data-source-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# **queryDataSourceType**

Represents query data source type

## **Properties**

| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
| :- | :- | :- |:- | :- | :- |

14 changes: 0 additions & 14 deletions docs/model/query-table.md

This file was deleted.

11 changes: 0 additions & 11 deletions docs/model/transformation.md

This file was deleted.

9 changes: 5 additions & 4 deletions docs/model/unpivot-column.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# **unpivotColumn**


Unpivot column.

## **Properties**

| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description |
| :- | :- | :- |:- | :- | :- |
|UnpivotColumnNames|Container|true|false | ||
|ColumnMapName|String|true|false | ||
|ValueMapName|String|true|false | ||
|UnpivotColumnNames|Container|true|false | |Indicates unpivot column names.|
|ColumnMapName|String|true|false | |Indicates the column is used to store the name of unpivot columns.|
|ValueMapName|String|true|false | |Indicates the column is used to store the value of unpivot columns.|
|AppliedOperateType|String|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.5</version>
<version>24.6</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
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.5/java");
setUserAgent("CellsCloud-SDK/24.6/java");

// Setup authentications (key: authentication name, value:
// authentication).
Expand Down
Loading

0 comments on commit 0bc1411

Please sign in to comment.