groupdocs_annotation_cloud 19.5 → 22.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_annotation_cloud/api/annotate_api.rb +107 -263
  3. data/lib/groupdocs_annotation_cloud/api/file_api.rb +7 -7
  4. data/lib/groupdocs_annotation_cloud/api/folder_api.rb +7 -7
  5. data/lib/groupdocs_annotation_cloud/api/info_api.rb +11 -22
  6. data/lib/groupdocs_annotation_cloud/api/license_api.rb +169 -0
  7. data/lib/groupdocs_annotation_cloud/api/preview_api.rb +23 -90
  8. data/lib/groupdocs_annotation_cloud/api/storage_api.rb +5 -5
  9. data/lib/groupdocs_annotation_cloud/api_client.rb +1 -1
  10. data/lib/groupdocs_annotation_cloud/api_error.rb +18 -5
  11. data/lib/groupdocs_annotation_cloud/configuration.rb +1 -1
  12. data/lib/groupdocs_annotation_cloud/models/{row_info.rb → annotate_options.rb} +65 -72
  13. data/lib/groupdocs_annotation_cloud/models/annotation_api_link.rb +1 -1
  14. data/lib/groupdocs_annotation_cloud/models/annotation_info.rb +184 -61
  15. data/lib/groupdocs_annotation_cloud/models/annotation_reply_info.rb +41 -26
  16. data/lib/groupdocs_annotation_cloud/models/consumption_result.rb +234 -0
  17. data/lib/groupdocs_annotation_cloud/models/disc_usage.rb +1 -1
  18. data/lib/groupdocs_annotation_cloud/models/document_info.rb +1 -1
  19. data/lib/groupdocs_annotation_cloud/models/error.rb +1 -1
  20. data/lib/groupdocs_annotation_cloud/models/error_details.rb +1 -1
  21. data/lib/groupdocs_annotation_cloud/models/file_info.rb +244 -0
  22. data/lib/groupdocs_annotation_cloud/models/file_version.rb +1 -1
  23. data/lib/groupdocs_annotation_cloud/models/file_versions.rb +1 -1
  24. data/lib/groupdocs_annotation_cloud/models/files_list.rb +1 -1
  25. data/lib/groupdocs_annotation_cloud/models/files_upload_result.rb +1 -1
  26. data/lib/groupdocs_annotation_cloud/models/format.rb +1 -1
  27. data/lib/groupdocs_annotation_cloud/models/formats_result.rb +1 -1
  28. data/lib/groupdocs_annotation_cloud/models/link.rb +1 -1
  29. data/lib/groupdocs_annotation_cloud/models/link_element.rb +1 -1
  30. data/lib/groupdocs_annotation_cloud/models/object_exist.rb +1 -1
  31. data/lib/groupdocs_annotation_cloud/models/page_image.rb +2 -2
  32. data/lib/groupdocs_annotation_cloud/models/page_images.rb +1 -1
  33. data/lib/groupdocs_annotation_cloud/models/page_info.rb +5 -32
  34. data/lib/groupdocs_annotation_cloud/models/point.rb +1 -1
  35. data/lib/groupdocs_annotation_cloud/models/preview_options.rb +364 -0
  36. data/lib/groupdocs_annotation_cloud/models/rectangle.rb +1 -1
  37. data/lib/groupdocs_annotation_cloud/models/remove_options.rb +236 -0
  38. data/lib/groupdocs_annotation_cloud/models/storage_exist.rb +1 -1
  39. data/lib/groupdocs_annotation_cloud/models/storage_file.rb +1 -1
  40. data/lib/groupdocs_annotation_cloud/version.rb +2 -2
  41. data/lib/groupdocs_annotation_cloud.rb +7 -2
  42. metadata +8 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa25bb1a142858ec21ae5d8827bbb2aaedb9a9bf
4
- data.tar.gz: 464012de126bbcf300a52af56fe01f8399e50fd0
3
+ metadata.gz: dc6e52b8b18e5b528cc77ff6823e4c702e416f73
4
+ data.tar.gz: 6a540f8224c9ac312084c31db0a5af521fbb55ec
5
5
  SHA512:
