aspose_slides_cloud 20.4.0 → 20.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +61 -61
  3. data/TestData/ChartTest.pptx +0 -0
  4. data/TestData/Sections.pptx +0 -0
  5. data/TestData/TemplatingCVDataWithBase64.xml +22 -22
  6. data/lib/aspose_slides_cloud.rb +212 -205
  7. data/lib/aspose_slides_cloud/api/slides_api.rb +10979 -7974
  8. data/lib/aspose_slides_cloud/api/slides_api_requests.rb +4146 -3099
  9. data/lib/aspose_slides_cloud/api_client.rb +432 -429
  10. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +244 -261
  11. data/lib/aspose_slides_cloud/models/add_master_slide.rb +259 -276
  12. data/lib/aspose_slides_cloud/models/add_shape.rb +239 -256
  13. data/lib/aspose_slides_cloud/models/add_slide.rb +269 -286
  14. data/lib/aspose_slides_cloud/models/api_info.rb +217 -205
  15. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +285 -273
  16. data/lib/aspose_slides_cloud/models/audio_frame.rb +359 -573
  17. data/lib/aspose_slides_cloud/models/axes.rb +237 -225
  18. data/lib/aspose_slides_cloud/models/axis.rb +699 -687
  19. data/lib/aspose_slides_cloud/models/base64_input_file.rb +230 -256
  20. data/lib/aspose_slides_cloud/models/blur_effect.rb +227 -215
  21. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +299 -0
  22. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +212 -230
  23. data/lib/aspose_slides_cloud/models/bubble_series.rb +248 -428
  24. data/lib/aspose_slides_cloud/models/chart.rb +365 -553
  25. data/lib/aspose_slides_cloud/models/chart_category.rb +271 -0
  26. data/lib/aspose_slides_cloud/models/chart_title.rb +222 -210
  27. data/lib/aspose_slides_cloud/models/chart_wall.rb +281 -269
  28. data/lib/aspose_slides_cloud/models/color_scheme.rb +317 -327
  29. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +217 -0
  30. data/lib/aspose_slides_cloud/models/connector.rb +275 -487
  31. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +209 -197
  32. data/lib/aspose_slides_cloud/models/{resource_uri_element.rb → data_point.rb} +197 -195
  33. data/lib/aspose_slides_cloud/models/disc_usage.rb +227 -215
  34. data/lib/aspose_slides_cloud/models/document.rb +257 -267
  35. data/lib/aspose_slides_cloud/models/document_properties.rb +209 -219
  36. data/lib/aspose_slides_cloud/models/document_property.rb +232 -242
  37. data/lib/aspose_slides_cloud/models/document_replace_result.rb +218 -282
  38. data/lib/aspose_slides_cloud/models/effect.rb +424 -412
  39. data/lib/aspose_slides_cloud/models/effect_format.rb +277 -265
  40. data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
  41. data/lib/aspose_slides_cloud/models/error.rb +237 -225
  42. data/lib/aspose_slides_cloud/models/error_details.rb +222 -210
  43. data/lib/aspose_slides_cloud/models/export_format.rb +60 -59
  44. data/lib/aspose_slides_cloud/models/export_options.rb +216 -194
  45. data/lib/aspose_slides_cloud/models/file_version.rb +225 -270
  46. data/lib/aspose_slides_cloud/models/file_versions.rb +209 -197
  47. data/lib/aspose_slides_cloud/models/files_list.rb +209 -197
  48. data/lib/aspose_slides_cloud/models/files_upload_result.rb +221 -209
  49. data/lib/aspose_slides_cloud/models/fill_format.rb +240 -228
  50. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +246 -234
  51. data/lib/aspose_slides_cloud/models/font_scheme.rb +227 -237
  52. data/lib/aspose_slides_cloud/models/font_set.rb +227 -215
  53. data/lib/aspose_slides_cloud/models/format_scheme.rb +245 -255
  54. data/lib/aspose_slides_cloud/models/geometry_shape.rb +260 -439
  55. data/lib/aspose_slides_cloud/models/glow_effect.rb +222 -210
  56. data/lib/aspose_slides_cloud/models/gradient_fill.rb +342 -359
  57. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +222 -210
  58. data/lib/aspose_slides_cloud/models/graphical_object.rb +234 -422
  59. data/lib/aspose_slides_cloud/models/group_shape.rb +234 -422
  60. data/lib/aspose_slides_cloud/models/header_footer.rb +247 -0
  61. data/lib/aspose_slides_cloud/models/html_export_options.rb +421 -420
  62. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +197 -195
  63. data/lib/aspose_slides_cloud/models/image.rb +237 -247
  64. data/lib/aspose_slides_cloud/models/image_export_format.rb +43 -43
  65. data/lib/aspose_slides_cloud/models/image_export_options.rb +299 -298
  66. data/lib/aspose_slides_cloud/models/images.rb +209 -219
  67. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +252 -240
  68. data/lib/aspose_slides_cloud/models/input.rb +227 -215
  69. data/lib/aspose_slides_cloud/models/input_file.rb +250 -238
  70. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +224 -212
  71. data/lib/aspose_slides_cloud/models/layout_slide.rb +278 -288
  72. data/lib/aspose_slides_cloud/models/layout_slides.rb +209 -219
  73. data/lib/aspose_slides_cloud/models/legend.rb +321 -309
  74. data/lib/aspose_slides_cloud/models/line_format.rb +389 -377
  75. data/lib/aspose_slides_cloud/models/master_slide.rb +231 -241
  76. data/lib/aspose_slides_cloud/models/master_slides.rb +209 -219
  77. data/lib/aspose_slides_cloud/models/merge.rb +231 -248
  78. data/lib/aspose_slides_cloud/models/merging_source.rb +219 -207
  79. data/lib/aspose_slides_cloud/models/no_fill.rb +219 -236
  80. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +217 -0
  81. data/lib/aspose_slides_cloud/models/notes_slide.rb +217 -227
  82. data/lib/aspose_slides_cloud/models/notes_slide_export_format.rb +43 -43
  83. data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +267 -0
  84. data/lib/aspose_slides_cloud/models/object_exist.rb +227 -215
  85. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +259 -447
  86. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +210 -200
  87. data/lib/aspose_slides_cloud/models/one_value_series.rb +248 -428
  88. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +209 -197
  89. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +252 -240
  90. data/lib/aspose_slides_cloud/models/output_file.rb +240 -228
  91. data/lib/aspose_slides_cloud/models/paragraph.rb +517 -527
  92. data/lib/aspose_slides_cloud/models/paragraphs.rb +209 -219
  93. data/lib/aspose_slides_cloud/models/path_input_file.rb +240 -266
  94. data/lib/aspose_slides_cloud/models/path_output_file.rb +239 -256
  95. data/lib/aspose_slides_cloud/models/pattern_fill.rb +266 -283
  96. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +547 -519
  97. data/lib/aspose_slides_cloud/models/picture_fill.rb +351 -368
  98. data/lib/aspose_slides_cloud/models/picture_frame.rb +245 -459
  99. data/lib/aspose_slides_cloud/models/pipeline.rb +219 -207
  100. data/lib/aspose_slides_cloud/models/placeholder.rb +325 -335
  101. data/lib/aspose_slides_cloud/models/placeholders.rb +209 -219
  102. data/lib/aspose_slides_cloud/models/plot_area.rb +311 -299
  103. data/lib/aspose_slides_cloud/models/portion.rb +589 -599
  104. data/lib/aspose_slides_cloud/models/portions.rb +209 -219
  105. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +247 -246
  106. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +229 -217
  107. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +221 -209
  108. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +286 -274
  109. data/lib/aspose_slides_cloud/models/reflection_effect.rb +441 -429
  110. data/lib/aspose_slides_cloud/models/remove_shape.rb +229 -246
  111. data/lib/aspose_slides_cloud/models/remove_slide.rb +234 -251
  112. data/lib/aspose_slides_cloud/models/reorder_slide.rb +249 -266
  113. data/lib/aspose_slides_cloud/models/replace_text.rb +269 -286
  114. data/lib/aspose_slides_cloud/models/request_input_file.rb +235 -261
  115. data/lib/aspose_slides_cloud/models/reset_slide.rb +234 -251
  116. data/lib/aspose_slides_cloud/models/resource_base.rb +219 -207
  117. data/lib/aspose_slides_cloud/models/resource_uri.rb +237 -225
  118. data/lib/aspose_slides_cloud/models/response_output_file.rb +219 -236
  119. data/lib/aspose_slides_cloud/models/save.rb +266 -283
  120. data/lib/aspose_slides_cloud/models/save_shape.rb +276 -293
  121. data/lib/aspose_slides_cloud/models/save_slide.rb +301 -318
  122. data/lib/aspose_slides_cloud/models/scale_type.rb +41 -41
  123. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +225 -215
  124. data/lib/aspose_slides_cloud/models/scatter_series.rb +248 -428
  125. data/lib/aspose_slides_cloud/models/section.rb +234 -0
  126. data/lib/aspose_slides_cloud/models/sections.rb +209 -0
  127. data/lib/aspose_slides_cloud/models/series.rb +422 -389
  128. data/lib/aspose_slides_cloud/models/series_marker.rb +281 -269
  129. data/lib/aspose_slides_cloud/models/shape.rb +255 -467
  130. data/lib/aspose_slides_cloud/models/shape_base.rb +375 -406
  131. data/lib/aspose_slides_cloud/models/shape_export_format.rb +44 -44
  132. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +286 -274
  133. data/lib/aspose_slides_cloud/models/shape_thumbnail_bounds.rb +41 -41
  134. data/lib/aspose_slides_cloud/models/shapes.rb +209 -219
  135. data/lib/aspose_slides_cloud/models/size_type.rb +55 -55
  136. data/lib/aspose_slides_cloud/models/slide.rb +322 -332
  137. data/lib/aspose_slides_cloud/models/slide_animation.rb +221 -231
  138. data/lib/aspose_slides_cloud/models/slide_background.rb +266 -276
  139. data/lib/aspose_slides_cloud/models/slide_comment.rb +239 -227
  140. data/lib/aspose_slides_cloud/models/slide_comments.rb +209 -219
  141. data/lib/aspose_slides_cloud/models/slide_export_format.rb +59 -58
  142. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +223 -347
  143. data/lib/aspose_slides_cloud/models/slides.rb +209 -219
  144. data/lib/aspose_slides_cloud/models/smart_art.rb +342 -530
  145. data/lib/aspose_slides_cloud/models/smart_art_node.rb +293 -281
  146. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +235 -422
  147. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +212 -200
  148. data/lib/aspose_slides_cloud/models/solid_fill.rb +229 -246
  149. data/lib/aspose_slides_cloud/models/split_document_result.rb +209 -219
  150. data/lib/aspose_slides_cloud/models/storage_exist.rb +212 -200
  151. data/lib/aspose_slides_cloud/models/storage_file.rb +257 -245
  152. data/lib/aspose_slides_cloud/models/svg_export_options.rb +379 -378
  153. data/lib/aspose_slides_cloud/models/swf_export_options.rb +529 -528
  154. data/lib/aspose_slides_cloud/models/table.rb +350 -538
  155. data/lib/aspose_slides_cloud/models/table_cell.rb +403 -391
  156. data/lib/aspose_slides_cloud/models/table_column.rb +212 -200
  157. data/lib/aspose_slides_cloud/models/table_row.rb +239 -227
  158. data/lib/aspose_slides_cloud/models/task.rb +240 -228
  159. data/lib/aspose_slides_cloud/models/text_item.rb +217 -205
  160. data/lib/aspose_slides_cloud/models/text_items.rb +209 -219
  161. data/lib/aspose_slides_cloud/models/theme.rb +237 -247
  162. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +423 -422
  163. data/lib/aspose_slides_cloud/models/update_background.rb +241 -258
  164. data/lib/aspose_slides_cloud/models/update_shape.rb +239 -256
  165. data/lib/aspose_slides_cloud/models/video_frame.rb +329 -543
  166. data/lib/aspose_slides_cloud/models/view_properties.rb +357 -0
  167. data/lib/aspose_slides_cloud/models/waterfall_chart_data_point.rb +206 -0
  168. data/lib/aspose_slides_cloud/models/waterfall_series.rb +247 -0
  169. data/lib/aspose_slides_cloud/models/xps_export_options.rb +243 -242
  170. data/lib/aspose_slides_cloud/type_registry.rb +320 -0
  171. data/lib/aspose_slides_cloud/version.rb +25 -25
  172. data/spec/api/slides_api_spec.rb +35926 -24406
  173. data/spec/extra/extra_spec.rb +235 -101
  174. data/spec/spec_utils.rb +183 -176
  175. data/testConfig.json +7 -7
  176. data/testRules.json +472 -340
  177. metadata +18 -3
