aspose_slides_cloud 20.6.0 → 21.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) 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.pptx +0 -0
  7. data/lib/aspose_slides_cloud.rb +13 -5
  8. data/lib/aspose_slides_cloud/api/slides_api.rb +2432 -691
  9. data/lib/aspose_slides_cloud/api/slides_api_requests.rb +609 -31
  10. data/lib/aspose_slides_cloud/api_client.rb +30 -24
  11. data/lib/aspose_slides_cloud/configuration.rb +7 -2
  12. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +31 -48
  13. data/lib/aspose_slides_cloud/models/add_master_slide.rb +31 -48
  14. data/lib/aspose_slides_cloud/models/add_shape.rb +31 -48
  15. data/lib/aspose_slides_cloud/models/add_slide.rb +31 -48
  16. data/lib/aspose_slides_cloud/models/api_info.rb +22 -10
  17. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +22 -10
  18. data/lib/aspose_slides_cloud/models/audio_frame.rb +32 -246
  19. data/lib/aspose_slides_cloud/models/axes.rb +22 -10
  20. data/lib/aspose_slides_cloud/models/axis.rb +22 -10
  21. data/lib/aspose_slides_cloud/models/base64_input_file.rb +31 -57
  22. data/lib/aspose_slides_cloud/models/blur_effect.rb +22 -10
  23. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +31 -222
  24. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +30 -48
  25. data/lib/aspose_slides_cloud/models/bubble_series.rb +31 -211
  26. data/lib/aspose_slides_cloud/models/chart.rb +32 -220
  27. data/lib/aspose_slides_cloud/models/chart_category.rb +54 -20
  28. data/lib/aspose_slides_cloud/models/chart_title.rb +22 -10
  29. data/lib/aspose_slides_cloud/models/chart_wall.rb +22 -10
  30. data/lib/aspose_slides_cloud/models/color_scheme.rb +30 -40
  31. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +22 -10
  32. data/lib/aspose_slides_cloud/models/connector.rb +32 -244
  33. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +22 -10
  34. data/lib/aspose_slides_cloud/models/{resource_uri_element.rb → data_point.rb} +24 -22
  35. data/lib/aspose_slides_cloud/models/disc_usage.rb +22 -10
  36. data/lib/aspose_slides_cloud/models/document.rb +35 -45
  37. data/lib/aspose_slides_cloud/models/document_properties.rb +30 -40
  38. data/lib/aspose_slides_cloud/models/document_property.rb +30 -40
  39. data/lib/aspose_slides_cloud/models/document_replace_result.rb +30 -94
  40. data/lib/aspose_slides_cloud/models/effect.rb +22 -10
  41. data/lib/aspose_slides_cloud/models/effect_format.rb +22 -10
  42. data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
  43. data/lib/aspose_slides_cloud/models/error.rb +22 -10
  44. data/lib/aspose_slides_cloud/models/error_details.rb +22 -10
  45. data/lib/aspose_slides_cloud/models/export_options.rb +33 -11
  46. data/lib/aspose_slides_cloud/models/file_version.rb +30 -75
  47. data/lib/aspose_slides_cloud/models/file_versions.rb +22 -10
  48. data/lib/aspose_slides_cloud/models/files_list.rb +22 -10
  49. data/lib/aspose_slides_cloud/models/files_upload_result.rb +22 -10
  50. data/lib/aspose_slides_cloud/models/fill_format.rb +22 -10
  51. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +22 -10
  52. data/lib/aspose_slides_cloud/models/font_scheme.rb +30 -40
  53. data/lib/aspose_slides_cloud/models/font_set.rb +22 -10
  54. data/lib/aspose_slides_cloud/models/format_scheme.rb +30 -40
  55. data/lib/aspose_slides_cloud/models/geometry_shape.rb +33 -212
  56. data/lib/aspose_slides_cloud/models/glow_effect.rb +22 -10
  57. data/lib/aspose_slides_cloud/models/gradient_fill.rb +31 -48
  58. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +22 -10
  59. data/lib/aspose_slides_cloud/models/graphical_object.rb +31 -219
  60. data/lib/aspose_slides_cloud/models/group_shape.rb +31 -219
  61. data/lib/aspose_slides_cloud/models/header_footer.rb +247 -0
  62. data/lib/aspose_slides_cloud/models/html_export_options.rb +33 -32
  63. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +22 -20
  64. data/lib/aspose_slides_cloud/models/image.rb +30 -40
  65. data/lib/aspose_slides_cloud/models/image_export_options.rb +33 -32
  66. data/lib/aspose_slides_cloud/models/images.rb +30 -40
  67. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +22 -10
  68. data/lib/aspose_slides_cloud/models/input.rb +22 -10
  69. data/lib/aspose_slides_cloud/models/input_file.rb +22 -10
  70. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +22 -10
  71. data/lib/aspose_slides_cloud/models/layout_slide.rb +31 -41
  72. data/lib/aspose_slides_cloud/models/layout_slides.rb +30 -40
  73. data/lib/aspose_slides_cloud/models/legend.rb +22 -10
  74. data/lib/aspose_slides_cloud/models/line_format.rb +22 -10
  75. data/lib/aspose_slides_cloud/models/master_slide.rb +31 -41
  76. data/lib/aspose_slides_cloud/models/master_slides.rb +30 -40
  77. data/lib/aspose_slides_cloud/models/merge.rb +31 -48
  78. data/lib/aspose_slides_cloud/models/merging_source.rb +22 -10
  79. data/lib/aspose_slides_cloud/models/no_fill.rb +29 -46
  80. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +22 -10
  81. data/lib/aspose_slides_cloud/models/notes_slide.rb +30 -40
  82. data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +267 -0
  83. data/lib/aspose_slides_cloud/models/object_exist.rb +22 -10
  84. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +32 -220
  85. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +30 -20
  86. data/lib/aspose_slides_cloud/models/one_value_series.rb +31 -211
  87. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +22 -10
  88. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +22 -10
  89. data/lib/aspose_slides_cloud/models/output_file.rb +22 -10
  90. data/lib/aspose_slides_cloud/models/paragraph.rb +30 -40
  91. data/lib/aspose_slides_cloud/models/paragraphs.rb +30 -40
  92. data/lib/aspose_slides_cloud/models/path_input_file.rb +31 -57
  93. data/lib/aspose_slides_cloud/models/path_output_file.rb +31 -48
  94. data/lib/aspose_slides_cloud/models/pattern_fill.rb +31 -48
  95. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +33 -32
  96. data/lib/aspose_slides_cloud/models/picture_fill.rb +32 -49
  97. data/lib/aspose_slides_cloud/models/picture_frame.rb +32 -246
  98. data/lib/aspose_slides_cloud/models/pipeline.rb +22 -10
  99. data/lib/aspose_slides_cloud/models/placeholder.rb +30 -40
  100. data/lib/aspose_slides_cloud/models/placeholders.rb +30 -40
  101. data/lib/aspose_slides_cloud/models/plot_area.rb +22 -10
  102. data/lib/aspose_slides_cloud/models/portion.rb +30 -40
  103. data/lib/aspose_slides_cloud/models/portions.rb +36 -46
  104. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +33 -32
  105. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +22 -10
  106. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +22 -10
  107. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +22 -10
  108. data/lib/aspose_slides_cloud/models/reflection_effect.rb +22 -10
  109. data/lib/aspose_slides_cloud/models/remove_shape.rb +31 -48
  110. data/lib/aspose_slides_cloud/models/remove_slide.rb +31 -48
  111. data/lib/aspose_slides_cloud/models/reorder_slide.rb +31 -48
  112. data/lib/aspose_slides_cloud/models/replace_text.rb +31 -48
  113. data/lib/aspose_slides_cloud/models/request_input_file.rb +31 -57
  114. data/lib/aspose_slides_cloud/models/reset_slide.rb +31 -48
  115. data/lib/aspose_slides_cloud/models/resource_base.rb +22 -10
  116. data/lib/aspose_slides_cloud/models/resource_uri.rb +22 -10
  117. data/lib/aspose_slides_cloud/models/response_output_file.rb +29 -46
  118. data/lib/aspose_slides_cloud/models/save.rb +31 -48
  119. data/lib/aspose_slides_cloud/models/save_shape.rb +31 -48
  120. data/lib/aspose_slides_cloud/models/save_slide.rb +31 -48
  121. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +30 -20
  122. data/lib/aspose_slides_cloud/models/scatter_series.rb +31 -211
  123. data/lib/aspose_slides_cloud/models/section.rb +234 -0
  124. data/lib/aspose_slides_cloud/models/sections.rb +209 -0
  125. data/lib/aspose_slides_cloud/models/series.rb +45 -12
  126. data/lib/aspose_slides_cloud/models/series_marker.rb +22 -10
  127. data/lib/aspose_slides_cloud/models/shape.rb +32 -244
  128. data/lib/aspose_slides_cloud/models/shape_base.rb +31 -62
  129. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +22 -10
  130. data/lib/aspose_slides_cloud/models/shapes.rb +30 -40
  131. data/lib/aspose_slides_cloud/models/slide.rb +37 -47
  132. data/lib/aspose_slides_cloud/models/slide_animation.rb +30 -40
  133. data/lib/aspose_slides_cloud/models/slide_background.rb +30 -40
  134. data/lib/aspose_slides_cloud/models/slide_comment.rb +22 -10
  135. data/lib/aspose_slides_cloud/models/slide_comments.rb +30 -40
  136. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +30 -154
  137. data/lib/aspose_slides_cloud/models/slides.rb +30 -40
  138. data/lib/aspose_slides_cloud/models/smart_art.rb +32 -220
  139. data/lib/aspose_slides_cloud/models/smart_art_node.rb +23 -11
  140. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +30 -217
  141. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +22 -10
  142. data/lib/aspose_slides_cloud/models/solid_fill.rb +31 -48
  143. data/lib/aspose_slides_cloud/models/split_document_result.rb +30 -40
  144. data/lib/aspose_slides_cloud/models/storage_exist.rb +22 -10
  145. data/lib/aspose_slides_cloud/models/storage_file.rb +22 -10
  146. data/lib/aspose_slides_cloud/models/svg_export_options.rb +33 -32
  147. data/lib/aspose_slides_cloud/models/swf_export_options.rb +33 -32
  148. data/lib/aspose_slides_cloud/models/table.rb +32 -220
  149. data/lib/aspose_slides_cloud/models/table_cell.rb +22 -10
  150. data/lib/aspose_slides_cloud/models/table_column.rb +22 -10
  151. data/lib/aspose_slides_cloud/models/table_row.rb +22 -10
  152. data/lib/aspose_slides_cloud/models/task.rb +22 -10
  153. data/lib/aspose_slides_cloud/models/text_item.rb +22 -10
  154. data/lib/aspose_slides_cloud/models/text_items.rb +30 -40
  155. data/lib/aspose_slides_cloud/models/theme.rb +32 -42
  156. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +33 -32
  157. data/lib/aspose_slides_cloud/models/update_background.rb +31 -48
  158. data/lib/aspose_slides_cloud/models/update_shape.rb +31 -48
  159. data/lib/aspose_slides_cloud/models/video_frame.rb +32 -246
  160. data/lib/aspose_slides_cloud/models/view_properties.rb +30 -40
  161. data/lib/aspose_slides_cloud/models/waterfall_chart_data_point.rb +206 -0
  162. data/lib/aspose_slides_cloud/models/waterfall_series.rb +31 -222
  163. data/lib/aspose_slides_cloud/models/xps_export_options.rb +33 -32
  164. data/lib/aspose_slides_cloud/type_registry.rb +324 -0
  165. data/lib/aspose_slides_cloud/version.rb +1 -1
  166. data/spec/api/slides_api_spec.rb +22294 -14411
  167. data/spec/extra/extra_spec.rb +156 -22
  168. data/spec/spec_utils.rb +15 -4
  169. data/testConfig.json +2 -2
  170. data/testRules.json +141 -73
  171. metadata +14 -3