6
- metadata.gz: 50779fdf6892678e62bc65d69a027fa763c018cea48573b6f43871e282c5748cfd0435eb1de9f64ea0d93e372302c1d1e3cf279c57080739424ed73bd3eecb01
7
- data.tar.gz: 0a967391d16fb8d144e369a1b9ad5c9ee765dd4ac77ee30ba65780d58a01cfd698d8e82afd261c3a3eac9388e1a9006eabd89cbe9de93c09c8e9a986eaf66014
6
+ metadata.gz: 35eb6a54aeb104710a25df26ee6a6677c762d1e30463c61bc9823e6a5d40c1a2cffd499de9c78d68de4d04e1da48a9d1940c72f2592d43ad99aa74d6b07ed624
7
+ data.tar.gz: 8335287472b08d3410cd53bfa218fd9d3b9dfcd40473fd4f8a39b08528b1060025bfaa211f17aefbd54274fa35b84aba95bf866d6698b16f80ae0f70701bce31
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="annotate.rb">
3
- # Copyright (c) 2003-2019 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -64,33 +64,31 @@ module GroupDocsAnnotationCloud
64
64
  return new(config)
65
65
  end
66
66
 
67
- # Removes annotations from document
67
+ # Adds annotations to document and saves output file into cloud storage
68
68
  #
69
- # @param request delete_annotations_request
70
- # @return [nil]
71
- def delete_annotations(request)
72
- delete_annotations_with_http_info(request)
73
- nil
69
+ # @param request annotate_request
70
+ # @return [AnnotationApiLink]
71
+ def annotate(request)
72
+ data, _status_code, _headers = annotate_with_http_info(request)
73
+ data
74
74
  end
75
75
 
76
- # Removes annotations from document
76
+ # Adds annotations to document and saves output file into cloud storage
77
77
  #
78
- # @param request delete_annotations_request
79
- # @return [Array<(nil, Fixnum, Hash)>]
80
- # nil, response status code and response headers
81
- def delete_annotations_with_http_info(request)
82
- raise ArgumentError, 'Incorrect request type' unless request.is_a? DeleteAnnotationsRequest
83
-
84
- @api_client.config.logger.debug 'Calling API: AnnotateApi.delete_annotations ...' if @api_client.config.debugging
85
- # verify the required parameter 'file_path' is set
86
- raise ArgumentError, 'Missing the required parameter file_path when calling AnnotateApi.delete_annotations' if @api_client.config.client_side_validation && request.file_path.nil?
78
+ # @param request annotate_request
79
+ # @return [Array<(AnnotationApiLink, Fixnum, Hash)>]
80
+ # AnnotationApiLink data, response status code and response headers
81
+ def annotate_with_http_info(request)
82
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? AnnotateRequest
83
+
84
+ @api_client.config.logger.debug 'Calling API: AnnotateApi.annotate ...' if @api_client.config.debugging
85
+ # verify the required parameter 'options' is set
86
+ raise ArgumentError, 'Missing the required parameter options when calling AnnotateApi.annotate' if @api_client.config.client_side_validation && request.options.nil?
87
87
  # resource path
88
- local_var_path = '/annotation'
88
+ local_var_path = '/annotation/add'
89
89
 
90
90
  # query parameters
91
91
  query_params = {}
92
- query_params[downcase_first_letter('filePath')] = request.file_path
93
-
94
92
 
95
93
  # header parameters
96
94
  header_params = {}
@@ -103,72 +101,46 @@ module GroupDocsAnnotationCloud
103
101
  form_params = {}
104
102
 
105
103
  # http body (model)
106
- post_body = nil
107
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
104
+ post_body = @api_client.object_to_http_body(request.options)
105
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
108
106
  header_params: header_params,
109
107
  query_params: query_params,
110
108
  form_params: form_params,
111
109
  body: post_body,
112
- access_token: get_access_token)
110
+ access_token: get_access_token,
111
+ return_type: 'AnnotationApiLink')
113
112
  if @api_client.config.debugging
114
113
  @api_client.config.logger.debug "API called:
115
- AnnotateApi#delete_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
114
+ AnnotateApi#annotate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
116
115
  end
117
116
  [data, status_code, headers]
118
117
  end
119
118
 
120
- # Retrieves document with annotations
119
+ # Adds annotations to document and returns output file
121
120
  #
122
- # @param request get_export_request
121
+ # @param request annotate_direct_request
123
122
  # @return [File]
