groupdocs_annotation_cloud 20.10 → 21.2

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 (40) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_annotation_cloud.rb +5 -1
  3. data/lib/groupdocs_annotation_cloud/api/annotate_api.rb +109 -166
  4. data/lib/groupdocs_annotation_cloud/api/file_api.rb +6 -6
  5. data/lib/groupdocs_annotation_cloud/api/folder_api.rb +6 -6
  6. data/lib/groupdocs_annotation_cloud/api/info_api.rb +11 -22
  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 +1 -1
  11. data/lib/groupdocs_annotation_cloud/configuration.rb +1 -1
  12. data/lib/groupdocs_annotation_cloud/models/annotate_options.rb +281 -0
  13. data/lib/groupdocs_annotation_cloud/models/annotation_api_link.rb +1 -1
  14. data/lib/groupdocs_annotation_cloud/models/annotation_info.rb +1 -1
  15. data/lib/groupdocs_annotation_cloud/models/annotation_reply_info.rb +1 -1
  16. data/lib/groupdocs_annotation_cloud/models/disc_usage.rb +1 -1
  17. data/lib/groupdocs_annotation_cloud/models/document_info.rb +1 -1
  18. data/lib/groupdocs_annotation_cloud/models/error.rb +1 -1
  19. data/lib/groupdocs_annotation_cloud/models/error_details.rb +1 -1
  20. data/lib/groupdocs_annotation_cloud/models/file_info.rb +244 -0
  21. data/lib/groupdocs_annotation_cloud/models/file_version.rb +1 -1
  22. data/lib/groupdocs_annotation_cloud/models/file_versions.rb +1 -1
  23. data/lib/groupdocs_annotation_cloud/models/files_list.rb +1 -1
  24. data/lib/groupdocs_annotation_cloud/models/files_upload_result.rb +1 -1
  25. data/lib/groupdocs_annotation_cloud/models/format.rb +1 -1
  26. data/lib/groupdocs_annotation_cloud/models/formats_result.rb +1 -1
  27. data/lib/groupdocs_annotation_cloud/models/link.rb +1 -1
  28. data/lib/groupdocs_annotation_cloud/models/link_element.rb +1 -1
  29. data/lib/groupdocs_annotation_cloud/models/object_exist.rb +1 -1
  30. data/lib/groupdocs_annotation_cloud/models/page_image.rb +1 -1
  31. data/lib/groupdocs_annotation_cloud/models/page_images.rb +1 -1
  32. data/lib/groupdocs_annotation_cloud/models/page_info.rb +1 -1
  33. data/lib/groupdocs_annotation_cloud/models/point.rb +1 -1
  34. data/lib/groupdocs_annotation_cloud/models/preview_options.rb +324 -0
  35. data/lib/groupdocs_annotation_cloud/models/rectangle.rb +1 -1
  36. data/lib/groupdocs_annotation_cloud/models/remove_options.rb +236 -0
  37. data/lib/groupdocs_annotation_cloud/models/storage_exist.rb +1 -1
  38. data/lib/groupdocs_annotation_cloud/models/storage_file.rb +1 -1
  39. data/lib/groupdocs_annotation_cloud/version.rb +2 -2
  40. metadata +6 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b62a16dd9c3549192b8230594fd8d8b069bb7d03
4
- data.tar.gz: 81e954ce7a02c4eb6bdd018e3e8dd55e2ebf03e9
3
+ metadata.gz: 34f4523b0e114a17fcaa34c0f5b780fc9aff8476
4
+ data.tar.gz: 2492213607381fb22f8f20625917bd7bf232c5cf
5
5
  SHA512:
6
- metadata.gz: af8bc55dee38c74dbc5b26105c3a436005382331e7b030c22b4db88d4bfd4816d6bc8044909eceaa237563b15cc863557dea6b5fe97fa65e2c21b8ce4e0d0d46
7
- data.tar.gz: 6ba5411ac0faf8a831928deed8550e25d8a06272801524b2765572f90723f61dc5ca54c778bc95d2cbf8ea4f53d6112380eb17c3aeb52ca39aae21bf6cd1affe
6
+ metadata.gz: b3aef676eeed2cfcc477c9ba039fb61edb784ac2b99cf67154841a8378873707e33b98eb9b75138368d6ddbac21a9f535420679486806852ebbe60305689e259
7
+ data.tar.gz: b8769b46fa0a399250ec6da25ea1f6e33da98608066012122cc0e6c032e5c79c2fc4ced81421260f6bca597da1e2e18aa0bf02c99115bec96df29c3aabc4908a
@@ -1,6 +1,6 @@
1
1
  # ------------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="groupdocs_annotation_cloud.rb">
3
- # Copyright (c) 2003-2020 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
@@ -30,12 +30,14 @@ require_relative 'groupdocs_annotation_cloud/version'
30
30
  require_relative 'groupdocs_annotation_cloud/configuration'
31
31
 
32
32
  # Models
