aspose_slides_cloud 20.6.0 → 20.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose_slides_cloud.rb +1 -0
  3. data/lib/aspose_slides_cloud/api/slides_api.rb +196 -4
  4. data/lib/aspose_slides_cloud/api/slides_api_requests.rb +78 -0
  5. data/lib/aspose_slides_cloud/api_client.rb +6 -3
  6. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +20 -8
  7. data/lib/aspose_slides_cloud/models/add_master_slide.rb +20 -8
  8. data/lib/aspose_slides_cloud/models/add_shape.rb +20 -8
  9. data/lib/aspose_slides_cloud/models/add_slide.rb +20 -8
  10. data/lib/aspose_slides_cloud/models/api_info.rb +20 -8
  11. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +20 -8
  12. data/lib/aspose_slides_cloud/models/audio_frame.rb +20 -8
  13. data/lib/aspose_slides_cloud/models/axes.rb +20 -8
  14. data/lib/aspose_slides_cloud/models/axis.rb +20 -8
  15. data/lib/aspose_slides_cloud/models/base64_input_file.rb +20 -8
  16. data/lib/aspose_slides_cloud/models/blur_effect.rb +20 -8
  17. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +22 -8
  18. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +20 -8
  19. data/lib/aspose_slides_cloud/models/bubble_series.rb +22 -8
  20. data/lib/aspose_slides_cloud/models/chart.rb +20 -8
  21. data/lib/aspose_slides_cloud/models/chart_category.rb +20 -8
  22. data/lib/aspose_slides_cloud/models/chart_title.rb +20 -8
  23. data/lib/aspose_slides_cloud/models/chart_wall.rb +20 -8
  24. data/lib/aspose_slides_cloud/models/color_scheme.rb +20 -8
  25. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +20 -8
  26. data/lib/aspose_slides_cloud/models/connector.rb +20 -8
  27. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +20 -8
  28. data/lib/aspose_slides_cloud/models/disc_usage.rb +20 -8
  29. data/lib/aspose_slides_cloud/models/document.rb +20 -8
  30. data/lib/aspose_slides_cloud/models/document_properties.rb +20 -8
  31. data/lib/aspose_slides_cloud/models/document_property.rb +20 -8
  32. data/lib/aspose_slides_cloud/models/document_replace_result.rb +20 -8
  33. data/lib/aspose_slides_cloud/models/effect.rb +20 -8
  34. data/lib/aspose_slides_cloud/models/effect_format.rb +20 -8
  35. data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
  36. data/lib/aspose_slides_cloud/models/error.rb +20 -8
  37. data/lib/aspose_slides_cloud/models/error_details.rb +20 -8
  38. data/lib/aspose_slides_cloud/models/export_options.rb +20 -8
  39. data/lib/aspose_slides_cloud/models/file_version.rb +20 -8
  40. data/lib/aspose_slides_cloud/models/file_versions.rb +20 -8
  41. data/lib/aspose_slides_cloud/models/files_list.rb +20 -8
  42. data/lib/aspose_slides_cloud/models/files_upload_result.rb +20 -8
  43. data/lib/aspose_slides_cloud/models/fill_format.rb +20 -8
  44. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +20 -8
  45. data/lib/aspose_slides_cloud/models/font_scheme.rb +20 -8
  46. data/lib/aspose_slides_cloud/models/font_set.rb +20 -8
  47. data/lib/aspose_slides_cloud/models/format_scheme.rb +20 -8
  48. data/lib/aspose_slides_cloud/models/geometry_shape.rb +20 -8
  49. data/lib/aspose_slides_cloud/models/glow_effect.rb +20 -8
  50. data/lib/aspose_slides_cloud/models/gradient_fill.rb +20 -8
  51. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +20 -8
  52. data/lib/aspose_slides_cloud/models/graphical_object.rb +20 -8
  53. data/lib/aspose_slides_cloud/models/group_shape.rb +20 -8
  54. data/lib/aspose_slides_cloud/models/html_export_options.rb +20 -8
  55. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +20 -8
  56. data/lib/aspose_slides_cloud/models/image.rb +20 -8
  57. data/lib/aspose_slides_cloud/models/image_export_options.rb +20 -8
  58. data/lib/aspose_slides_cloud/models/images.rb +20 -8
  59. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +20 -8
  60. data/lib/aspose_slides_cloud/models/input.rb +20 -8
  61. data/lib/aspose_slides_cloud/models/input_file.rb +20 -8
  62. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +20 -8
  63. data/lib/aspose_slides_cloud/models/layout_slide.rb +20 -8
  64. data/lib/aspose_slides_cloud/models/layout_slides.rb +20 -8
  65. data/lib/aspose_slides_cloud/models/legend.rb +20 -8
  66. data/lib/aspose_slides_cloud/models/line_format.rb +20 -8
  67. data/lib/aspose_slides_cloud/models/master_slide.rb +20 -8
  68. data/lib/aspose_slides_cloud/models/master_slides.rb +20 -8
  69. data/lib/aspose_slides_cloud/models/merge.rb +20 -8
  70. data/lib/aspose_slides_cloud/models/merging_source.rb +20 -8
  71. data/lib/aspose_slides_cloud/models/no_fill.rb +20 -8
  72. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +20 -8
  73. data/lib/aspose_slides_cloud/models/notes_slide.rb +20 -8
  74. data/lib/aspose_slides_cloud/models/object_exist.rb +20 -8
  75. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +20 -8
  76. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +20 -8
  77. data/lib/aspose_slides_cloud/models/one_value_series.rb +22 -8
  78. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +20 -8
  79. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +20 -8
  80. data/lib/aspose_slides_cloud/models/output_file.rb +20 -8
  81. data/lib/aspose_slides_cloud/models/paragraph.rb +21 -9
  82. data/lib/aspose_slides_cloud/models/paragraphs.rb +20 -8
  83. data/lib/aspose_slides_cloud/models/path_input_file.rb +20 -8
  84. data/lib/aspose_slides_cloud/models/path_output_file.rb +20 -8
  85. data/lib/aspose_slides_cloud/models/pattern_fill.rb +20 -8
  86. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +20 -8
  87. data/lib/aspose_slides_cloud/models/picture_fill.rb +20 -8
  88. data/lib/aspose_slides_cloud/models/picture_frame.rb +20 -8
  89. data/lib/aspose_slides_cloud/models/pipeline.rb +20 -8
  90. data/lib/aspose_slides_cloud/models/placeholder.rb +20 -8
  91. data/lib/aspose_slides_cloud/models/placeholders.rb +20 -8
  92. data/lib/aspose_slides_cloud/models/plot_area.rb +20 -8
  93. data/lib/aspose_slides_cloud/models/portion.rb +20 -8
  94. data/lib/aspose_slides_cloud/models/portions.rb +28 -16
  95. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +20 -8
  96. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +20 -8
  97. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +20 -8
  98. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +20 -8
  99. data/lib/aspose_slides_cloud/models/reflection_effect.rb +20 -8
  100. data/lib/aspose_slides_cloud/models/remove_shape.rb +20 -8
  101. data/lib/aspose_slides_cloud/models/remove_slide.rb +20 -8
  102. data/lib/aspose_slides_cloud/models/reorder_slide.rb +20 -8
  103. data/lib/aspose_slides_cloud/models/replace_text.rb +20 -8
  104. data/lib/aspose_slides_cloud/models/request_input_file.rb +20 -8
  105. data/lib/aspose_slides_cloud/models/reset_slide.rb +20 -8
  106. data/lib/aspose_slides_cloud/models/resource_base.rb +20 -8
  107. data/lib/aspose_slides_cloud/models/resource_uri.rb +20 -8
  108. data/lib/aspose_slides_cloud/models/resource_uri_element.rb +20 -8
  109. data/lib/aspose_slides_cloud/models/response_output_file.rb +20 -8
  110. data/lib/aspose_slides_cloud/models/save.rb +20 -8
  111. data/lib/aspose_slides_cloud/models/save_shape.rb +20 -8
  112. data/lib/aspose_slides_cloud/models/save_slide.rb +20 -8
  113. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +20 -8
  114. data/lib/aspose_slides_cloud/models/scatter_series.rb +22 -8
  115. data/lib/aspose_slides_cloud/models/series.rb +45 -12
  116. data/lib/aspose_slides_cloud/models/series_marker.rb +20 -8
  117. data/lib/aspose_slides_cloud/models/shape.rb +20 -8
  118. data/lib/aspose_slides_cloud/models/shape_base.rb +20 -8
  119. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +20 -8
  120. data/lib/aspose_slides_cloud/models/shapes.rb +20 -8
  121. data/lib/aspose_slides_cloud/models/slide.rb +20 -8
  122. data/lib/aspose_slides_cloud/models/slide_animation.rb +20 -8
  123. data/lib/aspose_slides_cloud/models/slide_background.rb +20 -8
  124. data/lib/aspose_slides_cloud/models/slide_comment.rb +20 -8
  125. data/lib/aspose_slides_cloud/models/slide_comments.rb +20 -8
  126. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +20 -8
  127. data/lib/aspose_slides_cloud/models/slides.rb +20 -8
  128. data/lib/aspose_slides_cloud/models/smart_art.rb +20 -8
  129. data/lib/aspose_slides_cloud/models/smart_art_node.rb +20 -8
  130. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +20 -8
  131. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +20 -8
  132. data/lib/aspose_slides_cloud/models/solid_fill.rb +20 -8
  133. data/lib/aspose_slides_cloud/models/split_document_result.rb +20 -8
  134. data/lib/aspose_slides_cloud/models/storage_exist.rb +20 -8
  135. data/lib/aspose_slides_cloud/models/storage_file.rb +20 -8
  136. data/lib/aspose_slides_cloud/models/svg_export_options.rb +20 -8
  137. data/lib/aspose_slides_cloud/models/swf_export_options.rb +20 -8
  138. data/lib/aspose_slides_cloud/models/table.rb +20 -8
  139. data/lib/aspose_slides_cloud/models/table_cell.rb +20 -8
  140. data/lib/aspose_slides_cloud/models/table_column.rb +20 -8
  141. data/lib/aspose_slides_cloud/models/table_row.rb +20 -8
  142. data/lib/aspose_slides_cloud/models/task.rb +20 -8
  143. data/lib/aspose_slides_cloud/models/text_item.rb +20 -8
  144. data/lib/aspose_slides_cloud/models/text_items.rb +20 -8
  145. data/lib/aspose_slides_cloud/models/theme.rb +20 -8
  146. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +20 -8
  147. data/lib/aspose_slides_cloud/models/update_background.rb +20 -8
  148. data/lib/aspose_slides_cloud/models/update_shape.rb +20 -8
  149. data/lib/aspose_slides_cloud/models/video_frame.rb +20 -8
  150. data/lib/aspose_slides_cloud/models/view_properties.rb +20 -8
  151. data/lib/aspose_slides_cloud/models/waterfall_series.rb +22 -8
  152. data/lib/aspose_slides_cloud/models/xps_export_options.rb +20 -8
  153. data/lib/aspose_slides_cloud/version.rb +1 -1
  154. data/spec/api/slides_api_spec.rb +626 -1
  155. data/spec/extra/extra_spec.rb +111 -9
  156. data/spec/spec_utils.rb +8 -1
  157. data/testRules.json +29 -4
  158. metadata +3 -2
