aspose_cells_cloud 25.7.1 → 25.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +36 -11
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +79 -0
  4. data/lib/aspose_cells_cloud/models/aggregate_result_by_color.rb +294 -0
  5. data/lib/aspose_cells_cloud/models/aggregate_result_by_color_response.rb +234 -0
  6. data/lib/aspose_cells_cloud/models/spreadsheet_template.rb +198 -0
  7. data/lib/aspose_cells_cloud/requests/add_worksheet_to_spreadsheet_request.rb +162 -0
  8. data/lib/aspose_cells_cloud/requests/aggregate_cells_by_color_request.rb +154 -0
  9. data/lib/aspose_cells_cloud/requests/compress_spreadsheet_request.rb +150 -0
  10. data/lib/aspose_cells_cloud/requests/convert_chart_to_image_request.rb +3 -1
  11. data/lib/aspose_cells_cloud/requests/convert_chart_to_pdf_request.rb +3 -1
  12. data/lib/aspose_cells_cloud/requests/convert_range_to_csv_request.rb +3 -1
  13. data/lib/aspose_cells_cloud/requests/convert_range_to_html_request.rb +3 -1
  14. data/lib/aspose_cells_cloud/requests/convert_range_to_image_request.rb +3 -1
  15. data/lib/aspose_cells_cloud/requests/convert_range_to_json_request.rb +3 -1
  16. data/lib/aspose_cells_cloud/requests/convert_range_to_pdf_request.rb +3 -1
  17. data/lib/aspose_cells_cloud/requests/convert_spreadsheet_request.rb +3 -1
  18. data/lib/aspose_cells_cloud/requests/convert_table_to_csv_request.rb +3 -1
  19. data/lib/aspose_cells_cloud/requests/convert_table_to_html_request.rb +3 -1
  20. data/lib/aspose_cells_cloud/requests/convert_table_to_image_request.rb +3 -1
  21. data/lib/aspose_cells_cloud/requests/convert_table_to_json_request.rb +3 -1
  22. data/lib/aspose_cells_cloud/requests/convert_table_to_pdf_request.rb +3 -1
  23. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_image_request.rb +3 -1
  24. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_pdf_request.rb +3 -1
  25. data/lib/aspose_cells_cloud/requests/create_spreadsheet_request.rb +139 -0
  26. data/lib/aspose_cells_cloud/requests/delete_spreadsheet_blank_columns_request.rb +3 -1
  27. data/lib/aspose_cells_cloud/requests/delete_spreadsheet_blank_rows_request.rb +3 -1
  28. data/lib/aspose_cells_cloud/requests/delete_spreadsheet_blank_worksheets_request.rb +3 -1
  29. data/lib/aspose_cells_cloud/requests/delete_worksheet_from_spreadsheet_request.rb +150 -0
  30. data/lib/aspose_cells_cloud/requests/import_data_into_spreadsheet_request.rb +208 -0
  31. data/lib/aspose_cells_cloud/requests/math_calculate_request.rb +162 -0
  32. data/lib/aspose_cells_cloud/requests/move_worksheet_in_spreadsheet_request.rb +162 -0
  33. data/lib/aspose_cells_cloud/requests/protect_spreadsheet_request.rb +3 -1
  34. data/lib/aspose_cells_cloud/requests/put_workbook_background_request.rb +4 -2
  35. data/lib/aspose_cells_cloud/requests/put_worksheet_background_request.rb +2 -2
  36. data/lib/aspose_cells_cloud/requests/rename_worksheet_in_spreadsheet_request.rb +162 -0
  37. data/lib/aspose_cells_cloud/requests/replace_spreadsheet_content_request.rb +3 -1
  38. data/lib/aspose_cells_cloud/requests/sawp_range_request.rb +186 -0
  39. data/lib/aspose_cells_cloud/requests/search_spreadsheet_broken_links_request.rb +3 -1
  40. data/lib/aspose_cells_cloud/requests/search_spreadsheet_content_request.rb +3 -1
  41. data/lib/aspose_cells_cloud/requests/split_spreadsheet_request.rb +3 -1
  42. data/lib/aspose_cells_cloud/requests/unprotect_spreadsheet_request.rb +3 -1
  43. data/lib/aspose_cells_cloud/requests/upload_file_request.rb +3 -1
  44. data/lib/aspose_cells_cloud/version.rb +1 -1
  45. data/lib/aspose_cells_cloud.rb +13 -0
  46. metadata +15 -2
