aspose_cells_cloud 21.6 → 21.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -376,6 +376,80 @@ module AsposeCellsCloud
376
376
  return data, status_code, headers
377
377
  end
378
378
 
379
+ #
380
+ #
381
+ # @param file File to upload
382
+ # @param import_data
383
+ # @param [Hash] opts the optional parameters
384
+ # @return [FilesResult]
385
+ def post_import(file, import_data, opts = {})
386
+ data, _status_code, _headers = post_import_with_http_info(file, import_data, opts)
387
+ return data
388
+ end
389
+
390
+ #
391
+ #
392
+ # @param file File to upload
393
+ # @param import_data
394
+ # @param [Hash] opts the optional parameters
395
+ # @return [Array<(FilesResult, Fixnum, Hash)>] FilesResult data, response status code and response headers
396
+ def post_import_with_http_info(file, import_data, opts = {})
397
+ if @api_client.config.debugging
398
+ @api_client.config.logger.debug "Calling API: LiteCellsApi.post_import ..."
399
+ end
400
+ @api_client.request_token_if_needed
401
+ # verify the required parameter 'file' is set
402
+ if @api_client.config.client_side_validation && file.nil?
403
+ fail ArgumentError, "Missing the required parameter 'file' when calling LiteCellsApi.post_import"
404
+ end
405
+ # verify the required parameter 'import_data' is set
406
+ if @api_client.config.client_side_validation && import_data.nil?
407
+ fail ArgumentError, "Missing the required parameter 'import_data' when calling LiteCellsApi.post_import"
408
+ end
409
+ # resource path
410
+ local_var_path = "/cells/import"
411
+
412
+ # query parameters
413
+ query_params = {}
414
+
415
+ # header parameters
416
+ header_params = {}
417
+ # HTTP header 'Accept' (if needed)
418
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
419
+ # HTTP header 'Content-Type'
420
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
421
+
422
+ # form parameters
423
+ form_params = {}
424
+ file.each do |filename , context|
425
+ form_params[filename] = context
426
+ end
427
+
428
+ # http body (model)
429
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
430
+ post_body = ""
431
+
432
+ # http body (model)
433
+ post_body = @api_client.object_to_http_body(import_data)
434
+ if post_body
435
+ form_params['documentproperties'] = post_body.to_json
436
+ end
437
+
438
+ #auth_names = []
439
+ auth_names = ['JWT']
440
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
441
+ :header_params => header_params,
442
+ :query_params => query_params,
443
+ :form_params => form_params,
444
+ :body => post_body,
445
+ :auth_names => auth_names,
446
+ :return_type => 'FilesResult')
447
+ if @api_client.config.debugging
448
+ @api_client.config.logger.debug "API called: LiteCellsApi#post_import\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
449
+ end
450
+ return data, status_code, headers
451
+ end
452
+
379
453
  #
380
454
  #
381
455
  # @param file File to upload
@@ -591,8 +665,6 @@ module AsposeCellsCloud
591
665
  # @param [Hash] opts the optional parameters
592
666
  # @option opts [String] :password
593
667
  # @option opts [String] :sheetname
594
- # @option opts [String] :path
595
- # @option opts [String] :storage_name
596
668
  # @return [Array<TextItem>]
597
669
  def post_search(file, text, opts = {})
598
670
  data, _status_code, _headers = post_search_with_http_info(file, text, opts)
@@ -605,9 +677,7 @@ module AsposeCellsCloud
605
677
  # @param text
606
678
  # @param [Hash] opts the optional parameters
607
679
  # @option opts [String] :password
608
- # @option opts [String] :sheetname
609
- # @option opts [String] :path
610
- # @option opts [String] :storage_name
680
+ # @option opts [String] :sheetname
611
681
  # @return [Array<(Array<TextItem>, Fixnum, Hash)>] Array<TextItem> data, response status code and response headers
612
682
  def post_search_with_http_info(file, text, opts = {})
613
683
  if @api_client.config.debugging
@@ -630,8 +700,6 @@ module AsposeCellsCloud
630
700
  query_params[:'text'] = text
