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
@@ -25,8 +25,11 @@ require 'date'
25
25
  module AsposeSlidesCloud
26
26
  # Represents chart category resource
27
27
  class ChartCategory
28
- # Gets or sets the categories for chart data
29
- attr_accessor :categories
28
+ # Gets or sets the parent categories. Used with Sunburst & treemap categories; ignored for other chart types.
29
+ attr_accessor :parent_categories
30
+
31
+ # Gets or sets the grouping level for the category. Used with Sunburst & treemap categories; ignored for other chart types.
32
+ attr_accessor :level
30
33
 
31
34
  # Category value
32
35
  attr_accessor :value
@@ -40,25 +43,32 @@ module AsposeSlidesCloud
40
43
  # Get or sets the line format.
41
44
  attr_accessor :line_format
42
45
 
46
+ # Gets or sets the data points for chart data
47
+ attr_accessor :data_points
48
+
43
49
  # Attribute mapping from ruby-style variable name to JSON key.
44
50
  def self.attribute_map
45
51
  {
46
- :'categories' => :'Categories',
52
+ :'parent_categories' => :'ParentCategories',
53
+ :'level' => :'Level',
47
54
  :'value' => :'Value',
48
55
  :'fill_format' => :'FillFormat',
49
56
  :'effect_format' => :'EffectFormat',
50
- :'line_format' => :'LineFormat'
57
+ :'line_format' => :'LineFormat',
58
+ :'data_points' => :'DataPoints',
51
59
  }
52
60
  end
53
61
 
54
62
  # Attribute type mapping.
55
63
  def self.swagger_types
56
64
  {
57
- :'categories' => :'Array<ChartCategory>',
65
+ :'parent_categories' => :'Array<String>',
66
+ :'level' => :'Integer',
58
67
  :'value' => :'String',
59
68
  :'fill_format' => :'FillFormat',
60
69
  :'effect_format' => :'EffectFormat',
61
- :'line_format' => :'LineFormat'
70
+ :'line_format' => :'LineFormat',
71
+ :'data_points' => :'Array<OneValueChartDataPoint>',
62
72
  }
63
73
  end
64
74
 
@@ -70,12 +80,16 @@ module AsposeSlidesCloud
70
80
  # convert string to symbol for hash key
71
81
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
72
82
 
73
- if attributes.has_key?(:'Categories')
74
- if (value = attributes[:'Categories']).is_a?(Array)
75
- self.categories = value
83
+ if attributes.has_key?(:'ParentCategories')
84
+ if (value = attributes[:'ParentCategories']).is_a?(Array)
85
+ self.parent_categories = value
76
86
  end
77
87
  end
78
88
 
89
+ if attributes.has_key?(:'Level')
90
+ self.level = attributes[:'Level']
91
+ end
92
+
79
93
  if attributes.has_key?(:'Value')
80
94
  self.value = attributes[:'Value']
81
95
  end
@@ -91,6 +105,12 @@ module AsposeSlidesCloud
91
105
  if attributes.has_key?(:'LineFormat')
92
106
  self.line_format = attributes[:'LineFormat']
93
107
  end
108
+
109
+ if attributes.has_key?(:'DataPoints')
110
+ if (value = attributes[:'DataPoints']).is_a?(Array)
111
+ self.data_points = value
112
+ end
113
+ end
94
114
  end
95
115
 
96
116
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -111,11 +131,13 @@ module AsposeSlidesCloud
111
131
  def ==(o)
112
132
  return true if self.equal?(o)
113
133
  self.class == o.class &&
114
- categories == o.categories &&
134
+ parent_categories == o.parent_categories &&
135
+ level == o.level &&
115
136
  value == o.value &&
116
137
  fill_format == o.fill_format &&
117
138
  effect_format == o.effect_format &&
118
- line_format == o.line_format
139
+ line_format == o.line_format &&
140
+ data_points == o.data_points
119
141
  end
120
142
 
121
143
  # @see the `==` method
@@ -127,7 +149,7 @@ module AsposeSlidesCloud
127
149
  # Calculates hash code according to all attributes.
