aspose_slides_cloud 20.6.0 → 21.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/TestData/ChartTest.pptx +0 -0
- data/TestData/Sections.pptx +0 -0
- data/TestData/test-unprotected.pptx +0 -0
- data/TestData/test.pptx +0 -0
- data/lib/aspose_slides_cloud.rb +13 -5
- data/lib/aspose_slides_cloud/api/slides_api.rb +2432 -691
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +609 -31
- data/lib/aspose_slides_cloud/api_client.rb +30 -24
- data/lib/aspose_slides_cloud/configuration.rb +7 -2
- data/lib/aspose_slides_cloud/models/add_layout_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/add_master_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/add_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/add_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/api_info.rb +22 -10
- data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +22 -10
- data/lib/aspose_slides_cloud/models/audio_frame.rb +32 -246
- data/lib/aspose_slides_cloud/models/axes.rb +22 -10
- data/lib/aspose_slides_cloud/models/axis.rb +22 -10
- data/lib/aspose_slides_cloud/models/base64_input_file.rb +31 -57
- data/lib/aspose_slides_cloud/models/blur_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +31 -222
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +30 -48
- data/lib/aspose_slides_cloud/models/bubble_series.rb +31 -211
- data/lib/aspose_slides_cloud/models/chart.rb +32 -220
- data/lib/aspose_slides_cloud/models/chart_category.rb +54 -20
- data/lib/aspose_slides_cloud/models/chart_title.rb +22 -10
- data/lib/aspose_slides_cloud/models/chart_wall.rb +22 -10
- data/lib/aspose_slides_cloud/models/color_scheme.rb +30 -40
- data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +22 -10
- data/lib/aspose_slides_cloud/models/connector.rb +32 -244
- data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +22 -10
- data/lib/aspose_slides_cloud/models/{resource_uri_element.rb → data_point.rb} +24 -22
- data/lib/aspose_slides_cloud/models/disc_usage.rb +22 -10
- data/lib/aspose_slides_cloud/models/document.rb +35 -45
- data/lib/aspose_slides_cloud/models/document_properties.rb +30 -40
- data/lib/aspose_slides_cloud/models/document_property.rb +30 -40
- data/lib/aspose_slides_cloud/models/document_replace_result.rb +30 -94
- data/lib/aspose_slides_cloud/models/effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/effect_format.rb +22 -10
- data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
- data/lib/aspose_slides_cloud/models/error.rb +22 -10
- data/lib/aspose_slides_cloud/models/error_details.rb +22 -10
- data/lib/aspose_slides_cloud/models/export_options.rb +33 -11
- data/lib/aspose_slides_cloud/models/file_version.rb +30 -75
- data/lib/aspose_slides_cloud/models/file_versions.rb +22 -10
- data/lib/aspose_slides_cloud/models/files_list.rb +22 -10
- data/lib/aspose_slides_cloud/models/files_upload_result.rb +22 -10
- data/lib/aspose_slides_cloud/models/fill_format.rb +22 -10
- data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/font_scheme.rb +30 -40
- data/lib/aspose_slides_cloud/models/font_set.rb +22 -10
- data/lib/aspose_slides_cloud/models/format_scheme.rb +30 -40
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +33 -212
- data/lib/aspose_slides_cloud/models/glow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/gradient_fill.rb +31 -48
- data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +22 -10
- data/lib/aspose_slides_cloud/models/graphical_object.rb +31 -219
- data/lib/aspose_slides_cloud/models/group_shape.rb +31 -219
- data/lib/aspose_slides_cloud/models/header_footer.rb +247 -0
- data/lib/aspose_slides_cloud/models/html_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +22 -20
- data/lib/aspose_slides_cloud/models/image.rb +30 -40
- data/lib/aspose_slides_cloud/models/image_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/images.rb +30 -40
- data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/input.rb +22 -10
- data/lib/aspose_slides_cloud/models/input_file.rb +22 -10
- data/lib/aspose_slides_cloud/models/interactive_sequence.rb +22 -10
- data/lib/aspose_slides_cloud/models/layout_slide.rb +31 -41
- data/lib/aspose_slides_cloud/models/layout_slides.rb +30 -40
- data/lib/aspose_slides_cloud/models/legend.rb +22 -10
- data/lib/aspose_slides_cloud/models/line_format.rb +22 -10
- data/lib/aspose_slides_cloud/models/master_slide.rb +31 -41
- data/lib/aspose_slides_cloud/models/master_slides.rb +30 -40
- data/lib/aspose_slides_cloud/models/merge.rb +31 -48
- data/lib/aspose_slides_cloud/models/merging_source.rb +22 -10
- data/lib/aspose_slides_cloud/models/no_fill.rb +29 -46
- data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +22 -10
- data/lib/aspose_slides_cloud/models/notes_slide.rb +30 -40
- data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +267 -0
- data/lib/aspose_slides_cloud/models/object_exist.rb +22 -10
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +32 -220
- data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +30 -20
- data/lib/aspose_slides_cloud/models/one_value_series.rb +31 -211
- data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +22 -10
- data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/output_file.rb +22 -10
- data/lib/aspose_slides_cloud/models/paragraph.rb +30 -40
- data/lib/aspose_slides_cloud/models/paragraphs.rb +30 -40
- data/lib/aspose_slides_cloud/models/path_input_file.rb +31 -57
- data/lib/aspose_slides_cloud/models/path_output_file.rb +31 -48
- data/lib/aspose_slides_cloud/models/pattern_fill.rb +31 -48
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/picture_fill.rb +32 -49
- data/lib/aspose_slides_cloud/models/picture_frame.rb +32 -246
- data/lib/aspose_slides_cloud/models/pipeline.rb +22 -10
- data/lib/aspose_slides_cloud/models/placeholder.rb +30 -40
- data/lib/aspose_slides_cloud/models/placeholders.rb +30 -40
- data/lib/aspose_slides_cloud/models/plot_area.rb +22 -10
- data/lib/aspose_slides_cloud/models/portion.rb +30 -40
- data/lib/aspose_slides_cloud/models/portions.rb +36 -46
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +22 -10
- data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +22 -10
- data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/reflection_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/remove_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/remove_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/reorder_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/replace_text.rb +31 -48
- data/lib/aspose_slides_cloud/models/request_input_file.rb +31 -57
- data/lib/aspose_slides_cloud/models/reset_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/resource_base.rb +22 -10
- data/lib/aspose_slides_cloud/models/resource_uri.rb +22 -10
- data/lib/aspose_slides_cloud/models/response_output_file.rb +29 -46
- data/lib/aspose_slides_cloud/models/save.rb +31 -48
- data/lib/aspose_slides_cloud/models/save_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/save_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +30 -20
- data/lib/aspose_slides_cloud/models/scatter_series.rb +31 -211
- data/lib/aspose_slides_cloud/models/section.rb +234 -0
- data/lib/aspose_slides_cloud/models/sections.rb +209 -0
- data/lib/aspose_slides_cloud/models/series.rb +45 -12
- data/lib/aspose_slides_cloud/models/series_marker.rb +22 -10
- data/lib/aspose_slides_cloud/models/shape.rb +32 -244
- data/lib/aspose_slides_cloud/models/shape_base.rb +31 -62
- data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +22 -10
- data/lib/aspose_slides_cloud/models/shapes.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide.rb +37 -47
- data/lib/aspose_slides_cloud/models/slide_animation.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide_background.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide_comment.rb +22 -10
- data/lib/aspose_slides_cloud/models/slide_comments.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide_replace_result.rb +30 -154
- data/lib/aspose_slides_cloud/models/slides.rb +30 -40
- data/lib/aspose_slides_cloud/models/smart_art.rb +32 -220
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +23 -11
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +30 -217
- data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/solid_fill.rb +31 -48
- data/lib/aspose_slides_cloud/models/split_document_result.rb +30 -40
- data/lib/aspose_slides_cloud/models/storage_exist.rb +22 -10
- data/lib/aspose_slides_cloud/models/storage_file.rb +22 -10
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/table.rb +32 -220
- data/lib/aspose_slides_cloud/models/table_cell.rb +22 -10
- data/lib/aspose_slides_cloud/models/table_column.rb +22 -10
- data/lib/aspose_slides_cloud/models/table_row.rb +22 -10
- data/lib/aspose_slides_cloud/models/task.rb +22 -10
- data/lib/aspose_slides_cloud/models/text_item.rb +22 -10
- data/lib/aspose_slides_cloud/models/text_items.rb +30 -40
- data/lib/aspose_slides_cloud/models/theme.rb +32 -42
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/update_background.rb +31 -48
- data/lib/aspose_slides_cloud/models/update_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/video_frame.rb +32 -246
- data/lib/aspose_slides_cloud/models/view_properties.rb +30 -40
- data/lib/aspose_slides_cloud/models/waterfall_chart_data_point.rb +206 -0
- data/lib/aspose_slides_cloud/models/waterfall_series.rb +31 -222
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/type_registry.rb +324 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +22294 -14411
- data/spec/extra/extra_spec.rb +156 -22
- data/spec/spec_utils.rb +15 -4
- data/testConfig.json +2 -2
- data/testRules.json +141 -73
- metadata +14 -3
data/spec/extra/extra_spec.rb
CHANGED
@@ -48,13 +48,148 @@ describe 'SlidesApiExtra' do
|
|
48
48
|
expect(o).not_to be(nil)
|
49
49
|
end
|
50
50
|
|
51
|
-
it '
|
51
|
+
it 'base shape' do
|
52
|
+
AsposeSlidesCloud::SpecUtils.initialize('GetSlideShape', nil, nil)
|
53
|
+
requestParam = AsposeSlidesCloud::GetSlideShapeRequest.new
|
54
|
+
requestParam.name = "test.pptx"
|
55
|
+
requestParam.slide_index = 1
|
56
|
+
requestParam.shape_index = 1
|
57
|
+
requestParam.password = "password"
|
58
|
+
requestParam.folder = "TempSlidesSDK"
|
59
|
+
o = AsposeSlidesCloud::SpecUtils.api.get_slide_shape(requestParam)
|
60
|
+
expect(o.text).to eq("1")
|
61
|
+
end
|
62
|
+
|
63
|
+
it 'chart' do
|
64
|
+
chart = AsposeSlidesCloud::Chart.new
|
65
|
+
expect(chart.type).to eq("Chart")
|
66
|
+
end
|
67
|
+
|
68
|
+
it 'timeout' do
|
69
|
+
#unstable test
|
70
|
+
#AsposeSlidesCloud::SpecUtils.initialize('post_slide_save_as', nil, nil)
|
71
|
+
|
72
|
+
#config = JSON.parse(File.read('testConfig.json'))
|
73
|
+
#configuration = AsposeSlidesCloud::Configuration.new
|
74
|
+
#configuration.base_url = config["BaseUrl"]
|
75
|
+
#configuration.auth_base_url = config["AuthBaseUrl"] ? config["AuthBaseUrl"] : config["BaseUrl"]
|
76
|
+
#configuration.app_sid = config["ClientId"]
|
77
|
+
#configuration.app_key = config["ClientSecret"]
|
78
|
+
#configuration.debugging = config["Debug"]
|
79
|
+
#configuration.timeout = 1
|
80
|
+
#api = AsposeSlidesCloud::SlidesApi.new(configuration)
|
81
|
+
|
82
|
+
#requestParam = AsposeSlidesCloud::PostSlideSaveAsRequest.new
|
83
|
+
#requestParam.name = "test.pptx"
|
84
|
+
#requestParam.slide_index = 1
|
85
|
+
#requestParam.password = "password"
|
86
|
+
#requestParam.folder = "TempSlidesSDK"
|
87
|
+
#requestParam.format = "svg"
|
88
|
+
#api.post_slide_save_as(requestParam)
|
89
|
+
end
|
90
|
+
|
91
|
+
it 'nullable properties' do
|
92
|
+
folderName = "TempSlidesSDK"
|
93
|
+
fileName = "placeholders.pptx"
|
94
|
+
password = "password"
|
95
|
+
min1 = 44.3
|
96
|
+
min2 = 12
|
97
|
+
max1 = 104.3
|
98
|
+
max2 = 87
|
99
|
+
AsposeSlidesCloud::SpecUtils.initialize("no_method", "no_property", nil)
|
100
|
+
requestParam = AsposeSlidesCloud::CopyFileRequest.new
|
101
|
+
requestParam.src_path = "TempTests/" + fileName
|
102
|
+
requestParam.dest_path = folderName + "/" + fileName
|
103
|
+
AsposeSlidesCloud::SpecUtils.api.copy_file(requestParam)
|
104
|
+
|
105
|
+
postRequest = AsposeSlidesCloud::PostAddNewShapeRequest.new
|
106
|
+
postRequest.name = fileName
|
107
|
+
postRequest.folder = folderName
|
108
|
+
postRequest.password = password
|
109
|
+
postRequest.slide_index = 1
|
110
|
+
postRequest.dto = AsposeSlidesCloud::Chart.new
|
111
|
+
postRequest.dto.chart_type = "Line"
|
112
|
+
postRequest.dto.width = 400.0
|
113
|
+
postRequest.dto.height = 300.0
|
114
|
+
postRequest.dto.title = AsposeSlidesCloud::ChartTitle.new
|
115
|
+
postRequest.dto.title.has_title = true
|
116
|
+
postRequest.dto.title.text = "MyTitle"
|
117
|
+
postRequest.dto.series = []
|
118
|
+
postRequest.dto.series.push(AsposeSlidesCloud::OneValueSeries.new)
|
119
|
+
postRequest.dto.series[0].type = "ClusteredColumn"
|
120
|
+
postRequest.dto.series[0].data_point_type = "OneValue"
|
121
|
+
postRequest.dto.series[0].name = "Series1"
|
122
|
+
postRequest.dto.series[0].data_points = []
|
123
|
+
postRequest.dto.series[0].data_points.push(AsposeSlidesCloud::OneValueChartDataPoint.new)
|
124
|
+
postRequest.dto.series[0].data_points[0].value = 40.0
|
125
|
+
postRequest.dto.series[0].data_points.push(AsposeSlidesCloud::OneValueChartDataPoint.new)
|
126
|
+
postRequest.dto.series[0].data_points[1].value = 50.0
|
127
|
+
postRequest.dto.axes = AsposeSlidesCloud::Axes.new
|
128
|
+
postRequest.dto.axes.horizontal_axis = AsposeSlidesCloud::Axis.new
|
129
|
+
postRequest.dto.axes.horizontal_axis.is_automatic_min_value = false
|
130
|
+
postRequest.dto.axes.horizontal_axis.min_value = min1
|
131
|
+
postRequest.dto.axes.horizontal_axis.is_automatic_max_value = false
|
132
|
+
postRequest.dto.axes.horizontal_axis.max_value = max1
|
133
|
+
AsposeSlidesCloud::SpecUtils.api.post_add_new_shape(postRequest)
|
134
|
+
|
135
|
+
getRequest = AsposeSlidesCloud::GetSlideShapeRequest.new
|
136
|
+
getRequest.name = fileName
|
137
|
+
getRequest.folder = folderName
|
138
|
+
getRequest.password = password
|
139
|
+
getRequest.slide_index = 1
|
140
|
+
getRequest.shape_index = 4
|
141
|
+
result = AsposeSlidesCloud::SpecUtils.api.get_slide_shape(getRequest)
|
142
|
+
expect(result.axes.horizontal_axis.min_value).to eq(min1)
|
143
|
+
expect(result.axes.horizontal_axis.max_value).to eq(max1)
|
144
|
+
|
145
|
+
putRequest = AsposeSlidesCloud::PutSlideShapeInfoRequest.new
|
146
|
+
putRequest.name = fileName
|
147
|
+
putRequest.folder = folderName
|
148
|
+
putRequest.password = password
|
149
|
+
putRequest.slide_index = 1
|
150
|
+
putRequest.shape_index = 4
|
151
|
+
putRequest.dto = AsposeSlidesCloud::Chart.new
|
152
|
+
putRequest.dto.axes = AsposeSlidesCloud::Axes.new
|
153
|
+
putRequest.dto.axes.horizontal_axis = AsposeSlidesCloud::Axis.new
|
154
|
+
putRequest.dto.axes.horizontal_axis.min_value = min2
|
155
|
+
AsposeSlidesCloud::SpecUtils.api.put_slide_shape_info(putRequest)
|
156
|
+
|
157
|
+
result = AsposeSlidesCloud::SpecUtils.api.get_slide_shape(getRequest)
|
158
|
+
expect(result.axes.horizontal_axis.min_value).to eq(min2)
|
159
|
+
expect(result.axes.horizontal_axis.max_value).to eq(max1)
|
160
|
+
|
161
|
+
putRequest.dto.axes.horizontal_axis = AsposeSlidesCloud::Axis.new
|
162
|
+
putRequest.dto.axes.horizontal_axis.max_value = max2
|
163
|
+
AsposeSlidesCloud::SpecUtils.api.put_slide_shape_info(putRequest)
|
164
|
+
|
165
|
+
result = AsposeSlidesCloud::SpecUtils.api.get_slide_shape(getRequest)
|
166
|
+
expect(result.axes.horizontal_axis.min_value).to eq(min2)
|
167
|
+
expect(result.axes.horizontal_axis.max_value).to eq(max2)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
describe 'authentication' do
|
172
|
+
it 'good auth' do
|
173
|
+
config = JSON.parse(File.read('testConfig.json'))
|
174
|
+
configuration = AsposeSlidesCloud::Configuration.new
|
175
|
+
configuration.base_url = config["BaseUrl"]
|
176
|
+
configuration.auth_base_url = config["AuthBaseUrl"] ? config["AuthBaseUrl"] : config["BaseUrl"]
|
177
|
+
configuration.app_sid = config["ClientId"]
|
178
|
+
configuration.app_key = config["ClientSecret"]
|
179
|
+
configuration.debugging = config["Debug"]
|
180
|
+
api = AsposeSlidesCloud::SlidesApi.new(configuration)
|
181
|
+
o, c, _h = api.get_slides_api_info_with_http_info
|
182
|
+
expect(c).to eq(200)
|
183
|
+
expect(o).not_to be(nil)
|
184
|
+
end
|
185
|
+
|
186
|
+
it 'bad auth' do
|
52
187
|
config = JSON.parse(File.read('testConfig.json'))
|
53
188
|
configuration = AsposeSlidesCloud::Configuration.new
|
54
189
|
configuration.base_url = config["BaseUrl"]
|
55
190
|
configuration.auth_base_url = config["AuthBaseUrl"] ? config["AuthBaseUrl"] : config["BaseUrl"]
|
56
191
|
configuration.app_sid = "invalid"
|
57
|
-
configuration.app_key = "
|
192
|
+
configuration.app_key = config["ClientSecret"]
|
58
193
|
configuration.debugging = config["Debug"]
|
59
194
|
api = AsposeSlidesCloud::SlidesApi.new(configuration)
|
60
195
|
begin
|
@@ -66,37 +201,36 @@ describe 'SlidesApiExtra' do
|
|
66
201
|
end
|
67
202
|
end
|
68
203
|
|
69
|
-
it '
|
204
|
+
it 'good token' do
|
70
205
|
config = JSON.parse(File.read('testConfig.json'))
|
71
206
|
configuration = AsposeSlidesCloud::Configuration.new
|
72
207
|
configuration.base_url = config["BaseUrl"]
|
73
208
|
configuration.auth_base_url = config["AuthBaseUrl"] ? config["AuthBaseUrl"] : config["BaseUrl"]
|
74
|
-
configuration.app_sid = config["
|
75
|
-
configuration.app_key = config["
|
76
|
-
configuration.access_token = "expired.token"
|
209
|
+
configuration.app_sid = config["ClientId"]
|
210
|
+
configuration.app_key = config["ClientSecret"]
|
77
211
|
configuration.debugging = config["Debug"]
|
78
212
|
api = AsposeSlidesCloud::SlidesApi.new(configuration)
|
213
|
+
api.get_slides_api_info_with_http_info
|
214
|
+
configuration.app_sid = "invalid"
|
215
|
+
api = AsposeSlidesCloud::SlidesApi.new(configuration)
|
79
216
|
o, c, _h = api.get_slides_api_info_with_http_info
|
80
217
|
expect(c).to eq(200)
|
81
218
|
expect(o).not_to be(nil)
|
82
219
|
end
|
83
220
|
|
84
|
-
it '
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
chart = AsposeSlidesCloud::Chart.new
|
98
|
-
expect(chart.type).to eq("Chart")
|
99
|
-
expect(chart.shape_type).to eq("Chart")
|
221
|
+
it 'bad token' do
|
222
|
+
config = JSON.parse(File.read('testConfig.json'))
|
223
|
+
configuration = AsposeSlidesCloud::Configuration.new
|
224
|
+
configuration.base_url = config["BaseUrl"]
|
225
|
+
configuration.auth_base_url = config["AuthBaseUrl"] ? config["AuthBaseUrl"] : config["BaseUrl"]
|
226
|
+
configuration.app_sid = config["ClientId"]
|
227
|
+
configuration.app_key = config["ClientSecret"]
|
228
|
+
configuration.access_token = "expired.token"
|
229
|
+
configuration.debugging = config["Debug"]
|
230
|
+
api = AsposeSlidesCloud::SlidesApi.new(configuration)
|
231
|
+
o, c, _h = api.get_slides_api_info_with_http_info
|
232
|
+
expect(c).to eq(200)
|
233
|
+
expect(o).not_to be(nil)
|
100
234
|
end
|
101
235
|
end
|
102
236
|
end
|
data/spec/spec_utils.rb
CHANGED
@@ -26,7 +26,14 @@ module AsposeSlidesCloud
|
|
26
26
|
if !@@is_initialized
|
27
27
|
download_request = AsposeSlidesCloud::DownloadFileRequest.new
|
28
28
|
download_request.path = "TempTests/version.txt"
|
29
|
-
version =
|
29
|
+
version = ""
|
30
|
+
begin
|
31
|
+
version = SpecUtils.api.download_file(download_request)
|
32
|
+
rescue AsposeSlidesCloud::ApiError => e
|
33
|
+
if e.code != 404
|
34
|
+
fail "Could not read from storage"
|
35
|
+
end
|
36
|
+
end
|
30
37
|
if version != EXPECTED_TEST_DATA_VERSION
|
31
38
|
Dir.entries(TEST_DATA_PATH).each { |f|
|
32
39
|
if !File.directory? File.join(TEST_DATA_PATH, f)
|
@@ -73,7 +80,11 @@ module AsposeSlidesCloud
|
|
73
80
|
|
74
81
|
def self.get_param_value(name, method, type)
|
75
82
|
if type == 'File'
|
76
|
-
|
83
|
+
fileName = "test.pptx"
|
84
|
+
if method.casecmp("PostSlidesDocumentFromPdf") == 0
|
85
|
+
fileName = "test.pdf"
|
86
|
+
end
|
87
|
+
return File.binread(File.join(TEST_DATA_PATH, fileName))
|
77
88
|
end
|
78
89
|
value = "test" + name
|
79
90
|
SpecUtils.test_rules["Values"].each do |rule|
|
@@ -159,8 +170,8 @@ module AsposeSlidesCloud
|
|
159
170
|
configuration = AsposeSlidesCloud::Configuration.new
|
160
171
|
configuration.base_url = config["BaseUrl"]
|
161
172
|
configuration.auth_base_url = config["AuthBaseUrl"] ? config["AuthBaseUrl"] : config["BaseUrl"]
|
162
|
-
configuration.app_sid = config["
|
163
|
-
configuration.app_key = config["
|
173
|
+
configuration.app_sid = config["ClientId"]
|
174
|
+
configuration.app_key = config["ClientSecret"]
|
164
175
|
configuration.debugging = config["Debug"]
|
165
176
|
@@api = AsposeSlidesCloud::SlidesApi.new(configuration)
|
166
177
|
end
|
data/testConfig.json
CHANGED
data/testRules.json
CHANGED
@@ -1,46 +1,45 @@
|
|
1
1
|
{
|
2
2
|
"Files": [
|
3
|
-
{ "Action": "Put", "File": "test.
|
4
|
-
{ "Action": "
|
5
|
-
{ "Action": "
|
6
|
-
{ "Action": "Delete", "File": "test.
|
7
|
-
{ "Action": "
|
8
|
-
{ "Action": "
|
9
|
-
{ "Action": "
|
10
|
-
{ "Action": "Delete", "Folder": "%v", "File": "test.ppt", "Parameter": "Folder" },
|
3
|
+
{ "Action": "Put", "File": "test.pptx" },
|
4
|
+
{ "Action": "Put", "File": "test-unprotected.pptx", "Method": "DeleteSlidesCleanSlidesList" },
|
5
|
+
{ "Action": "Put", "File": "test-unprotected.pptx", "Method": "PutSlidesSlide" },
|
6
|
+
{ "Action": "Delete", "File": "test.pptx", "Method": "PostSlidesDocument" },
|
7
|
+
{ "Action": "Delete", "File": "test.pptx", "Method": "PostSlidesDocumentFromHtml" },
|
8
|
+
{ "Action": "Delete", "File": "test.pptx", "Method": "UploadFile" },
|
9
|
+
{ "Action": "Delete", "Folder": "%v", "File": "test.pptx", "Parameter": "Folder" },
|
11
10
|
{ "Action": "Delete", "File": "%v", "Parameter": "Name" },
|
12
|
-
{ "Action": "Delete", "File": "changedtest.
|
13
|
-
{ "Action": "Delete", "File": "invalidchangedtest.
|
14
|
-
{ "Action": "Delete", "Folder": "TempSlidesSDKinvalid", "File": "changedtest.
|
15
|
-
{ "Action": "Delete", "File": "changedtest.
|
16
|
-
{ "Action": "Delete", "File": "invalidchangedtest.
|
17
|
-
{ "Action": "Delete", "Folder": "TempSlidesSDKinvalid", "File": "changedtest.
|
18
|
-
{ "Action": "Delete", "File": "changedtest.
|
19
|
-
{ "Action": "Delete", "File": "invalidchangedtest.
|
20
|
-
{ "Action": "Delete", "Folder": "TempSlidesSDKinvalid", "File": "changedtest.
|
21
|
-
{ "Action": "Delete", "File": "changedtest.
|
22
|
-
{ "Action": "Delete", "File": "invalidchangedtest.
|
23
|
-
{ "Action": "Delete", "Folder": "TempSlidesSDKinvalid", "File": "changedtest.
|
24
|
-
{ "Action": "Delete", "Folder": "invalidTempSlidesSDK", "File": "test.
|
25
|
-
{ "Action": "Delete", "Folder": "invalidTempSlidesSDK", "File": "test.
|
11
|
+
{ "Action": "Delete", "File": "changedtest.pptx", "Method": "PostSlidesDocument" },
|
12
|
+
{ "Action": "Delete", "File": "invalidchangedtest.pptx", "Method": "PostSlidesDocument" },
|
13
|
+
{ "Action": "Delete", "Folder": "TempSlidesSDKinvalid", "File": "changedtest.pptx", "Method": "PostSlidesDocument" },
|
14
|
+
{ "Action": "Delete", "File": "changedtest.pptx", "Method": "PostSlidesDocumentFromSource" },
|
15
|
+
{ "Action": "Delete", "File": "invalidchangedtest.pptx", "Method": "PostSlidesDocumentFromSource" },
|
16
|
+
{ "Action": "Delete", "Folder": "TempSlidesSDKinvalid", "File": "changedtest.pptx", "Method": "PostSlidesDocumentFromSource" },
|
17
|
+
{ "Action": "Delete", "File": "changedtest.pptx", "Method": "PostSlidesDocumentFromTemplate" },
|
18
|
+
{ "Action": "Delete", "File": "invalidchangedtest.pptx", "Method": "PostSlidesDocumentFromTemplate" },
|
19
|
+
{ "Action": "Delete", "Folder": "TempSlidesSDKinvalid", "File": "changedtest.pptx", "Method": "PostSlidesDocumentFromTemplate" },
|
20
|
+
{ "Action": "Delete", "File": "changedtest.pptx", "Method": "PutNewPresentation" },
|
21
|
+
{ "Action": "Delete", "File": "invalidchangedtest.pptx", "Method": "PutNewPresentation" },
|
22
|
+
{ "Action": "Delete", "Folder": "TempSlidesSDKinvalid", "File": "changedtest.pptx", "Method": "PutNewPresentation" },
|
23
|
+
{ "Action": "Delete", "Folder": "invalidTempSlidesSDK", "File": "test.pptx", "Parameter": "CloneFrom" },
|
24
|
+
{ "Action": "Delete", "Folder": "invalidTempSlidesSDK", "File": "test.pptx", "Parameter": "SourcePath" }
|
26
25
|
],
|
27
26
|
"Values": [
|
28
27
|
{ "InvalidValue": "%vinvalid" },
|
29
|
-
{ "Value": "test.
|
30
|
-
{ "Value": "test-unprotected.
|
31
|
-
{ "Value": "test-unprotected.
|
32
|
-
{ "Value": "test-unprotected.
|
33
|
-
{ "Value": "changedtest.
|
34
|
-
{ "Value": "changedtest.
|
35
|
-
{ "Value": "changedtest.
|
28
|
+
{ "Value": "test.pptx", "InvalidValue": "invalid%v", "Parameter": "Name" },
|
29
|
+
{ "Value": "test-unprotected.pptx", "Parameter": "Name", "Method": "PutSlidesSlide" },
|
30
|
+
{ "Value": "test-unprotected.pptx", "Parameter": "Name", "Method": "PostSlidesAdd" },
|
31
|
+
{ "Value": "test-unprotected.pptx", "Parameter": "Name", "Method": "DeleteSlidesCleanSlidesList" },
|
32
|
+
{ "Value": "changedtest.pptx", "Parameter": "Name", "Method": "PutNewPresentation" },
|
33
|
+
{ "Value": "changedtest.pptx", "Parameter": "Name", "Method": "PostSlidesDocumentFromSource" },
|
34
|
+
{ "Value": "changedtest.pptx", "Parameter": "Name", "Method": "PostSlidesDocumentFromTemplate" },
|
36
35
|
{ "Value": "TempSlidesSDK", "Parameter": "Folder" },
|
37
|
-
{ "Value": "TempSlidesSDK/test.
|
38
|
-
{ "Value": "TempSlidesSDK/test.
|
39
|
-
{ "Value": "TempSlidesSDK/changedtest.
|
40
|
-
{ "Value": "TempSlidesSDK/test.
|
36
|
+
{ "Value": "TempSlidesSDK/test.pptx", "InvalidValue": "invalid%v", "Parameter": "SourcePath" },
|
37
|
+
{ "Value": "TempSlidesSDK/test.pptx", "InvalidValue": "invalid%v", "Parameter": "SrcPath" },
|
38
|
+
{ "Value": "TempSlidesSDK/changedtest.pptx", "InvalidValue": "invalid%v", "Parameter": "DestPath" },
|
39
|
+
{ "Value": "TempSlidesSDK/test.pptx", "InvalidValue": "invalid%v", "Parameter": "TemplatePath" },
|
41
40
|
{ "Value": "TempSlidesSDK/TemplateCV.pptx", "InvalidValue": "invalid%v", "Parameter": "TemplatePath", "Method": "PostSlidesDocument" },
|
42
|
-
{ "Value": "TempSlidesSDK/test.
|
43
|
-
{ "Value": "TempSlidesSDK/test.
|
41
|
+
{ "Value": "TempSlidesSDK/test.pptx", "InvalidValue": "invalid%v", "Parameter": "CloneFrom" },
|
42
|
+
{ "Value": "TempSlidesSDK/test.pptx", "InvalidValue": "invalid%v", "Parameter": "Source" },
|
44
43
|
{ "Value": "TempSlidesSDK/out.pdf", "Parameter": "OutPath" },
|
45
44
|
{ "Value": "password", "Parameter": "Password" },
|
46
45
|
{ "Value": "password", "Parameter": "InputPassword" },
|
@@ -59,10 +58,22 @@
|
|
59
58
|
{ "Value": null, "Parameter": "CloneFromStorage" },
|
60
59
|
{ "Value": null, "Parameter": "SourceStorage" },
|
61
60
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "SlideIndex" },
|
61
|
+
{ "Value": 5, "Parameter": "SlideIndex", "Method": "PostSection" },
|
62
62
|
{ "Value": null, "InvalidValue": [1, 593], "Parameter": "Slides" },
|
63
63
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "SlideToCopy" },
|
64
64
|
{ "Value": null, "InvalidValue": 593, "Parameter": "SlideToClone" },
|
65
|
-
{ "Value":
|
65
|
+
{ "Value": 1, "InvalidValue": 593, "Parameter": "ShapeIndex" },
|
66
|
+
{ "Value": 3, "Parameter": "SlideIndex", "Method": "PostChartSeries" },
|
67
|
+
{ "Value": 3, "Parameter": "SlideIndex", "Method": "PutChartSeries" },
|
68
|
+
{ "Value": 3, "Parameter": "SlideIndex", "Method": "DeleteChartSeries" },
|
69
|
+
{ "Value": 3, "Parameter": "SlideIndex", "Method": "PostChartCategory" },
|
70
|
+
{ "Value": 3, "Parameter": "SlideIndex", "Method": "PutChartCategory" },
|
71
|
+
{ "Value": 3, "Parameter": "SlideIndex", "Method": "DeleteChartCategory" },
|
72
|
+
{ "Value": 3, "Parameter": "SlideIndex", "Method": "PostChartDataPoint" },
|
73
|
+
{ "Value": 3, "Parameter": "SlideIndex", "Method": "PutChartDataPoint" },
|
74
|
+
{ "Value": 3, "Parameter": "SlideIndex", "Method": "DeleteChartDataPoint" },
|
75
|
+
{ "Value": 2, "Parameter": "ShapeIndex", "Method": "PostChartDataPoint" },
|
76
|
+
{ "Value": 2, "Parameter": "ShapeIndex", "Method": "PutChartDataPoint" },
|
66
77
|
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "DeleteSlideSubshape" },
|
67
78
|
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "DeleteSlideSubshapes" },
|
68
79
|
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "DeleteSubshapeParagraph" },
|
@@ -85,6 +96,9 @@
|
|
85
96
|
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "PutSubshapeSaveAs" },
|
86
97
|
{ "Value": null, "InvalidValue": [1, 593], "Parameter": "Shapes" },
|
87
98
|
{ "Value": null, "InvalidValue": 593, "Parameter": "ShapeToClone" },
|
99
|
+
{ "Value": 1, "InvalidValue": 593, "Parameter": "SeriesIndex" },
|
100
|
+
{ "Value": 1, "InvalidValue": 593, "Parameter": "CategoryIndex" },
|
101
|
+
{ "Value": 1, "InvalidValue": 593, "Parameter": "PointIndex" },
|
88
102
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "ParagraphIndex" },
|
89
103
|
{ "Value": null, "InvalidValue": [1, 593], "Parameter": "Paragraphs" },
|
90
104
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "PortionIndex" },
|
@@ -92,21 +106,23 @@
|
|
92
106
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "PlaceholderIndex" },
|
93
107
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "SequenceIndex" },
|
94
108
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "EffectIndex" },
|
109
|
+
{ "Value": 2, "InvalidValue": 593, "Parameter": "SectionIndex" },
|
95
110
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "Index" },
|
96
111
|
{ "Value": 2, "InvalidValue": 593, "Parameter": "NewPosition" },
|
97
112
|
{ "Value": null, "InvalidValue": 593, "Parameter": "OldPosition" },
|
98
113
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "Position" },
|
99
114
|
{ "Value": [2, 1], "InvalidValue": [1, 593], "Parameter": "OldPositions" },
|
100
115
|
{ "Value": [1, 2], "InvalidValue": [1, 593], "Parameter": "NewPositions" },
|
116
|
+
{ "Value": [3, 2], "InvalidValue": [1, 593], "Parameter": "Sections" },
|
101
117
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "CloneFromPosition" },
|
102
118
|
{ "Value": null, "InvalidValue": 593, "Parameter": "From" },
|
103
119
|
{ "Value": null, "InvalidValue": 593, "Parameter": "To" },
|
104
120
|
{ "Value": "4/shapes", "Parameter": "Path" },
|
105
|
-
{ "Value": "TempSlidesSDK/test.
|
106
|
-
{ "Value": "TempSlidesSDK/test.
|
107
|
-
{ "Value": "TempSlidesSDK/test.
|
108
|
-
{ "Value": "TempSlidesSDK/test.
|
109
|
-
{ "Value": "TempSlidesSDK/test.
|
121
|
+
{ "Value": "TempSlidesSDK/test.pptx", "InvalidValue": "invalid%v", "Parameter": "Path", "Method": "UploadFile" },
|
122
|
+
{ "Value": "TempSlidesSDK/test.pptx", "InvalidValue": "invalid%v", "Parameter": "Path", "Method": "DownloadFile" },
|
123
|
+
{ "Value": "TempSlidesSDK/test.pptx", "InvalidValue": "invalid%v", "Parameter": "Path", "Method": "GetFileVersions" },
|
124
|
+
{ "Value": "TempSlidesSDK/test.pptx", "InvalidValue": "invalid%v", "Parameter": "Path", "Method": "DeleteFile" },
|
125
|
+
{ "Value": "TempSlidesSDK/test.pptx", "InvalidValue": "invalid%v", "Parameter": "Path", "Method": "ObjectExists" },
|
110
126
|
{ "Value": "TempSlidesSDK", "Parameter": "Path", "Method": "DeleteFolder" },
|
111
127
|
{ "Value": "testProperty", "Parameter": "PropertyName" },
|
112
128
|
{ "InvalidValue": null, "Parameter": "Stream" },
|
@@ -120,24 +136,30 @@
|
|
120
136
|
{ "Value": {}, "InvalidValue": null, "Type": "Pipeline", "Parameter": "Pipeline" },
|
121
137
|
{ "Value": {}, "InvalidValue": null, "Type": "SlideBackground", "Parameter": "Background" },
|
122
138
|
{ "Value": {}, "InvalidValue": null, "Type": "SlideAnimation", "Parameter": "Animation" },
|
139
|
+
{ "Value": {}, "InvalidValue": null, "Type": "ChartCategory", "Parameter": "Category" },
|
140
|
+
{ "Value": { "XValue": 32.5, "YValue": 42.9 }, "InvalidValue": null, "Type": "ScatterChartDataPoint", "Parameter": "DataPoint" },
|
141
|
+
{ "Value": { "DataPointType": "OneValue" }, "InvalidValue": null, "Type": "OneValueSeries", "Parameter": "Series" },
|
123
142
|
{ "Value": { "TriggerShapeIndex": 1 }, "InvalidValue": null, "Type": "InteractiveSequence", "Parameter": "Sequence" },
|
124
143
|
{ "Value": { "ShapeIndex": 1, "Type": "Appear" }, "InvalidValue": null, "Type": "Effect", "Parameter": "Effect" },
|
125
144
|
{ "Value": { "Text": "testNote" }, "InvalidValue": null, "Type": "NotesSlide", "Parameter": "DTO" },
|
126
145
|
{ "Value": {}, "InvalidValue": null, "Type": "Paragraph", "Parameter": "DTO" },
|
146
|
+
{ "Value": {}, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO" },
|
147
|
+
{ "Value": {}, "InvalidValue": null, "Type": "HeaderFooter", "Parameter": "DTO" },
|
148
|
+
{ "Value": {}, "InvalidValue": null, "Type": "NotesSlideHeaderFooter", "Parameter": "DTO" },
|
127
149
|
{
|
128
150
|
"Value": { "Text": "testShape", "Type": "Shape", "ShapeType": "BentArrow", "GeometryShapeType": "Rectangle" },
|
129
151
|
"InvalidValue": null,
|
130
152
|
"Type": "Shape",
|
131
153
|
"Parameter": "DTO"
|
132
154
|
},
|
155
|
+
{ "Value": { "Type": "Connector" }, "InvalidValue": null, "Type": "Shape", "Parameter": "DTO", "Language": "CPP" },
|
156
|
+
{ "Value": {}, "InvalidValue": null, "Type": "SlideProperties", "Parameter": "DTO", "Method": "PutSlidesSlideProperties" },
|
157
|
+
{ "Value": {}, "InvalidValue": null, "Type": "ProtectionProperties", "Parameter": "DTO", "Method": "PutSlidesProtectionProperties" },
|
133
158
|
{ "Value": {}, "InvalidValue": null, "Type": "ViewProperties", "Parameter": "DTO", "Method": "PutSlidesViewProperties" },
|
134
159
|
{ "Value": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "PostAddNewPortion" },
|
135
160
|
{ "Value": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "PostAddNewSubshapePortion" },
|
136
161
|
{ "Value": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "PostNotesSlideAddNewPortion" },
|
137
|
-
{ "Value": { "
|
138
|
-
{ "Value": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "PutSetSubshapeParagraphPortionProperties" },
|
139
|
-
{ "Value": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "PutUpdateNotesSlideShapePortion" },
|
140
|
-
{ "Value": { "MasterSlide": { "Uri": { "Href": "masterSlides/2" } } }, "InvalidValue": null, "Type": "LayoutSlide", "Parameter": "SlideDTO" },
|
162
|
+
{ "Value": { "MasterSlide": { "Href": "masterSlides/2" } }, "InvalidValue": null, "Type": "LayoutSlide", "Parameter": "SlideDTO" },
|
141
163
|
{ "Value": { "LayoutSlide": { "Uri": { "Href": "TitleOnly" } } }, "InvalidValue": null, "Type": "Slide", "Parameter": "SlideDTO", "Method": "PutSlidesSlide" },
|
142
164
|
{ "Value": { "List": [] }, "InvalidValue": null, "Type": "DocumentProperties", "Parameter": "Properties" },
|
143
165
|
{
|
@@ -146,6 +168,7 @@
|
|
146
168
|
"Type": "DocumentProperty",
|
147
169
|
"Parameter": "Property"
|
148
170
|
},
|
171
|
+
{ "Value": {}, "InvalidValue": null, "Type": "Sections", "Parameter": "Sections", "Method": "PutSections" },
|
149
172
|
{ "Value": "pdf", "Parameter": "Format" },
|
150
173
|
{ "InvalidValue": "svg", "Parameter": "Format", "Language": "NET" },
|
151
174
|
{ "InvalidValue": "gif", "Parameter": "Format", "Method": "GetNotesSlideWithFormat", "Language": "NET" },
|
@@ -162,7 +185,7 @@
|
|
162
185
|
{ "Value": "png", "Parameter": "Format", "Method": "PostNotesSlideShapeSaveAs" },
|
163
186
|
{ "Value": "png", "Parameter": "Format", "Method": "PutNotesSlideShapeSaveAs" },
|
164
187
|
{ "Value": "png", "Parameter": "Format", "Method": "GetSlidesImageWithFormat" },
|
165
|
-
{ "Value": null, "InvalidValue": "
|
188
|
+
{ "Value": null, "InvalidValue": "Shape", "Parameter": "Bounds" },
|
166
189
|
{ "Value": "OnScreen", "InvalidValue": "Ledger", "Parameter": "SizeType" },
|
167
190
|
{ "Value": "DoNotScale", "InvalidValue": "Maximize", "Parameter": "ScaleType" },
|
168
191
|
{ "Value": null, "InvalidValue": null, "Parameter": "Options" },
|
@@ -175,6 +198,7 @@
|
|
175
198
|
{ "Value": null, "InvalidValue": false, "Parameter": "WithEmpty" },
|
176
199
|
{ "Value": null, "InvalidValue": false, "Parameter": "ApplyToAll" },
|
177
200
|
{ "Value": null, "InvalidValue": false, "Parameter": "IsImageDataEmbedded" },
|
201
|
+
{ "Value": null, "InvalidValue": false, "Parameter": "WithSlides" },
|
178
202
|
{ "Value": null, "InvalidValue": 593, "Parameter": "JpegQuality" },
|
179
203
|
{ "Value": null, "InvalidValue": 593.5, "Parameter": "ScaleX" },
|
180
204
|
{ "Value": null, "InvalidValue": 593.5, "Parameter": "ScaleY" },
|
@@ -202,6 +226,7 @@
|
|
202
226
|
{ "Parameter": "IsImageDataEmbedded" },
|
203
227
|
{ "Parameter": "Stream" },
|
204
228
|
{ "Parameter": "Html" },
|
229
|
+
{ "Parameter": "Pdf" },
|
205
230
|
{ "Parameter": "Options" },
|
206
231
|
{ "Parameter": "ApplyToAll" },
|
207
232
|
{ "Parameter": "SlideToCopy" },
|
@@ -222,20 +247,28 @@
|
|
222
247
|
{ "Parameter": "Format", "Language": "Java", "Method": "PostSlidesSplit" },
|
223
248
|
{ "Parameter": "Dto", "Method": "PostAddNotesSlide" },
|
224
249
|
{ "Parameter": "Dto", "Language": "Swift" },
|
250
|
+
{ "Parameter": "SlideDto", "Language": "Swift" },
|
225
251
|
{ "Parameter": "Request", "Language": "Swift" },
|
226
252
|
{ "Parameter": "Effect", "Language": "Swift" },
|
227
253
|
{ "Parameter": "Sequence", "Language": "Swift" },
|
228
254
|
{ "Parameter": "Pipeline", "Language": "Swift" },
|
229
255
|
{ "Parameter": "Properties", "Language": "Swift" },
|
256
|
+
{ "Parameter": "Property", "Language": "Swift" },
|
257
|
+
{ "Parameter": "Animation", "Language": "Swift" },
|
258
|
+
{ "Parameter": "Category", "Language": "Swift" },
|
259
|
+
{ "Parameter": "Series", "Language": "Swift" },
|
260
|
+
{ "Parameter": "Sections", "Language": "Swift" },
|
230
261
|
{ "Parameter": "Position", "Method": "PostSlidesReorderPosition" },
|
231
262
|
{ "Parameter": "Name", "Method": "PostSlidesDocument" },
|
232
263
|
{ "Parameter": "Name", "Method": "PostSlidesDocumentFromHtml" },
|
264
|
+
{ "Parameter": "Name", "Method": "PostSlidesDocumentFromPdf" },
|
233
265
|
{ "Parameter": "Name", "Method": "PostSlidesDocumentFromSource" },
|
234
266
|
{ "Parameter": "Name", "Method": "PostSlidesDocumentFromTemplate" },
|
235
267
|
{ "Parameter": "Name", "Method": "PutNewPresentation" },
|
236
268
|
{ "Parameter": "Name", "Method": "PutSlidesDocumentFromHtml" },
|
237
269
|
{ "Parameter": "Folder", "Method": "PostSlidesDocument" },
|
238
270
|
{ "Parameter": "Folder", "Method": "PostSlidesDocumentFromHtml" },
|
271
|
+
{ "Parameter": "Folder", "Method": "PostSlidesDocumentFromPdf" },
|
239
272
|
{ "Parameter": "Folder", "Method": "PostSlidesDocumentFromSource" },
|
240
273
|
{ "Parameter": "Folder", "Method": "PostSlidesDocumentFromTemplate" },
|
241
274
|
{ "Parameter": "Folder", "Method": "PutNewPresentation" },
|
@@ -247,6 +280,8 @@
|
|
247
280
|
{ "Parameter": "Password", "Method": "PutNewPresentation" },
|
248
281
|
{ "Parameter": "Data", "Method": "PostSlidesDocument" },
|
249
282
|
{ "Parameter": "Files" },
|
283
|
+
{ "Parameter": "WithSlides" },
|
284
|
+
{ "Parameter": "SectionName" },
|
250
285
|
{ "Method": "GetDiscUsage" },
|
251
286
|
{ "Method": "GetFilesList" },
|
252
287
|
{ "Method": "GetFileVersions" },
|
@@ -280,12 +315,16 @@
|
|
280
315
|
{ "Code": 201, "Method": "PostAddNewSubshapeParagraph" },
|
281
316
|
{ "Code": 201, "Method": "PostAddNewSubshapePortion" },
|
282
317
|
{ "Code": 201, "Method": "PostAddNewSubshape" },
|
318
|
+
{ "Code": 201, "Method": "PostChartSeries" },
|
319
|
+
{ "Code": 201, "Method": "PostChartCategory" },
|
320
|
+
{ "Code": 201, "Method": "PostChartDataPoint" },
|
283
321
|
{ "Code": 201, "Method": "PostNotesSlideAddNewParagraph" },
|
284
322
|
{ "Code": 201, "Method": "PostNotesSlideAddNewPortion" },
|
285
323
|
{ "Code": 201, "Method": "PostNotesSlideAddNewShape" },
|
286
324
|
{ "Code": 201, "Method": "PostSlideAnimationEffect" },
|
287
325
|
{ "Code": 201, "Method": "PostSlideAnimationInteractiveSequence" },
|
288
326
|
{ "Code": 201, "Method": "PostSlideAnimationInteractiveSequenceEffect" },
|
327
|
+
{ "Code": 201, "Method": "PostSection" },
|
289
328
|
{ "Code": 400, "Invalid": true },
|
290
329
|
{ "Code": 404, "Message" : "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "Name" },
|
291
330
|
{ "Code": 404, "Message" : "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "Folder" },
|
@@ -304,9 +343,9 @@
|
|
304
343
|
{ "Message": "Invalid password.", "Parameter": "SourcePassword" },
|
305
344
|
{ "Message": "Invalid password.", "Parameter": "TemplatePassword" },
|
306
345
|
{ "Message": "Invalid password.", "Parameter": "InputPassword" },
|
307
|
-
{ "Message": "
|
308
|
-
{ "Message": "
|
309
|
-
{ "Message": "
|
346
|
+
{ "Message": "Failed to load the presentation", "Parameter": "Password", "Method": "DeleteSlidesCleanSlidesList" },
|
347
|
+
{ "Message": "Failed to load the presentation", "Parameter": "Password", "Method": "PostSlidesAdd" },
|
348
|
+
{ "Message": "Failed to load the presentation", "Parameter": "Password", "Method": "PutSlidesSlide" },
|
310
349
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "SlideIndex" },
|
311
350
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "Slides" },
|
312
351
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "ShapeIndex" },
|
@@ -317,6 +356,10 @@
|
|
317
356
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "Portions" },
|
318
357
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "EffectIndex" },
|
319
358
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "SequenceIndex" },
|
359
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "SeriesIndex" },
|
360
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "CategoryIndex" },
|
361
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "PointIndex" },
|
362
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "SectionIndex" },
|
320
363
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "Position" },
|
321
364
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "CloneFromPosition" },
|
322
365
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "OldPosition" },
|
@@ -325,10 +368,12 @@
|
|
325
368
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "NewPositions" },
|
326
369
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "SlideToCopy" },
|
327
370
|
{ "Message": "Placeholder with index %v doesn't exist.", "Parameter": "PlaceholderIndex" },
|
328
|
-
{ "Message": "
|
329
|
-
{ "Message": "
|
371
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "Index" },
|
372
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "ShapeToClone" },
|
330
373
|
{ "Message": "Index was out of range.", "Parameter": "ShapeToCopy" },
|
331
|
-
{ "Message": "Invalid
|
374
|
+
{ "Message": "Invalid Request", "Parameter": "VersionId" },
|
375
|
+
{ "Message": "Invalid version id specified", "Parameter": "VersionId", "Method": "DeleteFile" },
|
376
|
+
{ "Message": "Invalid version id specified", "Parameter": "VersionId", "Method": "DownloadFile" },
|
332
377
|
{ "Message": "AmazonS3 Storage exception", "Parameter": "VersionId", "Method": "ObjectExists" },
|
333
378
|
{ "Message": "The HTTP resource that matches the request URI", "Parameter": "Path" },
|
334
379
|
{ "Message": "Specified cast is not valid", "Parameter": "Path", "Method": "GetSlideShapes" },
|
@@ -339,8 +384,19 @@
|
|
339
384
|
{ "Code": 404, "Message": "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "SrcPath" },
|
340
385
|
{ "Code": 404, "Message": "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "SourcePath" },
|
341
386
|
{ "Code": 404, "Message": "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "TemplatePath" },
|
342
|
-
{ "Message": "
|
343
|
-
{ "Message": "
|
387
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "From" },
|
388
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "To" },
|
389
|
+
{ "Message": " is not supported", "Parameter": "Format" },
|
390
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "GetSlidesImageWithFormat", "Language": "NodeJS" },
|
391
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "GetSlidesImageWithFormat", "Language": "Go" },
|
392
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "GetSlidesImageWithFormat", "Language": "Python" },
|
393
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "GetSlidesImageWithFormat", "Language": "Perl" },
|
394
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "GetSlidesImageWithFormat", "Language": "Swift" },
|
395
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "GetSlidesImageWithFormat", "Language": "CPP" },
|
396
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostShapeSaveAs", "Language": "NodeJS" },
|
397
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostSubshapeSaveAs", "Language": "NodeJS" },
|
398
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutShapeSaveAs", "Language": "NodeJS" },
|
399
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutSubshapeSaveAs", "Language": "NodeJS" },
|
344
400
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostShapeSaveAs", "Language": "Python" },
|
345
401
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostSubshapeSaveAs", "Language": "Python" },
|
346
402
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutShapeSaveAs", "Language": "Python" },
|
@@ -353,31 +409,43 @@
|
|
353
409
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostSubshapeSaveAs", "Language": "Perl" },
|
354
410
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutShapeSaveAs", "Language": "Perl" },
|
355
411
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutSubshapeSaveAs", "Language": "Perl" },
|
412
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostShapeSaveAs", "Language": "Swift" },
|
413
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostSubshapeSaveAs", "Language": "Swift" },
|
414
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutShapeSaveAs", "Language": "Swift" },
|
415
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutSubshapeSaveAs", "Language": "Swift" },
|
416
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostShapeSaveAs", "Language": "CPP" },
|
417
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostSubshapeSaveAs", "Language": "CPP" },
|
418
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutShapeSaveAs", "Language": "CPP" },
|
419
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutSubshapeSaveAs", "Language": "CPP" },
|
356
420
|
{ "Message": "Color must be in format #FF000000", "Parameter": "Color" },
|
357
421
|
{ "Code": 404, "Message": "Property %v does not exist.", "Parameter": "PropertyName" },
|
358
|
-
{ "Message": "
|
422
|
+
{ "Message": "Error parsing XML template data", "Parameter": "Data" },
|
359
423
|
{ "Message": "Can't read MSCDFileSystem.", "Parameter": "Data", "Language": "Python", "Method": "PostSlidesDocument" },
|
360
|
-
{ "Message": "
|
361
|
-
{ "Message": "
|
362
|
-
{ "Message": "
|
363
|
-
{ "Message": "
|
364
|
-
{ "Message": "
|
365
|
-
{ "Message": "
|
366
|
-
{ "Message": "
|
367
|
-
{ "Message": "
|
368
|
-
{ "Message": "
|
369
|
-
{ "Message": "
|
370
|
-
{ "Message": "
|
371
|
-
{ "Message": "
|
372
|
-
{ "Message": "
|
373
|
-
{ "Message": "
|
374
|
-
{ "Message": "
|
375
|
-
{ "Message": "
|
376
|
-
{ "Message": "
|
424
|
+
{ "Message": " required parameter", "Parameter": "DTO" },
|
425
|
+
{ "Message": "DTO expected", "Parameter": "DTO", "Method": "PostAddNewShape" },
|
426
|
+
{ "Message": "DTO expected", "Parameter": "DTO", "Method": "PostAddNewSubshape" },
|
427
|
+
{ "Message": " required parameter", "Parameter": "SlideDTO" },
|
428
|
+
{ "Message": " required parameter", "Parameter": "Background" },
|
429
|
+
{ "Message": " required parameter", "Parameter": "Pipeline" },
|
430
|
+
{ "Message": " required parameter", "Parameter": "Properties" },
|
431
|
+
{ "Message": " required parameter", "Parameter": "Property" },
|
432
|
+
{ "Message": " required parameter", "Parameter": "Animation" },
|
433
|
+
{ "Message": " required parameter", "Parameter": "Sequence" },
|
434
|
+
{ "Message": " required parameter", "Parameter": "Series" },
|
435
|
+
{ "Message": " required parameter", "Parameter": "DataPoint" },
|
436
|
+
{ "Message": " required parameter", "Parameter": "Category" },
|
437
|
+
{ "Message": " required parameter", "Parameter": "Effect" },
|
438
|
+
{ "Message": " required parameter", "Parameter": "Request" },
|
439
|
+
{ "Message": " required parameter", "Parameter": "Sections" },
|
440
|
+
{ "Message": " required parameter", "Parameter": "Document" },
|
441
|
+
{ "Message": " required parameter", "Parameter": "File" },
|
442
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "Sections", "Method": "DeleteSections" },
|
377
443
|
{ "Message": "Layout slide DTO must be not null and contain", "Parameter": "SlideDTO", "Language": "Swift" },
|
378
444
|
{ "Message": "Object reference not set to an instance of an object.", "Parameter": "Bounds" },
|
379
445
|
{ "Code": 409, "Message": " is not empty.", "Parameter": "Recursive" },
|
380
446
|
{ "Message": "An error has occurred.", "Code": 500, "Parameter": "Options" },
|
381
|
-
{ "Message": "
|
447
|
+
{ "Code": 500, "Message": "Object reference not set", "Method": "PostSlidesDocumentFromPdf", "Parameter": "Name" },
|
448
|
+
{ "Code": 500, "Message": "Object reference not set", "Method": "PostSlidesDocumentFromPdf", "Parameter": "Pdf" },
|
449
|
+
{ "Code": 500, "Message": "Object reference not set", "Method": "PostSlidesDocumentFromPdf", "Parameter": "Folder" }
|
382
450
|
]
|
383
451
|
}
|