aspose_slides_cloud 22.9.0 → 22.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +14 -14
  3. data/README.md +12 -0
  4. data/docker-entrypoint.sh +1 -2
  5. data/lib/aspose_slides_cloud/api/slides_api.rb +5327 -9036
  6. data/lib/aspose_slides_cloud/api_client.rb +3 -3
  7. data/lib/aspose_slides_cloud/configuration.rb +1 -1
  8. data/lib/aspose_slides_cloud/models/accent_element.rb +1 -1
  9. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +1 -1
  10. data/lib/aspose_slides_cloud/models/add_master_slide.rb +1 -1
  11. data/lib/aspose_slides_cloud/models/add_shape.rb +1 -1
  12. data/lib/aspose_slides_cloud/models/add_slide.rb +1 -1
  13. data/lib/aspose_slides_cloud/models/alpha_bi_level_effect.rb +1 -1
  14. data/lib/aspose_slides_cloud/models/alpha_ceiling_effect.rb +1 -1
  15. data/lib/aspose_slides_cloud/models/alpha_floor_effect.rb +1 -1
  16. data/lib/aspose_slides_cloud/models/alpha_inverse_effect.rb +1 -1
  17. data/lib/aspose_slides_cloud/models/alpha_modulate_effect.rb +1 -1
  18. data/lib/aspose_slides_cloud/models/alpha_modulate_fixed_effect.rb +1 -1
  19. data/lib/aspose_slides_cloud/models/alpha_replace_effect.rb +1 -1
  20. data/lib/aspose_slides_cloud/models/arc_to_path_segment.rb +1 -1
  21. data/lib/aspose_slides_cloud/models/array_element.rb +1 -1
  22. data/lib/aspose_slides_cloud/models/audio_frame.rb +1 -1
  23. data/lib/aspose_slides_cloud/models/axis_type.rb +4 -4
  24. data/lib/aspose_slides_cloud/models/bar_element.rb +1 -1
  25. data/lib/aspose_slides_cloud/models/base64_input_file.rb +1 -1
  26. data/lib/aspose_slides_cloud/models/bi_level_effect.rb +1 -1
  27. data/lib/aspose_slides_cloud/models/block_element.rb +1 -1
  28. data/lib/aspose_slides_cloud/models/blur_image_effect.rb +1 -1
  29. data/lib/aspose_slides_cloud/models/border_box_element.rb +1 -1
  30. data/lib/aspose_slides_cloud/models/box_element.rb +1 -1
  31. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +14 -2
  32. data/lib/aspose_slides_cloud/models/bubble_series.rb +16 -3
  33. data/lib/aspose_slides_cloud/models/chart.rb +12 -2
  34. data/lib/aspose_slides_cloud/models/chart_wall_type.rb +3 -3
  35. data/lib/aspose_slides_cloud/models/close_path_segment.rb +1 -1
  36. data/lib/aspose_slides_cloud/models/color_change_effect.rb +1 -1
  37. data/lib/aspose_slides_cloud/models/color_replace_effect.rb +1 -1
  38. data/lib/aspose_slides_cloud/models/connector.rb +1 -1
  39. data/lib/aspose_slides_cloud/models/cubic_bezier_to_path_segment.rb +1 -1
  40. data/lib/aspose_slides_cloud/models/data_source.rb +244 -0
  41. data/lib/aspose_slides_cloud/models/delimiter_element.rb +1 -1
  42. data/lib/aspose_slides_cloud/models/duotone_effect.rb +1 -1
  43. data/lib/aspose_slides_cloud/models/effect.rb +22 -2
  44. data/lib/aspose_slides_cloud/models/export_format.rb +25 -25
  45. data/lib/aspose_slides_cloud/models/fill_overlay_image_effect.rb +1 -1
  46. data/lib/aspose_slides_cloud/models/fraction_element.rb +1 -1
  47. data/lib/aspose_slides_cloud/models/function_element.rb +1 -1
  48. data/lib/aspose_slides_cloud/models/gif_export_options.rb +1 -1
  49. data/lib/aspose_slides_cloud/models/gradient_fill.rb +1 -1
  50. data/lib/aspose_slides_cloud/models/graphical_object.rb +2 -2
  51. data/lib/aspose_slides_cloud/models/gray_scale_effect.rb +1 -1
  52. data/lib/aspose_slides_cloud/models/group_shape.rb +1 -1
  53. data/lib/aspose_slides_cloud/models/grouping_character_element.rb +1 -1
  54. data/lib/aspose_slides_cloud/models/hsl_effect.rb +1 -1
  55. data/lib/aspose_slides_cloud/models/html5_export_options.rb +1 -1
  56. data/lib/aspose_slides_cloud/models/html_export_options.rb +1 -1
  57. data/lib/aspose_slides_cloud/models/image_export_format.rb +5 -5
  58. data/lib/aspose_slides_cloud/models/image_export_options.rb +1 -1
  59. data/lib/aspose_slides_cloud/models/left_sub_superscript_element.rb +1 -1
  60. data/lib/aspose_slides_cloud/models/limit_element.rb +1 -1
  61. data/lib/aspose_slides_cloud/models/line_to_path_segment.rb +1 -1
  62. data/lib/aspose_slides_cloud/models/literals.rb +223 -0
  63. data/lib/aspose_slides_cloud/models/luminance_effect.rb +1 -1
  64. data/lib/aspose_slides_cloud/models/matrix_element.rb +1 -1
  65. data/lib/aspose_slides_cloud/models/merge.rb +1 -1
  66. data/lib/aspose_slides_cloud/models/move_to_path_segment.rb +1 -1
  67. data/lib/aspose_slides_cloud/models/nary_operator_element.rb +1 -1
  68. data/lib/aspose_slides_cloud/models/no_fill.rb +1 -1
  69. data/lib/aspose_slides_cloud/models/notes_slide_export_format.rb +23 -23
  70. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +1 -1
  71. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +11 -1
  72. data/lib/aspose_slides_cloud/models/one_value_series.rb +13 -2
  73. data/lib/aspose_slides_cloud/models/path_input_file.rb +1 -1
  74. data/lib/aspose_slides_cloud/models/path_output_file.rb +1 -1
  75. data/lib/aspose_slides_cloud/models/pattern_fill.rb +1 -1
  76. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +1 -1
  77. data/lib/aspose_slides_cloud/models/picture_fill.rb +1 -1
  78. data/lib/aspose_slides_cloud/models/picture_frame.rb +1 -1
  79. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +1 -1
  80. data/lib/aspose_slides_cloud/models/quadratic_bezier_to_path_segment.rb +1 -1
  81. data/lib/aspose_slides_cloud/models/radical_element.rb +1 -1
  82. data/lib/aspose_slides_cloud/models/remove_shape.rb +1 -1
  83. data/lib/aspose_slides_cloud/models/remove_slide.rb +1 -1
  84. data/lib/aspose_slides_cloud/models/reorder_slide.rb +1 -1
  85. data/lib/aspose_slides_cloud/models/replace_text.rb +1 -1
  86. data/lib/aspose_slides_cloud/models/request_input_file.rb +1 -1
  87. data/lib/aspose_slides_cloud/models/reset_slide.rb +1 -1
  88. data/lib/aspose_slides_cloud/models/response_output_file.rb +1 -1
  89. data/lib/aspose_slides_cloud/models/right_sub_superscript_element.rb +1 -1
  90. data/lib/aspose_slides_cloud/models/save.rb +1 -1
  91. data/lib/aspose_slides_cloud/models/save_shape.rb +1 -1
  92. data/lib/aspose_slides_cloud/models/save_slide.rb +1 -1
  93. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +22 -2
  94. data/lib/aspose_slides_cloud/models/scatter_series.rb +5 -2
  95. data/lib/aspose_slides_cloud/models/section_zoom_frame.rb +1 -1
  96. data/lib/aspose_slides_cloud/models/series.rb +11 -1
  97. data/lib/aspose_slides_cloud/models/shape.rb +1 -1
  98. data/lib/aspose_slides_cloud/models/shape_export_format.rb +6 -6
  99. data/lib/aspose_slides_cloud/models/shape_thumbnail_bounds.rb +3 -3
  100. data/lib/aspose_slides_cloud/models/shape_type.rb +16 -16
  101. data/lib/aspose_slides_cloud/models/shapes_alignment_type.rb +8 -8
  102. data/lib/aspose_slides_cloud/models/slide_comment.rb +1 -1
  103. data/lib/aspose_slides_cloud/models/slide_export_format.rb +23 -23
  104. data/lib/aspose_slides_cloud/models/slide_modern_comment.rb +1 -1
  105. data/lib/aspose_slides_cloud/models/slide_show_properties.rb +325 -0
  106. data/lib/aspose_slides_cloud/models/smart_art.rb +1 -1
  107. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +1 -1
  108. data/lib/aspose_slides_cloud/models/solid_fill.rb +1 -1
  109. data/lib/aspose_slides_cloud/models/special_slide_type.rb +3 -3
  110. data/lib/aspose_slides_cloud/models/subscript_element.rb +1 -1
  111. data/lib/aspose_slides_cloud/models/summary_zoom_frame.rb +1 -1
  112. data/lib/aspose_slides_cloud/models/summary_zoom_section.rb +1 -1
  113. data/lib/aspose_slides_cloud/models/superscript_element.rb +1 -1
  114. data/lib/aspose_slides_cloud/models/svg_export_options.rb +23 -3
  115. data/lib/aspose_slides_cloud/models/swf_export_options.rb +1 -1
  116. data/lib/aspose_slides_cloud/models/table.rb +1 -1
  117. data/lib/aspose_slides_cloud/models/text_element.rb +1 -1
  118. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +1 -1
  119. data/lib/aspose_slides_cloud/models/tint_effect.rb +1 -1
  120. data/lib/aspose_slides_cloud/models/update_background.rb +1 -1
  121. data/lib/aspose_slides_cloud/models/update_shape.rb +1 -1
  122. data/lib/aspose_slides_cloud/models/video_export_options.rb +1 -1
  123. data/lib/aspose_slides_cloud/models/video_frame.rb +1 -1
  124. data/lib/aspose_slides_cloud/models/workbook.rb +268 -0
  125. data/lib/aspose_slides_cloud/models/xaml_export_options.rb +1 -1
  126. data/lib/aspose_slides_cloud/models/xps_export_options.rb +1 -1
  127. data/lib/aspose_slides_cloud/models/xy_series.rb +23 -2
  128. data/lib/aspose_slides_cloud/models/zoom_frame.rb +1 -1
  129. data/lib/aspose_slides_cloud/type_registry.rb +189 -182
  130. data/lib/aspose_slides_cloud/version.rb +1 -1
  131. data/lib/aspose_slides_cloud.rb +124 -120
  132. data/spec/api/slides_api_spec.rb +23387 -34153
  133. data/spec/spec_utils.rb +88 -49
  134. data/spec/use_cases/chart_spec.rb +160 -1
  135. data/spec/use_cases/convert_spec.rb +8 -2
  136. data/spec/use_cases/font_spec.rb +4 -4
  137. data/spec/use_cases/nullable_field_spec.rb +7 -0
  138. data/spec/use_cases/paragraph_spec.rb +30 -22
  139. data/spec/use_cases/portion_spec.rb +31 -23
  140. data/spec/use_cases/property_spec.rb +23 -0
  141. data/spec/use_cases/shape_spec.rb +22 -18
  142. data/testRules.json +138 -513
  143. metadata +6 -2
