aspose_slides_cloud 20.8.0 → 21.3.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/Sections.pptx +0 -0
- data/TestData/test-unprotected.pptx +0 -0
- data/TestData/test.pdf +0 -0
- data/TestData/test.pptx +0 -0
- data/lib/aspose_slides_cloud.rb +8 -2
- data/lib/aspose_slides_cloud/api/slides_api.rb +10162 -3258
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +949 -225
- data/lib/aspose_slides_cloud/api_client.rb +24 -22
- data/lib/aspose_slides_cloud/configuration.rb +7 -2
- data/lib/aspose_slides_cloud/models/audio_frame.rb +1 -3
- data/lib/aspose_slides_cloud/models/chart.rb +3 -5
- data/lib/aspose_slides_cloud/models/chart_category.rb +19 -9
- data/lib/aspose_slides_cloud/models/connector.rb +1 -2
- data/lib/aspose_slides_cloud/models/{resource_uri_element.rb → data_point.rb} +4 -14
- data/lib/aspose_slides_cloud/models/document.rb +6 -6
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +18 -19
- data/lib/aspose_slides_cloud/models/graphical_object.rb +2 -4
- data/lib/aspose_slides_cloud/models/group_shape.rb +2 -4
- data/lib/aspose_slides_cloud/models/header_footer.rb +247 -0
- data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +2 -12
- data/lib/aspose_slides_cloud/models/layout_slide.rb +2 -2
- data/lib/aspose_slides_cloud/models/layout_slides.rb +1 -1
- data/lib/aspose_slides_cloud/models/line_format.rb +23 -1
- data/lib/aspose_slides_cloud/models/master_slide.rb +2 -2
- data/lib/aspose_slides_cloud/models/master_slides.rb +1 -1
- data/lib/aspose_slides_cloud/models/notes_slide.rb +1 -1
- data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +267 -0
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +1 -3
- data/lib/aspose_slides_cloud/models/paragraphs.rb +1 -1
- data/lib/aspose_slides_cloud/models/picture_fill.rb +1 -1
- data/lib/aspose_slides_cloud/models/picture_frame.rb +1 -3
- data/lib/aspose_slides_cloud/models/placeholder.rb +1 -1
- data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +46 -2
- data/lib/aspose_slides_cloud/models/protection_properties.rb +217 -0
- 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 +2 -2
- data/lib/aspose_slides_cloud/models/shape.rb +2 -3
- data/lib/aspose_slides_cloud/models/shape_base.rb +3 -24
- data/lib/aspose_slides_cloud/models/shapes.rb +1 -1
- data/lib/aspose_slides_cloud/models/slide.rb +8 -8
- data/lib/aspose_slides_cloud/models/slide_properties.rb +315 -0
- data/lib/aspose_slides_cloud/models/slides.rb +1 -1
- data/lib/aspose_slides_cloud/models/smart_art.rb +1 -3
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +1 -1
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +2 -3
- data/lib/aspose_slides_cloud/models/table.rb +1 -3
- data/lib/aspose_slides_cloud/models/theme.rb +3 -3
- data/lib/aspose_slides_cloud/models/video_frame.rb +1 -3
- data/lib/aspose_slides_cloud/models/waterfall_chart_data_point.rb +206 -0
- data/lib/aspose_slides_cloud/type_registry.rb +24 -12
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +25848 -18001
- data/spec/extra/extra_spec.rb +73 -107
- data/spec/spec_utils.rb +21 -24
- data/testConfig.json +2 -2
- data/testRules.json +160 -103
- metadata +14 -3
data/spec/extra/extra_spec.rb
CHANGED
@@ -25,45 +25,37 @@ require 'spec_helper'
|
|
25
25
|
describe 'SlidesApiExtra' do
|
26
26
|
describe 'specific cases' do
|
27
27
|
it 'multipart request' do
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
o, c, _h = AsposeSlidesCloud::SpecUtils.api.post_slides_pipeline_with_http_info(requestParam)
|
28
|
+
pipeline = AsposeSlidesCloud::Pipeline.new
|
29
|
+
pipeline.input = AsposeSlidesCloud::Input.new
|
30
|
+
pipeline.input.template_data = AsposeSlidesCloud::RequestInputFile.new
|
31
|
+
pipeline.input.template_data.type = "Request"
|
32
|
+
pipeline.input.template_data.index = 0
|
33
|
+
pipeline.input.template = AsposeSlidesCloud::RequestInputFile.new
|
34
|
+
pipeline.input.template.type = "Request"
|
35
|
+
pipeline.input.template.index = 1
|
36
|
+
pipeline.tasks = []
|
37
|
+
pipeline.tasks.push(AsposeSlidesCloud::Save.new)
|
38
|
+
pipeline.tasks[0].type = "Save"
|
39
|
+
pipeline.tasks[0].format = "pptx"
|
40
|
+
pipeline.tasks[0].output = AsposeSlidesCloud::OutputFile.new
|
41
|
+
pipeline.tasks[0].output.type = "Response"
|
42
|
+
files = []
|
43
|
+
files.push(File.binread(File.join(AsposeSlidesCloud::SpecUtils::TEST_DATA_PATH, "TemplatingCVDataWithBase64.xml")))
|
44
|
+
files.push(File.binread(File.join(AsposeSlidesCloud::SpecUtils::TEST_DATA_PATH, "TemplateCV.pptx")))
|
45
|
+
o, c, _h = AsposeSlidesCloud::SpecUtils.api.pipeline_with_http_info(pipeline, files)
|
47
46
|
expect(c).to eq(200)
|
48
47
|
expect(o).not_to be(nil)
|
49
48
|
end
|
50
49
|
|
51
50
|
it 'base shape' do
|
52
51
|
AsposeSlidesCloud::SpecUtils.initialize('GetSlideShape', nil, nil)
|
53
|
-
|
54
|
-
requestParam.name = "test.ppt"
|
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)
|
52
|
+
o = AsposeSlidesCloud::SpecUtils.api.get_shape("test.pptx", 1, 1, "password", "TempSlidesSDK")
|
60
53
|
expect(o.text).to eq("1")
|
61
54
|
end
|
62
55
|
|
63
56
|
it 'chart' do
|
64
57
|
chart = AsposeSlidesCloud::Chart.new
|
65
58
|
expect(chart.type).to eq("Chart")
|
66
|
-
expect(chart.shape_type).to eq("Chart")
|
67
59
|
end
|
68
60
|
|
69
61
|
it 'timeout' do
|
@@ -74,19 +66,13 @@ describe 'SlidesApiExtra' do
|
|
74
66
|
#configuration = AsposeSlidesCloud::Configuration.new
|
75
67
|
#configuration.base_url = config["BaseUrl"]
|
76
68
|
#configuration.auth_base_url = config["AuthBaseUrl"] ? config["AuthBaseUrl"] : config["BaseUrl"]
|
77
|
-
#configuration.app_sid = config["
|
78
|
-
#configuration.app_key = config["
|
69
|
+
#configuration.app_sid = config["ClientId"]
|
70
|
+
#configuration.app_key = config["ClientSecret"]
|
79
71
|
#configuration.debugging = config["Debug"]
|
80
72
|
#configuration.timeout = 1
|
81
73
|
#api = AsposeSlidesCloud::SlidesApi.new(configuration)
|
82
74
|
|
83
|
-
#
|
84
|
-
#requestParam.name = "test.ppt"
|
85
|
-
#requestParam.slide_index = 1
|
86
|
-
#requestParam.password = "password"
|
87
|
-
#requestParam.folder = "TempSlidesSDK"
|
88
|
-
#requestParam.format = "svg"
|
89
|
-
#api.post_slide_save_as(requestParam)
|
75
|
+
#api.download_slide("test.pptx", 1, "svg", "password", "TempSlidesSDK")
|
90
76
|
end
|
91
77
|
|
92
78
|
it 'nullable properties' do
|
@@ -98,72 +84,52 @@ describe 'SlidesApiExtra' do
|
|
98
84
|
max1 = 104.3
|
99
85
|
max2 = 87
|
100
86
|
AsposeSlidesCloud::SpecUtils.initialize("no_method", "no_property", nil)
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
postRequest.dto.axes.horizontal_axis = AsposeSlidesCloud::Axis.new
|
130
|
-
postRequest.dto.axes.horizontal_axis.is_automatic_min_value = false
|
131
|
-
postRequest.dto.axes.horizontal_axis.min_value = min1
|
132
|
-
postRequest.dto.axes.horizontal_axis.is_automatic_max_value = false
|
133
|
-
postRequest.dto.axes.horizontal_axis.max_value = max1
|
134
|
-
AsposeSlidesCloud::SpecUtils.api.post_add_new_shape(postRequest)
|
135
|
-
|
136
|
-
getRequest = AsposeSlidesCloud::GetSlideShapeRequest.new
|
137
|
-
getRequest.name = fileName
|
138
|
-
getRequest.folder = folderName
|
139
|
-
getRequest.password = password
|
140
|
-
getRequest.slide_index = 1
|
141
|
-
getRequest.shape_index = 4
|
142
|
-
result = AsposeSlidesCloud::SpecUtils.api.get_slide_shape(getRequest)
|
87
|
+
AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + fileName, folderName + "/" + fileName)
|
88
|
+
|
89
|
+
dto = AsposeSlidesCloud::Chart.new
|
90
|
+
dto.chart_type = "Line"
|
91
|
+
dto.width = 400.0
|
92
|
+
dto.height = 300.0
|
93
|
+
dto.title = AsposeSlidesCloud::ChartTitle.new
|
94
|
+
dto.title.has_title = true
|
95
|
+
dto.title.text = "MyTitle"
|
96
|
+
dto.series = []
|
97
|
+
dto.series.push(AsposeSlidesCloud::OneValueSeries.new)
|
98
|
+
dto.series[0].type = "ClusteredColumn"
|
99
|
+
dto.series[0].data_point_type = "OneValue"
|
100
|
+
dto.series[0].name = "Series1"
|
101
|
+
dto.series[0].data_points = []
|
102
|
+
dto.series[0].data_points.push(AsposeSlidesCloud::OneValueChartDataPoint.new)
|
103
|
+
dto.series[0].data_points[0].value = 40.0
|
104
|
+
dto.series[0].data_points.push(AsposeSlidesCloud::OneValueChartDataPoint.new)
|
105
|
+
dto.series[0].data_points[1].value = 50.0
|
106
|
+
dto.axes = AsposeSlidesCloud::Axes.new
|
107
|
+
dto.axes.horizontal_axis = AsposeSlidesCloud::Axis.new
|
108
|
+
dto.axes.horizontal_axis.is_automatic_min_value = false
|
109
|
+
dto.axes.horizontal_axis.min_value = min1
|
110
|
+
dto.axes.horizontal_axis.is_automatic_max_value = false
|
111
|
+
dto.axes.horizontal_axis.max_value = max1
|
112
|
+
AsposeSlidesCloud::SpecUtils.api.create_shape(fileName, 1, dto, nil, nil, password, folderName)
|
113
|
+
|
114
|
+
result = AsposeSlidesCloud::SpecUtils.api.get_shape(fileName, 1, 4, password, folderName)
|
143
115
|
expect(result.axes.horizontal_axis.min_value).to eq(min1)
|
144
116
|
expect(result.axes.horizontal_axis.max_value).to eq(max1)
|
145
117
|
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
putRequest.dto.axes = AsposeSlidesCloud::Axes.new
|
154
|
-
putRequest.dto.axes.horizontal_axis = AsposeSlidesCloud::Axis.new
|
155
|
-
putRequest.dto.axes.horizontal_axis.min_value = min2
|
156
|
-
AsposeSlidesCloud::SpecUtils.api.put_slide_shape_info(putRequest)
|
157
|
-
|
158
|
-
result = AsposeSlidesCloud::SpecUtils.api.get_slide_shape(getRequest)
|
118
|
+
dto = AsposeSlidesCloud::Chart.new
|
119
|
+
dto.axes = AsposeSlidesCloud::Axes.new
|
120
|
+
dto.axes.horizontal_axis = AsposeSlidesCloud::Axis.new
|
121
|
+
dto.axes.horizontal_axis.min_value = min2
|
122
|
+
AsposeSlidesCloud::SpecUtils.api.update_shape(fileName, 1, 4, dto, password, folderName)
|
123
|
+
|
124
|
+
result = AsposeSlidesCloud::SpecUtils.api.get_shape(fileName, 1, 4, password, folderName)
|
159
125
|
expect(result.axes.horizontal_axis.min_value).to eq(min2)
|
160
126
|
expect(result.axes.horizontal_axis.max_value).to eq(max1)
|
161
127
|
|
162
|
-
|
163
|
-
|
164
|
-
AsposeSlidesCloud::SpecUtils.api.
|
128
|
+
dto.axes.horizontal_axis = AsposeSlidesCloud::Axis.new
|
129
|
+
dto.axes.horizontal_axis.max_value = max2
|
130
|
+
AsposeSlidesCloud::SpecUtils.api.update_shape(fileName, 1, 4, dto, password, folderName)
|
165
131
|
|
166
|
-
result = AsposeSlidesCloud::SpecUtils.api.
|
132
|
+
result = AsposeSlidesCloud::SpecUtils.api.get_shape(fileName, 1, 4, password, folderName)
|
167
133
|
expect(result.axes.horizontal_axis.min_value).to eq(min2)
|
168
134
|
expect(result.axes.horizontal_axis.max_value).to eq(max2)
|
169
135
|
end
|
@@ -175,11 +141,11 @@ describe 'SlidesApiExtra' do
|
|
175
141
|
configuration = AsposeSlidesCloud::Configuration.new
|
176
142
|
configuration.base_url = config["BaseUrl"]
|
177
143
|
configuration.auth_base_url = config["AuthBaseUrl"] ? config["AuthBaseUrl"] : config["BaseUrl"]
|
178
|
-
configuration.app_sid = config["
|
179
|
-
configuration.app_key = config["
|
144
|
+
configuration.app_sid = config["ClientId"]
|
145
|
+
configuration.app_key = config["ClientSecret"]
|
180
146
|
configuration.debugging = config["Debug"]
|
181
147
|
api = AsposeSlidesCloud::SlidesApi.new(configuration)
|
182
|
-
o, c, _h = api.
|
148
|
+
o, c, _h = api.get_api_info_with_http_info
|
183
149
|
expect(c).to eq(200)
|
184
150
|
expect(o).not_to be(nil)
|
185
151
|
end
|
@@ -190,11 +156,11 @@ describe 'SlidesApiExtra' do
|
|
190
156
|
configuration.base_url = config["BaseUrl"]
|
191
157
|
configuration.auth_base_url = config["AuthBaseUrl"] ? config["AuthBaseUrl"] : config["BaseUrl"]
|
192
158
|
configuration.app_sid = "invalid"
|
193
|
-
configuration.app_key = config["
|
159
|
+
configuration.app_key = config["ClientSecret"]
|
194
160
|
configuration.debugging = config["Debug"]
|
195
161
|
api = AsposeSlidesCloud::SlidesApi.new(configuration)
|
196
162
|
begin
|
197
|
-
o, c, _h = api.
|
163
|
+
o, c, _h = api.get_api_info_with_http_info
|
198
164
|
fail "An exception expected"
|
199
165
|
rescue AsposeSlidesCloud::ApiError => e
|
200
166
|
expect(e.code).to eq(401)
|
@@ -207,14 +173,14 @@ describe 'SlidesApiExtra' do
|
|
207
173
|
configuration = AsposeSlidesCloud::Configuration.new
|
208
174
|
configuration.base_url = config["BaseUrl"]
|
209
175
|
configuration.auth_base_url = config["AuthBaseUrl"] ? config["AuthBaseUrl"] : config["BaseUrl"]
|
210
|
-
configuration.app_sid = config["
|
211
|
-
configuration.app_key = config["
|
176
|
+
configuration.app_sid = config["ClientId"]
|
177
|
+
configuration.app_key = config["ClientSecret"]
|
212
178
|
configuration.debugging = config["Debug"]
|
213
179
|
api = AsposeSlidesCloud::SlidesApi.new(configuration)
|
214
|
-
api.
|
180
|
+
api.get_api_info_with_http_info
|
215
181
|
configuration.app_sid = "invalid"
|
216
182
|
api = AsposeSlidesCloud::SlidesApi.new(configuration)
|
217
|
-
o, c, _h = api.
|
183
|
+
o, c, _h = api.get_api_info_with_http_info
|
218
184
|
expect(c).to eq(200)
|
219
185
|
expect(o).not_to be(nil)
|
220
186
|
end
|
@@ -224,12 +190,12 @@ describe 'SlidesApiExtra' do
|
|
224
190
|
configuration = AsposeSlidesCloud::Configuration.new
|
225
191
|
configuration.base_url = config["BaseUrl"]
|
226
192
|
configuration.auth_base_url = config["AuthBaseUrl"] ? config["AuthBaseUrl"] : config["BaseUrl"]
|
227
|
-
configuration.app_sid = config["
|
228
|
-
configuration.app_key = config["
|
193
|
+
configuration.app_sid = config["ClientId"]
|
194
|
+
configuration.app_key = config["ClientSecret"]
|
229
195
|
configuration.access_token = "expired.token"
|
230
196
|
configuration.debugging = config["Debug"]
|
231
197
|
api = AsposeSlidesCloud::SlidesApi.new(configuration)
|
232
|
-
o, c, _h = api.
|
198
|
+
o, c, _h = api.get_api_info_with_http_info
|
233
199
|
expect(c).to eq(200)
|
234
200
|
expect(o).not_to be(nil)
|
235
201
|
end
|
data/spec/spec_utils.rb
CHANGED
@@ -24,11 +24,9 @@ module AsposeSlidesCloud
|
|
24
24
|
class SpecUtils
|
25
25
|
def self.initialize(method, name, value)
|
26
26
|
if !@@is_initialized
|
27
|
-
download_request = AsposeSlidesCloud::DownloadFileRequest.new
|
28
|
-
download_request.path = "TempTests/version.txt"
|
29
27
|
version = ""
|
30
28
|
begin
|
31
|
-
version = SpecUtils.api.download_file(
|
29
|
+
version = SpecUtils.api.download_file("TempTests/version.txt")
|
32
30
|
rescue AsposeSlidesCloud::ApiError => e
|
33
31
|
if e.code != 404
|
34
32
|
fail "Could not read from storage"
|
@@ -38,16 +36,10 @@ module AsposeSlidesCloud
|
|
38
36
|
Dir.entries(TEST_DATA_PATH).each { |f|
|
39
37
|
if !File.directory? File.join(TEST_DATA_PATH, f)
|
40
38
|
fd = File.binread(File.join(TEST_DATA_PATH, f))
|
41
|
-
|
42
|
-
upload_request.file = fd
|
43
|
-
upload_request.path = "TempTests/" + f
|
44
|
-
SpecUtils.api.upload_file(upload_request)
|
39
|
+
SpecUtils.api.upload_file("TempTests/" + f, fd)
|
45
40
|
end
|
46
41
|
}
|
47
|
-
|
48
|
-
upload_request.file = EXPECTED_TEST_DATA_VERSION
|
49
|
-
upload_request.path = "TempTests/version.txt"
|
50
|
-
SpecUtils.api.upload_file(upload_request)
|
42
|
+
SpecUtils.api.upload_file("TempTests/version.txt", EXPECTED_TEST_DATA_VERSION)
|
51
43
|
end
|
52
44
|
@@is_initialized = true
|
53
45
|
end
|
@@ -66,21 +58,26 @@ module AsposeSlidesCloud
|
|
66
58
|
end
|
67
59
|
files.each do |path, rule|
|
68
60
|
if rule["Action"] == "Put"
|
69
|
-
|
70
|
-
copy_request.src_path = "TempTests/" + rule['ActualName']
|
71
|
-
copy_request.dest_path = path
|
72
|
-
SpecUtils.api.copy_file(copy_request)
|
61
|
+
SpecUtils.api.copy_file("TempTests/" + rule['ActualName'], path)
|
73
62
|
elsif rule["Action"] == "Delete"
|
74
|
-
|
75
|
-
delete_request.path = path
|
76
|
-
SpecUtils.api.delete_file(delete_request)
|
63
|
+
SpecUtils.api.delete_file(path)
|
77
64
|
end
|
78
65
|
end
|
79
66
|
end
|
80
67
|
|
81
68
|
def self.get_param_value(name, method, type)
|
82
69
|
if type == 'File'
|
83
|
-
|
70
|
+
fileName = "test.pptx"
|
71
|
+
if method.casecmp("PostSlidesDocumentFromPdf") == 0
|
72
|
+
fileName = "test.pdf"
|
73
|
+
end
|
74
|
+
return File.binread(File.join(TEST_DATA_PATH, fileName))
|
75
|
+
end
|
76
|
+
if type == 'File[]'
|
77
|
+
files = []
|
78
|
+
files.push(File.binread(File.join(AsposeSlidesCloud::SpecUtils::TEST_DATA_PATH, "test.pptx")))
|
79
|
+
files.push(File.binread(File.join(AsposeSlidesCloud::SpecUtils::TEST_DATA_PATH, "test-unprotected.pptx")))
|
80
|
+
return files
|
84
81
|
end
|
85
82
|
value = "test" + name
|
86
83
|
SpecUtils.test_rules["Values"].each do |rule|
|
@@ -130,8 +127,8 @@ module AsposeSlidesCloud
|
|
130
127
|
def self.good_rule?(rule, name, method)
|
131
128
|
(not rule.key?("Language") or rule["Language"].casecmp("Ruby") == 0) \
|
132
129
|
and (not rule.key?("Invalid") or ((name != nil) == rule["Invalid"])) \
|
133
|
-
and (not rule.key?("Parameter") or rule["Parameter"].casecmp(name) == 0) \
|
134
|
-
and (not rule.key?("Method") or rule["Method"].casecmp(method) == 0)
|
130
|
+
and (not rule.key?("Parameter") or (name != nil and rule["Parameter"].casecmp(name) == 0)) \
|
131
|
+
and (not rule.key?("Method") or (method != nil and rule["Method"].casecmp(method) == 0))
|
135
132
|
end
|
136
133
|
|
137
134
|
def self.untemplatize(template, value)
|
@@ -139,7 +136,7 @@ module AsposeSlidesCloud
|
|
139
136
|
value
|
140
137
|
else
|
141
138
|
result = template
|
142
|
-
if template.is_a? String and template.match
|
139
|
+
if template.is_a? String and template.match("%v")
|
143
140
|
result = "" + template
|
144
141
|
if value != nil
|
145
142
|
result["%v"] = value.to_s
|
@@ -166,8 +163,8 @@ module AsposeSlidesCloud
|
|
166
163
|
configuration = AsposeSlidesCloud::Configuration.new
|
167
164
|
configuration.base_url = config["BaseUrl"]
|
168
165
|
configuration.auth_base_url = config["AuthBaseUrl"] ? config["AuthBaseUrl"] : config["BaseUrl"]
|
169
|
-
configuration.app_sid = config["
|
170
|
-
configuration.app_key = config["
|
166
|
+
configuration.app_sid = config["ClientId"]
|
167
|
+
configuration.app_key = config["ClientSecret"]
|
171
168
|
configuration.debugging = config["Debug"]
|
172
169
|
@@api = AsposeSlidesCloud::SlidesApi.new(configuration)
|
173
170
|
end
|
data/testConfig.json
CHANGED
data/testRules.json
CHANGED
@@ -1,64 +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": "Put", "File": "ChartTest.pptx", "Method": "PostChartCategory" },
|
11
|
-
{ "Action": "Put", "File": "ChartTest.pptx", "Method": "PutChartCategory" },
|
12
|
-
{ "Action": "Put", "File": "ChartTest.pptx", "Method": "DeleteChartCategory" },
|
13
|
-
{ "Action": "Put", "File": "ChartTest.pptx", "Method": "PostChartDataPoint" },
|
14
|
-
{ "Action": "Put", "File": "ChartTest.pptx", "Method": "PutChartDataPoint" },
|
15
|
-
{ "Action": "Put", "File": "ChartTest.pptx", "Method": "DeleteChartDataPoint" },
|
16
|
-
{ "Action": "Put", "File": "test-unprotected.ppt", "Method": "DeleteSlidesCleanSlidesList" },
|
17
|
-
{ "Action": "Put", "File": "test-unprotected.ppt", "Method": "PutSlidesSlide" },
|
18
|
-
{ "Action": "Put", "File": "TemplateCV.pptx", "Method": "PostSlidesDocument" },
|
19
|
-
{ "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" },
|
20
10
|
{ "Action": "Delete", "File": "%v", "Parameter": "Name" },
|
21
|
-
{ "Action": "Delete", "File": "changedtest.
|
22
|
-
{ "Action": "Delete", "File": "invalidchangedtest.
|
23
|
-
{ "Action": "Delete", "Folder": "TempSlidesSDKinvalid", "File": "changedtest.
|
24
|
-
{ "Action": "Delete", "File": "changedtest.
|
25
|
-
{ "Action": "Delete", "File": "invalidchangedtest.
|
26
|
-
{ "Action": "Delete", "Folder": "TempSlidesSDKinvalid", "File": "changedtest.
|
27
|
-
{ "Action": "Delete", "File": "changedtest.
|
28
|
-
{ "Action": "Delete", "File": "invalidchangedtest.
|
29
|
-
{ "Action": "Delete", "Folder": "TempSlidesSDKinvalid", "File": "changedtest.
|
30
|
-
{ "Action": "Delete", "File": "changedtest.
|
31
|
-
{ "Action": "Delete", "File": "invalidchangedtest.
|
32
|
-
{ "Action": "Delete", "Folder": "TempSlidesSDKinvalid", "File": "changedtest.
|
33
|
-
{ "Action": "Delete", "Folder": "invalidTempSlidesSDK", "File": "test.
|
34
|
-
{ "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" }
|
35
25
|
],
|
36
26
|
"Values": [
|
37
27
|
{ "InvalidValue": "%vinvalid" },
|
38
|
-
{ "Value": "test.
|
39
|
-
{ "Value": "test-unprotected.
|
40
|
-
{ "Value": "test-unprotected.
|
41
|
-
{ "Value": "test-unprotected.
|
42
|
-
{ "Value": "
|
43
|
-
{ "Value": "
|
44
|
-
{ "Value": "
|
45
|
-
{ "Value": "ChartTest.pptx", "Parameter": "Name", "Method": "PostChartCategory" },
|
46
|
-
{ "Value": "ChartTest.pptx", "Parameter": "Name", "Method": "PutChartCategory" },
|
47
|
-
{ "Value": "ChartTest.pptx", "Parameter": "Name", "Method": "DeleteChartCategory" },
|
48
|
-
{ "Value": "ChartTest.pptx", "Parameter": "Name", "Method": "PostChartDataPoint" },
|
49
|
-
{ "Value": "ChartTest.pptx", "Parameter": "Name", "Method": "PutChartDataPoint" },
|
50
|
-
{ "Value": "ChartTest.pptx", "Parameter": "Name", "Method": "DeleteChartDataPoint" },
|
51
|
-
{ "Value": "changedtest.ppt", "Parameter": "Name", "Method": "PutNewPresentation" },
|
52
|
-
{ "Value": "changedtest.ppt", "Parameter": "Name", "Method": "PostSlidesDocumentFromSource" },
|
53
|
-
{ "Value": "changedtest.ppt", "Parameter": "Name", "Method": "PostSlidesDocumentFromTemplate" },
|
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" },
|
54
35
|
{ "Value": "TempSlidesSDK", "Parameter": "Folder" },
|
55
|
-
{ "Value": "TempSlidesSDK/test.
|
56
|
-
{ "Value": "TempSlidesSDK/test.
|
57
|
-
{ "Value": "TempSlidesSDK/changedtest.
|
58
|
-
{ "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" },
|
59
40
|
{ "Value": "TempSlidesSDK/TemplateCV.pptx", "InvalidValue": "invalid%v", "Parameter": "TemplatePath", "Method": "PostSlidesDocument" },
|
60
|
-
{ "Value": "TempSlidesSDK/test.
|
61
|
-
{ "Value": "TempSlidesSDK/test.
|
41
|
+
{ "Value": "TempSlidesSDK/test.pptx", "InvalidValue": "invalid%v", "Parameter": "CloneFrom" },
|
42
|
+
{ "Value": "TempSlidesSDK/test.pptx", "InvalidValue": "invalid%v", "Parameter": "Source" },
|
62
43
|
{ "Value": "TempSlidesSDK/out.pdf", "Parameter": "OutPath" },
|
63
44
|
{ "Value": "password", "Parameter": "Password" },
|
64
45
|
{ "Value": "password", "Parameter": "InputPassword" },
|
@@ -77,21 +58,22 @@
|
|
77
58
|
{ "Value": null, "Parameter": "CloneFromStorage" },
|
78
59
|
{ "Value": null, "Parameter": "SourceStorage" },
|
79
60
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "SlideIndex" },
|
80
|
-
{ "Value":
|
81
|
-
{ "Value": 2, "Parameter": "SlideIndex", "Method": "PutChartDataPoint" },
|
61
|
+
{ "Value": 5, "Parameter": "SlideIndex", "Method": "PostSection" },
|
82
62
|
{ "Value": null, "InvalidValue": [1, 593], "Parameter": "Slides" },
|
83
63
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "SlideToCopy" },
|
84
64
|
{ "Value": null, "InvalidValue": 593, "Parameter": "SlideToClone" },
|
85
|
-
{ "Value":
|
86
|
-
{ "Value":
|
87
|
-
{ "Value":
|
88
|
-
{ "Value":
|
89
|
-
{ "Value":
|
90
|
-
{ "Value":
|
91
|
-
{ "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" },
|
92
75
|
{ "Value": 2, "Parameter": "ShapeIndex", "Method": "PostChartDataPoint" },
|
93
76
|
{ "Value": 2, "Parameter": "ShapeIndex", "Method": "PutChartDataPoint" },
|
94
|
-
{ "Value": 2, "Parameter": "ShapeIndex", "Method": "DeleteChartDataPoint" },
|
95
77
|
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "DeleteSlideSubshape" },
|
96
78
|
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "DeleteSlideSubshapes" },
|
97
79
|
{ "Value": 1, "Parameter": "ShapeIndex", "Method": "DeleteSubshapeParagraph" },
|
@@ -124,21 +106,23 @@
|
|
124
106
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "PlaceholderIndex" },
|
125
107
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "SequenceIndex" },
|
126
108
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "EffectIndex" },
|
109
|
+
{ "Value": 2, "InvalidValue": 593, "Parameter": "SectionIndex" },
|
127
110
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "Index" },
|
128
111
|
{ "Value": 2, "InvalidValue": 593, "Parameter": "NewPosition" },
|
129
112
|
{ "Value": null, "InvalidValue": 593, "Parameter": "OldPosition" },
|
130
113
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "Position" },
|
131
114
|
{ "Value": [2, 1], "InvalidValue": [1, 593], "Parameter": "OldPositions" },
|
132
115
|
{ "Value": [1, 2], "InvalidValue": [1, 593], "Parameter": "NewPositions" },
|
116
|
+
{ "Value": [3, 2], "InvalidValue": [1, 593], "Parameter": "Sections" },
|
133
117
|
{ "Value": 1, "InvalidValue": 593, "Parameter": "CloneFromPosition" },
|
134
118
|
{ "Value": null, "InvalidValue": 593, "Parameter": "From" },
|
135
119
|
{ "Value": null, "InvalidValue": 593, "Parameter": "To" },
|
136
120
|
{ "Value": "4/shapes", "Parameter": "Path" },
|
137
|
-
{ "Value": "TempSlidesSDK/test.
|
138
|
-
{ "Value": "TempSlidesSDK/test.
|
139
|
-
{ "Value": "TempSlidesSDK/test.
|
140
|
-
{ "Value": "TempSlidesSDK/test.
|
141
|
-
{ "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" },
|
142
126
|
{ "Value": "TempSlidesSDK", "Parameter": "Path", "Method": "DeleteFolder" },
|
143
127
|
{ "Value": "testProperty", "Parameter": "PropertyName" },
|
144
128
|
{ "InvalidValue": null, "Parameter": "Stream" },
|
@@ -160,17 +144,22 @@
|
|
160
144
|
{ "Value": { "Text": "testNote" }, "InvalidValue": null, "Type": "NotesSlide", "Parameter": "DTO" },
|
161
145
|
{ "Value": {}, "InvalidValue": null, "Type": "Paragraph", "Parameter": "DTO" },
|
162
146
|
{ "Value": {}, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO" },
|
147
|
+
{ "Value": {}, "InvalidValue": null, "Type": "HeaderFooter", "Parameter": "DTO" },
|
148
|
+
{ "Value": {}, "InvalidValue": null, "Type": "NotesSlideHeaderFooter", "Parameter": "DTO" },
|
163
149
|
{
|
164
150
|
"Value": { "Text": "testShape", "Type": "Shape", "ShapeType": "BentArrow", "GeometryShapeType": "Rectangle" },
|
165
151
|
"InvalidValue": null,
|
166
152
|
"Type": "Shape",
|
167
153
|
"Parameter": "DTO"
|
168
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" },
|
169
158
|
{ "Value": {}, "InvalidValue": null, "Type": "ViewProperties", "Parameter": "DTO", "Method": "PutSlidesViewProperties" },
|
170
159
|
{ "Value": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "PostAddNewPortion" },
|
171
160
|
{ "Value": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "PostAddNewSubshapePortion" },
|
172
161
|
{ "Value": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "PostNotesSlideAddNewPortion" },
|
173
|
-
{ "Value": { "MasterSlide": { "
|
162
|
+
{ "Value": { "MasterSlide": { "Href": "masterSlides/2" } }, "InvalidValue": null, "Type": "LayoutSlide", "Parameter": "SlideDTO" },
|
174
163
|
{ "Value": { "LayoutSlide": { "Uri": { "Href": "TitleOnly" } } }, "InvalidValue": null, "Type": "Slide", "Parameter": "SlideDTO", "Method": "PutSlidesSlide" },
|
175
164
|
{ "Value": { "List": [] }, "InvalidValue": null, "Type": "DocumentProperties", "Parameter": "Properties" },
|
176
165
|
{
|
@@ -179,14 +168,20 @@
|
|
179
168
|
"Type": "DocumentProperty",
|
180
169
|
"Parameter": "Property"
|
181
170
|
},
|
171
|
+
{ "Value": {}, "InvalidValue": null, "Type": "Sections", "Parameter": "Sections", "Method": "PutSections" },
|
182
172
|
{ "Value": "pdf", "Parameter": "Format" },
|
183
173
|
{ "InvalidValue": "svg", "Parameter": "Format", "Language": "NET" },
|
184
174
|
{ "InvalidValue": "gif", "Parameter": "Format", "Method": "GetNotesSlideWithFormat", "Language": "NET" },
|
185
175
|
{ "InvalidValue": "gif", "Parameter": "Format", "Method": "PostGetNotesSlideWithFormat", "Language": "NET" },
|
186
176
|
{ "InvalidValue": "gif", "Parameter": "Format", "Method": "GetSlidesImageWithFormat", "Language": "NET" },
|
177
|
+
{ "InvalidValue": "gif", "Parameter": "Format", "Method": "PostExportImageWithFormat", "Language": "NET" },
|
178
|
+
{ "InvalidValue": "gif", "Parameter": "Format", "Method": "PostExportImagesWithFormat", "Language": "NET" },
|
179
|
+
{ "InvalidValue": "gif", "Parameter": "Format", "Method": "PostExportImagesFromRequestWithFormat", "Language": "NET" },
|
187
180
|
{ "Value": "png", "Parameter": "Format", "Method": "GetNotesSlideWithFormat" },
|
188
181
|
{ "Value": "png", "Parameter": "Format", "Method": "PostGetNotesSlideWithFormat" },
|
189
182
|
{ "Value": "png", "Parameter": "Format", "Method": "GetShapeWithFormat" },
|
183
|
+
{ "Value": "png", "Parameter": "Format", "Method": "PostExportShape" },
|
184
|
+
{ "Value": "png", "Parameter": "Format", "Method": "PutExportShape" },
|
190
185
|
{ "Value": "png", "Parameter": "Format", "Method": "PostShapeSaveAs" },
|
191
186
|
{ "Value": "png", "Parameter": "Format", "Method": "PutShapeSaveAs" },
|
192
187
|
{ "Value": "png", "Parameter": "Format", "Method": "PostSubshapeSaveAs" },
|
@@ -195,7 +190,12 @@
|
|
195
190
|
{ "Value": "png", "Parameter": "Format", "Method": "PostNotesSlideShapeSaveAs" },
|
196
191
|
{ "Value": "png", "Parameter": "Format", "Method": "PutNotesSlideShapeSaveAs" },
|
197
192
|
{ "Value": "png", "Parameter": "Format", "Method": "GetSlidesImageWithFormat" },
|
198
|
-
{ "Value":
|
193
|
+
{ "Value": "png", "Parameter": "Format", "Method": "PostExportImageWithFormat" },
|
194
|
+
{ "Value": "png", "Parameter": "Format", "Method": "PostExportImageWithFormatOnline" },
|
195
|
+
{ "Value": "png", "Parameter": "Format", "Method": "PostExportImagesWithFormat" },
|
196
|
+
{ "Value": "png", "Parameter": "Format", "Method": "PostExportImagesFromRequestWithFormat" },
|
197
|
+
{ "Value": "AlignTop", "InvalidValue": "AlignBottom", "Parameter": "AlignmentType" },
|
198
|
+
{ "Value": null, "InvalidValue": "Shape", "Parameter": "Bounds" },
|
199
199
|
{ "Value": "OnScreen", "InvalidValue": "Ledger", "Parameter": "SizeType" },
|
200
200
|
{ "Value": "DoNotScale", "InvalidValue": "Maximize", "Parameter": "ScaleType" },
|
201
201
|
{ "Value": null, "InvalidValue": null, "Parameter": "Options" },
|
@@ -208,11 +208,13 @@
|
|
208
208
|
{ "Value": null, "InvalidValue": false, "Parameter": "WithEmpty" },
|
209
209
|
{ "Value": null, "InvalidValue": false, "Parameter": "ApplyToAll" },
|
210
210
|
{ "Value": null, "InvalidValue": false, "Parameter": "IsImageDataEmbedded" },
|
211
|
+
{ "Value": null, "InvalidValue": false, "Parameter": "WithSlides" },
|
212
|
+
{ "Value": null, "InvalidValue": false, "Parameter": "AlignToSlide" },
|
211
213
|
{ "Value": null, "InvalidValue": 593, "Parameter": "JpegQuality" },
|
212
214
|
{ "Value": null, "InvalidValue": 593.5, "Parameter": "ScaleX" },
|
213
215
|
{ "Value": null, "InvalidValue": 593.5, "Parameter": "ScaleY" },
|
214
|
-
{ "
|
215
|
-
{ "Value": null, "
|
216
|
+
{ "InvalidValue": null, "Parameter": "Files" },
|
217
|
+
{ "Value": null, "Parameter": "VersionId" }
|
216
218
|
],
|
217
219
|
"OKToReturnNull": [
|
218
220
|
{ "Method": "PostSlidesPipeline" }
|
@@ -235,6 +237,7 @@
|
|
235
237
|
{ "Parameter": "IsImageDataEmbedded" },
|
236
238
|
{ "Parameter": "Stream" },
|
237
239
|
{ "Parameter": "Html" },
|
240
|
+
{ "Parameter": "Pdf" },
|
238
241
|
{ "Parameter": "Options" },
|
239
242
|
{ "Parameter": "ApplyToAll" },
|
240
243
|
{ "Parameter": "SlideToCopy" },
|
@@ -245,7 +248,6 @@
|
|
245
248
|
{ "Parameter": "WithEmpty" },
|
246
249
|
{ "Parameter": "OldValue" },
|
247
250
|
{ "Parameter": "NewValue" },
|
248
|
-
{ "Parameter": "PointIndex" },
|
249
251
|
{ "Parameter": "OldPosition" },
|
250
252
|
{ "Parameter": "NewPosition" },
|
251
253
|
{ "Parameter": "IgnoreCase" },
|
@@ -255,6 +257,7 @@
|
|
255
257
|
{ "Parameter": "Format", "Language": "NET" },
|
256
258
|
{ "Parameter": "Format", "Language": "Java", "Method": "PostSlidesSplit" },
|
257
259
|
{ "Parameter": "Dto", "Method": "PostAddNotesSlide" },
|
260
|
+
{ "Parameter": "DataPoint", "Language": "PHP" },
|
258
261
|
{ "Parameter": "Dto", "Language": "Swift" },
|
259
262
|
{ "Parameter": "SlideDto", "Language": "Swift" },
|
260
263
|
{ "Parameter": "Request", "Language": "Swift" },
|
@@ -264,15 +267,20 @@
|
|
264
267
|
{ "Parameter": "Properties", "Language": "Swift" },
|
265
268
|
{ "Parameter": "Property", "Language": "Swift" },
|
266
269
|
{ "Parameter": "Animation", "Language": "Swift" },
|
270
|
+
{ "Parameter": "Category", "Language": "Swift" },
|
271
|
+
{ "Parameter": "Series", "Language": "Swift" },
|
272
|
+
{ "Parameter": "Sections", "Language": "Swift" },
|
267
273
|
{ "Parameter": "Position", "Method": "PostSlidesReorderPosition" },
|
268
274
|
{ "Parameter": "Name", "Method": "PostSlidesDocument" },
|
269
275
|
{ "Parameter": "Name", "Method": "PostSlidesDocumentFromHtml" },
|
276
|
+
{ "Parameter": "Name", "Method": "PostSlidesDocumentFromPdf" },
|
270
277
|
{ "Parameter": "Name", "Method": "PostSlidesDocumentFromSource" },
|
271
278
|
{ "Parameter": "Name", "Method": "PostSlidesDocumentFromTemplate" },
|
272
279
|
{ "Parameter": "Name", "Method": "PutNewPresentation" },
|
273
280
|
{ "Parameter": "Name", "Method": "PutSlidesDocumentFromHtml" },
|
274
281
|
{ "Parameter": "Folder", "Method": "PostSlidesDocument" },
|
275
282
|
{ "Parameter": "Folder", "Method": "PostSlidesDocumentFromHtml" },
|
283
|
+
{ "Parameter": "Folder", "Method": "PostSlidesDocumentFromPdf" },
|
276
284
|
{ "Parameter": "Folder", "Method": "PostSlidesDocumentFromSource" },
|
277
285
|
{ "Parameter": "Folder", "Method": "PostSlidesDocumentFromTemplate" },
|
278
286
|
{ "Parameter": "Folder", "Method": "PutNewPresentation" },
|
@@ -284,6 +292,11 @@
|
|
284
292
|
{ "Parameter": "Password", "Method": "PutNewPresentation" },
|
285
293
|
{ "Parameter": "Data", "Method": "PostSlidesDocument" },
|
286
294
|
{ "Parameter": "Files" },
|
295
|
+
{ "Parameter": "Request" },
|
296
|
+
{ "Parameter": "WithSlides" },
|
297
|
+
{ "Parameter": "SectionName" },
|
298
|
+
{ "Parameter": "AlignmentType" },
|
299
|
+
{ "Parameter": "AlignToSlide" },
|
287
300
|
{ "Method": "GetDiscUsage" },
|
288
301
|
{ "Method": "GetFilesList" },
|
289
302
|
{ "Method": "GetFileVersions" },
|
@@ -326,6 +339,7 @@
|
|
326
339
|
{ "Code": 201, "Method": "PostSlideAnimationEffect" },
|
327
340
|
{ "Code": 201, "Method": "PostSlideAnimationInteractiveSequence" },
|
328
341
|
{ "Code": 201, "Method": "PostSlideAnimationInteractiveSequenceEffect" },
|
342
|
+
{ "Code": 201, "Method": "PostSection" },
|
329
343
|
{ "Code": 400, "Invalid": true },
|
330
344
|
{ "Code": 404, "Message" : "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "Name" },
|
331
345
|
{ "Code": 404, "Message" : "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "Folder" },
|
@@ -344,9 +358,9 @@
|
|
344
358
|
{ "Message": "Invalid password.", "Parameter": "SourcePassword" },
|
345
359
|
{ "Message": "Invalid password.", "Parameter": "TemplatePassword" },
|
346
360
|
{ "Message": "Invalid password.", "Parameter": "InputPassword" },
|
347
|
-
{ "Message": "
|
348
|
-
{ "Message": "
|
349
|
-
{ "Message": "
|
361
|
+
{ "Message": "Failed to load the presentation", "Parameter": "Password", "Method": "DeleteSlidesCleanSlidesList" },
|
362
|
+
{ "Message": "Failed to load the presentation", "Parameter": "Password", "Method": "PostSlidesAdd" },
|
363
|
+
{ "Message": "Failed to load the presentation", "Parameter": "Password", "Method": "PutSlidesSlide" },
|
350
364
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "SlideIndex" },
|
351
365
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "Slides" },
|
352
366
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "ShapeIndex" },
|
@@ -360,6 +374,7 @@
|
|
360
374
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "SeriesIndex" },
|
361
375
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "CategoryIndex" },
|
362
376
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "PointIndex" },
|
377
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "SectionIndex" },
|
363
378
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "Position" },
|
364
379
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "CloneFromPosition" },
|
365
380
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "OldPosition" },
|
@@ -368,8 +383,8 @@
|
|
368
383
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "NewPositions" },
|
369
384
|
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "SlideToCopy" },
|
370
385
|
{ "Message": "Placeholder with index %v doesn't exist.", "Parameter": "PlaceholderIndex" },
|
371
|
-
{ "Message": "
|
372
|
-
{ "Message": "
|
386
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "Index" },
|
387
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "ShapeToClone" },
|
373
388
|
{ "Message": "Index was out of range.", "Parameter": "ShapeToCopy" },
|
374
389
|
{ "Message": "Invalid Request", "Parameter": "VersionId" },
|
375
390
|
{ "Message": "Invalid version id specified", "Parameter": "VersionId", "Method": "DeleteFile" },
|
@@ -384,56 +399,98 @@
|
|
384
399
|
{ "Code": 404, "Message": "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "SrcPath" },
|
385
400
|
{ "Code": 404, "Message": "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "SourcePath" },
|
386
401
|
{ "Code": 404, "Message": "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "TemplatePath" },
|
387
|
-
{ "Message": "
|
388
|
-
{ "Message": "
|
402
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "From" },
|
403
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "To" },
|
404
|
+
{ "Message": " is not supported", "Parameter": "Format" },
|
405
|
+
{ "Message": " is not supported", "Parameter": "OutPath" },
|
406
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "GetSlidesImageWithFormat", "Language": "NodeJS" },
|
407
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "GetSlidesImageWithFormat", "Language": "Go" },
|
408
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "GetSlidesImageWithFormat", "Language": "Python" },
|
409
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "GetSlidesImageWithFormat", "Language": "Perl" },
|
410
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "GetSlidesImageWithFormat", "Language": "Swift" },
|
411
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "GetSlidesImageWithFormat", "Language": "CPP" },
|
412
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "PostExportImageWithFormat", "Language": "NodeJS" },
|
413
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "PostExportImageWithFormat", "Language": "Go" },
|
414
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "PostExportImageWithFormat", "Language": "Python" },
|
415
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "PostExportImageWithFormat", "Language": "Perl" },
|
416
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "PostExportImageWithFormat", "Language": "Swift" },
|
417
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "PostExportImageWithFormat", "Language": "CPP" },
|
418
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "PostExportImagesFromRequestWithFormat", "Language": "NodeJS" },
|
419
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "PostExportImagesFromRequestWithFormat", "Language": "Go" },
|
420
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "PostExportImagesFromRequestWithFormat", "Language": "Python" },
|
421
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "PostExportImagesFromRequestWithFormat", "Language": "Perl" },
|
422
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "PostExportImagesFromRequestWithFormat", "Language": "Swift" },
|
423
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "PostExportImagesFromRequestWithFormat", "Language": "CPP" },
|
424
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "PostExportImagesWithFormat", "Language": "NodeJS" },
|
425
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "PostExportImagesWithFormat", "Language": "Go" },
|
426
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "PostExportImagesWithFormat", "Language": "Python" },
|
427
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "PostExportImagesWithFormat", "Language": "Perl" },
|
428
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "PostExportImagesWithFormat", "Language": "Swift" },
|
429
|
+
{ "Message": " is not valid", "Parameter": "Format", "Method": "PostExportImagesWithFormat", "Language": "CPP" },
|
430
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostShapeSaveAs", "Language": "NodeJS" },
|
431
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostSubshapeSaveAs", "Language": "NodeJS" },
|
432
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutShapeSaveAs", "Language": "NodeJS" },
|
433
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutSubshapeSaveAs", "Language": "NodeJS" },
|
434
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostExportShape", "Language": "NodeJS" },
|
435
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutExportShape", "Language": "NodeJS" },
|
389
436
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostShapeSaveAs", "Language": "Python" },
|
390
437
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostSubshapeSaveAs", "Language": "Python" },
|
391
438
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutShapeSaveAs", "Language": "Python" },
|
392
439
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutSubshapeSaveAs", "Language": "Python" },
|
440
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostExportShape", "Language": "Python" },
|
441
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutExportShape", "Language": "Python" },
|
393
442
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostShapeSaveAs", "Language": "Go" },
|
394
443
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostSubshapeSaveAs", "Language": "Go" },
|
395
444
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutShapeSaveAs", "Language": "Go" },
|
396
445
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutSubshapeSaveAs", "Language": "Go" },
|
446
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostExportShape", "Language": "Go" },
|
447
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutExportShape", "Language": "Go" },
|
397
448
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostShapeSaveAs", "Language": "Perl" },
|
398
449
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostSubshapeSaveAs", "Language": "Perl" },
|
399
450
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutShapeSaveAs", "Language": "Perl" },
|
400
451
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutSubshapeSaveAs", "Language": "Perl" },
|
452
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostExportShape", "Language": "Perl" },
|
453
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutExportShape", "Language": "Perl" },
|
401
454
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostShapeSaveAs", "Language": "Swift" },
|
402
455
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostSubshapeSaveAs", "Language": "Swift" },
|
403
456
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutShapeSaveAs", "Language": "Swift" },
|
404
457
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutSubshapeSaveAs", "Language": "Swift" },
|
458
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostExportShape", "Language": "Swift" },
|
459
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutExportShape", "Language": "Swift" },
|
405
460
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostShapeSaveAs", "Language": "CPP" },
|
406
461
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostSubshapeSaveAs", "Language": "CPP" },
|
407
462
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutShapeSaveAs", "Language": "CPP" },
|
408
463
|
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutSubshapeSaveAs", "Language": "CPP" },
|
464
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PostExportShape", "Language": "CPP" },
|
465
|
+
{ "Message": "does not support the API version", "Parameter": "Format", "Method": "PutExportShape", "Language": "CPP" },
|
409
466
|
{ "Message": "Color must be in format #FF000000", "Parameter": "Color" },
|
410
467
|
{ "Code": 404, "Message": "Property %v does not exist.", "Parameter": "PropertyName" },
|
411
|
-
{ "Message": "
|
468
|
+
{ "Message": "Error parsing XML template data", "Parameter": "Data" },
|
412
469
|
{ "Message": "Can't read MSCDFileSystem.", "Parameter": "Data", "Language": "Python", "Method": "PostSlidesDocument" },
|
413
|
-
{ "Message": "
|
414
|
-
{ "Message": "
|
415
|
-
{ "Message": "
|
416
|
-
{ "Message": "
|
417
|
-
{ "Message": "
|
418
|
-
{ "Message": "
|
419
|
-
{ "Message": "
|
420
|
-
{ "Message": "
|
421
|
-
{ "Message": "
|
422
|
-
{ "Message": "
|
423
|
-
{ "Message": "
|
424
|
-
{ "Message": "
|
425
|
-
{ "Message": "
|
426
|
-
{ "Message": "
|
427
|
-
{ "Message": "
|
428
|
-
{ "Message": "
|
429
|
-
{ "Message": "
|
430
|
-
{ "Message": "
|
431
|
-
{ "Message": "
|
432
|
-
{ "Message": "
|
470
|
+
{ "Message": " required parameter", "Parameter": "DTO" },
|
471
|
+
{ "Message": "DTO expected", "Parameter": "DTO", "Method": "PostAddNewShape" },
|
472
|
+
{ "Message": "DTO expected", "Parameter": "DTO", "Method": "PostAddNewSubshape" },
|
473
|
+
{ "Message": " required parameter", "Parameter": "SlideDTO" },
|
474
|
+
{ "Message": " required parameter", "Parameter": "Background" },
|
475
|
+
{ "Message": " required parameter", "Parameter": "Pipeline" },
|
476
|
+
{ "Message": " required parameter", "Parameter": "Properties" },
|
477
|
+
{ "Message": " required parameter", "Parameter": "Property" },
|
478
|
+
{ "Message": " required parameter", "Parameter": "Animation" },
|
479
|
+
{ "Message": " required parameter", "Parameter": "Sequence" },
|
480
|
+
{ "Message": " required parameter", "Parameter": "Series" },
|
481
|
+
{ "Message": " required parameter", "Parameter": "DataPoint" },
|
482
|
+
{ "Message": " required parameter", "Parameter": "Category" },
|
483
|
+
{ "Message": " required parameter", "Parameter": "Effect" },
|
484
|
+
{ "Message": " required parameter", "Parameter": "Request" },
|
485
|
+
{ "Message": " required parameter", "Parameter": "Sections" },
|
486
|
+
{ "Message": " required parameter", "Parameter": "Document" },
|
487
|
+
{ "Message": " required parameter", "Parameter": "File" },
|
488
|
+
{ "Message": "Pdf expected", "Parameter": "Pdf" },
|
489
|
+
{ "Message": " is out of bounds. Valid index range is between ", "Parameter": "Sections", "Method": "DeleteSections" },
|
433
490
|
{ "Message": "Layout slide DTO must be not null and contain", "Parameter": "SlideDTO", "Language": "Swift" },
|
434
491
|
{ "Message": "Object reference not set to an instance of an object.", "Parameter": "Bounds" },
|
435
492
|
{ "Code": 409, "Message": " is not empty.", "Parameter": "Recursive" },
|
436
|
-
{ "Message": "
|
437
|
-
{ "Message": "
|
493
|
+
{ "Message": "Sequence contains no elements", "Code": 500, "Parameter": "Files" },
|
494
|
+
{ "Message": "An error has occurred.", "Code": 500, "Parameter": "Options" }
|
438
495
|
]
|
439
496
|
}
|