aspose_slides_cloud 20.2.0 → 20.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/TestData/ChartTest.pptx +0 -0
  4. data/lib/aspose_slides_cloud.rb +13 -3
  5. data/lib/aspose_slides_cloud/api/slides_api.rb +3254 -1024
  6. data/lib/aspose_slides_cloud/api/slides_api_requests.rb +970 -137
  7. data/lib/aspose_slides_cloud/api_client.rb +8 -5
  8. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +31 -48
  9. data/lib/aspose_slides_cloud/models/add_master_slide.rb +31 -48
  10. data/lib/aspose_slides_cloud/models/add_shape.rb +31 -48
  11. data/lib/aspose_slides_cloud/models/add_slide.rb +31 -48
  12. data/lib/aspose_slides_cloud/models/api_info.rb +22 -10
  13. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +22 -10
  14. data/lib/aspose_slides_cloud/models/audio_frame.rb +32 -244
  15. data/lib/aspose_slides_cloud/models/axes.rb +22 -10
  16. data/lib/aspose_slides_cloud/models/axis.rb +22 -10
  17. data/lib/aspose_slides_cloud/models/base64_input_file.rb +31 -57
  18. data/lib/aspose_slides_cloud/models/blur_effect.rb +22 -10
  19. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +299 -0
  20. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +30 -48
  21. data/lib/aspose_slides_cloud/models/bubble_series.rb +31 -211
  22. data/lib/aspose_slides_cloud/models/chart.rb +35 -221
  23. data/lib/aspose_slides_cloud/models/chart_category.rb +261 -0
  24. data/lib/aspose_slides_cloud/models/chart_title.rb +22 -10
  25. data/lib/aspose_slides_cloud/models/chart_wall.rb +22 -10
  26. data/lib/aspose_slides_cloud/models/color_scheme.rb +30 -40
  27. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +217 -0
  28. data/lib/aspose_slides_cloud/models/connector.rb +31 -242
  29. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +22 -10
  30. data/lib/aspose_slides_cloud/models/disc_usage.rb +22 -10
  31. data/lib/aspose_slides_cloud/models/document.rb +41 -41
  32. data/lib/aspose_slides_cloud/models/document_properties.rb +30 -40
  33. data/lib/aspose_slides_cloud/models/document_property.rb +30 -40
  34. data/lib/aspose_slides_cloud/models/document_replace_result.rb +32 -86
  35. data/lib/aspose_slides_cloud/models/effect.rb +22 -10
  36. data/lib/aspose_slides_cloud/models/effect_format.rb +22 -10
  37. data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
  38. data/lib/aspose_slides_cloud/models/error.rb +22 -10
  39. data/lib/aspose_slides_cloud/models/error_details.rb +22 -10
  40. data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
  41. data/lib/aspose_slides_cloud/models/export_options.rb +33 -11
  42. data/lib/aspose_slides_cloud/models/file_version.rb +30 -75
  43. data/lib/aspose_slides_cloud/models/file_versions.rb +22 -10
  44. data/lib/aspose_slides_cloud/models/files_list.rb +22 -10
  45. data/lib/aspose_slides_cloud/models/files_upload_result.rb +22 -10
  46. data/lib/aspose_slides_cloud/models/fill_format.rb +22 -10
  47. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +22 -10
  48. data/lib/aspose_slides_cloud/models/font_scheme.rb +30 -40
  49. data/lib/aspose_slides_cloud/models/font_set.rb +22 -10
  50. data/lib/aspose_slides_cloud/models/format_scheme.rb +30 -40
  51. data/lib/aspose_slides_cloud/models/geometry_shape.rb +30 -208
  52. data/lib/aspose_slides_cloud/models/glow_effect.rb +22 -10
  53. data/lib/aspose_slides_cloud/models/gradient_fill.rb +31 -48
  54. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +22 -10
  55. data/lib/aspose_slides_cloud/models/graphical_object.rb +31 -217
  56. data/lib/aspose_slides_cloud/models/group_shape.rb +31 -217
  57. data/lib/aspose_slides_cloud/models/html_export_options.rb +33 -32
  58. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +22 -10
  59. data/lib/aspose_slides_cloud/models/image.rb +30 -40
  60. data/lib/aspose_slides_cloud/models/image_export_options.rb +33 -32
  61. data/lib/aspose_slides_cloud/models/images.rb +30 -40
  62. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +22 -10
  63. data/lib/aspose_slides_cloud/models/input.rb +22 -10
  64. data/lib/aspose_slides_cloud/models/input_file.rb +22 -10
  65. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +22 -10
  66. data/lib/aspose_slides_cloud/models/layout_slide.rb +30 -40
  67. data/lib/aspose_slides_cloud/models/layout_slides.rb +30 -40
  68. data/lib/aspose_slides_cloud/models/legend.rb +22 -10
  69. data/lib/aspose_slides_cloud/models/line_format.rb +22 -10
  70. data/lib/aspose_slides_cloud/models/master_slide.rb +30 -40
  71. data/lib/aspose_slides_cloud/models/master_slides.rb +30 -40
  72. data/lib/aspose_slides_cloud/models/merge.rb +31 -48
  73. data/lib/aspose_slides_cloud/models/merging_source.rb +22 -10
  74. data/lib/aspose_slides_cloud/models/no_fill.rb +29 -46
  75. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +217 -0
  76. data/lib/aspose_slides_cloud/models/notes_slide.rb +30 -40
  77. data/lib/aspose_slides_cloud/models/object_exist.rb +22 -10
  78. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +32 -218
  79. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +30 -20
  80. data/lib/aspose_slides_cloud/models/one_value_series.rb +31 -211
  81. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +22 -10
  82. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +22 -10
  83. data/lib/aspose_slides_cloud/models/output_file.rb +22 -10
  84. data/lib/aspose_slides_cloud/models/paragraph.rb +30 -40
  85. data/lib/aspose_slides_cloud/models/paragraphs.rb +30 -40
  86. data/lib/aspose_slides_cloud/models/path_input_file.rb +31 -57
  87. data/lib/aspose_slides_cloud/models/path_output_file.rb +31 -48
  88. data/lib/aspose_slides_cloud/models/pattern_fill.rb +31 -48
  89. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +63 -35
  90. data/lib/aspose_slides_cloud/models/picture_fill.rb +31 -48
  91. data/lib/aspose_slides_cloud/models/picture_frame.rb +32 -244
  92. data/lib/aspose_slides_cloud/models/pipeline.rb +22 -10
  93. data/lib/aspose_slides_cloud/models/placeholder.rb +30 -40
  94. data/lib/aspose_slides_cloud/models/placeholders.rb +30 -40
  95. data/lib/aspose_slides_cloud/models/plot_area.rb +22 -10
  96. data/lib/aspose_slides_cloud/models/portion.rb +30 -40
  97. data/lib/aspose_slides_cloud/models/portions.rb +36 -46
  98. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +33 -32
  99. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +22 -10
  100. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +22 -10
  101. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +22 -10
  102. data/lib/aspose_slides_cloud/models/reflection_effect.rb +22 -10
  103. data/lib/aspose_slides_cloud/models/remove_shape.rb +31 -48
  104. data/lib/aspose_slides_cloud/models/remove_slide.rb +31 -48
  105. data/lib/aspose_slides_cloud/models/reorder_slide.rb +31 -48
  106. data/lib/aspose_slides_cloud/models/replace_text.rb +31 -48
  107. data/lib/aspose_slides_cloud/models/request_input_file.rb +31 -57
  108. data/lib/aspose_slides_cloud/models/reset_slide.rb +31 -48
  109. data/lib/aspose_slides_cloud/models/resource_base.rb +22 -10
  110. data/lib/aspose_slides_cloud/models/resource_uri.rb +22 -10
  111. data/lib/aspose_slides_cloud/models/resource_uri_element.rb +22 -10
  112. data/lib/aspose_slides_cloud/models/response_output_file.rb +29 -46
  113. data/lib/aspose_slides_cloud/models/save.rb +33 -50
  114. data/lib/aspose_slides_cloud/models/save_shape.rb +31 -48
  115. data/lib/aspose_slides_cloud/models/save_slide.rb +33 -50
  116. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +30 -20
  117. data/lib/aspose_slides_cloud/models/scatter_series.rb +31 -211
  118. data/lib/aspose_slides_cloud/models/series.rb +47 -14
  119. data/lib/aspose_slides_cloud/models/series_marker.rb +22 -10
  120. data/lib/aspose_slides_cloud/models/shape.rb +31 -242
  121. data/lib/aspose_slides_cloud/models/shape_base.rb +30 -40
  122. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +22 -10
  123. data/lib/aspose_slides_cloud/models/shapes.rb +30 -40
  124. data/lib/aspose_slides_cloud/models/slide.rb +30 -40
  125. data/lib/aspose_slides_cloud/models/slide_animation.rb +30 -40
  126. data/lib/aspose_slides_cloud/models/slide_background.rb +30 -40
  127. data/lib/aspose_slides_cloud/models/slide_comment.rb +22 -10
  128. data/lib/aspose_slides_cloud/models/slide_comments.rb +30 -40
  129. data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
  130. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +30 -154
  131. data/lib/aspose_slides_cloud/models/slides.rb +30 -40
  132. data/lib/aspose_slides_cloud/models/smart_art.rb +32 -218
  133. data/lib/aspose_slides_cloud/models/smart_art_node.rb +22 -10
  134. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +31 -217
  135. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +22 -10
  136. data/lib/aspose_slides_cloud/models/solid_fill.rb +31 -48
  137. data/lib/aspose_slides_cloud/models/split_document_result.rb +30 -40
  138. data/lib/aspose_slides_cloud/models/storage_exist.rb +22 -10
  139. data/lib/aspose_slides_cloud/models/storage_file.rb +22 -10
  140. data/lib/aspose_slides_cloud/models/svg_export_options.rb +33 -32
  141. data/lib/aspose_slides_cloud/models/swf_export_options.rb +33 -32
  142. data/lib/aspose_slides_cloud/models/table.rb +32 -218
  143. data/lib/aspose_slides_cloud/models/table_cell.rb +22 -10
  144. data/lib/aspose_slides_cloud/models/table_column.rb +22 -10
  145. data/lib/aspose_slides_cloud/models/table_row.rb +22 -10
  146. data/lib/aspose_slides_cloud/models/task.rb +22 -10
  147. data/lib/aspose_slides_cloud/models/text_item.rb +22 -10
  148. data/lib/aspose_slides_cloud/models/text_items.rb +30 -40
  149. data/lib/aspose_slides_cloud/models/theme.rb +30 -40
  150. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +33 -32
  151. data/lib/aspose_slides_cloud/models/update_background.rb +31 -48
  152. data/lib/aspose_slides_cloud/models/update_shape.rb +31 -48
  153. data/lib/aspose_slides_cloud/models/video_frame.rb +32 -244
  154. data/lib/aspose_slides_cloud/models/view_properties.rb +357 -0
  155. data/lib/aspose_slides_cloud/models/waterfall_series.rb +247 -0
  156. data/lib/aspose_slides_cloud/models/xps_export_options.rb +33 -32
  157. data/lib/aspose_slides_cloud/type_registry.rb +313 -0
  158. data/lib/aspose_slides_cloud/version.rb +1 -1
  159. data/spec/api/slides_api_spec.rb +20595 -14073
  160. data/spec/extra/extra_spec.rb +155 -20
  161. data/spec/spec_utils.rb +8 -1
  162. data/testRules.json +111 -8
  163. metadata +11 -2
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
35
35
  def self.attribute_map
