aspose_cells_cloud 25.2 → 25.3

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 (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -9
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +51 -0
  4. data/lib/aspose_cells_cloud/models/chart_points.rb +1 -1
  5. data/lib/aspose_cells_cloud/models/charts.rb +1 -1
  6. data/lib/aspose_cells_cloud/models/convert_workbook_options.rb +282 -0
  7. data/lib/aspose_cells_cloud/models/data_cleansing.rb +1 -1
  8. data/lib/aspose_cells_cloud/models/dif_save_options.rb +64 -4
  9. data/lib/aspose_cells_cloud/models/docx_save_options.rb +28 -4
  10. data/lib/aspose_cells_cloud/models/files_result.rb +1 -1
  11. data/lib/aspose_cells_cloud/models/html_save_options.rb +64 -4
  12. data/lib/aspose_cells_cloud/models/image_save_options.rb +64 -4
  13. data/lib/aspose_cells_cloud/models/json_save_options.rb +64 -4
  14. data/lib/aspose_cells_cloud/models/m_html_save_options.rb +392 -8
  15. data/lib/aspose_cells_cloud/models/markdown_save_options.rb +64 -4
  16. data/lib/aspose_cells_cloud/models/ods_save_options.rb +100 -4
  17. data/lib/aspose_cells_cloud/models/ooxml_save_options.rb +64 -4
  18. data/lib/aspose_cells_cloud/models/page_sections_response.rb +1 -1
  19. data/lib/aspose_cells_cloud/models/paginated_save_options.rb +28 -4
  20. data/lib/aspose_cells_cloud/models/pdf_save_options.rb +64 -4
  21. data/lib/aspose_cells_cloud/models/pptx_save_options.rb +28 -4
  22. data/lib/aspose_cells_cloud/models/save_files_to_cloud_result.rb +1 -1
  23. data/lib/aspose_cells_cloud/models/save_options.rb +64 -4
  24. data/lib/aspose_cells_cloud/models/shapes.rb +1 -1
  25. data/lib/aspose_cells_cloud/models/specify_cells_object.rb +234 -0
  26. data/lib/aspose_cells_cloud/models/spreadsheet_m_l2003_save_options.rb +64 -4
  27. data/lib/aspose_cells_cloud/models/sql_script_save_options.rb +64 -4
  28. data/lib/aspose_cells_cloud/models/styles.rb +1 -1
  29. data/lib/aspose_cells_cloud/models/styles_response.rb +234 -0
  30. data/lib/aspose_cells_cloud/models/svg_save_options.rb +208 -4
  31. data/lib/aspose_cells_cloud/models/txt_save_options.rb +64 -4
  32. data/lib/aspose_cells_cloud/models/workbook.rb +1 -1
  33. data/lib/aspose_cells_cloud/models/xls_save_options.rb +88 -4
  34. data/lib/aspose_cells_cloud/models/xlsb_save_options.rb +88 -4
  35. data/lib/aspose_cells_cloud/models/xps_save_options.rb +28 -4
  36. data/lib/aspose_cells_cloud/requests/add_picture_in_cell_request.rb +149 -0
  37. data/lib/aspose_cells_cloud/requests/get_all_styles_request.rb +117 -0
  38. data/lib/aspose_cells_cloud/requests/post_convert_workbook_request.rb +103 -0
  39. data/lib/aspose_cells_cloud/requests/post_worksheet_cells_range_to_image_request.rb +1 -1
  40. data/lib/aspose_cells_cloud/version.rb +1 -1
  41. data/lib/aspose_cells_cloud.rb +6 -0
  42. data/spec/conversion/conversion_json_spec.rb +0 -21
  43. data/spec/conversion/conversion_png_spec.rb +0 -21
  44. data/spec/conversion/conversion_spec.rb +0 -81
  45. data/spec/document/light_cells_spec.rb +0 -98
  46. metadata +8 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54cd9f20f4468515ff4161c51ebb4ab19ed6dde4106976f0f36a74eebf288663
4
- data.tar.gz: f57061de70de9d82a629b33f2a0a0c0d163c976b2f06b8d072dbd00621345697
3
+ metadata.gz: 21bf7cbccb7ccfc0ff5a7e46fae0b3e1c414c873c12e194927a8a98fe3d7aeab
4
+ data.tar.gz: 364938295f42a277ee5755dc742af6a5bde976fc3fb3f602220c7d1f62637c8c
5
5
  SHA512:
6
- metadata.gz: 12c2993c77e34483f5961dc28d3a46ff66c32f74bd05b020e3c052ceb29aad968f70ad25581312fdda67437d8e4d5473f82abdcf2cbdfbfe6ecd8de97bcabf62
7
- data.tar.gz: 2d2e37746dd77f8e9da008b90fc3fff0f8a5996384c8736945ea570baf82bd5f4b1506935202d1d569d12f3fe2d82d3e8bb998bb72ff6b5586fba8a0210135b8
6
+ metadata.gz: 9d92eb299cd8cc2c8f1a171628c22642fb254f7986725ca07205b89beb6da07353360cf7118b855d9cca84e41f2a52b051dac338e02dfd1b6548c2ebfd785d7e
7
+ data.tar.gz: fd7ac8da0a0c588eb00ffc1a285d50837fc4a29530cd0c2b0283a19deacb5d2fb8bd05effab0264cac0fdb765a5bd8c3b87ba86a666dc0fc85f35f8e2c43d2ee
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/25.2)
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/25.3)
2
2
 
