aspose_cells_cloud 25.8 → 25.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -16
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +105 -12
  4. data/lib/aspose_cells_cloud/models/aggregate_result_by_color.rb +4 -16
  5. data/lib/aspose_cells_cloud/models/{broken_links_reponse.rb → broken_links_response.rb} +2 -2
  6. data/lib/aspose_cells_cloud/models/remove_characters_by_position.rb +1 -1
  7. data/lib/aspose_cells_cloud/requests/add_text_request.rb +198 -0
  8. data/lib/aspose_cells_cloud/requests/add_worksheet_to_spreadsheet_request.rb +6 -6
  9. data/lib/aspose_cells_cloud/requests/aggregate_cells_by_color_request.rb +6 -6
  10. data/lib/aspose_cells_cloud/requests/codegen_spec_request.rb +6 -6
  11. data/lib/aspose_cells_cloud/requests/compress_spreadsheet_request.rb +6 -6
  12. data/lib/aspose_cells_cloud/requests/convert_chart_to_image_request.rb +6 -6
  13. data/lib/aspose_cells_cloud/requests/convert_chart_to_pdf_request.rb +6 -6
  14. data/lib/aspose_cells_cloud/requests/convert_range_to_csv_request.rb +6 -6
  15. data/lib/aspose_cells_cloud/requests/convert_range_to_html_request.rb +6 -6
  16. data/lib/aspose_cells_cloud/requests/convert_range_to_image_request.rb +6 -6
  17. data/lib/aspose_cells_cloud/requests/convert_range_to_json_request.rb +6 -6
  18. data/lib/aspose_cells_cloud/requests/convert_range_to_pdf_request.rb +6 -6
  19. data/lib/aspose_cells_cloud/requests/convert_spreadsheet_request.rb +6 -6
  20. data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_csv_request.rb +146 -0
  21. data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_pdf_request.rb +146 -0
  22. data/lib/aspose_cells_cloud/requests/convert_table_to_csv_request.rb +6 -6
  23. data/lib/aspose_cells_cloud/requests/convert_table_to_html_request.rb +6 -6
  24. data/lib/aspose_cells_cloud/requests/convert_table_to_image_request.rb +6 -6
  25. data/lib/aspose_cells_cloud/requests/convert_table_to_json_request.rb +6 -6
  26. data/lib/aspose_cells_cloud/requests/convert_table_to_pdf_request.rb +6 -6
  27. data/lib/aspose_cells_cloud/requests/convert_text_request.rb +190 -0
  28. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_image_request.rb +6 -6
  29. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_pdf_request.rb +6 -6
  30. data/lib/aspose_cells_cloud/requests/create_spreadsheet_request.rb +6 -6
  31. data/lib/aspose_cells_cloud/requests/delete_worksheet_from_spreadsheet_request.rb +6 -6
  32. data/lib/aspose_cells_cloud/requests/export_chart_as_format_request.rb +6 -6
  33. data/lib/aspose_cells_cloud/requests/export_range_as_format_request.rb +6 -6
  34. data/lib/aspose_cells_cloud/requests/export_spreadsheet_as_format_request.rb +6 -6
  35. data/lib/aspose_cells_cloud/requests/export_table_as_format_request.rb +6 -6
  36. data/lib/aspose_cells_cloud/requests/export_worksheet_as_format_request.rb +6 -6
  37. data/lib/aspose_cells_cloud/requests/extract_text_request.rb +226 -0
  38. data/lib/aspose_cells_cloud/requests/import_data_into_spreadsheet_request.rb +6 -6
  39. data/lib/aspose_cells_cloud/requests/math_calculate_request.rb +6 -6
  40. data/lib/aspose_cells_cloud/requests/merge_remote_spreadsheet_request.rb +6 -6
  41. data/lib/aspose_cells_cloud/requests/merge_spreadsheets_in_remote_folder_request.rb +6 -6
  42. data/lib/aspose_cells_cloud/requests/merge_spreadsheets_request.rb +6 -6
  43. data/lib/aspose_cells_cloud/requests/move_worksheet_in_spreadsheet_request.rb +6 -6
  44. data/lib/aspose_cells_cloud/requests/protect_spreadsheet_request.rb +6 -6
  45. data/lib/aspose_cells_cloud/requests/put_workbook_background_request.rb +4 -5
  46. data/lib/aspose_cells_cloud/requests/put_worksheet_background_request.rb +3 -3
  47. data/lib/aspose_cells_cloud/requests/remove_characters_request.rb +246 -0
  48. data/lib/aspose_cells_cloud/requests/remove_duplicates_request.rb +162 -0
  49. data/lib/aspose_cells_cloud/requests/{delete_spreadsheet_blank_columns_request.rb → remove_spreadsheet_blank_columns_request.rb} +12 -12
  50. data/lib/aspose_cells_cloud/requests/{delete_spreadsheet_blank_rows_request.rb → remove_spreadsheet_blank_rows_request.rb} +12 -12
  51. data/lib/aspose_cells_cloud/requests/{delete_spreadsheet_blank_worksheets_request.rb → remove_spreadsheet_blank_worksheets_request.rb} +12 -12
  52. data/lib/aspose_cells_cloud/requests/rename_worksheet_in_spreadsheet_request.rb +6 -6
  53. data/lib/aspose_cells_cloud/requests/repair_spreadsheet_request.rb +138 -0
  54. data/lib/aspose_cells_cloud/requests/replace_content_in_remote_range_request.rb +6 -6
  55. data/lib/aspose_cells_cloud/requests/replace_content_in_remote_spreadsheet_request.rb +6 -6
  56. data/lib/aspose_cells_cloud/requests/replace_content_in_remote_worksheet_request.rb +6 -6
  57. data/lib/aspose_cells_cloud/requests/replace_spreadsheet_content_request.rb +6 -6
  58. data/lib/aspose_cells_cloud/requests/save_spreadsheet_as_request.rb +6 -6
  59. data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_range_request.rb +7 -7
  60. data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_spreadsheet_request.rb +7 -7
  61. data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_worksheet_request.rb +7 -7
  62. data/lib/aspose_cells_cloud/requests/search_content_in_remote_range_request.rb +6 -6
  63. data/lib/aspose_cells_cloud/requests/search_content_in_remote_spreadsheet_request.rb +6 -6
  64. data/lib/aspose_cells_cloud/requests/search_content_in_remote_worksheet_request.rb +6 -6
  65. data/lib/aspose_cells_cloud/requests/search_spreadsheet_broken_links_request.rb +7 -7
  66. data/lib/aspose_cells_cloud/requests/search_spreadsheet_content_request.rb +6 -6
  67. data/lib/aspose_cells_cloud/requests/spec_request.rb +6 -6
  68. data/lib/aspose_cells_cloud/requests/split_remote_spreadsheet_request.rb +6 -6
  69. data/lib/aspose_cells_cloud/requests/split_spreadsheet_request.rb +6 -6
  70. data/lib/aspose_cells_cloud/requests/split_text_request.rb +214 -0
  71. data/lib/aspose_cells_cloud/requests/spreadsheet_digitalsignature_request.rb +142 -0
  72. data/lib/aspose_cells_cloud/requests/{sawp_range_request.rb → swap_range_request.rb} +15 -15
  73. data/lib/aspose_cells_cloud/requests/trim_character_request.rb +210 -0
  74. data/lib/aspose_cells_cloud/requests/unprotect_spreadsheet_request.rb +6 -6
  75. data/lib/aspose_cells_cloud/requests/update_word_case_request.rb +166 -0
  76. data/lib/aspose_cells_cloud/version.rb +1 -1
  77. data/lib/aspose_cells_cloud.rb +18 -6
  78. metadata +19 -7
