Skip to content

Commit a32a4e1

Browse files
committed
20211226 update : add api and test case.
1 parent f6e1a0b commit a32a4e1

16 files changed

+1171
-28
lines changed

asposecellscloud/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
from .models.split_result import SplitResult
111111
from .models.storage_exist import StorageExist
112112
from .models.storage_file import StorageFile
113+
from .models.table_total_request import TableTotalRequest
113114
from .models.task_data import TaskData
114115
from .models.task_description import TaskDescription
115116
from .models.task_parameter import TaskParameter

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

8888
@property
8989
def user_agent(self):

asposecellscloud/apis/cells_api.py

Lines changed: 552 additions & 10 deletions
Large diffs are not rendered by default.

asposecellscloud/apis/lite_cells_api.py

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,3 +1871,127 @@ def post_replace_with_http_info(self, file, text, newtext, **kwargs):
18711871
_preload_content=params.get('_preload_content', True),
18721872
_request_timeout=params.get('_request_timeout'),
18731873
collection_formats=collection_formats)
1874+
1875+
def post_reverse(self, file, rotate_type, format, **kwargs):
1876+
"""
1877+
This method makes a synchronous HTTP request by default. To make an
1878+
asynchronous HTTP request, please define a `callback` function
1879+
to be invoked when receiving the response.
1880+
>>> def callback_function(response):
1881+
>>> pprint(response)
1882+
>>>
1883+
>>> thread = api.post_reverse(file, text, color, callback=callback_function)
1884+
1885+
:param callback function: The callback function
1886+
for asynchronous request. (optional)
1887+
:param file file: File to upload (required)
1888+
:param str rotate_type: (required)
1889+
:param str format: (required)
1890+
:return: FilesResult
1891+
If the method is called asynchronously,
1892+
returns the request thread.
1893+
"""
1894+
kwargs['_return_http_data_only'] = True
1895+
self.check_access_token()
1896+
if kwargs.get('callback'):
1897+
return self.post_reverse_with_http_info(file, rotate_type, format, **kwargs)
1898+
else:
1899+
(data) = self.post_reverse_with_http_info(file, rotate_type, format, **kwargs)
1900+
return data
1901+
1902+
def post_reverse_with_http_info(self, file, rotate_type, format, **kwargs):
1903+
"""
1904+
This method makes a synchronous HTTP request by default. To make an
1905+
asynchronous HTTP request, please define a `callback` function
1906+
to be invoked when receiving the response.
1907+
>>> def callback_function(response):
1908+
>>> pprint(response)
1909+
>>>
1910+
>>> thread = api.post_reverse_with_http_info(file, rotateType, format, callback=callback_function)
1911+
1912+
:param callback function: The callback function
1913+
for asynchronous request. (optional)
1914+
:param file file: File to upload (required)
1915+
:param str rotateType: (required)
1916+
:param str format: (required)
1917+
:return: FilesResult
1918+
If the method is called asynchronously,
1919+
returns the request thread.
1920+
"""
1921+
1922+
all_params = ['file', 'rotate_type', 'format']
1923+
all_params.append('callback')
1924+
all_params.append('_return_http_data_only')
1925+
all_params.append('_preload_content')
1926+
all_params.append('_request_timeout')
1927+
1928+
params = locals()
1929+
for key, val in iteritems(params['kwargs']):
1930+
if key not in all_params:
1931+
raise TypeError(
1932+
"Got an unexpected keyword argument '%s'"
1933+
" to method post_replace" % key
1934+
)
1935+
params[key] = val
1936+
del params['kwargs']
1937+
# verify the required parameter 'file' is set
1938+
if ('file' not in params) or (params['file'] is None):
1939+
raise ValueError("Missing the required parameter `file` when calling `post_reverse`")
1940+
# verify the required parameter 'rotateType' is set
1941+
if ('rotate_type' not in params) or (params['rotate_type'] is None):
1942+
raise ValueError("Missing the required parameter `text` when calling `post_reverse`")
1943+
# verify the required parameter 'format' is set
1944+
if ('format' not in params) or (params['format'] is None):
1945+
raise ValueError("Missing the required parameter `newtext` when calling `post_reverse`")
1946+
1947+
1948+
collection_formats = {}
1949+
1950+
path_params = {}
1951+
1952+
query_params = []
1953+
if 'format' in params:
1954+
query_params.append(('format', params['format']))
1955+
if 'rotate_type' in params:
1956+
query_params.append(('rotateType', params['rotate_type']))
1957+
1958+
1959+
header_params = {}
1960+
1961+
form_params = []
1962+
local_var_files = {}
1963+
if 'file' in params:
1964+
1965+
if isinstance(params['file'],dict):
1966+
for filename , filecontext in params['file'].items():
1967+
local_var_files[filename] = filecontext
1968+
else:
1969+
local_var_files['File'] = params['file']
1970+
1971+
1972+
body_params = None
1973+
# HTTP header `Accept`
1974+
header_params['Accept'] = self.api_client.\
1975+
select_header_accept(['application/json'])
1976+
1977+
# HTTP header `Content-Type`
1978+
header_params['Content-Type'] = self.api_client.\
1979+
select_header_content_type(['multipart/form-data'])
1980+
1981+
# Authentication setting
1982+
auth_settings = []
1983+
1984+
return self.api_client.call_api('/cells/reverse', 'POST',
1985+
path_params,
1986+
query_params,
1987+
header_params,
1988+
body=body_params,
1989+
post_params=form_params,
1990+
files=local_var_files,
1991+
response_type='FilesResult',
1992+
auth_settings=auth_settings,
1993+
callback=params.get('callback'),
1994+
_return_http_data_only=params.get('_return_http_data_only'),
1995+
_preload_content=params.get('_preload_content', True),
1996+
_request_timeout=params.get('_request_timeout'),
1997+
collection_formats=collection_formats)

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: 21.9\n"\
258-
"SDK Package Version: 21.11".\
257+
"Version of the API: 21.12\n"\
258+
"SDK Package Version: 21.12".\
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
@@ -110,6 +110,7 @@
110110
from .split_result import SplitResult
111111
from .storage_exist import StorageExist
112112
from .storage_file import StorageFile
113+
from .table_total_request import TableTotalRequest
113114
from .task_data import TaskData
114115
from .task_description import TaskDescription
115116
from .task_parameter import TaskParameter

