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
@@ -108,15 +108,27 @@ module AsposeSlidesCloud
108
108
  def build_from_hash(attributes)
109
109
  return nil unless attributes.is_a?(Hash)
110
110
  self.class.swagger_types.each_pair do |key, type|
111
- if type =~ /\AArray<(.*)>/i
112
- # check to ensure the input is an array given that the the attribute
113
- # is documented as an array but the input is not
114
- if attributes[self.class.attribute_map[key]].is_a?(Array)
115
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
111
+ mapKey = self.class.attribute_map[key]
112
+ if !mapKey.nil?
113
+ val = attributes[mapKey]
114
+ if val.nil?
115
+ mapKeyString = mapKey.to_s
116
+ mapKeyString[0] = mapKeyString[0].downcase
117
+ mapKey = mapKeyString.to_sym
118
+ val = attributes[mapKey]
116
119
  end
117
- elsif !attributes[self.class.attribute_map[key]].nil?
118
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
119
- end # or else data not found in attributes(hash), not an issue as the data can be optional
120
+ if !val.nil?
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 val.is_a?(Array)
125
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
126
+ end
127
+ else
128
+ self.send("#{key}=", _deserialize(type, val))
129
+ end
130
+ end
131
+ end
120
132
  end
121
133
 
122
134
  self
@@ -127,15 +127,27 @@ module AsposeSlidesCloud
127
127
  def build_from_hash(attributes)
128
128
  return nil unless attributes.is_a?(Hash)
129
129
  self.class.swagger_types.each_pair do |key, type|
130
- if type =~ /\AArray<(.*)>/i
131
- # check to ensure the input is an array given that the the attribute
132
- # is documented as an array but the input is not
133
- if attributes[self.class.attribute_map[key]].is_a?(Array)
134
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
130
+ mapKey = self.class.attribute_map[key]
131
+ if !mapKey.nil?
132
+ val = attributes[mapKey]
133
+ if val.nil?
134
+ mapKeyString = mapKey.to_s
135
+ mapKeyString[0] = mapKeyString[0].downcase
136
+ mapKey = mapKeyString.to_sym
137
+ val = attributes[mapKey]
135
138
  end
136
- elsif !attributes[self.class.attribute_map[key]].nil?
137
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
138
- end # or else data not found in attributes(hash), not an issue as the data can be optional
139
+ if !val.nil?
140
+ if type =~ /\AArray<(.*)>/i
141
+ # check to ensure the input is an array given that the the attribute
142
+ # is documented as an array but the input is not
143
+ if val.is_a?(Array)
144
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
145
+ end
146
+ else
147
+ self.send("#{key}=", _deserialize(type, val))
148
+ end
149
+ end
150
+ end
139
151
  end
140
152
 
141
153
  self
@@ -133,15 +133,27 @@ module AsposeSlidesCloud
133
133
  def build_from_hash(attributes)
134
134
  return nil unless attributes.is_a?(Hash)
135
135
  self.class.swagger_types.each_pair do |key, type|
136
- if type =~ /\AArray<(.*)>/i
137
- # check to ensure the input is an array given that the the attribute
138
- # is documented as an array but the input is not
139
- if attributes[self.class.attribute_map[key]].is_a?(Array)
140
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
136
+ mapKey = self.class.attribute_map[key]
137
+ if !mapKey.nil?
138
+ val = attributes[mapKey]
139
+ if val.nil?
140
+ mapKeyString = mapKey.to_s
141
+ mapKeyString[0] = mapKeyString[0].downcase
142
+ mapKey = mapKeyString.to_sym
143
+ val = attributes[mapKey]
141
144
  end
142
- elsif !attributes[self.class.attribute_map[key]].nil?
143
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
144
- end # or else data not found in attributes(hash), not an issue as the data can be optional
145
+ if !val.nil?
146
+ if type =~ /\AArray<(.*)>/i
147
+ # check to ensure the input is an array given that the the attribute
148
+ # is documented as an array but the input is not
149
+ if val.is_a?(Array)
150
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
151
+ end
152
+ else
153
+ self.send("#{key}=", _deserialize(type, val))
154
+ end
155
+ end
156
+ end
145
157
  end
146
158
 
147
159
  self
@@ -136,15 +136,27 @@ module AsposeSlidesCloud
136
136
  def build_from_hash(attributes)
137
137
  return nil unless attributes.is_a?(Hash)
138
138
  self.class.swagger_types.each_pair do |key, type|
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 attributes[self.class.attribute_map[key]].is_a?(Array)
143
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
139
+ mapKey = self.class.attribute_map[key]
140
+ if !mapKey.nil?
141
+ val = attributes[mapKey]
142
+ if val.nil?
143
+ mapKeyString = mapKey.to_s
144
+ mapKeyString[0] = mapKeyString[0].downcase
145
+ mapKey = mapKeyString.to_sym
146
+ val = attributes[mapKey]
144
147
  end
