aspose_slides_cloud 22.9.0 → 22.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +14 -14
  3. data/README.md +12 -0
  4. data/docker-entrypoint.sh +1 -2
  5. data/lib/aspose_slides_cloud/api/slides_api.rb +5327 -9036
  6. data/lib/aspose_slides_cloud/api_client.rb +3 -3
  7. data/lib/aspose_slides_cloud/configuration.rb +1 -1
  8. data/lib/aspose_slides_cloud/models/accent_element.rb +1 -1
  9. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +1 -1
  10. data/lib/aspose_slides_cloud/models/add_master_slide.rb +1 -1
  11. data/lib/aspose_slides_cloud/models/add_shape.rb +1 -1
  12. data/lib/aspose_slides_cloud/models/add_slide.rb +1 -1
  13. data/lib/aspose_slides_cloud/models/alpha_bi_level_effect.rb +1 -1
  14. data/lib/aspose_slides_cloud/models/alpha_ceiling_effect.rb +1 -1
  15. data/lib/aspose_slides_cloud/models/alpha_floor_effect.rb +1 -1
  16. data/lib/aspose_slides_cloud/models/alpha_inverse_effect.rb +1 -1
  17. data/lib/aspose_slides_cloud/models/alpha_modulate_effect.rb +1 -1
  18. data/lib/aspose_slides_cloud/models/alpha_modulate_fixed_effect.rb +1 -1
  19. data/lib/aspose_slides_cloud/models/alpha_replace_effect.rb +1 -1
  20. data/lib/aspose_slides_cloud/models/arc_to_path_segment.rb +1 -1
  21. data/lib/aspose_slides_cloud/models/array_element.rb +1 -1
  22. data/lib/aspose_slides_cloud/models/audio_frame.rb +1 -1
  23. data/lib/aspose_slides_cloud/models/axis_type.rb +4 -4
  24. data/lib/aspose_slides_cloud/models/bar_element.rb +1 -1
  25. data/lib/aspose_slides_cloud/models/base64_input_file.rb +1 -1
  26. data/lib/aspose_slides_cloud/models/bi_level_effect.rb +1 -1
  27. data/lib/aspose_slides_cloud/models/block_element.rb +1 -1
  28. data/lib/aspose_slides_cloud/models/blur_image_effect.rb +1 -1
  29. data/lib/aspose_slides_cloud/models/border_box_element.rb +1 -1
  30. data/lib/aspose_slides_cloud/models/box_element.rb +1 -1
  31. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +14 -2
  32. data/lib/aspose_slides_cloud/models/bubble_series.rb +16 -3
  33. data/lib/aspose_slides_cloud/models/chart.rb +12 -2
  34. data/lib/aspose_slides_cloud/models/chart_wall_type.rb +3 -3
  35. data/lib/aspose_slides_cloud/models/close_path_segment.rb +1 -1
  36. data/lib/aspose_slides_cloud/models/color_change_effect.rb +1 -1
  37. data/lib/aspose_slides_cloud/models/color_replace_effect.rb +1 -1
  38. data/lib/aspose_slides_cloud/models/connector.rb +1 -1
  39. data/lib/aspose_slides_cloud/models/cubic_bezier_to_path_segment.rb +1 -1
  40. data/lib/aspose_slides_cloud/models/data_source.rb +244 -0
  41. data/lib/aspose_slides_cloud/models/delimiter_element.rb +1 -1
  42. data/lib/aspose_slides_cloud/models/duotone_effect.rb +1 -1
  43. data/lib/aspose_slides_cloud/models/effect.rb +22 -2
  44. data/lib/aspose_slides_cloud/models/export_format.rb +25 -25
  45. data/lib/aspose_slides_cloud/models/fill_overlay_image_effect.rb +1 -1
  46. data/lib/aspose_slides_cloud/models/fraction_element.rb +1 -1
  47. data/lib/aspose_slides_cloud/models/function_element.rb +1 -1
  48. data/lib/aspose_slides_cloud/models/gif_export_options.rb +1 -1
  49. data/lib/aspose_slides_cloud/models/gradient_fill.rb +1 -1
  50. data/lib/aspose_slides_cloud/models/graphical_object.rb +2 -2
  51. data/lib/aspose_slides_cloud/models/gray_scale_effect.rb +1 -1
  52. data/lib/aspose_slides_cloud/models/group_shape.rb +1 -1
  53. data/lib/aspose_slides_cloud/models/grouping_character_element.rb +1 -1
  54. data/lib/aspose_slides_cloud/models/hsl_effect.rb +1 -1
  55. data/lib/aspose_slides_cloud/models/html5_export_options.rb +1 -1
  56. data/lib/aspose_slides_cloud/models/html_export_options.rb +1 -1
  57. data/lib/aspose_slides_cloud/models/image_export_format.rb +5 -5
  58. data/lib/aspose_slides_cloud/models/image_export_options.rb +1 -1
  59. data/lib/aspose_slides_cloud/models/left_sub_superscript_element.rb +1 -1
  60. data/lib/aspose_slides_cloud/models/limit_element.rb +1 -1
  61. data/lib/aspose_slides_cloud/models/line_to_path_segment.rb +1 -1
  62. data/lib/aspose_slides_cloud/models/literals.rb +223 -0
  63. data/lib/aspose_slides_cloud/models/luminance_effect.rb +1 -1
  64. data/lib/aspose_slides_cloud/models/matrix_element.rb +1 -1
  65. data/lib/aspose_slides_cloud/models/merge.rb +1 -1
  66. data/lib/aspose_slides_cloud/models/move_to_path_segment.rb +1 -1
  67. data/lib/aspose_slides_cloud/models/nary_operator_element.rb +1 -1
  68. data/lib/aspose_slides_cloud/models/no_fill.rb +1 -1
  69. data/lib/aspose_slides_cloud/models/notes_slide_export_format.rb +23 -23
  70. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +1 -1
  71. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +11 -1
  72. data/lib/aspose_slides_cloud/models/one_value_series.rb +13 -2
  73. data/lib/aspose_slides_cloud/models/path_input_file.rb +1 -1
  74. data/lib/aspose_slides_cloud/models/path_output_file.rb +1 -1
  75. data/lib/aspose_slides_cloud/models/pattern_fill.rb +1 -1
  76. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +1 -1
  77. data/lib/aspose_slides_cloud/models/picture_fill.rb +1 -1
  78. data/lib/aspose_slides_cloud/models/picture_frame.rb +1 -1
  79. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +1 -1
  80. data/lib/aspose_slides_cloud/models/quadratic_bezier_to_path_segment.rb +1 -1
  81. data/lib/aspose_slides_cloud/models/radical_element.rb +1 -1
  82. data/lib/aspose_slides_cloud/models/remove_shape.rb +1 -1
  83. data/lib/aspose_slides_cloud/models/remove_slide.rb +1 -1
  84. data/lib/aspose_slides_cloud/models/reorder_slide.rb +1 -1
  85. data/lib/aspose_slides_cloud/models/replace_text.rb +1 -1
  86. data/lib/aspose_slides_cloud/models/request_input_file.rb +1 -1
  87. data/lib/aspose_slides_cloud/models/reset_slide.rb +1 -1
  88. data/lib/aspose_slides_cloud/models/response_output_file.rb +1 -1
  89. data/lib/aspose_slides_cloud/models/right_sub_superscript_element.rb +1 -1
  90. data/lib/aspose_slides_cloud/models/save.rb +1 -1
  91. data/lib/aspose_slides_cloud/models/save_shape.rb +1 -1
  92. data/lib/aspose_slides_cloud/models/save_slide.rb +1 -1
  93. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +22 -2
  94. data/lib/aspose_slides_cloud/models/scatter_series.rb +5 -2
  95. data/lib/aspose_slides_cloud/models/section_zoom_frame.rb +1 -1
  96. data/lib/aspose_slides_cloud/models/series.rb +11 -1
  97. data/lib/aspose_slides_cloud/models/shape.rb +1 -1
  98. data/lib/aspose_slides_cloud/models/shape_export_format.rb +6 -6
  99. data/lib/aspose_slides_cloud/models/shape_thumbnail_bounds.rb +3 -3
  100. data/lib/aspose_slides_cloud/models/shape_type.rb +16 -16
  101. data/lib/aspose_slides_cloud/models/shapes_alignment_type.rb +8 -8
  102. data/lib/aspose_slides_cloud/models/slide_comment.rb +1 -1
  103. data/lib/aspose_slides_cloud/models/slide_export_format.rb +23 -23
  104. data/lib/aspose_slides_cloud/models/slide_modern_comment.rb +1 -1
  105. data/lib/aspose_slides_cloud/models/slide_show_properties.rb +325 -0
  106. data/lib/aspose_slides_cloud/models/smart_art.rb +1 -1
  107. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +1 -1
  108. data/lib/aspose_slides_cloud/models/solid_fill.rb +1 -1
  109. data/lib/aspose_slides_cloud/models/special_slide_type.rb +3 -3
  110. data/lib/aspose_slides_cloud/models/subscript_element.rb +1 -1
  111. data/lib/aspose_slides_cloud/models/summary_zoom_frame.rb +1 -1
  112. data/lib/aspose_slides_cloud/models/summary_zoom_section.rb +1 -1
  113. data/lib/aspose_slides_cloud/models/superscript_element.rb +1 -1
  114. data/lib/aspose_slides_cloud/models/svg_export_options.rb +23 -3
  115. data/lib/aspose_slides_cloud/models/swf_export_options.rb +1 -1
  116. data/lib/aspose_slides_cloud/models/table.rb +1 -1
  117. data/lib/aspose_slides_cloud/models/text_element.rb +1 -1
  118. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +1 -1
  119. data/lib/aspose_slides_cloud/models/tint_effect.rb +1 -1
  120. data/lib/aspose_slides_cloud/models/update_background.rb +1 -1
  121. data/lib/aspose_slides_cloud/models/update_shape.rb +1 -1
  122. data/lib/aspose_slides_cloud/models/video_export_options.rb +1 -1
  123. data/lib/aspose_slides_cloud/models/video_frame.rb +1 -1
  124. data/lib/aspose_slides_cloud/models/workbook.rb +268 -0
  125. data/lib/aspose_slides_cloud/models/xaml_export_options.rb +1 -1
  126. data/lib/aspose_slides_cloud/models/xps_export_options.rb +1 -1
  127. data/lib/aspose_slides_cloud/models/xy_series.rb +23 -2
  128. data/lib/aspose_slides_cloud/models/zoom_frame.rb +1 -1
  129. data/lib/aspose_slides_cloud/type_registry.rb +189 -182
  130. data/lib/aspose_slides_cloud/version.rb +1 -1
  131. data/lib/aspose_slides_cloud.rb +124 -120
  132. data/spec/api/slides_api_spec.rb +23387 -34153
  133. data/spec/spec_utils.rb +88 -49
  134. data/spec/use_cases/chart_spec.rb +160 -1
  135. data/spec/use_cases/convert_spec.rb +8 -2
  136. data/spec/use_cases/font_spec.rb +4 -4
  137. data/spec/use_cases/nullable_field_spec.rb +7 -0
  138. data/spec/use_cases/paragraph_spec.rb +30 -22
  139. data/spec/use_cases/portion_spec.rb +31 -23
  140. data/spec/use_cases/property_spec.rb +23 -0
  141. data/spec/use_cases/shape_spec.rb +22 -18
  142. data/testRules.json +138 -513
  143. metadata +6 -2
