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
@@ -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
@@ -104,15 +104,27 @@ module AsposeSlidesCloud
104
104
  def build_from_hash(attributes)
105
105
  return nil unless attributes.is_a?(Hash)
106
106
  self.class.swagger_types.each_pair do |key, type|
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 attributes[self.class.attribute_map[key]].is_a?(Array)
111
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
107
+ mapKey = self.class.attribute_map[key]
108
+ if !mapKey.nil?
109
+ val = attributes[mapKey]
110
+ if val.nil?
111
+ mapKeyString = mapKey.to_s
112
+ mapKeyString[0] = mapKeyString[0].downcase
113
+ mapKey = mapKeyString.to_sym
114
+ val = attributes[mapKey]
112
115
  end
113
- elsif !attributes[self.class.attribute_map[key]].nil?
114
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
115
- end # or else data not found in attributes(hash), not an issue as the data can be optional
116
+ if !val.nil?
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 val.is_a?(Array)
121
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
122
+ end
123
+ else
124
+ self.send("#{key}=", _deserialize(type, val))
125
+ end
126
+ end
127
+ end
116
128
  end
117
129
 
118
130
  self
@@ -172,15 +172,27 @@ module AsposeSlidesCloud
172
172
  def build_from_hash(attributes)
173
173
  return nil unless attributes.is_a?(Hash)
174
174
  self.class.swagger_types.each_pair do |key, type|
175
- if type =~ /\AArray<(.*)>/i
176
- # check to ensure the input is an array given that the the attribute
177
- # is documented as an array but the input is not
178
- if attributes[self.class.attribute_map[key]].is_a?(Array)
179
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
175
+ mapKey = self.class.attribute_map[key]
176
+ if !mapKey.nil?
177
+ val = attributes[mapKey]
178
+ if val.nil?
179
+ mapKeyString = mapKey.to_s
180
+ mapKeyString[0] = mapKeyString[0].downcase
181
+ mapKey = mapKeyString.to_sym
182
+ val = attributes[mapKey]
180
183
  end
181
- elsif !attributes[self.class.attribute_map[key]].nil?
182
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
183
- end # or else data not found in attributes(hash), not an issue as the data can be optional
184
+ if !val.nil?
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 val.is_a?(Array)
189
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
190
+ end
191
+ else
192
+ self.send("#{key}=", _deserialize(type, val))
193
+ end
194
+ end
195
+ end
184
196
  end
185
197
 
186
198
  self
@@ -472,15 +472,27 @@ module AsposeSlidesCloud
472
472
  def build_from_hash(attributes)
473
473
  return nil unless attributes.is_a?(Hash)
474
474
  self.class.swagger_types.each_pair do |key, type|
475
- if type =~ /\AArray<(.*)>/i
476
- # check to ensure the input is an array given that the the attribute
477
- # is documented as an array but the input is not
478
- if attributes[self.class.attribute_map[key]].is_a?(Array)
479
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
475
+ mapKey = self.class.attribute_map[key]
476
+ if !mapKey.nil?
477
+ val = attributes[mapKey]
478
+ if val.nil?
479
+ mapKeyString = mapKey.to_s
480
+ mapKeyString[0] = mapKeyString[0].downcase
481
+ mapKey = mapKeyString.to_sym
482
+ val = attributes[mapKey]
480
483
  end
481
- elsif !attributes[self.class.attribute_map[key]].nil?
482
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
483
- end # or else data not found in attributes(hash), not an issue as the data can be optional
484
+ if !val.nil?
485
+ if type =~ /\AArray<(.*)>/i
486
+ # check to ensure the input is an array given that the the attribute
487
+ # is documented as an array but the input is not
488
+ if val.is_a?(Array)
489
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
490
+ end
491
+ else
492
+ self.send("#{key}=", _deserialize(type, val))
493
+ end
494
+ end
495
+ end
484
496
  end
485
497
 
486
498
  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
@@ -586,15 +586,27 @@ module AsposeSlidesCloud
586
586
  def build_from_hash(attributes)
587
587
  return nil unless attributes.is_a?(Hash)
588
588
  self.class.swagger_types.each_pair do |key, type|