128
150
  # @return [Fixnum] Hash code
129
151
  def hash
130
- [categories, value, fill_format, effect_format, line_format].hash
152
+ [parent_categories, level, value, fill_format, effect_format, line_format, data_points].hash
131
153
  end
132
154
 
133
155
  # Builds the object from hash
@@ -136,15 +158,27 @@ module AsposeSlidesCloud
136
158
  def build_from_hash(attributes)
137
159
  return nil unless attributes.is_a?(Hash)
138
160
  self.class.swagger_types.each_pair do |key, type|
139
- if type =~ /\AArray<(.*)>/i
140
- # check to ensure the input is an array given that the the attribute
141
- # is documented as an array but the input is not
142
- if attributes[self.class.attribute_map[key]].is_a?(Array)
143
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
161
+ mapKey = self.class.attribute_map[key]
162
+ if !mapKey.nil?
163
+ val = attributes[mapKey]
164
+ if val.nil?
165
+ mapKeyString = mapKey.to_s
166
+ mapKeyString[0] = mapKeyString[0].downcase
167
+ mapKey = mapKeyString.to_sym
168
+ val = attributes[mapKey]
144
169
  end
145
- elsif !attributes[self.class.attribute_map[key]].nil?
146
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
147
- end # or else data not found in attributes(hash), not an issue as the data can be optional
170
+ if !val.nil?
171
+ if type =~ /\AArray<(.*)>/i
172
+ # check to ensure the input is an array given that the the attribute
173
+ # is documented as an array but the input is not
174
+ if val.is_a?(Array)
175
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
176
+ end
177
+ else
178
+ self.send("#{key}=", _deserialize(type, val))
179
+ end
180
+ end
181
+ end
148
182
  end
149
183
 
150
184
  self
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
35
35
  def self.attribute_map
36
36
  {
37
37
  :'text' => :'Text',
38
- :'has_title' => :'HasTitle'
38
+ :'has_title' => :'HasTitle',
39
39
  }
40
40
  end
41
41
 
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
43
43
  def self.swagger_types
44
44
  {
45
45
  :'text' => :'String',
46
- :'has_title' => :'BOOLEAN'
46
+ :'has_title' => :'BOOLEAN',
47
47
  }
48
48
  end
49
49
 
@@ -109,15 +109,27 @@ module AsposeSlidesCloud
109
109
  def build_from_hash(attributes)
110
110
  return nil unless attributes.is_a?(Hash)
111
111
  self.class.swagger_types.each_pair do |key, type|
112
- if type =~ /\AArray<(.*)>/i
113
- # check to ensure the input is an array given that the the attribute
114
- # is documented as an array but the input is not
115
- if attributes[self.class.attribute_map[key]].is_a?(Array)
116
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
112
+ mapKey = self.class.attribute_map[key]
113
+ if !mapKey.nil?
114
+ val = attributes[mapKey]
115
+ if val.nil?
116
+ mapKeyString = mapKey.to_s
117
+ mapKeyString[0] = mapKeyString[0].downcase
118
+ mapKey = mapKeyString.to_sym
119
+ val = attributes[mapKey]
117
120
  end
118
- elsif !attributes[self.class.attribute_map[key]].nil?
119
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
120
- end # or else data not found in attributes(hash), not an issue as the data can be optional
121
+ if !val.nil?
122
+ if type =~ /\AArray<(.*)>/i
123
+ # check to ensure the input is an array given that the the attribute
124
+ # is documented as an array but the input is not
125
+ if val.is_a?(Array)
126
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
127
+ end
128
+ else
129
+ self.send("#{key}=", _deserialize(type, val))
130
+ end
131
+ end
132
+ end
121
133
  end
122
134
 
123
135
  self
@@ -69,7 +69,7 @@ module AsposeSlidesCloud
69
69
  :'effect_format' => :'EffectFormat',
70
70
  :'line_format' => :'LineFormat',
71
71
  :'thickness' => :'Thickness',
72
- :'picture_type' => :'PictureType'
72
+ :'picture_type' => :'PictureType',
73
73
  }
