Skip to content

Commit 50cf2c5

Browse files
committed
Release Aspose.Cells Cloud SDK 20.6
1 parent 27b5357 commit 50cf2c5

File tree

9 files changed

+459
-8
lines changed

9 files changed

+459
-8
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ Python Cloud SDK wraps Aspose.Cells REST API so you could seamlessly integrate M
1616
- Convert worksheets to PDF, XPS & SVG formats.
1717
- Inter-convert files to popular Excel formats.
1818

19-
## Feature & Enhancements in Version 20.4
19+
## Feature & Enhancements in Version 20.6
2020

21-
- Support to export area or page of sheet to JPEG.
22-
- Support to add background for workbook.
23-
- Enhancement for splitting workbook.
24-
- Enhancement for create workbook.
21+
22+
- Support to add text water marker.
23+
- Enhancement for workbook convert images in get workbook API.
24+
- Enhancement for Cells object operating in Task API.
2525

2626
## Read & Write Spreadsheet Formats
2727

asposecellscloud/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
from .models.task_data import TaskData
106106
from .models.task_description import TaskDescription
107107
from .models.task_parameter import TaskParameter
108+
from .models.text_water_marker_request import TextWaterMarkerRequest
108109
from .models.texture_fill import TextureFill
109110
from .models.theme_color import ThemeColor
110111
from .models.tile_pic_option import TilePicOption

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/20.4/python'
86+
self.user_agent = 'Swagger-Codegen/20.6/python'
8787

8888
@property
8989
def user_agent(self):

asposecellscloud/apis/cells_api.py

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25466,6 +25466,123 @@ def cells_workbook_put_workbook_create_with_http_info(self, name, **kwargs):
2546625466
_request_timeout=params.get('_request_timeout'),
2546725467
collection_formats=collection_formats)
2546825468

25469+
def cells_workbook_put_workbook_water_marker(self, name, **kwargs):
25470+
"""
25471+
Set workbook background image.
25472+
This method makes a synchronous HTTP request by default. To make an
25473+
asynchronous HTTP request, please define a `callback` function
25474+
to be invoked when receiving the response.
25475+
>>> def callback_function(response):
25476+
>>> pprint(response)
25477+
>>>
25478+
>>> thread = api.cells_workbook_put_workbook_water_marker(name, callback=callback_function)
25479+
25480+
:param callback function: The callback function
25481+
for asynchronous request. (optional)
25482+
:param str name: (required)
25483+
:param str folder:
25484+
:param str storage: storage name.
25485+
:param TextWaterMarkerRequest text_water_marker_request: The text water marker request.
25486+
:return: CellsCloudResponse
25487+
If the method is called asynchronously,
25488+
returns the request thread.
25489+
"""
25490+
kwargs['_return_http_data_only'] = True
25491+
self.check_access_token()
25492+
if kwargs.get('callback'):
25493+
return self.cells_workbook_put_workbook_water_marker_with_http_info(name, **kwargs)
25494+
else:
25495+
(data) = self.cells_workbook_put_workbook_water_marker_with_http_info(name, **kwargs)
25496+
return data
25497+
25498+
def cells_workbook_put_workbook_water_marker_with_http_info(self, name, **kwargs):
25499+
"""
25500+
Set workbook background image.
25501+
This method makes a synchronous HTTP request by default. To make an
25502+
asynchronous HTTP request, please define a `callback` function
25503+
to be invoked when receiving the response.
25504+
>>> def callback_function(response):
25505+
>>> pprint(response)
25506+
>>>
25507+
>>> thread = api.cells_workbook_put_workbook_water_marker_with_http_info(name, callback=callback_function)
25508+
25509+
:param callback function: The callback function
25510+
for asynchronous request. (optional)
25511+
:param str name: (required)
25512+
:param str folder:
25513+
:param str storage: storage name.
25514+
:param TextWaterMarkerRequest text_water_marker_request: The text water marker request.
25515+
:return: CellsCloudResponse
25516+
If the method is called asynchronously,
25517+
returns the request thread.
25518+
"""
25519+
25520+
all_params = ['name', 'folder', 'storage', 'text_water_marker_request']
25521+
all_params.append('callback')
25522+
all_params.append('_return_http_data_only')
25523+
all_params.append('_preload_content')
25524+
all_params.append('_request_timeout')
25525+
25526+
params = locals()
25527+
for key, val in iteritems(params['kwargs']):
25528+
if key not in all_params:
25529+
raise TypeError(
25530+
"Got an unexpected keyword argument '%s'"
25531+
" to method cells_workbook_put_workbook_water_marker" % key
25532+
)
25533+
params[key] = val
25534+
del params['kwargs']
25535+
# verify the required parameter 'name' is set
25536+
if ('name' not in params) or (params['name'] is None):
25537+
raise ValueError("Missing the required parameter `name` when calling `cells_workbook_put_workbook_water_marker`")
25538+
25539+
25540+
collection_formats = {}
25541+
25542+
path_params = {}
25543+
if 'name' in params:
25544+
path_params['name'] = params['name']
25545+
25546+
query_params = []
25547+
if 'folder' in params:
25548+
query_params.append(('folder', params['folder']))
25549+
if 'storage' in params:
25550+
query_params.append(('storage', params['storage']))
25551+
25552+
header_params = {}
25553+
25554+
form_params = []
25555+
local_var_files = {}
25556+
25557+
body_params = None
25558+
if 'text_water_marker_request' in params:
25559+
body_params = params['text_water_marker_request']
25560+
# HTTP header `Accept`
25561+
header_params['Accept'] = self.api_client.\
25562+
select_header_accept(['application/json'])
25563+
25564+
# HTTP header `Content-Type`
25565+
header_params['Content-Type'] = self.api_client.\
25566+
select_header_content_type(['application/json'])
25567+
25568+
# Authentication setting
25569+
auth_settings = []
25570+
25571+
return self.api_client.call_api('/cells/{name}/watermarker', 'PUT',
25572+
path_params,
25573+
query_params,
25574+
header_params,
25575+
body=body_params,
25576+
post_params=form_params,
25577+
files=local_var_files,
25578+
response_type='CellsCloudResponse',
25579+
auth_settings=auth_settings,
25580+
callback=params.get('callback'),
25581+
_return_http_data_only=params.get('_return_http_data_only'),
25582+
_preload_content=params.get('_preload_content', True),
25583+
_request_timeout=params.get('_request_timeout'),
25584+
collection_formats=collection_formats)
25585+
2546925586
def cells_worksheet_validations_delete_worksheet_validation(self, name, sheet_name, validation_index, **kwargs):
2547025587
"""
2547125588
Delete worksheet validation by index.

asposecellscloud/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,6 @@ def to_debug_report(self):
254254
return "Python SDK Debug Report:\n"\
255255
"OS: {env}\n"\
256256
"Python Version: {pyversion}\n"\
257-
"Version of the API: 19.8\n"\
258-
"SDK Package Version: 20.4".\
257+
"Version of the API: 20.6\n"\
258+
"SDK Package Version: 20.6".\
259259
format(env=sys.platform, pyversion=sys.version)

asposecellscloud/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
from .task_data import TaskData
106106
from .task_description import TaskDescription
107107
from .task_parameter import TaskParameter
108+
from .text_water_marker_request import TextWaterMarkerRequest
108109
from .texture_fill import TextureFill
109110
from .theme_color import ThemeColor
110111
from .tile_pic_option import TilePicOption

0 commit comments

Comments
 (0)