aspose_slides_cloud 19.12.0 → 20.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/lib/aspose_slides_cloud.rb +8 -0
  4. data/lib/aspose_slides_cloud/api/slides_api.rb +2156 -525
  5. data/lib/aspose_slides_cloud/api/slides_api_requests.rb +792 -124
  6. data/lib/aspose_slides_cloud/api_client.rb +7 -3
  7. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +20 -8
  8. data/lib/aspose_slides_cloud/models/add_master_slide.rb +20 -8
  9. data/lib/aspose_slides_cloud/models/add_shape.rb +20 -8
  10. data/lib/aspose_slides_cloud/models/add_slide.rb +20 -8
  11. data/lib/aspose_slides_cloud/models/api_info.rb +20 -8
  12. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +20 -23
  13. data/lib/aspose_slides_cloud/models/audio_frame.rb +20 -8
  14. data/lib/aspose_slides_cloud/models/axes.rb +20 -8
  15. data/lib/aspose_slides_cloud/models/axis.rb +20 -168
  16. data/lib/aspose_slides_cloud/models/base64_input_file.rb +20 -8
  17. data/lib/aspose_slides_cloud/models/blur_effect.rb +20 -8
  18. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +504 -0
  19. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +20 -8
  20. data/lib/aspose_slides_cloud/models/bubble_series.rb +24 -45
  21. data/lib/aspose_slides_cloud/models/chart.rb +23 -11
  22. data/lib/aspose_slides_cloud/models/chart_category.rb +249 -0
  23. data/lib/aspose_slides_cloud/models/chart_title.rb +20 -8
  24. data/lib/aspose_slides_cloud/models/chart_wall.rb +20 -18
  25. data/lib/aspose_slides_cloud/models/color_scheme.rb +20 -8
  26. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +217 -0
  27. data/lib/aspose_slides_cloud/models/connector.rb +20 -8
  28. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +20 -8
  29. data/lib/aspose_slides_cloud/models/disc_usage.rb +20 -8
  30. data/lib/aspose_slides_cloud/models/document.rb +31 -9
  31. data/lib/aspose_slides_cloud/models/document_properties.rb +20 -8
  32. data/lib/aspose_slides_cloud/models/document_property.rb +20 -8
  33. data/lib/aspose_slides_cloud/models/document_replace_result.rb +31 -9
  34. data/lib/aspose_slides_cloud/models/effect.rb +20 -8
  35. data/lib/aspose_slides_cloud/models/effect_format.rb +20 -8
  36. data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
  37. data/lib/aspose_slides_cloud/models/error.rb +20 -8
  38. data/lib/aspose_slides_cloud/models/error_details.rb +20 -8
  39. data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
  40. data/lib/aspose_slides_cloud/models/export_options.rb +20 -8
  41. data/lib/aspose_slides_cloud/models/file_version.rb +20 -8
  42. data/lib/aspose_slides_cloud/models/file_versions.rb +20 -8
  43. data/lib/aspose_slides_cloud/models/files_list.rb +20 -8
  44. data/lib/aspose_slides_cloud/models/files_upload_result.rb +20 -8
  45. data/lib/aspose_slides_cloud/models/fill_format.rb +20 -8
  46. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +20 -8
  47. data/lib/aspose_slides_cloud/models/font_scheme.rb +20 -8
  48. data/lib/aspose_slides_cloud/models/font_set.rb +20 -8
  49. data/lib/aspose_slides_cloud/models/format_scheme.rb +20 -8
  50. data/lib/aspose_slides_cloud/models/geometry_shape.rb +20 -8
  51. data/lib/aspose_slides_cloud/models/glow_effect.rb +20 -8
  52. data/lib/aspose_slides_cloud/models/gradient_fill.rb +20 -8
  53. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +20 -8
  54. data/lib/aspose_slides_cloud/models/graphical_object.rb +20 -8
  55. data/lib/aspose_slides_cloud/models/group_shape.rb +20 -8
  56. data/lib/aspose_slides_cloud/models/html_export_options.rb +20 -8
  57. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +20 -8
  58. data/lib/aspose_slides_cloud/models/image.rb +20 -8
  59. data/lib/aspose_slides_cloud/models/image_export_options.rb +20 -8
  60. data/lib/aspose_slides_cloud/models/images.rb +20 -8
  61. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +20 -8
  62. data/lib/aspose_slides_cloud/models/input.rb +20 -8
  63. data/lib/aspose_slides_cloud/models/input_file.rb +20 -8
  64. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +20 -8
  65. data/lib/aspose_slides_cloud/models/layout_slide.rb +20 -8
  66. data/lib/aspose_slides_cloud/models/layout_slides.rb +20 -8
  67. data/lib/aspose_slides_cloud/models/legend.rb +20 -38
  68. data/lib/aspose_slides_cloud/models/line_format.rb +20 -43
  69. data/lib/aspose_slides_cloud/models/master_slide.rb +20 -8
  70. data/lib/aspose_slides_cloud/models/master_slides.rb +20 -8
  71. data/lib/aspose_slides_cloud/models/merge.rb +20 -8
  72. data/lib/aspose_slides_cloud/models/merging_source.rb +20 -8
  73. data/lib/aspose_slides_cloud/models/no_fill.rb +20 -8
  74. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +217 -0
  75. data/lib/aspose_slides_cloud/models/notes_slide.rb +20 -8
  76. data/lib/aspose_slides_cloud/models/object_exist.rb +20 -8
  77. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +20 -8
  78. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +20 -8
  79. data/lib/aspose_slides_cloud/models/one_value_series.rb +24 -45
  80. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +20 -8
  81. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +20 -8
  82. data/lib/aspose_slides_cloud/models/output_file.rb +20 -8
  83. data/lib/aspose_slides_cloud/models/paragraph.rb +21 -9
  84. data/lib/aspose_slides_cloud/models/paragraphs.rb +20 -8
  85. data/lib/aspose_slides_cloud/models/path_input_file.rb +20 -8
  86. data/lib/aspose_slides_cloud/models/path_output_file.rb +20 -8
  87. data/lib/aspose_slides_cloud/models/pattern_fill.rb +20 -8
  88. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +53 -14
  89. data/lib/aspose_slides_cloud/models/picture_fill.rb +20 -8
  90. data/lib/aspose_slides_cloud/models/picture_frame.rb +20 -8
  91. data/lib/aspose_slides_cloud/models/pipeline.rb +20 -8
  92. data/lib/aspose_slides_cloud/models/placeholder.rb +20 -8
  93. data/lib/aspose_slides_cloud/models/placeholders.rb +20 -8
  94. data/lib/aspose_slides_cloud/models/plot_area.rb +20 -33
  95. data/lib/aspose_slides_cloud/models/portion.rb +20 -8
  96. data/lib/aspose_slides_cloud/models/portions.rb +28 -16
  97. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +20 -8
  98. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +20 -8
  99. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +20 -8
  100. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +20 -8
  101. data/lib/aspose_slides_cloud/models/reflection_effect.rb +20 -8
  102. data/lib/aspose_slides_cloud/models/remove_shape.rb +20 -8
  103. data/lib/aspose_slides_cloud/models/remove_slide.rb +20 -8
  104. data/lib/aspose_slides_cloud/models/reorder_slide.rb +20 -8
  105. data/lib/aspose_slides_cloud/models/replace_text.rb +20 -8
  106. data/lib/aspose_slides_cloud/models/request_input_file.rb +20 -8
  107. data/lib/aspose_slides_cloud/models/reset_slide.rb +20 -8
  108. data/lib/aspose_slides_cloud/models/resource_base.rb +20 -8
  109. data/lib/aspose_slides_cloud/models/resource_uri.rb +20 -8
  110. data/lib/aspose_slides_cloud/models/resource_uri_element.rb +20 -8
  111. data/lib/aspose_slides_cloud/models/response_output_file.rb +20 -8
  112. data/lib/aspose_slides_cloud/models/save.rb +22 -10
  113. data/lib/aspose_slides_cloud/models/save_shape.rb +20 -8
  114. data/lib/aspose_slides_cloud/models/save_slide.rb +22 -10
  115. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +20 -8
  116. data/lib/aspose_slides_cloud/models/scatter_series.rb +24 -45
  117. data/lib/aspose_slides_cloud/models/series.rb +47 -49
  118. data/lib/aspose_slides_cloud/models/series_marker.rb +20 -18
  119. data/lib/aspose_slides_cloud/models/shape.rb +20 -8
  120. data/lib/aspose_slides_cloud/models/shape_base.rb +20 -8
  121. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +20 -8
  122. data/lib/aspose_slides_cloud/models/shapes.rb +20 -8
  123. data/lib/aspose_slides_cloud/models/slide.rb +20 -8
  124. data/lib/aspose_slides_cloud/models/slide_animation.rb +20 -8
  125. data/lib/aspose_slides_cloud/models/slide_background.rb +20 -8
  126. data/lib/aspose_slides_cloud/models/slide_comment.rb +20 -8
  127. data/lib/aspose_slides_cloud/models/slide_comments.rb +20 -8
  128. data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
  129. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +20 -8
  130. data/lib/aspose_slides_cloud/models/slides.rb +20 -8
  131. data/lib/aspose_slides_cloud/models/smart_art.rb +20 -8
  132. data/lib/aspose_slides_cloud/models/smart_art_node.rb +20 -8
  133. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +20 -8
  134. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +20 -8
  135. data/lib/aspose_slides_cloud/models/solid_fill.rb +20 -8
  136. data/lib/aspose_slides_cloud/models/split_document_result.rb +20 -8
  137. data/lib/aspose_slides_cloud/models/storage_exist.rb +20 -8
  138. data/lib/aspose_slides_cloud/models/storage_file.rb +20 -8
  139. data/lib/aspose_slides_cloud/models/svg_export_options.rb +20 -8
  140. data/lib/aspose_slides_cloud/models/swf_export_options.rb +20 -8
  141. data/lib/aspose_slides_cloud/models/table.rb +20 -48
  142. data/lib/aspose_slides_cloud/models/table_cell.rb +20 -48
  143. data/lib/aspose_slides_cloud/models/table_column.rb +20 -8
  144. data/lib/aspose_slides_cloud/models/table_row.rb +20 -8
  145. data/lib/aspose_slides_cloud/models/task.rb +20 -8
  146. data/lib/aspose_slides_cloud/models/text_item.rb +20 -8
  147. data/lib/aspose_slides_cloud/models/text_items.rb +20 -8
  148. data/lib/aspose_slides_cloud/models/theme.rb +20 -8
  149. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +20 -8
  150. data/lib/aspose_slides_cloud/models/update_background.rb +20 -8
  151. data/lib/aspose_slides_cloud/models/update_shape.rb +20 -8
  152. data/lib/aspose_slides_cloud/models/video_frame.rb +20 -8
  153. data/lib/aspose_slides_cloud/models/view_properties.rb +379 -0
  154. data/lib/aspose_slides_cloud/models/waterfall_series.rb +452 -0
  155. data/lib/aspose_slides_cloud/models/xps_export_options.rb +20 -8
  156. data/lib/aspose_slides_cloud/version.rb +1 -1
  157. data/spec/api/slides_api_spec.rb +17214 -12046
  158. data/spec/extra/extra_spec.rb +111 -9
  159. data/spec/spec_utils.rb +8 -1
  160. data/testRules.json +80 -8
  161. metadata +9 -2
