Skip to content

Commit 18d3cb7

Browse files
committed
20220526 update: fix api.
1 parent 901db54 commit 18d3cb7

File tree

258 files changed

+681
-255
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

258 files changed

+681
-255
lines changed

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>22.4</version>
8+
<version>22.5</version>
99
<url>https://github.com/aspose-cells-cloud/aspose-cells-cloud-java</url>
1010
<scm>
1111
<connection>scm:git:[email protected]:aspose-cells-cloud/aspose-cells-cloud-java</connection>

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

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
import com.aspose.cloud.cells.model.AutoFitterOptions;
4444
import com.aspose.cloud.cells.model.AutoShapesResponse;
4545
import com.aspose.cloud.cells.model.BatchConvertRequest;
46+
import com.aspose.cloud.cells.model.BarcodeResponseList;
4647
import com.aspose.cloud.cells.model.CalculationOptions;
4748
import com.aspose.cloud.cells.model.CellResponse;
4849
import com.aspose.cloud.cells.model.CellsCloudResponse;
@@ -15414,7 +15415,164 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
1541415415
String[] localVarAuthNames = new String[] { };
1541515416
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
1541615417
}
15418+
/**
15419+
* Build call for cellsPictureGetExtractBarcodes
15420+
* @param name Workbook name. (required)
15421+
* @param sheetName Worksheet name. (required)
15422+
* @param pictureIndex The picture index. (required)
15423+
* @param folder Workbook folder. (optional)
15424+
* @param storageName storage name. (optional)
15425+
* @param progressListener Progress listener
15426+
* @param progressRequestListener Progress request listener
15427+
* @return Call to execute
15428+
* @throws ApiException If fail to serialize the request body object
15429+
*/
15430+
public com.squareup.okhttp.Call cellsPictureGetExtractBarcodesCall(String name, String sheetName, Integer pictureIndex, String folder, String storageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
15431+
Object localVarPostBody = null;
15432+
15433+
// create path and map variables
15434+
String localVarPath = "/cells/{name}/worksheets/{sheetName}/pictures/{pictureIndex}/recognize"
15435+
.replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString()))
15436+
.replaceAll("\\{" + "sheetName" + "\\}", apiClient.escapeString(sheetName.toString()))
15437+
.replaceAll("\\{" + "pictureIndex" + "\\}", apiClient.escapeString(pictureIndex.toString()));
15438+
15439+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
15440+
if (folder != null)
15441+
localVarQueryParams.addAll(apiClient.parameterToPairs("", "folder", folder));
15442+
if (storageName != null)
15443+
localVarQueryParams.addAll(apiClient.parameterToPairs("", "storageName", storageName));
15444+
15445+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
15446+
15447+
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
15448+
15449+
final String[] localVarAccepts = {
15450+
"application/json"
15451+
};
15452+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
15453+
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
15454+
15455+
final String[] localVarContentTypes = {
15456+
"application/json"
15457+
};
15458+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
15459+
localVarHeaderParams.put("Content-Type", localVarContentType);
15460+
15461+
if(progressListener != null) {
15462+
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
15463+
@Override
15464+
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
15465+
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
15466+
return originalResponse.newBuilder()
15467+
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
15468+
.build();
15469+
}
15470+
});
15471+
}
15472+
15473+
String[] localVarAuthNames = new String[] { };
15474+
return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
15475+
}
1541715476

