aspose_slides_cloud 20.7.0 → 21.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (174) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/TestData/ChartTest.pptx +0 -0
  4. data/TestData/Sections.pptx +0 -0
  5. data/TestData/test-unprotected.pptx +0 -0
  6. data/TestData/test.pdf +0 -0
  7. data/TestData/test.pptx +0 -0
  8. data/lib/aspose_slides_cloud.rb +12 -5
  9. data/lib/aspose_slides_cloud/api/slides_api.rb +2130 -940
  10. data/lib/aspose_slides_cloud/api/slides_api_requests.rb +531 -31
  11. data/lib/aspose_slides_cloud/api_client.rb +25 -23
  12. data/lib/aspose_slides_cloud/configuration.rb +7 -2
  13. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +11 -40
  14. data/lib/aspose_slides_cloud/models/add_master_slide.rb +11 -40
  15. data/lib/aspose_slides_cloud/models/add_shape.rb +11 -40
  16. data/lib/aspose_slides_cloud/models/add_slide.rb +11 -40
  17. data/lib/aspose_slides_cloud/models/api_info.rb +2 -2
  18. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +2 -2
  19. data/lib/aspose_slides_cloud/models/audio_frame.rb +12 -238
  20. data/lib/aspose_slides_cloud/models/axes.rb +2 -2
  21. data/lib/aspose_slides_cloud/models/axis.rb +2 -2
  22. data/lib/aspose_slides_cloud/models/base64_input_file.rb +11 -49
  23. data/lib/aspose_slides_cloud/models/blur_effect.rb +2 -2
  24. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +11 -216
  25. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +10 -40
  26. data/lib/aspose_slides_cloud/models/bubble_series.rb +11 -205
  27. data/lib/aspose_slides_cloud/models/chart.rb +14 -214
  28. data/lib/aspose_slides_cloud/models/chart_category.rb +34 -12
  29. data/lib/aspose_slides_cloud/models/chart_title.rb +2 -2
  30. data/lib/aspose_slides_cloud/models/chart_wall.rb +2 -2
  31. data/lib/aspose_slides_cloud/models/color_scheme.rb +10 -32
  32. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +2 -2
  33. data/lib/aspose_slides_cloud/models/connector.rb +12 -236
  34. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +2 -2
  35. data/lib/aspose_slides_cloud/models/{resource_uri_element.rb → data_point.rb} +4 -14
  36. data/lib/aspose_slides_cloud/models/disc_usage.rb +2 -2
  37. data/lib/aspose_slides_cloud/models/document.rb +15 -37
  38. data/lib/aspose_slides_cloud/models/document_properties.rb +10 -32
  39. data/lib/aspose_slides_cloud/models/document_property.rb +10 -32
  40. data/lib/aspose_slides_cloud/models/document_replace_result.rb +10 -86
  41. data/lib/aspose_slides_cloud/models/effect.rb +2 -2
  42. data/lib/aspose_slides_cloud/models/effect_format.rb +2 -2
  43. data/lib/aspose_slides_cloud/models/entity_exists.rb +2 -2
  44. data/lib/aspose_slides_cloud/models/error.rb +2 -2
  45. data/lib/aspose_slides_cloud/models/error_details.rb +2 -2
  46. data/lib/aspose_slides_cloud/models/export_options.rb +13 -3
  47. data/lib/aspose_slides_cloud/models/file_version.rb +10 -67
  48. data/lib/aspose_slides_cloud/models/file_versions.rb +2 -2
  49. data/lib/aspose_slides_cloud/models/files_list.rb +2 -2
  50. data/lib/aspose_slides_cloud/models/files_upload_result.rb +2 -2
  51. data/lib/aspose_slides_cloud/models/fill_format.rb +2 -2
  52. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +2 -2
  53. data/lib/aspose_slides_cloud/models/font_scheme.rb +10 -32
  54. data/lib/aspose_slides_cloud/models/font_set.rb +2 -2
  55. data/lib/aspose_slides_cloud/models/format_scheme.rb +10 -32
  56. data/lib/aspose_slides_cloud/models/geometry_shape.rb +13 -204
  57. data/lib/aspose_slides_cloud/models/glow_effect.rb +2 -2
  58. data/lib/aspose_slides_cloud/models/gradient_fill.rb +11 -40
  59. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +2 -2
  60. data/lib/aspose_slides_cloud/models/graphical_object.rb +11 -211
  61. data/lib/aspose_slides_cloud/models/group_shape.rb +11 -211
  62. data/lib/aspose_slides_cloud/models/header_footer.rb +247 -0
  63. data/lib/aspose_slides_cloud/models/html_export_options.rb +13 -24
  64. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +2 -12
  65. data/lib/aspose_slides_cloud/models/image.rb +10 -32
  66. data/lib/aspose_slides_cloud/models/image_export_options.rb +13 -24
  67. data/lib/aspose_slides_cloud/models/images.rb +10 -32
  68. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +2 -2
  69. data/lib/aspose_slides_cloud/models/input.rb +2 -2
  70. data/lib/aspose_slides_cloud/models/input_file.rb +2 -2
  71. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +2 -2
  72. data/lib/aspose_slides_cloud/models/layout_slide.rb +11 -33
  73. data/lib/aspose_slides_cloud/models/layout_slides.rb +10 -32
  74. data/lib/aspose_slides_cloud/models/legend.rb +2 -2
  75. data/lib/aspose_slides_cloud/models/line_format.rb +25 -3
  76. data/lib/aspose_slides_cloud/models/master_slide.rb +11 -33
  77. data/lib/aspose_slides_cloud/models/master_slides.rb +10 -32
  78. data/lib/aspose_slides_cloud/models/merge.rb +11 -40
  79. data/lib/aspose_slides_cloud/models/merging_source.rb +2 -2
  80. data/lib/aspose_slides_cloud/models/no_fill.rb +9 -38
  81. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +2 -2
  82. data/lib/aspose_slides_cloud/models/notes_slide.rb +10 -32
  83. data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +267 -0
  84. data/lib/aspose_slides_cloud/models/object_exist.rb +2 -2
  85. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +12 -212
  86. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +10 -12
  87. data/lib/aspose_slides_cloud/models/one_value_series.rb +11 -205
  88. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +2 -2
  89. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +2 -2
  90. data/lib/aspose_slides_cloud/models/output_file.rb +2 -2
  91. data/lib/aspose_slides_cloud/models/paragraph.rb +10 -32
  92. data/lib/aspose_slides_cloud/models/paragraphs.rb +10 -32
  93. data/lib/aspose_slides_cloud/models/path_input_file.rb +11 -49
  94. data/lib/aspose_slides_cloud/models/path_output_file.rb +11 -40
  95. data/lib/aspose_slides_cloud/models/pattern_fill.rb +11 -40
  96. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +13 -24
  97. data/lib/aspose_slides_cloud/models/picture_fill.rb +12 -41
  98. data/lib/aspose_slides_cloud/models/picture_frame.rb +12 -238
  99. data/lib/aspose_slides_cloud/models/pipeline.rb +2 -2
  100. data/lib/aspose_slides_cloud/models/placeholder.rb +10 -32
  101. data/lib/aspose_slides_cloud/models/placeholders.rb +10 -32
  102. data/lib/aspose_slides_cloud/models/plot_area.rb +2 -2
  103. data/lib/aspose_slides_cloud/models/portion.rb +10 -32
  104. data/lib/aspose_slides_cloud/models/portions.rb +10 -32
  105. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +13 -24
  106. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +2 -2
  107. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +2 -2
  108. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +2 -2
  109. data/lib/aspose_slides_cloud/models/protection_properties.rb +217 -0
  110. data/lib/aspose_slides_cloud/models/reflection_effect.rb +2 -2
  111. data/lib/aspose_slides_cloud/models/remove_shape.rb +11 -40
  112. data/lib/aspose_slides_cloud/models/remove_slide.rb +11 -40
  113. data/lib/aspose_slides_cloud/models/reorder_slide.rb +11 -40
  114. data/lib/aspose_slides_cloud/models/replace_text.rb +11 -40
  115. data/lib/aspose_slides_cloud/models/request_input_file.rb +11 -49
  116. data/lib/aspose_slides_cloud/models/reset_slide.rb +11 -40
  117. data/lib/aspose_slides_cloud/models/resource_base.rb +2 -2
  118. data/lib/aspose_slides_cloud/models/resource_uri.rb +2 -2
  119. data/lib/aspose_slides_cloud/models/response_output_file.rb +9 -38
  120. data/lib/aspose_slides_cloud/models/save.rb +11 -40
  121. data/lib/aspose_slides_cloud/models/save_shape.rb +11 -40
  122. data/lib/aspose_slides_cloud/models/save_slide.rb +11 -40
  123. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +10 -12
  124. data/lib/aspose_slides_cloud/models/scatter_series.rb +11 -205
  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 +4 -4
  128. data/lib/aspose_slides_cloud/models/series_marker.rb +2 -2
  129. data/lib/aspose_slides_cloud/models/shape.rb +12 -236
  130. data/lib/aspose_slides_cloud/models/shape_base.rb +11 -54
  131. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +2 -2
  132. data/lib/aspose_slides_cloud/models/shapes.rb +10 -32
  133. data/lib/aspose_slides_cloud/models/slide.rb +17 -39
  134. data/lib/aspose_slides_cloud/models/slide_animation.rb +10 -32
  135. data/lib/aspose_slides_cloud/models/slide_background.rb +10 -32
  136. data/lib/aspose_slides_cloud/models/slide_comment.rb +2 -2
  137. data/lib/aspose_slides_cloud/models/slide_comments.rb +10 -32
  138. data/lib/aspose_slides_cloud/models/slide_properties.rb +315 -0
  139. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +10 -146
  140. data/lib/aspose_slides_cloud/models/slides.rb +10 -32
  141. data/lib/aspose_slides_cloud/models/smart_art.rb +12 -212
  142. data/lib/aspose_slides_cloud/models/smart_art_node.rb +3 -3
  143. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +10 -209
  144. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +2 -2
  145. data/lib/aspose_slides_cloud/models/solid_fill.rb +11 -40
  146. data/lib/aspose_slides_cloud/models/split_document_result.rb +10 -32
  147. data/lib/aspose_slides_cloud/models/storage_exist.rb +2 -2
  148. data/lib/aspose_slides_cloud/models/storage_file.rb +2 -2
  149. data/lib/aspose_slides_cloud/models/svg_export_options.rb +13 -24
  150. data/lib/aspose_slides_cloud/models/swf_export_options.rb +13 -24
  151. data/lib/aspose_slides_cloud/models/table.rb +12 -212
  152. data/lib/aspose_slides_cloud/models/table_cell.rb +2 -2
  153. data/lib/aspose_slides_cloud/models/table_column.rb +2 -2
  154. data/lib/aspose_slides_cloud/models/table_row.rb +2 -2
  155. data/lib/aspose_slides_cloud/models/task.rb +2 -2
  156. data/lib/aspose_slides_cloud/models/text_item.rb +2 -2
  157. data/lib/aspose_slides_cloud/models/text_items.rb +10 -32
  158. data/lib/aspose_slides_cloud/models/theme.rb +12 -34
  159. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +13 -24
  160. data/lib/aspose_slides_cloud/models/update_background.rb +11 -40
  161. data/lib/aspose_slides_cloud/models/update_shape.rb +11 -40
  162. data/lib/aspose_slides_cloud/models/video_frame.rb +12 -238
  163. data/lib/aspose_slides_cloud/models/view_properties.rb +10 -32
  164. data/lib/aspose_slides_cloud/models/waterfall_chart_data_point.rb +206 -0
  165. data/lib/aspose_slides_cloud/models/waterfall_series.rb +11 -216
  166. data/lib/aspose_slides_cloud/models/xps_export_options.rb +13 -24
  167. data/lib/aspose_slides_cloud/type_registry.rb +324 -0
  168. data/lib/aspose_slides_cloud/version.rb +1 -1
  169. data/spec/api/slides_api_spec.rb +8664 -1406
  170. data/spec/extra/extra_spec.rb +70 -38
  171. data/spec/spec_utils.rb +10 -6
  172. data/testConfig.json +2 -2
  173. data/testRules.json +121 -80
  174. metadata +16 -3
