groupdocs_conversion_cloud 19.4 → 19.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_conversion_cloud.rb +3 -1
  3. data/lib/groupdocs_conversion_cloud/api/convert_api.rb +218 -0
  4. data/lib/groupdocs_conversion_cloud/api/file_api.rb +1 -1
  5. data/lib/groupdocs_conversion_cloud/api/folder_api.rb +1 -1
  6. data/lib/groupdocs_conversion_cloud/api/{conversion_api.rb → info_api.rb} +51 -40
  7. data/lib/groupdocs_conversion_cloud/models/bmp_convert_options.rb +101 -4
  8. data/lib/groupdocs_conversion_cloud/models/cgm_convert_options.rb +101 -4
  9. data/lib/groupdocs_conversion_cloud/models/dcm_convert_options.rb +101 -4
  10. data/lib/groupdocs_conversion_cloud/models/djvu_convert_options.rb +101 -4
  11. data/lib/groupdocs_conversion_cloud/models/dng_convert_options.rb +101 -4
  12. data/lib/groupdocs_conversion_cloud/models/document_metadata.rb +396 -0
  13. data/lib/groupdocs_conversion_cloud/models/emf_convert_options.rb +101 -4
  14. data/lib/groupdocs_conversion_cloud/models/gif_convert_options.rb +101 -4
  15. data/lib/groupdocs_conversion_cloud/models/ico_convert_options.rb +101 -4
  16. data/lib/groupdocs_conversion_cloud/models/image_convert_options.rb +101 -4
  17. data/lib/groupdocs_conversion_cloud/models/j2c_convert_options.rb +98 -1
  18. data/lib/groupdocs_conversion_cloud/models/j2k_convert_options.rb +98 -1
  19. data/lib/groupdocs_conversion_cloud/models/jp2_convert_options.rb +98 -1
  20. data/lib/groupdocs_conversion_cloud/models/jpeg_convert_options.rb +98 -1
  21. data/lib/groupdocs_conversion_cloud/models/jpf_convert_options.rb +98 -1
  22. data/lib/groupdocs_conversion_cloud/models/jpg_convert_options.rb +98 -1
  23. data/lib/groupdocs_conversion_cloud/models/jpm_convert_options.rb +98 -1
  24. data/lib/groupdocs_conversion_cloud/models/jpx_convert_options.rb +98 -1
  25. data/lib/groupdocs_conversion_cloud/models/odg_convert_options.rb +101 -4
  26. data/lib/groupdocs_conversion_cloud/models/png_convert_options.rb +101 -4
  27. data/lib/groupdocs_conversion_cloud/models/psd_convert_options.rb +77 -1
  28. data/lib/groupdocs_conversion_cloud/models/tif_convert_options.rb +77 -1
  29. data/lib/groupdocs_conversion_cloud/models/tiff_convert_options.rb +77 -1
  30. data/lib/groupdocs_conversion_cloud/models/webp_convert_options.rb +98 -1
  31. data/lib/groupdocs_conversion_cloud/models/wmf_convert_options.rb +101 -4
  32. data/lib/groupdocs_conversion_cloud/version.rb +1 -1
  33. metadata +5 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 318acced2d73772d827e8c49c490eb12a7d02c55
4
- data.tar.gz: f4ace8c6f615d561befa441256d35ba0857d9b14
3
+ metadata.gz: 3a1dca17f4620ca552157873b944b15c0a44906b
4
+ data.tar.gz: 8eb3447134dae6e2a2f947f25c45acdcb23b01b3
5
5
  SHA512:
6
- metadata.gz: f69b1560c1b2cb04f01b116cfaf30ae730466ad1151a8cb18234f684cf3733e7f4063a78b8051a52640d0b8dce8a8c5b337c369a2c34735350d387a925c06194
7
- data.tar.gz: 4fec31cd43d930f23fdf952341e3aec5364b0281a9ef8c23ac6a08565528f35ad1e528263dd290f47e9b8190d0ae1baad39c96dd32daa94b21c99add498dcd70
6
+ metadata.gz: 0dbdcba425c30e3866194ca06db8b839c8a44189f37358b24f4fc4b885bcbcf15f4d77b86dc635bf560506cd292b45369ec5d24e911fe892f6f01367612f6d61
7
+ data.tar.gz: 90213f9a638f4cb9178805a7c1533c5ae4f2d62b1a44419f96f6d6a9345cd57c7f44241558a239173da8751ab1e604097708d03fb92f1f24a7d0d86d3f215ec5
@@ -33,6 +33,7 @@ require_relative 'groupdocs_conversion_cloud/configuration'
33
33
  require_relative 'groupdocs_conversion_cloud/models/convert_options'