@@ -0,0 +1,244 @@
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
+ # Data source for chart values.
27
+ class DataSource
28
+ attr_accessor :type
29
+
30
+ class EnumAttributeValidator
31
+ attr_reader :datatype
32
+ attr_reader :allowable_values
33
+
34
+ def initialize(datatype, allowable_values)
35
+ @allowable_values = allowable_values.map do |value|
36
+ case datatype.to_s
37
+ when /Integer/i
38
+ value.to_i
39
+ when /Float/i
40
+ value.to_f
41
+ else
42
+ value
43
+ end
44
+ end
45
+ end
46
+
47
+ def valid?(value)
48
+ !value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
49
+ end
50
+ end
51
+
52
+ # Attribute mapping from ruby-style variable name to JSON key.
53
+ def self.attribute_map
54
+ {
55
+ :'type' => :'Type',
56
+ }
57
+ end
58
+
59
+ # Attribute type mapping.
60
+ def self.swagger_types
61
+ {
62
+ :'type' => :'String',
63
+ }
64
+ end
65
+
66
+ # Initializes the object
67
+ # @param [Hash] attributes Model attributes in the form of hash
68
+ def initialize(attributes = {})
69
+ return unless attributes.is_a?(Hash)
70
+
71
+ # convert string to symbol for hash key
72
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
73
+
74
+ if attributes.has_key?(:'Type')
75
+ self.type = attributes[:'Type']
76
+ end
77
+ end
78
+
79
+ # Show invalid properties with the reasons. Usually used together with valid?
80
+ # @return Array for valid properties with the reasons
81
+ def list_invalid_properties
82
+ invalid_properties = Array.new
83
+ invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ type_validator = EnumAttributeValidator.new('String', ['Workbook', 'Literals'])
90
+ return false unless type_validator.valid?(@type)
91
+ true
92
+ end
93
+
94
+ # Custom attribute writer method checking allowed values (enum).
95
+ # @param [Object] type Object to be assigned
96
+ def type=(type)
97
+ validator = EnumAttributeValidator.new('String', ['Workbook', 'Literals'])
98
+ unless validator.valid?(type)
99
+ fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
100
+ end
101
+ @type = type
102
+ end
103
+
104
+ # Checks equality by comparing each attribute.
105
+ # @param [Object] Object to be compared
106
+ def ==(o)
107
+ return true if self.equal?(o)
108
+ self.class == o.class &&
109
+ type == o.type
110
+ end
111
+
112
+ # @see the `==` method
113
+ # @param [Object] Object to be compared
114
+ def eql?(o)
115
+ self == o
116
+ end
117
+
118
+ # Calculates hash code according to all attributes.
119
+ # @return [Fixnum] Hash code
120
+ def hash
121
+ [type].hash
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ self.class.swagger_types.each_pair do |key, type|
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]
138
+ end
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
151
+ end
152
+
153
+ self
154
+ end
155
+
156
+ # Deserializes the data based on type
157
+ # @param string type Data type
158
+ # @param string value Value to be deserialized
159
+ # @return [Object] Deserialized data
160
+ def _deserialize(type, value)
161
+ case type.to_sym
162
+ when :DateTime
163
+ DateTime.parse(value)
164
+ when :Date
165
+ Date.parse(value)
166
+ when :String
167
+ value.to_s
168
+ when :Integer
169
+ value.to_i
170
+ when :Float
171
+ value.to_f
172
+ when :BOOLEAN
173
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
174
+ true
175
+ else
176
+ false
177
+ end
178
+ when :Object
179
+ # generic object (usually a Hash), return directly
180
+ value
181
+ when /\AArray<(?<inner_type>.+)>\z/
182
+ inner_type = Regexp.last_match[:inner_type]
183
+ value.map { |v| _deserialize(inner_type, v) }
184
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
185
+ k_type = Regexp.last_match[:k_type]
186
+ v_type = Regexp.last_match[:v_type]
187
+ {}.tap do |hash|
188
+ value.each do |k, v|
189
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
190
+ end
191
+ end
192
+ else # model
193
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
194
+ if registry_type
195
+ type = registry_type
196
+ end
197
+ temp_model = AsposeSlidesCloud.const_get(type).new
198
+ temp_model.build_from_hash(value)
199
+ end
200
+ end
201
+
202
+ # Returns the string representation of the object
203
+ # @return [String] String presentation of the object
204
+ def to_s
205
+ to_hash.to_s
206
+ end
207
+
208
+ # to_body is an alias to to_hash (backward compatibility)
209
+ # @return [Hash] Returns the object in the form of hash
210
+ def to_body
211
+ to_hash
212
+ end
213
+
214
+ # Returns the object in the form of hash
215
+ # @return [Hash] Returns the object in the form of hash
216
+ def to_hash
217
+ hash = {}
218
+ self.class.attribute_map.each_pair do |attr, param|
219
+ value = self.send(attr)
220
+ next if value.nil?
221
+ hash[param] = _to_hash(value)
222
+ end
223
+ hash
224
+ end
225
+
226
+ # Outputs non-array value in the form of hash
227
+ # For object, use to_hash. Otherwise, just return the value
228
+ # @param [Object] value Any valid value
229
+ # @return [Hash] Returns the value in the form of hash
230
+ def _to_hash(value)
231
+ if value.is_a?(Array)
232
+ value.compact.map { |v| _to_hash(v) }
233
+ elsif value.is_a?(Hash)
234
+ {}.tap do |hash|
235
+ value.each { |k, v| hash[k] = _to_hash(v) }
236
+ end
237
+ elsif value.respond_to? :to_hash
238
+ value.to_hash
239
+ else
240
+ value
241
+ end
242
+ end
243
+ end
244
+ end
@@ -119,7 +119,7 @@ module AsposeSlidesCloud
119
119
  if attributes.has_key?(:'DelimiterShape')
