aspose_cells_cloud 26.3.1 → 26.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 (105) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -11
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +24 -0
  4. data/lib/aspose_cells_cloud/requests/accept_all_revisions_request.rb +1 -0
  5. data/lib/aspose_cells_cloud/requests/add_text_request.rb +1 -0
  6. data/lib/aspose_cells_cloud/requests/add_worksheet_to_spreadsheet_request.rb +1 -0
  7. data/lib/aspose_cells_cloud/requests/aggregate_cells_by_color_request.rb +1 -0
  8. data/lib/aspose_cells_cloud/requests/compress_spreadsheet_request.rb +1 -0
  9. data/lib/aspose_cells_cloud/requests/convert_chart_to_image_request.rb +1 -0
  10. data/lib/aspose_cells_cloud/requests/convert_chart_to_pdf_request.rb +1 -0
  11. data/lib/aspose_cells_cloud/requests/convert_range_to_csv_request.rb +1 -0
  12. data/lib/aspose_cells_cloud/requests/convert_range_to_html_request.rb +1 -0
  13. data/lib/aspose_cells_cloud/requests/convert_range_to_image_request.rb +1 -0
  14. data/lib/aspose_cells_cloud/requests/convert_range_to_json_request.rb +1 -0
  15. data/lib/aspose_cells_cloud/requests/convert_range_to_pdf_request.rb +1 -0
  16. data/lib/aspose_cells_cloud/requests/convert_spreadsheet_request.rb +1 -0
  17. data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_csv_request.rb +1 -0
  18. data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_json_request.rb +1 -0
  19. data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_pdf_request.rb +1 -0
  20. data/lib/aspose_cells_cloud/requests/convert_table_to_csv_request.rb +1 -0
  21. data/lib/aspose_cells_cloud/requests/convert_table_to_html_request.rb +1 -0
  22. data/lib/aspose_cells_cloud/requests/convert_table_to_image_request.rb +1 -0
  23. data/lib/aspose_cells_cloud/requests/convert_table_to_json_request.rb +1 -0
  24. data/lib/aspose_cells_cloud/requests/convert_table_to_pdf_request.rb +1 -0
  25. data/lib/aspose_cells_cloud/requests/convert_text_request.rb +1 -0
  26. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_csv_request.rb +1 -0
  27. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_html_request.rb +1 -0
  28. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_html_table_request.rb +1 -0
  29. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_image_request.rb +1 -0
  30. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_json_request.rb +1 -0
  31. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_pdf_request.rb +1 -0
  32. data/lib/aspose_cells_cloud/requests/delete_metadata_request.rb +5 -2
  33. data/lib/aspose_cells_cloud/requests/delete_worksheet_from_spreadsheet_request.rb +1 -0
  34. data/lib/aspose_cells_cloud/requests/extract_text_request.rb +1 -0
  35. data/lib/aspose_cells_cloud/requests/flip_data_request.rb +1 -0
  36. data/lib/aspose_cells_cloud/requests/get_merged_cells_in_worksheet_request.rb +1 -0
  37. data/lib/aspose_cells_cloud/requests/get_metadata_request.rb +5 -2
  38. data/lib/aspose_cells_cloud/requests/get_worksheets_with_local_spreadsheet_request.rb +1 -0
  39. data/lib/aspose_cells_cloud/requests/import_csv_data_into_spreadsheet_request.rb +1 -0
  40. data/lib/aspose_cells_cloud/requests/import_data_into_spreadsheet_request.rb +1 -0
  41. data/lib/aspose_cells_cloud/requests/import_json_data_into_spreadsheet_request.rb +1 -0
  42. data/lib/aspose_cells_cloud/requests/import_xml_data_into_spreadsheet_request.rb +1 -0
  43. data/lib/aspose_cells_cloud/requests/math_calculate_request.rb +1 -0
  44. data/lib/aspose_cells_cloud/requests/merge_spreadsheets_request.rb +1 -0
  45. data/lib/aspose_cells_cloud/requests/move_worksheet_in_spreadsheet_request.rb +1 -0
  46. data/lib/aspose_cells_cloud/requests/post_assemble_request.rb +1 -0
  47. data/lib/aspose_cells_cloud/requests/post_clear_objects_request.rb +5 -2
  48. data/lib/aspose_cells_cloud/requests/post_compress_request.rb +5 -2
  49. data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_csv_request.rb +5 -2
  50. data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_docx_request.rb +5 -2
  51. data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_html_request.rb +5 -2
  52. data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_json_request.rb +5 -2
  53. data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_markdown_request.rb +5 -2
  54. data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_pdf_request.rb +5 -2
  55. data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_png_request.rb +5 -2
  56. data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_pptx_request.rb +5 -2
  57. data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_sql_request.rb +5 -2
  58. data/lib/aspose_cells_cloud/requests/post_export_request.rb +5 -2
  59. data/lib/aspose_cells_cloud/requests/post_import_request.rb +5 -2
  60. data/lib/aspose_cells_cloud/requests/post_lock_request.rb +5 -2
  61. data/lib/aspose_cells_cloud/requests/post_merge_request.rb +1 -0
  62. data/lib/aspose_cells_cloud/requests/post_metadata_request.rb +5 -2
  63. data/lib/aspose_cells_cloud/requests/post_protect_request.rb +5 -2
  64. data/lib/aspose_cells_cloud/requests/post_repair_request.rb +5 -2
  65. data/lib/aspose_cells_cloud/requests/post_replace_request.rb +5 -2
  66. data/lib/aspose_cells_cloud/requests/post_reverse_request.rb +5 -2
  67. data/lib/aspose_cells_cloud/requests/post_rotate_request.rb +5 -2
  68. data/lib/aspose_cells_cloud/requests/post_search_request.rb +5 -2
  69. data/lib/aspose_cells_cloud/requests/post_split_request.rb +5 -2
  70. data/lib/aspose_cells_cloud/requests/post_unlock_request.rb +5 -2
  71. data/lib/aspose_cells_cloud/requests/post_watermark_request.rb +5 -2
  72. data/lib/aspose_cells_cloud/requests/protect_spreadsheet_request.rb +1 -0
  73. data/lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb +5 -2
  74. data/lib/aspose_cells_cloud/requests/put_workbook_background_request.rb +4 -3
  75. data/lib/aspose_cells_cloud/requests/put_worksheet_background_request.rb +4 -3
  76. data/lib/aspose_cells_cloud/requests/remove_characters_by_position_request.rb +1 -0
  77. data/lib/aspose_cells_cloud/requests/remove_characters_request.rb +1 -0
  78. data/lib/aspose_cells_cloud/requests/remove_duplicate_substrings_request.rb +1 -0
  79. data/lib/aspose_cells_cloud/requests/remove_duplicates_request.rb +1 -0
  80. data/lib/aspose_cells_cloud/requests/remove_spreadsheet_blank_columns_request.rb +1 -0
  81. data/lib/aspose_cells_cloud/requests/remove_spreadsheet_blank_rows_request.rb +1 -0
  82. data/lib/aspose_cells_cloud/requests/remove_spreadsheet_blank_worksheets_request.rb +1 -0
  83. data/lib/aspose_cells_cloud/requests/rename_worksheet_in_spreadsheet_request.rb +1 -0
  84. data/lib/aspose_cells_cloud/requests/repair_spreadsheet_request.rb +1 -0
  85. data/lib/aspose_cells_cloud/requests/replace_spreadsheet_content_request.rb +1 -0
  86. data/lib/aspose_cells_cloud/requests/search_spreadsheet_all_text_items_request.rb +1 -0
  87. data/lib/aspose_cells_cloud/requests/search_spreadsheet_broken_links_request.rb +1 -0
  88. data/lib/aspose_cells_cloud/requests/search_spreadsheet_content_request.rb +1 -0
  89. data/lib/aspose_cells_cloud/requests/split_spreadsheet_request.rb +1 -0
  90. data/lib/aspose_cells_cloud/requests/split_table_request.rb +1 -0
  91. data/lib/aspose_cells_cloud/requests/split_text_request.rb +1 -0
  92. data/lib/aspose_cells_cloud/requests/spreadsheet_digitalsignature_request.rb +1 -0
  93. data/lib/aspose_cells_cloud/requests/swap_range_request.rb +1 -0
  94. data/lib/aspose_cells_cloud/requests/translate_spreadsheet_request.rb +1 -0
  95. data/lib/aspose_cells_cloud/requests/translate_text_file_request.rb +1 -0
  96. data/lib/aspose_cells_cloud/requests/transpose_data_request.rb +163 -0
  97. data/lib/aspose_cells_cloud/requests/trim_character_request.rb +1 -0
  98. data/lib/aspose_cells_cloud/requests/unpivot_range_request.rb +171 -0
  99. data/lib/aspose_cells_cloud/requests/unpivot_table_request.rb +171 -0
  100. data/lib/aspose_cells_cloud/requests/unprotect_spreadsheet_request.rb +1 -0
  101. data/lib/aspose_cells_cloud/requests/update_word_case_request.rb +1 -0
  102. data/lib/aspose_cells_cloud/requests/upload_file_request.rb +1 -0
  103. data/lib/aspose_cells_cloud/version.rb +1 -1
  104. data/lib/aspose_cells_cloud.rb +3 -0
  105. metadata +5 -2
