aspose_slides_cloud 20.6.0 → 21.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/TestData/ChartTest.pptx +0 -0
- data/TestData/Sections.pptx +0 -0
- data/TestData/test-unprotected.pptx +0 -0
- data/TestData/test.pptx +0 -0
- data/lib/aspose_slides_cloud.rb +13 -5
- data/lib/aspose_slides_cloud/api/slides_api.rb +2432 -691
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +609 -31
- data/lib/aspose_slides_cloud/api_client.rb +30 -24
- data/lib/aspose_slides_cloud/configuration.rb +7 -2
- data/lib/aspose_slides_cloud/models/add_layout_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/add_master_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/add_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/add_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/api_info.rb +22 -10
- data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +22 -10
- data/lib/aspose_slides_cloud/models/audio_frame.rb +32 -246
- data/lib/aspose_slides_cloud/models/axes.rb +22 -10
- data/lib/aspose_slides_cloud/models/axis.rb +22 -10
- data/lib/aspose_slides_cloud/models/base64_input_file.rb +31 -57
- data/lib/aspose_slides_cloud/models/blur_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +31 -222
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +30 -48
- data/lib/aspose_slides_cloud/models/bubble_series.rb +31 -211
- data/lib/aspose_slides_cloud/models/chart.rb +32 -220
- data/lib/aspose_slides_cloud/models/chart_category.rb +54 -20
- data/lib/aspose_slides_cloud/models/chart_title.rb +22 -10
- data/lib/aspose_slides_cloud/models/chart_wall.rb +22 -10
- data/lib/aspose_slides_cloud/models/color_scheme.rb +30 -40
- data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +22 -10
- data/lib/aspose_slides_cloud/models/connector.rb +32 -244
- data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +22 -10
- data/lib/aspose_slides_cloud/models/{resource_uri_element.rb → data_point.rb} +24 -22
- data/lib/aspose_slides_cloud/models/disc_usage.rb +22 -10
- data/lib/aspose_slides_cloud/models/document.rb +35 -45
- data/lib/aspose_slides_cloud/models/document_properties.rb +30 -40
- data/lib/aspose_slides_cloud/models/document_property.rb +30 -40
- data/lib/aspose_slides_cloud/models/document_replace_result.rb +30 -94
- data/lib/aspose_slides_cloud/models/effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/effect_format.rb +22 -10
- data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
- data/lib/aspose_slides_cloud/models/error.rb +22 -10
- data/lib/aspose_slides_cloud/models/error_details.rb +22 -10
- data/lib/aspose_slides_cloud/models/export_options.rb +33 -11
- data/lib/aspose_slides_cloud/models/file_version.rb +30 -75
- data/lib/aspose_slides_cloud/models/file_versions.rb +22 -10
- data/lib/aspose_slides_cloud/models/files_list.rb +22 -10
- data/lib/aspose_slides_cloud/models/files_upload_result.rb +22 -10
- data/lib/aspose_slides_cloud/models/fill_format.rb +22 -10
- data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/font_scheme.rb +30 -40
- data/lib/aspose_slides_cloud/models/font_set.rb +22 -10
- data/lib/aspose_slides_cloud/models/format_scheme.rb +30 -40
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +33 -212
- data/lib/aspose_slides_cloud/models/glow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/gradient_fill.rb +31 -48
- data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +22 -10
- data/lib/aspose_slides_cloud/models/graphical_object.rb +31 -219
- data/lib/aspose_slides_cloud/models/group_shape.rb +31 -219
- data/lib/aspose_slides_cloud/models/header_footer.rb +247 -0
- data/lib/aspose_slides_cloud/models/html_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +22 -20
- data/lib/aspose_slides_cloud/models/image.rb +30 -40
- data/lib/aspose_slides_cloud/models/image_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/images.rb +30 -40
- data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/input.rb +22 -10
- data/lib/aspose_slides_cloud/models/input_file.rb +22 -10
- data/lib/aspose_slides_cloud/models/interactive_sequence.rb +22 -10
- data/lib/aspose_slides_cloud/models/layout_slide.rb +31 -41
- data/lib/aspose_slides_cloud/models/layout_slides.rb +30 -40
- data/lib/aspose_slides_cloud/models/legend.rb +22 -10
- data/lib/aspose_slides_cloud/models/line_format.rb +22 -10
- data/lib/aspose_slides_cloud/models/master_slide.rb +31 -41
- data/lib/aspose_slides_cloud/models/master_slides.rb +30 -40
- data/lib/aspose_slides_cloud/models/merge.rb +31 -48
- data/lib/aspose_slides_cloud/models/merging_source.rb +22 -10
- data/lib/aspose_slides_cloud/models/no_fill.rb +29 -46
- data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +22 -10
- data/lib/aspose_slides_cloud/models/notes_slide.rb +30 -40
- data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +267 -0
- data/lib/aspose_slides_cloud/models/object_exist.rb +22 -10
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +32 -220
- data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +30 -20
- data/lib/aspose_slides_cloud/models/one_value_series.rb +31 -211
- data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +22 -10
- data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/output_file.rb +22 -10
- data/lib/aspose_slides_cloud/models/paragraph.rb +30 -40
- data/lib/aspose_slides_cloud/models/paragraphs.rb +30 -40
- data/lib/aspose_slides_cloud/models/path_input_file.rb +31 -57
- data/lib/aspose_slides_cloud/models/path_output_file.rb +31 -48
- data/lib/aspose_slides_cloud/models/pattern_fill.rb +31 -48
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/picture_fill.rb +32 -49
- data/lib/aspose_slides_cloud/models/picture_frame.rb +32 -246
- data/lib/aspose_slides_cloud/models/pipeline.rb +22 -10
- data/lib/aspose_slides_cloud/models/placeholder.rb +30 -40
- data/lib/aspose_slides_cloud/models/placeholders.rb +30 -40
- data/lib/aspose_slides_cloud/models/plot_area.rb +22 -10
- data/lib/aspose_slides_cloud/models/portion.rb +30 -40
- data/lib/aspose_slides_cloud/models/portions.rb +36 -46
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +22 -10
- data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +22 -10
- data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/reflection_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/remove_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/remove_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/reorder_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/replace_text.rb +31 -48
- data/lib/aspose_slides_cloud/models/request_input_file.rb +31 -57
- data/lib/aspose_slides_cloud/models/reset_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/resource_base.rb +22 -10
- data/lib/aspose_slides_cloud/models/resource_uri.rb +22 -10
- data/lib/aspose_slides_cloud/models/response_output_file.rb +29 -46
- data/lib/aspose_slides_cloud/models/save.rb +31 -48
- data/lib/aspose_slides_cloud/models/save_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/save_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +30 -20
- data/lib/aspose_slides_cloud/models/scatter_series.rb +31 -211
- data/lib/aspose_slides_cloud/models/section.rb +234 -0
- data/lib/aspose_slides_cloud/models/sections.rb +209 -0
- data/lib/aspose_slides_cloud/models/series.rb +45 -12
- data/lib/aspose_slides_cloud/models/series_marker.rb +22 -10
- data/lib/aspose_slides_cloud/models/shape.rb +32 -244
- data/lib/aspose_slides_cloud/models/shape_base.rb +31 -62
- data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +22 -10
- data/lib/aspose_slides_cloud/models/shapes.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide.rb +37 -47
- data/lib/aspose_slides_cloud/models/slide_animation.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide_background.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide_comment.rb +22 -10
- data/lib/aspose_slides_cloud/models/slide_comments.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide_replace_result.rb +30 -154
- data/lib/aspose_slides_cloud/models/slides.rb +30 -40
- data/lib/aspose_slides_cloud/models/smart_art.rb +32 -220
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +23 -11
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +30 -217
- data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/solid_fill.rb +31 -48
- data/lib/aspose_slides_cloud/models/split_document_result.rb +30 -40
- data/lib/aspose_slides_cloud/models/storage_exist.rb +22 -10
- data/lib/aspose_slides_cloud/models/storage_file.rb +22 -10
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/table.rb +32 -220
- data/lib/aspose_slides_cloud/models/table_cell.rb +22 -10
- data/lib/aspose_slides_cloud/models/table_column.rb +22 -10
- data/lib/aspose_slides_cloud/models/table_row.rb +22 -10
- data/lib/aspose_slides_cloud/models/task.rb +22 -10
- data/lib/aspose_slides_cloud/models/text_item.rb +22 -10
- data/lib/aspose_slides_cloud/models/text_items.rb +30 -40
- data/lib/aspose_slides_cloud/models/theme.rb +32 -42
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/update_background.rb +31 -48
- data/lib/aspose_slides_cloud/models/update_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/video_frame.rb +32 -246
- data/lib/aspose_slides_cloud/models/view_properties.rb +30 -40
- data/lib/aspose_slides_cloud/models/waterfall_chart_data_point.rb +206 -0
- data/lib/aspose_slides_cloud/models/waterfall_series.rb +31 -222
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/type_registry.rb +324 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +22294 -14411
- data/spec/extra/extra_spec.rb +156 -22
- data/spec/spec_utils.rb +15 -4
- data/testConfig.json +2 -2
- data/testRules.json +141 -73
- metadata +14 -3
@@ -0,0 +1,247 @@
|
|
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
|
+
# Represents header/footer info of slide
|
27
|
+
class HeaderFooter < ResourceBase
|
28
|
+
# True if date is displayed in the footer
|
29
|
+
attr_accessor :is_date_time_visible
|
30
|
+
|
31
|
+
# Text to be displayed as date in the footer
|
32
|
+
attr_accessor :date_time_text
|
33
|
+
|
34
|
+
# True if footer is displayed
|
35
|
+
attr_accessor :is_footer_visible
|
36
|
+
|
37
|
+
# Text to be displayed in the footer
|
38
|
+
attr_accessor :footer_text
|
39
|
+
|
40
|
+
# True if slide number is displayed in the footer
|
41
|
+
attr_accessor :is_slide_number_visible
|
42
|
+
|
43
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
44
|
+
def self.attribute_map
|
45
|
+
super.merge({
|
46
|
+
:'is_date_time_visible' => :'IsDateTimeVisible',
|
47
|
+
:'date_time_text' => :'DateTimeText',
|
48
|
+
:'is_footer_visible' => :'IsFooterVisible',
|
49
|
+
:'footer_text' => :'FooterText',
|
50
|
+
:'is_slide_number_visible' => :'IsSlideNumberVisible',
|
51
|
+
})
|
52
|
+
end
|
53
|
+
|
54
|
+
# Attribute type mapping.
|
55
|
+
def self.swagger_types
|
56
|
+
super.merge({
|
57
|
+
:'is_date_time_visible' => :'BOOLEAN',
|
58
|
+
:'date_time_text' => :'String',
|
59
|
+
:'is_footer_visible' => :'BOOLEAN',
|
60
|
+
:'footer_text' => :'String',
|
61
|
+
:'is_slide_number_visible' => :'BOOLEAN',
|
62
|
+
})
|
63
|
+
end
|
64
|
+
|
65
|
+
# Initializes the object
|
66
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
67
|
+
def initialize(attributes = {})
|
68
|
+
super
|
69
|
+
|
70
|
+
if attributes.has_key?(:'IsDateTimeVisible')
|
71
|
+
self.is_date_time_visible = attributes[:'IsDateTimeVisible']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes.has_key?(:'DateTimeText')
|
75
|
+
self.date_time_text = attributes[:'DateTimeText']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.has_key?(:'IsFooterVisible')
|
79
|
+
self.is_footer_visible = attributes[:'IsFooterVisible']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.has_key?(:'FooterText')
|
83
|
+
self.footer_text = attributes[:'FooterText']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.has_key?(:'IsSlideNumberVisible')
|
87
|
+
self.is_slide_number_visible = attributes[:'IsSlideNumberVisible']
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
92
|
+
# @return Array for valid properties with the reasons
|
93
|
+
def list_invalid_properties
|
94
|
+
invalid_properties = super
|
95
|
+
invalid_properties
|
96
|
+
end
|
97
|
+
|
98
|
+
# Check to see if the all the properties in the model are valid
|
99
|
+
# @return true if the model is valid
|
100
|
+
def valid?
|
101
|
+
return false if !super
|
102
|
+
true
|
103
|
+
end
|
104
|
+
|
105
|
+
# Checks equality by comparing each attribute.
|
106
|
+
# @param [Object] Object to be compared
|
107
|
+
def ==(o)
|
108
|
+
return true if self.equal?(o)
|
109
|
+
self.class == o.class &&
|
110
|
+
self_uri == o.self_uri &&
|
111
|
+
alternate_links == o.alternate_links &&
|
112
|
+
is_date_time_visible == o.is_date_time_visible &&
|
113
|
+
date_time_text == o.date_time_text &&
|
114
|
+
is_footer_visible == o.is_footer_visible &&
|
115
|
+
footer_text == o.footer_text &&
|
116
|
+
is_slide_number_visible == o.is_slide_number_visible
|
117
|
+
end
|
118
|
+
|
119
|
+
# @see the `==` method
|
120
|
+
# @param [Object] Object to be compared
|
121
|
+
def eql?(o)
|
122
|
+
self == o
|
123
|
+
end
|
124
|
+
|
125
|
+
# Calculates hash code according to all attributes.
|
126
|
+
# @return [Fixnum] Hash code
|
127
|
+
def hash
|
128
|
+
[self_uri, alternate_links, is_date_time_visible, date_time_text, is_footer_visible, footer_text, is_slide_number_visible].hash
|
129
|
+
end
|
130
|
+
|
131
|
+
# Builds the object from hash
|
132
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
133
|
+
# @return [Object] Returns the model itself
|
134
|
+
def build_from_hash(attributes)
|
135
|
+
return nil unless attributes.is_a?(Hash)
|
136
|
+
self.class.swagger_types.each_pair do |key, type|
|
137
|
+
mapKey = self.class.attribute_map[key]
|
138
|
+
if !mapKey.nil?
|
139
|
+
val = attributes[mapKey]
|
140
|
+
if val.nil?
|
141
|
+
mapKeyString = mapKey.to_s
|
142
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
143
|
+
mapKey = mapKeyString.to_sym
|
144
|
+
val = attributes[mapKey]
|
145
|
+
end
|
146
|
+
if !val.nil?
|
147
|
+
if type =~ /\AArray<(.*)>/i
|
148
|
+
# check to ensure the input is an array given that the the attribute
|
149
|
+
# is documented as an array but the input is not
|
150
|
+
if val.is_a?(Array)
|
151
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
152
|
+
end
|
153
|
+
else
|
154
|
+
self.send("#{key}=", _deserialize(type, val))
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
self
|
161
|
+
end
|
162
|
+
|
163
|
+
# Deserializes the data based on type
|
164
|
+
# @param string type Data type
|
165
|
+
# @param string value Value to be deserialized
|
166
|
+
# @return [Object] Deserialized data
|
167
|
+
def _deserialize(type, value)
|
168
|
+
case type.to_sym
|
169
|
+
when :DateTime
|
170
|
+
DateTime.parse(value)
|
171
|
+
when :Date
|
172
|
+
Date.parse(value)
|
173
|
+
when :String
|
174
|
+
value.to_s
|
175
|
+
when :Integer
|
176
|
+
value.to_i
|
177
|
+
when :Float
|
178
|
+
value.to_f
|
179
|
+
when :BOOLEAN
|
180
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
181
|
+
true
|
182
|
+
else
|
183
|
+
false
|
184
|
+
end
|
185
|
+
when :Object
|
186
|
+
# generic object (usually a Hash), return directly
|
187
|
+
value
|
188
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
189
|
+
inner_type = Regexp.last_match[:inner_type]
|
190
|
+
value.map { |v| _deserialize(inner_type, v) }
|
191
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
192
|
+
k_type = Regexp.last_match[:k_type]
|
193
|
+
v_type = Regexp.last_match[:v_type]
|
194
|
+
{}.tap do |hash|
|
195
|
+
value.each do |k, v|
|
196
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
197
|
+
end
|
198
|
+
end
|
199
|
+
else # model
|
200
|
+
temp_model = AsposeSlidesCloud.const_get(type).new
|
201
|
+
temp_model.build_from_hash(value)
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
# Returns the string representation of the object
|
206
|
+
# @return [String] String presentation of the object
|
207
|
+
def to_s
|
208
|
+
to_hash.to_s
|
209
|
+
end
|
210
|
+
|
211
|
+
# to_body is an alias to to_hash (backward compatibility)
|
212
|
+
# @return [Hash] Returns the object in the form of hash
|
213
|
+
def to_body
|
214
|
+
to_hash
|
215
|
+
end
|
216
|
+
|
217
|
+
# Returns the object in the form of hash
|
218
|
+
# @return [Hash] Returns the object in the form of hash
|
219
|
+
def to_hash
|
220
|
+
hash = {}
|
221
|
+
self.class.attribute_map.each_pair do |attr, param|
|
222
|
+
value = self.send(attr)
|
223
|
+
next if value.nil?
|
224
|
+
hash[param] = _to_hash(value)
|
225
|
+
end
|
226
|
+
hash
|
227
|
+
end
|
228
|
+
|
229
|
+
# Outputs non-array value in the form of hash
|
230
|
+
# For object, use to_hash. Otherwise, just return the value
|
231
|
+
# @param [Object] value Any valid value
|
232
|
+
# @return [Hash] Returns the value in the form of hash
|
233
|
+
def _to_hash(value)
|
234
|
+
if value.is_a?(Array)
|
235
|
+
value.compact.map { |v| _to_hash(v) }
|
236
|
+
elsif value.is_a?(Hash)
|
237
|
+
{}.tap do |hash|
|
238
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
239
|
+
end
|
240
|
+
elsif value.respond_to? :to_hash
|
241
|
+
value.to_hash
|
242
|
+
else
|
243
|
+
value
|
244
|
+
end
|
245
|
+
end
|
246
|
+
end
|
247
|
+
end
|
@@ -24,10 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Provides options that control how a presentation is saved in Html format.
|
27
|
-
class HtmlExportOptions
|
28
|
-
# Export format.
|
29
|
-
attr_accessor :format
|
30
|
-
|
27
|
+
class HtmlExportOptions < ExportOptions
|
31
28
|
# Get or sets flag for save presentation as zip file
|
32
29
|
attr_accessor :save_as_zip
|
33
30
|
|
@@ -88,8 +85,7 @@ module AsposeSlidesCloud
|
|
88
85
|
|
89
86
|
# Attribute mapping from ruby-style variable name to JSON key.
|
90
87
|
def self.attribute_map
|
91
|
-
{
|
92
|
-
:'format' => :'Format',
|
88
|
+
super.merge({
|
93
89
|
:'save_as_zip' => :'SaveAsZip',
|
94
90
|
:'sub_directory_name' => :'SubDirectoryName',
|
95
91
|
:'show_hidden_slides' => :'ShowHiddenSlides',
|
@@ -101,14 +97,13 @@ module AsposeSlidesCloud
|
|
101
97
|
:'comments_position' => :'CommentsPosition',
|
102
98
|
:'comments_area_width' => :'CommentsAreaWidth',
|
103
99
|
:'comments_area_color' => :'CommentsAreaColor',
|
104
|
-
:'show_comments_by_no_author' => :'ShowCommentsByNoAuthor'
|
105
|
-
}
|
100
|
+
:'show_comments_by_no_author' => :'ShowCommentsByNoAuthor',
|
101
|
+
})
|
106
102
|
end
|
107
103
|
|
108
104
|
# Attribute type mapping.
|
109
105
|
def self.swagger_types
|
110
|
-
{
|
111
|
-
:'format' => :'String',
|
106
|
+
super.merge({
|
112
107
|
:'save_as_zip' => :'BOOLEAN',
|
113
108
|
:'sub_directory_name' => :'String',
|
114
109
|
:'show_hidden_slides' => :'BOOLEAN',
|
@@ -120,23 +115,14 @@ module AsposeSlidesCloud
|
|
120
115
|
:'comments_position' => :'String',
|
121
116
|
:'comments_area_width' => :'Integer',
|
122
117
|
:'comments_area_color' => :'String',
|
123
|
-
:'show_comments_by_no_author' => :'BOOLEAN'
|
124
|
-
}
|
118
|
+
:'show_comments_by_no_author' => :'BOOLEAN',
|
119
|
+
})
|
125
120
|
end
|
126
121
|
|
127
122
|
# Initializes the object
|
128
123
|
# @param [Hash] attributes Model attributes in the form of hash
|
129
124
|
def initialize(attributes = {})
|
130
|
-
|
131
|
-
|
132
|
-
# convert string to symbol for hash key
|
133
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
134
|
-
|
135
|
-
if attributes.has_key?(:'Format')
|
136
|
-
self.format = attributes[:'Format']
|
137
|
-
else
|
138
|
-
self.format = "html"
|
139
|
-
end
|
125
|
+
super
|
140
126
|
|
141
127
|
if attributes.has_key?(:'SaveAsZip')
|
142
128
|
self.save_as_zip = attributes[:'SaveAsZip']
|
@@ -185,12 +171,13 @@ module AsposeSlidesCloud
|
|
185
171
|
if attributes.has_key?(:'ShowCommentsByNoAuthor')
|
186
172
|
self.show_comments_by_no_author = attributes[:'ShowCommentsByNoAuthor']
|
187
173
|
end
|
174
|
+
self.format = "html"
|
188
175
|
end
|
189
176
|
|
190
177
|
# Show invalid properties with the reasons. Usually used together with valid?
|
191
178
|
# @return Array for valid properties with the reasons
|
192
179
|
def list_invalid_properties
|
193
|
-
invalid_properties =
|
180
|
+
invalid_properties = super
|
194
181
|
if @save_as_zip.nil?
|
195
182
|
invalid_properties.push('invalid value for "save_as_zip", save_as_zip cannot be nil.')
|
196
183
|
end
|
@@ -233,6 +220,7 @@ module AsposeSlidesCloud
|
|
233
220
|
# Check to see if the all the properties in the model are valid
|
234
221
|
# @return true if the model is valid
|
235
222
|
def valid?
|
223
|
+
return false if !super
|
236
224
|
return false if @save_as_zip.nil?
|
237
225
|
return false if @show_hidden_slides.nil?
|
238
226
|
return false if @svg_responsive_layout.nil?
|
@@ -286,6 +274,7 @@ module AsposeSlidesCloud
|
|
286
274
|
def ==(o)
|
287
275
|
return true if self.equal?(o)
|
288
276
|
self.class == o.class &&
|
277
|
+
default_regular_font == o.default_regular_font &&
|
289
278
|
format == o.format &&
|
290
279
|
save_as_zip == o.save_as_zip &&
|
291
280
|
sub_directory_name == o.sub_directory_name &&
|
@@ -310,7 +299,7 @@ module AsposeSlidesCloud
|
|
310
299
|
# Calculates hash code according to all attributes.
|
311
300
|
# @return [Fixnum] Hash code
|
312
301
|
def hash
|
313
|
-
[format, save_as_zip, sub_directory_name, show_hidden_slides, svg_responsive_layout, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
|
302
|
+
[default_regular_font, format, save_as_zip, sub_directory_name, show_hidden_slides, svg_responsive_layout, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
|
314
303
|
end
|
315
304
|
|
316
305
|
# Builds the object from hash
|
@@ -319,15 +308,27 @@ module AsposeSlidesCloud
|
|
319
308
|
def build_from_hash(attributes)
|
320
309
|
return nil unless attributes.is_a?(Hash)
|
321
310
|
self.class.swagger_types.each_pair do |key, type|
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
if
|
326
|
-
|
311
|
+
mapKey = self.class.attribute_map[key]
|
312
|
+
if !mapKey.nil?
|
313
|
+
val = attributes[mapKey]
|
314
|
+
if val.nil?
|
315
|
+
mapKeyString = mapKey.to_s
|
316
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
317
|
+
mapKey = mapKeyString.to_sym
|
318
|
+
val = attributes[mapKey]
|
319
|
+
end
|
320
|
+
if !val.nil?
|
321
|
+
if type =~ /\AArray<(.*)>/i
|
322
|
+
# check to ensure the input is an array given that the the attribute
|
323
|
+
# is documented as an array but the input is not
|
324
|
+
if val.is_a?(Array)
|
325
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
326
|
+
end
|
327
|
+
else
|
328
|
+
self.send("#{key}=", _deserialize(type, val))
|
329
|
+
end
|
327
330
|
end
|
328
|
-
|
329
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
330
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
331
|
+
end
|
331
332
|
end
|
332
333
|
|
333
334
|
self
|
@@ -25,20 +25,15 @@ require 'date'
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents export options for whole presentation.
|
27
27
|
class IShapeExportOptions
|
28
|
-
# Export format.
|
29
|
-
attr_accessor :format
|
30
|
-
|
31
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
29
|
def self.attribute_map
|
33
30
|
{
|
34
|
-
:'format' => :'Format'
|
35
31
|
}
|
36
32
|
end
|
37
33
|
|
38
34
|
# Attribute type mapping.
|
39
35
|
def self.swagger_types
|
40
36
|
{
|
41
|
-
:'format' => :'String'
|
42
37
|
}
|
43
38
|
end
|
44
39
|
|
@@ -49,10 +44,6 @@ module AsposeSlidesCloud
|
|
49
44
|
|
50
45
|
# convert string to symbol for hash key
|
51
46
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
52
|
-
|
53
|
-
if attributes.has_key?(:'Format')
|
54
|
-
self.format = attributes[:'Format']
|
55
|
-
end
|
56
47
|
end
|
57
48
|
|
58
49
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -72,8 +63,7 @@ module AsposeSlidesCloud
|
|
72
63
|
# @param [Object] Object to be compared
|
73
64
|
def ==(o)
|
74
65
|
return true if self.equal?(o)
|
75
|
-
self.class == o.class
|
76
|
-
format == o.format
|
66
|
+
self.class == o.class
|
77
67
|
end
|
78
68
|
|
79
69
|
# @see the `==` method
|
@@ -85,7 +75,7 @@ module AsposeSlidesCloud
|
|
85
75
|
# Calculates hash code according to all attributes.
|
86
76
|
# @return [Fixnum] Hash code
|
87
77
|
def hash
|
88
|
-
[
|
78
|
+
[].hash
|
89
79
|
end
|
90
80
|
|
91
81
|
# Builds the object from hash
|
@@ -94,15 +84,27 @@ module AsposeSlidesCloud
|
|
94
84
|
def build_from_hash(attributes)
|
95
85
|
return nil unless attributes.is_a?(Hash)
|
96
86
|
self.class.swagger_types.each_pair do |key, type|
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
if
|
101
|
-
|
87
|
+
mapKey = self.class.attribute_map[key]
|
88
|
+
if !mapKey.nil?
|
89
|
+
val = attributes[mapKey]
|
90
|
+
if val.nil?
|
91
|
+
mapKeyString = mapKey.to_s
|
92
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
93
|
+
mapKey = mapKeyString.to_sym
|
94
|
+
val = attributes[mapKey]
|
102
95
|
end
|
103
|
-
|
104
|
-
|
105
|
-
|
96
|
+
if !val.nil?
|
97
|
+
if type =~ /\AArray<(.*)>/i
|
98
|
+
# check to ensure the input is an array given that the the attribute
|
99
|
+
# is documented as an array but the input is not
|
100
|
+
if val.is_a?(Array)
|
101
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
102
|
+
end
|
103
|
+
else
|
104
|
+
self.send("#{key}=", _deserialize(type, val))
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
106
108
|
end
|
107
109
|
|
108
110
|
self
|