@@ -0,0 +1,223 @@
1
+ =begin
2
+ Copyright (c) 2019 Aspose Pty Ltd
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
21
+ =end
22
+
23
+ require 'date'
24
+
25
+ module AsposeSlidesCloud
26
+ # Represents string or double literals data source.
27
+ class Literals < DataSource
28
+ class EnumAttributeValidator
29
+ attr_reader :datatype
30
+ attr_reader :allowable_values
31
+
32
+ def initialize(datatype, allowable_values)
33
+ @allowable_values = allowable_values.map do |value|
34
+ case datatype.to_s
35
+ when /Integer/i
36
+ value.to_i
37
+ when /Float/i
38
+ value.to_f
39
+ else
40
+ value
41
+ end
42
+ end
43
+ end
44
+
45
+ def valid?(value)
46
+ !value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
47
+ end
48
+ end
49
+
50
+ # Attribute mapping from ruby-style variable name to JSON key.
51
+ def self.attribute_map
52
+ super.merge({
53
+ })
54
+ end
55
+
56
+ # Attribute type mapping.
57
+ def self.swagger_types
58
+ super.merge({
59
+ })
60
+ end
61
+
62
+ # Initializes the object
63
+ # @param [Hash] attributes Model attributes in the form of hash
64
+ def initialize(attributes = {})
65
+ super
66
+ self.type = 'Literals'
67
+ end
68
+
69
+ # Show invalid properties with the reasons. Usually used together with valid?
70
+ # @return Array for valid properties with the reasons
71
+ def list_invalid_properties
72
+ invalid_properties = super
73
+ invalid_properties
74
+ end
75
+
76
+ # Check to see if the all the properties in the model are valid
77
+ # @return true if the model is valid
78
+ def valid?
79
+ return false if !super
80
+ true
81
+ end
82
+
83
+ # Checks equality by comparing each attribute.
84
+ # @param [Object] Object to be compared
85
+ def ==(o)
86
+ return true if self.equal?(o)
87
+ self.class == o.class &&
88
+ type == o.type
89
+ end
90
+
91
+ # @see the `==` method
92
+ # @param [Object] Object to be compared
93
+ def eql?(o)
94
+ self == o
95
+ end
96
+
97
+ # Calculates hash code according to all attributes.
98
+ # @return [Fixnum] Hash code
99
+ def hash
100
+ [type].hash
101
+ end
102
+
103
+ # Builds the object from hash
104
+ # @param [Hash] attributes Model attributes in the form of hash
105
+ # @return [Object] Returns the model itself
106
+ def build_from_hash(attributes)
107
+ return nil unless attributes.is_a?(Hash)
108
+ self.class.swagger_types.each_pair do |key, type|
109
+ mapKey = self.class.attribute_map[key]
110
+ if !mapKey.nil?
111
+ val = attributes[mapKey]
112
+ if val.nil?
113
+ mapKeyString = mapKey.to_s
114
+ mapKeyString[0] = mapKeyString[0].downcase
115
+ mapKey = mapKeyString.to_sym
116
+ val = attributes[mapKey]
117
+ end
118
+ if !val.nil?
119
+ if type =~ /\AArray<(.*)>/i
120
+ # check to ensure the input is an array given that the the attribute
121
+ # is documented as an array but the input is not
122
+ if val.is_a?(Array)
123
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
124
+ end
125
+ else
126
+ self.send("#{key}=", _deserialize(type, val))
127
+ end
128
+ end
129
+ end
130
+ end
131
+
132
+ self
133
+ end
134
+
135
+ # Deserializes the data based on type
136
+ # @param string type Data type
137
+ # @param string value Value to be deserialized
138
+ # @return [Object] Deserialized data
139
+ def _deserialize(type, value)
140
+ case type.to_sym
141
+ when :DateTime
142
+ DateTime.parse(value)
143
+ when :Date
144
+ Date.parse(value)
145
+ when :String
146
+ value.to_s
147
+ when :Integer
148
+ value.to_i
149
+ when :Float
150
+ value.to_f
151
+ when :BOOLEAN
152
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
153
+ true
154
+ else
155
+ false
156
+ end
157
+ when :Object
158
+ # generic object (usually a Hash), return directly
159
+ value
160
+ when /\AArray<(?<inner_type>.+)>\z/
161
+ inner_type = Regexp.last_match[:inner_type]
162
+ value.map { |v| _deserialize(inner_type, v) }
163
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
164
+ k_type = Regexp.last_match[:k_type]
165
+ v_type = Regexp.last_match[:v_type]
166
+ {}.tap do |hash|
167
+ value.each do |k, v|
168
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
169
+ end
170
+ end
171
+ else # model
172
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
173
+ if registry_type
174
+ type = registry_type
175
+ end
176
+ temp_model = AsposeSlidesCloud.const_get(type).new
177
+ temp_model.build_from_hash(value)
178
+ end
179
+ end
180
+
181
+ # Returns the string representation of the object
182
+ # @return [String] String presentation of the object
183
+ def to_s
184
+ to_hash.to_s
185
+ end
186
+
187
+ # to_body is an alias to to_hash (backward compatibility)
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_body
190
+ to_hash
191
+ end
192
+
193
+ # Returns the object in the form of hash
194
+ # @return [Hash] Returns the object in the form of hash
195
+ def to_hash
196
+ hash = {}
197
+ self.class.attribute_map.each_pair do |attr, param|
198
+ value = self.send(attr)
199
+ next if value.nil?
200
+ hash[param] = _to_hash(value)
201
+ end
202
+ hash
203
+ end
204
+
205
+ # Outputs non-array value in the form of hash
206
+ # For object, use to_hash. Otherwise, just return the value
207
+ # @param [Object] value Any valid value
208
+ # @return [Hash] Returns the value in the form of hash
209
+ def _to_hash(value)
210
+ if value.is_a?(Array)
211
+ value.compact.map { |v| _to_hash(v) }
212
+ elsif value.is_a?(Hash)
213
+ {}.tap do |hash|
214
+ value.each { |k, v| hash[k] = _to_hash(v) }
215
+ end
216
+ elsif value.respond_to? :to_hash
217
+ value.to_hash
218
+ else
219
+ value
220
+ end
221
+ end
222
+ end
223
+ end
@@ -81,7 +81,7 @@ module AsposeSlidesCloud
81
81
  if attributes.has_key?(:'Contrast')
