Skip to content

Commit 5e7df94

Browse files
committed
Updated sources
1 parent 326f978 commit 5e7df94

48 files changed

Lines changed: 322 additions & 656 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Gemfile.lock

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
groupdocs_annotation_cloud (19.5)
4+
groupdocs_annotation_cloud (20.10)
55
addressable (~> 2.5.0, >= 2.5.0)
66
faraday (~> 0.14.0)
77
mimemagic (~> 0.3.2)
@@ -13,14 +13,13 @@ GEM
1313
public_suffix (>= 2.0.2, < 4.0)
1414
faraday (0.14.0)
1515
multipart-post (>= 1.2, < 3)
16-
mimemagic (0.3.3)
16+
mimemagic (0.3.5)
1717
minitest (5.11.3)
1818
multipart-post (2.1.1)
19-
public_suffix (3.1.0)
19+
public_suffix (3.1.1)
2020
rake (13.0.1)
2121

2222
PLATFORMS
23-
ruby
2423
x64-mingw32
2524

2625
DEPENDENCIES

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# GroupDocs.Annotation Cloud Ruby SDK
2+
23
Ruby gem for communicating with the GroupDocs.Annotation Cloud API
34

45
## Installation
@@ -12,12 +13,13 @@ gem install groupdocs_annotation_cloud
1213
To add dependency to your app copy following into your Gemfile and run `bundle install`:
1314

1415
```
15-
gem "groupdocs_annotation_cloud", "~> 19.5"
16+
gem "groupdocs_annotation_cloud", "~> 20.10"
1617
```
1718

1819
## Getting Started
1920