@@ -24,10 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents Pattern Fill
27
- class PatternFill
28
- # Type of fill.
29
- attr_accessor :type
30
-
27
+ class PatternFill < FillFormat
31
28
  # Gets or sets the back color of the pattern fill.
32
29
  attr_accessor :back_color
33
30
 
@@ -61,37 +58,26 @@ module AsposeSlidesCloud
61
58
 
62
59
  # Attribute mapping from ruby-style variable name to JSON key.
63
60
  def self.attribute_map
64
- {
65
- :'type' => :'Type',
61
+ super.merge({
66
62
  :'back_color' => :'BackColor',
67
63
  :'fore_color' => :'ForeColor',
68
- :'style' => :'Style'
69
- }
64
+ :'style' => :'Style',
65
+ })
70
66
  end
71
67
 
72
68
  # Attribute type mapping.
73
69
  def self.swagger_types
74
- {
75
- :'type' => :'String',
70
+ super.merge({
76
71
  :'back_color' => :'String',
77
72
  :'fore_color' => :'String',
78
- :'style' => :'String'
79
- }
73
+ :'style' => :'String',
74
+ })
80
75
  end
81
76
 
82
77
  # Initializes the object
83
78
  # @param [Hash] attributes Model attributes in the form of hash
84
79
  def initialize(attributes = {})
