aspose_slides_cloud 25.6.0 → 26.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +13 -13
- data/README.md +8 -1
- data/lib/aspose_slides_cloud/api/slides_api.rb +401 -397
- data/lib/aspose_slides_cloud/models/math_element.rb +2 -2
- data/lib/aspose_slides_cloud/models/phantom_element.rb +141 -0
- data/lib/aspose_slides_cloud/models/portion.rb +11 -1
- data/lib/aspose_slides_cloud/models/portion_format.rb +12 -2
- data/lib/aspose_slides_cloud/models/slide_show_transition.rb +12 -2
- data/lib/aspose_slides_cloud/type_registry.rb +2 -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 +1206 -1076
- data/spec/use_cases/font_spec.rb +22 -4
- data/spec/use_cases/image_spec.rb +5 -1
- data/testRules.json +10 -5
- metadata +3 -2
|
@@ -1123,6 +1123,86 @@ module AsposeSlidesCloud
|
|
|
1123
1123
|
:return_type => 'SlideAnimation')
|
|
1124
1124
|
return data, status_code, headers
|
|
1125
1125
|
end
|
|
1126
|
+
# Create video/audio captions track.
|
|
1127
|
+
# @param name Document name.
|
|
1128
|
+
# @param slide_index Slide index.
|
|
1129
|
+
# @param shape_index Shape index (must refer to a video or audio frame).
|
|
1130
|
+
# @param label Caption track label.
|
|
1131
|
+
# @param data Caption track data.
|
|
1132
|
+
# @param password Document password.
|
|
1133
|
+
# @param folder Document folder.
|
|
1134
|
+
# @param storage Presentation storage.
|
|
1135
|
+
def create_caption_track(name, slide_index, shape_index, label, data = nil, password = nil, folder = nil, storage = nil)
|
|
1136
|
+
data, _status_code, _headers = create_caption_track_with_http_info(name, slide_index, shape_index, label, data, password, folder, storage)
|
|
1137
|
+
data
|
|
1138
|
+
end
|
|
1139
|
+
|
|
1140
|
+
# Create video/audio captions track.
|
|
1141
|
+
# @param name Document name.
|
|
1142
|
+
# @param slide_index Slide index.
|
|
1143
|
+
# @param shape_index Shape index (must refer to a video or audio frame).
|
|
1144
|
+
# @param label Caption track label.
|
|
1145
|
+
# @param data Caption track data.
|
|
1146
|
+
# @param password Document password.
|
|
1147
|
+
# @param folder Document folder.
|
|
1148
|
+
# @param storage Presentation storage.
|
|
1149
|
+
def create_caption_track_with_http_info(name, slide_index, shape_index, label, data = nil, password = nil, folder = nil, storage = nil)
|
|
1150
|
+
if @api_client.config.debugging
|
|
1151
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.create_caption_track ...'
|
|
1152
|
+
end
|
|
1153
|
+
|
|
1154
|
+
# verify the required parameter 'name' is set
|
|
1155
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
1156
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.create_caption_track"
|
|
1157
|
+
end
|
|
1158
|
+
# verify the required parameter 'slide_index' is set
|
|
1159
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
|
1160
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.create_caption_track"
|
|
1161
|
+
end
|
|
1162
|
+
# verify the required parameter 'shape_index' is set
|
|
1163
|
+
if @api_client.config.client_side_validation && shape_index.nil?
|
|
1164
|
+
fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.create_caption_track"
|
|
1165
|
+
end
|
|
1166
|
+
# verify the required parameter 'label' is set
|
|
1167
|
+
if @api_client.config.client_side_validation && label.nil?
|
|
1168
|
+
fail ArgumentError, "Missing the required parameter 'label' when calling SlidesApi.create_caption_track"
|
|
1169
|
+
end
|
|
1170
|
+
# resource path
|
|
1171
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/captionTracks'
|
|
1172
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
|
1173
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
|
1174
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
|
|
1175
|
+
|
|
1176
|
+
# query parameters
|
|
1177
|
+
query_params = {}
|
|
1178
|
+
query_params[:'label'] = @api_client.prepare_for_query(label) unless label.nil?
|
|
1179
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
1180
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
1181
|
+
|
|
1182
|
+
# header parameters
|
|
1183
|
+
header_params = {}
|
|
1184
|
+
# HTTP header 'Accept' (if needed)
|
|
1185
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1186
|
+
# HTTP header 'Content-Type'
|
|
1187
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1188
|
+
header_params[:'password'] = password unless password.nil?
|
|
1189
|
+
|
|
1190
|
+
# http body (model)
|
|
1191
|
+
post_body = @api_client.object_to_http_body(data)
|
|
1192
|
+
|
|
1193
|
+
# form parameters
|
|
1194
|
+
post_files = []
|
|
1195
|
+
|
|
1196
|
+
auth_names = ['JWT']
|
|
1197
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
1198
|
+
:header_params => header_params,
|
|
1199
|
+
:query_params => query_params,
|
|
1200
|
+
:body => post_body,
|
|
1201
|
+
:files => post_files,
|
|
1202
|
+
:auth_names => auth_names,
|
|
1203
|
+
:return_type => 'CaptionTrack')
|
|
1204
|
+
return data, status_code, headers
|
|
1205
|
+
end
|
|
1126
1206
|
# Add a new category to a chart.
|
|
1127
1207
|
# @param name Document name.
|
|
1128
1208
|
# @param slide_index Slide index.
|
|
@@ -3281,86 +3361,6 @@ module AsposeSlidesCloud
|
|
|
3281
3361
|
:return_type => 'VbaModule')
|
|
3282
3362
|
return data, status_code, headers
|
|
3283
3363
|
end
|
|
3284
|
-
# Create video captions track.
|
|
3285
|
-
# @param name Document name.
|
|
3286
|
-
# @param slide_index Slide index.
|
|
3287
|
-
# @param shape_index Shape index (must refer to a picture frame).
|
|
3288
|
-
# @param label Caption track label.
|
|
3289
|
-
# @param data Caption track data.
|
|
3290
|
-
# @param password Document password.
|
|
3291
|
-
# @param folder Document folder.
|
|
3292
|
-
# @param storage Presentation storage.
|
|
3293
|
-
def create_video_caption_track(name, slide_index, shape_index, label, data = nil, password = nil, folder = nil, storage = nil)
|
|
3294
|
-
data, _status_code, _headers = create_video_caption_track_with_http_info(name, slide_index, shape_index, label, data, password, folder, storage)
|
|
3295
|
-
data
|
|
3296
|
-
end
|
|
3297
|
-
|
|
3298
|
-
# Create video captions track.
|
|
3299
|
-
# @param name Document name.
|
|
3300
|
-
# @param slide_index Slide index.
|
|
3301
|
-
# @param shape_index Shape index (must refer to a picture frame).
|
|
3302
|
-
# @param label Caption track label.
|
|
3303
|
-
# @param data Caption track data.
|
|
3304
|
-
# @param password Document password.
|
|
3305
|
-
# @param folder Document folder.
|
|
3306
|
-
# @param storage Presentation storage.
|
|
3307
|
-
def create_video_caption_track_with_http_info(name, slide_index, shape_index, label, data = nil, password = nil, folder = nil, storage = nil)
|
|
3308
|
-
if @api_client.config.debugging
|
|
3309
|
-
@api_client.config.logger.debug 'Calling API: SlidesApi.create_video_caption_track ...'
|
|
3310
|
-
end
|
|
3311
|
-
|
|
3312
|
-
# verify the required parameter 'name' is set
|
|
3313
|
-
if @api_client.config.client_side_validation && name.nil?
|
|
3314
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.create_video_caption_track"
|
|
3315
|
-
end
|
|
3316
|
-
# verify the required parameter 'slide_index' is set
|
|
3317
|
-
if @api_client.config.client_side_validation && slide_index.nil?
|
|
3318
|
-
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.create_video_caption_track"
|
|
3319
|
-
end
|
|
3320
|
-
# verify the required parameter 'shape_index' is set
|
|
3321
|
-
if @api_client.config.client_side_validation && shape_index.nil?
|
|
3322
|
-
fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.create_video_caption_track"
|
|
3323
|
-
end
|
|
3324
|
-
# verify the required parameter 'label' is set
|
|
3325
|
-
if @api_client.config.client_side_validation && label.nil?
|
|
3326
|
-
fail ArgumentError, "Missing the required parameter 'label' when calling SlidesApi.create_video_caption_track"
|
|
3327
|
-
end
|
|
3328
|
-
# resource path
|
|
3329
|
-
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/captionTracks'
|
|
3330
|
-
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
|
3331
|
-
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
|
3332
|
-
local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
|
|
3333
|
-
|
|
3334
|
-
# query parameters
|
|
3335
|
-
query_params = {}
|
|
3336
|
-
query_params[:'label'] = @api_client.prepare_for_query(label) unless label.nil?
|
|
3337
|
-
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
3338
|
-
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
3339
|
-
|
|
3340
|
-
# header parameters
|
|
3341
|
-
header_params = {}
|
|
3342
|
-
# HTTP header 'Accept' (if needed)
|
|
3343
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
3344
|
-
# HTTP header 'Content-Type'
|
|
3345
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
3346
|
-
header_params[:'password'] = password unless password.nil?
|
|
3347
|
-
|
|
3348
|
-
# http body (model)
|
|
3349
|
-
post_body = @api_client.object_to_http_body(data)
|
|
3350
|
-
|
|
3351
|
-
# form parameters
|
|
3352
|
-
post_files = []
|
|
3353
|
-
|
|
3354
|
-
auth_names = ['JWT']
|
|
3355
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
3356
|
-
:header_params => header_params,
|
|
3357
|
-
:query_params => query_params,
|
|
3358
|
-
:body => post_body,
|
|
3359
|
-
:files => post_files,
|
|
3360
|
-
:auth_names => auth_names,
|
|
3361
|
-
:return_type => 'CaptionTrack')
|
|
3362
|
-
return data, status_code, headers
|
|
3363
|
-
end
|
|
3364
3364
|
# Adds a text watermark to each slide of the presentation. Text watermark can be setup via method arguments or withing Shape DTO for detailed customization. Both options are applicable simultaneously.
|
|
3365
3365
|
# @param name Document name.
|
|
3366
3366
|
# @param shape Shape DTO
|
|
@@ -3974,6 +3974,153 @@ module AsposeSlidesCloud
|
|
|
3974
3974
|
:return_type => 'SlideBackground')
|
|
3975
3975
|
return data, status_code, headers
|
|
3976
3976
|
end
|
|
3977
|
+
# Delete video/audio captions track.
|
|
3978
|
+
# @param name Document name.
|
|
3979
|
+
# @param slide_index Slide index.
|
|
3980
|
+
# @param shape_index Shape index (must refer to a video or audio frame).
|
|
3981
|
+
# @param captions_index Captions track index.
|
|
3982
|
+
# @param password Document password.
|
|
3983
|
+
# @param folder Document folder.
|
|
3984
|
+
# @param storage Presentation storage.
|
|
3985
|
+
def delete_caption_track(name, slide_index, shape_index, captions_index, password = nil, folder = nil, storage = nil)
|
|
3986
|
+
delete_caption_track_with_http_info(name, slide_index, shape_index, captions_index, password, folder, storage)
|
|
3987
|
+
nil
|
|
3988
|
+
end
|
|
3989
|
+
|
|
3990
|
+
# Delete video/audio captions track.
|
|
3991
|
+
# @param name Document name.
|
|
3992
|
+
# @param slide_index Slide index.
|
|
3993
|
+
# @param shape_index Shape index (must refer to a video or audio frame).
|
|
3994
|
+
# @param captions_index Captions track index.
|
|
3995
|
+
# @param password Document password.
|
|
3996
|
+
# @param folder Document folder.
|
|
3997
|
+
# @param storage Presentation storage.
|
|
3998
|
+
def delete_caption_track_with_http_info(name, slide_index, shape_index, captions_index, password = nil, folder = nil, storage = nil)
|
|
3999
|
+
if @api_client.config.debugging
|
|
4000
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.delete_caption_track ...'
|
|
4001
|
+
end
|
|
4002
|
+
|
|
4003
|
+
# verify the required parameter 'name' is set
|
|
4004
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
4005
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.delete_caption_track"
|
|
4006
|
+
end
|
|
4007
|
+
# verify the required parameter 'slide_index' is set
|
|
4008
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
|
4009
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.delete_caption_track"
|
|
4010
|
+
end
|
|
4011
|
+
# verify the required parameter 'shape_index' is set
|
|
4012
|
+
if @api_client.config.client_side_validation && shape_index.nil?
|
|
4013
|
+
fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.delete_caption_track"
|
|
4014
|
+
end
|
|
4015
|
+
# verify the required parameter 'captions_index' is set
|
|
4016
|
+
if @api_client.config.client_side_validation && captions_index.nil?
|
|
4017
|
+
fail ArgumentError, "Missing the required parameter 'captions_index' when calling SlidesApi.delete_caption_track"
|
|
4018
|
+
end
|
|
4019
|
+
# resource path
|
|
4020
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/captionTracks/{captionsIndex}'
|
|
4021
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
|
4022
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
|
4023
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
|
|
4024
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'captionsIndex', captions_index)
|
|
4025
|
+
|
|
4026
|
+
# query parameters
|
|
4027
|
+
query_params = {}
|
|
4028
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
4029
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
4030
|
+
|
|
4031
|
+
# header parameters
|
|
4032
|
+
header_params = {}
|
|
4033
|
+
# HTTP header 'Accept' (if needed)
|
|
4034
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
4035
|
+
# HTTP header 'Content-Type'
|
|
4036
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
4037
|
+
header_params[:'password'] = password unless password.nil?
|
|
4038
|
+
|
|
4039
|
+
# http body (model)
|
|
4040
|
+
post_body = nil
|
|
4041
|
+
|
|
4042
|
+
# form parameters
|
|
4043
|
+
post_files = []
|
|
4044
|
+
|
|
4045
|
+
auth_names = ['JWT']
|
|
4046
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
4047
|
+
:header_params => header_params,
|
|
4048
|
+
:query_params => query_params,
|
|
4049
|
+
:body => post_body,
|
|
4050
|
+
:files => post_files,
|
|
4051
|
+
:auth_names => auth_names)
|
|
4052
|
+
return data, status_code, headers
|
|
4053
|
+
end
|
|
4054
|
+
# Delete all video/audio captions tracks.
|
|
4055
|
+
# @param name Document name.
|
|
4056
|
+
# @param slide_index Slide index.
|
|
4057
|
+
# @param shape_index Shape index (must refer to a video frame).
|
|
4058
|
+
# @param password Document password.
|
|
4059
|
+
# @param folder Document folder.
|
|
4060
|
+
# @param storage Presentation storage.
|
|
4061
|
+
def delete_caption_tracks(name, slide_index, shape_index, password = nil, folder = nil, storage = nil)
|
|
4062
|
+
delete_caption_tracks_with_http_info(name, slide_index, shape_index, password, folder, storage)
|
|
4063
|
+
nil
|
|
4064
|
+
end
|
|
4065
|
+
|
|
4066
|
+
# Delete all video/audio captions tracks.
|
|
4067
|
+
# @param name Document name.
|
|
4068
|
+
# @param slide_index Slide index.
|
|
4069
|
+
# @param shape_index Shape index (must refer to a video frame).
|
|
4070
|
+
# @param password Document password.
|
|
4071
|
+
# @param folder Document folder.
|
|
4072
|
+
# @param storage Presentation storage.
|
|
4073
|
+
def delete_caption_tracks_with_http_info(name, slide_index, shape_index, password = nil, folder = nil, storage = nil)
|
|
4074
|
+
if @api_client.config.debugging
|
|
4075
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.delete_caption_tracks ...'
|
|
4076
|
+
end
|
|
4077
|
+
|
|
4078
|
+
# verify the required parameter 'name' is set
|
|
4079
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
4080
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.delete_caption_tracks"
|
|
4081
|
+
end
|
|
4082
|
+
# verify the required parameter 'slide_index' is set
|
|
4083
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
|
4084
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.delete_caption_tracks"
|
|
4085
|
+
end
|
|
4086
|
+
# verify the required parameter 'shape_index' is set
|
|
4087
|
+
if @api_client.config.client_side_validation && shape_index.nil?
|
|
4088
|
+
fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.delete_caption_tracks"
|
|
4089
|
+
end
|
|
4090
|
+
# resource path
|
|
4091
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/captionTracks'
|
|
4092
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
|
4093
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
|
4094
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
|
|
4095
|
+
|
|
4096
|
+
# query parameters
|
|
4097
|
+
query_params = {}
|
|
4098
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
4099
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
4100
|
+
|
|
4101
|
+
# header parameters
|
|
4102
|
+
header_params = {}
|
|
4103
|
+
# HTTP header 'Accept' (if needed)
|
|
4104
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
4105
|
+
# HTTP header 'Content-Type'
|
|
4106
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
4107
|
+
header_params[:'password'] = password unless password.nil?
|
|
4108
|
+
|
|
4109
|
+
# http body (model)
|
|
4110
|
+
post_body = nil
|
|
4111
|
+
|
|
4112
|
+
# form parameters
|
|
4113
|
+
post_files = []
|
|
4114
|
+
|
|
4115
|
+
auth_names = ['JWT']
|
|
4116
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
4117
|
+
:header_params => header_params,
|
|
4118
|
+
:query_params => query_params,
|
|
4119
|
+
:body => post_body,
|
|
4120
|
+
:files => post_files,
|
|
4121
|
+
:auth_names => auth_names)
|
|
4122
|
+
return data, status_code, headers
|
|
4123
|
+
end
|
|
3977
4124
|
# Delete a category from a chart.
|
|
3978
4125
|
# @param name Document name.
|
|
3979
4126
|
# @param slide_index Slide index.
|
|
@@ -7301,197 +7448,49 @@ module AsposeSlidesCloud
|
|
|
7301
7448
|
end
|
|
7302
7449
|
|
|
7303
7450
|
auth_names = ['JWT']
|
|
7304
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
7305
|
-
:header_params => header_params,
|
|
7306
|
-
:query_params => query_params,
|
|
7307
|
-
:body => post_body,
|
|
7308
|
-
:files => post_files,
|
|
7309
|
-
:auth_names => auth_names,
|
|
7310
|
-
:return_type => 'File')
|
|
7311
|
-
return data, status_code, headers
|
|
7312
|
-
end
|
|
7313
|
-
# Delete module from VBA project.
|
|
7314
|
-
# @param name Document name.
|
|
7315
|
-
# @param module_index The index of the macros module to remove.
|
|
7316
|
-
# @param password Document password.
|
|
7317
|
-
# @param folder Document folder.
|
|
7318
|
-
# @param storage Document storage.
|
|
7319
|
-
def delete_vba_module(name, module_index, password = nil, folder = nil, storage = nil)
|
|
7320
|
-
data, _status_code, _headers = delete_vba_module_with_http_info(name, module_index, password, folder, storage)
|
|
7321
|
-
data
|
|
7322
|
-
end
|
|
7323
|
-
|
|
7324
|
-
# Delete module from VBA project.
|
|
7325
|
-
# @param name Document name.
|
|
7326
|
-
# @param module_index The index of the macros module to remove.
|
|
7327
|
-
# @param password Document password.
|
|
7328
|
-
# @param folder Document folder.
|
|
7329
|
-
# @param storage Document storage.
|
|
7330
|
-
def delete_vba_module_with_http_info(name, module_index, password = nil, folder = nil, storage = nil)
|
|
7331
|
-
if @api_client.config.debugging
|
|
7332
|
-
@api_client.config.logger.debug 'Calling API: SlidesApi.delete_vba_module ...'
|
|
7333
|
-
end
|
|
7334
|
-
|
|
7335
|
-
# verify the required parameter 'name' is set
|
|
7336
|
-
if @api_client.config.client_side_validation && name.nil?
|
|
7337
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.delete_vba_module"
|
|
7338
|
-
end
|
|
7339
|
-
# verify the required parameter 'module_index' is set
|
|
7340
|
-
if @api_client.config.client_side_validation && module_index.nil?
|
|
7341
|
-
fail ArgumentError, "Missing the required parameter 'module_index' when calling SlidesApi.delete_vba_module"
|
|
7342
|
-
end
|
|
7343
|
-
# resource path
|
|
7344
|
-
local_var_path = '/slides/{name}/vbaProject/modules/{moduleIndex}'
|
|
7345
|
-
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
|
7346
|
-
local_var_path = @api_client.replace_path_parameter(local_var_path, 'moduleIndex', module_index)
|
|
7347
|
-
|
|
7348
|
-
# query parameters
|
|
7349
|
-
query_params = {}
|
|
7350
|
-
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
7351
|
-
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
7352
|
-
|
|
7353
|
-
# header parameters
|
|
7354
|
-
header_params = {}
|
|
7355
|
-
# HTTP header 'Accept' (if needed)
|
|
7356
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
7357
|
-
# HTTP header 'Content-Type'
|
|
7358
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
7359
|
-
header_params[:'password'] = password unless password.nil?
|
|
7360
|
-
|
|
7361
|
-
# http body (model)
|
|
7362
|
-
post_body = nil
|
|
7363
|
-
|
|
7364
|
-
# form parameters
|
|
7365
|
-
post_files = []
|
|
7366
|
-
|
|
7367
|
-
auth_names = ['JWT']
|
|
7368
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
7369
|
-
:header_params => header_params,
|
|
7370
|
-
:query_params => query_params,
|
|
7371
|
-
:body => post_body,
|
|
7372
|
-
:files => post_files,
|
|
7373
|
-
:auth_names => auth_names,
|
|
7374
|
-
:return_type => 'VbaProject')
|
|
7375
|
-
return data, status_code, headers
|
|
7376
|
-
end
|
|
7377
|
-
# Delete video captions track.
|
|
7378
|
-
# @param name Document name.
|
|
7379
|
-
# @param slide_index Slide index.
|
|
7380
|
-
# @param shape_index Shape index (must refer to a video frame).
|
|
7381
|
-
# @param captions_index Captions track index.
|
|
7382
|
-
# @param password Document password.
|
|
7383
|
-
# @param folder Document folder.
|
|
7384
|
-
# @param storage Presentation storage.
|
|
7385
|
-
def delete_video_caption_track(name, slide_index, shape_index, captions_index, password = nil, folder = nil, storage = nil)
|
|
7386
|
-
delete_video_caption_track_with_http_info(name, slide_index, shape_index, captions_index, password, folder, storage)
|
|
7387
|
-
nil
|
|
7388
|
-
end
|
|
7389
|
-
|
|
7390
|
-
# Delete video captions track.
|
|
7391
|
-
# @param name Document name.
|
|
7392
|
-
# @param slide_index Slide index.
|
|
7393
|
-
# @param shape_index Shape index (must refer to a video frame).
|
|
7394
|
-
# @param captions_index Captions track index.
|
|
7395
|
-
# @param password Document password.
|
|
7396
|
-
# @param folder Document folder.
|
|
7397
|
-
# @param storage Presentation storage.
|
|
7398
|
-
def delete_video_caption_track_with_http_info(name, slide_index, shape_index, captions_index, password = nil, folder = nil, storage = nil)
|
|
7399
|
-
if @api_client.config.debugging
|
|
7400
|
-
@api_client.config.logger.debug 'Calling API: SlidesApi.delete_video_caption_track ...'
|
|
7401
|
-
end
|
|
7402
|
-
|
|
7403
|
-
# verify the required parameter 'name' is set
|
|
7404
|
-
if @api_client.config.client_side_validation && name.nil?
|
|
7405
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.delete_video_caption_track"
|
|
7406
|
-
end
|
|
7407
|
-
# verify the required parameter 'slide_index' is set
|
|
7408
|
-
if @api_client.config.client_side_validation && slide_index.nil?
|
|
7409
|
-
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.delete_video_caption_track"
|
|
7410
|
-
end
|
|
7411
|
-
# verify the required parameter 'shape_index' is set
|
|
7412
|
-
if @api_client.config.client_side_validation && shape_index.nil?
|
|
7413
|
-
fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.delete_video_caption_track"
|
|
7414
|
-
end
|
|
7415
|
-
# verify the required parameter 'captions_index' is set
|
|
7416
|
-
if @api_client.config.client_side_validation && captions_index.nil?
|
|
7417
|
-
fail ArgumentError, "Missing the required parameter 'captions_index' when calling SlidesApi.delete_video_caption_track"
|
|
7418
|
-
end
|
|
7419
|
-
# resource path
|
|
7420
|
-
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/captionTracks/{captionsIndex}'
|
|
7421
|
-
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
|
7422
|
-
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
|
7423
|
-
local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
|
|
7424
|
-
local_var_path = @api_client.replace_path_parameter(local_var_path, 'captionsIndex', captions_index)
|
|
7425
|
-
|
|
7426
|
-
# query parameters
|
|
7427
|
-
query_params = {}
|
|
7428
|
-
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
7429
|
-
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
7430
|
-
|
|
7431
|
-
# header parameters
|
|
7432
|
-
header_params = {}
|
|
7433
|
-
# HTTP header 'Accept' (if needed)
|
|
7434
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
7435
|
-
# HTTP header 'Content-Type'
|
|
7436
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
7437
|
-
header_params[:'password'] = password unless password.nil?
|
|
7438
|
-
|
|
7439
|
-
# http body (model)
|
|
7440
|
-
post_body = nil
|
|
7441
|
-
|
|
7442
|
-
# form parameters
|
|
7443
|
-
post_files = []
|
|
7444
|
-
|
|
7445
|
-
auth_names = ['JWT']
|
|
7446
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
7451
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
7447
7452
|
:header_params => header_params,
|
|
7448
7453
|
:query_params => query_params,
|
|
7449
7454
|
:body => post_body,
|
|
7450
7455
|
:files => post_files,
|
|
7451
|
-
:auth_names => auth_names
|
|
7456
|
+
:auth_names => auth_names,
|
|
7457
|
+
:return_type => 'File')
|
|
7452
7458
|
return data, status_code, headers
|
|
7453
7459
|
end
|
|
7454
|
-
# Delete
|
|
7460
|
+
# Delete module from VBA project.
|
|
7455
7461
|
# @param name Document name.
|
|
7456
|
-
# @param
|
|
7457
|
-
# @param shape_index Shape index (must refer to a video frame).
|
|
7462
|
+
# @param module_index The index of the macros module to remove.
|
|
7458
7463
|
# @param password Document password.
|
|
7459
7464
|
# @param folder Document folder.
|
|
7460
|
-
# @param storage
|
|
7461
|
-
def
|
|
7462
|
-
|
|
7463
|
-
|
|
7465
|
+
# @param storage Document storage.
|
|
7466
|
+
def delete_vba_module(name, module_index, password = nil, folder = nil, storage = nil)
|
|
7467
|
+
data, _status_code, _headers = delete_vba_module_with_http_info(name, module_index, password, folder, storage)
|
|
7468
|
+
data
|
|
7464
7469
|
end
|
|
7465
7470
|
|
|
7466
|
-
# Delete
|
|
7471
|
+
# Delete module from VBA project.
|
|
7467
7472
|
# @param name Document name.
|
|
7468
|
-
# @param
|
|
7469
|
-
# @param shape_index Shape index (must refer to a video frame).
|
|
7473
|
+
# @param module_index The index of the macros module to remove.
|
|
7470
7474
|
# @param password Document password.
|
|
7471
7475
|
# @param folder Document folder.
|
|
7472
|
-
# @param storage
|
|
7473
|
-
def
|
|
7476
|
+
# @param storage Document storage.
|
|
7477
|
+
def delete_vba_module_with_http_info(name, module_index, password = nil, folder = nil, storage = nil)
|
|
7474
7478
|
if @api_client.config.debugging
|
|
7475
|
-
@api_client.config.logger.debug 'Calling API: SlidesApi.
|
|
7479
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.delete_vba_module ...'
|
|
7476
7480
|
end
|
|
7477
7481
|
|
|
7478
7482
|
# verify the required parameter 'name' is set
|
|
7479
7483
|
if @api_client.config.client_side_validation && name.nil?
|
|
7480
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.
|
|
7481
|
-
end
|
|
7482
|
-
# verify the required parameter 'slide_index' is set
|
|
7483
|
-
if @api_client.config.client_side_validation && slide_index.nil?
|
|
7484
|
-
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.delete_video_caption_tracks"
|
|
7484
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.delete_vba_module"
|
|
7485
7485
|
end
|
|
7486
|
-
# verify the required parameter '
|
|
7487
|
-
if @api_client.config.client_side_validation &&
|
|
7488
|
-
fail ArgumentError, "Missing the required parameter '
|
|
7486
|
+
# verify the required parameter 'module_index' is set
|
|
7487
|
+
if @api_client.config.client_side_validation && module_index.nil?
|
|
7488
|
+
fail ArgumentError, "Missing the required parameter 'module_index' when calling SlidesApi.delete_vba_module"
|
|
7489
7489
|
end
|
|
7490
7490
|
# resource path
|
|
7491
|
-
local_var_path = '/slides/{name}/
|
|
7491
|
+
local_var_path = '/slides/{name}/vbaProject/modules/{moduleIndex}'
|
|
7492
7492
|
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
|
7493
|
-
local_var_path = @api_client.replace_path_parameter(local_var_path, '
|
|
7494
|
-
local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
|
|
7493
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'moduleIndex', module_index)
|
|
7495
7494
|
|
|
7496
7495
|
# query parameters
|
|
7497
7496
|
query_params = {}
|
|
@@ -7518,7 +7517,8 @@ module AsposeSlidesCloud
|
|
|
7518
7517
|
:query_params => query_params,
|
|
7519
7518
|
:body => post_body,
|
|
7520
7519
|
:files => post_files,
|
|
7521
|
-
:auth_names => auth_names
|
|
7520
|
+
:auth_names => auth_names,
|
|
7521
|
+
:return_type => 'VbaProject')
|
|
7522
7522
|
return data, status_code, headers
|
|
7523
7523
|
end
|
|
7524
7524
|
# Removes shapes with name \"watermark\" from the presentation.
|
|
@@ -9314,6 +9314,80 @@ module AsposeSlidesCloud
|
|
|
9314
9314
|
:return_type => 'SlideBackground')
|
|
9315
9315
|
return data, status_code, headers
|
|
9316
9316
|
end
|
|
9317
|
+
# Gets video/audio captions tracks.
|
|
9318
|
+
# @param name Document name.
|
|
9319
|
+
# @param slide_index Slide index.
|
|
9320
|
+
# @param shape_index Shape index (must refer to a video or audio frame).
|
|
9321
|
+
# @param include_data true to include caption data string values in the response.
|
|
9322
|
+
# @param password Document password.
|
|
9323
|
+
# @param folder Document folder.
|
|
9324
|
+
# @param storage Presentation storage.
|
|
9325
|
+
def get_caption_tracks(name, slide_index, shape_index, include_data = nil, password = nil, folder = nil, storage = nil)
|
|
9326
|
+
data, _status_code, _headers = get_caption_tracks_with_http_info(name, slide_index, shape_index, include_data, password, folder, storage)
|
|
9327
|
+
data
|
|
9328
|
+
end
|
|
9329
|
+
|
|
9330
|
+
# Gets video/audio captions tracks.
|
|
9331
|
+
# @param name Document name.
|
|
9332
|
+
# @param slide_index Slide index.
|
|
9333
|
+
# @param shape_index Shape index (must refer to a video or audio frame).
|
|
9334
|
+
# @param include_data true to include caption data string values in the response.
|
|
9335
|
+
# @param password Document password.
|
|
9336
|
+
# @param folder Document folder.
|
|
9337
|
+
# @param storage Presentation storage.
|
|
9338
|
+
def get_caption_tracks_with_http_info(name, slide_index, shape_index, include_data = nil, password = nil, folder = nil, storage = nil)
|
|
9339
|
+
if @api_client.config.debugging
|
|
9340
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.get_caption_tracks ...'
|
|
9341
|
+
end
|
|
9342
|
+
|
|
9343
|
+
# verify the required parameter 'name' is set
|
|
9344
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
9345
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.get_caption_tracks"
|
|
9346
|
+
end
|
|
9347
|
+
# verify the required parameter 'slide_index' is set
|
|
9348
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
|
9349
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.get_caption_tracks"
|
|
9350
|
+
end
|
|
9351
|
+
# verify the required parameter 'shape_index' is set
|
|
9352
|
+
if @api_client.config.client_side_validation && shape_index.nil?
|
|
9353
|
+
fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.get_caption_tracks"
|
|
9354
|
+
end
|
|
9355
|
+
# resource path
|
|
9356
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/captionTracks'
|
|
9357
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
|
9358
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
|
9359
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
|
|
9360
|
+
|
|
9361
|
+
# query parameters
|
|
9362
|
+
query_params = {}
|
|
9363
|
+
query_params[:'includeData'] = @api_client.prepare_for_query(include_data) unless include_data.nil?
|
|
9364
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
9365
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
9366
|
+
|
|
9367
|
+
# header parameters
|
|
9368
|
+
header_params = {}
|
|
9369
|
+
# HTTP header 'Accept' (if needed)
|
|
9370
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
9371
|
+
# HTTP header 'Content-Type'
|
|
9372
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
9373
|
+
header_params[:'password'] = password unless password.nil?
|
|
9374
|
+
|
|
9375
|
+
# http body (model)
|
|
9376
|
+
post_body = nil
|
|
9377
|
+
|
|
9378
|
+
# form parameters
|
|
9379
|
+
post_files = []
|
|
9380
|
+
|
|
9381
|
+
auth_names = ['JWT']
|
|
9382
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
9383
|
+
:header_params => header_params,
|
|
9384
|
+
:query_params => query_params,
|
|
9385
|
+
:body => post_body,
|
|
9386
|
+
:files => post_files,
|
|
9387
|
+
:auth_names => auth_names,
|
|
9388
|
+
:return_type => 'CaptionTracks')
|
|
9389
|
+
return data, status_code, headers
|
|
9390
|
+
end
|
|
9317
9391
|
# Read slide theme color scheme info.
|
|
9318
9392
|
# @param name Document name.
|
|
9319
9393
|
# @param slide_index Slide index.
|
|
@@ -11903,21 +11977,25 @@ module AsposeSlidesCloud
|
|
|
11903
11977
|
# Read slide images info.
|
|
11904
11978
|
# @param name Document name.
|
|
11905
11979
|
# @param slide_index Slide index.
|
|
11980
|
+
# @param shape_index Shape index (null to search all shapes).
|
|
11981
|
+
# @param shape_alt_text Shape alt name (null to search all shapes).
|
|
11906
11982
|
# @param password Document password.
|
|
11907
11983
|
# @param folder Document folder.
|
|
11908
11984
|
# @param storage Document storage.
|
|
11909
|
-
def get_slide_images(name, slide_index, password = nil, folder = nil, storage = nil)
|
|
11910
|
-
data, _status_code, _headers = get_slide_images_with_http_info(name, slide_index, password, folder, storage)
|
|
11985
|
+
def get_slide_images(name, slide_index, shape_index = nil, shape_alt_text = nil, password = nil, folder = nil, storage = nil)
|
|
11986
|
+
data, _status_code, _headers = get_slide_images_with_http_info(name, slide_index, shape_index, shape_alt_text, password, folder, storage)
|
|
11911
11987
|
data
|
|
11912
11988
|
end
|
|
11913
11989
|
|
|
11914
11990
|
# Read slide images info.
|
|
11915
11991
|
# @param name Document name.
|
|
11916
11992
|
# @param slide_index Slide index.
|
|
11993
|
+
# @param shape_index Shape index (null to search all shapes).
|
|
11994
|
+
# @param shape_alt_text Shape alt name (null to search all shapes).
|
|
11917
11995
|
# @param password Document password.
|
|
11918
11996
|
# @param folder Document folder.
|
|
11919
11997
|
# @param storage Document storage.
|
|
11920
|
-
def get_slide_images_with_http_info(name, slide_index, password = nil, folder = nil, storage = nil)
|
|
11998
|
+
def get_slide_images_with_http_info(name, slide_index, shape_index = nil, shape_alt_text = nil, password = nil, folder = nil, storage = nil)
|
|
11921
11999
|
if @api_client.config.debugging
|
|
11922
12000
|
@api_client.config.logger.debug 'Calling API: SlidesApi.get_slide_images ...'
|
|
11923
12001
|
end
|
|
@@ -11937,6 +12015,8 @@ module AsposeSlidesCloud
|
|
|
11937
12015
|
|
|
11938
12016
|
# query parameters
|
|
11939
12017
|
query_params = {}
|
|
12018
|
+
query_params[:'shapeIndex'] = @api_client.prepare_for_query(shape_index) unless shape_index.nil?
|
|
12019
|
+
query_params[:'shapeAltText'] = @api_client.prepare_for_query(shape_alt_text) unless shape_alt_text.nil?
|
|
11940
12020
|
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
11941
12021
|
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
11942
12022
|
|
|
@@ -13367,80 +13447,6 @@ module AsposeSlidesCloud
|
|
|
13367
13447
|
:return_type => 'VbaProject')
|
|
13368
13448
|
return data, status_code, headers
|
|
13369
13449
|
end
|
|
13370
|
-
# Gets video captions tracks.
|
|
13371
|
-
# @param name Document name.
|
|
13372
|
-
# @param slide_index Slide index.
|
|
13373
|
-
# @param shape_index Shape index (must refer to a picture frame).
|
|
13374
|
-
# @param include_data true to include caption data string values in the response.
|
|
13375
|
-
# @param password Document password.
|
|
13376
|
-
# @param folder Document folder.
|
|
13377
|
-
# @param storage Presentation storage.
|
|
13378
|
-
def get_video_caption_tracks(name, slide_index, shape_index, include_data = nil, password = nil, folder = nil, storage = nil)
|
|
13379
|
-
data, _status_code, _headers = get_video_caption_tracks_with_http_info(name, slide_index, shape_index, include_data, password, folder, storage)
|
|
13380
|
-
data
|
|
13381
|
-
end
|
|
13382
|
-
|
|
13383
|
-
# Gets video captions tracks.
|
|
13384
|
-
# @param name Document name.
|
|
13385
|
-
# @param slide_index Slide index.
|
|
13386
|
-
# @param shape_index Shape index (must refer to a picture frame).
|
|
13387
|
-
# @param include_data true to include caption data string values in the response.
|
|
13388
|
-
# @param password Document password.
|
|
13389
|
-
# @param folder Document folder.
|
|
13390
|
-
# @param storage Presentation storage.
|
|
13391
|
-
def get_video_caption_tracks_with_http_info(name, slide_index, shape_index, include_data = nil, password = nil, folder = nil, storage = nil)
|
|
13392
|
-
if @api_client.config.debugging
|
|
13393
|
-
@api_client.config.logger.debug 'Calling API: SlidesApi.get_video_caption_tracks ...'
|
|
13394
|
-
end
|
|
13395
|
-
|
|
13396
|
-
# verify the required parameter 'name' is set
|
|
13397
|
-
if @api_client.config.client_side_validation && name.nil?
|
|
13398
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.get_video_caption_tracks"
|
|
13399
|
-
end
|
|
13400
|
-
# verify the required parameter 'slide_index' is set
|
|
13401
|
-
if @api_client.config.client_side_validation && slide_index.nil?
|
|
13402
|
-
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.get_video_caption_tracks"
|
|
13403
|
-
end
|
|
13404
|
-
# verify the required parameter 'shape_index' is set
|
|
13405
|
-
if @api_client.config.client_side_validation && shape_index.nil?
|
|
13406
|
-
fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.get_video_caption_tracks"
|
|
13407
|
-
end
|
|
13408
|
-
# resource path
|
|
13409
|
-
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/captionTracks'
|
|
13410
|
-
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
|
13411
|
-
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
|
13412
|
-
local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
|
|
13413
|
-
|
|
13414
|
-
# query parameters
|
|
13415
|
-
query_params = {}
|
|
13416
|
-
query_params[:'includeData'] = @api_client.prepare_for_query(include_data) unless include_data.nil?
|
|
13417
|
-
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
13418
|
-
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
13419
|
-
|
|
13420
|
-
# header parameters
|
|
13421
|
-
header_params = {}
|
|
13422
|
-
# HTTP header 'Accept' (if needed)
|
|
13423
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
13424
|
-
# HTTP header 'Content-Type'
|
|
13425
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
13426
|
-
header_params[:'password'] = password unless password.nil?
|
|
13427
|
-
|
|
13428
|
-
# http body (model)
|
|
13429
|
-
post_body = nil
|
|
13430
|
-
|
|
13431
|
-
# form parameters
|
|
13432
|
-
post_files = []
|
|
13433
|
-
|
|
13434
|
-
auth_names = ['JWT']
|
|
13435
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
13436
|
-
:header_params => header_params,
|
|
13437
|
-
:query_params => query_params,
|
|
13438
|
-
:body => post_body,
|
|
13439
|
-
:files => post_files,
|
|
13440
|
-
:auth_names => auth_names,
|
|
13441
|
-
:return_type => 'CaptionTracks')
|
|
13442
|
-
return data, status_code, headers
|
|
13443
|
-
end
|
|
13444
13450
|
# Read presentation view properties.
|
|
13445
13451
|
# @param name Document name.
|
|
13446
13452
|
# @param password Document password.
|
|
@@ -17257,52 +17263,49 @@ module AsposeSlidesCloud
|
|
|
17257
17263
|
:return_type => 'FontsData')
|
|
17258
17264
|
return data, status_code, headers
|
|
17259
17265
|
end
|
|
17260
|
-
# Embeds font
|
|
17261
|
-
# @param
|
|
17262
|
-
# @param
|
|
17266
|
+
# Embeds specified font and returns presentation.
|
|
17267
|
+
# @param document Document data.
|
|
17268
|
+
# @param font_name Font name.
|
|
17263
17269
|
# @param only_used Only used characters will be embedded.
|
|
17264
17270
|
# @param password Document password.
|
|
17265
|
-
# @param
|
|
17266
|
-
|
|
17267
|
-
|
|
17268
|
-
data, _status_code, _headers = set_embedded_font_from_request_with_http_info(font, name, only_used, password, folder, storage)
|
|
17271
|
+
# @param fonts_folder Custom fonts folder.
|
|
17272
|
+
def set_embedded_font_online(document, font_name, only_used = nil, password = nil, fonts_folder = nil)
|
|
17273
|
+
data, _status_code, _headers = set_embedded_font_online_with_http_info(document, font_name, only_used, password, fonts_folder)
|
|
17269
17274
|
data
|
|
17270
17275
|
end
|
|
17271
17276
|
|
|
17272
|
-
# Embeds font
|
|
17273
|
-
# @param
|
|
17274
|
-
# @param
|
|
17277
|
+
# Embeds specified font and returns presentation.
|
|
17278
|
+
# @param document Document data.
|
|
17279
|
+
# @param font_name Font name.
|
|
17275
17280
|
# @param only_used Only used characters will be embedded.
|
|
17276
17281
|
# @param password Document password.
|
|
17277
|
-
# @param
|
|
17278
|
-
|
|
17279
|
-
def set_embedded_font_from_request_with_http_info(font, name, only_used = nil, password = nil, folder = nil, storage = nil)
|
|
17282
|
+
# @param fonts_folder Custom fonts folder.
|
|
17283
|
+
def set_embedded_font_online_with_http_info(document, font_name, only_used = nil, password = nil, fonts_folder = nil)
|
|
17280
17284
|
if @api_client.config.debugging
|
|
17281
|
-
@api_client.config.logger.debug 'Calling API: SlidesApi.
|
|
17285
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.set_embedded_font_online ...'
|
|
17282
17286
|
end
|
|
17283
17287
|
|
|
17284
|
-
# verify the required parameter '
|
|
17285
|
-
if @api_client.config.client_side_validation &&
|
|
17286
|
-
fail ArgumentError, "Missing the required parameter '
|
|
17288
|
+
# verify the required parameter 'document' is set
|
|
17289
|
+
if @api_client.config.client_side_validation && document.nil?
|
|
17290
|
+
fail ArgumentError, "Missing the required parameter 'document' when calling SlidesApi.set_embedded_font_online"
|
|
17287
17291
|
end
|
|
17288
|
-
# verify the required parameter '
|
|
17289
|
-
if @api_client.config.client_side_validation &&
|
|
17290
|
-
fail ArgumentError, "Missing the required parameter '
|
|
17292
|
+
# verify the required parameter 'font_name' is set
|
|
17293
|
+
if @api_client.config.client_side_validation && font_name.nil?
|
|
17294
|
+
fail ArgumentError, "Missing the required parameter 'font_name' when calling SlidesApi.set_embedded_font_online"
|
|
17291
17295
|
end
|
|
17292
17296
|
# resource path
|
|
17293
|
-
local_var_path = '/slides/
|
|
17294
|
-
local_var_path = @api_client.replace_path_parameter(local_var_path, '
|
|
17297
|
+
local_var_path = '/slides/fonts/embedded/{fontName}'
|
|
17298
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'fontName', font_name)
|
|
17295
17299
|
|
|
17296
17300
|
# query parameters
|
|
17297
17301
|
query_params = {}
|
|
17298
17302
|
query_params[:'onlyUsed'] = @api_client.prepare_for_query(only_used) unless only_used.nil?
|
|
17299
|
-
query_params[:'
|
|
17300
|
-
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
17303
|
+
query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil?
|
|
17301
17304
|
|
|
17302
17305
|
# header parameters
|
|
17303
17306
|
header_params = {}
|
|
17304
17307
|
# HTTP header 'Accept' (if needed)
|
|
17305
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
17308
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
|
17306
17309
|
# HTTP header 'Content-Type'
|
|
17307
17310
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
|
17308
17311
|
header_params[:'password'] = password unless password.nil?
|
|
@@ -17312,8 +17315,8 @@ module AsposeSlidesCloud
|
|
|
17312
17315
|
|
|
17313
17316
|
# form parameters
|
|
17314
17317
|
post_files = []
|
|
17315
|
-
if
|
|
17316
|
-
post_files = post_files.push(
|
|
17318
|
+
if document
|
|
17319
|
+
post_files = post_files.push(document)
|
|
17317
17320
|
end
|
|
17318
17321
|
|
|
17319
17322
|
auth_names = ['JWT']
|
|
@@ -17323,48 +17326,54 @@ module AsposeSlidesCloud
|
|
|
17323
17326
|
:body => post_body,
|
|
17324
17327
|
:files => post_files,
|
|
17325
17328
|
:auth_names => auth_names,
|
|
17326
|
-
:return_type => '
|
|
17329
|
+
:return_type => 'File')
|
|
17327
17330
|
return data, status_code, headers
|
|
17328
17331
|
end
|
|
17329
|
-
# Embeds
|
|
17330
|
-
# @param
|
|
17331
|
-
# @param
|
|
17332
|
+
# Embeds fonts with specified names and/or fonts from request and returns presentation fonts info.
|
|
17333
|
+
# @param name Document name.
|
|
17334
|
+
# @param fonts Font data.
|
|
17335
|
+
# @param font_names Font names.
|
|
17332
17336
|
# @param only_used Only used characters will be embedded.
|
|
17333
17337
|
# @param password Document password.
|
|
17334
|
-
|
|
17335
|
-
|
|
17338
|
+
# @param folder Document folder.
|
|
17339
|
+
# @param storage Document storage.
|
|
17340
|
+
def set_embedded_fonts(name, fonts = nil, font_names = nil, only_used = nil, password = nil, folder = nil, storage = nil)
|
|
17341
|
+
data, _status_code, _headers = set_embedded_fonts_with_http_info(name, fonts, font_names, only_used, password, folder, storage)
|
|
17336
17342
|
data
|
|
17337
17343
|
end
|
|
17338
17344
|
|
|
17339
|
-
# Embeds
|
|
17340
|
-
# @param
|
|
17341
|
-
# @param
|
|
17345
|
+
# Embeds fonts with specified names and/or fonts from request and returns presentation fonts info.
|
|
17346
|
+
# @param name Document name.
|
|
17347
|
+
# @param fonts Font data.
|
|
17348
|
+
# @param font_names Font names.
|
|
17342
17349
|
# @param only_used Only used characters will be embedded.
|
|
17343
17350
|
# @param password Document password.
|
|
17344
|
-
|
|
17351
|
+
# @param folder Document folder.
|
|
17352
|
+
# @param storage Document storage.
|
|
17353
|
+
def set_embedded_fonts_with_http_info(name, fonts = nil, font_names = nil, only_used = nil, password = nil, folder = nil, storage = nil)
|
|
17345
17354
|
if @api_client.config.debugging
|
|
17346
|
-
@api_client.config.logger.debug 'Calling API: SlidesApi.
|
|
17355
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.set_embedded_fonts ...'
|
|
17347
17356
|
end
|
|
17348
17357
|
|
|
17349
|
-
# verify the required parameter '
|
|
17350
|
-
if @api_client.config.client_side_validation &&
|
|
17351
|
-
fail ArgumentError, "Missing the required parameter '
|
|
17352
|
-
end
|
|
17353
|
-
# verify the required parameter 'font' is set
|
|
17354
|
-
if @api_client.config.client_side_validation && font.nil?
|
|
17355
|
-
fail ArgumentError, "Missing the required parameter 'font' when calling SlidesApi.set_embedded_font_from_request_online"
|
|
17358
|
+
# verify the required parameter 'name' is set
|
|
17359
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
17360
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.set_embedded_fonts"
|
|
17356
17361
|
end
|
|
17357
17362
|
# resource path
|
|
17358
|
-
local_var_path = '/slides/fonts/embedded'
|
|
17363
|
+
local_var_path = '/slides/{name}/fonts/embedded'
|
|
17364
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
|
17359
17365
|
|
|
17360
17366
|
# query parameters
|
|
17361
17367
|
query_params = {}
|
|
17368
|
+
query_params[:'fontNames'] = @api_client.prepare_for_query(font_names) unless font_names.nil?
|
|
17362
17369
|
query_params[:'onlyUsed'] = @api_client.prepare_for_query(only_used) unless only_used.nil?
|
|
17370
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
17371
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
17363
17372
|
|
|
17364
17373
|
# header parameters
|
|
17365
17374
|
header_params = {}
|
|
17366
17375
|
# HTTP header 'Accept' (if needed)
|
|
17367
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
17376
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
17368
17377
|
# HTTP header 'Content-Type'
|
|
17369
17378
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
|
17370
17379
|
header_params[:'password'] = password unless password.nil?
|
|
@@ -17374,11 +17383,8 @@ module AsposeSlidesCloud
|
|
|
17374
17383
|
|
|
17375
17384
|
# form parameters
|
|
17376
17385
|
post_files = []
|
|
17377
|
-
if
|
|
17378
|
-
post_files = post_files.
|
|
17379
|
-
end
|
|
17380
|
-
if font
|
|
17381
|
-
post_files = post_files.push(font)
|
|
17386
|
+
if fonts
|
|
17387
|
+
post_files = post_files.concat(fonts)
|
|
17382
17388
|
end
|
|
17383
17389
|
|
|
17384
17390
|
auth_names = ['JWT']
|
|
@@ -17388,47 +17394,42 @@ module AsposeSlidesCloud
|
|
|
17388
17394
|
:body => post_body,
|
|
17389
17395
|
:files => post_files,
|
|
17390
17396
|
:auth_names => auth_names,
|
|
17391
|
-
:return_type => '
|
|
17397
|
+
:return_type => 'FontsData')
|
|
17392
17398
|
return data, status_code, headers
|
|
17393
17399
|
end
|
|
17394
|
-
# Embeds
|
|
17400
|
+
# Embeds font from request and returns presentation.
|
|
17395
17401
|
# @param document Document data.
|
|
17396
|
-
# @param
|
|
17402
|
+
# @param fonts Font data.
|
|
17403
|
+
# @param font_names Font names.
|
|
17397
17404
|
# @param only_used Only used characters will be embedded.
|
|
17398
17405
|
# @param password Document password.
|
|
17399
|
-
|
|
17400
|
-
|
|
17401
|
-
data, _status_code, _headers = set_embedded_font_online_with_http_info(document, font_name, only_used, password, fonts_folder)
|
|
17406
|
+
def set_embedded_fonts_online(document, fonts = nil, font_names = nil, only_used = nil, password = nil)
|
|
17407
|
+
data, _status_code, _headers = set_embedded_fonts_online_with_http_info(document, fonts, font_names, only_used, password)
|
|
17402
17408
|
data
|
|
17403
17409
|
end
|
|
17404
17410
|
|
|
17405
|
-
# Embeds
|
|
17411
|
+
# Embeds font from request and returns presentation.
|
|
17406
17412
|
# @param document Document data.
|
|
17407
|
-
# @param
|
|
17413
|
+
# @param fonts Font data.
|
|
17414
|
+
# @param font_names Font names.
|
|
17408
17415
|
# @param only_used Only used characters will be embedded.
|
|
17409
17416
|
# @param password Document password.
|
|
17410
|
-
|
|
17411
|
-
def set_embedded_font_online_with_http_info(document, font_name, only_used = nil, password = nil, fonts_folder = nil)
|
|
17417
|
+
def set_embedded_fonts_online_with_http_info(document, fonts = nil, font_names = nil, only_used = nil, password = nil)
|
|
17412
17418
|
if @api_client.config.debugging
|
|
17413
|
-
@api_client.config.logger.debug 'Calling API: SlidesApi.
|
|
17419
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.set_embedded_fonts_online ...'
|
|
17414
17420
|
end
|
|
17415
17421
|
|
|
17416
17422
|
# verify the required parameter 'document' is set
|
|
17417
17423
|
if @api_client.config.client_side_validation && document.nil?
|
|
17418
|
-
fail ArgumentError, "Missing the required parameter 'document' when calling SlidesApi.
|
|
17419
|
-
end
|
|
17420
|
-
# verify the required parameter 'font_name' is set
|
|
17421
|
-
if @api_client.config.client_side_validation && font_name.nil?
|
|
17422
|
-
fail ArgumentError, "Missing the required parameter 'font_name' when calling SlidesApi.set_embedded_font_online"
|
|
17424
|
+
fail ArgumentError, "Missing the required parameter 'document' when calling SlidesApi.set_embedded_fonts_online"
|
|
17423
17425
|
end
|
|
17424
17426
|
# resource path
|
|
17425
|
-
local_var_path = '/slides/fonts/embedded
|
|
17426
|
-
local_var_path = @api_client.replace_path_parameter(local_var_path, 'fontName', font_name)
|
|
17427
|
+
local_var_path = '/slides/fonts/embedded'
|
|
17427
17428
|
|
|
17428
17429
|
# query parameters
|
|
17429
17430
|
query_params = {}
|
|
17431
|
+
query_params[:'fontNames'] = @api_client.prepare_for_query(font_names) unless font_names.nil?
|
|
17430
17432
|
query_params[:'onlyUsed'] = @api_client.prepare_for_query(only_used) unless only_used.nil?
|
|
17431
|
-
query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil?
|
|
17432
17433
|
|
|
17433
17434
|
# header parameters
|
|
17434
17435
|
header_params = {}
|
|
@@ -17446,6 +17447,9 @@ module AsposeSlidesCloud
|
|
|
17446
17447
|
if document
|
|
17447
17448
|
post_files = post_files.push(document)
|
|
17448
17449
|
end
|
|
17450
|
+
if fonts
|
|
17451
|
+
post_files = post_files.concat(fonts)
|
|
17452
|
+
end
|
|
17449
17453
|
|
|
17450
17454
|
auth_names = ['JWT']
|
|
17451
17455
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|