@@ -173,15 +173,27 @@ module AsposeSlidesCloud
173
173
  def build_from_hash(attributes)
174
174
  return nil unless attributes.is_a?(Hash)
175
175
  self.class.swagger_types.each_pair do |key, type|
176
- if type =~ /\AArray<(.*)>/i
177
- # check to ensure the input is an array given that the the attribute
178
- # is documented as an array but the input is not
179
- if attributes[self.class.attribute_map[key]].is_a?(Array)
180
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
176
+ mapKey = self.class.attribute_map[key]
177
+ if !mapKey.nil?
178
+ val = attributes[mapKey]
179
+ if val.nil?
180
+ mapKeyString = mapKey.to_s
181
+ mapKeyString[0] = mapKeyString[0].downcase
182
+ mapKey = mapKeyString.to_sym
183
+ val = attributes[mapKey]
181
184
  end
182
- elsif !attributes[self.class.attribute_map[key]].nil?
183
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
184
- end # or else data not found in attributes(hash), not an issue as the data can be optional
185
+ if !val.nil?
186
+ if type =~ /\AArray<(.*)>/i
187
+ # check to ensure the input is an array given that the the attribute
188
+ # is documented as an array but the input is not
189
+ if val.is_a?(Array)
190
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
191
+ end
192
+ else
193
+ self.send("#{key}=", _deserialize(type, val))
194
+ end
195
+ end
196
+ end
185
197
  end