2021
Please follow the [installation](#installation) procedure and then run the following code:
22+
2123
```ruby
2224
# Load the gem
2325
require 'groupdocs_annotation_cloud'
@@ -40,6 +42,17 @@ end
4042
```
4143

4244
## Licensing
45+
4346
GroupDocs.Annotation Cloud Ruby SDK licensed under [MIT License](LICENSE).
4447

45-
[Home](https://www.groupdocs.cloud/) | [Product Page](https://products.groupdocs.cloud/annotation/ruby) | [Docs](https://docs.groupdocs.cloud/annotation/) | [Demos](https://products.groupdocs.app/annotation/family) | [API Reference](https://apireference.groupdocs.cloud/annotation/) | [Examples](https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-ruby-samples) | [Blog](https://blog.groupdocs.cloud/category/annotation/) | [Free Support](https://forum.groupdocs.cloud/c/annotation) | [Free Trial](https://purchase.groupdocs.cloud/trial)
48+
## Resources
49+
50+
+[**Website**](https://www.groupdocs.cloud)
51+
+[**Product Home**](https://products.groupdocs.cloud/annotation)
52+
+[**Documentation**](https://docs.groupdocs.cloud/annotation)
53+
+[**Free Support Forum**](https://forum.groupdocs.cloud/c/annotation)
54+
+[**Blog**](https://blog.groupdocs.cloud/category/annotation)
55+
56+
## Contact Us
57+
58+
Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.groupdocs.cloud/c/annotation).

lib/groupdocs_annotation_cloud.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ------------------------------------------------------------------------------------
22
# <copyright company="Aspose Pty Ltd" file="groupdocs_annotation_cloud.rb">
3-
# Copyright (c) 2003-2019 Aspose Pty Ltd
3+
# Copyright (c) 2003-2020 Aspose Pty Ltd
44
# </copyright>
55
# <summary>
66
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -48,7 +48,6 @@
4848
require_relative 'groupdocs_annotation_cloud/models/page_info'
4949
require_relative 'groupdocs_annotation_cloud/models/point'
5050
require_relative 'groupdocs_annotation_cloud/models/rectangle'
51-
require_relative 'groupdocs_annotation_cloud/models/row_info'
5251
require_relative 'groupdocs_annotation_cloud/models/storage_exist'
5352
require_relative 'groupdocs_annotation_cloud/models/storage_file'
5453
require_relative 'groupdocs_annotation_cloud/models/annotation_api_link'

lib/groupdocs_annotation_cloud/api/annotate_api.rb

Lines changed: 5 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -----------------------------------------------------------------------------------
22
# <copyright company="Aspose Pty Ltd" file="annotate.rb">
3-
# Copyright (c) 2003-2019 Aspose Pty Ltd
3+
# Copyright (c) 2003-2020 Aspose Pty Ltd
44
# </copyright>
55
# <summary>
66
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -250,60 +250,6 @@ def get_import_with_http_info(request)
250250
[data, status_code, headers]
251251
end
252252

253-
# Retrieves PDF version of document
254-
#
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)
259-
data
260-
end
261-
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-
307253
# Adds annotations to document
308254
#
309255
# @param request post_annotations_request
@@ -416,7 +362,7 @@ def post_annotations_with_http_info(request)
416362
#
417363
# --------------------------------------------------------------------------------------------------------------------
418364
# <copyright company="Aspose Pty Ltd" file="delete_annotations_request.rb">
419-
# Copyright (c) 2003-2019 Aspose Pty Ltd
365+
# Copyright (c) 2003-2020 Aspose Pty Ltd
420366
# </copyright>
421367
# <summary>
422368
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -461,7 +407,7 @@ def initialize(file_path)
461407
#
462408
# --------------------------------------------------------------------------------------------------------------------
463409
# <copyright company="Aspose Pty Ltd" file="get_export_request.rb">
464-
# Copyright (c) 2003-2019 Aspose Pty Ltd
410+
# Copyright (c) 2003-2020 Aspose Pty Ltd
465411
# </copyright>
466412
# <summary>
467413
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -526,7 +472,7 @@ def initialize(file_path, annotation_types = nil, annotated_pages = nil, first_p
526472
#
527473
# --------------------------------------------------------------------------------------------------------------------
528474
# <copyright company="Aspose Pty Ltd" file="get_import_request.rb">
529-
# Copyright (c) 2003-2019 Aspose Pty Ltd
475+
# Copyright (c) 2003-2020 Aspose Pty Ltd
530476
# </copyright>
531477
# <summary>
532478
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -567,56 +513,11 @@ def initialize(file_path)
567513
self.file_path = file_path
568514
end
569515
end
570-
end
571-
#
572-
# --------------------------------------------------------------------------------------------------------------------
573-
# <copyright company="Aspose Pty Ltd" file="get_pdf_request.rb">
574-
# Copyright (c) 2003-2019 Aspose Pty Ltd
575-
# </copyright>
576-
# <summary>
577-
# Permission is hereby granted, free of charge, to any person obtaining a copy
578-
# of this software and associated documentation files (the "Software"), to deal
579-
# in the Software without restriction, including without limitation the rights
580-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
581-
# copies of the Software, and to permit persons to whom the Software is
582-
# furnished to do so, subject to the following conditions:
583-
#
584-
# The above copyright notice and this permission notice shall be included in all
585-
# copies or substantial portions of the Software.
586-
#
587-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
588-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
589-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
590-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
591-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
592-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
593-
# SOFTWARE.
594-
# </summary>
595-
# --------------------------------------------------------------------------------------------------------------------
596-
#
597-
598-
module GroupDocsAnnotationCloud
599-
600-
#
601-
# Request model for get_pdf operation.
602-
#
603-
class GetPdfRequest
604-
605-
# Path to document in storage
606-
attr_accessor :file_path
607-
608-
#
609-
# Initializes a new instance.
610-
# @param file_path Path to document in storage
611-
def initialize(file_path)
612-
self.file_path = file_path
613-
end
614-
end
615516
end
616517
#
617518
# --------------------------------------------------------------------------------------------------------------------
618519
# <copyright company="Aspose Pty Ltd" file="post_annotations_request.rb">
619-
# Copyright (c) 2003-2019 Aspose Pty Ltd
520+
# Copyright (c) 2003-2020 Aspose Pty Ltd
620521
# </copyright>
621522
# <summary>
622523
# Permission is hereby granted, free of charge, to any person obtaining a copy

lib/groupdocs_annotation_cloud/api/file_api.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -----------------------------------------------------------------------------------
22
# <copyright company="Aspose Pty Ltd" file="file.rb">
3-
# Copyright (c) 2003-2019 Aspose Pty Ltd
3+
# Copyright (c) 2003-2020 Aspose Pty Ltd
44
# </copyright>
55
# <summary>
66
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -378,7 +378,7 @@ def upload_file_with_http_info(request)
378378

379379
# http body (model)
380380
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,
382382
header_params: header_params,
383383
query_params: query_params,
384384
form_params: form_params,
@@ -449,7 +449,7 @@ def upload_file_with_http_info(request)
449449
#
450450
# --------------------------------------------------------------------------------------------------------------------
451451
# <copyright company="Aspose Pty Ltd" file="copy_file_request.rb">
452-
# Copyright (c) 2003-2019 Aspose Pty Ltd
452+
# Copyright (c) 2003-2020 Aspose Pty Ltd
453453
# </copyright>
454454
# <summary>
455455
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -510,7 +510,7 @@ def initialize(src_path, dest_path, src_storage_name = nil, dest_storage_name =
510510
#
511511
# --------------------------------------------------------------------------------------------------------------------
512512
# <copyright company="Aspose Pty Ltd" file="delete_file_request.rb">
513-
# Copyright (c) 2003-2019 Aspose Pty Ltd
513+
# Copyright (c) 2003-2020 Aspose Pty Ltd
514514
# </copyright>
515515
# <summary>
516516
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -563,7 +563,7 @@ def initialize(path, storage_name = nil, version_id = nil)
563563
#
564564
# --------------------------------------------------------------------------------------------------------------------
565565
# <copyright company="Aspose Pty Ltd" file="download_file_request.rb">
566-
# Copyright (c) 2003-2019 Aspose Pty Ltd
566+
# Copyright (c) 2003-2020 Aspose Pty Ltd
567567
# </copyright>
568568
# <summary>
569569
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -616,7 +616,7 @@ def initialize(path, storage_name = nil, version_id = nil)
616616
#
617617
# --------------------------------------------------------------------------------------------------------------------
618618
# <copyright company="Aspose Pty Ltd" file="move_file_request.rb">
619-
# Copyright (c) 2003-2019 Aspose Pty Ltd
619+
# Copyright (c) 2003-2020 Aspose Pty Ltd
620620
# </copyright>
621621
# <summary>
622622
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -677,7 +677,7 @@ def initialize(src_path, dest_path, src_storage_name = nil, dest_storage_name =
677677
#
678678
# --------------------------------------------------------------------------------------------------------------------
679679
# <copyright company="Aspose Pty Ltd" file="upload_file_request.rb">
680-
# Copyright (c) 2003-2019 Aspose Pty Ltd
680+
# Copyright (c) 2003-2020 Aspose Pty Ltd
681681
# </copyright>
682682
# <summary>
683683
# Permission is hereby granted, free of charge, to any person obtaining a copy

lib/groupdocs_annotation_cloud/api/folder_api.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -----------------------------------------------------------------------------------
22
# <copyright company="Aspose Pty Ltd" file="folder.rb">
3-
# Copyright (c) 2003-2019 Aspose Pty Ltd
3+
# Copyright (c) 2003-2020 Aspose Pty Ltd
44
# </copyright>
55
# <summary>
66
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -174,7 +174,7 @@ def create_folder_with_http_info(request)
174174

175175
# http body (model)
176176
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,
178178
header_params: header_params,
179179
query_params: query_params,
180180
form_params: form_params,
@@ -430,7 +430,7 @@ def move_folder_with_http_info(request)
430430
#
431431
# --------------------------------------------------------------------------------------------------------------------
432432
# <copyright company="Aspose Pty Ltd" file="copy_folder_request.rb">
433-
# Copyright (c) 2003-2019 Aspose Pty Ltd
433+
# Copyright (c) 2003-2020 Aspose Pty Ltd
434434
# </copyright>
435435
# <summary>
436436
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -487,7 +487,7 @@ def initialize(src_path, dest_path, src_storage_name = nil, dest_storage_name =
487487
#
488488
# --------------------------------------------------------------------------------------------------------------------
489489
# <copyright company="Aspose Pty Ltd" file="create_folder_request.rb">
490-
# Copyright (c) 2003-2019 Aspose Pty Ltd
490+
# Copyright (c) 2003-2020 Aspose Pty Ltd
491491
# </copyright>
492492
# <summary>
493493
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -536,7 +536,7 @@ def initialize(path, storage_name = nil)
536536
#
537537
# --------------------------------------------------------------------------------------------------------------------
538538
# <copyright company="Aspose Pty Ltd" file="delete_folder_request.rb">
539-
# Copyright (c) 2003-2019 Aspose Pty Ltd
539+
# Copyright (c) 2003-2020 Aspose Pty Ltd
540540
# </copyright>
541541
# <summary>
542542
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -589,7 +589,7 @@ def initialize(path, storage_name = nil, recursive = nil)
589589
#
590590
# --------------------------------------------------------------------------------------------------------------------
591591
# <copyright company="Aspose Pty Ltd" file="get_files_list_request.rb">
592-
# Copyright (c) 2003-2019 Aspose Pty Ltd
592+
# Copyright (c) 2003-2020 Aspose Pty Ltd
593593
# </copyright>
594594
# <summary>
595595
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -638,7 +638,7 @@ def initialize(path, storage_name = nil)
638638
#
639639
# --------------------------------------------------------------------------------------------------------------------
640640
# <copyright company="Aspose Pty Ltd" file="move_folder_request.rb">
641-
# Copyright (c) 2003-2019 Aspose Pty Ltd
641+
# Copyright (c) 2003-2020 Aspose Pty Ltd
642642
# </copyright>
643643
# <summary>
644644
# Permission is hereby granted, free of charge, to any person obtaining a copy

lib/groupdocs_annotation_cloud/api/info_api.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -----------------------------------------------------------------------------------
22
# <copyright company="Aspose Pty Ltd" file="info.rb">
3-
# Copyright (c) 2003-2019 Aspose Pty Ltd
3+
# Copyright (c) 2003-2020 Aspose Pty Ltd
44
# </copyright>
55
# <summary>
66
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -229,7 +229,7 @@ def get_supported_file_formats_with_http_info()
229229
#
230230
# --------------------------------------------------------------------------------------------------------------------
231231
# <copyright company="Aspose Pty Ltd" file="get_info_request.rb">
232-
# Copyright (c) 2003-2019 Aspose Pty Ltd
232+
# Copyright (c) 2003-2020 Aspose Pty Ltd
233233
# </copyright>
234234
# <summary>
235235
# Permission is hereby granted, free of charge, to any person obtaining a copy

0 commit comments

Comments
 (0)