145
- elsif !attributes[self.class.attribute_map[key]].nil?
146
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
147
- end # or else data not found in attributes(hash), not an issue as the data can be optional
148
+ if !val.nil?
149
+ if type =~ /\AArray<(.*)>/i
150
+ # check to ensure the input is an array given that the the attribute
151
+ # is documented as an array but the input is not
152
+ if val.is_a?(Array)
153
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
154
+ end
155
+ else
156
+ self.send("#{key}=", _deserialize(type, val))
157
+ end
158
+ end
159
+ end
148
160
  end
149
161
 
150
162
  self
@@ -114,15 +114,27 @@ module AsposeSlidesCloud
114
114
  def build_from_hash(attributes)
115
115
  return nil unless attributes.is_a?(Hash)
116
116
  self.class.swagger_types.each_pair do |key, type|
117
- if type =~ /\AArray<(.*)>/i
118
- # check to ensure the input is an array given that the the attribute
119
- # is documented as an array but the input is not
120
- if attributes[self.class.attribute_map[key]].is_a?(Array)
121
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
117
+ mapKey = self.class.attribute_map[key]
118
+ if !mapKey.nil?
119
+ val = attributes[mapKey]
120
+ if val.nil?
121
+ mapKeyString = mapKey.to_s
122
+ mapKeyString[0] = mapKeyString[0].downcase
123
+ mapKey = mapKeyString.to_sym
124
+ val = attributes[mapKey]
122
125
  end
123
- elsif !attributes[self.class.attribute_map[key]].nil?
124
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
125
- end # or else data not found in attributes(hash), not an issue as the data can be optional
126
+ if !val.nil?
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 val.is_a?(Array)
131
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
132
+ end
133
+ else
134
+ self.send("#{key}=", _deserialize(type, val))
135
+ end
136
+ end
137
+ end
126
138
  end
127
139
 
128
140
  self
@@ -154,15 +154,27 @@ module AsposeSlidesCloud
154
154
  def build_from_hash(attributes)
155
155
  return nil unless attributes.is_a?(Hash)
156
156
  self.class.swagger_types.each_pair do |key, type|
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 attributes[self.class.attribute_map[key]].is_a?(Array)
161
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
157
+ mapKey = self.class.attribute_map[key]
158
+ if !mapKey.nil?
159
+ val = attributes[mapKey]
160
+ if val.nil?
161
+ mapKeyString = mapKey.to_s
162
+ mapKeyString[0] = mapKeyString[0].downcase
163
+ mapKey = mapKeyString.to_sym
164
+ val = attributes[mapKey]
162
165
  end
163
- elsif !attributes[self.class.attribute_map[key]].nil?
164
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
165
- end # or else data not found in attributes(hash), not an issue as the data can be optional
166
+ if !val.nil?
167
+ if type =~ /\AArray<(.*)>/i
168
+ # check to ensure the input is an array given that the the attribute
169
+ # is documented as an array but the input is not
170
+ if val.is_a?(Array)
171
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
172
+ end
173
+ else
174
+ self.send("#{key}=", _deserialize(type, val))
175
+ end
176
+ end
177
+ end
166
178
  end
167
179
 
168
180
  self
@@ -338,15 +338,27 @@ module AsposeSlidesCloud
338
338
  def build_from_hash(attributes)
339
339
  return nil unless attributes.is_a?(Hash)
340
340
  self.class.swagger_types.each_pair do |key, type|
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 attributes[self.class.attribute_map[key]].is_a?(Array)
345
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
341
+ mapKey = self.class.attribute_map[key]
342
+ if !mapKey.nil?
343
+ val = attributes[mapKey]
344
+ if val.nil?
345
+ mapKeyString = mapKey.to_s
346
+ mapKeyString[0] = mapKeyString[0].downcase
347
+ mapKey = mapKeyString.to_sym
348
+ val = attributes[mapKey]
346
349
  end
347
- elsif !attributes[self.class.attribute_map[key]].nil?
348
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
349
- end # or else data not found in attributes(hash), not an issue as the data can be optional
350
+ if !val.nil?
351
+ if type =~ /\AArray<(.*)>/i
352
+ # check to ensure the input is an array given that the the attribute
353
+ # is documented as an array but the input is not
354
+ if val.is_a?(Array)
355
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
356
+ end
357
+ else
358
+ self.send("#{key}=", _deserialize(type, val))
359
+ end
360
+ end
361
+ end
350
362
  end
351
363
 
352
364
  self
@@ -109,15 +109,27 @@ module AsposeSlidesCloud
109
109
  def build_from_hash(attributes)
110
110
  return nil unless attributes.is_a?(Hash)
111
111
  self.class.swagger_types.each_pair do |key, type|
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 attributes[self.class.attribute_map[key]].is_a?(Array)
116
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
112
+ mapKey = self.class.attribute_map[key]
113
+ if !mapKey.nil?
114
+ val = attributes[mapKey]
115
+ if val.nil?
116
+ mapKeyString = mapKey.to_s
117
+ mapKeyString[0] = mapKeyString[0].downcase
118
+ mapKey = mapKeyString.to_sym
119
+ val = attributes[mapKey]
117
120
  end