124
- def get_export(request)
125
- data, _status_code, _headers = get_export_with_http_info(request)
123
+ def annotate_direct(request)
124
+ data, _status_code, _headers = annotate_direct_with_http_info(request)
126
125
  data
127
126
  end
128
127
 
129
- # Retrieves document with annotations
128
+ # Adds annotations to document and returns output file
130
129
  #
131
- # @param request get_export_request
130
+ # @param request annotate_direct_request
132
131
  # @return [Array<(File, Fixnum, Hash)>]
133
132
  # File data, response status code and response headers
134
- def get_export_with_http_info(request)
135
- raise ArgumentError, 'Incorrect request type' unless request.is_a? GetExportRequest
133
+ def annotate_direct_with_http_info(request)
134
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? AnnotateDirectRequest
136
135
 
137
- @api_client.config.logger.debug 'Calling API: AnnotateApi.get_export ...' if @api_client.config.debugging
138
- # verify the required parameter 'file_path' is set
139
- raise ArgumentError, 'Missing the required parameter file_path when calling AnnotateApi.get_export' if @api_client.config.client_side_validation && request.file_path.nil?
136
+ @api_client.config.logger.debug 'Calling API: AnnotateApi.annotate_direct ...' if @api_client.config.debugging
137
+ # verify the required parameter 'options' is set
138
+ raise ArgumentError, 'Missing the required parameter options when calling AnnotateApi.annotate_direct' if @api_client.config.client_side_validation && request.options.nil?
140
139
  # resource path
141
- local_var_path = '/annotation/result'
140
+ local_var_path = '/annotation/add'
142
141
 
143
142
  # query parameters
144
143
  query_params = {}
145
- query_params[downcase_first_letter('filePath')] = request.file_path
146
-
147
- if local_var_path.include? ('{' + downcase_first_letter('annotationTypes') + '}')
148
- local_var_path = local_var_path.sub('{' + downcase_first_letter('annotationTypes') + '}', request.annotation_types.to_s)
149
- else
150
- query_params[downcase_first_letter('annotationTypes')] = request.annotation_types unless request.annotation_types.nil?
151
- end
152
- if local_var_path.include? ('{' + downcase_first_letter('annotatedPages') + '}')
153
- local_var_path = local_var_path.sub('{' + downcase_first_letter('annotatedPages') + '}', request.annotated_pages.to_s)
154
- else
155
- query_params[downcase_first_letter('annotatedPages')] = request.annotated_pages unless request.annotated_pages.nil?
156
- end
157
- if local_var_path.include? ('{' + downcase_first_letter('firstPage') + '}')
158
- local_var_path = local_var_path.sub('{' + downcase_first_letter('firstPage') + '}', request.first_page.to_s)
159
- else
160
- query_params[downcase_first_letter('firstPage')] = request.first_page unless request.first_page.nil?
161
- end
162
- if local_var_path.include? ('{' + downcase_first_letter('lastPage') + '}')
163
- local_var_path = local_var_path.sub('{' + downcase_first_letter('lastPage') + '}', request.last_page.to_s)
164
- else
165
- query_params[downcase_first_letter('lastPage')] = request.last_page unless request.last_page.nil?
166
- end
167
- if local_var_path.include? ('{' + downcase_first_letter('password') + '}')
168
- local_var_path = local_var_path.sub('{' + downcase_first_letter('password') + '}', request.password.to_s)
169
- else
170
- query_params[downcase_first_letter('password')] = request.password unless request.password.nil?
171
- end
172
144
 
173
145
  # header parameters
174
146
  header_params = {}
@@ -181,8 +153,8 @@ module GroupDocsAnnotationCloud
181
153
  form_params = {}
182
154
 
183
155
  # http body (model)
184
- post_body = nil
185
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
156
+ post_body = @api_client.object_to_http_body(request.options)
157
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
186
158
  header_params: header_params,
187
159
  query_params: query_params,
188
160
  form_params: form_params,
@@ -191,38 +163,36 @@ module GroupDocsAnnotationCloud
191
163
  return_type: 'File')
192
164
  if @api_client.config.debugging
193
165
  @api_client.config.logger.debug "API called:
194
- AnnotateApi#get_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
166
+ AnnotateApi#annotate_direct\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
195
167
  end
196
168
  [data, status_code, headers]
197
169
  end
198
170
 