74
74
  end
75
75
 
@@ -80,7 +80,7 @@ module AsposeSlidesCloud
80
80
  :'effect_format' => :'EffectFormat',
81
81
  :'line_format' => :'LineFormat',
82
82
  :'thickness' => :'Integer',
83
- :'picture_type' => :'String'
83
+ :'picture_type' => :'String',
84
84
  }
85
85
  end
86
86
 
@@ -168,15 +168,27 @@ module AsposeSlidesCloud
168
168
  def build_from_hash(attributes)
169
169
  return nil unless attributes.is_a?(Hash)
170
170
  self.class.swagger_types.each_pair do |key, type|
171
- if type =~ /\AArray<(.*)>/i
172
- # check to ensure the input is an array given that the the attribute
173
- # is documented as an array but the input is not
174
- if attributes[self.class.attribute_map[key]].is_a?(Array)
175
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
171
+ mapKey = self.class.attribute_map[key]
172
+ if !mapKey.nil?
173
+ val = attributes[mapKey]
174
+ if val.nil?
175
+ mapKeyString = mapKey.to_s
176
+ mapKeyString[0] = mapKeyString[0].downcase
177
+ mapKey = mapKeyString.to_sym
178
+ val = attributes[mapKey]
176
179
  end
177
- elsif !attributes[self.class.attribute_map[key]].nil?
178
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
179
- end # or else data not found in attributes(hash), not an issue as the data can be optional
180
+ if !val.nil?
181
+ if type =~ /\AArray<(.*)>/i
182
+ # check to ensure the input is an array given that the the attribute
183
+ # is documented as an array but the input is not
184
+ if val.is_a?(Array)
185
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
186
+ end
187
+ else
188
+ self.send("#{key}=", _deserialize(type, val))
189
+ end
190
+ end
191
+ end
180
192
  end
181
193
 
182
194
  self
@@ -24,13 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Slide's color scheme DTO
27
- class ColorScheme
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 ColorScheme < ResourceBase
34
28
  # First accent color.
35
29
  attr_accessor :accent1
36
30
 
@@ -69,9 +63,7 @@ module AsposeSlidesCloud
69
63
 
70
64
  # Attribute mapping from ruby-style variable name to JSON key.
71
65
  def self.attribute_map
72
- {
73
- :'self_uri' => :'SelfUri',
74
- :'alternate_links' => :'AlternateLinks',
66
+ super.merge({
75
67
  :'accent1' => :'Accent1',
76
68
  :'accent2' => :'Accent2',
77
69
  :'accent3' => :'Accent3',
@@ -83,15 +75,13 @@ module AsposeSlidesCloud
83
75
  :'followed_hyperlink' => :'FollowedHyperlink',
84
76
  :'hyperlink' => :'Hyperlink',
85
77
  :'light1' => :'Light1',
86
- :'light2' => :'Light2'
87
- }
78
+ :'light2' => :'Light2',
79
+ })
88
80
  end
89
81
 
90
82
  # Attribute type mapping.
91
83
  def self.swagger_types
92
- {
93
- :'self_uri' => :'ResourceUri',
94
- :'alternate_links' => :'Array<ResourceUri>',
84
+ super.merge({
95
85
  :'accent1' => :'String',
96
86
  :'accent2' => :'String',
97
87
  :'accent3' => :'String',
@@ -103,27 +93,14 @@ module AsposeSlidesCloud
103
93
  :'followed_hyperlink' => :'String',
104
94
  :'hyperlink' => :'String',
105
95
  :'light1' => :'String',
106
- :'light2' => :'String'
107
- }
96
+ :'light2' => :'String',
97
+ })
108
98
  end
109
99
 
110
100
  # Initializes the object
111
101
  # @param [Hash] attributes Model attributes in the form of hash
112
102
  def initialize(attributes = {})
