aspose_cells_cloud 20.11 → 20.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (281) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +21 -0
  3. data/README.md +116 -0
  4. data/lib/aspose_cells_cloud.rb +296 -0
  5. data/lib/aspose_cells_cloud/api/cells_api.rb +19867 -0
  6. data/lib/aspose_cells_cloud/api_client.rb +493 -0
  7. data/lib/aspose_cells_cloud/api_error.rb +48 -0
  8. data/lib/aspose_cells_cloud/configuration.rb +178 -0
  9. data/lib/aspose_cells_cloud/models/above_average.rb +234 -0
  10. data/lib/aspose_cells_cloud/models/access_token_response.rb +261 -0
  11. data/lib/aspose_cells_cloud/models/area.rb +243 -0
  12. data/lib/aspose_cells_cloud/models/auto_filter.rb +227 -0
  13. data/lib/aspose_cells_cloud/models/auto_filter_response.rb +221 -0
  14. data/lib/aspose_cells_cloud/models/auto_fitter_options.rb +231 -0
  15. data/lib/aspose_cells_cloud/models/auto_shape.rb +504 -0
  16. data/lib/aspose_cells_cloud/models/auto_shape_response.rb +221 -0
  17. data/lib/aspose_cells_cloud/models/auto_shapes.rb +209 -0
  18. data/lib/aspose_cells_cloud/models/auto_shapes_response.rb +221 -0
  19. data/lib/aspose_cells_cloud/models/border.rb +216 -0
  20. data/lib/aspose_cells_cloud/models/calculation_options.rb +225 -0
  21. data/lib/aspose_cells_cloud/models/cell.rb +401 -0
  22. data/lib/aspose_cells_cloud/models/cell_area.rb +245 -0
  23. data/lib/aspose_cells_cloud/models/cell_response.rb +221 -0
  24. data/lib/aspose_cells_cloud/models/cell_value.rb +234 -0
  25. data/lib/aspose_cells_cloud/models/cells.rb +270 -0
  26. data/lib/aspose_cells_cloud/models/cells_cloud_file_info.rb +230 -0
  27. data/lib/aspose_cells_cloud/models/cells_cloud_response.rb +212 -0
  28. data/lib/aspose_cells_cloud/models/cells_color.rb +234 -0
  29. data/lib/aspose_cells_cloud/models/cells_document_properties.rb +209 -0
  30. data/lib/aspose_cells_cloud/models/cells_document_properties_response.rb +221 -0
  31. data/lib/aspose_cells_cloud/models/cells_document_property.rb +225 -0
  32. data/lib/aspose_cells_cloud/models/cells_document_property_response.rb +221 -0
  33. data/lib/aspose_cells_cloud/models/cells_error.rb +229 -0
  34. data/lib/aspose_cells_cloud/models/cells_object_operate_task_parameter.rb +216 -0
  35. data/lib/aspose_cells_cloud/models/cells_response.rb +221 -0
  36. data/lib/aspose_cells_cloud/models/chart.rb +626 -0
  37. data/lib/aspose_cells_cloud/models/chart_area.rb +317 -0
  38. data/lib/aspose_cells_cloud/models/chart_area_response.rb +221 -0
  39. data/lib/aspose_cells_cloud/models/chart_frame.rb +317 -0
  40. data/lib/aspose_cells_cloud/models/chart_operate_parameter.rb +279 -0
  41. data/lib/aspose_cells_cloud/models/charts.rb +209 -0
  42. data/lib/aspose_cells_cloud/models/charts_response.rb +221 -0
  43. data/lib/aspose_cells_cloud/models/color.rb +245 -0
  44. data/lib/aspose_cells_cloud/models/color_filter.rb +234 -0
  45. data/lib/aspose_cells_cloud/models/color_filter_request.rb +216 -0
  46. data/lib/aspose_cells_cloud/models/color_scale.rb +249 -0
  47. data/lib/aspose_cells_cloud/models/column.rb +243 -0
  48. data/lib/aspose_cells_cloud/models/column_response.rb +221 -0
  49. data/lib/aspose_cells_cloud/models/columns.rb +237 -0
  50. data/lib/aspose_cells_cloud/models/columns_response.rb +221 -0
  51. data/lib/aspose_cells_cloud/models/comment.rb +297 -0
  52. data/lib/aspose_cells_cloud/models/comment_response.rb +221 -0
  53. data/lib/aspose_cells_cloud/models/comments.rb +209 -0
  54. data/lib/aspose_cells_cloud/models/comments_response.rb +221 -0
  55. data/lib/aspose_cells_cloud/models/conditional_formatting.rb +218 -0
  56. data/lib/aspose_cells_cloud/models/conditional_formatting_icon.rb +235 -0
  57. data/lib/aspose_cells_cloud/models/conditional_formatting_response.rb +221 -0
  58. data/lib/aspose_cells_cloud/models/conditional_formatting_value.rb +219 -0
  59. data/lib/aspose_cells_cloud/models/conditional_formattings.rb +223 -0
  60. data/lib/aspose_cells_cloud/models/conditional_formattings_response.rb +221 -0
  61. data/lib/aspose_cells_cloud/models/convert_task_parameter.rb +216 -0
  62. data/lib/aspose_cells_cloud/models/copy_options.rb +248 -0
  63. data/lib/aspose_cells_cloud/models/create_pivot_table_request.rb +263 -0
  64. data/lib/aspose_cells_cloud/models/custom_filter.rb +207 -0
  65. data/lib/aspose_cells_cloud/models/custom_parser_config.rb +216 -0
  66. data/lib/aspose_cells_cloud/models/data_bar.rb +309 -0
  67. data/lib/aspose_cells_cloud/models/data_bar_border.rb +209 -0
  68. data/lib/aspose_cells_cloud/models/data_sorter.rb +227 -0
  69. data/lib/aspose_cells_cloud/models/dif_save_options.rb +265 -0
  70. data/lib/aspose_cells_cloud/models/disc_usage.rb +219 -0
  71. data/lib/aspose_cells_cloud/models/dynamic_filter.rb +216 -0
  72. data/lib/aspose_cells_cloud/models/error_details.rb +214 -0
  73. data/lib/aspose_cells_cloud/models/file_source.rb +207 -0
  74. data/lib/aspose_cells_cloud/models/file_version.rb +274 -0
  75. data/lib/aspose_cells_cloud/models/file_versions.rb +201 -0
  76. data/lib/aspose_cells_cloud/models/files_list.rb +201 -0
  77. data/lib/aspose_cells_cloud/models/files_upload_result.rb +213 -0
  78. data/lib/aspose_cells_cloud/models/fill_format.rb +259 -0
  79. data/lib/aspose_cells_cloud/models/fill_format_response.rb +221 -0
  80. data/lib/aspose_cells_cloud/models/filter_column.rb +277 -0
  81. data/lib/aspose_cells_cloud/models/font.rb +279 -0
  82. data/lib/aspose_cells_cloud/models/font_setting.rb +244 -0
  83. data/lib/aspose_cells_cloud/models/format_condition.rb +327 -0
  84. data/lib/aspose_cells_cloud/models/gradient_fill.rb +227 -0
  85. data/lib/aspose_cells_cloud/models/gradient_fill_stop.rb +226 -0
  86. data/lib/aspose_cells_cloud/models/horizontal_page_break.rb +231 -0
  87. data/lib/aspose_cells_cloud/models/horizontal_page_break_response.rb +221 -0
  88. data/lib/aspose_cells_cloud/models/horizontal_page_breaks.rb +209 -0
  89. data/lib/aspose_cells_cloud/models/horizontal_page_breaks_response.rb +221 -0
  90. data/lib/aspose_cells_cloud/models/html_save_options.rb +373 -0
  91. data/lib/aspose_cells_cloud/models/hyperlink.rb +234 -0
  92. data/lib/aspose_cells_cloud/models/hyperlink_response.rb +221 -0
  93. data/lib/aspose_cells_cloud/models/hyperlinks.rb +223 -0
  94. data/lib/aspose_cells_cloud/models/hyperlinks_response.rb +221 -0
  95. data/lib/aspose_cells_cloud/models/icon_filter.rb +212 -0
  96. data/lib/aspose_cells_cloud/models/icon_set.rb +253 -0
  97. data/lib/aspose_cells_cloud/models/image_save_options.rb +373 -0
  98. data/lib/aspose_cells_cloud/models/import_batch_data_option.rb +236 -0
  99. data/lib/aspose_cells_cloud/models/import_csv_data_option.rb +281 -0
  100. data/lib/aspose_cells_cloud/models/import_data_task_parameter.rb +216 -0
  101. data/lib/aspose_cells_cloud/models/import_double_array_option.rb +263 -0
  102. data/lib/aspose_cells_cloud/models/import_int_array_option.rb +263 -0
  103. data/lib/aspose_cells_cloud/models/import_option.rb +225 -0
  104. data/lib/aspose_cells_cloud/models/import_string_array_option.rb +263 -0
  105. data/lib/aspose_cells_cloud/models/legend.rb +335 -0
  106. data/lib/aspose_cells_cloud/models/legend_response.rb +221 -0
  107. data/lib/aspose_cells_cloud/models/line.rb +360 -0
  108. data/lib/aspose_cells_cloud/models/line_format.rb +358 -0
  109. data/lib/aspose_cells_cloud/models/line_response.rb +221 -0
  110. data/lib/aspose_cells_cloud/models/link.rb +225 -0
  111. data/lib/aspose_cells_cloud/models/link_element.rb +198 -0
  112. data/lib/aspose_cells_cloud/models/list_column.rb +209 -0
  113. data/lib/aspose_cells_cloud/models/list_object.rb +350 -0
  114. data/lib/aspose_cells_cloud/models/list_object_operate_parameter.rb +207 -0
  115. data/lib/aspose_cells_cloud/models/list_object_response.rb +221 -0
  116. data/lib/aspose_cells_cloud/models/list_objects.rb +209 -0
  117. data/lib/aspose_cells_cloud/models/list_objects_response.rb +221 -0
  118. data/lib/aspose_cells_cloud/models/m_html_save_options.rb +373 -0
  119. data/lib/aspose_cells_cloud/models/markdown_save_options.rb +292 -0
  120. data/lib/aspose_cells_cloud/models/merged_cell.rb +254 -0
  121. data/lib/aspose_cells_cloud/models/merged_cell_response.rb +221 -0
  122. data/lib/aspose_cells_cloud/models/merged_cells.rb +223 -0
  123. data/lib/aspose_cells_cloud/models/merged_cells_response.rb +221 -0
  124. data/lib/aspose_cells_cloud/models/multiple_filter.rb +189 -0
  125. data/lib/aspose_cells_cloud/models/multiple_filters.rb +209 -0
  126. data/lib/aspose_cells_cloud/models/name.rb +276 -0
  127. data/lib/aspose_cells_cloud/models/name_response.rb +221 -0
  128. data/lib/aspose_cells_cloud/models/names.rb +223 -0
  129. data/lib/aspose_cells_cloud/models/names_response.rb +221 -0
  130. data/lib/aspose_cells_cloud/models/negative_bar_format.rb +229 -0
  131. data/lib/aspose_cells_cloud/models/object_exist.rb +219 -0
  132. data/lib/aspose_cells_cloud/models/ods_save_options.rb +265 -0
  133. data/lib/aspose_cells_cloud/models/ole_object.rb +567 -0
  134. data/lib/aspose_cells_cloud/models/ole_object_response.rb +221 -0
  135. data/lib/aspose_cells_cloud/models/ole_objects.rb +209 -0
  136. data/lib/aspose_cells_cloud/models/ole_objects_response.rb +221 -0
  137. data/lib/aspose_cells_cloud/models/ooxml_save_options.rb +274 -0
  138. data/lib/aspose_cells_cloud/models/operate_object.rb +207 -0
  139. data/lib/aspose_cells_cloud/models/operate_object_position.rb +243 -0
  140. data/lib/aspose_cells_cloud/models/operate_parameter.rb +198 -0
  141. data/lib/aspose_cells_cloud/models/page_break_operate_parameter.rb +252 -0
  142. data/lib/aspose_cells_cloud/models/page_section.rb +259 -0
  143. data/lib/aspose_cells_cloud/models/page_sections_response.rb +223 -0
  144. data/lib/aspose_cells_cloud/models/page_setup.rb +542 -0
  145. data/lib/aspose_cells_cloud/models/page_setup_operate_parameter.rb +207 -0
  146. data/lib/aspose_cells_cloud/models/page_setup_response.rb +221 -0
  147. data/lib/aspose_cells_cloud/models/password_request.rb +198 -0
  148. data/lib/aspose_cells_cloud/models/paste_options.rb +225 -0
  149. data/lib/aspose_cells_cloud/models/pattern_fill.rb +252 -0
  150. data/lib/aspose_cells_cloud/models/pdf_save_options.rb +355 -0
  151. data/lib/aspose_cells_cloud/models/pdf_security_options.rb +283 -0
  152. data/lib/aspose_cells_cloud/models/pic_format_option.rb +243 -0
  153. data/lib/aspose_cells_cloud/models/picture.rb +558 -0
  154. data/lib/aspose_cells_cloud/models/picture_response.rb +221 -0
  155. data/lib/aspose_cells_cloud/models/pictures.rb +209 -0
  156. data/lib/aspose_cells_cloud/models/pictures_response.rb +221 -0
  157. data/lib/aspose_cells_cloud/models/pivot_field.rb +546 -0
  158. data/lib/aspose_cells_cloud/models/pivot_field_response.rb +221 -0
  159. data/lib/aspose_cells_cloud/models/pivot_filter.rb +279 -0
  160. data/lib/aspose_cells_cloud/models/pivot_filter_response.rb +221 -0
  161. data/lib/aspose_cells_cloud/models/pivot_filters_response.rb +223 -0
  162. data/lib/aspose_cells_cloud/models/pivot_item.rb +228 -0
  163. data/lib/aspose_cells_cloud/models/pivot_table.rb +824 -0
  164. data/lib/aspose_cells_cloud/models/pivot_table_field_request.rb +200 -0
  165. data/lib/aspose_cells_cloud/models/pivot_table_operate_parameter.rb +276 -0
  166. data/lib/aspose_cells_cloud/models/pivot_table_response.rb +221 -0
  167. data/lib/aspose_cells_cloud/models/pivot_tables.rb +209 -0
  168. data/lib/aspose_cells_cloud/models/pivot_tables_response.rb +221 -0
  169. data/lib/aspose_cells_cloud/models/protect_sheet_parameter.rb +335 -0
  170. data/lib/aspose_cells_cloud/models/range.rb +309 -0
  171. data/lib/aspose_cells_cloud/models/range_copy_request.rb +225 -0
  172. data/lib/aspose_cells_cloud/models/range_set_outline_border_request.rb +225 -0
  173. data/lib/aspose_cells_cloud/models/range_set_style_request.rb +207 -0
  174. data/lib/aspose_cells_cloud/models/range_value_response.rb +223 -0
  175. data/lib/aspose_cells_cloud/models/ranges.rb +200 -0
  176. data/lib/aspose_cells_cloud/models/ranges_response.rb +221 -0
  177. data/lib/aspose_cells_cloud/models/result_destination.rb +216 -0
  178. data/lib/aspose_cells_cloud/models/row.rb +261 -0
  179. data/lib/aspose_cells_cloud/models/row_response.rb +221 -0
  180. data/lib/aspose_cells_cloud/models/rows.rb +237 -0
  181. data/lib/aspose_cells_cloud/models/rows_response.rb +221 -0
  182. data/lib/aspose_cells_cloud/models/save_options.rb +265 -0
  183. data/lib/aspose_cells_cloud/models/save_response.rb +221 -0
  184. data/lib/aspose_cells_cloud/models/save_result.rb +200 -0
  185. data/lib/aspose_cells_cloud/models/save_result_task_parameter.rb +207 -0
  186. data/lib/aspose_cells_cloud/models/shadow_effect.rb +252 -0
  187. data/lib/aspose_cells_cloud/models/shape.rb +504 -0
  188. data/lib/aspose_cells_cloud/models/shape_operate_parameter.rb +207 -0
  189. data/lib/aspose_cells_cloud/models/shape_response.rb +221 -0
  190. data/lib/aspose_cells_cloud/models/shapes.rb +209 -0
  191. data/lib/aspose_cells_cloud/models/shapes_response.rb +221 -0
  192. data/lib/aspose_cells_cloud/models/single_value.rb +207 -0
  193. data/lib/aspose_cells_cloud/models/single_value_response.rb +221 -0
  194. data/lib/aspose_cells_cloud/models/smart_marker_task_parameter.rb +216 -0
  195. data/lib/aspose_cells_cloud/models/solid_fill.rb +216 -0
  196. data/lib/aspose_cells_cloud/models/sort_key.rb +221 -0
  197. data/lib/aspose_cells_cloud/models/sparkline.rb +226 -0
  198. data/lib/aspose_cells_cloud/models/sparkline_group.rb +434 -0
  199. data/lib/aspose_cells_cloud/models/sparkline_group_response.rb +221 -0
  200. data/lib/aspose_cells_cloud/models/sparkline_groups.rb +200 -0
  201. data/lib/aspose_cells_cloud/models/sparkline_groups_response.rb +221 -0
  202. data/lib/aspose_cells_cloud/models/split_result.rb +200 -0
  203. data/lib/aspose_cells_cloud/models/split_result_document.rb +212 -0
  204. data/lib/aspose_cells_cloud/models/split_result_response.rb +222 -0
  205. data/lib/aspose_cells_cloud/models/split_workbook_task_parameter.rb +243 -0
  206. data/lib/aspose_cells_cloud/models/spreadsheet_ml2003_save_options.rb +292 -0
  207. data/lib/aspose_cells_cloud/models/storage_exist.rb +204 -0
  208. data/lib/aspose_cells_cloud/models/storage_file.rb +249 -0
  209. data/lib/aspose_cells_cloud/models/style.rb +407 -0
  210. data/lib/aspose_cells_cloud/models/style_response.rb +221 -0
  211. data/lib/aspose_cells_cloud/models/svg_save_options.rb +274 -0
  212. data/lib/aspose_cells_cloud/models/task_data.rb +200 -0
  213. data/lib/aspose_cells_cloud/models/task_description.rb +207 -0
  214. data/lib/aspose_cells_cloud/models/task_parameter.rb +189 -0
  215. data/lib/aspose_cells_cloud/models/text_item.rb +207 -0
  216. data/lib/aspose_cells_cloud/models/text_items.rb +209 -0
  217. data/lib/aspose_cells_cloud/models/text_items_response.rb +221 -0
  218. data/lib/aspose_cells_cloud/models/text_options.rb +333 -0
  219. data/lib/aspose_cells_cloud/models/text_water_marker_request.rb +239 -0
  220. data/lib/aspose_cells_cloud/models/texture_fill.rb +243 -0
  221. data/lib/aspose_cells_cloud/models/theme_color.rb +207 -0
  222. data/lib/aspose_cells_cloud/models/tile_pic_option.rb +263 -0
  223. data/lib/aspose_cells_cloud/models/title.rb +380 -0
  224. data/lib/aspose_cells_cloud/models/title_response.rb +221 -0
  225. data/lib/aspose_cells_cloud/models/top10.rb +219 -0
  226. data/lib/aspose_cells_cloud/models/top10_filter.rb +240 -0
  227. data/lib/aspose_cells_cloud/models/txt_save_options.rb +301 -0
  228. data/lib/aspose_cells_cloud/models/validation.rb +360 -0
  229. data/lib/aspose_cells_cloud/models/validation_response.rb +221 -0
  230. data/lib/aspose_cells_cloud/models/validations.rb +223 -0
  231. data/lib/aspose_cells_cloud/models/validations_response.rb +221 -0
  232. data/lib/aspose_cells_cloud/models/value_type.rb +189 -0
  233. data/lib/aspose_cells_cloud/models/vertical_page_break.rb +231 -0
  234. data/lib/aspose_cells_cloud/models/vertical_page_break_response.rb +221 -0
  235. data/lib/aspose_cells_cloud/models/vertical_page_breaks.rb +209 -0
  236. data/lib/aspose_cells_cloud/models/vertical_page_breaks_response.rb +221 -0
  237. data/lib/aspose_cells_cloud/models/workbook.rb +290 -0
  238. data/lib/aspose_cells_cloud/models/workbook_encryption_request.rb +224 -0
  239. data/lib/aspose_cells_cloud/models/workbook_operate_parameter.rb +198 -0
  240. data/lib/aspose_cells_cloud/models/workbook_protection_request.rb +209 -0
  241. data/lib/aspose_cells_cloud/models/workbook_replace_response.rb +235 -0
  242. data/lib/aspose_cells_cloud/models/workbook_response.rb +221 -0
  243. data/lib/aspose_cells_cloud/models/workbook_settings.rb +626 -0
  244. data/lib/aspose_cells_cloud/models/workbook_settings_operate_parameter.rb +207 -0
  245. data/lib/aspose_cells_cloud/models/workbook_settings_response.rb +221 -0
  246. data/lib/aspose_cells_cloud/models/worksheet.rb +510 -0
  247. data/lib/aspose_cells_cloud/models/worksheet_moving_request.rb +209 -0
  248. data/lib/aspose_cells_cloud/models/worksheet_replace_response.rb +235 -0
  249. data/lib/aspose_cells_cloud/models/worksheet_response.rb +221 -0
  250. data/lib/aspose_cells_cloud/models/worksheets.rb +209 -0
  251. data/lib/aspose_cells_cloud/models/worksheets_response.rb +221 -0
  252. data/lib/aspose_cells_cloud/models/xls_save_options.rb +265 -0
  253. data/lib/aspose_cells_cloud/models/xlsb_save_options.rb +265 -0
  254. data/lib/aspose_cells_cloud/models/xps_save_options.rb +265 -0
  255. data/lib/aspose_cells_cloud/version.rb +25 -0
  256. data/spec/api/cells_api_spec.rb +1145 -0
  257. data/spec/api/cells_auto_filter_api_spec.rb +430 -0
  258. data/spec/api/cells_chart_area_api_spec.rb +92 -0
  259. data/spec/api/cells_charts_api_spec.rb +390 -0
  260. data/spec/api/cells_conditional_formattings_api_spec.rb +259 -0
  261. data/spec/api/cells_hypelinks_api_spec.rb +170 -0
  262. data/spec/api/cells_list_objects_api_spec.rb +245 -0
  263. data/spec/api/cells_ole_objects_api_spec.rb +177 -0
  264. data/spec/api/cells_page_breaks_api_spec.rb +269 -0
  265. data/spec/api/cells_page_setup_api_spec.rb +198 -0
  266. data/spec/api/cells_pictures_api_spec.rb +174 -0
  267. data/spec/api/cells_pivot_tables_api_spec.rb +525 -0
  268. data/spec/api/cells_properties_api_spec.rb +129 -0
  269. data/spec/api/cells_ranges_api_spec.rb +284 -0
  270. data/spec/api/cells_save_as_api_spec.rb +74 -0
  271. data/spec/api/cells_shapes_api_spec.rb +174 -0
  272. data/spec/api/cells_simple_spec.rb +44 -0
  273. data/spec/api/cells_sparkline_group_spec.rb +43 -0
  274. data/spec/api/cells_storage_api_spec.rb +69 -0
  275. data/spec/api/cells_storage_spec.rb +45 -0
  276. data/spec/api/cells_task_api_spec.rb +61 -0
  277. data/spec/api/cells_workbook_api_spec.rb +641 -0
  278. data/spec/api/cells_worksheet_validations_api_spec.rb +139 -0
  279. data/spec/api/cells_worksheets_api_spec.rb +843 -0
  280. data/spec/spec_helper.rb +132 -0
  281. metadata +282 -3
