aspose_cells_cloud 23.6 → 23.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.
@@ -0,0 +1,330 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="RenderingWatermarkrb.cs">
4
+ Copyright (c) 2023 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 RenderingWatermark
34
+ #
35
+ attr_accessor :rotation
36
+ #
37
+ attr_accessor :scale_to_page_percent
38
+ #
39
+ attr_accessor :opacity
40
+ #
41
+ attr_accessor :is_background
42
+ #
43
+ attr_accessor :text
44
+ #
45
+ attr_accessor :font
46
+ #
47
+ attr_accessor :image
48
+ #
49
+ attr_accessor :h_alignment
50
+ #
51
+ attr_accessor :v_alignment
52
+ #
53
+ attr_accessor :offset_x
54
+ #
55
+ attr_accessor :offset_y
56
+
57
+ # Attribute mapping from ruby-style variable name to JSON key.
58
+ def self.attribute_map
59
+ {
60
+ :'rotation' => :'Rotation',
61
+ :'scale_to_page_percent' => :'ScaleToPagePercent',
62
+ :'opacity' => :'Opacity',
63
+ :'is_background' => :'IsBackground',
64
+ :'text' => :'Text',
65
+ :'font' => :'Font',
66
+ :'image' => :'Image',
67
+ :'h_alignment' => :'HAlignment',
68
+ :'v_alignment' => :'VAlignment',
69
+ :'offset_x' => :'OffsetX',
70
+ :'offset_y' => :'OffsetY'
71
+ }
72
+ end
73
+
74
+ # Attribute type mapping.
75
+ def self.swagger_types
76
+ {
77
+ :'rotation' => :'Float',
78
+ :'scale_to_page_percent' => :'Integer',
79
+ :'opacity' => :'Float',
80
+ :'is_background' => :'BOOLEAN',
81
+ :'text' => :'String',
82
+ :'font' => :'RenderingFont',
83
+ :'image' => :'Array<Integer>',
84
+ :'h_alignment' => :'String',
85
+ :'v_alignment' => :'String',
86
+ :'offset_x' => :'Float',
87
+ :'offset_y' => :'Float'
88
+ }
89
+ end
90
+
91
+ # Initializes the object
92
+ # @param [Hash] attributes Model attributes in the form of hash
93
+ def initialize(attributes = {})
94
+ return unless attributes.is_a?(Hash)
95
+
96
+ # convert string to symbol for hash key
97
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
98
+
99
+ if attributes.has_key?(:'Rotation')
100
+ self.rotation = attributes[:'Rotation']
101
+ end
102
+ if attributes.has_key?(:'ScaleToPagePercent')
103
+ self.scale_to_page_percent = attributes[:'ScaleToPagePercent']
104
+ end
105
+ if attributes.has_key?(:'Opacity')
106
+ self.opacity = attributes[:'Opacity']
107
+ end
108
+ if attributes.has_key?(:'IsBackground')
109
+ self.is_background = attributes[:'IsBackground']
110
+ end
111
+ if attributes.has_key?(:'Text')
112
+ self.text = attributes[:'Text']
113
+ end
114
+ if attributes.has_key?(:'Font')
115
+ self.font = attributes[:'Font']
116
+ end
117
+ if attributes.has_key?(:'Image')
118
+ self.image = attributes[:'Image']
119
+ end
120
+ if attributes.has_key?(:'HAlignment')
121
+ self.h_alignment = attributes[:'HAlignment']
122
+ end
123
+ if attributes.has_key?(:'VAlignment')
124
+ self.v_alignment = attributes[:'VAlignment']
125
+ end
126
+ if attributes.has_key?(:'OffsetX')
127
+ self.offset_x = attributes[:'OffsetX']
128
+ end
129
+ if attributes.has_key?(:'OffsetY')
130
+ self.offset_y = attributes[:'OffsetY']
131
+ end
132
+
133
+ end
134
+
135
+ # Show invalid properties with the reasons. Usually used together with valid?
136
+ # @return Array for valid properies with the reasons
137
+ def list_invalid_properties
138
+ invalid_properties = Array.new
139
+ if @rotation.nil?
140
+ invalid_properties.push("invalid value for 'rotation', rotation cannot be nil.")
141
+ end
142
+ if @scale_to_page_percent.nil?
143
+ invalid_properties.push("invalid value for 'scale_to_page_percent', scale_to_page_percent cannot be nil.")
144
+ end
145
+ if @opacity.nil?
146
+ invalid_properties.push("invalid value for 'opacity', opacity cannot be nil.")
147
+ end
148
+ if @is_background.nil?
149
+ invalid_properties.push("invalid value for 'is_background', is_background cannot be nil.")
150
+ end
151
+ if @text.nil?
152
+ invalid_properties.push("invalid value for 'text', text cannot be nil.")
153
+ end
154
+ if @font.nil?
155
+ invalid_properties.push("invalid value for 'font', font cannot be nil.")
156
+ end
157
+ if @image.nil?
158
+ invalid_properties.push("invalid value for 'image', image cannot be nil.")
159
+ end
160
+ if @h_alignment.nil?
161
+ invalid_properties.push("invalid value for 'h_alignment', h_alignment cannot be nil.")
162
+ end
163
+ if @v_alignment.nil?
164
+ invalid_properties.push("invalid value for 'v_alignment', v_alignment cannot be nil.")
165
+ end
166
+ if @offset_x.nil?
167
+ invalid_properties.push("invalid value for 'offset_x', offset_x cannot be nil.")
168
+ end
169
+ if @offset_y.nil?
170
+ invalid_properties.push("invalid value for 'offset_y', offset_y cannot be nil.")
171
+ end
172
+
173
+ return invalid_properties
174
+ end
175
+
176
+ # Check to see if the all the properties in the model are valid
177
+ # @return true if the model is valid
178
+ def valid?
179
+ return false if @rotation.nil?
180
+ return false if @scale_to_page_percent.nil?
181
+ return false if @opacity.nil?
182
+ return false if @is_background.nil?
183
+ return false if @text.nil?
184
+ return false if @font.nil?
185
+ return false if @image.nil?
186
+ return false if @h_alignment.nil?
187
+ return false if @v_alignment.nil?
188
+ return false if @offset_x.nil?
189
+ return false if @offset_y.nil?
190
+ return true
191
+ end
192
+
193
+ # Checks equality by comparing each attribute.
194
+ # @param [Object] Object to be compared
195
+ def ==(o)
196
+ return true if self.equal?(o)
197
+ self.class == o.class &&
198
+ rotation == o.rotation &&
199
+ scale_to_page_percent == o.scale_to_page_percent &&
200
+ opacity == o.opacity &&
201
+ is_background == o.is_background &&
202
+ text == o.text &&
203
+ font == o.font &&
204
+ image == o.image &&
205
+ h_alignment == o.h_alignment &&
206
+ v_alignment == o.v_alignment &&
207
+ offset_x == o.offset_x &&
208
+ offset_y == o.offset_y
209
+ std_dev == o.std_dev
210
+ end
211
+
212
+ # @see the `==` method
213
+ # @param [Object] Object to be compared
214
+ def eql?(o)
215
+ self == o
216
+ end
217
+
218
+ # Calculates hash code according to all attributes.
219
+ # @return [Fixnum] Hash code
220
+ def hash
221
+ [ rotation , scale_to_page_percent , opacity , is_background , text , font , image , h_alignment , v_alignment , offset_x , offset_y ].hash
222
+ end
223
+
224
+ # Builds the object from hash
225
+ # @param [Hash] attributes Model attributes in the form of hash
226
+ # @return [Object] Returns the model itself
227
+ def build_from_hash(attributes)
228
+ return nil unless attributes.is_a?(Hash)
229
+ self.class.swagger_types.each_pair do |key, type|
230
+ if type =~ /\AArray<(.*)>/i
231
+ # check to ensure the input is an array given that the the attribute
232
+ # is documented as an array but the input is not
233
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
234
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
235
+ end
236
+ elsif !attributes[self.class.attribute_map[key]].nil?
237
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
238
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
239
+ end
240
+
241
+ self
242
+ end
243
+
244
+ # Deserializes the data based on type
245
+ # @param string type Data type
246
+ # @param string value Value to be deserialized
247
+ # @return [Object] Deserialized data
248
+ def _deserialize(type, value)
249
+ case type.to_sym
250
+ when :DateTime
251
+ DateTime.parse(value)
252
+ when :Date
253
+ Date.parse(value)
254
+ when :String
255
+ value.to_s
256
+ when :Integer
257
+ value.to_i
258
+ when :Float
259
+ value.to_f
260
+ when :BOOLEAN
261
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
262
+ true
263
+ else
264
+ false
265
+ end
266
+ when :Object
267
+ # generic object (usually a Hash), return directly
268
+ value
269
+ when /\AArray<(?<inner_type>.+)>\z/
270
+ inner_type = Regexp.last_match[:inner_type]
271
+ value.map { |v| _deserialize(inner_type, v) }
272
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
273
+ k_type = Regexp.last_match[:k_type]
274
+ v_type = Regexp.last_match[:v_type]
275
+ {}.tap do |hash|
276
+ value.each do |k, v|
277
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
278
+ end
279
+ end
280
+ else # model
281
+ temp_model = AsposeCellsCloud.const_get(type).new
282
+ temp_model.build_from_hash(value)
283
+ end
284
+ end
285
+
286
+ # Returns the string representation of the object
287
+ # @return [String] String presentation of the object
288
+ def to_s
289
+ to_hash.to_s
290
+ end
291
+
292
+ # to_body is an alias to to_hash (backward compatibility)
293
+ # @return [Hash] Returns the object in the form of hash
294
+ def to_body
295
+ to_hash
296
+ end
297
+
298
+ # Returns the object in the form of hash
299
+ # @return [Hash] Returns the object in the form of hash
300
+ def to_hash
301
+ hash = {}
302
+ self.class.attribute_map.each_pair do |attr, param|
303
+ value = self.send(attr)
304
+ next if value.nil?
305
+ hash[param] = _to_hash(value)
306
+ end
307
+ hash
308
+ end
309
+
310
+ # Outputs non-array value in the form of hash
311
+ # For object, use to_hash. Otherwise, just return the value
312
+ # @param [Object] value Any valid value
313
+ # @return [Hash] Returns the value in the form of hash
314
+ def _to_hash(value)
315
+ if value.is_a?(Array)
316
+ value.compact.map{ |v| _to_hash(v) }
317
+ elsif value.is_a?(Hash)
318
+ {}.tap do |hash|
319
+ value.each { |k, v| hash[k] = _to_hash(v) }
320
+ end
321
+ elsif value.respond_to? :to_hash
322
+ value.to_hash
323
+ else
324
+ value
325
+ end
326
+ end
327
+
328
+ end
329
+
330
+ end
@@ -1,6 +1,6 @@
1
1
  =begin