199
171
  # Extracts annotations from document
200
172
  #
201
- # @param request get_import_request
173
+ # @param request extract_request
202
174
  # @return [Array<AnnotationInfo>]
203
- def get_import(request)
204
- data, _status_code, _headers = get_import_with_http_info(request)
175
+ def extract(request)
176
+ data, _status_code, _headers = extract_with_http_info(request)
205
177
  data
206
178
  end
207
179
 
208
180
  # Extracts annotations from document
209
181
  #
210
- # @param request get_import_request
182
+ # @param request extract_request
211
183
  # @return [Array<(Array<AnnotationInfo>, Fixnum, Hash)>]
212
184
  # Array<AnnotationInfo> data, response status code and response headers
213
- def get_import_with_http_info(request)
214
- raise ArgumentError, 'Incorrect request type' unless request.is_a? GetImportRequest
185
+ def extract_with_http_info(request)
186
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? ExtractRequest
215
187
 
216
- @api_client.config.logger.debug 'Calling API: AnnotateApi.get_import ...' if @api_client.config.debugging
217
- # verify the required parameter 'file_path' is set
218
- raise ArgumentError, 'Missing the required parameter file_path when calling AnnotateApi.get_import' if @api_client.config.client_side_validation && request.file_path.nil?
188
+ @api_client.config.logger.debug 'Calling API: AnnotateApi.extract ...' if @api_client.config.debugging
189
+ # verify the required parameter 'file_info' is set
190
+ raise ArgumentError, 'Missing the required parameter file_info when calling AnnotateApi.extract' if @api_client.config.client_side_validation && request.file_info.nil?
219
191
  # resource path
220
- local_var_path = '/annotation'
192
+ local_var_path = '/annotation/extract'
221
193
 
222
194
  # query parameters
223
195
  query_params = {}
224
- query_params[downcase_first_letter('filePath')] = request.file_path
225
-
226
196
 
227
197
  # header parameters
228
198
  header_params = {}
@@ -235,8 +205,8 @@ module GroupDocsAnnotationCloud
235
205
  form_params = {}
236
206
 
237
207
  # http body (model)
238
- post_body = nil
239
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
208
+ post_body = @api_client.object_to_http_body(request.file_info)
209
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
240
210
  header_params: header_params,
241
211
  query_params: query_params,
242
212
  form_params: form_params,
@@ -245,94 +215,36 @@ module GroupDocsAnnotationCloud
245
215
  return_type: 'Array<AnnotationInfo>')
246
216
  if @api_client.config.debugging
247
217
  @api_client.config.logger.debug "API called:
248
- AnnotateApi#get_import\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
218
+ AnnotateApi#extract\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
249
219
  end
250
220
  [data, status_code, headers]
251
221
  end
252
222
 
253
- # Retrieves PDF version of document
223
+ # Removes annotations from document
254
224
  #
255
- # @param request get_pdf_request
256
- # @return [File]
257
- def get_pdf(request)
258
- data, _status_code, _headers = get_pdf_with_http_info(request)
225
+ # @param request remove_annotations_request
226
+ # @return [AnnotationApiLink]
227
+ def remove_annotations(request)
228
+ data, _status_code, _headers = remove_annotations_with_http_info(request)
259
229
  data
260
230
  end
261
231
 
262
- # Retrieves PDF version of document
263
- #
264
- # @param request get_pdf_request
265
- # @return [Array<(File, Fixnum, Hash)>]
266
- # File data, response status code and response headers
267
- def get_pdf_with_http_info(request)
268
- raise ArgumentError, 'Incorrect request type' unless request.is_a? GetPdfRequest
269
-
270
- @api_client.config.logger.debug 'Calling API: AnnotateApi.get_pdf ...' if @api_client.config.debugging
271
- # verify the required parameter 'file_path' is set
272
- raise ArgumentError, 'Missing the required parameter file_path when calling AnnotateApi.get_pdf' if @api_client.config.client_side_validation && request.file_path.nil?
273
- # resource path
274
- local_var_path = '/annotation/pdf'
275
-
276
- # query parameters
277
- query_params = {}
278
- query_params[downcase_first_letter('filePath')] = request.file_path
279
-
280
-
281
- # header parameters
282
- header_params = {}
283
- # HTTP header 'Accept' (if needed)
284
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
285
- # HTTP header 'Content-Type'
286
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
287
-
288
- # form parameters
289
- form_params = {}
290
-
291
- # http body (model)
292
- post_body = nil
293
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
294
- header_params: header_params,
295
- query_params: query_params,
296
- form_params: form_params,
297
- body: post_body,
298
- access_token: get_access_token,
299
- return_type: 'File')
300
- if @api_client.config.debugging
301
- @api_client.config.logger.debug "API called:
302
- AnnotateApi#get_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
303
- end
304
- [data, status_code, headers]
305
- end
306
-
307
- # Adds annotations to document
308
- #
309
- # @param request post_annotations_request
310
- # @return [nil]
311
- def post_annotations(request)
312
- post_annotations_with_http_info(request)
313
- nil
314
- end
315
-
316
- # Adds annotations to document
232
+ # Removes annotations from document
317
233
  #
