aspose_cells_cloud 25.8 → 25.11

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 (83) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -15
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +143 -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 +194 -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_json_request.rb +146 -0
  22. data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_pdf_request.rb +146 -0
  23. data/lib/aspose_cells_cloud/requests/convert_table_to_csv_request.rb +6 -6
  24. data/lib/aspose_cells_cloud/requests/convert_table_to_html_request.rb +6 -6
  25. data/lib/aspose_cells_cloud/requests/convert_table_to_image_request.rb +6 -6
  26. data/lib/aspose_cells_cloud/requests/convert_table_to_json_request.rb +6 -6
  27. data/lib/aspose_cells_cloud/requests/convert_table_to_pdf_request.rb +6 -6
  28. data/lib/aspose_cells_cloud/requests/convert_text_request.rb +182 -0
  29. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_image_request.rb +6 -6
  30. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_pdf_request.rb +6 -6
  31. data/lib/aspose_cells_cloud/requests/create_spreadsheet_request.rb +6 -6
  32. data/lib/aspose_cells_cloud/requests/delete_worksheet_from_spreadsheet_request.rb +6 -6
  33. data/lib/aspose_cells_cloud/requests/export_chart_as_format_request.rb +6 -6
  34. data/lib/aspose_cells_cloud/requests/export_range_as_format_request.rb +6 -6
  35. data/lib/aspose_cells_cloud/requests/export_spreadsheet_as_format_request.rb +6 -6
  36. data/lib/aspose_cells_cloud/requests/export_table_as_format_request.rb +6 -6
  37. data/lib/aspose_cells_cloud/requests/export_worksheet_as_format_request.rb +6 -6
  38. data/lib/aspose_cells_cloud/requests/extract_text_request.rb +210 -0
  39. data/lib/aspose_cells_cloud/requests/import_data_into_spreadsheet_request.rb +6 -6
  40. data/lib/aspose_cells_cloud/requests/math_calculate_request.rb +6 -6
  41. data/lib/aspose_cells_cloud/requests/merge_remote_spreadsheet_request.rb +6 -6
  42. data/lib/aspose_cells_cloud/requests/merge_spreadsheets_in_remote_folder_request.rb +6 -6
  43. data/lib/aspose_cells_cloud/requests/merge_spreadsheets_request.rb +6 -6
  44. data/lib/aspose_cells_cloud/requests/move_worksheet_in_spreadsheet_request.rb +6 -6
  45. data/lib/aspose_cells_cloud/requests/protect_spreadsheet_request.rb +6 -6
  46. data/lib/aspose_cells_cloud/requests/put_workbook_background_request.rb +4 -5
  47. data/lib/aspose_cells_cloud/requests/put_worksheet_background_request.rb +3 -3
  48. data/lib/aspose_cells_cloud/requests/remove_characters_by_position_request.rb +194 -0
  49. data/lib/aspose_cells_cloud/requests/remove_characters_request.rb +186 -0
  50. data/lib/aspose_cells_cloud/requests/remove_duplicate_substrings_request.rb +182 -0
  51. data/lib/aspose_cells_cloud/requests/remove_duplicates_request.rb +162 -0
  52. data/lib/aspose_cells_cloud/requests/{delete_spreadsheet_blank_columns_request.rb → remove_spreadsheet_blank_columns_request.rb} +12 -12
  53. data/lib/aspose_cells_cloud/requests/{delete_spreadsheet_blank_rows_request.rb → remove_spreadsheet_blank_rows_request.rb} +12 -12
  54. data/lib/aspose_cells_cloud/requests/{delete_spreadsheet_blank_worksheets_request.rb → remove_spreadsheet_blank_worksheets_request.rb} +12 -12
  55. data/lib/aspose_cells_cloud/requests/rename_worksheet_in_spreadsheet_request.rb +6 -6
  56. data/lib/aspose_cells_cloud/requests/repair_spreadsheet_request.rb +138 -0
  57. data/lib/aspose_cells_cloud/requests/replace_content_in_remote_range_request.rb +6 -6
  58. data/lib/aspose_cells_cloud/requests/replace_content_in_remote_spreadsheet_request.rb +6 -6
  59. data/lib/aspose_cells_cloud/requests/replace_content_in_remote_worksheet_request.rb +6 -6
  60. data/lib/aspose_cells_cloud/requests/replace_spreadsheet_content_request.rb +6 -6
  61. data/lib/aspose_cells_cloud/requests/save_spreadsheet_as_request.rb +6 -6
  62. data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_range_request.rb +8 -8
  63. data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_spreadsheet_request.rb +7 -7
  64. data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_worksheet_request.rb +7 -7
  65. data/lib/aspose_cells_cloud/requests/search_content_in_remote_range_request.rb +6 -6
  66. data/lib/aspose_cells_cloud/requests/search_content_in_remote_spreadsheet_request.rb +6 -6
  67. data/lib/aspose_cells_cloud/requests/search_content_in_remote_worksheet_request.rb +6 -6
  68. data/lib/aspose_cells_cloud/requests/search_spreadsheet_broken_links_request.rb +7 -7
  69. data/lib/aspose_cells_cloud/requests/search_spreadsheet_content_request.rb +6 -6
  70. data/lib/aspose_cells_cloud/requests/spec_request.rb +6 -6
  71. data/lib/aspose_cells_cloud/requests/split_remote_spreadsheet_request.rb +6 -6
  72. data/lib/aspose_cells_cloud/requests/split_spreadsheet_request.rb +6 -6
  73. data/lib/aspose_cells_cloud/requests/split_text_request.rb +198 -0
  74. data/lib/aspose_cells_cloud/requests/spreadsheet_digitalsignature_request.rb +142 -0
  75. data/lib/aspose_cells_cloud/requests/{sawp_range_request.rb → swap_range_request.rb} +15 -15
  76. data/lib/aspose_cells_cloud/requests/translate_text_file_request.rb +134 -0
  77. data/lib/aspose_cells_cloud/requests/translation_spreadsheet_request.rb +134 -0
  78. data/lib/aspose_cells_cloud/requests/trim_character_request.rb +210 -0
  79. data/lib/aspose_cells_cloud/requests/unprotect_spreadsheet_request.rb +6 -6
  80. data/lib/aspose_cells_cloud/requests/update_word_case_request.rb +166 -0
  81. data/lib/aspose_cells_cloud/version.rb +1 -1
  82. data/lib/aspose_cells_cloud.rb +23 -6
  83. metadata +24 -7