2
2
  --------------------------------------------------------------------------------------------------------------------
3
- <copyright company="Aspose" file="GetExtractBarcodes_request.rb.cs">
3
+ <copyright company="Aspose" file="PostLock_request.rb.cs">
4
4
  Copyright (c) 2023 Aspose.Cells Cloud
5
5
  </copyright>
6
6
  <summary>
@@ -29,13 +29,10 @@
29
29
  require "uri"
30
30
 
31
31
  module AsposeCellsCloud
32
- class GetExtractBarcodesRequest
32
+ class PostLockRequest
33
33
 
34
- attr_accessor :name
35
- attr_accessor :sheet_name
36
- attr_accessor :picture_index
37
- attr_accessor :folder
38
- attr_accessor :storage_name
34
+ attr_accessor :file
35
+ attr_accessor :password
39
36
 
40
37
  def initialize(attributes = {})
41
38
  return unless attributes.is_a?(Hash)
@@ -43,69 +40,49 @@ module AsposeCellsCloud
43
40
  # convert string to symbol for hash key
44
41
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
45
42
 
46
- if attributes.has_key?(:'name')
47
- self.name = attributes[:'name']
43
+ if attributes.has_key?(:'File')
44
+ self.file = attributes[:'File']
48
45
  end
49
- if attributes.has_key?(:'sheetName')
50
- self.sheet_name = attributes[:'sheetName']
51
- end
52
- if attributes.has_key?(:'pictureIndex')
53
- self.picture_index = attributes[:'pictureIndex']
54
- end
55
- if attributes.has_key?(:'folder')
56
- self.folder = attributes[:'folder']
57
- end
58
- if attributes.has_key?(:'storageName')
59
- self.storage_name = attributes[:'storageName']
46
+ if attributes.has_key?(:'password')
47
+ self.password = attributes[:'password']
60
48
  end