85
- return unless attributes.is_a?(Hash)
86
-
87
- # convert string to symbol for hash key
88
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
89
-
90
- if attributes.has_key?(:'Type')
91
- self.type = attributes[:'Type']
92
- else
93
- self.type = "Pattern"
94
- end
80
+ super
95
81
 
96
82
  if attributes.has_key?(:'BackColor')
97
83
  self.back_color = attributes[:'BackColor']
@@ -104,16 +90,13 @@ module AsposeSlidesCloud
104
90
  if attributes.has_key?(:'Style')
105
91
  self.style = attributes[:'Style']
106
92
  end
93
+ self.type = "Pattern"
107
94
  end
108
95
 
109
96
  # Show invalid properties with the reasons. Usually used together with valid?
110
97
  # @return Array for valid properties with the reasons
111
98
  def list_invalid_properties
112
- invalid_properties = Array.new
113
- if @type.nil?
114
- invalid_properties.push('invalid value for "type", type cannot be nil.')
115
- end
116
-
99
+ invalid_properties = super
117
100
  if @style.nil?
118
101
  invalid_properties.push('invalid value for "style", style cannot be nil.')
119
102
  end
@@ -124,25 +107,13 @@ module AsposeSlidesCloud
124
107
  # Check to see if the all the properties in the model are valid
125
108
  # @return true if the model is valid
126
109
  def valid?
127
- return false if @type.nil?
128
- type_validator = EnumAttributeValidator.new('String', ['NoFill', 'Solid', 'Gradient', 'Pattern', 'Picture', 'NotDefined'])
129
- return false unless type_validator.valid?(@type)
110
+ return false if !super
130
111
  return false if @style.nil?
