aspose_slides_cloud 20.5.0 → 20.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/TestData/ChartTest.pptx +0 -0
- data/TestData/Sections.pptx +0 -0
- data/lib/aspose_slides_cloud.rb +12 -5
- data/lib/aspose_slides_cloud/api/slides_api.rb +4571 -1683
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +1191 -185
- data/lib/aspose_slides_cloud/api_client.rb +30 -23
- data/lib/aspose_slides_cloud/configuration.rb +7 -2
- data/lib/aspose_slides_cloud/models/add_layout_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/add_master_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/add_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/add_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/api_info.rb +22 -10
- data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +22 -10
- data/lib/aspose_slides_cloud/models/audio_frame.rb +32 -246
- data/lib/aspose_slides_cloud/models/axes.rb +22 -10
- data/lib/aspose_slides_cloud/models/axis.rb +22 -10
- data/lib/aspose_slides_cloud/models/base64_input_file.rb +31 -57
- data/lib/aspose_slides_cloud/models/blur_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +31 -222
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +30 -48
- data/lib/aspose_slides_cloud/models/bubble_series.rb +31 -211
- data/lib/aspose_slides_cloud/models/chart.rb +32 -220
- data/lib/aspose_slides_cloud/models/chart_category.rb +54 -20
- data/lib/aspose_slides_cloud/models/chart_title.rb +22 -10
- data/lib/aspose_slides_cloud/models/chart_wall.rb +22 -10
- data/lib/aspose_slides_cloud/models/color_scheme.rb +30 -40
- data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +22 -10
- data/lib/aspose_slides_cloud/models/connector.rb +32 -244
- data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +22 -10
- data/lib/aspose_slides_cloud/models/{resource_uri_element.rb → data_point.rb} +24 -22
- data/lib/aspose_slides_cloud/models/disc_usage.rb +22 -10
- data/lib/aspose_slides_cloud/models/document.rb +35 -45
- data/lib/aspose_slides_cloud/models/document_properties.rb +30 -40
- data/lib/aspose_slides_cloud/models/document_property.rb +30 -40
- data/lib/aspose_slides_cloud/models/document_replace_result.rb +30 -94
- data/lib/aspose_slides_cloud/models/effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/effect_format.rb +22 -10
- data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
- data/lib/aspose_slides_cloud/models/error.rb +22 -10
- data/lib/aspose_slides_cloud/models/error_details.rb +22 -10
- data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/export_options.rb +33 -11
- data/lib/aspose_slides_cloud/models/file_version.rb +30 -75
- data/lib/aspose_slides_cloud/models/file_versions.rb +22 -10
- data/lib/aspose_slides_cloud/models/files_list.rb +22 -10
- data/lib/aspose_slides_cloud/models/files_upload_result.rb +22 -10
- data/lib/aspose_slides_cloud/models/fill_format.rb +22 -10
- data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/font_scheme.rb +30 -40
- data/lib/aspose_slides_cloud/models/font_set.rb +22 -10
- data/lib/aspose_slides_cloud/models/format_scheme.rb +30 -40
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +33 -212
- data/lib/aspose_slides_cloud/models/glow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/gradient_fill.rb +31 -48
- data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +22 -10
- data/lib/aspose_slides_cloud/models/graphical_object.rb +31 -219
- data/lib/aspose_slides_cloud/models/group_shape.rb +31 -219
- data/lib/aspose_slides_cloud/models/header_footer.rb +247 -0
- data/lib/aspose_slides_cloud/models/html_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +22 -20
- data/lib/aspose_slides_cloud/models/image.rb +30 -40
- data/lib/aspose_slides_cloud/models/image_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/images.rb +30 -40
- data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/input.rb +22 -10
- data/lib/aspose_slides_cloud/models/input_file.rb +22 -10
- data/lib/aspose_slides_cloud/models/interactive_sequence.rb +22 -10
- data/lib/aspose_slides_cloud/models/layout_slide.rb +31 -41
- data/lib/aspose_slides_cloud/models/layout_slides.rb +30 -40
- data/lib/aspose_slides_cloud/models/legend.rb +22 -10
- data/lib/aspose_slides_cloud/models/line_format.rb +22 -10
- data/lib/aspose_slides_cloud/models/master_slide.rb +31 -41
- data/lib/aspose_slides_cloud/models/master_slides.rb +30 -40
- data/lib/aspose_slides_cloud/models/merge.rb +31 -48
- data/lib/aspose_slides_cloud/models/merging_source.rb +22 -10
- data/lib/aspose_slides_cloud/models/no_fill.rb +29 -46
- data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +22 -10
- data/lib/aspose_slides_cloud/models/notes_slide.rb +30 -40
- data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +267 -0
- data/lib/aspose_slides_cloud/models/object_exist.rb +22 -10
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +32 -220
- data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +30 -20
- data/lib/aspose_slides_cloud/models/one_value_series.rb +31 -211
- data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +22 -10
- data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/output_file.rb +22 -10
- data/lib/aspose_slides_cloud/models/paragraph.rb +30 -40
- data/lib/aspose_slides_cloud/models/paragraphs.rb +30 -40
- data/lib/aspose_slides_cloud/models/path_input_file.rb +31 -57
- data/lib/aspose_slides_cloud/models/path_output_file.rb +31 -48
- data/lib/aspose_slides_cloud/models/pattern_fill.rb +31 -48
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +63 -35
- data/lib/aspose_slides_cloud/models/picture_fill.rb +32 -49
- data/lib/aspose_slides_cloud/models/picture_frame.rb +32 -246
- data/lib/aspose_slides_cloud/models/pipeline.rb +22 -10
- data/lib/aspose_slides_cloud/models/placeholder.rb +30 -40
- data/lib/aspose_slides_cloud/models/placeholders.rb +30 -40
- data/lib/aspose_slides_cloud/models/plot_area.rb +22 -10
- data/lib/aspose_slides_cloud/models/portion.rb +30 -40
- data/lib/aspose_slides_cloud/models/portions.rb +36 -46
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +22 -10
- data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +22 -10
- data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/reflection_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/remove_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/remove_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/reorder_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/replace_text.rb +31 -48
- data/lib/aspose_slides_cloud/models/request_input_file.rb +31 -57
- data/lib/aspose_slides_cloud/models/reset_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/resource_base.rb +22 -10
- data/lib/aspose_slides_cloud/models/resource_uri.rb +22 -10
- data/lib/aspose_slides_cloud/models/response_output_file.rb +29 -46
- data/lib/aspose_slides_cloud/models/save.rb +33 -50
- data/lib/aspose_slides_cloud/models/save_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/save_slide.rb +33 -50
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +30 -20
- data/lib/aspose_slides_cloud/models/scatter_series.rb +31 -211
- data/lib/aspose_slides_cloud/models/section.rb +234 -0
- data/lib/aspose_slides_cloud/models/sections.rb +209 -0
- data/lib/aspose_slides_cloud/models/series.rb +45 -12
- data/lib/aspose_slides_cloud/models/series_marker.rb +22 -10
- data/lib/aspose_slides_cloud/models/shape.rb +32 -244
- data/lib/aspose_slides_cloud/models/shape_base.rb +31 -62
- data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +22 -10
- data/lib/aspose_slides_cloud/models/shapes.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide.rb +37 -47
- data/lib/aspose_slides_cloud/models/slide_animation.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide_background.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide_comment.rb +22 -10
- data/lib/aspose_slides_cloud/models/slide_comments.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/slide_replace_result.rb +30 -154
- data/lib/aspose_slides_cloud/models/slides.rb +30 -40
- data/lib/aspose_slides_cloud/models/smart_art.rb +32 -220
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +23 -11
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +30 -217
- data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/solid_fill.rb +31 -48
- data/lib/aspose_slides_cloud/models/split_document_result.rb +30 -40
- data/lib/aspose_slides_cloud/models/storage_exist.rb +22 -10
- data/lib/aspose_slides_cloud/models/storage_file.rb +22 -10
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/table.rb +32 -220
- data/lib/aspose_slides_cloud/models/table_cell.rb +22 -10
- data/lib/aspose_slides_cloud/models/table_column.rb +22 -10
- data/lib/aspose_slides_cloud/models/table_row.rb +22 -10
- data/lib/aspose_slides_cloud/models/task.rb +22 -10
- data/lib/aspose_slides_cloud/models/text_item.rb +22 -10
- data/lib/aspose_slides_cloud/models/text_items.rb +30 -40
- data/lib/aspose_slides_cloud/models/theme.rb +32 -42
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/update_background.rb +31 -48
- data/lib/aspose_slides_cloud/models/update_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/video_frame.rb +32 -246
- data/lib/aspose_slides_cloud/models/view_properties.rb +30 -40
- data/lib/aspose_slides_cloud/models/waterfall_chart_data_point.rb +206 -0
- data/lib/aspose_slides_cloud/models/waterfall_series.rb +31 -222
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/type_registry.rb +320 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +25246 -14028
- data/spec/extra/extra_spec.rb +156 -22
- data/spec/spec_utils.rb +11 -4
- data/testConfig.json +2 -2
- data/testRules.json +172 -77
- metadata +12 -3
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,7 @@ module AsposeSlidesCloud
|
|
73
80
|
|
74
81
|
def self.get_param_value(name, method, type)
|
75
82
|
if type == 'File'
|
76
|
-
return File.binread(File.join(TEST_DATA_PATH, "test.
|
83
|
+
return File.binread(File.join(TEST_DATA_PATH, "test.pptx"))
|
77
84
|
end
|
78
85
|
value = "test" + name
|
79
86
|
SpecUtils.test_rules["Values"].each do |rule|
|
@@ -159,8 +166,8 @@ module AsposeSlidesCloud
|
|
159
166
|
configuration = AsposeSlidesCloud::Configuration.new
|
160
167
|
configuration.base_url = config["BaseUrl"]
|
161
168
|
configuration.auth_base_url = config["AuthBaseUrl"] ? config["AuthBaseUrl"] : config["BaseUrl"]
|
162
|
-
configuration.app_sid = config["
|
163
|
-
configuration.app_key = config["
|
169
|
+
configuration.app_sid = config["ClientId"]
|
170
|
+
configuration.app_key = config["ClientSecret"]
|
164
171
|
configuration.debugging = config["Debug"]
|
165
172
|
@@api = AsposeSlidesCloud::SlidesApi.new(configuration)
|
166
173
|
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,12 +58,47 @@
|
|
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" },
|
77
|
+
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "DeleteSlideSubshape" },
|
78
|
+
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "DeleteSlideSubshapes" },
|
79
|
+
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "DeleteSubshapeParagraph" },
|
80
|
+
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "DeleteSubshapeParagraphs" },
|
81
|
+
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "DeleteSubshapePortion" },
|
82
|
+
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "DeleteSubshapePortions" },
|
83
|
+
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "GetSlideSubshape" },
|
84
|
+
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "GetSlideSubshapes" },
|
85
|
+
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "GetSlideSubshapeParagraph" },
|
86
|
+
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "GetSlideSubshapeParagraphs" },
|
87
|
+
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "GetSubshapeParagraphPortion" },
|
88
|
+
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "GetSubshapeParagraphPortions" },
|
89
|
+
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "PostAddNewSubshape" },
|
90
|
+
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "PostAddNewSubshapeParagraph" },
|
91
|
+
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "PostAddNewSubshapePortion" },
|
92
|
+
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "PostSubshapeSaveAs" },
|
93
|
+
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "PutSetSubshapeParagraphPortionProperties" },
|
94
|
+
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "PutSetSubshapeParagraphProperties" },
|
95
|
+
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "PutSlideSubshapeInfo" },
|
96
|
+
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "PutSubshapeSaveAs" },
|
66
97
|
{ "Value": null, "InvalidValue": [1, 593], "Parameter": "Shapes" },
|
67
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" },
|
68
102
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "ParagraphIndex" },
|
69
103
|
{ "Value": null, "InvalidValue": [1, 593], "Parameter": "Paragraphs" },
|
70
104
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "PortionIndex" },
|
@@ -72,21 +106,23 @@
|
|
72
106
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "PlaceholderIndex" },
|
73
107
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "SequenceIndex" },
|
74
108
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "EffectIndex" },
|
109
|
+
{ "Value": 2, "InvalidValue": 593, "Parameter": "SectionIndex" },
|
75
110
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "Index" },
|
76
111
|
{ "Value": 2, "InvalidValue": 593, "Parameter": "NewPosition" },
|
77
112
|
{ "Value": null, "InvalidValue": 593, "Parameter": "OldPosition" },
|
78
113
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "Position" },
|
79
114
|
{ "Value": [2, 1], "InvalidValue": [1, 593], "Parameter": "OldPositions" },
|
80
115
|
{ "Value": [1, 2], "InvalidValue": [1, 593], "Parameter": "NewPositions" },
|
116
|
+
{ "Value": [3, 2], "InvalidValue": [1, 593], "Parameter": "Sections" },
|
81
117
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "CloneFromPosition" },
|
82
118
|
{ "Value": null, "InvalidValue": 593, "Parameter": "From" },
|
83
119
|
{ "Value": null, "InvalidValue": 593, "Parameter": "To" },
|
84
|
-
{ "Value": "", "Parameter": "Path" },
|
85
|
-
{ "Value": "TempSlidesSDK/test.
|
86
|
-
{ "Value": "TempSlidesSDK/test.
|
87
|
-
{ "Value": "TempSlidesSDK/test.
|
88
|
-
{ "Value": "TempSlidesSDK/test.
|
89
|
-
{ "Value": "TempSlidesSDK/test.
|
120
|
+
{ "Value": "4/shapes", "Parameter": "Path" },
|
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" },
|
90
126
|
{ "Value": "TempSlidesSDK", "Parameter": "Path", "Method": "DeleteFolder" },
|
91
127
|
{ "Value": "testProperty", "Parameter": "PropertyName" },
|
92
128
|
{ "InvalidValue": null, "Parameter": "Stream" },
|
@@ -100,10 +136,16 @@
|
|
100
136
|
{ "Value": {}, "InvalidValue": null, "Type": "Pipeline", "Parameter": "Pipeline" },
|
101
137
|
{ "Value": {}, "InvalidValue": null, "Type": "SlideBackground", "Parameter": "Background" },
|
102
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" },
|
103
142
|
{ "Value": { "TriggerShapeIndex": 1 }, "InvalidValue": null, "Type": "InteractiveSequence", "Parameter": "Sequence" },
|
104
143
|
{ "Value": { "ShapeIndex": 1, "Type": "Appear" }, "InvalidValue": null, "Type": "Effect", "Parameter": "Effect" },
|
105
144
|
{ "Value": { "Text": "testNote" }, "InvalidValue": null, "Type": "NotesSlide", "Parameter": "DTO" },
|
106
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" },
|
107
149
|
{
|
108
150
|
"Value": { "Text": "testShape", "Type": "Shape", "ShapeType": "BentArrow", "GeometryShapeType": "Rectangle" },
|
109
151
|
"InvalidValue": null,
|
@@ -112,10 +154,9 @@
|
|
112
154
|
},
|
113
155
|
{ "Value": {}, "InvalidValue": null, "Type": "ViewProperties", "Parameter": "DTO", "Method": "PutSlidesViewProperties" },
|
114
156
|
{ "Value": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "PostAddNewPortion" },
|
157
|
+
{ "Value": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "PostAddNewSubshapePortion" },
|
115
158
|
{ "Value": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "PostNotesSlideAddNewPortion" },
|
116
|
-
{ "Value": { "
|
117
|
-
{ "Value": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "PutUpdateNotesSlideShapePortion" },
|
118
|
-
{ "Value": { "MasterSlide": { "Uri": { "Href": "masterSlides/2" } } }, "InvalidValue": null, "Type": "LayoutSlide", "Parameter": "SlideDTO" },
|
159
|
+
{ "Value": { "MasterSlide": { "Href": "masterSlides/2" } }, "InvalidValue": null, "Type": "LayoutSlide", "Parameter": "SlideDTO" },
|
119
160
|
{ "Value": { "LayoutSlide": { "Uri": { "Href": "TitleOnly" } } }, "InvalidValue": null, "Type": "Slide", "Parameter": "SlideDTO", "Method": "PutSlidesSlide" },
|
120
161
|
{ "Value": { "List": [] }, "InvalidValue": null, "Type": "DocumentProperties", "Parameter": "Properties" },
|
121
162
|
{
|
@@ -124,6 +165,7 @@
|
|
124
165
|
"Type": "DocumentProperty",
|
125
166
|
"Parameter": "Property"
|
126
167
|
},
|
168
|
+
{ "Value": {}, "InvalidValue": null, "Type": "Sections", "Parameter": "Sections", "Method": "PutSections" },
|
127
169
|
{ "Value": "pdf", "Parameter": "Format" },
|
128
170
|
{ "InvalidValue": "svg", "Parameter": "Format", "Language": "NET" },
|
129
171
|
{ "InvalidValue": "gif", "Parameter": "Format", "Method": "GetNotesSlideWithFormat", "Language": "NET" },
|
@@ -134,11 +176,13 @@
|
|
134
176
|
{ "Value": "png", "Parameter": "Format", "Method": "GetShapeWithFormat" },
|
135
177
|
{ "Value": "png", "Parameter": "Format", "Method": "PostShapeSaveAs" },
|
136
178
|
{ "Value": "png", "Parameter": "Format", "Method": "PutShapeSaveAs" },
|
179
|
+
{ "Value": "png", "Parameter": "Format", "Method": "PostSubshapeSaveAs" },
|
180
|
+
{ "Value": "png", "Parameter": "Format", "Method": "PutSubshapeSaveAs" },
|
137
181
|
{ "Value": "png", "Parameter": "Format", "Method": "GetNotesSlideShapeWithFormat" },
|
138
182
|
{ "Value": "png", "Parameter": "Format", "Method": "PostNotesSlideShapeSaveAs" },
|
139
183
|
{ "Value": "png", "Parameter": "Format", "Method": "PutNotesSlideShapeSaveAs" },
|
140
184
|
{ "Value": "png", "Parameter": "Format", "Method": "GetSlidesImageWithFormat" },
|
141
|
-
{ "Value": null, "InvalidValue": "
|
185
|
+
{ "Value": null, "InvalidValue": "Shape", "Parameter": "Bounds" },
|
142
186
|
{ "Value": "OnScreen", "InvalidValue": "Ledger", "Parameter": "SizeType" },
|
143
187
|
{ "Value": "DoNotScale", "InvalidValue": "Maximize", "Parameter": "ScaleType" },
|
144
188
|
{ "Value": null, "InvalidValue": null, "Parameter": "Options" },
|
@@ -151,6 +195,7 @@
|
|
151
195
|
{ "Value": null, "InvalidValue": false, "Parameter": "WithEmpty" },
|
152
196
|
{ "Value": null, "InvalidValue": false, "Parameter": "ApplyToAll" },
|
153
197
|
{ "Value": null, "InvalidValue": false, "Parameter": "IsImageDataEmbedded" },
|
198
|
+
{ "Value": null, "InvalidValue": false, "Parameter": "WithSlides" },
|
154
199
|
{ "Value": null, "InvalidValue": 593, "Parameter": "JpegQuality" },
|
155
200
|
{ "Value": null, "InvalidValue": 593.5, "Parameter": "ScaleX" },
|
156
201
|
{ "Value": null, "InvalidValue": 593.5, "Parameter": "ScaleY" },
|
@@ -198,11 +243,17 @@
|
|
198
243
|
{ "Parameter": "Format", "Language": "Java", "Method": "PostSlidesSplit" },
|
199
244
|
{ "Parameter": "Dto", "Method": "PostAddNotesSlide" },
|
200
245
|
{ "Parameter": "Dto", "Language": "Swift" },
|
246
|
+
{ "Parameter": "SlideDto", "Language": "Swift" },
|
201
247
|
{ "Parameter": "Request", "Language": "Swift" },
|
202
248
|
{ "Parameter": "Effect", "Language": "Swift" },
|
203
249
|
{ "Parameter": "Sequence", "Language": "Swift" },
|
204
250
|
{ "Parameter": "Pipeline", "Language": "Swift" },
|
205
251
|
{ "Parameter": "Properties", "Language": "Swift" },
|
252
|
+
{ "Parameter": "Property", "Language": "Swift" },
|
253
|
+
{ "Parameter": "Animation", "Language": "Swift" },
|
254
|
+
{ "Parameter": "Category", "Language": "Swift" },
|
255
|
+
{ "Parameter": "Series", "Language": "Swift" },
|
256
|
+
{ "Parameter": "Sections", "Language": "Swift" },
|
206
257
|
{ "Parameter": "Position", "Method": "PostSlidesReorderPosition" },
|
207
258
|
{ "Parameter": "Name", "Method": "PostSlidesDocument" },
|
208
259
|
{ "Parameter": "Name", "Method": "PostSlidesDocumentFromHtml" },
|
@@ -223,6 +274,8 @@
|
|
223
274
|
{ "Parameter": "Password", "Method": "PutNewPresentation" },
|
224
275
|
{ "Parameter": "Data", "Method": "PostSlidesDocument" },
|
225
276
|
{ "Parameter": "Files" },
|
277
|
+
{ "Parameter": "WithSlides" },
|
278
|
+
{ "Parameter": "SectionName" },
|
226
279
|
{ "Method": "GetDiscUsage" },
|
227
280
|
{ "Method": "GetFilesList" },
|
228
281
|
{ "Method": "GetFileVersions" },
|
@@ -253,12 +306,19 @@
|
|
253
306
|
{ "Code": 201, "Method": "PostAddNewParagraph" },
|
254
307
|
{ "Code": 201, "Method": "PostAddNewPortion" },
|
255
308
|
{ "Code": 201, "Method": "PostAddNewShape" },
|
309
|
+
{ "Code": 201, "Method": "PostAddNewSubshapeParagraph" },
|
310
|
+
{ "Code": 201, "Method": "PostAddNewSubshapePortion" },
|
311
|
+
{ "Code": 201, "Method": "PostAddNewSubshape" },
|
312
|
+
{ "Code": 201, "Method": "PostChartSeries" },
|
313
|
+
{ "Code": 201, "Method": "PostChartCategory" },
|
314
|
+
{ "Code": 201, "Method": "PostChartDataPoint" },
|
256
315
|
{ "Code": 201, "Method": "PostNotesSlideAddNewParagraph" },
|
257
316
|
{ "Code": 201, "Method": "PostNotesSlideAddNewPortion" },
|
258
317
|
{ "Code": 201, "Method": "PostNotesSlideAddNewShape" },
|
259
318
|
{ "Code": 201, "Method": "PostSlideAnimationEffect" },
|
260
319
|
{ "Code": 201, "Method": "PostSlideAnimationInteractiveSequence" },
|
261
320
|
{ "Code": 201, "Method": "PostSlideAnimationInteractiveSequenceEffect" },
|
321
|
+
{ "Code": 201, "Method": "PostSection" },
|
262
322
|
{ "Code": 400, "Invalid": true },
|
263
323
|
{ "Code": 404, "Message" : "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "Name" },
|
264
324
|
{ "Code": 404, "Message" : "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "Folder" },
|
@@ -277,9 +337,9 @@
|
|
277
337
|
{ "Message": "Invalid password.", "Parameter": "SourcePassword" },
|
278
338
|
{ "Message": "Invalid password.", "Parameter": "TemplatePassword" },
|
279
339
|
{ "Message": "Invalid password.", "Parameter": "InputPassword" },
|
280
|
-
{ "Message": "
|
281
|
-
{ "Message": "
|
282
|
-
{ "Message": "
|
340
|
+
{ "Message": "Failed to load the presentation", "Parameter": "Password", "Method": "DeleteSlidesCleanSlidesList" },
|
341
|
+
{ "Message": "Failed to load the presentation", "Parameter": "Password", "Method": "PostSlidesAdd" },
|
342
|
+
{ "Message": "Failed to load the presentation", "Parameter": "Password", "Method": "PutSlidesSlide" },
|
283
343
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "SlideIndex" },
|
284
344
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "Slides" },
|
285
345
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "ShapeIndex" },
|
@@ -290,6 +350,10 @@
|
|
290
350
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "Portions" },
|
291
351
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "EffectIndex" },
|
292
352
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "SequenceIndex" },
|
353
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "SeriesIndex" },
|
354
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "CategoryIndex" },
|
355
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "PointIndex" },
|
356
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "SectionIndex" },
|
293
357
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "Position" },
|
294
358
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "CloneFromPosition" },
|
295
359
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "OldPosition" },
|
@@ -298,10 +362,12 @@
|
|
298
362
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "NewPositions" },
|
299
363
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "SlideToCopy" },
|
300
364
|
{ "Message": "Placeholder with index %v doesn't exist.", "Parameter": "PlaceholderIndex" },
|
301
|
-
{ "Message": "
|
302
|
-
{ "Message": "
|
365
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "Index" },
|
366
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "ShapeToClone" },
|
303
367
|
{ "Message": "Index was out of range.", "Parameter": "ShapeToCopy" },
|
304
|
-
{ "Message": "Invalid
|
368
|
+
{ "Message": "Invalid Request", "Parameter": "VersionId" },
|
369
|
+
{ "Message": "Invalid version id specified", "Parameter": "VersionId", "Method": "DeleteFile" },
|
370
|
+
{ "Message": "Invalid version id specified", "Parameter": "VersionId", "Method": "DownloadFile" },
|
305
371
|
{ "Message": "AmazonS3 Storage exception", "Parameter": "VersionId", "Method": "ObjectExists" },
|
306
372
|
{ "Message": "The HTTP resource that matches the request URI", "Parameter": "Path" },
|
307
373
|
{ "Message": "Specified cast is not valid", "Parameter": "Path", "Method": "GetSlideShapes" },
|
@@ -312,36 +378,65 @@
|
|
312
378
|
{ "Code": 404, "Message": "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "SrcPath" },
|
313
379
|
{ "Code": 404, "Message": "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "SourcePath" },
|
314
380
|
{ "Code": 404, "Message": "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "TemplatePath" },
|
315
|
-
{ "Message": "
|
316
|
-
{ "Message": "
|
317
|
-
{ "Message": "
|
318
|
-
{ "Message": "
|
319
|
-
{ "Message": "
|
320
|
-
{ "Message": "
|
381
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "From" },
|
382
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "To" },
|
383
|
+
{ "Message": " is not supported", "Parameter": "Format" },
|
384
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "GetSlidesImageWithFormat", "Language": "NodeJS" },
|
385
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "GetSlidesImageWithFormat", "Language": "Go" },
|
386
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "GetSlidesImageWithFormat", "Language": "Python" },
|
387
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "GetSlidesImageWithFormat", "Language": "Perl" },
|
388
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "GetSlidesImageWithFormat", "Language": "Swift" },
|
389
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "GetSlidesImageWithFormat", "Language": "CPP" },
|
390
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostShapeSaveAs", "Language": "NodeJS" },
|
391
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostSubshapeSaveAs", "Language": "NodeJS" },
|
392
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutShapeSaveAs", "Language": "NodeJS" },
|
393
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutSubshapeSaveAs", "Language": "NodeJS" },
|
394
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostShapeSaveAs", "Language": "Python" },
|
395
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostSubshapeSaveAs", "Language": "Python" },
|
396
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutShapeSaveAs", "Language": "Python" },
|
397
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutSubshapeSaveAs", "Language": "Python" },
|
398
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostShapeSaveAs", "Language": "Go" },
|
399
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostSubshapeSaveAs", "Language": "Go" },
|
400
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutShapeSaveAs", "Language": "Go" },
|
401
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutSubshapeSaveAs", "Language": "Go" },
|
402
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostShapeSaveAs", "Language": "Perl" },
|
403
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostSubshapeSaveAs", "Language": "Perl" },
|
404
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutShapeSaveAs", "Language": "Perl" },
|
405
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutSubshapeSaveAs", "Language": "Perl" },
|
406
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostShapeSaveAs", "Language": "Swift" },
|
407
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostSubshapeSaveAs", "Language": "Swift" },
|
408
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutShapeSaveAs", "Language": "Swift" },
|
409
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutSubshapeSaveAs", "Language": "Swift" },
|
410
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostShapeSaveAs", "Language": "CPP" },
|
411
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostSubshapeSaveAs", "Language": "CPP" },
|
412
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutShapeSaveAs", "Language": "CPP" },
|
413
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutSubshapeSaveAs", "Language": "CPP" },
|
321
414
|
{ "Message": "Color must be in format #FF000000", "Parameter": "Color" },
|
322
415
|
{ "Code": 404, "Message": "Property %v does not exist.", "Parameter": "PropertyName" },
|
323
|
-
{ "Message": "
|
416
|
+
{ "Message": "Error parsing XML template data", "Parameter": "Data" },
|
324
417
|
{ "Message": "Can't read MSCDFileSystem.", "Parameter": "Data", "Language": "Python", "Method": "PostSlidesDocument" },
|
325
|
-
{ "Message": "
|
326
|
-
{ "Message": "
|
327
|
-
{ "Message": "
|
328
|
-
{ "Message": "
|
329
|
-
{ "Message": "
|
330
|
-
{ "Message": "
|
331
|
-
{ "Message": "
|
332
|
-
{ "Message": "
|
333
|
-
{ "Message": "
|
334
|
-
{ "Message": "
|
335
|
-
{ "Message": "
|
336
|
-
{ "Message": "
|
337
|
-
{ "Message": "
|
338
|
-
{ "Message": "
|
339
|
-
{ "Message": "
|
340
|
-
{ "Message": "
|
418
|
+
{ "Message": " required parameter", "Parameter": "DTO" },
|
419
|
+
{ "Message": "DTO expected", "Parameter": "DTO", "Method": "PostAddNewShape" },
|
420
|
+
{ "Message": "DTO expected", "Parameter": "DTO", "Method": "PostAddNewSubshape" },
|
421
|
+
{ "Message": " required parameter", "Parameter": "SlideDTO" },
|
422
|
+
{ "Message": " required parameter", "Parameter": "Background" },
|
423
|
+
{ "Message": " required parameter", "Parameter": "Pipeline" },
|
424
|
+
{ "Message": " required parameter", "Parameter": "Properties" },
|
425
|
+
{ "Message": " required parameter", "Parameter": "Property" },
|
426
|
+
{ "Message": " required parameter", "Parameter": "Animation" },
|
427
|
+
{ "Message": " required parameter", "Parameter": "Sequence" },
|
428
|
+
{ "Message": " required parameter", "Parameter": "Series" },
|
429
|
+
{ "Message": " required parameter", "Parameter": "DataPoint" },
|
430
|
+
{ "Message": " required parameter", "Parameter": "Category" },
|
431
|
+
{ "Message": " required parameter", "Parameter": "Effect" },
|
432
|
+
{ "Message": " required parameter", "Parameter": "Request" },
|
433
|
+
{ "Message": " required parameter", "Parameter": "Sections" },
|
434
|
+
{ "Message": " required parameter", "Parameter": "Document" },
|
435
|
+
{ "Message": " required parameter", "Parameter": "File" },
|
436
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "Sections", "Method": "DeleteSections" },
|
341
437
|
{ "Message": "Layout slide DTO must be not null and contain", "Parameter": "SlideDTO", "Language": "Swift" },
|
342
438
|
{ "Message": "Object reference not set to an instance of an object.", "Parameter": "Bounds" },
|
343
439
|
{ "Code": 409, "Message": " is not empty.", "Parameter": "Recursive" },
|
344
|
-
{ "Message": "An error has occurred.", "Code": 500, "Parameter": "Options" }
|
345
|
-
{ "Message": "Required parameter", "Parameter": "File" }
|
440
|
+
{ "Message": "An error has occurred.", "Code": 500, "Parameter": "Options" }
|
346
441
|
]
|
347
442
|
}
|