36
36
  {
37
37
  :'uploaded' => :'Uploaded',
38
- :'errors' => :'Errors'
38
+ :'errors' => :'Errors',
39
39
  }
40
40
  end
41
41
 
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
43
43
  def self.swagger_types
44
44
  {
45
45
  :'uploaded' => :'Array<String>',
46
- :'errors' => :'Array<Error>'
46
+ :'errors' => :'Array<Error>',
47
47
  }
48
48
  end
49
49
 
@@ -108,15 +108,27 @@ module AsposeSlidesCloud
108
108
  def build_from_hash(attributes)
109
109
  return nil unless attributes.is_a?(Hash)
110
110
  self.class.swagger_types.each_pair do |key, type|
111
- if type =~ /\AArray<(.*)>/i
112
- # check to ensure the input is an array given that the the attribute
113
- # is documented as an array but the input is not
114
- if attributes[self.class.attribute_map[key]].is_a?(Array)
115
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
111
+ mapKey = self.class.attribute_map[key]
112
+ if !mapKey.nil?
113
+ val = attributes[mapKey]
114
+ if val.nil?
115
+ mapKeyString = mapKey.to_s
116
+ mapKeyString[0] = mapKeyString[0].downcase
117
+ mapKey = mapKeyString.to_sym
118
+ val = attributes[mapKey]
116
119
  end