186
198
 
187
199
  self
@@ -328,15 +328,27 @@ module AsposeSlidesCloud
328
328
  def build_from_hash(attributes)
329
329
  return nil unless attributes.is_a?(Hash)
330
330
  self.class.swagger_types.each_pair do |key, type|
331
- if type =~ /\AArray<(.*)>/i
332
- # check to ensure the input is an array given that the the attribute
333
- # is documented as an array but the input is not
334
- if attributes[self.class.attribute_map[key]].is_a?(Array)
335
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
331
+ mapKey = self.class.attribute_map[key]
332
+ if !mapKey.nil?
333
+ val = attributes[mapKey]
334
+ if val.nil?
335
+ mapKeyString = mapKey.to_s
336
+ mapKeyString[0] = mapKeyString[0].downcase
337
+ mapKey = mapKeyString.to_sym
338
+ val = attributes[mapKey]
336
339
  end
337
- elsif !attributes[self.class.attribute_map[key]].nil?
338
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
339
- end # or else data not found in attributes(hash), not an issue as the data can be optional
340
+ if !val.nil?
341
+ if type =~ /\AArray<(.*)>/i
342
+ # check to ensure the input is an array given that the the attribute
343
+ # is documented as an array but the input is not
344
+ if val.is_a?(Array)
345
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
346
+ end
347
+ else
348
+ self.send("#{key}=", _deserialize(type, val))
349
+ end
350
+ end
351
+ end
340
352
  end