@@ -24,10 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Update shape task.
27
- class UpdateShape
28
- # Task type.
29
- attr_accessor :type
30
-
27
+ class UpdateShape < Task
31
28
  # Shape DTO.
32
29
  attr_accessor :shape
33
30
 
@@ -58,35 +55,24 @@ module AsposeSlidesCloud
58
55
 
59
56
  # Attribute mapping from ruby-style variable name to JSON key.
60
57
  def self.attribute_map
61
- {
62
- :'type' => :'Type',
58
+ super.merge({
63
59
  :'shape' => :'Shape',
64
- :'shape_path' => :'ShapePath'
65
- }
60
+ :'shape_path' => :'ShapePath',
61
+ })
66
62
  end
67
63
 
68
64
  # Attribute type mapping.
69
65
  def self.swagger_types
70
- {
71
- :'type' => :'String',
66
+ super.merge({
72
67
  :'shape' => :'ShapeBase',
73
- :'shape_path' => :'String'
74
- }
68
+ :'shape_path' => :'String',
69
+ })
75
70
  end
76
71
 
77
72
  # Initializes the object
78
73
  # @param [Hash] attributes Model attributes in the form of hash
79
74
  def initialize(attributes = {})
80
- return unless attributes.is_a?(Hash)
81
-
82
- # convert string to symbol for hash key
83
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
84
-
85
- if attributes.has_key?(:'Type')
86
- self.type = attributes[:'Type']
87
- else
88
- self.type = "UpdateShape"
89
- end
75
+ super
90
76
 