589
- if type =~ /\AArray<(.*)>/i
590
- # check to ensure the input is an array given that the the attribute
591
- # is documented as an array but the input is not
592
- if attributes[self.class.attribute_map[key]].is_a?(Array)
593
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
589
+ mapKey = self.class.attribute_map[key]
590
+ if !mapKey.nil?
591
+ val = attributes[mapKey]
592
+ if val.nil?
593
+ mapKeyString = mapKey.to_s
594
+ mapKeyString[0] = mapKeyString[0].downcase
595
+ mapKey = mapKeyString.to_sym
596
+ val = attributes[mapKey]
594
597
  end
595
- elsif !attributes[self.class.attribute_map[key]].nil?
596
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
597
- end # or else data not found in attributes(hash), not an issue as the data can be optional
598
+ if !val.nil?
599
+ if type =~ /\AArray<(.*)>/i
600
+ # check to ensure the input is an array given that the the attribute
601
+ # is documented as an array but the input is not
602
+ if val.is_a?(Array)
603
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
604
+ end
605
+ else
606
+ self.send("#{key}=", _deserialize(type, val))
607
+ end
608
+ end
609
+ end
598
610
  end
599
611
 
600
612
  self
@@ -155,15 +155,27 @@ module AsposeSlidesCloud
155
155
  def build_from_hash(attributes)
156
156
  return nil unless attributes.is_a?(Hash)
157
157
  self.class.swagger_types.each_pair do |key, type|
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 attributes[self.class.attribute_map[key]].is_a?(Array)
162
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
158
+ mapKey = self.class.attribute_map[key]
159
+ if !mapKey.nil?
160
+ val = attributes[mapKey]
161
+ if val.nil?
162
+ mapKeyString = mapKey.to_s
163
+ mapKeyString[0] = mapKeyString[0].downcase
164
+ mapKey = mapKeyString.to_sym
165
+ val = attributes[mapKey]
163
166
  end
164
- elsif !attributes[self.class.attribute_map[key]].nil?
165
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
166
- end # or else data not found in attributes(hash), not an issue as the data can be optional
167
+ if !val.nil?
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 val.is_a?(Array)
172
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
173
+ end
174
+ else
175
+ self.send("#{key}=", _deserialize(type, val))
176
+ end
177
+ end
178
+ end
167
179
  end
168
180
 
169
181
  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
@@ -257,6 +257,8 @@ module AsposeSlidesCloud
257
257
 
258
258
  if attributes.has_key?(:'DataPointType')
259
259
  self.data_point_type = attributes[:'DataPointType']
260
+ else
261
+ self.data_point_type = "OneValue"
260
262
  end
261
263
 
262
264
  if attributes.has_key?(:'DataPoints')
@@ -389,15 +391,27 @@ module AsposeSlidesCloud
389
391
  def build_from_hash(attributes)
390
392
  return nil unless attributes.is_a?(Hash)
391
393
  self.class.swagger_types.each_pair do |key, type|
392
- if type =~ /\AArray<(.*)>/i
393
- # check to ensure the input is an array given that the the attribute
394
- # is documented as an array but the input is not
395
- if attributes[self.class.attribute_map[key]].is_a?(Array)
396
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
394
+ mapKey = self.class.attribute_map[key]
395
+ if !mapKey.nil?
396
+ val = attributes[mapKey]
397
+ if val.nil?
398
+ mapKeyString = mapKey.to_s
399
+ mapKeyString[0] = mapKeyString[0].downcase
400
+ mapKey = mapKeyString.to_sym
401
+ val = attributes[mapKey]
402
+ end
403
+ if !val.nil?
404
+ if type =~ /\AArray<(.*)>/i
405
+ # check to ensure the input is an array given that the the attribute
406
+ # is documented as an array but the input is not
407
+ if val.is_a?(Array)
408
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
409
+ end
410
+ else
411
+ self.send("#{key}=", _deserialize(type, val))
412
+ end
397
413
  end
398
- elsif !attributes[self.class.attribute_map[key]].nil?
399
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
400
- end # or else data not found in attributes(hash), not an issue as the data can be optional
414
+ end
401
415
  end
402
416
 
403
417
  self
@@ -129,15 +129,27 @@ module AsposeSlidesCloud
129
129
  def build_from_hash(attributes)
130
130
  return nil unless attributes.is_a?(Hash)
131
131
  self.class.swagger_types.each_pair do |key, type|
