aspose_cells_cloud 24.1.1 → 24.2.1

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 (27) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +3 -12
  4. data/lib/aspose_cells_cloud/api/cells_api.rb +8 -0
  5. data/lib/aspose_cells_cloud/models/analyze_excel_request.rb +234 -0
  6. data/lib/aspose_cells_cloud/models/analyze_excel_response.rb +210 -0
  7. data/lib/aspose_cells_cloud/models/analyze_suggestion.rb +294 -0
  8. data/lib/aspose_cells_cloud/models/analyzed_column_description.rb +306 -0
  9. data/lib/aspose_cells_cloud/models/analyzed_result.rb +258 -0
  10. data/lib/aspose_cells_cloud/models/analyzed_table_description.rb +390 -0
  11. data/lib/aspose_cells_cloud/models/auto_fitter_options.rb +1 -13
  12. data/lib/aspose_cells_cloud/models/cell_area.rb +4 -4
  13. data/lib/aspose_cells_cloud/models/cells_cloud_file_info.rb +4 -4
  14. data/lib/aspose_cells_cloud/models/cells_document_properties.rb +1 -1
  15. data/lib/aspose_cells_cloud/models/chart.rb +2 -2
  16. data/lib/aspose_cells_cloud/models/color.rb +4 -4
  17. data/lib/aspose_cells_cloud/models/color_filter.rb +1 -1
  18. data/lib/aspose_cells_cloud/models/columns.rb +3 -3
  19. data/lib/aspose_cells_cloud/models/discover_chart.rb +270 -0
  20. data/lib/aspose_cells_cloud/models/discover_pivot_table.rb +282 -0
  21. data/lib/aspose_cells_cloud/models/excel_data_statistics.rb +222 -0
  22. data/lib/aspose_cells_cloud/models/pdf_security_options.rb +1 -13
  23. data/lib/aspose_cells_cloud/models/worksheet_data_statistics.rb +318 -0
  24. data/lib/aspose_cells_cloud/requests/post_analyze_excel_request.rb +103 -0
  25. data/lib/aspose_cells_cloud/version.rb +1 -1
  26. data/lib/aspose_cells_cloud.rb +11 -0
  27. metadata +13 -2
@@ -33,8 +33,6 @@ module AsposeCellsCloud
33
33
  class AutoFitterOptions
34
34
  #Gets and set the type of auto fitting row height of merged cells.
35
35
  attr_accessor :auto_fit_merged_cells_type
36
- #Indicates whether auto fit row height when the cells is merged in a row. The default value is false.
37
- attr_accessor :auto_fit_merged_cells
38
36
  #Ignores the hidden rows/columns.
39
37
  attr_accessor :ignore_hidden
40
38
  #Indicates whether only fit the rows which height are not customed.
@@ -54,7 +52,6 @@ module AsposeCellsCloud
54
52
  def self.attribute_map