631
701
  query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
632
702
  query_params[:'sheetname'] = opts[:'sheetname'] if !opts[:'sheetname'].nil?
633
- query_params[:'path'] = opts[:'path'] if !opts[:'path'].nil?
634
- query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
635
703
 
636
704
  # header parameters
637
705
  header_params = {}
@@ -672,8 +740,6 @@ module AsposeCellsCloud
672
740
  # @option opts [String] :password
673
741
  # @option opts [Integer] :from
674
742
  # @option opts [Integer] :to
675
- # @option opts [String] :path
676
- # @option opts [String] :storage_name
677
743
  # @return [FilesResult]
678
744
  def post_split(file, format, opts = {})
679
745
  data, _status_code, _headers = post_split_with_http_info(file, format, opts)
@@ -713,8 +779,6 @@ module AsposeCellsCloud
713
779
  query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
714
780
  query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
715
781
  query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
716
- query_params[:'path'] = opts[:'path'] if !opts[:'path'].nil?
717
- query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
718
782
 
719
783
  # header parameters
720
784
  header_params = {}
@@ -889,5 +953,154 @@ module AsposeCellsCloud
889
953
  end
890
954
  return data, status_code, headers
891
955
  end
956
+
957
+ #
958
+ #
959
+ # @param file File to upload
960
+ # @param compress_level
961
+ # @param [Hash] opts the optional parameters
962
+ # @return [FilesResult]
963
+ def post_compress(file, compress_level, opts = {})
964
+ data, _status_code, _headers = post_compress_with_http_info(file, compress_level, opts)
965
+ return data
966
+ end
967
+
968
+ #
969
+ #
970
+ # @param file File to upload
971
+ # @param compress_level
972
+ # @param [Hash] opts the optional parameters
973
+ # @return [Array<(FilesResult, Fixnum, Hash)>] FilesResult data, response status code and response headers
974
+ def post_compress_with_http_info(file, compress_level, opts = {})
975
+ if @api_client.config.debugging
976
+ @api_client.config.logger.debug "Calling API: LiteCellsApi.post_compress ..."
977
+ end
978
+ @api_client.request_token_if_needed
979
+ # verify the required parameter 'file' is set
980
+ if @api_client.config.client_side_validation && file.nil?
981
+ fail ArgumentError, "Missing the required parameter 'file' when calling LiteCellsApi.post_compress"
982
+ end
983
+ # verify the required parameter 'compress_level' is set
984
+ if @api_client.config.client_side_validation && compress_level.nil?
985
+ fail ArgumentError, "Missing the required parameter 'compress_level' when calling LiteCellsApi.post_compress"
986
+ end
987
+
988
+ # resource path
989
+ local_var_path = "/cells/compress"
990
+
991
+ # query parameters
992
+ query_params = {}
993
+ query_params[:'compressLevel'] = compress_level
994
+
995
+ # header parameters
996
+ header_params = {}
997
+ # HTTP header 'Accept' (if needed)
998
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
999
+ # HTTP header 'Content-Type'
1000
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1001
+
1002
+ # form parameters
1003
+ form_params = {}
1004
+ file.each do |filename , context|
1005
+ form_params[filename] = context
1006
+ end
1007
+
1008
+ # http body (model)
1009
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1010
+ post_body = ""
1011
+ #auth_names = []
1012
+ auth_names = ['JWT']
1013
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1014
+ :header_params => header_params,
1015
+ :query_params => query_params,
1016
+ :form_params => form_params,
1017
+ :body => post_body,
1018
+ :auth_names => auth_names,
1019
+ :return_type => 'FilesResult')
1020
+ if @api_client.config.debugging
1021
+ @api_client.config.logger.debug "API called: LiteCellsApi#post_compress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1022
+ end
1023
+ return data, status_code, headers
1024
+ end
1025
+
1026
+ #
1027
+ #
1028
+ # @param file File to upload
1029
+ # @param text
1030
+ # @param newtext
1031
+ # @param [Hash] opts the optional parameters
1032
+ # @param password
1033
+ # @param sheet_name
1034
+ # @return [FilesResult]
1035
+ def post_replace(file, text, newtext, opts = {})
1036
+ data, _status_code, _headers = post_replace_with_http_info(file, text, newtext, opts)
1037
+ return data
1038
+ end
1039
+
1040
+ #
1041
+ #
1042
+ # @param file File to upload
1043
+ # @param text
1044
+ # @param newtext
1045
+ # @param [Hash] opts the optional parameters
1046
+ # @param password
1047
+ # @param sheet_name
1048
+ # @return [Array<(FilesResult, Fixnum, Hash)>] FilesResult data, response status code and response headers
1049
+ def post_replace_with_http_info(file, text, newtext, opts = {})
1050
+ if @api_client.config.debugging
1051
+ @api_client.config.logger.debug "Calling API: LiteCellsApi.post_replace ..."
1052
+ end
1053
+ @api_client.request_token_if_needed
1054
+ # verify the required parameter 'file' is set
1055
+ if @api_client.config.client_side_validation && file.nil?
1056
+ fail ArgumentError, "Missing the required parameter 'file' when calling LiteCellsApi.post_replace"
1057
+ end
1058
+ # verify the required parameter 'text' is set
1059
+ if @api_client.config.client_side_validation && text.nil?
1060
+ fail ArgumentError, "Missing the required parameter 'text' when calling LiteCellsApi.post_replace"
1061
+ end
1062
+ # verify the required parameter 'color' is set
1063
+ if @api_client.config.client_side_validation && newtext.nil?
1064
+ fail ArgumentError, "Missing the required parameter 'newtext' when calling LiteCellsApi.post_replace"
1065
+ end
1066
+ # resource path
1067
+ local_var_path = "/cells/replace"
1068
+
1069
+ # query parameters
1070
+ query_params = {}
1071
+ query_params[:'text'] = text
1072
+ query_params[:'newtext'] = newtext
1073
+ query_params[:'password'] = opts[:'password'] if !opts[:'storagpassworde_name'].nil?
1074
+ query_params[:'sheetName'] = opts[:'sheet_name'] if !opts[:'sheet_name'].nil?
1075
+ # header parameters
1076
+ header_params = {}
1077
+ # HTTP header 'Accept' (if needed)
1078
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1079
+ # HTTP header 'Content-Type'
1080
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1081
+
1082
+ # form parameters
1083
+ form_params = {}
1084
+ file.each do |filename , context|
1085
+ form_params[filename] = context
1086
+ end
1087
+
1088
+ # http body (model)
1089
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1090
+ post_body = ""
1091
+ #auth_names = []
1092
+ auth_names = ['JWT']
1093
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1094
+ :header_params => header_params,
1095
+ :query_params => query_params,
1096
+ :form_params => form_params,
1097
+ :body => post_body,
1098
+ :auth_names => auth_names,
1099
+ :return_type => 'FilesResult')
1100
+ if @api_client.config.debugging
1101
+ @api_client.config.logger.debug "API called: LiteCellsApi#post_watermark\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1102
+ end
1103
+ return data, status_code, headers
1104
+ end
892
1105
  end
