aspose_slides_cloud 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +22 -0
  3. data/README.md +42 -0
  4. data/aspose_slides_cloud.gemspec +26 -0
  5. data/lib/aspose_slides_cloud.rb +94 -0
  6. data/lib/aspose_slides_cloud/api/slides_api.rb +3420 -0
  7. data/lib/aspose_slides_cloud/api_client.rb +335 -0
  8. data/lib/aspose_slides_cloud/api_error.rb +24 -0
  9. data/lib/aspose_slides_cloud/configuration.rb +166 -0
  10. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +53 -0
  11. data/lib/aspose_slides_cloud/models/base_object.rb +86 -0
  12. data/lib/aspose_slides_cloud/models/base_response.rb +53 -0
  13. data/lib/aspose_slides_cloud/models/color.rb +29 -0
  14. data/lib/aspose_slides_cloud/models/color_scheme.rb +153 -0
  15. data/lib/aspose_slides_cloud/models/color_scheme_response.rb +61 -0
  16. data/lib/aspose_slides_cloud/models/common_response.rb +53 -0
  17. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +39 -0
  18. data/lib/aspose_slides_cloud/models/document.rb +81 -0
  19. data/lib/aspose_slides_cloud/models/document_properties.rb +67 -0
  20. data/lib/aspose_slides_cloud/models/document_properties_response.rb +61 -0
  21. data/lib/aspose_slides_cloud/models/document_property.rb +81 -0
  22. data/lib/aspose_slides_cloud/models/document_property_response.rb +61 -0
  23. data/lib/aspose_slides_cloud/models/document_response.rb +61 -0
  24. data/lib/aspose_slides_cloud/models/fill_format.rb +37 -0
  25. data/lib/aspose_slides_cloud/models/font_scheme.rb +81 -0
  26. data/lib/aspose_slides_cloud/models/font_scheme_response.rb +61 -0
  27. data/lib/aspose_slides_cloud/models/font_set.rb +53 -0
  28. data/lib/aspose_slides_cloud/models/format_scheme.rb +97 -0
  29. data/lib/aspose_slides_cloud/models/format_scheme_response.rb +61 -0
  30. data/lib/aspose_slides_cloud/models/html_export_options.rb +53 -0
  31. data/lib/aspose_slides_cloud/models/image.rb +73 -0
  32. data/lib/aspose_slides_cloud/models/images.rb +67 -0
  33. data/lib/aspose_slides_cloud/models/images_response.rb +61 -0
  34. data/lib/aspose_slides_cloud/models/line_format.rb +117 -0
  35. data/lib/aspose_slides_cloud/models/new_shape_response.rb +61 -0
  36. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +39 -0
  37. data/lib/aspose_slides_cloud/models/paragraph.rb +67 -0
  38. data/lib/aspose_slides_cloud/models/paragraph_portion_response.rb +61 -0
  39. data/lib/aspose_slides_cloud/models/paragraphs.rb +67 -0
  40. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +101 -0
  41. data/lib/aspose_slides_cloud/models/placeholder.rb +97 -0
  42. data/lib/aspose_slides_cloud/models/placeholder_response.rb +61 -0
  43. data/lib/aspose_slides_cloud/models/placeholders.rb +67 -0
  44. data/lib/aspose_slides_cloud/models/placeholders_response.rb +61 -0
  45. data/lib/aspose_slides_cloud/models/portion.rb +81 -0
  46. data/lib/aspose_slides_cloud/models/presentation_string_replace_response.rb +69 -0
  47. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +47 -0
  48. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +39 -0
  49. data/lib/aspose_slides_cloud/models/resource_uri.rb +61 -0
  50. data/lib/aspose_slides_cloud/models/resource_uri_element.rb +37 -0
  51. data/lib/aspose_slides_cloud/models/shape.rb +169 -0
  52. data/lib/aspose_slides_cloud/models/shape_list.rb +67 -0
  53. data/lib/aspose_slides_cloud/models/shape_paragraph_response.rb +61 -0
  54. data/lib/aspose_slides_cloud/models/shape_paragraphs_response.rb +61 -0
  55. data/lib/aspose_slides_cloud/models/shape_response.rb +61 -0
  56. data/lib/aspose_slides_cloud/models/slide.rb +121 -0
  57. data/lib/aspose_slides_cloud/models/slide_background.rb +73 -0
  58. data/lib/aspose_slides_cloud/models/slide_background_response.rb +61 -0
  59. data/lib/aspose_slides_cloud/models/slide_comment.rb +53 -0
  60. data/lib/aspose_slides_cloud/models/slide_comments.rb +67 -0
  61. data/lib/aspose_slides_cloud/models/slide_comments_response.rb +61 -0
  62. data/lib/aspose_slides_cloud/models/slide_list_response.rb +61 -0
  63. data/lib/aspose_slides_cloud/models/slide_response.rb +61 -0
  64. data/lib/aspose_slides_cloud/models/slide_string_replace_response.rb +69 -0
  65. data/lib/aspose_slides_cloud/models/slides.rb +67 -0
  66. data/lib/aspose_slides_cloud/models/split_document_response.rb +61 -0
  67. data/lib/aspose_slides_cloud/models/split_document_result.rb +67 -0
  68. data/lib/aspose_slides_cloud/models/text_item.rb +45 -0
  69. data/lib/aspose_slides_cloud/models/text_items.rb +67 -0
  70. data/lib/aspose_slides_cloud/models/text_items_response.rb +61 -0
  71. data/lib/aspose_slides_cloud/models/theme.rb +89 -0
  72. data/lib/aspose_slides_cloud/models/theme_response.rb +61 -0
  73. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +77 -0
  74. data/lib/aspose_slides_cloud/version.rb +3 -0
  75. data/test/data/ReadMe.html +48 -0
  76. data/test/data/Test.html +6 -0
  77. data/test/data/demo.pptx +0 -0
  78. data/test/data/sample-input.pptx +0 -0
  79. data/test/data/sample.pptx +0 -0
  80. data/test/data/welcome.pptx +0 -0
  81. data/test/slides_tests.rb +570 -0
  82. metadata +200 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 379f2eb9e277dd9ee81c9493af533fcf1654b4ed