91
77
  if attributes.has_key?(:'Shape')
92
78
  self.shape = attributes[:'Shape']
@@ -95,38 +81,23 @@ module AsposeSlidesCloud
95
81
  if attributes.has_key?(:'ShapePath')
96
82
  self.shape_path = attributes[:'ShapePath']
97
83
  end
84
+ self.type = "UpdateShape"
98
85
  end
99
86
 
100
87
  # Show invalid properties with the reasons. Usually used together with valid?
101
88
  # @return Array for valid properties with the reasons
102
89
  def list_invalid_properties
103
- invalid_properties = Array.new
104
- if @type.nil?
105
- invalid_properties.push('invalid value for "type", type cannot be nil.')
106
- end
107
-
90
+ invalid_properties = super
108
91
  invalid_properties
109
92
  end
110
93
 
111
94
  # Check to see if the all the properties in the model are valid
112
95
  # @return true if the model is valid
113
96
  def valid?
114
- return false if @type.nil?
115
- type_validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
116
- return false unless type_validator.valid?(@type)
97
+ return false if !super
117
98
  true
118
99
  end
119
100
 
120
- # Custom attribute writer method checking allowed values (enum).
121
- # @param [Object] type Object to be assigned
122
- def type=(type)
123
- validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
124
- unless validator.valid?(type)
125
- fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
126
- end
127
- @type = type
128
- end
129
-
130
101
  # Checks equality by comparing each attribute.