118
- elsif !attributes[self.class.attribute_map[key]].nil?
119
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
120
- end # or else data not found in attributes(hash), not an issue as the data can be optional
121
+ if !val.nil?
122
+ if type =~ /\AArray<(.*)>/i
123
+ # check to ensure the input is an array given that the the attribute
124
+ # is documented as an array but the input is not
125
+ if val.is_a?(Array)
126
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
127
+ end
128
+ else
129
+ self.send("#{key}=", _deserialize(type, val))
130
+ end
131
+ end
132
+ end
121
133
  end
122
134
 
123
135
  self
@@ -258,15 +258,27 @@ module AsposeSlidesCloud
258
258
  def build_from_hash(attributes)
259
259
  return nil unless attributes.is_a?(Hash)
260
260
  self.class.swagger_types.each_pair do |key, type|
261
- if type =~ /\AArray<(.*)>/i
262
- # check to ensure the input is an array given that the the attribute
263
- # is documented as an array but the input is not
264
- if attributes[self.class.attribute_map[key]].is_a?(Array)
265
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
261
+ mapKey = self.class.attribute_map[key]
262
+ if !mapKey.nil?
263
+ val = attributes[mapKey]
264
+ if val.nil?
265
+ mapKeyString = mapKey.to_s
266
+ mapKeyString[0] = mapKeyString[0].downcase
267
+ mapKey = mapKeyString.to_sym
268
+ val = attributes[mapKey]
266
269
  end
267
- elsif !attributes[self.class.attribute_map[key]].nil?
268
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
269
- end # or else data not found in attributes(hash), not an issue as the data can be optional
270
+ if !val.nil?
271
+ if type =~ /\AArray<(.*)>/i
272
+ # check to ensure the input is an array given that the the attribute
273
+ # is documented as an array but the input is not
274
+ if val.is_a?(Array)
275
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
276
+ end
277
+ else
278
+ self.send("#{key}=", _deserialize(type, val))
279
+ end
280
+ end
281
+ end
270
282
  end
271
283
 
272
284
  self
@@ -109,15 +109,27 @@ module AsposeSlidesCloud
109
109
  def build_from_hash(attributes)
110
110
  return nil unless attributes.is_a?(Hash)
111
111
  self.class.swagger_types.each_pair do |key, type|
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 attributes[self.class.attribute_map[key]].is_a?(Array)
116
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
112
+ mapKey = self.class.attribute_map[key]
113
+ if !mapKey.nil?
114
+ val = attributes[mapKey]
115
+ if val.nil?
116
+ mapKeyString = mapKey.to_s
117
+ mapKeyString[0] = mapKeyString[0].downcase
118
+ mapKey = mapKeyString.to_sym
119
+ val = attributes[mapKey]
117
120
  end
118
- elsif !attributes[self.class.attribute_map[key]].nil?
119
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
120
- end # or else data not found in attributes(hash), not an issue as the data can be optional
121
+ if !val.nil?
122
+ if type =~ /\AArray<(.*)>/i
123
+ # check to ensure the input is an array given that the the attribute
124
+ # is documented as an array but the input is not
125
+ if val.is_a?(Array)
126
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
127
+ end
128
+ else
129
+ self.send("#{key}=", _deserialize(type, val))
130
+ end
131
+ end
132
+ end
121
133
  end
122
134
 
123
135
  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
@@ -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
@@ -319,15 +319,27 @@ module AsposeSlidesCloud
319
319
  def build_from_hash(attributes)
320
320
  return nil unless attributes.is_a?(Hash)
321
321
  self.class.swagger_types.each_pair do |key, type|
322
- if type =~ /\AArray<(.*)>/i
323
- # check to ensure the input is an array given that the the attribute
324
- # is documented as an array but the input is not
325
- if attributes[self.class.attribute_map[key]].is_a?(Array)
326
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
322
+ mapKey = self.class.attribute_map[key]
323
+ if !mapKey.nil?
324
+ val = attributes[mapKey]
325
+ if val.nil?
326
+ mapKeyString = mapKey.to_s
327
+ mapKeyString[0] = mapKeyString[0].downcase
328
+ mapKey = mapKeyString.to_sym
329
+ val = attributes[mapKey]
327
330
  end
328
- elsif !attributes[self.class.attribute_map[key]].nil?
329
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
330
- end # or else data not found in attributes(hash), not an issue as the data can be optional
331
+ if !val.nil?
332
+ if type =~ /\AArray<(.*)>/i
333
+ # check to ensure the input is an array given that the the attribute
334
+ # is documented as an array but the input is not
335
+ if val.is_a?(Array)
336
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
337
+ end
338
+ else
339
+ self.send("#{key}=", _deserialize(type, val))
340
+ end
341
+ end
342
+ end
331
343
  end
332
344
 
333
345
  self