113
- return unless attributes.is_a?(Hash)
114
-
115
- # convert string to symbol for hash key
116
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
117
-
118
- if attributes.has_key?(:'SelfUri')
119
- self.self_uri = attributes[:'SelfUri']
120
- end
121
-
122
- if attributes.has_key?(:'AlternateLinks')
123
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
124
- self.alternate_links = value
125
- end
126
- end
103
+ super
127
104
 
128
105
  if attributes.has_key?(:'Accent1')
129
106
  self.accent1 = attributes[:'Accent1']
@@ -177,13 +154,14 @@ module AsposeSlidesCloud
177
154
  # Show invalid properties with the reasons. Usually used together with valid?
178
155
  # @return Array for valid properties with the reasons
179
156
  def list_invalid_properties
180
- invalid_properties = Array.new
157
+ invalid_properties = super
181
158
  invalid_properties
182
159
  end
183
160
 
184
161
  # Check to see if the all the properties in the model are valid
185
162
  # @return true if the model is valid
186
163
  def valid?
164
+ return false if !super
187
165
  true
188
166
  end
189
167
 
@@ -226,15 +204,27 @@ module AsposeSlidesCloud
226
204
  def build_from_hash(attributes)
227
205
  return nil unless attributes.is_a?(Hash)
228
206
  self.class.swagger_types.each_pair do |key, type|
229
- if type =~ /\AArray<(.*)>/i
230
- # check to ensure the input is an array given that the the attribute
231
- # is documented as an array but the input is not
232
- if attributes[self.class.attribute_map[key]].is_a?(Array)
233
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
207
+ mapKey = self.class.attribute_map[key]
208
+ if !mapKey.nil?
209
+ val = attributes[mapKey]
210
+ if val.nil?
211
+ mapKeyString = mapKey.to_s
212
+ mapKeyString[0] = mapKeyString[0].downcase
213
+ mapKey = mapKeyString.to_sym
214
+ val = attributes[mapKey]
234
215
  end
235
- elsif !attributes[self.class.attribute_map[key]].nil?
236
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
237
- end # or else data not found in attributes(hash), not an issue as the data can be optional
216
+ if !val.nil?
217
+ if type =~ /\AArray<(.*)>/i
218
+ # check to ensure the input is an array given that the the attribute
219
+ # is documented as an array but the input is not
220
+ if val.is_a?(Array)
221
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
222
+ end
223
+ else
224
+ self.send("#{key}=", _deserialize(type, val))
225
+ end
226
+ end
227
+ end
238
228
  end
239
229
 
240
230
  self
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
35
35
  def self.attribute_map
36
36
  {
37
37
  :'scale' => :'Scale',
38
- :'variable_scale' => :'VariableScale'
38
+ :'variable_scale' => :'VariableScale',
39
39
  }
40
40
  end
41
41
 
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
43
43
  def self.swagger_types
44
44
  {
45
45
  :'scale' => :'Integer',
46
- :'variable_scale' => :'BOOLEAN'
46
+ :'variable_scale' => :'BOOLEAN',
47
47
  }
48
48
  end
49
49
 
@@ -104,15 +104,27 @@ module AsposeSlidesCloud
104
104
  def build_from_hash(attributes)
105
105
  return nil unless attributes.is_a?(Hash)
106
106
  self.class.swagger_types.each_pair do |key, type|
107
- if type =~ /\AArray<(.*)>/i
108
- # check to ensure the input is an array given that the the attribute
109
- # is documented as an array but the input is not
110
- if attributes[self.class.attribute_map[key]].is_a?(Array)
111
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
107
+ mapKey = self.class.attribute_map[key]
108
+ if !mapKey.nil?
109
+ val = attributes[mapKey]
110
+ if val.nil?
111
+ mapKeyString = mapKey.to_s
112
+ mapKeyString[0] = mapKeyString[0].downcase
113
+ mapKey = mapKeyString.to_sym
114
+ val = attributes[mapKey]
112
115
  end