@@ -0,0 +1,210 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="ExtractText_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 ExtractTextRequest
33
+
34
+ attr_accessor :spreadsheet
35
+ attr_accessor :extract_text_type
36
+ attr_accessor :out_position_range
37
+ attr_accessor :before_text
38
+ attr_accessor :after_text
39
+ attr_accessor :before_position
40
+ attr_accessor :after_position
41
+ attr_accessor :worksheet
42
+ attr_accessor :range
43
+ attr_accessor :out_path
44
+ attr_accessor :out_storage_name
45
+ attr_accessor :region
46
+ attr_accessor :password
47
+
48
+ def initialize(attributes = {})
49
+ return unless attributes.is_a?(Hash)
50
+
51
+ # convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
53
+
54
+ if attributes.has_key?(:'Spreadsheet')
55
+ self.spreadsheet = attributes[:'Spreadsheet']
56
+ end
57
+
58
+ if attributes.has_key?(:'extractTextType')
59
+ self.extract_text_type = attributes[:'extractTextType']
60
+ end
61
+
62
+ if attributes.has_key?(:'outPositionRange')
63
+ self.out_position_range = attributes[:'outPositionRange']
64
+ end
65
+
66
+ if attributes.has_key?(:'beforeText')
67
+ self.before_text = attributes[:'beforeText']
68
+ end
69
+
70
+ if attributes.has_key?(:'afterText')
71
+ self.after_text = attributes[:'afterText']
72
+ end
73
+
74
+ if attributes.has_key?(:'beforePosition')
75
+ self.before_position = attributes[:'beforePosition']
76
+ end
77
+
78
+ if attributes.has_key?(:'afterPosition')
79
+ self.after_position = attributes[:'afterPosition']
80
+ end
81
+
82
+ if attributes.has_key?(:'worksheet')
83
+ self.worksheet = attributes[:'worksheet']
84
+ end
85
+
86
+ if attributes.has_key?(:'range')
87
+ self.range = attributes[:'range']
88
+ end
89
+
90
+ if attributes.has_key?(:'outPath')
91
+ self.out_path = attributes[:'outPath']
92
+ end
93
+
94
+ if attributes.has_key?(:'outStorageName')
95
+ self.out_storage_name = attributes[:'outStorageName']
96
+ end
97
+
98
+ if attributes.has_key?(:'region')
99
+ self.region = attributes[:'region']
100
+ end
101
+
102
+ if attributes.has_key?(:'password')
103
+ self.password = attributes[:'password']
104
+ end
105
+
106
+ end
107
+ # Attribute mapping from ruby-style variable name to JSON key.
108
+ def self.attribute_map
109
+ {
110
+ :'spreadsheet' => :'Spreadsheet',
111
+ :'extract_text_type' => :'extractTextType',
112
+ :'out_position_range' => :'outPositionRange',
113
+ :'before_text' => :'beforeText',
114
+ :'after_text' => :'afterText',
115
+ :'before_position' => :'beforePosition',
116
+ :'after_position' => :'afterPosition',
117
+ :'worksheet' => :'worksheet',
118
+ :'range' => :'range',
119
+ :'out_path' => :'outPath',
120
+ :'out_storage_name' => :'outStorageName',
121
+ :'region' => :'region',
122
+ :'password' => :'password'
123
+ }
124
+ end
125
+
126
+ # Attribute type mapping.
127
+ def self.swagger_types
128
+ {
129
+ :'spreadsheet' => :'String',
130
+ :'extract_text_type' => :'String',
131
+ :'out_position_range' => :'String',
132
+ :'before_text' => :'String',
133
+ :'after_text' => :'String',
134
+ :'before_position' => :'Integer',
135
+ :'after_position' => :'Integer',
136
+ :'worksheet' => :'String',
137
+ :'range' => :'String',
138
+ :'out_path' => :'String',
139
+ :'out_storage_name' => :'String',
140
+ :'region' => :'String',
141
+ :'password' => :'String'
142
+ }
143
+ end
144
+
145
+ def create_http_request(api_client,opts = {})
146
+ if api_client.config.debugging
147
+ api_client.config.logger.debug "Calling API: CellsApi.extract_text ..."
148
+ end
149
+ api_client.request_token_if_needed
150
+ # verify the required parameter 'spreadsheet' is set
151
+ if api_client.config.client_side_validation && spreadsheet.nil?
152
+ fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.extract_text "
153
+ end
154
+ # verify the required parameter 'extract_text_type' is set
155
+ if api_client.config.client_side_validation && extract_text_type.nil?
156
+ fail ArgumentError, "Missing the required parameter 'extract_text_type' when calling CellsApi.extract_text "
157
+ end
158
+ # verify the required parameter 'out_position_range' is set
159
+ if api_client.config.client_side_validation && out_position_range.nil?
160
+ fail ArgumentError, "Missing the required parameter 'out_position_range' when calling CellsApi.extract_text "
161
+ end
162
+
163
+ # resource path
164
+ local_var_path = "v4.0/cells/content/extract/text"
165
+ # query parameters
166
+ query_params = {}
167
+ query_params[:'extractTextType'] = self.extract_text_type if !self.extract_text_type.nil?
168
+ query_params[:'outPositionRange'] = self.out_position_range if !self.out_position_range.nil?
169
+ query_params[:'beforeText'] = self.before_text if !self.before_text.nil?
170
+ query_params[:'afterText'] = self.after_text if !self.after_text.nil?
171
+ query_params[:'beforePosition'] = self.before_position if !self.before_position.nil?
172
+ query_params[:'afterPosition'] = self.after_position if !self.after_position.nil?
173
+ query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
174
+ query_params[:'range'] = self.range if !self.range.nil?
175
+ query_params[:'outPath'] = self.out_path if !self.out_path.nil?
176
+ query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
177
+ query_params[:'region'] = self.region if !self.region.nil?
178
+ query_params[:'password'] = self.password if !self.password.nil?
179
+
180
+ # header parameters
181
+ header_params = {}
182
+ # HTTP header 'Accept' (if needed)
183
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
184
+ # HTTP header 'Content-Type'
185
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
186
+
187
+ # form parameters
188
+ form_params = {}
189
+ post_body = nil
190
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
191
+ if !spreadsheet.empty? && File.exist?(spreadsheet )
192
+ form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
193
+ end
194
+
195
+ #auth_names = []
196
+ auth_names = ['JWT']
197
+ data, status_code, headers = api_client.call_api(:PUT, local_var_path,
198
+ :header_params => header_params,
199
+ :query_params => query_params,
200
+ :form_params => form_params,
201
+ :body => post_body,
202
+ :auth_names => auth_names,
203
+ :return_type => 'File')
204
+ if api_client.config.debugging
205
+ api_client.config.logger.debug "API called: Specification.Name>Api.extract_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
206
+ end
207
+ return data, status_code, headers
208
+ end
209
+ end
210
+ end
@@ -41,7 +41,7 @@ module AsposeCellsCloud
41
41
  attr_accessor :out_path
