aspose_slides_cloud 20.7.0 → 20.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/TestData/ChartTest.pptx +0 -0
- data/lib/aspose_slides_cloud.rb +5 -3
- data/lib/aspose_slides_cloud/api/slides_api.rb +407 -0
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +165 -0
- data/lib/aspose_slides_cloud/api_client.rb +1 -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 -236
- 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 +12 -210
- data/lib/aspose_slides_cloud/models/chart_category.rb +16 -4
- 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 +11 -234
- data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +2 -2
- data/lib/aspose_slides_cloud/models/disc_usage.rb +2 -2
- data/lib/aspose_slides_cloud/models/document.rb +10 -32
- 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 +10 -200
- 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 -209
- data/lib/aspose_slides_cloud/models/group_shape.rb +11 -209
- data/lib/aspose_slides_cloud/models/html_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +2 -2
- 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 +10 -32
- 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 +2 -2
- data/lib/aspose_slides_cloud/models/master_slide.rb +10 -32
- 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/object_exist.rb +2 -2
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +12 -210
- 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 +11 -40
- data/lib/aspose_slides_cloud/models/picture_frame.rb +12 -236
- 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/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/resource_uri_element.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/series.rb +2 -2
- data/lib/aspose_slides_cloud/models/series_marker.rb +2 -2
- data/lib/aspose_slides_cloud/models/shape.rb +11 -234
- data/lib/aspose_slides_cloud/models/shape_base.rb +10 -32
- 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 +10 -32
- 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_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 -210
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +2 -2
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +11 -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 -210
- 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 +10 -32
- 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 -236
- data/lib/aspose_slides_cloud/models/view_properties.rb +10 -32
- 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 +313 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +1417 -63
- data/spec/extra/extra_spec.rb +66 -33
- data/testRules.json +31 -0
- metadata +4 -2
|
@@ -24,10 +24,7 @@ require 'date'
|
|
|
24
24
|
|
|
25
25
|
module AsposeSlidesCloud
|
|
26
26
|
# Picture fill.
|
|
27
|
-
class PictureFill
|
|
28
|
-
# Fill type.
|
|
29
|
-
attr_accessor :type
|
|
30
|
-
|
|
27
|
+
class PictureFill < FillFormat
|
|
31
28
|
# Percentage of image height that is cropped from the bottom.
|
|
32
29
|
attr_accessor :crop_bottom
|
|
33
30
|
|
|
@@ -79,8 +76,7 @@ module AsposeSlidesCloud
|
|
|
79
76
|
|
|
80
77
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
81
78
|
def self.attribute_map
|
|
82
|
-
{
|
|
83
|
-
:'type' => :'Type',
|
|
79
|
+
super.merge({
|
|
84
80
|
:'crop_bottom' => :'CropBottom',
|
|
85
81
|
:'crop_left' => :'CropLeft',
|
|
86
82
|
:'crop_right' => :'CropRight',
|
|
@@ -89,14 +85,13 @@ module AsposeSlidesCloud
|
|
|
89
85
|
:'image' => :'Image',
|
|
90
86
|
:'base64_data' => :'Base64Data',
|
|
91
87
|
:'svg_data' => :'SvgData',
|
|
92
|
-
:'picture_fill_mode' => :'PictureFillMode'
|
|
93
|
-
}
|
|
88
|
+
:'picture_fill_mode' => :'PictureFillMode',
|
|
89
|
+
})
|
|
94
90
|
end
|
|
95
91
|
|
|
96
92
|
# Attribute type mapping.
|
|
97
93
|
def self.swagger_types
|
|
98
|
-
{
|
|
99
|
-
:'type' => :'String',
|
|
94
|
+
super.merge({
|
|
100
95
|
:'crop_bottom' => :'Float',
|
|
101
96
|
:'crop_left' => :'Float',
|
|
102
97
|
:'crop_right' => :'Float',
|
|
@@ -105,23 +100,14 @@ module AsposeSlidesCloud
|
|
|
105
100
|
:'image' => :'ResourceUriElement',
|
|
106
101
|
:'base64_data' => :'String',
|
|
107
102
|
:'svg_data' => :'String',
|
|
108
|
-
:'picture_fill_mode' => :'String'
|
|
109
|
-
}
|
|
103
|
+
:'picture_fill_mode' => :'String',
|
|
104
|
+
})
|
|
110
105
|
end
|
|
111
106
|
|
|
112
107
|
# Initializes the object
|
|
113
108
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
114
109
|
def initialize(attributes = {})
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
# convert string to symbol for hash key
|
|
118
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
119
|
-
|
|
120
|
-
if attributes.has_key?(:'Type')
|
|
121
|
-
self.type = attributes[:'Type']
|
|
122
|
-
else
|
|
123
|
-
self.type = "Picture"
|
|
124
|
-
end
|
|
110
|
+
super
|
|
125
111
|
|
|
126
112
|
if attributes.has_key?(:'CropBottom')
|
|
127
113
|
self.crop_bottom = attributes[:'CropBottom']
|
|
@@ -158,16 +144,13 @@ module AsposeSlidesCloud
|
|
|
158
144
|
if attributes.has_key?(:'PictureFillMode')
|
|
159
145
|
self.picture_fill_mode = attributes[:'PictureFillMode']
|
|
160
146
|
end
|
|
147
|
+
self.type = "Picture"
|
|
161
148
|
end
|
|
162
149
|
|
|
163
150
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
164
151
|
# @return Array for valid properties with the reasons
|
|
165
152
|
def list_invalid_properties
|
|
166
|
-
invalid_properties =
|
|
167
|
-
if @type.nil?
|
|
168
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
169
|
-
end
|
|
170
|
-
|
|
153
|
+
invalid_properties = super
|
|
171
154
|
if @crop_bottom.nil?
|
|
172
155
|
invalid_properties.push('invalid value for "crop_bottom", crop_bottom cannot be nil.')
|
|
173
156
|
end
|
|
@@ -198,9 +181,7 @@ module AsposeSlidesCloud
|
|
|
198
181
|
# Check to see if the all the properties in the model are valid
|
|
199
182
|
# @return true if the model is valid
|
|
200
183
|
def valid?
|
|
201
|
-
return false if
|
|
202
|
-
type_validator = EnumAttributeValidator.new('String', ['NoFill', 'Solid', 'Gradient', 'Pattern', 'Picture', 'NotDefined'])
|
|
203
|
-
return false unless type_validator.valid?(@type)
|
|
184
|
+
return false if !super
|
|
204
185
|
return false if @crop_bottom.nil?
|
|
205
186
|
return false if @crop_left.nil?
|
|
206
187
|
return false if @crop_right.nil?
|
|
@@ -212,16 +193,6 @@ module AsposeSlidesCloud
|
|
|
212
193
|
true
|
|
213
194
|
end
|
|
214
195
|
|
|
215
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
216
|
-
# @param [Object] type Object to be assigned
|
|
217
|
-
def type=(type)
|
|
218
|
-
validator = EnumAttributeValidator.new('String', ['NoFill', 'Solid', 'Gradient', 'Pattern', 'Picture', 'NotDefined'])
|
|
219
|
-
unless validator.valid?(type)
|
|
220
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
|
221
|
-
end
|
|
222
|
-
@type = type
|
|
223
|
-
end
|
|
224
|
-
|
|
225
196
|
# Custom attribute writer method checking allowed values (enum).
|
|
226
197
|
# @param [Object] picture_fill_mode Object to be assigned
|
|
227
198
|
def picture_fill_mode=(picture_fill_mode)
|
|
@@ -24,61 +24,7 @@ require 'date'
|
|
|
24
24
|
|
|
25
25
|
module AsposeSlidesCloud
|
|
26
26
|
# Represents PictureFrame resource.
|
|
27
|
-
class PictureFrame
|
|
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
|
-
|
|
79
|
-
# Geometry shape type.
|
|
80
|
-
attr_accessor :geometry_shape_type
|
|
81
|
-
|
|
27
|
+
class PictureFrame < GeometryShape
|
|
82
28
|
# Fill format.
|
|
83
29
|
attr_accessor :picture_fill_format
|
|
84
30
|
|
|
@@ -106,214 +52,44 @@ module AsposeSlidesCloud
|
|
|
106
52
|
|
|
107
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
108
54
|
def self.attribute_map
|
|
109
|
-
{
|
|
110
|
-
:'
|
|
111
|
-
|
|
112
|
-
:'name' => :'Name',
|
|
113
|
-
:'width' => :'Width',
|
|
114
|
-
:'height' => :'Height',
|
|
115
|
-
:'alternative_text' => :'AlternativeText',
|
|
116
|
-
:'alternative_text_title' => :'AlternativeTextTitle',
|
|
117
|
-
:'hidden' => :'Hidden',
|
|
118
|
-
:'x' => :'X',
|
|
119
|
-
:'y' => :'Y',
|
|
120
|
-
:'z_order_position' => :'ZOrderPosition',
|
|
121
|
-
:'shapes' => :'Shapes',
|
|
122
|
-
:'fill_format' => :'FillFormat',
|
|
123
|
-
:'effect_format' => :'EffectFormat',
|
|
124
|
-
:'line_format' => :'LineFormat',
|
|
125
|
-
:'type' => :'Type',
|
|
126
|
-
:'shape_type' => :'ShapeType',
|
|
127
|
-
:'geometry_shape_type' => :'GeometryShapeType',
|
|
128
|
-
:'picture_fill_format' => :'PictureFillFormat'
|
|
129
|
-
}
|
|
55
|
+
super.merge({
|
|
56
|
+
:'picture_fill_format' => :'PictureFillFormat',
|
|
57
|
+
})
|
|
130
58
|
end
|
|
131
59
|
|
|
132
60
|
# Attribute type mapping.
|
|
133
61
|
def self.swagger_types
|
|
134
|
-
{
|
|
135
|
-
:'
|
|
136
|
-
|
|
137
|
-
:'name' => :'String',
|
|
138
|
-
:'width' => :'Float',
|
|
139
|
-
:'height' => :'Float',
|
|
140
|
-
:'alternative_text' => :'String',
|
|
141
|
-
:'alternative_text_title' => :'String',
|
|
142
|
-
:'hidden' => :'BOOLEAN',
|
|
143
|
-
:'x' => :'Float',
|
|
144
|
-
:'y' => :'Float',
|
|
145
|
-
:'z_order_position' => :'Integer',
|
|
146
|
-
:'shapes' => :'ResourceUriElement',
|
|
147
|
-
:'fill_format' => :'FillFormat',
|
|
148
|
-
:'effect_format' => :'EffectFormat',
|
|
149
|
-
:'line_format' => :'LineFormat',
|
|
150
|
-
:'type' => :'String',
|
|
151
|
-
:'shape_type' => :'String',
|
|
152
|
-
:'geometry_shape_type' => :'String',
|
|
153
|
-
:'picture_fill_format' => :'PictureFill'
|
|
154
|
-
}
|
|
62
|
+
super.merge({
|
|
63
|
+
:'picture_fill_format' => :'PictureFill',
|
|
64
|
+
})
|
|
155
65
|
end
|
|
156
66
|
|
|
157
67
|
# Initializes the object
|
|
158
68
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
159
69
|
def initialize(attributes = {})
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
# convert string to symbol for hash key
|
|
163
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
164
|
-
|
|
165
|
-
if attributes.has_key?(:'SelfUri')
|
|
166
|
-
self.self_uri = attributes[:'SelfUri']
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
if attributes.has_key?(:'AlternateLinks')
|
|
170
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
|
171
|
-
self.alternate_links = value
|
|
172
|
-
end
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
if attributes.has_key?(:'Name')
|
|
176
|
-
self.name = attributes[:'Name']
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
if attributes.has_key?(:'Width')
|
|
180
|
-
self.width = attributes[:'Width']
|
|
181
|
-
end
|
|
182
|
-
|
|
183
|
-
if attributes.has_key?(:'Height')
|
|
184
|
-
self.height = attributes[:'Height']
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
if attributes.has_key?(:'AlternativeText')
|
|
188
|
-
self.alternative_text = attributes[:'AlternativeText']
|
|
189
|
-
end
|
|
190
|
-
|
|
191
|
-
if attributes.has_key?(:'AlternativeTextTitle')
|
|
192
|
-
self.alternative_text_title = attributes[:'AlternativeTextTitle']
|
|
193
|
-
end
|
|
194
|
-
|
|
195
|
-
if attributes.has_key?(:'Hidden')
|
|
196
|
-
self.hidden = attributes[:'Hidden']
|
|
197
|
-
end
|
|
198
|
-
|
|
199
|
-
if attributes.has_key?(:'X')
|
|
200
|
-
self.x = attributes[:'X']
|
|
201
|
-
end
|
|
202
|
-
|
|
203
|
-
if attributes.has_key?(:'Y')
|
|
204
|
-
self.y = attributes[:'Y']
|
|
205
|
-
end
|
|
206
|
-
|
|
207
|
-
if attributes.has_key?(:'ZOrderPosition')
|
|
208
|
-
self.z_order_position = attributes[:'ZOrderPosition']
|
|
209
|
-
end
|
|
210
|
-
|
|
211
|
-
if attributes.has_key?(:'Shapes')
|
|
212
|
-
self.shapes = attributes[:'Shapes']
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
if attributes.has_key?(:'FillFormat')
|
|
216
|
-
self.fill_format = attributes[:'FillFormat']
|
|
217
|
-
end
|
|
218
|
-
|
|
219
|
-
if attributes.has_key?(:'EffectFormat')
|
|
220
|
-
self.effect_format = attributes[:'EffectFormat']
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
if attributes.has_key?(:'LineFormat')
|
|
224
|
-
self.line_format = attributes[:'LineFormat']
|
|
225
|
-
end
|
|
226
|
-
|
|
227
|
-
if attributes.has_key?(:'Type')
|
|
228
|
-
self.type = attributes[:'Type']
|
|
229
|
-
else
|
|
230
|
-
self.type = "PictureFrame"
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
if attributes.has_key?(:'ShapeType')
|
|
234
|
-
self.shape_type = attributes[:'ShapeType']
|
|
235
|
-
else
|
|
236
|
-
self.shape_type = "PictureFrame"
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
if attributes.has_key?(:'GeometryShapeType')
|
|
240
|
-
self.geometry_shape_type = attributes[:'GeometryShapeType']
|
|
241
|
-
end
|
|
70
|
+
super
|
|
242
71
|
|
|
243
72
|
if attributes.has_key?(:'PictureFillFormat')
|
|
244
73
|
self.picture_fill_format = attributes[:'PictureFillFormat']
|
|
245
74
|
end
|
|
75
|
+
self.type = "PictureFrame"
|
|
76
|
+
self.shape_type = "PictureFrame"
|
|
246
77
|
end
|
|
247
78
|
|
|
248
79
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
249
80
|
# @return Array for valid properties with the reasons
|
|
250
81
|
def list_invalid_properties
|
|
251
|
-
invalid_properties =
|
|
252
|
-
if @z_order_position.nil?
|
|
253
|
-
invalid_properties.push('invalid value for "z_order_position", z_order_position cannot be nil.')
|
|
254
|
-
end
|
|
255
|
-
|
|
256
|
-
if @type.nil?
|
|
257
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
if @shape_type.nil?
|
|
261
|
-
invalid_properties.push('invalid value for "shape_type", shape_type cannot be nil.')
|
|
262
|
-
end
|
|
263
|
-
|
|
264
|
-
if @geometry_shape_type.nil?
|
|
265
|
-
invalid_properties.push('invalid value for "geometry_shape_type", geometry_shape_type cannot be nil.')
|
|
266
|
-
end
|
|
267
|
-
|
|
82
|
+
invalid_properties = super
|
|
268
83
|
invalid_properties
|
|
269
84
|
end
|
|
270
85
|
|
|
271
86
|
# Check to see if the all the properties in the model are valid
|
|
272
87
|
# @return true if the model is valid
|
|
273
88
|
def valid?
|
|
274
|
-
return false if
|
|
275
|
-
return false if @type.nil?
|
|
276
|
-
type_validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
|
|
277
|
-
return false unless type_validator.valid?(@type)
|
|
278
|
-
return false if @shape_type.nil?
|
|
279
|
-
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'])
|
|
280
|
-
return false unless shape_type_validator.valid?(@shape_type)
|
|
281
|
-
return false if @geometry_shape_type.nil?
|
|
282
|
-
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'])
|
|
283
|
-
return false unless geometry_shape_type_validator.valid?(@geometry_shape_type)
|
|
89
|
+
return false if !super
|
|
284
90
|
true
|
|
285
91
|
end
|
|
286
92
|
|
|
287
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
288
|
-
# @param [Object] type Object to be assigned
|
|
289
|
-
def type=(type)
|
|
290
|
-
validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
|
|
291
|
-
unless validator.valid?(type)
|
|
292
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
|
293
|
-
end
|
|
294
|
-
@type = type
|
|
295
|
-
end
|
|
296
|
-
|
|
297
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
298
|
-
# @param [Object] shape_type Object to be assigned
|
|
299
|
-
def shape_type=(shape_type)
|
|
300
|
-
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'])
|
|
301
|
-
unless validator.valid?(shape_type)
|
|
302
|
-
fail ArgumentError, 'invalid value for "shape_type", must be one of #{validator.allowable_values}.'
|
|
303
|
-
end
|
|
304
|
-
@shape_type = shape_type
|
|
305
|
-
end
|
|
306
|
-
|
|
307
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
308
|
-
# @param [Object] geometry_shape_type Object to be assigned
|
|
309
|
-
def geometry_shape_type=(geometry_shape_type)
|
|
310
|
-
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'])
|
|
311
|
-
unless validator.valid?(geometry_shape_type)
|
|
312
|
-
fail ArgumentError, 'invalid value for "geometry_shape_type", must be one of #{validator.allowable_values}.'
|
|
313
|
-
end
|
|
314
|
-
@geometry_shape_type = geometry_shape_type
|
|
315
|
-
end
|
|
316
|
-
|
|
317
93
|
# Checks equality by comparing each attribute.
|
|
318
94
|
# @param [Object] Object to be compared
|
|
319
95
|
def ==(o)
|
|
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
|
|
|
35
35
|
def self.attribute_map
|
|
36
36
|
{
|
|
37
37
|
:'input' => :'Input',
|
|
38
|
-
:'tasks' => :'Tasks'
|
|
38
|
+
:'tasks' => :'Tasks',
|
|
39
39
|
}
|
|
40
40
|
end
|
|
41
41
|
|
|
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
|
|
|
43
43
|
def self.swagger_types
|
|
44
44
|
{
|
|
45
45
|
:'input' => :'Input',
|
|
46
|
-
:'tasks' => :'Array<Task>'
|
|
46
|
+
:'tasks' => :'Array<Task>',
|
|
47
47
|
}
|
|
48
48
|
end
|
|
49
49
|
|
|
@@ -24,13 +24,7 @@ require 'date'
|
|
|
24
24
|
|
|
25
25
|
module AsposeSlidesCloud
|
|
26
26
|
# Represents placeholder
|
|
27
|
-
class Placeholder
|
|
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
|
-
|
|
27
|
+
class Placeholder < ResourceBase
|
|
34
28
|
# Index.
|
|
35
29
|
attr_accessor :index
|
|
36
30
|
|
|
@@ -70,47 +64,30 @@ module AsposeSlidesCloud
|
|
|
70
64
|
|
|
71
65
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
72
66
|
def self.attribute_map
|
|
73
|
-
{
|
|
74
|
-
:'self_uri' => :'SelfUri',
|
|
75
|
-
:'alternate_links' => :'AlternateLinks',
|
|
67
|
+
super.merge({
|
|
76
68
|
:'index' => :'Index',
|
|
77
69
|
:'orientation' => :'Orientation',
|
|
78
70
|
:'size' => :'Size',
|
|
79
71
|
:'type' => :'Type',
|
|
80
|
-
:'shape' => :'Shape'
|
|
81
|
-
}
|
|
72
|
+
:'shape' => :'Shape',
|
|
73
|
+
})
|
|
82
74
|
end
|
|
83
75
|
|
|
84
76
|
# Attribute type mapping.
|
|
85
77
|
def self.swagger_types
|
|
86
|
-
{
|
|
87
|
-
:'self_uri' => :'ResourceUri',
|
|
88
|
-
:'alternate_links' => :'Array<ResourceUri>',
|
|
78
|
+
super.merge({
|
|
89
79
|
:'index' => :'Integer',
|
|
90
80
|
:'orientation' => :'String',
|
|
91
81
|
:'size' => :'String',
|
|
92
82
|
:'type' => :'String',
|
|
93
|
-
:'shape' => :'ResourceUriElement'
|
|
94
|
-
}
|
|
83
|
+
:'shape' => :'ResourceUriElement',
|
|
84
|
+
})
|
|
95
85
|
end
|
|
96
86
|
|
|
97
87
|
# Initializes the object
|
|
98
88
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
99
89
|
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?(:'SelfUri')
|
|
106
|
-
self.self_uri = attributes[:'SelfUri']
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
if attributes.has_key?(:'AlternateLinks')
|
|
110
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
|
111
|
-
self.alternate_links = value
|
|
112
|
-
end
|
|
113
|
-
end
|
|
90
|
+
super
|
|
114
91
|
|
|
115
92
|
if attributes.has_key?(:'Index')
|
|
116
93
|
self.index = attributes[:'Index']
|
|
@@ -136,7 +113,7 @@ module AsposeSlidesCloud
|
|
|
136
113
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
137
114
|
# @return Array for valid properties with the reasons
|
|
138
115
|
def list_invalid_properties
|
|
139
|
-
invalid_properties =
|
|
116
|
+
invalid_properties = super
|
|
140
117
|
if @index.nil?
|
|
141
118
|
invalid_properties.push('invalid value for "index", index cannot be nil.')
|
|
142
119
|
end
|
|
@@ -159,6 +136,7 @@ module AsposeSlidesCloud
|
|
|
159
136
|
# Check to see if the all the properties in the model are valid
|
|
160
137
|
# @return true if the model is valid
|
|
161
138
|
def valid?
|
|
139
|
+
return false if !super
|
|
162
140
|
return false if @index.nil?
|
|
163
141
|
return false if @orientation.nil?
|
|
164
142
|
orientation_validator = EnumAttributeValidator.new('String', ['Horizontal', 'Vertical'])
|