113
- elsif !attributes[self.class.attribute_map[key]].nil?
114
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
115
- end # or else data not found in attributes(hash), not an issue as the data can be optional
116
+ if !val.nil?
117
+ if type =~ /\AArray<(.*)>/i
118
+ # check to ensure the input is an array given that the the attribute
119
+ # is documented as an array but the input is not
120
+ if val.is_a?(Array)
121
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
122
+ end
123
+ else
124
+ self.send("#{key}=", _deserialize(type, val))
125
+ end
126
+ end
127
+ end
116
128
  end
117
129
 
118
130
  self
@@ -24,61 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents Connector resource.
27
- class Connector
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
- # Shape type.
77
- attr_accessor :shape_type
78
-
79
- # Geometry shape type.
80
- attr_accessor :geometry_shape_type
81
-
27
+ class Connector < GeometryShape
82
28
  # Start shape link.
83
29
  attr_accessor :start_shape_connected_to
84
30
 
@@ -115,143 +61,28 @@ module AsposeSlidesCloud
115
61
 
116
62
  # Attribute mapping from ruby-style variable name to JSON key.
117
63
  def self.attribute_map
118
- {
119
- :'self_uri' => :'SelfUri',
120
- :'alternate_links' => :'AlternateLinks',
121
- :'name' => :'Name',
122
- :'width' => :'Width',
123
- :'height' => :'Height',
124
- :'alternative_text' => :'AlternativeText',
125
- :'alternative_text_title' => :'AlternativeTextTitle',
126
- :'hidden' => :'Hidden',
127
- :'x' => :'X',
128
- :'y' => :'Y',
129
- :'z_order_position' => :'ZOrderPosition',
130
- :'shapes' => :'Shapes',
131
- :'fill_format' => :'FillFormat',
132
- :'effect_format' => :'EffectFormat',
133
- :'line_format' => :'LineFormat',
134
- :'type' => :'Type',
135
- :'shape_type' => :'ShapeType',
136
- :'geometry_shape_type' => :'GeometryShapeType',
64
+ super.merge({
137
65
  :'start_shape_connected_to' => :'StartShapeConnectedTo',
138
66
  :'start_shape_connected_to_index' => :'StartShapeConnectedToIndex',
139
67
  :'end_shape_connected_to' => :'EndShapeConnectedTo',
140
- :'end_shape_connected_to_index' => :'EndShapeConnectedToIndex'
141
- }
68
+ :'end_shape_connected_to_index' => :'EndShapeConnectedToIndex',
69
+ })
142
70
  end
143
71
 
144
72
  # Attribute type mapping.
145
73
  def self.swagger_types
146
- {
147
- :'self_uri' => :'ResourceUri',
148
- :'alternate_links' => :'Array<ResourceUri>',
149
- :'name' => :'String',
150
- :'width' => :'Float',
151
- :'height' => :'Float',
152
- :'alternative_text' => :'String',
153
- :'alternative_text_title' => :'String',
154
- :'hidden' => :'BOOLEAN',
155
- :'x' => :'Float',
156
- :'y' => :'Float',
157
- :'z_order_position' => :'Integer',
158
- :'shapes' => :'ResourceUriElement',
159
- :'fill_format' => :'FillFormat',
160
- :'effect_format' => :'EffectFormat',
161
- :'line_format' => :'LineFormat',
162
- :'type' => :'String',
163
- :'shape_type' => :'String',
164
- :'geometry_shape_type' => :'String',
74
+ super.merge({
165
75
  :'start_shape_connected_to' => :'ResourceUri',
166
76
  :'start_shape_connected_to_index' => :'Integer',
167
77
  :'end_shape_connected_to' => :'ResourceUri',
168
- :'end_shape_connected_to_index' => :'Integer'
169
- }
78
+ :'end_shape_connected_to_index' => :'Integer',
79
+ })
170
80
  end
171
81
 
172
82
  # Initializes the object
173
83
  # @param [Hash] attributes Model attributes in the form of hash
174
84
  def initialize(attributes = {})