131
102
  # @param [Object] Object to be compared
132
103
  def ==(o)
@@ -24,61 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
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
-
27
+ class VideoFrame < GeometryShape
82
28
  # Determines whether a video is shown in full screen mode.
83
29
  attr_accessor :full_screen_mode
84
30
 
@@ -124,151 +70,34 @@ module AsposeSlidesCloud
124
70
 
125
71
  # Attribute mapping from ruby-style variable name to JSON key.
126
72
  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',
73
+ super.merge({
146
74
  :'full_screen_mode' => :'FullScreenMode',
147
75
  :'hide_at_showing' => :'HideAtShowing',
148
76
  :'play_loop_mode' => :'PlayLoopMode',
149
77
  :'play_mode' => :'PlayMode',
150
78
  :'rewind_video' => :'RewindVideo',
151
79
  :'volume' => :'Volume',
152
- :'base64_data' => :'Base64Data'
153
- }
80
+ :'base64_data' => :'Base64Data',
81
+ })
154
82
  end
155
83
 
156
84
  # Attribute type mapping.
157
85
  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',
86
+ super.merge({
177
87
  :'full_screen_mode' => :'BOOLEAN',
178
88
  :'hide_at_showing' => :'BOOLEAN',
179
89
  :'play_loop_mode' => :'BOOLEAN',
180
90
  :'play_mode' => :'String',
181
91
  :'rewind_video' => :'BOOLEAN',
182
92
  :'volume' => :'String',
183
- :'base64_data' => :'String'
184
- }
93
+ :'base64_data' => :'String',
94
+ })
185
95
  end
