aspose_cells_cloud 25.2 → 25.4

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 (67) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +59 -62
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +66 -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/check_external_reference_options.rb +258 -0
  7. data/lib/aspose_cells_cloud/models/check_formula_error_options.rb +258 -0
  8. data/lib/aspose_cells_cloud/models/checked_external_reference_response.rb +258 -0
  9. data/lib/aspose_cells_cloud/models/checked_formula_errors_response.rb +246 -0
  10. data/lib/aspose_cells_cloud/models/convert_workbook_options.rb +282 -0
  11. data/lib/aspose_cells_cloud/models/data_cleansing.rb +1 -1
  12. data/lib/aspose_cells_cloud/models/dif_save_options.rb +64 -4
  13. data/lib/aspose_cells_cloud/models/docx_save_options.rb +28 -4
  14. data/lib/aspose_cells_cloud/models/files_result.rb +1 -1
  15. data/lib/aspose_cells_cloud/models/html_save_options.rb +64 -4
  16. data/lib/aspose_cells_cloud/models/image_save_options.rb +64 -4
  17. data/lib/aspose_cells_cloud/models/json_save_options.rb +64 -4
  18. data/lib/aspose_cells_cloud/models/m_html_save_options.rb +392 -8
  19. data/lib/aspose_cells_cloud/models/markdown_save_options.rb +64 -4
  20. data/lib/aspose_cells_cloud/models/ods_save_options.rb +100 -4
  21. data/lib/aspose_cells_cloud/models/ooxml_save_options.rb +64 -4
  22. data/lib/aspose_cells_cloud/models/page_sections_response.rb +1 -1
  23. data/lib/aspose_cells_cloud/models/paginated_save_options.rb +28 -4
  24. data/lib/aspose_cells_cloud/models/pdf_save_options.rb +64 -4
  25. data/lib/aspose_cells_cloud/models/pptx_save_options.rb +28 -4
  26. data/lib/aspose_cells_cloud/models/save_files_to_cloud_result.rb +1 -1
  27. data/lib/aspose_cells_cloud/models/save_options.rb +64 -4
  28. data/lib/aspose_cells_cloud/models/shapes.rb +1 -1
  29. data/lib/aspose_cells_cloud/models/specify_cells_object.rb +234 -0
  30. data/lib/aspose_cells_cloud/models/spreadsheet_m_l2003_save_options.rb +64 -4
  31. data/lib/aspose_cells_cloud/models/sql_script_save_options.rb +64 -4
  32. data/lib/aspose_cells_cloud/models/styles.rb +1 -1
  33. data/lib/aspose_cells_cloud/models/styles_response.rb +234 -0
  34. data/lib/aspose_cells_cloud/models/svg_save_options.rb +208 -4
  35. data/lib/aspose_cells_cloud/models/txt_save_options.rb +64 -4
  36. data/lib/aspose_cells_cloud/models/workbook.rb +1 -1
  37. data/lib/aspose_cells_cloud/models/xls_save_options.rb +88 -4
  38. data/lib/aspose_cells_cloud/models/xlsb_save_options.rb +88 -4
  39. data/lib/aspose_cells_cloud/models/xps_save_options.rb +28 -4
  40. data/lib/aspose_cells_cloud/requests/add_picture_in_cell_request.rb +149 -0
  41. data/lib/aspose_cells_cloud/requests/check_workbook_formula_errors_request.rb +103 -0
  42. data/lib/aspose_cells_cloud/requests/check_wrokbook_external_reference_request.rb +103 -0
  43. data/lib/aspose_cells_cloud/requests/get_all_styles_request.rb +117 -0
  44. data/lib/aspose_cells_cloud/requests/get_workbook_request.rb +9 -2
  45. data/lib/aspose_cells_cloud/requests/post_convert_workbook_request.rb +111 -0
  46. data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_docx_request.rb +9 -2
  47. data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_html_request.rb +9 -2
  48. data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_json_request.rb +9 -2
  49. data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_markdown_request.rb +9 -2
  50. data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_pdf_request.rb +9 -2
  51. data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_pptx_request.rb +9 -2
  52. data/lib/aspose_cells_cloud/requests/post_convert_worksheet_to_image_request.rb +10 -2
  53. data/lib/aspose_cells_cloud/requests/post_export_request.rb +9 -2
  54. data/lib/aspose_cells_cloud/requests/post_import_data_request.rb +9 -2
  55. data/lib/aspose_cells_cloud/requests/post_workbook_save_as_request.rb +9 -2
  56. data/lib/aspose_cells_cloud/requests/post_worksheet_cells_range_to_image_request.rb +1 -1
  57. data/lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb +13 -2
  58. data/lib/aspose_cells_cloud/version.rb +1 -1
  59. data/lib/aspose_cells_cloud.rb +12 -0
  60. data/spec/api/batch_controller_spec.rb +23 -0
  61. data/spec/api/pivot_tables_controller_spec.rb +1 -4
  62. data/spec/conversion/conversion_json_spec.rb +0 -22
  63. data/spec/conversion/conversion_png_spec.rb +0 -22
  64. data/spec/conversion/conversion_spec.rb +18 -104
  65. data/spec/document/light_cells_spec.rb +54 -428
  66. data/spec/spec_helper.rb +3 -3
  67. metadata +14 -2