131
112
  style_validator = EnumAttributeValidator.new('String', ['Unknown', 'Percent05', 'Percent10', 'Percent20', 'Percent25', 'Percent30', 'Percent40', 'Percent50', 'Percent60', 'Percent70', 'Percent75', 'Percent80', 'Percent90', 'DarkHorizontal', 'DarkVertical', 'DarkDownwardDiagonal', 'DarkUpwardDiagonal', 'SmallCheckerBoard', 'Trellis', 'LightHorizontal', 'LightVertical', 'LightDownwardDiagonal', 'LightUpwardDiagonal', 'SmallGrid', 'DottedDiamond', 'WideDownwardDiagonal', 'WideUpwardDiagonal', 'DashedUpwardDiagonal', 'DashedDownwardDiagonal', 'NarrowVertical', 'NarrowHorizontal', 'DashedVertical', 'DashedHorizontal', 'LargeConfetti', 'LargeGrid', 'HorizontalBrick', 'LargeCheckerBoard', 'SmallConfetti', 'Zigzag', 'SolidDiamond', 'DiagonalBrick', 'OutlinedDiamond', 'Plaid', 'Sphere', 'Weave', 'DottedGrid', 'Divot', 'Shingle', 'Wave', 'Horizontal', 'Vertical', 'Cross', 'DownwardDiagonal', 'UpwardDiagonal', 'DiagonalCross', 'NotDefined'])
132
113
  return false unless style_validator.valid?(@style)
133
114
  true
134
115
  end
135
116
 
136
- # Custom attribute writer method checking allowed values (enum).
137
- # @param [Object] type Object to be assigned
138
- def type=(type)
139
- validator = EnumAttributeValidator.new('String', ['NoFill', 'Solid', 'Gradient', 'Pattern', 'Picture', 'NotDefined'])
140
- unless validator.valid?(type)
141
- fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
142
- end
143
- @type = type
144
- end
145
-
146
117
  # Custom attribute writer method checking allowed values (enum).
147
118
  # @param [Object] style Object to be assigned
148
119
  def style=(style)
@@ -182,15 +153,27 @@ module AsposeSlidesCloud
182
153
  def build_from_hash(attributes)
183
154
  return nil unless attributes.is_a?(Hash)
184
155
  self.class.swagger_types.each_pair do |key, type|
185
- if type =~ /\AArray<(.*)>/i
186
- # check to ensure the input is an array given that the the attribute
187
- # is documented as an array but the input is not
188
- if attributes[self.class.attribute_map[key]].is_a?(Array)
189
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
156
+ mapKey = self.class.attribute_map[key]
157
+ if !mapKey.nil?
158
+ val = attributes[mapKey]
159
+ if val.nil?
160
+ mapKeyString = mapKey.to_s
161
+ mapKeyString[0] = mapKeyString[0].downcase
162
+ mapKey = mapKeyString.to_sym
163
+ val = attributes[mapKey]
164
+ end
165
+ if !val.nil?
166
+ if type =~ /\AArray<(.*)>/i
167
+ # check to ensure the input is an array given that the the attribute
168
+ # is documented as an array but the input is not
169
+ if val.is_a?(Array)
170
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
171
+ end
172
+ else
173
+ self.send("#{key}=", _deserialize(type, val))
174
+ end
190
175
  end
191
- elsif !attributes[self.class.attribute_map[key]].nil?
192
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
193
- end # or else data not found in attributes(hash), not an issue as the data can be optional
176
+ end
194
177
  end
195
178
 
196
179
  self
@@ -24,10 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Provides options that control how a presentation is saved in Pdf format.
27
- class PdfExportOptions
28
- # Export format.
29
- attr_accessor :format
30
-
27
+ class PdfExportOptions < ExportOptions
31
28
  # Specifies compression type to be used for all textual content in the document.
32
29
  attr_accessor :text_compression
33
30
 
@@ -109,8 +106,7 @@ module AsposeSlidesCloud
109
106
 
110
107
  # Attribute mapping from ruby-style variable name to JSON key.
111
108
  def self.attribute_map
112
- {
113
- :'format' => :'Format',
109
+ super.merge({
114
110
  :'text_compression' => :'TextCompression',
115
111
  :'embed_full_fonts' => :'EmbedFullFonts',
116
112
  :'compliance' => :'Compliance',
@@ -129,14 +125,13 @@ module AsposeSlidesCloud
129
125
  :'show_comments_by_no_author' => :'ShowCommentsByNoAuthor',
130
126
  :'image_transparent_color' => :'ImageTransparentColor',
131
127
  :'apply_image_transparent' => :'ApplyImageTransparent',
132
- :'access_permissions' => :'AccessPermissions'
133
- }
128
+ :'access_permissions' => :'AccessPermissions',
129
+ })
134
130
  end
135
131
 
136
132
  # Attribute type mapping.
137
133
  def self.swagger_types
138
- {
139
- :'format' => :'String',
134
+ super.merge({
140
135
  :'text_compression' => :'String',
141
136
  :'embed_full_fonts' => :'BOOLEAN',
142
137
  :'compliance' => :'String',
@@ -155,23 +150,14 @@ module AsposeSlidesCloud
155
150
  :'show_comments_by_no_author' => :'BOOLEAN',
156
151
  :'image_transparent_color' => :'String',
157
152
  :'apply_image_transparent' => :'BOOLEAN',
158
- :'access_permissions' => :'String'
159
- }
153
+ :'access_permissions' => :'String',
154
+ })
160
155
  end
161
156
 
162
157
  # Initializes the object
163
158
  # @param [Hash] attributes Model attributes in the form of hash
164
159
  def initialize(attributes = {})
