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,51 +24,28 @@ require 'date'
|
|
|
24
24
|
|
|
25
25
|
module AsposeSlidesCloud
|
|
26
26
|
# Master slide list.
|
|
27
|
-
class MasterSlides
|
|
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 MasterSlides < ResourceBase
|
|
34
28
|
# List of slide links.
|
|
35
29
|
attr_accessor :slide_list
|
|
36
30
|
|
|
37
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
38
32
|
def self.attribute_map
|
|
39
|
-
{
|
|
40
|
-
:'
|
|
41
|
-
|
|
42
|
-
:'slide_list' => :'SlideList'
|
|
43
|
-
}
|
|
33
|
+
super.merge({
|
|
34
|
+
:'slide_list' => :'SlideList',
|
|
35
|
+
})
|
|
44
36
|
end
|
|
45
37
|
|
|
46
38
|
# Attribute type mapping.
|
|
47
39
|
def self.swagger_types
|
|
48
|
-
{
|
|
49
|
-
:'
|
|
50
|
-
|
|
51
|
-
:'slide_list' => :'Array<ResourceUriElement>'
|
|
52
|
-
}
|
|
40
|
+
super.merge({
|
|
41
|
+
:'slide_list' => :'Array<ResourceUriElement>',
|
|
42
|
+
})
|
|
53
43
|
end
|
|
54
44
|
|
|
55
45
|
# Initializes the object
|
|
56
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
57
47
|
def initialize(attributes = {})
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
# convert string to symbol for hash key
|
|
61
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
62
|
-
|
|
63
|
-
if attributes.has_key?(:'SelfUri')
|
|
64
|
-
self.self_uri = attributes[:'SelfUri']
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
if attributes.has_key?(:'AlternateLinks')
|
|
68
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
|
69
|
-
self.alternate_links = value
|
|
70
|
-
end
|
|
71
|
-
end
|
|
48
|
+
super
|
|
72
49
|
|
|
73
50
|
if attributes.has_key?(:'SlideList')
|
|
74
51
|
if (value = attributes[:'SlideList']).is_a?(Array)
|
|
@@ -80,13 +57,14 @@ module AsposeSlidesCloud
|
|
|
80
57
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
81
58
|
# @return Array for valid properties with the reasons
|
|
82
59
|
def list_invalid_properties
|
|
83
|
-
invalid_properties =
|
|
60
|
+
invalid_properties = super
|
|
84
61
|
invalid_properties
|
|
85
62
|
end
|
|
86
63
|
|
|
87
64
|
# Check to see if the all the properties in the model are valid
|
|
88
65
|
# @return true if the model is valid
|
|
89
66
|
def valid?
|
|
67
|
+
return false if !super
|
|
90
68
|
true
|
|
91
69
|
end
|
|
92
70
|
|
|
@@ -24,10 +24,7 @@ require 'date'
|
|
|
24
24
|
|
|
25
25
|
module AsposeSlidesCloud
|
|
26
26
|
# Merge presentations task.
|
|
27
|
-
class Merge
|
|
28
|
-
# Task type.
|
|
29
|
-
attr_accessor :type
|
|
30
|
-
|
|
27
|
+
class Merge < Task
|
|
31
28
|
# Information about documents and slides being merging sources.
|
|
32
29
|
attr_accessor :presentations
|
|
33
30
|
|
|
@@ -55,71 +52,45 @@ module AsposeSlidesCloud
|
|
|
55
52
|
|
|
56
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
57
54
|
def self.attribute_map
|
|
58
|
-
{
|
|
59
|
-
:'
|
|
60
|
-
|
|
61
|
-
}
|
|
55
|
+
super.merge({
|
|
56
|
+
:'presentations' => :'Presentations',
|
|
57
|
+
})
|
|
62
58
|
end
|
|
63
59
|
|
|
64
60
|
# Attribute type mapping.
|
|
65
61
|
def self.swagger_types
|
|
66
|
-
{
|
|
67
|
-
:'
|
|
68
|
-
|
|
69
|
-
}
|
|
62
|
+
super.merge({
|
|
63
|
+
:'presentations' => :'Array<MergingSource>',
|
|
64
|
+
})
|
|
70
65
|
end
|
|
71
66
|
|
|
72
67
|
# Initializes the object
|
|
73
68
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
74
69
|
def initialize(attributes = {})
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
# convert string to symbol for hash key
|
|
78
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
79
|
-
|
|
80
|
-
if attributes.has_key?(:'Type')
|
|
81
|
-
self.type = attributes[:'Type']
|
|
82
|
-
else
|
|
83
|
-
self.type = "Merge"
|
|
84
|
-
end
|
|
70
|
+
super
|
|
85
71
|
|
|
86
72
|
if attributes.has_key?(:'Presentations')
|
|
87
73
|
if (value = attributes[:'Presentations']).is_a?(Array)
|
|
88
74
|
self.presentations = value
|
|
89
75
|
end
|
|
90
76
|
end
|
|
77
|
+
self.type = "Merge"
|
|
91
78
|
end
|
|
92
79
|
|
|
93
80
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
94
81
|
# @return Array for valid properties with the reasons
|
|
95
82
|
def list_invalid_properties
|
|
96
|
-
invalid_properties =
|
|
97
|
-
if @type.nil?
|
|
98
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
99
|
-
end
|
|
100
|
-
|
|
83
|
+
invalid_properties = super
|
|
101
84
|
invalid_properties
|
|
102
85
|
end
|
|
103
86
|
|
|
104
87
|
# Check to see if the all the properties in the model are valid
|
|
105
88
|
# @return true if the model is valid
|
|
106
89
|
def valid?
|
|
107
|
-
return false if
|
|
108
|
-
type_validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
|
109
|
-
return false unless type_validator.valid?(@type)
|
|
90
|
+
return false if !super
|
|
110
91
|
true
|
|
111
92
|
end
|
|
112
93
|
|
|
113
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
114
|
-
# @param [Object] type Object to be assigned
|
|
115
|
-
def type=(type)
|
|
116
|
-
validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
|
117
|
-
unless validator.valid?(type)
|
|
118
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
|
119
|
-
end
|
|
120
|
-
@type = type
|
|
121
|
-
end
|
|
122
|
-
|
|
123
94
|
# Checks equality by comparing each attribute.
|
|
124
95
|
# @param [Object] Object to be compared
|
|
125
96
|
def ==(o)
|
|
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
|
|
|
35
35
|
def self.attribute_map
|
|
36
36
|
{
|
|
37
37
|
:'input' => :'Input',
|
|
38
|
-
:'slides' => :'Slides'
|
|
38
|
+
:'slides' => :'Slides',
|
|
39
39
|
}
|
|
40
40
|
end
|
|
41
41
|
|
|
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
|
|
|
43
43
|
def self.swagger_types
|
|
44
44
|
{
|
|
45
45
|
:'input' => :'InputFile',
|
|
46
|
-
:'slides' => :'Array<Integer>'
|
|
46
|
+
:'slides' => :'Array<Integer>',
|
|
47
47
|
}
|
|
48
48
|
end
|
|
49
49
|
|
|
@@ -24,10 +24,7 @@ require 'date'
|
|
|
24
24
|
|
|
25
25
|
module AsposeSlidesCloud
|
|
26
26
|
# Represents empty fill
|
|
27
|
-
class NoFill
|
|
28
|
-
# Fill type.
|
|
29
|
-
attr_accessor :type
|
|
30
|
-
|
|
27
|
+
class NoFill < FillFormat
|
|
31
28
|
class EnumAttributeValidator
|
|
32
29
|
attr_reader :datatype
|
|
33
30
|
attr_reader :allowable_values
|
|
@@ -52,63 +49,37 @@ module AsposeSlidesCloud
|
|
|
52
49
|
|
|
53
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
54
51
|
def self.attribute_map
|
|
55
|
-
{
|
|
56
|
-
|
|
57
|
-
}
|
|
52
|
+
super.merge({
|
|
53
|
+
})
|
|
58
54
|
end
|
|
59
55
|
|
|
60
56
|
# Attribute type mapping.
|
|
61
57
|
def self.swagger_types
|
|
62
|
-
{
|
|
63
|
-
|
|
64
|
-
}
|
|
58
|
+
super.merge({
|
|
59
|
+
})
|
|
65
60
|
end
|
|
66
61
|
|
|
67
62
|
# Initializes the object
|
|
68
63
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
69
64
|
def initialize(attributes = {})
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
# convert string to symbol for hash key
|
|
73
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
74
|
-
|
|
75
|
-
if attributes.has_key?(:'Type')
|
|
76
|
-
self.type = attributes[:'Type']
|
|
77
|
-
else
|
|
78
|
-
self.type = "NoFill"
|
|
79
|
-
end
|
|
65
|
+
super
|
|
66
|
+
self.type = "NoFill"
|
|
80
67
|
end
|
|
81
68
|
|
|
82
69
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
83
70
|
# @return Array for valid properties with the reasons
|
|
84
71
|
def list_invalid_properties
|
|
85
|
-
invalid_properties =
|
|
86
|
-
if @type.nil?
|
|
87
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
88
|
-
end
|
|
89
|
-
|
|
72
|
+
invalid_properties = super
|
|
90
73
|
invalid_properties
|
|
91
74
|
end
|
|
92
75
|
|
|
93
76
|
# Check to see if the all the properties in the model are valid
|
|
94
77
|
# @return true if the model is valid
|
|
95
78
|
def valid?
|
|
96
|
-
return false if
|
|
97
|
-
type_validator = EnumAttributeValidator.new('String', ['NoFill', 'Solid', 'Gradient', 'Pattern', 'Picture', 'NotDefined'])
|
|
98
|
-
return false unless type_validator.valid?(@type)
|
|
79
|
+
return false if !super
|
|
99
80
|
true
|
|
100
81
|
end
|
|
101
82
|
|
|
102
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
103
|
-
# @param [Object] type Object to be assigned
|
|
104
|
-
def type=(type)
|
|
105
|
-
validator = EnumAttributeValidator.new('String', ['NoFill', 'Solid', 'Gradient', 'Pattern', 'Picture', 'NotDefined'])
|
|
106
|
-
unless validator.valid?(type)
|
|
107
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
|
108
|
-
end
|
|
109
|
-
@type = type
|
|
110
|
-
end
|
|
111
|
-
|
|
112
83
|
# Checks equality by comparing each attribute.
|
|
113
84
|
# @param [Object] Object to be compared
|
|
114
85
|
def ==(o)
|
|
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
|
|
|
35
35
|
def self.attribute_map
|
|
36
36
|
{
|
|
37
37
|
:'auto_adjust' => :'AutoAdjust',
|
|
38
|
-
:'dimension_size' => :'DimensionSize'
|
|
38
|
+
:'dimension_size' => :'DimensionSize',
|
|
39
39
|
}
|
|
40
40
|
end
|
|
41
41
|
|
|
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
|
|
|
43
43
|
def self.swagger_types
|
|
44
44
|
{
|
|
45
45
|
:'auto_adjust' => :'BOOLEAN',
|
|
46
|
-
:'dimension_size' => :'Float'
|
|
46
|
+
:'dimension_size' => :'Float',
|
|
47
47
|
}
|
|
48
48
|
end
|
|
49
49
|
|
|
@@ -24,13 +24,7 @@ require 'date'
|
|
|
24
24
|
|
|
25
25
|
module AsposeSlidesCloud
|
|
26
26
|
# Represents notes slide DTO.
|
|
27
|
-
class NotesSlide
|
|
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 NotesSlide < ResourceBase
|
|
34
28
|
# Get or sets text of notes slide.
|
|
35
29
|
attr_accessor :text
|
|
36
30
|
|
|
@@ -39,41 +33,24 @@ module AsposeSlidesCloud
|
|
|
39
33
|
|
|
40
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
41
35
|
def self.attribute_map
|
|
42
|
-
{
|
|
43
|
-
:'self_uri' => :'SelfUri',
|
|
44
|
-
:'alternate_links' => :'AlternateLinks',
|
|
36
|
+
super.merge({
|
|
45
37
|
:'text' => :'Text',
|
|
46
|
-
:'shapes' => :'Shapes'
|
|
47
|
-
}
|
|
38
|
+
:'shapes' => :'Shapes',
|
|
39
|
+
})
|
|
48
40
|
end
|
|
49
41
|
|
|
50
42
|
# Attribute type mapping.
|
|
51
43
|
def self.swagger_types
|
|
52
|
-
{
|
|
53
|
-
:'self_uri' => :'ResourceUri',
|
|
54
|
-
:'alternate_links' => :'Array<ResourceUri>',
|
|
44
|
+
super.merge({
|
|
55
45
|
:'text' => :'String',
|
|
56
|
-
:'shapes' => :'ResourceUriElement'
|
|
57
|
-
}
|
|
46
|
+
:'shapes' => :'ResourceUriElement',
|
|
47
|
+
})
|
|
58
48
|
end
|
|
59
49
|
|
|
60
50
|
# Initializes the object
|
|
61
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
62
52
|
def initialize(attributes = {})
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
# convert string to symbol for hash key
|
|
66
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
67
|
-
|
|
68
|
-
if attributes.has_key?(:'SelfUri')
|
|
69
|
-
self.self_uri = attributes[:'SelfUri']
|
|
70
|
-
end
|
|
71
|
-
|
|
72
|
-
if attributes.has_key?(:'AlternateLinks')
|
|
73
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
|
74
|
-
self.alternate_links = value
|
|
75
|
-
end
|
|
76
|
-
end
|
|
53
|
+
super
|
|
77
54
|
|
|
78
55
|
if attributes.has_key?(:'Text')
|
|
79
56
|
self.text = attributes[:'Text']
|
|
@@ -87,13 +64,14 @@ module AsposeSlidesCloud
|
|
|
87
64
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
88
65
|
# @return Array for valid properties with the reasons
|
|
89
66
|
def list_invalid_properties
|
|
90
|
-
invalid_properties =
|
|
67
|
+
invalid_properties = super
|
|
91
68
|
invalid_properties
|
|
92
69
|
end
|
|
93
70
|
|
|
94
71
|
# Check to see if the all the properties in the model are valid
|
|
95
72
|
# @return true if the model is valid
|
|
96
73
|
def valid?
|
|
74
|
+
return false if !super
|
|
97
75
|
true
|
|
98
76
|
end
|
|
99
77
|
|
|
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
|
|
|
35
35
|
def self.attribute_map
|
|
36
36
|
{
|
|
37
37
|
:'exists' => :'Exists',
|
|
38
|
-
:'is_folder' => :'IsFolder'
|
|
38
|
+
:'is_folder' => :'IsFolder',
|
|
39
39
|
}
|
|
40
40
|
end
|
|
41
41
|
|
|
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
|
|
|
43
43
|
def self.swagger_types
|
|
44
44
|
{
|
|
45
45
|
:'exists' => :'BOOLEAN',
|
|
46
|
-
:'is_folder' => :'BOOLEAN'
|
|
46
|
+
:'is_folder' => :'BOOLEAN',
|
|
47
47
|
}
|
|
48
48
|
end
|
|
49
49
|
|
|
@@ -24,58 +24,7 @@ require 'date'
|
|
|
24
24
|
|
|
25
25
|
module AsposeSlidesCloud
|
|
26
26
|
# Represents OleObjectFrame resource.
|
|
27
|
-
class OleObjectFrame
|
|
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 OleObjectFrame < ShapeBase
|
|
79
28
|
# True if an object is visible as icon.
|
|
80
29
|
attr_accessor :is_object_icon
|
|
81
30
|
|
|
@@ -106,135 +55,24 @@ module AsposeSlidesCloud
|
|
|
106
55
|
|
|
107
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
108
57
|
def self.attribute_map
|
|
109
|
-
{
|
|
110
|
-
:'self_uri' => :'SelfUri',
|
|
111
|
-
:'alternate_links' => :'AlternateLinks',
|
|
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',
|
|
58
|
+
super.merge({
|
|
127
59
|
:'is_object_icon' => :'IsObjectIcon',
|
|
128
|
-
:'substitute_picture_title' => :'SubstitutePictureTitle'
|
|
129
|
-
}
|
|
60
|
+
:'substitute_picture_title' => :'SubstitutePictureTitle',
|
|
61
|
+
})
|
|
130
62
|
end
|
|
131
63
|
|
|
132
64
|
# Attribute type mapping.
|
|
133
65
|
def self.swagger_types
|
|
134
|
-
{
|
|
135
|
-
:'self_uri' => :'ResourceUri',
|
|
136
|
-
:'alternate_links' => :'Array<ResourceUri>',
|
|
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',
|
|
66
|
+
super.merge({
|
|
152
67
|
:'is_object_icon' => :'BOOLEAN',
|
|
153
|
-
:'substitute_picture_title' => :'String'
|
|
154
|
-
}
|
|
68
|
+
:'substitute_picture_title' => :'String',
|
|
69
|
+
})
|
|
155
70
|
end
|
|
156
71
|
|
|
157
72
|
# Initializes the object
|
|
158
73
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
159
74
|
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 = "OleObjectFrame"
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
if attributes.has_key?(:'ShapeType')
|
|
234
|
-
self.shape_type = attributes[:'ShapeType']
|
|
235
|
-
else
|
|
236
|
-
self.shape_type = "OleObjectFrame"
|
|
237
|
-
end
|
|
75
|
+
super
|
|
238
76
|
|
|
239
77
|
if attributes.has_key?(:'IsObjectIcon')
|
|
240
78
|
self.is_object_icon = attributes[:'IsObjectIcon']
|
|
@@ -243,24 +81,14 @@ module AsposeSlidesCloud
|
|
|
243
81
|
if attributes.has_key?(:'SubstitutePictureTitle')
|
|
244
82
|
self.substitute_picture_title = attributes[:'SubstitutePictureTitle']
|
|
245
83
|
end
|
|
84
|
+
self.type = "OleObjectFrame"
|
|
85
|
+
self.shape_type = "OleObjectFrame"
|
|
246
86
|
end
|
|
247
87
|
|
|
248
88
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
249
89
|
# @return Array for valid properties with the reasons
|
|
250
90
|
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
|
-
|
|
91
|
+
invalid_properties = super
|
|
264
92
|
if @is_object_icon.nil?
|
|
265
93
|
invalid_properties.push('invalid value for "is_object_icon", is_object_icon cannot be nil.')
|
|
266
94
|
end
|
|
@@ -271,37 +99,11 @@ module AsposeSlidesCloud
|
|
|
271
99
|
# Check to see if the all the properties in the model are valid
|
|
272
100
|
# @return true if the model is valid
|
|
273
101
|
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)
|
|
102
|
+
return false if !super
|
|
281
103
|
return false if @is_object_icon.nil?
|
|
282
104
|
true
|
|
283
105
|
end
|
|
284
106
|
|
|
285
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
286
|
-
# @param [Object] type Object to be assigned
|
|
287
|
-
def type=(type)
|
|
288
|
-
validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
|
|
289
|
-
unless validator.valid?(type)
|
|
290
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
|
291
|
-
end
|
|
292
|
-
@type = type
|
|
293
|
-
end
|
|
294
|
-
|
|
295
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
296
|
-
# @param [Object] shape_type Object to be assigned
|
|
297
|
-
def shape_type=(shape_type)
|
|
298
|
-
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'])
|
|
299
|
-
unless validator.valid?(shape_type)
|
|
300
|
-
fail ArgumentError, 'invalid value for "shape_type", must be one of #{validator.allowable_values}.'
|
|
301
|
-
end
|
|
302
|
-
@shape_type = shape_type
|
|
303
|
-
end
|
|
304
|
-
|
|
305
107
|
# Checks equality by comparing each attribute.
|
|
306
108
|
# @param [Object] Object to be compared
|
|
307
109
|
def ==(o)
|