4
+ data.tar.gz: 65c0a6c13695b4629608e23af6205981d680a80d
5
+ SHA512:
6
+ metadata.gz: f429dd90c6e2c233f754ba63ecf44e4ce44f4d9a13d33ce641c8529cd5df146483ad7bc4c70a40636494acd5de583368b66f181d525acf6257d15289a47c4a57
7
+ data.tar.gz: 1d35671c4d473097a1bbf91e034166fd3d0c39181f0b1f8dad40fa79fc4525a3ce61b4f99b407f57569b1d60b7e99d9b28ace7fee4272beaa230bd924d82be33
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2001-2016 Aspose Pty Ltd
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
@@ -0,0 +1,42 @@
1
+ # Aspose.Slides Cloud SDK For Ruby
2
+ This SDK lets you use [Aspose Cloud Slides APIs](http://www.aspose.com/cloud/powerpoint-api.aspx) in your web apps.
3
+
4
+ ## Installing
5
+ You can simply install Aspose Slides Cloud SDK with gem:
6
+
7
+ `gem install aspose_slides_cloud`
8
+
9
+ ## Usage
10
+ APIs of this SDK can be called as follows:
11
+
12
+ ```ruby
13
+ require 'aspose_slides_cloud'
14
+
15
+ class SlidesUsage
16
+
17
+ include AsposeSlidesCloud
18
+ include AsposeStorageCloud
19
+
20
+ def initialize
21
+ #Get App key and App SID from https://cloud.aspose.com
22
+ AsposeApp.app_key_and_sid("APP_KEY", "APP_SID")
23
+ @slides_api = SlidesApi.new
24
+ end
25
+
26
+ def put_slides_convert
27
+ #Convert presentation from request content to format specified.
28
+ file_name = "sample.pptx"
29
+ convert_to_format = "pdf"
30
+ response = @slides_api.put_slides_convert(File.open("data/" << file_name,"r") { |io| io.read }, {format: convert_to_format})
31
+ end
32
+
33
+ end
34
+ ```
35
+ ## Unit Tests
36
+ Aspose Slides SDK includes a suite of unit tests within the [test](https://github.com/asposeslides/Aspose_Slides_Cloud/blob/master/SDKs/Aspose.Slides_Cloud_SDK_For_Ruby/test/slides_tests.rb) subdirectory. These Unit Tests also serves as examples of how to use the Aspose Slides SDK.
37
+
38
+ ## Contact
39
+ Your feedback is very important to us. Please email us all your queries and feedback at marketplace@aspose.com.
40
+
41
+ ## License
42
+ Aspose Slides SDK is available under the MIT license. See the [LICENSE](https://github.com/asposeslides/Aspose_Slides_Cloud/blob/master/SDKs/Aspose.Slides_Cloud_SDK_For_Ruby/LICENSE) file for more info.
@@ -0,0 +1,26 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "aspose_slides_cloud/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "aspose_slides_cloud"
7
+ s.version = AsposeSlidesCloud::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["M. Sohail Ismail"]
10
+ s.email = ["muhammad.sohail@aspose.com"]
11
+ s.homepage = "http://www.aspose.com/cloud/powerpoint-api.aspx"
12
+ s.summary = %q{Aspose.Slides for Cloud}
13
+ s.description = %q{Aspose.Slides for Cloud is a REST API which allows you to process presentations. It allows you to create, modify, and convert presentations and provides a wide variety of features for working with presentations in the cloud. You can convert a presentation to TIFF, PDF, XPS, PPTX, ODP, PPSX, PPTM, PPSM, POTX, POTM, HTML and image formats. Aspose.Slides for Cloud allows you to extract different elements or a presentation including slide, text, color schemes, font schemes, shapes and images etc. Aspose.Slides for Cloud’s powerful API lets your apps process Microsoft PowerPoint presentations in the cloud, saving you the time it would take to develop your own API.}
14
+ s.license = "MIT"
15
+
16
+ s.add_runtime_dependency 'typhoeus', '~> 0.8'
17
+ s.add_runtime_dependency 'json', '~> 1.7'
18
+ s.add_runtime_dependency 'aspose_storage_cloud', '~> 1.0', '>= 1.0.0'
19
+
20
+ s.add_development_dependency 'minitest', '~> 5.8'
21
+
22
+ s.files = `git ls-files`.split("\n")
23
+ s.test_files = `git ls-files -- test/*`.split("\n")
24
+ s.executables = []
25
+ s.require_paths = ["lib"]
26
+ end
@@ -0,0 +1,94 @@
1
+ require 'aspose_storage_cloud'
2
+
3
+ # Common files
4
+ require_relative 'aspose_slides_cloud/api_client'
5
+ require_relative 'aspose_slides_cloud/api_error'
6
+ require_relative 'aspose_slides_cloud/version'
7
+ require_relative 'aspose_slides_cloud/configuration'
8
+
9
+ # Models
10
+ require_relative 'aspose_slides_cloud/models/base_object'
11
+ require_relative 'aspose_slides_cloud/models/base_response'
12
+ require_relative 'aspose_slides_cloud/models/placeholders_response'
13
+ require_relative 'aspose_slides_cloud/models/placeholders'
14
+ require_relative 'aspose_slides_cloud/models/resource_uri'
15
+ require_relative 'aspose_slides_cloud/models/placeholder_response'
16
+ require_relative 'aspose_slides_cloud/models/placeholder'
17
+ require_relative 'aspose_slides_cloud/models/resource_uri_element'
18
+ require_relative 'aspose_slides_cloud/models/shape'
19
+ require_relative 'aspose_slides_cloud/models/fill_format'
20
+ require_relative 'aspose_slides_cloud/models/line_format'
21
+ require_relative 'aspose_slides_cloud/models/arrow_head_properties'
22
+ require_relative 'aspose_slides_cloud/models/custom_dash_pattern'
23
+ require_relative 'aspose_slides_cloud/models/portion'
24
+ require_relative 'aspose_slides_cloud/models/theme_response'
25
+ require_relative 'aspose_slides_cloud/models/theme'
26
+ require_relative 'aspose_slides_cloud/models/color_scheme_response'
27
+ require_relative 'aspose_slides_cloud/models/color_scheme'
28
+ require_relative 'aspose_slides_cloud/models/font_scheme_response'
29
+ require_relative 'aspose_slides_cloud/models/font_scheme'
30
+ require_relative 'aspose_slides_cloud/models/font_set'
31
+ require_relative 'aspose_slides_cloud/models/format_scheme_response'
32
+ require_relative 'aspose_slides_cloud/models/format_scheme'
33
+ require_relative 'aspose_slides_cloud/models/tiff_export_options'
34
+ require_relative 'aspose_slides_cloud/models/pdf_export_options'
35
+ require_relative 'aspose_slides_cloud/models/html_export_options'
36
+ require_relative 'aspose_slides_cloud/models/document_properties_response'
37
+ require_relative 'aspose_slides_cloud/models/document_properties'
38
+ require_relative 'aspose_slides_cloud/models/document_property'
39
+ require_relative 'aspose_slides_cloud/models/document_property_response'
40
+ require_relative 'aspose_slides_cloud/models/common_response'
41
+ require_relative 'aspose_slides_cloud/models/text_items_response'
42
+ require_relative 'aspose_slides_cloud/models/text_items'
43
+ require_relative 'aspose_slides_cloud/models/text_item'
44
+ require_relative 'aspose_slides_cloud/models/presentation_string_replace_response'
45
+ require_relative 'aspose_slides_cloud/models/document'
46
+ require_relative 'aspose_slides_cloud/models/slide_string_replace_response'
47
+ require_relative 'aspose_slides_cloud/models/slide_response'
48
+ require_relative 'aspose_slides_cloud/models/slide'
49
+ require_relative 'aspose_slides_cloud/models/presentations_merge_request'
50
+ require_relative 'aspose_slides_cloud/models/document_response'
51
+ require_relative 'aspose_slides_cloud/models/ordered_merge_request'
52
+ require_relative 'aspose_slides_cloud/models/presentation_to_merge'
53
+ require_relative 'aspose_slides_cloud/models/slide_list_response'
54
+ require_relative 'aspose_slides_cloud/models/slides'
55
+ require_relative 'aspose_slides_cloud/models/slide_background_response'
56
+ require_relative 'aspose_slides_cloud/models/slide_background'
57
+ require_relative 'aspose_slides_cloud/models/slide_comments_response'
58
+ require_relative 'aspose_slides_cloud/models/slide_comments'
59
+ require_relative 'aspose_slides_cloud/models/slide_comment'
60
+ require_relative 'aspose_slides_cloud/models/images_response'
61
+ require_relative 'aspose_slides_cloud/models/images'
62
+ require_relative 'aspose_slides_cloud/models/image'
63
+ require_relative 'aspose_slides_cloud/models/split_document_response'
64
+ require_relative 'aspose_slides_cloud/models/split_document_result'
65
+ require_relative 'aspose_slides_cloud/models/shape_response'
66
+ require_relative 'aspose_slides_cloud/models/shape_list'
67
+ require_relative 'aspose_slides_cloud/models/new_shape_response'
68
+ require_relative 'aspose_slides_cloud/models/shape_paragraphs_response'
69
+ require_relative 'aspose_slides_cloud/models/paragraphs'
70
+ require_relative 'aspose_slides_cloud/models/shape_paragraph_response'
71
+ require_relative 'aspose_slides_cloud/models/paragraph'
72
+ require_relative 'aspose_slides_cloud/models/paragraph_portion_response'
73
+ require_relative 'aspose_slides_cloud/models/color'
74
+
75
+ # APIs
76
+ require_relative 'aspose_slides_cloud/api/slides_api'
77
+
78
+ module AsposeSlidesCloud
79
+ class << self
80
+ # Configure sdk using block.
81
+ # AsposeSlidesCloud.configure do |config|
82
+ # config.username = "xxx"
83
+ # config.password = "xxx"
84
+ # end
85
+ # If no block given, return the configuration singleton instance.
86
+ def configure
87
+ if block_given?
88
+ yield Configuration.instance
89
+ else
90
+ Configuration.instance
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,3420 @@
1
+ require "uri"
2
+
3
+ module AsposeSlidesCloud
4
+ class SlidesApi
5
+ attr_accessor :api_client
6
+
7
+ def initialize(api_client = nil)
8
+ @api_client = api_client || Configuration.api_client
9
+ end
10
+
11
+ # Convert presentation from request content to format specified.
12
+ #
13
+ # @param file
14
+ # @param [Hash] opts the optional parameters
15
+ # @option opts [String] :password The document password.
16
+ # @option opts [String] :format The format.
17
+ # @option opts [String] :out_path Path to save result
18
+ # @return [File]
19
+ def put_slides_convert(file, opts = {})
20
+ if Configuration.debugging
21
+ Configuration.logger.debug "Calling API: SlidesApi#put_slides_convert ..."
22
+ end
23
+
24
+ # verify the required parameter 'file' is set
25
+ fail "Missing the required parameter 'file' when calling put_slides_convert" if file.nil?
26
+
27
+ # resource path
28
+ path = "/slides/convert".sub('{format}','json')
29
+
30
+ # query parameters
31
+ query_params = {}
32
+ query_params[:'password'] = opts[:'password'] if opts[:'password']
33
+ query_params[:'format'] = opts[:'format'] if opts[:'format']
34
+ query_params[:'outPath'] = opts[:'out_path'] if opts[:'out_path']
35
+
36
+ # header parameters
37
+ header_params = {}
38
+
39
+ # HTTP header 'Accept' (if needed)
40
+ _header_accept = []
41
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
42
+
43
+ # HTTP header 'Content-Type'
44
+ _header_content_type = ['multipart/form-data']
45
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
46
+
47
+ # form parameters
48
+ form_params = {}
49
+ form_params["file"] = file
50
+
51
+ # http body (model)
52
+ post_body = nil
53
+
54
+
55
+ auth_names = []
56
+ result = @api_client.call_api(:PUT, path,
57
+ :header_params => header_params,
58
+ :query_params => query_params,
59
+ :form_params => form_params,
60
+ :body => post_body,
61
+ :auth_names => auth_names,
62
+ :return_type => 'File')
63
+ if Configuration.debugging
64
+ Configuration.logger.debug "API called: SlidesApi#put_slides_convert. Result: #{result.inspect}"
65
+ end
66
+ return result
67
+ end
68
+
69
+ # Get slides document in specified format
70
+ #
71
+ # @param name The document name.
72
+ # @param format The slides document format.
73
+ # @param [Hash] opts the optional parameters
74
+ # @option opts [String] :jpeg_quality
75
+ # @option opts [String] :password The document password.
76
+ # @option opts [String] :storage Document&#39;s storage.
77
+ # @option opts [String] :folder Document&#39;s folder.
78
+ # @option opts [String] :out_path
79
+ # @return [File]
80
+ def get_slides_document_with_format(name, format, opts = {})
81
+ if Configuration.debugging
82
+ Configuration.logger.debug "Calling API: SlidesApi#get_slides_document_with_format ..."
83
+ end
84
+
85
+ # verify the required parameter 'name' is set
86
+ fail "Missing the required parameter 'name' when calling get_slides_document_with_format" if name.nil?
87
+
88
+ # verify the required parameter 'format' is set
89
+ fail "Missing the required parameter 'format' when calling get_slides_document_with_format" if format.nil?
90
+
91
+ # resource path
92
+ path = "/slides/{name}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
93
+
94
+ # query parameters
95
+ query_params = {}
96
+ query_params[:'format'] = format
97
+ query_params[:'jpegQuality'] = opts[:'jpeg_quality'] if opts[:'jpeg_quality']
98
+ query_params[:'password'] = opts[:'password'] if opts[:'password']
99
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
100
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
101
+ query_params[:'outPath'] = opts[:'out_path'] if opts[:'out_path']
102
+
103
+ # header parameters
104
+ header_params = {}
105
+
106
+ # HTTP header 'Accept' (if needed)
107
+ _header_accept = []
108
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
109
+
110
+ # HTTP header 'Content-Type'
111
+ _header_content_type = ['application/json']
112
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
113
+
114
+ # form parameters
115
+ form_params = {}
116
+
117
+ # http body (model)
118
+ post_body = nil
119
+
120
+
121
+ auth_names = []
122
+ result = @api_client.call_api(:GET, path,
123
+ :header_params => header_params,
124
+ :query_params => query_params,
125
+ :form_params => form_params,
126
+ :body => post_body,
127
+ :auth_names => auth_names,
128
+ :return_type => 'File')
129
+ if Configuration.debugging
130
+ Configuration.logger.debug "API called: SlidesApi#get_slides_document_with_format. Result: #{result.inspect}"
131
+ end
132
+ return result
133
+ end
134
+
135
+ #
136
+ #
137
+ # @param name The document name.
138
+ # @param template_path
139
+ # @param file
140
+ # @param [Hash] opts the optional parameters
141
+ # @option opts [String] :template_storage
142
+ # @option opts [String] :password The document password.
143
+ # @option opts [String] :storage Document&#39;s storage.
144
+ # @option opts [String] :folder Document&#39;s folder.
145
+ # @return [DocumentResponse]
146
+ def put_new_presentation_from_stored_template(name, template_path, file, opts = {})
147
+ if Configuration.debugging
148
+ Configuration.logger.debug "Calling API: SlidesApi#put_new_presentation_from_stored_template ..."
149
+ end
150
+
151
+ # verify the required parameter 'name' is set
152
+ fail "Missing the required parameter 'name' when calling put_new_presentation_from_stored_template" if name.nil?
153
+
154
+ # verify the required parameter 'template_path' is set
155
+ fail "Missing the required parameter 'template_path' when calling put_new_presentation_from_stored_template" if template_path.nil?
156
+
157
+ # verify the required parameter 'file' is set
158
+ fail "Missing the required parameter 'file' when calling put_new_presentation_from_stored_template" if file.nil?
159
+
160
+ # resource path
161
+ path = "/slides/{name}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
162
+
163
+ # query parameters
164
+ query_params = {}
165
+ query_params[:'templatePath'] = template_path
166
+ query_params[:'templateStorage'] = opts[:'template_storage'] if opts[:'template_storage']
167
+ query_params[:'password'] = opts[:'password'] if opts[:'password']
168
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
169
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
170
+
171
+ # header parameters
172
+ header_params = {}
173
+
174
+ # HTTP header 'Accept' (if needed)
175
+ _header_accept = ['application/json']
176
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
177
+
178
+ # HTTP header 'Content-Type'
179
+ _header_content_type = ['multipart/form-data']
180
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
181
+
182
+ # form parameters
183
+ form_params = {}
184
+ form_params["file"] = file
185
+
186
+ # http body (model)
187
+ post_body = nil
188
+
189
+
190
+ auth_names = []
191
+ result = @api_client.call_api(:PUT, path,
192
+ :header_params => header_params,
193
+ :query_params => query_params,
194
+ :form_params => form_params,
195
+ :body => post_body,
196
+ :auth_names => auth_names,
197
+ :return_type => 'DocumentResponse')
198
+ if Configuration.debugging
199
+ Configuration.logger.debug "API called: SlidesApi#put_new_presentation_from_stored_template. Result: #{result.inspect}"
200
+ end
201
+ return result
202
+ end
203
+
204
+ # Create presentation
205
+ #
206
+ # @param name The document name.
207
+ # @param template_path Template file path.
208
+ # @param file
209
+ # @param [Hash] opts the optional parameters
210
+ # @option opts [String] :template_storage Template storage name.
211
+ # @option opts [BOOLEAN] :is_image_data_embeeded Is Image Data Embeeded
212
+ # @option opts [String] :password The document password.
213
+ # @option opts [String] :storage Document&#39;s storage.
214
+ # @option opts [String] :folder Document&#39;s folder.
215
+ # @return [BaseResponse]
216
+ def post_slides_document(name, template_path, file, opts = {})
217
+ if Configuration.debugging
218
+ Configuration.logger.debug "Calling API: SlidesApi#post_slides_document ..."
219
+ end
220
+
221
+ # verify the required parameter 'name' is set
222
+ fail "Missing the required parameter 'name' when calling post_slides_document" if name.nil?
223
+
224
+ # verify the required parameter 'template_path' is set
225
+ fail "Missing the required parameter 'template_path' when calling post_slides_document" if template_path.nil?
226
+
227
+ # verify the required parameter 'file' is set
228
+ fail "Missing the required parameter 'file' when calling post_slides_document" if file.nil?
229
+
230
+ # resource path
231
+ path = "/slides/{name}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
232
+
233
+ # query parameters
234
+ query_params = {}
235
+ query_params[:'templatePath'] = template_path
236
+ query_params[:'templateStorage'] = opts[:'template_storage'] if opts[:'template_storage']
237
+ query_params[:'isImageDataEmbeeded'] = opts[:'is_image_data_embeeded'] if opts[:'is_image_data_embeeded']
238
+ query_params[:'password'] = opts[:'password'] if opts[:'password']
239
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
240
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
241
+
242
+ # header parameters
243
+ header_params = {}
244
+
245
+ # HTTP header 'Accept' (if needed)
246
+ _header_accept = ['application/json']
247
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
248
+
249
+ # HTTP header 'Content-Type'
250
+ _header_content_type = ['multipart/form-data']
251
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
252
+
253
+ # form parameters
254
+ form_params = {}
255
+ form_params["file"] = file
256
+
257
+ # http body (model)
258
+ post_body = nil
259
+
260
+
261
+ auth_names = []
262
+ result = @api_client.call_api(:POST, path,
263
+ :header_params => header_params,
264
+ :query_params => query_params,
265
+ :form_params => form_params,
266
+ :body => post_body,
267
+ :auth_names => auth_names,
268
+ :return_type => 'BaseResponse')
269
+ if Configuration.debugging
270
+ Configuration.logger.debug "API called: SlidesApi#post_slides_document. Result: #{result.inspect}"
271
+ end
272
+ return result
273
+ end
274
+
275
+ # Read presentation document properties.
276
+ #
277
+ # @param name The document name.
278
+ # @param [Hash] opts the optional parameters
279
+ # @option opts [String] :folder Document&#39;s folder.
280
+ # @option opts [String] :storage Document&#39;s storage.
281
+ # @return [DocumentPropertiesResponse]
282
+ def get_slides_document_properties(name, opts = {})
283
+ if Configuration.debugging
284
+ Configuration.logger.debug "Calling API: SlidesApi#get_slides_document_properties ..."
285
+ end
286
+
287
+ # verify the required parameter 'name' is set
288
+ fail "Missing the required parameter 'name' when calling get_slides_document_properties" if name.nil?
289
+
290
+ # resource path
291
+ path = "/slides/{name}/documentproperties".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
292
+
293
+ # query parameters
294
+ query_params = {}
295
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
296
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
297
+
298
+ # header parameters
299
+ header_params = {}
300
+
301
+ # HTTP header 'Accept' (if needed)
302
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
303
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
304
+
305
+ # HTTP header 'Content-Type'
306
+ _header_content_type = []
307
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
308
+
309
+ # form parameters
310
+ form_params = {}
311
+
312
+ # http body (model)
313
+ post_body = nil
314
+
315
+
316
+ auth_names = []
317
+ result = @api_client.call_api(:GET, path,
318
+ :header_params => header_params,
319
+ :query_params => query_params,
320
+ :form_params => form_params,
321
+ :body => post_body,
322
+ :auth_names => auth_names,
323
+ :return_type => 'DocumentPropertiesResponse')
324
+ if Configuration.debugging
325
+ Configuration.logger.debug "API called: SlidesApi#get_slides_document_properties. Result: #{result.inspect}"
326
+ end
327
+ return result
328
+ end
329
+
330
+ # Set document properties.
331
+ #
332
+ # @param name The document name.
333
+ # @param properties New properties.
334
+ # @param [Hash] opts the optional parameters
335
+ # @option opts [String] :folder Document&#39;s folder.
336
+ # @option opts [String] :storage Document&#39;s storage.
337
+ # @return [DocumentPropertiesResponse]
338
+ def post_slides_set_document_properties(name, properties, opts = {})
339
+ if Configuration.debugging
340
+ Configuration.logger.debug "Calling API: SlidesApi#post_slides_set_document_properties ..."
341
+ end
342
+
343
+ # verify the required parameter 'name' is set
344
+ fail "Missing the required parameter 'name' when calling post_slides_set_document_properties" if name.nil?
345
+
346
+ # verify the required parameter 'properties' is set
347
+ fail "Missing the required parameter 'properties' when calling post_slides_set_document_properties" if properties.nil?
348
+
349
+ # resource path
350
+ path = "/slides/{name}/documentproperties".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
351
+
352
+ # query parameters
353
+ query_params = {}
354
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
355
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
356
+
357
+ # header parameters
358
+ header_params = {}
359
+
360
+ # HTTP header 'Accept' (if needed)
361
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
362
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
363
+
364
+ # HTTP header 'Content-Type'
365
+ _header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
366
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
367
+
368
+ # form parameters
369
+ form_params = {}
370
+
371
+ # http body (model)
372
+ post_body = @api_client.object_to_http_body(properties)
373
+
374
+
375
+ auth_names = []
376
+ result = @api_client.call_api(:POST, path,
377
+ :header_params => header_params,
378
+ :query_params => query_params,
379
+ :form_params => form_params,
380
+ :body => post_body,
381
+ :auth_names => auth_names,
382
+ :return_type => 'DocumentPropertiesResponse')
383
+ if Configuration.debugging
384
+ Configuration.logger.debug "API called: SlidesApi#post_slides_set_document_properties. Result: #{result.inspect}"
385
+ end
386
+ return result
387
+ end
388
+
389
+ # Clean document properties.
390
+ #
391
+ # @param name The presentation name.
392
+ # @param [Hash] opts the optional parameters
393
+ # @option opts [String] :folder The presentation folder.
394
+ # @option opts [String] :storage Document&#39;s storage.
395
+ # @return [DocumentPropertiesResponse]
396
+ def delete_slides_document_properties(name, opts = {})
397
+ if Configuration.debugging
398
+ Configuration.logger.debug "Calling API: SlidesApi#delete_slides_document_properties ..."
399
+ end
400
+
401
+ # verify the required parameter 'name' is set
402
+ fail "Missing the required parameter 'name' when calling delete_slides_document_properties" if name.nil?
403
+
404
+ # resource path
405
+ path = "/slides/{name}/documentproperties".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
406
+
407
+ # query parameters
408
+ query_params = {}
409
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
410
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
411
+
412
+ # header parameters
413
+ header_params = {}
414
+
415
+ # HTTP header 'Accept' (if needed)
416
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
417
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
418
+
419
+ # HTTP header 'Content-Type'
420
+ _header_content_type = []
421
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
422
+
423
+ # form parameters
424
+ form_params = {}
425
+
426
+ # http body (model)
427
+ post_body = nil
428
+
429
+
430
+ auth_names = []
431
+ result = @api_client.call_api(:DELETE, path,
432
+ :header_params => header_params,
433
+ :query_params => query_params,
434
+ :form_params => form_params,
435
+ :body => post_body,
436
+ :auth_names => auth_names,
437
+ :return_type => 'DocumentPropertiesResponse')
438
+ if Configuration.debugging
439
+ Configuration.logger.debug "API called: SlidesApi#delete_slides_document_properties. Result: #{result.inspect}"
440
+ end
441
+ return result
442
+ end
443
+
444
+ # Read presentation document property.
445
+ #
446
+ # @param name The document name.
447
+ # @param property_name The property name.
448
+ # @param [Hash] opts the optional parameters
449
+ # @option opts [String] :folder Document&#39;s folder.
450
+ # @option opts [String] :storage Document&#39;s storage.
451
+ # @return [DocumentPropertyResponse]
452
+ def get_slides_document_property(name, property_name, opts = {})
453
+ if Configuration.debugging
454
+ Configuration.logger.debug "Calling API: SlidesApi#get_slides_document_property ..."
455
+ end
456
+
457
+ # verify the required parameter 'name' is set
458
+ fail "Missing the required parameter 'name' when calling get_slides_document_property" if name.nil?
459
+
460
+ # verify the required parameter 'property_name' is set
461
+ fail "Missing the required parameter 'property_name' when calling get_slides_document_property" if property_name.nil?
462
+
463
+ # resource path
464
+ path = "/slides/{name}/documentproperties/{propertyName}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'propertyName' + '}', property_name.to_s)
465
+
466
+ # query parameters
467
+ query_params = {}
468
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
469
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
470
+
471
+ # header parameters
472
+ header_params = {}
473
+
474
+ # HTTP header 'Accept' (if needed)
475
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
476
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
477
+
478
+ # HTTP header 'Content-Type'
479
+ _header_content_type = []
480
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
481
+
482
+ # form parameters
483
+ form_params = {}
484
+
485
+ # http body (model)
486
+ post_body = nil
487
+
488
+
489
+ auth_names = []
490
+ result = @api_client.call_api(:GET, path,
491
+ :header_params => header_params,
492
+ :query_params => query_params,
493
+ :form_params => form_params,
494
+ :body => post_body,
495
+ :auth_names => auth_names,
496
+ :return_type => 'DocumentPropertyResponse')
497
+ if Configuration.debugging
498
+ Configuration.logger.debug "API called: SlidesApi#get_slides_document_property. Result: #{result.inspect}"
499
+ end
500
+ return result
501
+ end
502
+
503
+ # Set document property.
504
+ #
505
+ # @param name The presentation name.
506
+ # @param property_name The property name.
507
+ # @param property Property with the value.
508
+ # @param [Hash] opts the optional parameters
509
+ # @option opts [String] :folder Document&#39;s folder.
510
+ # @option opts [String] :storage Document&#39;s storage.
511
+ # @return [DocumentPropertyResponse]
512
+ def put_slides_set_document_property(name, property_name, property, opts = {})
513
+ if Configuration.debugging
514
+ Configuration.logger.debug "Calling API: SlidesApi#put_slides_set_document_property ..."
515
+ end
516
+
517
+ # verify the required parameter 'name' is set
518
+ fail "Missing the required parameter 'name' when calling put_slides_set_document_property" if name.nil?
519
+
520
+ # verify the required parameter 'property_name' is set
521
+ fail "Missing the required parameter 'property_name' when calling put_slides_set_document_property" if property_name.nil?
522
+
523
+ # verify the required parameter 'property' is set
524
+ fail "Missing the required parameter 'property' when calling put_slides_set_document_property" if property.nil?
525
+
526
+ # resource path
527
+ path = "/slides/{name}/documentproperties/{propertyName}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'propertyName' + '}', property_name.to_s)
528
+
529
+ # query parameters
530
+ query_params = {}
531
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
532
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
533
+
534
+ # header parameters
535
+ header_params = {}
536
+
537
+ # HTTP header 'Accept' (if needed)
538
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
539
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
540
+
541
+ # HTTP header 'Content-Type'
542
+ _header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
543
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
544
+
545
+ # form parameters
546
+ form_params = {}
547
+
548
+ # http body (model)
549
+ post_body = @api_client.object_to_http_body(property)
550
+
551
+
552
+ auth_names = []
553
+ result = @api_client.call_api(:PUT, path,
554
+ :header_params => header_params,
555
+ :query_params => query_params,
556
+ :form_params => form_params,
557
+ :body => post_body,
558
+ :auth_names => auth_names,
559
+ :return_type => 'DocumentPropertyResponse')
560
+ if Configuration.debugging
561
+ Configuration.logger.debug "API called: SlidesApi#put_slides_set_document_property. Result: #{result.inspect}"
562
+ end
563
+ return result
564
+ end
565
+
566
+ # Delete document property.
567
+ #
568
+ # @param name The presentation name.
569
+ # @param property_name The property name.
570
+ # @param [Hash] opts the optional parameters
571
+ # @option opts [String] :folder The presentation folder.
572
+ # @option opts [String] :storage Document&#39;s storage.
573
+ # @return [CommonResponse]
574
+ def delete_slides_document_property(name, property_name, opts = {})
575
+ if Configuration.debugging
576
+ Configuration.logger.debug "Calling API: SlidesApi#delete_slides_document_property ..."
577
+ end
578
+
579
+ # verify the required parameter 'name' is set
580
+ fail "Missing the required parameter 'name' when calling delete_slides_document_property" if name.nil?
581
+
582
+ # verify the required parameter 'property_name' is set
583
+ fail "Missing the required parameter 'property_name' when calling delete_slides_document_property" if property_name.nil?
584
+
585
+ # resource path
586
+ path = "/slides/{name}/documentproperties/{propertyName}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'propertyName' + '}', property_name.to_s)
587
+
588
+ # query parameters
589
+ query_params = {}
590
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
591
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
592
+
593
+ # header parameters
594
+ header_params = {}
595
+
596
+ # HTTP header 'Accept' (if needed)
597
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
598
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
599
+
600
+ # HTTP header 'Content-Type'
601
+ _header_content_type = []
602
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
603
+
604
+ # form parameters
605
+ form_params = {}
606
+
607
+ # http body (model)
608
+ post_body = nil
609
+
610
+
611
+ auth_names = []
612
+ result = @api_client.call_api(:DELETE, path,
613
+ :header_params => header_params,
614
+ :query_params => query_params,
615
+ :form_params => form_params,
616
+ :body => post_body,
617
+ :auth_names => auth_names,
618
+ :return_type => 'CommonResponse')
619
+ if Configuration.debugging
620
+ Configuration.logger.debug "API called: SlidesApi#delete_slides_document_property. Result: #{result.inspect}"
621
+ end
622
+ return result
623
+ end
624
+
625
+ # Create presentation document from html
626
+ #
627
+ # @param name The document name.
628
+ # @param file
629
+ # @param [Hash] opts the optional parameters
630
+ # @option opts [String] :password The document password.
631
+ # @option opts [String] :storage Document&#39;s storage.
632
+ # @option opts [String] :folder Document&#39;s folder.
633
+ # @return [DocumentResponse]
634
+ def put_slides_document_from_html(name, file, opts = {})
635
+ if Configuration.debugging
636
+ Configuration.logger.debug "Calling API: SlidesApi#put_slides_document_from_html ..."
637
+ end
638
+
639
+ # verify the required parameter 'name' is set
640
+ fail "Missing the required parameter 'name' when calling put_slides_document_from_html" if name.nil?
641
+
642
+ # verify the required parameter 'file' is set
643
+ fail "Missing the required parameter 'file' when calling put_slides_document_from_html" if file.nil?
644
+
645
+ # resource path
646
+ path = "/slides/{name}/fromHtml".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
647
+
648
+ # query parameters
649
+ query_params = {}
650
+ query_params[:'password'] = opts[:'password'] if opts[:'password']
651
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
652
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
653
+
654
+ # header parameters
655
+ header_params = {}
656
+
657
+ # HTTP header 'Accept' (if needed)
658
+ _header_accept = ['application/json', 'text/json', 'text/javascript']
659
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
660
+
661
+ # HTTP header 'Content-Type'
662
+ _header_content_type = []
663
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
664
+
665
+ # form parameters
666
+ form_params = {}
667
+ form_params["file"] = file
668
+
669
+ # http body (model)
670
+ post_body = nil
671
+
672
+
673
+ auth_names = []
674
+ result = @api_client.call_api(:PUT, path,
675
+ :header_params => header_params,
676
+ :query_params => query_params,
677
+ :form_params => form_params,
678
+ :body => post_body,
679
+ :auth_names => auth_names,
680
+ :return_type => 'DocumentResponse')
681
+ if Configuration.debugging
682
+ Configuration.logger.debug "API called: SlidesApi#put_slides_document_from_html. Result: #{result.inspect}"
683
+ end
684
+ return result
685
+ end
686
+
687
+ # Read presentation images info.
688
+ #
689
+ # @param name The presentation name.
690
+ # @param [Hash] opts the optional parameters
691
+ # @option opts [String] :folder The presentation folder.
692
+ # @option opts [String] :storage Document&#39;s storage.
693
+ # @return [ImagesResponse]
694
+ def get_slides_images(name, opts = {})
695
+ if Configuration.debugging
696
+ Configuration.logger.debug "Calling API: SlidesApi#get_slides_images ..."
697
+ end
698
+
699
+ # verify the required parameter 'name' is set
700
+ fail "Missing the required parameter 'name' when calling get_slides_images" if name.nil?
701
+
702
+ # resource path
703
+ path = "/slides/{name}/images".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
704
+
705
+ # query parameters
706
+ query_params = {}
707
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
708
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
709
+
710
+ # header parameters
711
+ header_params = {}
712
+
713
+ # HTTP header 'Accept' (if needed)
714
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
715
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
716
+
717
+ # HTTP header 'Content-Type'
718
+ _header_content_type = []
719
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
720
+
721
+ # form parameters
722
+ form_params = {}
723
+
724
+ # http body (model)
725
+ post_body = nil
726
+
727
+
728
+ auth_names = []
729
+ result = @api_client.call_api(:GET, path,
730
+ :header_params => header_params,
731
+ :query_params => query_params,
732
+ :form_params => form_params,
733
+ :body => post_body,
734
+ :auth_names => auth_names,
735
+ :return_type => 'ImagesResponse')
736
+ if Configuration.debugging
737
+ Configuration.logger.debug "API called: SlidesApi#get_slides_images. Result: #{result.inspect}"
738
+ end
739
+ return result
740
+ end
741
+
742
+ # Merge presentations.
743
+ #
744
+ # @param name Original presentation name.
745
+ # @param request {PresentationsMergeRequest} with a list of presentations to merge.
746
+ # @param [Hash] opts the optional parameters
747
+ # @option opts [String] :storage The storage.
748
+ # @option opts [String] :folder The folder.
749
+ # @return [DocumentResponse]
750
+ def put_presentation_merge(name, request, opts = {})
751
+ if Configuration.debugging
752
+ Configuration.logger.debug "Calling API: SlidesApi#put_presentation_merge ..."
753
+ end
754
+
755
+ # verify the required parameter 'name' is set
756
+ fail "Missing the required parameter 'name' when calling put_presentation_merge" if name.nil?
757
+
758
+ # verify the required parameter 'request' is set
759
+ fail "Missing the required parameter 'request' when calling put_presentation_merge" if request.nil?
760
+
761
+ # resource path
762
+ path = "/slides/{name}/merge".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
763
+
764
+ # query parameters
765
+ query_params = {}
766
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
767
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
768
+
769
+ # header parameters
770
+ header_params = {}
771
+
772
+ # HTTP header 'Accept' (if needed)
773
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
774
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
775
+
776
+ # HTTP header 'Content-Type'
777
+ _header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
778
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
779
+
780
+ # form parameters
781
+ form_params = {}
782
+
783
+ # http body (model)
784
+ post_body = @api_client.object_to_http_body(request)
785
+
786
+
787
+ auth_names = []
788
+ result = @api_client.call_api(:PUT, path,
789
+ :header_params => header_params,
790
+ :query_params => query_params,
791
+ :form_params => form_params,
792
+ :body => post_body,
793
+ :auth_names => auth_names,
794
+ :return_type => 'DocumentResponse')
795
+ if Configuration.debugging
796
+ Configuration.logger.debug "API called: SlidesApi#put_presentation_merge. Result: #{result.inspect}"
797
+ end
798
+ return result
799
+ end
800
+
801
+ # Merge presentations.
802
+ #
803
+ # @param name Original presentation name.
804
+ # @param request {PresentationsMergeRequest} with a list of presentations to merge.
805
+ # @param [Hash] opts the optional parameters
806
+ # @option opts [String] :storage The storage.
807
+ # @option opts [String] :folder The folder.
808
+ # @return [DocumentResponse]
809
+ def post_presentation_merge(name, request, opts = {})
810
+ if Configuration.debugging
811
+ Configuration.logger.debug "Calling API: SlidesApi#post_presentation_merge ..."
812
+ end
813
+
814
+ # verify the required parameter 'name' is set
815
+ fail "Missing the required parameter 'name' when calling post_presentation_merge" if name.nil?
816
+
817
+ # verify the required parameter 'request' is set
818
+ fail "Missing the required parameter 'request' when calling post_presentation_merge" if request.nil?
819
+
820
+ # resource path
821
+ path = "/slides/{name}/merge".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
822
+
823
+ # query parameters
824
+ query_params = {}
825
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
826
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
827
+
828
+ # header parameters
829
+ header_params = {}
830
+
831
+ # HTTP header 'Accept' (if needed)
832
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
833
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
834
+
835
+ # HTTP header 'Content-Type'
836
+ _header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
837
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
838
+
839
+ # form parameters
840
+ form_params = {}
841
+
842
+ # http body (model)
843
+ post_body = @api_client.object_to_http_body(request)
844
+
845
+
846
+ auth_names = []
847
+ result = @api_client.call_api(:POST, path,
848
+ :header_params => header_params,
849
+ :query_params => query_params,
850
+ :form_params => form_params,
851
+ :body => post_body,
852
+ :auth_names => auth_names,
853
+ :return_type => 'DocumentResponse')
854
+ if Configuration.debugging
855
+ Configuration.logger.debug "API called: SlidesApi#post_presentation_merge. Result: #{result.inspect}"
856
+ end
857
+ return result
858
+ end
859
+
860
+ # Replace text by a new value.
861
+ #
862
+ # @param name The presentation name.
863
+ # @param old_value Text value to replace.
864
+ # @param new_value The new text value.
865
+ # @param [Hash] opts the optional parameters
866
+ # @option opts [BOOLEAN] :ignore_case Is case must be ignored.
867
+ # @option opts [String] :folder The presentation folder.
868
+ # @option opts [String] :storage Presentation storage.
869
+ # @return [PresentationStringReplaceResponse]
870
+ def post_slides_presentation_replace_text(name, old_value, new_value, opts = {})
871
+ if Configuration.debugging
872
+ Configuration.logger.debug "Calling API: SlidesApi#post_slides_presentation_replace_text ..."
873
+ end
874
+
875
+ # verify the required parameter 'name' is set
876
+ fail "Missing the required parameter 'name' when calling post_slides_presentation_replace_text" if name.nil?
877
+
878
+ # verify the required parameter 'old_value' is set
879
+ fail "Missing the required parameter 'old_value' when calling post_slides_presentation_replace_text" if old_value.nil?
880
+
881
+ # verify the required parameter 'new_value' is set
882
+ fail "Missing the required parameter 'new_value' when calling post_slides_presentation_replace_text" if new_value.nil?
883
+
884
+ # resource path
885
+ path = "/slides/{name}/replaceText".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
886
+
887
+ # query parameters
888
+ query_params = {}
889
+ query_params[:'oldValue'] = old_value
890
+ query_params[:'newValue'] = new_value
891
+ query_params[:'ignoreCase'] = opts[:'ignore_case'] if opts[:'ignore_case']
892
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
893
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
894
+
895
+ # header parameters
896
+ header_params = {}
897
+
898
+ # HTTP header 'Accept' (if needed)
899
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
900
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
901
+
902
+ # HTTP header 'Content-Type'
903
+ _header_content_type = []
904
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
905
+
906
+ # form parameters
907
+ form_params = {}
908
+
909
+ # http body (model)
910
+ post_body = nil
911
+
912
+
913
+ auth_names = []
914
+ result = @api_client.call_api(:POST, path,
915
+ :header_params => header_params,
916
+ :query_params => query_params,
917
+ :form_params => form_params,
918
+ :body => post_body,
919
+ :auth_names => auth_names,
920
+ :return_type => 'PresentationStringReplaceResponse')
921
+ if Configuration.debugging
922
+ Configuration.logger.debug "API called: SlidesApi#post_slides_presentation_replace_text. Result: #{result.inspect}"
923
+ end
924
+ return result
925
+ end
926
+
927
+ # Saves presentation in html format with options
928
+ #
929
+ # @param name The presentation name
930
+ # @param options Tiff export options
931
+ # @param [Hash] opts the optional parameters
932
+ # @option opts [String] :password The password to open presentation.
933
+ # @option opts [String] :storage Document&#39;s storage.
934
+ # @option opts [String] :folder The presentation folder.
935
+ # @option opts [String] :out_path The optional output path.
936
+ # @return [File]
937
+ def post_slides_save_as_html(name, options, opts = {})
938
+ if Configuration.debugging
939
+ Configuration.logger.debug "Calling API: SlidesApi#post_slides_save_as_html ..."
940
+ end
941
+
942
+ # verify the required parameter 'name' is set
943
+ fail "Missing the required parameter 'name' when calling post_slides_save_as_html" if name.nil?
944
+
945
+ # verify the required parameter 'options' is set
946
+ fail "Missing the required parameter 'options' when calling post_slides_save_as_html" if options.nil?
947
+
948
+ # resource path
949
+ path = "/slides/{name}/saveAs/html".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
950
+
951
+ # query parameters
952
+ query_params = {}
953
+ query_params[:'password'] = opts[:'password'] if opts[:'password']
954
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
955
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
956
+ query_params[:'outPath'] = opts[:'out_path'] if opts[:'out_path']
957
+
958
+ # header parameters
959
+ header_params = {}
960
+
961
+ # HTTP header 'Accept' (if needed)
962
+ _header_accept = []
963
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
964
+
965
+ # HTTP header 'Content-Type'
966
+ _header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
967
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
968
+
969
+ # form parameters
970
+ form_params = {}
971
+
972
+ # http body (model)
973
+ post_body = @api_client.object_to_http_body(options)
974
+
975
+
976
+ auth_names = []
977
+ result = @api_client.call_api(:POST, path,
978
+ :header_params => header_params,
979
+ :query_params => query_params,
980
+ :form_params => form_params,
981
+ :body => post_body,
982
+ :auth_names => auth_names,
983
+ :return_type => 'File')
984
+ if Configuration.debugging
985
+ Configuration.logger.debug "API called: SlidesApi#post_slides_save_as_html. Result: #{result.inspect}"
986
+ end
987
+ return result
988
+ end
989
+
990
+ # Saves presentation in pdf format with options
991
+ #
992
+ # @param name The presentation name
993
+ # @param options Pdf export options
994
+ # @param [Hash] opts the optional parameters
995
+ # @option opts [String] :password The password to open presentation.
996
+ # @option opts [String] :storage Document&#39;s storage.
997
+ # @option opts [String] :folder The presentation folder.
998
+ # @option opts [String] :out_path The optional output path.
999
+ # @return [File]
1000
+ def post_slides_save_as_pdf(name, options, opts = {})
1001
+ if Configuration.debugging
1002
+ Configuration.logger.debug "Calling API: SlidesApi#post_slides_save_as_pdf ..."
1003
+ end
1004
+
1005
+ # verify the required parameter 'name' is set
1006
+ fail "Missing the required parameter 'name' when calling post_slides_save_as_pdf" if name.nil?
1007
+
1008
+ # verify the required parameter 'options' is set
1009
+ fail "Missing the required parameter 'options' when calling post_slides_save_as_pdf" if options.nil?
1010
+
1011
+ # resource path
1012
+ path = "/slides/{name}/saveAs/pdf".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
1013
+
1014
+ # query parameters
1015
+ query_params = {}
1016
+ query_params[:'password'] = opts[:'password'] if opts[:'password']
1017
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
1018
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
1019
+ query_params[:'outPath'] = opts[:'out_path'] if opts[:'out_path']
1020
+
1021
+ # header parameters
1022
+ header_params = {}
1023
+
1024
+ # HTTP header 'Accept' (if needed)
1025
+ _header_accept = []
1026
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1027
+
1028
+ # HTTP header 'Content-Type'
1029
+ _header_content_type = ['application/json']
1030
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1031
+
1032
+ # form parameters
1033
+ form_params = {}
1034
+
1035
+ # http body (model)
1036
+ post_body = @api_client.object_to_http_body(options)
1037
+
1038
+
1039
+ auth_names = []
1040
+ result = @api_client.call_api(:POST, path,
1041
+ :header_params => header_params,
1042
+ :query_params => query_params,
1043
+ :form_params => form_params,
1044
+ :body => post_body,
1045
+ :auth_names => auth_names,
1046
+ :return_type => 'File')
1047
+ if Configuration.debugging
1048
+ Configuration.logger.debug "API called: SlidesApi#post_slides_save_as_pdf. Result: #{result.inspect}"
1049
+ end
1050
+ return result
1051
+ end
1052
+
1053
+ # Saves presentation in tiff format with options
1054
+ #
1055
+ # @param name The presentation name
1056
+ # @param options Tiff export options
1057
+ # @param [Hash] opts the optional parameters
1058
+ # @option opts [String] :password The password to open presentation.
1059
+ # @option opts [String] :storage Document&#39;s storage.
1060
+ # @option opts [String] :folder The presentation folder.
1061
+ # @option opts [String] :out_path The optional output path.
1062
+ # @return [File]
1063
+ def post_slides_save_as_tiff(name, options, opts = {})
1064
+ if Configuration.debugging
1065
+ Configuration.logger.debug "Calling API: SlidesApi#post_slides_save_as_tiff ..."
1066
+ end
1067
+
1068
+ # verify the required parameter 'name' is set
1069
+ fail "Missing the required parameter 'name' when calling post_slides_save_as_tiff" if name.nil?
1070
+
1071
+ # verify the required parameter 'options' is set
1072
+ fail "Missing the required parameter 'options' when calling post_slides_save_as_tiff" if options.nil?
1073
+
1074
+ # resource path
1075
+ path = "/slides/{name}/saveAs/tiff".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
1076
+
1077
+ # query parameters
1078
+ query_params = {}
1079
+ query_params[:'password'] = opts[:'password'] if opts[:'password']
1080
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
1081
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
1082
+ query_params[:'outPath'] = opts[:'out_path'] if opts[:'out_path']
1083
+
1084
+ # header parameters
1085
+ header_params = {}
1086
+
1087
+ # HTTP header 'Accept' (if needed)
1088
+ _header_accept = []
1089
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1090
+
1091
+ # HTTP header 'Content-Type'
1092
+ _header_content_type = ['application/json']
1093
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1094
+
1095
+ # form parameters
1096
+ form_params = {}
1097
+
1098
+ # http body (model)
1099
+ post_body = @api_client.object_to_http_body(options)
1100
+
1101
+
1102
+ auth_names = []
1103
+ result = @api_client.call_api(:POST, path,
1104
+ :header_params => header_params,
1105
+ :query_params => query_params,
1106
+ :form_params => form_params,
1107
+ :body => post_body,
1108
+ :auth_names => auth_names,
1109
+ :return_type => 'File')
1110
+ if Configuration.debugging
1111
+ Configuration.logger.debug "API called: SlidesApi#post_slides_save_as_tiff. Result: #{result.inspect}"
1112
+ end
1113
+ return result
1114
+ end
1115
+
1116
+ # Read presentation slides info.
1117
+ #
1118
+ # @param name The presentation name.
1119
+ # @param [Hash] opts the optional parameters
1120
+ # @option opts [String] :folder The presentation folder.
1121
+ # @option opts [String] :storage Presentation storage.
1122
+ # @return [SlideListResponse]
1123
+ def get_slides_slides_list(name, opts = {})
1124
+ if Configuration.debugging
1125
+ Configuration.logger.debug "Calling API: SlidesApi#get_slides_slides_list ..."
1126
+ end
1127
+
1128
+ # verify the required parameter 'name' is set
1129
+ fail "Missing the required parameter 'name' when calling get_slides_slides_list" if name.nil?
1130
+
1131
+ # resource path
1132
+ path = "/slides/{name}/slides".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
1133
+
1134
+ # query parameters
1135
+ query_params = {}
1136
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
1137
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
1138
+
1139
+ # header parameters
1140
+ header_params = {}
1141
+
1142
+ # HTTP header 'Accept' (if needed)
1143
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
1144
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1145
+
1146
+ # HTTP header 'Content-Type'
1147
+ _header_content_type = []
1148
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1149
+
1150
+ # form parameters
1151
+ form_params = {}
1152
+
1153
+ # http body (model)
1154
+ post_body = nil
1155
+
1156
+
1157
+ auth_names = []
1158
+ result = @api_client.call_api(:GET, path,
1159
+ :header_params => header_params,
1160
+ :query_params => query_params,
1161
+ :form_params => form_params,
1162
+ :body => post_body,
1163
+ :auth_names => auth_names,
1164
+ :return_type => 'SlideListResponse')
1165
+ if Configuration.debugging
1166
+ Configuration.logger.debug "API called: SlidesApi#get_slides_slides_list. Result: #{result.inspect}"
1167
+ end
1168
+ return result
1169
+ end
1170
+
1171
+ #
1172
+ #
1173
+ # @param name The presentation name.
1174
+ # @param slide_to_clone
1175
+ # @param [Hash] opts the optional parameters
1176
+ # @option opts [String] :folder The presentation folder.
1177
+ # @option opts [String] :storage The presentation storage.
1178
+ # @return [SlideListResponse]
1179
+ def post_add_slide_copy(name, slide_to_clone, opts = {})
1180
+ if Configuration.debugging
1181
+ Configuration.logger.debug "Calling API: SlidesApi#post_add_slide_copy ..."
1182
+ end
1183
+
1184
+ # verify the required parameter 'name' is set
1185
+ fail "Missing the required parameter 'name' when calling post_add_slide_copy" if name.nil?
1186
+
1187
+ # verify the required parameter 'slide_to_clone' is set
1188
+ fail "Missing the required parameter 'slide_to_clone' when calling post_add_slide_copy" if slide_to_clone.nil?
1189
+
1190
+ # resource path
1191
+ path = "/slides/{name}/slides".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
1192
+
1193
+ # query parameters
1194
+ query_params = {}
1195
+ query_params[:'slideToClone'] = slide_to_clone
1196
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
1197
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
1198
+
1199
+ # header parameters
1200
+ header_params = {}
1201
+
1202
+ # HTTP header 'Accept' (if needed)
1203
+ _header_accept = ['application/json']
1204
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1205
+
1206
+ # HTTP header 'Content-Type'
1207
+ _header_content_type = ['application/json']
1208
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1209
+
1210
+ # form parameters
1211
+ form_params = {}
1212
+
1213
+ # http body (model)
1214
+ post_body = nil
1215
+
1216
+
1217
+ auth_names = []
1218
+ result = @api_client.call_api(:POST, path,
1219
+ :header_params => header_params,
1220
+ :query_params => query_params,
1221
+ :form_params => form_params,
1222
+ :body => post_body,
1223
+ :auth_names => auth_names,
1224
+ :return_type => 'SlideListResponse')
1225
+ if Configuration.debugging
1226
+ Configuration.logger.debug "API called: SlidesApi#post_add_slide_copy. Result: #{result.inspect}"
1227
+ end
1228
+ return result
1229
+ end
1230
+
1231
+ # Delete presentation slides.
1232
+ #
1233
+ # @param name The presentation name.
1234
+ # @param [Hash] opts the optional parameters
1235
+ # @option opts [String] :folder The presentation folder.
1236
+ # @option opts [String] :storage Presentation storage.
1237
+ # @return [SlideListResponse]
1238
+ def delete_slides_clean_slides_list(name, opts = {})
1239
+ if Configuration.debugging
1240
+ Configuration.logger.debug "Calling API: SlidesApi#delete_slides_clean_slides_list ..."
1241
+ end
1242
+
1243
+ # verify the required parameter 'name' is set
1244
+ fail "Missing the required parameter 'name' when calling delete_slides_clean_slides_list" if name.nil?
1245
+
1246
+ # resource path
1247
+ path = "/slides/{name}/slides".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
1248
+
1249
+ # query parameters
1250
+ query_params = {}
1251
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
1252
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
1253
+
1254
+ # header parameters
1255
+ header_params = {}
1256
+
1257
+ # HTTP header 'Accept' (if needed)
1258
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
1259
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1260
+
1261
+ # HTTP header 'Content-Type'
1262
+ _header_content_type = []
1263
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1264
+
1265
+ # form parameters
1266
+ form_params = {}
1267
+
1268
+ # http body (model)
1269
+ post_body = nil
1270
+
1271
+
1272
+ auth_names = []
1273
+ result = @api_client.call_api(:DELETE, path,
1274
+ :header_params => header_params,
1275
+ :query_params => query_params,
1276
+ :form_params => form_params,
1277
+ :body => post_body,
1278
+ :auth_names => auth_names,
1279
+ :return_type => 'SlideListResponse')
1280
+ if Configuration.debugging
1281
+ Configuration.logger.debug "API called: SlidesApi#delete_slides_clean_slides_list. Result: #{result.inspect}"
1282
+ end
1283
+ return result
1284
+ end
1285
+
1286
+ # Get slide in specified format
1287
+ #
1288
+ # @param name
1289
+ # @param slide_index
1290
+ # @param format
1291
+ # @param [Hash] opts the optional parameters
1292
+ # @option opts [Integer] :width
1293
+ # @option opts [Integer] :height
1294
+ # @option opts [String] :folder
1295
+ # @option opts [String] :storage
1296
+ # @return [File]
1297
+ def get_slide_with_format(name, slide_index, format, opts = {})
1298
+ if Configuration.debugging
1299
+ Configuration.logger.debug "Calling API: SlidesApi#get_slide_with_format ..."
1300
+ end
1301
+
1302
+ # verify the required parameter 'name' is set
1303
+ fail "Missing the required parameter 'name' when calling get_slide_with_format" if name.nil?
1304
+
1305
+ # verify the required parameter 'slide_index' is set
1306
+ fail "Missing the required parameter 'slide_index' when calling get_slide_with_format" if slide_index.nil?
1307
+
1308
+ # verify the required parameter 'format' is set
1309
+ fail "Missing the required parameter 'format' when calling get_slide_with_format" if format.nil?
1310
+
1311
+ # resource path
1312
+ path = "/slides/{name}/slides/{slideIndex}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s)
1313
+
1314
+ # query parameters
1315
+ query_params = {}
1316
+ query_params[:'format'] = format
1317
+ query_params[:'width'] = opts[:'width'] if opts[:'width']
1318
+ query_params[:'height'] = opts[:'height'] if opts[:'height']
1319
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
1320
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
1321
+
1322
+ # header parameters
1323
+ header_params = {}
1324
+
1325
+ # HTTP header 'Accept' (if needed)
1326
+ _header_accept = []
1327
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1328
+
1329
+ # HTTP header 'Content-Type'
1330
+ _header_content_type = ['application/json']
1331
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1332
+
1333
+ # form parameters
1334
+ form_params = {}
1335
+
1336
+ # http body (model)
1337
+ post_body = nil
1338
+
1339
+
1340
+ auth_names = []
1341
+ result = @api_client.call_api(:GET, path,
1342
+ :header_params => header_params,
1343
+ :query_params => query_params,
1344
+ :form_params => form_params,
1345
+ :body => post_body,
1346
+ :auth_names => auth_names,
1347
+ :return_type => 'File')
1348
+ if Configuration.debugging
1349
+ Configuration.logger.debug "API called: SlidesApi#get_slide_with_format. Result: #{result.inspect}"
1350
+ end
1351
+ return result
1352
+ end
1353
+
1354
+ # Delete presentation slide by its index.
1355
+ #
1356
+ # @param name The presentation name.
1357
+ # @param slide_index The slide index.
1358
+ # @param [Hash] opts the optional parameters
1359
+ # @option opts [String] :folder The presentation folder.
1360
+ # @option opts [String] :storage The presentation storage.
1361
+ # @return [SlideListResponse]
1362
+ def delete_slide_by_index(name, slide_index, opts = {})
1363
+ if Configuration.debugging
1364
+ Configuration.logger.debug "Calling API: SlidesApi#delete_slide_by_index ..."
1365
+ end
1366
+
1367
+ # verify the required parameter 'name' is set
1368
+ fail "Missing the required parameter 'name' when calling delete_slide_by_index" if name.nil?
1369
+
1370
+ # verify the required parameter 'slide_index' is set
1371
+ fail "Missing the required parameter 'slide_index' when calling delete_slide_by_index" if slide_index.nil?
1372
+
1373
+ # resource path
1374
+ path = "/slides/{name}/slides/{slideIndex}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s)
1375
+
1376
+ # query parameters
1377
+ query_params = {}
1378
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
1379
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
1380
+
1381
+ # header parameters
1382
+ header_params = {}
1383
+
1384
+ # HTTP header 'Accept' (if needed)
1385
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
1386
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1387
+
1388
+ # HTTP header 'Content-Type'
1389
+ _header_content_type = []
1390
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1391
+
1392
+ # form parameters
1393
+ form_params = {}
1394
+
1395
+ # http body (model)
1396
+ post_body = nil
1397
+
1398
+
1399
+ auth_names = []
1400
+ result = @api_client.call_api(:DELETE, path,
1401
+ :header_params => header_params,
1402
+ :query_params => query_params,
1403
+ :form_params => form_params,
1404
+ :body => post_body,
1405
+ :auth_names => auth_names,
1406
+ :return_type => 'SlideListResponse')
1407
+ if Configuration.debugging
1408
+ Configuration.logger.debug "API called: SlidesApi#delete_slide_by_index. Result: #{result.inspect}"
1409
+ end
1410
+ return result
1411
+ end
1412
+
1413
+ # Read presentation slide background color type.
1414
+ #
1415
+ # @param name
1416
+ # @param slide_index
1417
+ # @param [Hash] opts the optional parameters
1418
+ # @option opts [String] :folder
1419
+ # @option opts [String] :storage
1420
+ # @return [SlideBackgroundResponse]
1421
+ def get_slides_slide_background(name, slide_index, opts = {})
1422
+ if Configuration.debugging
1423
+ Configuration.logger.debug "Calling API: SlidesApi#get_slides_slide_background ..."
1424
+ end
1425
+
1426
+ # verify the required parameter 'name' is set
1427
+ fail "Missing the required parameter 'name' when calling get_slides_slide_background" if name.nil?
1428
+
1429
+ # verify the required parameter 'slide_index' is set
1430
+ fail "Missing the required parameter 'slide_index' when calling get_slides_slide_background" if slide_index.nil?
1431
+
1432
+ # resource path
1433
+ path = "/slides/{name}/slides/{slideIndex}/background".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s)
1434
+
1435
+ # query parameters
1436
+ query_params = {}
1437
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
1438
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
1439
+
1440
+ # header parameters
1441
+ header_params = {}
1442
+
1443
+ # HTTP header 'Accept' (if needed)
1444
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
1445
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1446
+
1447
+ # HTTP header 'Content-Type'
1448
+ _header_content_type = []
1449
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1450
+
1451
+ # form parameters
1452
+ form_params = {}
1453
+
1454
+ # http body (model)
1455
+ post_body = nil
1456
+
1457
+
1458
+ auth_names = []
1459
+ result = @api_client.call_api(:GET, path,
1460
+ :header_params => header_params,
1461
+ :query_params => query_params,
1462
+ :form_params => form_params,
1463
+ :body => post_body,
1464
+ :auth_names => auth_names,
1465
+ :return_type => 'SlideBackgroundResponse')
1466
+ if Configuration.debugging
1467
+ Configuration.logger.debug "API called: SlidesApi#get_slides_slide_background. Result: #{result.inspect}"
1468
+ end
1469
+ return result
1470
+ end
1471
+
1472
+ # Set presentation slide background color.
1473
+ #
1474
+ # @param name
1475
+ # @param slide_index
1476
+ # @param color
1477
+ # @param [Hash] opts the optional parameters
1478
+ # @option opts [String] :folder
1479
+ # @option opts [String] :storage
1480
+ # @return [SlideBackgroundResponse]
1481
+ def put_slides_slide_background(name, slide_index, color, opts = {})
1482
+ if Configuration.debugging
1483
+ Configuration.logger.debug "Calling API: SlidesApi#put_slides_slide_background ..."
1484
+ end
1485
+
1486
+ # verify the required parameter 'name' is set
1487
+ fail "Missing the required parameter 'name' when calling put_slides_slide_background" if name.nil?
1488
+
1489
+ # verify the required parameter 'slide_index' is set
1490
+ fail "Missing the required parameter 'slide_index' when calling put_slides_slide_background" if slide_index.nil?
1491
+
1492
+ # verify the required parameter 'color' is set
1493
+ fail "Missing the required parameter 'color' when calling put_slides_slide_background" if color.nil?
1494
+
1495
+ # resource path
1496
+ path = "/slides/{name}/slides/{slideIndex}/background".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s)
1497
+
1498
+ # query parameters
1499
+ query_params = {}
1500
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
1501
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
1502
+
1503
+ # header parameters
1504
+ header_params = {}
1505
+
1506
+ # HTTP header 'Accept' (if needed)
1507
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
1508
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1509
+
1510
+ # HTTP header 'Content-Type'
1511
+ _header_content_type = ['application/json']
1512
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1513
+
1514
+ # form parameters
1515
+ form_params = {}
1516
+
1517
+ # http body (model)
1518
+ post_body = @api_client.object_to_http_body(color)
1519
+
1520
+
1521
+ auth_names = []
1522
+ result = @api_client.call_api(:PUT, path,
1523
+ :header_params => header_params,
1524
+ :query_params => query_params,
1525
+ :form_params => form_params,
1526
+ :body => post_body,
1527
+ :auth_names => auth_names,
1528
+ :return_type => 'SlideBackgroundResponse')
1529
+ if Configuration.debugging
1530
+ Configuration.logger.debug "API called: SlidesApi#put_slides_slide_background. Result: #{result.inspect}"
1531
+ end
1532
+ return result
1533
+ end
1534
+
1535
+ # Remove presentation slide background color.
1536
+ #
1537
+ # @param name
1538
+ # @param slide_index
1539
+ # @param [Hash] opts the optional parameters
1540
+ # @option opts [String] :folder
1541
+ # @option opts [String] :storage
1542
+ # @return [SlideBackgroundResponse]
1543
+ def delete_slides_slide_background(name, slide_index, opts = {})
1544
+ if Configuration.debugging
1545
+ Configuration.logger.debug "Calling API: SlidesApi#delete_slides_slide_background ..."
1546
+ end
1547
+
1548
+ # verify the required parameter 'name' is set
1549
+ fail "Missing the required parameter 'name' when calling delete_slides_slide_background" if name.nil?
1550
+
1551
+ # verify the required parameter 'slide_index' is set
1552
+ fail "Missing the required parameter 'slide_index' when calling delete_slides_slide_background" if slide_index.nil?
1553
+
1554
+ # resource path
1555
+ path = "/slides/{name}/slides/{slideIndex}/background".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s)
1556
+
1557
+ # query parameters
1558
+ query_params = {}
1559
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
1560
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
1561
+
1562
+ # header parameters
1563
+ header_params = {}
1564
+
1565
+ # HTTP header 'Accept' (if needed)
1566
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
1567
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1568
+
1569
+ # HTTP header 'Content-Type'
1570
+ _header_content_type = []
1571
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1572
+
1573
+ # form parameters
1574
+ form_params = {}
1575
+
1576
+ # http body (model)
1577
+ post_body = nil
1578
+
1579
+
1580
+ auth_names = []
1581
+ result = @api_client.call_api(:DELETE, path,
1582
+ :header_params => header_params,
1583
+ :query_params => query_params,
1584
+ :form_params => form_params,
1585
+ :body => post_body,
1586
+ :auth_names => auth_names,
1587
+ :return_type => 'SlideBackgroundResponse')
1588
+ if Configuration.debugging
1589
+ Configuration.logger.debug "API called: SlidesApi#delete_slides_slide_background. Result: #{result.inspect}"
1590
+ end
1591
+ return result
1592
+ end
1593
+
1594
+ # Read presentation slide comments.
1595
+ #
1596
+ # @param name
1597
+ # @param slide_index
1598
+ # @param [Hash] opts the optional parameters
1599
+ # @option opts [String] :folder
1600
+ # @option opts [String] :storage
1601
+ # @return [SlideCommentsResponse]
1602
+ def get_slides_slide_comments(name, slide_index, opts = {})
1603
+ if Configuration.debugging
1604
+ Configuration.logger.debug "Calling API: SlidesApi#get_slides_slide_comments ..."
1605
+ end
1606
+
1607
+ # verify the required parameter 'name' is set
1608
+ fail "Missing the required parameter 'name' when calling get_slides_slide_comments" if name.nil?
1609
+
1610
+ # verify the required parameter 'slide_index' is set
1611
+ fail "Missing the required parameter 'slide_index' when calling get_slides_slide_comments" if slide_index.nil?
1612
+
1613
+ # resource path
1614
+ path = "/slides/{name}/slides/{slideIndex}/comments".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s)
1615
+
1616
+ # query parameters
1617
+ query_params = {}
1618
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
1619
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
1620
+
1621
+ # header parameters
1622
+ header_params = {}
1623
+
1624
+ # HTTP header 'Accept' (if needed)
1625
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
1626
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1627
+
1628
+ # HTTP header 'Content-Type'
1629
+ _header_content_type = []
1630
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1631
+
1632
+ # form parameters
1633
+ form_params = {}
1634
+
1635
+ # http body (model)
1636
+ post_body = nil
1637
+
1638
+
1639
+ auth_names = []
1640
+ result = @api_client.call_api(:GET, path,
1641
+ :header_params => header_params,
1642
+ :query_params => query_params,
1643
+ :form_params => form_params,
1644
+ :body => post_body,
1645
+ :auth_names => auth_names,
1646
+ :return_type => 'SlideCommentsResponse')
1647
+ if Configuration.debugging
1648
+ Configuration.logger.debug "API called: SlidesApi#get_slides_slide_comments. Result: #{result.inspect}"
1649
+ end
1650
+ return result
1651
+ end
1652
+
1653
+ # Read slide images info.
1654
+ #
1655
+ # @param name Presentation name.
1656
+ # @param slide_index The slide index.
1657
+ # @param [Hash] opts the optional parameters
1658
+ # @option opts [String] :folder Presentation folder.
1659
+ # @option opts [String] :storage Document&#39;s storage.
1660
+ # @return [ImagesResponse]
1661
+ def get_slides_slide_images(name, slide_index, opts = {})
1662
+ if Configuration.debugging
1663
+ Configuration.logger.debug "Calling API: SlidesApi#get_slides_slide_images ..."
1664
+ end
1665
+
1666
+ # verify the required parameter 'name' is set
1667
+ fail "Missing the required parameter 'name' when calling get_slides_slide_images" if name.nil?
1668
+
1669
+ # verify the required parameter 'slide_index' is set
1670
+ fail "Missing the required parameter 'slide_index' when calling get_slides_slide_images" if slide_index.nil?
1671
+
1672
+ # resource path
1673
+ path = "/slides/{name}/slides/{slideIndex}/images".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s)
1674
+
1675
+ # query parameters
1676
+ query_params = {}
1677
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
1678
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
1679
+
1680
+ # header parameters
1681
+ header_params = {}
1682
+
1683
+ # HTTP header 'Accept' (if needed)
1684
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
1685
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1686
+
1687
+ # HTTP header 'Content-Type'
1688
+ _header_content_type = []
1689
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1690
+
1691
+ # form parameters
1692
+ form_params = {}
1693
+
1694
+ # http body (model)
1695
+ post_body = nil
1696
+
1697
+
1698
+ auth_names = []
1699
+ result = @api_client.call_api(:GET, path,
1700
+ :header_params => header_params,
1701
+ :query_params => query_params,
1702
+ :form_params => form_params,
1703
+ :body => post_body,
1704
+ :auth_names => auth_names,
1705
+ :return_type => 'ImagesResponse')
1706
+ if Configuration.debugging
1707
+ Configuration.logger.debug "API called: SlidesApi#get_slides_slide_images. Result: #{result.inspect}"
1708
+ end
1709
+ return result
1710
+ end
1711
+
1712
+ # Read slide placeholders info.
1713
+ #
1714
+ # @param name Presentation name.
1715
+ # @param slide_index Slide index.
1716
+ # @param [Hash] opts the optional parameters
1717
+ # @option opts [String] :folder Presentation folder.
1718
+ # @option opts [String] :storage Document&#39;s storage.
1719
+ # @return [PlaceholdersResponse]
1720
+ def get_slides_placeholders(name, slide_index, opts = {})
1721
+ if Configuration.debugging
1722
+ Configuration.logger.debug "Calling API: SlidesApi#get_slides_placeholders ..."
1723
+ end
1724
+
1725
+ # verify the required parameter 'name' is set
1726
+ fail "Missing the required parameter 'name' when calling get_slides_placeholders" if name.nil?
1727
+
1728
+ # verify the required parameter 'slide_index' is set
1729
+ fail "Missing the required parameter 'slide_index' when calling get_slides_placeholders" if slide_index.nil?
1730
+
1731
+ # resource path
1732
+ path = "/slides/{name}/slides/{slideIndex}/placeholders".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s)
1733
+
1734
+ # query parameters
1735
+ query_params = {}
1736
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
1737
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
1738
+
1739
+ # header parameters
1740
+ header_params = {}
1741
+
1742
+ # HTTP header 'Accept' (if needed)
1743
+ _header_accept = ['application/json']
1744
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1745
+
1746
+ # HTTP header 'Content-Type'
1747
+ _header_content_type = []
1748
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1749
+
1750
+ # form parameters
1751
+ form_params = {}
1752
+
1753
+ # http body (model)
1754
+ post_body = nil
1755
+
1756
+
1757
+ auth_names = []
1758
+ result = @api_client.call_api(:GET, path,
1759
+ :header_params => header_params,
1760
+ :query_params => query_params,
1761
+ :form_params => form_params,
1762
+ :body => post_body,
1763
+ :auth_names => auth_names,
1764
+ :return_type => 'PlaceholdersResponse')
1765
+ if Configuration.debugging
1766
+ Configuration.logger.debug "API called: SlidesApi#get_slides_placeholders. Result: #{result.inspect}"
1767
+ end
1768
+ return result
1769
+ end
1770
+
1771
+ # Read slide placeholder info.
1772
+ #
1773
+ # @param name Presentation name.
1774
+ # @param slide_index Slide index.
1775
+ # @param placeholder_index Pleceholder index.
1776
+ # @param [Hash] opts the optional parameters
1777
+ # @option opts [String] :folder Presentation folder.
1778
+ # @option opts [String] :storage Document&#39;s storage.
1779
+ # @return [PlaceholderResponse]
1780
+ def get_slides_placeholder(name, slide_index, placeholder_index, opts = {})
1781
+ if Configuration.debugging
1782
+ Configuration.logger.debug "Calling API: SlidesApi#get_slides_placeholder ..."
1783
+ end
1784
+
1785
+ # verify the required parameter 'name' is set
1786
+ fail "Missing the required parameter 'name' when calling get_slides_placeholder" if name.nil?
1787
+
1788
+ # verify the required parameter 'slide_index' is set
1789
+ fail "Missing the required parameter 'slide_index' when calling get_slides_placeholder" if slide_index.nil?
1790
+
1791
+ # verify the required parameter 'placeholder_index' is set
1792
+ fail "Missing the required parameter 'placeholder_index' when calling get_slides_placeholder" if placeholder_index.nil?
1793
+
1794
+ # resource path
1795
+ path = "/slides/{name}/slides/{slideIndex}/placeholders/{placeholderIndex}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s).sub('{' + 'placeholderIndex' + '}', placeholder_index.to_s)
1796
+
1797
+ # query parameters
1798
+ query_params = {}
1799
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
1800
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
1801
+
1802
+ # header parameters
1803
+ header_params = {}
1804
+
1805
+ # HTTP header 'Accept' (if needed)
1806
+ _header_accept = ['application/json']
1807
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1808
+
1809
+ # HTTP header 'Content-Type'
1810
+ _header_content_type = []
1811
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1812
+
1813
+ # form parameters
1814
+ form_params = {}
1815
+
1816
+ # http body (model)
1817
+ post_body = nil
1818
+
1819
+
1820
+ auth_names = []
1821
+ result = @api_client.call_api(:GET, path,
1822
+ :header_params => header_params,
1823
+ :query_params => query_params,
1824
+ :form_params => form_params,
1825
+ :body => post_body,
1826
+ :auth_names => auth_names,
1827
+ :return_type => 'PlaceholderResponse')
1828
+ if Configuration.debugging
1829
+ Configuration.logger.debug "API called: SlidesApi#get_slides_placeholder. Result: #{result.inspect}"
1830
+ end
1831
+ return result
1832
+ end
1833
+
1834
+ # Replace text by a new value.
1835
+ #
1836
+ # @param name Presentation name.
1837
+ # @param slide_index Slide&#39;s index.
1838
+ # @param old_value Text to replace.
1839
+ # @param new_value New text value.
1840
+ # @param [Hash] opts the optional parameters
1841
+ # @option opts [BOOLEAN] :ignore_case Is case must be ignored.
1842
+ # @option opts [String] :folder Presentation folder.
1843
+ # @option opts [String] :storage Presentation storage.
1844
+ # @return [SlideStringReplaceResponse]
1845
+ def post_slides_slide_replace_text(name, slide_index, old_value, new_value, opts = {})
1846
+ if Configuration.debugging
1847
+ Configuration.logger.debug "Calling API: SlidesApi#post_slides_slide_replace_text ..."
1848
+ end
1849
+
1850
+ # verify the required parameter 'name' is set
1851
+ fail "Missing the required parameter 'name' when calling post_slides_slide_replace_text" if name.nil?
1852
+
1853
+ # verify the required parameter 'slide_index' is set
1854
+ fail "Missing the required parameter 'slide_index' when calling post_slides_slide_replace_text" if slide_index.nil?
1855
+
1856
+ # verify the required parameter 'old_value' is set
1857
+ fail "Missing the required parameter 'old_value' when calling post_slides_slide_replace_text" if old_value.nil?
1858
+
1859
+ # verify the required parameter 'new_value' is set
1860
+ fail "Missing the required parameter 'new_value' when calling post_slides_slide_replace_text" if new_value.nil?
1861
+
1862
+ # resource path
1863
+ path = "/slides/{name}/slides/{slideIndex}/replaceText".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s)
1864
+
1865
+ # query parameters
1866
+ query_params = {}
1867
+ query_params[:'oldValue'] = old_value
1868
+ query_params[:'newValue'] = new_value
1869
+ query_params[:'ignoreCase'] = opts[:'ignore_case'] if opts[:'ignore_case']
1870
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
1871
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
1872
+
1873
+ # header parameters
1874
+ header_params = {}
1875
+
1876
+ # HTTP header 'Accept' (if needed)
1877
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
1878
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1879
+
1880
+ # HTTP header 'Content-Type'
1881
+ _header_content_type = []
1882
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1883
+
1884
+ # form parameters
1885
+ form_params = {}
1886
+
1887
+ # http body (model)
1888
+ post_body = nil
1889
+
1890
+
1891
+ auth_names = []
1892
+ result = @api_client.call_api(:POST, path,
1893
+ :header_params => header_params,
1894
+ :query_params => query_params,
1895
+ :form_params => form_params,
1896
+ :body => post_body,
1897
+ :auth_names => auth_names,
1898
+ :return_type => 'SlideStringReplaceResponse')
1899
+ if Configuration.debugging
1900
+ Configuration.logger.debug "API called: SlidesApi#post_slides_slide_replace_text. Result: #{result.inspect}"
1901
+ end
1902
+ return result
1903
+ end
1904
+
1905
+ # Read slides shapes info.
1906
+ #
1907
+ # @param name Presentation name.
1908
+ # @param slide_index Slide index.
1909
+ # @param [Hash] opts the optional parameters
1910
+ # @option opts [String] :folder Presentation folder.
1911
+ # @option opts [String] :storage Presentation storage.
1912
+ # @return [ShapeResponse]
1913
+ def get_slides_slide_shapes(name, slide_index, opts = {})
1914
+ if Configuration.debugging
1915
+ Configuration.logger.debug "Calling API: SlidesApi#get_slides_slide_shapes ..."
1916
+ end
1917
+
1918
+ # verify the required parameter 'name' is set
1919
+ fail "Missing the required parameter 'name' when calling get_slides_slide_shapes" if name.nil?
1920
+
1921
+ # verify the required parameter 'slide_index' is set
1922
+ fail "Missing the required parameter 'slide_index' when calling get_slides_slide_shapes" if slide_index.nil?
1923
+
1924
+ # resource path
1925
+ path = "/slides/{name}/slides/{slideIndex}/shapes".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s)
1926
+
1927
+ # query parameters
1928
+ query_params = {}
1929
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
1930
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
1931
+
1932
+ # header parameters
1933
+ header_params = {}
1934
+
1935
+ # HTTP header 'Accept' (if needed)
1936
+ _header_accept = ['application/json']
1937
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1938
+
1939
+ # HTTP header 'Content-Type'
1940
+ _header_content_type = []
1941
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1942
+
1943
+ # form parameters
1944
+ form_params = {}
1945
+
1946
+ # http body (model)
1947
+ post_body = nil
1948
+
1949
+
1950
+ auth_names = []
1951
+ result = @api_client.call_api(:GET, path,
1952
+ :header_params => header_params,
1953
+ :query_params => query_params,
1954
+ :form_params => form_params,
1955
+ :body => post_body,
1956
+ :auth_names => auth_names,
1957
+ :return_type => 'ShapeResponse')
1958
+ if Configuration.debugging
1959
+ Configuration.logger.debug "API called: SlidesApi#get_slides_slide_shapes. Result: #{result.inspect}"
1960
+ end
1961
+ return result
1962
+ end
1963
+
1964
+ # Creates new shape.
1965
+ #
1966
+ # @param name Presentation name.
1967
+ # @param slide_index Slide index.
1968
+ # @param shape Shape.
1969
+ # @param [Hash] opts the optional parameters
1970
+ # @option opts [String] :folder Presentation folder.
1971
+ # @option opts [String] :storage Presentation storage.
1972
+ # @return [NewShapeResponse]
1973
+ def post_add_new_shape(name, slide_index, shape, opts = {})
1974
+ if Configuration.debugging
1975
+ Configuration.logger.debug "Calling API: SlidesApi#post_add_new_shape ..."
1976
+ end
1977
+
1978
+ # verify the required parameter 'name' is set
1979
+ fail "Missing the required parameter 'name' when calling post_add_new_shape" if name.nil?
1980
+
1981
+ # verify the required parameter 'slide_index' is set
1982
+ fail "Missing the required parameter 'slide_index' when calling post_add_new_shape" if slide_index.nil?
1983
+
1984
+ # verify the required parameter 'shape' is set
1985
+ fail "Missing the required parameter 'shape' when calling post_add_new_shape" if shape.nil?
1986
+
1987
+ # resource path
1988
+ path = "/slides/{name}/slides/{slideIndex}/shapes".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s)
1989
+
1990
+ # query parameters
1991
+ query_params = {}
1992
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
1993
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
1994
+
1995
+ # header parameters
1996
+ header_params = {}
1997
+
1998
+ # HTTP header 'Accept' (if needed)
1999
+ _header_accept = ['application/json']
2000
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
2001
+
2002
+ # HTTP header 'Content-Type'
2003
+ _header_content_type = ['application/json']
2004
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
2005
+
2006
+ # form parameters
2007
+ form_params = {}
2008
+
2009
+ # http body (model)
2010
+ post_body = @api_client.object_to_http_body(shape)
2011
+
2012
+
2013
+ auth_names = []
2014
+ result = @api_client.call_api(:POST, path,
2015
+ :header_params => header_params,
2016
+ :query_params => query_params,
2017
+ :form_params => form_params,
2018
+ :body => post_body,
2019
+ :auth_names => auth_names,
2020
+ :return_type => 'NewShapeResponse')
2021
+ if Configuration.debugging
2022
+ Configuration.logger.debug "API called: SlidesApi#post_add_new_shape. Result: #{result.inspect}"
2023
+ end
2024
+ return result
2025
+ end
2026
+
2027
+ # Render shape to specified picture format.
2028
+ #
2029
+ # @param name Presentation name.
2030
+ # @param slide_index Slide index.
2031
+ # @param shape_index Index of shape starting from 1
2032
+ # @param format Export picture format.
2033
+ # @param [Hash] opts the optional parameters
2034
+ # @option opts [String] :folder Presentation folder.
2035
+ # @option opts [String] :storage Presentation storage.
2036
+ # @option opts [Float] :scale_x X scale ratio.
2037
+ # @option opts [Float] :scale_y Y scale ratio.
2038
+ # @option opts [String] :bounds Shape thumbnail bounds type.
2039
+ # @return [File]
2040
+ def get_shape_with_format(name, slide_index, shape_index, format, opts = {})
2041
+ if Configuration.debugging
2042
+ Configuration.logger.debug "Calling API: SlidesApi#get_shape_with_format ..."
2043
+ end
2044
+
2045
+ # verify the required parameter 'name' is set
2046
+ fail "Missing the required parameter 'name' when calling get_shape_with_format" if name.nil?
2047
+
2048
+ # verify the required parameter 'slide_index' is set
2049
+ fail "Missing the required parameter 'slide_index' when calling get_shape_with_format" if slide_index.nil?
2050
+
2051
+ # verify the required parameter 'shape_index' is set
2052
+ fail "Missing the required parameter 'shape_index' when calling get_shape_with_format" if shape_index.nil?
2053
+
2054
+ # verify the required parameter 'format' is set
2055
+ fail "Missing the required parameter 'format' when calling get_shape_with_format" if format.nil?
2056
+
2057
+ # resource path
2058
+ path = "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s).sub('{' + 'shapeIndex' + '}', shape_index.to_s)
2059
+
2060
+ # query parameters
2061
+ query_params = {}
2062
+ query_params[:'format'] = format
2063
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
2064
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
2065
+ query_params[:'scaleX'] = opts[:'scale_x'] if opts[:'scale_x']
2066
+ query_params[:'scaleY'] = opts[:'scale_y'] if opts[:'scale_y']
2067
+ query_params[:'bounds'] = opts[:'bounds'] if opts[:'bounds']
2068
+
2069
+ # header parameters
2070
+ header_params = {}
2071
+
2072
+ # HTTP header 'Accept' (if needed)
2073
+ _header_accept = []
2074
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
2075
+
2076
+ # HTTP header 'Content-Type'
2077
+ _header_content_type = []
2078
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
2079
+
2080
+ # form parameters
2081
+ form_params = {}
2082
+
2083
+ # http body (model)
2084
+ post_body = nil
2085
+
2086
+
2087
+ auth_names = []
2088
+ result = @api_client.call_api(:GET, path,
2089
+ :header_params => header_params,
2090
+ :query_params => query_params,
2091
+ :form_params => form_params,
2092
+ :body => post_body,
2093
+ :auth_names => auth_names,
2094
+ :return_type => 'File')
2095
+ if Configuration.debugging
2096
+ Configuration.logger.debug "API called: SlidesApi#get_shape_with_format. Result: #{result.inspect}"
2097
+ end
2098
+ return result
2099
+ end
2100
+
2101
+ # Reads a list of paragraphs in shape&#39;s textBody.
2102
+ #
2103
+ # @param name Presentation name.
2104
+ # @param slide_index Index of slide starting from 1
2105
+ # @param shape_index Index of shape starting from 1
2106
+ # @param [Hash] opts the optional parameters
2107
+ # @option opts [String] :folder Presentation folder.
2108
+ # @option opts [String] :storage Presentation storage.
2109
+ # @return [ShapeParagraphsResponse]
2110
+ def get_slide_shape_paragraphs(name, slide_index, shape_index, opts = {})
2111
+ if Configuration.debugging
2112
+ Configuration.logger.debug "Calling API: SlidesApi#get_slide_shape_paragraphs ..."
2113
+ end
2114
+
2115
+ # verify the required parameter 'name' is set
2116
+ fail "Missing the required parameter 'name' when calling get_slide_shape_paragraphs" if name.nil?
2117
+
2118
+ # verify the required parameter 'slide_index' is set
2119
+ fail "Missing the required parameter 'slide_index' when calling get_slide_shape_paragraphs" if slide_index.nil?
2120
+
2121
+ # verify the required parameter 'shape_index' is set
2122
+ fail "Missing the required parameter 'shape_index' when calling get_slide_shape_paragraphs" if shape_index.nil?
2123
+
2124
+ # resource path
2125
+ path = "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s).sub('{' + 'shapeIndex' + '}', shape_index.to_s)
2126
+
2127
+ # query parameters
2128
+ query_params = {}
2129
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
2130
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
2131
+
2132
+ # header parameters
2133
+ header_params = {}
2134
+
2135
+ # HTTP header 'Accept' (if needed)
2136
+ _header_accept = ['application/json']
2137
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
2138
+
2139
+ # HTTP header 'Content-Type'
2140
+ _header_content_type = []
2141
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
2142
+
2143
+ # form parameters
2144
+ form_params = {}
2145
+
2146
+ # http body (model)
2147
+ post_body = nil
2148
+
2149
+
2150
+ auth_names = []
2151
+ result = @api_client.call_api(:GET, path,
2152
+ :header_params => header_params,
2153
+ :query_params => query_params,
2154
+ :form_params => form_params,
2155
+ :body => post_body,
2156
+ :auth_names => auth_names,
2157
+ :return_type => 'ShapeParagraphsResponse')
2158
+ if Configuration.debugging
2159
+ Configuration.logger.debug "API called: SlidesApi#get_slide_shape_paragraphs. Result: #{result.inspect}"
2160
+ end
2161
+ return result
2162
+ end
2163
+
2164
+ # Reads paragraph in shape&#39;s textBody.
2165
+ #
2166
+ # @param name Presentation name.
2167
+ # @param slide_index Index of slide starting from 1
2168
+ # @param shape_index Index of shape starting from 1
2169
+ # @param paragraph_index Index of paragraph starting from 1
2170
+ # @param [Hash] opts the optional parameters
2171
+ # @option opts [String] :folder Presentation folder.
2172
+ # @option opts [String] :storage Document&#39;s storage.
2173
+ # @return [ShapeParagraphResponse]
2174
+ def get_shape_paragraph(name, slide_index, shape_index, paragraph_index, opts = {})
2175
+ if Configuration.debugging
2176
+ Configuration.logger.debug "Calling API: SlidesApi#get_shape_paragraph ..."
2177
+ end
2178
+
2179
+ # verify the required parameter 'name' is set
2180
+ fail "Missing the required parameter 'name' when calling get_shape_paragraph" if name.nil?
2181
+
2182
+ # verify the required parameter 'slide_index' is set
2183
+ fail "Missing the required parameter 'slide_index' when calling get_shape_paragraph" if slide_index.nil?
2184
+
2185
+ # verify the required parameter 'shape_index' is set
2186
+ fail "Missing the required parameter 'shape_index' when calling get_shape_paragraph" if shape_index.nil?
2187
+
2188
+ # verify the required parameter 'paragraph_index' is set
2189
+ fail "Missing the required parameter 'paragraph_index' when calling get_shape_paragraph" if paragraph_index.nil?
2190
+
2191
+ # resource path
2192
+ path = "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s).sub('{' + 'shapeIndex' + '}', shape_index.to_s).sub('{' + 'paragraphIndex' + '}', paragraph_index.to_s)
2193
+
2194
+ # query parameters
2195
+ query_params = {}
2196
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
2197
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
2198
+
2199
+ # header parameters
2200
+ header_params = {}
2201
+
2202
+ # HTTP header 'Accept' (if needed)
2203
+ _header_accept = ['application/json']
2204
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
2205
+
2206
+ # HTTP header 'Content-Type'
2207
+ _header_content_type = []
2208
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
2209
+
2210
+ # form parameters
2211
+ form_params = {}
2212
+
2213
+ # http body (model)
2214
+ post_body = nil
2215
+
2216
+
2217
+ auth_names = []
2218
+ result = @api_client.call_api(:GET, path,
2219
+ :header_params => header_params,
2220
+ :query_params => query_params,
2221
+ :form_params => form_params,
2222
+ :body => post_body,
2223
+ :auth_names => auth_names,
2224
+ :return_type => 'ShapeParagraphResponse')
2225
+ if Configuration.debugging
2226
+ Configuration.logger.debug "API called: SlidesApi#get_shape_paragraph. Result: #{result.inspect}"
2227
+ end
2228
+ return result
2229
+ end
2230
+
2231
+ # Reads paragraph portion in shape&#39;s textBody.
2232
+ #
2233
+ # @param name Presentation name.
2234
+ # @param slide_index Index of slide starting from 1
2235
+ # @param shape_index Index of shape starting from 1
2236
+ # @param paragraph_index Index of paragraph starting from 1
2237
+ # @param portion_index Index of portion starting from 1
2238
+ # @param [Hash] opts the optional parameters
2239
+ # @option opts [String] :folder Presentation folder.
2240
+ # @option opts [String] :storage Document&#39;s storage.
2241
+ # @return [ParagraphPortionResponse]
2242
+ def get_paragraph_portion(name, slide_index, shape_index, paragraph_index, portion_index, opts = {})
2243
+ if Configuration.debugging
2244
+ Configuration.logger.debug "Calling API: SlidesApi#get_paragraph_portion ..."
2245
+ end
2246
+
2247
+ # verify the required parameter 'name' is set
2248
+ fail "Missing the required parameter 'name' when calling get_paragraph_portion" if name.nil?
2249
+
2250
+ # verify the required parameter 'slide_index' is set
2251
+ fail "Missing the required parameter 'slide_index' when calling get_paragraph_portion" if slide_index.nil?
2252
+
2253
+ # verify the required parameter 'shape_index' is set
2254
+ fail "Missing the required parameter 'shape_index' when calling get_paragraph_portion" if shape_index.nil?
2255
+
2256
+ # verify the required parameter 'paragraph_index' is set
2257
+ fail "Missing the required parameter 'paragraph_index' when calling get_paragraph_portion" if paragraph_index.nil?
2258
+
2259
+ # verify the required parameter 'portion_index' is set
2260
+ fail "Missing the required parameter 'portion_index' when calling get_paragraph_portion" if portion_index.nil?
2261
+
2262
+ # resource path
2263
+ path = "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s).sub('{' + 'shapeIndex' + '}', shape_index.to_s).sub('{' + 'paragraphIndex' + '}', paragraph_index.to_s).sub('{' + 'portionIndex' + '}', portion_index.to_s)
2264
+
2265
+ # query parameters
2266
+ query_params = {}
2267
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
2268
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
2269
+
2270
+ # header parameters
2271
+ header_params = {}
2272
+
2273
+ # HTTP header 'Accept' (if needed)
2274
+ _header_accept = ['application/json']
2275
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
2276
+
2277
+ # HTTP header 'Content-Type'
2278
+ _header_content_type = []
2279
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
2280
+
2281
+ # form parameters
2282
+ form_params = {}
2283
+
2284
+ # http body (model)
2285
+ post_body = nil
2286
+
2287
+
2288
+ auth_names = []
2289
+ result = @api_client.call_api(:GET, path,
2290
+ :header_params => header_params,
2291
+ :query_params => query_params,
2292
+ :form_params => form_params,
2293
+ :body => post_body,
2294
+ :auth_names => auth_names,
2295
+ :return_type => 'ParagraphPortionResponse')
2296
+ if Configuration.debugging
2297
+ Configuration.logger.debug "API called: SlidesApi#get_paragraph_portion. Result: #{result.inspect}"
2298
+ end
2299
+ return result
2300
+ end
2301
+
2302
+ # Updates paragraph portion properties.
2303
+ #
2304
+ # @param name
2305
+ # @param slide_index
2306
+ # @param shape_index
2307
+ # @param paragraph_index
2308
+ # @param portion_index
2309
+ # @param portion
2310
+ # @param [Hash] opts the optional parameters
2311
+ # @option opts [String] :folder
2312
+ # @option opts [String] :storage
2313
+ # @return [ParagraphPortionResponse]
2314
+ def put_set_paragraph_portion_properties(name, slide_index, shape_index, paragraph_index, portion_index, portion, opts = {})
2315
+ if Configuration.debugging
2316
+ Configuration.logger.debug "Calling API: SlidesApi#put_set_paragraph_portion_properties ..."
2317
+ end
2318
+
2319
+ # verify the required parameter 'name' is set
2320
+ fail "Missing the required parameter 'name' when calling put_set_paragraph_portion_properties" if name.nil?
2321
+
2322
+ # verify the required parameter 'slide_index' is set
2323
+ fail "Missing the required parameter 'slide_index' when calling put_set_paragraph_portion_properties" if slide_index.nil?
2324
+
2325
+ # verify the required parameter 'shape_index' is set
2326
+ fail "Missing the required parameter 'shape_index' when calling put_set_paragraph_portion_properties" if shape_index.nil?
2327
+
2328
+ # verify the required parameter 'paragraph_index' is set
2329
+ fail "Missing the required parameter 'paragraph_index' when calling put_set_paragraph_portion_properties" if paragraph_index.nil?
2330
+
2331
+ # verify the required parameter 'portion_index' is set
2332
+ fail "Missing the required parameter 'portion_index' when calling put_set_paragraph_portion_properties" if portion_index.nil?
2333
+
2334
+ # verify the required parameter 'portion' is set
2335
+ fail "Missing the required parameter 'portion' when calling put_set_paragraph_portion_properties" if portion.nil?
2336
+
2337
+ # resource path
2338
+ path = "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s).sub('{' + 'shapeIndex' + '}', shape_index.to_s).sub('{' + 'paragraphIndex' + '}', paragraph_index.to_s).sub('{' + 'portionIndex' + '}', portion_index.to_s)
2339
+
2340
+ # query parameters
2341
+ query_params = {}
2342
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
2343
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
2344
+
2345
+ # header parameters
2346
+ header_params = {}
2347
+
2348
+ # HTTP header 'Accept' (if needed)
2349
+ _header_accept = ['application/json']
2350
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
2351
+
2352
+ # HTTP header 'Content-Type'
2353
+ _header_content_type = ['application/json']
2354
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
2355
+
2356
+ # form parameters
2357
+ form_params = {}
2358
+
2359
+ # http body (model)
2360
+ post_body = @api_client.object_to_http_body(portion)
2361
+
2362
+
2363
+ auth_names = []
2364
+ result = @api_client.call_api(:PUT, path,
2365
+ :header_params => header_params,
2366
+ :query_params => query_params,
2367
+ :form_params => form_params,
2368
+ :body => post_body,
2369
+ :auth_names => auth_names,
2370
+ :return_type => 'ParagraphPortionResponse')
2371
+ if Configuration.debugging
2372
+ Configuration.logger.debug "API called: SlidesApi#put_set_paragraph_portion_properties. Result: #{result.inspect}"
2373
+ end
2374
+ return result
2375
+ end
2376
+
2377
+ # Read slide shapes or shape info.
2378
+ #
2379
+ # @param name Presentation name.
2380
+ # @param slide_index Slide index.
2381
+ # @param shape_path Shape path.
2382
+ # @param [Hash] opts the optional parameters
2383
+ # @option opts [String] :folder Presentation folder.
2384
+ # @option opts [String] :storage Presentation storage.
2385
+ # @return [NewShapeResponse]
2386
+ def get_slides_slide_shapes_parent(name, slide_index, shape_path, opts = {})
2387
+ if Configuration.debugging
2388
+ Configuration.logger.debug "Calling API: SlidesApi#get_slides_slide_shapes_parent ..."
2389
+ end
2390
+
2391
+ # verify the required parameter 'name' is set
2392
+ fail "Missing the required parameter 'name' when calling get_slides_slide_shapes_parent" if name.nil?
2393
+
2394
+ # verify the required parameter 'slide_index' is set
2395
+ fail "Missing the required parameter 'slide_index' when calling get_slides_slide_shapes_parent" if slide_index.nil?
2396
+
2397
+ # verify the required parameter 'shape_path' is set
2398
+ fail "Missing the required parameter 'shape_path' when calling get_slides_slide_shapes_parent" if shape_path.nil?
2399
+
2400
+ # resource path
2401
+ path = "/slides/{name}/slides/{slideIndex}/shapes/{shapePath}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s).sub('{' + 'shapePath' + '}', shape_path.to_s)
2402
+
2403
+ # query parameters
2404
+ query_params = {}
2405
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
2406
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
2407
+
2408
+ # header parameters
2409
+ header_params = {}
2410
+
2411
+ # HTTP header 'Accept' (if needed)
2412
+ _header_accept = ['application/json']
2413
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
2414
+
2415
+ # HTTP header 'Content-Type'
2416
+ _header_content_type = []
2417
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
2418
+
2419
+ # form parameters
2420
+ form_params = {}
2421
+
2422
+ # http body (model)
2423
+ post_body = nil
2424
+
2425
+
2426
+ auth_names = []
2427
+ result = @api_client.call_api(:GET, path,
2428
+ :header_params => header_params,
2429
+ :query_params => query_params,
2430
+ :form_params => form_params,
2431
+ :body => post_body,
2432
+ :auth_names => auth_names,
2433
+ :return_type => 'NewShapeResponse')
2434
+ if Configuration.debugging
2435
+ Configuration.logger.debug "API called: SlidesApi#get_slides_slide_shapes_parent. Result: #{result.inspect}"
2436
+ end
2437
+ return result
2438
+ end
2439
+
2440
+ # Updates shape properties.
2441
+ #
2442
+ # @param name Presentation name.
2443
+ # @param slide_index Slide index.
2444
+ # @param shape_path Shape path.
2445
+ # @param shape Shape
2446
+ # @param [Hash] opts the optional parameters
2447
+ # @option opts [String] :folder Presentation folder.
2448
+ # @option opts [String] :storage Presentation storage.
2449
+ # @return [NewShapeResponse]
2450
+ def put_slide_shape_info(name, slide_index, shape_path, shape, opts = {})
2451
+ if Configuration.debugging
2452
+ Configuration.logger.debug "Calling API: SlidesApi#put_slide_shape_info ..."
2453
+ end
2454
+
2455
+ # verify the required parameter 'name' is set
2456
+ fail "Missing the required parameter 'name' when calling put_slide_shape_info" if name.nil?
2457
+
2458
+ # verify the required parameter 'slide_index' is set
2459
+ fail "Missing the required parameter 'slide_index' when calling put_slide_shape_info" if slide_index.nil?
2460
+
2461
+ # verify the required parameter 'shape_path' is set
2462
+ fail "Missing the required parameter 'shape_path' when calling put_slide_shape_info" if shape_path.nil?
2463
+
2464
+ # verify the required parameter 'shape' is set
2465
+ fail "Missing the required parameter 'shape' when calling put_slide_shape_info" if shape.nil?
2466
+
2467
+ # resource path
2468
+ path = "/slides/{name}/slides/{slideIndex}/shapes/{shapePath}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s).sub('{' + 'shapePath' + '}', shape_path.to_s)
2469
+
2470
+ # query parameters
2471
+ query_params = {}
2472
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
2473
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
2474
+
2475
+ # header parameters
2476
+ header_params = {}
2477
+
2478
+ # HTTP header 'Accept' (if needed)
2479
+ _header_accept = ['application/json']
2480
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
2481
+
2482
+ # HTTP header 'Content-Type'
2483
+ _header_content_type = ['application/json']
2484
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
2485
+
2486
+ # form parameters
2487
+ form_params = {}
2488
+
2489
+ # http body (model)
2490
+ post_body = @api_client.object_to_http_body(shape)
2491
+
2492
+
2493
+ auth_names = []
2494
+ result = @api_client.call_api(:PUT, path,
2495
+ :header_params => header_params,
2496
+ :query_params => query_params,
2497
+ :form_params => form_params,
2498
+ :body => post_body,
2499
+ :auth_names => auth_names,
2500
+ :return_type => 'NewShapeResponse')
2501
+ if Configuration.debugging
2502
+ Configuration.logger.debug "API called: SlidesApi#put_slide_shape_info. Result: #{result.inspect}"
2503
+ end
2504
+ return result
2505
+ end
2506
+
2507
+ # Extract slide text items.
2508
+ #
2509
+ # @param name Presentation name.
2510
+ # @param slide_index Slide&#39;s index.
2511
+ # @param [Hash] opts the optional parameters
2512
+ # @option opts [BOOLEAN] :with_empty Include empty items.
2513
+ # @option opts [String] :folder Presentation folder.
2514
+ # @option opts [String] :storage Presentation storage.
2515
+ # @return [TextItemsResponse]
2516
+ def get_slides_slide_text_items(name, slide_index, opts = {})
2517
+ if Configuration.debugging
2518
+ Configuration.logger.debug "Calling API: SlidesApi#get_slides_slide_text_items ..."
2519
+ end
2520
+
2521
+ # verify the required parameter 'name' is set
2522
+ fail "Missing the required parameter 'name' when calling get_slides_slide_text_items" if name.nil?
2523
+
2524
+ # verify the required parameter 'slide_index' is set
2525
+ fail "Missing the required parameter 'slide_index' when calling get_slides_slide_text_items" if slide_index.nil?
2526
+
2527
+ # resource path
2528
+ path = "/slides/{name}/slides/{slideIndex}/textItems".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s)
2529
+
2530
+ # query parameters
2531
+ query_params = {}
2532
+ query_params[:'withEmpty'] = opts[:'with_empty'] if opts[:'with_empty']
2533
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
2534
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
2535
+
2536
+ # header parameters
2537
+ header_params = {}
2538
+
2539
+ # HTTP header 'Accept' (if needed)
2540
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
2541
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
2542
+
2543
+ # HTTP header 'Content-Type'
2544
+ _header_content_type = []
2545
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
2546
+
2547
+ # form parameters
2548
+ form_params = {}
2549
+
2550
+ # http body (model)
2551
+ post_body = nil
2552
+
2553
+
2554
+ auth_names = []
2555
+ result = @api_client.call_api(:GET, path,
2556
+ :header_params => header_params,
2557
+ :query_params => query_params,
2558
+ :form_params => form_params,
2559
+ :body => post_body,
2560
+ :auth_names => auth_names,
2561
+ :return_type => 'TextItemsResponse')
2562
+ if Configuration.debugging
2563
+ Configuration.logger.debug "API called: SlidesApi#get_slides_slide_text_items. Result: #{result.inspect}"
2564
+ end
2565
+ return result
2566
+ end
2567
+
2568
+ # Read slide theme info.
2569
+ #
2570
+ # @param name Presentation name.
2571
+ # @param slide_index Slide&#39;s index.
2572
+ # @param [Hash] opts the optional parameters
2573
+ # @option opts [String] :folder Presentation folder.
2574
+ # @option opts [String] :storage Presentation storage.
2575
+ # @return [ThemeResponse]
2576
+ def get_slides_theme(name, slide_index, opts = {})
2577
+ if Configuration.debugging
2578
+ Configuration.logger.debug "Calling API: SlidesApi#get_slides_theme ..."
2579
+ end
2580
+
2581
+ # verify the required parameter 'name' is set
2582
+ fail "Missing the required parameter 'name' when calling get_slides_theme" if name.nil?
2583
+
2584
+ # verify the required parameter 'slide_index' is set
2585
+ fail "Missing the required parameter 'slide_index' when calling get_slides_theme" if slide_index.nil?
2586
+
2587
+ # resource path
2588
+ path = "/slides/{name}/slides/{slideIndex}/theme".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s)
2589
+
2590
+ # query parameters
2591
+ query_params = {}
2592
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
2593
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
2594
+
2595
+ # header parameters
2596
+ header_params = {}
2597
+
2598
+ # HTTP header 'Accept' (if needed)
2599
+ _header_accept = ['application/json']
2600
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
2601
+
2602
+ # HTTP header 'Content-Type'
2603
+ _header_content_type = []
2604
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
2605
+
2606
+ # form parameters
2607
+ form_params = {}
2608
+
2609
+ # http body (model)
2610
+ post_body = nil
2611
+
2612
+
2613
+ auth_names = []
2614
+ result = @api_client.call_api(:GET, path,
2615
+ :header_params => header_params,
2616
+ :query_params => query_params,
2617
+ :form_params => form_params,
2618
+ :body => post_body,
2619
+ :auth_names => auth_names,
2620
+ :return_type => 'ThemeResponse')
2621
+ if Configuration.debugging
2622
+ Configuration.logger.debug "API called: SlidesApi#get_slides_theme. Result: #{result.inspect}"
2623
+ end
2624
+ return result
2625
+ end
2626
+
2627
+ # Read slide theme color scheme info.
2628
+ #
2629
+ # @param name Presentation name.
2630
+ # @param slide_index Slide&#39;s index.
2631
+ # @param [Hash] opts the optional parameters
2632
+ # @option opts [String] :folder Presentation folder.
2633
+ # @option opts [String] :storage Presentation storage.
2634
+ # @return [ColorSchemeResponse]
2635
+ def get_slides_theme_color_scheme(name, slide_index, opts = {})
2636
+ if Configuration.debugging
2637
+ Configuration.logger.debug "Calling API: SlidesApi#get_slides_theme_color_scheme ..."
2638
+ end
2639
+
2640
+ # verify the required parameter 'name' is set
2641
+ fail "Missing the required parameter 'name' when calling get_slides_theme_color_scheme" if name.nil?
2642
+
2643
+ # verify the required parameter 'slide_index' is set
2644
+ fail "Missing the required parameter 'slide_index' when calling get_slides_theme_color_scheme" if slide_index.nil?
2645
+
2646
+ # resource path
2647
+ path = "/slides/{name}/slides/{slideIndex}/theme/colorScheme".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s)
2648
+
2649
+ # query parameters
2650
+ query_params = {}
2651
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
2652
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
2653
+
2654
+ # header parameters
2655
+ header_params = {}
2656
+
2657
+ # HTTP header 'Accept' (if needed)
2658
+ _header_accept = ['application/json']
2659
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
2660
+
2661
+ # HTTP header 'Content-Type'
2662
+ _header_content_type = []
2663
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
2664
+
2665
+ # form parameters
2666
+ form_params = {}
2667
+
2668
+ # http body (model)
2669
+ post_body = nil
2670
+
2671
+
2672
+ auth_names = []
2673
+ result = @api_client.call_api(:GET, path,
2674
+ :header_params => header_params,
2675
+ :query_params => query_params,
2676
+ :form_params => form_params,
2677
+ :body => post_body,
2678
+ :auth_names => auth_names,
2679
+ :return_type => 'ColorSchemeResponse')
2680
+ if Configuration.debugging
2681
+ Configuration.logger.debug "API called: SlidesApi#get_slides_theme_color_scheme. Result: #{result.inspect}"
2682
+ end
2683
+ return result
2684
+ end
2685
+
2686
+ # Read slide theme font scheme info.
2687
+ #
2688
+ # @param name Presentation name.
2689
+ # @param slide_index Slide&#39;s index.
2690
+ # @param [Hash] opts the optional parameters
2691
+ # @option opts [String] :folder Presentation folder.
2692
+ # @option opts [String] :storage Presentation storage.
2693
+ # @return [FontSchemeResponse]
2694
+ def get_slides_theme_font_scheme(name, slide_index, opts = {})
2695
+ if Configuration.debugging
2696
+ Configuration.logger.debug "Calling API: SlidesApi#get_slides_theme_font_scheme ..."
2697
+ end
2698
+
2699
+ # verify the required parameter 'name' is set
2700
+ fail "Missing the required parameter 'name' when calling get_slides_theme_font_scheme" if name.nil?
2701
+
2702
+ # verify the required parameter 'slide_index' is set
2703
+ fail "Missing the required parameter 'slide_index' when calling get_slides_theme_font_scheme" if slide_index.nil?
2704
+
2705
+ # resource path
2706
+ path = "/slides/{name}/slides/{slideIndex}/theme/fontScheme".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s)
2707
+
2708
+ # query parameters
2709
+ query_params = {}
2710
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
2711
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
2712
+
2713
+ # header parameters
2714
+ header_params = {}
2715
+
2716
+ # HTTP header 'Accept' (if needed)
2717
+ _header_accept = ['application/json']
2718
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
2719
+
2720
+ # HTTP header 'Content-Type'
2721
+ _header_content_type = []
2722
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
2723
+
2724
+ # form parameters
2725
+ form_params = {}
2726
+
2727
+ # http body (model)
2728
+ post_body = nil
2729
+
2730
+
2731
+ auth_names = []
2732
+ result = @api_client.call_api(:GET, path,
2733
+ :header_params => header_params,
2734
+ :query_params => query_params,
2735
+ :form_params => form_params,
2736
+ :body => post_body,
2737
+ :auth_names => auth_names,
2738
+ :return_type => 'FontSchemeResponse')
2739
+ if Configuration.debugging
2740
+ Configuration.logger.debug "API called: SlidesApi#get_slides_theme_font_scheme. Result: #{result.inspect}"
2741
+ end
2742
+ return result
2743
+ end
2744
+
2745
+ # Read slide theme color scheme info.
2746
+ #
2747
+ # @param name Presentation name.
2748
+ # @param slide_index Slide&#39;s index.
2749
+ # @param [Hash] opts the optional parameters
2750
+ # @option opts [String] :folder Presentation folder.
2751
+ # @option opts [String] :storage Presentation storage.
2752
+ # @return [FormatSchemeResponse]
2753
+ def get_slides_theme_format_scheme(name, slide_index, opts = {})
2754
+ if Configuration.debugging
2755
+ Configuration.logger.debug "Calling API: SlidesApi#get_slides_theme_format_scheme ..."
2756
+ end
2757
+
2758
+ # verify the required parameter 'name' is set
2759
+ fail "Missing the required parameter 'name' when calling get_slides_theme_format_scheme" if name.nil?
2760
+
2761
+ # verify the required parameter 'slide_index' is set
2762
+ fail "Missing the required parameter 'slide_index' when calling get_slides_theme_format_scheme" if slide_index.nil?
2763
+
2764
+ # resource path
2765
+ path = "/slides/{name}/slides/{slideIndex}/theme/formatScheme".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s)
2766
+
2767
+ # query parameters
2768
+ query_params = {}
2769
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
2770
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
2771
+
2772
+ # header parameters
2773
+ header_params = {}
2774
+
2775
+ # HTTP header 'Accept' (if needed)
2776
+ _header_accept = ['application/json']
2777
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
2778
+
2779
+ # HTTP header 'Content-Type'
2780
+ _header_content_type = []
2781
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
2782
+
2783
+ # form parameters
2784
+ form_params = {}
2785
+
2786
+ # http body (model)
2787
+ post_body = nil
2788
+
2789
+
2790
+ auth_names = []
2791
+ result = @api_client.call_api(:GET, path,
2792
+ :header_params => header_params,
2793
+ :query_params => query_params,
2794
+ :form_params => form_params,
2795
+ :body => post_body,
2796
+ :auth_names => auth_names,
2797
+ :return_type => 'FormatSchemeResponse')
2798
+ if Configuration.debugging
2799
+ Configuration.logger.debug "API called: SlidesApi#get_slides_theme_format_scheme. Result: #{result.inspect}"
2800
+ end
2801
+ return result
2802
+ end
2803
+
2804
+ # Splitting presentations. Create one image per slide.
2805
+ #
2806
+ # @param name The document name.
2807
+ # @param [Hash] opts the optional parameters
2808
+ # @option opts [Integer] :width The width of created images.
2809
+ # @option opts [Integer] :height The height of created images.
2810
+ # @option opts [Integer] :to The last slide number for splitting, if is not specified splitting ends at the last slide of the document.
2811
+ # @option opts [Integer] :from The start slide number for splitting, if is not specified splitting starts from the first slide of the presentation.
2812
+ # @option opts [String] :dest_folder Folder on storage where images are going to be uploaded. If not specified then images are uploaded to same folder as presentation.
2813
+ # @option opts [String] :format The format. Default value is jpeg.
2814
+ # @option opts [String] :storage The document storage.
2815
+ # @option opts [String] :folder The document folder.
2816
+ # @return [SplitDocumentResponse]
2817
+ def post_slides_split(name, opts = {})
2818
+ if Configuration.debugging
2819
+ Configuration.logger.debug "Calling API: SlidesApi#post_slides_split ..."
2820
+ end
2821
+
2822
+ # verify the required parameter 'name' is set
2823
+ fail "Missing the required parameter 'name' when calling post_slides_split" if name.nil?
2824
+
2825
+ # resource path
2826
+ path = "/slides/{name}/split".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
2827
+
2828
+ # query parameters
2829
+ query_params = {}
2830
+ query_params[:'width'] = opts[:'width'] if opts[:'width']
2831
+ query_params[:'height'] = opts[:'height'] if opts[:'height']
2832
+ query_params[:'to'] = opts[:'to'] if opts[:'to']
2833
+ query_params[:'from'] = opts[:'from'] if opts[:'from']
2834
+ query_params[:'destFolder'] = opts[:'dest_folder'] if opts[:'dest_folder']
2835
+ query_params[:'format'] = opts[:'format'] if opts[:'format']
2836
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
2837
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
2838
+
2839
+ # header parameters
2840
+ header_params = {}
2841
+
2842
+ # HTTP header 'Accept' (if needed)
2843
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
2844
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
2845
+
2846
+ # HTTP header 'Content-Type'
2847
+ _header_content_type = []
2848
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
2849
+
2850
+ # form parameters
2851
+ form_params = {}
2852
+
2853
+ # http body (model)
2854
+ post_body = nil
2855
+
2856
+
2857
+ auth_names = []
2858
+ result = @api_client.call_api(:POST, path,
2859
+ :header_params => header_params,
2860
+ :query_params => query_params,
2861
+ :form_params => form_params,
2862
+ :body => post_body,
2863
+ :auth_names => auth_names,
2864
+ :return_type => 'SplitDocumentResponse')
2865
+ if Configuration.debugging
2866
+ Configuration.logger.debug "API called: SlidesApi#post_slides_split. Result: #{result.inspect}"
2867
+ end
2868
+ return result
2869
+ end
2870
+
2871
+ # Extract presentation text items.
2872
+ #
2873
+ # @param name Presentation name.
2874
+ # @param [Hash] opts the optional parameters
2875
+ # @option opts [BOOLEAN] :with_empty Incude empty items.
2876
+ # @option opts [String] :folder Presentation folder.
2877
+ # @option opts [String] :storage Presentation storage.
2878
+ # @return [TextItemsResponse]
2879
+ def get_slides_presentation_text_items(name, opts = {})
2880
+ if Configuration.debugging
2881
+ Configuration.logger.debug "Calling API: SlidesApi#get_slides_presentation_text_items ..."
2882
+ end
2883
+
2884
+ # verify the required parameter 'name' is set
2885
+ fail "Missing the required parameter 'name' when calling get_slides_presentation_text_items" if name.nil?
2886
+
2887
+ # resource path
2888
+ path = "/slides/{name}/textItems".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
2889
+
2890
+ # query parameters
2891
+ query_params = {}
2892
+ query_params[:'withEmpty'] = opts[:'with_empty'] if opts[:'with_empty']
2893
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
2894
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
2895
+
2896
+ # header parameters
2897
+ header_params = {}
2898
+
2899
+ # HTTP header 'Accept' (if needed)
2900
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
2901
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
2902
+
2903
+ # HTTP header 'Content-Type'
2904
+ _header_content_type = []
2905
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
2906
+
2907
+ # form parameters
2908
+ form_params = {}
2909
+
2910
+ # http body (model)
2911
+ post_body = nil
2912
+
2913
+
2914
+ auth_names = []
2915
+ result = @api_client.call_api(:GET, path,
2916
+ :header_params => header_params,
2917
+ :query_params => query_params,
2918
+ :form_params => form_params,
2919
+ :body => post_body,
2920
+ :auth_names => auth_names,
2921
+ :return_type => 'TextItemsResponse')
2922
+ if Configuration.debugging
2923
+ Configuration.logger.debug "API called: SlidesApi#get_slides_presentation_text_items. Result: #{result.inspect}"
2924
+ end
2925
+ return result
2926
+ end
2927
+
2928
+ # @param name The presentation name.
2929
+ # @param slide_to_copy
2930
+ # @param source
2931
+ # @param position
2932
+ # @param [Hash] opts the optional parameters
2933
+ # @option opts [String] :folder The presentation folder.
2934
+ # @option opts [String] :storage The presentation storage.
2935
+ # @return [SlideListResponse]
2936
+ def post_copy_slide_from_source_presentation(name, slide_to_copy, source, position, opts = {})
2937
+ if Configuration.debugging
2938
+ Configuration.logger.debug "Calling API: SlidesApi#post_copy_slide_from_source_presentation ..."
2939
+ end
2940
+
2941
+ # verify the required parameter 'name' is set
2942
+ fail "Missing the required parameter 'name' when calling post_copy_slide_from_source_presentation" if name.nil?
2943
+
2944
+ # verify the required parameter 'slide_to_copy' is set
2945
+ fail "Missing the required parameter 'slide_to_copy' when calling post_copy_slide_from_source_presentation" if slide_to_copy.nil?
2946
+
2947
+ # verify the required parameter 'source' is set
2948
+ fail "Missing the required parameter 'source' when calling post_copy_slide_from_source_presentation" if source.nil?
2949
+
2950
+ # verify the required parameter 'position' is set
2951
+ fail "Missing the required parameter 'position' when calling post_copy_slide_from_source_presentation" if position.nil?
2952
+
2953
+ # resource path
2954
+ path = "/slides/{name}/slides".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
2955
+
2956
+ # query parameters
2957
+ query_params = {}
2958
+ query_params[:'slideToCopy'] = slide_to_copy
2959
+ query_params[:'source'] = source
2960
+ query_params[:'position'] = position
2961
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
2962
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
2963
+
2964
+ # header parameters
2965
+ header_params = {}
2966
+
2967
+ # HTTP header 'Accept' (if needed)
2968
+ _header_accept = ['application/json']
2969
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
2970
+
2971
+ # HTTP header 'Content-Type'
2972
+ _header_content_type = ['application/json']
2973
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
2974
+
2975
+ # form parameters
2976
+ form_params = {}
2977
+
2978
+ # http body (model)
2979
+ post_body = nil
2980
+
2981
+
2982
+ auth_names = []
2983
+ result = @api_client.call_api(:POST, path,
2984
+ :header_params => header_params,
2985
+ :query_params => query_params,
2986
+ :form_params => form_params,
2987
+ :body => post_body,
2988
+ :auth_names => auth_names,
2989
+ :return_type => 'SlideListResponse')
2990
+ if Configuration.debugging
2991
+ Configuration.logger.debug "API called: SlidesApi#post_copy_slide_from_source_presentation. Result: #{result.inspect}"
2992
+ end
2993
+ return result
2994
+ end
2995
+
2996
+ # @param name The presentation name.
2997
+ # @param position
2998
+ # @param slide_to_clone
2999
+ # @param [Hash] opts the optional parameters
3000
+ # @option opts [String] :folder The presentation folder.
3001
+ # @option opts [String] :storage The presentation storage.
3002
+ # @return [SlideListResponse]
3003
+ def post_clone_presentation_slide(name, position, slide_to_clone, opts = {})
3004
+ if Configuration.debugging
3005
+ Configuration.logger.debug "Calling API: SlidesApi#post_clone_presentation_slide ..."
3006
+ end
3007
+
3008
+ # verify the required parameter 'name' is set
3009
+ fail "Missing the required parameter 'name' when calling post_clone_presentation_slide" if name.nil?
3010
+
3011
+ # verify the required parameter 'position' is set
3012
+ fail "Missing the required parameter 'position' when calling post_clone_presentation_slide" if position.nil?
3013
+
3014
+ # verify the required parameter 'slide_to_clone' is set
3015
+ fail "Missing the required parameter 'slide_to_clone' when calling post_clone_presentation_slide" if slide_to_clone.nil?
3016
+
3017
+ # resource path
3018
+ path = "/slides/{name}/slides".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
3019
+
3020
+ # query parameters
3021
+ query_params = {}
3022
+ query_params[:'position'] = position
3023
+ query_params[:'slideToClone'] = slide_to_clone
3024
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
3025
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
3026
+
3027
+ # header parameters
3028
+ header_params = {}
3029
+
3030
+ # HTTP header 'Accept' (if needed)
3031
+ _header_accept = ['application/json']
3032
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
3033
+
3034
+ # HTTP header 'Content-Type'
3035
+ _header_content_type = ['application/json']
3036
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
3037
+
3038
+ # form parameters
3039
+ form_params = {}
3040
+
3041
+ # http body (model)
3042
+ post_body = nil
3043
+
3044
+
3045
+ auth_names = []
3046
+ result = @api_client.call_api(:POST, path,
3047
+ :header_params => header_params,
3048
+ :query_params => query_params,
3049
+ :form_params => form_params,
3050
+ :body => post_body,
3051
+ :auth_names => auth_names,
3052
+ :return_type => 'SlideListResponse')
3053
+ if Configuration.debugging
3054
+ Configuration.logger.debug "API called: SlidesApi#post_clone_presentation_slide. Result: #{result.inspect}"
3055
+ end
3056
+ return result
3057
+ end
3058
+
3059
+ # @param name The presentation name.
3060
+ # @param position
3061
+ # @param [Hash] opts the optional parameters
3062
+ # @option opts [String] :folder The presentation folder.
3063
+ # @option opts [String] :storage The presentation storage.
3064
+ # @return [SlideListResponse]
3065
+ def post_add_empty_slide_at_position(name, position, opts = {})
3066
+ if Configuration.debugging
3067
+ Configuration.logger.debug "Calling API: SlidesApi#post_add_empty_slide_at_position ..."
3068
+ end
3069
+
3070
+ # verify the required parameter 'name' is set
3071
+ fail "Missing the required parameter 'name' when calling post_add_empty_slide_at_position" if name.nil?
3072
+
3073
+ # verify the required parameter 'position' is set
3074
+ fail "Missing the required parameter 'position' when calling post_add_empty_slide_at_position" if position.nil?
3075
+
3076
+ # resource path
3077
+ path = "/slides/{name}/slides".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
3078
+
3079
+ # query parameters
3080
+ query_params = {}
3081
+ query_params[:'position'] = position
3082
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
3083
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
3084
+
3085
+ # header parameters
3086
+ header_params = {}
3087
+
3088
+ # HTTP header 'Accept' (if needed)
3089
+ _header_accept = ['application/json']
3090
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
3091
+
3092
+ # HTTP header 'Content-Type'
3093
+ _header_content_type = ['application/json']
3094
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
3095
+
3096
+ # form parameters
3097
+ form_params = {}
3098
+
3099
+ # http body (model)
3100
+ post_body = nil
3101
+
3102
+
3103
+ auth_names = []
3104
+ result = @api_client.call_api(:POST, path,
3105
+ :header_params => header_params,
3106
+ :query_params => query_params,
3107
+ :form_params => form_params,
3108
+ :body => post_body,
3109
+ :auth_names => auth_names,
3110
+ :return_type => 'SlideListResponse')
3111
+ if Configuration.debugging
3112
+ Configuration.logger.debug "API called: SlidesApi#post_add_empty_slide_at_position. Result: #{result.inspect}"
3113
+ end
3114
+ return result
3115
+ end
3116
+
3117
+ #
3118
+ #
3119
+ # @param name The presentation name.
3120
+ # @param [Hash] opts the optional parameters
3121
+ # @option opts [String] :folder The presentation folder.
3122
+ # @option opts [String] :storage The presentation storage.
3123
+ # @return [SlideListResponse]
3124
+ def post_add_empty_slide(name, opts = {})
3125
+ if Configuration.debugging
3126
+ Configuration.logger.debug "Calling API: SlidesApi#post_add_empty_slide ..."
3127
+ end
3128
+
3129
+ # verify the required parameter 'name' is set
3130
+ fail "Missing the required parameter 'name' when calling post_add_empty_slide" if name.nil?
3131
+
3132
+ # resource path
3133
+ path = "/slides/{name}/slides".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
3134
+
3135
+ # query parameters
3136
+ query_params = {}
3137
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
3138
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
3139
+
3140
+ # header parameters
3141
+ header_params = {}
3142
+
3143
+ # HTTP header 'Accept' (if needed)
3144
+ _header_accept = ['application/json']
3145
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
3146
+
3147
+ # HTTP header 'Content-Type'
3148
+ _header_content_type = ['application/json']
3149
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
3150
+
3151
+ # form parameters
3152
+ form_params = {}
3153
+
3154
+ # http body (model)
3155
+ post_body = nil
3156
+
3157
+
3158
+ auth_names = []
3159
+ result = @api_client.call_api(:POST, path,
3160
+ :header_params => header_params,
3161
+ :query_params => query_params,
3162
+ :form_params => form_params,
3163
+ :body => post_body,
3164
+ :auth_names => auth_names,
3165
+ :return_type => 'SlideListResponse')
3166
+ if Configuration.debugging
3167
+ Configuration.logger.debug "API called: SlidesApi#post_add_empty_slide. Result: #{result.inspect}"
3168
+ end
3169
+ return result
3170
+ end
3171
+
3172
+ # Reorder presentation slide position
3173
+ #
3174
+ # @param name The presentation name.
3175
+ # @param old_position The new presentation slide position.
3176
+ # @param new_position The new presentation slide position.
3177
+ # @param [Hash] opts the optional parameters
3178
+ # @option opts [String] :folder The presentation folder.
3179
+ # @option opts [String] :storage The presentation storage.
3180
+ # @return [SlideListResponse]
3181
+ def post_slides_reorder_position(name, old_position, new_position, opts = {})
3182
+ if Configuration.debugging
3183
+ Configuration.logger.debug "Calling API: SlidesApi#post_slides_reorder_position ..."
3184
+ end
3185
+
3186
+ # verify the required parameter 'name' is set
3187
+ fail "Missing the required parameter 'name' when calling post_slides_reorder_position" if name.nil?
3188
+
3189
+ # verify the required parameter 'old_position' is set
3190
+ fail "Missing the required parameter 'old_position' when calling post_slides_reorder_position" if old_position.nil?
3191
+
3192
+ # verify the required parameter 'new_position' is set
3193
+ fail "Missing the required parameter 'new_position' when calling post_slides_reorder_position" if new_position.nil?
3194
+
3195
+ # resource path
3196
+ path = "/slides/{name}/slides".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
3197
+
3198
+ # query parameters
3199
+ query_params = {}
3200
+ query_params[:'oldPosition'] = old_position
3201
+ query_params[:'newPosition'] = new_position
3202
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
3203
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
3204
+
3205
+ # header parameters
3206
+ header_params = {}
3207
+
3208
+ # HTTP header 'Accept' (if needed)
3209
+ _header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
3210
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
3211
+
3212
+ # HTTP header 'Content-Type'
3213
+ _header_content_type = []
3214
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
3215
+
3216
+ # form parameters
3217
+ form_params = {}
3218
+
3219
+ # http body (model)
3220
+ post_body = nil
3221
+
3222
+
3223
+ auth_names = []
3224
+ result = @api_client.call_api(:POST, path,
3225
+ :header_params => header_params,
3226
+ :query_params => query_params,
3227
+ :form_params => form_params,
3228
+ :body => post_body,
3229
+ :auth_names => auth_names,
3230
+ :return_type => 'SlideListResponse')
3231
+ if Configuration.debugging
3232
+ Configuration.logger.debug "API called: SlidesApi#post_slides_reorder_position. Result: #{result.inspect}"
3233
+ end
3234
+ return result
3235
+ end
3236
+
3237
+ # Read slide info.
3238
+ #
3239
+ # @param name
3240
+ # @param slide_index
3241
+ # @param [Hash] opts the optional parameters
3242
+ # @option opts [String] :folder
3243
+ # @option opts [String] :storage
3244
+ # @return [SlideResponse]
3245
+ def get_slides_slide(name, slide_index, opts = {})
3246
+ if Configuration.debugging
3247
+ Configuration.logger.debug "Calling API: SlidesApi#get_slides_slide ..."
3248
+ end
3249
+
3250
+ # verify the required parameter 'name' is set
3251
+ fail "Missing the required parameter 'name' when calling get_slides_slide" if name.nil?
3252
+
3253
+ # verify the required parameter 'slide_index' is set
3254
+ fail "Missing the required parameter 'slide_index' when calling get_slides_slide" if slide_index.nil?
3255
+
3256
+ # resource path
3257
+ path = "/slides/{name}/slides/{slideIndex}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'slideIndex' + '}', slide_index.to_s)
3258
+
3259
+ # query parameters
3260
+ query_params = {}
3261
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
3262
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
3263
+
3264
+ # header parameters
3265
+ header_params = {}
3266
+
3267
+ # HTTP header 'Accept' (if needed)
3268
+ _header_accept = ['application/json', 'text/json', 'text/javascript']
3269
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
3270
+
3271
+ # HTTP header 'Content-Type'
3272
+ _header_content_type = []
3273
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
3274
+
3275
+ # form parameters
3276
+ form_params = {}
3277
+
3278
+ # http body (model)
3279
+ post_body = nil
3280
+
3281
+
3282
+ auth_names = []
3283
+ result = @api_client.call_api(:GET, path,
3284
+ :header_params => header_params,
3285
+ :query_params => query_params,
3286
+ :form_params => form_params,
3287
+ :body => post_body,
3288
+ :auth_names => auth_names,
3289
+ :return_type => 'SlideResponse')
3290
+ if Configuration.debugging
3291
+ Configuration.logger.debug "API called: SlidesApi#get_slides_slide. Result: #{result.inspect}"
3292
+ end
3293
+ return result
3294
+ end
3295
+
3296
+ # Read presentation info.
3297
+ #
3298
+ # @param name The document name.
3299
+ # @param [Hash] opts the optional parameters
3300
+ # @option opts [String] :password The document password.
3301
+ # @option opts [String] :storage Document&#39;s storage.
3302
+ # @option opts [String] :folder Document&#39;s folder.
3303
+ # @return [DocumentResponse]
3304
+ def get_slides_document(name, opts = {})
3305
+ if Configuration.debugging
3306
+ Configuration.logger.debug "Calling API: SlidesApi#get_slides_document ..."
3307
+ end
3308
+
3309
+ # verify the required parameter 'name' is set
3310
+ fail "Missing the required parameter 'name' when calling get_slides_document" if name.nil?
3311
+
3312
+ # resource path
3313
+ path = "/slides/{name}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
3314
+
3315
+ # query parameters
3316
+ query_params = {}
3317
+ query_params[:'password'] = opts[:'password'] if opts[:'password']
3318
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
3319
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
3320
+
3321
+ # header parameters
3322
+ header_params = {}
3323
+
3324
+ # HTTP header 'Accept' (if needed)
3325
+ _header_accept = ['application/json', 'text/json', 'text/javascript']
3326
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
3327
+
3328
+ # HTTP header 'Content-Type'
3329
+ _header_content_type = []
3330
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
3331
+
3332
+ # form parameters
3333
+ form_params = {}
3334
+
3335
+ # http body (model)
3336
+ post_body = nil
3337
+
3338
+
3339
+ auth_names = []
3340
+ result = @api_client.call_api(:GET, path,
3341
+ :header_params => header_params,
3342
+ :query_params => query_params,
3343
+ :form_params => form_params,
3344
+ :body => post_body,
3345
+ :auth_names => auth_names,
3346
+ :return_type => 'DocumentResponse')
3347
+ if Configuration.debugging
3348
+ Configuration.logger.debug "API called: SlidesApi#get_slides_document. Result: #{result.inspect}"
3349
+ end
3350
+ return result
3351
+ end
3352
+
3353
+ # Create presentation
3354
+ #
3355
+ # @param name The document name.
3356
+ # @param file
3357
+ # @param [Hash] opts the optional parameters
3358
+ # @option opts [String] :password The document password.
3359
+ # @option opts [String] :storage Document&#39;s storage.
3360
+ # @option opts [String] :folder Document&#39;s folder.
3361
+ # @return [BaseResponse]
3362
+ def put_new_presentation(name, file, opts = {})
3363
+ if Configuration.debugging
3364
+ Configuration.logger.debug "Calling API: SlidesApi#put_new_presentation ..."
3365
+ end
3366
+
3367
+ # verify the required parameter 'name' is set
3368
+ fail "Missing the required parameter 'name' when calling put_new_presentation" if name.nil?
3369
+
3370
+ # verify the required parameter 'file' is set
3371
+ fail "Missing the required parameter 'file' when calling put_new_presentation" if file.nil?
3372
+
3373
+ # resource path
3374
+ path = "/slides/{name}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
3375
+
3376
+ # query parameters
3377
+ query_params = {}
3378
+ query_params[:'password'] = opts[:'password'] if opts[:'password']
3379
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
3380
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
3381
+
3382
+ # header parameters
3383
+ header_params = {}
3384
+
3385
+ # HTTP header 'Accept' (if needed)
3386
+ _header_accept = ['application/json']
3387
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
3388
+
3389
+ # HTTP header 'Content-Type'
3390
+ _header_content_type = ['multipart/form-data']
3391
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
3392
+
3393
+ # form parameters
3394
+ form_params = {}
3395
+ form_params["file"] = file
3396
+
3397
+ # http body (model)
3398
+ post_body = nil
3399
+
3400
+
3401
+ auth_names = []
3402
+ result = @api_client.call_api(:PUT, path,
3403
+ :header_params => header_params,
3404
+ :query_params => query_params,
3405
+ :form_params => form_params,
3406
+ :body => post_body,
3407
+ :auth_names => auth_names,
3408
+ :return_type => 'BaseResponse')
3409
+ if Configuration.debugging
3410
+ Configuration.logger.debug "API called: SlidesApi#put_new_presentation. Result: #{result.inspect}"
3411
+ end
3412
+ return result
3413
+ end
3414
+
3415
+ end
3416
+ end
3417
+
3418
+
3419
+
3420
+