61
49
 
62
50
  end
63
51
  # Attribute mapping from ruby-style variable name to JSON key.
64
52
  def self.attribute_map
65
53
  {
66
- :'name' => :'name',
67
- :'sheet_name' => :'sheetName',
68
- :'picture_index' => :'pictureIndex',
69
- :'folder' => :'folder',
70
- :'storage_name' => :'storageName'
54
+ :'file' => :'File',
55
+ :'password' => :'password'
71
56
  }
72
57
  end
73
58
 
74
59
  # Attribute type mapping.
75
60
  def self.swagger_types
76
61
  {
77
- :'name' => :'String',
78
- :'sheet_name' => :'String',
79
- :'picture_index' => :'Integer',
80
- :'folder' => :'String',
81
- :'storage_name' => :'String'
62
+ :'file' => :'Hash',
63
+ :'password' => :'String'
82
64
  }
83
65
  end
84
66
 
85
67
  def create_http_request(api_client,opts = {})
86
68
  if api_client.config.debugging
87
- api_client.config.logger.debug "Calling API: CellsApi.get_extract_barcodes ..."
69
+ api_client.config.logger.debug "Calling API: CellsApi.post_lock ..."
88
70
  end
89
71
  api_client.request_token_if_needed
90
- # verify the required parameter 'name' is set
91
- if api_client.config.client_side_validation && name.nil?
92
- fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.get_extract_barcodes "
72
+ # verify the required parameter 'file' is set
73
+ if api_client.config.client_side_validation && file.nil?
74
+ fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_lock "
93
75
  end