165
- return unless attributes.is_a?(Hash)
166
-
167
- # convert string to symbol for hash key
168
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
169
-
170
- if attributes.has_key?(:'Format')
171
- self.format = attributes[:'Format']
172
- else
173
- self.format = "pdf"
174
- end
160
+ super
175
161
 
176
162
  if attributes.has_key?(:'TextCompression')
177
163
  self.text_compression = attributes[:'TextCompression']
@@ -250,12 +236,13 @@ module AsposeSlidesCloud
250
236
  if attributes.has_key?(:'AccessPermissions')
251
237
  self.access_permissions = attributes[:'AccessPermissions']
252
238
  end
239
+ self.format = "pdf"
253
240
  end
254
241
 
255
242
  # Show invalid properties with the reasons. Usually used together with valid?
256
243
  # @return Array for valid properties with the reasons
257
244
  def list_invalid_properties
258
- invalid_properties = Array.new
245
+ invalid_properties = super
259
246
  if @text_compression.nil?
260
247
  invalid_properties.push('invalid value for "text_compression", text_compression cannot be nil.')
261
248
  end
@@ -322,6 +309,7 @@ module AsposeSlidesCloud
322
309
  # Check to see if the all the properties in the model are valid
323
310
  # @return true if the model is valid
324
311
  def valid?
312
+ return false if !super
325
313
  return false if @text_compression.nil?
326
314
  text_compression_validator = EnumAttributeValidator.new('String', ['None', 'Flate'])
327
315
  return false unless text_compression_validator.valid?(@text_compression)
@@ -405,6 +393,7 @@ module AsposeSlidesCloud
405
393
  def ==(o)
406
394
  return true if self.equal?(o)
407
395
  self.class == o.class &&
396
+ default_regular_font == o.default_regular_font &&
408
397
  format == o.format &&
409
398
  text_compression == o.text_compression &&
410
399
  embed_full_fonts == o.embed_full_fonts &&
@@ -436,7 +425,7 @@ module AsposeSlidesCloud
436
425
  # Calculates hash code according to all attributes.
437
426
  # @return [Fixnum] Hash code
438
427
  def hash
439
- [format, text_compression, embed_full_fonts, compliance, sufficient_resolution, jpeg_quality, draw_slides_frame, show_hidden_slides, save_metafiles_as_png, password, embed_true_type_fonts_for_ascii, additional_common_font_families, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author, image_transparent_color, apply_image_transparent, access_permissions].hash
428
+ [default_regular_font, format, text_compression, embed_full_fonts, compliance, sufficient_resolution, jpeg_quality, draw_slides_frame, show_hidden_slides, save_metafiles_as_png, password, embed_true_type_fonts_for_ascii, additional_common_font_families, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author, image_transparent_color, apply_image_transparent, access_permissions].hash
440
429
  end
441
430
 
442
431
  # Builds the object from hash
@@ -445,15 +434,27 @@ module AsposeSlidesCloud
445
434
  def build_from_hash(attributes)
446
435
  return nil unless attributes.is_a?(Hash)
447
436
  self.class.swagger_types.each_pair do |key, type|
448
- if type =~ /\AArray<(.*)>/i
449
- # check to ensure the input is an array given that the the attribute
450
- # is documented as an array but the input is not
451
- if attributes[self.class.attribute_map[key]].is_a?(Array)
452
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
437
+ mapKey = self.class.attribute_map[key]
438
+ if !mapKey.nil?
439
+ val = attributes[mapKey]
440
+ if val.nil?
441
+ mapKeyString = mapKey.to_s
442
+ mapKeyString[0] = mapKeyString[0].downcase
443
+ mapKey = mapKeyString.to_sym
444
+ val = attributes[mapKey]
445
+ end
446
+ if !val.nil?
447
+ if type =~ /\AArray<(.*)>/i
448
+ # check to ensure the input is an array given that the the attribute
449
+ # is documented as an array but the input is not
450
+ if val.is_a?(Array)
451
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
452
+ end
453
+ else
454
+ self.send("#{key}=", _deserialize(type, val))
455
+ end
453
456
  end
454
- elsif !attributes[self.class.attribute_map[key]].nil?
455
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
456
- end # or else data not found in attributes(hash), not an issue as the data can be optional
457
+ end
457
458
  end
458
459
 
459
460
  self
@@ -24,10 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Picture fill.
27
- class PictureFill
28
- # Fill type.
29
- attr_accessor :type
30
-
27
+ class PictureFill < FillFormat
31
28
  # Percentage of image height that is cropped from the bottom.
32
29
  attr_accessor :crop_bottom
33
30
 
@@ -79,8 +76,7 @@ module AsposeSlidesCloud
79
76
 
80
77
  # Attribute mapping from ruby-style variable name to JSON key.
81
78
  def self.attribute_map
82
- {
83
- :'type' => :'Type',
79
+ super.merge({
84
80
  :'crop_bottom' => :'CropBottom',
85
81
  :'crop_left' => :'CropLeft',
86
82
  :'crop_right' => :'CropRight',
@@ -89,39 +85,29 @@ module AsposeSlidesCloud
89
85
  :'image' => :'Image',
90
86
  :'base64_data' => :'Base64Data',
91
87
  :'svg_data' => :'SvgData',
92
- :'picture_fill_mode' => :'PictureFillMode'
93
- }
88
+ :'picture_fill_mode' => :'PictureFillMode',
89
+ })
94
90
  end