82
82
  self.contrast = attributes[:'Contrast']
83
83
  end
84
- self.type = "Luminance"
84
+ self.type = 'Luminance'
85
85
  end
86
86
 
87
87
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -137,7 +137,7 @@ module AsposeSlidesCloud
137
137
  self.items = value
138
138
  end
139
139
  end
140
- self.type = "Matrix"
140
+ self.type = 'Matrix'
141
141
  end
142
142
 
143
143
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -74,7 +74,7 @@ module AsposeSlidesCloud
74
74
  self.presentations = value
75
75
  end
76
76
  end
77
- self.type = "Merge"
77
+ self.type = 'Merge'
78
78
  end
79
79
 
80
80
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -81,7 +81,7 @@ module AsposeSlidesCloud
81
81
  if attributes.has_key?(:'Y')
82
82
  self.y = attributes[:'Y']
83
83
  end
84
- self.type = "MoveTo"
84
+ self.type = 'MoveTo'
85
85
  end
86
86
 
87
87
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -135,7 +135,7 @@ module AsposeSlidesCloud
135
135
  if attributes.has_key?(:'HideSuperscript')
136
136
  self.hide_superscript = attributes[:'HideSuperscript']
137
137
  end
138
- self.type = "NaryOperator"
138
+ self.type = 'NaryOperator'
139
139
  end
