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
@@ -173,15 +173,27 @@ module AsposeSlidesCloud
|
|
173
173
|
def build_from_hash(attributes)
|
174
174
|
return nil unless attributes.is_a?(Hash)
|
175
175
|
self.class.swagger_types.each_pair do |key, type|
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
if
|
180
|
-
|
176
|
+
mapKey = self.class.attribute_map[key]
|
177
|
+
if !mapKey.nil?
|
178
|
+
val = attributes[mapKey]
|
179
|
+
if val.nil?
|
180
|
+
mapKeyString = mapKey.to_s
|
181
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
182
|
+
mapKey = mapKeyString.to_sym
|
183
|
+
val = attributes[mapKey]
|
181
184
|
end
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
+
if !val.nil?
|
186
|
+
if type =~ /\AArray<(.*)>/i
|
187
|
+
# check to ensure the input is an array given that the the attribute
|
188
|
+
# is documented as an array but the input is not
|
189
|
+
if val.is_a?(Array)
|
190
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
191
|
+
end
|
192
|
+
else
|
193
|
+
self.send("#{key}=", _deserialize(type, val))
|
194
|
+
end
|
195
|
+
end
|
196
|
+
end
|
185
197
|
end
|
186
198
|
|
187
199
|
self
|
@@ -328,15 +328,27 @@ module AsposeSlidesCloud
|
|
328
328
|
def build_from_hash(attributes)
|
329
329
|
return nil unless attributes.is_a?(Hash)
|
330
330
|
self.class.swagger_types.each_pair do |key, type|
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
if
|
335
|
-
|
331
|
+
mapKey = self.class.attribute_map[key]
|
332
|
+
if !mapKey.nil?
|
333
|
+
val = attributes[mapKey]
|
334
|
+
if val.nil?
|
335
|
+
mapKeyString = mapKey.to_s
|
336
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
337
|
+
mapKey = mapKeyString.to_sym
|
338
|
+
val = attributes[mapKey]
|
336
339
|
end
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
+
if !val.nil?
|
341
|
+
if type =~ /\AArray<(.*)>/i
|
342
|
+
# check to ensure the input is an array given that the the attribute
|
343
|
+
# is documented as an array but the input is not
|
344
|
+
if val.is_a?(Array)
|
345
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
346
|
+
end
|
347
|
+
else
|
348
|
+
self.send("#{key}=", _deserialize(type, val))
|
349
|
+
end
|
350
|
+
end
|
351
|
+
end
|
340
352
|
end
|
341
353
|
|
342
354
|
self
|
@@ -145,15 +145,27 @@ module AsposeSlidesCloud
|
|
145
145
|
def build_from_hash(attributes)
|
146
146
|
return nil unless attributes.is_a?(Hash)
|
147
147
|
self.class.swagger_types.each_pair do |key, type|
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
if
|
152
|
-
|
148
|
+
mapKey = self.class.attribute_map[key]
|
149
|
+
if !mapKey.nil?
|
150
|
+
val = attributes[mapKey]
|
151
|
+
if val.nil?
|
152
|
+
mapKeyString = mapKey.to_s
|
153
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
154
|
+
mapKey = mapKeyString.to_sym
|
155
|
+
val = attributes[mapKey]
|
153
156
|
end
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
+
if !val.nil?
|
158
|
+
if type =~ /\AArray<(.*)>/i
|
159
|
+
# check to ensure the input is an array given that the the attribute
|
160
|
+
# is documented as an array but the input is not
|
161
|
+
if val.is_a?(Array)
|
162
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
163
|
+
end
|
164
|
+
else
|
165
|
+
self.send("#{key}=", _deserialize(type, val))
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
157
169
|
end
|
158
170
|
|
159
171
|
self
|
@@ -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
|
@@ -165,15 +165,27 @@ module AsposeSlidesCloud
|
|
165
165
|
def build_from_hash(attributes)
|
166
166
|
return nil unless attributes.is_a?(Hash)
|
167
167
|
self.class.swagger_types.each_pair do |key, type|
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
if
|
172
|
-
|
168
|
+
mapKey = self.class.attribute_map[key]
|
169
|
+
if !mapKey.nil?
|
170
|
+
val = attributes[mapKey]
|
171
|
+
if val.nil?
|
172
|
+
mapKeyString = mapKey.to_s
|
173
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
174
|
+
mapKey = mapKeyString.to_sym
|
175
|
+
val = attributes[mapKey]
|
173
176
|
end
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
+
if !val.nil?
|
178
|
+
if type =~ /\AArray<(.*)>/i
|
179
|
+
# check to ensure the input is an array given that the the attribute
|
180
|
+
# is documented as an array but the input is not
|
181
|
+
if val.is_a?(Array)
|
182
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
183
|
+
end
|
184
|
+
else
|
185
|
+
self.send("#{key}=", _deserialize(type, val))
|
186
|
+
end
|
187
|
+
end
|
188
|
+
end
|
177
189
|
end
|
178
190
|
|
179
191
|
self
|
@@ -185,15 +185,27 @@ module AsposeSlidesCloud
|
|
185
185
|
def build_from_hash(attributes)
|
186
186
|
return nil unless attributes.is_a?(Hash)
|
187
187
|
self.class.swagger_types.each_pair do |key, type|
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
if
|
192
|
-
|
188
|
+
mapKey = self.class.attribute_map[key]
|
189
|
+
if !mapKey.nil?
|
190
|
+
val = attributes[mapKey]
|
191
|
+
if val.nil?
|
192
|
+
mapKeyString = mapKey.to_s
|
193
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
194
|
+
mapKey = mapKeyString.to_sym
|
195
|
+
val = attributes[mapKey]
|
193
196
|
end
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
+
if !val.nil?
|
198
|
+
if type =~ /\AArray<(.*)>/i
|
199
|
+
# check to ensure the input is an array given that the the attribute
|
200
|
+
# is documented as an array but the input is not
|
201
|
+
if val.is_a?(Array)
|
202
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
203
|
+
end
|
204
|
+
else
|
205
|
+
self.send("#{key}=", _deserialize(type, val))
|
206
|
+
end
|
207
|
+
end
|
208
|
+
end
|
197
209
|
end
|
198
210
|
|
199
211
|
self
|
@@ -160,15 +160,27 @@ module AsposeSlidesCloud
|
|
160
160
|
def build_from_hash(attributes)
|
161
161
|
return nil unless attributes.is_a?(Hash)
|
162
162
|
self.class.swagger_types.each_pair do |key, type|
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
if
|
167
|
-
|
163
|
+
mapKey = self.class.attribute_map[key]
|
164
|
+
if !mapKey.nil?
|
165
|
+
val = attributes[mapKey]
|
166
|
+
if val.nil?
|
167
|
+
mapKeyString = mapKey.to_s
|
168
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
169
|
+
mapKey = mapKeyString.to_sym
|
170
|
+
val = attributes[mapKey]
|
168
171
|
end
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
+
if !val.nil?
|
173
|
+
if type =~ /\AArray<(.*)>/i
|
174
|
+
# check to ensure the input is an array given that the the attribute
|
175
|
+
# is documented as an array but the input is not
|
176
|
+
if val.is_a?(Array)
|
177
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
178
|
+
end
|
179
|
+
else
|
180
|
+
self.send("#{key}=", _deserialize(type, val))
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
172
184
|
end
|
173
185
|
|
174
186
|
self
|
@@ -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
|
@@ -128,7 +128,7 @@ module AsposeSlidesCloud
|
|
128
128
|
type_validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
129
129
|
return false unless type_validator.valid?(@type)
|
130
130
|
return false if @format.nil?
|
131
|
-
format_validator = EnumAttributeValidator.new('String', ['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp'])
|
131
|
+
format_validator = EnumAttributeValidator.new('String', ['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp'])
|
132
132
|
return false unless format_validator.valid?(@format)
|
133
133
|
true
|
134
134
|
end
|
@@ -146,7 +146,7 @@ module AsposeSlidesCloud
|
|
146
146
|
# Custom attribute writer method checking allowed values (enum).
|
147
147
|
# @param [Object] format Object to be assigned
|
148
148
|
def format=(format)
|
149
|
-
validator = EnumAttributeValidator.new('String', ['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp'])
|
149
|
+
validator = EnumAttributeValidator.new('String', ['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp'])
|
150
150
|
unless validator.valid?(format)
|
151
151
|
fail ArgumentError, 'invalid value for "format", must be one of #{validator.allowable_values}.'
|
152
152
|
end
|
@@ -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
|