aspose_slides_cloud 20.5.0 → 20.12.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/lib/aspose_slides_cloud.rb +12 -5
- data/lib/aspose_slides_cloud/api/slides_api.rb +4571 -1683
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +1191 -185
- data/lib/aspose_slides_cloud/api_client.rb +30 -23
- 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_format.rb +1 -0
- 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 +63 -35
- 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 +33 -50
- data/lib/aspose_slides_cloud/models/save_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/save_slide.rb +33 -50
- 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_export_format.rb +1 -0
- 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 +320 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +25246 -14028
- data/spec/extra/extra_spec.rb +156 -22
- data/spec/spec_utils.rb +11 -4
- data/testConfig.json +2 -2
- data/testRules.json +172 -77
- metadata +12 -3
@@ -39,7 +39,7 @@ module AsposeSlidesCloud
|
|
39
39
|
{
|
40
40
|
:'path' => :'Path',
|
41
41
|
:'password' => :'Password',
|
42
|
-
:'slides' => :'Slides'
|
42
|
+
:'slides' => :'Slides',
|
43
43
|
}
|
44
44
|
end
|
45
45
|
|
@@ -48,7 +48,7 @@ module AsposeSlidesCloud
|
|
48
48
|
{
|
49
49
|
:'path' => :'String',
|
50
50
|
:'password' => :'String',
|
51
|
-
:'slides' => :'Array<Integer>'
|
51
|
+
:'slides' => :'Array<Integer>',
|
52
52
|
}
|
53
53
|
end
|
54
54
|
|
@@ -116,15 +116,27 @@ module AsposeSlidesCloud
|
|
116
116
|
def build_from_hash(attributes)
|
117
117
|
return nil unless attributes.is_a?(Hash)
|
118
118
|
self.class.swagger_types.each_pair do |key, type|
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
if
|
123
|
-
|
119
|
+
mapKey = self.class.attribute_map[key]
|
120
|
+
if !mapKey.nil?
|
121
|
+
val = attributes[mapKey]
|
122
|
+
if val.nil?
|
123
|
+
mapKeyString = mapKey.to_s
|
124
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
125
|
+
mapKey = mapKeyString.to_sym
|
126
|
+
val = attributes[mapKey]
|
124
127
|
end
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
+
if !val.nil?
|
129
|
+
if type =~ /\AArray<(.*)>/i
|
130
|
+
# check to ensure the input is an array given that the the attribute
|
131
|
+
# is documented as an array but the input is not
|
132
|
+
if val.is_a?(Array)
|
133
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
134
|
+
end
|
135
|
+
else
|
136
|
+
self.send("#{key}=", _deserialize(type, val))
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
128
140
|
end
|
129
141
|
|
130
142
|
self
|
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
|
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
37
|
:'presentation_paths' => :'PresentationPaths',
|
38
|
-
:'presentation_passwords' => :'PresentationPasswords'
|
38
|
+
:'presentation_passwords' => :'PresentationPasswords',
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
|
|
43
43
|
def self.swagger_types
|
44
44
|
{
|
45
45
|
:'presentation_paths' => :'Array<String>',
|
46
|
-
:'presentation_passwords' => :'Array<String>'
|
46
|
+
:'presentation_passwords' => :'Array<String>',
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
@@ -108,15 +108,27 @@ module AsposeSlidesCloud
|
|
108
108
|
def build_from_hash(attributes)
|
109
109
|
return nil unless attributes.is_a?(Hash)
|
110
110
|
self.class.swagger_types.each_pair do |key, type|
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
if
|
115
|
-
|
111
|
+
mapKey = self.class.attribute_map[key]
|
112
|
+
if !mapKey.nil?
|
113
|
+
val = attributes[mapKey]
|
114
|
+
if val.nil?
|
115
|
+
mapKeyString = mapKey.to_s
|
116
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
117
|
+
mapKey = mapKeyString.to_sym
|
118
|
+
val = attributes[mapKey]
|
116
119
|
end
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
+
if !val.nil?
|
121
|
+
if type =~ /\AArray<(.*)>/i
|
122
|
+
# check to ensure the input is an array given that the the attribute
|
123
|
+
# is documented as an array but the input is not
|
124
|
+
if val.is_a?(Array)
|
125
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
126
|
+
end
|
127
|
+
else
|
128
|
+
self.send("#{key}=", _deserialize(type, val))
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
120
132
|
end
|
121
133
|
|
122
134
|
self
|
@@ -65,7 +65,7 @@ module AsposeSlidesCloud
|
|
65
65
|
:'direction' => :'Direction',
|
66
66
|
:'distance' => :'Distance',
|
67
67
|
:'preset' => :'Preset',
|
68
|
-
:'shadow_color' => :'ShadowColor'
|
68
|
+
:'shadow_color' => :'ShadowColor',
|
69
69
|
}
|
70
70
|
end
|
71
71
|
|
@@ -75,7 +75,7 @@ module AsposeSlidesCloud
|
|
75
75
|
:'direction' => :'Float',
|
76
76
|
:'distance' => :'Float',
|
77
77
|
:'preset' => :'String',
|
78
|
-
:'shadow_color' => :'String'
|
78
|
+
:'shadow_color' => :'String',
|
79
79
|
}
|
80
80
|
end
|
81
81
|
|
@@ -173,15 +173,27 @@ module AsposeSlidesCloud
|
|
173
173
|
def build_from_hash(attributes)
|
174
174
|
return nil unless attributes.is_a?(Hash)
|
175
175
|
self.class.swagger_types.each_pair do |key, type|
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
if
|
180
|
-
|
176
|
+
mapKey = self.class.attribute_map[key]
|
177
|
+
if !mapKey.nil?
|
178
|
+
val = attributes[mapKey]
|
179
|
+
if val.nil?
|
180
|
+
mapKeyString = mapKey.to_s
|
181
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
182
|
+
mapKey = mapKeyString.to_sym
|
183
|
+
val = attributes[mapKey]
|
181
184
|
end
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
+
if !val.nil?
|
186
|
+
if type =~ /\AArray<(.*)>/i
|
187
|
+
# check to ensure the input is an array given that the the attribute
|
188
|
+
# is documented as an array but the input is not
|
189
|
+
if val.is_a?(Array)
|
190
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
191
|
+
end
|
192
|
+
else
|
193
|
+
self.send("#{key}=", _deserialize(type, val))
|
194
|
+
end
|
195
|
+
end
|
196
|
+
end
|
185
197
|
end
|
186
198
|
|
187
199
|
self
|
@@ -105,7 +105,7 @@ module AsposeSlidesCloud
|
|
105
105
|
:'start_reflection_opacity' => :'StartReflectionOpacity',
|
106
106
|
:'end_reflection_opacity' => :'EndReflectionOpacity',
|
107
107
|
:'rectangle_align' => :'RectangleAlign',
|
108
|
-
:'rotate_shadow_with_shape' => :'RotateShadowWithShape'
|
108
|
+
:'rotate_shadow_with_shape' => :'RotateShadowWithShape',
|
109
109
|
}
|
110
110
|
end
|
111
111
|
|
@@ -125,7 +125,7 @@ module AsposeSlidesCloud
|
|
125
125
|
:'start_reflection_opacity' => :'Float',
|
126
126
|
:'end_reflection_opacity' => :'Float',
|
127
127
|
:'rectangle_align' => :'String',
|
128
|
-
:'rotate_shadow_with_shape' => :'BOOLEAN'
|
128
|
+
:'rotate_shadow_with_shape' => :'BOOLEAN',
|
129
129
|
}
|
130
130
|
end
|
131
131
|
|
@@ -328,15 +328,27 @@ module AsposeSlidesCloud
|
|
328
328
|
def build_from_hash(attributes)
|
329
329
|
return nil unless attributes.is_a?(Hash)
|
330
330
|
self.class.swagger_types.each_pair do |key, type|
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
if
|
335
|
-
|
331
|
+
mapKey = self.class.attribute_map[key]
|
332
|
+
if !mapKey.nil?
|
333
|
+
val = attributes[mapKey]
|
334
|
+
if val.nil?
|
335
|
+
mapKeyString = mapKey.to_s
|
336
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
337
|
+
mapKey = mapKeyString.to_sym
|
338
|
+
val = attributes[mapKey]
|
336
339
|
end
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
+
if !val.nil?
|
341
|
+
if type =~ /\AArray<(.*)>/i
|
342
|
+
# check to ensure the input is an array given that the the attribute
|
343
|
+
# is documented as an array but the input is not
|
344
|
+
if val.is_a?(Array)
|
345
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
346
|
+
end
|
347
|
+
else
|
348
|
+
self.send("#{key}=", _deserialize(type, val))
|
349
|
+
end
|
350
|
+
end
|
351
|
+
end
|
340
352
|
end
|
341
353
|
|
342
354
|
self
|
@@ -24,10 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Remove shape task.
|
27
|
-
class RemoveShape
|
28
|
-
# Task type.
|
29
|
-
attr_accessor :type
|
30
|
-
|
27
|
+
class RemoveShape < Task
|
31
28
|
# Shape path for a grouped or smart art shape.
|
32
29
|
attr_accessor :shape_path
|
33
30
|
|
@@ -55,69 +52,43 @@ 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
|
+
:'shape_path' => :'ShapePath',
|
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
|
+
:'shape_path' => :'String',
|
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 = "RemoveShape"
|
84
|
-
end
|
70
|
+
super
|
85
71
|
|
86
72
|
if attributes.has_key?(:'ShapePath')
|
87
73
|
self.shape_path = attributes[:'ShapePath']
|
88
74
|
end
|
75
|
+
self.type = "RemoveShape"
|
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
|
invalid_properties
|
100
83
|
end
|
101
84
|
|
102
85
|
# Check to see if the all the properties in the model are valid
|
103
86
|
# @return true if the model is valid
|
104
87
|
def valid?
|
105
|
-
return false if
|
106
|
-
type_validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
107
|
-
return false unless type_validator.valid?(@type)
|
88
|
+
return false if !super
|
108
89
|
true
|
109
90
|
end
|
110
91
|
|
111
|
-
# Custom attribute writer method checking allowed values (enum).
|
112
|
-
# @param [Object] type Object to be assigned
|
113
|
-
def type=(type)
|
114
|
-
validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
115
|
-
unless validator.valid?(type)
|
116
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
117
|
-
end
|
118
|
-
@type = type
|
119
|
-
end
|
120
|
-
|
121
92
|
# Checks equality by comparing each attribute.
|
122
93
|
# @param [Object] Object to be compared
|
123
94
|
def ==(o)
|
@@ -145,15 +116,27 @@ module AsposeSlidesCloud
|
|
145
116
|
def build_from_hash(attributes)
|
146
117
|
return nil unless attributes.is_a?(Hash)
|
147
118
|
self.class.swagger_types.each_pair do |key, type|
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
if
|
152
|
-
|
119
|
+
mapKey = self.class.attribute_map[key]
|
120
|
+
if !mapKey.nil?
|
121
|
+
val = attributes[mapKey]
|
122
|
+
if val.nil?
|
123
|
+
mapKeyString = mapKey.to_s
|
124
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
125
|
+
mapKey = mapKeyString.to_sym
|
126
|
+
val = attributes[mapKey]
|
127
|
+
end
|
128
|
+
if !val.nil?
|
129
|
+
if type =~ /\AArray<(.*)>/i
|
130
|
+
# check to ensure the input is an array given that the the attribute
|
131
|
+
# is documented as an array but the input is not
|
132
|
+
if val.is_a?(Array)
|
133
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
134
|
+
end
|
135
|
+
else
|
136
|
+
self.send("#{key}=", _deserialize(type, val))
|
137
|
+
end
|
153
138
|
end
|
154
|
-
|
155
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
156
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
139
|
+
end
|
157
140
|
end
|
158
141
|
|
159
142
|
self
|
@@ -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)
|
@@ -150,15 +121,27 @@ module AsposeSlidesCloud
|
|
150
121
|
def build_from_hash(attributes)
|
151
122
|
return nil unless attributes.is_a?(Hash)
|
152
123
|
self.class.swagger_types.each_pair do |key, type|
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
if
|
157
|
-
|
124
|
+
mapKey = self.class.attribute_map[key]
|
125
|
+
if !mapKey.nil?
|
126
|
+
val = attributes[mapKey]
|
127
|
+
if val.nil?
|
128
|
+
mapKeyString = mapKey.to_s
|
129
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
130
|
+
mapKey = mapKeyString.to_sym
|
131
|
+
val = attributes[mapKey]
|
132
|
+
end
|
133
|
+
if !val.nil?
|
134
|
+
if type =~ /\AArray<(.*)>/i
|
135
|
+
# check to ensure the input is an array given that the the attribute
|
136
|
+
# is documented as an array but the input is not
|
137
|
+
if val.is_a?(Array)
|
138
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
139
|
+
end
|
140
|
+
else
|
141
|
+
self.send("#{key}=", _deserialize(type, val))
|
142
|
+
end
|
158
143
|
end
|
159
|
-
|
160
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
161
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
144
|
+
end
|
162
145
|
end
|
163
146
|
|
164
147
|
self
|