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.
- checksums.yaml +4 -4
- data/lib/aspose_slides_cloud.rb +1 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +196 -4
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +78 -0
- data/lib/aspose_slides_cloud/api_client.rb +6 -3
- data/lib/aspose_slides_cloud/models/add_layout_slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/add_master_slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/add_shape.rb +20 -8
- data/lib/aspose_slides_cloud/models/add_slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/api_info.rb +20 -8
- data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +20 -8
- data/lib/aspose_slides_cloud/models/audio_frame.rb +20 -8
- data/lib/aspose_slides_cloud/models/axes.rb +20 -8
- data/lib/aspose_slides_cloud/models/axis.rb +20 -8
- data/lib/aspose_slides_cloud/models/base64_input_file.rb +20 -8
- data/lib/aspose_slides_cloud/models/blur_effect.rb +20 -8
- data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +22 -8
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +20 -8
- data/lib/aspose_slides_cloud/models/bubble_series.rb +22 -8
- data/lib/aspose_slides_cloud/models/chart.rb +20 -8
- data/lib/aspose_slides_cloud/models/chart_category.rb +20 -8
- data/lib/aspose_slides_cloud/models/chart_title.rb +20 -8
- data/lib/aspose_slides_cloud/models/chart_wall.rb +20 -8
- data/lib/aspose_slides_cloud/models/color_scheme.rb +20 -8
- data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +20 -8
- data/lib/aspose_slides_cloud/models/connector.rb +20 -8
- data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +20 -8
- data/lib/aspose_slides_cloud/models/disc_usage.rb +20 -8
- data/lib/aspose_slides_cloud/models/document.rb +20 -8
- data/lib/aspose_slides_cloud/models/document_properties.rb +20 -8
- data/lib/aspose_slides_cloud/models/document_property.rb +20 -8
- data/lib/aspose_slides_cloud/models/document_replace_result.rb +20 -8
- data/lib/aspose_slides_cloud/models/effect.rb +20 -8
- data/lib/aspose_slides_cloud/models/effect_format.rb +20 -8
- data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
- data/lib/aspose_slides_cloud/models/error.rb +20 -8
- data/lib/aspose_slides_cloud/models/error_details.rb +20 -8
- data/lib/aspose_slides_cloud/models/export_options.rb +20 -8
- data/lib/aspose_slides_cloud/models/file_version.rb +20 -8
- data/lib/aspose_slides_cloud/models/file_versions.rb +20 -8
- data/lib/aspose_slides_cloud/models/files_list.rb +20 -8
- data/lib/aspose_slides_cloud/models/files_upload_result.rb +20 -8
- data/lib/aspose_slides_cloud/models/fill_format.rb +20 -8
- data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +20 -8
- data/lib/aspose_slides_cloud/models/font_scheme.rb +20 -8
- data/lib/aspose_slides_cloud/models/font_set.rb +20 -8
- data/lib/aspose_slides_cloud/models/format_scheme.rb +20 -8
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +20 -8
- data/lib/aspose_slides_cloud/models/glow_effect.rb +20 -8
- data/lib/aspose_slides_cloud/models/gradient_fill.rb +20 -8
- data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +20 -8
- data/lib/aspose_slides_cloud/models/graphical_object.rb +20 -8
- data/lib/aspose_slides_cloud/models/group_shape.rb +20 -8
- data/lib/aspose_slides_cloud/models/html_export_options.rb +20 -8
- data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +20 -8
- data/lib/aspose_slides_cloud/models/image.rb +20 -8
- data/lib/aspose_slides_cloud/models/image_export_options.rb +20 -8
- data/lib/aspose_slides_cloud/models/images.rb +20 -8
- data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +20 -8
- data/lib/aspose_slides_cloud/models/input.rb +20 -8
- data/lib/aspose_slides_cloud/models/input_file.rb +20 -8
- data/lib/aspose_slides_cloud/models/interactive_sequence.rb +20 -8
- data/lib/aspose_slides_cloud/models/layout_slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/layout_slides.rb +20 -8
- data/lib/aspose_slides_cloud/models/legend.rb +20 -8
- data/lib/aspose_slides_cloud/models/line_format.rb +20 -8
- data/lib/aspose_slides_cloud/models/master_slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/master_slides.rb +20 -8
- data/lib/aspose_slides_cloud/models/merge.rb +20 -8
- data/lib/aspose_slides_cloud/models/merging_source.rb +20 -8
- data/lib/aspose_slides_cloud/models/no_fill.rb +20 -8
- data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +20 -8
- data/lib/aspose_slides_cloud/models/notes_slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/object_exist.rb +20 -8
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +20 -8
- data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +20 -8
- data/lib/aspose_slides_cloud/models/one_value_series.rb +22 -8
- data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +20 -8
- data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +20 -8
- data/lib/aspose_slides_cloud/models/output_file.rb +20 -8
- data/lib/aspose_slides_cloud/models/paragraph.rb +21 -9
- data/lib/aspose_slides_cloud/models/paragraphs.rb +20 -8
- data/lib/aspose_slides_cloud/models/path_input_file.rb +20 -8
- data/lib/aspose_slides_cloud/models/path_output_file.rb +20 -8
- data/lib/aspose_slides_cloud/models/pattern_fill.rb +20 -8
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +20 -8
- data/lib/aspose_slides_cloud/models/picture_fill.rb +20 -8
- data/lib/aspose_slides_cloud/models/picture_frame.rb +20 -8
- data/lib/aspose_slides_cloud/models/pipeline.rb +20 -8
- data/lib/aspose_slides_cloud/models/placeholder.rb +20 -8
- data/lib/aspose_slides_cloud/models/placeholders.rb +20 -8
- data/lib/aspose_slides_cloud/models/plot_area.rb +20 -8
- data/lib/aspose_slides_cloud/models/portion.rb +20 -8
- data/lib/aspose_slides_cloud/models/portions.rb +28 -16
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +20 -8
- data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +20 -8
- data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +20 -8
- data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +20 -8
- data/lib/aspose_slides_cloud/models/reflection_effect.rb +20 -8
- data/lib/aspose_slides_cloud/models/remove_shape.rb +20 -8
- data/lib/aspose_slides_cloud/models/remove_slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/reorder_slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/replace_text.rb +20 -8
- data/lib/aspose_slides_cloud/models/request_input_file.rb +20 -8
- data/lib/aspose_slides_cloud/models/reset_slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/resource_base.rb +20 -8
- data/lib/aspose_slides_cloud/models/resource_uri.rb +20 -8
- data/lib/aspose_slides_cloud/models/resource_uri_element.rb +20 -8
- data/lib/aspose_slides_cloud/models/response_output_file.rb +20 -8
- data/lib/aspose_slides_cloud/models/save.rb +20 -8
- data/lib/aspose_slides_cloud/models/save_shape.rb +20 -8
- data/lib/aspose_slides_cloud/models/save_slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +20 -8
- data/lib/aspose_slides_cloud/models/scatter_series.rb +22 -8
- data/lib/aspose_slides_cloud/models/series.rb +45 -12
- data/lib/aspose_slides_cloud/models/series_marker.rb +20 -8
- data/lib/aspose_slides_cloud/models/shape.rb +20 -8
- data/lib/aspose_slides_cloud/models/shape_base.rb +20 -8
- data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +20 -8
- data/lib/aspose_slides_cloud/models/shapes.rb +20 -8
- data/lib/aspose_slides_cloud/models/slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/slide_animation.rb +20 -8
- data/lib/aspose_slides_cloud/models/slide_background.rb +20 -8
- data/lib/aspose_slides_cloud/models/slide_comment.rb +20 -8
- data/lib/aspose_slides_cloud/models/slide_comments.rb +20 -8
- data/lib/aspose_slides_cloud/models/slide_replace_result.rb +20 -8
- data/lib/aspose_slides_cloud/models/slides.rb +20 -8
- data/lib/aspose_slides_cloud/models/smart_art.rb +20 -8
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +20 -8
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +20 -8
- data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +20 -8
- data/lib/aspose_slides_cloud/models/solid_fill.rb +20 -8
- data/lib/aspose_slides_cloud/models/split_document_result.rb +20 -8
- data/lib/aspose_slides_cloud/models/storage_exist.rb +20 -8
- data/lib/aspose_slides_cloud/models/storage_file.rb +20 -8
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +20 -8
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +20 -8
- data/lib/aspose_slides_cloud/models/table.rb +20 -8
- data/lib/aspose_slides_cloud/models/table_cell.rb +20 -8
- data/lib/aspose_slides_cloud/models/table_column.rb +20 -8
- data/lib/aspose_slides_cloud/models/table_row.rb +20 -8
- data/lib/aspose_slides_cloud/models/task.rb +20 -8
- data/lib/aspose_slides_cloud/models/text_item.rb +20 -8
- data/lib/aspose_slides_cloud/models/text_items.rb +20 -8
- data/lib/aspose_slides_cloud/models/theme.rb +20 -8
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +20 -8
- data/lib/aspose_slides_cloud/models/update_background.rb +20 -8
- data/lib/aspose_slides_cloud/models/update_shape.rb +20 -8
- data/lib/aspose_slides_cloud/models/video_frame.rb +20 -8
- data/lib/aspose_slides_cloud/models/view_properties.rb +20 -8
- data/lib/aspose_slides_cloud/models/waterfall_series.rb +22 -8
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +20 -8
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +626 -1
- data/spec/extra/extra_spec.rb +111 -9
- data/spec/spec_utils.rb +8 -1
- data/testRules.json +29 -4
- 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
|
-
|
189
|
-
|
190
|
-
|
191
|
-
if
|
192
|
-
|
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
|
-
|
195
|
-
|
196
|
-
|
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
|
-
|
108
|
-
|
109
|
-
|
110
|
-
if
|
111
|
-
|
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
|
-
|
114
|
-
|
115
|
-
|
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
|
-
|
176
|
-
|
177
|
-
|
178
|
-
if
|
179
|
-
|
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
|
-
|
182
|
-
|
183
|
-
|
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
|
-
|
476
|
-
|
477
|
-
|
478
|
-
if
|
479
|
-
|
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
|
-
|
482
|
-
|
483
|
-
|
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
|
-
|
128
|
-
|
129
|
-
|
130
|
-
if
|
131
|
-
|
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
|
-
|
134
|
-
|
135
|
-
|
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
|
-
|
590
|
-
|
591
|
-
|
592
|
-
if
|
593
|
-
|
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
|
-
|
596
|
-
|
597
|
-
|
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
|
-
|
159
|
-
|
160
|
-
|
161
|
-
if
|
162
|
-
|
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
|
-
|
165
|
-
|
166
|
-
|
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
|
-
|
118
|
-
|
119
|
-
|
120
|
-
if
|
121
|
-
|
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
|
-
|
124
|
-
|
125
|
-
|
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
|
-
|
393
|
-
|
394
|
-
|
395
|
-
if
|
396
|
-
|
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
|
-
|
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
|
-
|
133
|
-
|
134
|
-
|
135
|
-
if
|
136
|
-
|
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
|
-
|
139
|
-
|
140
|
-
|
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
|
-
|
331
|
-
|
332
|
-
|
333
|
-
if
|
334
|
-
|
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
|
-
|
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
|
-
|
456
|
-
|
457
|
-
|
458
|
-
if
|
459
|
-
|
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
|
-
|
462
|
-
|
463
|
-
|
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
|