Skip to content

Commit 8942c23

Browse files
committed
Updated sources
1 parent b1e2a65 commit 8942c23

Some content is hidden

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

51 files changed

+456
-880
lines changed

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
# GroupDocs.Annotation Cloud Python SDK
2+
23
Python package for communicating with the GroupDocs.Annotation Cloud API
34

45
## Requirements
56

67
Python 2.7 or 3.4+
78

89
## Installation
10+
911
Install `groupdocs-annotation-cloud` with [PIP](https://pypi.org/project/pip/) from [PyPI](https://pypi.org/) by:
1012

1113
```sh
1214
pip install groupdocs-annotation-cloud
1315
```
1416

15-
Or clone repository and install it via [Setuptools](http://pypi.python.org/pypi/setuptools):
17+
Or clone repository and install it via [Setuptools](http://pypi.python.org/pypi/setuptools):
1618

1719
```sh
1820
python setup.py install
@@ -40,12 +42,23 @@ try:
4042
# Print out supported file-formats
4143
print("Supported file-formats:")
4244
for format in response.formats:
43-
print('{0} ({1})'.format(format.file_format, format.extension))
45+
print('{0} ({1})'.format(format.file_format, format.extension))
4446
except groupdocs_annotation_cloud.ApiException as e:
4547
print("Exception when calling get_supported_file_formats: {0}".format(e.message))
4648
```
4749

4850
## Licensing
51+
4952
GroupDocs.Annotation Cloud Python SDK licensed under [MIT License](http://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-python/LICENSE).
5053

51-
[Home](https://www.groupdocs.cloud/) | [Product Page](https://products.groupdocs.cloud/annotation/python) | [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-python-samples) | [Blog](https://blog.groupdocs.cloud/category/annotation/) | [Free Support](https://forum.groupdocs.cloud/c/annotation) | [Free Trial](https://purchase.groupdocs.cloud/trial)
54+
## Resources
55+
56+
+[**Website**](https://www.groupdocs.cloud)
57+
+[**Product Home**](https://products.groupdocs.cloud/annotation)
58+
+[**Documentation**](https://docs.groupdocs.cloud/annotation/)
59+
+[**Free Support Forum**](https://forum.groupdocs.cloud/c/annotation)
60+
+[**Blog**](https://blog.groupdocs.cloud/category/annotation)
61+
62+
## Contact Us
63+
64+
Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.groupdocs.cloud/c/annotation).

groupdocs_annotation_cloud/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from __future__ import absolute_import
66

77
# import apis
8-
from groupdocs_annotation_cloud.apis.annotate_api import AnnotateApi, DeleteAnnotationsRequest, GetExportRequest, GetImportRequest, GetPdfRequest, PostAnnotationsRequest
8+
from groupdocs_annotation_cloud.apis.annotate_api import AnnotateApi, DeleteAnnotationsRequest, GetExportRequest, GetImportRequest, PostAnnotationsRequest
99
from groupdocs_annotation_cloud.apis.file_api import FileApi, CopyFileRequest, DeleteFileRequest, DownloadFileRequest, MoveFileRequest, UploadFileRequest
1010
from groupdocs_annotation_cloud.apis.folder_api import FolderApi, CopyFolderRequest, CreateFolderRequest, DeleteFolderRequest, GetFilesListRequest, MoveFolderRequest
1111
from groupdocs_annotation_cloud.apis.info_api import InfoApi, GetInfoRequest
@@ -37,7 +37,6 @@
3737
from groupdocs_annotation_cloud.models.page_info import PageInfo
3838
from groupdocs_annotation_cloud.models.point import Point
3939
from groupdocs_annotation_cloud.models.rectangle import Rectangle
40-
from groupdocs_annotation_cloud.models.row_info import RowInfo
4140
from groupdocs_annotation_cloud.models.storage_exist import StorageExist
4241
from groupdocs_annotation_cloud.models.storage_file import StorageFile
4342
from groupdocs_annotation_cloud.models.annotation_api_link import AnnotationApiLink

groupdocs_annotation_cloud/api_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# -----------------------------------------------------------------------------------
44
# <copyright company="Aspose Pty Ltd" file="api_client.py">
5-
# Copyright (c) 2003-2019 Aspose Pty Ltd
5+
# Copyright (c) 2003-2020 Aspose Pty Ltd
66
# </copyright>
77
# <summary>
88
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -74,12 +74,12 @@ def __init__(self, configuration, header_name=None, header_value=None,
7474
self.configuration = configuration
7575
self.pool = None
7676
self.rest_client = rest.RESTClientObject(configuration)
77-
self.default_headers = {'x-groupdocs-client': 'python sdk', 'x-groupdocs-version': '19.5'}
77+
self.default_headers = {'x-groupdocs-client': 'python sdk', 'x-groupdocs-version': '20.10'}
7878
if header_name is not None:
7979
self.default_headers[header_name] = header_value
8080
self.cookie = cookie
8181
# Set default User-Agent.
82-
self.user_agent = 'python sdk 19.5'
82+
self.user_agent = 'python sdk 20.10'
8383

8484
def __del__(self):
8585
if self.pool is not None:

groupdocs_annotation_cloud/api_exception.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coding: utf-8
22
# -----------------------------------------------------------------------------------
33
# <copyright company="Aspose Pty Ltd" file="api_exception.py">
4-
# Copyright (c) 2003-2019 Aspose Pty Ltd
4+
# Copyright (c) 2003-2020 Aspose Pty Ltd
55
# </copyright>
66
# <summary>
77
# Permission is hereby granted, free of charge, to any person obtaining a copy

groupdocs_annotation_cloud/apis/annotate_api.py

Lines changed: 5 additions & 135 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# -----------------------------------------------------------------------------------
44
# <copyright company="Aspose Pty Ltd">
5-
# Copyright (c) 2003-2019 Aspose Pty Ltd
5+
# Copyright (c) 2003-2020 Aspose Pty Ltd
66
# </copyright>
77
# <summary>
88
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -395,100 +395,6 @@ def _get_import_with_http_info(self, request, **kwargs): # noqa: E501
395395

396396
return self.api_client.call_api(**call_kwargs) # noqa: E501
397397

398-
def get_pdf(self, request,**kwargs): # noqa: E501
399-
"""Retrieves PDF version of document # noqa: E501
400-
401-
This method makes a synchronous HTTP request by default. To make an
402-
asynchronous HTTP request, please pass is_async=True
403-
404-
:param is_async bool
405-
:param str file_path: Path to document in storage (required)
406-
:return: file
407-
If the method is called asynchronously,
408-
returns the request thread.
409-
"""
410-
kwargs['_return_http_data_only'] = True
411-
412-
if kwargs.get('is_async'):
413-
return self._get_pdf_with_http_info(request, **kwargs) # noqa: E501
414-
415-
(data) = self._get_pdf_with_http_info(request, **kwargs) # noqa: E501
416-
return data
417-
418-
def _get_pdf_with_http_info(self, request, **kwargs): # noqa: E501
419-
"""Retrieves PDF version of document # noqa: E501
420-
421-
This method makes a synchronous HTTP request by default. To make an
422-
asynchronous HTTP request, please pass is_async=True
423-
424-
:param is_async bool
425-
:param GetPdfRequest request object with parameters
426-
:return: file
427-
If the method is called asynchronously,
428-
returns the request thread.
429-
"""
430-
params = locals()
431-
params['is_async'] = ''
432-
params['_return_http_data_only'] = False
433-
params['_preload_content'] = True
434-
params['_request_timeout'] = ''
435-
for key, val in six.iteritems(params['kwargs']):
436-
if key not in params:
437-
raise TypeError(
438-
"Got an unexpected keyword argument '%s'"
439-
" to method get_pdf" % key
440-
)
441-
params[key] = val
442-
del params['kwargs']
443-
# verify the required parameter 'file_path' is set
444-
if request.file_path is None:
445-
raise ValueError("Missing the required parameter `file_path` when calling `get_pdf`") # noqa: E501
446-
447-
collection_formats = {}
448-
path = '/annotation/pdf'
449-
path_params = {}
450-
451-
query_params = []
452-
if self.__downcase_first_letter('filePath') in path:
453-
path = path.replace('{' + self.__downcase_first_letter('filePath' + '}'), request.file_path if request.file_path is not None else '')
454-
else:
455-
if request.file_path is not None:
456-
query_params.append((self.__downcase_first_letter('filePath'), request.file_path)) # noqa: E501
457-
458-
header_params = {}
459-
460-
form_params = []
461-
local_var_files = []
462-
463-
body_params = None
464-
# HTTP header `Accept`
465-
header_params['Accept'] = self.api_client.select_header_accept(
466-
['application/json']) # noqa: E501
467-
468-
# HTTP header `Content-Type`
469-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
470-
['application/json']) # noqa: E501
471-
472-
call_kwargs = {
473-
'resource_path':path,
474-
'method':'GET',
475-
'path_params':path_params,
476-
'query_params':query_params,
477-
'header_params':header_params,
478-
'body':body_params,
479-
'post_params':form_params,
480-
'files':local_var_files,
481-
'response_type':'file', # noqa: E501
482-
'auth_settings':self.auth.get_auth_settings(),
483-
'is_async':params.get('is_async'),
484-
'_return_http_data_only':params.get('_return_http_data_only'),
485-
'_preload_content':params.get('_preload_content', True),
486-
'_request_timeout':params.get('_request_timeout'),
487-
'collection_formats':collection_formats
488-
}
489-
490-
return self.api_client.call_api(**call_kwargs) # noqa: E501
491-
492398
def post_annotations(self, request,**kwargs): # noqa: E501
493399
"""Adds annotations to document # noqa: E501
494400
@@ -599,7 +505,7 @@ def __downcase_first_letter(self, s):
599505

600506
# --------------------------------------------------------------------------------
601507
# <copyright company="Aspose Pty Ltd" file="delete_annotations_request.py">
602-
# Copyright (c) 2003-2019 Aspose Pty Ltd
508+
# Copyright (c) 2003-2020 Aspose Pty Ltd
603509
# </copyright>
604510
# <summary>
605511
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -635,7 +541,7 @@ def __init__(self, file_path):
635541

636542
# --------------------------------------------------------------------------------
637543
# <copyright company="Aspose Pty Ltd" file="get_export_request.py">
638-
# Copyright (c) 2003-2019 Aspose Pty Ltd
544+
# Copyright (c) 2003-2020 Aspose Pty Ltd
639545
# </copyright>
640546
# <summary>
641547
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -681,7 +587,7 @@ def __init__(self, file_path, annotation_types=None, annotated_pages=None, first
681587

682588
# --------------------------------------------------------------------------------
683589
# <copyright company="Aspose Pty Ltd" file="get_import_request.py">
684-
# Copyright (c) 2003-2019 Aspose Pty Ltd
590+
# Copyright (c) 2003-2020 Aspose Pty Ltd
685591
# </copyright>
686592
# <summary>
687593
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -715,45 +621,9 @@ def __init__(self, file_path):
715621
self.file_path = file_path
716622
# coding: utf-8
717623

718-
# --------------------------------------------------------------------------------
719-
# <copyright company="Aspose Pty Ltd" file="get_pdf_request.py">
720-
# Copyright (c) 2003-2019 Aspose Pty Ltd
721-
# </copyright>
722-
# <summary>
723-
# Permission is hereby granted, free of charge, to any person obtaining a copy
724-
# of this software and associated documentation files (the "Software"), to deal
725-
# in the Software without restriction, including without limitation the rights
726-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
727-
# copies of the Software, and to permit persons to whom the Software is
728-
# furnished to do so, subject to the following conditions:
729-
#
730-
# The above copyright notice and this permission notice shall be included in all
731-
# copies or substantial portions of the Software.
732-
#
733-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
734-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
735-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
736-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
737-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
738-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
739-
# SOFTWARE.
740-
# </summary>
741-
# --------------------------------------------------------------------------------
742-
743-
class GetPdfRequest(object):
744-
"""
745-
Request model for get_pdf operation.
746-
:param file_path Path to document in storage
747-
"""
748-
749-
def __init__(self, file_path):
750-
"""Initializes new instance of GetPdfRequest.""" # noqa: E501
751-
self.file_path = file_path
752-
# coding: utf-8
753-
754624
# --------------------------------------------------------------------------------
755625
# <copyright company="Aspose Pty Ltd" file="post_annotations_request.py">
756-
# Copyright (c) 2003-2019 Aspose Pty Ltd
626+
# Copyright (c) 2003-2020 Aspose Pty Ltd
757627
# </copyright>
758628
# <summary>
759629
# Permission is hereby granted, free of charge, to any person obtaining a copy

groupdocs_annotation_cloud/apis/file_api.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# -----------------------------------------------------------------------------------
44
# <copyright company="Aspose Pty Ltd">
5-
# Copyright (c) 2003-2019 Aspose Pty Ltd
5+
# Copyright (c) 2003-2020 Aspose Pty Ltd
66
# </copyright>
77
# <summary>
88
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -610,7 +610,7 @@ def _upload_file_with_http_info(self, request, **kwargs): # noqa: E501
610610

611611
call_kwargs = {
612612
'resource_path':path,
613-
'method':'POST',
613+
'method':'PUT',
614614
'path_params':path_params,
615615
'query_params':query_params,
616616
'header_params':header_params,
@@ -638,7 +638,7 @@ def __downcase_first_letter(self, s):
638638

639639
# --------------------------------------------------------------------------------
640640
# <copyright company="Aspose Pty Ltd" file="copy_file_request.py">
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
@@ -682,7 +682,7 @@ def __init__(self, src_path, dest_path, src_storage_name=None, dest_storage_name
682682

683683
# --------------------------------------------------------------------------------
684684
# <copyright company="Aspose Pty Ltd" file="delete_file_request.py">
685-
# Copyright (c) 2003-2019 Aspose Pty Ltd
685+
# Copyright (c) 2003-2020 Aspose Pty Ltd
686686
# </copyright>
687687
# <summary>
688688
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -722,7 +722,7 @@ def __init__(self, path, storage_name=None, version_id=None):
722722

723723
# --------------------------------------------------------------------------------
724724
# <copyright company="Aspose Pty Ltd" file="download_file_request.py">
725-
# Copyright (c) 2003-2019 Aspose Pty Ltd
725+
# Copyright (c) 2003-2020 Aspose Pty Ltd
726726
# </copyright>
727727
# <summary>
728728
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -762,7 +762,7 @@ def __init__(self, path, storage_name=None, version_id=None):
762762

763763
# --------------------------------------------------------------------------------
764764
# <copyright company="Aspose Pty Ltd" file="move_file_request.py">
765-
# Copyright (c) 2003-2019 Aspose Pty Ltd
765+
# Copyright (c) 2003-2020 Aspose Pty Ltd
766766
# </copyright>
767767
# <summary>
768768
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -806,7 +806,7 @@ def __init__(self, src_path, dest_path, src_storage_name=None, dest_storage_name
806806

807807
# --------------------------------------------------------------------------------
808808
# <copyright company="Aspose Pty Ltd" file="upload_file_request.py">
809-
# Copyright (c) 2003-2019 Aspose Pty Ltd
809+
# Copyright (c) 2003-2020 Aspose Pty Ltd
810810
# </copyright>
811811
# <summary>
812812
# Permission is hereby granted, free of charge, to any person obtaining a copy

0 commit comments

Comments
 (0)