140
140
 
141
141
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -63,7 +63,7 @@ module AsposeSlidesCloud
63
63
  # @param [Hash] attributes Model attributes in the form of hash
64
64
  def initialize(attributes = {})
65
65
  super
66
- self.type = "NoFill"
66
+ self.type = 'NoFill'
67
67
  end
68
68
 
69
69
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -25,29 +25,29 @@ require 'date'
25
25
  module AsposeSlidesCloud
26
26
  class NotesSlideExportFormat
27
27
 
28
- JPEG = "Jpeg".freeze
29
- PNG = "Png".freeze
30
- GIF = "Gif".freeze
31
- BMP = "Bmp".freeze
32
- TIFF = "Tiff".freeze
33
- HTML = "Html".freeze
34
- PDF = "Pdf".freeze
35
- XPS = "Xps".freeze
36
- PPTX = "Pptx".freeze
37
- ODP = "Odp".freeze
38
- OTP = "Otp".freeze
39
- PPT = "Ppt".freeze
40
- PPS = "Pps".freeze
41
- PPSX = "Ppsx".freeze
42
- PPTM = "Pptm".freeze
43
- PPSM = "Ppsm".freeze
44
- POTX = "Potx".freeze
45
- POT = "Pot".freeze
46
- POTM = "Potm".freeze
47
- SVG = "Svg".freeze
48
- FODP = "Fodp".freeze
49
- XAML = "Xaml".freeze
50
- HTML5 = "Html5".freeze
28
+ JPEG = 'Jpeg'.freeze
29
+ PNG = 'Png'.freeze
30
+ GIF = 'Gif'.freeze
31
+ BMP = 'Bmp'.freeze
32
+ TIFF = 'Tiff'.freeze
33
+ HTML = 'Html'.freeze
34
+ PDF = 'Pdf'.freeze
35
+ XPS = 'Xps'.freeze
36
+ PPTX = 'Pptx'.freeze
37
+ ODP = 'Odp'.freeze
38
+ OTP = 'Otp'.freeze
39
+ PPT = 'Ppt'.freeze
40
+ PPS = 'Pps'.freeze
41
+ PPSX = 'Ppsx'.freeze
42
+ PPTM = 'Pptm'.freeze
43
+ PPSM = 'Ppsm'.freeze
44
+ POTX = 'Potx'.freeze
45
+ POT = 'Pot'.freeze
46
+ POTM = 'Potm'.freeze
47
+ SVG = 'Svg'.freeze
48
+ FODP = 'Fodp'.freeze
49
+ XAML = 'Xaml'.freeze
50
+ HTML5 = 'Html5'.freeze
51
51
 