@@ -0,0 +1,146 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="ConvertSpreadsheetToPdf_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 ConvertSpreadsheetToPdfRequest
33
+
34
+ attr_accessor :spreadsheet
35
+ attr_accessor :out_path
36
+ attr_accessor :out_storage_name
37
+ attr_accessor :fonts_location
38
+ attr_accessor :region
39
+ attr_accessor :password
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?(:'Spreadsheet')
48
+ self.spreadsheet = attributes[:'Spreadsheet']
49
+ end
50
+
51
+ if attributes.has_key?(:'outPath')
52
+ self.out_path = attributes[:'outPath']
53
+ end
54
+
55
+ if attributes.has_key?(:'outStorageName')
56
+ self.out_storage_name = attributes[:'outStorageName']
57
+ end
58
+
59
+ if attributes.has_key?(:'fontsLocation')
60
+ self.fonts_location = attributes[:'fontsLocation']
61
+ end
62
+
63
+ if attributes.has_key?(:'region')
64
+ self.region = attributes[:'region']
65
+ end
66
+
67
+ if attributes.has_key?(:'password')
68
+ self.password = attributes[:'password']
69
+ end
70
+
71
+ end
72
+ # Attribute mapping from ruby-style variable name to JSON key.
73
+ def self.attribute_map
74
+ {
75
+ :'spreadsheet' => :'Spreadsheet',
76
+ :'out_path' => :'outPath',
77
+ :'out_storage_name' => :'outStorageName',
78
+ :'fonts_location' => :'fontsLocation',
79
+ :'region' => :'region',
80
+ :'password' => :'password'
81
+ }
82
+ end
83
+
84
+ # Attribute type mapping.
85
+ def self.swagger_types
86
+ {
87
+ :'spreadsheet' => :'String',
88
+ :'out_path' => :'String',
89
+ :'out_storage_name' => :'String',
90
+ :'fonts_location' => :'String',
91
+ :'region' => :'String',
92
+ :'password' => :'String'
93
+ }
94
+ end
95
+
96
+ def create_http_request(api_client,opts = {})
97
+ if api_client.config.debugging
98
+ api_client.config.logger.debug "Calling API: CellsApi.convert_spreadsheet_to_pdf ..."
99
+ end
100
+ api_client.request_token_if_needed
101
+ # verify the required parameter 'spreadsheet' is set
102
+ if api_client.config.client_side_validation && spreadsheet.nil?
103
+ fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.convert_spreadsheet_to_pdf "
104
+ end
105
+
106
+ # resource path
107
+ local_var_path = "v4.0/cells/convert/spreadsheet/pdf"
108
+ # query parameters
109
+ query_params = {}
110
+ query_params[:'outPath'] = self.out_path if !self.out_path.nil?
111
+ query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
112
+ query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
113
+ query_params[:'region'] = self.region if !self.region.nil?
114
+ query_params[:'password'] = self.password if !self.password.nil?
115
+
116
+ # header parameters
117
+ header_params = {}
118
+ # HTTP header 'Accept' (if needed)
119
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
120
+ # HTTP header 'Content-Type'
121
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
122
+
123
+ # form parameters
124
+ form_params = {}
125
+ post_body = nil
126
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
127
+ if !spreadsheet.empty? && File.exist?(spreadsheet )
128
+ form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
129
+ end
130
+
131
+ #auth_names = []
132
+ auth_names = ['JWT']
133
+ data, status_code, headers = api_client.call_api(:PUT, local_var_path,
134
+ :header_params => header_params,
135
+ :query_params => query_params,
136
+ :form_params => form_params,
137
+ :body => post_body,
138
+ :auth_names => auth_names,
139
+ :return_type => 'File')
140
+ if api_client.config.debugging
141
+ api_client.config.logger.debug "API called: Specification.Name>Api.convert_spreadsheet_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
142
+ end
143
+ return data, status_code, headers
144
+ end
145
+ end
146
+ end
@@ -37,7 +37,7 @@ module AsposeCellsCloud
37
37
  attr_accessor :out_path
