aspose_slides_cloud 19.12.0 → 20.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/lib/aspose_slides_cloud.rb +8 -0
  4. data/lib/aspose_slides_cloud/api/slides_api.rb +2156 -525
  5. data/lib/aspose_slides_cloud/api/slides_api_requests.rb +792 -124
  6. data/lib/aspose_slides_cloud/api_client.rb +7 -3
  7. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +20 -8
  8. data/lib/aspose_slides_cloud/models/add_master_slide.rb +20 -8
  9. data/lib/aspose_slides_cloud/models/add_shape.rb +20 -8
  10. data/lib/aspose_slides_cloud/models/add_slide.rb +20 -8
  11. data/lib/aspose_slides_cloud/models/api_info.rb +20 -8
  12. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +20 -23
  13. data/lib/aspose_slides_cloud/models/audio_frame.rb +20 -8
  14. data/lib/aspose_slides_cloud/models/axes.rb +20 -8
  15. data/lib/aspose_slides_cloud/models/axis.rb +20 -168
  16. data/lib/aspose_slides_cloud/models/base64_input_file.rb +20 -8
  17. data/lib/aspose_slides_cloud/models/blur_effect.rb +20 -8
  18. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +504 -0
  19. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +20 -8
  20. data/lib/aspose_slides_cloud/models/bubble_series.rb +24 -45
  21. data/lib/aspose_slides_cloud/models/chart.rb +23 -11
  22. data/lib/aspose_slides_cloud/models/chart_category.rb +249 -0
  23. data/lib/aspose_slides_cloud/models/chart_title.rb +20 -8
  24. data/lib/aspose_slides_cloud/models/chart_wall.rb +20 -18
  25. data/lib/aspose_slides_cloud/models/color_scheme.rb +20 -8
  26. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +217 -0
  27. data/lib/aspose_slides_cloud/models/connector.rb +20 -8
  28. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +20 -8
  29. data/lib/aspose_slides_cloud/models/disc_usage.rb +20 -8
  30. data/lib/aspose_slides_cloud/models/document.rb +31 -9
  31. data/lib/aspose_slides_cloud/models/document_properties.rb +20 -8
  32. data/lib/aspose_slides_cloud/models/document_property.rb +20 -8
  33. data/lib/aspose_slides_cloud/models/document_replace_result.rb +31 -9
  34. data/lib/aspose_slides_cloud/models/effect.rb +20 -8
  35. data/lib/aspose_slides_cloud/models/effect_format.rb +20 -8
  36. data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
  37. data/lib/aspose_slides_cloud/models/error.rb +20 -8
  38. data/lib/aspose_slides_cloud/models/error_details.rb +20 -8
  39. data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
  40. data/lib/aspose_slides_cloud/models/export_options.rb +20 -8
  41. data/lib/aspose_slides_cloud/models/file_version.rb +20 -8
  42. data/lib/aspose_slides_cloud/models/file_versions.rb +20 -8
  43. data/lib/aspose_slides_cloud/models/files_list.rb +20 -8
  44. data/lib/aspose_slides_cloud/models/files_upload_result.rb +20 -8
  45. data/lib/aspose_slides_cloud/models/fill_format.rb +20 -8
  46. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +20 -8
  47. data/lib/aspose_slides_cloud/models/font_scheme.rb +20 -8
  48. data/lib/aspose_slides_cloud/models/font_set.rb +20 -8
  49. data/lib/aspose_slides_cloud/models/format_scheme.rb +20 -8
  50. data/lib/aspose_slides_cloud/models/geometry_shape.rb +20 -8
  51. data/lib/aspose_slides_cloud/models/glow_effect.rb +20 -8
  52. data/lib/aspose_slides_cloud/models/gradient_fill.rb +20 -8
  53. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +20 -8
  54. data/lib/aspose_slides_cloud/models/graphical_object.rb +20 -8
  55. data/lib/aspose_slides_cloud/models/group_shape.rb +20 -8
  56. data/lib/aspose_slides_cloud/models/html_export_options.rb +20 -8
  57. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +20 -8
  58. data/lib/aspose_slides_cloud/models/image.rb +20 -8
  59. data/lib/aspose_slides_cloud/models/image_export_options.rb +20 -8
  60. data/lib/aspose_slides_cloud/models/images.rb +20 -8
  61. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +20 -8
  62. data/lib/aspose_slides_cloud/models/input.rb +20 -8
  63. data/lib/aspose_slides_cloud/models/input_file.rb +20 -8
  64. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +20 -8
  65. data/lib/aspose_slides_cloud/models/layout_slide.rb +20 -8
  66. data/lib/aspose_slides_cloud/models/layout_slides.rb +20 -8
  67. data/lib/aspose_slides_cloud/models/legend.rb +20 -38
  68. data/lib/aspose_slides_cloud/models/line_format.rb +20 -43
  69. data/lib/aspose_slides_cloud/models/master_slide.rb +20 -8
  70. data/lib/aspose_slides_cloud/models/master_slides.rb +20 -8
  71. data/lib/aspose_slides_cloud/models/merge.rb +20 -8
  72. data/lib/aspose_slides_cloud/models/merging_source.rb +20 -8
  73. data/lib/aspose_slides_cloud/models/no_fill.rb +20 -8
  74. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +217 -0
  75. data/lib/aspose_slides_cloud/models/notes_slide.rb +20 -8
  76. data/lib/aspose_slides_cloud/models/object_exist.rb +20 -8
  77. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +20 -8
  78. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +20 -8
  79. data/lib/aspose_slides_cloud/models/one_value_series.rb +24 -45
  80. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +20 -8
  81. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +20 -8
  82. data/lib/aspose_slides_cloud/models/output_file.rb +20 -8
  83. data/lib/aspose_slides_cloud/models/paragraph.rb +21 -9
  84. data/lib/aspose_slides_cloud/models/paragraphs.rb +20 -8
  85. data/lib/aspose_slides_cloud/models/path_input_file.rb +20 -8
  86. data/lib/aspose_slides_cloud/models/path_output_file.rb +20 -8
  87. data/lib/aspose_slides_cloud/models/pattern_fill.rb +20 -8
  88. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +53 -14
  89. data/lib/aspose_slides_cloud/models/picture_fill.rb +20 -8
  90. data/lib/aspose_slides_cloud/models/picture_frame.rb +20 -8
  91. data/lib/aspose_slides_cloud/models/pipeline.rb +20 -8
  92. data/lib/aspose_slides_cloud/models/placeholder.rb +20 -8
  93. data/lib/aspose_slides_cloud/models/placeholders.rb +20 -8
  94. data/lib/aspose_slides_cloud/models/plot_area.rb +20 -33
  95. data/lib/aspose_slides_cloud/models/portion.rb +20 -8
  96. data/lib/aspose_slides_cloud/models/portions.rb +28 -16
  97. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +20 -8
  98. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +20 -8
  99. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +20 -8
  100. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +20 -8
  101. data/lib/aspose_slides_cloud/models/reflection_effect.rb +20 -8
  102. data/lib/aspose_slides_cloud/models/remove_shape.rb +20 -8
  103. data/lib/aspose_slides_cloud/models/remove_slide.rb +20 -8
  104. data/lib/aspose_slides_cloud/models/reorder_slide.rb +20 -8
  105. data/lib/aspose_slides_cloud/models/replace_text.rb +20 -8
  106. data/lib/aspose_slides_cloud/models/request_input_file.rb +20 -8
  107. data/lib/aspose_slides_cloud/models/reset_slide.rb +20 -8
  108. data/lib/aspose_slides_cloud/models/resource_base.rb +20 -8
  109. data/lib/aspose_slides_cloud/models/resource_uri.rb +20 -8
  110. data/lib/aspose_slides_cloud/models/resource_uri_element.rb +20 -8
  111. data/lib/aspose_slides_cloud/models/response_output_file.rb +20 -8
  112. data/lib/aspose_slides_cloud/models/save.rb +22 -10
  113. data/lib/aspose_slides_cloud/models/save_shape.rb +20 -8
  114. data/lib/aspose_slides_cloud/models/save_slide.rb +22 -10
  115. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +20 -8
  116. data/lib/aspose_slides_cloud/models/scatter_series.rb +24 -45
  117. data/lib/aspose_slides_cloud/models/series.rb +47 -49
  118. data/lib/aspose_slides_cloud/models/series_marker.rb +20 -18
  119. data/lib/aspose_slides_cloud/models/shape.rb +20 -8
  120. data/lib/aspose_slides_cloud/models/shape_base.rb +20 -8
  121. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +20 -8
  122. data/lib/aspose_slides_cloud/models/shapes.rb +20 -8
  123. data/lib/aspose_slides_cloud/models/slide.rb +20 -8
  124. data/lib/aspose_slides_cloud/models/slide_animation.rb +20 -8
  125. data/lib/aspose_slides_cloud/models/slide_background.rb +20 -8
  126. data/lib/aspose_slides_cloud/models/slide_comment.rb +20 -8
  127. data/lib/aspose_slides_cloud/models/slide_comments.rb +20 -8
  128. data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
  129. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +20 -8
  130. data/lib/aspose_slides_cloud/models/slides.rb +20 -8
  131. data/lib/aspose_slides_cloud/models/smart_art.rb +20 -8
  132. data/lib/aspose_slides_cloud/models/smart_art_node.rb +20 -8
  133. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +20 -8
  134. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +20 -8
  135. data/lib/aspose_slides_cloud/models/solid_fill.rb +20 -8
  136. data/lib/aspose_slides_cloud/models/split_document_result.rb +20 -8
  137. data/lib/aspose_slides_cloud/models/storage_exist.rb +20 -8
  138. data/lib/aspose_slides_cloud/models/storage_file.rb +20 -8
  139. data/lib/aspose_slides_cloud/models/svg_export_options.rb +20 -8
  140. data/lib/aspose_slides_cloud/models/swf_export_options.rb +20 -8
  141. data/lib/aspose_slides_cloud/models/table.rb +20 -48
  142. data/lib/aspose_slides_cloud/models/table_cell.rb +20 -48
  143. data/lib/aspose_slides_cloud/models/table_column.rb +20 -8
  144. data/lib/aspose_slides_cloud/models/table_row.rb +20 -8
  145. data/lib/aspose_slides_cloud/models/task.rb +20 -8
  146. data/lib/aspose_slides_cloud/models/text_item.rb +20 -8
  147. data/lib/aspose_slides_cloud/models/text_items.rb +20 -8
  148. data/lib/aspose_slides_cloud/models/theme.rb +20 -8
  149. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +20 -8
  150. data/lib/aspose_slides_cloud/models/update_background.rb +20 -8
  151. data/lib/aspose_slides_cloud/models/update_shape.rb +20 -8
  152. data/lib/aspose_slides_cloud/models/video_frame.rb +20 -8
  153. data/lib/aspose_slides_cloud/models/view_properties.rb +379 -0
  154. data/lib/aspose_slides_cloud/models/waterfall_series.rb +452 -0
  155. data/lib/aspose_slides_cloud/models/xps_export_options.rb +20 -8
  156. data/lib/aspose_slides_cloud/version.rb +1 -1
  157. data/spec/api/slides_api_spec.rb +17214 -12046
  158. data/spec/extra/extra_spec.rb +111 -9
  159. data/spec/spec_utils.rb +8 -1
  160. data/testRules.json +80 -8
  161. metadata +9 -2