186
96
 
187
97
  # Initializes the object
188
98
  # @param [Hash] attributes Model attributes in the form of hash
189
99
  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
100
+ super
272
101
 
273
102
  if attributes.has_key?(:'FullScreenMode')
274
103
  self.full_screen_mode = attributes[:'FullScreenMode']
@@ -297,44 +126,20 @@ module AsposeSlidesCloud
297
126
  if attributes.has_key?(:'Base64Data')
298
127
  self.base64_data = attributes[:'Base64Data']
299
128
  end
129
+ self.type = "VideoFrame"
300
130
  end
301
131
 
302
132
  # Show invalid properties with the reasons. Usually used together with valid?
303
133
  # @return Array for valid properties with the reasons
304
134
  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
-
135
+ invalid_properties = super
322
136
  invalid_properties
323
137
  end
324
138
 
325
139
  # Check to see if the all the properties in the model are valid
326
140
  # @return true if the model is valid
327
141
  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)
142
+ return false if !super
338
143
  play_mode_validator = EnumAttributeValidator.new('String', ['Auto', 'OnClick', 'AllSlides', 'Mixed'])
339
144
  return false unless play_mode_validator.valid?(@play_mode)
340
145
  volume_validator = EnumAttributeValidator.new('String', ['Mute', 'Low', 'Medium', 'Loud', 'Mixed'])
@@ -342,36 +147,6 @@ module AsposeSlidesCloud
342
147
  true
343
148
  end
344
149
 
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
150
  # Custom attribute writer method checking allowed values (enum).
376
151
  # @param [Object] play_mode Object to be assigned
377
152
  def play_mode=(play_mode)
@@ -414,7 +189,6 @@ module AsposeSlidesCloud
414
189
  line_format == o.line_format &&
415
190
  type == o.type &&
416
191
  shape_type == o.shape_type &&
417
- geometry_shape_type == o.geometry_shape_type &&
418
192
  full_screen_mode == o.full_screen_mode &&
419
193
  hide_at_showing == o.hide_at_showing &&
420
194
  play_loop_mode == o.play_loop_mode &&
@@ -433,7 +207,7 @@ module AsposeSlidesCloud
433
207
  # Calculates hash code according to all attributes.
434
208
  # @return [Fixnum] Hash code
435
209
  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
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
437
211
  end
438
212
 