@@ -180,15 +180,27 @@ module AsposeSlidesCloud
180
180
  def build_from_hash(attributes)
181
181
  return nil unless attributes.is_a?(Hash)
182
182
  self.class.swagger_types.each_pair do |key, type|
183
- if type =~ /\AArray<(.*)>/i
184
- # check to ensure the input is an array given that the the attribute
185
- # is documented as an array but the input is not
186
- if attributes[self.class.attribute_map[key]].is_a?(Array)
187
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
183
+ mapKey = self.class.attribute_map[key]
184
+ if !mapKey.nil?
185
+ val = attributes[mapKey]
186
+ if val.nil?
187
+ mapKeyString = mapKey.to_s
188
+ mapKeyString[0] = mapKeyString[0].downcase
189
+ mapKey = mapKeyString.to_sym
190
+ val = attributes[mapKey]
188
191
  end
189
- elsif !attributes[self.class.attribute_map[key]].nil?
190
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
191
- end # or else data not found in attributes(hash), not an issue as the data can be optional
192
+ if !val.nil?
193
+ if type =~ /\AArray<(.*)>/i
194
+ # check to ensure the input is an array given that the the attribute
195
+ # is documented as an array but the input is not
196
+ if val.is_a?(Array)
197
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
198
+ end
199
+ else
200
+ self.send("#{key}=", _deserialize(type, val))
201
+ end
202
+ end
203
+ end
192
204
  end