@@ -1,543 +1,329 @@
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 VideoFrame resource.
27
- class VideoFrame
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
- # Gets or sets the name.
35
- attr_accessor :name
36
-
37
- # Gets or sets the width.
38
- attr_accessor :width
39
-
40
- # Gets or sets the height.
41
- attr_accessor :height
42
-
43
- # Gets or sets the alternative text.
44
- attr_accessor :alternative_text
45
-
46
- # The title of alternative text associated with the shape.
47
- attr_accessor :alternative_text_title
48
-
49
- # Gets or sets a value indicating whether this ShapeBase is hidden.
50
- attr_accessor :hidden
51
-
52
- # Gets or sets the X
53
- attr_accessor :x
54
-
55
- # Gets or sets the Y.
56
- attr_accessor :y
57
-
58
- # Gets z-order position of shape
59
- attr_accessor :z_order_position
60
-
61
- # Gets or sets the link to shapes.
62
- attr_accessor :shapes
63
-
64
- # Gets or sets the fill format.
65
- attr_accessor :fill_format
66
-
67
- # Gets or sets the effect format.
68
- attr_accessor :effect_format
69
-
70
- # Gets or sets the line format.
71
- attr_accessor :line_format
72
-
73
- # Shape type.
74
- attr_accessor :type
75
-
76
- # Combined shape type.
77
- attr_accessor :shape_type
78
-
79
- # Geometry shape type.
80
- attr_accessor :geometry_shape_type
81
-
82
- # Determines whether a video is shown in full screen mode.
83
- attr_accessor :full_screen_mode
84
-
85
- # Determines whether a VideoFrame is hidden.
86
- attr_accessor :hide_at_showing
87
-
88
- # Determines whether a video is looped.
89
- attr_accessor :play_loop_mode
90
-
91
- # Returns or sets the video play mode.
92
- attr_accessor :play_mode
93
-
94
- # Determines whether a video is automatically rewinded to start as soon as the movie has finished playing
95
- attr_accessor :rewind_video
96
-
97
- # Returns or sets the audio volume.
98
- attr_accessor :volume
99
-
100
- # Video data encoded in base64.
101
- attr_accessor :base64_data
102
-
103
- class EnumAttributeValidator
104
- attr_reader :datatype
105
- attr_reader :allowable_values
106
-
107
- def initialize(datatype, allowable_values)
108
- @allowable_values = allowable_values.map do |value|
109
- case datatype.to_s
110
- when /Integer/i
111
- value.to_i
112
- when /Float/i
113
- value.to_f
114
- else
115
- value
116
- end
117
- end
118
- end
119
-
120
- def valid?(value)
121
- !value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
122
- end
123
- end
124
-
125
- # Attribute mapping from ruby-style variable name to JSON key.
126
- def self.attribute_map
127
- {
128
- :'self_uri' => :'SelfUri',
129
- :'alternate_links' => :'AlternateLinks',
130
- :'name' => :'Name',
131
- :'width' => :'Width',
132
- :'height' => :'Height',
133
- :'alternative_text' => :'AlternativeText',
134
- :'alternative_text_title' => :'AlternativeTextTitle',
135
- :'hidden' => :'Hidden',
136
- :'x' => :'X',
137
- :'y' => :'Y',
138
- :'z_order_position' => :'ZOrderPosition',
139
- :'shapes' => :'Shapes',
140
- :'fill_format' => :'FillFormat',
141
- :'effect_format' => :'EffectFormat',
142
- :'line_format' => :'LineFormat',
143
- :'type' => :'Type',
144
- :'shape_type' => :'ShapeType',
145
- :'geometry_shape_type' => :'GeometryShapeType',
146
- :'full_screen_mode' => :'FullScreenMode',
147
- :'hide_at_showing' => :'HideAtShowing',
148
- :'play_loop_mode' => :'PlayLoopMode',
149
- :'play_mode' => :'PlayMode',
150
- :'rewind_video' => :'RewindVideo',
151
- :'volume' => :'Volume',
152
- :'base64_data' => :'Base64Data'
153
- }
154
- end
155
-
156
- # Attribute type mapping.
157
- def self.swagger_types
158
- {
159
- :'self_uri' => :'ResourceUri',
160
- :'alternate_links' => :'Array<ResourceUri>',
161
- :'name' => :'String',
162
- :'width' => :'Float',
163
- :'height' => :'Float',
164
- :'alternative_text' => :'String',
165
- :'alternative_text_title' => :'String',
166
- :'hidden' => :'BOOLEAN',
167
- :'x' => :'Float',
168
- :'y' => :'Float',
169
- :'z_order_position' => :'Integer',
170
- :'shapes' => :'ResourceUriElement',
171
- :'fill_format' => :'FillFormat',
172
- :'effect_format' => :'EffectFormat',
173
- :'line_format' => :'LineFormat',
174
- :'type' => :'String',
175
- :'shape_type' => :'String',
176
- :'geometry_shape_type' => :'String',
177
- :'full_screen_mode' => :'BOOLEAN',
178
- :'hide_at_showing' => :'BOOLEAN',
179
- :'play_loop_mode' => :'BOOLEAN',
180
- :'play_mode' => :'String',
181
- :'rewind_video' => :'BOOLEAN',
182
- :'volume' => :'String',
183
- :'base64_data' => :'String'
184
- }
185
- end
186
-
187
- # Initializes the object
188
- # @param [Hash] attributes Model attributes in the form of hash
189
- def initialize(attributes = {})
190
- return unless attributes.is_a?(Hash)
191
-
192
- # convert string to symbol for hash key
193
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
194
-
195
- if attributes.has_key?(:'SelfUri')
196
- self.self_uri = attributes[:'SelfUri']
197
- end
198
-
199
- if attributes.has_key?(:'AlternateLinks')
200
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
201
- self.alternate_links = value
202
- end
203
- end
204
-
205
- if attributes.has_key?(:'Name')
206
- self.name = attributes[:'Name']
207
- end
208
-
209
- if attributes.has_key?(:'Width')
210
- self.width = attributes[:'Width']
211
- end
212
-
213
- if attributes.has_key?(:'Height')
214
- self.height = attributes[:'Height']
215
- end
216
-
217
- if attributes.has_key?(:'AlternativeText')
218
- self.alternative_text = attributes[:'AlternativeText']
219
- end
220
-
221
- if attributes.has_key?(:'AlternativeTextTitle')
222
- self.alternative_text_title = attributes[:'AlternativeTextTitle']
223
- end
224
-
225
- if attributes.has_key?(:'Hidden')
226
- self.hidden = attributes[:'Hidden']
227
- end
228
-
229
- if attributes.has_key?(:'X')
230
- self.x = attributes[:'X']
231
- end
232
-
233
- if attributes.has_key?(:'Y')
234
- self.y = attributes[:'Y']
235
- end
236
-
237
- if attributes.has_key?(:'ZOrderPosition')
238
- self.z_order_position = attributes[:'ZOrderPosition']
239
- end
240
-
241
- if attributes.has_key?(:'Shapes')
242
- self.shapes = attributes[:'Shapes']
243
- end
244
-
245
- if attributes.has_key?(:'FillFormat')
246
- self.fill_format = attributes[:'FillFormat']
247
- end
248
-
249
- if attributes.has_key?(:'EffectFormat')
250
- self.effect_format = attributes[:'EffectFormat']
251
- end
252
-
253
- if attributes.has_key?(:'LineFormat')
254
- self.line_format = attributes[:'LineFormat']
255
- end
256
-
257
- if attributes.has_key?(:'Type')
258
- self.type = attributes[:'Type']
259
- else
260
- self.type = "VideoFrame"
261
- end
262
-
263
- if attributes.has_key?(:'ShapeType')
264
- self.shape_type = attributes[:'ShapeType']
265
- else
266
- self.shape_type = "VideoFrame"
267
- end
268
-
269
- if attributes.has_key?(:'GeometryShapeType')
270
- self.geometry_shape_type = attributes[:'GeometryShapeType']
271
- end
272
-
273
- if attributes.has_key?(:'FullScreenMode')
274
- self.full_screen_mode = attributes[:'FullScreenMode']
275
- end
276
-
277
- if attributes.has_key?(:'HideAtShowing')
278
- self.hide_at_showing = attributes[:'HideAtShowing']
279
- end
280
-
281
- if attributes.has_key?(:'PlayLoopMode')
282
- self.play_loop_mode = attributes[:'PlayLoopMode']
283
- end
284
-
285
- if attributes.has_key?(:'PlayMode')
286
- self.play_mode = attributes[:'PlayMode']
287
- end
288
-
289
- if attributes.has_key?(:'RewindVideo')
290
- self.rewind_video = attributes[:'RewindVideo']
291
- end
292
-
293
- if attributes.has_key?(:'Volume')
294
- self.volume = attributes[:'Volume']
295
- end
296
-
297
- if attributes.has_key?(:'Base64Data')
298
- self.base64_data = attributes[:'Base64Data']
299
- end
300
- end
301
-
302
- # Show invalid properties with the reasons. Usually used together with valid?
303
- # @return Array for valid properties with the reasons
304
- def list_invalid_properties
305
- invalid_properties = Array.new
306
- if @z_order_position.nil?
307
- invalid_properties.push('invalid value for "z_order_position", z_order_position cannot be nil.')
308
- end
309
-
310
- if @type.nil?
311
- invalid_properties.push('invalid value for "type", type cannot be nil.')
312
- end
313
-
314
- if @shape_type.nil?
315
- invalid_properties.push('invalid value for "shape_type", shape_type cannot be nil.')
316
- end
317
-
318
- if @geometry_shape_type.nil?
319
- invalid_properties.push('invalid value for "geometry_shape_type", geometry_shape_type cannot be nil.')
320
- end
321
-
322
- invalid_properties
323
- end
324
-
325
- # Check to see if the all the properties in the model are valid
326
- # @return true if the model is valid
327
- def valid?
328
- return false if @z_order_position.nil?
329
- return false if @type.nil?
330
- type_validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
331
- return false unless type_validator.valid?(@type)
332
- return false if @shape_type.nil?
333
- shape_type_validator = EnumAttributeValidator.new('String', ['Custom', 'Line', 'LineInverse', 'Triangle', 'RightTriangle', 'Rectangle', 'Diamond', 'Parallelogram', 'Trapezoid', 'NonIsoscelesTrapezoid', 'Pentagon', 'Hexagon', 'Heptagon', 'Octagon', 'Decagon', 'Dodecagon', 'FourPointedStar', 'FivePointedStar', 'SixPointedStar', 'SevenPointedStar', 'EightPointedStar', 'TenPointedStar', 'TwelvePointedStar', 'SixteenPointedStar', 'TwentyFourPointedStar', 'ThirtyTwoPointedStar', 'RoundCornerRectangle', 'OneRoundCornerRectangle', 'TwoSamesideRoundCornerRectangle', 'TwoDiagonalRoundCornerRectangle', 'OneSnipOneRoundCornerRectangle', 'OneSnipCornerRectangle', 'TwoSamesideSnipCornerRectangle', 'TwoDiagonalSnipCornerRectangle', 'Plaque', 'Ellipse', 'Teardrop', 'HomePlate', 'Chevron', 'PieWedge', 'Pie', 'BlockArc', 'Donut', 'NoSmoking', 'RightArrow', 'LeftArrow', 'UpArrow', 'DownArrow', 'StripedRightArrow', 'NotchedRightArrow', 'BentUpArrow', 'LeftRightArrow', 'UpDownArrow', 'LeftUpArrow', 'LeftRightUpArrow', 'QuadArrow', 'CalloutLeftArrow', 'CalloutRightArrow', 'CalloutUpArrow', 'CalloutDownArrow', 'CalloutLeftRightArrow', 'CalloutUpDownArrow', 'CalloutQuadArrow', 'BentArrow', 'UTurnArrow', 'CircularArrow', 'LeftCircularArrow', 'LeftRightCircularArrow', 'CurvedRightArrow', 'CurvedLeftArrow', 'CurvedUpArrow', 'CurvedDownArrow', 'SwooshArrow', 'Cube', 'Can', 'LightningBolt', 'Heart', 'Sun', 'Moon', 'SmileyFace', 'IrregularSeal1', 'IrregularSeal2', 'FoldedCorner', 'Bevel', 'Frame', 'HalfFrame', 'Corner', 'DiagonalStripe', 'Chord', 'CurvedArc', 'LeftBracket', 'RightBracket', 'LeftBrace', 'RightBrace', 'BracketPair', 'BracePair', 'StraightConnector1', 'BentConnector2', 'BentConnector3', 'BentConnector4', 'BentConnector5', 'CurvedConnector2', 'CurvedConnector3', 'CurvedConnector4', 'CurvedConnector5', 'Callout1', 'Callout2', 'Callout3', 'Callout1WithAccent', 'Callout2WithAccent', 'Callout3WithAccent', 'Callout1WithBorder', 'Callout2WithBorder', 'Callout3WithBorder', 'Callout1WithBorderAndAccent', 'Callout2WithBorderAndAccent', 'Callout3WithBorderAndAccent', 'CalloutWedgeRectangle', 'CalloutWedgeRoundRectangle', 'CalloutWedgeEllipse', 'CalloutCloud', 'Cloud', 'Ribbon', 'Ribbon2', 'EllipseRibbon', 'EllipseRibbon2', 'LeftRightRibbon', 'VerticalScroll', 'HorizontalScroll', 'Wave', 'DoubleWave', 'Plus', 'ProcessFlow', 'DecisionFlow', 'InputOutputFlow', 'PredefinedProcessFlow', 'InternalStorageFlow', 'DocumentFlow', 'MultiDocumentFlow', 'TerminatorFlow', 'PreparationFlow', 'ManualInputFlow', 'ManualOperationFlow', 'ConnectorFlow', 'PunchedCardFlow', 'PunchedTapeFlow', 'SummingJunctionFlow', 'OrFlow', 'CollateFlow', 'SortFlow', 'ExtractFlow', 'MergeFlow', 'OfflineStorageFlow', 'OnlineStorageFlow', 'MagneticTapeFlow', 'MagneticDiskFlow', 'MagneticDrumFlow', 'DisplayFlow', 'DelayFlow', 'AlternateProcessFlow', 'OffPageConnectorFlow', 'BlankButton', 'HomeButton', 'HelpButton', 'InformationButton', 'ForwardOrNextButton', 'BackOrPreviousButton', 'EndButton', 'BeginningButton', 'ReturnButton', 'DocumentButton', 'SoundButton', 'MovieButton', 'Gear6', 'Gear9', 'Funnel', 'PlusMath', 'MinusMath', 'MultiplyMath', 'DivideMath', 'EqualMath', 'NotEqualMath', 'CornerTabs', 'SquareTabs', 'PlaqueTabs', 'ChartX', 'ChartStar', 'ChartPlus', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'Diagram', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'NotDefined'])
334
- return false unless shape_type_validator.valid?(@shape_type)
335
- return false if @geometry_shape_type.nil?
336
- geometry_shape_type_validator = EnumAttributeValidator.new('String', ['Custom', 'Line', 'LineInverse', 'Triangle', 'RightTriangle', 'Rectangle', 'Diamond', 'Parallelogram', 'Trapezoid', 'NonIsoscelesTrapezoid', 'Pentagon', 'Hexagon', 'Heptagon', 'Octagon', 'Decagon', 'Dodecagon', 'FourPointedStar', 'FivePointedStar', 'SixPointedStar', 'SevenPointedStar', 'EightPointedStar', 'TenPointedStar', 'TwelvePointedStar', 'SixteenPointedStar', 'TwentyFourPointedStar', 'ThirtyTwoPointedStar', 'RoundCornerRectangle', 'OneRoundCornerRectangle', 'TwoSamesideRoundCornerRectangle', 'TwoDiagonalRoundCornerRectangle', 'OneSnipOneRoundCornerRectangle', 'OneSnipCornerRectangle', 'TwoSamesideSnipCornerRectangle', 'TwoDiagonalSnipCornerRectangle', 'Plaque', 'Ellipse', 'Teardrop', 'HomePlate', 'Chevron', 'PieWedge', 'Pie', 'BlockArc', 'Donut', 'NoSmoking', 'RightArrow', 'LeftArrow', 'UpArrow', 'DownArrow', 'StripedRightArrow', 'NotchedRightArrow', 'BentUpArrow', 'LeftRightArrow', 'UpDownArrow', 'LeftUpArrow', 'LeftRightUpArrow', 'QuadArrow', 'CalloutLeftArrow', 'CalloutRightArrow', 'CalloutUpArrow', 'CalloutDownArrow', 'CalloutLeftRightArrow', 'CalloutUpDownArrow', 'CalloutQuadArrow', 'BentArrow', 'UTurnArrow', 'CircularArrow', 'LeftCircularArrow', 'LeftRightCircularArrow', 'CurvedRightArrow', 'CurvedLeftArrow', 'CurvedUpArrow', 'CurvedDownArrow', 'SwooshArrow', 'Cube', 'Can', 'LightningBolt', 'Heart', 'Sun', 'Moon', 'SmileyFace', 'IrregularSeal1', 'IrregularSeal2', 'FoldedCorner', 'Bevel', 'Frame', 'HalfFrame', 'Corner', 'DiagonalStripe', 'Chord', 'CurvedArc', 'LeftBracket', 'RightBracket', 'LeftBrace', 'RightBrace', 'BracketPair', 'BracePair', 'StraightConnector1', 'BentConnector2', 'BentConnector3', 'BentConnector4', 'BentConnector5', 'CurvedConnector2', 'CurvedConnector3', 'CurvedConnector4', 'CurvedConnector5', 'Callout1', 'Callout2', 'Callout3', 'Callout1WithAccent', 'Callout2WithAccent', 'Callout3WithAccent', 'Callout1WithBorder', 'Callout2WithBorder', 'Callout3WithBorder', 'Callout1WithBorderAndAccent', 'Callout2WithBorderAndAccent', 'Callout3WithBorderAndAccent', 'CalloutWedgeRectangle', 'CalloutWedgeRoundRectangle', 'CalloutWedgeEllipse', 'CalloutCloud', 'Cloud', 'Ribbon', 'Ribbon2', 'EllipseRibbon', 'EllipseRibbon2', 'LeftRightRibbon', 'VerticalScroll', 'HorizontalScroll', 'Wave', 'DoubleWave', 'Plus', 'ProcessFlow', 'DecisionFlow', 'InputOutputFlow', 'PredefinedProcessFlow', 'InternalStorageFlow', 'DocumentFlow', 'MultiDocumentFlow', 'TerminatorFlow', 'PreparationFlow', 'ManualInputFlow', 'ManualOperationFlow', 'ConnectorFlow', 'PunchedCardFlow', 'PunchedTapeFlow', 'SummingJunctionFlow', 'OrFlow', 'CollateFlow', 'SortFlow', 'ExtractFlow', 'MergeFlow', 'OfflineStorageFlow', 'OnlineStorageFlow', 'MagneticTapeFlow', 'MagneticDiskFlow', 'MagneticDrumFlow', 'DisplayFlow', 'DelayFlow', 'AlternateProcessFlow', 'OffPageConnectorFlow', 'BlankButton', 'HomeButton', 'HelpButton', 'InformationButton', 'ForwardOrNextButton', 'BackOrPreviousButton', 'EndButton', 'BeginningButton', 'ReturnButton', 'DocumentButton', 'SoundButton', 'MovieButton', 'Gear6', 'Gear9', 'Funnel', 'PlusMath', 'MinusMath', 'MultiplyMath', 'DivideMath', 'EqualMath', 'NotEqualMath', 'CornerTabs', 'SquareTabs', 'PlaqueTabs', 'ChartX', 'ChartStar', 'ChartPlus', 'NotDefined'])
337
- return false unless geometry_shape_type_validator.valid?(@geometry_shape_type)
338
- play_mode_validator = EnumAttributeValidator.new('String', ['Auto', 'OnClick', 'AllSlides', 'Mixed'])
339
- return false unless play_mode_validator.valid?(@play_mode)
340
- volume_validator = EnumAttributeValidator.new('String', ['Mute', 'Low', 'Medium', 'Loud', 'Mixed'])
341
- return false unless volume_validator.valid?(@volume)
342
- true
343
- end
344
-
345
- # Custom attribute writer method checking allowed values (enum).
346
- # @param [Object] type Object to be assigned
347
- def type=(type)
348
- validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
349
- unless validator.valid?(type)
350
- fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
351
- end
352
- @type = type
353
- end
354
-
355
- # Custom attribute writer method checking allowed values (enum).
356
- # @param [Object] shape_type Object to be assigned
357
- def shape_type=(shape_type)
358
- validator = EnumAttributeValidator.new('String', ['Custom', 'Line', 'LineInverse', 'Triangle', 'RightTriangle', 'Rectangle', 'Diamond', 'Parallelogram', 'Trapezoid', 'NonIsoscelesTrapezoid', 'Pentagon', 'Hexagon', 'Heptagon', 'Octagon', 'Decagon', 'Dodecagon', 'FourPointedStar', 'FivePointedStar', 'SixPointedStar', 'SevenPointedStar', 'EightPointedStar', 'TenPointedStar', 'TwelvePointedStar', 'SixteenPointedStar', 'TwentyFourPointedStar', 'ThirtyTwoPointedStar', 'RoundCornerRectangle', 'OneRoundCornerRectangle', 'TwoSamesideRoundCornerRectangle', 'TwoDiagonalRoundCornerRectangle', 'OneSnipOneRoundCornerRectangle', 'OneSnipCornerRectangle', 'TwoSamesideSnipCornerRectangle', 'TwoDiagonalSnipCornerRectangle', 'Plaque', 'Ellipse', 'Teardrop', 'HomePlate', 'Chevron', 'PieWedge', 'Pie', 'BlockArc', 'Donut', 'NoSmoking', 'RightArrow', 'LeftArrow', 'UpArrow', 'DownArrow', 'StripedRightArrow', 'NotchedRightArrow', 'BentUpArrow', 'LeftRightArrow', 'UpDownArrow', 'LeftUpArrow', 'LeftRightUpArrow', 'QuadArrow', 'CalloutLeftArrow', 'CalloutRightArrow', 'CalloutUpArrow', 'CalloutDownArrow', 'CalloutLeftRightArrow', 'CalloutUpDownArrow', 'CalloutQuadArrow', 'BentArrow', 'UTurnArrow', 'CircularArrow', 'LeftCircularArrow', 'LeftRightCircularArrow', 'CurvedRightArrow', 'CurvedLeftArrow', 'CurvedUpArrow', 'CurvedDownArrow', 'SwooshArrow', 'Cube', 'Can', 'LightningBolt', 'Heart', 'Sun', 'Moon', 'SmileyFace', 'IrregularSeal1', 'IrregularSeal2', 'FoldedCorner', 'Bevel', 'Frame', 'HalfFrame', 'Corner', 'DiagonalStripe', 'Chord', 'CurvedArc', 'LeftBracket', 'RightBracket', 'LeftBrace', 'RightBrace', 'BracketPair', 'BracePair', 'StraightConnector1', 'BentConnector2', 'BentConnector3', 'BentConnector4', 'BentConnector5', 'CurvedConnector2', 'CurvedConnector3', 'CurvedConnector4', 'CurvedConnector5', 'Callout1', 'Callout2', 'Callout3', 'Callout1WithAccent', 'Callout2WithAccent', 'Callout3WithAccent', 'Callout1WithBorder', 'Callout2WithBorder', 'Callout3WithBorder', 'Callout1WithBorderAndAccent', 'Callout2WithBorderAndAccent', 'Callout3WithBorderAndAccent', 'CalloutWedgeRectangle', 'CalloutWedgeRoundRectangle', 'CalloutWedgeEllipse', 'CalloutCloud', 'Cloud', 'Ribbon', 'Ribbon2', 'EllipseRibbon', 'EllipseRibbon2', 'LeftRightRibbon', 'VerticalScroll', 'HorizontalScroll', 'Wave', 'DoubleWave', 'Plus', 'ProcessFlow', 'DecisionFlow', 'InputOutputFlow', 'PredefinedProcessFlow', 'InternalStorageFlow', 'DocumentFlow', 'MultiDocumentFlow', 'TerminatorFlow', 'PreparationFlow', 'ManualInputFlow', 'ManualOperationFlow', 'ConnectorFlow', 'PunchedCardFlow', 'PunchedTapeFlow', 'SummingJunctionFlow', 'OrFlow', 'CollateFlow', 'SortFlow', 'ExtractFlow', 'MergeFlow', 'OfflineStorageFlow', 'OnlineStorageFlow', 'MagneticTapeFlow', 'MagneticDiskFlow', 'MagneticDrumFlow', 'DisplayFlow', 'DelayFlow', 'AlternateProcessFlow', 'OffPageConnectorFlow', 'BlankButton', 'HomeButton', 'HelpButton', 'InformationButton', 'ForwardOrNextButton', 'BackOrPreviousButton', 'EndButton', 'BeginningButton', 'ReturnButton', 'DocumentButton', 'SoundButton', 'MovieButton', 'Gear6', 'Gear9', 'Funnel', 'PlusMath', 'MinusMath', 'MultiplyMath', 'DivideMath', 'EqualMath', 'NotEqualMath', 'CornerTabs', 'SquareTabs', 'PlaqueTabs', 'ChartX', 'ChartStar', 'ChartPlus', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'Diagram', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'NotDefined'])
359
- unless validator.valid?(shape_type)
360
- fail ArgumentError, 'invalid value for "shape_type", must be one of #{validator.allowable_values}.'
361
- end
362
- @shape_type = shape_type
363
- end
364
-
365
- # Custom attribute writer method checking allowed values (enum).
366
- # @param [Object] geometry_shape_type Object to be assigned
367
- def geometry_shape_type=(geometry_shape_type)
368
- validator = EnumAttributeValidator.new('String', ['Custom', 'Line', 'LineInverse', 'Triangle', 'RightTriangle', 'Rectangle', 'Diamond', 'Parallelogram', 'Trapezoid', 'NonIsoscelesTrapezoid', 'Pentagon', 'Hexagon', 'Heptagon', 'Octagon', 'Decagon', 'Dodecagon', 'FourPointedStar', 'FivePointedStar', 'SixPointedStar', 'SevenPointedStar', 'EightPointedStar', 'TenPointedStar', 'TwelvePointedStar', 'SixteenPointedStar', 'TwentyFourPointedStar', 'ThirtyTwoPointedStar', 'RoundCornerRectangle', 'OneRoundCornerRectangle', 'TwoSamesideRoundCornerRectangle', 'TwoDiagonalRoundCornerRectangle', 'OneSnipOneRoundCornerRectangle', 'OneSnipCornerRectangle', 'TwoSamesideSnipCornerRectangle', 'TwoDiagonalSnipCornerRectangle', 'Plaque', 'Ellipse', 'Teardrop', 'HomePlate', 'Chevron', 'PieWedge', 'Pie', 'BlockArc', 'Donut', 'NoSmoking', 'RightArrow', 'LeftArrow', 'UpArrow', 'DownArrow', 'StripedRightArrow', 'NotchedRightArrow', 'BentUpArrow', 'LeftRightArrow', 'UpDownArrow', 'LeftUpArrow', 'LeftRightUpArrow', 'QuadArrow', 'CalloutLeftArrow', 'CalloutRightArrow', 'CalloutUpArrow', 'CalloutDownArrow', 'CalloutLeftRightArrow', 'CalloutUpDownArrow', 'CalloutQuadArrow', 'BentArrow', 'UTurnArrow', 'CircularArrow', 'LeftCircularArrow', 'LeftRightCircularArrow', 'CurvedRightArrow', 'CurvedLeftArrow', 'CurvedUpArrow', 'CurvedDownArrow', 'SwooshArrow', 'Cube', 'Can', 'LightningBolt', 'Heart', 'Sun', 'Moon', 'SmileyFace', 'IrregularSeal1', 'IrregularSeal2', 'FoldedCorner', 'Bevel', 'Frame', 'HalfFrame', 'Corner', 'DiagonalStripe', 'Chord', 'CurvedArc', 'LeftBracket', 'RightBracket', 'LeftBrace', 'RightBrace', 'BracketPair', 'BracePair', 'StraightConnector1', 'BentConnector2', 'BentConnector3', 'BentConnector4', 'BentConnector5', 'CurvedConnector2', 'CurvedConnector3', 'CurvedConnector4', 'CurvedConnector5', 'Callout1', 'Callout2', 'Callout3', 'Callout1WithAccent', 'Callout2WithAccent', 'Callout3WithAccent', 'Callout1WithBorder', 'Callout2WithBorder', 'Callout3WithBorder', 'Callout1WithBorderAndAccent', 'Callout2WithBorderAndAccent', 'Callout3WithBorderAndAccent', 'CalloutWedgeRectangle', 'CalloutWedgeRoundRectangle', 'CalloutWedgeEllipse', 'CalloutCloud', 'Cloud', 'Ribbon', 'Ribbon2', 'EllipseRibbon', 'EllipseRibbon2', 'LeftRightRibbon', 'VerticalScroll', 'HorizontalScroll', 'Wave', 'DoubleWave', 'Plus', 'ProcessFlow', 'DecisionFlow', 'InputOutputFlow', 'PredefinedProcessFlow', 'InternalStorageFlow', 'DocumentFlow', 'MultiDocumentFlow', 'TerminatorFlow', 'PreparationFlow', 'ManualInputFlow', 'ManualOperationFlow', 'ConnectorFlow', 'PunchedCardFlow', 'PunchedTapeFlow', 'SummingJunctionFlow', 'OrFlow', 'CollateFlow', 'SortFlow', 'ExtractFlow', 'MergeFlow', 'OfflineStorageFlow', 'OnlineStorageFlow', 'MagneticTapeFlow', 'MagneticDiskFlow', 'MagneticDrumFlow', 'DisplayFlow', 'DelayFlow', 'AlternateProcessFlow', 'OffPageConnectorFlow', 'BlankButton', 'HomeButton', 'HelpButton', 'InformationButton', 'ForwardOrNextButton', 'BackOrPreviousButton', 'EndButton', 'BeginningButton', 'ReturnButton', 'DocumentButton', 'SoundButton', 'MovieButton', 'Gear6', 'Gear9', 'Funnel', 'PlusMath', 'MinusMath', 'MultiplyMath', 'DivideMath', 'EqualMath', 'NotEqualMath', 'CornerTabs', 'SquareTabs', 'PlaqueTabs', 'ChartX', 'ChartStar', 'ChartPlus', 'NotDefined'])
369
- unless validator.valid?(geometry_shape_type)
370
- fail ArgumentError, 'invalid value for "geometry_shape_type", must be one of #{validator.allowable_values}.'
371
- end
372
- @geometry_shape_type = geometry_shape_type
373
- end
374
-
375
- # Custom attribute writer method checking allowed values (enum).
376
- # @param [Object] play_mode Object to be assigned
377
- def play_mode=(play_mode)
378
- validator = EnumAttributeValidator.new('String', ['Auto', 'OnClick', 'AllSlides', 'Mixed'])
379
- unless validator.valid?(play_mode)
380
- fail ArgumentError, 'invalid value for "play_mode", must be one of #{validator.allowable_values}.'
381
- end
382
- @play_mode = play_mode
383
- end
384
-
385
- # Custom attribute writer method checking allowed values (enum).
386
- # @param [Object] volume Object to be assigned
387
- def volume=(volume)
388
- validator = EnumAttributeValidator.new('String', ['Mute', 'Low', 'Medium', 'Loud', 'Mixed'])
389
- unless validator.valid?(volume)
390
- fail ArgumentError, 'invalid value for "volume", must be one of #{validator.allowable_values}.'
391
- end
392
- @volume = volume
393
- end
394
-
395
- # Checks equality by comparing each attribute.
396
- # @param [Object] Object to be compared
397
- def ==(o)
398
- return true if self.equal?(o)
399
- self.class == o.class &&
400
- self_uri == o.self_uri &&
401
- alternate_links == o.alternate_links &&
402
- name == o.name &&
403
- width == o.width &&
404
- height == o.height &&
405
- alternative_text == o.alternative_text &&
406
- alternative_text_title == o.alternative_text_title &&
407
- hidden == o.hidden &&
408
- x == o.x &&
409
- y == o.y &&
410
- z_order_position == o.z_order_position &&
411
- shapes == o.shapes &&
412
- fill_format == o.fill_format &&
413
- effect_format == o.effect_format &&
414
- line_format == o.line_format &&
415
- type == o.type &&
416
- shape_type == o.shape_type &&
417
- geometry_shape_type == o.geometry_shape_type &&
418
- full_screen_mode == o.full_screen_mode &&
419
- hide_at_showing == o.hide_at_showing &&
420
- play_loop_mode == o.play_loop_mode &&
421
- play_mode == o.play_mode &&
422
- rewind_video == o.rewind_video &&
423
- volume == o.volume &&
424
- base64_data == o.base64_data
425
- end
426
-
427
- # @see the `==` method
428
- # @param [Object] Object to be compared
429
- def eql?(o)
430
- self == o
431
- end
432
-
433
- # Calculates hash code according to all attributes.
434
- # @return [Fixnum] Hash code
435
- def hash
436
- [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type, shape_type, geometry_shape_type, full_screen_mode, hide_at_showing, play_loop_mode, play_mode, rewind_video, volume, base64_data].hash
437
- end
438
-
439
- # Builds the object from hash
440
- # @param [Hash] attributes Model attributes in the form of hash
441
- # @return [Object] Returns the model itself
442
- def build_from_hash(attributes)
443
- return nil unless attributes.is_a?(Hash)
444
- self.class.swagger_types.each_pair do |key, type|
445
- if type =~ /\AArray<(.*)>/i
446
- # check to ensure the input is an array given that the the attribute
447
- # is documented as an array but the input is not
448
- if attributes[self.class.attribute_map[key]].is_a?(Array)
449
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
450
- end
451
- elsif !attributes[self.class.attribute_map[key]].nil?
452
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
453
- end # or else data not found in attributes(hash), not an issue as the data can be optional
454
- end
455
-
456
- self
457
- end
458
-
459
- # Deserializes the data based on type
460
- # @param string type Data type
461
- # @param string value Value to be deserialized
462
- # @return [Object] Deserialized data
463
- def _deserialize(type, value)
464
- case type.to_sym
465
- when :DateTime
466
- DateTime.parse(value)
467
- when :Date
468
- Date.parse(value)
469
- when :String
470
- value.to_s
471
- when :Integer
472
- value.to_i
473
- when :Float
474
- value.to_f
475
- when :BOOLEAN
476
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
477
- true
478
- else
479
- false
480
- end
481
- when :Object
482
- # generic object (usually a Hash), return directly
483
- value
484
- when /\AArray<(?<inner_type>.+)>\z/
485
- inner_type = Regexp.last_match[:inner_type]
486
- value.map { |v| _deserialize(inner_type, v) }
487
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
488
- k_type = Regexp.last_match[:k_type]
489
- v_type = Regexp.last_match[:v_type]
490
- {}.tap do |hash|
491
- value.each do |k, v|
492
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
493
- end
494
- end
495
- else # model
496
- temp_model = AsposeSlidesCloud.const_get(type).new
497
- temp_model.build_from_hash(value)
498
- end
499
- end
500
-
501
- # Returns the string representation of the object
502
- # @return [String] String presentation of the object
503
- def to_s
504
- to_hash.to_s
505
- end
506
-
507
- # to_body is an alias to to_hash (backward compatibility)
508
- # @return [Hash] Returns the object in the form of hash
509
- def to_body
510
- to_hash
511
- end
512
-
513
- # Returns the object in the form of hash
514
- # @return [Hash] Returns the object in the form of hash
515
- def to_hash
516
- hash = {}
517
- self.class.attribute_map.each_pair do |attr, param|
518
- value = self.send(attr)
519
- next if value.nil?
520
- hash[param] = _to_hash(value)
521
- end
522
- hash
523
- end
524
-
525
- # Outputs non-array value in the form of hash
526
- # For object, use to_hash. Otherwise, just return the value
527
- # @param [Object] value Any valid value
528
- # @return [Hash] Returns the value in the form of hash
529
- def _to_hash(value)
530
- if value.is_a?(Array)
531
- value.compact.map { |v| _to_hash(v) }
532
- elsif value.is_a?(Hash)
533
- {}.tap do |hash|
534
- value.each { |k, v| hash[k] = _to_hash(v) }
535
- end
536
- elsif value.respond_to? :to_hash
537
- value.to_hash
538
- else
539
- value
540
- end
541
- end
542
- end
543
- end
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 VideoFrame resource.
27
+ class VideoFrame < GeometryShape
28
+ # Determines whether a video is shown in full screen mode.
29
+ attr_accessor :full_screen_mode
30
+
31
+ # Determines whether a VideoFrame is hidden.
32
+ attr_accessor :hide_at_showing
33
+
34
+ # Determines whether a video is looped.
35
+ attr_accessor :play_loop_mode
36
+
37
+ # Returns or sets the video play mode.
38
+ attr_accessor :play_mode
39
+
40
+ # Determines whether a video is automatically rewinded to start as soon as the movie has finished playing
41
+ attr_accessor :rewind_video
42
+
43
+ # Returns or sets the audio volume.
44
+ attr_accessor :volume
45
+
46
+ # Video data encoded in base64.
47
+ attr_accessor :base64_data
48
+
49
+ class EnumAttributeValidator
50
+ attr_reader :datatype
51
+ attr_reader :allowable_values
52
+
53
+ def initialize(datatype, allowable_values)
54
+ @allowable_values = allowable_values.map do |value|
55
+ case datatype.to_s
56
+ when /Integer/i
57
+ value.to_i
58
+ when /Float/i
59
+ value.to_f
60
+ else
61
+ value
62
+ end
63
+ end
64
+ end
65
+
66
+ def valid?(value)
67
+ !value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
68
+ end
69
+ end
70
+
71
+ # Attribute mapping from ruby-style variable name to JSON key.
72
+ def self.attribute_map
73
+ super.merge({
74
+ :'full_screen_mode' => :'FullScreenMode',
75
+ :'hide_at_showing' => :'HideAtShowing',
76
+ :'play_loop_mode' => :'PlayLoopMode',
77
+ :'play_mode' => :'PlayMode',
78
+ :'rewind_video' => :'RewindVideo',
79
+ :'volume' => :'Volume',
80
+ :'base64_data' => :'Base64Data',
81
+ })
82
+ end
83
+
84
+ # Attribute type mapping.
85
+ def self.swagger_types
86
+ super.merge({
87
+ :'full_screen_mode' => :'BOOLEAN',
88
+ :'hide_at_showing' => :'BOOLEAN',
89
+ :'play_loop_mode' => :'BOOLEAN',
90
+ :'play_mode' => :'String',
91
+ :'rewind_video' => :'BOOLEAN',
92
+ :'volume' => :'String',
93
+ :'base64_data' => :'String',
94
+ })
95
+ end
96
+
97
+ # Initializes the object
98
+ # @param [Hash] attributes Model attributes in the form of hash
99
+ def initialize(attributes = {})
100
+ super
101
+
102
+ if attributes.has_key?(:'FullScreenMode')
103
+ self.full_screen_mode = attributes[:'FullScreenMode']
104
+ end
105
+
106
+ if attributes.has_key?(:'HideAtShowing')
107
+ self.hide_at_showing = attributes[:'HideAtShowing']
108
+ end
109
+
110
+ if attributes.has_key?(:'PlayLoopMode')
111
+ self.play_loop_mode = attributes[:'PlayLoopMode']
112
+ end
113
+
114
+ if attributes.has_key?(:'PlayMode')
115
+ self.play_mode = attributes[:'PlayMode']
116
+ end
117
+
118
+ if attributes.has_key?(:'RewindVideo')
119
+ self.rewind_video = attributes[:'RewindVideo']
120
+ end
121
+
122
+ if attributes.has_key?(:'Volume')
123
+ self.volume = attributes[:'Volume']
124
+ end
125
+
126
+ if attributes.has_key?(:'Base64Data')
127
+ self.base64_data = attributes[:'Base64Data']
128
+ end
129
+ self.type = "VideoFrame"
130
+ end
131
+
132
+ # Show invalid properties with the reasons. Usually used together with valid?
133
+ # @return Array for valid properties with the reasons
134
+ def list_invalid_properties
135
+ invalid_properties = super
136
+ invalid_properties
137
+ end
138
+
139
+ # Check to see if the all the properties in the model are valid
140
+ # @return true if the model is valid
141
+ def valid?
142
+ return false if !super
143
+ play_mode_validator = EnumAttributeValidator.new('String', ['Auto', 'OnClick', 'AllSlides', 'Mixed'])
144
+ return false unless play_mode_validator.valid?(@play_mode)
145
+ volume_validator = EnumAttributeValidator.new('String', ['Mute', 'Low', 'Medium', 'Loud', 'Mixed'])
146
+ return false unless volume_validator.valid?(@volume)
147
+ true
148
+ end
149
+
150
+ # Custom attribute writer method checking allowed values (enum).
151
+ # @param [Object] play_mode Object to be assigned
152
+ def play_mode=(play_mode)
153
+ validator = EnumAttributeValidator.new('String', ['Auto', 'OnClick', 'AllSlides', 'Mixed'])
154
+ unless validator.valid?(play_mode)
155
+ fail ArgumentError, 'invalid value for "play_mode", must be one of #{validator.allowable_values}.'
156
+ end
157
+ @play_mode = play_mode
158
+ end
159
+
160
+ # Custom attribute writer method checking allowed values (enum).
161
+ # @param [Object] volume Object to be assigned
162
+ def volume=(volume)
163
+ validator = EnumAttributeValidator.new('String', ['Mute', 'Low', 'Medium', 'Loud', 'Mixed'])
164
+ unless validator.valid?(volume)
165
+ fail ArgumentError, 'invalid value for "volume", must be one of #{validator.allowable_values}.'
166
+ end
167
+ @volume = volume
168
+ end
169
+
170
+ # Checks equality by comparing each attribute.
171
+ # @param [Object] Object to be compared
172
+ def ==(o)
173
+ return true if self.equal?(o)
174
+ self.class == o.class &&
175
+ self_uri == o.self_uri &&
176
+ alternate_links == o.alternate_links &&
177
+ name == o.name &&
178
+ width == o.width &&
179
+ height == o.height &&
180
+ alternative_text == o.alternative_text &&
181
+ alternative_text_title == o.alternative_text_title &&
182
+ hidden == o.hidden &&
183
+ x == o.x &&
184
+ y == o.y &&
185
+ z_order_position == o.z_order_position &&
186
+ shapes == o.shapes &&
187
+ fill_format == o.fill_format &&
188
+ effect_format == o.effect_format &&
189
+ line_format == o.line_format &&
190
+ type == o.type &&
191
+ shape_type == o.shape_type &&
192
+ full_screen_mode == o.full_screen_mode &&
193
+ hide_at_showing == o.hide_at_showing &&
194
+ play_loop_mode == o.play_loop_mode &&
195
+ play_mode == o.play_mode &&
196
+ rewind_video == o.rewind_video &&
197
+ volume == o.volume &&
198
+ base64_data == o.base64_data
199
+ end
200
+
201
+ # @see the `==` method
202
+ # @param [Object] Object to be compared
203
+ def eql?(o)
204
+ self == o
205
+ end
206
+
207
+ # Calculates hash code according to all attributes.
208
+ # @return [Fixnum] Hash code
209
+ def hash
210
+ [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type, shape_type, full_screen_mode, hide_at_showing, play_loop_mode, play_mode, rewind_video, volume, base64_data].hash
211
+ end
212
+
213
+ # Builds the object from hash
214
+ # @param [Hash] attributes Model attributes in the form of hash
215
+ # @return [Object] Returns the model itself
216
+ def build_from_hash(attributes)
217
+ return nil unless attributes.is_a?(Hash)
218
+ self.class.swagger_types.each_pair do |key, type|
219
+ mapKey = self.class.attribute_map[key]
220
+ if !mapKey.nil?
221
+ val = attributes[mapKey]
222
+ if val.nil?
223
+ mapKeyString = mapKey.to_s
224
+ mapKeyString[0] = mapKeyString[0].downcase
225
+ mapKey = mapKeyString.to_sym
226
+ val = attributes[mapKey]
227
+ end
228
+ if !val.nil?
229
+ if type =~ /\AArray<(.*)>/i
230
+ # check to ensure the input is an array given that the the attribute
231
+ # is documented as an array but the input is not
232
+ if val.is_a?(Array)
233
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
234
+ end
235
+ else
236
+ self.send("#{key}=", _deserialize(type, val))
237
+ end
238
+ end
239
+ end
240
+ end
241
+
242
+ self
243
+ end
244
+
245
+ # Deserializes the data based on type
246
+ # @param string type Data type
247
+ # @param string value Value to be deserialized
248
+ # @return [Object] Deserialized data
249
+ def _deserialize(type, value)
250
+ case type.to_sym
251
+ when :DateTime
252
+ DateTime.parse(value)
253
+ when :Date
254
+ Date.parse(value)
255
+ when :String
256
+ value.to_s
257
+ when :Integer
258
+ value.to_i
259
+ when :Float
260
+ value.to_f
261
+ when :BOOLEAN
262
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
263
+ true
264
+ else
265
+ false
266
+ end
267
+ when :Object
268
+ # generic object (usually a Hash), return directly
269
+ value
270
+ when /\AArray<(?<inner_type>.+)>\z/
271
+ inner_type = Regexp.last_match[:inner_type]
272
+ value.map { |v| _deserialize(inner_type, v) }
273
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
274
+ k_type = Regexp.last_match[:k_type]
275
+ v_type = Regexp.last_match[:v_type]
276
+ {}.tap do |hash|
277
+ value.each do |k, v|
278
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
279
+ end
280
+ end
281
+ else # model
282
+ temp_model = AsposeSlidesCloud.const_get(type).new
283
+ temp_model.build_from_hash(value)
284
+ end
285
+ end
286
+
287
+ # Returns the string representation of the object
288
+ # @return [String] String presentation of the object
289
+ def to_s
290
+ to_hash.to_s
291
+ end
292
+
293
+ # to_body is an alias to to_hash (backward compatibility)
294
+ # @return [Hash] Returns the object in the form of hash
295
+ def to_body
296
+ to_hash
297
+ end
298
+
299
+ # Returns the object in the form of hash
300
+ # @return [Hash] Returns the object in the form of hash
301
+ def to_hash
302
+ hash = {}
303
+ self.class.attribute_map.each_pair do |attr, param|
304
+ value = self.send(attr)
305
+ next if value.nil?
306
+ hash[param] = _to_hash(value)
307
+ end
308
+ hash
309
+ end
310
+
311
+ # Outputs non-array value in the form of hash
312
+ # For object, use to_hash. Otherwise, just return the value
313
+ # @param [Object] value Any valid value
314
+ # @return [Hash] Returns the value in the form of hash
315
+ def _to_hash(value)
316
+ if value.is_a?(Array)
317
+ value.compact.map { |v| _to_hash(v) }
318
+ elsif value.is_a?(Hash)
319
+ {}.tap do |hash|
320
+ value.each { |k, v| hash[k] = _to_hash(v) }
321
+ end
322
+ elsif value.respond_to? :to_hash
323
+ value.to_hash
324
+ else
325
+ value
326
+ end
327
+ end
328
+ end
329
+ end