120
120
  self.delimiter_shape = attributes[:'DelimiterShape']
121
121
  end
122
- self.type = "Delimiter"
122
+ self.type = 'Delimiter'
123
123
  end
124
124
 
125
125
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -81,7 +81,7 @@ module AsposeSlidesCloud
81
81
  if attributes.has_key?(:'Color2')
82
82
  self.color2 = attributes[:'Color2']
83
83
  end
84
- self.type = "Duotone"
84
+ self.type = 'Duotone'
85
85
  end
86
86
 
87
87
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -70,6 +70,12 @@ module AsposeSlidesCloud
70
70
  # Delay time after trigger.
71
71
  attr_accessor :trigger_delay_time
72
72
 
73
+ # Specifies if the effect will repeat until the end of slide.
74
+ attr_accessor :repeat_until_end_slide
75
+
76
+ # Specifies if the effect will repeat until the next click.
77
+ attr_accessor :repeat_until_next_click
78
+
73
79
  class EnumAttributeValidator
74
80
  attr_reader :datatype
75
81
  attr_reader :allowable_values
@@ -110,6 +116,8 @@ module AsposeSlidesCloud
110
116
  :'restart' => :'Restart',
111
117
  :'speed' => :'Speed',
112
118
  :'trigger_delay_time' => :'TriggerDelayTime',