34
34
  require_relative 'groupdocs_conversion_cloud/models/convert_settings'
35
35
  require_relative 'groupdocs_conversion_cloud/models/disc_usage'
36
+ require_relative 'groupdocs_conversion_cloud/models/document_metadata'
36
37
  require_relative 'groupdocs_conversion_cloud/models/error'
37
38
  require_relative 'groupdocs_conversion_cloud/models/error_details'
38
39
  require_relative 'groupdocs_conversion_cloud/models/file_versions'
@@ -199,7 +200,8 @@ require_relative 'groupdocs_conversion_cloud/models/jpx_convert_options'
199
200
  require_relative 'groupdocs_conversion_cloud/models/tif_convert_options'
200
201
 
201
202
  # APIs
202
- require_relative 'groupdocs_conversion_cloud/api/conversion_api'
203
+ require_relative 'groupdocs_conversion_cloud/api/convert_api'
203
204
  require_relative 'groupdocs_conversion_cloud/api/file_api'
204
205
  require_relative 'groupdocs_conversion_cloud/api/folder_api'
206
+ require_relative 'groupdocs_conversion_cloud/api/info_api'
205
207
  require_relative 'groupdocs_conversion_cloud/api/storage_api'
@@ -0,0 +1,218 @@
1
+ # -----------------------------------------------------------------------------------
2
+ # <copyright company="Aspose Pty Ltd" file="convert.rb">
3
+ # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # </copyright>
5
+ # <summary>
6
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ # of this software and associated documentation files (the "Software"), to deal
8
+ # in the Software without restriction, including without limitation the rights
9
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ # copies of the Software, and to permit persons to whom the Software is
11
+ # furnished to do so, subject to the following conditions:
12
+ #
13
+ # The above copyright notice and this permission notice shall be included in all
14
+ # copies or substantial portions of the Software.
15
+ #
16
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ # SOFTWARE.
23
+ # </summary>
24
+ # -----------------------------------------------------------------------------------
25
+
26
+ require 'uri'
27
+ require 'date'
28
+
29
+ module GroupDocsConversionCloud
30
+ #
31
+ # GroupDocs.Conversion Cloud API
32
+ #
33
+ class ConvertApi
34
+ attr_accessor :config
35
+
36
+ #make ConvertApi.new private
37
+ private_class_method :new
38
+
39
+ # Initializes new instance of ConvertApi
40
+ #
41
+ # @param [config] Configuration
42
+ # @return [ConvertApi] New instance of ConvertApi
43
+ def initialize(config)
44
+ @config = config
45
+ @api_client = ApiClient.new(config)
46
+ @access_token = nil
47
+ end
48
+
49
+ # Initializes new instance of ConvertApi
50
+ #
51
+ # @param [app_sid] Application identifier (App SID)
52
+ # @param [app_key] Application private key (App Key)
53
+ # @return [ConvertApi] New instance of ConvertApi
54
+ def self.from_keys(app_sid, app_key)
55
+ config = Configuration.new(app_sid, app_key)
56
+ return new(config)
57
+ end
58
+
59
+ # Initializes new instance of ConvertApi
60
+ #
61
+ # @param [config] Configuration
62
+ # @return [ConvertApi] New instance of ConvertApi
63
+ def self.from_config(config)
64
+ return new(config)
65
+ end
66
+
67
+ # Converts specified input document to format specified in the convertSettings with specified options
68
+ #
69
+ # @param request convert_document_request
70
+ # @return [Array<StoredConvertedResult>]
71
+ def convert_document(request)
72
+ data, _status_code, _headers = convert_document_with_http_info(request)
73
+ data
74
+ end
75
+
76
+ # Converts specified input document to format specified in the convertSettings with specified options
77
+ #
78
+ # @param request convert_document_request
79
+ # @return [Array<(Array<StoredConvertedResult>, Fixnum, Hash)>]
80
+ # Array<StoredConvertedResult> data, response status code and response headers
81
+ def convert_document_with_http_info(request)
82
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? ConvertDocumentRequest
83
+
84
+ @api_client.config.logger.debug 'Calling API: ConversionApi.convert_document ...' if @api_client.config.debugging
85
+ # verify the required parameter 'convert_settings' is set
86
+ raise ArgumentError, 'Missing the required parameter convert_settings when calling ConversionApi.convert_document' if @api_client.config.client_side_validation && request.convert_settings.nil?
87
+ # resource path
88
+ local_var_path = '/conversion'
89
+
90
+ # query parameters
91
+ query_params = {}
92
+
93
+ # header parameters
94
+ header_params = {}
95
+ # HTTP header 'Accept' (if needed)
96
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
97
+ # HTTP header 'Content-Type'
98
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
99
+
100
+ # form parameters
101
+ form_params = {}
102
+
103
+ # http body (model)
104
+ post_body = @api_client.object_to_http_body(request.convert_settings)
105
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
106
+ header_params: header_params,
107
+ query_params: query_params,
108
+ form_params: form_params,
109
+ body: post_body,
110
+ access_token: get_access_token,
111
+ return_type: if request.convert_settings.output_path.nil? then 'File' else 'Array<StoredConvertedResult>' end)
112
+ if @api_client.config.debugging
113
+ @api_client.config.logger.debug "API called:
114
+ ConversionApi#convert_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
115
+ end
116
+ [data, status_code, headers]
117
+ end
118
+
119
+
120
+ #
121
+ # Helper method to convert first letter to downcase
122
+ #
123
+ private def downcase_first_letter(str)
124
+ value = str[0].downcase + str[1..-1]
125
+ value
126
+ end
127
+
128
+ #
129
+ # Retrieves access token
130
+ #
131
+ private def get_access_token
132
+ if @access_token.nil? then
133
+ request_access_token
134
+ end
135
+
136
+ @access_token
137
+ end
138
+
139
+ #
140
+ # Gets a access token from server
141
+ #
142
+ private def request_access_token
143
+ auth_config = Configuration.new(@config.app_sid, @config.app_key)
144
+ auth_config.api_base_url = @config.api_base_url
145
+ auth_config.debugging = @config.debugging
146
+ auth_config.logger = @config.logger
147
+ auth_config.temp_folder_path = @config.temp_folder_path
148
+ auth_config.client_side_validation = @config.client_side_validation
149
+ auth_config.api_version = ''
150
+
151
+ auth_api_client = ApiClient.new(auth_config)
152
+
153
+ request_url = "/connect/token"
154
+ post_data = "grant_type=client_credentials&client_id=#{@config.app_sid}&client_secret=#{@config.app_key}"
155
+
156
+ data, _status_code, _header = auth_api_client.call_api(:POST, request_url, :body => post_data, :return_type => 'Object')
157
+
158
+ @access_token = data[:access_token]
159
+
160
+ expires_in_seconds = data[:expires_in].to_i - 5 * 60
161
+ expires_in_days = Rational(expires_in_seconds, 60 * 60 * 24)
162
+ @access_token_expires_at = DateTime.now + expires_in_days
163
+ end
164
+
165
+ # requires all files inside a directory from current dir
166
+ # @param _dir can be relative path like '/lib' or "../lib"
167
+ private def require_all(_dir)
168
+ Dir[File.expand_path(File.join(File.dirname(File.absolute_path(__FILE__)), _dir)) + "/*.rb"].each do |file|
169
+ require file
170
+ end
171
+ end
172
+ end
173
+ end
174
+ #
175
+ # --------------------------------------------------------------------------------------------------------------------
176
+ # <copyright company="Aspose Pty Ltd" file="convert_document_request.rb">
177
+ # Copyright (c) 2003-2019 Aspose Pty Ltd
178
+ # </copyright>
179
+ # <summary>
180
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
181
+ # of this software and associated documentation files (the "Software"), to deal
182
+ # in the Software without restriction, including without limitation the rights
183
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
184
+ # copies of the Software, and to permit persons to whom the Software is
185
+ # furnished to do so, subject to the following conditions:
186
+ #
187
+ # The above copyright notice and this permission notice shall be included in all
188
+ # copies or substantial portions of the Software.
189
+ #
190
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
191
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
192
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
193
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
194
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
195
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
196
+ # SOFTWARE.
197
+ # </summary>
198
+ # --------------------------------------------------------------------------------------------------------------------
199
+ #
200
+
201
+ module GroupDocsConversionCloud
202
+
203
+ #
204
+ # Request model for convert_document operation.
205
+ #
206
+ class ConvertDocumentRequest
207
+
208
+ # Gets or sets convert_settings
209
+ attr_accessor :convert_settings
210
+
211
+ #
212
+ # Initializes a new instance.
213
+ # @param convert_settings
214
+ def initialize(convert_settings)
215
+ self.convert_settings = convert_settings
216
+ end
217
+ end
218
+ end
@@ -378,7 +378,7 @@ module GroupDocsConversionCloud
378
378
 
