aspose_slides_cloud 20.6.0 → 21.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/TestData/ChartTest.pptx +0 -0
- data/TestData/Sections.pptx +0 -0
- data/TestData/test-unprotected.pptx +0 -0
- data/TestData/test.pptx +0 -0
- data/lib/aspose_slides_cloud.rb +13 -5
- data/lib/aspose_slides_cloud/api/slides_api.rb +2432 -691
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +609 -31
- data/lib/aspose_slides_cloud/api_client.rb +30 -24
- data/lib/aspose_slides_cloud/configuration.rb +7 -2
- data/lib/aspose_slides_cloud/models/add_layout_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/add_master_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/add_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/add_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/api_info.rb +22 -10
- data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +22 -10
- data/lib/aspose_slides_cloud/models/audio_frame.rb +32 -246
- data/lib/aspose_slides_cloud/models/axes.rb +22 -10
- data/lib/aspose_slides_cloud/models/axis.rb +22 -10
- data/lib/aspose_slides_cloud/models/base64_input_file.rb +31 -57
- data/lib/aspose_slides_cloud/models/blur_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +31 -222
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +30 -48
- data/lib/aspose_slides_cloud/models/bubble_series.rb +31 -211
- data/lib/aspose_slides_cloud/models/chart.rb +32 -220
- data/lib/aspose_slides_cloud/models/chart_category.rb +54 -20
- data/lib/aspose_slides_cloud/models/chart_title.rb +22 -10
- data/lib/aspose_slides_cloud/models/chart_wall.rb +22 -10
- data/lib/aspose_slides_cloud/models/color_scheme.rb +30 -40
- data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +22 -10
- data/lib/aspose_slides_cloud/models/connector.rb +32 -244
- data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +22 -10
- data/lib/aspose_slides_cloud/models/{resource_uri_element.rb → data_point.rb} +24 -22
- data/lib/aspose_slides_cloud/models/disc_usage.rb +22 -10
- data/lib/aspose_slides_cloud/models/document.rb +35 -45
- data/lib/aspose_slides_cloud/models/document_properties.rb +30 -40
- data/lib/aspose_slides_cloud/models/document_property.rb +30 -40
- data/lib/aspose_slides_cloud/models/document_replace_result.rb +30 -94
- data/lib/aspose_slides_cloud/models/effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/effect_format.rb +22 -10
- data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
- data/lib/aspose_slides_cloud/models/error.rb +22 -10
- data/lib/aspose_slides_cloud/models/error_details.rb +22 -10
- data/lib/aspose_slides_cloud/models/export_options.rb +33 -11
- data/lib/aspose_slides_cloud/models/file_version.rb +30 -75
- data/lib/aspose_slides_cloud/models/file_versions.rb +22 -10
- data/lib/aspose_slides_cloud/models/files_list.rb +22 -10
- data/lib/aspose_slides_cloud/models/files_upload_result.rb +22 -10
- data/lib/aspose_slides_cloud/models/fill_format.rb +22 -10
- data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/font_scheme.rb +30 -40
- data/lib/aspose_slides_cloud/models/font_set.rb +22 -10
- data/lib/aspose_slides_cloud/models/format_scheme.rb +30 -40
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +33 -212
- data/lib/aspose_slides_cloud/models/glow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/gradient_fill.rb +31 -48
- data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +22 -10
- data/lib/aspose_slides_cloud/models/graphical_object.rb +31 -219
- data/lib/aspose_slides_cloud/models/group_shape.rb +31 -219
- data/lib/aspose_slides_cloud/models/header_footer.rb +247 -0
- data/lib/aspose_slides_cloud/models/html_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +22 -20
- data/lib/aspose_slides_cloud/models/image.rb +30 -40
- data/lib/aspose_slides_cloud/models/image_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/images.rb +30 -40
- data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/input.rb +22 -10
- data/lib/aspose_slides_cloud/models/input_file.rb +22 -10
- data/lib/aspose_slides_cloud/models/interactive_sequence.rb +22 -10
- data/lib/aspose_slides_cloud/models/layout_slide.rb +31 -41
- data/lib/aspose_slides_cloud/models/layout_slides.rb +30 -40
- data/lib/aspose_slides_cloud/models/legend.rb +22 -10
- data/lib/aspose_slides_cloud/models/line_format.rb +22 -10
- data/lib/aspose_slides_cloud/models/master_slide.rb +31 -41
- data/lib/aspose_slides_cloud/models/master_slides.rb +30 -40
- data/lib/aspose_slides_cloud/models/merge.rb +31 -48
- data/lib/aspose_slides_cloud/models/merging_source.rb +22 -10
- data/lib/aspose_slides_cloud/models/no_fill.rb +29 -46
- data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +22 -10
- data/lib/aspose_slides_cloud/models/notes_slide.rb +30 -40
- data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +267 -0
- data/lib/aspose_slides_cloud/models/object_exist.rb +22 -10
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +32 -220
- data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +30 -20
- data/lib/aspose_slides_cloud/models/one_value_series.rb +31 -211
- data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +22 -10
- data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/output_file.rb +22 -10
- data/lib/aspose_slides_cloud/models/paragraph.rb +30 -40
- data/lib/aspose_slides_cloud/models/paragraphs.rb +30 -40
- data/lib/aspose_slides_cloud/models/path_input_file.rb +31 -57
- data/lib/aspose_slides_cloud/models/path_output_file.rb +31 -48
- data/lib/aspose_slides_cloud/models/pattern_fill.rb +31 -48
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/picture_fill.rb +32 -49
- data/lib/aspose_slides_cloud/models/picture_frame.rb +32 -246
- data/lib/aspose_slides_cloud/models/pipeline.rb +22 -10
- data/lib/aspose_slides_cloud/models/placeholder.rb +30 -40
- data/lib/aspose_slides_cloud/models/placeholders.rb +30 -40
- data/lib/aspose_slides_cloud/models/plot_area.rb +22 -10
- data/lib/aspose_slides_cloud/models/portion.rb +30 -40
- data/lib/aspose_slides_cloud/models/portions.rb +36 -46
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +22 -10
- data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +22 -10
- data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/reflection_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/remove_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/remove_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/reorder_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/replace_text.rb +31 -48
- data/lib/aspose_slides_cloud/models/request_input_file.rb +31 -57
- data/lib/aspose_slides_cloud/models/reset_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/resource_base.rb +22 -10
- data/lib/aspose_slides_cloud/models/resource_uri.rb +22 -10
- data/lib/aspose_slides_cloud/models/response_output_file.rb +29 -46
- data/lib/aspose_slides_cloud/models/save.rb +31 -48
- data/lib/aspose_slides_cloud/models/save_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/save_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +30 -20
- data/lib/aspose_slides_cloud/models/scatter_series.rb +31 -211
- data/lib/aspose_slides_cloud/models/section.rb +234 -0
- data/lib/aspose_slides_cloud/models/sections.rb +209 -0
- data/lib/aspose_slides_cloud/models/series.rb +45 -12
- data/lib/aspose_slides_cloud/models/series_marker.rb +22 -10
- data/lib/aspose_slides_cloud/models/shape.rb +32 -244
- data/lib/aspose_slides_cloud/models/shape_base.rb +31 -62
- data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +22 -10
- data/lib/aspose_slides_cloud/models/shapes.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide.rb +37 -47
- data/lib/aspose_slides_cloud/models/slide_animation.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide_background.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide_comment.rb +22 -10
- data/lib/aspose_slides_cloud/models/slide_comments.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide_replace_result.rb +30 -154
- data/lib/aspose_slides_cloud/models/slides.rb +30 -40
- data/lib/aspose_slides_cloud/models/smart_art.rb +32 -220
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +23 -11
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +30 -217
- data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/solid_fill.rb +31 -48
- data/lib/aspose_slides_cloud/models/split_document_result.rb +30 -40
- data/lib/aspose_slides_cloud/models/storage_exist.rb +22 -10
- data/lib/aspose_slides_cloud/models/storage_file.rb +22 -10
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/table.rb +32 -220
- data/lib/aspose_slides_cloud/models/table_cell.rb +22 -10
- data/lib/aspose_slides_cloud/models/table_column.rb +22 -10
- data/lib/aspose_slides_cloud/models/table_row.rb +22 -10
- data/lib/aspose_slides_cloud/models/task.rb +22 -10
- data/lib/aspose_slides_cloud/models/text_item.rb +22 -10
- data/lib/aspose_slides_cloud/models/text_items.rb +30 -40
- data/lib/aspose_slides_cloud/models/theme.rb +32 -42
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/update_background.rb +31 -48
- data/lib/aspose_slides_cloud/models/update_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/video_frame.rb +32 -246
- data/lib/aspose_slides_cloud/models/view_properties.rb +30 -40
- data/lib/aspose_slides_cloud/models/waterfall_chart_data_point.rb +206 -0
- data/lib/aspose_slides_cloud/models/waterfall_series.rb +31 -222
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/type_registry.rb +324 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +22294 -14411
- data/spec/extra/extra_spec.rb +156 -22
- data/spec/spec_utils.rb +15 -4
- data/testConfig.json +2 -2
- data/testRules.json +141 -73
- metadata +14 -3
@@ -0,0 +1,209 @@
|
|
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
|
+
# Section list.
|
27
|
+
class Sections < ResourceBase
|
28
|
+
# List of slide links.
|
29
|
+
attr_accessor :section_list
|
30
|
+
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
32
|
+
def self.attribute_map
|
33
|
+
super.merge({
|
34
|
+
:'section_list' => :'SectionList',
|
35
|
+
})
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.swagger_types
|
40
|
+
super.merge({
|
41
|
+
:'section_list' => :'Array<Section>',
|
42
|
+
})
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
47
|
+
def initialize(attributes = {})
|
48
|
+
super
|
49
|
+
|
50
|
+
if attributes.has_key?(:'SectionList')
|
51
|
+
if (value = attributes[:'SectionList']).is_a?(Array)
|
52
|
+
self.section_list = value
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
58
|
+
# @return Array for valid properties with the reasons
|
59
|
+
def list_invalid_properties
|
60
|
+
invalid_properties = super
|
61
|
+
invalid_properties
|
62
|
+
end
|
63
|
+
|
64
|
+
# Check to see if the all the properties in the model are valid
|
65
|
+
# @return true if the model is valid
|
66
|
+
def valid?
|
67
|
+
return false if !super
|
68
|
+
true
|
69
|
+
end
|
70
|
+
|
71
|
+
# Checks equality by comparing each attribute.
|
72
|
+
# @param [Object] Object to be compared
|
73
|
+
def ==(o)
|
74
|
+
return true if self.equal?(o)
|
75
|
+
self.class == o.class &&
|
76
|
+
self_uri == o.self_uri &&
|
77
|
+
alternate_links == o.alternate_links &&
|
78
|
+
section_list == o.section_list
|
79
|
+
end
|
80
|
+
|
81
|
+
# @see the `==` method
|
82
|
+
# @param [Object] Object to be compared
|
83
|
+
def eql?(o)
|
84
|
+
self == o
|
85
|
+
end
|
86
|
+
|
87
|
+
# Calculates hash code according to all attributes.
|
88
|
+
# @return [Fixnum] Hash code
|
89
|
+
def hash
|
90
|
+
[self_uri, alternate_links, section_list].hash
|
91
|
+
end
|
92
|
+
|
93
|
+
# Builds the object from hash
|
94
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
95
|
+
# @return [Object] Returns the model itself
|
96
|
+
def build_from_hash(attributes)
|
97
|
+
return nil unless attributes.is_a?(Hash)
|
98
|
+
self.class.swagger_types.each_pair do |key, type|
|
99
|
+
mapKey = self.class.attribute_map[key]
|
100
|
+
if !mapKey.nil?
|
101
|
+
val = attributes[mapKey]
|
102
|
+
if val.nil?
|
103
|
+
mapKeyString = mapKey.to_s
|
104
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
105
|
+
mapKey = mapKeyString.to_sym
|
106
|
+
val = attributes[mapKey]
|
107
|
+
end
|
108
|
+
if !val.nil?
|
109
|
+
if type =~ /\AArray<(.*)>/i
|
110
|
+
# check to ensure the input is an array given that the the attribute
|
111
|
+
# is documented as an array but the input is not
|
112
|
+
if val.is_a?(Array)
|
113
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
114
|
+
end
|
115
|
+
else
|
116
|
+
self.send("#{key}=", _deserialize(type, val))
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
self
|
123
|
+
end
|
124
|
+
|
125
|
+
# Deserializes the data based on type
|
126
|
+
# @param string type Data type
|
127
|
+
# @param string value Value to be deserialized
|
128
|
+
# @return [Object] Deserialized data
|
129
|
+
def _deserialize(type, value)
|
130
|
+
case type.to_sym
|
131
|
+
when :DateTime
|
132
|
+
DateTime.parse(value)
|
133
|
+
when :Date
|
134
|
+
Date.parse(value)
|
135
|
+
when :String
|
136
|
+
value.to_s
|
137
|
+
when :Integer
|
138
|
+
value.to_i
|
139
|
+
when :Float
|
140
|
+
value.to_f
|
141
|
+
when :BOOLEAN
|
142
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
143
|
+
true
|
144
|
+
else
|
145
|
+
false
|
146
|
+
end
|
147
|
+
when :Object
|
148
|
+
# generic object (usually a Hash), return directly
|
149
|
+
value
|
150
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
151
|
+
inner_type = Regexp.last_match[:inner_type]
|
152
|
+
value.map { |v| _deserialize(inner_type, v) }
|
153
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
154
|
+
k_type = Regexp.last_match[:k_type]
|
155
|
+
v_type = Regexp.last_match[:v_type]
|
156
|
+
{}.tap do |hash|
|
157
|
+
value.each do |k, v|
|
158
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
else # model
|
162
|
+
temp_model = AsposeSlidesCloud.const_get(type).new
|
163
|
+
temp_model.build_from_hash(value)
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
# Returns the string representation of the object
|
168
|
+
# @return [String] String presentation of the object
|
169
|
+
def to_s
|
170
|
+
to_hash.to_s
|
171
|
+
end
|
172
|
+
|
173
|
+
# to_body is an alias to to_hash (backward compatibility)
|
174
|
+
# @return [Hash] Returns the object in the form of hash
|
175
|
+
def to_body
|
176
|
+
to_hash
|
177
|
+
end
|
178
|
+
|
179
|
+
# Returns the object in the form of hash
|
180
|
+
# @return [Hash] Returns the object in the form of hash
|
181
|
+
def to_hash
|
182
|
+
hash = {}
|
183
|
+
self.class.attribute_map.each_pair do |attr, param|
|
184
|
+
value = self.send(attr)
|
185
|
+
next if value.nil?
|
186
|
+
hash[param] = _to_hash(value)
|
187
|
+
end
|
188
|
+
hash
|
189
|
+
end
|
190
|
+
|
191
|
+
# Outputs non-array value in the form of hash
|
192
|
+
# For object, use to_hash. Otherwise, just return the value
|
193
|
+
# @param [Object] value Any valid value
|
194
|
+
# @return [Hash] Returns the value in the form of hash
|
195
|
+
def _to_hash(value)
|
196
|
+
if value.is_a?(Array)
|
197
|
+
value.compact.map { |v| _to_hash(v) }
|
198
|
+
elsif value.is_a?(Hash)
|
199
|
+
{}.tap do |hash|
|
200
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
201
|
+
end
|
202
|
+
elsif value.respond_to? :to_hash
|
203
|
+
value.to_hash
|
204
|
+
else
|
205
|
+
value
|
206
|
+
end
|
207
|
+
end
|
208
|
+
end
|
209
|
+
end
|
@@ -76,6 +76,8 @@ module AsposeSlidesCloud
|
|
76
76
|
# Line properties set for the series.
|
77
77
|
attr_accessor :line_format
|
78
78
|
|
79
|
+
attr_accessor :data_point_type
|
80
|
+
|
79
81
|
class EnumAttributeValidator
|
80
82
|
attr_reader :datatype
|
81
83
|
attr_reader :allowable_values
|
@@ -117,7 +119,8 @@ module AsposeSlidesCloud
|
|
117
119
|
:'marker' => :'Marker',
|
118
120
|
:'fill_format' => :'FillFormat',
|
119
121
|
:'effect_format' => :'EffectFormat',
|
120
|
-
:'line_format' => :'LineFormat'
|
122
|
+
:'line_format' => :'LineFormat',
|
123
|
+
:'data_point_type' => :'DataPointType',
|
121
124
|
}
|
122
125
|
end
|
123
126
|
|
@@ -140,7 +143,8 @@ module AsposeSlidesCloud
|
|
140
143
|
:'marker' => :'SeriesMarker',
|
141
144
|
:'fill_format' => :'FillFormat',
|
142
145
|
:'effect_format' => :'EffectFormat',
|
143
|
-
:'line_format' => :'LineFormat'
|
146
|
+
:'line_format' => :'LineFormat',
|
147
|
+
:'data_point_type' => :'String',
|
144
148
|
}
|
145
149
|
end
|
146
150
|
|
@@ -219,6 +223,10 @@ module AsposeSlidesCloud
|
|
219
223
|
if attributes.has_key?(:'LineFormat')
|
220
224
|
self.line_format = attributes[:'LineFormat']
|
221
225
|
end
|
226
|
+
|
227
|
+
if attributes.has_key?(:'DataPointType')
|
228
|
+
self.data_point_type = attributes[:'DataPointType']
|
229
|
+
end
|
222
230
|
end
|
223
231
|
|
224
232
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -233,6 +241,8 @@ module AsposeSlidesCloud
|
|
233
241
|
def valid?
|
234
242
|
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'])
|
235
243
|
return false unless type_validator.valid?(@type)
|
244
|
+
data_point_type_validator = EnumAttributeValidator.new('String', ['OneValue', 'Scatter', 'Bubble'])
|
245
|
+
return false unless data_point_type_validator.valid?(@data_point_type)
|
236
246
|
true
|
237
247
|
end
|
238
248
|
|
@@ -246,6 +256,16 @@ module AsposeSlidesCloud
|
|
246
256
|
@type = type
|
247
257
|
end
|
248
258
|
|
259
|
+
# Custom attribute writer method checking allowed values (enum).
|
260
|
+
# @param [Object] data_point_type Object to be assigned
|
261
|
+
def data_point_type=(data_point_type)
|
262
|
+
validator = EnumAttributeValidator.new('String', ['OneValue', 'Scatter', 'Bubble'])
|
263
|
+
unless validator.valid?(data_point_type)
|
264
|
+
fail ArgumentError, 'invalid value for "data_point_type", must be one of #{validator.allowable_values}.'
|
265
|
+
end
|
266
|
+
@data_point_type = data_point_type
|
267
|
+
end
|
268
|
+
|
249
269
|
# Checks equality by comparing each attribute.
|
250
270
|
# @param [Object] Object to be compared
|
251
271
|
def ==(o)
|
@@ -267,7 +287,8 @@ module AsposeSlidesCloud
|
|
267
287
|
marker == o.marker &&
|
268
288
|
fill_format == o.fill_format &&
|
269
289
|
effect_format == o.effect_format &&
|
270
|
-
line_format == o.line_format
|
290
|
+
line_format == o.line_format &&
|
291
|
+
data_point_type == o.data_point_type
|
271
292
|
end
|
272
293
|
|
273
294
|
# @see the `==` method
|
@@ -279,7 +300,7 @@ module AsposeSlidesCloud
|
|
279
300
|
# Calculates hash code according to all attributes.
|
280
301
|
# @return [Fixnum] Hash code
|
281
302
|
def hash
|
282
|
-
[type, name, is_color_varied, inverted_solid_fill_color, smooth, plot_on_second_axis, order, number_format_of_y_values, number_format_of_x_values, number_format_of_values, number_format_of_bubble_sizes, invert_if_negative, explosion, marker, fill_format, effect_format, line_format].hash
|
303
|
+
[type, name, is_color_varied, inverted_solid_fill_color, smooth, plot_on_second_axis, order, number_format_of_y_values, number_format_of_x_values, number_format_of_values, number_format_of_bubble_sizes, invert_if_negative, explosion, marker, fill_format, effect_format, line_format, data_point_type].hash
|
283
304
|
end
|
284
305
|
|
285
306
|
# Builds the object from hash
|
@@ -288,15 +309,27 @@ module AsposeSlidesCloud
|
|
288
309
|
def build_from_hash(attributes)
|
289
310
|
return nil unless attributes.is_a?(Hash)
|
290
311
|
self.class.swagger_types.each_pair do |key, type|
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
if
|
295
|
-
|
312
|
+
mapKey = self.class.attribute_map[key]
|
313
|
+
if !mapKey.nil?
|
314
|
+
val = attributes[mapKey]
|
315
|
+
if val.nil?
|
316
|
+
mapKeyString = mapKey.to_s
|
317
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
318
|
+
mapKey = mapKeyString.to_sym
|
319
|
+
val = attributes[mapKey]
|
296
320
|
end
|
297
|
-
|
298
|
-
|
299
|
-
|
321
|
+
if !val.nil?
|
322
|
+
if type =~ /\AArray<(.*)>/i
|
323
|
+
# check to ensure the input is an array given that the the attribute
|
324
|
+
# is documented as an array but the input is not
|
325
|
+
if val.is_a?(Array)
|
326
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
327
|
+
end
|
328
|
+
else
|
329
|
+
self.send("#{key}=", _deserialize(type, val))
|
330
|
+
end
|
331
|
+
end
|
332
|
+
end
|
300
333
|
end
|
301
334
|
|
302
335
|
self
|
@@ -69,7 +69,7 @@ module AsposeSlidesCloud
|
|
69
69
|
:'symbol' => :'Symbol',
|
70
70
|
:'fill_format' => :'FillFormat',
|
71
71
|
:'effect_format' => :'EffectFormat',
|
72
|
-
:'line_format' => :'LineFormat'
|
72
|
+
:'line_format' => :'LineFormat',
|
73
73
|
}
|
74
74
|
end
|
75
75
|
|
@@ -80,7 +80,7 @@ module AsposeSlidesCloud
|
|
80
80
|
:'symbol' => :'String',
|
81
81
|
:'fill_format' => :'FillFormat',
|
82
82
|
:'effect_format' => :'EffectFormat',
|
83
|
-
:'line_format' => :'LineFormat'
|
83
|
+
:'line_format' => :'LineFormat',
|
84
84
|
}
|
85
85
|
end
|
86
86
|
|
@@ -168,15 +168,27 @@ module AsposeSlidesCloud
|
|
168
168
|
def build_from_hash(attributes)
|
169
169
|
return nil unless attributes.is_a?(Hash)
|
170
170
|
self.class.swagger_types.each_pair do |key, type|
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
if
|
175
|
-
|
171
|
+
mapKey = self.class.attribute_map[key]
|
172
|
+
if !mapKey.nil?
|
173
|
+
val = attributes[mapKey]
|
174
|
+
if val.nil?
|
175
|
+
mapKeyString = mapKey.to_s
|
176
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
177
|
+
mapKey = mapKeyString.to_sym
|
178
|
+
val = attributes[mapKey]
|
176
179
|
end
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
+
if !val.nil?
|
181
|
+
if type =~ /\AArray<(.*)>/i
|
182
|
+
# check to ensure the input is an array given that the the attribute
|
183
|
+
# is documented as an array but the input is not
|
184
|
+
if val.is_a?(Array)
|
185
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
186
|
+
end
|
187
|
+
else
|
188
|
+
self.send("#{key}=", _deserialize(type, val))
|
189
|
+
end
|
190
|
+
end
|
191
|
+
end
|
180
192
|
end
|
181
193
|
|
182
194
|
self
|
@@ -24,61 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents AutoShape resource.
|
27
|
-
class Shape
|
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
|
-
# Shape type.
|
74
|
-
attr_accessor :type
|
75
|
-
|
76
|
-
# Shape type.
|
77
|
-
attr_accessor :shape_type
|
78
|
-
|
79
|
-
# Geometry shape type.
|
80
|
-
attr_accessor :geometry_shape_type
|
81
|
-
|
27
|
+
class Shape < GeometryShape
|
82
28
|
# Gets or sets the text.
|
83
29
|
attr_accessor :text
|
84
30
|
|
@@ -109,139 +55,24 @@ module AsposeSlidesCloud
|
|
109
55
|
|
110
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
111
57
|
def self.attribute_map
|
112
|
-
{
|
113
|
-
:'self_uri' => :'SelfUri',
|
114
|
-
:'alternate_links' => :'AlternateLinks',
|
115
|
-
:'name' => :'Name',
|
116
|
-
:'width' => :'Width',
|
117
|
-
:'height' => :'Height',
|
118
|
-
:'alternative_text' => :'AlternativeText',
|
119
|
-
:'alternative_text_title' => :'AlternativeTextTitle',
|
120
|
-
:'hidden' => :'Hidden',
|
121
|
-
:'x' => :'X',
|
122
|
-
:'y' => :'Y',
|
123
|
-
:'z_order_position' => :'ZOrderPosition',
|
124
|
-
:'shapes' => :'Shapes',
|
125
|
-
:'fill_format' => :'FillFormat',
|
126
|
-
:'effect_format' => :'EffectFormat',
|
127
|
-
:'line_format' => :'LineFormat',
|
128
|
-
:'type' => :'Type',
|
129
|
-
:'shape_type' => :'ShapeType',
|
130
|
-
:'geometry_shape_type' => :'GeometryShapeType',
|
58
|
+
super.merge({
|
131
59
|
:'text' => :'Text',
|
132
|
-
:'paragraphs' => :'Paragraphs'
|
133
|
-
}
|
60
|
+
:'paragraphs' => :'Paragraphs',
|
61
|
+
})
|
134
62
|
end
|
135
63
|
|
136
64
|
# Attribute type mapping.
|
137
65
|
def self.swagger_types
|
138
|
-
{
|
139
|
-
:'self_uri' => :'ResourceUri',
|
140
|
-
:'alternate_links' => :'Array<ResourceUri>',
|
141
|
-
:'name' => :'String',
|
142
|
-
:'width' => :'Float',
|
143
|
-
:'height' => :'Float',
|
144
|
-
:'alternative_text' => :'String',
|
145
|
-
:'alternative_text_title' => :'String',
|
146
|
-
:'hidden' => :'BOOLEAN',
|
147
|
-
:'x' => :'Float',
|
148
|
-
:'y' => :'Float',
|
149
|
-
:'z_order_position' => :'Integer',
|
150
|
-
:'shapes' => :'ResourceUriElement',
|
151
|
-
:'fill_format' => :'FillFormat',
|
152
|
-
:'effect_format' => :'EffectFormat',
|
153
|
-
:'line_format' => :'LineFormat',
|
154
|
-
:'type' => :'String',
|
155
|
-
:'shape_type' => :'String',
|
156
|
-
:'geometry_shape_type' => :'String',
|
66
|
+
super.merge({
|
157
67
|
:'text' => :'String',
|
158
|
-
:'paragraphs' => :'
|
159
|
-
}
|
68
|
+
:'paragraphs' => :'ResourceUri',
|
69
|
+
})
|
160
70
|
end
|
161
71
|
|
162
72
|
# Initializes the object
|
163
73
|
# @param [Hash] attributes Model attributes in the form of hash
|
164
74
|
def initialize(attributes = {})
|
165
|
-
|
166
|
-
|
167
|
-
# convert string to symbol for hash key
|
168
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
169
|
-
|
170
|
-
if attributes.has_key?(:'SelfUri')
|
171
|
-
self.self_uri = attributes[:'SelfUri']
|
172
|
-
end
|
173
|
-
|
174
|
-
if attributes.has_key?(:'AlternateLinks')
|
175
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
176
|
-
self.alternate_links = value
|
177
|
-
end
|
178
|
-
end
|
179
|
-
|
180
|
-
if attributes.has_key?(:'Name')
|
181
|
-
self.name = attributes[:'Name']
|
182
|
-
end
|
183
|
-
|
184
|
-
if attributes.has_key?(:'Width')
|
185
|
-
self.width = attributes[:'Width']
|
186
|
-
end
|
187
|
-
|
188
|
-
if attributes.has_key?(:'Height')
|
189
|
-
self.height = attributes[:'Height']
|
190
|
-
end
|
191
|
-
|
192
|
-
if attributes.has_key?(:'AlternativeText')
|
193
|
-
self.alternative_text = attributes[:'AlternativeText']
|
194
|
-
end
|
195
|
-
|
196
|
-
if attributes.has_key?(:'AlternativeTextTitle')
|
197
|
-
self.alternative_text_title = attributes[:'AlternativeTextTitle']
|
198
|
-
end
|
199
|
-
|
200
|
-
if attributes.has_key?(:'Hidden')
|
201
|
-
self.hidden = attributes[:'Hidden']
|
202
|
-
end
|
203
|
-
|
204
|
-
if attributes.has_key?(:'X')
|
205
|
-
self.x = attributes[:'X']
|
206
|
-
end
|
207
|
-
|
208
|
-
if attributes.has_key?(:'Y')
|
209
|
-
self.y = attributes[:'Y']
|
210
|
-
end
|
211
|
-
|
212
|
-
if attributes.has_key?(:'ZOrderPosition')
|
213
|
-
self.z_order_position = attributes[:'ZOrderPosition']
|
214
|
-
end
|
215
|
-
|
216
|
-
if attributes.has_key?(:'Shapes')
|
217
|
-
self.shapes = attributes[:'Shapes']
|
218
|
-
end
|
219
|
-
|
220
|
-
if attributes.has_key?(:'FillFormat')
|
221
|
-
self.fill_format = attributes[:'FillFormat']
|
222
|
-
end
|
223
|
-
|
224
|
-
if attributes.has_key?(:'EffectFormat')
|
225
|
-
self.effect_format = attributes[:'EffectFormat']
|
226
|
-
end
|
227
|
-
|
228
|
-
if attributes.has_key?(:'LineFormat')
|
229
|
-
self.line_format = attributes[:'LineFormat']
|
230
|
-
end
|
231
|
-
|
232
|
-
if attributes.has_key?(:'Type')
|
233
|
-
self.type = attributes[:'Type']
|
234
|
-
else
|
235
|
-
self.type = "Shape"
|
236
|
-
end
|
237
|
-
|
238
|
-
if attributes.has_key?(:'ShapeType')
|
239
|
-
self.shape_type = attributes[:'ShapeType']
|
240
|
-
end
|
241
|
-
|
242
|
-
if attributes.has_key?(:'GeometryShapeType')
|
243
|
-
self.geometry_shape_type = attributes[:'GeometryShapeType']
|
244
|
-
end
|
75
|
+
super
|
245
76
|
|
246
77
|
if attributes.has_key?(:'Text')
|
247
78
|
self.text = attributes[:'Text']
|
@@ -250,77 +81,23 @@ module AsposeSlidesCloud
|
|
250
81
|
if attributes.has_key?(:'Paragraphs')
|
251
82
|
self.paragraphs = attributes[:'Paragraphs']
|
252
83
|
end
|
84
|
+
self.type = "Shape"
|
253
85
|
end
|
254
86
|
|
255
87
|
# Show invalid properties with the reasons. Usually used together with valid?
|
256
88
|
# @return Array for valid properties with the reasons
|
257
89
|
def list_invalid_properties
|
258
|
-
invalid_properties =
|
259
|
-
if @z_order_position.nil?
|
260
|
-
invalid_properties.push('invalid value for "z_order_position", z_order_position cannot be nil.')
|
261
|
-
end
|
262
|
-
|
263
|
-
if @type.nil?
|
264
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
265
|
-
end
|
266
|
-
|
267
|
-
if @shape_type.nil?
|
268
|
-
invalid_properties.push('invalid value for "shape_type", shape_type cannot be nil.')
|
269
|
-
end
|
270
|
-
|
271
|
-
if @geometry_shape_type.nil?
|
272
|
-
invalid_properties.push('invalid value for "geometry_shape_type", geometry_shape_type cannot be nil.')
|
273
|
-
end
|
274
|
-
|
90
|
+
invalid_properties = super
|
275
91
|
invalid_properties
|
276
92
|
end
|
277
93
|
|
278
94
|
# Check to see if the all the properties in the model are valid
|
279
95
|
# @return true if the model is valid
|
280
96
|
def valid?
|
281
|
-
return false if
|
282
|
-
return false if @type.nil?
|
283
|
-
type_validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
|
284
|
-
return false unless type_validator.valid?(@type)
|
285
|
-
return false if @shape_type.nil?
|
286
|
-
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'])
|
287
|
-
return false unless shape_type_validator.valid?(@shape_type)
|
288
|
-
return false if @geometry_shape_type.nil?
|
289
|
-
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'])
|
290
|
-
return false unless geometry_shape_type_validator.valid?(@geometry_shape_type)
|
97
|
+
return false if !super
|
291
98
|
true
|
292
99
|
end
|
293
100
|
|
294
|
-
# Custom attribute writer method checking allowed values (enum).
|
295
|
-
# @param [Object] type Object to be assigned
|
296
|
-
def type=(type)
|
297
|
-
validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
|
298
|
-
unless validator.valid?(type)
|
299
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
300
|
-
end
|
301
|
-
@type = type
|
302
|
-
end
|
303
|
-
|
304
|
-
# Custom attribute writer method checking allowed values (enum).
|
305
|
-
# @param [Object] shape_type Object to be assigned
|
306
|
-
def shape_type=(shape_type)
|
307
|
-
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'])
|
308
|
-
unless validator.valid?(shape_type)
|
309
|
-
fail ArgumentError, 'invalid value for "shape_type", must be one of #{validator.allowable_values}.'
|
310
|
-
end
|
311
|
-
@shape_type = shape_type
|
312
|
-
end
|
313
|
-
|
314
|
-
# Custom attribute writer method checking allowed values (enum).
|
315
|
-
# @param [Object] geometry_shape_type Object to be assigned
|
316
|
-
def geometry_shape_type=(geometry_shape_type)
|
317
|
-
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'])
|
318
|
-
unless validator.valid?(geometry_shape_type)
|
319
|
-
fail ArgumentError, 'invalid value for "geometry_shape_type", must be one of #{validator.allowable_values}.'
|
320
|
-
end
|
321
|
-
@geometry_shape_type = geometry_shape_type
|
322
|
-
end
|
323
|
-
|
324
101
|
# Checks equality by comparing each attribute.
|
325
102
|
# @param [Object] Object to be compared
|
326
103
|
def ==(o)
|
@@ -343,7 +120,6 @@ module AsposeSlidesCloud
|
|
343
120
|
line_format == o.line_format &&
|
344
121
|
type == o.type &&
|
345
122
|
shape_type == o.shape_type &&
|
346
|
-
geometry_shape_type == o.geometry_shape_type &&
|
347
123
|
text == o.text &&
|
348
124
|
paragraphs == o.paragraphs
|
349
125
|
end
|
@@ -357,7 +133,7 @@ module AsposeSlidesCloud
|
|
357
133
|
# Calculates hash code according to all attributes.
|
358
134
|
# @return [Fixnum] Hash code
|
359
135
|
def hash
|
360
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type, shape_type,
|
136
|
+
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type, shape_type, text, paragraphs].hash
|
361
137
|
end
|
362
138
|
|
363
139
|
# Builds the object from hash
|
@@ -366,15 +142,27 @@ module AsposeSlidesCloud
|
|
366
142
|
def build_from_hash(attributes)
|
367
143
|
return nil unless attributes.is_a?(Hash)
|
368
144
|
self.class.swagger_types.each_pair do |key, type|
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
if
|
373
|
-
|
145
|
+
mapKey = self.class.attribute_map[key]
|
146
|
+
if !mapKey.nil?
|
147
|
+
val = attributes[mapKey]
|
148
|
+
if val.nil?
|
149
|
+
mapKeyString = mapKey.to_s
|
150
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
151
|
+
mapKey = mapKeyString.to_sym
|
152
|
+
val = attributes[mapKey]
|
374
153
|
end
|
375
|
-
|
376
|
-
|
377
|
-
|
154
|
+
if !val.nil?
|
155
|
+
if type =~ /\AArray<(.*)>/i
|
156
|
+
# check to ensure the input is an array given that the the attribute
|
157
|
+
# is documented as an array but the input is not
|
158
|
+
if val.is_a?(Array)
|
159
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
160
|
+
end
|
161
|
+
else
|
162
|
+
self.send("#{key}=", _deserialize(type, val))
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
378
166
|
end
|
379
167
|
|
380
168
|
self
|