aspose_slides_cloud 22.4.0 → 22.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/TestData/oleObject.xlsx +0 -0
- data/TestData/test.pptx +0 -0
- data/lib/aspose_slides_cloud/models/{waterfall_series.rb → alpha_bi_level_effect.rb} +16 -26
- data/lib/aspose_slides_cloud/models/alpha_ceiling_effect.rb +223 -0
- data/lib/aspose_slides_cloud/models/alpha_floor_effect.rb +223 -0
- data/lib/aspose_slides_cloud/models/alpha_inverse_effect.rb +223 -0
- data/lib/aspose_slides_cloud/models/alpha_modulate_effect.rb +223 -0
- data/lib/aspose_slides_cloud/models/alpha_modulate_fixed_effect.rb +238 -0
- data/lib/aspose_slides_cloud/models/alpha_replace_effect.rb +238 -0
- data/lib/aspose_slides_cloud/models/bi_level_effect.rb +238 -0
- data/lib/aspose_slides_cloud/models/blur_image_effect.rb +253 -0
- data/lib/aspose_slides_cloud/models/color_change_effect.rb +243 -0
- data/lib/aspose_slides_cloud/models/color_replace_effect.rb +233 -0
- data/lib/aspose_slides_cloud/models/duotone_effect.rb +243 -0
- data/lib/aspose_slides_cloud/models/{box_and_whisker_series.rb → fill_overlay_image_effect.rb} +31 -71
- data/lib/aspose_slides_cloud/models/{waterfall_chart_data_point.rb → gray_scale_effect.rb} +26 -13
- data/lib/aspose_slides_cloud/models/hsl_effect.rb +268 -0
- data/lib/aspose_slides_cloud/models/image_transform_effect.rb +244 -0
- data/lib/aspose_slides_cloud/models/luminance_effect.rb +253 -0
- data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +12 -2
- data/lib/aspose_slides_cloud/models/one_value_series.rb +74 -2
- data/lib/aspose_slides_cloud/models/picture_fill.rb +14 -2
- data/lib/aspose_slides_cloud/models/resource_uri.rb +22 -2
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +12 -2
- data/lib/aspose_slides_cloud/models/tint_effect.rb +253 -0
- data/lib/aspose_slides_cloud/models/video_frame.rb +12 -2
- data/lib/aspose_slides_cloud/type_registry.rb +35 -6
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +18 -3
- data/testRules.json +1 -1
- metadata +21 -5
@@ -0,0 +1,253 @@
|
|
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 a Luminance effect.
|
27
|
+
class LuminanceEffect < ImageTransformEffect
|
28
|
+
# Brightness
|
29
|
+
attr_accessor :brightness
|
30
|
+
|
31
|
+
# Contrast
|
32
|
+
attr_accessor :contrast
|
33
|
+
|
34
|
+
class EnumAttributeValidator
|
35
|
+
attr_reader :datatype
|
36
|
+
attr_reader :allowable_values
|
37
|
+
|
38
|
+
def initialize(datatype, allowable_values)
|
39
|
+
@allowable_values = allowable_values.map do |value|
|
40
|
+
case datatype.to_s
|
41
|
+
when /Integer/i
|
42
|
+
value.to_i
|
43
|
+
when /Float/i
|
44
|
+
value.to_f
|
45
|
+
else
|
46
|
+
value
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
def valid?(value)
|
52
|
+
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
57
|
+
def self.attribute_map
|
58
|
+
super.merge({
|
59
|
+
:'brightness' => :'Brightness',
|
60
|
+
:'contrast' => :'Contrast',
|
61
|
+
})
|
62
|
+
end
|
63
|
+
|
64
|
+
# Attribute type mapping.
|
65
|
+
def self.swagger_types
|
66
|
+
super.merge({
|
67
|
+
:'brightness' => :'Float',
|
68
|
+
:'contrast' => :'Float',
|
69
|
+
})
|
70
|
+
end
|
71
|
+
|
72
|
+
# Initializes the object
|
73
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
74
|
+
def initialize(attributes = {})
|
75
|
+
super
|
76
|
+
|
77
|
+
if attributes.has_key?(:'Brightness')
|
78
|
+
self.brightness = attributes[:'Brightness']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.has_key?(:'Contrast')
|
82
|
+
self.contrast = attributes[:'Contrast']
|
83
|
+
end
|
84
|
+
self.type = "Luminance"
|
85
|
+
end
|
86
|
+
|
87
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
88
|
+
# @return Array for valid properties with the reasons
|
89
|
+
def list_invalid_properties
|
90
|
+
invalid_properties = super
|
91
|
+
if @brightness.nil?
|
92
|
+
invalid_properties.push('invalid value for "brightness", brightness cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @contrast.nil?
|
96
|
+
invalid_properties.push('invalid value for "contrast", contrast cannot be nil.')
|
97
|
+
end
|
98
|
+
|
99
|
+
invalid_properties
|
100
|
+
end
|
101
|
+
|
102
|
+
# Check to see if the all the properties in the model are valid
|
103
|
+
# @return true if the model is valid
|
104
|
+
def valid?
|
105
|
+
return false if !super
|
106
|
+
return false if @brightness.nil?
|
107
|
+
return false if @contrast.nil?
|
108
|
+
true
|
109
|
+
end
|
110
|
+
|
111
|
+
# Checks equality by comparing each attribute.
|
112
|
+
# @param [Object] Object to be compared
|
113
|
+
def ==(o)
|
114
|
+
return true if self.equal?(o)
|
115
|
+
self.class == o.class &&
|
116
|
+
type == o.type &&
|
117
|
+
brightness == o.brightness &&
|
118
|
+
contrast == o.contrast
|
119
|
+
end
|
120
|
+
|
121
|
+
# @see the `==` method
|
122
|
+
# @param [Object] Object to be compared
|
123
|
+
def eql?(o)
|
124
|
+
self == o
|
125
|
+
end
|
126
|
+
|
127
|
+
# Calculates hash code according to all attributes.
|
128
|
+
# @return [Fixnum] Hash code
|
129
|
+
def hash
|
130
|
+
[type, brightness, contrast].hash
|
131
|
+
end
|
132
|
+
|
133
|
+
# Builds the object from hash
|
134
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
135
|
+
# @return [Object] Returns the model itself
|
136
|
+
def build_from_hash(attributes)
|
137
|
+
return nil unless attributes.is_a?(Hash)
|
138
|
+
self.class.swagger_types.each_pair do |key, type|
|
139
|
+
mapKey = self.class.attribute_map[key]
|
140
|
+
if !mapKey.nil?
|
141
|
+
val = attributes[mapKey]
|
142
|
+
if val.nil?
|
143
|
+
mapKeyString = mapKey.to_s
|
144
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
145
|
+
mapKey = mapKeyString.to_sym
|
146
|
+
val = attributes[mapKey]
|
147
|
+
end
|
148
|
+
if !val.nil?
|
149
|
+
if type =~ /\AArray<(.*)>/i
|
150
|
+
# check to ensure the input is an array given that the the attribute
|
151
|
+
# is documented as an array but the input is not
|
152
|
+
if val.is_a?(Array)
|
153
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
154
|
+
end
|
155
|
+
else
|
156
|
+
self.send("#{key}=", _deserialize(type, val))
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
self
|
163
|
+
end
|
164
|
+
|
165
|
+
# Deserializes the data based on type
|
166
|
+
# @param string type Data type
|
167
|
+
# @param string value Value to be deserialized
|
168
|
+
# @return [Object] Deserialized data
|
169
|
+
def _deserialize(type, value)
|
170
|
+
case type.to_sym
|
171
|
+
when :DateTime
|
172
|
+
DateTime.parse(value)
|
173
|
+
when :Date
|
174
|
+
Date.parse(value)
|
175
|
+
when :String
|
176
|
+
value.to_s
|
177
|
+
when :Integer
|
178
|
+
value.to_i
|
179
|
+
when :Float
|
180
|
+
value.to_f
|
181
|
+
when :BOOLEAN
|
182
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
183
|
+
true
|
184
|
+
else
|
185
|
+
false
|
186
|
+
end
|
187
|
+
when :Object
|
188
|
+
# generic object (usually a Hash), return directly
|
189
|
+
value
|
190
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
191
|
+
inner_type = Regexp.last_match[:inner_type]
|
192
|
+
value.map { |v| _deserialize(inner_type, v) }
|
193
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
194
|
+
k_type = Regexp.last_match[:k_type]
|
195
|
+
v_type = Regexp.last_match[:v_type]
|
196
|
+
{}.tap do |hash|
|
197
|
+
value.each do |k, v|
|
198
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
199
|
+
end
|
200
|
+
end
|
201
|
+
else # model
|
202
|
+
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
203
|
+
if registry_type
|
204
|
+
type = registry_type
|
205
|
+
end
|
206
|
+
temp_model = AsposeSlidesCloud.const_get(type).new
|
207
|
+
temp_model.build_from_hash(value)
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
# Returns the string representation of the object
|
212
|
+
# @return [String] String presentation of the object
|
213
|
+
def to_s
|
214
|
+
to_hash.to_s
|
215
|
+
end
|
216
|
+
|
217
|
+
# to_body is an alias to to_hash (backward compatibility)
|
218
|
+
# @return [Hash] Returns the object in the form of hash
|
219
|
+
def to_body
|
220
|
+
to_hash
|
221
|
+
end
|
222
|
+
|
223
|
+
# Returns the object in the form of hash
|
224
|
+
# @return [Hash] Returns the object in the form of hash
|
225
|
+
def to_hash
|
226
|
+
hash = {}
|
227
|
+
self.class.attribute_map.each_pair do |attr, param|
|
228
|
+
value = self.send(attr)
|
229
|
+
next if value.nil?
|
230
|
+
hash[param] = _to_hash(value)
|
231
|
+
end
|
232
|
+
hash
|
233
|
+
end
|
234
|
+
|
235
|
+
# Outputs non-array value in the form of hash
|
236
|
+
# For object, use to_hash. Otherwise, just return the value
|
237
|
+
# @param [Object] value Any valid value
|
238
|
+
# @return [Hash] Returns the value in the form of hash
|
239
|
+
def _to_hash(value)
|
240
|
+
if value.is_a?(Array)
|
241
|
+
value.compact.map { |v| _to_hash(v) }
|
242
|
+
elsif value.is_a?(Hash)
|
243
|
+
{}.tap do |hash|
|
244
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
245
|
+
end
|
246
|
+
elsif value.respond_to? :to_hash
|
247
|
+
value.to_hash
|
248
|
+
else
|
249
|
+
value
|
250
|
+
end
|
251
|
+
end
|
252
|
+
end
|
253
|
+
end
|
@@ -28,10 +28,14 @@ module AsposeSlidesCloud
|
|
28
28
|
# Value.
|
29
29
|
attr_accessor :value
|
30
30
|
|
31
|
+
# SetAsTotal. Applied to Waterfall data points only.
|
32
|
+
attr_accessor :set_as_total
|
33
|
+
|
31
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
35
|
def self.attribute_map
|
33
36
|
super.merge({
|
34
37
|
:'value' => :'Value',
|
38
|
+
:'set_as_total' => :'SetAsTotal',
|
35
39
|
})
|
36
40
|
end
|
37
41
|
|
@@ -39,6 +43,7 @@ module AsposeSlidesCloud
|
|
39
43
|
def self.swagger_types
|
40
44
|
super.merge({
|
41
45
|
:'value' => :'Float',
|
46
|
+
:'set_as_total' => :'BOOLEAN',
|
42
47
|
})
|
43
48
|
end
|
44
49
|
|
@@ -50,6 +55,10 @@ module AsposeSlidesCloud
|
|
50
55
|
if attributes.has_key?(:'Value')
|
51
56
|
self.value = attributes[:'Value']
|
52
57
|
end
|
58
|
+
|
59
|
+
if attributes.has_key?(:'SetAsTotal')
|
60
|
+
self.set_as_total = attributes[:'SetAsTotal']
|
61
|
+
end
|
53
62
|
end
|
54
63
|
|
55
64
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -76,7 +85,8 @@ module AsposeSlidesCloud
|
|
76
85
|
def ==(o)
|
77
86
|
return true if self.equal?(o)
|
78
87
|
self.class == o.class &&
|
79
|
-
value == o.value
|
88
|
+
value == o.value &&
|
89
|
+
set_as_total == o.set_as_total
|
80
90
|
end
|
81
91
|
|
82
92
|
# @see the `==` method
|
@@ -88,7 +98,7 @@ module AsposeSlidesCloud
|
|
88
98
|
# Calculates hash code according to all attributes.
|
89
99
|
# @return [Fixnum] Hash code
|
90
100
|
def hash
|
91
|
-
[value].hash
|
101
|
+
[value, set_as_total].hash
|
92
102
|
end
|
93
103
|
|
94
104
|
# Builds the object from hash
|
@@ -31,6 +31,24 @@ module AsposeSlidesCloud
|
|
31
31
|
# The number format for the series values.
|
32
32
|
attr_accessor :number_format_of_values
|
33
33
|
|
34
|
+
# True if inner points are shown. Applied to Waterfall series only.
|
35
|
+
attr_accessor :show_connector_lines
|
36
|
+
|
37
|
+
# Quartile method. Applied to BoxAndWhisker series only.
|
38
|
+
attr_accessor :quartile_method
|
39
|
+
|
40
|
+
# True if inner points are shown. Applied to BoxAndWhisker series only.
|
41
|
+
attr_accessor :show_inner_points
|
42
|
+
|
43
|
+
# True if mean line is shown. Applied to BoxAndWhisker series only.
|
44
|
+
attr_accessor :show_mean_line
|
45
|
+
|
46
|
+
# True if mean markers are shown. Applied to BoxAndWhisker series only.
|
47
|
+
attr_accessor :show_mean_markers
|
48
|
+
|
49
|
+
# True if outlier points are shown. Applied to BoxAndWhisker series only.
|
50
|
+
attr_accessor :show_outlier_points
|
51
|
+
|
34
52
|
class EnumAttributeValidator
|
35
53
|
attr_reader :datatype
|
36
54
|
attr_reader :allowable_values
|
@@ -58,6 +76,12 @@ module AsposeSlidesCloud
|
|
58
76
|
super.merge({
|
59
77
|
:'data_points' => :'DataPoints',
|
60
78
|
:'number_format_of_values' => :'NumberFormatOfValues',
|
79
|
+
:'show_connector_lines' => :'ShowConnectorLines',
|
80
|
+
:'quartile_method' => :'QuartileMethod',
|
81
|
+
:'show_inner_points' => :'ShowInnerPoints',
|
82
|
+
:'show_mean_line' => :'ShowMeanLine',
|
83
|
+
:'show_mean_markers' => :'ShowMeanMarkers',
|
84
|
+
:'show_outlier_points' => :'ShowOutlierPoints',
|
61
85
|
})
|
62
86
|
end
|
63
87
|
|
@@ -66,6 +90,12 @@ module AsposeSlidesCloud
|
|
66
90
|
super.merge({
|
67
91
|
:'data_points' => :'Array<OneValueChartDataPoint>',
|
68
92
|
:'number_format_of_values' => :'String',
|
93
|
+
:'show_connector_lines' => :'BOOLEAN',
|
94
|
+
:'quartile_method' => :'String',
|
95
|
+
:'show_inner_points' => :'BOOLEAN',
|
96
|
+
:'show_mean_line' => :'BOOLEAN',
|
97
|
+
:'show_mean_markers' => :'BOOLEAN',
|
98
|
+
:'show_outlier_points' => :'BOOLEAN',
|
69
99
|
})
|
70
100
|
end
|
71
101
|
|
@@ -83,6 +113,30 @@ module AsposeSlidesCloud
|
|
83
113
|
if attributes.has_key?(:'NumberFormatOfValues')
|
84
114
|
self.number_format_of_values = attributes[:'NumberFormatOfValues']
|
85
115
|
end
|
116
|
+
|
117
|
+
if attributes.has_key?(:'ShowConnectorLines')
|
118
|
+
self.show_connector_lines = attributes[:'ShowConnectorLines']
|
119
|
+
end
|
120
|
+
|
121
|
+
if attributes.has_key?(:'QuartileMethod')
|
122
|
+
self.quartile_method = attributes[:'QuartileMethod']
|
123
|
+
end
|
124
|
+
|
125
|
+
if attributes.has_key?(:'ShowInnerPoints')
|
126
|
+
self.show_inner_points = attributes[:'ShowInnerPoints']
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.has_key?(:'ShowMeanLine')
|
130
|
+
self.show_mean_line = attributes[:'ShowMeanLine']
|
131
|
+
end
|
132
|
+
|
133
|
+
if attributes.has_key?(:'ShowMeanMarkers')
|
134
|
+
self.show_mean_markers = attributes[:'ShowMeanMarkers']
|
135
|
+
end
|
136
|
+
|
137
|
+
if attributes.has_key?(:'ShowOutlierPoints')
|
138
|
+
self.show_outlier_points = attributes[:'ShowOutlierPoints']
|
139
|
+
end
|
86
140
|
self.data_point_type = "OneValue"
|
87
141
|
end
|
88
142
|
|
@@ -97,9 +151,21 @@ module AsposeSlidesCloud
|
|
97
151
|
# @return true if the model is valid
|
98
152
|
def valid?
|
99
153
|
return false if !super
|
154
|
+
quartile_method_validator = EnumAttributeValidator.new('String', ['Exclusive', 'Inclusive'])
|
155
|
+
return false unless quartile_method_validator.valid?(@quartile_method)
|
100
156
|
true
|
101
157
|
end
|
102
158
|
|
159
|
+
# Custom attribute writer method checking allowed values (enum).
|
160
|
+
# @param [Object] quartile_method Object to be assigned
|
161
|
+
def quartile_method=(quartile_method)
|
162
|
+
validator = EnumAttributeValidator.new('String', ['Exclusive', 'Inclusive'])
|
163
|
+
unless validator.valid?(quartile_method)
|
164
|
+
fail ArgumentError, 'invalid value for "quartile_method", must be one of #{validator.allowable_values}.'
|
165
|
+
end
|
166
|
+
@quartile_method = quartile_method
|
167
|
+
end
|
168
|
+
|
103
169
|
# Checks equality by comparing each attribute.
|
104
170
|
# @param [Object] Object to be compared
|
105
171
|
def ==(o)
|
@@ -120,7 +186,13 @@ module AsposeSlidesCloud
|
|
120
186
|
line_format == o.line_format &&
|
121
187
|
data_point_type == o.data_point_type &&
|
122
188
|
data_points == o.data_points &&
|
123
|
-
number_format_of_values == o.number_format_of_values
|
189
|
+
number_format_of_values == o.number_format_of_values &&
|
190
|
+
show_connector_lines == o.show_connector_lines &&
|
191
|
+
quartile_method == o.quartile_method &&
|
192
|
+
show_inner_points == o.show_inner_points &&
|
193
|
+
show_mean_line == o.show_mean_line &&
|
194
|
+
show_mean_markers == o.show_mean_markers &&
|
195
|
+
show_outlier_points == o.show_outlier_points
|
124
196
|
end
|
125
197
|
|
126
198
|
# @see the `==` method
|
@@ -132,7 +204,7 @@ module AsposeSlidesCloud
|
|
132
204
|
# Calculates hash code according to all attributes.
|
133
205
|
# @return [Fixnum] Hash code
|
134
206
|
def hash
|
135
|
-
[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].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
|
136
208
|
end
|
137
209
|
|
138
210
|
# Builds the object from hash
|
@@ -52,6 +52,9 @@ module AsposeSlidesCloud
|
|
52
52
|
# Fill mode.
|
53
53
|
attr_accessor :picture_fill_mode
|
54
54
|
|
55
|
+
# Image transform effects.
|
56
|
+
attr_accessor :image_transform_list
|
57
|
+
|
55
58
|
class EnumAttributeValidator
|
56
59
|
attr_reader :datatype
|
57
60
|
attr_reader :allowable_values
|
@@ -86,6 +89,7 @@ module AsposeSlidesCloud
|
|
86
89
|
:'base64_data' => :'Base64Data',
|
87
90
|
:'svg_data' => :'SvgData',
|
88
91
|
:'picture_fill_mode' => :'PictureFillMode',
|
92
|
+
:'image_transform_list' => :'ImageTransformList',
|
89
93
|
})
|
90
94
|
end
|
91
95
|
|
@@ -101,6 +105,7 @@ module AsposeSlidesCloud
|
|
101
105
|
:'base64_data' => :'String',
|
102
106
|
:'svg_data' => :'String',
|
103
107
|
:'picture_fill_mode' => :'String',
|
108
|
+
:'image_transform_list' => :'Array<ImageTransformEffect>',
|
104
109
|
})
|
105
110
|
end
|
106
111
|
|
@@ -144,6 +149,12 @@ module AsposeSlidesCloud
|
|
144
149
|
if attributes.has_key?(:'PictureFillMode')
|
145
150
|
self.picture_fill_mode = attributes[:'PictureFillMode']
|
146
151
|
end
|
152
|
+
|
153
|
+
if attributes.has_key?(:'ImageTransformList')
|
154
|
+
if (value = attributes[:'ImageTransformList']).is_a?(Array)
|
155
|
+
self.image_transform_list = value
|
156
|
+
end
|
157
|
+
end
|
147
158
|
self.type = "Picture"
|
148
159
|
end
|
149
160
|
|
@@ -217,7 +228,8 @@ module AsposeSlidesCloud
|
|
217
228
|
image == o.image &&
|
218
229
|
base64_data == o.base64_data &&
|
219
230
|
svg_data == o.svg_data &&
|
220
|
-
picture_fill_mode == o.picture_fill_mode
|
231
|
+
picture_fill_mode == o.picture_fill_mode &&
|
232
|
+
image_transform_list == o.image_transform_list
|
221
233
|
end
|
222
234
|
|
223
235
|
# @see the `==` method
|
@@ -229,7 +241,7 @@ module AsposeSlidesCloud
|
|
229
241
|
# Calculates hash code according to all attributes.
|
230
242
|
# @return [Fixnum] Hash code
|
231
243
|
def hash
|
232
|
-
[type, crop_bottom, crop_left, crop_right, crop_top, dpi, image, base64_data, svg_data, picture_fill_mode].hash
|
244
|
+
[type, crop_bottom, crop_left, crop_right, crop_top, dpi, image, base64_data, svg_data, picture_fill_mode, image_transform_list].hash
|
233
245
|
end
|
234
246
|
|
235
247
|
# Builds the object from hash
|
@@ -37,6 +37,12 @@ module AsposeSlidesCloud
|
|
37
37
|
# Gets or sets the title of link.
|
38
38
|
attr_accessor :title
|
39
39
|
|
40
|
+
# Resource slide index.
|
41
|
+
attr_accessor :slide_index
|
42
|
+
|
43
|
+
# Resource shape index.
|
44
|
+
attr_accessor :shape_index
|
45
|
+
|
40
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
47
|
def self.attribute_map
|
42
48
|
{
|
@@ -44,6 +50,8 @@ module AsposeSlidesCloud
|
|
44
50
|
:'relation' => :'Relation',
|
45
51
|
:'link_type' => :'LinkType',
|
46
52
|
:'title' => :'Title',
|
53
|
+
:'slide_index' => :'SlideIndex',
|
54
|
+
:'shape_index' => :'ShapeIndex',
|
47
55
|
}
|
48
56
|
end
|
49
57
|
|
@@ -54,6 +62,8 @@ module AsposeSlidesCloud
|
|
54
62
|
:'relation' => :'String',
|
55
63
|
:'link_type' => :'String',
|
56
64
|
:'title' => :'String',
|
65
|
+
:'slide_index' => :'Integer',
|
66
|
+
:'shape_index' => :'Integer',
|
57
67
|
}
|
58
68
|
end
|
59
69
|
|
@@ -80,6 +90,14 @@ module AsposeSlidesCloud
|
|
80
90
|
if attributes.has_key?(:'Title')
|
81
91
|
self.title = attributes[:'Title']
|
82
92
|
end
|
93
|
+
|
94
|
+
if attributes.has_key?(:'SlideIndex')
|
95
|
+
self.slide_index = attributes[:'SlideIndex']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.has_key?(:'ShapeIndex')
|
99
|
+
self.shape_index = attributes[:'ShapeIndex']
|
100
|
+
end
|
83
101
|
end
|
84
102
|
|
85
103
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -103,7 +121,9 @@ module AsposeSlidesCloud
|
|
103
121
|
href == o.href &&
|
104
122
|
relation == o.relation &&
|
105
123
|
link_type == o.link_type &&
|
106
|
-
title == o.title
|
124
|
+
title == o.title &&
|
125
|
+
slide_index == o.slide_index &&
|
126
|
+
shape_index == o.shape_index
|
107
127
|
end
|
108
128
|
|
109
129
|
# @see the `==` method
|
@@ -115,7 +135,7 @@ module AsposeSlidesCloud
|
|
115
135
|
# Calculates hash code according to all attributes.
|
116
136
|
# @return [Fixnum] Hash code
|
117
137
|
def hash
|
118
|
-
[href, relation, link_type, title].hash
|
138
|
+
[href, relation, link_type, title, slide_index, shape_index].hash
|
119
139
|
end
|
120
140
|
|
121
141
|
# Builds the object from hash
|
@@ -40,6 +40,9 @@ module AsposeSlidesCloud
|
|
40
40
|
# Organization chart layout type associated with current node.
|
41
41
|
attr_accessor :org_chart_layout
|
42
42
|
|
43
|
+
# Get or sets list to paragraphs list
|
44
|
+
attr_accessor :paragraphs
|
45
|
+
|
43
46
|
class EnumAttributeValidator
|
44
47
|
attr_reader :datatype
|
45
48
|
attr_reader :allowable_values
|
@@ -70,6 +73,7 @@ module AsposeSlidesCloud
|
|
70
73
|
:'is_assistant' => :'IsAssistant',
|
71
74
|
:'text' => :'Text',
|
72
75
|
:'org_chart_layout' => :'OrgChartLayout',
|
76
|
+
:'paragraphs' => :'Paragraphs',
|
73
77
|
}
|
74
78
|
end
|
75
79
|
|
@@ -81,6 +85,7 @@ module AsposeSlidesCloud
|
|
81
85
|
:'is_assistant' => :'BOOLEAN',
|
82
86
|
:'text' => :'String',
|
83
87
|
:'org_chart_layout' => :'String',
|
88
|
+
:'paragraphs' => :'ResourceUri',
|
84
89
|
}
|
85
90
|
end
|
86
91
|
|
@@ -113,6 +118,10 @@ module AsposeSlidesCloud
|
|
113
118
|
if attributes.has_key?(:'OrgChartLayout')
|
114
119
|
self.org_chart_layout = attributes[:'OrgChartLayout']
|
115
120
|
end
|
121
|
+
|
122
|
+
if attributes.has_key?(:'Paragraphs')
|
123
|
+
self.paragraphs = attributes[:'Paragraphs']
|
124
|
+
end
|
116
125
|
end
|
117
126
|
|
118
127
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -159,7 +168,8 @@ module AsposeSlidesCloud
|
|
159
168
|
shapes == o.shapes &&
|
160
169
|
is_assistant == o.is_assistant &&
|
161
170
|
text == o.text &&
|
162
|
-
org_chart_layout == o.org_chart_layout
|
171
|
+
org_chart_layout == o.org_chart_layout &&
|
172
|
+
paragraphs == o.paragraphs
|
163
173
|
end
|
164
174
|
|
165
175
|
# @see the `==` method
|
@@ -171,7 +181,7 @@ module AsposeSlidesCloud
|
|
171
181
|
# Calculates hash code according to all attributes.
|
172
182
|
# @return [Fixnum] Hash code
|
173
183
|
def hash
|
174
|
-
[nodes, shapes, is_assistant, text, org_chart_layout].hash
|
184
|
+
[nodes, shapes, is_assistant, text, org_chart_layout, paragraphs].hash
|
175
185
|
end
|
176
186
|
|
177
187
|
# Builds the object from hash
|