@@ -0,0 +1,149 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="AddPictureInCell_request.rb.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 "uri"
30
+
31
+ module AsposeCellsCloud
32
+ class AddPictureInCellRequest
33
+
34
+ attr_accessor :name
35
+ attr_accessor :sheet_name
36
+ attr_accessor :cell_name
37
+ attr_accessor :picture_path
38
+ attr_accessor :folder
39
+ attr_accessor :storage_name
40
+
41
+ def initialize(attributes = {})
42
+ return unless attributes.is_a?(Hash)
43
+
44
+ # convert string to symbol for hash key
45
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
46
+
47
+ if attributes.has_key?(:'name')
48
+ self.name = attributes[:'name']
49
+ end
50
+ if attributes.has_key?(:'sheetName')
51
+ self.sheet_name = attributes[:'sheetName']
52
+ end
53
+ if attributes.has_key?(:'cellName')
54
+ self.cell_name = attributes[:'cellName']
55
+ end
56
+ if attributes.has_key?(:'picturePath')
57
+ self.picture_path = attributes[:'picturePath']
58
+ end
59
+ if attributes.has_key?(:'folder')
60
+ self.folder = attributes[:'folder']
61
+ end
62
+ if attributes.has_key?(:'storageName')
63
+ self.storage_name = attributes[:'storageName']
64
+ end
65
+
66
+ end
67
+ # Attribute mapping from ruby-style variable name to JSON key.
68
+ def self.attribute_map
69
+ {
70
+ :'name' => :'name',
71
+ :'sheet_name' => :'sheetName',
72
+ :'cell_name' => :'cellName',
73
+ :'picture_path' => :'picturePath',
74
+ :'folder' => :'folder',
75
+ :'storage_name' => :'storageName'
76
+ }
77
+ end
78
+
79
+ # Attribute type mapping.
80
+ def self.swagger_types
81
+ {
82
+ :'name' => :'String',
83
+ :'sheet_name' => :'String',
84
+ :'cell_name' => :'String',
85
+ :'picture_path' => :'String',
86
+ :'folder' => :'String',
87
+ :'storage_name' => :'String'
88
+ }
89
+ end
90
+
91
+ def create_http_request(api_client,opts = {})
92
+ if api_client.config.debugging
93
+ api_client.config.logger.debug "Calling API: CellsApi.add_picture_in_cell ..."
94
+ end
95
+ api_client.request_token_if_needed
96
+ # verify the required parameter 'name' is set
97
+ if api_client.config.client_side_validation && name.nil?
98
+ fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.add_picture_in_cell "
99
+ end
100
+ # verify the required parameter 'sheet_name' is set
101
+ if api_client.config.client_side_validation && sheet_name.nil?
102
+ fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.add_picture_in_cell "
103
+ end
104
+ # verify the required parameter 'cell_name' is set
105
+ if api_client.config.client_side_validation && cell_name.nil?
106
+ fail ArgumentError, "Missing the required parameter 'cell_name' when calling CellsApi.add_picture_in_cell "
107
+ end
108
+ # verify the required parameter 'picture_path' is set
109
+ if api_client.config.client_side_validation && picture_path.nil?
110
+ fail ArgumentError, "Missing the required parameter 'picture_path' when calling CellsApi.add_picture_in_cell "
111
+ end
112
+
113
+ # resource path
114
+ local_var_path = "/cells/{name}/worksheets/{sheetName}/pictures/addPictureInCell".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s)
115
+ # query parameters
116
+ query_params = {}
117
+ query_params[:'cellName'] = self.cell_name if !self.cell_name.nil?
118
+ query_params[:'picturePath'] = self.picture_path if !self.picture_path.nil?
119
+ query_params[:'folder'] = self.folder if !self.folder.nil?
120
+ query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
121
+
122
+ # header parameters
123
+ header_params = {}
124
+ # HTTP header 'Accept' (if needed)
125
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
126
+ # HTTP header 'Content-Type'
127
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
128
+
129
+ # form parameters
130
+ form_params = {}
131
+ post_body = nil
132
+
133
+
134
+ #auth_names = []
135
+ auth_names = ['JWT']
136
+ data, status_code, headers = api_client.call_api(:POST, local_var_path,
137
+ :header_params => header_params,
138
+ :query_params => query_params,
139
+ :form_params => form_params,
140
+ :body => post_body,
141
+ :auth_names => auth_names,
142
+ :return_type => 'CellsCloudResponse')
143
+ if api_client.config.debugging
144
+ api_client.config.logger.debug "API called: Specification.Name>Api.add_picture_in_cell\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
145
+ end
146
+ return data, status_code, headers
147
+ end
148
+ end
149
+ end
@@ -0,0 +1,103 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="CheckWorkbookFormulaErrors_request.rb.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 "uri"
30
+
31
+ module AsposeCellsCloud
32
+ class CheckWorkbookFormulaErrorsRequest
33
+
34
+ attr_accessor :formula_error_options
35
+
36
+ def initialize(attributes = {})
37
+ return unless attributes.is_a?(Hash)
38
+
39
+ # convert string to symbol for hash key
40
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
41
+
42
+ if attributes.has_key?(:'formulaErrorOptions')
43
+ self.formula_error_options = attributes[:'formulaErrorOptions']
44
+ end
45
+
46
+ end
47
+ # Attribute mapping from ruby-style variable name to JSON key.
48
+ def self.attribute_map
49
+ {
50
+ :'formula_error_options' => :'formulaErrorOptions'
51
+ }
52
+ end
53
+
54
+ # Attribute type mapping.
55
+ def self.swagger_types
56
+ {
57
+ :'formula_error_options' => :'CheckFormulaErrorOptions'
58
+ }
59
+ end
60
+
61
+ def create_http_request(api_client,opts = {})
62
+ if api_client.config.debugging
63
+ api_client.config.logger.debug "Calling API: CellsApi.check_workbook_formula_errors ..."
64
+ end
65
+ api_client.request_token_if_needed
66
+ # verify the required parameter 'formula_error_options' is set
67
+ if api_client.config.client_side_validation && formula_error_options.nil?
68
+ fail ArgumentError, "Missing the required parameter 'formula_error_options' when calling CellsApi.check_workbook_formula_errors "
69
+ end
70
+
71
+ # resource path
72
+ local_var_path = "/cells/checkformulaerrors"
73
+ # query parameters
74
+ query_params = {}
75
+ # header parameters
76
+ header_params = {}
77
+ # HTTP header 'Accept' (if needed)
78
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
79
+ # HTTP header 'Content-Type'
80
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
81
+
82
+ # form parameters
83
+ form_params = {}
84
+ post_body = nil
85
+ post_body = api_client.object_to_http_body(formula_error_options)
86
+
87
+
88
+ #auth_names = []
89
+ auth_names = ['JWT']
90
+ data, status_code, headers = api_client.call_api(:POST, local_var_path,
91
+ :header_params => header_params,
92
+ :query_params => query_params,
93
+ :form_params => form_params,
94
+ :body => post_body,
95
+ :auth_names => auth_names,
96
+ :return_type => 'CheckedFormulaErrorsResponse')
97
+ if api_client.config.debugging
98
+ api_client.config.logger.debug "API called: Specification.Name>Api.check_workbook_formula_errors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
99
+ end
100
+ return data, status_code, headers
101
+ end
102
+ end
103
+ end
@@ -0,0 +1,103 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="CheckWrokbookExternalReference_request.rb.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 "uri"
30
+
31
+ module AsposeCellsCloud
32
+ class CheckWrokbookExternalReferenceRequest
33
+
34
+ attr_accessor :check_external_reference_options
35
+
36
+ def initialize(attributes = {})
37
+ return unless attributes.is_a?(Hash)
38
+
39
+ # convert string to symbol for hash key
40
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
41
+
42
+ if attributes.has_key?(:'checkExternalReferenceOptions')
43
+ self.check_external_reference_options = attributes[:'checkExternalReferenceOptions']
44
+ end
45
+
46
+ end
47
+ # Attribute mapping from ruby-style variable name to JSON key.
48
+ def self.attribute_map
49
+ {
50
+ :'check_external_reference_options' => :'checkExternalReferenceOptions'
51
+ }
52
+ end
53
+
54
+ # Attribute type mapping.
55
+ def self.swagger_types
56
+ {
57
+ :'check_external_reference_options' => :'CheckExternalReferenceOptions'
58
+ }
59
+ end
60
+
61
+ def create_http_request(api_client,opts = {})
62
+ if api_client.config.debugging
63
+ api_client.config.logger.debug "Calling API: CellsApi.check_wrokbook_external_reference ..."
64
+ end
65
+ api_client.request_token_if_needed
66
+ # verify the required parameter 'check_external_reference_options' is set
67
+ if api_client.config.client_side_validation && check_external_reference_options.nil?
68
+ fail ArgumentError, "Missing the required parameter 'check_external_reference_options' when calling CellsApi.check_wrokbook_external_reference "
69
+ end
70
+
71
+ # resource path
72
+ local_var_path = "/cells/checkexternalreference"
73
+ # query parameters
74
+ query_params = {}
75
+ # header parameters
76
+ header_params = {}
77
+ # HTTP header 'Accept' (if needed)
78
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
79
+ # HTTP header 'Content-Type'
80
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
81
+
82
+ # form parameters
83
+ form_params = {}
84
+ post_body = nil
85
+ post_body = api_client.object_to_http_body(check_external_reference_options)
86
+
87
+
88
+ #auth_names = []
89
+ auth_names = ['JWT']
90
+ data, status_code, headers = api_client.call_api(:POST, local_var_path,
91
+ :header_params => header_params,
92
+ :query_params => query_params,
93
+ :form_params => form_params,
94
+ :body => post_body,
95
+ :auth_names => auth_names,
96
+ :return_type => 'CheckedExternalReferenceResponse')
97
+ if api_client.config.debugging
98
+ api_client.config.logger.debug "API called: Specification.Name>Api.check_wrokbook_external_reference\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
99
+ end
100
+ return data, status_code, headers
101
+ end
102
+ end
103
+ end
@@ -0,0 +1,117 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="GetAllStyles_request.rb.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 "uri"
30
+
31
+ module AsposeCellsCloud
32
+ class GetAllStylesRequest
33
+
34
+ attr_accessor :name
35
+ attr_accessor :folder
36
+ attr_accessor :storage_name
37
+
38
+ def initialize(attributes = {})
39
+ return unless attributes.is_a?(Hash)
40
+
41
+ # convert string to symbol for hash key
42
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
43
+
44
+ if attributes.has_key?(:'name')
45
+ self.name = attributes[:'name']
46
+ end
47
+ if attributes.has_key?(:'folder')
48
+ self.folder = attributes[:'folder']
49
+ end
50
+ if attributes.has_key?(:'storageName')
51
+ self.storage_name = attributes[:'storageName']
52
+ end
53
+
54
+ end
55
+ # Attribute mapping from ruby-style variable name to JSON key.
56
+ def self.attribute_map
57
+ {
58
+ :'name' => :'name',
59
+ :'folder' => :'folder',
60
+ :'storage_name' => :'storageName'
61
+ }
62
+ end
63
+
64
+ # Attribute type mapping.
65
+ def self.swagger_types
66
+ {
67
+ :'name' => :'String',
68
+ :'folder' => :'String',
69
+ :'storage_name' => :'String'
70
+ }
71
+ end
72
+
73
+ def create_http_request(api_client,opts = {})
74
+ if api_client.config.debugging
75
+ api_client.config.logger.debug "Calling API: CellsApi.get_all_styles ..."
76
+ end
77
+ api_client.request_token_if_needed
78
+ # verify the required parameter 'name' is set
79
+ if api_client.config.client_side_validation && name.nil?
80
+ fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.get_all_styles "
81
+ end
82
+
83
+ # resource path
84
+ local_var_path = "/cells/{name}/allstyles".sub('{' + 'name' + '}', name.to_s)
85
+ # query parameters
86
+ query_params = {}
87
+ query_params[:'folder'] = self.folder if !self.folder.nil?
88
+ query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
89
+
90
+ # header parameters
91
+ header_params = {}
92
+ # HTTP header 'Accept' (if needed)
93
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
94
+ # HTTP header 'Content-Type'
95
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
96
+
97
+ # form parameters
98
+ form_params = {}
99
+ post_body = nil
100
+
101
+
102
+ #auth_names = []
103
+ auth_names = ['JWT']
104
+ data, status_code, headers = api_client.call_api(:GET, local_var_path,
105
+ :header_params => header_params,
106
+ :query_params => query_params,
107
+ :form_params => form_params,
108
+ :body => post_body,
109
+ :auth_names => auth_names,
110
+ :return_type => 'StylesResponse')
111
+ if api_client.config.debugging
112
+ api_client.config.logger.debug "API called: Specification.Name>Api.get_all_styles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
113
+ end
114
+ return data, status_code, headers
115
+ end
116
+ end
117
+ end
@@ -44,6 +44,7 @@ module AsposeCellsCloud
44
44
  attr_accessor :region