38
38
  attr_accessor :out_storage_name
39
39
  attr_accessor :fonts_location
40
- attr_accessor :regoin
40
+ attr_accessor :region
41
41
  attr_accessor :password
42
42
 
43
43
  def initialize(attributes = {})
@@ -70,8 +70,8 @@ module AsposeCellsCloud
70
70
  self.fonts_location = attributes[:'fontsLocation']
71
71
  end
72
72
 
73
- if attributes.has_key?(:'regoin')
74
- self.regoin = attributes[:'regoin']
73
+ if attributes.has_key?(:'region')
74
+ self.region = attributes[:'region']
75
75
  end
76
76
 
77
77
  if attributes.has_key?(:'password')
@@ -88,7 +88,7 @@ module AsposeCellsCloud
88
88
  :'out_path' => :'outPath',
89
89
  :'out_storage_name' => :'outStorageName',
90
90
  :'fonts_location' => :'fontsLocation',
91
- :'regoin' => :'regoin',
91
+ :'region' => :'region',
92
92
  :'password' => :'password'
93
93
  }
94
94
  end
@@ -102,7 +102,7 @@ module AsposeCellsCloud
102
102
  :'out_path' => :'String',
103
103
  :'out_storage_name' => :'String',
104
104
  :'fonts_location' => :'String',