42
42
  attr_accessor :out_storage_name
43
43
  attr_accessor :fonts_location
44
- attr_accessor :regoin
44
+ attr_accessor :region
45
45
  attr_accessor :password
46
46
 
47
47
  def initialize(attributes = {})
@@ -90,8 +90,8 @@ module AsposeCellsCloud
90
90
  self.fonts_location = attributes[:'fontsLocation']
91
91
  end
92
92
 
93
- if attributes.has_key?(:'regoin')
94
- self.regoin = attributes[:'regoin']
93
+ if attributes.has_key?(:'region')
94
+ self.region = attributes[:'region']
95
95
  end
96
96
 
97
97
  if attributes.has_key?(:'password')
@@ -112,7 +112,7 @@ module AsposeCellsCloud
112
112
  :'out_path' => :'outPath',
113
113
  :'out_storage_name' => :'outStorageName',
114
114
  :'fonts_location' => :'fontsLocation',
115
- :'regoin' => :'regoin',
115
+ :'region' => :'region',
116
116
  :'password' => :'password'
117
117
  }
118
118
  end
@@ -130,7 +130,7 @@ module AsposeCellsCloud
130
130
  :'out_path' => :'String',
131
131
  :'out_storage_name' => :'String',
132
132
  :'fonts_location' => :'String',
