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
@@ -150,15 +150,27 @@ module AsposeSlidesCloud
|
|
150
150
|
def build_from_hash(attributes)
|
151
151
|
return nil unless attributes.is_a?(Hash)
|
152
152
|
self.class.swagger_types.each_pair do |key, type|
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
if
|
157
|
-
|
153
|
+
mapKey = self.class.attribute_map[key]
|
154
|
+
if !mapKey.nil?
|
155
|
+
val = attributes[mapKey]
|
156
|
+
if val.nil?
|
157
|
+
mapKeyString = mapKey.to_s
|
158
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
159
|
+
mapKey = mapKeyString.to_sym
|
160
|
+
val = attributes[mapKey]
|
158
161
|
end
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
+
if !val.nil?
|
163
|
+
if type =~ /\AArray<(.*)>/i
|
164
|
+
# check to ensure the input is an array given that the the attribute
|
165
|
+
# is documented as an array but the input is not
|
166
|
+
if val.is_a?(Array)
|
167
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
168
|
+
end
|
169
|
+
else
|
170
|
+
self.send("#{key}=", _deserialize(type, val))
|
171
|
+
end
|
172
|
+
end
|
173
|
+
end
|
162
174
|
end
|
163
175
|
|
164
176
|
self
|
@@ -106,15 +106,27 @@ module AsposeSlidesCloud
|
|
106
106
|
def build_from_hash(attributes)
|
107
107
|
return nil unless attributes.is_a?(Hash)
|
108
108
|
self.class.swagger_types.each_pair do |key, type|
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
if
|
113
|
-
|
109
|
+
mapKey = self.class.attribute_map[key]
|
110
|
+
if !mapKey.nil?
|
111
|
+
val = attributes[mapKey]
|
112
|
+
if val.nil?
|
113
|
+
mapKeyString = mapKey.to_s
|
114
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
115
|
+
mapKey = mapKeyString.to_sym
|
116
|
+
val = attributes[mapKey]
|
114
117
|
end
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
+
if !val.nil?
|
119
|
+
if type =~ /\AArray<(.*)>/i
|
120
|
+
# check to ensure the input is an array given that the the attribute
|
121
|
+
# is documented as an array but the input is not
|
122
|
+
if val.is_a?(Array)
|
123
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
124
|
+
end
|
125
|
+
else
|
126
|
+
self.send("#{key}=", _deserialize(type, val))
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
118
130
|
end
|
119
131
|
|
120
132
|
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
|
@@ -94,15 +94,27 @@ module AsposeSlidesCloud
|
|
94
94
|
def build_from_hash(attributes)
|
95
95
|
return nil unless attributes.is_a?(Hash)
|
96
96
|
self.class.swagger_types.each_pair do |key, type|
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
if
|
101
|
-
|
97
|
+
mapKey = self.class.attribute_map[key]
|
98
|
+
if !mapKey.nil?
|
99
|
+
val = attributes[mapKey]
|
100
|
+
if val.nil?
|
101
|
+
mapKeyString = mapKey.to_s
|
102
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
103
|
+
mapKey = mapKeyString.to_sym
|
104
|
+
val = attributes[mapKey]
|
102
105
|
end
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
+
if !val.nil?
|
107
|
+
if type =~ /\AArray<(.*)>/i
|
108
|
+
# check to ensure the input is an array given that the the attribute
|
109
|
+
# is documented as an array but the input is not
|
110
|
+
if val.is_a?(Array)
|
111
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
112
|
+
end
|
113
|
+
else
|
114
|
+
self.send("#{key}=", _deserialize(type, val))
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
106
118
|
end
|
107
119
|
|
108
120
|
self
|
@@ -135,15 +135,27 @@ module AsposeSlidesCloud
|
|
135
135
|
def build_from_hash(attributes)
|
136
136
|
return nil unless attributes.is_a?(Hash)
|
137
137
|
self.class.swagger_types.each_pair do |key, type|
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
if
|
142
|
-
|
138
|
+
mapKey = self.class.attribute_map[key]
|
139
|
+
if !mapKey.nil?
|
140
|
+
val = attributes[mapKey]
|
141
|
+
if val.nil?
|
142
|
+
mapKeyString = mapKey.to_s
|
143
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
144
|
+
mapKey = mapKeyString.to_sym
|
145
|
+
val = attributes[mapKey]
|
143
146
|
end
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
+
if !val.nil?
|
148
|
+
if type =~ /\AArray<(.*)>/i
|
149
|
+
# check to ensure the input is an array given that the the attribute
|
150
|
+
# is documented as an array but the input is not
|
151
|
+
if val.is_a?(Array)
|
152
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
153
|
+
end
|
154
|
+
else
|
155
|
+
self.send("#{key}=", _deserialize(type, val))
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
147
159
|
end
|
148
160
|
|
149
161
|
self
|
@@ -182,15 +182,27 @@ module AsposeSlidesCloud
|
|
182
182
|
def build_from_hash(attributes)
|
183
183
|
return nil unless attributes.is_a?(Hash)
|
184
184
|
self.class.swagger_types.each_pair do |key, type|
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
if
|
189
|
-
|
185
|
+
mapKey = self.class.attribute_map[key]
|
186
|
+
if !mapKey.nil?
|
187
|
+
val = attributes[mapKey]
|
188
|
+
if val.nil?
|
189
|
+
mapKeyString = mapKey.to_s
|
190
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
191
|
+
mapKey = mapKeyString.to_sym
|
192
|
+
val = attributes[mapKey]
|
190
193
|
end
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
+
if !val.nil?
|
195
|
+
if type =~ /\AArray<(.*)>/i
|
196
|
+
# check to ensure the input is an array given that the the attribute
|
197
|
+
# is documented as an array but the input is not
|
198
|
+
if val.is_a?(Array)
|
199
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
200
|
+
end
|
201
|
+
else
|
202
|
+
self.send("#{key}=", _deserialize(type, val))
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
194
206
|
end
|
195
207
|
|
196
208
|
self
|
@@ -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
|
@@ -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')
|
@@ -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
|
@@ -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,6 +223,10 @@ 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?
|
@@ -233,6 +241,8 @@ module AsposeSlidesCloud
|
|
233
241
|
def valid?
|
234
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'])
|
235
243
|
return false unless type_validator.valid?(@type)
|
244
|
+
data_point_type_validator = EnumAttributeValidator.new('String', ['OneValue', 'Scatter', 'Bubble'])
|
245
|
+
return false unless data_point_type_validator.valid?(@data_point_type)
|
236
246
|
true
|
237
247
|
end
|
238
248
|
|
@@ -246,6 +256,16 @@ module AsposeSlidesCloud
|
|
246
256
|
@type = type
|
247
257
|
end
|
248
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
|
+
|
249
269
|
# Checks equality by comparing each attribute.
|
250
270
|
# @param [Object] Object to be compared
|
251
271
|
def ==(o)
|
@@ -267,7 +287,8 @@ module AsposeSlidesCloud
|
|
267
287
|
marker == o.marker &&
|
268
288
|
fill_format == o.fill_format &&
|
269
289
|
effect_format == o.effect_format &&
|
270
|
-
line_format == o.line_format
|
290
|
+
line_format == o.line_format &&
|
291
|
+
data_point_type == o.data_point_type
|
271
292
|
end
|
272
293
|
|
273
294
|
# @see the `==` method
|
@@ -279,7 +300,7 @@ module AsposeSlidesCloud
|
|
279
300
|
# Calculates hash code according to all attributes.
|
280
301
|
# @return [Fixnum] Hash code
|
281
302
|
def hash
|
282
|
-
[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
|
283
304
|
end
|
284
305
|
|
285
306
|
# Builds the object from hash
|
@@ -288,15 +309,27 @@ module AsposeSlidesCloud
|
|
288
309
|
def build_from_hash(attributes)
|
289
310
|
return nil unless attributes.is_a?(Hash)
|
290
311
|
self.class.swagger_types.each_pair do |key, type|
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
if
|
295
|
-
|
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]
|
296
320
|
end
|
297
|
-
|
298
|
-
|
299
|
-
|
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
|
300
333
|
end
|
301
334
|
|
302
335
|
self
|