132
- if type =~ /\AArray<(.*)>/i
133
- # check to ensure the input is an array given that the the attribute
134
- # is documented as an array but the input is not
135
- if attributes[self.class.attribute_map[key]].is_a?(Array)
136
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
132
+ mapKey = self.class.attribute_map[key]
133
+ if !mapKey.nil?
134
+ val = attributes[mapKey]
135
+ if val.nil?
136
+ mapKeyString = mapKey.to_s
137
+ mapKeyString[0] = mapKeyString[0].downcase
138
+ mapKey = mapKeyString.to_sym
139
+ val = attributes[mapKey]
137
140
  end
138
- elsif !attributes[self.class.attribute_map[key]].nil?
139
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
140
- end # or else data not found in attributes(hash), not an issue as the data can be optional
141
+ if !val.nil?
142
+ if type =~ /\AArray<(.*)>/i
143
+ # check to ensure the input is an array given that the the attribute
144
+ # is documented as an array but the input is not
145
+ if val.is_a?(Array)
146
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
147
+ end
148
+ else
149
+ self.send("#{key}=", _deserialize(type, val))
150
+ end
151
+ end
152
+ end
141
153
  end
142
154
 
143
155
  self
@@ -232,6 +232,8 @@ module AsposeSlidesCloud
232
232
 
233
233
  if attributes.has_key?(:'DataPointType')
234
234
  self.data_point_type = attributes[:'DataPointType']
235
+ else
236
+ self.data_point_type = "Bubble"
235
237
  end
236
238
 
237
239
  if attributes.has_key?(:'DataPoints')
@@ -327,15 +329,27 @@ module AsposeSlidesCloud
327
329
  def build_from_hash(attributes)
328
330
  return nil unless attributes.is_a?(Hash)
329
331
  self.class.swagger_types.each_pair do |key, type|
330
- if type =~ /\AArray<(.*)>/i
331
- # check to ensure the input is an array given that the the attribute
332
- # is documented as an array but the input is not
333
- if attributes[self.class.attribute_map[key]].is_a?(Array)
334
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
332
+ mapKey = self.class.attribute_map[key]
333
+ if !mapKey.nil?
334
+ val = attributes[mapKey]
335
+ if val.nil?
336
+ mapKeyString = mapKey.to_s
337
+ mapKeyString[0] = mapKeyString[0].downcase
338
+ mapKey = mapKeyString.to_sym
339
+ val = attributes[mapKey]
340
+ end
341
+ if !val.nil?
342
+ if type =~ /\AArray<(.*)>/i
343
+ # check to ensure the input is an array given that the the attribute
344
+ # is documented as an array but the input is not
345
+ if val.is_a?(Array)
346
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
347
+ end
348
+ else
349
+ self.send("#{key}=", _deserialize(type, val))
350
+ end
335
351
  end
336
- elsif !attributes[self.class.attribute_map[key]].nil?
337
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
338
- end # or else data not found in attributes(hash), not an issue as the data can be optional
352
+ end
339
353
  end
340
354
 
341
355
  self
@@ -452,15 +452,27 @@ module AsposeSlidesCloud
452
452
  def build_from_hash(attributes)
453
453
  return nil unless attributes.is_a?(Hash)
454
454
  self.class.swagger_types.each_pair do |key, type|
455
- if type =~ /\AArray<(.*)>/i
456
- # check to ensure the input is an array given that the the attribute
457
- # is documented as an array but the input is not
458
- if attributes[self.class.attribute_map[key]].is_a?(Array)
459
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
455
+ mapKey = self.class.attribute_map[key]
456
+ if !mapKey.nil?
457
+ val = attributes[mapKey]
458
+ if val.nil?
459
+ mapKeyString = mapKey.to_s
460
+ mapKeyString[0] = mapKeyString[0].downcase
461
+ mapKey = mapKeyString.to_sym
462
+ val = attributes[mapKey]
460
463
  end
461
- elsif !attributes[self.class.attribute_map[key]].nil?
462
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
463
- end # or else data not found in attributes(hash), not an issue as the data can be optional
464
+ if !val.nil?
465
+ if type =~ /\AArray<(.*)>/i
466
+ # check to ensure the input is an array given that the the attribute
467
+ # is documented as an array but the input is not
468
+ if val.is_a?(Array)
469
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
470
+ end
471
+ else
472
+ self.send("#{key}=", _deserialize(type, val))
473
+ end
474
+ end
475
+ end
464
476
  end
465
477
 
466
478
  self