52
52
  # Builds the enum from string
53
53
  # @param [String] The enum value in the form of the string
@@ -144,7 +144,7 @@ module AsposeSlidesCloud
144
144
  if attributes.has_key?(:'UpdateAutomatic')
145
145
  self.update_automatic = attributes[:'UpdateAutomatic']
146
146
  end
147
- self.type = "OleObjectFrame"
147
+ self.type = 'OleObjectFrame'
148
148
  end
149
149
 
150
150
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -28,6 +28,9 @@ module AsposeSlidesCloud
28
28
  # Value.
29
29
  attr_accessor :value
30
30
 
31
+ # Spreadsheet formula in A1-style.
32
+ attr_accessor :value_formula
33
+
31
34
  # SetAsTotal. Applied to Waterfall data points only.
32
35
  attr_accessor :set_as_total
33
36
 
@@ -38,6 +41,7 @@ module AsposeSlidesCloud
38
41
  def self.attribute_map
39
42
  super.merge({
40
43
  :'value' => :'Value',
44
+ :'value_formula' => :'ValueFormula',
41
45
  :'set_as_total' => :'SetAsTotal',
42
46
  :'invert_if_negative' => :'InvertIfNegative',
43
47
  })
@@ -47,6 +51,7 @@ module AsposeSlidesCloud
47
51
  def self.swagger_types