@@ -147,6 +147,7 @@ module AsposeSlidesCloud
147
147
  opts[:query_params][key] = opts[:query_params][key].join[","]
148
148
  end
149
149
  end
150
+ req.options.timeout = 200
150
151
  req.url path.sub(/^\/+/, '')
151
152
  req.headers = opts[:header_params]
152
153
  req.params = opts[:query_params]
@@ -162,7 +163,7 @@ module AsposeSlidesCloud
162
163
  headers['x-aspose-client'] = 'ruby sdk'
163
164
  headers['x-aspose-version'] = AsposeSlidesCloud::VERSION
164
165
  if @config.timeout > 0
165
- headers['x-aspose-timeout'] = @config.timeout
166
+ headers['x-aspose-timeout'] = @config.timeout.to_s
166
167
  end
167
168
  @config.custom_headers.each do |key, value|
168
169
  headers[key] = value
@@ -273,8 +274,11 @@ module AsposeSlidesCloud
273
274
  data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
274
275
  end
275
276
  else
276
- # models, e.g. Pet
277
- AsposeSlidesCloud.const_get(return_type).new.tap do |model|
277
+ type = AsposeSlidesCloud::TypeRegistry.get_type(return_type, data)
278
+ if !type
279
+ type = return_type
280
+ end
281
+ AsposeSlidesCloud.const_get(type).new.tap do |model|
278
282
  model.build_from_hash data
