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
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -321,15 +321,27 @@ module AsposeSlidesCloud
|
|
321
321
|
def build_from_hash(attributes)
|
322
322
|
return nil unless attributes.is_a?(Hash)
|
323
323
|
self.class.swagger_types.each_pair do |key, type|
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
if
|
328
|
-
|
324
|
+
mapKey = self.class.attribute_map[key]
|
325
|
+
if !mapKey.nil?
|
326
|
+
val = attributes[mapKey]
|
327
|
+
if val.nil?
|
328
|
+
mapKeyString = mapKey.to_s
|
329
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
330
|
+
mapKey = mapKeyString.to_sym
|
331
|
+
val = attributes[mapKey]
|
329
332
|
end
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
+
if !val.nil?
|
334
|
+
if type =~ /\AArray<(.*)>/i
|
335
|
+
# check to ensure the input is an array given that the the attribute
|
336
|
+
# is documented as an array but the input is not
|
337
|
+
if val.is_a?(Array)
|
338
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
339
|
+
end
|
340
|
+
else
|
341
|
+
self.send("#{key}=", _deserialize(type, val))
|
342
|
+
end
|
343
|
+
end
|
344
|
+
end
|
333
345
|
end
|
334
346
|
|
335
347
|
self
|
@@ -157,15 +157,27 @@ module AsposeSlidesCloud
|
|
157
157
|
def build_from_hash(attributes)
|
158
158
|
return nil unless attributes.is_a?(Hash)
|
159
159
|
self.class.swagger_types.each_pair do |key, type|
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
if
|
164
|
-
|
160
|
+
mapKey = self.class.attribute_map[key]
|
161
|
+
if !mapKey.nil?
|
162
|
+
val = attributes[mapKey]
|
163
|
+
if val.nil?
|
164
|
+
mapKeyString = mapKey.to_s
|
165
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
166
|
+
mapKey = mapKeyString.to_sym
|
167
|
+
val = attributes[mapKey]
|
165
168
|
end
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
+
if !val.nil?
|
170
|
+
if type =~ /\AArray<(.*)>/i
|
171
|
+
# check to ensure the input is an array given that the the attribute
|
172
|
+
# is documented as an array but the input is not
|
173
|
+
if val.is_a?(Array)
|
174
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
175
|
+
end
|
176
|
+
else
|
177
|
+
self.send("#{key}=", _deserialize(type, val))
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
169
181
|
end
|
170
182
|
|
171
183
|
self
|
@@ -155,15 +155,27 @@ module AsposeSlidesCloud
|
|
155
155
|
def build_from_hash(attributes)
|
156
156
|
return nil unless attributes.is_a?(Hash)
|
157
157
|
self.class.swagger_types.each_pair do |key, type|
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
if
|
162
|
-
|
158
|
+
mapKey = self.class.attribute_map[key]
|
159
|
+
if !mapKey.nil?
|
160
|
+
val = attributes[mapKey]
|
161
|
+
if val.nil?
|
162
|
+
mapKeyString = mapKey.to_s
|
163
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
164
|
+
mapKey = mapKeyString.to_sym
|
165
|
+
val = attributes[mapKey]
|
163
166
|
end
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
+
if !val.nil?
|
168
|
+
if type =~ /\AArray<(.*)>/i
|
169
|
+
# check to ensure the input is an array given that the the attribute
|
170
|
+
# is documented as an array but the input is not
|
171
|
+
if val.is_a?(Array)
|
172
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
173
|
+
end
|
174
|
+
else
|
175
|
+
self.send("#{key}=", _deserialize(type, val))
|
176
|
+
end
|
177
|
+
end
|
178
|
+
end
|
167
179
|
end
|
168
180
|
|
169
181
|
self
|
@@ -442,15 +442,27 @@ module AsposeSlidesCloud
|
|
442
442
|
def build_from_hash(attributes)
|
443
443
|
return nil unless attributes.is_a?(Hash)
|
444
444
|
self.class.swagger_types.each_pair do |key, type|
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
if
|
449
|
-
|
445
|
+
mapKey = self.class.attribute_map[key]
|
446
|
+
if !mapKey.nil?
|
447
|
+
val = attributes[mapKey]
|
448
|
+
if val.nil?
|
449
|
+
mapKeyString = mapKey.to_s
|
450
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
451
|
+
mapKey = mapKeyString.to_sym
|
452
|
+
val = attributes[mapKey]
|
450
453
|
end
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
+
if !val.nil?
|
455
|
+
if type =~ /\AArray<(.*)>/i
|
456
|
+
# check to ensure the input is an array given that the the attribute
|
457
|
+
# is documented as an array but the input is not
|
458
|
+
if val.is_a?(Array)
|
459
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
460
|
+
end
|
461
|
+
else
|
462
|
+
self.send("#{key}=", _deserialize(type, val))
|
463
|
+
end
|
464
|
+
end
|
465
|
+
end
|
454
466
|
end
|
455
467
|
|
456
468
|
self
|
@@ -0,0 +1,379 @@
|
|
1
|
+
=begin
|
2
|
+
Copyright (c) 2019 Aspose Pty Ltd
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
12
|
+
copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
+
SOFTWARE.
|
21
|
+
=end
|
22
|
+
|
23
|
+
require 'date'
|
24
|
+
|
25
|
+
module AsposeSlidesCloud
|
26
|
+
# Slides document properties.
|
27
|
+
class ViewProperties
|
28
|
+
# Gets or sets the link to this resource.
|
29
|
+
attr_accessor :self_uri
|
30
|
+
|
31
|
+
# List of alternate links.
|
32
|
+
attr_accessor :alternate_links
|
33
|
+
|
34
|
+
# Last used view mode.
|
35
|
+
attr_accessor :last_view
|
36
|
+
|
37
|
+
# Horizontal bar state.
|
38
|
+
attr_accessor :horizontal_bar_state
|
39
|
+
|
40
|
+
# Vertical bar state.
|
41
|
+
attr_accessor :vertical_bar_state
|
42
|
+
|
43
|
+
# True to prefer single view.
|
44
|
+
attr_accessor :prefer_single_view
|
45
|
+
|
46
|
+
# The sizing of the side content region of the normal view, when the region is of a variable restored size.
|
47
|
+
attr_accessor :restored_left
|
48
|
+
|
49
|
+
# The sizing of the top slide region of the normal view, when the region is of a variable restored size.
|
50
|
+
attr_accessor :restored_top
|
51
|
+
|
52
|
+
# Slide view mode properties.
|
53
|
+
attr_accessor :slide_view_properties
|
54
|
+
|
55
|
+
# Notes view mode properties.
|
56
|
+
attr_accessor :notes_view_properties
|
57
|
+
|
58
|
+
# True if the comments should be shown.
|
59
|
+
attr_accessor :show_comments
|
60
|
+
|
61
|
+
class EnumAttributeValidator
|
62
|
+
attr_reader :datatype
|
63
|
+
attr_reader :allowable_values
|
64
|
+
|
65
|
+
def initialize(datatype, allowable_values)
|
66
|
+
@allowable_values = allowable_values.map do |value|
|
67
|
+
case datatype.to_s
|
68
|
+
when /Integer/i
|
69
|
+
value.to_i
|
70
|
+
when /Float/i
|
71
|
+
value.to_f
|
72
|
+
else
|
73
|
+
value
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
def valid?(value)
|
79
|
+
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
84
|
+
def self.attribute_map
|
85
|
+
{
|
86
|
+
:'self_uri' => :'SelfUri',
|
87
|
+
:'alternate_links' => :'AlternateLinks',
|
88
|
+
:'last_view' => :'LastView',
|
89
|
+
:'horizontal_bar_state' => :'HorizontalBarState',
|
90
|
+
:'vertical_bar_state' => :'VerticalBarState',
|
91
|
+
:'prefer_single_view' => :'PreferSingleView',
|
92
|
+
:'restored_left' => :'RestoredLeft',
|
93
|
+
:'restored_top' => :'RestoredTop',
|
94
|
+
:'slide_view_properties' => :'SlideViewProperties',
|
95
|
+
:'notes_view_properties' => :'NotesViewProperties',
|
96
|
+
:'show_comments' => :'ShowComments'
|
97
|
+
}
|
98
|
+
end
|
99
|
+
|
100
|
+
# Attribute type mapping.
|
101
|
+
def self.swagger_types
|
102
|
+
{
|
103
|
+
:'self_uri' => :'ResourceUri',
|
104
|
+
:'alternate_links' => :'Array<ResourceUri>',
|
105
|
+
:'last_view' => :'String',
|
106
|
+
:'horizontal_bar_state' => :'String',
|
107
|
+
:'vertical_bar_state' => :'String',
|
108
|
+
:'prefer_single_view' => :'BOOLEAN',
|
109
|
+
:'restored_left' => :'NormalViewRestoredProperties',
|
110
|
+
:'restored_top' => :'NormalViewRestoredProperties',
|
111
|
+
:'slide_view_properties' => :'CommonSlideViewProperties',
|
112
|
+
:'notes_view_properties' => :'CommonSlideViewProperties',
|
113
|
+
:'show_comments' => :'String'
|
114
|
+
}
|
115
|
+
end
|
116
|
+
|
117
|
+
# Initializes the object
|
118
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
119
|
+
def initialize(attributes = {})
|
120
|
+
return unless attributes.is_a?(Hash)
|
121
|
+
|
122
|
+
# convert string to symbol for hash key
|
123
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
124
|
+
|
125
|
+
if attributes.has_key?(:'SelfUri')
|
126
|
+
self.self_uri = attributes[:'SelfUri']
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.has_key?(:'AlternateLinks')
|
130
|
+
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
131
|
+
self.alternate_links = value
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
if attributes.has_key?(:'LastView')
|
136
|
+
self.last_view = attributes[:'LastView']
|
137
|
+
end
|
138
|
+
|
139
|
+
if attributes.has_key?(:'HorizontalBarState')
|
140
|
+
self.horizontal_bar_state = attributes[:'HorizontalBarState']
|
141
|
+
end
|
142
|
+
|
143
|
+
if attributes.has_key?(:'VerticalBarState')
|
144
|
+
self.vertical_bar_state = attributes[:'VerticalBarState']
|
145
|
+
end
|
146
|
+
|
147
|
+
if attributes.has_key?(:'PreferSingleView')
|
148
|
+
self.prefer_single_view = attributes[:'PreferSingleView']
|
149
|
+
end
|
150
|
+
|
151
|
+
if attributes.has_key?(:'RestoredLeft')
|
152
|
+
self.restored_left = attributes[:'RestoredLeft']
|
153
|
+
end
|
154
|
+
|
155
|
+
if attributes.has_key?(:'RestoredTop')
|
156
|
+
self.restored_top = attributes[:'RestoredTop']
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.has_key?(:'SlideViewProperties')
|
160
|
+
self.slide_view_properties = attributes[:'SlideViewProperties']
|
161
|
+
end
|
162
|
+
|
163
|
+
if attributes.has_key?(:'NotesViewProperties')
|
164
|
+
self.notes_view_properties = attributes[:'NotesViewProperties']
|
165
|
+
end
|
166
|
+
|
167
|
+
if attributes.has_key?(:'ShowComments')
|
168
|
+
self.show_comments = attributes[:'ShowComments']
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
173
|
+
# @return Array for valid properties with the reasons
|
174
|
+
def list_invalid_properties
|
175
|
+
invalid_properties = Array.new
|
176
|
+
invalid_properties
|
177
|
+
end
|
178
|
+
|
179
|
+
# Check to see if the all the properties in the model are valid
|
180
|
+
# @return true if the model is valid
|
181
|
+
def valid?
|
182
|
+
last_view_validator = EnumAttributeValidator.new('String', ['NotDefined', 'SlideView', 'SlideMasterView', 'NotesView', 'HandoutView', 'NotesMasterView', 'OutlineView', 'SlideSorterView', 'SlideThumbnailView'])
|
183
|
+
return false unless last_view_validator.valid?(@last_view)
|
184
|
+
horizontal_bar_state_validator = EnumAttributeValidator.new('String', ['Minimized', 'Restored', 'Maximized'])
|
185
|
+
return false unless horizontal_bar_state_validator.valid?(@horizontal_bar_state)
|
186
|
+
vertical_bar_state_validator = EnumAttributeValidator.new('String', ['Minimized', 'Restored', 'Maximized'])
|
187
|
+
return false unless vertical_bar_state_validator.valid?(@vertical_bar_state)
|
188
|
+
show_comments_validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
|
189
|
+
return false unless show_comments_validator.valid?(@show_comments)
|
190
|
+
true
|
191
|
+
end
|
192
|
+
|
193
|
+
# Custom attribute writer method checking allowed values (enum).
|
194
|
+
# @param [Object] last_view Object to be assigned
|
195
|
+
def last_view=(last_view)
|
196
|
+
validator = EnumAttributeValidator.new('String', ['NotDefined', 'SlideView', 'SlideMasterView', 'NotesView', 'HandoutView', 'NotesMasterView', 'OutlineView', 'SlideSorterView', 'SlideThumbnailView'])
|
197
|
+
unless validator.valid?(last_view)
|
198
|
+
fail ArgumentError, 'invalid value for "last_view", must be one of #{validator.allowable_values}.'
|
199
|
+
end
|
200
|
+
@last_view = last_view
|
201
|
+
end
|
202
|
+
|
203
|
+
# Custom attribute writer method checking allowed values (enum).
|
204
|
+
# @param [Object] horizontal_bar_state Object to be assigned
|
205
|
+
def horizontal_bar_state=(horizontal_bar_state)
|
206
|
+
validator = EnumAttributeValidator.new('String', ['Minimized', 'Restored', 'Maximized'])
|
207
|
+
unless validator.valid?(horizontal_bar_state)
|
208
|
+
fail ArgumentError, 'invalid value for "horizontal_bar_state", must be one of #{validator.allowable_values}.'
|
209
|
+
end
|
210
|
+
@horizontal_bar_state = horizontal_bar_state
|
211
|
+
end
|
212
|
+
|
213
|
+
# Custom attribute writer method checking allowed values (enum).
|
214
|
+
# @param [Object] vertical_bar_state Object to be assigned
|
215
|
+
def vertical_bar_state=(vertical_bar_state)
|
216
|
+
validator = EnumAttributeValidator.new('String', ['Minimized', 'Restored', 'Maximized'])
|
217
|
+
unless validator.valid?(vertical_bar_state)
|
218
|
+
fail ArgumentError, 'invalid value for "vertical_bar_state", must be one of #{validator.allowable_values}.'
|
219
|
+
end
|
220
|
+
@vertical_bar_state = vertical_bar_state
|
221
|
+
end
|
222
|
+
|
223
|
+
# Custom attribute writer method checking allowed values (enum).
|
224
|
+
# @param [Object] show_comments Object to be assigned
|
225
|
+
def show_comments=(show_comments)
|
226
|
+
validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
|
227
|
+
unless validator.valid?(show_comments)
|
228
|
+
fail ArgumentError, 'invalid value for "show_comments", must be one of #{validator.allowable_values}.'
|
229
|
+
end
|
230
|
+
@show_comments = show_comments
|
231
|
+
end
|
232
|
+
|
233
|
+
# Checks equality by comparing each attribute.
|
234
|
+
# @param [Object] Object to be compared
|
235
|
+
def ==(o)
|
236
|
+
return true if self.equal?(o)
|
237
|
+
self.class == o.class &&
|
238
|
+
self_uri == o.self_uri &&
|
239
|
+
alternate_links == o.alternate_links &&
|
240
|
+
last_view == o.last_view &&
|
241
|
+
horizontal_bar_state == o.horizontal_bar_state &&
|
242
|
+
vertical_bar_state == o.vertical_bar_state &&
|
243
|
+
prefer_single_view == o.prefer_single_view &&
|
244
|
+
restored_left == o.restored_left &&
|
245
|
+
restored_top == o.restored_top &&
|
246
|
+
slide_view_properties == o.slide_view_properties &&
|
247
|
+
notes_view_properties == o.notes_view_properties &&
|
248
|
+
show_comments == o.show_comments
|
249
|
+
end
|
250
|
+
|
251
|
+
# @see the `==` method
|
252
|
+
# @param [Object] Object to be compared
|
253
|
+
def eql?(o)
|
254
|
+
self == o
|
255
|
+
end
|
256
|
+
|
257
|
+
# Calculates hash code according to all attributes.
|
258
|
+
# @return [Fixnum] Hash code
|
259
|
+
def hash
|
260
|
+
[self_uri, alternate_links, last_view, horizontal_bar_state, vertical_bar_state, prefer_single_view, restored_left, restored_top, slide_view_properties, notes_view_properties, show_comments].hash
|
261
|
+
end
|
262
|
+
|
263
|
+
# Builds the object from hash
|
264
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
265
|
+
# @return [Object] Returns the model itself
|
266
|
+
def build_from_hash(attributes)
|
267
|
+
return nil unless attributes.is_a?(Hash)
|
268
|
+
self.class.swagger_types.each_pair do |key, type|
|
269
|
+
mapKey = self.class.attribute_map[key]
|
270
|
+
if !mapKey.nil?
|
271
|
+
val = attributes[mapKey]
|
272
|
+
if val.nil?
|
273
|
+
mapKeyString = mapKey.to_s
|
274
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
275
|
+
mapKey = mapKeyString.to_sym
|
276
|
+
val = attributes[mapKey]
|
277
|
+
end
|
278
|
+
if !val.nil?
|
279
|
+
if type =~ /\AArray<(.*)>/i
|
280
|
+
# check to ensure the input is an array given that the the attribute
|
281
|
+
# is documented as an array but the input is not
|
282
|
+
if val.is_a?(Array)
|
283
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
284
|
+
end
|
285
|
+
else
|
286
|
+
self.send("#{key}=", _deserialize(type, val))
|
287
|
+
end
|
288
|
+
end
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
292
|
+
self
|
293
|
+
end
|
294
|
+
|
295
|
+
# Deserializes the data based on type
|
296
|
+
# @param string type Data type
|
297
|
+
# @param string value Value to be deserialized
|
298
|
+
# @return [Object] Deserialized data
|
299
|
+
def _deserialize(type, value)
|
300
|
+
case type.to_sym
|
301
|
+
when :DateTime
|
302
|
+
DateTime.parse(value)
|
303
|
+
when :Date
|
304
|
+
Date.parse(value)
|
305
|
+
when :String
|
306
|
+
value.to_s
|
307
|
+
when :Integer
|
308
|
+
value.to_i
|
309
|
+
when :Float
|
310
|
+
value.to_f
|
311
|
+
when :BOOLEAN
|
312
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
313
|
+
true
|
314
|
+
else
|
315
|
+
false
|
316
|
+
end
|
317
|
+
when :Object
|
318
|
+
# generic object (usually a Hash), return directly
|
319
|
+
value
|
320
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
321
|
+
inner_type = Regexp.last_match[:inner_type]
|
322
|
+
value.map { |v| _deserialize(inner_type, v) }
|
323
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
324
|
+
k_type = Regexp.last_match[:k_type]
|
325
|
+
v_type = Regexp.last_match[:v_type]
|
326
|
+
{}.tap do |hash|
|
327
|
+
value.each do |k, v|
|
328
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
329
|
+
end
|
330
|
+
end
|
331
|
+
else # model
|
332
|
+
temp_model = AsposeSlidesCloud.const_get(type).new
|
333
|
+
temp_model.build_from_hash(value)
|
334
|
+
end
|
335
|
+
end
|
336
|
+
|
337
|
+
# Returns the string representation of the object
|
338
|
+
# @return [String] String presentation of the object
|
339
|
+
def to_s
|
340
|
+
to_hash.to_s
|
341
|
+
end
|
342
|
+
|
343
|
+
# to_body is an alias to to_hash (backward compatibility)
|
344
|
+
# @return [Hash] Returns the object in the form of hash
|
345
|
+
def to_body
|
346
|
+
to_hash
|
347
|
+
end
|
348
|
+
|
349
|
+
# Returns the object in the form of hash
|
350
|
+
# @return [Hash] Returns the object in the form of hash
|
351
|
+
def to_hash
|
352
|
+
hash = {}
|
353
|
+
self.class.attribute_map.each_pair do |attr, param|
|
354
|
+
value = self.send(attr)
|
355
|
+
next if value.nil?
|
356
|
+
hash[param] = _to_hash(value)
|
357
|
+
end
|
358
|
+
hash
|
359
|
+
end
|
360
|
+
|
361
|
+
# Outputs non-array value in the form of hash
|
362
|
+
# For object, use to_hash. Otherwise, just return the value
|
363
|
+
# @param [Object] value Any valid value
|
364
|
+
# @return [Hash] Returns the value in the form of hash
|
365
|
+
def _to_hash(value)
|
366
|
+
if value.is_a?(Array)
|
367
|
+
value.compact.map { |v| _to_hash(v) }
|
368
|
+
elsif value.is_a?(Hash)
|
369
|
+
{}.tap do |hash|
|
370
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
371
|
+
end
|
372
|
+
elsif value.respond_to? :to_hash
|
373
|
+
value.to_hash
|
374
|
+
else
|
375
|
+
value
|
376
|
+
end
|
377
|
+
end
|
378
|
+
end
|
379
|
+
end
|