193
205
 
194
206
  self
@@ -321,15 +321,27 @@ module AsposeSlidesCloud
321
321
  def build_from_hash(attributes)
322
322
  return nil unless attributes.is_a?(Hash)
323
323
  self.class.swagger_types.each_pair do |key, type|
324
- if type =~ /\AArray<(.*)>/i
325
- # check to ensure the input is an array given that the the attribute
326
- # is documented as an array but the input is not
327
- if attributes[self.class.attribute_map[key]].is_a?(Array)
328
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
324
+ mapKey = self.class.attribute_map[key]
325
+ if !mapKey.nil?
326
+ val = attributes[mapKey]
327
+ if val.nil?
328
+ mapKeyString = mapKey.to_s
329
+ mapKeyString[0] = mapKeyString[0].downcase
330
+ mapKey = mapKeyString.to_sym
331
+ val = attributes[mapKey]
329
332
  end
330
- elsif !attributes[self.class.attribute_map[key]].nil?
331
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
332
- end # or else data not found in attributes(hash), not an issue as the data can be optional
333
+ if !val.nil?
334
+ if type =~ /\AArray<(.*)>/i
335
+ # check to ensure the input is an array given that the the attribute
336
+ # is documented as an array but the input is not
337
+ if val.is_a?(Array)
338
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
339
+ end
340
+ else
341
+ self.send("#{key}=", _deserialize(type, val))
342
+ end
343
+ end
344
+ end
333
345
  end
