Skip to content

Commit 5219b84

Browse files
committed
Release Aspose.Cells Cloud SDK for Java 20.1
1 parent af9629a commit 5219b84

File tree

260 files changed

+588
-562
lines changed

Some content is hidden

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

260 files changed

+588
-562
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Aspose.Cells Cloud SDK for Java
22

33
- API version: 3.0
4-
- SDK version: 19.10
4+
- SDK version: 20.1
55

66
This repository contains Aspose.Cells Cloud SDK for Java source code. This SDK allows you to work with Aspose.Cells Cloud REST APIs in your Java applications quickly and easily, with zero initial cost.
77

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>19.10</version>
8+
<version>20.1</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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* <summary>
3-
* Copyright (c) 2019 Aspose.Cells Cloud
3+
* Copyright (c) 2020 Aspose.Cells Cloud
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal
66
* in the Software without restriction, including without limitation the rights
@@ -32,12 +32,12 @@
3232
import com.aspose.cloud.cells.client.Pair;
3333
import com.aspose.cloud.cells.client.ProgressRequestBody;
3434
import com.aspose.cloud.cells.client.ProgressResponseBody;
35-
3635
import com.google.gson.reflect.TypeToken;
3736

3837
import java.io.IOException;
3938

4039

40+
4141
import com.aspose.cloud.cells.model.AccessTokenResponse;
4242
import com.aspose.cloud.cells.model.AutoFilterResponse;
4343
import com.aspose.cloud.cells.model.AutoFitterOptions;
@@ -64,7 +64,9 @@
6464
import com.aspose.cloud.cells.model.CreatePivotTableRequest;
6565
import com.aspose.cloud.cells.model.DataSorter;
6666
import com.aspose.cloud.cells.model.DiscUsage;
67+
6768
import java.io.File;
69+
6870
import com.aspose.cloud.cells.model.FileVersions;
6971
import com.aspose.cloud.cells.model.FilesList;
7072
import com.aspose.cloud.cells.model.FilesUploadResult;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* <summary>
3-
* Copyright (c) 2019 Aspose.Cells Cloud
3+
* Copyright (c) 2020 Aspose.Cells Cloud
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal
66
* in the Software without restriction, including without limitation the rights

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

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* <summary>
3-
* Copyright (c) 2019 Aspose.Cells Cloud
3+
* Copyright (c) 2020 Aspose.Cells Cloud
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal
66
* in the Software without restriction, including without limitation the rights
@@ -167,7 +167,7 @@ public ApiClient() {
167167
this.lenientDatetimeFormat = true;
168168

169169
// Set default User-Agent.
170-
setUserAgent("Swagger-Codegen/19.10/java");
170+
setUserAgent("Swagger-Codegen/20.1/java");
171171

172172
// Setup authentications (key: authentication name, value: authentication).
173173
authentications = new HashMap<String, Authentication>();
@@ -457,7 +457,56 @@ public Map<String, Authentication> getAuthentications() {
457457
public Authentication getAuthentication(String authName) {
458458
return authentications.get(authName);
459459
}
460+
/**
461+
* Get access token
462+
* @param grantType
463+
* @param clientId
464+
* @param clientSecret
465+
* @param version
466+
* @return
467+
* @throws ApiException
468+
*/
469+
public String getAccessToken(String grantType, String clientId, String clientSecret,String version) throws ApiException {
470+
Object localVarPostBody = null;
471+
472+
// create path and map variables
473+
474+
String localVarPath = "/connect/token";
475+
if( version == "v1.1")
476+
{
477+
localVarPath ="/oauth2/token";
478+
}
479+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
480+
481+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
482+
483+
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
484+
if (grantType != null)
485+
localVarFormParams.put("grant_type", grantType);
486+
if (clientId != null)
487+
localVarFormParams.put("client_id", clientId);
488+
if (clientSecret != null)
489+
localVarFormParams.put("client_secret", clientSecret);
460490

491+
final String[] localVarAccepts = {
492+
"application/json"
493+
};
494+
final String localVarAccept = selectHeaderAccept(localVarAccepts);
495+
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
496+
497+
final String[] localVarContentTypes = {
498+
"application/x-www-form-urlencoded"
499+
};
500+
final String localVarContentType = selectHeaderContentType(localVarContentTypes);
501+
localVarHeaderParams.put("Content-Type", localVarContentType);
502+
503+
String[] localVarAuthNames = new String[] { };
504+
505+
com.squareup.okhttp.Call call= buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, null);
506+
Type localVarReturnType = new TypeToken<AccessTokenResponse>(){}.getType();
507+
ApiResponse<AccessTokenResponse> resp = execute(call, localVarReturnType);
508+
return resp.getData().getAccessToken();
509+
}
461510
/**
462511
* Helper method to set username for the first HTTP basic authentication.
463512
*
@@ -1277,56 +1326,7 @@ public String guessContentTypeFromFile(File file) {
12771326
return contentType;
12781327
}
12791328
}
1280-
/**
1281-
* Get access token
1282-
* @param grantType
1283-
* @param clientId
1284-
* @param clientSecret
1285-
* @param version
1286-
* @return
1287-
* @throws ApiException
1288-
*/
1289-
public String getAccessToken(String grantType, String clientId, String clientSecret,String version) throws ApiException {
1290-
Object localVarPostBody = null;
1291-
1292-
// create path and map variables
1293-
1294-
String localVarPath = "/connect/token";
1295-
if( version == "v1.1")
1296-
{
1297-
localVarPath ="/oauth2/token";
1298-
}
1299-
List<Pair> localVarQueryParams = new ArrayList<Pair>();
1300-
1301-
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
1302-
1303-
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
1304-
if (grantType != null)
1305-
localVarFormParams.put("grant_type", grantType);
1306-
if (clientId != null)
1307-
localVarFormParams.put("client_id", clientId);
1308-
if (clientSecret != null)
1309-
localVarFormParams.put("client_secret", clientSecret);
1310-
1311-
final String[] localVarAccepts = {
1312-
"application/json"
1313-
};
1314-
final String localVarAccept = selectHeaderAccept(localVarAccepts);
1315-
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
1316-
1317-
final String[] localVarContentTypes = {
1318-
"application/x-www-form-urlencoded"
1319-
};
1320-
final String localVarContentType = selectHeaderContentType(localVarContentTypes);
1321-
localVarHeaderParams.put("Content-Type", localVarContentType);
1322-
1323-
String[] localVarAuthNames = new String[] { };
1324-
1325-
com.squareup.okhttp.Call call= buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, null);
1326-
Type localVarReturnType = new TypeToken<AccessTokenResponse>(){}.getType();
1327-
ApiResponse<AccessTokenResponse> resp = execute(call, localVarReturnType);
1328-
return resp.getData().getAccessToken();
1329-
}
1329+
13301330
/**
13311331
* Initialize datetime format according to the current environment, e.g. Java 1.7 and Android.
13321332
*/

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* <summary>
3-
* Copyright (c) 2019 Aspose.Cells Cloud
3+
* Copyright (c) 2020 Aspose.Cells Cloud
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal
66
* in the Software without restriction, including without limitation the rights
@@ -27,7 +27,7 @@
2727
import java.util.Map;
2828
import java.util.List;
2929