379
379
  # http body (model)
380
380
  post_body = nil
381
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
381
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
382
382
  header_params: header_params,
383
383
  query_params: query_params,
384
384
  form_params: form_params,
@@ -174,7 +174,7 @@ module GroupDocsConversionCloud
174
174
 
175
175
  # http body (model)
176
176
  post_body = nil
177
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
177
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
178
178
  header_params: header_params,
179
179
  query_params: query_params,
180
180
  form_params: form_params,
@@ -1,5 +1,5 @@
1
1
  # -----------------------------------------------------------------------------------
2
- # <copyright company="Aspose Pty Ltd" file="conversion.rb">
2
+ # <copyright company="Aspose Pty Ltd" file="info.rb">
3
3
  # Copyright (c) 2003-2019 Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
@@ -30,65 +30,73 @@ module GroupDocsConversionCloud
30
30
  #
31
31
  # GroupDocs.Conversion Cloud API
32
32
  #
33
- class ConversionApi
33
+ class InfoApi
34
34
  attr_accessor :config
35
35
 
36
- #make ConversionApi.new private
36
+ #make InfoApi.new private
37
37
  private_class_method :new
38
38
 
39
- # Initializes new instance of ConversionApi
39
+ # Initializes new instance of InfoApi
40
40
  #
41
41
  # @param [config] Configuration