334
346
 
335
347
  self
@@ -99,15 +99,27 @@ module AsposeSlidesCloud
99
99
  def build_from_hash(attributes)
100
100
  return nil unless attributes.is_a?(Hash)
101
101
  self.class.swagger_types.each_pair do |key, type|
102
- if type =~ /\AArray<(.*)>/i
103
- # check to ensure the input is an array given that the the attribute
104
- # is documented as an array but the input is not
105
- if attributes[self.class.attribute_map[key]].is_a?(Array)
106
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
102
+ mapKey = self.class.attribute_map[key]
103
+ if !mapKey.nil?
104
+ val = attributes[mapKey]
105
+ if val.nil?
106
+ mapKeyString = mapKey.to_s
107
+ mapKeyString[0] = mapKeyString[0].downcase
108
+ mapKey = mapKeyString.to_sym
109
+ val = attributes[mapKey]
107
110
  end
108
- elsif !attributes[self.class.attribute_map[key]].nil?
109
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
110
- end # or else data not found in attributes(hash), not an issue as the data can be optional
111
+ if !val.nil?
112
+ if type =~ /\AArray<(.*)>/i
113
+ # check to ensure the input is an array given that the the attribute
114
+ # is documented as an array but the input is not
115
+ if val.is_a?(Array)
116
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
117
+ end
118
+ else
119
+ self.send("#{key}=", _deserialize(type, val))
120
+ end
121
+ end
122
+ end
111
123
  end
112
124
 
113
125
  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
@@ -118,15 +118,27 @@ module AsposeSlidesCloud
118
118
  def build_from_hash(attributes)
119
119
  return nil unless attributes.is_a?(Hash)
120
120
  self.class.swagger_types.each_pair do |key, type|
121
- if type =~ /\AArray<(.*)>/i
122
- # check to ensure the input is an array given that the the attribute
123
- # is documented as an array but the input is not
124
- if attributes[self.class.attribute_map[key]].is_a?(Array)
125
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
121
+ mapKey = self.class.attribute_map[key]
122
+ if !mapKey.nil?
123
+ val = attributes[mapKey]
124
+ if val.nil?
125
+ mapKeyString = mapKey.to_s
126
+ mapKeyString[0] = mapKeyString[0].downcase
127
+ mapKey = mapKeyString.to_sym
128
+ val = attributes[mapKey]
126
129
  end