119
+ :'repeat_until_end_slide' => :'RepeatUntilEndSlide',
120
+ :'repeat_until_next_click' => :'RepeatUntilNextClick',
113
121
  }
114
122
  end
115
123
 
@@ -131,6 +139,8 @@ module AsposeSlidesCloud
131
139
  :'restart' => :'String',
132
140
  :'speed' => :'Float',
133
141
  :'trigger_delay_time' => :'Float',
142
+ :'repeat_until_end_slide' => :'BOOLEAN',
143
+ :'repeat_until_next_click' => :'BOOLEAN',
134
144
  }
135
145
  end
136
146
 
@@ -201,6 +211,14 @@ module AsposeSlidesCloud
201
211
  if attributes.has_key?(:'TriggerDelayTime')
202
212
  self.trigger_delay_time = attributes[:'TriggerDelayTime']
203
213
  end
214
+
215
+ if attributes.has_key?(:'RepeatUntilEndSlide')
216
+ self.repeat_until_end_slide = attributes[:'RepeatUntilEndSlide']
217
+ end
218
+
219
+ if attributes.has_key?(:'RepeatUntilNextClick')
220
+ self.repeat_until_next_click = attributes[:'RepeatUntilNextClick']
221
+ end
204
222
  end
205
223
 
206
224
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -300,7 +318,9 @@ module AsposeSlidesCloud
300
318
  repeat_duration == o.repeat_duration &&
