aspose_cells_cloud 23.8 → 23.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -0,0 +1,234 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="XmlMaprb.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 XmlMap
34
+ #Returns or sets the name of the object.
35
+ attr_accessor :name
36
+ #Gets root element name.
37
+ attr_accessor :root_element_name
38
+ #Gets an of this map.
39
+ attr_accessor :data_binding
40
+
41
+ # Attribute mapping from ruby-style variable name to JSON key.
42
+ def self.attribute_map
43
+ {
44
+ :'name' => :'Name',
45
+ :'root_element_name' => :'RootElementName',
46
+ :'data_binding' => :'DataBinding'
47
+ }
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.swagger_types
52
+ {
53
+ :'name' => :'String',
54
+ :'root_element_name' => :'String',
55
+ :'data_binding' => :'XmlDataBinding'
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?(:'Name')
68
+ self.name = attributes[:'Name']
69
+ end
70
+ if attributes.has_key?(:'RootElementName')
71
+ self.root_element_name = attributes[:'RootElementName']
72
+ end
73
+ if attributes.has_key?(:'DataBinding')
74
+ self.data_binding = attributes[:'DataBinding']
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 @name.nil?
84
+ invalid_properties.push("invalid value for 'name', name cannot be nil.")
85
+ end
86
+ if @root_element_name.nil?
87
+ invalid_properties.push("invalid value for 'root_element_name', root_element_name cannot be nil.")
88
+ end
89
+ if @data_binding.nil?
90
+ invalid_properties.push("invalid value for 'data_binding', data_binding 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 @name.nil?
100
+ return false if @root_element_name.nil?
101
+ return false if @data_binding.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
+ name == o.name &&
111
+ root_element_name == o.root_element_name &&
112
+ data_binding == o.data_binding
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
+ [ name , root_element_name , data_binding ].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
@@ -32,7 +32,7 @@ module AsposeCellsCloud
32
32
  class DeleteUnProtectWorkbookRequest
33
33
 
34
34
  attr_accessor :name
35
- attr_accessor :protection
35
+ attr_accessor :password
36
36
  attr_accessor :folder
37
37
  attr_accessor :storage_name
38
38
 
@@ -45,8 +45,8 @@ module AsposeCellsCloud
45
45
  if attributes.has_key?(:'name')
46
46
  self.name = attributes[:'name']
47
47
  end
48
- if attributes.has_key?(:'protection')
49
- self.protection = attributes[:'protection']
48
+ if attributes.has_key?(:'password')
49
+ self.password = attributes[:'password']
50
50
  end
51
51
  if attributes.has_key?(:'folder')
52
52
  self.folder = attributes[:'folder']
@@ -60,7 +60,7 @@ module AsposeCellsCloud
60
60
  def self.attribute_map
61
61
  {
62
62
  :'name' => :'name',
63
- :'protection' => :'protection',
63
+ :'password' => :'password',
64
64
  :'folder' => :'folder',
65
65
  :'storage_name' => :'storageName'
66
66
  }
@@ -70,7 +70,7 @@ module AsposeCellsCloud
70
70
  def self.swagger_types
71
71
  {
72
72
  :'name' => :'String',
73
- :'protection' => :'WorkbookProtectionRequest',
73
+ :'password' => :'String',
74
74
  :'folder' => :'String',
75
75
  :'storage_name' => :'String'
76
76
  }
@@ -85,15 +85,16 @@ module AsposeCellsCloud
85
85
  if api_client.config.client_side_validation && name.nil?
86
86
  fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.delete_un_protect_workbook "
87
87
  end
88
- # verify the required parameter 'protection' is set
89
- if api_client.config.client_side_validation && protection.nil?
90
- fail ArgumentError, "Missing the required parameter 'protection' when calling CellsApi.delete_un_protect_workbook "
88
+ # verify the required parameter 'password' is set
89
+ if api_client.config.client_side_validation && password.nil?
90
+ fail ArgumentError, "Missing the required parameter 'password' when calling CellsApi.delete_un_protect_workbook "
91
91
  end
92
92
 
93
93
  # resource path
94
94
  local_var_path = "/cells/{name}/protection".sub('{' + 'name' + '}', name.to_s)
95
95
  # query parameters
96
96
  query_params = {}
97
+ query_params[:'password'] = self.password if !self.password.nil?
97
98
  query_params[:'folder'] = self.folder if !self.folder.nil?
98
99
  query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
99
100
 
@@ -107,7 +108,6 @@ module AsposeCellsCloud
107
108
  # form parameters
108
109
  form_params = {}
109
110
  post_body = nil
110
- post_body = api_client.object_to_http_body(protection)
111
111
 
112
112
 
113
113
  #auth_names = []
@@ -32,7 +32,7 @@ module AsposeCellsCloud
32
32
  class PostProtectRequest
33
33
 
34
34
  attr_accessor :file
35
- attr_accessor :protect_workbook_requst
35
+ attr_accessor :protect_workbook_request
36
36
  attr_accessor :password
37
37
 
38
38
  def initialize(attributes = {})
@@ -44,8 +44,8 @@ module AsposeCellsCloud
44
44
  if attributes.has_key?(:'File')
45
45
  self.file = attributes[:'File']
46
46
  end
47
- if attributes.has_key?(:'protectWorkbookRequst')
48
- self.protect_workbook_requst = attributes[:'protectWorkbookRequst']
47
+ if attributes.has_key?(:'protectWorkbookRequest')
48
+ self.protect_workbook_request = attributes[:'protectWorkbookRequest']
49
49
  end
50
50
  if attributes.has_key?(:'password')
51
51
  self.password = attributes[:'password']
@@ -56,7 +56,7 @@ module AsposeCellsCloud
56
56
  def self.attribute_map
57
57
  {
58
58
  :'file' => :'File',
59
- :'protect_workbook_requst' => :'protectWorkbookRequst',
59
+ :'protect_workbook_request' => :'protectWorkbookRequest',
60
60
  :'password' => :'password'
61
61
  }
62
62
  end
@@ -65,7 +65,7 @@ module AsposeCellsCloud
65
65
  def self.swagger_types
66
66
  {
67
67
  :'file' => :'Hash',
68
- :'protect_workbook_requst' => :'ProtectWorkbookRequst',
68
+ :'protect_workbook_request' => :'ProtectWorkbookRequest',
69
69
  :'password' => :'String'
70
70
  }
71
71
  end
@@ -79,9 +79,9 @@ module AsposeCellsCloud
79
79
  if api_client.config.client_side_validation && file.nil?
80
80
  fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_protect "
81
81
  end
82
- # verify the required parameter 'protect_workbook_requst' is set
83
- if api_client.config.client_side_validation && protect_workbook_requst.nil?
84
- fail ArgumentError, "Missing the required parameter 'protect_workbook_requst' when calling CellsApi.post_protect "
82
+ # verify the required parameter 'protect_workbook_request' is set
83
+ if api_client.config.client_side_validation && protect_workbook_request.nil?
84
+ fail ArgumentError, "Missing the required parameter 'protect_workbook_request' when calling CellsApi.post_protect "
85
85
  end
86
86
 
87
87
  # resource path
@@ -103,7 +103,7 @@ module AsposeCellsCloud
103
103
  file.each do |filename , context|
104
104
  form_params[filename] = context
105
105
  end
106
- form_params['protect_workbook_requst'] = post_body.to_json
106
+ form_params['protect_workbook_request'] = post_body.to_json
107
107
  header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
108
108
 
109
109
 
@@ -32,7 +32,7 @@ module AsposeCellsCloud
32
32
  class PostProtectWorkbookRequest
33
33
 
34
34
  attr_accessor :name
35
- attr_accessor :protection
35
+ attr_accessor :protect_workbook_request
36
36
  attr_accessor :folder
37
37
  attr_accessor :storage_name
38
38
 
@@ -45,8 +45,8 @@ module AsposeCellsCloud
45
45
  if attributes.has_key?(:'name')
46
46
  self.name = attributes[:'name']
47
47
  end
48
- if attributes.has_key?(:'protection')
49
- self.protection = attributes[:'protection']
48
+ if attributes.has_key?(:'protectWorkbookRequest')
49
+ self.protect_workbook_request = attributes[:'protectWorkbookRequest']
50
50
  end
51
51
  if attributes.has_key?(:'folder')
52
52
  self.folder = attributes[:'folder']
@@ -60,7 +60,7 @@ module AsposeCellsCloud
60
60
  def self.attribute_map
61
61
  {
62
62
  :'name' => :'name',
63
- :'protection' => :'protection',
63
+ :'protect_workbook_request' => :'protectWorkbookRequest',
64
64
  :'folder' => :'folder',
65
65
  :'storage_name' => :'storageName'
66
66
  }
@@ -70,7 +70,7 @@ module AsposeCellsCloud
70
70
  def self.swagger_types
71
71
  {
72
72
  :'name' => :'String',
73
- :'protection' => :'WorkbookProtectionRequest',
73
+ :'protect_workbook_request' => :'ProtectWorkbookRequest',
74
74
  :'folder' => :'String',
75
75
  :'storage_name' => :'String'
76
76
  }
@@ -85,9 +85,9 @@ module AsposeCellsCloud
85
85
  if api_client.config.client_side_validation && name.nil?
86
86
  fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.post_protect_workbook "
87
87
  end
88
- # verify the required parameter 'protection' is set
89
- if api_client.config.client_side_validation && protection.nil?
90
- fail ArgumentError, "Missing the required parameter 'protection' when calling CellsApi.post_protect_workbook "
88
+ # verify the required parameter 'protect_workbook_request' is set
89
+ if api_client.config.client_side_validation && protect_workbook_request.nil?
90
+ fail ArgumentError, "Missing the required parameter 'protect_workbook_request' when calling CellsApi.post_protect_workbook "
91
91
  end
92
92
 
93
93
  # resource path
@@ -107,7 +107,7 @@ module AsposeCellsCloud
107
107
  # form parameters
108
108
  form_params = {}
109
109
  post_body = nil
110
- post_body = api_client.object_to_http_body(protection)
110
+ post_body = api_client.object_to_http_body(protect_workbook_request)
111
111
 
112
112
 
113
113
  #auth_names = []
@@ -0,0 +1,138 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="PostWorksheetCellsRangeSort_request.rb.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 "uri"
30
+
31
+ module AsposeCellsCloud
32
+ class PostWorksheetCellsRangeSortRequest
33
+
34
+ attr_accessor :name
35
+ attr_accessor :sheet_name
36
+ attr_accessor :range_sort_request
37
+ attr_accessor :folder
38
+ attr_accessor :storage_name
39
+
40
+ def initialize(attributes = {})
41
+ return unless attributes.is_a?(Hash)
42
+
43
+ # convert string to symbol for hash key
44
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
45
+
46
+ if attributes.has_key?(:'name')
47
+ self.name = attributes[:'name']
48
+ end
49
+ if attributes.has_key?(:'sheetName')
50
+ self.sheet_name = attributes[:'sheetName']
51
+ end
52
+ if attributes.has_key?(:'rangeSortRequest')
53
+ self.range_sort_request = attributes[:'rangeSortRequest']
54
+ end
55
+ if attributes.has_key?(:'folder')
56
+ self.folder = attributes[:'folder']
57
+ end
58
+ if attributes.has_key?(:'storageName')
59
+ self.storage_name = attributes[:'storageName']
60
+ end
61
+
62
+ end
63
+ # Attribute mapping from ruby-style variable name to JSON key.
64
+ def self.attribute_map
65
+ {
66
+ :'name' => :'name',
67
+ :'sheet_name' => :'sheetName',
68
+ :'range_sort_request' => :'rangeSortRequest',
69
+ :'folder' => :'folder',
70
+ :'storage_name' => :'storageName'
71
+ }
72
+ end
73
+
74
+ # Attribute type mapping.
75
+ def self.swagger_types
76
+ {
77
+ :'name' => :'String',
78
+ :'sheet_name' => :'String',
79
+ :'range_sort_request' => :'RangeSortRequest',
80
+ :'folder' => :'String',
81
+ :'storage_name' => :'String'
82
+ }
83
+ end
84
+
85
+ def create_http_request(api_client,opts = {})
86
+ if api_client.config.debugging
87
+ api_client.config.logger.debug "Calling API: CellsApi.post_worksheet_cells_range_sort ..."
88
+ end
89
+ api_client.request_token_if_needed
90
+ # verify the required parameter 'name' is set
91
+ if api_client.config.client_side_validation && name.nil?
92
+ fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.post_worksheet_cells_range_sort "
93
+ end
94
+ # verify the required parameter 'sheet_name' is set
95
+ if api_client.config.client_side_validation && sheet_name.nil?
96
+ fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.post_worksheet_cells_range_sort "
97
+ end
98
+ # verify the required parameter 'range_sort_request' is set
99
+ if api_client.config.client_side_validation && range_sort_request.nil?
100
+ fail ArgumentError, "Missing the required parameter 'range_sort_request' when calling CellsApi.post_worksheet_cells_range_sort "
101
+ end
102
+
103
+ # resource path
104
+ local_var_path = "/cells/{name}/worksheets/{sheetName}/ranges/sort".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s)
105
+ # query parameters
106
+ query_params = {}
107
+ query_params[:'folder'] = self.folder if !self.folder.nil?
108
+ query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
109
+
110
+ # header parameters
111
+ header_params = {}
112
+ # HTTP header 'Accept' (if needed)
113
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
114
+ # HTTP header 'Content-Type'
115
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
116
+
117
+ # form parameters
118
+ form_params = {}
119
+ post_body = nil
120
+ post_body = api_client.object_to_http_body(range_sort_request)
121
+
122
+
123
+ #auth_names = []
124
+ auth_names = ['JWT']
125
+ data, status_code, headers = api_client.call_api(:POST, local_var_path,
126
+ :header_params => header_params,
127
+ :query_params => query_params,
128
+ :form_params => form_params,
129
+ :body => post_body,
130
+ :auth_names => auth_names,
131
+ :return_type => 'CellsCloudResponse')
132
+ if api_client.config.debugging
133
+ api_client.config.logger.debug "API called: Specification.Name>Api.post_worksheet_cells_range_sort\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
134
+ end
135
+ return data, status_code, headers
136
+ end
137
+ end
138
+ end
@@ -1,6 +1,6 @@
1
1
  =begin
2
2
  --------------------------------------------------------------------------------------------------------------------
3
- <copyright company="Aspose" file="PostWorksheetCellsRanges_request.rb.cs">
3
+ <copyright company="Aspose" file="PostWorksheetCellsRangesCopy_request.rb.cs">
4
4
  Copyright (c) 2023 Aspose.Cells Cloud
5
5
  </copyright>
6
6
  <summary>
@@ -29,7 +29,7 @@
29
29
  require "uri"
30
30
 
31
31
  module AsposeCellsCloud
32
- class PostWorksheetCellsRangesRequest
32
+ class PostWorksheetCellsRangesCopyRequest
33
33
 
34
34
  attr_accessor :name
35
35
  attr_accessor :sheet_name
@@ -84,24 +84,24 @@ module AsposeCellsCloud
84
84
 
85
85
  def create_http_request(api_client,opts = {})
86
86
  if api_client.config.debugging
87
- api_client.config.logger.debug "Calling API: CellsApi.post_worksheet_cells_ranges ..."
87
+ api_client.config.logger.debug "Calling API: CellsApi.post_worksheet_cells_ranges_copy ..."
88
88
  end
89
89
  api_client.request_token_if_needed
90
90
  # verify the required parameter 'name' is set
91
91
  if api_client.config.client_side_validation && name.nil?
92
- fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.post_worksheet_cells_ranges "
92
+ fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.post_worksheet_cells_ranges_copy "
93
93
  end
94
94
  # verify the required parameter 'sheet_name' is set
95
95
  if api_client.config.client_side_validation && sheet_name.nil?
96
- fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.post_worksheet_cells_ranges "
96
+ fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.post_worksheet_cells_ranges_copy "
97
97
  end
98
98
  # verify the required parameter 'range_operate' is set
99
99
  if api_client.config.client_side_validation && range_operate.nil?
100
- fail ArgumentError, "Missing the required parameter 'range_operate' when calling CellsApi.post_worksheet_cells_ranges "
100
+ fail ArgumentError, "Missing the required parameter 'range_operate' when calling CellsApi.post_worksheet_cells_ranges_copy "
101
101
  end
102
102
 
103
103
  # resource path
104
- local_var_path = "/cells/{name}/worksheets/{sheetName}/ranges".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s)
104
+ local_var_path = "/cells/{name}/worksheets/{sheetName}/ranges/copy".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s)
105
105
  # query parameters
106
106
  query_params = {}
107
107
  query_params[:'folder'] = self.folder if !self.folder.nil?
@@ -130,7 +130,7 @@ module AsposeCellsCloud
130
130
  :auth_names => auth_names,
131
131
  :return_type => 'CellsCloudResponse')
132
132
  if api_client.config.debugging
133
- api_client.config.logger.debug "API called: Specification.Name>Api.post_worksheet_cells_ranges\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
133
+ api_client.config.logger.debug "API called: Specification.Name>Api.post_worksheet_cells_ranges_copy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
134
134
  end
135
135
  return data, status_code, headers
136
136
  end