279
283
  end
280
284
  end
@@ -160,15 +160,27 @@ module AsposeSlidesCloud
160
160
  def build_from_hash(attributes)
161
161
  return nil unless attributes.is_a?(Hash)
162
162
  self.class.swagger_types.each_pair do |key, type|
163
- if type =~ /\AArray<(.*)>/i
164
- # check to ensure the input is an array given that the the attribute
165
- # is documented as an array but the input is not
166
- if attributes[self.class.attribute_map[key]].is_a?(Array)
167
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
163
+ mapKey = self.class.attribute_map[key]
164
+ if !mapKey.nil?
165
+ val = attributes[mapKey]
166
+ if val.nil?
167
+ mapKeyString = mapKey.to_s
168
+ mapKeyString[0] = mapKeyString[0].downcase
169
+ mapKey = mapKeyString.to_sym
170
+ val = attributes[mapKey]
168
171
  end
169
- elsif !attributes[self.class.attribute_map[key]].nil?
170
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
171
- end # or else data not found in attributes(hash), not an issue as the data can be optional
172
+ if !val.nil?
173
+ if type =~ /\AArray<(.*)>/i
174
+ # check to ensure the input is an array given that the the attribute
175
+ # is documented as an array but the input is not
176
+ if val.is_a?(Array)
177
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
178
+ end
179
+ else
180
+ self.send("#{key}=", _deserialize(type, val))
181
+ end
182
+ end
183
+ end
172
184
  end