@@ -0,0 +1,163 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="TransposeData_request.rb.cs">
4
+ Copyright (c) 2026 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 TransposeDataRequest
33
+
34
+ attr_accessor :spreadsheet
35
+ attr_accessor :worksheet
36
+ attr_accessor :cell_area
37
+ attr_accessor :out_path
38
+ attr_accessor :out_storage_name
39
+ attr_accessor :region
40
+ attr_accessor :password
41
+
42
+ def initialize(attributes = {})
43
+ return unless attributes.is_a?(Hash)
44
+
45
+ # convert string to symbol for hash key
46
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
47
+
48
+ if attributes.has_key?(:'Spreadsheet')
49
+ self.spreadsheet = attributes[:'Spreadsheet']
50
+ end
51
+
52
+ if attributes.has_key?(:'worksheet')
53
+ self.worksheet = attributes[:'worksheet']
54
+ end
55
+
56
+ if attributes.has_key?(:'cellArea')
57
+ self.cell_area = attributes[:'cellArea']
58
+ end
59
+
60
+ if attributes.has_key?(:'outPath')
61
+ self.out_path = attributes[:'outPath']
62
+ end
63
+
64
+ if attributes.has_key?(:'outStorageName')
65
+ self.out_storage_name = attributes[:'outStorageName']
66
+ end
67
+
68
+ if attributes.has_key?(:'region')
69
+ self.region = attributes[:'region']
70
+ end
71
+
72
+ if attributes.has_key?(:'password')
73
+ self.password = attributes[:'password']
74
+ end
75
+
76
+ end
77
+ # Attribute mapping from ruby-style variable name to JSON key.
78
+ def self.attribute_map
79
+ {
80
+ :'spreadsheet' => :'Spreadsheet',
81
+ :'worksheet' => :'worksheet',
82
+ :'cell_area' => :'cellArea',
83
+ :'out_path' => :'outPath',
84
+ :'out_storage_name' => :'outStorageName',
85
+ :'region' => :'region',
86
+ :'password' => :'password'
87
+ }
88
+ end
89
+
90
+ # Attribute type mapping.
91
+ def self.swagger_types
92
+ {
93
+ :'spreadsheet' => :'String',
94
+ :'worksheet' => :'String',
95
+ :'cell_area' => :'String',
96
+ :'out_path' => :'String',
97
+ :'out_storage_name' => :'String',
98
+ :'region' => :'String',
99
+ :'password' => :'String'
100
+ }
101
+ end
102
+
103
+ def create_http_request(api_client,opts = {})
104
+ if api_client.config.debugging
105
+ api_client.config.logger.debug "Calling API: CellsApi.transpose_data ..."
106
+ end
107
+ api_client.request_token_if_needed
108
+ # verify the required parameter 'spreadsheet' is set
109
+ if api_client.config.client_side_validation && spreadsheet.nil?
110
+ fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.transpose_data "
111
+ end
112
+ # verify the required parameter 'worksheet' is set
113
+ if api_client.config.client_side_validation && worksheet.nil?
114
+ fail ArgumentError, "Missing the required parameter 'worksheet' when calling CellsApi.transpose_data "
115
+ end
116
+ # verify the required parameter 'cell_area' is set
117
+ if api_client.config.client_side_validation && cell_area.nil?
118
+ fail ArgumentError, "Missing the required parameter 'cell_area' when calling CellsApi.transpose_data "
119
+ end
120
+
121
+ # resource path
122
+ local_var_path = "v4.0/cells/transpose"
123
+ # query parameters
124
+ query_params = {}
125
+ query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
126
+ query_params[:'cellArea'] = self.cell_area if !self.cell_area.nil?
127
+ query_params[:'outPath'] = self.out_path if !self.out_path.nil?
128
+ query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
129
+ query_params[:'region'] = self.region if !self.region.nil?
130
+ query_params[:'password'] = self.password if !self.password.nil?
131
+
132
+ # header parameters
133
+ header_params = {}
134
+ # HTTP header 'Accept' (if needed)
135
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
136
+ # HTTP header 'Content-Type'
137
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
138
+
139
+ # form parameters
140
+ form_params = {}
141
+ post_body = nil
142
+
143
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
144
+ if !spreadsheet.empty? && File.exist?(spreadsheet )
145
+ form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
146
+ end
147
+
148
+ #auth_names = []
149
+ auth_names = ['JWT']
150
+ data, status_code, headers = api_client.call_api(:PUT, local_var_path,
151
+ :header_params => header_params,
152
+ :query_params => query_params,
153
+ :form_params => form_params,
154
+ :body => post_body,
155
+ :auth_names => auth_names,
156
+ :return_type => 'File')
157
+ if api_client.config.debugging
158
+ api_client.config.logger.debug "API called: Specification.Name>Api.transpose_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
159
+ end
160
+ return data, status_code, headers
161
+ end
162
+ end
163
+ end
@@ -187,6 +187,7 @@ module AsposeCellsCloud
187
187
  # form parameters
