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
@@ -34,6 +34,9 @@ module AsposeSlidesCloud
|
|
34
34
|
# Link to Document properties.
|
35
35
|
attr_accessor :document_properties
|
36
36
|
|
37
|
+
# Link to Document properties.
|
38
|
+
attr_accessor :view_properties
|
39
|
+
|
37
40
|
# Link to slides collection.
|
38
41
|
attr_accessor :slides
|
39
42
|
|
@@ -52,6 +55,7 @@ module AsposeSlidesCloud
|
|
52
55
|
:'self_uri' => :'SelfUri',
|
53
56
|
:'alternate_links' => :'AlternateLinks',
|
54
57
|
:'document_properties' => :'DocumentProperties',
|
58
|
+
:'view_properties' => :'ViewProperties',
|
55
59
|
:'slides' => :'Slides',
|
56
60
|
:'images' => :'Images',
|
57
61
|
:'layout_slides' => :'LayoutSlides',
|
@@ -65,6 +69,7 @@ module AsposeSlidesCloud
|
|
65
69
|
:'self_uri' => :'ResourceUri',
|
66
70
|
:'alternate_links' => :'Array<ResourceUri>',
|
67
71
|
:'document_properties' => :'ResourceUriElement',
|
72
|
+
:'view_properties' => :'ResourceUriElement',
|
68
73
|
:'slides' => :'ResourceUriElement',
|
69
74
|
:'images' => :'ResourceUriElement',
|
70
75
|
:'layout_slides' => :'ResourceUriElement',
|
@@ -94,6 +99,10 @@ module AsposeSlidesCloud
|
|
94
99
|
self.document_properties = attributes[:'DocumentProperties']
|
95
100
|
end
|
96
101
|
|
102
|
+
if attributes.has_key?(:'ViewProperties')
|
103
|
+
self.view_properties = attributes[:'ViewProperties']
|
104
|
+
end
|
105
|
+
|
97
106
|
if attributes.has_key?(:'Slides')
|
98
107
|
self.slides = attributes[:'Slides']
|
99
108
|
end
|
@@ -132,6 +141,7 @@ module AsposeSlidesCloud
|
|
132
141
|
self_uri == o.self_uri &&
|
133
142
|
alternate_links == o.alternate_links &&
|
134
143
|
document_properties == o.document_properties &&
|
144
|
+
view_properties == o.view_properties &&
|
135
145
|
slides == o.slides &&
|
136
146
|
images == o.images &&
|
137
147
|
layout_slides == o.layout_slides &&
|
@@ -147,7 +157,7 @@ module AsposeSlidesCloud
|
|
147
157
|
# Calculates hash code according to all attributes.
|
148
158
|
# @return [Fixnum] Hash code
|
149
159
|
def hash
|
150
|
-
[self_uri, alternate_links, document_properties, slides, images, layout_slides, master_slides].hash
|
160
|
+
[self_uri, alternate_links, document_properties, view_properties, slides, images, layout_slides, master_slides].hash
|
151
161
|
end
|
152
162
|
|
153
163
|
# Builds the object from hash
|
@@ -156,15 +166,27 @@ module AsposeSlidesCloud
|
|
156
166
|
def build_from_hash(attributes)
|
157
167
|
return nil unless attributes.is_a?(Hash)
|
158
168
|
self.class.swagger_types.each_pair do |key, type|
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
if
|
163
|
-
|
169
|
+
mapKey = self.class.attribute_map[key]
|
170
|
+
if !mapKey.nil?
|
171
|
+
val = attributes[mapKey]
|
172
|
+
if val.nil?
|
173
|
+
mapKeyString = mapKey.to_s
|
174
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
175
|
+
mapKey = mapKeyString.to_sym
|
176
|
+
val = attributes[mapKey]
|
177
|
+
end
|
178
|
+
if !val.nil?
|
179
|
+
if type =~ /\AArray<(.*)>/i
|
180
|
+
# check to ensure the input is an array given that the the attribute
|
181
|
+
# is documented as an array but the input is not
|
182
|
+
if val.is_a?(Array)
|
183
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
184
|
+
end
|
185
|
+
else
|
186
|
+
self.send("#{key}=", _deserialize(type, val))
|
187
|
+
end
|
164
188
|
end
|
165
|
-
|
166
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
167
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
189
|
+
end
|
168
190
|
end
|
169
191
|
|
170
192
|
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
|
@@ -141,15 +141,27 @@ module AsposeSlidesCloud
|
|
141
141
|
def build_from_hash(attributes)
|
142
142
|
return nil unless attributes.is_a?(Hash)
|
143
143
|
self.class.swagger_types.each_pair do |key, type|
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
if
|
148
|
-
|
144
|
+
mapKey = self.class.attribute_map[key]
|
145
|
+
if !mapKey.nil?
|
146
|
+
val = attributes[mapKey]
|
147
|
+
if val.nil?
|
148
|
+
mapKeyString = mapKey.to_s
|
149
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
150
|
+
mapKey = mapKeyString.to_sym
|
151
|
+
val = attributes[mapKey]
|
149
152
|
end
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
+
if !val.nil?
|
154
|
+
if type =~ /\AArray<(.*)>/i
|
155
|
+
# check to ensure the input is an array given that the the attribute
|
156
|
+
# is documented as an array but the input is not
|
157
|
+
if val.is_a?(Array)
|
158
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
159
|
+
end
|
160
|
+
else
|
161
|
+
self.send("#{key}=", _deserialize(type, val))
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|
153
165
|
end
|
154
166
|
|
155
167
|
self
|
@@ -34,6 +34,9 @@ module AsposeSlidesCloud
|
|
34
34
|
# Link to Document properties.
|
35
35
|
attr_accessor :document_properties
|
36
36
|
|
37
|
+
# Link to Document properties.
|
38
|
+
attr_accessor :view_properties
|
39
|
+
|
37
40
|
# Link to slides collection.
|
38
41
|
attr_accessor :slides
|
39
42
|
|
@@ -55,6 +58,7 @@ module AsposeSlidesCloud
|
|
55
58
|
:'self_uri' => :'SelfUri',
|
56
59
|
:'alternate_links' => :'AlternateLinks',
|
57
60
|
:'document_properties' => :'DocumentProperties',
|
61
|
+
:'view_properties' => :'ViewProperties',
|
58
62
|
:'slides' => :'Slides',
|
59
63
|
:'images' => :'Images',
|
60
64
|
:'layout_slides' => :'LayoutSlides',
|
@@ -69,6 +73,7 @@ module AsposeSlidesCloud
|
|
69
73
|
:'self_uri' => :'ResourceUri',
|
70
74
|
:'alternate_links' => :'Array<ResourceUri>',
|
71
75
|
:'document_properties' => :'ResourceUriElement',
|
76
|
+
:'view_properties' => :'ResourceUriElement',
|
72
77
|
:'slides' => :'ResourceUriElement',
|
73
78
|
:'images' => :'ResourceUriElement',
|
74
79
|
:'layout_slides' => :'ResourceUriElement',
|
@@ -99,6 +104,10 @@ module AsposeSlidesCloud
|
|
99
104
|
self.document_properties = attributes[:'DocumentProperties']
|
100
105
|
end
|
101
106
|
|
107
|
+
if attributes.has_key?(:'ViewProperties')
|
108
|
+
self.view_properties = attributes[:'ViewProperties']
|
109
|
+
end
|
110
|
+
|
102
111
|
if attributes.has_key?(:'Slides')
|
103
112
|
self.slides = attributes[:'Slides']
|
104
113
|
end
|
@@ -146,6 +155,7 @@ module AsposeSlidesCloud
|
|
146
155
|
self_uri == o.self_uri &&
|
147
156
|
alternate_links == o.alternate_links &&
|
148
157
|
document_properties == o.document_properties &&
|
158
|
+
view_properties == o.view_properties &&
|
149
159
|
slides == o.slides &&
|
150
160
|
images == o.images &&
|
151
161
|
layout_slides == o.layout_slides &&
|
@@ -162,7 +172,7 @@ module AsposeSlidesCloud
|
|
162
172
|
# Calculates hash code according to all attributes.
|
163
173
|
# @return [Fixnum] Hash code
|
164
174
|
def hash
|
165
|
-
[self_uri, alternate_links, document_properties, slides, images, layout_slides, master_slides, matches].hash
|
175
|
+
[self_uri, alternate_links, document_properties, view_properties, slides, images, layout_slides, master_slides, matches].hash
|
166
176
|
end
|
167
177
|
|
168
178
|
# Builds the object from hash
|
@@ -171,15 +181,27 @@ module AsposeSlidesCloud
|
|
171
181
|
def build_from_hash(attributes)
|
172
182
|
return nil unless attributes.is_a?(Hash)
|
173
183
|
self.class.swagger_types.each_pair do |key, type|
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
if
|
178
|
-
|
184
|
+
mapKey = self.class.attribute_map[key]
|
185
|
+
if !mapKey.nil?
|
186
|
+
val = attributes[mapKey]
|
187
|
+
if val.nil?
|
188
|
+
mapKeyString = mapKey.to_s
|
189
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
190
|
+
mapKey = mapKeyString.to_sym
|
191
|
+
val = attributes[mapKey]
|
192
|
+
end
|
193
|
+
if !val.nil?
|
194
|
+
if type =~ /\AArray<(.*)>/i
|
195
|
+
# check to ensure the input is an array given that the the attribute
|
196
|
+
# is documented as an array but the input is not
|
197
|
+
if val.is_a?(Array)
|
198
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
199
|
+
end
|
200
|
+
else
|
201
|
+
self.send("#{key}=", _deserialize(type, val))
|
202
|
+
end
|
179
203
|
end
|
180
|
-
|
181
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
182
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
204
|
+
end
|
183
205
|
end
|
184
206
|
|
185
207
|
self
|
@@ -311,15 +311,27 @@ module AsposeSlidesCloud
|
|
311
311
|
def build_from_hash(attributes)
|
312
312
|
return nil unless attributes.is_a?(Hash)
|
313
313
|
self.class.swagger_types.each_pair do |key, type|
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
if
|
318
|
-
|
314
|
+
mapKey = self.class.attribute_map[key]
|
315
|
+
if !mapKey.nil?
|
316
|
+
val = attributes[mapKey]
|
317
|
+
if val.nil?
|
318
|
+
mapKeyString = mapKey.to_s
|
319
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
320
|
+
mapKey = mapKeyString.to_sym
|
321
|
+
val = attributes[mapKey]
|
319
322
|
end
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
+
if !val.nil?
|
324
|
+
if type =~ /\AArray<(.*)>/i
|
325
|
+
# check to ensure the input is an array given that the the attribute
|
326
|
+
# is documented as an array but the input is not
|
327
|
+
if val.is_a?(Array)
|
328
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
329
|
+
end
|
330
|
+
else
|
331
|
+
self.send("#{key}=", _deserialize(type, val))
|
332
|
+
end
|
333
|
+
end
|
334
|
+
end
|
323
335
|
end
|
324
336
|
|
325
337
|
self
|
@@ -164,15 +164,27 @@ module AsposeSlidesCloud
|
|
164
164
|
def build_from_hash(attributes)
|
165
165
|
return nil unless attributes.is_a?(Hash)
|
166
166
|
self.class.swagger_types.each_pair do |key, type|
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
if
|
171
|
-
|
167
|
+
mapKey = self.class.attribute_map[key]
|
168
|
+
if !mapKey.nil?
|
169
|
+
val = attributes[mapKey]
|
170
|
+
if val.nil?
|
171
|
+
mapKeyString = mapKey.to_s
|
172
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
173
|
+
mapKey = mapKeyString.to_sym
|
174
|
+
val = attributes[mapKey]
|
172
175
|
end
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
+
if !val.nil?
|
177
|
+
if type =~ /\AArray<(.*)>/i
|
178
|
+
# check to ensure the input is an array given that the the attribute
|
179
|
+
# is documented as an array but the input is not
|
180
|
+
if val.is_a?(Array)
|
181
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
182
|
+
end
|
183
|
+
else
|
184
|
+
self.send("#{key}=", _deserialize(type, val))
|
185
|
+
end
|
186
|
+
end
|
187
|
+
end
|
176
188
|
end
|
177
189
|
|
178
190
|
self
|
@@ -0,0 +1,212 @@
|
|
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
|
+
# Information about object existence.
|
27
|
+
class EntityExists
|
28
|
+
# True if the object exists.
|
29
|
+
attr_accessor :exists
|
30
|
+
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
32
|
+
def self.attribute_map
|
33
|
+
{
|
34
|
+
:'exists' => :'Exists'
|
35
|
+
}
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.swagger_types
|
40
|
+
{
|
41
|
+
:'exists' => :'BOOLEAN'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
47
|
+
def initialize(attributes = {})
|
48
|
+
return unless attributes.is_a?(Hash)
|
49
|
+
|
50
|
+
# convert string to symbol for hash key
|
51
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
52
|
+
|
53
|
+
if attributes.has_key?(:'Exists')
|
54
|
+
self.exists = attributes[:'Exists']
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
59
|
+
# @return Array for valid properties with the reasons
|
60
|
+
def list_invalid_properties
|
61
|
+
invalid_properties = Array.new
|
62
|
+
if @exists.nil?
|
63
|
+
invalid_properties.push('invalid value for "exists", exists cannot be nil.')
|
64
|
+
end
|
65
|
+
|
66
|
+
invalid_properties
|
67
|
+
end
|
68
|
+
|
69
|
+
# Check to see if the all the properties in the model are valid
|
70
|
+
# @return true if the model is valid
|
71
|
+
def valid?
|
72
|
+
return false if @exists.nil?
|
73
|
+
true
|
74
|
+
end
|
75
|
+
|
76
|
+
# Checks equality by comparing each attribute.
|
77
|
+
# @param [Object] Object to be compared
|
78
|
+
def ==(o)
|
79
|
+
return true if self.equal?(o)
|
80
|
+
self.class == o.class &&
|
81
|
+
exists == o.exists
|
82
|
+
end
|
83
|
+
|
84
|
+
# @see the `==` method
|
85
|
+
# @param [Object] Object to be compared
|
86
|
+
def eql?(o)
|
87
|
+
self == o
|
88
|
+
end
|
89
|
+
|
90
|
+
# Calculates hash code according to all attributes.
|
91
|
+
# @return [Fixnum] Hash code
|
92
|
+
def hash
|
93
|
+
[exists].hash
|
94
|
+
end
|
95
|
+
|
96
|
+
# Builds the object from hash
|
97
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
98
|
+
# @return [Object] Returns the model itself
|
99
|
+
def build_from_hash(attributes)
|
100
|
+
return nil unless attributes.is_a?(Hash)
|
101
|
+
self.class.swagger_types.each_pair do |key, type|
|
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]
|
110
|
+
end
|
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
|
123
|
+
end
|
124
|
+
|
125
|
+
self
|
126
|
+
end
|
127
|
+
|
128
|
+
# Deserializes the data based on type
|
129
|
+
# @param string type Data type
|
130
|
+
# @param string value Value to be deserialized
|
131
|
+
# @return [Object] Deserialized data
|
132
|
+
def _deserialize(type, value)
|
133
|
+
case type.to_sym
|
134
|
+
when :DateTime
|
135
|
+
DateTime.parse(value)
|
136
|
+
when :Date
|
137
|
+
Date.parse(value)
|
138
|
+
when :String
|
139
|
+
value.to_s
|
140
|
+
when :Integer
|
141
|
+
value.to_i
|
142
|
+
when :Float
|
143
|
+
value.to_f
|
144
|
+
when :BOOLEAN
|
145
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
146
|
+
true
|
147
|
+
else
|
148
|
+
false
|
149
|
+
end
|
150
|
+
when :Object
|
151
|
+
# generic object (usually a Hash), return directly
|
152
|
+
value
|
153
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
154
|
+
inner_type = Regexp.last_match[:inner_type]
|
155
|
+
value.map { |v| _deserialize(inner_type, v) }
|
156
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
157
|
+
k_type = Regexp.last_match[:k_type]
|
158
|
+
v_type = Regexp.last_match[:v_type]
|
159
|
+
{}.tap do |hash|
|
160
|
+
value.each do |k, v|
|
161
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
162
|
+
end
|
163
|
+
end
|
164
|
+
else # model
|
165
|
+
temp_model = AsposeSlidesCloud.const_get(type).new
|
166
|
+
temp_model.build_from_hash(value)
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
# Returns the string representation of the object
|
171
|
+
# @return [String] String presentation of the object
|
172
|
+
def to_s
|
173
|
+
to_hash.to_s
|
174
|
+
end
|
175
|
+
|
176
|
+
# to_body is an alias to to_hash (backward compatibility)
|
177
|
+
# @return [Hash] Returns the object in the form of hash
|
178
|
+
def to_body
|
179
|
+
to_hash
|
180
|
+
end
|
181
|
+
|
182
|
+
# Returns the object in the form of hash
|
183
|
+
# @return [Hash] Returns the object in the form of hash
|
184
|
+
def to_hash
|
185
|
+
hash = {}
|
186
|
+
self.class.attribute_map.each_pair do |attr, param|
|
187
|
+
value = self.send(attr)
|
188
|
+
next if value.nil?
|
189
|
+
hash[param] = _to_hash(value)
|
190
|
+
end
|
191
|
+
hash
|
192
|
+
end
|
193
|
+
|
194
|
+
# Outputs non-array value in the form of hash
|
195
|
+
# For object, use to_hash. Otherwise, just return the value
|
196
|
+
# @param [Object] value Any valid value
|
197
|
+
# @return [Hash] Returns the value in the form of hash
|
198
|
+
def _to_hash(value)
|
199
|
+
if value.is_a?(Array)
|
200
|
+
value.compact.map { |v| _to_hash(v) }
|
201
|
+
elsif value.is_a?(Hash)
|
202
|
+
{}.tap do |hash|
|
203
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
204
|
+
end
|
205
|
+
elsif value.respond_to? :to_hash
|
206
|
+
value.to_hash
|
207
|
+
else
|
208
|
+
value
|
209
|
+
end
|
210
|
+
end
|
211
|
+
end
|
212
|
+
end
|