301
319
  restart == o.restart &&
302
320
  speed == o.speed &&
303
- trigger_delay_time == o.trigger_delay_time
321
+ trigger_delay_time == o.trigger_delay_time &&
322
+ repeat_until_end_slide == o.repeat_until_end_slide &&
323
+ repeat_until_next_click == o.repeat_until_next_click
304
324
  end
305
325
 
306
326
  # @see the `==` method
@@ -312,7 +332,7 @@ module AsposeSlidesCloud
312
332
  # Calculates hash code according to all attributes.
313
333
  # @return [Fixnum] Hash code
314
334
  def hash
315
- [type, subtype, preset_class_type, shape_index, paragraph_index, trigger_type, accelerate, auto_reverse, decelerate, duration, repeat_count, repeat_duration, restart, speed, trigger_delay_time].hash
335
+ [type, subtype, preset_class_type, shape_index, paragraph_index, trigger_type, accelerate, auto_reverse, decelerate, duration, repeat_count, repeat_duration, restart, speed, trigger_delay_time, repeat_until_end_slide, repeat_until_next_click].hash
316
336
  end
317
337
 
318
338
  # Builds the object from hash
@@ -25,31 +25,31 @@ require 'date'
25
25
  module AsposeSlidesCloud
26
26
  class ExportFormat
27
27
 