105
- :'regoin' => :'String',
105
+ :'region' => :'String',
106
106
  :'password' => :'String'
107
107
  }
108
108
  end
@@ -134,7 +134,7 @@ module AsposeCellsCloud
134
134
  query_params[:'outPath'] = self.out_path if !self.out_path.nil?
135
135
  query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
136
136
  query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
137
- query_params[:'regoin'] = self.regoin if !self.regoin.nil?
137
+ query_params[:'region'] = self.region if !self.region.nil?
138
138
  query_params[:'password'] = self.password if !self.password.nil?
139
139
 
140
140
  # header parameters
@@ -37,7 +37,7 @@ module AsposeCellsCloud
37
37
  attr_accessor :out_path
38
38
  attr_accessor :out_storage_name
39
39
  attr_accessor :fonts_location
40
- attr_accessor :regoin
40
+ attr_accessor :region
41
41
  attr_accessor :password
42
42
 
43
43
  def initialize(attributes = {})
@@ -70,8 +70,8 @@ module AsposeCellsCloud
70
70
  self.fonts_location = attributes[:'fontsLocation']
71
71
  end
72
72
 
73
- if attributes.has_key?(:'regoin')
74
- self.regoin = attributes[:'regoin']
73
+ if attributes.has_key?(:'region')
74
+ self.region = attributes[:'region']
75
75
  end
76
76
 
77
77
  if attributes.has_key?(:'password')
@@ -88,7 +88,7 @@ module AsposeCellsCloud
88
88
  :'out_path' => :'outPath',
89
89
  :'out_storage_name' => :'outStorageName',
90
90
  :'fonts_location' => :'fontsLocation',
91
- :'regoin' => :'regoin',
91
+ :'region' => :'region',
92
92
  :'password' => :'password'
93
93
  }
94
94
  end
@@ -102,7 +102,7 @@ module AsposeCellsCloud
102
102
  :'out_path' => :'String',
103
103
  :'out_storage_name' => :'String',
104
104
  :'fonts_location' => :'String',
105
- :'regoin' => :'String',
105
+ :'region' => :'String',
106
106
  :'password' => :'String'
107
107
  }
108
108
  end
@@ -134,7 +134,7 @@ module AsposeCellsCloud
134
134
  query_params[:'outPath'] = self.out_path if !self.out_path.nil?
135
135
  query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
136
136
  query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
137
- query_params[:'regoin'] = self.regoin if !self.regoin.nil?
137
+ query_params[:'region'] = self.region if !self.region.nil?
138
138
  query_params[:'password'] = self.password if !self.password.nil?
139
139
 
140
140
  # header parameters
@@ -38,7 +38,7 @@ module AsposeCellsCloud
38
38
  attr_accessor :out_path
39
39
  attr_accessor :out_storage_name
40
40
  attr_accessor :fonts_location
41
- attr_accessor :regoin
41
+ attr_accessor :region
42
42
  attr_accessor :password