175
- return unless attributes.is_a?(Hash)
176
-
177
- # convert string to symbol for hash key
178
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
179
-
180
- if attributes.has_key?(:'SelfUri')
181
- self.self_uri = attributes[:'SelfUri']
182
- end
183
-
184
- if attributes.has_key?(:'AlternateLinks')
185
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
186
- self.alternate_links = value
187
- end
188
- end
189
-
190
- if attributes.has_key?(:'Name')
191
- self.name = attributes[:'Name']
192
- end
193
-
194
- if attributes.has_key?(:'Width')
195
- self.width = attributes[:'Width']
196
- end
197
-
198
- if attributes.has_key?(:'Height')
199
- self.height = attributes[:'Height']
200
- end
201
-
202
- if attributes.has_key?(:'AlternativeText')
203
- self.alternative_text = attributes[:'AlternativeText']
204
- end
205
-
206
- if attributes.has_key?(:'AlternativeTextTitle')
207
- self.alternative_text_title = attributes[:'AlternativeTextTitle']
208
- end
209
-
210
- if attributes.has_key?(:'Hidden')
211
- self.hidden = attributes[:'Hidden']
212
- end
213
-
214
- if attributes.has_key?(:'X')
215
- self.x = attributes[:'X']
216
- end
217
-
218
- if attributes.has_key?(:'Y')
219
- self.y = attributes[:'Y']
220
- end
221
-
222
- if attributes.has_key?(:'ZOrderPosition')
223
- self.z_order_position = attributes[:'ZOrderPosition']
224
- end
225
-
226
- if attributes.has_key?(:'Shapes')
227
- self.shapes = attributes[:'Shapes']
228
- end
229
-
230
- if attributes.has_key?(:'FillFormat')
231
- self.fill_format = attributes[:'FillFormat']
232
- end
233
-
234
- if attributes.has_key?(:'EffectFormat')
235
- self.effect_format = attributes[:'EffectFormat']
236
- end
237
-
238
- if attributes.has_key?(:'LineFormat')
239
- self.line_format = attributes[:'LineFormat']
240
- end
241
-
242
- if attributes.has_key?(:'Type')
243
- self.type = attributes[:'Type']
244
- else
245
- self.type = "Connector"
246
- end
247
-
248
- if attributes.has_key?(:'ShapeType')
249
- self.shape_type = attributes[:'ShapeType']
250
- end
251
-
252
- if attributes.has_key?(:'GeometryShapeType')
253
- self.geometry_shape_type = attributes[:'GeometryShapeType']
254
- end
85
+ super
255
86
 
256
87
  if attributes.has_key?(:'StartShapeConnectedTo')
257
88
  self.start_shape_connected_to = attributes[:'StartShapeConnectedTo']
@@ -268,77 +99,23 @@ module AsposeSlidesCloud
268
99
  if attributes.has_key?(:'EndShapeConnectedToIndex')
269
100
  self.end_shape_connected_to_index = attributes[:'EndShapeConnectedToIndex']
270
101
  end
102
+ self.type = "Connector"
271
103
  end
272
104
 
273
105
  # Show invalid properties with the reasons. Usually used together with valid?
274
106
  # @return Array for valid properties with the reasons
275
107
  def list_invalid_properties
276
- invalid_properties = Array.new
277
- if @z_order_position.nil?
278
- invalid_properties.push('invalid value for "z_order_position", z_order_position cannot be nil.')
279
- end
280
-
281
- if @type.nil?
282
- invalid_properties.push('invalid value for "type", type cannot be nil.')
283
- end
284
-
285
- if @shape_type.nil?
286
- invalid_properties.push('invalid value for "shape_type", shape_type cannot be nil.')
287
- end
288
-
289
- if @geometry_shape_type.nil?
290
- invalid_properties.push('invalid value for "geometry_shape_type", geometry_shape_type cannot be nil.')
291
- end
292
-
108
+ invalid_properties = super
293
109
  invalid_properties
294
110
  end
295
111
 
296
112
  # Check to see if the all the properties in the model are valid
297
113
  # @return true if the model is valid
298
114
  def valid?