94
- # verify the required parameter 'sheet_name' is set
95
- if api_client.config.client_side_validation && sheet_name.nil?
96
- fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.get_extract_barcodes "
97
- end
98
- # verify the required parameter 'picture_index' is set
99
- if api_client.config.client_side_validation && picture_index.nil?
100
- fail ArgumentError, "Missing the required parameter 'picture_index' when calling CellsApi.get_extract_barcodes "
76
+ # verify the required parameter 'password' is set
77
+ if api_client.config.client_side_validation && password.nil?
78
+ fail ArgumentError, "Missing the required parameter 'password' when calling CellsApi.post_lock "
101
79
  end
102
80
 
103
81
  # resource path
104
- local_var_path = "/cells/{name}/worksheets/{sheetName}/pictures/{pictureIndex}/recognize".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'pictureIndex' + '}', picture_index.to_s)
82
+ local_var_path = "/cells/lock"
105
83
  # query parameters
106
84
  query_params = {}
107
- query_params[:'folder'] = self.folder if !self.folder.nil?
108
- query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
85
+ query_params[:'password'] = self.password if !self.password.nil?
109
86
 
110
87
  # header parameters
111
88
  header_params = {}
@@ -117,19 +94,25 @@ module AsposeCellsCloud
117
94
  # form parameters
118
95
  form_params = {}
119
96
  post_body = nil
97
+ if(!file.nil?)
98
+ file.each do |filename , context|
99
+ form_params[filename] = context
100
+ end
101
+ end
102
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
120
103
 
121
104
 
122
105
  #auth_names = []
123
106
  auth_names = ['JWT']
124
- data, status_code, headers = api_client.call_api(:GET, local_var_path,
107
+ data, status_code, headers = api_client.call_api(:POST, local_var_path,
125
108
  :header_params => header_params,
126
109
  :query_params => query_params,
127
110
  :form_params => form_params,
128
111
  :body => post_body,
129
112
  :auth_names => auth_names,
130
- :return_type => 'BarcodeResponseList')
113
+ :return_type => 'FilesResult')
131
114
  if api_client.config.debugging
132
- api_client.config.logger.debug "API called: Specification.Name>Api.get_extract_barcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
115
+ api_client.config.logger.debug "API called: Specification.Name>Api.post_lock\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
133
116
  end
134
117
  return data, status_code, headers
135
118
  end
@@ -32,6 +32,7 @@ module AsposeCellsCloud
32
32
  class PostProtectRequest
33
33
 
34
34
  attr_accessor :file
35
+ attr_accessor :protect_workbook_requst
35
36
  attr_accessor :password
36
37
 
37
38
  def initialize(attributes = {})
@@ -43,6 +44,9 @@ module AsposeCellsCloud
43
44
  if attributes.has_key?(:'File')
44
45
  self.file = attributes[:'File']
45
46
  end
47
+ if attributes.has_key?(:'protectWorkbookRequst')
48
+ self.protect_workbook_requst = attributes[:'protectWorkbookRequst']
49
+ end
46
50
  if attributes.has_key?(:'password')
47
51
  self.password = attributes[:'password']
48
52
  end
@@ -52,6 +56,7 @@ module AsposeCellsCloud
52
56
  def self.attribute_map
53
57
  {
54
58
  :'file' => :'File',
59
+ :'protect_workbook_requst' => :'protectWorkbookRequst',
55
60
  :'password' => :'password'
56
61
  }