43
43
 
44
44
  def initialize(attributes = {})
@@ -75,8 +75,8 @@ module AsposeCellsCloud
75
75
  self.fonts_location = attributes[:'fontsLocation']
76
76
  end
77
77
 
78
- if attributes.has_key?(:'regoin')
79
- self.regoin = attributes[:'regoin']
78
+ if attributes.has_key?(:'region')
79
+ self.region = attributes[:'region']
80
80
  end
81
81
 
82
82
  if attributes.has_key?(:'password')
@@ -94,7 +94,7 @@ module AsposeCellsCloud
94
94
  :'out_path' => :'outPath',
95
95
  :'out_storage_name' => :'outStorageName',
96
96
  :'fonts_location' => :'fontsLocation',
97
- :'regoin' => :'regoin',
97
+ :'region' => :'region',
98
98
  :'password' => :'password'
99
99
  }
100
100
  end
@@ -109,7 +109,7 @@ module AsposeCellsCloud
109
109
  :'out_path' => :'String',
110
110
  :'out_storage_name' => :'String',
111
111
  :'fonts_location' => :'String',
112
- :'regoin' => :'String',
112
+ :'region' => :'String',
113
113
  :'password' => :'String'
114
114
  }
115
115
  end
@@ -146,7 +146,7 @@ module AsposeCellsCloud
146
146
  query_params[:'outPath'] = self.out_path if !self.out_path.nil?
147
147
  query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
148
148
  query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
149
- query_params[:'regoin'] = self.regoin if !self.regoin.nil?
149
+ query_params[:'region'] = self.region if !self.region.nil?
150
150
  query_params[:'password'] = self.password if !self.password.nil?
151
151
 
152
152
  # header parameters
@@ -37,7 +37,7 @@ module AsposeCellsCloud
37
37
  attr_accessor :out_path
38
38
  attr_accessor :out_storage_name
39
39
  attr_accessor :fonts_location
40
- attr_accessor :regoin
40
+ attr_accessor :region
41
41
  attr_accessor :password
42
42
 
43
43
  def initialize(attributes = {})
@@ -70,8 +70,8 @@ module AsposeCellsCloud
70
70
  self.fonts_location = attributes[:'fontsLocation']
71
71
  end
72
72
 
73
- if attributes.has_key?(:'regoin')
74
- self.regoin = attributes[:'regoin']
73
+ if attributes.has_key?(:'region')
74
+ self.region = attributes[:'region']
75
75
  end
76
76
 
77
77
  if attributes.has_key?(:'password')
@@ -88,7 +88,7 @@ module AsposeCellsCloud
88
88
  :'out_path' => :'outPath',
89
89
  :'out_storage_name' => :'outStorageName',
90
90
  :'fonts_location' => :'fontsLocation',
91
- :'regoin' => :'regoin',
91
+ :'region' => :'region',
92
92
  :'password' => :'password'
93
93
  }
94
94
  end
@@ -102,7 +102,7 @@ module AsposeCellsCloud
102
102
  :'out_path' => :'String',
103
103
  :'out_storage_name' => :'String',
104
104
  :'fonts_location' => :'String',
105
- :'regoin' => :'String',
105
+ :'region' => :'String',
106
106
  :'password' => :'String'
107
107
  }
108
108
  end
@@ -134,7 +134,7 @@ module AsposeCellsCloud
134
134
  query_params[:'outPath'] = self.out_path if !self.out_path.nil?
135
135
  query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
136
136
  query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
137
- query_params[:'regoin'] = self.regoin if !self.regoin.nil?
137
+ query_params[:'region'] = self.region if !self.region.nil?
138
138
  query_params[:'password'] = self.password if !self.password.nil?
139
139
 
140
140
  # header parameters
@@ -37,7 +37,7 @@ module AsposeCellsCloud
37
37
  attr_accessor :out_path
38
38
  attr_accessor :out_storage_name
39
39
  attr_accessor :fonts_location
