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
@@ -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
|
@@ -146,15 +146,27 @@ module AsposeSlidesCloud
|
|
146
146
|
def build_from_hash(attributes)
|
147
147
|
return nil unless attributes.is_a?(Hash)
|
148
148
|
self.class.swagger_types.each_pair do |key, type|
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
if
|
153
|
-
|
149
|
+
mapKey = self.class.attribute_map[key]
|
150
|
+
if !mapKey.nil?
|
151
|
+
val = attributes[mapKey]
|
152
|
+
if val.nil?
|
153
|
+
mapKeyString = mapKey.to_s
|
154
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
155
|
+
mapKey = mapKeyString.to_sym
|
156
|
+
val = attributes[mapKey]
|
154
157
|
end
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
+
if !val.nil?
|
159
|
+
if type =~ /\AArray<(.*)>/i
|
160
|
+
# check to ensure the input is an array given that the the attribute
|
161
|
+
# is documented as an array but the input is not
|
162
|
+
if val.is_a?(Array)
|
163
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
164
|
+
end
|
165
|
+
else
|
166
|
+
self.send("#{key}=", _deserialize(type, val))
|
167
|
+
end
|
168
|
+
end
|
169
|
+
end
|
158
170
|
end
|
159
171
|
|
160
172
|
self
|
@@ -197,15 +197,27 @@ module AsposeSlidesCloud
|
|
197
197
|
def build_from_hash(attributes)
|
198
198
|
return nil unless attributes.is_a?(Hash)
|
199
199
|
self.class.swagger_types.each_pair do |key, type|
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
if
|
204
|
-
|
200
|
+
mapKey = self.class.attribute_map[key]
|
201
|
+
if !mapKey.nil?
|
202
|
+
val = attributes[mapKey]
|
203
|
+
if val.nil?
|
204
|
+
mapKeyString = mapKey.to_s
|
205
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
206
|
+
mapKey = mapKeyString.to_sym
|
207
|
+
val = attributes[mapKey]
|
205
208
|
end
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
+
if !val.nil?
|
210
|
+
if type =~ /\AArray<(.*)>/i
|
211
|
+
# check to ensure the input is an array given that the the attribute
|
212
|
+
# is documented as an array but the input is not
|
213
|
+
if val.is_a?(Array)
|
214
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
215
|
+
end
|
216
|
+
else
|
217
|
+
self.send("#{key}=", _deserialize(type, val))
|
218
|
+
end
|
219
|
+
end
|
220
|
+
end
|
209
221
|
end
|
210
222
|
|
211
223
|
self
|
@@ -118,15 +118,27 @@ module AsposeSlidesCloud
|
|
118
118
|
def build_from_hash(attributes)
|
119
119
|
return nil unless attributes.is_a?(Hash)
|
120
120
|
self.class.swagger_types.each_pair do |key, type|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
if
|
125
|
-
|
121
|
+
mapKey = self.class.attribute_map[key]
|
122
|
+
if !mapKey.nil?
|
123
|
+
val = attributes[mapKey]
|
124
|
+
if val.nil?
|
125
|
+
mapKeyString = mapKey.to_s
|
126
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
127
|
+
mapKey = mapKeyString.to_sym
|
128
|
+
val = attributes[mapKey]
|
126
129
|
end
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
+
if !val.nil?
|
131
|
+
if type =~ /\AArray<(.*)>/i
|
132
|
+
# check to ensure the input is an array given that the the attribute
|
133
|
+
# is documented as an array but the input is not
|
134
|
+
if val.is_a?(Array)
|
135
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
136
|
+
end
|
137
|
+
else
|
138
|
+
self.send("#{key}=", _deserialize(type, val))
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
130
142
|
end
|
131
143
|
|
132
144
|
self
|
@@ -139,15 +139,27 @@ module AsposeSlidesCloud
|
|
139
139
|
def build_from_hash(attributes)
|
140
140
|
return nil unless attributes.is_a?(Hash)
|
141
141
|
self.class.swagger_types.each_pair do |key, type|
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
if
|
146
|
-
|
142
|
+
mapKey = self.class.attribute_map[key]
|
143
|
+
if !mapKey.nil?
|
144
|
+
val = attributes[mapKey]
|
145
|
+
if val.nil?
|
146
|
+
mapKeyString = mapKey.to_s
|
147
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
148
|
+
mapKey = mapKeyString.to_sym
|
149
|
+
val = attributes[mapKey]
|
147
150
|
end
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
+
if !val.nil?
|
152
|
+
if type =~ /\AArray<(.*)>/i
|
153
|
+
# check to ensure the input is an array given that the the attribute
|
154
|
+
# is documented as an array but the input is not
|
155
|
+
if val.is_a?(Array)
|
156
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
157
|
+
end
|
158
|
+
else
|
159
|
+
self.send("#{key}=", _deserialize(type, val))
|
160
|
+
end
|
161
|
+
end
|
162
|
+
end
|
151
163
|
end
|
152
164
|
|
153
165
|
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
|
@@ -137,15 +137,27 @@ module AsposeSlidesCloud
|
|
137
137
|
def build_from_hash(attributes)
|
138
138
|
return nil unless attributes.is_a?(Hash)
|
139
139
|
self.class.swagger_types.each_pair do |key, type|
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
if
|
144
|
-
|
140
|
+
mapKey = self.class.attribute_map[key]
|
141
|
+
if !mapKey.nil?
|
142
|
+
val = attributes[mapKey]
|
143
|
+
if val.nil?
|
144
|
+
mapKeyString = mapKey.to_s
|
145
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
146
|
+
mapKey = mapKeyString.to_sym
|
147
|
+
val = attributes[mapKey]
|
145
148
|
end
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
+
if !val.nil?
|
150
|
+
if type =~ /\AArray<(.*)>/i
|
151
|
+
# check to ensure the input is an array given that the the attribute
|
152
|
+
# is documented as an array but the input is not
|
153
|
+
if val.is_a?(Array)
|
154
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
155
|
+
end
|
156
|
+
else
|
157
|
+
self.send("#{key}=", _deserialize(type, val))
|
158
|
+
end
|
159
|
+
end
|
160
|
+
end
|
149
161
|
end
|
150
162
|
|
151
163
|
self
|
@@ -111,15 +111,27 @@ module AsposeSlidesCloud
|
|
111
111
|
def build_from_hash(attributes)
|
112
112
|
return nil unless attributes.is_a?(Hash)
|
113
113
|
self.class.swagger_types.each_pair do |key, type|
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
if
|
118
|
-
|
114
|
+
mapKey = self.class.attribute_map[key]
|
115
|
+
if !mapKey.nil?
|
116
|
+
val = attributes[mapKey]
|
117
|
+
if val.nil?
|
118
|
+
mapKeyString = mapKey.to_s
|
119
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
120
|
+
mapKey = mapKeyString.to_sym
|
121
|
+
val = attributes[mapKey]
|
119
122
|
end
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
+
if !val.nil?
|
124
|
+
if type =~ /\AArray<(.*)>/i
|
125
|
+
# check to ensure the input is an array given that the the attribute
|
126
|
+
# is documented as an array but the input is not
|
127
|
+
if val.is_a?(Array)
|
128
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
129
|
+
end
|
130
|
+
else
|
131
|
+
self.send("#{key}=", _deserialize(type, val))
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
123
135
|
end
|
124
136
|
|
125
137
|
self
|
@@ -187,15 +187,27 @@ module AsposeSlidesCloud
|
|
187
187
|
def build_from_hash(attributes)
|
188
188
|
return nil unless attributes.is_a?(Hash)
|
189
189
|
self.class.swagger_types.each_pair do |key, type|
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
if
|
194
|
-
|
190
|
+
mapKey = self.class.attribute_map[key]
|
191
|
+
if !mapKey.nil?
|
192
|
+
val = attributes[mapKey]
|
193
|
+
if val.nil?
|
194
|
+
mapKeyString = mapKey.to_s
|
195
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
196
|
+
mapKey = mapKeyString.to_sym
|
197
|
+
val = attributes[mapKey]
|
195
198
|
end
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
+
if !val.nil?
|
200
|
+
if type =~ /\AArray<(.*)>/i
|
201
|
+
# check to ensure the input is an array given that the the attribute
|
202
|
+
# is documented as an array but the input is not
|
203
|
+
if val.is_a?(Array)
|
204
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
205
|
+
end
|
206
|
+
else
|
207
|
+
self.send("#{key}=", _deserialize(type, val))
|
208
|
+
end
|
209
|
+
end
|
210
|
+
end
|
199
211
|
end
|
200
212
|
|
201
213
|
self
|
@@ -118,15 +118,27 @@ module AsposeSlidesCloud
|
|
118
118
|
def build_from_hash(attributes)
|
119
119
|
return nil unless attributes.is_a?(Hash)
|
120
120
|
self.class.swagger_types.each_pair do |key, type|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
if
|
125
|
-
|
121
|
+
mapKey = self.class.attribute_map[key]
|
122
|
+
if !mapKey.nil?
|
123
|
+
val = attributes[mapKey]
|
124
|
+
if val.nil?
|
125
|
+
mapKeyString = mapKey.to_s
|
126
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
127
|
+
mapKey = mapKeyString.to_sym
|
128
|
+
val = attributes[mapKey]
|
126
129
|
end
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
+
if !val.nil?
|
131
|
+
if type =~ /\AArray<(.*)>/i
|
132
|
+
# check to ensure the input is an array given that the the attribute
|
133
|
+
# is documented as an array but the input is not
|
134
|
+
if val.is_a?(Array)
|
135
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
136
|
+
end
|
137
|
+
else
|
138
|
+
self.send("#{key}=", _deserialize(type, val))
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
130
142
|
end
|
131
143
|
|
132
144
|
self
|
@@ -208,15 +208,27 @@ module AsposeSlidesCloud
|
|
208
208
|
def build_from_hash(attributes)
|
209
209
|
return nil unless attributes.is_a?(Hash)
|
210
210
|
self.class.swagger_types.each_pair do |key, type|
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
if
|
215
|
-
|
211
|
+
mapKey = self.class.attribute_map[key]
|
212
|
+
if !mapKey.nil?
|
213
|
+
val = attributes[mapKey]
|
214
|
+
if val.nil?
|
215
|
+
mapKeyString = mapKey.to_s
|
216
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
217
|
+
mapKey = mapKeyString.to_sym
|
218
|
+
val = attributes[mapKey]
|
216
219
|
end
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
+
if !val.nil?
|
221
|
+
if type =~ /\AArray<(.*)>/i
|
222
|
+
# check to ensure the input is an array given that the the attribute
|
223
|
+
# is documented as an array but the input is not
|
224
|
+
if val.is_a?(Array)
|
225
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
226
|
+
end
|
227
|
+
else
|
228
|
+
self.send("#{key}=", _deserialize(type, val))
|
229
|
+
end
|
230
|
+
end
|
231
|
+
end
|
220
232
|
end
|
221
233
|
|
222
234
|
self
|
@@ -276,15 +276,27 @@ module AsposeSlidesCloud
|
|
276
276
|
def build_from_hash(attributes)
|
277
277
|
return nil unless attributes.is_a?(Hash)
|
278
278
|
self.class.swagger_types.each_pair do |key, type|
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
if
|
283
|
-
|
279
|
+
mapKey = self.class.attribute_map[key]
|
280
|
+
if !mapKey.nil?
|
281
|
+
val = attributes[mapKey]
|
282
|
+
if val.nil?
|
283
|
+
mapKeyString = mapKey.to_s
|
284
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
285
|
+
mapKey = mapKeyString.to_sym
|
286
|
+
val = attributes[mapKey]
|
284
287
|
end
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
+
if !val.nil?
|
289
|
+
if type =~ /\AArray<(.*)>/i
|
290
|
+
# check to ensure the input is an array given that the the attribute
|
291
|
+
# is documented as an array but the input is not
|
292
|
+
if val.is_a?(Array)
|
293
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
294
|
+
end
|
295
|
+
else
|
296
|
+
self.send("#{key}=", _deserialize(type, val))
|
297
|
+
end
|
298
|
+
end
|
299
|
+
end
|
288
300
|
end
|
289
301
|
|
290
302
|
self
|
@@ -140,15 +140,27 @@ module AsposeSlidesCloud
|
|
140
140
|
def build_from_hash(attributes)
|
141
141
|
return nil unless attributes.is_a?(Hash)
|
142
142
|
self.class.swagger_types.each_pair do |key, type|
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
if
|
147
|
-
|
143
|
+
mapKey = self.class.attribute_map[key]
|
144
|
+
if !mapKey.nil?
|
145
|
+
val = attributes[mapKey]
|
146
|
+
if val.nil?
|
147
|
+
mapKeyString = mapKey.to_s
|
148
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
149
|
+
mapKey = mapKeyString.to_sym
|
150
|
+
val = attributes[mapKey]
|
148
151
|
end
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
+
if !val.nil?
|
153
|
+
if type =~ /\AArray<(.*)>/i
|
154
|
+
# check to ensure the input is an array given that the the attribute
|
155
|
+
# is documented as an array but the input is not
|
156
|
+
if val.is_a?(Array)
|
157
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
158
|
+
end
|
159
|
+
else
|
160
|
+
self.send("#{key}=", _deserialize(type, val))
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
152
164
|
end
|
153
165
|
|
154
166
|
self
|