133
- :'regoin' => :'String',
133
+ :'region' => :'String',
134
134
  :'password' => :'String'
135
135
  }
136
136
  end
@@ -169,7 +169,7 @@ module AsposeCellsCloud
169
169
  query_params[:'outPath'] = self.out_path if !self.out_path.nil?
170
170
  query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
171
171
  query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
172
- query_params[:'regoin'] = self.regoin if !self.regoin.nil?
172
+ query_params[:'region'] = self.region if !self.region.nil?
173
173
  query_params[:'password'] = self.password if !self.password.nil?
174
174
 
175
175
  # header parameters
@@ -36,7 +36,7 @@ module AsposeCellsCloud
36
36
  attr_accessor :value
37
37
  attr_accessor :worksheet
38
38
  attr_accessor :range
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.range = attributes[:'range']
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
  :'value' => :'value',
83
83
  :'worksheet' => :'worksheet',
84
84
  :'range' => :'range',
85
- :'regoin' => :'regoin',
85
+ :'region' => :'region',
86
86
  :'password' => :'password'
87
87
  }
88
88
  end
@@ -95,7 +95,7 @@ module AsposeCellsCloud
95
95
  :'value' => :'String',
96
96
  :'worksheet' => :'String',
97
97
  :'range' => :'String',
98
- :'regoin' => :'String',
98
+ :'region' => :'String',
99
99
  :'password' => :'String'
100
100
  }
101
101
  end
@@ -126,7 +126,7 @@ module AsposeCellsCloud
126
126
  query_params[:'value'] = self.value if !self.value.nil?
127
127
  query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
128
128
  query_params[:'range'] = self.range if !self.range.nil?
129
- query_params[:'regoin'] = self.regoin if !self.regoin.nil?
129
+ query_params[:'region'] = self.region if !self.region.nil?
130
130
  query_params[:'password'] = self.password if !self.password.nil?
131
131
 
132
132
  # header parameters
@@ -40,7 +40,7 @@ module AsposeCellsCloud
40
40
  attr_accessor :out_path
41
41
  attr_accessor :out_storage_name
42
42
  attr_accessor :fonts_location
43
- attr_accessor :regoin
43
+ attr_accessor :region
44
44
  attr_accessor :password
45
45
 
46
46
  def initialize(attributes = {})
@@ -85,8 +85,8 @@ module AsposeCellsCloud
85
85
  self.fonts_location = attributes[:'fontsLocation']
