aspose_slides_cloud 19.10.0 → 20.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +51 -2
- data/lib/aspose_slides_cloud.rb +7 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +1847 -407
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +742 -152
- data/lib/aspose_slides_cloud/api_client.rb +1 -0
- data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +0 -15
- data/lib/aspose_slides_cloud/models/axis.rb +0 -160
- data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +490 -0
- data/lib/aspose_slides_cloud/models/bubble_series.rb +2 -37
- data/lib/aspose_slides_cloud/models/chart.rb +3 -3
- data/lib/aspose_slides_cloud/models/chart_category.rb +237 -0
- data/lib/aspose_slides_cloud/models/chart_wall.rb +0 -10
- data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +205 -0
- data/lib/aspose_slides_cloud/models/document.rb +11 -1
- data/lib/aspose_slides_cloud/models/document_replace_result.rb +11 -1
- data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/legend.rb +0 -30
- data/lib/aspose_slides_cloud/models/line_format.rb +0 -35
- data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +205 -0
- data/lib/aspose_slides_cloud/models/one_value_series.rb +2 -37
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +33 -6
- data/lib/aspose_slides_cloud/models/plot_area.rb +0 -25
- data/lib/aspose_slides_cloud/models/save.rb +2 -2
- data/lib/aspose_slides_cloud/models/save_slide.rb +2 -2
- data/lib/aspose_slides_cloud/models/scatter_series.rb +2 -37
- data/lib/aspose_slides_cloud/models/series.rb +2 -37
- data/lib/aspose_slides_cloud/models/series_marker.rb +0 -10
- data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/table.rb +0 -40
- data/lib/aspose_slides_cloud/models/table_cell.rb +0 -40
- data/lib/aspose_slides_cloud/models/view_properties.rb +367 -0
- data/lib/aspose_slides_cloud/models/waterfall_series.rb +438 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +16468 -11925
- data/spec/extra/extra_spec.rb +5 -5
- data/spec/spec_utils.rb +1 -1
- data/testRules.json +53 -5
- metadata +8 -2
@@ -34,6 +34,9 @@ module AsposeSlidesCloud
|
|
34
34
|
# Link to Document properties.
|
35
35
|
attr_accessor :document_properties
|
36
36
|
|
37
|
+
# Link to Document properties.
|
38
|
+
attr_accessor :view_properties
|
39
|
+
|
37
40
|
# Link to slides collection.
|
38
41
|
attr_accessor :slides
|
39
42
|
|
@@ -52,6 +55,7 @@ module AsposeSlidesCloud
|
|
52
55
|
:'self_uri' => :'SelfUri',
|
53
56
|
:'alternate_links' => :'AlternateLinks',
|
54
57
|
:'document_properties' => :'DocumentProperties',
|
58
|
+
:'view_properties' => :'ViewProperties',
|
55
59
|
:'slides' => :'Slides',
|
56
60
|
:'images' => :'Images',
|
57
61
|
:'layout_slides' => :'LayoutSlides',
|
@@ -65,6 +69,7 @@ module AsposeSlidesCloud
|
|
65
69
|
:'self_uri' => :'ResourceUri',
|
66
70
|
:'alternate_links' => :'Array<ResourceUri>',
|
67
71
|
:'document_properties' => :'ResourceUriElement',
|
72
|
+
:'view_properties' => :'ResourceUriElement',
|
68
73
|
:'slides' => :'ResourceUriElement',
|
69
74
|
:'images' => :'ResourceUriElement',
|
70
75
|
:'layout_slides' => :'ResourceUriElement',
|
@@ -94,6 +99,10 @@ module AsposeSlidesCloud
|
|
94
99
|
self.document_properties = attributes[:'DocumentProperties']
|
95
100
|
end
|
96
101
|
|
102
|
+
if attributes.has_key?(:'ViewProperties')
|
103
|
+
self.view_properties = attributes[:'ViewProperties']
|
104
|
+
end
|
105
|
+
|
97
106
|
if attributes.has_key?(:'Slides')
|
98
107
|
self.slides = attributes[:'Slides']
|
99
108
|
end
|
@@ -132,6 +141,7 @@ module AsposeSlidesCloud
|
|
132
141
|
self_uri == o.self_uri &&
|
133
142
|
alternate_links == o.alternate_links &&
|
134
143
|
document_properties == o.document_properties &&
|
144
|
+
view_properties == o.view_properties &&
|
135
145
|
slides == o.slides &&
|
136
146
|
images == o.images &&
|
137
147
|
layout_slides == o.layout_slides &&
|
@@ -147,7 +157,7 @@ module AsposeSlidesCloud
|
|
147
157
|
# Calculates hash code according to all attributes.
|
148
158
|
# @return [Fixnum] Hash code
|
149
159
|
def hash
|
150
|
-
[self_uri, alternate_links, document_properties, slides, images, layout_slides, master_slides].hash
|
160
|
+
[self_uri, alternate_links, document_properties, view_properties, slides, images, layout_slides, master_slides].hash
|
151
161
|
end
|
152
162
|
|
153
163
|
# Builds the object from hash
|
@@ -34,6 +34,9 @@ module AsposeSlidesCloud
|
|
34
34
|
# Link to Document properties.
|
35
35
|
attr_accessor :document_properties
|
36
36
|
|
37
|
+
# Link to Document properties.
|
38
|
+
attr_accessor :view_properties
|
39
|
+
|
37
40
|
# Link to slides collection.
|
38
41
|
attr_accessor :slides
|
39
42
|
|
@@ -55,6 +58,7 @@ module AsposeSlidesCloud
|
|
55
58
|
:'self_uri' => :'SelfUri',
|
56
59
|
:'alternate_links' => :'AlternateLinks',
|
57
60
|
:'document_properties' => :'DocumentProperties',
|
61
|
+
:'view_properties' => :'ViewProperties',
|
58
62
|
:'slides' => :'Slides',
|
59
63
|
:'images' => :'Images',
|
60
64
|
:'layout_slides' => :'LayoutSlides',
|
@@ -69,6 +73,7 @@ module AsposeSlidesCloud
|
|
69
73
|
:'self_uri' => :'ResourceUri',
|
70
74
|
:'alternate_links' => :'Array<ResourceUri>',
|
71
75
|
:'document_properties' => :'ResourceUriElement',
|
76
|
+
:'view_properties' => :'ResourceUriElement',
|
72
77
|
:'slides' => :'ResourceUriElement',
|
73
78
|
:'images' => :'ResourceUriElement',
|
74
79
|
:'layout_slides' => :'ResourceUriElement',
|
@@ -99,6 +104,10 @@ module AsposeSlidesCloud
|
|
99
104
|
self.document_properties = attributes[:'DocumentProperties']
|
100
105
|
end
|
101
106
|
|
107
|
+
if attributes.has_key?(:'ViewProperties')
|
108
|
+
self.view_properties = attributes[:'ViewProperties']
|
109
|
+
end
|
110
|
+
|
102
111
|
if attributes.has_key?(:'Slides')
|
103
112
|
self.slides = attributes[:'Slides']
|
104
113
|
end
|
@@ -146,6 +155,7 @@ module AsposeSlidesCloud
|
|
146
155
|
self_uri == o.self_uri &&
|
147
156
|
alternate_links == o.alternate_links &&
|
148
157
|
document_properties == o.document_properties &&
|
158
|
+
view_properties == o.view_properties &&
|
149
159
|
slides == o.slides &&
|
150
160
|
images == o.images &&
|
151
161
|
layout_slides == o.layout_slides &&
|
@@ -162,7 +172,7 @@ module AsposeSlidesCloud
|
|
162
172
|
# Calculates hash code according to all attributes.
|
163
173
|
# @return [Fixnum] Hash code
|
164
174
|
def hash
|
165
|
-
[self_uri, alternate_links, document_properties, slides, images, layout_slides, master_slides, matches].hash
|
175
|
+
[self_uri, alternate_links, document_properties, view_properties, slides, images, layout_slides, master_slides, matches].hash
|
166
176
|
end
|
167
177
|
|
168
178
|
# Builds the object from hash
|
@@ -153,44 +153,14 @@ module AsposeSlidesCloud
|
|
153
153
|
# @return Array for valid properties with the reasons
|
154
154
|
def list_invalid_properties
|
155
155
|
invalid_properties = Array.new
|
156
|
-
if @position.nil?
|
157
|
-
invalid_properties.push('invalid value for "position", position cannot be nil.')
|
158
|
-
end
|
159
|
-
|
160
|
-
if @x.nil?
|
161
|
-
invalid_properties.push('invalid value for "x", x cannot be nil.')
|
162
|
-
end
|
163
|
-
|
164
|
-
if @y.nil?
|
165
|
-
invalid_properties.push('invalid value for "y", y cannot be nil.')
|
166
|
-
end
|
167
|
-
|
168
|
-
if @width.nil?
|
169
|
-
invalid_properties.push('invalid value for "width", width cannot be nil.')
|
170
|
-
end
|
171
|
-
|
172
|
-
if @height.nil?
|
173
|
-
invalid_properties.push('invalid value for "height", height cannot be nil.')
|
174
|
-
end
|
175
|
-
|
176
|
-
if @overlay.nil?
|
177
|
-
invalid_properties.push('invalid value for "overlay", overlay cannot be nil.')
|
178
|
-
end
|
179
|
-
|
180
156
|
invalid_properties
|
181
157
|
end
|
182
158
|
|
183
159
|
# Check to see if the all the properties in the model are valid
|
184
160
|
# @return true if the model is valid
|
185
161
|
def valid?
|
186
|
-
return false if @position.nil?
|
187
162
|
position_validator = EnumAttributeValidator.new('String', ['Bottom', 'Left', 'Right', 'Top', 'TopRight'])
|
188
163
|
return false unless position_validator.valid?(@position)
|
189
|
-
return false if @x.nil?
|
190
|
-
return false if @y.nil?
|
191
|
-
return false if @width.nil?
|
192
|
-
return false if @height.nil?
|
193
|
-
return false if @overlay.nil?
|
194
164
|
true
|
195
165
|
end
|
196
166
|
|
@@ -171,57 +171,22 @@ module AsposeSlidesCloud
|
|
171
171
|
# @return Array for valid properties with the reasons
|
172
172
|
def list_invalid_properties
|
173
173
|
invalid_properties = Array.new
|
174
|
-
if @alignment.nil?
|
175
|
-
invalid_properties.push('invalid value for "alignment", alignment cannot be nil.')
|
176
|
-
end
|
177
|
-
|
178
|
-
if @cap_style.nil?
|
179
|
-
invalid_properties.push('invalid value for "cap_style", cap_style cannot be nil.')
|
180
|
-
end
|
181
|
-
|
182
|
-
if @dash_style.nil?
|
183
|
-
invalid_properties.push('invalid value for "dash_style", dash_style cannot be nil.')
|
184
|
-
end
|
185
|
-
|
186
|
-
if @join_style.nil?
|
187
|
-
invalid_properties.push('invalid value for "join_style", join_style cannot be nil.')
|
188
|
-
end
|
189
|
-
|
190
|
-
if @style.nil?
|
191
|
-
invalid_properties.push('invalid value for "style", style cannot be nil.')
|
192
|
-
end
|
193
|
-
|
194
|
-
if @miter_limit.nil?
|
195
|
-
invalid_properties.push('invalid value for "miter_limit", miter_limit cannot be nil.')
|
196
|
-
end
|
197
|
-
|
198
|
-
if @width.nil?
|
199
|
-
invalid_properties.push('invalid value for "width", width cannot be nil.')
|
200
|
-
end
|
201
|
-
|
202
174
|
invalid_properties
|
203
175
|
end
|
204
176
|
|
205
177
|
# Check to see if the all the properties in the model are valid
|
206
178
|
# @return true if the model is valid
|
207
179
|
def valid?
|
208
|
-
return false if @alignment.nil?
|
209
180
|
alignment_validator = EnumAttributeValidator.new('String', ['Center', 'Inset', 'NotDefined'])
|
210
181
|
return false unless alignment_validator.valid?(@alignment)
|
211
|
-
return false if @cap_style.nil?
|
212
182
|
cap_style_validator = EnumAttributeValidator.new('String', ['Round', 'Square', 'Flat', 'NotDefined'])
|
213
183
|
return false unless cap_style_validator.valid?(@cap_style)
|
214
|
-
return false if @dash_style.nil?
|
215
184
|
dash_style_validator = EnumAttributeValidator.new('String', ['Solid', 'Dot', 'Dash', 'LargeDash', 'DashDot', 'LargeDashDot', 'LargeDashDotDot', 'SystemDash', 'SystemDot', 'SystemDashDot', 'SystemDashDotDot', 'Custom', 'NotDefined'])
|
216
185
|
return false unless dash_style_validator.valid?(@dash_style)
|
217
|
-
return false if @join_style.nil?
|
218
186
|
join_style_validator = EnumAttributeValidator.new('String', ['Round', 'Bevel', 'Miter', 'NotDefined'])
|
219
187
|
return false unless join_style_validator.valid?(@join_style)
|
220
|
-
return false if @style.nil?
|
221
188
|
style_validator = EnumAttributeValidator.new('String', ['Single', 'ThinThin', 'ThinThick', 'ThickThin', 'ThickBetweenThin', 'NotDefined'])
|
222
189
|
return false unless style_validator.valid?(@style)
|
223
|
-
return false if @miter_limit.nil?
|
224
|
-
return false if @width.nil?
|
225
190
|
true
|
226
191
|
end
|
227
192
|
|
@@ -0,0 +1,205 @@
|
|
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
|
+
# The sizing of the slide region.
|
27
|
+
class NormalViewRestoredProperties
|
28
|
+
# True if the size of the side content region should compensate for the new size when resizing the window containing the view within the application.
|
29
|
+
attr_accessor :auto_adjust
|
30
|
+
|
31
|
+
# The size of the slide region.
|
32
|
+
attr_accessor :dimension_size
|
33
|
+
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
35
|
+
def self.attribute_map
|
36
|
+
{
|
37
|
+
:'auto_adjust' => :'AutoAdjust',
|
38
|
+
:'dimension_size' => :'DimensionSize'
|
39
|
+
}
|
40
|
+
end
|
41
|
+
|
42
|
+
# Attribute type mapping.
|
43
|
+
def self.swagger_types
|
44
|
+
{
|
45
|
+
:'auto_adjust' => :'BOOLEAN',
|
46
|
+
:'dimension_size' => :'Float'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
return unless attributes.is_a?(Hash)
|
54
|
+
|
55
|
+
# convert string to symbol for hash key
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
57
|
+
|
58
|
+
if attributes.has_key?(:'AutoAdjust')
|
59
|
+
self.auto_adjust = attributes[:'AutoAdjust']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'DimensionSize')
|
63
|
+
self.dimension_size = attributes[:'DimensionSize']
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
68
|
+
# @return Array for valid properties with the reasons
|
69
|
+
def list_invalid_properties
|
70
|
+
invalid_properties = Array.new
|
71
|
+
invalid_properties
|
72
|
+
end
|
73
|
+
|
74
|
+
# Check to see if the all the properties in the model are valid
|
75
|
+
# @return true if the model is valid
|
76
|
+
def valid?
|
77
|
+
true
|
78
|
+
end
|
79
|
+
|
80
|
+
# Checks equality by comparing each attribute.
|
81
|
+
# @param [Object] Object to be compared
|
82
|
+
def ==(o)
|
83
|
+
return true if self.equal?(o)
|
84
|
+
self.class == o.class &&
|
85
|
+
auto_adjust == o.auto_adjust &&
|
86
|
+
dimension_size == o.dimension_size
|
87
|
+
end
|
88
|
+
|
89
|
+
# @see the `==` method
|
90
|
+
# @param [Object] Object to be compared
|
91
|
+
def eql?(o)
|
92
|
+
self == o
|
93
|
+
end
|
94
|
+
|
95
|
+
# Calculates hash code according to all attributes.
|
96
|
+
# @return [Fixnum] Hash code
|
97
|
+
def hash
|
98
|
+
[auto_adjust, dimension_size].hash
|
99
|
+
end
|
100
|
+
|
101
|
+
# Builds the object from hash
|
102
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
103
|
+
# @return [Object] Returns the model itself
|
104
|
+
def build_from_hash(attributes)
|
105
|
+
return nil unless attributes.is_a?(Hash)
|
106
|
+
self.class.swagger_types.each_pair do |key, type|
|
107
|
+
if type =~ /\AArray<(.*)>/i
|
108
|
+
# check to ensure the input is an array given that the the attribute
|
109
|
+
# is documented as an array but the input is not
|
110
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
111
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
112
|
+
end
|
113
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
114
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
115
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
116
|
+
end
|
117
|
+
|
118
|
+
self
|
119
|
+
end
|
120
|
+
|
121
|
+
# Deserializes the data based on type
|
122
|
+
# @param string type Data type
|
123
|
+
# @param string value Value to be deserialized
|
124
|
+
# @return [Object] Deserialized data
|
125
|
+
def _deserialize(type, value)
|
126
|
+
case type.to_sym
|
127
|
+
when :DateTime
|
128
|
+
DateTime.parse(value)
|
129
|
+
when :Date
|
130
|
+
Date.parse(value)
|
131
|
+
when :String
|
132
|
+
value.to_s
|
133
|
+
when :Integer
|
134
|
+
value.to_i
|
135
|
+
when :Float
|
136
|
+
value.to_f
|
137
|
+
when :BOOLEAN
|
138
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
139
|
+
true
|
140
|
+
else
|
141
|
+
false
|
142
|
+
end
|
143
|
+
when :Object
|
144
|
+
# generic object (usually a Hash), return directly
|
145
|
+
value
|
146
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
147
|
+
inner_type = Regexp.last_match[:inner_type]
|
148
|
+
value.map { |v| _deserialize(inner_type, v) }
|
149
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
150
|
+
k_type = Regexp.last_match[:k_type]
|
151
|
+
v_type = Regexp.last_match[:v_type]
|
152
|
+
{}.tap do |hash|
|
153
|
+
value.each do |k, v|
|
154
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
155
|
+
end
|
156
|
+
end
|
157
|
+
else # model
|
158
|
+
temp_model = AsposeSlidesCloud.const_get(type).new
|
159
|
+
temp_model.build_from_hash(value)
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
# Returns the string representation of the object
|
164
|
+
# @return [String] String presentation of the object
|
165
|
+
def to_s
|
166
|
+
to_hash.to_s
|
167
|
+
end
|
168
|
+
|
169
|
+
# to_body is an alias to to_hash (backward compatibility)
|
170
|
+
# @return [Hash] Returns the object in the form of hash
|
171
|
+
def to_body
|
172
|
+
to_hash
|
173
|
+
end
|
174
|
+
|
175
|
+
# Returns the object in the form of hash
|
176
|
+
# @return [Hash] Returns the object in the form of hash
|
177
|
+
def to_hash
|
178
|
+
hash = {}
|
179
|
+
self.class.attribute_map.each_pair do |attr, param|
|
180
|
+
value = self.send(attr)
|
181
|
+
next if value.nil?
|
182
|
+
hash[param] = _to_hash(value)
|
183
|
+
end
|
184
|
+
hash
|
185
|
+
end
|
186
|
+
|
187
|
+
# Outputs non-array value in the form of hash
|
188
|
+
# For object, use to_hash. Otherwise, just return the value
|
189
|
+
# @param [Object] value Any valid value
|
190
|
+
# @return [Hash] Returns the value in the form of hash
|
191
|
+
def _to_hash(value)
|
192
|
+
if value.is_a?(Array)
|
193
|
+
value.compact.map { |v| _to_hash(v) }
|
194
|
+
elsif value.is_a?(Hash)
|
195
|
+
{}.tap do |hash|
|
196
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
197
|
+
end
|
198
|
+
elsif value.respond_to? :to_hash
|
199
|
+
value.to_hash
|
200
|
+
else
|
201
|
+
value
|
202
|
+
end
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
@@ -245,34 +245,6 @@ module AsposeSlidesCloud
|
|
245
245
|
# @return Array for valid properties with the reasons
|
246
246
|
def list_invalid_properties
|
247
247
|
invalid_properties = Array.new
|
248
|
-
if @type.nil?
|
249
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
250
|
-
end
|
251
|
-
|
252
|
-
if @is_color_varied.nil?
|
253
|
-
invalid_properties.push('invalid value for "is_color_varied", is_color_varied cannot be nil.')
|
254
|
-
end
|
255
|
-
|
256
|
-
if @smooth.nil?
|
257
|
-
invalid_properties.push('invalid value for "smooth", smooth cannot be nil.')
|
258
|
-
end
|
259
|
-
|
260
|
-
if @plot_on_second_axis.nil?
|
261
|
-
invalid_properties.push('invalid value for "plot_on_second_axis", plot_on_second_axis cannot be nil.')
|
262
|
-
end
|
263
|
-
|
264
|
-
if @order.nil?
|
265
|
-
invalid_properties.push('invalid value for "order", order cannot be nil.')
|
266
|
-
end
|
267
|
-
|
268
|
-
if @invert_if_negative.nil?
|
269
|
-
invalid_properties.push('invalid value for "invert_if_negative", invert_if_negative cannot be nil.')
|
270
|
-
end
|
271
|
-
|
272
|
-
if @explosion.nil?
|
273
|
-
invalid_properties.push('invalid value for "explosion", explosion cannot be nil.')
|
274
|
-
end
|
275
|
-
|
276
248
|
if @data_point_type.nil?
|
277
249
|
invalid_properties.push('invalid value for "data_point_type", data_point_type cannot be nil.')
|
278
250
|
end
|
@@ -283,15 +255,8 @@ module AsposeSlidesCloud
|
|
283
255
|
# Check to see if the all the properties in the model are valid
|
284
256
|
# @return true if the model is valid
|
285
257
|
def valid?
|
286
|
-
|
287
|
-
type_validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes'])
|
258
|
+
type_validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes', 'Treemap', 'Sunburst', 'Histogram', 'ParetoLine', 'BoxAndWhisker', 'Waterfall', 'Funnel'])
|
288
259
|
return false unless type_validator.valid?(@type)
|
289
|
-
return false if @is_color_varied.nil?
|
290
|
-
return false if @smooth.nil?
|
291
|
-
return false if @plot_on_second_axis.nil?
|
292
|
-
return false if @order.nil?
|
293
|
-
return false if @invert_if_negative.nil?
|
294
|
-
return false if @explosion.nil?
|
295
260
|
return false if @data_point_type.nil?
|
296
261
|
data_point_type_validator = EnumAttributeValidator.new('String', ['OneValue', 'Scatter', 'Bubble'])
|
297
262
|
return false unless data_point_type_validator.valid?(@data_point_type)
|
@@ -301,7 +266,7 @@ module AsposeSlidesCloud
|
|
301
266
|
# Custom attribute writer method checking allowed values (enum).
|
302
267
|
# @param [Object] type Object to be assigned
|
303
268
|
def type=(type)
|
304
|
-
validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes'])
|
269
|
+
validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes', 'Treemap', 'Sunburst', 'Histogram', 'ParetoLine', 'BoxAndWhisker', 'Waterfall', 'Funnel'])
|
305
270
|
unless validator.valid?(type)
|
306
271
|
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
307
272
|
end
|