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
@@ -0,0 +1,452 @@
|
|
1
|
+
=begin
|
2
|
+
Copyright (c) 2019 Aspose Pty Ltd
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
12
|
+
copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
+
SOFTWARE.
|
21
|
+
=end
|
22
|
+
|
23
|
+
require 'date'
|
24
|
+
|
25
|
+
module AsposeSlidesCloud
|
26
|
+
# One value series.
|
27
|
+
class WaterfallSeries
|
28
|
+
# Series type.
|
29
|
+
attr_accessor :type
|
30
|
+
|
31
|
+
# Series name.
|
32
|
+
attr_accessor :name
|
33
|
+
|
34
|
+
# True if each data marker in the series has a different color.
|
35
|
+
attr_accessor :is_color_varied
|
36
|
+
|
37
|
+
# Invert solid color for the series.
|
38
|
+
attr_accessor :inverted_solid_fill_color
|
39
|
+
|
40
|
+
# True if curve smoothing is turned on. Applies only to line and scatter connected by lines charts.
|
41
|
+
attr_accessor :smooth
|
42
|
+
|
43
|
+
# True if the series is plotted on second value axis.
|
44
|
+
attr_accessor :plot_on_second_axis
|
45
|
+
|
46
|
+
# Series order.
|
47
|
+
attr_accessor :order
|
48
|
+
|
49
|
+
# The number format for the series y values.
|
50
|
+
attr_accessor :number_format_of_y_values
|
51
|
+
|
52
|
+
# The number format for the series x values.
|
53
|
+
attr_accessor :number_format_of_x_values
|
54
|
+
|
55
|
+
# The number format for the series values.
|
56
|
+
attr_accessor :number_format_of_values
|
57
|
+
|
58
|
+
# The number format for the series bubble sizes.
|
59
|
+
attr_accessor :number_format_of_bubble_sizes
|
60
|
+
|
61
|
+
# True if the series shall invert its colors if the value is negative. Applies to bar, column and bubble series.
|
62
|
+
attr_accessor :invert_if_negative
|
63
|
+
|
64
|
+
# The distance of an open pie slice from the center of the pie chart is expressed as a percentage of the pie diameter.
|
65
|
+
attr_accessor :explosion
|
66
|
+
|
67
|
+
# Series marker.
|
68
|
+
attr_accessor :marker
|
69
|
+
|
70
|
+
# Fill properties set for the series.
|
71
|
+
attr_accessor :fill_format
|
72
|
+
|
73
|
+
# Effect properties set for the series.
|
74
|
+
attr_accessor :effect_format
|
75
|
+
|
76
|
+
# Line properties set for the series.
|
77
|
+
attr_accessor :line_format
|
78
|
+
|
79
|
+
# Data point type.
|
80
|
+
attr_accessor :data_point_type
|
81
|
+
|
82
|
+
# Gets or sets the values.
|
83
|
+
attr_accessor :data_points
|
84
|
+
|
85
|
+
# True if inner points are shown.
|
86
|
+
attr_accessor :show_connector_lines
|
87
|
+
|
88
|
+
class EnumAttributeValidator
|
89
|
+
attr_reader :datatype
|
90
|
+
attr_reader :allowable_values
|
91
|
+
|
92
|
+
def initialize(datatype, allowable_values)
|
93
|
+
@allowable_values = allowable_values.map do |value|
|
94
|
+
case datatype.to_s
|
95
|
+
when /Integer/i
|
96
|
+
value.to_i
|
97
|
+
when /Float/i
|
98
|
+
value.to_f
|
99
|
+
else
|
100
|
+
value
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
def valid?(value)
|
106
|
+
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
111
|
+
def self.attribute_map
|
112
|
+
{
|
113
|
+
:'type' => :'Type',
|
114
|
+
:'name' => :'Name',
|
115
|
+
:'is_color_varied' => :'IsColorVaried',
|
116
|
+
:'inverted_solid_fill_color' => :'InvertedSolidFillColor',
|
117
|
+
:'smooth' => :'Smooth',
|
118
|
+
:'plot_on_second_axis' => :'PlotOnSecondAxis',
|
119
|
+
:'order' => :'Order',
|
120
|
+
:'number_format_of_y_values' => :'NumberFormatOfYValues',
|
121
|
+
:'number_format_of_x_values' => :'NumberFormatOfXValues',
|
122
|
+
:'number_format_of_values' => :'NumberFormatOfValues',
|
123
|
+
:'number_format_of_bubble_sizes' => :'NumberFormatOfBubbleSizes',
|
124
|
+
:'invert_if_negative' => :'InvertIfNegative',
|
125
|
+
:'explosion' => :'Explosion',
|
126
|
+
:'marker' => :'Marker',
|
127
|
+
:'fill_format' => :'FillFormat',
|
128
|
+
:'effect_format' => :'EffectFormat',
|
129
|
+
:'line_format' => :'LineFormat',
|
130
|
+
:'data_point_type' => :'DataPointType',
|
131
|
+
:'data_points' => :'DataPoints',
|
132
|
+
:'show_connector_lines' => :'ShowConnectorLines'
|
133
|
+
}
|
134
|
+
end
|
135
|
+
|
136
|
+
# Attribute type mapping.
|
137
|
+
def self.swagger_types
|
138
|
+
{
|
139
|
+
:'type' => :'String',
|
140
|
+
:'name' => :'String',
|
141
|
+
:'is_color_varied' => :'BOOLEAN',
|
142
|
+
:'inverted_solid_fill_color' => :'String',
|
143
|
+
:'smooth' => :'BOOLEAN',
|
144
|
+
:'plot_on_second_axis' => :'BOOLEAN',
|
145
|
+
:'order' => :'Integer',
|
146
|
+
:'number_format_of_y_values' => :'String',
|
147
|
+
:'number_format_of_x_values' => :'String',
|
148
|
+
:'number_format_of_values' => :'String',
|
149
|
+
:'number_format_of_bubble_sizes' => :'String',
|
150
|
+
:'invert_if_negative' => :'BOOLEAN',
|
151
|
+
:'explosion' => :'Integer',
|
152
|
+
:'marker' => :'SeriesMarker',
|
153
|
+
:'fill_format' => :'FillFormat',
|
154
|
+
:'effect_format' => :'EffectFormat',
|
155
|
+
:'line_format' => :'LineFormat',
|
156
|
+
:'data_point_type' => :'String',
|
157
|
+
:'data_points' => :'Array<OneValueChartDataPoint>',
|
158
|
+
:'show_connector_lines' => :'BOOLEAN'
|
159
|
+
}
|
160
|
+
end
|
161
|
+
|
162
|
+
# Initializes the object
|
163
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
164
|
+
def initialize(attributes = {})
|
165
|
+
return unless attributes.is_a?(Hash)
|
166
|
+
|
167
|
+
# convert string to symbol for hash key
|
168
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
169
|
+
|
170
|
+
if attributes.has_key?(:'Type')
|
171
|
+
self.type = attributes[:'Type']
|
172
|
+
end
|
173
|
+
|
174
|
+
if attributes.has_key?(:'Name')
|
175
|
+
self.name = attributes[:'Name']
|
176
|
+
end
|
177
|
+
|
178
|
+
if attributes.has_key?(:'IsColorVaried')
|
179
|
+
self.is_color_varied = attributes[:'IsColorVaried']
|
180
|
+
end
|
181
|
+
|
182
|
+
if attributes.has_key?(:'InvertedSolidFillColor')
|
183
|
+
self.inverted_solid_fill_color = attributes[:'InvertedSolidFillColor']
|
184
|
+
end
|
185
|
+
|
186
|
+
if attributes.has_key?(:'Smooth')
|
187
|
+
self.smooth = attributes[:'Smooth']
|
188
|
+
end
|
189
|
+
|
190
|
+
if attributes.has_key?(:'PlotOnSecondAxis')
|
191
|
+
self.plot_on_second_axis = attributes[:'PlotOnSecondAxis']
|
192
|
+
end
|
193
|
+
|
194
|
+
if attributes.has_key?(:'Order')
|
195
|
+
self.order = attributes[:'Order']
|
196
|
+
end
|
197
|
+
|
198
|
+
if attributes.has_key?(:'NumberFormatOfYValues')
|
199
|
+
self.number_format_of_y_values = attributes[:'NumberFormatOfYValues']
|
200
|
+
end
|
201
|
+
|
202
|
+
if attributes.has_key?(:'NumberFormatOfXValues')
|
203
|
+
self.number_format_of_x_values = attributes[:'NumberFormatOfXValues']
|
204
|
+
end
|
205
|
+
|
206
|
+
if attributes.has_key?(:'NumberFormatOfValues')
|
207
|
+
self.number_format_of_values = attributes[:'NumberFormatOfValues']
|
208
|
+
end
|
209
|
+
|
210
|
+
if attributes.has_key?(:'NumberFormatOfBubbleSizes')
|
211
|
+
self.number_format_of_bubble_sizes = attributes[:'NumberFormatOfBubbleSizes']
|
212
|
+
end
|
213
|
+
|
214
|
+
if attributes.has_key?(:'InvertIfNegative')
|
215
|
+
self.invert_if_negative = attributes[:'InvertIfNegative']
|
216
|
+
end
|
217
|
+
|
218
|
+
if attributes.has_key?(:'Explosion')
|
219
|
+
self.explosion = attributes[:'Explosion']
|
220
|
+
end
|
221
|
+
|
222
|
+
if attributes.has_key?(:'Marker')
|
223
|
+
self.marker = attributes[:'Marker']
|
224
|
+
end
|
225
|
+
|
226
|
+
if attributes.has_key?(:'FillFormat')
|
227
|
+
self.fill_format = attributes[:'FillFormat']
|
228
|
+
end
|
229
|
+
|
230
|
+
if attributes.has_key?(:'EffectFormat')
|
231
|
+
self.effect_format = attributes[:'EffectFormat']
|
232
|
+
end
|
233
|
+
|
234
|
+
if attributes.has_key?(:'LineFormat')
|
235
|
+
self.line_format = attributes[:'LineFormat']
|
236
|
+
end
|
237
|
+
|
238
|
+
if attributes.has_key?(:'DataPointType')
|
239
|
+
self.data_point_type = attributes[:'DataPointType']
|
240
|
+
else
|
241
|
+
self.data_point_type = "OneValue"
|
242
|
+
end
|
243
|
+
|
244
|
+
if attributes.has_key?(:'DataPoints')
|
245
|
+
if (value = attributes[:'DataPoints']).is_a?(Array)
|
246
|
+
self.data_points = value
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
250
|
+
if attributes.has_key?(:'ShowConnectorLines')
|
251
|
+
self.show_connector_lines = attributes[:'ShowConnectorLines']
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
255
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
256
|
+
# @return Array for valid properties with the reasons
|
257
|
+
def list_invalid_properties
|
258
|
+
invalid_properties = Array.new
|
259
|
+
if @data_point_type.nil?
|
260
|
+
invalid_properties.push('invalid value for "data_point_type", data_point_type cannot be nil.')
|
261
|
+
end
|
262
|
+
|
263
|
+
invalid_properties
|
264
|
+
end
|
265
|
+
|
266
|
+
# Check to see if the all the properties in the model are valid
|
267
|
+
# @return true if the model is valid
|
268
|
+
def valid?
|
269
|
+
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'])
|
270
|
+
return false unless type_validator.valid?(@type)
|
271
|
+
return false if @data_point_type.nil?
|
272
|
+
data_point_type_validator = EnumAttributeValidator.new('String', ['OneValue', 'Scatter', 'Bubble'])
|
273
|
+
return false unless data_point_type_validator.valid?(@data_point_type)
|
274
|
+
true
|
275
|
+
end
|
276
|
+
|
277
|
+
# Custom attribute writer method checking allowed values (enum).
|
278
|
+
# @param [Object] type Object to be assigned
|
279
|
+
def type=(type)
|
280
|
+
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'])
|
281
|
+
unless validator.valid?(type)
|
282
|
+
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
283
|
+
end
|
284
|
+
@type = type
|
285
|
+
end
|
286
|
+
|
287
|
+
# Custom attribute writer method checking allowed values (enum).
|
288
|
+
# @param [Object] data_point_type Object to be assigned
|
289
|
+
def data_point_type=(data_point_type)
|
290
|
+
validator = EnumAttributeValidator.new('String', ['OneValue', 'Scatter', 'Bubble'])
|
291
|
+
unless validator.valid?(data_point_type)
|
292
|
+
fail ArgumentError, 'invalid value for "data_point_type", must be one of #{validator.allowable_values}.'
|
293
|
+
end
|
294
|
+
@data_point_type = data_point_type
|
295
|
+
end
|
296
|
+
|
297
|
+
# Checks equality by comparing each attribute.
|
298
|
+
# @param [Object] Object to be compared
|
299
|
+
def ==(o)
|
300
|
+
return true if self.equal?(o)
|
301
|
+
self.class == o.class &&
|
302
|
+
type == o.type &&
|
303
|
+
name == o.name &&
|
304
|
+
is_color_varied == o.is_color_varied &&
|
305
|
+
inverted_solid_fill_color == o.inverted_solid_fill_color &&
|
306
|
+
smooth == o.smooth &&
|
307
|
+
plot_on_second_axis == o.plot_on_second_axis &&
|
308
|
+
order == o.order &&
|
309
|
+
number_format_of_y_values == o.number_format_of_y_values &&
|
310
|
+
number_format_of_x_values == o.number_format_of_x_values &&
|
311
|
+
number_format_of_values == o.number_format_of_values &&
|
312
|
+
number_format_of_bubble_sizes == o.number_format_of_bubble_sizes &&
|
313
|
+
invert_if_negative == o.invert_if_negative &&
|
314
|
+
explosion == o.explosion &&
|
315
|
+
marker == o.marker &&
|
316
|
+
fill_format == o.fill_format &&
|
317
|
+
effect_format == o.effect_format &&
|
318
|
+
line_format == o.line_format &&
|
319
|
+
data_point_type == o.data_point_type &&
|
320
|
+
data_points == o.data_points &&
|
321
|
+
show_connector_lines == o.show_connector_lines
|
322
|
+
end
|
323
|
+
|
324
|
+
# @see the `==` method
|
325
|
+
# @param [Object] Object to be compared
|
326
|
+
def eql?(o)
|
327
|
+
self == o
|
328
|
+
end
|
329
|
+
|
330
|
+
# Calculates hash code according to all attributes.
|
331
|
+
# @return [Fixnum] Hash code
|
332
|
+
def hash
|
333
|
+
[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, data_points, show_connector_lines].hash
|
334
|
+
end
|
335
|
+
|
336
|
+
# Builds the object from hash
|
337
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
338
|
+
# @return [Object] Returns the model itself
|
339
|
+
def build_from_hash(attributes)
|
340
|
+
return nil unless attributes.is_a?(Hash)
|
341
|
+
self.class.swagger_types.each_pair do |key, type|
|
342
|
+
mapKey = self.class.attribute_map[key]
|
343
|
+
if !mapKey.nil?
|
344
|
+
val = attributes[mapKey]
|
345
|
+
if val.nil?
|
346
|
+
mapKeyString = mapKey.to_s
|
347
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
348
|
+
mapKey = mapKeyString.to_sym
|
349
|
+
val = attributes[mapKey]
|
350
|
+
end
|
351
|
+
if !val.nil?
|
352
|
+
if type =~ /\AArray<(.*)>/i
|
353
|
+
# check to ensure the input is an array given that the the attribute
|
354
|
+
# is documented as an array but the input is not
|
355
|
+
if val.is_a?(Array)
|
356
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
357
|
+
end
|
358
|
+
else
|
359
|
+
self.send("#{key}=", _deserialize(type, val))
|
360
|
+
end
|
361
|
+
end
|
362
|
+
end
|
363
|
+
end
|
364
|
+
|
365
|
+
self
|
366
|
+
end
|
367
|
+
|
368
|
+
# Deserializes the data based on type
|
369
|
+
# @param string type Data type
|
370
|
+
# @param string value Value to be deserialized
|
371
|
+
# @return [Object] Deserialized data
|
372
|
+
def _deserialize(type, value)
|
373
|
+
case type.to_sym
|
374
|
+
when :DateTime
|
375
|
+
DateTime.parse(value)
|
376
|
+
when :Date
|
377
|
+
Date.parse(value)
|
378
|
+
when :String
|
379
|
+
value.to_s
|
380
|
+
when :Integer
|
381
|
+
value.to_i
|
382
|
+
when :Float
|
383
|
+
value.to_f
|
384
|
+
when :BOOLEAN
|
385
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
386
|
+
true
|
387
|
+
else
|
388
|
+
false
|
389
|
+
end
|
390
|
+
when :Object
|
391
|
+
# generic object (usually a Hash), return directly
|
392
|
+
value
|
393
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
394
|
+
inner_type = Regexp.last_match[:inner_type]
|
395
|
+
value.map { |v| _deserialize(inner_type, v) }
|
396
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
397
|
+
k_type = Regexp.last_match[:k_type]
|
398
|
+
v_type = Regexp.last_match[:v_type]
|
399
|
+
{}.tap do |hash|
|
400
|
+
value.each do |k, v|
|
401
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
402
|
+
end
|
403
|
+
end
|
404
|
+
else # model
|
405
|
+
temp_model = AsposeSlidesCloud.const_get(type).new
|
406
|
+
temp_model.build_from_hash(value)
|
407
|
+
end
|
408
|
+
end
|
409
|
+
|
410
|
+
# Returns the string representation of the object
|
411
|
+
# @return [String] String presentation of the object
|
412
|
+
def to_s
|
413
|
+
to_hash.to_s
|
414
|
+
end
|
415
|
+
|
416
|
+
# to_body is an alias to to_hash (backward compatibility)
|
417
|
+
# @return [Hash] Returns the object in the form of hash
|
418
|
+
def to_body
|
419
|
+
to_hash
|
420
|
+
end
|
421
|
+
|
422
|
+
# Returns the object in the form of hash
|
423
|
+
# @return [Hash] Returns the object in the form of hash
|
424
|
+
def to_hash
|
425
|
+
hash = {}
|
426
|
+
self.class.attribute_map.each_pair do |attr, param|
|
427
|
+
value = self.send(attr)
|
428
|
+
next if value.nil?
|
429
|
+
hash[param] = _to_hash(value)
|
430
|
+
end
|
431
|
+
hash
|
432
|
+
end
|
433
|
+
|
434
|
+
# Outputs non-array value in the form of hash
|
435
|
+
# For object, use to_hash. Otherwise, just return the value
|
436
|
+
# @param [Object] value Any valid value
|
437
|
+
# @return [Hash] Returns the value in the form of hash
|
438
|
+
def _to_hash(value)
|
439
|
+
if value.is_a?(Array)
|
440
|
+
value.compact.map { |v| _to_hash(v) }
|
441
|
+
elsif value.is_a?(Hash)
|
442
|
+
{}.tap do |hash|
|
443
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
444
|
+
end
|
445
|
+
elsif value.respond_to? :to_hash
|
446
|
+
value.to_hash
|
447
|
+
else
|
448
|
+
value
|
449
|
+
end
|
450
|
+
end
|
451
|
+
end
|
452
|
+
end
|
@@ -141,15 +141,27 @@ module AsposeSlidesCloud
|
|
141
141
|
def build_from_hash(attributes)
|
142
142
|
return nil unless attributes.is_a?(Hash)
|
143
143
|
self.class.swagger_types.each_pair do |key, type|
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
if
|
148
|
-
|
144
|
+
mapKey = self.class.attribute_map[key]
|
145
|
+
if !mapKey.nil?
|
146
|
+
val = attributes[mapKey]
|
147
|
+
if val.nil?
|
148
|
+
mapKeyString = mapKey.to_s
|
149
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
150
|
+
mapKey = mapKeyString.to_sym
|
151
|
+
val = attributes[mapKey]
|
149
152
|
end
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
+
if !val.nil?
|
154
|
+
if type =~ /\AArray<(.*)>/i
|
155
|
+
# check to ensure the input is an array given that the the attribute
|
156
|
+
# is documented as an array but the input is not
|
157
|
+
if val.is_a?(Array)
|
158
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
159
|
+
end
|
160
|
+
else
|
161
|
+
self.send("#{key}=", _deserialize(type, val))
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|
153
165
|
end
|
154
166
|
|
155
167
|
self
|