28
- PDF = "Pdf".freeze
29
- XPS = "Xps".freeze
30
- TIFF = "Tiff".freeze
31
- PPTX = "Pptx".freeze
32
- ODP = "Odp".freeze
33
- OTP = "Otp".freeze
34
- PPT = "Ppt".freeze
35
- PPS = "Pps".freeze
36
- PPSX = "Ppsx".freeze
37
- PPTM = "Pptm".freeze
38
- PPSM = "Ppsm".freeze
39
- POT = "Pot".freeze
40
- POTX = "Potx".freeze
41
- POTM = "Potm".freeze
42
- HTML = "Html".freeze
43
- HTML5 = "Html5".freeze
44
- SWF = "Swf".freeze
45
- SVG = "Svg".freeze
46
- JPEG = "Jpeg".freeze
47
- PNG = "Png".freeze
48
- GIF = "Gif".freeze
49
- BMP = "Bmp".freeze
50
- FODP = "Fodp".freeze
51
- XAML = "Xaml".freeze
52
- MPEG4 = "Mpeg4".freeze
28
+ PDF = 'Pdf'.freeze
29
+ XPS = 'Xps'.freeze
30
+ TIFF = 'Tiff'.freeze
31
+ PPTX = 'Pptx'.freeze
32
+ ODP = 'Odp'.freeze
33
+ OTP = 'Otp'.freeze
34
+ PPT = 'Ppt'.freeze
35
+ PPS = 'Pps'.freeze
36
+ PPSX = 'Ppsx'.freeze
37
+ PPTM = 'Pptm'.freeze
38
+ PPSM = 'Ppsm'.freeze
39
+ POT = 'Pot'.freeze
40
+ POTX = 'Potx'.freeze
41
+ POTM = 'Potm'.freeze
42
+ HTML = 'Html'.freeze
43
+ HTML5 = 'Html5'.freeze
44
+ SWF = 'Swf'.freeze
45
+ SVG = 'Svg'.freeze
46
+ JPEG = 'Jpeg'.freeze
47
+ PNG = 'Png'.freeze
48
+ GIF = 'Gif'.freeze
49
+ BMP = 'Bmp'.freeze
50
+ FODP = 'Fodp'.freeze
51
+ XAML = 'Xaml'.freeze
52
+ MPEG4 = 'Mpeg4'.freeze
53
53
 
54
54
  # Builds the enum from string
55
55
  # @param [String] The enum value in the form of the string
@@ -81,7 +81,7 @@ module AsposeSlidesCloud
81
81
  if attributes.has_key?(:'FillFormat')
82
82
  self.fill_format = attributes[:'FillFormat']
83
83
  end
84
- self.type = "FillOverlay"
84
+ self.type = 'FillOverlay'
85
85
  end
86
86
 
87
87
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -90,7 +90,7 @@ module AsposeSlidesCloud
90
90
  if attributes.has_key?(:'Denominator')
91
91
  self.denominator = attributes[:'Denominator']
92
92
  end
93
- self.type = "Fraction"
93
+ self.type = 'Fraction'
94
94
  end
95
95
 
96
96
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -81,7 +81,7 @@ module AsposeSlidesCloud
81
81
  if attributes.has_key?(:'Base')
82
82
  self.base = attributes[:'Base']
83
83
  end
84
- self.type = "Function"
84
+ self.type = 'Function'
85
85
  end
86
86
 
87
87
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -68,7 +68,7 @@ module AsposeSlidesCloud
68
68
  if attributes.has_key?(:'DefaultDelay')
69
69
  self.default_delay = attributes[:'DefaultDelay']
70
70
  end
71
- self.format = "gif"
71
+ self.format = 'gif'
72
72
  end
73
73
 
74
74
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -119,7 +119,7 @@ module AsposeSlidesCloud
119
119
  if attributes.has_key?(:'TileFlip')
120
120
  self.tile_flip = attributes[:'TileFlip']
121
121
  end
122
- self.type = "Gradient"
122
+ self.type = 'Gradient'
123
123
  end
124
124
 
125
125
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -63,7 +63,7 @@ module AsposeSlidesCloud
63
63
  # @param [Hash] attributes Model attributes in the form of hash
64
64
  def initialize(attributes = {})
65
65
  super
66
- self.type = "GraphicalObject"
66
+ self.type = 'GraphicalObject'
67
67
  end
68
68
 
69
69
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -114,7 +114,7 @@ module AsposeSlidesCloud
114
114
  # Calculates hash code according to all attributes.