117
- elsif !attributes[self.class.attribute_map[key]].nil?
118
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
119
- end # or else data not found in attributes(hash), not an issue as the data can be optional
120
+ if !val.nil?
121
+ if type =~ /\AArray<(.*)>/i
122
+ # check to ensure the input is an array given that the the attribute
123
+ # is documented as an array but the input is not
124
+ if val.is_a?(Array)
125
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
126
+ end
127
+ else
128
+ self.send("#{key}=", _deserialize(type, val))
129
+ end
130
+ end
131
+ end
120
132
  end
121
133
 
122
134
  self
@@ -52,14 +52,14 @@ module AsposeSlidesCloud
52
52
  # Attribute mapping from ruby-style variable name to JSON key.
53
53
  def self.attribute_map
54
54
  {
55
- :'type' => :'Type'
55
+ :'type' => :'Type',
56
56
  }
57
57
  end
58
58
 
59
59
  # Attribute type mapping.
60
60
  def self.swagger_types
61
61
  {
62
- :'type' => :'String'
62
+ :'type' => :'String',
63
63
  }
64
64
  end
65
65
 
@@ -127,15 +127,27 @@ module AsposeSlidesCloud
127
127
  def build_from_hash(attributes)
128
128
  return nil unless attributes.is_a?(Hash)