40
- attr_accessor :regoin
40
+ attr_accessor :region
41
41
  attr_accessor :password
42
42
 
43
43
  def initialize(attributes = {})
@@ -70,8 +70,8 @@ module AsposeCellsCloud
70
70
  self.fonts_location = attributes[:'fontsLocation']
71
71
  end
72
72
 
73
- if attributes.has_key?(:'regoin')
74
- self.regoin = attributes[:'regoin']
73
+ if attributes.has_key?(:'region')
74
+ self.region = attributes[:'region']
75
75
  end
76
76
 
77
77
  if attributes.has_key?(:'password')
@@ -88,7 +88,7 @@ module AsposeCellsCloud
88
88
  :'out_path' => :'outPath',
89
89
  :'out_storage_name' => :'outStorageName',
90
90
  :'fonts_location' => :'fontsLocation',
91
- :'regoin' => :'regoin',
91
+ :'region' => :'region',
92
92
  :'password' => :'password'
93
93
  }
94
94
  end
@@ -102,7 +102,7 @@ module AsposeCellsCloud
102
102
  :'out_path' => :'String',
103
103
  :'out_storage_name' => :'String',
104
104
  :'fonts_location' => :'String',
105
- :'regoin' => :'String',
105
+ :'region' => :'String',
106
106
  :'password' => :'String'
107
107
  }
108
108
  end
@@ -134,7 +134,7 @@ module AsposeCellsCloud
134
134
  query_params[:'outPath'] = self.out_path if !self.out_path.nil?
135
135
  query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
136
136
  query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
137
- query_params[:'regoin'] = self.regoin if !self.regoin.nil?
137
+ query_params[:'region'] = self.region if !self.region.nil?
138
138
  query_params[:'password'] = self.password if !self.password.nil?
139
139
 
140
140
  # header parameters