127
- elsif !attributes[self.class.attribute_map[key]].nil?
128
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
129
- end # or else data not found in attributes(hash), not an issue as the data can be optional
130
+ if !val.nil?
131
+ if type =~ /\AArray<(.*)>/i
132
+ # check to ensure the input is an array given that the the attribute
133
+ # is documented as an array but the input is not
134
+ if val.is_a?(Array)
135
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
136
+ end
137
+ else
138
+ self.send("#{key}=", _deserialize(type, val))
139
+ end
140
+ end
141
+ end
130
142
  end
131
143
 
132
144
  self
@@ -99,15 +99,27 @@ module AsposeSlidesCloud
99
99
  def build_from_hash(attributes)
100
100
  return nil unless attributes.is_a?(Hash)
101
101
  self.class.swagger_types.each_pair do |key, type|
102
- if type =~ /\AArray<(.*)>/i
103
- # check to ensure the input is an array given that the the attribute
104
- # is documented as an array but the input is not
105
- if attributes[self.class.attribute_map[key]].is_a?(Array)
106
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
102
+ mapKey = self.class.attribute_map[key]
103
+ if !mapKey.nil?
104
+ val = attributes[mapKey]
105
+ if val.nil?
106
+ mapKeyString = mapKey.to_s
107
+ mapKeyString[0] = mapKeyString[0].downcase
108
+ mapKey = mapKeyString.to_sym
109
+ val = attributes[mapKey]
107
110
  end
108
- elsif !attributes[self.class.attribute_map[key]].nil?
109
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
110
- end # or else data not found in attributes(hash), not an issue as the data can be optional
111
+ if !val.nil?
112
+ if type =~ /\AArray<(.*)>/i
113
+ # check to ensure the input is an array given that the the attribute
114
+ # is documented as an array but the input is not
115
+ if val.is_a?(Array)
116
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
117
+ end
118
+ else
119
+ self.send("#{key}=", _deserialize(type, val))
120
+ end
121
+ end
122
+ end
111
123
  end
112
124
 
113
125
  self
@@ -144,15 +144,27 @@ module AsposeSlidesCloud
144
144
  def build_from_hash(attributes)
145
145
  return nil unless attributes.is_a?(Hash)
146
146
  self.class.swagger_types.each_pair do |key, type|
147
- if type =~ /\AArray<(.*)>/i
148
- # check to ensure the input is an array given that the the attribute
149
- # is documented as an array but the input is not
150
- if attributes[self.class.attribute_map[key]].is_a?(Array)
151
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
147
+ mapKey = self.class.attribute_map[key]
148
+ if !mapKey.nil?
149
+ val = attributes[mapKey]
150
+ if val.nil?
151
+ mapKeyString = mapKey.to_s
152
+ mapKeyString[0] = mapKeyString[0].downcase
153
+ mapKey = mapKeyString.to_sym
154
+ val = attributes[mapKey]
152
155
  end
153
- elsif !attributes[self.class.attribute_map[key]].nil?
154
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
155
- end # or else data not found in attributes(hash), not an issue as the data can be optional
156
+ if !val.nil?
157
+ if type =~ /\AArray<(.*)>/i
158
+ # check to ensure the input is an array given that the the attribute
159
+ # is documented as an array but the input is not
160
+ if val.is_a?(Array)
161
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
162
+ end
163
+ else
164
+ self.send("#{key}=", _deserialize(type, val))
165
+ end
166
+ end
167
+ end
156
168
  end
157
169
 
158
170
  self
@@ -277,15 +277,27 @@ module AsposeSlidesCloud
277
277
  def build_from_hash(attributes)
278
278
  return nil unless attributes.is_a?(Hash)
279
279
  self.class.swagger_types.each_pair do |key, type|