129
129
  self.class.swagger_types.each_pair do |key, type|
130
- if type =~ /\AArray<(.*)>/i
131
- # check to ensure the input is an array given that the the attribute
132
- # is documented as an array but the input is not
133
- if attributes[self.class.attribute_map[key]].is_a?(Array)
134
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
130
+ mapKey = self.class.attribute_map[key]
131
+ if !mapKey.nil?
132
+ val = attributes[mapKey]
133
+ if val.nil?
134
+ mapKeyString = mapKey.to_s
135
+ mapKeyString[0] = mapKeyString[0].downcase
136
+ mapKey = mapKeyString.to_sym
137
+ val = attributes[mapKey]
135
138
  end
136
- elsif !attributes[self.class.attribute_map[key]].nil?
137
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
138
- end # or else data not found in attributes(hash), not an issue as the data can be optional
139
+ if !val.nil?
140
+ if type =~ /\AArray<(.*)>/i
141
+ # check to ensure the input is an array given that the the attribute
142
+ # is documented as an array but the input is not
143
+ if val.is_a?(Array)
144
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
145
+ end
146
+ else
147
+ self.send("#{key}=", _deserialize(type, val))
148
+ end
149
+ end
150
+ end
139
151
  end
140
152
 
141
153
  self
@@ -53,14 +53,14 @@ module AsposeSlidesCloud
53
53
  # Attribute mapping from ruby-style variable name to JSON key.
54
54
  def self.attribute_map
55
55
  {
56
- :'blend' => :'Blend'
56
+ :'blend' => :'Blend',
57
57
  }
58
58
  end
59
59
 
60
60
  # Attribute type mapping.
61
61
  def self.swagger_types
62
62
  {
63
- :'blend' => :'String'
63
+ :'blend' => :'String',
64
64
  }
65
65
  end
66
66
 
@@ -133,15 +133,27 @@ module AsposeSlidesCloud
133
133
  def build_from_hash(attributes)
134
134
  return nil unless attributes.is_a?(Hash)
135
135
  self.class.swagger_types.each_pair do |key, type|
136
- if type =~ /\AArray<(.*)>/i
137
- # check to ensure the input is an array given that the the attribute
138
- # is documented as an array but the input is not
139
- if attributes[self.class.attribute_map[key]].is_a?(Array)
140
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
136
+ mapKey = self.class.attribute_map[key]
137
+ if !mapKey.nil?
138
+ val = attributes[mapKey]
139
+ if val.nil?
140
+ mapKeyString = mapKey.to_s
141
+ mapKeyString[0] = mapKeyString[0].downcase
142
+ mapKey = mapKeyString.to_sym
143
+ val = attributes[mapKey]
141
144
  end
142
- elsif !attributes[self.class.attribute_map[key]].nil?
143
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
144
- end # or else data not found in attributes(hash), not an issue as the data can be optional
145
+ if !val.nil?
146
+ if type =~ /\AArray<(.*)>/i
147
+ # check to ensure the input is an array given that the the attribute
148
+ # is documented as an array but the input is not
149
+ if val.is_a?(Array)
150
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
151
+ end
152
+ else
153
+ self.send("#{key}=", _deserialize(type, val))
154
+ end
155
+ end
156
+ end
145
157
  end
146
158
 
147
159
  self
@@ -24,13 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents font scheme
27
- class FontScheme
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 FontScheme < ResourceBase
34
28
  # Gets or sets fonts collection for a \"heading\" part of the slide.
35
29
  attr_accessor :major
36
30
 
@@ -42,43 +36,26 @@ module AsposeSlidesCloud
42
36
 
43
37
  # Attribute mapping from ruby-style variable name to JSON key.