@@ -0,0 +1,190 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="ConvertText_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 ConvertTextRequest
33
+
34
+ attr_accessor :spreadsheet
35
+ attr_accessor :convert_text_type
36
+ attr_accessor :source_characters
37
+ attr_accessor :target_characters
38
+ attr_accessor :worksheet
39
+ attr_accessor :range
40
+ attr_accessor :out_path
41
+ attr_accessor :out_storage_name
42
+ attr_accessor :region
43
+ attr_accessor :password
44
+
45
+ def initialize(attributes = {})
46
+ return unless attributes.is_a?(Hash)
47
+
48
+ # convert string to symbol for hash key
49
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
50
+
51
+ if attributes.has_key?(:'Spreadsheet')
52
+ self.spreadsheet = attributes[:'Spreadsheet']
53
+ end
54
+
55
+ if attributes.has_key?(:'convertTextType')
56
+ self.convert_text_type = attributes[:'convertTextType']
57
+ end
58
+
59
+ if attributes.has_key?(:'sourceCharacters')
60
+ self.source_characters = attributes[:'sourceCharacters']
61
+ end
62
+
63
+ if attributes.has_key?(:'targetCharacters')
64
+ self.target_characters = attributes[:'targetCharacters']
65
+ end
66
+
67
+ if attributes.has_key?(:'worksheet')
68
+ self.worksheet = attributes[:'worksheet']
69
+ end
70
+
71
+ if attributes.has_key?(:'range')
72
+ self.range = attributes[:'range']
73
+ end
74
+
75
+ if attributes.has_key?(:'outPath')
76
+ self.out_path = attributes[:'outPath']
77
+ end
78
+
79
+ if attributes.has_key?(:'outStorageName')
80
+ self.out_storage_name = attributes[:'outStorageName']
81
+ end
82
+
83
+ if attributes.has_key?(:'region')
84
+ self.region = attributes[:'region']
85
+ end
86
+
87
+ if attributes.has_key?(:'password')
88
+ self.password = attributes[:'password']
89
+ end
90
+
91
+ end
92
+ # Attribute mapping from ruby-style variable name to JSON key.
93
+ def self.attribute_map
94
+ {
95
+ :'spreadsheet' => :'Spreadsheet',
96
+ :'convert_text_type' => :'convertTextType',
97
+ :'source_characters' => :'sourceCharacters',
98
+ :'target_characters' => :'targetCharacters',
99
+ :'worksheet' => :'worksheet',
100
+ :'range' => :'range',
101
+ :'out_path' => :'outPath',
102
+ :'out_storage_name' => :'outStorageName',
103
+ :'region' => :'region',
104
+ :'password' => :'password'
105
+ }
106
+ end
107
+
108
+ # Attribute type mapping.
109
+ def self.swagger_types
110
+ {
111
+ :'spreadsheet' => :'String',
112
+ :'convert_text_type' => :'String',
113
+ :'source_characters' => :'String',
114
+ :'target_characters' => :'String',
115
+ :'worksheet' => :'String',
116
+ :'range' => :'String',
117
+ :'out_path' => :'String',
118
+ :'out_storage_name' => :'String',
119
+ :'region' => :'String',
120
+ :'password' => :'String'
121
+ }
122
+ end
123
+
124
+ def create_http_request(api_client,opts = {})
125
+ if api_client.config.debugging
126
+ api_client.config.logger.debug "Calling API: CellsApi.convert_text ..."
127
+ end
128
+ api_client.request_token_if_needed
129
+ # verify the required parameter 'spreadsheet' is set
130
+ if api_client.config.client_side_validation && spreadsheet.nil?
131
+ fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.convert_text "
132
+ end
133
+ # verify the required parameter 'convert_text_type' is set
134
+ if api_client.config.client_side_validation && convert_text_type.nil?
135
+ fail ArgumentError, "Missing the required parameter 'convert_text_type' when calling CellsApi.convert_text "
136
+ end
137
+ # verify the required parameter 'source_characters' is set
138
+ if api_client.config.client_side_validation && source_characters.nil?
139
+ fail ArgumentError, "Missing the required parameter 'source_characters' when calling CellsApi.convert_text "
140
+ end
141
+ # verify the required parameter 'target_characters' is set
142
+ if api_client.config.client_side_validation && target_characters.nil?
143
+ fail ArgumentError, "Missing the required parameter 'target_characters' when calling CellsApi.convert_text "
144
+ end
145
+
146
+ # resource path
147
+ local_var_path = "v4.0/cells/content/convert/text"
148
+ # query parameters
149
+ query_params = {}
150
+ query_params[:'convertTextType'] = self.convert_text_type if !self.convert_text_type.nil?
151
+ query_params[:'sourceCharacters'] = self.source_characters if !self.source_characters.nil?
152
+ query_params[:'targetCharacters'] = self.target_characters if !self.target_characters.nil?
153
+ query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
154
+ query_params[:'range'] = self.range if !self.range.nil?
155
+ query_params[:'outPath'] = self.out_path if !self.out_path.nil?
156
+ query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
157
+ query_params[:'region'] = self.region if !self.region.nil?
158
+ query_params[:'password'] = self.password if !self.password.nil?
159
+
160
+ # header parameters
161
+ header_params = {}
162
+ # HTTP header 'Accept' (if needed)
163
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
164
+ # HTTP header 'Content-Type'
165
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
166
+
167
+ # form parameters
168
+ form_params = {}
169
+ post_body = nil
170
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
171
+ if !spreadsheet.empty? && File.exist?(spreadsheet )
172
+ form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
173
+ end
174
+
175
+ #auth_names = []
176
+ auth_names = ['JWT']
177
+ data, status_code, headers = api_client.call_api(:PUT, local_var_path,
178
+ :header_params => header_params,
179
+ :query_params => query_params,
180
+ :form_params => form_params,
181
+ :body => post_body,
182
+ :auth_names => auth_names,
183
+ :return_type => 'File')
184
+ if api_client.config.debugging
185
+ api_client.config.logger.debug "API called: Specification.Name>Api.convert_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
186
+ end
187
+ return data, status_code, headers
188
+ end
189
+ end
190
+ end
@@ -37,7 +37,7 @@ module AsposeCellsCloud
37
37
  attr_accessor :out_path