@@ -0,0 +1,234 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="AggregateResultByColorResponserb.cs">
4
+ Copyright (c) 2025 Aspose.Cells Cloud
5
+ </copyright>
6
+ <summary>
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
24
+ </summary>
25
+ --------------------------------------------------------------------------------------------------------------------
26
+ =end
27
+
28
+
29
+ require 'date'
30
+
31
+ module AsposeCellsCloud
32
+
33
+ class AggregateResultByColorResponse
34
+ #
35
+ attr_accessor :aggregate_results
36
+ #
37
+ attr_accessor :code
38
+ #
39
+ attr_accessor :status
40
+
41
+ # Attribute mapping from ruby-style variable name to JSON key.
42
+ def self.attribute_map
43
+ {
44
+ :'aggregate_results' => :'AggregateResults',
45
+ :'code' => :'Code',
46
+ :'status' => :'Status'
47
+ }
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.swagger_types
52
+ {
53
+ :'aggregate_results' => :'Array<AggregateResultByColor>',
54
+ :'code' => :'Integer',
55
+ :'status' => :'String'
56
+ }
57
+ end
58
+
59
+ # Initializes the object
60
+ # @param [Hash] attributes Model attributes in the form of hash
61
+ def initialize(attributes = {})
62
+ return unless attributes.is_a?(Hash)
63
+
64
+ # convert string to symbol for hash key
65
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
66
+
67
+ if attributes.has_key?(:'AggregateResults')
68
+ self.aggregate_results = attributes[:'AggregateResults']
69
+ end
70
+ if attributes.has_key?(:'Code')
71
+ self.code = attributes[:'Code']
72
+ end
73
+ if attributes.has_key?(:'Status')
74
+ self.status = attributes[:'Status']
75
+ end
76
+
77
+ end
78
+
79
+ # Show invalid properties with the reasons. Usually used together with valid?
80
+ # @return Array for valid properies with the reasons
81
+ def list_invalid_properties
82
+ invalid_properties = Array.new
83
+ if @aggregate_results.nil?
84
+ invalid_properties.push("invalid value for 'aggregate_results', aggregate_results cannot be nil.")
85
+ end
86
+ if @code.nil?
87
+ invalid_properties.push("invalid value for 'code', code cannot be nil.")
88
+ end
89
+ if @status.nil?
90
+ invalid_properties.push("invalid value for 'status', status cannot be nil.")
91
+ end
92
+
93
+ return invalid_properties
94
+ end
95
+
96
+ # Check to see if the all the properties in the model are valid
97
+ # @return true if the model is valid
98
+ def valid?
99
+ return false if @aggregate_results.nil?
100
+ return false if @code.nil?
101
+ return false if @status.nil?
102
+ return true
103
+ end
104
+
105
+ # Checks equality by comparing each attribute.
106
+ # @param [Object] Object to be compared
107
+ def ==(o)
108
+ return true if self.equal?(o)
109
+ self.class == o.class &&
110
+ aggregate_results == o.aggregate_results &&
111
+ code == o.code &&
112
+ status == o.status
113
+ std_dev == o.std_dev
114
+ end
115
+
116
+ # @see the `==` method
117
+ # @param [Object] Object to be compared
118
+ def eql?(o)
119
+ self == o
120
+ end
121
+
122
+ # Calculates hash code according to all attributes.
123
+ # @return [Fixnum] Hash code
124
+ def hash
125
+ [ aggregate_results , code , status ].hash
126
+ end
127
+
128
+ # Builds the object from hash
129
+ # @param [Hash] attributes Model attributes in the form of hash
130
+ # @return [Object] Returns the model itself
131
+ def build_from_hash(attributes)
132
+ return nil unless attributes.is_a?(Hash)
133
+ self.class.swagger_types.each_pair do |key, type|
134
+ if type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the the attribute
136
+ # is documented as an array but the input is not
137
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
138
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
139
+ end
140
+ elsif !attributes[self.class.attribute_map[key]].nil?
141
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
142
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
143
+ end
144
+
145
+ self
146
+ end
147
+
148
+ # Deserializes the data based on type
149
+ # @param string type Data type
150
+ # @param string value Value to be deserialized
151
+ # @return [Object] Deserialized data
152
+ def _deserialize(type, value)
153
+ case type.to_sym
154
+ when :DateTime
155
+ DateTime.parse(value)
156
+ when :Date
157
+ Date.parse(value)
158
+ when :String
159
+ value.to_s
160
+ when :Integer
161
+ value.to_i
162
+ when :Float
163
+ value.to_f
164
+ when :BOOLEAN
165
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
166
+ true
167
+ else
168
+ false
169
+ end
170
+ when :Object
171
+ # generic object (usually a Hash), return directly
172
+ value
173
+ when /\AArray<(?<inner_type>.+)>\z/
174
+ inner_type = Regexp.last_match[:inner_type]
175
+ value.map { |v| _deserialize(inner_type, v) }
176
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
177
+ k_type = Regexp.last_match[:k_type]
178
+ v_type = Regexp.last_match[:v_type]
179
+ {}.tap do |hash|
180
+ value.each do |k, v|
181
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
182
+ end
183
+ end
184
+ else # model
185
+ temp_model = AsposeCellsCloud.const_get(type).new
186
+ temp_model.build_from_hash(value)
187
+ end
188
+ end
189
+
190
+ # Returns the string representation of the object
191
+ # @return [String] String presentation of the object
192
+ def to_s
193
+ to_hash.to_s
194
+ end
195
+
196
+ # to_body is an alias to to_hash (backward compatibility)
197
+ # @return [Hash] Returns the object in the form of hash
198
+ def to_body
199
+ to_hash
200
+ end
201
+
202
+ # Returns the object in the form of hash
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_hash
205
+ hash = {}
206
+ self.class.attribute_map.each_pair do |attr, param|
207
+ value = self.send(attr)
208
+ next if value.nil?
209
+ hash[param] = _to_hash(value)
210
+ end
211
+ hash
212
+ end
213
+
214
+ # Outputs non-array value in the form of hash
215
+ # For object, use to_hash. Otherwise, just return the value
216
+ # @param [Object] value Any valid value
217
+ # @return [Hash] Returns the value in the form of hash
218
+ def _to_hash(value)
219
+ if value.is_a?(Array)
220
+ value.compact.map{ |v| _to_hash(v) }
221
+ elsif value.is_a?(Hash)
222
+ {}.tap do |hash|
223
+ value.each { |k, v| hash[k] = _to_hash(v) }
224
+ end
225
+ elsif value.respond_to? :to_hash
226
+ value.to_hash
227
+ else
228
+ value
229
+ end
230
+ end
231
+
232
+ end
233
+
234
+ end
@@ -0,0 +1,198 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="SpreadsheetTemplaterb.cs">
4
+ Copyright (c) 2025 Aspose.Cells Cloud
5
+ </copyright>
6
+ <summary>
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
24
+ </summary>
25
+ --------------------------------------------------------------------------------------------------------------------
26
+ =end
27
+
28
+
29
+ require 'date'
30
+
31
+ module AsposeCellsCloud
32
+
33
+ class SpreadsheetTemplate
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ def self.attribute_map
37
+ {
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.swagger_types
43
+ {
44
+ }
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ return unless attributes.is_a?(Hash)
51
+
52
+ # convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
54
+
55
+
56
+ end
57
+
58
+ # Show invalid properties with the reasons. Usually used together with valid?
59
+ # @return Array for valid properies with the reasons
60
+ def list_invalid_properties
61
+ invalid_properties = Array.new
62
+
63
+ return invalid_properties
64
+ end
65
+
66
+ # Check to see if the all the properties in the model are valid
67
+ # @return true if the model is valid
68
+ def valid?
69
+ return true
70
+ end
71
+
72
+ # Checks equality by comparing each attribute.
73
+ # @param [Object] Object to be compared
74
+ def ==(o)
75
+ return true if self.equal?(o)
76
+ self.class == o.class &&
77
+ std_dev == o.std_dev
78
+ end
79
+
80
+ # @see the `==` method
81
+ # @param [Object] Object to be compared
82
+ def eql?(o)
83
+ self == o
84
+ end
85
+
86
+ # Calculates hash code according to all attributes.
87
+ # @return [Fixnum] Hash code
88
+ def hash
89
+ [ ].hash
90
+ end
91
+
92
+ # Builds the object from hash
93
+ # @param [Hash] attributes Model attributes in the form of hash
94
+ # @return [Object] Returns the model itself
95
+ def build_from_hash(attributes)
96
+ return nil unless attributes.is_a?(Hash)
97
+ self.class.swagger_types.each_pair do |key, type|
98
+ if type =~ /\AArray<(.*)>/i
99
+ # check to ensure the input is an array given that the the attribute
100
+ # is documented as an array but the input is not
101
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
102
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
103
+ end
104
+ elsif !attributes[self.class.attribute_map[key]].nil?
105
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
106
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
107
+ end
108
+
109
+ self
110
+ end
111
+
112
+ # Deserializes the data based on type
113
+ # @param string type Data type
114
+ # @param string value Value to be deserialized
115
+ # @return [Object] Deserialized data
116
+ def _deserialize(type, value)
117
+ case type.to_sym
118
+ when :DateTime
119
+ DateTime.parse(value)
120
+ when :Date
121
+ Date.parse(value)
122
+ when :String
123
+ value.to_s
124
+ when :Integer
125
+ value.to_i
126
+ when :Float
127
+ value.to_f
128
+ when :BOOLEAN
129
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
130
+ true
131
+ else
132
+ false
133
+ end
134
+ when :Object
135
+ # generic object (usually a Hash), return directly
136
+ value
137
+ when /\AArray<(?<inner_type>.+)>\z/
138
+ inner_type = Regexp.last_match[:inner_type]
139
+ value.map { |v| _deserialize(inner_type, v) }
140
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
141
+ k_type = Regexp.last_match[:k_type]
142
+ v_type = Regexp.last_match[:v_type]
143
+ {}.tap do |hash|
144
+ value.each do |k, v|
145
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
146
+ end
147
+ end
148
+ else # model
149
+ temp_model = AsposeCellsCloud.const_get(type).new
150
+ temp_model.build_from_hash(value)
151
+ end
152
+ end
153
+
154
+ # Returns the string representation of the object
155
+ # @return [String] String presentation of the object
156
+ def to_s
157
+ to_hash.to_s
158
+ end
159
+
160
+ # to_body is an alias to to_hash (backward compatibility)
161
+ # @return [Hash] Returns the object in the form of hash
162
+ def to_body
163
+ to_hash
164
+ end
165
+
166
+ # Returns the object in the form of hash
167
+ # @return [Hash] Returns the object in the form of hash
168
+ def to_hash
169
+ hash = {}
170
+ self.class.attribute_map.each_pair do |attr, param|
171
+ value = self.send(attr)
172
+ next if value.nil?
173
+ hash[param] = _to_hash(value)
174
+ end
175
+ hash
176
+ end
177
+
178
+ # Outputs non-array value in the form of hash
179
+ # For object, use to_hash. Otherwise, just return the value
180
+ # @param [Object] value Any valid value
181
+ # @return [Hash] Returns the value in the form of hash
182
+ def _to_hash(value)
183
+ if value.is_a?(Array)
184
+ value.compact.map{ |v| _to_hash(v) }
185
+ elsif value.is_a?(Hash)
186
+ {}.tap do |hash|
187
+ value.each { |k, v| hash[k] = _to_hash(v) }
188
+ end
189
+ elsif value.respond_to? :to_hash
190
+ value.to_hash
191
+ else
192
+ value
193
+ end
194
+ end
195
+
196
+ end
197
+
198
+ end
@@ -0,0 +1,162 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="AddWorksheetToSpreadsheet_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 AddWorksheetToSpreadsheetRequest
33
+
34
+ attr_accessor :spreadsheet
35
+ attr_accessor :sheet_type
36
+ attr_accessor :position
37
+ attr_accessor :sheet_name
38
+ attr_accessor :out_path
39
+ attr_accessor :out_storage_name
40
+ attr_accessor :regoin
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?(:'sheetType')
54
+ self.sheet_type = attributes[:'sheetType']
55
+ end
56
+
57
+ if attributes.has_key?(:'position')
58
+ self.position = attributes[:'position']
59
+ end
60
+
61
+ if attributes.has_key?(:'sheetName')
62
+ self.sheet_name = attributes[:'sheetName']
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?(:'regoin')
74
+ self.regoin = attributes[:'regoin']
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
+ :'sheet_type' => :'sheetType',
87
+ :'position' => :'position',
88
+ :'sheet_name' => :'sheetName',
89
+ :'out_path' => :'outPath',
90
+ :'out_storage_name' => :'outStorageName',
91
+ :'regoin' => :'regoin',
92
+ :'password' => :'password'
93
+ }
94
+ end
95
+
96
+ # Attribute type mapping.
97
+ def self.swagger_types
98
+ {
99
+ :'spreadsheet' => :'String',
100
+ :'sheet_type' => :'String',
101
+ :'position' => :'Integer',
102
+ :'sheet_name' => :'String',
103
+ :'out_path' => :'String',
104
+ :'out_storage_name' => :'String',
105
+ :'regoin' => :'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.add_worksheet_to_spreadsheet ..."
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.add_worksheet_to_spreadsheet "
118
+ end
119
+
120
+ # resource path
121
+ local_var_path = "v4.0/cells/spreadsheet/add/worksheet"
122
+ # query parameters
123
+ query_params = {}
124
+ query_params[:'sheetType'] = self.sheet_type if !self.sheet_type.nil?
125
+ query_params[:'position'] = self.position if !self.position.nil?
126
+ query_params[:'sheetName'] = self.sheet_name if !self.sheet_name.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[:'regoin'] = self.regoin if !self.regoin.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
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
143
+ if !spreadsheet.empty? && File.exist?(spreadsheet )
144
+ form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
145
+ end
146
+
147
+ #auth_names = []
148
+ auth_names = ['JWT']
149
+ data, status_code, headers = api_client.call_api(:PUT, local_var_path,
150
+ :header_params => header_params,
151
+ :query_params => query_params,
152
+ :form_params => form_params,
153
+ :body => post_body,
154
+ :auth_names => auth_names,
155
+ :return_type => 'File')
156
+ if api_client.config.debugging
157
+ api_client.config.logger.debug "API called: Specification.Name>Api.add_worksheet_to_spreadsheet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
158
+ end
159
+ return data, status_code, headers
160
+ end
161
+ end
162
+ end