188
188
  form_params = {}
189
189
  post_body = nil
190
+
190
191
  header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
191
192
  if !spreadsheet.empty? && File.exist?(spreadsheet )
192
193
  form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
@@ -0,0 +1,171 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="UnpivotRange_request.rb.cs">
4
+ Copyright (c) 2026 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 UnpivotRangeRequest
33
+
34
+ attr_accessor :spreadsheet
35
+ attr_accessor :worksheet
36
+ attr_accessor :cell_area
37
+ attr_accessor :skip_empty_value
38
+ attr_accessor :out_path
39
+ attr_accessor :out_storage_name
40
+ attr_accessor :region
41
+ attr_accessor :password
42
+
43
+ def initialize(attributes = {})
44
+ return unless attributes.is_a?(Hash)
45
+
46
+ # convert string to symbol for hash key
47
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
48
+
49
+ if attributes.has_key?(:'Spreadsheet')
50
+ self.spreadsheet = attributes[:'Spreadsheet']
51
+ end
52
+
53
+ if attributes.has_key?(:'worksheet')
54
+ self.worksheet = attributes[:'worksheet']
55
+ end
56
+
57
+ if attributes.has_key?(:'cellArea')
58
+ self.cell_area = attributes[:'cellArea']
59
+ end
60
+
61
+ if attributes.has_key?(:'skipEmptyValue')
62
+ self.skip_empty_value = attributes[:'skipEmptyValue']
63
+ end
64
+
65
+ if attributes.has_key?(:'outPath')
66
+ self.out_path = attributes[:'outPath']
67
+ end
68
+
69
+ if attributes.has_key?(:'outStorageName')
70
+ self.out_storage_name = attributes[:'outStorageName']
71
+ end
72
+
73
+ if attributes.has_key?(:'region')
74
+ self.region = attributes[:'region']
75
+ end
76
+
77
+ if attributes.has_key?(:'password')
78
+ self.password = attributes[:'password']
79
+ end
80
+
81
+ end
82
+ # Attribute mapping from ruby-style variable name to JSON key.
83
+ def self.attribute_map
84
+ {
85
+ :'spreadsheet' => :'Spreadsheet',
86
+ :'worksheet' => :'worksheet',
87
+ :'cell_area' => :'cellArea',
88
+ :'skip_empty_value' => :'skipEmptyValue',
89
+ :'out_path' => :'outPath',
90
+ :'out_storage_name' => :'outStorageName',
91
+ :'region' => :'region',
92
+ :'password' => :'password'
93
+ }
94
+ end
95
+
96
+ # Attribute type mapping.
97
+ def self.swagger_types
98
+ {
99
+ :'spreadsheet' => :'String',
100
+ :'worksheet' => :'String',
101
+ :'cell_area' => :'String',
102
+ :'skip_empty_value' => :'BOOLEAN',
103
+ :'out_path' => :'String',
104
+ :'out_storage_name' => :'String',
105
+ :'region' => :'String',
106
+ :'password' => :'String'
107
+ }
108
+ end
109
+
110
+ def create_http_request(api_client,opts = {})
111
+ if api_client.config.debugging
112
+ api_client.config.logger.debug "Calling API: CellsApi.unpivot_range ..."
113
+ end
114
+ api_client.request_token_if_needed
115
+ # verify the required parameter 'spreadsheet' is set
116
+ if api_client.config.client_side_validation && spreadsheet.nil?
117
+ fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.unpivot_range "
118
+ end
119
+ # verify the required parameter 'worksheet' is set
120
+ if api_client.config.client_side_validation && worksheet.nil?
121
+ fail ArgumentError, "Missing the required parameter 'worksheet' when calling CellsApi.unpivot_range "
122
+ end
123
+ # verify the required parameter 'cell_area' is set
124
+ if api_client.config.client_side_validation && cell_area.nil?
125
+ fail ArgumentError, "Missing the required parameter 'cell_area' when calling CellsApi.unpivot_range "
126
+ end
127
+
128
+ # resource path
129
+ local_var_path = "v4.0/cells/unpivot/range"
130
+ # query parameters
131
+ query_params = {}
132
+ query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
133
+ query_params[:'cellArea'] = self.cell_area if !self.cell_area.nil?
134
+ query_params[:'skipEmptyValue'] = self.skip_empty_value if !self.skip_empty_value.nil?
135
+ query_params[:'outPath'] = self.out_path if !self.out_path.nil?
136
+ query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
137
+ query_params[:'region'] = self.region if !self.region.nil?
138
+ query_params[:'password'] = self.password if !self.password.nil?
139
+
140
+ # header parameters
141
+ header_params = {}
142
+ # HTTP header 'Accept' (if needed)
143
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
144
+ # HTTP header 'Content-Type'
145
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
146
+
147
+ # form parameters
148
+ form_params = {}
149
+ post_body = nil
150
+
151
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
152
+ if !spreadsheet.empty? && File.exist?(spreadsheet )
153
+ form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
154
+ end
155
+
156
+ #auth_names = []
157
+ auth_names = ['JWT']
158
+ data, status_code, headers = api_client.call_api(:PUT, local_var_path,
159
+ :header_params => header_params,
160
+ :query_params => query_params,
161
+ :form_params => form_params,
162
+ :body => post_body,
163
+ :auth_names => auth_names,
164
+ :return_type => 'File')
165
+ if api_client.config.debugging
166
+ api_client.config.logger.debug "API called: Specification.Name>Api.unpivot_range\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
167
+ end
168
+ return data, status_code, headers
169
+ end
170
+ end
171
+ end
@@ -0,0 +1,171 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="UnpivotTable_request.rb.cs">
4
+ Copyright (c) 2026 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 UnpivotTableRequest
33
+
34
+ attr_accessor :spreadsheet
35
+ attr_accessor :worksheet
36
+ attr_accessor :index
37
+ attr_accessor :skip_empty_value
38
+ attr_accessor :out_path
39
+ attr_accessor :out_storage_name
40
+ attr_accessor :region
41
+ attr_accessor :password
42
+
43
+ def initialize(attributes = {})
44
+ return unless attributes.is_a?(Hash)
45
+
46
+ # convert string to symbol for hash key
47
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
48
+
49
+ if attributes.has_key?(:'Spreadsheet')
50
+ self.spreadsheet = attributes[:'Spreadsheet']
51
+ end
52
+
53
+ if attributes.has_key?(:'worksheet')
54
+ self.worksheet = attributes[:'worksheet']
55
+ end
56
+
57
+ if attributes.has_key?(:'index')
58
+ self.index = attributes[:'index']
59
+ end
60
+
61
+ if attributes.has_key?(:'skipEmptyValue')
62
+ self.skip_empty_value = attributes[:'skipEmptyValue']
63
+ end
64
+
65
+ if attributes.has_key?(:'outPath')
66
+ self.out_path = attributes[:'outPath']
67
+ end
68
+
69
+ if attributes.has_key?(:'outStorageName')
70
+ self.out_storage_name = attributes[:'outStorageName']
71
+ end
72
+
73
+ if attributes.has_key?(:'region')
74
+ self.region = attributes[:'region']
75
+ end
76
+
77
+ if attributes.has_key?(:'password')
78
+ self.password = attributes[:'password']
79
+ end
80
+
81
+ end
82
+ # Attribute mapping from ruby-style variable name to JSON key.
83
+ def self.attribute_map
84
+ {
85
+ :'spreadsheet' => :'Spreadsheet',
86
+ :'worksheet' => :'worksheet',
87
+ :'index' => :'index',
88
+ :'skip_empty_value' => :'skipEmptyValue',
89
+ :'out_path' => :'outPath',
90
+ :'out_storage_name' => :'outStorageName',
91
+ :'region' => :'region',
92
+ :'password' => :'password'
93
+ }
94
+ end
95
+
96
+ # Attribute type mapping.
97
+ def self.swagger_types
98
+ {
99
+ :'spreadsheet' => :'String',
100
+ :'worksheet' => :'String',
101
+ :'index' => :'Integer',
102
+ :'skip_empty_value' => :'BOOLEAN',
103
+ :'out_path' => :'String',
104
+ :'out_storage_name' => :'String',
105
+ :'region' => :'String',
106
+ :'password' => :'String'
107
+ }
108
+ end
109
+
110
+ def create_http_request(api_client,opts = {})
111
+ if api_client.config.debugging
112
+ api_client.config.logger.debug "Calling API: CellsApi.unpivot_table ..."
113
+ end
114
+ api_client.request_token_if_needed
115
+ # verify the required parameter 'spreadsheet' is set
116
+ if api_client.config.client_side_validation && spreadsheet.nil?
117
+ fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.unpivot_table "
118
+ end
119
+ # verify the required parameter 'worksheet' is set
120
+ if api_client.config.client_side_validation && worksheet.nil?
121
+ fail ArgumentError, "Missing the required parameter 'worksheet' when calling CellsApi.unpivot_table "
122
+ end
123
+ # verify the required parameter 'index' is set
124
+ if api_client.config.client_side_validation && index.nil?
125
+ fail ArgumentError, "Missing the required parameter 'index' when calling CellsApi.unpivot_table "
126
+ end
127
+
128
+ # resource path
129
+ local_var_path = "v4.0/cells/unpivot/table"
130
+ # query parameters
131
+ query_params = {}
132
+ query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
133
+ query_params[:'index'] = self.index if !self.index.nil?
134
+ query_params[:'skipEmptyValue'] = self.skip_empty_value if !self.skip_empty_value.nil?
135
+ query_params[:'outPath'] = self.out_path if !self.out_path.nil?
136
+ query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
137
+ query_params[:'region'] = self.region if !self.region.nil?
138
+ query_params[:'password'] = self.password if !self.password.nil?
139
+
140
+ # header parameters
141
+ header_params = {}
142
+ # HTTP header 'Accept' (if needed)
143
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
144
+ # HTTP header 'Content-Type'
145
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
146
+
147
+ # form parameters
148
+ form_params = {}
149
+ post_body = nil
150
+
151
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
152
+ if !spreadsheet.empty? && File.exist?(spreadsheet )
153
+ form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
154
+ end
155
+
156
+ #auth_names = []
157
+ auth_names = ['JWT']
158
+ data, status_code, headers = api_client.call_api(:PUT, local_var_path,
159
+ :header_params => header_params,
160
+ :query_params => query_params,
161
+ :form_params => form_params,
162
+ :body => post_body,
163
+ :auth_names => auth_names,
164
+ :return_type => 'File')
165
+ if api_client.config.debugging
166
+ api_client.config.logger.debug "API called: Specification.Name>Api.unpivot_table\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
167
+ end
168
+ return data, status_code, headers
169
+ end
170
+ end
171
+ end
@@ -131,6 +131,7 @@ module AsposeCellsCloud
131
131
  # form parameters