893
1106
  end
@@ -131,13 +131,13 @@ module AsposeCellsCloud
131
131
  if @config.access_token
132
132
  add_o_auth_token(req_opts)
133
133
  end
134
- #, :proxy => "http://127.0.0.1:8888"
134
+
135
135
  conn = Faraday.new url, {:params => query_params, :headers => header_params} do |f|
136
136
  f.request :multipart
137
137
  f.request :url_encoded
138
138
  f.adapter Faraday.default_adapter
139
139
  end
140
-
140
+
141
141
  if req_opts[:body] == {}
142
142
  req_opts[:body] = nil
143
143
  end
@@ -308,6 +308,7 @@ module AsposeCellsCloud
308
308
  case value
309
309
  when ::File
310
310
  data[key] = Faraday::UploadIO.new(value.path, "application/octet-stream", key) #MimeMagic::by_magic(value).to_s
311
+ # data[key] = Faraday::UploadIO.new(value.path, MimeMagic.by_magic(value).to_s, key)
311
312
  when ::Array, nil
312
313
  # let typhoeus handle File, Array and nil parameters
313
314
  data[key] = value
@@ -25,11 +25,11 @@ require 'date'
25
25
  module AsposeCellsCloud
26
26
 
27
27
  class AccessTokenResponse
28
- attr_accessor :_expires
28
+ attr_accessor :expires
29
29
 