86
86
  end
87
87
 
88
- if attributes.has_key?(:'regoin')
89
- self.regoin = attributes[:'regoin']
88
+ if attributes.has_key?(:'region')
89
+ self.region = attributes[:'region']
90
90
  end
91
91
 
92
92
  if attributes.has_key?(:'password')
@@ -106,7 +106,7 @@ module AsposeCellsCloud
106
106
  :'out_path' => :'outPath',
107
107
  :'out_storage_name' => :'outStorageName',
108
108
  :'fonts_location' => :'fontsLocation',
109
- :'regoin' => :'regoin',
109
+ :'region' => :'region',
110
110
  :'password' => :'password'
111
111
  }
112
112
  end
@@ -123,7 +123,7 @@ module AsposeCellsCloud
123
123
  :'out_path' => :'String',
124
124
  :'out_storage_name' => :'String',
125
125
  :'fonts_location' => :'String',
126
- :'regoin' => :'String',
126
+ :'region' => :'String',
127
127
  :'password' => :'String'
128
128
  }
129
129
  end
@@ -154,7 +154,7 @@ module AsposeCellsCloud
154
154
  query_params[:'outPath'] = self.out_path if !self.out_path.nil?
155
155
  query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
156
156
  query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
157
- query_params[:'regoin'] = self.regoin if !self.regoin.nil?
157
+ query_params[:'region'] = self.region if !self.region.nil?
158
158
  query_params[:'password'] = self.password if !self.password.nil?
159
159
 
160
160
  # header parameters
@@ -39,7 +39,7 @@ module AsposeCellsCloud
39
39
  attr_accessor :out_path
40
40
  attr_accessor :out_storage_name
41
41
  attr_accessor :fonts_location
42
- attr_accessor :regoin
42
+ attr_accessor :region
43
43
  attr_accessor :password
44
44
 
45
45
  def initialize(attributes = {})
@@ -80,8 +80,8 @@ module AsposeCellsCloud
80
80
  self.fonts_location = attributes[:'fontsLocation']
81
81
  end
82
82
 
83
- if attributes.has_key?(:'regoin')
84
- self.regoin = attributes[:'regoin']
83
+ if attributes.has_key?(:'region')
84
+ self.region = attributes[:'region']
85
85
  end
86
86
 
87
87
  if attributes.has_key?(:'password')
@@ -100,7 +100,7 @@ module AsposeCellsCloud
100
100
  :'out_path' => :'outPath',
101
101
  :'out_storage_name' => :'outStorageName',
102
102
  :'fonts_location' => :'fontsLocation',
103
- :'regoin' => :'regoin',
103
+ :'region' => :'region',
104
104
  :'password' => :'password'
105
105
  }
106
106
  end
@@ -116,7 +116,7 @@ module AsposeCellsCloud
116
116
  :'out_path' => :'String',
117
117
  :'out_storage_name' => :'String',
118
118
  :'fonts_location' => :'String',
119
- :'regoin' => :'String',
119
+ :'region' => :'String',
120
120
  :'password' => :'String'
121
121
  }
122
122
  end
@@ -143,7 +143,7 @@ module AsposeCellsCloud
143
143
  query_params[:'outPath'] = self.out_path if !self.out_path.nil?
144
144
  query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
145
145
  query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
146
- query_params[:'regoin'] = self.regoin if !self.regoin.nil?
146
+ query_params[:'region'] = self.region if !self.region.nil?
147
147
  query_params[:'password'] = self.password if !self.password.nil?
148
148
 
149
149
  # 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
@@ -126,7 +126,7 @@ module AsposeCellsCloud
126
126
  query_params[:'outPath'] = self.out_path if !self.out_path.nil?
127
127
  query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
128
128
  query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
129
- query_params[:'regoin'] = self.regoin if !self.regoin.nil?
129
+ query_params[:'region'] = self.region if !self.region.nil?
130
130
  query_params[:'password'] = self.password if !self.password.nil?
131
131
 
132
132
  # header parameters
@@ -36,7 +36,7 @@ module AsposeCellsCloud
36
36
  attr_accessor :position
37
37
  attr_accessor :out_path
38
38
  attr_accessor :out_storage_name
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.out_storage_name = attributes[:'outStorageName']
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
  :'position' => :'position',