48
52
  super.merge({
49
53
  :'value' => :'Float',
54
+ :'value_formula' => :'String',
50
55
  :'set_as_total' => :'BOOLEAN',
51
56
  :'invert_if_negative' => :'BOOLEAN',
52
57
  })
@@ -61,6 +66,10 @@ module AsposeSlidesCloud
61
66
  self.value = attributes[:'Value']
62
67
  end
63
68
 
69
+ if attributes.has_key?(:'ValueFormula')
70
+ self.value_formula = attributes[:'ValueFormula']
71
+ end
72
+
64
73
  if attributes.has_key?(:'SetAsTotal')
65
74
  self.set_as_total = attributes[:'SetAsTotal']
66
75
  end
@@ -99,6 +108,7 @@ module AsposeSlidesCloud
99
108
  three_d_format == o.three_d_format &&
100
109
  line_format == o.line_format &&
101
110
  value == o.value &&
111
+ value_formula == o.value_formula &&
102
112
  set_as_total == o.set_as_total &&
103
113
  invert_if_negative == o.invert_if_negative
104
114
  end
@@ -112,7 +122,7 @@ module AsposeSlidesCloud
112
122
  # Calculates hash code according to all attributes.
113
123
  # @return [Fixnum] Hash code
114
124
  def hash
115
- [fill_format, effect_format, three_d_format, line_format, value, set_as_total, invert_if_negative].hash
125
+ [fill_format, effect_format, three_d_format, line_format, value, value_formula, set_as_total, invert_if_negative].hash
116
126
  end
117
127
 
118
128
  # Builds the object from hash
@@ -31,6 +31,9 @@ module AsposeSlidesCloud
31
31
  # The number format for the series values.
32
32
  attr_accessor :number_format_of_values
33
33
 
34
+ # Data source type for values.
35
+ attr_accessor :data_source_for_values
36
+
34
37
  # True if inner points are shown. Applied to Waterfall series only.
35
38
  attr_accessor :show_connector_lines
36
39
 