318
- # @param request post_annotations_request
319
- # @return [Array<(nil, Fixnum, Hash)>]
320
- # nil, response status code and response headers
321
- def post_annotations_with_http_info(request)
322
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PostAnnotationsRequest
323
-
324
- @api_client.config.logger.debug 'Calling API: AnnotateApi.post_annotations ...' if @api_client.config.debugging
325
- # verify the required parameter 'file_path' is set
326
- raise ArgumentError, 'Missing the required parameter file_path when calling AnnotateApi.post_annotations' if @api_client.config.client_side_validation && request.file_path.nil?
327
- # verify the required parameter 'annotations' is set
328
- raise ArgumentError, 'Missing the required parameter annotations when calling AnnotateApi.post_annotations' if @api_client.config.client_side_validation && request.annotations.nil?
234
+ # @param request remove_annotations_request
235
+ # @return [Array<(AnnotationApiLink, Fixnum, Hash)>]
236
+ # AnnotationApiLink data, response status code and response headers
237
+ def remove_annotations_with_http_info(request)
238
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? RemoveAnnotationsRequest
239
+
240
+ @api_client.config.logger.debug 'Calling API: AnnotateApi.remove_annotations ...' if @api_client.config.debugging
241
+ # verify the required parameter 'options' is set
242
+ raise ArgumentError, 'Missing the required parameter options when calling AnnotateApi.remove_annotations' if @api_client.config.client_side_validation && request.options.nil?
329
243
  # resource path
330
- local_var_path = '/annotation'
244
+ local_var_path = '/annotation/remove'
331
245
 
332
246
  # query parameters
333
247
  query_params = {}
334
- query_params[downcase_first_letter('filePath')] = request.file_path
335
-
336
248
 
337
249
  # header parameters
338
250
  header_params = {}
@@ -345,16 +257,17 @@ module GroupDocsAnnotationCloud
345
257
  form_params = {}
346
258
 
347
259
  # http body (model)
348
- post_body = @api_client.object_to_http_body(request.annotations)
260
+ post_body = @api_client.object_to_http_body(request.options)
349
261
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
350
262
  header_params: header_params,
351
263
  query_params: query_params,
352
264
  form_params: form_params,
353
265
  body: post_body,
354
- access_token: get_access_token)
266
+ access_token: get_access_token,
267
+ return_type: 'AnnotationApiLink')
355
268
  if @api_client.config.debugging
356
269
  @api_client.config.logger.debug "API called:
357
- AnnotateApi#post_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
270
+ AnnotateApi#remove_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
358
271
  end
359
272
  [data, status_code, headers]
360
273
  end
@@ -415,8 +328,8 @@ module GroupDocsAnnotationCloud
415
328
  end
416
329
  #
417
330
  # --------------------------------------------------------------------------------------------------------------------
418
- # <copyright company="Aspose Pty Ltd" file="delete_annotations_request.rb">
419
- # Copyright (c) 2003-2019 Aspose Pty Ltd
331
+ # <copyright company="Aspose Pty Ltd" file="annotate_request.rb">
332
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
420
333
  # </copyright>
421
334
  # <summary>
422
335
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -443,90 +356,25 @@ end
443
356
  module GroupDocsAnnotationCloud
444
357
 
445
358
  #
446
- # Request model for delete_annotations operation.
359
+ # Request model for annotate operation.
447
360
  #
448
- class DeleteAnnotationsRequest
361
+ class AnnotateRequest
449
362
 
