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
@@ -31,17 +31,17 @@ require 'date'
31
31
  module AsposeCellsCloud
32
32
 
33
33
  class Picture
34
- #
34
+ #Represents the of the border line of a picture.
35
35
  attr_accessor :border_line_color
36
- #
36
+ #Gets or sets the weight of the border line of a picture in units of pt.
37
37
  attr_accessor :border_weight
38
- #
38
+ #Gets the original height of the picture.
39
39
  attr_accessor :original_height
40
- #
40
+ #Gets the original width of the picture.
41
41
  attr_accessor :original_width
42
42
  #
43
43
  attr_accessor :image_format
44
- #
44
+ #Gets or sets the path and name of the source file for the linked image.
45
45
  attr_accessor :source_full_name
46
46
  #
47
47
  attr_accessor :name
@@ -0,0 +1,198 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="PivotGlobalizationSettingsrb.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 PivotGlobalizationSettings
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ def self.attribute_map
37
+ {
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.swagger_types
43
+ {
44
+ }
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ return unless attributes.is_a?(Hash)
51
+
52
+ # convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
54
+
55
+
56
+ end
57
+
58
+ # Show invalid properties with the reasons. Usually used together with valid?
59
+ # @return Array for valid properies with the reasons
60
+ def list_invalid_properties
61
+ invalid_properties = Array.new
62
+
63
+ return invalid_properties
64
+ end
65
+
66
+ # Check to see if the all the properties in the model are valid
67
+ # @return true if the model is valid
68
+ def valid?
69
+ return true
70
+ end
71
+
72
+ # Checks equality by comparing each attribute.
73
+ # @param [Object] Object to be compared
74
+ def ==(o)
75
+ return true if self.equal?(o)
76
+ self.class == o.class &&
77
+ std_dev == o.std_dev
78
+ end
79
+
80
+ # @see the `==` method
81
+ # @param [Object] Object to be compared
82
+ def eql?(o)
83
+ self == o
84
+ end
85
+
86
+ # Calculates hash code according to all attributes.
87
+ # @return [Fixnum] Hash code
88
+ def hash
89
+ [ ].hash
90
+ end
91
+
92
+ # Builds the object from hash
93
+ # @param [Hash] attributes Model attributes in the form of hash
94
+ # @return [Object] Returns the model itself
95
+ def build_from_hash(attributes)
96
+ return nil unless attributes.is_a?(Hash)
97
+ self.class.swagger_types.each_pair do |key, type|
98
+ if type =~ /\AArray<(.*)>/i
99
+ # check to ensure the input is an array given that the the attribute
100
+ # is documented as an array but the input is not
101
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
102
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
103
+ end
104
+ elsif !attributes[self.class.attribute_map[key]].nil?
105
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
106
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
107
+ end
108
+
109
+ self
110
+ end
111
+
112
+ # Deserializes the data based on type
113
+ # @param string type Data type
114
+ # @param string value Value to be deserialized
115
+ # @return [Object] Deserialized data
116
+ def _deserialize(type, value)
117
+ case type.to_sym
118
+ when :DateTime
119
+ DateTime.parse(value)
120
+ when :Date
121
+ Date.parse(value)
122
+ when :String
123
+ value.to_s
124
+ when :Integer
125
+ value.to_i
126
+ when :Float
127
+ value.to_f
128
+ when :BOOLEAN
129
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
130
+ true
131
+ else
132
+ false
133
+ end
134
+ when :Object
135
+ # generic object (usually a Hash), return directly
136
+ value
137
+ when /\AArray<(?<inner_type>.+)>\z/
138
+ inner_type = Regexp.last_match[:inner_type]
139
+ value.map { |v| _deserialize(inner_type, v) }
140
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
141
+ k_type = Regexp.last_match[:k_type]
142
+ v_type = Regexp.last_match[:v_type]
143
+ {}.tap do |hash|
144
+ value.each do |k, v|
145
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
146
+ end
147
+ end
148
+ else # model
149
+ temp_model = AsposeCellsCloud.const_get(type).new
150
+ temp_model.build_from_hash(value)
151
+ end
152
+ end
153
+
154
+ # Returns the string representation of the object
155
+ # @return [String] String presentation of the object
156
+ def to_s
157
+ to_hash.to_s
158
+ end
159
+
160
+ # to_body is an alias to to_hash (backward compatibility)
161
+ # @return [Hash] Returns the object in the form of hash
162
+ def to_body
163
+ to_hash
164
+ end
165
+
166
+ # Returns the object in the form of hash
167
+ # @return [Hash] Returns the object in the form of hash
168
+ def to_hash
169
+ hash = {}
170
+ self.class.attribute_map.each_pair do |attr, param|
171
+ value = self.send(attr)
172
+ next if value.nil?
173
+ hash[param] = _to_hash(value)
174
+ end
175
+ hash
176
+ end
177
+
178
+ # Outputs non-array value in the form of hash
179
+ # For object, use to_hash. Otherwise, just return the value
180
+ # @param [Object] value Any valid value
181
+ # @return [Hash] Returns the value in the form of hash
182
+ def _to_hash(value)
183
+ if value.is_a?(Array)
184
+ value.compact.map{ |v| _to_hash(v) }
185
+ elsif value.is_a?(Hash)
186
+ {}.tap do |hash|
187
+ value.each { |k, v| hash[k] = _to_hash(v) }
188
+ end
189
+ elsif value.respond_to? :to_hash
190
+ value.to_hash
191
+ else
192
+ value
193
+ end
194
+ end
195
+
196
+ end
197
+
198
+ end
@@ -31,7 +31,7 @@ require 'date'
31
31
  module AsposeCellsCloud
32
32
 
33
33
  class PivotTableFieldRequest
34
- #
34
+ #Intdex array.
35
35
  attr_accessor :data
36
36
 
37
37
  # 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 PlotArea
34
- #
34
+ #Gets or sets the height of plot area in units of 1/4000 of the chart area.
35
35
  attr_accessor :inner_height
36
- #
36
+ #Gets or sets the width of plot area in units of 1/4000 of the chart area.
37
37
  attr_accessor :inner_width
38
- #
38
+ #Gets or gets the x coordinate of the upper top corner of plot area in units of 1/4000 of the chart area.
39
39
  attr_accessor :inner_x
40
- #
40
+ #Gets or gets the x coordinate of the upper top corner of plot area in units of 1/4000 of the chart area.
41
41
  attr_accessor :inner_y
42
42
  #
43
43
  attr_accessor :area
@@ -1,6 +1,6 @@
1
1
  =begin
2
2
  --------------------------------------------------------------------------------------------------------------------
3
- <copyright company="Aspose" file="ProtectWorkbookRequstrb.cs">
3
+ <copyright company="Aspose" file="ProtectWorkbookRequestrb.cs">
4
4
  Copyright (c) 2023 Aspose.Cells Cloud
5
5
  </copyright>
6
6
  <summary>
@@ -30,24 +30,24 @@ require 'date'
30
30
 
31
31
  module AsposeCellsCloud
32
32
 
33
- class ProtectWorkbookRequst
34
- #
35
- attr_accessor :aways_open_only_ready
36
- #
33
+ class ProtectWorkbookRequest
34
+ #Indicates aways open read-only.
35
+ attr_accessor :aways_open_read_only
36
+ #Indicates encrypt with password.
37
37
  attr_accessor :encrypt_with_password
38
- #
38
+ #Represents the various types of protection options available for a worksheet.
39
39
  attr_accessor :protect_current_sheet
40
- #
40
+ #Indicates protect workbook structure. All, Contents, Objects, Scenarios, Structure, Windows, and None.
41
41
  attr_accessor :protect_workbook_structure
42
- #
42
+ #Indicates signature in file.
43
43
  attr_accessor :digital_signature
44
- #
44
+ #Indicates mark as final.
45
45
  attr_accessor :mark_as_final
46
46
 
47
47
  # Attribute mapping from ruby-style variable name to JSON key.
48
48
  def self.attribute_map
49
49
  {
50
- :'aways_open_only_ready' => :'AwaysOpenOnlyReady',
50
+ :'aways_open_read_only' => :'AwaysOpenReadOnly',
51
51
  :'encrypt_with_password' => :'EncryptWithPassword',
52
52
  :'protect_current_sheet' => :'ProtectCurrentSheet',
53
53
  :'protect_workbook_structure' => :'ProtectWorkbookStructure',
@@ -59,7 +59,7 @@ module AsposeCellsCloud
59
59
  # Attribute type mapping.
60
60
  def self.swagger_types
61
61
  {
62
- :'aways_open_only_ready' => :'BOOLEAN',
62
+ :'aways_open_read_only' => :'BOOLEAN',
63
63
  :'encrypt_with_password' => :'String',
64
64
  :'protect_current_sheet' => :'Protection',
65
65
  :'protect_workbook_structure' => :'String',
@@ -76,8 +76,8 @@ module AsposeCellsCloud
76
76
  # convert string to symbol for hash key
77
77
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
78
78
 
79
- if attributes.has_key?(:'AwaysOpenOnlyReady')
80
- self.aways_open_only_ready = attributes[:'AwaysOpenOnlyReady']
79
+ if attributes.has_key?(:'AwaysOpenReadOnly')
80
+ self.aways_open_read_only = attributes[:'AwaysOpenReadOnly']
81
81
  end
82
82
  if attributes.has_key?(:'EncryptWithPassword')
83
83
  self.encrypt_with_password = attributes[:'EncryptWithPassword']
@@ -101,8 +101,8 @@ module AsposeCellsCloud
101
101
  # @return Array for valid properies with the reasons
102
102
  def list_invalid_properties
103
103
  invalid_properties = Array.new
104
- if @aways_open_only_ready.nil?
105
- invalid_properties.push("invalid value for 'aways_open_only_ready', aways_open_only_ready cannot be nil.")
104
+ if @aways_open_read_only.nil?
105
+ invalid_properties.push("invalid value for 'aways_open_read_only', aways_open_read_only cannot be nil.")
106
106
  end
107
107
  if @encrypt_with_password.nil?
108
108
  invalid_properties.push("invalid value for 'encrypt_with_password', encrypt_with_password cannot be nil.")
@@ -126,7 +126,7 @@ module AsposeCellsCloud
126
126
  # Check to see if the all the properties in the model are valid
127
127
  # @return true if the model is valid
128
128
  def valid?
129
- return false if @aways_open_only_ready.nil?
129
+ return false if @aways_open_read_only.nil?
130
130
  return false if @encrypt_with_password.nil?
131
131
  return false if @protect_current_sheet.nil?
132
132
  return false if @protect_workbook_structure.nil?
@@ -140,7 +140,7 @@ module AsposeCellsCloud
140
140
  def ==(o)
141
141
  return true if self.equal?(o)
142
142
  self.class == o.class &&
143
- aways_open_only_ready == o.aways_open_only_ready &&
143
+ aways_open_read_only == o.aways_open_read_only &&
144
144
  encrypt_with_password == o.encrypt_with_password &&
145
145
  protect_current_sheet == o.protect_current_sheet &&
146
146
  protect_workbook_structure == o.protect_workbook_structure &&
@@ -158,7 +158,7 @@ module AsposeCellsCloud
158
158
  # Calculates hash code according to all attributes.
159
159
  # @return [Fixnum] Hash code
160
160
  def hash
161
- [ aways_open_only_ready , encrypt_with_password , protect_current_sheet , protect_workbook_structure , digital_signature , mark_as_final ].hash
161
+ [ aways_open_read_only , encrypt_with_password , protect_current_sheet , protect_workbook_structure , digital_signature , mark_as_final ].hash
162
162
  end
163
163
 
164
164
  # Builds the object from hash
@@ -31,39 +31,39 @@ require 'date'
31
31
  module AsposeCellsCloud
32
32
 
33
33
  class Protection
34
- #
34
+ #Represents if the deletion of columns is allowed on a protected worksheet.
35
35
  attr_accessor :allow_deleting_column
36
- #
36
+ #Represents if the deletion of rows is allowed on a protected worksheet.
37
37
  attr_accessor :allow_deleting_row
38
- #
38
+ #Represents if the user is allowed to make use of an AutoFilter that was created before the sheet was protected.
39
39
  attr_accessor :allow_filtering
40
- #
40
+ #Represents if the formatting of cells is allowed on a protected worksheet.
41
41
  attr_accessor :allow_formatting_cell
42
- #
42
+ #Represents if the formatting of columns is allowed on a protected worksheet
43
43
  attr_accessor :allow_formatting_column
44
- #
44
+ #Represents if the formatting of rows is allowed on a protected worksheet
45
45
  attr_accessor :allow_formatting_row
46
- #
46
+ #Represents if the insertion of columns is allowed on a protected worksheet
47
47
  attr_accessor :allow_inserting_column
48
- #
48
+ #Represents if the insertion of hyperlinks is allowed on a protected worksheet
49
49
  attr_accessor :allow_inserting_hyperlink
50
- #
50
+ #Represents if the insertion of rows is allowed on a protected worksheet
51
51
  attr_accessor :allow_inserting_row
52
- #
52
+ #Represents if the sorting option is allowed on a protected worksheet.
53
53
  attr_accessor :allow_sorting
54
- #
54
+ #Represents if the user is allowed to manipulate pivot tables on a protected worksheet.
55
55
  attr_accessor :allow_using_pivot_table
56
- #
56
+ #Represents if the user is allowed to edit contents of locked cells on a protected worksheet.
57
57
  attr_accessor :allow_editing_content
58
- #
58
+ #Represents if the user is allowed to manipulate drawing objects on a protected worksheet.
59
59
  attr_accessor :allow_editing_object
60
- #
60
+ #Represents if the user is allowed to edit scenarios on a protected worksheet.
61
61
  attr_accessor :allow_editing_scenario
62
- #
62
+ #Represents the password to protect the worksheet.
63
63
  attr_accessor :password
64
- #
64
+ #Represents if the user is allowed to select locked cells on a protected worksheet.
65
65
  attr_accessor :allow_selecting_locked_cell
66
- #
66
+ #Represents if the user is allowed to select unlocked cells on a protected worksheet.
67
67
  attr_accessor :allow_selecting_unlocked_cell
68
68
 
69
69
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -0,0 +1,258 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="QueryTablerb.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 QueryTable
34
+ #Gets the connection id of the query table.
35
+ attr_accessor :connection_id
36
+ #Gets the name of querytable.
37
+ attr_accessor :name
38
+ #Gets the range of the result.
39
+ attr_accessor :result_range
40
+ #Returns or sets the PreserveFormatting of the object.
41
+ attr_accessor :preserve_formatting
42
+ #Returns or sets the AdjustColumnWidth of the object.
43
+ attr_accessor :adjust_column_width
44
+
45
+ # Attribute mapping from ruby-style variable name to JSON key.
46
+ def self.attribute_map
47
+ {
48
+ :'connection_id' => :'ConnectionId',
49
+ :'name' => :'Name',
50
+ :'result_range' => :'ResultRange',
51
+ :'preserve_formatting' => :'PreserveFormatting',
52
+ :'adjust_column_width' => :'AdjustColumnWidth'
53
+ }
54
+ end
55
+
56
+ # Attribute type mapping.
57
+ def self.swagger_types
58
+ {
59
+ :'connection_id' => :'Integer',
60
+ :'name' => :'String',
61
+ :'result_range' => :'Range',
62
+ :'preserve_formatting' => :'BOOLEAN',
63
+ :'adjust_column_width' => :'BOOLEAN'
64
+ }
65
+ end
66
+
67
+ # Initializes the object
68
+ # @param [Hash] attributes Model attributes in the form of hash
69
+ def initialize(attributes = {})
70
+ return unless attributes.is_a?(Hash)
71
+
72
+ # convert string to symbol for hash key
73
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
74
+
75
+ if attributes.has_key?(:'ConnectionId')
76
+ self.connection_id = attributes[:'ConnectionId']
77
+ end
78
+ if attributes.has_key?(:'Name')
79
+ self.name = attributes[:'Name']
80
+ end
81
+ if attributes.has_key?(:'ResultRange')
82
+ self.result_range = attributes[:'ResultRange']
83
+ end
84
+ if attributes.has_key?(:'PreserveFormatting')
85
+ self.preserve_formatting = attributes[:'PreserveFormatting']
86
+ end
87
+ if attributes.has_key?(:'AdjustColumnWidth')
88
+ self.adjust_column_width = attributes[:'AdjustColumnWidth']
89
+ end
90
+
91
+ end
92
+
93
+ # Show invalid properties with the reasons. Usually used together with valid?
94
+ # @return Array for valid properies with the reasons
95
+ def list_invalid_properties
96
+ invalid_properties = Array.new
97
+ if @connection_id.nil?
98
+ invalid_properties.push("invalid value for 'connection_id', connection_id cannot be nil.")
99
+ end
100
+ if @name.nil?
101
+ invalid_properties.push("invalid value for 'name', name cannot be nil.")
102
+ end
103
+ if @result_range.nil?
104
+ invalid_properties.push("invalid value for 'result_range', result_range cannot be nil.")
105
+ end
106
+ if @preserve_formatting.nil?
107
+ invalid_properties.push("invalid value for 'preserve_formatting', preserve_formatting cannot be nil.")
108
+ end
109
+ if @adjust_column_width.nil?
110
+ invalid_properties.push("invalid value for 'adjust_column_width', adjust_column_width cannot be nil.")
111
+ end
112
+
113
+ return invalid_properties
114
+ end
115
+
116
+ # Check to see if the all the properties in the model are valid
117
+ # @return true if the model is valid
118
+ def valid?
119
+ return false if @connection_id.nil?
120
+ return false if @name.nil?
121
+ return false if @result_range.nil?
122
+ return false if @preserve_formatting.nil?
123
+ return false if @adjust_column_width.nil?
124
+ return true
125
+ end
126
+
127
+ # Checks equality by comparing each attribute.
128
+ # @param [Object] Object to be compared
129
+ def ==(o)
130
+ return true if self.equal?(o)
131
+ self.class == o.class &&
132
+ connection_id == o.connection_id &&
133
+ name == o.name &&
134
+ result_range == o.result_range &&
135
+ preserve_formatting == o.preserve_formatting &&
136
+ adjust_column_width == o.adjust_column_width
137
+ std_dev == o.std_dev
138
+ end
139
+
140
+ # @see the `==` method
141
+ # @param [Object] Object to be compared
142
+ def eql?(o)
143
+ self == o
144
+ end
145
+
146
+ # Calculates hash code according to all attributes.
147
+ # @return [Fixnum] Hash code
148
+ def hash
149
+ [ connection_id , name , result_range , preserve_formatting , adjust_column_width ].hash
150
+ end
151
+
152
+ # Builds the object from hash
153
+ # @param [Hash] attributes Model attributes in the form of hash
154
+ # @return [Object] Returns the model itself
155
+ def build_from_hash(attributes)
156
+ return nil unless attributes.is_a?(Hash)
157
+ self.class.swagger_types.each_pair do |key, type|
158
+ if type =~ /\AArray<(.*)>/i
159
+ # check to ensure the input is an array given that the the attribute
160
+ # is documented as an array but the input is not
161
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
162
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
163
+ end
164
+ elsif !attributes[self.class.attribute_map[key]].nil?
165
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
166
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
167
+ end
168
+
169
+ self
170
+ end
171
+
172
+ # Deserializes the data based on type
173
+ # @param string type Data type
174
+ # @param string value Value to be deserialized
175
+ # @return [Object] Deserialized data
176
+ def _deserialize(type, value)
177
+ case type.to_sym
178
+ when :DateTime
179
+ DateTime.parse(value)
180
+ when :Date
181
+ Date.parse(value)
182
+ when :String
183
+ value.to_s
184
+ when :Integer
185
+ value.to_i
186
+ when :Float
187
+ value.to_f
188
+ when :BOOLEAN
189
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
190
+ true
191
+ else
192
+ false
193
+ end
194
+ when :Object
195
+ # generic object (usually a Hash), return directly
196
+ value
197
+ when /\AArray<(?<inner_type>.+)>\z/
198
+ inner_type = Regexp.last_match[:inner_type]
199
+ value.map { |v| _deserialize(inner_type, v) }
200
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
201
+ k_type = Regexp.last_match[:k_type]
202
+ v_type = Regexp.last_match[:v_type]
203
+ {}.tap do |hash|
204
+ value.each do |k, v|
205
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
206
+ end
207
+ end
208
+ else # model
209
+ temp_model = AsposeCellsCloud.const_get(type).new
210
+ temp_model.build_from_hash(value)
211
+ end
212
+ end
213
+
214
+ # Returns the string representation of the object
215
+ # @return [String] String presentation of the object
216
+ def to_s
217
+ to_hash.to_s
218
+ end
219
+
220
+ # to_body is an alias to to_hash (backward compatibility)
221
+ # @return [Hash] Returns the object in the form of hash
222
+ def to_body
223
+ to_hash
224
+ end
225
+
226
+ # Returns the object in the form of hash
227
+ # @return [Hash] Returns the object in the form of hash
228
+ def to_hash
229
+ hash = {}
230
+ self.class.attribute_map.each_pair do |attr, param|
231
+ value = self.send(attr)
232
+ next if value.nil?
233
+ hash[param] = _to_hash(value)
234
+ end
235
+ hash
236
+ end
237
+
238
+ # Outputs non-array value in the form of hash
239
+ # For object, use to_hash. Otherwise, just return the value
240
+ # @param [Object] value Any valid value
241
+ # @return [Hash] Returns the value in the form of hash
242
+ def _to_hash(value)
243
+ if value.is_a?(Array)
244
+ value.compact.map{ |v| _to_hash(v) }
245
+ elsif value.is_a?(Hash)
246
+ {}.tap do |hash|
247
+ value.each { |k, v| hash[k] = _to_hash(v) }
248
+ end
249
+ elsif value.respond_to? :to_hash
250
+ value.to_hash
251
+ else
252
+ value
253
+ end
254
+ end
255
+
256
+ end
257
+
258
+ end
@@ -31,11 +31,11 @@ require 'date'
31
31
  module AsposeCellsCloud
32
32
 
33
33
  class RadioButton
34
- #
34
+ #Gets the GroupBox that contains this RadioButton.
35
35
  attr_accessor :group_box
36
- #
36
+ #Indicates if the radiobutton is checked or not.
37
37
  attr_accessor :is_checked
38
- #
38
+ #Indicates whether the combobox has 3-D shading.
39
39
  attr_accessor :shadow
40
40
  #
41
41
  attr_accessor :name