44
38
  def self.attribute_map
45
- {
46
- :'self_uri' => :'SelfUri',
47
- :'alternate_links' => :'AlternateLinks',
39
+ super.merge({
48
40
  :'major' => :'Major',
49
41
  :'minor' => :'Minor',
50
- :'name' => :'Name'
51
- }
42
+ :'name' => :'Name',
43
+ })
52
44
  end
53
45
 
54
46
  # Attribute type mapping.
55
47
  def self.swagger_types
56
- {
57
- :'self_uri' => :'ResourceUri',
58
- :'alternate_links' => :'Array<ResourceUri>',
48
+ super.merge({
59
49
  :'major' => :'FontSet',
60
50
  :'minor' => :'FontSet',
61
- :'name' => :'String'
62
- }
51
+ :'name' => :'String',
52
+ })
63
53
  end
64
54
 
65
55
  # Initializes the object
66
56
  # @param [Hash] attributes Model attributes in the form of hash
67
57
  def initialize(attributes = {})
68
- return unless attributes.is_a?(Hash)
69
-
70
- # convert string to symbol for hash key
71
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
72
-
73
- if attributes.has_key?(:'SelfUri')
74
- self.self_uri = attributes[:'SelfUri']
75
- end
76
-
77
- if attributes.has_key?(:'AlternateLinks')
78
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
79
- self.alternate_links = value
80
- end
81
- end
58
+ super
82
59
 
83
60
  if attributes.has_key?(:'Major')
84
61
  self.major = attributes[:'Major']
@@ -96,13 +73,14 @@ module AsposeSlidesCloud
96
73
  # Show invalid properties with the reasons. Usually used together with valid?
97
74
  # @return Array for valid properties with the reasons
98
75
  def list_invalid_properties
99
- invalid_properties = Array.new
76
+ invalid_properties = super
100
77
  invalid_properties
101
78
  end
102
79
 
103
80
  # Check to see if the all the properties in the model are valid
104
81
  # @return true if the model is valid
105
82
  def valid?
83
+ return false if !super
106
84
  true
107
85
  end
108
86
 
@@ -136,15 +114,27 @@ module AsposeSlidesCloud
136
114
  def build_from_hash(attributes)
137
115
  return nil unless attributes.is_a?(Hash)
138
116
  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) })
117
+ mapKey = self.class.attribute_map[key]
118
+ if !mapKey.nil?
119
+ val = attributes[mapKey]
120
+ if val.nil?
121
+ mapKeyString = mapKey.to_s
122
+ mapKeyString[0] = mapKeyString[0].downcase
123
+ mapKey = mapKeyString.to_sym
124
+ val = attributes[mapKey]
144
125
  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
126
+ if !val.nil?
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 val.is_a?(Array)
131
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
132
+ end
133
+ else
134
+ self.send("#{key}=", _deserialize(type, val))
135
+ end
136
+ end
137
+ end
148
138
  end
149
139
 
150
140
  self
@@ -39,7 +39,7 @@ module AsposeSlidesCloud
39
39
  {
40
40
  :'complex_script' => :'ComplexScript',
41
41
  :'east_asian' => :'EastAsian',
42
- :'latin' => :'Latin'
42
+ :'latin' => :'Latin',
43
43
  }
44
44
  end
45
45
 
@@ -48,7 +48,7 @@ module AsposeSlidesCloud
48
48
  {
49
49
  :'complex_script' => :'String',
50
50
  :'east_asian' => :'String',
51
- :'latin' => :'String'
51
+ :'latin' => :'String',
52
52
  }
53
53
  end
54
54
 
@@ -114,15 +114,27 @@ module AsposeSlidesCloud
114
114
  def build_from_hash(attributes)
115
115
  return nil unless attributes.is_a?(Hash)
116
116
  self.class.swagger_types.each_pair do |key, type|
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 attributes[self.class.attribute_map[key]].is_a?(Array)
121
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
117
+ mapKey = self.class.attribute_map[key]
118
+ if !mapKey.nil?
119
+ val = attributes[mapKey]
120
+ if val.nil?
121
+ mapKeyString = mapKey.to_s
122
+ mapKeyString[0] = mapKeyString[0].downcase
123
+ mapKey = mapKeyString.to_sym
124
+ val = attributes[mapKey]
122
125
  end
123
- elsif !attributes[self.class.attribute_map[key]].nil?
124
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
125
- end # or else data not found in attributes(hash), not an issue as the data can be optional
126
+ if !val.nil?
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 val.is_a?(Array)
131
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
132
+ end
133
+ else
134
+ self.send("#{key}=", _deserialize(type, val))
135
+ end
136
+ end
137
+ end
126
138
  end