83
83
  :'out_path' => :'outPath',
84
84
  :'out_storage_name' => :'outStorageName',
85
- :'regoin' => :'regoin',
85
+ :'region' => :'region',
86
86
  :'password' => :'password'
87
87
  }
88
88
  end
@@ -95,7 +95,7 @@ module AsposeCellsCloud
95
95
  :'position' => :'Integer',
96
96
  :'out_path' => :'String',
97
97
  :'out_storage_name' => :'String',
98
- :'regoin' => :'String',
98
+ :'region' => :'String',
99
99
  :'password' => :'String'
100
100
  }
101
101
  end
@@ -126,7 +126,7 @@ module AsposeCellsCloud
126
126
  query_params[:'position'] = self.position if !self.position.nil?
127
127
  query_params[:'outPath'] = self.out_path if !self.out_path.nil?
128
128
  query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
129
- query_params[:'regoin'] = self.regoin if !self.regoin.nil?
129
+ query_params[:'region'] = self.region if !self.region.nil?
130
130
  query_params[:'password'] = self.password if !self.password.nil?
131
131
 
132
132
  # header parameters
@@ -36,7 +36,7 @@ module AsposeCellsCloud
36
36
  attr_accessor :modify_password
37
37
  attr_accessor :out_path
38
38
  attr_accessor :out_storage_name
39
- attr_accessor :regoin
39
+ attr_accessor :region
40
40
 
41
41
  def initialize(attributes = {})
42
42
  return unless attributes.is_a?(Hash)
@@ -64,8 +64,8 @@ module AsposeCellsCloud
64
64
  self.out_storage_name = attributes[:'outStorageName']
65
65
  end
66
66
 
67
- if attributes.has_key?(:'regoin')
68
- self.regoin = attributes[:'regoin']
67
+ if attributes.has_key?(:'region')
68
+ self.region = attributes[:'region']
69
69
  end
70
70
 
71
71
  end
@@ -77,7 +77,7 @@ module AsposeCellsCloud
77
77
  :'modify_password' => :'modifyPassword',
78
78
  :'out_path' => :'outPath',
79
79
  :'out_storage_name' => :'outStorageName',
80
- :'regoin' => :'regoin'
80
+ :'region' => :'region'
81
81
  }
82
82
  end
83
83
 
@@ -89,7 +89,7 @@ module AsposeCellsCloud
89
89
  :'modify_password' => :'String',
90
90
  :'out_path' => :'String',
91
91
  :'out_storage_name' => :'String',
92
- :'regoin' => :'String'
92
+ :'region' => :'String'
93
93
  }
94
94
  end
95
95
 
@@ -119,7 +119,7 @@ module AsposeCellsCloud
119
119
  query_params[:'modifyPassword'] = self.modify_password if !self.modify_password.nil?
120
120
  query_params[:'outPath'] = self.out_path if !self.out_path.nil?
121
121
  query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
122
- query_params[:'regoin'] = self.regoin if !self.regoin.nil?
122
+ query_params[:'region'] = self.region if !self.region.nil?
123
123
 
124
124
  # header parameters
125
125
  header_params = {}
@@ -122,14 +122,13 @@ module AsposeCellsCloud
122
122
  # form parameters
123
123
  form_params = {}
124
124
  post_body = nil
125
- if file != nil
126
- header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
125
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
126
+ if !file.nil?
127
127
  file.each do |filename , context|
128
- form_params[File.basename(filename)] = context
128
+ form_params[File.basename(filename)] = context
129
129
  end
130
130
  end
131
-
132
-
131
+
133
132
  #auth_names = []
134
133
  auth_names = ['JWT']
135
134
  data, status_code, headers = api_client.call_api(:PUT, local_var_path,
@@ -133,13 +133,13 @@ module AsposeCellsCloud
133
133
  # form parameters
134
134
  form_params = {}
135
135
  post_body = nil
136
- if file != nil
136
+ if !file.nil?
137
137
  header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
138
138
  file.each do |filename , context|
139
- form_params[File.basename(filename)] = context
139
+ form_params[File.basename(filename)] = context
140
140
  end
141
141
  end
142
-
142
+
143
143
  #auth_names = []
144
144
  auth_names = ['JWT']
145
145
  data, status_code, headers = api_client.call_api(:PUT, local_var_path,