aspose_slides_cloud 20.6.0 → 21.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/TestData/ChartTest.pptx +0 -0
- data/TestData/Sections.pptx +0 -0
- data/TestData/test-unprotected.pptx +0 -0
- data/TestData/test.pptx +0 -0
- data/lib/aspose_slides_cloud.rb +13 -5
- data/lib/aspose_slides_cloud/api/slides_api.rb +2432 -691
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +609 -31
- data/lib/aspose_slides_cloud/api_client.rb +30 -24
- data/lib/aspose_slides_cloud/configuration.rb +7 -2
- data/lib/aspose_slides_cloud/models/add_layout_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/add_master_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/add_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/add_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/api_info.rb +22 -10
- data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +22 -10
- data/lib/aspose_slides_cloud/models/audio_frame.rb +32 -246
- data/lib/aspose_slides_cloud/models/axes.rb +22 -10
- data/lib/aspose_slides_cloud/models/axis.rb +22 -10
- data/lib/aspose_slides_cloud/models/base64_input_file.rb +31 -57
- data/lib/aspose_slides_cloud/models/blur_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +31 -222
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +30 -48
- data/lib/aspose_slides_cloud/models/bubble_series.rb +31 -211
- data/lib/aspose_slides_cloud/models/chart.rb +32 -220
- data/lib/aspose_slides_cloud/models/chart_category.rb +54 -20
- data/lib/aspose_slides_cloud/models/chart_title.rb +22 -10
- data/lib/aspose_slides_cloud/models/chart_wall.rb +22 -10
- data/lib/aspose_slides_cloud/models/color_scheme.rb +30 -40
- data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +22 -10
- data/lib/aspose_slides_cloud/models/connector.rb +32 -244
- data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +22 -10
- data/lib/aspose_slides_cloud/models/{resource_uri_element.rb → data_point.rb} +24 -22
- data/lib/aspose_slides_cloud/models/disc_usage.rb +22 -10
- data/lib/aspose_slides_cloud/models/document.rb +35 -45
- data/lib/aspose_slides_cloud/models/document_properties.rb +30 -40
- data/lib/aspose_slides_cloud/models/document_property.rb +30 -40
- data/lib/aspose_slides_cloud/models/document_replace_result.rb +30 -94
- data/lib/aspose_slides_cloud/models/effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/effect_format.rb +22 -10
- data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
- data/lib/aspose_slides_cloud/models/error.rb +22 -10
- data/lib/aspose_slides_cloud/models/error_details.rb +22 -10
- data/lib/aspose_slides_cloud/models/export_options.rb +33 -11
- data/lib/aspose_slides_cloud/models/file_version.rb +30 -75
- data/lib/aspose_slides_cloud/models/file_versions.rb +22 -10
- data/lib/aspose_slides_cloud/models/files_list.rb +22 -10
- data/lib/aspose_slides_cloud/models/files_upload_result.rb +22 -10
- data/lib/aspose_slides_cloud/models/fill_format.rb +22 -10
- data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/font_scheme.rb +30 -40
- data/lib/aspose_slides_cloud/models/font_set.rb +22 -10
- data/lib/aspose_slides_cloud/models/format_scheme.rb +30 -40
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +33 -212
- data/lib/aspose_slides_cloud/models/glow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/gradient_fill.rb +31 -48
- data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +22 -10
- data/lib/aspose_slides_cloud/models/graphical_object.rb +31 -219
- data/lib/aspose_slides_cloud/models/group_shape.rb +31 -219
- data/lib/aspose_slides_cloud/models/header_footer.rb +247 -0
- data/lib/aspose_slides_cloud/models/html_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +22 -20
- data/lib/aspose_slides_cloud/models/image.rb +30 -40
- data/lib/aspose_slides_cloud/models/image_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/images.rb +30 -40
- data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/input.rb +22 -10
- data/lib/aspose_slides_cloud/models/input_file.rb +22 -10
- data/lib/aspose_slides_cloud/models/interactive_sequence.rb +22 -10
- data/lib/aspose_slides_cloud/models/layout_slide.rb +31 -41
- data/lib/aspose_slides_cloud/models/layout_slides.rb +30 -40
- data/lib/aspose_slides_cloud/models/legend.rb +22 -10
- data/lib/aspose_slides_cloud/models/line_format.rb +22 -10
- data/lib/aspose_slides_cloud/models/master_slide.rb +31 -41
- data/lib/aspose_slides_cloud/models/master_slides.rb +30 -40
- data/lib/aspose_slides_cloud/models/merge.rb +31 -48
- data/lib/aspose_slides_cloud/models/merging_source.rb +22 -10
- data/lib/aspose_slides_cloud/models/no_fill.rb +29 -46
- data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +22 -10
- data/lib/aspose_slides_cloud/models/notes_slide.rb +30 -40
- data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +267 -0
- data/lib/aspose_slides_cloud/models/object_exist.rb +22 -10
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +32 -220
- data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +30 -20
- data/lib/aspose_slides_cloud/models/one_value_series.rb +31 -211
- data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +22 -10
- data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/output_file.rb +22 -10
- data/lib/aspose_slides_cloud/models/paragraph.rb +30 -40
- data/lib/aspose_slides_cloud/models/paragraphs.rb +30 -40
- data/lib/aspose_slides_cloud/models/path_input_file.rb +31 -57
- data/lib/aspose_slides_cloud/models/path_output_file.rb +31 -48
- data/lib/aspose_slides_cloud/models/pattern_fill.rb +31 -48
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/picture_fill.rb +32 -49
- data/lib/aspose_slides_cloud/models/picture_frame.rb +32 -246
- data/lib/aspose_slides_cloud/models/pipeline.rb +22 -10
- data/lib/aspose_slides_cloud/models/placeholder.rb +30 -40
- data/lib/aspose_slides_cloud/models/placeholders.rb +30 -40
- data/lib/aspose_slides_cloud/models/plot_area.rb +22 -10
- data/lib/aspose_slides_cloud/models/portion.rb +30 -40
- data/lib/aspose_slides_cloud/models/portions.rb +36 -46
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +22 -10
- data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +22 -10
- data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/reflection_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/remove_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/remove_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/reorder_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/replace_text.rb +31 -48
- data/lib/aspose_slides_cloud/models/request_input_file.rb +31 -57
- data/lib/aspose_slides_cloud/models/reset_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/resource_base.rb +22 -10
- data/lib/aspose_slides_cloud/models/resource_uri.rb +22 -10
- data/lib/aspose_slides_cloud/models/response_output_file.rb +29 -46
- data/lib/aspose_slides_cloud/models/save.rb +31 -48
- data/lib/aspose_slides_cloud/models/save_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/save_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +30 -20
- data/lib/aspose_slides_cloud/models/scatter_series.rb +31 -211
- data/lib/aspose_slides_cloud/models/section.rb +234 -0
- data/lib/aspose_slides_cloud/models/sections.rb +209 -0
- data/lib/aspose_slides_cloud/models/series.rb +45 -12
- data/lib/aspose_slides_cloud/models/series_marker.rb +22 -10
- data/lib/aspose_slides_cloud/models/shape.rb +32 -244
- data/lib/aspose_slides_cloud/models/shape_base.rb +31 -62
- data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +22 -10
- data/lib/aspose_slides_cloud/models/shapes.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide.rb +37 -47
- data/lib/aspose_slides_cloud/models/slide_animation.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide_background.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide_comment.rb +22 -10
- data/lib/aspose_slides_cloud/models/slide_comments.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide_replace_result.rb +30 -154
- data/lib/aspose_slides_cloud/models/slides.rb +30 -40
- data/lib/aspose_slides_cloud/models/smart_art.rb +32 -220
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +23 -11
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +30 -217
- data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/solid_fill.rb +31 -48
- data/lib/aspose_slides_cloud/models/split_document_result.rb +30 -40
- data/lib/aspose_slides_cloud/models/storage_exist.rb +22 -10
- data/lib/aspose_slides_cloud/models/storage_file.rb +22 -10
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/table.rb +32 -220
- data/lib/aspose_slides_cloud/models/table_cell.rb +22 -10
- data/lib/aspose_slides_cloud/models/table_column.rb +22 -10
- data/lib/aspose_slides_cloud/models/table_row.rb +22 -10
- data/lib/aspose_slides_cloud/models/task.rb +22 -10
- data/lib/aspose_slides_cloud/models/text_item.rb +22 -10
- data/lib/aspose_slides_cloud/models/text_items.rb +30 -40
- data/lib/aspose_slides_cloud/models/theme.rb +32 -42
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/update_background.rb +31 -48
- data/lib/aspose_slides_cloud/models/update_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/video_frame.rb +32 -246
- data/lib/aspose_slides_cloud/models/view_properties.rb +30 -40
- data/lib/aspose_slides_cloud/models/waterfall_chart_data_point.rb +206 -0
- data/lib/aspose_slides_cloud/models/waterfall_series.rb +31 -222
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/type_registry.rb +324 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +22294 -14411
- data/spec/extra/extra_spec.rb +156 -22
- data/spec/spec_utils.rb +15 -4
- data/testConfig.json +2 -2
- data/testRules.json +141 -73
- metadata +14 -3
@@ -24,10 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Save slide task.
|
27
|
-
class Save
|
28
|
-
# Task type.
|
29
|
-
attr_accessor :type
|
30
|
-
|
27
|
+
class Save < Task
|
31
28
|
# Format.
|
32
29
|
attr_accessor :format
|
33
30
|
|
@@ -61,37 +58,26 @@ module AsposeSlidesCloud
|
|
61
58
|
|
62
59
|
# Attribute mapping from ruby-style variable name to JSON key.
|
63
60
|
def self.attribute_map
|
64
|
-
{
|
65
|
-
:'type' => :'Type',
|
61
|
+
super.merge({
|
66
62
|
:'format' => :'Format',
|
67
63
|
:'output' => :'Output',
|
68
|
-
:'options' => :'Options'
|
69
|
-
}
|
64
|
+
:'options' => :'Options',
|
65
|
+
})
|
70
66
|
end
|
71
67
|
|
72
68
|
# Attribute type mapping.
|
73
69
|
def self.swagger_types
|
74
|
-
{
|
75
|
-
:'type' => :'String',
|
70
|
+
super.merge({
|
76
71
|
:'format' => :'String',
|
77
72
|
:'output' => :'OutputFile',
|
78
|
-
:'options' => :'ExportOptions'
|
79
|
-
}
|
73
|
+
:'options' => :'ExportOptions',
|
74
|
+
})
|
80
75
|
end
|
81
76
|
|
82
77
|
# Initializes the object
|
83
78
|
# @param [Hash] attributes Model attributes in the form of hash
|
84
79
|
def initialize(attributes = {})
|
85
|
-
|
86
|
-
|
87
|
-
# convert string to symbol for hash key
|
88
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
89
|
-
|
90
|
-
if attributes.has_key?(:'Type')
|
91
|
-
self.type = attributes[:'Type']
|
92
|
-
else
|
93
|
-
self.type = "Save"
|
94
|
-
end
|
80
|
+
super
|
95
81
|
|
96
82
|
if attributes.has_key?(:'Format')
|
97
83
|
self.format = attributes[:'Format']
|
@@ -104,16 +90,13 @@ module AsposeSlidesCloud
|
|
104
90
|
if attributes.has_key?(:'Options')
|
105
91
|
self.options = attributes[:'Options']
|
106
92
|
end
|
93
|
+
self.type = "Save"
|
107
94
|
end
|
108
95
|
|
109
96
|
# Show invalid properties with the reasons. Usually used together with valid?
|
110
97
|
# @return Array for valid properties with the reasons
|
111
98
|
def list_invalid_properties
|
112
|
-
invalid_properties =
|
113
|
-
if @type.nil?
|
114
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
115
|
-
end
|
116
|
-
|
99
|
+
invalid_properties = super
|
117
100
|
if @format.nil?
|
118
101
|
invalid_properties.push('invalid value for "format", format cannot be nil.')
|
119
102
|
end
|
@@ -124,25 +107,13 @@ module AsposeSlidesCloud
|
|
124
107
|
# Check to see if the all the properties in the model are valid
|
125
108
|
# @return true if the model is valid
|
126
109
|
def valid?
|
127
|
-
return false if
|
128
|
-
type_validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
129
|
-
return false unless type_validator.valid?(@type)
|
110
|
+
return false if !super
|
130
111
|
return false if @format.nil?
|
131
112
|
format_validator = EnumAttributeValidator.new('String', ['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp'])
|
132
113
|
return false unless format_validator.valid?(@format)
|
133
114
|
true
|
134
115
|
end
|
135
116
|
|
136
|
-
# Custom attribute writer method checking allowed values (enum).
|
137
|
-
# @param [Object] type Object to be assigned
|
138
|
-
def type=(type)
|
139
|
-
validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
140
|
-
unless validator.valid?(type)
|
141
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
142
|
-
end
|
143
|
-
@type = type
|
144
|
-
end
|
145
|
-
|
146
117
|
# Custom attribute writer method checking allowed values (enum).
|
147
118
|
# @param [Object] format Object to be assigned
|
148
119
|
def format=(format)
|
@@ -182,15 +153,27 @@ module AsposeSlidesCloud
|
|
182
153
|
def build_from_hash(attributes)
|
183
154
|
return nil unless attributes.is_a?(Hash)
|
184
155
|
self.class.swagger_types.each_pair do |key, type|
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
if
|
189
|
-
|
156
|
+
mapKey = self.class.attribute_map[key]
|
157
|
+
if !mapKey.nil?
|
158
|
+
val = attributes[mapKey]
|
159
|
+
if val.nil?
|
160
|
+
mapKeyString = mapKey.to_s
|
161
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
162
|
+
mapKey = mapKeyString.to_sym
|
163
|
+
val = attributes[mapKey]
|
164
|
+
end
|
165
|
+
if !val.nil?
|
166
|
+
if type =~ /\AArray<(.*)>/i
|
167
|
+
# check to ensure the input is an array given that the the attribute
|
168
|
+
# is documented as an array but the input is not
|
169
|
+
if val.is_a?(Array)
|
170
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
171
|
+
end
|
172
|
+
else
|
173
|
+
self.send("#{key}=", _deserialize(type, val))
|
174
|
+
end
|
190
175
|
end
|
191
|
-
|
192
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
193
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
176
|
+
end
|
194
177
|
end
|
195
178
|
|
196
179
|
self
|
@@ -24,10 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Save shape task.
|
27
|
-
class SaveShape
|
28
|
-
# Task type.
|
29
|
-
attr_accessor :type
|
30
|
-
|
27
|
+
class SaveShape < Task
|
31
28
|
# Format.
|
32
29
|
attr_accessor :format
|
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
|
:'format' => :'Format',
|
70
66
|
:'shape_path' => :'ShapePath',
|
71
67
|
:'output' => :'Output',
|
72
|
-
:'options' => :'Options'
|
73
|
-
}
|
68
|
+
:'options' => :'Options',
|
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
|
:'format' => :'String',
|
81
76
|
:'shape_path' => :'String',
|
82
77
|
:'output' => :'OutputFile',
|
83
|
-
:'options' => :'IShapeExportOptions'
|
84
|
-
}
|
78
|
+
:'options' => :'IShapeExportOptions',
|
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 = "SaveShape"
|
99
|
-
end
|
85
|
+
super
|
100
86
|
|
101
87
|
if attributes.has_key?(:'Format')
|
102
88
|
self.format = attributes[:'Format']
|
@@ -113,16 +99,13 @@ module AsposeSlidesCloud
|
|
113
99
|
if attributes.has_key?(:'Options')
|
114
100
|
self.options = attributes[:'Options']
|
115
101
|
end
|
102
|
+
self.type = "SaveShape"
|
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 @format.nil?
|
127
110
|
invalid_properties.push('invalid value for "format", format cannot be nil.')
|
128
111
|
end
|
@@ -133,25 +116,13 @@ module AsposeSlidesCloud
|
|
133
116
|
# Check to see if the all the properties in the model are valid
|
134
117
|
# @return true if the model is valid
|
135
118
|
def valid?
|
136
|
-
return false if
|
137
|
-
type_validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
138
|
-
return false unless type_validator.valid?(@type)
|
119
|
+
return false if !super
|
139
120
|
return false if @format.nil?
|
140
121
|
format_validator = EnumAttributeValidator.new('String', ['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Svg'])
|
141
122
|
return false unless format_validator.valid?(@format)
|
142
123
|
true
|
143
124
|
end
|
144
125
|
|
145
|
-
# Custom attribute writer method checking allowed values (enum).
|
146
|
-
# @param [Object] type Object to be assigned
|
147
|
-
def type=(type)
|
148
|
-
validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
149
|
-
unless validator.valid?(type)
|
150
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
151
|
-
end
|
152
|
-
@type = type
|
153
|
-
end
|
154
|
-
|
155
126
|
# Custom attribute writer method checking allowed values (enum).
|
156
127
|
# @param [Object] format Object to be assigned
|
157
128
|
def format=(format)
|
@@ -192,15 +163,27 @@ module AsposeSlidesCloud
|
|
192
163
|
def build_from_hash(attributes)
|
193
164
|
return nil unless attributes.is_a?(Hash)
|
194
165
|
self.class.swagger_types.each_pair do |key, type|
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
if
|
199
|
-
|
166
|
+
mapKey = self.class.attribute_map[key]
|
167
|
+
if !mapKey.nil?
|
168
|
+
val = attributes[mapKey]
|
169
|
+
if val.nil?
|
170
|
+
mapKeyString = mapKey.to_s
|
171
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
172
|
+
mapKey = mapKeyString.to_sym
|
173
|
+
val = attributes[mapKey]
|
174
|
+
end
|
175
|
+
if !val.nil?
|
176
|
+
if type =~ /\AArray<(.*)>/i
|
177
|
+
# check to ensure the input is an array given that the the attribute
|
178
|
+
# is documented as an array but the input is not
|
179
|
+
if val.is_a?(Array)
|
180
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
181
|
+
end
|
182
|
+
else
|
183
|
+
self.send("#{key}=", _deserialize(type, val))
|
184
|
+
end
|
200
185
|
end
|
201
|
-
|
202
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
203
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
186
|
+
end
|
204
187
|
end
|
205
188
|
|
206
189
|
self
|
@@ -24,10 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Save slide task.
|
27
|
-
class SaveSlide
|
28
|
-
# Task type.
|
29
|
-
attr_accessor :type
|
30
|
-
|
27
|
+
class SaveSlide < Task
|
31
28
|
# Output to save the slide to.
|
32
29
|
attr_accessor :output
|
33
30
|
|
@@ -70,43 +67,32 @@ module AsposeSlidesCloud
|
|
70
67
|
|
71
68
|
# Attribute mapping from ruby-style variable name to JSON key.
|
72
69
|
def self.attribute_map
|
73
|
-
{
|
74
|
-
:'type' => :'Type',
|
70
|
+
super.merge({
|
75
71
|
:'output' => :'Output',
|
76
72
|
:'format' => :'Format',
|
77
73
|
:'options' => :'Options',
|
78
74
|
:'width' => :'Width',
|
79
75
|
:'height' => :'Height',
|
80
|
-
:'position' => :'Position'
|
81
|
-
}
|
76
|
+
:'position' => :'Position',
|
77
|
+
})
|
82
78
|
end
|
83
79
|
|
84
80
|
# Attribute type mapping.
|
85
81
|
def self.swagger_types
|
86
|
-
{
|
87
|
-
:'type' => :'String',
|
82
|
+
super.merge({
|
88
83
|
:'output' => :'OutputFile',
|
89
84
|
:'format' => :'String',
|
90
85
|
:'options' => :'ExportOptions',
|
91
86
|
:'width' => :'Integer',
|
92
87
|
:'height' => :'Integer',
|
93
|
-
:'position' => :'Integer'
|
94
|
-
}
|
88
|
+
:'position' => :'Integer',
|
89
|
+
})
|
95
90
|
end
|
96
91
|
|
97
92
|
# Initializes the object
|
98
93
|
# @param [Hash] attributes Model attributes in the form of hash
|
99
94
|
def initialize(attributes = {})
|
100
|
-
|
101
|
-
|
102
|
-
# convert string to symbol for hash key
|
103
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
104
|
-
|
105
|
-
if attributes.has_key?(:'Type')
|
106
|
-
self.type = attributes[:'Type']
|
107
|
-
else
|
108
|
-
self.type = "SaveSlide"
|
109
|
-
end
|
95
|
+
super
|
110
96
|
|
111
97
|
if attributes.has_key?(:'Output')
|
112
98
|
self.output = attributes[:'Output']
|
@@ -131,16 +117,13 @@ module AsposeSlidesCloud
|
|
131
117
|
if attributes.has_key?(:'Position')
|
132
118
|
self.position = attributes[:'Position']
|
133
119
|
end
|
120
|
+
self.type = "SaveSlide"
|
134
121
|
end
|
135
122
|
|
136
123
|
# Show invalid properties with the reasons. Usually used together with valid?
|
137
124
|
# @return Array for valid properties with the reasons
|
138
125
|
def list_invalid_properties
|
139
|
-
invalid_properties =
|
140
|
-
if @type.nil?
|
141
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
142
|
-
end
|
143
|
-
|
126
|
+
invalid_properties = super
|
144
127
|
if @format.nil?
|
145
128
|
invalid_properties.push('invalid value for "format", format cannot be nil.')
|
146
129
|
end
|
@@ -155,9 +138,7 @@ module AsposeSlidesCloud
|
|
155
138
|
# Check to see if the all the properties in the model are valid
|
156
139
|
# @return true if the model is valid
|
157
140
|
def valid?
|
158
|
-
return false if
|
159
|
-
type_validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
160
|
-
return false unless type_validator.valid?(@type)
|
141
|
+
return false if !super
|
161
142
|
return false if @format.nil?
|
162
143
|
format_validator = EnumAttributeValidator.new('String', ['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp'])
|
163
144
|
return false unless format_validator.valid?(@format)
|
@@ -165,16 +146,6 @@ module AsposeSlidesCloud
|
|
165
146
|
true
|
166
147
|
end
|
167
148
|
|
168
|
-
# Custom attribute writer method checking allowed values (enum).
|
169
|
-
# @param [Object] type Object to be assigned
|
170
|
-
def type=(type)
|
171
|
-
validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
172
|
-
unless validator.valid?(type)
|
173
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
174
|
-
end
|
175
|
-
@type = type
|
176
|
-
end
|
177
|
-
|
178
149
|
# Custom attribute writer method checking allowed values (enum).
|
179
150
|
# @param [Object] format Object to be assigned
|
180
151
|
def format=(format)
|
@@ -217,15 +188,27 @@ module AsposeSlidesCloud
|
|
217
188
|
def build_from_hash(attributes)
|
218
189
|
return nil unless attributes.is_a?(Hash)
|
219
190
|
self.class.swagger_types.each_pair do |key, type|
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
if
|
224
|
-
|
191
|
+
mapKey = self.class.attribute_map[key]
|
192
|
+
if !mapKey.nil?
|
193
|
+
val = attributes[mapKey]
|
194
|
+
if val.nil?
|
195
|
+
mapKeyString = mapKey.to_s
|
196
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
197
|
+
mapKey = mapKeyString.to_sym
|
198
|
+
val = attributes[mapKey]
|
199
|
+
end
|
200
|
+
if !val.nil?
|
201
|
+
if type =~ /\AArray<(.*)>/i
|
202
|
+
# check to ensure the input is an array given that the the attribute
|
203
|
+
# is documented as an array but the input is not
|
204
|
+
if val.is_a?(Array)
|
205
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
206
|
+
end
|
207
|
+
else
|
208
|
+
self.send("#{key}=", _deserialize(type, val))
|
209
|
+
end
|
225
210
|
end
|
226
|
-
|
227
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
228
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
211
|
+
end
|
229
212
|
end
|
230
213
|
|
231
214
|
self
|
@@ -24,7 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Scatter chart (two-dimensional) data point
|
27
|
-
class ScatterChartDataPoint
|
27
|
+
class ScatterChartDataPoint < DataPoint
|
28
28
|
# X-value
|
29
29
|
attr_accessor :x_value
|
30
30
|
|
@@ -33,27 +33,24 @@ module AsposeSlidesCloud
|
|
33
33
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
|
-
{
|
36
|
+
super.merge({
|
37
37
|
:'x_value' => :'XValue',
|
38
|
-
:'y_value' => :'YValue'
|
39
|
-
}
|
38
|
+
:'y_value' => :'YValue',
|
39
|
+
})
|
40
40
|
end
|
41
41
|
|
42
42
|
# Attribute type mapping.
|
43
43
|
def self.swagger_types
|
44
|
-
{
|
44
|
+
super.merge({
|
45
45
|
:'x_value' => :'Float',
|
46
|
-
:'y_value' => :'Float'
|
47
|
-
}
|
46
|
+
:'y_value' => :'Float',
|
47
|
+
})
|
48
48
|
end
|
49
49
|
|
50
50
|
# Initializes the object
|
51
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
52
52
|
def initialize(attributes = {})
|
53
|
-
|
54
|
-
|
55
|
-
# convert string to symbol for hash key
|
56
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
53
|
+
super
|
57
54
|
|
58
55
|
if attributes.has_key?(:'XValue')
|
59
56
|
self.x_value = attributes[:'XValue']
|
@@ -67,7 +64,7 @@ module AsposeSlidesCloud
|
|
67
64
|
# Show invalid properties with the reasons. Usually used together with valid?
|
68
65
|
# @return Array for valid properties with the reasons
|
69
66
|
def list_invalid_properties
|
70
|
-
invalid_properties =
|
67
|
+
invalid_properties = super
|
71
68
|
if @x_value.nil?
|
72
69
|
invalid_properties.push('invalid value for "x_value", x_value cannot be nil.')
|
73
70
|
end
|
@@ -82,6 +79,7 @@ module AsposeSlidesCloud
|
|
82
79
|
# Check to see if the all the properties in the model are valid
|
83
80
|
# @return true if the model is valid
|
84
81
|
def valid?
|
82
|
+
return false if !super
|
85
83
|
return false if @x_value.nil?
|
86
84
|
return false if @y_value.nil?
|
87
85
|
true
|
@@ -114,15 +112,27 @@ module AsposeSlidesCloud
|
|
114
112
|
def build_from_hash(attributes)
|
115
113
|
return nil unless attributes.is_a?(Hash)
|
116
114
|
self.class.swagger_types.each_pair do |key, type|
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
if
|
121
|
-
|
115
|
+
mapKey = self.class.attribute_map[key]
|
116
|
+
if !mapKey.nil?
|
117
|
+
val = attributes[mapKey]
|
118
|
+
if val.nil?
|
119
|
+
mapKeyString = mapKey.to_s
|
120
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
121
|
+
mapKey = mapKeyString.to_sym
|
122
|
+
val = attributes[mapKey]
|
123
|
+
end
|
124
|
+
if !val.nil?
|
125
|
+
if type =~ /\AArray<(.*)>/i
|
126
|
+
# check to ensure the input is an array given that the the attribute
|
127
|
+
# is documented as an array but the input is not
|
128
|
+
if val.is_a?(Array)
|
129
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
130
|
+
end
|
131
|
+
else
|
132
|
+
self.send("#{key}=", _deserialize(type, val))
|
133
|
+
end
|
122
134
|
end
|
123
|
-
|
124
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
125
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
135
|
+
end
|
126
136
|
end
|
127
137
|
|
128
138
|
self
|