127
139
 
128
140
  self
@@ -24,13 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents Format Scheme for slide's theme
27
- class FormatScheme
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 FormatScheme < ResourceBase
34
28
  # Background style links.
35
29
  attr_accessor :background_styles
36
30
 
@@ -45,45 +39,28 @@ module AsposeSlidesCloud
45
39
 
46
40
  # Attribute mapping from ruby-style variable name to JSON key.
47
41
  def self.attribute_map
48
- {
49
- :'self_uri' => :'SelfUri',
50
- :'alternate_links' => :'AlternateLinks',
42
+ super.merge({
51
43
  :'background_styles' => :'BackgroundStyles',
52
44
  :'effect_styles' => :'EffectStyles',
53
45
  :'fill_styles' => :'FillStyles',
54
- :'line_styles' => :'LineStyles'
55
- }
46
+ :'line_styles' => :'LineStyles',
47
+ })
56
48
  end
57
49
 
58
50
  # Attribute type mapping.
59
51
  def self.swagger_types
60
- {
61
- :'self_uri' => :'ResourceUri',
62
- :'alternate_links' => :'Array<ResourceUri>',
52
+ super.merge({
63
53
  :'background_styles' => :'Array<ResourceUri>',
64
54
  :'effect_styles' => :'Array<ResourceUri>',
65
55
  :'fill_styles' => :'Array<ResourceUri>',
66
- :'line_styles' => :'Array<ResourceUri>'
67
- }
56
+ :'line_styles' => :'Array<ResourceUri>',
57
+ })
68
58
  end
69
59
 
70
60
  # Initializes the object
71
61
  # @param [Hash] attributes Model attributes in the form of hash
72
62
  def initialize(attributes = {})
73
- return unless attributes.is_a?(Hash)
74
-
75
- # convert string to symbol for hash key
76
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
77
-
78
- if attributes.has_key?(:'SelfUri')
79
- self.self_uri = attributes[:'SelfUri']
80
- end
81
-
82
- if attributes.has_key?(:'AlternateLinks')
83
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
84
- self.alternate_links = value
85
- end
86
- end
63
+ super
87
64
 
88
65
  if attributes.has_key?(:'BackgroundStyles')
89
66
  if (value = attributes[:'BackgroundStyles']).is_a?(Array)
@@ -113,13 +90,14 @@ module AsposeSlidesCloud
113
90
  # Show invalid properties with the reasons. Usually used together with valid?
114
91
  # @return Array for valid properties with the reasons
115
92
  def list_invalid_properties
116
- invalid_properties = Array.new
93
+ invalid_properties = super
117
94
  invalid_properties
118
95
  end
119
96
 
120
97
  # Check to see if the all the properties in the model are valid
121
98
  # @return true if the model is valid
122
99
  def valid?
100
+ return false if !super
123
101
  true
124
102
  end
125
103
 
@@ -154,15 +132,27 @@ module AsposeSlidesCloud
154
132
  def build_from_hash(attributes)
155
133
  return nil unless attributes.is_a?(Hash)
156
134
  self.class.swagger_types.each_pair do |key, type|
157
- if type =~ /\AArray<(.*)>/i
158
- # check to ensure the input is an array given that the the attribute
159
- # is documented as an array but the input is not
160
- if attributes[self.class.attribute_map[key]].is_a?(Array)
161
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
135
+ mapKey = self.class.attribute_map[key]
136
+ if !mapKey.nil?
137
+ val = attributes[mapKey]
138
+ if val.nil?
139
+ mapKeyString = mapKey.to_s
140
+ mapKeyString[0] = mapKeyString[0].downcase
141
+ mapKey = mapKeyString.to_sym
142
+ val = attributes[mapKey]
162
143
  end
163
- elsif !attributes[self.class.attribute_map[key]].nil?
164
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
165
- end # or else data not found in attributes(hash), not an issue as the data can be optional
144
+ if !val.nil?
145
+ if type =~ /\AArray<(.*)>/i
146
+ # check to ensure the input is an array given that the the attribute
147
+ # is documented as an array but the input is not
148
+ if val.is_a?(Array)
149
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
150
+ end
151
+ else
152
+ self.send("#{key}=", _deserialize(type, val))
153
+ end
154
+ end
155
+ end
166
156
  end
167
157
 
168
158
  self
