aspose_cells_cloud 20.11 → 21.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (296) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +21 -0
  3. data/README.md +123 -0
  4. data/lib/aspose_cells_cloud.rb +301 -0
  5. data/lib/aspose_cells_cloud/api/cells_api.rb +20104 -0
  6. data/lib/aspose_cells_cloud/api/lite_cells_api.rb +893 -0
  7. data/lib/aspose_cells_cloud/api_client.rb +493 -0
  8. data/lib/aspose_cells_cloud/api_error.rb +48 -0
  9. data/lib/aspose_cells_cloud/configuration.rb +178 -0
  10. data/lib/aspose_cells_cloud/models/above_average.rb +234 -0
  11. data/lib/aspose_cells_cloud/models/access_token_response.rb +261 -0
  12. data/lib/aspose_cells_cloud/models/area.rb +243 -0
  13. data/lib/aspose_cells_cloud/models/auto_filter.rb +227 -0
  14. data/lib/aspose_cells_cloud/models/auto_filter_response.rb +221 -0
  15. data/lib/aspose_cells_cloud/models/auto_fitter_options.rb +231 -0
  16. data/lib/aspose_cells_cloud/models/auto_shape.rb +504 -0
  17. data/lib/aspose_cells_cloud/models/auto_shape_response.rb +221 -0
  18. data/lib/aspose_cells_cloud/models/auto_shapes.rb +209 -0
  19. data/lib/aspose_cells_cloud/models/auto_shapes_response.rb +221 -0
  20. data/lib/aspose_cells_cloud/models/border.rb +216 -0
  21. data/lib/aspose_cells_cloud/models/calculation_options.rb +225 -0
  22. data/lib/aspose_cells_cloud/models/cell.rb +401 -0
  23. data/lib/aspose_cells_cloud/models/cell_area.rb +245 -0
  24. data/lib/aspose_cells_cloud/models/cell_response.rb +221 -0
  25. data/lib/aspose_cells_cloud/models/cell_value.rb +234 -0
  26. data/lib/aspose_cells_cloud/models/cells.rb +270 -0
  27. data/lib/aspose_cells_cloud/models/cells_cloud_file_info.rb +230 -0
  28. data/lib/aspose_cells_cloud/models/cells_cloud_response.rb +212 -0
  29. data/lib/aspose_cells_cloud/models/cells_color.rb +234 -0
  30. data/lib/aspose_cells_cloud/models/cells_document_properties.rb +209 -0
  31. data/lib/aspose_cells_cloud/models/cells_document_properties_response.rb +221 -0
  32. data/lib/aspose_cells_cloud/models/cells_document_property.rb +258 -0
  33. data/lib/aspose_cells_cloud/models/cells_document_property_response.rb +221 -0
  34. data/lib/aspose_cells_cloud/models/cells_error.rb +229 -0
  35. data/lib/aspose_cells_cloud/models/cells_object_operate_task_parameter.rb +216 -0
  36. data/lib/aspose_cells_cloud/models/cells_response.rb +221 -0
  37. data/lib/aspose_cells_cloud/models/chart.rb +626 -0
  38. data/lib/aspose_cells_cloud/models/chart_area.rb +317 -0
  39. data/lib/aspose_cells_cloud/models/chart_area_response.rb +221 -0
  40. data/lib/aspose_cells_cloud/models/chart_frame.rb +317 -0
  41. data/lib/aspose_cells_cloud/models/chart_operate_parameter.rb +279 -0
  42. data/lib/aspose_cells_cloud/models/charts.rb +209 -0
  43. data/lib/aspose_cells_cloud/models/charts_response.rb +221 -0
  44. data/lib/aspose_cells_cloud/models/color.rb +245 -0
  45. data/lib/aspose_cells_cloud/models/color_filter.rb +234 -0
  46. data/lib/aspose_cells_cloud/models/color_filter_request.rb +216 -0
  47. data/lib/aspose_cells_cloud/models/color_scale.rb +249 -0
  48. data/lib/aspose_cells_cloud/models/column.rb +243 -0
  49. data/lib/aspose_cells_cloud/models/column_response.rb +221 -0
  50. data/lib/aspose_cells_cloud/models/columns.rb +237 -0
  51. data/lib/aspose_cells_cloud/models/columns_response.rb +221 -0
  52. data/lib/aspose_cells_cloud/models/comment.rb +297 -0
  53. data/lib/aspose_cells_cloud/models/comment_response.rb +221 -0
  54. data/lib/aspose_cells_cloud/models/comments.rb +209 -0
  55. data/lib/aspose_cells_cloud/models/comments_response.rb +221 -0
  56. data/lib/aspose_cells_cloud/models/conditional_formatting.rb +218 -0
  57. data/lib/aspose_cells_cloud/models/conditional_formatting_icon.rb +235 -0
  58. data/lib/aspose_cells_cloud/models/conditional_formatting_response.rb +221 -0
  59. data/lib/aspose_cells_cloud/models/conditional_formatting_value.rb +219 -0
  60. data/lib/aspose_cells_cloud/models/conditional_formattings.rb +223 -0
  61. data/lib/aspose_cells_cloud/models/conditional_formattings_response.rb +221 -0
  62. data/lib/aspose_cells_cloud/models/convert_task_parameter.rb +216 -0
  63. data/lib/aspose_cells_cloud/models/convert_worksheet_task_parameter.rb +261 -0
  64. data/lib/aspose_cells_cloud/models/copy_options.rb +248 -0
  65. data/lib/aspose_cells_cloud/models/create_pivot_table_request.rb +263 -0
  66. data/lib/aspose_cells_cloud/models/custom_filter.rb +207 -0
  67. data/lib/aspose_cells_cloud/models/custom_parser_config.rb +216 -0
  68. data/lib/aspose_cells_cloud/models/data_bar.rb +309 -0
  69. data/lib/aspose_cells_cloud/models/data_bar_border.rb +209 -0
  70. data/lib/aspose_cells_cloud/models/data_sorter.rb +227 -0
  71. data/lib/aspose_cells_cloud/models/dif_save_options.rb +265 -0
  72. data/lib/aspose_cells_cloud/models/disc_usage.rb +219 -0
  73. data/lib/aspose_cells_cloud/models/dynamic_filter.rb +216 -0
  74. data/lib/aspose_cells_cloud/models/error_details.rb +214 -0
  75. data/lib/aspose_cells_cloud/models/file_info.rb +221 -0
  76. data/lib/aspose_cells_cloud/models/file_source.rb +207 -0
  77. data/lib/aspose_cells_cloud/models/file_version.rb +274 -0
  78. data/lib/aspose_cells_cloud/models/file_versions.rb +201 -0
  79. data/lib/aspose_cells_cloud/models/files_list.rb +201 -0
  80. data/lib/aspose_cells_cloud/models/files_result.rb +200 -0
  81. data/lib/aspose_cells_cloud/models/files_upload_result.rb +213 -0
  82. data/lib/aspose_cells_cloud/models/fill_format.rb +259 -0
  83. data/lib/aspose_cells_cloud/models/fill_format_response.rb +221 -0
  84. data/lib/aspose_cells_cloud/models/filter_column.rb +277 -0
  85. data/lib/aspose_cells_cloud/models/font.rb +279 -0
  86. data/lib/aspose_cells_cloud/models/font_setting.rb +244 -0
  87. data/lib/aspose_cells_cloud/models/format_condition.rb +327 -0
  88. data/lib/aspose_cells_cloud/models/gradient_fill.rb +227 -0
  89. data/lib/aspose_cells_cloud/models/gradient_fill_stop.rb +226 -0
  90. data/lib/aspose_cells_cloud/models/horizontal_page_break.rb +231 -0
  91. data/lib/aspose_cells_cloud/models/horizontal_page_break_response.rb +221 -0
  92. data/lib/aspose_cells_cloud/models/horizontal_page_breaks.rb +209 -0
  93. data/lib/aspose_cells_cloud/models/horizontal_page_breaks_response.rb +221 -0
  94. data/lib/aspose_cells_cloud/models/html_save_options.rb +373 -0
  95. data/lib/aspose_cells_cloud/models/hyperlink.rb +234 -0
  96. data/lib/aspose_cells_cloud/models/hyperlink_response.rb +221 -0
  97. data/lib/aspose_cells_cloud/models/hyperlinks.rb +223 -0
  98. data/lib/aspose_cells_cloud/models/hyperlinks_response.rb +221 -0
  99. data/lib/aspose_cells_cloud/models/icon_filter.rb +212 -0
  100. data/lib/aspose_cells_cloud/models/icon_set.rb +253 -0
  101. data/lib/aspose_cells_cloud/models/image_save_options.rb +373 -0
  102. data/lib/aspose_cells_cloud/models/import_batch_data_option.rb +236 -0
  103. data/lib/aspose_cells_cloud/models/import_csv_data_option.rb +281 -0
  104. data/lib/aspose_cells_cloud/models/import_data_task_parameter.rb +216 -0
  105. data/lib/aspose_cells_cloud/models/import_double_array_option.rb +263 -0
  106. data/lib/aspose_cells_cloud/models/import_int_array_option.rb +263 -0
  107. data/lib/aspose_cells_cloud/models/import_option.rb +225 -0
  108. data/lib/aspose_cells_cloud/models/import_string_array_option.rb +263 -0
  109. data/lib/aspose_cells_cloud/models/legend.rb +335 -0
  110. data/lib/aspose_cells_cloud/models/legend_response.rb +221 -0
  111. data/lib/aspose_cells_cloud/models/line.rb +360 -0
  112. data/lib/aspose_cells_cloud/models/line_format.rb +358 -0
  113. data/lib/aspose_cells_cloud/models/line_response.rb +221 -0
  114. data/lib/aspose_cells_cloud/models/link.rb +225 -0
  115. data/lib/aspose_cells_cloud/models/link_element.rb +198 -0
  116. data/lib/aspose_cells_cloud/models/list_column.rb +209 -0
  117. data/lib/aspose_cells_cloud/models/list_object.rb +350 -0
  118. data/lib/aspose_cells_cloud/models/list_object_operate_parameter.rb +207 -0
  119. data/lib/aspose_cells_cloud/models/list_object_response.rb +221 -0
  120. data/lib/aspose_cells_cloud/models/list_objects.rb +209 -0
  121. data/lib/aspose_cells_cloud/models/list_objects_response.rb +221 -0
  122. data/lib/aspose_cells_cloud/models/m_html_save_options.rb +373 -0
  123. data/lib/aspose_cells_cloud/models/markdown_save_options.rb +292 -0
  124. data/lib/aspose_cells_cloud/models/merged_cell.rb +254 -0
  125. data/lib/aspose_cells_cloud/models/merged_cell_response.rb +221 -0
  126. data/lib/aspose_cells_cloud/models/merged_cells.rb +223 -0
  127. data/lib/aspose_cells_cloud/models/merged_cells_response.rb +221 -0
  128. data/lib/aspose_cells_cloud/models/multiple_filter.rb +189 -0
  129. data/lib/aspose_cells_cloud/models/multiple_filters.rb +209 -0
  130. data/lib/aspose_cells_cloud/models/name.rb +276 -0
  131. data/lib/aspose_cells_cloud/models/name_response.rb +221 -0
  132. data/lib/aspose_cells_cloud/models/names.rb +223 -0
  133. data/lib/aspose_cells_cloud/models/names_response.rb +221 -0
  134. data/lib/aspose_cells_cloud/models/negative_bar_format.rb +229 -0
  135. data/lib/aspose_cells_cloud/models/object_exist.rb +219 -0
  136. data/lib/aspose_cells_cloud/models/ods_save_options.rb +265 -0
  137. data/lib/aspose_cells_cloud/models/ole_object.rb +567 -0
  138. data/lib/aspose_cells_cloud/models/ole_object_response.rb +221 -0
  139. data/lib/aspose_cells_cloud/models/ole_objects.rb +209 -0
  140. data/lib/aspose_cells_cloud/models/ole_objects_response.rb +221 -0
  141. data/lib/aspose_cells_cloud/models/ooxml_save_options.rb +274 -0
  142. data/lib/aspose_cells_cloud/models/operate_object.rb +207 -0
  143. data/lib/aspose_cells_cloud/models/operate_object_position.rb +243 -0
  144. data/lib/aspose_cells_cloud/models/operate_parameter.rb +198 -0
  145. data/lib/aspose_cells_cloud/models/page_break_operate_parameter.rb +252 -0
  146. data/lib/aspose_cells_cloud/models/page_section.rb +259 -0
  147. data/lib/aspose_cells_cloud/models/page_sections_response.rb +223 -0
  148. data/lib/aspose_cells_cloud/models/page_setup.rb +542 -0
  149. data/lib/aspose_cells_cloud/models/page_setup_operate_parameter.rb +207 -0
  150. data/lib/aspose_cells_cloud/models/page_setup_response.rb +221 -0
  151. data/lib/aspose_cells_cloud/models/password_request.rb +198 -0
  152. data/lib/aspose_cells_cloud/models/paste_options.rb +225 -0
  153. data/lib/aspose_cells_cloud/models/pattern_fill.rb +252 -0
  154. data/lib/aspose_cells_cloud/models/pdf_save_options.rb +355 -0
  155. data/lib/aspose_cells_cloud/models/pdf_security_options.rb +283 -0
  156. data/lib/aspose_cells_cloud/models/pic_format_option.rb +243 -0
  157. data/lib/aspose_cells_cloud/models/picture.rb +558 -0
  158. data/lib/aspose_cells_cloud/models/picture_response.rb +221 -0
  159. data/lib/aspose_cells_cloud/models/pictures.rb +209 -0
  160. data/lib/aspose_cells_cloud/models/pictures_response.rb +221 -0
  161. data/lib/aspose_cells_cloud/models/pivot_field.rb +546 -0
  162. data/lib/aspose_cells_cloud/models/pivot_field_response.rb +221 -0
  163. data/lib/aspose_cells_cloud/models/pivot_filter.rb +279 -0
  164. data/lib/aspose_cells_cloud/models/pivot_filter_response.rb +221 -0
  165. data/lib/aspose_cells_cloud/models/pivot_filters_response.rb +223 -0
  166. data/lib/aspose_cells_cloud/models/pivot_item.rb +228 -0
  167. data/lib/aspose_cells_cloud/models/pivot_table.rb +824 -0
  168. data/lib/aspose_cells_cloud/models/pivot_table_field_request.rb +200 -0
  169. data/lib/aspose_cells_cloud/models/pivot_table_operate_parameter.rb +276 -0
  170. data/lib/aspose_cells_cloud/models/pivot_table_response.rb +221 -0
  171. data/lib/aspose_cells_cloud/models/pivot_tables.rb +209 -0
  172. data/lib/aspose_cells_cloud/models/pivot_tables_response.rb +221 -0
  173. data/lib/aspose_cells_cloud/models/protect_sheet_parameter.rb +335 -0
  174. data/lib/aspose_cells_cloud/models/range.rb +309 -0
  175. data/lib/aspose_cells_cloud/models/range_copy_request.rb +225 -0
  176. data/lib/aspose_cells_cloud/models/range_set_outline_border_request.rb +225 -0
  177. data/lib/aspose_cells_cloud/models/range_set_style_request.rb +207 -0
  178. data/lib/aspose_cells_cloud/models/range_value_response.rb +223 -0
  179. data/lib/aspose_cells_cloud/models/ranges.rb +200 -0
  180. data/lib/aspose_cells_cloud/models/ranges_response.rb +221 -0
  181. data/lib/aspose_cells_cloud/models/result_destination.rb +216 -0
  182. data/lib/aspose_cells_cloud/models/row.rb +261 -0
  183. data/lib/aspose_cells_cloud/models/row_response.rb +221 -0
  184. data/lib/aspose_cells_cloud/models/rows.rb +237 -0
  185. data/lib/aspose_cells_cloud/models/rows_response.rb +221 -0
  186. data/lib/aspose_cells_cloud/models/save_options.rb +265 -0
  187. data/lib/aspose_cells_cloud/models/save_response.rb +221 -0
  188. data/lib/aspose_cells_cloud/models/save_result.rb +200 -0
  189. data/lib/aspose_cells_cloud/models/save_result_task_parameter.rb +207 -0
  190. data/lib/aspose_cells_cloud/models/shadow_effect.rb +252 -0
  191. data/lib/aspose_cells_cloud/models/shape.rb +504 -0
  192. data/lib/aspose_cells_cloud/models/shape_operate_parameter.rb +207 -0
  193. data/lib/aspose_cells_cloud/models/shape_response.rb +221 -0
  194. data/lib/aspose_cells_cloud/models/shapes.rb +209 -0
  195. data/lib/aspose_cells_cloud/models/shapes_response.rb +221 -0
  196. data/lib/aspose_cells_cloud/models/single_value.rb +207 -0
  197. data/lib/aspose_cells_cloud/models/single_value_response.rb +221 -0
  198. data/lib/aspose_cells_cloud/models/smart_marker_task_parameter.rb +216 -0
  199. data/lib/aspose_cells_cloud/models/solid_fill.rb +216 -0
  200. data/lib/aspose_cells_cloud/models/sort_key.rb +221 -0
  201. data/lib/aspose_cells_cloud/models/sparkline.rb +226 -0
  202. data/lib/aspose_cells_cloud/models/sparkline_group.rb +434 -0
  203. data/lib/aspose_cells_cloud/models/sparkline_group_response.rb +221 -0
  204. data/lib/aspose_cells_cloud/models/sparkline_groups.rb +200 -0
  205. data/lib/aspose_cells_cloud/models/sparkline_groups_response.rb +221 -0
  206. data/lib/aspose_cells_cloud/models/split_result.rb +200 -0
  207. data/lib/aspose_cells_cloud/models/split_result_document.rb +212 -0
  208. data/lib/aspose_cells_cloud/models/split_result_response.rb +222 -0
  209. data/lib/aspose_cells_cloud/models/split_workbook_task_parameter.rb +243 -0
  210. data/lib/aspose_cells_cloud/models/spreadsheet_ml2003_save_options.rb +292 -0
  211. data/lib/aspose_cells_cloud/models/storage_exist.rb +204 -0
  212. data/lib/aspose_cells_cloud/models/storage_file.rb +249 -0
  213. data/lib/aspose_cells_cloud/models/style.rb +407 -0
  214. data/lib/aspose_cells_cloud/models/style_response.rb +221 -0
  215. data/lib/aspose_cells_cloud/models/svg_save_options.rb +274 -0
  216. data/lib/aspose_cells_cloud/models/task_data.rb +200 -0
  217. data/lib/aspose_cells_cloud/models/task_description.rb +207 -0
  218. data/lib/aspose_cells_cloud/models/task_parameter.rb +189 -0
  219. data/lib/aspose_cells_cloud/models/text_item.rb +207 -0
  220. data/lib/aspose_cells_cloud/models/text_items.rb +209 -0
  221. data/lib/aspose_cells_cloud/models/text_items_response.rb +221 -0
  222. data/lib/aspose_cells_cloud/models/text_options.rb +333 -0
  223. data/lib/aspose_cells_cloud/models/text_water_marker_request.rb +239 -0
  224. data/lib/aspose_cells_cloud/models/texture_fill.rb +243 -0
  225. data/lib/aspose_cells_cloud/models/theme_color.rb +207 -0
  226. data/lib/aspose_cells_cloud/models/tile_pic_option.rb +263 -0
  227. data/lib/aspose_cells_cloud/models/title.rb +380 -0
  228. data/lib/aspose_cells_cloud/models/title_response.rb +221 -0
  229. data/lib/aspose_cells_cloud/models/top10.rb +219 -0
  230. data/lib/aspose_cells_cloud/models/top10_filter.rb +240 -0
  231. data/lib/aspose_cells_cloud/models/txt_save_options.rb +301 -0
  232. data/lib/aspose_cells_cloud/models/validation.rb +360 -0
  233. data/lib/aspose_cells_cloud/models/validation_response.rb +221 -0
  234. data/lib/aspose_cells_cloud/models/validations.rb +223 -0
  235. data/lib/aspose_cells_cloud/models/validations_response.rb +221 -0
  236. data/lib/aspose_cells_cloud/models/value_type.rb +189 -0
  237. data/lib/aspose_cells_cloud/models/vertical_page_break.rb +231 -0
  238. data/lib/aspose_cells_cloud/models/vertical_page_break_response.rb +221 -0
  239. data/lib/aspose_cells_cloud/models/vertical_page_breaks.rb +209 -0
  240. data/lib/aspose_cells_cloud/models/vertical_page_breaks_response.rb +221 -0
  241. data/lib/aspose_cells_cloud/models/workbook.rb +290 -0
  242. data/lib/aspose_cells_cloud/models/workbook_encryption_request.rb +224 -0
  243. data/lib/aspose_cells_cloud/models/workbook_operate_parameter.rb +198 -0
  244. data/lib/aspose_cells_cloud/models/workbook_protection_request.rb +209 -0
  245. data/lib/aspose_cells_cloud/models/workbook_replace_response.rb +235 -0
  246. data/lib/aspose_cells_cloud/models/workbook_response.rb +221 -0
  247. data/lib/aspose_cells_cloud/models/workbook_settings.rb +626 -0
  248. data/lib/aspose_cells_cloud/models/workbook_settings_operate_parameter.rb +207 -0
  249. data/lib/aspose_cells_cloud/models/workbook_settings_response.rb +221 -0
  250. data/lib/aspose_cells_cloud/models/worksheet.rb +510 -0
  251. data/lib/aspose_cells_cloud/models/worksheet_moving_request.rb +209 -0
  252. data/lib/aspose_cells_cloud/models/worksheet_operate_parameter.rb +234 -0
  253. data/lib/aspose_cells_cloud/models/worksheet_replace_response.rb +235 -0
  254. data/lib/aspose_cells_cloud/models/worksheet_response.rb +221 -0
  255. data/lib/aspose_cells_cloud/models/worksheets.rb +209 -0
  256. data/lib/aspose_cells_cloud/models/worksheets_response.rb +221 -0
  257. data/lib/aspose_cells_cloud/models/xls_save_options.rb +265 -0
  258. data/lib/aspose_cells_cloud/models/xlsb_save_options.rb +265 -0
  259. data/lib/aspose_cells_cloud/models/xps_save_options.rb +265 -0
  260. data/lib/aspose_cells_cloud/version.rb +25 -0
  261. data/spec/api/cells_api_spec.rb +1145 -0
  262. data/spec/api/cells_assembly_spec.rb +44 -0
  263. data/spec/api/cells_auto_filter_api_spec.rb +430 -0
  264. data/spec/api/cells_chart_area_api_spec.rb +92 -0
  265. data/spec/api/cells_charts_api_spec.rb +390 -0
  266. data/spec/api/cells_clear_objects_spec.rb +43 -0
  267. data/spec/api/cells_conditional_formattings_api_spec.rb +259 -0
  268. data/spec/api/cells_export_spec.rb +43 -0
  269. data/spec/api/cells_hypelinks_api_spec.rb +170 -0
  270. data/spec/api/cells_list_objects_api_spec.rb +245 -0
  271. data/spec/api/cells_merge_spec.rb +43 -0
  272. data/spec/api/cells_metadata_spec.rb +72 -0
  273. data/spec/api/cells_ole_objects_api_spec.rb +177 -0
  274. data/spec/api/cells_page_breaks_api_spec.rb +269 -0
  275. data/spec/api/cells_page_setup_api_spec.rb +198 -0
  276. data/spec/api/cells_pictures_api_spec.rb +174 -0
  277. data/spec/api/cells_pivot_tables_api_spec.rb +525 -0
  278. data/spec/api/cells_properties_api_spec.rb +129 -0
  279. data/spec/api/cells_protect_spec.rb +43 -0
  280. data/spec/api/cells_ranges_api_spec.rb +312 -0
  281. data/spec/api/cells_save_as_api_spec.rb +74 -0
  282. data/spec/api/cells_search_spec.rb +43 -0
  283. data/spec/api/cells_shapes_api_spec.rb +174 -0
  284. data/spec/api/cells_simple_spec.rb +44 -0
  285. data/spec/api/cells_sparkline_group_spec.rb +43 -0
  286. data/spec/api/cells_split_spec.rb +44 -0
  287. data/spec/api/cells_storage_api_spec.rb +69 -0
  288. data/spec/api/cells_storage_spec.rb +45 -0
  289. data/spec/api/cells_task_api_spec.rb +61 -0
  290. data/spec/api/cells_unlock_spec.rb +43 -0
  291. data/spec/api/cells_watermark_spec.rb +42 -0
  292. data/spec/api/cells_workbook_api_spec.rb +667 -0
  293. data/spec/api/cells_worksheet_validations_api_spec.rb +139 -0
  294. data/spec/api/cells_worksheets_api_spec.rb +843 -0
  295. data/spec/spec_helper.rb +136 -0
  296. metadata +297 -3