asposecellscloud/models/cell_value.py

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,17 @@ class CellValue(object):
4545
'column_index': 'int',
4646
'style': 'Style',
4747
'type': 'str',
48-
'value': 'str'
48+
'value': 'str',
49+
'formula': 'str'
4950
}
5051

5152
attribute_map = {
5253
'row_index': 'rowIndex',
5354
'column_index': 'columnIndex',
5455
'style': 'style',
5556
'type': 'type',
56-
'value': 'value'
57+
'value': 'value',
58+
'formula': 'formula'
5759
}
5860

5961
@staticmethod
@@ -69,7 +71,7 @@ def get_from_container(self, attr):
6971
return self.container[attr]
7072
return None
7173

72-
def __init__(self, row_index=None, column_index=None, style=None, type=None, value=None, **kw):
74+
def __init__(self, row_index=None, column_index=None, style=None, type=None, value=None, formula=None, **kw):
7375
"""
7476
Associative dict for storing property values
7577
"""
@@ -84,6 +86,7 @@ def __init__(self, row_index=None, column_index=None, style=None, type=None, val
8486
self.container['style'] = None
8587
self.container['type'] = None
8688
self.container['value'] = None
89+
self.container['formula'] = None
8790

8891
if row_index is not None:
8992
self.row_index = row_index
@@ -95,6 +98,8 @@ def __init__(self, row_index=None, column_index=None, style=None, type=None, val
9598
self.type = type
9699
if value is not None:
97100
self.value = value
101+
if formula is not None:
102+
self.formula = formula
98103

99104
@property
100105
def row_index(self):
@@ -201,6 +206,27 @@ def value(self, value):
201206

202207
self.container['value'] = value
203208

209+
@property
210+
def formula(self):
211+
"""
212+
Gets the formula of this CellValue.
213+
214+
:return: The formula of this CellValue.
215+
:rtype: str
216+
"""
217+
return self.container['formula']
218+
219+
@formula.setter
220+
def formula(self, formula):
221+
"""
222+
Sets the formula of this CellValue.
223+
224+
:param formula: The formula of this CellValue.
225+
:type: str
226+
"""
227+
228+
self.container['formula'] = formula
229+
204230
def to_dict(self):
205231
"""
206232
Returns the model properties as a dict

asposecellscloud/models/list_column.py

Lines changed: 59 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,16 @@ class ListColumn(object):
4242
"""
4343
swagger_types = {
4444
'totals_calculation': 'str',
45-
'name': 'str'
45+
'name': 'str',
46+
'formula': 'str',
47+
'range': 'Range'
4648
}
4749

4850
attribute_map = {
4951
'totals_calculation': 'TotalsCalculation',
50-
'name': 'Name'
52+
'name': 'Name',
53+
'formula': 'Formula',
54+
'range': 'Range'
5155
}
5256

5357
@staticmethod
@@ -63,7 +67,7 @@ def get_from_container(self, attr):
6367
return self.container[attr]
6468
return None
6569

66-
def __init__(self, totals_calculation=None, name=None, **kw):
70+
def __init__(self, totals_calculation=None, name=None, formula=None, range=None, **kw):
6771
"""
6872
Associative dict for storing property values
6973
"""
@@ -75,11 +79,17 @@ def __init__(self, totals_calculation=None, name=None, **kw):
7579

7680
self.container['totals_calculation'] = None
7781
self.container['name'] = None
82+
self.container['formula'] = None
83+
self.container['range'] = None
7884

7985
if totals_calculation is not None:
8086
self.totals_calculation = totals_calculation
8187
if name is not None:
8288
self.name = name
89+
if formula is not None:
90+
self.formula = formula
91+
if range is not None:
92+
self.range = range
8393

8494
@property
8595
def totals_calculation(self):
@@ -127,6 +137,52 @@ def name(self, name):
127137

128138
self.container['name'] = name
129139

140+
@property
141+
def formula(self):
142+
"""
143+
Gets the formula of this ListColumn.
144+
Gets and sets the formula of the list column.
145+
146+
:return: The formula of this ListColumn.
147+
:rtype: str
148+
"""
149+
return self.container['formula']
150+
151+
@formula.setter
152+
def formula(self, formula):
153+
"""
154+
Sets the formula of this ListColumn.
155+
Gets and sets the formula of the list column.
156+
157+
:param formula: The formula of this ListColumn.
158+
:type: str
159+
"""
160+
161+
self.container['formula'] = formula
162+
163+
@property
164+
def range(self):
165+
"""
166+
Gets the range of this ListColumn.
167+
Gets and sets the formula of the list column.
168+
169+
:return: The range of this ListColumn.
170+
:rtype: Range
171+
"""
172+
return self.container['range']
173+
174+
@range.setter
175+
def range(self, range):
176+
"""
177+
Sets the range of this ListColumn.
178+
Gets and sets the formula of the list column.
179+
180+
:param range: The range of this ListColumn.
181+
:type: Range
182+
"""
183+
184+
self.container['range'] = range
185+
130186
def to_dict(self):
131187
"""
132188
Returns the model properties as a dict

0 commit comments

Comments
 (0)