95
91
 
96
92
  # Attribute type mapping.
97
93
  def self.swagger_types
98
- {
99
- :'type' => :'String',
94
+ super.merge({
100
95
  :'crop_bottom' => :'Float',
101
96
  :'crop_left' => :'Float',
102
97
  :'crop_right' => :'Float',
103
98
  :'crop_top' => :'Float',
104
99
  :'dpi' => :'Integer',
105
- :'image' => :'ResourceUriElement',
100
+ :'image' => :'ResourceUri',
106
101
  :'base64_data' => :'String',
107
102
  :'svg_data' => :'String',
108
- :'picture_fill_mode' => :'String'
109
- }
103
+ :'picture_fill_mode' => :'String',
104
+ })
110
105
  end
111
106
 
112
107
  # Initializes the object
113
108
  # @param [Hash] attributes Model attributes in the form of hash
114
109
  def initialize(attributes = {})
115
- return unless attributes.is_a?(Hash)
116
-
117
- # convert string to symbol for hash key
118
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
119
-
120
- if attributes.has_key?(:'Type')
121
- self.type = attributes[:'Type']
122
- else
123
- self.type = "Picture"
124
- end
110
+ super
125
111
 
126
112
  if attributes.has_key?(:'CropBottom')
127
113
  self.crop_bottom = attributes[:'CropBottom']
@@ -158,16 +144,13 @@ module AsposeSlidesCloud
158
144
  if attributes.has_key?(:'PictureFillMode')
159
145
  self.picture_fill_mode = attributes[:'PictureFillMode']
160
146
  end
147
+ self.type = "Picture"
161
148
  end
162
149
 
163
150
  # Show invalid properties with the reasons. Usually used together with valid?
164
151
  # @return Array for valid properties with the reasons
165
152
  def list_invalid_properties
166
- invalid_properties = Array.new
167
- if @type.nil?
168
- invalid_properties.push('invalid value for "type", type cannot be nil.')
169
- end
170
-
153
+ invalid_properties = super
171
154
  if @crop_bottom.nil?
172
155
  invalid_properties.push('invalid value for "crop_bottom", crop_bottom cannot be nil.')
173
156
  end
@@ -198,9 +181,7 @@ module AsposeSlidesCloud
198
181
  # Check to see if the all the properties in the model are valid
199
182
  # @return true if the model is valid
200
183
  def valid?
201
- return false if @type.nil?
202
- type_validator = EnumAttributeValidator.new('String', ['NoFill', 'Solid', 'Gradient', 'Pattern', 'Picture', 'NotDefined'])
203
- return false unless type_validator.valid?(@type)
184
+ return false if !super
204
185
  return false if @crop_bottom.nil?
205
186
  return false if @crop_left.nil?
206
187
  return false if @crop_right.nil?
@@ -212,16 +193,6 @@ module AsposeSlidesCloud
212
193
  true
213
194
  end
214
195
 
215
- # Custom attribute writer method checking allowed values (enum).
216
- # @param [Object] type Object to be assigned
217
- def type=(type)
218
- validator = EnumAttributeValidator.new('String', ['NoFill', 'Solid', 'Gradient', 'Pattern', 'Picture', 'NotDefined'])
219
- unless validator.valid?(type)
220
- fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
221
- end
222
- @type = type
223
- end
224
-
225
196
  # Custom attribute writer method checking allowed values (enum).
226
197
  # @param [Object] picture_fill_mode Object to be assigned
227
198
  def picture_fill_mode=(picture_fill_mode)
@@ -267,15 +238,27 @@ module AsposeSlidesCloud
267
238
  def build_from_hash(attributes)
268
239
  return nil unless attributes.is_a?(Hash)
269
240
  self.class.swagger_types.each_pair do |key, type|
270
- if type =~ /\AArray<(.*)>/i
271
- # check to ensure the input is an array given that the the attribute
272
- # is documented as an array but the input is not
273
- if attributes[self.class.attribute_map[key]].is_a?(Array)
274
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
241
+ mapKey = self.class.attribute_map[key]
242
+ if !mapKey.nil?
243
+ val = attributes[mapKey]
244
+ if val.nil?
245
+ mapKeyString = mapKey.to_s
246
+ mapKeyString[0] = mapKeyString[0].downcase
247
+ mapKey = mapKeyString.to_sym
248
+ val = attributes[mapKey]
249
+ end
250
+ if !val.nil?
251
+ if type =~ /\AArray<(.*)>/i
252
+ # check to ensure the input is an array given that the the attribute
253
+ # is documented as an array but the input is not
254
+ if val.is_a?(Array)
255
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
256
+ end
257
+ else
258
+ self.send("#{key}=", _deserialize(type, val))
259
+ end
275
260
  end
276
- elsif !attributes[self.class.attribute_map[key]].nil?
277
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
278
- end # or else data not found in attributes(hash), not an issue as the data can be optional
261
+ end
279
262
  end
280
263
 
281
264
  self
@@ -24,61 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents PictureFrame resource.
27
- class PictureFrame
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 PictureFrame < GeometryShape
82
28
  # Fill format.
