Skip to content

Commit 08395bf

Browse files
committed
Release Aspose.Cells.Cloud for Python 19.2.1.
1 parent 0057042 commit 08395bf

34 files changed

+1161
-16
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Aspose.Cells Cloud SDK for Python allows you to use Aspose.Cells APIs in your Python applications
44

5-
- Package version: 18.9
5+
- Package version: 19.2.1
66
- Build package: io.swagger.codegen.languages.PythonClientCodegen
77

88
## Requirements.
@@ -74,6 +74,7 @@ Class | Method | HTTP request | Description
7474
*CellsApi* | [**cells_delete_worksheet_columns**](docs/CellsApi.md#cells_delete_worksheet_columns) | **DELETE** /cells/{name}/worksheets/{sheetName}/cells/columns/{columnIndex} | Delete worksheet columns.
7575
*CellsApi* | [**cells_delete_worksheet_row**](docs/CellsApi.md#cells_delete_worksheet_row) | **DELETE** /cells/{name}/worksheets/{sheetName}/cells/rows/{rowIndex} | Delete worksheet row.
7676
*CellsApi* | [**cells_delete_worksheet_rows**](docs/CellsApi.md#cells_delete_worksheet_rows) | **DELETE** /cells/{name}/worksheets/{sheetName}/cells/rows | Delete several worksheet rows.
77+
*CellsApi* | [**cells_get_cell_html_string**](docs/CellsApi.md#cells_get_cell_html_string) | **GET** /cells/{name}/worksheets/{sheetName}/cells/{cellName}/htmlstring | Read cell data by cell's name.
7778
*CellsApi* | [**cells_get_worksheet_cell**](docs/CellsApi.md#cells_get_worksheet_cell) | **GET** /cells/{name}/worksheets/{sheetName}/cells/{cellOrMethodName} | Read cell data by cell's name.
7879
*CellsApi* | [**cells_get_worksheet_cell_style**](docs/CellsApi.md#cells_get_worksheet_cell_style) | **GET** /cells/{name}/worksheets/{sheetName}/cells/{cellName}/style | Read cell's style info.
7980
*CellsApi* | [**cells_get_worksheet_cells**](docs/CellsApi.md#cells_get_worksheet_cells) | **GET** /cells/{name}/worksheets/{sheetName}/cells | Get cells info.
@@ -191,7 +192,7 @@ Class | Method | HTTP request | Description
191192
*CellsPageSetupApi* | [**cells_page_setup_post_page_setup**](docs/CellsPageSetupApi.md#cells_page_setup_post_page_setup) | **POST** /cells/{name}/worksheets/{sheetName}/pagesetup | Update Page Setup information.
192193
*CellsPicturesApi* | [**cells_pictures_delete_worksheet_picture**](docs/CellsPicturesApi.md#cells_pictures_delete_worksheet_picture) | **DELETE** /cells/{name}/worksheets/{sheetName}/pictures/{pictureIndex} | Delete a picture object in worksheet
193194
*CellsPicturesApi* | [**cells_pictures_delete_worksheet_pictures**](docs/CellsPicturesApi.md#cells_pictures_delete_worksheet_pictures) | **DELETE** /cells/{name}/worksheets/{sheetName}/pictures | Delete all pictures in worksheet.
194-
*CellsPicturesApi* | [**cells_pictures_get_worksheet_picture**](docs/CellsPicturesApi.md#cells_pictures_get_worksheet_picture) | **GET** /cells/{name}/worksheets/{sheetName}/pictures/{pictureNumber} | GRead worksheet picture by number.
195+
*CellsPicturesApi* | [**cells_pictures_get_worksheet_picture**](docs/CellsPicturesApi.md#cells_pictures_get_worksheet_picture) | **GET** /cells/{name}/worksheets/{sheetName}/pictures/{pictureIndex} | GRead worksheet picture by number.
195196
*CellsPicturesApi* | [**cells_pictures_get_worksheet_pictures**](docs/CellsPicturesApi.md#cells_pictures_get_worksheet_pictures) | **GET** /cells/{name}/worksheets/{sheetName}/pictures | Read worksheet pictures.
196197
*CellsPicturesApi* | [**cells_pictures_post_worksheet_picture**](docs/CellsPicturesApi.md#cells_pictures_post_worksheet_picture) | **POST** /cells/{name}/worksheets/{sheetName}/pictures/{pictureIndex} | Update worksheet picture by index.
197198
*CellsPicturesApi* | [**cells_pictures_put_worksheet_add_picture**](docs/CellsPicturesApi.md#cells_pictures_put_worksheet_add_picture) | **PUT** /cells/{name}/worksheets/{sheetName}/pictures | Add a new worksheet picture.
@@ -430,6 +431,7 @@ Class | Method | HTTP request | Description
430431
- [HorizontalPageBreakResponse](docs/HorizontalPageBreakResponse.md)
431432
- [HorizontalPageBreaks](docs/HorizontalPageBreaks.md)
432433
- [HorizontalPageBreaksResponse](docs/HorizontalPageBreaksResponse.md)
434+
- [HtmlSaveOptions](docs/HtmlSaveOptions.md)
433435
- [Hyperlink](docs/Hyperlink.md)
434436
- [HyperlinkResponse](docs/HyperlinkResponse.md)
435437
- [Hyperlinks](docs/Hyperlinks.md)
@@ -449,6 +451,7 @@ Class | Method | HTTP request | Description
449451
- [ListObjectResponse](docs/ListObjectResponse.md)
450452
- [ListObjects](docs/ListObjects.md)
451453
- [ListObjectsResponse](docs/ListObjectsResponse.md)
454+
- [MHtmlSaveOptions](docs/MHtmlSaveOptions.md)
452455
- [MergedCell](docs/MergedCell.md)
453456
- [MergedCellResponse](docs/MergedCellResponse.md)
454457
- [MergedCells](docs/MergedCells.md)

asposecellscloud/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __init__(self, host=None, header_name=None, header_value=None, cookie=None):
7373
self.host = host
7474
self.cookie = cookie
7575
# Set default User-Agent.
76-
self.user_agent = 'Swagger-Codegen/18.2/python'
76+
self.user_agent = 'Swagger-Codegen/19.2.1/python'
7777

7878
@property
7979
def user_agent(self):

asposecellscloud/apis/cells_api.py

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,132 @@ def cells_delete_worksheet_rows_with_http_info(self, name, sheet_name, startrow,
440440
_request_timeout=params.get('_request_timeout'),
441441
collection_formats=collection_formats)
442442

443+
def cells_get_cell_html_string(self, name, sheet_name, cell_name, **kwargs):
444+
"""
445+
Read cell data by cell's name.
446+
This method makes a synchronous HTTP request by default. To make an
447+
asynchronous HTTP request, please define a `callback` function
448+
to be invoked when receiving the response.
449+
>>> def callback_function(response):
450+
>>> pprint(response)
451+
>>>
452+
>>> thread = api.cells_get_cell_html_string(name, sheet_name, cell_name, callback=callback_function)
453+
454+
:param callback function: The callback function
455+
for asynchronous request. (optional)
456+
:param str name: Document name. (required)
457+
:param str sheet_name: Worksheet name. (required)
458+
:param str cell_name: The cell's name. (required)
459+
:param str folder: Document's folder.
460+
:param str storage: storage name.
461+
:return: object
462+
If the method is called asynchronously,
463+
returns the request thread.
464+
"""
465+
kwargs['_return_http_data_only'] = True
466+
if kwargs.get('callback'):
467+
return self.cells_get_cell_html_string_with_http_info(name, sheet_name, cell_name, **kwargs)
468+
else:
469+
(data) = self.cells_get_cell_html_string_with_http_info(name, sheet_name, cell_name, **kwargs)
470+
return data
471+
472+
def cells_get_cell_html_string_with_http_info(self, name, sheet_name, cell_name, **kwargs):
473+
"""
474+
Read cell data by cell's name.
475+
This method makes a synchronous HTTP request by default. To make an
476+
asynchronous HTTP request, please define a `callback` function
477+
to be invoked when receiving the response.
478+
>>> def callback_function(response):
479+
>>> pprint(response)
480+
>>>
481+
>>> thread = api.cells_get_cell_html_string_with_http_info(name, sheet_name, cell_name, callback=callback_function)
482+
483+
:param callback function: The callback function
484+
for asynchronous request. (optional)
485+
:param str name: Document name. (required)
486+
:param str sheet_name: Worksheet name. (required)
487+
:param str cell_name: The cell's name. (required)
488+
:param str folder: Document's folder.
489+
:param str storage: storage name.
490+
:return: object
491+
If the method is called asynchronously,
492+
returns the request thread.
493+
"""
494+
495+
all_params = ['name', 'sheet_name', 'cell_name', 'folder', 'storage']
496+
all_params.append('callback')
497+
all_params.append('_return_http_data_only')
498+
all_params.append('_preload_content')
499+
all_params.append('_request_timeout')
500+
501+
params = locals()
502+
for key, val in iteritems(params['kwargs']):
503+
if key not in all_params:
504+
raise TypeError(
505+
"Got an unexpected keyword argument '%s'"
506+
" to method cells_get_cell_html_string" % key
507+
)
508+
params[key] = val
509+
del params['kwargs']
510+
# verify the required parameter 'name' is set
511+
if ('name' not in params) or (params['name'] is None):
512+
raise ValueError("Missing the required parameter `name` when calling `cells_get_cell_html_string`")
513+
# verify the required parameter 'sheet_name' is set
514+
if ('sheet_name' not in params) or (params['sheet_name'] is None):
515+
raise ValueError("Missing the required parameter `sheet_name` when calling `cells_get_cell_html_string`")
516+
# verify the required parameter 'cell_name' is set
517+
if ('cell_name' not in params) or (params['cell_name'] is None):
518+
raise ValueError("Missing the required parameter `cell_name` when calling `cells_get_cell_html_string`")
519+
520+
521+
collection_formats = {}
522+
523+
path_params = {}
524+
if 'name' in params:
525+
path_params['name'] = params['name']
526+
if 'sheet_name' in params:
527+
path_params['sheetName'] = params['sheet_name']
528+
if 'cell_name' in params:
529+
path_params['cellName'] = params['cell_name']
530+
531+
query_params = []
532+
if 'folder' in params:
533+
query_params.append(('folder', params['folder']))
534+
if 'storage' in params:
535+
query_params.append(('storage', params['storage']))
536+
537+
header_params = {}
538+
539+
form_params = []
540+
local_var_files = {}
541+
542+
body_params = None
543+
# HTTP header `Accept`
544+
header_params['Accept'] = self.api_client.\
545+
select_header_accept(['application/json'])
546+
547+
# HTTP header `Content-Type`
548+
header_params['Content-Type'] = self.api_client.\
549+
select_header_content_type(['application/json'])
550+
551+
# Authentication setting
552+
auth_settings = []
553+
554+
return self.api_client.call_api('/cells/{name}/worksheets/{sheetName}/cells/{cellName}/htmlstring', 'GET',
555+
path_params,
556+
query_params,
557+
header_params,
558+
body=body_params,
559+
post_params=form_params,
560+
files=local_var_files,
561+
response_type='object',
562+
auth_settings=auth_settings,
563+
callback=params.get('callback'),
564+
_return_http_data_only=params.get('_return_http_data_only'),
565+
_preload_content=params.get('_preload_content', True),
566+
_request_timeout=params.get('_request_timeout'),
567+
collection_formats=collection_formats)
568+
443569
def cells_get_worksheet_cell(self, name, sheet_name, cell_or_method_name, **kwargs):
444570
"""
445571
Read cell data by cell's name.

asposecellscloud/apis/cells_workbook_api.py

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2762,7 +2762,7 @@ def cells_workbook_post_workbooks_text_search_with_http_info(self, name, text, *
27622762
_request_timeout=params.get('_request_timeout'),
27632763
collection_formats=collection_formats)
27642764

2765-
def cells_workbook_put_convert_workbook(self, **kwargs):
2765+
def cells_workbook_put_convert_workbook(self, workbook, **kwargs):
27662766
"""
27672767
Convert workbook from request content to some format.
27682768
This method makes a synchronous HTTP request by default. To make an
@@ -2771,10 +2771,11 @@ def cells_workbook_put_convert_workbook(self, **kwargs):
27712771
>>> def callback_function(response):
27722772
>>> pprint(response)
27732773
>>>
2774-
>>> thread = api.cells_workbook_put_convert_workbook(callback=callback_function)
2774+
>>> thread = api.cells_workbook_put_convert_workbook(workbook, callback=callback_function)
27752775
27762776
:param callback function: The callback function
27772777
for asynchronous request. (optional)
2778+
:param str workbook: (required)
27782779
:param str format: The format to convert.
27792780
:param str password: The workbook password.
27802781
:param str out_path: Path to save result
@@ -2784,12 +2785,12 @@ def cells_workbook_put_convert_workbook(self, **kwargs):
27842785
"""
27852786
kwargs['_return_http_data_only'] = True
27862787
if kwargs.get('callback'):
2787-
return self.cells_workbook_put_convert_workbook_with_http_info(**kwargs)
2788+
return self.cells_workbook_put_convert_workbook_with_http_info(workbook, **kwargs)
27882789
else:
2789-
(data) = self.cells_workbook_put_convert_workbook_with_http_info(**kwargs)
2790+
(data) = self.cells_workbook_put_convert_workbook_with_http_info(workbook, **kwargs)
27902791
return data
27912792

2792-
def cells_workbook_put_convert_workbook_with_http_info(self, **kwargs):
2793+
def cells_workbook_put_convert_workbook_with_http_info(self, workbook, **kwargs):
27932794
"""
27942795
Convert workbook from request content to some format.
27952796
This method makes a synchronous HTTP request by default. To make an
@@ -2798,10 +2799,11 @@ def cells_workbook_put_convert_workbook_with_http_info(self, **kwargs):
27982799
>>> def callback_function(response):
27992800
>>> pprint(response)
28002801
>>>
2801-
>>> thread = api.cells_workbook_put_convert_workbook_with_http_info(callback=callback_function)
2802+
>>> thread = api.cells_workbook_put_convert_workbook_with_http_info(workbook, callback=callback_function)
28022803
28032804
:param callback function: The callback function
28042805
for asynchronous request. (optional)
2806+
:param str workbook: (required)
28052807
:param str format: The format to convert.
28062808
:param str password: The workbook password.
28072809
:param str out_path: Path to save result
@@ -2810,7 +2812,7 @@ def cells_workbook_put_convert_workbook_with_http_info(self, **kwargs):
28102812
returns the request thread.
28112813
"""
28122814

2813-
all_params = ['format', 'password', 'out_path']
2815+
all_params = ['workbook', 'format', 'password', 'out_path']
28142816
all_params.append('callback')
28152817
all_params.append('_return_http_data_only')
28162818
all_params.append('_preload_content')
@@ -2825,6 +2827,9 @@ def cells_workbook_put_convert_workbook_with_http_info(self, **kwargs):
28252827
)
28262828
params[key] = val
28272829
del params['kwargs']
2830+
# verify the required parameter 'workbook' is set
2831+
if ('workbook' not in params) or (params['workbook'] is None):
2832+
raise ValueError("Missing the required parameter `workbook` when calling `cells_workbook_put_convert_workbook`")
28282833

28292834

28302835
collection_formats = {}
@@ -2845,6 +2850,8 @@ def cells_workbook_put_convert_workbook_with_http_info(self, **kwargs):
28452850
local_var_files = {}
28462851

28472852
body_params = None
2853+
if 'workbook' in params:
2854+
body_params = params['workbook']
28482855
# HTTP header `Accept`
28492856
header_params['Accept'] = self.api_client.\
28502857
select_header_accept(['application/json'])

asposecellscloud/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,5 +245,5 @@ def to_debug_report(self):
245245
"OS: {env}\n"\
246246
"Python Version: {pyversion}\n"\
247247
"Version of the API: 1.0\n"\
248-
"SDK Package Version: 18.2".\
248+
"SDK Package Version: 19.2.1".\
249249
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
@@ -138,6 +138,7 @@
138138
from .horizontal_page_break_response import HorizontalPageBreakResponse
139139
from .horizontal_page_breaks import HorizontalPageBreaks
140140
from .horizontal_page_breaks_response import HorizontalPageBreaksResponse
141+
from .html_save_options import HtmlSaveOptions
141142
from .hyperlink import Hyperlink
142143
from .hyperlink_response import HyperlinkResponse
143144
from .hyperlinks import Hyperlinks
@@ -157,6 +158,7 @@
157158
from .list_object_response import ListObjectResponse
158159
from .list_objects import ListObjects
159160
from .list_objects_response import ListObjectsResponse
161+
from .m_html_save_options import MHtmlSaveOptions
160162
from .merged_cell import MergedCell
161163
from .merged_cell_response import MergedCellResponse
162164
from .merged_cells import MergedCells

0 commit comments

Comments
 (0)