55
53
  {
56
54
  :'auto_fit_merged_cells_type' => :'AutoFitMergedCellsType',
57
- :'auto_fit_merged_cells' => :'AutoFitMergedCells',
58
55
  :'ignore_hidden' => :'IgnoreHidden',
59
56
  :'only_auto' => :'OnlyAuto',
60
57
  :'default_edit_language' => :'DefaultEditLanguage',
@@ -69,7 +66,6 @@ module AsposeCellsCloud
69
66
  def self.swagger_types
70
67
  {
71
68
  :'auto_fit_merged_cells_type' => :'String',
72
- :'auto_fit_merged_cells' => :'BOOLEAN',
73
69
  :'ignore_hidden' => :'BOOLEAN',
74
70
  :'only_auto' => :'BOOLEAN',
75
71
  :'default_edit_language' => :'String',
@@ -91,9 +87,6 @@ module AsposeCellsCloud
91
87
  if attributes.has_key?(:'AutoFitMergedCellsType')
92
88
  self.auto_fit_merged_cells_type = attributes[:'AutoFitMergedCellsType']
93
89
  end
94
- if attributes.has_key?(:'AutoFitMergedCells')
95
- self.auto_fit_merged_cells = attributes[:'AutoFitMergedCells']
96
- end
97
90
  if attributes.has_key?(:'IgnoreHidden')
98
91
  self.ignore_hidden = attributes[:'IgnoreHidden']
99
92
  end
@@ -125,9 +118,6 @@ module AsposeCellsCloud
125
118
  if @auto_fit_merged_cells_type.nil?
126
119
  invalid_properties.push("invalid value for 'auto_fit_merged_cells_type', auto_fit_merged_cells_type cannot be nil.")
127
120
  end
128
- if @auto_fit_merged_cells.nil?
129
- invalid_properties.push("invalid value for 'auto_fit_merged_cells', auto_fit_merged_cells cannot be nil.")
130
- end
131
121
  if @ignore_hidden.nil?
132
122
  invalid_properties.push("invalid value for 'ignore_hidden', ignore_hidden cannot be nil.")
133
123
  end
@@ -157,7 +147,6 @@ module AsposeCellsCloud
157
147
  # @return true if the model is valid
158
148
  def valid?
159
149
  return false if @auto_fit_merged_cells_type.nil?
160
- return false if @auto_fit_merged_cells.nil?
161
150
  return false if @ignore_hidden.nil?
162
151
  return false if @only_auto.nil?
163
152
  return false if @default_edit_language.nil?
@@ -174,7 +163,6 @@ module AsposeCellsCloud
174
163
  return true if self.equal?(o)
175
164
  self.class == o.class &&
176
165
  auto_fit_merged_cells_type == o.auto_fit_merged_cells_type &&
177
- auto_fit_merged_cells == o.auto_fit_merged_cells &&
178
166
  ignore_hidden == o.ignore_hidden &&
179
167
  only_auto == o.only_auto &&
180
168
  default_edit_language == o.default_edit_language &&
@@ -194,7 +182,7 @@ module AsposeCellsCloud
194
182
  # Calculates hash code according to all attributes.
195
183
  # @return [Fixnum] Hash code
196
184
  def hash
197
- [ auto_fit_merged_cells_type , auto_fit_merged_cells , ignore_hidden , only_auto , default_edit_language , max_row_height , auto_fit_wrapped_text_type , format_strategy , for_rendering ].hash
185
+ [ auto_fit_merged_cells_type , ignore_hidden , only_auto , default_edit_language , max_row_height , auto_fit_wrapped_text_type , format_strategy , for_rendering ].hash
198
186
  end
199
187
 
200
188
  # Builds the object from hash
@@ -31,13 +31,13 @@ require 'date'
31
31
  module AsposeCellsCloud
32
32
 
33
33
  class CellArea
34
- #
34
+ #The end column index.
35
35
  attr_accessor :end_column
36
- #
36
+ #The end row index.
37
37
  attr_accessor :end_row
38
- #
38
+ #The start column index.
39
39
  attr_accessor :start_column
40
- #
40
+ #The start row index.
41
41
  attr_accessor :start_row
42
42
 
43
43
  # 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 CellsCloudFileInfo
34
- #
34
+ #The file name.
35
35
  attr_accessor :name
36
- #
36
+ #The file size.
37
37
  attr_accessor :size
38
- #
38
+ #The file position.
39
39
  attr_accessor :folder
40
- #
40
+ #The storage name.
41
41
  attr_accessor :storage
42
42
 
43
43
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -31,7 +31,7 @@ require 'date'
31
31
  module AsposeCellsCloud
32
32
 
33
33
  class CellsDocumentProperties
34
- #
34
+ #Document property list.
35
35
  attr_accessor :document_property_list
36
36
 
37
37
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -107,9 +107,9 @@ module AsposeCellsCloud
107
107
  attr_accessor :size_with_window
108
108
  #Gets and sets the builtin style.
109
109
  attr_accessor :style
110
- #Gets the chart's title.
110
+ #
111
111
  attr_accessor :title
112
- #Gets or sets a chart's type.
112
+ #
113
113
  attr_accessor :type
114
114
  #Gets the chart's Y axis.
115
115
  attr_accessor :value_axis
@@ -31,13 +31,13 @@ require 'date'
31
31
  module AsposeCellsCloud
32
32
 
33
33
  class Color
34
- #
34
+ #Gets the alpha component value of this System.Drawing.Color structure.
35
35
  attr_accessor :a
36
- #
36
+ #Gets the red component value of this System.Drawing.Color structure.
37
37
  attr_accessor :r
38
- #
38
+ #Gets the green component value of this System.Drawing.Color structure.
39
39
  attr_accessor :g
40
- #
40
+ #Gets the blue component value of this System.Drawing.Color structure.
41
41
  attr_accessor :b
42
42
 
43
43
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -31,7 +31,7 @@ require 'date'
31
31
  module AsposeCellsCloud
32
32
 
33
33
  class ColorFilter
34
- #Flag indicating whether filter by the cell's fill color.
34
+ #Whether filter by the cell's fill color.
35
35
  attr_accessor :filter_by_fill_color
36
36
  #
37
37
  attr_accessor :pattern
@@ -31,11 +31,11 @@ require 'date'
31
31
  module AsposeCellsCloud
32
32
 
33
33
  class Columns
34
- #
34
+ #The max column index.
35
35
  attr_accessor :max_column
36
- #
36
+ #Column count.
37
37
  attr_accessor :columns_count
38
- #
38
+ #Columns list.
39
39
  attr_accessor :columns_list
40
40
  #
41
41
  attr_accessor :link
@@ -0,0 +1,270 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="DiscoverChartrb.cs">
4
+ Copyright (c) 2024 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 DiscoverChart
34
+ #
35
+ attr_accessor :name
36
+ #
37
+ attr_accessor :sheet_name
38
+ #
39
+ attr_accessor :title
40
+ #
41
+ attr_accessor :type
42
+ #
43
+ attr_accessor :data_range
44
+ #Base64String
45
+ attr_accessor :thumbnail
46
+
47
+ # Attribute mapping from ruby-style variable name to JSON key.
48
+ def self.attribute_map
49
+ {
50
+ :'name' => :'Name',
51
+ :'sheet_name' => :'SheetName',
52
+ :'title' => :'Title',
53
+ :'type' => :'Type',
54
+ :'data_range' => :'DataRange',
55
+ :'thumbnail' => :'Thumbnail'
56
+ }
57
+ end
58
+
59
+ # Attribute type mapping.
60
+ def self.swagger_types
61
+ {
62
+ :'name' => :'String',
63
+ :'sheet_name' => :'String',
64
+ :'title' => :'String',
65
+ :'type' => :'String',
66
+ :'data_range' => :'String',
67
+ :'thumbnail' => :'String'
68
+ }
69
+ end
70
+
71
+ # Initializes the object
72
+ # @param [Hash] attributes Model attributes in the form of hash
73
+ def initialize(attributes = {})
74
+ return unless attributes.is_a?(Hash)
75
+
76
+ # convert string to symbol for hash key
77
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
78
+
79
+ if attributes.has_key?(:'Name')
80
+ self.name = attributes[:'Name']
81
+ end
82
+ if attributes.has_key?(:'SheetName')
83
+ self.sheet_name = attributes[:'SheetName']
84
+ end
85
+ if attributes.has_key?(:'Title')
86
+ self.title = attributes[:'Title']
87
+ end
88
+ if attributes.has_key?(:'Type')
89
+ self.type = attributes[:'Type']
90
+ end
91
+ if attributes.has_key?(:'DataRange')
92
+ self.data_range = attributes[:'DataRange']
93
+ end
94
+ if attributes.has_key?(:'Thumbnail')
95
+ self.thumbnail = attributes[:'Thumbnail']
96
+ end
97
+
98
+ end
99
+
100
+ # Show invalid properties with the reasons. Usually used together with valid?
101
+ # @return Array for valid properies with the reasons
102
+ def list_invalid_properties
103
+ invalid_properties = Array.new
104
+ if @name.nil?
105
+ invalid_properties.push("invalid value for 'name', name cannot be nil.")
106
+ end
107
+ if @sheet_name.nil?
108
+ invalid_properties.push("invalid value for 'sheet_name', sheet_name cannot be nil.")
109
+ end
110
+ if @title.nil?
111
+ invalid_properties.push("invalid value for 'title', title cannot be nil.")
112
+ end
113
+ if @type.nil?
114
+ invalid_properties.push("invalid value for 'type', type cannot be nil.")
115
+ end
116
+ if @data_range.nil?
117
+ invalid_properties.push("invalid value for 'data_range', data_range cannot be nil.")
118
+ end
119
+ if @thumbnail.nil?
120
+ invalid_properties.push("invalid value for 'thumbnail', thumbnail cannot be nil.")
121
+ end
122
+
123
+ return invalid_properties
124
+ end
125
+
126
+ # Check to see if the all the properties in the model are valid
127
+ # @return true if the model is valid
128
+ def valid?
129
+ return false if @name.nil?
130
+ return false if @sheet_name.nil?
131
+ return false if @title.nil?
132
+ return false if @type.nil?
133
+ return false if @data_range.nil?
134
+ return false if @thumbnail.nil?
135
+ return true
136
+ end
137
+
138
+ # Checks equality by comparing each attribute.
139
+ # @param [Object] Object to be compared
140
+ def ==(o)
141
+ return true if self.equal?(o)
142
+ self.class == o.class &&
143
+ name == o.name &&
144
+ sheet_name == o.sheet_name &&
145
+ title == o.title &&
146
+ type == o.type &&
147
+ data_range == o.data_range &&
148
+ thumbnail == o.thumbnail
149
+ std_dev == o.std_dev
150
+ end
151
+
152
+ # @see the `==` method
153
+ # @param [Object] Object to be compared
154
+ def eql?(o)
155
+ self == o
156
+ end
157
+
158
+ # Calculates hash code according to all attributes.
159
+ # @return [Fixnum] Hash code
160
+ def hash
161
+ [ name , sheet_name , title , type , data_range , thumbnail ].hash
162
+ end
163
+
164
+ # Builds the object from hash
165
+ # @param [Hash] attributes Model attributes in the form of hash
166
+ # @return [Object] Returns the model itself
167
+ def build_from_hash(attributes)
168
+ return nil unless attributes.is_a?(Hash)
169
+ self.class.swagger_types.each_pair do |key, type|
170
+ if type =~ /\AArray<(.*)>/i
171
+ # check to ensure the input is an array given that the the attribute
172
+ # is documented as an array but the input is not
173
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
174
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
175
+ end
176
+ elsif !attributes[self.class.attribute_map[key]].nil?
177
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
178
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
179
+ end
180
+
181
+ self
182
+ end
183
+
184
+ # Deserializes the data based on type
185
+ # @param string type Data type
186
+ # @param string value Value to be deserialized
187
+ # @return [Object] Deserialized data
188
+ def _deserialize(type, value)
189
+ case type.to_sym
190
+ when :DateTime
191
+ DateTime.parse(value)
192
+ when :Date
193
+ Date.parse(value)
194
+ when :String
195
+ value.to_s
196
+ when :Integer
197
+ value.to_i
198
+ when :Float
199
+ value.to_f
200
+ when :BOOLEAN
201
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
202
+ true
203
+ else
204
+ false
205
+ end
206
+ when :Object
207
+ # generic object (usually a Hash), return directly
208
+ value
209
+ when /\AArray<(?<inner_type>.+)>\z/
210
+ inner_type = Regexp.last_match[:inner_type]
211
+ value.map { |v| _deserialize(inner_type, v) }
212
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
213
+ k_type = Regexp.last_match[:k_type]
214
+ v_type = Regexp.last_match[:v_type]
215
+ {}.tap do |hash|
216
+ value.each do |k, v|
217
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
218
+ end
219
+ end
220
+ else # model
221
+ temp_model = AsposeCellsCloud.const_get(type).new
222
+ temp_model.build_from_hash(value)
223
+ end
224
+ end
225
+
226
+ # Returns the string representation of the object
227
+ # @return [String] String presentation of the object
228
+ def to_s
229
+ to_hash.to_s
230
+ end
231
+
232
+ # to_body is an alias to to_hash (backward compatibility)
233
+ # @return [Hash] Returns the object in the form of hash
234
+ def to_body
235
+ to_hash
236
+ end
237
+
238
+ # Returns the object in the form of hash
239
+ # @return [Hash] Returns the object in the form of hash
240
+ def to_hash
241
+ hash = {}
242
+ self.class.attribute_map.each_pair do |attr, param|
243
+ value = self.send(attr)
244
+ next if value.nil?
245
+ hash[param] = _to_hash(value)
246
+ end
247
+ hash
248
+ end
249
+
250
+ # Outputs non-array value in the form of hash
251
+ # For object, use to_hash. Otherwise, just return the value
252
+ # @param [Object] value Any valid value
253
+ # @return [Hash] Returns the value in the form of hash
254
+ def _to_hash(value)
255
+ if value.is_a?(Array)
256
+ value.compact.map{ |v| _to_hash(v) }
257
+ elsif value.is_a?(Hash)
258
+ {}.tap do |hash|
259
+ value.each { |k, v| hash[k] = _to_hash(v) }
260
+ end
261
+ elsif value.respond_to? :to_hash
262
+ value.to_hash
263
+ else
264
+ value
265
+ end
266
+ end
267
+
268
+ end
269
+
270
+ end