83
29
  attr_accessor :picture_fill_format
84
30
 
@@ -106,214 +52,43 @@ module AsposeSlidesCloud
106
52
 
107
53
  # Attribute mapping from ruby-style variable name to JSON key.
108
54
  def self.attribute_map
109
- {
110
- :'self_uri' => :'SelfUri',
111
- :'alternate_links' => :'AlternateLinks',
112
- :'name' => :'Name',
113
- :'width' => :'Width',
114
- :'height' => :'Height',
115
- :'alternative_text' => :'AlternativeText',
116
- :'alternative_text_title' => :'AlternativeTextTitle',
117
- :'hidden' => :'Hidden',
118
- :'x' => :'X',
119
- :'y' => :'Y',
120
- :'z_order_position' => :'ZOrderPosition',
121
- :'shapes' => :'Shapes',
122
- :'fill_format' => :'FillFormat',
123
- :'effect_format' => :'EffectFormat',
124
- :'line_format' => :'LineFormat',
125
- :'type' => :'Type',
126
- :'shape_type' => :'ShapeType',
127
- :'geometry_shape_type' => :'GeometryShapeType',
128
- :'picture_fill_format' => :'PictureFillFormat'
129
- }
55
+ super.merge({
56
+ :'picture_fill_format' => :'PictureFillFormat',
57
+ })
130
58
  end
131
59
 
132
60
  # Attribute type mapping.
133
61
  def self.swagger_types
134
- {
135
- :'self_uri' => :'ResourceUri',
136
- :'alternate_links' => :'Array<ResourceUri>',
137
- :'name' => :'String',
138
- :'width' => :'Float',
139
- :'height' => :'Float',
140
- :'alternative_text' => :'String',
141
- :'alternative_text_title' => :'String',
142
- :'hidden' => :'BOOLEAN',
143
- :'x' => :'Float',
144
- :'y' => :'Float',
145
- :'z_order_position' => :'Integer',
146
- :'shapes' => :'ResourceUriElement',
147
- :'fill_format' => :'FillFormat',
148
- :'effect_format' => :'EffectFormat',
149
- :'line_format' => :'LineFormat',
150
- :'type' => :'String',
151
- :'shape_type' => :'String',
152
- :'geometry_shape_type' => :'String',
153
- :'picture_fill_format' => :'PictureFill'
154
- }
62
+ super.merge({
63
+ :'picture_fill_format' => :'PictureFill',
64
+ })
155
65
  end
156
66
 
157
67
  # Initializes the object
158
68
  # @param [Hash] attributes Model attributes in the form of hash
159
69
  def initialize(attributes = {})
160
- return unless attributes.is_a?(Hash)
161
-
162
- # convert string to symbol for hash key
163
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
164
-
165
- if attributes.has_key?(:'SelfUri')
166
- self.self_uri = attributes[:'SelfUri']
167
- end
168
-
169
- if attributes.has_key?(:'AlternateLinks')
170
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
171
- self.alternate_links = value
172
- end
173
- end
174
-
175
- if attributes.has_key?(:'Name')
176
- self.name = attributes[:'Name']
177
- end
178
-
179
- if attributes.has_key?(:'Width')
180
- self.width = attributes[:'Width']
181
- end
182
-
183
- if attributes.has_key?(:'Height')
184
- self.height = attributes[:'Height']
185
- end
186
-
187
- if attributes.has_key?(:'AlternativeText')
188
- self.alternative_text = attributes[:'AlternativeText']
189
- end
190
-
191
- if attributes.has_key?(:'AlternativeTextTitle')
192
- self.alternative_text_title = attributes[:'AlternativeTextTitle']
193
- end
194
-
195
- if attributes.has_key?(:'Hidden')
196
- self.hidden = attributes[:'Hidden']
197
- end
198
-
199
- if attributes.has_key?(:'X')
200
- self.x = attributes[:'X']
201
- end
202
-
203
- if attributes.has_key?(:'Y')
204
- self.y = attributes[:'Y']
205
- end
206
-
207
- if attributes.has_key?(:'ZOrderPosition')
208
- self.z_order_position = attributes[:'ZOrderPosition']
209
- end
210
-
211
- if attributes.has_key?(:'Shapes')
212
- self.shapes = attributes[:'Shapes']
213
- end
214
-
215
- if attributes.has_key?(:'FillFormat')
216
- self.fill_format = attributes[:'FillFormat']
217
- end
218
-
219
- if attributes.has_key?(:'EffectFormat')
220
- self.effect_format = attributes[:'EffectFormat']
221
- end
222
-
223
- if attributes.has_key?(:'LineFormat')
224
- self.line_format = attributes[:'LineFormat']
225
- end
226
-
227
- if attributes.has_key?(:'Type')
228
- self.type = attributes[:'Type']
229
- else
230
- self.type = "PictureFrame"
231
- end
232
-
233
- if attributes.has_key?(:'ShapeType')
234
- self.shape_type = attributes[:'ShapeType']
235
- else
236
- self.shape_type = "PictureFrame"
237
- end
238
-
239
- if attributes.has_key?(:'GeometryShapeType')
240
- self.geometry_shape_type = attributes[:'GeometryShapeType']
241
- end
70
+ super
242
71
 
