aspose_slides_cloud 19.12.0 → 20.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/aspose_slides_cloud.rb +8 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +2156 -525
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +792 -124
- data/lib/aspose_slides_cloud/api_client.rb +7 -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 -23
- 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 -168
- 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 +504 -0
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +20 -8
- data/lib/aspose_slides_cloud/models/bubble_series.rb +24 -45
- data/lib/aspose_slides_cloud/models/chart.rb +23 -11
- data/lib/aspose_slides_cloud/models/chart_category.rb +249 -0
- data/lib/aspose_slides_cloud/models/chart_title.rb +20 -8
- data/lib/aspose_slides_cloud/models/chart_wall.rb +20 -18
- data/lib/aspose_slides_cloud/models/color_scheme.rb +20 -8
- data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +217 -0
- 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 +31 -9
- 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 +31 -9
- 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_format.rb +1 -0
- 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 -38
- data/lib/aspose_slides_cloud/models/line_format.rb +20 -43
- 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 +217 -0
- 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 +24 -45
- 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 +53 -14
- 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 -33
- 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 +22 -10
- data/lib/aspose_slides_cloud/models/save_shape.rb +20 -8
- data/lib/aspose_slides_cloud/models/save_slide.rb +22 -10
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +20 -8
- data/lib/aspose_slides_cloud/models/scatter_series.rb +24 -45
- data/lib/aspose_slides_cloud/models/series.rb +47 -49
- data/lib/aspose_slides_cloud/models/series_marker.rb +20 -18
- 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_export_format.rb +1 -0
- 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 -48
- data/lib/aspose_slides_cloud/models/table_cell.rb +20 -48
- 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 +379 -0
- data/lib/aspose_slides_cloud/models/waterfall_series.rb +452 -0
- 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 +17214 -12046
- data/spec/extra/extra_spec.rb +111 -9
- data/spec/spec_utils.rb +8 -1
- data/testRules.json +80 -8
- metadata +9 -2
@@ -192,15 +192,27 @@ module AsposeSlidesCloud
|
|
192
192
|
def build_from_hash(attributes)
|
193
193
|
return nil unless attributes.is_a?(Hash)
|
194
194
|
self.class.swagger_types.each_pair do |key, type|
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
if
|
199
|
-
|
195
|
+
mapKey = self.class.attribute_map[key]
|
196
|
+
if !mapKey.nil?
|
197
|
+
val = attributes[mapKey]
|
198
|
+
if val.nil?
|
199
|
+
mapKeyString = mapKey.to_s
|
200
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
201
|
+
mapKey = mapKeyString.to_sym
|
202
|
+
val = attributes[mapKey]
|
200
203
|
end
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
+
if !val.nil?
|
205
|
+
if type =~ /\AArray<(.*)>/i
|
206
|
+
# check to ensure the input is an array given that the the attribute
|
207
|
+
# is documented as an array but the input is not
|
208
|
+
if val.is_a?(Array)
|
209
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
210
|
+
end
|
211
|
+
else
|
212
|
+
self.send("#{key}=", _deserialize(type, val))
|
213
|
+
end
|
214
|
+
end
|
215
|
+
end
|
204
216
|
end
|
205
217
|
|
206
218
|
self
|
@@ -159,7 +159,7 @@ module AsposeSlidesCloud
|
|
159
159
|
type_validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
160
160
|
return false unless type_validator.valid?(@type)
|
161
161
|
return false if @format.nil?
|
162
|
-
format_validator = EnumAttributeValidator.new('String', ['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg'])
|
162
|
+
format_validator = EnumAttributeValidator.new('String', ['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp'])
|
163
163
|
return false unless format_validator.valid?(@format)
|
164
164
|
return false if @position.nil?
|
165
165
|
true
|
@@ -178,7 +178,7 @@ module AsposeSlidesCloud
|
|
178
178
|
# Custom attribute writer method checking allowed values (enum).
|
179
179
|
# @param [Object] format Object to be assigned
|
180
180
|
def format=(format)
|
181
|
-
validator = EnumAttributeValidator.new('String', ['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg'])
|
181
|
+
validator = EnumAttributeValidator.new('String', ['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp'])
|
182
182
|
unless validator.valid?(format)
|
183
183
|
fail ArgumentError, 'invalid value for "format", must be one of #{validator.allowable_values}.'
|
184
184
|
end
|
@@ -217,15 +217,27 @@ module AsposeSlidesCloud
|
|
217
217
|
def build_from_hash(attributes)
|
218
218
|
return nil unless attributes.is_a?(Hash)
|
219
219
|
self.class.swagger_types.each_pair do |key, type|
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
if
|
224
|
-
|
220
|
+
mapKey = self.class.attribute_map[key]
|
221
|
+
if !mapKey.nil?
|
222
|
+
val = attributes[mapKey]
|
223
|
+
if val.nil?
|
224
|
+
mapKeyString = mapKey.to_s
|
225
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
226
|
+
mapKey = mapKeyString.to_sym
|
227
|
+
val = attributes[mapKey]
|
225
228
|
end
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
+
if !val.nil?
|
230
|
+
if type =~ /\AArray<(.*)>/i
|
231
|
+
# check to ensure the input is an array given that the the attribute
|
232
|
+
# is documented as an array but the input is not
|
233
|
+
if val.is_a?(Array)
|
234
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
235
|
+
end
|
236
|
+
else
|
237
|
+
self.send("#{key}=", _deserialize(type, val))
|
238
|
+
end
|
239
|
+
end
|
240
|
+
end
|
229
241
|
end
|
230
242
|
|
231
243
|
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
|
@@ -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 = "Scatter"
|
235
237
|
end
|
236
238
|
|
237
239
|
if attributes.has_key?(:'DataPoints')
|
@@ -245,34 +247,6 @@ module AsposeSlidesCloud
|
|
245
247
|
# @return Array for valid properties with the reasons
|
246
248
|
def list_invalid_properties
|
247
249
|
invalid_properties = Array.new
|
248
|
-
if @type.nil?
|
249
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
250
|
-
end
|
251
|
-
|
252
|
-
if @is_color_varied.nil?
|
253
|
-
invalid_properties.push('invalid value for "is_color_varied", is_color_varied cannot be nil.')
|
254
|
-
end
|
255
|
-
|
256
|
-
if @smooth.nil?
|
257
|
-
invalid_properties.push('invalid value for "smooth", smooth cannot be nil.')
|
258
|
-
end
|
259
|
-
|
260
|
-
if @plot_on_second_axis.nil?
|
261
|
-
invalid_properties.push('invalid value for "plot_on_second_axis", plot_on_second_axis cannot be nil.')
|
262
|
-
end
|
263
|
-
|
264
|
-
if @order.nil?
|
265
|
-
invalid_properties.push('invalid value for "order", order cannot be nil.')
|
266
|
-
end
|
267
|
-
|
268
|
-
if @invert_if_negative.nil?
|
269
|
-
invalid_properties.push('invalid value for "invert_if_negative", invert_if_negative cannot be nil.')
|
270
|
-
end
|
271
|
-
|
272
|
-
if @explosion.nil?
|
273
|
-
invalid_properties.push('invalid value for "explosion", explosion cannot be nil.')
|
274
|
-
end
|
275
|
-
|
276
250
|
if @data_point_type.nil?
|
277
251
|
invalid_properties.push('invalid value for "data_point_type", data_point_type cannot be nil.')
|
278
252
|
end
|
@@ -283,15 +257,8 @@ module AsposeSlidesCloud
|
|
283
257
|
# Check to see if the all the properties in the model are valid
|
284
258
|
# @return true if the model is valid
|
285
259
|
def valid?
|
286
|
-
|
287
|
-
type_validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes'])
|
260
|
+
type_validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes', 'Treemap', 'Sunburst', 'Histogram', 'ParetoLine', 'BoxAndWhisker', 'Waterfall', 'Funnel'])
|
288
261
|
return false unless type_validator.valid?(@type)
|
289
|
-
return false if @is_color_varied.nil?
|
290
|
-
return false if @smooth.nil?
|
291
|
-
return false if @plot_on_second_axis.nil?
|
292
|
-
return false if @order.nil?
|
293
|
-
return false if @invert_if_negative.nil?
|
294
|
-
return false if @explosion.nil?
|
295
262
|
return false if @data_point_type.nil?
|
296
263
|
data_point_type_validator = EnumAttributeValidator.new('String', ['OneValue', 'Scatter', 'Bubble'])
|
297
264
|
return false unless data_point_type_validator.valid?(@data_point_type)
|
@@ -301,7 +268,7 @@ module AsposeSlidesCloud
|
|
301
268
|
# Custom attribute writer method checking allowed values (enum).
|
302
269
|
# @param [Object] type Object to be assigned
|
303
270
|
def type=(type)
|
304
|
-
validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes'])
|
271
|
+
validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes', 'Treemap', 'Sunburst', 'Histogram', 'ParetoLine', 'BoxAndWhisker', 'Waterfall', 'Funnel'])
|
305
272
|
unless validator.valid?(type)
|
306
273
|
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
307
274
|
end
|
@@ -362,15 +329,27 @@ module AsposeSlidesCloud
|
|
362
329
|
def build_from_hash(attributes)
|
363
330
|
return nil unless attributes.is_a?(Hash)
|
364
331
|
self.class.swagger_types.each_pair do |key, type|
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
if
|
369
|
-
|
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]
|
370
340
|
end
|
371
|
-
|
372
|
-
|
373
|
-
|
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
|
351
|
+
end
|
352
|
+
end
|
374
353
|
end
|
375
354
|
|
376
355
|
self
|
@@ -76,6 +76,8 @@ module AsposeSlidesCloud
|
|
76
76
|
# Line properties set for the series.
|
77
77
|
attr_accessor :line_format
|
78
78
|
|
79
|
+
attr_accessor :data_point_type
|
80
|
+
|
79
81
|
class EnumAttributeValidator
|
80
82
|
attr_reader :datatype
|
81
83
|
attr_reader :allowable_values
|
@@ -117,7 +119,8 @@ module AsposeSlidesCloud
|
|
117
119
|
:'marker' => :'Marker',
|
118
120
|
:'fill_format' => :'FillFormat',
|
119
121
|
:'effect_format' => :'EffectFormat',
|
120
|
-
:'line_format' => :'LineFormat'
|
122
|
+
:'line_format' => :'LineFormat',
|
123
|
+
:'data_point_type' => :'DataPointType'
|
121
124
|
}
|
122
125
|
end
|
123
126
|
|
@@ -140,7 +143,8 @@ module AsposeSlidesCloud
|
|
140
143
|
:'marker' => :'SeriesMarker',
|
141
144
|
:'fill_format' => :'FillFormat',
|
142
145
|
:'effect_format' => :'EffectFormat',
|
143
|
-
:'line_format' => :'LineFormat'
|
146
|
+
:'line_format' => :'LineFormat',
|
147
|
+
:'data_point_type' => :'String'
|
144
148
|
}
|
145
149
|
end
|
146
150
|
|
@@ -219,68 +223,49 @@ module AsposeSlidesCloud
|
|
219
223
|
if attributes.has_key?(:'LineFormat')
|
220
224
|
self.line_format = attributes[:'LineFormat']
|
221
225
|
end
|
226
|
+
|
227
|
+
if attributes.has_key?(:'DataPointType')
|
228
|
+
self.data_point_type = attributes[:'DataPointType']
|
229
|
+
end
|
222
230
|
end
|
223
231
|
|
224
232
|
# Show invalid properties with the reasons. Usually used together with valid?
|
225
233
|
# @return Array for valid properties with the reasons
|
226
234
|
def list_invalid_properties
|
227
235
|
invalid_properties = Array.new
|
228
|
-
if @type.nil?
|
229
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
230
|
-
end
|
231
|
-
|
232
|
-
if @is_color_varied.nil?
|
233
|
-
invalid_properties.push('invalid value for "is_color_varied", is_color_varied cannot be nil.')
|
234
|
-
end
|
235
|
-
|
236
|
-
if @smooth.nil?
|
237
|
-
invalid_properties.push('invalid value for "smooth", smooth cannot be nil.')
|
238
|
-
end
|
239
|
-
|
240
|
-
if @plot_on_second_axis.nil?
|
241
|
-
invalid_properties.push('invalid value for "plot_on_second_axis", plot_on_second_axis cannot be nil.')
|
242
|
-
end
|
243
|
-
|
244
|
-
if @order.nil?
|
245
|
-
invalid_properties.push('invalid value for "order", order cannot be nil.')
|
246
|
-
end
|
247
|
-
|
248
|
-
if @invert_if_negative.nil?
|
249
|
-
invalid_properties.push('invalid value for "invert_if_negative", invert_if_negative cannot be nil.')
|
250
|
-
end
|
251
|
-
|
252
|
-
if @explosion.nil?
|
253
|
-
invalid_properties.push('invalid value for "explosion", explosion cannot be nil.')
|
254
|
-
end
|
255
|
-
|
256
236
|
invalid_properties
|
257
237
|
end
|
258
238
|
|
259
239
|
# Check to see if the all the properties in the model are valid
|
260
240
|
# @return true if the model is valid
|
261
241
|
def valid?
|
262
|
-
|
263
|
-
type_validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes'])
|
242
|
+
type_validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes', 'Treemap', 'Sunburst', 'Histogram', 'ParetoLine', 'BoxAndWhisker', 'Waterfall', 'Funnel'])
|
264
243
|
return false unless type_validator.valid?(@type)
|
265
|
-
|
266
|
-
return false
|
267
|
-
return false if @plot_on_second_axis.nil?
|
268
|
-
return false if @order.nil?
|
269
|
-
return false if @invert_if_negative.nil?
|
270
|
-
return false if @explosion.nil?
|
244
|
+
data_point_type_validator = EnumAttributeValidator.new('String', ['OneValue', 'Scatter', 'Bubble'])
|
245
|
+
return false unless data_point_type_validator.valid?(@data_point_type)
|
271
246
|
true
|
272
247
|
end
|
273
248
|
|
274
249
|
# Custom attribute writer method checking allowed values (enum).
|
275
250
|
# @param [Object] type Object to be assigned
|
276
251
|
def type=(type)
|
277
|
-
validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes'])
|
252
|
+
validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes', 'Treemap', 'Sunburst', 'Histogram', 'ParetoLine', 'BoxAndWhisker', 'Waterfall', 'Funnel'])
|
278
253
|
unless validator.valid?(type)
|
279
254
|
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
280
255
|
end
|
281
256
|
@type = type
|
282
257
|
end
|
283
258
|
|
259
|
+
# Custom attribute writer method checking allowed values (enum).
|
260
|
+
# @param [Object] data_point_type Object to be assigned
|
261
|
+
def data_point_type=(data_point_type)
|
262
|
+
validator = EnumAttributeValidator.new('String', ['OneValue', 'Scatter', 'Bubble'])
|
263
|
+
unless validator.valid?(data_point_type)
|
264
|
+
fail ArgumentError, 'invalid value for "data_point_type", must be one of #{validator.allowable_values}.'
|
265
|
+
end
|
266
|
+
@data_point_type = data_point_type
|
267
|
+
end
|
268
|
+
|
284
269
|
# Checks equality by comparing each attribute.
|
285
270
|
# @param [Object] Object to be compared
|
286
271
|
def ==(o)
|
@@ -302,7 +287,8 @@ module AsposeSlidesCloud
|
|
302
287
|
marker == o.marker &&
|
303
288
|
fill_format == o.fill_format &&
|
304
289
|
effect_format == o.effect_format &&
|
305
|
-
line_format == o.line_format
|
290
|
+
line_format == o.line_format &&
|
291
|
+
data_point_type == o.data_point_type
|
306
292
|
end
|
307
293
|
|
308
294
|
# @see the `==` method
|
@@ -314,7 +300,7 @@ module AsposeSlidesCloud
|
|
314
300
|
# Calculates hash code according to all attributes.
|
315
301
|
# @return [Fixnum] Hash code
|
316
302
|
def hash
|
317
|
-
[type, name, is_color_varied, inverted_solid_fill_color, smooth, plot_on_second_axis, order, number_format_of_y_values, number_format_of_x_values, number_format_of_values, number_format_of_bubble_sizes, invert_if_negative, explosion, marker, fill_format, effect_format, line_format].hash
|
303
|
+
[type, name, is_color_varied, inverted_solid_fill_color, smooth, plot_on_second_axis, order, number_format_of_y_values, number_format_of_x_values, number_format_of_values, number_format_of_bubble_sizes, invert_if_negative, explosion, marker, fill_format, effect_format, line_format, data_point_type].hash
|
318
304
|
end
|
319
305
|
|
320
306
|
# Builds the object from hash
|
@@ -323,15 +309,27 @@ module AsposeSlidesCloud
|
|
323
309
|
def build_from_hash(attributes)
|
324
310
|
return nil unless attributes.is_a?(Hash)
|
325
311
|
self.class.swagger_types.each_pair do |key, type|
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
if
|
330
|
-
|
312
|
+
mapKey = self.class.attribute_map[key]
|
313
|
+
if !mapKey.nil?
|
314
|
+
val = attributes[mapKey]
|
315
|
+
if val.nil?
|
316
|
+
mapKeyString = mapKey.to_s
|
317
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
318
|
+
mapKey = mapKeyString.to_sym
|
319
|
+
val = attributes[mapKey]
|
331
320
|
end
|
332
|
-
|
333
|
-
|
334
|
-
|
321
|
+
if !val.nil?
|
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 val.is_a?(Array)
|
326
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
327
|
+
end
|
328
|
+
else
|
329
|
+
self.send("#{key}=", _deserialize(type, val))
|
330
|
+
end
|
331
|
+
end
|
332
|
+
end
|
335
333
|
end
|
336
334
|
|
337
335
|
self
|
@@ -117,22 +117,12 @@ module AsposeSlidesCloud
|
|
117
117
|
# @return Array for valid properties with the reasons
|
118
118
|
def list_invalid_properties
|
119
119
|
invalid_properties = Array.new
|
120
|
-
if @size.nil?
|
121
|
-
invalid_properties.push('invalid value for "size", size cannot be nil.')
|
122
|
-
end
|
123
|
-
|
124
|
-
if @symbol.nil?
|
125
|
-
invalid_properties.push('invalid value for "symbol", symbol cannot be nil.')
|
126
|
-
end
|
127
|
-
|
128
120
|
invalid_properties
|
129
121
|
end
|
130
122
|
|
131
123
|
# Check to see if the all the properties in the model are valid
|
132
124
|
# @return true if the model is valid
|
133
125
|
def valid?
|
134
|
-
return false if @size.nil?
|
135
|
-
return false if @symbol.nil?
|
136
126
|
symbol_validator = EnumAttributeValidator.new('String', ['Circle', 'Dash', 'Diamond', 'Dot', 'None', 'Picture', 'Plus', 'Square', 'Star', 'Triangle', 'X', 'NotDefined'])
|
137
127
|
return false unless symbol_validator.valid?(@symbol)
|
138
128
|
true
|
@@ -178,15 +168,27 @@ module AsposeSlidesCloud
|
|
178
168
|
def build_from_hash(attributes)
|
179
169
|
return nil unless attributes.is_a?(Hash)
|
180
170
|
self.class.swagger_types.each_pair do |key, type|
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
if
|
185
|
-
|
171
|
+
mapKey = self.class.attribute_map[key]
|
172
|
+
if !mapKey.nil?
|
173
|
+
val = attributes[mapKey]
|
174
|
+
if val.nil?
|
175
|
+
mapKeyString = mapKey.to_s
|
176
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
177
|
+
mapKey = mapKeyString.to_sym
|
178
|
+
val = attributes[mapKey]
|
179
|
+
end
|
180
|
+
if !val.nil?
|
181
|
+
if type =~ /\AArray<(.*)>/i
|
182
|
+
# check to ensure the input is an array given that the the attribute
|
183
|
+
# is documented as an array but the input is not
|
184
|
+
if val.is_a?(Array)
|
185
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
186
|
+
end
|
187
|
+
else
|
188
|
+
self.send("#{key}=", _deserialize(type, val))
|
189
|
+
end
|
186
190
|
end
|
187
|
-
|
188
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
189
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
191
|
+
end
|
190
192
|
end
|
191
193
|
|
192
194
|
self
|