33
+ require_relative 'groupdocs_annotation_cloud/models/annotate_options'
33
34
  require_relative 'groupdocs_annotation_cloud/models/annotation_info'
34
35
  require_relative 'groupdocs_annotation_cloud/models/annotation_reply_info'
35
36
  require_relative 'groupdocs_annotation_cloud/models/disc_usage'
36
37
  require_relative 'groupdocs_annotation_cloud/models/document_info'
37
38
  require_relative 'groupdocs_annotation_cloud/models/error'
38
39
  require_relative 'groupdocs_annotation_cloud/models/error_details'
40
+ require_relative 'groupdocs_annotation_cloud/models/file_info'
39
41
  require_relative 'groupdocs_annotation_cloud/models/file_versions'
40
42
  require_relative 'groupdocs_annotation_cloud/models/files_list'
41
43
  require_relative 'groupdocs_annotation_cloud/models/files_upload_result'
@@ -47,7 +49,9 @@ require_relative 'groupdocs_annotation_cloud/models/object_exist'
47
49
  require_relative 'groupdocs_annotation_cloud/models/page_images'
48
50
  require_relative 'groupdocs_annotation_cloud/models/page_info'
49
51
  require_relative 'groupdocs_annotation_cloud/models/point'
52
+ require_relative 'groupdocs_annotation_cloud/models/preview_options'
50
53
  require_relative 'groupdocs_annotation_cloud/models/rectangle'
54
+ require_relative 'groupdocs_annotation_cloud/models/remove_options'
51
55
  require_relative 'groupdocs_annotation_cloud/models/storage_exist'
52
56
  require_relative 'groupdocs_annotation_cloud/models/storage_file'
53
57
  require_relative 'groupdocs_annotation_cloud/models/annotation_api_link'
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="annotate.rb">
3
- # Copyright (c) 2003-2020 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,40 +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
- # Adds annotations to document
223
+ # Removes annotations from document
254
224
  #
255
- # @param request post_annotations_request
256
- # @return [nil]
257
- def post_annotations(request)
258
- post_annotations_with_http_info(request)
259
- nil
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)
229
+ data
260
230
  end
261
231
 
262
- # Adds annotations to document
232
+ # Removes annotations from document
263
233
  #
264
- # @param request post_annotations_request
265
- # @return [Array<(nil, Fixnum, Hash)>]
266
- # nil, response status code and response headers
267
- def post_annotations_with_http_info(request)
268
- raise ArgumentError, 'Incorrect request type' unless request.is_a? PostAnnotationsRequest
269
-
270
- @api_client.config.logger.debug 'Calling API: AnnotateApi.post_annotations ...' 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.post_annotations' if @api_client.config.client_side_validation && request.file_path.nil?
273
- # verify the required parameter 'annotations' is set
274
- 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?
275
243
  # resource path
276
- local_var_path = '/annotation'
244
+ local_var_path = '/annotation/remove'
277
245
 
278
246
  # query parameters
279
247
  query_params = {}
280
- query_params[downcase_first_letter('filePath')] = request.file_path
281
-
282
248
 
283
249
  # header parameters
284
250
  header_params = {}
@@ -291,16 +257,17 @@ module GroupDocsAnnotationCloud
291
257
  form_params = {}
292
258
 
293
259
  # http body (model)
294
- post_body = @api_client.object_to_http_body(request.annotations)
260
+ post_body = @api_client.object_to_http_body(request.options)
295
261
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
296
262
  header_params: header_params,
297
263
  query_params: query_params,
298
264
  form_params: form_params,
299
265
  body: post_body,
300
- access_token: get_access_token)
266
+ access_token: get_access_token,
267
+ return_type: 'AnnotationApiLink')
301
268
  if @api_client.config.debugging
302
269
  @api_client.config.logger.debug "API called:
303
- 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}"
304
271
  end
305
272
  [data, status_code, headers]
306
273
  end
@@ -361,8 +328,8 @@ module GroupDocsAnnotationCloud
361
328
  end
362
329
  #
363
330
  # --------------------------------------------------------------------------------------------------------------------
364
- # <copyright company="Aspose Pty Ltd" file="delete_annotations_request.rb">
365
- # Copyright (c) 2003-2020 Aspose Pty Ltd
331
+ # <copyright company="Aspose Pty Ltd" file="annotate_request.rb">
332
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
366
333
  # </copyright>
367
334
  # <summary>
368
335
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -389,25 +356,25 @@ end
389
356
  module GroupDocsAnnotationCloud
390
357
 
391
358
  #
392
- # Request model for delete_annotations operation.
359
+ # Request model for annotate operation.
393
360
  #
394
- class DeleteAnnotationsRequest
361
+ class AnnotateRequest
395
362
 
396
- # Document path in storage
397
- attr_accessor :file_path
363
+ # Annotation options
364
+ attr_accessor :options
398
365
 
399
366
  #
400
367
  # Initializes a new instance.
