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
@@ -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
|
@@ -147,15 +147,27 @@ module AsposeSlidesCloud
|
|
147
147
|
def build_from_hash(attributes)
|
148
148
|
return nil unless attributes.is_a?(Hash)
|
149
149
|
self.class.swagger_types.each_pair do |key, type|
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
if
|
154
|
-
|
150
|
+
mapKey = self.class.attribute_map[key]
|
151
|
+
if !mapKey.nil?
|
152
|
+
val = attributes[mapKey]
|
153
|
+
if val.nil?
|
154
|
+
mapKeyString = mapKey.to_s
|
155
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
156
|
+
mapKey = mapKeyString.to_sym
|
157
|
+
val = attributes[mapKey]
|
155
158
|
end
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
+
if !val.nil?
|
160
|
+
if type =~ /\AArray<(.*)>/i
|
161
|
+
# check to ensure the input is an array given that the the attribute
|
162
|
+
# is documented as an array but the input is not
|
163
|
+
if val.is_a?(Array)
|
164
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
165
|
+
end
|
166
|
+
else
|
167
|
+
self.send("#{key}=", _deserialize(type, val))
|
168
|
+
end
|
169
|
+
end
|
170
|
+
end
|
159
171
|
end
|
160
172
|
|
161
173
|
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
|
@@ -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
|
@@ -104,15 +104,27 @@ module AsposeSlidesCloud
|
|
104
104
|
def build_from_hash(attributes)
|
105
105
|
return nil unless attributes.is_a?(Hash)
|
106
106
|
self.class.swagger_types.each_pair do |key, type|
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
if
|
111
|
-
|
107
|
+
mapKey = self.class.attribute_map[key]
|
108
|
+
if !mapKey.nil?
|
109
|
+
val = attributes[mapKey]
|
110
|
+
if val.nil?
|
111
|
+
mapKeyString = mapKey.to_s
|
112
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
113
|
+
mapKey = mapKeyString.to_sym
|
114
|
+
val = attributes[mapKey]
|
112
115
|
end
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
+
if !val.nil?
|
117
|
+
if type =~ /\AArray<(.*)>/i
|
118
|
+
# check to ensure the input is an array given that the the attribute
|
119
|
+
# is documented as an array but the input is not
|
120
|
+
if val.is_a?(Array)
|
121
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
122
|
+
end
|
123
|
+
else
|
124
|
+
self.send("#{key}=", _deserialize(type, val))
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
116
128
|
end
|
117
129
|
|
118
130
|
self
|
@@ -126,15 +126,27 @@ module AsposeSlidesCloud
|
|
126
126
|
def build_from_hash(attributes)
|
127
127
|
return nil unless attributes.is_a?(Hash)
|
128
128
|
self.class.swagger_types.each_pair do |key, type|
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
if
|
133
|
-
|
129
|
+
mapKey = self.class.attribute_map[key]
|
130
|
+
if !mapKey.nil?
|
131
|
+
val = attributes[mapKey]
|
132
|
+
if val.nil?
|
133
|
+
mapKeyString = mapKey.to_s
|
134
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
135
|
+
mapKey = mapKeyString.to_sym
|
136
|
+
val = attributes[mapKey]
|
134
137
|
end
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
+
if !val.nil?
|
139
|
+
if type =~ /\AArray<(.*)>/i
|
140
|
+
# check to ensure the input is an array given that the the attribute
|
141
|
+
# is documented as an array but the input is not
|
142
|
+
if val.is_a?(Array)
|
143
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
144
|
+
end
|
145
|
+
else
|
146
|
+
self.send("#{key}=", _deserialize(type, val))
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
138
150
|
end
|
139
151
|
|
140
152
|
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
|
@@ -346,15 +346,27 @@ module AsposeSlidesCloud
|
|
346
346
|
def build_from_hash(attributes)
|
347
347
|
return nil unless attributes.is_a?(Hash)
|
348
348
|
self.class.swagger_types.each_pair do |key, type|
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
if
|
353
|
-
|
349
|
+
mapKey = self.class.attribute_map[key]
|
350
|
+
if !mapKey.nil?
|
351
|
+
val = attributes[mapKey]
|
352
|
+
if val.nil?
|
353
|
+
mapKeyString = mapKey.to_s
|
354
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
355
|
+
mapKey = mapKeyString.to_sym
|
356
|
+
val = attributes[mapKey]
|
354
357
|
end
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
+
if !val.nil?
|
359
|
+
if type =~ /\AArray<(.*)>/i
|
360
|
+
# check to ensure the input is an array given that the the attribute
|
361
|
+
# is documented as an array but the input is not
|
362
|
+
if val.is_a?(Array)
|
363
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
364
|
+
end
|
365
|
+
else
|
366
|
+
self.send("#{key}=", _deserialize(type, val))
|
367
|
+
end
|
368
|
+
end
|
369
|
+
end
|
358
370
|
end
|
359
371
|
|
360
372
|
self
|
@@ -99,15 +99,27 @@ module AsposeSlidesCloud
|
|
99
99
|
def build_from_hash(attributes)
|
100
100
|
return nil unless attributes.is_a?(Hash)
|
101
101
|
self.class.swagger_types.each_pair do |key, type|
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
if
|
106
|
-
|
102
|
+
mapKey = self.class.attribute_map[key]
|
103
|
+
if !mapKey.nil?
|
104
|
+
val = attributes[mapKey]
|
105
|
+
if val.nil?
|
106
|
+
mapKeyString = mapKey.to_s
|
107
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
108
|
+
mapKey = mapKeyString.to_sym
|
109
|
+
val = attributes[mapKey]
|
107
110
|
end
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
+
if !val.nil?
|
112
|
+
if type =~ /\AArray<(.*)>/i
|
113
|
+
# check to ensure the input is an array given that the the attribute
|
114
|
+
# is documented as an array but the input is not
|
115
|
+
if val.is_a?(Array)
|
116
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
117
|
+
end
|
118
|
+
else
|
119
|
+
self.send("#{key}=", _deserialize(type, val))
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
111
123
|
end
|
112
124
|
|
113
125
|
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 = "OneValue"
|
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
|
@@ -96,15 +96,27 @@ module AsposeSlidesCloud
|
|
96
96
|
def build_from_hash(attributes)
|
97
97
|
return nil unless attributes.is_a?(Hash)
|
98
98
|
self.class.swagger_types.each_pair do |key, type|
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
if
|
103
|
-
|
99
|
+
mapKey = self.class.attribute_map[key]
|
100
|
+
if !mapKey.nil?
|
101
|
+
val = attributes[mapKey]
|
102
|
+
if val.nil?
|
103
|
+
mapKeyString = mapKey.to_s
|
104
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
105
|
+
mapKey = mapKeyString.to_sym
|
106
|
+
val = attributes[mapKey]
|
104
107
|
end
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
+
if !val.nil?
|
109
|
+
if type =~ /\AArray<(.*)>/i
|
110
|
+
# check to ensure the input is an array given that the the attribute
|
111
|
+
# is documented as an array but the input is not
|
112
|
+
if val.is_a?(Array)
|
113
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
114
|
+
end
|
115
|
+
else
|
116
|
+
self.send("#{key}=", _deserialize(type, val))
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
108
120
|
end
|
109
121
|
|
110
122
|
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
|
@@ -127,15 +127,27 @@ module AsposeSlidesCloud
|
|
127
127
|
def build_from_hash(attributes)
|
128
128
|
return nil unless attributes.is_a?(Hash)
|
129
129
|
self.class.swagger_types.each_pair do |key, type|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
if
|
134
|
-
|
130
|
+
mapKey = self.class.attribute_map[key]
|
131
|
+
if !mapKey.nil?
|
132
|
+
val = attributes[mapKey]
|
133
|
+
if val.nil?
|
134
|
+
mapKeyString = mapKey.to_s
|
135
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
136
|
+
mapKey = mapKeyString.to_sym
|
137
|
+
val = attributes[mapKey]
|
135
138
|
end
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
+
if !val.nil?
|
140
|
+
if type =~ /\AArray<(.*)>/i
|
141
|
+
# check to ensure the input is an array given that the the attribute
|
142
|
+
# is documented as an array but the input is not
|
143
|
+
if val.is_a?(Array)
|
144
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
145
|
+
end
|
146
|
+
else
|
147
|
+
self.send("#{key}=", _deserialize(type, val))
|
148
|
+
end
|
149
|
+
end
|
150
|
+
end
|
139
151
|
end
|
140
152
|
|
141
153
|
self
|