aspose_slides_cloud 20.7.0 → 20.8.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
|
# Remove slide task.
|
27
|
-
class RemoveSlide
|
28
|
-
# Task type.
|
29
|
-
attr_accessor :type
|
30
|
-
|
27
|
+
class RemoveSlide < Task
|
31
28
|
# Position of slide to be removed.
|
32
29
|
attr_accessor :position
|
33
30
|
|
@@ -55,47 +52,33 @@ 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
|
+
:'position' => :'Position',
|
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
|
+
:'position' => :'Integer',
|
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 = "RemoveSlide"
|
84
|
-
end
|
70
|
+
super
|
85
71
|
|
86
72
|
if attributes.has_key?(:'Position')
|
87
73
|
self.position = attributes[:'Position']
|
88
74
|
end
|
75
|
+
self.type = "RemoveSlide"
|
89
76
|
end
|
90
77
|
|
91
78
|
# Show invalid properties with the reasons. Usually used together with valid?
|
92
79
|
# @return Array for valid properties with the reasons
|
93
80
|
def list_invalid_properties
|
94
|
-
invalid_properties =
|
95
|
-
if @type.nil?
|
96
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
97
|
-
end
|
98
|
-
|
81
|
+
invalid_properties = super
|
99
82
|
if @position.nil?
|
100
83
|
invalid_properties.push('invalid value for "position", position cannot be nil.')
|
101
84
|
end
|
@@ -106,23 +89,11 @@ module AsposeSlidesCloud
|
|
106
89
|
# Check to see if the all the properties in the model are valid
|
107
90
|
# @return true if the model is valid
|
108
91
|
def valid?
|
109
|
-
return false if
|
110
|
-
type_validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
111
|
-
return false unless type_validator.valid?(@type)
|
92
|
+
return false if !super
|
112
93
|
return false if @position.nil?
|
113
94
|
true
|
114
95
|
end
|
115
96
|
|
116
|
-
# Custom attribute writer method checking allowed values (enum).
|
117
|
-
# @param [Object] type Object to be assigned
|
118
|
-
def type=(type)
|
119
|
-
validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
120
|
-
unless validator.valid?(type)
|
121
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
122
|
-
end
|
123
|
-
@type = type
|
124
|
-
end
|
125
|
-
|
126
97
|
# Checks equality by comparing each attribute.
|
127
98
|
# @param [Object] Object to be compared
|
128
99
|
def ==(o)
|
@@ -24,10 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Reorder slide task.
|
27
|
-
class ReorderSlide
|
28
|
-
# Task type.
|
29
|
-
attr_accessor :type
|
30
|
-
|
27
|
+
class ReorderSlide < Task
|
31
28
|
# Old position.
|
32
29
|
attr_accessor :old_position
|
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
|
:'old_position' => :'OldPosition',
|
64
|
-
:'new_position' => :'NewPosition'
|
65
|
-
}
|
60
|
+
:'new_position' => :'NewPosition',
|
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
|
:'old_position' => :'Integer',
|
73
|
-
:'new_position' => :'Integer'
|
74
|
-
}
|
68
|
+
:'new_position' => :'Integer',
|
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 = "ReoderSlide"
|
89
|
-
end
|
75
|
+
super
|
90
76
|
|
91
77
|
if attributes.has_key?(:'OldPosition')
|
92
78
|
self.old_position = attributes[:'OldPosition']
|
@@ -95,16 +81,13 @@ module AsposeSlidesCloud
|
|
95
81
|
if attributes.has_key?(:'NewPosition')
|
96
82
|
self.new_position = attributes[:'NewPosition']
|
97
83
|
end
|
84
|
+
self.type = "ReoderSlide"
|
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
|
if @old_position.nil?
|
109
92
|
invalid_properties.push('invalid value for "old_position", old_position cannot be nil.')
|
110
93
|
end
|
@@ -119,24 +102,12 @@ module AsposeSlidesCloud
|
|
119
102
|
# Check to see if the all the properties in the model are valid
|
120
103
|
# @return true if the model is valid
|
121
104
|
def valid?
|
122
|
-
return false if
|
123
|
-
type_validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
124
|
-
return false unless type_validator.valid?(@type)
|
105
|
+
return false if !super
|
125
106
|
return false if @old_position.nil?
|
126
107
|
return false if @new_position.nil?
|
127
108
|
true
|
128
109
|
end
|
129
110
|
|
130
|
-
# Custom attribute writer method checking allowed values (enum).
|
131
|
-
# @param [Object] type Object to be assigned
|
132
|
-
def type=(type)
|
133
|
-
validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
134
|
-
unless validator.valid?(type)
|
135
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
136
|
-
end
|
137
|
-
@type = type
|
138
|
-
end
|
139
|
-
|
140
111
|
# Checks equality by comparing each attribute.
|
141
112
|
# @param [Object] Object to be compared
|
142
113
|
def ==(o)
|
@@ -24,10 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Replace text task.
|
27
|
-
class ReplaceText
|
28
|
-
# Task type.
|
29
|
-
attr_accessor :type
|
30
|
-
|
27
|
+
class ReplaceText < Task
|
31
28
|
# Text to be replaced.
|
32
29
|
attr_accessor :old_text
|
33
30
|
|
@@ -64,39 +61,28 @@ module AsposeSlidesCloud
|
|
64
61
|
|
65
62
|
# Attribute mapping from ruby-style variable name to JSON key.
|
66
63
|
def self.attribute_map
|
67
|
-
{
|
68
|
-
:'type' => :'Type',
|
64
|
+
super.merge({
|
69
65
|
:'old_text' => :'OldText',
|
70
66
|
:'new_text' => :'NewText',
|
71
67
|
:'ignore_case' => :'IgnoreCase',
|
72
|
-
:'slide_position' => :'SlidePosition'
|
73
|
-
}
|
68
|
+
:'slide_position' => :'SlidePosition',
|
69
|
+
})
|
74
70
|
end
|
75
71
|
|
76
72
|
# Attribute type mapping.
|
77
73
|
def self.swagger_types
|
78
|
-
{
|
79
|
-
:'type' => :'String',
|
74
|
+
super.merge({
|
80
75
|
:'old_text' => :'String',
|
81
76
|
:'new_text' => :'String',
|
82
77
|
:'ignore_case' => :'BOOLEAN',
|
83
|
-
:'slide_position' => :'Integer'
|
84
|
-
}
|
78
|
+
:'slide_position' => :'Integer',
|
79
|
+
})
|
85
80
|
end
|
86
81
|
|
87
82
|
# Initializes the object
|
88
83
|
# @param [Hash] attributes Model attributes in the form of hash
|
89
84
|
def initialize(attributes = {})
|
90
|
-
|
91
|
-
|
92
|
-
# convert string to symbol for hash key
|
93
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
94
|
-
|
95
|
-
if attributes.has_key?(:'Type')
|
96
|
-
self.type = attributes[:'Type']
|
97
|
-
else
|
98
|
-
self.type = "ReplaceText"
|
99
|
-
end
|
85
|
+
super
|
100
86
|
|
101
87
|
if attributes.has_key?(:'OldText')
|
102
88
|
self.old_text = attributes[:'OldText']
|
@@ -113,16 +99,13 @@ module AsposeSlidesCloud
|
|
113
99
|
if attributes.has_key?(:'SlidePosition')
|
114
100
|
self.slide_position = attributes[:'SlidePosition']
|
115
101
|
end
|
102
|
+
self.type = "ReplaceText"
|
116
103
|
end
|
117
104
|
|
118
105
|
# Show invalid properties with the reasons. Usually used together with valid?
|
119
106
|
# @return Array for valid properties with the reasons
|
120
107
|
def list_invalid_properties
|
121
|
-
invalid_properties =
|
122
|
-
if @type.nil?
|
123
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
124
|
-
end
|
125
|
-
|
108
|
+
invalid_properties = super
|
126
109
|
if @ignore_case.nil?
|
127
110
|
invalid_properties.push('invalid value for "ignore_case", ignore_case cannot be nil.')
|
128
111
|
end
|
@@ -137,24 +120,12 @@ module AsposeSlidesCloud
|
|
137
120
|
# Check to see if the all the properties in the model are valid
|
138
121
|
# @return true if the model is valid
|
139
122
|
def valid?
|
140
|
-
return false if
|
141
|
-
type_validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
142
|
-
return false unless type_validator.valid?(@type)
|
123
|
+
return false if !super
|
143
124
|
return false if @ignore_case.nil?
|
144
125
|
return false if @slide_position.nil?
|
145
126
|
true
|
146
127
|
end
|
147
128
|
|
148
|
-
# Custom attribute writer method checking allowed values (enum).
|
149
|
-
# @param [Object] type Object to be assigned
|
150
|
-
def type=(type)
|
151
|
-
validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
152
|
-
unless validator.valid?(type)
|
153
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
154
|
-
end
|
155
|
-
@type = type
|
156
|
-
end
|
157
|
-
|
158
129
|
# Checks equality by comparing each attribute.
|
159
130
|
# @param [Object] Object to be compared
|
160
131
|
def ==(o)
|
@@ -24,13 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents input file from multipart request.
|
27
|
-
class RequestInputFile
|
28
|
-
# Get or sets password to open document.
|
29
|
-
attr_accessor :password
|
30
|
-
|
31
|
-
# File type.
|
32
|
-
attr_accessor :type
|
33
|
-
|
27
|
+
class RequestInputFile < InputFile
|
34
28
|
# Get or sets index of file from request.
|
35
29
|
attr_accessor :index
|
36
30
|
|
@@ -58,53 +52,33 @@ module AsposeSlidesCloud
|
|
58
52
|
|
59
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
60
54
|
def self.attribute_map
|
61
|
-
{
|
62
|
-
:'
|
63
|
-
|
64
|
-
:'index' => :'Index'
|
65
|
-
}
|
55
|
+
super.merge({
|
56
|
+
:'index' => :'Index',
|
57
|
+
})
|
66
58
|
end
|
67
59
|
|
68
60
|
# Attribute type mapping.
|
69
61
|
def self.swagger_types
|
70
|
-
{
|
71
|
-
:'
|
72
|
-
|
73
|
-
:'index' => :'Integer'
|
74
|
-
}
|
62
|
+
super.merge({
|
63
|
+
:'index' => :'Integer',
|
64
|
+
})
|
75
65
|
end
|
76
66
|
|
77
67
|
# Initializes the object
|
78
68
|
# @param [Hash] attributes Model attributes in the form of hash
|
79
69
|
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?(:'Password')
|
86
|
-
self.password = attributes[:'Password']
|
87
|
-
end
|
88
|
-
|
89
|
-
if attributes.has_key?(:'Type')
|
90
|
-
self.type = attributes[:'Type']
|
91
|
-
else
|
92
|
-
self.type = "Request"
|
93
|
-
end
|
70
|
+
super
|
94
71
|
|
95
72
|
if attributes.has_key?(:'Index')
|
96
73
|
self.index = attributes[:'Index']
|
97
74
|
end
|
75
|
+
self.type = "Request"
|
98
76
|
end
|
99
77
|
|
100
78
|
# Show invalid properties with the reasons. Usually used together with valid?
|
101
79
|
# @return Array for valid properties with the reasons
|
102
80
|
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
|
-
|
81
|
+
invalid_properties = super
|
108
82
|
if @index.nil?
|
109
83
|
invalid_properties.push('invalid value for "index", index cannot be nil.')
|
110
84
|
end
|
@@ -115,23 +89,11 @@ module AsposeSlidesCloud
|
|
115
89
|
# Check to see if the all the properties in the model are valid
|
116
90
|
# @return true if the model is valid
|
117
91
|
def valid?
|
118
|
-
return false if
|
119
|
-
type_validator = EnumAttributeValidator.new('String', ['Path', 'Request', 'Base64'])
|
120
|
-
return false unless type_validator.valid?(@type)
|
92
|
+
return false if !super
|
121
93
|
return false if @index.nil?
|
122
94
|
true
|
123
95
|
end
|
124
96
|
|
125
|
-
# Custom attribute writer method checking allowed values (enum).
|
126
|
-
# @param [Object] type Object to be assigned
|
127
|
-
def type=(type)
|
128
|
-
validator = EnumAttributeValidator.new('String', ['Path', 'Request', 'Base64'])
|
129
|
-
unless validator.valid?(type)
|
130
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
131
|
-
end
|
132
|
-
@type = type
|
133
|
-
end
|
134
|
-
|
135
97
|
# Checks equality by comparing each attribute.
|
136
98
|
# @param [Object] Object to be compared
|
137
99
|
def ==(o)
|
@@ -24,10 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Reset slide task.
|
27
|
-
class ResetSlide
|
28
|
-
# Task type.
|
29
|
-
attr_accessor :type
|
30
|
-
|
27
|
+
class ResetSlide < Task
|
31
28
|
# Slide position.
|
32
29
|
attr_accessor :position
|
33
30
|
|
@@ -55,47 +52,33 @@ 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
|
+
:'position' => :'Position',
|
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
|
+
:'position' => :'Integer',
|
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 = "ResetSlide"
|
84
|
-
end
|
70
|
+
super
|
85
71
|
|
86
72
|
if attributes.has_key?(:'Position')
|
87
73
|
self.position = attributes[:'Position']
|
88
74
|
end
|
75
|
+
self.type = "ResetSlide"
|
89
76
|
end
|
90
77
|
|
91
78
|
# Show invalid properties with the reasons. Usually used together with valid?
|
92
79
|
# @return Array for valid properties with the reasons
|
93
80
|
def list_invalid_properties
|
94
|
-
invalid_properties =
|
95
|
-
if @type.nil?
|
96
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
97
|
-
end
|
98
|
-
|
81
|
+
invalid_properties = super
|
99
82
|
if @position.nil?
|
100
83
|
invalid_properties.push('invalid value for "position", position cannot be nil.')
|
101
84
|
end
|
@@ -106,23 +89,11 @@ module AsposeSlidesCloud
|
|
106
89
|
# Check to see if the all the properties in the model are valid
|
107
90
|
# @return true if the model is valid
|
108
91
|
def valid?
|
109
|
-
return false if
|
110
|
-
type_validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
111
|
-
return false unless type_validator.valid?(@type)
|
92
|
+
return false if !super
|
112
93
|
return false if @position.nil?
|
113
94
|
true
|
114
95
|
end
|
115
96
|
|
116
|
-
# Custom attribute writer method checking allowed values (enum).
|
117
|
-
# @param [Object] type Object to be assigned
|
118
|
-
def type=(type)
|
119
|
-
validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
120
|
-
unless validator.valid?(type)
|
121
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
122
|
-
end
|
123
|
-
@type = type
|
124
|
-
end
|
125
|
-
|
126
97
|
# Checks equality by comparing each attribute.
|
127
98
|
# @param [Object] Object to be compared
|
128
99
|
def ==(o)
|