aspose_slides_cloud 24.1.0 → 24.3.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 +17 -15
- data/README.md +17 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +157 -22
- data/lib/aspose_slides_cloud/api/slides_async_api.rb +8 -8
- data/lib/aspose_slides_cloud/models/audio_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/chart.rb +2 -1
- data/lib/aspose_slides_cloud/models/comment_author.rb +101 -0
- data/lib/aspose_slides_cloud/models/comment_authors.rb +93 -0
- data/lib/aspose_slides_cloud/models/connector.rb +2 -1
- data/lib/aspose_slides_cloud/models/effect.rb +23 -1
- data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +2 -1
- data/lib/aspose_slides_cloud/models/graphical_object.rb +2 -1
- data/lib/aspose_slides_cloud/models/group_shape.rb +2 -1
- data/lib/aspose_slides_cloud/models/handout_layouting_options.rb +133 -0
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +22 -2
- data/lib/aspose_slides_cloud/models/html_export_options.rb +8 -72
- data/lib/aspose_slides_cloud/models/image_export_options.rb +12 -66
- data/lib/aspose_slides_cloud/models/notes_comments_layouting_options.rb +155 -0
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +8 -72
- data/lib/aspose_slides_cloud/models/picture_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/save.rb +2 -2
- data/lib/aspose_slides_cloud/models/save_slide.rb +2 -2
- data/lib/aspose_slides_cloud/models/section_zoom_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/shape.rb +2 -1
- data/lib/aspose_slides_cloud/models/shape_base.rb +11 -1
- data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/slide_show_properties.rb +11 -1
- data/lib/aspose_slides_cloud/models/slides_layout_options.rb +102 -0
- data/lib/aspose_slides_cloud/models/smart_art.rb +2 -1
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +2 -1
- data/lib/aspose_slides_cloud/models/summary_zoom_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/summary_zoom_section.rb +2 -1
- data/lib/aspose_slides_cloud/models/table.rb +2 -1
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +23 -65
- data/lib/aspose_slides_cloud/models/video_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/zoom_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/zoom_object.rb +2 -1
- data/lib/aspose_slides_cloud/type_registry.rb +8 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +5 -0
- data/spec/api/slides_api_spec.rb +289 -0
- data/spec/use_cases/comment_spec.rb +8 -0
- data/spec/use_cases/image_spec.rb +27 -0
- data/testRules.json +2 -0
- metadata +7 -2
data/spec/api/slides_api_spec.rb
CHANGED
@@ -13132,6 +13132,181 @@ describe 'SlidesApi' do
|
|
13132
13132
|
end
|
13133
13133
|
end
|
13134
13134
|
|
13135
|
+
# unit tests for delete_picture_cropped_areas
|
13136
|
+
# Deletes cropped areas of a pictire.
|
13137
|
+
# @param name Document name.
|
13138
|
+
# @param slide_index Slide index.
|
13139
|
+
# @param shape_index Shape index (must refer to a picture frame).
|
13140
|
+
# @param password Document password.
|
13141
|
+
# @param folder Document folder.
|
13142
|
+
# @param [Hash] opts the optional parameters
|
13143
|
+
# @option opts [String] :storage Presentation storage.
|
13144
|
+
# @return [nil]
|
13145
|
+
describe 'delete_picture_cropped_areas test' do
|
13146
|
+
it 'should work' do
|
13147
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeletePictureCroppedAreas', 'String')
|
13148
|
+
paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeletePictureCroppedAreas', 'Integer')
|
13149
|
+
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeletePictureCroppedAreas', 'Integer')
|
13150
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeletePictureCroppedAreas', 'String')
|
13151
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeletePictureCroppedAreas', 'String')
|
13152
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeletePictureCroppedAreas', 'String')
|
13153
|
+
AsposeSlidesCloud::SpecUtils.initialize('DeletePictureCroppedAreas', nil, nil)
|
13154
|
+
o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_picture_cropped_areas_with_http_info(paramname, paramslide_index, paramshape_index, parampassword, paramfolder, paramstorage)
|
13155
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', nil, nil, nil)
|
13156
|
+
expect(c).to eq(code)
|
13157
|
+
end
|
13158
|
+
|
13159
|
+
it 'invalid name' do
|
13160
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeletePictureCroppedAreas', 'String')
|
13161
|
+
paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeletePictureCroppedAreas', 'Integer')
|
13162
|
+
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeletePictureCroppedAreas', 'Integer')
|
13163
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeletePictureCroppedAreas', 'String')
|
13164
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeletePictureCroppedAreas', 'String')
|
13165
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeletePictureCroppedAreas', 'String')
|
13166
|
+
paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'DeletePictureCroppedAreas', paramname, 'String')
|
13167
|
+
AsposeSlidesCloud::SpecUtils.initialize('DeletePictureCroppedAreas', 'name', paramname)
|
13168
|
+
begin
|
13169
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_picture_cropped_areas_with_http_info(paramname, paramslide_index, paramshape_index, parampassword, paramfolder, paramstorage)
|
13170
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('DeletePictureCroppedAreas', 'name')
|
13171
|
+
fail "An exception expected"
|
13172
|
+
end
|
13173
|
+
rescue AsposeSlidesCloud::ApiError => e
|
13174
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'name', paramname, 'String')
|
13175
|
+
expect(e.code).to eq(code)
|
13176
|
+
expect(e.response_body).to include(message)
|
13177
|
+
rescue ArgumentError => e
|
13178
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'name', paramname, 'String')
|
13179
|
+
expect(400).to eq(code)
|
13180
|
+
expect(e.message).to include(message)
|
13181
|
+
end
|
13182
|
+
end
|
13183
|
+
|
13184
|
+
it 'invalid slide_index' do
|
13185
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeletePictureCroppedAreas', 'String')
|
13186
|
+
paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeletePictureCroppedAreas', 'Integer')
|
13187
|
+
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeletePictureCroppedAreas', 'Integer')
|
13188
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeletePictureCroppedAreas', 'String')
|
13189
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeletePictureCroppedAreas', 'String')
|
13190
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeletePictureCroppedAreas', 'String')
|
13191
|
+
paramslide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'DeletePictureCroppedAreas', paramslide_index, 'Integer')
|
13192
|
+
AsposeSlidesCloud::SpecUtils.initialize('DeletePictureCroppedAreas', 'slideIndex', paramslide_index)
|
13193
|
+
begin
|
13194
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_picture_cropped_areas_with_http_info(paramname, paramslide_index, paramshape_index, parampassword, paramfolder, paramstorage)
|
13195
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('DeletePictureCroppedAreas', 'slideIndex')
|
13196
|
+
fail "An exception expected"
|
13197
|
+
end
|
13198
|
+
rescue AsposeSlidesCloud::ApiError => e
|
13199
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'slideIndex', paramslide_index, 'Integer')
|
13200
|
+
expect(e.code).to eq(code)
|
13201
|
+
expect(e.response_body).to include(message)
|
13202
|
+
rescue ArgumentError => e
|
13203
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'slideIndex', paramslide_index, 'Integer')
|
13204
|
+
expect(400).to eq(code)
|
13205
|
+
expect(e.message).to include(message)
|
13206
|
+
end
|
13207
|
+
end
|
13208
|
+
|
13209
|
+
it 'invalid shape_index' do
|
13210
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeletePictureCroppedAreas', 'String')
|
13211
|
+
paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeletePictureCroppedAreas', 'Integer')
|
13212
|
+
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeletePictureCroppedAreas', 'Integer')
|
13213
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeletePictureCroppedAreas', 'String')
|
13214
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeletePictureCroppedAreas', 'String')
|
13215
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeletePictureCroppedAreas', 'String')
|
13216
|
+
paramshape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'DeletePictureCroppedAreas', paramshape_index, 'Integer')
|
13217
|
+
AsposeSlidesCloud::SpecUtils.initialize('DeletePictureCroppedAreas', 'shapeIndex', paramshape_index)
|
13218
|
+
begin
|
13219
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_picture_cropped_areas_with_http_info(paramname, paramslide_index, paramshape_index, parampassword, paramfolder, paramstorage)
|
13220
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('DeletePictureCroppedAreas', 'shapeIndex')
|
13221
|
+
fail "An exception expected"
|
13222
|
+
end
|
13223
|
+
rescue AsposeSlidesCloud::ApiError => e
|
13224
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'shapeIndex', paramshape_index, 'Integer')
|
13225
|
+
expect(e.code).to eq(code)
|
13226
|
+
expect(e.response_body).to include(message)
|
13227
|
+
rescue ArgumentError => e
|
13228
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'shapeIndex', paramshape_index, 'Integer')
|
13229
|
+
expect(400).to eq(code)
|
13230
|
+
expect(e.message).to include(message)
|
13231
|
+
end
|
13232
|
+
end
|
13233
|
+
|
13234
|
+
it 'invalid password' do
|
13235
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeletePictureCroppedAreas', 'String')
|
13236
|
+
paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeletePictureCroppedAreas', 'Integer')
|
13237
|
+
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeletePictureCroppedAreas', 'Integer')
|
13238
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeletePictureCroppedAreas', 'String')
|
13239
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeletePictureCroppedAreas', 'String')
|
13240
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeletePictureCroppedAreas', 'String')
|
13241
|
+
parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'DeletePictureCroppedAreas', parampassword, 'String')
|
13242
|
+
AsposeSlidesCloud::SpecUtils.initialize('DeletePictureCroppedAreas', 'password', parampassword)
|
13243
|
+
begin
|
13244
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_picture_cropped_areas_with_http_info(paramname, paramslide_index, paramshape_index, parampassword, paramfolder, paramstorage)
|
13245
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('DeletePictureCroppedAreas', 'password')
|
13246
|
+
fail "An exception expected"
|
13247
|
+
end
|
13248
|
+
rescue AsposeSlidesCloud::ApiError => e
|
13249
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'password', parampassword, 'String')
|
13250
|
+
expect(e.code).to eq(code)
|
13251
|
+
expect(e.response_body).to include(message)
|
13252
|
+
rescue ArgumentError => e
|
13253
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'password', parampassword, 'String')
|
13254
|
+
expect(400).to eq(code)
|
13255
|
+
expect(e.message).to include(message)
|
13256
|
+
end
|
13257
|
+
end
|
13258
|
+
|
13259
|
+
it 'invalid folder' do
|
13260
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeletePictureCroppedAreas', 'String')
|
13261
|
+
paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeletePictureCroppedAreas', 'Integer')
|
13262
|
+
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeletePictureCroppedAreas', 'Integer')
|
13263
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeletePictureCroppedAreas', 'String')
|
13264
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeletePictureCroppedAreas', 'String')
|
13265
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeletePictureCroppedAreas', 'String')
|
13266
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'DeletePictureCroppedAreas', paramfolder, 'String')
|
13267
|
+
AsposeSlidesCloud::SpecUtils.initialize('DeletePictureCroppedAreas', 'folder', paramfolder)
|
13268
|
+
begin
|
13269
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_picture_cropped_areas_with_http_info(paramname, paramslide_index, paramshape_index, parampassword, paramfolder, paramstorage)
|
13270
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('DeletePictureCroppedAreas', 'folder')
|
13271
|
+
fail "An exception expected"
|
13272
|
+
end
|
13273
|
+
rescue AsposeSlidesCloud::ApiError => e
|
13274
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'folder', paramfolder, 'String')
|
13275
|
+
expect(e.code).to eq(code)
|
13276
|
+
expect(e.response_body).to include(message)
|
13277
|
+
rescue ArgumentError => e
|
13278
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'folder', paramfolder, 'String')
|
13279
|
+
expect(400).to eq(code)
|
13280
|
+
expect(e.message).to include(message)
|
13281
|
+
end
|
13282
|
+
end
|
13283
|
+
|
13284
|
+
it 'invalid storage' do
|
13285
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeletePictureCroppedAreas', 'String')
|
13286
|
+
paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeletePictureCroppedAreas', 'Integer')
|
13287
|
+
paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeletePictureCroppedAreas', 'Integer')
|
13288
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeletePictureCroppedAreas', 'String')
|
13289
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeletePictureCroppedAreas', 'String')
|
13290
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeletePictureCroppedAreas', 'String')
|
13291
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'DeletePictureCroppedAreas', paramstorage, 'String')
|
13292
|
+
AsposeSlidesCloud::SpecUtils.initialize('DeletePictureCroppedAreas', 'storage', paramstorage)
|
13293
|
+
begin
|
13294
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_picture_cropped_areas_with_http_info(paramname, paramslide_index, paramshape_index, parampassword, paramfolder, paramstorage)
|
13295
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('DeletePictureCroppedAreas', 'storage')
|
13296
|
+
fail "An exception expected"
|
13297
|
+
end
|
13298
|
+
rescue AsposeSlidesCloud::ApiError => e
|
13299
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'storage', paramstorage, 'String')
|
13300
|
+
expect(e.code).to eq(code)
|
13301
|
+
expect(e.response_body).to include(message)
|
13302
|
+
rescue ArgumentError => e
|
13303
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeletePictureCroppedAreas', 'storage', paramstorage, 'String')
|
13304
|
+
expect(400).to eq(code)
|
13305
|
+
expect(e.message).to include(message)
|
13306
|
+
end
|
13307
|
+
end
|
13308
|
+
end
|
13309
|
+
|
13135
13310
|
# unit tests for delete_portion
|
13136
13311
|
# Remove a portion.
|
13137
13312
|
# @param name Document name.
|
@@ -24563,6 +24738,120 @@ describe 'SlidesApi' do
|
|
24563
24738
|
end
|
24564
24739
|
end
|
24565
24740
|
|
24741
|
+
# unit tests for get_comment_authors
|
24742
|
+
# Lists comment authors.
|
24743
|
+
# @param name Document name.
|
24744
|
+
# @param [Hash] opts the optional parameters
|
24745
|
+
# @option opts [String] :password Document password.
|
24746
|
+
# @option opts [String] :folder Document folder.
|
24747
|
+
# @option opts [String] :storage Document storage.
|
24748
|
+
# @return [CommentAuthors]
|
24749
|
+
describe 'get_comment_authors test' do
|
24750
|
+
it 'should work' do
|
24751
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'GetCommentAuthors', 'String')
|
24752
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'GetCommentAuthors', 'String')
|
24753
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'GetCommentAuthors', 'String')
|
24754
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'GetCommentAuthors', 'String')
|
24755
|
+
AsposeSlidesCloud::SpecUtils.initialize('GetCommentAuthors', nil, nil)
|
24756
|
+
o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_comment_authors_with_http_info(paramname, parampassword, paramfolder, paramstorage)
|
24757
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetCommentAuthors', nil, nil, nil)
|
24758
|
+
expect(c).to eq(code)
|
24759
|
+
expect(o).not_to be_nil
|
24760
|
+
end
|
24761
|
+
|
24762
|
+
it 'invalid name' do
|
24763
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'GetCommentAuthors', 'String')
|
24764
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'GetCommentAuthors', 'String')
|
24765
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'GetCommentAuthors', 'String')
|
24766
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'GetCommentAuthors', 'String')
|
24767
|
+
paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'GetCommentAuthors', paramname, 'String')
|
24768
|
+
AsposeSlidesCloud::SpecUtils.initialize('GetCommentAuthors', 'name', paramname)
|
24769
|
+
begin
|
24770
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.get_comment_authors_with_http_info(paramname, parampassword, paramfolder, paramstorage)
|
24771
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('GetCommentAuthors', 'name')
|
24772
|
+
fail "An exception expected"
|
24773
|
+
end
|
24774
|
+
rescue AsposeSlidesCloud::ApiError => e
|
24775
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetCommentAuthors', 'name', paramname, 'String')
|
24776
|
+
expect(e.code).to eq(code)
|
24777
|
+
expect(e.response_body).to include(message)
|
24778
|
+
rescue ArgumentError => e
|
24779
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetCommentAuthors', 'name', paramname, 'String')
|
24780
|
+
expect(400).to eq(code)
|
24781
|
+
expect(e.message).to include(message)
|
24782
|
+
end
|
24783
|
+
end
|
24784
|
+
|
24785
|
+
it 'invalid password' do
|
24786
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'GetCommentAuthors', 'String')
|
24787
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'GetCommentAuthors', 'String')
|
24788
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'GetCommentAuthors', 'String')
|
24789
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'GetCommentAuthors', 'String')
|
24790
|
+
parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'GetCommentAuthors', parampassword, 'String')
|
24791
|
+
AsposeSlidesCloud::SpecUtils.initialize('GetCommentAuthors', 'password', parampassword)
|
24792
|
+
begin
|
24793
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.get_comment_authors_with_http_info(paramname, parampassword, paramfolder, paramstorage)
|
24794
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('GetCommentAuthors', 'password')
|
24795
|
+
fail "An exception expected"
|
24796
|
+
end
|
24797
|
+
rescue AsposeSlidesCloud::ApiError => e
|
24798
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetCommentAuthors', 'password', parampassword, 'String')
|
24799
|
+
expect(e.code).to eq(code)
|
24800
|
+
expect(e.response_body).to include(message)
|
24801
|
+
rescue ArgumentError => e
|
24802
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetCommentAuthors', 'password', parampassword, 'String')
|
24803
|
+
expect(400).to eq(code)
|
24804
|
+
expect(e.message).to include(message)
|
24805
|
+
end
|
24806
|
+
end
|
24807
|
+
|
24808
|
+
it 'invalid folder' do
|
24809
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'GetCommentAuthors', 'String')
|
24810
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'GetCommentAuthors', 'String')
|
24811
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'GetCommentAuthors', 'String')
|
24812
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'GetCommentAuthors', 'String')
|
24813
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'GetCommentAuthors', paramfolder, 'String')
|
24814
|
+
AsposeSlidesCloud::SpecUtils.initialize('GetCommentAuthors', 'folder', paramfolder)
|
24815
|
+
begin
|
24816
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.get_comment_authors_with_http_info(paramname, parampassword, paramfolder, paramstorage)
|
24817
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('GetCommentAuthors', 'folder')
|
24818
|
+
fail "An exception expected"
|
24819
|
+
end
|
24820
|
+
rescue AsposeSlidesCloud::ApiError => e
|
24821
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetCommentAuthors', 'folder', paramfolder, 'String')
|
24822
|
+
expect(e.code).to eq(code)
|
24823
|
+
expect(e.response_body).to include(message)
|
24824
|
+
rescue ArgumentError => e
|
24825
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetCommentAuthors', 'folder', paramfolder, 'String')
|
24826
|
+
expect(400).to eq(code)
|
24827
|
+
expect(e.message).to include(message)
|
24828
|
+
end
|
24829
|
+
end
|
24830
|
+
|
24831
|
+
it 'invalid storage' do
|
24832
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'GetCommentAuthors', 'String')
|
24833
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'GetCommentAuthors', 'String')
|
24834
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'GetCommentAuthors', 'String')
|
24835
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'GetCommentAuthors', 'String')
|
24836
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'GetCommentAuthors', paramstorage, 'String')
|
24837
|
+
AsposeSlidesCloud::SpecUtils.initialize('GetCommentAuthors', 'storage', paramstorage)
|
24838
|
+
begin
|
24839
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.get_comment_authors_with_http_info(paramname, parampassword, paramfolder, paramstorage)
|
24840
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('GetCommentAuthors', 'storage')
|
24841
|
+
fail "An exception expected"
|
24842
|
+
end
|
24843
|
+
rescue AsposeSlidesCloud::ApiError => e
|
24844
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetCommentAuthors', 'storage', paramstorage, 'String')
|
24845
|
+
expect(e.code).to eq(code)
|
24846
|
+
expect(e.response_body).to include(message)
|
24847
|
+
rescue ArgumentError => e
|
24848
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetCommentAuthors', 'storage', paramstorage, 'String')
|
24849
|
+
expect(400).to eq(code)
|
24850
|
+
expect(e.message).to include(message)
|
24851
|
+
end
|
24852
|
+
end
|
24853
|
+
end
|
24854
|
+
|
24566
24855
|
# unit tests for get_disc_usage
|
24567
24856
|
# Get disc usage
|
24568
24857
|
# @param [Hash] opts the optional parameters
|
@@ -155,5 +155,13 @@ describe 'UseCases' do
|
|
155
155
|
expect(response.list.length).to eq(1)
|
156
156
|
expect(response.list[0].type).to eq("Modern")
|
157
157
|
end
|
158
|
+
|
159
|
+
it "get comment authors" do
|
160
|
+
folder_name = "TempSlidesSDK"
|
161
|
+
file_name = "test.pptx"
|
162
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
163
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_comment_authors(file_name, "password", folder_name)
|
164
|
+
expect(response.list.length).to eq(1)
|
165
|
+
end
|
158
166
|
end
|
159
167
|
end
|
@@ -119,5 +119,32 @@ describe 'UseCases' do
|
|
119
119
|
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_image_online(file, image_index, image, password)
|
120
120
|
expect(response.size).not_to eq(0)
|
121
121
|
end
|
122
|
+
|
123
|
+
it 'delete picture cropped areas' do
|
124
|
+
folder_name = "TempSlidesSDK"
|
125
|
+
file_name = "test.pptx"
|
126
|
+
slide_index = 2
|
127
|
+
shape_index = 2
|
128
|
+
password = "password"
|
129
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
130
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_picture_cropped_areas(
|
131
|
+
file_name, slide_index, shape_index, password, folder_name)
|
132
|
+
end
|
133
|
+
|
134
|
+
it 'delete picture cropped areas wrong shape type' do
|
135
|
+
folder_name = "TempSlidesSDK"
|
136
|
+
file_name = "test.pptx"
|
137
|
+
slide_index = 2
|
138
|
+
shape_index = 3
|
139
|
+
password = "password"
|
140
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
141
|
+
begin
|
142
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_picture_cropped_areas(
|
143
|
+
file_name, slide_index, shape_index, password, folder_name)
|
144
|
+
fail "Should throw an exception if shape is not PictureFrame"
|
145
|
+
rescue AsposeSlidesCloud::ApiError => e
|
146
|
+
expect(e.code).to eq(400)
|
147
|
+
end
|
148
|
+
end
|
122
149
|
end
|
123
150
|
end
|
data/testRules.json
CHANGED
@@ -32,9 +32,11 @@
|
|
32
32
|
{ "Value": 5, "Parameter": "SlideIndex", "Method": "CreateSection" },
|
33
33
|
{ "Value": 4, "Parameter": "SlideIndex", "Method": "/ShapeGeometryPath/" },
|
34
34
|
{ "Value": 2, "Parameter": "SlideIndex", "Method": "/AsMathMl/" },
|
35
|
+
{ "Value": 2, "Parameter": "SlideIndex", "Method": "DeletePictureCroppedAreas" },
|
35
36
|
{ "Value": 2, "Parameter": "ShapeIndex", "Method": "/ChartDataPoint/" },
|
36
37
|
{ "Value": 2, "Parameter": "ShapeIndex", "Method": "/ChartWall/" },
|
37
38
|
{ "Value": 2, "Parameter": "ShapeIndex", "Method": "/ShapeGeometryPath/" },
|
39
|
+
{ "Value": 2, "Parameter": "ShapeIndex", "Method": "DeletePictureCroppedAreas" },
|
38
40
|
{ "Value": 3, "Parameter": "ShapeIndex", "Method": "/AsMathMl/" },
|
39
41
|
{ "Value": 2, "Parameter": "SectionIndex" },
|
40
42
|
{ "Value": 20, "InvalidValue": 593, "Parameter": "FontHeight" },
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspose_slides_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 24.
|
4
|
+
version: 24.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Putrov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01
|
11
|
+
date: 2024-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -325,6 +325,8 @@ files:
|
|
325
325
|
- lib/aspose_slides_cloud/models/color_change_effect.rb
|
326
326
|
- lib/aspose_slides_cloud/models/color_replace_effect.rb
|
327
327
|
- lib/aspose_slides_cloud/models/color_scheme.rb
|
328
|
+
- lib/aspose_slides_cloud/models/comment_author.rb
|
329
|
+
- lib/aspose_slides_cloud/models/comment_authors.rb
|
328
330
|
- lib/aspose_slides_cloud/models/common_slide_view_properties.rb
|
329
331
|
- lib/aspose_slides_cloud/models/connector.rb
|
330
332
|
- lib/aspose_slides_cloud/models/cubic_bezier_to_path_segment.rb
|
@@ -372,6 +374,7 @@ files:
|
|
372
374
|
- lib/aspose_slides_cloud/models/gray_scale_effect.rb
|
373
375
|
- lib/aspose_slides_cloud/models/group_shape.rb
|
374
376
|
- lib/aspose_slides_cloud/models/grouping_character_element.rb
|
377
|
+
- lib/aspose_slides_cloud/models/handout_layouting_options.rb
|
375
378
|
- lib/aspose_slides_cloud/models/header_footer.rb
|
376
379
|
- lib/aspose_slides_cloud/models/hsl_effect.rb
|
377
380
|
- lib/aspose_slides_cloud/models/html5_export_options.rb
|
@@ -409,6 +412,7 @@ files:
|
|
409
412
|
- lib/aspose_slides_cloud/models/nary_operator_element.rb
|
410
413
|
- lib/aspose_slides_cloud/models/no_fill.rb
|
411
414
|
- lib/aspose_slides_cloud/models/normal_view_restored_properties.rb
|
415
|
+
- lib/aspose_slides_cloud/models/notes_comments_layouting_options.rb
|
412
416
|
- lib/aspose_slides_cloud/models/notes_slide.rb
|
413
417
|
- lib/aspose_slides_cloud/models/notes_slide_export_format.rb
|
414
418
|
- lib/aspose_slides_cloud/models/notes_slide_header_footer.rb
|
@@ -488,6 +492,7 @@ files:
|
|
488
492
|
- lib/aspose_slides_cloud/models/slide_show_properties.rb
|
489
493
|
- lib/aspose_slides_cloud/models/slide_show_transition.rb
|
490
494
|
- lib/aspose_slides_cloud/models/slides.rb
|
495
|
+
- lib/aspose_slides_cloud/models/slides_layout_options.rb
|
491
496
|
- lib/aspose_slides_cloud/models/smart_art.rb
|
492
497
|
- lib/aspose_slides_cloud/models/smart_art_node.rb
|
493
498
|
- lib/aspose_slides_cloud/models/smart_art_shape.rb
|