401
- # @param file_path Document path in storage
402
- def initialize(file_path)
403
- self.file_path = file_path
368
+ # @param options Annotation options
369
+ def initialize(options)
370
+ self.options = options
404
371
  end
405
372
  end
406
373
  end
407
374
  #
408
375
  # --------------------------------------------------------------------------------------------------------------------
409
- # <copyright company="Aspose Pty Ltd" file="get_export_request.rb">
410
- # Copyright (c) 2003-2020 Aspose Pty Ltd
376
+ # <copyright company="Aspose Pty Ltd" file="annotate_direct_request.rb">
377
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
411
378
  # </copyright>
412
379
  # <summary>
413
380
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -434,45 +401,25 @@ end
434
401
  module GroupDocsAnnotationCloud
435
402
 
436
403
  #
437
- # Request model for get_export operation.
404
+ # Request model for annotate_direct operation.
438
405
  #
439
- class GetExportRequest
440
-
441
- # Document path in storage
442
- attr_accessor :file_path
443
- # Annotation types that will be exported. All annotation types will be exported if not specified
444
- attr_accessor :annotation_types
445
- # Indicates whether to export only annotated pages
446
- attr_accessor :annotated_pages
447
- # Determines number of first exported page
448
- attr_accessor :first_page
449
- # Determines number of last exported page
450
- attr_accessor :last_page
451
- # Source document password
452
- attr_accessor :password
406
+ class AnnotateDirectRequest
407
+
408
+ # Annotation options
409
+ attr_accessor :options
453
410
 
454
411
  #
455
412
  # Initializes a new instance.
456
- # @param file_path Document path in storage
457
- # @param annotation_types Annotation types that will be exported. All annotation types will be exported if not specified
458
- # @param annotated_pages Indicates whether to export only annotated pages
459
- # @param first_page Determines number of first exported page
460
- # @param last_page Determines number of last exported page
461
- # @param password Source document password
462
- def initialize(file_path, annotation_types = nil, annotated_pages = nil, first_page = nil, last_page = nil, password = nil)
463
- self.file_path = file_path
464
- self.annotation_types = annotation_types
465
- self.annotated_pages = annotated_pages
466
- self.first_page = first_page
467
- self.last_page = last_page
468
- self.password = password
413
+ # @param options Annotation options
414
+ def initialize(options)
415
+ self.options = options
469
416
  end
470
417
  end
471
418
  end
472
419
  #
473
420
  # --------------------------------------------------------------------------------------------------------------------
474
- # <copyright company="Aspose Pty Ltd" file="get_import_request.rb">
475
- # Copyright (c) 2003-2020 Aspose Pty Ltd
421
+ # <copyright company="Aspose Pty Ltd" file="extract_request.rb">
422
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
476
423
  # </copyright>
477
424
  # <summary>
478
425
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -499,25 +446,25 @@ end
499
446
  module GroupDocsAnnotationCloud
500
447
 
501
448
  #
502
- # Request model for get_import operation.
449
+ # Request model for extract operation.
503
450
  #
504
- class GetImportRequest
451
+ class ExtractRequest
505
452
 
506
- # Document path in storage
507
- attr_accessor :file_path
453
+ # Input file information
454
+ attr_accessor :file_info
508
455
 
509
456
  #
510
457
  # Initializes a new instance.
511
- # @param file_path Document path in storage
512
- def initialize(file_path)
513
- self.file_path = file_path
458
+ # @param file_info Input file information
459
+ def initialize(file_info)
460
+ self.file_info = file_info
514
461
  end
515
462
  end
516
463
  end
517
464
  #
518
465
  # --------------------------------------------------------------------------------------------------------------------
519
- # <copyright company="Aspose Pty Ltd" file="post_annotations_request.rb">
520
- # Copyright (c) 2003-2020 Aspose Pty Ltd
466
+ # <copyright company="Aspose Pty Ltd" file="remove_annotations_request.rb">
467
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
521
468
  # </copyright>
522
469
  # <summary>
523
470
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -544,22 +491,18 @@ end
544
491
  module GroupDocsAnnotationCloud
545
492
 
546
493
  #
547
- # Request model for post_annotations operation.
494
+ # Request model for remove_annotations operation.
548
495
  #
549
- class PostAnnotationsRequest
496
+ class RemoveAnnotationsRequest
550
497
 
551
- # Document path in storage
552
- attr_accessor :file_path
553
- # Array of annotation descriptions
554
- attr_accessor :annotations
498
+ # Remove annotations options
499
+ attr_accessor :options
555
500
 
556
501
  #
557
502
  # Initializes a new instance.
558
- # @param file_path Document path in storage
559
- # @param annotations Array of annotation descriptions
560
- def initialize(file_path, annotations)
561
- self.file_path = file_path
562
- self.annotations = annotations
503
+ # @param options Remove annotations options
504
+ def initialize(options)
505
+ self.options = options
563
506
  end
564
507
  end
565
508
  end