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
|
# Update shape task.
|
|
27
|
-
class UpdateShape
|
|
28
|
-
# Task type.
|
|
29
|
-
attr_accessor :type
|
|
30
|
-
|
|
27
|
+
class UpdateShape < Task
|
|
31
28
|
# Shape DTO.
|
|
32
29
|
attr_accessor :shape
|
|
33
30
|
|
|
@@ -58,35 +55,24 @@ module AsposeSlidesCloud
|
|
|
58
55
|
|
|
59
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
60
57
|
def self.attribute_map
|
|
61
|
-
{
|
|
62
|
-
:'type' => :'Type',
|
|
58
|
+
super.merge({
|
|
63
59
|
:'shape' => :'Shape',
|
|
64
|
-
:'shape_path' => :'ShapePath'
|
|
65
|
-
}
|
|
60
|
+
:'shape_path' => :'ShapePath',
|
|
61
|
+
})
|
|
66
62
|
end
|
|
67
63
|
|
|
68
64
|
# Attribute type mapping.
|
|
69
65
|
def self.swagger_types
|
|
70
|
-
{
|
|
71
|
-
:'type' => :'String',
|
|
66
|
+
super.merge({
|
|
72
67
|
:'shape' => :'ShapeBase',
|
|
73
|
-
:'shape_path' => :'String'
|
|
74
|
-
}
|
|
68
|
+
:'shape_path' => :'String',
|
|
69
|
+
})
|
|
75
70
|
end
|
|
76
71
|
|
|
77
72
|
# Initializes the object
|
|
78
73
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
79
74
|
def initialize(attributes = {})
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
# convert string to symbol for hash key
|
|
83
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
84
|
-
|
|
85
|
-
if attributes.has_key?(:'Type')
|
|
86
|
-
self.type = attributes[:'Type']
|
|
87
|
-
else
|
|
88
|
-
self.type = "UpdateShape"
|
|
89
|
-
end
|
|
75
|
+
super
|
|
90
76
|
|
|
91
77
|
if attributes.has_key?(:'Shape')
|
|
92
78
|
self.shape = attributes[:'Shape']
|
|
@@ -95,38 +81,23 @@ module AsposeSlidesCloud
|
|
|
95
81
|
if attributes.has_key?(:'ShapePath')
|
|
96
82
|
self.shape_path = attributes[:'ShapePath']
|
|
97
83
|
end
|
|
84
|
+
self.type = "UpdateShape"
|
|
98
85
|
end
|
|
99
86
|
|
|
100
87
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
101
88
|
# @return Array for valid properties with the reasons
|
|
102
89
|
def list_invalid_properties
|
|
103
|
-
invalid_properties =
|
|
104
|
-
if @type.nil?
|
|
105
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
106
|
-
end
|
|
107
|
-
|
|
90
|
+
invalid_properties = super
|
|
108
91
|
invalid_properties
|
|
109
92
|
end
|
|
110
93
|
|
|
111
94
|
# Check to see if the all the properties in the model are valid
|
|
112
95
|
# @return true if the model is valid
|
|
113
96
|
def valid?
|
|
114
|
-
return false if
|
|
115
|
-
type_validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
|
116
|
-
return false unless type_validator.valid?(@type)
|
|
97
|
+
return false if !super
|
|
117
98
|
true
|
|
118
99
|
end
|
|
119
100
|
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
121
|
-
# @param [Object] type Object to be assigned
|
|
122
|
-
def type=(type)
|
|
123
|
-
validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
|
124
|
-
unless validator.valid?(type)
|
|
125
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
|
126
|
-
end
|
|
127
|
-
@type = type
|
|
128
|
-
end
|
|
129
|
-
|
|
130
101
|
# Checks equality by comparing each attribute.
|
|
131
102
|
# @param [Object] Object to be compared
|
|
132
103
|
def ==(o)
|
|
@@ -24,61 +24,7 @@ require 'date'
|
|
|
24
24
|
|
|
25
25
|
module AsposeSlidesCloud
|
|
26
26
|
# Represents VideoFrame resource.
|
|
27
|
-
class VideoFrame
|
|
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 VideoFrame < GeometryShape
|
|
82
28
|
# Determines whether a video is shown in full screen mode.
|
|
83
29
|
attr_accessor :full_screen_mode
|
|
84
30
|
|
|
@@ -124,151 +70,34 @@ module AsposeSlidesCloud
|
|
|
124
70
|
|
|
125
71
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
126
72
|
def self.attribute_map
|
|
127
|
-
{
|
|
128
|
-
:'self_uri' => :'SelfUri',
|
|
129
|
-
:'alternate_links' => :'AlternateLinks',
|
|
130
|
-
:'name' => :'Name',
|
|
131
|
-
:'width' => :'Width',
|
|
132
|
-
:'height' => :'Height',
|
|
133
|
-
:'alternative_text' => :'AlternativeText',
|
|
134
|
-
:'alternative_text_title' => :'AlternativeTextTitle',
|
|
135
|
-
:'hidden' => :'Hidden',
|
|
136
|
-
:'x' => :'X',
|
|
137
|
-
:'y' => :'Y',
|
|
138
|
-
:'z_order_position' => :'ZOrderPosition',
|
|
139
|
-
:'shapes' => :'Shapes',
|
|
140
|
-
:'fill_format' => :'FillFormat',
|
|
141
|
-
:'effect_format' => :'EffectFormat',
|
|
142
|
-
:'line_format' => :'LineFormat',
|
|
143
|
-
:'type' => :'Type',
|
|
144
|
-
:'shape_type' => :'ShapeType',
|
|
145
|
-
:'geometry_shape_type' => :'GeometryShapeType',
|
|
73
|
+
super.merge({
|
|
146
74
|
:'full_screen_mode' => :'FullScreenMode',
|
|
147
75
|
:'hide_at_showing' => :'HideAtShowing',
|
|
148
76
|
:'play_loop_mode' => :'PlayLoopMode',
|
|
149
77
|
:'play_mode' => :'PlayMode',
|
|
150
78
|
:'rewind_video' => :'RewindVideo',
|
|
151
79
|
:'volume' => :'Volume',
|
|
152
|
-
:'base64_data' => :'Base64Data'
|
|
153
|
-
}
|
|
80
|
+
:'base64_data' => :'Base64Data',
|
|
81
|
+
})
|
|
154
82
|
end
|
|
155
83
|
|
|
156
84
|
# Attribute type mapping.
|
|
157
85
|
def self.swagger_types
|
|
158
|
-
{
|
|
159
|
-
:'self_uri' => :'ResourceUri',
|
|
160
|
-
:'alternate_links' => :'Array<ResourceUri>',
|
|
161
|
-
:'name' => :'String',
|
|
162
|
-
:'width' => :'Float',
|
|
163
|
-
:'height' => :'Float',
|
|
164
|
-
:'alternative_text' => :'String',
|
|
165
|
-
:'alternative_text_title' => :'String',
|
|
166
|
-
:'hidden' => :'BOOLEAN',
|
|
167
|
-
:'x' => :'Float',
|
|
168
|
-
:'y' => :'Float',
|
|
169
|
-
:'z_order_position' => :'Integer',
|
|
170
|
-
:'shapes' => :'ResourceUriElement',
|
|
171
|
-
:'fill_format' => :'FillFormat',
|
|
172
|
-
:'effect_format' => :'EffectFormat',
|
|
173
|
-
:'line_format' => :'LineFormat',
|
|
174
|
-
:'type' => :'String',
|
|
175
|
-
:'shape_type' => :'String',
|
|
176
|
-
:'geometry_shape_type' => :'String',
|
|
86
|
+
super.merge({
|
|
177
87
|
:'full_screen_mode' => :'BOOLEAN',
|
|
178
88
|
:'hide_at_showing' => :'BOOLEAN',
|
|
179
89
|
:'play_loop_mode' => :'BOOLEAN',
|
|
180
90
|
:'play_mode' => :'String',
|
|
181
91
|
:'rewind_video' => :'BOOLEAN',
|
|
182
92
|
:'volume' => :'String',
|
|
183
|
-
:'base64_data' => :'String'
|
|
184
|
-
}
|
|
93
|
+
:'base64_data' => :'String',
|
|
94
|
+
})
|
|
185
95
|
end
|
|
186
96
|
|
|
187
97
|
# Initializes the object
|
|
188
98
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
189
99
|
def initialize(attributes = {})
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
# convert string to symbol for hash key
|
|
193
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
194
|
-
|
|
195
|
-
if attributes.has_key?(:'SelfUri')
|
|
196
|
-
self.self_uri = attributes[:'SelfUri']
|
|
197
|
-
end
|
|
198
|
-
|
|
199
|
-
if attributes.has_key?(:'AlternateLinks')
|
|
200
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
|
201
|
-
self.alternate_links = value
|
|
202
|
-
end
|
|
203
|
-
end
|
|
204
|
-
|
|
205
|
-
if attributes.has_key?(:'Name')
|
|
206
|
-
self.name = attributes[:'Name']
|
|
207
|
-
end
|
|
208
|
-
|
|
209
|
-
if attributes.has_key?(:'Width')
|
|
210
|
-
self.width = attributes[:'Width']
|
|
211
|
-
end
|
|
212
|
-
|
|
213
|
-
if attributes.has_key?(:'Height')
|
|
214
|
-
self.height = attributes[:'Height']
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
if attributes.has_key?(:'AlternativeText')
|
|
218
|
-
self.alternative_text = attributes[:'AlternativeText']
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
if attributes.has_key?(:'AlternativeTextTitle')
|
|
222
|
-
self.alternative_text_title = attributes[:'AlternativeTextTitle']
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
if attributes.has_key?(:'Hidden')
|
|
226
|
-
self.hidden = attributes[:'Hidden']
|
|
227
|
-
end
|
|
228
|
-
|
|
229
|
-
if attributes.has_key?(:'X')
|
|
230
|
-
self.x = attributes[:'X']
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
if attributes.has_key?(:'Y')
|
|
234
|
-
self.y = attributes[:'Y']
|
|
235
|
-
end
|
|
236
|
-
|
|
237
|
-
if attributes.has_key?(:'ZOrderPosition')
|
|
238
|
-
self.z_order_position = attributes[:'ZOrderPosition']
|
|
239
|
-
end
|
|
240
|
-
|
|
241
|
-
if attributes.has_key?(:'Shapes')
|
|
242
|
-
self.shapes = attributes[:'Shapes']
|
|
243
|
-
end
|
|
244
|
-
|
|
245
|
-
if attributes.has_key?(:'FillFormat')
|
|
246
|
-
self.fill_format = attributes[:'FillFormat']
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
if attributes.has_key?(:'EffectFormat')
|
|
250
|
-
self.effect_format = attributes[:'EffectFormat']
|
|
251
|
-
end
|
|
252
|
-
|
|
253
|
-
if attributes.has_key?(:'LineFormat')
|
|
254
|
-
self.line_format = attributes[:'LineFormat']
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
if attributes.has_key?(:'Type')
|
|
258
|
-
self.type = attributes[:'Type']
|
|
259
|
-
else
|
|
260
|
-
self.type = "VideoFrame"
|
|
261
|
-
end
|
|
262
|
-
|
|
263
|
-
if attributes.has_key?(:'ShapeType')
|
|
264
|
-
self.shape_type = attributes[:'ShapeType']
|
|
265
|
-
else
|
|
266
|
-
self.shape_type = "VideoFrame"
|
|
267
|
-
end
|
|
268
|
-
|
|
269
|
-
if attributes.has_key?(:'GeometryShapeType')
|
|
270
|
-
self.geometry_shape_type = attributes[:'GeometryShapeType']
|
|
271
|
-
end
|
|
100
|
+
super
|
|
272
101
|
|
|
273
102
|
if attributes.has_key?(:'FullScreenMode')
|
|
274
103
|
self.full_screen_mode = attributes[:'FullScreenMode']
|
|
@@ -297,44 +126,21 @@ module AsposeSlidesCloud
|
|
|
297
126
|
if attributes.has_key?(:'Base64Data')
|
|
298
127
|
self.base64_data = attributes[:'Base64Data']
|
|
299
128
|
end
|
|
129
|
+
self.type = "VideoFrame"
|
|
130
|
+
self.shape_type = "VideoFrame"
|
|
300
131
|
end
|
|
301
132
|
|
|
302
133
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
303
134
|
# @return Array for valid properties with the reasons
|
|
304
135
|
def list_invalid_properties
|
|
305
|
-
invalid_properties =
|
|
306
|
-
if @z_order_position.nil?
|
|
307
|
-
invalid_properties.push('invalid value for "z_order_position", z_order_position cannot be nil.')
|
|
308
|
-
end
|
|
309
|
-
|
|
310
|
-
if @type.nil?
|
|
311
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
312
|
-
end
|
|
313
|
-
|
|
314
|
-
if @shape_type.nil?
|
|
315
|
-
invalid_properties.push('invalid value for "shape_type", shape_type cannot be nil.')
|
|
316
|
-
end
|
|
317
|
-
|
|
318
|
-
if @geometry_shape_type.nil?
|
|
319
|
-
invalid_properties.push('invalid value for "geometry_shape_type", geometry_shape_type cannot be nil.')
|
|
320
|
-
end
|
|
321
|
-
|
|
136
|
+
invalid_properties = super
|
|
322
137
|
invalid_properties
|
|
323
138
|
end
|
|
324
139
|
|
|
325
140
|
# Check to see if the all the properties in the model are valid
|
|
326
141
|
# @return true if the model is valid
|
|
327
142
|
def valid?
|
|
328
|
-
return false if
|
|
329
|
-
return false if @type.nil?
|
|
330
|
-
type_validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
|
|
331
|
-
return false unless type_validator.valid?(@type)
|
|
332
|
-
return false if @shape_type.nil?
|
|
333
|
-
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'])
|
|
334
|
-
return false unless shape_type_validator.valid?(@shape_type)
|
|
335
|
-
return false if @geometry_shape_type.nil?
|
|
336
|
-
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'])
|
|
337
|
-
return false unless geometry_shape_type_validator.valid?(@geometry_shape_type)
|
|
143
|
+
return false if !super
|
|
338
144
|
play_mode_validator = EnumAttributeValidator.new('String', ['Auto', 'OnClick', 'AllSlides', 'Mixed'])
|
|
339
145
|
return false unless play_mode_validator.valid?(@play_mode)
|
|
340
146
|
volume_validator = EnumAttributeValidator.new('String', ['Mute', 'Low', 'Medium', 'Loud', 'Mixed'])
|
|
@@ -342,36 +148,6 @@ module AsposeSlidesCloud
|
|
|
342
148
|
true
|
|
343
149
|
end
|
|
344
150
|
|
|
345
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
346
|
-
# @param [Object] type Object to be assigned
|
|
347
|
-
def type=(type)
|
|
348
|
-
validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
|
|
349
|
-
unless validator.valid?(type)
|
|
350
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
|
351
|
-
end
|
|
352
|
-
@type = type
|
|
353
|
-
end
|
|
354
|
-
|
|
355
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
356
|
-
# @param [Object] shape_type Object to be assigned
|
|
357
|
-
def shape_type=(shape_type)
|
|
358
|
-
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'])
|
|
359
|
-
unless validator.valid?(shape_type)
|
|
360
|
-
fail ArgumentError, 'invalid value for "shape_type", must be one of #{validator.allowable_values}.'
|
|
361
|
-
end
|
|
362
|
-
@shape_type = shape_type
|
|
363
|
-
end
|
|
364
|
-
|
|
365
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
366
|
-
# @param [Object] geometry_shape_type Object to be assigned
|
|
367
|
-
def geometry_shape_type=(geometry_shape_type)
|
|
368
|
-
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'])
|
|
369
|
-
unless validator.valid?(geometry_shape_type)
|
|
370
|
-
fail ArgumentError, 'invalid value for "geometry_shape_type", must be one of #{validator.allowable_values}.'
|
|
371
|
-
end
|
|
372
|
-
@geometry_shape_type = geometry_shape_type
|
|
373
|
-
end
|
|
374
|
-
|
|
375
151
|
# Custom attribute writer method checking allowed values (enum).
|
|
376
152
|
# @param [Object] play_mode Object to be assigned
|
|
377
153
|
def play_mode=(play_mode)
|
|
@@ -24,13 +24,7 @@ require 'date'
|
|
|
24
24
|
|
|
25
25
|
module AsposeSlidesCloud
|
|
26
26
|
# Slides document properties.
|
|
27
|
-
class ViewProperties
|
|
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 ViewProperties < ResourceBase
|
|
34
28
|
# Last used view mode.
|
|
35
29
|
attr_accessor :last_view
|
|
36
30
|
|
|
@@ -82,9 +76,7 @@ module AsposeSlidesCloud
|
|
|
82
76
|
|
|
83
77
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
84
78
|
def self.attribute_map
|
|
85
|
-
{
|
|
86
|
-
:'self_uri' => :'SelfUri',
|
|
87
|
-
:'alternate_links' => :'AlternateLinks',
|
|
79
|
+
super.merge({
|
|
88
80
|
:'last_view' => :'LastView',
|
|
89
81
|
:'horizontal_bar_state' => :'HorizontalBarState',
|
|
90
82
|
:'vertical_bar_state' => :'VerticalBarState',
|
|
@@ -93,15 +85,13 @@ module AsposeSlidesCloud
|
|
|
93
85
|
:'restored_top' => :'RestoredTop',
|
|
94
86
|
:'slide_view_properties' => :'SlideViewProperties',
|
|
95
87
|
:'notes_view_properties' => :'NotesViewProperties',
|
|
96
|
-
:'show_comments' => :'ShowComments'
|
|
97
|
-
}
|
|
88
|
+
:'show_comments' => :'ShowComments',
|
|
89
|
+
})
|
|
98
90
|
end
|
|
99
91
|
|
|
100
92
|
# Attribute type mapping.
|
|
101
93
|
def self.swagger_types
|
|
102
|
-
{
|
|
103
|
-
:'self_uri' => :'ResourceUri',
|
|
104
|
-
:'alternate_links' => :'Array<ResourceUri>',
|
|
94
|
+
super.merge({
|
|
105
95
|
:'last_view' => :'String',
|
|
106
96
|
:'horizontal_bar_state' => :'String',
|
|
107
97
|
:'vertical_bar_state' => :'String',
|
|
@@ -110,27 +100,14 @@ module AsposeSlidesCloud
|
|
|
110
100
|
:'restored_top' => :'NormalViewRestoredProperties',
|
|
111
101
|
:'slide_view_properties' => :'CommonSlideViewProperties',
|
|
112
102
|
:'notes_view_properties' => :'CommonSlideViewProperties',
|
|
113
|
-
:'show_comments' => :'String'
|
|
114
|
-
}
|
|
103
|
+
:'show_comments' => :'String',
|
|
104
|
+
})
|
|
115
105
|
end
|
|
116
106
|
|
|
117
107
|
# Initializes the object
|
|
118
108
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
119
109
|
def initialize(attributes = {})
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
# convert string to symbol for hash key
|
|
123
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
124
|
-
|
|
125
|
-
if attributes.has_key?(:'SelfUri')
|
|
126
|
-
self.self_uri = attributes[:'SelfUri']
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
if attributes.has_key?(:'AlternateLinks')
|
|
130
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
|
131
|
-
self.alternate_links = value
|
|
132
|
-
end
|
|
133
|
-
end
|
|
110
|
+
super
|
|
134
111
|
|
|
135
112
|
if attributes.has_key?(:'LastView')
|
|
136
113
|
self.last_view = attributes[:'LastView']
|
|
@@ -172,13 +149,14 @@ module AsposeSlidesCloud
|
|
|
172
149
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
173
150
|
# @return Array for valid properties with the reasons
|
|
174
151
|
def list_invalid_properties
|
|
175
|
-
invalid_properties =
|
|
152
|
+
invalid_properties = super
|
|
176
153
|
invalid_properties
|
|
177
154
|
end
|
|
178
155
|
|
|
179
156
|
# Check to see if the all the properties in the model are valid
|
|
180
157
|
# @return true if the model is valid
|
|
181
158
|
def valid?
|
|
159
|
+
return false if !super
|
|
182
160
|
last_view_validator = EnumAttributeValidator.new('String', ['NotDefined', 'SlideView', 'SlideMasterView', 'NotesView', 'HandoutView', 'NotesMasterView', 'OutlineView', 'SlideSorterView', 'SlideThumbnailView'])
|
|
183
161
|
return false unless last_view_validator.valid?(@last_view)
|
|
184
162
|
horizontal_bar_state_validator = EnumAttributeValidator.new('String', ['Minimized', 'Restored', 'Maximized'])
|