45
45
  attr_accessor :page_wide_fit_on_per_sheet
46
46
  attr_accessor :page_tall_fit_on_per_sheet
47
+ attr_accessor :fonts_location
47
48
 
48
49
  def initialize(attributes = {})
49
50
  return unless attributes.is_a?(Hash)
@@ -90,6 +91,9 @@ module AsposeCellsCloud
90
91
  if attributes.has_key?(:'pageTallFitOnPerSheet')
91
92
  self.page_tall_fit_on_per_sheet = attributes[:'pageTallFitOnPerSheet']
92
93
  end
94
+ if attributes.has_key?(:'FontsLocation')
95
+ self.fonts_location = attributes[:'FontsLocation']
96
+ end
93
97
 
94
98
  end
95
99
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -107,7 +111,8 @@ module AsposeCellsCloud
107
111
  :'check_excel_restriction' => :'checkExcelRestriction',
108
112
  :'region' => :'region',
109
113
  :'page_wide_fit_on_per_sheet' => :'pageWideFitOnPerSheet',
110
- :'page_tall_fit_on_per_sheet' => :'pageTallFitOnPerSheet'
114
+ :'page_tall_fit_on_per_sheet' => :'pageTallFitOnPerSheet',
115
+ :'fonts_location' => :'FontsLocation'
111
116
  }