@@ -0,0 +1,265 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ Copyright (c) 2021 Aspose.Cells Cloud
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ SOFTWARE.
19
+ --------------------------------------------------------------------------------------------------------------------
20
+
21
+ =end
22
+
23
+ require 'date'
24
+
25
+ module AsposeCellsCloud
26
+
27
+ class XpsSaveOptions
28
+ attr_accessor :enable_http_compression
29
+
30
+ attr_accessor :save_format
31
+
32
+ # Make the workbook empty after saving the file.
33
+ attr_accessor :clear_data
34
+
35
+ # The cached file folder is used to store some large data.
36
+ attr_accessor :cached_file_folder
37
+
38
+ # Indicates whether validate merged areas before saving the file. The default value is false.
39
+ attr_accessor :validate_merged_areas
40
+
41
+ attr_accessor :refresh_chart_cache
42
+
43
+ # If true and the directory does not exist, the directory will be automatically created before saving the file.
44
+ attr_accessor :create_directory
45
+
46
+ attr_accessor :sort_names
47
+
48
+
49
+ # Attribute mapping from ruby-style variable name to JSON key.
50
+ def self.attribute_map
51
+ {
52
+ :'enable_http_compression' => :'EnableHTTPCompression',
53
+ :'save_format' => :'SaveFormat',
54
+ :'clear_data' => :'ClearData',
55
+ :'cached_file_folder' => :'CachedFileFolder',
56
+ :'validate_merged_areas' => :'ValidateMergedAreas',
57
+ :'refresh_chart_cache' => :'RefreshChartCache',
58
+ :'create_directory' => :'CreateDirectory',
59
+ :'sort_names' => :'SortNames'
60
+ }
61
+ end
62
+
63
+ # Attribute type mapping.
64
+ def self.swagger_types
65
+ {
66
+ :'enable_http_compression' => :'BOOLEAN',
67
+ :'save_format' => :'String',
68
+ :'clear_data' => :'BOOLEAN',
69
+ :'cached_file_folder' => :'String',
70
+ :'validate_merged_areas' => :'BOOLEAN',
71
+ :'refresh_chart_cache' => :'BOOLEAN',
72
+ :'create_directory' => :'BOOLEAN',
73
+ :'sort_names' => :'BOOLEAN'
74
+ }
75
+ end
76
+
77
+ # Initializes the object
78
+ # @param [Hash] attributes Model attributes in the form of hash
79
+ def initialize(attributes = {})
80
+ return unless attributes.is_a?(Hash)
81
+
82
+ # convert string to symbol for hash key
83
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
84
+
85
+ if attributes.has_key?(:'EnableHTTPCompression')
86
+ self.enable_http_compression = attributes[:'EnableHTTPCompression']
87
+ end
88
+
89
+ if attributes.has_key?(:'SaveFormat')
90
+ self.save_format = attributes[:'SaveFormat']
91
+ end
92
+
93
+ if attributes.has_key?(:'ClearData')
94
+ self.clear_data = attributes[:'ClearData']
95
+ end
96
+
97
+ if attributes.has_key?(:'CachedFileFolder')
98
+ self.cached_file_folder = attributes[:'CachedFileFolder']
99
+ end
100
+
101
+ if attributes.has_key?(:'ValidateMergedAreas')
102
+ self.validate_merged_areas = attributes[:'ValidateMergedAreas']
103
+ end
104
+
105
+ if attributes.has_key?(:'RefreshChartCache')
106
+ self.refresh_chart_cache = attributes[:'RefreshChartCache']
107
+ end
108
+
109
+ if attributes.has_key?(:'CreateDirectory')
110
+ self.create_directory = attributes[:'CreateDirectory']
111
+ end
112
+
113
+ if attributes.has_key?(:'SortNames')
114
+ self.sort_names = attributes[:'SortNames']
115
+ end
116
+
117
+ end
118
+
119
+ # Show invalid properties with the reasons. Usually used together with valid?
120
+ # @return Array for valid properies with the reasons
121
+ def list_invalid_properties
122
+ invalid_properties = Array.new
123
+ return invalid_properties
124
+ end
125
+
126
+ # Check to see if the all the properties in the model are valid
127
+ # @return true if the model is valid
128
+ def valid?
129
+ return true
130
+ end
131
+
132
+ # Checks equality by comparing each attribute.
133
+ # @param [Object] Object to be compared
134
+ def ==(o)
135
+ return true if self.equal?(o)
136
+ self.class == o.class &&
137
+ enable_http_compression == o.enable_http_compression &&
138
+ save_format == o.save_format &&
139
+ clear_data == o.clear_data &&
140
+ cached_file_folder == o.cached_file_folder &&
141
+ validate_merged_areas == o.validate_merged_areas &&
142
+ refresh_chart_cache == o.refresh_chart_cache &&
143
+ create_directory == o.create_directory &&
144
+ sort_names == o.sort_names
145
+ end
146
+
147
+ # @see the `==` method
148
+ # @param [Object] Object to be compared
149
+ def eql?(o)
150
+ self == o
151
+ end
152
+
153
+ # Calculates hash code according to all attributes.
154
+ # @return [Fixnum] Hash code
155
+ def hash
156
+ [enable_http_compression, save_format, clear_data, cached_file_folder, validate_merged_areas, refresh_chart_cache, create_directory, sort_names].hash
157
+ end
158
+
159
+ # Builds the object from hash
160
+ # @param [Hash] attributes Model attributes in the form of hash
161
+ # @return [Object] Returns the model itself
162
+ def build_from_hash(attributes)
163
+ return nil unless attributes.is_a?(Hash)
164
+ self.class.swagger_types.each_pair do |key, type|
165
+ if type =~ /\AArray<(.*)>/i
166
+ # check to ensure the input is an array given that the the attribute
167
+ # is documented as an array but the input is not
168
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
169
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
170
+ end
171
+ elsif !attributes[self.class.attribute_map[key]].nil?
172
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
173
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
174
+ end
175
+
176
+ self
177
+ end
178
+
179
+ # Deserializes the data based on type
180
+ # @param string type Data type
181
+ # @param string value Value to be deserialized
182
+ # @return [Object] Deserialized data
183
+ def _deserialize(type, value)
184
+ case type.to_sym
185
+ when :DateTime
186
+ DateTime.parse(value)
187
+ when :Date
188
+ Date.parse(value)
189
+ when :String
190
+ value.to_s
191
+ when :Integer
192
+ value.to_i
193
+ when :Float
194
+ value.to_f
195
+ when :BOOLEAN
196
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
197
+ true
198
+ else
199
+ false
200
+ end
201
+ when :Object
202
+ # generic object (usually a Hash), return directly
203
+ value
204
+ when /\AArray<(?<inner_type>.+)>\z/
205
+ inner_type = Regexp.last_match[:inner_type]
206
+ value.map { |v| _deserialize(inner_type, v) }
207
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
208
+ k_type = Regexp.last_match[:k_type]
209
+ v_type = Regexp.last_match[:v_type]
210
+ {}.tap do |hash|
211
+ value.each do |k, v|
212
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
213
+ end
214
+ end
215
+ else # model
216
+ temp_model = AsposeCellsCloud.const_get(type).new
217
+ temp_model.build_from_hash(value)
218
+ end
219
+ end
220
+
221
+ # Returns the string representation of the object
222
+ # @return [String] String presentation of the object
223
+ def to_s
224
+ to_hash.to_s
225
+ end
226
+
227
+ # to_body is an alias to to_hash (backward compatibility)
228
+ # @return [Hash] Returns the object in the form of hash
229
+ def to_body
230
+ to_hash
231
+ end
232
+
233
+ # Returns the object in the form of hash
234
+ # @return [Hash] Returns the object in the form of hash
235
+ def to_hash
236
+ hash = {}
237
+ self.class.attribute_map.each_pair do |attr, param|
238
+ value = self.send(attr)
239
+ next if value.nil?
240
+ hash[param] = _to_hash(value)
241
+ end
242
+ hash
243
+ end
244
+
245
+ # Outputs non-array value in the form of hash
246
+ # For object, use to_hash. Otherwise, just return the value
247
+ # @param [Object] value Any valid value
248
+ # @return [Hash] Returns the value in the form of hash
249
+ def _to_hash(value)
250
+ if value.is_a?(Array)
251
+ value.compact.map{ |v| _to_hash(v) }
252
+ elsif value.is_a?(Hash)
253
+ {}.tap do |hash|
254
+ value.each { |k, v| hash[k] = _to_hash(v) }
255
+ end
256
+ elsif value.respond_to? :to_hash
257
+ value.to_hash
258
+ else
259
+ value
260
+ end
261
+ end
262
+
263
+ end
264
+
265
+ end
@@ -0,0 +1,25 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ Copyright (c) 2021 Aspose.Cells Cloud
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ SOFTWARE.
19
+ --------------------------------------------------------------------------------------------------------------------
20
+
21
+ =end
22
+
23
+ module AsposeCellsCloud
24
+ VERSION = "21.6"
25
+ end
@@ -0,0 +1,1145 @@
1
+ =begin
2
+ #Web API Swagger specification
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for AsposeCellsCloud::CellsApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'CellsApi' do
20
+ before do
21
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
22
+ $VERBOSE = nil
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+
30
+ # unit tests for cells_delete_worksheet_columns
31
+ # Delete worksheet columns.
32
+ #
33
+ # @param name The workbook name.
34
+ # @param sheet_name The worksheet name.
35
+ # @param column_index The column index.
36
+ # @param columns The columns.
37
+ # @param update_reference The update reference.
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :folder The workbook folder.
40
+ # @option opts [String] :storage storage name.
41
+ # @return [ColumnsResponse]
42
+ describe 'cells_delete_worksheet_columns test' do
43
+ it "should work" do
44
+ name = $BOOK1
45
+ sheet_name = $SHEET1
46
+ column_index = 100
47
+ columns = 2
48
+ update_reference = true
49
+ folder = $TEMPFOLDER
50
+ storage = nil
51
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
52
+ expect(result.uploaded.size).to be > 0
53
+ result = @instance.cells_delete_worksheet_columns(name, sheet_name, column_index, columns, update_reference, { :folder=>folder})
54
+ expect(result.code).to eql(200)
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ # unit tests for cells_delete_worksheet_row
60
+ # Delete worksheet row.
61
+ #
62
+ # @param name The workbook name.
63
+ # @param sheet_name The worksheet bame.
64
+ # @param row_index The row index.
65
+ # @param [Hash] opts the optional parameters
66
+ # @option opts [String] :folder The document folder.
67
+ # @option opts [String] :storage storage name.
68
+ # @return [CellsCloudResponse]
69
+ describe 'cells_delete_worksheet_row test' do
70
+ it "should work" do
71
+ name = $BOOK1
72
+ sheet_name = $SHEET1
73
+ row_index = 100
74
+ folder = $TEMPFOLDER
75
+ storage = nil
76
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
77
+ expect(result.uploaded.size).to be > 0
78
+ result = @instance.cells_delete_worksheet_row(name, sheet_name, row_index, { :folder=>folder})
79
+ expect(result.code).to eql(200)
80
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
81
+ end
82
+ end
83
+
84
+ # unit tests for cells_delete_worksheet_rows
85
+ # Delete several worksheet rows.
86
+ #
87
+ # @param name The workbook name.
88
+ # @param sheet_name The worksheet bame.
89
+ # @param startrow The begin row index to be operated.
90
+ # @param [Hash] opts the optional parameters
91
+ # @option opts [Integer] :total_rows Number of rows to be operated.
92
+ # @option opts [BOOLEAN] :update_reference Indicates if update references in other worksheets.
93
+ # @option opts [String] :folder The document folder.
94
+ # @option opts [String] :storage storage name.
95
+ # @return [CellsCloudResponse]
96
+ describe 'cells_delete_worksheet_rows test' do
97
+ it "should work" do
98
+ name = $BOOK1
99
+ sheet_name = $SHEET1
100
+ startrow = 1
101
+ total_rows = 1
102
+ update_reference = true
103
+ folder = $TEMPFOLDER
104
+ storage = nil
105
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
106
+ expect(result.uploaded.size).to be > 0
107
+ result = @instance.cells_delete_worksheet_rows(name, sheet_name, startrow, { :total_rows=>total_rows, :update_reference=>update_reference,:folder=>folder})
108
+ expect(result.code).to eql(200)
109
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
110
+ end
111
+ end
112
+
113
+ # unit tests for cells_get_worksheet_cell
114
+ # Read cell data by cell&#39;s name.
115
+ #
116
+ # @param name Document name.
117
+ # @param sheet_name Worksheet name.
118
+ # @param cell_or_method_name The cell&#39;s or method name. (Method name like firstcell, endcell etc.)
119
+ # @param [Hash] opts the optional parameters
120
+ # @option opts [String] :folder Document&#39;s folder.
121
+ # @option opts [String] :storage storage name.
122
+ # @return [Object]
123
+ describe 'cells_get_worksheet_cell test' do
124
+ it "should work" do
125
+ name = $BOOK1
126
+ sheet_name = $SHEET1
127
+ cell_or_method_name = 'firstcell'
128
+ folder = $TEMPFOLDER
129
+ storage = nil
130
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
131
+ expect(result.uploaded.size).to be > 0
132
+ result = @instance.cells_get_worksheet_cell(name, sheet_name, cell_or_method_name, { :folder=>folder})
133
+ print(result)
134
+ #expect(result.code).to eql(200)
135
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
136
+ end
137
+ end
138
+
139
+ # unit tests for cells_get_worksheet_cell_style
140
+ # Read cell&#39;s style info.
141
+ #
142
+ # @param name Document name.
143
+ # @param sheet_name Worksheet name.
144
+ # @param cell_name Cell&#39;s name.
145
+ # @param [Hash] opts the optional parameters
146
+ # @option opts [String] :folder Document&#39;s folder.
147
+ # @option opts [String] :storage storage name.
148
+ # @return [StyleResponse]
149
+ describe 'cells_get_worksheet_cell_style test' do
150
+ it "should work" do
151
+ name = $BOOK1
152
+ sheet_name = $SHEET1
153
+ cell_name = 'C1'
154
+ folder = $TEMPFOLDER
155
+ storage = nil
156
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
157
+ expect(result.uploaded.size).to be > 0
158
+ result = @instance.cells_get_worksheet_cell_style(name, sheet_name, cell_name, { :folder=>folder})
159
+ expect(result.code).to eql(200)
160
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
161
+ end
162
+ end
163
+
164
+ # unit tests for cells_get_worksheet_cells
165
+ # Get cells info.
166
+ #
167
+ # @param name Document name.
168
+ # @param sheet_name Worksheet name.
169
+ # @param [Hash] opts the optional parameters
170
+ # @option opts [Integer] :offest Begginig offset.
171
+ # @option opts [Integer] :count Maximum amount of cells in the response.
172
+ # @option opts [String] :folder Document&#39;s folder name.
173
+ # @option opts [String] :storage storage name.
174
+ # @return [CellsResponse]
175
+ describe 'cells_get_worksheet_cells test' do
176
+ it "should work" do
177
+ name = $BOOK1
178
+ sheet_name = $SHEET1
179
+ offest = 1
180
+ count = 3
181
+ folder = $TEMPFOLDER
182
+ storage = nil
183
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
184
+ expect(result.uploaded.size).to be > 0
185
+ result = @instance.cells_get_worksheet_cells(name, sheet_name, {:offest=>offest, :count=>count, :folder=>folder})
186
+ expect(result.code).to eql(200)
187
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
188
+ end
189
+ end
190
+
191
+ # unit tests for cells_get_worksheet_column
192
+ # Read worksheet column data by column&#39;s index.
193
+ #
194
+ # @param name The workbook name.
195
+ # @param sheet_name The worksheet name.
196
+ # @param column_index The column index.
197
+ # @param [Hash] opts the optional parameters
198
+ # @option opts [String] :folder The workbook folder.
199
+ # @option opts [String] :storage storage name.
200
+ # @return [ColumnResponse]
201
+ describe 'cells_get_worksheet_column test' do
202
+ it "should work" do
203
+ name = $BOOK1
204
+ sheet_name = $SHEET1
205
+ column_index = 100
206
+ folder = $TEMPFOLDER
207
+ storage = nil
208
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
209
+ expect(result.uploaded.size).to be > 0
210
+ result = @instance.cells_get_worksheet_column(name, sheet_name, column_index, { :folder=>folder})
211
+ expect(result.code).to eql(200)
212
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
213
+ end
214
+ end
215
+
216
+ # unit tests for cells_get_worksheet_columns
217
+ # Read worksheet columns info.
218
+ #
219
+ # @param name The workbook name.
220
+ # @param sheet_name The worksheet name.
221
+ # @param [Hash] opts the optional parameters
222
+ # @option opts [String] :folder The workdook folder.
223
+ # @option opts [String] :storage storage name.
224
+ # @return [ColumnsResponse]
225
+ describe 'cells_get_worksheet_columns test' do
226
+ it "should work" do
227
+ name = $BOOK1
228
+ sheet_name = $SHEET1
229
+ folder = $TEMPFOLDER
230
+ storage = nil
231
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
232
+ expect(result.uploaded.size).to be > 0
233
+ result = @instance.cells_get_worksheet_columns(name, sheet_name, { :folder=>folder})
234
+ expect(result.code).to eql(200)
235
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
236
+ end
237
+ end
238
+
239
+ # unit tests for cells_get_worksheet_row
240
+ # Read worksheet row data by row&#39;s index.
241
+ #
242
+ # @param name The workbook name.
243
+ # @param sheet_name The worksheet name.
244
+ # @param row_index The row index.
245
+ # @param [Hash] opts the optional parameters
246
+ # @option opts [String] :folder The workbook folder.
247
+ # @option opts [String] :storage storage name.
248
+ # @return [RowResponse]
249
+ describe 'cells_get_worksheet_row test' do
250
+ it "should work" do
251
+ name = $BOOK1
252
+ sheet_name = $SHEET1
253
+ row_index = 100
254
+ folder = $TEMPFOLDER
255
+ storage = nil
256
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
257
+ expect(result.uploaded.size).to be > 0
258
+ result = @instance.cells_get_worksheet_row(name, sheet_name, row_index, { :folder=>folder})
259
+ expect(result.code).to eql(200)
260
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
261
+ end
262
+ end
263
+
264
+ # unit tests for cells_get_worksheet_rows
265
+ # Read worksheet rows info.
266
+ #
267
+ # @param name The workbook name.
268
+ # @param sheet_name The worksheet name.
269
+ # @param [Hash] opts the optional parameters
270
+ # @option opts [String] :folder The workdook folder.
271
+ # @option opts [String] :storage storage name.
272
+ # @return [RowsResponse]
273
+ describe 'cells_get_worksheet_rows test' do
274
+ it "should work" do
275
+ name = $BOOK1
276
+ sheet_name = $SHEET1
277
+ folder = $TEMPFOLDER
278
+ storage = nil
279
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
280
+ expect(result.uploaded.size).to be > 0
281
+ result = @instance.cells_get_worksheet_rows(name, sheet_name, { :folder=>folder})
282
+ expect(result.code).to eql(200)
283
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
284
+ end
285
+ end
286
+
287
+ # unit tests for cells_post_cell_calculate
288
+ # Cell calculate formula
289
+ #
290
+ # @param name
291
+ # @param sheet_name
292
+ # @param cell_name
293
+ # @param [Hash] opts the optional parameters
294
+ # @option opts [CalculationOptions] :options
295
+ # @option opts [String] :folder
296
+ # @option opts [String] :storage storage name.
297
+ # @return [CellsCloudResponse]
298
+ describe 'cells_post_cell_calculate test' do
299
+ it "should work" do
300
+ name = $BOOK1
301
+ sheet_name = $SHEET1
302
+ cell_name = $CellName
303
+ options = AsposeCellsCloud::CalculationOptions.new({Recursive:true,IgnoreError:true})
304
+ folder = $TEMPFOLDER
305
+ storage = nil
306
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
307
+ expect(result.uploaded.size).to be > 0
308
+ result = @instance.cells_post_cell_calculate(name, sheet_name, cell_name, { :options=>options,:folder=>folder})
309
+ expect(result.code).to eql(200)
310
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
311
+ end
312
+ end
313
+
314
+ # # unit tests for cells_post_cell_characters
315
+ # # Set cell characters
316
+ # #
317
+ # # @param name
318
+ # # @param sheet_name
319
+ # # @param cell_name
320
+ # # @param [Hash] opts the optional parameters
321
+ # # @option opts [Array<FontSetting>] :options
322
+ # # @option opts [String] :folder
323
+ # # @option opts [String] :storage storage name.
324
+ # # @return [CellsCloudResponse]
325
+ # describe 'cells_post_cell_characters test' do
326
+ # it "should work" do
327
+ # name = $BOOK1
328
+ # sheet_name = $SHEET1
329
+ # cell_name = $CellName
330
+ # options = nil
331
+ # folder = $TEMPFOLDER
332
+ # storage = nil
333
+ # result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
334
+ # expect(result.uploaded.size).to be > 0
335
+ # result = @instance.cells_post_cell_characters(name, sheet_name, cell_name, { :options=>options,:folder=>folder})
336
+ # expect(result.code).to eql(200)
337
+ # # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
338
+ # end
339
+ # end
340
+
341
+ # unit tests for cells_post_clear_contents
342
+ # Clear cells contents.
343
+ #
344
+ # @param name Workbook name.
345
+ # @param sheet_name Worksheet name.
346
+ # @param [Hash] opts the optional parameters
347
+ # @option opts [String] :range The range.
348
+ # @option opts [Integer] :start_row The start row.
349
+ # @option opts [Integer] :start_column The start column.
350
+ # @option opts [Integer] :end_row The end row.
351
+ # @option opts [Integer] :end_column The end column.
352
+ # @option opts [String] :folder The workbook folder.
353
+ # @option opts [String] :storage storage name.
354
+ # @return [CellsCloudResponse]
355
+ describe 'cells_post_clear_contents test' do
356
+ it "should work" do
357
+ name = $BOOK1
358
+ sheet_name = $SHEET1
359
+ range = $RANGE
360
+ start_row = 1
361
+ start_column = 1
362
+ end_row = 2
363
+ end_column = 2
364
+ folder = $TEMPFOLDER
365
+ storage = nil
366
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
367
+ expect(result.uploaded.size).to be > 0
368
+ result = @instance.cells_post_clear_contents(name, sheet_name, {:range=>range, :start_row=>start_row, :start_column=>start_column, :end_row=>end_row, :end_column=>end_column, :folder=>folder})
369
+ expect(result.code).to eql(200)
370
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
371
+ end
372
+ end
373
+
374
+ # unit tests for cells_post_clear_formats
375
+ # Clear cells contents.
376
+ #
377
+ # @param name Workbook name.
378
+ # @param sheet_name Worksheet name.
379
+ # @param [Hash] opts the optional parameters
380
+ # @option opts [String] :range The range.
381
+ # @option opts [Integer] :start_row The start row.
382
+ # @option opts [Integer] :start_column The start column.
383
+ # @option opts [Integer] :end_row The end row.
384
+ # @option opts [Integer] :end_column The end column.
385
+ # @option opts [String] :folder The workbook folder.
386
+ # @option opts [String] :storage storage name.
387
+ # @return [CellsCloudResponse]
388
+ describe 'cells_post_clear_formats test' do
389
+ it "should work" do
390
+ name = $BOOK1
391
+ sheet_name = $SHEET1
392
+ range = $RANGE
393
+ start_row = 1
394
+ start_column = 1
395
+ end_row = 2
396
+ end_column = 2
397
+ folder = $TEMPFOLDER
398
+ storage = nil
399
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
400
+ expect(result.uploaded.size).to be > 0
401
+ result = @instance.cells_post_clear_formats(name, sheet_name, {:range=>range, :start_row=>start_row, :start_column=>start_column, :end_row=>end_row, :end_column=>end_column, :folder=>folder})
402
+ expect(result.code).to eql(200)
403
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
404
+ end
405
+ end
406
+
407
+ # unit tests for cells_post_column_style
408
+ # Set column style
409
+ #
410
+ # @param name The workbook name.
411
+ # @param sheet_name The worksheet name.
412
+ # @param column_index The column index.
413
+ # @param [Hash] opts the optional parameters
414
+ # @option opts [Style] :style Style dto
415
+ # @option opts [String] :folder The workbook folder.
416
+ # @option opts [String] :storage storage name.
417
+ # @return [CellsCloudResponse]
418
+ describe 'cells_post_column_style test' do
419
+ it "should work" do
420
+ name = $BOOK1
421
+ sheet_name = $SHEET1
422
+ column_index = 100
423
+ style = AsposeCellsCloud::Style.new
424
+ folder = $TEMPFOLDER
425
+ storage = nil
426
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
427
+ expect(result.uploaded.size).to be > 0
428
+ result = @instance.cells_post_column_style(name, sheet_name, column_index, { :style=>style, :folder=>folder})
429
+ expect(result.code).to eql(200)
430
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
431
+ end
432
+ end
433
+
434
+ # unit tests for cells_post_copy_cell_into_cell
435
+ # Copy cell into cell
436
+ #
437
+ # @param name Workbook name.
438
+ # @param dest_cell_name Destination cell name
439
+ # @param sheet_name Destination worksheet name.
440
+ # @param worksheet Source worksheet name.
441
+ # @param [Hash] opts the optional parameters
442
+ # @option opts [String] :cellname Source cell name
443
+ # @option opts [Integer] :row Source row
444
+ # @option opts [Integer] :column Source column
445
+ # @option opts [String] :folder Folder name
446
+ # @option opts [String] :storage storage name.
447
+ # @return [CellsCloudResponse]
448
+ describe 'cells_post_copy_cell_into_cell test' do
449
+ it "should work" do
450
+ name = $BOOK1
451
+ dest_cell_name = 'C1'
452
+ sheet_name = $SHEET1
453
+ worksheet = $SHEET2
454
+ cellname = $CellName
455
+ row = 1
456
+ column = 1
457
+ folder = $TEMPFOLDER
458
+ storage = nil
459
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
460
+ expect(result.uploaded.size).to be > 0
461
+ result = @instance.cells_post_copy_cell_into_cell(name, dest_cell_name, sheet_name, worksheet, {:cellname=>cellname, :row=>row, :column=>column, :folder=>folder})
462
+ expect(result.code).to eql(200)
463
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
464
+ end
465
+ end
466
+
467
+ # unit tests for cells_post_copy_worksheet_columns
468
+ # Copy worksheet columns.
469
+ #
470
+ # @param name The workbook name.
471
+ # @param sheet_name The worksheet name.
472
+ # @param source_column_index Source column index
473
+ # @param destination_column_index Destination column index
474
+ # @param column_number The copied column number
475
+ # @param [Hash] opts the optional parameters
476
+ # @option opts [String] :worksheet The Worksheet
477
+ # @option opts [String] :folder The document folder.
478
+ # @option opts [String] :storage storage name.
479
+ # @return [CellsCloudResponse]
480
+ describe 'cells_post_copy_worksheet_columns test' do
481
+ it "should work" do
482
+ name = $BOOK1
483
+ sheet_name = $SHEET1
484
+ source_column_index = 100
485
+ destination_column_index = 100
486
+ column_number = 1
487
+ worksheet = $SHEET2
488
+ folder = $TEMPFOLDER
489
+ storage = nil
490
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
491
+ expect(result.uploaded.size).to be > 0
492
+ result = @instance.cells_post_copy_worksheet_columns(name, sheet_name, source_column_index, destination_column_index, column_number, { :worksheet=>worksheet,:folder=>folder})
493
+ expect(result.code).to eql(200)
494
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
495
+ end
496
+ end
497
+
498
+ # unit tests for cells_post_copy_worksheet_rows
499
+ # Copy worksheet rows.
500
+ #
501
+ # @param name The workbook name.
502
+ # @param sheet_name The worksheet name.
503
+ # @param source_row_index Source row index
504
+ # @param destination_row_index Destination row index
505
+ # @param row_number The copied row number
506
+ # @param [Hash] opts the optional parameters
507
+ # @option opts [String] :worksheet worksheet
508
+ # @option opts [String] :folder The document folder.
509
+ # @option opts [String] :storage storage name.
510
+ # @return [CellsCloudResponse]
511
+ describe 'cells_post_copy_worksheet_rows test' do
512
+ it "should work" do
513
+ name = $BOOK1
514
+ sheet_name = $SHEET1
515
+ source_row_index = 100
516
+ destination_row_index = 100
517
+ row_number = 1
518
+ worksheet = $SHEET2
519
+ folder = $TEMPFOLDER
520
+ storage = nil
521
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
522
+ expect(result.uploaded.size).to be > 0
523
+ result = @instance.cells_post_copy_worksheet_rows(name, sheet_name, source_row_index, destination_row_index, row_number, {:worksheet=>worksheet, :folder=>folder})
524
+ expect(result.code).to eql(200)
525
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
526
+ end
527
+ end
528
+
529
+ # unit tests for cells_post_group_worksheet_columns
530
+ # Group worksheet columns.
531
+ #
532
+ # @param name The workbook name.
533
+ # @param sheet_name The worksheet name.
534
+ # @param first_index The first column index to be operated.
535
+ # @param last_index The last column index to be operated.
536
+ # @param [Hash] opts the optional parameters
537
+ # @option opts [BOOLEAN] :hide columns visible state
538
+ # @option opts [String] :folder The document folder.
539
+ # @option opts [String] :storage storage name.
540
+ # @return [CellsCloudResponse]
541
+ describe 'cells_post_group_worksheet_columns test' do
542
+ it "should work" do
543
+ name = $BOOK1
544
+ sheet_name = $SHEET1
545
+ first_index = 1
546
+ last_index = 4
547
+ hide = true
548
+ folder = $TEMPFOLDER
549
+ storage = nil
550
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
551
+ expect(result.uploaded.size).to be > 0
552
+ result = @instance.cells_post_group_worksheet_columns(name, sheet_name, first_index, last_index, { :hide=>hide, :folder=>folder})
553
+ expect(result.code).to eql(200)
554
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
555
+ end
556
+ end
557
+
558
+ # unit tests for cells_post_group_worksheet_rows
559
+ # Group worksheet rows.
560
+ #
561
+ # @param name The workbook name.
562
+ # @param sheet_name The worksheet name.
563
+ # @param first_index The first row index to be operated.
564
+ # @param last_index The last row index to be operated.
565
+ # @param [Hash] opts the optional parameters
566
+ # @option opts [BOOLEAN] :hide rows visible state
567
+ # @option opts [String] :folder The document folder.
568
+ # @option opts [String] :storage storage name.
569
+ # @return [CellsCloudResponse]
570
+ describe 'cells_post_group_worksheet_rows test' do
571
+ it "should work" do
572
+ name = $BOOK1
573
+ sheet_name = $SHEET1
574
+ first_index = 1
575
+ last_index = 2
576
+ hide = true
577
+ folder = $TEMPFOLDER
578
+ storage = nil
579
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
580
+ expect(result.uploaded.size).to be > 0
581
+ result = @instance.cells_post_group_worksheet_rows(name, sheet_name, first_index, last_index, {:hide=>hide, :folder=>folder})
582
+ expect(result.code).to eql(200)
583
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
584
+ end
585
+ end
586
+
587
+ # unit tests for cells_post_hide_worksheet_columns
588
+ # Hide worksheet columns.
589
+ #
590
+ # @param name The workbook name.
591
+ # @param sheet_name The worksheet name.
592
+ # @param start_column The begin column index to be operated.
593
+ # @param total_columns Number of columns to be operated.
594
+ # @param [Hash] opts the optional parameters
595
+ # @option opts [String] :folder The document folder.
596
+ # @option opts [String] :storage storage name.
597
+ # @return [CellsCloudResponse]
598
+ describe 'cells_post_hide_worksheet_columns test' do
599
+ it "should work" do
600
+ name = $BOOK1
601
+ sheet_name = $SHEET1
602
+ start_column = 1
603
+ total_columns = 2
604
+ folder = $TEMPFOLDER
605
+ storage = nil
606
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
607
+ expect(result.uploaded.size).to be > 0
608
+ result = @instance.cells_post_hide_worksheet_columns(name, sheet_name, start_column, total_columns, { :folder=>folder})
609
+ expect(result.code).to eql(200)
610
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
611
+ end
612
+ end
613
+
614
+ # unit tests for cells_post_hide_worksheet_rows
615
+ # Hide worksheet rows.
616
+ #
617
+ # @param name The workbook name.
618
+ # @param sheet_name The worksheet name.
619
+ # @param startrow The begin row index to be operated.
620
+ # @param total_rows Number of rows to be operated.
621
+ # @param [Hash] opts the optional parameters
622
+ # @option opts [String] :folder The document folder.
623
+ # @option opts [String] :storage storage name.
624
+ # @return [CellsCloudResponse]
625
+ describe 'cells_post_hide_worksheet_rows test' do
626
+ it "should work" do
627
+ name = $BOOK1
628
+ sheet_name = $SHEET1
629
+ startrow = 1
630
+ total_rows = 2
631
+ folder = $TEMPFOLDER
632
+ storage = nil
633
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
634
+ expect(result.uploaded.size).to be > 0
635
+ result = @instance.cells_post_hide_worksheet_rows(name, sheet_name, startrow, total_rows, { :folder=>folder})
636
+ expect(result.code).to eql(200)
637
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
638
+ end
639
+ end
640
+
641
+ # unit tests for cells_post_row_style
642
+ # Set row style.
643
+ #
644
+ # @param name The workbook name.
645
+ # @param sheet_name The worksheet name.
646
+ # @param row_index The row index.
647
+ # @param [Hash] opts the optional parameters
648
+ # @option opts [Style] :style Style dto
649
+ # @option opts [String] :folder The document folder.
650
+ # @option opts [String] :storage storage name.
651
+ # @return [CellsCloudResponse]
652
+ describe 'cells_post_row_style test' do
653
+ it "should work" do
654
+ name = $BOOK1
655
+ sheet_name = $SHEET1
656
+ row_index = 100
657
+ style = AsposeCellsCloud::Style.new
658
+ folder = $TEMPFOLDER
659
+ storage = nil
660
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
661
+ expect(result.uploaded.size).to be > 0
662
+ result = @instance.cells_post_row_style(name, sheet_name, row_index, { :style=>style, :folder=>folder})
663
+ expect(result.code).to eql(200)
664
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
665
+ end
666
+ end
667
+
668
+ # unit tests for cells_get_cell_html_string
669
+ # Set htmlstring value into cell
670
+ #
671
+ # @param name Workbook name.
672
+ # @param sheet_name Worksheet name.
673
+ # @param cell_name The cell name.
674
+ # @option opts [String] :folder The workbook folder.
675
+ # @option opts [String] :storage storage name.
676
+ # @return [CellResponse]
677
+ describe 'cells_get_cell_html_string test' do
678
+ it "should work" do
679
+ name = $BOOK1
680
+ sheet_name = $SHEET1
681
+ cell_name = $CellName
682
+ folder = $TEMPFOLDER
683
+ storage = nil
684
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
685
+ expect(result.uploaded.size).to be > 0
686
+ result = @instance.cells_get_cell_html_string(name, sheet_name, cell_name, { :folder=>folder})
687
+ expect(result).not_to be_empty
688
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
689
+ end
690
+ end
691
+
692
+ # unit tests for cells_post_set_cell_html_string
693
+ # Set htmlstring value into cell
694
+ #
695
+ # @param name Workbook name.
696
+ # @param sheet_name Worksheet name.
697
+ # @param cell_name The cell name.
698
+ # @param [Hash] opts the optional parameters
699
+ # @option opts [String] :folder The workbook folder.
700
+ # @option opts [String] :storage storage name.
701
+ # @return [CellResponse]
702
+ describe 'cells_post_set_cell_html_string test' do
703
+ it "should work" do
704
+ name = $BOOK1
705
+ sheet_name = $SHEET1
706
+ cell_name = $CellName
707
+ folder = $TEMPFOLDER
708
+ storage = nil
709
+ html_string ="sssssssssssssssssssssss"
710
+ # result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
711
+ # expect(result.uploaded.size).to be > 0
712
+ result = @instance.cells_post_set_cell_html_string(name, sheet_name, cell_name, html_string, { :folder=>folder})
713
+ expect(result.code).to eql(200)
714
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
715
+ end
716
+ end
717
+
718
+ # unit tests for cells_post_set_cell_range_value
719
+ # Set cell range value
720
+ #
721
+ # @param name Workbook name.
722
+ # @param sheet_name Worksheet name.
723
+ # @param cellarea Cell area (like \&quot;A1:C2\&quot;)
724
+ # @param value Range value
725
+ # @param type Value data type (like \&quot;int\&quot;)
726
+ # @param [Hash] opts the optional parameters
727
+ # @option opts [String] :folder Folder name
728
+ # @option opts [String] :storage storage name.
729
+ # @return [CellsCloudResponse]
730
+ describe 'cells_post_set_cell_range_value test' do
731
+ it "should work" do
732
+ name = $BOOK1
733
+ sheet_name = $SHEET1
734
+ cellarea = $CELLAREA
735
+ value = 1
736
+ type = 'string'
737
+ folder = $TEMPFOLDER
738
+ storage = nil
739
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
740
+ expect(result.uploaded.size).to be > 0
741
+ result = @instance.cells_post_set_cell_range_value(name, sheet_name, cellarea, value, type, { :folder=>folder})
742
+ expect(result.code).to eql(200)
743
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
744
+ end
745
+ end
746
+
747
+ # unit tests for cells_post_set_worksheet_column_width
748
+ # Set worksheet column width.
749
+ #
750
+ # @param name The workbook name.
751
+ # @param sheet_name The worksheet name.
752
+ # @param column_index The column index.
753
+ # @param width The width.
754
+ # @param [Hash] opts the optional parameters
755
+ # @option opts [String] :folder The workbook folder.
756
+ # @option opts [String] :storage storage name.
757
+ # @return [ColumnResponse]
758
+ describe 'cells_post_set_worksheet_column_width test' do
759
+ it "should work" do
760
+ name = $BOOK1
761
+ sheet_name = $SHEET1
762
+ column_index = 100
763
+ width = 10
764
+ folder = $TEMPFOLDER
765
+ storage = nil
766
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
767
+ expect(result.uploaded.size).to be > 0
768
+ result = @instance.cells_post_set_worksheet_column_width(name, sheet_name, column_index, width, { :folder=>folder})
769
+ expect(result.code).to eql(200)
770
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
771
+ end
772
+ end
773
+
774
+ # unit tests for cells_post_ungroup_worksheet_columns
775
+ # Ungroup worksheet columns.
776
+ #
777
+ # @param name The workbook name.
778
+ # @param sheet_name The worksheet name.
779
+ # @param first_index The first column index to be operated.
780
+ # @param last_index The last column index to be operated.
781
+ # @param [Hash] opts the optional parameters
782
+ # @option opts [String] :folder The document folder.
783
+ # @option opts [String] :storage storage name.
784
+ # @return [CellsCloudResponse]
785
+ describe 'cells_post_ungroup_worksheet_columns test' do
786
+ it "should work" do
787
+ name = $BOOK1
788
+ sheet_name = $SHEET1
789
+ first_index = 1
790
+ last_index = 2
791
+ folder = $TEMPFOLDER
792
+ storage = nil
793
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
794
+ expect(result.uploaded.size).to be > 0
795
+ result = @instance.cells_post_ungroup_worksheet_columns(name, sheet_name, first_index, last_index, { :folder=>folder})
796
+ expect(result.code).to eql(200)
797
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
798
+ end
799
+ end
800
+
801
+ # unit tests for cells_post_ungroup_worksheet_rows
802
+ # Ungroup worksheet rows.
803
+ #
804
+ # @param name The workbook name.
805
+ # @param sheet_name The worksheet name.
806
+ # @param first_index The first row index to be operated.
807
+ # @param last_index The last row index to be operated.
808
+ # @param [Hash] opts the optional parameters
809
+ # @option opts [BOOLEAN] :is_all Is all row to be operated
810
+ # @option opts [String] :folder The document folder.
811
+ # @option opts [String] :storage storage name.
812
+ # @return [CellsCloudResponse]
813
+ describe 'cells_post_ungroup_worksheet_rows test' do
814
+ it "should work" do
815
+ name = $BOOK1
816
+ sheet_name = $SHEET1
817
+ first_index = 1
818
+ last_index = 10
819
+ is_all = true
820
+ folder = $TEMPFOLDER
821
+ storage = nil
822
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
823
+ expect(result.uploaded.size).to be > 0
824
+ result = @instance.cells_post_ungroup_worksheet_rows(name, sheet_name, first_index, last_index, { :is_all=>is_all, :folder=>folder})
825
+ expect(result.code).to eql(200)
826
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
827
+ end
828
+ end
829
+
830
+ # unit tests for cells_post_unhide_worksheet_columns
831
+ # Unhide worksheet columns.
832
+ #
833
+ # @param name The workbook name.
834
+ # @param sheet_name The worksheet name.
835
+ # @param startcolumn The begin column index to be operated.
836
+ # @param total_columns Number of columns to be operated.
837
+ # @param [Hash] opts the optional parameters
838
+ # @option opts [Float] :width The new column width.
839
+ # @option opts [String] :folder The document folder.
840
+ # @option opts [String] :storage storage name.
841
+ # @return [CellsCloudResponse]
842
+ describe 'cells_post_unhide_worksheet_columns test' do
843
+ it "should work" do
844
+ name = $BOOK1
845
+ sheet_name = $SHEET1
846
+ startcolumn = 1
847
+ total_columns = 2
848
+ width = 10
849
+ folder = $TEMPFOLDER
850
+ storage = nil
851
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
852
+ expect(result.uploaded.size).to be > 0
853
+ result = @instance.cells_post_unhide_worksheet_columns(name, sheet_name, startcolumn, total_columns, { :width=>width, :folder=>folder})
854
+ expect(result.code).to eql(200)
855
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
856
+ end
857
+ end
858
+
859
+ # unit tests for cells_post_unhide_worksheet_rows
860
+ # Unhide worksheet rows.
861
+ #
862
+ # @param name The workbook name.
863
+ # @param sheet_name The worksheet name.
864
+ # @param startrow The begin row index to be operated.
865
+ # @param total_rows Number of rows to be operated.
866
+ # @param [Hash] opts the optional parameters
867
+ # @option opts [Float] :height The new row height.
868
+ # @option opts [String] :folder The document folder.
869
+ # @option opts [String] :storage storage name.
870
+ # @return [CellsCloudResponse]
871
+ describe 'cells_post_unhide_worksheet_rows test' do
872
+ it "should work" do
873
+ name = $BOOK1
874
+ sheet_name = $SHEET1
875
+ startrow = 1
876
+ total_rows = 1
877
+ height = 10
878
+ folder = $TEMPFOLDER
879
+ storage = nil
880
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
881
+ expect(result.uploaded.size).to be > 0
882
+ result = @instance.cells_post_unhide_worksheet_rows(name, sheet_name, startrow, total_rows, {:height=>height, :folder=>folder})
883
+ expect(result.code).to eql(200)
884
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
885
+ end
886
+ end
887
+
888
+ # unit tests for cells_post_update_worksheet_cell_style
889
+ # Update cell&#39;s style.
890
+ #
891
+ # @param name Workbook name.
892
+ # @param sheet_name Worksheet name.
893
+ # @param cell_name The cell name.
894
+ # @param [Hash] opts the optional parameters
895
+ # @option opts [Style] :style with update style settings.
896
+ # @option opts [String] :folder The workbook folder.
897
+ # @option opts [String] :storage storage name.
898
+ # @return [StyleResponse]
899
+ describe 'cells_post_update_worksheet_cell_style test' do
900
+ it "should work" do
901
+ name = $BOOK1
902
+ sheet_name = $SHEET1
903
+ cell_name = 'A1'
904
+ style = AsposeCellsCloud::Style.new
905
+ folder = $TEMPFOLDER
906
+ storage = nil
907
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
908
+ expect(result.uploaded.size).to be > 0
909
+ result = @instance.cells_post_update_worksheet_cell_style(name, sheet_name, cell_name,{ :style=>style, :folder=>folder})
910
+ expect(result.code).to eql(200)
911
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
912
+ end
913
+ end
914
+
915
+ # unit tests for cells_post_update_worksheet_range_style
916
+ # Update cell&#39;s range style.
917
+ #
918
+ # @param name Workbook name.
919
+ # @param sheet_name Worksheet name.
920
+ # @param range The range.
921
+ # @param [Hash] opts the optional parameters
922
+ # @option opts [Style] :style with update style settings.
923
+ # @option opts [String] :folder The workbook folder.
924
+ # @option opts [String] :storage storage name.
925
+ # @return [CellsCloudResponse]
926
+ describe 'cells_post_update_worksheet_range_style test' do
927
+ it "should work" do
928
+ name = $BOOK1
929
+ sheet_name = $SHEET1
930
+ range = $RANGE
931
+ style = AsposeCellsCloud::Style.new
932
+ folder = $TEMPFOLDER
933
+ storage = nil
934
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
935
+ expect(result.uploaded.size).to be > 0
936
+ result = @instance.cells_post_update_worksheet_range_style(name, sheet_name, range,{ :style=>style, :folder=>folder})
937
+ expect(result.code).to eql(200)
938
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
939
+ end
940
+ end
941
+
942
+ # unit tests for cells_post_update_worksheet_row
943
+ # Update worksheet row.
944
+ #
945
+ # @param name The workbook name.
946
+ # @param sheet_name The worksheet name.
947
+ # @param row_index The row index.
948
+ # @param [Hash] opts the optional parameters
949
+ # @option opts [Float] :height The new row height.
950
+ # @option opts [String] :folder The document folder.
951
+ # @option opts [String] :storage storage name.
952
+ # @return [RowResponse]
953
+ describe 'cells_post_update_worksheet_row test' do
954
+ it "should work" do
955
+ name = $BOOK1
956
+ sheet_name = $SHEET1
957
+ row_index = 100
958
+ height = 10
959
+ folder = $TEMPFOLDER
960
+ storage = nil
961
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
962
+ expect(result.uploaded.size).to be > 0
963
+ result = @instance.cells_post_update_worksheet_row(name, sheet_name, row_index, { :height=>height,:folder=>folder})
964
+ expect(result.code).to eql(200)
965
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
966
+ end
967
+ end
968
+
969
+ # unit tests for cells_post_worksheet_cell_set_value
970
+ # Set cell value.
971
+ #
972
+ # @param name The document name.
973
+ # @param sheet_name The worksheet name.
974
+ # @param cell_name The cell name.
975
+ # @param [Hash] opts the optional parameters
976
+ # @option opts [String] :value The cell value.
977
+ # @option opts [String] :type The value type.
978
+ # @option opts [String] :formula Formula for cell
979
+ # @option opts [String] :folder The document folder.
980
+ # @option opts [String] :storage storage name.
981
+ # @return [CellResponse]
982
+ describe 'cells_post_worksheet_cell_set_value test' do
983
+ it "should work" do
984
+ name = $BOOK1
985
+ sheet_name = $SHEET1
986
+ cell_name = 'A1'
987
+ value = 1
988
+ type = 'string'
989
+ formula = nil
990
+ folder = $TEMPFOLDER
991
+ storage = nil
992
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
993
+ expect(result.uploaded.size).to be > 0
994
+ result = @instance.cells_post_worksheet_cell_set_value(name, sheet_name, cell_name, {:value=>value, :type=>type, :folder=>folder})
995
+ expect(result.code).to eql(200)
996
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
997
+ end
998
+ end
999
+
1000
+ # unit tests for cells_post_worksheet_merge
1001
+ # Merge cells.
1002
+ #
1003
+ # @param name The workbook name.
1004
+ # @param sheet_name The worksheet name.
1005
+ # @param start_row The start row.
1006
+ # @param start_column The start column.
1007
+ # @param total_rows The total rows
1008
+ # @param total_columns The total columns.
1009
+ # @param [Hash] opts the optional parameters
1010
+ # @option opts [String] :folder The workbook folder.
1011
+ # @option opts [String] :storage storage name.
1012
+ # @return [CellsCloudResponse]
1013
+ describe 'cells_post_worksheet_merge test' do
1014
+ it "should work" do
1015
+ name = $BOOK1
1016
+ sheet_name = $SHEET1
1017
+ start_row = 1
1018
+ start_column = 1
1019
+ total_rows = 2
1020
+ total_columns = 2
1021
+ folder = $TEMPFOLDER
1022
+ storage = nil
1023
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
1024
+ expect(result.uploaded.size).to be > 0
1025
+ result = @instance.cells_post_worksheet_merge(name, sheet_name, start_row, start_column, total_rows, total_columns, { :folder=>folder})
1026
+ expect(result.code).to eql(200)
1027
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1028
+ end
1029
+ end
1030
+
1031
+ # unit tests for cells_post_worksheet_unmerge
1032
+ # Unmerge cells.
1033
+ #
1034
+ # @param name The workbook name.
1035
+ # @param sheet_name The worksheet name.
1036
+ # @param start_row The start row.
1037
+ # @param start_column The start column.
1038
+ # @param total_rows The total rows
1039
+ # @param total_columns The total columns.
1040
+ # @param [Hash] opts the optional parameters
1041
+ # @option opts [String] :folder The workbook folder.
1042
+ # @option opts [String] :storage storage name.
1043
+ # @return [CellsCloudResponse]
1044
+ describe 'cells_post_worksheet_unmerge test' do
1045
+ it "should work" do
1046
+ name = $BOOK1
1047
+ sheet_name = $SHEET1
1048
+ start_row = 1
1049
+ start_column = 1
1050
+ total_rows = 2
1051
+ total_columns = 2
1052
+ folder = $TEMPFOLDER
1053
+ storage = nil
1054
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
1055
+ expect(result.uploaded.size).to be > 0
1056
+ result = @instance.cells_post_worksheet_unmerge(name, sheet_name, start_row, start_column, total_rows, total_columns, { :folder=>folder})
1057
+ expect(result.code).to eql(200)
1058
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1059
+ end
1060
+ end
1061
+
1062
+ # unit tests for cells_put_insert_worksheet_columns
1063
+ # Insert worksheet columns.
1064
+ #
1065
+ # @param name The workbook name.
1066
+ # @param sheet_name The worksheet name.
1067
+ # @param column_index The column index.
1068
+ # @param columns The columns.
1069
+ # @param [Hash] opts the optional parameters
1070
+ # @option opts [BOOLEAN] :update_reference The update reference.
1071
+ # @option opts [String] :folder The workbook folder.
1072
+ # @option opts [String] :storage storage name.
1073
+ # @return [ColumnsResponse]
1074
+ describe 'cells_put_insert_worksheet_columns test' do
1075
+ it "should work" do
1076
+ name = $BOOK1
1077
+ sheet_name = $SHEET1
1078
+ column_index = 100
1079
+ columns = 2
1080
+ update_reference = true
1081
+ folder = $TEMPFOLDER
1082
+ storage = nil
1083
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
1084
+ expect(result.uploaded.size).to be > 0
1085
+ result = @instance.cells_put_insert_worksheet_columns(name, sheet_name, column_index, columns, {:update_reference=>update_reference, :folder=>folder})
1086
+ expect(result.code).to eql(200)
1087
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1088
+ end
1089
+ end
1090
+
1091
+ # unit tests for cells_put_insert_worksheet_row
1092
+ # Insert new worksheet row.
1093
+ #
1094
+ # @param name The workbook name.
1095
+ # @param sheet_name The worksheet name.
1096
+ # @param row_index The new row index.
1097
+ # @param [Hash] opts the optional parameters
1098
+ # @option opts [String] :folder The document folder.
1099
+ # @option opts [String] :storage storage name.
1100
+ # @return [RowResponse]
1101
+ describe 'cells_put_insert_worksheet_row test' do
1102
+ it "should work" do
1103
+ name = $BOOK1
1104
+ sheet_name = $SHEET1
1105
+ row_index = 100
1106
+ folder = $TEMPFOLDER
1107
+ storage = nil
1108
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
1109
+ expect(result.uploaded.size).to be > 0
1110
+ result = @instance.cells_put_insert_worksheet_row(name, sheet_name, row_index, { :folder=>folder})
1111
+ expect(result.code).to eql(200)
1112
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1113
+ end
1114
+ end
1115
+
1116
+ # unit tests for cells_put_insert_worksheet_rows
1117
+ # Insert several new worksheet rows.
1118
+ #
1119
+ # @param name The workbook name.
1120
+ # @param sheet_name The worksheet name.
1121
+ # @param startrow The begin row index to be operated.
1122
+ # @param [Hash] opts the optional parameters
1123
+ # @option opts [Integer] :total_rows Number of rows to be operated.
1124
+ # @option opts [BOOLEAN] :update_reference Indicates if update references in other worksheets.
1125
+ # @option opts [String] :folder The document folder.
1126
+ # @option opts [String] :storage storage name.
1127
+ # @return [CellsCloudResponse]
1128
+ describe 'cells_put_insert_worksheet_rows test' do
1129
+ it "should work" do
1130
+ name = $BOOK1
1131
+ sheet_name = $SHEET1
1132
+ startrow = 1
1133
+ total_rows = 2
1134
+ update_reference = true
1135
+ folder = $TEMPFOLDER
1136
+ storage = nil
1137
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
1138
+ expect(result.uploaded.size).to be > 0
1139
+ result = @instance.cells_put_insert_worksheet_rows(name, sheet_name, startrow, { :total_rows=>total_rows, :update_reference=>update_reference, :folder=>folder})
1140
+ expect(result.code).to eql(200)
1141
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1142
+ end
1143
+ end
1144
+
1145
+ end