3
3
  Aspose.Cells Cloud for Ruby enables you to handle various aspects of Excel files, including cell data, styles, formulas, charts, pivot tables, data validation, comments, drawing objects, images, hyperlinks, and so on. Additionally, it supports operations such as splitting, merging, repairing, and converting to other compatible file formats.
4
4
 
@@ -19,17 +19,15 @@ Enhance your Ruby applications with the [Aspose.Cells Cloud](https://products.as
19
19
  - Import/Export: Facilitates importing data from various sources into spreadsheets and exporting spreadsheet data to other formats.
20
20
  - Security Management: Offers a range of security features like data encryption, access control, and permission management to safeguard the security and integrity of spreadsheet data.
21
21
 
22
- ## Feature & Enhancements in Version 25.2
22
+ ## Feature & Enhancements in Version 25.3
23
23
 
24
24
  Full list of issues covering all changes in this release:
25
25
 
26
- - Support copying a range from one workbook to another workbook.
27
- - Add query parameters for image and print options to enhance the Get Worksheet API.
28
- - Added an API to count the number of Excel characters for cells cloud.
29
- - Added an API to count the number of Excel words for cells cloud.
30
- - Added an API to count the number of occurrences of a specified word in Excel for cells cloud
31
- - Add a new feature to support converting range to images.
32
- - Add a new feature to support converting worksheets to images
26
+ - Optimized the properties of `SaveOptions` to enhance performance and flexibility.
27
+ - Optimized the conversion method of `Workbook` for improved efficiency and reliability.
28
+ - Developed a new API to retrieve a comprehensive list of all styles in a workbook.
29
+ - Enhanced all save options to improve functionality and user experience.
30
+ - Added a new API to insert images into cells, providing enhanced document customization capabilities.
33
31
 
34
32
  ## Support file format
35
33
 
@@ -40,6 +40,7 @@ module AsposeCellsCloud
40
40
  @api_client.config.host = app_host
41
41
  end
42
42
 
43
+ # Perform business analysis of data in Excel files.
43
44
 
44
45
  def post_analyze_excel( post_analyze_excel_request, opts = {})
45
46
 
@@ -47,6 +48,7 @@ module AsposeCellsCloud
47
48
  return data
48
49
  end
49
50
 
51
+ # Retrieve the description of auto filters from a worksheet.
50
52
 
51
53
  def get_worksheet_auto_filter( get_worksheet_auto_filter_request, opts = {})
52
54
 
@@ -150,6 +152,7 @@ module AsposeCellsCloud
150
152
  return data
151
153
  end
152
154
 
155
+ # Get autoshapes description in worksheet.
153
156
 
154
157
  def get_worksheet_autoshapes( get_worksheet_autoshapes_request, opts = {})
155
158
 
@@ -165,6 +168,7 @@ module AsposeCellsCloud
165
168
  return data
166
169
  end
167
170
 
171
+ # Batch converting files that meet specific matching conditions.
168
172
 
169
173
  def post_batch_convert( post_batch_convert_request, opts = {})
170
174
 
@@ -212,6 +216,7 @@ module AsposeCellsCloud
212
216
  return data
213
217
  end
214
218
 
219
+ # Clear cell area contents in the worksheet.
215
220
 
216
221
  def post_clear_contents( post_clear_contents_request, opts = {})
217
222
 
@@ -339,6 +344,7 @@ module AsposeCellsCloud
339
344
  return data
340
345
  end
341
346
 
347
+ # Retrieve descriptions of worksheet columns.
342
348
 
343
349
  def get_worksheet_columns( get_worksheet_columns_request, opts = {})
344
350
 
@@ -426,6 +432,7 @@ module AsposeCellsCloud
426
432
  return data
427
433
  end
428
434
 
435
+ # Retrieve descriptions of rows in the worksheet.
429
436
 
430
437
  def get_worksheet_rows( get_worksheet_rows_request, opts = {})
431
438
 
@@ -545,6 +552,7 @@ module AsposeCellsCloud
545
552
  return data
546
553
  end
547
554
 
555
+ # Retrieve chart area description in the worksheet.
548
556
 
549
557
  def get_chart_area( get_chart_area_request, opts = {})
550
558
 
@@ -568,6 +576,7 @@ module AsposeCellsCloud
568
576
  return data
569
577
  end
570
578
 
579
+ # Retrieve descriptions of charts in the worksheet.
571
580
 
572
581
  def get_worksheet_charts( get_worksheet_charts_request, opts = {})
573
582
 
@@ -759,6 +768,7 @@ module AsposeCellsCloud
759
768
  return data
760
769
  end
761
770
 
771
+ # Retrieve descriptions of conditional formattings in a worksheet.
762
772
 
763
773
  def get_worksheet_conditional_formattings( get_worksheet_conditional_formattings_request, opts = {})
764
774
 
@@ -830,6 +840,7 @@ module AsposeCellsCloud
830
840
  return data
831
841
  end
832
842
 
843
+ # Retrieve workbooks in various formats.
833
844
 
834
845
  def get_workbook( get_workbook_request, opts = {})
835
846
 
@@ -933,6 +944,14 @@ module AsposeCellsCloud
933
944
  end
934
945
 
935
946
 
947
+ def post_convert_workbook( post_convert_workbook_request, opts = {})
948
+
949
+ data, _status_code, _headers = post_convert_workbook_request.create_http_request(@api_client,opts )
950
+ return data
951
+ end
952
+
953
+ # Export Excel internal elements or the workbook itself to various format files.
954
+
936
955
  def post_export( post_export_request, opts = {})
937
956
 
938
957
  data, _status_code, _headers = post_export_request.create_http_request(@api_client,opts )
@@ -1036,6 +1055,7 @@ module AsposeCellsCloud
1036
1055
  return data
1037
1056
  end
1038
1057
 
1058
+ # Retrieve descriptions of hyperlinks in the worksheet.
1039
1059
 
1040
1060
  def get_worksheet_hyperlinks( get_worksheet_hyperlinks_request, opts = {})
1041
1061
 
@@ -1083,6 +1103,7 @@ module AsposeCellsCloud
1083
1103
  return data
1084
1104
  end
1085
1105
 
1106
+ # Assemble data files with template files to generate files in various formats.
1086
1107
 
1087
1108
  def post_assemble( post_assemble_request, opts = {})
1088
1109
 
@@ -1202,6 +1223,7 @@ module AsposeCellsCloud
1202
1223
  return data
1203
1224
  end
1204
1225
 
1226
+ # Retrieve descriptions of ListObjects in the worksheet.
1205
1227
 
1206
1228
  def get_worksheet_list_objects( get_worksheet_list_objects_request, opts = {})
1207
1229
 
@@ -1305,6 +1327,7 @@ module AsposeCellsCloud
1305
1327
  return data
1306
1328
  end
1307
1329
 
1330
+ # Retrieve descriptions of OLE objects in the worksheet.
1308
1331
 
1309
1332
  def get_worksheet_ole_objects( get_worksheet_ole_objects_request, opts = {})
1310
1333
 
@@ -1352,6 +1375,7 @@ module AsposeCellsCloud
1352
1375
  return data
1353
1376
  end
1354
1377
 
1378
+ # Retrieve descriptions of vertical page breaks in the worksheet.
1355
1379
 
1356
1380
  def get_vertical_page_breaks( get_vertical_page_breaks_request, opts = {})
1357
1381
 
@@ -1431,6 +1455,7 @@ module AsposeCellsCloud
1431
1455
  return data
1432
1456
  end
1433
1457
 
1458
+ # Retrieve page setup description in the worksheet.
1434
1459
 
1435
1460
  def get_page_setup( get_page_setup_request, opts = {})
1436
1461
 
@@ -1502,6 +1527,7 @@ module AsposeCellsCloud
1502
1527
  return data
1503
1528
  end
1504
1529
 
1530
+ # Retrieve descriptions of pictures in the worksheet.
1505
1531
 
1506
1532
  def get_worksheet_pictures( get_worksheet_pictures_request, opts = {})
1507
1533
 
@@ -1525,6 +1551,14 @@ module AsposeCellsCloud
1525
1551
  return data
1526
1552
  end
1527
1553
 
1554
+ # add new picture in the cells.
1555
+
1556
+ def add_picture_in_cell( add_picture_in_cell_request, opts = {})
1557
+
1558
+ data, _status_code, _headers = add_picture_in_cell_request.create_http_request(@api_client,opts )
1559
+ return data
1560
+ end
1561
+
1528
1562
  # Update a picture by index in the worksheet.
1529
1563
 
1530
1564
  def post_worksheet_picture( post_worksheet_picture_request, opts = {})
@@ -1549,6 +1583,7 @@ module AsposeCellsCloud
1549
1583
  return data
1550
1584
  end
1551
1585
 
1586
+ # Retrieve descriptions of pivottables in the worksheet.
1552
1587
 
1553
1588
  def get_worksheet_pivot_tables( get_worksheet_pivot_tables_request, opts = {})
1554
1589
 
@@ -1716,6 +1751,7 @@ module AsposeCellsCloud
1716
1751
  return data
1717
1752
  end
1718
1753
 
1754
+ # Retrieve descriptions of Excel file properties.
1719
1755
 
1720
1756
  def get_document_properties( get_document_properties_request, opts = {})
1721
1757
 
@@ -1755,6 +1791,7 @@ module AsposeCellsCloud
1755
1791
  return data
1756
1792
  end
1757
1793
 
1794
+ # Excel file digital signature.
1758
1795
 
1759
1796
  def post_digital_signature( post_digital_signature_request, opts = {})
1760
1797
 
@@ -1834,6 +1871,7 @@ module AsposeCellsCloud
1834
1871
  return data
1835
1872
  end
1836
1873
 
1874
+ # Copy content from the source range to the destination range in the worksheet.
1837
1875
 
1838
1876
  def post_worksheet_cells_ranges_copy( post_worksheet_cells_ranges_copy_request, opts = {})
1839
1877
 
@@ -1944,6 +1982,7 @@ module AsposeCellsCloud
1944
1982
  return data
1945
1983
  end
1946
1984
 
1985
+ # Retrieve descriptions of shapes in the worksheet.
1947
1986
 
1948
1987
  def get_worksheet_shapes( get_worksheet_shapes_request, opts = {})
1949
1988
 
@@ -2007,6 +2046,7 @@ module AsposeCellsCloud
2007
2046
  return data
2008
2047
  end
2009
2048
 
2049
+ # Retrieve descriptions of sparkline groups in the worksheet.
2010
2050
 
2011
2051
  def get_worksheet_sparkline_groups( get_worksheet_sparkline_groups_request, opts = {})
2012
2052
 
@@ -2140,6 +2180,7 @@ module AsposeCellsCloud
2140
2180
  return data
2141
2181
  end
2142
2182
 
2183
+ # Retrieve the description of the default style for the workbook .
2143
2184
 
2144
2185
  def get_workbook_default_style( get_workbook_default_style_request, opts = {})
2145
2186
 
@@ -2331,6 +2372,15 @@ module AsposeCellsCloud
2331
2372
  return data
2332
2373
  end
2333
2374
 
2375
+ # Get all style in the workbook.
2376
+
2377
+ def get_all_styles( get_all_styles_request, opts = {})
2378
+
2379
+ data, _status_code, _headers = get_all_styles_request.create_http_request(@api_client,opts )
2380
+ return data
2381
+ end
2382
+
2383
+ # Retrieve the description of worksheets from a workbook.
2334
2384
 
2335
2385
  def get_worksheets( get_worksheets_request, opts = {})
2336
2386
 
@@ -2642,6 +2692,7 @@ module AsposeCellsCloud
2642
2692
  return data
2643
2693
  end
2644
2694
 
2695
+ # Retrieve descriptions of validations in the worksheet.
2645
2696
 
2646
2697
  def get_worksheet_validations( get_worksheet_validations_request, opts = {})
2647
2698
 
@@ -31,7 +31,7 @@ require 'date'
31
31
  module AsposeCellsCloud
32
32
 
33
33
  class ChartPoints
34
- #
34
+ #This class has a property named ChartPointList of type List ChartPoint with an XmlElement attribute "ChartPoint".
35
35
  attr_accessor :chart_point_list
36
36
  #
37
37
  attr_accessor :link
@@ -31,7 +31,7 @@ require 'date'
31
31
  module AsposeCellsCloud
32
32
 
33
33
  class Charts
34
- #
34
+ #A property named ChartList of type List LinkElement that is publicly accessible with both read and write capabilities.
35
35
  attr_accessor :chart_list
36
36
  #
37
37
  attr_accessor :link
@@ -0,0 +1,282 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="ConvertWorkbookOptionsrb.cs">
4
+ Copyright (c) 2025 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 ConvertWorkbookOptions
34
+ #The class has a public property named "Name" with a getter and setter method.
35
+ attr_accessor :name
36
+ #
37
+ attr_accessor :data_source
38
+ #
39
+ attr_accessor :file_info
40
+ #
41
+ attr_accessor :page_setup
42
+ #
43
+ attr_accessor :save_options
44
+ #
45
+ attr_accessor :convert_format
46
+ #
47
+ attr_accessor :check_excel_restriction
48
+
49
+ # Attribute mapping from ruby-style variable name to JSON key.
50
+ def self.attribute_map
51
+ {
52
+ :'name' => :'Name',
53
+ :'data_source' => :'DataSource',
54
+ :'file_info' => :'FileInfo',
55
+ :'page_setup' => :'PageSetup',
56
+ :'save_options' => :'SaveOptions',
57
+ :'convert_format' => :'ConvertFormat',
58
+ :'check_excel_restriction' => :'CheckExcelRestriction'
59
+ }
60
+ end
61
+
62
+ # Attribute type mapping.
63
+ def self.swagger_types
64
+ {
65
+ :'name' => :'String',
66
+ :'data_source' => :'DataSource',
67
+ :'file_info' => :'FileInfo',
68
+ :'page_setup' => :'PageSetup',
69
+ :'save_options' => :'SaveOptions',
70
+ :'convert_format' => :'String',
71
+ :'check_excel_restriction' => :'BOOLEAN'
72
+ }
73
+ end
74
+
75
+ # Initializes the object
76
+ # @param [Hash] attributes Model attributes in the form of hash
77
+ def initialize(attributes = {})
78
+ return unless attributes.is_a?(Hash)
79
+
80
+ # convert string to symbol for hash key
81
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
82
+
83
+ if attributes.has_key?(:'Name')
84
+ self.name = attributes[:'Name']
85
+ end
86
+ if attributes.has_key?(:'DataSource')
87
+ self.data_source = attributes[:'DataSource']
88
+ end
89
+ if attributes.has_key?(:'FileInfo')
90
+ self.file_info = attributes[:'FileInfo']
91
+ end
92
+ if attributes.has_key?(:'PageSetup')
93
+ self.page_setup = attributes[:'PageSetup']
94
+ end
95
+ if attributes.has_key?(:'SaveOptions')
96
+ self.save_options = attributes[:'SaveOptions']
97
+ end
98
+ if attributes.has_key?(:'ConvertFormat')
99
+ self.convert_format = attributes[:'ConvertFormat']
100
+ end
101
+ if attributes.has_key?(:'CheckExcelRestriction')
102
+ self.check_excel_restriction = attributes[:'CheckExcelRestriction']
103
+ end
104
+
105
+ end
106
+
107
+ # Show invalid properties with the reasons. Usually used together with valid?
108
+ # @return Array for valid properies with the reasons
109
+ def list_invalid_properties
110
+ invalid_properties = Array.new
111
+ if @name.nil?
112
+ invalid_properties.push("invalid value for 'name', name cannot be nil.")
113
+ end
114
+ if @data_source.nil?
115
+ invalid_properties.push("invalid value for 'data_source', data_source cannot be nil.")
116
+ end
117
+ if @file_info.nil?
118
+ invalid_properties.push("invalid value for 'file_info', file_info cannot be nil.")
119
+ end
120
+ if @page_setup.nil?
121
+ invalid_properties.push("invalid value for 'page_setup', page_setup cannot be nil.")
122
+ end
123
+ if @save_options.nil?
124
+ invalid_properties.push("invalid value for 'save_options', save_options cannot be nil.")
125
+ end
126
+ if @convert_format.nil?
127
+ invalid_properties.push("invalid value for 'convert_format', convert_format cannot be nil.")
128
+ end
129
+ if @check_excel_restriction.nil?
130
+ invalid_properties.push("invalid value for 'check_excel_restriction', check_excel_restriction cannot be nil.")
131
+ end
132
+
133
+ return invalid_properties
134
+ end
135
+
136
+ # Check to see if the all the properties in the model are valid
137
+ # @return true if the model is valid
138
+ def valid?
139
+ return false if @name.nil?
140
+ return false if @data_source.nil?
141
+ return false if @file_info.nil?
142
+ return false if @page_setup.nil?
143
+ return false if @save_options.nil?
144
+ return false if @convert_format.nil?
145
+ return false if @check_excel_restriction.nil?
146
+ return true
147
+ end
148
+
149
+ # Checks equality by comparing each attribute.
150
+ # @param [Object] Object to be compared
151
+ def ==(o)
152
+ return true if self.equal?(o)
153
+ self.class == o.class &&
154
+ name == o.name &&
155
+ data_source == o.data_source &&
156
+ file_info == o.file_info &&
157
+ page_setup == o.page_setup &&
158
+ save_options == o.save_options &&
159
+ convert_format == o.convert_format &&
160
+ check_excel_restriction == o.check_excel_restriction
161
+ std_dev == o.std_dev
162
+ end
163
+
164
+ # @see the `==` method
165
+ # @param [Object] Object to be compared
166
+ def eql?(o)
167
+ self == o
168
+ end
169
+
170
+ # Calculates hash code according to all attributes.
171
+ # @return [Fixnum] Hash code
172
+ def hash
173
+ [ name , data_source , file_info , page_setup , save_options , convert_format , check_excel_restriction ].hash
174
+ end
175
+
176
+ # Builds the object from hash
177
+ # @param [Hash] attributes Model attributes in the form of hash
178
+ # @return [Object] Returns the model itself
179
+ def build_from_hash(attributes)
180
+ return nil unless attributes.is_a?(Hash)
181
+ self.class.swagger_types.each_pair do |key, type|
182
+ if type =~ /\AArray<(.*)>/i
183
+ # check to ensure the input is an array given that the the attribute
184
+ # is documented as an array but the input is not
185
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
186
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
187
+ end
188
+ elsif !attributes[self.class.attribute_map[key]].nil?
189
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
190
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
191
+ end
192
+
193
+ self
194
+ end
195
+
196
+ # Deserializes the data based on type
197
+ # @param string type Data type
198
+ # @param string value Value to be deserialized
199
+ # @return [Object] Deserialized data
200
+ def _deserialize(type, value)
201
+ case type.to_sym
202
+ when :DateTime
203
+ DateTime.parse(value)
204
+ when :Date
205
+ Date.parse(value)
206
+ when :String
207
+ value.to_s
208
+ when :Integer
209
+ value.to_i
210
+ when :Float
211
+ value.to_f
212
+ when :BOOLEAN
213
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
214
+ true
215
+ else
216
+ false
217
+ end
218
+ when :Object
219
+ # generic object (usually a Hash), return directly
220
+ value
221
+ when /\AArray<(?<inner_type>.+)>\z/
222
+ inner_type = Regexp.last_match[:inner_type]
223
+ value.map { |v| _deserialize(inner_type, v) }
224
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
225
+ k_type = Regexp.last_match[:k_type]
226
+ v_type = Regexp.last_match[:v_type]
227
+ {}.tap do |hash|
228
+ value.each do |k, v|
229
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
230
+ end
231
+ end
232
+ else # model
233
+ temp_model = AsposeCellsCloud.const_get(type).new
234
+ temp_model.build_from_hash(value)
235
+ end
236
+ end
237
+
238
+ # Returns the string representation of the object
239
+ # @return [String] String presentation of the object
240
+ def to_s
241
+ to_hash.to_s
242
+ end
243
+
244
+ # to_body is an alias to to_hash (backward compatibility)
245
+ # @return [Hash] Returns the object in the form of hash
246
+ def to_body
247
+ to_hash
248
+ end
249
+
250
+ # Returns the object in the form of hash
251
+ # @return [Hash] Returns the object in the form of hash
252
+ def to_hash
253
+ hash = {}
254
+ self.class.attribute_map.each_pair do |attr, param|
255
+ value = self.send(attr)
256
+ next if value.nil?
257
+ hash[param] = _to_hash(value)
258
+ end
259
+ hash
260
+ end
261
+
262
+ # Outputs non-array value in the form of hash
263
+ # For object, use to_hash. Otherwise, just return the value
264
+ # @param [Object] value Any valid value
265
+ # @return [Hash] Returns the value in the form of hash
266
+ def _to_hash(value)
267
+ if value.is_a?(Array)
268
+ value.compact.map{ |v| _to_hash(v) }
269
+ elsif value.is_a?(Hash)
270
+ {}.tap do |hash|
271
+ value.each { |k, v| hash[k] = _to_hash(v) }
272
+ end
273
+ elsif value.respond_to? :to_hash
274
+ value.to_hash
275
+ else
276
+ value
277
+ end
278
+ end
279
+
280
+ end
281
+
282
+ end
@@ -31,7 +31,7 @@ require 'date'
31
31
  module AsposeCellsCloud
32
32
 
33
33
  class DataCleansing
34
- #
34
+ #A property named "Ranges" of type IList Range with a default value of an empty List of Range objects.
35
35
  attr_accessor :ranges
36
36
  #Represents whether the data needs to be populated.
37
37
  attr_accessor :need_fill_data