115
115
  # @return [Fixnum] Hash code
116
116
  def hash
117
- [self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type].hash
117
+ [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type].hash
118
118
  end
119
119
 
120
120
  # Builds the object from hash
@@ -63,7 +63,7 @@ module AsposeSlidesCloud
63
63
  # @param [Hash] attributes Model attributes in the form of hash
64
64
  def initialize(attributes = {})
65
65
  super
66
- self.type = "GrayScale"
66
+ self.type = 'GrayScale'
67
67
  end
68
68
 
69
69
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -72,7 +72,7 @@ module AsposeSlidesCloud
72
72
  if attributes.has_key?(:'Shapes')
73
73
  self.shapes = attributes[:'Shapes']
74
74
  end
75
- self.type = "GroupShape"
75
+ self.type = 'GroupShape'
76
76
  end
77
77
 
78
78
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -99,7 +99,7 @@ module AsposeSlidesCloud
99
99
  if attributes.has_key?(:'VerticalJustification')
100
100
  self.vertical_justification = attributes[:'VerticalJustification']
101
101
  end
102
- self.type = "GroupingCharacter"
102
+ self.type = 'GroupingCharacter'
103
103
  end
104
104
 
105
105
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -90,7 +90,7 @@ module AsposeSlidesCloud
90
90
  if attributes.has_key?(:'Luminance')
91
91
  self.luminance = attributes[:'Luminance']
92
92
  end
93
- self.type = "Hsl"
93
+ self.type = 'Hsl'
94
94
  end
95
95
 
96
96
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -59,7 +59,7 @@ module AsposeSlidesCloud
59
59
  if attributes.has_key?(:'AnimateShapes')
60
60
  self.animate_shapes = attributes[:'AnimateShapes']
61
61
  end
62
- self.format = "html5"
62
+ self.format = 'html5'
63
63
  end
64
64
 
65
65
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -171,7 +171,7 @@ module AsposeSlidesCloud
171
171
  if attributes.has_key?(:'ShowCommentsByNoAuthor')
172
172
  self.show_comments_by_no_author = attributes[:'ShowCommentsByNoAuthor']
173
173
  end
174
- self.format = "html"
174
+ self.format = 'html'
175
175
  end
176
176
 
177
177
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -25,11 +25,11 @@ require 'date'
25
25
  module AsposeSlidesCloud
26
26
  class ImageExportFormat
27
27
 
28
- JPEG = "Jpeg".freeze
29
- PNG = "Png".freeze
30
- GIF = "Gif".freeze
31
- BMP = "Bmp".freeze
32
- TIFF = "Tiff".freeze
28
+ JPEG = 'Jpeg'.freeze
29
+ PNG = 'Png'.freeze
30
+ GIF = 'Gif'.freeze
31
+ BMP = 'Bmp'.freeze
32
+ TIFF = 'Tiff'.freeze
33
33
 
34
34
  # Builds the enum from string
35
35
  # @param [String] The enum value in the form of the string
@@ -99,7 +99,7 @@ module AsposeSlidesCloud
99
99
  if attributes.has_key?(:'CommentsAreaColor')
100
100
  self.comments_area_color = attributes[:'CommentsAreaColor']
101
101
  end
102
- self.format = "image"
102
+ self.format = 'image'
103
103
  end
104
104
 
105
105
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -90,7 +90,7 @@ module AsposeSlidesCloud
90
90
  if attributes.has_key?(:'Superscript')
91
91
  self.superscript = attributes[:'Superscript']
92
92
  end
93
- self.type = "LeftSubSuperscriptElement"
93
+ self.type = 'LeftSubSuperscriptElement'
94
94
  end
95
95
 
96
96
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -90,7 +90,7 @@ module AsposeSlidesCloud
90
90
  if attributes.has_key?(:'UpperLimit')
91
91
  self.upper_limit = attributes[:'UpperLimit']
92
92
  end
93
- self.type = "Limit"
93
+ self.type = 'Limit'
94
94
  end
95
95
 
96
96
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -81,7 +81,7 @@ module AsposeSlidesCloud
81
81
  if attributes.has_key?(:'Y')
82
82
  self.y = attributes[:'Y']
83
83
  end
84
- self.type = "LineTo"
84
+ self.type = 'LineTo'
85
85
  end
86
86
 
87
87
  # Show invalid properties with the reasons. Usually used together with valid?