112
117
  end
113
118
 
@@ -126,7 +131,8 @@ module AsposeCellsCloud
126
131
  :'check_excel_restriction' => :'BOOLEAN',
127
132
  :'region' => :'String',
128
133
  :'page_wide_fit_on_per_sheet' => :'BOOLEAN',
129
- :'page_tall_fit_on_per_sheet' => :'BOOLEAN'
134
+ :'page_tall_fit_on_per_sheet' => :'BOOLEAN',
135
+ :'fonts_location' => :'String'
130
136
  }
131
137
  end
132
138
 
@@ -156,6 +162,7 @@ module AsposeCellsCloud
156
162
  query_params[:'region'] = self.region if !self.region.nil?
157
163
  query_params[:'pageWideFitOnPerSheet'] = self.page_wide_fit_on_per_sheet if !self.page_wide_fit_on_per_sheet.nil?
158
164
  query_params[:'pageTallFitOnPerSheet'] = self.page_tall_fit_on_per_sheet if !self.page_tall_fit_on_per_sheet.nil?
165
+ query_params[:'FontsLocation'] = self.fonts_location if !self.fonts_location.nil?
159
166
 
160
167
  # header parameters
161
168
  header_params = {}
@@ -0,0 +1,111 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="PostConvertWorkbook_request.rb.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 "uri"
30
+
31
+ module AsposeCellsCloud
32
+ class PostConvertWorkbookRequest
33
+
34
+ attr_accessor :convert_workbook_options
35
+ attr_accessor :fonts_location
36
+
37
+ def initialize(attributes = {})
38
+ return unless attributes.is_a?(Hash)
39
+
40
+ # convert string to symbol for hash key
41
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
42
+
43
+ if attributes.has_key?(:'convertWorkbookOptions')
44
+ self.convert_workbook_options = attributes[:'convertWorkbookOptions']
45
+ end
46
+ if attributes.has_key?(:'FontsLocation')
47
+ self.fonts_location = attributes[:'FontsLocation']
48
+ end
49
+
50
+ end
51
+ # Attribute mapping from ruby-style variable name to JSON key.
52
+ def self.attribute_map
53
+ {
54
+ :'convert_workbook_options' => :'convertWorkbookOptions',
55
+ :'fonts_location' => :'FontsLocation'
56
+ }
57
+ end
58
+
59
+ # Attribute type mapping.
60
+ def self.swagger_types
61
+ {
62
+ :'convert_workbook_options' => :'ConvertWorkbookOptions',
63
+ :'fonts_location' => :'String'
64
+ }
65
+ end
66
+
67
+ def create_http_request(api_client,opts = {})
68
+ if api_client.config.debugging
69
+ api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook ..."
70
+ end
71
+ api_client.request_token_if_needed
72
+ # verify the required parameter 'convert_workbook_options' is set
73
+ if api_client.config.client_side_validation && convert_workbook_options.nil?
74
+ fail ArgumentError, "Missing the required parameter 'convert_workbook_options' when calling CellsApi.post_convert_workbook "
75
+ end
76
+
77
+ # resource path
78
+ local_var_path = "/cells/convertWorkbook"
79
+ # query parameters
80
+ query_params = {}
81
+ query_params[:'FontsLocation'] = self.fonts_location if !self.fonts_location.nil?
82
+
83
+ # header parameters
84
+ header_params = {}
85
+ # HTTP header 'Accept' (if needed)
86
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
87
+ # HTTP header 'Content-Type'
88
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
89
+
90
+ # form parameters
91
+ form_params = {}
92
+ post_body = nil
93
+ post_body = api_client.object_to_http_body(convert_workbook_options)
94
+
95
+
96
+ #auth_names = []
97
+ auth_names = ['JWT']
98
+ data, status_code, headers = api_client.call_api(:POST, local_var_path,
99
+ :header_params => header_params,
100
+ :query_params => query_params,
101
+ :form_params => form_params,
102
+ :body => post_body,
103
+ :auth_names => auth_names,
104
+ :return_type => 'FileInfo')
105
+ if api_client.config.debugging
106
+ api_client.config.logger.debug "API called: Specification.Name>Api.post_convert_workbook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
107
+ end
108
+ return data, status_code, headers
109
+ end
110
+ end
111
+ end
@@ -35,6 +35,7 @@ module AsposeCellsCloud
35
35
  attr_accessor :password