341
353
 
342
354
  self
@@ -145,15 +145,27 @@ module AsposeSlidesCloud
145
145
  def build_from_hash(attributes)
146
146
  return nil unless attributes.is_a?(Hash)
147
147
  self.class.swagger_types.each_pair do |key, type|
148
- if type =~ /\AArray<(.*)>/i
149
- # check to ensure the input is an array given that the the attribute
150
- # is documented as an array but the input is not
151
- if attributes[self.class.attribute_map[key]].is_a?(Array)
152
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
148
+ mapKey = self.class.attribute_map[key]
149
+ if !mapKey.nil?
150
+ val = attributes[mapKey]
151
+ if val.nil?
152
+ mapKeyString = mapKey.to_s
153
+ mapKeyString[0] = mapKeyString[0].downcase
154
+ mapKey = mapKeyString.to_sym
155
+ val = attributes[mapKey]
153
156
  end
154
- elsif !attributes[self.class.attribute_map[key]].nil?
155
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
156
- end # or else data not found in attributes(hash), not an issue as the data can be optional
157
+ if !val.nil?
158
+ if type =~ /\AArray<(.*)>/i
159
+ # check to ensure the input is an array given that the the attribute
160
+ # is documented as an array but the input is not
161
+ if val.is_a?(Array)
162
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
163
+ end
164
+ else
165
+ self.send("#{key}=", _deserialize(type, val))
166
+ end
167
+ end
168
+ end
157
169
  end
