aspose_slides_cloud 22.3.0 → 22.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +7 -7
  3. data/LICENSE +20 -20
  4. data/README.md +20 -0
  5. data/Rakefile +8 -8
  6. data/aspose_slides_cloud.gemspec +56 -56
  7. data/lib/aspose_slides_cloud/api_error.rb +48 -48
  8. data/lib/aspose_slides_cloud/configuration.rb +188 -188
  9. data/lib/aspose_slides_cloud/models/access_permissions.rb +321 -0
  10. data/lib/aspose_slides_cloud/models/audio_frame.rb +12 -3
  11. data/lib/aspose_slides_cloud/models/chart.rb +1 -2
  12. data/lib/aspose_slides_cloud/models/connector.rb +1 -2
  13. data/lib/aspose_slides_cloud/models/export_options.rb +1 -21
  14. data/lib/aspose_slides_cloud/models/geometry_shape.rb +1 -2
  15. data/lib/aspose_slides_cloud/models/gif_export_options.rb +4 -4
  16. data/lib/aspose_slides_cloud/models/graphical_object.rb +1 -2
  17. data/lib/aspose_slides_cloud/models/group_shape.rb +12 -3
  18. data/lib/aspose_slides_cloud/models/html5_export_options.rb +1 -3
  19. data/lib/aspose_slides_cloud/models/html_export_options.rb +1 -3
  20. data/lib/aspose_slides_cloud/models/image_export_options.rb +4 -4
  21. data/lib/aspose_slides_cloud/models/image_export_options_base.rb +222 -0
  22. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +72 -3
  23. data/lib/aspose_slides_cloud/models/paragraph.rb +12 -2
  24. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +2 -16
  25. data/lib/aspose_slides_cloud/models/picture_frame.rb +1 -2
  26. data/lib/aspose_slides_cloud/models/portion_format.rb +633 -0
  27. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +1 -3
  28. data/lib/aspose_slides_cloud/models/section_zoom_frame.rb +1 -2
  29. data/lib/aspose_slides_cloud/models/shape.rb +1 -2
  30. data/lib/aspose_slides_cloud/models/shape_base.rb +1 -11
  31. data/lib/aspose_slides_cloud/models/smart_art.rb +1 -2
  32. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +1 -2
  33. data/lib/aspose_slides_cloud/models/summary_zoom_frame.rb +1 -2
  34. data/lib/aspose_slides_cloud/models/summary_zoom_section.rb +1 -2
  35. data/lib/aspose_slides_cloud/models/svg_export_options.rb +1 -3
  36. data/lib/aspose_slides_cloud/models/swf_export_options.rb +1 -3
  37. data/lib/aspose_slides_cloud/models/table.rb +1 -2
  38. data/lib/aspose_slides_cloud/models/table_cell.rb +22 -2
  39. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +4 -4
  40. data/lib/aspose_slides_cloud/models/video_export_options.rb +34 -4
  41. data/lib/aspose_slides_cloud/models/video_frame.rb +1 -2
  42. data/lib/aspose_slides_cloud/models/xaml_export_options.rb +1 -3
  43. data/lib/aspose_slides_cloud/models/xps_export_options.rb +1 -3
  44. data/lib/aspose_slides_cloud/models/zoom_frame.rb +1 -2
  45. data/lib/aspose_slides_cloud/models/zoom_object.rb +1 -2
  46. data/lib/aspose_slides_cloud/type_registry.rb +10 -6
  47. data/lib/aspose_slides_cloud/version.rb +1 -1
  48. data/lib/aspose_slides_cloud.rb +6 -3
  49. data/spec/spec_helper.rb +122 -122
  50. metadata +5 -4
  51. data/Dockerfile +0 -16
  52. data/docker-entrypoint.sh +0 -7