439
213
  # Builds the object from hash
@@ -24,13 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Slides document properties.
27
- class ViewProperties
28
- # Gets or sets the link to this resource.
29
- attr_accessor :self_uri
30
-
31
- # List of alternate links.
32
- attr_accessor :alternate_links
33
-
27
+ class ViewProperties < ResourceBase
34
28
  # Last used view mode.
35
29
  attr_accessor :last_view
36
30
 
@@ -82,9 +76,7 @@ module AsposeSlidesCloud
82
76
 
83
77
  # Attribute mapping from ruby-style variable name to JSON key.
84
78
  def self.attribute_map
85
- {
86
- :'self_uri' => :'SelfUri',
87
- :'alternate_links' => :'AlternateLinks',
79
+ super.merge({
88
80
  :'last_view' => :'LastView',
89
81
  :'horizontal_bar_state' => :'HorizontalBarState',
90
82
  :'vertical_bar_state' => :'VerticalBarState',
@@ -93,15 +85,13 @@ module AsposeSlidesCloud
93
85
  :'restored_top' => :'RestoredTop',
94
86
  :'slide_view_properties' => :'SlideViewProperties',
95
87
  :'notes_view_properties' => :'NotesViewProperties',
96
- :'show_comments' => :'ShowComments'
97
- }
88
+ :'show_comments' => :'ShowComments',
89
+ })
98
90
  end
99
91
 
100
92
  # Attribute type mapping.
101
93
  def self.swagger_types
102
- {
103
- :'self_uri' => :'ResourceUri',
104
- :'alternate_links' => :'Array<ResourceUri>',
94
+ super.merge({
105
95
  :'last_view' => :'String',
106
96
  :'horizontal_bar_state' => :'String',
107
97
  :'vertical_bar_state' => :'String',
@@ -110,27 +100,14 @@ module AsposeSlidesCloud
110
100
  :'restored_top' => :'NormalViewRestoredProperties',
111
101
  :'slide_view_properties' => :'CommonSlideViewProperties',
112
102
  :'notes_view_properties' => :'CommonSlideViewProperties',
113
- :'show_comments' => :'String'
114
- }
103
+ :'show_comments' => :'String',
104
+ })
115
105
  end
116
106
 
117
107
  # Initializes the object
118
108
  # @param [Hash] attributes Model attributes in the form of hash
119
109
  def initialize(attributes = {})
120
- return unless attributes.is_a?(Hash)
121
-
122
- # convert string to symbol for hash key
123
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
124
-
125
- if attributes.has_key?(:'SelfUri')
126
- self.self_uri = attributes[:'SelfUri']
127
- end
128
-
129
- if attributes.has_key?(:'AlternateLinks')
130
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
131
- self.alternate_links = value
132
- end
133
- end
110
+ super
134
111
 
135
112
  if attributes.has_key?(:'LastView')
136
113
  self.last_view = attributes[:'LastView']
@@ -172,13 +149,14 @@ module AsposeSlidesCloud
172
149
  # Show invalid properties with the reasons. Usually used together with valid?
173
150
  # @return Array for valid properties with the reasons
174
151
  def list_invalid_properties
175
- invalid_properties = Array.new
152
+ invalid_properties = super
176
153
  invalid_properties
177
154
  end
178
155
 
179
156
  # Check to see if the all the properties in the model are valid
180
157
  # @return true if the model is valid
181
158
  def valid?
159
+ return false if !super
182
160
  last_view_validator = EnumAttributeValidator.new('String', ['NotDefined', 'SlideView', 'SlideMasterView', 'NotesView', 'HandoutView', 'NotesMasterView', 'OutlineView', 'SlideSorterView', 'SlideThumbnailView'])
183
161
  return false unless last_view_validator.valid?(@last_view)
184
162
  horizontal_bar_state_validator = EnumAttributeValidator.new('String', ['Minimized', 'Restored', 'Maximized'])