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.
- checksums.yaml +4 -4
- data/LICENSE +21 -0
- data/README.md +116 -0
- data/lib/aspose_cells_cloud.rb +296 -0
- data/lib/aspose_cells_cloud/api/cells_api.rb +19867 -0
- data/lib/aspose_cells_cloud/api_client.rb +493 -0
- data/lib/aspose_cells_cloud/api_error.rb +48 -0
- data/lib/aspose_cells_cloud/configuration.rb +178 -0
- data/lib/aspose_cells_cloud/models/above_average.rb +234 -0
- data/lib/aspose_cells_cloud/models/access_token_response.rb +261 -0
- data/lib/aspose_cells_cloud/models/area.rb +243 -0
- data/lib/aspose_cells_cloud/models/auto_filter.rb +227 -0
- data/lib/aspose_cells_cloud/models/auto_filter_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/auto_fitter_options.rb +231 -0
- data/lib/aspose_cells_cloud/models/auto_shape.rb +504 -0
- data/lib/aspose_cells_cloud/models/auto_shape_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/auto_shapes.rb +209 -0
- data/lib/aspose_cells_cloud/models/auto_shapes_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/border.rb +216 -0
- data/lib/aspose_cells_cloud/models/calculation_options.rb +225 -0
- data/lib/aspose_cells_cloud/models/cell.rb +401 -0
- data/lib/aspose_cells_cloud/models/cell_area.rb +245 -0
- data/lib/aspose_cells_cloud/models/cell_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/cell_value.rb +234 -0
- data/lib/aspose_cells_cloud/models/cells.rb +270 -0
- data/lib/aspose_cells_cloud/models/cells_cloud_file_info.rb +230 -0
- data/lib/aspose_cells_cloud/models/cells_cloud_response.rb +212 -0
- data/lib/aspose_cells_cloud/models/cells_color.rb +234 -0
- data/lib/aspose_cells_cloud/models/cells_document_properties.rb +209 -0
- data/lib/aspose_cells_cloud/models/cells_document_properties_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/cells_document_property.rb +225 -0
- data/lib/aspose_cells_cloud/models/cells_document_property_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/cells_error.rb +229 -0
- data/lib/aspose_cells_cloud/models/cells_object_operate_task_parameter.rb +216 -0
- data/lib/aspose_cells_cloud/models/cells_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/chart.rb +626 -0
- data/lib/aspose_cells_cloud/models/chart_area.rb +317 -0
- data/lib/aspose_cells_cloud/models/chart_area_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/chart_frame.rb +317 -0
- data/lib/aspose_cells_cloud/models/chart_operate_parameter.rb +279 -0
- data/lib/aspose_cells_cloud/models/charts.rb +209 -0
- data/lib/aspose_cells_cloud/models/charts_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/color.rb +245 -0
- data/lib/aspose_cells_cloud/models/color_filter.rb +234 -0
- data/lib/aspose_cells_cloud/models/color_filter_request.rb +216 -0
- data/lib/aspose_cells_cloud/models/color_scale.rb +249 -0
- data/lib/aspose_cells_cloud/models/column.rb +243 -0
- data/lib/aspose_cells_cloud/models/column_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/columns.rb +237 -0
- data/lib/aspose_cells_cloud/models/columns_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/comment.rb +297 -0
- data/lib/aspose_cells_cloud/models/comment_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/comments.rb +209 -0
- data/lib/aspose_cells_cloud/models/comments_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/conditional_formatting.rb +218 -0
- data/lib/aspose_cells_cloud/models/conditional_formatting_icon.rb +235 -0
- data/lib/aspose_cells_cloud/models/conditional_formatting_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/conditional_formatting_value.rb +219 -0
- data/lib/aspose_cells_cloud/models/conditional_formattings.rb +223 -0
- data/lib/aspose_cells_cloud/models/conditional_formattings_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/convert_task_parameter.rb +216 -0
- data/lib/aspose_cells_cloud/models/copy_options.rb +248 -0
- data/lib/aspose_cells_cloud/models/create_pivot_table_request.rb +263 -0
- data/lib/aspose_cells_cloud/models/custom_filter.rb +207 -0
- data/lib/aspose_cells_cloud/models/custom_parser_config.rb +216 -0
- data/lib/aspose_cells_cloud/models/data_bar.rb +309 -0
- data/lib/aspose_cells_cloud/models/data_bar_border.rb +209 -0
- data/lib/aspose_cells_cloud/models/data_sorter.rb +227 -0
- data/lib/aspose_cells_cloud/models/dif_save_options.rb +265 -0
- data/lib/aspose_cells_cloud/models/disc_usage.rb +219 -0
- data/lib/aspose_cells_cloud/models/dynamic_filter.rb +216 -0
- data/lib/aspose_cells_cloud/models/error_details.rb +214 -0
- data/lib/aspose_cells_cloud/models/file_source.rb +207 -0
- data/lib/aspose_cells_cloud/models/file_version.rb +274 -0
- data/lib/aspose_cells_cloud/models/file_versions.rb +201 -0
- data/lib/aspose_cells_cloud/models/files_list.rb +201 -0
- data/lib/aspose_cells_cloud/models/files_upload_result.rb +213 -0
- data/lib/aspose_cells_cloud/models/fill_format.rb +259 -0
- data/lib/aspose_cells_cloud/models/fill_format_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/filter_column.rb +277 -0
- data/lib/aspose_cells_cloud/models/font.rb +279 -0
- data/lib/aspose_cells_cloud/models/font_setting.rb +244 -0
- data/lib/aspose_cells_cloud/models/format_condition.rb +327 -0
- data/lib/aspose_cells_cloud/models/gradient_fill.rb +227 -0
- data/lib/aspose_cells_cloud/models/gradient_fill_stop.rb +226 -0
- data/lib/aspose_cells_cloud/models/horizontal_page_break.rb +231 -0
- data/lib/aspose_cells_cloud/models/horizontal_page_break_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/horizontal_page_breaks.rb +209 -0
- data/lib/aspose_cells_cloud/models/horizontal_page_breaks_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/html_save_options.rb +373 -0
- data/lib/aspose_cells_cloud/models/hyperlink.rb +234 -0
- data/lib/aspose_cells_cloud/models/hyperlink_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/hyperlinks.rb +223 -0
- data/lib/aspose_cells_cloud/models/hyperlinks_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/icon_filter.rb +212 -0
- data/lib/aspose_cells_cloud/models/icon_set.rb +253 -0
- data/lib/aspose_cells_cloud/models/image_save_options.rb +373 -0
- data/lib/aspose_cells_cloud/models/import_batch_data_option.rb +236 -0
- data/lib/aspose_cells_cloud/models/import_csv_data_option.rb +281 -0
- data/lib/aspose_cells_cloud/models/import_data_task_parameter.rb +216 -0
- data/lib/aspose_cells_cloud/models/import_double_array_option.rb +263 -0
- data/lib/aspose_cells_cloud/models/import_int_array_option.rb +263 -0
- data/lib/aspose_cells_cloud/models/import_option.rb +225 -0
- data/lib/aspose_cells_cloud/models/import_string_array_option.rb +263 -0
- data/lib/aspose_cells_cloud/models/legend.rb +335 -0
- data/lib/aspose_cells_cloud/models/legend_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/line.rb +360 -0
- data/lib/aspose_cells_cloud/models/line_format.rb +358 -0
- data/lib/aspose_cells_cloud/models/line_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/link.rb +225 -0
- data/lib/aspose_cells_cloud/models/link_element.rb +198 -0
- data/lib/aspose_cells_cloud/models/list_column.rb +209 -0
- data/lib/aspose_cells_cloud/models/list_object.rb +350 -0
- data/lib/aspose_cells_cloud/models/list_object_operate_parameter.rb +207 -0
- data/lib/aspose_cells_cloud/models/list_object_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/list_objects.rb +209 -0
- data/lib/aspose_cells_cloud/models/list_objects_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/m_html_save_options.rb +373 -0
- data/lib/aspose_cells_cloud/models/markdown_save_options.rb +292 -0
- data/lib/aspose_cells_cloud/models/merged_cell.rb +254 -0
- data/lib/aspose_cells_cloud/models/merged_cell_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/merged_cells.rb +223 -0
- data/lib/aspose_cells_cloud/models/merged_cells_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/multiple_filter.rb +189 -0
- data/lib/aspose_cells_cloud/models/multiple_filters.rb +209 -0
- data/lib/aspose_cells_cloud/models/name.rb +276 -0
- data/lib/aspose_cells_cloud/models/name_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/names.rb +223 -0
- data/lib/aspose_cells_cloud/models/names_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/negative_bar_format.rb +229 -0
- data/lib/aspose_cells_cloud/models/object_exist.rb +219 -0
- data/lib/aspose_cells_cloud/models/ods_save_options.rb +265 -0
- data/lib/aspose_cells_cloud/models/ole_object.rb +567 -0
- data/lib/aspose_cells_cloud/models/ole_object_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/ole_objects.rb +209 -0
- data/lib/aspose_cells_cloud/models/ole_objects_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/ooxml_save_options.rb +274 -0
- data/lib/aspose_cells_cloud/models/operate_object.rb +207 -0
- data/lib/aspose_cells_cloud/models/operate_object_position.rb +243 -0
- data/lib/aspose_cells_cloud/models/operate_parameter.rb +198 -0
- data/lib/aspose_cells_cloud/models/page_break_operate_parameter.rb +252 -0
- data/lib/aspose_cells_cloud/models/page_section.rb +259 -0
- data/lib/aspose_cells_cloud/models/page_sections_response.rb +223 -0
- data/lib/aspose_cells_cloud/models/page_setup.rb +542 -0
- data/lib/aspose_cells_cloud/models/page_setup_operate_parameter.rb +207 -0
- data/lib/aspose_cells_cloud/models/page_setup_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/password_request.rb +198 -0
- data/lib/aspose_cells_cloud/models/paste_options.rb +225 -0
- data/lib/aspose_cells_cloud/models/pattern_fill.rb +252 -0
- data/lib/aspose_cells_cloud/models/pdf_save_options.rb +355 -0
- data/lib/aspose_cells_cloud/models/pdf_security_options.rb +283 -0
- data/lib/aspose_cells_cloud/models/pic_format_option.rb +243 -0
- data/lib/aspose_cells_cloud/models/picture.rb +558 -0
- data/lib/aspose_cells_cloud/models/picture_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/pictures.rb +209 -0
- data/lib/aspose_cells_cloud/models/pictures_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/pivot_field.rb +546 -0
- data/lib/aspose_cells_cloud/models/pivot_field_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/pivot_filter.rb +279 -0
- data/lib/aspose_cells_cloud/models/pivot_filter_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/pivot_filters_response.rb +223 -0
- data/lib/aspose_cells_cloud/models/pivot_item.rb +228 -0
- data/lib/aspose_cells_cloud/models/pivot_table.rb +824 -0
- data/lib/aspose_cells_cloud/models/pivot_table_field_request.rb +200 -0
- data/lib/aspose_cells_cloud/models/pivot_table_operate_parameter.rb +276 -0
- data/lib/aspose_cells_cloud/models/pivot_table_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/pivot_tables.rb +209 -0
- data/lib/aspose_cells_cloud/models/pivot_tables_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/protect_sheet_parameter.rb +335 -0
- data/lib/aspose_cells_cloud/models/range.rb +309 -0
- data/lib/aspose_cells_cloud/models/range_copy_request.rb +225 -0
- data/lib/aspose_cells_cloud/models/range_set_outline_border_request.rb +225 -0
- data/lib/aspose_cells_cloud/models/range_set_style_request.rb +207 -0
- data/lib/aspose_cells_cloud/models/range_value_response.rb +223 -0
- data/lib/aspose_cells_cloud/models/ranges.rb +200 -0
- data/lib/aspose_cells_cloud/models/ranges_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/result_destination.rb +216 -0
- data/lib/aspose_cells_cloud/models/row.rb +261 -0
- data/lib/aspose_cells_cloud/models/row_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/rows.rb +237 -0
- data/lib/aspose_cells_cloud/models/rows_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/save_options.rb +265 -0
- data/lib/aspose_cells_cloud/models/save_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/save_result.rb +200 -0
- data/lib/aspose_cells_cloud/models/save_result_task_parameter.rb +207 -0
- data/lib/aspose_cells_cloud/models/shadow_effect.rb +252 -0
- data/lib/aspose_cells_cloud/models/shape.rb +504 -0
- data/lib/aspose_cells_cloud/models/shape_operate_parameter.rb +207 -0
- data/lib/aspose_cells_cloud/models/shape_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/shapes.rb +209 -0
- data/lib/aspose_cells_cloud/models/shapes_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/single_value.rb +207 -0
- data/lib/aspose_cells_cloud/models/single_value_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/smart_marker_task_parameter.rb +216 -0
- data/lib/aspose_cells_cloud/models/solid_fill.rb +216 -0
- data/lib/aspose_cells_cloud/models/sort_key.rb +221 -0
- data/lib/aspose_cells_cloud/models/sparkline.rb +226 -0
- data/lib/aspose_cells_cloud/models/sparkline_group.rb +434 -0
- data/lib/aspose_cells_cloud/models/sparkline_group_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/sparkline_groups.rb +200 -0
- data/lib/aspose_cells_cloud/models/sparkline_groups_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/split_result.rb +200 -0
- data/lib/aspose_cells_cloud/models/split_result_document.rb +212 -0
- data/lib/aspose_cells_cloud/models/split_result_response.rb +222 -0
- data/lib/aspose_cells_cloud/models/split_workbook_task_parameter.rb +243 -0
- data/lib/aspose_cells_cloud/models/spreadsheet_ml2003_save_options.rb +292 -0
- data/lib/aspose_cells_cloud/models/storage_exist.rb +204 -0
- data/lib/aspose_cells_cloud/models/storage_file.rb +249 -0
- data/lib/aspose_cells_cloud/models/style.rb +407 -0
- data/lib/aspose_cells_cloud/models/style_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/svg_save_options.rb +274 -0
- data/lib/aspose_cells_cloud/models/task_data.rb +200 -0
- data/lib/aspose_cells_cloud/models/task_description.rb +207 -0
- data/lib/aspose_cells_cloud/models/task_parameter.rb +189 -0
- data/lib/aspose_cells_cloud/models/text_item.rb +207 -0
- data/lib/aspose_cells_cloud/models/text_items.rb +209 -0
- data/lib/aspose_cells_cloud/models/text_items_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/text_options.rb +333 -0
- data/lib/aspose_cells_cloud/models/text_water_marker_request.rb +239 -0
- data/lib/aspose_cells_cloud/models/texture_fill.rb +243 -0
- data/lib/aspose_cells_cloud/models/theme_color.rb +207 -0
- data/lib/aspose_cells_cloud/models/tile_pic_option.rb +263 -0
- data/lib/aspose_cells_cloud/models/title.rb +380 -0
- data/lib/aspose_cells_cloud/models/title_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/top10.rb +219 -0
- data/lib/aspose_cells_cloud/models/top10_filter.rb +240 -0
- data/lib/aspose_cells_cloud/models/txt_save_options.rb +301 -0
- data/lib/aspose_cells_cloud/models/validation.rb +360 -0
- data/lib/aspose_cells_cloud/models/validation_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/validations.rb +223 -0
- data/lib/aspose_cells_cloud/models/validations_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/value_type.rb +189 -0
- data/lib/aspose_cells_cloud/models/vertical_page_break.rb +231 -0
- data/lib/aspose_cells_cloud/models/vertical_page_break_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/vertical_page_breaks.rb +209 -0
- data/lib/aspose_cells_cloud/models/vertical_page_breaks_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/workbook.rb +290 -0
- data/lib/aspose_cells_cloud/models/workbook_encryption_request.rb +224 -0
- data/lib/aspose_cells_cloud/models/workbook_operate_parameter.rb +198 -0
- data/lib/aspose_cells_cloud/models/workbook_protection_request.rb +209 -0
- data/lib/aspose_cells_cloud/models/workbook_replace_response.rb +235 -0
- data/lib/aspose_cells_cloud/models/workbook_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/workbook_settings.rb +626 -0
- data/lib/aspose_cells_cloud/models/workbook_settings_operate_parameter.rb +207 -0
- data/lib/aspose_cells_cloud/models/workbook_settings_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/worksheet.rb +510 -0
- data/lib/aspose_cells_cloud/models/worksheet_moving_request.rb +209 -0
- data/lib/aspose_cells_cloud/models/worksheet_replace_response.rb +235 -0
- data/lib/aspose_cells_cloud/models/worksheet_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/worksheets.rb +209 -0
- data/lib/aspose_cells_cloud/models/worksheets_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/xls_save_options.rb +265 -0
- data/lib/aspose_cells_cloud/models/xlsb_save_options.rb +265 -0
- data/lib/aspose_cells_cloud/models/xps_save_options.rb +265 -0
- data/lib/aspose_cells_cloud/version.rb +25 -0
- data/spec/api/cells_api_spec.rb +1145 -0
- data/spec/api/cells_auto_filter_api_spec.rb +430 -0
- data/spec/api/cells_chart_area_api_spec.rb +92 -0
- data/spec/api/cells_charts_api_spec.rb +390 -0
- data/spec/api/cells_conditional_formattings_api_spec.rb +259 -0
- data/spec/api/cells_hypelinks_api_spec.rb +170 -0
- data/spec/api/cells_list_objects_api_spec.rb +245 -0
- data/spec/api/cells_ole_objects_api_spec.rb +177 -0
- data/spec/api/cells_page_breaks_api_spec.rb +269 -0
- data/spec/api/cells_page_setup_api_spec.rb +198 -0
- data/spec/api/cells_pictures_api_spec.rb +174 -0
- data/spec/api/cells_pivot_tables_api_spec.rb +525 -0
- data/spec/api/cells_properties_api_spec.rb +129 -0
- data/spec/api/cells_ranges_api_spec.rb +284 -0
- data/spec/api/cells_save_as_api_spec.rb +74 -0
- data/spec/api/cells_shapes_api_spec.rb +174 -0
- data/spec/api/cells_simple_spec.rb +44 -0
- data/spec/api/cells_sparkline_group_spec.rb +43 -0
- data/spec/api/cells_storage_api_spec.rb +69 -0
- data/spec/api/cells_storage_spec.rb +45 -0
- data/spec/api/cells_task_api_spec.rb +61 -0
- data/spec/api/cells_workbook_api_spec.rb +641 -0
- data/spec/api/cells_worksheet_validations_api_spec.rb +139 -0
- data/spec/api/cells_worksheets_api_spec.rb +843 -0
- data/spec/spec_helper.rb +132 -0
- metadata +282 -3
@@ -0,0 +1,390 @@
|
|
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::CellsChartsApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'CellsChartsApi' 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
|
+
|
31
|
+
# unit tests for cells_charts_delete_worksheet_chart_legend
|
32
|
+
# Hide legend in chart
|
33
|
+
#
|
34
|
+
# @param name Workbook name.
|
35
|
+
# @param sheet_name Worksheet name.
|
36
|
+
# @param chart_index The chart index.
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [String] :folder The workbook folder.
|
39
|
+
# @option opts [String] :storage storage name.
|
40
|
+
# @return [CellsCloudResponse]
|
41
|
+
describe 'cells_charts_delete_worksheet_chart_legend test' do
|
42
|
+
it "should work" do
|
43
|
+
name = $MYDOC
|
44
|
+
sheet_name = $SHEET3
|
45
|
+
chart_index = 0
|
46
|
+
folder = $TEMPFOLDER
|
47
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
48
|
+
expect(result.uploaded.size).to be > 0
|
49
|
+
result = @instance.cells_charts_delete_worksheet_chart_legend(name, sheet_name, chart_index, { :folder=>folder})
|
50
|
+
expect(result.code).to eql(200)
|
51
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
|
56
|
+
# unit tests for cells_charts_get_worksheet_chart
|
57
|
+
# Get chart info.
|
58
|
+
#
|
59
|
+
# @param name Document name.
|
60
|
+
# @param sheet_name Worksheet name.
|
61
|
+
# @param chart_number The chart number.
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [String] :format The exported file format.
|
64
|
+
# @option opts [String] :folder The document folder.
|
65
|
+
# @option opts [String] :storage storage name.
|
66
|
+
# @return [File]
|
67
|
+
describe 'cells_charts_get_worksheet_chart test' do
|
68
|
+
it "should work" do
|
69
|
+
name = $MYDOC
|
70
|
+
sheet_name = $SHEET3
|
71
|
+
chart_number = 0
|
72
|
+
format = 'PNG'
|
73
|
+
folder = $TEMPFOLDER
|
74
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
75
|
+
expect(result.uploaded.size).to be > 0
|
76
|
+
result = @instance.cells_charts_get_worksheet_chart(name, sheet_name, chart_number, {:format=>format, :folder=>folder})
|
77
|
+
# expect(result.code).to eql(200)
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# unit tests for cells_charts_get_worksheet_chart_legend
|
83
|
+
# Get chart legend
|
84
|
+
#
|
85
|
+
# @param name Workbook name.
|
86
|
+
# @param sheet_name Worksheet name.
|
87
|
+
# @param chart_index The chart index.
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @option opts [String] :folder The workbook folder.
|
90
|
+
# @option opts [String] :storage storage name.
|
91
|
+
# @return [LegendResponse]
|
92
|
+
describe 'cells_charts_get_worksheet_chart_legend test' do
|
93
|
+
it "should work" do
|
94
|
+
name = $MYDOC
|
95
|
+
sheet_name = $SHEET3
|
96
|
+
chart_index = 0
|
97
|
+
folder = $TEMPFOLDER
|
98
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
99
|
+
expect(result.uploaded.size).to be > 0
|
100
|
+
result = @instance.cells_charts_get_worksheet_chart_legend(name, sheet_name, chart_index, { :folder=>folder})
|
101
|
+
expect(result.code).to eql(200)
|
102
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
# unit tests for cells_charts_get_worksheet_chart_title
|
107
|
+
# Get chart title
|
108
|
+
#
|
109
|
+
# @param name Workbook name.
|
110
|
+
# @param sheet_name Worksheet name.
|
111
|
+
# @param chart_index The chart index.
|
112
|
+
# @param [Hash] opts the optional parameters
|
113
|
+
# @option opts [String] :folder The workbook folder.
|
114
|
+
# @option opts [String] :storage storage name.
|
115
|
+
# @return [TitleResponse]
|
116
|
+
describe 'cells_charts_get_worksheet_chart_title test' do
|
117
|
+
it "should work" do
|
118
|
+
name = $MYDOC
|
119
|
+
sheet_name = $SHEET3
|
120
|
+
chart_index = 0
|
121
|
+
folder = $TEMPFOLDER
|
122
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
123
|
+
expect(result.uploaded.size).to be > 0
|
124
|
+
result = @instance.cells_charts_get_worksheet_chart_title(name, sheet_name, chart_index, { :folder=>folder})
|
125
|
+
expect(result.code).to eql(200)
|
126
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
# unit tests for cells_charts_get_worksheet_charts
|
131
|
+
# Get worksheet charts info.
|
132
|
+
#
|
133
|
+
# @param name Document name.
|
134
|
+
# @param sheet_name The worksheet name.
|
135
|
+
# @param [Hash] opts the optional parameters
|
136
|
+
# @option opts [String] :folder Document's folder.
|
137
|
+
# @option opts [String] :storage storage name.
|
138
|
+
# @return [ChartsResponse]
|
139
|
+
describe 'cells_charts_get_worksheet_charts test' do
|
140
|
+
it "should work" do
|
141
|
+
name = $MYDOC
|
142
|
+
sheet_name = $SHEET3
|
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_charts_get_worksheet_charts(name, sheet_name, { :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_charts_post_worksheet_chart
|
153
|
+
# Update chart propreties
|
154
|
+
#
|
155
|
+
# @param name
|
156
|
+
# @param sheet_name
|
157
|
+
# @param chart_index
|
158
|
+
# @param [Hash] opts the optional parameters
|
159
|
+
# @option opts [Chart] :chart
|
160
|
+
# @option opts [String] :folder
|
161
|
+
# @option opts [String] :storage storage name.
|
162
|
+
# @return [CellsCloudResponse]
|
163
|
+
describe 'cells_charts_post_worksheet_chart test' do
|
164
|
+
it "should work" do
|
165
|
+
name = $MYDOC
|
166
|
+
sheet_name = $SHEET3
|
167
|
+
chart_index = 0
|
168
|
+
chart = AsposeCellsCloud::Chart.new
|
169
|
+
folder = $TEMPFOLDER
|
170
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
171
|
+
expect(result.uploaded.size).to be > 0
|
172
|
+
result = @instance.cells_charts_post_worksheet_chart(name, sheet_name, chart_index, { :chart=>chart,:folder=>folder})
|
173
|
+
expect(result.code).to eql(200)
|
174
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
# unit tests for cells_charts_post_worksheet_chart_legend
|
179
|
+
# Update chart legend
|
180
|
+
#
|
181
|
+
# @param name Workbook name.
|
182
|
+
# @param sheet_name Worksheet name.
|
183
|
+
# @param chart_index The chart index.
|
184
|
+
# @param [Hash] opts the optional parameters
|
185
|
+
# @option opts [Legend] :legend
|
186
|
+
# @option opts [String] :folder The workbook folder.
|
187
|
+
# @option opts [String] :storage storage name.
|
188
|
+
# @return [LegendResponse]
|
189
|
+
describe 'cells_charts_post_worksheet_chart_legend test' do
|
190
|
+
it "should work" do
|
191
|
+
name = $MYDOC
|
192
|
+
sheet_name = $SHEET3
|
193
|
+
chart_index = 0
|
194
|
+
legend = AsposeCellsCloud::Legend.new
|
195
|
+
folder = $TEMPFOLDER
|
196
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
197
|
+
expect(result.uploaded.size).to be > 0
|
198
|
+
result = @instance.cells_charts_post_worksheet_chart_legend(name, sheet_name, chart_index, { :legend=>legend, :folder=>folder})
|
199
|
+
expect(result.code).to eql(200)
|
200
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
# unit tests for cells_charts_post_worksheet_chart_title
|
205
|
+
# Update chart title
|
206
|
+
#
|
207
|
+
# @param name Workbook name.
|
208
|
+
# @param sheet_name Worksheet name.
|
209
|
+
# @param chart_index The chart index.
|
210
|
+
# @param [Hash] opts the optional parameters
|
211
|
+
# @option opts [Title] :title Chart title
|
212
|
+
# @option opts [String] :folder The workbook folder.
|
213
|
+
# @option opts [String] :storage storage name.
|
214
|
+
# @return [TitleResponse]
|
215
|
+
describe 'cells_charts_post_worksheet_chart_title test' do
|
216
|
+
it "should work" do
|
217
|
+
name = $MYDOC
|
218
|
+
sheet_name = $SHEET3
|
219
|
+
chart_index = 0
|
220
|
+
title = AsposeCellsCloud::Title.new
|
221
|
+
folder = $TEMPFOLDER
|
222
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
223
|
+
expect(result.uploaded.size).to be > 0
|
224
|
+
result = @instance.cells_charts_post_worksheet_chart_title(name, sheet_name, chart_index, { :title=>title, :folder=>folder})
|
225
|
+
expect(result.code).to eql(200)
|
226
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
# unit tests for cells_charts_put_worksheet_add_chart
|
231
|
+
# Add new chart to worksheet.
|
232
|
+
#
|
233
|
+
# @param name Workbook name.
|
234
|
+
# @param sheet_name The worksheet name.
|
235
|
+
# @param chart_type Chart type, please refer property Type in chart resource.
|
236
|
+
# @param [Hash] opts the optional parameters
|
237
|
+
# @option opts [Integer] :upper_left_row New chart upper left row.
|
238
|
+
# @option opts [Integer] :upper_left_column New chart upperleft column.
|
239
|
+
# @option opts [Integer] :lower_right_row New chart lower right row.
|
240
|
+
# @option opts [Integer] :lower_right_column New chart lower right column.
|
241
|
+
# @option opts [String] :area Specifies values from which to plot the data series.
|
242
|
+
# @option opts [BOOLEAN] :is_vertical Specifies whether to plot the series from a range of cell values by row or by column.
|
243
|
+
# @option opts [String] :category_data Gets or sets the range of category Axis values. It can be a range of cells (such as, \"d1:e10\").
|
244
|
+
# @option opts [BOOLEAN] :is_auto_get_serial_name Specifies whether auto update serial name.
|
245
|
+
# @option opts [String] :title Specifies chart title name.
|
246
|
+
# @option opts [String] :folder The workbook folder.
|
247
|
+
# @option opts [String] :storage storage name.
|
248
|
+
# @return [ChartsResponse]
|
249
|
+
describe 'cells_charts_put_worksheet_add_chart test' do
|
250
|
+
it "should work" do
|
251
|
+
name = $MYDOC
|
252
|
+
sheet_name = $SHEET3
|
253
|
+
chart_type = 'Pie'
|
254
|
+
upper_left_row = 5
|
255
|
+
upper_left_column = 5
|
256
|
+
lower_right_row = 10
|
257
|
+
lower_right_column = 10
|
258
|
+
area = $CELLAREA
|
259
|
+
is_vertical = true
|
260
|
+
category_data = nil
|
261
|
+
is_auto_get_serial_name = nil
|
262
|
+
title = nil
|
263
|
+
folder = $TEMPFOLDER
|
264
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
265
|
+
expect(result.uploaded.size).to be > 0
|
266
|
+
result = result = @instance.cells_charts_put_worksheet_add_chart(name, sheet_name, chart_type, { :upper_left_row=>upper_left_row, :upper_left_column=>upper_left_column, :lower_right_row=>lower_right_row, :lower_right_column=>lower_right_column, :area=>area, :is_vertical=>is_vertical, :folder=>folder})
|
267
|
+
expect(result.code).to eql(200)
|
268
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
272
|
+
# unit tests for cells_charts_put_worksheet_chart_legend
|
273
|
+
# Show legend in chart
|
274
|
+
#
|
275
|
+
# @param name Workbook name.
|
276
|
+
# @param sheet_name Worksheet name.
|
277
|
+
# @param chart_index The chart index.
|
278
|
+
# @param [Hash] opts the optional parameters
|
279
|
+
# @option opts [String] :folder The workbook folder.
|
280
|
+
# @option opts [String] :storage storage name.
|
281
|
+
# @return [CellsCloudResponse]
|
282
|
+
describe 'cells_charts_put_worksheet_chart_legend test' do
|
283
|
+
it "should work" do
|
284
|
+
name = $MYDOC
|
285
|
+
sheet_name = $SHEET3
|
286
|
+
chart_index = 0
|
287
|
+
folder = $TEMPFOLDER
|
288
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
289
|
+
expect(result.uploaded.size).to be > 0
|
290
|
+
result = @instance.cells_charts_put_worksheet_chart_legend(name, sheet_name, chart_index, { :folder=>folder})
|
291
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
295
|
+
# unit tests for cells_charts_put_worksheet_chart_title
|
296
|
+
# Add chart title / Set chart title visible
|
297
|
+
#
|
298
|
+
# @param name Workbook name.
|
299
|
+
# @param sheet_name Worksheet name.
|
300
|
+
# @param chart_index The chart index.
|
301
|
+
# @param [Hash] opts the optional parameters
|
302
|
+
# @option opts [Title] :title Chart title.
|
303
|
+
# @option opts [String] :folder The workbook folder.
|
304
|
+
# @option opts [String] :storage storage name.
|
305
|
+
# @return [TitleResponse]
|
306
|
+
describe 'cells_charts_put_worksheet_chart_title test' do
|
307
|
+
it "should work" do
|
308
|
+
name = $MYDOC
|
309
|
+
sheet_name = $SHEET3
|
310
|
+
chart_index = 0
|
311
|
+
title = AsposeCellsCloud::Title.new
|
312
|
+
folder = $TEMPFOLDER
|
313
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
314
|
+
expect(result.uploaded.size).to be > 0
|
315
|
+
result = @instance.cells_charts_put_worksheet_chart_title(name, sheet_name, chart_index, {:title=>title, :folder=>folder})
|
316
|
+
expect(result.code).to eql(200)
|
317
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
318
|
+
end
|
319
|
+
end
|
320
|
+
# unit tests for cells_charts_delete_worksheet_chart_title
|
321
|
+
# Hide title in chart
|
322
|
+
#
|
323
|
+
# @param name Workbook name.
|
324
|
+
# @param sheet_name Worksheet name.
|
325
|
+
# @param chart_index The chart index.
|
326
|
+
# @param [Hash] opts the optional parameters
|
327
|
+
# @option opts [String] :folder The workbook folder.
|
328
|
+
# @option opts [String] :storage storage name.
|
329
|
+
# @return [CellsCloudResponse]
|
330
|
+
describe 'cells_charts_delete_worksheet_chart_title test' do
|
331
|
+
it "should work" do
|
332
|
+
name = $MYDOC
|
333
|
+
sheet_name = $SHEET3
|
334
|
+
chart_index = 0
|
335
|
+
folder = $TEMPFOLDER
|
336
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
337
|
+
expect(result.uploaded.size).to be > 0
|
338
|
+
result = @instance.cells_charts_delete_worksheet_chart_title(name, sheet_name, chart_index, { :folder=>folder})
|
339
|
+
expect(result.code).to eql(200)
|
340
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
341
|
+
end
|
342
|
+
end
|
343
|
+
|
344
|
+
# unit tests for cells_charts_delete_worksheet_delete_chart
|
345
|
+
# Delete worksheet chart by index.
|
346
|
+
#
|
347
|
+
# @param name Workbook name.
|
348
|
+
# @param sheet_name Worksheet name.
|
349
|
+
# @param chart_index The chart index.
|
350
|
+
# @param [Hash] opts the optional parameters
|
351
|
+
# @option opts [String] :folder The workbook folder.
|
352
|
+
# @option opts [String] :storage storage name.
|
353
|
+
# @return [ChartsResponse]
|
354
|
+
describe 'cells_charts_delete_worksheet_delete_chart test' do
|
355
|
+
it "should work" do
|
356
|
+
name = $MYDOC
|
357
|
+
sheet_name = $SHEET3
|
358
|
+
chart_index = 0
|
359
|
+
folder = $TEMPFOLDER
|
360
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
361
|
+
expect(result.uploaded.size).to be > 0
|
362
|
+
result = @instance.cells_charts_delete_worksheet_delete_chart(name, sheet_name, chart_index, { :folder=>folder})
|
363
|
+
expect(result.code).to eql(200)
|
364
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
365
|
+
end
|
366
|
+
end
|
367
|
+
|
368
|
+
# unit tests for cells_charts_delete_worksheet_clear_charts
|
369
|
+
# Clear the charts.
|
370
|
+
#
|
371
|
+
# @param name Workbook name.
|
372
|
+
# @param sheet_name The worksheet name.
|
373
|
+
# @param [Hash] opts the optional parameters
|
374
|
+
# @option opts [String] :folder The workbook folder.
|
375
|
+
# @option opts [String] :storage storage name.
|
376
|
+
# @return [CellsCloudResponse]
|
377
|
+
describe 'cells_charts_delete_worksheet_clear_charts test' do
|
378
|
+
it "should work" do
|
379
|
+
name = $MYDOC
|
380
|
+
sheet_name = $SHEET3
|
381
|
+
folder = $TEMPFOLDER
|
382
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
383
|
+
expect(result.uploaded.size).to be > 0
|
384
|
+
result = @instance.cells_charts_delete_worksheet_clear_charts(name, sheet_name, { :folder=>folder})
|
385
|
+
expect(result.code).to eql(200)
|
386
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
387
|
+
end
|
388
|
+
end
|
389
|
+
|
390
|
+
end
|
@@ -0,0 +1,259 @@
|
|
1
|
+
|
2
|
+
require 'spec_helper'
|
3
|
+
require 'json'
|
4
|
+
|
5
|
+
# Unit tests for AsposeCellsCloud::CellsConditionalFormattingsApi
|
6
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
7
|
+
# Please update as you see appropriate
|
8
|
+
describe 'CellsConditionalFormattingsApi' do
|
9
|
+
before do
|
10
|
+
@instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
|
11
|
+
$VERBOSE = nil
|
12
|
+
end
|
13
|
+
|
14
|
+
after do
|
15
|
+
# run after each test
|
16
|
+
end
|
17
|
+
|
18
|
+
|
19
|
+
# unit tests for cells_conditional_formattings_get_worksheet_conditional_formatting
|
20
|
+
# Get conditional formatting
|
21
|
+
#
|
22
|
+
# @param name
|
23
|
+
# @param sheet_name
|
24
|
+
# @param index
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [String] :folder
|
27
|
+
# @option opts [String] :storage storage name.
|
28
|
+
# @return [ConditionalFormattingResponse]
|
29
|
+
describe 'cells_conditional_formattings_get_worksheet_conditional_formatting test' do
|
30
|
+
it "should work" do
|
31
|
+
name = $BOOK1
|
32
|
+
sheet_name = $SHEET1
|
33
|
+
index = 0
|
34
|
+
folder = $TEMPFOLDER
|
35
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
36
|
+
expect(result.uploaded.size).to be > 0
|
37
|
+
result = @instance.cells_conditional_formattings_get_worksheet_conditional_formatting(name, sheet_name, index, { :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
|
+
# unit tests for cells_conditional_formattings_get_worksheet_conditional_formattings
|
44
|
+
# Get conditional formattings
|
45
|
+
#
|
46
|
+
# @param name
|
47
|
+
# @param sheet_name
|
48
|
+
# @param [Hash] opts the optional parameters
|
49
|
+
# @option opts [String] :folder
|
50
|
+
# @option opts [String] :storage storage name.
|
51
|
+
# @return [ConditionalFormattingsResponse]
|
52
|
+
describe 'cells_conditional_formattings_get_worksheet_conditional_formattings test' do
|
53
|
+
it "should work" do
|
54
|
+
name = $BOOK1
|
55
|
+
sheet_name = $SHEET1
|
56
|
+
folder = $TEMPFOLDER
|
57
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
58
|
+
expect(result.uploaded.size).to be > 0
|
59
|
+
result = @instance.cells_conditional_formattings_get_worksheet_conditional_formattings(name, sheet_name, { :folder=>folder})
|
60
|
+
expect(result.code).to eql(200)
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# unit tests for cells_conditional_formattings_put_worksheet_conditional_formatting
|
66
|
+
# Add a condition formatting.
|
67
|
+
#
|
68
|
+
# @param name
|
69
|
+
# @param sheet_name
|
70
|
+
# @param cell_area
|
71
|
+
# @param [Hash] opts the optional parameters
|
72
|
+
# @option opts [FormatCondition] :formatcondition
|
73
|
+
# @option opts [String] :folder
|
74
|
+
# @option opts [String] :storage storage name.
|
75
|
+
# @return [CellsCloudResponse]
|
76
|
+
describe 'cells_conditional_formattings_put_worksheet_conditional_formatting test' do
|
77
|
+
it "should work" do
|
78
|
+
name = $BOOK1
|
79
|
+
sheet_name = $SHEET1
|
80
|
+
cell_area = $CELLAREA
|
81
|
+
formatcondition = AsposeCellsCloud::FormatCondition.new({:'Type'=> 'CellValue', :'Operator'=>'Between',:'Formula1'=>'v1',:'Formula2'=>'v1'})
|
82
|
+
folder = $TEMPFOLDER
|
83
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
84
|
+
expect(result.uploaded.size).to be > 0
|
85
|
+
result = @instance.cells_conditional_formattings_put_worksheet_conditional_formatting(name, sheet_name, cell_area, {:format_condition=>formatcondition, :folder=>folder})
|
86
|
+
expect(result.code).to eql(200)
|
87
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# unit tests for cells_conditional_formattings_put_worksheet_format_condition
|
92
|
+
# Add a format condition.
|
93
|
+
#
|
94
|
+
# @param name
|
95
|
+
# @param sheet_name
|
96
|
+
# @param index
|
97
|
+
# @param cell_area
|
98
|
+
# @param type
|
99
|
+
# @param operator_type
|
100
|
+
# @param formula1
|
101
|
+
# @param formula2
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @option opts [String] :folder
|
104
|
+
# @option opts [String] :storage storage name.
|
105
|
+
# @return [CellsCloudResponse]
|
106
|
+
describe 'cells_conditional_formattings_put_worksheet_format_condition test' do
|
107
|
+
it "should work" do
|
108
|
+
name = $BOOK1
|
109
|
+
sheet_name = $SHEET1
|
110
|
+
index = 0
|
111
|
+
cell_area = $CELLAREA
|
112
|
+
type = 'CellValue'
|
113
|
+
operator_type = 'Between'
|
114
|
+
formula1 = 'v1'
|
115
|
+
formula2 = 'v2'
|
116
|
+
folder = $TEMPFOLDER
|
117
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
118
|
+
expect(result.uploaded.size).to be > 0
|
119
|
+
result = @instance.cells_conditional_formattings_put_worksheet_format_condition(name, sheet_name, index, cell_area, type, operator_type, formula1, formula2, { :folder=>folder})
|
120
|
+
expect(result.code).to eql(200)
|
121
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
# unit tests for cells_conditional_formattings_put_worksheet_format_condition_area
|
126
|
+
# add a cell area for format condition
|
127
|
+
#
|
128
|
+
# @param name
|
129
|
+
# @param sheet_name
|
130
|
+
# @param index
|
131
|
+
# @param cell_area
|
132
|
+
# @param [Hash] opts the optional parameters
|
133
|
+
# @option opts [String] :folder
|
134
|
+
# @option opts [String] :storage storage name.
|
135
|
+
# @return [CellsCloudResponse]
|
136
|
+
describe 'cells_conditional_formattings_put_worksheet_format_condition_area test' do
|
137
|
+
it "should work" do
|
138
|
+
name = $BOOK1
|
139
|
+
sheet_name = $SHEET1
|
140
|
+
index = 0
|
141
|
+
cell_area = $CELLAREA
|
142
|
+
folder = $TEMPFOLDER
|
143
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
144
|
+
expect(result.uploaded.size).to be > 0
|
145
|
+
result = @instance.cells_conditional_formattings_put_worksheet_format_condition_area(name, sheet_name, index, cell_area, { :folder=>folder})
|
146
|
+
expect(result.code).to eql(200)
|
147
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
# unit tests for cells_conditional_formattings_put_worksheet_format_condition_condition
|
152
|
+
# Add a condition for format condition.
|
153
|
+
#
|
154
|
+
# @param name
|
155
|
+
# @param sheet_name
|
156
|
+
# @param index
|
157
|
+
# @param type
|
158
|
+
# @param operator_type
|
159
|
+
# @param formula1
|
160
|
+
# @param formula2
|
161
|
+
# @param [Hash] opts the optional parameters
|
162
|
+
# @option opts [String] :folder
|
163
|
+
# @option opts [String] :storage storage name.
|
164
|
+
# @return [CellsCloudResponse]
|
165
|
+
describe 'cells_conditional_formattings_put_worksheet_format_condition_condition test' do
|
166
|
+
it "should work" do
|
167
|
+
name = $BOOK1
|
168
|
+
sheet_name = $SHEET1
|
169
|
+
index = 0
|
170
|
+
type = 'CellValue'
|
171
|
+
operator_type = 'Between'
|
172
|
+
formula1 = 'v1'
|
173
|
+
formula2 = 'v2'
|
174
|
+
folder = $TEMPFOLDER
|
175
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
176
|
+
expect(result.uploaded.size).to be > 0
|
177
|
+
result = @instance.cells_conditional_formattings_put_worksheet_format_condition_condition(name, sheet_name, index, type, operator_type, formula1, formula2, { :folder=>folder})
|
178
|
+
expect(result.code).to eql(200)
|
179
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
180
|
+
end
|
181
|
+
end
|
182
|
+
# unit tests for cells_conditional_formattings_delete_worksheet_conditional_formatting
|
183
|
+
# Remove conditional formatting
|
184
|
+
#
|
185
|
+
# @param name
|
186
|
+
# @param sheet_name
|
187
|
+
# @param index
|
188
|
+
# @param [Hash] opts the optional parameters
|
189
|
+
# @option opts [String] :folder
|
190
|
+
# @option opts [String] :storage storage name.
|
191
|
+
# @return [CellsCloudResponse]
|
192
|
+
describe 'cells_conditional_formattings_delete_worksheet_conditional_formatting test' do
|
193
|
+
it "should work" do
|
194
|
+
name = $BOOK1
|
195
|
+
sheet_name = $SHEET1
|
196
|
+
index = 0
|
197
|
+
folder = $TEMPFOLDER
|
198
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
199
|
+
expect(result.uploaded.size).to be > 0
|
200
|
+
result = @instance.cells_conditional_formattings_delete_worksheet_conditional_formatting(name, sheet_name, index, { :folder=>folder})
|
201
|
+
expect(result.code).to eql(200)
|
202
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
# unit tests for cells_conditional_formattings_delete_worksheet_conditional_formatting_area
|
207
|
+
# Remove cell area from conditional formatting.
|
208
|
+
#
|
209
|
+
# @param name
|
210
|
+
# @param sheet_name
|
211
|
+
# @param start_row
|
212
|
+
# @param start_column
|
213
|
+
# @param total_rows
|
214
|
+
# @param total_columns
|
215
|
+
# @param [Hash] opts the optional parameters
|
216
|
+
# @option opts [String] :folder
|
217
|
+
# @option opts [String] :storage storage name.
|
218
|
+
# @return [CellsCloudResponse]
|
219
|
+
describe 'cells_conditional_formattings_delete_worksheet_conditional_formatting_area test' do
|
220
|
+
it "should work" do
|
221
|
+
name = $BOOK1
|
222
|
+
sheet_name = $SHEET1
|
223
|
+
start_row = 1
|
224
|
+
start_column = 1
|
225
|
+
total_rows = 4
|
226
|
+
total_columns = 6
|
227
|
+
folder = $TEMPFOLDER
|
228
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
229
|
+
expect(result.uploaded.size).to be > 0
|
230
|
+
result =@instance.cells_conditional_formattings_delete_worksheet_conditional_formatting_area(name, sheet_name, start_row, start_column, total_rows, total_columns, { :folder=>folder})
|
231
|
+
expect(result.code).to eql(200)
|
232
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
# unit tests for cells_conditional_formattings_delete_worksheet_conditional_formattings
|
237
|
+
# Clear all condition formattings
|
238
|
+
#
|
239
|
+
# @param name
|
240
|
+
# @param sheet_name
|
241
|
+
# @param [Hash] opts the optional parameters
|
242
|
+
# @option opts [String] :folder
|
243
|
+
# @option opts [String] :storage storage name.
|
244
|
+
# @return [CellsCloudResponse]
|
245
|
+
describe 'cells_conditional_formattings_delete_worksheet_conditional_formattings test' do
|
246
|
+
it "should work" do
|
247
|
+
name = $BOOK1
|
248
|
+
sheet_name = $SHEET1
|
249
|
+
folder = $TEMPFOLDER
|
250
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
251
|
+
expect(result.uploaded.size).to be > 0
|
252
|
+
result = @instance.cells_conditional_formattings_delete_worksheet_conditional_formattings(name, sheet_name, { :folder=>folder})
|
253
|
+
expect(result.code).to eql(200)
|
254
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
|
259
|
+
end
|