132
132
  form_params = {}
133
133
  post_body = nil
134
+
134
135
  header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
135
136
  if !spreadsheet.empty? && File.exist?(spreadsheet )
136
137
  form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
@@ -143,6 +143,7 @@ module AsposeCellsCloud
143
143
  # form parameters
144
144
  form_params = {}
145
145
  post_body = nil
146
+
146
147
  header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
147
148
  if !spreadsheet.empty? && File.exist?(spreadsheet )
148
149
  form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
@@ -102,6 +102,7 @@ module AsposeCellsCloud
102
102
  # form parameters
103
103
  form_params = {}
104
104
  post_body = nil
105
+
105
106
  header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
106
107
  if !upload_files.empty? && File.exist?(upload_files )
107
108
  form_params[File.basename(upload_files)] = ::File.open(upload_files,"r")
@@ -27,5 +27,5 @@
27
27
 
28
28
 
29
29
  module AsposeCellsCloud
30
- VERSION = "26.3.1"
30
+ VERSION = "26.4"
31
31
  end
@@ -577,6 +577,9 @@ require 'aspose_cells_cloud/requests/remove_spreadsheet_blank_worksheets_request
577
577
  require 'aspose_cells_cloud/requests/remove_duplicates_request'
578
578
  require 'aspose_cells_cloud/requests/swap_range_request'