158
170
 
159
171
  self
@@ -150,15 +150,27 @@ module AsposeSlidesCloud
150
150
  def build_from_hash(attributes)
151
151
  return nil unless attributes.is_a?(Hash)
152
152
  self.class.swagger_types.each_pair do |key, type|
153
- if type =~ /\AArray<(.*)>/i
154
- # check to ensure the input is an array given that the the attribute
155
- # is documented as an array but the input is not
156
- if attributes[self.class.attribute_map[key]].is_a?(Array)
157
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
153
+ mapKey = self.class.attribute_map[key]
154
+ if !mapKey.nil?
155
+ val = attributes[mapKey]
156
+ if val.nil?
157
+ mapKeyString = mapKey.to_s
158
+ mapKeyString[0] = mapKeyString[0].downcase
159
+ mapKey = mapKeyString.to_sym
160
+ val = attributes[mapKey]
158
161
  end
159
- elsif !attributes[self.class.attribute_map[key]].nil?
160
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
161
- end # or else data not found in attributes(hash), not an issue as the data can be optional
162
+ if !val.nil?
163
+ if type =~ /\AArray<(.*)>/i
164
+ # check to ensure the input is an array given that the the attribute
165
+ # is documented as an array but the input is not
166
+ if val.is_a?(Array)
167
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
168
+ end
169
+ else
170
+ self.send("#{key}=", _deserialize(type, val))
171
+ end
172
+ end
173
+ end
162
174
  end
163
175
 
164
176
  self
@@ -165,15 +165,27 @@ module AsposeSlidesCloud
165
165
  def build_from_hash(attributes)
166
166
  return nil unless attributes.is_a?(Hash)
167
167
  self.class.swagger_types.each_pair do |key, type|
168
- if type =~ /\AArray<(.*)>/i
169
- # check to ensure the input is an array given that the the attribute
170
- # is documented as an array but the input is not
171
- if attributes[self.class.attribute_map[key]].is_a?(Array)
172
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
168
+ mapKey = self.class.attribute_map[key]
169
+ if !mapKey.nil?
170
+ val = attributes[mapKey]
171
+ if val.nil?
172
+ mapKeyString = mapKey.to_s
173
+ mapKeyString[0] = mapKeyString[0].downcase
174
+ mapKey = mapKeyString.to_sym
175
+ val = attributes[mapKey]
173
176
  end
174
- elsif !attributes[self.class.attribute_map[key]].nil?
175
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
176
- end # or else data not found in attributes(hash), not an issue as the data can be optional
177
+ if !val.nil?
178
+ if type =~ /\AArray<(.*)>/i
179
+ # check to ensure the input is an array given that the the attribute
180
+ # is documented as an array but the input is not
181
+ if val.is_a?(Array)
182
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
183
+ end
184
+ else
185
+ self.send("#{key}=", _deserialize(type, val))
186
+ end
187
+ end
188
+ end
177
189
  end
178
190
 
179
191
  self
@@ -185,15 +185,27 @@ module AsposeSlidesCloud
185
185
  def build_from_hash(attributes)
186
186
  return nil unless attributes.is_a?(Hash)
187
187
  self.class.swagger_types.each_pair do |key, type|
188
- if type =~ /\AArray<(.*)>/i
189
- # check to ensure the input is an array given that the the attribute
190
- # is documented as an array but the input is not
191
- if attributes[self.class.attribute_map[key]].is_a?(Array)
192
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
188
+ mapKey = self.class.attribute_map[key]
189
+ if !mapKey.nil?
190
+ val = attributes[mapKey]
191
+ if val.nil?
192
+ mapKeyString = mapKey.to_s
193
+ mapKeyString[0] = mapKeyString[0].downcase
194
+ mapKey = mapKeyString.to_sym
195
+ val = attributes[mapKey]
193
196
  end