57
62
  end
@@ -60,6 +65,7 @@ module AsposeCellsCloud
60
65
  def self.swagger_types
61
66
  {
62
67
  :'file' => :'Hash',
68
+ :'protect_workbook_requst' => :'ProtectWorkbookRequst',
63
69
  :'password' => :'String'
64
70
  }
65
71
  end
@@ -73,9 +79,9 @@ module AsposeCellsCloud
73
79
  if api_client.config.client_side_validation && file.nil?
74
80
  fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_protect "
75
81
  end
76
- # verify the required parameter 'password' is set
77
- if api_client.config.client_side_validation && password.nil?
78
- fail ArgumentError, "Missing the required parameter 'password' when calling CellsApi.post_protect "
82
+ # verify the required parameter 'protect_workbook_requst' is set
83
+ if api_client.config.client_side_validation && protect_workbook_requst.nil?
84
+ fail ArgumentError, "Missing the required parameter 'protect_workbook_requst' when calling CellsApi.post_protect "
79
85
  end
80
86
 
81
87
  # resource path
@@ -94,11 +100,10 @@ module AsposeCellsCloud
94
100
  # form parameters
95
101
  form_params = {}
96
102
  post_body = nil
97
- if(!file.nil?)
98
- file.each do |filename , context|
99
- form_params[filename] = context
100
- end
101
- end
103
+ file.each do |filename , context|
104
+ form_params[filename] = context
105
+ end
106
+ form_params['protect_workbook_requst'] = post_body.to_json
102
107
  header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
103
108
 
104
109
 
@@ -0,0 +1,116 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="PostRepair_request.rb.cs">
4
+ Copyright (c) 2023 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 PostRepairRequest
33
+
34
+ attr_accessor :file
35
+ attr_accessor :format
36
+
37
+ def initialize(attributes = {})
38
+ return unless attributes.is_a?(Hash)
39
+
40
+ # convert string to symbol for hash key
41
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
42
+
43
+ if attributes.has_key?(:'File')
44
+ self.file = attributes[:'File']
45
+ end
46
+ if attributes.has_key?(:'format')
47
+ self.format = attributes[:'format']
48
+ end
49
+
50
+ end
51
+ # Attribute mapping from ruby-style variable name to JSON key.
52
+ def self.attribute_map
53
+ {
54
+ :'file' => :'File',
55
+ :'format' => :'format'
56
+ }
57
+ end
58
+
59
+ # Attribute type mapping.
60
+ def self.swagger_types
61
+ {
62
+ :'file' => :'Hash',
63
+ :'format' => :'String'
64
+ }
65
+ end
66
+
67
+ def create_http_request(api_client,opts = {})
68
+ if api_client.config.debugging
69
+ api_client.config.logger.debug "Calling API: CellsApi.post_repair ..."
70
+ end
71
+ api_client.request_token_if_needed
72
+ # verify the required parameter 'file' is set
73
+ if api_client.config.client_side_validation && file.nil?
74
+ fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_repair "
75
+ end
76
+
77
+ # resource path
78
+ local_var_path = "/cells/repair"
79
+ # query parameters
80
+ query_params = {}
81
+ query_params[:'format'] = self.format if !self.format.nil?
82
+
83
+ # header parameters
84
+ header_params = {}
85
+ # HTTP header 'Accept' (if needed)
86
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
87
+ # HTTP header 'Content-Type'
88
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
89
+
90
+ # form parameters
91
+ form_params = {}
92
+ post_body = nil
93
+ if(!file.nil?)
94
+ file.each do |filename , context|
95
+ form_params[filename] = context
96
+ end
97
+ end
98
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
99
+
100
+
101
+ #auth_names = []
102
+ auth_names = ['JWT']
103
+ data, status_code, headers = api_client.call_api(:POST, local_var_path,
104
+ :header_params => header_params,
105
+ :query_params => query_params,
106
+ :form_params => form_params,
107
+ :body => post_body,
108
+ :auth_names => auth_names,
109
+ :return_type => 'FilesResult')
110
+ if api_client.config.debugging
111
+ api_client.config.logger.debug "API called: Specification.Name>Api.post_repair\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
112
+ end
113
+ return data, status_code, headers
114
+ end
115
+ end
116
+ end
@@ -27,5 +27,5 @@
27
27
 
28
28
 
29
29
  module AsposeCellsCloud
30
- VERSION = "23.6"
30
+ VERSION = "23.8"
31
31
  end