30
30
  attr_accessor :access_token
31
31
 
32
- attr_accessor :_issued
32
+ attr_accessor :issued
33
33
 
34
34
  attr_accessor :client_refresh_token_life_time_in_minutes
35
35
 
@@ -45,9 +45,9 @@ module AsposeCellsCloud
45
45
  # Attribute mapping from ruby-style variable name to JSON key.
46
46
  def self.attribute_map
47
47
  {
48
- :'_expires' => :'.expires',
48
+ :'expires' => :'expires',
49
49
  :'access_token' => :'access_token',
50
- :'_issued' => :'.issued',
50
+ :'issued' => :'issued',
51
51
  :'client_refresh_token_life_time_in_minutes' => :'clientRefreshTokenLifeTimeInMinutes',
52
52
  :'expires_in' => :'expires_in',
53
53
  :'token_type' => :'token_type',
@@ -59,9 +59,9 @@ module AsposeCellsCloud
59
59
  # Attribute type mapping.
60
60
  def self.swagger_types
61
61
  {
62
- :'_expires' => :'String',
62
+ :'expires' => :'String',
63
63
  :'access_token' => :'String',
64
- :'_issued' => :'String',
64
+ :'issued' => :'String',
65
65
  :'client_refresh_token_life_time_in_minutes' => :'String',
66
66
  :'expires_in' => :'Integer',
67
67
  :'token_type' => :'String',
@@ -78,16 +78,16 @@ module AsposeCellsCloud
78
78
  # convert string to symbol for hash key
79
79
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
80
80
 
81
- if attributes.has_key?(:'.expires')
82
- self._expires = attributes[:'.expires']
81
+ if attributes.has_key?(:'expires')
82
+ self.expires = attributes[:'expires']
83
83
  end
84
84
 
85
85
  if attributes.has_key?(:'access_token')
86
86
  self.access_token = attributes[:'access_token']
87
87
  end
88
88
 
89
- if attributes.has_key?(:'.issued')
90
- self._issued = attributes[:'.issued']
89
+ if attributes.has_key?(:'issued')
90
+ self.issued = attributes[:'issued']
91
91
  end
92
92
 
93
93
  if attributes.has_key?(:'clientRefreshTokenLifeTimeInMinutes')
@@ -130,9 +130,9 @@ module AsposeCellsCloud
130
130
  def ==(o)
131
131
  return true if self.equal?(o)
132
132
  self.class == o.class &&
133
- _expires == o._expires &&
133
+ expires == o.expires &&
134
134
  access_token == o.access_token &&
135
- _issued == o._issued &&
135
+ issued == o.issued &&
136
136
  client_refresh_token_life_time_in_minutes == o.client_refresh_token_life_time_in_minutes &&
137
137
  expires_in == o.expires_in &&
138
138
  token_type == o.token_type &&
@@ -149,7 +149,7 @@ module AsposeCellsCloud
149
149
  # Calculates hash code according to all attributes.
150
150
  # @return [Fixnum] Hash code
151
151
  def hash
152
- [_expires, access_token, _issued, client_refresh_token_life_time_in_minutes, expires_in, token_type, client_id, refresh_token].hash
152
+ [expires, access_token, issued, client_refresh_token_life_time_in_minutes, expires_in, token_type, client_id, refresh_token].hash
153
153
  end
154
154
 
155
155
  # Builds the object from hash
@@ -0,0 +1,234 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ Copyright (c) 2021 Aspose.Cells Cloud
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ SOFTWARE.
19
+ --------------------------------------------------------------------------------------------------------------------
20
+
21
+ =end
22
+
23
+ require 'date'
24
+
25
+ module AsposeCellsCloud
26
+
27
+ class BatchConvertRequest
28
+ attr_accessor :source_folder
29
+
30
+ attr_accessor :match_condition
31
+
32
+ attr_accessor :format
33
+
34
+ attr_accessor :out_folder
35
+
36
+ attr_accessor :save_options
37
+
38
+
39
+ # Attribute mapping from ruby-style variable name to JSON key.
40
+ def self.attribute_map
41
+ {
42
+ :'source_folder' => :'SourceFolder',
43
+ :'match_condition' => :'MatchCondition',
44
+ :'format' => :'Format',
45
+ :'out_folder' => :'OutFolder',
46
+ :'save_options' => :'SaveOptions'
47
+ }
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.swagger_types
52
+ {
53
+ :'source_folder' => :'String',
54
+ :'match_condition' => :'MatchConditionRequest',
55
+ :'format' => :'String',
56
+ :'out_folder' => :'String',
57
+ :'save_options' => :'SaveOptions'
58
+ }
59
+ end
60
+
61
+ # Initializes the object
62
+ # @param [Hash] attributes Model attributes in the form of hash
63
+ def initialize(attributes = {})
64
+ return unless attributes.is_a?(Hash)
65
+
66
+ # convert string to symbol for hash key
67
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
68
+
69
+ if attributes.has_key?(:'SourceFolder')
70
+ self.source_folder = attributes[:'SourceFolder']
71
+ end
72
+
73
+ if attributes.has_key?(:'MatchCondition')
74
+ self.match_condition = attributes[:'MatchCondition']
75
+ end
76
+
77
+ if attributes.has_key?(:'Format')
78
+ self.format = attributes[:'Format']
79
+ end
80
+
81
+ if attributes.has_key?(:'OutFolder')
82
+ self.out_folder = attributes[:'OutFolder']
83
+ end
84
+
85
+ if attributes.has_key?(:'SaveOptions')
86
+ self.save_options = attributes[:'SaveOptions']
87
+ end
88
+
89
+ end
90
+
91
+ # Show invalid properties with the reasons. Usually used together with valid?
92
+ # @return Array for valid properies with the reasons
93
+ def list_invalid_properties
94
+ invalid_properties = Array.new
95
+ return invalid_properties
96
+ end
97
+
98
+ # Check to see if the all the properties in the model are valid
99
+ # @return true if the model is valid
100
+ def valid?
101
+ return true
102
+ end
103
+
104
+ # Checks equality by comparing each attribute.
105
+ # @param [Object] Object to be compared
106
+ def ==(o)
107
+ return true if self.equal?(o)
108
+ self.class == o.class &&
109
+ source_folder == o.source_folder &&
110
+ match_condition == o.match_condition &&
111
+ format == o.format &&
112
+ out_folder == o.out_folder &&
113
+ save_options == o.save_options
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
+ [source_folder, match_condition, format, out_folder, save_options].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
@@ -49,7 +49,7 @@ module AsposeCellsCloud
49
49
  {
50
50
  :'is_gte' => :'BOOLEAN',
51
51
  :'type' => :'String',
52
- :'value' => :'Object'
52
+ :'value' => :'String'
53
53
  }
54
54
  end
55
55
 
@@ -42,7 +42,7 @@ module AsposeCellsCloud
42
42
  def self.swagger_types
43
43
  {
44
44
  :'filter_operator_type' => :'String',
45
- :'criteria' => :'Object'
45
+ :'criteria' => :'String'
46
46
  }
47
47
  end
48
48
 
@@ -45,8 +45,8 @@ module AsposeCellsCloud
45
45
  def self.swagger_types
46
46
  {
47
47
  :'dynamic_filter_type' => :'String',
48
- :'max_value' => :'Object',
49
- :'value' => :'Object'
48
+ :'max_value' => :'Integer',
49
+ :'value' => :'Integer'
50
50
  }
51
51
  end
52
52