42
- # @return [ConversionApi] New instance of ConversionApi
42
+ # @return [InfoApi] New instance of InfoApi
43
43
  def initialize(config)
44
44
  @config = config
45
45
  @api_client = ApiClient.new(config)
46
46
  @access_token = nil
47
47
  end
48
48
 
49
- # Initializes new instance of ConversionApi
49
+ # Initializes new instance of InfoApi
50
50
  #
51
51
  # @param [app_sid] Application identifier (App SID)
52
52
  # @param [app_key] Application private key (App Key)
53
- # @return [ConversionApi] New instance of ConversionApi
53
+ # @return [InfoApi] New instance of InfoApi
54
54
  def self.from_keys(app_sid, app_key)
55
55
  config = Configuration.new(app_sid, app_key)
56
56
  return new(config)
57
57
  end
58
58
 
59
- # Initializes new instance of ConversionApi
59
+ # Initializes new instance of InfoApi
60
60
  #
61
61
  # @param [config] Configuration
62
- # @return [ConversionApi] New instance of ConversionApi
62
+ # @return [InfoApi] New instance of InfoApi
63
63
  def self.from_config(config)
64
64
  return new(config)
65
65
  end
66
66
 
67
- # Converts specified input document to format specified in the convertSettings with specified options
67
+ # Returns metadata for provided document
68
68
  #
69
- # @param request convert_document_request
70
- # @return [Array<StoredConvertedResult>]
71
- def convert_document(request)
72
- data, _status_code, _headers = convert_document_with_http_info(request)
69
+ # @param request get_document_metadata_request
70
+ # @return [DocumentMetadata]
71
+ def get_document_metadata(request)
72
+ data, _status_code, _headers = get_document_metadata_with_http_info(request)
73
73
  data
74
74
  end
75
75
 
76
- # Converts specified input document to format specified in the convertSettings with specified options
76
+ # Returns metadata for provided document
77
77
  #
78
- # @param request convert_document_request
79
- # @return [Array<(Array<StoredConvertedResult>, Fixnum, Hash)>]
80
- # Array<StoredConvertedResult> data, response status code and response headers
81
- def convert_document_with_http_info(request)
82
- raise ArgumentError, 'Incorrect request type' unless request.is_a? ConvertDocumentRequest
83
-
84
- @api_client.config.logger.debug 'Calling API: ConversionApi.convert_document ...' if @api_client.config.debugging
85
- # verify the required parameter 'convert_settings' is set
86
- raise ArgumentError, 'Missing the required parameter convert_settings when calling ConversionApi.convert_document' if @api_client.config.client_side_validation && request.convert_settings.nil?
78
+ # @param request get_document_metadata_request
79
+ # @return [Array<(DocumentMetadata, Fixnum, Hash)>]
80
+ # DocumentMetadata data, response status code and response headers
81
+ def get_document_metadata_with_http_info(request)
82
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? GetDocumentMetadataRequest
83
+
84
+ @api_client.config.logger.debug 'Calling API: InfoApi.get_document_metadata ...' if @api_client.config.debugging
87
85
  # resource path