@@ -24,57 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents GeometryShape resource.
27
- class GeometryShape
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
- attr_accessor :type
74
-
75
- # Shape type.
76
- attr_accessor :shape_type
77
-
27
+ class GeometryShape < ShapeBase
78
28
  # Geometry shape type.
79
29
  attr_accessor :geometry_shape_type
80
30
 
@@ -102,129 +52,22 @@ module AsposeSlidesCloud
102
52
 
103
53
  # Attribute mapping from ruby-style variable name to JSON key.
104
54
  def self.attribute_map
105
- {
106
- :'self_uri' => :'SelfUri',
107
- :'alternate_links' => :'AlternateLinks',
108
- :'name' => :'Name',
109
- :'width' => :'Width',
110
- :'height' => :'Height',
111
- :'alternative_text' => :'AlternativeText',
112
- :'alternative_text_title' => :'AlternativeTextTitle',
113
- :'hidden' => :'Hidden',
114
- :'x' => :'X',
115
- :'y' => :'Y',
116
- :'z_order_position' => :'ZOrderPosition',
117
- :'shapes' => :'Shapes',
118
- :'fill_format' => :'FillFormat',
119
- :'effect_format' => :'EffectFormat',
120
- :'line_format' => :'LineFormat',
121
- :'type' => :'Type',
122
- :'shape_type' => :'ShapeType',
123
- :'geometry_shape_type' => :'GeometryShapeType'
124
- }
55
+ super.merge({
56
+ :'geometry_shape_type' => :'GeometryShapeType',
57
+ })
125
58
  end
126
59
 
127
60
  # Attribute type mapping.
128
61
  def self.swagger_types
129
- {
130
- :'self_uri' => :'ResourceUri',
131
- :'alternate_links' => :'Array<ResourceUri>',
132
- :'name' => :'String',
133
- :'width' => :'Float',
134
- :'height' => :'Float',
135
- :'alternative_text' => :'String',
136
- :'alternative_text_title' => :'String',
137
- :'hidden' => :'BOOLEAN',
138
- :'x' => :'Float',
139
- :'y' => :'Float',
140
- :'z_order_position' => :'Integer',
141
- :'shapes' => :'ResourceUriElement',
142
- :'fill_format' => :'FillFormat',
143
- :'effect_format' => :'EffectFormat',
144
- :'line_format' => :'LineFormat',
145
- :'type' => :'String',
146
- :'shape_type' => :'String',
147
- :'geometry_shape_type' => :'String'
148
- }
62
+ super.merge({
63
+ :'geometry_shape_type' => :'String',
64
+ })
149
65
  end
150
66
 
151
67
  # Initializes the object
152
68
  # @param [Hash] attributes Model attributes in the form of hash
153
69
  def initialize(attributes = {})
154
- return unless attributes.is_a?(Hash)
155
-
156
- # convert string to symbol for hash key
157
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
158
-
159
- if attributes.has_key?(:'SelfUri')
160
- self.self_uri = attributes[:'SelfUri']
161
- end
162
-
163
- if attributes.has_key?(:'AlternateLinks')
164
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
165
- self.alternate_links = value
166
- end
167
- end
168
-
169
- if attributes.has_key?(:'Name')
170
- self.name = attributes[:'Name']
171
- end
172
-
173
- if attributes.has_key?(:'Width')
174
- self.width = attributes[:'Width']
175
- end
176
-
177
- if attributes.has_key?(:'Height')
178
- self.height = attributes[:'Height']
179
- end
180
-
181
- if attributes.has_key?(:'AlternativeText')
182
- self.alternative_text = attributes[:'AlternativeText']
183
- end
184
-
185
- if attributes.has_key?(:'AlternativeTextTitle')
186
- self.alternative_text_title = attributes[:'AlternativeTextTitle']
187
- end
188
-
189
- if attributes.has_key?(:'Hidden')
190
- self.hidden = attributes[:'Hidden']
191
- end
192
-
193
- if attributes.has_key?(:'X')
194
- self.x = attributes[:'X']
195
- end
196
-
197
- if attributes.has_key?(:'Y')
198
- self.y = attributes[:'Y']
199
- end
200
-
201
- if attributes.has_key?(:'ZOrderPosition')
202
- self.z_order_position = attributes[:'ZOrderPosition']
203
- end
204
-
205
- if attributes.has_key?(:'Shapes')
206
- self.shapes = attributes[:'Shapes']
207
- end
208
-
209
- if attributes.has_key?(:'FillFormat')
210
- self.fill_format = attributes[:'FillFormat']
211
- end
212
-
213
- if attributes.has_key?(:'EffectFormat')
214
- self.effect_format = attributes[:'EffectFormat']
215
- end
216
-
217
- if attributes.has_key?(:'LineFormat')
218
- self.line_format = attributes[:'LineFormat']
219
- end
220
-
221
- if attributes.has_key?(:'Type')
222
- self.type = attributes[:'Type']
223
- end
224
-
225
- if attributes.has_key?(:'ShapeType')
226
- self.shape_type = attributes[:'ShapeType']
227
- end
70
+ super
228
71
 