194
- elsif !attributes[self.class.attribute_map[key]].nil?
195
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
196
- end # or else data not found in attributes(hash), not an issue as the data can be optional
197
+ if !val.nil?
198
+ if type =~ /\AArray<(.*)>/i
199
+ # check to ensure the input is an array given that the the attribute
200
+ # is documented as an array but the input is not
201
+ if val.is_a?(Array)
202
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
203
+ end
204
+ else
205
+ self.send("#{key}=", _deserialize(type, val))
206
+ end
207
+ end
208
+ end
197
209
  end
198
210
 
199
211
  self
@@ -160,15 +160,27 @@ module AsposeSlidesCloud
160
160
  def build_from_hash(attributes)
161
161
  return nil unless attributes.is_a?(Hash)
162
162
  self.class.swagger_types.each_pair do |key, type|
163
- if type =~ /\AArray<(.*)>/i
164
- # check to ensure the input is an array given that the the attribute
165
- # is documented as an array but the input is not
166
- if attributes[self.class.attribute_map[key]].is_a?(Array)
167
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
163
+ mapKey = self.class.attribute_map[key]
164
+ if !mapKey.nil?
165
+ val = attributes[mapKey]
166
+ if val.nil?
167
+ mapKeyString = mapKey.to_s
168
+ mapKeyString[0] = mapKeyString[0].downcase
169
+ mapKey = mapKeyString.to_sym
170
+ val = attributes[mapKey]
168
171
  end
169
- elsif !attributes[self.class.attribute_map[key]].nil?
170
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
171
- end # or else data not found in attributes(hash), not an issue as the data can be optional
172
+ if !val.nil?
173
+ if type =~ /\AArray<(.*)>/i
174
+ # check to ensure the input is an array given that the the attribute
175
+ # is documented as an array but the input is not
176
+ if val.is_a?(Array)
177
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
178
+ end
179
+ else
180
+ self.send("#{key}=", _deserialize(type, val))
181
+ end
182
+ end
183
+ end
172
184
  end
173
185
 
174
186
  self
@@ -150,15 +150,27 @@ module AsposeSlidesCloud
150
150
  def build_from_hash(attributes)
151
151
  return nil unless attributes.is_a?(Hash)
152
152
  self.class.swagger_types.each_pair do |key, type|
153
- if type =~ /\AArray<(.*)>/i
154
- # check to ensure the input is an array given that the the attribute
155
- # is documented as an array but the input is not
156
- if attributes[self.class.attribute_map[key]].is_a?(Array)
157
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
153
+ mapKey = self.class.attribute_map[key]
154
+ if !mapKey.nil?
155
+ val = attributes[mapKey]
156
+ if val.nil?
157
+ mapKeyString = mapKey.to_s
158
+ mapKeyString[0] = mapKeyString[0].downcase
159
+ mapKey = mapKeyString.to_sym
160
+ val = attributes[mapKey]
158
161
  end
159
- elsif !attributes[self.class.attribute_map[key]].nil?
160
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
161
- end # or else data not found in attributes(hash), not an issue as the data can be optional
162
+ if !val.nil?
163
+ if type =~ /\AArray<(.*)>/i
164
+ # check to ensure the input is an array given that the the attribute
165
+ # is documented as an array but the input is not
166
+ if val.is_a?(Array)
167
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
168
+ end
169
+ else
170
+ self.send("#{key}=", _deserialize(type, val))
171
+ end
172
+ end
173
+ end
162
174
  end
163
175
 
164
176
  self
@@ -106,15 +106,27 @@ module AsposeSlidesCloud
106
106
  def build_from_hash(attributes)
107
107
  return nil unless attributes.is_a?(Hash)
108
108
  self.class.swagger_types.each_pair do |key, type|