30-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-10-24T14:56:32.974+08:00")
30+
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-01-02T17:30:33.766+08:00")
3131
public class ApiException extends Exception {
3232
private int code = 0;
3333
private Map<String, List<String>> responseHeaders = null;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* <summary>
3-
* Copyright (c) 2019 Aspose.Cells Cloud
3+
* Copyright (c) 2020 Aspose.Cells Cloud
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal
66
* in the Software without restriction, including without limitation the rights
@@ -21,6 +21,7 @@
2121
* </summary>
2222
*/
2323

24+
2425
package com.aspose.cloud.cells.client;
2526

2627
import java.util.List;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* <summary>
3-
* Copyright (c) 2019 Aspose.Cells Cloud
3+
* Copyright (c) 2020 Aspose.Cells Cloud
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal
66
* in the Software without restriction, including without limitation the rights
@@ -24,7 +24,7 @@
2424

2525
package com.aspose.cloud.cells.client;
2626

27-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-10-24T14:56:32.974+08:00")
27+
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-01-02T17:30:33.766+08:00")
2828
public class Configuration {
2929
private static ApiClient defaultApiClient = new ApiClient();
3030

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* <summary>
3-
* Copyright (c) 2019 Aspose.Cells Cloud
3+
* Copyright (c) 2020 Aspose.Cells Cloud
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal
66
* in the Software without restriction, including without limitation the rights

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* <summary>
3-
* Copyright (c) 2019 Aspose.Cells Cloud
3+
* Copyright (c) 2020 Aspose.Cells Cloud
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal
66
* in the Software without restriction, including without limitation the rights

0 commit comments

Comments
 (0)