Skip to content

Commit 7c731f4

Browse files
committed
Release Aspose.Cells Cloud SDK 21.10
1 parent 0189236 commit 7c731f4

13 files changed

+767
-47
lines changed

README.md

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![PyPI](https://img.shields.io/pypi/v/asposecellscloud) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/asposecellscloud) ![PyPI - Downloads](https://img.shields.io/pypi/dm/asposecellscloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-python)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-python/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-python/21.9)
1+
![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![PyPI](https://img.shields.io/pypi/v/asposecellscloud) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/asposecellscloud) ![PyPI - Downloads](https://img.shields.io/pypi/dm/asposecellscloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-python)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-python/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-python/21.10)
22

33

44
# Python SDK for Spreadsheet Processing in Cloud
@@ -21,27 +21,10 @@ Python Cloud SDK wraps Aspose.Cells REST API so you could seamlessly integrate M
2121
- Convert worksheets to PDF, XPS & SVG formats.
2222
- Inter-convert files to popular Excel formats.
2323

24-
## Feature & Enhancements in Version 21.9
25-
26-
- Correct the return type of the following REST APIs.
27-
28-
Delete WorksheetDeleteChart
29-
Post WorksheetChartLegend
30-
Post WorksheetChartTitle
31-
Put WorksheetAddChart
32-
Put WorksheetChartTitle
33-
Post WorksheetHyperlink
34-
Put WorksheetHyperlink
35-
Put WorksheetListObject
36-
Put WorksheetOleObject
37-
Post WorksheetPicture
38-
Put WorksheetAddPicture
39-
Put WorksheetPivotTable
40-
Delete DocumentProperties
41-
Delete DocumentProperty
42-
Put DocumentProperty
43-
Put WorksheetShape
44-
Delete WorksheetValidation
24+
## Feature & Enhancements in Version 21.10
25+
26+
- Add new API for support delete multiple worksheets in a single call.
27+
- Add new API for supports batch convert excel files.
4528

4629

4730
## Read & Write Spreadsheet Formats

asposecellscloud/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
from .models.access_token_response import AccessTokenResponse
2929
from .models.area import Area
3030
from .models.auto_fitter_options import AutoFitterOptions
31+
from .models.batch_convert_request import BatchConvertRequest
3132
from .models.border import Border
3233
from .models.calculation_options import CalculationOptions
3334
from .models.cell_area import CellArea
@@ -72,6 +73,7 @@
7273
from .models.link import Link
7374
from .models.link_element import LinkElement
7475
from .models.list_column import ListColumn
76+
from .models.match_condition_request import MatchConditionRequest
7577
from .models.multiple_filter import MultipleFilter
7678
from .models.multiple_filters import MultipleFilters
7779
from .models.negative_bar_format import NegativeBarFormat

asposecellscloud/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __init__(self, host=None, header_name=None, header_value=None, cookie=None):
8383
self.host = host
8484
self.cookie = cookie
8585
# Set default User-Agent.
86-
self.user_agent = 'Swagger-Codegen/21.9/python'
86+
self.user_agent = 'Swagger-Codegen/21.10/python'
8787

8888
@property
8989
def user_agent(self):

asposecellscloud/apis/cells_api.py

Lines changed: 223 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28560,6 +28560,126 @@ def cells_worksheets_delete_worksheet_freeze_panes_with_http_info(self, name, sh
2856028560
_request_timeout=params.get('_request_timeout'),
2856128561
collection_formats=collection_formats)
2856228562

28563+
def cells_worksheets_delete_worksheets(self, name, match_condition, **kwargs):
28564+
"""
28565+
Read worksheets info.
28566+
This method makes a synchronous HTTP request by default. To make an
28567+
asynchronous HTTP request, please define a `callback` function
28568+
to be invoked when receiving the response.
28569+
>>> def callback_function(response):
28570+
>>> pprint(response)
28571+
>>>
28572+
>>> thread = api.cells_worksheets_delete_worksheets(name, match_condition, callback=callback_function)
28573+
28574+
:param callback function: The callback function
28575+
for asynchronous request. (optional)
28576+
:param str name: (required)
28577+
:param MatchConditionRequest match_condition: (required)
28578+
:param str folder:
28579+
:param str storage_name:
28580+
:return: CellsCloudResponse
28581+
If the method is called asynchronously,
28582+
returns the request thread.
28583+
"""
28584+
kwargs['_return_http_data_only'] = True
28585+
self.check_access_token()
28586+
if kwargs.get('callback'):
28587+
return self.cells_worksheets_delete_worksheets_with_http_info(name, match_condition, **kwargs)
28588+
else:
28589+
(data) = self.cells_worksheets_delete_worksheets_with_http_info(name, match_condition, **kwargs)
28590+
return data
28591+
28592+
def cells_worksheets_delete_worksheets_with_http_info(self, name, match_condition, **kwargs):
28593+
"""
28594+
Read worksheets info.
28595+
This method makes a synchronous HTTP request by default. To make an
28596+
asynchronous HTTP request, please define a `callback` function
28597+
to be invoked when receiving the response.
28598+
>>> def callback_function(response):
28599+
>>> pprint(response)
28600+
>>>
28601+
>>> thread = api.cells_worksheets_delete_worksheets_with_http_info(name, match_condition, callback=callback_function)
28602+
28603+
:param callback function: The callback function
28604+
for asynchronous request. (optional)
28605+
:param str name: (required)
28606+
:param MatchConditionRequest match_condition: (required)
28607+
:param str folder:
28608+
:param str storage_name:
28609+
:return: CellsCloudResponse
28610+
If the method is called asynchronously,
28611+
returns the request thread.
28612+
"""
28613+
28614+
all_params = ['name', 'match_condition', 'folder', 'storage_name']
28615+
all_params.append('callback')
28616+
all_params.append('_return_http_data_only')
28617+
all_params.append('_preload_content')
28618+
all_params.append('_request_timeout')
28619+
28620+
params = locals()
28621+
for key, val in iteritems(params['kwargs']):
28622+
if key not in all_params:
28623+
raise TypeError(
28624+
"Got an unexpected keyword argument '%s'"
28625+
" to method cells_worksheets_delete_worksheets" % key
28626+
)
28627+
params[key] = val
28628+
del params['kwargs']
28629+
# verify the required parameter 'name' is set
28630+
if ('name' not in params) or (params['name'] is None):
28631+
raise ValueError("Missing the required parameter `name` when calling `cells_worksheets_delete_worksheets`")
28632+
# verify the required parameter 'match_condition' is set
28633+
if ('match_condition' not in params) or (params['match_condition'] is None):
28634+
raise ValueError("Missing the required parameter `match_condition` when calling `cells_worksheets_delete_worksheets`")
28635+
28636+
28637+
collection_formats = {}
28638+
28639+
path_params = {}
28640+
if 'name' in params:
28641+
path_params['name'] = params['name']
28642+
28643+
query_params = []
28644+
if 'folder' in params:
28645+
query_params.append(('folder', params['folder']))
28646+
if 'storage_name' in params:
28647+
query_params.append(('storageName', params['storage_name']))
28648+
28649+
header_params = {}
28650+
28651+
form_params = []
28652+
local_var_files = {}
28653+
28654+
body_params = None
28655+
if 'match_condition' in params:
28656+
body_params = params['match_condition']
28657+
# HTTP header `Accept`
28658+
header_params['Accept'] = self.api_client.\
28659+
select_header_accept(['application/json'])
28660+
28661+
# HTTP header `Content-Type`
28662+
header_params['Content-Type'] = self.api_client.\
28663+
select_header_content_type(['application/json'])
28664+
28665+
# Authentication setting
28666+
auth_settings = []
28667+
28668+
return self.api_client.call_api('/cells/{name}/worksheets', 'DELETE',
28669+
path_params,
28670+
query_params,
28671+
header_params,
28672+
body=body_params,
28673+
post_params=form_params,
28674+
files=local_var_files,
28675+
response_type='CellsCloudResponse',
28676+
auth_settings=auth_settings,
28677+
callback=params.get('callback'),
28678+
_return_http_data_only=params.get('_return_http_data_only'),
28679+
_preload_content=params.get('_preload_content', True),
28680+
_request_timeout=params.get('_request_timeout'),
28681+
collection_formats=collection_formats)
28682+
2856328683
def cells_worksheets_get_named_ranges(self, name, **kwargs):
2856428684
"""
2856528685
Read worksheets ranges info.
@@ -33526,6 +33646,109 @@ def object_exists_with_http_info(self, path, **kwargs):
3352633646
_request_timeout=params.get('_request_timeout'),
3352733647
collection_formats=collection_formats)
3352833648

33649+
def post_batch_convert(self, batch_convert_request, **kwargs):
33650+
"""
33651+
This method makes a synchronous HTTP request by default. To make an
33652+
asynchronous HTTP request, please define a `callback` function
33653+
to be invoked when receiving the response.
33654+
>>> def callback_function(response):
33655+
>>> pprint(response)
33656+
>>>
33657+
>>> thread = api.post_batch_convert(batch_convert_request, callback=callback_function)
33658+
33659+
:param callback function: The callback function
33660+
for asynchronous request. (optional)
33661+
:param BatchConvertRequest batch_convert_request: (required)
33662+
:return: file
33663+
If the method is called asynchronously,
33664+
returns the request thread.
33665+
"""
33666+
kwargs['_return_http_data_only'] = True
33667+
self.check_access_token()
33668+
if kwargs.get('callback'):
33669+
return self.post_batch_convert_with_http_info(batch_convert_request, **kwargs)
33670+
else:
33671+
(data) = self.post_batch_convert_with_http_info(batch_convert_request, **kwargs)
33672+
return data
33673+
33674+
def post_batch_convert_with_http_info(self, batch_convert_request, **kwargs):
33675+
"""
33676+
This method makes a synchronous HTTP request by default. To make an
33677+
asynchronous HTTP request, please define a `callback` function
33678+
to be invoked when receiving the response.
33679+
>>> def callback_function(response):
33680+
>>> pprint(response)
33681+
>>>
33682+
>>> thread = api.post_batch_convert_with_http_info(batch_convert_request, callback=callback_function)
33683+
33684+
:param callback function: The callback function
33685+
for asynchronous request. (optional)
33686+
:param BatchConvertRequest batch_convert_request: (required)
33687+
:return: file
33688+
If the method is called asynchronously,
33689+
returns the request thread.
33690+
"""
33691+
33692+
all_params = ['batch_convert_request']
33693+
all_params.append('callback')
33694+
all_params.append('_return_http_data_only')
33695+
all_params.append('_preload_content')
33696+
all_params.append('_request_timeout')
33697+
33698+
params = locals()
33699+
for key, val in iteritems(params['kwargs']):
33700+
if key not in all_params:
33701+
raise TypeError(
33702+
"Got an unexpected keyword argument '%s'"
33703+
" to method post_batch_convert" % key
33704+
)
33705+
params[key] = val
33706+
del params['kwargs']
33707+
# verify the required parameter 'batch_convert_request' is set
33708+
if ('batch_convert_request' not in params) or (params['batch_convert_request'] is None):
33709+
raise ValueError("Missing the required parameter `batch_convert_request` when calling `post_batch_convert`")
33710+
33711+
33712+
collection_formats = {}
33713+
33714+
path_params = {}
33715+
33716+
query_params = []
33717+
33718+
header_params = {}
33719+
33720+
form_params = []
33721+
local_var_files = {}
33722+
33723+
body_params = None
33724+
if 'batch_convert_request' in params:
33725+
body_params = params['batch_convert_request']
33726+
# HTTP header `Accept`
33727+
header_params['Accept'] = self.api_client.\
33728+
select_header_accept(['application/json'])
33729+
33730+
# HTTP header `Content-Type`
33731+
header_params['Content-Type'] = self.api_client.\
33732+
select_header_content_type(['application/json'])
33733+
33734+
# Authentication setting
33735+
auth_settings = []
33736+
33737+
return self.api_client.call_api('/cells/batch/convert', 'POST',
33738+
path_params,
33739+
query_params,
33740+
header_params,
33741+
body=body_params,
33742+
post_params=form_params,
33743+
files=local_var_files,
33744+
response_type='file',
33745+
auth_settings=auth_settings,
33746+
callback=params.get('callback'),
33747+
_return_http_data_only=params.get('_return_http_data_only'),
33748+
_preload_content=params.get('_preload_content', True),
33749+
_request_timeout=params.get('_request_timeout'),
33750+
collection_formats=collection_formats)
33751+
3352933752
def storage_exists(self, storage_name, **kwargs):
3353033753
"""
3353133754
Check if storage exists

asposecellscloud/configuration.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ def __init__(self):
103103
self.proxy = None
104104
# Safe chars for path_param
105105
self.safe_chars_for_path_param = '/'
106-
106+
# self.proxy = 'https://127.0.0.1:8888'
107+
# self.ssl_ca_cert = 'C://projects//FiddlerRoot.pem'
107108
@property
108109
def logger_file(self):
109110
"""
@@ -255,5 +256,5 @@ def to_debug_report(self):
255256
"OS: {env}\n"\
256257
"Python Version: {pyversion}\n"\
257258
"Version of the API: 21.9\n"\
258-
"SDK Package Version: 21.9".\
259+
"SDK Package Version: 21.10".\
259260
format(env=sys.platform, pyversion=sys.version)

asposecellscloud/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
from .access_token_response import AccessTokenResponse
2929
from .area import Area
3030
from .auto_fitter_options import AutoFitterOptions
31+
from .batch_convert_request import BatchConvertRequest
3132
from .border import Border
3233
from .calculation_options import CalculationOptions
3334
from .cell_area import CellArea
@@ -72,6 +73,7 @@
7273
from .link import Link
7374
from .link_element import LinkElement
7475
from .list_column import ListColumn
76+
from .match_condition_request import MatchConditionRequest
7577
from .multiple_filter import MultipleFilter
7678
from .multiple_filters import MultipleFilters
7779
from .negative_bar_format import NegativeBarFormat

0 commit comments

Comments
 (0)