109
- if type =~ /\AArray<(.*)>/i
110
- # check to ensure the input is an array given that the the attribute
111
- # is documented as an array but the input is not
112
- if attributes[self.class.attribute_map[key]].is_a?(Array)
113
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
109
+ mapKey = self.class.attribute_map[key]
110
+ if !mapKey.nil?
111
+ val = attributes[mapKey]
112
+ if val.nil?
113
+ mapKeyString = mapKey.to_s
114
+ mapKeyString[0] = mapKeyString[0].downcase
115
+ mapKey = mapKeyString.to_sym
116
+ val = attributes[mapKey]
114
117
  end
115
- elsif !attributes[self.class.attribute_map[key]].nil?
116
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
117
- end # or else data not found in attributes(hash), not an issue as the data can be optional
118
+ if !val.nil?
119
+ if type =~ /\AArray<(.*)>/i
120
+ # check to ensure the input is an array given that the the attribute
121
+ # is documented as an array but the input is not
122
+ if val.is_a?(Array)
123
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
124
+ end
125
+ else
126
+ self.send("#{key}=", _deserialize(type, val))
127
+ end
128
+ end
129
+ end
118
130
  end
119
131
 
120
132
  self
@@ -124,15 +124,27 @@ module AsposeSlidesCloud
124
124
  def build_from_hash(attributes)
125
125
  return nil unless attributes.is_a?(Hash)
126
126
  self.class.swagger_types.each_pair do |key, type|
127
- if type =~ /\AArray<(.*)>/i
128
- # check to ensure the input is an array given that the the attribute
129
- # is documented as an array but the input is not
130
- if attributes[self.class.attribute_map[key]].is_a?(Array)
131
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
127
+ mapKey = self.class.attribute_map[key]
128
+ if !mapKey.nil?
129
+ val = attributes[mapKey]
130
+ if val.nil?
131
+ mapKeyString = mapKey.to_s
132
+ mapKeyString[0] = mapKeyString[0].downcase
133
+ mapKey = mapKeyString.to_sym
134
+ val = attributes[mapKey]
132
135
  end
133
- elsif !attributes[self.class.attribute_map[key]].nil?
134
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
135
- end # or else data not found in attributes(hash), not an issue as the data can be optional
136
+ if !val.nil?
137
+ if type =~ /\AArray<(.*)>/i
138
+ # check to ensure the input is an array given that the the attribute
139
+ # is documented as an array but the input is not
140
+ if val.is_a?(Array)
141
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
142
+ end
143
+ else
144
+ self.send("#{key}=", _deserialize(type, val))
145
+ end
146
+ end
147
+ end
136
148
  end
137
149
 
138
150
  self
@@ -94,15 +94,27 @@ module AsposeSlidesCloud
94
94
  def build_from_hash(attributes)
95
95
  return nil unless attributes.is_a?(Hash)
96
96
  self.class.swagger_types.each_pair do |key, type|
97
- if type =~ /\AArray<(.*)>/i
98
- # check to ensure the input is an array given that the the attribute
99
- # is documented as an array but the input is not
100
- if attributes[self.class.attribute_map[key]].is_a?(Array)
101
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
97
+ mapKey = self.class.attribute_map[key]
98
+ if !mapKey.nil?
99
+ val = attributes[mapKey]
100
+ if val.nil?
101
+ mapKeyString = mapKey.to_s
102
+ mapKeyString[0] = mapKeyString[0].downcase
103
+ mapKey = mapKeyString.to_sym
104
+ val = attributes[mapKey]
102
105
  end
103
- elsif !attributes[self.class.attribute_map[key]].nil?
104
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
105
- end # or else data not found in attributes(hash), not an issue as the data can be optional
106
+ if !val.nil?
107
+ if type =~ /\AArray<(.*)>/i
108
+ # check to ensure the input is an array given that the the attribute
109
+ # is documented as an array but the input is not
110
+ if val.is_a?(Array)
111
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
112
+ end
113
+ else
114
+ self.send("#{key}=", _deserialize(type, val))
115
+ end
116
+ end
117
+ end
106
118
  end