229
72
  if attributes.has_key?(:'GeometryShapeType')
230
73
  self.geometry_shape_type = attributes[:'GeometryShapeType']
@@ -234,15 +77,7 @@ module AsposeSlidesCloud
234
77
  # Show invalid properties with the reasons. Usually used together with valid?
235
78
  # @return Array for valid properties with the reasons
236
79
  def list_invalid_properties
237
- invalid_properties = Array.new
238
- if @z_order_position.nil?
239
- invalid_properties.push('invalid value for "z_order_position", z_order_position cannot be nil.')
240
- end
241
-
242
- if @shape_type.nil?
243
- invalid_properties.push('invalid value for "shape_type", shape_type cannot be nil.')
244
- end
245
-
80
+ invalid_properties = super
246
81
  if @geometry_shape_type.nil?
247
82
  invalid_properties.push('invalid value for "geometry_shape_type", geometry_shape_type cannot be nil.')
248
83
  end
@@ -253,38 +88,13 @@ module AsposeSlidesCloud
253
88
  # Check to see if the all the properties in the model are valid
254
89
  # @return true if the model is valid
255
90
  def valid?
256
- return false if @z_order_position.nil?
257
- type_validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
258
- return false unless type_validator.valid?(@type)
259
- return false if @shape_type.nil?
260
- 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'])
261
- return false unless shape_type_validator.valid?(@shape_type)
91
+ return false if !super
262
92
  return false if @geometry_shape_type.nil?
263
93
  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'])
264
94
  return false unless geometry_shape_type_validator.valid?(@geometry_shape_type)
265
95
  true
266
96
  end
267
97
 
268
- # Custom attribute writer method checking allowed values (enum).
269
- # @param [Object] type Object to be assigned
270
- def type=(type)
271
- validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
272
- unless validator.valid?(type)
273
- fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
274
- end
275
- @type = type
276
- end
277
-
278
- # Custom attribute writer method checking allowed values (enum).
279
- # @param [Object] shape_type Object to be assigned
280
- def shape_type=(shape_type)
281
- 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'])
282
- unless validator.valid?(shape_type)
283
- fail ArgumentError, 'invalid value for "shape_type", must be one of #{validator.allowable_values}.'
284
- end
285
- @shape_type = shape_type
286
- end
287
-
288
98
  # Custom attribute writer method checking allowed values (enum).
289
99
  # @param [Object] geometry_shape_type Object to be assigned
290
100
  def geometry_shape_type=(geometry_shape_type)
@@ -338,15 +148,27 @@ module AsposeSlidesCloud
338
148
  def build_from_hash(attributes)
339
149
  return nil unless attributes.is_a?(Hash)
340
150
  self.class.swagger_types.each_pair do |key, type|
341
- if type =~ /\AArray<(.*)>/i
342
- # check to ensure the input is an array given that the the attribute
343
- # is documented as an array but the input is not
344
- if attributes[self.class.attribute_map[key]].is_a?(Array)
345
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
151
+ mapKey = self.class.attribute_map[key]
152
+ if !mapKey.nil?
153
+ val = attributes[mapKey]
154
+ if val.nil?
155
+ mapKeyString = mapKey.to_s
156
+ mapKeyString[0] = mapKeyString[0].downcase
157
+ mapKey = mapKeyString.to_sym
158
+ val = attributes[mapKey]
346
159
  end
347
- elsif !attributes[self.class.attribute_map[key]].nil?
348
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
349
- end # or else data not found in attributes(hash), not an issue as the data can be optional
160
+ if !val.nil?
161
+ if type =~ /\AArray<(.*)>/i
162
+ # check to ensure the input is an array given that the the attribute
163
+ # is documented as an array but the input is not
164
+ if val.is_a?(Array)
165
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
166
+ end
167
+ else
168
+ self.send("#{key}=", _deserialize(type, val))
169
+ end
170
+ end
171
+ end
350
172
  end
351
173
 
352
174
  self