38
38
  attr_accessor :out_storage_name
39
39
  attr_accessor :fonts_location
40
- attr_accessor :regoin
40
+ attr_accessor :region
41
41
  attr_accessor :password
42
42
 
43
43
  def initialize(attributes = {})
@@ -70,8 +70,8 @@ module AsposeCellsCloud
70
70
  self.fonts_location = attributes[:'fontsLocation']
71
71
  end
72
72
 
73
- if attributes.has_key?(:'regoin')
74
- self.regoin = attributes[:'regoin']
73
+ if attributes.has_key?(:'region')
74
+ self.region = attributes[:'region']
75
75
  end
76
76
 
77
77
  if attributes.has_key?(:'password')
@@ -88,7 +88,7 @@ module AsposeCellsCloud
88
88
  :'out_path' => :'outPath',
89
89
  :'out_storage_name' => :'outStorageName',
90
90
  :'fonts_location' => :'fontsLocation',
91
- :'regoin' => :'regoin',
91
+ :'region' => :'region',
92
92
  :'password' => :'password'
93
93
  }
94
94
  end
@@ -102,7 +102,7 @@ module AsposeCellsCloud
102
102
  :'out_path' => :'String',
103
103
  :'out_storage_name' => :'String',
104
104
  :'fonts_location' => :'String',
105
- :'regoin' => :'String',
105
+ :'region' => :'String',
106
106
  :'password' => :'String'
107
107
  }
108
108
  end
@@ -134,7 +134,7 @@ module AsposeCellsCloud
134
134
  query_params[:'outPath'] = self.out_path if !self.out_path.nil?
135
135
  query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
136
136
  query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
137
- query_params[:'regoin'] = self.regoin if !self.regoin.nil?
137
+ query_params[:'region'] = self.region if !self.region.nil?
138
138
  query_params[:'password'] = self.password if !self.password.nil?
139
139
 
140
140
  # header parameters
@@ -36,7 +36,7 @@ module AsposeCellsCloud
36
36
  attr_accessor :out_path
37
37
  attr_accessor :out_storage_name
38
38
  attr_accessor :fonts_location
39
- attr_accessor :regoin
39
+ attr_accessor :region
40
40
  attr_accessor :password
41
41
 
42
42
  def initialize(attributes = {})
@@ -65,8 +65,8 @@ module AsposeCellsCloud
65
65
  self.fonts_location = attributes[:'fontsLocation']
66
66
  end
67
67
 
68
- if attributes.has_key?(:'regoin')
69
- self.regoin = attributes[:'regoin']
68
+ if attributes.has_key?(:'region')
69
+ self.region = attributes[:'region']
70
70
  end
71
71
 
72
72
  if attributes.has_key?(:'password')
@@ -82,7 +82,7 @@ module AsposeCellsCloud
82
82
  :'out_path' => :'outPath',
83
83
  :'out_storage_name' => :'outStorageName',
84
84
  :'fonts_location' => :'fontsLocation',
85
- :'regoin' => :'regoin',
85
+ :'region' => :'region',
86
86
  :'password' => :'password'
87
87
  }
88
88
  end
@@ -95,7 +95,7 @@ module AsposeCellsCloud
95
95
  :'out_path' => :'String',
96
96
  :'out_storage_name' => :'String',
97
97
  :'fonts_location' => :'String',
98
- :'regoin' => :'String',
98
+ :'region' => :'String',
99
99
  :'password' => :'String'
100
100
  }
101
101
  end
@@ -122,7 +122,7 @@ module AsposeCellsCloud
122
122
  query_params[:'outPath'] = self.out_path if !self.out_path.nil?
123
123
  query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
124
124
  query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
125
- query_params[:'regoin'] = self.regoin if !self.regoin.nil?
125
+ query_params[:'region'] = self.region if !self.region.nil?
126
126
  query_params[:'password'] = self.password if !self.password.nil?
127
127
 
128
128
  # header parameters