88
- local_var_path = '/conversion'
86
+ local_var_path = '/conversion/info'
89
87
 
90
88
  # query parameters
91
89
  query_params = {}
90
+ if local_var_path.include? ('{' + downcase_first_letter('FilePath') + '}')
91
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('FilePath') + '}', request.file_path.to_s)
92
+ else
93
+ query_params[downcase_first_letter('FilePath')] = request.file_path unless request.file_path.nil?
94
+ end
95
+ if local_var_path.include? ('{' + downcase_first_letter('StorageName') + '}')
96
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('StorageName') + '}', request.storage_name.to_s)
97
+ else
98
+ query_params[downcase_first_letter('StorageName')] = request.storage_name unless request.storage_name.nil?
99
+ end
92
100
 
93
101
  # header parameters
94
102
  header_params = {}
@@ -101,22 +109,21 @@ module GroupDocsConversionCloud
101
109
  form_params = {}
102
110
 
103
111
  # http body (model)
104
- post_body = @api_client.object_to_http_body(request.convert_settings)
105
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
112
+ post_body = nil
113
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
106
114
  header_params: header_params,
107
115
  query_params: query_params,
108
116
  form_params: form_params,
109
117
  body: post_body,
110
118
  access_token: get_access_token,
111
- return_type: if request.convert_settings.output_path.nil? then 'File' else 'Array<StoredConvertedResult>' end)
119
+ return_type: 'DocumentMetadata')
112
120
  if @api_client.config.debugging
113
121
  @api_client.config.logger.debug "API called:
114
- ConversionApi#convert_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
122
+ InfoApi#get_document_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
115
123
  end
116
124
  [data, status_code, headers]
117
125
  end
118
126
 
119
-
120
127
  # Returns all supported conversion types
121
128
  #
122
129
  # @param request get_supported_conversion_types_request
@@ -134,7 +141,7 @@ module GroupDocsConversionCloud
134
141
  def get_supported_conversion_types_with_http_info(request)
135
142
  raise ArgumentError, 'Incorrect request type' unless request.is_a? GetSupportedConversionTypesRequest
136
143
 
137
- @api_client.config.logger.debug 'Calling API: ConversionApi.get_supported_conversion_types ...' if @api_client.config.debugging
144
+ @api_client.config.logger.debug 'Calling API: InfoApi.get_supported_conversion_types ...' if @api_client.config.debugging
138
145
  # resource path
139
146
  local_var_path = '/conversion/formats'
140
147
 
@@ -177,7 +184,7 @@ module GroupDocsConversionCloud
177
184
  return_type: 'Array<SupportedFormat>')
178
185
  if @api_client.config.debugging
179
186
  @api_client.config.logger.debug "API called:
180
- ConversionApi#get_supported_conversion_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
187
+ InfoApi#get_supported_conversion_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
181
188
  end
182
189
  [data, status_code, headers]
183
190
  end
@@ -238,7 +245,7 @@ module GroupDocsConversionCloud
238
245
  end
239
246
  #
240
247
  # --------------------------------------------------------------------------------------------------------------------
241
- # <copyright company="Aspose Pty Ltd" file="convert_document_request.rb">
248
+ # <copyright company="Aspose Pty Ltd" file="get_document_metadata_request.rb">
242
249
  # Copyright (c) 2003-2019 Aspose Pty Ltd
243
250
  # </copyright>
244
251
  # <summary>
@@ -266,18 +273,22 @@ end
266
273
  module GroupDocsConversionCloud
267
274
 
268
275
  #
269
- # Request model for convert_document operation.
276
+ # Request model for get_document_metadata operation.
270
277
  #
271
- class ConvertDocumentRequest
278
+ class GetDocumentMetadataRequest
272
279
 
273
- # Gets or sets convert_settings
274
- attr_accessor :convert_settings
280
+ # Absolute path to a document in the storage
281
+ attr_accessor :file_path
282
+ # StorageName which contains the document
283
+ attr_accessor :storage_name
275
284
 
276
285
  #
277
286
  # Initializes a new instance.
278
- # @param convert_settings
279
- def initialize(convert_settings)
280
- self.convert_settings = convert_settings
287
+ # @param file_path Absolute path to a document in the storage
288
+ # @param storage_name StorageName which contains the document
289
+ def initialize(file_path = nil, storage_name = nil)
290
+ self.file_path = file_path
291
+ self.storage_name = storage_name
281
292
  end
282
293
  end
283
294
  end