15477+
@SuppressWarnings("rawtypes")
15478+
private com.squareup.okhttp.Call cellsPictureGetExtractBarcodesValidateBeforeCall(String name, String sheetName, Integer pictureIndex, String folder, String storageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
15479+
15480+
// verify the required parameter 'name' is set
15481+
if (name == null) {
15482+
throw new ApiException("Missing the required parameter 'name' when calling cellsPictureGetExtractBarcodes(Async)");
15483+
}
15484+
15485+
// verify the required parameter 'sheetName' is set
15486+
if (sheetName == null) {
15487+
throw new ApiException("Missing the required parameter 'sheetName' when calling cellsPictureGetExtractBarcodes(Async)");
15488+
}
15489+
15490+
// verify the required parameter 'pictureIndex' is set
15491+
if (pictureIndex == null) {
15492+
throw new ApiException("Missing the required parameter 'pictureIndex' when calling cellsPictureGetExtractBarcodes(Async)");
15493+
}
15494+
15495+
15496+
com.squareup.okhttp.Call call = cellsPictureGetExtractBarcodesCall(name, sheetName, pictureIndex, folder, storageName, progressListener, progressRequestListener);
15497+
return call;
15498+
15499+
15500+
15501+
15502+
15503+
}
15504+
15505+
/**
15506+
* Get chart area border info.
15507+
*
15508+
* @param name Workbook name. (required)
15509+
* @param sheetName Worksheet name. (required)
15510+
* @param pictureIndex The picture index. (required)
15511+
* @param folder Workbook folder. (optional)
15512+
* @param storageName storage name. (optional)
15513+
* @return BarcodeResponseList
15514+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
15515+
*/
15516+
public BarcodeResponseList cellsPictureGetExtractBarcodes(String name, String sheetName, Integer pictureIndex, String folder, String storageName) throws ApiException {
15517+
ApiResponse<BarcodeResponseList> resp = cellsPictureGetExtractBarcodesWithHttpInfo(name, sheetName, pictureIndex, folder, storageName);
15518+
return resp.getData();
15519+
}
15520+
15521+
/**
15522+
* Get chart area border info.
15523+
*
15524+
* @param name Workbook name. (required)
15525+
* @param sheetName Worksheet name. (required)
15526+
* @param pictureIndex The picture index. (required)
15527+
* @param folder Workbook folder. (optional)
15528+
* @param storageName storage name. (optional)
15529+
* @return ApiResponse&lt;BarcodeResponseList&gt;
15530+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
15531+
*/
15532+
public ApiResponse<BarcodeResponseList> cellsPictureGetExtractBarcodesWithHttpInfo(String name, String sheetName, Integer pictureIndex, String folder, String storageName) throws ApiException {
15533+
com.squareup.okhttp.Call call = cellsPictureGetExtractBarcodesValidateBeforeCall(name, sheetName, pictureIndex, folder, storageName, null, null);
15534+
Type localVarReturnType = new TypeToken<BarcodeResponseList>(){}.getType();
15535+
return apiClient.execute(call, localVarReturnType);
15536+
}
15537+
15538+
/**
15539+
* Get chart area border info. (asynchronously)
15540+
*
15541+
* @param name Workbook name. (required)
15542+
* @param sheetName Worksheet name. (required)
15543+
* @param pictureIndex The picture index. (required)
15544+
* @param folder Workbook folder. (optional)
15545+
* @param storageName storage name. (optional)
15546+
* @param callback The callback to be executed when the API call finishes
15547+
* @return The request call
15548+
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
15549+
*/
15550+
public com.squareup.okhttp.Call cellsPictureGetExtractBarcodesAsync(String name, String sheetName, Integer pictureIndex, String folder, String storageName, final ApiCallback<BarcodeResponseList> callback) throws ApiException {
15551+
15552+
ProgressResponseBody.ProgressListener progressListener = null;
15553+
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
15554+
15555+
if (callback != null) {
15556+
progressListener = new ProgressResponseBody.ProgressListener() {
15557+
@Override
15558+
public void update(long bytesRead, long contentLength, boolean done) {
15559+
callback.onDownloadProgress(bytesRead, contentLength, done);
15560+
}
15561+
};
15562+
15563+
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
15564+
@Override
15565+
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
15566+
callback.onUploadProgress(bytesWritten, contentLength, done);
15567+
}
15568+
};
15569+
}
15570+
15571+
com.squareup.okhttp.Call call = cellsPictureGetExtractBarcodesValidateBeforeCall(name, sheetName, pictureIndex, folder, storageName, progressListener, progressRequestListener);
15572+
Type localVarReturnType = new TypeToken<BarcodeResponseList>(){}.getType();
15573+
apiClient.executeAsync(call, localVarReturnType, callback);
15574+
return call;
15575+
}
1541815576
@SuppressWarnings("rawtypes")
1541915577
private com.squareup.okhttp.Call cellsPageSetupPostPageSetupValidateBeforeCall(String name, String sheetName, PageSetup pageSetup, String folder, String storageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
1542015578

src/main/java/com/aspose/cloud/cells/model/AboveAverage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* Describe the AboveAverage conditional formatting rule. This conditional formatting rule highlights cells that are above or below the average for all values in the range.
3939
*/
4040
@ApiModel(description = "Describe the AboveAverage conditional formatting rule. This conditional formatting rule highlights cells that are above or below the average for all values in the range.")
41-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-03-13T18:09:02.334-05:00")
41+
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-05-25T04:35:47.926-05:00")
4242
public class AboveAverage {
4343
@SerializedName("IsAboveAverage")
4444
private Boolean isAboveAverage = null;

src/main/java/com/aspose/cloud/cells/model/AccessTokenResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
/**
3838
* AccessTokenResponse
3939
*/
40-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-03-13T18:09:02.334-05:00")
40+
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-05-25T04:35:47.926-05:00")
4141
public class AccessTokenResponse {
4242
@SerializedName("expires")
4343
private String expires = null;

src/main/java/com/aspose/cloud/cells/model/Area.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
/**
4040
* Area
4141
*/
42-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-03-13T18:09:02.334-05:00")
42+
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-05-25T04:35:47.926-05:00")
4343
public class Area {
4444
@SerializedName("ForegroundColor")
4545
private Color foregroundColor = null;

src/main/java/com/aspose/cloud/cells/model/AutoFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
/**
4444
* AutoFilter
4545
*/
46-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-03-13T18:09:02.334-05:00")
46+
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-05-25T04:35:47.926-05:00")
4747
public class AutoFilter {
4848
@SerializedName("link")
4949
private Link link = null;

src/main/java/com/aspose/cloud/cells/model/AutoFilterResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
/**
4040
* AutoFilterResponse
4141
*/
42-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-03-13T18:09:02.334-05:00")
42+
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-05-25T04:35:47.926-05:00")
4343
public class AutoFilterResponse extends CellsCloudResponse {
4444
@SerializedName("AutoFilter")
4545
private AutoFilter autoFilter = null;

src/main/java/com/aspose/cloud/cells/model/AutoFitterOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
/**
3838
* AutoFitterOptions
3939
*/
40-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-03-13T18:09:02.334-05:00")
40+
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-05-25T04:35:47.926-05:00")
4141
public class AutoFitterOptions {
4242
@SerializedName("IgnoreHidden")
4343
private Boolean ignoreHidden = null;

src/main/java/com/aspose/cloud/cells/model/AutoShape.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
/**
4040
* AutoShape
4141
*/
42-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-03-13T18:09:02.334-05:00")
42+
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-05-25T04:35:47.926-05:00")
4343
public class AutoShape {
4444
@SerializedName("AlternativeText")
4545
private String alternativeText = null;

src/main/java/com/aspose/cloud/cells/model/AutoShapeResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
/**
4040
* AutoShapeResponse
4141
*/
42-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-03-13T18:09:02.334-05:00")
42+
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-05-25T04:35:47.926-05:00")
4343
public class AutoShapeResponse extends CellsCloudResponse {
4444
@SerializedName("AutoShape")
4545
private AutoShape autoShape = null;

0 commit comments

Comments
 (0)