173
185
 
174
186
  self
@@ -175,15 +175,27 @@ module AsposeSlidesCloud
175
175
  def build_from_hash(attributes)
176
176
  return nil unless attributes.is_a?(Hash)
177
177
  self.class.swagger_types.each_pair do |key, type|
178
- if type =~ /\AArray<(.*)>/i
179
- # check to ensure the input is an array given that the the attribute
180
- # is documented as an array but the input is not
181
- if attributes[self.class.attribute_map[key]].is_a?(Array)
182
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
178
+ mapKey = self.class.attribute_map[key]
179
+ if !mapKey.nil?
180
+ val = attributes[mapKey]
181
+ if val.nil?
182
+ mapKeyString = mapKey.to_s
183
+ mapKeyString[0] = mapKeyString[0].downcase
184
+ mapKey = mapKeyString.to_sym
185
+ val = attributes[mapKey]
183
186
  end
184
- elsif !attributes[self.class.attribute_map[key]].nil?
185
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
186
- end # or else data not found in attributes(hash), not an issue as the data can be optional
187
+ if !val.nil?
188
+ if type =~ /\AArray<(.*)>/i
189
+ # check to ensure the input is an array given that the the attribute
190
+ # is documented as an array but the input is not
191
+ if val.is_a?(Array)
192
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
193
+ end
194
+ else
195
+ self.send("#{key}=", _deserialize(type, val))
196
+ end
197
+ end
198
+ end
187
199
  end
188
200
 
189
201
  self
@@ -155,15 +155,27 @@ module AsposeSlidesCloud
155
155
  def build_from_hash(attributes)
156
156
  return nil unless attributes.is_a?(Hash)
157
157
  self.class.swagger_types.each_pair do |key, type|
158
- if type =~ /\AArray<(.*)>/i
159
- # check to ensure the input is an array given that the the attribute
160
- # is documented as an array but the input is not
161
- if attributes[self.class.attribute_map[key]].is_a?(Array)
162
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
158
+ mapKey = self.class.attribute_map[key]
159
+ if !mapKey.nil?
160
+ val = attributes[mapKey]
161
+ if val.nil?
162
+ mapKeyString = mapKey.to_s
163
+ mapKeyString[0] = mapKeyString[0].downcase
164
+ mapKey = mapKeyString.to_sym
165
+ val = attributes[mapKey]
163
166
  end
164
- elsif !attributes[self.class.attribute_map[key]].nil?
165
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
166
- end # or else data not found in attributes(hash), not an issue as the data can be optional
167
+ if !val.nil?
168
+ if type =~ /\AArray<(.*)>/i
169
+ # check to ensure the input is an array given that the the attribute
170
+ # is documented as an array but the input is not
171
+ if val.is_a?(Array)
172
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
173
+ end
174
+ else
175
+ self.send("#{key}=", _deserialize(type, val))
176
+ end
177
+ end
178
+ end
167
179
  end
168
180
 
169
181
  self
@@ -185,15 +185,27 @@ module AsposeSlidesCloud
185
185
  def build_from_hash(attributes)
186
186
  return nil unless attributes.is_a?(Hash)
187
187
  self.class.swagger_types.each_pair do |key, type|