@@ -1,188 +1,188 @@
1
- =begin
2
- Copyright (c) 2019 Aspose Pty Ltd
3
-
4
- Permission is hereby granted, free of charge, to any person obtaining a copy
5
- of this software and associated documentation files (the "Software"), to deal
6
- in the Software without restriction, including without limitation the rights
7
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the Software is
9
- furnished to do so, subject to the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be included in all
12
- copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- SOFTWARE.
21
- =end
22
-
23
- require 'uri'
24
-
25
- module AsposeSlidesCloud
26
- class Configuration
27
- # Defines base url
28
- attr_accessor :base_url
29
-
30
- # Defines base url for authentication
31
- attr_accessor :auth_base_url
32
-
33
- # Defines platform version
34
- attr_accessor :version
35
-
36
- # Defines API keys used for authentication.
37
- #
38
- # @return [Hash] key: parameter name, value: parameter value (API key)
39
- attr_accessor :app_sid
40
-
41
- # Defines API secret key used for authentication.
42
- #
43
- # @return [Hash] key: parameter name, value: parameter value (API key)
44
- attr_accessor :app_key
45
-
46
- # Defines the access token (Bearer) used with OAuth2.
47
- attr_accessor :access_token
48
-
49
- # Set this to enable/disable debugging. When enabled (set to true), HTTP request/response
50
- # details will be logged with `logger.debug` (see the `logger` attribute).
51
- # Default to false.
52
- #
53
- # @return [true, false]
54
- attr_accessor :debugging
55
-
56
- # Defines the logger used for debugging.
57
- # Default to `Rails.logger` (when in Rails) or logging to STDOUT.
58
- #
59
- # @return [#debug]
60
- attr_accessor :logger
61
-
62
- # Defines the temporary folder to store downloaded files
63
- # (for API endpoints that have file response).
64
- # Default to use `Tempfile`.
65
- #
66
- # @return [String]
67
- attr_accessor :temp_folder_path
68
-
69
- # slides operaion timeout in seconds. The timeout applies to the Slides operation, not to the HTTP request.
70
- # Default to 0 (no timeout).
71
- attr_accessor :timeout
72
-
73
- # The time limit for HTTP request in seconds.
74
- # Default to 300.
75
- attr_accessor :http_request_timeout
76
-
77
- # Set this to false to skip client side validation in the operation.
78
- # Default to true.
79
- # @return [true, false]
80
- attr_accessor :client_side_validation
81
-
82
- # Custom HTTP headers for all requests.
83
- # @return [Hash]
84
- attr_accessor :custom_headers
85
-
86
- ### TLS/SSL setting
87
- # Set this to false to skip verifying SSL certificate when calling API from https server.
88
- # Default to true.
89
- #
90
- # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
91
- #
92
- # @return [true, false]
93
- attr_accessor :verify_ssl
94
-
95
- ### TLS/SSL setting
96
- # Set this to false to skip verifying SSL host name
97
- # Default to true.
98
- #
99
- # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
100
- #
101
- # @return [true, false]
102
- attr_accessor :verify_ssl_host
103
-
104
- ### TLS/SSL setting
105
- # Set this to customize the certificate file to verify the peer.
106
- #
107
- # @return [String] the path to the certificate file
108
- #
109
- # @see The `cainfo` option of Typhoeus, `--cert` option of libcurl. Related source code:
110
- # https://github.com/typhoeus/typhoeus/blob/master/lib/typhoeus/easy_factory.rb#L145
111
- attr_accessor :ssl_ca_cert
112
-
113
- ### TLS/SSL setting
114
- # Client certificate file (for client certificate)
115
- attr_accessor :cert_file
116
-
117
- ### TLS/SSL setting
118
- # Client private key file (for client certificate)
119
- attr_accessor :key_file
120
-
121
- # Set this to customize parameters encoding of array parameter with multi collectionFormat.
122
- # Default to nil.
123
- #
124
- # @see The params_encoding option of Ethon. Related source code:
125
- # https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96
126
- attr_accessor :params_encoding
127
-
128
- attr_accessor :inject_format
129
-
130
- attr_accessor :force_ending_format
131
-
132
- def initialize
133
- @base_url = 'https://api.aspose.cloud'
134
- @auth_base_url = 'https://api.aspose.cloud'
135
- @version = 'v3.0'
136
- @http_request_timeout = 300
137
- @timeout = 0
138
- @custom_headers = Hash.new
139
- @client_side_validation = true
140
- @verify_ssl = false
141
- @verify_ssl_host = false
142
- @params_encoding = nil
143
- @cert_file = nil
144
- @key_file = nil
145
- @debugging = false
146
- @inject_format = false
147
- @force_ending_format = false
148
- @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
149
-
150
- yield(self) if block_given?
151
- end
152
-
153
- # The default Configuration object.
154
- def self.default
155
- @@default ||= Configuration.new
156
- end
157
-
158
- def configure
159
- yield(self) if block_given?
160
- end
161
-
162
- def base_url=(base_url)
163
- @base_url = getUrlHostPart(base_url)
164
- end
165
-
166
- def auth_base_url=(auth_base_url)
167
- @auth_base_url = getUrlHostPart(auth_base_url)
168
- end
169
-
170
- def getUrlHostPart(url)
171
- parts = url.split('//')
172
- if (parts.length > 1)
173
- return "#{parts[0]}//#{parts[1].split('/').first}";
174
- end
175
- parts[0].split('/').first
176
- end
177
-
178
- def version=(version)
179
- # Add leading and trailing slashes to base_path
180
- @version = "/#{version}".gsub(/\/+/, '/')
181
- @version = '' if @version == '/'
182
- end
183
-
184
- def base_path
185
- "#{[base_url, version].join('/')}".sub(/\/+\z/, '')
186
- end
187
- end
188
- end
1
+ =begin
2
+ Copyright (c) 2019 Aspose Pty Ltd
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
21
+ =end
22
+
23
+ require 'uri'
24
+
25
+ module AsposeSlidesCloud
26
+ class Configuration
27
+ # Defines base url
28
+ attr_accessor :base_url
29
+
30
+ # Defines base url for authentication
31
+ attr_accessor :auth_base_url
32
+
33
+ # Defines platform version
34
+ attr_accessor :version
35
+
36
+ # Defines API keys used for authentication.
37
+ #
38
+ # @return [Hash] key: parameter name, value: parameter value (API key)
39
+ attr_accessor :app_sid
40
+
41
+ # Defines API secret key used for authentication.
42
+ #
43
+ # @return [Hash] key: parameter name, value: parameter value (API key)
44
+ attr_accessor :app_key
45
+
46
+ # Defines the access token (Bearer) used with OAuth2.
47
+ attr_accessor :access_token
48
+
49
+ # Set this to enable/disable debugging. When enabled (set to true), HTTP request/response
50
+ # details will be logged with `logger.debug` (see the `logger` attribute).
51
+ # Default to false.
52
+ #
53
+ # @return [true, false]
54
+ attr_accessor :debugging
55
+
56
+ # Defines the logger used for debugging.
57
+ # Default to `Rails.logger` (when in Rails) or logging to STDOUT.
58
+ #
59
+ # @return [#debug]
60
+ attr_accessor :logger
61
+
62
+ # Defines the temporary folder to store downloaded files
63
+ # (for API endpoints that have file response).
64
+ # Default to use `Tempfile`.
65
+ #
66
+ # @return [String]
67
+ attr_accessor :temp_folder_path
68
+
69
+ # slides operaion timeout in seconds. The timeout applies to the Slides operation, not to the HTTP request.
70
+ # Default to 0 (no timeout).
71
+ attr_accessor :timeout
72
+
73
+ # The time limit for HTTP request in seconds.
74
+ # Default to 300.
75
+ attr_accessor :http_request_timeout
76
+
77
+ # Set this to false to skip client side validation in the operation.
78
+ # Default to true.
79
+ # @return [true, false]
80
+ attr_accessor :client_side_validation
81
+
82
+ # Custom HTTP headers for all requests.
83
+ # @return [Hash]
84
+ attr_accessor :custom_headers
85
+
86
+ ### TLS/SSL setting
87
+ # Set this to false to skip verifying SSL certificate when calling API from https server.
88
+ # Default to true.
89
+ #
90
+ # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
91
+ #
92
+ # @return [true, false]
93
+ attr_accessor :verify_ssl
94
+
95
+ ### TLS/SSL setting
96
+ # Set this to false to skip verifying SSL host name
97
+ # Default to true.
98
+ #
99
+ # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
100
+ #
101
+ # @return [true, false]
102
+ attr_accessor :verify_ssl_host
103
+
104
+ ### TLS/SSL setting
105
+ # Set this to customize the certificate file to verify the peer.
106
+ #
107
+ # @return [String] the path to the certificate file
108
+ #
109
+ # @see The `cainfo` option of Typhoeus, `--cert` option of libcurl. Related source code:
110
+ # https://github.com/typhoeus/typhoeus/blob/master/lib/typhoeus/easy_factory.rb#L145
111
+ attr_accessor :ssl_ca_cert
112
+
113
+ ### TLS/SSL setting
114
+ # Client certificate file (for client certificate)
115
+ attr_accessor :cert_file
116
+
117
+ ### TLS/SSL setting
118
+ # Client private key file (for client certificate)
119
+ attr_accessor :key_file
120
+
121
+ # Set this to customize parameters encoding of array parameter with multi collectionFormat.
122
+ # Default to nil.
123
+ #
124
+ # @see The params_encoding option of Ethon. Related source code:
125
+ # https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96
126
+ attr_accessor :params_encoding
127
+
128
+ attr_accessor :inject_format
129
+
130
+ attr_accessor :force_ending_format
131
+
132
+ def initialize
133
+ @base_url = 'https://api.aspose.cloud'
134
+ @auth_base_url = 'https://api.aspose.cloud'
135
+ @version = 'v3.0'
136
+ @http_request_timeout = 300
137
+ @timeout = 0
138
+ @custom_headers = Hash.new
139
+ @client_side_validation = true
140
+ @verify_ssl = false
141
+ @verify_ssl_host = false
142
+ @params_encoding = nil
143
+ @cert_file = nil
144
+ @key_file = nil
145
+ @debugging = false
146
+ @inject_format = false
147
+ @force_ending_format = false
148
+ @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
149
+
150
+ yield(self) if block_given?
151
+ end
152
+
153
+ # The default Configuration object.
154
+ def self.default
155
+ @@default ||= Configuration.new
156
+ end
157
+
158
+ def configure
159
+ yield(self) if block_given?
160
+ end
161
+
162
+ def base_url=(base_url)
163
+ @base_url = getUrlHostPart(base_url)
164
+ end
165
+
166
+ def auth_base_url=(auth_base_url)
167
+ @auth_base_url = getUrlHostPart(auth_base_url)
168
+ end
169
+
170
+ def getUrlHostPart(url)
171
+ parts = url.split('//')
172
+ if (parts.length > 1)
173
+ return "#{parts[0]}//#{parts[1].split('/').first}";
174
+ end
175
+ parts[0].split('/').first
176
+ end
177
+
178
+ def version=(version)
179
+ # Add leading and trailing slashes to base_path
180
+ @version = "/#{version}".gsub(/\/+/, '/')
181
+ @version = '' if @version == '/'
182
+ end
183
+
184
+ def base_path
185
+ "#{[base_url, version].join('/')}".sub(/\/+\z/, '')
186
+ end
187
+ end
188
+ end