36
36
  attr_accessor :check_excel_restriction
37
37
  attr_accessor :region
38
+ attr_accessor :fonts_location
38
39
 
39
40
  def initialize(attributes = {})
40
41
  return unless attributes.is_a?(Hash)
@@ -54,6 +55,9 @@ module AsposeCellsCloud
54
55
  if attributes.has_key?(:'region')
55
56
  self.region = attributes[:'region']
56
57
  end
58
+ if attributes.has_key?(:'FontsLocation')
59
+ self.fonts_location = attributes[:'FontsLocation']
60
+ end
57
61
 
58
62
  end
59
63
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -62,7 +66,8 @@ module AsposeCellsCloud
62
66
  :'file' => :'File',
63
67
  :'password' => :'password',
64
68
  :'check_excel_restriction' => :'checkExcelRestriction',
65
- :'region' => :'region'
69
+ :'region' => :'region',
70
+ :'fonts_location' => :'FontsLocation'
66
71
  }
67
72
  end
68
73
 
@@ -72,7 +77,8 @@ module AsposeCellsCloud
72
77
  :'file' => :'Hash',
73
78
  :'password' => :'String',
74
79
  :'check_excel_restriction' => :'BOOLEAN',
75
- :'region' => :'String'
80
+ :'region' => :'String',
81
+ :'fonts_location' => :'String'
76
82
  }
77
83
  end
78
84
 
@@ -93,6 +99,7 @@ module AsposeCellsCloud
93
99
  query_params[:'password'] = self.password if !self.password.nil?
94
100
  query_params[:'checkExcelRestriction'] = self.check_excel_restriction if !self.check_excel_restriction.nil?
95
101
  query_params[:'region'] = self.region if !self.region.nil?
102
+ query_params[:'FontsLocation'] = self.fonts_location if !self.fonts_location.nil?
96
103
 
97
104
  # header parameters
98
105
  header_params = {}