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.
Files changed (171) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/TestData/ChartTest.pptx +0 -0
  4. data/TestData/Sections.pptx +0 -0
  5. data/lib/aspose_slides_cloud.rb +12 -5
  6. data/lib/aspose_slides_cloud/api/slides_api.rb +4571 -1683
  7. data/lib/aspose_slides_cloud/api/slides_api_requests.rb +1191 -185
  8. data/lib/aspose_slides_cloud/api_client.rb +30 -23
  9. data/lib/aspose_slides_cloud/configuration.rb +7 -2
  10. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +31 -48
  11. data/lib/aspose_slides_cloud/models/add_master_slide.rb +31 -48
  12. data/lib/aspose_slides_cloud/models/add_shape.rb +31 -48
  13. data/lib/aspose_slides_cloud/models/add_slide.rb +31 -48
  14. data/lib/aspose_slides_cloud/models/api_info.rb +22 -10
  15. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +22 -10
  16. data/lib/aspose_slides_cloud/models/audio_frame.rb +32 -246
  17. data/lib/aspose_slides_cloud/models/axes.rb +22 -10
  18. data/lib/aspose_slides_cloud/models/axis.rb +22 -10
  19. data/lib/aspose_slides_cloud/models/base64_input_file.rb +31 -57
  20. data/lib/aspose_slides_cloud/models/blur_effect.rb +22 -10
  21. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +31 -222
  22. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +30 -48
  23. data/lib/aspose_slides_cloud/models/bubble_series.rb +31 -211
  24. data/lib/aspose_slides_cloud/models/chart.rb +32 -220
  25. data/lib/aspose_slides_cloud/models/chart_category.rb +54 -20
  26. data/lib/aspose_slides_cloud/models/chart_title.rb +22 -10
  27. data/lib/aspose_slides_cloud/models/chart_wall.rb +22 -10
  28. data/lib/aspose_slides_cloud/models/color_scheme.rb +30 -40
  29. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +22 -10
  30. data/lib/aspose_slides_cloud/models/connector.rb +32 -244
  31. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +22 -10
  32. data/lib/aspose_slides_cloud/models/{resource_uri_element.rb → data_point.rb} +24 -22
  33. data/lib/aspose_slides_cloud/models/disc_usage.rb +22 -10
  34. data/lib/aspose_slides_cloud/models/document.rb +35 -45
  35. data/lib/aspose_slides_cloud/models/document_properties.rb +30 -40
  36. data/lib/aspose_slides_cloud/models/document_property.rb +30 -40
  37. data/lib/aspose_slides_cloud/models/document_replace_result.rb +30 -94
  38. data/lib/aspose_slides_cloud/models/effect.rb +22 -10
  39. data/lib/aspose_slides_cloud/models/effect_format.rb +22 -10
  40. data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
  41. data/lib/aspose_slides_cloud/models/error.rb +22 -10
  42. data/lib/aspose_slides_cloud/models/error_details.rb +22 -10
  43. data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
  44. data/lib/aspose_slides_cloud/models/export_options.rb +33 -11
  45. data/lib/aspose_slides_cloud/models/file_version.rb +30 -75
  46. data/lib/aspose_slides_cloud/models/file_versions.rb +22 -10
  47. data/lib/aspose_slides_cloud/models/files_list.rb +22 -10
  48. data/lib/aspose_slides_cloud/models/files_upload_result.rb +22 -10
  49. data/lib/aspose_slides_cloud/models/fill_format.rb +22 -10
  50. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +22 -10
  51. data/lib/aspose_slides_cloud/models/font_scheme.rb +30 -40
  52. data/lib/aspose_slides_cloud/models/font_set.rb +22 -10
  53. data/lib/aspose_slides_cloud/models/format_scheme.rb +30 -40
  54. data/lib/aspose_slides_cloud/models/geometry_shape.rb +33 -212
  55. data/lib/aspose_slides_cloud/models/glow_effect.rb +22 -10
  56. data/lib/aspose_slides_cloud/models/gradient_fill.rb +31 -48
  57. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +22 -10
  58. data/lib/aspose_slides_cloud/models/graphical_object.rb +31 -219
  59. data/lib/aspose_slides_cloud/models/group_shape.rb +31 -219
  60. data/lib/aspose_slides_cloud/models/header_footer.rb +247 -0
  61. data/lib/aspose_slides_cloud/models/html_export_options.rb +33 -32
  62. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +22 -20
  63. data/lib/aspose_slides_cloud/models/image.rb +30 -40
  64. data/lib/aspose_slides_cloud/models/image_export_options.rb +33 -32
  65. data/lib/aspose_slides_cloud/models/images.rb +30 -40
  66. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +22 -10
  67. data/lib/aspose_slides_cloud/models/input.rb +22 -10
  68. data/lib/aspose_slides_cloud/models/input_file.rb +22 -10
  69. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +22 -10
  70. data/lib/aspose_slides_cloud/models/layout_slide.rb +31 -41
  71. data/lib/aspose_slides_cloud/models/layout_slides.rb +30 -40
  72. data/lib/aspose_slides_cloud/models/legend.rb +22 -10
  73. data/lib/aspose_slides_cloud/models/line_format.rb +22 -10
  74. data/lib/aspose_slides_cloud/models/master_slide.rb +31 -41
  75. data/lib/aspose_slides_cloud/models/master_slides.rb +30 -40
  76. data/lib/aspose_slides_cloud/models/merge.rb +31 -48
  77. data/lib/aspose_slides_cloud/models/merging_source.rb +22 -10
  78. data/lib/aspose_slides_cloud/models/no_fill.rb +29 -46
  79. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +22 -10
  80. data/lib/aspose_slides_cloud/models/notes_slide.rb +30 -40
  81. data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +267 -0
  82. data/lib/aspose_slides_cloud/models/object_exist.rb +22 -10
  83. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +32 -220
  84. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +30 -20
  85. data/lib/aspose_slides_cloud/models/one_value_series.rb +31 -211
  86. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +22 -10
  87. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +22 -10
  88. data/lib/aspose_slides_cloud/models/output_file.rb +22 -10
  89. data/lib/aspose_slides_cloud/models/paragraph.rb +30 -40
  90. data/lib/aspose_slides_cloud/models/paragraphs.rb +30 -40
  91. data/lib/aspose_slides_cloud/models/path_input_file.rb +31 -57
  92. data/lib/aspose_slides_cloud/models/path_output_file.rb +31 -48
  93. data/lib/aspose_slides_cloud/models/pattern_fill.rb +31 -48
  94. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +63 -35
  95. data/lib/aspose_slides_cloud/models/picture_fill.rb +32 -49
  96. data/lib/aspose_slides_cloud/models/picture_frame.rb +32 -246
  97. data/lib/aspose_slides_cloud/models/pipeline.rb +22 -10
  98. data/lib/aspose_slides_cloud/models/placeholder.rb +30 -40
  99. data/lib/aspose_slides_cloud/models/placeholders.rb +30 -40
  100. data/lib/aspose_slides_cloud/models/plot_area.rb +22 -10
  101. data/lib/aspose_slides_cloud/models/portion.rb +30 -40
  102. data/lib/aspose_slides_cloud/models/portions.rb +36 -46
  103. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +33 -32
  104. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +22 -10
  105. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +22 -10
  106. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +22 -10
  107. data/lib/aspose_slides_cloud/models/reflection_effect.rb +22 -10
  108. data/lib/aspose_slides_cloud/models/remove_shape.rb +31 -48
  109. data/lib/aspose_slides_cloud/models/remove_slide.rb +31 -48
  110. data/lib/aspose_slides_cloud/models/reorder_slide.rb +31 -48
  111. data/lib/aspose_slides_cloud/models/replace_text.rb +31 -48
  112. data/lib/aspose_slides_cloud/models/request_input_file.rb +31 -57
  113. data/lib/aspose_slides_cloud/models/reset_slide.rb +31 -48
  114. data/lib/aspose_slides_cloud/models/resource_base.rb +22 -10
  115. data/lib/aspose_slides_cloud/models/resource_uri.rb +22 -10
  116. data/lib/aspose_slides_cloud/models/response_output_file.rb +29 -46
  117. data/lib/aspose_slides_cloud/models/save.rb +33 -50
  118. data/lib/aspose_slides_cloud/models/save_shape.rb +31 -48
  119. data/lib/aspose_slides_cloud/models/save_slide.rb +33 -50
  120. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +30 -20
  121. data/lib/aspose_slides_cloud/models/scatter_series.rb +31 -211
  122. data/lib/aspose_slides_cloud/models/section.rb +234 -0
  123. data/lib/aspose_slides_cloud/models/sections.rb +209 -0
  124. data/lib/aspose_slides_cloud/models/series.rb +45 -12
  125. data/lib/aspose_slides_cloud/models/series_marker.rb +22 -10
  126. data/lib/aspose_slides_cloud/models/shape.rb +32 -244
  127. data/lib/aspose_slides_cloud/models/shape_base.rb +31 -62
  128. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +22 -10
  129. data/lib/aspose_slides_cloud/models/shapes.rb +30 -40
  130. data/lib/aspose_slides_cloud/models/slide.rb +37 -47
  131. data/lib/aspose_slides_cloud/models/slide_animation.rb +30 -40
  132. data/lib/aspose_slides_cloud/models/slide_background.rb +30 -40
  133. data/lib/aspose_slides_cloud/models/slide_comment.rb +22 -10
  134. data/lib/aspose_slides_cloud/models/slide_comments.rb +30 -40
  135. data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
  136. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +30 -154
  137. data/lib/aspose_slides_cloud/models/slides.rb +30 -40
  138. data/lib/aspose_slides_cloud/models/smart_art.rb +32 -220
  139. data/lib/aspose_slides_cloud/models/smart_art_node.rb +23 -11
  140. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +30 -217
  141. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +22 -10
  142. data/lib/aspose_slides_cloud/models/solid_fill.rb +31 -48
  143. data/lib/aspose_slides_cloud/models/split_document_result.rb +30 -40
  144. data/lib/aspose_slides_cloud/models/storage_exist.rb +22 -10
  145. data/lib/aspose_slides_cloud/models/storage_file.rb +22 -10
  146. data/lib/aspose_slides_cloud/models/svg_export_options.rb +33 -32
  147. data/lib/aspose_slides_cloud/models/swf_export_options.rb +33 -32
  148. data/lib/aspose_slides_cloud/models/table.rb +32 -220
  149. data/lib/aspose_slides_cloud/models/table_cell.rb +22 -10
  150. data/lib/aspose_slides_cloud/models/table_column.rb +22 -10
  151. data/lib/aspose_slides_cloud/models/table_row.rb +22 -10
  152. data/lib/aspose_slides_cloud/models/task.rb +22 -10
  153. data/lib/aspose_slides_cloud/models/text_item.rb +22 -10
  154. data/lib/aspose_slides_cloud/models/text_items.rb +30 -40
  155. data/lib/aspose_slides_cloud/models/theme.rb +32 -42
  156. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +33 -32
  157. data/lib/aspose_slides_cloud/models/update_background.rb +31 -48
  158. data/lib/aspose_slides_cloud/models/update_shape.rb +31 -48
  159. data/lib/aspose_slides_cloud/models/video_frame.rb +32 -246
  160. data/lib/aspose_slides_cloud/models/view_properties.rb +30 -40
  161. data/lib/aspose_slides_cloud/models/waterfall_chart_data_point.rb +206 -0
  162. data/lib/aspose_slides_cloud/models/waterfall_series.rb +31 -222
  163. data/lib/aspose_slides_cloud/models/xps_export_options.rb +33 -32
  164. data/lib/aspose_slides_cloud/type_registry.rb +320 -0
  165. data/lib/aspose_slides_cloud/version.rb +1 -1
  166. data/spec/api/slides_api_spec.rb +25246 -14028
  167. data/spec/extra/extra_spec.rb +156 -22
  168. data/spec/spec_utils.rb +11 -4
  169. data/testConfig.json +2 -2
  170. data/testRules.json +172 -77
  171. metadata +12 -3