188
- if type =~ /\AArray<(.*)>/i
189
- # check to ensure the input is an array given that the the attribute
190
- # is documented as an array but the input is not
191
- if attributes[self.class.attribute_map[key]].is_a?(Array)
192
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
188
+ mapKey = self.class.attribute_map[key]
189
+ if !mapKey.nil?
190
+ val = attributes[mapKey]
191
+ if val.nil?
192
+ mapKeyString = mapKey.to_s
193
+ mapKeyString[0] = mapKeyString[0].downcase
194
+ mapKey = mapKeyString.to_sym
195
+ val = attributes[mapKey]
193
196
  end
194
- elsif !attributes[self.class.attribute_map[key]].nil?
195
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
196
- end # or else data not found in attributes(hash), not an issue as the data can be optional
197
+ if !val.nil?
198
+ if type =~ /\AArray<(.*)>/i
199
+ # check to ensure the input is an array given that the the attribute
200
+ # is documented as an array but the input is not
201
+ if val.is_a?(Array)
202
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
203
+ end
204
+ else
205
+ self.send("#{key}=", _deserialize(type, val))
206
+ end
207
+ end
208
+ end
197
209
  end
198
210
 
199
211
  self
@@ -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
@@ -99,31 +99,16 @@ module AsposeSlidesCloud
99
99
  # @return Array for valid properties with the reasons
100
100
  def list_invalid_properties
101
101
  invalid_properties = Array.new
102
- if @length.nil?
103
- invalid_properties.push('invalid value for "length", length cannot be nil.')
104
- end
105
-
106
- if @style.nil?
107
- invalid_properties.push('invalid value for "style", style cannot be nil.')
108
- end
109
-
110
- if @width.nil?
111
- invalid_properties.push('invalid value for "width", width cannot be nil.')
112
- end
113
-
114
102
  invalid_properties
115
103
  end
116
104
 
117
105
  # Check to see if the all the properties in the model are valid
118
106
  # @return true if the model is valid
119
107
  def valid?
120
- return false if @length.nil?
121
108
  length_validator = EnumAttributeValidator.new('String', ['Short', 'Medium', 'Long', 'NotDefined'])
122
109
  return false unless length_validator.valid?(@length)
123
- return false if @style.nil?
124
110
  style_validator = EnumAttributeValidator.new('String', ['None', 'Triangle', 'Stealth', 'Diamond', 'Oval', 'Open', 'NotDefined'])
125
111
  return false unless style_validator.valid?(@style)
126
- return false if @width.nil?
127
112
  width_validator = EnumAttributeValidator.new('String', ['Narrow', 'Medium', 'Wide', 'NotDefined'])
128
113
  return false unless width_validator.valid?(@width)
129
114
  true
@@ -187,15 +172,27 @@ module AsposeSlidesCloud
187
172
  def build_from_hash(attributes)
188
173
  return nil unless attributes.is_a?(Hash)
189
174
  self.class.swagger_types.each_pair do |key, type|
190
- if type =~ /\AArray<(.*)>/i
191
- # check to ensure the input is an array given that the the attribute
192
- # is documented as an array but the input is not
193
- if attributes[self.class.attribute_map[key]].is_a?(Array)
194
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
175
+ mapKey = self.class.attribute_map[key]
176
+ if !mapKey.nil?
177
+ val = attributes[mapKey]
178
+ if val.nil?
179
+ mapKeyString = mapKey.to_s
180
+ mapKeyString[0] = mapKeyString[0].downcase
181
+ mapKey = mapKeyString.to_sym
182
+ val = attributes[mapKey]
195
183
  end
196
- elsif !attributes[self.class.attribute_map[key]].nil?
197
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
198
- end # or else data not found in attributes(hash), not an issue as the data can be optional
184
+ if !val.nil?
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 val.is_a?(Array)
189
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
190
+ end
191
+ else
192
+ self.send("#{key}=", _deserialize(type, val))
193
+ end
194
+ end
195
+ end
199
196
  end
200
197
 
201
198
  self
@@ -472,15 +472,27 @@ module AsposeSlidesCloud
472
472
  def build_from_hash(attributes)
473
473
  return nil unless attributes.is_a?(Hash)
474
474
  self.class.swagger_types.each_pair do |key, type|
475
- if type =~ /\AArray<(.*)>/i
476
- # check to ensure the input is an array given that the the attribute
477
- # is documented as an array but the input is not
478
- if attributes[self.class.attribute_map[key]].is_a?(Array)
479
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
475
+ mapKey = self.class.attribute_map[key]
476
+ if !mapKey.nil?
477
+ val = attributes[mapKey]
478
+ if val.nil?
479
+ mapKeyString = mapKey.to_s
480
+ mapKeyString[0] = mapKeyString[0].downcase
481
+ mapKey = mapKeyString.to_sym
482
+ val = attributes[mapKey]
480
483
  end