@@ -76,6 +79,7 @@ module AsposeSlidesCloud
76
79
  super.merge({
77
80
  :'data_points' => :'DataPoints',
78
81
  :'number_format_of_values' => :'NumberFormatOfValues',
82
+ :'data_source_for_values' => :'DataSourceForValues',
79
83
  :'show_connector_lines' => :'ShowConnectorLines',
80
84
  :'quartile_method' => :'QuartileMethod',
81
85
  :'show_inner_points' => :'ShowInnerPoints',
@@ -90,6 +94,7 @@ module AsposeSlidesCloud
90
94
  super.merge({
91
95
  :'data_points' => :'Array<OneValueChartDataPoint>',
92
96
  :'number_format_of_values' => :'String',
97
+ :'data_source_for_values' => :'DataSource',
93
98
  :'show_connector_lines' => :'BOOLEAN',
94
99
  :'quartile_method' => :'String',
95
100
  :'show_inner_points' => :'BOOLEAN',
@@ -114,6 +119,10 @@ module AsposeSlidesCloud
114
119
  self.number_format_of_values = attributes[:'NumberFormatOfValues']
115
120
  end
116
121
 
122
+ if attributes.has_key?(:'DataSourceForValues')
123
+ self.data_source_for_values = attributes[:'DataSourceForValues']
124
+ end
125
+
117
126
  if attributes.has_key?(:'ShowConnectorLines')
118
127
  self.show_connector_lines = attributes[:'ShowConnectorLines']
119
128
  end
@@ -137,7 +146,7 @@ module AsposeSlidesCloud
137
146
  if attributes.has_key?(:'ShowOutlierPoints')
138
147
  self.show_outlier_points = attributes[:'ShowOutlierPoints']
139
148
  end
140
- self.data_point_type = "OneValue"
149
+ self.data_point_type = 'OneValue'
141
150
  end
142
151
 
143
152
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -173,6 +182,7 @@ module AsposeSlidesCloud
173
182
  self.class == o.class &&
174
183
  type == o.type &&
175
184
  name == o.name &&
185
+ data_source_for_series_name == o.data_source_for_series_name &&
176
186
  is_color_varied == o.is_color_varied &&
177
187
  inverted_solid_fill_color == o.inverted_solid_fill_color &&
178
188
  smooth == o.smooth &&
@@ -187,6 +197,7 @@ module AsposeSlidesCloud
187
197
  data_point_type == o.data_point_type &&
188
198
  data_points == o.data_points &&
189
199
  number_format_of_values == o.number_format_of_values &&
200
+ data_source_for_values == o.data_source_for_values &&
190
201
  show_connector_lines == o.show_connector_lines &&
191
202
  quartile_method == o.quartile_method &&
192
203
  show_inner_points == o.show_inner_points &&
@@ -204,7 +215,7 @@ module AsposeSlidesCloud
204
215
  # Calculates hash code according to all attributes.
205
216
  # @return [Fixnum] Hash code
206
217
  def hash
207
- [type, name, is_color_varied, inverted_solid_fill_color, smooth, plot_on_second_axis, order, invert_if_negative, explosion, marker, fill_format, effect_format, line_format, data_point_type, data_points, number_format_of_values, show_connector_lines, quartile_method, show_inner_points, show_mean_line, show_mean_markers, show_outlier_points].hash
218
+ [type, name, data_source_for_series_name, is_color_varied, inverted_solid_fill_color, smooth, plot_on_second_axis, order, invert_if_negative, explosion, marker, fill_format, effect_format, line_format, data_point_type, data_points, number_format_of_values, data_source_for_values, show_connector_lines, quartile_method, show_inner_points, show_mean_line, show_mean_markers, show_outlier_points].hash
208
219
  end
209
220
 
210
221
  # Builds the object from hash
@@ -81,7 +81,7 @@ module AsposeSlidesCloud
81
81
  if attributes.has_key?(:'Storage')
82
82
  self.storage = attributes[:'Storage']
83
83
  end
84
- self.type = "Path"
84
+ self.type = 'Path'
85
85
  end
86
86
 
87
87
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -81,7 +81,7 @@ module AsposeSlidesCloud
81
81
  if attributes.has_key?(:'Storage')
82
82
  self.storage = attributes[:'Storage']
83
83
  end
84
- self.type = "Path"
84
+ self.type = 'Path'
85
85
  end
86
86
 
87
87
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -90,7 +90,7 @@ module AsposeSlidesCloud
90
90
  if attributes.has_key?(:'Style')
91
91
  self.style = attributes[:'Style']
92
92
  end
93
- self.type = "Pattern"
93
+ self.type = 'Pattern'
94
94
  end
95
95
 
96
96
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -236,7 +236,7 @@ module AsposeSlidesCloud
236
236
  if attributes.has_key?(:'AccessPermissions')
237
237
  self.access_permissions = attributes[:'AccessPermissions']
238
238
  end
239
- self.format = "pdf"
239
+ self.format = 'pdf'
240
240
  end
241
241
 
242
242
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -155,7 +155,7 @@ module AsposeSlidesCloud
155
155
  self.image_transform_list = value
156
156
  end
157
157
  end
158
- self.type = "Picture"
158
+ self.type = 'Picture'
159
159
  end
160
160
 
161
161
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -72,7 +72,7 @@ module AsposeSlidesCloud
72
72
  if attributes.has_key?(:'PictureFillFormat')
73
73
  self.picture_fill_format = attributes[:'PictureFillFormat']
74
74
  end
75
- self.type = "PictureFrame"
75
+ self.type = 'PictureFrame'
76
76
  end
77
77
 
78
78
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -72,7 +72,7 @@ module AsposeSlidesCloud
72
72
  if attributes.has_key?(:'Conformance')
73
73
  self.conformance = attributes[:'Conformance']
74
74
  end
75
- self.format = "pptx"
75
+ self.format = 'pptx'
76
76
  end
77
77
 
78
78
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -99,7 +99,7 @@ module AsposeSlidesCloud
99
99
  if attributes.has_key?(:'Y2')
100
100
  self.y2 = attributes[:'Y2']
101
101
  end
102
- self.type = "QuadBezierTo"
102
+ self.type = 'QuadBezierTo'
103
103
  end
104
104
 
105
105
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -90,7 +90,7 @@ module AsposeSlidesCloud
90
90
  if attributes.has_key?(:'HideDegree')
91
91
  self.hide_degree = attributes[:'HideDegree']
92
92
  end
93
- self.type = "Radical"
93
+ self.type = 'Radical'
94
94
  end
95
95
 
96
96
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -72,7 +72,7 @@ module AsposeSlidesCloud
72
72
  if attributes.has_key?(:'ShapePath')
73
73
  self.shape_path = attributes[:'ShapePath']
74
74
  end
75
- self.type = "RemoveShape"
75
+ self.type = 'RemoveShape'
76
76
  end
77
77
 
78
78
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -72,7 +72,7 @@ module AsposeSlidesCloud
72
72
  if attributes.has_key?(:'Position')
73
73
  self.position = attributes[:'Position']
74
74
  end
75
- self.type = "RemoveSlide"
75
+ self.type = 'RemoveSlide'
76
76
  end
77
77
 
78
78
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -81,7 +81,7 @@ module AsposeSlidesCloud
81
81
  if attributes.has_key?(:'NewPosition')
82
82
  self.new_position = attributes[:'NewPosition']
83
83
  end
84
- self.type = "ReoderSlide"
84
+ self.type = 'ReoderSlide'
85
85
  end
86
86
 
87
87
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -99,7 +99,7 @@ module AsposeSlidesCloud
99
99
  if attributes.has_key?(:'SlidePosition')
100
100
  self.slide_position = attributes[:'SlidePosition']
101
101
  end
102
- self.type = "ReplaceText"
102
+ self.type = 'ReplaceText'
103
103
  end
104
104
 
105
105
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -72,7 +72,7 @@ module AsposeSlidesCloud
72
72
  if attributes.has_key?(:'Index')
73
73
  self.index = attributes[:'Index']
74
74
  end
75
- self.type = "Request"
75
+ self.type = 'Request'
76
76
  end
77
77
 
78
78
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -72,7 +72,7 @@ module AsposeSlidesCloud
72
72
  if attributes.has_key?(:'Position')
73
73
  self.position = attributes[:'Position']
74
74
  end
75
- self.type = "ResetSlide"
75
+ self.type = 'ResetSlide'
76
76
  end
77
77
 
78
78
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -63,7 +63,7 @@ module AsposeSlidesCloud
63
63
  # @param [Hash] attributes Model attributes in the form of hash
64
64
  def initialize(attributes = {})
65
65
  super
66
- self.type = "Response"
66
+ self.type = 'Response'
67
67
  end
68
68
 
69
69
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -99,7 +99,7 @@ module AsposeSlidesCloud
99
99
  if attributes.has_key?(:'AlignScripts')
100
100
  self.align_scripts = attributes[:'AlignScripts']
101
101
  end
102
- self.type = "RightSubSuperscriptElement"
102
+ self.type = 'RightSubSuperscriptElement'
103
103
  end
104
104
 
105
105
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -90,7 +90,7 @@ module AsposeSlidesCloud
90
90
  if attributes.has_key?(:'Options')
91
91
  self.options = attributes[:'Options']
92
92
  end
93
- self.type = "Save"
93
+ self.type = 'Save'
94
94
  end
95
95
 
96
96
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -99,7 +99,7 @@ module AsposeSlidesCloud
99
99
  if attributes.has_key?(:'Options')
100
100
  self.options = attributes[:'Options']
101
101
  end
102
- self.type = "SaveShape"
102
+ self.type = 'SaveShape'
103
103
  end
104
104
 
105
105
  # Show invalid properties with the reasons. Usually used together with valid?