@@ -48,13 +48,148 @@ describe 'SlidesApiExtra' do
48
48
  expect(o).not_to be(nil)
49
49
  end
50
50
 
51
- it 'unauthorized' do
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 = "invalid"
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 'expired token' do
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["AppSid"]
75
- configuration.app_key = config["AppKey"]
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 'base shape' do
85
- #requestParam = AsposeSlidesCloud::GetSlideShapeRequest.new
86
- #requestParam.name = "test.ppt"
87
- #requestParam.slide_index = 1
88
- #requestParam.shape_index = 1
89
- #requestParam.password = "password"
90
- #requestParam.folder = "TempSlidesSDK"
91
- #AsposeSlidesCloud::SpecUtils.initialize('GetSlideShape', nil, nil)
92
- #o = AsposeSlidesCloud::SpecUtils.api.get_slide_shape(requestParam)
93
- #expect(o.text).to eq("1")
94
- end
95
-
96
- it 'chart' do
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
@@ -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 = SpecUtils.api.download_file(download_request)
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.ppt"))
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["AppSid"]
163
- configuration.app_key = config["AppKey"]
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
@@ -1,6 +1,6 @@
1
1
  {
2
- "AppSid": "@your_app_sid@",
3
- "AppKey": "@your_app_key@",
2
+ "ClientId": "@your_client_id@",
3
+ "ClientSecret": "@your_client_secret@",
4
4
  "BaseUrl" : "https://api-qa.aspose.cloud",
5
5
  "AuthBaseUrl" : "https://api-qa.aspose.cloud",
6
6
  "Debug" : false
@@ -1,46 +1,45 @@
1
1
  {
2
2
  "Files": [
3
- { "Action": "Put", "File": "test.ppt" },
4
- { "Action": "Delete", "File": "test.ppt", "Method": "PostSlidesDocument" },
5
- { "Action": "Delete", "File": "test.ppt", "Method": "PostSlidesDocumentFromHtml" },
6
- { "Action": "Delete", "File": "test.ppt", "Method": "UploadFile" },
7
- { "Action": "Put", "File": "test-unprotected.ppt", "Method": "DeleteSlidesCleanSlidesList" },
8
- { "Action": "Put", "File": "test-unprotected.ppt", "Method": "PutSlidesSlide" },
9
- { "Action": "Put", "File": "TemplateCV.pptx", "Method": "PostSlidesDocument" },
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.ppt", "Method": "PostSlidesDocument" },
13
- { "Action": "Delete", "File": "invalidchangedtest.ppt", "Method": "PostSlidesDocument" },
14
- { "Action": "Delete", "Folder": "TempSlidesSDKinvalid", "File": "changedtest.ppt", "Method": "PostSlidesDocument" },
15
- { "Action": "Delete", "File": "changedtest.ppt", "Method": "PostSlidesDocumentFromSource" },
16
- { "Action": "Delete", "File": "invalidchangedtest.ppt", "Method": "PostSlidesDocumentFromSource" },
17
- { "Action": "Delete", "Folder": "TempSlidesSDKinvalid", "File": "changedtest.ppt", "Method": "PostSlidesDocumentFromSource" },
18
- { "Action": "Delete", "File": "changedtest.ppt", "Method": "PostSlidesDocumentFromTemplate" },
19
- { "Action": "Delete", "File": "invalidchangedtest.ppt", "Method": "PostSlidesDocumentFromTemplate" },
20
- { "Action": "Delete", "Folder": "TempSlidesSDKinvalid", "File": "changedtest.ppt", "Method": "PostSlidesDocumentFromTemplate" },
21
- { "Action": "Delete", "File": "changedtest.ppt", "Method": "PutNewPresentation" },
22
- { "Action": "Delete", "File": "invalidchangedtest.ppt", "Method": "PutNewPresentation" },
23
- { "Action": "Delete", "Folder": "TempSlidesSDKinvalid", "File": "changedtest.ppt", "Method": "PutNewPresentation" },
24
- { "Action": "Delete", "Folder": "invalidTempSlidesSDK", "File": "test.ppt", "Parameter": "CloneFrom" },
25
- { "Action": "Delete", "Folder": "invalidTempSlidesSDK", "File": "test.ppt", "Parameter": "SourcePath" }
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.ppt", "InvalidValue": "invalid%v", "Parameter": "Name" },
30
- { "Value": "test-unprotected.ppt", "Parameter": "Name", "Method": "PutSlidesSlide" },
31
- { "Value": "test-unprotected.ppt", "Parameter": "Name", "Method": "PostSlidesAdd" },
32
- { "Value": "test-unprotected.ppt", "Parameter": "Name", "Method": "DeleteSlidesCleanSlidesList" },
33
- { "Value": "changedtest.ppt", "Parameter": "Name", "Method": "PutNewPresentation" },
34
- { "Value": "changedtest.ppt", "Parameter": "Name", "Method": "PostSlidesDocumentFromSource" },
35
- { "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" },
36
35
  { "Value": "TempSlidesSDK", "Parameter": "Folder" },
37
- { "Value": "TempSlidesSDK/test.ppt", "InvalidValue": "invalid%v", "Parameter": "SourcePath" },
38
- { "Value": "TempSlidesSDK/test.ppt", "InvalidValue": "invalid%v", "Parameter": "SrcPath" },
39
- { "Value": "TempSlidesSDK/changedtest.ppt", "InvalidValue": "invalid%v", "Parameter": "DestPath" },
40
- { "Value": "TempSlidesSDK/test.ppt", "InvalidValue": "invalid%v", "Parameter": "TemplatePath" },
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.ppt", "InvalidValue": "invalid%v", "Parameter": "CloneFrom" },
43
- { "Value": "TempSlidesSDK/test.ppt", "InvalidValue": "invalid%v", "Parameter": "Source" },
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": 3, "InvalidValue": 593, "Parameter": "ShapeIndex" },
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.ppt", "InvalidValue": "invalid%v", "Parameter": "Path", "Method": "UploadFile" },
86
- { "Value": "TempSlidesSDK/test.ppt", "InvalidValue": "invalid%v", "Parameter": "Path", "Method": "DownloadFile" },
87
- { "Value": "TempSlidesSDK/test.ppt", "InvalidValue": "invalid%v", "Parameter": "Path", "Method": "GetFileVersions" },
88
- { "Value": "TempSlidesSDK/test.ppt", "InvalidValue": "invalid%v", "Parameter": "Path", "Method": "DeleteFile" },
89
- { "Value": "TempSlidesSDK/test.ppt", "InvalidValue": "invalid%v", "Parameter": "Path", "Method": "ObjectExists" },
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": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "PutSetParagraphPortionProperties" },
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": "Appearance", "Parameter": "Bounds" },
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": "An attempt was made to move the position before the beginning of the stream.", "Parameter": "Password", "Method": "DeleteSlidesCleanSlidesList" },
281
- { "Message": "An attempt was made to move the position before the beginning of the stream.", "Parameter": "Password", "Method": "PostSlidesAdd" },
282
- { "Message": "An attempt was made to move the position before the beginning of the stream.", "Parameter": "Password", "Method": "PutSlidesSlide" },
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": "Specified argument was out of the range of valid values.", "Parameter": "Index" },
302
- { "Message": "Invalid index: index should be in the range", "Parameter": "ShapeToClone" },
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 version id specified", "Parameter": "VersionId" },
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": "Invalid 'to' parameter", "Parameter": "To" },
316
- { "Message": "BadRequest", "Parameter": "Format" },
317
- { "Message": "The HTTP resource that matches the request URI", "Parameter": "Format", "Method": "PostShapeSaveAs" },
318
- { "Message": "The HTTP resource that matches the request URI", "Parameter": "Format", "Method": "PutShapeSaveAs" },
319
- { "Message": "The HTTP resource that matches the request URI", "Parameter": "Format", "Method": "PostNotesSlideShapeSaveAs" },
320
- { "Message": "The HTTP resource that matches the request URI", "Parameter": "Format", "Method": "PutNotesSlideShapeSaveAs" },
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": "Data at the root level is invalid.", "Parameter": "Data" },
416
+ { "Message": "Error parsing XML template data", "Parameter": "Data" },
324
417
  { "Message": "Can't read MSCDFileSystem.", "Parameter": "Data", "Language": "Python", "Method": "PostSlidesDocument" },
325
- { "Message": "Can't read MSCDFileSystem.", "Parameter": "Document" },
326
- { "Message": "The stream is empty.", "Parameter": "Document", "Language": "NodeJS" },
327
- { "Message": "The stream is empty.", "Parameter": "Document", "Language": "PHP" },
328
- { "Message": "The stream is empty.", "Parameter": "Document", "Language": "Python" },
329
- { "Message": "The stream is empty.", "Parameter": "Document", "Language": "Go" },
330
- { "Message": "The stream is empty.", "Parameter": "Document", "Language": "Ruby" },
331
- { "Message": " DTO expected.", "Parameter": "DTO" },
332
- { "Message": " DTO expected.", "Parameter": "SlideDTO" },
333
- { "Message": " DTO expected.", "Parameter": "Background" },
334
- { "Message": " DTO expected.", "Parameter": "Pipeline" },
335
- { "Message": " DTO expected.", "Parameter": "Properties" },
336
- { "Message": " DTO expected.", "Parameter": "Property" },
337
- { "Message": " DTO expected.", "Parameter": "Animation" },
338
- { "Message": " DTO expected.", "Parameter": "Sequence" },
339
- { "Message": " DTO expected.", "Parameter": "Effect" },
340
- { "Message": " DTO expected.", "Parameter": "Request" },
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
  }