481
- elsif !attributes[self.class.attribute_map[key]].nil?
482
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
483
- end # or else data not found in attributes(hash), not an issue as the data can be optional
484
+ if !val.nil?
485
+ if type =~ /\AArray<(.*)>/i
486
+ # check to ensure the input is an array given that the the attribute
487
+ # is documented as an array but the input is not
488
+ if val.is_a?(Array)
489
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
490
+ end
491
+ else
492
+ self.send("#{key}=", _deserialize(type, val))
493
+ end
494
+ end
495
+ end
484
496
  end
485
497
 
486
498
  self
@@ -124,15 +124,27 @@ module AsposeSlidesCloud
124
124
  def build_from_hash(attributes)
125
125
  return nil unless attributes.is_a?(Hash)
126
126
  self.class.swagger_types.each_pair do |key, type|
127
- if type =~ /\AArray<(.*)>/i
128
- # check to ensure the input is an array given that the the attribute
129
- # is documented as an array but the input is not
130
- if attributes[self.class.attribute_map[key]].is_a?(Array)
131
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
127
+ mapKey = self.class.attribute_map[key]
128
+ if !mapKey.nil?
129
+ val = attributes[mapKey]
130
+ if val.nil?
131
+ mapKeyString = mapKey.to_s
132
+ mapKeyString[0] = mapKeyString[0].downcase
133
+ mapKey = mapKeyString.to_sym
134
+ val = attributes[mapKey]
132
135
  end
133
- elsif !attributes[self.class.attribute_map[key]].nil?
134
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
135
- end # or else data not found in attributes(hash), not an issue as the data can be optional
136
+ if !val.nil?
137
+ if type =~ /\AArray<(.*)>/i
138
+ # check to ensure the input is an array given that the the attribute
139
+ # is documented as an array but the input is not
140
+ if val.is_a?(Array)
141
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
142
+ end
143
+ else
144
+ self.send("#{key}=", _deserialize(type, val))
145
+ end
146
+ end
147
+ end
136
148
  end
137
149
 
138
150
  self
@@ -396,192 +396,32 @@ module AsposeSlidesCloud
396
396
  # @return Array for valid properties with the reasons
397
397
  def list_invalid_properties
398
398
  invalid_properties = Array.new