450
- # Document path in storage
451
- attr_accessor :file_path
452
-
453
- #
454
- # Initializes a new instance.
455
- # @param file_path Document path in storage
456
- def initialize(file_path)
457
- self.file_path = file_path
458
- end
459
- end
460
- end
461
- #
462
- # --------------------------------------------------------------------------------------------------------------------
463
- # <copyright company="Aspose Pty Ltd" file="get_export_request.rb">
464
- # Copyright (c) 2003-2019 Aspose Pty Ltd
465
- # </copyright>
466
- # <summary>
467
- # Permission is hereby granted, free of charge, to any person obtaining a copy
468
- # of this software and associated documentation files (the "Software"), to deal
469
- # in the Software without restriction, including without limitation the rights
470
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
471
- # copies of the Software, and to permit persons to whom the Software is
472
- # furnished to do so, subject to the following conditions:
473
- #
474
- # The above copyright notice and this permission notice shall be included in all
475
- # copies or substantial portions of the Software.
476
- #
477
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
478
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
479
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
480
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
481
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
482
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
483
- # SOFTWARE.
484
- # </summary>
485
- # --------------------------------------------------------------------------------------------------------------------
486
- #
487
-
488
- module GroupDocsAnnotationCloud
489
-
490
- #
491
- # Request model for get_export operation.
492
- #
493
- class GetExportRequest
494
-
495
- # Document path in storage
496
- attr_accessor :file_path
497
- # Annotation types that will be exported. All annotation types will be exported if not specified
498
- attr_accessor :annotation_types
499
- # Indicates whether to export only annotated pages
500
- attr_accessor :annotated_pages
501
- # Determines number of first exported page
502
- attr_accessor :first_page
503
- # Determines number of last exported page
504
- attr_accessor :last_page
505
- # Source document password
506
- attr_accessor :password
363
+ # Annotation options
364
+ attr_accessor :options
507
365
 
508
366
  #
509
367
  # Initializes a new instance.
510
- # @param file_path Document path in storage
511
- # @param annotation_types Annotation types that will be exported. All annotation types will be exported if not specified
512
- # @param annotated_pages Indicates whether to export only annotated pages
513
- # @param first_page Determines number of first exported page
514
- # @param last_page Determines number of last exported page
515
- # @param password Source document password
516
- def initialize(file_path, annotation_types = nil, annotated_pages = nil, first_page = nil, last_page = nil, password = nil)
517
- self.file_path = file_path
518
- self.annotation_types = annotation_types
519
- self.annotated_pages = annotated_pages
520
- self.first_page = first_page
521
- self.last_page = last_page
522
- self.password = password
368
+ # @param options Annotation options
369
+ def initialize(options)
370
+ self.options = options
523
371
  end
524
372
  end
525
373
  end
526
374
  #
527
375
  # --------------------------------------------------------------------------------------------------------------------
528
- # <copyright company="Aspose Pty Ltd" file="get_import_request.rb">
529
- # Copyright (c) 2003-2019 Aspose Pty Ltd
376
+ # <copyright company="Aspose Pty Ltd" file="annotate_direct_request.rb">
377
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
530
378
  # </copyright>
531
379
  # <summary>
532
380
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -553,25 +401,25 @@ end
553
401
  module GroupDocsAnnotationCloud
554
402
 
555
403
  #
556
- # Request model for get_import operation.
404
+ # Request model for annotate_direct operation.
557
405
  #
558
- class GetImportRequest
406
+ class AnnotateDirectRequest
559
407
 
560
- # Document path in storage
561
- attr_accessor :file_path
408
+ # Annotation options
409
+ attr_accessor :options
562
410
 
563
411
  #
564
412
  # Initializes a new instance.
565
- # @param file_path Document path in storage
566
- def initialize(file_path)
567
- self.file_path = file_path
413
+ # @param options Annotation options
414
+ def initialize(options)
415
+ self.options = options
568
416
  end
569
417
  end
570
418
  end
571
419
  #
572
420
  # --------------------------------------------------------------------------------------------------------------------
573
- # <copyright company="Aspose Pty Ltd" file="get_pdf_request.rb">
574
- # Copyright (c) 2003-2019 Aspose Pty Ltd
421
+ # <copyright company="Aspose Pty Ltd" file="extract_request.rb">
422
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
575
423
  # </copyright>
