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
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
43
43
  :'code' => :'Code',
44
44
  :'message' => :'Message',
45
45
  :'description' => :'Description',
46
- :'inner_error' => :'InnerError'
46
+ :'inner_error' => :'InnerError',
47
47
  }
48
48
  end
49
49
 
@@ -53,7 +53,7 @@ module AsposeSlidesCloud
53
53
  :'code' => :'String',
54
54
  :'message' => :'String',
55
55
  :'description' => :'String',
56
- :'inner_error' => :'ErrorDetails'
56
+ :'inner_error' => :'ErrorDetails',
57
57
  }
58
58
  end
59
59
 
@@ -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
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
35
35
  def self.attribute_map
36
36
  {
37
37
  :'request_id' => :'RequestId',
38
- :'date' => :'Date'
38
+ :'date' => :'Date',
39
39
  }
40
40
  end
41
41
 
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
43
43
  def self.swagger_types
44
44
  {
45
45
  :'request_id' => :'String',
46
- :'date' => :'DateTime'
46
+ :'date' => :'DateTime',
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
@@ -25,19 +25,24 @@ require 'date'
25
25
  module AsposeSlidesCloud
26
26
  # Represents export options for whole presentation.
27
27
  class ExportOptions
28
+ # Setting user password to protect the PDF document.
29
+ attr_accessor :default_regular_font
30
+
28
31
  attr_accessor :format
29
32
 
30
33
  # Attribute mapping from ruby-style variable name to JSON key.
31
34
  def self.attribute_map
32
35
  {
33
- :'format' => :'Format'
36
+ :'default_regular_font' => :'DefaultRegularFont',
37
+ :'format' => :'Format',
34
38
  }
35
39
  end
36
40
 
37
41
  # Attribute type mapping.
38
42
  def self.swagger_types
39
43
  {
40
- :'format' => :'String'
44
+ :'default_regular_font' => :'String',
45
+ :'format' => :'String',
41
46
  }
42
47
  end
43
48
 
@@ -49,6 +54,10 @@ module AsposeSlidesCloud
49
54
  # convert string to symbol for hash key
50
55
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
51
56
 
57
+ if attributes.has_key?(:'DefaultRegularFont')
58
+ self.default_regular_font = attributes[:'DefaultRegularFont']
59
+ end
60
+
52
61
  if attributes.has_key?(:'Format')
53
62
  self.format = attributes[:'Format']
54
63
  end
@@ -72,6 +81,7 @@ module AsposeSlidesCloud
72
81
  def ==(o)
73
82
  return true if self.equal?(o)
74
83
  self.class == o.class &&
84
+ default_regular_font == o.default_regular_font &&
75
85
  format == o.format
76
86
  end
77
87
 
@@ -84,7 +94,7 @@ module AsposeSlidesCloud
84
94
  # Calculates hash code according to all attributes.
85
95
  # @return [Fixnum] Hash code
86
96
  def hash
87
- [format].hash
97
+ [default_regular_font, format].hash
88
98
  end
89
99
 
90
100
  # Builds the object from hash
@@ -93,15 +103,27 @@ module AsposeSlidesCloud
93
103
  def build_from_hash(attributes)
94
104
  return nil unless attributes.is_a?(Hash)
95
105
  self.class.swagger_types.each_pair do |key, type|
96
- if type =~ /\AArray<(.*)>/i
97
- # check to ensure the input is an array given that the the attribute
98
- # is documented as an array but the input is not
99
- if attributes[self.class.attribute_map[key]].is_a?(Array)
100
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
106
+ mapKey = self.class.attribute_map[key]
107
+ if !mapKey.nil?
108
+ val = attributes[mapKey]
109
+ if val.nil?
110
+ mapKeyString = mapKey.to_s
111
+ mapKeyString[0] = mapKeyString[0].downcase
112
+ mapKey = mapKeyString.to_sym
113
+ val = attributes[mapKey]
101
114
  end
102
- elsif !attributes[self.class.attribute_map[key]].nil?
103
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
104
- end # or else data not found in attributes(hash), not an issue as the data can be optional
115
+ if !val.nil?
116
+ if type =~ /\AArray<(.*)>/i
117
+ # check to ensure the input is an array given that the the attribute
118
+ # is documented as an array but the input is not
119
+ if val.is_a?(Array)
120
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
121
+ end
122
+ else
123
+ self.send("#{key}=", _deserialize(type, val))
124
+ end
125
+ end
126
+ end
105
127
  end
106
128
 
107
129
  self
@@ -24,22 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # File Version
27
- class FileVersion
28
- # File or folder name.
29
- attr_accessor :name
30
-
31
- # True if it is a folder.
32
- attr_accessor :is_folder
33
-
34
- # File or folder last modified DateTime.
35
- attr_accessor :modified_date
36
-
37
- # File or folder size.
38
- attr_accessor :size
39
-
40
- # File or folder path.
41
- attr_accessor :path
42
-
27
+ class FileVersion < StorageFile
43
28
  # File Version ID.
44
29
  attr_accessor :version_id
45
30
 
@@ -48,57 +33,24 @@ module AsposeSlidesCloud
48
33
 
49
34
  # Attribute mapping from ruby-style variable name to JSON key.
50
35
  def self.attribute_map
51
- {
52
- :'name' => :'Name',
53
- :'is_folder' => :'IsFolder',
54
- :'modified_date' => :'ModifiedDate',
55
- :'size' => :'Size',
56
- :'path' => :'Path',
36
+ super.merge({
57
37
  :'version_id' => :'VersionId',
58
- :'is_latest' => :'IsLatest'
59
- }
38
+ :'is_latest' => :'IsLatest',
39
+ })
60
40
  end
61
41
 
62
42
  # Attribute type mapping.
63
43
  def self.swagger_types
64
- {
65
- :'name' => :'String',
66
- :'is_folder' => :'BOOLEAN',
67
- :'modified_date' => :'DateTime',
68
- :'size' => :'Integer',
69
- :'path' => :'String',
44
+ super.merge({
70
45
  :'version_id' => :'String',
71
- :'is_latest' => :'BOOLEAN'
72
- }
46
+ :'is_latest' => :'BOOLEAN',
47
+ })
73
48
  end
74
49
 
75
50
  # Initializes the object
76
51
  # @param [Hash] attributes Model attributes in the form of hash
77
52
  def initialize(attributes = {})
78
- return unless attributes.is_a?(Hash)
79
-
80
- # convert string to symbol for hash key
81
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
82
-
83
- if attributes.has_key?(:'Name')
84
- self.name = attributes[:'Name']
85
- end
86
-
87
- if attributes.has_key?(:'IsFolder')
88
- self.is_folder = attributes[:'IsFolder']
89
- end
90
-
91
- if attributes.has_key?(:'ModifiedDate')
92
- self.modified_date = attributes[:'ModifiedDate']
93
- end
94
-
95
- if attributes.has_key?(:'Size')
96
- self.size = attributes[:'Size']
97
- end
98
-
99
- if attributes.has_key?(:'Path')
100
- self.path = attributes[:'Path']
101
- end
53
+ super
102
54
 
103
55
  if attributes.has_key?(:'VersionId')
104
56
  self.version_id = attributes[:'VersionId']
@@ -112,15 +64,7 @@ module AsposeSlidesCloud
112
64
  # Show invalid properties with the reasons. Usually used together with valid?
113
65
  # @return Array for valid properties with the reasons
114
66
  def list_invalid_properties
115
- invalid_properties = Array.new
116
- if @is_folder.nil?
117
- invalid_properties.push('invalid value for "is_folder", is_folder cannot be nil.')
118
- end
119
-
120
- if @size.nil?
121
- invalid_properties.push('invalid value for "size", size cannot be nil.')
122
- end
123
-
67
+ invalid_properties = super
124
68
  if @is_latest.nil?
125
69
  invalid_properties.push('invalid value for "is_latest", is_latest cannot be nil.')
126
70
  end
@@ -131,8 +75,7 @@ module AsposeSlidesCloud
131
75
  # Check to see if the all the properties in the model are valid
132
76
  # @return true if the model is valid
133
77
  def valid?
134
- return false if @is_folder.nil?
135
- return false if @size.nil?
78
+ return false if !super
136
79
  return false if @is_latest.nil?
137
80
  true
138
81
  end
@@ -169,15 +112,27 @@ module AsposeSlidesCloud
169
112
  def build_from_hash(attributes)
170
113
  return nil unless attributes.is_a?(Hash)
171
114
  self.class.swagger_types.each_pair do |key, type|
172
- if type =~ /\AArray<(.*)>/i
173
- # check to ensure the input is an array given that the the attribute
174
- # is documented as an array but the input is not
175
- if attributes[self.class.attribute_map[key]].is_a?(Array)
176
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
115
+ mapKey = self.class.attribute_map[key]
116
+ if !mapKey.nil?
117
+ val = attributes[mapKey]
118
+ if val.nil?
119
+ mapKeyString = mapKey.to_s
120
+ mapKeyString[0] = mapKeyString[0].downcase
121
+ mapKey = mapKeyString.to_sym
122
+ val = attributes[mapKey]
177
123
  end
178
- elsif !attributes[self.class.attribute_map[key]].nil?
179
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
180
- end # or else data not found in attributes(hash), not an issue as the data can be optional
124
+ if !val.nil?
125
+ if type =~ /\AArray<(.*)>/i
126
+ # check to ensure the input is an array given that the the attribute
127
+ # is documented as an array but the input is not
128
+ if val.is_a?(Array)
129
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
130
+ end
131
+ else
132
+ self.send("#{key}=", _deserialize(type, val))
133
+ end
134
+ end
135
+ end
181
136
  end
182
137
 
183
138
  self
@@ -31,14 +31,14 @@ module AsposeSlidesCloud
31
31
  # Attribute mapping from ruby-style variable name to JSON key.
32
32
  def self.attribute_map
33
33
  {
34
- :'value' => :'Value'
34
+ :'value' => :'Value',
35
35
  }
36
36
  end
37
37
 
38
38
  # Attribute type mapping.
39
39
  def self.swagger_types
40
40
  {
41
- :'value' => :'Array<FileVersion>'
41
+ :'value' => :'Array<FileVersion>',
42
42
  }
43
43
  end
44
44
 
@@ -96,15 +96,27 @@ module AsposeSlidesCloud
96
96
  def build_from_hash(attributes)
97
97
  return nil unless attributes.is_a?(Hash)
98
98
  self.class.swagger_types.each_pair do |key, type|
99
- if type =~ /\AArray<(.*)>/i
100
- # check to ensure the input is an array given that the the attribute
101
- # is documented as an array but the input is not
102
- if attributes[self.class.attribute_map[key]].is_a?(Array)
103
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
99
+ mapKey = self.class.attribute_map[key]
100
+ if !mapKey.nil?
101
+ val = attributes[mapKey]
102
+ if val.nil?
103
+ mapKeyString = mapKey.to_s
104
+ mapKeyString[0] = mapKeyString[0].downcase
105
+ mapKey = mapKeyString.to_sym
106
+ val = attributes[mapKey]
104
107
  end
105
- elsif !attributes[self.class.attribute_map[key]].nil?
106
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
107
- end # or else data not found in attributes(hash), not an issue as the data can be optional
108
+ if !val.nil?
109
+ if type =~ /\AArray<(.*)>/i
110
+ # check to ensure the input is an array given that the the attribute
111
+ # is documented as an array but the input is not
112
+ if val.is_a?(Array)
113
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
114
+ end
115
+ else
116
+ self.send("#{key}=", _deserialize(type, val))
117
+ end
118
+ end
119
+ end
108
120
  end
109
121
 
110
122
  self
@@ -31,14 +31,14 @@ module AsposeSlidesCloud
31
31
  # Attribute mapping from ruby-style variable name to JSON key.
32
32
  def self.attribute_map
33
33
  {
34
- :'value' => :'Value'
34
+ :'value' => :'Value',
35
35
  }
36
36
  end
37
37
 
38
38
  # Attribute type mapping.
39
39
  def self.swagger_types
40
40
  {
41
- :'value' => :'Array<StorageFile>'
41
+ :'value' => :'Array<StorageFile>',
42
42
  }
43
43
  end
44
44
 
@@ -96,15 +96,27 @@ module AsposeSlidesCloud
96
96
  def build_from_hash(attributes)
97
97
  return nil unless attributes.is_a?(Hash)
98
98
  self.class.swagger_types.each_pair do |key, type|
99
- if type =~ /\AArray<(.*)>/i
100
- # check to ensure the input is an array given that the the attribute
101
- # is documented as an array but the input is not
102
- if attributes[self.class.attribute_map[key]].is_a?(Array)
103
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
99
+ mapKey = self.class.attribute_map[key]
100
+ if !mapKey.nil?
101
+ val = attributes[mapKey]
102
+ if val.nil?
103
+ mapKeyString = mapKey.to_s
104
+ mapKeyString[0] = mapKeyString[0].downcase
105
+ mapKey = mapKeyString.to_sym
106
+ val = attributes[mapKey]
104
107
  end
105
- elsif !attributes[self.class.attribute_map[key]].nil?
106
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
107
- end # or else data not found in attributes(hash), not an issue as the data can be optional
108
+ if !val.nil?
109
+ if type =~ /\AArray<(.*)>/i
110
+ # check to ensure the input is an array given that the the attribute
111
+ # is documented as an array but the input is not
112
+ if val.is_a?(Array)
113
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
114
+ end
115
+ else
116
+ self.send("#{key}=", _deserialize(type, val))
117
+ end
118
+ end
119
+ end
108
120
  end
109
121
 
110
122
  self