399
- if @is_visible.nil?
400
- invalid_properties.push('invalid value for "is_visible", is_visible cannot be nil.')
401
- end
402
-
403
- if @has_title.nil?
404
- invalid_properties.push('invalid value for "has_title", has_title cannot be nil.')
405
- end
406
-
407
- if @position.nil?
408
- invalid_properties.push('invalid value for "position", position cannot be nil.')
409
- end
410
-
411
- if @display_unit.nil?
412
- invalid_properties.push('invalid value for "display_unit", display_unit cannot be nil.')
413
- end
414
-
415
- if @base_unit_scale.nil?
416
- invalid_properties.push('invalid value for "base_unit_scale", base_unit_scale cannot be nil.')
417
- end
418
-
419
- if @is_automatic_major_unit.nil?
420
- invalid_properties.push('invalid value for "is_automatic_major_unit", is_automatic_major_unit cannot be nil.')
421
- end
422
-
423
- if @major_unit.nil?
424
- invalid_properties.push('invalid value for "major_unit", major_unit cannot be nil.')
425
- end
426
-
427
- if @major_unit_scale.nil?
428
- invalid_properties.push('invalid value for "major_unit_scale", major_unit_scale cannot be nil.')
429
- end
430
-
431
- if @major_tick_mark.nil?
432
- invalid_properties.push('invalid value for "major_tick_mark", major_tick_mark cannot be nil.')
433
- end
434
-
435
- if @is_automatic_minor_unit.nil?
436
- invalid_properties.push('invalid value for "is_automatic_minor_unit", is_automatic_minor_unit cannot be nil.')
437
- end
438
-
439
- if @minor_unit.nil?
440
- invalid_properties.push('invalid value for "minor_unit", minor_unit cannot be nil.')
441
- end
442
-
443
- if @minor_unit_scale.nil?
444
- invalid_properties.push('invalid value for "minor_unit_scale", minor_unit_scale cannot be nil.')
445
- end
446
-
447
- if @minor_tick_mark.nil?
448
- invalid_properties.push('invalid value for "minor_tick_mark", minor_tick_mark cannot be nil.')
449
- end
450
-
451
- if @is_automatic_max_value.nil?
452
- invalid_properties.push('invalid value for "is_automatic_max_value", is_automatic_max_value cannot be nil.')
453
- end
454
-
455
- if @max_value.nil?
456
- invalid_properties.push('invalid value for "max_value", max_value cannot be nil.')
457
- end
458
-
459
- if @is_automatic_min_value.nil?
460
- invalid_properties.push('invalid value for "is_automatic_min_value", is_automatic_min_value cannot be nil.')
461
- end
462
-
463
- if @min_value.nil?
464
- invalid_properties.push('invalid value for "min_value", min_value cannot be nil.')
465
- end
466
-
467
- if @is_logarithmic.nil?
468
- invalid_properties.push('invalid value for "is_logarithmic", is_logarithmic cannot be nil.')
469
- end
470
-
471
- if @log_base.nil?
472
- invalid_properties.push('invalid value for "log_base", log_base cannot be nil.')
473
- end
474
-
475
- if @category_axis_type.nil?
476
- invalid_properties.push('invalid value for "category_axis_type", category_axis_type cannot be nil.')
477
- end
478
-
479
- if @axis_between_categories.nil?
480
- invalid_properties.push('invalid value for "axis_between_categories", axis_between_categories cannot be nil.')
481
- end
482
-
483
- if @label_offset.nil?
484
- invalid_properties.push('invalid value for "label_offset", label_offset cannot be nil.')
485
- end
486
-
487
- if @is_plot_order_reversed.nil?
488
- invalid_properties.push('invalid value for "is_plot_order_reversed", is_plot_order_reversed cannot be nil.')
489
- end
490
-
491
- if @is_number_format_linked_to_source.nil?
492
- invalid_properties.push('invalid value for "is_number_format_linked_to_source", is_number_format_linked_to_source cannot be nil.')
493
- end
494
-
495
- if @cross_type.nil?
496
- invalid_properties.push('invalid value for "cross_type", cross_type cannot be nil.')
497
- end
498
-
499
- if @cross_at.nil?
500
- invalid_properties.push('invalid value for "cross_at", cross_at cannot be nil.')
501
- end
502
-
503
- if @is_automatic_tick_marks_spacing.nil?
504
- invalid_properties.push('invalid value for "is_automatic_tick_marks_spacing", is_automatic_tick_marks_spacing cannot be nil.')
505
- end
506
-
507
- if @tick_marks_spacing.nil?
508
- invalid_properties.push('invalid value for "tick_marks_spacing", tick_marks_spacing cannot be nil.')
509
- end
510
-
511
- if @is_automatic_tick_label_spacing.nil?
512
- invalid_properties.push('invalid value for "is_automatic_tick_label_spacing", is_automatic_tick_label_spacing cannot be nil.')
513
- end
514
-
515
- if @tick_label_spacing.nil?
516
- invalid_properties.push('invalid value for "tick_label_spacing", tick_label_spacing cannot be nil.')
517
- end
518
-
519
- if @tick_label_position.nil?
520
- invalid_properties.push('invalid value for "tick_label_position", tick_label_position cannot be nil.')
521
- end
522
-
523
- if @tick_label_rotation_angle.nil?
524
- invalid_properties.push('invalid value for "tick_label_rotation_angle", tick_label_rotation_angle cannot be nil.')
525
- end
526
-
527
399
  invalid_properties
528
400
  end
529
401
 
530
402
  # Check to see if the all the properties in the model are valid
531
403
  # @return true if the model is valid
532
404
  def valid?
533
- return false if @is_visible.nil?
534
- return false if @has_title.nil?
535
- return false if @position.nil?
536
405
  position_validator = EnumAttributeValidator.new('String', ['Bottom', 'Left', 'Right', 'Top'])
537
406
  return false unless position_validator.valid?(@position)
538
- return false if @display_unit.nil?
539
407
  display_unit_validator = EnumAttributeValidator.new('String', ['None', 'Hundreds', 'Thousands', 'TenThousands', 'HundredThousands', 'Millions', 'TenMillions', 'HundredMillions', 'Billions', 'Trillions', 'CustomValue'])
540
408
  return false unless display_unit_validator.valid?(@display_unit)
541
- return false if @base_unit_scale.nil?
542
409
  base_unit_scale_validator = EnumAttributeValidator.new('String', ['Days', 'Months', 'Years'])