576
424
  # <summary>
577
425
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -598,25 +446,25 @@ end
598
446
  module GroupDocsAnnotationCloud
599
447
 
600
448
  #
601
- # Request model for get_pdf operation.
449
+ # Request model for extract operation.
602
450
  #
603
- class GetPdfRequest
451
+ class ExtractRequest
604
452
 
605
- # Path to document in storage
606
- attr_accessor :file_path
453
+ # Input file information
454
+ attr_accessor :file_info
607
455
 
608
456
  #
609
457
  # Initializes a new instance.
610
- # @param file_path Path to document in storage
611
- def initialize(file_path)
612
- self.file_path = file_path
458
+ # @param file_info Input file information
459
+ def initialize(file_info)
460
+ self.file_info = file_info
613
461
  end
614
462
  end
615
463
  end
616
464
  #
617
465
  # --------------------------------------------------------------------------------------------------------------------
618
- # <copyright company="Aspose Pty Ltd" file="post_annotations_request.rb">
619
- # Copyright (c) 2003-2019 Aspose Pty Ltd
466
+ # <copyright company="Aspose Pty Ltd" file="remove_annotations_request.rb">
467
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
620
468
  # </copyright>
621
469
  # <summary>
622
470
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -643,22 +491,18 @@ end
643
491
  module GroupDocsAnnotationCloud
644
492
 
645
493
  #
646
- # Request model for post_annotations operation.
494
+ # Request model for remove_annotations operation.
647
495
  #
648
- class PostAnnotationsRequest
496
+ class RemoveAnnotationsRequest
649
497
 
650
- # Document path in storage
651
- attr_accessor :file_path
652
- # Array of annotation descriptions
653
- attr_accessor :annotations
498
+ # Remove annotations options
499
+ attr_accessor :options
654
500
 
655
501
  #
656
502
  # Initializes a new instance.
657
- # @param file_path Document path in storage
658
- # @param annotations Array of annotation descriptions
659
- def initialize(file_path, annotations)
660
- self.file_path = file_path
661
- self.annotations = annotations
503
+ # @param options Remove annotations options
504
+ def initialize(options)
505
+ self.options = options
662
506
  end
663
507
  end
664
508
  end
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="file.rb">
3
- # Copyright (c) 2003-2019 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -378,7 +378,7 @@ module GroupDocsAnnotationCloud
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,
@@ -449,7 +449,7 @@ end
449
449
  #
450
450
  # --------------------------------------------------------------------------------------------------------------------
451
451
  # <copyright company="Aspose Pty Ltd" file="copy_file_request.rb">
452
- # Copyright (c) 2003-2019 Aspose Pty Ltd
452
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
453
453
  # </copyright>
454
454
  # <summary>
455
455
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -510,7 +510,7 @@ end
510
510
  #
511
511
  # --------------------------------------------------------------------------------------------------------------------
512
512
  # <copyright company="Aspose Pty Ltd" file="delete_file_request.rb">
513
- # Copyright (c) 2003-2019 Aspose Pty Ltd
513
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
514
514
  # </copyright>
515
515
  # <summary>
516
516
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -563,7 +563,7 @@ end
563
563
  #
564
564
  # --------------------------------------------------------------------------------------------------------------------
565
565
  # <copyright company="Aspose Pty Ltd" file="download_file_request.rb">
566
- # Copyright (c) 2003-2019 Aspose Pty Ltd
566
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
567
567
  # </copyright>
568
568
  # <summary>
569
569
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -616,7 +616,7 @@ end
616
616
  #
617
617
  # --------------------------------------------------------------------------------------------------------------------
618
618
  # <copyright company="Aspose Pty Ltd" file="move_file_request.rb">
619
- # Copyright (c) 2003-2019 Aspose Pty Ltd
619
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
620
620
  # </copyright>
621
621
  # <summary>
622
622
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -677,7 +677,7 @@ end
677
677
  #
678
678
  # --------------------------------------------------------------------------------------------------------------------
679
679
  # <copyright company="Aspose Pty Ltd" file="upload_file_request.rb">
680
- # Copyright (c) 2003-2019 Aspose Pty Ltd
680
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
681
681
  # </copyright>
682
682
  # <summary>
683
683
  # Permission is hereby granted, free of charge, to any person obtaining a copy