aspose_cells_cloud 23.8 → 23.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +4 -1
  3. data/README.md +6 -4
  4. data/lib/aspose_cells_cloud/api/cells_api.rb +25 -2
  5. data/lib/aspose_cells_cloud/models/above_average.rb +3 -3
  6. data/lib/aspose_cells_cloud/models/abstract_calculation_engine.rb +234 -0
  7. data/lib/aspose_cells_cloud/models/{barcode_response.rb → abstract_calculation_monitor.rb} +33 -45
  8. data/lib/aspose_cells_cloud/models/arc_shape.rb +6 -6
  9. data/lib/aspose_cells_cloud/models/area.rb +5 -5
  10. data/lib/aspose_cells_cloud/models/auto_filter.rb +4 -4
  11. data/lib/aspose_cells_cloud/models/auto_fitter_options.rb +68 -8
  12. data/lib/aspose_cells_cloud/models/axis.rb +34 -34
  13. data/lib/aspose_cells_cloud/models/batch_convert_request.rb +7 -7
  14. data/lib/aspose_cells_cloud/models/batch_lock_request.rb +6 -6
  15. data/lib/aspose_cells_cloud/models/batch_protect_request.rb +6 -6
  16. data/lib/aspose_cells_cloud/models/batch_split_request.rb +9 -9
  17. data/lib/aspose_cells_cloud/models/border.rb +4 -4
  18. data/lib/aspose_cells_cloud/models/calculation_options.rb +44 -8
  19. data/lib/aspose_cells_cloud/models/cell.rb +15 -15
  20. data/lib/aspose_cells_cloud/models/cells.rb +4 -4
  21. data/lib/aspose_cells_cloud/models/cells_color.rb +7 -7
  22. data/lib/aspose_cells_cloud/models/chart.rb +43 -43
  23. data/lib/aspose_cells_cloud/models/chart_data_table.rb +8 -8
  24. data/lib/aspose_cells_cloud/models/chart_frame.rb +13 -13
  25. data/lib/aspose_cells_cloud/models/{barcode_response_list.rb → chart_globalization_settings.rb} +2 -2
  26. data/lib/aspose_cells_cloud/models/chart_point.rb +8 -8
  27. data/lib/aspose_cells_cloud/models/check_box.rb +3 -3
  28. data/lib/aspose_cells_cloud/models/color_filter.rb +1 -1
  29. data/lib/aspose_cells_cloud/models/color_filter_request.rb +3 -3
  30. data/lib/aspose_cells_cloud/models/color_scale.rb +6 -6
  31. data/lib/aspose_cells_cloud/models/column.rb +5 -5
  32. data/lib/aspose_cells_cloud/models/combo_box.rb +5 -5
  33. data/lib/aspose_cells_cloud/models/comment.rb +10 -10
  34. data/lib/aspose_cells_cloud/models/comment_shape.rb +1 -1
  35. data/lib/aspose_cells_cloud/models/conditional_formatting_icon.rb +3 -3
  36. data/lib/aspose_cells_cloud/models/conditional_formatting_value.rb +3 -3
  37. data/lib/aspose_cells_cloud/models/copy_options.rb +6 -6
  38. data/lib/aspose_cells_cloud/models/create_pivot_table_request.rb +7 -7
  39. data/lib/aspose_cells_cloud/models/custom_filter.rb +2 -2
  40. data/lib/aspose_cells_cloud/models/custom_parser_config.rb +2 -2
  41. data/lib/aspose_cells_cloud/models/data_bar.rb +12 -12
  42. data/lib/aspose_cells_cloud/models/data_bar_border.rb +2 -2
  43. data/lib/aspose_cells_cloud/models/data_labels.rb +13 -13
  44. data/lib/aspose_cells_cloud/models/data_sorter.rb +21 -9
  45. data/lib/aspose_cells_cloud/models/data_sorter_key.rb +270 -0
  46. data/lib/aspose_cells_cloud/models/date_time_group_item.rb +7 -7
  47. data/lib/aspose_cells_cloud/models/digital_signature.rb +8 -8
  48. data/lib/aspose_cells_cloud/models/display_unit_label.rb +1 -1
  49. data/lib/aspose_cells_cloud/models/drop_bars.rb +2 -2
  50. data/lib/aspose_cells_cloud/models/dynamic_filter.rb +3 -3
  51. data/lib/aspose_cells_cloud/models/error_bar.rb +6 -6
  52. data/lib/aspose_cells_cloud/models/fill_format.rb +6 -6
  53. data/lib/aspose_cells_cloud/models/filter_column.rb +3 -3
  54. data/lib/aspose_cells_cloud/models/floor.rb +1 -1
  55. data/lib/aspose_cells_cloud/models/font.rb +10 -10
  56. data/lib/aspose_cells_cloud/models/font_setting.rb +5 -5
  57. data/lib/aspose_cells_cloud/models/format_condition.rb +14 -14
  58. data/lib/aspose_cells_cloud/models/formula_format_condition.rb +3 -3
  59. data/lib/aspose_cells_cloud/models/formula_settings.rb +330 -0
  60. data/lib/aspose_cells_cloud/models/globalization_settings.rb +258 -0
  61. data/lib/aspose_cells_cloud/models/gradient_fill.rb +4 -4
  62. data/lib/aspose_cells_cloud/models/group_box.rb +1 -1
  63. data/lib/aspose_cells_cloud/models/horizontal_page_break.rb +3 -3
  64. data/lib/aspose_cells_cloud/models/html_save_options.rb +30 -30
  65. data/lib/aspose_cells_cloud/models/hyperlink.rb +5 -5
  66. data/lib/aspose_cells_cloud/models/icon_filter.rb +2 -2
  67. data/lib/aspose_cells_cloud/models/icon_set.rb +5 -5
  68. data/lib/aspose_cells_cloud/models/image_or_print_options.rb +8 -8
  69. data/lib/aspose_cells_cloud/models/image_save_options.rb +12 -12
  70. data/lib/aspose_cells_cloud/models/import_picture_option.rb +1 -1
  71. data/lib/aspose_cells_cloud/models/json_save_options.rb +4 -4
  72. data/lib/aspose_cells_cloud/models/label.rb +1 -1
  73. data/lib/aspose_cells_cloud/models/legend.rb +2 -2
  74. data/lib/aspose_cells_cloud/models/legend_entry.rb +4 -4
  75. data/lib/aspose_cells_cloud/models/line.rb +19 -19
  76. data/lib/aspose_cells_cloud/models/line_format.rb +11 -11
  77. data/lib/aspose_cells_cloud/models/line_shape.rb +6 -6
  78. data/lib/aspose_cells_cloud/models/list_box.rb +6 -6
  79. data/lib/aspose_cells_cloud/models/list_column.rb +20 -8
  80. data/lib/aspose_cells_cloud/models/list_object.rb +88 -16
  81. data/lib/aspose_cells_cloud/models/load_options.rb +8 -8
  82. data/lib/aspose_cells_cloud/models/m_html_save_options.rb +12 -12
  83. data/lib/aspose_cells_cloud/models/markdown_save_options.rb +3 -3
  84. data/lib/aspose_cells_cloud/models/marker.rb +4 -4
  85. data/lib/aspose_cells_cloud/models/match_condition_request.rb +2 -2
  86. data/lib/aspose_cells_cloud/models/name.rb +6 -6
  87. data/lib/aspose_cells_cloud/models/negative_bar_format.rb +4 -4
  88. data/lib/aspose_cells_cloud/models/ole_object.rb +7 -7
  89. data/lib/aspose_cells_cloud/models/ooxml_save_options.rb +5 -5
  90. data/lib/aspose_cells_cloud/models/page_setup.rb +34 -34
  91. data/lib/aspose_cells_cloud/models/password_request.rb +1 -1
  92. data/lib/aspose_cells_cloud/models/paste_options.rb +4 -4
  93. data/lib/aspose_cells_cloud/models/pattern_fill.rb +7 -7
  94. data/lib/aspose_cells_cloud/models/pdf_save_options.rb +19 -19
  95. data/lib/aspose_cells_cloud/models/pic_format_option.rb +6 -6
  96. data/lib/aspose_cells_cloud/models/picture.rb +5 -5
  97. data/lib/aspose_cells_cloud/models/pivot_globalization_settings.rb +198 -0
  98. data/lib/aspose_cells_cloud/models/pivot_table_field_request.rb +1 -1
  99. data/lib/aspose_cells_cloud/models/plot_area.rb +4 -4
  100. data/lib/aspose_cells_cloud/models/{protect_workbook_requst.rb → protect_workbook_request.rb} +18 -18
  101. data/lib/aspose_cells_cloud/models/protection.rb +17 -17
  102. data/lib/aspose_cells_cloud/models/query_table.rb +258 -0
  103. data/lib/aspose_cells_cloud/models/radio_button.rb +3 -3
  104. data/lib/aspose_cells_cloud/models/range.rb +9 -9
  105. data/lib/aspose_cells_cloud/models/range_copy_request.rb +4 -4
  106. data/lib/aspose_cells_cloud/models/range_set_outline_border_request.rb +4 -4
  107. data/lib/aspose_cells_cloud/models/range_set_style_request.rb +2 -2
  108. data/lib/aspose_cells_cloud/models/range_sort_request.rb +222 -0
  109. data/lib/aspose_cells_cloud/models/row.rb +7 -7
  110. data/lib/aspose_cells_cloud/models/save_options.rb +4 -4
  111. data/lib/aspose_cells_cloud/models/scroll_bar.rb +7 -7
  112. data/lib/aspose_cells_cloud/models/series.rb +47 -47
  113. data/lib/aspose_cells_cloud/models/shadow_effect.rb +7 -7
  114. data/lib/aspose_cells_cloud/models/shape.rb +36 -36
  115. data/lib/aspose_cells_cloud/models/solid_fill.rb +3 -3
  116. data/lib/aspose_cells_cloud/models/sparkline.rb +3 -3
  117. data/lib/aspose_cells_cloud/models/sparkline_group.rb +27 -27
  118. data/lib/aspose_cells_cloud/models/spinner.rb +5 -5
  119. data/lib/aspose_cells_cloud/models/split_result_response.rb +1 -1
  120. data/lib/aspose_cells_cloud/models/split_workbook_task_parameter.rb +3 -3
  121. data/lib/aspose_cells_cloud/models/sql_script_save_options.rb +14 -14
  122. data/lib/aspose_cells_cloud/models/style.rb +22 -22
  123. data/lib/aspose_cells_cloud/models/svg_save_options.rb +1 -1
  124. data/lib/aspose_cells_cloud/models/table_total_request.rb +3 -3
  125. data/lib/aspose_cells_cloud/models/text_format_condition.rb +1 -1
  126. data/lib/aspose_cells_cloud/models/text_water_marker_request.rb +4 -4
  127. data/lib/aspose_cells_cloud/models/texture_fill.rb +5 -5
  128. data/lib/aspose_cells_cloud/models/theme_color.rb +2 -2
  129. data/lib/aspose_cells_cloud/models/tick_labels.rb +11 -11
  130. data/lib/aspose_cells_cloud/models/tile_pic_option.rb +6 -6
  131. data/lib/aspose_cells_cloud/models/time_period_format_condition.rb +1 -1
  132. data/lib/aspose_cells_cloud/models/title.rb +2 -2
  133. data/lib/aspose_cells_cloud/models/top10.rb +3 -3
  134. data/lib/aspose_cells_cloud/models/top10_filter.rb +4 -4
  135. data/lib/aspose_cells_cloud/models/trendline.rb +12 -12
  136. data/lib/aspose_cells_cloud/models/txt_save_options.rb +4 -4
  137. data/lib/aspose_cells_cloud/models/validation.rb +16 -16
  138. data/lib/aspose_cells_cloud/models/vertical_page_break.rb +3 -3
  139. data/lib/aspose_cells_cloud/models/walls.rb +5 -5
  140. data/lib/aspose_cells_cloud/models/workbook.rb +4 -4
  141. data/lib/aspose_cells_cloud/models/workbook_protection_request.rb +1 -1
  142. data/lib/aspose_cells_cloud/models/workbook_settings.rb +263 -47
  143. data/lib/aspose_cells_cloud/models/worksheet.rb +29 -29
  144. data/lib/aspose_cells_cloud/models/worksheet_operate_parameter.rb +1 -1
  145. data/lib/aspose_cells_cloud/models/write_protection.rb +246 -0
  146. data/lib/aspose_cells_cloud/models/xml_data_binding.rb +210 -0
  147. data/lib/aspose_cells_cloud/models/xml_map.rb +234 -0
  148. data/lib/aspose_cells_cloud/requests/delete_un_protect_workbook_request.rb +9 -9
  149. data/lib/aspose_cells_cloud/requests/post_protect_request.rb +9 -9
  150. data/lib/aspose_cells_cloud/requests/post_protect_workbook_request.rb +9 -9
  151. data/lib/aspose_cells_cloud/requests/post_worksheet_cells_range_sort_request.rb +138 -0
  152. data/lib/aspose_cells_cloud/requests/{post_worksheet_cells_ranges_request.rb → post_worksheet_cells_ranges_copy_request.rb} +8 -8
  153. data/lib/aspose_cells_cloud/requests/post_worksheet_list_object_insert_slicer_request.rb +159 -0
  154. data/lib/aspose_cells_cloud/requests/post_worksheet_list_object_remove_duplicates_request.rb +137 -0
  155. data/lib/aspose_cells_cloud/version.rb +1 -1
  156. data/lib/aspose_cells_cloud.rb +28 -16
  157. data/spec/api/list_objects_controller_spec.rb +36 -0
  158. data/spec/api/pivot_tables_controller_spec.rb +3 -3
  159. data/spec/api/ranges_controller_spec.rb +24 -3
  160. data/spec/api/workbook_controller_spec.rb +3 -4
  161. data/spec/document/light_cells_spec.rb +17 -3
  162. data/spec/{onecase_spec.rb → one_case_spec.rb} +3 -5
  163. metadata +20 -8
  164. data/lib/aspose_cells_cloud/models/spreadsheet_m_l2003_save_options.rb +0 -330
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ca0c313c39a3b7d43e262ff2be26af211dfbe07158b2a291c65df27e2cc9f36
4
- data.tar.gz: fb7489269efdd4d5473ff97f02658586805b99bb32b6c90b4945d6e32a3b2860
3
+ metadata.gz: 91998862467426a5be69c44c53c18dd1ea7c1c0bd4bc1f59836e9232b727b672
4
+ data.tar.gz: afa939e4733b856177b4a989e4db861bb38c747f12833972759610c721ccaa84
5
5
  SHA512:
6
- metadata.gz: 1ca1006a6daa1a623e52d3449007910e518a3b71eb92abc1d2a625409fec709f658aa2d95fc9f4044e7fda35ce4fbfb2fc413371f9f201c41ccb605de83ea641
7
- data.tar.gz: 1ccd961c385a3b1e1ea8f0096e1d5d432173fa0b3a1bfda724104d385bfbaae1f48887bc99e781c64e505fd38a2cfe31a5435c6341524146356903b6725a82b6
6
+ metadata.gz: 3f9126adf2b2896a75d443da81768fc12dcbef0ec0b7df2236514c6ade92a70d57fb813ef8795dc48e8bd594b6ff1f80f4ee7493c0d73a42036d10cd37ccdc6d
7
+ data.tar.gz: 7e5c4700ebe2c34abb413acf8c9d8e9027ec266c3007a26285bc5bd45d1696c5fc02895cb12af1fe018c099a63be5655b164813c2ca2bc7b7cca8448263d8e1b
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020 Aspose Pty Ltd
3
+ Copyright (c) 2023 Aspose Pty Ltd
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -19,3 +19,6 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
+ --------------------------------------------------------------------------------------------------------------------
23
+
24
+ =end
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![Gem](https://img.shields.io/gem/v/aspose_cells_cloud) ![Gem](https://img.shields.io/gem/dt/aspose_cells_cloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-ruby)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-ruby/23.8)
1
+ ![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![Gem](https://img.shields.io/gem/v/aspose_cells_cloud) ![Gem](https://img.shields.io/gem/dt/aspose_cells_cloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-ruby)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-ruby/23.10)
2
2
 
3
3
 
4
4
  # Ruby SDK for Spreadsheet Processing in the Cloud
@@ -22,12 +22,14 @@ Ruby Cloud SDK wraps Aspose.Cells REST API so you could seamlessly integrate Mic
22
22
  - [Convert Excel files to popular formats](https://docs.aspose.cloud/cells/convert-excel-workbook-to-different-file-formats/).
23
23
 
24
24
 
25
- ## Feature & Enhancements in Version 23.8
25
+ ## Feature & Enhancements in Version 23.10
26
26
 
27
27
  Full list of issues covering all changes in this release:
28
28
 
29
- - Support to lock API.
30
- - Optimize protect API.
29
+ - Fix protect workbook request.
30
+ - Fix range copy API.
31
+ - Optimize workbook protect API.
32
+
31
33
 
32
34
  ## Read & Write Spreadsheet Formats
33
35
 
@@ -1149,6 +1149,22 @@ module AsposeCellsCloud
1149
1149
  return data
1150
1150
  end
1151
1151
 
1152
+ # Remove duplicates on list object.
1153
+
1154
+ def post_worksheet_list_object_remove_duplicates( post_worksheet_list_object_remove_duplicates_request, opts = {})
1155
+
1156
+ data, _status_code, _headers = post_worksheet_list_object_remove_duplicates_request.create_http_request(@api_client,opts )
1157
+ return data
1158
+ end
1159
+
1160
+ # Insert slicer for list object.
1161
+
1162
+ def post_worksheet_list_object_insert_slicer( post_worksheet_list_object_insert_slicer_request, opts = {})
1163
+
1164
+ data, _status_code, _headers = post_worksheet_list_object_insert_slicer_request.create_http_request(@api_client,opts )
1165
+ return data
1166
+ end
1167
+
1152
1168
  # Update list column properties.
1153
1169
 
1154
1170
  def post_worksheet_list_column( post_worksheet_list_column_request, opts = {})
@@ -1605,9 +1621,9 @@ module AsposeCellsCloud
1605
1621
 
1606
1622
  # Copys content to destination range from source range in worksheet.
1607
1623
 
1608
- def post_worksheet_cells_ranges( post_worksheet_cells_ranges_request, opts = {})
1624
+ def post_worksheet_cells_ranges_copy( post_worksheet_cells_ranges_copy_request, opts = {})
1609
1625
 
1610
- data, _status_code, _headers = post_worksheet_cells_ranges_request.create_http_request(@api_client,opts )
1626
+ data, _status_code, _headers = post_worksheet_cells_ranges_copy_request.create_http_request(@api_client,opts )
1611
1627
  return data
1612
1628
  end
1613
1629
 
@@ -1661,6 +1677,13 @@ module AsposeCellsCloud
1661
1677
  return data
1662
1678
  end
1663
1679
 
1680
+ # Sets outline border around a range of cells.
1681
+ def post_worksheet_cells_range_sort( post_worksheet_cells_range_sort_request, opts = {})
1682
+
1683
+ data, _status_code, _headers = post_worksheet_cells_range_sort_request.create_http_request(@api_client,opts )
1684
+ return data
1685
+ end
1686
+
1664
1687
  # Sets outline border around a range of cells.
1665
1688
 
1666
1689
  def post_worksheet_cells_range_outline_border( post_worksheet_cells_range_outline_border_request, opts = {})
@@ -31,11 +31,11 @@ require 'date'
31
31
  module AsposeCellsCloud
32
32
 
33
33
  class AboveAverage
34
- #Get or set the flag indicating whether the rule is an "above average" rule. 'true' indicates 'above average'. Default value is true.
34
+ #Get or set the flag indicating whether the rule is an "above average" rule. 'true' indicates 'above average'. Default value is true.
35
35
  attr_accessor :is_above_average
36
- #Get or set the flag indicating whether the 'aboveAverage' and 'belowAverage' criteria is inclusive of the average itself, or exclusive of that value. 'true' indicates to include the average value in the criteria. Default value is false.
36
+ #Get or set the flag indicating whether the 'aboveAverage' and 'belowAverage' criteria is inclusive of the average itself, or exclusive of that value. 'true' indicates to include the average value in the criteria. Default value is false.
37
37
  attr_accessor :is_equal_average
38
- #Get or set the number of standard deviations to include above or below the average in the conditional formatting rule. The input value must between 0 and 3 (include 0 and 3). Setting this value to 0 means stdDev is not set. The default value is 0.
38
+ #Get or set the number of standard deviations to include above or below the average in the conditional formatting rule. The input value must between 0 and 3 (include 0 and 3). Setting this value to 0 means stdDev is not set. The default value is 0.
39
39
  attr_accessor :std_dev
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -0,0 +1,234 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="AbstractCalculationEnginerb.cs">
4
+ Copyright (c) 2023 Aspose.Cells Cloud
5
+ </copyright>
6
+ <summary>
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
24
+ </summary>
25
+ --------------------------------------------------------------------------------------------------------------------
26
+ =end
27
+
28
+
29
+ require 'date'
30
+
31
+ module AsposeCellsCloud
32
+
33
+ class AbstractCalculationEngine
34
+ #Indicates whether this engine needs the literal text of parameter while doing calculation. Default value is false.
35
+ attr_accessor :is_param_literal_required
36
+ #Indicates whether this engine needs the parameter to be calculated in array mode. Default value is false. If is required when calculating custom functions, this property needs to be set as true.
37
+ attr_accessor :is_param_array_mode_required
38
+ #Whether built-in functions that have been supported by the built-in engine should be checked and processed by this implementation. Default is false. If user needs to change the calculation logic of some built-in functions, this property should be set as true. Otherwise please leave this property as false for performance consideration.
39
+ attr_accessor :process_built_in_functions
40
+
41
+ # Attribute mapping from ruby-style variable name to JSON key.
42
+ def self.attribute_map
43
+ {
44
+ :'is_param_literal_required' => :'IsParamLiteralRequired',
45
+ :'is_param_array_mode_required' => :'IsParamArrayModeRequired',
46
+ :'process_built_in_functions' => :'ProcessBuiltInFunctions'
47
+ }
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.swagger_types
52
+ {
53
+ :'is_param_literal_required' => :'BOOLEAN',
54
+ :'is_param_array_mode_required' => :'BOOLEAN',
55
+ :'process_built_in_functions' => :'BOOLEAN'
56
+ }
57
+ end
58
+
59
+ # Initializes the object
60
+ # @param [Hash] attributes Model attributes in the form of hash
61
+ def initialize(attributes = {})
62
+ return unless attributes.is_a?(Hash)
63
+
64
+ # convert string to symbol for hash key
65
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
66
+
67
+ if attributes.has_key?(:'IsParamLiteralRequired')
68
+ self.is_param_literal_required = attributes[:'IsParamLiteralRequired']
69
+ end
70
+ if attributes.has_key?(:'IsParamArrayModeRequired')
71
+ self.is_param_array_mode_required = attributes[:'IsParamArrayModeRequired']
72
+ end
73
+ if attributes.has_key?(:'ProcessBuiltInFunctions')
74
+ self.process_built_in_functions = attributes[:'ProcessBuiltInFunctions']
75
+ end
76
+
77
+ end
78
+
79
+ # Show invalid properties with the reasons. Usually used together with valid?
80
+ # @return Array for valid properies with the reasons
81
+ def list_invalid_properties
82
+ invalid_properties = Array.new
83
+ if @is_param_literal_required.nil?
84
+ invalid_properties.push("invalid value for 'is_param_literal_required', is_param_literal_required cannot be nil.")
85
+ end
86
+ if @is_param_array_mode_required.nil?
87
+ invalid_properties.push("invalid value for 'is_param_array_mode_required', is_param_array_mode_required cannot be nil.")
88
+ end
89
+ if @process_built_in_functions.nil?
90
+ invalid_properties.push("invalid value for 'process_built_in_functions', process_built_in_functions cannot be nil.")
91
+ end
92
+
93
+ return invalid_properties
94
+ end
95
+
96
+ # Check to see if the all the properties in the model are valid
97
+ # @return true if the model is valid
98
+ def valid?
99
+ return false if @is_param_literal_required.nil?
100
+ return false if @is_param_array_mode_required.nil?
101
+ return false if @process_built_in_functions.nil?
102
+ return true
103
+ end
104
+
105
+ # Checks equality by comparing each attribute.
106
+ # @param [Object] Object to be compared
107
+ def ==(o)
108
+ return true if self.equal?(o)
109
+ self.class == o.class &&
110
+ is_param_literal_required == o.is_param_literal_required &&
111
+ is_param_array_mode_required == o.is_param_array_mode_required &&
112
+ process_built_in_functions == o.process_built_in_functions
113
+ std_dev == o.std_dev
114
+ end
115
+
116
+ # @see the `==` method
117
+ # @param [Object] Object to be compared
118
+ def eql?(o)
119
+ self == o
120
+ end
121
+
122
+ # Calculates hash code according to all attributes.
123
+ # @return [Fixnum] Hash code
124
+ def hash
125
+ [ is_param_literal_required , is_param_array_mode_required , process_built_in_functions ].hash
126
+ end
127
+
128
+ # Builds the object from hash
129
+ # @param [Hash] attributes Model attributes in the form of hash
130
+ # @return [Object] Returns the model itself
131
+ def build_from_hash(attributes)
132
+ return nil unless attributes.is_a?(Hash)
133
+ self.class.swagger_types.each_pair do |key, type|
134
+ if type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the the attribute
136
+ # is documented as an array but the input is not
137
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
138
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
139
+ end
140
+ elsif !attributes[self.class.attribute_map[key]].nil?
141
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
142
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
143
+ end
144
+
145
+ self
146
+ end
147
+
148
+ # Deserializes the data based on type
149
+ # @param string type Data type
150
+ # @param string value Value to be deserialized
151
+ # @return [Object] Deserialized data
152
+ def _deserialize(type, value)
153
+ case type.to_sym
154
+ when :DateTime
155
+ DateTime.parse(value)
156
+ when :Date
157
+ Date.parse(value)
158
+ when :String
159
+ value.to_s
160
+ when :Integer
161
+ value.to_i
162
+ when :Float
163
+ value.to_f
164
+ when :BOOLEAN
165
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
166
+ true
167
+ else
168
+ false
169
+ end
170
+ when :Object
171
+ # generic object (usually a Hash), return directly
172
+ value
173
+ when /\AArray<(?<inner_type>.+)>\z/
174
+ inner_type = Regexp.last_match[:inner_type]
175
+ value.map { |v| _deserialize(inner_type, v) }
176
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
177
+ k_type = Regexp.last_match[:k_type]
178
+ v_type = Regexp.last_match[:v_type]
179
+ {}.tap do |hash|
180
+ value.each do |k, v|
181
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
182
+ end
183
+ end
184
+ else # model
185
+ temp_model = AsposeCellsCloud.const_get(type).new
186
+ temp_model.build_from_hash(value)
187
+ end
188
+ end
189
+
190
+ # Returns the string representation of the object
191
+ # @return [String] String presentation of the object
192
+ def to_s
193
+ to_hash.to_s
194
+ end
195
+
196
+ # to_body is an alias to to_hash (backward compatibility)
197
+ # @return [Hash] Returns the object in the form of hash
198
+ def to_body
199
+ to_hash
200
+ end
201
+
202
+ # Returns the object in the form of hash
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_hash
205
+ hash = {}
206
+ self.class.attribute_map.each_pair do |attr, param|
207
+ value = self.send(attr)
208
+ next if value.nil?
209
+ hash[param] = _to_hash(value)
210
+ end
211
+ hash
212
+ end
213
+
214
+ # Outputs non-array value in the form of hash
215
+ # For object, use to_hash. Otherwise, just return the value
216
+ # @param [Object] value Any valid value
217
+ # @return [Hash] Returns the value in the form of hash
218
+ def _to_hash(value)
219
+ if value.is_a?(Array)
220
+ value.compact.map{ |v| _to_hash(v) }
221
+ elsif value.is_a?(Hash)
222
+ {}.tap do |hash|
223
+ value.each { |k, v| hash[k] = _to_hash(v) }
224
+ end
225
+ elsif value.respond_to? :to_hash
226
+ value.to_hash
227
+ else
228
+ value
229
+ end
230
+ end
231
+
232
+ end
233
+
234
+ end
@@ -1,6 +1,6 @@
1
1
  =begin
2
2
  --------------------------------------------------------------------------------------------------------------------
3
- <copyright company="Aspose" file="BarcodeResponserb.cs">
3
+ <copyright company="Aspose" file="AbstractCalculationMonitorrb.cs">
4
4
  Copyright (c) 2023 Aspose.Cells Cloud
5
5
  </copyright>
6
6
  <summary>
@@ -30,33 +30,29 @@ require 'date'
30
30
 
31
31
  module AsposeCellsCloud
32
32
 
33
- class BarcodeResponse
34
- #Gets or sets barcode data.
35
- attr_accessor :barcode_value
36
- #Gets or sets type of the barcode.
37
- attr_accessor :barcode_type
38
- #Gets or sets region with barcode.
39
- attr_accessor :region
40
- #Gets or sets checksum of barcode.
41
- attr_accessor :checksum
33
+ class AbstractCalculationMonitor
34
+ #Gets the old value of the calculated cell. Should be used only in and .
35
+ attr_accessor :original_value
36
+ #Whether the cell's value has been changed after the calculation. Should be used only in .
37
+ attr_accessor :value_changed
38
+ #Gets the newly calculated value of the cell. Should be used only in .
39
+ attr_accessor :calculated_value
42
40
 
43
41
  # Attribute mapping from ruby-style variable name to JSON key.
44
42
  def self.attribute_map
45
43
  {
46
- :'barcode_value' => :'BarcodeValue',
47
- :'barcode_type' => :'BarcodeType',
48
- :'region' => :'Region',
49
- :'checksum' => :'Checksum'
44
+ :'original_value' => :'OriginalValue',
45
+ :'value_changed' => :'ValueChanged',
46
+ :'calculated_value' => :'CalculatedValue'
50
47
  }
51
48
  end
52
49
 
53
50
  # Attribute type mapping.
54
51
  def self.swagger_types
55
52
  {
56
- :'barcode_value' => :'String',
57
- :'barcode_type' => :'String',
58
- :'region' => :'Array<Point>',
59
- :'checksum' => :'String'
53
+ :'original_value' => :'Object',
54
+ :'value_changed' => :'BOOLEAN',
55
+ :'calculated_value' => :'Object'
60
56
  }
61
57
  end
62
58
 
@@ -68,17 +64,14 @@ module AsposeCellsCloud
68
64
  # convert string to symbol for hash key
69
65
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
70
66
 
71
- if attributes.has_key?(:'BarcodeValue')
72
- self.barcode_value = attributes[:'BarcodeValue']
67
+ if attributes.has_key?(:'OriginalValue')
68
+ self.original_value = attributes[:'OriginalValue']
73
69
  end
74
- if attributes.has_key?(:'BarcodeType')
75
- self.barcode_type = attributes[:'BarcodeType']
70
+ if attributes.has_key?(:'ValueChanged')
71
+ self.value_changed = attributes[:'ValueChanged']
76
72
  end
77
- if attributes.has_key?(:'Region')
78
- self.region = attributes[:'Region']
79
- end
80
- if attributes.has_key?(:'Checksum')
81
- self.checksum = attributes[:'Checksum']
73
+ if attributes.has_key?(:'CalculatedValue')
74
+ self.calculated_value = attributes[:'CalculatedValue']
82
75
  end
83
76
 
84
77
  end
@@ -87,17 +80,14 @@ module AsposeCellsCloud
87
80
  # @return Array for valid properies with the reasons
88
81
  def list_invalid_properties
89
82
  invalid_properties = Array.new
90
- if @barcode_value.nil?
91
- invalid_properties.push("invalid value for 'barcode_value', barcode_value cannot be nil.")
92
- end
93
- if @barcode_type.nil?
94
- invalid_properties.push("invalid value for 'barcode_type', barcode_type cannot be nil.")
83
+ if @original_value.nil?
84
+ invalid_properties.push("invalid value for 'original_value', original_value cannot be nil.")
95
85
  end
96
- if @region.nil?
97
- invalid_properties.push("invalid value for 'region', region cannot be nil.")
86
+ if @value_changed.nil?
87
+ invalid_properties.push("invalid value for 'value_changed', value_changed cannot be nil.")
98
88
  end
99
- if @checksum.nil?
100
- invalid_properties.push("invalid value for 'checksum', checksum cannot be nil.")
89
+ if @calculated_value.nil?
90
+ invalid_properties.push("invalid value for 'calculated_value', calculated_value cannot be nil.")
101
91
  end
102
92
 
103
93
  return invalid_properties
@@ -106,10 +96,9 @@ module AsposeCellsCloud
106
96
  # Check to see if the all the properties in the model are valid
107
97
  # @return true if the model is valid
108
98
  def valid?
109
- return false if @barcode_value.nil?
110
- return false if @barcode_type.nil?
111
- return false if @region.nil?
112
- return false if @checksum.nil?
99
+ return false if @original_value.nil?
100
+ return false if @value_changed.nil?
101
+ return false if @calculated_value.nil?
113
102
  return true
114
103
  end
115
104
 
@@ -118,10 +107,9 @@ module AsposeCellsCloud
118
107
  def ==(o)
119
108
  return true if self.equal?(o)
120
109
  self.class == o.class &&
121
- barcode_value == o.barcode_value &&
122
- barcode_type == o.barcode_type &&
123
- region == o.region &&
124
- checksum == o.checksum
110
+ original_value == o.original_value &&
111
+ value_changed == o.value_changed &&
112
+ calculated_value == o.calculated_value
125
113
  std_dev == o.std_dev
126
114
  end
127
115
 
@@ -134,7 +122,7 @@ module AsposeCellsCloud
134
122
  # Calculates hash code according to all attributes.
135
123
  # @return [Fixnum] Hash code
136
124
  def hash
137
- [ barcode_value , barcode_type , region , checksum ].hash
125
+ [ original_value , value_changed , calculated_value ].hash
138
126
  end
139
127
 
140
128
  # Builds the object from hash
@@ -31,17 +31,17 @@ require 'date'
31
31
  module AsposeCellsCloud
32
32
 
33
33
  class ArcShape
34
- #
34
+ #Gets and sets the begin arrow head length of the line.
35
35
  attr_accessor :begin_arrowhead_length
36
- #
36
+ #Gets and sets the begin arrow head style of the line.
37
37
  attr_accessor :begin_arrowhead_style
38
- #
38
+ #Gets and sets the begin arrow head width of the line.
39
39
  attr_accessor :begin_arrowhead_width
40
- #
40
+ #Gets and sets the end arrow head length of the line.
41
41
  attr_accessor :end_arrowhead_length
42
- #
42
+ #Gets and sets the end arrow head style of the line.
43
43
  attr_accessor :end_arrowhead_style
44
- #
44
+ #Gets and sets the end arrow head width of the line.
45
45
  attr_accessor :end_arrowhead_width
46
46
  #
47
47
  attr_accessor :name
@@ -31,17 +31,17 @@ require 'date'
31
31
  module AsposeCellsCloud
32
32
 
33
33
  class Area
34
- #
34
+ #Gets or sets the background of the .
35
35
  attr_accessor :background_color
36
- #
36
+ #Represents a object that contains fill formatting properties for the specified chart or shape.
37
37
  attr_accessor :fill_format
38
- #
38
+ #Gets or sets the foreground .
39
39
  attr_accessor :foreground_color
40
40
  #
41
41
  attr_accessor :format
42
- #
42
+ #If the property is true and the value of chart point is a negative number, the foreground color and background color will be exchanged.
43
43
  attr_accessor :invert_if_negative
44
- #
44
+ #Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear).
45
45
  attr_accessor :transparency
46
46
 
47
47
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -31,13 +31,13 @@ require 'date'
31
31
  module AsposeCellsCloud
32
32
 
33
33
  class AutoFilter
34
- #
34
+ #Gets the collection of the filter columns.
35
35
  attr_accessor :filter_columns
36
- #
36
+ #Represents the range to which the specified AutoFilter applies.
37
37
  attr_accessor :range
38
- #
38
+ #Gets the data sorter.
39
39
  attr_accessor :sorter
40
- #
40
+ #Indicates whether the AutoFilter button for this column is visible.
41
41
  attr_accessor :show_filter_button
42
42
  #
43
43
  attr_accessor :link