107
119
 
108
120
  self
@@ -135,15 +135,27 @@ module AsposeSlidesCloud
135
135
  def build_from_hash(attributes)
136
136
  return nil unless attributes.is_a?(Hash)
137
137
  self.class.swagger_types.each_pair do |key, type|
138
- if type =~ /\AArray<(.*)>/i
139
- # check to ensure the input is an array given that the the attribute
140
- # is documented as an array but the input is not
141
- if attributes[self.class.attribute_map[key]].is_a?(Array)
142
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
138
+ mapKey = self.class.attribute_map[key]
139
+ if !mapKey.nil?
140
+ val = attributes[mapKey]
141
+ if val.nil?
142
+ mapKeyString = mapKey.to_s
143
+ mapKeyString[0] = mapKeyString[0].downcase
144
+ mapKey = mapKeyString.to_sym
145
+ val = attributes[mapKey]
143
146
  end
144
- elsif !attributes[self.class.attribute_map[key]].nil?
145
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
146
- end # or else data not found in attributes(hash), not an issue as the data can be optional
147
+ if !val.nil?
148
+ if type =~ /\AArray<(.*)>/i
149
+ # check to ensure the input is an array given that the the attribute
150
+ # is documented as an array but the input is not
151
+ if val.is_a?(Array)
152
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
153
+ end
154
+ else
155
+ self.send("#{key}=", _deserialize(type, val))
156
+ end
157
+ end
158
+ end
147
159
  end
148
160
 
149
161
  self
@@ -128,7 +128,7 @@ module AsposeSlidesCloud
128
128
  type_validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
129
129
  return false unless type_validator.valid?(@type)
130
130
  return false if @format.nil?
131
- format_validator = EnumAttributeValidator.new('String', ['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp'])
131
+ format_validator = EnumAttributeValidator.new('String', ['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp'])
132
132
  return false unless format_validator.valid?(@format)
133
133
  true
134
134
  end
@@ -146,7 +146,7 @@ module AsposeSlidesCloud
146
146
  # Custom attribute writer method checking allowed values (enum).
147
147
  # @param [Object] format Object to be assigned
148
148
  def format=(format)
149
- validator = EnumAttributeValidator.new('String', ['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp'])
149
+ validator = EnumAttributeValidator.new('String', ['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp'])
150
150
  unless validator.valid?(format)
151
151
  fail ArgumentError, 'invalid value for "format", must be one of #{validator.allowable_values}.'
152
152
  end
@@ -182,15 +182,27 @@ module AsposeSlidesCloud
182
182
  def build_from_hash(attributes)
183
183
  return nil unless attributes.is_a?(Hash)
184
184
  self.class.swagger_types.each_pair do |key, type|
185
- if type =~ /\AArray<(.*)>/i
186
- # check to ensure the input is an array given that the the attribute
187
- # is documented as an array but the input is not
188
- if attributes[self.class.attribute_map[key]].is_a?(Array)
189
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
185
+ mapKey = self.class.attribute_map[key]
186
+ if !mapKey.nil?
187
+ val = attributes[mapKey]
188
+ if val.nil?
189
+ mapKeyString = mapKey.to_s
190
+ mapKeyString[0] = mapKeyString[0].downcase
191
+ mapKey = mapKeyString.to_sym
192
+ val = attributes[mapKey]
190
193
  end
191
- elsif !attributes[self.class.attribute_map[key]].nil?
192
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
193
- end # or else data not found in attributes(hash), not an issue as the data can be optional
194
+ if !val.nil?
195
+ if type =~ /\AArray<(.*)>/i
196
+ # check to ensure the input is an array given that the the attribute
197
+ # is documented as an array but the input is not
198
+ if val.is_a?(Array)
199
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
200
+ end
201
+ else
202
+ self.send("#{key}=", _deserialize(type, val))
203
+ end
204
+ end
205
+ end
194
206
  end
195
207
 
196
208
  self