aspose_slides_cloud 24.9.0 → 24.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -7
- data/README.md +10 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +78 -2
- data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +14 -2
- data/lib/aspose_slides_cloud/models/drawing_guide.rb +123 -0
- data/lib/aspose_slides_cloud/models/effect.rb +4 -4
- data/lib/aspose_slides_cloud/models/export_options.rb +11 -1
- data/lib/aspose_slides_cloud/models/gif_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/html_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/image_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/image_export_options_base.rb +2 -1
- data/lib/aspose_slides_cloud/models/markdown_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +13 -2
- data/lib/aspose_slides_cloud/models/picture_fill.rb +85 -1
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/shape.rb +4 -2
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/video_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/view_properties.rb +12 -2
- data/lib/aspose_slides_cloud/models/xaml_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/type_registry.rb +1 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +1 -0
- data/spec/api/slides_api_spec.rb +246 -1
- data/spec/use_cases/image_spec.rb +15 -4
- data/testRules.json +4 -1
- metadata +3 -2
@@ -40,6 +40,24 @@ module AsposeSlidesCloud
|
|
40
40
|
# Picture resolution.
|
41
41
|
attr_accessor :dpi
|
42
42
|
|
43
|
+
# The horizontal offset of the texture from the shape's origin in points. A positive value moves the texture to the right, while a negative value moves it to the left.
|
44
|
+
attr_accessor :tile_offset_x
|
45
|
+
|
46
|
+
# The vertical offset of the texture from the shape's origin in points. A positive value moves the texture down, while a negative value moves it up.
|
47
|
+
attr_accessor :tile_offset_y
|
48
|
+
|
49
|
+
# The horizontal scale for the texture fill as a percentage.
|
50
|
+
attr_accessor :tile_scale_x
|
51
|
+
|
52
|
+
# The vertical scale for the texture fill as a percentage.
|
53
|
+
attr_accessor :tile_scale_y
|
54
|
+
|
55
|
+
# The way texture is aligned within the shape. This setting controls the starting point of the texture pattern and how it repeats across the shape.
|
56
|
+
attr_accessor :tile_alignment
|
57
|
+
|
58
|
+
# Flips the texture tile around its horizontal, vertical or both axis.
|
59
|
+
attr_accessor :tile_flip
|
60
|
+
|
43
61
|
# Internal image link.
|
44
62
|
attr_accessor :image
|
45
63
|
|
@@ -63,6 +81,12 @@ module AsposeSlidesCloud
|
|
63
81
|
:'crop_right' => :'CropRight',
|
64
82
|
:'crop_top' => :'CropTop',
|
65
83
|
:'dpi' => :'Dpi',
|
84
|
+
:'tile_offset_x' => :'TileOffsetX',
|
85
|
+
:'tile_offset_y' => :'TileOffsetY',
|
86
|
+
:'tile_scale_x' => :'TileScaleX',
|
87
|
+
:'tile_scale_y' => :'TileScaleY',
|
88
|
+
:'tile_alignment' => :'TileAlignment',
|
89
|
+
:'tile_flip' => :'TileFlip',
|
66
90
|
:'image' => :'Image',
|
67
91
|
:'base64_data' => :'Base64Data',
|
68
92
|
:'svg_data' => :'SvgData',
|
@@ -79,6 +103,12 @@ module AsposeSlidesCloud
|
|
79
103
|
:'crop_right' => :'Float',
|
80
104
|
:'crop_top' => :'Float',
|
81
105
|
:'dpi' => :'Integer',
|
106
|
+
:'tile_offset_x' => :'Float',
|
107
|
+
:'tile_offset_y' => :'Float',
|
108
|
+
:'tile_scale_x' => :'Float',
|
109
|
+
:'tile_scale_y' => :'Float',
|
110
|
+
:'tile_alignment' => :'String',
|
111
|
+
:'tile_flip' => :'String',
|
82
112
|
:'image' => :'ResourceUri',
|
83
113
|
:'base64_data' => :'String',
|
84
114
|
:'svg_data' => :'String',
|
@@ -112,6 +142,30 @@ module AsposeSlidesCloud
|
|
112
142
|
self.dpi = attributes[:'Dpi']
|
113
143
|
end
|
114
144
|
|
145
|
+
if attributes.has_key?(:'TileOffsetX')
|
146
|
+
self.tile_offset_x = attributes[:'TileOffsetX']
|
147
|
+
end
|
148
|
+
|
149
|
+
if attributes.has_key?(:'TileOffsetY')
|
150
|
+
self.tile_offset_y = attributes[:'TileOffsetY']
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.has_key?(:'TileScaleX')
|
154
|
+
self.tile_scale_x = attributes[:'TileScaleX']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.has_key?(:'TileScaleY')
|
158
|
+
self.tile_scale_y = attributes[:'TileScaleY']
|
159
|
+
end
|
160
|
+
|
161
|
+
if attributes.has_key?(:'TileAlignment')
|
162
|
+
self.tile_alignment = attributes[:'TileAlignment']
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.has_key?(:'TileFlip')
|
166
|
+
self.tile_flip = attributes[:'TileFlip']
|
167
|
+
end
|
168
|
+
|
115
169
|
if attributes.has_key?(:'Image')
|
116
170
|
self.image = attributes[:'Image']
|
117
171
|
end
|
@@ -176,12 +230,36 @@ module AsposeSlidesCloud
|
|
176
230
|
return false if @crop_right.nil?
|
177
231
|
return false if @crop_top.nil?
|
178
232
|
return false if @dpi.nil?
|
233
|
+
tile_alignment_validator = EnumAttributeValidator.new('String', ['TopLeft', 'Top', 'TopRight', 'Left', 'Center', 'Right', 'BottomLeft', 'Bottom', 'BottomRight', 'NotDefined'])
|
234
|
+
return false unless tile_alignment_validator.valid?(@tile_alignment)
|
235
|
+
tile_flip_validator = EnumAttributeValidator.new('String', ['NoFlip', 'FlipX', 'FlipY', 'FlipBoth', 'NotDefined'])
|
236
|
+
return false unless tile_flip_validator.valid?(@tile_flip)
|
179
237
|
return false if @picture_fill_mode.nil?
|
180
238
|
picture_fill_mode_validator = EnumAttributeValidator.new('String', ['Tile', 'Stretch'])
|
181
239
|
return false unless picture_fill_mode_validator.valid?(@picture_fill_mode)
|
182
240
|
true
|
183
241
|
end
|
184
242
|
|
243
|
+
# Custom attribute writer method checking allowed values (enum).
|
244
|
+
# @param [Object] tile_alignment Object to be assigned
|
245
|
+
def tile_alignment=(tile_alignment)
|
246
|
+
validator = EnumAttributeValidator.new('String', ['TopLeft', 'Top', 'TopRight', 'Left', 'Center', 'Right', 'BottomLeft', 'Bottom', 'BottomRight', 'NotDefined'])
|
247
|
+
unless validator.valid?(tile_alignment)
|
248
|
+
fail ArgumentError, 'invalid value for "tile_alignment", must be one of #{validator.allowable_values}.'
|
249
|
+
end
|
250
|
+
@tile_alignment = tile_alignment
|
251
|
+
end
|
252
|
+
|
253
|
+
# Custom attribute writer method checking allowed values (enum).
|
254
|
+
# @param [Object] tile_flip Object to be assigned
|
255
|
+
def tile_flip=(tile_flip)
|
256
|
+
validator = EnumAttributeValidator.new('String', ['NoFlip', 'FlipX', 'FlipY', 'FlipBoth', 'NotDefined'])
|
257
|
+
unless validator.valid?(tile_flip)
|
258
|
+
fail ArgumentError, 'invalid value for "tile_flip", must be one of #{validator.allowable_values}.'
|
259
|
+
end
|
260
|
+
@tile_flip = tile_flip
|
261
|
+
end
|
262
|
+
|
185
263
|
# Custom attribute writer method checking allowed values (enum).
|
186
264
|
# @param [Object] picture_fill_mode Object to be assigned
|
187
265
|
def picture_fill_mode=(picture_fill_mode)
|
@@ -203,6 +281,12 @@ module AsposeSlidesCloud
|
|
203
281
|
crop_right == o.crop_right &&
|
204
282
|
crop_top == o.crop_top &&
|
205
283
|
dpi == o.dpi &&
|
284
|
+
tile_offset_x == o.tile_offset_x &&
|
285
|
+
tile_offset_y == o.tile_offset_y &&
|
286
|
+
tile_scale_x == o.tile_scale_x &&
|
287
|
+
tile_scale_y == o.tile_scale_y &&
|
288
|
+
tile_alignment == o.tile_alignment &&
|
289
|
+
tile_flip == o.tile_flip &&
|
206
290
|
image == o.image &&
|
207
291
|
base64_data == o.base64_data &&
|
208
292
|
svg_data == o.svg_data &&
|
@@ -219,7 +303,7 @@ module AsposeSlidesCloud
|
|
219
303
|
# Calculates hash code according to all attributes.
|
220
304
|
# @return [Fixnum] Hash code
|
221
305
|
def hash
|
222
|
-
[type, crop_bottom, crop_left, crop_right, crop_top, dpi, image, base64_data, svg_data, picture_fill_mode, image_transform_list].hash
|
306
|
+
[type, crop_bottom, crop_left, crop_right, crop_top, dpi, tile_offset_x, tile_offset_y, tile_scale_x, tile_scale_y, tile_alignment, tile_flip, image, base64_data, svg_data, picture_fill_mode, image_transform_list].hash
|
223
307
|
end
|
224
308
|
end
|
225
309
|
end
|
@@ -106,6 +106,7 @@ module AsposeSlidesCloud
|
|
106
106
|
return true if self.equal?(o)
|
107
107
|
self.class == o.class &&
|
108
108
|
default_regular_font == o.default_regular_font &&
|
109
|
+
delete_embedded_binary_objects == o.delete_embedded_binary_objects &&
|
109
110
|
gradient_style == o.gradient_style &&
|
110
111
|
font_fallback_rules == o.font_fallback_rules &&
|
111
112
|
font_subst_rules == o.font_subst_rules &&
|
@@ -123,7 +124,7 @@ module AsposeSlidesCloud
|
|
123
124
|
# Calculates hash code according to all attributes.
|
124
125
|
# @return [Fixnum] Hash code
|
125
126
|
def hash
|
126
|
-
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, conformance, zip64_mode].hash
|
127
|
+
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, format, conformance, zip64_mode].hash
|
127
128
|
end
|
128
129
|
end
|
129
130
|
end
|
@@ -47,7 +47,7 @@ module AsposeSlidesCloud
|
|
47
47
|
def self.swagger_types
|
48
48
|
super.merge({
|
49
49
|
:'text' => :'String',
|
50
|
-
:'paragraphs' => :'
|
50
|
+
:'paragraphs' => :'Array<Paragraph>',
|
51
51
|
:'text_frame_format' => :'TextFrameFormat',
|
52
52
|
})
|
53
53
|
end
|
@@ -62,7 +62,9 @@ module AsposeSlidesCloud
|
|
62
62
|
end
|
63
63
|
|
64
64
|
if attributes.has_key?(:'Paragraphs')
|
65
|
-
|
65
|
+
if (value = attributes[:'Paragraphs']).is_a?(Array)
|
66
|
+
self.paragraphs = value
|
67
|
+
end
|
66
68
|
end
|
67
69
|
|
68
70
|
if attributes.has_key?(:'TextFrameFormat')
|
@@ -187,6 +187,7 @@ module AsposeSlidesCloud
|
|
187
187
|
return true if self.equal?(o)
|
188
188
|
self.class == o.class &&
|
189
189
|
default_regular_font == o.default_regular_font &&
|
190
|
+
delete_embedded_binary_objects == o.delete_embedded_binary_objects &&
|
190
191
|
gradient_style == o.gradient_style &&
|
191
192
|
font_fallback_rules == o.font_fallback_rules &&
|
192
193
|
font_subst_rules == o.font_subst_rules &&
|
@@ -213,7 +214,7 @@ module AsposeSlidesCloud
|
|
213
214
|
# Calculates hash code according to all attributes.
|
214
215
|
# @return [Fixnum] Hash code
|
215
216
|
def hash
|
216
|
-
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, vectorize_text, metafile_rasterization_dpi, disable3_d_text, disable_gradient_split, disable_line_end_cropping, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, external_fonts_handling, use_frame_size, use_frame_rotation].hash
|
217
|
+
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, format, vectorize_text, metafile_rasterization_dpi, disable3_d_text, disable_gradient_split, disable_line_end_cropping, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, external_fonts_handling, use_frame_size, use_frame_rotation].hash
|
217
218
|
end
|
218
219
|
end
|
219
220
|
end
|
@@ -268,6 +268,7 @@ module AsposeSlidesCloud
|
|
268
268
|
return true if self.equal?(o)
|
269
269
|
self.class == o.class &&
|
270
270
|
default_regular_font == o.default_regular_font &&
|
271
|
+
delete_embedded_binary_objects == o.delete_embedded_binary_objects &&
|
271
272
|
gradient_style == o.gradient_style &&
|
272
273
|
font_fallback_rules == o.font_fallback_rules &&
|
273
274
|
font_subst_rules == o.font_subst_rules &&
|
@@ -303,7 +304,7 @@ module AsposeSlidesCloud
|
|
303
304
|
# Calculates hash code according to all attributes.
|
304
305
|
# @return [Fixnum] Hash code
|
305
306
|
def hash
|
306
|
-
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, show_hidden_slides, compressed, viewer_included, show_page_border, show_full_screen, show_page_stepper, show_search, show_top_pane, show_bottom_pane, show_left_pane, start_open_left_pane, enable_context_menu, logo_image, logo_link, jpeg_quality, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
|
307
|
+
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, format, show_hidden_slides, compressed, viewer_included, show_page_border, show_full_screen, show_page_stepper, show_search, show_top_pane, show_bottom_pane, show_left_pane, start_open_left_pane, enable_context_menu, logo_image, logo_link, jpeg_quality, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
|
307
308
|
end
|
308
309
|
end
|
309
310
|
end
|
@@ -163,6 +163,7 @@ module AsposeSlidesCloud
|
|
163
163
|
return true if self.equal?(o)
|
164
164
|
self.class == o.class &&
|
165
165
|
default_regular_font == o.default_regular_font &&
|
166
|
+
delete_embedded_binary_objects == o.delete_embedded_binary_objects &&
|
166
167
|
gradient_style == o.gradient_style &&
|
167
168
|
font_fallback_rules == o.font_fallback_rules &&
|
168
169
|
font_subst_rules == o.font_subst_rules &&
|
@@ -187,7 +188,7 @@ module AsposeSlidesCloud
|
|
187
188
|
# Calculates hash code according to all attributes.
|
188
189
|
# @return [Fixnum] Hash code
|
189
190
|
def hash
|
190
|
-
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, height, width, compression, dpi_x, dpi_y, show_hidden_slides, pixel_format, slides_layout_options, bw_conversion_mode].hash
|
191
|
+
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, format, height, width, compression, dpi_x, dpi_y, show_hidden_slides, pixel_format, slides_layout_options, bw_conversion_mode].hash
|
191
192
|
end
|
192
193
|
end
|
193
194
|
end
|
@@ -124,6 +124,7 @@ module AsposeSlidesCloud
|
|
124
124
|
return true if self.equal?(o)
|
125
125
|
self.class == o.class &&
|
126
126
|
default_regular_font == o.default_regular_font &&
|
127
|
+
delete_embedded_binary_objects == o.delete_embedded_binary_objects &&
|
127
128
|
gradient_style == o.gradient_style &&
|
128
129
|
font_fallback_rules == o.font_fallback_rules &&
|
129
130
|
font_subst_rules == o.font_subst_rules &&
|
@@ -143,7 +144,7 @@ module AsposeSlidesCloud
|
|
143
144
|
# Calculates hash code according to all attributes.
|
144
145
|
# @return [Fixnum] Hash code
|
145
146
|
def hash
|
146
|
-
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, slides_transition_duration, transition_type, transition_duration, video_resolution_type].hash
|
147
|
+
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, format, slides_transition_duration, transition_type, transition_duration, video_resolution_type].hash
|
147
148
|
end
|
148
149
|
end
|
149
150
|
end
|
@@ -52,6 +52,9 @@ module AsposeSlidesCloud
|
|
52
52
|
# True if the comments should be shown.
|
53
53
|
attr_accessor :show_comments
|
54
54
|
|
55
|
+
# The grid spacing that should be used for the grid underlying the presentation document, in points.
|
56
|
+
attr_accessor :grid_spacing
|
57
|
+
|
55
58
|
# Attribute mapping from ruby-style variable name to JSON key.
|
56
59
|
def self.attribute_map
|
57
60
|
super.merge({
|
@@ -64,6 +67,7 @@ module AsposeSlidesCloud
|
|
64
67
|
:'slide_view_properties' => :'SlideViewProperties',
|
65
68
|
:'notes_view_properties' => :'NotesViewProperties',
|
66
69
|
:'show_comments' => :'ShowComments',
|
70
|
+
:'grid_spacing' => :'GridSpacing',
|
67
71
|
})
|
68
72
|
end
|
69
73
|
|
@@ -79,6 +83,7 @@ module AsposeSlidesCloud
|
|
79
83
|
:'slide_view_properties' => :'CommonSlideViewProperties',
|
80
84
|
:'notes_view_properties' => :'CommonSlideViewProperties',
|
81
85
|
:'show_comments' => :'String',
|
86
|
+
:'grid_spacing' => :'Float',
|
82
87
|
})
|
83
88
|
end
|
84
89
|
|
@@ -122,6 +127,10 @@ module AsposeSlidesCloud
|
|
122
127
|
if attributes.has_key?(:'ShowComments')
|
123
128
|
self.show_comments = attributes[:'ShowComments']
|
124
129
|
end
|
130
|
+
|
131
|
+
if attributes.has_key?(:'GridSpacing')
|
132
|
+
self.grid_spacing = attributes[:'GridSpacing']
|
133
|
+
end
|
125
134
|
end
|
126
135
|
|
127
136
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -201,7 +210,8 @@ module AsposeSlidesCloud
|
|
201
210
|
restored_top == o.restored_top &&
|
202
211
|
slide_view_properties == o.slide_view_properties &&
|
203
212
|
notes_view_properties == o.notes_view_properties &&
|
204
|
-
show_comments == o.show_comments
|
213
|
+
show_comments == o.show_comments &&
|
214
|
+
grid_spacing == o.grid_spacing
|
205
215
|
end
|
206
216
|
|
207
217
|
# @see the `==` method
|
@@ -213,7 +223,7 @@ module AsposeSlidesCloud
|
|
213
223
|
# Calculates hash code according to all attributes.
|
214
224
|
# @return [Fixnum] Hash code
|
215
225
|
def hash
|
216
|
-
[self_uri, alternate_links, last_view, horizontal_bar_state, vertical_bar_state, prefer_single_view, restored_left, restored_top, slide_view_properties, notes_view_properties, show_comments].hash
|
226
|
+
[self_uri, alternate_links, last_view, horizontal_bar_state, vertical_bar_state, prefer_single_view, restored_left, restored_top, slide_view_properties, notes_view_properties, show_comments, grid_spacing].hash
|
217
227
|
end
|
218
228
|
end
|
219
229
|
end
|
@@ -73,6 +73,7 @@ module AsposeSlidesCloud
|
|
73
73
|
return true if self.equal?(o)
|
74
74
|
self.class == o.class &&
|
75
75
|
default_regular_font == o.default_regular_font &&
|
76
|
+
delete_embedded_binary_objects == o.delete_embedded_binary_objects &&
|
76
77
|
gradient_style == o.gradient_style &&
|
77
78
|
font_fallback_rules == o.font_fallback_rules &&
|
78
79
|
font_subst_rules == o.font_subst_rules &&
|
@@ -89,7 +90,7 @@ module AsposeSlidesCloud
|
|
89
90
|
# Calculates hash code according to all attributes.
|
90
91
|
# @return [Fixnum] Hash code
|
91
92
|
def hash
|
92
|
-
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, export_hidden_slides].hash
|
93
|
+
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, format, export_hidden_slides].hash
|
93
94
|
end
|
94
95
|
end
|
95
96
|
end
|
@@ -91,6 +91,7 @@ module AsposeSlidesCloud
|
|
91
91
|
return true if self.equal?(o)
|
92
92
|
self.class == o.class &&
|
93
93
|
default_regular_font == o.default_regular_font &&
|
94
|
+
delete_embedded_binary_objects == o.delete_embedded_binary_objects &&
|
94
95
|
gradient_style == o.gradient_style &&
|
95
96
|
font_fallback_rules == o.font_fallback_rules &&
|
96
97
|
font_subst_rules == o.font_subst_rules &&
|
@@ -109,7 +110,7 @@ module AsposeSlidesCloud
|
|
109
110
|
# Calculates hash code according to all attributes.
|
110
111
|
# @return [Fixnum] Hash code
|
111
112
|
def hash
|
112
|
-
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, show_hidden_slides, save_metafiles_as_png, draw_slides_frame].hash
|
113
|
+
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, format, show_hidden_slides, save_metafiles_as_png, draw_slides_frame].hash
|
113
114
|
end
|
114
115
|
end
|
115
116
|
end
|
@@ -302,6 +302,7 @@ module AsposeSlidesCloud
|
|
302
302
|
:'DocumentProperties' => { },
|
303
303
|
:'DocumentProperty' => { },
|
304
304
|
:'DocumentReplaceResult' => { },
|
305
|
+
:'DrawingGuide' => { },
|
305
306
|
:'DuotoneEffect' => { :'Type' => 'Duotone', },
|
306
307
|
:'Effect' => { },
|
307
308
|
:'EffectFormat' => { },
|
data/lib/aspose_slides_cloud.rb
CHANGED
@@ -97,6 +97,7 @@ require 'aspose_slides_cloud/models/document'
|
|
97
97
|
require 'aspose_slides_cloud/models/document_properties'
|
98
98
|
require 'aspose_slides_cloud/models/document_property'
|
99
99
|
require 'aspose_slides_cloud/models/document_replace_result'
|
100
|
+
require 'aspose_slides_cloud/models/drawing_guide'
|
100
101
|
require 'aspose_slides_cloud/models/duotone_effect'
|
101
102
|
require 'aspose_slides_cloud/models/effect'
|
102
103
|
require 'aspose_slides_cloud/models/effect_format'
|
data/spec/api/slides_api_spec.rb
CHANGED
@@ -809,6 +809,251 @@ describe 'SlidesApi' do
|
|
809
809
|
end
|
810
810
|
end
|
811
811
|
|
812
|
+
# unit tests for compress_image
|
813
|
+
# Deletes cropped areas of a pictire.
|
814
|
+
# @param name Document name.
|
815
|
+
# @param slide_index Slide index.
|
816
|
+
# @param shape_index Shape index (must refer to a picture frame).
|
817
|
+
# @param [Hash] opts the optional parameters
|
818
|
+
# @option opts [Float] :resolution Target resolution in DPI.
|
819
|
+
# @option opts [BOOLEAN] :delete_picture_cropped_areas true to delete picture cropped areas.
|
820
|
+
# @option opts [String] :password Document password.
|
821
|
+
# @option opts [String] :folder Document folder.
|
822
|
+
# @option opts [String] :storage Presentation storage.
|
823
|
+
# @return [nil]
|
824
|
+
describe 'compress_image test' do
|
825
|
+
it 'should work' do
|
826
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'CompressImage', 'String')
|
827
|
+
paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'CompressImage', 'Integer')
|
828
|
+
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'CompressImage', 'Integer')
|
829
|
+
paramresolution = AsposeSlidesCloud::SpecUtils.get_param_value('resolution', 'CompressImage', 'Float')
|
830
|
+
paramdelete_picture_cropped_areas = AsposeSlidesCloud::SpecUtils.get_param_value('deletePictureCroppedAreas', 'CompressImage', 'BOOLEAN')
|
831
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'CompressImage', 'String')
|
832
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'CompressImage', 'String')
|
833
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'CompressImage', 'String')
|
834
|
+
AsposeSlidesCloud::SpecUtils.initialize('CompressImage', nil, nil)
|
835
|
+
o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.compress_image_with_http_info(paramname, paramslide_index, paramshape_index, paramresolution, paramdelete_picture_cropped_areas, parampassword, paramfolder, paramstorage)
|
836
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('CompressImage', nil, nil, nil)
|
837
|
+
expect(c).to eq(code)
|
838
|
+
end
|
839
|
+
|
840
|
+
it 'invalid name' do
|
841
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'CompressImage', 'String')
|
842
|
+
paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'CompressImage', 'Integer')
|
843
|
+
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'CompressImage', 'Integer')
|
844
|
+
paramresolution = AsposeSlidesCloud::SpecUtils.get_param_value('resolution', 'CompressImage', 'Float')
|
845
|
+
paramdelete_picture_cropped_areas = AsposeSlidesCloud::SpecUtils.get_param_value('deletePictureCroppedAreas', 'CompressImage', 'BOOLEAN')
|
846
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'CompressImage', 'String')
|
847
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'CompressImage', 'String')
|
848
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'CompressImage', 'String')
|
849
|
+
paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'CompressImage', paramname, 'String')
|
850
|
+
AsposeSlidesCloud::SpecUtils.initialize('CompressImage', 'name', paramname)
|
851
|
+
begin
|
852
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.compress_image_with_http_info(paramname, paramslide_index, paramshape_index, paramresolution, paramdelete_picture_cropped_areas, parampassword, paramfolder, paramstorage)
|
853
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('CompressImage', 'name')
|
854
|
+
fail "An exception expected"
|
855
|
+
end
|
856
|
+
rescue AsposeSlidesCloud::ApiError => e
|
857
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('CompressImage', 'name', paramname, 'String')
|
858
|
+
expect(e.code).to eq(code)
|
859
|
+
expect(e.response_body).to include(message)
|
860
|
+
rescue ArgumentError => e
|
861
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('CompressImage', 'name', paramname, 'String')
|
862
|
+
expect(400).to eq(code)
|
863
|
+
expect(e.message).to include(message)
|
864
|
+
end
|
865
|
+
end
|
866
|
+
|
867
|
+
it 'invalid slide_index' do
|
868
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'CompressImage', 'String')
|
869
|
+
paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'CompressImage', 'Integer')
|
870
|
+
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'CompressImage', 'Integer')
|
871
|
+
paramresolution = AsposeSlidesCloud::SpecUtils.get_param_value('resolution', 'CompressImage', 'Float')
|
872
|
+
paramdelete_picture_cropped_areas = AsposeSlidesCloud::SpecUtils.get_param_value('deletePictureCroppedAreas', 'CompressImage', 'BOOLEAN')
|
873
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'CompressImage', 'String')
|
874
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'CompressImage', 'String')
|
875
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'CompressImage', 'String')
|
876
|
+
paramslide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'CompressImage', paramslide_index, 'Integer')
|
877
|
+
AsposeSlidesCloud::SpecUtils.initialize('CompressImage', 'slideIndex', paramslide_index)
|
878
|
+
begin
|
879
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.compress_image_with_http_info(paramname, paramslide_index, paramshape_index, paramresolution, paramdelete_picture_cropped_areas, parampassword, paramfolder, paramstorage)
|
880
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('CompressImage', 'slideIndex')
|
881
|
+
fail "An exception expected"
|
882
|
+
end
|
883
|
+
rescue AsposeSlidesCloud::ApiError => e
|
884
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('CompressImage', 'slideIndex', paramslide_index, 'Integer')
|
885
|
+
expect(e.code).to eq(code)
|
886
|
+
expect(e.response_body).to include(message)
|
887
|
+
rescue ArgumentError => e
|
888
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('CompressImage', 'slideIndex', paramslide_index, 'Integer')
|
889
|
+
expect(400).to eq(code)
|
890
|
+
expect(e.message).to include(message)
|
891
|
+
end
|
892
|
+
end
|
893
|
+
|
894
|
+
it 'invalid shape_index' do
|
895
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'CompressImage', 'String')
|
896
|
+
paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'CompressImage', 'Integer')
|
897
|
+
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'CompressImage', 'Integer')
|
898
|
+
paramresolution = AsposeSlidesCloud::SpecUtils.get_param_value('resolution', 'CompressImage', 'Float')
|
899
|
+
paramdelete_picture_cropped_areas = AsposeSlidesCloud::SpecUtils.get_param_value('deletePictureCroppedAreas', 'CompressImage', 'BOOLEAN')
|
900
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'CompressImage', 'String')
|
901
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'CompressImage', 'String')
|
902
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'CompressImage', 'String')
|
903
|
+
paramshape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'CompressImage', paramshape_index, 'Integer')
|
904
|
+
AsposeSlidesCloud::SpecUtils.initialize('CompressImage', 'shapeIndex', paramshape_index)
|
905
|
+
begin
|
906
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.compress_image_with_http_info(paramname, paramslide_index, paramshape_index, paramresolution, paramdelete_picture_cropped_areas, parampassword, paramfolder, paramstorage)
|
907
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('CompressImage', 'shapeIndex')
|
908
|
+
fail "An exception expected"
|
909
|
+
end
|
910
|
+
rescue AsposeSlidesCloud::ApiError => e
|
911
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('CompressImage', 'shapeIndex', paramshape_index, 'Integer')
|
912
|
+
expect(e.code).to eq(code)
|
913
|
+
expect(e.response_body).to include(message)
|
914
|
+
rescue ArgumentError => e
|
915
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('CompressImage', 'shapeIndex', paramshape_index, 'Integer')
|
916
|
+
expect(400).to eq(code)
|
917
|
+
expect(e.message).to include(message)
|
918
|
+
end
|
919
|
+
end
|
920
|
+
|
921
|
+
it 'invalid resolution' do
|
922
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'CompressImage', 'String')
|
923
|
+
paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'CompressImage', 'Integer')
|
924
|
+
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'CompressImage', 'Integer')
|
925
|
+
paramresolution = AsposeSlidesCloud::SpecUtils.get_param_value('resolution', 'CompressImage', 'Float')
|
926
|
+
paramdelete_picture_cropped_areas = AsposeSlidesCloud::SpecUtils.get_param_value('deletePictureCroppedAreas', 'CompressImage', 'BOOLEAN')
|
927
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'CompressImage', 'String')
|
928
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'CompressImage', 'String')
|
929
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'CompressImage', 'String')
|
930
|
+
paramresolution = AsposeSlidesCloud::SpecUtils.invalidize_param_value('resolution', 'CompressImage', paramresolution, 'Float')
|
931
|
+
AsposeSlidesCloud::SpecUtils.initialize('CompressImage', 'resolution', paramresolution)
|
932
|
+
begin
|
933
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.compress_image_with_http_info(paramname, paramslide_index, paramshape_index, paramresolution, paramdelete_picture_cropped_areas, parampassword, paramfolder, paramstorage)
|
934
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('CompressImage', 'resolution')
|
935
|
+
fail "An exception expected"
|
936
|
+
end
|
937
|
+
rescue AsposeSlidesCloud::ApiError => e
|
938
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('CompressImage', 'resolution', paramresolution, 'Float')
|
939
|
+
expect(e.code).to eq(code)
|
940
|
+
expect(e.response_body).to include(message)
|
941
|
+
rescue ArgumentError => e
|
942
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('CompressImage', 'resolution', paramresolution, 'Float')
|
943
|
+
expect(400).to eq(code)
|
944
|
+
expect(e.message).to include(message)
|
945
|
+
end
|
946
|
+
end
|
947
|
+
|
948
|
+
it 'invalid delete_picture_cropped_areas' do
|
949
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'CompressImage', 'String')
|
950
|
+
paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'CompressImage', 'Integer')
|
951
|
+
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'CompressImage', 'Integer')
|
952
|
+
paramresolution = AsposeSlidesCloud::SpecUtils.get_param_value('resolution', 'CompressImage', 'Float')
|
953
|
+
paramdelete_picture_cropped_areas = AsposeSlidesCloud::SpecUtils.get_param_value('deletePictureCroppedAreas', 'CompressImage', 'BOOLEAN')
|
954
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'CompressImage', 'String')
|
955
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'CompressImage', 'String')
|
956
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'CompressImage', 'String')
|
957
|
+
paramdelete_picture_cropped_areas = AsposeSlidesCloud::SpecUtils.invalidize_param_value('deletePictureCroppedAreas', 'CompressImage', paramdelete_picture_cropped_areas, 'BOOLEAN')
|
958
|
+
AsposeSlidesCloud::SpecUtils.initialize('CompressImage', 'deletePictureCroppedAreas', paramdelete_picture_cropped_areas)
|
959
|
+
begin
|
960
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.compress_image_with_http_info(paramname, paramslide_index, paramshape_index, paramresolution, paramdelete_picture_cropped_areas, parampassword, paramfolder, paramstorage)
|
961
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('CompressImage', 'deletePictureCroppedAreas')
|
962
|
+
fail "An exception expected"
|
963
|
+
end
|
964
|
+
rescue AsposeSlidesCloud::ApiError => e
|
965
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('CompressImage', 'deletePictureCroppedAreas', paramdelete_picture_cropped_areas, 'BOOLEAN')
|
966
|
+
expect(e.code).to eq(code)
|
967
|
+
expect(e.response_body).to include(message)
|
968
|
+
rescue ArgumentError => e
|
969
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('CompressImage', 'deletePictureCroppedAreas', paramdelete_picture_cropped_areas, 'BOOLEAN')
|
970
|
+
expect(400).to eq(code)
|
971
|
+
expect(e.message).to include(message)
|
972
|
+
end
|
973
|
+
end
|
974
|
+
|
975
|
+
it 'invalid password' do
|
976
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'CompressImage', 'String')
|
977
|
+
paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'CompressImage', 'Integer')
|
978
|
+
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'CompressImage', 'Integer')
|
979
|
+
paramresolution = AsposeSlidesCloud::SpecUtils.get_param_value('resolution', 'CompressImage', 'Float')
|
980
|
+
paramdelete_picture_cropped_areas = AsposeSlidesCloud::SpecUtils.get_param_value('deletePictureCroppedAreas', 'CompressImage', 'BOOLEAN')
|
981
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'CompressImage', 'String')
|
982
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'CompressImage', 'String')
|
983
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'CompressImage', 'String')
|
984
|
+
parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'CompressImage', parampassword, 'String')
|
985
|
+
AsposeSlidesCloud::SpecUtils.initialize('CompressImage', 'password', parampassword)
|
986
|
+
begin
|
987
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.compress_image_with_http_info(paramname, paramslide_index, paramshape_index, paramresolution, paramdelete_picture_cropped_areas, parampassword, paramfolder, paramstorage)
|
988
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('CompressImage', 'password')
|
989
|
+
fail "An exception expected"
|
990
|
+
end
|
991
|
+
rescue AsposeSlidesCloud::ApiError => e
|
992
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('CompressImage', 'password', parampassword, 'String')
|
993
|
+
expect(e.code).to eq(code)
|
994
|
+
expect(e.response_body).to include(message)
|
995
|
+
rescue ArgumentError => e
|
996
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('CompressImage', 'password', parampassword, 'String')
|
997
|
+
expect(400).to eq(code)
|
998
|
+
expect(e.message).to include(message)
|
999
|
+
end
|
1000
|
+
end
|
1001
|
+
|
1002
|
+
it 'invalid folder' do
|
1003
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'CompressImage', 'String')
|
1004
|
+
paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'CompressImage', 'Integer')
|
1005
|
+
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'CompressImage', 'Integer')
|
1006
|
+
paramresolution = AsposeSlidesCloud::SpecUtils.get_param_value('resolution', 'CompressImage', 'Float')
|
1007
|
+
paramdelete_picture_cropped_areas = AsposeSlidesCloud::SpecUtils.get_param_value('deletePictureCroppedAreas', 'CompressImage', 'BOOLEAN')
|
1008
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'CompressImage', 'String')
|
1009
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'CompressImage', 'String')
|
1010
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'CompressImage', 'String')
|
1011
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'CompressImage', paramfolder, 'String')
|
1012
|
+
AsposeSlidesCloud::SpecUtils.initialize('CompressImage', 'folder', paramfolder)
|
1013
|
+
begin
|
1014
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.compress_image_with_http_info(paramname, paramslide_index, paramshape_index, paramresolution, paramdelete_picture_cropped_areas, parampassword, paramfolder, paramstorage)
|
1015
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('CompressImage', 'folder')
|
1016
|
+
fail "An exception expected"
|
1017
|
+
end
|
1018
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1019
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('CompressImage', 'folder', paramfolder, 'String')
|
1020
|
+
expect(e.code).to eq(code)
|
1021
|
+
expect(e.response_body).to include(message)
|
1022
|
+
rescue ArgumentError => e
|
1023
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('CompressImage', 'folder', paramfolder, 'String')
|
1024
|
+
expect(400).to eq(code)
|
1025
|
+
expect(e.message).to include(message)
|
1026
|
+
end
|
1027
|
+
end
|
1028
|
+
|
1029
|
+
it 'invalid storage' do
|
1030
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'CompressImage', 'String')
|
1031
|
+
paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'CompressImage', 'Integer')
|
1032
|
+
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'CompressImage', 'Integer')
|
1033
|
+
paramresolution = AsposeSlidesCloud::SpecUtils.get_param_value('resolution', 'CompressImage', 'Float')
|
1034
|
+
paramdelete_picture_cropped_areas = AsposeSlidesCloud::SpecUtils.get_param_value('deletePictureCroppedAreas', 'CompressImage', 'BOOLEAN')
|
1035
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'CompressImage', 'String')
|
1036
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'CompressImage', 'String')
|
1037
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'CompressImage', 'String')
|
1038
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'CompressImage', paramstorage, 'String')
|
1039
|
+
AsposeSlidesCloud::SpecUtils.initialize('CompressImage', 'storage', paramstorage)
|
1040
|
+
begin
|
1041
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.compress_image_with_http_info(paramname, paramslide_index, paramshape_index, paramresolution, paramdelete_picture_cropped_areas, parampassword, paramfolder, paramstorage)
|
1042
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('CompressImage', 'storage')
|
1043
|
+
fail "An exception expected"
|
1044
|
+
end
|
1045
|
+
rescue AsposeSlidesCloud::ApiError => e
|
1046
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('CompressImage', 'storage', paramstorage, 'String')
|
1047
|
+
expect(e.code).to eq(code)
|
1048
|
+
expect(e.response_body).to include(message)
|
1049
|
+
rescue ArgumentError => e
|
1050
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('CompressImage', 'storage', paramstorage, 'String')
|
1051
|
+
expect(400).to eq(code)
|
1052
|
+
expect(e.message).to include(message)
|
1053
|
+
end
|
1054
|
+
end
|
1055
|
+
end
|
1056
|
+
|
812
1057
|
# unit tests for convert
|
813
1058
|
# Convert presentation from request content to format specified.
|
814
1059
|
# @param document Document data.
|
@@ -29957,7 +30202,7 @@ describe 'SlidesApi' do
|
|
29957
30202
|
# @option opts [String] :folder Document folder.
|
29958
30203
|
# @option opts [String] :storage Document storage.
|
29959
30204
|
# @option opts [String] :shape_type Shape type.
|
29960
|
-
# @option opts [String] :sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2).
|
30205
|
+
# @option opts [String] :sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2\").
|
29961
30206
|
# @return [Shapes]
|
29962
30207
|
describe 'get_shapes test' do
|
29963
30208
|
it 'should work' do
|