543
410
  return false unless base_unit_scale_validator.valid?(@base_unit_scale)
544
- return false if @is_automatic_major_unit.nil?
545
- return false if @major_unit.nil?
546
- return false if @major_unit_scale.nil?
547
411
  major_unit_scale_validator = EnumAttributeValidator.new('String', ['Days', 'Months', 'Years'])
548
412
  return false unless major_unit_scale_validator.valid?(@major_unit_scale)
549
- return false if @major_tick_mark.nil?
550
413
  major_tick_mark_validator = EnumAttributeValidator.new('String', ['Cross', 'Inside', 'None', 'Outside'])
551
414
  return false unless major_tick_mark_validator.valid?(@major_tick_mark)
552
- return false if @is_automatic_minor_unit.nil?
553
- return false if @minor_unit.nil?
554
- return false if @minor_unit_scale.nil?
555
415
  minor_unit_scale_validator = EnumAttributeValidator.new('String', ['Days', 'Months', 'Years'])
556
416
  return false unless minor_unit_scale_validator.valid?(@minor_unit_scale)
557
- return false if @minor_tick_mark.nil?
558
417
  minor_tick_mark_validator = EnumAttributeValidator.new('String', ['Cross', 'Inside', 'None', 'Outside'])
559
418
  return false unless minor_tick_mark_validator.valid?(@minor_tick_mark)
560
- return false if @is_automatic_max_value.nil?
561
- return false if @max_value.nil?
562
- return false if @is_automatic_min_value.nil?
563
- return false if @min_value.nil?
564
- return false if @is_logarithmic.nil?
565
- return false if @log_base.nil?
566
- return false if @category_axis_type.nil?
567
419
  category_axis_type_validator = EnumAttributeValidator.new('String', ['Text', 'Date'])
568
420
  return false unless category_axis_type_validator.valid?(@category_axis_type)
569
- return false if @axis_between_categories.nil?
570
- return false if @label_offset.nil?
571
- return false if @is_plot_order_reversed.nil?
572
- return false if @is_number_format_linked_to_source.nil?
573
- return false if @cross_type.nil?
574
421
  cross_type_validator = EnumAttributeValidator.new('String', ['AxisCrossesAtZero', 'Maximum', 'Custom'])
575
422
  return false unless cross_type_validator.valid?(@cross_type)
576
- return false if @cross_at.nil?
577
- return false if @is_automatic_tick_marks_spacing.nil?
578
- return false if @tick_marks_spacing.nil?
579
- return false if @is_automatic_tick_label_spacing.nil?
580
- return false if @tick_label_spacing.nil?
581
- return false if @tick_label_position.nil?
582
423
  tick_label_position_validator = EnumAttributeValidator.new('String', ['High', 'Low', 'NextTo', 'None'])
583
424
  return false unless tick_label_position_validator.valid?(@tick_label_position)
584
- return false if @tick_label_rotation_angle.nil?
585
425
  true
586
426
  end
587
427
 
@@ -746,15 +586,27 @@ module AsposeSlidesCloud
746
586
  def build_from_hash(attributes)
747
587
  return nil unless attributes.is_a?(Hash)
748
588
  self.class.swagger_types.each_pair do |key, type|
749
- if type =~ /\AArray<(.*)>/i
750
- # check to ensure the input is an array given that the the attribute
751
- # is documented as an array but the input is not
752
- if attributes[self.class.attribute_map[key]].is_a?(Array)
753
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
589
+ mapKey = self.class.attribute_map[key]
590
+ if !mapKey.nil?
591
+ val = attributes[mapKey]
592
+ if val.nil?
593
+ mapKeyString = mapKey.to_s
594
+ mapKeyString[0] = mapKeyString[0].downcase
595
+ mapKey = mapKeyString.to_sym
596
+ val = attributes[mapKey]
754
597
  end
755
- elsif !attributes[self.class.attribute_map[key]].nil?
756
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
757
- end # or else data not found in attributes(hash), not an issue as the data can be optional
598
+ if !val.nil?
599
+ if type =~ /\AArray<(.*)>/i
600
+ # check to ensure the input is an array given that the the attribute
601
+ # is documented as an array but the input is not
602
+ if val.is_a?(Array)
603
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
604
+ end
605
+ else
606
+ self.send("#{key}=", _deserialize(type, val))
607
+ end
608
+ end
609
+ end
758
610
  end
759
611
 
760
612
  self