579
579
  require 'aspose_cells_cloud/requests/flip_data_request'
580
+ require 'aspose_cells_cloud/requests/transpose_data_request'
581
+ require 'aspose_cells_cloud/requests/unpivot_range_request'
582
+ require 'aspose_cells_cloud/requests/unpivot_table_request'
580
583
  require 'aspose_cells_cloud/requests/download_file_request'
581
584
  require 'aspose_cells_cloud/requests/upload_file_request'
582
585
  require 'aspose_cells_cloud/requests/copy_file_request'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_cells_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 26.3.1
4
+ version: '26.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aspose Cells Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-28 00:00:00.000000000 Z
11
+ date: 2026-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -1131,7 +1131,10 @@ files:
1131
1131
  - lib/aspose_cells_cloud/requests/swap_range_request.rb
1132
1132
  - lib/aspose_cells_cloud/requests/translate_spreadsheet_request.rb
1133
1133
  - lib/aspose_cells_cloud/requests/translate_text_file_request.rb
1134
+ - lib/aspose_cells_cloud/requests/transpose_data_request.rb
1134
1135
  - lib/aspose_cells_cloud/requests/trim_character_request.rb
1136
+ - lib/aspose_cells_cloud/requests/unpivot_range_request.rb
1137
+ - lib/aspose_cells_cloud/requests/unpivot_table_request.rb
1135
1138
  - lib/aspose_cells_cloud/requests/unprotect_spreadsheet_request.rb
1136
1139
  - lib/aspose_cells_cloud/requests/update_word_case_request.rb
1137
1140
  - lib/aspose_cells_cloud/requests/upload_file_request.rb