aspose_slides_cloud 20.7.0 → 21.2.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.pdf +0 -0
- data/TestData/test.pptx +0 -0
- data/lib/aspose_slides_cloud.rb +12 -5
- data/lib/aspose_slides_cloud/api/slides_api.rb +2130 -940
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +531 -31
- data/lib/aspose_slides_cloud/api_client.rb +25 -23
- data/lib/aspose_slides_cloud/configuration.rb +7 -2
- data/lib/aspose_slides_cloud/models/add_layout_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/add_master_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/add_shape.rb +11 -40
- data/lib/aspose_slides_cloud/models/add_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/api_info.rb +2 -2
- data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +2 -2
- data/lib/aspose_slides_cloud/models/audio_frame.rb +12 -238
- data/lib/aspose_slides_cloud/models/axes.rb +2 -2
- data/lib/aspose_slides_cloud/models/axis.rb +2 -2
- data/lib/aspose_slides_cloud/models/base64_input_file.rb +11 -49
- data/lib/aspose_slides_cloud/models/blur_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +11 -216
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +10 -40
- data/lib/aspose_slides_cloud/models/bubble_series.rb +11 -205
- data/lib/aspose_slides_cloud/models/chart.rb +14 -214
- data/lib/aspose_slides_cloud/models/chart_category.rb +34 -12
- data/lib/aspose_slides_cloud/models/chart_title.rb +2 -2
- data/lib/aspose_slides_cloud/models/chart_wall.rb +2 -2
- data/lib/aspose_slides_cloud/models/color_scheme.rb +10 -32
- data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +2 -2
- data/lib/aspose_slides_cloud/models/connector.rb +12 -236
- data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +2 -2
- data/lib/aspose_slides_cloud/models/{resource_uri_element.rb → data_point.rb} +4 -14
- data/lib/aspose_slides_cloud/models/disc_usage.rb +2 -2
- data/lib/aspose_slides_cloud/models/document.rb +15 -37
- data/lib/aspose_slides_cloud/models/document_properties.rb +10 -32
- data/lib/aspose_slides_cloud/models/document_property.rb +10 -32
- data/lib/aspose_slides_cloud/models/document_replace_result.rb +10 -86
- data/lib/aspose_slides_cloud/models/effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/effect_format.rb +2 -2
- data/lib/aspose_slides_cloud/models/entity_exists.rb +2 -2
- data/lib/aspose_slides_cloud/models/error.rb +2 -2
- data/lib/aspose_slides_cloud/models/error_details.rb +2 -2
- data/lib/aspose_slides_cloud/models/export_options.rb +13 -3
- data/lib/aspose_slides_cloud/models/file_version.rb +10 -67
- data/lib/aspose_slides_cloud/models/file_versions.rb +2 -2
- data/lib/aspose_slides_cloud/models/files_list.rb +2 -2
- data/lib/aspose_slides_cloud/models/files_upload_result.rb +2 -2
- data/lib/aspose_slides_cloud/models/fill_format.rb +2 -2
- data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/font_scheme.rb +10 -32
- data/lib/aspose_slides_cloud/models/font_set.rb +2 -2
- data/lib/aspose_slides_cloud/models/format_scheme.rb +10 -32
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +13 -204
- data/lib/aspose_slides_cloud/models/glow_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/gradient_fill.rb +11 -40
- data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +2 -2
- data/lib/aspose_slides_cloud/models/graphical_object.rb +11 -211
- data/lib/aspose_slides_cloud/models/group_shape.rb +11 -211
- data/lib/aspose_slides_cloud/models/header_footer.rb +247 -0
- data/lib/aspose_slides_cloud/models/html_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +2 -12
- data/lib/aspose_slides_cloud/models/image.rb +10 -32
- data/lib/aspose_slides_cloud/models/image_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/images.rb +10 -32
- data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/input.rb +2 -2
- data/lib/aspose_slides_cloud/models/input_file.rb +2 -2
- data/lib/aspose_slides_cloud/models/interactive_sequence.rb +2 -2
- data/lib/aspose_slides_cloud/models/layout_slide.rb +11 -33
- data/lib/aspose_slides_cloud/models/layout_slides.rb +10 -32
- data/lib/aspose_slides_cloud/models/legend.rb +2 -2
- data/lib/aspose_slides_cloud/models/line_format.rb +25 -3
- data/lib/aspose_slides_cloud/models/master_slide.rb +11 -33
- data/lib/aspose_slides_cloud/models/master_slides.rb +10 -32
- data/lib/aspose_slides_cloud/models/merge.rb +11 -40
- data/lib/aspose_slides_cloud/models/merging_source.rb +2 -2
- data/lib/aspose_slides_cloud/models/no_fill.rb +9 -38
- data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +2 -2
- data/lib/aspose_slides_cloud/models/notes_slide.rb +10 -32
- data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +267 -0
- data/lib/aspose_slides_cloud/models/object_exist.rb +2 -2
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +12 -212
- data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +10 -12
- data/lib/aspose_slides_cloud/models/one_value_series.rb +11 -205
- data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +2 -2
- data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/output_file.rb +2 -2
- data/lib/aspose_slides_cloud/models/paragraph.rb +10 -32
- data/lib/aspose_slides_cloud/models/paragraphs.rb +10 -32
- data/lib/aspose_slides_cloud/models/path_input_file.rb +11 -49
- data/lib/aspose_slides_cloud/models/path_output_file.rb +11 -40
- data/lib/aspose_slides_cloud/models/pattern_fill.rb +11 -40
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/picture_fill.rb +12 -41
- data/lib/aspose_slides_cloud/models/picture_frame.rb +12 -238
- data/lib/aspose_slides_cloud/models/pipeline.rb +2 -2
- data/lib/aspose_slides_cloud/models/placeholder.rb +10 -32
- data/lib/aspose_slides_cloud/models/placeholders.rb +10 -32
- data/lib/aspose_slides_cloud/models/plot_area.rb +2 -2
- data/lib/aspose_slides_cloud/models/portion.rb +10 -32
- data/lib/aspose_slides_cloud/models/portions.rb +10 -32
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +2 -2
- data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +2 -2
- data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/protection_properties.rb +217 -0
- data/lib/aspose_slides_cloud/models/reflection_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/remove_shape.rb +11 -40
- data/lib/aspose_slides_cloud/models/remove_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/reorder_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/replace_text.rb +11 -40
- data/lib/aspose_slides_cloud/models/request_input_file.rb +11 -49
- data/lib/aspose_slides_cloud/models/reset_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/resource_base.rb +2 -2
- data/lib/aspose_slides_cloud/models/resource_uri.rb +2 -2
- data/lib/aspose_slides_cloud/models/response_output_file.rb +9 -38
- data/lib/aspose_slides_cloud/models/save.rb +11 -40
- data/lib/aspose_slides_cloud/models/save_shape.rb +11 -40
- data/lib/aspose_slides_cloud/models/save_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +10 -12
- data/lib/aspose_slides_cloud/models/scatter_series.rb +11 -205
- 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 +4 -4
- data/lib/aspose_slides_cloud/models/series_marker.rb +2 -2
- data/lib/aspose_slides_cloud/models/shape.rb +12 -236
- data/lib/aspose_slides_cloud/models/shape_base.rb +11 -54
- data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +2 -2
- data/lib/aspose_slides_cloud/models/shapes.rb +10 -32
- data/lib/aspose_slides_cloud/models/slide.rb +17 -39
- data/lib/aspose_slides_cloud/models/slide_animation.rb +10 -32
- data/lib/aspose_slides_cloud/models/slide_background.rb +10 -32
- data/lib/aspose_slides_cloud/models/slide_comment.rb +2 -2
- data/lib/aspose_slides_cloud/models/slide_comments.rb +10 -32
- data/lib/aspose_slides_cloud/models/slide_properties.rb +315 -0
- data/lib/aspose_slides_cloud/models/slide_replace_result.rb +10 -146
- data/lib/aspose_slides_cloud/models/slides.rb +10 -32
- data/lib/aspose_slides_cloud/models/smart_art.rb +12 -212
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +3 -3
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +10 -209
- data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/solid_fill.rb +11 -40
- data/lib/aspose_slides_cloud/models/split_document_result.rb +10 -32
- data/lib/aspose_slides_cloud/models/storage_exist.rb +2 -2
- data/lib/aspose_slides_cloud/models/storage_file.rb +2 -2
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/table.rb +12 -212
- data/lib/aspose_slides_cloud/models/table_cell.rb +2 -2
- data/lib/aspose_slides_cloud/models/table_column.rb +2 -2
- data/lib/aspose_slides_cloud/models/table_row.rb +2 -2
- data/lib/aspose_slides_cloud/models/task.rb +2 -2
- data/lib/aspose_slides_cloud/models/text_item.rb +2 -2
- data/lib/aspose_slides_cloud/models/text_items.rb +10 -32
- data/lib/aspose_slides_cloud/models/theme.rb +12 -34
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/update_background.rb +11 -40
- data/lib/aspose_slides_cloud/models/update_shape.rb +11 -40
- data/lib/aspose_slides_cloud/models/video_frame.rb +12 -238
- data/lib/aspose_slides_cloud/models/view_properties.rb +10 -32
- data/lib/aspose_slides_cloud/models/waterfall_chart_data_point.rb +206 -0
- data/lib/aspose_slides_cloud/models/waterfall_series.rb +11 -216
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +13 -24
- 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 +8664 -1406
- data/spec/extra/extra_spec.rb +70 -38
- data/spec/spec_utils.rb +10 -6
- data/testConfig.json +2 -2
- data/testRules.json +121 -80
- metadata +16 -3
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
|
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
37
|
:'radius' => :'Radius',
|
38
|
-
:'color' => :'Color'
|
38
|
+
:'color' => :'Color',
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
|
|
43
43
|
def self.swagger_types
|
44
44
|
{
|
45
45
|
:'radius' => :'Float',
|
46
|
-
:'color' => :'String'
|
46
|
+
:'color' => :'String',
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
@@ -24,10 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents gradient fill format
|
27
|
-
class GradientFill
|
28
|
-
# Type of fill.
|
29
|
-
attr_accessor :type
|
30
|
-
|
27
|
+
class GradientFill < FillFormat
|
31
28
|
# Gradient style.
|
32
29
|
attr_accessor :direction
|
33
30
|
|
@@ -70,43 +67,32 @@ module AsposeSlidesCloud
|
|
70
67
|
|
71
68
|
# Attribute mapping from ruby-style variable name to JSON key.
|
72
69
|
def self.attribute_map
|
73
|
-
{
|
74
|
-
:'type' => :'Type',
|
70
|
+
super.merge({
|
75
71
|
:'direction' => :'Direction',
|
76
72
|
:'shape' => :'Shape',
|
77
73
|
:'stops' => :'Stops',
|
78
74
|
:'linear_angle' => :'LinearAngle',
|
79
75
|
:'is_scaled' => :'IsScaled',
|
80
|
-
:'tile_flip' => :'TileFlip'
|
81
|
-
}
|
76
|
+
:'tile_flip' => :'TileFlip',
|
77
|
+
})
|
82
78
|
end
|
83
79
|
|
84
80
|
# Attribute type mapping.
|
85
81
|
def self.swagger_types
|
86
|
-
{
|
87
|
-
:'type' => :'String',
|
82
|
+
super.merge({
|
88
83
|
:'direction' => :'String',
|
89
84
|
:'shape' => :'String',
|
90
85
|
:'stops' => :'Array<GradientFillStop>',
|
91
86
|
:'linear_angle' => :'Float',
|
92
87
|
:'is_scaled' => :'BOOLEAN',
|
93
|
-
:'tile_flip' => :'String'
|
94
|
-
}
|
88
|
+
:'tile_flip' => :'String',
|
89
|
+
})
|
95
90
|
end
|
96
91
|
|
97
92
|
# Initializes the object
|
98
93
|
# @param [Hash] attributes Model attributes in the form of hash
|
99
94
|
def initialize(attributes = {})
|
100
|
-
|
101
|
-
|
102
|
-
# convert string to symbol for hash key
|
103
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
104
|
-
|
105
|
-
if attributes.has_key?(:'Type')
|
106
|
-
self.type = attributes[:'Type']
|
107
|
-
else
|
108
|
-
self.type = "Gradient"
|
109
|
-
end
|
95
|
+
super
|
110
96
|
|
111
97
|
if attributes.has_key?(:'Direction')
|
112
98
|
self.direction = attributes[:'Direction']
|
@@ -133,16 +119,13 @@ module AsposeSlidesCloud
|
|
133
119
|
if attributes.has_key?(:'TileFlip')
|
134
120
|
self.tile_flip = attributes[:'TileFlip']
|
135
121
|
end
|
122
|
+
self.type = "Gradient"
|
136
123
|
end
|
137
124
|
|
138
125
|
# Show invalid properties with the reasons. Usually used together with valid?
|
139
126
|
# @return Array for valid properties with the reasons
|
140
127
|
def list_invalid_properties
|
141
|
-
invalid_properties =
|
142
|
-
if @type.nil?
|
143
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
144
|
-
end
|
145
|
-
|
128
|
+
invalid_properties = super
|
146
129
|
if @direction.nil?
|
147
130
|
invalid_properties.push('invalid value for "direction", direction cannot be nil.')
|
148
131
|
end
|
@@ -169,9 +152,7 @@ module AsposeSlidesCloud
|
|
169
152
|
# Check to see if the all the properties in the model are valid
|
170
153
|
# @return true if the model is valid
|
171
154
|
def valid?
|
172
|
-
return false if
|
173
|
-
type_validator = EnumAttributeValidator.new('String', ['NoFill', 'Solid', 'Gradient', 'Pattern', 'Picture', 'NotDefined'])
|
174
|
-
return false unless type_validator.valid?(@type)
|
155
|
+
return false if !super
|
175
156
|
return false if @direction.nil?
|
176
157
|
direction_validator = EnumAttributeValidator.new('String', ['FromCorner1', 'FromCorner2', 'FromCorner3', 'FromCorner4', 'FromCenter', 'NotDefined'])
|
177
158
|
return false unless direction_validator.valid?(@direction)
|
@@ -186,16 +167,6 @@ module AsposeSlidesCloud
|
|
186
167
|
true
|
187
168
|
end
|
188
169
|
|
189
|
-
# Custom attribute writer method checking allowed values (enum).
|
190
|
-
# @param [Object] type Object to be assigned
|
191
|
-
def type=(type)
|
192
|
-
validator = EnumAttributeValidator.new('String', ['NoFill', 'Solid', 'Gradient', 'Pattern', 'Picture', 'NotDefined'])
|
193
|
-
unless validator.valid?(type)
|
194
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
195
|
-
end
|
196
|
-
@type = type
|
197
|
-
end
|
198
|
-
|
199
170
|
# Custom attribute writer method checking allowed values (enum).
|
200
171
|
# @param [Object] direction Object to be assigned
|
201
172
|
def direction=(direction)
|
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
|
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
37
|
:'color' => :'Color',
|
38
|
-
:'position' => :'Position'
|
38
|
+
:'position' => :'Position',
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
|
|
43
43
|
def self.swagger_types
|
44
44
|
{
|
45
45
|
:'color' => :'String',
|
46
|
-
:'position' => :'Float'
|
46
|
+
:'position' => :'Float',
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
@@ -24,58 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents AudioFrame resource.
|
27
|
-
class GraphicalObject
|
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
|
-
# Combined shape type.
|
77
|
-
attr_accessor :shape_type
|
78
|
-
|
27
|
+
class GraphicalObject < ShapeBase
|
79
28
|
class EnumAttributeValidator
|
80
29
|
attr_reader :datatype
|
81
30
|
attr_reader :allowable_values
|
@@ -100,185 +49,37 @@ module AsposeSlidesCloud
|
|
100
49
|
|
101
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
102
51
|
def self.attribute_map
|
103
|
-
{
|
104
|
-
|
105
|
-
:'alternate_links' => :'AlternateLinks',
|
106
|
-
:'name' => :'Name',
|
107
|
-
:'width' => :'Width',
|
108
|
-
:'height' => :'Height',
|
109
|
-
:'alternative_text' => :'AlternativeText',
|
110
|
-
:'alternative_text_title' => :'AlternativeTextTitle',
|
111
|
-
:'hidden' => :'Hidden',
|
112
|
-
:'x' => :'X',
|
113
|
-
:'y' => :'Y',
|
114
|
-
:'z_order_position' => :'ZOrderPosition',
|
115
|
-
:'shapes' => :'Shapes',
|
116
|
-
:'fill_format' => :'FillFormat',
|
117
|
-
:'effect_format' => :'EffectFormat',
|
118
|
-
:'line_format' => :'LineFormat',
|
119
|
-
:'type' => :'Type',
|
120
|
-
:'shape_type' => :'ShapeType'
|
121
|
-
}
|
52
|
+
super.merge({
|
53
|
+
})
|
122
54
|
end
|
123
55
|
|
124
56
|
# Attribute type mapping.
|
125
57
|
def self.swagger_types
|
126
|
-
{
|
127
|
-
|
128
|
-
:'alternate_links' => :'Array<ResourceUri>',
|
129
|
-
:'name' => :'String',
|
130
|
-
:'width' => :'Float',
|
131
|
-
:'height' => :'Float',
|
132
|
-
:'alternative_text' => :'String',
|
133
|
-
:'alternative_text_title' => :'String',
|
134
|
-
:'hidden' => :'BOOLEAN',
|
135
|
-
:'x' => :'Float',
|
136
|
-
:'y' => :'Float',
|
137
|
-
:'z_order_position' => :'Integer',
|
138
|
-
:'shapes' => :'ResourceUriElement',
|
139
|
-
:'fill_format' => :'FillFormat',
|
140
|
-
:'effect_format' => :'EffectFormat',
|
141
|
-
:'line_format' => :'LineFormat',
|
142
|
-
:'type' => :'String',
|
143
|
-
:'shape_type' => :'String'
|
144
|
-
}
|
58
|
+
super.merge({
|
59
|
+
})
|
145
60
|
end
|
146
61
|
|
147
62
|
# Initializes the object
|
148
63
|
# @param [Hash] attributes Model attributes in the form of hash
|
149
64
|
def initialize(attributes = {})
|
150
|
-
|
151
|
-
|
152
|
-
# convert string to symbol for hash key
|
153
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
154
|
-
|
155
|
-
if attributes.has_key?(:'SelfUri')
|
156
|
-
self.self_uri = attributes[:'SelfUri']
|
157
|
-
end
|
158
|
-
|
159
|
-
if attributes.has_key?(:'AlternateLinks')
|
160
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
161
|
-
self.alternate_links = value
|
162
|
-
end
|
163
|
-
end
|
164
|
-
|
165
|
-
if attributes.has_key?(:'Name')
|
166
|
-
self.name = attributes[:'Name']
|
167
|
-
end
|
168
|
-
|
169
|
-
if attributes.has_key?(:'Width')
|
170
|
-
self.width = attributes[:'Width']
|
171
|
-
end
|
172
|
-
|
173
|
-
if attributes.has_key?(:'Height')
|
174
|
-
self.height = attributes[:'Height']
|
175
|
-
end
|
176
|
-
|
177
|
-
if attributes.has_key?(:'AlternativeText')
|
178
|
-
self.alternative_text = attributes[:'AlternativeText']
|
179
|
-
end
|
180
|
-
|
181
|
-
if attributes.has_key?(:'AlternativeTextTitle')
|
182
|
-
self.alternative_text_title = attributes[:'AlternativeTextTitle']
|
183
|
-
end
|
184
|
-
|
185
|
-
if attributes.has_key?(:'Hidden')
|
186
|
-
self.hidden = attributes[:'Hidden']
|
187
|
-
end
|
188
|
-
|
189
|
-
if attributes.has_key?(:'X')
|
190
|
-
self.x = attributes[:'X']
|
191
|
-
end
|
192
|
-
|
193
|
-
if attributes.has_key?(:'Y')
|
194
|
-
self.y = attributes[:'Y']
|
195
|
-
end
|
196
|
-
|
197
|
-
if attributes.has_key?(:'ZOrderPosition')
|
198
|
-
self.z_order_position = attributes[:'ZOrderPosition']
|
199
|
-
end
|
200
|
-
|
201
|
-
if attributes.has_key?(:'Shapes')
|
202
|
-
self.shapes = attributes[:'Shapes']
|
203
|
-
end
|
204
|
-
|
205
|
-
if attributes.has_key?(:'FillFormat')
|
206
|
-
self.fill_format = attributes[:'FillFormat']
|
207
|
-
end
|
208
|
-
|
209
|
-
if attributes.has_key?(:'EffectFormat')
|
210
|
-
self.effect_format = attributes[:'EffectFormat']
|
211
|
-
end
|
212
|
-
|
213
|
-
if attributes.has_key?(:'LineFormat')
|
214
|
-
self.line_format = attributes[:'LineFormat']
|
215
|
-
end
|
216
|
-
|
217
|
-
if attributes.has_key?(:'Type')
|
218
|
-
self.type = attributes[:'Type']
|
219
|
-
else
|
220
|
-
self.type = "GraphicalObject"
|
221
|
-
end
|
222
|
-
|
223
|
-
if attributes.has_key?(:'ShapeType')
|
224
|
-
self.shape_type = attributes[:'ShapeType']
|
225
|
-
else
|
226
|
-
self.shape_type = "GraphicalObject"
|
227
|
-
end
|
65
|
+
super
|
66
|
+
self.type = "GraphicalObject"
|
228
67
|
end
|
229
68
|
|
230
69
|
# Show invalid properties with the reasons. Usually used together with valid?
|
231
70
|
# @return Array for valid properties with the reasons
|
232
71
|
def list_invalid_properties
|
233
|
-
invalid_properties =
|
234
|
-
if @z_order_position.nil?
|
235
|
-
invalid_properties.push('invalid value for "z_order_position", z_order_position cannot be nil.')
|
236
|
-
end
|
237
|
-
|
238
|
-
if @type.nil?
|
239
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
240
|
-
end
|
241
|
-
|
242
|
-
if @shape_type.nil?
|
243
|
-
invalid_properties.push('invalid value for "shape_type", shape_type cannot be nil.')
|
244
|
-
end
|
245
|
-
|
72
|
+
invalid_properties = super
|
246
73
|
invalid_properties
|
247
74
|
end
|
248
75
|
|
249
76
|
# Check to see if the all the properties in the model are valid
|
250
77
|
# @return true if the model is valid
|
251
78
|
def valid?
|
252
|
-
return false if
|
253
|
-
return false if @type.nil?
|
254
|
-
type_validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
|
255
|
-
return false unless type_validator.valid?(@type)
|
256
|
-
return false if @shape_type.nil?
|
257
|
-
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'])
|
258
|
-
return false unless shape_type_validator.valid?(@shape_type)
|
79
|
+
return false if !super
|
259
80
|
true
|
260
81
|
end
|
261
82
|
|
262
|
-
# Custom attribute writer method checking allowed values (enum).
|
263
|
-
# @param [Object] type Object to be assigned
|
264
|
-
def type=(type)
|
265
|
-
validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
|
266
|
-
unless validator.valid?(type)
|
267
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
268
|
-
end
|
269
|
-
@type = type
|
270
|
-
end
|
271
|
-
|
272
|
-
# Custom attribute writer method checking allowed values (enum).
|
273
|
-
# @param [Object] shape_type Object to be assigned
|
274
|
-
def shape_type=(shape_type)
|
275
|
-
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'])
|
276
|
-
unless validator.valid?(shape_type)
|
277
|
-
fail ArgumentError, 'invalid value for "shape_type", must be one of #{validator.allowable_values}.'
|
278
|
-
end
|
279
|
-
@shape_type = shape_type
|
280
|
-
end
|
281
|
-
|
282
83
|
# Checks equality by comparing each attribute.
|
283
84
|
# @param [Object] Object to be compared
|
284
85
|
def ==(o)
|
@@ -299,8 +100,7 @@ module AsposeSlidesCloud
|
|
299
100
|
fill_format == o.fill_format &&
|
300
101
|
effect_format == o.effect_format &&
|
301
102
|
line_format == o.line_format &&
|
302
|
-
type == o.type
|
303
|
-
shape_type == o.shape_type
|
103
|
+
type == o.type
|
304
104
|
end
|
305
105
|
|
306
106
|
# @see the `==` method
|
@@ -312,7 +112,7 @@ module AsposeSlidesCloud
|
|
312
112
|
# Calculates hash code according to all attributes.
|
313
113
|
# @return [Fixnum] Hash code
|
314
114
|
def hash
|
315
|
-
[self_uri,
|
115
|
+
[self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type].hash
|
316
116
|
end
|
317
117
|
|
318
118
|
# Builds the object from hash
|
@@ -24,58 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents GroupShape resource.
|
27
|
-
class GroupShape
|
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
|
-
# Combined shape type.
|
77
|
-
attr_accessor :shape_type
|
78
|
-
|
27
|
+
class GroupShape < ShapeBase
|
79
28
|
class EnumAttributeValidator
|
80
29
|
attr_reader :datatype
|
81
30
|
attr_reader :allowable_values
|
@@ -100,185 +49,37 @@ module AsposeSlidesCloud
|
|
100
49
|
|
101
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
102
51
|
def self.attribute_map
|
103
|
-
{
|
104
|
-
|
105
|
-
:'alternate_links' => :'AlternateLinks',
|
106
|
-
:'name' => :'Name',
|
107
|
-
:'width' => :'Width',
|
108
|
-
:'height' => :'Height',
|
109
|
-
:'alternative_text' => :'AlternativeText',
|
110
|
-
:'alternative_text_title' => :'AlternativeTextTitle',
|
111
|
-
:'hidden' => :'Hidden',
|
112
|
-
:'x' => :'X',
|
113
|
-
:'y' => :'Y',
|
114
|
-
:'z_order_position' => :'ZOrderPosition',
|
115
|
-
:'shapes' => :'Shapes',
|
116
|
-
:'fill_format' => :'FillFormat',
|
117
|
-
:'effect_format' => :'EffectFormat',
|
118
|
-
:'line_format' => :'LineFormat',
|
119
|
-
:'type' => :'Type',
|
120
|
-
:'shape_type' => :'ShapeType'
|
121
|
-
}
|
52
|
+
super.merge({
|
53
|
+
})
|
122
54
|
end
|
123
55
|
|
124
56
|
# Attribute type mapping.
|
125
57
|
def self.swagger_types
|
126
|
-
{
|
127
|
-
|
128
|
-
:'alternate_links' => :'Array<ResourceUri>',
|
129
|
-
:'name' => :'String',
|
130
|
-
:'width' => :'Float',
|
131
|
-
:'height' => :'Float',
|
132
|
-
:'alternative_text' => :'String',
|
133
|
-
:'alternative_text_title' => :'String',
|
134
|
-
:'hidden' => :'BOOLEAN',
|
135
|
-
:'x' => :'Float',
|
136
|
-
:'y' => :'Float',
|
137
|
-
:'z_order_position' => :'Integer',
|
138
|
-
:'shapes' => :'ResourceUriElement',
|
139
|
-
:'fill_format' => :'FillFormat',
|
140
|
-
:'effect_format' => :'EffectFormat',
|
141
|
-
:'line_format' => :'LineFormat',
|
142
|
-
:'type' => :'String',
|
143
|
-
:'shape_type' => :'String'
|
144
|
-
}
|
58
|
+
super.merge({
|
59
|
+
})
|
145
60
|
end
|
146
61
|
|
147
62
|
# Initializes the object
|
148
63
|
# @param [Hash] attributes Model attributes in the form of hash
|
149
64
|
def initialize(attributes = {})
|
150
|
-
|
151
|
-
|
152
|
-
# convert string to symbol for hash key
|
153
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
154
|
-
|
155
|
-
if attributes.has_key?(:'SelfUri')
|
156
|
-
self.self_uri = attributes[:'SelfUri']
|
157
|
-
end
|
158
|
-
|
159
|
-
if attributes.has_key?(:'AlternateLinks')
|
160
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
161
|
-
self.alternate_links = value
|
162
|
-
end
|
163
|
-
end
|
164
|
-
|
165
|
-
if attributes.has_key?(:'Name')
|
166
|
-
self.name = attributes[:'Name']
|
167
|
-
end
|
168
|
-
|
169
|
-
if attributes.has_key?(:'Width')
|
170
|
-
self.width = attributes[:'Width']
|
171
|
-
end
|
172
|
-
|
173
|
-
if attributes.has_key?(:'Height')
|
174
|
-
self.height = attributes[:'Height']
|
175
|
-
end
|
176
|
-
|
177
|
-
if attributes.has_key?(:'AlternativeText')
|
178
|
-
self.alternative_text = attributes[:'AlternativeText']
|
179
|
-
end
|
180
|
-
|
181
|
-
if attributes.has_key?(:'AlternativeTextTitle')
|
182
|
-
self.alternative_text_title = attributes[:'AlternativeTextTitle']
|
183
|
-
end
|
184
|
-
|
185
|
-
if attributes.has_key?(:'Hidden')
|
186
|
-
self.hidden = attributes[:'Hidden']
|
187
|
-
end
|
188
|
-
|
189
|
-
if attributes.has_key?(:'X')
|
190
|
-
self.x = attributes[:'X']
|
191
|
-
end
|
192
|
-
|
193
|
-
if attributes.has_key?(:'Y')
|
194
|
-
self.y = attributes[:'Y']
|
195
|
-
end
|
196
|
-
|
197
|
-
if attributes.has_key?(:'ZOrderPosition')
|
198
|
-
self.z_order_position = attributes[:'ZOrderPosition']
|
199
|
-
end
|
200
|
-
|
201
|
-
if attributes.has_key?(:'Shapes')
|
202
|
-
self.shapes = attributes[:'Shapes']
|
203
|
-
end
|
204
|
-
|
205
|
-
if attributes.has_key?(:'FillFormat')
|
206
|
-
self.fill_format = attributes[:'FillFormat']
|
207
|
-
end
|
208
|
-
|
209
|
-
if attributes.has_key?(:'EffectFormat')
|
210
|
-
self.effect_format = attributes[:'EffectFormat']
|
211
|
-
end
|
212
|
-
|
213
|
-
if attributes.has_key?(:'LineFormat')
|
214
|
-
self.line_format = attributes[:'LineFormat']
|
215
|
-
end
|
216
|
-
|
217
|
-
if attributes.has_key?(:'Type')
|
218
|
-
self.type = attributes[:'Type']
|
219
|
-
else
|
220
|
-
self.type = "GroupShape"
|
221
|
-
end
|
222
|
-
|
223
|
-
if attributes.has_key?(:'ShapeType')
|
224
|
-
self.shape_type = attributes[:'ShapeType']
|
225
|
-
else
|
226
|
-
self.shape_type = "GroupShape"
|
227
|
-
end
|
65
|
+
super
|
66
|
+
self.type = "GroupShape"
|
228
67
|
end
|
229
68
|
|
230
69
|
# Show invalid properties with the reasons. Usually used together with valid?
|
231
70
|
# @return Array for valid properties with the reasons
|
232
71
|
def list_invalid_properties
|
233
|
-
invalid_properties =
|
234
|
-
if @z_order_position.nil?
|
235
|
-
invalid_properties.push('invalid value for "z_order_position", z_order_position cannot be nil.')
|
236
|
-
end
|
237
|
-
|
238
|
-
if @type.nil?
|
239
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
240
|
-
end
|
241
|
-
|
242
|
-
if @shape_type.nil?
|
243
|
-
invalid_properties.push('invalid value for "shape_type", shape_type cannot be nil.')
|
244
|
-
end
|
245
|
-
|
72
|
+
invalid_properties = super
|
246
73
|
invalid_properties
|
247
74
|
end
|
248
75
|
|
249
76
|
# Check to see if the all the properties in the model are valid
|
250
77
|
# @return true if the model is valid
|
251
78
|
def valid?
|
252
|
-
return false if
|
253
|
-
return false if @type.nil?
|
254
|
-
type_validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
|
255
|
-
return false unless type_validator.valid?(@type)
|
256
|
-
return false if @shape_type.nil?
|
257
|
-
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'])
|
258
|
-
return false unless shape_type_validator.valid?(@shape_type)
|
79
|
+
return false if !super
|
259
80
|
true
|
260
81
|
end
|
261
82
|
|
262
|
-
# Custom attribute writer method checking allowed values (enum).
|
263
|
-
# @param [Object] type Object to be assigned
|
264
|
-
def type=(type)
|
265
|
-
validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
|
266
|
-
unless validator.valid?(type)
|
267
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
268
|
-
end
|
269
|
-
@type = type
|
270
|
-
end
|
271
|
-
|
272
|
-
# Custom attribute writer method checking allowed values (enum).
|
273
|
-
# @param [Object] shape_type Object to be assigned
|
274
|
-
def shape_type=(shape_type)
|
275
|
-
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'])
|
276
|
-
unless validator.valid?(shape_type)
|
277
|
-
fail ArgumentError, 'invalid value for "shape_type", must be one of #{validator.allowable_values}.'
|
278
|
-
end
|
279
|
-
@shape_type = shape_type
|
280
|
-
end
|
281
|
-
|
282
83
|
# Checks equality by comparing each attribute.
|
283
84
|
# @param [Object] Object to be compared
|
284
85
|
def ==(o)
|
@@ -299,8 +100,7 @@ module AsposeSlidesCloud
|
|
299
100
|
fill_format == o.fill_format &&
|
300
101
|
effect_format == o.effect_format &&
|
301
102
|
line_format == o.line_format &&
|
302
|
-
type == o.type
|
303
|
-
shape_type == o.shape_type
|
103
|
+
type == o.type
|
304
104
|
end
|
305
105
|
|
306
106
|
# @see the `==` method
|
@@ -312,7 +112,7 @@ module AsposeSlidesCloud
|
|
312
112
|
# Calculates hash code according to all attributes.
|
313
113
|
# @return [Fixnum] Hash code
|
314
114
|
def hash
|
315
|
-
[self_uri,
|
115
|
+
[self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type].hash
|
316
116
|
end
|
317
117
|
|
318
118
|
# Builds the object from hash
|