243
72
  if attributes.has_key?(:'PictureFillFormat')
244
73
  self.picture_fill_format = attributes[:'PictureFillFormat']
245
74
  end
75
+ self.type = "PictureFrame"
246
76
  end
247
77
 
248
78
  # Show invalid properties with the reasons. Usually used together with valid?
249
79
  # @return Array for valid properties with the reasons
250
80
  def list_invalid_properties
251
- invalid_properties = Array.new
252
- if @z_order_position.nil?
253
- invalid_properties.push('invalid value for "z_order_position", z_order_position cannot be nil.')
254
- end
255
-
256
- if @type.nil?
257
- invalid_properties.push('invalid value for "type", type cannot be nil.')
258
- end
259
-
260
- if @shape_type.nil?
261
- invalid_properties.push('invalid value for "shape_type", shape_type cannot be nil.')
262
- end
263
-
264
- if @geometry_shape_type.nil?
265
- invalid_properties.push('invalid value for "geometry_shape_type", geometry_shape_type cannot be nil.')
266
- end
267
-
81
+ invalid_properties = super
268
82
  invalid_properties
269
83
  end
270
84
 
271
85
  # Check to see if the all the properties in the model are valid
272
86
  # @return true if the model is valid
273
87
  def valid?
274
- return false if @z_order_position.nil?
275
- return false if @type.nil?
276
- type_validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
277
- return false unless type_validator.valid?(@type)
278
- return false if @shape_type.nil?
279
- 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'])
280
- return false unless shape_type_validator.valid?(@shape_type)
281
- return false if @geometry_shape_type.nil?
282
- 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'])
283
- return false unless geometry_shape_type_validator.valid?(@geometry_shape_type)
88
+ return false if !super
284
89
  true
285
90
  end
286
91
 
287
- # Custom attribute writer method checking allowed values (enum).
288
- # @param [Object] type Object to be assigned
289
- def type=(type)
290
- validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
291
- unless validator.valid?(type)
292
- fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
293
- end
294
- @type = type
295
- end
296
-
297
- # Custom attribute writer method checking allowed values (enum).
298
- # @param [Object] shape_type Object to be assigned
299
- def shape_type=(shape_type)
300
- 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'])
301
- unless validator.valid?(shape_type)
302
- fail ArgumentError, 'invalid value for "shape_type", must be one of #{validator.allowable_values}.'
303
- end
304
- @shape_type = shape_type
305
- end
306
-
307
- # Custom attribute writer method checking allowed values (enum).
308
- # @param [Object] geometry_shape_type Object to be assigned
309
- def geometry_shape_type=(geometry_shape_type)
310
- 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'])
311
- unless validator.valid?(geometry_shape_type)
312
- fail ArgumentError, 'invalid value for "geometry_shape_type", must be one of #{validator.allowable_values}.'
313
- end
314
- @geometry_shape_type = geometry_shape_type
315
- end
316
-
317
92
  # Checks equality by comparing each attribute.
318
93
  # @param [Object] Object to be compared
319
94
  def ==(o)
@@ -336,7 +111,6 @@ module AsposeSlidesCloud
336
111
  line_format == o.line_format &&
337
112
  type == o.type &&
338
113
  shape_type == o.shape_type &&
339
- geometry_shape_type == o.geometry_shape_type &&
340
114
  picture_fill_format == o.picture_fill_format
341
115
  end
342
116
 
@@ -349,7 +123,7 @@ module AsposeSlidesCloud
349
123
  # Calculates hash code according to all attributes.
350
124
  # @return [Fixnum] Hash code
351
125
  def hash
352
- [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, picture_fill_format].hash
126
+ [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, picture_fill_format].hash
353
127
  end
354
128
 
355
129
  # Builds the object from hash
@@ -358,15 +132,27 @@ module AsposeSlidesCloud
358
132
  def build_from_hash(attributes)
359
133
  return nil unless attributes.is_a?(Hash)
360
134
  self.class.swagger_types.each_pair do |key, type|
361
- if type =~ /\AArray<(.*)>/i
362
- # check to ensure the input is an array given that the the attribute
363
- # is documented as an array but the input is not
364
- if attributes[self.class.attribute_map[key]].is_a?(Array)
365
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
135
+ mapKey = self.class.attribute_map[key]
136
+ if !mapKey.nil?
137
+ val = attributes[mapKey]
138
+ if val.nil?
139
+ mapKeyString = mapKey.to_s
140
+ mapKeyString[0] = mapKeyString[0].downcase
141
+ mapKey = mapKeyString.to_sym
142
+ val = attributes[mapKey]
366
143
  end
367
- elsif !attributes[self.class.attribute_map[key]].nil?
368
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
369
- end # or else data not found in attributes(hash), not an issue as the data can be optional
144
+ if !val.nil?
145
+ if type =~ /\AArray<(.*)>/i
146
+ # check to ensure the input is an array given that the the attribute
147
+ # is documented as an array but the input is not
148
+ if val.is_a?(Array)
149
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
150
+ end
151
+ else
152
+ self.send("#{key}=", _deserialize(type, val))
153
+ end
154
+ end
155
+ end
370
156
  end
371
157
 
372
158
  self