@@ -0,0 +1,174 @@
1
+
2
+
3
+ require 'spec_helper'
4
+ require 'json'
5
+
6
+ # Unit tests for AsposeCellsCloud::CellsShapesApi
7
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
8
+ # Please update as you see appropriate
9
+ describe 'CellsShapesApi' do
10
+ before do
11
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
12
+ $VERBOSE = nil
13
+ end
14
+
15
+ after do
16
+ # run after each test
17
+ end
18
+
19
+
20
+ # unit tests for cells_shapes_get_worksheet_shape
21
+ # Get worksheet shape
22
+ #
23
+ # @param name document name.
24
+ # @param sheet_name worksheet name.
25
+ # @param shapeindex shape index in worksheet shapes.
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :folder Document's folder.
28
+ # @option opts [String] :storage storage name.
29
+ # @return [ShapeResponse]
30
+ describe 'cells_shapes_get_worksheet_shape test' do
31
+ it "should work" do
32
+ name = $BOOK1
33
+ sheet_name = $SHEET1
34
+ shapeindex = 0
35
+ folder = $TEMPFOLDER
36
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
37
+ expect(result.uploaded.size).to be > 0
38
+ result = @instance.cells_shapes_get_worksheet_shape(name, sheet_name, shapeindex, { :folder=>folder})
39
+ expect(result.code).to eql(200)
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ end
42
+ end
43
+
44
+ # unit tests for cells_shapes_get_worksheet_shapes
45
+ # Get worksheet shapes
46
+ #
47
+ # @param name document name.
48
+ # @param sheet_name worksheet name.
49
+ # @param [Hash] opts the optional parameters
50
+ # @option opts [String] :folder Document's folder.
51
+ # @option opts [String] :storage storage name.
52
+ # @return [ShapesResponse]
53
+ describe 'cells_shapes_get_worksheet_shapes test' do
54
+ it "should work" do
55
+ name = $BOOK1
56
+ sheet_name = $SHEET1
57
+ folder = $TEMPFOLDER
58
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
59
+ expect(result.uploaded.size).to be > 0
60
+ result = @instance.cells_shapes_get_worksheet_shapes(name, sheet_name, { :folder=>folder})
61
+ expect(result.code).to eql(200)
62
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
63
+ end
64
+ end
65
+
66
+ # unit tests for cells_shapes_post_worksheet_shape
67
+ # Update a shape in worksheet
68
+ #
69
+ # @param name document name.
70
+ # @param sheet_name worksheet name.
71
+ # @param shapeindex shape index in worksheet shapes.
72
+ # @param [Hash] opts the optional parameters
73
+ # @option opts [Shape] :dto
74
+ # @option opts [String] :folder Document's folder.
75
+ # @option opts [String] :storage storage name.
76
+ # @return [CellsCloudResponse]
77
+ describe 'cells_shapes_post_worksheet_shape test' do
78
+ it "should work" do
79
+ name = $BOOK1
80
+ sheet_name = $SHEET1
81
+ shapeindex = 0
82
+ dto = AsposeCellsCloud::Shape.new({:Name=>'postShape'})
83
+ folder = $TEMPFOLDER
84
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
85
+ expect(result.uploaded.size).to be > 0
86
+ result = @instance.cells_shapes_post_worksheet_shape(name, sheet_name, shapeindex, { :dto=>dto, :folder=>folder})
87
+ expect(result.code).to eql(200)
88
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
89
+ end
90
+ end
91
+
92
+ # unit tests for cells_shapes_put_worksheet_shape
93
+ # Add shape in worksheet
94
+ #
95
+ # @param name document name.
96
+ # @param sheet_name worksheet name.
97
+ # @param drawing_type shape object type
98
+ # @param upper_left_row Upper left row index.
99
+ # @param upper_left_column Upper left column index.
100
+ # @param top Represents the vertical offset of Spinner from its left row, in unit of pixel.
101
+ # @param left Represents the horizontal offset of Spinner from its left column, in unit of pixel.
102
+ # @param width Represents the height of Spinner, in unit of pixel.
103
+ # @param height Represents the width of Spinner, in unit of pixel.
104
+ # @param [Hash] opts the optional parameters
105
+ # @option opts [String] :folder Document's folder.
106
+ # @option opts [String] :storage storage name.
107
+ # @return [ShapeResponse]
108
+ describe 'cells_shapes_put_worksheet_shape test' do
109
+ it "should work" do
110
+ name = $BOOK1
111
+ sheet_name = $SHEET1
112
+ drawing_type = 'button'
113
+ upper_left_row = 1
114
+ upper_left_column = 1
115
+ top = 10
116
+ left = 10
117
+ width = 100
118
+ height = 80
119
+ folder = $TEMPFOLDER
120
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
121
+ expect(result.uploaded.size).to be > 0
122
+ result = @instance.cells_shapes_put_worksheet_shape(name, sheet_name,{:drawing_type=> drawing_type, :upper_left_row=>upper_left_row,:upper_left_column=> upper_left_column,:top=> top, :left=>left,:width=>width,:height =>height, :folder=>folder})
123
+ expect(result.code).to eql(200)
124
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
125
+ end
126
+ end
127
+
128
+ # unit tests for cells_shapes_delete_worksheet_shape
129
+ # Delete a shape in worksheet
130
+ #
131
+ # @param name document name.
132
+ # @param sheet_name worksheet name.
133
+ # @param shapeindex shape index in worksheet shapes.
134
+ # @param [Hash] opts the optional parameters
135
+ # @option opts [String] :folder Document's folder.
136
+ # @option opts [String] :storage storage name.
137
+ # @return [CellsCloudResponse]
138
+ describe 'cells_shapes_delete_worksheet_shape test' do
139
+ it "should work" do
140
+ name = $BOOK1
141
+ sheet_name = $SHEET1
142
+ shapeindex = 0
143
+ folder = $TEMPFOLDER
144
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
145
+ expect(result.uploaded.size).to be > 0
146
+ result = @instance.cells_shapes_delete_worksheet_shape(name, sheet_name, shapeindex, { :folder=>folder})
147
+ expect(result.code).to eql(200)
148
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
149
+ end
150
+ end
151
+
152
+ # unit tests for cells_shapes_delete_worksheet_shapes
153
+ # delete all shapes in worksheet
154
+ #
155
+ # @param name document name.
156
+ # @param sheet_name worksheet name.
157
+ # @param [Hash] opts the optional parameters
158
+ # @option opts [String] :folder Document's folder.
159
+ # @option opts [String] :storage storage name.
160
+ # @return [CellsCloudResponse]
161
+ describe 'cells_shapes_delete_worksheet_shapes test' do
162
+ it "should work" do
163
+ name = $BOOK1
164
+ sheet_name = $SHEET1
165
+ folder = $TEMPFOLDER
166
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
167
+ expect(result.uploaded.size).to be > 0
168
+ result = @instance.cells_shapes_delete_worksheet_shapes(name, sheet_name, { :folder=>folder})
169
+ expect(result.code).to eql(200)
170
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
171
+ end
172
+ end
173
+
174
+ end
@@ -0,0 +1,44 @@
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
+ describe 'cells_unit test' do
30
+ it "should work" do
31
+ name = $BOOK1
32
+ sheet_name = $SHEET1
33
+ cell_area = $CELLAREA
34
+ formatcondition = AsposeCellsCloud::FormatCondition.new({:'Type'=> 'CellValue', :'Operator'=>'Between',:'Formula1'=>'v1',:'Formula2'=>'v1'})
35
+ folder = $TEMPFOLDER
36
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
37
+ expect(result.uploaded.size).to be > 0
38
+ result = @instance.cells_conditional_formattings_put_worksheet_conditional_formatting(name, sheet_name, cell_area, {:format_condition=>formatcondition, :folder=>folder})
39
+ expect(result.code).to eql(200)
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ end
42
+ end
43
+ end
44
+
@@ -0,0 +1,43 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+
4
+
5
+ describe 'Cells Sparkline Group Api' do
6
+ before do
7
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
8
+ $VERBOSE = nil
9
+ end
10
+
11
+ after do
12
+ # run after each test
13
+ end
14
+
15
+
16
+ # unit tests for one case
17
+
18
+ describe 'cells_get_worksheet_cell test' do
19
+ it "should work" do
20
+ name = $PivTestFile
21
+ sheet_name = $SHEET1
22
+ folder = $TEMPFOLDER
23
+ storage = nil
24
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
25
+ expect(result.uploaded.size).to be > 0
26
+ result = @instance.cells_sparkline_groups_get_worksheet_sparkline_groups(name, sheet_name, { :folder=>folder})
27
+ expect(result.code).to eql(200)
28
+ result = @instance.cells_sparkline_groups_put_worksheet_sparkline_group(name, sheet_name,"Line","C6:E13",'false', "G6:G13", { :folder=>folder})
29
+ expect(result.code).to eql(200)
30
+ result = @instance.cells_sparkline_groups_get_worksheet_sparkline_group(name, sheet_name,0,{ :folder=>folder})
31
+ expect(result.code).to eql(200)
32
+ sparkline_group = AsposeCellsCloud::SparklineGroup.new({:DisplayHidden=>true})
33
+ result = @instance.cells_sparkline_groups_post_worksheet_sparkline_group(name, sheet_name,0,sparkline_group,{ :folder=>folder})
34
+ expect(result.code).to eql(200)
35
+ result = @instance.cells_sparkline_groups_delete_worksheet_sparkline_group(name, sheet_name,0,{ :folder=>folder})
36
+ expect(result.code).to eql(200)
37
+ result = @instance.cells_sparkline_groups_delete_worksheet_sparkline_groups(name, sheet_name,{ :folder=>folder})
38
+ expect(result.code).to eql(200)
39
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
40
+ end
41
+ end
42
+
43
+ end
@@ -0,0 +1,69 @@
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
+ require 'base64'
16
+
17
+ # Unit tests for AsposeCellsCloud::CellsTaskApi
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'CellsTaskApi' do
21
+ before do
22
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
23
+ $VERBOSE = nil
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+
31
+ # unit tests for cells_copy
32
+ # Run tasks
33
+ #
34
+ # @param task_data
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Object]
37
+ describe 'cells_storage_op test' do
38
+ it "should work" do
39
+ name ="ReportData.xml"
40
+ folder = $TEMPFOLDER
41
+ # stream = File.read("/home/roywang/asposecellscloudsdk/data/" << name)
42
+ # @instance.object_exists(name)
43
+ # @instance.storage_exists("Default App");
44
+ # filename = folder +"/" + name
45
+ # aFile = File.new("/home/roywang/asposecellscloudsdk/data/" +name , 'rb')
46
+ # stream = aFile.sysread(aFile.size)
47
+ # aFile.close
48
+ # binary_file = File.open("/home/roywang/asposecellscloudsdk/data/" +name, "rb")
49
+ # data = [
50
+ # [ "import[sync]","false" ],
51
+ # [ "import[name]", stream, { filename: "Book1.xlsx"} ]
52
+ # ]
53
+ # stream = File.open("/home/roywang/asposecellscloudsdk/data/" +name,"r") {|io| io.read(io.size) }
54
+ @instance.upload_file( "Temp/ReportData.xml", ::File.open("data/" +name,"r") {|io| io.read(io.size) })
55
+ # @instance.copy_file(name , folder +"/1"+ name)
56
+ # @instance.copy_folder(folder, folder + "2");
57
+ # @instance.move_folder(folder+ "2", folder + "3");
58
+ # @instance.delete_folder("Temp3");
59
+ # @instance.create_folder("Temp1");
60
+ # @instance.delete_folder(folder + "1");
61
+ # @instance.download_file( folder +"/"+ name)
62
+ # @instance.delete_file("Temp/book1updata.xlsx")
63
+ # @instance.get_files_list(folder );
64
+ # @instance.move_file(folder + "\\1" + name, folder + "\\2" + name);
65
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
66
+ end
67
+ end
68
+
69
+ end
@@ -0,0 +1,45 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+
4
+ # Unit tests for AsposeCellsCloud::CellsApi
5
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
6
+ # Please update as you see appropriate
7
+ describe 'CellsApi' do
8
+ before do
9
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
10
+ $VERBOSE = nil
11
+ end
12
+
13
+ after do
14
+ # run after each test
15
+ end
16
+
17
+
18
+
19
+ describe 'cells_storage_test' do
20
+ it "should work" do
21
+ format = 'pdf'
22
+ password = nil
23
+ out_path = "Tdd.pdf"
24
+ name = $BOOK1
25
+ folder = $TEMPFOLDER
26
+ @instance.create_folder("ruby")
27
+ @instance.copy_folder("ruby","ruby1")
28
+ @instance.move_folder("ruby1","ruby")
29
+ @instance.upload_file( "ruby/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
30
+ @instance.copy_file("ruby/"+name,"ruby/1"+name)
31
+ @instance.delete_file("ruby/"+name)
32
+ @instance.move_file("ruby/1"+name,"ruby/"+name)
33
+ @instance.download_file("ruby/"+name)
34
+ @instance.delete_file("ruby/"+name)
35
+ @instance.delete_folder("ruby")
36
+
37
+
38
+ #@instance.cells_workbook_put_convert_workbook(::File.open("/home/roywang/asposecellscloudsdk/data/Book1.xlsx","r") {|io| io.read(io.size) },{:format=>format,out_path=>out_path})
39
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
40
+ end
41
+ end
42
+
43
+
44
+
45
+ end
@@ -0,0 +1,61 @@
1
+
2
+
3
+ require 'spec_helper'
4
+ require 'json'
5
+
6
+ # Unit tests for AsposeCellsCloud::CellsTaskApi
7
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
8
+ # Please update as you see appropriate
9
+ describe 'CellsTaskApi' do
10
+ before do
11
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
12
+ $VERBOSE = nil
13
+ end
14
+
15
+ after do
16
+ # run after each test
17
+ end
18
+
19
+
20
+ # unit tests for cells_task_post_run_task
21
+ # Run tasks
22
+ #
23
+ # @param task_data
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [Object]
26
+ describe 'cells_task_post_run_task test' do
27
+ it "should work" do
28
+ # TaskData taskData = new TaskData();
29
+ # List<TaskDescription> tasks = new ArrayList<TaskDescription>();
30
+ # TaskDescription task1 = new TaskDescription();
31
+ # task1.setTaskType ("SplitWorkbook");
32
+ #
33
+ # SplitWorkbookTaskParameter param1 = new SplitWorkbookTaskParameter();
34
+ # param1.setDestinationFileFormat ( "xlsx");
35
+ #
36
+ # FileSource fs = new FileSource();
37
+ # fs.setFilePath( TEMPFOLDER);
38
+ # fs.setFileSourceType ( "CloudFileSystem");
39
+ # param1.setDestinationFilePosition (fs);
40
+ # param1.setSplitNameRule ( "sheetname");
41
+ # FileSource ds = new FileSource();
42
+ # ds.setFilePath( TEMPFOLDER + "\\" + BOOK1);
43
+ # ds.setFileSourceType ( "CloudFileSystem");
44
+ # param1.setWorkbook (ds);
45
+ #
46
+ # task1.setTaskParameter ( param1);
47
+ # tasks.add(task1);
48
+ # taskData.setTasks(tasks);
49
+ # taskData.getTasks().add(task1);
50
+
51
+ param1 = AsposeCellsCloud::SplitWorkbookTaskParameter.new({:DestinationFileFormat=>'xlsx' ,:DestinationFilePosition=> AsposeCellsCloud::FileSource.new({:FileSourceType=>'CloudFileSystem'}),:SplitNameRule=>'sheetname',:Workbook=>AsposeCellsCloud::FileSource.new({:FilePath=>$TEMPFOLDER +'\\' + $BOOK1,:FileSourceType=>'CloudFileSystem'})})
52
+ task1 =AsposeCellsCloud::TaskDescription.new({:TaskType=>'SplitWorkbook',:TaskParameter=>param1})
53
+ task_data = AsposeCellsCloud::TaskData.new(:Tasks=>[task1])
54
+ result = @instance.cells_task_post_run_task(task_data)
55
+
56
+ expect(result).not_to be_empty
57
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
+ end
59
+ end
60
+
61
+ end
@@ -0,0 +1,641 @@
1
+
2
+
3
+ require 'spec_helper'
4
+ require 'json'
5
+
6
+ # Unit tests for AsposeCellsCloud::CellsWorkbookApi
7
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
8
+ # Please update as you see appropriate
9
+ describe 'CellsWorkbookApi' do
10
+ before do
11
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
12
+ $VERBOSE = nil
13
+ end
14
+
15
+ after do
16
+ # run after each test
17
+ end
18
+
19
+
20
+
21
+ # unit tests for cells_workbook_get_workbook
22
+ # Read workbook info or export.
23
+ #
24
+ # @param name The document name.
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :password The document password.
27
+ # @option opts [String] :format The exported file format.
28
+ # @option opts [BOOLEAN] :is_auto_fit Set document rows to be autofit.
29
+ # @option opts [BOOLEAN] :only_save_table Only save table data.
30
+ # @option opts [String] :folder The document folder.
31
+ # @option opts [String] :storage storage name.
32
+ # @option opts [String] :out_path The document output folder.
33
+ # @return [File]
34
+ describe 'cells_workbook_get_workbook test' do
35
+ it "should work" do
36
+ name = $BOOK1
37
+ password = nil
38
+ format = 'XPS'
39
+ is_auto_fit = true
40
+ only_save_table = true
41
+ folder = $TEMPFOLDER
42
+ out_path = nil
43
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
44
+ expect(result.uploaded.size).to be > 0
45
+ result = @instance.cells_workbook_get_workbook(name, { :password=>password, :format=>format,:folder=>folder, :out_path=>out_path})
46
+ # expect(result.code).to eql(200)
47
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
48
+ end
49
+ end
50
+
51
+ # unit tests for cells_workbook_get_workbook
52
+ # Read workbook info or export.
53
+ #
54
+ # @param name The document name.
55
+ # @param [Hash] opts the optional parameters
56
+ # @option opts [String] :password The document password.
57
+ # @option opts [String] :format The exported file format.
58
+ # @option opts [BOOLEAN] :is_auto_fit Set document rows to be autofit.
59
+ # @option opts [BOOLEAN] :only_save_table Only save table data.
60
+ # @option opts [String] :folder The document folder.
61
+ # @option opts [String] :storage storage name.
62
+ # @option opts [String] :out_path The document output folder.
63
+ # @return [File]
64
+ describe 'cells_workbook_get_workbook MD test' do
65
+ it "should work" do
66
+ name = $BOOK1
67
+ password = nil
68
+ format = 'md'
69
+ is_auto_fit = true
70
+ only_save_table = true
71
+ folder = $TEMPFOLDER
72
+ out_path = nil
73
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
74
+ expect(result.uploaded.size).to be > 0
75
+ result = @instance.cells_workbook_get_workbook(name, { :password=>password, :format=>format,:folder=>folder, :out_path=>out_path})
76
+ # expect(result.code).to eql(200)
77
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
78
+ end
79
+ end
80
+
81
+ # unit tests for cells_workbook_get_workbook_default_style
82
+ # Read workbook default style info.
83
+ #
84
+ # @param name The workbook name.
85
+ # @param [Hash] opts the optional parameters
86
+ # @option opts [String] :folder The document&#39;s folder.
87
+ # @option opts [String] :storage storage name.
88
+ # @return [StyleResponse]
89
+ describe 'cells_workbook_get_workbook_default_style test' do
90
+ it "should work" do
91
+ name = $BOOK1
92
+ folder = $TEMPFOLDER
93
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
94
+ expect(result.uploaded.size).to be > 0
95
+ result = @instance.cells_workbook_get_workbook_default_style(name, { :folder=>folder})
96
+ expect(result.code).to eql(200)
97
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
+ end
99
+ end
100
+
101
+ # unit tests for cells_workbook_get_workbook_name
102
+ # Read workbook&#39;s name.
103
+ #
104
+ # @param name The workbook name.
105
+ # @param name_name The name.
106
+ # @param [Hash] opts the optional parameters
107
+ # @option opts [String] :folder The workbook folder.
108
+ # @option opts [String] :storage storage name.
109
+ # @return [NameResponse]
110
+ describe 'cells_workbook_get_workbook_name test' do
111
+ it "should work" do
112
+ name = $BOOK1
113
+ name_name = 'Name_2'
114
+ folder = $TEMPFOLDER
115
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
116
+ expect(result.uploaded.size).to be > 0
117
+ result = @instance.cells_workbook_get_workbook_name(name, name_name, { :folder=>folder})
118
+ expect(result.code).to eql(200)
119
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
120
+ end
121
+ end
122
+
123
+ # unit tests for cells_workbook_get_workbook_name_value
124
+ # Get workbook&#39;s name value.
125
+ #
126
+ # @param name The workbook name.
127
+ # @param name_name The name.
128
+ # @param [Hash] opts the optional parameters
129
+ # @option opts [String] :folder The workbook folder.
130
+ # @option opts [String] :storage storage name.
131
+ # @return [RangeValueResponse]
132
+ describe 'cells_workbook_get_workbook_name_value test' do
133
+ it "should work" do
134
+ name = $BOOK1
135
+ name_name = 'Name_2'
136
+ folder = $TEMPFOLDER
137
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
138
+ expect(result.uploaded.size).to be > 0
139
+ result = @instance.cells_workbook_get_workbook_name_value(name, name_name, { :folder=>folder})
140
+ expect(result.code).to eql(200)
141
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
142
+ end
143
+ end
144
+
145
+ # unit tests for cells_workbook_get_workbook_names
146
+ # Read workbook&#39;s names.
147
+ #
148
+ # @param name The workbook name.
149
+ # @param [Hash] opts the optional parameters
150
+ # @option opts [String] :folder The workbook folder.
151
+ # @option opts [String] :storage storage name.
152
+ # @return [NamesResponse]
153
+ describe 'cells_workbook_get_workbook_names test' do
154
+ it "should work" do
155
+ name = $BOOK1
156
+ folder = $TEMPFOLDER
157
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
158
+ expect(result.uploaded.size).to be > 0
159
+ result = @instance.cells_workbook_get_workbook_names(name, { :folder=>folder})
160
+ expect(result.code).to eql(200)
161
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
162
+ end
163
+ end
164
+
165
+ # unit tests for cells_workbook_get_workbook_settings
166
+ # Get Workbook Settings DTO
167
+ #
168
+ # @param name Document name.
169
+ # @param [Hash] opts the optional parameters
170
+ # @option opts [String] :folder Document&#39;s folder.
171
+ # @option opts [String] :storage storage name.
172
+ # @return [WorkbookSettingsResponse]
173
+ describe 'cells_workbook_get_workbook_settings test' do
174
+ it "should work" do
175
+ name = $BOOK1
176
+ folder = $TEMPFOLDER
177
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
178
+ expect(result.uploaded.size).to be > 0
179
+ result = @instance.cells_workbook_get_workbook_settings(name, { :folder=>folder})
180
+ expect(result.code).to eql(200)
181
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
182
+ end
183
+ end
184
+
185
+ # unit tests for cells_workbook_get_workbook_text_items
186
+ # Read workbook&#39;s text items.
187
+ #
188
+ # @param name The workbook name.
189
+ # @param [Hash] opts the optional parameters
190
+ # @option opts [String] :folder The workbook folder.
191
+ # @option opts [String] :storage storage name.
192
+ # @return [TextItemsResponse]
193
+ describe 'cells_workbook_get_workbook_text_items test' do
194
+ it "should work" do
195
+ name = $BOOK1
196
+ folder = $TEMPFOLDER
197
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
198
+ expect(result.uploaded.size).to be > 0
199
+ result = @instance.cells_workbook_get_workbook_text_items(name, { :folder=>folder})
200
+ expect(result.code).to eql(200)
201
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
202
+ end
203
+ end
204
+
205
+ # unit tests for cells_workbook_post_autofit_workbook_rows
206
+ # Autofit workbook rows.
207
+ #
208
+ # @param name Document name.
209
+ # @param [Hash] opts the optional parameters
210
+ # @option opts [AutoFitterOptions] :auto_fitter_options Auto Fitter Options.
211
+ # @option opts [Integer] :start_row Start row.
212
+ # @option opts [Integer] :end_row End row.
213
+ # @option opts [BOOLEAN] :only_auto Only auto.
214
+ # @option opts [String] :folder Document&#39;s folder.
215
+ # @option opts [String] :storage storage name.
216
+ # @return [CellsCloudResponse]
217
+ describe 'cells_workbook_post_autofit_workbook_rows test' do
218
+ it "should work" do
219
+ name = $BOOK1
220
+ auto_fitter_options = nil
221
+ start_row = 1
222
+ end_row = 100
223
+ only_auto = true
224
+ folder = $TEMPFOLDER
225
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
226
+ expect(result.uploaded.size).to be > 0
227
+ result = @instance.cells_workbook_post_autofit_workbook_rows(name, {:auto_fitter_options=>auto_fitter_options, :start_row=>start_row, :end_row=>end_row, :only_auto=>only_auto, :folder=>folder})
228
+ expect(result.code).to eql(200)
229
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
230
+ end
231
+ end
232
+
233
+
234
+ # unit tests for cells_workbook_post_import_data
235
+ #
236
+ #
237
+ # @param name
238
+ # @param importdata
239
+ # @param [Hash] opts the optional parameters
240
+ # @option opts [String] :folder
241
+ # @option opts [String] :storage storage name.
242
+ # @return [CellsCloudResponse]
243
+ describe 'cells_workbook_post_import_data test' do
244
+ it "should work" do
245
+ name = $BOOK1
246
+ importdata = AsposeCellsCloud::ImportIntArrayOption.new({:DestinationWorksheet=>$SHEET1,:FirstColumn=>1,:FirstRow=>3,:ImportDataType=>'IntArray',:IsVertical=>true,:Data=>[1,2,3,4]})
247
+ folder = $TEMPFOLDER
248
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
249
+ expect(result.uploaded.size).to be > 0
250
+ result = @instance.cells_workbook_post_import_data(name, importdata, { :folder=>folder})
251
+ expect(result.code).to eql(200)
252
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
253
+ end
254
+ end
255
+
256
+
257
+ # unit tests for cells_workbook_post_workbook_calculate_formula
258
+ # Calculate all formulas in workbook.
259
+ #
260
+ # @param name Document name.
261
+ # @param [Hash] opts the optional parameters
262
+ # @option opts [CalculationOptions] :options Calculation Options.
263
+ # @option opts [BOOLEAN] :ignore_error ignore Error.
264
+ # @option opts [String] :folder Document&#39;s folder.
265
+ # @option opts [String] :storage storage name.
266
+ # @return [CellsCloudResponse]
267
+ describe 'cells_workbook_post_workbook_calculate_formula test' do
268
+ it "should work" do
269
+ name = $BOOK1
270
+ options = AsposeCellsCloud::CalculationOptions.new({:IgnoreError=>true})
271
+ ignore_error = true
272
+ folder = $TEMPFOLDER
273
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
274
+ expect(result.uploaded.size).to be > 0
275
+ result = @instance.cells_workbook_post_workbook_calculate_formula(name, { :options=>options, :ignore_error=>ignore_error,:folder=>folder})
276
+ expect(result.code).to eql(200)
277
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
278
+ end
279
+ end
280
+
281
+ # unit tests for cells_workbook_post_workbook_get_smart_marker_result
282
+ # Smart marker processing result.
283
+ #
284
+ # @param name The workbook name.
285
+ # @param [Hash] opts the optional parameters
286
+ # @option opts [String] :xml_file The xml file full path, if empty the data is read from request body.
287
+ # @option opts [String] :folder The workbook folder full path.
288
+ # @option opts [String] :storage storage name.
289
+ # @option opts [String] :out_path Path to save result
290
+ # @return [File]
291
+ describe 'cells_workbook_post_workbook_get_smart_marker_result test' do
292
+ it "should work" do
293
+ name = $BOOK1
294
+ xml_file = 'ReportData.xml'
295
+ folder = $TEMPFOLDER
296
+ out_path = nil
297
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
298
+ result = @instance.upload_file( folder+"/"+xml_file, ::File.open(File.expand_path("data/"+xml_file),"r") {|io| io.read(io.size) })
299
+ expect(result.uploaded.size).to be > 0
300
+ result = @instance.cells_workbook_post_workbook_get_smart_marker_result(name, { :xml_file=>(folder+"/"+xml_file),:folder=>folder})
301
+ # expect(result.code).to eql(200)
302
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
303
+ end
304
+ end
305
+
306
+ # unit tests for cells_workbook_post_workbook_settings
307
+ # Update Workbook setting
308
+ #
309
+ # @param name Document name.
310
+ # @param [Hash] opts the optional parameters
311
+ # @option opts [WorkbookSettings] :settings Workbook Setting DTO
312
+ # @option opts [String] :folder Document&#39;s folder.
313
+ # @option opts [String] :storage storage name.
314
+ # @return [CellsCloudResponse]
315
+ describe 'cells_workbook_post_workbook_settings test' do
316
+ it "should work" do
317
+ name = $BOOK1
318
+ settings = AsposeCellsCloud::WorkbookSettings.new(:AutoCompressPictures=>true)
319
+ folder = $TEMPFOLDER
320
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
321
+ expect(result.uploaded.size).to be > 0
322
+ result = @instance.cells_workbook_post_workbook_settings(name, {:settings=>settings, :folder=>folder})
323
+ expect(result.code).to eql(200)
324
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
325
+ end
326
+ end
327
+
328
+ # unit tests for cells_workbook_post_workbook_split
329
+ # Split workbook.
330
+ #
331
+ # @param name The workbook name.
332
+ # @param [Hash] opts the optional parameters
333
+ # @option opts [String] :format Split format.
334
+ # @option opts [Integer] :from Start worksheet index.
335
+ # @option opts [Integer] :to End worksheet index.
336
+ # @option opts [Integer] :horizontal_resolution Image horizontal resolution.
337
+ # @option opts [Integer] :vertical_resolution Image vertical resolution.
338
+ # @option opts [String] :folder The workbook folder.
339
+ # @option opts [String] :storage storage name.
340
+ # @return [SplitResultResponse]
341
+ describe 'cells_workbook_post_workbook_split test' do
342
+ it "should work" do
343
+ name = $BOOK1
344
+ format = 'png'
345
+ from = 1
346
+ to = 3
347
+ horizontal_resolution = 100
348
+ vertical_resolution = 90
349
+ folder = $TEMPFOLDER
350
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
351
+ expect(result.uploaded.size).to be > 0
352
+ result = @instance.cells_workbook_post_workbook_split(name, { :format=>format, :from=>from, :to=>to, :horizontal_resolution=>horizontal_resolution, :vertical_resolution=>vertical_resolution,:folder=>folder})
353
+ expect(result.code).to eql(200)
354
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
355
+ end
356
+ end
357
+
358
+ # unit tests for cells_workbook_post_workbooks_merge
359
+ # Merge workbooks.
360
+ #
361
+ # @param name Workbook name.
362
+ # @param merge_with The workbook to merge with.
363
+ # @param [Hash] opts the optional parameters
364
+ # @option opts [String] :folder Source workbook folder.
365
+ # @option opts [String] :storage storage name.
366
+ # @return [WorkbookResponse]
367
+ describe 'cells_workbook_post_workbooks_merge test' do
368
+ it "should work" do
369
+ name = $BOOK1
370
+ merge_with = 'myDocument.xlsx'
371
+ folder = $TEMPFOLDER
372
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
373
+ result = @instance.upload_file( folder+"/"+merge_with, ::File.open(File.expand_path("data/"+merge_with),"r") {|io| io.read(io.size) })
374
+ expect(result.uploaded.size).to be > 0
375
+ result = @instance.cells_workbook_post_workbooks_merge(name,(folder+"/"+ merge_with), { :folder=>folder})
376
+ expect(result.code).to eql(200)
377
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
378
+ end
379
+ end
380
+
381
+ # unit tests for cells_workbook_post_workbooks_text_replace
382
+ # Replace text.
383
+ #
384
+ # @param name Document name.
385
+ # @param old_value The old value.
386
+ # @param new_value The new value.
387
+ # @param [Hash] opts the optional parameters
388
+ # @option opts [String] :folder Document&#39;s folder.
389
+ # @option opts [String] :storage storage name.
390
+ # @return [WorkbookReplaceResponse]
391
+ describe 'cells_workbook_post_workbooks_text_replace test' do
392
+ it "should work" do
393
+ name = $BOOK1
394
+ old_value = '!22'
395
+ new_value = '22'
396
+ folder = $TEMPFOLDER
397
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
398
+ expect(result.uploaded.size).to be > 0
399
+ result = @instance.cells_workbook_post_workbooks_text_replace(name, old_value, new_value, { :folder=>folder})
400
+ expect(result.code).to eql(200)
401
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
402
+ end
403
+ end
404
+
405
+ # unit tests for cells_workbook_post_workbooks_text_search
406
+ # Search text.
407
+ #
408
+ # @param name Document name.
409
+ # @param text Text sample.
410
+ # @param [Hash] opts the optional parameters
411
+ # @option opts [String] :folder Document&#39;s folder.
412
+ # @option opts [String] :storage storage name.
413
+ # @return [TextItemsResponse]
414
+ describe 'cells_workbook_post_workbooks_text_search test' do
415
+ it "should work" do
416
+ name = $BOOK1
417
+ text = 'test'
418
+ folder = $TEMPFOLDER
419
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
420
+ expect(result.uploaded.size).to be > 0
421
+ result = @instance.cells_workbook_post_workbooks_text_search(name, text, { :folder=>folder})
422
+ expect(result.code).to eql(200)
423
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
424
+ end
425
+ end
426
+
427
+ # unit tests for cells_workbook_put_convert_workbook
428
+ # Convert workbook from request content to some format.
429
+ #
430
+ # @param [Hash] opts the optional parameters
431
+ # @option opts [String] :format The format to convert.
432
+ # @option opts [String] :password The workbook password.
433
+ # @option opts [String] :out_path Path to save result
434
+ # @return [File]
435
+ describe 'cells_workbook_put_convert_workbook test' do
436
+ it "should work" do
437
+ name = $BOOK1
438
+ format = 'pdf'
439
+ password = nil
440
+ out_path = "Tdd.pdf"
441
+ result = @instance.cells_workbook_put_convert_workbook( ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) },{:format=>format,out_path=>out_path})
442
+ # expect(result.code).to eql(200)
443
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
444
+ end
445
+ end
446
+
447
+ # unit tests for cells_workbook_put_workbook_create
448
+ # Create new workbook using deferent methods.
449
+ #
450
+ # @param name The new document name.
451
+ # @param [Hash] opts the optional parameters
452
+ # @option opts [String] :template_file The template file, if the data not provided default workbook is created.
453
+ # @option opts [String] :data_file Smart marker data file, if the data not provided the request content is checked for the data.
454
+ # @option opts [String] :folder The new document folder.
455
+ # @option opts [String] :storage storage name.
456
+ # @return [WorkbookResponse]
457
+ describe 'cells_workbook_put_workbook_create test' do
458
+ it "should work" do
459
+ t = Time.now
460
+ name = Time.now.strftime("%y%m%d%H%M%s") + $BOOK1
461
+ template_file = $BOOK1
462
+ data_file = 'ReportData.xml'
463
+ folder = $TEMPFOLDER
464
+ result = @instance.upload_file( folder+"/"+template_file, ::File.open(File.expand_path("data/"+template_file),"r") {|io| io.read(io.size) })
465
+ expect(result.uploaded.size).to be > 0
466
+ result = @instance.upload_file(folder+"/"+data_file, ::File.open(File.expand_path("data/"+data_file),"r") {|io| io.read(io.size) })
467
+ expect(result.uploaded.size).to be > 0
468
+ result = @instance.cells_workbook_put_workbook_create(name, {:template_file=>folder+"/"+template_file, :data_file=>folder+"/"+data_file, :folder=>folder})
469
+ # expect(result.code).to eql(200)
470
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
471
+ end
472
+ end
473
+
474
+ # unit tests for cells_workbook_delete_workbook_name
475
+ # Clean workbook&#39;s names.
476
+ #
477
+ # @param name The workbook name.
478
+ # @param name_name The name.
479
+ # @param [Hash] opts the optional parameters
480
+ # @option opts [String] :folder The workbook folder.
481
+ # @option opts [String] :storage storage name.
482
+ # @return [CellsCloudResponse]
483
+ describe 'cells_workbook_delete_workbook_name test' do
484
+ it "should work" do
485
+ name = $BOOK1
486
+ name_name = 'Name_2'
487
+ folder = $TEMPFOLDER
488
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
489
+ expect(result.uploaded.size).to be > 0
490
+ result = @instance.cells_workbook_delete_workbook_name(name, name_name, { :folder=>folder})
491
+ expect(result.code).to eql(200)
492
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
493
+ end
494
+ end
495
+
496
+ # unit tests for cells_workbook_delete_workbook_names
497
+ # Clean workbook&#39;s names.
498
+ #
499
+ # @param name The workbook name.
500
+ # @param [Hash] opts the optional parameters
501
+ # @option opts [String] :folder The workbook folder.
502
+ # @option opts [String] :storage storage name.
503
+ # @return [CellsCloudResponse]
504
+ describe 'cells_workbook_delete_workbook_names test' do
505
+ it "should work" do
506
+ name = $BOOK1
507
+ folder = $TEMPFOLDER
508
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
509
+ expect(result.uploaded.size).to be > 0
510
+ result = @instance.cells_workbook_delete_workbook_names(name, { :folder=>folder})
511
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
512
+ end
513
+ end
514
+
515
+ # unit tests for cells_workbook_put_document_protect_from_changes
516
+ # Protect document from changes.
517
+ #
518
+ # @param name Document name.
519
+ # @param [Hash] opts the optional parameters
520
+ # @option opts [PasswordRequest] :password Modification password.
521
+ # @option opts [String] :folder Document&#39;s folder.
522
+ # @option opts [String] :storage storage name.
523
+ # @return [CellsCloudResponse]
524
+ describe 'cells_workbook_put_document_protect_from_changes test' do
525
+ it "should work" do
526
+ name = $BOOK1
527
+ password = AsposeCellsCloud::PasswordRequest.new({:Password=>'123456'})
528
+ folder = $TEMPFOLDER
529
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
530
+ expect(result.uploaded.size).to be > 0
531
+ result = @instance.cells_workbook_put_document_protect_from_changes(name, {:password=>password, :folder=>folder})
532
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
533
+ end
534
+ end
535
+ # unit tests for cells_workbook_post_protect_document
536
+ # Protect document.
537
+ #
538
+ # @param name The document name.
539
+ # @param [Hash] opts the optional parameters
540
+ # @option opts [WorkbookProtectionRequest] :protection The protection settings.
541
+ # @option opts [String] :folder The document folder.
542
+ # @option opts [String] :storage storage name.
543
+ # @return [CellsCloudResponse]
544
+ describe 'cells_workbook_post_protect_document test' do
545
+ it "should work" do
546
+ name = $BOOK1
547
+ protection = AsposeCellsCloud::WorkbookProtectionRequest.new(:Password=>'123',:ProtectionType=>'All')
548
+ folder = $TEMPFOLDER
549
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
550
+ expect(result.uploaded.size).to be > 0
551
+ result = @instance.cells_workbook_post_protect_document(name, { :protection=>protection, :folder=>folder})
552
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
553
+ end
554
+ end
555
+
556
+ # unit tests for cells_workbook_delete_unprotect_document
557
+ # Unprotect document.
558
+ #
559
+ # @param name The document name.
560
+ # @param [Hash] opts the optional parameters
561
+ # @option opts [WorkbookProtectionRequest] :protection Protection settings, only password can be specified.
562
+ # @option opts [String] :folder The document folder.
563
+ # @option opts [String] :storage storage name.
564
+ # @return [CellsCloudResponse]
565
+ describe 'cells_workbook_delete_unprotect_document test' do
566
+ it "should work" do
567
+ name = $BOOK1
568
+ protection = AsposeCellsCloud::WorkbookProtectionRequest.new({:Password=>'123',:ProtectionType=>'All'})
569
+ folder = $TEMPFOLDER
570
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
571
+ expect(result.uploaded.size).to be > 0
572
+ result = @instance.cells_workbook_delete_unprotect_document(name, {:protection=>protection, :folder=>folder})
573
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
574
+ end
575
+ end
576
+
577
+ # unit tests for cells_workbook_delete_document_unprotect_from_changes
578
+ # Unprotect document from changes.
579
+ #
580
+ # @param name The document name.
581
+ # @param [Hash] opts the optional parameters
582
+ # @option opts [String] :folder Document&#39;s folder.
583
+ # @option opts [String] :storage storage name.
584
+ # @return [CellsCloudResponse]
585
+ describe 'cells_workbook_delete_document_unprotect_from_changes test' do
586
+ it "should work" do
587
+ name = $BOOK1
588
+ folder = $TEMPFOLDER
589
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
590
+ expect(result.uploaded.size).to be > 0
591
+ result =@instance.cells_workbook_delete_document_unprotect_from_changes(name, { :folder=>folder})
592
+ expect(result.code).to eql(200)
593
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
594
+ end
595
+ end
596
+
597
+ # unit tests for cells_workbook_post_encrypt_document
598
+ # Encript document.
599
+ #
600
+ # @param name The document name.
601
+ # @param [Hash] opts the optional parameters
602
+ # @option opts [WorkbookEncryptionRequest] :encryption Encryption parameters.
603
+ # @option opts [String] :folder The document folder.
604
+ # @option opts [String] :storage storage name.
605
+ # @return [CellsCloudResponse]
606
+ describe 'cells_workbook_post_encrypt_document test' do
607
+ it "should work" do
608
+ name = $BOOK1
609
+ encryption = AsposeCellsCloud::WorkbookEncryptionRequest.new({:Password=>'123456',:KeyLength=>128,:EncryptionType=>'XOR'})
610
+ folder = $TEMPFOLDER
611
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
612
+ expect(result.uploaded.size).to be > 0
613
+ result =@instance.cells_workbook_post_encrypt_document(name, {:encryption=>encryption, :folder=>folder})
614
+ expect(result.code).to eql(200)
615
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
616
+ end
617
+ end
618
+
619
+ # unit tests for cells_workbook_delete_decrypt_document
620
+ # Decrypt document.
621
+ #
622
+ # @param name The document name.
623
+ # @param [Hash] opts the optional parameters
624
+ # @option opts [WorkbookEncryptionRequest] :encryption Encryption settings, only password can be specified.
625
+ # @option opts [String] :folder The document folder.
626
+ # @option opts [String] :storage storage name.
627
+ # @return [CellsCloudResponse]
628
+ describe 'cells_workbook_delete_decrypt_document test' do
629
+ it "should work" do
630
+ name = $BOOK1
631
+ encryption = AsposeCellsCloud::WorkbookEncryptionRequest.new({:Password=>'123456',:KeyLength=>128,:EncryptionType=>'XOR'})
632
+ folder = $TEMPFOLDER
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_workbook_delete_decrypt_document(name, { :encryption=>encryption,: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
+ end