299
- return false if @z_order_position.nil?
300
- return false if @type.nil?
301
- type_validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
302
- return false unless type_validator.valid?(@type)
303
- return false if @shape_type.nil?
304
- 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'])
305
- return false unless shape_type_validator.valid?(@shape_type)
306
- return false if @geometry_shape_type.nil?
307
- 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'])
308
- return false unless geometry_shape_type_validator.valid?(@geometry_shape_type)
115
+ return false if !super
309
116
  true
310
117
  end
311
118
 
312
- # Custom attribute writer method checking allowed values (enum).
313
- # @param [Object] type Object to be assigned
314
- def type=(type)
315
- validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
316
- unless validator.valid?(type)
317
- fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
318
- end
319
- @type = type
320
- end
321
-
322
- # Custom attribute writer method checking allowed values (enum).
323
- # @param [Object] shape_type Object to be assigned
324
- def shape_type=(shape_type)
325
- 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'])
326
- unless validator.valid?(shape_type)
327
- fail ArgumentError, 'invalid value for "shape_type", must be one of #{validator.allowable_values}.'
328
- end
329
- @shape_type = shape_type
330
- end
331
-
332
- # Custom attribute writer method checking allowed values (enum).
333
- # @param [Object] geometry_shape_type Object to be assigned
334
- def geometry_shape_type=(geometry_shape_type)
335
- 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'])
336
- unless validator.valid?(geometry_shape_type)
337
- fail ArgumentError, 'invalid value for "geometry_shape_type", must be one of #{validator.allowable_values}.'
338
- end
339
- @geometry_shape_type = geometry_shape_type
340
- end
341
-
342
119
  # Checks equality by comparing each attribute.
343
120
  # @param [Object] Object to be compared
344
121
  def ==(o)
@@ -361,7 +138,6 @@ module AsposeSlidesCloud
361
138
  line_format == o.line_format &&
362
139
  type == o.type &&
363
140
  shape_type == o.shape_type &&
364
- geometry_shape_type == o.geometry_shape_type &&
365
141
  start_shape_connected_to == o.start_shape_connected_to &&
366
142
  start_shape_connected_to_index == o.start_shape_connected_to_index &&
367
143
  end_shape_connected_to == o.end_shape_connected_to &&
@@ -377,7 +153,7 @@ module AsposeSlidesCloud
377
153
  # Calculates hash code according to all attributes.
378
154
  # @return [Fixnum] Hash code
379
155
  def hash
380
- [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, start_shape_connected_to, start_shape_connected_to_index, end_shape_connected_to, end_shape_connected_to_index].hash
156
+ [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, start_shape_connected_to, start_shape_connected_to_index, end_shape_connected_to, end_shape_connected_to_index].hash
381
157
  end
382
158
 
383
159
  # Builds the object from hash
@@ -386,15 +162,27 @@ module AsposeSlidesCloud
386
162
  def build_from_hash(attributes)
387
163
  return nil unless attributes.is_a?(Hash)
388
164
  self.class.swagger_types.each_pair do |key, type|
389
- if type =~ /\AArray<(.*)>/i
390
- # check to ensure the input is an array given that the the attribute
391
- # is documented as an array but the input is not
392
- if attributes[self.class.attribute_map[key]].is_a?(Array)
393
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
165
+ mapKey = self.class.attribute_map[key]
166
+ if !mapKey.nil?
167
+ val = attributes[mapKey]
168
+ if val.nil?
169
+ mapKeyString = mapKey.to_s
170
+ mapKeyString[0] = mapKeyString[0].downcase
171
+ mapKey = mapKeyString.to_sym
172
+ val = attributes[mapKey]
394
173
  end
395
- elsif !attributes[self.class.attribute_map[key]].nil?
396
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
397
- end # or else data not found in attributes(hash), not an issue as the data can be optional
174
+ if !val.nil?
175
+ if type =~ /\AArray<(.*)>/i
176
+ # check to ensure the input is an array given that the the attribute
177
+ # is documented as an array but the input is not
178
+ if val.is_a?(Array)
179
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
180
+ end
181
+ else
182
+ self.send("#{key}=", _deserialize(type, val))
183
+ end
184
+ end
185
+ end
398
186
  end
399
187
 
400
188
  self