280
- if type =~ /\AArray<(.*)>/i
281
- # check to ensure the input is an array given that the the attribute
282
- # is documented as an array but the input is not
283
- if attributes[self.class.attribute_map[key]].is_a?(Array)
284
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
280
+ mapKey = self.class.attribute_map[key]
281
+ if !mapKey.nil?
282
+ val = attributes[mapKey]
283
+ if val.nil?
284
+ mapKeyString = mapKey.to_s
285
+ mapKeyString[0] = mapKeyString[0].downcase
286
+ mapKey = mapKeyString.to_sym
287
+ val = attributes[mapKey]
285
288
  end
286
- elsif !attributes[self.class.attribute_map[key]].nil?
287
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
288
- end # or else data not found in attributes(hash), not an issue as the data can be optional
289
+ if !val.nil?
290
+ if type =~ /\AArray<(.*)>/i
291
+ # check to ensure the input is an array given that the the attribute
292
+ # is documented as an array but the input is not
293
+ if val.is_a?(Array)
294
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
295
+ end
296
+ else
297
+ self.send("#{key}=", _deserialize(type, val))
298
+ end
299
+ end
300
+ end
289
301
  end
290
302
 
291
303
  self
@@ -427,15 +427,27 @@ module AsposeSlidesCloud
427
427
  def build_from_hash(attributes)
428
428
  return nil unless attributes.is_a?(Hash)
429
429
  self.class.swagger_types.each_pair do |key, type|
430
- if type =~ /\AArray<(.*)>/i
431
- # check to ensure the input is an array given that the the attribute
432
- # is documented as an array but the input is not
433
- if attributes[self.class.attribute_map[key]].is_a?(Array)
434
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
430
+ mapKey = self.class.attribute_map[key]
431
+ if !mapKey.nil?
432
+ val = attributes[mapKey]
433
+ if val.nil?
434
+ mapKeyString = mapKey.to_s
435
+ mapKeyString[0] = mapKeyString[0].downcase
436
+ mapKey = mapKeyString.to_sym
437
+ val = attributes[mapKey]
435
438
  end
436
- elsif !attributes[self.class.attribute_map[key]].nil?
437
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
438
- end # or else data not found in attributes(hash), not an issue as the data can be optional
439
+ if !val.nil?
440
+ if type =~ /\AArray<(.*)>/i
441
+ # check to ensure the input is an array given that the the attribute
442
+ # is documented as an array but the input is not
443
+ if val.is_a?(Array)
444
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
445
+ end
446
+ else
447
+ self.send("#{key}=", _deserialize(type, val))
448
+ end
449
+ end
450
+ end
439
451
  end
440
452
 
441
453
  self
@@ -437,15 +437,27 @@ module AsposeSlidesCloud
437
437
  def build_from_hash(attributes)
438
438
  return nil unless attributes.is_a?(Hash)
439
439
  self.class.swagger_types.each_pair do |key, type|
440
- if type =~ /\AArray<(.*)>/i
441
- # check to ensure the input is an array given that the the attribute
442
- # is documented as an array but the input is not
443
- if attributes[self.class.attribute_map[key]].is_a?(Array)
444
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
440
+ mapKey = self.class.attribute_map[key]
441
+ if !mapKey.nil?
442
+ val = attributes[mapKey]
443
+ if val.nil?
444
+ mapKeyString = mapKey.to_s
445
+ mapKeyString[0] = mapKeyString[0].downcase
446
+ mapKey = mapKeyString.to_sym
447
+ val = attributes[mapKey]
445
448
  end
446
- elsif !attributes[self.class.attribute_map[key]].nil?
447
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
448
- end # or else data not found in attributes(hash), not an issue as the data can be optional
449
+ if !val.nil?
450
+ if type =~ /\AArray<(.*)>/i
451
+ # check to ensure the input is an array given that the the attribute
452
+ # is documented as an array but the input is not
453
+ if val.is_a?(Array)
454
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
455
+ end
456
+ else
457
+ self.send("#{key}=", _deserialize(type, val))
458
+ end
459
+ end
460
+ end
449
461
  end
450
462
 
451
463
  self
@@ -290,15 +290,27 @@ module AsposeSlidesCloud
290
290
  def build_from_hash(attributes)
291
291
  return nil unless attributes.is_a?(Hash)
292
292
  self.class.swagger_types.each_pair do |key, type|
