@@ -40,6 +40,141 @@ def __init__(self, api_client=None):
4040 config .api_client = ApiClient ()
4141 self .api_client = config .api_client
4242
43+ def cells_ranges_get_worksheet_cells_range_value (self , name , sheet_name , ** kwargs ):
44+ """
45+ Get cells list in a range by range name or row column indexes
46+ This method makes a synchronous HTTP request by default. To make an
47+ asynchronous HTTP request, please define a `callback` function
48+ to be invoked when receiving the response.
49+ >>> def callback_function(response):
50+ >>> pprint(response)
51+ >>>
52+ >>> thread = api.cells_ranges_get_worksheet_cells_range_value(name, sheet_name, callback=callback_function)
53+
54+ :param callback function: The callback function
55+ for asynchronous request. (optional)
56+ :param str name: workbook name (required)
57+ :param str sheet_name: worksheet name (required)
58+ :param str namerange: range name, for example: 'A1:B2' or 'range_name1'
59+ :param int first_row: the first row of the range
60+ :param int first_column: the first column of the range
61+ :param int row_count: the count of rows in the range
62+ :param int column_count: the count of columns in the range
63+ :param str folder: Workbook folder.
64+ :return: RangeValueResponse
65+ If the method is called asynchronously,
66+ returns the request thread.
67+ """
68+ kwargs ['_return_http_data_only' ] = True
69+ if kwargs .get ('callback' ):
70+ return self .cells_ranges_get_worksheet_cells_range_value_with_http_info (name , sheet_name , ** kwargs )
71+ else :
72+ (data ) = self .cells_ranges_get_worksheet_cells_range_value_with_http_info (name , sheet_name , ** kwargs )
73+ return data
74+
75+ def cells_ranges_get_worksheet_cells_range_value_with_http_info (self , name , sheet_name , ** kwargs ):
76+ """
77+ Get cells list in a range by range name or row column indexes
78+ This method makes a synchronous HTTP request by default. To make an
79+ asynchronous HTTP request, please define a `callback` function
80+ to be invoked when receiving the response.
81+ >>> def callback_function(response):
82+ >>> pprint(response)
83+ >>>
84+ >>> thread = api.cells_ranges_get_worksheet_cells_range_value_with_http_info(name, sheet_name, callback=callback_function)
85+
86+ :param callback function: The callback function
87+ for asynchronous request. (optional)
88+ :param str name: workbook name (required)
89+ :param str sheet_name: worksheet name (required)
90+ :param str namerange: range name, for example: 'A1:B2' or 'range_name1'
91+ :param int first_row: the first row of the range
92+ :param int first_column: the first column of the range
93+ :param int row_count: the count of rows in the range
94+ :param int column_count: the count of columns in the range
95+ :param str folder: Workbook folder.
96+ :return: RangeValueResponse
97+ If the method is called asynchronously,
98+ returns the request thread.
99+ """
100+
101+ all_params = ['name' , 'sheet_name' , 'namerange' , 'first_row' , 'first_column' , 'row_count' , 'column_count' , 'folder' ]
102+ all_params .append ('callback' )
103+ all_params .append ('_return_http_data_only' )
104+ all_params .append ('_preload_content' )
105+ all_params .append ('_request_timeout' )
106+
107+ params = locals ()
108+ for key , val in iteritems (params ['kwargs' ]):
109+ if key not in all_params :
110+ raise TypeError (
111+ "Got an unexpected keyword argument '%s'"
112+ " to method cells_ranges_get_worksheet_cells_range_value" % key
113+ )
114+ params [key ] = val
115+ del params ['kwargs' ]
116+ # verify the required parameter 'name' is set
117+ if ('name' not in params ) or (params ['name' ] is None ):
118+ raise ValueError ("Missing the required parameter `name` when calling `cells_ranges_get_worksheet_cells_range_value`" )
119+ # verify the required parameter 'sheet_name' is set
120+ if ('sheet_name' not in params ) or (params ['sheet_name' ] is None ):
121+ raise ValueError ("Missing the required parameter `sheet_name` when calling `cells_ranges_get_worksheet_cells_range_value`" )
122+
123+
124+ collection_formats = {}
125+
126+ path_params = {}
127+ if 'name' in params :
128+ path_params ['name' ] = params ['name' ]
129+ if 'sheet_name' in params :
130+ path_params ['sheetName' ] = params ['sheet_name' ]
131+
132+ query_params = []
133+ if 'namerange' in params :
134+ query_params .append (('namerange' , params ['namerange' ]))
135+ if 'first_row' in params :
136+ query_params .append (('firstRow' , params ['first_row' ]))
137+ if 'first_column' in params :
138+ query_params .append (('firstColumn' , params ['first_column' ]))
139+ if 'row_count' in params :
140+ query_params .append (('rowCount' , params ['row_count' ]))
141+ if 'column_count' in params :
142+ query_params .append (('columnCount' , params ['column_count' ]))
143+ if 'folder' in params :
144+ query_params .append (('folder' , params ['folder' ]))
145+
146+ header_params = {}
147+
148+ form_params = []
149+ local_var_files = {}
150+
151+ body_params = None
152+ # HTTP header `Accept`
153+ header_params ['Accept' ] = self .api_client .\
154+ select_header_accept (['application/json' ])
155+
156+ # HTTP header `Content-Type`
157+ header_params ['Content-Type' ] = self .api_client .\
158+ select_header_content_type (['application/json' ])
159+
160+ # Authentication setting
161+ auth_settings = []
162+
163+ return self .api_client .call_api ('/cells/{name}/worksheets/{sheetName}/ranges/value' , 'GET' ,
164+ path_params ,
165+ query_params ,
166+ header_params ,
167+ body = body_params ,
168+ post_params = form_params ,
169+ files = local_var_files ,
170+ response_type = 'RangeValueResponse' ,
171+ auth_settings = auth_settings ,
172+ callback = params .get ('callback' ),
173+ _return_http_data_only = params .get ('_return_http_data_only' ),
174+ _preload_content = params .get ('_preload_content' , True ),
175+ _request_timeout = params .get ('_request_timeout' ),
176+ collection_formats = collection_formats )
177+
43178 def cells_ranges_post_worksheet_cells_range_column_width (self , name , sheet_name , value , ** kwargs ):
44179 """
45180 Set column width of range
0 commit comments