293
- if type =~ /\AArray<(.*)>/i
294
- # check to ensure the input is an array given that the the attribute
295
- # is documented as an array but the input is not
296
- if attributes[self.class.attribute_map[key]].is_a?(Array)
297
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
293
+ mapKey = self.class.attribute_map[key]
294
+ if !mapKey.nil?
295
+ val = attributes[mapKey]
296
+ if val.nil?
297
+ mapKeyString = mapKey.to_s
298
+ mapKeyString[0] = mapKeyString[0].downcase
299
+ mapKey = mapKeyString.to_sym
300
+ val = attributes[mapKey]
298
301
  end
299
- elsif !attributes[self.class.attribute_map[key]].nil?
300
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
301
- end # or else data not found in attributes(hash), not an issue as the data can be optional
302
+ if !val.nil?
303
+ if type =~ /\AArray<(.*)>/i
304
+ # check to ensure the input is an array given that the the attribute
305
+ # is documented as an array but the input is not
306
+ if val.is_a?(Array)
307
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
308
+ end
309
+ else
310
+ self.send("#{key}=", _deserialize(type, val))
311
+ end
312
+ end
313
+ end
302
314
  end
303
315
 
304
316
  self
@@ -99,15 +99,27 @@ module AsposeSlidesCloud
99
99
  def build_from_hash(attributes)
100
100
  return nil unless attributes.is_a?(Hash)
101
101
  self.class.swagger_types.each_pair do |key, type|
102
- if type =~ /\AArray<(.*)>/i
103
- # check to ensure the input is an array given that the the attribute
104
- # is documented as an array but the input is not
105
- if attributes[self.class.attribute_map[key]].is_a?(Array)
106
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
102
+ mapKey = self.class.attribute_map[key]
103
+ if !mapKey.nil?
104
+ val = attributes[mapKey]
105
+ if val.nil?
106
+ mapKeyString = mapKey.to_s
107
+ mapKeyString[0] = mapKeyString[0].downcase
108
+ mapKey = mapKeyString.to_sym
109
+ val = attributes[mapKey]
107
110
  end
108
- elsif !attributes[self.class.attribute_map[key]].nil?
109
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
110
- end # or else data not found in attributes(hash), not an issue as the data can be optional
111
+ if !val.nil?
112
+ if type =~ /\AArray<(.*)>/i
113
+ # check to ensure the input is an array given that the the attribute
114
+ # is documented as an array but the input is not
115
+ if val.is_a?(Array)
116
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
117
+ end
118
+ else
119
+ self.send("#{key}=", _deserialize(type, val))
120
+ end
121
+ end
122
+ end
111
123
  end
112
124
 
113
125
  self
@@ -126,15 +126,27 @@ module AsposeSlidesCloud
126
126
  def build_from_hash(attributes)
127
127
  return nil unless attributes.is_a?(Hash)
128
128
  self.class.swagger_types.each_pair do |key, type|
129
- if type =~ /\AArray<(.*)>/i
130
- # check to ensure the input is an array given that the the attribute
131
- # is documented as an array but the input is not
132
- if attributes[self.class.attribute_map[key]].is_a?(Array)
133
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
129
+ mapKey = self.class.attribute_map[key]
130
+ if !mapKey.nil?
131
+ val = attributes[mapKey]
132
+ if val.nil?
133
+ mapKeyString = mapKey.to_s
134
+ mapKeyString[0] = mapKeyString[0].downcase
135
+ mapKey = mapKeyString.to_sym
136
+ val = attributes[mapKey]
134
137
  end
135
- elsif !attributes[self.class.attribute_map[key]].nil?
136
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
137
- end # or else data not found in attributes(hash), not an issue as the data can be optional
138
+ if !val.nil?
139
+ if type =~ /\AArray<(.*)>/i
140
+ # check to ensure the input is an array given that the the attribute
141
+ # is documented as an array but the input is not
142
+ if val.is_a?(Array)
143
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
144
+ end
145
+ else
146
+ self.send("#{key}=", _deserialize(type, val))
147
+ end
148
+ end
149
+ end
138
150
  end
139
151
 
140
152
  self